@aws-sdk/client-voice-id 3.183.0 → 3.185.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/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_0.js +2 -2
- package/dist-es/VoiceID.js +93 -86
- package/dist-es/VoiceIDClient.js +28 -22
- package/dist-es/commands/CreateDomainCommand.js +28 -21
- package/dist-es/commands/DeleteDomainCommand.js +29 -22
- package/dist-es/commands/DeleteFraudsterCommand.js +29 -22
- package/dist-es/commands/DeleteSpeakerCommand.js +29 -22
- package/dist-es/commands/DescribeDomainCommand.js +28 -21
- package/dist-es/commands/DescribeFraudsterCommand.js +28 -21
- package/dist-es/commands/DescribeFraudsterRegistrationJobCommand.js +28 -21
- package/dist-es/commands/DescribeSpeakerCommand.js +28 -21
- package/dist-es/commands/DescribeSpeakerEnrollmentJobCommand.js +28 -21
- package/dist-es/commands/EvaluateSessionCommand.js +28 -21
- package/dist-es/commands/ListDomainsCommand.js +28 -21
- package/dist-es/commands/ListFraudsterRegistrationJobsCommand.js +28 -21
- package/dist-es/commands/ListSpeakerEnrollmentJobsCommand.js +28 -21
- package/dist-es/commands/ListSpeakersCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/OptOutSpeakerCommand.js +28 -21
- package/dist-es/commands/StartFraudsterRegistrationJobCommand.js +28 -21
- package/dist-es/commands/StartSpeakerEnrollmentJobCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/commands/UpdateDomainCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/VoiceIDServiceException.js +10 -5
- package/dist-es/models/models_0.js +162 -333
- package/dist-es/pagination/ListDomainsPaginator.js +68 -25
- package/dist-es/pagination/ListFraudsterRegistrationJobsPaginator.js +68 -25
- package/dist-es/pagination/ListSpeakerEnrollmentJobsPaginator.js +68 -25
- package/dist-es/pagination/ListSpeakersPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_0.js +1984 -1529
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
|
@@ -1,1468 +1,1900 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
3
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
5
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
6
|
import { VoiceIDServiceException as __BaseException } from "../models/VoiceIDServiceException";
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
return
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
};
|
|
105
|
-
export
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
return
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
return
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
body
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
};
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
throw
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
throw
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
};
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
throw
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
return
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
output,
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
};
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
throw
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
throw
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
};
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
output,
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
throw
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
throw
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
throw
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
throw
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
throw
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
};
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
return
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
7
|
+
export var serializeAws_json1_0CreateDomainCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8
|
+
var headers, body;
|
|
9
|
+
return __generator(this, function (_a) {
|
|
10
|
+
headers = {
|
|
11
|
+
"content-type": "application/x-amz-json-1.0",
|
|
12
|
+
"x-amz-target": "VoiceID.CreateDomain",
|
|
13
|
+
};
|
|
14
|
+
body = JSON.stringify(serializeAws_json1_0CreateDomainRequest(input, context));
|
|
15
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
16
|
+
});
|
|
17
|
+
}); };
|
|
18
|
+
export var serializeAws_json1_0DeleteDomainCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
19
|
+
var headers, body;
|
|
20
|
+
return __generator(this, function (_a) {
|
|
21
|
+
headers = {
|
|
22
|
+
"content-type": "application/x-amz-json-1.0",
|
|
23
|
+
"x-amz-target": "VoiceID.DeleteDomain",
|
|
24
|
+
};
|
|
25
|
+
body = JSON.stringify(serializeAws_json1_0DeleteDomainRequest(input, context));
|
|
26
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
27
|
+
});
|
|
28
|
+
}); };
|
|
29
|
+
export var serializeAws_json1_0DeleteFraudsterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
30
|
+
var headers, body;
|
|
31
|
+
return __generator(this, function (_a) {
|
|
32
|
+
headers = {
|
|
33
|
+
"content-type": "application/x-amz-json-1.0",
|
|
34
|
+
"x-amz-target": "VoiceID.DeleteFraudster",
|
|
35
|
+
};
|
|
36
|
+
body = JSON.stringify(serializeAws_json1_0DeleteFraudsterRequest(input, context));
|
|
37
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
38
|
+
});
|
|
39
|
+
}); };
|
|
40
|
+
export var serializeAws_json1_0DeleteSpeakerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
41
|
+
var headers, body;
|
|
42
|
+
return __generator(this, function (_a) {
|
|
43
|
+
headers = {
|
|
44
|
+
"content-type": "application/x-amz-json-1.0",
|
|
45
|
+
"x-amz-target": "VoiceID.DeleteSpeaker",
|
|
46
|
+
};
|
|
47
|
+
body = JSON.stringify(serializeAws_json1_0DeleteSpeakerRequest(input, context));
|
|
48
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
49
|
+
});
|
|
50
|
+
}); };
|
|
51
|
+
export var serializeAws_json1_0DescribeDomainCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
52
|
+
var headers, body;
|
|
53
|
+
return __generator(this, function (_a) {
|
|
54
|
+
headers = {
|
|
55
|
+
"content-type": "application/x-amz-json-1.0",
|
|
56
|
+
"x-amz-target": "VoiceID.DescribeDomain",
|
|
57
|
+
};
|
|
58
|
+
body = JSON.stringify(serializeAws_json1_0DescribeDomainRequest(input, context));
|
|
59
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
60
|
+
});
|
|
61
|
+
}); };
|
|
62
|
+
export var serializeAws_json1_0DescribeFraudsterCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
63
|
+
var headers, body;
|
|
64
|
+
return __generator(this, function (_a) {
|
|
65
|
+
headers = {
|
|
66
|
+
"content-type": "application/x-amz-json-1.0",
|
|
67
|
+
"x-amz-target": "VoiceID.DescribeFraudster",
|
|
68
|
+
};
|
|
69
|
+
body = JSON.stringify(serializeAws_json1_0DescribeFraudsterRequest(input, context));
|
|
70
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
71
|
+
});
|
|
72
|
+
}); };
|
|
73
|
+
export var serializeAws_json1_0DescribeFraudsterRegistrationJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
74
|
+
var headers, body;
|
|
75
|
+
return __generator(this, function (_a) {
|
|
76
|
+
headers = {
|
|
77
|
+
"content-type": "application/x-amz-json-1.0",
|
|
78
|
+
"x-amz-target": "VoiceID.DescribeFraudsterRegistrationJob",
|
|
79
|
+
};
|
|
80
|
+
body = JSON.stringify(serializeAws_json1_0DescribeFraudsterRegistrationJobRequest(input, context));
|
|
81
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
82
|
+
});
|
|
83
|
+
}); };
|
|
84
|
+
export var serializeAws_json1_0DescribeSpeakerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
85
|
+
var headers, body;
|
|
86
|
+
return __generator(this, function (_a) {
|
|
87
|
+
headers = {
|
|
88
|
+
"content-type": "application/x-amz-json-1.0",
|
|
89
|
+
"x-amz-target": "VoiceID.DescribeSpeaker",
|
|
90
|
+
};
|
|
91
|
+
body = JSON.stringify(serializeAws_json1_0DescribeSpeakerRequest(input, context));
|
|
92
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
93
|
+
});
|
|
94
|
+
}); };
|
|
95
|
+
export var serializeAws_json1_0DescribeSpeakerEnrollmentJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
96
|
+
var headers, body;
|
|
97
|
+
return __generator(this, function (_a) {
|
|
98
|
+
headers = {
|
|
99
|
+
"content-type": "application/x-amz-json-1.0",
|
|
100
|
+
"x-amz-target": "VoiceID.DescribeSpeakerEnrollmentJob",
|
|
101
|
+
};
|
|
102
|
+
body = JSON.stringify(serializeAws_json1_0DescribeSpeakerEnrollmentJobRequest(input, context));
|
|
103
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
104
|
+
});
|
|
105
|
+
}); };
|
|
106
|
+
export var serializeAws_json1_0EvaluateSessionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
107
|
+
var headers, body;
|
|
108
|
+
return __generator(this, function (_a) {
|
|
109
|
+
headers = {
|
|
110
|
+
"content-type": "application/x-amz-json-1.0",
|
|
111
|
+
"x-amz-target": "VoiceID.EvaluateSession",
|
|
112
|
+
};
|
|
113
|
+
body = JSON.stringify(serializeAws_json1_0EvaluateSessionRequest(input, context));
|
|
114
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
115
|
+
});
|
|
116
|
+
}); };
|
|
117
|
+
export var serializeAws_json1_0ListDomainsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
118
|
+
var headers, body;
|
|
119
|
+
return __generator(this, function (_a) {
|
|
120
|
+
headers = {
|
|
121
|
+
"content-type": "application/x-amz-json-1.0",
|
|
122
|
+
"x-amz-target": "VoiceID.ListDomains",
|
|
123
|
+
};
|
|
124
|
+
body = JSON.stringify(serializeAws_json1_0ListDomainsRequest(input, context));
|
|
125
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
126
|
+
});
|
|
127
|
+
}); };
|
|
128
|
+
export var serializeAws_json1_0ListFraudsterRegistrationJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
129
|
+
var headers, body;
|
|
130
|
+
return __generator(this, function (_a) {
|
|
131
|
+
headers = {
|
|
132
|
+
"content-type": "application/x-amz-json-1.0",
|
|
133
|
+
"x-amz-target": "VoiceID.ListFraudsterRegistrationJobs",
|
|
134
|
+
};
|
|
135
|
+
body = JSON.stringify(serializeAws_json1_0ListFraudsterRegistrationJobsRequest(input, context));
|
|
136
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
137
|
+
});
|
|
138
|
+
}); };
|
|
139
|
+
export var serializeAws_json1_0ListSpeakerEnrollmentJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
140
|
+
var headers, body;
|
|
141
|
+
return __generator(this, function (_a) {
|
|
142
|
+
headers = {
|
|
143
|
+
"content-type": "application/x-amz-json-1.0",
|
|
144
|
+
"x-amz-target": "VoiceID.ListSpeakerEnrollmentJobs",
|
|
145
|
+
};
|
|
146
|
+
body = JSON.stringify(serializeAws_json1_0ListSpeakerEnrollmentJobsRequest(input, context));
|
|
147
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
148
|
+
});
|
|
149
|
+
}); };
|
|
150
|
+
export var serializeAws_json1_0ListSpeakersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
151
|
+
var headers, body;
|
|
152
|
+
return __generator(this, function (_a) {
|
|
153
|
+
headers = {
|
|
154
|
+
"content-type": "application/x-amz-json-1.0",
|
|
155
|
+
"x-amz-target": "VoiceID.ListSpeakers",
|
|
156
|
+
};
|
|
157
|
+
body = JSON.stringify(serializeAws_json1_0ListSpeakersRequest(input, context));
|
|
158
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
159
|
+
});
|
|
160
|
+
}); };
|
|
161
|
+
export var serializeAws_json1_0ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
162
|
+
var headers, body;
|
|
163
|
+
return __generator(this, function (_a) {
|
|
164
|
+
headers = {
|
|
165
|
+
"content-type": "application/x-amz-json-1.0",
|
|
166
|
+
"x-amz-target": "VoiceID.ListTagsForResource",
|
|
167
|
+
};
|
|
168
|
+
body = JSON.stringify(serializeAws_json1_0ListTagsForResourceRequest(input, context));
|
|
169
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
170
|
+
});
|
|
171
|
+
}); };
|
|
172
|
+
export var serializeAws_json1_0OptOutSpeakerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
173
|
+
var headers, body;
|
|
174
|
+
return __generator(this, function (_a) {
|
|
175
|
+
headers = {
|
|
176
|
+
"content-type": "application/x-amz-json-1.0",
|
|
177
|
+
"x-amz-target": "VoiceID.OptOutSpeaker",
|
|
178
|
+
};
|
|
179
|
+
body = JSON.stringify(serializeAws_json1_0OptOutSpeakerRequest(input, context));
|
|
180
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
181
|
+
});
|
|
182
|
+
}); };
|
|
183
|
+
export var serializeAws_json1_0StartFraudsterRegistrationJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
184
|
+
var headers, body;
|
|
185
|
+
return __generator(this, function (_a) {
|
|
186
|
+
headers = {
|
|
187
|
+
"content-type": "application/x-amz-json-1.0",
|
|
188
|
+
"x-amz-target": "VoiceID.StartFraudsterRegistrationJob",
|
|
189
|
+
};
|
|
190
|
+
body = JSON.stringify(serializeAws_json1_0StartFraudsterRegistrationJobRequest(input, context));
|
|
191
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
192
|
+
});
|
|
193
|
+
}); };
|
|
194
|
+
export var serializeAws_json1_0StartSpeakerEnrollmentJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
195
|
+
var headers, body;
|
|
196
|
+
return __generator(this, function (_a) {
|
|
197
|
+
headers = {
|
|
198
|
+
"content-type": "application/x-amz-json-1.0",
|
|
199
|
+
"x-amz-target": "VoiceID.StartSpeakerEnrollmentJob",
|
|
200
|
+
};
|
|
201
|
+
body = JSON.stringify(serializeAws_json1_0StartSpeakerEnrollmentJobRequest(input, context));
|
|
202
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
203
|
+
});
|
|
204
|
+
}); };
|
|
205
|
+
export var serializeAws_json1_0TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
206
|
+
var headers, body;
|
|
207
|
+
return __generator(this, function (_a) {
|
|
208
|
+
headers = {
|
|
209
|
+
"content-type": "application/x-amz-json-1.0",
|
|
210
|
+
"x-amz-target": "VoiceID.TagResource",
|
|
211
|
+
};
|
|
212
|
+
body = JSON.stringify(serializeAws_json1_0TagResourceRequest(input, context));
|
|
213
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
214
|
+
});
|
|
215
|
+
}); };
|
|
216
|
+
export var serializeAws_json1_0UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
217
|
+
var headers, body;
|
|
218
|
+
return __generator(this, function (_a) {
|
|
219
|
+
headers = {
|
|
220
|
+
"content-type": "application/x-amz-json-1.0",
|
|
221
|
+
"x-amz-target": "VoiceID.UntagResource",
|
|
222
|
+
};
|
|
223
|
+
body = JSON.stringify(serializeAws_json1_0UntagResourceRequest(input, context));
|
|
224
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
225
|
+
});
|
|
226
|
+
}); };
|
|
227
|
+
export var serializeAws_json1_0UpdateDomainCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
228
|
+
var headers, body;
|
|
229
|
+
return __generator(this, function (_a) {
|
|
230
|
+
headers = {
|
|
231
|
+
"content-type": "application/x-amz-json-1.0",
|
|
232
|
+
"x-amz-target": "VoiceID.UpdateDomain",
|
|
233
|
+
};
|
|
234
|
+
body = JSON.stringify(serializeAws_json1_0UpdateDomainRequest(input, context));
|
|
235
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
236
|
+
});
|
|
237
|
+
}); };
|
|
238
|
+
export var deserializeAws_json1_0CreateDomainCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
239
|
+
var data, contents, response;
|
|
240
|
+
return __generator(this, function (_a) {
|
|
241
|
+
switch (_a.label) {
|
|
242
|
+
case 0:
|
|
243
|
+
if (output.statusCode >= 300) {
|
|
244
|
+
return [2, deserializeAws_json1_0CreateDomainCommandError(output, context)];
|
|
245
|
+
}
|
|
246
|
+
return [4, parseBody(output.body, context)];
|
|
247
|
+
case 1:
|
|
248
|
+
data = _a.sent();
|
|
249
|
+
contents = {};
|
|
250
|
+
contents = deserializeAws_json1_0CreateDomainResponse(data, context);
|
|
251
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
252
|
+
return [2, Promise.resolve(response)];
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
}); };
|
|
256
|
+
var deserializeAws_json1_0CreateDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
257
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
258
|
+
var _c;
|
|
259
|
+
return __generator(this, function (_d) {
|
|
260
|
+
switch (_d.label) {
|
|
261
|
+
case 0:
|
|
262
|
+
_a = [__assign({}, output)];
|
|
263
|
+
_c = {};
|
|
264
|
+
return [4, parseErrorBody(output.body, context)];
|
|
265
|
+
case 1:
|
|
266
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
267
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
268
|
+
_b = errorCode;
|
|
269
|
+
switch (_b) {
|
|
270
|
+
case "AccessDeniedException": return [3, 2];
|
|
271
|
+
case "com.amazonaws.voiceid#AccessDeniedException": return [3, 2];
|
|
272
|
+
case "ConflictException": return [3, 4];
|
|
273
|
+
case "com.amazonaws.voiceid#ConflictException": return [3, 4];
|
|
274
|
+
case "InternalServerException": return [3, 6];
|
|
275
|
+
case "com.amazonaws.voiceid#InternalServerException": return [3, 6];
|
|
276
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
277
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException": return [3, 8];
|
|
278
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
279
|
+
case "com.amazonaws.voiceid#ServiceQuotaExceededException": return [3, 10];
|
|
280
|
+
case "ThrottlingException": return [3, 12];
|
|
281
|
+
case "com.amazonaws.voiceid#ThrottlingException": return [3, 12];
|
|
282
|
+
case "ValidationException": return [3, 14];
|
|
283
|
+
case "com.amazonaws.voiceid#ValidationException": return [3, 14];
|
|
284
|
+
}
|
|
285
|
+
return [3, 16];
|
|
286
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
287
|
+
case 3: throw _d.sent();
|
|
288
|
+
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
289
|
+
case 5: throw _d.sent();
|
|
290
|
+
case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
291
|
+
case 7: throw _d.sent();
|
|
292
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
293
|
+
case 9: throw _d.sent();
|
|
294
|
+
case 10: return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
295
|
+
case 11: throw _d.sent();
|
|
296
|
+
case 12: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
297
|
+
case 13: throw _d.sent();
|
|
298
|
+
case 14: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
299
|
+
case 15: throw _d.sent();
|
|
300
|
+
case 16:
|
|
301
|
+
parsedBody = parsedOutput.body;
|
|
302
|
+
throwDefaultError({
|
|
303
|
+
output: output,
|
|
304
|
+
parsedBody: parsedBody,
|
|
305
|
+
exceptionCtor: __BaseException,
|
|
306
|
+
errorCode: errorCode,
|
|
307
|
+
});
|
|
308
|
+
_d.label = 17;
|
|
309
|
+
case 17: return [2];
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
}); };
|
|
313
|
+
export var deserializeAws_json1_0DeleteDomainCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
314
|
+
var response;
|
|
315
|
+
return __generator(this, function (_a) {
|
|
316
|
+
switch (_a.label) {
|
|
317
|
+
case 0:
|
|
318
|
+
if (output.statusCode >= 300) {
|
|
319
|
+
return [2, deserializeAws_json1_0DeleteDomainCommandError(output, context)];
|
|
320
|
+
}
|
|
321
|
+
return [4, collectBody(output.body, context)];
|
|
322
|
+
case 1:
|
|
323
|
+
_a.sent();
|
|
324
|
+
response = {
|
|
325
|
+
$metadata: deserializeMetadata(output),
|
|
326
|
+
};
|
|
327
|
+
return [2, Promise.resolve(response)];
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
}); };
|
|
331
|
+
var deserializeAws_json1_0DeleteDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
332
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
333
|
+
var _c;
|
|
334
|
+
return __generator(this, function (_d) {
|
|
335
|
+
switch (_d.label) {
|
|
336
|
+
case 0:
|
|
337
|
+
_a = [__assign({}, output)];
|
|
338
|
+
_c = {};
|
|
339
|
+
return [4, parseErrorBody(output.body, context)];
|
|
340
|
+
case 1:
|
|
341
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
342
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
343
|
+
_b = errorCode;
|
|
344
|
+
switch (_b) {
|
|
345
|
+
case "AccessDeniedException": return [3, 2];
|
|
346
|
+
case "com.amazonaws.voiceid#AccessDeniedException": return [3, 2];
|
|
347
|
+
case "ConflictException": return [3, 4];
|
|
348
|
+
case "com.amazonaws.voiceid#ConflictException": return [3, 4];
|
|
349
|
+
case "InternalServerException": return [3, 6];
|
|
350
|
+
case "com.amazonaws.voiceid#InternalServerException": return [3, 6];
|
|
351
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
352
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException": return [3, 8];
|
|
353
|
+
case "ThrottlingException": return [3, 10];
|
|
354
|
+
case "com.amazonaws.voiceid#ThrottlingException": return [3, 10];
|
|
355
|
+
case "ValidationException": return [3, 12];
|
|
356
|
+
case "com.amazonaws.voiceid#ValidationException": return [3, 12];
|
|
357
|
+
}
|
|
358
|
+
return [3, 14];
|
|
359
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
360
|
+
case 3: throw _d.sent();
|
|
361
|
+
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
362
|
+
case 5: throw _d.sent();
|
|
363
|
+
case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
364
|
+
case 7: throw _d.sent();
|
|
365
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
366
|
+
case 9: throw _d.sent();
|
|
367
|
+
case 10: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
368
|
+
case 11: throw _d.sent();
|
|
369
|
+
case 12: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
370
|
+
case 13: throw _d.sent();
|
|
371
|
+
case 14:
|
|
372
|
+
parsedBody = parsedOutput.body;
|
|
373
|
+
throwDefaultError({
|
|
374
|
+
output: output,
|
|
375
|
+
parsedBody: parsedBody,
|
|
376
|
+
exceptionCtor: __BaseException,
|
|
377
|
+
errorCode: errorCode,
|
|
378
|
+
});
|
|
379
|
+
_d.label = 15;
|
|
380
|
+
case 15: return [2];
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
}); };
|
|
384
|
+
export var deserializeAws_json1_0DeleteFraudsterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
385
|
+
var response;
|
|
386
|
+
return __generator(this, function (_a) {
|
|
387
|
+
switch (_a.label) {
|
|
388
|
+
case 0:
|
|
389
|
+
if (output.statusCode >= 300) {
|
|
390
|
+
return [2, deserializeAws_json1_0DeleteFraudsterCommandError(output, context)];
|
|
391
|
+
}
|
|
392
|
+
return [4, collectBody(output.body, context)];
|
|
393
|
+
case 1:
|
|
394
|
+
_a.sent();
|
|
395
|
+
response = {
|
|
396
|
+
$metadata: deserializeMetadata(output),
|
|
397
|
+
};
|
|
398
|
+
return [2, Promise.resolve(response)];
|
|
399
|
+
}
|
|
400
|
+
});
|
|
401
|
+
}); };
|
|
402
|
+
var deserializeAws_json1_0DeleteFraudsterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
403
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
404
|
+
var _c;
|
|
405
|
+
return __generator(this, function (_d) {
|
|
406
|
+
switch (_d.label) {
|
|
407
|
+
case 0:
|
|
408
|
+
_a = [__assign({}, output)];
|
|
409
|
+
_c = {};
|
|
410
|
+
return [4, parseErrorBody(output.body, context)];
|
|
411
|
+
case 1:
|
|
412
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
413
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
414
|
+
_b = errorCode;
|
|
415
|
+
switch (_b) {
|
|
416
|
+
case "AccessDeniedException": return [3, 2];
|
|
417
|
+
case "com.amazonaws.voiceid#AccessDeniedException": return [3, 2];
|
|
418
|
+
case "ConflictException": return [3, 4];
|
|
419
|
+
case "com.amazonaws.voiceid#ConflictException": return [3, 4];
|
|
420
|
+
case "InternalServerException": return [3, 6];
|
|
421
|
+
case "com.amazonaws.voiceid#InternalServerException": return [3, 6];
|
|
422
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
423
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException": return [3, 8];
|
|
424
|
+
case "ThrottlingException": return [3, 10];
|
|
425
|
+
case "com.amazonaws.voiceid#ThrottlingException": return [3, 10];
|
|
426
|
+
case "ValidationException": return [3, 12];
|
|
427
|
+
case "com.amazonaws.voiceid#ValidationException": return [3, 12];
|
|
428
|
+
}
|
|
429
|
+
return [3, 14];
|
|
430
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
431
|
+
case 3: throw _d.sent();
|
|
432
|
+
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
433
|
+
case 5: throw _d.sent();
|
|
434
|
+
case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
435
|
+
case 7: throw _d.sent();
|
|
436
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
437
|
+
case 9: throw _d.sent();
|
|
438
|
+
case 10: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
439
|
+
case 11: throw _d.sent();
|
|
440
|
+
case 12: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
441
|
+
case 13: throw _d.sent();
|
|
442
|
+
case 14:
|
|
443
|
+
parsedBody = parsedOutput.body;
|
|
444
|
+
throwDefaultError({
|
|
445
|
+
output: output,
|
|
446
|
+
parsedBody: parsedBody,
|
|
447
|
+
exceptionCtor: __BaseException,
|
|
448
|
+
errorCode: errorCode,
|
|
449
|
+
});
|
|
450
|
+
_d.label = 15;
|
|
451
|
+
case 15: return [2];
|
|
452
|
+
}
|
|
453
|
+
});
|
|
454
|
+
}); };
|
|
455
|
+
export var deserializeAws_json1_0DeleteSpeakerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
456
|
+
var response;
|
|
457
|
+
return __generator(this, function (_a) {
|
|
458
|
+
switch (_a.label) {
|
|
459
|
+
case 0:
|
|
460
|
+
if (output.statusCode >= 300) {
|
|
461
|
+
return [2, deserializeAws_json1_0DeleteSpeakerCommandError(output, context)];
|
|
462
|
+
}
|
|
463
|
+
return [4, collectBody(output.body, context)];
|
|
464
|
+
case 1:
|
|
465
|
+
_a.sent();
|
|
466
|
+
response = {
|
|
467
|
+
$metadata: deserializeMetadata(output),
|
|
468
|
+
};
|
|
469
|
+
return [2, Promise.resolve(response)];
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
}); };
|
|
473
|
+
var deserializeAws_json1_0DeleteSpeakerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
474
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
475
|
+
var _c;
|
|
476
|
+
return __generator(this, function (_d) {
|
|
477
|
+
switch (_d.label) {
|
|
478
|
+
case 0:
|
|
479
|
+
_a = [__assign({}, output)];
|
|
480
|
+
_c = {};
|
|
481
|
+
return [4, parseErrorBody(output.body, context)];
|
|
482
|
+
case 1:
|
|
483
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
484
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
485
|
+
_b = errorCode;
|
|
486
|
+
switch (_b) {
|
|
487
|
+
case "AccessDeniedException": return [3, 2];
|
|
488
|
+
case "com.amazonaws.voiceid#AccessDeniedException": return [3, 2];
|
|
489
|
+
case "ConflictException": return [3, 4];
|
|
490
|
+
case "com.amazonaws.voiceid#ConflictException": return [3, 4];
|
|
491
|
+
case "InternalServerException": return [3, 6];
|
|
492
|
+
case "com.amazonaws.voiceid#InternalServerException": return [3, 6];
|
|
493
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
494
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException": return [3, 8];
|
|
495
|
+
case "ThrottlingException": return [3, 10];
|
|
496
|
+
case "com.amazonaws.voiceid#ThrottlingException": return [3, 10];
|
|
497
|
+
case "ValidationException": return [3, 12];
|
|
498
|
+
case "com.amazonaws.voiceid#ValidationException": return [3, 12];
|
|
499
|
+
}
|
|
500
|
+
return [3, 14];
|
|
501
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
502
|
+
case 3: throw _d.sent();
|
|
503
|
+
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
504
|
+
case 5: throw _d.sent();
|
|
505
|
+
case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
506
|
+
case 7: throw _d.sent();
|
|
507
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
508
|
+
case 9: throw _d.sent();
|
|
509
|
+
case 10: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
510
|
+
case 11: throw _d.sent();
|
|
511
|
+
case 12: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
512
|
+
case 13: throw _d.sent();
|
|
513
|
+
case 14:
|
|
514
|
+
parsedBody = parsedOutput.body;
|
|
515
|
+
throwDefaultError({
|
|
516
|
+
output: output,
|
|
517
|
+
parsedBody: parsedBody,
|
|
518
|
+
exceptionCtor: __BaseException,
|
|
519
|
+
errorCode: errorCode,
|
|
520
|
+
});
|
|
521
|
+
_d.label = 15;
|
|
522
|
+
case 15: return [2];
|
|
523
|
+
}
|
|
524
|
+
});
|
|
525
|
+
}); };
|
|
526
|
+
export var deserializeAws_json1_0DescribeDomainCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
527
|
+
var data, contents, response;
|
|
528
|
+
return __generator(this, function (_a) {
|
|
529
|
+
switch (_a.label) {
|
|
530
|
+
case 0:
|
|
531
|
+
if (output.statusCode >= 300) {
|
|
532
|
+
return [2, deserializeAws_json1_0DescribeDomainCommandError(output, context)];
|
|
533
|
+
}
|
|
534
|
+
return [4, parseBody(output.body, context)];
|
|
535
|
+
case 1:
|
|
536
|
+
data = _a.sent();
|
|
537
|
+
contents = {};
|
|
538
|
+
contents = deserializeAws_json1_0DescribeDomainResponse(data, context);
|
|
539
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
540
|
+
return [2, Promise.resolve(response)];
|
|
541
|
+
}
|
|
542
|
+
});
|
|
543
|
+
}); };
|
|
544
|
+
var deserializeAws_json1_0DescribeDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
545
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
546
|
+
var _c;
|
|
547
|
+
return __generator(this, function (_d) {
|
|
548
|
+
switch (_d.label) {
|
|
549
|
+
case 0:
|
|
550
|
+
_a = [__assign({}, output)];
|
|
551
|
+
_c = {};
|
|
552
|
+
return [4, parseErrorBody(output.body, context)];
|
|
553
|
+
case 1:
|
|
554
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
555
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
556
|
+
_b = errorCode;
|
|
557
|
+
switch (_b) {
|
|
558
|
+
case "AccessDeniedException": return [3, 2];
|
|
559
|
+
case "com.amazonaws.voiceid#AccessDeniedException": return [3, 2];
|
|
560
|
+
case "InternalServerException": return [3, 4];
|
|
561
|
+
case "com.amazonaws.voiceid#InternalServerException": return [3, 4];
|
|
562
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
563
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException": return [3, 6];
|
|
564
|
+
case "ThrottlingException": return [3, 8];
|
|
565
|
+
case "com.amazonaws.voiceid#ThrottlingException": return [3, 8];
|
|
566
|
+
case "ValidationException": return [3, 10];
|
|
567
|
+
case "com.amazonaws.voiceid#ValidationException": return [3, 10];
|
|
568
|
+
}
|
|
569
|
+
return [3, 12];
|
|
570
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
571
|
+
case 3: throw _d.sent();
|
|
572
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
573
|
+
case 5: throw _d.sent();
|
|
574
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
575
|
+
case 7: throw _d.sent();
|
|
576
|
+
case 8: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
577
|
+
case 9: throw _d.sent();
|
|
578
|
+
case 10: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
579
|
+
case 11: throw _d.sent();
|
|
580
|
+
case 12:
|
|
581
|
+
parsedBody = parsedOutput.body;
|
|
582
|
+
throwDefaultError({
|
|
583
|
+
output: output,
|
|
584
|
+
parsedBody: parsedBody,
|
|
585
|
+
exceptionCtor: __BaseException,
|
|
586
|
+
errorCode: errorCode,
|
|
587
|
+
});
|
|
588
|
+
_d.label = 13;
|
|
589
|
+
case 13: return [2];
|
|
590
|
+
}
|
|
591
|
+
});
|
|
592
|
+
}); };
|
|
593
|
+
export var deserializeAws_json1_0DescribeFraudsterCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
594
|
+
var data, contents, response;
|
|
595
|
+
return __generator(this, function (_a) {
|
|
596
|
+
switch (_a.label) {
|
|
597
|
+
case 0:
|
|
598
|
+
if (output.statusCode >= 300) {
|
|
599
|
+
return [2, deserializeAws_json1_0DescribeFraudsterCommandError(output, context)];
|
|
600
|
+
}
|
|
601
|
+
return [4, parseBody(output.body, context)];
|
|
602
|
+
case 1:
|
|
603
|
+
data = _a.sent();
|
|
604
|
+
contents = {};
|
|
605
|
+
contents = deserializeAws_json1_0DescribeFraudsterResponse(data, context);
|
|
606
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
607
|
+
return [2, Promise.resolve(response)];
|
|
608
|
+
}
|
|
609
|
+
});
|
|
610
|
+
}); };
|
|
611
|
+
var deserializeAws_json1_0DescribeFraudsterCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
612
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
613
|
+
var _c;
|
|
614
|
+
return __generator(this, function (_d) {
|
|
615
|
+
switch (_d.label) {
|
|
616
|
+
case 0:
|
|
617
|
+
_a = [__assign({}, output)];
|
|
618
|
+
_c = {};
|
|
619
|
+
return [4, parseErrorBody(output.body, context)];
|
|
620
|
+
case 1:
|
|
621
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
622
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
623
|
+
_b = errorCode;
|
|
624
|
+
switch (_b) {
|
|
625
|
+
case "AccessDeniedException": return [3, 2];
|
|
626
|
+
case "com.amazonaws.voiceid#AccessDeniedException": return [3, 2];
|
|
627
|
+
case "InternalServerException": return [3, 4];
|
|
628
|
+
case "com.amazonaws.voiceid#InternalServerException": return [3, 4];
|
|
629
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
630
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException": return [3, 6];
|
|
631
|
+
case "ThrottlingException": return [3, 8];
|
|
632
|
+
case "com.amazonaws.voiceid#ThrottlingException": return [3, 8];
|
|
633
|
+
case "ValidationException": return [3, 10];
|
|
634
|
+
case "com.amazonaws.voiceid#ValidationException": return [3, 10];
|
|
635
|
+
}
|
|
636
|
+
return [3, 12];
|
|
637
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
638
|
+
case 3: throw _d.sent();
|
|
639
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
640
|
+
case 5: throw _d.sent();
|
|
641
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
642
|
+
case 7: throw _d.sent();
|
|
643
|
+
case 8: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
644
|
+
case 9: throw _d.sent();
|
|
645
|
+
case 10: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
646
|
+
case 11: throw _d.sent();
|
|
647
|
+
case 12:
|
|
648
|
+
parsedBody = parsedOutput.body;
|
|
649
|
+
throwDefaultError({
|
|
650
|
+
output: output,
|
|
651
|
+
parsedBody: parsedBody,
|
|
652
|
+
exceptionCtor: __BaseException,
|
|
653
|
+
errorCode: errorCode,
|
|
654
|
+
});
|
|
655
|
+
_d.label = 13;
|
|
656
|
+
case 13: return [2];
|
|
657
|
+
}
|
|
658
|
+
});
|
|
659
|
+
}); };
|
|
660
|
+
export var deserializeAws_json1_0DescribeFraudsterRegistrationJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
661
|
+
var data, contents, response;
|
|
662
|
+
return __generator(this, function (_a) {
|
|
663
|
+
switch (_a.label) {
|
|
664
|
+
case 0:
|
|
665
|
+
if (output.statusCode >= 300) {
|
|
666
|
+
return [2, deserializeAws_json1_0DescribeFraudsterRegistrationJobCommandError(output, context)];
|
|
667
|
+
}
|
|
668
|
+
return [4, parseBody(output.body, context)];
|
|
669
|
+
case 1:
|
|
670
|
+
data = _a.sent();
|
|
671
|
+
contents = {};
|
|
672
|
+
contents = deserializeAws_json1_0DescribeFraudsterRegistrationJobResponse(data, context);
|
|
673
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
674
|
+
return [2, Promise.resolve(response)];
|
|
675
|
+
}
|
|
676
|
+
});
|
|
677
|
+
}); };
|
|
678
|
+
var deserializeAws_json1_0DescribeFraudsterRegistrationJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
679
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
680
|
+
var _c;
|
|
681
|
+
return __generator(this, function (_d) {
|
|
682
|
+
switch (_d.label) {
|
|
683
|
+
case 0:
|
|
684
|
+
_a = [__assign({}, output)];
|
|
685
|
+
_c = {};
|
|
686
|
+
return [4, parseErrorBody(output.body, context)];
|
|
687
|
+
case 1:
|
|
688
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
689
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
690
|
+
_b = errorCode;
|
|
691
|
+
switch (_b) {
|
|
692
|
+
case "AccessDeniedException": return [3, 2];
|
|
693
|
+
case "com.amazonaws.voiceid#AccessDeniedException": return [3, 2];
|
|
694
|
+
case "InternalServerException": return [3, 4];
|
|
695
|
+
case "com.amazonaws.voiceid#InternalServerException": return [3, 4];
|
|
696
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
697
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException": return [3, 6];
|
|
698
|
+
case "ThrottlingException": return [3, 8];
|
|
699
|
+
case "com.amazonaws.voiceid#ThrottlingException": return [3, 8];
|
|
700
|
+
case "ValidationException": return [3, 10];
|
|
701
|
+
case "com.amazonaws.voiceid#ValidationException": return [3, 10];
|
|
702
|
+
}
|
|
703
|
+
return [3, 12];
|
|
704
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
705
|
+
case 3: throw _d.sent();
|
|
706
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
707
|
+
case 5: throw _d.sent();
|
|
708
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
709
|
+
case 7: throw _d.sent();
|
|
710
|
+
case 8: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
711
|
+
case 9: throw _d.sent();
|
|
712
|
+
case 10: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
713
|
+
case 11: throw _d.sent();
|
|
714
|
+
case 12:
|
|
715
|
+
parsedBody = parsedOutput.body;
|
|
716
|
+
throwDefaultError({
|
|
717
|
+
output: output,
|
|
718
|
+
parsedBody: parsedBody,
|
|
719
|
+
exceptionCtor: __BaseException,
|
|
720
|
+
errorCode: errorCode,
|
|
721
|
+
});
|
|
722
|
+
_d.label = 13;
|
|
723
|
+
case 13: return [2];
|
|
724
|
+
}
|
|
725
|
+
});
|
|
726
|
+
}); };
|
|
727
|
+
export var deserializeAws_json1_0DescribeSpeakerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
728
|
+
var data, contents, response;
|
|
729
|
+
return __generator(this, function (_a) {
|
|
730
|
+
switch (_a.label) {
|
|
731
|
+
case 0:
|
|
732
|
+
if (output.statusCode >= 300) {
|
|
733
|
+
return [2, deserializeAws_json1_0DescribeSpeakerCommandError(output, context)];
|
|
734
|
+
}
|
|
735
|
+
return [4, parseBody(output.body, context)];
|
|
736
|
+
case 1:
|
|
737
|
+
data = _a.sent();
|
|
738
|
+
contents = {};
|
|
739
|
+
contents = deserializeAws_json1_0DescribeSpeakerResponse(data, context);
|
|
740
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
741
|
+
return [2, Promise.resolve(response)];
|
|
742
|
+
}
|
|
743
|
+
});
|
|
744
|
+
}); };
|
|
745
|
+
var deserializeAws_json1_0DescribeSpeakerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
746
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
747
|
+
var _c;
|
|
748
|
+
return __generator(this, function (_d) {
|
|
749
|
+
switch (_d.label) {
|
|
750
|
+
case 0:
|
|
751
|
+
_a = [__assign({}, output)];
|
|
752
|
+
_c = {};
|
|
753
|
+
return [4, parseErrorBody(output.body, context)];
|
|
754
|
+
case 1:
|
|
755
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
756
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
757
|
+
_b = errorCode;
|
|
758
|
+
switch (_b) {
|
|
759
|
+
case "AccessDeniedException": return [3, 2];
|
|
760
|
+
case "com.amazonaws.voiceid#AccessDeniedException": return [3, 2];
|
|
761
|
+
case "InternalServerException": return [3, 4];
|
|
762
|
+
case "com.amazonaws.voiceid#InternalServerException": return [3, 4];
|
|
763
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
764
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException": return [3, 6];
|
|
765
|
+
case "ThrottlingException": return [3, 8];
|
|
766
|
+
case "com.amazonaws.voiceid#ThrottlingException": return [3, 8];
|
|
767
|
+
case "ValidationException": return [3, 10];
|
|
768
|
+
case "com.amazonaws.voiceid#ValidationException": return [3, 10];
|
|
769
|
+
}
|
|
770
|
+
return [3, 12];
|
|
771
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
772
|
+
case 3: throw _d.sent();
|
|
773
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
774
|
+
case 5: throw _d.sent();
|
|
775
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
776
|
+
case 7: throw _d.sent();
|
|
777
|
+
case 8: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
778
|
+
case 9: throw _d.sent();
|
|
779
|
+
case 10: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
780
|
+
case 11: throw _d.sent();
|
|
781
|
+
case 12:
|
|
782
|
+
parsedBody = parsedOutput.body;
|
|
783
|
+
throwDefaultError({
|
|
784
|
+
output: output,
|
|
785
|
+
parsedBody: parsedBody,
|
|
786
|
+
exceptionCtor: __BaseException,
|
|
787
|
+
errorCode: errorCode,
|
|
788
|
+
});
|
|
789
|
+
_d.label = 13;
|
|
790
|
+
case 13: return [2];
|
|
791
|
+
}
|
|
792
|
+
});
|
|
793
|
+
}); };
|
|
794
|
+
export var deserializeAws_json1_0DescribeSpeakerEnrollmentJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
795
|
+
var data, contents, response;
|
|
796
|
+
return __generator(this, function (_a) {
|
|
797
|
+
switch (_a.label) {
|
|
798
|
+
case 0:
|
|
799
|
+
if (output.statusCode >= 300) {
|
|
800
|
+
return [2, deserializeAws_json1_0DescribeSpeakerEnrollmentJobCommandError(output, context)];
|
|
801
|
+
}
|
|
802
|
+
return [4, parseBody(output.body, context)];
|
|
803
|
+
case 1:
|
|
804
|
+
data = _a.sent();
|
|
805
|
+
contents = {};
|
|
806
|
+
contents = deserializeAws_json1_0DescribeSpeakerEnrollmentJobResponse(data, context);
|
|
807
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
808
|
+
return [2, Promise.resolve(response)];
|
|
809
|
+
}
|
|
810
|
+
});
|
|
811
|
+
}); };
|
|
812
|
+
var deserializeAws_json1_0DescribeSpeakerEnrollmentJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
813
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
814
|
+
var _c;
|
|
815
|
+
return __generator(this, function (_d) {
|
|
816
|
+
switch (_d.label) {
|
|
817
|
+
case 0:
|
|
818
|
+
_a = [__assign({}, output)];
|
|
819
|
+
_c = {};
|
|
820
|
+
return [4, parseErrorBody(output.body, context)];
|
|
821
|
+
case 1:
|
|
822
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
823
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
824
|
+
_b = errorCode;
|
|
825
|
+
switch (_b) {
|
|
826
|
+
case "AccessDeniedException": return [3, 2];
|
|
827
|
+
case "com.amazonaws.voiceid#AccessDeniedException": return [3, 2];
|
|
828
|
+
case "InternalServerException": return [3, 4];
|
|
829
|
+
case "com.amazonaws.voiceid#InternalServerException": return [3, 4];
|
|
830
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
831
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException": return [3, 6];
|
|
832
|
+
case "ThrottlingException": return [3, 8];
|
|
833
|
+
case "com.amazonaws.voiceid#ThrottlingException": return [3, 8];
|
|
834
|
+
case "ValidationException": return [3, 10];
|
|
835
|
+
case "com.amazonaws.voiceid#ValidationException": return [3, 10];
|
|
836
|
+
}
|
|
837
|
+
return [3, 12];
|
|
838
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
839
|
+
case 3: throw _d.sent();
|
|
840
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
841
|
+
case 5: throw _d.sent();
|
|
842
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
843
|
+
case 7: throw _d.sent();
|
|
844
|
+
case 8: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
845
|
+
case 9: throw _d.sent();
|
|
846
|
+
case 10: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
847
|
+
case 11: throw _d.sent();
|
|
848
|
+
case 12:
|
|
849
|
+
parsedBody = parsedOutput.body;
|
|
850
|
+
throwDefaultError({
|
|
851
|
+
output: output,
|
|
852
|
+
parsedBody: parsedBody,
|
|
853
|
+
exceptionCtor: __BaseException,
|
|
854
|
+
errorCode: errorCode,
|
|
855
|
+
});
|
|
856
|
+
_d.label = 13;
|
|
857
|
+
case 13: return [2];
|
|
858
|
+
}
|
|
859
|
+
});
|
|
860
|
+
}); };
|
|
861
|
+
export var deserializeAws_json1_0EvaluateSessionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
862
|
+
var data, contents, response;
|
|
863
|
+
return __generator(this, function (_a) {
|
|
864
|
+
switch (_a.label) {
|
|
865
|
+
case 0:
|
|
866
|
+
if (output.statusCode >= 300) {
|
|
867
|
+
return [2, deserializeAws_json1_0EvaluateSessionCommandError(output, context)];
|
|
868
|
+
}
|
|
869
|
+
return [4, parseBody(output.body, context)];
|
|
870
|
+
case 1:
|
|
871
|
+
data = _a.sent();
|
|
872
|
+
contents = {};
|
|
873
|
+
contents = deserializeAws_json1_0EvaluateSessionResponse(data, context);
|
|
874
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
875
|
+
return [2, Promise.resolve(response)];
|
|
876
|
+
}
|
|
877
|
+
});
|
|
878
|
+
}); };
|
|
879
|
+
var deserializeAws_json1_0EvaluateSessionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
880
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
881
|
+
var _c;
|
|
882
|
+
return __generator(this, function (_d) {
|
|
883
|
+
switch (_d.label) {
|
|
884
|
+
case 0:
|
|
885
|
+
_a = [__assign({}, output)];
|
|
886
|
+
_c = {};
|
|
887
|
+
return [4, parseErrorBody(output.body, context)];
|
|
888
|
+
case 1:
|
|
889
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
890
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
891
|
+
_b = errorCode;
|
|
892
|
+
switch (_b) {
|
|
893
|
+
case "AccessDeniedException": return [3, 2];
|
|
894
|
+
case "com.amazonaws.voiceid#AccessDeniedException": return [3, 2];
|
|
895
|
+
case "ConflictException": return [3, 4];
|
|
896
|
+
case "com.amazonaws.voiceid#ConflictException": return [3, 4];
|
|
897
|
+
case "InternalServerException": return [3, 6];
|
|
898
|
+
case "com.amazonaws.voiceid#InternalServerException": return [3, 6];
|
|
899
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
900
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException": return [3, 8];
|
|
901
|
+
case "ThrottlingException": return [3, 10];
|
|
902
|
+
case "com.amazonaws.voiceid#ThrottlingException": return [3, 10];
|
|
903
|
+
case "ValidationException": return [3, 12];
|
|
904
|
+
case "com.amazonaws.voiceid#ValidationException": return [3, 12];
|
|
905
|
+
}
|
|
906
|
+
return [3, 14];
|
|
907
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
908
|
+
case 3: throw _d.sent();
|
|
909
|
+
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
910
|
+
case 5: throw _d.sent();
|
|
911
|
+
case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
912
|
+
case 7: throw _d.sent();
|
|
913
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
914
|
+
case 9: throw _d.sent();
|
|
915
|
+
case 10: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
916
|
+
case 11: throw _d.sent();
|
|
917
|
+
case 12: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
918
|
+
case 13: throw _d.sent();
|
|
919
|
+
case 14:
|
|
920
|
+
parsedBody = parsedOutput.body;
|
|
921
|
+
throwDefaultError({
|
|
922
|
+
output: output,
|
|
923
|
+
parsedBody: parsedBody,
|
|
924
|
+
exceptionCtor: __BaseException,
|
|
925
|
+
errorCode: errorCode,
|
|
926
|
+
});
|
|
927
|
+
_d.label = 15;
|
|
928
|
+
case 15: return [2];
|
|
929
|
+
}
|
|
930
|
+
});
|
|
931
|
+
}); };
|
|
932
|
+
export var deserializeAws_json1_0ListDomainsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
933
|
+
var data, contents, response;
|
|
934
|
+
return __generator(this, function (_a) {
|
|
935
|
+
switch (_a.label) {
|
|
936
|
+
case 0:
|
|
937
|
+
if (output.statusCode >= 300) {
|
|
938
|
+
return [2, deserializeAws_json1_0ListDomainsCommandError(output, context)];
|
|
939
|
+
}
|
|
940
|
+
return [4, parseBody(output.body, context)];
|
|
941
|
+
case 1:
|
|
942
|
+
data = _a.sent();
|
|
943
|
+
contents = {};
|
|
944
|
+
contents = deserializeAws_json1_0ListDomainsResponse(data, context);
|
|
945
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
946
|
+
return [2, Promise.resolve(response)];
|
|
947
|
+
}
|
|
948
|
+
});
|
|
949
|
+
}); };
|
|
950
|
+
var deserializeAws_json1_0ListDomainsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
951
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
952
|
+
var _c;
|
|
953
|
+
return __generator(this, function (_d) {
|
|
954
|
+
switch (_d.label) {
|
|
955
|
+
case 0:
|
|
956
|
+
_a = [__assign({}, output)];
|
|
957
|
+
_c = {};
|
|
958
|
+
return [4, parseErrorBody(output.body, context)];
|
|
959
|
+
case 1:
|
|
960
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
961
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
962
|
+
_b = errorCode;
|
|
963
|
+
switch (_b) {
|
|
964
|
+
case "AccessDeniedException": return [3, 2];
|
|
965
|
+
case "com.amazonaws.voiceid#AccessDeniedException": return [3, 2];
|
|
966
|
+
case "InternalServerException": return [3, 4];
|
|
967
|
+
case "com.amazonaws.voiceid#InternalServerException": return [3, 4];
|
|
968
|
+
case "ThrottlingException": return [3, 6];
|
|
969
|
+
case "com.amazonaws.voiceid#ThrottlingException": return [3, 6];
|
|
970
|
+
case "ValidationException": return [3, 8];
|
|
971
|
+
case "com.amazonaws.voiceid#ValidationException": return [3, 8];
|
|
972
|
+
}
|
|
973
|
+
return [3, 10];
|
|
974
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
975
|
+
case 3: throw _d.sent();
|
|
976
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
977
|
+
case 5: throw _d.sent();
|
|
978
|
+
case 6: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
979
|
+
case 7: throw _d.sent();
|
|
980
|
+
case 8: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
981
|
+
case 9: throw _d.sent();
|
|
982
|
+
case 10:
|
|
983
|
+
parsedBody = parsedOutput.body;
|
|
984
|
+
throwDefaultError({
|
|
985
|
+
output: output,
|
|
986
|
+
parsedBody: parsedBody,
|
|
987
|
+
exceptionCtor: __BaseException,
|
|
988
|
+
errorCode: errorCode,
|
|
989
|
+
});
|
|
990
|
+
_d.label = 11;
|
|
991
|
+
case 11: return [2];
|
|
992
|
+
}
|
|
993
|
+
});
|
|
994
|
+
}); };
|
|
995
|
+
export var deserializeAws_json1_0ListFraudsterRegistrationJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
996
|
+
var data, contents, response;
|
|
997
|
+
return __generator(this, function (_a) {
|
|
998
|
+
switch (_a.label) {
|
|
999
|
+
case 0:
|
|
1000
|
+
if (output.statusCode >= 300) {
|
|
1001
|
+
return [2, deserializeAws_json1_0ListFraudsterRegistrationJobsCommandError(output, context)];
|
|
1002
|
+
}
|
|
1003
|
+
return [4, parseBody(output.body, context)];
|
|
1004
|
+
case 1:
|
|
1005
|
+
data = _a.sent();
|
|
1006
|
+
contents = {};
|
|
1007
|
+
contents = deserializeAws_json1_0ListFraudsterRegistrationJobsResponse(data, context);
|
|
1008
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1009
|
+
return [2, Promise.resolve(response)];
|
|
1010
|
+
}
|
|
1011
|
+
});
|
|
1012
|
+
}); };
|
|
1013
|
+
var deserializeAws_json1_0ListFraudsterRegistrationJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1014
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1015
|
+
var _c;
|
|
1016
|
+
return __generator(this, function (_d) {
|
|
1017
|
+
switch (_d.label) {
|
|
1018
|
+
case 0:
|
|
1019
|
+
_a = [__assign({}, output)];
|
|
1020
|
+
_c = {};
|
|
1021
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1022
|
+
case 1:
|
|
1023
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1024
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1025
|
+
_b = errorCode;
|
|
1026
|
+
switch (_b) {
|
|
1027
|
+
case "AccessDeniedException": return [3, 2];
|
|
1028
|
+
case "com.amazonaws.voiceid#AccessDeniedException": return [3, 2];
|
|
1029
|
+
case "InternalServerException": return [3, 4];
|
|
1030
|
+
case "com.amazonaws.voiceid#InternalServerException": return [3, 4];
|
|
1031
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1032
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException": return [3, 6];
|
|
1033
|
+
case "ThrottlingException": return [3, 8];
|
|
1034
|
+
case "com.amazonaws.voiceid#ThrottlingException": return [3, 8];
|
|
1035
|
+
case "ValidationException": return [3, 10];
|
|
1036
|
+
case "com.amazonaws.voiceid#ValidationException": return [3, 10];
|
|
1037
|
+
}
|
|
1038
|
+
return [3, 12];
|
|
1039
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1040
|
+
case 3: throw _d.sent();
|
|
1041
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1042
|
+
case 5: throw _d.sent();
|
|
1043
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1044
|
+
case 7: throw _d.sent();
|
|
1045
|
+
case 8: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1046
|
+
case 9: throw _d.sent();
|
|
1047
|
+
case 10: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1048
|
+
case 11: throw _d.sent();
|
|
1049
|
+
case 12:
|
|
1050
|
+
parsedBody = parsedOutput.body;
|
|
1051
|
+
throwDefaultError({
|
|
1052
|
+
output: output,
|
|
1053
|
+
parsedBody: parsedBody,
|
|
1054
|
+
exceptionCtor: __BaseException,
|
|
1055
|
+
errorCode: errorCode,
|
|
1056
|
+
});
|
|
1057
|
+
_d.label = 13;
|
|
1058
|
+
case 13: return [2];
|
|
1059
|
+
}
|
|
1060
|
+
});
|
|
1061
|
+
}); };
|
|
1062
|
+
export var deserializeAws_json1_0ListSpeakerEnrollmentJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1063
|
+
var data, contents, response;
|
|
1064
|
+
return __generator(this, function (_a) {
|
|
1065
|
+
switch (_a.label) {
|
|
1066
|
+
case 0:
|
|
1067
|
+
if (output.statusCode >= 300) {
|
|
1068
|
+
return [2, deserializeAws_json1_0ListSpeakerEnrollmentJobsCommandError(output, context)];
|
|
1069
|
+
}
|
|
1070
|
+
return [4, parseBody(output.body, context)];
|
|
1071
|
+
case 1:
|
|
1072
|
+
data = _a.sent();
|
|
1073
|
+
contents = {};
|
|
1074
|
+
contents = deserializeAws_json1_0ListSpeakerEnrollmentJobsResponse(data, context);
|
|
1075
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1076
|
+
return [2, Promise.resolve(response)];
|
|
1077
|
+
}
|
|
1078
|
+
});
|
|
1079
|
+
}); };
|
|
1080
|
+
var deserializeAws_json1_0ListSpeakerEnrollmentJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1081
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1082
|
+
var _c;
|
|
1083
|
+
return __generator(this, function (_d) {
|
|
1084
|
+
switch (_d.label) {
|
|
1085
|
+
case 0:
|
|
1086
|
+
_a = [__assign({}, output)];
|
|
1087
|
+
_c = {};
|
|
1088
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1089
|
+
case 1:
|
|
1090
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1091
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1092
|
+
_b = errorCode;
|
|
1093
|
+
switch (_b) {
|
|
1094
|
+
case "AccessDeniedException": return [3, 2];
|
|
1095
|
+
case "com.amazonaws.voiceid#AccessDeniedException": return [3, 2];
|
|
1096
|
+
case "InternalServerException": return [3, 4];
|
|
1097
|
+
case "com.amazonaws.voiceid#InternalServerException": return [3, 4];
|
|
1098
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1099
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException": return [3, 6];
|
|
1100
|
+
case "ThrottlingException": return [3, 8];
|
|
1101
|
+
case "com.amazonaws.voiceid#ThrottlingException": return [3, 8];
|
|
1102
|
+
case "ValidationException": return [3, 10];
|
|
1103
|
+
case "com.amazonaws.voiceid#ValidationException": return [3, 10];
|
|
1104
|
+
}
|
|
1105
|
+
return [3, 12];
|
|
1106
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1107
|
+
case 3: throw _d.sent();
|
|
1108
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1109
|
+
case 5: throw _d.sent();
|
|
1110
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1111
|
+
case 7: throw _d.sent();
|
|
1112
|
+
case 8: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1113
|
+
case 9: throw _d.sent();
|
|
1114
|
+
case 10: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1115
|
+
case 11: throw _d.sent();
|
|
1116
|
+
case 12:
|
|
1117
|
+
parsedBody = parsedOutput.body;
|
|
1118
|
+
throwDefaultError({
|
|
1119
|
+
output: output,
|
|
1120
|
+
parsedBody: parsedBody,
|
|
1121
|
+
exceptionCtor: __BaseException,
|
|
1122
|
+
errorCode: errorCode,
|
|
1123
|
+
});
|
|
1124
|
+
_d.label = 13;
|
|
1125
|
+
case 13: return [2];
|
|
1126
|
+
}
|
|
1127
|
+
});
|
|
1128
|
+
}); };
|
|
1129
|
+
export var deserializeAws_json1_0ListSpeakersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1130
|
+
var data, contents, response;
|
|
1131
|
+
return __generator(this, function (_a) {
|
|
1132
|
+
switch (_a.label) {
|
|
1133
|
+
case 0:
|
|
1134
|
+
if (output.statusCode >= 300) {
|
|
1135
|
+
return [2, deserializeAws_json1_0ListSpeakersCommandError(output, context)];
|
|
1136
|
+
}
|
|
1137
|
+
return [4, parseBody(output.body, context)];
|
|
1138
|
+
case 1:
|
|
1139
|
+
data = _a.sent();
|
|
1140
|
+
contents = {};
|
|
1141
|
+
contents = deserializeAws_json1_0ListSpeakersResponse(data, context);
|
|
1142
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1143
|
+
return [2, Promise.resolve(response)];
|
|
1144
|
+
}
|
|
1145
|
+
});
|
|
1146
|
+
}); };
|
|
1147
|
+
var deserializeAws_json1_0ListSpeakersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1148
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1149
|
+
var _c;
|
|
1150
|
+
return __generator(this, function (_d) {
|
|
1151
|
+
switch (_d.label) {
|
|
1152
|
+
case 0:
|
|
1153
|
+
_a = [__assign({}, output)];
|
|
1154
|
+
_c = {};
|
|
1155
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1156
|
+
case 1:
|
|
1157
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1158
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1159
|
+
_b = errorCode;
|
|
1160
|
+
switch (_b) {
|
|
1161
|
+
case "AccessDeniedException": return [3, 2];
|
|
1162
|
+
case "com.amazonaws.voiceid#AccessDeniedException": return [3, 2];
|
|
1163
|
+
case "InternalServerException": return [3, 4];
|
|
1164
|
+
case "com.amazonaws.voiceid#InternalServerException": return [3, 4];
|
|
1165
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1166
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException": return [3, 6];
|
|
1167
|
+
case "ThrottlingException": return [3, 8];
|
|
1168
|
+
case "com.amazonaws.voiceid#ThrottlingException": return [3, 8];
|
|
1169
|
+
case "ValidationException": return [3, 10];
|
|
1170
|
+
case "com.amazonaws.voiceid#ValidationException": return [3, 10];
|
|
1171
|
+
}
|
|
1172
|
+
return [3, 12];
|
|
1173
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1174
|
+
case 3: throw _d.sent();
|
|
1175
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1176
|
+
case 5: throw _d.sent();
|
|
1177
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1178
|
+
case 7: throw _d.sent();
|
|
1179
|
+
case 8: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1180
|
+
case 9: throw _d.sent();
|
|
1181
|
+
case 10: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1182
|
+
case 11: throw _d.sent();
|
|
1183
|
+
case 12:
|
|
1184
|
+
parsedBody = parsedOutput.body;
|
|
1185
|
+
throwDefaultError({
|
|
1186
|
+
output: output,
|
|
1187
|
+
parsedBody: parsedBody,
|
|
1188
|
+
exceptionCtor: __BaseException,
|
|
1189
|
+
errorCode: errorCode,
|
|
1190
|
+
});
|
|
1191
|
+
_d.label = 13;
|
|
1192
|
+
case 13: return [2];
|
|
1193
|
+
}
|
|
1194
|
+
});
|
|
1195
|
+
}); };
|
|
1196
|
+
export var deserializeAws_json1_0ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1197
|
+
var data, contents, response;
|
|
1198
|
+
return __generator(this, function (_a) {
|
|
1199
|
+
switch (_a.label) {
|
|
1200
|
+
case 0:
|
|
1201
|
+
if (output.statusCode >= 300) {
|
|
1202
|
+
return [2, deserializeAws_json1_0ListTagsForResourceCommandError(output, context)];
|
|
1203
|
+
}
|
|
1204
|
+
return [4, parseBody(output.body, context)];
|
|
1205
|
+
case 1:
|
|
1206
|
+
data = _a.sent();
|
|
1207
|
+
contents = {};
|
|
1208
|
+
contents = deserializeAws_json1_0ListTagsForResourceResponse(data, context);
|
|
1209
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1210
|
+
return [2, Promise.resolve(response)];
|
|
1211
|
+
}
|
|
1212
|
+
});
|
|
1213
|
+
}); };
|
|
1214
|
+
var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1215
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1216
|
+
var _c;
|
|
1217
|
+
return __generator(this, function (_d) {
|
|
1218
|
+
switch (_d.label) {
|
|
1219
|
+
case 0:
|
|
1220
|
+
_a = [__assign({}, output)];
|
|
1221
|
+
_c = {};
|
|
1222
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1223
|
+
case 1:
|
|
1224
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1225
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1226
|
+
_b = errorCode;
|
|
1227
|
+
switch (_b) {
|
|
1228
|
+
case "AccessDeniedException": return [3, 2];
|
|
1229
|
+
case "com.amazonaws.voiceid#AccessDeniedException": return [3, 2];
|
|
1230
|
+
case "InternalServerException": return [3, 4];
|
|
1231
|
+
case "com.amazonaws.voiceid#InternalServerException": return [3, 4];
|
|
1232
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1233
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException": return [3, 6];
|
|
1234
|
+
case "ThrottlingException": return [3, 8];
|
|
1235
|
+
case "com.amazonaws.voiceid#ThrottlingException": return [3, 8];
|
|
1236
|
+
case "ValidationException": return [3, 10];
|
|
1237
|
+
case "com.amazonaws.voiceid#ValidationException": return [3, 10];
|
|
1238
|
+
}
|
|
1239
|
+
return [3, 12];
|
|
1240
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1241
|
+
case 3: throw _d.sent();
|
|
1242
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1243
|
+
case 5: throw _d.sent();
|
|
1244
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1245
|
+
case 7: throw _d.sent();
|
|
1246
|
+
case 8: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1247
|
+
case 9: throw _d.sent();
|
|
1248
|
+
case 10: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1249
|
+
case 11: throw _d.sent();
|
|
1250
|
+
case 12:
|
|
1251
|
+
parsedBody = parsedOutput.body;
|
|
1252
|
+
throwDefaultError({
|
|
1253
|
+
output: output,
|
|
1254
|
+
parsedBody: parsedBody,
|
|
1255
|
+
exceptionCtor: __BaseException,
|
|
1256
|
+
errorCode: errorCode,
|
|
1257
|
+
});
|
|
1258
|
+
_d.label = 13;
|
|
1259
|
+
case 13: return [2];
|
|
1260
|
+
}
|
|
1261
|
+
});
|
|
1262
|
+
}); };
|
|
1263
|
+
export var deserializeAws_json1_0OptOutSpeakerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1264
|
+
var data, contents, response;
|
|
1265
|
+
return __generator(this, function (_a) {
|
|
1266
|
+
switch (_a.label) {
|
|
1267
|
+
case 0:
|
|
1268
|
+
if (output.statusCode >= 300) {
|
|
1269
|
+
return [2, deserializeAws_json1_0OptOutSpeakerCommandError(output, context)];
|
|
1270
|
+
}
|
|
1271
|
+
return [4, parseBody(output.body, context)];
|
|
1272
|
+
case 1:
|
|
1273
|
+
data = _a.sent();
|
|
1274
|
+
contents = {};
|
|
1275
|
+
contents = deserializeAws_json1_0OptOutSpeakerResponse(data, context);
|
|
1276
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1277
|
+
return [2, Promise.resolve(response)];
|
|
1278
|
+
}
|
|
1279
|
+
});
|
|
1280
|
+
}); };
|
|
1281
|
+
var deserializeAws_json1_0OptOutSpeakerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1282
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1283
|
+
var _c;
|
|
1284
|
+
return __generator(this, function (_d) {
|
|
1285
|
+
switch (_d.label) {
|
|
1286
|
+
case 0:
|
|
1287
|
+
_a = [__assign({}, output)];
|
|
1288
|
+
_c = {};
|
|
1289
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1290
|
+
case 1:
|
|
1291
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1292
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1293
|
+
_b = errorCode;
|
|
1294
|
+
switch (_b) {
|
|
1295
|
+
case "AccessDeniedException": return [3, 2];
|
|
1296
|
+
case "com.amazonaws.voiceid#AccessDeniedException": return [3, 2];
|
|
1297
|
+
case "ConflictException": return [3, 4];
|
|
1298
|
+
case "com.amazonaws.voiceid#ConflictException": return [3, 4];
|
|
1299
|
+
case "InternalServerException": return [3, 6];
|
|
1300
|
+
case "com.amazonaws.voiceid#InternalServerException": return [3, 6];
|
|
1301
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1302
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException": return [3, 8];
|
|
1303
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
1304
|
+
case "com.amazonaws.voiceid#ServiceQuotaExceededException": return [3, 10];
|
|
1305
|
+
case "ThrottlingException": return [3, 12];
|
|
1306
|
+
case "com.amazonaws.voiceid#ThrottlingException": return [3, 12];
|
|
1307
|
+
case "ValidationException": return [3, 14];
|
|
1308
|
+
case "com.amazonaws.voiceid#ValidationException": return [3, 14];
|
|
1309
|
+
}
|
|
1310
|
+
return [3, 16];
|
|
1311
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1312
|
+
case 3: throw _d.sent();
|
|
1313
|
+
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
1314
|
+
case 5: throw _d.sent();
|
|
1315
|
+
case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1316
|
+
case 7: throw _d.sent();
|
|
1317
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1318
|
+
case 9: throw _d.sent();
|
|
1319
|
+
case 10: return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1320
|
+
case 11: throw _d.sent();
|
|
1321
|
+
case 12: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1322
|
+
case 13: throw _d.sent();
|
|
1323
|
+
case 14: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1324
|
+
case 15: throw _d.sent();
|
|
1325
|
+
case 16:
|
|
1326
|
+
parsedBody = parsedOutput.body;
|
|
1327
|
+
throwDefaultError({
|
|
1328
|
+
output: output,
|
|
1329
|
+
parsedBody: parsedBody,
|
|
1330
|
+
exceptionCtor: __BaseException,
|
|
1331
|
+
errorCode: errorCode,
|
|
1332
|
+
});
|
|
1333
|
+
_d.label = 17;
|
|
1334
|
+
case 17: return [2];
|
|
1335
|
+
}
|
|
1336
|
+
});
|
|
1337
|
+
}); };
|
|
1338
|
+
export var deserializeAws_json1_0StartFraudsterRegistrationJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1339
|
+
var data, contents, response;
|
|
1340
|
+
return __generator(this, function (_a) {
|
|
1341
|
+
switch (_a.label) {
|
|
1342
|
+
case 0:
|
|
1343
|
+
if (output.statusCode >= 300) {
|
|
1344
|
+
return [2, deserializeAws_json1_0StartFraudsterRegistrationJobCommandError(output, context)];
|
|
1345
|
+
}
|
|
1346
|
+
return [4, parseBody(output.body, context)];
|
|
1347
|
+
case 1:
|
|
1348
|
+
data = _a.sent();
|
|
1349
|
+
contents = {};
|
|
1350
|
+
contents = deserializeAws_json1_0StartFraudsterRegistrationJobResponse(data, context);
|
|
1351
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1352
|
+
return [2, Promise.resolve(response)];
|
|
1353
|
+
}
|
|
1354
|
+
});
|
|
1355
|
+
}); };
|
|
1356
|
+
var deserializeAws_json1_0StartFraudsterRegistrationJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1357
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1358
|
+
var _c;
|
|
1359
|
+
return __generator(this, function (_d) {
|
|
1360
|
+
switch (_d.label) {
|
|
1361
|
+
case 0:
|
|
1362
|
+
_a = [__assign({}, output)];
|
|
1363
|
+
_c = {};
|
|
1364
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1365
|
+
case 1:
|
|
1366
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1367
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1368
|
+
_b = errorCode;
|
|
1369
|
+
switch (_b) {
|
|
1370
|
+
case "AccessDeniedException": return [3, 2];
|
|
1371
|
+
case "com.amazonaws.voiceid#AccessDeniedException": return [3, 2];
|
|
1372
|
+
case "ConflictException": return [3, 4];
|
|
1373
|
+
case "com.amazonaws.voiceid#ConflictException": return [3, 4];
|
|
1374
|
+
case "InternalServerException": return [3, 6];
|
|
1375
|
+
case "com.amazonaws.voiceid#InternalServerException": return [3, 6];
|
|
1376
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1377
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException": return [3, 8];
|
|
1378
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
1379
|
+
case "com.amazonaws.voiceid#ServiceQuotaExceededException": return [3, 10];
|
|
1380
|
+
case "ThrottlingException": return [3, 12];
|
|
1381
|
+
case "com.amazonaws.voiceid#ThrottlingException": return [3, 12];
|
|
1382
|
+
case "ValidationException": return [3, 14];
|
|
1383
|
+
case "com.amazonaws.voiceid#ValidationException": return [3, 14];
|
|
1384
|
+
}
|
|
1385
|
+
return [3, 16];
|
|
1386
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1387
|
+
case 3: throw _d.sent();
|
|
1388
|
+
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
1389
|
+
case 5: throw _d.sent();
|
|
1390
|
+
case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1391
|
+
case 7: throw _d.sent();
|
|
1392
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1393
|
+
case 9: throw _d.sent();
|
|
1394
|
+
case 10: return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1395
|
+
case 11: throw _d.sent();
|
|
1396
|
+
case 12: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1397
|
+
case 13: throw _d.sent();
|
|
1398
|
+
case 14: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1399
|
+
case 15: throw _d.sent();
|
|
1400
|
+
case 16:
|
|
1401
|
+
parsedBody = parsedOutput.body;
|
|
1402
|
+
throwDefaultError({
|
|
1403
|
+
output: output,
|
|
1404
|
+
parsedBody: parsedBody,
|
|
1405
|
+
exceptionCtor: __BaseException,
|
|
1406
|
+
errorCode: errorCode,
|
|
1407
|
+
});
|
|
1408
|
+
_d.label = 17;
|
|
1409
|
+
case 17: return [2];
|
|
1410
|
+
}
|
|
1411
|
+
});
|
|
1412
|
+
}); };
|
|
1413
|
+
export var deserializeAws_json1_0StartSpeakerEnrollmentJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1414
|
+
var data, contents, response;
|
|
1415
|
+
return __generator(this, function (_a) {
|
|
1416
|
+
switch (_a.label) {
|
|
1417
|
+
case 0:
|
|
1418
|
+
if (output.statusCode >= 300) {
|
|
1419
|
+
return [2, deserializeAws_json1_0StartSpeakerEnrollmentJobCommandError(output, context)];
|
|
1420
|
+
}
|
|
1421
|
+
return [4, parseBody(output.body, context)];
|
|
1422
|
+
case 1:
|
|
1423
|
+
data = _a.sent();
|
|
1424
|
+
contents = {};
|
|
1425
|
+
contents = deserializeAws_json1_0StartSpeakerEnrollmentJobResponse(data, context);
|
|
1426
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1427
|
+
return [2, Promise.resolve(response)];
|
|
1428
|
+
}
|
|
1429
|
+
});
|
|
1430
|
+
}); };
|
|
1431
|
+
var deserializeAws_json1_0StartSpeakerEnrollmentJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1432
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1433
|
+
var _c;
|
|
1434
|
+
return __generator(this, function (_d) {
|
|
1435
|
+
switch (_d.label) {
|
|
1436
|
+
case 0:
|
|
1437
|
+
_a = [__assign({}, output)];
|
|
1438
|
+
_c = {};
|
|
1439
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1440
|
+
case 1:
|
|
1441
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1442
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
|
+
_b = errorCode;
|
|
1444
|
+
switch (_b) {
|
|
1445
|
+
case "AccessDeniedException": return [3, 2];
|
|
1446
|
+
case "com.amazonaws.voiceid#AccessDeniedException": return [3, 2];
|
|
1447
|
+
case "ConflictException": return [3, 4];
|
|
1448
|
+
case "com.amazonaws.voiceid#ConflictException": return [3, 4];
|
|
1449
|
+
case "InternalServerException": return [3, 6];
|
|
1450
|
+
case "com.amazonaws.voiceid#InternalServerException": return [3, 6];
|
|
1451
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1452
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException": return [3, 8];
|
|
1453
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
1454
|
+
case "com.amazonaws.voiceid#ServiceQuotaExceededException": return [3, 10];
|
|
1455
|
+
case "ThrottlingException": return [3, 12];
|
|
1456
|
+
case "com.amazonaws.voiceid#ThrottlingException": return [3, 12];
|
|
1457
|
+
case "ValidationException": return [3, 14];
|
|
1458
|
+
case "com.amazonaws.voiceid#ValidationException": return [3, 14];
|
|
1459
|
+
}
|
|
1460
|
+
return [3, 16];
|
|
1461
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1462
|
+
case 3: throw _d.sent();
|
|
1463
|
+
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
1464
|
+
case 5: throw _d.sent();
|
|
1465
|
+
case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1466
|
+
case 7: throw _d.sent();
|
|
1467
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1468
|
+
case 9: throw _d.sent();
|
|
1469
|
+
case 10: return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1470
|
+
case 11: throw _d.sent();
|
|
1471
|
+
case 12: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1472
|
+
case 13: throw _d.sent();
|
|
1473
|
+
case 14: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1474
|
+
case 15: throw _d.sent();
|
|
1475
|
+
case 16:
|
|
1476
|
+
parsedBody = parsedOutput.body;
|
|
1477
|
+
throwDefaultError({
|
|
1478
|
+
output: output,
|
|
1479
|
+
parsedBody: parsedBody,
|
|
1480
|
+
exceptionCtor: __BaseException,
|
|
1481
|
+
errorCode: errorCode,
|
|
1482
|
+
});
|
|
1483
|
+
_d.label = 17;
|
|
1484
|
+
case 17: return [2];
|
|
1485
|
+
}
|
|
1486
|
+
});
|
|
1487
|
+
}); };
|
|
1488
|
+
export var deserializeAws_json1_0TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1489
|
+
var data, contents, response;
|
|
1490
|
+
return __generator(this, function (_a) {
|
|
1491
|
+
switch (_a.label) {
|
|
1492
|
+
case 0:
|
|
1493
|
+
if (output.statusCode >= 300) {
|
|
1494
|
+
return [2, deserializeAws_json1_0TagResourceCommandError(output, context)];
|
|
1495
|
+
}
|
|
1496
|
+
return [4, parseBody(output.body, context)];
|
|
1497
|
+
case 1:
|
|
1498
|
+
data = _a.sent();
|
|
1499
|
+
contents = {};
|
|
1500
|
+
contents = deserializeAws_json1_0TagResourceResponse(data, context);
|
|
1501
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1502
|
+
return [2, Promise.resolve(response)];
|
|
1503
|
+
}
|
|
1504
|
+
});
|
|
1505
|
+
}); };
|
|
1506
|
+
var deserializeAws_json1_0TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1507
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1508
|
+
var _c;
|
|
1509
|
+
return __generator(this, function (_d) {
|
|
1510
|
+
switch (_d.label) {
|
|
1511
|
+
case 0:
|
|
1512
|
+
_a = [__assign({}, output)];
|
|
1513
|
+
_c = {};
|
|
1514
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1515
|
+
case 1:
|
|
1516
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1517
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1518
|
+
_b = errorCode;
|
|
1519
|
+
switch (_b) {
|
|
1520
|
+
case "AccessDeniedException": return [3, 2];
|
|
1521
|
+
case "com.amazonaws.voiceid#AccessDeniedException": return [3, 2];
|
|
1522
|
+
case "ConflictException": return [3, 4];
|
|
1523
|
+
case "com.amazonaws.voiceid#ConflictException": return [3, 4];
|
|
1524
|
+
case "InternalServerException": return [3, 6];
|
|
1525
|
+
case "com.amazonaws.voiceid#InternalServerException": return [3, 6];
|
|
1526
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1527
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException": return [3, 8];
|
|
1528
|
+
case "ThrottlingException": return [3, 10];
|
|
1529
|
+
case "com.amazonaws.voiceid#ThrottlingException": return [3, 10];
|
|
1530
|
+
case "ValidationException": return [3, 12];
|
|
1531
|
+
case "com.amazonaws.voiceid#ValidationException": return [3, 12];
|
|
1532
|
+
}
|
|
1533
|
+
return [3, 14];
|
|
1534
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1535
|
+
case 3: throw _d.sent();
|
|
1536
|
+
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
1537
|
+
case 5: throw _d.sent();
|
|
1538
|
+
case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1539
|
+
case 7: throw _d.sent();
|
|
1540
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1541
|
+
case 9: throw _d.sent();
|
|
1542
|
+
case 10: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1543
|
+
case 11: throw _d.sent();
|
|
1544
|
+
case 12: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1545
|
+
case 13: throw _d.sent();
|
|
1546
|
+
case 14:
|
|
1547
|
+
parsedBody = parsedOutput.body;
|
|
1548
|
+
throwDefaultError({
|
|
1549
|
+
output: output,
|
|
1550
|
+
parsedBody: parsedBody,
|
|
1551
|
+
exceptionCtor: __BaseException,
|
|
1552
|
+
errorCode: errorCode,
|
|
1553
|
+
});
|
|
1554
|
+
_d.label = 15;
|
|
1555
|
+
case 15: return [2];
|
|
1556
|
+
}
|
|
1557
|
+
});
|
|
1558
|
+
}); };
|
|
1559
|
+
export var deserializeAws_json1_0UntagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1560
|
+
var data, contents, response;
|
|
1561
|
+
return __generator(this, function (_a) {
|
|
1562
|
+
switch (_a.label) {
|
|
1563
|
+
case 0:
|
|
1564
|
+
if (output.statusCode >= 300) {
|
|
1565
|
+
return [2, deserializeAws_json1_0UntagResourceCommandError(output, context)];
|
|
1566
|
+
}
|
|
1567
|
+
return [4, parseBody(output.body, context)];
|
|
1568
|
+
case 1:
|
|
1569
|
+
data = _a.sent();
|
|
1570
|
+
contents = {};
|
|
1571
|
+
contents = deserializeAws_json1_0UntagResourceResponse(data, context);
|
|
1572
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1573
|
+
return [2, Promise.resolve(response)];
|
|
1574
|
+
}
|
|
1575
|
+
});
|
|
1576
|
+
}); };
|
|
1577
|
+
var deserializeAws_json1_0UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1578
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1579
|
+
var _c;
|
|
1580
|
+
return __generator(this, function (_d) {
|
|
1581
|
+
switch (_d.label) {
|
|
1582
|
+
case 0:
|
|
1583
|
+
_a = [__assign({}, output)];
|
|
1584
|
+
_c = {};
|
|
1585
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1586
|
+
case 1:
|
|
1587
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1588
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1589
|
+
_b = errorCode;
|
|
1590
|
+
switch (_b) {
|
|
1591
|
+
case "AccessDeniedException": return [3, 2];
|
|
1592
|
+
case "com.amazonaws.voiceid#AccessDeniedException": return [3, 2];
|
|
1593
|
+
case "ConflictException": return [3, 4];
|
|
1594
|
+
case "com.amazonaws.voiceid#ConflictException": return [3, 4];
|
|
1595
|
+
case "InternalServerException": return [3, 6];
|
|
1596
|
+
case "com.amazonaws.voiceid#InternalServerException": return [3, 6];
|
|
1597
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1598
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException": return [3, 8];
|
|
1599
|
+
case "ThrottlingException": return [3, 10];
|
|
1600
|
+
case "com.amazonaws.voiceid#ThrottlingException": return [3, 10];
|
|
1601
|
+
case "ValidationException": return [3, 12];
|
|
1602
|
+
case "com.amazonaws.voiceid#ValidationException": return [3, 12];
|
|
1603
|
+
}
|
|
1604
|
+
return [3, 14];
|
|
1605
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1606
|
+
case 3: throw _d.sent();
|
|
1607
|
+
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
1608
|
+
case 5: throw _d.sent();
|
|
1609
|
+
case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1610
|
+
case 7: throw _d.sent();
|
|
1611
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1612
|
+
case 9: throw _d.sent();
|
|
1613
|
+
case 10: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1614
|
+
case 11: throw _d.sent();
|
|
1615
|
+
case 12: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1616
|
+
case 13: throw _d.sent();
|
|
1617
|
+
case 14:
|
|
1618
|
+
parsedBody = parsedOutput.body;
|
|
1619
|
+
throwDefaultError({
|
|
1620
|
+
output: output,
|
|
1621
|
+
parsedBody: parsedBody,
|
|
1622
|
+
exceptionCtor: __BaseException,
|
|
1623
|
+
errorCode: errorCode,
|
|
1624
|
+
});
|
|
1625
|
+
_d.label = 15;
|
|
1626
|
+
case 15: return [2];
|
|
1627
|
+
}
|
|
1628
|
+
});
|
|
1629
|
+
}); };
|
|
1630
|
+
export var deserializeAws_json1_0UpdateDomainCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1631
|
+
var data, contents, response;
|
|
1632
|
+
return __generator(this, function (_a) {
|
|
1633
|
+
switch (_a.label) {
|
|
1634
|
+
case 0:
|
|
1635
|
+
if (output.statusCode >= 300) {
|
|
1636
|
+
return [2, deserializeAws_json1_0UpdateDomainCommandError(output, context)];
|
|
1637
|
+
}
|
|
1638
|
+
return [4, parseBody(output.body, context)];
|
|
1639
|
+
case 1:
|
|
1640
|
+
data = _a.sent();
|
|
1641
|
+
contents = {};
|
|
1642
|
+
contents = deserializeAws_json1_0UpdateDomainResponse(data, context);
|
|
1643
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1644
|
+
return [2, Promise.resolve(response)];
|
|
1645
|
+
}
|
|
1646
|
+
});
|
|
1647
|
+
}); };
|
|
1648
|
+
var deserializeAws_json1_0UpdateDomainCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1649
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1650
|
+
var _c;
|
|
1651
|
+
return __generator(this, function (_d) {
|
|
1652
|
+
switch (_d.label) {
|
|
1653
|
+
case 0:
|
|
1654
|
+
_a = [__assign({}, output)];
|
|
1655
|
+
_c = {};
|
|
1656
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1657
|
+
case 1:
|
|
1658
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1659
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1660
|
+
_b = errorCode;
|
|
1661
|
+
switch (_b) {
|
|
1662
|
+
case "AccessDeniedException": return [3, 2];
|
|
1663
|
+
case "com.amazonaws.voiceid#AccessDeniedException": return [3, 2];
|
|
1664
|
+
case "ConflictException": return [3, 4];
|
|
1665
|
+
case "com.amazonaws.voiceid#ConflictException": return [3, 4];
|
|
1666
|
+
case "InternalServerException": return [3, 6];
|
|
1667
|
+
case "com.amazonaws.voiceid#InternalServerException": return [3, 6];
|
|
1668
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1669
|
+
case "com.amazonaws.voiceid#ResourceNotFoundException": return [3, 8];
|
|
1670
|
+
case "ThrottlingException": return [3, 10];
|
|
1671
|
+
case "com.amazonaws.voiceid#ThrottlingException": return [3, 10];
|
|
1672
|
+
case "ValidationException": return [3, 12];
|
|
1673
|
+
case "com.amazonaws.voiceid#ValidationException": return [3, 12];
|
|
1674
|
+
}
|
|
1675
|
+
return [3, 14];
|
|
1676
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1677
|
+
case 3: throw _d.sent();
|
|
1678
|
+
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
1679
|
+
case 5: throw _d.sent();
|
|
1680
|
+
case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1681
|
+
case 7: throw _d.sent();
|
|
1682
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1683
|
+
case 9: throw _d.sent();
|
|
1684
|
+
case 10: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1685
|
+
case 11: throw _d.sent();
|
|
1686
|
+
case 12: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1687
|
+
case 13: throw _d.sent();
|
|
1688
|
+
case 14:
|
|
1689
|
+
parsedBody = parsedOutput.body;
|
|
1690
|
+
throwDefaultError({
|
|
1691
|
+
output: output,
|
|
1692
|
+
parsedBody: parsedBody,
|
|
1693
|
+
exceptionCtor: __BaseException,
|
|
1694
|
+
errorCode: errorCode,
|
|
1695
|
+
});
|
|
1696
|
+
_d.label = 15;
|
|
1697
|
+
case 15: return [2];
|
|
1698
|
+
}
|
|
1699
|
+
});
|
|
1700
|
+
}); };
|
|
1701
|
+
var deserializeAws_json1_0AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1702
|
+
var body, deserialized, exception;
|
|
1703
|
+
return __generator(this, function (_a) {
|
|
1704
|
+
body = parsedOutput.body;
|
|
1705
|
+
deserialized = deserializeAws_json1_0AccessDeniedException(body, context);
|
|
1706
|
+
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1707
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1708
|
+
});
|
|
1709
|
+
}); };
|
|
1710
|
+
var deserializeAws_json1_0ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1711
|
+
var body, deserialized, exception;
|
|
1712
|
+
return __generator(this, function (_a) {
|
|
1713
|
+
body = parsedOutput.body;
|
|
1714
|
+
deserialized = deserializeAws_json1_0ConflictException(body, context);
|
|
1715
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1716
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1717
|
+
});
|
|
1718
|
+
}); };
|
|
1719
|
+
var deserializeAws_json1_0InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1720
|
+
var body, deserialized, exception;
|
|
1721
|
+
return __generator(this, function (_a) {
|
|
1722
|
+
body = parsedOutput.body;
|
|
1723
|
+
deserialized = deserializeAws_json1_0InternalServerException(body, context);
|
|
1724
|
+
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1725
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1726
|
+
});
|
|
1727
|
+
}); };
|
|
1728
|
+
var deserializeAws_json1_0ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1729
|
+
var body, deserialized, exception;
|
|
1730
|
+
return __generator(this, function (_a) {
|
|
1731
|
+
body = parsedOutput.body;
|
|
1732
|
+
deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context);
|
|
1733
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1734
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1735
|
+
});
|
|
1736
|
+
}); };
|
|
1737
|
+
var deserializeAws_json1_0ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1738
|
+
var body, deserialized, exception;
|
|
1739
|
+
return __generator(this, function (_a) {
|
|
1740
|
+
body = parsedOutput.body;
|
|
1741
|
+
deserialized = deserializeAws_json1_0ServiceQuotaExceededException(body, context);
|
|
1742
|
+
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1743
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1744
|
+
});
|
|
1745
|
+
}); };
|
|
1746
|
+
var deserializeAws_json1_0ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1747
|
+
var body, deserialized, exception;
|
|
1748
|
+
return __generator(this, function (_a) {
|
|
1749
|
+
body = parsedOutput.body;
|
|
1750
|
+
deserialized = deserializeAws_json1_0ThrottlingException(body, context);
|
|
1751
|
+
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1752
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1753
|
+
});
|
|
1754
|
+
}); };
|
|
1755
|
+
var deserializeAws_json1_0ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1756
|
+
var body, deserialized, exception;
|
|
1757
|
+
return __generator(this, function (_a) {
|
|
1758
|
+
body = parsedOutput.body;
|
|
1759
|
+
deserialized = deserializeAws_json1_0ValidationException(body, context);
|
|
1760
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1761
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1762
|
+
});
|
|
1763
|
+
}); };
|
|
1764
|
+
var serializeAws_json1_0CreateDomainRequest = function (input, context) {
|
|
1765
|
+
var _a;
|
|
1766
|
+
return __assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.ServerSideEncryptionConfiguration != null && {
|
|
1767
|
+
ServerSideEncryptionConfiguration: serializeAws_json1_0ServerSideEncryptionConfiguration(input.ServerSideEncryptionConfiguration, context),
|
|
1768
|
+
})), (input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
|
|
1246
1769
|
};
|
|
1247
|
-
|
|
1248
|
-
return {
|
|
1249
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1250
|
-
};
|
|
1770
|
+
var serializeAws_json1_0DeleteDomainRequest = function (input, context) {
|
|
1771
|
+
return __assign({}, (input.DomainId != null && { DomainId: input.DomainId }));
|
|
1251
1772
|
};
|
|
1252
|
-
|
|
1253
|
-
return {
|
|
1254
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1255
|
-
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1256
|
-
};
|
|
1773
|
+
var serializeAws_json1_0DeleteFraudsterRequest = function (input, context) {
|
|
1774
|
+
return __assign(__assign({}, (input.DomainId != null && { DomainId: input.DomainId })), (input.FraudsterId != null && { FraudsterId: input.FraudsterId }));
|
|
1257
1775
|
};
|
|
1258
|
-
|
|
1259
|
-
return {
|
|
1260
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1261
|
-
...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
|
|
1262
|
-
};
|
|
1776
|
+
var serializeAws_json1_0DeleteSpeakerRequest = function (input, context) {
|
|
1777
|
+
return __assign(__assign({}, (input.DomainId != null && { DomainId: input.DomainId })), (input.SpeakerId != null && { SpeakerId: input.SpeakerId }));
|
|
1263
1778
|
};
|
|
1264
|
-
|
|
1265
|
-
return {
|
|
1266
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1267
|
-
};
|
|
1779
|
+
var serializeAws_json1_0DescribeDomainRequest = function (input, context) {
|
|
1780
|
+
return __assign({}, (input.DomainId != null && { DomainId: input.DomainId }));
|
|
1268
1781
|
};
|
|
1269
|
-
|
|
1270
|
-
return {
|
|
1271
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1272
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1273
|
-
};
|
|
1782
|
+
var serializeAws_json1_0DescribeFraudsterRegistrationJobRequest = function (input, context) {
|
|
1783
|
+
return __assign(__assign({}, (input.DomainId != null && { DomainId: input.DomainId })), (input.JobId != null && { JobId: input.JobId }));
|
|
1274
1784
|
};
|
|
1275
|
-
|
|
1276
|
-
return {
|
|
1277
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1278
|
-
...(input.FraudsterId != null && { FraudsterId: input.FraudsterId }),
|
|
1279
|
-
};
|
|
1785
|
+
var serializeAws_json1_0DescribeFraudsterRequest = function (input, context) {
|
|
1786
|
+
return __assign(__assign({}, (input.DomainId != null && { DomainId: input.DomainId })), (input.FraudsterId != null && { FraudsterId: input.FraudsterId }));
|
|
1280
1787
|
};
|
|
1281
|
-
|
|
1282
|
-
return {
|
|
1283
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1284
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1285
|
-
};
|
|
1788
|
+
var serializeAws_json1_0DescribeSpeakerEnrollmentJobRequest = function (input, context) {
|
|
1789
|
+
return __assign(__assign({}, (input.DomainId != null && { DomainId: input.DomainId })), (input.JobId != null && { JobId: input.JobId }));
|
|
1286
1790
|
};
|
|
1287
|
-
|
|
1288
|
-
return {
|
|
1289
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1290
|
-
...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
|
|
1291
|
-
};
|
|
1791
|
+
var serializeAws_json1_0DescribeSpeakerRequest = function (input, context) {
|
|
1792
|
+
return __assign(__assign({}, (input.DomainId != null && { DomainId: input.DomainId })), (input.SpeakerId != null && { SpeakerId: input.SpeakerId }));
|
|
1292
1793
|
};
|
|
1293
|
-
|
|
1294
|
-
return {
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
FraudDetectionConfig: serializeAws_json1_0EnrollmentJobFraudDetectionConfig(input.FraudDetectionConfig, context),
|
|
1298
|
-
}),
|
|
1299
|
-
};
|
|
1794
|
+
var serializeAws_json1_0EnrollmentConfig = function (input, context) {
|
|
1795
|
+
return __assign(__assign({}, (input.ExistingEnrollmentAction != null && { ExistingEnrollmentAction: input.ExistingEnrollmentAction })), (input.FraudDetectionConfig != null && {
|
|
1796
|
+
FraudDetectionConfig: serializeAws_json1_0EnrollmentJobFraudDetectionConfig(input.FraudDetectionConfig, context),
|
|
1797
|
+
}));
|
|
1300
1798
|
};
|
|
1301
|
-
|
|
1302
|
-
return {
|
|
1303
|
-
...(input.FraudDetectionAction != null && { FraudDetectionAction: input.FraudDetectionAction }),
|
|
1304
|
-
...(input.RiskThreshold != null && { RiskThreshold: input.RiskThreshold }),
|
|
1305
|
-
};
|
|
1799
|
+
var serializeAws_json1_0EnrollmentJobFraudDetectionConfig = function (input, context) {
|
|
1800
|
+
return __assign(__assign({}, (input.FraudDetectionAction != null && { FraudDetectionAction: input.FraudDetectionAction })), (input.RiskThreshold != null && { RiskThreshold: input.RiskThreshold }));
|
|
1306
1801
|
};
|
|
1307
|
-
|
|
1308
|
-
return {
|
|
1309
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1310
|
-
...(input.SessionNameOrId != null && { SessionNameOrId: input.SessionNameOrId }),
|
|
1311
|
-
};
|
|
1802
|
+
var serializeAws_json1_0EvaluateSessionRequest = function (input, context) {
|
|
1803
|
+
return __assign(__assign({}, (input.DomainId != null && { DomainId: input.DomainId })), (input.SessionNameOrId != null && { SessionNameOrId: input.SessionNameOrId }));
|
|
1312
1804
|
};
|
|
1313
|
-
|
|
1314
|
-
return {
|
|
1315
|
-
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
1316
|
-
};
|
|
1805
|
+
var serializeAws_json1_0InputDataConfig = function (input, context) {
|
|
1806
|
+
return __assign({}, (input.S3Uri != null && { S3Uri: input.S3Uri }));
|
|
1317
1807
|
};
|
|
1318
|
-
|
|
1319
|
-
return {
|
|
1320
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1321
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1322
|
-
};
|
|
1808
|
+
var serializeAws_json1_0ListDomainsRequest = function (input, context) {
|
|
1809
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1323
1810
|
};
|
|
1324
|
-
|
|
1325
|
-
return {
|
|
1326
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1327
|
-
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
1328
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1329
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1330
|
-
};
|
|
1811
|
+
var serializeAws_json1_0ListFraudsterRegistrationJobsRequest = function (input, context) {
|
|
1812
|
+
return __assign(__assign(__assign(__assign({}, (input.DomainId != null && { DomainId: input.DomainId })), (input.JobStatus != null && { JobStatus: input.JobStatus })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1331
1813
|
};
|
|
1332
|
-
|
|
1333
|
-
return {
|
|
1334
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1335
|
-
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
1336
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1337
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1338
|
-
};
|
|
1814
|
+
var serializeAws_json1_0ListSpeakerEnrollmentJobsRequest = function (input, context) {
|
|
1815
|
+
return __assign(__assign(__assign(__assign({}, (input.DomainId != null && { DomainId: input.DomainId })), (input.JobStatus != null && { JobStatus: input.JobStatus })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1339
1816
|
};
|
|
1340
|
-
|
|
1341
|
-
return {
|
|
1342
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1343
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1344
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1345
|
-
};
|
|
1817
|
+
var serializeAws_json1_0ListSpeakersRequest = function (input, context) {
|
|
1818
|
+
return __assign(__assign(__assign({}, (input.DomainId != null && { DomainId: input.DomainId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1346
1819
|
};
|
|
1347
|
-
|
|
1348
|
-
return {
|
|
1349
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1350
|
-
};
|
|
1820
|
+
var serializeAws_json1_0ListTagsForResourceRequest = function (input, context) {
|
|
1821
|
+
return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
1351
1822
|
};
|
|
1352
|
-
|
|
1353
|
-
return {
|
|
1354
|
-
...(input.DomainId != null && { DomainId: input.DomainId }),
|
|
1355
|
-
...(input.SpeakerId != null && { SpeakerId: input.SpeakerId }),
|
|
1356
|
-
};
|
|
1823
|
+
var serializeAws_json1_0OptOutSpeakerRequest = function (input, context) {
|
|
1824
|
+
return __assign(__assign({}, (input.DomainId != null && { DomainId: input.DomainId })), (input.SpeakerId != null && { SpeakerId: input.SpeakerId }));
|
|
1357
1825
|
};
|
|
1358
|
-
|
|
1359
|
-
return {
|
|
1360
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1361
|
-
...(input.S3Uri != null && { S3Uri: input.S3Uri }),
|
|
1362
|
-
};
|
|
1826
|
+
var serializeAws_json1_0OutputDataConfig = function (input, context) {
|
|
1827
|
+
return __assign(__assign({}, (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.S3Uri != null && { S3Uri: input.S3Uri }));
|
|
1363
1828
|
};
|
|
1364
|
-
|
|
1365
|
-
return {
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
FraudsterSimilarityThreshold: input.FraudsterSimilarityThreshold,
|
|
1371
|
-
}),
|
|
1372
|
-
};
|
|
1829
|
+
var serializeAws_json1_0RegistrationConfig = function (input, context) {
|
|
1830
|
+
return __assign(__assign({}, (input.DuplicateRegistrationAction != null && {
|
|
1831
|
+
DuplicateRegistrationAction: input.DuplicateRegistrationAction,
|
|
1832
|
+
})), (input.FraudsterSimilarityThreshold != null && {
|
|
1833
|
+
FraudsterSimilarityThreshold: input.FraudsterSimilarityThreshold,
|
|
1834
|
+
}));
|
|
1373
1835
|
};
|
|
1374
|
-
|
|
1375
|
-
return {
|
|
1376
|
-
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
1377
|
-
};
|
|
1836
|
+
var serializeAws_json1_0ServerSideEncryptionConfiguration = function (input, context) {
|
|
1837
|
+
return __assign({}, (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }));
|
|
1378
1838
|
};
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
...(input.OutputDataConfig != null && {
|
|
1389
|
-
OutputDataConfig: serializeAws_json1_0OutputDataConfig(input.OutputDataConfig, context),
|
|
1390
|
-
}),
|
|
1391
|
-
...(input.RegistrationConfig != null && {
|
|
1392
|
-
RegistrationConfig: serializeAws_json1_0RegistrationConfig(input.RegistrationConfig, context),
|
|
1393
|
-
}),
|
|
1394
|
-
};
|
|
1839
|
+
var serializeAws_json1_0StartFraudsterRegistrationJobRequest = function (input, context) {
|
|
1840
|
+
var _a;
|
|
1841
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.DomainId != null && { DomainId: input.DomainId })), (input.InputDataConfig != null && {
|
|
1842
|
+
InputDataConfig: serializeAws_json1_0InputDataConfig(input.InputDataConfig, context),
|
|
1843
|
+
})), (input.JobName != null && { JobName: input.JobName })), (input.OutputDataConfig != null && {
|
|
1844
|
+
OutputDataConfig: serializeAws_json1_0OutputDataConfig(input.OutputDataConfig, context),
|
|
1845
|
+
})), (input.RegistrationConfig != null && {
|
|
1846
|
+
RegistrationConfig: serializeAws_json1_0RegistrationConfig(input.RegistrationConfig, context),
|
|
1847
|
+
}));
|
|
1395
1848
|
};
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
InputDataConfig: serializeAws_json1_0InputDataConfig(input.InputDataConfig, context),
|
|
1406
|
-
}),
|
|
1407
|
-
...(input.JobName != null && { JobName: input.JobName }),
|
|
1408
|
-
...(input.OutputDataConfig != null && {
|
|
1409
|
-
OutputDataConfig: serializeAws_json1_0OutputDataConfig(input.OutputDataConfig, context),
|
|
1410
|
-
}),
|
|
1411
|
-
};
|
|
1849
|
+
var serializeAws_json1_0StartSpeakerEnrollmentJobRequest = function (input, context) {
|
|
1850
|
+
var _a;
|
|
1851
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.DomainId != null && { DomainId: input.DomainId })), (input.EnrollmentConfig != null && {
|
|
1852
|
+
EnrollmentConfig: serializeAws_json1_0EnrollmentConfig(input.EnrollmentConfig, context),
|
|
1853
|
+
})), (input.InputDataConfig != null && {
|
|
1854
|
+
InputDataConfig: serializeAws_json1_0InputDataConfig(input.InputDataConfig, context),
|
|
1855
|
+
})), (input.JobName != null && { JobName: input.JobName })), (input.OutputDataConfig != null && {
|
|
1856
|
+
OutputDataConfig: serializeAws_json1_0OutputDataConfig(input.OutputDataConfig, context),
|
|
1857
|
+
}));
|
|
1412
1858
|
};
|
|
1413
|
-
|
|
1414
|
-
return {
|
|
1415
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1416
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1417
|
-
};
|
|
1859
|
+
var serializeAws_json1_0Tag = function (input, context) {
|
|
1860
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
1418
1861
|
};
|
|
1419
|
-
|
|
1862
|
+
var serializeAws_json1_0TagKeyList = function (input, context) {
|
|
1420
1863
|
return input
|
|
1421
|
-
.filter((e)
|
|
1422
|
-
.map((entry)
|
|
1864
|
+
.filter(function (e) { return e != null; })
|
|
1865
|
+
.map(function (entry) {
|
|
1423
1866
|
return entry;
|
|
1424
1867
|
});
|
|
1425
1868
|
};
|
|
1426
|
-
|
|
1869
|
+
var serializeAws_json1_0TagList = function (input, context) {
|
|
1427
1870
|
return input
|
|
1428
|
-
.filter((e)
|
|
1429
|
-
.map((entry)
|
|
1871
|
+
.filter(function (e) { return e != null; })
|
|
1872
|
+
.map(function (entry) {
|
|
1430
1873
|
return serializeAws_json1_0Tag(entry, context);
|
|
1431
1874
|
});
|
|
1432
1875
|
};
|
|
1433
|
-
|
|
1434
|
-
return {
|
|
1435
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1436
|
-
...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
1437
|
-
};
|
|
1876
|
+
var serializeAws_json1_0TagResourceRequest = function (input, context) {
|
|
1877
|
+
return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
|
|
1438
1878
|
};
|
|
1439
|
-
|
|
1440
|
-
return {
|
|
1441
|
-
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
1442
|
-
...(input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }),
|
|
1443
|
-
};
|
|
1879
|
+
var serializeAws_json1_0UntagResourceRequest = function (input, context) {
|
|
1880
|
+
return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.TagKeys != null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }));
|
|
1444
1881
|
};
|
|
1445
|
-
|
|
1446
|
-
return {
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1450
|
-
...(input.ServerSideEncryptionConfiguration != null && {
|
|
1451
|
-
ServerSideEncryptionConfiguration: serializeAws_json1_0ServerSideEncryptionConfiguration(input.ServerSideEncryptionConfiguration, context),
|
|
1452
|
-
}),
|
|
1453
|
-
};
|
|
1882
|
+
var serializeAws_json1_0UpdateDomainRequest = function (input, context) {
|
|
1883
|
+
return __assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.DomainId != null && { DomainId: input.DomainId })), (input.Name != null && { Name: input.Name })), (input.ServerSideEncryptionConfiguration != null && {
|
|
1884
|
+
ServerSideEncryptionConfiguration: serializeAws_json1_0ServerSideEncryptionConfiguration(input.ServerSideEncryptionConfiguration, context),
|
|
1885
|
+
}));
|
|
1454
1886
|
};
|
|
1455
|
-
|
|
1887
|
+
var deserializeAws_json1_0AccessDeniedException = function (output, context) {
|
|
1456
1888
|
return {
|
|
1457
1889
|
Message: __expectString(output.Message),
|
|
1458
1890
|
};
|
|
1459
1891
|
};
|
|
1460
|
-
|
|
1892
|
+
var deserializeAws_json1_0AuthenticationConfiguration = function (output, context) {
|
|
1461
1893
|
return {
|
|
1462
1894
|
AcceptanceThreshold: __expectInt32(output.AcceptanceThreshold),
|
|
1463
1895
|
};
|
|
1464
1896
|
};
|
|
1465
|
-
|
|
1897
|
+
var deserializeAws_json1_0AuthenticationResult = function (output, context) {
|
|
1466
1898
|
return {
|
|
1467
1899
|
AudioAggregationEndedAt: output.AudioAggregationEndedAt != null
|
|
1468
1900
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.AudioAggregationEndedAt)))
|
|
@@ -1480,43 +1912,43 @@ const deserializeAws_json1_0AuthenticationResult = (output, context) => {
|
|
|
1480
1912
|
Score: __expectInt32(output.Score),
|
|
1481
1913
|
};
|
|
1482
1914
|
};
|
|
1483
|
-
|
|
1915
|
+
var deserializeAws_json1_0ConflictException = function (output, context) {
|
|
1484
1916
|
return {
|
|
1485
1917
|
ConflictType: __expectString(output.ConflictType),
|
|
1486
1918
|
Message: __expectString(output.Message),
|
|
1487
1919
|
};
|
|
1488
1920
|
};
|
|
1489
|
-
|
|
1921
|
+
var deserializeAws_json1_0CreateDomainResponse = function (output, context) {
|
|
1490
1922
|
return {
|
|
1491
1923
|
Domain: output.Domain != null ? deserializeAws_json1_0Domain(output.Domain, context) : undefined,
|
|
1492
1924
|
};
|
|
1493
1925
|
};
|
|
1494
|
-
|
|
1926
|
+
var deserializeAws_json1_0DescribeDomainResponse = function (output, context) {
|
|
1495
1927
|
return {
|
|
1496
1928
|
Domain: output.Domain != null ? deserializeAws_json1_0Domain(output.Domain, context) : undefined,
|
|
1497
1929
|
};
|
|
1498
1930
|
};
|
|
1499
|
-
|
|
1931
|
+
var deserializeAws_json1_0DescribeFraudsterRegistrationJobResponse = function (output, context) {
|
|
1500
1932
|
return {
|
|
1501
1933
|
Job: output.Job != null ? deserializeAws_json1_0FraudsterRegistrationJob(output.Job, context) : undefined,
|
|
1502
1934
|
};
|
|
1503
1935
|
};
|
|
1504
|
-
|
|
1936
|
+
var deserializeAws_json1_0DescribeFraudsterResponse = function (output, context) {
|
|
1505
1937
|
return {
|
|
1506
1938
|
Fraudster: output.Fraudster != null ? deserializeAws_json1_0Fraudster(output.Fraudster, context) : undefined,
|
|
1507
1939
|
};
|
|
1508
1940
|
};
|
|
1509
|
-
|
|
1941
|
+
var deserializeAws_json1_0DescribeSpeakerEnrollmentJobResponse = function (output, context) {
|
|
1510
1942
|
return {
|
|
1511
1943
|
Job: output.Job != null ? deserializeAws_json1_0SpeakerEnrollmentJob(output.Job, context) : undefined,
|
|
1512
1944
|
};
|
|
1513
1945
|
};
|
|
1514
|
-
|
|
1946
|
+
var deserializeAws_json1_0DescribeSpeakerResponse = function (output, context) {
|
|
1515
1947
|
return {
|
|
1516
1948
|
Speaker: output.Speaker != null ? deserializeAws_json1_0Speaker(output.Speaker, context) : undefined,
|
|
1517
1949
|
};
|
|
1518
1950
|
};
|
|
1519
|
-
|
|
1951
|
+
var deserializeAws_json1_0Domain = function (output, context) {
|
|
1520
1952
|
return {
|
|
1521
1953
|
Arn: __expectString(output.Arn),
|
|
1522
1954
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
@@ -1533,10 +1965,10 @@ const deserializeAws_json1_0Domain = (output, context) => {
|
|
|
1533
1965
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
1534
1966
|
};
|
|
1535
1967
|
};
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
.filter((e)
|
|
1539
|
-
.map((entry)
|
|
1968
|
+
var deserializeAws_json1_0DomainSummaries = function (output, context) {
|
|
1969
|
+
var retVal = (output || [])
|
|
1970
|
+
.filter(function (e) { return e != null; })
|
|
1971
|
+
.map(function (entry) {
|
|
1540
1972
|
if (entry === null) {
|
|
1541
1973
|
return null;
|
|
1542
1974
|
}
|
|
@@ -1544,7 +1976,7 @@ const deserializeAws_json1_0DomainSummaries = (output, context) => {
|
|
|
1544
1976
|
});
|
|
1545
1977
|
return retVal;
|
|
1546
1978
|
};
|
|
1547
|
-
|
|
1979
|
+
var deserializeAws_json1_0DomainSummary = function (output, context) {
|
|
1548
1980
|
return {
|
|
1549
1981
|
Arn: __expectString(output.Arn),
|
|
1550
1982
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
@@ -1561,7 +1993,7 @@ const deserializeAws_json1_0DomainSummary = (output, context) => {
|
|
|
1561
1993
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
1562
1994
|
};
|
|
1563
1995
|
};
|
|
1564
|
-
|
|
1996
|
+
var deserializeAws_json1_0EnrollmentConfig = function (output, context) {
|
|
1565
1997
|
return {
|
|
1566
1998
|
ExistingEnrollmentAction: __expectString(output.ExistingEnrollmentAction),
|
|
1567
1999
|
FraudDetectionConfig: output.FraudDetectionConfig != null
|
|
@@ -1569,13 +2001,13 @@ const deserializeAws_json1_0EnrollmentConfig = (output, context) => {
|
|
|
1569
2001
|
: undefined,
|
|
1570
2002
|
};
|
|
1571
2003
|
};
|
|
1572
|
-
|
|
2004
|
+
var deserializeAws_json1_0EnrollmentJobFraudDetectionConfig = function (output, context) {
|
|
1573
2005
|
return {
|
|
1574
2006
|
FraudDetectionAction: __expectString(output.FraudDetectionAction),
|
|
1575
2007
|
RiskThreshold: __expectInt32(output.RiskThreshold),
|
|
1576
2008
|
};
|
|
1577
2009
|
};
|
|
1578
|
-
|
|
2010
|
+
var deserializeAws_json1_0EvaluateSessionResponse = function (output, context) {
|
|
1579
2011
|
return {
|
|
1580
2012
|
AuthenticationResult: output.AuthenticationResult != null
|
|
1581
2013
|
? deserializeAws_json1_0AuthenticationResult(output.AuthenticationResult, context)
|
|
@@ -1589,21 +2021,21 @@ const deserializeAws_json1_0EvaluateSessionResponse = (output, context) => {
|
|
|
1589
2021
|
StreamingStatus: __expectString(output.StreamingStatus),
|
|
1590
2022
|
};
|
|
1591
2023
|
};
|
|
1592
|
-
|
|
2024
|
+
var deserializeAws_json1_0FailureDetails = function (output, context) {
|
|
1593
2025
|
return {
|
|
1594
2026
|
Message: __expectString(output.Message),
|
|
1595
2027
|
StatusCode: __expectInt32(output.StatusCode),
|
|
1596
2028
|
};
|
|
1597
2029
|
};
|
|
1598
|
-
|
|
2030
|
+
var deserializeAws_json1_0FraudDetectionConfiguration = function (output, context) {
|
|
1599
2031
|
return {
|
|
1600
2032
|
RiskThreshold: __expectInt32(output.RiskThreshold),
|
|
1601
2033
|
};
|
|
1602
2034
|
};
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
.filter((e)
|
|
1606
|
-
.map((entry)
|
|
2035
|
+
var deserializeAws_json1_0FraudDetectionReasons = function (output, context) {
|
|
2036
|
+
var retVal = (output || [])
|
|
2037
|
+
.filter(function (e) { return e != null; })
|
|
2038
|
+
.map(function (entry) {
|
|
1607
2039
|
if (entry === null) {
|
|
1608
2040
|
return null;
|
|
1609
2041
|
}
|
|
@@ -1611,7 +2043,7 @@ const deserializeAws_json1_0FraudDetectionReasons = (output, context) => {
|
|
|
1611
2043
|
});
|
|
1612
2044
|
return retVal;
|
|
1613
2045
|
};
|
|
1614
|
-
|
|
2046
|
+
var deserializeAws_json1_0FraudDetectionResult = function (output, context) {
|
|
1615
2047
|
return {
|
|
1616
2048
|
AudioAggregationEndedAt: output.AudioAggregationEndedAt != null
|
|
1617
2049
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.AudioAggregationEndedAt)))
|
|
@@ -1628,7 +2060,7 @@ const deserializeAws_json1_0FraudDetectionResult = (output, context) => {
|
|
|
1628
2060
|
RiskDetails: output.RiskDetails != null ? deserializeAws_json1_0FraudRiskDetails(output.RiskDetails, context) : undefined,
|
|
1629
2061
|
};
|
|
1630
2062
|
};
|
|
1631
|
-
|
|
2063
|
+
var deserializeAws_json1_0FraudRiskDetails = function (output, context) {
|
|
1632
2064
|
return {
|
|
1633
2065
|
KnownFraudsterRisk: output.KnownFraudsterRisk != null
|
|
1634
2066
|
? deserializeAws_json1_0KnownFraudsterRisk(output.KnownFraudsterRisk, context)
|
|
@@ -1638,14 +2070,14 @@ const deserializeAws_json1_0FraudRiskDetails = (output, context) => {
|
|
|
1638
2070
|
: undefined,
|
|
1639
2071
|
};
|
|
1640
2072
|
};
|
|
1641
|
-
|
|
2073
|
+
var deserializeAws_json1_0Fraudster = function (output, context) {
|
|
1642
2074
|
return {
|
|
1643
2075
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
1644
2076
|
DomainId: __expectString(output.DomainId),
|
|
1645
2077
|
GeneratedFraudsterId: __expectString(output.GeneratedFraudsterId),
|
|
1646
2078
|
};
|
|
1647
2079
|
};
|
|
1648
|
-
|
|
2080
|
+
var deserializeAws_json1_0FraudsterRegistrationJob = function (output, context) {
|
|
1649
2081
|
return {
|
|
1650
2082
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
1651
2083
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
@@ -1667,10 +2099,10 @@ const deserializeAws_json1_0FraudsterRegistrationJob = (output, context) => {
|
|
|
1667
2099
|
: undefined,
|
|
1668
2100
|
};
|
|
1669
2101
|
};
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
.filter((e)
|
|
1673
|
-
.map((entry)
|
|
2102
|
+
var deserializeAws_json1_0FraudsterRegistrationJobSummaries = function (output, context) {
|
|
2103
|
+
var retVal = (output || [])
|
|
2104
|
+
.filter(function (e) { return e != null; })
|
|
2105
|
+
.map(function (entry) {
|
|
1674
2106
|
if (entry === null) {
|
|
1675
2107
|
return null;
|
|
1676
2108
|
}
|
|
@@ -1678,7 +2110,7 @@ const deserializeAws_json1_0FraudsterRegistrationJobSummaries = (output, context
|
|
|
1678
2110
|
});
|
|
1679
2111
|
return retVal;
|
|
1680
2112
|
};
|
|
1681
|
-
|
|
2113
|
+
var deserializeAws_json1_0FraudsterRegistrationJobSummary = function (output, context) {
|
|
1682
2114
|
return {
|
|
1683
2115
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
1684
2116
|
DomainId: __expectString(output.DomainId),
|
|
@@ -1690,28 +2122,28 @@ const deserializeAws_json1_0FraudsterRegistrationJobSummary = (output, context)
|
|
|
1690
2122
|
JobStatus: __expectString(output.JobStatus),
|
|
1691
2123
|
};
|
|
1692
2124
|
};
|
|
1693
|
-
|
|
2125
|
+
var deserializeAws_json1_0InputDataConfig = function (output, context) {
|
|
1694
2126
|
return {
|
|
1695
2127
|
S3Uri: __expectString(output.S3Uri),
|
|
1696
2128
|
};
|
|
1697
2129
|
};
|
|
1698
|
-
|
|
2130
|
+
var deserializeAws_json1_0InternalServerException = function (output, context) {
|
|
1699
2131
|
return {
|
|
1700
2132
|
Message: __expectString(output.Message),
|
|
1701
2133
|
};
|
|
1702
2134
|
};
|
|
1703
|
-
|
|
2135
|
+
var deserializeAws_json1_0JobProgress = function (output, context) {
|
|
1704
2136
|
return {
|
|
1705
2137
|
PercentComplete: __expectInt32(output.PercentComplete),
|
|
1706
2138
|
};
|
|
1707
2139
|
};
|
|
1708
|
-
|
|
2140
|
+
var deserializeAws_json1_0KnownFraudsterRisk = function (output, context) {
|
|
1709
2141
|
return {
|
|
1710
2142
|
GeneratedFraudsterId: __expectString(output.GeneratedFraudsterId),
|
|
1711
2143
|
RiskScore: __expectInt32(output.RiskScore),
|
|
1712
2144
|
};
|
|
1713
2145
|
};
|
|
1714
|
-
|
|
2146
|
+
var deserializeAws_json1_0ListDomainsResponse = function (output, context) {
|
|
1715
2147
|
return {
|
|
1716
2148
|
DomainSummaries: output.DomainSummaries != null
|
|
1717
2149
|
? deserializeAws_json1_0DomainSummaries(output.DomainSummaries, context)
|
|
@@ -1719,7 +2151,7 @@ const deserializeAws_json1_0ListDomainsResponse = (output, context) => {
|
|
|
1719
2151
|
NextToken: __expectString(output.NextToken),
|
|
1720
2152
|
};
|
|
1721
2153
|
};
|
|
1722
|
-
|
|
2154
|
+
var deserializeAws_json1_0ListFraudsterRegistrationJobsResponse = function (output, context) {
|
|
1723
2155
|
return {
|
|
1724
2156
|
JobSummaries: output.JobSummaries != null
|
|
1725
2157
|
? deserializeAws_json1_0FraudsterRegistrationJobSummaries(output.JobSummaries, context)
|
|
@@ -1727,7 +2159,7 @@ const deserializeAws_json1_0ListFraudsterRegistrationJobsResponse = (output, con
|
|
|
1727
2159
|
NextToken: __expectString(output.NextToken),
|
|
1728
2160
|
};
|
|
1729
2161
|
};
|
|
1730
|
-
|
|
2162
|
+
var deserializeAws_json1_0ListSpeakerEnrollmentJobsResponse = function (output, context) {
|
|
1731
2163
|
return {
|
|
1732
2164
|
JobSummaries: output.JobSummaries != null
|
|
1733
2165
|
? deserializeAws_json1_0SpeakerEnrollmentJobSummaries(output.JobSummaries, context)
|
|
@@ -1735,7 +2167,7 @@ const deserializeAws_json1_0ListSpeakerEnrollmentJobsResponse = (output, context
|
|
|
1735
2167
|
NextToken: __expectString(output.NextToken),
|
|
1736
2168
|
};
|
|
1737
2169
|
};
|
|
1738
|
-
|
|
2170
|
+
var deserializeAws_json1_0ListSpeakersResponse = function (output, context) {
|
|
1739
2171
|
return {
|
|
1740
2172
|
NextToken: __expectString(output.NextToken),
|
|
1741
2173
|
SpeakerSummaries: output.SpeakerSummaries != null
|
|
@@ -1743,52 +2175,52 @@ const deserializeAws_json1_0ListSpeakersResponse = (output, context) => {
|
|
|
1743
2175
|
: undefined,
|
|
1744
2176
|
};
|
|
1745
2177
|
};
|
|
1746
|
-
|
|
2178
|
+
var deserializeAws_json1_0ListTagsForResourceResponse = function (output, context) {
|
|
1747
2179
|
return {
|
|
1748
2180
|
Tags: output.Tags != null ? deserializeAws_json1_0TagList(output.Tags, context) : undefined,
|
|
1749
2181
|
};
|
|
1750
2182
|
};
|
|
1751
|
-
|
|
2183
|
+
var deserializeAws_json1_0OptOutSpeakerResponse = function (output, context) {
|
|
1752
2184
|
return {
|
|
1753
2185
|
Speaker: output.Speaker != null ? deserializeAws_json1_0Speaker(output.Speaker, context) : undefined,
|
|
1754
2186
|
};
|
|
1755
2187
|
};
|
|
1756
|
-
|
|
2188
|
+
var deserializeAws_json1_0OutputDataConfig = function (output, context) {
|
|
1757
2189
|
return {
|
|
1758
2190
|
KmsKeyId: __expectString(output.KmsKeyId),
|
|
1759
2191
|
S3Uri: __expectString(output.S3Uri),
|
|
1760
2192
|
};
|
|
1761
2193
|
};
|
|
1762
|
-
|
|
2194
|
+
var deserializeAws_json1_0RegistrationConfig = function (output, context) {
|
|
1763
2195
|
return {
|
|
1764
2196
|
DuplicateRegistrationAction: __expectString(output.DuplicateRegistrationAction),
|
|
1765
2197
|
FraudsterSimilarityThreshold: __expectInt32(output.FraudsterSimilarityThreshold),
|
|
1766
2198
|
};
|
|
1767
2199
|
};
|
|
1768
|
-
|
|
2200
|
+
var deserializeAws_json1_0ResourceNotFoundException = function (output, context) {
|
|
1769
2201
|
return {
|
|
1770
2202
|
Message: __expectString(output.Message),
|
|
1771
2203
|
ResourceType: __expectString(output.ResourceType),
|
|
1772
2204
|
};
|
|
1773
2205
|
};
|
|
1774
|
-
|
|
2206
|
+
var deserializeAws_json1_0ServerSideEncryptionConfiguration = function (output, context) {
|
|
1775
2207
|
return {
|
|
1776
2208
|
KmsKeyId: __expectString(output.KmsKeyId),
|
|
1777
2209
|
};
|
|
1778
2210
|
};
|
|
1779
|
-
|
|
2211
|
+
var deserializeAws_json1_0ServerSideEncryptionUpdateDetails = function (output, context) {
|
|
1780
2212
|
return {
|
|
1781
2213
|
Message: __expectString(output.Message),
|
|
1782
2214
|
OldKmsKeyId: __expectString(output.OldKmsKeyId),
|
|
1783
2215
|
UpdateStatus: __expectString(output.UpdateStatus),
|
|
1784
2216
|
};
|
|
1785
2217
|
};
|
|
1786
|
-
|
|
2218
|
+
var deserializeAws_json1_0ServiceQuotaExceededException = function (output, context) {
|
|
1787
2219
|
return {
|
|
1788
2220
|
Message: __expectString(output.Message),
|
|
1789
2221
|
};
|
|
1790
2222
|
};
|
|
1791
|
-
|
|
2223
|
+
var deserializeAws_json1_0Speaker = function (output, context) {
|
|
1792
2224
|
return {
|
|
1793
2225
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
1794
2226
|
CustomerSpeakerId: __expectString(output.CustomerSpeakerId),
|
|
@@ -1801,7 +2233,7 @@ const deserializeAws_json1_0Speaker = (output, context) => {
|
|
|
1801
2233
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
1802
2234
|
};
|
|
1803
2235
|
};
|
|
1804
|
-
|
|
2236
|
+
var deserializeAws_json1_0SpeakerEnrollmentJob = function (output, context) {
|
|
1805
2237
|
return {
|
|
1806
2238
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
1807
2239
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
@@ -1823,10 +2255,10 @@ const deserializeAws_json1_0SpeakerEnrollmentJob = (output, context) => {
|
|
|
1823
2255
|
: undefined,
|
|
1824
2256
|
};
|
|
1825
2257
|
};
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
.filter((e)
|
|
1829
|
-
.map((entry)
|
|
2258
|
+
var deserializeAws_json1_0SpeakerEnrollmentJobSummaries = function (output, context) {
|
|
2259
|
+
var retVal = (output || [])
|
|
2260
|
+
.filter(function (e) { return e != null; })
|
|
2261
|
+
.map(function (entry) {
|
|
1830
2262
|
if (entry === null) {
|
|
1831
2263
|
return null;
|
|
1832
2264
|
}
|
|
@@ -1834,7 +2266,7 @@ const deserializeAws_json1_0SpeakerEnrollmentJobSummaries = (output, context) =>
|
|
|
1834
2266
|
});
|
|
1835
2267
|
return retVal;
|
|
1836
2268
|
};
|
|
1837
|
-
|
|
2269
|
+
var deserializeAws_json1_0SpeakerEnrollmentJobSummary = function (output, context) {
|
|
1838
2270
|
return {
|
|
1839
2271
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
1840
2272
|
DomainId: __expectString(output.DomainId),
|
|
@@ -1846,10 +2278,10 @@ const deserializeAws_json1_0SpeakerEnrollmentJobSummary = (output, context) => {
|
|
|
1846
2278
|
JobStatus: __expectString(output.JobStatus),
|
|
1847
2279
|
};
|
|
1848
2280
|
};
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
.filter((e)
|
|
1852
|
-
.map((entry)
|
|
2281
|
+
var deserializeAws_json1_0SpeakerSummaries = function (output, context) {
|
|
2282
|
+
var retVal = (output || [])
|
|
2283
|
+
.filter(function (e) { return e != null; })
|
|
2284
|
+
.map(function (entry) {
|
|
1853
2285
|
if (entry === null) {
|
|
1854
2286
|
return null;
|
|
1855
2287
|
}
|
|
@@ -1857,7 +2289,7 @@ const deserializeAws_json1_0SpeakerSummaries = (output, context) => {
|
|
|
1857
2289
|
});
|
|
1858
2290
|
return retVal;
|
|
1859
2291
|
};
|
|
1860
|
-
|
|
2292
|
+
var deserializeAws_json1_0SpeakerSummary = function (output, context) {
|
|
1861
2293
|
return {
|
|
1862
2294
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
1863
2295
|
CustomerSpeakerId: __expectString(output.CustomerSpeakerId),
|
|
@@ -1870,26 +2302,26 @@ const deserializeAws_json1_0SpeakerSummary = (output, context) => {
|
|
|
1870
2302
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
1871
2303
|
};
|
|
1872
2304
|
};
|
|
1873
|
-
|
|
2305
|
+
var deserializeAws_json1_0StartFraudsterRegistrationJobResponse = function (output, context) {
|
|
1874
2306
|
return {
|
|
1875
2307
|
Job: output.Job != null ? deserializeAws_json1_0FraudsterRegistrationJob(output.Job, context) : undefined,
|
|
1876
2308
|
};
|
|
1877
2309
|
};
|
|
1878
|
-
|
|
2310
|
+
var deserializeAws_json1_0StartSpeakerEnrollmentJobResponse = function (output, context) {
|
|
1879
2311
|
return {
|
|
1880
2312
|
Job: output.Job != null ? deserializeAws_json1_0SpeakerEnrollmentJob(output.Job, context) : undefined,
|
|
1881
2313
|
};
|
|
1882
2314
|
};
|
|
1883
|
-
|
|
2315
|
+
var deserializeAws_json1_0Tag = function (output, context) {
|
|
1884
2316
|
return {
|
|
1885
2317
|
Key: __expectString(output.Key),
|
|
1886
2318
|
Value: __expectString(output.Value),
|
|
1887
2319
|
};
|
|
1888
2320
|
};
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
.filter((e)
|
|
1892
|
-
.map((entry)
|
|
2321
|
+
var deserializeAws_json1_0TagList = function (output, context) {
|
|
2322
|
+
var retVal = (output || [])
|
|
2323
|
+
.filter(function (e) { return e != null; })
|
|
2324
|
+
.map(function (entry) {
|
|
1893
2325
|
if (entry === null) {
|
|
1894
2326
|
return null;
|
|
1895
2327
|
}
|
|
@@ -1897,78 +2329,101 @@ const deserializeAws_json1_0TagList = (output, context) => {
|
|
|
1897
2329
|
});
|
|
1898
2330
|
return retVal;
|
|
1899
2331
|
};
|
|
1900
|
-
|
|
2332
|
+
var deserializeAws_json1_0TagResourceResponse = function (output, context) {
|
|
1901
2333
|
return {};
|
|
1902
2334
|
};
|
|
1903
|
-
|
|
2335
|
+
var deserializeAws_json1_0ThrottlingException = function (output, context) {
|
|
1904
2336
|
return {
|
|
1905
2337
|
Message: __expectString(output.Message),
|
|
1906
2338
|
};
|
|
1907
2339
|
};
|
|
1908
|
-
|
|
2340
|
+
var deserializeAws_json1_0UntagResourceResponse = function (output, context) {
|
|
1909
2341
|
return {};
|
|
1910
2342
|
};
|
|
1911
|
-
|
|
2343
|
+
var deserializeAws_json1_0UpdateDomainResponse = function (output, context) {
|
|
1912
2344
|
return {
|
|
1913
2345
|
Domain: output.Domain != null ? deserializeAws_json1_0Domain(output.Domain, context) : undefined,
|
|
1914
2346
|
};
|
|
1915
2347
|
};
|
|
1916
|
-
|
|
2348
|
+
var deserializeAws_json1_0ValidationException = function (output, context) {
|
|
1917
2349
|
return {
|
|
1918
2350
|
Message: __expectString(output.Message),
|
|
1919
2351
|
};
|
|
1920
2352
|
};
|
|
1921
|
-
|
|
2353
|
+
var deserializeAws_json1_0VoiceSpoofingRisk = function (output, context) {
|
|
1922
2354
|
return {
|
|
1923
2355
|
RiskScore: __expectInt32(output.RiskScore),
|
|
1924
2356
|
};
|
|
1925
2357
|
};
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
2358
|
+
var deserializeMetadata = function (output) {
|
|
2359
|
+
var _a, _b;
|
|
2360
|
+
return ({
|
|
2361
|
+
httpStatusCode: output.statusCode,
|
|
2362
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
2363
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2364
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2365
|
+
});
|
|
2366
|
+
};
|
|
2367
|
+
var collectBody = function (streamBody, context) {
|
|
2368
|
+
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1933
2369
|
if (streamBody instanceof Uint8Array) {
|
|
1934
2370
|
return Promise.resolve(streamBody);
|
|
1935
2371
|
}
|
|
1936
2372
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1937
2373
|
};
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
2374
|
+
var collectBodyString = function (streamBody, context) {
|
|
2375
|
+
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
2376
|
+
};
|
|
2377
|
+
var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2378
|
+
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
2379
|
+
return __generator(this, function (_c) {
|
|
2380
|
+
switch (_c.label) {
|
|
2381
|
+
case 0: return [4, context.endpoint()];
|
|
2382
|
+
case 1:
|
|
2383
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2384
|
+
contents = {
|
|
2385
|
+
protocol: protocol,
|
|
2386
|
+
hostname: hostname,
|
|
2387
|
+
port: port,
|
|
2388
|
+
method: "POST",
|
|
2389
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2390
|
+
headers: headers,
|
|
2391
|
+
};
|
|
2392
|
+
if (resolvedHostname !== undefined) {
|
|
2393
|
+
contents.hostname = resolvedHostname;
|
|
2394
|
+
}
|
|
2395
|
+
if (body !== undefined) {
|
|
2396
|
+
contents.body = body;
|
|
2397
|
+
}
|
|
2398
|
+
return [2, new __HttpRequest(contents)];
|
|
2399
|
+
}
|
|
2400
|
+
});
|
|
2401
|
+
}); };
|
|
2402
|
+
var parseBody = function (streamBody, context) {
|
|
2403
|
+
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
2404
|
+
if (encoded.length) {
|
|
2405
|
+
return JSON.parse(encoded);
|
|
2406
|
+
}
|
|
2407
|
+
return {};
|
|
2408
|
+
});
|
|
1956
2409
|
};
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
}
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
2410
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2411
|
+
var value;
|
|
2412
|
+
var _a;
|
|
2413
|
+
return __generator(this, function (_b) {
|
|
2414
|
+
switch (_b.label) {
|
|
2415
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
2416
|
+
case 1:
|
|
2417
|
+
value = _b.sent();
|
|
2418
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2419
|
+
return [2, value];
|
|
2420
|
+
}
|
|
2421
|
+
});
|
|
2422
|
+
}); };
|
|
2423
|
+
var loadRestJsonErrorCode = function (output, data) {
|
|
2424
|
+
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2425
|
+
var sanitizeErrorCode = function (rawValue) {
|
|
2426
|
+
var cleanValue = rawValue;
|
|
1972
2427
|
if (typeof cleanValue === "number") {
|
|
1973
2428
|
cleanValue = cleanValue.toString();
|
|
1974
2429
|
}
|
|
@@ -1983,7 +2438,7 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1983
2438
|
}
|
|
1984
2439
|
return cleanValue;
|
|
1985
2440
|
};
|
|
1986
|
-
|
|
2441
|
+
var headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1987
2442
|
if (headerKey !== undefined) {
|
|
1988
2443
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1989
2444
|
}
|