// Copyright 2025 LiveKit, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // @generated by protoc-gen-es v1.10.1 with parameter "target=dts+js" // @generated from file livekit_connector_whatsapp.proto (package livekit, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, Duration, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import type { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js"; import type { SessionDescription } from "./livekit_rtc_pb.js"; /** * @generated from enum livekit.WhatsAppCallDirection */ export declare enum WhatsAppCallDirection { /** * @generated from enum value: WHATSAPP_CALL_DIRECTION_INBOUND = 0; */ WHATSAPP_CALL_DIRECTION_INBOUND = 0, /** * @generated from enum value: WHATSAPP_CALL_DIRECTION_OUTBOUND = 2; */ WHATSAPP_CALL_DIRECTION_OUTBOUND = 2, } /** * @generated from message livekit.DialWhatsAppCallRequest */ export declare class DialWhatsAppCallRequest extends Message { /** * Required - The phone number id of the business that is initiating the call * * @generated from field: string whatsapp_phone_number_id = 1; */ whatsappPhoneNumberId: string; /** * Required - The number of the user that is supossed to receive the call * * @generated from field: string whatsapp_to_phone_number = 2; */ whatsappToPhoneNumber: string; /** * Required - The API key of the business that is initiating the call * * @generated from field: string whatsapp_api_key = 3; */ whatsappApiKey: string; /** * Required - WhatsApp Cloud API version, eg: 23.0, 24.0, etc. * * @generated from field: string whatsapp_cloud_api_version = 12; */ whatsappCloudApiVersion: string; /** * Optional - An arbitrary string you can pass in that is useful for tracking and logging purposes. * * @generated from field: string whatsapp_biz_opaque_callback_data = 4; */ whatsappBizOpaqueCallbackData: string; /** * Optional - What LiveKit room should this participant be connected too * * @generated from field: string room_name = 5; */ roomName: string; /** * Optional - Agents to dispatch the call to * * @generated from field: repeated livekit.RoomAgentDispatch agents = 6; */ agents: RoomAgentDispatch[]; /** * Optional - Identity of the participant in LiveKit room * This is used for logging purposes, so it is advised to not put PII in this field. * * @generated from field: string participant_identity = 7; */ participantIdentity: string; /** * Optional - Name of the participant in LiveKit room * * @generated from field: string participant_name = 8; */ participantName: string; /** * Optional - User-defined metadata. Will be attached to a created Participant in the room. * * @generated from field: string participant_metadata = 9; */ participantMetadata: string; /** * Optional - User-defined attributes. Will be attached to a created Participant in the room. * * @generated from field: map participant_attributes = 10; */ participantAttributes: { [key: string]: string }; /** * Optional - Country where the call terminates as ISO 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will be used by the livekit infrastructure to route calls. * * @generated from field: string destination_country = 11; */ destinationCountry: string; /** * Max time for the callee to answer the call. * * @generated from field: google.protobuf.Duration ringing_timeout = 13; */ ringingTimeout?: Duration; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.DialWhatsAppCallRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DialWhatsAppCallRequest; static fromJson(jsonValue: JsonValue, options?: Partial): DialWhatsAppCallRequest; static fromJsonString(jsonString: string, options?: Partial): DialWhatsAppCallRequest; static equals(a: DialWhatsAppCallRequest | PlainMessage | undefined, b: DialWhatsAppCallRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.DialWhatsAppCallResponse */ export declare class DialWhatsAppCallResponse extends Message { /** * Call ID sent by Meta * * @generated from field: string whatsapp_call_id = 1; */ whatsappCallId: string; /** * The name of the LiveKit room that the call is connected to * * @generated from field: string room_name = 2; */ roomName: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.DialWhatsAppCallResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DialWhatsAppCallResponse; static fromJson(jsonValue: JsonValue, options?: Partial): DialWhatsAppCallResponse; static fromJsonString(jsonString: string, options?: Partial): DialWhatsAppCallResponse; static equals(a: DialWhatsAppCallResponse | PlainMessage | undefined, b: DialWhatsAppCallResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.DisconnectWhatsAppCallRequest */ export declare class DisconnectWhatsAppCallRequest extends Message { /** * Required - Call ID sent by Meta * * @generated from field: string whatsapp_call_id = 1; */ whatsappCallId: string; /** * 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. * * @generated from field: string whatsapp_api_key = 2; */ whatsappApiKey: string; /** * The reason for disconnecting the call * * @generated from field: livekit.DisconnectWhatsAppCallRequest.DisconnectReason disconnect_reason = 3; */ disconnectReason: DisconnectWhatsAppCallRequest_DisconnectReason; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.DisconnectWhatsAppCallRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DisconnectWhatsAppCallRequest; static fromJson(jsonValue: JsonValue, options?: Partial): DisconnectWhatsAppCallRequest; static fromJsonString(jsonString: string, options?: Partial): DisconnectWhatsAppCallRequest; static equals(a: DisconnectWhatsAppCallRequest | PlainMessage | undefined, b: DisconnectWhatsAppCallRequest | PlainMessage | undefined): boolean; } /** * @generated from enum livekit.DisconnectWhatsAppCallRequest.DisconnectReason */ export declare enum DisconnectWhatsAppCallRequest_DisconnectReason { /** * The call is being disconnected by the business * * @generated from enum value: BUSINESS_INITIATED = 0; */ 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. * * @generated from enum value: USER_INITIATED = 1; */ USER_INITIATED = 1, } /** * @generated from message livekit.DisconnectWhatsAppCallResponse */ export declare class DisconnectWhatsAppCallResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.DisconnectWhatsAppCallResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DisconnectWhatsAppCallResponse; static fromJson(jsonValue: JsonValue, options?: Partial): DisconnectWhatsAppCallResponse; static fromJsonString(jsonString: string, options?: Partial): DisconnectWhatsAppCallResponse; static equals(a: DisconnectWhatsAppCallResponse | PlainMessage | undefined, b: DisconnectWhatsAppCallResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.ConnectWhatsAppCallRequest */ export declare class ConnectWhatsAppCallRequest extends Message { /** * Required - Call ID sent by Meta * * @generated from field: string whatsapp_call_id = 1; */ whatsappCallId: string; /** * Required - The call connect webhook comes with SDP from Meta * It is the answer SDP for a business initiated call * * @generated from field: livekit.SessionDescription sdp = 2; */ sdp?: SessionDescription; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.ConnectWhatsAppCallRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ConnectWhatsAppCallRequest; static fromJson(jsonValue: JsonValue, options?: Partial): ConnectWhatsAppCallRequest; static fromJsonString(jsonString: string, options?: Partial): ConnectWhatsAppCallRequest; static equals(a: ConnectWhatsAppCallRequest | PlainMessage | undefined, b: ConnectWhatsAppCallRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.ConnectWhatsAppCallResponse */ export declare class ConnectWhatsAppCallResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.ConnectWhatsAppCallResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ConnectWhatsAppCallResponse; static fromJson(jsonValue: JsonValue, options?: Partial): ConnectWhatsAppCallResponse; static fromJsonString(jsonString: string, options?: Partial): ConnectWhatsAppCallResponse; static equals(a: ConnectWhatsAppCallResponse | PlainMessage | undefined, b: ConnectWhatsAppCallResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.AcceptWhatsAppCallRequest */ export declare class AcceptWhatsAppCallRequest extends Message { /** * Required - The phone number id of the business that is conencting the call * * @generated from field: string whatsapp_phone_number_id = 1; */ whatsappPhoneNumberId: string; /** * Required - The API key of the business that is connecting the call * * @generated from field: string whatsapp_api_key = 2; */ whatsappApiKey: string; /** * Required - WhatsApp Cloud API version, eg: 23.0, 24.0, etc. * * @generated from field: string whatsapp_cloud_api_version = 13; */ whatsappCloudApiVersion: string; /** * Required - Call ID sent by Meta * * @generated from field: string whatsapp_call_id = 3; */ whatsappCallId: string; /** * Optional - An arbitrary string you can pass in that is useful for tracking and logging purposes. * * @generated from field: string whatsapp_biz_opaque_callback_data = 4; */ whatsappBizOpaqueCallbackData: string; /** * Required - The call accept webhook comes with SDP from Meta * It is the for a user initiated call * * @generated from field: livekit.SessionDescription sdp = 5; */ sdp?: SessionDescription; /** * Optional - What LiveKit room should this participant be connected too * * @generated from field: string room_name = 6; */ roomName: string; /** * Optional - Agents to dispatch the call to * * @generated from field: repeated livekit.RoomAgentDispatch agents = 7; */ agents: RoomAgentDispatch[]; /** * Optional - Identity of the participant in LiveKit room * This is used for logging purposes, so it is advised to not put PII in this field. * * @generated from field: string participant_identity = 8; */ participantIdentity: string; /** * Optional - Name of the participant in LiveKit room * * @generated from field: string participant_name = 9; */ participantName: string; /** * Optional - User-defined metadata. Will be attached to a created Participant in the room. * * @generated from field: string participant_metadata = 10; */ participantMetadata: string; /** * Optional - User-defined attributes. Will be attached to a created Participant in the room. * * @generated from field: map participant_attributes = 11; */ participantAttributes: { [key: string]: string }; /** * Optional - Country where the call terminates as ISO 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will be used by the livekit infrastructure to route calls. * * @generated from field: string destination_country = 12; */ destinationCountry: string; /** * Max time for the callee to answer the call. * * @generated from field: google.protobuf.Duration ringing_timeout = 14; */ ringingTimeout?: Duration; /** * Wait for the answer for the call before returning. * * @generated from field: bool wait_until_answered = 15; */ waitUntilAnswered: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.AcceptWhatsAppCallRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): AcceptWhatsAppCallRequest; static fromJson(jsonValue: JsonValue, options?: Partial): AcceptWhatsAppCallRequest; static fromJsonString(jsonString: string, options?: Partial): AcceptWhatsAppCallRequest; static equals(a: AcceptWhatsAppCallRequest | PlainMessage | undefined, b: AcceptWhatsAppCallRequest | PlainMessage | undefined): boolean; } /** * @generated from message livekit.AcceptWhatsAppCallResponse */ export declare class AcceptWhatsAppCallResponse extends Message { /** * The name of the LiveKit room that the call is connected to * * @generated from field: string room_name = 1; */ roomName: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.AcceptWhatsAppCallResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): AcceptWhatsAppCallResponse; static fromJson(jsonValue: JsonValue, options?: Partial): AcceptWhatsAppCallResponse; static fromJsonString(jsonString: string, options?: Partial): AcceptWhatsAppCallResponse; static equals(a: AcceptWhatsAppCallResponse | PlainMessage | undefined, b: AcceptWhatsAppCallResponse | PlainMessage | undefined): boolean; } /** * @generated from message livekit.WhatsAppCall */ export declare class WhatsAppCall extends Message { /** * list of call ids that are currently active * * @generated from field: string whatsapp_call_id = 1; */ whatsappCallId: string; /** * Direction of the call * * @generated from field: livekit.WhatsAppCallDirection direction = 2; */ direction: WhatsAppCallDirection; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "livekit.WhatsAppCall"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): WhatsAppCall; static fromJson(jsonValue: JsonValue, options?: Partial): WhatsAppCall; static fromJsonString(jsonString: string, options?: Partial): WhatsAppCall; static equals(a: WhatsAppCall | PlainMessage | undefined, b: WhatsAppCall | PlainMessage | undefined): boolean; }