/** * Logging level for logging to the native log. * For internal use only! */ export declare const enum AddonLogSeverity { none = 0, fatal = 1, error = 2, warning = 3, info = 4, debug = 5, verbose = 6 } /** * Native log configuration. * For internal use only! */ export declare interface NativeAddonLogConfig { maxSeverity: AddonLogSeverity; maxSeverityString: AddonLogSeverity; configuredLogPath: string; } export declare enum HidWorkState { /** Setting Standard HID or YL HID is not supported */ NOT_SUPPORTED = 0, /** Use standard HID as specified in the HID specification from usb.org. */ STD_HID = 1, /** Use YL HID as specified by YL. */ YL_HID = 2 } export declare enum DeviceBtnType { Undefined = 0, OffHook = 1, Mute = 2, Flash = 3, Hold = 4, Redial = 5, Line = 6, SpeakerPhone = 7, Send = 8, Reject = 9, SpeedDial = 10, VoiceMail = 11, LedRinger = 12, LineBusyTone = 13, Key0 = 14, Key1 = 15, Key2 = 16, Key3 = 17, Key4 = 18, Key5 = 19, Key6 = 20, Key7 = 21, Key8 = 22, Key9 = 23, KeyStar = 24, KeyPound = 25, KeyDelete = 26, KeyVolumeUp = 27, KeyVolumeDown = 28, KeyFastForward = 29, KeyRewind = 30, KeyScanNextTrack = 31, KeyScanPreviousTrack = 32, KeyStop = 33, KeyPlayPause = 34 } export declare enum ReturnCode { Return_Ok = 0, Device_Unknown = 1, Device_Invalid = 2, Not_Supported = 3, Return_ParameterFail = 4, ProtectedSetting_Write = 5, No_Information = 6, NetworkRequest_Fail = 7, Device_WriteFail = 8, Device_ReadFails = 9, No_FactorySupported = 10, System_Error = 11, Device_BadState = 12, FileWrite_Fail = 13, File_AlreadyExists = 14, File_Not_Accessible = 15, Firmware_UpToDate = 16, Firmware_Available = 17, Return_Async = 18, Invalid_Authorization = 19, Device_AlreadyConnected = 20, Device_NotConnected = 21, CannotClear_DeviceConnected = 22, Device_Rebooted = 23, Upload_AlreadyInProgress = 24, Download_AlreadyInProgress = 25, Sdk_TooOldForFwUpdate = 26, No_OtaUpdateSupport = 27, Non_Device_Detection_disabled = 28, Preset_Count_Limit = 29, Preset_Not_Exist = 30, Preset_Apply_Time_Out = 31, Operation_Fail_SmartTracking_Enabled = 32, Camera_Not_Ready = 33, Other_Error = 34, NUMBER_OF_RETURNCODES = 35 } export declare enum ErrorStatus { NoError = 0, SSLError = 1, CertError = 2, NetworkError = 3, DownloadError = 4, ParseError = 5, OtherError = 6, DeviceInfoError = 7, FileNotAccessible = 8, FileNotCompatible = 9, Device_NotFound = 10, Parameter_fail = 11, Authorization_failed = 12, FileNotAvailable = 13, ConfigParseError = 14, SetSettings_Fail = 15, Device_Reboot = 16, Device_ReadFail = 17, Device_NotReady = 18, FilePartiallyCompatible = 19, SdkTooOldForFwUpdateError = 20, NUMBER_OF_YEALINK_ERRORCODES = 21 } export declare enum DeviceConnectionType { USB = 0, BT = 1 } export declare enum LogEventType { Log_Upload = 0, Log_Export = 1 } export interface DateTime { sec: number; min: number; hour: number; mday: number; mon: number; year: number; wday: number; } export declare enum DeviceFeature { FeaFactoryReset = 1000, FeaReboot = 1001, FeaLogging = 1002, FeaSetDateTime = 1003, FeaBluetooth = 1004, FeaRemoteMMI = 1005, FeaBattery = 1006, FeaContact = 1007, FeaUploadRingtone = 1008, FeaPlayRingtone = 1009, FeaBusyLight = 1010, FeaExportAudio = 1011, FeaSettings = 1012, FeaCameraPTZ = 1013, FeaCameraPreset = 1014, FeaCameraFaceDetection = 1015, FeaCameraSmartTracking = 1016, FeaRccMultiCall = 1017 } export declare enum EqualizerMode { Equalizer_Normal = 0, Equalizer_Bass = 1, Equalizer_Treble = 2 } export declare enum WizardModes { No_Wizard = 0, Normal_Wizard = 1 } /** * Device description structure, identifies attached devices. */ export interface DeviceInfo { deviceId: number; productId: number; vendorId: number; deviceName: string; devicePath: string; parentInstanceId: string; errStatus: ErrorStatus; isDongle: boolean; dongleName: string; variant: string; serialNumber: string; isInFirmwareUpdateMode: boolean; deviceconnection: DeviceConnectionType; connectionId: number; parentDeviceId: number; } export declare enum BusylightStatus { BUSYLIGHT_UNKNOWN = 0, BUSYLIGHT_RING = 1, BUSYLIGHT_TALKING = 2, BUSYLIGHT_HOLD = 3, BUSYLIGHT_MUTE = 4, BUSYLIGHT_DIALINNG = 5, BUSYLIGHT_ONLINE = 6, BUSYLIGHT_OFFLINE = 7, BUSYLIGHT_LEFT = 8, BUSYLIGHT_BUSY = 9, BUSYLIGHT_NOT_DISTURB = 10, BUSYLIGHT_OFFWORK = 11 } export declare enum AudioModes { AM_HANDFREE = 0, AM_HEADSET = 1 } export interface ContactInfo { name: string; number: string; } export interface ContactInfoList { nCount: number; listContact: Array; } export declare enum UploadEventStatus { UploadInProgress = 0, UploadCompleted = 1, UploadError = 2 } export interface ConfigParamsCloud { blockNetworkAccess?: boolean; } export declare enum CallAction { CALL_ACTION_ACCEPT = 1, CALL_ACTION_TERMINATE = 2, CALL_ACTION_HOLD = 3, CALL_ACTION_RESUME = 4, CALL_ACTION_REJECT = 5, CALL_ACTION_CALL_OUT = 6, CALL_ACTION_ENTER_DIAL = 7, CALL_ACTION_MUTE = 8, CALL_ACTION_UNMUTE = 9, CALL_ACTION_DTMF = 10, CALL_ACTION_REDIAL = 11 } export declare enum CallReturn { CALL_RETURN_SUCCESS = 0, CALL_RETURN_NOT_SUPPORT_RCC = 1, CALL_RETURN_CALL_NOT_EXIST = 2, CALL_RETURN_CALL_ALREADY_EXIST = 3, CALL_RETURN_CID_ALLOC_FAILED = 4, CALL_RETURN_CALL_SYNC_FAILED = 5, CALL_RETURN_USER_CID_UNEXPECT = 6, CALL_RETURN_CALL_COUNT_LIMIT = 7, CALL_RETURN_RCC_DISABLE_BY_YUC = 8, CALL_RETRUN_OPERATION_NOT_SUPPORT = 9, CALL_RETURN_OTHER = 9999 }