@wildix/xbees-users-client 1.1.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist-cjs/Users.js +20 -0
  2. package/dist-cjs/commands/AddIdentityCommand.js +21 -0
  3. package/dist-cjs/commands/GetAccountCommand.js +21 -0
  4. package/dist-cjs/commands/InviteCommand.js +21 -0
  5. package/dist-cjs/commands/ListAccountIdentitiesCommand.js +21 -0
  6. package/dist-cjs/commands/ListWorkspacesCommand.js +21 -0
  7. package/dist-cjs/commands/RemoveIdentityCommand.js +21 -0
  8. package/dist-cjs/commands/UnbindWorkspaceCommand.js +21 -0
  9. package/dist-cjs/commands/UpdateAccountCommand.js +21 -0
  10. package/dist-cjs/commands/UpdateWorkspaceCommand.js +21 -0
  11. package/dist-cjs/commands/VerifyAddIdentityCommand.js +21 -0
  12. package/dist-cjs/commands/index.js +10 -0
  13. package/dist-cjs/models/models_0.js +84 -1
  14. package/dist-cjs/protocols/Aws_restJson1.js +398 -2
  15. package/dist-es/Users.js +20 -0
  16. package/dist-es/commands/AddIdentityCommand.js +17 -0
  17. package/dist-es/commands/GetAccountCommand.js +17 -0
  18. package/dist-es/commands/InviteCommand.js +17 -0
  19. package/dist-es/commands/ListAccountIdentitiesCommand.js +17 -0
  20. package/dist-es/commands/ListWorkspacesCommand.js +17 -0
  21. package/dist-es/commands/RemoveIdentityCommand.js +17 -0
  22. package/dist-es/commands/UnbindWorkspaceCommand.js +17 -0
  23. package/dist-es/commands/UpdateAccountCommand.js +17 -0
  24. package/dist-es/commands/UpdateWorkspaceCommand.js +17 -0
  25. package/dist-es/commands/VerifyAddIdentityCommand.js +17 -0
  26. package/dist-es/commands/index.js +10 -0
  27. package/dist-es/models/models_0.js +77 -0
  28. package/dist-es/protocols/Aws_restJson1.js +377 -1
  29. package/dist-types/Users.d.ts +70 -0
  30. package/dist-types/UsersClient.d.ts +12 -2
  31. package/dist-types/commands/AddIdentityCommand.d.ts +93 -0
  32. package/dist-types/commands/BatchGetUsersCommand.d.ts +12 -0
  33. package/dist-types/commands/BatchGetUsersEmailNotificationsSettingsCommand.d.ts +12 -0
  34. package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +12 -0
  35. package/dist-types/commands/BatchGetUsersPbxLinkDataV1Command.d.ts +12 -0
  36. package/dist-types/commands/ChangeUserEmailCommand.d.ts +12 -0
  37. package/dist-types/commands/CreateBotApiKeyCommand.d.ts +12 -0
  38. package/dist-types/commands/CreateBotCommand.d.ts +12 -0
  39. package/dist-types/commands/CreateSystemBotCommand.d.ts +12 -0
  40. package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +12 -0
  41. package/dist-types/commands/DeleteBotCommand.d.ts +12 -0
  42. package/dist-types/commands/GetAccountCommand.d.ts +182 -0
  43. package/dist-types/commands/GetAppVersionCommand.d.ts +12 -0
  44. package/dist-types/commands/GetBotCallbackCommand.d.ts +12 -0
  45. package/dist-types/commands/GetBotCommand.d.ts +12 -0
  46. package/dist-types/commands/GetUserCommand.d.ts +12 -0
  47. package/dist-types/commands/GetUserEmailNotificationsSettingsCommand.d.ts +12 -0
  48. package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +12 -0
  49. package/dist-types/commands/GetUserPbxLinkSuggestionCommand.d.ts +12 -0
  50. package/dist-types/commands/GetUserPbxLinkSuggestionV1Command.d.ts +12 -0
  51. package/dist-types/commands/IntelligenceSearchCommand.d.ts +12 -0
  52. package/dist-types/commands/InviteCommand.d.ts +116 -0
  53. package/dist-types/commands/ListAccountIdentitiesCommand.d.ts +94 -0
  54. package/dist-types/commands/ListBotApiKeysCommand.d.ts +12 -0
  55. package/dist-types/commands/ListBotsCommand.d.ts +12 -0
  56. package/dist-types/commands/ListWorkspacesCommand.d.ts +170 -0
  57. package/dist-types/commands/PartialUpdateUserEmailNotificationsSettingsCommand.d.ts +12 -0
  58. package/dist-types/commands/QueryColleaguesCommand.d.ts +12 -0
  59. package/dist-types/commands/QueryUserCommand.d.ts +12 -0
  60. package/dist-types/commands/QueryUsersCommand.d.ts +12 -0
  61. package/dist-types/commands/RemoveIdentityCommand.d.ts +87 -0
  62. package/dist-types/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.d.ts +12 -0
  63. package/dist-types/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.d.ts +12 -0
  64. package/dist-types/commands/UnbindWorkspaceCommand.d.ts +87 -0
  65. package/dist-types/commands/UpdateAccountCommand.d.ts +94 -0
  66. package/dist-types/commands/UpdateBotCallbackCommand.d.ts +12 -0
  67. package/dist-types/commands/UpdateBotCommand.d.ts +12 -0
  68. package/dist-types/commands/UpdateUserEmailNotificationsSettingsCommand.d.ts +12 -0
  69. package/dist-types/commands/UpdateWorkspaceCommand.d.ts +171 -0
  70. package/dist-types/commands/UploadPictureCommand.d.ts +12 -0
  71. package/dist-types/commands/UploadPictureV1Command.d.ts +12 -0
  72. package/dist-types/commands/VerifyAddIdentityCommand.d.ts +95 -0
  73. package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +12 -0
  74. package/dist-types/commands/VerifyBotSecretKeyV1Command.d.ts +12 -0
  75. package/dist-types/commands/index.d.ts +10 -0
  76. package/dist-types/models/models_0.d.ts +420 -0
  77. package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
  78. package/package.json +2 -2
@@ -1,3 +1,4 @@
1
+ import { AddIdentityCommandInput, AddIdentityCommandOutput } from "./commands/AddIdentityCommand";
1
2
  import { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "./commands/BatchGetUsersCommand";
2
3
  import { BatchGetUsersEmailNotificationsSettingsCommandInput, BatchGetUsersEmailNotificationsSettingsCommandOutput } from "./commands/BatchGetUsersEmailNotificationsSettingsCommand";
3
4
  import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "./commands/BatchGetUsersPbxLinkDataCommand";
@@ -8,6 +9,7 @@ import { CreateBotCommandInput, CreateBotCommandOutput } from "./commands/Create
8
9
  import { CreateSystemBotCommandInput, CreateSystemBotCommandOutput } from "./commands/CreateSystemBotCommand";
9
10
  import { DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput } from "./commands/DeleteBotApiKeyCommand";
10
11
  import { DeleteBotCommandInput, DeleteBotCommandOutput } from "./commands/DeleteBotCommand";
12
+ import { GetAccountCommandInput, GetAccountCommandOutput } from "./commands/GetAccountCommand";
11
13
  import { GetAppVersionCommandInput, GetAppVersionCommandOutput } from "./commands/GetAppVersionCommand";
12
14
  import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "./commands/GetBotCallbackCommand";
13
15
  import { GetBotCommandInput, GetBotCommandOutput } from "./commands/GetBotCommand";
@@ -17,19 +19,27 @@ import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from
17
19
  import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
18
20
  import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
19
21
  import { IntelligenceSearchCommandInput, IntelligenceSearchCommandOutput } from "./commands/IntelligenceSearchCommand";
22
+ import { InviteCommandInput, InviteCommandOutput } from "./commands/InviteCommand";
23
+ import { ListAccountIdentitiesCommandInput, ListAccountIdentitiesCommandOutput } from "./commands/ListAccountIdentitiesCommand";
20
24
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
21
25
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
26
+ import { ListWorkspacesCommandInput, ListWorkspacesCommandOutput } from "./commands/ListWorkspacesCommand";
22
27
  import { PartialUpdateUserEmailNotificationsSettingsCommandInput, PartialUpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/PartialUpdateUserEmailNotificationsSettingsCommand";
23
28
  import { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "./commands/QueryColleaguesCommand";
24
29
  import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
25
30
  import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
31
+ import { RemoveIdentityCommandInput, RemoveIdentityCommandOutput } from "./commands/RemoveIdentityCommand";
26
32
  import { ToggleTranscriptionEmailNotificationsSubscriptionCommandInput, ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
27
33
  import { ToggleUnreadEmailNotificationsSubscriptionCommandInput, ToggleUnreadEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
34
+ import { UnbindWorkspaceCommandInput, UnbindWorkspaceCommandOutput } from "./commands/UnbindWorkspaceCommand";
35
+ import { UpdateAccountCommandInput, UpdateAccountCommandOutput } from "./commands/UpdateAccountCommand";
28
36
  import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
29
37
  import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
30
38
  import { UpdateUserEmailNotificationsSettingsCommandInput, UpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/UpdateUserEmailNotificationsSettingsCommand";
39
+ import { UpdateWorkspaceCommandInput, UpdateWorkspaceCommandOutput } from "./commands/UpdateWorkspaceCommand";
31
40
  import { UploadPictureCommandInput, UploadPictureCommandOutput } from "./commands/UploadPictureCommand";
32
41
  import { UploadPictureV1CommandInput, UploadPictureV1CommandOutput } from "./commands/UploadPictureV1Command";
42
+ import { VerifyAddIdentityCommandInput, VerifyAddIdentityCommandOutput } from "./commands/VerifyAddIdentityCommand";
33
43
  import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
34
44
  import { VerifyBotSecretKeyV1CommandInput, VerifyBotSecretKeyV1CommandOutput } from "./commands/VerifyBotSecretKeyV1Command";
35
45
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
@@ -43,11 +53,11 @@ export { __Client };
43
53
  /**
44
54
  * @public
45
55
  */
46
- export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersEmailNotificationsSettingsCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | CreateSystemBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetAppVersionCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserEmailNotificationsSettingsCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | IntelligenceSearchCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | PartialUpdateUserEmailNotificationsSettingsCommandInput | QueryColleaguesCommandInput | QueryUserCommandInput | QueryUsersCommandInput | ToggleTranscriptionEmailNotificationsSubscriptionCommandInput | ToggleUnreadEmailNotificationsSubscriptionCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UpdateUserEmailNotificationsSettingsCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
56
+ export type ServiceInputTypes = AddIdentityCommandInput | BatchGetUsersCommandInput | BatchGetUsersEmailNotificationsSettingsCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | CreateSystemBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetAccountCommandInput | GetAppVersionCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserEmailNotificationsSettingsCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | IntelligenceSearchCommandInput | InviteCommandInput | ListAccountIdentitiesCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | ListWorkspacesCommandInput | PartialUpdateUserEmailNotificationsSettingsCommandInput | QueryColleaguesCommandInput | QueryUserCommandInput | QueryUsersCommandInput | RemoveIdentityCommandInput | ToggleTranscriptionEmailNotificationsSubscriptionCommandInput | ToggleUnreadEmailNotificationsSubscriptionCommandInput | UnbindWorkspaceCommandInput | UpdateAccountCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UpdateUserEmailNotificationsSettingsCommandInput | UpdateWorkspaceCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyAddIdentityCommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
47
57
  /**
48
58
  * @public
49
59
  */
50
- export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersEmailNotificationsSettingsCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | CreateSystemBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetAppVersionCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserEmailNotificationsSettingsCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | IntelligenceSearchCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | PartialUpdateUserEmailNotificationsSettingsCommandOutput | QueryColleaguesCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput | ToggleUnreadEmailNotificationsSubscriptionCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UpdateUserEmailNotificationsSettingsCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
60
+ export type ServiceOutputTypes = AddIdentityCommandOutput | BatchGetUsersCommandOutput | BatchGetUsersEmailNotificationsSettingsCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | CreateSystemBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetAccountCommandOutput | GetAppVersionCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserEmailNotificationsSettingsCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | IntelligenceSearchCommandOutput | InviteCommandOutput | ListAccountIdentitiesCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | ListWorkspacesCommandOutput | PartialUpdateUserEmailNotificationsSettingsCommandOutput | QueryColleaguesCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | RemoveIdentityCommandOutput | ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput | ToggleUnreadEmailNotificationsSubscriptionCommandOutput | UnbindWorkspaceCommandOutput | UpdateAccountCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UpdateUserEmailNotificationsSettingsCommandOutput | UpdateWorkspaceCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyAddIdentityCommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
51
61
  /**
52
62
  * @public
53
63
  */
@@ -0,0 +1,93 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
+ import { AddIdentityInput, AddIdentityOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link AddIdentityCommand}.
14
+ */
15
+ export interface AddIdentityCommandInput extends AddIdentityInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link AddIdentityCommand}.
21
+ */
22
+ export interface AddIdentityCommandOutput extends AddIdentityOutput, __MetadataBearer {
23
+ }
24
+ declare const AddIdentityCommand_base: {
25
+ new (input: AddIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<AddIdentityCommandInput, AddIdentityCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: AddIdentityCommandInput): import("@smithy/smithy-client").CommandImpl<AddIdentityCommandInput, AddIdentityCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Adds a new identity (email or phone) to the account. Requires OTP verification for the new identity and re-verification of the primary identity.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { UsersClient, AddIdentityCommand } from "@wildix/xbees-users-client"; // ES Modules import
35
+ * // const { UsersClient, AddIdentityCommand } = require("@wildix/xbees-users-client"); // CommonJS import
36
+ * const client = new UsersClient(config);
37
+ * const input = { // AddIdentityInput
38
+ * accountId: "STRING_VALUE", // required
39
+ * identity: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new AddIdentityCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // AddIdentityOutput
44
+ * // identity: { // Identity
45
+ * // identity: "STRING_VALUE", // required
46
+ * // account: "STRING_VALUE", // required
47
+ * // verified: true || false,
48
+ * // },
49
+ * // };
50
+ *
51
+ * ```
52
+ *
53
+ * @param AddIdentityCommandInput - {@link AddIdentityCommandInput}
54
+ * @returns {@link AddIdentityCommandOutput}
55
+ * @see {@link AddIdentityCommandInput} for command's `input` shape.
56
+ * @see {@link AddIdentityCommandOutput} for command's `response` shape.
57
+ * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
58
+ *
59
+ * @throws {@link AccountNotFoundException} (client fault)
60
+ *
61
+ * @throws {@link IdentityAlreadyLinkedException} (client fault)
62
+ *
63
+ * @throws {@link ValidationException} (client fault)
64
+ *
65
+ * @throws {@link ForbiddenException} (client fault)
66
+ *
67
+ * @throws {@link CannotRemovePrimaryIdentityException} (client fault)
68
+ *
69
+ * @throws {@link WorkspaceNotFoundException} (client fault)
70
+ *
71
+ * @throws {@link CannotUnbindDefaultWorkspaceException} (client fault)
72
+ *
73
+ * @throws {@link IdentityNotFoundException} (client fault)
74
+ *
75
+ * @throws {@link UsersServiceException}
76
+ * <p>Base exception class for all service exceptions from Users service.</p>
77
+ *
78
+ *
79
+ * @public
80
+ */
81
+ export declare class AddIdentityCommand extends AddIdentityCommand_base {
82
+ /** @internal type navigation helper, not in runtime. */
83
+ protected static __types: {
84
+ api: {
85
+ input: AddIdentityInput;
86
+ output: AddIdentityOutput;
87
+ };
88
+ sdk: {
89
+ input: AddIdentityCommandInput;
90
+ output: AddIdentityCommandOutput;
91
+ };
92
+ };
93
+ }
@@ -77,6 +77,18 @@ declare const BatchGetUsersCommand_base: {
77
77
  *
78
78
  * @throws {@link ValidationException} (client fault)
79
79
  *
80
+ * @throws {@link AccountNotFoundException} (client fault)
81
+ *
82
+ * @throws {@link IdentityAlreadyLinkedException} (client fault)
83
+ *
84
+ * @throws {@link CannotRemovePrimaryIdentityException} (client fault)
85
+ *
86
+ * @throws {@link WorkspaceNotFoundException} (client fault)
87
+ *
88
+ * @throws {@link CannotUnbindDefaultWorkspaceException} (client fault)
89
+ *
90
+ * @throws {@link IdentityNotFoundException} (client fault)
91
+ *
80
92
  * @throws {@link UsersServiceException}
81
93
  * <p>Base exception class for all service exceptions from Users service.</p>
82
94
  *
@@ -62,6 +62,18 @@ declare const BatchGetUsersEmailNotificationsSettingsCommand_base: {
62
62
  *
63
63
  * @throws {@link ValidationException} (client fault)
64
64
  *
65
+ * @throws {@link AccountNotFoundException} (client fault)
66
+ *
67
+ * @throws {@link IdentityAlreadyLinkedException} (client fault)
68
+ *
69
+ * @throws {@link CannotRemovePrimaryIdentityException} (client fault)
70
+ *
71
+ * @throws {@link WorkspaceNotFoundException} (client fault)
72
+ *
73
+ * @throws {@link CannotUnbindDefaultWorkspaceException} (client fault)
74
+ *
75
+ * @throws {@link IdentityNotFoundException} (client fault)
76
+ *
65
77
  * @throws {@link UsersServiceException}
66
78
  * <p>Base exception class for all service exceptions from Users service.</p>
67
79
  *
@@ -113,6 +113,18 @@ declare const BatchGetUsersPbxLinkDataCommand_base: {
113
113
  *
114
114
  * @throws {@link ValidationException} (client fault)
115
115
  *
116
+ * @throws {@link AccountNotFoundException} (client fault)
117
+ *
118
+ * @throws {@link IdentityAlreadyLinkedException} (client fault)
119
+ *
120
+ * @throws {@link CannotRemovePrimaryIdentityException} (client fault)
121
+ *
122
+ * @throws {@link WorkspaceNotFoundException} (client fault)
123
+ *
124
+ * @throws {@link CannotUnbindDefaultWorkspaceException} (client fault)
125
+ *
126
+ * @throws {@link IdentityNotFoundException} (client fault)
127
+ *
116
128
  * @throws {@link UsersServiceException}
117
129
  * <p>Base exception class for all service exceptions from Users service.</p>
118
130
  *
@@ -113,6 +113,18 @@ declare const BatchGetUsersPbxLinkDataV1Command_base: {
113
113
  *
114
114
  * @throws {@link ValidationException} (client fault)
115
115
  *
116
+ * @throws {@link AccountNotFoundException} (client fault)
117
+ *
118
+ * @throws {@link IdentityAlreadyLinkedException} (client fault)
119
+ *
120
+ * @throws {@link CannotRemovePrimaryIdentityException} (client fault)
121
+ *
122
+ * @throws {@link WorkspaceNotFoundException} (client fault)
123
+ *
124
+ * @throws {@link CannotUnbindDefaultWorkspaceException} (client fault)
125
+ *
126
+ * @throws {@link IdentityNotFoundException} (client fault)
127
+ *
116
128
  * @throws {@link UsersServiceException}
117
129
  * <p>Base exception class for all service exceptions from Users service.</p>
118
130
  *
@@ -67,6 +67,18 @@ declare const ChangeUserEmailCommand_base: {
67
67
  *
68
68
  * @throws {@link ValidationException} (client fault)
69
69
  *
70
+ * @throws {@link AccountNotFoundException} (client fault)
71
+ *
72
+ * @throws {@link IdentityAlreadyLinkedException} (client fault)
73
+ *
74
+ * @throws {@link CannotRemovePrimaryIdentityException} (client fault)
75
+ *
76
+ * @throws {@link WorkspaceNotFoundException} (client fault)
77
+ *
78
+ * @throws {@link CannotUnbindDefaultWorkspaceException} (client fault)
79
+ *
80
+ * @throws {@link IdentityNotFoundException} (client fault)
81
+ *
70
82
  * @throws {@link UsersServiceException}
71
83
  * <p>Base exception class for all service exceptions from Users service.</p>
72
84
  *
@@ -75,6 +75,18 @@ declare const CreateBotApiKeyCommand_base: {
75
75
  *
76
76
  * @throws {@link ValidationException} (client fault)
77
77
  *
78
+ * @throws {@link AccountNotFoundException} (client fault)
79
+ *
80
+ * @throws {@link IdentityAlreadyLinkedException} (client fault)
81
+ *
82
+ * @throws {@link CannotRemovePrimaryIdentityException} (client fault)
83
+ *
84
+ * @throws {@link WorkspaceNotFoundException} (client fault)
85
+ *
86
+ * @throws {@link CannotUnbindDefaultWorkspaceException} (client fault)
87
+ *
88
+ * @throws {@link IdentityNotFoundException} (client fault)
89
+ *
78
90
  * @throws {@link UsersServiceException}
79
91
  * <p>Base exception class for all service exceptions from Users service.</p>
80
92
  *
@@ -177,6 +177,18 @@ declare const CreateBotCommand_base: {
177
177
  *
178
178
  * @throws {@link ValidationException} (client fault)
179
179
  *
180
+ * @throws {@link AccountNotFoundException} (client fault)
181
+ *
182
+ * @throws {@link IdentityAlreadyLinkedException} (client fault)
183
+ *
184
+ * @throws {@link CannotRemovePrimaryIdentityException} (client fault)
185
+ *
186
+ * @throws {@link WorkspaceNotFoundException} (client fault)
187
+ *
188
+ * @throws {@link CannotUnbindDefaultWorkspaceException} (client fault)
189
+ *
190
+ * @throws {@link IdentityNotFoundException} (client fault)
191
+ *
180
192
  * @throws {@link UsersServiceException}
181
193
  * <p>Base exception class for all service exceptions from Users service.</p>
182
194
  *
@@ -57,6 +57,18 @@ declare const CreateSystemBotCommand_base: {
57
57
  *
58
58
  * @throws {@link ValidationException} (client fault)
59
59
  *
60
+ * @throws {@link AccountNotFoundException} (client fault)
61
+ *
62
+ * @throws {@link IdentityAlreadyLinkedException} (client fault)
63
+ *
64
+ * @throws {@link CannotRemovePrimaryIdentityException} (client fault)
65
+ *
66
+ * @throws {@link WorkspaceNotFoundException} (client fault)
67
+ *
68
+ * @throws {@link CannotUnbindDefaultWorkspaceException} (client fault)
69
+ *
70
+ * @throws {@link IdentityNotFoundException} (client fault)
71
+ *
60
72
  * @throws {@link UsersServiceException}
61
73
  * <p>Base exception class for all service exceptions from Users service.</p>
62
74
  *
@@ -59,6 +59,18 @@ declare const DeleteBotApiKeyCommand_base: {
59
59
  *
60
60
  * @throws {@link ValidationException} (client fault)
61
61
  *
62
+ * @throws {@link AccountNotFoundException} (client fault)
63
+ *
64
+ * @throws {@link IdentityAlreadyLinkedException} (client fault)
65
+ *
66
+ * @throws {@link CannotRemovePrimaryIdentityException} (client fault)
67
+ *
68
+ * @throws {@link WorkspaceNotFoundException} (client fault)
69
+ *
70
+ * @throws {@link CannotUnbindDefaultWorkspaceException} (client fault)
71
+ *
72
+ * @throws {@link IdentityNotFoundException} (client fault)
73
+ *
62
74
  * @throws {@link UsersServiceException}
63
75
  * <p>Base exception class for all service exceptions from Users service.</p>
64
76
  *
@@ -56,6 +56,18 @@ declare const DeleteBotCommand_base: {
56
56
  *
57
57
  * @throws {@link ValidationException} (client fault)
58
58
  *
59
+ * @throws {@link AccountNotFoundException} (client fault)
60
+ *
61
+ * @throws {@link IdentityAlreadyLinkedException} (client fault)
62
+ *
63
+ * @throws {@link CannotRemovePrimaryIdentityException} (client fault)
64
+ *
65
+ * @throws {@link WorkspaceNotFoundException} (client fault)
66
+ *
67
+ * @throws {@link CannotUnbindDefaultWorkspaceException} (client fault)
68
+ *
69
+ * @throws {@link IdentityNotFoundException} (client fault)
70
+ *
59
71
  * @throws {@link UsersServiceException}
60
72
  * <p>Base exception class for all service exceptions from Users service.</p>
61
73
  *
@@ -0,0 +1,182 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
+ import { GetAccountInput, GetAccountOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetAccountCommand}.
14
+ */
15
+ export interface GetAccountCommandInput extends GetAccountInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetAccountCommand}.
21
+ */
22
+ export interface GetAccountCommandOutput extends GetAccountOutput, __MetadataBearer {
23
+ }
24
+ declare const GetAccountCommand_base: {
25
+ new (input: GetAccountCommandInput): import("@smithy/smithy-client").CommandImpl<GetAccountCommandInput, GetAccountCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetAccountCommandInput): import("@smithy/smithy-client").CommandImpl<GetAccountCommandInput, GetAccountCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Retrieves the current account with identities and workspaces.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { UsersClient, GetAccountCommand } from "@wildix/xbees-users-client"; // ES Modules import
35
+ * // const { UsersClient, GetAccountCommand } = require("@wildix/xbees-users-client"); // CommonJS import
36
+ * const client = new UsersClient(config);
37
+ * const input = { // GetAccountInput
38
+ * accountId: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new GetAccountCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // GetAccountOutput
43
+ * // account: { // Account
44
+ * // id: "STRING_VALUE", // required
45
+ * // defaultWorkspace: "STRING_VALUE",
46
+ * // primaryIdentity: "STRING_VALUE",
47
+ * // },
48
+ * // workspaces: [ // WorkspaceList // required
49
+ * // { // Workspace
50
+ * // companyId: "STRING_VALUE",
51
+ * // pbxUser: { // UserPbxLinkData
52
+ * // id: "STRING_VALUE", // required
53
+ * // company: "STRING_VALUE", // required
54
+ * // companyName: "STRING_VALUE",
55
+ * // domain: "STRING_VALUE", // required
56
+ * // email: "STRING_VALUE",
57
+ * // info: { // UserPersonalInfo
58
+ * // dn: "STRING_VALUE", // required
59
+ * // id: "STRING_VALUE", // required
60
+ * // name: "STRING_VALUE", // required
61
+ * // extension: "STRING_VALUE", // required
62
+ * // officePhone: "STRING_VALUE",
63
+ * // mobilePhone: "STRING_VALUE",
64
+ * // faxNumber: "STRING_VALUE",
65
+ * // email: "STRING_VALUE",
66
+ * // role: "STRING_VALUE", // required
67
+ * // language: "STRING_VALUE", // required
68
+ * // dialplan: "STRING_VALUE", // required
69
+ * // faxDialplan: "STRING_VALUE", // required
70
+ * // departament: "STRING_VALUE",
71
+ * // picture: "STRING_VALUE", // required
72
+ * // groupDn: "STRING_VALUE", // required
73
+ * // groupName: "STRING_VALUE", // required
74
+ * // jid: "STRING_VALUE", // required
75
+ * // licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf", // required
76
+ * // login: "STRING_VALUE",
77
+ * // pbx: "STRING_VALUE",
78
+ * // pbxDn: "STRING_VALUE", // required
79
+ * // sourceId: "STRING_VALUE",
80
+ * // sipPassword: "STRING_VALUE",
81
+ * // },
82
+ * // pbx: { // UserPbxInfo
83
+ * // networkAddresses: [ // UserPbxInfoNetworkAddresses // required
84
+ * // "STRING_VALUE",
85
+ * // ],
86
+ * // ports: [ // UserPbxInfoPorts // required
87
+ * // "STRING_VALUE",
88
+ * // ],
89
+ * // externalLinePrefix: "STRING_VALUE",
90
+ * // version: "STRING_VALUE", // required
91
+ * // serial: "STRING_VALUE", // required
92
+ * // },
93
+ * // picture: "STRING_VALUE", // required
94
+ * // pictureDeleted: true || false,
95
+ * // port: "STRING_VALUE", // required
96
+ * // serial: "STRING_VALUE", // required
97
+ * // services: { // UserPbxServices
98
+ * // xcaracal: true || false,
99
+ * // wizyWebinar: true || false,
100
+ * // },
101
+ * // personalSettings: {},
102
+ * // dialplanSettings: {},
103
+ * // awsRegion: "STRING_VALUE",
104
+ * // updatedAt: "STRING_VALUE",
105
+ * // },
106
+ * // streamUser: { // User
107
+ * // id: "STRING_VALUE", // required
108
+ * // name: "STRING_VALUE",
109
+ * // email: "STRING_VALUE",
110
+ * // phone: "STRING_VALUE",
111
+ * // picture: "STRING_VALUE",
112
+ * // locale: "STRING_VALUE",
113
+ * // timeZone: "STRING_VALUE",
114
+ * // company: "STRING_VALUE",
115
+ * // bot: true || false,
116
+ * // pbxDomain: "STRING_VALUE",
117
+ * // pbxPort: "STRING_VALUE",
118
+ * // pbxExtension: "STRING_VALUE",
119
+ * // pbxSerial: "STRING_VALUE",
120
+ * // pbxUserId: "STRING_VALUE",
121
+ * // pbxGroupId: "STRING_VALUE",
122
+ * // createdAt: "STRING_VALUE",
123
+ * // updatedAt: "STRING_VALUE",
124
+ * // },
125
+ * // type: "personal" || "work" || "support",
126
+ * // id: "STRING_VALUE", // required
127
+ * // accountId: "STRING_VALUE", // required
128
+ * // active: true || false, // required
129
+ * // },
130
+ * // ],
131
+ * // identities: [ // IdentityList // required
132
+ * // { // Identity
133
+ * // identity: "STRING_VALUE", // required
134
+ * // account: "STRING_VALUE", // required
135
+ * // verified: true || false,
136
+ * // },
137
+ * // ],
138
+ * // };
139
+ *
140
+ * ```
141
+ *
142
+ * @param GetAccountCommandInput - {@link GetAccountCommandInput}
143
+ * @returns {@link GetAccountCommandOutput}
144
+ * @see {@link GetAccountCommandInput} for command's `input` shape.
145
+ * @see {@link GetAccountCommandOutput} for command's `response` shape.
146
+ * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
147
+ *
148
+ * @throws {@link AccountNotFoundException} (client fault)
149
+ *
150
+ * @throws {@link ForbiddenException} (client fault)
151
+ *
152
+ * @throws {@link ValidationException} (client fault)
153
+ *
154
+ * @throws {@link IdentityAlreadyLinkedException} (client fault)
155
+ *
156
+ * @throws {@link CannotRemovePrimaryIdentityException} (client fault)
157
+ *
158
+ * @throws {@link WorkspaceNotFoundException} (client fault)
159
+ *
160
+ * @throws {@link CannotUnbindDefaultWorkspaceException} (client fault)
161
+ *
162
+ * @throws {@link IdentityNotFoundException} (client fault)
163
+ *
164
+ * @throws {@link UsersServiceException}
165
+ * <p>Base exception class for all service exceptions from Users service.</p>
166
+ *
167
+ *
168
+ * @public
169
+ */
170
+ export declare class GetAccountCommand extends GetAccountCommand_base {
171
+ /** @internal type navigation helper, not in runtime. */
172
+ protected static __types: {
173
+ api: {
174
+ input: GetAccountInput;
175
+ output: GetAccountOutput;
176
+ };
177
+ sdk: {
178
+ input: GetAccountCommandInput;
179
+ output: GetAccountCommandOutput;
180
+ };
181
+ };
182
+ }
@@ -55,6 +55,18 @@ declare const GetAppVersionCommand_base: {
55
55
  *
56
56
  * @throws {@link ValidationException} (client fault)
57
57
  *
58
+ * @throws {@link AccountNotFoundException} (client fault)
59
+ *
60
+ * @throws {@link IdentityAlreadyLinkedException} (client fault)
61
+ *
62
+ * @throws {@link CannotRemovePrimaryIdentityException} (client fault)
63
+ *
64
+ * @throws {@link WorkspaceNotFoundException} (client fault)
65
+ *
66
+ * @throws {@link CannotUnbindDefaultWorkspaceException} (client fault)
67
+ *
68
+ * @throws {@link IdentityNotFoundException} (client fault)
69
+ *
58
70
  * @throws {@link UsersServiceException}
59
71
  * <p>Base exception class for all service exceptions from Users service.</p>
60
72
  *
@@ -163,6 +163,18 @@ declare const GetBotCallbackCommand_base: {
163
163
  *
164
164
  * @throws {@link ValidationException} (client fault)
165
165
  *
166
+ * @throws {@link AccountNotFoundException} (client fault)
167
+ *
168
+ * @throws {@link IdentityAlreadyLinkedException} (client fault)
169
+ *
170
+ * @throws {@link CannotRemovePrimaryIdentityException} (client fault)
171
+ *
172
+ * @throws {@link WorkspaceNotFoundException} (client fault)
173
+ *
174
+ * @throws {@link CannotUnbindDefaultWorkspaceException} (client fault)
175
+ *
176
+ * @throws {@link IdentityNotFoundException} (client fault)
177
+ *
166
178
  * @throws {@link UsersServiceException}
167
179
  * <p>Base exception class for all service exceptions from Users service.</p>
168
180
  *
@@ -69,6 +69,18 @@ declare const GetBotCommand_base: {
69
69
  *
70
70
  * @throws {@link ValidationException} (client fault)
71
71
  *
72
+ * @throws {@link AccountNotFoundException} (client fault)
73
+ *
74
+ * @throws {@link IdentityAlreadyLinkedException} (client fault)
75
+ *
76
+ * @throws {@link CannotRemovePrimaryIdentityException} (client fault)
77
+ *
78
+ * @throws {@link WorkspaceNotFoundException} (client fault)
79
+ *
80
+ * @throws {@link CannotUnbindDefaultWorkspaceException} (client fault)
81
+ *
82
+ * @throws {@link IdentityNotFoundException} (client fault)
83
+ *
72
84
  * @throws {@link UsersServiceException}
73
85
  * <p>Base exception class for all service exceptions from Users service.</p>
74
86
  *
@@ -75,6 +75,18 @@ declare const GetUserCommand_base: {
75
75
  *
76
76
  * @throws {@link ValidationException} (client fault)
77
77
  *
78
+ * @throws {@link AccountNotFoundException} (client fault)
79
+ *
80
+ * @throws {@link IdentityAlreadyLinkedException} (client fault)
81
+ *
82
+ * @throws {@link CannotRemovePrimaryIdentityException} (client fault)
83
+ *
84
+ * @throws {@link WorkspaceNotFoundException} (client fault)
85
+ *
86
+ * @throws {@link CannotUnbindDefaultWorkspaceException} (client fault)
87
+ *
88
+ * @throws {@link IdentityNotFoundException} (client fault)
89
+ *
78
90
  * @throws {@link UsersServiceException}
79
91
  * <p>Base exception class for all service exceptions from Users service.</p>
80
92
  *
@@ -60,6 +60,18 @@ declare const GetUserEmailNotificationsSettingsCommand_base: {
60
60
  *
61
61
  * @throws {@link ValidationException} (client fault)
62
62
  *
63
+ * @throws {@link AccountNotFoundException} (client fault)
64
+ *
65
+ * @throws {@link IdentityAlreadyLinkedException} (client fault)
66
+ *
67
+ * @throws {@link CannotRemovePrimaryIdentityException} (client fault)
68
+ *
69
+ * @throws {@link WorkspaceNotFoundException} (client fault)
70
+ *
71
+ * @throws {@link CannotUnbindDefaultWorkspaceException} (client fault)
72
+ *
73
+ * @throws {@link IdentityNotFoundException} (client fault)
74
+ *
63
75
  * @throws {@link UsersServiceException}
64
76
  * <p>Base exception class for all service exceptions from Users service.</p>
65
77
  *
@@ -111,6 +111,18 @@ declare const GetUserPbxLinkDataCommand_base: {
111
111
  *
112
112
  * @throws {@link ValidationException} (client fault)
113
113
  *
114
+ * @throws {@link AccountNotFoundException} (client fault)
115
+ *
116
+ * @throws {@link IdentityAlreadyLinkedException} (client fault)
117
+ *
118
+ * @throws {@link CannotRemovePrimaryIdentityException} (client fault)
119
+ *
120
+ * @throws {@link WorkspaceNotFoundException} (client fault)
121
+ *
122
+ * @throws {@link CannotUnbindDefaultWorkspaceException} (client fault)
123
+ *
124
+ * @throws {@link IdentityNotFoundException} (client fault)
125
+ *
114
126
  * @throws {@link UsersServiceException}
115
127
  * <p>Base exception class for all service exceptions from Users service.</p>
116
128
  *