@wildix/wda-stream-client 1.1.67 → 3.1.69
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 +3 -3
- package/dist-cjs/WdaStreamClient.js +34 -26
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +58 -0
- package/dist-cjs/commands/ConsumeEventCommand.js +10 -11
- package/dist-cjs/commands/DescribeEventCommand.js +10 -11
- package/dist-cjs/commands/GetConferenceIdCommand.js +10 -11
- package/dist-cjs/commands/GetOngoingCallAnnotationsCommand.js +10 -11
- package/dist-cjs/commands/GetOngoingCallCommand.js +10 -11
- package/dist-cjs/commands/GetOngoingCallTranscriptionCommand.js +10 -11
- package/dist-cjs/commands/GetOngoingChatAnnotationsCommand.js +10 -11
- package/dist-cjs/commands/GetOngoingConferenceAnnotationsCommand.js +10 -11
- package/dist-cjs/commands/GetOngoingConferenceCommand.js +10 -11
- package/dist-cjs/commands/GetOngoingConferenceTranscriptionCommand.js +10 -11
- package/dist-cjs/commands/ListServicesCommand.js +10 -11
- package/dist-cjs/commands/QueryConversationsCommand.js +10 -11
- package/dist-cjs/commands/QueryPresenceCommand.js +10 -11
- package/dist-cjs/commands/QueryPresencesCommand.js +10 -11
- package/dist-cjs/commands/UpdatePresenceLastSeenCommand.js +10 -11
- package/dist-cjs/commands/index.js +2 -2
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/bdd.js +28 -0
- package/dist-cjs/endpoint/endpointResolver.js +16 -0
- package/dist-cjs/index.js +5 -1
- package/dist-cjs/models/WdaStreamServiceException.js +3 -3
- package/dist-cjs/models/enums.js +508 -0
- package/dist-cjs/models/errors.js +56 -0
- package/dist-cjs/models/models_0.js +0 -660
- package/dist-cjs/models/models_1.js +0 -48
- package/dist-cjs/runtimeConfig.browser.js +11 -11
- package/dist-cjs/runtimeConfig.js +22 -18
- package/dist-cjs/runtimeConfig.shared.js +30 -10
- package/dist-cjs/runtimeExtensions.js +6 -5
- package/dist-cjs/schemas/schemas_0.js +2528 -0
- package/dist-es/WdaStream.js +2 -2
- package/dist-es/WdaStreamClient.js +30 -22
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +52 -0
- package/dist-es/commands/ConsumeEventCommand.js +9 -10
- package/dist-es/commands/DescribeEventCommand.js +9 -10
- package/dist-es/commands/GetConferenceIdCommand.js +9 -10
- package/dist-es/commands/GetOngoingCallAnnotationsCommand.js +9 -10
- package/dist-es/commands/GetOngoingCallCommand.js +9 -10
- package/dist-es/commands/GetOngoingCallTranscriptionCommand.js +9 -10
- package/dist-es/commands/GetOngoingChatAnnotationsCommand.js +9 -10
- package/dist-es/commands/GetOngoingConferenceAnnotationsCommand.js +9 -10
- package/dist-es/commands/GetOngoingConferenceCommand.js +9 -10
- package/dist-es/commands/GetOngoingConferenceTranscriptionCommand.js +9 -10
- package/dist-es/commands/ListServicesCommand.js +9 -10
- package/dist-es/commands/QueryConversationsCommand.js +9 -10
- package/dist-es/commands/QueryPresenceCommand.js +9 -10
- package/dist-es/commands/QueryPresencesCommand.js +9 -10
- package/dist-es/commands/UpdatePresenceLastSeenCommand.js +9 -10
- package/dist-es/commands/index.js +2 -2
- package/dist-es/endpoint/EndpointParameters.js +12 -0
- package/dist-es/endpoint/bdd.js +25 -0
- package/dist-es/endpoint/endpointResolver.js +12 -0
- package/dist-es/index.js +5 -1
- package/dist-es/models/WdaStreamServiceException.js +1 -1
- package/dist-es/models/enums.js +504 -0
- package/dist-es/models/errors.js +49 -0
- package/dist-es/models/models_0.js +1 -656
- package/dist-es/models/models_1.js +1 -45
- package/dist-es/runtimeConfig.browser.js +7 -7
- package/dist-es/runtimeConfig.js +17 -13
- package/dist-es/runtimeConfig.shared.js +24 -4
- package/dist-es/runtimeExtensions.js +6 -5
- package/dist-es/schemas/schemas_0.js +2519 -0
- package/dist-types/WdaStream.d.ts +16 -16
- package/dist-types/WdaStreamClient.d.ts +45 -27
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commands/ConsumeEventCommand.d.ts +16 -7
- package/dist-types/commands/DescribeEventCommand.d.ts +24 -18
- package/dist-types/commands/GetConferenceIdCommand.d.ts +11 -7
- package/dist-types/commands/GetOngoingCallAnnotationsCommand.d.ts +13 -9
- package/dist-types/commands/GetOngoingCallCommand.d.ts +13 -9
- package/dist-types/commands/GetOngoingCallTranscriptionCommand.d.ts +14 -10
- package/dist-types/commands/GetOngoingChatAnnotationsCommand.d.ts +11 -7
- package/dist-types/commands/GetOngoingConferenceAnnotationsCommand.d.ts +11 -7
- package/dist-types/commands/GetOngoingConferenceCommand.d.ts +11 -7
- package/dist-types/commands/GetOngoingConferenceTranscriptionCommand.d.ts +11 -7
- package/dist-types/commands/ListServicesCommand.d.ts +11 -7
- package/dist-types/commands/QueryConversationsCommand.d.ts +13 -9
- package/dist-types/commands/QueryPresenceCommand.d.ts +12 -7
- package/dist-types/commands/QueryPresencesCommand.d.ts +11 -7
- package/dist-types/commands/UpdatePresenceLastSeenCommand.d.ts +11 -7
- package/dist-types/commands/index.d.ts +2 -2
- package/dist-types/endpoint/EndpointParameters.d.ts +41 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +4 -3
- package/dist-types/index.d.ts +6 -1
- package/dist-types/models/WdaStreamServiceException.d.ts +1 -1
- package/dist-types/models/enums.d.ts +1088 -0
- package/dist-types/models/errors.d.ts +46 -0
- package/dist-types/models/models_0.d.ts +1111 -1206
- package/dist-types/models/models_1.d.ts +3 -982
- package/dist-types/runtimeConfig.browser.d.ts +35 -16
- package/dist-types/runtimeConfig.d.ts +34 -15
- package/dist-types/runtimeConfig.native.d.ts +36 -17
- package/dist-types/runtimeConfig.shared.d.ts +20 -3
- package/dist-types/runtimeExtensions.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +333 -0
- package/package.json +14 -40
- package/dist-cjs/models/index.js +0 -5
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1340
- package/dist-es/models/index.js +0 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -1307
- package/dist-types/models/index.d.ts +0 -2
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -137
|
@@ -1,1307 +0,0 @@
|
|
|
1
|
-
import { WdaStreamServiceException as __BaseException } from "../models/WdaStreamServiceException";
|
|
2
|
-
import { AnnotationPayload, ConsumeEventInputEvent, ForbiddenException, ValidationException, } from "../models/models_0";
|
|
3
|
-
import { MatchNotFoundException, PresenceNotAvailableException, } from "../models/models_1";
|
|
4
|
-
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
5
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
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, serializeFloat as __serializeFloat, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
7
|
-
export const se_ConsumeEventCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
'content-type': 'application/json',
|
|
11
|
-
};
|
|
12
|
-
b.bp("/v2/stream/events/consume");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(take(input, {
|
|
15
|
-
'event': _ => se_ConsumeEventInputEvent(_, context),
|
|
16
|
-
}));
|
|
17
|
-
b.m("POST")
|
|
18
|
-
.h(headers)
|
|
19
|
-
.b(body);
|
|
20
|
-
return b.build();
|
|
21
|
-
};
|
|
22
|
-
export const se_DescribeEventCommand = async (input, context) => {
|
|
23
|
-
const b = rb(input, context);
|
|
24
|
-
const headers = {
|
|
25
|
-
'content-type': 'application/json',
|
|
26
|
-
};
|
|
27
|
-
b.bp("/v2/stream/events/describe");
|
|
28
|
-
let body;
|
|
29
|
-
body = JSON.stringify(take(input, {
|
|
30
|
-
'SmsInboundEvent': _ => _json(_),
|
|
31
|
-
'SmsStatusEvent': _ => _json(_),
|
|
32
|
-
'WebsocketAuthorizeAction': _ => _json(_),
|
|
33
|
-
'WebsocketSubscribeAction': _ => se_WebsocketSubscribeAction(_, context),
|
|
34
|
-
'WebsocketUnsubscribeAction': _ => se_WebsocketUnsubscribeAction(_, context),
|
|
35
|
-
'WhatsAppInboundEvent': _ => se_WhatsAppInboundEvent(_, context),
|
|
36
|
-
'WhatsAppStatusEvent': _ => se_WhatsAppStatusEvent(_, context),
|
|
37
|
-
}));
|
|
38
|
-
b.m("POST")
|
|
39
|
-
.h(headers)
|
|
40
|
-
.b(body);
|
|
41
|
-
return b.build();
|
|
42
|
-
};
|
|
43
|
-
export const se_GetConferenceIdCommand = async (input, context) => {
|
|
44
|
-
const b = rb(input, context);
|
|
45
|
-
const headers = {};
|
|
46
|
-
b.bp("/v2/stream/conferences/match/{channelId}");
|
|
47
|
-
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
48
|
-
const query = map({
|
|
49
|
-
[_c]: [, input[_c]],
|
|
50
|
-
});
|
|
51
|
-
let body;
|
|
52
|
-
b.m("GET")
|
|
53
|
-
.h(headers)
|
|
54
|
-
.q(query)
|
|
55
|
-
.b(body);
|
|
56
|
-
return b.build();
|
|
57
|
-
};
|
|
58
|
-
export const se_GetOngoingCallCommand = async (input, context) => {
|
|
59
|
-
const b = rb(input, context);
|
|
60
|
-
const headers = {};
|
|
61
|
-
b.bp("/v2/stream/calls/{callId}");
|
|
62
|
-
b.p('callId', () => input.callId, '{callId}', false);
|
|
63
|
-
const query = map({
|
|
64
|
-
[_c]: [, input[_c]],
|
|
65
|
-
});
|
|
66
|
-
let body;
|
|
67
|
-
b.m("GET")
|
|
68
|
-
.h(headers)
|
|
69
|
-
.q(query)
|
|
70
|
-
.b(body);
|
|
71
|
-
return b.build();
|
|
72
|
-
};
|
|
73
|
-
export const se_GetOngoingCallAnnotationsCommand = async (input, context) => {
|
|
74
|
-
const b = rb(input, context);
|
|
75
|
-
const headers = {};
|
|
76
|
-
b.bp("/v2/stream/calls/{callId}/annotations");
|
|
77
|
-
b.p('callId', () => input.callId, '{callId}', false);
|
|
78
|
-
const query = map({
|
|
79
|
-
[_c]: [, input[_c]],
|
|
80
|
-
});
|
|
81
|
-
let body;
|
|
82
|
-
b.m("GET")
|
|
83
|
-
.h(headers)
|
|
84
|
-
.q(query)
|
|
85
|
-
.b(body);
|
|
86
|
-
return b.build();
|
|
87
|
-
};
|
|
88
|
-
export const se_GetOngoingCallTranscriptionCommand = async (input, context) => {
|
|
89
|
-
const b = rb(input, context);
|
|
90
|
-
const headers = {};
|
|
91
|
-
b.bp("/v2/stream/calls/{callId}/transcription");
|
|
92
|
-
b.p('callId', () => input.callId, '{callId}', false);
|
|
93
|
-
const query = map({
|
|
94
|
-
[_c]: [, input[_c]],
|
|
95
|
-
});
|
|
96
|
-
let body;
|
|
97
|
-
b.m("GET")
|
|
98
|
-
.h(headers)
|
|
99
|
-
.q(query)
|
|
100
|
-
.b(body);
|
|
101
|
-
return b.build();
|
|
102
|
-
};
|
|
103
|
-
export const se_GetOngoingChatAnnotationsCommand = async (input, context) => {
|
|
104
|
-
const b = rb(input, context);
|
|
105
|
-
const headers = {};
|
|
106
|
-
b.bp("/v2/stream/chats/{chatId}/annotations");
|
|
107
|
-
b.p('chatId', () => input.chatId, '{chatId}', false);
|
|
108
|
-
const query = map({
|
|
109
|
-
[_c]: [, input[_c]],
|
|
110
|
-
});
|
|
111
|
-
let body;
|
|
112
|
-
b.m("GET")
|
|
113
|
-
.h(headers)
|
|
114
|
-
.q(query)
|
|
115
|
-
.b(body);
|
|
116
|
-
return b.build();
|
|
117
|
-
};
|
|
118
|
-
export const se_GetOngoingConferenceCommand = async (input, context) => {
|
|
119
|
-
const b = rb(input, context);
|
|
120
|
-
const headers = {};
|
|
121
|
-
b.bp("/v2/stream/conferences/{conferenceId}");
|
|
122
|
-
b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
|
|
123
|
-
const query = map({
|
|
124
|
-
[_c]: [, input[_c]],
|
|
125
|
-
});
|
|
126
|
-
let body;
|
|
127
|
-
b.m("GET")
|
|
128
|
-
.h(headers)
|
|
129
|
-
.q(query)
|
|
130
|
-
.b(body);
|
|
131
|
-
return b.build();
|
|
132
|
-
};
|
|
133
|
-
export const se_GetOngoingConferenceAnnotationsCommand = async (input, context) => {
|
|
134
|
-
const b = rb(input, context);
|
|
135
|
-
const headers = {};
|
|
136
|
-
b.bp("/v2/stream/conferences/{conferenceId}/annotations");
|
|
137
|
-
b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
|
|
138
|
-
const query = map({
|
|
139
|
-
[_c]: [, input[_c]],
|
|
140
|
-
});
|
|
141
|
-
let body;
|
|
142
|
-
b.m("GET")
|
|
143
|
-
.h(headers)
|
|
144
|
-
.q(query)
|
|
145
|
-
.b(body);
|
|
146
|
-
return b.build();
|
|
147
|
-
};
|
|
148
|
-
export const se_GetOngoingConferenceTranscriptionCommand = async (input, context) => {
|
|
149
|
-
const b = rb(input, context);
|
|
150
|
-
const headers = {};
|
|
151
|
-
b.bp("/v2/stream/conferences/{conferenceId}/transcription");
|
|
152
|
-
b.p('conferenceId', () => input.conferenceId, '{conferenceId}', false);
|
|
153
|
-
const query = map({
|
|
154
|
-
[_c]: [, input[_c]],
|
|
155
|
-
});
|
|
156
|
-
let body;
|
|
157
|
-
b.m("GET")
|
|
158
|
-
.h(headers)
|
|
159
|
-
.q(query)
|
|
160
|
-
.b(body);
|
|
161
|
-
return b.build();
|
|
162
|
-
};
|
|
163
|
-
export const se_ListServicesCommand = async (input, context) => {
|
|
164
|
-
const b = rb(input, context);
|
|
165
|
-
const headers = {
|
|
166
|
-
'content-type': 'application/json',
|
|
167
|
-
};
|
|
168
|
-
b.bp("/v2/stream/services");
|
|
169
|
-
const query = map({
|
|
170
|
-
[_c]: [, input[_c]],
|
|
171
|
-
});
|
|
172
|
-
let body;
|
|
173
|
-
body = JSON.stringify(take(input, {
|
|
174
|
-
'filter': _ => _json(_),
|
|
175
|
-
}));
|
|
176
|
-
b.m("POST")
|
|
177
|
-
.h(headers)
|
|
178
|
-
.q(query)
|
|
179
|
-
.b(body);
|
|
180
|
-
return b.build();
|
|
181
|
-
};
|
|
182
|
-
export const se_QueryConversationsCommand = async (input, context) => {
|
|
183
|
-
const b = rb(input, context);
|
|
184
|
-
const headers = {
|
|
185
|
-
'content-type': 'application/json',
|
|
186
|
-
};
|
|
187
|
-
b.bp("/v2/stream/conversations");
|
|
188
|
-
const query = map({
|
|
189
|
-
[_c]: [, input[_c]],
|
|
190
|
-
});
|
|
191
|
-
let body;
|
|
192
|
-
body = JSON.stringify(take(input, {
|
|
193
|
-
'filter': _ => _json(_),
|
|
194
|
-
}));
|
|
195
|
-
b.m("POST")
|
|
196
|
-
.h(headers)
|
|
197
|
-
.q(query)
|
|
198
|
-
.b(body);
|
|
199
|
-
return b.build();
|
|
200
|
-
};
|
|
201
|
-
export const se_QueryPresenceCommand = async (input, context) => {
|
|
202
|
-
const b = rb(input, context);
|
|
203
|
-
const headers = {
|
|
204
|
-
'content-type': 'application/json',
|
|
205
|
-
};
|
|
206
|
-
b.bp("/v2/stream/presence/query");
|
|
207
|
-
let body;
|
|
208
|
-
body = JSON.stringify(take(input, {
|
|
209
|
-
'filter': _ => _json(_),
|
|
210
|
-
}));
|
|
211
|
-
b.m("POST")
|
|
212
|
-
.h(headers)
|
|
213
|
-
.b(body);
|
|
214
|
-
return b.build();
|
|
215
|
-
};
|
|
216
|
-
export const se_QueryPresencesCommand = async (input, context) => {
|
|
217
|
-
const b = rb(input, context);
|
|
218
|
-
const headers = {
|
|
219
|
-
'content-type': 'application/json',
|
|
220
|
-
};
|
|
221
|
-
b.bp("/v2/stream/presence/query_multiple");
|
|
222
|
-
let body;
|
|
223
|
-
body = JSON.stringify(take(input, {
|
|
224
|
-
'filter': _ => _json(_),
|
|
225
|
-
}));
|
|
226
|
-
b.m("POST")
|
|
227
|
-
.h(headers)
|
|
228
|
-
.b(body);
|
|
229
|
-
return b.build();
|
|
230
|
-
};
|
|
231
|
-
export const se_UpdatePresenceLastSeenCommand = async (input, context) => {
|
|
232
|
-
const b = rb(input, context);
|
|
233
|
-
const headers = {};
|
|
234
|
-
b.bp("/v2/stream/presence/update_last_seen");
|
|
235
|
-
const query = map({
|
|
236
|
-
[_u]: [, input[_uI]],
|
|
237
|
-
});
|
|
238
|
-
let body;
|
|
239
|
-
b.m("POST")
|
|
240
|
-
.h(headers)
|
|
241
|
-
.q(query)
|
|
242
|
-
.b(body);
|
|
243
|
-
return b.build();
|
|
244
|
-
};
|
|
245
|
-
export const de_ConsumeEventCommand = async (output, context) => {
|
|
246
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
247
|
-
return de_CommandError(output, context);
|
|
248
|
-
}
|
|
249
|
-
const contents = map({
|
|
250
|
-
$metadata: deserializeMetadata(output),
|
|
251
|
-
});
|
|
252
|
-
await collectBody(output.body, context);
|
|
253
|
-
return contents;
|
|
254
|
-
};
|
|
255
|
-
export const de_DescribeEventCommand = async (output, context) => {
|
|
256
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
257
|
-
return de_CommandError(output, context);
|
|
258
|
-
}
|
|
259
|
-
const contents = map({
|
|
260
|
-
$metadata: deserializeMetadata(output),
|
|
261
|
-
});
|
|
262
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
263
|
-
const doc = take(data, {
|
|
264
|
-
'CallAnalyticsAnnotationsRecordEvent': _ => de_CallAnalyticsAnnotationsRecordEvent(_, context),
|
|
265
|
-
'CallAnalyticsCostRecordEvent': _ => de_CallAnalyticsCostRecordEvent(_, context),
|
|
266
|
-
'CallAnalyticsLiveAnnotationEvent': _ => de_CallAnalyticsLiveAnnotationEvent(_, context),
|
|
267
|
-
'CallAnalyticsLiveCompleteEvent': _json,
|
|
268
|
-
'CallAnalyticsLiveInterruptedEvent': _json,
|
|
269
|
-
'CallAnalyticsLiveProgressEvent': _json,
|
|
270
|
-
'CallAnalyticsLiveTranscriptionEvent': _ => de_CallAnalyticsLiveTranscriptionEvent(_, context),
|
|
271
|
-
'CallAnalyticsRecordEvent': _json,
|
|
272
|
-
'CallAnalyticsTranscriptionRecordEvent': _ => de_CallAnalyticsTranscriptionRecordEvent(_, context),
|
|
273
|
-
'CallEventType': __expectString,
|
|
274
|
-
'ChatAnalyticsAnnotationsRecordEvent': _ => de_ChatAnalyticsAnnotationsRecordEvent(_, context),
|
|
275
|
-
'ChatAnalyticsLiveAnnotationEvent': _ => de_ChatAnalyticsLiveAnnotationEvent(_, context),
|
|
276
|
-
'ChatAnalyticsLiveCompleteEvent': _json,
|
|
277
|
-
'ChatAnalyticsLiveInterruptedEvent': _json,
|
|
278
|
-
'ChatAnalyticsLiveProgressEvent': _json,
|
|
279
|
-
'ChatAnalyticsLiveTranscriptionEvent': _json,
|
|
280
|
-
'ChatAnalyticsManagerMissedEvent': _json,
|
|
281
|
-
'ChatAnalyticsRecordEvent': _json,
|
|
282
|
-
'ChatAnalyticsTranscriptionRecordEvent': _ => de_ChatAnalyticsTranscriptionRecordEvent(_, context),
|
|
283
|
-
'ChatEventType': __expectString,
|
|
284
|
-
'ConferenceAnalyticsAnnotationsRecordEvent': _ => de_ConferenceAnalyticsAnnotationsRecordEvent(_, context),
|
|
285
|
-
'ConferenceAnalyticsLiveAnnotationEvent': _ => de_ConferenceAnalyticsLiveAnnotationEvent(_, context),
|
|
286
|
-
'ConferenceAnalyticsLiveCompleteEvent': _json,
|
|
287
|
-
'ConferenceAnalyticsLiveInterruptedEvent': _json,
|
|
288
|
-
'ConferenceAnalyticsLiveJoinEvent': _json,
|
|
289
|
-
'ConferenceAnalyticsLiveLeaveEvent': _json,
|
|
290
|
-
'ConferenceAnalyticsLiveProgressEvent': _json,
|
|
291
|
-
'ConferenceAnalyticsLiveTranscriptionEvent': _json,
|
|
292
|
-
'ConferenceAnalyticsRecordEvent': _json,
|
|
293
|
-
'ConferenceAnalyticsTranscriptionRecordEvent': _json,
|
|
294
|
-
'ConferenceEventType': __expectString,
|
|
295
|
-
'PresenceAnalyticsConferenceEvent': _json,
|
|
296
|
-
'PresenceAnalyticsStatusEvent': _json,
|
|
297
|
-
'PresenceAnalyticsTelephonyEvent': _json,
|
|
298
|
-
'PresenceEventType': __expectString,
|
|
299
|
-
'ServiceAgentsStatusAnalyticsRecordEvent': _json,
|
|
300
|
-
'ServiceAnalyticsLiveCompleteEvent': _json,
|
|
301
|
-
'ServiceAnalyticsLiveProgressEvent': _json,
|
|
302
|
-
'ServiceCallAnalyticsLiveCompleteEvent': _json,
|
|
303
|
-
'ServiceCallAnalyticsLiveProgressEvent': _json,
|
|
304
|
-
'ServiceCallAnalyticsRecordEvent': _json,
|
|
305
|
-
'ServiceCallEventType': __expectString,
|
|
306
|
-
'ServiceEventType': __expectString,
|
|
307
|
-
'WebhookCallAnnotationsCompletedEvent': _ => de_WebhookCallAnnotationsCompletedEvent(_, context),
|
|
308
|
-
'WebhookCallCompletedEvent': _json,
|
|
309
|
-
'WebhookCallLiveAnnotationEvent': _ => de_WebhookCallLiveAnnotationEvent(_, context),
|
|
310
|
-
'WebhookCallLiveCompletedEvent': _json,
|
|
311
|
-
'WebhookCallLiveInterruptedEvent': _json,
|
|
312
|
-
'WebhookCallLiveProgressEvent': _json,
|
|
313
|
-
'WebhookCallLiveRecordPauseEvent': _json,
|
|
314
|
-
'WebhookCallLiveRecordStartEvent': _json,
|
|
315
|
-
'WebhookCallLiveRecordStopEvent': _json,
|
|
316
|
-
'WebhookCallLiveRecordUnpauseEvent': _json,
|
|
317
|
-
'WebhookCallLiveTranscriptionEvent': _ => de_WebhookCallLiveTranscriptionEvent(_, context),
|
|
318
|
-
'WebhookCallSummaryCompletedEvent': _json,
|
|
319
|
-
'WebhookCallTranscriptionCompletedEvent': _json,
|
|
320
|
-
'WebhookCallTranscriptionTextCompletedEvent': _json,
|
|
321
|
-
'WebhookChatAnnotationsCompletedEvent': _ => de_WebhookChatAnnotationsCompletedEvent(_, context),
|
|
322
|
-
'WebhookChatCompletedEvent': _json,
|
|
323
|
-
'WebhookChatLiveAnnotationEvent': _ => de_WebhookChatLiveAnnotationEvent(_, context),
|
|
324
|
-
'WebhookChatLiveCompletedEvent': _json,
|
|
325
|
-
'WebhookChatLiveInterruptedEvent': _json,
|
|
326
|
-
'WebhookChatLiveProgressEvent': _json,
|
|
327
|
-
'WebhookChatManagerMissedEvent': _json,
|
|
328
|
-
'WebhookChatSummaryCompletedEvent': _json,
|
|
329
|
-
'WebhookConferenceAnnotationsCompletedEvent': _ => de_WebhookConferenceAnnotationsCompletedEvent(_, context),
|
|
330
|
-
'WebhookConferenceCompletedEvent': _json,
|
|
331
|
-
'WebhookConferenceLiveAnnotationEvent': _ => de_WebhookConferenceLiveAnnotationEvent(_, context),
|
|
332
|
-
'WebhookConferenceLiveCompletedEvent': _json,
|
|
333
|
-
'WebhookConferenceLiveInterruptedEvent': _json,
|
|
334
|
-
'WebhookConferenceLiveJoinEvent': _json,
|
|
335
|
-
'WebhookConferenceLiveLeaveEvent': _json,
|
|
336
|
-
'WebhookConferenceLiveProgressEvent': _json,
|
|
337
|
-
'WebhookConferenceLiveTranscriptionEvent': _json,
|
|
338
|
-
'WebhookConferenceSummaryCompletedEvent': _json,
|
|
339
|
-
'WebhookConferenceTranscriptionCompletedEvent': _json,
|
|
340
|
-
'WebhookConferenceTranscriptionTextCompletedEvent': _json,
|
|
341
|
-
'WebhookOutdatedCallEndEvent': _json,
|
|
342
|
-
'WebhookOutdatedCallStartEvent': _json,
|
|
343
|
-
'WebhookOutdatedCallUpdateEvent': _json,
|
|
344
|
-
'WebhookPresenceConferenceEvent': _json,
|
|
345
|
-
'WebhookPresenceTelephonyEvent': _json,
|
|
346
|
-
'WebhookPresenceUserEvent': _json,
|
|
347
|
-
'WebhookServiceCallLiveCompletedEvent': _json,
|
|
348
|
-
'WebhookServiceCallLiveProgressEvent': _json,
|
|
349
|
-
'WebhookSmsStatusEvent': _json,
|
|
350
|
-
'WebsocketAuthorizeBadRequestException': _json,
|
|
351
|
-
'WebsocketAuthorizedEvent': _ => de_WebsocketAuthorizedEvent(_, context),
|
|
352
|
-
'WebsocketConversationsBroadcastEvent': _ => de_WebsocketConversationsBroadcastEvent(_, context),
|
|
353
|
-
'WebsocketPresenceBroadcastEvent': _ => de_WebsocketPresenceBroadcastEvent(_, context),
|
|
354
|
-
'WebsocketSubscribeBadRequestException': _ => de_WebsocketSubscribeBadRequestException(_, context),
|
|
355
|
-
'WebsocketSubscribedEvent': _ => de_WebsocketSubscribedEvent(_, context),
|
|
356
|
-
'WebsocketTranscriptionsBroadcastEvent': _ => de_WebsocketTranscriptionsBroadcastEvent(_, context),
|
|
357
|
-
'WebsocketUnsubscribeBadRequestException': _ => de_WebsocketUnsubscribeBadRequestException(_, context),
|
|
358
|
-
'WebsocketUnsubscribedEvent': _json,
|
|
359
|
-
});
|
|
360
|
-
Object.assign(contents, doc);
|
|
361
|
-
return contents;
|
|
362
|
-
};
|
|
363
|
-
export const de_GetConferenceIdCommand = async (output, context) => {
|
|
364
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
365
|
-
return de_CommandError(output, context);
|
|
366
|
-
}
|
|
367
|
-
const contents = map({
|
|
368
|
-
$metadata: deserializeMetadata(output),
|
|
369
|
-
});
|
|
370
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
371
|
-
const doc = take(data, {
|
|
372
|
-
'id': __expectString,
|
|
373
|
-
});
|
|
374
|
-
Object.assign(contents, doc);
|
|
375
|
-
return contents;
|
|
376
|
-
};
|
|
377
|
-
export const de_GetOngoingCallCommand = async (output, context) => {
|
|
378
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
379
|
-
return de_CommandError(output, context);
|
|
380
|
-
}
|
|
381
|
-
const contents = map({
|
|
382
|
-
$metadata: deserializeMetadata(output),
|
|
383
|
-
});
|
|
384
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
385
|
-
const doc = take(data, {
|
|
386
|
-
'company': __expectString,
|
|
387
|
-
'flows': _json,
|
|
388
|
-
});
|
|
389
|
-
Object.assign(contents, doc);
|
|
390
|
-
return contents;
|
|
391
|
-
};
|
|
392
|
-
export const de_GetOngoingCallAnnotationsCommand = async (output, context) => {
|
|
393
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
394
|
-
return de_CommandError(output, context);
|
|
395
|
-
}
|
|
396
|
-
const contents = map({
|
|
397
|
-
$metadata: deserializeMetadata(output),
|
|
398
|
-
});
|
|
399
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
400
|
-
const doc = take(data, {
|
|
401
|
-
'annotations': _ => de_CallAnalyticsLiveAnnotationEventList(_, context),
|
|
402
|
-
'company': __expectString,
|
|
403
|
-
'flows': _json,
|
|
404
|
-
});
|
|
405
|
-
Object.assign(contents, doc);
|
|
406
|
-
return contents;
|
|
407
|
-
};
|
|
408
|
-
export const de_GetOngoingCallTranscriptionCommand = async (output, context) => {
|
|
409
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
410
|
-
return de_CommandError(output, context);
|
|
411
|
-
}
|
|
412
|
-
const contents = map({
|
|
413
|
-
$metadata: deserializeMetadata(output),
|
|
414
|
-
});
|
|
415
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
416
|
-
const doc = take(data, {
|
|
417
|
-
'company': __expectString,
|
|
418
|
-
'flows': _json,
|
|
419
|
-
'transcriptions': _ => de_CallAnalyticsLiveTranscriptionEventList(_, context),
|
|
420
|
-
});
|
|
421
|
-
Object.assign(contents, doc);
|
|
422
|
-
return contents;
|
|
423
|
-
};
|
|
424
|
-
export const de_GetOngoingChatAnnotationsCommand = async (output, context) => {
|
|
425
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
426
|
-
return de_CommandError(output, context);
|
|
427
|
-
}
|
|
428
|
-
const contents = map({
|
|
429
|
-
$metadata: deserializeMetadata(output),
|
|
430
|
-
});
|
|
431
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
432
|
-
const doc = take(data, {
|
|
433
|
-
'annotations': _ => de_ChatAnalyticsLiveAnnotationEventList(_, context),
|
|
434
|
-
'chat': _json,
|
|
435
|
-
});
|
|
436
|
-
Object.assign(contents, doc);
|
|
437
|
-
return contents;
|
|
438
|
-
};
|
|
439
|
-
export const de_GetOngoingConferenceCommand = async (output, context) => {
|
|
440
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
441
|
-
return de_CommandError(output, context);
|
|
442
|
-
}
|
|
443
|
-
const contents = map({
|
|
444
|
-
$metadata: deserializeMetadata(output),
|
|
445
|
-
});
|
|
446
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
447
|
-
const doc = take(data, {
|
|
448
|
-
'conference': _json,
|
|
449
|
-
});
|
|
450
|
-
Object.assign(contents, doc);
|
|
451
|
-
return contents;
|
|
452
|
-
};
|
|
453
|
-
export const de_GetOngoingConferenceAnnotationsCommand = async (output, context) => {
|
|
454
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
455
|
-
return de_CommandError(output, context);
|
|
456
|
-
}
|
|
457
|
-
const contents = map({
|
|
458
|
-
$metadata: deserializeMetadata(output),
|
|
459
|
-
});
|
|
460
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
461
|
-
const doc = take(data, {
|
|
462
|
-
'annotations': _ => de_ConferenceAnalyticsLiveAnnotationEventList(_, context),
|
|
463
|
-
'conference': _json,
|
|
464
|
-
});
|
|
465
|
-
Object.assign(contents, doc);
|
|
466
|
-
return contents;
|
|
467
|
-
};
|
|
468
|
-
export const de_GetOngoingConferenceTranscriptionCommand = async (output, context) => {
|
|
469
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
470
|
-
return de_CommandError(output, context);
|
|
471
|
-
}
|
|
472
|
-
const contents = map({
|
|
473
|
-
$metadata: deserializeMetadata(output),
|
|
474
|
-
});
|
|
475
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
476
|
-
const doc = take(data, {
|
|
477
|
-
'conference': _json,
|
|
478
|
-
'transcriptions': _json,
|
|
479
|
-
});
|
|
480
|
-
Object.assign(contents, doc);
|
|
481
|
-
return contents;
|
|
482
|
-
};
|
|
483
|
-
export const de_ListServicesCommand = async (output, context) => {
|
|
484
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
485
|
-
return de_CommandError(output, context);
|
|
486
|
-
}
|
|
487
|
-
const contents = map({
|
|
488
|
-
$metadata: deserializeMetadata(output),
|
|
489
|
-
});
|
|
490
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
491
|
-
const doc = take(data, {
|
|
492
|
-
'services': _json,
|
|
493
|
-
});
|
|
494
|
-
Object.assign(contents, doc);
|
|
495
|
-
return contents;
|
|
496
|
-
};
|
|
497
|
-
export const de_QueryConversationsCommand = async (output, context) => {
|
|
498
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
499
|
-
return de_CommandError(output, context);
|
|
500
|
-
}
|
|
501
|
-
const contents = map({
|
|
502
|
-
$metadata: deserializeMetadata(output),
|
|
503
|
-
});
|
|
504
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
505
|
-
const doc = take(data, {
|
|
506
|
-
'calls': _json,
|
|
507
|
-
'chats': _json,
|
|
508
|
-
'conferences': _json,
|
|
509
|
-
});
|
|
510
|
-
Object.assign(contents, doc);
|
|
511
|
-
return contents;
|
|
512
|
-
};
|
|
513
|
-
export const de_QueryPresenceCommand = async (output, context) => {
|
|
514
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
515
|
-
return de_CommandError(output, context);
|
|
516
|
-
}
|
|
517
|
-
const contents = map({
|
|
518
|
-
$metadata: deserializeMetadata(output),
|
|
519
|
-
});
|
|
520
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
521
|
-
const doc = take(data, {
|
|
522
|
-
'presence': _json,
|
|
523
|
-
});
|
|
524
|
-
Object.assign(contents, doc);
|
|
525
|
-
return contents;
|
|
526
|
-
};
|
|
527
|
-
export const de_QueryPresencesCommand = async (output, context) => {
|
|
528
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
529
|
-
return de_CommandError(output, context);
|
|
530
|
-
}
|
|
531
|
-
const contents = map({
|
|
532
|
-
$metadata: deserializeMetadata(output),
|
|
533
|
-
});
|
|
534
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
535
|
-
const doc = take(data, {
|
|
536
|
-
'presences': _json,
|
|
537
|
-
});
|
|
538
|
-
Object.assign(contents, doc);
|
|
539
|
-
return contents;
|
|
540
|
-
};
|
|
541
|
-
export const de_UpdatePresenceLastSeenCommand = async (output, context) => {
|
|
542
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
543
|
-
return de_CommandError(output, context);
|
|
544
|
-
}
|
|
545
|
-
const contents = map({
|
|
546
|
-
$metadata: deserializeMetadata(output),
|
|
547
|
-
});
|
|
548
|
-
await collectBody(output.body, context);
|
|
549
|
-
return contents;
|
|
550
|
-
};
|
|
551
|
-
const de_CommandError = async (output, context) => {
|
|
552
|
-
const parsedOutput = {
|
|
553
|
-
...output,
|
|
554
|
-
body: await parseErrorBody(output.body, context)
|
|
555
|
-
};
|
|
556
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
557
|
-
switch (errorCode) {
|
|
558
|
-
case "ForbiddenException":
|
|
559
|
-
case "smithy.framework#ForbiddenException":
|
|
560
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
561
|
-
case "ValidationException":
|
|
562
|
-
case "smithy.framework#ValidationException":
|
|
563
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
564
|
-
case "MatchNotFoundException":
|
|
565
|
-
case "wildix.wda.stream#MatchNotFoundException":
|
|
566
|
-
throw await de_MatchNotFoundExceptionRes(parsedOutput, context);
|
|
567
|
-
case "PresenceNotAvailableException":
|
|
568
|
-
case "wildix.wda.stream#PresenceNotAvailableException":
|
|
569
|
-
throw await de_PresenceNotAvailableExceptionRes(parsedOutput, context);
|
|
570
|
-
default:
|
|
571
|
-
const parsedBody = parsedOutput.body;
|
|
572
|
-
return throwDefaultError({
|
|
573
|
-
output,
|
|
574
|
-
parsedBody,
|
|
575
|
-
errorCode
|
|
576
|
-
});
|
|
577
|
-
}
|
|
578
|
-
};
|
|
579
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
580
|
-
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
581
|
-
const contents = map({});
|
|
582
|
-
const data = parsedOutput.body;
|
|
583
|
-
const doc = take(data, {
|
|
584
|
-
'message': __expectString,
|
|
585
|
-
});
|
|
586
|
-
Object.assign(contents, doc);
|
|
587
|
-
const exception = new ForbiddenException({
|
|
588
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
589
|
-
...contents
|
|
590
|
-
});
|
|
591
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
592
|
-
};
|
|
593
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
594
|
-
const contents = map({});
|
|
595
|
-
const data = parsedOutput.body;
|
|
596
|
-
const doc = take(data, {
|
|
597
|
-
'message': __expectString,
|
|
598
|
-
});
|
|
599
|
-
Object.assign(contents, doc);
|
|
600
|
-
const exception = new ValidationException({
|
|
601
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
602
|
-
...contents
|
|
603
|
-
});
|
|
604
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
605
|
-
};
|
|
606
|
-
const de_MatchNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
607
|
-
const contents = map({});
|
|
608
|
-
const data = parsedOutput.body;
|
|
609
|
-
const doc = take(data, {
|
|
610
|
-
'message': __expectString,
|
|
611
|
-
});
|
|
612
|
-
Object.assign(contents, doc);
|
|
613
|
-
const exception = new MatchNotFoundException({
|
|
614
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
615
|
-
...contents
|
|
616
|
-
});
|
|
617
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
618
|
-
};
|
|
619
|
-
const de_PresenceNotAvailableExceptionRes = async (parsedOutput, context) => {
|
|
620
|
-
const contents = map({});
|
|
621
|
-
const data = parsedOutput.body;
|
|
622
|
-
const doc = take(data, {
|
|
623
|
-
'message': __expectString,
|
|
624
|
-
});
|
|
625
|
-
Object.assign(contents, doc);
|
|
626
|
-
const exception = new PresenceNotAvailableException({
|
|
627
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
628
|
-
...contents
|
|
629
|
-
});
|
|
630
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
631
|
-
};
|
|
632
|
-
const se_Document = (input, context) => {
|
|
633
|
-
return input;
|
|
634
|
-
};
|
|
635
|
-
const se_Annotation = (input, context) => {
|
|
636
|
-
return take(input, {
|
|
637
|
-
'id': [],
|
|
638
|
-
'payload': _ => se_AnnotationPayload(_, context),
|
|
639
|
-
'source': _json,
|
|
640
|
-
'time': [],
|
|
641
|
-
});
|
|
642
|
-
};
|
|
643
|
-
const se_AnnotationPayload = (input, context) => {
|
|
644
|
-
return AnnotationPayload.visit(input, {
|
|
645
|
-
result: value => ({ "result": se_AnnotationResultValue(value, context) }),
|
|
646
|
-
tag: value => ({ "tag": value }),
|
|
647
|
-
text: value => ({ "text": value }),
|
|
648
|
-
variables: value => ({ "variables": se_AnnotationVariablesValue(value, context) }),
|
|
649
|
-
_: (name, value) => ({ [name]: value })
|
|
650
|
-
});
|
|
651
|
-
};
|
|
652
|
-
const se_AnnotationResultValue = (input, context) => {
|
|
653
|
-
return take(input, {
|
|
654
|
-
'value': _ => se_Document(_, context),
|
|
655
|
-
});
|
|
656
|
-
};
|
|
657
|
-
const se_AnnotationVariablesValue = (input, context) => {
|
|
658
|
-
return take(input, {
|
|
659
|
-
'value': _ => se_Document(_, context),
|
|
660
|
-
});
|
|
661
|
-
};
|
|
662
|
-
const se_CallAnnotateConsumeEvent = (input, context) => {
|
|
663
|
-
return take(input, {
|
|
664
|
-
'company': [],
|
|
665
|
-
'data': _ => se_CallAnnotateConsumeEventData(_, context),
|
|
666
|
-
'id': [],
|
|
667
|
-
'pbx': [],
|
|
668
|
-
'time': [],
|
|
669
|
-
'type': [],
|
|
670
|
-
});
|
|
671
|
-
};
|
|
672
|
-
const se_CallAnnotateConsumeEventData = (input, context) => {
|
|
673
|
-
return take(input, {
|
|
674
|
-
'annotation': _ => se_Annotation(_, context),
|
|
675
|
-
'flowIndex': [],
|
|
676
|
-
});
|
|
677
|
-
};
|
|
678
|
-
const se_CallEndConsumeEvent = (input, context) => {
|
|
679
|
-
return take(input, {
|
|
680
|
-
'company': [],
|
|
681
|
-
'data': _ => se_CallEndConsumeEventData(_, context),
|
|
682
|
-
'id': [],
|
|
683
|
-
'pbx': [],
|
|
684
|
-
'time': [],
|
|
685
|
-
'type': [],
|
|
686
|
-
});
|
|
687
|
-
};
|
|
688
|
-
const se_CallEndConsumeEventData = (input, context) => {
|
|
689
|
-
return take(input, {
|
|
690
|
-
'cause': [],
|
|
691
|
-
'causeStr': [],
|
|
692
|
-
'mos': _json,
|
|
693
|
-
'postTranscribe': [],
|
|
694
|
-
'rtpStats': _ => se_CallRtpStatsData(_, context),
|
|
695
|
-
'who': [],
|
|
696
|
-
});
|
|
697
|
-
};
|
|
698
|
-
const se_CallRtpLegStats = (input, context) => {
|
|
699
|
-
return take(input, {
|
|
700
|
-
'advertised': _json,
|
|
701
|
-
'bytes': [],
|
|
702
|
-
'codec': [],
|
|
703
|
-
'jitter': _json,
|
|
704
|
-
'mos': _ => se_CallRtpMosStats(_, context),
|
|
705
|
-
'node': [],
|
|
706
|
-
'packetLoss': _json,
|
|
707
|
-
'packets': [],
|
|
708
|
-
'protocol': [],
|
|
709
|
-
'remote': _json,
|
|
710
|
-
'rtt': _json,
|
|
711
|
-
});
|
|
712
|
-
};
|
|
713
|
-
const se_CallRtpMosStats = (input, context) => {
|
|
714
|
-
return take(input, {
|
|
715
|
-
'avg': __serializeFloat,
|
|
716
|
-
'max': __serializeFloat,
|
|
717
|
-
'min': __serializeFloat,
|
|
718
|
-
});
|
|
719
|
-
};
|
|
720
|
-
const se_CallRtpStatsData = (input, context) => {
|
|
721
|
-
return take(input, {
|
|
722
|
-
'callee': _ => se_CallRtpLegStats(_, context),
|
|
723
|
-
'caller': _ => se_CallRtpLegStats(_, context),
|
|
724
|
-
});
|
|
725
|
-
};
|
|
726
|
-
const se_CallSplitConsumeEvent = (input, context) => {
|
|
727
|
-
return take(input, {
|
|
728
|
-
'company': [],
|
|
729
|
-
'data': _ => se_CallSplitConsumeEventData(_, context),
|
|
730
|
-
'id': [],
|
|
731
|
-
'pbx': [],
|
|
732
|
-
'time': [],
|
|
733
|
-
'type': [],
|
|
734
|
-
});
|
|
735
|
-
};
|
|
736
|
-
const se_CallSplitConsumeEventData = (input, context) => {
|
|
737
|
-
return take(input, {
|
|
738
|
-
'callee': _json,
|
|
739
|
-
'caller': _json,
|
|
740
|
-
'destination': [],
|
|
741
|
-
'flags': _json,
|
|
742
|
-
'mergeWith': [],
|
|
743
|
-
'mos': _json,
|
|
744
|
-
'postTranscribe': [],
|
|
745
|
-
'queue': _json,
|
|
746
|
-
'queuePosition': [],
|
|
747
|
-
'reason': [],
|
|
748
|
-
'rtpStats': _ => se_CallRtpStatsData(_, context),
|
|
749
|
-
'service': [],
|
|
750
|
-
'serviceNumber': [],
|
|
751
|
-
'sipCallId': [],
|
|
752
|
-
'status': [],
|
|
753
|
-
'tags': _json,
|
|
754
|
-
'transferType': [],
|
|
755
|
-
'trunk': _json,
|
|
756
|
-
});
|
|
757
|
-
};
|
|
758
|
-
const se_ChatAnnotateConsumeEvent = (input, context) => {
|
|
759
|
-
return take(input, {
|
|
760
|
-
'company': [],
|
|
761
|
-
'data': _ => se_ChatAnnotateConsumeEventData(_, context),
|
|
762
|
-
'time': [],
|
|
763
|
-
'type': [],
|
|
764
|
-
});
|
|
765
|
-
};
|
|
766
|
-
const se_ChatAnnotateConsumeEventData = (input, context) => {
|
|
767
|
-
return take(input, {
|
|
768
|
-
'annotation': _ => se_Annotation(_, context),
|
|
769
|
-
'channelId': [],
|
|
770
|
-
'channelType': [],
|
|
771
|
-
});
|
|
772
|
-
};
|
|
773
|
-
const se_ConferenceAnnotateConsumeEvent = (input, context) => {
|
|
774
|
-
return take(input, {
|
|
775
|
-
'data': _ => se_ConferenceAnnotateConsumeEventData(_, context),
|
|
776
|
-
'room': [],
|
|
777
|
-
'session': [],
|
|
778
|
-
'time': [],
|
|
779
|
-
'type': [],
|
|
780
|
-
});
|
|
781
|
-
};
|
|
782
|
-
const se_ConferenceAnnotateConsumeEventData = (input, context) => {
|
|
783
|
-
return take(input, {
|
|
784
|
-
'annotation': _ => se_Annotation(_, context),
|
|
785
|
-
'company': [],
|
|
786
|
-
});
|
|
787
|
-
};
|
|
788
|
-
const se_ConsumeEventInputEvent = (input, context) => {
|
|
789
|
-
return ConsumeEventInputEvent.visit(input, {
|
|
790
|
-
callAgentsCancel: value => ({ "callAgentsCancel": _json(value) }),
|
|
791
|
-
callAgentsStart: value => ({ "callAgentsStart": _json(value) }),
|
|
792
|
-
callAnnotate: value => ({ "callAnnotate": se_CallAnnotateConsumeEvent(value, context) }),
|
|
793
|
-
callAttachment: value => ({ "callAttachment": _json(value) }),
|
|
794
|
-
callEnd: value => ({ "callEnd": se_CallEndConsumeEvent(value, context) }),
|
|
795
|
-
callLive: value => ({ "callLive": _json(value) }),
|
|
796
|
-
callPostTranscription: value => ({ "callPostTranscription": _json(value) }),
|
|
797
|
-
callRecordPause: value => ({ "callRecordPause": _json(value) }),
|
|
798
|
-
callRecordStart: value => ({ "callRecordStart": _json(value) }),
|
|
799
|
-
callRecordStop: value => ({ "callRecordStop": _json(value) }),
|
|
800
|
-
callRecordUnpause: value => ({ "callRecordUnpause": _json(value) }),
|
|
801
|
-
callSplit: value => ({ "callSplit": se_CallSplitConsumeEvent(value, context) }),
|
|
802
|
-
callStart: value => ({ "callStart": _json(value) }),
|
|
803
|
-
callTranscription: value => ({ "callTranscription": _json(value) }),
|
|
804
|
-
callUpdate: value => ({ "callUpdate": _json(value) }),
|
|
805
|
-
chatAnnotate: value => ({ "chatAnnotate": se_ChatAnnotateConsumeEvent(value, context) }),
|
|
806
|
-
chatMessage: value => ({ "chatMessage": _json(value) }),
|
|
807
|
-
chatNew: value => ({ "chatNew": _json(value) }),
|
|
808
|
-
chatUpdate: value => ({ "chatUpdate": _json(value) }),
|
|
809
|
-
conferenceAnnotate: value => ({ "conferenceAnnotate": se_ConferenceAnnotateConsumeEvent(value, context) }),
|
|
810
|
-
conferenceEnd: value => ({ "conferenceEnd": _json(value) }),
|
|
811
|
-
conferenceJoin: value => ({ "conferenceJoin": _json(value) }),
|
|
812
|
-
conferenceKeepAlive: value => ({ "conferenceKeepAlive": _json(value) }),
|
|
813
|
-
conferenceLeave: value => ({ "conferenceLeave": _json(value) }),
|
|
814
|
-
conferenceRecordStart: value => ({ "conferenceRecordStart": _json(value) }),
|
|
815
|
-
conferenceRecordStop: value => ({ "conferenceRecordStop": _json(value) }),
|
|
816
|
-
conferenceStart: value => ({ "conferenceStart": _json(value) }),
|
|
817
|
-
conferenceStats: value => ({ "conferenceStats": _json(value) }),
|
|
818
|
-
conferenceTimeFrames: value => ({ "conferenceTimeFrames": _json(value) }),
|
|
819
|
-
conferenceTranscription: value => ({ "conferenceTranscription": _json(value) }),
|
|
820
|
-
presence: value => ({ "presence": _json(value) }),
|
|
821
|
-
presenceTelephony: value => ({ "presenceTelephony": _json(value) }),
|
|
822
|
-
serviceAgentJoin: value => ({ "serviceAgentJoin": _json(value) }),
|
|
823
|
-
serviceAgentLeave: value => ({ "serviceAgentLeave": _json(value) }),
|
|
824
|
-
serviceAgentUpdate: value => ({ "serviceAgentUpdate": _json(value) }),
|
|
825
|
-
serviceCallEnd: value => ({ "serviceCallEnd": _json(value) }),
|
|
826
|
-
serviceCallInit: value => ({ "serviceCallInit": _json(value) }),
|
|
827
|
-
serviceCallUpdate: value => ({ "serviceCallUpdate": _json(value) }),
|
|
828
|
-
serviceEnd: value => ({ "serviceEnd": _json(value) }),
|
|
829
|
-
serviceInit: value => ({ "serviceInit": _json(value) }),
|
|
830
|
-
serviceUpdate: value => ({ "serviceUpdate": _json(value) }),
|
|
831
|
-
smsInbound: value => ({ "smsInbound": _json(value) }),
|
|
832
|
-
smsStatus: value => ({ "smsStatus": _json(value) }),
|
|
833
|
-
usageStt: value => ({ "usageStt": _json(value) }),
|
|
834
|
-
whatsappInbound: value => ({ "whatsappInbound": se_WhatsAppInboundConsumeEvent(value, context) }),
|
|
835
|
-
whatsappStatus: value => ({ "whatsappStatus": se_WhatsAppStatusConsumeEvent(value, context) }),
|
|
836
|
-
_: (name, value) => ({ [name]: value })
|
|
837
|
-
});
|
|
838
|
-
};
|
|
839
|
-
const se_WebsocketSubscribeAction = (input, context) => {
|
|
840
|
-
return take(input, {
|
|
841
|
-
'action': [],
|
|
842
|
-
'filter': _ => se_WebsocketSubscribeFilter(_, context),
|
|
843
|
-
'state': [],
|
|
844
|
-
'topic': [],
|
|
845
|
-
'version': [],
|
|
846
|
-
});
|
|
847
|
-
};
|
|
848
|
-
const se_WebsocketSubscribeFilter = (input, context) => {
|
|
849
|
-
return input.filter((e) => e != null).map(entry => {
|
|
850
|
-
return se_Document(entry, context);
|
|
851
|
-
});
|
|
852
|
-
};
|
|
853
|
-
const se_WebsocketUnsubscribeAction = (input, context) => {
|
|
854
|
-
return take(input, {
|
|
855
|
-
'action': [],
|
|
856
|
-
'filter': _ => se_WebsocketSubscribeFilter(_, context),
|
|
857
|
-
'topic': [],
|
|
858
|
-
});
|
|
859
|
-
};
|
|
860
|
-
const se_WhatsAppInboundConsumeEvent = (input, context) => {
|
|
861
|
-
return take(input, {
|
|
862
|
-
'company': [],
|
|
863
|
-
'data': _json,
|
|
864
|
-
'pbx': [],
|
|
865
|
-
'time': _ => (_.getTime() / 1000),
|
|
866
|
-
'type': [],
|
|
867
|
-
});
|
|
868
|
-
};
|
|
869
|
-
const se_WhatsAppInboundEvent = (input, context) => {
|
|
870
|
-
return take(input, {
|
|
871
|
-
'company': [],
|
|
872
|
-
'data': _json,
|
|
873
|
-
'pbx': [],
|
|
874
|
-
'time': _ => (_.getTime() / 1000),
|
|
875
|
-
'type': [],
|
|
876
|
-
});
|
|
877
|
-
};
|
|
878
|
-
const se_WhatsAppStatusConsumeEvent = (input, context) => {
|
|
879
|
-
return take(input, {
|
|
880
|
-
'company': [],
|
|
881
|
-
'data': _json,
|
|
882
|
-
'pbx': [],
|
|
883
|
-
'time': _ => (_.getTime() / 1000),
|
|
884
|
-
'type': [],
|
|
885
|
-
});
|
|
886
|
-
};
|
|
887
|
-
const se_WhatsAppStatusEvent = (input, context) => {
|
|
888
|
-
return take(input, {
|
|
889
|
-
'company': [],
|
|
890
|
-
'data': _json,
|
|
891
|
-
'pbx': [],
|
|
892
|
-
'time': _ => (_.getTime() / 1000),
|
|
893
|
-
'type': [],
|
|
894
|
-
});
|
|
895
|
-
};
|
|
896
|
-
const de_Document = (output, context) => {
|
|
897
|
-
return output;
|
|
898
|
-
};
|
|
899
|
-
const de_Annotation = (output, context) => {
|
|
900
|
-
return take(output, {
|
|
901
|
-
'id': __expectString,
|
|
902
|
-
'payload': (_) => de_AnnotationPayload(__expectUnion(_), context),
|
|
903
|
-
'source': _json,
|
|
904
|
-
'time': __expectLong,
|
|
905
|
-
});
|
|
906
|
-
};
|
|
907
|
-
const de_AnnotationPayload = (output, context) => {
|
|
908
|
-
if (output.result != null) {
|
|
909
|
-
return {
|
|
910
|
-
result: de_AnnotationResultValue(output.result, context)
|
|
911
|
-
};
|
|
912
|
-
}
|
|
913
|
-
if (__expectString(output.tag) !== undefined) {
|
|
914
|
-
return { tag: __expectString(output.tag) };
|
|
915
|
-
}
|
|
916
|
-
if (__expectString(output.text) !== undefined) {
|
|
917
|
-
return { text: __expectString(output.text) };
|
|
918
|
-
}
|
|
919
|
-
if (output.variables != null) {
|
|
920
|
-
return {
|
|
921
|
-
variables: de_AnnotationVariablesValue(output.variables, context)
|
|
922
|
-
};
|
|
923
|
-
}
|
|
924
|
-
return { $unknown: Object.entries(output)[0] };
|
|
925
|
-
};
|
|
926
|
-
const de_AnnotationResultValue = (output, context) => {
|
|
927
|
-
return take(output, {
|
|
928
|
-
'value': (_) => de_Document(_, context),
|
|
929
|
-
});
|
|
930
|
-
};
|
|
931
|
-
const de_Annotations = (output, context) => {
|
|
932
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
933
|
-
return de_Annotation(entry, context);
|
|
934
|
-
});
|
|
935
|
-
return retVal;
|
|
936
|
-
};
|
|
937
|
-
const de_AnnotationVariablesValue = (output, context) => {
|
|
938
|
-
return take(output, {
|
|
939
|
-
'value': (_) => de_Document(_, context),
|
|
940
|
-
});
|
|
941
|
-
};
|
|
942
|
-
const de_CallAnalyticsAnnotationsRecordEvent = (output, context) => {
|
|
943
|
-
return take(output, {
|
|
944
|
-
'annotations': (_) => de_Annotations(_, context),
|
|
945
|
-
'callStartTime': __expectLong,
|
|
946
|
-
'company': __expectString,
|
|
947
|
-
'flowIndex': __expectInt32,
|
|
948
|
-
'flowStartTime': __expectLong,
|
|
949
|
-
'id': __expectString,
|
|
950
|
-
'licenses': _json,
|
|
951
|
-
'pbx': __expectString,
|
|
952
|
-
'time': __expectLong,
|
|
953
|
-
'type': __expectString,
|
|
954
|
-
});
|
|
955
|
-
};
|
|
956
|
-
const de_CallAnalyticsCostRecordEvent = (output, context) => {
|
|
957
|
-
return take(output, {
|
|
958
|
-
'company': __expectString,
|
|
959
|
-
'cost': __limitedParseDouble,
|
|
960
|
-
'flowIndex': __expectInt32,
|
|
961
|
-
'id': __expectString,
|
|
962
|
-
'licenses': _json,
|
|
963
|
-
'pbx': __expectString,
|
|
964
|
-
'time': __expectLong,
|
|
965
|
-
'transcriptions': (_) => de_CallTranscriptionList(_, context),
|
|
966
|
-
'type': __expectString,
|
|
967
|
-
});
|
|
968
|
-
};
|
|
969
|
-
const de_CallAnalyticsLiveAnnotationEvent = (output, context) => {
|
|
970
|
-
return take(output, {
|
|
971
|
-
'annotation': (_) => de_Annotation(_, context),
|
|
972
|
-
'callStartTime': __expectLong,
|
|
973
|
-
'company': __expectString,
|
|
974
|
-
'event': __expectString,
|
|
975
|
-
'flowIndex': __expectInt32,
|
|
976
|
-
'flowStartTime': __expectLong,
|
|
977
|
-
'id': __expectString,
|
|
978
|
-
'licenses': _json,
|
|
979
|
-
'pbx': __expectString,
|
|
980
|
-
'time': __expectLong,
|
|
981
|
-
});
|
|
982
|
-
};
|
|
983
|
-
const de_CallAnalyticsLiveAnnotationEventList = (output, context) => {
|
|
984
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
985
|
-
return de_CallAnalyticsLiveAnnotationEvent(entry, context);
|
|
986
|
-
});
|
|
987
|
-
return retVal;
|
|
988
|
-
};
|
|
989
|
-
const de_CallAnalyticsLiveTranscriptionEvent = (output, context) => {
|
|
990
|
-
return take(output, {
|
|
991
|
-
'callStartTime': __expectLong,
|
|
992
|
-
'chunk': (_) => de_CallTranscriptionChunk(_, context),
|
|
993
|
-
'company': __expectString,
|
|
994
|
-
'event': __expectString,
|
|
995
|
-
'flowIndex': __expectInt32,
|
|
996
|
-
'flowStartTime': __expectLong,
|
|
997
|
-
'id': __expectString,
|
|
998
|
-
'licenses': _json,
|
|
999
|
-
'participant': _json,
|
|
1000
|
-
'pbx': __expectString,
|
|
1001
|
-
'time': __expectLong,
|
|
1002
|
-
});
|
|
1003
|
-
};
|
|
1004
|
-
const de_CallAnalyticsLiveTranscriptionEventList = (output, context) => {
|
|
1005
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1006
|
-
return de_CallAnalyticsLiveTranscriptionEvent(entry, context);
|
|
1007
|
-
});
|
|
1008
|
-
return retVal;
|
|
1009
|
-
};
|
|
1010
|
-
const de_CallAnalyticsTranscriptionRecordEvent = (output, context) => {
|
|
1011
|
-
return take(output, {
|
|
1012
|
-
'company': __expectString,
|
|
1013
|
-
'complete': __expectBoolean,
|
|
1014
|
-
'id': __expectString,
|
|
1015
|
-
'licenses': _json,
|
|
1016
|
-
'pbx': __expectString,
|
|
1017
|
-
'time': __expectLong,
|
|
1018
|
-
'transcriptions': (_) => de_CallTranscriptionList(_, context),
|
|
1019
|
-
'type': __expectString,
|
|
1020
|
-
});
|
|
1021
|
-
};
|
|
1022
|
-
const de_CallTranscription = (output, context) => {
|
|
1023
|
-
return take(output, {
|
|
1024
|
-
'callStartTime': __expectLong,
|
|
1025
|
-
'chunks': (_) => de_CallTranscriptionChunksMap(_, context),
|
|
1026
|
-
'flowIndex': __expectInt32,
|
|
1027
|
-
'flowStartTime': __expectLong,
|
|
1028
|
-
});
|
|
1029
|
-
};
|
|
1030
|
-
const de_CallTranscriptionChunk = (output, context) => {
|
|
1031
|
-
return take(output, {
|
|
1032
|
-
'confidence': __limitedParseDouble,
|
|
1033
|
-
'end': __expectLong,
|
|
1034
|
-
'id': __expectString,
|
|
1035
|
-
'isFinal': __expectBoolean,
|
|
1036
|
-
'language': __expectString,
|
|
1037
|
-
'sentiment': __expectString,
|
|
1038
|
-
'speaker': __expectString,
|
|
1039
|
-
'start': __expectLong,
|
|
1040
|
-
'text': __expectString,
|
|
1041
|
-
'time': __expectLong,
|
|
1042
|
-
});
|
|
1043
|
-
};
|
|
1044
|
-
const de_CallTranscriptionChunksMap = (output, context) => {
|
|
1045
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1046
|
-
if (value === null) {
|
|
1047
|
-
return acc;
|
|
1048
|
-
}
|
|
1049
|
-
acc[key] = de_CallTranscriptionChunk(value, context);
|
|
1050
|
-
return acc;
|
|
1051
|
-
}, {});
|
|
1052
|
-
};
|
|
1053
|
-
const de_CallTranscriptionList = (output, context) => {
|
|
1054
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1055
|
-
return de_CallTranscription(entry, context);
|
|
1056
|
-
});
|
|
1057
|
-
return retVal;
|
|
1058
|
-
};
|
|
1059
|
-
const de_ChatAnalyticsAnnotationsRecordEvent = (output, context) => {
|
|
1060
|
-
return take(output, {
|
|
1061
|
-
'annotations': (_) => de_Annotations(_, context),
|
|
1062
|
-
'chatId': __expectString,
|
|
1063
|
-
'company': __expectString,
|
|
1064
|
-
'id': __expectString,
|
|
1065
|
-
'time': __expectLong,
|
|
1066
|
-
'type': __expectString,
|
|
1067
|
-
});
|
|
1068
|
-
};
|
|
1069
|
-
const de_ChatAnalyticsLiveAnnotationEvent = (output, context) => {
|
|
1070
|
-
return take(output, {
|
|
1071
|
-
'annotation': (_) => de_Annotation(_, context),
|
|
1072
|
-
'chatId': __expectString,
|
|
1073
|
-
'company': __expectString,
|
|
1074
|
-
'event': __expectString,
|
|
1075
|
-
'id': __expectString,
|
|
1076
|
-
'time': __expectLong,
|
|
1077
|
-
});
|
|
1078
|
-
};
|
|
1079
|
-
const de_ChatAnalyticsLiveAnnotationEventList = (output, context) => {
|
|
1080
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1081
|
-
return de_ChatAnalyticsLiveAnnotationEvent(entry, context);
|
|
1082
|
-
});
|
|
1083
|
-
return retVal;
|
|
1084
|
-
};
|
|
1085
|
-
const de_ChatAnalyticsTranscriptionRecordEvent = (output, context) => {
|
|
1086
|
-
return take(output, {
|
|
1087
|
-
'chatId': __expectString,
|
|
1088
|
-
'company': __expectString,
|
|
1089
|
-
'id': __expectString,
|
|
1090
|
-
'time': __expectLong,
|
|
1091
|
-
'transcription': _json,
|
|
1092
|
-
'type': __expectString,
|
|
1093
|
-
});
|
|
1094
|
-
};
|
|
1095
|
-
const de_ConferenceAnalyticsAnnotationsRecordEvent = (output, context) => {
|
|
1096
|
-
return take(output, {
|
|
1097
|
-
'annotations': (_) => de_Annotations(_, context),
|
|
1098
|
-
'company': __expectString,
|
|
1099
|
-
'id': __expectString,
|
|
1100
|
-
'time': __expectLong,
|
|
1101
|
-
'type': __expectString,
|
|
1102
|
-
});
|
|
1103
|
-
};
|
|
1104
|
-
const de_ConferenceAnalyticsLiveAnnotationEvent = (output, context) => {
|
|
1105
|
-
return take(output, {
|
|
1106
|
-
'annotation': (_) => de_Annotation(_, context),
|
|
1107
|
-
'company': __expectString,
|
|
1108
|
-
'event': __expectString,
|
|
1109
|
-
'id': __expectString,
|
|
1110
|
-
'time': __expectLong,
|
|
1111
|
-
});
|
|
1112
|
-
};
|
|
1113
|
-
const de_ConferenceAnalyticsLiveAnnotationEventList = (output, context) => {
|
|
1114
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1115
|
-
return de_ConferenceAnalyticsLiveAnnotationEvent(entry, context);
|
|
1116
|
-
});
|
|
1117
|
-
return retVal;
|
|
1118
|
-
};
|
|
1119
|
-
const de_WebhookCallAnnotationsCompletedEvent = (output, context) => {
|
|
1120
|
-
return take(output, {
|
|
1121
|
-
'company': __expectString,
|
|
1122
|
-
'data': (_) => de_WebhookCallAnnotationsCompletedEventData(_, context),
|
|
1123
|
-
'id': __expectString,
|
|
1124
|
-
'integrationId': __expectString,
|
|
1125
|
-
'pbx': __expectString,
|
|
1126
|
-
'time': __expectLong,
|
|
1127
|
-
'type': __expectString,
|
|
1128
|
-
});
|
|
1129
|
-
};
|
|
1130
|
-
const de_WebhookCallAnnotationsCompletedEventData = (output, context) => {
|
|
1131
|
-
return take(output, {
|
|
1132
|
-
'annotations': (_) => de_Annotations(_, context),
|
|
1133
|
-
'call': _json,
|
|
1134
|
-
});
|
|
1135
|
-
};
|
|
1136
|
-
const de_WebhookCallLiveAnnotationEvent = (output, context) => {
|
|
1137
|
-
return take(output, {
|
|
1138
|
-
'company': __expectString,
|
|
1139
|
-
'data': (_) => de_CallAnalyticsLiveAnnotationEvent(_, context),
|
|
1140
|
-
'id': __expectString,
|
|
1141
|
-
'integrationId': __expectString,
|
|
1142
|
-
'pbx': __expectString,
|
|
1143
|
-
'time': __expectLong,
|
|
1144
|
-
'type': __expectString,
|
|
1145
|
-
});
|
|
1146
|
-
};
|
|
1147
|
-
const de_WebhookCallLiveTranscriptionEvent = (output, context) => {
|
|
1148
|
-
return take(output, {
|
|
1149
|
-
'company': __expectString,
|
|
1150
|
-
'data': (_) => de_CallAnalyticsLiveTranscriptionEvent(_, context),
|
|
1151
|
-
'id': __expectString,
|
|
1152
|
-
'integrationId': __expectString,
|
|
1153
|
-
'pbx': __expectString,
|
|
1154
|
-
'time': __expectLong,
|
|
1155
|
-
'type': __expectString,
|
|
1156
|
-
});
|
|
1157
|
-
};
|
|
1158
|
-
const de_WebhookChatAnnotationsCompletedEvent = (output, context) => {
|
|
1159
|
-
return take(output, {
|
|
1160
|
-
'company': __expectString,
|
|
1161
|
-
'data': (_) => de_WebhookChatAnnotationsCompletedEventData(_, context),
|
|
1162
|
-
'id': __expectString,
|
|
1163
|
-
'integrationId': __expectString,
|
|
1164
|
-
'pbx': __expectString,
|
|
1165
|
-
'time': __expectLong,
|
|
1166
|
-
'type': __expectString,
|
|
1167
|
-
});
|
|
1168
|
-
};
|
|
1169
|
-
const de_WebhookChatAnnotationsCompletedEventData = (output, context) => {
|
|
1170
|
-
return take(output, {
|
|
1171
|
-
'annotations': (_) => de_Annotations(_, context),
|
|
1172
|
-
'chat': _json,
|
|
1173
|
-
});
|
|
1174
|
-
};
|
|
1175
|
-
const de_WebhookChatLiveAnnotationEvent = (output, context) => {
|
|
1176
|
-
return take(output, {
|
|
1177
|
-
'company': __expectString,
|
|
1178
|
-
'data': (_) => de_ChatAnalyticsLiveAnnotationEvent(_, context),
|
|
1179
|
-
'id': __expectString,
|
|
1180
|
-
'integrationId': __expectString,
|
|
1181
|
-
'pbx': __expectString,
|
|
1182
|
-
'time': __expectLong,
|
|
1183
|
-
'type': __expectString,
|
|
1184
|
-
});
|
|
1185
|
-
};
|
|
1186
|
-
const de_WebhookConferenceAnnotationsCompletedEvent = (output, context) => {
|
|
1187
|
-
return take(output, {
|
|
1188
|
-
'company': __expectString,
|
|
1189
|
-
'data': (_) => de_WebhookConferenceAnnotationsCompletedEventData(_, context),
|
|
1190
|
-
'id': __expectString,
|
|
1191
|
-
'integrationId': __expectString,
|
|
1192
|
-
'pbx': __expectString,
|
|
1193
|
-
'time': __expectLong,
|
|
1194
|
-
'type': __expectString,
|
|
1195
|
-
});
|
|
1196
|
-
};
|
|
1197
|
-
const de_WebhookConferenceAnnotationsCompletedEventData = (output, context) => {
|
|
1198
|
-
return take(output, {
|
|
1199
|
-
'annotations': (_) => de_Annotations(_, context),
|
|
1200
|
-
'conference': _json,
|
|
1201
|
-
});
|
|
1202
|
-
};
|
|
1203
|
-
const de_WebhookConferenceLiveAnnotationEvent = (output, context) => {
|
|
1204
|
-
return take(output, {
|
|
1205
|
-
'company': __expectString,
|
|
1206
|
-
'data': (_) => de_ConferenceAnalyticsLiveAnnotationEvent(_, context),
|
|
1207
|
-
'id': __expectString,
|
|
1208
|
-
'integrationId': __expectString,
|
|
1209
|
-
'pbx': __expectString,
|
|
1210
|
-
'time': __expectLong,
|
|
1211
|
-
'type': __expectString,
|
|
1212
|
-
});
|
|
1213
|
-
};
|
|
1214
|
-
const de_WebsocketAuthorizedEvent = (output, context) => {
|
|
1215
|
-
return take(output, {
|
|
1216
|
-
'connectionId': __expectString,
|
|
1217
|
-
'duration': (_) => de_Document(_, context),
|
|
1218
|
-
'event': __expectString,
|
|
1219
|
-
'requestId': __expectString,
|
|
1220
|
-
});
|
|
1221
|
-
};
|
|
1222
|
-
const de_WebsocketConversationsBroadcastEvent = (output, context) => {
|
|
1223
|
-
return take(output, {
|
|
1224
|
-
'data': (_) => de_Document(_, context),
|
|
1225
|
-
'event': __expectString,
|
|
1226
|
-
'meta': (_) => de_Document(_, context),
|
|
1227
|
-
'topic': __expectString,
|
|
1228
|
-
});
|
|
1229
|
-
};
|
|
1230
|
-
const de_WebsocketPresenceBroadcastEvent = (output, context) => {
|
|
1231
|
-
return take(output, {
|
|
1232
|
-
'data': _json,
|
|
1233
|
-
'delta': _json,
|
|
1234
|
-
'event': __expectString,
|
|
1235
|
-
'meta': (_) => de_Document(_, context),
|
|
1236
|
-
'topic': __expectString,
|
|
1237
|
-
});
|
|
1238
|
-
};
|
|
1239
|
-
const de_WebsocketSubscribeAction = (output, context) => {
|
|
1240
|
-
return take(output, {
|
|
1241
|
-
'action': __expectString,
|
|
1242
|
-
'filter': (_) => de_WebsocketSubscribeFilter(_, context),
|
|
1243
|
-
'state': __expectBoolean,
|
|
1244
|
-
'topic': __expectString,
|
|
1245
|
-
'version': __expectString,
|
|
1246
|
-
});
|
|
1247
|
-
};
|
|
1248
|
-
const de_WebsocketSubscribeBadRequestException = (output, context) => {
|
|
1249
|
-
return take(output, {
|
|
1250
|
-
'code': __expectInt32,
|
|
1251
|
-
'connectionId': __expectString,
|
|
1252
|
-
'event': __expectString,
|
|
1253
|
-
'message': __expectString,
|
|
1254
|
-
'requestId': __expectString,
|
|
1255
|
-
'source': (_) => de_WebsocketSubscribeAction(_, context),
|
|
1256
|
-
});
|
|
1257
|
-
};
|
|
1258
|
-
const de_WebsocketSubscribedEvent = (output, context) => {
|
|
1259
|
-
return take(output, {
|
|
1260
|
-
'connectionId': __expectString,
|
|
1261
|
-
'duration': (_) => de_Document(_, context),
|
|
1262
|
-
'event': __expectString,
|
|
1263
|
-
'requestId': __expectString,
|
|
1264
|
-
'topic': __expectString,
|
|
1265
|
-
});
|
|
1266
|
-
};
|
|
1267
|
-
const de_WebsocketSubscribeFilter = (output, context) => {
|
|
1268
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1269
|
-
return de_Document(entry, context);
|
|
1270
|
-
});
|
|
1271
|
-
return retVal;
|
|
1272
|
-
};
|
|
1273
|
-
const de_WebsocketTranscriptionsBroadcastEvent = (output, context) => {
|
|
1274
|
-
return take(output, {
|
|
1275
|
-
'data': (_) => de_Document(_, context),
|
|
1276
|
-
'event': __expectString,
|
|
1277
|
-
'meta': (_) => de_Document(_, context),
|
|
1278
|
-
'topic': __expectString,
|
|
1279
|
-
});
|
|
1280
|
-
};
|
|
1281
|
-
const de_WebsocketUnsubscribeAction = (output, context) => {
|
|
1282
|
-
return take(output, {
|
|
1283
|
-
'action': __expectString,
|
|
1284
|
-
'filter': (_) => de_WebsocketSubscribeFilter(_, context),
|
|
1285
|
-
'topic': __expectString,
|
|
1286
|
-
});
|
|
1287
|
-
};
|
|
1288
|
-
const de_WebsocketUnsubscribeBadRequestException = (output, context) => {
|
|
1289
|
-
return take(output, {
|
|
1290
|
-
'code': __expectInt32,
|
|
1291
|
-
'connectionId': __expectString,
|
|
1292
|
-
'event': __expectString,
|
|
1293
|
-
'message': __expectString,
|
|
1294
|
-
'requestId': __expectString,
|
|
1295
|
-
'source': (_) => de_WebsocketUnsubscribeAction(_, context),
|
|
1296
|
-
});
|
|
1297
|
-
};
|
|
1298
|
-
const deserializeMetadata = (output) => ({
|
|
1299
|
-
httpStatusCode: output.statusCode,
|
|
1300
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1301
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1302
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1303
|
-
});
|
|
1304
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then(body => context.utf8Encoder(body));
|
|
1305
|
-
const _c = "company";
|
|
1306
|
-
const _u = "user";
|
|
1307
|
-
const _uI = "userId";
|