@aws-sdk/client-identitystore 3.312.0 → 3.316.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.
@@ -8,63 +8,63 @@ const models_0_1 = require("../models/models_0");
8
8
  const se_CreateGroupCommand = async (input, context) => {
9
9
  const headers = sharedHeaders("CreateGroup");
10
10
  let body;
11
- body = JSON.stringify(se_CreateGroupRequest(input, context));
11
+ body = JSON.stringify((0, smithy_client_1._json)(input));
12
12
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
13
  };
14
14
  exports.se_CreateGroupCommand = se_CreateGroupCommand;
15
15
  const se_CreateGroupMembershipCommand = async (input, context) => {
16
16
  const headers = sharedHeaders("CreateGroupMembership");
17
17
  let body;
18
- body = JSON.stringify(se_CreateGroupMembershipRequest(input, context));
18
+ body = JSON.stringify((0, smithy_client_1._json)(input));
19
19
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
20
20
  };
21
21
  exports.se_CreateGroupMembershipCommand = se_CreateGroupMembershipCommand;
22
22
  const se_CreateUserCommand = async (input, context) => {
23
23
  const headers = sharedHeaders("CreateUser");
24
24
  let body;
25
- body = JSON.stringify(se_CreateUserRequest(input, context));
25
+ body = JSON.stringify((0, smithy_client_1._json)(input));
26
26
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
27
27
  };
28
28
  exports.se_CreateUserCommand = se_CreateUserCommand;
29
29
  const se_DeleteGroupCommand = async (input, context) => {
30
30
  const headers = sharedHeaders("DeleteGroup");
31
31
  let body;
32
- body = JSON.stringify(se_DeleteGroupRequest(input, context));
32
+ body = JSON.stringify((0, smithy_client_1._json)(input));
33
33
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
34
34
  };
35
35
  exports.se_DeleteGroupCommand = se_DeleteGroupCommand;
36
36
  const se_DeleteGroupMembershipCommand = async (input, context) => {
37
37
  const headers = sharedHeaders("DeleteGroupMembership");
38
38
  let body;
39
- body = JSON.stringify(se_DeleteGroupMembershipRequest(input, context));
39
+ body = JSON.stringify((0, smithy_client_1._json)(input));
40
40
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
41
  };
42
42
  exports.se_DeleteGroupMembershipCommand = se_DeleteGroupMembershipCommand;
43
43
  const se_DeleteUserCommand = async (input, context) => {
44
44
  const headers = sharedHeaders("DeleteUser");
45
45
  let body;
46
- body = JSON.stringify(se_DeleteUserRequest(input, context));
46
+ body = JSON.stringify((0, smithy_client_1._json)(input));
47
47
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
48
  };
49
49
  exports.se_DeleteUserCommand = se_DeleteUserCommand;
50
50
  const se_DescribeGroupCommand = async (input, context) => {
51
51
  const headers = sharedHeaders("DescribeGroup");
52
52
  let body;
53
- body = JSON.stringify(se_DescribeGroupRequest(input, context));
53
+ body = JSON.stringify((0, smithy_client_1._json)(input));
54
54
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
55
55
  };
56
56
  exports.se_DescribeGroupCommand = se_DescribeGroupCommand;
57
57
  const se_DescribeGroupMembershipCommand = async (input, context) => {
58
58
  const headers = sharedHeaders("DescribeGroupMembership");
59
59
  let body;
60
- body = JSON.stringify(se_DescribeGroupMembershipRequest(input, context));
60
+ body = JSON.stringify((0, smithy_client_1._json)(input));
61
61
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
62
62
  };
63
63
  exports.se_DescribeGroupMembershipCommand = se_DescribeGroupMembershipCommand;
64
64
  const se_DescribeUserCommand = async (input, context) => {
65
65
  const headers = sharedHeaders("DescribeUser");
66
66
  let body;
67
- body = JSON.stringify(se_DescribeUserRequest(input, context));
67
+ body = JSON.stringify((0, smithy_client_1._json)(input));
68
68
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
69
69
  };
70
70
  exports.se_DescribeUserCommand = se_DescribeUserCommand;
@@ -78,7 +78,7 @@ exports.se_GetGroupIdCommand = se_GetGroupIdCommand;
78
78
  const se_GetGroupMembershipIdCommand = async (input, context) => {
79
79
  const headers = sharedHeaders("GetGroupMembershipId");
80
80
  let body;
81
- body = JSON.stringify(se_GetGroupMembershipIdRequest(input, context));
81
+ body = JSON.stringify((0, smithy_client_1._json)(input));
82
82
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
83
83
  };
84
84
  exports.se_GetGroupMembershipIdCommand = se_GetGroupMembershipIdCommand;
@@ -92,35 +92,35 @@ exports.se_GetUserIdCommand = se_GetUserIdCommand;
92
92
  const se_IsMemberInGroupsCommand = async (input, context) => {
93
93
  const headers = sharedHeaders("IsMemberInGroups");
94
94
  let body;
95
- body = JSON.stringify(se_IsMemberInGroupsRequest(input, context));
95
+ body = JSON.stringify((0, smithy_client_1._json)(input));
96
96
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
97
97
  };
98
98
  exports.se_IsMemberInGroupsCommand = se_IsMemberInGroupsCommand;
99
99
  const se_ListGroupMembershipsCommand = async (input, context) => {
100
100
  const headers = sharedHeaders("ListGroupMemberships");
101
101
  let body;
102
- body = JSON.stringify(se_ListGroupMembershipsRequest(input, context));
102
+ body = JSON.stringify((0, smithy_client_1._json)(input));
103
103
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
104
104
  };
105
105
  exports.se_ListGroupMembershipsCommand = se_ListGroupMembershipsCommand;
106
106
  const se_ListGroupMembershipsForMemberCommand = async (input, context) => {
107
107
  const headers = sharedHeaders("ListGroupMembershipsForMember");
108
108
  let body;
109
- body = JSON.stringify(se_ListGroupMembershipsForMemberRequest(input, context));
109
+ body = JSON.stringify((0, smithy_client_1._json)(input));
110
110
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
111
111
  };
112
112
  exports.se_ListGroupMembershipsForMemberCommand = se_ListGroupMembershipsForMemberCommand;
113
113
  const se_ListGroupsCommand = async (input, context) => {
114
114
  const headers = sharedHeaders("ListGroups");
115
115
  let body;
116
- body = JSON.stringify(se_ListGroupsRequest(input, context));
116
+ body = JSON.stringify((0, smithy_client_1._json)(input));
117
117
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
118
118
  };
119
119
  exports.se_ListGroupsCommand = se_ListGroupsCommand;
120
120
  const se_ListUsersCommand = async (input, context) => {
121
121
  const headers = sharedHeaders("ListUsers");
122
122
  let body;
123
- body = JSON.stringify(se_ListUsersRequest(input, context));
123
+ body = JSON.stringify((0, smithy_client_1._json)(input));
124
124
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
125
  };
126
126
  exports.se_ListUsersCommand = se_ListUsersCommand;
@@ -144,12 +144,12 @@ const de_CreateGroupCommand = async (output, context) => {
144
144
  }
145
145
  const data = await parseBody(output.body, context);
146
146
  let contents = {};
147
- contents = de_CreateGroupResponse(data, context);
147
+ contents = (0, smithy_client_1._json)(data);
148
148
  const response = {
149
149
  $metadata: deserializeMetadata(output),
150
150
  ...contents,
151
151
  };
152
- return Promise.resolve(response);
152
+ return response;
153
153
  };
154
154
  exports.de_CreateGroupCommand = de_CreateGroupCommand;
155
155
  const de_CreateGroupCommandError = async (output, context) => {
@@ -182,10 +182,9 @@ const de_CreateGroupCommandError = async (output, context) => {
182
182
  throw await de_ValidationExceptionRes(parsedOutput, context);
183
183
  default:
184
184
  const parsedBody = parsedOutput.body;
185
- (0, smithy_client_1.throwDefaultError)({
185
+ return throwDefaultError({
186
186
  output,
187
187
  parsedBody,
188
- exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
189
188
  errorCode,
190
189
  });
191
190
  }
@@ -196,12 +195,12 @@ const de_CreateGroupMembershipCommand = async (output, context) => {
196
195
  }
197
196
  const data = await parseBody(output.body, context);
198
197
  let contents = {};
199
- contents = de_CreateGroupMembershipResponse(data, context);
198
+ contents = (0, smithy_client_1._json)(data);
200
199
  const response = {
201
200
  $metadata: deserializeMetadata(output),
202
201
  ...contents,
203
202
  };
204
- return Promise.resolve(response);
203
+ return response;
205
204
  };
206
205
  exports.de_CreateGroupMembershipCommand = de_CreateGroupMembershipCommand;
207
206
  const de_CreateGroupMembershipCommandError = async (output, context) => {
@@ -234,10 +233,9 @@ const de_CreateGroupMembershipCommandError = async (output, context) => {
234
233
  throw await de_ValidationExceptionRes(parsedOutput, context);
235
234
  default:
236
235
  const parsedBody = parsedOutput.body;
237
- (0, smithy_client_1.throwDefaultError)({
236
+ return throwDefaultError({
238
237
  output,
239
238
  parsedBody,
240
- exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
241
239
  errorCode,
242
240
  });
243
241
  }
@@ -248,12 +246,12 @@ const de_CreateUserCommand = async (output, context) => {
248
246
  }
249
247
  const data = await parseBody(output.body, context);
250
248
  let contents = {};
251
- contents = de_CreateUserResponse(data, context);
249
+ contents = (0, smithy_client_1._json)(data);
252
250
  const response = {
253
251
  $metadata: deserializeMetadata(output),
254
252
  ...contents,
255
253
  };
256
- return Promise.resolve(response);
254
+ return response;
257
255
  };
258
256
  exports.de_CreateUserCommand = de_CreateUserCommand;
259
257
  const de_CreateUserCommandError = async (output, context) => {
@@ -286,10 +284,9 @@ const de_CreateUserCommandError = async (output, context) => {
286
284
  throw await de_ValidationExceptionRes(parsedOutput, context);
287
285
  default:
288
286
  const parsedBody = parsedOutput.body;
289
- (0, smithy_client_1.throwDefaultError)({
287
+ return throwDefaultError({
290
288
  output,
291
289
  parsedBody,
292
- exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
293
290
  errorCode,
294
291
  });
295
292
  }
@@ -300,12 +297,12 @@ const de_DeleteGroupCommand = async (output, context) => {
300
297
  }
301
298
  const data = await parseBody(output.body, context);
302
299
  let contents = {};
303
- contents = de_DeleteGroupResponse(data, context);
300
+ contents = (0, smithy_client_1._json)(data);
304
301
  const response = {
305
302
  $metadata: deserializeMetadata(output),
306
303
  ...contents,
307
304
  };
308
- return Promise.resolve(response);
305
+ return response;
309
306
  };
310
307
  exports.de_DeleteGroupCommand = de_DeleteGroupCommand;
311
308
  const de_DeleteGroupCommandError = async (output, context) => {
@@ -335,10 +332,9 @@ const de_DeleteGroupCommandError = async (output, context) => {
335
332
  throw await de_ValidationExceptionRes(parsedOutput, context);
336
333
  default:
337
334
  const parsedBody = parsedOutput.body;
338
- (0, smithy_client_1.throwDefaultError)({
335
+ return throwDefaultError({
339
336
  output,
340
337
  parsedBody,
341
- exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
342
338
  errorCode,
343
339
  });
344
340
  }
@@ -349,12 +345,12 @@ const de_DeleteGroupMembershipCommand = async (output, context) => {
349
345
  }
350
346
  const data = await parseBody(output.body, context);
351
347
  let contents = {};
352
- contents = de_DeleteGroupMembershipResponse(data, context);
348
+ contents = (0, smithy_client_1._json)(data);
353
349
  const response = {
354
350
  $metadata: deserializeMetadata(output),
355
351
  ...contents,
356
352
  };
357
- return Promise.resolve(response);
353
+ return response;
358
354
  };
359
355
  exports.de_DeleteGroupMembershipCommand = de_DeleteGroupMembershipCommand;
360
356
  const de_DeleteGroupMembershipCommandError = async (output, context) => {
@@ -384,10 +380,9 @@ const de_DeleteGroupMembershipCommandError = async (output, context) => {
384
380
  throw await de_ValidationExceptionRes(parsedOutput, context);
385
381
  default:
386
382
  const parsedBody = parsedOutput.body;
387
- (0, smithy_client_1.throwDefaultError)({
383
+ return throwDefaultError({
388
384
  output,
389
385
  parsedBody,
390
- exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
391
386
  errorCode,
392
387
  });
393
388
  }
@@ -398,12 +393,12 @@ const de_DeleteUserCommand = async (output, context) => {
398
393
  }
399
394
  const data = await parseBody(output.body, context);
400
395
  let contents = {};
401
- contents = de_DeleteUserResponse(data, context);
396
+ contents = (0, smithy_client_1._json)(data);
402
397
  const response = {
403
398
  $metadata: deserializeMetadata(output),
404
399
  ...contents,
405
400
  };
406
- return Promise.resolve(response);
401
+ return response;
407
402
  };
408
403
  exports.de_DeleteUserCommand = de_DeleteUserCommand;
409
404
  const de_DeleteUserCommandError = async (output, context) => {
@@ -433,10 +428,9 @@ const de_DeleteUserCommandError = async (output, context) => {
433
428
  throw await de_ValidationExceptionRes(parsedOutput, context);
434
429
  default:
435
430
  const parsedBody = parsedOutput.body;
436
- (0, smithy_client_1.throwDefaultError)({
431
+ return throwDefaultError({
437
432
  output,
438
433
  parsedBody,
439
- exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
440
434
  errorCode,
441
435
  });
442
436
  }
@@ -447,12 +441,12 @@ const de_DescribeGroupCommand = async (output, context) => {
447
441
  }
448
442
  const data = await parseBody(output.body, context);
449
443
  let contents = {};
450
- contents = de_DescribeGroupResponse(data, context);
444
+ contents = (0, smithy_client_1._json)(data);
451
445
  const response = {
452
446
  $metadata: deserializeMetadata(output),
453
447
  ...contents,
454
448
  };
455
- return Promise.resolve(response);
449
+ return response;
456
450
  };
457
451
  exports.de_DescribeGroupCommand = de_DescribeGroupCommand;
458
452
  const de_DescribeGroupCommandError = async (output, context) => {
@@ -479,10 +473,9 @@ const de_DescribeGroupCommandError = async (output, context) => {
479
473
  throw await de_ValidationExceptionRes(parsedOutput, context);
480
474
  default:
481
475
  const parsedBody = parsedOutput.body;
482
- (0, smithy_client_1.throwDefaultError)({
476
+ return throwDefaultError({
483
477
  output,
484
478
  parsedBody,
485
- exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
486
479
  errorCode,
487
480
  });
488
481
  }
@@ -493,12 +486,12 @@ const de_DescribeGroupMembershipCommand = async (output, context) => {
493
486
  }
494
487
  const data = await parseBody(output.body, context);
495
488
  let contents = {};
496
- contents = de_DescribeGroupMembershipResponse(data, context);
489
+ contents = (0, smithy_client_1._json)(data);
497
490
  const response = {
498
491
  $metadata: deserializeMetadata(output),
499
492
  ...contents,
500
493
  };
501
- return Promise.resolve(response);
494
+ return response;
502
495
  };
503
496
  exports.de_DescribeGroupMembershipCommand = de_DescribeGroupMembershipCommand;
504
497
  const de_DescribeGroupMembershipCommandError = async (output, context) => {
@@ -525,10 +518,9 @@ const de_DescribeGroupMembershipCommandError = async (output, context) => {
525
518
  throw await de_ValidationExceptionRes(parsedOutput, context);
526
519
  default:
527
520
  const parsedBody = parsedOutput.body;
528
- (0, smithy_client_1.throwDefaultError)({
521
+ return throwDefaultError({
529
522
  output,
530
523
  parsedBody,
531
- exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
532
524
  errorCode,
533
525
  });
534
526
  }
@@ -539,12 +531,12 @@ const de_DescribeUserCommand = async (output, context) => {
539
531
  }
540
532
  const data = await parseBody(output.body, context);
541
533
  let contents = {};
542
- contents = de_DescribeUserResponse(data, context);
534
+ contents = (0, smithy_client_1._json)(data);
543
535
  const response = {
544
536
  $metadata: deserializeMetadata(output),
545
537
  ...contents,
546
538
  };
547
- return Promise.resolve(response);
539
+ return response;
548
540
  };
549
541
  exports.de_DescribeUserCommand = de_DescribeUserCommand;
550
542
  const de_DescribeUserCommandError = async (output, context) => {
@@ -571,10 +563,9 @@ const de_DescribeUserCommandError = async (output, context) => {
571
563
  throw await de_ValidationExceptionRes(parsedOutput, context);
572
564
  default:
573
565
  const parsedBody = parsedOutput.body;
574
- (0, smithy_client_1.throwDefaultError)({
566
+ return throwDefaultError({
575
567
  output,
576
568
  parsedBody,
577
- exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
578
569
  errorCode,
579
570
  });
580
571
  }
@@ -585,12 +576,12 @@ const de_GetGroupIdCommand = async (output, context) => {
585
576
  }
586
577
  const data = await parseBody(output.body, context);
587
578
  let contents = {};
588
- contents = de_GetGroupIdResponse(data, context);
579
+ contents = (0, smithy_client_1._json)(data);
589
580
  const response = {
590
581
  $metadata: deserializeMetadata(output),
591
582
  ...contents,
592
583
  };
593
- return Promise.resolve(response);
584
+ return response;
594
585
  };
595
586
  exports.de_GetGroupIdCommand = de_GetGroupIdCommand;
596
587
  const de_GetGroupIdCommandError = async (output, context) => {
@@ -617,10 +608,9 @@ const de_GetGroupIdCommandError = async (output, context) => {
617
608
  throw await de_ValidationExceptionRes(parsedOutput, context);
618
609
  default:
619
610
  const parsedBody = parsedOutput.body;
620
- (0, smithy_client_1.throwDefaultError)({
611
+ return throwDefaultError({
621
612
  output,
622
613
  parsedBody,
623
- exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
624
614
  errorCode,
625
615
  });
626
616
  }
@@ -631,12 +621,12 @@ const de_GetGroupMembershipIdCommand = async (output, context) => {
631
621
  }
632
622
  const data = await parseBody(output.body, context);
633
623
  let contents = {};
634
- contents = de_GetGroupMembershipIdResponse(data, context);
624
+ contents = (0, smithy_client_1._json)(data);
635
625
  const response = {
636
626
  $metadata: deserializeMetadata(output),
637
627
  ...contents,
638
628
  };
639
- return Promise.resolve(response);
629
+ return response;
640
630
  };
641
631
  exports.de_GetGroupMembershipIdCommand = de_GetGroupMembershipIdCommand;
642
632
  const de_GetGroupMembershipIdCommandError = async (output, context) => {
@@ -663,10 +653,9 @@ const de_GetGroupMembershipIdCommandError = async (output, context) => {
663
653
  throw await de_ValidationExceptionRes(parsedOutput, context);
664
654
  default:
665
655
  const parsedBody = parsedOutput.body;
666
- (0, smithy_client_1.throwDefaultError)({
656
+ return throwDefaultError({
667
657
  output,
668
658
  parsedBody,
669
- exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
670
659
  errorCode,
671
660
  });
672
661
  }
@@ -677,12 +666,12 @@ const de_GetUserIdCommand = async (output, context) => {
677
666
  }
678
667
  const data = await parseBody(output.body, context);
679
668
  let contents = {};
680
- contents = de_GetUserIdResponse(data, context);
669
+ contents = (0, smithy_client_1._json)(data);
681
670
  const response = {
682
671
  $metadata: deserializeMetadata(output),
683
672
  ...contents,
684
673
  };
685
- return Promise.resolve(response);
674
+ return response;
686
675
  };
687
676
  exports.de_GetUserIdCommand = de_GetUserIdCommand;
688
677
  const de_GetUserIdCommandError = async (output, context) => {
@@ -709,10 +698,9 @@ const de_GetUserIdCommandError = async (output, context) => {
709
698
  throw await de_ValidationExceptionRes(parsedOutput, context);
710
699
  default:
711
700
  const parsedBody = parsedOutput.body;
712
- (0, smithy_client_1.throwDefaultError)({
701
+ return throwDefaultError({
713
702
  output,
714
703
  parsedBody,
715
- exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
716
704
  errorCode,
717
705
  });
718
706
  }
@@ -723,12 +711,12 @@ const de_IsMemberInGroupsCommand = async (output, context) => {
723
711
  }
724
712
  const data = await parseBody(output.body, context);
725
713
  let contents = {};
726
- contents = de_IsMemberInGroupsResponse(data, context);
714
+ contents = (0, smithy_client_1._json)(data);
727
715
  const response = {
728
716
  $metadata: deserializeMetadata(output),
729
717
  ...contents,
730
718
  };
731
- return Promise.resolve(response);
719
+ return response;
732
720
  };
733
721
  exports.de_IsMemberInGroupsCommand = de_IsMemberInGroupsCommand;
734
722
  const de_IsMemberInGroupsCommandError = async (output, context) => {
@@ -755,10 +743,9 @@ const de_IsMemberInGroupsCommandError = async (output, context) => {
755
743
  throw await de_ValidationExceptionRes(parsedOutput, context);
756
744
  default:
757
745
  const parsedBody = parsedOutput.body;
758
- (0, smithy_client_1.throwDefaultError)({
746
+ return throwDefaultError({
759
747
  output,
760
748
  parsedBody,
761
- exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
762
749
  errorCode,
763
750
  });
764
751
  }
@@ -769,12 +756,12 @@ const de_ListGroupMembershipsCommand = async (output, context) => {
769
756
  }
770
757
  const data = await parseBody(output.body, context);
771
758
  let contents = {};
772
- contents = de_ListGroupMembershipsResponse(data, context);
759
+ contents = (0, smithy_client_1._json)(data);
773
760
  const response = {
774
761
  $metadata: deserializeMetadata(output),
775
762
  ...contents,
776
763
  };
777
- return Promise.resolve(response);
764
+ return response;
778
765
  };
779
766
  exports.de_ListGroupMembershipsCommand = de_ListGroupMembershipsCommand;
780
767
  const de_ListGroupMembershipsCommandError = async (output, context) => {
@@ -801,10 +788,9 @@ const de_ListGroupMembershipsCommandError = async (output, context) => {
801
788
  throw await de_ValidationExceptionRes(parsedOutput, context);
802
789
  default:
803
790
  const parsedBody = parsedOutput.body;
804
- (0, smithy_client_1.throwDefaultError)({
791
+ return throwDefaultError({
805
792
  output,
806
793
  parsedBody,
807
- exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
808
794
  errorCode,
809
795
  });
810
796
  }
@@ -815,12 +801,12 @@ const de_ListGroupMembershipsForMemberCommand = async (output, context) => {
815
801
  }
816
802
  const data = await parseBody(output.body, context);
817
803
  let contents = {};
818
- contents = de_ListGroupMembershipsForMemberResponse(data, context);
804
+ contents = (0, smithy_client_1._json)(data);
819
805
  const response = {
820
806
  $metadata: deserializeMetadata(output),
821
807
  ...contents,
822
808
  };
823
- return Promise.resolve(response);
809
+ return response;
824
810
  };
825
811
  exports.de_ListGroupMembershipsForMemberCommand = de_ListGroupMembershipsForMemberCommand;
826
812
  const de_ListGroupMembershipsForMemberCommandError = async (output, context) => {
@@ -847,10 +833,9 @@ const de_ListGroupMembershipsForMemberCommandError = async (output, context) =>
847
833
  throw await de_ValidationExceptionRes(parsedOutput, context);
848
834
  default:
849
835
  const parsedBody = parsedOutput.body;
850
- (0, smithy_client_1.throwDefaultError)({
836
+ return throwDefaultError({
851
837
  output,
852
838
  parsedBody,
853
- exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
854
839
  errorCode,
855
840
  });
856
841
  }
@@ -861,12 +846,12 @@ const de_ListGroupsCommand = async (output, context) => {
861
846
  }
862
847
  const data = await parseBody(output.body, context);
863
848
  let contents = {};
864
- contents = de_ListGroupsResponse(data, context);
849
+ contents = (0, smithy_client_1._json)(data);
865
850
  const response = {
866
851
  $metadata: deserializeMetadata(output),
867
852
  ...contents,
868
853
  };
869
- return Promise.resolve(response);
854
+ return response;
870
855
  };
871
856
  exports.de_ListGroupsCommand = de_ListGroupsCommand;
872
857
  const de_ListGroupsCommandError = async (output, context) => {
@@ -893,10 +878,9 @@ const de_ListGroupsCommandError = async (output, context) => {
893
878
  throw await de_ValidationExceptionRes(parsedOutput, context);
894
879
  default:
895
880
  const parsedBody = parsedOutput.body;
896
- (0, smithy_client_1.throwDefaultError)({
881
+ return throwDefaultError({
897
882
  output,
898
883
  parsedBody,
899
- exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
900
884
  errorCode,
901
885
  });
902
886
  }
@@ -907,12 +891,12 @@ const de_ListUsersCommand = async (output, context) => {
907
891
  }
908
892
  const data = await parseBody(output.body, context);
909
893
  let contents = {};
910
- contents = de_ListUsersResponse(data, context);
894
+ contents = (0, smithy_client_1._json)(data);
911
895
  const response = {
912
896
  $metadata: deserializeMetadata(output),
913
897
  ...contents,
914
898
  };
915
- return Promise.resolve(response);
899
+ return response;
916
900
  };
917
901
  exports.de_ListUsersCommand = de_ListUsersCommand;
918
902
  const de_ListUsersCommandError = async (output, context) => {
@@ -939,10 +923,9 @@ const de_ListUsersCommandError = async (output, context) => {
939
923
  throw await de_ValidationExceptionRes(parsedOutput, context);
940
924
  default:
941
925
  const parsedBody = parsedOutput.body;
942
- (0, smithy_client_1.throwDefaultError)({
926
+ return throwDefaultError({
943
927
  output,
944
928
  parsedBody,
945
- exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
946
929
  errorCode,
947
930
  });
948
931
  }
@@ -953,12 +936,12 @@ const de_UpdateGroupCommand = async (output, context) => {
953
936
  }
954
937
  const data = await parseBody(output.body, context);
955
938
  let contents = {};
956
- contents = de_UpdateGroupResponse(data, context);
939
+ contents = (0, smithy_client_1._json)(data);
957
940
  const response = {
958
941
  $metadata: deserializeMetadata(output),
959
942
  ...contents,
960
943
  };
961
- return Promise.resolve(response);
944
+ return response;
962
945
  };
963
946
  exports.de_UpdateGroupCommand = de_UpdateGroupCommand;
964
947
  const de_UpdateGroupCommandError = async (output, context) => {
@@ -991,10 +974,9 @@ const de_UpdateGroupCommandError = async (output, context) => {
991
974
  throw await de_ValidationExceptionRes(parsedOutput, context);
992
975
  default:
993
976
  const parsedBody = parsedOutput.body;
994
- (0, smithy_client_1.throwDefaultError)({
977
+ return throwDefaultError({
995
978
  output,
996
979
  parsedBody,
997
- exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
998
980
  errorCode,
999
981
  });
1000
982
  }
@@ -1005,12 +987,12 @@ const de_UpdateUserCommand = async (output, context) => {
1005
987
  }
1006
988
  const data = await parseBody(output.body, context);
1007
989
  let contents = {};
1008
- contents = de_UpdateUserResponse(data, context);
990
+ contents = (0, smithy_client_1._json)(data);
1009
991
  const response = {
1010
992
  $metadata: deserializeMetadata(output),
1011
993
  ...contents,
1012
994
  };
1013
- return Promise.resolve(response);
995
+ return response;
1014
996
  };
1015
997
  exports.de_UpdateUserCommand = de_UpdateUserCommand;
1016
998
  const de_UpdateUserCommandError = async (output, context) => {
@@ -1043,17 +1025,16 @@ const de_UpdateUserCommandError = async (output, context) => {
1043
1025
  throw await de_ValidationExceptionRes(parsedOutput, context);
1044
1026
  default:
1045
1027
  const parsedBody = parsedOutput.body;
1046
- (0, smithy_client_1.throwDefaultError)({
1028
+ return throwDefaultError({
1047
1029
  output,
1048
1030
  parsedBody,
1049
- exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
1050
1031
  errorCode,
1051
1032
  });
1052
1033
  }
1053
1034
  };
1054
1035
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1055
1036
  const body = parsedOutput.body;
1056
- const deserialized = de_AccessDeniedException(body, context);
1037
+ const deserialized = (0, smithy_client_1._json)(body);
1057
1038
  const exception = new models_0_1.AccessDeniedException({
1058
1039
  $metadata: deserializeMetadata(parsedOutput),
1059
1040
  ...deserialized,
@@ -1062,7 +1043,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1062
1043
  };
1063
1044
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
1064
1045
  const body = parsedOutput.body;
1065
- const deserialized = de_ConflictException(body, context);
1046
+ const deserialized = (0, smithy_client_1._json)(body);
1066
1047
  const exception = new models_0_1.ConflictException({
1067
1048
  $metadata: deserializeMetadata(parsedOutput),
1068
1049
  ...deserialized,
@@ -1071,7 +1052,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1071
1052
  };
1072
1053
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1073
1054
  const body = parsedOutput.body;
1074
- const deserialized = de_InternalServerException(body, context);
1055
+ const deserialized = (0, smithy_client_1._json)(body);
1075
1056
  const exception = new models_0_1.InternalServerException({
1076
1057
  $metadata: deserializeMetadata(parsedOutput),
1077
1058
  ...deserialized,
@@ -1080,7 +1061,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1080
1061
  };
1081
1062
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1082
1063
  const body = parsedOutput.body;
1083
- const deserialized = de_ResourceNotFoundException(body, context);
1064
+ const deserialized = (0, smithy_client_1._json)(body);
1084
1065
  const exception = new models_0_1.ResourceNotFoundException({
1085
1066
  $metadata: deserializeMetadata(parsedOutput),
1086
1067
  ...deserialized,
@@ -1089,7 +1070,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1089
1070
  };
1090
1071
  const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1091
1072
  const body = parsedOutput.body;
1092
- const deserialized = de_ServiceQuotaExceededException(body, context);
1073
+ const deserialized = (0, smithy_client_1._json)(body);
1093
1074
  const exception = new models_0_1.ServiceQuotaExceededException({
1094
1075
  $metadata: deserializeMetadata(parsedOutput),
1095
1076
  ...deserialized,
@@ -1098,7 +1079,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1098
1079
  };
1099
1080
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1100
1081
  const body = parsedOutput.body;
1101
- const deserialized = de_ThrottlingException(body, context);
1082
+ const deserialized = (0, smithy_client_1._json)(body);
1102
1083
  const exception = new models_0_1.ThrottlingException({
1103
1084
  $metadata: deserializeMetadata(parsedOutput),
1104
1085
  ...deserialized,
@@ -1107,44 +1088,25 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1107
1088
  };
1108
1089
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
1109
1090
  const body = parsedOutput.body;
1110
- const deserialized = de_ValidationException(body, context);
1091
+ const deserialized = (0, smithy_client_1._json)(body);
1111
1092
  const exception = new models_0_1.ValidationException({
1112
1093
  $metadata: deserializeMetadata(parsedOutput),
1113
1094
  ...deserialized,
1114
1095
  });
1115
1096
  return (0, smithy_client_1.decorateServiceException)(exception, body);
1116
1097
  };
1117
- const se_Address = (input, context) => {
1118
- return {
1119
- ...(input.Country != null && { Country: input.Country }),
1120
- ...(input.Formatted != null && { Formatted: input.Formatted }),
1121
- ...(input.Locality != null && { Locality: input.Locality }),
1122
- ...(input.PostalCode != null && { PostalCode: input.PostalCode }),
1123
- ...(input.Primary != null && { Primary: input.Primary }),
1124
- ...(input.Region != null && { Region: input.Region }),
1125
- ...(input.StreetAddress != null && { StreetAddress: input.StreetAddress }),
1126
- ...(input.Type != null && { Type: input.Type }),
1127
- };
1128
- };
1129
- const se_Addresses = (input, context) => {
1130
- return input
1131
- .filter((e) => e != null)
1132
- .map((entry) => {
1133
- return se_Address(entry, context);
1134
- });
1135
- };
1136
1098
  const se_AlternateIdentifier = (input, context) => {
1137
1099
  return models_0_1.AlternateIdentifier.visit(input, {
1138
- ExternalId: (value) => ({ ExternalId: se_ExternalId(value, context) }),
1100
+ ExternalId: (value) => ({ ExternalId: (0, smithy_client_1._json)(value) }),
1139
1101
  UniqueAttribute: (value) => ({ UniqueAttribute: se_UniqueAttribute(value, context) }),
1140
1102
  _: (name, value) => ({ name: value }),
1141
1103
  });
1142
1104
  };
1143
1105
  const se_AttributeOperation = (input, context) => {
1144
- return {
1145
- ...(input.AttributePath != null && { AttributePath: input.AttributePath }),
1146
- ...(input.AttributeValue != null && { AttributeValue: se_AttributeValue(input.AttributeValue, context) }),
1147
- };
1106
+ return (0, smithy_client_1.take)(input, {
1107
+ AttributePath: [],
1108
+ AttributeValue: (_) => se_AttributeValue(_, context),
1109
+ });
1148
1110
  };
1149
1111
  const se_AttributeOperations = (input, context) => {
1150
1112
  return input
@@ -1156,569 +1118,37 @@ const se_AttributeOperations = (input, context) => {
1156
1118
  const se_AttributeValue = (input, context) => {
1157
1119
  return input;
1158
1120
  };
1159
- const se_CreateGroupMembershipRequest = (input, context) => {
1160
- return {
1161
- ...(input.GroupId != null && { GroupId: input.GroupId }),
1162
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1163
- ...(input.MemberId != null && { MemberId: se_MemberId(input.MemberId, context) }),
1164
- };
1165
- };
1166
- const se_CreateGroupRequest = (input, context) => {
1167
- return {
1168
- ...(input.Description != null && { Description: input.Description }),
1169
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
1170
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1171
- };
1172
- };
1173
- const se_CreateUserRequest = (input, context) => {
1174
- return {
1175
- ...(input.Addresses != null && { Addresses: se_Addresses(input.Addresses, context) }),
1176
- ...(input.DisplayName != null && { DisplayName: input.DisplayName }),
1177
- ...(input.Emails != null && { Emails: se_Emails(input.Emails, context) }),
1178
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1179
- ...(input.Locale != null && { Locale: input.Locale }),
1180
- ...(input.Name != null && { Name: se_Name(input.Name, context) }),
1181
- ...(input.NickName != null && { NickName: input.NickName }),
1182
- ...(input.PhoneNumbers != null && { PhoneNumbers: se_PhoneNumbers(input.PhoneNumbers, context) }),
1183
- ...(input.PreferredLanguage != null && { PreferredLanguage: input.PreferredLanguage }),
1184
- ...(input.ProfileUrl != null && { ProfileUrl: input.ProfileUrl }),
1185
- ...(input.Timezone != null && { Timezone: input.Timezone }),
1186
- ...(input.Title != null && { Title: input.Title }),
1187
- ...(input.UserName != null && { UserName: input.UserName }),
1188
- ...(input.UserType != null && { UserType: input.UserType }),
1189
- };
1190
- };
1191
- const se_DeleteGroupMembershipRequest = (input, context) => {
1192
- return {
1193
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1194
- ...(input.MembershipId != null && { MembershipId: input.MembershipId }),
1195
- };
1196
- };
1197
- const se_DeleteGroupRequest = (input, context) => {
1198
- return {
1199
- ...(input.GroupId != null && { GroupId: input.GroupId }),
1200
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1201
- };
1202
- };
1203
- const se_DeleteUserRequest = (input, context) => {
1204
- return {
1205
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1206
- ...(input.UserId != null && { UserId: input.UserId }),
1207
- };
1208
- };
1209
- const se_DescribeGroupMembershipRequest = (input, context) => {
1210
- return {
1211
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1212
- ...(input.MembershipId != null && { MembershipId: input.MembershipId }),
1213
- };
1214
- };
1215
- const se_DescribeGroupRequest = (input, context) => {
1216
- return {
1217
- ...(input.GroupId != null && { GroupId: input.GroupId }),
1218
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1219
- };
1220
- };
1221
- const se_DescribeUserRequest = (input, context) => {
1222
- return {
1223
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1224
- ...(input.UserId != null && { UserId: input.UserId }),
1225
- };
1226
- };
1227
- const se_Email = (input, context) => {
1228
- return {
1229
- ...(input.Primary != null && { Primary: input.Primary }),
1230
- ...(input.Type != null && { Type: input.Type }),
1231
- ...(input.Value != null && { Value: input.Value }),
1232
- };
1233
- };
1234
- const se_Emails = (input, context) => {
1235
- return input
1236
- .filter((e) => e != null)
1237
- .map((entry) => {
1238
- return se_Email(entry, context);
1239
- });
1240
- };
1241
- const se_ExternalId = (input, context) => {
1242
- return {
1243
- ...(input.Id != null && { Id: input.Id }),
1244
- ...(input.Issuer != null && { Issuer: input.Issuer }),
1245
- };
1246
- };
1247
- const se_Filter = (input, context) => {
1248
- return {
1249
- ...(input.AttributePath != null && { AttributePath: input.AttributePath }),
1250
- ...(input.AttributeValue != null && { AttributeValue: input.AttributeValue }),
1251
- };
1252
- };
1253
- const se_Filters = (input, context) => {
1254
- return input
1255
- .filter((e) => e != null)
1256
- .map((entry) => {
1257
- return se_Filter(entry, context);
1258
- });
1259
- };
1260
1121
  const se_GetGroupIdRequest = (input, context) => {
1261
- return {
1262
- ...(input.AlternateIdentifier != null && {
1263
- AlternateIdentifier: se_AlternateIdentifier(input.AlternateIdentifier, context),
1264
- }),
1265
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1266
- };
1267
- };
1268
- const se_GetGroupMembershipIdRequest = (input, context) => {
1269
- return {
1270
- ...(input.GroupId != null && { GroupId: input.GroupId }),
1271
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1272
- ...(input.MemberId != null && { MemberId: se_MemberId(input.MemberId, context) }),
1273
- };
1274
- };
1275
- const se_GetUserIdRequest = (input, context) => {
1276
- return {
1277
- ...(input.AlternateIdentifier != null && {
1278
- AlternateIdentifier: se_AlternateIdentifier(input.AlternateIdentifier, context),
1279
- }),
1280
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1281
- };
1282
- };
1283
- const se_GroupIds = (input, context) => {
1284
- return input
1285
- .filter((e) => e != null)
1286
- .map((entry) => {
1287
- return entry;
1122
+ return (0, smithy_client_1.take)(input, {
1123
+ AlternateIdentifier: (_) => se_AlternateIdentifier(_, context),
1124
+ IdentityStoreId: [],
1288
1125
  });
1289
1126
  };
1290
- const se_IsMemberInGroupsRequest = (input, context) => {
1291
- return {
1292
- ...(input.GroupIds != null && { GroupIds: se_GroupIds(input.GroupIds, context) }),
1293
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1294
- ...(input.MemberId != null && { MemberId: se_MemberId(input.MemberId, context) }),
1295
- };
1296
- };
1297
- const se_ListGroupMembershipsForMemberRequest = (input, context) => {
1298
- return {
1299
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1300
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1301
- ...(input.MemberId != null && { MemberId: se_MemberId(input.MemberId, context) }),
1302
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1303
- };
1304
- };
1305
- const se_ListGroupMembershipsRequest = (input, context) => {
1306
- return {
1307
- ...(input.GroupId != null && { GroupId: input.GroupId }),
1308
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1309
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1310
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1311
- };
1312
- };
1313
- const se_ListGroupsRequest = (input, context) => {
1314
- return {
1315
- ...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
1316
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1317
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1318
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1319
- };
1320
- };
1321
- const se_ListUsersRequest = (input, context) => {
1322
- return {
1323
- ...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
1324
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1325
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
1326
- ...(input.NextToken != null && { NextToken: input.NextToken }),
1327
- };
1328
- };
1329
- const se_MemberId = (input, context) => {
1330
- return models_0_1.MemberId.visit(input, {
1331
- UserId: (value) => ({ UserId: value }),
1332
- _: (name, value) => ({ name: value }),
1333
- });
1334
- };
1335
- const se_Name = (input, context) => {
1336
- return {
1337
- ...(input.FamilyName != null && { FamilyName: input.FamilyName }),
1338
- ...(input.Formatted != null && { Formatted: input.Formatted }),
1339
- ...(input.GivenName != null && { GivenName: input.GivenName }),
1340
- ...(input.HonorificPrefix != null && { HonorificPrefix: input.HonorificPrefix }),
1341
- ...(input.HonorificSuffix != null && { HonorificSuffix: input.HonorificSuffix }),
1342
- ...(input.MiddleName != null && { MiddleName: input.MiddleName }),
1343
- };
1344
- };
1345
- const se_PhoneNumber = (input, context) => {
1346
- return {
1347
- ...(input.Primary != null && { Primary: input.Primary }),
1348
- ...(input.Type != null && { Type: input.Type }),
1349
- ...(input.Value != null && { Value: input.Value }),
1350
- };
1351
- };
1352
- const se_PhoneNumbers = (input, context) => {
1353
- return input
1354
- .filter((e) => e != null)
1355
- .map((entry) => {
1356
- return se_PhoneNumber(entry, context);
1127
+ const se_GetUserIdRequest = (input, context) => {
1128
+ return (0, smithy_client_1.take)(input, {
1129
+ AlternateIdentifier: (_) => se_AlternateIdentifier(_, context),
1130
+ IdentityStoreId: [],
1357
1131
  });
1358
1132
  };
1359
1133
  const se_UniqueAttribute = (input, context) => {
1360
- return {
1361
- ...(input.AttributePath != null && { AttributePath: input.AttributePath }),
1362
- ...(input.AttributeValue != null && { AttributeValue: se_AttributeValue(input.AttributeValue, context) }),
1363
- };
1364
- };
1365
- const se_UpdateGroupRequest = (input, context) => {
1366
- return {
1367
- ...(input.GroupId != null && { GroupId: input.GroupId }),
1368
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1369
- ...(input.Operations != null && { Operations: se_AttributeOperations(input.Operations, context) }),
1370
- };
1371
- };
1372
- const se_UpdateUserRequest = (input, context) => {
1373
- return {
1374
- ...(input.IdentityStoreId != null && { IdentityStoreId: input.IdentityStoreId }),
1375
- ...(input.Operations != null && { Operations: se_AttributeOperations(input.Operations, context) }),
1376
- ...(input.UserId != null && { UserId: input.UserId }),
1377
- };
1378
- };
1379
- const de_AccessDeniedException = (output, context) => {
1380
- return {
1381
- Message: (0, smithy_client_1.expectString)(output.Message),
1382
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
1383
- };
1384
- };
1385
- const de_Address = (output, context) => {
1386
- return {
1387
- Country: (0, smithy_client_1.expectString)(output.Country),
1388
- Formatted: (0, smithy_client_1.expectString)(output.Formatted),
1389
- Locality: (0, smithy_client_1.expectString)(output.Locality),
1390
- PostalCode: (0, smithy_client_1.expectString)(output.PostalCode),
1391
- Primary: (0, smithy_client_1.expectBoolean)(output.Primary),
1392
- Region: (0, smithy_client_1.expectString)(output.Region),
1393
- StreetAddress: (0, smithy_client_1.expectString)(output.StreetAddress),
1394
- Type: (0, smithy_client_1.expectString)(output.Type),
1395
- };
1396
- };
1397
- const de_Addresses = (output, context) => {
1398
- const retVal = (output || [])
1399
- .filter((e) => e != null)
1400
- .map((entry) => {
1401
- if (entry === null) {
1402
- return null;
1403
- }
1404
- return de_Address(entry, context);
1134
+ return (0, smithy_client_1.take)(input, {
1135
+ AttributePath: [],
1136
+ AttributeValue: (_) => se_AttributeValue(_, context),
1405
1137
  });
1406
- return retVal;
1407
- };
1408
- const de_ConflictException = (output, context) => {
1409
- return {
1410
- Message: (0, smithy_client_1.expectString)(output.Message),
1411
- Reason: (0, smithy_client_1.expectString)(output.Reason),
1412
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
1413
- };
1414
- };
1415
- const de_CreateGroupMembershipResponse = (output, context) => {
1416
- return {
1417
- IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1418
- MembershipId: (0, smithy_client_1.expectString)(output.MembershipId),
1419
- };
1420
1138
  };
1421
- const de_CreateGroupResponse = (output, context) => {
1422
- return {
1423
- GroupId: (0, smithy_client_1.expectString)(output.GroupId),
1424
- IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1425
- };
1426
- };
1427
- const de_CreateUserResponse = (output, context) => {
1428
- return {
1429
- IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1430
- UserId: (0, smithy_client_1.expectString)(output.UserId),
1431
- };
1432
- };
1433
- const de_DeleteGroupMembershipResponse = (output, context) => {
1434
- return {};
1435
- };
1436
- const de_DeleteGroupResponse = (output, context) => {
1437
- return {};
1438
- };
1439
- const de_DeleteUserResponse = (output, context) => {
1440
- return {};
1441
- };
1442
- const de_DescribeGroupMembershipResponse = (output, context) => {
1443
- return {
1444
- GroupId: (0, smithy_client_1.expectString)(output.GroupId),
1445
- IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1446
- MemberId: output.MemberId != null ? de_MemberId((0, smithy_client_1.expectUnion)(output.MemberId), context) : undefined,
1447
- MembershipId: (0, smithy_client_1.expectString)(output.MembershipId),
1448
- };
1449
- };
1450
- const de_DescribeGroupResponse = (output, context) => {
1451
- return {
1452
- Description: (0, smithy_client_1.expectString)(output.Description),
1453
- DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
1454
- ExternalIds: output.ExternalIds != null ? de_ExternalIds(output.ExternalIds, context) : undefined,
1455
- GroupId: (0, smithy_client_1.expectString)(output.GroupId),
1456
- IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1457
- };
1458
- };
1459
- const de_DescribeUserResponse = (output, context) => {
1460
- return {
1461
- Addresses: output.Addresses != null ? de_Addresses(output.Addresses, context) : undefined,
1462
- DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
1463
- Emails: output.Emails != null ? de_Emails(output.Emails, context) : undefined,
1464
- ExternalIds: output.ExternalIds != null ? de_ExternalIds(output.ExternalIds, context) : undefined,
1465
- IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1466
- Locale: (0, smithy_client_1.expectString)(output.Locale),
1467
- Name: output.Name != null ? de_Name(output.Name, context) : undefined,
1468
- NickName: (0, smithy_client_1.expectString)(output.NickName),
1469
- PhoneNumbers: output.PhoneNumbers != null ? de_PhoneNumbers(output.PhoneNumbers, context) : undefined,
1470
- PreferredLanguage: (0, smithy_client_1.expectString)(output.PreferredLanguage),
1471
- ProfileUrl: (0, smithy_client_1.expectString)(output.ProfileUrl),
1472
- Timezone: (0, smithy_client_1.expectString)(output.Timezone),
1473
- Title: (0, smithy_client_1.expectString)(output.Title),
1474
- UserId: (0, smithy_client_1.expectString)(output.UserId),
1475
- UserName: (0, smithy_client_1.expectString)(output.UserName),
1476
- UserType: (0, smithy_client_1.expectString)(output.UserType),
1477
- };
1478
- };
1479
- const de_Email = (output, context) => {
1480
- return {
1481
- Primary: (0, smithy_client_1.expectBoolean)(output.Primary),
1482
- Type: (0, smithy_client_1.expectString)(output.Type),
1483
- Value: (0, smithy_client_1.expectString)(output.Value),
1484
- };
1485
- };
1486
- const de_Emails = (output, context) => {
1487
- const retVal = (output || [])
1488
- .filter((e) => e != null)
1489
- .map((entry) => {
1490
- if (entry === null) {
1491
- return null;
1492
- }
1493
- return de_Email(entry, context);
1494
- });
1495
- return retVal;
1496
- };
1497
- const de_ExternalId = (output, context) => {
1498
- return {
1499
- Id: (0, smithy_client_1.expectString)(output.Id),
1500
- Issuer: (0, smithy_client_1.expectString)(output.Issuer),
1501
- };
1502
- };
1503
- const de_ExternalIds = (output, context) => {
1504
- const retVal = (output || [])
1505
- .filter((e) => e != null)
1506
- .map((entry) => {
1507
- if (entry === null) {
1508
- return null;
1509
- }
1510
- return de_ExternalId(entry, context);
1511
- });
1512
- return retVal;
1513
- };
1514
- const de_GetGroupIdResponse = (output, context) => {
1515
- return {
1516
- GroupId: (0, smithy_client_1.expectString)(output.GroupId),
1517
- IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1518
- };
1519
- };
1520
- const de_GetGroupMembershipIdResponse = (output, context) => {
1521
- return {
1522
- IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1523
- MembershipId: (0, smithy_client_1.expectString)(output.MembershipId),
1524
- };
1525
- };
1526
- const de_GetUserIdResponse = (output, context) => {
1527
- return {
1528
- IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1529
- UserId: (0, smithy_client_1.expectString)(output.UserId),
1530
- };
1531
- };
1532
- const de_Group = (output, context) => {
1533
- return {
1534
- Description: (0, smithy_client_1.expectString)(output.Description),
1535
- DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
1536
- ExternalIds: output.ExternalIds != null ? de_ExternalIds(output.ExternalIds, context) : undefined,
1537
- GroupId: (0, smithy_client_1.expectString)(output.GroupId),
1538
- IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1539
- };
1540
- };
1541
- const de_GroupMembership = (output, context) => {
1542
- return {
1543
- GroupId: (0, smithy_client_1.expectString)(output.GroupId),
1544
- IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1545
- MemberId: output.MemberId != null ? de_MemberId((0, smithy_client_1.expectUnion)(output.MemberId), context) : undefined,
1546
- MembershipId: (0, smithy_client_1.expectString)(output.MembershipId),
1547
- };
1548
- };
1549
- const de_GroupMembershipExistenceResult = (output, context) => {
1550
- return {
1551
- GroupId: (0, smithy_client_1.expectString)(output.GroupId),
1552
- MemberId: output.MemberId != null ? de_MemberId((0, smithy_client_1.expectUnion)(output.MemberId), context) : undefined,
1553
- MembershipExists: (0, smithy_client_1.expectBoolean)(output.MembershipExists),
1554
- };
1555
- };
1556
- const de_GroupMembershipExistenceResults = (output, context) => {
1557
- const retVal = (output || [])
1558
- .filter((e) => e != null)
1559
- .map((entry) => {
1560
- if (entry === null) {
1561
- return null;
1562
- }
1563
- return de_GroupMembershipExistenceResult(entry, context);
1564
- });
1565
- return retVal;
1566
- };
1567
- const de_GroupMemberships = (output, context) => {
1568
- const retVal = (output || [])
1569
- .filter((e) => e != null)
1570
- .map((entry) => {
1571
- if (entry === null) {
1572
- return null;
1573
- }
1574
- return de_GroupMembership(entry, context);
1575
- });
1576
- return retVal;
1577
- };
1578
- const de_Groups = (output, context) => {
1579
- const retVal = (output || [])
1580
- .filter((e) => e != null)
1581
- .map((entry) => {
1582
- if (entry === null) {
1583
- return null;
1584
- }
1585
- return de_Group(entry, context);
1586
- });
1587
- return retVal;
1588
- };
1589
- const de_InternalServerException = (output, context) => {
1590
- return {
1591
- Message: (0, smithy_client_1.expectString)(output.Message),
1592
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
1593
- RetryAfterSeconds: (0, smithy_client_1.expectInt32)(output.RetryAfterSeconds),
1594
- };
1595
- };
1596
- const de_IsMemberInGroupsResponse = (output, context) => {
1597
- return {
1598
- Results: output.Results != null ? de_GroupMembershipExistenceResults(output.Results, context) : undefined,
1599
- };
1600
- };
1601
- const de_ListGroupMembershipsForMemberResponse = (output, context) => {
1602
- return {
1603
- GroupMemberships: output.GroupMemberships != null ? de_GroupMemberships(output.GroupMemberships, context) : undefined,
1604
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1605
- };
1606
- };
1607
- const de_ListGroupMembershipsResponse = (output, context) => {
1608
- return {
1609
- GroupMemberships: output.GroupMemberships != null ? de_GroupMemberships(output.GroupMemberships, context) : undefined,
1610
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1611
- };
1612
- };
1613
- const de_ListGroupsResponse = (output, context) => {
1614
- return {
1615
- Groups: output.Groups != null ? de_Groups(output.Groups, context) : undefined,
1616
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1617
- };
1618
- };
1619
- const de_ListUsersResponse = (output, context) => {
1620
- return {
1621
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1622
- Users: output.Users != null ? de_Users(output.Users, context) : undefined,
1623
- };
1624
- };
1625
- const de_MemberId = (output, context) => {
1626
- if ((0, smithy_client_1.expectString)(output.UserId) !== undefined) {
1627
- return { UserId: (0, smithy_client_1.expectString)(output.UserId) };
1628
- }
1629
- return { $unknown: Object.entries(output)[0] };
1630
- };
1631
- const de_Name = (output, context) => {
1632
- return {
1633
- FamilyName: (0, smithy_client_1.expectString)(output.FamilyName),
1634
- Formatted: (0, smithy_client_1.expectString)(output.Formatted),
1635
- GivenName: (0, smithy_client_1.expectString)(output.GivenName),
1636
- HonorificPrefix: (0, smithy_client_1.expectString)(output.HonorificPrefix),
1637
- HonorificSuffix: (0, smithy_client_1.expectString)(output.HonorificSuffix),
1638
- MiddleName: (0, smithy_client_1.expectString)(output.MiddleName),
1639
- };
1640
- };
1641
- const de_PhoneNumber = (output, context) => {
1642
- return {
1643
- Primary: (0, smithy_client_1.expectBoolean)(output.Primary),
1644
- Type: (0, smithy_client_1.expectString)(output.Type),
1645
- Value: (0, smithy_client_1.expectString)(output.Value),
1646
- };
1647
- };
1648
- const de_PhoneNumbers = (output, context) => {
1649
- const retVal = (output || [])
1650
- .filter((e) => e != null)
1651
- .map((entry) => {
1652
- if (entry === null) {
1653
- return null;
1654
- }
1655
- return de_PhoneNumber(entry, context);
1139
+ const se_UpdateGroupRequest = (input, context) => {
1140
+ return (0, smithy_client_1.take)(input, {
1141
+ GroupId: [],
1142
+ IdentityStoreId: [],
1143
+ Operations: (_) => se_AttributeOperations(_, context),
1656
1144
  });
1657
- return retVal;
1658
- };
1659
- const de_ResourceNotFoundException = (output, context) => {
1660
- return {
1661
- Message: (0, smithy_client_1.expectString)(output.Message),
1662
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
1663
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
1664
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
1665
- };
1666
- };
1667
- const de_ServiceQuotaExceededException = (output, context) => {
1668
- return {
1669
- Message: (0, smithy_client_1.expectString)(output.Message),
1670
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
1671
- };
1672
- };
1673
- const de_ThrottlingException = (output, context) => {
1674
- return {
1675
- Message: (0, smithy_client_1.expectString)(output.Message),
1676
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
1677
- RetryAfterSeconds: (0, smithy_client_1.expectInt32)(output.RetryAfterSeconds),
1678
- };
1679
- };
1680
- const de_UpdateGroupResponse = (output, context) => {
1681
- return {};
1682
- };
1683
- const de_UpdateUserResponse = (output, context) => {
1684
- return {};
1685
- };
1686
- const de_User = (output, context) => {
1687
- return {
1688
- Addresses: output.Addresses != null ? de_Addresses(output.Addresses, context) : undefined,
1689
- DisplayName: (0, smithy_client_1.expectString)(output.DisplayName),
1690
- Emails: output.Emails != null ? de_Emails(output.Emails, context) : undefined,
1691
- ExternalIds: output.ExternalIds != null ? de_ExternalIds(output.ExternalIds, context) : undefined,
1692
- IdentityStoreId: (0, smithy_client_1.expectString)(output.IdentityStoreId),
1693
- Locale: (0, smithy_client_1.expectString)(output.Locale),
1694
- Name: output.Name != null ? de_Name(output.Name, context) : undefined,
1695
- NickName: (0, smithy_client_1.expectString)(output.NickName),
1696
- PhoneNumbers: output.PhoneNumbers != null ? de_PhoneNumbers(output.PhoneNumbers, context) : undefined,
1697
- PreferredLanguage: (0, smithy_client_1.expectString)(output.PreferredLanguage),
1698
- ProfileUrl: (0, smithy_client_1.expectString)(output.ProfileUrl),
1699
- Timezone: (0, smithy_client_1.expectString)(output.Timezone),
1700
- Title: (0, smithy_client_1.expectString)(output.Title),
1701
- UserId: (0, smithy_client_1.expectString)(output.UserId),
1702
- UserName: (0, smithy_client_1.expectString)(output.UserName),
1703
- UserType: (0, smithy_client_1.expectString)(output.UserType),
1704
- };
1705
1145
  };
1706
- const de_Users = (output, context) => {
1707
- const retVal = (output || [])
1708
- .filter((e) => e != null)
1709
- .map((entry) => {
1710
- if (entry === null) {
1711
- return null;
1712
- }
1713
- return de_User(entry, context);
1146
+ const se_UpdateUserRequest = (input, context) => {
1147
+ return (0, smithy_client_1.take)(input, {
1148
+ IdentityStoreId: [],
1149
+ Operations: (_) => se_AttributeOperations(_, context),
1150
+ UserId: [],
1714
1151
  });
1715
- return retVal;
1716
- };
1717
- const de_ValidationException = (output, context) => {
1718
- return {
1719
- Message: (0, smithy_client_1.expectString)(output.Message),
1720
- RequestId: (0, smithy_client_1.expectString)(output.RequestId),
1721
- };
1722
1152
  };
1723
1153
  const deserializeMetadata = (output) => ({
1724
1154
  httpStatusCode: output.statusCode,
@@ -1733,6 +1163,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
1733
1163
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
1734
1164
  };
1735
1165
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1166
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(IdentitystoreServiceException_1.IdentitystoreServiceException);
1736
1167
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1737
1168
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1738
1169
  const contents = {