@wildix/xbees-users-client 4.3.0 → 4.3.3-wms26787.1

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 (42) hide show
  1. package/dist-cjs/Users.js +8 -6
  2. package/dist-cjs/auth/httpAuthSchemeProvider.js +63 -0
  3. package/dist-cjs/commands/{LinkIdentityCommand.js → ApplyIdentityRemovalCommand.js} +6 -6
  4. package/dist-cjs/commands/{VerifyIdentityCommand.js → ConfirmIdentityChallengeCommand.js} +6 -6
  5. package/dist-cjs/commands/ResendIdentityChallengeCodeCommand.js +20 -0
  6. package/dist-cjs/commands/{UnlinkIdentityCommand.js → StartIdentityChallengeCommand.js} +6 -6
  7. package/dist-cjs/commands/index.js +4 -3
  8. package/dist-cjs/models/enums.js +17 -1
  9. package/dist-cjs/models/errors.js +106 -24
  10. package/dist-cjs/schemas/schemas_0.js +183 -89
  11. package/dist-es/Users.js +8 -6
  12. package/dist-es/auth/httpAuthSchemeProvider.js +63 -0
  13. package/dist-es/commands/{UnlinkIdentityCommand.js → ApplyIdentityRemovalCommand.js} +5 -5
  14. package/dist-es/commands/{LinkIdentityCommand.js → ConfirmIdentityChallengeCommand.js} +5 -5
  15. package/dist-es/commands/ResendIdentityChallengeCodeCommand.js +16 -0
  16. package/dist-es/commands/{VerifyIdentityCommand.js → StartIdentityChallengeCommand.js} +5 -5
  17. package/dist-es/commands/index.js +4 -3
  18. package/dist-es/models/enums.js +16 -0
  19. package/dist-es/models/errors.js +96 -20
  20. package/dist-es/schemas/schemas_0.js +179 -85
  21. package/dist-types/Users.d.ts +28 -21
  22. package/dist-types/UsersClient.d.ts +6 -5
  23. package/dist-types/commands/ApplyIdentityRemovalCommand.d.ts +93 -0
  24. package/dist-types/commands/ConfirmIdentityChallengeCommand.d.ts +138 -0
  25. package/dist-types/commands/GetAccountCommand.d.ts +1 -1
  26. package/dist-types/commands/ListIdentitiesCommand.d.ts +4 -2
  27. package/dist-types/commands/ListWorkspacesCommand.d.ts +1 -1
  28. package/dist-types/commands/QueryUserCommand.d.ts +2 -1
  29. package/dist-types/commands/QueryUsersCommand.d.ts +2 -1
  30. package/dist-types/commands/ResendIdentityChallengeCodeCommand.d.ts +96 -0
  31. package/dist-types/commands/StartIdentityChallengeCommand.d.ts +138 -0
  32. package/dist-types/commands/UnlinkWorkspaceCommand.d.ts +1 -1
  33. package/dist-types/commands/UpdateAccountCommand.d.ts +2 -1
  34. package/dist-types/commands/index.d.ts +4 -3
  35. package/dist-types/models/enums.d.ts +70 -0
  36. package/dist-types/models/errors.d.ts +102 -17
  37. package/dist-types/models/models_0.d.ts +274 -87
  38. package/dist-types/schemas/schemas_0.d.ts +21 -9
  39. package/package.json +5 -5
  40. package/dist-types/commands/LinkIdentityCommand.d.ts +0 -89
  41. package/dist-types/commands/UnlinkIdentityCommand.d.ts +0 -85
  42. package/dist-types/commands/VerifyIdentityCommand.d.ts +0 -90
package/dist-es/Users.js CHANGED
@@ -1,9 +1,11 @@
1
1
  import { createAggregatedClient } from "@smithy/core/client";
2
+ import { ApplyIdentityRemovalCommand, } from "./commands/ApplyIdentityRemovalCommand";
2
3
  import { BatchGetUsersCommand, } from "./commands/BatchGetUsersCommand";
3
4
  import { BatchGetUsersEmailNotificationsSettingsCommand, } from "./commands/BatchGetUsersEmailNotificationsSettingsCommand";
4
5
  import { BatchGetUsersPbxLinkDataCommand, } from "./commands/BatchGetUsersPbxLinkDataCommand";
5
6
  import { BatchGetUsersPbxLinkDataV1Command, } from "./commands/BatchGetUsersPbxLinkDataV1Command";
6
7
  import { ChangeUserEmailCommand, } from "./commands/ChangeUserEmailCommand";
8
+ import { ConfirmIdentityChallengeCommand, } from "./commands/ConfirmIdentityChallengeCommand";
7
9
  import { CreateAnonymousSessionCommand, } from "./commands/CreateAnonymousSessionCommand";
8
10
  import { CreateBotApiKeyCommand, } from "./commands/CreateBotApiKeyCommand";
9
11
  import { CreateBotCommand } from "./commands/CreateBotCommand";
@@ -21,7 +23,6 @@ import { GetUserPbxLinkSuggestionCommand, } from "./commands/GetUserPbxLinkSugge
21
23
  import { GetUserPbxLinkSuggestionV1Command, } from "./commands/GetUserPbxLinkSuggestionV1Command";
22
24
  import { IntelligenceSearchCommand, } from "./commands/IntelligenceSearchCommand";
23
25
  import { InviteCommand } from "./commands/InviteCommand";
24
- import { LinkIdentityCommand, } from "./commands/LinkIdentityCommand";
25
26
  import { ListBotApiKeysCommand, } from "./commands/ListBotApiKeysCommand";
26
27
  import { ListBotsCommand } from "./commands/ListBotsCommand";
27
28
  import { ListIdentitiesCommand, } from "./commands/ListIdentitiesCommand";
@@ -30,10 +31,11 @@ import { PartialUpdateUserEmailNotificationsSettingsCommand, } from "./commands/
30
31
  import { QueryColleaguesCommand, } from "./commands/QueryColleaguesCommand";
31
32
  import { QueryUserCommand } from "./commands/QueryUserCommand";
32
33
  import { QueryUsersCommand, } from "./commands/QueryUsersCommand";
34
+ import { ResendIdentityChallengeCodeCommand, } from "./commands/ResendIdentityChallengeCodeCommand";
33
35
  import { ResetUserChatHistoryCommand, } from "./commands/ResetUserChatHistoryCommand";
36
+ import { StartIdentityChallengeCommand, } from "./commands/StartIdentityChallengeCommand";
34
37
  import { ToggleTranscriptionEmailNotificationsSubscriptionCommand, } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
35
38
  import { ToggleUnreadEmailNotificationsSubscriptionCommand, } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
36
- import { UnlinkIdentityCommand, } from "./commands/UnlinkIdentityCommand";
37
39
  import { UnlinkWorkspaceCommand, } from "./commands/UnlinkWorkspaceCommand";
38
40
  import { UpdateAccountCommand, } from "./commands/UpdateAccountCommand";
39
41
  import { UpdateBotCallbackCommand, } from "./commands/UpdateBotCallbackCommand";
@@ -44,14 +46,15 @@ import { UploadPictureCommand, } from "./commands/UploadPictureCommand";
44
46
  import { UploadPictureV1Command, } from "./commands/UploadPictureV1Command";
45
47
  import { VerifyBotSecretKeyCommand, } from "./commands/VerifyBotSecretKeyCommand";
46
48
  import { VerifyBotSecretKeyV1Command, } from "./commands/VerifyBotSecretKeyV1Command";
47
- import { VerifyIdentityCommand, } from "./commands/VerifyIdentityCommand";
48
49
  import { UsersClient } from "./UsersClient";
49
50
  const commands = {
51
+ ApplyIdentityRemovalCommand,
50
52
  BatchGetUsersCommand,
51
53
  BatchGetUsersEmailNotificationsSettingsCommand,
52
54
  BatchGetUsersPbxLinkDataCommand,
53
55
  BatchGetUsersPbxLinkDataV1Command,
54
56
  ChangeUserEmailCommand,
57
+ ConfirmIdentityChallengeCommand,
55
58
  CreateAnonymousSessionCommand,
56
59
  CreateBotCommand,
57
60
  CreateBotApiKeyCommand,
@@ -69,7 +72,6 @@ const commands = {
69
72
  GetUserPbxLinkSuggestionV1Command,
70
73
  IntelligenceSearchCommand,
71
74
  InviteCommand,
72
- LinkIdentityCommand,
73
75
  ListBotApiKeysCommand,
74
76
  ListBotsCommand,
75
77
  ListIdentitiesCommand,
@@ -78,10 +80,11 @@ const commands = {
78
80
  QueryColleaguesCommand,
79
81
  QueryUserCommand,
80
82
  QueryUsersCommand,
83
+ ResendIdentityChallengeCodeCommand,
81
84
  ResetUserChatHistoryCommand,
85
+ StartIdentityChallengeCommand,
82
86
  ToggleTranscriptionEmailNotificationsSubscriptionCommand,
83
87
  ToggleUnreadEmailNotificationsSubscriptionCommand,
84
- UnlinkIdentityCommand,
85
88
  UnlinkWorkspaceCommand,
86
89
  UpdateAccountCommand,
87
90
  UpdateBotCommand,
@@ -92,7 +95,6 @@ const commands = {
92
95
  UploadPictureV1Command,
93
96
  VerifyBotSecretKeyCommand,
94
97
  VerifyBotSecretKeyV1Command,
95
- VerifyIdentityCommand,
96
98
  };
97
99
  export class Users extends UsersClient {
98
100
  }
@@ -43,18 +43,67 @@ function createWildixAuthXbsHttpAuthOption(authParameters) {
43
43
  export const defaultUsersHttpAuthSchemeProvider = (authParameters) => {
44
44
  const options = [];
45
45
  switch (authParameters.operation) {
46
+ case "ApplyIdentityRemoval":
47
+ {
48
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
49
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
50
+ break;
51
+ }
52
+ ;
53
+ case "ConfirmIdentityChallenge":
54
+ {
55
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
56
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
57
+ break;
58
+ }
59
+ ;
46
60
  case "CreateAnonymousSession":
47
61
  {
48
62
  options.push(createSmithyApiNoAuthHttpAuthOption(authParameters));
49
63
  break;
50
64
  }
51
65
  ;
66
+ case "GetAccount":
67
+ {
68
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
69
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
70
+ break;
71
+ }
72
+ ;
73
+ case "ListIdentities":
74
+ {
75
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
76
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
77
+ break;
78
+ }
79
+ ;
80
+ case "ListWorkspaces":
81
+ {
82
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
83
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
84
+ break;
85
+ }
86
+ ;
87
+ case "ResendIdentityChallengeCode":
88
+ {
89
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
90
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
91
+ break;
92
+ }
93
+ ;
52
94
  case "ResetUserChatHistory":
53
95
  {
54
96
  options.push(createWildixAuthPbxHttpAuthOption(authParameters));
55
97
  break;
56
98
  }
57
99
  ;
100
+ case "StartIdentityChallenge":
101
+ {
102
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
103
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
104
+ break;
105
+ }
106
+ ;
58
107
  case "ToggleTranscriptionEmailNotificationsSubscription":
59
108
  {
60
109
  options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
@@ -79,6 +128,20 @@ export const defaultUsersHttpAuthSchemeProvider = (authParameters) => {
79
128
  break;
80
129
  }
81
130
  ;
131
+ case "UnlinkWorkspace":
132
+ {
133
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
134
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
135
+ break;
136
+ }
137
+ ;
138
+ case "UpdateAccount":
139
+ {
140
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
141
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
142
+ break;
143
+ }
144
+ ;
82
145
  case "UpdateWorkspace":
83
146
  {
84
147
  options.push(createWildixAuthS2sHttpAuthOption(authParameters));
@@ -1,16 +1,16 @@
1
1
  import { Command as $Command } from "@smithy/core/client";
2
2
  import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { UnlinkIdentity$ } from "../schemas/schemas_0";
4
+ import { ApplyIdentityRemoval$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
- export class UnlinkIdentityCommand extends $Command
6
+ export class ApplyIdentityRemovalCommand extends $Command
7
7
  .classBuilder()
8
8
  .ep(commonParams)
9
9
  .m(function (Command, cs, config, o) {
10
10
  return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
11
  })
12
- .s("Users", "UnlinkIdentity", {})
13
- .n("UsersClient", "UnlinkIdentityCommand")
14
- .sc(UnlinkIdentity$)
12
+ .s("Users", "ApplyIdentityRemoval", {})
13
+ .n("UsersClient", "ApplyIdentityRemovalCommand")
14
+ .sc(ApplyIdentityRemoval$)
15
15
  .build() {
16
16
  }
@@ -1,16 +1,16 @@
1
1
  import { Command as $Command } from "@smithy/core/client";
2
2
  import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { LinkIdentity$ } from "../schemas/schemas_0";
4
+ import { ConfirmIdentityChallenge$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
- export class LinkIdentityCommand extends $Command
6
+ export class ConfirmIdentityChallengeCommand extends $Command
7
7
  .classBuilder()
8
8
  .ep(commonParams)
9
9
  .m(function (Command, cs, config, o) {
10
10
  return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
11
  })
12
- .s("Users", "LinkIdentity", {})
13
- .n("UsersClient", "LinkIdentityCommand")
14
- .sc(LinkIdentity$)
12
+ .s("Users", "ConfirmIdentityChallenge", {})
13
+ .n("UsersClient", "ConfirmIdentityChallengeCommand")
14
+ .sc(ConfirmIdentityChallenge$)
15
15
  .build() {
16
16
  }
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ResendIdentityChallengeCode$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ResendIdentityChallengeCodeCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("Users", "ResendIdentityChallengeCode", {})
13
+ .n("UsersClient", "ResendIdentityChallengeCodeCommand")
14
+ .sc(ResendIdentityChallengeCode$)
15
+ .build() {
16
+ }
@@ -1,16 +1,16 @@
1
1
  import { Command as $Command } from "@smithy/core/client";
2
2
  import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { VerifyIdentity$ } from "../schemas/schemas_0";
4
+ import { StartIdentityChallenge$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
- export class VerifyIdentityCommand extends $Command
6
+ export class StartIdentityChallengeCommand extends $Command
7
7
  .classBuilder()
8
8
  .ep(commonParams)
9
9
  .m(function (Command, cs, config, o) {
10
10
  return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
11
  })
12
- .s("Users", "VerifyIdentity", {})
13
- .n("UsersClient", "VerifyIdentityCommand")
14
- .sc(VerifyIdentity$)
12
+ .s("Users", "StartIdentityChallenge", {})
13
+ .n("UsersClient", "StartIdentityChallengeCommand")
14
+ .sc(StartIdentityChallenge$)
15
15
  .build() {
16
16
  }
@@ -1,8 +1,10 @@
1
+ export * from "./ApplyIdentityRemovalCommand";
1
2
  export * from "./BatchGetUsersCommand";
2
3
  export * from "./BatchGetUsersEmailNotificationsSettingsCommand";
3
4
  export * from "./BatchGetUsersPbxLinkDataCommand";
4
5
  export * from "./BatchGetUsersPbxLinkDataV1Command";
5
6
  export * from "./ChangeUserEmailCommand";
7
+ export * from "./ConfirmIdentityChallengeCommand";
6
8
  export * from "./CreateAnonymousSessionCommand";
7
9
  export * from "./CreateBotApiKeyCommand";
8
10
  export * from "./CreateBotCommand";
@@ -20,7 +22,6 @@ export * from "./GetUserPbxLinkSuggestionCommand";
20
22
  export * from "./GetUserPbxLinkSuggestionV1Command";
21
23
  export * from "./IntelligenceSearchCommand";
22
24
  export * from "./InviteCommand";
23
- export * from "./LinkIdentityCommand";
24
25
  export * from "./ListBotApiKeysCommand";
25
26
  export * from "./ListBotsCommand";
26
27
  export * from "./ListIdentitiesCommand";
@@ -29,10 +30,11 @@ export * from "./PartialUpdateUserEmailNotificationsSettingsCommand";
29
30
  export * from "./QueryColleaguesCommand";
30
31
  export * from "./QueryUserCommand";
31
32
  export * from "./QueryUsersCommand";
33
+ export * from "./ResendIdentityChallengeCodeCommand";
32
34
  export * from "./ResetUserChatHistoryCommand";
35
+ export * from "./StartIdentityChallengeCommand";
33
36
  export * from "./ToggleTranscriptionEmailNotificationsSubscriptionCommand";
34
37
  export * from "./ToggleUnreadEmailNotificationsSubscriptionCommand";
35
- export * from "./UnlinkIdentityCommand";
36
38
  export * from "./UnlinkWorkspaceCommand";
37
39
  export * from "./UpdateAccountCommand";
38
40
  export * from "./UpdateBotCallbackCommand";
@@ -43,4 +45,3 @@ export * from "./UploadPictureCommand";
43
45
  export * from "./UploadPictureV1Command";
44
46
  export * from "./VerifyBotSecretKeyCommand";
45
47
  export * from "./VerifyBotSecretKeyV1Command";
46
- export * from "./VerifyIdentityCommand";
@@ -93,6 +93,22 @@ export const BotLlmFunctionIntegrationMethod = {
93
93
  export const BotLlmToolType = {
94
94
  FUNCTION: "function",
95
95
  };
96
+ export const IdentityType = {
97
+ EMAIL: "email",
98
+ PHONE: "phone",
99
+ };
100
+ export const IdentityChallengeStep = {
101
+ DONE: "done",
102
+ PRIMARY_CODE: "primaryCode",
103
+ READY_TO_APPLY: "readyToApply",
104
+ TARGET_CODE: "targetCode",
105
+ };
106
+ export const IdentityChallengeOperation = {
107
+ ADD: "add",
108
+ MAKE_PRIMARY: "makePrimary",
109
+ REMOVE: "remove",
110
+ VERIFY: "verify",
111
+ };
96
112
  export const WorkspaceType = {
97
113
  PERSONAL: "personal",
98
114
  SUPPORT: "support",
@@ -31,6 +31,18 @@ export class RateLimitExceededException extends __BaseException {
31
31
  this.retryAfter = opts.retryAfter;
32
32
  }
33
33
  }
34
+ export class ServiceUnavailableException extends __BaseException {
35
+ name = "ServiceUnavailableException";
36
+ $fault = "server";
37
+ constructor(opts) {
38
+ super({
39
+ name: "ServiceUnavailableException",
40
+ $fault: "server",
41
+ ...opts,
42
+ });
43
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
44
+ }
45
+ }
34
46
  export class ValidationException extends __BaseException {
35
47
  name = "ValidationException";
36
48
  $fault = "client";
@@ -79,6 +91,42 @@ export class AccountNotFoundException extends __BaseException {
79
91
  Object.setPrototypeOf(this, AccountNotFoundException.prototype);
80
92
  }
81
93
  }
94
+ export class CannotRemovePrimaryIdentityException extends __BaseException {
95
+ name = "CannotRemovePrimaryIdentityException";
96
+ $fault = "client";
97
+ constructor(opts) {
98
+ super({
99
+ name: "CannotRemovePrimaryIdentityException",
100
+ $fault: "client",
101
+ ...opts,
102
+ });
103
+ Object.setPrototypeOf(this, CannotRemovePrimaryIdentityException.prototype);
104
+ }
105
+ }
106
+ export class ChallengeNotFoundException extends __BaseException {
107
+ name = "ChallengeNotFoundException";
108
+ $fault = "client";
109
+ constructor(opts) {
110
+ super({
111
+ name: "ChallengeNotFoundException",
112
+ $fault: "client",
113
+ ...opts,
114
+ });
115
+ Object.setPrototypeOf(this, ChallengeNotFoundException.prototype);
116
+ }
117
+ }
118
+ export class IdentityNotFoundException extends __BaseException {
119
+ name = "IdentityNotFoundException";
120
+ $fault = "client";
121
+ constructor(opts) {
122
+ super({
123
+ name: "IdentityNotFoundException",
124
+ $fault: "client",
125
+ ...opts,
126
+ });
127
+ Object.setPrototypeOf(this, IdentityNotFoundException.prototype);
128
+ }
129
+ }
82
130
  export class BotAlreadyExistsException extends __BaseException {
83
131
  name = "BotAlreadyExistsException";
84
132
  $fault = "client";
@@ -127,18 +175,6 @@ export class BotSecretKeyNotValidException extends __BaseException {
127
175
  Object.setPrototypeOf(this, BotSecretKeyNotValidException.prototype);
128
176
  }
129
177
  }
130
- export class CannotRemovePrimaryIdentityException extends __BaseException {
131
- name = "CannotRemovePrimaryIdentityException";
132
- $fault = "client";
133
- constructor(opts) {
134
- super({
135
- name: "CannotRemovePrimaryIdentityException",
136
- $fault: "client",
137
- ...opts,
138
- });
139
- Object.setPrototypeOf(this, CannotRemovePrimaryIdentityException.prototype);
140
- }
141
- }
142
178
  export class CannotUnbindDefaultWorkspaceException extends __BaseException {
143
179
  name = "CannotUnbindDefaultWorkspaceException";
144
180
  $fault = "client";
@@ -175,16 +211,16 @@ export class UserNotFoundException extends __BaseException {
175
211
  Object.setPrototypeOf(this, UserNotFoundException.prototype);
176
212
  }
177
213
  }
178
- export class PublicAccessIsRestrictedException extends __BaseException {
179
- name = "PublicAccessIsRestrictedException";
214
+ export class CodeExpiredException extends __BaseException {
215
+ name = "CodeExpiredException";
180
216
  $fault = "client";
181
217
  constructor(opts) {
182
218
  super({
183
- name: "PublicAccessIsRestrictedException",
219
+ name: "CodeExpiredException",
184
220
  $fault: "client",
185
221
  ...opts,
186
222
  });
187
- Object.setPrototypeOf(this, PublicAccessIsRestrictedException.prototype);
223
+ Object.setPrototypeOf(this, CodeExpiredException.prototype);
188
224
  }
189
225
  }
190
226
  export class IdentityAlreadyLinkedException extends __BaseException {
@@ -199,16 +235,56 @@ export class IdentityAlreadyLinkedException extends __BaseException {
199
235
  Object.setPrototypeOf(this, IdentityAlreadyLinkedException.prototype);
200
236
  }
201
237
  }
202
- export class IdentityNotFoundException extends __BaseException {
203
- name = "IdentityNotFoundException";
238
+ export class IncorrectCodeException extends __BaseException {
239
+ name = "IncorrectCodeException";
204
240
  $fault = "client";
205
241
  constructor(opts) {
206
242
  super({
207
- name: "IdentityNotFoundException",
243
+ name: "IncorrectCodeException",
208
244
  $fault: "client",
209
245
  ...opts,
210
246
  });
211
- Object.setPrototypeOf(this, IdentityNotFoundException.prototype);
247
+ Object.setPrototypeOf(this, IncorrectCodeException.prototype);
248
+ }
249
+ }
250
+ export class RateLimitedException extends __BaseException {
251
+ name = "RateLimitedException";
252
+ $fault = "client";
253
+ retryAfter;
254
+ constructor(opts) {
255
+ super({
256
+ name: "RateLimitedException",
257
+ $fault: "client",
258
+ ...opts,
259
+ });
260
+ Object.setPrototypeOf(this, RateLimitedException.prototype);
261
+ this.retryAfter = opts.retryAfter;
262
+ }
263
+ }
264
+ export class TooManyAttemptsException extends __BaseException {
265
+ name = "TooManyAttemptsException";
266
+ $fault = "client";
267
+ retryAfter;
268
+ constructor(opts) {
269
+ super({
270
+ name: "TooManyAttemptsException",
271
+ $fault: "client",
272
+ ...opts,
273
+ });
274
+ Object.setPrototypeOf(this, TooManyAttemptsException.prototype);
275
+ this.retryAfter = opts.retryAfter;
276
+ }
277
+ }
278
+ export class PublicAccessIsRestrictedException extends __BaseException {
279
+ name = "PublicAccessIsRestrictedException";
280
+ $fault = "client";
281
+ constructor(opts) {
282
+ super({
283
+ name: "PublicAccessIsRestrictedException",
284
+ $fault: "client",
285
+ ...opts,
286
+ });
287
+ Object.setPrototypeOf(this, PublicAccessIsRestrictedException.prototype);
212
288
  }
213
289
  }
214
290
  export class UserQueryPredicateNotMetException extends __BaseException {