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