@wildix/wim-voicebots-client 1.1.9 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/VoiceBots.js +3 -3
- package/dist-cjs/VoiceBotsClient.js +34 -26
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +65 -0
- package/dist-cjs/commands/CreateVoiceBotCommand.js +10 -11
- package/dist-cjs/commands/DeleteVoiceBotCommand.js +10 -11
- package/dist-cjs/commands/DescribeEventCommand.js +10 -11
- package/dist-cjs/commands/GetTraceCommand.js +10 -11
- package/dist-cjs/commands/GetVoiceBotCommand.js +10 -11
- package/dist-cjs/commands/ListTracesCommand.js +10 -11
- package/dist-cjs/commands/ListVoiceBotsCommand.js +10 -11
- package/dist-cjs/commands/ListVoiceBotsNamesCommand.js +10 -11
- package/dist-cjs/commands/SendHangupCommand.js +10 -11
- package/dist-cjs/commands/SendPlayCommand.js +10 -11
- package/dist-cjs/commands/SendSayCommand.js +10 -11
- package/dist-cjs/commands/SendStopCommand.js +10 -11
- package/dist-cjs/commands/SendTransferCommand.js +10 -11
- package/dist-cjs/commands/UpdateVoiceBotCommand.js +10 -11
- 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 +4 -1
- package/dist-cjs/models/VoiceBotsServiceException.js +3 -3
- package/dist-cjs/models/enums.js +64 -0
- package/dist-cjs/models/errors.js +75 -0
- package/dist-cjs/models/models_0.js +0 -350
- 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 +1247 -0
- package/dist-es/VoiceBots.js +6 -6
- package/dist-es/VoiceBotsClient.js +30 -22
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +59 -0
- package/dist-es/commands/CreateVoiceBotCommand.js +9 -10
- package/dist-es/commands/DeleteVoiceBotCommand.js +9 -10
- package/dist-es/commands/DescribeEventCommand.js +9 -10
- package/dist-es/commands/GetTraceCommand.js +9 -10
- package/dist-es/commands/GetVoiceBotCommand.js +9 -10
- package/dist-es/commands/ListTracesCommand.js +9 -10
- package/dist-es/commands/ListVoiceBotsCommand.js +9 -10
- package/dist-es/commands/ListVoiceBotsNamesCommand.js +9 -10
- package/dist-es/commands/SendHangupCommand.js +9 -10
- package/dist-es/commands/SendPlayCommand.js +9 -10
- package/dist-es/commands/SendSayCommand.js +9 -10
- package/dist-es/commands/SendStopCommand.js +9 -10
- package/dist-es/commands/SendTransferCommand.js +9 -10
- package/dist-es/commands/UpdateVoiceBotCommand.js +9 -10
- 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 +4 -1
- package/dist-es/models/VoiceBotsServiceException.js +1 -1
- package/dist-es/models/enums.js +61 -0
- package/dist-es/models/errors.js +67 -0
- package/dist-es/models/models_0.js +1 -344
- 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 +1241 -0
- package/dist-types/VoiceBots.d.ts +15 -15
- package/dist-types/VoiceBotsClient.d.ts +44 -26
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +81 -0
- package/dist-types/commands/CreateVoiceBotCommand.d.ts +11 -7
- package/dist-types/commands/DeleteVoiceBotCommand.d.ts +11 -7
- package/dist-types/commands/DescribeEventCommand.d.ts +11 -7
- package/dist-types/commands/GetTraceCommand.d.ts +11 -7
- package/dist-types/commands/GetVoiceBotCommand.d.ts +11 -7
- package/dist-types/commands/ListTracesCommand.d.ts +11 -7
- package/dist-types/commands/ListVoiceBotsCommand.d.ts +11 -7
- package/dist-types/commands/ListVoiceBotsNamesCommand.d.ts +11 -7
- package/dist-types/commands/SendHangupCommand.d.ts +11 -7
- package/dist-types/commands/SendPlayCommand.d.ts +11 -7
- package/dist-types/commands/SendSayCommand.d.ts +11 -7
- package/dist-types/commands/SendStopCommand.d.ts +11 -7
- package/dist-types/commands/SendTransferCommand.d.ts +11 -7
- package/dist-types/commands/UpdateVoiceBotCommand.d.ts +11 -7
- 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 +5 -1
- package/dist-types/models/VoiceBotsServiceException.d.ts +1 -1
- package/dist-types/models/enums.d.ts +141 -0
- package/dist-types/models/errors.d.ts +60 -0
- package/dist-types/models/models_0.d.ts +92 -244
- package/dist-types/runtimeConfig.browser.d.ts +34 -15
- package/dist-types/runtimeConfig.d.ts +33 -14
- package/dist-types/runtimeConfig.native.d.ts +35 -16
- 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 +175 -0
- package/package.json +13 -39
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1106
- package/dist-es/models/index.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -1075
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -128
|
@@ -1,1106 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateVoiceBotCommand = exports.de_SendTransferCommand = exports.de_SendStopCommand = exports.de_SendSayCommand = exports.de_SendPlayCommand = exports.de_SendHangupCommand = exports.de_ListVoiceBotsNamesCommand = exports.de_ListVoiceBotsCommand = exports.de_ListTracesCommand = exports.de_GetVoiceBotCommand = exports.de_GetTraceCommand = exports.de_DescribeEventCommand = exports.de_DeleteVoiceBotCommand = exports.de_CreateVoiceBotCommand = exports.se_UpdateVoiceBotCommand = exports.se_SendTransferCommand = exports.se_SendStopCommand = exports.se_SendSayCommand = exports.se_SendPlayCommand = exports.se_SendHangupCommand = exports.se_ListVoiceBotsNamesCommand = exports.se_ListVoiceBotsCommand = exports.se_ListTracesCommand = exports.se_GetVoiceBotCommand = exports.se_GetTraceCommand = exports.se_DescribeEventCommand = exports.se_DeleteVoiceBotCommand = exports.se_CreateVoiceBotCommand = void 0;
|
|
4
|
-
const VoiceBotsServiceException_1 = require("../models/VoiceBotsServiceException");
|
|
5
|
-
const models_0_1 = require("../models/models_0");
|
|
6
|
-
const core_1 = require("@aws-sdk/core");
|
|
7
|
-
const core_2 = require("@smithy/core");
|
|
8
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
9
|
-
const se_CreateVoiceBotCommand = async (input, context) => {
|
|
10
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
11
|
-
const headers = {
|
|
12
|
-
'content-type': 'application/json',
|
|
13
|
-
};
|
|
14
|
-
b.bp("/v2/voicebots/bots");
|
|
15
|
-
const query = (0, smithy_client_1.map)({
|
|
16
|
-
[_c]: [, input[_c]],
|
|
17
|
-
});
|
|
18
|
-
let body;
|
|
19
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
20
|
-
'capabilities': _ => (0, smithy_client_1._json)(_),
|
|
21
|
-
'category': [],
|
|
22
|
-
'endpoint': _ => se_VoiceBotEndpoint(_, context),
|
|
23
|
-
'groupId': [],
|
|
24
|
-
'message': [],
|
|
25
|
-
'name': [],
|
|
26
|
-
'pipeline': _ => (0, smithy_client_1._json)(_),
|
|
27
|
-
}));
|
|
28
|
-
b.m("POST")
|
|
29
|
-
.h(headers)
|
|
30
|
-
.q(query)
|
|
31
|
-
.b(body);
|
|
32
|
-
return b.build();
|
|
33
|
-
};
|
|
34
|
-
exports.se_CreateVoiceBotCommand = se_CreateVoiceBotCommand;
|
|
35
|
-
const se_DeleteVoiceBotCommand = async (input, context) => {
|
|
36
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
37
|
-
const headers = {};
|
|
38
|
-
b.bp("/v2/voicebots/bots/{botId}");
|
|
39
|
-
b.p('botId', () => input.botId, '{botId}', false);
|
|
40
|
-
const query = (0, smithy_client_1.map)({
|
|
41
|
-
[_c]: [, input[_c]],
|
|
42
|
-
});
|
|
43
|
-
let body;
|
|
44
|
-
b.m("DELETE")
|
|
45
|
-
.h(headers)
|
|
46
|
-
.q(query)
|
|
47
|
-
.b(body);
|
|
48
|
-
return b.build();
|
|
49
|
-
};
|
|
50
|
-
exports.se_DeleteVoiceBotCommand = se_DeleteVoiceBotCommand;
|
|
51
|
-
const se_DescribeEventCommand = async (input, context) => {
|
|
52
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
53
|
-
const headers = {};
|
|
54
|
-
b.bp("/v2/voicebots/describe");
|
|
55
|
-
let body;
|
|
56
|
-
b.m("POST")
|
|
57
|
-
.h(headers)
|
|
58
|
-
.b(body);
|
|
59
|
-
return b.build();
|
|
60
|
-
};
|
|
61
|
-
exports.se_DescribeEventCommand = se_DescribeEventCommand;
|
|
62
|
-
const se_GetTraceCommand = async (input, context) => {
|
|
63
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
64
|
-
const headers = {};
|
|
65
|
-
b.bp("/v2/voicebots/traces/{sessionId}");
|
|
66
|
-
b.p('sessionId', () => input.sessionId, '{sessionId}', false);
|
|
67
|
-
const query = (0, smithy_client_1.map)({
|
|
68
|
-
[_c]: [, input[_c]],
|
|
69
|
-
});
|
|
70
|
-
let body;
|
|
71
|
-
b.m("GET")
|
|
72
|
-
.h(headers)
|
|
73
|
-
.q(query)
|
|
74
|
-
.b(body);
|
|
75
|
-
return b.build();
|
|
76
|
-
};
|
|
77
|
-
exports.se_GetTraceCommand = se_GetTraceCommand;
|
|
78
|
-
const se_GetVoiceBotCommand = async (input, context) => {
|
|
79
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
80
|
-
const headers = {};
|
|
81
|
-
b.bp("/v2/voicebots/bots/{botId}");
|
|
82
|
-
b.p('botId', () => input.botId, '{botId}', false);
|
|
83
|
-
const query = (0, smithy_client_1.map)({
|
|
84
|
-
[_c]: [, input[_c]],
|
|
85
|
-
});
|
|
86
|
-
let body;
|
|
87
|
-
b.m("GET")
|
|
88
|
-
.h(headers)
|
|
89
|
-
.q(query)
|
|
90
|
-
.b(body);
|
|
91
|
-
return b.build();
|
|
92
|
-
};
|
|
93
|
-
exports.se_GetVoiceBotCommand = se_GetVoiceBotCommand;
|
|
94
|
-
const se_ListTracesCommand = async (input, context) => {
|
|
95
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
96
|
-
const headers = {};
|
|
97
|
-
b.bp("/v2/voicebots/traces");
|
|
98
|
-
const query = (0, smithy_client_1.map)({
|
|
99
|
-
[_c]: [, input[_c]],
|
|
100
|
-
[_s]: [, input[_s]],
|
|
101
|
-
});
|
|
102
|
-
let body;
|
|
103
|
-
b.m("GET")
|
|
104
|
-
.h(headers)
|
|
105
|
-
.q(query)
|
|
106
|
-
.b(body);
|
|
107
|
-
return b.build();
|
|
108
|
-
};
|
|
109
|
-
exports.se_ListTracesCommand = se_ListTracesCommand;
|
|
110
|
-
const se_ListVoiceBotsCommand = async (input, context) => {
|
|
111
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
112
|
-
const headers = {};
|
|
113
|
-
b.bp("/v2/voicebots/bots");
|
|
114
|
-
const query = (0, smithy_client_1.map)({
|
|
115
|
-
[_c]: [, input[_c]],
|
|
116
|
-
});
|
|
117
|
-
let body;
|
|
118
|
-
b.m("GET")
|
|
119
|
-
.h(headers)
|
|
120
|
-
.q(query)
|
|
121
|
-
.b(body);
|
|
122
|
-
return b.build();
|
|
123
|
-
};
|
|
124
|
-
exports.se_ListVoiceBotsCommand = se_ListVoiceBotsCommand;
|
|
125
|
-
const se_ListVoiceBotsNamesCommand = async (input, context) => {
|
|
126
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
127
|
-
const headers = {};
|
|
128
|
-
b.bp("/v2/voicebots/names");
|
|
129
|
-
const query = (0, smithy_client_1.map)({
|
|
130
|
-
[_c]: [, input[_c]],
|
|
131
|
-
});
|
|
132
|
-
let body;
|
|
133
|
-
b.m("GET")
|
|
134
|
-
.h(headers)
|
|
135
|
-
.q(query)
|
|
136
|
-
.b(body);
|
|
137
|
-
return b.build();
|
|
138
|
-
};
|
|
139
|
-
exports.se_ListVoiceBotsNamesCommand = se_ListVoiceBotsNamesCommand;
|
|
140
|
-
const se_SendHangupCommand = async (input, context) => {
|
|
141
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
142
|
-
const headers = {
|
|
143
|
-
'content-type': 'application/json',
|
|
144
|
-
};
|
|
145
|
-
b.bp("/v2/voicebots/sessions/{sessionId}/hangup");
|
|
146
|
-
b.p('sessionId', () => input.sessionId, '{sessionId}', false);
|
|
147
|
-
let body;
|
|
148
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
149
|
-
'reason': [],
|
|
150
|
-
}));
|
|
151
|
-
b.m("POST")
|
|
152
|
-
.h(headers)
|
|
153
|
-
.b(body);
|
|
154
|
-
return b.build();
|
|
155
|
-
};
|
|
156
|
-
exports.se_SendHangupCommand = se_SendHangupCommand;
|
|
157
|
-
const se_SendPlayCommand = async (input, context) => {
|
|
158
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
159
|
-
const headers = {
|
|
160
|
-
'content-type': 'application/json',
|
|
161
|
-
};
|
|
162
|
-
b.bp("/v2/voicebots/sessions/{sessionId}/play");
|
|
163
|
-
b.p('sessionId', () => input.sessionId, '{sessionId}', false);
|
|
164
|
-
let body;
|
|
165
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
166
|
-
'data': [],
|
|
167
|
-
'replyId': [],
|
|
168
|
-
'streamId': [],
|
|
169
|
-
}));
|
|
170
|
-
b.m("POST")
|
|
171
|
-
.h(headers)
|
|
172
|
-
.b(body);
|
|
173
|
-
return b.build();
|
|
174
|
-
};
|
|
175
|
-
exports.se_SendPlayCommand = se_SendPlayCommand;
|
|
176
|
-
const se_SendSayCommand = 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/voicebots/sessions/{sessionId}/say");
|
|
182
|
-
b.p('sessionId', () => input.sessionId, '{sessionId}', false);
|
|
183
|
-
let body;
|
|
184
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
185
|
-
'audio': _ => (0, smithy_client_1._json)(_),
|
|
186
|
-
'interruptible': [],
|
|
187
|
-
'replyId': [],
|
|
188
|
-
'text': [],
|
|
189
|
-
}));
|
|
190
|
-
b.m("POST")
|
|
191
|
-
.h(headers)
|
|
192
|
-
.b(body);
|
|
193
|
-
return b.build();
|
|
194
|
-
};
|
|
195
|
-
exports.se_SendSayCommand = se_SendSayCommand;
|
|
196
|
-
const se_SendStopCommand = async (input, context) => {
|
|
197
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
198
|
-
const headers = {};
|
|
199
|
-
b.bp("/v2/voicebots/sessions/{sessionId}/stop");
|
|
200
|
-
b.p('sessionId', () => input.sessionId, '{sessionId}', false);
|
|
201
|
-
let body;
|
|
202
|
-
b.m("POST")
|
|
203
|
-
.h(headers)
|
|
204
|
-
.b(body);
|
|
205
|
-
return b.build();
|
|
206
|
-
};
|
|
207
|
-
exports.se_SendStopCommand = se_SendStopCommand;
|
|
208
|
-
const se_SendTransferCommand = async (input, context) => {
|
|
209
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
210
|
-
const headers = {
|
|
211
|
-
'content-type': 'application/json',
|
|
212
|
-
};
|
|
213
|
-
b.bp("/v2/voicebots/sessions/{sessionId}/transfer");
|
|
214
|
-
b.p('sessionId', () => input.sessionId, '{sessionId}', false);
|
|
215
|
-
let body;
|
|
216
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
217
|
-
'context': [],
|
|
218
|
-
'extension': [],
|
|
219
|
-
}));
|
|
220
|
-
b.m("POST")
|
|
221
|
-
.h(headers)
|
|
222
|
-
.b(body);
|
|
223
|
-
return b.build();
|
|
224
|
-
};
|
|
225
|
-
exports.se_SendTransferCommand = se_SendTransferCommand;
|
|
226
|
-
const se_UpdateVoiceBotCommand = async (input, context) => {
|
|
227
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
228
|
-
const headers = {
|
|
229
|
-
'content-type': 'application/json',
|
|
230
|
-
};
|
|
231
|
-
b.bp("/v2/voicebots/bots/{botId}");
|
|
232
|
-
b.p('botId', () => input.botId, '{botId}', false);
|
|
233
|
-
const query = (0, smithy_client_1.map)({
|
|
234
|
-
[_c]: [, input[_c]],
|
|
235
|
-
});
|
|
236
|
-
let body;
|
|
237
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
238
|
-
'capabilities': _ => (0, smithy_client_1._json)(_),
|
|
239
|
-
'category': [],
|
|
240
|
-
'endpoint': _ => se_VoiceBotEndpoint(_, context),
|
|
241
|
-
'groupId': [],
|
|
242
|
-
'message': [],
|
|
243
|
-
'name': [],
|
|
244
|
-
'pipeline': _ => (0, smithy_client_1._json)(_),
|
|
245
|
-
}));
|
|
246
|
-
b.m("PUT")
|
|
247
|
-
.h(headers)
|
|
248
|
-
.q(query)
|
|
249
|
-
.b(body);
|
|
250
|
-
return b.build();
|
|
251
|
-
};
|
|
252
|
-
exports.se_UpdateVoiceBotCommand = se_UpdateVoiceBotCommand;
|
|
253
|
-
const de_CreateVoiceBotCommand = async (output, context) => {
|
|
254
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
255
|
-
return de_CommandError(output, context);
|
|
256
|
-
}
|
|
257
|
-
const contents = (0, smithy_client_1.map)({
|
|
258
|
-
$metadata: deserializeMetadata(output),
|
|
259
|
-
});
|
|
260
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
261
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
262
|
-
'bot': _ => de_VoiceBot(_, context),
|
|
263
|
-
});
|
|
264
|
-
Object.assign(contents, doc);
|
|
265
|
-
return contents;
|
|
266
|
-
};
|
|
267
|
-
exports.de_CreateVoiceBotCommand = de_CreateVoiceBotCommand;
|
|
268
|
-
const de_DeleteVoiceBotCommand = async (output, context) => {
|
|
269
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
270
|
-
return de_CommandError(output, context);
|
|
271
|
-
}
|
|
272
|
-
const contents = (0, smithy_client_1.map)({
|
|
273
|
-
$metadata: deserializeMetadata(output),
|
|
274
|
-
});
|
|
275
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
276
|
-
return contents;
|
|
277
|
-
};
|
|
278
|
-
exports.de_DeleteVoiceBotCommand = de_DeleteVoiceBotCommand;
|
|
279
|
-
const de_DescribeEventCommand = async (output, context) => {
|
|
280
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
281
|
-
return de_CommandError(output, context);
|
|
282
|
-
}
|
|
283
|
-
const contents = (0, smithy_client_1.map)({
|
|
284
|
-
$metadata: deserializeMetadata(output),
|
|
285
|
-
});
|
|
286
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
287
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
288
|
-
'AudioWebhookEvent': smithy_client_1._json,
|
|
289
|
-
'CompleteWebhookEvent': smithy_client_1._json,
|
|
290
|
-
'CompleteWebsocketEvent': smithy_client_1._json,
|
|
291
|
-
'HangupWebsocketCommand': smithy_client_1._json,
|
|
292
|
-
'InterruptionWebhookEvent': smithy_client_1._json,
|
|
293
|
-
'InterruptionWebsocketEvent': smithy_client_1._json,
|
|
294
|
-
'PlayWebsocketCommand': smithy_client_1._json,
|
|
295
|
-
'PlaybackWebhookEvent': smithy_client_1._json,
|
|
296
|
-
'PlaybackWebsocketEvent': smithy_client_1._json,
|
|
297
|
-
'PubSubBroadcastWebsocketEvent': _ => de_PubSubBroadcastWebsocketEvent(_, context),
|
|
298
|
-
'PubSubSubscribeWebsocketCommand': smithy_client_1._json,
|
|
299
|
-
'PubSubSubscribedWebsocketEvent': smithy_client_1._json,
|
|
300
|
-
'PubSubUnsubscribeWebsocketCommand': smithy_client_1._json,
|
|
301
|
-
'PubSubUnsubscribedWebsocketEvent': smithy_client_1._json,
|
|
302
|
-
'ReplyWebhookEvent': smithy_client_1._json,
|
|
303
|
-
'ReplyWebsocketEvent': smithy_client_1._json,
|
|
304
|
-
'SayWebsocketCommand': smithy_client_1._json,
|
|
305
|
-
'SessionEndedWebhookEvent': smithy_client_1._json,
|
|
306
|
-
'SessionStartedWebhookEvent': smithy_client_1._json,
|
|
307
|
-
'StopWebsocketCommand': smithy_client_1._json,
|
|
308
|
-
'TranscriptionWebhookEvent': _ => de_TranscriptionWebhookEvent(_, context),
|
|
309
|
-
'TranscriptionWebsocketEvent': _ => de_TranscriptionWebsocketEvent(_, context),
|
|
310
|
-
'TransferWebsocketCommand': smithy_client_1._json,
|
|
311
|
-
});
|
|
312
|
-
Object.assign(contents, doc);
|
|
313
|
-
return contents;
|
|
314
|
-
};
|
|
315
|
-
exports.de_DescribeEventCommand = de_DescribeEventCommand;
|
|
316
|
-
const de_GetTraceCommand = async (output, context) => {
|
|
317
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
318
|
-
return de_CommandError(output, context);
|
|
319
|
-
}
|
|
320
|
-
const contents = (0, smithy_client_1.map)({
|
|
321
|
-
$metadata: deserializeMetadata(output),
|
|
322
|
-
});
|
|
323
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
324
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
325
|
-
'trace': _ => de_Trace(_, context),
|
|
326
|
-
});
|
|
327
|
-
Object.assign(contents, doc);
|
|
328
|
-
return contents;
|
|
329
|
-
};
|
|
330
|
-
exports.de_GetTraceCommand = de_GetTraceCommand;
|
|
331
|
-
const de_GetVoiceBotCommand = async (output, context) => {
|
|
332
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
333
|
-
return de_CommandError(output, context);
|
|
334
|
-
}
|
|
335
|
-
const contents = (0, smithy_client_1.map)({
|
|
336
|
-
$metadata: deserializeMetadata(output),
|
|
337
|
-
});
|
|
338
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
339
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
340
|
-
'bot': _ => de_VoiceBot(_, context),
|
|
341
|
-
});
|
|
342
|
-
Object.assign(contents, doc);
|
|
343
|
-
return contents;
|
|
344
|
-
};
|
|
345
|
-
exports.de_GetVoiceBotCommand = de_GetVoiceBotCommand;
|
|
346
|
-
const de_ListTracesCommand = async (output, context) => {
|
|
347
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
348
|
-
return de_CommandError(output, context);
|
|
349
|
-
}
|
|
350
|
-
const contents = (0, smithy_client_1.map)({
|
|
351
|
-
$metadata: deserializeMetadata(output),
|
|
352
|
-
});
|
|
353
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
354
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
355
|
-
'traces': _ => de_TraceSessionsList(_, context),
|
|
356
|
-
});
|
|
357
|
-
Object.assign(contents, doc);
|
|
358
|
-
return contents;
|
|
359
|
-
};
|
|
360
|
-
exports.de_ListTracesCommand = de_ListTracesCommand;
|
|
361
|
-
const de_ListVoiceBotsCommand = async (output, context) => {
|
|
362
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
363
|
-
return de_CommandError(output, context);
|
|
364
|
-
}
|
|
365
|
-
const contents = (0, smithy_client_1.map)({
|
|
366
|
-
$metadata: deserializeMetadata(output),
|
|
367
|
-
});
|
|
368
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
369
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
370
|
-
'bots': _ => de_VoiceBotsList(_, context),
|
|
371
|
-
});
|
|
372
|
-
Object.assign(contents, doc);
|
|
373
|
-
return contents;
|
|
374
|
-
};
|
|
375
|
-
exports.de_ListVoiceBotsCommand = de_ListVoiceBotsCommand;
|
|
376
|
-
const de_ListVoiceBotsNamesCommand = async (output, context) => {
|
|
377
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
378
|
-
return de_CommandError(output, context);
|
|
379
|
-
}
|
|
380
|
-
const contents = (0, smithy_client_1.map)({
|
|
381
|
-
$metadata: deserializeMetadata(output),
|
|
382
|
-
});
|
|
383
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
384
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
385
|
-
'bots': smithy_client_1._json,
|
|
386
|
-
});
|
|
387
|
-
Object.assign(contents, doc);
|
|
388
|
-
return contents;
|
|
389
|
-
};
|
|
390
|
-
exports.de_ListVoiceBotsNamesCommand = de_ListVoiceBotsNamesCommand;
|
|
391
|
-
const de_SendHangupCommand = async (output, context) => {
|
|
392
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
393
|
-
return de_CommandError(output, context);
|
|
394
|
-
}
|
|
395
|
-
const contents = (0, smithy_client_1.map)({
|
|
396
|
-
$metadata: deserializeMetadata(output),
|
|
397
|
-
});
|
|
398
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
399
|
-
return contents;
|
|
400
|
-
};
|
|
401
|
-
exports.de_SendHangupCommand = de_SendHangupCommand;
|
|
402
|
-
const de_SendPlayCommand = async (output, context) => {
|
|
403
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
404
|
-
return de_CommandError(output, context);
|
|
405
|
-
}
|
|
406
|
-
const contents = (0, smithy_client_1.map)({
|
|
407
|
-
$metadata: deserializeMetadata(output),
|
|
408
|
-
});
|
|
409
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
410
|
-
return contents;
|
|
411
|
-
};
|
|
412
|
-
exports.de_SendPlayCommand = de_SendPlayCommand;
|
|
413
|
-
const de_SendSayCommand = async (output, context) => {
|
|
414
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
415
|
-
return de_CommandError(output, context);
|
|
416
|
-
}
|
|
417
|
-
const contents = (0, smithy_client_1.map)({
|
|
418
|
-
$metadata: deserializeMetadata(output),
|
|
419
|
-
});
|
|
420
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
421
|
-
return contents;
|
|
422
|
-
};
|
|
423
|
-
exports.de_SendSayCommand = de_SendSayCommand;
|
|
424
|
-
const de_SendStopCommand = async (output, context) => {
|
|
425
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
426
|
-
return de_CommandError(output, context);
|
|
427
|
-
}
|
|
428
|
-
const contents = (0, smithy_client_1.map)({
|
|
429
|
-
$metadata: deserializeMetadata(output),
|
|
430
|
-
});
|
|
431
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
432
|
-
return contents;
|
|
433
|
-
};
|
|
434
|
-
exports.de_SendStopCommand = de_SendStopCommand;
|
|
435
|
-
const de_SendTransferCommand = async (output, context) => {
|
|
436
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
437
|
-
return de_CommandError(output, context);
|
|
438
|
-
}
|
|
439
|
-
const contents = (0, smithy_client_1.map)({
|
|
440
|
-
$metadata: deserializeMetadata(output),
|
|
441
|
-
});
|
|
442
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
443
|
-
return contents;
|
|
444
|
-
};
|
|
445
|
-
exports.de_SendTransferCommand = de_SendTransferCommand;
|
|
446
|
-
const de_UpdateVoiceBotCommand = async (output, context) => {
|
|
447
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
448
|
-
return de_CommandError(output, context);
|
|
449
|
-
}
|
|
450
|
-
const contents = (0, smithy_client_1.map)({
|
|
451
|
-
$metadata: deserializeMetadata(output),
|
|
452
|
-
});
|
|
453
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
454
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
455
|
-
'bot': _ => de_VoiceBot(_, context),
|
|
456
|
-
});
|
|
457
|
-
Object.assign(contents, doc);
|
|
458
|
-
return contents;
|
|
459
|
-
};
|
|
460
|
-
exports.de_UpdateVoiceBotCommand = de_UpdateVoiceBotCommand;
|
|
461
|
-
const de_CommandError = async (output, context) => {
|
|
462
|
-
const parsedOutput = {
|
|
463
|
-
...output,
|
|
464
|
-
body: await (0, core_1.parseJsonErrorBody)(output.body, context)
|
|
465
|
-
};
|
|
466
|
-
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
467
|
-
switch (errorCode) {
|
|
468
|
-
case "ForbiddenException":
|
|
469
|
-
case "smithy.framework#ForbiddenException":
|
|
470
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
471
|
-
case "ValidationException":
|
|
472
|
-
case "smithy.framework#ValidationException":
|
|
473
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
474
|
-
case "VoiceBotNonUniqueNameException":
|
|
475
|
-
case "wildix.wim.voicebots#VoiceBotNonUniqueNameException":
|
|
476
|
-
throw await de_VoiceBotNonUniqueNameExceptionRes(parsedOutput, context);
|
|
477
|
-
case "VoiceBotNotFoundException":
|
|
478
|
-
case "wildix.wim.voicebots#VoiceBotNotFoundException":
|
|
479
|
-
throw await de_VoiceBotNotFoundExceptionRes(parsedOutput, context);
|
|
480
|
-
case "VoiceSessionNotFoundException":
|
|
481
|
-
case "wildix.wim.voicebots#VoiceSessionNotFoundException":
|
|
482
|
-
throw await de_VoiceSessionNotFoundExceptionRes(parsedOutput, context);
|
|
483
|
-
default:
|
|
484
|
-
const parsedBody = parsedOutput.body;
|
|
485
|
-
return throwDefaultError({
|
|
486
|
-
output,
|
|
487
|
-
parsedBody,
|
|
488
|
-
errorCode
|
|
489
|
-
});
|
|
490
|
-
}
|
|
491
|
-
};
|
|
492
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(VoiceBotsServiceException_1.VoiceBotsServiceException);
|
|
493
|
-
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
494
|
-
const contents = (0, smithy_client_1.map)({});
|
|
495
|
-
const data = parsedOutput.body;
|
|
496
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
497
|
-
'message': smithy_client_1.expectString,
|
|
498
|
-
});
|
|
499
|
-
Object.assign(contents, doc);
|
|
500
|
-
const exception = new models_0_1.ForbiddenException({
|
|
501
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
502
|
-
...contents
|
|
503
|
-
});
|
|
504
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
505
|
-
};
|
|
506
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
507
|
-
const contents = (0, smithy_client_1.map)({});
|
|
508
|
-
const data = parsedOutput.body;
|
|
509
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
510
|
-
'message': smithy_client_1.expectString,
|
|
511
|
-
});
|
|
512
|
-
Object.assign(contents, doc);
|
|
513
|
-
const exception = new models_0_1.ValidationException({
|
|
514
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
515
|
-
...contents
|
|
516
|
-
});
|
|
517
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
518
|
-
};
|
|
519
|
-
const de_VoiceBotNonUniqueNameExceptionRes = async (parsedOutput, context) => {
|
|
520
|
-
const contents = (0, smithy_client_1.map)({});
|
|
521
|
-
const data = parsedOutput.body;
|
|
522
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
523
|
-
'message': smithy_client_1.expectString,
|
|
524
|
-
'type': smithy_client_1.expectString,
|
|
525
|
-
});
|
|
526
|
-
Object.assign(contents, doc);
|
|
527
|
-
const exception = new models_0_1.VoiceBotNonUniqueNameException({
|
|
528
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
529
|
-
...contents
|
|
530
|
-
});
|
|
531
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
532
|
-
};
|
|
533
|
-
const de_VoiceBotNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
534
|
-
const contents = (0, smithy_client_1.map)({});
|
|
535
|
-
const data = parsedOutput.body;
|
|
536
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
537
|
-
'message': smithy_client_1.expectString,
|
|
538
|
-
'type': smithy_client_1.expectString,
|
|
539
|
-
});
|
|
540
|
-
Object.assign(contents, doc);
|
|
541
|
-
const exception = new models_0_1.VoiceBotNotFoundException({
|
|
542
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
543
|
-
...contents
|
|
544
|
-
});
|
|
545
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
546
|
-
};
|
|
547
|
-
const de_VoiceSessionNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
548
|
-
const contents = (0, smithy_client_1.map)({});
|
|
549
|
-
const data = parsedOutput.body;
|
|
550
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
551
|
-
'message': smithy_client_1.expectString,
|
|
552
|
-
'type': smithy_client_1.expectString,
|
|
553
|
-
});
|
|
554
|
-
Object.assign(contents, doc);
|
|
555
|
-
const exception = new models_0_1.VoiceSessionNotFoundException({
|
|
556
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
557
|
-
...contents
|
|
558
|
-
});
|
|
559
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
560
|
-
};
|
|
561
|
-
const se_Document = (input, context) => {
|
|
562
|
-
return input;
|
|
563
|
-
};
|
|
564
|
-
const se_VoiceBotEmbeddedTool = (input, context) => {
|
|
565
|
-
return (0, smithy_client_1.take)(input, {
|
|
566
|
-
'annotations': smithy_client_1._json,
|
|
567
|
-
'name': [],
|
|
568
|
-
'parameters': _ => se_Document(_, context),
|
|
569
|
-
'type': [],
|
|
570
|
-
});
|
|
571
|
-
};
|
|
572
|
-
const se_VoiceBotEmbeddedToolsList = (input, context) => {
|
|
573
|
-
return input.filter((e) => e != null).map(entry => {
|
|
574
|
-
return se_VoiceBotEmbeddedTool(entry, context);
|
|
575
|
-
});
|
|
576
|
-
};
|
|
577
|
-
const se_VoiceBotEndpoint = (input, context) => {
|
|
578
|
-
return models_0_1.VoiceBotEndpoint.visit(input, {
|
|
579
|
-
dialogflowCx: value => ({ "dialogflowCx": se_BotDialogflowCxEndpoint(value, context) }),
|
|
580
|
-
llm: value => ({ "llm": se_VoiceBotLlmEndpoint(value, context) }),
|
|
581
|
-
openAiAssistant: value => ({ "openAiAssistant": (0, smithy_client_1._json)(value) }),
|
|
582
|
-
sqs: value => ({ "sqs": (0, smithy_client_1._json)(value) }),
|
|
583
|
-
webhook: value => ({ "webhook": (0, smithy_client_1._json)(value) }),
|
|
584
|
-
_: (name, value) => ({ [name]: value })
|
|
585
|
-
});
|
|
586
|
-
};
|
|
587
|
-
const se_VoiceBotFunctionDefinition = (input, context) => {
|
|
588
|
-
return (0, smithy_client_1.take)(input, {
|
|
589
|
-
'description': [],
|
|
590
|
-
'integration': _ => se_VoiceBotFunctionIntegration(_, context),
|
|
591
|
-
'name': [],
|
|
592
|
-
'parameters': _ => se_Document(_, context),
|
|
593
|
-
});
|
|
594
|
-
};
|
|
595
|
-
const se_VoiceBotFunctionIntegration = (input, context) => {
|
|
596
|
-
return models_0_1.VoiceBotFunctionIntegration.visit(input, {
|
|
597
|
-
webhook: value => ({ "webhook": se_VoiceBotFunctionIntegrationWebhook(value, context) }),
|
|
598
|
-
_: (name, value) => ({ [name]: value })
|
|
599
|
-
});
|
|
600
|
-
};
|
|
601
|
-
const se_VoiceBotFunctionIntegrationWebhook = (input, context) => {
|
|
602
|
-
return (0, smithy_client_1.take)(input, {
|
|
603
|
-
'async': [],
|
|
604
|
-
'authorization': smithy_client_1._json,
|
|
605
|
-
'headers': smithy_client_1._json,
|
|
606
|
-
'method': [],
|
|
607
|
-
'parameters': _ => se_Document(_, context),
|
|
608
|
-
'startMessage': [],
|
|
609
|
-
'timeout': [],
|
|
610
|
-
'url': [],
|
|
611
|
-
});
|
|
612
|
-
};
|
|
613
|
-
const se_VoiceBotLlmEndpoint = (input, context) => {
|
|
614
|
-
return (0, smithy_client_1.take)(input, {
|
|
615
|
-
'capabilities': smithy_client_1._json,
|
|
616
|
-
'embeddedTools': _ => se_VoiceBotEmbeddedToolsList(_, context),
|
|
617
|
-
'guidelines': smithy_client_1._json,
|
|
618
|
-
'metadata': smithy_client_1._json,
|
|
619
|
-
'model': [],
|
|
620
|
-
'prompt': [],
|
|
621
|
-
'tools': _ => se_VoiceBotToolsList(_, context),
|
|
622
|
-
'variables': smithy_client_1._json,
|
|
623
|
-
});
|
|
624
|
-
};
|
|
625
|
-
const se_VoiceBotTool = (input, context) => {
|
|
626
|
-
return (0, smithy_client_1.take)(input, {
|
|
627
|
-
'annotations': smithy_client_1._json,
|
|
628
|
-
'function': _ => se_VoiceBotFunctionDefinition(_, context),
|
|
629
|
-
'type': [],
|
|
630
|
-
});
|
|
631
|
-
};
|
|
632
|
-
const se_VoiceBotToolsList = (input, context) => {
|
|
633
|
-
return input.filter((e) => e != null).map(entry => {
|
|
634
|
-
return se_VoiceBotTool(entry, context);
|
|
635
|
-
});
|
|
636
|
-
};
|
|
637
|
-
const se_BotDialogflowCxEndpoint = (input, context) => {
|
|
638
|
-
return (0, smithy_client_1.take)(input, {
|
|
639
|
-
'agent': [],
|
|
640
|
-
'credentials': _ => se_Document(_, context),
|
|
641
|
-
'language': [],
|
|
642
|
-
'location': [],
|
|
643
|
-
});
|
|
644
|
-
};
|
|
645
|
-
const de_Document = (output, context) => {
|
|
646
|
-
return output;
|
|
647
|
-
};
|
|
648
|
-
const de_Annotation = (output, context) => {
|
|
649
|
-
return (0, smithy_client_1.take)(output, {
|
|
650
|
-
'id': smithy_client_1.expectString,
|
|
651
|
-
'payload': (_) => de_AnnotationPayload((0, core_1.awsExpectUnion)(_), context),
|
|
652
|
-
'source': smithy_client_1._json,
|
|
653
|
-
'time': smithy_client_1.expectLong,
|
|
654
|
-
});
|
|
655
|
-
};
|
|
656
|
-
const de_AnnotationPayload = (output, context) => {
|
|
657
|
-
if (output.result != null) {
|
|
658
|
-
return {
|
|
659
|
-
result: de_AnnotationResultValue(output.result, context)
|
|
660
|
-
};
|
|
661
|
-
}
|
|
662
|
-
if ((0, smithy_client_1.expectString)(output.tag) !== undefined) {
|
|
663
|
-
return { tag: (0, smithy_client_1.expectString)(output.tag) };
|
|
664
|
-
}
|
|
665
|
-
if ((0, smithy_client_1.expectString)(output.text) !== undefined) {
|
|
666
|
-
return { text: (0, smithy_client_1.expectString)(output.text) };
|
|
667
|
-
}
|
|
668
|
-
if (output.variables != null) {
|
|
669
|
-
return {
|
|
670
|
-
variables: de_AnnotationVariablesValue(output.variables, context)
|
|
671
|
-
};
|
|
672
|
-
}
|
|
673
|
-
return { $unknown: Object.entries(output)[0] };
|
|
674
|
-
};
|
|
675
|
-
const de_AnnotationResultValue = (output, context) => {
|
|
676
|
-
return (0, smithy_client_1.take)(output, {
|
|
677
|
-
'value': (_) => de_Document(_, context),
|
|
678
|
-
});
|
|
679
|
-
};
|
|
680
|
-
const de_AnnotationVariablesValue = (output, context) => {
|
|
681
|
-
return (0, smithy_client_1.take)(output, {
|
|
682
|
-
'value': (_) => de_Document(_, context),
|
|
683
|
-
});
|
|
684
|
-
};
|
|
685
|
-
const de_PubSubBroadcastItem = (output, context) => {
|
|
686
|
-
return (0, smithy_client_1.take)(output, {
|
|
687
|
-
'activity': (_) => de_TraceActivity(_, context),
|
|
688
|
-
'segment': (_) => de_TraceSegment(_, context),
|
|
689
|
-
'session': (_) => de_TraceSession(_, context),
|
|
690
|
-
'sessionId': smithy_client_1.expectString,
|
|
691
|
-
});
|
|
692
|
-
};
|
|
693
|
-
const de_PubSubBroadcastItems = (output, context) => {
|
|
694
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
695
|
-
return de_PubSubBroadcastItem(entry, context);
|
|
696
|
-
});
|
|
697
|
-
return retVal;
|
|
698
|
-
};
|
|
699
|
-
const de_PubSubBroadcastWebsocketEvent = (output, context) => {
|
|
700
|
-
return (0, smithy_client_1.take)(output, {
|
|
701
|
-
'event': smithy_client_1.expectString,
|
|
702
|
-
'items': (_) => de_PubSubBroadcastItems(_, context),
|
|
703
|
-
'topic': smithy_client_1.expectString,
|
|
704
|
-
});
|
|
705
|
-
};
|
|
706
|
-
const de_Trace = (output, context) => {
|
|
707
|
-
return (0, smithy_client_1.take)(output, {
|
|
708
|
-
'activities': (_) => de_TraceActivitiesList(_, context),
|
|
709
|
-
'cost': smithy_client_1.limitedParseFloat32,
|
|
710
|
-
'segments': (_) => de_TraceSegmentsList(_, context),
|
|
711
|
-
'session': (_) => de_TraceSession(_, context),
|
|
712
|
-
'usage': smithy_client_1._json,
|
|
713
|
-
});
|
|
714
|
-
};
|
|
715
|
-
const de_TraceActivitiesList = (output, context) => {
|
|
716
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
717
|
-
return de_TraceActivity(entry, context);
|
|
718
|
-
});
|
|
719
|
-
return retVal;
|
|
720
|
-
};
|
|
721
|
-
const de_TraceActivity = (output, context) => {
|
|
722
|
-
return (0, smithy_client_1.take)(output, {
|
|
723
|
-
'duration': smithy_client_1.expectInt32,
|
|
724
|
-
'id': smithy_client_1.expectString,
|
|
725
|
-
'result': (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
726
|
-
'start': smithy_client_1.limitedParseDouble,
|
|
727
|
-
'status': smithy_client_1.expectString,
|
|
728
|
-
'timings': (_) => de_TraceTimings(_, context),
|
|
729
|
-
'trigger': (_) => de_TraceActivityTrigger((0, core_1.awsExpectUnion)(_), context),
|
|
730
|
-
'usage': smithy_client_1._json,
|
|
731
|
-
'version': smithy_client_1.expectInt32,
|
|
732
|
-
});
|
|
733
|
-
};
|
|
734
|
-
const de_TraceActivityTrigger = (output, context) => {
|
|
735
|
-
if (output.annotationCommand != null) {
|
|
736
|
-
return {
|
|
737
|
-
annotationCommand: de_TraceAnnotationCommand(output.annotationCommand, context)
|
|
738
|
-
};
|
|
739
|
-
}
|
|
740
|
-
if (output.completeEvent != null) {
|
|
741
|
-
return {
|
|
742
|
-
completeEvent: (0, smithy_client_1._json)(output.completeEvent)
|
|
743
|
-
};
|
|
744
|
-
}
|
|
745
|
-
if (output.connectEvent != null) {
|
|
746
|
-
return {
|
|
747
|
-
connectEvent: de_TraceConnectEventTrigger(output.connectEvent, context)
|
|
748
|
-
};
|
|
749
|
-
}
|
|
750
|
-
if (output.disconnectEvent != null) {
|
|
751
|
-
return {
|
|
752
|
-
disconnectEvent: de_TraceDisconnectEventTrigger(output.disconnectEvent, context)
|
|
753
|
-
};
|
|
754
|
-
}
|
|
755
|
-
if (output.durationTimeoutTask != null) {
|
|
756
|
-
return {
|
|
757
|
-
durationTimeoutTask: de_TraceDurationTimeoutTaskTrigger(output.durationTimeoutTask, context)
|
|
758
|
-
};
|
|
759
|
-
}
|
|
760
|
-
if (output.hangupCommand != null) {
|
|
761
|
-
return {
|
|
762
|
-
hangupCommand: (0, smithy_client_1._json)(output.hangupCommand)
|
|
763
|
-
};
|
|
764
|
-
}
|
|
765
|
-
if (output.interruptionEvent != null) {
|
|
766
|
-
return {
|
|
767
|
-
interruptionEvent: (0, smithy_client_1._json)(output.interruptionEvent)
|
|
768
|
-
};
|
|
769
|
-
}
|
|
770
|
-
if (output.playbackEvent != null) {
|
|
771
|
-
return {
|
|
772
|
-
playbackEvent: (0, smithy_client_1._json)(output.playbackEvent)
|
|
773
|
-
};
|
|
774
|
-
}
|
|
775
|
-
if (output.replyEvent != null) {
|
|
776
|
-
return {
|
|
777
|
-
replyEvent: (0, smithy_client_1._json)(output.replyEvent)
|
|
778
|
-
};
|
|
779
|
-
}
|
|
780
|
-
if (output.sayCommand != null) {
|
|
781
|
-
return {
|
|
782
|
-
sayCommand: (0, smithy_client_1._json)(output.sayCommand)
|
|
783
|
-
};
|
|
784
|
-
}
|
|
785
|
-
if (output.silenceTimeoutTask != null) {
|
|
786
|
-
return {
|
|
787
|
-
silenceTimeoutTask: de_TraceSilenceTimeoutTaskTrigger(output.silenceTimeoutTask, context)
|
|
788
|
-
};
|
|
789
|
-
}
|
|
790
|
-
if (output.transcriptionEvent != null) {
|
|
791
|
-
return {
|
|
792
|
-
transcriptionEvent: de_TranscriptionWebsocketEvent(output.transcriptionEvent, context)
|
|
793
|
-
};
|
|
794
|
-
}
|
|
795
|
-
if (output.transferCommand != null) {
|
|
796
|
-
return {
|
|
797
|
-
transferCommand: (0, smithy_client_1._json)(output.transferCommand)
|
|
798
|
-
};
|
|
799
|
-
}
|
|
800
|
-
return { $unknown: Object.entries(output)[0] };
|
|
801
|
-
};
|
|
802
|
-
const de_TraceAnnotationCommand = (output, context) => {
|
|
803
|
-
return (0, smithy_client_1.take)(output, {
|
|
804
|
-
'annotation': (_) => de_Annotation(_, context),
|
|
805
|
-
});
|
|
806
|
-
};
|
|
807
|
-
const de_TraceConnectEventTrigger = (output, context) => {
|
|
808
|
-
return (0, smithy_client_1.take)(output, {
|
|
809
|
-
'parameters': (_) => de_Document(_, context),
|
|
810
|
-
});
|
|
811
|
-
};
|
|
812
|
-
const de_TraceDisconnectEventTrigger = (output, context) => {
|
|
813
|
-
return (0, smithy_client_1.take)(output, {
|
|
814
|
-
'parameters': (_) => de_Document(_, context),
|
|
815
|
-
});
|
|
816
|
-
};
|
|
817
|
-
const de_TraceDurationTimeoutTaskTrigger = (output, context) => {
|
|
818
|
-
return (0, smithy_client_1.take)(output, {
|
|
819
|
-
'parameters': (_) => de_Document(_, context),
|
|
820
|
-
});
|
|
821
|
-
};
|
|
822
|
-
const de_TraceGenericInput = (output, context) => {
|
|
823
|
-
return (0, smithy_client_1.take)(output, {
|
|
824
|
-
'blocks': (_) => de_TraceGenericInputBlocksList(_, context),
|
|
825
|
-
'title': smithy_client_1.expectString,
|
|
826
|
-
});
|
|
827
|
-
};
|
|
828
|
-
const de_TraceGenericInputBlock = (output, context) => {
|
|
829
|
-
return (0, smithy_client_1.take)(output, {
|
|
830
|
-
'content': (_) => de_TraceGenericInputBlockContent((0, core_1.awsExpectUnion)(_), context),
|
|
831
|
-
'title': smithy_client_1.expectString,
|
|
832
|
-
});
|
|
833
|
-
};
|
|
834
|
-
const de_TraceGenericInputBlockContent = (output, context) => {
|
|
835
|
-
if (output.json != null) {
|
|
836
|
-
return {
|
|
837
|
-
json: de_Document(output.json, context)
|
|
838
|
-
};
|
|
839
|
-
}
|
|
840
|
-
if ((0, smithy_client_1.expectString)(output.text) !== undefined) {
|
|
841
|
-
return { text: (0, smithy_client_1.expectString)(output.text) };
|
|
842
|
-
}
|
|
843
|
-
return { $unknown: Object.entries(output)[0] };
|
|
844
|
-
};
|
|
845
|
-
const de_TraceGenericInputBlocksList = (output, context) => {
|
|
846
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
847
|
-
return de_TraceGenericInputBlock(entry, context);
|
|
848
|
-
});
|
|
849
|
-
return retVal;
|
|
850
|
-
};
|
|
851
|
-
const de_TraceSegment = (output, context) => {
|
|
852
|
-
return (0, smithy_client_1.take)(output, {
|
|
853
|
-
'activityId': smithy_client_1.expectString,
|
|
854
|
-
'duration': smithy_client_1.expectInt32,
|
|
855
|
-
'id': smithy_client_1.expectString,
|
|
856
|
-
'input': (_) => de_TraceSegmentInput((0, core_1.awsExpectUnion)(_), context),
|
|
857
|
-
'result': (_) => de_TraceSegmentResult((0, core_1.awsExpectUnion)(_), context),
|
|
858
|
-
'start': smithy_client_1.limitedParseDouble,
|
|
859
|
-
'status': smithy_client_1.expectString,
|
|
860
|
-
'version': smithy_client_1.expectInt32,
|
|
861
|
-
});
|
|
862
|
-
};
|
|
863
|
-
const de_TraceSegmentInput = (output, context) => {
|
|
864
|
-
if (output.completion != null) {
|
|
865
|
-
return {
|
|
866
|
-
completion: (0, smithy_client_1._json)(output.completion)
|
|
867
|
-
};
|
|
868
|
-
}
|
|
869
|
-
if (output.generic != null) {
|
|
870
|
-
return {
|
|
871
|
-
generic: de_TraceGenericInput(output.generic, context)
|
|
872
|
-
};
|
|
873
|
-
}
|
|
874
|
-
if (output.oauth != null) {
|
|
875
|
-
return {
|
|
876
|
-
oauth: (0, smithy_client_1._json)(output.oauth)
|
|
877
|
-
};
|
|
878
|
-
}
|
|
879
|
-
if (output.tool != null) {
|
|
880
|
-
return {
|
|
881
|
-
tool: (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(output.tool))
|
|
882
|
-
};
|
|
883
|
-
}
|
|
884
|
-
return { $unknown: Object.entries(output)[0] };
|
|
885
|
-
};
|
|
886
|
-
const de_TraceSegmentResult = (output, context) => {
|
|
887
|
-
if (output.error != null) {
|
|
888
|
-
return {
|
|
889
|
-
error: (0, smithy_client_1._json)(output.error)
|
|
890
|
-
};
|
|
891
|
-
}
|
|
892
|
-
if (output.json != null) {
|
|
893
|
-
return {
|
|
894
|
-
json: de_Document(output.json, context)
|
|
895
|
-
};
|
|
896
|
-
}
|
|
897
|
-
if ((0, smithy_client_1.expectString)(output.text) !== undefined) {
|
|
898
|
-
return { text: (0, smithy_client_1.expectString)(output.text) };
|
|
899
|
-
}
|
|
900
|
-
if (output.tools != null) {
|
|
901
|
-
return {
|
|
902
|
-
tools: (0, smithy_client_1._json)(output.tools)
|
|
903
|
-
};
|
|
904
|
-
}
|
|
905
|
-
return { $unknown: Object.entries(output)[0] };
|
|
906
|
-
};
|
|
907
|
-
const de_TraceSegmentsList = (output, context) => {
|
|
908
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
909
|
-
return de_TraceSegment(entry, context);
|
|
910
|
-
});
|
|
911
|
-
return retVal;
|
|
912
|
-
};
|
|
913
|
-
const de_TraceSession = (output, context) => {
|
|
914
|
-
return (0, smithy_client_1.take)(output, {
|
|
915
|
-
'botId': smithy_client_1.expectString,
|
|
916
|
-
'botName': smithy_client_1.expectString,
|
|
917
|
-
'callId': smithy_client_1.expectString,
|
|
918
|
-
'callerName': smithy_client_1.expectString,
|
|
919
|
-
'callerNumber': smithy_client_1.expectString,
|
|
920
|
-
'company': smithy_client_1.expectString,
|
|
921
|
-
'connectionId': smithy_client_1.expectString,
|
|
922
|
-
'duration': smithy_client_1.expectInt32,
|
|
923
|
-
'flowIndex': smithy_client_1.expectInt32,
|
|
924
|
-
'language': smithy_client_1.expectString,
|
|
925
|
-
'sessionId': smithy_client_1.expectString,
|
|
926
|
-
'start': smithy_client_1.limitedParseDouble,
|
|
927
|
-
'status': smithy_client_1.expectString,
|
|
928
|
-
});
|
|
929
|
-
};
|
|
930
|
-
const de_TraceSessionsList = (output, context) => {
|
|
931
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
932
|
-
return de_TraceSession(entry, context);
|
|
933
|
-
});
|
|
934
|
-
return retVal;
|
|
935
|
-
};
|
|
936
|
-
const de_TraceSilenceTimeoutTaskTrigger = (output, context) => {
|
|
937
|
-
return (0, smithy_client_1.take)(output, {
|
|
938
|
-
'parameters': (_) => de_Document(_, context),
|
|
939
|
-
});
|
|
940
|
-
};
|
|
941
|
-
const de_TraceTimings = (output, context) => {
|
|
942
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
943
|
-
if (value === null) {
|
|
944
|
-
return acc;
|
|
945
|
-
}
|
|
946
|
-
acc[key] = (0, smithy_client_1.limitedParseDouble)(value);
|
|
947
|
-
return acc;
|
|
948
|
-
}, {});
|
|
949
|
-
};
|
|
950
|
-
const de_TranscriptionEvent = (output, context) => {
|
|
951
|
-
return (0, smithy_client_1.take)(output, {
|
|
952
|
-
'confidence': smithy_client_1.limitedParseDouble,
|
|
953
|
-
'final': smithy_client_1.expectBoolean,
|
|
954
|
-
'id': smithy_client_1.expectString,
|
|
955
|
-
'text': smithy_client_1.expectString,
|
|
956
|
-
'time': smithy_client_1.expectLong,
|
|
957
|
-
'type': smithy_client_1.expectString,
|
|
958
|
-
});
|
|
959
|
-
};
|
|
960
|
-
const de_TranscriptionWebhookEvent = (output, context) => {
|
|
961
|
-
return (0, smithy_client_1.take)(output, {
|
|
962
|
-
'botId': smithy_client_1.expectString,
|
|
963
|
-
'callId': smithy_client_1.expectString,
|
|
964
|
-
'event': (_) => de_TranscriptionEvent(_, context),
|
|
965
|
-
'flowIndex': smithy_client_1.expectInt32,
|
|
966
|
-
'sessionId': smithy_client_1.expectString,
|
|
967
|
-
});
|
|
968
|
-
};
|
|
969
|
-
const de_TranscriptionWebsocketEvent = (output, context) => {
|
|
970
|
-
return (0, smithy_client_1.take)(output, {
|
|
971
|
-
'event': (_) => de_TranscriptionEvent(_, context),
|
|
972
|
-
'type': smithy_client_1.expectString,
|
|
973
|
-
});
|
|
974
|
-
};
|
|
975
|
-
const de_VoiceBot = (output, context) => {
|
|
976
|
-
return (0, smithy_client_1.take)(output, {
|
|
977
|
-
'capabilities': smithy_client_1._json,
|
|
978
|
-
'category': smithy_client_1.expectString,
|
|
979
|
-
'createdAt': smithy_client_1.expectString,
|
|
980
|
-
'endpoint': (_) => de_VoiceBotEndpoint((0, core_1.awsExpectUnion)(_), context),
|
|
981
|
-
'groupId': smithy_client_1.expectString,
|
|
982
|
-
'id': smithy_client_1.expectString,
|
|
983
|
-
'message': smithy_client_1.expectString,
|
|
984
|
-
'name': smithy_client_1.expectString,
|
|
985
|
-
'pipeline': smithy_client_1._json,
|
|
986
|
-
'updatedAt': smithy_client_1.expectString,
|
|
987
|
-
});
|
|
988
|
-
};
|
|
989
|
-
const de_VoiceBotEmbeddedTool = (output, context) => {
|
|
990
|
-
return (0, smithy_client_1.take)(output, {
|
|
991
|
-
'annotations': smithy_client_1._json,
|
|
992
|
-
'name': smithy_client_1.expectString,
|
|
993
|
-
'parameters': (_) => de_Document(_, context),
|
|
994
|
-
'type': smithy_client_1.expectString,
|
|
995
|
-
});
|
|
996
|
-
};
|
|
997
|
-
const de_VoiceBotEmbeddedToolsList = (output, context) => {
|
|
998
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
999
|
-
return de_VoiceBotEmbeddedTool(entry, context);
|
|
1000
|
-
});
|
|
1001
|
-
return retVal;
|
|
1002
|
-
};
|
|
1003
|
-
const de_VoiceBotEndpoint = (output, context) => {
|
|
1004
|
-
if (output.dialogflowCx != null) {
|
|
1005
|
-
return {
|
|
1006
|
-
dialogflowCx: de_BotDialogflowCxEndpoint(output.dialogflowCx, context)
|
|
1007
|
-
};
|
|
1008
|
-
}
|
|
1009
|
-
if (output.llm != null) {
|
|
1010
|
-
return {
|
|
1011
|
-
llm: de_VoiceBotLlmEndpoint(output.llm, context)
|
|
1012
|
-
};
|
|
1013
|
-
}
|
|
1014
|
-
if (output.openAiAssistant != null) {
|
|
1015
|
-
return {
|
|
1016
|
-
openAiAssistant: (0, smithy_client_1._json)(output.openAiAssistant)
|
|
1017
|
-
};
|
|
1018
|
-
}
|
|
1019
|
-
if (output.sqs != null) {
|
|
1020
|
-
return {
|
|
1021
|
-
sqs: (0, smithy_client_1._json)(output.sqs)
|
|
1022
|
-
};
|
|
1023
|
-
}
|
|
1024
|
-
if (output.webhook != null) {
|
|
1025
|
-
return {
|
|
1026
|
-
webhook: (0, smithy_client_1._json)(output.webhook)
|
|
1027
|
-
};
|
|
1028
|
-
}
|
|
1029
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1030
|
-
};
|
|
1031
|
-
const de_VoiceBotFunctionDefinition = (output, context) => {
|
|
1032
|
-
return (0, smithy_client_1.take)(output, {
|
|
1033
|
-
'description': smithy_client_1.expectString,
|
|
1034
|
-
'integration': (_) => de_VoiceBotFunctionIntegration((0, core_1.awsExpectUnion)(_), context),
|
|
1035
|
-
'name': smithy_client_1.expectString,
|
|
1036
|
-
'parameters': (_) => de_Document(_, context),
|
|
1037
|
-
});
|
|
1038
|
-
};
|
|
1039
|
-
const de_VoiceBotFunctionIntegration = (output, context) => {
|
|
1040
|
-
if (output.webhook != null) {
|
|
1041
|
-
return {
|
|
1042
|
-
webhook: de_VoiceBotFunctionIntegrationWebhook(output.webhook, context)
|
|
1043
|
-
};
|
|
1044
|
-
}
|
|
1045
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1046
|
-
};
|
|
1047
|
-
const de_VoiceBotFunctionIntegrationWebhook = (output, context) => {
|
|
1048
|
-
return (0, smithy_client_1.take)(output, {
|
|
1049
|
-
'async': smithy_client_1.expectBoolean,
|
|
1050
|
-
'authorization': (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
1051
|
-
'headers': smithy_client_1._json,
|
|
1052
|
-
'method': smithy_client_1.expectString,
|
|
1053
|
-
'parameters': (_) => de_Document(_, context),
|
|
1054
|
-
'startMessage': smithy_client_1.expectString,
|
|
1055
|
-
'timeout': smithy_client_1.expectInt32,
|
|
1056
|
-
'url': smithy_client_1.expectString,
|
|
1057
|
-
});
|
|
1058
|
-
};
|
|
1059
|
-
const de_VoiceBotLlmEndpoint = (output, context) => {
|
|
1060
|
-
return (0, smithy_client_1.take)(output, {
|
|
1061
|
-
'capabilities': smithy_client_1._json,
|
|
1062
|
-
'embeddedTools': (_) => de_VoiceBotEmbeddedToolsList(_, context),
|
|
1063
|
-
'guidelines': smithy_client_1._json,
|
|
1064
|
-
'metadata': smithy_client_1._json,
|
|
1065
|
-
'model': smithy_client_1.expectString,
|
|
1066
|
-
'prompt': smithy_client_1.expectString,
|
|
1067
|
-
'tools': (_) => de_VoiceBotToolsList(_, context),
|
|
1068
|
-
'variables': smithy_client_1._json,
|
|
1069
|
-
});
|
|
1070
|
-
};
|
|
1071
|
-
const de_VoiceBotsList = (output, context) => {
|
|
1072
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1073
|
-
return de_VoiceBot(entry, context);
|
|
1074
|
-
});
|
|
1075
|
-
return retVal;
|
|
1076
|
-
};
|
|
1077
|
-
const de_VoiceBotTool = (output, context) => {
|
|
1078
|
-
return (0, smithy_client_1.take)(output, {
|
|
1079
|
-
'annotations': smithy_client_1._json,
|
|
1080
|
-
'function': (_) => de_VoiceBotFunctionDefinition(_, context),
|
|
1081
|
-
'type': smithy_client_1.expectString,
|
|
1082
|
-
});
|
|
1083
|
-
};
|
|
1084
|
-
const de_VoiceBotToolsList = (output, context) => {
|
|
1085
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1086
|
-
return de_VoiceBotTool(entry, context);
|
|
1087
|
-
});
|
|
1088
|
-
return retVal;
|
|
1089
|
-
};
|
|
1090
|
-
const de_BotDialogflowCxEndpoint = (output, context) => {
|
|
1091
|
-
return (0, smithy_client_1.take)(output, {
|
|
1092
|
-
'agent': smithy_client_1.expectString,
|
|
1093
|
-
'credentials': (_) => de_Document(_, context),
|
|
1094
|
-
'language': smithy_client_1.expectString,
|
|
1095
|
-
'location': smithy_client_1.expectString,
|
|
1096
|
-
});
|
|
1097
|
-
};
|
|
1098
|
-
const deserializeMetadata = (output) => ({
|
|
1099
|
-
httpStatusCode: output.statusCode,
|
|
1100
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1101
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1102
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1103
|
-
});
|
|
1104
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then(body => context.utf8Encoder(body));
|
|
1105
|
-
const _c = "company";
|
|
1106
|
-
const _s = "search";
|