@wildix/wda-stream-client 1.1.41 → 1.1.45
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 -0
- package/dist-cjs/commands/ListServicesCommand.js +21 -0
- package/dist-cjs/commands/index.js +1 -0
- 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 +54 -3
- package/dist-es/WdaStream.js +2 -0
- package/dist-es/commands/ListServicesCommand.js +17 -0
- package/dist-es/commands/index.js +1 -0
- 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 +50 -1
- package/dist-types/WdaStream.d.ts +8 -0
- package/dist-types/WdaStreamClient.d.ts +3 -2
- package/dist-types/commands/ConsumeEventCommand.d.ts +179 -1
- package/dist-types/commands/DescribeEventCommand.d.ts +120 -44
- package/dist-types/commands/GetOngoingCallCommand.d.ts +2 -2
- 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 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1146 -300
- package/dist-types/models/models_1.d.ts +272 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +1 -1
|
@@ -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,6 +70,25 @@ export const se_GetOngoingCallCommand = async (input, context) => {
|
|
|
69
70
|
.b(body);
|
|
70
71
|
return b.build();
|
|
71
72
|
};
|
|
73
|
+
export const se_ListServicesCommand = async (input, context) => {
|
|
74
|
+
const b = rb(input, context);
|
|
75
|
+
const headers = {
|
|
76
|
+
'content-type': 'application/json',
|
|
77
|
+
};
|
|
78
|
+
b.bp("/v2/stream/services");
|
|
79
|
+
const query = map({
|
|
80
|
+
[_c]: [, input[_c]],
|
|
81
|
+
});
|
|
82
|
+
let body;
|
|
83
|
+
body = JSON.stringify(take(input, {
|
|
84
|
+
'filter': _ => _json(_),
|
|
85
|
+
}));
|
|
86
|
+
b.m("POST")
|
|
87
|
+
.h(headers)
|
|
88
|
+
.q(query)
|
|
89
|
+
.b(body);
|
|
90
|
+
return b.build();
|
|
91
|
+
};
|
|
72
92
|
export const se_QueryConversationsCommand = async (input, context) => {
|
|
73
93
|
const b = rb(input, context);
|
|
74
94
|
const headers = {
|
|
@@ -180,6 +200,12 @@ export const de_DescribeEventCommand = async (output, context) => {
|
|
|
180
200
|
'PresenceAnalyticsStatusEvent': _json,
|
|
181
201
|
'PresenceAnalyticsTelephonyEvent': _json,
|
|
182
202
|
'PresenceEventType': __expectString,
|
|
203
|
+
'ServiceAnalyticsLiveCompleteEvent': _json,
|
|
204
|
+
'ServiceAnalyticsLiveProgressEvent': _json,
|
|
205
|
+
'ServiceCallAnalyticsLiveCompleteEvent': _json,
|
|
206
|
+
'ServiceCallAnalyticsLiveProgressEvent': _json,
|
|
207
|
+
'ServiceCallEventType': __expectString,
|
|
208
|
+
'ServiceEventType': __expectString,
|
|
183
209
|
'WebhookCallCompletedEvent': _json,
|
|
184
210
|
'WebhookCallLiveCompletedEvent': _json,
|
|
185
211
|
'WebhookCallLiveInterruptedEvent': _json,
|
|
@@ -254,6 +280,20 @@ export const de_GetOngoingCallCommand = async (output, context) => {
|
|
|
254
280
|
Object.assign(contents, doc);
|
|
255
281
|
return contents;
|
|
256
282
|
};
|
|
283
|
+
export const de_ListServicesCommand = async (output, context) => {
|
|
284
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
285
|
+
return de_CommandError(output, context);
|
|
286
|
+
}
|
|
287
|
+
const contents = map({
|
|
288
|
+
$metadata: deserializeMetadata(output),
|
|
289
|
+
});
|
|
290
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
291
|
+
const doc = take(data, {
|
|
292
|
+
'services': _json,
|
|
293
|
+
});
|
|
294
|
+
Object.assign(contents, doc);
|
|
295
|
+
return contents;
|
|
296
|
+
};
|
|
257
297
|
export const de_QueryConversationsCommand = async (output, context) => {
|
|
258
298
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
259
299
|
return de_CommandError(output, context);
|
|
@@ -421,6 +461,15 @@ const se_ConsumeEventInputEvent = (input, context) => {
|
|
|
421
461
|
conferenceTranscription: value => ({ "conferenceTranscription": _json(value) }),
|
|
422
462
|
presence: value => ({ "presence": _json(value) }),
|
|
423
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) }),
|
|
424
473
|
smsInbound: value => ({ "smsInbound": _json(value) }),
|
|
425
474
|
smsStatus: value => ({ "smsStatus": _json(value) }),
|
|
426
475
|
usageStt: value => ({ "usageStt": _json(value) }),
|
|
@@ -3,6 +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 { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
|
|
6
7
|
import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
|
|
7
8
|
import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "./commands/QueryPresenceCommand";
|
|
8
9
|
import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "./commands/QueryPresencesCommand";
|
|
@@ -34,6 +35,13 @@ export interface WdaStream {
|
|
|
34
35
|
getOngoingCall(args: GetOngoingCallCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingCallCommandOutput>;
|
|
35
36
|
getOngoingCall(args: GetOngoingCallCommandInput, cb: (err: any, data?: GetOngoingCallCommandOutput) => void): void;
|
|
36
37
|
getOngoingCall(args: GetOngoingCallCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingCallCommandOutput) => void): void;
|
|
38
|
+
/**
|
|
39
|
+
* @see {@link ListServicesCommand}
|
|
40
|
+
*/
|
|
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;
|
|
37
45
|
/**
|
|
38
46
|
* @see {@link QueryConversationsCommand}
|
|
39
47
|
*/
|
|
@@ -2,6 +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 { ListServicesCommandInput, ListServicesCommandOutput } from "./commands/ListServicesCommand";
|
|
5
6
|
import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
|
|
6
7
|
import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "./commands/QueryPresenceCommand";
|
|
7
8
|
import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "./commands/QueryPresencesCommand";
|
|
@@ -17,11 +18,11 @@ export { __Client };
|
|
|
17
18
|
/**
|
|
18
19
|
* @public
|
|
19
20
|
*/
|
|
20
|
-
export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | GetOngoingCallCommandInput | QueryConversationsCommandInput | QueryPresenceCommandInput | QueryPresencesCommandInput | UpdatePresenceLastSeenCommandInput;
|
|
21
|
+
export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | GetOngoingCallCommandInput | ListServicesCommandInput | QueryConversationsCommandInput | QueryPresenceCommandInput | QueryPresencesCommandInput | UpdatePresenceLastSeenCommandInput;
|
|
21
22
|
/**
|
|
22
23
|
* @public
|
|
23
24
|
*/
|
|
24
|
-
export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | GetOngoingCallCommandOutput | QueryConversationsCommandOutput | QueryPresenceCommandOutput | QueryPresencesCommandOutput | UpdatePresenceLastSeenCommandOutput;
|
|
25
|
+
export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | GetOngoingCallCommandOutput | ListServicesCommandOutput | QueryConversationsCommandOutput | QueryPresenceCommandOutput | QueryPresencesCommandOutput | UpdatePresenceLastSeenCommandOutput;
|
|
25
26
|
/**
|
|
26
27
|
* @public
|
|
27
28
|
*/
|
|
@@ -359,10 +359,11 @@ 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
|
* },
|
|
366
|
+
* transcriptionLanguage: "STRING_VALUE",
|
|
366
367
|
* },
|
|
367
368
|
* },
|
|
368
369
|
* conferenceTimeFrames: { // ConferenceTimeFramesConsumeEvent
|
|
@@ -870,6 +871,183 @@ declare const ConsumeEventCommand_base: {
|
|
|
870
871
|
* status: "STRING_VALUE",
|
|
871
872
|
* },
|
|
872
873
|
* },
|
|
874
|
+
* serviceInit: { // ServiceInitConsumeEvent
|
|
875
|
+
* id: "STRING_VALUE", // required
|
|
876
|
+
* time: Number("long"), // required
|
|
877
|
+
* pbx: "STRING_VALUE", // required
|
|
878
|
+
* company: "STRING_VALUE", // required
|
|
879
|
+
* 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
|
|
880
|
+
* data: { // ServiceConsumeEventData
|
|
881
|
+
* 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
|
|
882
|
+
* name: "STRING_VALUE",
|
|
883
|
+
* strategy: "STRING_VALUE",
|
|
884
|
+
* maxCalls: "STRING_VALUE",
|
|
885
|
+
* weight: "STRING_VALUE",
|
|
886
|
+
* agents: [ // ServiceAgentsList
|
|
887
|
+
* { // ServiceAgent
|
|
888
|
+
* id: "STRING_VALUE", // required
|
|
889
|
+
* penalty: "STRING_VALUE",
|
|
890
|
+
* type: "STATIC" || "DYNAMIC",
|
|
891
|
+
* paused: true || false,
|
|
892
|
+
* lastQueueCallEnd: Number("long"),
|
|
893
|
+
* userExtension: "STRING_VALUE",
|
|
894
|
+
* name: "STRING_VALUE",
|
|
895
|
+
* },
|
|
896
|
+
* ],
|
|
897
|
+
* calls: [ // ServiceCallsList
|
|
898
|
+
* "STRING_VALUE",
|
|
899
|
+
* ],
|
|
900
|
+
* },
|
|
901
|
+
* },
|
|
902
|
+
* serviceUpdate: { // ServiceUpdateConsumeEvent
|
|
903
|
+
* id: "STRING_VALUE", // required
|
|
904
|
+
* time: Number("long"), // required
|
|
905
|
+
* pbx: "STRING_VALUE", // required
|
|
906
|
+
* company: "STRING_VALUE", // required
|
|
907
|
+
* 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
|
|
908
|
+
* data: {
|
|
909
|
+
* 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
|
|
910
|
+
* name: "STRING_VALUE",
|
|
911
|
+
* strategy: "STRING_VALUE",
|
|
912
|
+
* maxCalls: "STRING_VALUE",
|
|
913
|
+
* weight: "STRING_VALUE",
|
|
914
|
+
* agents: [
|
|
915
|
+
* {
|
|
916
|
+
* id: "STRING_VALUE", // required
|
|
917
|
+
* penalty: "STRING_VALUE",
|
|
918
|
+
* type: "STATIC" || "DYNAMIC",
|
|
919
|
+
* paused: true || false,
|
|
920
|
+
* lastQueueCallEnd: Number("long"),
|
|
921
|
+
* userExtension: "STRING_VALUE",
|
|
922
|
+
* name: "STRING_VALUE",
|
|
923
|
+
* },
|
|
924
|
+
* ],
|
|
925
|
+
* calls: [
|
|
926
|
+
* "STRING_VALUE",
|
|
927
|
+
* ],
|
|
928
|
+
* },
|
|
929
|
+
* },
|
|
930
|
+
* serviceEnd: { // ServiceEndConsumeEvent
|
|
931
|
+
* id: "STRING_VALUE", // required
|
|
932
|
+
* time: Number("long"), // required
|
|
933
|
+
* pbx: "STRING_VALUE", // required
|
|
934
|
+
* company: "STRING_VALUE", // required
|
|
935
|
+
* 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
|
|
936
|
+
* },
|
|
937
|
+
* serviceCallInit: { // ServiceCallInitConsumeEvent
|
|
938
|
+
* id: "STRING_VALUE", // required
|
|
939
|
+
* time: Number("long"), // required
|
|
940
|
+
* pbx: "STRING_VALUE", // required
|
|
941
|
+
* company: "STRING_VALUE", // required
|
|
942
|
+
* 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
|
|
943
|
+
* data: { // ServiceCallConsumeEventData
|
|
944
|
+
* callId: "STRING_VALUE", // required
|
|
945
|
+
* startTime: Number("long"),
|
|
946
|
+
* direction: "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
|
|
947
|
+
* action: "RING" || "REJECT" || "CANCEL" || "ANSWER",
|
|
948
|
+
* customer: { // ServiceCustomer
|
|
949
|
+
* phone: "STRING_VALUE", // required
|
|
950
|
+
* name: "STRING_VALUE",
|
|
951
|
+
* },
|
|
952
|
+
* relatedAgents: [ // ServiceCallAgentsList
|
|
953
|
+
* "STRING_VALUE",
|
|
954
|
+
* ],
|
|
955
|
+
* 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
|
|
956
|
+
* },
|
|
957
|
+
* },
|
|
958
|
+
* serviceCallUpdate: { // ServiceCallUpdateConsumeEvent
|
|
959
|
+
* id: "STRING_VALUE", // required
|
|
960
|
+
* time: Number("long"), // required
|
|
961
|
+
* pbx: "STRING_VALUE", // required
|
|
962
|
+
* company: "STRING_VALUE", // required
|
|
963
|
+
* 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
|
|
964
|
+
* data: {
|
|
965
|
+
* callId: "STRING_VALUE", // required
|
|
966
|
+
* startTime: Number("long"),
|
|
967
|
+
* direction: "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
|
|
968
|
+
* action: "RING" || "REJECT" || "CANCEL" || "ANSWER",
|
|
969
|
+
* customer: {
|
|
970
|
+
* phone: "STRING_VALUE", // required
|
|
971
|
+
* name: "STRING_VALUE",
|
|
972
|
+
* },
|
|
973
|
+
* relatedAgents: [
|
|
974
|
+
* "STRING_VALUE",
|
|
975
|
+
* ],
|
|
976
|
+
* 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
|
|
977
|
+
* },
|
|
978
|
+
* },
|
|
979
|
+
* serviceCallEnd: { // ServiceCallEndConsumeEvent
|
|
980
|
+
* id: "STRING_VALUE", // required
|
|
981
|
+
* time: Number("long"), // required
|
|
982
|
+
* pbx: "STRING_VALUE", // required
|
|
983
|
+
* company: "STRING_VALUE", // required
|
|
984
|
+
* 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
|
|
985
|
+
* data: {
|
|
986
|
+
* callId: "STRING_VALUE", // required
|
|
987
|
+
* startTime: Number("long"),
|
|
988
|
+
* direction: "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
|
|
989
|
+
* action: "RING" || "REJECT" || "CANCEL" || "ANSWER",
|
|
990
|
+
* customer: {
|
|
991
|
+
* phone: "STRING_VALUE", // required
|
|
992
|
+
* name: "STRING_VALUE",
|
|
993
|
+
* },
|
|
994
|
+
* relatedAgents: [
|
|
995
|
+
* "STRING_VALUE",
|
|
996
|
+
* ],
|
|
997
|
+
* 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
|
|
998
|
+
* },
|
|
999
|
+
* },
|
|
1000
|
+
* serviceAgentJoin: { // ServiceAgentJoinConsumeEvent
|
|
1001
|
+
* id: "STRING_VALUE", // required
|
|
1002
|
+
* time: Number("long"), // required
|
|
1003
|
+
* pbx: "STRING_VALUE", // required
|
|
1004
|
+
* company: "STRING_VALUE", // required
|
|
1005
|
+
* 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
|
|
1006
|
+
* data: { // ServiceAgentConsumeEventData
|
|
1007
|
+
* id: "STRING_VALUE", // required
|
|
1008
|
+
* penalty: "STRING_VALUE",
|
|
1009
|
+
* type: "STATIC" || "DYNAMIC",
|
|
1010
|
+
* paused: true || false,
|
|
1011
|
+
* lastQueueCallEnd: Number("long"),
|
|
1012
|
+
* userExtension: "STRING_VALUE",
|
|
1013
|
+
* name: "STRING_VALUE",
|
|
1014
|
+
* 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
|
|
1015
|
+
* },
|
|
1016
|
+
* },
|
|
1017
|
+
* serviceAgentUpdate: { // ServiceAgentUpdateConsumeEvent
|
|
1018
|
+
* id: "STRING_VALUE", // required
|
|
1019
|
+
* time: Number("long"), // required
|
|
1020
|
+
* pbx: "STRING_VALUE", // required
|
|
1021
|
+
* company: "STRING_VALUE", // required
|
|
1022
|
+
* 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
|
|
1023
|
+
* data: {
|
|
1024
|
+
* id: "STRING_VALUE", // required
|
|
1025
|
+
* penalty: "STRING_VALUE",
|
|
1026
|
+
* type: "STATIC" || "DYNAMIC",
|
|
1027
|
+
* paused: true || false,
|
|
1028
|
+
* lastQueueCallEnd: Number("long"),
|
|
1029
|
+
* userExtension: "STRING_VALUE",
|
|
1030
|
+
* name: "STRING_VALUE",
|
|
1031
|
+
* 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
|
|
1032
|
+
* },
|
|
1033
|
+
* },
|
|
1034
|
+
* serviceAgentLeave: { // ServiceAgentLeaveConsumeEvent
|
|
1035
|
+
* id: "STRING_VALUE", // required
|
|
1036
|
+
* time: Number("long"), // required
|
|
1037
|
+
* pbx: "STRING_VALUE", // required
|
|
1038
|
+
* company: "STRING_VALUE", // required
|
|
1039
|
+
* 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
|
|
1040
|
+
* data: {
|
|
1041
|
+
* id: "STRING_VALUE", // required
|
|
1042
|
+
* penalty: "STRING_VALUE",
|
|
1043
|
+
* type: "STATIC" || "DYNAMIC",
|
|
1044
|
+
* paused: true || false,
|
|
1045
|
+
* lastQueueCallEnd: Number("long"),
|
|
1046
|
+
* userExtension: "STRING_VALUE",
|
|
1047
|
+
* name: "STRING_VALUE",
|
|
1048
|
+
* 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
|
|
1049
|
+
* },
|
|
1050
|
+
* },
|
|
873
1051
|
* usageStt: { // TranscriptionUsageEvent
|
|
874
1052
|
* id: "STRING_VALUE", // required
|
|
875
1053
|
* time: Number("long"), // required
|