@aws-sdk/client-chime-sdk-identity 3.312.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_restJson1.js +330 -614
- package/dist-es/protocols/Aws_restJson1.js +284 -568
- package/package.json +6 -6
|
@@ -14,12 +14,12 @@ const se_CreateAppInstanceCommand = async (input, context) => {
|
|
|
14
14
|
};
|
|
15
15
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances";
|
|
16
16
|
let body;
|
|
17
|
-
body = JSON.stringify({
|
|
18
|
-
ClientRequestToken:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
});
|
|
17
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
+
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
19
|
+
Metadata: [],
|
|
20
|
+
Name: [],
|
|
21
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
22
|
+
}));
|
|
23
23
|
return new protocol_http_1.HttpRequest({
|
|
24
24
|
protocol,
|
|
25
25
|
hostname,
|
|
@@ -39,9 +39,9 @@ const se_CreateAppInstanceAdminCommand = async (input, context) => {
|
|
|
39
39
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances/{AppInstanceArn}/admins";
|
|
40
40
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
41
41
|
let body;
|
|
42
|
-
body = JSON.stringify({
|
|
43
|
-
|
|
44
|
-
});
|
|
42
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
43
|
+
AppInstanceAdminArn: [],
|
|
44
|
+
}));
|
|
45
45
|
return new protocol_http_1.HttpRequest({
|
|
46
46
|
protocol,
|
|
47
47
|
hostname,
|
|
@@ -60,14 +60,14 @@ const se_CreateAppInstanceBotCommand = async (input, context) => {
|
|
|
60
60
|
};
|
|
61
61
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-bots";
|
|
62
62
|
let body;
|
|
63
|
-
body = JSON.stringify({
|
|
64
|
-
|
|
65
|
-
ClientRequestToken:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
});
|
|
63
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
64
|
+
AppInstanceArn: [],
|
|
65
|
+
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
66
|
+
Configuration: (_) => (0, smithy_client_1._json)(_),
|
|
67
|
+
Metadata: [],
|
|
68
|
+
Name: [],
|
|
69
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
70
|
+
}));
|
|
71
71
|
return new protocol_http_1.HttpRequest({
|
|
72
72
|
protocol,
|
|
73
73
|
hostname,
|
|
@@ -86,17 +86,15 @@ const se_CreateAppInstanceUserCommand = async (input, context) => {
|
|
|
86
86
|
};
|
|
87
87
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-users";
|
|
88
88
|
let body;
|
|
89
|
-
body = JSON.stringify({
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
ClientRequestToken:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
99
|
-
});
|
|
89
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
90
|
+
AppInstanceArn: [],
|
|
91
|
+
AppInstanceUserId: [],
|
|
92
|
+
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
93
|
+
ExpirationSettings: (_) => (0, smithy_client_1._json)(_),
|
|
94
|
+
Metadata: [],
|
|
95
|
+
Name: [],
|
|
96
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
97
|
+
}));
|
|
100
98
|
return new protocol_http_1.HttpRequest({
|
|
101
99
|
protocol,
|
|
102
100
|
hostname,
|
|
@@ -309,7 +307,7 @@ const se_ListAppInstanceAdminsCommand = async (input, context) => {
|
|
|
309
307
|
const headers = {};
|
|
310
308
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances/{AppInstanceArn}/admins";
|
|
311
309
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
312
|
-
const query = map({
|
|
310
|
+
const query = (0, smithy_client_1.map)({
|
|
313
311
|
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
314
312
|
"next-token": [, input.NextToken],
|
|
315
313
|
});
|
|
@@ -330,7 +328,7 @@ const se_ListAppInstanceBotsCommand = async (input, context) => {
|
|
|
330
328
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
331
329
|
const headers = {};
|
|
332
330
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-bots";
|
|
333
|
-
const query = map({
|
|
331
|
+
const query = (0, smithy_client_1.map)({
|
|
334
332
|
"app-instance-arn": [, (0, smithy_client_1.expectNonNull)(input.AppInstanceArn, `AppInstanceArn`)],
|
|
335
333
|
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
336
334
|
"next-token": [, input.NextToken],
|
|
@@ -352,7 +350,7 @@ const se_ListAppInstancesCommand = async (input, context) => {
|
|
|
352
350
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
353
351
|
const headers = {};
|
|
354
352
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances";
|
|
355
|
-
const query = map({
|
|
353
|
+
const query = (0, smithy_client_1.map)({
|
|
356
354
|
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
357
355
|
"next-token": [, input.NextToken],
|
|
358
356
|
});
|
|
@@ -375,7 +373,7 @@ const se_ListAppInstanceUserEndpointsCommand = async (input, context) => {
|
|
|
375
373
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
376
374
|
"/app-instance-users/{AppInstanceUserArn}/endpoints";
|
|
377
375
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
378
|
-
const query = map({
|
|
376
|
+
const query = (0, smithy_client_1.map)({
|
|
379
377
|
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
380
378
|
"next-token": [, input.NextToken],
|
|
381
379
|
});
|
|
@@ -396,7 +394,7 @@ const se_ListAppInstanceUsersCommand = async (input, context) => {
|
|
|
396
394
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
397
395
|
const headers = {};
|
|
398
396
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-users";
|
|
399
|
-
const query = map({
|
|
397
|
+
const query = (0, smithy_client_1.map)({
|
|
400
398
|
"app-instance-arn": [, (0, smithy_client_1.expectNonNull)(input.AppInstanceArn, `AppInstanceArn`)],
|
|
401
399
|
"max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
402
400
|
"next-token": [, input.NextToken],
|
|
@@ -418,7 +416,7 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
418
416
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
419
417
|
const headers = {};
|
|
420
418
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
421
|
-
const query = map({
|
|
419
|
+
const query = (0, smithy_client_1.map)({
|
|
422
420
|
arn: [, (0, smithy_client_1.expectNonNull)(input.ResourceARN, `ResourceARN`)],
|
|
423
421
|
});
|
|
424
422
|
let body;
|
|
@@ -443,11 +441,9 @@ const se_PutAppInstanceRetentionSettingsCommand = async (input, context) => {
|
|
|
443
441
|
"/app-instances/{AppInstanceArn}/retention-settings";
|
|
444
442
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
445
443
|
let body;
|
|
446
|
-
body = JSON.stringify({
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
}),
|
|
450
|
-
});
|
|
444
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
445
|
+
AppInstanceRetentionSettings: (_) => (0, smithy_client_1._json)(_),
|
|
446
|
+
}));
|
|
451
447
|
return new protocol_http_1.HttpRequest({
|
|
452
448
|
protocol,
|
|
453
449
|
hostname,
|
|
@@ -468,11 +464,9 @@ const se_PutAppInstanceUserExpirationSettingsCommand = async (input, context) =>
|
|
|
468
464
|
"/app-instance-users/{AppInstanceUserArn}/expiration-settings";
|
|
469
465
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
470
466
|
let body;
|
|
471
|
-
body = JSON.stringify({
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
}),
|
|
475
|
-
});
|
|
467
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
468
|
+
ExpirationSettings: (_) => (0, smithy_client_1._json)(_),
|
|
469
|
+
}));
|
|
476
470
|
return new protocol_http_1.HttpRequest({
|
|
477
471
|
protocol,
|
|
478
472
|
hostname,
|
|
@@ -493,16 +487,14 @@ const se_RegisterAppInstanceUserEndpointCommand = async (input, context) => {
|
|
|
493
487
|
"/app-instance-users/{AppInstanceUserArn}/endpoints";
|
|
494
488
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
495
489
|
let body;
|
|
496
|
-
body = JSON.stringify({
|
|
497
|
-
|
|
498
|
-
ClientRequestToken:
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
...(input.Type != null && { Type: input.Type }),
|
|
505
|
-
});
|
|
490
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
491
|
+
AllowMessages: [],
|
|
492
|
+
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
493
|
+
EndpointAttributes: (_) => (0, smithy_client_1._json)(_),
|
|
494
|
+
Name: [],
|
|
495
|
+
ResourceArn: [],
|
|
496
|
+
Type: [],
|
|
497
|
+
}));
|
|
506
498
|
return new protocol_http_1.HttpRequest({
|
|
507
499
|
protocol,
|
|
508
500
|
hostname,
|
|
@@ -520,14 +512,14 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
520
512
|
"content-type": "application/json",
|
|
521
513
|
};
|
|
522
514
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
523
|
-
const query = map({
|
|
515
|
+
const query = (0, smithy_client_1.map)({
|
|
524
516
|
operation: [, "tag-resource"],
|
|
525
517
|
});
|
|
526
518
|
let body;
|
|
527
|
-
body = JSON.stringify({
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
});
|
|
519
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
520
|
+
ResourceARN: [],
|
|
521
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
522
|
+
}));
|
|
531
523
|
return new protocol_http_1.HttpRequest({
|
|
532
524
|
protocol,
|
|
533
525
|
hostname,
|
|
@@ -546,14 +538,14 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
546
538
|
"content-type": "application/json",
|
|
547
539
|
};
|
|
548
540
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
549
|
-
const query = map({
|
|
541
|
+
const query = (0, smithy_client_1.map)({
|
|
550
542
|
operation: [, "untag-resource"],
|
|
551
543
|
});
|
|
552
544
|
let body;
|
|
553
|
-
body = JSON.stringify({
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
});
|
|
545
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
546
|
+
ResourceARN: [],
|
|
547
|
+
TagKeys: (_) => (0, smithy_client_1._json)(_),
|
|
548
|
+
}));
|
|
557
549
|
return new protocol_http_1.HttpRequest({
|
|
558
550
|
protocol,
|
|
559
551
|
hostname,
|
|
@@ -574,10 +566,10 @@ const se_UpdateAppInstanceCommand = async (input, context) => {
|
|
|
574
566
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instances/{AppInstanceArn}";
|
|
575
567
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceArn", () => input.AppInstanceArn, "{AppInstanceArn}", false);
|
|
576
568
|
let body;
|
|
577
|
-
body = JSON.stringify({
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
});
|
|
569
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
570
|
+
Metadata: [],
|
|
571
|
+
Name: [],
|
|
572
|
+
}));
|
|
581
573
|
return new protocol_http_1.HttpRequest({
|
|
582
574
|
protocol,
|
|
583
575
|
hostname,
|
|
@@ -597,10 +589,10 @@ const se_UpdateAppInstanceBotCommand = async (input, context) => {
|
|
|
597
589
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-bots/{AppInstanceBotArn}";
|
|
598
590
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceBotArn", () => input.AppInstanceBotArn, "{AppInstanceBotArn}", false);
|
|
599
591
|
let body;
|
|
600
|
-
body = JSON.stringify({
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
});
|
|
592
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
593
|
+
Metadata: [],
|
|
594
|
+
Name: [],
|
|
595
|
+
}));
|
|
604
596
|
return new protocol_http_1.HttpRequest({
|
|
605
597
|
protocol,
|
|
606
598
|
hostname,
|
|
@@ -620,10 +612,10 @@ const se_UpdateAppInstanceUserCommand = async (input, context) => {
|
|
|
620
612
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/app-instance-users/{AppInstanceUserArn}";
|
|
621
613
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
622
614
|
let body;
|
|
623
|
-
body = JSON.stringify({
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
});
|
|
615
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
616
|
+
Metadata: [],
|
|
617
|
+
Name: [],
|
|
618
|
+
}));
|
|
627
619
|
return new protocol_http_1.HttpRequest({
|
|
628
620
|
protocol,
|
|
629
621
|
hostname,
|
|
@@ -645,10 +637,10 @@ const se_UpdateAppInstanceUserEndpointCommand = async (input, context) => {
|
|
|
645
637
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "AppInstanceUserArn", () => input.AppInstanceUserArn, "{AppInstanceUserArn}", false);
|
|
646
638
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EndpointId", () => input.EndpointId, "{EndpointId}", false);
|
|
647
639
|
let body;
|
|
648
|
-
body = JSON.stringify({
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
});
|
|
640
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
641
|
+
AllowMessages: [],
|
|
642
|
+
Name: [],
|
|
643
|
+
}));
|
|
652
644
|
return new protocol_http_1.HttpRequest({
|
|
653
645
|
protocol,
|
|
654
646
|
hostname,
|
|
@@ -664,13 +656,14 @@ const de_CreateAppInstanceCommand = async (output, context) => {
|
|
|
664
656
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
665
657
|
return de_CreateAppInstanceCommandError(output, context);
|
|
666
658
|
}
|
|
667
|
-
const contents = map({
|
|
659
|
+
const contents = (0, smithy_client_1.map)({
|
|
668
660
|
$metadata: deserializeMetadata(output),
|
|
669
661
|
});
|
|
670
662
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
}
|
|
663
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
664
|
+
AppInstanceArn: smithy_client_1.expectString,
|
|
665
|
+
});
|
|
666
|
+
Object.assign(contents, doc);
|
|
674
667
|
return contents;
|
|
675
668
|
};
|
|
676
669
|
exports.de_CreateAppInstanceCommand = de_CreateAppInstanceCommand;
|
|
@@ -707,10 +700,9 @@ const de_CreateAppInstanceCommandError = async (output, context) => {
|
|
|
707
700
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
708
701
|
default:
|
|
709
702
|
const parsedBody = parsedOutput.body;
|
|
710
|
-
|
|
703
|
+
return throwDefaultError({
|
|
711
704
|
output,
|
|
712
705
|
parsedBody,
|
|
713
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
714
706
|
errorCode,
|
|
715
707
|
});
|
|
716
708
|
}
|
|
@@ -719,16 +711,15 @@ const de_CreateAppInstanceAdminCommand = async (output, context) => {
|
|
|
719
711
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
720
712
|
return de_CreateAppInstanceAdminCommandError(output, context);
|
|
721
713
|
}
|
|
722
|
-
const contents = map({
|
|
714
|
+
const contents = (0, smithy_client_1.map)({
|
|
723
715
|
$metadata: deserializeMetadata(output),
|
|
724
716
|
});
|
|
725
717
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
}
|
|
718
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
719
|
+
AppInstanceAdmin: smithy_client_1._json,
|
|
720
|
+
AppInstanceArn: smithy_client_1.expectString,
|
|
721
|
+
});
|
|
722
|
+
Object.assign(contents, doc);
|
|
732
723
|
return contents;
|
|
733
724
|
};
|
|
734
725
|
exports.de_CreateAppInstanceAdminCommand = de_CreateAppInstanceAdminCommand;
|
|
@@ -765,10 +756,9 @@ const de_CreateAppInstanceAdminCommandError = async (output, context) => {
|
|
|
765
756
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
766
757
|
default:
|
|
767
758
|
const parsedBody = parsedOutput.body;
|
|
768
|
-
|
|
759
|
+
return throwDefaultError({
|
|
769
760
|
output,
|
|
770
761
|
parsedBody,
|
|
771
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
772
762
|
errorCode,
|
|
773
763
|
});
|
|
774
764
|
}
|
|
@@ -777,13 +767,14 @@ const de_CreateAppInstanceBotCommand = async (output, context) => {
|
|
|
777
767
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
778
768
|
return de_CreateAppInstanceBotCommandError(output, context);
|
|
779
769
|
}
|
|
780
|
-
const contents = map({
|
|
770
|
+
const contents = (0, smithy_client_1.map)({
|
|
781
771
|
$metadata: deserializeMetadata(output),
|
|
782
772
|
});
|
|
783
773
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
}
|
|
774
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
775
|
+
AppInstanceBotArn: smithy_client_1.expectString,
|
|
776
|
+
});
|
|
777
|
+
Object.assign(contents, doc);
|
|
787
778
|
return contents;
|
|
788
779
|
};
|
|
789
780
|
exports.de_CreateAppInstanceBotCommand = de_CreateAppInstanceBotCommand;
|
|
@@ -820,10 +811,9 @@ const de_CreateAppInstanceBotCommandError = async (output, context) => {
|
|
|
820
811
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
821
812
|
default:
|
|
822
813
|
const parsedBody = parsedOutput.body;
|
|
823
|
-
|
|
814
|
+
return throwDefaultError({
|
|
824
815
|
output,
|
|
825
816
|
parsedBody,
|
|
826
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
827
817
|
errorCode,
|
|
828
818
|
});
|
|
829
819
|
}
|
|
@@ -832,13 +822,14 @@ const de_CreateAppInstanceUserCommand = async (output, context) => {
|
|
|
832
822
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
833
823
|
return de_CreateAppInstanceUserCommandError(output, context);
|
|
834
824
|
}
|
|
835
|
-
const contents = map({
|
|
825
|
+
const contents = (0, smithy_client_1.map)({
|
|
836
826
|
$metadata: deserializeMetadata(output),
|
|
837
827
|
});
|
|
838
828
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
}
|
|
829
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
830
|
+
AppInstanceUserArn: smithy_client_1.expectString,
|
|
831
|
+
});
|
|
832
|
+
Object.assign(contents, doc);
|
|
842
833
|
return contents;
|
|
843
834
|
};
|
|
844
835
|
exports.de_CreateAppInstanceUserCommand = de_CreateAppInstanceUserCommand;
|
|
@@ -875,10 +866,9 @@ const de_CreateAppInstanceUserCommandError = async (output, context) => {
|
|
|
875
866
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
876
867
|
default:
|
|
877
868
|
const parsedBody = parsedOutput.body;
|
|
878
|
-
|
|
869
|
+
return throwDefaultError({
|
|
879
870
|
output,
|
|
880
871
|
parsedBody,
|
|
881
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
882
872
|
errorCode,
|
|
883
873
|
});
|
|
884
874
|
}
|
|
@@ -887,7 +877,7 @@ const de_DeleteAppInstanceCommand = async (output, context) => {
|
|
|
887
877
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
888
878
|
return de_DeleteAppInstanceCommandError(output, context);
|
|
889
879
|
}
|
|
890
|
-
const contents = map({
|
|
880
|
+
const contents = (0, smithy_client_1.map)({
|
|
891
881
|
$metadata: deserializeMetadata(output),
|
|
892
882
|
});
|
|
893
883
|
await collectBody(output.body, context);
|
|
@@ -924,10 +914,9 @@ const de_DeleteAppInstanceCommandError = async (output, context) => {
|
|
|
924
914
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
925
915
|
default:
|
|
926
916
|
const parsedBody = parsedOutput.body;
|
|
927
|
-
|
|
917
|
+
return throwDefaultError({
|
|
928
918
|
output,
|
|
929
919
|
parsedBody,
|
|
930
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
931
920
|
errorCode,
|
|
932
921
|
});
|
|
933
922
|
}
|
|
@@ -936,7 +925,7 @@ const de_DeleteAppInstanceAdminCommand = async (output, context) => {
|
|
|
936
925
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
937
926
|
return de_DeleteAppInstanceAdminCommandError(output, context);
|
|
938
927
|
}
|
|
939
|
-
const contents = map({
|
|
928
|
+
const contents = (0, smithy_client_1.map)({
|
|
940
929
|
$metadata: deserializeMetadata(output),
|
|
941
930
|
});
|
|
942
931
|
await collectBody(output.body, context);
|
|
@@ -976,10 +965,9 @@ const de_DeleteAppInstanceAdminCommandError = async (output, context) => {
|
|
|
976
965
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
977
966
|
default:
|
|
978
967
|
const parsedBody = parsedOutput.body;
|
|
979
|
-
|
|
968
|
+
return throwDefaultError({
|
|
980
969
|
output,
|
|
981
970
|
parsedBody,
|
|
982
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
983
971
|
errorCode,
|
|
984
972
|
});
|
|
985
973
|
}
|
|
@@ -988,7 +976,7 @@ const de_DeleteAppInstanceBotCommand = async (output, context) => {
|
|
|
988
976
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
989
977
|
return de_DeleteAppInstanceBotCommandError(output, context);
|
|
990
978
|
}
|
|
991
|
-
const contents = map({
|
|
979
|
+
const contents = (0, smithy_client_1.map)({
|
|
992
980
|
$metadata: deserializeMetadata(output),
|
|
993
981
|
});
|
|
994
982
|
await collectBody(output.body, context);
|
|
@@ -1028,10 +1016,9 @@ const de_DeleteAppInstanceBotCommandError = async (output, context) => {
|
|
|
1028
1016
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1029
1017
|
default:
|
|
1030
1018
|
const parsedBody = parsedOutput.body;
|
|
1031
|
-
|
|
1019
|
+
return throwDefaultError({
|
|
1032
1020
|
output,
|
|
1033
1021
|
parsedBody,
|
|
1034
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1035
1022
|
errorCode,
|
|
1036
1023
|
});
|
|
1037
1024
|
}
|
|
@@ -1040,7 +1027,7 @@ const de_DeleteAppInstanceUserCommand = async (output, context) => {
|
|
|
1040
1027
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1041
1028
|
return de_DeleteAppInstanceUserCommandError(output, context);
|
|
1042
1029
|
}
|
|
1043
|
-
const contents = map({
|
|
1030
|
+
const contents = (0, smithy_client_1.map)({
|
|
1044
1031
|
$metadata: deserializeMetadata(output),
|
|
1045
1032
|
});
|
|
1046
1033
|
await collectBody(output.body, context);
|
|
@@ -1080,10 +1067,9 @@ const de_DeleteAppInstanceUserCommandError = async (output, context) => {
|
|
|
1080
1067
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1081
1068
|
default:
|
|
1082
1069
|
const parsedBody = parsedOutput.body;
|
|
1083
|
-
|
|
1070
|
+
return throwDefaultError({
|
|
1084
1071
|
output,
|
|
1085
1072
|
parsedBody,
|
|
1086
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1087
1073
|
errorCode,
|
|
1088
1074
|
});
|
|
1089
1075
|
}
|
|
@@ -1092,7 +1078,7 @@ const de_DeregisterAppInstanceUserEndpointCommand = async (output, context) => {
|
|
|
1092
1078
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1093
1079
|
return de_DeregisterAppInstanceUserEndpointCommandError(output, context);
|
|
1094
1080
|
}
|
|
1095
|
-
const contents = map({
|
|
1081
|
+
const contents = (0, smithy_client_1.map)({
|
|
1096
1082
|
$metadata: deserializeMetadata(output),
|
|
1097
1083
|
});
|
|
1098
1084
|
await collectBody(output.body, context);
|
|
@@ -1126,10 +1112,9 @@ const de_DeregisterAppInstanceUserEndpointCommandError = async (output, context)
|
|
|
1126
1112
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1127
1113
|
default:
|
|
1128
1114
|
const parsedBody = parsedOutput.body;
|
|
1129
|
-
|
|
1115
|
+
return throwDefaultError({
|
|
1130
1116
|
output,
|
|
1131
1117
|
parsedBody,
|
|
1132
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1133
1118
|
errorCode,
|
|
1134
1119
|
});
|
|
1135
1120
|
}
|
|
@@ -1138,13 +1123,14 @@ const de_DescribeAppInstanceCommand = async (output, context) => {
|
|
|
1138
1123
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1139
1124
|
return de_DescribeAppInstanceCommandError(output, context);
|
|
1140
1125
|
}
|
|
1141
|
-
const contents = map({
|
|
1126
|
+
const contents = (0, smithy_client_1.map)({
|
|
1142
1127
|
$metadata: deserializeMetadata(output),
|
|
1143
1128
|
});
|
|
1144
1129
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
}
|
|
1130
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1131
|
+
AppInstance: (_) => de_AppInstance(_, context),
|
|
1132
|
+
});
|
|
1133
|
+
Object.assign(contents, doc);
|
|
1148
1134
|
return contents;
|
|
1149
1135
|
};
|
|
1150
1136
|
exports.de_DescribeAppInstanceCommand = de_DescribeAppInstanceCommand;
|
|
@@ -1175,10 +1161,9 @@ const de_DescribeAppInstanceCommandError = async (output, context) => {
|
|
|
1175
1161
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1176
1162
|
default:
|
|
1177
1163
|
const parsedBody = parsedOutput.body;
|
|
1178
|
-
|
|
1164
|
+
return throwDefaultError({
|
|
1179
1165
|
output,
|
|
1180
1166
|
parsedBody,
|
|
1181
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1182
1167
|
errorCode,
|
|
1183
1168
|
});
|
|
1184
1169
|
}
|
|
@@ -1187,13 +1172,14 @@ const de_DescribeAppInstanceAdminCommand = async (output, context) => {
|
|
|
1187
1172
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1188
1173
|
return de_DescribeAppInstanceAdminCommandError(output, context);
|
|
1189
1174
|
}
|
|
1190
|
-
const contents = map({
|
|
1175
|
+
const contents = (0, smithy_client_1.map)({
|
|
1191
1176
|
$metadata: deserializeMetadata(output),
|
|
1192
1177
|
});
|
|
1193
1178
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
}
|
|
1179
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1180
|
+
AppInstanceAdmin: (_) => de_AppInstanceAdmin(_, context),
|
|
1181
|
+
});
|
|
1182
|
+
Object.assign(contents, doc);
|
|
1197
1183
|
return contents;
|
|
1198
1184
|
};
|
|
1199
1185
|
exports.de_DescribeAppInstanceAdminCommand = de_DescribeAppInstanceAdminCommand;
|
|
@@ -1224,10 +1210,9 @@ const de_DescribeAppInstanceAdminCommandError = async (output, context) => {
|
|
|
1224
1210
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1225
1211
|
default:
|
|
1226
1212
|
const parsedBody = parsedOutput.body;
|
|
1227
|
-
|
|
1213
|
+
return throwDefaultError({
|
|
1228
1214
|
output,
|
|
1229
1215
|
parsedBody,
|
|
1230
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1231
1216
|
errorCode,
|
|
1232
1217
|
});
|
|
1233
1218
|
}
|
|
@@ -1236,13 +1221,14 @@ const de_DescribeAppInstanceBotCommand = async (output, context) => {
|
|
|
1236
1221
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1237
1222
|
return de_DescribeAppInstanceBotCommandError(output, context);
|
|
1238
1223
|
}
|
|
1239
|
-
const contents = map({
|
|
1224
|
+
const contents = (0, smithy_client_1.map)({
|
|
1240
1225
|
$metadata: deserializeMetadata(output),
|
|
1241
1226
|
});
|
|
1242
1227
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
}
|
|
1228
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1229
|
+
AppInstanceBot: (_) => de_AppInstanceBot(_, context),
|
|
1230
|
+
});
|
|
1231
|
+
Object.assign(contents, doc);
|
|
1246
1232
|
return contents;
|
|
1247
1233
|
};
|
|
1248
1234
|
exports.de_DescribeAppInstanceBotCommand = de_DescribeAppInstanceBotCommand;
|
|
@@ -1276,10 +1262,9 @@ const de_DescribeAppInstanceBotCommandError = async (output, context) => {
|
|
|
1276
1262
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1277
1263
|
default:
|
|
1278
1264
|
const parsedBody = parsedOutput.body;
|
|
1279
|
-
|
|
1265
|
+
return throwDefaultError({
|
|
1280
1266
|
output,
|
|
1281
1267
|
parsedBody,
|
|
1282
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1283
1268
|
errorCode,
|
|
1284
1269
|
});
|
|
1285
1270
|
}
|
|
@@ -1288,13 +1273,14 @@ const de_DescribeAppInstanceUserCommand = async (output, context) => {
|
|
|
1288
1273
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1289
1274
|
return de_DescribeAppInstanceUserCommandError(output, context);
|
|
1290
1275
|
}
|
|
1291
|
-
const contents = map({
|
|
1276
|
+
const contents = (0, smithy_client_1.map)({
|
|
1292
1277
|
$metadata: deserializeMetadata(output),
|
|
1293
1278
|
});
|
|
1294
1279
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
}
|
|
1280
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1281
|
+
AppInstanceUser: (_) => de_AppInstanceUser(_, context),
|
|
1282
|
+
});
|
|
1283
|
+
Object.assign(contents, doc);
|
|
1298
1284
|
return contents;
|
|
1299
1285
|
};
|
|
1300
1286
|
exports.de_DescribeAppInstanceUserCommand = de_DescribeAppInstanceUserCommand;
|
|
@@ -1325,10 +1311,9 @@ const de_DescribeAppInstanceUserCommandError = async (output, context) => {
|
|
|
1325
1311
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1326
1312
|
default:
|
|
1327
1313
|
const parsedBody = parsedOutput.body;
|
|
1328
|
-
|
|
1314
|
+
return throwDefaultError({
|
|
1329
1315
|
output,
|
|
1330
1316
|
parsedBody,
|
|
1331
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1332
1317
|
errorCode,
|
|
1333
1318
|
});
|
|
1334
1319
|
}
|
|
@@ -1337,13 +1322,14 @@ const de_DescribeAppInstanceUserEndpointCommand = async (output, context) => {
|
|
|
1337
1322
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1338
1323
|
return de_DescribeAppInstanceUserEndpointCommandError(output, context);
|
|
1339
1324
|
}
|
|
1340
|
-
const contents = map({
|
|
1325
|
+
const contents = (0, smithy_client_1.map)({
|
|
1341
1326
|
$metadata: deserializeMetadata(output),
|
|
1342
1327
|
});
|
|
1343
1328
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
}
|
|
1329
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1330
|
+
AppInstanceUserEndpoint: (_) => de_AppInstanceUserEndpoint(_, context),
|
|
1331
|
+
});
|
|
1332
|
+
Object.assign(contents, doc);
|
|
1347
1333
|
return contents;
|
|
1348
1334
|
};
|
|
1349
1335
|
exports.de_DescribeAppInstanceUserEndpointCommand = de_DescribeAppInstanceUserEndpointCommand;
|
|
@@ -1374,10 +1360,9 @@ const de_DescribeAppInstanceUserEndpointCommandError = async (output, context) =
|
|
|
1374
1360
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1375
1361
|
default:
|
|
1376
1362
|
const parsedBody = parsedOutput.body;
|
|
1377
|
-
|
|
1363
|
+
return throwDefaultError({
|
|
1378
1364
|
output,
|
|
1379
1365
|
parsedBody,
|
|
1380
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1381
1366
|
errorCode,
|
|
1382
1367
|
});
|
|
1383
1368
|
}
|
|
@@ -1386,16 +1371,15 @@ const de_GetAppInstanceRetentionSettingsCommand = async (output, context) => {
|
|
|
1386
1371
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1387
1372
|
return de_GetAppInstanceRetentionSettingsCommandError(output, context);
|
|
1388
1373
|
}
|
|
1389
|
-
const contents = map({
|
|
1374
|
+
const contents = (0, smithy_client_1.map)({
|
|
1390
1375
|
$metadata: deserializeMetadata(output),
|
|
1391
1376
|
});
|
|
1392
1377
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
}
|
|
1378
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1379
|
+
AppInstanceRetentionSettings: smithy_client_1._json,
|
|
1380
|
+
InitiateDeletionTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1381
|
+
});
|
|
1382
|
+
Object.assign(contents, doc);
|
|
1399
1383
|
return contents;
|
|
1400
1384
|
};
|
|
1401
1385
|
exports.de_GetAppInstanceRetentionSettingsCommand = de_GetAppInstanceRetentionSettingsCommand;
|
|
@@ -1426,10 +1410,9 @@ const de_GetAppInstanceRetentionSettingsCommandError = async (output, context) =
|
|
|
1426
1410
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1427
1411
|
default:
|
|
1428
1412
|
const parsedBody = parsedOutput.body;
|
|
1429
|
-
|
|
1413
|
+
return throwDefaultError({
|
|
1430
1414
|
output,
|
|
1431
1415
|
parsedBody,
|
|
1432
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1433
1416
|
errorCode,
|
|
1434
1417
|
});
|
|
1435
1418
|
}
|
|
@@ -1438,19 +1421,16 @@ const de_ListAppInstanceAdminsCommand = async (output, context) => {
|
|
|
1438
1421
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1439
1422
|
return de_ListAppInstanceAdminsCommandError(output, context);
|
|
1440
1423
|
}
|
|
1441
|
-
const contents = map({
|
|
1424
|
+
const contents = (0, smithy_client_1.map)({
|
|
1442
1425
|
$metadata: deserializeMetadata(output),
|
|
1443
1426
|
});
|
|
1444
1427
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
if (data.NextToken != null) {
|
|
1452
|
-
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1453
|
-
}
|
|
1428
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1429
|
+
AppInstanceAdmins: smithy_client_1._json,
|
|
1430
|
+
AppInstanceArn: smithy_client_1.expectString,
|
|
1431
|
+
NextToken: smithy_client_1.expectString,
|
|
1432
|
+
});
|
|
1433
|
+
Object.assign(contents, doc);
|
|
1454
1434
|
return contents;
|
|
1455
1435
|
};
|
|
1456
1436
|
exports.de_ListAppInstanceAdminsCommand = de_ListAppInstanceAdminsCommand;
|
|
@@ -1484,10 +1464,9 @@ const de_ListAppInstanceAdminsCommandError = async (output, context) => {
|
|
|
1484
1464
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1485
1465
|
default:
|
|
1486
1466
|
const parsedBody = parsedOutput.body;
|
|
1487
|
-
|
|
1467
|
+
return throwDefaultError({
|
|
1488
1468
|
output,
|
|
1489
1469
|
parsedBody,
|
|
1490
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1491
1470
|
errorCode,
|
|
1492
1471
|
});
|
|
1493
1472
|
}
|
|
@@ -1496,19 +1475,16 @@ const de_ListAppInstanceBotsCommand = async (output, context) => {
|
|
|
1496
1475
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1497
1476
|
return de_ListAppInstanceBotsCommandError(output, context);
|
|
1498
1477
|
}
|
|
1499
|
-
const contents = map({
|
|
1478
|
+
const contents = (0, smithy_client_1.map)({
|
|
1500
1479
|
$metadata: deserializeMetadata(output),
|
|
1501
1480
|
});
|
|
1502
1481
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
if (data.NextToken != null) {
|
|
1510
|
-
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1511
|
-
}
|
|
1482
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1483
|
+
AppInstanceArn: smithy_client_1.expectString,
|
|
1484
|
+
AppInstanceBots: smithy_client_1._json,
|
|
1485
|
+
NextToken: smithy_client_1.expectString,
|
|
1486
|
+
});
|
|
1487
|
+
Object.assign(contents, doc);
|
|
1512
1488
|
return contents;
|
|
1513
1489
|
};
|
|
1514
1490
|
exports.de_ListAppInstanceBotsCommand = de_ListAppInstanceBotsCommand;
|
|
@@ -1542,10 +1518,9 @@ const de_ListAppInstanceBotsCommandError = async (output, context) => {
|
|
|
1542
1518
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1543
1519
|
default:
|
|
1544
1520
|
const parsedBody = parsedOutput.body;
|
|
1545
|
-
|
|
1521
|
+
return throwDefaultError({
|
|
1546
1522
|
output,
|
|
1547
1523
|
parsedBody,
|
|
1548
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1549
1524
|
errorCode,
|
|
1550
1525
|
});
|
|
1551
1526
|
}
|
|
@@ -1554,16 +1529,15 @@ const de_ListAppInstancesCommand = async (output, context) => {
|
|
|
1554
1529
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1555
1530
|
return de_ListAppInstancesCommandError(output, context);
|
|
1556
1531
|
}
|
|
1557
|
-
const contents = map({
|
|
1532
|
+
const contents = (0, smithy_client_1.map)({
|
|
1558
1533
|
$metadata: deserializeMetadata(output),
|
|
1559
1534
|
});
|
|
1560
1535
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
}
|
|
1536
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1537
|
+
AppInstances: smithy_client_1._json,
|
|
1538
|
+
NextToken: smithy_client_1.expectString,
|
|
1539
|
+
});
|
|
1540
|
+
Object.assign(contents, doc);
|
|
1567
1541
|
return contents;
|
|
1568
1542
|
};
|
|
1569
1543
|
exports.de_ListAppInstancesCommand = de_ListAppInstancesCommand;
|
|
@@ -1594,10 +1568,9 @@ const de_ListAppInstancesCommandError = async (output, context) => {
|
|
|
1594
1568
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1595
1569
|
default:
|
|
1596
1570
|
const parsedBody = parsedOutput.body;
|
|
1597
|
-
|
|
1571
|
+
return throwDefaultError({
|
|
1598
1572
|
output,
|
|
1599
1573
|
parsedBody,
|
|
1600
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1601
1574
|
errorCode,
|
|
1602
1575
|
});
|
|
1603
1576
|
}
|
|
@@ -1606,16 +1579,15 @@ const de_ListAppInstanceUserEndpointsCommand = async (output, context) => {
|
|
|
1606
1579
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1607
1580
|
return de_ListAppInstanceUserEndpointsCommandError(output, context);
|
|
1608
1581
|
}
|
|
1609
|
-
const contents = map({
|
|
1582
|
+
const contents = (0, smithy_client_1.map)({
|
|
1610
1583
|
$metadata: deserializeMetadata(output),
|
|
1611
1584
|
});
|
|
1612
1585
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
}
|
|
1586
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1587
|
+
AppInstanceUserEndpoints: smithy_client_1._json,
|
|
1588
|
+
NextToken: smithy_client_1.expectString,
|
|
1589
|
+
});
|
|
1590
|
+
Object.assign(contents, doc);
|
|
1619
1591
|
return contents;
|
|
1620
1592
|
};
|
|
1621
1593
|
exports.de_ListAppInstanceUserEndpointsCommand = de_ListAppInstanceUserEndpointsCommand;
|
|
@@ -1646,10 +1618,9 @@ const de_ListAppInstanceUserEndpointsCommandError = async (output, context) => {
|
|
|
1646
1618
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1647
1619
|
default:
|
|
1648
1620
|
const parsedBody = parsedOutput.body;
|
|
1649
|
-
|
|
1621
|
+
return throwDefaultError({
|
|
1650
1622
|
output,
|
|
1651
1623
|
parsedBody,
|
|
1652
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1653
1624
|
errorCode,
|
|
1654
1625
|
});
|
|
1655
1626
|
}
|
|
@@ -1658,19 +1629,16 @@ const de_ListAppInstanceUsersCommand = async (output, context) => {
|
|
|
1658
1629
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1659
1630
|
return de_ListAppInstanceUsersCommandError(output, context);
|
|
1660
1631
|
}
|
|
1661
|
-
const contents = map({
|
|
1632
|
+
const contents = (0, smithy_client_1.map)({
|
|
1662
1633
|
$metadata: deserializeMetadata(output),
|
|
1663
1634
|
});
|
|
1664
1635
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
if (data.NextToken != null) {
|
|
1672
|
-
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
1673
|
-
}
|
|
1636
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1637
|
+
AppInstanceArn: smithy_client_1.expectString,
|
|
1638
|
+
AppInstanceUsers: smithy_client_1._json,
|
|
1639
|
+
NextToken: smithy_client_1.expectString,
|
|
1640
|
+
});
|
|
1641
|
+
Object.assign(contents, doc);
|
|
1674
1642
|
return contents;
|
|
1675
1643
|
};
|
|
1676
1644
|
exports.de_ListAppInstanceUsersCommand = de_ListAppInstanceUsersCommand;
|
|
@@ -1701,10 +1669,9 @@ const de_ListAppInstanceUsersCommandError = async (output, context) => {
|
|
|
1701
1669
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1702
1670
|
default:
|
|
1703
1671
|
const parsedBody = parsedOutput.body;
|
|
1704
|
-
|
|
1672
|
+
return throwDefaultError({
|
|
1705
1673
|
output,
|
|
1706
1674
|
parsedBody,
|
|
1707
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1708
1675
|
errorCode,
|
|
1709
1676
|
});
|
|
1710
1677
|
}
|
|
@@ -1713,13 +1680,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1713
1680
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1714
1681
|
return de_ListTagsForResourceCommandError(output, context);
|
|
1715
1682
|
}
|
|
1716
|
-
const contents = map({
|
|
1683
|
+
const contents = (0, smithy_client_1.map)({
|
|
1717
1684
|
$metadata: deserializeMetadata(output),
|
|
1718
1685
|
});
|
|
1719
1686
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
}
|
|
1687
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1688
|
+
Tags: smithy_client_1._json,
|
|
1689
|
+
});
|
|
1690
|
+
Object.assign(contents, doc);
|
|
1723
1691
|
return contents;
|
|
1724
1692
|
};
|
|
1725
1693
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -1750,10 +1718,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1750
1718
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1751
1719
|
default:
|
|
1752
1720
|
const parsedBody = parsedOutput.body;
|
|
1753
|
-
|
|
1721
|
+
return throwDefaultError({
|
|
1754
1722
|
output,
|
|
1755
1723
|
parsedBody,
|
|
1756
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1757
1724
|
errorCode,
|
|
1758
1725
|
});
|
|
1759
1726
|
}
|
|
@@ -1762,16 +1729,15 @@ const de_PutAppInstanceRetentionSettingsCommand = async (output, context) => {
|
|
|
1762
1729
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1763
1730
|
return de_PutAppInstanceRetentionSettingsCommandError(output, context);
|
|
1764
1731
|
}
|
|
1765
|
-
const contents = map({
|
|
1732
|
+
const contents = (0, smithy_client_1.map)({
|
|
1766
1733
|
$metadata: deserializeMetadata(output),
|
|
1767
1734
|
});
|
|
1768
1735
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
}
|
|
1736
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1737
|
+
AppInstanceRetentionSettings: smithy_client_1._json,
|
|
1738
|
+
InitiateDeletionTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1739
|
+
});
|
|
1740
|
+
Object.assign(contents, doc);
|
|
1775
1741
|
return contents;
|
|
1776
1742
|
};
|
|
1777
1743
|
exports.de_PutAppInstanceRetentionSettingsCommand = de_PutAppInstanceRetentionSettingsCommand;
|
|
@@ -1802,10 +1768,9 @@ const de_PutAppInstanceRetentionSettingsCommandError = async (output, context) =
|
|
|
1802
1768
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1803
1769
|
default:
|
|
1804
1770
|
const parsedBody = parsedOutput.body;
|
|
1805
|
-
|
|
1771
|
+
return throwDefaultError({
|
|
1806
1772
|
output,
|
|
1807
1773
|
parsedBody,
|
|
1808
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1809
1774
|
errorCode,
|
|
1810
1775
|
});
|
|
1811
1776
|
}
|
|
@@ -1814,16 +1779,15 @@ const de_PutAppInstanceUserExpirationSettingsCommand = async (output, context) =
|
|
|
1814
1779
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1815
1780
|
return de_PutAppInstanceUserExpirationSettingsCommandError(output, context);
|
|
1816
1781
|
}
|
|
1817
|
-
const contents = map({
|
|
1782
|
+
const contents = (0, smithy_client_1.map)({
|
|
1818
1783
|
$metadata: deserializeMetadata(output),
|
|
1819
1784
|
});
|
|
1820
1785
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
}
|
|
1786
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1787
|
+
AppInstanceUserArn: smithy_client_1.expectString,
|
|
1788
|
+
ExpirationSettings: smithy_client_1._json,
|
|
1789
|
+
});
|
|
1790
|
+
Object.assign(contents, doc);
|
|
1827
1791
|
return contents;
|
|
1828
1792
|
};
|
|
1829
1793
|
exports.de_PutAppInstanceUserExpirationSettingsCommand = de_PutAppInstanceUserExpirationSettingsCommand;
|
|
@@ -1857,10 +1821,9 @@ const de_PutAppInstanceUserExpirationSettingsCommandError = async (output, conte
|
|
|
1857
1821
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1858
1822
|
default:
|
|
1859
1823
|
const parsedBody = parsedOutput.body;
|
|
1860
|
-
|
|
1824
|
+
return throwDefaultError({
|
|
1861
1825
|
output,
|
|
1862
1826
|
parsedBody,
|
|
1863
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1864
1827
|
errorCode,
|
|
1865
1828
|
});
|
|
1866
1829
|
}
|
|
@@ -1869,16 +1832,15 @@ const de_RegisterAppInstanceUserEndpointCommand = async (output, context) => {
|
|
|
1869
1832
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1870
1833
|
return de_RegisterAppInstanceUserEndpointCommandError(output, context);
|
|
1871
1834
|
}
|
|
1872
|
-
const contents = map({
|
|
1835
|
+
const contents = (0, smithy_client_1.map)({
|
|
1873
1836
|
$metadata: deserializeMetadata(output),
|
|
1874
1837
|
});
|
|
1875
1838
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
}
|
|
1839
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1840
|
+
AppInstanceUserArn: smithy_client_1.expectString,
|
|
1841
|
+
EndpointId: smithy_client_1.expectString,
|
|
1842
|
+
});
|
|
1843
|
+
Object.assign(contents, doc);
|
|
1882
1844
|
return contents;
|
|
1883
1845
|
};
|
|
1884
1846
|
exports.de_RegisterAppInstanceUserEndpointCommand = de_RegisterAppInstanceUserEndpointCommand;
|
|
@@ -1915,10 +1877,9 @@ const de_RegisterAppInstanceUserEndpointCommandError = async (output, context) =
|
|
|
1915
1877
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1916
1878
|
default:
|
|
1917
1879
|
const parsedBody = parsedOutput.body;
|
|
1918
|
-
|
|
1880
|
+
return throwDefaultError({
|
|
1919
1881
|
output,
|
|
1920
1882
|
parsedBody,
|
|
1921
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1922
1883
|
errorCode,
|
|
1923
1884
|
});
|
|
1924
1885
|
}
|
|
@@ -1927,7 +1888,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1927
1888
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1928
1889
|
return de_TagResourceCommandError(output, context);
|
|
1929
1890
|
}
|
|
1930
|
-
const contents = map({
|
|
1891
|
+
const contents = (0, smithy_client_1.map)({
|
|
1931
1892
|
$metadata: deserializeMetadata(output),
|
|
1932
1893
|
});
|
|
1933
1894
|
await collectBody(output.body, context);
|
|
@@ -1964,10 +1925,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1964
1925
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
1965
1926
|
default:
|
|
1966
1927
|
const parsedBody = parsedOutput.body;
|
|
1967
|
-
|
|
1928
|
+
return throwDefaultError({
|
|
1968
1929
|
output,
|
|
1969
1930
|
parsedBody,
|
|
1970
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
1971
1931
|
errorCode,
|
|
1972
1932
|
});
|
|
1973
1933
|
}
|
|
@@ -1976,7 +1936,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1976
1936
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1977
1937
|
return de_UntagResourceCommandError(output, context);
|
|
1978
1938
|
}
|
|
1979
|
-
const contents = map({
|
|
1939
|
+
const contents = (0, smithy_client_1.map)({
|
|
1980
1940
|
$metadata: deserializeMetadata(output),
|
|
1981
1941
|
});
|
|
1982
1942
|
await collectBody(output.body, context);
|
|
@@ -2010,10 +1970,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2010
1970
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2011
1971
|
default:
|
|
2012
1972
|
const parsedBody = parsedOutput.body;
|
|
2013
|
-
|
|
1973
|
+
return throwDefaultError({
|
|
2014
1974
|
output,
|
|
2015
1975
|
parsedBody,
|
|
2016
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
2017
1976
|
errorCode,
|
|
2018
1977
|
});
|
|
2019
1978
|
}
|
|
@@ -2022,13 +1981,14 @@ const de_UpdateAppInstanceCommand = async (output, context) => {
|
|
|
2022
1981
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2023
1982
|
return de_UpdateAppInstanceCommandError(output, context);
|
|
2024
1983
|
}
|
|
2025
|
-
const contents = map({
|
|
1984
|
+
const contents = (0, smithy_client_1.map)({
|
|
2026
1985
|
$metadata: deserializeMetadata(output),
|
|
2027
1986
|
});
|
|
2028
1987
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
}
|
|
1988
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1989
|
+
AppInstanceArn: smithy_client_1.expectString,
|
|
1990
|
+
});
|
|
1991
|
+
Object.assign(contents, doc);
|
|
2032
1992
|
return contents;
|
|
2033
1993
|
};
|
|
2034
1994
|
exports.de_UpdateAppInstanceCommand = de_UpdateAppInstanceCommand;
|
|
@@ -2062,10 +2022,9 @@ const de_UpdateAppInstanceCommandError = async (output, context) => {
|
|
|
2062
2022
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2063
2023
|
default:
|
|
2064
2024
|
const parsedBody = parsedOutput.body;
|
|
2065
|
-
|
|
2025
|
+
return throwDefaultError({
|
|
2066
2026
|
output,
|
|
2067
2027
|
parsedBody,
|
|
2068
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
2069
2028
|
errorCode,
|
|
2070
2029
|
});
|
|
2071
2030
|
}
|
|
@@ -2074,13 +2033,14 @@ const de_UpdateAppInstanceBotCommand = async (output, context) => {
|
|
|
2074
2033
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2075
2034
|
return de_UpdateAppInstanceBotCommandError(output, context);
|
|
2076
2035
|
}
|
|
2077
|
-
const contents = map({
|
|
2036
|
+
const contents = (0, smithy_client_1.map)({
|
|
2078
2037
|
$metadata: deserializeMetadata(output),
|
|
2079
2038
|
});
|
|
2080
2039
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
}
|
|
2040
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2041
|
+
AppInstanceBotArn: smithy_client_1.expectString,
|
|
2042
|
+
});
|
|
2043
|
+
Object.assign(contents, doc);
|
|
2084
2044
|
return contents;
|
|
2085
2045
|
};
|
|
2086
2046
|
exports.de_UpdateAppInstanceBotCommand = de_UpdateAppInstanceBotCommand;
|
|
@@ -2117,10 +2077,9 @@ const de_UpdateAppInstanceBotCommandError = async (output, context) => {
|
|
|
2117
2077
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2118
2078
|
default:
|
|
2119
2079
|
const parsedBody = parsedOutput.body;
|
|
2120
|
-
|
|
2080
|
+
return throwDefaultError({
|
|
2121
2081
|
output,
|
|
2122
2082
|
parsedBody,
|
|
2123
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
2124
2083
|
errorCode,
|
|
2125
2084
|
});
|
|
2126
2085
|
}
|
|
@@ -2129,13 +2088,14 @@ const de_UpdateAppInstanceUserCommand = async (output, context) => {
|
|
|
2129
2088
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2130
2089
|
return de_UpdateAppInstanceUserCommandError(output, context);
|
|
2131
2090
|
}
|
|
2132
|
-
const contents = map({
|
|
2091
|
+
const contents = (0, smithy_client_1.map)({
|
|
2133
2092
|
$metadata: deserializeMetadata(output),
|
|
2134
2093
|
});
|
|
2135
2094
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
}
|
|
2095
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2096
|
+
AppInstanceUserArn: smithy_client_1.expectString,
|
|
2097
|
+
});
|
|
2098
|
+
Object.assign(contents, doc);
|
|
2139
2099
|
return contents;
|
|
2140
2100
|
};
|
|
2141
2101
|
exports.de_UpdateAppInstanceUserCommand = de_UpdateAppInstanceUserCommand;
|
|
@@ -2172,10 +2132,9 @@ const de_UpdateAppInstanceUserCommandError = async (output, context) => {
|
|
|
2172
2132
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2173
2133
|
default:
|
|
2174
2134
|
const parsedBody = parsedOutput.body;
|
|
2175
|
-
|
|
2135
|
+
return throwDefaultError({
|
|
2176
2136
|
output,
|
|
2177
2137
|
parsedBody,
|
|
2178
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
2179
2138
|
errorCode,
|
|
2180
2139
|
});
|
|
2181
2140
|
}
|
|
@@ -2184,16 +2143,15 @@ const de_UpdateAppInstanceUserEndpointCommand = async (output, context) => {
|
|
|
2184
2143
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2185
2144
|
return de_UpdateAppInstanceUserEndpointCommandError(output, context);
|
|
2186
2145
|
}
|
|
2187
|
-
const contents = map({
|
|
2146
|
+
const contents = (0, smithy_client_1.map)({
|
|
2188
2147
|
$metadata: deserializeMetadata(output),
|
|
2189
2148
|
});
|
|
2190
2149
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
}
|
|
2150
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2151
|
+
AppInstanceUserArn: smithy_client_1.expectString,
|
|
2152
|
+
EndpointId: smithy_client_1.expectString,
|
|
2153
|
+
});
|
|
2154
|
+
Object.assign(contents, doc);
|
|
2197
2155
|
return contents;
|
|
2198
2156
|
};
|
|
2199
2157
|
exports.de_UpdateAppInstanceUserEndpointCommand = de_UpdateAppInstanceUserEndpointCommand;
|
|
@@ -2227,24 +2185,22 @@ const de_UpdateAppInstanceUserEndpointCommandError = async (output, context) =>
|
|
|
2227
2185
|
throw await de_UnauthorizedClientExceptionRes(parsedOutput, context);
|
|
2228
2186
|
default:
|
|
2229
2187
|
const parsedBody = parsedOutput.body;
|
|
2230
|
-
|
|
2188
|
+
return throwDefaultError({
|
|
2231
2189
|
output,
|
|
2232
2190
|
parsedBody,
|
|
2233
|
-
exceptionCtor: ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException,
|
|
2234
2191
|
errorCode,
|
|
2235
2192
|
});
|
|
2236
2193
|
}
|
|
2237
2194
|
};
|
|
2238
|
-
const
|
|
2195
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(ChimeSDKIdentityServiceException_1.ChimeSDKIdentityServiceException);
|
|
2239
2196
|
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
2240
|
-
const contents = map({});
|
|
2197
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2241
2198
|
const data = parsedOutput.body;
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
}
|
|
2199
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2200
|
+
Code: smithy_client_1.expectString,
|
|
2201
|
+
Message: smithy_client_1.expectString,
|
|
2202
|
+
});
|
|
2203
|
+
Object.assign(contents, doc);
|
|
2248
2204
|
const exception = new models_0_1.BadRequestException({
|
|
2249
2205
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2250
2206
|
...contents,
|
|
@@ -2252,14 +2208,13 @@ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
2252
2208
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2253
2209
|
};
|
|
2254
2210
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2255
|
-
const contents = map({});
|
|
2211
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2256
2212
|
const data = parsedOutput.body;
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
}
|
|
2213
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2214
|
+
Code: smithy_client_1.expectString,
|
|
2215
|
+
Message: smithy_client_1.expectString,
|
|
2216
|
+
});
|
|
2217
|
+
Object.assign(contents, doc);
|
|
2263
2218
|
const exception = new models_0_1.ConflictException({
|
|
2264
2219
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2265
2220
|
...contents,
|
|
@@ -2267,14 +2222,13 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2267
2222
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2268
2223
|
};
|
|
2269
2224
|
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
2270
|
-
const contents = map({});
|
|
2225
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2271
2226
|
const data = parsedOutput.body;
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
}
|
|
2227
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2228
|
+
Code: smithy_client_1.expectString,
|
|
2229
|
+
Message: smithy_client_1.expectString,
|
|
2230
|
+
});
|
|
2231
|
+
Object.assign(contents, doc);
|
|
2278
2232
|
const exception = new models_0_1.ForbiddenException({
|
|
2279
2233
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2280
2234
|
...contents,
|
|
@@ -2282,14 +2236,13 @@ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
|
2282
2236
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2283
2237
|
};
|
|
2284
2238
|
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2285
|
-
const contents = map({});
|
|
2239
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2286
2240
|
const data = parsedOutput.body;
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
}
|
|
2241
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2242
|
+
Code: smithy_client_1.expectString,
|
|
2243
|
+
Message: smithy_client_1.expectString,
|
|
2244
|
+
});
|
|
2245
|
+
Object.assign(contents, doc);
|
|
2293
2246
|
const exception = new models_0_1.NotFoundException({
|
|
2294
2247
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2295
2248
|
...contents,
|
|
@@ -2297,14 +2250,13 @@ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2297
2250
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2298
2251
|
};
|
|
2299
2252
|
const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2300
|
-
const contents = map({});
|
|
2253
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2301
2254
|
const data = parsedOutput.body;
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
}
|
|
2255
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2256
|
+
Code: smithy_client_1.expectString,
|
|
2257
|
+
Message: smithy_client_1.expectString,
|
|
2258
|
+
});
|
|
2259
|
+
Object.assign(contents, doc);
|
|
2308
2260
|
const exception = new models_0_1.ResourceLimitExceededException({
|
|
2309
2261
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2310
2262
|
...contents,
|
|
@@ -2312,14 +2264,13 @@ const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2312
2264
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2313
2265
|
};
|
|
2314
2266
|
const de_ServiceFailureExceptionRes = async (parsedOutput, context) => {
|
|
2315
|
-
const contents = map({});
|
|
2267
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2316
2268
|
const data = parsedOutput.body;
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
}
|
|
2269
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2270
|
+
Code: smithy_client_1.expectString,
|
|
2271
|
+
Message: smithy_client_1.expectString,
|
|
2272
|
+
});
|
|
2273
|
+
Object.assign(contents, doc);
|
|
2323
2274
|
const exception = new models_0_1.ServiceFailureException({
|
|
2324
2275
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2325
2276
|
...contents,
|
|
@@ -2327,14 +2278,13 @@ const de_ServiceFailureExceptionRes = async (parsedOutput, context) => {
|
|
|
2327
2278
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2328
2279
|
};
|
|
2329
2280
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2330
|
-
const contents = map({});
|
|
2281
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2331
2282
|
const data = parsedOutput.body;
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
}
|
|
2283
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2284
|
+
Code: smithy_client_1.expectString,
|
|
2285
|
+
Message: smithy_client_1.expectString,
|
|
2286
|
+
});
|
|
2287
|
+
Object.assign(contents, doc);
|
|
2338
2288
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
2339
2289
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2340
2290
|
...contents,
|
|
@@ -2342,14 +2292,13 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
2342
2292
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2343
2293
|
};
|
|
2344
2294
|
const de_ThrottledClientExceptionRes = async (parsedOutput, context) => {
|
|
2345
|
-
const contents = map({});
|
|
2295
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2346
2296
|
const data = parsedOutput.body;
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
}
|
|
2297
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2298
|
+
Code: smithy_client_1.expectString,
|
|
2299
|
+
Message: smithy_client_1.expectString,
|
|
2300
|
+
});
|
|
2301
|
+
Object.assign(contents, doc);
|
|
2353
2302
|
const exception = new models_0_1.ThrottledClientException({
|
|
2354
2303
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2355
2304
|
...contents,
|
|
@@ -2357,301 +2306,68 @@ const de_ThrottledClientExceptionRes = async (parsedOutput, context) => {
|
|
|
2357
2306
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2358
2307
|
};
|
|
2359
2308
|
const de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => {
|
|
2360
|
-
const contents = map({});
|
|
2309
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2361
2310
|
const data = parsedOutput.body;
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
}
|
|
2311
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2312
|
+
Code: smithy_client_1.expectString,
|
|
2313
|
+
Message: smithy_client_1.expectString,
|
|
2314
|
+
});
|
|
2315
|
+
Object.assign(contents, doc);
|
|
2368
2316
|
const exception = new models_0_1.UnauthorizedClientException({
|
|
2369
2317
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2370
2318
|
...contents,
|
|
2371
2319
|
});
|
|
2372
2320
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2373
2321
|
};
|
|
2374
|
-
const se_AppInstanceRetentionSettings = (input, context) => {
|
|
2375
|
-
return {
|
|
2376
|
-
...(input.ChannelRetentionSettings != null && {
|
|
2377
|
-
ChannelRetentionSettings: se_ChannelRetentionSettings(input.ChannelRetentionSettings, context),
|
|
2378
|
-
}),
|
|
2379
|
-
};
|
|
2380
|
-
};
|
|
2381
|
-
const se_ChannelRetentionSettings = (input, context) => {
|
|
2382
|
-
return {
|
|
2383
|
-
...(input.RetentionDays != null && { RetentionDays: input.RetentionDays }),
|
|
2384
|
-
};
|
|
2385
|
-
};
|
|
2386
|
-
const se_Configuration = (input, context) => {
|
|
2387
|
-
return {
|
|
2388
|
-
...(input.Lex != null && { Lex: se_LexConfiguration(input.Lex, context) }),
|
|
2389
|
-
};
|
|
2390
|
-
};
|
|
2391
|
-
const se_EndpointAttributes = (input, context) => {
|
|
2392
|
-
return {
|
|
2393
|
-
...(input.DeviceToken != null && { DeviceToken: input.DeviceToken }),
|
|
2394
|
-
...(input.VoipDeviceToken != null && { VoipDeviceToken: input.VoipDeviceToken }),
|
|
2395
|
-
};
|
|
2396
|
-
};
|
|
2397
|
-
const se_ExpirationSettings = (input, context) => {
|
|
2398
|
-
return {
|
|
2399
|
-
...(input.ExpirationCriterion != null && { ExpirationCriterion: input.ExpirationCriterion }),
|
|
2400
|
-
...(input.ExpirationDays != null && { ExpirationDays: input.ExpirationDays }),
|
|
2401
|
-
};
|
|
2402
|
-
};
|
|
2403
|
-
const se_LexConfiguration = (input, context) => {
|
|
2404
|
-
return {
|
|
2405
|
-
...(input.LexBotAliasArn != null && { LexBotAliasArn: input.LexBotAliasArn }),
|
|
2406
|
-
...(input.LocaleId != null && { LocaleId: input.LocaleId }),
|
|
2407
|
-
...(input.RespondsTo != null && { RespondsTo: input.RespondsTo }),
|
|
2408
|
-
...(input.WelcomeIntent != null && { WelcomeIntent: input.WelcomeIntent }),
|
|
2409
|
-
};
|
|
2410
|
-
};
|
|
2411
|
-
const se_Tag = (input, context) => {
|
|
2412
|
-
return {
|
|
2413
|
-
...(input.Key != null && { Key: input.Key }),
|
|
2414
|
-
...(input.Value != null && { Value: input.Value }),
|
|
2415
|
-
};
|
|
2416
|
-
};
|
|
2417
|
-
const se_TagKeyList = (input, context) => {
|
|
2418
|
-
return input
|
|
2419
|
-
.filter((e) => e != null)
|
|
2420
|
-
.map((entry) => {
|
|
2421
|
-
return entry;
|
|
2422
|
-
});
|
|
2423
|
-
};
|
|
2424
|
-
const se_TagList = (input, context) => {
|
|
2425
|
-
return input
|
|
2426
|
-
.filter((e) => e != null)
|
|
2427
|
-
.map((entry) => {
|
|
2428
|
-
return se_Tag(entry, context);
|
|
2429
|
-
});
|
|
2430
|
-
};
|
|
2431
2322
|
const de_AppInstance = (output, context) => {
|
|
2432
|
-
return {
|
|
2433
|
-
AppInstanceArn:
|
|
2434
|
-
CreatedTimestamp:
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
: undefined,
|
|
2440
|
-
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
2441
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2442
|
-
};
|
|
2323
|
+
return (0, smithy_client_1.take)(output, {
|
|
2324
|
+
AppInstanceArn: smithy_client_1.expectString,
|
|
2325
|
+
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2326
|
+
LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2327
|
+
Metadata: smithy_client_1.expectString,
|
|
2328
|
+
Name: smithy_client_1.expectString,
|
|
2329
|
+
});
|
|
2443
2330
|
};
|
|
2444
2331
|
const de_AppInstanceAdmin = (output, context) => {
|
|
2445
|
-
return {
|
|
2446
|
-
Admin:
|
|
2447
|
-
AppInstanceArn:
|
|
2448
|
-
CreatedTimestamp:
|
|
2449
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
2450
|
-
: undefined,
|
|
2451
|
-
};
|
|
2452
|
-
};
|
|
2453
|
-
const de_AppInstanceAdminList = (output, context) => {
|
|
2454
|
-
const retVal = (output || [])
|
|
2455
|
-
.filter((e) => e != null)
|
|
2456
|
-
.map((entry) => {
|
|
2457
|
-
if (entry === null) {
|
|
2458
|
-
return null;
|
|
2459
|
-
}
|
|
2460
|
-
return de_AppInstanceAdminSummary(entry, context);
|
|
2332
|
+
return (0, smithy_client_1.take)(output, {
|
|
2333
|
+
Admin: smithy_client_1._json,
|
|
2334
|
+
AppInstanceArn: smithy_client_1.expectString,
|
|
2335
|
+
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2461
2336
|
});
|
|
2462
|
-
return retVal;
|
|
2463
|
-
};
|
|
2464
|
-
const de_AppInstanceAdminSummary = (output, context) => {
|
|
2465
|
-
return {
|
|
2466
|
-
Admin: output.Admin != null ? de_Identity(output.Admin, context) : undefined,
|
|
2467
|
-
};
|
|
2468
2337
|
};
|
|
2469
2338
|
const de_AppInstanceBot = (output, context) => {
|
|
2470
|
-
return {
|
|
2471
|
-
AppInstanceBotArn:
|
|
2472
|
-
Configuration:
|
|
2473
|
-
CreatedTimestamp:
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
2478
|
-
: undefined,
|
|
2479
|
-
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
2480
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2481
|
-
};
|
|
2482
|
-
};
|
|
2483
|
-
const de_AppInstanceBotList = (output, context) => {
|
|
2484
|
-
const retVal = (output || [])
|
|
2485
|
-
.filter((e) => e != null)
|
|
2486
|
-
.map((entry) => {
|
|
2487
|
-
if (entry === null) {
|
|
2488
|
-
return null;
|
|
2489
|
-
}
|
|
2490
|
-
return de_AppInstanceBotSummary(entry, context);
|
|
2339
|
+
return (0, smithy_client_1.take)(output, {
|
|
2340
|
+
AppInstanceBotArn: smithy_client_1.expectString,
|
|
2341
|
+
Configuration: smithy_client_1._json,
|
|
2342
|
+
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2343
|
+
LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2344
|
+
Metadata: smithy_client_1.expectString,
|
|
2345
|
+
Name: smithy_client_1.expectString,
|
|
2491
2346
|
});
|
|
2492
|
-
return retVal;
|
|
2493
|
-
};
|
|
2494
|
-
const de_AppInstanceBotSummary = (output, context) => {
|
|
2495
|
-
return {
|
|
2496
|
-
AppInstanceBotArn: (0, smithy_client_1.expectString)(output.AppInstanceBotArn),
|
|
2497
|
-
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
2498
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2499
|
-
};
|
|
2500
|
-
};
|
|
2501
|
-
const de_AppInstanceList = (output, context) => {
|
|
2502
|
-
const retVal = (output || [])
|
|
2503
|
-
.filter((e) => e != null)
|
|
2504
|
-
.map((entry) => {
|
|
2505
|
-
if (entry === null) {
|
|
2506
|
-
return null;
|
|
2507
|
-
}
|
|
2508
|
-
return de_AppInstanceSummary(entry, context);
|
|
2509
|
-
});
|
|
2510
|
-
return retVal;
|
|
2511
|
-
};
|
|
2512
|
-
const de_AppInstanceRetentionSettings = (output, context) => {
|
|
2513
|
-
return {
|
|
2514
|
-
ChannelRetentionSettings: output.ChannelRetentionSettings != null
|
|
2515
|
-
? de_ChannelRetentionSettings(output.ChannelRetentionSettings, context)
|
|
2516
|
-
: undefined,
|
|
2517
|
-
};
|
|
2518
|
-
};
|
|
2519
|
-
const de_AppInstanceSummary = (output, context) => {
|
|
2520
|
-
return {
|
|
2521
|
-
AppInstanceArn: (0, smithy_client_1.expectString)(output.AppInstanceArn),
|
|
2522
|
-
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
2523
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2524
|
-
};
|
|
2525
2347
|
};
|
|
2526
2348
|
const de_AppInstanceUser = (output, context) => {
|
|
2527
|
-
return {
|
|
2528
|
-
AppInstanceUserArn:
|
|
2529
|
-
CreatedTimestamp:
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
2535
|
-
: undefined,
|
|
2536
|
-
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
2537
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2538
|
-
};
|
|
2539
|
-
};
|
|
2540
|
-
const de_AppInstanceUserEndpoint = (output, context) => {
|
|
2541
|
-
return {
|
|
2542
|
-
AllowMessages: (0, smithy_client_1.expectString)(output.AllowMessages),
|
|
2543
|
-
AppInstanceUserArn: (0, smithy_client_1.expectString)(output.AppInstanceUserArn),
|
|
2544
|
-
CreatedTimestamp: output.CreatedTimestamp != null
|
|
2545
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimestamp)))
|
|
2546
|
-
: undefined,
|
|
2547
|
-
EndpointAttributes: output.EndpointAttributes != null ? de_EndpointAttributes(output.EndpointAttributes, context) : undefined,
|
|
2548
|
-
EndpointId: (0, smithy_client_1.expectString)(output.EndpointId),
|
|
2549
|
-
EndpointState: output.EndpointState != null ? de_EndpointState(output.EndpointState, context) : undefined,
|
|
2550
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
2551
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedTimestamp)))
|
|
2552
|
-
: undefined,
|
|
2553
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2554
|
-
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
2555
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2556
|
-
};
|
|
2557
|
-
};
|
|
2558
|
-
const de_AppInstanceUserEndpointSummary = (output, context) => {
|
|
2559
|
-
return {
|
|
2560
|
-
AllowMessages: (0, smithy_client_1.expectString)(output.AllowMessages),
|
|
2561
|
-
AppInstanceUserArn: (0, smithy_client_1.expectString)(output.AppInstanceUserArn),
|
|
2562
|
-
EndpointId: (0, smithy_client_1.expectString)(output.EndpointId),
|
|
2563
|
-
EndpointState: output.EndpointState != null ? de_EndpointState(output.EndpointState, context) : undefined,
|
|
2564
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2565
|
-
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
2566
|
-
};
|
|
2567
|
-
};
|
|
2568
|
-
const de_AppInstanceUserEndpointSummaryList = (output, context) => {
|
|
2569
|
-
const retVal = (output || [])
|
|
2570
|
-
.filter((e) => e != null)
|
|
2571
|
-
.map((entry) => {
|
|
2572
|
-
if (entry === null) {
|
|
2573
|
-
return null;
|
|
2574
|
-
}
|
|
2575
|
-
return de_AppInstanceUserEndpointSummary(entry, context);
|
|
2576
|
-
});
|
|
2577
|
-
return retVal;
|
|
2578
|
-
};
|
|
2579
|
-
const de_AppInstanceUserList = (output, context) => {
|
|
2580
|
-
const retVal = (output || [])
|
|
2581
|
-
.filter((e) => e != null)
|
|
2582
|
-
.map((entry) => {
|
|
2583
|
-
if (entry === null) {
|
|
2584
|
-
return null;
|
|
2585
|
-
}
|
|
2586
|
-
return de_AppInstanceUserSummary(entry, context);
|
|
2349
|
+
return (0, smithy_client_1.take)(output, {
|
|
2350
|
+
AppInstanceUserArn: smithy_client_1.expectString,
|
|
2351
|
+
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2352
|
+
ExpirationSettings: smithy_client_1._json,
|
|
2353
|
+
LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2354
|
+
Metadata: smithy_client_1.expectString,
|
|
2355
|
+
Name: smithy_client_1.expectString,
|
|
2587
2356
|
});
|
|
2588
|
-
return retVal;
|
|
2589
|
-
};
|
|
2590
|
-
const de_AppInstanceUserSummary = (output, context) => {
|
|
2591
|
-
return {
|
|
2592
|
-
AppInstanceUserArn: (0, smithy_client_1.expectString)(output.AppInstanceUserArn),
|
|
2593
|
-
Metadata: (0, smithy_client_1.expectString)(output.Metadata),
|
|
2594
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
2595
|
-
};
|
|
2596
|
-
};
|
|
2597
|
-
const de_ChannelRetentionSettings = (output, context) => {
|
|
2598
|
-
return {
|
|
2599
|
-
RetentionDays: (0, smithy_client_1.expectInt32)(output.RetentionDays),
|
|
2600
|
-
};
|
|
2601
|
-
};
|
|
2602
|
-
const de_Configuration = (output, context) => {
|
|
2603
|
-
return {
|
|
2604
|
-
Lex: output.Lex != null ? de_LexConfiguration(output.Lex, context) : undefined,
|
|
2605
|
-
};
|
|
2606
|
-
};
|
|
2607
|
-
const de_EndpointAttributes = (output, context) => {
|
|
2608
|
-
return {
|
|
2609
|
-
DeviceToken: (0, smithy_client_1.expectString)(output.DeviceToken),
|
|
2610
|
-
VoipDeviceToken: (0, smithy_client_1.expectString)(output.VoipDeviceToken),
|
|
2611
|
-
};
|
|
2612
|
-
};
|
|
2613
|
-
const de_EndpointState = (output, context) => {
|
|
2614
|
-
return {
|
|
2615
|
-
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
2616
|
-
StatusReason: (0, smithy_client_1.expectString)(output.StatusReason),
|
|
2617
|
-
};
|
|
2618
2357
|
};
|
|
2619
|
-
const
|
|
2620
|
-
return {
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
Name:
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
const de_LexConfiguration = (output, context) => {
|
|
2632
|
-
return {
|
|
2633
|
-
LexBotAliasArn: (0, smithy_client_1.expectString)(output.LexBotAliasArn),
|
|
2634
|
-
LocaleId: (0, smithy_client_1.expectString)(output.LocaleId),
|
|
2635
|
-
RespondsTo: (0, smithy_client_1.expectString)(output.RespondsTo),
|
|
2636
|
-
WelcomeIntent: (0, smithy_client_1.expectString)(output.WelcomeIntent),
|
|
2637
|
-
};
|
|
2638
|
-
};
|
|
2639
|
-
const de_Tag = (output, context) => {
|
|
2640
|
-
return {
|
|
2641
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
2642
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
2643
|
-
};
|
|
2644
|
-
};
|
|
2645
|
-
const de_TagList = (output, context) => {
|
|
2646
|
-
const retVal = (output || [])
|
|
2647
|
-
.filter((e) => e != null)
|
|
2648
|
-
.map((entry) => {
|
|
2649
|
-
if (entry === null) {
|
|
2650
|
-
return null;
|
|
2651
|
-
}
|
|
2652
|
-
return de_Tag(entry, context);
|
|
2358
|
+
const de_AppInstanceUserEndpoint = (output, context) => {
|
|
2359
|
+
return (0, smithy_client_1.take)(output, {
|
|
2360
|
+
AllowMessages: smithy_client_1.expectString,
|
|
2361
|
+
AppInstanceUserArn: smithy_client_1.expectString,
|
|
2362
|
+
CreatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2363
|
+
EndpointAttributes: smithy_client_1._json,
|
|
2364
|
+
EndpointId: smithy_client_1.expectString,
|
|
2365
|
+
EndpointState: smithy_client_1._json,
|
|
2366
|
+
LastUpdatedTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2367
|
+
Name: smithy_client_1.expectString,
|
|
2368
|
+
ResourceArn: smithy_client_1.expectString,
|
|
2369
|
+
Type: smithy_client_1.expectString,
|
|
2653
2370
|
});
|
|
2654
|
-
return retVal;
|
|
2655
2371
|
};
|
|
2656
2372
|
const deserializeMetadata = (output) => ({
|
|
2657
2373
|
httpStatusCode: output.statusCode,
|