@wildix/wda-stream-client 1.1.40 → 1.1.44
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-cjs/WdaStream.js +2 -6
- package/dist-cjs/commands/{GetOngoingConferenceCommand.js → ListServicesCommand.js} +7 -7
- package/dist-cjs/commands/index.js +1 -3
- package/dist-cjs/models/index.js +1 -0
- package/dist-cjs/models/models_0.js +65 -41
- package/dist-cjs/models/models_1.js +44 -0
- package/dist-cjs/protocols/Aws_restJson1.js +33 -77
- package/dist-es/WdaStream.js +2 -6
- package/dist-es/commands/ListServicesCommand.js +17 -0
- package/dist-es/commands/index.js +1 -3
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +64 -38
- package/dist-es/models/models_1.js +39 -0
- package/dist-es/protocols/Aws_restJson1.js +28 -68
- package/dist-types/WdaStream.d.ts +6 -19
- package/dist-types/WdaStreamClient.d.ts +3 -5
- package/dist-types/commands/ConsumeEventCommand.d.ts +178 -1
- package/dist-types/commands/DescribeEventCommand.d.ts +120 -44
- package/dist-types/commands/GetOngoingCallCommand.d.ts +47 -1
- package/dist-types/commands/ListServicesCommand.d.ts +87 -0
- package/dist-types/commands/QueryConversationsCommand.d.ts +4 -4
- package/dist-types/commands/QueryPresenceCommand.d.ts +1 -1
- package/dist-types/commands/QueryPresencesCommand.d.ts +1 -1
- package/dist-types/commands/UpdatePresenceLastSeenCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -3
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1191 -386
- package/dist-types/models/models_1.d.ts +272 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +5 -23
- package/package.json +1 -1
- package/dist-cjs/commands/GetOngoingCallTranscriptionCommand.js +0 -21
- package/dist-cjs/commands/GetOngoingConferenceTranscriptionCommand.js +0 -21
- package/dist-es/commands/GetOngoingCallTranscriptionCommand.js +0 -17
- package/dist-es/commands/GetOngoingConferenceCommand.js +0 -17
- package/dist-es/commands/GetOngoingConferenceTranscriptionCommand.js +0 -17
- package/dist-types/commands/GetOngoingCallTranscriptionCommand.d.ts +0 -297
- package/dist-types/commands/GetOngoingConferenceCommand.d.ts +0 -106
- package/dist-types/commands/GetOngoingConferenceTranscriptionCommand.d.ts +0 -142
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { WdaStreamServiceException as __BaseException } from "./WdaStreamServiceException";
|
|
2
|
+
export class MatchNotFoundException extends __BaseException {
|
|
3
|
+
name = "MatchNotFoundException";
|
|
4
|
+
$fault = "client";
|
|
5
|
+
constructor(opts) {
|
|
6
|
+
super({
|
|
7
|
+
name: "MatchNotFoundException",
|
|
8
|
+
$fault: "client",
|
|
9
|
+
...opts
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, MatchNotFoundException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export const PresenceStatus = {
|
|
15
|
+
AWAY: "AWAY",
|
|
16
|
+
DND: "DND",
|
|
17
|
+
OFFLINE: "OFFLINE",
|
|
18
|
+
ONLINE: "ONLINE",
|
|
19
|
+
ONLY_SIP: "ONLY_SIP",
|
|
20
|
+
};
|
|
21
|
+
export const TelephonyStatus = {
|
|
22
|
+
REGISTERED: "REGISTERED",
|
|
23
|
+
RINGING: "RINGING",
|
|
24
|
+
RT: "RT",
|
|
25
|
+
TALKING: "TALKING",
|
|
26
|
+
UNREGISTERED: "UNREGISTERED",
|
|
27
|
+
};
|
|
28
|
+
export class PresenceNotAvailableException extends __BaseException {
|
|
29
|
+
name = "PresenceNotAvailableException";
|
|
30
|
+
$fault = "client";
|
|
31
|
+
constructor(opts) {
|
|
32
|
+
super({
|
|
33
|
+
name: "PresenceNotAvailableException",
|
|
34
|
+
$fault: "client",
|
|
35
|
+
...opts
|
|
36
|
+
});
|
|
37
|
+
Object.setPrototypeOf(this, PresenceNotAvailableException.prototype);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WdaStreamServiceException as __BaseException } from "../models/WdaStreamServiceException";
|
|
2
|
-
import { ConsumeEventInputEvent, ForbiddenException,
|
|
2
|
+
import { ConsumeEventInputEvent, ForbiddenException, ValidationException, } from "../models/models_0";
|
|
3
|
+
import { MatchNotFoundException, PresenceNotAvailableException, } from "../models/models_1";
|
|
3
4
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
4
5
|
import { requestBuilder as rb } from "@smithy/core";
|
|
5
6
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
@@ -69,46 +70,20 @@ export const se_GetOngoingCallCommand = async (input, context) => {
|
|
|
69
70
|
.b(body);
|
|
70
71
|
return b.build();
|
|
71
72
|
};
|
|
72
|
-
export const
|
|
73
|
+
export const se_ListServicesCommand = async (input, context) => {
|
|
73
74
|
const b = rb(input, context);
|
|
74
|
-
const headers = {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
[_c]: [, input[_c]],
|
|
79
|
-
});
|
|
80
|
-
let body;
|
|
81
|
-
b.m("GET")
|
|
82
|
-
.h(headers)
|
|
83
|
-
.q(query)
|
|
84
|
-
.b(body);
|
|
85
|
-
return b.build();
|
|
86
|
-
};
|
|
87
|
-
export const se_GetOngoingConferenceCommand = async (input, context) => {
|
|
88
|
-
const b = rb(input, context);
|
|
89
|
-
const headers = {};
|
|
90
|
-
b.bp("/v2/stream/conferences/{conferenceId}");
|
|
91
|
-
b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
|
|
92
|
-
const query = map({
|
|
93
|
-
[_c]: [, input[_c]],
|
|
94
|
-
});
|
|
95
|
-
let body;
|
|
96
|
-
b.m("GET")
|
|
97
|
-
.h(headers)
|
|
98
|
-
.q(query)
|
|
99
|
-
.b(body);
|
|
100
|
-
return b.build();
|
|
101
|
-
};
|
|
102
|
-
export const se_GetOngoingConferenceTranscriptionCommand = async (input, context) => {
|
|
103
|
-
const b = rb(input, context);
|
|
104
|
-
const headers = {};
|
|
105
|
-
b.bp("/v2/stream/conferences/{conferenceId}/transcription");
|
|
106
|
-
b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
|
|
75
|
+
const headers = {
|
|
76
|
+
'content-type': 'application/json',
|
|
77
|
+
};
|
|
78
|
+
b.bp("/v2/stream/services");
|
|
107
79
|
const query = map({
|
|
108
80
|
[_c]: [, input[_c]],
|
|
109
81
|
});
|
|
110
82
|
let body;
|
|
111
|
-
|
|
83
|
+
body = JSON.stringify(take(input, {
|
|
84
|
+
'filter': _ => _json(_),
|
|
85
|
+
}));
|
|
86
|
+
b.m("POST")
|
|
112
87
|
.h(headers)
|
|
113
88
|
.q(query)
|
|
114
89
|
.b(body);
|
|
@@ -225,6 +200,12 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
225
200
|
'PresenceAnalyticsStatusEvent': _json,
|
|
226
201
|
'PresenceAnalyticsTelephonyEvent': _json,
|
|
227
202
|
'PresenceEventType': __expectString,
|
|
203
|
+
'ServiceAnalyticsLiveCompleteEvent': _json,
|
|
204
|
+
'ServiceAnalyticsLiveProgressEvent': _json,
|
|
205
|
+
'ServiceCallAnalyticsLiveCompleteEvent': _json,
|
|
206
|
+
'ServiceCallAnalyticsLiveProgressEvent': _json,
|
|
207
|
+
'ServiceCallEventType': __expectString,
|
|
208
|
+
'ServiceEventType': __expectString,
|
|
228
209
|
'WebhookCallCompletedEvent': _json,
|
|
229
210
|
'WebhookCallLiveCompletedEvent': _json,
|
|
230
211
|
'WebhookCallLiveInterruptedEvent': _json,
|
|
@@ -284,21 +265,6 @@ export const de_GetConferenceIdCommand = async (output, context) => {
|
|
|
284
265
|
return contents;
|
|
285
266
|
};
|
|
286
267
|
export const de_GetOngoingCallCommand = async (output, context) => {
|
|
287
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
288
|
-
return de_CommandError(output, context);
|
|
289
|
-
}
|
|
290
|
-
const contents = map({
|
|
291
|
-
$metadata: deserializeMetadata(output),
|
|
292
|
-
});
|
|
293
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
294
|
-
const doc = take(data, {
|
|
295
|
-
'company': __expectString,
|
|
296
|
-
'flows': _json,
|
|
297
|
-
});
|
|
298
|
-
Object.assign(contents, doc);
|
|
299
|
-
return contents;
|
|
300
|
-
};
|
|
301
|
-
export const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
|
|
302
268
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
303
269
|
return de_CommandError(output, context);
|
|
304
270
|
}
|
|
@@ -314,7 +280,7 @@ export const de_GetOngoingCallTranscriptionCommand = async (output, context) =>
|
|
|
314
280
|
Object.assign(contents, doc);
|
|
315
281
|
return contents;
|
|
316
282
|
};
|
|
317
|
-
export const
|
|
283
|
+
export const de_ListServicesCommand = async (output, context) => {
|
|
318
284
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
319
285
|
return de_CommandError(output, context);
|
|
320
286
|
}
|
|
@@ -323,22 +289,7 @@ export const de_GetOngoingConferenceCommand = async (output, context) => {
|
|
|
323
289
|
});
|
|
324
290
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
325
291
|
const doc = take(data, {
|
|
326
|
-
'
|
|
327
|
-
});
|
|
328
|
-
Object.assign(contents, doc);
|
|
329
|
-
return contents;
|
|
330
|
-
};
|
|
331
|
-
export const de_GetOngoingConferenceTranscriptionCommand = async (output, context) => {
|
|
332
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
333
|
-
return de_CommandError(output, context);
|
|
334
|
-
}
|
|
335
|
-
const contents = map({
|
|
336
|
-
$metadata: deserializeMetadata(output),
|
|
337
|
-
});
|
|
338
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
339
|
-
const doc = take(data, {
|
|
340
|
-
'conference': _json,
|
|
341
|
-
'transcriptions': _json,
|
|
292
|
+
'services': _json,
|
|
342
293
|
});
|
|
343
294
|
Object.assign(contents, doc);
|
|
344
295
|
return contents;
|
|
@@ -510,6 +461,15 @@ const se_ConsumeEventInputEvent = (input, context) => {
|
|
|
510
461
|
conferenceTranscription: value => ({ "conferenceTranscription": _json(value) }),
|
|
511
462
|
presence: value => ({ "presence": _json(value) }),
|
|
512
463
|
presenceTelephony: value => ({ "presenceTelephony": _json(value) }),
|
|
464
|
+
serviceAgentJoin: value => ({ "serviceAgentJoin": _json(value) }),
|
|
465
|
+
serviceAgentLeave: value => ({ "serviceAgentLeave": _json(value) }),
|
|
466
|
+
serviceAgentUpdate: value => ({ "serviceAgentUpdate": _json(value) }),
|
|
467
|
+
serviceCallEnd: value => ({ "serviceCallEnd": _json(value) }),
|
|
468
|
+
serviceCallInit: value => ({ "serviceCallInit": _json(value) }),
|
|
469
|
+
serviceCallUpdate: value => ({ "serviceCallUpdate": _json(value) }),
|
|
470
|
+
serviceEnd: value => ({ "serviceEnd": _json(value) }),
|
|
471
|
+
serviceInit: value => ({ "serviceInit": _json(value) }),
|
|
472
|
+
serviceUpdate: value => ({ "serviceUpdate": _json(value) }),
|
|
513
473
|
smsInbound: value => ({ "smsInbound": _json(value) }),
|
|
514
474
|
smsStatus: value => ({ "smsStatus": _json(value) }),
|
|
515
475
|
usageStt: value => ({ "usageStt": _json(value) }),
|
|
@@ -3,9 +3,7 @@ import { ConsumeEventCommandInput, ConsumeEventCommandOutput } from "./commands/
|
|
|
3
3
|
import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
|
|
4
4
|
import { GetConferenceIdCommandInput, GetConferenceIdCommandOutput } from "./commands/GetConferenceIdCommand";
|
|
5
5
|
import { GetOngoingCallCommandInput, GetOngoingCallCommandOutput } from "./commands/GetOngoingCallCommand";
|
|
6
|
-
import {
|
|
7
|
-
import { GetOngoingConferenceCommandInput, GetOngoingConferenceCommandOutput } from "./commands/GetOngoingConferenceCommand";
|
|
8
|
-
import { GetOngoingConferenceTranscriptionCommandInput, GetOngoingConferenceTranscriptionCommandOutput } from "./commands/GetOngoingConferenceTranscriptionCommand";
|
|
6
|
+
import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
|
|
9
7
|
import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
|
|
10
8
|
import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "./commands/QueryPresenceCommand";
|
|
11
9
|
import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "./commands/QueryPresencesCommand";
|
|
@@ -38,23 +36,12 @@ export interface WdaStream {
|
|
|
38
36
|
getOngoingCall(args: GetOngoingCallCommandInput, cb: (err: any, data?: GetOngoingCallCommandOutput) => void): void;
|
|
39
37
|
getOngoingCall(args: GetOngoingCallCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingCallCommandOutput) => void): void;
|
|
40
38
|
/**
|
|
41
|
-
* @see {@link
|
|
39
|
+
* @see {@link ListServicesCommand}
|
|
42
40
|
*/
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
* @see {@link GetOngoingConferenceCommand}
|
|
48
|
-
*/
|
|
49
|
-
getOngoingConference(args: GetOngoingConferenceCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingConferenceCommandOutput>;
|
|
50
|
-
getOngoingConference(args: GetOngoingConferenceCommandInput, cb: (err: any, data?: GetOngoingConferenceCommandOutput) => void): void;
|
|
51
|
-
getOngoingConference(args: GetOngoingConferenceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingConferenceCommandOutput) => void): void;
|
|
52
|
-
/**
|
|
53
|
-
* @see {@link GetOngoingConferenceTranscriptionCommand}
|
|
54
|
-
*/
|
|
55
|
-
getOngoingConferenceTranscription(args: GetOngoingConferenceTranscriptionCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingConferenceTranscriptionCommandOutput>;
|
|
56
|
-
getOngoingConferenceTranscription(args: GetOngoingConferenceTranscriptionCommandInput, cb: (err: any, data?: GetOngoingConferenceTranscriptionCommandOutput) => void): void;
|
|
57
|
-
getOngoingConferenceTranscription(args: GetOngoingConferenceTranscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingConferenceTranscriptionCommandOutput) => void): void;
|
|
41
|
+
listServices(): Promise<ListServicesCommandOutput>;
|
|
42
|
+
listServices(args: ListServicesCommandInput, options?: __HttpHandlerOptions): Promise<ListServicesCommandOutput>;
|
|
43
|
+
listServices(args: ListServicesCommandInput, cb: (err: any, data?: ListServicesCommandOutput) => void): void;
|
|
44
|
+
listServices(args: ListServicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListServicesCommandOutput) => void): void;
|
|
58
45
|
/**
|
|
59
46
|
* @see {@link QueryConversationsCommand}
|
|
60
47
|
*/
|
|
@@ -2,9 +2,7 @@ import { ConsumeEventCommandInput, ConsumeEventCommandOutput } from "./commands/
|
|
|
2
2
|
import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
|
|
3
3
|
import { GetConferenceIdCommandInput, GetConferenceIdCommandOutput } from "./commands/GetConferenceIdCommand";
|
|
4
4
|
import { GetOngoingCallCommandInput, GetOngoingCallCommandOutput } from "./commands/GetOngoingCallCommand";
|
|
5
|
-
import {
|
|
6
|
-
import { GetOngoingConferenceCommandInput, GetOngoingConferenceCommandOutput } from "./commands/GetOngoingConferenceCommand";
|
|
7
|
-
import { GetOngoingConferenceTranscriptionCommandInput, GetOngoingConferenceTranscriptionCommandOutput } from "./commands/GetOngoingConferenceTranscriptionCommand";
|
|
5
|
+
import { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
|
|
8
6
|
import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
|
|
9
7
|
import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "./commands/QueryPresenceCommand";
|
|
10
8
|
import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "./commands/QueryPresencesCommand";
|
|
@@ -20,11 +18,11 @@ export { __Client };
|
|
|
20
18
|
/**
|
|
21
19
|
* @public
|
|
22
20
|
*/
|
|
23
|
-
export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | GetOngoingCallCommandInput |
|
|
21
|
+
export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | GetOngoingCallCommandInput | ListServicesCommandInput | QueryConversationsCommandInput | QueryPresenceCommandInput | QueryPresencesCommandInput | UpdatePresenceLastSeenCommandInput;
|
|
24
22
|
/**
|
|
25
23
|
* @public
|
|
26
24
|
*/
|
|
27
|
-
export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | GetOngoingCallCommandOutput |
|
|
25
|
+
export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | GetOngoingCallCommandOutput | ListServicesCommandOutput | QueryConversationsCommandOutput | QueryPresenceCommandOutput | QueryPresencesCommandOutput | UpdatePresenceLastSeenCommandOutput;
|
|
28
26
|
/**
|
|
29
27
|
* @public
|
|
30
28
|
*/
|
|
@@ -359,7 +359,7 @@ declare const ConsumeEventCommand_base: {
|
|
|
359
359
|
* flowIndex: Number("int"), // required
|
|
360
360
|
* flowStartTime: Number("long"), // required
|
|
361
361
|
* callStartTime: Number("long"), // required
|
|
362
|
-
* type: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave", // required
|
|
362
|
+
* type: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave" || "service" || "service_complete" || "service_agent" || "service_call" || "service_call_complete", // required
|
|
363
363
|
* cds: { // CdsTranscriptionPayloadReference
|
|
364
364
|
* id: "STRING_VALUE", // required
|
|
365
365
|
* },
|
|
@@ -870,6 +870,183 @@ declare const ConsumeEventCommand_base: {
|
|
|
870
870
|
* status: "STRING_VALUE",
|
|
871
871
|
* },
|
|
872
872
|
* },
|
|
873
|
+
* serviceInit: { // ServiceInitConsumeEvent
|
|
874
|
+
* id: "STRING_VALUE", // required
|
|
875
|
+
* time: Number("long"), // required
|
|
876
|
+
* pbx: "STRING_VALUE", // required
|
|
877
|
+
* company: "STRING_VALUE", // required
|
|
878
|
+
* type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
|
|
879
|
+
* data: { // ServiceConsumeEventData
|
|
880
|
+
* eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
|
|
881
|
+
* name: "STRING_VALUE",
|
|
882
|
+
* strategy: "STRING_VALUE",
|
|
883
|
+
* maxCalls: "STRING_VALUE",
|
|
884
|
+
* weight: "STRING_VALUE",
|
|
885
|
+
* agents: [ // ServiceAgentsList
|
|
886
|
+
* { // ServiceAgent
|
|
887
|
+
* id: "STRING_VALUE", // required
|
|
888
|
+
* penalty: "STRING_VALUE",
|
|
889
|
+
* type: "STATIC" || "DYNAMIC",
|
|
890
|
+
* paused: true || false,
|
|
891
|
+
* lastQueueCallEnd: Number("long"),
|
|
892
|
+
* userExtension: "STRING_VALUE",
|
|
893
|
+
* name: "STRING_VALUE",
|
|
894
|
+
* },
|
|
895
|
+
* ],
|
|
896
|
+
* calls: [ // ServiceCallsList
|
|
897
|
+
* "STRING_VALUE",
|
|
898
|
+
* ],
|
|
899
|
+
* },
|
|
900
|
+
* },
|
|
901
|
+
* serviceUpdate: { // ServiceUpdateConsumeEvent
|
|
902
|
+
* id: "STRING_VALUE", // required
|
|
903
|
+
* time: Number("long"), // required
|
|
904
|
+
* pbx: "STRING_VALUE", // required
|
|
905
|
+
* company: "STRING_VALUE", // required
|
|
906
|
+
* type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
|
|
907
|
+
* data: {
|
|
908
|
+
* eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
|
|
909
|
+
* name: "STRING_VALUE",
|
|
910
|
+
* strategy: "STRING_VALUE",
|
|
911
|
+
* maxCalls: "STRING_VALUE",
|
|
912
|
+
* weight: "STRING_VALUE",
|
|
913
|
+
* agents: [
|
|
914
|
+
* {
|
|
915
|
+
* id: "STRING_VALUE", // required
|
|
916
|
+
* penalty: "STRING_VALUE",
|
|
917
|
+
* type: "STATIC" || "DYNAMIC",
|
|
918
|
+
* paused: true || false,
|
|
919
|
+
* lastQueueCallEnd: Number("long"),
|
|
920
|
+
* userExtension: "STRING_VALUE",
|
|
921
|
+
* name: "STRING_VALUE",
|
|
922
|
+
* },
|
|
923
|
+
* ],
|
|
924
|
+
* calls: [
|
|
925
|
+
* "STRING_VALUE",
|
|
926
|
+
* ],
|
|
927
|
+
* },
|
|
928
|
+
* },
|
|
929
|
+
* serviceEnd: { // ServiceEndConsumeEvent
|
|
930
|
+
* id: "STRING_VALUE", // required
|
|
931
|
+
* time: Number("long"), // required
|
|
932
|
+
* pbx: "STRING_VALUE", // required
|
|
933
|
+
* company: "STRING_VALUE", // required
|
|
934
|
+
* type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
|
|
935
|
+
* },
|
|
936
|
+
* serviceCallInit: { // ServiceCallInitConsumeEvent
|
|
937
|
+
* id: "STRING_VALUE", // required
|
|
938
|
+
* time: Number("long"), // required
|
|
939
|
+
* pbx: "STRING_VALUE", // required
|
|
940
|
+
* company: "STRING_VALUE", // required
|
|
941
|
+
* type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
|
|
942
|
+
* data: { // ServiceCallConsumeEventData
|
|
943
|
+
* callId: "STRING_VALUE", // required
|
|
944
|
+
* startTime: Number("long"),
|
|
945
|
+
* direction: "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
|
|
946
|
+
* action: "RING" || "REJECT" || "CANCEL" || "ANSWER",
|
|
947
|
+
* customer: { // ServiceCustomer
|
|
948
|
+
* phone: "STRING_VALUE", // required
|
|
949
|
+
* name: "STRING_VALUE",
|
|
950
|
+
* },
|
|
951
|
+
* relatedAgents: [ // ServiceCallAgentsList
|
|
952
|
+
* "STRING_VALUE",
|
|
953
|
+
* ],
|
|
954
|
+
* eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
|
|
955
|
+
* },
|
|
956
|
+
* },
|
|
957
|
+
* serviceCallUpdate: { // ServiceCallUpdateConsumeEvent
|
|
958
|
+
* id: "STRING_VALUE", // required
|
|
959
|
+
* time: Number("long"), // required
|
|
960
|
+
* pbx: "STRING_VALUE", // required
|
|
961
|
+
* company: "STRING_VALUE", // required
|
|
962
|
+
* type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
|
|
963
|
+
* data: {
|
|
964
|
+
* callId: "STRING_VALUE", // required
|
|
965
|
+
* startTime: Number("long"),
|
|
966
|
+
* direction: "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
|
|
967
|
+
* action: "RING" || "REJECT" || "CANCEL" || "ANSWER",
|
|
968
|
+
* customer: {
|
|
969
|
+
* phone: "STRING_VALUE", // required
|
|
970
|
+
* name: "STRING_VALUE",
|
|
971
|
+
* },
|
|
972
|
+
* relatedAgents: [
|
|
973
|
+
* "STRING_VALUE",
|
|
974
|
+
* ],
|
|
975
|
+
* eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
|
|
976
|
+
* },
|
|
977
|
+
* },
|
|
978
|
+
* serviceCallEnd: { // ServiceCallEndConsumeEvent
|
|
979
|
+
* id: "STRING_VALUE", // required
|
|
980
|
+
* time: Number("long"), // required
|
|
981
|
+
* pbx: "STRING_VALUE", // required
|
|
982
|
+
* company: "STRING_VALUE", // required
|
|
983
|
+
* type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
|
|
984
|
+
* data: {
|
|
985
|
+
* callId: "STRING_VALUE", // required
|
|
986
|
+
* startTime: Number("long"),
|
|
987
|
+
* direction: "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
|
|
988
|
+
* action: "RING" || "REJECT" || "CANCEL" || "ANSWER",
|
|
989
|
+
* customer: {
|
|
990
|
+
* phone: "STRING_VALUE", // required
|
|
991
|
+
* name: "STRING_VALUE",
|
|
992
|
+
* },
|
|
993
|
+
* relatedAgents: [
|
|
994
|
+
* "STRING_VALUE",
|
|
995
|
+
* ],
|
|
996
|
+
* eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
|
|
997
|
+
* },
|
|
998
|
+
* },
|
|
999
|
+
* serviceAgentJoin: { // ServiceAgentJoinConsumeEvent
|
|
1000
|
+
* id: "STRING_VALUE", // required
|
|
1001
|
+
* time: Number("long"), // required
|
|
1002
|
+
* pbx: "STRING_VALUE", // required
|
|
1003
|
+
* company: "STRING_VALUE", // required
|
|
1004
|
+
* type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
|
|
1005
|
+
* data: { // ServiceAgentConsumeEventData
|
|
1006
|
+
* id: "STRING_VALUE", // required
|
|
1007
|
+
* penalty: "STRING_VALUE",
|
|
1008
|
+
* type: "STATIC" || "DYNAMIC",
|
|
1009
|
+
* paused: true || false,
|
|
1010
|
+
* lastQueueCallEnd: Number("long"),
|
|
1011
|
+
* userExtension: "STRING_VALUE",
|
|
1012
|
+
* name: "STRING_VALUE",
|
|
1013
|
+
* eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
|
|
1014
|
+
* },
|
|
1015
|
+
* },
|
|
1016
|
+
* serviceAgentUpdate: { // ServiceAgentUpdateConsumeEvent
|
|
1017
|
+
* id: "STRING_VALUE", // required
|
|
1018
|
+
* time: Number("long"), // required
|
|
1019
|
+
* pbx: "STRING_VALUE", // required
|
|
1020
|
+
* company: "STRING_VALUE", // required
|
|
1021
|
+
* type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
|
|
1022
|
+
* data: {
|
|
1023
|
+
* id: "STRING_VALUE", // required
|
|
1024
|
+
* penalty: "STRING_VALUE",
|
|
1025
|
+
* type: "STATIC" || "DYNAMIC",
|
|
1026
|
+
* paused: true || false,
|
|
1027
|
+
* lastQueueCallEnd: Number("long"),
|
|
1028
|
+
* userExtension: "STRING_VALUE",
|
|
1029
|
+
* name: "STRING_VALUE",
|
|
1030
|
+
* eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
|
|
1031
|
+
* },
|
|
1032
|
+
* },
|
|
1033
|
+
* serviceAgentLeave: { // ServiceAgentLeaveConsumeEvent
|
|
1034
|
+
* id: "STRING_VALUE", // required
|
|
1035
|
+
* time: Number("long"), // required
|
|
1036
|
+
* pbx: "STRING_VALUE", // required
|
|
1037
|
+
* company: "STRING_VALUE", // required
|
|
1038
|
+
* type: "SERVICE.INIT" || "SERVICE.UPDATE" || "SERVICE.END" || "SERVICE.CALL_INIT" || "SERVICE.CALL_UPDATE" || "SERVICE.CALL_END" || "SERVICE.AGENT_JOIN" || "SERVICE.AGENT_UPDATE" || "SERVICE.AGENT_LEAVE", // required
|
|
1039
|
+
* data: {
|
|
1040
|
+
* id: "STRING_VALUE", // required
|
|
1041
|
+
* penalty: "STRING_VALUE",
|
|
1042
|
+
* type: "STATIC" || "DYNAMIC",
|
|
1043
|
+
* paused: true || false,
|
|
1044
|
+
* lastQueueCallEnd: Number("long"),
|
|
1045
|
+
* userExtension: "STRING_VALUE",
|
|
1046
|
+
* name: "STRING_VALUE",
|
|
1047
|
+
* eventTrigger: "service.init" || "service.update" || "service.end" || "service.call_init" || "service.call_update" || "service.call_end" || "service.agent_join" || "service.agent_update" || "service.agent_leave", // required
|
|
1048
|
+
* },
|
|
1049
|
+
* },
|
|
873
1050
|
* usageStt: { // TranscriptionUsageEvent
|
|
874
1051
|
* id: "STRING_VALUE", // required
|
|
875
1052
|
* time: Number("long"), // required
|