@aws-sdk/client-connectparticipant 3.928.0 → 3.930.0
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/index.js +664 -594
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/ConnectParticipantClient.js +2 -0
- package/dist-es/commands/CancelParticipantAuthenticationCommand.js +3 -9
- package/dist-es/commands/CompleteAttachmentUploadCommand.js +3 -9
- package/dist-es/commands/CreateParticipantConnectionCommand.js +3 -10
- package/dist-es/commands/DescribeViewCommand.js +3 -10
- package/dist-es/commands/DisconnectParticipantCommand.js +3 -9
- package/dist-es/commands/GetAttachmentCommand.js +3 -9
- package/dist-es/commands/GetAuthenticationUrlCommand.js +3 -9
- package/dist-es/commands/GetTranscriptCommand.js +3 -9
- package/dist-es/commands/SendEventCommand.js +3 -9
- package/dist-es/commands/SendMessageCommand.js +3 -9
- package/dist-es/commands/StartAttachmentUploadCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -28
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +624 -0
- package/dist-types/ConnectParticipantClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -24
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +71 -0
- package/dist-types/ts3.4/ConnectParticipantClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -12
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +77 -0
- package/package.json +33 -34
- package/dist-es/protocols/Aws_restJson1.js +0 -465
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -101
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -137
|
@@ -1,465 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { ConnectParticipantServiceException as __BaseException } from "../models/ConnectParticipantServiceException";
|
|
6
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
7
|
-
export const se_CancelParticipantAuthenticationCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
[_xab]: input[_CT],
|
|
12
|
-
});
|
|
13
|
-
b.bp("/participant/cancel-authentication");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(take(input, {
|
|
16
|
-
SessionId: [],
|
|
17
|
-
}));
|
|
18
|
-
b.m("POST").h(headers).b(body);
|
|
19
|
-
return b.build();
|
|
20
|
-
};
|
|
21
|
-
export const se_CompleteAttachmentUploadCommand = async (input, context) => {
|
|
22
|
-
const b = rb(input, context);
|
|
23
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
24
|
-
"content-type": "application/json",
|
|
25
|
-
[_xab]: input[_CT],
|
|
26
|
-
});
|
|
27
|
-
b.bp("/participant/complete-attachment-upload");
|
|
28
|
-
let body;
|
|
29
|
-
body = JSON.stringify(take(input, {
|
|
30
|
-
AttachmentIds: (_) => _json(_),
|
|
31
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
32
|
-
}));
|
|
33
|
-
b.m("POST").h(headers).b(body);
|
|
34
|
-
return b.build();
|
|
35
|
-
};
|
|
36
|
-
export const se_CreateParticipantConnectionCommand = async (input, context) => {
|
|
37
|
-
const b = rb(input, context);
|
|
38
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
39
|
-
"content-type": "application/json",
|
|
40
|
-
[_xab]: input[_PT],
|
|
41
|
-
});
|
|
42
|
-
b.bp("/participant/connection");
|
|
43
|
-
let body;
|
|
44
|
-
body = JSON.stringify(take(input, {
|
|
45
|
-
ConnectParticipant: [],
|
|
46
|
-
Type: (_) => _json(_),
|
|
47
|
-
}));
|
|
48
|
-
b.m("POST").h(headers).b(body);
|
|
49
|
-
return b.build();
|
|
50
|
-
};
|
|
51
|
-
export const se_DescribeViewCommand = async (input, context) => {
|
|
52
|
-
const b = rb(input, context);
|
|
53
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
54
|
-
[_xab]: input[_CT],
|
|
55
|
-
});
|
|
56
|
-
b.bp("/participant/views/{ViewToken}");
|
|
57
|
-
b.p("ViewToken", () => input.ViewToken, "{ViewToken}", false);
|
|
58
|
-
let body;
|
|
59
|
-
b.m("GET").h(headers).b(body);
|
|
60
|
-
return b.build();
|
|
61
|
-
};
|
|
62
|
-
export const se_DisconnectParticipantCommand = async (input, context) => {
|
|
63
|
-
const b = rb(input, context);
|
|
64
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
65
|
-
"content-type": "application/json",
|
|
66
|
-
[_xab]: input[_CT],
|
|
67
|
-
});
|
|
68
|
-
b.bp("/participant/disconnect");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify(take(input, {
|
|
71
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
72
|
-
}));
|
|
73
|
-
b.m("POST").h(headers).b(body);
|
|
74
|
-
return b.build();
|
|
75
|
-
};
|
|
76
|
-
export const se_GetAttachmentCommand = async (input, context) => {
|
|
77
|
-
const b = rb(input, context);
|
|
78
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
79
|
-
"content-type": "application/json",
|
|
80
|
-
[_xab]: input[_CT],
|
|
81
|
-
});
|
|
82
|
-
b.bp("/participant/attachment");
|
|
83
|
-
let body;
|
|
84
|
-
body = JSON.stringify(take(input, {
|
|
85
|
-
AttachmentId: [],
|
|
86
|
-
UrlExpiryInSeconds: [],
|
|
87
|
-
}));
|
|
88
|
-
b.m("POST").h(headers).b(body);
|
|
89
|
-
return b.build();
|
|
90
|
-
};
|
|
91
|
-
export const se_GetAuthenticationUrlCommand = async (input, context) => {
|
|
92
|
-
const b = rb(input, context);
|
|
93
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
94
|
-
"content-type": "application/json",
|
|
95
|
-
[_xab]: input[_CT],
|
|
96
|
-
});
|
|
97
|
-
b.bp("/participant/authentication-url");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(take(input, {
|
|
100
|
-
RedirectUri: [],
|
|
101
|
-
SessionId: [],
|
|
102
|
-
}));
|
|
103
|
-
b.m("POST").h(headers).b(body);
|
|
104
|
-
return b.build();
|
|
105
|
-
};
|
|
106
|
-
export const se_GetTranscriptCommand = async (input, context) => {
|
|
107
|
-
const b = rb(input, context);
|
|
108
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
109
|
-
"content-type": "application/json",
|
|
110
|
-
[_xab]: input[_CT],
|
|
111
|
-
});
|
|
112
|
-
b.bp("/participant/transcript");
|
|
113
|
-
let body;
|
|
114
|
-
body = JSON.stringify(take(input, {
|
|
115
|
-
ContactId: [],
|
|
116
|
-
MaxResults: [],
|
|
117
|
-
NextToken: [],
|
|
118
|
-
ScanDirection: [],
|
|
119
|
-
SortOrder: [],
|
|
120
|
-
StartPosition: (_) => _json(_),
|
|
121
|
-
}));
|
|
122
|
-
b.m("POST").h(headers).b(body);
|
|
123
|
-
return b.build();
|
|
124
|
-
};
|
|
125
|
-
export const se_SendEventCommand = async (input, context) => {
|
|
126
|
-
const b = rb(input, context);
|
|
127
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
128
|
-
"content-type": "application/json",
|
|
129
|
-
[_xab]: input[_CT],
|
|
130
|
-
});
|
|
131
|
-
b.bp("/participant/event");
|
|
132
|
-
let body;
|
|
133
|
-
body = JSON.stringify(take(input, {
|
|
134
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
135
|
-
Content: [],
|
|
136
|
-
ContentType: [],
|
|
137
|
-
}));
|
|
138
|
-
b.m("POST").h(headers).b(body);
|
|
139
|
-
return b.build();
|
|
140
|
-
};
|
|
141
|
-
export const se_SendMessageCommand = async (input, context) => {
|
|
142
|
-
const b = rb(input, context);
|
|
143
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
144
|
-
"content-type": "application/json",
|
|
145
|
-
[_xab]: input[_CT],
|
|
146
|
-
});
|
|
147
|
-
b.bp("/participant/message");
|
|
148
|
-
let body;
|
|
149
|
-
body = JSON.stringify(take(input, {
|
|
150
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
151
|
-
Content: [],
|
|
152
|
-
ContentType: [],
|
|
153
|
-
}));
|
|
154
|
-
b.m("POST").h(headers).b(body);
|
|
155
|
-
return b.build();
|
|
156
|
-
};
|
|
157
|
-
export const se_StartAttachmentUploadCommand = async (input, context) => {
|
|
158
|
-
const b = rb(input, context);
|
|
159
|
-
const headers = map({}, isSerializableHeaderValue, {
|
|
160
|
-
"content-type": "application/json",
|
|
161
|
-
[_xab]: input[_CT],
|
|
162
|
-
});
|
|
163
|
-
b.bp("/participant/start-attachment-upload");
|
|
164
|
-
let body;
|
|
165
|
-
body = JSON.stringify(take(input, {
|
|
166
|
-
AttachmentName: [],
|
|
167
|
-
AttachmentSizeInBytes: [],
|
|
168
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
169
|
-
ContentType: [],
|
|
170
|
-
}));
|
|
171
|
-
b.m("POST").h(headers).b(body);
|
|
172
|
-
return b.build();
|
|
173
|
-
};
|
|
174
|
-
export const de_CancelParticipantAuthenticationCommand = async (output, context) => {
|
|
175
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
176
|
-
return de_CommandError(output, context);
|
|
177
|
-
}
|
|
178
|
-
const contents = map({
|
|
179
|
-
$metadata: deserializeMetadata(output),
|
|
180
|
-
});
|
|
181
|
-
await collectBody(output.body, context);
|
|
182
|
-
return contents;
|
|
183
|
-
};
|
|
184
|
-
export const de_CompleteAttachmentUploadCommand = async (output, context) => {
|
|
185
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
186
|
-
return de_CommandError(output, context);
|
|
187
|
-
}
|
|
188
|
-
const contents = map({
|
|
189
|
-
$metadata: deserializeMetadata(output),
|
|
190
|
-
});
|
|
191
|
-
await collectBody(output.body, context);
|
|
192
|
-
return contents;
|
|
193
|
-
};
|
|
194
|
-
export const de_CreateParticipantConnectionCommand = async (output, context) => {
|
|
195
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
196
|
-
return de_CommandError(output, context);
|
|
197
|
-
}
|
|
198
|
-
const contents = map({
|
|
199
|
-
$metadata: deserializeMetadata(output),
|
|
200
|
-
});
|
|
201
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
202
|
-
const doc = take(data, {
|
|
203
|
-
ConnectionCredentials: _json,
|
|
204
|
-
WebRTCConnection: _json,
|
|
205
|
-
Websocket: _json,
|
|
206
|
-
});
|
|
207
|
-
Object.assign(contents, doc);
|
|
208
|
-
return contents;
|
|
209
|
-
};
|
|
210
|
-
export const de_DescribeViewCommand = async (output, context) => {
|
|
211
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
212
|
-
return de_CommandError(output, context);
|
|
213
|
-
}
|
|
214
|
-
const contents = map({
|
|
215
|
-
$metadata: deserializeMetadata(output),
|
|
216
|
-
});
|
|
217
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
218
|
-
const doc = take(data, {
|
|
219
|
-
View: _json,
|
|
220
|
-
});
|
|
221
|
-
Object.assign(contents, doc);
|
|
222
|
-
return contents;
|
|
223
|
-
};
|
|
224
|
-
export const de_DisconnectParticipantCommand = async (output, context) => {
|
|
225
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
226
|
-
return de_CommandError(output, context);
|
|
227
|
-
}
|
|
228
|
-
const contents = map({
|
|
229
|
-
$metadata: deserializeMetadata(output),
|
|
230
|
-
});
|
|
231
|
-
await collectBody(output.body, context);
|
|
232
|
-
return contents;
|
|
233
|
-
};
|
|
234
|
-
export const de_GetAttachmentCommand = async (output, context) => {
|
|
235
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
236
|
-
return de_CommandError(output, context);
|
|
237
|
-
}
|
|
238
|
-
const contents = map({
|
|
239
|
-
$metadata: deserializeMetadata(output),
|
|
240
|
-
});
|
|
241
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
242
|
-
const doc = take(data, {
|
|
243
|
-
AttachmentSizeInBytes: __expectLong,
|
|
244
|
-
Url: __expectString,
|
|
245
|
-
UrlExpiry: __expectString,
|
|
246
|
-
});
|
|
247
|
-
Object.assign(contents, doc);
|
|
248
|
-
return contents;
|
|
249
|
-
};
|
|
250
|
-
export const de_GetAuthenticationUrlCommand = async (output, context) => {
|
|
251
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
252
|
-
return de_CommandError(output, context);
|
|
253
|
-
}
|
|
254
|
-
const contents = map({
|
|
255
|
-
$metadata: deserializeMetadata(output),
|
|
256
|
-
});
|
|
257
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
258
|
-
const doc = take(data, {
|
|
259
|
-
AuthenticationUrl: __expectString,
|
|
260
|
-
});
|
|
261
|
-
Object.assign(contents, doc);
|
|
262
|
-
return contents;
|
|
263
|
-
};
|
|
264
|
-
export const de_GetTranscriptCommand = async (output, context) => {
|
|
265
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
266
|
-
return de_CommandError(output, context);
|
|
267
|
-
}
|
|
268
|
-
const contents = map({
|
|
269
|
-
$metadata: deserializeMetadata(output),
|
|
270
|
-
});
|
|
271
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
272
|
-
const doc = take(data, {
|
|
273
|
-
InitialContactId: __expectString,
|
|
274
|
-
NextToken: __expectString,
|
|
275
|
-
Transcript: _json,
|
|
276
|
-
});
|
|
277
|
-
Object.assign(contents, doc);
|
|
278
|
-
return contents;
|
|
279
|
-
};
|
|
280
|
-
export const de_SendEventCommand = async (output, context) => {
|
|
281
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
282
|
-
return de_CommandError(output, context);
|
|
283
|
-
}
|
|
284
|
-
const contents = map({
|
|
285
|
-
$metadata: deserializeMetadata(output),
|
|
286
|
-
});
|
|
287
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
288
|
-
const doc = take(data, {
|
|
289
|
-
AbsoluteTime: __expectString,
|
|
290
|
-
Id: __expectString,
|
|
291
|
-
});
|
|
292
|
-
Object.assign(contents, doc);
|
|
293
|
-
return contents;
|
|
294
|
-
};
|
|
295
|
-
export const de_SendMessageCommand = async (output, context) => {
|
|
296
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
297
|
-
return de_CommandError(output, context);
|
|
298
|
-
}
|
|
299
|
-
const contents = map({
|
|
300
|
-
$metadata: deserializeMetadata(output),
|
|
301
|
-
});
|
|
302
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
303
|
-
const doc = take(data, {
|
|
304
|
-
AbsoluteTime: __expectString,
|
|
305
|
-
Id: __expectString,
|
|
306
|
-
});
|
|
307
|
-
Object.assign(contents, doc);
|
|
308
|
-
return contents;
|
|
309
|
-
};
|
|
310
|
-
export const de_StartAttachmentUploadCommand = async (output, context) => {
|
|
311
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
312
|
-
return de_CommandError(output, context);
|
|
313
|
-
}
|
|
314
|
-
const contents = map({
|
|
315
|
-
$metadata: deserializeMetadata(output),
|
|
316
|
-
});
|
|
317
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
318
|
-
const doc = take(data, {
|
|
319
|
-
AttachmentId: __expectString,
|
|
320
|
-
UploadMetadata: _json,
|
|
321
|
-
});
|
|
322
|
-
Object.assign(contents, doc);
|
|
323
|
-
return contents;
|
|
324
|
-
};
|
|
325
|
-
const de_CommandError = async (output, context) => {
|
|
326
|
-
const parsedOutput = {
|
|
327
|
-
...output,
|
|
328
|
-
body: await parseErrorBody(output.body, context),
|
|
329
|
-
};
|
|
330
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
331
|
-
switch (errorCode) {
|
|
332
|
-
case "AccessDeniedException":
|
|
333
|
-
case "com.amazonaws.connectparticipant#AccessDeniedException":
|
|
334
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
335
|
-
case "InternalServerException":
|
|
336
|
-
case "com.amazonaws.connectparticipant#InternalServerException":
|
|
337
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
338
|
-
case "ThrottlingException":
|
|
339
|
-
case "com.amazonaws.connectparticipant#ThrottlingException":
|
|
340
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
341
|
-
case "ValidationException":
|
|
342
|
-
case "com.amazonaws.connectparticipant#ValidationException":
|
|
343
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
344
|
-
case "ConflictException":
|
|
345
|
-
case "com.amazonaws.connectparticipant#ConflictException":
|
|
346
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
347
|
-
case "ServiceQuotaExceededException":
|
|
348
|
-
case "com.amazonaws.connectparticipant#ServiceQuotaExceededException":
|
|
349
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
350
|
-
case "ResourceNotFoundException":
|
|
351
|
-
case "com.amazonaws.connectparticipant#ResourceNotFoundException":
|
|
352
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
353
|
-
default:
|
|
354
|
-
const parsedBody = parsedOutput.body;
|
|
355
|
-
return throwDefaultError({
|
|
356
|
-
output,
|
|
357
|
-
parsedBody,
|
|
358
|
-
errorCode,
|
|
359
|
-
});
|
|
360
|
-
}
|
|
361
|
-
};
|
|
362
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
363
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
364
|
-
const contents = map({});
|
|
365
|
-
const data = parsedOutput.body;
|
|
366
|
-
const doc = take(data, {
|
|
367
|
-
Message: __expectString,
|
|
368
|
-
});
|
|
369
|
-
Object.assign(contents, doc);
|
|
370
|
-
const exception = new AccessDeniedException({
|
|
371
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
372
|
-
...contents,
|
|
373
|
-
});
|
|
374
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
375
|
-
};
|
|
376
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
377
|
-
const contents = map({});
|
|
378
|
-
const data = parsedOutput.body;
|
|
379
|
-
const doc = take(data, {
|
|
380
|
-
Message: __expectString,
|
|
381
|
-
});
|
|
382
|
-
Object.assign(contents, doc);
|
|
383
|
-
const exception = new ConflictException({
|
|
384
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
385
|
-
...contents,
|
|
386
|
-
});
|
|
387
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
388
|
-
};
|
|
389
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
390
|
-
const contents = map({});
|
|
391
|
-
const data = parsedOutput.body;
|
|
392
|
-
const doc = take(data, {
|
|
393
|
-
Message: __expectString,
|
|
394
|
-
});
|
|
395
|
-
Object.assign(contents, doc);
|
|
396
|
-
const exception = new InternalServerException({
|
|
397
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
398
|
-
...contents,
|
|
399
|
-
});
|
|
400
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
401
|
-
};
|
|
402
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
403
|
-
const contents = map({});
|
|
404
|
-
const data = parsedOutput.body;
|
|
405
|
-
const doc = take(data, {
|
|
406
|
-
Message: __expectString,
|
|
407
|
-
ResourceId: __expectString,
|
|
408
|
-
ResourceType: __expectString,
|
|
409
|
-
});
|
|
410
|
-
Object.assign(contents, doc);
|
|
411
|
-
const exception = new ResourceNotFoundException({
|
|
412
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
413
|
-
...contents,
|
|
414
|
-
});
|
|
415
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
416
|
-
};
|
|
417
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
418
|
-
const contents = map({});
|
|
419
|
-
const data = parsedOutput.body;
|
|
420
|
-
const doc = take(data, {
|
|
421
|
-
Message: __expectString,
|
|
422
|
-
});
|
|
423
|
-
Object.assign(contents, doc);
|
|
424
|
-
const exception = new ServiceQuotaExceededException({
|
|
425
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
426
|
-
...contents,
|
|
427
|
-
});
|
|
428
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
429
|
-
};
|
|
430
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
431
|
-
const contents = map({});
|
|
432
|
-
const data = parsedOutput.body;
|
|
433
|
-
const doc = take(data, {
|
|
434
|
-
Message: __expectString,
|
|
435
|
-
});
|
|
436
|
-
Object.assign(contents, doc);
|
|
437
|
-
const exception = new ThrottlingException({
|
|
438
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
439
|
-
...contents,
|
|
440
|
-
});
|
|
441
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
442
|
-
};
|
|
443
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
444
|
-
const contents = map({});
|
|
445
|
-
const data = parsedOutput.body;
|
|
446
|
-
const doc = take(data, {
|
|
447
|
-
Message: __expectString,
|
|
448
|
-
});
|
|
449
|
-
Object.assign(contents, doc);
|
|
450
|
-
const exception = new ValidationException({
|
|
451
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
452
|
-
...contents,
|
|
453
|
-
});
|
|
454
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
455
|
-
};
|
|
456
|
-
const deserializeMetadata = (output) => ({
|
|
457
|
-
httpStatusCode: output.statusCode,
|
|
458
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
459
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
460
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
461
|
-
});
|
|
462
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
463
|
-
const _CT = "ConnectionToken";
|
|
464
|
-
const _PT = "ParticipantToken";
|
|
465
|
-
const _xab = "x-amz-bearer";
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { CancelParticipantAuthenticationCommandInput, CancelParticipantAuthenticationCommandOutput } from "../commands/CancelParticipantAuthenticationCommand";
|
|
4
|
-
import { CompleteAttachmentUploadCommandInput, CompleteAttachmentUploadCommandOutput } from "../commands/CompleteAttachmentUploadCommand";
|
|
5
|
-
import { CreateParticipantConnectionCommandInput, CreateParticipantConnectionCommandOutput } from "../commands/CreateParticipantConnectionCommand";
|
|
6
|
-
import { DescribeViewCommandInput, DescribeViewCommandOutput } from "../commands/DescribeViewCommand";
|
|
7
|
-
import { DisconnectParticipantCommandInput, DisconnectParticipantCommandOutput } from "../commands/DisconnectParticipantCommand";
|
|
8
|
-
import { GetAttachmentCommandInput, GetAttachmentCommandOutput } from "../commands/GetAttachmentCommand";
|
|
9
|
-
import { GetAuthenticationUrlCommandInput, GetAuthenticationUrlCommandOutput } from "../commands/GetAuthenticationUrlCommand";
|
|
10
|
-
import { GetTranscriptCommandInput, GetTranscriptCommandOutput } from "../commands/GetTranscriptCommand";
|
|
11
|
-
import { SendEventCommandInput, SendEventCommandOutput } from "../commands/SendEventCommand";
|
|
12
|
-
import { SendMessageCommandInput, SendMessageCommandOutput } from "../commands/SendMessageCommand";
|
|
13
|
-
import { StartAttachmentUploadCommandInput, StartAttachmentUploadCommandOutput } from "../commands/StartAttachmentUploadCommand";
|
|
14
|
-
/**
|
|
15
|
-
* serializeAws_restJson1CancelParticipantAuthenticationCommand
|
|
16
|
-
*/
|
|
17
|
-
export declare const se_CancelParticipantAuthenticationCommand: (input: CancelParticipantAuthenticationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
18
|
-
/**
|
|
19
|
-
* serializeAws_restJson1CompleteAttachmentUploadCommand
|
|
20
|
-
*/
|
|
21
|
-
export declare const se_CompleteAttachmentUploadCommand: (input: CompleteAttachmentUploadCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
22
|
-
/**
|
|
23
|
-
* serializeAws_restJson1CreateParticipantConnectionCommand
|
|
24
|
-
*/
|
|
25
|
-
export declare const se_CreateParticipantConnectionCommand: (input: CreateParticipantConnectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
26
|
-
/**
|
|
27
|
-
* serializeAws_restJson1DescribeViewCommand
|
|
28
|
-
*/
|
|
29
|
-
export declare const se_DescribeViewCommand: (input: DescribeViewCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
30
|
-
/**
|
|
31
|
-
* serializeAws_restJson1DisconnectParticipantCommand
|
|
32
|
-
*/
|
|
33
|
-
export declare const se_DisconnectParticipantCommand: (input: DisconnectParticipantCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
34
|
-
/**
|
|
35
|
-
* serializeAws_restJson1GetAttachmentCommand
|
|
36
|
-
*/
|
|
37
|
-
export declare const se_GetAttachmentCommand: (input: GetAttachmentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
38
|
-
/**
|
|
39
|
-
* serializeAws_restJson1GetAuthenticationUrlCommand
|
|
40
|
-
*/
|
|
41
|
-
export declare const se_GetAuthenticationUrlCommand: (input: GetAuthenticationUrlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
42
|
-
/**
|
|
43
|
-
* serializeAws_restJson1GetTranscriptCommand
|
|
44
|
-
*/
|
|
45
|
-
export declare const se_GetTranscriptCommand: (input: GetTranscriptCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
46
|
-
/**
|
|
47
|
-
* serializeAws_restJson1SendEventCommand
|
|
48
|
-
*/
|
|
49
|
-
export declare const se_SendEventCommand: (input: SendEventCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
50
|
-
/**
|
|
51
|
-
* serializeAws_restJson1SendMessageCommand
|
|
52
|
-
*/
|
|
53
|
-
export declare const se_SendMessageCommand: (input: SendMessageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
54
|
-
/**
|
|
55
|
-
* serializeAws_restJson1StartAttachmentUploadCommand
|
|
56
|
-
*/
|
|
57
|
-
export declare const se_StartAttachmentUploadCommand: (input: StartAttachmentUploadCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
58
|
-
/**
|
|
59
|
-
* deserializeAws_restJson1CancelParticipantAuthenticationCommand
|
|
60
|
-
*/
|
|
61
|
-
export declare const de_CancelParticipantAuthenticationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CancelParticipantAuthenticationCommandOutput>;
|
|
62
|
-
/**
|
|
63
|
-
* deserializeAws_restJson1CompleteAttachmentUploadCommand
|
|
64
|
-
*/
|
|
65
|
-
export declare const de_CompleteAttachmentUploadCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CompleteAttachmentUploadCommandOutput>;
|
|
66
|
-
/**
|
|
67
|
-
* deserializeAws_restJson1CreateParticipantConnectionCommand
|
|
68
|
-
*/
|
|
69
|
-
export declare const de_CreateParticipantConnectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateParticipantConnectionCommandOutput>;
|
|
70
|
-
/**
|
|
71
|
-
* deserializeAws_restJson1DescribeViewCommand
|
|
72
|
-
*/
|
|
73
|
-
export declare const de_DescribeViewCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeViewCommandOutput>;
|
|
74
|
-
/**
|
|
75
|
-
* deserializeAws_restJson1DisconnectParticipantCommand
|
|
76
|
-
*/
|
|
77
|
-
export declare const de_DisconnectParticipantCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DisconnectParticipantCommandOutput>;
|
|
78
|
-
/**
|
|
79
|
-
* deserializeAws_restJson1GetAttachmentCommand
|
|
80
|
-
*/
|
|
81
|
-
export declare const de_GetAttachmentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAttachmentCommandOutput>;
|
|
82
|
-
/**
|
|
83
|
-
* deserializeAws_restJson1GetAuthenticationUrlCommand
|
|
84
|
-
*/
|
|
85
|
-
export declare const de_GetAuthenticationUrlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAuthenticationUrlCommandOutput>;
|
|
86
|
-
/**
|
|
87
|
-
* deserializeAws_restJson1GetTranscriptCommand
|
|
88
|
-
*/
|
|
89
|
-
export declare const de_GetTranscriptCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetTranscriptCommandOutput>;
|
|
90
|
-
/**
|
|
91
|
-
* deserializeAws_restJson1SendEventCommand
|
|
92
|
-
*/
|
|
93
|
-
export declare const de_SendEventCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendEventCommandOutput>;
|
|
94
|
-
/**
|
|
95
|
-
* deserializeAws_restJson1SendMessageCommand
|
|
96
|
-
*/
|
|
97
|
-
export declare const de_SendMessageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SendMessageCommandOutput>;
|
|
98
|
-
/**
|
|
99
|
-
* deserializeAws_restJson1StartAttachmentUploadCommand
|
|
100
|
-
*/
|
|
101
|
-
export declare const de_StartAttachmentUploadCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartAttachmentUploadCommandOutput>;
|