@wildix/xbees-users-client 4.4.0-stage.1 → 4.4.0-wms29809.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 (41) hide show
  1. package/dist-cjs/Users.js +6 -10
  2. package/dist-cjs/auth/httpAuthSchemeProvider.js +18 -31
  3. package/dist-cjs/commands/{ApplyIdentityRemovalCommand.js → LinkIdentityCommand.js} +6 -6
  4. package/dist-cjs/commands/{ResetUserChatHistoryCommand.js → UnlinkIdentityCommand.js} +6 -6
  5. package/dist-cjs/commands/{StartIdentityChallengeCommand.js → VerifyIdentityCommand.js} +6 -6
  6. package/dist-cjs/commands/index.js +3 -5
  7. package/dist-cjs/models/enums.js +3 -25
  8. package/dist-cjs/models/errors.js +24 -106
  9. package/dist-cjs/schemas/schemas_0.js +69 -180
  10. package/dist-es/Users.js +6 -10
  11. package/dist-es/auth/httpAuthSchemeProvider.js +18 -31
  12. package/dist-es/commands/{ApplyIdentityRemovalCommand.js → LinkIdentityCommand.js} +5 -5
  13. package/dist-es/commands/{ResetUserChatHistoryCommand.js → UnlinkIdentityCommand.js} +5 -5
  14. package/dist-es/commands/{StartIdentityChallengeCommand.js → VerifyIdentityCommand.js} +5 -5
  15. package/dist-es/commands/index.js +3 -5
  16. package/dist-es/models/enums.js +2 -24
  17. package/dist-es/models/errors.js +20 -96
  18. package/dist-es/schemas/schemas_0.js +65 -176
  19. package/dist-types/Users.d.ts +21 -35
  20. package/dist-types/UsersClient.d.ts +5 -7
  21. package/dist-types/commands/ApplyAccountWorkspaceChangesCommand.d.ts +9 -8
  22. package/dist-types/commands/LinkIdentityCommand.d.ts +89 -0
  23. package/dist-types/commands/ListIdentitiesCommand.d.ts +2 -4
  24. package/dist-types/commands/UnlinkIdentityCommand.d.ts +85 -0
  25. package/dist-types/commands/UpdateAccountCommand.d.ts +1 -2
  26. package/dist-types/commands/VerifyIdentityCommand.d.ts +90 -0
  27. package/dist-types/commands/index.d.ts +3 -5
  28. package/dist-types/models/enums.d.ts +9 -103
  29. package/dist-types/models/errors.d.ts +17 -102
  30. package/dist-types/models/models_0.d.ts +80 -299
  31. package/dist-types/schemas/schemas_0.d.ts +9 -24
  32. package/package.json +1 -1
  33. package/dist-cjs/commands/ConfirmIdentityChallengeCommand.js +0 -20
  34. package/dist-cjs/commands/ResendIdentityChallengeCodeCommand.js +0 -20
  35. package/dist-es/commands/ConfirmIdentityChallengeCommand.js +0 -16
  36. package/dist-es/commands/ResendIdentityChallengeCodeCommand.js +0 -16
  37. package/dist-types/commands/ApplyIdentityRemovalCommand.d.ts +0 -93
  38. package/dist-types/commands/ConfirmIdentityChallengeCommand.d.ts +0 -138
  39. package/dist-types/commands/ResendIdentityChallengeCodeCommand.d.ts +0 -96
  40. package/dist-types/commands/ResetUserChatHistoryCommand.d.ts +0 -89
  41. package/dist-types/commands/StartIdentityChallengeCommand.d.ts +0 -139
@@ -1,12 +1,10 @@
1
1
  import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { type ApplyAccountWorkspaceChangesCommandInput, type ApplyAccountWorkspaceChangesCommandOutput } from "./commands/ApplyAccountWorkspaceChangesCommand";
3
- import { type ApplyIdentityRemovalCommandInput, type ApplyIdentityRemovalCommandOutput } from "./commands/ApplyIdentityRemovalCommand";
4
3
  import { type BatchGetUsersCommandInput, type BatchGetUsersCommandOutput } from "./commands/BatchGetUsersCommand";
5
4
  import { type BatchGetUsersEmailNotificationsSettingsCommandInput, type BatchGetUsersEmailNotificationsSettingsCommandOutput } from "./commands/BatchGetUsersEmailNotificationsSettingsCommand";
6
5
  import { type BatchGetUsersPbxLinkDataCommandInput, type BatchGetUsersPbxLinkDataCommandOutput } from "./commands/BatchGetUsersPbxLinkDataCommand";
7
6
  import { type BatchGetUsersPbxLinkDataV1CommandInput, type BatchGetUsersPbxLinkDataV1CommandOutput } from "./commands/BatchGetUsersPbxLinkDataV1Command";
8
7
  import { type ChangeUserEmailCommandInput, type ChangeUserEmailCommandOutput } from "./commands/ChangeUserEmailCommand";
9
- import { type ConfirmIdentityChallengeCommandInput, type ConfirmIdentityChallengeCommandOutput } from "./commands/ConfirmIdentityChallengeCommand";
10
8
  import { type CreateAnonymousSessionCommandInput, type CreateAnonymousSessionCommandOutput } from "./commands/CreateAnonymousSessionCommand";
11
9
  import { type CreateBotApiKeyCommandInput, type CreateBotApiKeyCommandOutput } from "./commands/CreateBotApiKeyCommand";
12
10
  import { type CreateBotCommandInput, type CreateBotCommandOutput } from "./commands/CreateBotCommand";
@@ -24,6 +22,7 @@ import { type GetUserPbxLinkSuggestionCommandInput, type GetUserPbxLinkSuggestio
24
22
  import { type GetUserPbxLinkSuggestionV1CommandInput, type GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
25
23
  import { type IntelligenceSearchCommandInput, type IntelligenceSearchCommandOutput } from "./commands/IntelligenceSearchCommand";
26
24
  import { type InviteCommandInput, type InviteCommandOutput } from "./commands/InviteCommand";
25
+ import { type LinkIdentityCommandInput, type LinkIdentityCommandOutput } from "./commands/LinkIdentityCommand";
27
26
  import { type ListAccountEmailChangesCommandInput, type ListAccountEmailChangesCommandOutput } from "./commands/ListAccountEmailChangesCommand";
28
27
  import { type ListBotApiKeysCommandInput, type ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
29
28
  import { type ListBotsCommandInput, type ListBotsCommandOutput } from "./commands/ListBotsCommand";
@@ -33,11 +32,9 @@ import { type PartialUpdateUserEmailNotificationsSettingsCommandInput, type Part
33
32
  import { type QueryColleaguesCommandInput, type QueryColleaguesCommandOutput } from "./commands/QueryColleaguesCommand";
34
33
  import { type QueryUserCommandInput, type QueryUserCommandOutput } from "./commands/QueryUserCommand";
35
34
  import { type QueryUsersCommandInput, type QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
36
- import { type ResendIdentityChallengeCodeCommandInput, type ResendIdentityChallengeCodeCommandOutput } from "./commands/ResendIdentityChallengeCodeCommand";
37
- import { type ResetUserChatHistoryCommandInput, type ResetUserChatHistoryCommandOutput } from "./commands/ResetUserChatHistoryCommand";
38
- import { type StartIdentityChallengeCommandInput, type StartIdentityChallengeCommandOutput } from "./commands/StartIdentityChallengeCommand";
39
35
  import { type ToggleTranscriptionEmailNotificationsSubscriptionCommandInput, type ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
40
36
  import { type ToggleUnreadEmailNotificationsSubscriptionCommandInput, type ToggleUnreadEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
37
+ import { type UnlinkIdentityCommandInput, type UnlinkIdentityCommandOutput } from "./commands/UnlinkIdentityCommand";
41
38
  import { type UnlinkWorkspaceCommandInput, type UnlinkWorkspaceCommandOutput } from "./commands/UnlinkWorkspaceCommand";
42
39
  import { type UpdateAccountCommandInput, type UpdateAccountCommandOutput } from "./commands/UpdateAccountCommand";
43
40
  import { type UpdateBotCallbackCommandInput, type UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
@@ -48,6 +45,7 @@ import { type UploadPictureCommandInput, type UploadPictureCommandOutput } from
48
45
  import { type UploadPictureV1CommandInput, type UploadPictureV1CommandOutput } from "./commands/UploadPictureV1Command";
49
46
  import { type VerifyBotSecretKeyCommandInput, type VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
50
47
  import { type VerifyBotSecretKeyV1CommandInput, type VerifyBotSecretKeyV1CommandOutput } from "./commands/VerifyBotSecretKeyV1Command";
48
+ import { type VerifyIdentityCommandInput, type VerifyIdentityCommandOutput } from "./commands/VerifyIdentityCommand";
51
49
  import { UsersClient } from "./UsersClient";
52
50
  export interface Users {
53
51
  /**
@@ -56,12 +54,6 @@ export interface Users {
56
54
  applyAccountWorkspaceChanges(args: ApplyAccountWorkspaceChangesCommandInput, options?: __HttpHandlerOptions): Promise<ApplyAccountWorkspaceChangesCommandOutput>;
57
55
  applyAccountWorkspaceChanges(args: ApplyAccountWorkspaceChangesCommandInput, cb: (err: any, data?: ApplyAccountWorkspaceChangesCommandOutput) => void): void;
58
56
  applyAccountWorkspaceChanges(args: ApplyAccountWorkspaceChangesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ApplyAccountWorkspaceChangesCommandOutput) => void): void;
59
- /**
60
- * @see {@link ApplyIdentityRemovalCommand}
61
- */
62
- applyIdentityRemoval(args: ApplyIdentityRemovalCommandInput, options?: __HttpHandlerOptions): Promise<ApplyIdentityRemovalCommandOutput>;
63
- applyIdentityRemoval(args: ApplyIdentityRemovalCommandInput, cb: (err: any, data?: ApplyIdentityRemovalCommandOutput) => void): void;
64
- applyIdentityRemoval(args: ApplyIdentityRemovalCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ApplyIdentityRemovalCommandOutput) => void): void;
65
57
  /**
66
58
  * @see {@link BatchGetUsersCommand}
67
59
  */
@@ -92,12 +84,6 @@ export interface Users {
92
84
  changeUserEmail(args: ChangeUserEmailCommandInput, options?: __HttpHandlerOptions): Promise<ChangeUserEmailCommandOutput>;
93
85
  changeUserEmail(args: ChangeUserEmailCommandInput, cb: (err: any, data?: ChangeUserEmailCommandOutput) => void): void;
94
86
  changeUserEmail(args: ChangeUserEmailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ChangeUserEmailCommandOutput) => void): void;
95
- /**
96
- * @see {@link ConfirmIdentityChallengeCommand}
97
- */
98
- confirmIdentityChallenge(args: ConfirmIdentityChallengeCommandInput, options?: __HttpHandlerOptions): Promise<ConfirmIdentityChallengeCommandOutput>;
99
- confirmIdentityChallenge(args: ConfirmIdentityChallengeCommandInput, cb: (err: any, data?: ConfirmIdentityChallengeCommandOutput) => void): void;
100
- confirmIdentityChallenge(args: ConfirmIdentityChallengeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ConfirmIdentityChallengeCommandOutput) => void): void;
101
87
  /**
102
88
  * @see {@link CreateAnonymousSessionCommand}
103
89
  */
@@ -202,6 +188,12 @@ export interface Users {
202
188
  invite(args: InviteCommandInput, options?: __HttpHandlerOptions): Promise<InviteCommandOutput>;
203
189
  invite(args: InviteCommandInput, cb: (err: any, data?: InviteCommandOutput) => void): void;
204
190
  invite(args: InviteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InviteCommandOutput) => void): void;
191
+ /**
192
+ * @see {@link LinkIdentityCommand}
193
+ */
194
+ linkIdentity(args: LinkIdentityCommandInput, options?: __HttpHandlerOptions): Promise<LinkIdentityCommandOutput>;
195
+ linkIdentity(args: LinkIdentityCommandInput, cb: (err: any, data?: LinkIdentityCommandOutput) => void): void;
196
+ linkIdentity(args: LinkIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: LinkIdentityCommandOutput) => void): void;
205
197
  /**
206
198
  * @see {@link ListAccountEmailChangesCommand}
207
199
  */
@@ -258,24 +250,6 @@ export interface Users {
258
250
  queryUsers(args: QueryUsersCommandInput, options?: __HttpHandlerOptions): Promise<QueryUsersCommandOutput>;
259
251
  queryUsers(args: QueryUsersCommandInput, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
260
252
  queryUsers(args: QueryUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
261
- /**
262
- * @see {@link ResendIdentityChallengeCodeCommand}
263
- */
264
- resendIdentityChallengeCode(args: ResendIdentityChallengeCodeCommandInput, options?: __HttpHandlerOptions): Promise<ResendIdentityChallengeCodeCommandOutput>;
265
- resendIdentityChallengeCode(args: ResendIdentityChallengeCodeCommandInput, cb: (err: any, data?: ResendIdentityChallengeCodeCommandOutput) => void): void;
266
- resendIdentityChallengeCode(args: ResendIdentityChallengeCodeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ResendIdentityChallengeCodeCommandOutput) => void): void;
267
- /**
268
- * @see {@link ResetUserChatHistoryCommand}
269
- */
270
- resetUserChatHistory(args: ResetUserChatHistoryCommandInput, options?: __HttpHandlerOptions): Promise<ResetUserChatHistoryCommandOutput>;
271
- resetUserChatHistory(args: ResetUserChatHistoryCommandInput, cb: (err: any, data?: ResetUserChatHistoryCommandOutput) => void): void;
272
- resetUserChatHistory(args: ResetUserChatHistoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ResetUserChatHistoryCommandOutput) => void): void;
273
- /**
274
- * @see {@link StartIdentityChallengeCommand}
275
- */
276
- startIdentityChallenge(args: StartIdentityChallengeCommandInput, options?: __HttpHandlerOptions): Promise<StartIdentityChallengeCommandOutput>;
277
- startIdentityChallenge(args: StartIdentityChallengeCommandInput, cb: (err: any, data?: StartIdentityChallengeCommandOutput) => void): void;
278
- startIdentityChallenge(args: StartIdentityChallengeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartIdentityChallengeCommandOutput) => void): void;
279
253
  /**
280
254
  * @see {@link ToggleTranscriptionEmailNotificationsSubscriptionCommand}
281
255
  */
@@ -288,6 +262,12 @@ export interface Users {
288
262
  toggleUnreadEmailNotificationsSubscription(args: ToggleUnreadEmailNotificationsSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<ToggleUnreadEmailNotificationsSubscriptionCommandOutput>;
289
263
  toggleUnreadEmailNotificationsSubscription(args: ToggleUnreadEmailNotificationsSubscriptionCommandInput, cb: (err: any, data?: ToggleUnreadEmailNotificationsSubscriptionCommandOutput) => void): void;
290
264
  toggleUnreadEmailNotificationsSubscription(args: ToggleUnreadEmailNotificationsSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ToggleUnreadEmailNotificationsSubscriptionCommandOutput) => void): void;
265
+ /**
266
+ * @see {@link UnlinkIdentityCommand}
267
+ */
268
+ unlinkIdentity(args: UnlinkIdentityCommandInput, options?: __HttpHandlerOptions): Promise<UnlinkIdentityCommandOutput>;
269
+ unlinkIdentity(args: UnlinkIdentityCommandInput, cb: (err: any, data?: UnlinkIdentityCommandOutput) => void): void;
270
+ unlinkIdentity(args: UnlinkIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnlinkIdentityCommandOutput) => void): void;
291
271
  /**
292
272
  * @see {@link UnlinkWorkspaceCommand}
293
273
  */
@@ -348,6 +328,12 @@ export interface Users {
348
328
  verifyBotSecretKeyV1(args: VerifyBotSecretKeyV1CommandInput, options?: __HttpHandlerOptions): Promise<VerifyBotSecretKeyV1CommandOutput>;
349
329
  verifyBotSecretKeyV1(args: VerifyBotSecretKeyV1CommandInput, cb: (err: any, data?: VerifyBotSecretKeyV1CommandOutput) => void): void;
350
330
  verifyBotSecretKeyV1(args: VerifyBotSecretKeyV1CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: VerifyBotSecretKeyV1CommandOutput) => void): void;
331
+ /**
332
+ * @see {@link VerifyIdentityCommand}
333
+ */
334
+ verifyIdentity(args: VerifyIdentityCommandInput, options?: __HttpHandlerOptions): Promise<VerifyIdentityCommandOutput>;
335
+ verifyIdentity(args: VerifyIdentityCommandInput, cb: (err: any, data?: VerifyIdentityCommandOutput) => void): void;
336
+ verifyIdentity(args: VerifyIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: VerifyIdentityCommandOutput) => void): void;
351
337
  /**
352
338
  * @see {@link ListAccountEmailChangesCommand}
353
339
  * @param args - command input.
@@ -6,13 +6,11 @@ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/re
6
6
  import type { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
7
7
  import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
8
8
  import type { ApplyAccountWorkspaceChangesCommandInput, ApplyAccountWorkspaceChangesCommandOutput } from "./commands/ApplyAccountWorkspaceChangesCommand";
9
- import type { ApplyIdentityRemovalCommandInput, ApplyIdentityRemovalCommandOutput } from "./commands/ApplyIdentityRemovalCommand";
10
9
  import type { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "./commands/BatchGetUsersCommand";
11
10
  import type { BatchGetUsersEmailNotificationsSettingsCommandInput, BatchGetUsersEmailNotificationsSettingsCommandOutput } from "./commands/BatchGetUsersEmailNotificationsSettingsCommand";
12
11
  import type { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "./commands/BatchGetUsersPbxLinkDataCommand";
13
12
  import type { BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1CommandOutput } from "./commands/BatchGetUsersPbxLinkDataV1Command";
14
13
  import type { ChangeUserEmailCommandInput, ChangeUserEmailCommandOutput } from "./commands/ChangeUserEmailCommand";
15
- import type { ConfirmIdentityChallengeCommandInput, ConfirmIdentityChallengeCommandOutput } from "./commands/ConfirmIdentityChallengeCommand";
16
14
  import type { CreateAnonymousSessionCommandInput, CreateAnonymousSessionCommandOutput } from "./commands/CreateAnonymousSessionCommand";
17
15
  import type { CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput } from "./commands/CreateBotApiKeyCommand";
18
16
  import type { CreateBotCommandInput, CreateBotCommandOutput } from "./commands/CreateBotCommand";
@@ -30,6 +28,7 @@ import type { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionComm
30
28
  import type { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
31
29
  import type { IntelligenceSearchCommandInput, IntelligenceSearchCommandOutput } from "./commands/IntelligenceSearchCommand";
32
30
  import type { InviteCommandInput, InviteCommandOutput } from "./commands/InviteCommand";
31
+ import type { LinkIdentityCommandInput, LinkIdentityCommandOutput } from "./commands/LinkIdentityCommand";
33
32
  import type { ListAccountEmailChangesCommandInput, ListAccountEmailChangesCommandOutput } from "./commands/ListAccountEmailChangesCommand";
34
33
  import type { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
35
34
  import type { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
@@ -39,11 +38,9 @@ import type { PartialUpdateUserEmailNotificationsSettingsCommandInput, PartialUp
39
38
  import type { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "./commands/QueryColleaguesCommand";
40
39
  import type { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
41
40
  import type { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
42
- import type { ResendIdentityChallengeCodeCommandInput, ResendIdentityChallengeCodeCommandOutput } from "./commands/ResendIdentityChallengeCodeCommand";
43
- import type { ResetUserChatHistoryCommandInput, ResetUserChatHistoryCommandOutput } from "./commands/ResetUserChatHistoryCommand";
44
- import type { StartIdentityChallengeCommandInput, StartIdentityChallengeCommandOutput } from "./commands/StartIdentityChallengeCommand";
45
41
  import type { ToggleTranscriptionEmailNotificationsSubscriptionCommandInput, ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
46
42
  import type { ToggleUnreadEmailNotificationsSubscriptionCommandInput, ToggleUnreadEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
43
+ import type { UnlinkIdentityCommandInput, UnlinkIdentityCommandOutput } from "./commands/UnlinkIdentityCommand";
47
44
  import type { UnlinkWorkspaceCommandInput, UnlinkWorkspaceCommandOutput } from "./commands/UnlinkWorkspaceCommand";
48
45
  import type { UpdateAccountCommandInput, UpdateAccountCommandOutput } from "./commands/UpdateAccountCommand";
49
46
  import type { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
@@ -54,17 +51,18 @@ import type { UploadPictureCommandInput, UploadPictureCommandOutput } from "./co
54
51
  import type { UploadPictureV1CommandInput, UploadPictureV1CommandOutput } from "./commands/UploadPictureV1Command";
55
52
  import type { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
56
53
  import type { VerifyBotSecretKeyV1CommandInput, VerifyBotSecretKeyV1CommandOutput } from "./commands/VerifyBotSecretKeyV1Command";
54
+ import type { VerifyIdentityCommandInput, VerifyIdentityCommandOutput } from "./commands/VerifyIdentityCommand";
57
55
  import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
58
56
  import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
59
57
  export { __Client };
60
58
  /**
61
59
  * @public
62
60
  */
63
- export type ServiceInputTypes = ApplyAccountWorkspaceChangesCommandInput | ApplyIdentityRemovalCommandInput | BatchGetUsersCommandInput | BatchGetUsersEmailNotificationsSettingsCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | ConfirmIdentityChallengeCommandInput | CreateAnonymousSessionCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | CreateSystemBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetAccountCommandInput | GetAppVersionCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserEmailNotificationsSettingsCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | IntelligenceSearchCommandInput | InviteCommandInput | ListAccountEmailChangesCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | ListIdentitiesCommandInput | ListWorkspacesCommandInput | PartialUpdateUserEmailNotificationsSettingsCommandInput | QueryColleaguesCommandInput | QueryUserCommandInput | QueryUsersCommandInput | ResendIdentityChallengeCodeCommandInput | ResetUserChatHistoryCommandInput | StartIdentityChallengeCommandInput | ToggleTranscriptionEmailNotificationsSubscriptionCommandInput | ToggleUnreadEmailNotificationsSubscriptionCommandInput | UnlinkWorkspaceCommandInput | UpdateAccountCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UpdateUserEmailNotificationsSettingsCommandInput | UpdateWorkspaceCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
61
+ export type ServiceInputTypes = ApplyAccountWorkspaceChangesCommandInput | BatchGetUsersCommandInput | BatchGetUsersEmailNotificationsSettingsCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateAnonymousSessionCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | CreateSystemBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetAccountCommandInput | GetAppVersionCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserEmailNotificationsSettingsCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | IntelligenceSearchCommandInput | InviteCommandInput | LinkIdentityCommandInput | ListAccountEmailChangesCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | ListIdentitiesCommandInput | ListWorkspacesCommandInput | PartialUpdateUserEmailNotificationsSettingsCommandInput | QueryColleaguesCommandInput | QueryUserCommandInput | QueryUsersCommandInput | ToggleTranscriptionEmailNotificationsSubscriptionCommandInput | ToggleUnreadEmailNotificationsSubscriptionCommandInput | UnlinkIdentityCommandInput | UnlinkWorkspaceCommandInput | UpdateAccountCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UpdateUserEmailNotificationsSettingsCommandInput | UpdateWorkspaceCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput | VerifyIdentityCommandInput;
64
62
  /**
65
63
  * @public
66
64
  */
67
- export type ServiceOutputTypes = ApplyAccountWorkspaceChangesCommandOutput | ApplyIdentityRemovalCommandOutput | BatchGetUsersCommandOutput | BatchGetUsersEmailNotificationsSettingsCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | ConfirmIdentityChallengeCommandOutput | CreateAnonymousSessionCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | CreateSystemBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetAccountCommandOutput | GetAppVersionCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserEmailNotificationsSettingsCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | IntelligenceSearchCommandOutput | InviteCommandOutput | ListAccountEmailChangesCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | ListIdentitiesCommandOutput | ListWorkspacesCommandOutput | PartialUpdateUserEmailNotificationsSettingsCommandOutput | QueryColleaguesCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | ResendIdentityChallengeCodeCommandOutput | ResetUserChatHistoryCommandOutput | StartIdentityChallengeCommandOutput | ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput | ToggleUnreadEmailNotificationsSubscriptionCommandOutput | UnlinkWorkspaceCommandOutput | UpdateAccountCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UpdateUserEmailNotificationsSettingsCommandOutput | UpdateWorkspaceCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
65
+ export type ServiceOutputTypes = ApplyAccountWorkspaceChangesCommandOutput | BatchGetUsersCommandOutput | BatchGetUsersEmailNotificationsSettingsCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateAnonymousSessionCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | CreateSystemBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetAccountCommandOutput | GetAppVersionCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserEmailNotificationsSettingsCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | IntelligenceSearchCommandOutput | InviteCommandOutput | LinkIdentityCommandOutput | ListAccountEmailChangesCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | ListIdentitiesCommandOutput | ListWorkspacesCommandOutput | PartialUpdateUserEmailNotificationsSettingsCommandOutput | QueryColleaguesCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput | ToggleUnreadEmailNotificationsSubscriptionCommandOutput | UnlinkIdentityCommandOutput | UnlinkWorkspaceCommandOutput | UpdateAccountCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UpdateUserEmailNotificationsSettingsCommandOutput | UpdateWorkspaceCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput | VerifyIdentityCommandOutput;
68
66
  /**
69
67
  * @public
70
68
  */
@@ -41,16 +41,17 @@ declare const ApplyAccountWorkspaceChangesCommand_base: {
41
41
  * - attach with `fromAccountId` moves the membership of `workspaceId` from the account `fromAccountId` to the change's `accountId`, keeping its `type`. The workspace must be a membership of `fromAccountId` (`workspace_not_in_source_account`) and not yet of `accountId` (`workspace_already_in_account`).
42
42
  * - attach without `fromAccountId` attaches a workspace that has no membership in any account (the board's Detached column, or one just detached in an earlier call). The owner checks that through the `AccountsByWorkspace` index and refuses with `workspace_has_account` when the workspace is a member of any account (the index is eventually consistent, so the check is best effort; concurrent attaches of one workspace are serialized by its stream-link lock); `fromAccountId` is required when it is a member of another account.
43
43
  * - detach removes only the membership of `workspaceId` from the change's `accountId` (`workspace_not_in_account` when it has none); the Stream and Pbx rows of the workspace and its channels stay.
44
- * - makeDefault sets `Settings.defaultWorkspace` of the change's `accountId` to `workspaceId` (`workspace_not_in_account` when it is not a membership of that account; the current default is a no-op). The PBX link moves with the default: a workspace of the same company, or a personal workspace without a link, takes the link (a personal one becomes work, `pbx_link_moves`); a workspace of another company with its own link keeps it and only the default changes (`pbx_link_stays`); a workspace of another company without a link is refused (`pbx_other_company`: the PBX link does not move there).
45
- * - Default of an orphaned account (an account with no identity left) that loses its default workspace, by detach or because attach takes it away: the default moves to its remaining active workspace with the latest `lastUsedAt` (`orphan_default_moved`; the candidates are its active workspaces after all the changes of the call, and the PBX link does not move to an automatically chosen default); when none is left a new personal workspace is created and becomes the default (`orphan_personal_workspace_created`). A login account (one that still has an identity) never gets an automatic default: leaving it without one is refused (`no_default`).
44
+ * - makeDefault sets `Settings.defaultWorkspace` of the change's `accountId` to `workspaceId` (`workspace_not_in_account` when it is not a membership of that account; the current default is a no-op). Only the default changes: the PBX link stays on the workspace that holds it, no `Pbx`, `Stream` or membership row is written for it.
45
+ * - One workspace per company and address type: after the changes an account holds at most one email workspace and one phone workspace of a company, and at most one workspace without a company, counting active memberships (`company_workspace_taken`, blocking, on the attach that brings the extra workspace in; the exact definition of address type and company is in the refusal's documentation). An account that already breaks the rule is not blocked as a whole: only a draft that makes a group worse is refused, so detaching one of the conflicting workspaces or changing the default stays possible.
46
+ * - Default of an orphaned account (an account with no identity left) that loses its default workspace, by detach or because attach takes it away: the default moves to its remaining active workspace with the latest `lastUsedAt` (`orphan_default_moved`; the candidates are its active workspaces after all the changes of the call); when none is left a new personal workspace is created and becomes the default (`orphan_personal_workspace_created`). A login account (one that still has an identity) never gets an automatic default: leaving it without one is refused (`no_default`).
46
47
  * - Refused as well: a workspace whose Stream email belongs to another person (`foreign_stream_email`); a deleted workspace (`deleted_workspace`); a plan larger than one DynamoDB transaction (`too_many_writes`).
47
48
  *
48
49
  * - The owner adds condition checks to the same transaction on the rows it picks or relies on by itself (the orphan's chosen fallback membership, its identity-less state), so `expected` need not name them.
49
50
  * - A new default re-routes email resolution (direct messages, invites, call messages) to it (`email_routing_changes`, not blocking).
50
51
  *
51
- * Inverse and backup: the output is enough to record a backup and to build the inverse plan as `changes` of this same operation: detach is undone by attach without `fromAccountId`, attach from an account by attach back to that account (with `fromAccountId` the account it went to), makeDefault by makeDefault of the previous default (see `before` of the `Settings` write). The one exception is the new personal workspace of an orphaned account, which has no inverse change. Pbx rows in `writes` never carry `sipPassword` or `xmppPassword`, so a Pbx row restored from the backup lacks them: a restored PBX link needs a re-link or refresh from the PBX.
52
+ * Inverse and backup: the output is enough to record a backup and to build the inverse plan as `changes` of this same operation: detach is undone by attach without `fromAccountId`, attach from an account by attach back to that account (with `fromAccountId` the account it went to), makeDefault by makeDefault of the previous default (see `before` of the `Settings` write). The one exception is the new personal workspace of an orphaned account, which has no inverse change.
52
53
  *
53
- * Side effects after the commit (see `effects`): `custom:wid` set to the new default on every Cognito user of every identity of the account (all users of one address: native and federated; a phone identity by its sign-in address `<E.164 without +>@phone.wildix.com`), applied at the user's next token refresh without revoking sessions; the workspaces cache invalidated for every touched account; the GetStream PBX fields moved; the external-flag job scheduled for the workspaces the PBX link left and reached.
54
+ * Side effects after the commit (see `effects`): `custom:wid` set to the new default on every Cognito user of every identity of the account (all users of one address: native and federated; a phone identity by its sign-in address `<E.164 without +>@phone.wildix.com`), applied at the user's next token refresh without revoking sessions; the workspaces cache invalidated for every touched account.
54
55
  *
55
56
  * @example
56
57
  * Use a bare-bones client and the command you need to make an API call.
@@ -93,8 +94,8 @@ declare const ApplyAccountWorkspaceChangesCommand_base: {
93
94
  * // { // AccountWorkspaceWrite
94
95
  * // pk: "STRING_VALUE", // required
95
96
  * // sk: "STRING_VALUE", // required
96
- * // kind: "put" || "update" || "delete" || "append", // required
97
- * // entity: "membership" || "accountSettings" || "pbx" || "stream" || "pbxUser", // required
97
+ * // kind: "put" || "update" || "delete", // required
98
+ * // entity: "membership" || "accountSettings" || "pbx" || "stream", // required
98
99
  * // before: { // AccountWorkspaceRowFields
99
100
  * // "<keys>": "DOCUMENT_VALUE",
100
101
  * // },
@@ -128,7 +129,7 @@ declare const ApplyAccountWorkspaceChangesCommand_base: {
128
129
  * // ],
129
130
  * // checks: [ // AccountWorkspaceCheckList // required
130
131
  * // { // AccountWorkspaceCheck
131
- * // code: "conflict" || "expected_incomplete" || "workspace_not_in_source_account" || "workspace_has_account" || "workspace_already_in_account" || "workspace_not_in_account" || "foreign_stream_email" || "deleted_workspace" || "no_default" || "pbx_other_company" || "too_many_writes" || "pbx_link_moves" || "pbx_link_stays" || "orphan_default_moved" || "orphan_personal_workspace_created" || "email_routing_changes", // required
132
+ * // code: "conflict" || "expected_incomplete" || "workspace_not_in_source_account" || "workspace_has_account" || "workspace_already_in_account" || "workspace_not_in_account" || "foreign_stream_email" || "deleted_workspace" || "no_default" || "company_workspace_taken" || "too_many_writes" || "orphan_default_moved" || "orphan_personal_workspace_created" || "email_routing_changes", // required
132
133
  * // blocking: true || false, // required
133
134
  * // row: { // AccountWorkspaceRowKey
134
135
  * // pk: "STRING_VALUE", // required
@@ -142,7 +143,7 @@ declare const ApplyAccountWorkspaceChangesCommand_base: {
142
143
  * // ],
143
144
  * // effects: [ // AccountWorkspaceEffectList // required
144
145
  * // { // AccountWorkspaceEffect
145
- * // name: "cognito" || "cache" || "stream" || "job", // required
146
+ * // name: "cognito" || "cache", // required
146
147
  * // status: "ok" || "failed" || "skipped", // required
147
148
  * // target: "STRING_VALUE",
148
149
  * // detail: "STRING_VALUE",
@@ -0,0 +1,89 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { LinkIdentityInput, LinkIdentityOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link LinkIdentityCommand}.
14
+ */
15
+ export interface LinkIdentityCommandInput extends LinkIdentityInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link LinkIdentityCommand}.
21
+ */
22
+ export interface LinkIdentityCommandOutput extends LinkIdentityOutput, __MetadataBearer {
23
+ }
24
+ declare const LinkIdentityCommand_base: {
25
+ new (input: LinkIdentityCommandInput): import("@smithy/core/client").CommandImpl<LinkIdentityCommandInput, LinkIdentityCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: LinkIdentityCommandInput): import("@smithy/core/client").CommandImpl<LinkIdentityCommandInput, LinkIdentityCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Adds a new identity (email or phone) to the account. Requires OTP verification for the new identity. Available via s2s (service-to-service) or the x-bees token of the account owner; API keys are refused.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { UsersClient, LinkIdentityCommand } from "@wildix/xbees-users-client"; // ES Modules import
35
+ * // const { UsersClient, LinkIdentityCommand } = require("@wildix/xbees-users-client"); // CommonJS import
36
+ * // import type { UsersClientConfig } from "@wildix/xbees-users-client";
37
+ * const config = {}; // type is UsersClientConfig
38
+ * const client = new UsersClient(config);
39
+ * const input = { // LinkIdentityInput
40
+ * accountId: "STRING_VALUE", // required
41
+ * identity: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new LinkIdentityCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // LinkIdentityOutput
46
+ * // identity: { // Identity
47
+ * // identity: "STRING_VALUE", // required
48
+ * // account: "STRING_VALUE", // required
49
+ * // verified: true || false,
50
+ * // },
51
+ * // };
52
+ *
53
+ * ```
54
+ *
55
+ * @param LinkIdentityCommandInput - {@link LinkIdentityCommandInput}
56
+ * @returns {@link LinkIdentityCommandOutput}
57
+ * @see {@link LinkIdentityCommandInput} for command's `input` shape.
58
+ * @see {@link LinkIdentityCommandOutput} for command's `response` shape.
59
+ * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
60
+ *
61
+ * @throws {@link AccountNotFoundException} (client fault)
62
+ *
63
+ * @throws {@link IdentityAlreadyLinkedException} (client fault)
64
+ *
65
+ * @throws {@link ValidationException} (client fault)
66
+ *
67
+ * @throws {@link ForbiddenException} (client fault)
68
+ *
69
+ * @throws {@link RateLimitExceededException} (client fault)
70
+ *
71
+ * @throws {@link UsersServiceException}
72
+ * <p>Base exception class for all service exceptions from Users service.</p>
73
+ *
74
+ *
75
+ * @public
76
+ */
77
+ export declare class LinkIdentityCommand extends LinkIdentityCommand_base {
78
+ /** @internal type navigation helper, not in runtime. */
79
+ protected static __types: {
80
+ api: {
81
+ input: LinkIdentityInput;
82
+ output: LinkIdentityOutput;
83
+ };
84
+ sdk: {
85
+ input: LinkIdentityCommandInput;
86
+ output: LinkIdentityCommandOutput;
87
+ };
88
+ };
89
+ }
@@ -27,7 +27,7 @@ declare const ListIdentitiesCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Lists the sign-in methods of the account: the verified identities and the pending ones (being added, `verified: false`), each with its type and whether it is the primary. The technical address behind a phone sign-in never appears; a phone appears as its E.164 number. Available via s2s (service-to-service) or the x-bees token of the account owner; API keys are refused.
30
+ * Lists all identities (login methods) for the current account. Available via s2s (service-to-service) or the x-bees token of the account owner; API keys are refused.
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -46,9 +46,7 @@ declare const ListIdentitiesCommand_base: {
46
46
  * // { // Identity
47
47
  * // identity: "STRING_VALUE", // required
48
48
  * // account: "STRING_VALUE", // required
49
- * // type: "email" || "phone", // required
50
- * // verified: true || false, // required
51
- * // primary: true || false, // required
49
+ * // verified: true || false,
52
50
  * // },
53
51
  * // ],
54
52
  * // };
@@ -0,0 +1,85 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { UnlinkIdentityInput, UnlinkIdentityOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UnlinkIdentityCommand}.
14
+ */
15
+ export interface UnlinkIdentityCommandInput extends UnlinkIdentityInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UnlinkIdentityCommand}.
21
+ */
22
+ export interface UnlinkIdentityCommandOutput extends UnlinkIdentityOutput, __MetadataBearer {
23
+ }
24
+ declare const UnlinkIdentityCommand_base: {
25
+ new (input: UnlinkIdentityCommandInput): import("@smithy/core/client").CommandImpl<UnlinkIdentityCommandInput, UnlinkIdentityCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UnlinkIdentityCommandInput): import("@smithy/core/client").CommandImpl<UnlinkIdentityCommandInput, UnlinkIdentityCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Removes a non-primary identity from the account. Requires step-up verification for the primary identity. Available via s2s (service-to-service) or the x-bees token of the account owner; API keys are refused.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { UsersClient, UnlinkIdentityCommand } from "@wildix/xbees-users-client"; // ES Modules import
35
+ * // const { UsersClient, UnlinkIdentityCommand } = require("@wildix/xbees-users-client"); // CommonJS import
36
+ * // import type { UsersClientConfig } from "@wildix/xbees-users-client";
37
+ * const config = {}; // type is UsersClientConfig
38
+ * const client = new UsersClient(config);
39
+ * const input = { // UnlinkIdentityInput
40
+ * accountId: "STRING_VALUE", // required
41
+ * identity: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new UnlinkIdentityCommand(input);
44
+ * const response = await client.send(command);
45
+ * // {};
46
+ *
47
+ * ```
48
+ *
49
+ * @param UnlinkIdentityCommandInput - {@link UnlinkIdentityCommandInput}
50
+ * @returns {@link UnlinkIdentityCommandOutput}
51
+ * @see {@link UnlinkIdentityCommandInput} for command's `input` shape.
52
+ * @see {@link UnlinkIdentityCommandOutput} for command's `response` shape.
53
+ * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
54
+ *
55
+ * @throws {@link AccountNotFoundException} (client fault)
56
+ *
57
+ * @throws {@link IdentityNotFoundException} (client fault)
58
+ *
59
+ * @throws {@link CannotRemovePrimaryIdentityException} (client fault)
60
+ *
61
+ * @throws {@link ValidationException} (client fault)
62
+ *
63
+ * @throws {@link ForbiddenException} (client fault)
64
+ *
65
+ * @throws {@link RateLimitExceededException} (client fault)
66
+ *
67
+ * @throws {@link UsersServiceException}
68
+ * <p>Base exception class for all service exceptions from Users service.</p>
69
+ *
70
+ *
71
+ * @public
72
+ */
73
+ export declare class UnlinkIdentityCommand extends UnlinkIdentityCommand_base {
74
+ /** @internal type navigation helper, not in runtime. */
75
+ protected static __types: {
76
+ api: {
77
+ input: UnlinkIdentityInput;
78
+ output: {};
79
+ };
80
+ sdk: {
81
+ input: UnlinkIdentityCommandInput;
82
+ output: UnlinkIdentityCommandOutput;
83
+ };
84
+ };
85
+ }
@@ -27,7 +27,7 @@ declare const UpdateAccountCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Updates the account: the default workspace, and (s2s only) the primary identity. Available via s2s (service-to-service) or the x-bees token of the account owner; API keys are refused. A user changes the primary with a `makePrimary` identity challenge (`StartIdentityChallenge`); `primaryIdentity` from an x-bees token is refused with `ForbiddenException`.
30
+ * Updates the account. Allows changing default workspace and primary identity. Available via s2s (service-to-service) or the x-bees token of the account owner; API keys are refused.
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -62,7 +62,6 @@ declare const UpdateAccountCommand_base: {
62
62
  * @throws {@link AccountNotFoundException} (client fault)
63
63
  *
64
64
  * @throws {@link IdentityNotFoundException} (client fault)
65
- * The address is not a sign-in method of the account (or no longer is).
66
65
  *
67
66
  * @throws {@link WorkspaceNotFoundException} (client fault)
68
67
  *
@@ -0,0 +1,90 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { VerifyIdentityInput, VerifyIdentityOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link VerifyIdentityCommand}.
14
+ */
15
+ export interface VerifyIdentityCommandInput extends VerifyIdentityInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link VerifyIdentityCommand}.
21
+ */
22
+ export interface VerifyIdentityCommandOutput extends VerifyIdentityOutput, __MetadataBearer {
23
+ }
24
+ declare const VerifyIdentityCommand_base: {
25
+ new (input: VerifyIdentityCommandInput): import("@smithy/core/client").CommandImpl<VerifyIdentityCommandInput, VerifyIdentityCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: VerifyIdentityCommandInput): import("@smithy/core/client").CommandImpl<VerifyIdentityCommandInput, VerifyIdentityCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Completes adding an identity by verifying the OTP sent to the new identity. Call after LinkIdentity. Available via s2s (service-to-service) or the x-bees token of the account owner; API keys are refused.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { UsersClient, VerifyIdentityCommand } from "@wildix/xbees-users-client"; // ES Modules import
35
+ * // const { UsersClient, VerifyIdentityCommand } = require("@wildix/xbees-users-client"); // CommonJS import
36
+ * // import type { UsersClientConfig } from "@wildix/xbees-users-client";
37
+ * const config = {}; // type is UsersClientConfig
38
+ * const client = new UsersClient(config);
39
+ * const input = { // VerifyIdentityInput
40
+ * accountId: "STRING_VALUE", // required
41
+ * identity: "STRING_VALUE", // required
42
+ * otp: "STRING_VALUE", // required
43
+ * };
44
+ * const command = new VerifyIdentityCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // VerifyIdentityOutput
47
+ * // identity: { // Identity
48
+ * // identity: "STRING_VALUE", // required
49
+ * // account: "STRING_VALUE", // required
50
+ * // verified: true || false,
51
+ * // },
52
+ * // };
53
+ *
54
+ * ```
55
+ *
56
+ * @param VerifyIdentityCommandInput - {@link VerifyIdentityCommandInput}
57
+ * @returns {@link VerifyIdentityCommandOutput}
58
+ * @see {@link VerifyIdentityCommandInput} for command's `input` shape.
59
+ * @see {@link VerifyIdentityCommandOutput} for command's `response` shape.
60
+ * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
61
+ *
62
+ * @throws {@link AccountNotFoundException} (client fault)
63
+ *
64
+ * @throws {@link IdentityNotFoundException} (client fault)
65
+ *
66
+ * @throws {@link ValidationException} (client fault)
67
+ *
68
+ * @throws {@link ForbiddenException} (client fault)
69
+ *
70
+ * @throws {@link RateLimitExceededException} (client fault)
71
+ *
72
+ * @throws {@link UsersServiceException}
73
+ * <p>Base exception class for all service exceptions from Users service.</p>
74
+ *
75
+ *
76
+ * @public
77
+ */
78
+ export declare class VerifyIdentityCommand extends VerifyIdentityCommand_base {
79
+ /** @internal type navigation helper, not in runtime. */
80
+ protected static __types: {
81
+ api: {
82
+ input: VerifyIdentityInput;
83
+ output: VerifyIdentityOutput;
84
+ };
85
+ sdk: {
86
+ input: VerifyIdentityCommandInput;
87
+ output: VerifyIdentityCommandOutput;
88
+ };
89
+ };
90
+ }
@@ -1,11 +1,9 @@
1
1
  export * from "./ApplyAccountWorkspaceChangesCommand";
2
- export * from "./ApplyIdentityRemovalCommand";
3
2
  export * from "./BatchGetUsersCommand";
4
3
  export * from "./BatchGetUsersEmailNotificationsSettingsCommand";
5
4
  export * from "./BatchGetUsersPbxLinkDataCommand";
6
5
  export * from "./BatchGetUsersPbxLinkDataV1Command";
7
6
  export * from "./ChangeUserEmailCommand";
8
- export * from "./ConfirmIdentityChallengeCommand";
9
7
  export * from "./CreateAnonymousSessionCommand";
10
8
  export * from "./CreateBotApiKeyCommand";
11
9
  export * from "./CreateBotCommand";
@@ -23,6 +21,7 @@ export * from "./GetUserPbxLinkSuggestionCommand";
23
21
  export * from "./GetUserPbxLinkSuggestionV1Command";
24
22
  export * from "./IntelligenceSearchCommand";
25
23
  export * from "./InviteCommand";
24
+ export * from "./LinkIdentityCommand";
26
25
  export * from "./ListAccountEmailChangesCommand";
27
26
  export * from "./ListBotApiKeysCommand";
28
27
  export * from "./ListBotsCommand";
@@ -32,11 +31,9 @@ export * from "./PartialUpdateUserEmailNotificationsSettingsCommand";
32
31
  export * from "./QueryColleaguesCommand";
33
32
  export * from "./QueryUserCommand";
34
33
  export * from "./QueryUsersCommand";
35
- export * from "./ResendIdentityChallengeCodeCommand";
36
- export * from "./ResetUserChatHistoryCommand";
37
- export * from "./StartIdentityChallengeCommand";
38
34
  export * from "./ToggleTranscriptionEmailNotificationsSubscriptionCommand";
39
35
  export * from "./ToggleUnreadEmailNotificationsSubscriptionCommand";
36
+ export * from "./UnlinkIdentityCommand";
40
37
  export * from "./UnlinkWorkspaceCommand";
41
38
  export * from "./UpdateAccountCommand";
42
39
  export * from "./UpdateBotCallbackCommand";
@@ -47,3 +44,4 @@ export * from "./UploadPictureCommand";
47
44
  export * from "./UploadPictureV1Command";
48
45
  export * from "./VerifyBotSecretKeyCommand";
49
46
  export * from "./VerifyBotSecretKeyV1Command";
47
+ export * from "./VerifyIdentityCommand";