@wildix/xbees-users-client 1.0.54 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist-cjs/Users.js +20 -0
  2. package/dist-cjs/commands/AddIdentityCommand.js +21 -0
  3. package/dist-cjs/commands/GetAccountCommand.js +21 -0
  4. package/dist-cjs/commands/InviteCommand.js +21 -0
  5. package/dist-cjs/commands/ListAccountIdentitiesCommand.js +21 -0
  6. package/dist-cjs/commands/ListWorkspacesCommand.js +21 -0
  7. package/dist-cjs/commands/RemoveIdentityCommand.js +21 -0
  8. package/dist-cjs/commands/UnbindWorkspaceCommand.js +21 -0
  9. package/dist-cjs/commands/UpdateAccountCommand.js +21 -0
  10. package/dist-cjs/commands/UpdateWorkspaceCommand.js +21 -0
  11. package/dist-cjs/commands/VerifyAddIdentityCommand.js +21 -0
  12. package/dist-cjs/commands/index.js +10 -0
  13. package/dist-cjs/models/models_0.js +84 -1
  14. package/dist-cjs/protocols/Aws_restJson1.js +398 -2
  15. package/dist-es/Users.js +20 -0
  16. package/dist-es/commands/AddIdentityCommand.js +17 -0
  17. package/dist-es/commands/GetAccountCommand.js +17 -0
  18. package/dist-es/commands/InviteCommand.js +17 -0
  19. package/dist-es/commands/ListAccountIdentitiesCommand.js +17 -0
  20. package/dist-es/commands/ListWorkspacesCommand.js +17 -0
  21. package/dist-es/commands/RemoveIdentityCommand.js +17 -0
  22. package/dist-es/commands/UnbindWorkspaceCommand.js +17 -0
  23. package/dist-es/commands/UpdateAccountCommand.js +17 -0
  24. package/dist-es/commands/UpdateWorkspaceCommand.js +17 -0
  25. package/dist-es/commands/VerifyAddIdentityCommand.js +17 -0
  26. package/dist-es/commands/index.js +10 -0
  27. package/dist-es/models/models_0.js +77 -0
  28. package/dist-es/protocols/Aws_restJson1.js +377 -1
  29. package/dist-types/Users.d.ts +70 -0
  30. package/dist-types/UsersClient.d.ts +12 -2
  31. package/dist-types/commands/AddIdentityCommand.d.ts +93 -0
  32. package/dist-types/commands/BatchGetUsersCommand.d.ts +12 -0
  33. package/dist-types/commands/BatchGetUsersEmailNotificationsSettingsCommand.d.ts +12 -0
  34. package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +12 -0
  35. package/dist-types/commands/BatchGetUsersPbxLinkDataV1Command.d.ts +12 -0
  36. package/dist-types/commands/ChangeUserEmailCommand.d.ts +12 -0
  37. package/dist-types/commands/CreateBotApiKeyCommand.d.ts +12 -0
  38. package/dist-types/commands/CreateBotCommand.d.ts +12 -0
  39. package/dist-types/commands/CreateSystemBotCommand.d.ts +12 -0
  40. package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +12 -0
  41. package/dist-types/commands/DeleteBotCommand.d.ts +12 -0
  42. package/dist-types/commands/GetAccountCommand.d.ts +182 -0
  43. package/dist-types/commands/GetAppVersionCommand.d.ts +12 -0
  44. package/dist-types/commands/GetBotCallbackCommand.d.ts +12 -0
  45. package/dist-types/commands/GetBotCommand.d.ts +12 -0
  46. package/dist-types/commands/GetUserCommand.d.ts +12 -0
  47. package/dist-types/commands/GetUserEmailNotificationsSettingsCommand.d.ts +12 -0
  48. package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +12 -0
  49. package/dist-types/commands/GetUserPbxLinkSuggestionCommand.d.ts +12 -0
  50. package/dist-types/commands/GetUserPbxLinkSuggestionV1Command.d.ts +12 -0
  51. package/dist-types/commands/IntelligenceSearchCommand.d.ts +12 -0
  52. package/dist-types/commands/InviteCommand.d.ts +116 -0
  53. package/dist-types/commands/ListAccountIdentitiesCommand.d.ts +94 -0
  54. package/dist-types/commands/ListBotApiKeysCommand.d.ts +12 -0
  55. package/dist-types/commands/ListBotsCommand.d.ts +12 -0
  56. package/dist-types/commands/ListWorkspacesCommand.d.ts +170 -0
  57. package/dist-types/commands/PartialUpdateUserEmailNotificationsSettingsCommand.d.ts +12 -0
  58. package/dist-types/commands/QueryColleaguesCommand.d.ts +12 -0
  59. package/dist-types/commands/QueryUserCommand.d.ts +12 -0
  60. package/dist-types/commands/QueryUsersCommand.d.ts +12 -0
  61. package/dist-types/commands/RemoveIdentityCommand.d.ts +87 -0
  62. package/dist-types/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.d.ts +12 -0
  63. package/dist-types/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.d.ts +12 -0
  64. package/dist-types/commands/UnbindWorkspaceCommand.d.ts +87 -0
  65. package/dist-types/commands/UpdateAccountCommand.d.ts +94 -0
  66. package/dist-types/commands/UpdateBotCallbackCommand.d.ts +12 -0
  67. package/dist-types/commands/UpdateBotCommand.d.ts +12 -0
  68. package/dist-types/commands/UpdateUserEmailNotificationsSettingsCommand.d.ts +12 -0
  69. package/dist-types/commands/UpdateWorkspaceCommand.d.ts +171 -0
  70. package/dist-types/commands/UploadPictureCommand.d.ts +12 -0
  71. package/dist-types/commands/UploadPictureV1Command.d.ts +12 -0
  72. package/dist-types/commands/VerifyAddIdentityCommand.d.ts +95 -0
  73. package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +12 -0
  74. package/dist-types/commands/VerifyBotSecretKeyV1Command.d.ts +12 -0
  75. package/dist-types/commands/index.d.ts +10 -0
  76. package/dist-types/models/models_0.d.ts +420 -0
  77. package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
  78. package/package.json +2 -2
@@ -0,0 +1,17 @@
1
+ import { de_InviteCommand, se_InviteCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class InviteCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "Invite", {})
12
+ .n("UsersClient", "InviteCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_InviteCommand)
15
+ .de(de_InviteCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_ListAccountIdentitiesCommand, se_ListAccountIdentitiesCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class ListAccountIdentitiesCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "ListAccountIdentities", {})
12
+ .n("UsersClient", "ListAccountIdentitiesCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_ListAccountIdentitiesCommand)
15
+ .de(de_ListAccountIdentitiesCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_ListWorkspacesCommand, se_ListWorkspacesCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class ListWorkspacesCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "ListWorkspaces", {})
12
+ .n("UsersClient", "ListWorkspacesCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_ListWorkspacesCommand)
15
+ .de(de_ListWorkspacesCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_RemoveIdentityCommand, se_RemoveIdentityCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class RemoveIdentityCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "RemoveIdentity", {})
12
+ .n("UsersClient", "RemoveIdentityCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_RemoveIdentityCommand)
15
+ .de(de_RemoveIdentityCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_UnbindWorkspaceCommand, se_UnbindWorkspaceCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class UnbindWorkspaceCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "UnbindWorkspace", {})
12
+ .n("UsersClient", "UnbindWorkspaceCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_UnbindWorkspaceCommand)
15
+ .de(de_UnbindWorkspaceCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_UpdateAccountCommand, se_UpdateAccountCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class UpdateAccountCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "UpdateAccount", {})
12
+ .n("UsersClient", "UpdateAccountCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_UpdateAccountCommand)
15
+ .de(de_UpdateAccountCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_UpdateWorkspaceCommand, se_UpdateWorkspaceCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class UpdateWorkspaceCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "UpdateWorkspace", {})
12
+ .n("UsersClient", "UpdateWorkspaceCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_UpdateWorkspaceCommand)
15
+ .de(de_UpdateWorkspaceCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_VerifyAddIdentityCommand, se_VerifyAddIdentityCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class VerifyAddIdentityCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "VerifyAddIdentity", {})
12
+ .n("UsersClient", "VerifyAddIdentityCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_VerifyAddIdentityCommand)
15
+ .de(de_VerifyAddIdentityCommand)
16
+ .build() {
17
+ }
@@ -1,3 +1,4 @@
1
+ export * from "./AddIdentityCommand";
1
2
  export * from "./BatchGetUsersCommand";
2
3
  export * from "./BatchGetUsersEmailNotificationsSettingsCommand";
3
4
  export * from "./BatchGetUsersPbxLinkDataCommand";
@@ -8,6 +9,7 @@ export * from "./CreateBotApiKeyCommand";
8
9
  export * from "./CreateSystemBotCommand";
9
10
  export * from "./DeleteBotCommand";
10
11
  export * from "./DeleteBotApiKeyCommand";
12
+ export * from "./GetAccountCommand";
11
13
  export * from "./GetAppVersionCommand";
12
14
  export * from "./GetBotCommand";
13
15
  export * from "./GetBotCallbackCommand";
@@ -17,18 +19,26 @@ export * from "./GetUserPbxLinkDataCommand";
17
19
  export * from "./GetUserPbxLinkSuggestionCommand";
18
20
  export * from "./GetUserPbxLinkSuggestionV1Command";
19
21
  export * from "./IntelligenceSearchCommand";
22
+ export * from "./InviteCommand";
23
+ export * from "./ListAccountIdentitiesCommand";
20
24
  export * from "./ListBotApiKeysCommand";
21
25
  export * from "./ListBotsCommand";
26
+ export * from "./ListWorkspacesCommand";
22
27
  export * from "./PartialUpdateUserEmailNotificationsSettingsCommand";
23
28
  export * from "./QueryColleaguesCommand";
24
29
  export * from "./QueryUserCommand";
25
30
  export * from "./QueryUsersCommand";
31
+ export * from "./RemoveIdentityCommand";
26
32
  export * from "./ToggleTranscriptionEmailNotificationsSubscriptionCommand";
27
33
  export * from "./ToggleUnreadEmailNotificationsSubscriptionCommand";
34
+ export * from "./UnbindWorkspaceCommand";
35
+ export * from "./UpdateAccountCommand";
28
36
  export * from "./UpdateBotCommand";
29
37
  export * from "./UpdateBotCallbackCommand";
30
38
  export * from "./UpdateUserEmailNotificationsSettingsCommand";
39
+ export * from "./UpdateWorkspaceCommand";
31
40
  export * from "./UploadPictureCommand";
32
41
  export * from "./UploadPictureV1Command";
42
+ export * from "./VerifyAddIdentityCommand";
33
43
  export * from "./VerifyBotSecretKeyCommand";
34
44
  export * from "./VerifyBotSecretKeyV1Command";
@@ -64,6 +64,78 @@ export const PbxColleaguesSearchStrategy = {
64
64
  CONTAIN: "contain",
65
65
  STARTS_WITH: "startsWith",
66
66
  };
67
+ export class AccountNotFoundException extends __BaseException {
68
+ name = "AccountNotFoundException";
69
+ $fault = "client";
70
+ constructor(opts) {
71
+ super({
72
+ name: "AccountNotFoundException",
73
+ $fault: "client",
74
+ ...opts
75
+ });
76
+ Object.setPrototypeOf(this, AccountNotFoundException.prototype);
77
+ }
78
+ }
79
+ export class CannotRemovePrimaryIdentityException extends __BaseException {
80
+ name = "CannotRemovePrimaryIdentityException";
81
+ $fault = "client";
82
+ constructor(opts) {
83
+ super({
84
+ name: "CannotRemovePrimaryIdentityException",
85
+ $fault: "client",
86
+ ...opts
87
+ });
88
+ Object.setPrototypeOf(this, CannotRemovePrimaryIdentityException.prototype);
89
+ }
90
+ }
91
+ export class CannotUnbindDefaultWorkspaceException extends __BaseException {
92
+ name = "CannotUnbindDefaultWorkspaceException";
93
+ $fault = "client";
94
+ constructor(opts) {
95
+ super({
96
+ name: "CannotUnbindDefaultWorkspaceException",
97
+ $fault: "client",
98
+ ...opts
99
+ });
100
+ Object.setPrototypeOf(this, CannotUnbindDefaultWorkspaceException.prototype);
101
+ }
102
+ }
103
+ export class IdentityAlreadyLinkedException extends __BaseException {
104
+ name = "IdentityAlreadyLinkedException";
105
+ $fault = "client";
106
+ constructor(opts) {
107
+ super({
108
+ name: "IdentityAlreadyLinkedException",
109
+ $fault: "client",
110
+ ...opts
111
+ });
112
+ Object.setPrototypeOf(this, IdentityAlreadyLinkedException.prototype);
113
+ }
114
+ }
115
+ export class IdentityNotFoundException extends __BaseException {
116
+ name = "IdentityNotFoundException";
117
+ $fault = "client";
118
+ constructor(opts) {
119
+ super({
120
+ name: "IdentityNotFoundException",
121
+ $fault: "client",
122
+ ...opts
123
+ });
124
+ Object.setPrototypeOf(this, IdentityNotFoundException.prototype);
125
+ }
126
+ }
127
+ export class WorkspaceNotFoundException extends __BaseException {
128
+ name = "WorkspaceNotFoundException";
129
+ $fault = "client";
130
+ constructor(opts) {
131
+ super({
132
+ name: "WorkspaceNotFoundException",
133
+ $fault: "client",
134
+ ...opts
135
+ });
136
+ Object.setPrototypeOf(this, WorkspaceNotFoundException.prototype);
137
+ }
138
+ }
67
139
  export const AppType = {
68
140
  COLLABORATION: "collaboration",
69
141
  X_BEES: "x-bees",
@@ -219,6 +291,11 @@ export class UserNotFoundException extends __BaseException {
219
291
  Object.setPrototypeOf(this, UserNotFoundException.prototype);
220
292
  }
221
293
  }
294
+ export const WorkspaceType = {
295
+ PERSONAL: "personal",
296
+ SUPPORT: "support",
297
+ WORK: "work",
298
+ };
222
299
  export var UserQuery;
223
300
  (function (UserQuery) {
224
301
  UserQuery.visit = (value, visitor) => {