@wazo/sdk 0.46.0-rc.5 → 0.46.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7813 -7805
- package/dist/index.mjs +8640 -8632
- package/dist/types/api/calld.d.ts +7 -5
- package/dist/types/api/calld.d.ts.map +1 -1
- package/dist/types/api/chatd.d.ts +1 -1
- package/dist/types/api/chatd.d.ts.map +1 -1
- package/dist/types/domain/ChatRoom.d.ts +3 -1
- package/dist/types/domain/ChatRoom.d.ts.map +1 -1
- package/dist/types/service/IssueReporter.d.ts +18 -1
- package/dist/types/service/IssueReporter.d.ts.map +1 -1
- package/dist/types/simple/Phone.d.ts +5 -5
- package/dist/types/simple/Phone.d.ts.map +1 -1
- package/dist/types/simple/index.d.ts +52 -353
- package/dist/types/simple/index.d.ts.map +1 -1
- package/dist/types/simple/room/Participant.d.ts +1 -1
- package/dist/types/simple/room/Participant.d.ts.map +1 -1
- package/dist/types/simple/room/RemoteParticipant.d.ts +1 -1
- package/dist/types/simple/room/RemoteParticipant.d.ts.map +1 -1
- package/dist/types/simple/room/Room.d.ts +1 -3
- package/dist/types/simple/room/Room.d.ts.map +1 -1
- package/dist/types/simple/room/constants.d.ts +3 -0
- package/dist/types/simple/room/constants.d.ts.map +1 -0
- package/dist/types/types/WebSocketMessage.d.ts +2 -2
- package/dist/types/types/WebSocketMessage.d.ts.map +1 -1
- package/dist/wazo-sdk.js +15700 -15692
- package/package.json +2 -2
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { UUID } from '../domain/types';
|
|
3
|
-
import Relocation from '../domain/Relocation';
|
|
4
|
-
import ChatMessage from '../domain/ChatMessage';
|
|
5
|
-
import Voicemail, { type VoicemailFolderType } from '../domain/Voicemail';
|
|
1
|
+
import { Calld } from '@wazo/types';
|
|
6
2
|
import Call, { CallResponse } from '../domain/Call';
|
|
3
|
+
import ChatMessage from '../domain/ChatMessage';
|
|
7
4
|
import IndirectTransfer from '../domain/IndirectTransfer';
|
|
8
5
|
import MeetingStatus from '../domain/MeetingStatus';
|
|
6
|
+
import Relocation from '../domain/Relocation';
|
|
7
|
+
import type { UUID } from '../domain/types';
|
|
8
|
+
import Voicemail, { type VoicemailFolderType } from '../domain/Voicemail';
|
|
9
|
+
import ApiRequester from '../utils/api-requester';
|
|
9
10
|
declare const _default: (client: ApiRequester, baseUrl: string) => {
|
|
10
11
|
updatePresence: (presence: string) => Promise<boolean>;
|
|
11
12
|
listMessages: (participantUuid: UUID | null | undefined, limit?: number) => Promise<Array<ChatMessage>>;
|
|
@@ -15,6 +16,7 @@ declare const _default: (client: ApiRequester, baseUrl: string) => {
|
|
|
15
16
|
listCalls: () => Promise<Array<Call>>;
|
|
16
17
|
relocateCall(callId: string, destination: string, lineId: number | null | undefined, contact?: string | null | undefined): Promise<Relocation>;
|
|
17
18
|
listVoicemails: () => Promise<Array<Voicemail>>;
|
|
19
|
+
listVoicemailsMessages: (params?: Calld.MeVoicemailsMessagesListParams) => Promise<Calld.MeVoicemailsMessagesListData>;
|
|
18
20
|
deleteVoicemail: (voicemailId: string) => Promise<boolean>;
|
|
19
21
|
getVoicemailUrl: (voicemail: Voicemail) => string;
|
|
20
22
|
updateVoicemailFolder: (voicemail: Voicemail, folder: VoicemailFolderType) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calld.d.ts","sourceRoot":"","sources":["../../../src/api/calld.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"calld.d.ts","sourceRoot":"","sources":["../../../src/api/calld.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,IAAI,EAAE,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,WAAwC,MAAM,uBAAuB,CAAC;AAC7E,OAAO,gBAAgB,MAAM,4BAA4B,CAAC;AAC1D,OAAO,aAAa,MA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AO,CAAC,OAAO,CAAC;8BAExB,MAAM,KAAG,OAAO,CAAC,OAAO,CAAC;yCAEd,MAAM,KAAG,OAAO,CAAC,aAAa,CAAC;;AAlKtE,wBAmKI"}
|
|
@@ -19,7 +19,7 @@ declare const _default: (client: ApiRequester, baseUrl: string) => {
|
|
|
19
19
|
getLineState: (contactUuid: UUID) => Promise<string>;
|
|
20
20
|
getMultipleLineState(contactUuids: Array<UUID> | null | undefined): Promise<Array<PresenceResponse>>;
|
|
21
21
|
getUserRooms: () => Promise<Array<ChatRoom>>;
|
|
22
|
-
createRoom: (name: string, users: Array<ChatUser
|
|
22
|
+
createRoom: (name: string, users: Array<ChatUser>, kind?: string) => Promise<ChatRoom>;
|
|
23
23
|
getRoomMessages: (roomUuid: string, params?: GetMessagesOptions) => Promise<Array<ChatMessage>>;
|
|
24
24
|
sendRoomMessage: (roomUuid: string, message: ChatMessage) => Promise<ChatMessage>;
|
|
25
25
|
getMessages: (options: GetMessagesOptions) => Promise<ChatMessageListResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatd.d.ts","sourceRoot":"","sources":["../../../src/api/chatd.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE9D,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAOhD,KAAK,kBAAkB,GAAG;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,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AI,SAAS,MAAM,UAAU,MAAM,KAAG,OAAO,CAAC,OAAO,CAAC;4BAQpD,IAAI,KAAG,OAAO,CAAC,MAAM,CAAC;wCAEV,IAAI,KAAG,OAAO,CAAC,gBAAgB,CAAC;gCAExC,IAAI,KAAG,OAAO,CAAC,MAAM,CAAC;uCAEf,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;wBAwBlF,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;uBAEvB,MAAM,SAAS,KAAK,CAAC,QAAQ,CAAC,SAAS,MAAM,KAAG,OAAO,CAAC,QAAQ,CAAC;gCAMxD,MAAM,WAAW,kBAAkB,KAAG,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;gCAKjE,MAAM,WAAW,WAAW,KAAG,OAAO,CAAC,WAAW,CAAC;2BAExD,kBAAkB,KAAG,OAAO,CAAC,uBAAuB,CAAC;;AA1DpF,wBA2DI"}
|
|
@@ -3,6 +3,7 @@ export type RoomResponse = {
|
|
|
3
3
|
name: string;
|
|
4
4
|
uuid: string;
|
|
5
5
|
users: Array<ChatUser>;
|
|
6
|
+
kind?: string;
|
|
6
7
|
};
|
|
7
8
|
export type RootListResponse = {
|
|
8
9
|
filtered: number;
|
|
@@ -14,9 +15,10 @@ export default class ChatRoom {
|
|
|
14
15
|
uuid: string;
|
|
15
16
|
name: string;
|
|
16
17
|
users: Array<ChatUser>;
|
|
18
|
+
kind?: string;
|
|
17
19
|
static parseMany(plain: RootListResponse): Array<ChatRoom>;
|
|
18
20
|
static parse(plain: RoomResponse): ChatRoom;
|
|
19
21
|
static newFrom(room: ChatRoom): any;
|
|
20
|
-
constructor({ uuid, name, users, }?: Record<string, any>);
|
|
22
|
+
constructor({ uuid, name, users, kind, }?: Record<string, any>);
|
|
21
23
|
}
|
|
22
24
|
//# sourceMappingURL=ChatRoom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatRoom.d.ts","sourceRoot":"","sources":["../../../src/domain/ChatRoom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG9C,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatRoom.d.ts","sourceRoot":"","sources":["../../../src/domain/ChatRoom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG9C,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CAC5B,CAAC;AACF,MAAM,CAAC,OAAO,OAAO,QAAQ;IAC3B,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAEvB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,gBAAgB,GAAG,KAAK,CAAC,QAAQ,CAAC;IAQ1D,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,YAAY,GAAG,QAAQ;IAS3C,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ;gBAIjB,EACV,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,IAAI,GACL,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM;CAS5B"}
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
type Logger = {
|
|
2
|
+
TRACE: string;
|
|
3
|
+
DEBUG: string;
|
|
4
|
+
INFO: string;
|
|
5
|
+
LOG: string;
|
|
6
|
+
WARN: string;
|
|
7
|
+
ERROR: string;
|
|
8
|
+
};
|
|
9
|
+
type LoggerWithMethods = Logger & {
|
|
10
|
+
trace: (...args: any) => void;
|
|
11
|
+
debug: (...args: any) => void;
|
|
12
|
+
info: (...args: any) => void;
|
|
13
|
+
log: (...args: any) => void;
|
|
14
|
+
warn: (...args: any) => void;
|
|
15
|
+
error: (...args: any) => void;
|
|
16
|
+
apply: (this: Logger, ...args: any) => void;
|
|
17
|
+
};
|
|
1
18
|
declare class IssueReporter {
|
|
2
19
|
TRACE: string;
|
|
3
20
|
INFO: string;
|
|
@@ -18,7 +35,7 @@ declare class IssueReporter {
|
|
|
18
35
|
configureRemoteClient(configuration?: Record<string, any>): void;
|
|
19
36
|
enable(): void;
|
|
20
37
|
disable(): void;
|
|
21
|
-
loggerFor(category: string):
|
|
38
|
+
loggerFor(category: string): LoggerWithMethods;
|
|
22
39
|
removeSlashes(str: string): string;
|
|
23
40
|
obfuscateHeaderToken(headers: object): object;
|
|
24
41
|
log(level: string, ...args: any): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IssueReporter.d.ts","sourceRoot":"","sources":["../../../src/service/IssueReporter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IssueReporter.d.ts","sourceRoot":"","sources":["../../../src/service/IssueReporter.ts"],"names":[],"mappings":"AAkBA,KAAK,MAAM,GAAG;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,E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F,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAQpG,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAW5C,aAAa,CAAC,QAAQ,EAAE,MAAM;CAI/B;;AAED,wBAAmC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { OutgoingInviteRequest } from 'sip.js/lib/core';
|
|
2
|
-
import type SipLine from '../domain/SipLine';
|
|
3
|
-
import type Session from '../domain/Session';
|
|
4
|
-
import type CallSession from '../domain/CallSession';
|
|
5
2
|
import AdHocAPIConference from '../domain/AdHocAPIConference';
|
|
3
|
+
import type CallSession from '../domain/CallSession';
|
|
6
4
|
import WebRTCPhone from '../domain/Phone/WebRTCPhone';
|
|
7
|
-
import
|
|
8
|
-
import
|
|
5
|
+
import type Session from '../domain/Session';
|
|
6
|
+
import type SipLine from '../domain/SipLine';
|
|
9
7
|
import { WazoSession, WebRtcConfig } from '../domain/types';
|
|
8
|
+
import Emitter from '../utils/Emitter';
|
|
9
|
+
import WebRTCClient from '../web-rtc-client';
|
|
10
10
|
export declare class Phone extends Emitter {
|
|
11
11
|
client: WebRTCClient;
|
|
12
12
|
phone: WebRTCPhone | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Phone.d.ts","sourceRoot":"","sources":["../../../src/simple/Phone.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,
|
|
1
|
+
{"version":3,"file":"Phone.d.ts","sourceRoot":"","sources":["../../../src/simple/Phone.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,kBAAkB,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,W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
2
|
-
import
|
|
3
|
-
import SipRoom from './room/SipRoom';
|
|
4
|
-
import RemoteParticipant from './room/RemoteParticipant';
|
|
5
|
-
import LocalParticipant from './room/LocalParticipant';
|
|
6
|
-
import Participant from './room/Participant';
|
|
7
|
-
import Stream from './room/Stream';
|
|
8
|
-
import { CanceledCallError } from '../web-rtc-client';
|
|
1
|
+
import type WazoApiClient from '../api-client';
|
|
2
|
+
import Checker from '../checker/Checker';
|
|
9
3
|
import BadResponse from '../domain/BadResponse';
|
|
10
|
-
import ServerError from '../domain/ServerError';
|
|
11
|
-
import SFUNotAvailableError from '../domain/SFUNotAvailableError';
|
|
12
4
|
import Call from '../domain/Call';
|
|
13
5
|
import CallLog from '../domain/CallLog';
|
|
14
|
-
import
|
|
6
|
+
import CallSession from '../domain/CallSession';
|
|
15
7
|
import ChatMessage from '../domain/ChatMessage';
|
|
16
8
|
import ChatRoom from '../domain/ChatRoom';
|
|
17
9
|
import Contact from '../domain/Contact';
|
|
10
|
+
import Features from '../domain/Features';
|
|
18
11
|
import ForwardOption from '../domain/ForwardOption';
|
|
12
|
+
import IndirectTransfer from '../domain/IndirectTransfer';
|
|
19
13
|
import Line from '../domain/Line';
|
|
14
|
+
import Meeting from '../domain/Meeting';
|
|
20
15
|
import NotificationOptions from '../domain/NotificationOptions';
|
|
16
|
+
import CTIPhone from '../domain/Phone/CTIPhone';
|
|
17
|
+
import WebRTCPhone from '../domain/Phone/WebRTCPhone';
|
|
21
18
|
import Profile from '../domain/Profile';
|
|
22
|
-
import
|
|
23
|
-
import Voicemail from '../domain/Voicemail';
|
|
19
|
+
import Recording from '../domain/Recording';
|
|
24
20
|
import Relocation from '../domain/Relocation';
|
|
25
21
|
import ConferenceRoom from '../domain/Room';
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import IndirectTransfer from '../domain/IndirectTransfer';
|
|
22
|
+
import ServerError from '../domain/ServerError';
|
|
23
|
+
import Session from '../domain/Session';
|
|
24
|
+
import SFUNotAvailableError from '../domain/SFUNotAvailableError';
|
|
30
25
|
import SwitchboardCall from '../domain/SwitchboardCall';
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
26
|
+
import Voicemail from '../domain/Voicemail';
|
|
27
|
+
import getApiClient from '../service/getApiClient';
|
|
28
|
+
import IssueReporter from '../service/IssueReporter';
|
|
29
|
+
import { CanceledCallError } from '../web-rtc-client';
|
|
30
|
+
import Auth, { InvalidAuthorization, InvalidSubscription, NoDomainNameError, NoSamlRouteError, NoTenantIdError, SamlConfigError } from './Auth';
|
|
31
|
+
import Configuration from './Configuration';
|
|
32
|
+
import Directory from './Directory';
|
|
33
|
+
import Phone from './Phone';
|
|
34
|
+
import LocalParticipant from './room/LocalParticipant';
|
|
35
|
+
import Participant from './room/Participant';
|
|
36
|
+
import RemoteParticipant from './room/RemoteParticipant';
|
|
37
|
+
import Room from './room/Room';
|
|
38
|
+
import SipRoom from './room/SipRoom';
|
|
39
|
+
import Stream from './room/Stream';
|
|
40
|
+
import { createLocalAudioStream, createLocalVideoStream } from './utils';
|
|
41
|
+
import Websocket from './Websocket';
|
|
42
|
+
type WazoType = {
|
|
43
|
+
Auth: typeof Auth;
|
|
44
|
+
Phone: typeof Phone;
|
|
45
|
+
Websocket: typeof Websocket;
|
|
37
46
|
Room: typeof Room;
|
|
38
47
|
SipRoom: typeof SipRoom;
|
|
39
48
|
RemoteParticipant: typeof RemoteParticipant;
|
|
40
49
|
LocalParticipant: typeof LocalParticipant;
|
|
41
50
|
Participant: typeof Participant;
|
|
42
51
|
Stream: typeof Stream;
|
|
43
|
-
createLocalVideoStream:
|
|
44
|
-
createLocalAudioStream:
|
|
45
|
-
Configuration:
|
|
46
|
-
Directory:
|
|
47
|
-
getApiClient:
|
|
48
|
-
IssueReporter:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
LOG: string;
|
|
52
|
-
WARN: string;
|
|
53
|
-
ERROR: string;
|
|
54
|
-
oldConsoleMethods: Record<string, any> | null;
|
|
55
|
-
enabled: boolean;
|
|
56
|
-
remoteClientConfiguration: Record<string, any> | null | undefined;
|
|
57
|
-
buffer: Record<string, any>[];
|
|
58
|
-
bufferTimeout: any | null | undefined;
|
|
59
|
-
_boundProcessBuffer: (...args: Array<any>) => any;
|
|
60
|
-
_boundParseLoggerBody: (...args: Array<any>) => any;
|
|
61
|
-
_callback: ((...args: Array<any>) => any) | null | undefined;
|
|
62
|
-
init(): void;
|
|
63
|
-
setCallback(cb: (...args: Array<any>) => any): void;
|
|
64
|
-
configureRemoteClient(configuration?: Record<string, any>): void;
|
|
65
|
-
enable(): void;
|
|
66
|
-
disable(): void;
|
|
67
|
-
loggerFor(category: string): any;
|
|
68
|
-
removeSlashes(str: string): string;
|
|
69
|
-
obfuscateHeaderToken(headers: object): object;
|
|
70
|
-
log(level: string, ...args: any): void;
|
|
71
|
-
logRequest(url: string, options: Record<string, any>, response: Record<string, any>, start: Date): void;
|
|
72
|
-
getLogs(): never[];
|
|
73
|
-
getParsedLogs(): never[];
|
|
74
|
-
getReport(): string;
|
|
75
|
-
_catchConsole(): void;
|
|
76
|
-
_sendToRemoteLogger(level: string, payload?: Record<string, any>): void;
|
|
77
|
-
_parseLoggerBody(payload: Record<string, any>): string;
|
|
78
|
-
_addToBuffer(payload: Record<string, any>): void;
|
|
79
|
-
_processBuffer(): void;
|
|
80
|
-
_computeRetryDelay(attempt: number, initial?: number, maxWait?: number): number;
|
|
81
|
-
_sendDebugToGrafana(payload: string | Record<string, any> | Record<string, any>[], retry?: number): void;
|
|
82
|
-
_writeRetryCount(message: string | Record<string, any>, count: number): string | Record<string, any>;
|
|
83
|
-
_isLevelAbove(level1: string, level2: string): boolean;
|
|
84
|
-
_makeCategory(category: string): string;
|
|
85
|
-
};
|
|
86
|
-
loggerFor: (category: string) => any;
|
|
87
|
-
Features: {
|
|
88
|
-
_hasChat: boolean;
|
|
89
|
-
_hasVideo: boolean;
|
|
90
|
-
_hasCallRecording: boolean;
|
|
91
|
-
_hasFax: boolean;
|
|
92
|
-
_hasMobileDoubleCall: boolean;
|
|
93
|
-
_hasMobileGsm: boolean;
|
|
94
|
-
_hasMeeting: boolean;
|
|
95
|
-
_hasCallerID: boolean;
|
|
96
|
-
fetchAccess(): Promise<void>;
|
|
97
|
-
hasChat(): boolean;
|
|
98
|
-
hasVideo(): boolean;
|
|
99
|
-
hasCallRecording(): boolean;
|
|
100
|
-
hasFax(): boolean;
|
|
101
|
-
hasMobileDoubleCall(): boolean;
|
|
102
|
-
hasMobileGsm(): boolean;
|
|
103
|
-
hasMeeting(): boolean;
|
|
104
|
-
hasCallerID(): boolean;
|
|
105
|
-
_hasFeatures(scopes: Record<string, any>, featureName: string): boolean;
|
|
106
|
-
};
|
|
52
|
+
createLocalVideoStream: typeof createLocalVideoStream;
|
|
53
|
+
createLocalAudioStream: typeof createLocalAudioStream;
|
|
54
|
+
Configuration: typeof Configuration;
|
|
55
|
+
Directory: typeof Directory;
|
|
56
|
+
getApiClient: typeof getApiClient;
|
|
57
|
+
IssueReporter: typeof IssueReporter;
|
|
58
|
+
loggerFor: typeof IssueReporter.loggerFor;
|
|
59
|
+
Features: typeof Features;
|
|
107
60
|
Checker: typeof Checker;
|
|
108
61
|
domain: {
|
|
109
62
|
BadResponse: typeof BadResponse;
|
|
@@ -129,272 +82,17 @@ declare const Wazo: {
|
|
|
129
82
|
WebRTCPhone: typeof WebRTCPhone;
|
|
130
83
|
Meeting: typeof Meeting;
|
|
131
84
|
};
|
|
132
|
-
readonly api:
|
|
133
|
-
readonly agentd:
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
staticResume: () => Promise<boolean>;
|
|
144
|
-
};
|
|
145
|
-
readonly amid: {
|
|
146
|
-
action: (action: string, args?: Record<string, any>) => Promise<string>;
|
|
147
|
-
getAors: (endpoint: string) => Promise<any[]>;
|
|
148
|
-
};
|
|
149
|
-
readonly application: {
|
|
150
|
-
bridgeCall(applicationUuid: string, callId: number, context: string, exten: string, autoanswer: string, displayed_caller_id_number: string | null | undefined): Promise<Record<string, any>>;
|
|
151
|
-
answerCall: (applicationUuid: string, callId: number) => Promise<boolean>;
|
|
152
|
-
calls: (applicationUuid: string) => Promise<boolean>;
|
|
153
|
-
hangupCall: (applicationUuid: string, callId: number) => Promise<boolean>;
|
|
154
|
-
startPlaybackCall: (applicationUuid: string, callId: number, language: string, uri: string) => Promise<boolean>;
|
|
155
|
-
stopPlaybackCall: (applicationUuid: string, playbackUuid: string) => Promise<boolean>;
|
|
156
|
-
startProgressCall: (applicationUuid: string, callId: number) => Promise<boolean>;
|
|
157
|
-
stopProgressCall: (applicationUuid: string, callId: number) => Promise<boolean>;
|
|
158
|
-
startMohCall: (applicationUuid: string, callId: number, mohUuid: string) => Promise<boolean>;
|
|
159
|
-
stopMohCall: (applicationUuid: string, callId: number) => Promise<boolean>;
|
|
160
|
-
startHoldCall: (applicationUuid: string, callId: number) => Promise<boolean>;
|
|
161
|
-
stopHoldCall: (applicationUuid: string, callId: number) => Promise<boolean>;
|
|
162
|
-
startMuteCall: (applicationUuid: string, callId: number) => Promise<boolean>;
|
|
163
|
-
stopMuteCall: (applicationUuid: string, callId: number) => Promise<boolean>;
|
|
164
|
-
sendDTMFCall: (applicationUuid: string, callId: number, digits: number) => Promise<boolean>;
|
|
165
|
-
addCallNodes: (applicationUuid: string, nodeUuid: string, callId: string) => Promise<boolean>;
|
|
166
|
-
createNewNodeWithCall: (applicationUuid: string, calls: Array<Record<string, any>>) => Promise<boolean>;
|
|
167
|
-
addNewCallNodes: (applicationUuid: string, nodeUuid: string, context: string, exten: string, autoanswer: string) => Promise<boolean>;
|
|
168
|
-
listCallsNodes: (applicationUuid: string, nodeUuid: string) => Promise<import("..").ListCallNodesResponse>;
|
|
169
|
-
listNodes: (applicationUuid: string) => Promise<import("..").ListNodesResponse>;
|
|
170
|
-
removeNode: (applicationUuid: string, nodeUuid: string) => Promise<boolean>;
|
|
171
|
-
removeCallNodes: (applicationUuid: string, nodeUuid: string, callId: string) => Promise<boolean>;
|
|
172
|
-
listSnoop: (applicationUuid: string) => Promise<import("..").ListNodesResponse>;
|
|
173
|
-
removeSnoop: (applicationUuid: string, snoopUuid: string) => Promise<boolean>;
|
|
174
|
-
viewSnoop: (applicationUuid: string, snoopUuid: string) => Promise<import("..").ListNodesResponse>;
|
|
175
|
-
createSnoop: (applicationUuid: string, callId: number, snoopingCallId: number, whisperMode: string) => Promise<boolean>;
|
|
176
|
-
updateSnoop: (applicationUuid: string, snoopUuid: string, whisperMode: string) => Promise<boolean>;
|
|
177
|
-
};
|
|
178
|
-
readonly auth: {
|
|
179
|
-
checkToken: (token: import("..").Token) => Promise<boolean>;
|
|
180
|
-
authenticate: (token: import("..").Token) => Promise<Session | null | undefined>;
|
|
181
|
-
logIn(params: {
|
|
182
|
-
username: string;
|
|
183
|
-
password: string;
|
|
184
|
-
backend?: string;
|
|
185
|
-
expiration: number;
|
|
186
|
-
mobile?: boolean;
|
|
187
|
-
tenantId?: string;
|
|
188
|
-
domainName?: string;
|
|
189
|
-
headers?: Record<string, string>;
|
|
190
|
-
}): Promise<Session | null | undefined>;
|
|
191
|
-
logOut: (token: import("..").Token) => Promise<import("..").LogoutResponse>;
|
|
192
|
-
samlLogIn: (samlSessionId: string) => Promise<Session | null | undefined>;
|
|
193
|
-
samlLogOut(): Promise<void | {
|
|
194
|
-
location: string;
|
|
195
|
-
}>;
|
|
196
|
-
initiateIdpAuthentication: (domain: string, redirectUrl: string) => Promise<any>;
|
|
197
|
-
refreshToken: (refreshToken: string, backend: string, expiration: number, isMobile?: boolean, tenantId?: string, domainName?: string) => Promise<Session | null | undefined>;
|
|
198
|
-
deleteRefreshToken: (clientId: string) => Promise<boolean>;
|
|
199
|
-
updatePassword: (userUuid: import("..").UUID, oldPassword: string, newPassword: string) => Promise<boolean>;
|
|
200
|
-
getDeviceToken: (userUuid: import("..").UUID) => Promise<import("..").DeviceToken>;
|
|
201
|
-
sendDeviceToken: (userUuid: import("..").UUID, deviceToken: string, apnsVoipToken: string | null | undefined, apnsNotificationToken: string | null | undefined) => Promise<void>;
|
|
202
|
-
getPushNotificationSenderId: (userUuid: import("..").UUID) => Promise<string>;
|
|
203
|
-
sendResetPasswordEmail: ({ username, email }: {
|
|
204
|
-
username?: string;
|
|
205
|
-
email?: string;
|
|
206
|
-
}) => Promise<boolean>;
|
|
207
|
-
resetPassword: (userUuid: string, password: string) => Promise<boolean>;
|
|
208
|
-
removeDeviceToken: (userUuid: import("..").UUID) => Promise<void>;
|
|
209
|
-
createUser: (username: string, password: string, firstname: string, lastname: string) => Promise<import("..").User>;
|
|
210
|
-
addUserEmail: (userUuid: import("..").UUID, email: string, main?: boolean) => Promise<void>;
|
|
211
|
-
addUserPolicy: (userUuid: import("..").UUID, policyUuid: import("..").UUID) => Promise<void>;
|
|
212
|
-
getRestrictionPolicies: (scopes: string[]) => Promise<any>;
|
|
213
|
-
deleteUserPolicy: (userUuid: import("..").UUID, policyUuid: import("..").UUID) => Promise<any>;
|
|
214
|
-
addUserGroup: (userUuid: import("..").UUID, groupUuid: import("..").UUID) => Promise<any>;
|
|
215
|
-
listUsersGroup: (groupUuid: import("..").UUID) => Promise<any>;
|
|
216
|
-
deleteUserGroup: (userUuid: import("..").UUID, groupUuid: import("..").UUID) => Promise<void>;
|
|
217
|
-
getUser: (userUuid: import("..").UUID) => Promise<import("..").GetUserResponse>;
|
|
218
|
-
getUserSession: (userUuid: import("..").UUID) => Promise<any>;
|
|
219
|
-
deleteUserSession: (userUuid: import("..").UUID, sessionUuids: import("..").UUID) => Promise<void>;
|
|
220
|
-
listUsers: () => Promise<import("..").ListUsersResponse>;
|
|
221
|
-
deleteUser: (userUuid: import("..").UUID) => Promise<boolean>;
|
|
222
|
-
listTenants: () => Promise<import("..").ListTenantsResponse>;
|
|
223
|
-
getTenant: (tenantUuid: import("..").UUID) => Promise<import("..").GetTenantResponse>;
|
|
224
|
-
createTenant: (name: string) => Promise<import("..").Tenant>;
|
|
225
|
-
updateTenant: (uuid: import("..").UUID, name: string, contact: string, phone: string, address: Array<Record<string, any>>) => Promise<import("..").Tenant>;
|
|
226
|
-
deleteTenant: (uuid: import("..").UUID) => Promise<boolean>;
|
|
227
|
-
createGroup: (name: string) => Promise<void>;
|
|
228
|
-
listGroups: () => Promise<import("..").ListGroupsResponse>;
|
|
229
|
-
deleteGroup: (uuid: import("..").UUID) => Promise<boolean>;
|
|
230
|
-
createPolicy: (name: string, description: string, aclTemplates: Array<Record<string, any>>) => Promise<void>;
|
|
231
|
-
listPolicies: () => Promise<import("..").ListPoliciesResponse>;
|
|
232
|
-
deletePolicy: (policyUuid: import("..").UUID) => Promise<boolean>;
|
|
233
|
-
getProviders: (userUuid: import("..").UUID) => Promise<any>;
|
|
234
|
-
getProviderToken: (userUuid: import("..").UUID, provider: string) => Promise<string>;
|
|
235
|
-
getProviderAuthUrl: (userUuid: import("..").UUID, provider: string) => Promise<string>;
|
|
236
|
-
deleteProviderToken: (userUuid: import("..").UUID, provider: string) => Promise<void>;
|
|
237
|
-
};
|
|
238
|
-
readonly callLogd: {
|
|
239
|
-
search: (search: string, limit?: number) => Promise<Array<CallLog>>;
|
|
240
|
-
searchBy: (field: string, value: string, limit?: number) => Promise<Array<CallLog>>;
|
|
241
|
-
listCallLogs: (offset?: number, limit?: number, queryParameters?: import("../domain/CallLog").CallLogQueryParams) => Promise<Array<CallLog>>;
|
|
242
|
-
listDistinctCallLogs: (offset: number, limit?: number, distinct?: string) => Promise<Array<CallLog>>;
|
|
243
|
-
listCallLogsFromDate: (from: Date, number: string) => Promise<Array<CallLog>>;
|
|
244
|
-
};
|
|
245
|
-
readonly calld: {
|
|
246
|
-
updatePresence: (presence: string) => Promise<boolean>;
|
|
247
|
-
listMessages: (participantUuid: import("..").UUID | null | undefined, limit?: number) => Promise<Array<ChatMessage>>;
|
|
248
|
-
sendMessage: (alias: string, msg: string, toUserId: string) => Promise<boolean>;
|
|
249
|
-
makeCall: (extension: string, fromMobile: boolean, lineId: number | null | undefined, allLines?: boolean | null | undefined) => Promise<import("../domain/Call").CallResponse>;
|
|
250
|
-
cancelCall: (callId: string) => Promise<boolean>;
|
|
251
|
-
listCalls: () => Promise<Array<Call>>;
|
|
252
|
-
relocateCall(callId: string, destination: string, lineId: number | null | undefined, contact?: string | null | undefined): Promise<Relocation>;
|
|
253
|
-
listVoicemails: () => Promise<Array<Voicemail>>;
|
|
254
|
-
deleteVoicemail: (voicemailId: string) => Promise<boolean>;
|
|
255
|
-
getVoicemailUrl: (voicemail: Voicemail) => string;
|
|
256
|
-
updateVoicemailFolder: (voicemail: Voicemail, folder: import("..").VoicemailFolderType) => Promise<void>;
|
|
257
|
-
fetchSwitchboardHeldCalls: (switchboardUuid: import("..").UUID) => Promise<any>;
|
|
258
|
-
holdSwitchboardCall: (switchboardUuid: import("..").UUID, callId: string) => Promise<boolean>;
|
|
259
|
-
answerSwitchboardHeldCall: (switchboardUuid: import("..").UUID, callId: string, lineId?: string | null | undefined) => Promise<void>;
|
|
260
|
-
fetchSwitchboardQueuedCalls: (switchboardUuid: import("..").UUID) => Promise<any>;
|
|
261
|
-
answerSwitchboardQueuedCall: (switchboardUuid: import("..").UUID, callId: string, lineId?: string | null | undefined) => Promise<any>;
|
|
262
|
-
sendFax: (extension: string, fax: string, callerId?: string) => Promise<void>;
|
|
263
|
-
getConferenceParticipantsAsUser: (conferenceId: string) => Promise<Record<string, any>>;
|
|
264
|
-
getMeetingParticipantsAsUser: (meetingUuid: string) => Promise<Record<string, any>>;
|
|
265
|
-
banMeetingParticipant: (meetingUuid: string, participantUuid: string) => Promise<boolean>;
|
|
266
|
-
listTrunks: () => Promise<any>;
|
|
267
|
-
mute: (callId: string) => Promise<boolean>;
|
|
268
|
-
unmute: (callId: string) => Promise<boolean>;
|
|
269
|
-
hold: (callId: string) => Promise<boolean>;
|
|
270
|
-
resume: (callId: string) => Promise<boolean>;
|
|
271
|
-
transferCall: (initiator_call: string, exten: string, flow: string) => Promise<IndirectTransfer>;
|
|
272
|
-
confirmCallTransfer: (transferId: string) => Promise<boolean>;
|
|
273
|
-
cancelCallTransfer: (transferId: string) => Promise<boolean>;
|
|
274
|
-
sendDTMF: (callId: string, digits: string) => Promise<boolean>;
|
|
275
|
-
isAhHocConferenceAPIEnabled: () => Promise<boolean>;
|
|
276
|
-
createAdHocConference: (hostCallId: string, participantCallIds: string[]) => Promise<any>;
|
|
277
|
-
addAdHocConferenceParticipant: (conferenceId: string, callId: string) => Promise<boolean>;
|
|
278
|
-
removeAdHocConferenceParticipant: (conferenceId: string, participantCallId: string) => Promise<boolean>;
|
|
279
|
-
deleteAdHocConference: (conferenceId: string) => Promise<boolean>;
|
|
280
|
-
startRecording: (callId: string) => Promise<boolean>;
|
|
281
|
-
stopRecording: (callId: string) => Promise<boolean>;
|
|
282
|
-
pauseRecording: (callId: string) => Promise<boolean>;
|
|
283
|
-
resumeRecording: (callId: string) => Promise<boolean>;
|
|
284
|
-
guestGetMeetingStatus: (meetingUuid: string) => Promise<import("..").MeetingStatus>;
|
|
285
|
-
};
|
|
286
|
-
readonly chatd: {
|
|
287
|
-
updateState: (contactUuid: import("..").UUID, state: string) => Promise<boolean>;
|
|
288
|
-
updateStatus: (contactUuid: import("..").UUID, state: string, status: string) => Promise<boolean>;
|
|
289
|
-
getState: (contactUuid: import("..").UUID) => Promise<string>;
|
|
290
|
-
getContactStatusInfo: (contactUuid: import("..").UUID) => Promise<import("..").PresenceResponse>;
|
|
291
|
-
getLineState: (contactUuid: import("..").UUID) => Promise<string>;
|
|
292
|
-
getMultipleLineState(contactUuids: Array<import("..").UUID> | null | undefined): Promise<Array<import("..").PresenceResponse>>;
|
|
293
|
-
getUserRooms: () => Promise<Array<ChatRoom>>;
|
|
294
|
-
createRoom: (name: string, users: Array<import("..").ChatUser>) => Promise<ChatRoom>;
|
|
295
|
-
getRoomMessages: (roomUuid: string, params?: {
|
|
296
|
-
direction?: string;
|
|
297
|
-
limit?: number;
|
|
298
|
-
order?: string;
|
|
299
|
-
offset?: string;
|
|
300
|
-
search?: string;
|
|
301
|
-
distinct?: string;
|
|
302
|
-
}) => Promise<Array<ChatMessage>>;
|
|
303
|
-
sendRoomMessage: (roomUuid: string, message: ChatMessage) => Promise<ChatMessage>;
|
|
304
|
-
getMessages: (options: {
|
|
305
|
-
direction?: string;
|
|
306
|
-
limit?: number;
|
|
307
|
-
order?: string;
|
|
308
|
-
offset?: string;
|
|
309
|
-
search?: string;
|
|
310
|
-
distinct?: string;
|
|
311
|
-
}) => Promise<import("../domain/ChatMessage").ChatMessageListResponse>;
|
|
312
|
-
};
|
|
313
|
-
readonly confd: {
|
|
314
|
-
listUsers: () => Promise<import("..").ListConfdUsersResponse>;
|
|
315
|
-
getUser: (userUuid: string) => Promise<Profile>;
|
|
316
|
-
updateUser: (userUuid: string, profile: Profile) => Promise<boolean>;
|
|
317
|
-
updateForwardOption: (userUuid: string, key: import("..").ForwardName, destination: string, enabled: boolean) => Promise<boolean>;
|
|
318
|
-
updateForwardOptions: (userUuid: string, options: Record<import("..").ForwardName, {
|
|
319
|
-
destination: string;
|
|
320
|
-
enabled: boolean;
|
|
321
|
-
}>) => Promise<boolean>;
|
|
322
|
-
updateDoNotDisturb: (userUuid: import("..").UUID, enabled: boolean) => Promise<boolean>;
|
|
323
|
-
getUserLineSip: (userUuid: string, lineId: string) => Promise<import("..").SipLine>;
|
|
324
|
-
getUserLinesSip(userUuid: string, lineIds: string[]): Promise<(import("..").SipLine | null)[]>;
|
|
325
|
-
getUserLineSipFromToken(userUuid: string): Promise<any>;
|
|
326
|
-
listApplications: () => Promise<import("..").ListApplicationsResponse>;
|
|
327
|
-
getInfos: () => Promise<{
|
|
328
|
-
uuid: string;
|
|
329
|
-
wazo_version: string;
|
|
330
|
-
}>;
|
|
331
|
-
getExternalApps: (userUuid: string) => Promise<import("..").ExternalApp[]>;
|
|
332
|
-
getExternalApp: (userUuid: string, name: string) => Promise<import("..").ExternalApp | null | undefined>;
|
|
333
|
-
getMyMeetings: () => Promise<Meeting[]>;
|
|
334
|
-
createMyMeeting: (args: import("..").MeetingCreateArguments) => Promise<Meeting>;
|
|
335
|
-
updateMyMeeting: (meetingUuid: string, data: import("..").MeetingUpdateArguments) => Promise<boolean>;
|
|
336
|
-
deleteMyMeeting: (meetingUuid: string) => Promise<Meeting>;
|
|
337
|
-
getMeeting: (meetingUuid: string) => Promise<Meeting>;
|
|
338
|
-
meetingAuthorizations: (meetingUuid: string) => Promise<Array<import("..").MeetingAuthorization>>;
|
|
339
|
-
meetingAuthorizationReject: (meetingUuid: string, authorizationUuid: string) => Promise<boolean>;
|
|
340
|
-
meetingAuthorizationAccept: (meetingUuid: string, authorizationUuid: string) => Promise<boolean>;
|
|
341
|
-
guestGetMeeting: (meetingUuid: string) => Promise<Meeting>;
|
|
342
|
-
guestAuthorizationRequest: (userUuid: string, meetingUuid: string, username: string) => Promise<any>;
|
|
343
|
-
guestAuthorizationCheck: (userUuid: string, meetingUuid: string, authorizationUuid: string) => Promise<any>;
|
|
344
|
-
getOutgoingCallerIDs: (userUuid: string) => Promise<import("..").CallerID[]>;
|
|
345
|
-
getBlockNumbers: (opts?: import("..").ApiParams<{
|
|
346
|
-
number?: string;
|
|
347
|
-
name?: string;
|
|
348
|
-
}>) => Promise<import("..").ListResponse<import("..").BlockNumber>>;
|
|
349
|
-
getBlockNumber: (uuid: import("..").UUID) => Promise<import("..").BlockNumber>;
|
|
350
|
-
createBlockNumber: (body: import("..").BlockNumberBody) => Promise<import("..").BlockNumber>;
|
|
351
|
-
updateBlockNumber: (uuid: string, body: import("..").BlockNumberBody) => Promise<boolean>;
|
|
352
|
-
deleteBlockNumber: (uuid: string) => Promise<boolean>;
|
|
353
|
-
};
|
|
354
|
-
readonly dird: {
|
|
355
|
-
search: (context: string, term: string, offset?: number, limit?: (number | null)) => Promise<Array<Contact>>;
|
|
356
|
-
listPersonalContacts: (queryParams?: import("..").QueryParams) => Promise<Contact[]>;
|
|
357
|
-
fetchPersonalContact: (contactUuid: string) => Promise<Contact>;
|
|
358
|
-
addContact: (contact: import("..").NewContact) => Promise<Contact>;
|
|
359
|
-
editContact: (contact: Contact) => Promise<Contact>;
|
|
360
|
-
importContacts: (csv: string) => Promise<Contact[]>;
|
|
361
|
-
deleteContact: (contactUuid: import("..").UUID) => Promise<void>;
|
|
362
|
-
listFavorites: (context: string) => Promise<Array<Contact>>;
|
|
363
|
-
markAsFavorite: (source: string, sourceId: string) => Promise<boolean>;
|
|
364
|
-
removeFavorite: (source: string, sourceId: string) => Promise<void>;
|
|
365
|
-
fetchOffice365Source: (context: string) => Promise<import("..").Sources>;
|
|
366
|
-
fetchOffice365Contacts: (source: import("..").Source, queryParams?: import("..").SearchableQueryParams) => Promise<Contact[]>;
|
|
367
|
-
fetchWazoSource: (context: string) => Promise<import("..").Sources>;
|
|
368
|
-
fetchWazoContacts: (source: import("..").Source, queryParams?: import("..").UuidSearchableQueryParams) => Promise<Contact[]>;
|
|
369
|
-
fetchGoogleSource: (context: string) => Promise<import("..").Sources>;
|
|
370
|
-
fetchGoogleContacts: (source: import("..").Source, queryParams?: import("..").SearchableQueryParams) => Promise<Contact[]>;
|
|
371
|
-
fetchConferenceSource: (context: string) => Promise<import("..").Sources>;
|
|
372
|
-
fetchSourcesFor: (context: string, backend: string) => Promise<import("..").Sources>;
|
|
373
|
-
fetchPhonebookContacts: (source: import("..").Source, queryParams?: import("..").QueryParams) => Promise<{
|
|
374
|
-
items: import("..").PhonebookResponseItem[];
|
|
375
|
-
total: number;
|
|
376
|
-
}>;
|
|
377
|
-
fetchConferenceContacts: (source: import("..").Source, queryParams?: import("..").SearchableQueryParams) => Promise<Contact[]>;
|
|
378
|
-
findMultipleContactsByNumber: (numbers: string[], fields?: Record<string, any>) => Promise<Contact[]>;
|
|
379
|
-
};
|
|
380
|
-
readonly webhookd: {
|
|
381
|
-
getSubscriptions: () => Promise<import("../domain/Subscription").default[]>;
|
|
382
|
-
getSubscription: (uuid: string) => Promise<import("../domain/Subscription").default>;
|
|
383
|
-
createSubscription: (payload: {
|
|
384
|
-
config: {
|
|
385
|
-
body: string;
|
|
386
|
-
content_type: string;
|
|
387
|
-
method: string;
|
|
388
|
-
url: string;
|
|
389
|
-
verify_certificate: string;
|
|
390
|
-
};
|
|
391
|
-
events: string[];
|
|
392
|
-
name: string;
|
|
393
|
-
service: string;
|
|
394
|
-
tags: Record<string, any>;
|
|
395
|
-
}) => Promise<import("../domain/Subscription").default>;
|
|
396
|
-
removeSubscription: (uuid: string) => Promise<import("../domain/Subscription").default>;
|
|
397
|
-
};
|
|
85
|
+
readonly api: WazoApiClient;
|
|
86
|
+
readonly agentd: WazoApiClient['agentd'];
|
|
87
|
+
readonly amid: WazoApiClient['amid'];
|
|
88
|
+
readonly application: WazoApiClient['application'];
|
|
89
|
+
readonly auth: WazoApiClient['auth'];
|
|
90
|
+
readonly callLogd: WazoApiClient['callLogd'];
|
|
91
|
+
readonly calld: WazoApiClient['calld'];
|
|
92
|
+
readonly chatd: WazoApiClient['chatd'];
|
|
93
|
+
readonly confd: WazoApiClient['confd'];
|
|
94
|
+
readonly dird: WazoApiClient['dird'];
|
|
95
|
+
readonly webhookd: WazoApiClient['webhookd'];
|
|
398
96
|
InvalidSubscription: typeof InvalidSubscription;
|
|
399
97
|
InvalidAuthorization: typeof InvalidAuthorization;
|
|
400
98
|
CanceledCallError: typeof CanceledCallError;
|
|
@@ -404,5 +102,6 @@ declare const Wazo: {
|
|
|
404
102
|
NoSamlRouteError: typeof NoSamlRouteError;
|
|
405
103
|
SamlConfigError: typeof SamlConfigError;
|
|
406
104
|
};
|
|
105
|
+
declare const Wazo: WazoType;
|
|
407
106
|
export default Wazo;
|
|
408
107
|
//# sourceMappingURL=index.d.ts.map
|