@aws-sdk/client-identitystore 3.927.0 → 3.929.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.
Files changed (43) hide show
  1. package/dist-cjs/index.js +835 -1048
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/IdentitystoreClient.js +2 -0
  4. package/dist-es/commands/CreateGroupCommand.js +3 -10
  5. package/dist-es/commands/CreateGroupMembershipCommand.js +3 -9
  6. package/dist-es/commands/CreateUserCommand.js +3 -10
  7. package/dist-es/commands/DeleteGroupCommand.js +3 -9
  8. package/dist-es/commands/DeleteGroupMembershipCommand.js +3 -9
  9. package/dist-es/commands/DeleteUserCommand.js +3 -9
  10. package/dist-es/commands/DescribeGroupCommand.js +3 -10
  11. package/dist-es/commands/DescribeGroupMembershipCommand.js +3 -9
  12. package/dist-es/commands/DescribeUserCommand.js +3 -10
  13. package/dist-es/commands/GetGroupIdCommand.js +3 -10
  14. package/dist-es/commands/GetGroupMembershipIdCommand.js +3 -9
  15. package/dist-es/commands/GetUserIdCommand.js +3 -10
  16. package/dist-es/commands/IsMemberInGroupsCommand.js +3 -10
  17. package/dist-es/commands/ListGroupMembershipsCommand.js +3 -9
  18. package/dist-es/commands/ListGroupMembershipsForMemberCommand.js +3 -9
  19. package/dist-es/commands/ListGroupsCommand.js +3 -10
  20. package/dist-es/commands/ListUsersCommand.js +3 -10
  21. package/dist-es/commands/UpdateGroupCommand.js +3 -9
  22. package/dist-es/commands/UpdateUserCommand.js +3 -9
  23. package/dist-es/models/models_0.js +0 -170
  24. package/dist-es/runtimeConfig.shared.js +7 -0
  25. package/dist-es/schemas/schemas_0.js +776 -0
  26. package/dist-types/IdentitystoreClient.d.ts +10 -1
  27. package/dist-types/models/models_0.d.ts +0 -88
  28. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  29. package/dist-types/runtimeConfig.d.ts +1 -0
  30. package/dist-types/runtimeConfig.native.d.ts +1 -0
  31. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  32. package/dist-types/schemas/schemas_0.d.ts +100 -0
  33. package/dist-types/ts3.4/IdentitystoreClient.d.ts +4 -0
  34. package/dist-types/ts3.4/models/models_0.d.ts +0 -48
  35. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  36. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  37. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  38. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  39. package/dist-types/ts3.4/schemas/schemas_0.d.ts +106 -0
  40. package/package.json +5 -5
  41. package/dist-es/protocols/Aws_json1_1.js +0 -707
  42. package/dist-types/protocols/Aws_json1_1.d.ts +0 -173
  43. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -233
@@ -1,707 +0,0 @@
1
- import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { IdentitystoreServiceException as __BaseException } from "../models/IdentitystoreServiceException";
5
- import { AccessDeniedException, AlternateIdentifier, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
- export const se_CreateGroupCommand = async (input, context) => {
7
- const headers = sharedHeaders("CreateGroup");
8
- let body;
9
- body = JSON.stringify(_json(input));
10
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
11
- };
12
- export const se_CreateGroupMembershipCommand = async (input, context) => {
13
- const headers = sharedHeaders("CreateGroupMembership");
14
- let body;
15
- body = JSON.stringify(_json(input));
16
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
- };
18
- export const se_CreateUserCommand = async (input, context) => {
19
- const headers = sharedHeaders("CreateUser");
20
- let body;
21
- body = JSON.stringify(_json(input));
22
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
23
- };
24
- export const se_DeleteGroupCommand = async (input, context) => {
25
- const headers = sharedHeaders("DeleteGroup");
26
- let body;
27
- body = JSON.stringify(_json(input));
28
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
- };
30
- export const se_DeleteGroupMembershipCommand = async (input, context) => {
31
- const headers = sharedHeaders("DeleteGroupMembership");
32
- let body;
33
- body = JSON.stringify(_json(input));
34
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
- };
36
- export const se_DeleteUserCommand = async (input, context) => {
37
- const headers = sharedHeaders("DeleteUser");
38
- let body;
39
- body = JSON.stringify(_json(input));
40
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
- };
42
- export const se_DescribeGroupCommand = async (input, context) => {
43
- const headers = sharedHeaders("DescribeGroup");
44
- let body;
45
- body = JSON.stringify(_json(input));
46
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
47
- };
48
- export const se_DescribeGroupMembershipCommand = async (input, context) => {
49
- const headers = sharedHeaders("DescribeGroupMembership");
50
- let body;
51
- body = JSON.stringify(_json(input));
52
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
53
- };
54
- export const se_DescribeUserCommand = async (input, context) => {
55
- const headers = sharedHeaders("DescribeUser");
56
- let body;
57
- body = JSON.stringify(_json(input));
58
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
59
- };
60
- export const se_GetGroupIdCommand = async (input, context) => {
61
- const headers = sharedHeaders("GetGroupId");
62
- let body;
63
- body = JSON.stringify(se_GetGroupIdRequest(input, context));
64
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
- };
66
- export const se_GetGroupMembershipIdCommand = async (input, context) => {
67
- const headers = sharedHeaders("GetGroupMembershipId");
68
- let body;
69
- body = JSON.stringify(_json(input));
70
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
- };
72
- export const se_GetUserIdCommand = async (input, context) => {
73
- const headers = sharedHeaders("GetUserId");
74
- let body;
75
- body = JSON.stringify(se_GetUserIdRequest(input, context));
76
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
- };
78
- export const se_IsMemberInGroupsCommand = async (input, context) => {
79
- const headers = sharedHeaders("IsMemberInGroups");
80
- let body;
81
- body = JSON.stringify(_json(input));
82
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
83
- };
84
- export const se_ListGroupMembershipsCommand = async (input, context) => {
85
- const headers = sharedHeaders("ListGroupMemberships");
86
- let body;
87
- body = JSON.stringify(_json(input));
88
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
89
- };
90
- export const se_ListGroupMembershipsForMemberCommand = async (input, context) => {
91
- const headers = sharedHeaders("ListGroupMembershipsForMember");
92
- let body;
93
- body = JSON.stringify(_json(input));
94
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
95
- };
96
- export const se_ListGroupsCommand = async (input, context) => {
97
- const headers = sharedHeaders("ListGroups");
98
- let body;
99
- body = JSON.stringify(_json(input));
100
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
101
- };
102
- export const se_ListUsersCommand = async (input, context) => {
103
- const headers = sharedHeaders("ListUsers");
104
- let body;
105
- body = JSON.stringify(_json(input));
106
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
107
- };
108
- export const se_UpdateGroupCommand = async (input, context) => {
109
- const headers = sharedHeaders("UpdateGroup");
110
- let body;
111
- body = JSON.stringify(se_UpdateGroupRequest(input, context));
112
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
- };
114
- export const se_UpdateUserCommand = async (input, context) => {
115
- const headers = sharedHeaders("UpdateUser");
116
- let body;
117
- body = JSON.stringify(se_UpdateUserRequest(input, context));
118
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
- };
120
- export const de_CreateGroupCommand = async (output, context) => {
121
- if (output.statusCode >= 300) {
122
- return de_CommandError(output, context);
123
- }
124
- const data = await parseBody(output.body, context);
125
- let contents = {};
126
- contents = _json(data);
127
- const response = {
128
- $metadata: deserializeMetadata(output),
129
- ...contents,
130
- };
131
- return response;
132
- };
133
- export const de_CreateGroupMembershipCommand = async (output, context) => {
134
- if (output.statusCode >= 300) {
135
- return de_CommandError(output, context);
136
- }
137
- const data = await parseBody(output.body, context);
138
- let contents = {};
139
- contents = _json(data);
140
- const response = {
141
- $metadata: deserializeMetadata(output),
142
- ...contents,
143
- };
144
- return response;
145
- };
146
- export const de_CreateUserCommand = async (output, context) => {
147
- if (output.statusCode >= 300) {
148
- return de_CommandError(output, context);
149
- }
150
- const data = await parseBody(output.body, context);
151
- let contents = {};
152
- contents = _json(data);
153
- const response = {
154
- $metadata: deserializeMetadata(output),
155
- ...contents,
156
- };
157
- return response;
158
- };
159
- export const de_DeleteGroupCommand = async (output, context) => {
160
- if (output.statusCode >= 300) {
161
- return de_CommandError(output, context);
162
- }
163
- const data = await parseBody(output.body, context);
164
- let contents = {};
165
- contents = _json(data);
166
- const response = {
167
- $metadata: deserializeMetadata(output),
168
- ...contents,
169
- };
170
- return response;
171
- };
172
- export const de_DeleteGroupMembershipCommand = async (output, context) => {
173
- if (output.statusCode >= 300) {
174
- return de_CommandError(output, context);
175
- }
176
- const data = await parseBody(output.body, context);
177
- let contents = {};
178
- contents = _json(data);
179
- const response = {
180
- $metadata: deserializeMetadata(output),
181
- ...contents,
182
- };
183
- return response;
184
- };
185
- export const de_DeleteUserCommand = async (output, context) => {
186
- if (output.statusCode >= 300) {
187
- return de_CommandError(output, context);
188
- }
189
- const data = await parseBody(output.body, context);
190
- let contents = {};
191
- contents = _json(data);
192
- const response = {
193
- $metadata: deserializeMetadata(output),
194
- ...contents,
195
- };
196
- return response;
197
- };
198
- export const de_DescribeGroupCommand = async (output, context) => {
199
- if (output.statusCode >= 300) {
200
- return de_CommandError(output, context);
201
- }
202
- const data = await parseBody(output.body, context);
203
- let contents = {};
204
- contents = de_DescribeGroupResponse(data, context);
205
- const response = {
206
- $metadata: deserializeMetadata(output),
207
- ...contents,
208
- };
209
- return response;
210
- };
211
- export const de_DescribeGroupMembershipCommand = async (output, context) => {
212
- if (output.statusCode >= 300) {
213
- return de_CommandError(output, context);
214
- }
215
- const data = await parseBody(output.body, context);
216
- let contents = {};
217
- contents = de_DescribeGroupMembershipResponse(data, context);
218
- const response = {
219
- $metadata: deserializeMetadata(output),
220
- ...contents,
221
- };
222
- return response;
223
- };
224
- export const de_DescribeUserCommand = async (output, context) => {
225
- if (output.statusCode >= 300) {
226
- return de_CommandError(output, context);
227
- }
228
- const data = await parseBody(output.body, context);
229
- let contents = {};
230
- contents = de_DescribeUserResponse(data, context);
231
- const response = {
232
- $metadata: deserializeMetadata(output),
233
- ...contents,
234
- };
235
- return response;
236
- };
237
- export const de_GetGroupIdCommand = async (output, context) => {
238
- if (output.statusCode >= 300) {
239
- return de_CommandError(output, context);
240
- }
241
- const data = await parseBody(output.body, context);
242
- let contents = {};
243
- contents = _json(data);
244
- const response = {
245
- $metadata: deserializeMetadata(output),
246
- ...contents,
247
- };
248
- return response;
249
- };
250
- export const de_GetGroupMembershipIdCommand = async (output, context) => {
251
- if (output.statusCode >= 300) {
252
- return de_CommandError(output, context);
253
- }
254
- const data = await parseBody(output.body, context);
255
- let contents = {};
256
- contents = _json(data);
257
- const response = {
258
- $metadata: deserializeMetadata(output),
259
- ...contents,
260
- };
261
- return response;
262
- };
263
- export const de_GetUserIdCommand = async (output, context) => {
264
- if (output.statusCode >= 300) {
265
- return de_CommandError(output, context);
266
- }
267
- const data = await parseBody(output.body, context);
268
- let contents = {};
269
- contents = _json(data);
270
- const response = {
271
- $metadata: deserializeMetadata(output),
272
- ...contents,
273
- };
274
- return response;
275
- };
276
- export const de_IsMemberInGroupsCommand = async (output, context) => {
277
- if (output.statusCode >= 300) {
278
- return de_CommandError(output, context);
279
- }
280
- const data = await parseBody(output.body, context);
281
- let contents = {};
282
- contents = _json(data);
283
- const response = {
284
- $metadata: deserializeMetadata(output),
285
- ...contents,
286
- };
287
- return response;
288
- };
289
- export const de_ListGroupMembershipsCommand = async (output, context) => {
290
- if (output.statusCode >= 300) {
291
- return de_CommandError(output, context);
292
- }
293
- const data = await parseBody(output.body, context);
294
- let contents = {};
295
- contents = de_ListGroupMembershipsResponse(data, context);
296
- const response = {
297
- $metadata: deserializeMetadata(output),
298
- ...contents,
299
- };
300
- return response;
301
- };
302
- export const de_ListGroupMembershipsForMemberCommand = async (output, context) => {
303
- if (output.statusCode >= 300) {
304
- return de_CommandError(output, context);
305
- }
306
- const data = await parseBody(output.body, context);
307
- let contents = {};
308
- contents = de_ListGroupMembershipsForMemberResponse(data, context);
309
- const response = {
310
- $metadata: deserializeMetadata(output),
311
- ...contents,
312
- };
313
- return response;
314
- };
315
- export const de_ListGroupsCommand = async (output, context) => {
316
- if (output.statusCode >= 300) {
317
- return de_CommandError(output, context);
318
- }
319
- const data = await parseBody(output.body, context);
320
- let contents = {};
321
- contents = de_ListGroupsResponse(data, context);
322
- const response = {
323
- $metadata: deserializeMetadata(output),
324
- ...contents,
325
- };
326
- return response;
327
- };
328
- export const de_ListUsersCommand = async (output, context) => {
329
- if (output.statusCode >= 300) {
330
- return de_CommandError(output, context);
331
- }
332
- const data = await parseBody(output.body, context);
333
- let contents = {};
334
- contents = de_ListUsersResponse(data, context);
335
- const response = {
336
- $metadata: deserializeMetadata(output),
337
- ...contents,
338
- };
339
- return response;
340
- };
341
- export const de_UpdateGroupCommand = async (output, context) => {
342
- if (output.statusCode >= 300) {
343
- return de_CommandError(output, context);
344
- }
345
- const data = await parseBody(output.body, context);
346
- let contents = {};
347
- contents = _json(data);
348
- const response = {
349
- $metadata: deserializeMetadata(output),
350
- ...contents,
351
- };
352
- return response;
353
- };
354
- export const de_UpdateUserCommand = async (output, context) => {
355
- if (output.statusCode >= 300) {
356
- return de_CommandError(output, context);
357
- }
358
- const data = await parseBody(output.body, context);
359
- let contents = {};
360
- contents = _json(data);
361
- const response = {
362
- $metadata: deserializeMetadata(output),
363
- ...contents,
364
- };
365
- return response;
366
- };
367
- const de_CommandError = async (output, context) => {
368
- const parsedOutput = {
369
- ...output,
370
- body: await parseErrorBody(output.body, context),
371
- };
372
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
373
- switch (errorCode) {
374
- case "AccessDeniedException":
375
- case "com.amazonaws.identitystore#AccessDeniedException":
376
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
377
- case "ConflictException":
378
- case "com.amazonaws.identitystore#ConflictException":
379
- throw await de_ConflictExceptionRes(parsedOutput, context);
380
- case "InternalServerException":
381
- case "com.amazonaws.identitystore#InternalServerException":
382
- throw await de_InternalServerExceptionRes(parsedOutput, context);
383
- case "ResourceNotFoundException":
384
- case "com.amazonaws.identitystore#ResourceNotFoundException":
385
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
386
- case "ServiceQuotaExceededException":
387
- case "com.amazonaws.identitystore#ServiceQuotaExceededException":
388
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
389
- case "ThrottlingException":
390
- case "com.amazonaws.identitystore#ThrottlingException":
391
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
392
- case "ValidationException":
393
- case "com.amazonaws.identitystore#ValidationException":
394
- throw await de_ValidationExceptionRes(parsedOutput, context);
395
- default:
396
- const parsedBody = parsedOutput.body;
397
- return throwDefaultError({
398
- output,
399
- parsedBody,
400
- errorCode,
401
- });
402
- }
403
- };
404
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
405
- const body = parsedOutput.body;
406
- const deserialized = _json(body);
407
- const exception = new AccessDeniedException({
408
- $metadata: deserializeMetadata(parsedOutput),
409
- ...deserialized,
410
- });
411
- return __decorateServiceException(exception, body);
412
- };
413
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
414
- const body = parsedOutput.body;
415
- const deserialized = _json(body);
416
- const exception = new ConflictException({
417
- $metadata: deserializeMetadata(parsedOutput),
418
- ...deserialized,
419
- });
420
- return __decorateServiceException(exception, body);
421
- };
422
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
423
- const body = parsedOutput.body;
424
- const deserialized = _json(body);
425
- const exception = new InternalServerException({
426
- $metadata: deserializeMetadata(parsedOutput),
427
- ...deserialized,
428
- });
429
- return __decorateServiceException(exception, body);
430
- };
431
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
432
- const body = parsedOutput.body;
433
- const deserialized = _json(body);
434
- const exception = new ResourceNotFoundException({
435
- $metadata: deserializeMetadata(parsedOutput),
436
- ...deserialized,
437
- });
438
- return __decorateServiceException(exception, body);
439
- };
440
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
441
- const body = parsedOutput.body;
442
- const deserialized = _json(body);
443
- const exception = new ServiceQuotaExceededException({
444
- $metadata: deserializeMetadata(parsedOutput),
445
- ...deserialized,
446
- });
447
- return __decorateServiceException(exception, body);
448
- };
449
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
450
- const body = parsedOutput.body;
451
- const deserialized = _json(body);
452
- const exception = new ThrottlingException({
453
- $metadata: deserializeMetadata(parsedOutput),
454
- ...deserialized,
455
- });
456
- return __decorateServiceException(exception, body);
457
- };
458
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
459
- const body = parsedOutput.body;
460
- const deserialized = _json(body);
461
- const exception = new ValidationException({
462
- $metadata: deserializeMetadata(parsedOutput),
463
- ...deserialized,
464
- });
465
- return __decorateServiceException(exception, body);
466
- };
467
- const se_AlternateIdentifier = (input, context) => {
468
- return AlternateIdentifier.visit(input, {
469
- ExternalId: (value) => ({ ExternalId: _json(value) }),
470
- UniqueAttribute: (value) => ({ UniqueAttribute: se_UniqueAttribute(value, context) }),
471
- _: (name, value) => ({ [name]: value }),
472
- });
473
- };
474
- const se_AttributeOperation = (input, context) => {
475
- return take(input, {
476
- AttributePath: [],
477
- AttributeValue: (_) => se_AttributeValue(_, context),
478
- });
479
- };
480
- const se_AttributeOperations = (input, context) => {
481
- return input
482
- .filter((e) => e != null)
483
- .map((entry) => {
484
- return se_AttributeOperation(entry, context);
485
- });
486
- };
487
- const se_AttributeValue = (input, context) => {
488
- return input;
489
- };
490
- const se_GetGroupIdRequest = (input, context) => {
491
- return take(input, {
492
- AlternateIdentifier: (_) => se_AlternateIdentifier(_, context),
493
- IdentityStoreId: [],
494
- });
495
- };
496
- const se_GetUserIdRequest = (input, context) => {
497
- return take(input, {
498
- AlternateIdentifier: (_) => se_AlternateIdentifier(_, context),
499
- IdentityStoreId: [],
500
- });
501
- };
502
- const se_UniqueAttribute = (input, context) => {
503
- return take(input, {
504
- AttributePath: [],
505
- AttributeValue: (_) => se_AttributeValue(_, context),
506
- });
507
- };
508
- const se_UpdateGroupRequest = (input, context) => {
509
- return take(input, {
510
- GroupId: [],
511
- IdentityStoreId: [],
512
- Operations: (_) => se_AttributeOperations(_, context),
513
- });
514
- };
515
- const se_UpdateUserRequest = (input, context) => {
516
- return take(input, {
517
- IdentityStoreId: [],
518
- Operations: (_) => se_AttributeOperations(_, context),
519
- UserId: [],
520
- });
521
- };
522
- const de_DescribeGroupMembershipResponse = (output, context) => {
523
- return take(output, {
524
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
525
- CreatedBy: __expectString,
526
- GroupId: __expectString,
527
- IdentityStoreId: __expectString,
528
- MemberId: (_) => _json(__expectUnion(_)),
529
- MembershipId: __expectString,
530
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
531
- UpdatedBy: __expectString,
532
- });
533
- };
534
- const de_DescribeGroupResponse = (output, context) => {
535
- return take(output, {
536
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
537
- CreatedBy: __expectString,
538
- Description: __expectString,
539
- DisplayName: __expectString,
540
- ExternalIds: _json,
541
- GroupId: __expectString,
542
- IdentityStoreId: __expectString,
543
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
544
- UpdatedBy: __expectString,
545
- });
546
- };
547
- const de_DescribeUserResponse = (output, context) => {
548
- return take(output, {
549
- Addresses: _json,
550
- Birthdate: __expectString,
551
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
552
- CreatedBy: __expectString,
553
- DisplayName: __expectString,
554
- Emails: _json,
555
- ExternalIds: _json,
556
- IdentityStoreId: __expectString,
557
- Locale: __expectString,
558
- Name: _json,
559
- NickName: __expectString,
560
- PhoneNumbers: _json,
561
- Photos: _json,
562
- PreferredLanguage: __expectString,
563
- ProfileUrl: __expectString,
564
- Timezone: __expectString,
565
- Title: __expectString,
566
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
567
- UpdatedBy: __expectString,
568
- UserId: __expectString,
569
- UserName: __expectString,
570
- UserStatus: __expectString,
571
- UserType: __expectString,
572
- Website: __expectString,
573
- });
574
- };
575
- const de_Group = (output, context) => {
576
- return take(output, {
577
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
578
- CreatedBy: __expectString,
579
- Description: __expectString,
580
- DisplayName: __expectString,
581
- ExternalIds: _json,
582
- GroupId: __expectString,
583
- IdentityStoreId: __expectString,
584
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
585
- UpdatedBy: __expectString,
586
- });
587
- };
588
- const de_GroupMembership = (output, context) => {
589
- return take(output, {
590
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
591
- CreatedBy: __expectString,
592
- GroupId: __expectString,
593
- IdentityStoreId: __expectString,
594
- MemberId: (_) => _json(__expectUnion(_)),
595
- MembershipId: __expectString,
596
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
597
- UpdatedBy: __expectString,
598
- });
599
- };
600
- const de_GroupMemberships = (output, context) => {
601
- const retVal = (output || [])
602
- .filter((e) => e != null)
603
- .map((entry) => {
604
- return de_GroupMembership(entry, context);
605
- });
606
- return retVal;
607
- };
608
- const de_Groups = (output, context) => {
609
- const retVal = (output || [])
610
- .filter((e) => e != null)
611
- .map((entry) => {
612
- return de_Group(entry, context);
613
- });
614
- return retVal;
615
- };
616
- const de_ListGroupMembershipsForMemberResponse = (output, context) => {
617
- return take(output, {
618
- GroupMemberships: (_) => de_GroupMemberships(_, context),
619
- NextToken: __expectString,
620
- });
621
- };
622
- const de_ListGroupMembershipsResponse = (output, context) => {
623
- return take(output, {
624
- GroupMemberships: (_) => de_GroupMemberships(_, context),
625
- NextToken: __expectString,
626
- });
627
- };
628
- const de_ListGroupsResponse = (output, context) => {
629
- return take(output, {
630
- Groups: (_) => de_Groups(_, context),
631
- NextToken: __expectString,
632
- });
633
- };
634
- const de_ListUsersResponse = (output, context) => {
635
- return take(output, {
636
- NextToken: __expectString,
637
- Users: (_) => de_Users(_, context),
638
- });
639
- };
640
- const de_User = (output, context) => {
641
- return take(output, {
642
- Addresses: _json,
643
- Birthdate: __expectString,
644
- CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
645
- CreatedBy: __expectString,
646
- DisplayName: __expectString,
647
- Emails: _json,
648
- ExternalIds: _json,
649
- IdentityStoreId: __expectString,
650
- Locale: __expectString,
651
- Name: _json,
652
- NickName: __expectString,
653
- PhoneNumbers: _json,
654
- Photos: _json,
655
- PreferredLanguage: __expectString,
656
- ProfileUrl: __expectString,
657
- Timezone: __expectString,
658
- Title: __expectString,
659
- UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
660
- UpdatedBy: __expectString,
661
- UserId: __expectString,
662
- UserName: __expectString,
663
- UserStatus: __expectString,
664
- UserType: __expectString,
665
- Website: __expectString,
666
- });
667
- };
668
- const de_Users = (output, context) => {
669
- const retVal = (output || [])
670
- .filter((e) => e != null)
671
- .map((entry) => {
672
- return de_User(entry, context);
673
- });
674
- return retVal;
675
- };
676
- const deserializeMetadata = (output) => ({
677
- httpStatusCode: output.statusCode,
678
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
679
- extendedRequestId: output.headers["x-amz-id-2"],
680
- cfId: output.headers["x-amz-cf-id"],
681
- });
682
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
683
- const throwDefaultError = withBaseException(__BaseException);
684
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
685
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
686
- const contents = {
687
- protocol,
688
- hostname,
689
- port,
690
- method: "POST",
691
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
692
- headers,
693
- };
694
- if (resolvedHostname !== undefined) {
695
- contents.hostname = resolvedHostname;
696
- }
697
- if (body !== undefined) {
698
- contents.body = body;
699
- }
700
- return new __HttpRequest(contents);
701
- };
702
- function sharedHeaders(operation) {
703
- return {
704
- "content-type": "application/x-amz-json-1.1",
705
- "x-amz-target": `AWSIdentityStore.${operation}`,
706
- };
707
- }