@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.
Files changed (74) hide show
  1. package/dist-cjs/Users.js +10 -10
  2. package/dist-cjs/commands/{AddIdentityCommand.js → LinkIdentityCommand.js} +7 -7
  3. package/dist-cjs/commands/{RemoveIdentityCommand.js → ListIdentitiesCommand.js} +7 -7
  4. package/dist-cjs/commands/{VerifyAddIdentityCommand.js → UnlinkIdentityCommand.js} +7 -7
  5. package/dist-cjs/commands/{UnbindWorkspaceCommand.js → UnlinkWorkspaceCommand.js} +7 -7
  6. package/dist-cjs/commands/VerifyIdentityCommand.js +21 -0
  7. package/dist-cjs/commands/index.js +5 -5
  8. package/dist-cjs/models/models_0.js +66 -66
  9. package/dist-cjs/protocols/Aws_restJson1.js +107 -106
  10. package/dist-es/Users.js +10 -10
  11. package/dist-es/commands/{AddIdentityCommand.js → LinkIdentityCommand.js} +6 -6
  12. package/dist-es/commands/{RemoveIdentityCommand.js → ListIdentitiesCommand.js} +6 -6
  13. package/dist-es/commands/UnlinkIdentityCommand.js +17 -0
  14. package/dist-es/commands/{UnbindWorkspaceCommand.js → UnlinkWorkspaceCommand.js} +6 -6
  15. package/dist-es/commands/VerifyIdentityCommand.js +17 -0
  16. package/dist-es/commands/index.js +5 -5
  17. package/dist-es/models/models_0.js +60 -60
  18. package/dist-es/protocols/Aws_restJson1.js +89 -88
  19. package/dist-types/Users.d.ts +31 -31
  20. package/dist-types/UsersClient.d.ts +7 -7
  21. package/dist-types/commands/BatchGetUsersCommand.d.ts +0 -12
  22. package/dist-types/commands/BatchGetUsersEmailNotificationsSettingsCommand.d.ts +0 -12
  23. package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +0 -12
  24. package/dist-types/commands/BatchGetUsersPbxLinkDataV1Command.d.ts +0 -12
  25. package/dist-types/commands/ChangeUserEmailCommand.d.ts +0 -12
  26. package/dist-types/commands/CreateBotApiKeyCommand.d.ts +1 -12
  27. package/dist-types/commands/CreateBotCommand.d.ts +2 -12
  28. package/dist-types/commands/CreateSystemBotCommand.d.ts +0 -12
  29. package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +0 -12
  30. package/dist-types/commands/DeleteBotCommand.d.ts +0 -12
  31. package/dist-types/commands/GetAccountCommand.d.ts +0 -10
  32. package/dist-types/commands/GetAppVersionCommand.d.ts +0 -12
  33. package/dist-types/commands/GetBotCallbackCommand.d.ts +0 -12
  34. package/dist-types/commands/GetBotCommand.d.ts +1 -12
  35. package/dist-types/commands/GetUserCommand.d.ts +0 -12
  36. package/dist-types/commands/GetUserEmailNotificationsSettingsCommand.d.ts +0 -12
  37. package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +0 -12
  38. package/dist-types/commands/GetUserPbxLinkSuggestionCommand.d.ts +0 -12
  39. package/dist-types/commands/GetUserPbxLinkSuggestionV1Command.d.ts +0 -12
  40. package/dist-types/commands/IntelligenceSearchCommand.d.ts +0 -12
  41. package/dist-types/commands/InviteCommand.d.ts +0 -12
  42. package/dist-types/commands/LinkIdentityCommand.d.ts +85 -0
  43. package/dist-types/commands/ListBotApiKeysCommand.d.ts +0 -12
  44. package/dist-types/commands/ListBotsCommand.d.ts +1 -12
  45. package/dist-types/commands/ListIdentitiesCommand.d.ts +84 -0
  46. package/dist-types/commands/ListWorkspacesCommand.d.ts +0 -10
  47. package/dist-types/commands/PartialUpdateUserEmailNotificationsSettingsCommand.d.ts +0 -12
  48. package/dist-types/commands/QueryColleaguesCommand.d.ts +0 -12
  49. package/dist-types/commands/QueryUserCommand.d.ts +0 -12
  50. package/dist-types/commands/QueryUsersCommand.d.ts +0 -12
  51. package/dist-types/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.d.ts +0 -12
  52. package/dist-types/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.d.ts +0 -12
  53. package/dist-types/commands/{RemoveIdentityCommand.d.ts → UnlinkIdentityCommand.d.ts} +20 -26
  54. package/dist-types/commands/{UnbindWorkspaceCommand.d.ts → UnlinkWorkspaceCommand.d.ts} +20 -26
  55. package/dist-types/commands/UpdateAccountCommand.d.ts +0 -6
  56. package/dist-types/commands/UpdateBotCallbackCommand.d.ts +0 -12
  57. package/dist-types/commands/UpdateBotCommand.d.ts +2 -12
  58. package/dist-types/commands/UpdateUserEmailNotificationsSettingsCommand.d.ts +0 -12
  59. package/dist-types/commands/UpdateWorkspaceCommand.d.ts +0 -8
  60. package/dist-types/commands/UploadPictureCommand.d.ts +0 -12
  61. package/dist-types/commands/UploadPictureV1Command.d.ts +0 -12
  62. package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +0 -12
  63. package/dist-types/commands/VerifyBotSecretKeyV1Command.d.ts +0 -12
  64. package/dist-types/commands/VerifyIdentityCommand.d.ts +86 -0
  65. package/dist-types/commands/index.d.ts +5 -5
  66. package/dist-types/models/models_0.d.ts +167 -153
  67. package/dist-types/protocols/Aws_restJson1.d.ts +35 -35
  68. package/package.json +2 -2
  69. package/dist-cjs/commands/ListAccountIdentitiesCommand.js +0 -21
  70. package/dist-es/commands/ListAccountIdentitiesCommand.js +0 -17
  71. package/dist-es/commands/VerifyAddIdentityCommand.js +0 -17
  72. package/dist-types/commands/AddIdentityCommand.d.ts +0 -93
  73. package/dist-types/commands/ListAccountIdentitiesCommand.d.ts +0 -94
  74. package/dist-types/commands/VerifyAddIdentityCommand.d.ts +0 -95
@@ -1,4 +1,3 @@
1
- export * from "./AddIdentityCommand";
2
1
  export * from "./BatchGetUsersCommand";
3
2
  export * from "./BatchGetUsersEmailNotificationsSettingsCommand";
4
3
  export * from "./BatchGetUsersPbxLinkDataCommand";
@@ -20,18 +19,19 @@ export * from "./GetUserPbxLinkSuggestionCommand";
20
19
  export * from "./GetUserPbxLinkSuggestionV1Command";
21
20
  export * from "./IntelligenceSearchCommand";
22
21
  export * from "./InviteCommand";
23
- export * from "./ListAccountIdentitiesCommand";
22
+ export * from "./LinkIdentityCommand";
24
23
  export * from "./ListBotApiKeysCommand";
25
24
  export * from "./ListBotsCommand";
25
+ export * from "./ListIdentitiesCommand";
26
26
  export * from "./ListWorkspacesCommand";
27
27
  export * from "./PartialUpdateUserEmailNotificationsSettingsCommand";
28
28
  export * from "./QueryColleaguesCommand";
29
29
  export * from "./QueryUserCommand";
30
30
  export * from "./QueryUsersCommand";
31
- export * from "./RemoveIdentityCommand";
32
31
  export * from "./ToggleTranscriptionEmailNotificationsSubscriptionCommand";
33
32
  export * from "./ToggleUnreadEmailNotificationsSubscriptionCommand";
34
- export * from "./UnbindWorkspaceCommand";
33
+ export * from "./UnlinkIdentityCommand";
34
+ export * from "./UnlinkWorkspaceCommand";
35
35
  export * from "./UpdateAccountCommand";
36
36
  export * from "./UpdateBotCommand";
37
37
  export * from "./UpdateBotCallbackCommand";
@@ -39,6 +39,6 @@ export * from "./UpdateUserEmailNotificationsSettingsCommand";
39
39
  export * from "./UpdateWorkspaceCommand";
40
40
  export * from "./UploadPictureCommand";
41
41
  export * from "./UploadPictureV1Command";
42
- export * from "./VerifyAddIdentityCommand";
43
42
  export * from "./VerifyBotSecretKeyCommand";
44
43
  export * from "./VerifyBotSecretKeyV1Command";
44
+ export * from "./VerifyIdentityCommand";
@@ -76,66 +76,6 @@ export class AccountNotFoundException extends __BaseException {
76
76
  Object.setPrototypeOf(this, AccountNotFoundException.prototype);
77
77
  }
78
78
  }
79
- export class CannotRemovePrimaryIdentityException extends __BaseException {
80
- name = "CannotRemovePrimaryIdentityException";
81
- $fault = "client";
82
- constructor(opts) {
83
- super({
84
- name: "CannotRemovePrimaryIdentityException",
85
- $fault: "client",
86
- ...opts
87
- });
88
- Object.setPrototypeOf(this, CannotRemovePrimaryIdentityException.prototype);
89
- }
90
- }
91
- export class CannotUnbindDefaultWorkspaceException extends __BaseException {
92
- name = "CannotUnbindDefaultWorkspaceException";
93
- $fault = "client";
94
- constructor(opts) {
95
- super({
96
- name: "CannotUnbindDefaultWorkspaceException",
97
- $fault: "client",
98
- ...opts
99
- });
100
- Object.setPrototypeOf(this, CannotUnbindDefaultWorkspaceException.prototype);
101
- }
102
- }
103
- export class IdentityAlreadyLinkedException extends __BaseException {
104
- name = "IdentityAlreadyLinkedException";
105
- $fault = "client";
106
- constructor(opts) {
107
- super({
108
- name: "IdentityAlreadyLinkedException",
109
- $fault: "client",
110
- ...opts
111
- });
112
- Object.setPrototypeOf(this, IdentityAlreadyLinkedException.prototype);
113
- }
114
- }
115
- export class IdentityNotFoundException extends __BaseException {
116
- name = "IdentityNotFoundException";
117
- $fault = "client";
118
- constructor(opts) {
119
- super({
120
- name: "IdentityNotFoundException",
121
- $fault: "client",
122
- ...opts
123
- });
124
- Object.setPrototypeOf(this, IdentityNotFoundException.prototype);
125
- }
126
- }
127
- export class WorkspaceNotFoundException extends __BaseException {
128
- name = "WorkspaceNotFoundException";
129
- $fault = "client";
130
- constructor(opts) {
131
- super({
132
- name: "WorkspaceNotFoundException",
133
- $fault: "client",
134
- ...opts
135
- });
136
- Object.setPrototypeOf(this, WorkspaceNotFoundException.prototype);
137
- }
138
- }
139
79
  export const AppType = {
140
80
  COLLABORATION: "collaboration",
141
81
  X_BEES: "x-bees",
@@ -267,6 +207,30 @@ export class BotSecretKeyNotValidException extends __BaseException {
267
207
  Object.setPrototypeOf(this, BotSecretKeyNotValidException.prototype);
268
208
  }
269
209
  }
210
+ export class CannotRemovePrimaryIdentityException extends __BaseException {
211
+ name = "CannotRemovePrimaryIdentityException";
212
+ $fault = "client";
213
+ constructor(opts) {
214
+ super({
215
+ name: "CannotRemovePrimaryIdentityException",
216
+ $fault: "client",
217
+ ...opts
218
+ });
219
+ Object.setPrototypeOf(this, CannotRemovePrimaryIdentityException.prototype);
220
+ }
221
+ }
222
+ export class CannotUnbindDefaultWorkspaceException extends __BaseException {
223
+ name = "CannotUnbindDefaultWorkspaceException";
224
+ $fault = "client";
225
+ constructor(opts) {
226
+ super({
227
+ name: "CannotUnbindDefaultWorkspaceException",
228
+ $fault: "client",
229
+ ...opts
230
+ });
231
+ Object.setPrototypeOf(this, CannotUnbindDefaultWorkspaceException.prototype);
232
+ }
233
+ }
270
234
  export class UserCompanyNotValidException extends __BaseException {
271
235
  name = "UserCompanyNotValidException";
272
236
  $fault = "client";
@@ -296,6 +260,30 @@ export const WorkspaceType = {
296
260
  SUPPORT: "support",
297
261
  WORK: "work",
298
262
  };
263
+ export class IdentityAlreadyLinkedException extends __BaseException {
264
+ name = "IdentityAlreadyLinkedException";
265
+ $fault = "client";
266
+ constructor(opts) {
267
+ super({
268
+ name: "IdentityAlreadyLinkedException",
269
+ $fault: "client",
270
+ ...opts
271
+ });
272
+ Object.setPrototypeOf(this, IdentityAlreadyLinkedException.prototype);
273
+ }
274
+ }
275
+ export class IdentityNotFoundException extends __BaseException {
276
+ name = "IdentityNotFoundException";
277
+ $fault = "client";
278
+ constructor(opts) {
279
+ super({
280
+ name: "IdentityNotFoundException",
281
+ $fault: "client",
282
+ ...opts
283
+ });
284
+ Object.setPrototypeOf(this, IdentityNotFoundException.prototype);
285
+ }
286
+ }
299
287
  export var UserQuery;
300
288
  (function (UserQuery) {
301
289
  UserQuery.visit = (value, visitor) => {
@@ -320,3 +308,15 @@ export class UserQueryPredicateNotMetException extends __BaseException {
320
308
  Object.setPrototypeOf(this, UserQueryPredicateNotMetException.prototype);
321
309
  }
322
310
  }
311
+ export class WorkspaceNotFoundException extends __BaseException {
312
+ name = "WorkspaceNotFoundException";
313
+ $fault = "client";
314
+ constructor(opts) {
315
+ super({
316
+ name: "WorkspaceNotFoundException",
317
+ $fault: "client",
318
+ ...opts
319
+ });
320
+ Object.setPrototypeOf(this, WorkspaceNotFoundException.prototype);
321
+ }
322
+ }
@@ -3,22 +3,6 @@ import { AccountNotFoundException, BotApiKeyNotFoundException, BotEndpoint, BotL
3
3
  import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
4
4
  import { requestBuilder as rb } from "@smithy/core";
5
5
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
6
- export const se_AddIdentityCommand = async (input, context) => {
7
- const b = rb(input, context);
8
- const headers = {
9
- 'content-type': 'application/json',
10
- };
11
- b.bp("/v2/users/accounts/{accountId}/identities");
12
- b.p('accountId', () => input.accountId, '{accountId}', false);
13
- let body;
14
- body = JSON.stringify(take(input, {
15
- 'identity': [],
16
- }));
17
- b.m("POST")
18
- .h(headers)
19
- .b(body);
20
- return b.build();
21
- };
22
6
  export const se_BatchGetUsersCommand = async (input, context) => {
23
7
  const b = rb(input, context);
24
8
  const headers = {
@@ -109,6 +93,7 @@ export const se_CreateBotCommand = async (input, context) => {
109
93
  'access': [],
110
94
  'callback': _ => se_BotCallback(_, context),
111
95
  'category': [],
96
+ 'groupId': [],
112
97
  'name': [],
113
98
  'picture': [],
114
99
  'searchable': [],
@@ -341,13 +326,18 @@ export const se_InviteCommand = async (input, context) => {
341
326
  .b(body);
342
327
  return b.build();
343
328
  };
344
- export const se_ListAccountIdentitiesCommand = async (input, context) => {
329
+ export const se_LinkIdentityCommand = async (input, context) => {
345
330
  const b = rb(input, context);
346
- const headers = {};
331
+ const headers = {
332
+ 'content-type': 'application/json',
333
+ };
347
334
  b.bp("/v2/users/accounts/{accountId}/identities");
348
335
  b.p('accountId', () => input.accountId, '{accountId}', false);
349
336
  let body;
350
- b.m("GET")
337
+ body = JSON.stringify(take(input, {
338
+ 'identity': [],
339
+ }));
340
+ b.m("POST")
351
341
  .h(headers)
352
342
  .b(body);
353
343
  return b.build();
@@ -381,6 +371,17 @@ export const se_ListBotsCommand = async (input, context) => {
381
371
  .b(body);
382
372
  return b.build();
383
373
  };
374
+ export const se_ListIdentitiesCommand = async (input, context) => {
375
+ const b = rb(input, context);
376
+ const headers = {};
377
+ b.bp("/v2/users/accounts/{accountId}/identities");
378
+ b.p('accountId', () => input.accountId, '{accountId}', false);
379
+ let body;
380
+ b.m("GET")
381
+ .h(headers)
382
+ .b(body);
383
+ return b.build();
384
+ };
384
385
  export const se_ListWorkspacesCommand = async (input, context) => {
385
386
  const b = rb(input, context);
386
387
  const headers = {};
@@ -461,18 +462,6 @@ export const se_QueryUsersCommand = async (input, context) => {
461
462
  .b(body);
462
463
  return b.build();
463
464
  };
464
- export const se_RemoveIdentityCommand = async (input, context) => {
465
- const b = rb(input, context);
466
- const headers = {};
467
- b.bp("/v2/users/accounts/{accountId}/identities/{identity}");
468
- b.p('accountId', () => input.accountId, '{accountId}', false);
469
- b.p('identity', () => input.identity, '{identity}', false);
470
- let body;
471
- b.m("DELETE")
472
- .h(headers)
473
- .b(body);
474
- return b.build();
475
- };
476
465
  export const se_ToggleTranscriptionEmailNotificationsSubscriptionCommand = async (input, context) => {
477
466
  const b = rb(input, context);
478
467
  const headers = {
@@ -505,7 +494,19 @@ export const se_ToggleUnreadEmailNotificationsSubscriptionCommand = async (input
505
494
  .b(body);
506
495
  return b.build();
507
496
  };
508
- export const se_UnbindWorkspaceCommand = async (input, context) => {
497
+ export const se_UnlinkIdentityCommand = async (input, context) => {
498
+ const b = rb(input, context);
499
+ const headers = {};
500
+ b.bp("/v2/users/accounts/{accountId}/identities/{identity}");
501
+ b.p('accountId', () => input.accountId, '{accountId}', false);
502
+ b.p('identity', () => input.identity, '{identity}', false);
503
+ let body;
504
+ b.m("DELETE")
505
+ .h(headers)
506
+ .b(body);
507
+ return b.build();
508
+ };
509
+ export const se_UnlinkWorkspaceCommand = async (input, context) => {
509
510
  const b = rb(input, context);
510
511
  const headers = {};
511
512
  b.bp("/v2/users/accounts/{accountId}/workspaces/{workspaceId}");
@@ -548,6 +549,7 @@ export const se_UpdateBotCommand = async (input, context) => {
548
549
  body = JSON.stringify(take(input, {
549
550
  'access': [],
550
551
  'category': [],
552
+ 'groupId': [],
551
553
  'name': [],
552
554
  'picture': [],
553
555
  'searchable': [],
@@ -643,30 +645,27 @@ export const se_UploadPictureV1Command = async (input, context) => {
643
645
  .b(body);
644
646
  return b.build();
645
647
  };
646
- export const se_VerifyAddIdentityCommand = async (input, context) => {
648
+ export const se_VerifyBotSecretKeyCommand = async (input, context) => {
647
649
  const b = rb(input, context);
648
650
  const headers = {
649
651
  'content-type': 'application/json',
650
652
  };
651
- b.bp("/v2/users/accounts/{accountId}/identities/verify");
652
- b.p('accountId', () => input.accountId, '{accountId}', false);
653
+ b.bp("/v2/users/verify-bot-secret-key");
653
654
  let body;
654
655
  body = JSON.stringify(take(input, {
655
- 'identity': [],
656
- 'otp': [],
657
- 'primaryOtp': [],
656
+ 'secret': [],
658
657
  }));
659
658
  b.m("POST")
660
659
  .h(headers)
661
660
  .b(body);
662
661
  return b.build();
663
662
  };
664
- export const se_VerifyBotSecretKeyCommand = async (input, context) => {
663
+ export const se_VerifyBotSecretKeyV1Command = async (input, context) => {
665
664
  const b = rb(input, context);
666
665
  const headers = {
667
666
  'content-type': 'application/json',
668
667
  };
669
- b.bp("/v2/users/verify-bot-secret-key");
668
+ b.bp("/v2/users/auth/VerifyBotSecretKey");
670
669
  let body;
671
670
  body = JSON.stringify(take(input, {
672
671
  'secret': [],
@@ -676,35 +675,23 @@ export const se_VerifyBotSecretKeyCommand = async (input, context) => {
676
675
  .b(body);
677
676
  return b.build();
678
677
  };
679
- export const se_VerifyBotSecretKeyV1Command = async (input, context) => {
678
+ export const se_VerifyIdentityCommand = async (input, context) => {
680
679
  const b = rb(input, context);
681
680
  const headers = {
682
681
  'content-type': 'application/json',
683
682
  };
684
- b.bp("/v2/users/auth/VerifyBotSecretKey");
683
+ b.bp("/v2/users/accounts/{accountId}/identities/verify");
684
+ b.p('accountId', () => input.accountId, '{accountId}', false);
685
685
  let body;
686
686
  body = JSON.stringify(take(input, {
687
- 'secret': [],
687
+ 'identity': [],
688
+ 'otp': [],
688
689
  }));
689
690
  b.m("POST")
690
691
  .h(headers)
691
692
  .b(body);
692
693
  return b.build();
693
694
  };
694
- export const de_AddIdentityCommand = async (output, context) => {
695
- if (output.statusCode !== 200 && output.statusCode >= 300) {
696
- return de_CommandError(output, context);
697
- }
698
- const contents = map({
699
- $metadata: deserializeMetadata(output),
700
- });
701
- const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
702
- const doc = take(data, {
703
- 'identity': _json,
704
- });
705
- Object.assign(contents, doc);
706
- return contents;
707
- };
708
695
  export const de_BatchGetUsersCommand = async (output, context) => {
709
696
  if (output.statusCode !== 200 && output.statusCode >= 300) {
710
697
  return de_CommandError(output, context);
@@ -994,7 +981,7 @@ export const de_InviteCommand = async (output, context) => {
994
981
  Object.assign(contents, doc);
995
982
  return contents;
996
983
  };
997
- export const de_ListAccountIdentitiesCommand = async (output, context) => {
984
+ export const de_LinkIdentityCommand = async (output, context) => {
998
985
  if (output.statusCode !== 200 && output.statusCode >= 300) {
999
986
  return de_CommandError(output, context);
1000
987
  }
@@ -1003,7 +990,7 @@ export const de_ListAccountIdentitiesCommand = async (output, context) => {
1003
990
  });
1004
991
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1005
992
  const doc = take(data, {
1006
- 'identities': _json,
993
+ 'identity': _json,
1007
994
  });
1008
995
  Object.assign(contents, doc);
1009
996
  return contents;
@@ -1036,6 +1023,20 @@ export const de_ListBotsCommand = async (output, context) => {
1036
1023
  Object.assign(contents, doc);
1037
1024
  return contents;
1038
1025
  };
1026
+ export const de_ListIdentitiesCommand = async (output, context) => {
1027
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1028
+ return de_CommandError(output, context);
1029
+ }
1030
+ const contents = map({
1031
+ $metadata: deserializeMetadata(output),
1032
+ });
1033
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1034
+ const doc = take(data, {
1035
+ 'identities': _json,
1036
+ });
1037
+ Object.assign(contents, doc);
1038
+ return contents;
1039
+ };
1039
1040
  export const de_ListWorkspacesCommand = async (output, context) => {
1040
1041
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1041
1042
  return de_CommandError(output, context);
@@ -1106,7 +1107,7 @@ export const de_QueryUsersCommand = async (output, context) => {
1106
1107
  Object.assign(contents, doc);
1107
1108
  return contents;
1108
1109
  };
1109
- export const de_RemoveIdentityCommand = async (output, context) => {
1110
+ export const de_ToggleTranscriptionEmailNotificationsSubscriptionCommand = async (output, context) => {
1110
1111
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1111
1112
  return de_CommandError(output, context);
1112
1113
  }
@@ -1116,7 +1117,7 @@ export const de_RemoveIdentityCommand = async (output, context) => {
1116
1117
  await collectBody(output.body, context);
1117
1118
  return contents;
1118
1119
  };
1119
- export const de_ToggleTranscriptionEmailNotificationsSubscriptionCommand = async (output, context) => {
1120
+ export const de_ToggleUnreadEmailNotificationsSubscriptionCommand = async (output, context) => {
1120
1121
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1121
1122
  return de_CommandError(output, context);
1122
1123
  }
@@ -1126,7 +1127,7 @@ export const de_ToggleTranscriptionEmailNotificationsSubscriptionCommand = async
1126
1127
  await collectBody(output.body, context);
1127
1128
  return contents;
1128
1129
  };
1129
- export const de_ToggleUnreadEmailNotificationsSubscriptionCommand = async (output, context) => {
1130
+ export const de_UnlinkIdentityCommand = async (output, context) => {
1130
1131
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1131
1132
  return de_CommandError(output, context);
1132
1133
  }
@@ -1136,7 +1137,7 @@ export const de_ToggleUnreadEmailNotificationsSubscriptionCommand = async (outpu
1136
1137
  await collectBody(output.body, context);
1137
1138
  return contents;
1138
1139
  };
1139
- export const de_UnbindWorkspaceCommand = async (output, context) => {
1140
+ export const de_UnlinkWorkspaceCommand = async (output, context) => {
1140
1141
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1141
1142
  return de_CommandError(output, context);
1142
1143
  }
@@ -1244,7 +1245,7 @@ export const de_UploadPictureV1Command = async (output, context) => {
1244
1245
  Object.assign(contents, doc);
1245
1246
  return contents;
1246
1247
  };
1247
- export const de_VerifyAddIdentityCommand = async (output, context) => {
1248
+ export const de_VerifyBotSecretKeyCommand = async (output, context) => {
1248
1249
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1249
1250
  return de_CommandError(output, context);
1250
1251
  }
@@ -1253,12 +1254,14 @@ export const de_VerifyAddIdentityCommand = async (output, context) => {
1253
1254
  });
1254
1255
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1255
1256
  const doc = take(data, {
1256
- 'identity': _json,
1257
+ 'company': __expectString,
1258
+ 'id': __expectString,
1259
+ 'name': __expectString,
1257
1260
  });
1258
1261
  Object.assign(contents, doc);
1259
1262
  return contents;
1260
1263
  };
1261
- export const de_VerifyBotSecretKeyCommand = async (output, context) => {
1264
+ export const de_VerifyBotSecretKeyV1Command = async (output, context) => {
1262
1265
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1263
1266
  return de_CommandError(output, context);
1264
1267
  }
@@ -1274,7 +1277,7 @@ export const de_VerifyBotSecretKeyCommand = async (output, context) => {
1274
1277
  Object.assign(contents, doc);
1275
1278
  return contents;
1276
1279
  };
1277
- export const de_VerifyBotSecretKeyV1Command = async (output, context) => {
1280
+ export const de_VerifyIdentityCommand = async (output, context) => {
1278
1281
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1279
1282
  return de_CommandError(output, context);
1280
1283
  }
@@ -1283,9 +1286,7 @@ export const de_VerifyBotSecretKeyV1Command = async (output, context) => {
1283
1286
  });
1284
1287
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1285
1288
  const doc = take(data, {
1286
- 'company': __expectString,
1287
- 'id': __expectString,
1288
- 'name': __expectString,
1289
+ 'identity': _json,
1289
1290
  });
1290
1291
  Object.assign(contents, doc);
1291
1292
  return contents;
@@ -1297,30 +1298,12 @@ const de_CommandError = async (output, context) => {
1297
1298
  };
1298
1299
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1299
1300
  switch (errorCode) {
1300
- case "AccountNotFoundException":
1301
- case "wildix.xbees.users#AccountNotFoundException":
1302
- throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
1303
- case "CannotRemovePrimaryIdentityException":
1304
- case "wildix.xbees.users#CannotRemovePrimaryIdentityException":
1305
- throw await de_CannotRemovePrimaryIdentityExceptionRes(parsedOutput, context);
1306
- case "CannotUnbindDefaultWorkspaceException":
1307
- case "wildix.xbees.users#CannotUnbindDefaultWorkspaceException":
1308
- throw await de_CannotUnbindDefaultWorkspaceExceptionRes(parsedOutput, context);
1309
1301
  case "ForbiddenException":
1310
1302
  case "smithy.framework#ForbiddenException":
1311
1303
  throw await de_ForbiddenExceptionRes(parsedOutput, context);
1312
- case "IdentityAlreadyLinkedException":
1313
- case "wildix.xbees.users#IdentityAlreadyLinkedException":
1314
- throw await de_IdentityAlreadyLinkedExceptionRes(parsedOutput, context);
1315
- case "IdentityNotFoundException":
1316
- case "wildix.xbees.users#IdentityNotFoundException":
1317
- throw await de_IdentityNotFoundExceptionRes(parsedOutput, context);
1318
1304
  case "ValidationException":
1319
1305
  case "smithy.framework#ValidationException":
1320
1306
  throw await de_ValidationExceptionRes(parsedOutput, context);
1321
- case "WorkspaceNotFoundException":
1322
- case "wildix.xbees.users#WorkspaceNotFoundException":
1323
- throw await de_WorkspaceNotFoundExceptionRes(parsedOutput, context);
1324
1307
  case "UserCompanyNotValidException":
1325
1308
  case "wildix.xbees.users#UserCompanyNotValidException":
1326
1309
  throw await de_UserCompanyNotValidExceptionRes(parsedOutput, context);
@@ -1333,9 +1316,27 @@ const de_CommandError = async (output, context) => {
1333
1316
  case "BotApiKeyNotFoundException":
1334
1317
  case "wildix.xbees.users#BotApiKeyNotFoundException":
1335
1318
  throw await de_BotApiKeyNotFoundExceptionRes(parsedOutput, context);
1319
+ case "AccountNotFoundException":
1320
+ case "wildix.xbees.users#AccountNotFoundException":
1321
+ throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
1322
+ case "IdentityAlreadyLinkedException":
1323
+ case "wildix.xbees.users#IdentityAlreadyLinkedException":
1324
+ throw await de_IdentityAlreadyLinkedExceptionRes(parsedOutput, context);
1336
1325
  case "UserQueryPredicateNotMetException":
1337
1326
  case "wildix.xbees.users#UserQueryPredicateNotMetException":
1338
1327
  throw await de_UserQueryPredicateNotMetExceptionRes(parsedOutput, context);
1328
+ case "CannotRemovePrimaryIdentityException":
1329
+ case "wildix.xbees.users#CannotRemovePrimaryIdentityException":
1330
+ throw await de_CannotRemovePrimaryIdentityExceptionRes(parsedOutput, context);
1331
+ case "IdentityNotFoundException":
1332
+ case "wildix.xbees.users#IdentityNotFoundException":
1333
+ throw await de_IdentityNotFoundExceptionRes(parsedOutput, context);
1334
+ case "CannotUnbindDefaultWorkspaceException":
1335
+ case "wildix.xbees.users#CannotUnbindDefaultWorkspaceException":
1336
+ throw await de_CannotUnbindDefaultWorkspaceExceptionRes(parsedOutput, context);
1337
+ case "WorkspaceNotFoundException":
1338
+ case "wildix.xbees.users#WorkspaceNotFoundException":
1339
+ throw await de_WorkspaceNotFoundExceptionRes(parsedOutput, context);
1339
1340
  case "BotSecretKeyNotValidException":
1340
1341
  case "wildix.xbees.users#BotSecretKeyNotValidException":
1341
1342
  throw await de_BotSecretKeyNotValidExceptionRes(parsedOutput, context);