@wildix/xbees-users-client 1.0.54 → 1.2.2

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 (78) hide show
  1. package/dist-cjs/Users.js +20 -0
  2. package/dist-cjs/commands/AddIdentityCommand.js +21 -0
  3. package/dist-cjs/commands/GetAccountCommand.js +21 -0
  4. package/dist-cjs/commands/InviteCommand.js +21 -0
  5. package/dist-cjs/commands/ListAccountIdentitiesCommand.js +21 -0
  6. package/dist-cjs/commands/ListWorkspacesCommand.js +21 -0
  7. package/dist-cjs/commands/RemoveIdentityCommand.js +21 -0
  8. package/dist-cjs/commands/UnbindWorkspaceCommand.js +21 -0
  9. package/dist-cjs/commands/UpdateAccountCommand.js +21 -0
  10. package/dist-cjs/commands/UpdateWorkspaceCommand.js +21 -0
  11. package/dist-cjs/commands/VerifyAddIdentityCommand.js +21 -0
  12. package/dist-cjs/commands/index.js +10 -0
  13. package/dist-cjs/models/models_0.js +84 -1
  14. package/dist-cjs/protocols/Aws_restJson1.js +398 -2
  15. package/dist-es/Users.js +20 -0
  16. package/dist-es/commands/AddIdentityCommand.js +17 -0
  17. package/dist-es/commands/GetAccountCommand.js +17 -0
  18. package/dist-es/commands/InviteCommand.js +17 -0
  19. package/dist-es/commands/ListAccountIdentitiesCommand.js +17 -0
  20. package/dist-es/commands/ListWorkspacesCommand.js +17 -0
  21. package/dist-es/commands/RemoveIdentityCommand.js +17 -0
  22. package/dist-es/commands/UnbindWorkspaceCommand.js +17 -0
  23. package/dist-es/commands/UpdateAccountCommand.js +17 -0
  24. package/dist-es/commands/UpdateWorkspaceCommand.js +17 -0
  25. package/dist-es/commands/VerifyAddIdentityCommand.js +17 -0
  26. package/dist-es/commands/index.js +10 -0
  27. package/dist-es/models/models_0.js +77 -0
  28. package/dist-es/protocols/Aws_restJson1.js +377 -1
  29. package/dist-types/Users.d.ts +70 -0
  30. package/dist-types/UsersClient.d.ts +12 -2
  31. package/dist-types/commands/AddIdentityCommand.d.ts +93 -0
  32. package/dist-types/commands/BatchGetUsersCommand.d.ts +12 -0
  33. package/dist-types/commands/BatchGetUsersEmailNotificationsSettingsCommand.d.ts +12 -0
  34. package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +12 -0
  35. package/dist-types/commands/BatchGetUsersPbxLinkDataV1Command.d.ts +12 -0
  36. package/dist-types/commands/ChangeUserEmailCommand.d.ts +12 -0
  37. package/dist-types/commands/CreateBotApiKeyCommand.d.ts +12 -0
  38. package/dist-types/commands/CreateBotCommand.d.ts +12 -0
  39. package/dist-types/commands/CreateSystemBotCommand.d.ts +12 -0
  40. package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +12 -0
  41. package/dist-types/commands/DeleteBotCommand.d.ts +12 -0
  42. package/dist-types/commands/GetAccountCommand.d.ts +182 -0
  43. package/dist-types/commands/GetAppVersionCommand.d.ts +12 -0
  44. package/dist-types/commands/GetBotCallbackCommand.d.ts +12 -0
  45. package/dist-types/commands/GetBotCommand.d.ts +12 -0
  46. package/dist-types/commands/GetUserCommand.d.ts +12 -0
  47. package/dist-types/commands/GetUserEmailNotificationsSettingsCommand.d.ts +12 -0
  48. package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +12 -0
  49. package/dist-types/commands/GetUserPbxLinkSuggestionCommand.d.ts +12 -0
  50. package/dist-types/commands/GetUserPbxLinkSuggestionV1Command.d.ts +12 -0
  51. package/dist-types/commands/IntelligenceSearchCommand.d.ts +12 -0
  52. package/dist-types/commands/InviteCommand.d.ts +116 -0
  53. package/dist-types/commands/ListAccountIdentitiesCommand.d.ts +94 -0
  54. package/dist-types/commands/ListBotApiKeysCommand.d.ts +12 -0
  55. package/dist-types/commands/ListBotsCommand.d.ts +12 -0
  56. package/dist-types/commands/ListWorkspacesCommand.d.ts +170 -0
  57. package/dist-types/commands/PartialUpdateUserEmailNotificationsSettingsCommand.d.ts +12 -0
  58. package/dist-types/commands/QueryColleaguesCommand.d.ts +12 -0
  59. package/dist-types/commands/QueryUserCommand.d.ts +12 -0
  60. package/dist-types/commands/QueryUsersCommand.d.ts +12 -0
  61. package/dist-types/commands/RemoveIdentityCommand.d.ts +87 -0
  62. package/dist-types/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.d.ts +12 -0
  63. package/dist-types/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.d.ts +12 -0
  64. package/dist-types/commands/UnbindWorkspaceCommand.d.ts +87 -0
  65. package/dist-types/commands/UpdateAccountCommand.d.ts +94 -0
  66. package/dist-types/commands/UpdateBotCallbackCommand.d.ts +12 -0
  67. package/dist-types/commands/UpdateBotCommand.d.ts +12 -0
  68. package/dist-types/commands/UpdateUserEmailNotificationsSettingsCommand.d.ts +12 -0
  69. package/dist-types/commands/UpdateWorkspaceCommand.d.ts +171 -0
  70. package/dist-types/commands/UploadPictureCommand.d.ts +12 -0
  71. package/dist-types/commands/UploadPictureV1Command.d.ts +12 -0
  72. package/dist-types/commands/VerifyAddIdentityCommand.d.ts +95 -0
  73. package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +12 -0
  74. package/dist-types/commands/VerifyBotSecretKeyV1Command.d.ts +12 -0
  75. package/dist-types/commands/index.d.ts +10 -0
  76. package/dist-types/models/models_0.d.ts +420 -0
  77. package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
  78. package/package.json +2 -2
@@ -1,12 +1,29 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_GetUserPbxLinkDataCommand = exports.de_GetUserEmailNotificationsSettingsCommand = exports.de_GetUserCommand = exports.de_GetBotCallbackCommand = exports.de_GetBotCommand = exports.de_GetAppVersionCommand = exports.de_DeleteBotApiKeyCommand = exports.de_DeleteBotCommand = exports.de_CreateSystemBotCommand = exports.de_CreateBotApiKeyCommand = exports.de_CreateBotCommand = exports.de_ChangeUserEmailCommand = exports.de_BatchGetUsersPbxLinkDataV1Command = exports.de_BatchGetUsersPbxLinkDataCommand = exports.de_BatchGetUsersEmailNotificationsSettingsCommand = exports.de_BatchGetUsersCommand = exports.se_VerifyBotSecretKeyV1Command = exports.se_VerifyBotSecretKeyCommand = exports.se_UploadPictureV1Command = exports.se_UploadPictureCommand = exports.se_UpdateUserEmailNotificationsSettingsCommand = exports.se_UpdateBotCallbackCommand = exports.se_UpdateBotCommand = exports.se_ToggleUnreadEmailNotificationsSubscriptionCommand = exports.se_ToggleTranscriptionEmailNotificationsSubscriptionCommand = exports.se_QueryUsersCommand = exports.se_QueryUserCommand = exports.se_QueryColleaguesCommand = exports.se_PartialUpdateUserEmailNotificationsSettingsCommand = exports.se_ListBotsCommand = exports.se_ListBotApiKeysCommand = 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_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_VerifyBotSecretKeyV1Command = exports.de_VerifyBotSecretKeyCommand = exports.de_UploadPictureV1Command = exports.de_UploadPictureCommand = exports.de_UpdateUserEmailNotificationsSettingsCommand = exports.de_UpdateBotCallbackCommand = exports.de_UpdateBotCommand = exports.de_ToggleUnreadEmailNotificationsSubscriptionCommand = exports.de_ToggleTranscriptionEmailNotificationsSubscriptionCommand = exports.de_QueryUsersCommand = exports.de_QueryUserCommand = exports.de_QueryColleaguesCommand = exports.de_PartialUpdateUserEmailNotificationsSettingsCommand = exports.de_ListBotsCommand = exports.de_ListBotApiKeysCommand = exports.de_IntelligenceSearchCommand = exports.de_GetUserPbxLinkSuggestionV1Command = exports.de_GetUserPbxLinkSuggestionCommand = void 0;
3
+ exports.de_ChangeUserEmailCommand = exports.de_BatchGetUsersPbxLinkDataV1Command = exports.de_BatchGetUsersPbxLinkDataCommand = exports.de_BatchGetUsersEmailNotificationsSettingsCommand = exports.de_BatchGetUsersCommand = exports.de_AddIdentityCommand = exports.se_VerifyBotSecretKeyV1Command = exports.se_VerifyBotSecretKeyCommand = exports.se_VerifyAddIdentityCommand = exports.se_UploadPictureV1Command = exports.se_UploadPictureCommand = exports.se_UpdateWorkspaceCommand = exports.se_UpdateUserEmailNotificationsSettingsCommand = exports.se_UpdateBotCallbackCommand = exports.se_UpdateBotCommand = exports.se_UpdateAccountCommand = exports.se_UnbindWorkspaceCommand = exports.se_ToggleUnreadEmailNotificationsSubscriptionCommand = exports.se_ToggleTranscriptionEmailNotificationsSubscriptionCommand = exports.se_RemoveIdentityCommand = exports.se_QueryUsersCommand = exports.se_QueryUserCommand = exports.se_QueryColleaguesCommand = exports.se_PartialUpdateUserEmailNotificationsSettingsCommand = exports.se_ListWorkspacesCommand = exports.se_ListBotsCommand = exports.se_ListBotApiKeysCommand = exports.se_ListAccountIdentitiesCommand = 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 = exports.se_AddIdentityCommand = void 0;
4
+ exports.de_VerifyBotSecretKeyV1Command = exports.de_VerifyBotSecretKeyCommand = exports.de_VerifyAddIdentityCommand = exports.de_UploadPictureV1Command = exports.de_UploadPictureCommand = exports.de_UpdateWorkspaceCommand = exports.de_UpdateUserEmailNotificationsSettingsCommand = exports.de_UpdateBotCallbackCommand = exports.de_UpdateBotCommand = exports.de_UpdateAccountCommand = exports.de_UnbindWorkspaceCommand = exports.de_ToggleUnreadEmailNotificationsSubscriptionCommand = exports.de_ToggleTranscriptionEmailNotificationsSubscriptionCommand = exports.de_RemoveIdentityCommand = exports.de_QueryUsersCommand = exports.de_QueryUserCommand = exports.de_QueryColleaguesCommand = exports.de_PartialUpdateUserEmailNotificationsSettingsCommand = exports.de_ListWorkspacesCommand = exports.de_ListBotsCommand = exports.de_ListBotApiKeysCommand = exports.de_ListAccountIdentitiesCommand = 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 = exports.de_CreateBotCommand = 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/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;
10
27
  const se_BatchGetUsersCommand = async (input, context) => {
11
28
  const b = (0, core_2.requestBuilder)(input, context);
12
29
  const headers = {
@@ -188,6 +205,18 @@ const se_DeleteBotApiKeyCommand = async (input, context) => {
188
205
  return b.build();
189
206
  };
190
207
  exports.se_DeleteBotApiKeyCommand = se_DeleteBotApiKeyCommand;
208
+ const se_GetAccountCommand = async (input, context) => {
209
+ const b = (0, core_2.requestBuilder)(input, context);
210
+ const headers = {};
211
+ b.bp("/v2/accounts/{accountId}");
212
+ b.p('accountId', () => input.accountId, '{accountId}', false);
213
+ let body;
214
+ b.m("GET")
215
+ .h(headers)
216
+ .b(body);
217
+ return b.build();
218
+ };
219
+ exports.se_GetAccountCommand = se_GetAccountCommand;
191
220
  const se_GetAppVersionCommand = async (input, context) => {
192
221
  const b = (0, core_2.requestBuilder)(input, context);
193
222
  const headers = {};
@@ -318,6 +347,38 @@ const se_IntelligenceSearchCommand = async (input, context) => {
318
347
  return b.build();
319
348
  };
320
349
  exports.se_IntelligenceSearchCommand = se_IntelligenceSearchCommand;
350
+ const se_InviteCommand = async (input, context) => {
351
+ const b = (0, core_2.requestBuilder)(input, context);
352
+ const headers = {
353
+ 'content-type': 'application/json',
354
+ };
355
+ b.bp("/v2/users/invite");
356
+ const query = (0, smithy_client_1.map)({
357
+ [_c]: [, input[_cI]],
358
+ });
359
+ let body;
360
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
361
+ 'invitees': _ => (0, smithy_client_1._json)(_),
362
+ }));
363
+ b.m("POST")
364
+ .h(headers)
365
+ .q(query)
366
+ .b(body);
367
+ return b.build();
368
+ };
369
+ exports.se_InviteCommand = se_InviteCommand;
370
+ const se_ListAccountIdentitiesCommand = async (input, context) => {
371
+ const b = (0, core_2.requestBuilder)(input, context);
372
+ const headers = {};
373
+ b.bp("/v2/accounts/{accountId}/identities");
374
+ b.p('accountId', () => input.accountId, '{accountId}', false);
375
+ let body;
376
+ b.m("GET")
377
+ .h(headers)
378
+ .b(body);
379
+ return b.build();
380
+ };
381
+ exports.se_ListAccountIdentitiesCommand = se_ListAccountIdentitiesCommand;
321
382
  const se_ListBotApiKeysCommand = async (input, context) => {
322
383
  const b = (0, core_2.requestBuilder)(input, context);
323
384
  const headers = {};
@@ -349,6 +410,18 @@ const se_ListBotsCommand = async (input, context) => {
349
410
  return b.build();
350
411
  };
351
412
  exports.se_ListBotsCommand = se_ListBotsCommand;
413
+ const se_ListWorkspacesCommand = async (input, context) => {
414
+ const b = (0, core_2.requestBuilder)(input, context);
415
+ const headers = {};
416
+ b.bp("/v2/accounts/{accountId}/workspaces");
417
+ b.p('accountId', () => input.accountId, '{accountId}', false);
418
+ let body;
419
+ b.m("GET")
420
+ .h(headers)
421
+ .b(body);
422
+ return b.build();
423
+ };
424
+ exports.se_ListWorkspacesCommand = se_ListWorkspacesCommand;
352
425
  const se_PartialUpdateUserEmailNotificationsSettingsCommand = async (input, context) => {
353
426
  const b = (0, core_2.requestBuilder)(input, context);
354
427
  const headers = {
@@ -422,6 +495,19 @@ const se_QueryUsersCommand = async (input, context) => {
422
495
  return b.build();
423
496
  };
424
497
  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/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;
425
511
  const se_ToggleTranscriptionEmailNotificationsSubscriptionCommand = async (input, context) => {
426
512
  const b = (0, core_2.requestBuilder)(input, context);
427
513
  const headers = {
@@ -456,6 +542,37 @@ const se_ToggleUnreadEmailNotificationsSubscriptionCommand = async (input, conte
456
542
  return b.build();
457
543
  };
458
544
  exports.se_ToggleUnreadEmailNotificationsSubscriptionCommand = se_ToggleUnreadEmailNotificationsSubscriptionCommand;
545
+ const se_UnbindWorkspaceCommand = async (input, context) => {
546
+ const b = (0, core_2.requestBuilder)(input, context);
547
+ const headers = {};
548
+ b.bp("/v2/accounts/{accountId}/workspaces/{workspaceId}");
549
+ b.p('workspaceId', () => input.workspaceId, '{workspaceId}', false);
550
+ b.p('accountId', () => input.accountId, '{accountId}', false);
551
+ let body;
552
+ b.m("DELETE")
553
+ .h(headers)
554
+ .b(body);
555
+ return b.build();
556
+ };
557
+ exports.se_UnbindWorkspaceCommand = se_UnbindWorkspaceCommand;
558
+ const se_UpdateAccountCommand = async (input, context) => {
559
+ const b = (0, core_2.requestBuilder)(input, context);
560
+ const headers = {
561
+ 'content-type': 'application/json',
562
+ };
563
+ b.bp("/v2/accounts/{accountId}");
564
+ b.p('accountId', () => input.accountId, '{accountId}', false);
565
+ let body;
566
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
567
+ 'defaultWorkspace': [],
568
+ 'primaryIdentity': [],
569
+ }));
570
+ b.m("PUT")
571
+ .h(headers)
572
+ .b(body);
573
+ return b.build();
574
+ };
575
+ exports.se_UpdateAccountCommand = se_UpdateAccountCommand;
459
576
  const se_UpdateBotCommand = async (input, context) => {
460
577
  const b = (0, core_2.requestBuilder)(input, context);
461
578
  const headers = {
@@ -520,6 +637,25 @@ const se_UpdateUserEmailNotificationsSettingsCommand = async (input, context) =>
520
637
  return b.build();
521
638
  };
522
639
  exports.se_UpdateUserEmailNotificationsSettingsCommand = se_UpdateUserEmailNotificationsSettingsCommand;
640
+ const se_UpdateWorkspaceCommand = async (input, context) => {
641
+ const b = (0, core_2.requestBuilder)(input, context);
642
+ const headers = {
643
+ 'content-type': 'application/json',
644
+ };
645
+ b.bp("/v2/accounts/{accountId}/workspaces/{workspaceId}");
646
+ b.p('accountId', () => input.accountId, '{accountId}', false);
647
+ b.p('workspaceId', () => input.workspaceId, '{workspaceId}', false);
648
+ let body;
649
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
650
+ 'active': [],
651
+ 'type': [],
652
+ }));
653
+ b.m("PUT")
654
+ .h(headers)
655
+ .b(body);
656
+ return b.build();
657
+ };
658
+ exports.se_UpdateWorkspaceCommand = se_UpdateWorkspaceCommand;
523
659
  const se_UploadPictureCommand = async (input, context) => {
524
660
  const b = (0, core_2.requestBuilder)(input, context);
525
661
  const headers = {
@@ -552,6 +688,25 @@ const se_UploadPictureV1Command = async (input, context) => {
552
688
  return b.build();
553
689
  };
554
690
  exports.se_UploadPictureV1Command = se_UploadPictureV1Command;
691
+ const se_VerifyAddIdentityCommand = async (input, context) => {
692
+ const b = (0, core_2.requestBuilder)(input, context);
693
+ const headers = {
694
+ 'content-type': 'application/json',
695
+ };
696
+ b.bp("/v2/accounts/{accountId}/identities/verify");
697
+ b.p('accountId', () => input.accountId, '{accountId}', false);
698
+ let body;
699
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
700
+ 'identity': [],
701
+ 'otp': [],
702
+ 'primaryOtp': [],
703
+ }));
704
+ b.m("POST")
705
+ .h(headers)
706
+ .b(body);
707
+ return b.build();
708
+ };
709
+ exports.se_VerifyAddIdentityCommand = se_VerifyAddIdentityCommand;
555
710
  const se_VerifyBotSecretKeyCommand = async (input, context) => {
556
711
  const b = (0, core_2.requestBuilder)(input, context);
557
712
  const headers = {
@@ -584,6 +739,21 @@ const se_VerifyBotSecretKeyV1Command = async (input, context) => {
584
739
  return b.build();
585
740
  };
586
741
  exports.se_VerifyBotSecretKeyV1Command = se_VerifyBotSecretKeyV1Command;
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;
587
757
  const de_BatchGetUsersCommand = async (output, context) => {
588
758
  if (output.statusCode !== 200 && output.statusCode >= 300) {
589
759
  return de_CommandError(output, context);
@@ -727,6 +897,23 @@ const de_DeleteBotApiKeyCommand = async (output, context) => {
727
897
  return contents;
728
898
  };
729
899
  exports.de_DeleteBotApiKeyCommand = de_DeleteBotApiKeyCommand;
900
+ const de_GetAccountCommand = async (output, context) => {
901
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
902
+ return de_CommandError(output, context);
903
+ }
904
+ const contents = (0, smithy_client_1.map)({
905
+ $metadata: deserializeMetadata(output),
906
+ });
907
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
908
+ const doc = (0, smithy_client_1.take)(data, {
909
+ 'account': smithy_client_1._json,
910
+ 'identities': smithy_client_1._json,
911
+ 'workspaces': smithy_client_1._json,
912
+ });
913
+ Object.assign(contents, doc);
914
+ return contents;
915
+ };
916
+ exports.de_GetAccountCommand = de_GetAccountCommand;
730
917
  const de_GetAppVersionCommand = async (output, context) => {
731
918
  if (output.statusCode !== 200 && output.statusCode >= 300) {
732
919
  return de_CommandError(output, context);
@@ -862,6 +1049,36 @@ const de_IntelligenceSearchCommand = async (output, context) => {
862
1049
  return contents;
863
1050
  };
864
1051
  exports.de_IntelligenceSearchCommand = de_IntelligenceSearchCommand;
1052
+ const de_InviteCommand = async (output, context) => {
1053
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1054
+ return de_CommandError(output, context);
1055
+ }
1056
+ const contents = (0, smithy_client_1.map)({
1057
+ $metadata: deserializeMetadata(output),
1058
+ });
1059
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1060
+ const doc = (0, smithy_client_1.take)(data, {
1061
+ 'users': smithy_client_1._json,
1062
+ });
1063
+ Object.assign(contents, doc);
1064
+ return contents;
1065
+ };
1066
+ exports.de_InviteCommand = de_InviteCommand;
1067
+ const de_ListAccountIdentitiesCommand = async (output, context) => {
1068
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1069
+ return de_CommandError(output, context);
1070
+ }
1071
+ const contents = (0, smithy_client_1.map)({
1072
+ $metadata: deserializeMetadata(output),
1073
+ });
1074
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1075
+ const doc = (0, smithy_client_1.take)(data, {
1076
+ 'identities': smithy_client_1._json,
1077
+ });
1078
+ Object.assign(contents, doc);
1079
+ return contents;
1080
+ };
1081
+ exports.de_ListAccountIdentitiesCommand = de_ListAccountIdentitiesCommand;
865
1082
  const de_ListBotApiKeysCommand = async (output, context) => {
866
1083
  if (output.statusCode !== 200 && output.statusCode >= 300) {
867
1084
  return de_CommandError(output, context);
@@ -892,6 +1109,21 @@ const de_ListBotsCommand = async (output, context) => {
892
1109
  return contents;
893
1110
  };
894
1111
  exports.de_ListBotsCommand = de_ListBotsCommand;
1112
+ const de_ListWorkspacesCommand = async (output, context) => {
1113
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1114
+ return de_CommandError(output, context);
1115
+ }
1116
+ const contents = (0, smithy_client_1.map)({
1117
+ $metadata: deserializeMetadata(output),
1118
+ });
1119
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1120
+ const doc = (0, smithy_client_1.take)(data, {
1121
+ 'workspaces': smithy_client_1._json,
1122
+ });
1123
+ Object.assign(contents, doc);
1124
+ return contents;
1125
+ };
1126
+ exports.de_ListWorkspacesCommand = de_ListWorkspacesCommand;
895
1127
  const de_PartialUpdateUserEmailNotificationsSettingsCommand = async (output, context) => {
896
1128
  if (output.statusCode !== 200 && output.statusCode >= 300) {
897
1129
  return de_CommandError(output, context);
@@ -952,6 +1184,17 @@ const de_QueryUsersCommand = async (output, context) => {
952
1184
  return contents;
953
1185
  };
954
1186
  exports.de_QueryUsersCommand = de_QueryUsersCommand;
1187
+ const de_RemoveIdentityCommand = async (output, context) => {
1188
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1189
+ return de_CommandError(output, context);
1190
+ }
1191
+ const contents = (0, smithy_client_1.map)({
1192
+ $metadata: deserializeMetadata(output),
1193
+ });
1194
+ await (0, smithy_client_1.collectBody)(output.body, context);
1195
+ return contents;
1196
+ };
1197
+ exports.de_RemoveIdentityCommand = de_RemoveIdentityCommand;
955
1198
  const de_ToggleTranscriptionEmailNotificationsSubscriptionCommand = async (output, context) => {
956
1199
  if (output.statusCode !== 200 && output.statusCode >= 300) {
957
1200
  return de_CommandError(output, context);
@@ -974,6 +1217,32 @@ const de_ToggleUnreadEmailNotificationsSubscriptionCommand = async (output, cont
974
1217
  return contents;
975
1218
  };
976
1219
  exports.de_ToggleUnreadEmailNotificationsSubscriptionCommand = de_ToggleUnreadEmailNotificationsSubscriptionCommand;
1220
+ const de_UnbindWorkspaceCommand = async (output, context) => {
1221
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1222
+ return de_CommandError(output, context);
1223
+ }
1224
+ const contents = (0, smithy_client_1.map)({
1225
+ $metadata: deserializeMetadata(output),
1226
+ });
1227
+ await (0, smithy_client_1.collectBody)(output.body, context);
1228
+ return contents;
1229
+ };
1230
+ exports.de_UnbindWorkspaceCommand = de_UnbindWorkspaceCommand;
1231
+ const de_UpdateAccountCommand = async (output, context) => {
1232
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1233
+ return de_CommandError(output, context);
1234
+ }
1235
+ const contents = (0, smithy_client_1.map)({
1236
+ $metadata: deserializeMetadata(output),
1237
+ });
1238
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1239
+ const doc = (0, smithy_client_1.take)(data, {
1240
+ 'account': smithy_client_1._json,
1241
+ });
1242
+ Object.assign(contents, doc);
1243
+ return contents;
1244
+ };
1245
+ exports.de_UpdateAccountCommand = de_UpdateAccountCommand;
977
1246
  const de_UpdateBotCommand = async (output, context) => {
978
1247
  if (output.statusCode !== 200 && output.statusCode >= 300) {
979
1248
  return de_CommandError(output, context);
@@ -1019,6 +1288,21 @@ const de_UpdateUserEmailNotificationsSettingsCommand = async (output, context) =
1019
1288
  return contents;
1020
1289
  };
1021
1290
  exports.de_UpdateUserEmailNotificationsSettingsCommand = de_UpdateUserEmailNotificationsSettingsCommand;
1291
+ const de_UpdateWorkspaceCommand = async (output, context) => {
1292
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1293
+ return de_CommandError(output, context);
1294
+ }
1295
+ const contents = (0, smithy_client_1.map)({
1296
+ $metadata: deserializeMetadata(output),
1297
+ });
1298
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1299
+ const doc = (0, smithy_client_1.take)(data, {
1300
+ 'workspace': smithy_client_1._json,
1301
+ });
1302
+ Object.assign(contents, doc);
1303
+ return contents;
1304
+ };
1305
+ exports.de_UpdateWorkspaceCommand = de_UpdateWorkspaceCommand;
1022
1306
  const de_UploadPictureCommand = async (output, context) => {
1023
1307
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1024
1308
  return de_CommandError(output, context);
@@ -1049,6 +1333,21 @@ const de_UploadPictureV1Command = async (output, context) => {
1049
1333
  return contents;
1050
1334
  };
1051
1335
  exports.de_UploadPictureV1Command = de_UploadPictureV1Command;
1336
+ const de_VerifyAddIdentityCommand = async (output, context) => {
1337
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1338
+ return de_CommandError(output, context);
1339
+ }
1340
+ const contents = (0, smithy_client_1.map)({
1341
+ $metadata: deserializeMetadata(output),
1342
+ });
1343
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1344
+ const doc = (0, smithy_client_1.take)(data, {
1345
+ 'identity': smithy_client_1._json,
1346
+ });
1347
+ Object.assign(contents, doc);
1348
+ return contents;
1349
+ };
1350
+ exports.de_VerifyAddIdentityCommand = de_VerifyAddIdentityCommand;
1052
1351
  const de_VerifyBotSecretKeyCommand = async (output, context) => {
1053
1352
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1054
1353
  return de_CommandError(output, context);
@@ -1090,12 +1389,30 @@ const de_CommandError = async (output, context) => {
1090
1389
  };
1091
1390
  const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
1092
1391
  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);
1093
1401
  case "ForbiddenException":
1094
1402
  case "smithy.framework#ForbiddenException":
1095
1403
  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);
1096
1410
  case "ValidationException":
1097
1411
  case "smithy.framework#ValidationException":
1098
1412
  throw await de_ValidationExceptionRes(parsedOutput, context);
1413
+ case "WorkspaceNotFoundException":
1414
+ case "wildix.xbees.users#WorkspaceNotFoundException":
1415
+ throw await de_WorkspaceNotFoundExceptionRes(parsedOutput, context);
1099
1416
  case "UserCompanyNotValidException":
1100
1417
  case "wildix.xbees.users#UserCompanyNotValidException":
1101
1418
  throw await de_UserCompanyNotValidExceptionRes(parsedOutput, context);
@@ -1150,6 +1467,19 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1150
1467
  });
1151
1468
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1152
1469
  };
1470
+ const de_AccountNotFoundExceptionRes = async (parsedOutput, context) => {
1471
+ const contents = (0, smithy_client_1.map)({});
1472
+ const data = parsedOutput.body;
1473
+ const doc = (0, smithy_client_1.take)(data, {
1474
+ 'message': smithy_client_1.expectString,
1475
+ });
1476
+ Object.assign(contents, doc);
1477
+ const exception = new models_0_1.AccountNotFoundException({
1478
+ $metadata: deserializeMetadata(parsedOutput),
1479
+ ...contents
1480
+ });
1481
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1482
+ };
1153
1483
  const de_BotApiKeyNotFoundExceptionRes = async (parsedOutput, context) => {
1154
1484
  const contents = (0, smithy_client_1.map)({});
1155
1485
  const data = parsedOutput.body;
@@ -1189,6 +1519,58 @@ const de_BotSecretKeyNotValidExceptionRes = async (parsedOutput, context) => {
1189
1519
  });
1190
1520
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1191
1521
  };
1522
+ const de_CannotRemovePrimaryIdentityExceptionRes = async (parsedOutput, context) => {
1523
+ const contents = (0, smithy_client_1.map)({});
1524
+ const data = parsedOutput.body;
1525
+ const doc = (0, smithy_client_1.take)(data, {
1526
+ 'message': smithy_client_1.expectString,
1527
+ });
1528
+ Object.assign(contents, doc);
1529
+ const exception = new models_0_1.CannotRemovePrimaryIdentityException({
1530
+ $metadata: deserializeMetadata(parsedOutput),
1531
+ ...contents
1532
+ });
1533
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1534
+ };
1535
+ const de_CannotUnbindDefaultWorkspaceExceptionRes = async (parsedOutput, context) => {
1536
+ const contents = (0, smithy_client_1.map)({});
1537
+ const data = parsedOutput.body;
1538
+ const doc = (0, smithy_client_1.take)(data, {
1539
+ 'message': smithy_client_1.expectString,
1540
+ });
1541
+ Object.assign(contents, doc);
1542
+ const exception = new models_0_1.CannotUnbindDefaultWorkspaceException({
1543
+ $metadata: deserializeMetadata(parsedOutput),
1544
+ ...contents
1545
+ });
1546
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1547
+ };
1548
+ const de_IdentityAlreadyLinkedExceptionRes = async (parsedOutput, context) => {
1549
+ const contents = (0, smithy_client_1.map)({});
1550
+ const data = parsedOutput.body;
1551
+ const doc = (0, smithy_client_1.take)(data, {
1552
+ 'message': smithy_client_1.expectString,
1553
+ });
1554
+ Object.assign(contents, doc);
1555
+ const exception = new models_0_1.IdentityAlreadyLinkedException({
1556
+ $metadata: deserializeMetadata(parsedOutput),
1557
+ ...contents
1558
+ });
1559
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1560
+ };
1561
+ const de_IdentityNotFoundExceptionRes = async (parsedOutput, context) => {
1562
+ const contents = (0, smithy_client_1.map)({});
1563
+ const data = parsedOutput.body;
1564
+ const doc = (0, smithy_client_1.take)(data, {
1565
+ 'message': smithy_client_1.expectString,
1566
+ });
1567
+ Object.assign(contents, doc);
1568
+ const exception = new models_0_1.IdentityNotFoundException({
1569
+ $metadata: deserializeMetadata(parsedOutput),
1570
+ ...contents
1571
+ });
1572
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1573
+ };
1192
1574
  const de_UserCompanyNotValidExceptionRes = async (parsedOutput, context) => {
1193
1575
  const contents = (0, smithy_client_1.map)({});
1194
1576
  const data = parsedOutput.body;
@@ -1228,6 +1610,19 @@ const de_UserQueryPredicateNotMetExceptionRes = async (parsedOutput, context) =>
1228
1610
  });
1229
1611
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1230
1612
  };
1613
+ const de_WorkspaceNotFoundExceptionRes = async (parsedOutput, context) => {
1614
+ const contents = (0, smithy_client_1.map)({});
1615
+ const data = parsedOutput.body;
1616
+ const doc = (0, smithy_client_1.take)(data, {
1617
+ 'message': smithy_client_1.expectString,
1618
+ });
1619
+ Object.assign(contents, doc);
1620
+ const exception = new models_0_1.WorkspaceNotFoundException({
1621
+ $metadata: deserializeMetadata(parsedOutput),
1622
+ ...contents
1623
+ });
1624
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1625
+ };
1231
1626
  const se_Document = (input, context) => {
1232
1627
  return input;
1233
1628
  };
@@ -1427,6 +1822,7 @@ const deserializeMetadata = (output) => ({
1427
1822
  const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then(body => context.utf8Encoder(body));
1428
1823
  const _aT = "appType";
1429
1824
  const _c = "company";
1825
+ const _cI = "companyId";
1430
1826
  const _e = "email";
1431
1827
  const _eE = "excludeExtension";
1432
1828
  const _s = "search";
package/dist-es/Users.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { UsersClient, } from "./UsersClient";
2
+ import { AddIdentityCommand, } from "./commands/AddIdentityCommand";
2
3
  import { BatchGetUsersCommand, } from "./commands/BatchGetUsersCommand";
3
4
  import { BatchGetUsersEmailNotificationsSettingsCommand, } from "./commands/BatchGetUsersEmailNotificationsSettingsCommand";
4
5
  import { BatchGetUsersPbxLinkDataCommand, } from "./commands/BatchGetUsersPbxLinkDataCommand";
@@ -9,6 +10,7 @@ import { CreateBotCommand, } from "./commands/CreateBotCommand";
9
10
  import { CreateSystemBotCommand, } from "./commands/CreateSystemBotCommand";
10
11
  import { DeleteBotApiKeyCommand, } from "./commands/DeleteBotApiKeyCommand";
11
12
  import { DeleteBotCommand, } from "./commands/DeleteBotCommand";
13
+ import { GetAccountCommand, } from "./commands/GetAccountCommand";
12
14
  import { GetAppVersionCommand, } from "./commands/GetAppVersionCommand";
13
15
  import { GetBotCallbackCommand, } from "./commands/GetBotCallbackCommand";
14
16
  import { GetBotCommand, } from "./commands/GetBotCommand";
@@ -18,23 +20,32 @@ import { GetUserPbxLinkDataCommand, } from "./commands/GetUserPbxLinkDataCommand
18
20
  import { GetUserPbxLinkSuggestionCommand, } from "./commands/GetUserPbxLinkSuggestionCommand";
19
21
  import { GetUserPbxLinkSuggestionV1Command, } from "./commands/GetUserPbxLinkSuggestionV1Command";
20
22
  import { IntelligenceSearchCommand, } from "./commands/IntelligenceSearchCommand";
23
+ import { InviteCommand, } from "./commands/InviteCommand";
24
+ import { ListAccountIdentitiesCommand, } from "./commands/ListAccountIdentitiesCommand";
21
25
  import { ListBotApiKeysCommand, } from "./commands/ListBotApiKeysCommand";
22
26
  import { ListBotsCommand, } from "./commands/ListBotsCommand";
27
+ import { ListWorkspacesCommand, } from "./commands/ListWorkspacesCommand";
23
28
  import { PartialUpdateUserEmailNotificationsSettingsCommand, } from "./commands/PartialUpdateUserEmailNotificationsSettingsCommand";
24
29
  import { QueryColleaguesCommand, } from "./commands/QueryColleaguesCommand";
25
30
  import { QueryUserCommand, } from "./commands/QueryUserCommand";
26
31
  import { QueryUsersCommand, } from "./commands/QueryUsersCommand";
32
+ import { RemoveIdentityCommand, } from "./commands/RemoveIdentityCommand";
27
33
  import { ToggleTranscriptionEmailNotificationsSubscriptionCommand, } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
28
34
  import { ToggleUnreadEmailNotificationsSubscriptionCommand, } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
35
+ import { UnbindWorkspaceCommand, } from "./commands/UnbindWorkspaceCommand";
36
+ import { UpdateAccountCommand, } from "./commands/UpdateAccountCommand";
29
37
  import { UpdateBotCallbackCommand, } from "./commands/UpdateBotCallbackCommand";
30
38
  import { UpdateBotCommand, } from "./commands/UpdateBotCommand";
31
39
  import { UpdateUserEmailNotificationsSettingsCommand, } from "./commands/UpdateUserEmailNotificationsSettingsCommand";
40
+ import { UpdateWorkspaceCommand, } from "./commands/UpdateWorkspaceCommand";
32
41
  import { UploadPictureCommand, } from "./commands/UploadPictureCommand";
33
42
  import { UploadPictureV1Command, } from "./commands/UploadPictureV1Command";
43
+ import { VerifyAddIdentityCommand, } from "./commands/VerifyAddIdentityCommand";
34
44
  import { VerifyBotSecretKeyCommand, } from "./commands/VerifyBotSecretKeyCommand";
35
45
  import { VerifyBotSecretKeyV1Command, } from "./commands/VerifyBotSecretKeyV1Command";
36
46
  import { createAggregatedClient } from "@smithy/smithy-client";
37
47
  const commands = {
48
+ AddIdentityCommand,
38
49
  BatchGetUsersCommand,
39
50
  BatchGetUsersEmailNotificationsSettingsCommand,
40
51
  BatchGetUsersPbxLinkDataCommand,
@@ -45,6 +56,7 @@ const commands = {
45
56
  CreateSystemBotCommand,
46
57
  DeleteBotCommand,
47
58
  DeleteBotApiKeyCommand,
59
+ GetAccountCommand,
48
60
  GetAppVersionCommand,
49
61
  GetBotCommand,
50
62
  GetBotCallbackCommand,
@@ -54,19 +66,27 @@ const commands = {
54
66
  GetUserPbxLinkSuggestionCommand,
55
67
  GetUserPbxLinkSuggestionV1Command,
56
68
  IntelligenceSearchCommand,
69
+ InviteCommand,
70
+ ListAccountIdentitiesCommand,
57
71
  ListBotApiKeysCommand,
58
72
  ListBotsCommand,
73
+ ListWorkspacesCommand,
59
74
  PartialUpdateUserEmailNotificationsSettingsCommand,
60
75
  QueryColleaguesCommand,
61
76
  QueryUserCommand,
62
77
  QueryUsersCommand,
78
+ RemoveIdentityCommand,
63
79
  ToggleTranscriptionEmailNotificationsSubscriptionCommand,
64
80
  ToggleUnreadEmailNotificationsSubscriptionCommand,
81
+ UnbindWorkspaceCommand,
82
+ UpdateAccountCommand,
65
83
  UpdateBotCommand,
66
84
  UpdateBotCallbackCommand,
67
85
  UpdateUserEmailNotificationsSettingsCommand,
86
+ UpdateWorkspaceCommand,
68
87
  UploadPictureCommand,
69
88
  UploadPictureV1Command,
89
+ VerifyAddIdentityCommand,
70
90
  VerifyBotSecretKeyCommand,
71
91
  VerifyBotSecretKeyV1Command,
72
92
  };
@@ -0,0 +1,17 @@
1
+ import { de_AddIdentityCommand, se_AddIdentityCommand, } 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 AddIdentityCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "AddIdentity", {})
12
+ .n("UsersClient", "AddIdentityCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_AddIdentityCommand)
15
+ .de(de_AddIdentityCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetAccountCommand, se_GetAccountCommand, } 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 GetAccountCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "GetAccount", {})
12
+ .n("UsersClient", "GetAccountCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetAccountCommand)
15
+ .de(de_GetAccountCommand)
16
+ .build() {
17
+ }