@wildix/xbees-users-client 1.2.5 → 1.2.7
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/Users.js +10 -10
- package/dist-cjs/commands/{AddIdentityCommand.js → LinkIdentityCommand.js} +7 -7
- package/dist-cjs/commands/{RemoveIdentityCommand.js → ListIdentitiesCommand.js} +7 -7
- package/dist-cjs/commands/{VerifyAddIdentityCommand.js → UnlinkIdentityCommand.js} +7 -7
- package/dist-cjs/commands/{UnbindWorkspaceCommand.js → UnlinkWorkspaceCommand.js} +7 -7
- package/dist-cjs/commands/VerifyIdentityCommand.js +21 -0
- package/dist-cjs/commands/index.js +5 -5
- package/dist-cjs/models/models_0.js +66 -66
- package/dist-cjs/protocols/Aws_restJson1.js +107 -106
- package/dist-es/Users.js +10 -10
- package/dist-es/commands/{AddIdentityCommand.js → LinkIdentityCommand.js} +6 -6
- package/dist-es/commands/{RemoveIdentityCommand.js → ListIdentitiesCommand.js} +6 -6
- package/dist-es/commands/UnlinkIdentityCommand.js +17 -0
- package/dist-es/commands/{UnbindWorkspaceCommand.js → UnlinkWorkspaceCommand.js} +6 -6
- package/dist-es/commands/VerifyIdentityCommand.js +17 -0
- package/dist-es/commands/index.js +5 -5
- package/dist-es/models/models_0.js +60 -60
- package/dist-es/protocols/Aws_restJson1.js +89 -88
- package/dist-types/Users.d.ts +31 -31
- package/dist-types/UsersClient.d.ts +7 -7
- package/dist-types/commands/BatchGetUsersCommand.d.ts +0 -12
- package/dist-types/commands/BatchGetUsersEmailNotificationsSettingsCommand.d.ts +0 -12
- package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +0 -12
- package/dist-types/commands/BatchGetUsersPbxLinkDataV1Command.d.ts +0 -12
- package/dist-types/commands/ChangeUserEmailCommand.d.ts +0 -12
- package/dist-types/commands/CreateBotApiKeyCommand.d.ts +1 -12
- package/dist-types/commands/CreateBotCommand.d.ts +2 -12
- package/dist-types/commands/CreateSystemBotCommand.d.ts +0 -12
- package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +0 -12
- package/dist-types/commands/DeleteBotCommand.d.ts +0 -12
- package/dist-types/commands/GetAccountCommand.d.ts +0 -10
- package/dist-types/commands/GetAppVersionCommand.d.ts +0 -12
- package/dist-types/commands/GetBotCallbackCommand.d.ts +0 -12
- package/dist-types/commands/GetBotCommand.d.ts +1 -12
- package/dist-types/commands/GetUserCommand.d.ts +0 -12
- package/dist-types/commands/GetUserEmailNotificationsSettingsCommand.d.ts +0 -12
- package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +0 -12
- package/dist-types/commands/GetUserPbxLinkSuggestionCommand.d.ts +0 -12
- package/dist-types/commands/GetUserPbxLinkSuggestionV1Command.d.ts +0 -12
- package/dist-types/commands/IntelligenceSearchCommand.d.ts +0 -12
- package/dist-types/commands/InviteCommand.d.ts +0 -12
- package/dist-types/commands/LinkIdentityCommand.d.ts +85 -0
- package/dist-types/commands/ListBotApiKeysCommand.d.ts +0 -12
- package/dist-types/commands/ListBotsCommand.d.ts +1 -12
- package/dist-types/commands/ListIdentitiesCommand.d.ts +84 -0
- package/dist-types/commands/ListWorkspacesCommand.d.ts +0 -10
- package/dist-types/commands/PartialUpdateUserEmailNotificationsSettingsCommand.d.ts +0 -12
- package/dist-types/commands/QueryColleaguesCommand.d.ts +0 -12
- package/dist-types/commands/QueryUserCommand.d.ts +0 -12
- package/dist-types/commands/QueryUsersCommand.d.ts +0 -12
- package/dist-types/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.d.ts +0 -12
- package/dist-types/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.d.ts +0 -12
- package/dist-types/commands/{RemoveIdentityCommand.d.ts → UnlinkIdentityCommand.d.ts} +20 -26
- package/dist-types/commands/{UnbindWorkspaceCommand.d.ts → UnlinkWorkspaceCommand.d.ts} +20 -26
- package/dist-types/commands/UpdateAccountCommand.d.ts +0 -6
- package/dist-types/commands/UpdateBotCallbackCommand.d.ts +0 -12
- package/dist-types/commands/UpdateBotCommand.d.ts +2 -12
- package/dist-types/commands/UpdateUserEmailNotificationsSettingsCommand.d.ts +0 -12
- package/dist-types/commands/UpdateWorkspaceCommand.d.ts +0 -8
- package/dist-types/commands/UploadPictureCommand.d.ts +0 -12
- package/dist-types/commands/UploadPictureV1Command.d.ts +0 -12
- package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +0 -12
- package/dist-types/commands/VerifyBotSecretKeyV1Command.d.ts +0 -12
- package/dist-types/commands/VerifyIdentityCommand.d.ts +86 -0
- package/dist-types/commands/index.d.ts +5 -5
- package/dist-types/models/models_0.d.ts +167 -153
- package/dist-types/protocols/Aws_restJson1.d.ts +35 -35
- package/package.json +2 -2
- package/dist-cjs/commands/ListAccountIdentitiesCommand.js +0 -21
- package/dist-es/commands/ListAccountIdentitiesCommand.js +0 -17
- package/dist-es/commands/VerifyAddIdentityCommand.js +0 -17
- package/dist-types/commands/AddIdentityCommand.d.ts +0 -93
- package/dist-types/commands/ListAccountIdentitiesCommand.d.ts +0 -94
- package/dist-types/commands/VerifyAddIdentityCommand.d.ts +0 -95
|
@@ -1,29 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_ChangeUserEmailCommand = exports.de_BatchGetUsersPbxLinkDataV1Command = exports.de_BatchGetUsersPbxLinkDataCommand = exports.de_BatchGetUsersEmailNotificationsSettingsCommand = exports.de_BatchGetUsersCommand = exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.de_CreateBotCommand = exports.de_ChangeUserEmailCommand = exports.de_BatchGetUsersPbxLinkDataV1Command = exports.de_BatchGetUsersPbxLinkDataCommand = exports.de_BatchGetUsersEmailNotificationsSettingsCommand = exports.de_BatchGetUsersCommand = exports.se_VerifyIdentityCommand = exports.se_VerifyBotSecretKeyV1Command = exports.se_VerifyBotSecretKeyCommand = exports.se_UploadPictureV1Command = exports.se_UploadPictureCommand = exports.se_UpdateWorkspaceCommand = exports.se_UpdateUserEmailNotificationsSettingsCommand = exports.se_UpdateBotCallbackCommand = exports.se_UpdateBotCommand = exports.se_UpdateAccountCommand = exports.se_UnlinkWorkspaceCommand = exports.se_UnlinkIdentityCommand = exports.se_ToggleUnreadEmailNotificationsSubscriptionCommand = exports.se_ToggleTranscriptionEmailNotificationsSubscriptionCommand = exports.se_QueryUsersCommand = exports.se_QueryUserCommand = exports.se_QueryColleaguesCommand = exports.se_PartialUpdateUserEmailNotificationsSettingsCommand = exports.se_ListWorkspacesCommand = exports.se_ListIdentitiesCommand = exports.se_ListBotsCommand = exports.se_ListBotApiKeysCommand = exports.se_LinkIdentityCommand = exports.se_InviteCommand = exports.se_IntelligenceSearchCommand = exports.se_GetUserPbxLinkSuggestionV1Command = exports.se_GetUserPbxLinkSuggestionCommand = exports.se_GetUserPbxLinkDataCommand = exports.se_GetUserEmailNotificationsSettingsCommand = exports.se_GetUserCommand = exports.se_GetBotCallbackCommand = exports.se_GetBotCommand = exports.se_GetAppVersionCommand = exports.se_GetAccountCommand = exports.se_DeleteBotApiKeyCommand = exports.se_DeleteBotCommand = exports.se_CreateSystemBotCommand = exports.se_CreateBotApiKeyCommand = exports.se_CreateBotCommand = exports.se_ChangeUserEmailCommand = exports.se_BatchGetUsersPbxLinkDataV1Command = exports.se_BatchGetUsersPbxLinkDataCommand = exports.se_BatchGetUsersEmailNotificationsSettingsCommand = exports.se_BatchGetUsersCommand = void 0;
|
|
4
|
+
exports.de_VerifyIdentityCommand = exports.de_VerifyBotSecretKeyV1Command = exports.de_VerifyBotSecretKeyCommand = exports.de_UploadPictureV1Command = exports.de_UploadPictureCommand = exports.de_UpdateWorkspaceCommand = exports.de_UpdateUserEmailNotificationsSettingsCommand = exports.de_UpdateBotCallbackCommand = exports.de_UpdateBotCommand = exports.de_UpdateAccountCommand = exports.de_UnlinkWorkspaceCommand = exports.de_UnlinkIdentityCommand = exports.de_ToggleUnreadEmailNotificationsSubscriptionCommand = exports.de_ToggleTranscriptionEmailNotificationsSubscriptionCommand = exports.de_QueryUsersCommand = exports.de_QueryUserCommand = exports.de_QueryColleaguesCommand = exports.de_PartialUpdateUserEmailNotificationsSettingsCommand = exports.de_ListWorkspacesCommand = exports.de_ListIdentitiesCommand = exports.de_ListBotsCommand = exports.de_ListBotApiKeysCommand = exports.de_LinkIdentityCommand = exports.de_InviteCommand = exports.de_IntelligenceSearchCommand = exports.de_GetUserPbxLinkSuggestionV1Command = exports.de_GetUserPbxLinkSuggestionCommand = exports.de_GetUserPbxLinkDataCommand = exports.de_GetUserEmailNotificationsSettingsCommand = exports.de_GetUserCommand = exports.de_GetBotCallbackCommand = exports.de_GetBotCommand = exports.de_GetAppVersionCommand = exports.de_GetAccountCommand = exports.de_DeleteBotApiKeyCommand = exports.de_DeleteBotCommand = exports.de_CreateSystemBotCommand = exports.de_CreateBotApiKeyCommand = void 0;
|
|
5
5
|
const UsersServiceException_1 = require("../models/UsersServiceException");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const core_1 = require("@aws-sdk/core");
|
|
8
8
|
const core_2 = require("@smithy/core");
|
|
9
9
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
10
|
-
const se_AddIdentityCommand = async (input, context) => {
|
|
11
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
12
|
-
const headers = {
|
|
13
|
-
'content-type': 'application/json',
|
|
14
|
-
};
|
|
15
|
-
b.bp("/v2/users/accounts/{accountId}/identities");
|
|
16
|
-
b.p('accountId', () => input.accountId, '{accountId}', false);
|
|
17
|
-
let body;
|
|
18
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
19
|
-
'identity': [],
|
|
20
|
-
}));
|
|
21
|
-
b.m("POST")
|
|
22
|
-
.h(headers)
|
|
23
|
-
.b(body);
|
|
24
|
-
return b.build();
|
|
25
|
-
};
|
|
26
|
-
exports.se_AddIdentityCommand = se_AddIdentityCommand;
|
|
27
10
|
const se_BatchGetUsersCommand = async (input, context) => {
|
|
28
11
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
29
12
|
const headers = {
|
|
@@ -119,6 +102,7 @@ const se_CreateBotCommand = async (input, context) => {
|
|
|
119
102
|
'access': [],
|
|
120
103
|
'callback': _ => se_BotCallback(_, context),
|
|
121
104
|
'category': [],
|
|
105
|
+
'groupId': [],
|
|
122
106
|
'name': [],
|
|
123
107
|
'picture': [],
|
|
124
108
|
'searchable': [],
|
|
@@ -367,18 +351,23 @@ const se_InviteCommand = async (input, context) => {
|
|
|
367
351
|
return b.build();
|
|
368
352
|
};
|
|
369
353
|
exports.se_InviteCommand = se_InviteCommand;
|
|
370
|
-
const
|
|
354
|
+
const se_LinkIdentityCommand = async (input, context) => {
|
|
371
355
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
372
|
-
const headers = {
|
|
356
|
+
const headers = {
|
|
357
|
+
'content-type': 'application/json',
|
|
358
|
+
};
|
|
373
359
|
b.bp("/v2/users/accounts/{accountId}/identities");
|
|
374
360
|
b.p('accountId', () => input.accountId, '{accountId}', false);
|
|
375
361
|
let body;
|
|
376
|
-
|
|
362
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
363
|
+
'identity': [],
|
|
364
|
+
}));
|
|
365
|
+
b.m("POST")
|
|
377
366
|
.h(headers)
|
|
378
367
|
.b(body);
|
|
379
368
|
return b.build();
|
|
380
369
|
};
|
|
381
|
-
exports.
|
|
370
|
+
exports.se_LinkIdentityCommand = se_LinkIdentityCommand;
|
|
382
371
|
const se_ListBotApiKeysCommand = async (input, context) => {
|
|
383
372
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
384
373
|
const headers = {};
|
|
@@ -410,6 +399,18 @@ const se_ListBotsCommand = async (input, context) => {
|
|
|
410
399
|
return b.build();
|
|
411
400
|
};
|
|
412
401
|
exports.se_ListBotsCommand = se_ListBotsCommand;
|
|
402
|
+
const se_ListIdentitiesCommand = async (input, context) => {
|
|
403
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
404
|
+
const headers = {};
|
|
405
|
+
b.bp("/v2/users/accounts/{accountId}/identities");
|
|
406
|
+
b.p('accountId', () => input.accountId, '{accountId}', false);
|
|
407
|
+
let body;
|
|
408
|
+
b.m("GET")
|
|
409
|
+
.h(headers)
|
|
410
|
+
.b(body);
|
|
411
|
+
return b.build();
|
|
412
|
+
};
|
|
413
|
+
exports.se_ListIdentitiesCommand = se_ListIdentitiesCommand;
|
|
413
414
|
const se_ListWorkspacesCommand = async (input, context) => {
|
|
414
415
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
415
416
|
const headers = {};
|
|
@@ -495,19 +496,6 @@ const se_QueryUsersCommand = async (input, context) => {
|
|
|
495
496
|
return b.build();
|
|
496
497
|
};
|
|
497
498
|
exports.se_QueryUsersCommand = se_QueryUsersCommand;
|
|
498
|
-
const se_RemoveIdentityCommand = async (input, context) => {
|
|
499
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
500
|
-
const headers = {};
|
|
501
|
-
b.bp("/v2/users/accounts/{accountId}/identities/{identity}");
|
|
502
|
-
b.p('accountId', () => input.accountId, '{accountId}', false);
|
|
503
|
-
b.p('identity', () => input.identity, '{identity}', false);
|
|
504
|
-
let body;
|
|
505
|
-
b.m("DELETE")
|
|
506
|
-
.h(headers)
|
|
507
|
-
.b(body);
|
|
508
|
-
return b.build();
|
|
509
|
-
};
|
|
510
|
-
exports.se_RemoveIdentityCommand = se_RemoveIdentityCommand;
|
|
511
499
|
const se_ToggleTranscriptionEmailNotificationsSubscriptionCommand = async (input, context) => {
|
|
512
500
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
513
501
|
const headers = {
|
|
@@ -542,7 +530,20 @@ const se_ToggleUnreadEmailNotificationsSubscriptionCommand = async (input, conte
|
|
|
542
530
|
return b.build();
|
|
543
531
|
};
|
|
544
532
|
exports.se_ToggleUnreadEmailNotificationsSubscriptionCommand = se_ToggleUnreadEmailNotificationsSubscriptionCommand;
|
|
545
|
-
const
|
|
533
|
+
const se_UnlinkIdentityCommand = async (input, context) => {
|
|
534
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
535
|
+
const headers = {};
|
|
536
|
+
b.bp("/v2/users/accounts/{accountId}/identities/{identity}");
|
|
537
|
+
b.p('accountId', () => input.accountId, '{accountId}', false);
|
|
538
|
+
b.p('identity', () => input.identity, '{identity}', false);
|
|
539
|
+
let body;
|
|
540
|
+
b.m("DELETE")
|
|
541
|
+
.h(headers)
|
|
542
|
+
.b(body);
|
|
543
|
+
return b.build();
|
|
544
|
+
};
|
|
545
|
+
exports.se_UnlinkIdentityCommand = se_UnlinkIdentityCommand;
|
|
546
|
+
const se_UnlinkWorkspaceCommand = async (input, context) => {
|
|
546
547
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
547
548
|
const headers = {};
|
|
548
549
|
b.bp("/v2/users/accounts/{accountId}/workspaces/{workspaceId}");
|
|
@@ -554,7 +555,7 @@ const se_UnbindWorkspaceCommand = async (input, context) => {
|
|
|
554
555
|
.b(body);
|
|
555
556
|
return b.build();
|
|
556
557
|
};
|
|
557
|
-
exports.
|
|
558
|
+
exports.se_UnlinkWorkspaceCommand = se_UnlinkWorkspaceCommand;
|
|
558
559
|
const se_UpdateAccountCommand = async (input, context) => {
|
|
559
560
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
560
561
|
const headers = {
|
|
@@ -587,6 +588,7 @@ const se_UpdateBotCommand = async (input, context) => {
|
|
|
587
588
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
588
589
|
'access': [],
|
|
589
590
|
'category': [],
|
|
591
|
+
'groupId': [],
|
|
590
592
|
'name': [],
|
|
591
593
|
'picture': [],
|
|
592
594
|
'searchable': [],
|
|
@@ -688,31 +690,28 @@ const se_UploadPictureV1Command = async (input, context) => {
|
|
|
688
690
|
return b.build();
|
|
689
691
|
};
|
|
690
692
|
exports.se_UploadPictureV1Command = se_UploadPictureV1Command;
|
|
691
|
-
const
|
|
693
|
+
const se_VerifyBotSecretKeyCommand = async (input, context) => {
|
|
692
694
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
693
695
|
const headers = {
|
|
694
696
|
'content-type': 'application/json',
|
|
695
697
|
};
|
|
696
|
-
b.bp("/v2/users/
|
|
697
|
-
b.p('accountId', () => input.accountId, '{accountId}', false);
|
|
698
|
+
b.bp("/v2/users/verify-bot-secret-key");
|
|
698
699
|
let body;
|
|
699
700
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
700
|
-
'
|
|
701
|
-
'otp': [],
|
|
702
|
-
'primaryOtp': [],
|
|
701
|
+
'secret': [],
|
|
703
702
|
}));
|
|
704
703
|
b.m("POST")
|
|
705
704
|
.h(headers)
|
|
706
705
|
.b(body);
|
|
707
706
|
return b.build();
|
|
708
707
|
};
|
|
709
|
-
exports.
|
|
710
|
-
const
|
|
708
|
+
exports.se_VerifyBotSecretKeyCommand = se_VerifyBotSecretKeyCommand;
|
|
709
|
+
const se_VerifyBotSecretKeyV1Command = async (input, context) => {
|
|
711
710
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
712
711
|
const headers = {
|
|
713
712
|
'content-type': 'application/json',
|
|
714
713
|
};
|
|
715
|
-
b.bp("/v2/users/
|
|
714
|
+
b.bp("/v2/users/auth/VerifyBotSecretKey");
|
|
716
715
|
let body;
|
|
717
716
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
718
717
|
'secret': [],
|
|
@@ -722,38 +721,25 @@ const se_VerifyBotSecretKeyCommand = async (input, context) => {
|
|
|
722
721
|
.b(body);
|
|
723
722
|
return b.build();
|
|
724
723
|
};
|
|
725
|
-
exports.
|
|
726
|
-
const
|
|
724
|
+
exports.se_VerifyBotSecretKeyV1Command = se_VerifyBotSecretKeyV1Command;
|
|
725
|
+
const se_VerifyIdentityCommand = async (input, context) => {
|
|
727
726
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
728
727
|
const headers = {
|
|
729
728
|
'content-type': 'application/json',
|
|
730
729
|
};
|
|
731
|
-
b.bp("/v2/users/
|
|
730
|
+
b.bp("/v2/users/accounts/{accountId}/identities/verify");
|
|
731
|
+
b.p('accountId', () => input.accountId, '{accountId}', false);
|
|
732
732
|
let body;
|
|
733
733
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
734
|
-
'
|
|
734
|
+
'identity': [],
|
|
735
|
+
'otp': [],
|
|
735
736
|
}));
|
|
736
737
|
b.m("POST")
|
|
737
738
|
.h(headers)
|
|
738
739
|
.b(body);
|
|
739
740
|
return b.build();
|
|
740
741
|
};
|
|
741
|
-
exports.
|
|
742
|
-
const de_AddIdentityCommand = async (output, context) => {
|
|
743
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
744
|
-
return de_CommandError(output, context);
|
|
745
|
-
}
|
|
746
|
-
const contents = (0, smithy_client_1.map)({
|
|
747
|
-
$metadata: deserializeMetadata(output),
|
|
748
|
-
});
|
|
749
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
750
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
751
|
-
'identity': smithy_client_1._json,
|
|
752
|
-
});
|
|
753
|
-
Object.assign(contents, doc);
|
|
754
|
-
return contents;
|
|
755
|
-
};
|
|
756
|
-
exports.de_AddIdentityCommand = de_AddIdentityCommand;
|
|
742
|
+
exports.se_VerifyIdentityCommand = se_VerifyIdentityCommand;
|
|
757
743
|
const de_BatchGetUsersCommand = async (output, context) => {
|
|
758
744
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
759
745
|
return de_CommandError(output, context);
|
|
@@ -1064,7 +1050,7 @@ const de_InviteCommand = async (output, context) => {
|
|
|
1064
1050
|
return contents;
|
|
1065
1051
|
};
|
|
1066
1052
|
exports.de_InviteCommand = de_InviteCommand;
|
|
1067
|
-
const
|
|
1053
|
+
const de_LinkIdentityCommand = async (output, context) => {
|
|
1068
1054
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1069
1055
|
return de_CommandError(output, context);
|
|
1070
1056
|
}
|
|
@@ -1073,12 +1059,12 @@ const de_ListAccountIdentitiesCommand = async (output, context) => {
|
|
|
1073
1059
|
});
|
|
1074
1060
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1075
1061
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1076
|
-
'
|
|
1062
|
+
'identity': smithy_client_1._json,
|
|
1077
1063
|
});
|
|
1078
1064
|
Object.assign(contents, doc);
|
|
1079
1065
|
return contents;
|
|
1080
1066
|
};
|
|
1081
|
-
exports.
|
|
1067
|
+
exports.de_LinkIdentityCommand = de_LinkIdentityCommand;
|
|
1082
1068
|
const de_ListBotApiKeysCommand = async (output, context) => {
|
|
1083
1069
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1084
1070
|
return de_CommandError(output, context);
|
|
@@ -1109,6 +1095,21 @@ const de_ListBotsCommand = async (output, context) => {
|
|
|
1109
1095
|
return contents;
|
|
1110
1096
|
};
|
|
1111
1097
|
exports.de_ListBotsCommand = de_ListBotsCommand;
|
|
1098
|
+
const de_ListIdentitiesCommand = async (output, context) => {
|
|
1099
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1100
|
+
return de_CommandError(output, context);
|
|
1101
|
+
}
|
|
1102
|
+
const contents = (0, smithy_client_1.map)({
|
|
1103
|
+
$metadata: deserializeMetadata(output),
|
|
1104
|
+
});
|
|
1105
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1106
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1107
|
+
'identities': smithy_client_1._json,
|
|
1108
|
+
});
|
|
1109
|
+
Object.assign(contents, doc);
|
|
1110
|
+
return contents;
|
|
1111
|
+
};
|
|
1112
|
+
exports.de_ListIdentitiesCommand = de_ListIdentitiesCommand;
|
|
1112
1113
|
const de_ListWorkspacesCommand = async (output, context) => {
|
|
1113
1114
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1114
1115
|
return de_CommandError(output, context);
|
|
@@ -1184,7 +1185,7 @@ const de_QueryUsersCommand = async (output, context) => {
|
|
|
1184
1185
|
return contents;
|
|
1185
1186
|
};
|
|
1186
1187
|
exports.de_QueryUsersCommand = de_QueryUsersCommand;
|
|
1187
|
-
const
|
|
1188
|
+
const de_ToggleTranscriptionEmailNotificationsSubscriptionCommand = async (output, context) => {
|
|
1188
1189
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1189
1190
|
return de_CommandError(output, context);
|
|
1190
1191
|
}
|
|
@@ -1194,8 +1195,8 @@ const de_RemoveIdentityCommand = async (output, context) => {
|
|
|
1194
1195
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1195
1196
|
return contents;
|
|
1196
1197
|
};
|
|
1197
|
-
exports.
|
|
1198
|
-
const
|
|
1198
|
+
exports.de_ToggleTranscriptionEmailNotificationsSubscriptionCommand = de_ToggleTranscriptionEmailNotificationsSubscriptionCommand;
|
|
1199
|
+
const de_ToggleUnreadEmailNotificationsSubscriptionCommand = async (output, context) => {
|
|
1199
1200
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1200
1201
|
return de_CommandError(output, context);
|
|
1201
1202
|
}
|
|
@@ -1205,8 +1206,8 @@ const de_ToggleTranscriptionEmailNotificationsSubscriptionCommand = async (outpu
|
|
|
1205
1206
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1206
1207
|
return contents;
|
|
1207
1208
|
};
|
|
1208
|
-
exports.
|
|
1209
|
-
const
|
|
1209
|
+
exports.de_ToggleUnreadEmailNotificationsSubscriptionCommand = de_ToggleUnreadEmailNotificationsSubscriptionCommand;
|
|
1210
|
+
const de_UnlinkIdentityCommand = async (output, context) => {
|
|
1210
1211
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1211
1212
|
return de_CommandError(output, context);
|
|
1212
1213
|
}
|
|
@@ -1216,8 +1217,8 @@ const de_ToggleUnreadEmailNotificationsSubscriptionCommand = async (output, cont
|
|
|
1216
1217
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1217
1218
|
return contents;
|
|
1218
1219
|
};
|
|
1219
|
-
exports.
|
|
1220
|
-
const
|
|
1220
|
+
exports.de_UnlinkIdentityCommand = de_UnlinkIdentityCommand;
|
|
1221
|
+
const de_UnlinkWorkspaceCommand = async (output, context) => {
|
|
1221
1222
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1222
1223
|
return de_CommandError(output, context);
|
|
1223
1224
|
}
|
|
@@ -1227,7 +1228,7 @@ const de_UnbindWorkspaceCommand = async (output, context) => {
|
|
|
1227
1228
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1228
1229
|
return contents;
|
|
1229
1230
|
};
|
|
1230
|
-
exports.
|
|
1231
|
+
exports.de_UnlinkWorkspaceCommand = de_UnlinkWorkspaceCommand;
|
|
1231
1232
|
const de_UpdateAccountCommand = async (output, context) => {
|
|
1232
1233
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1233
1234
|
return de_CommandError(output, context);
|
|
@@ -1333,7 +1334,7 @@ const de_UploadPictureV1Command = async (output, context) => {
|
|
|
1333
1334
|
return contents;
|
|
1334
1335
|
};
|
|
1335
1336
|
exports.de_UploadPictureV1Command = de_UploadPictureV1Command;
|
|
1336
|
-
const
|
|
1337
|
+
const de_VerifyBotSecretKeyCommand = async (output, context) => {
|
|
1337
1338
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1338
1339
|
return de_CommandError(output, context);
|
|
1339
1340
|
}
|
|
@@ -1342,13 +1343,15 @@ const de_VerifyAddIdentityCommand = async (output, context) => {
|
|
|
1342
1343
|
});
|
|
1343
1344
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1344
1345
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1345
|
-
'
|
|
1346
|
+
'company': smithy_client_1.expectString,
|
|
1347
|
+
'id': smithy_client_1.expectString,
|
|
1348
|
+
'name': smithy_client_1.expectString,
|
|
1346
1349
|
});
|
|
1347
1350
|
Object.assign(contents, doc);
|
|
1348
1351
|
return contents;
|
|
1349
1352
|
};
|
|
1350
|
-
exports.
|
|
1351
|
-
const
|
|
1353
|
+
exports.de_VerifyBotSecretKeyCommand = de_VerifyBotSecretKeyCommand;
|
|
1354
|
+
const de_VerifyBotSecretKeyV1Command = async (output, context) => {
|
|
1352
1355
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1353
1356
|
return de_CommandError(output, context);
|
|
1354
1357
|
}
|
|
@@ -1364,8 +1367,8 @@ const de_VerifyBotSecretKeyCommand = async (output, context) => {
|
|
|
1364
1367
|
Object.assign(contents, doc);
|
|
1365
1368
|
return contents;
|
|
1366
1369
|
};
|
|
1367
|
-
exports.
|
|
1368
|
-
const
|
|
1370
|
+
exports.de_VerifyBotSecretKeyV1Command = de_VerifyBotSecretKeyV1Command;
|
|
1371
|
+
const de_VerifyIdentityCommand = async (output, context) => {
|
|
1369
1372
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1370
1373
|
return de_CommandError(output, context);
|
|
1371
1374
|
}
|
|
@@ -1374,14 +1377,12 @@ const de_VerifyBotSecretKeyV1Command = async (output, context) => {
|
|
|
1374
1377
|
});
|
|
1375
1378
|
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1376
1379
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1377
|
-
'
|
|
1378
|
-
'id': smithy_client_1.expectString,
|
|
1379
|
-
'name': smithy_client_1.expectString,
|
|
1380
|
+
'identity': smithy_client_1._json,
|
|
1380
1381
|
});
|
|
1381
1382
|
Object.assign(contents, doc);
|
|
1382
1383
|
return contents;
|
|
1383
1384
|
};
|
|
1384
|
-
exports.
|
|
1385
|
+
exports.de_VerifyIdentityCommand = de_VerifyIdentityCommand;
|
|
1385
1386
|
const de_CommandError = async (output, context) => {
|
|
1386
1387
|
const parsedOutput = {
|
|
1387
1388
|
...output,
|
|
@@ -1389,30 +1390,12 @@ const de_CommandError = async (output, context) => {
|
|
|
1389
1390
|
};
|
|
1390
1391
|
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1391
1392
|
switch (errorCode) {
|
|
1392
|
-
case "AccountNotFoundException":
|
|
1393
|
-
case "wildix.xbees.users#AccountNotFoundException":
|
|
1394
|
-
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
1395
|
-
case "CannotRemovePrimaryIdentityException":
|
|
1396
|
-
case "wildix.xbees.users#CannotRemovePrimaryIdentityException":
|
|
1397
|
-
throw await de_CannotRemovePrimaryIdentityExceptionRes(parsedOutput, context);
|
|
1398
|
-
case "CannotUnbindDefaultWorkspaceException":
|
|
1399
|
-
case "wildix.xbees.users#CannotUnbindDefaultWorkspaceException":
|
|
1400
|
-
throw await de_CannotUnbindDefaultWorkspaceExceptionRes(parsedOutput, context);
|
|
1401
1393
|
case "ForbiddenException":
|
|
1402
1394
|
case "smithy.framework#ForbiddenException":
|
|
1403
1395
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1404
|
-
case "IdentityAlreadyLinkedException":
|
|
1405
|
-
case "wildix.xbees.users#IdentityAlreadyLinkedException":
|
|
1406
|
-
throw await de_IdentityAlreadyLinkedExceptionRes(parsedOutput, context);
|
|
1407
|
-
case "IdentityNotFoundException":
|
|
1408
|
-
case "wildix.xbees.users#IdentityNotFoundException":
|
|
1409
|
-
throw await de_IdentityNotFoundExceptionRes(parsedOutput, context);
|
|
1410
1396
|
case "ValidationException":
|
|
1411
1397
|
case "smithy.framework#ValidationException":
|
|
1412
1398
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1413
|
-
case "WorkspaceNotFoundException":
|
|
1414
|
-
case "wildix.xbees.users#WorkspaceNotFoundException":
|
|
1415
|
-
throw await de_WorkspaceNotFoundExceptionRes(parsedOutput, context);
|
|
1416
1399
|
case "UserCompanyNotValidException":
|
|
1417
1400
|
case "wildix.xbees.users#UserCompanyNotValidException":
|
|
1418
1401
|
throw await de_UserCompanyNotValidExceptionRes(parsedOutput, context);
|
|
@@ -1425,9 +1408,27 @@ const de_CommandError = async (output, context) => {
|
|
|
1425
1408
|
case "BotApiKeyNotFoundException":
|
|
1426
1409
|
case "wildix.xbees.users#BotApiKeyNotFoundException":
|
|
1427
1410
|
throw await de_BotApiKeyNotFoundExceptionRes(parsedOutput, context);
|
|
1411
|
+
case "AccountNotFoundException":
|
|
1412
|
+
case "wildix.xbees.users#AccountNotFoundException":
|
|
1413
|
+
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
1414
|
+
case "IdentityAlreadyLinkedException":
|
|
1415
|
+
case "wildix.xbees.users#IdentityAlreadyLinkedException":
|
|
1416
|
+
throw await de_IdentityAlreadyLinkedExceptionRes(parsedOutput, context);
|
|
1428
1417
|
case "UserQueryPredicateNotMetException":
|
|
1429
1418
|
case "wildix.xbees.users#UserQueryPredicateNotMetException":
|
|
1430
1419
|
throw await de_UserQueryPredicateNotMetExceptionRes(parsedOutput, context);
|
|
1420
|
+
case "CannotRemovePrimaryIdentityException":
|
|
1421
|
+
case "wildix.xbees.users#CannotRemovePrimaryIdentityException":
|
|
1422
|
+
throw await de_CannotRemovePrimaryIdentityExceptionRes(parsedOutput, context);
|
|
1423
|
+
case "IdentityNotFoundException":
|
|
1424
|
+
case "wildix.xbees.users#IdentityNotFoundException":
|
|
1425
|
+
throw await de_IdentityNotFoundExceptionRes(parsedOutput, context);
|
|
1426
|
+
case "CannotUnbindDefaultWorkspaceException":
|
|
1427
|
+
case "wildix.xbees.users#CannotUnbindDefaultWorkspaceException":
|
|
1428
|
+
throw await de_CannotUnbindDefaultWorkspaceExceptionRes(parsedOutput, context);
|
|
1429
|
+
case "WorkspaceNotFoundException":
|
|
1430
|
+
case "wildix.xbees.users#WorkspaceNotFoundException":
|
|
1431
|
+
throw await de_WorkspaceNotFoundExceptionRes(parsedOutput, context);
|
|
1431
1432
|
case "BotSecretKeyNotValidException":
|
|
1432
1433
|
case "wildix.xbees.users#BotSecretKeyNotValidException":
|
|
1433
1434
|
throw await de_BotSecretKeyNotValidExceptionRes(parsedOutput, context);
|
package/dist-es/Users.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { UsersClient, } from "./UsersClient";
|
|
2
|
-
import { AddIdentityCommand, } from "./commands/AddIdentityCommand";
|
|
3
2
|
import { BatchGetUsersCommand, } from "./commands/BatchGetUsersCommand";
|
|
4
3
|
import { BatchGetUsersEmailNotificationsSettingsCommand, } from "./commands/BatchGetUsersEmailNotificationsSettingsCommand";
|
|
5
4
|
import { BatchGetUsersPbxLinkDataCommand, } from "./commands/BatchGetUsersPbxLinkDataCommand";
|
|
@@ -21,18 +20,19 @@ import { GetUserPbxLinkSuggestionCommand, } from "./commands/GetUserPbxLinkSugge
|
|
|
21
20
|
import { GetUserPbxLinkSuggestionV1Command, } from "./commands/GetUserPbxLinkSuggestionV1Command";
|
|
22
21
|
import { IntelligenceSearchCommand, } from "./commands/IntelligenceSearchCommand";
|
|
23
22
|
import { InviteCommand, } from "./commands/InviteCommand";
|
|
24
|
-
import {
|
|
23
|
+
import { LinkIdentityCommand, } from "./commands/LinkIdentityCommand";
|
|
25
24
|
import { ListBotApiKeysCommand, } from "./commands/ListBotApiKeysCommand";
|
|
26
25
|
import { ListBotsCommand, } from "./commands/ListBotsCommand";
|
|
26
|
+
import { ListIdentitiesCommand, } from "./commands/ListIdentitiesCommand";
|
|
27
27
|
import { ListWorkspacesCommand, } from "./commands/ListWorkspacesCommand";
|
|
28
28
|
import { PartialUpdateUserEmailNotificationsSettingsCommand, } from "./commands/PartialUpdateUserEmailNotificationsSettingsCommand";
|
|
29
29
|
import { QueryColleaguesCommand, } from "./commands/QueryColleaguesCommand";
|
|
30
30
|
import { QueryUserCommand, } from "./commands/QueryUserCommand";
|
|
31
31
|
import { QueryUsersCommand, } from "./commands/QueryUsersCommand";
|
|
32
|
-
import { RemoveIdentityCommand, } from "./commands/RemoveIdentityCommand";
|
|
33
32
|
import { ToggleTranscriptionEmailNotificationsSubscriptionCommand, } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
|
|
34
33
|
import { ToggleUnreadEmailNotificationsSubscriptionCommand, } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
|
|
35
|
-
import {
|
|
34
|
+
import { UnlinkIdentityCommand, } from "./commands/UnlinkIdentityCommand";
|
|
35
|
+
import { UnlinkWorkspaceCommand, } from "./commands/UnlinkWorkspaceCommand";
|
|
36
36
|
import { UpdateAccountCommand, } from "./commands/UpdateAccountCommand";
|
|
37
37
|
import { UpdateBotCallbackCommand, } from "./commands/UpdateBotCallbackCommand";
|
|
38
38
|
import { UpdateBotCommand, } from "./commands/UpdateBotCommand";
|
|
@@ -40,12 +40,11 @@ import { UpdateUserEmailNotificationsSettingsCommand, } from "./commands/UpdateU
|
|
|
40
40
|
import { UpdateWorkspaceCommand, } from "./commands/UpdateWorkspaceCommand";
|
|
41
41
|
import { UploadPictureCommand, } from "./commands/UploadPictureCommand";
|
|
42
42
|
import { UploadPictureV1Command, } from "./commands/UploadPictureV1Command";
|
|
43
|
-
import { VerifyAddIdentityCommand, } from "./commands/VerifyAddIdentityCommand";
|
|
44
43
|
import { VerifyBotSecretKeyCommand, } from "./commands/VerifyBotSecretKeyCommand";
|
|
45
44
|
import { VerifyBotSecretKeyV1Command, } from "./commands/VerifyBotSecretKeyV1Command";
|
|
45
|
+
import { VerifyIdentityCommand, } from "./commands/VerifyIdentityCommand";
|
|
46
46
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
47
47
|
const commands = {
|
|
48
|
-
AddIdentityCommand,
|
|
49
48
|
BatchGetUsersCommand,
|
|
50
49
|
BatchGetUsersEmailNotificationsSettingsCommand,
|
|
51
50
|
BatchGetUsersPbxLinkDataCommand,
|
|
@@ -67,18 +66,19 @@ const commands = {
|
|
|
67
66
|
GetUserPbxLinkSuggestionV1Command,
|
|
68
67
|
IntelligenceSearchCommand,
|
|
69
68
|
InviteCommand,
|
|
70
|
-
|
|
69
|
+
LinkIdentityCommand,
|
|
71
70
|
ListBotApiKeysCommand,
|
|
72
71
|
ListBotsCommand,
|
|
72
|
+
ListIdentitiesCommand,
|
|
73
73
|
ListWorkspacesCommand,
|
|
74
74
|
PartialUpdateUserEmailNotificationsSettingsCommand,
|
|
75
75
|
QueryColleaguesCommand,
|
|
76
76
|
QueryUserCommand,
|
|
77
77
|
QueryUsersCommand,
|
|
78
|
-
RemoveIdentityCommand,
|
|
79
78
|
ToggleTranscriptionEmailNotificationsSubscriptionCommand,
|
|
80
79
|
ToggleUnreadEmailNotificationsSubscriptionCommand,
|
|
81
|
-
|
|
80
|
+
UnlinkIdentityCommand,
|
|
81
|
+
UnlinkWorkspaceCommand,
|
|
82
82
|
UpdateAccountCommand,
|
|
83
83
|
UpdateBotCommand,
|
|
84
84
|
UpdateBotCallbackCommand,
|
|
@@ -86,9 +86,9 @@ const commands = {
|
|
|
86
86
|
UpdateWorkspaceCommand,
|
|
87
87
|
UploadPictureCommand,
|
|
88
88
|
UploadPictureV1Command,
|
|
89
|
-
VerifyAddIdentityCommand,
|
|
90
89
|
VerifyBotSecretKeyCommand,
|
|
91
90
|
VerifyBotSecretKeyV1Command,
|
|
91
|
+
VerifyIdentityCommand,
|
|
92
92
|
};
|
|
93
93
|
export class Users extends UsersClient {
|
|
94
94
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { de_LinkIdentityCommand, se_LinkIdentityCommand, } from "../protocols/Aws_restJson1";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
export { $Command };
|
|
5
|
-
export class
|
|
5
|
+
export class LinkIdentityCommand extends $Command.classBuilder()
|
|
6
6
|
.m(function (Command, cs, config, o) {
|
|
7
7
|
return [
|
|
8
8
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
9
|
];
|
|
10
10
|
})
|
|
11
|
-
.s("Users", "
|
|
12
|
-
.n("UsersClient", "
|
|
11
|
+
.s("Users", "LinkIdentity", {})
|
|
12
|
+
.n("UsersClient", "LinkIdentityCommand")
|
|
13
13
|
.f(void 0, void 0)
|
|
14
|
-
.ser(
|
|
15
|
-
.de(
|
|
14
|
+
.ser(se_LinkIdentityCommand)
|
|
15
|
+
.de(de_LinkIdentityCommand)
|
|
16
16
|
.build() {
|
|
17
17
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { de_ListIdentitiesCommand, se_ListIdentitiesCommand, } from "../protocols/Aws_restJson1";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
export { $Command };
|
|
5
|
-
export class
|
|
5
|
+
export class ListIdentitiesCommand extends $Command.classBuilder()
|
|
6
6
|
.m(function (Command, cs, config, o) {
|
|
7
7
|
return [
|
|
8
8
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
9
|
];
|
|
10
10
|
})
|
|
11
|
-
.s("Users", "
|
|
12
|
-
.n("UsersClient", "
|
|
11
|
+
.s("Users", "ListIdentities", {})
|
|
12
|
+
.n("UsersClient", "ListIdentitiesCommand")
|
|
13
13
|
.f(void 0, void 0)
|
|
14
|
-
.ser(
|
|
15
|
-
.de(
|
|
14
|
+
.ser(se_ListIdentitiesCommand)
|
|
15
|
+
.de(de_ListIdentitiesCommand)
|
|
16
16
|
.build() {
|
|
17
17
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_UnlinkIdentityCommand, se_UnlinkIdentityCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class UnlinkIdentityCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("Users", "UnlinkIdentity", {})
|
|
12
|
+
.n("UsersClient", "UnlinkIdentityCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_UnlinkIdentityCommand)
|
|
15
|
+
.de(de_UnlinkIdentityCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { de_UnlinkWorkspaceCommand, se_UnlinkWorkspaceCommand, } from "../protocols/Aws_restJson1";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
4
|
export { $Command };
|
|
5
|
-
export class
|
|
5
|
+
export class UnlinkWorkspaceCommand extends $Command.classBuilder()
|
|
6
6
|
.m(function (Command, cs, config, o) {
|
|
7
7
|
return [
|
|
8
8
|
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
9
|
];
|
|
10
10
|
})
|
|
11
|
-
.s("Users", "
|
|
12
|
-
.n("UsersClient", "
|
|
11
|
+
.s("Users", "UnlinkWorkspace", {})
|
|
12
|
+
.n("UsersClient", "UnlinkWorkspaceCommand")
|
|
13
13
|
.f(void 0, void 0)
|
|
14
|
-
.ser(
|
|
15
|
-
.de(
|
|
14
|
+
.ser(se_UnlinkWorkspaceCommand)
|
|
15
|
+
.de(de_UnlinkWorkspaceCommand)
|
|
16
16
|
.build() {
|
|
17
17
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_VerifyIdentityCommand, se_VerifyIdentityCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class VerifyIdentityCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("Users", "VerifyIdentity", {})
|
|
12
|
+
.n("UsersClient", "VerifyIdentityCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_VerifyIdentityCommand)
|
|
15
|
+
.de(de_VerifyIdentityCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|