@wildix/xbees-users-client 1.0.24 → 1.0.26

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 (31) hide show
  1. package/dist-cjs/Users.js +12 -0
  2. package/dist-cjs/commands/BatchGetUsersPbxLinkDataV1Command.js +21 -0
  3. package/dist-cjs/commands/GetUserPbxLinkSuggestionV1Command.js +21 -0
  4. package/dist-cjs/commands/GetUserSettingsCommand.js +21 -0
  5. package/dist-cjs/commands/PartialUpdateUserSettingsCommand.js +21 -0
  6. package/dist-cjs/commands/UploadPictureV1Command.js +21 -0
  7. package/dist-cjs/commands/VerifyBotSecretKeyV1Command.js +21 -0
  8. package/dist-cjs/commands/index.js +6 -0
  9. package/dist-cjs/protocols/Aws_restJson1.js +202 -16
  10. package/dist-es/Users.js +12 -0
  11. package/dist-es/commands/BatchGetUsersPbxLinkDataV1Command.js +17 -0
  12. package/dist-es/commands/GetUserPbxLinkSuggestionV1Command.js +17 -0
  13. package/dist-es/commands/GetUserSettingsCommand.js +17 -0
  14. package/dist-es/commands/PartialUpdateUserSettingsCommand.js +17 -0
  15. package/dist-es/commands/UploadPictureV1Command.js +17 -0
  16. package/dist-es/commands/VerifyBotSecretKeyV1Command.js +17 -0
  17. package/dist-es/commands/index.js +6 -0
  18. package/dist-es/protocols/Aws_restJson1.js +184 -11
  19. package/dist-types/Users.d.ts +43 -0
  20. package/dist-types/UsersClient.d.ts +8 -2
  21. package/dist-types/commands/BatchGetUsersPbxLinkDataV1Command.d.ts +122 -0
  22. package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +1 -1
  23. package/dist-types/commands/GetUserPbxLinkSuggestionV1Command.d.ts +67 -0
  24. package/dist-types/commands/GetUserSettingsCommand.d.ts +69 -0
  25. package/dist-types/commands/PartialUpdateUserSettingsCommand.d.ts +76 -0
  26. package/dist-types/commands/UploadPictureV1Command.d.ts +64 -0
  27. package/dist-types/commands/VerifyBotSecretKeyV1Command.d.ts +68 -0
  28. package/dist-types/commands/index.d.ts +6 -0
  29. package/dist-types/models/models_0.d.ts +157 -1
  30. package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
  31. package/package.json +2 -2
package/dist-cjs/Users.js CHANGED
@@ -4,6 +4,7 @@ exports.Users = void 0;
4
4
  const UsersClient_1 = require("./UsersClient");
5
5
  const BatchGetUsersCommand_1 = require("./commands/BatchGetUsersCommand");
6
6
  const BatchGetUsersPbxLinkDataCommand_1 = require("./commands/BatchGetUsersPbxLinkDataCommand");
7
+ const BatchGetUsersPbxLinkDataV1Command_1 = require("./commands/BatchGetUsersPbxLinkDataV1Command");
7
8
  const ChangeUserEmailCommand_1 = require("./commands/ChangeUserEmailCommand");
8
9
  const CreateBotApiKeyCommand_1 = require("./commands/CreateBotApiKeyCommand");
9
10
  const CreateBotCommand_1 = require("./commands/CreateBotCommand");
@@ -14,18 +15,24 @@ const GetBotCommand_1 = require("./commands/GetBotCommand");
14
15
  const GetUserCommand_1 = require("./commands/GetUserCommand");
15
16
  const GetUserPbxLinkDataCommand_1 = require("./commands/GetUserPbxLinkDataCommand");
16
17
  const GetUserPbxLinkSuggestionCommand_1 = require("./commands/GetUserPbxLinkSuggestionCommand");
18
+ const GetUserPbxLinkSuggestionV1Command_1 = require("./commands/GetUserPbxLinkSuggestionV1Command");
19
+ const GetUserSettingsCommand_1 = require("./commands/GetUserSettingsCommand");
17
20
  const ListBotApiKeysCommand_1 = require("./commands/ListBotApiKeysCommand");
18
21
  const ListBotsCommand_1 = require("./commands/ListBotsCommand");
22
+ const PartialUpdateUserSettingsCommand_1 = require("./commands/PartialUpdateUserSettingsCommand");
19
23
  const QueryUserCommand_1 = require("./commands/QueryUserCommand");
20
24
  const QueryUsersCommand_1 = require("./commands/QueryUsersCommand");
21
25
  const UpdateBotCallbackCommand_1 = require("./commands/UpdateBotCallbackCommand");
22
26
  const UpdateBotCommand_1 = require("./commands/UpdateBotCommand");
23
27
  const UploadPictureCommand_1 = require("./commands/UploadPictureCommand");
28
+ const UploadPictureV1Command_1 = require("./commands/UploadPictureV1Command");
24
29
  const VerifyBotSecretKeyCommand_1 = require("./commands/VerifyBotSecretKeyCommand");
30
+ const VerifyBotSecretKeyV1Command_1 = require("./commands/VerifyBotSecretKeyV1Command");
25
31
  const smithy_client_1 = require("@smithy/smithy-client");
26
32
  const commands = {
27
33
  BatchGetUsersCommand: BatchGetUsersCommand_1.BatchGetUsersCommand,
28
34
  BatchGetUsersPbxLinkDataCommand: BatchGetUsersPbxLinkDataCommand_1.BatchGetUsersPbxLinkDataCommand,
35
+ BatchGetUsersPbxLinkDataV1Command: BatchGetUsersPbxLinkDataV1Command_1.BatchGetUsersPbxLinkDataV1Command,
29
36
  ChangeUserEmailCommand: ChangeUserEmailCommand_1.ChangeUserEmailCommand,
30
37
  CreateBotCommand: CreateBotCommand_1.CreateBotCommand,
31
38
  CreateBotApiKeyCommand: CreateBotApiKeyCommand_1.CreateBotApiKeyCommand,
@@ -36,14 +43,19 @@ const commands = {
36
43
  GetUserCommand: GetUserCommand_1.GetUserCommand,
37
44
  GetUserPbxLinkDataCommand: GetUserPbxLinkDataCommand_1.GetUserPbxLinkDataCommand,
38
45
  GetUserPbxLinkSuggestionCommand: GetUserPbxLinkSuggestionCommand_1.GetUserPbxLinkSuggestionCommand,
46
+ GetUserPbxLinkSuggestionV1Command: GetUserPbxLinkSuggestionV1Command_1.GetUserPbxLinkSuggestionV1Command,
47
+ GetUserSettingsCommand: GetUserSettingsCommand_1.GetUserSettingsCommand,
39
48
  ListBotApiKeysCommand: ListBotApiKeysCommand_1.ListBotApiKeysCommand,
40
49
  ListBotsCommand: ListBotsCommand_1.ListBotsCommand,
50
+ PartialUpdateUserSettingsCommand: PartialUpdateUserSettingsCommand_1.PartialUpdateUserSettingsCommand,
41
51
  QueryUserCommand: QueryUserCommand_1.QueryUserCommand,
42
52
  QueryUsersCommand: QueryUsersCommand_1.QueryUsersCommand,
43
53
  UpdateBotCommand: UpdateBotCommand_1.UpdateBotCommand,
44
54
  UpdateBotCallbackCommand: UpdateBotCallbackCommand_1.UpdateBotCallbackCommand,
45
55
  UploadPictureCommand: UploadPictureCommand_1.UploadPictureCommand,
56
+ UploadPictureV1Command: UploadPictureV1Command_1.UploadPictureV1Command,
46
57
  VerifyBotSecretKeyCommand: VerifyBotSecretKeyCommand_1.VerifyBotSecretKeyCommand,
58
+ VerifyBotSecretKeyV1Command: VerifyBotSecretKeyV1Command_1.VerifyBotSecretKeyV1Command,
47
59
  };
48
60
  class Users extends UsersClient_1.UsersClient {
49
61
  }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchGetUsersPbxLinkDataV1Command = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class BatchGetUsersPbxLinkDataV1Command extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Users", "BatchGetUsersPbxLinkDataV1", {})
15
+ .n("UsersClient", "BatchGetUsersPbxLinkDataV1Command")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_BatchGetUsersPbxLinkDataV1Command)
18
+ .de(Aws_restJson1_1.de_BatchGetUsersPbxLinkDataV1Command)
19
+ .build() {
20
+ }
21
+ exports.BatchGetUsersPbxLinkDataV1Command = BatchGetUsersPbxLinkDataV1Command;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetUserPbxLinkSuggestionV1Command = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetUserPbxLinkSuggestionV1Command extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Users", "GetUserPbxLinkSuggestionV1", {})
15
+ .n("UsersClient", "GetUserPbxLinkSuggestionV1Command")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetUserPbxLinkSuggestionV1Command)
18
+ .de(Aws_restJson1_1.de_GetUserPbxLinkSuggestionV1Command)
19
+ .build() {
20
+ }
21
+ exports.GetUserPbxLinkSuggestionV1Command = GetUserPbxLinkSuggestionV1Command;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetUserSettingsCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetUserSettingsCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Users", "GetUserSettings", {})
15
+ .n("UsersClient", "GetUserSettingsCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetUserSettingsCommand)
18
+ .de(Aws_restJson1_1.de_GetUserSettingsCommand)
19
+ .build() {
20
+ }
21
+ exports.GetUserSettingsCommand = GetUserSettingsCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PartialUpdateUserSettingsCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class PartialUpdateUserSettingsCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Users", "PartialUpdateUserSettings", {})
15
+ .n("UsersClient", "PartialUpdateUserSettingsCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_PartialUpdateUserSettingsCommand)
18
+ .de(Aws_restJson1_1.de_PartialUpdateUserSettingsCommand)
19
+ .build() {
20
+ }
21
+ exports.PartialUpdateUserSettingsCommand = PartialUpdateUserSettingsCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UploadPictureV1Command = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class UploadPictureV1Command extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Users", "UploadPictureV1", {})
15
+ .n("UsersClient", "UploadPictureV1Command")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_UploadPictureV1Command)
18
+ .de(Aws_restJson1_1.de_UploadPictureV1Command)
19
+ .build() {
20
+ }
21
+ exports.UploadPictureV1Command = UploadPictureV1Command;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VerifyBotSecretKeyV1Command = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class VerifyBotSecretKeyV1Command extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Users", "VerifyBotSecretKeyV1", {})
15
+ .n("UsersClient", "VerifyBotSecretKeyV1Command")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_VerifyBotSecretKeyV1Command)
18
+ .de(Aws_restJson1_1.de_VerifyBotSecretKeyV1Command)
19
+ .build() {
20
+ }
21
+ exports.VerifyBotSecretKeyV1Command = VerifyBotSecretKeyV1Command;
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./BatchGetUsersCommand"), exports);
5
5
  tslib_1.__exportStar(require("./BatchGetUsersPbxLinkDataCommand"), exports);
6
+ tslib_1.__exportStar(require("./BatchGetUsersPbxLinkDataV1Command"), exports);
6
7
  tslib_1.__exportStar(require("./ChangeUserEmailCommand"), exports);
7
8
  tslib_1.__exportStar(require("./CreateBotCommand"), exports);
8
9
  tslib_1.__exportStar(require("./CreateBotApiKeyCommand"), exports);
@@ -13,11 +14,16 @@ tslib_1.__exportStar(require("./GetBotCallbackCommand"), exports);
13
14
  tslib_1.__exportStar(require("./GetUserCommand"), exports);
14
15
  tslib_1.__exportStar(require("./GetUserPbxLinkDataCommand"), exports);
15
16
  tslib_1.__exportStar(require("./GetUserPbxLinkSuggestionCommand"), exports);
17
+ tslib_1.__exportStar(require("./GetUserPbxLinkSuggestionV1Command"), exports);
18
+ tslib_1.__exportStar(require("./GetUserSettingsCommand"), exports);
16
19
  tslib_1.__exportStar(require("./ListBotApiKeysCommand"), exports);
17
20
  tslib_1.__exportStar(require("./ListBotsCommand"), exports);
21
+ tslib_1.__exportStar(require("./PartialUpdateUserSettingsCommand"), exports);
18
22
  tslib_1.__exportStar(require("./QueryUserCommand"), exports);
19
23
  tslib_1.__exportStar(require("./QueryUsersCommand"), exports);
20
24
  tslib_1.__exportStar(require("./UpdateBotCommand"), exports);
21
25
  tslib_1.__exportStar(require("./UpdateBotCallbackCommand"), exports);
22
26
  tslib_1.__exportStar(require("./UploadPictureCommand"), exports);
27
+ tslib_1.__exportStar(require("./UploadPictureV1Command"), exports);
23
28
  tslib_1.__exportStar(require("./VerifyBotSecretKeyCommand"), exports);
29
+ tslib_1.__exportStar(require("./VerifyBotSecretKeyV1Command"), exports);
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_VerifyBotSecretKeyCommand = exports.de_UploadPictureCommand = exports.de_UpdateBotCallbackCommand = exports.de_UpdateBotCommand = exports.de_QueryUsersCommand = exports.de_QueryUserCommand = exports.de_ListBotsCommand = exports.de_ListBotApiKeysCommand = exports.de_GetUserPbxLinkSuggestionCommand = exports.de_GetUserPbxLinkDataCommand = exports.de_GetUserCommand = exports.de_GetBotCallbackCommand = exports.de_GetBotCommand = exports.de_DeleteBotApiKeyCommand = exports.de_DeleteBotCommand = exports.de_CreateBotApiKeyCommand = exports.de_CreateBotCommand = exports.de_ChangeUserEmailCommand = exports.de_BatchGetUsersPbxLinkDataCommand = exports.de_BatchGetUsersCommand = exports.se_VerifyBotSecretKeyCommand = exports.se_UploadPictureCommand = exports.se_UpdateBotCallbackCommand = exports.se_UpdateBotCommand = exports.se_QueryUsersCommand = exports.se_QueryUserCommand = exports.se_ListBotsCommand = exports.se_ListBotApiKeysCommand = exports.se_GetUserPbxLinkSuggestionCommand = exports.se_GetUserPbxLinkDataCommand = exports.se_GetUserCommand = exports.se_GetBotCallbackCommand = exports.se_GetBotCommand = exports.se_DeleteBotApiKeyCommand = exports.se_DeleteBotCommand = exports.se_CreateBotApiKeyCommand = exports.se_CreateBotCommand = exports.se_ChangeUserEmailCommand = exports.se_BatchGetUsersPbxLinkDataCommand = exports.se_BatchGetUsersCommand = void 0;
3
+ exports.de_UploadPictureV1Command = exports.de_UploadPictureCommand = exports.de_UpdateBotCallbackCommand = exports.de_UpdateBotCommand = exports.de_QueryUsersCommand = exports.de_QueryUserCommand = exports.de_PartialUpdateUserSettingsCommand = exports.de_ListBotsCommand = exports.de_ListBotApiKeysCommand = exports.de_GetUserSettingsCommand = exports.de_GetUserPbxLinkSuggestionV1Command = exports.de_GetUserPbxLinkSuggestionCommand = exports.de_GetUserPbxLinkDataCommand = exports.de_GetUserCommand = exports.de_GetBotCallbackCommand = exports.de_GetBotCommand = exports.de_DeleteBotApiKeyCommand = exports.de_DeleteBotCommand = exports.de_CreateBotApiKeyCommand = exports.de_CreateBotCommand = exports.de_ChangeUserEmailCommand = exports.de_BatchGetUsersPbxLinkDataV1Command = exports.de_BatchGetUsersPbxLinkDataCommand = exports.de_BatchGetUsersCommand = exports.se_VerifyBotSecretKeyV1Command = exports.se_VerifyBotSecretKeyCommand = exports.se_UploadPictureV1Command = exports.se_UploadPictureCommand = exports.se_UpdateBotCallbackCommand = exports.se_UpdateBotCommand = exports.se_QueryUsersCommand = exports.se_QueryUserCommand = exports.se_PartialUpdateUserSettingsCommand = exports.se_ListBotsCommand = exports.se_ListBotApiKeysCommand = exports.se_GetUserSettingsCommand = exports.se_GetUserPbxLinkSuggestionV1Command = exports.se_GetUserPbxLinkSuggestionCommand = exports.se_GetUserPbxLinkDataCommand = exports.se_GetUserCommand = exports.se_GetBotCallbackCommand = exports.se_GetBotCommand = exports.se_DeleteBotApiKeyCommand = exports.se_DeleteBotCommand = exports.se_CreateBotApiKeyCommand = exports.se_CreateBotCommand = exports.se_ChangeUserEmailCommand = exports.se_BatchGetUsersPbxLinkDataV1Command = exports.se_BatchGetUsersPbxLinkDataCommand = exports.se_BatchGetUsersCommand = void 0;
4
+ exports.de_VerifyBotSecretKeyV1Command = exports.de_VerifyBotSecretKeyCommand = void 0;
4
5
  const UsersServiceException_1 = require("../models/UsersServiceException");
5
6
  const models_0_1 = require("../models/models_0");
6
7
  const core_1 = require("@smithy/core");
@@ -10,7 +11,7 @@ const se_BatchGetUsersCommand = async (input, context) => {
10
11
  const headers = {
11
12
  'content-type': 'application/json',
12
13
  };
13
- b.bp("/v2/users/BatchGetUsers");
14
+ b.bp("/v2/users/batch-get-users");
14
15
  let body;
15
16
  body = JSON.stringify((0, smithy_client_1.take)(input, {
16
17
  'id': _ => (0, smithy_client_1._json)(_),
@@ -26,7 +27,7 @@ const se_BatchGetUsersPbxLinkDataCommand = async (input, context) => {
26
27
  const headers = {
27
28
  'content-type': 'application/json',
28
29
  };
29
- b.bp("/v2/users/BatchGetUsersPbxLinkData");
30
+ b.bp("/v2/users/batch-get-users-pbx-link-data");
30
31
  let body;
31
32
  body = JSON.stringify((0, smithy_client_1.take)(input, {
32
33
  'id': _ => (0, smithy_client_1._json)(_),
@@ -37,6 +38,22 @@ const se_BatchGetUsersPbxLinkDataCommand = async (input, context) => {
37
38
  return b.build();
38
39
  };
39
40
  exports.se_BatchGetUsersPbxLinkDataCommand = se_BatchGetUsersPbxLinkDataCommand;
41
+ const se_BatchGetUsersPbxLinkDataV1Command = async (input, context) => {
42
+ const b = (0, core_1.requestBuilder)(input, context);
43
+ const headers = {
44
+ 'content-type': 'application/json',
45
+ };
46
+ b.bp("/v2/users/BatchGetUsersPbxLinkData");
47
+ let body;
48
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
49
+ 'id': _ => (0, smithy_client_1._json)(_),
50
+ }));
51
+ b.m("POST")
52
+ .h(headers)
53
+ .b(body);
54
+ return b.build();
55
+ };
56
+ exports.se_BatchGetUsersPbxLinkDataV1Command = se_BatchGetUsersPbxLinkDataV1Command;
40
57
  const se_ChangeUserEmailCommand = async (input, context) => {
41
58
  const b = (0, core_1.requestBuilder)(input, context);
42
59
  const headers = {
@@ -177,15 +194,11 @@ const se_GetUserCommand = async (input, context) => {
177
194
  exports.se_GetUserCommand = se_GetUserCommand;
178
195
  const se_GetUserPbxLinkDataCommand = async (input, context) => {
179
196
  const b = (0, core_1.requestBuilder)(input, context);
180
- const headers = {
181
- 'content-type': 'application/json',
182
- };
183
- b.bp("/v2/users/GetUserPbxLinkData");
197
+ const headers = {};
198
+ b.bp("/v2/users/cloud/{userId}/pbx-link-data");
199
+ b.p('userId', () => input.userId, '{userId}', false);
184
200
  let body;
185
- body = JSON.stringify((0, smithy_client_1.take)(input, {
186
- 'id': [],
187
- }));
188
- b.m("POST")
201
+ b.m("GET")
189
202
  .h(headers)
190
203
  .b(body);
191
204
  return b.build();
@@ -194,7 +207,7 @@ exports.se_GetUserPbxLinkDataCommand = se_GetUserPbxLinkDataCommand;
194
207
  const se_GetUserPbxLinkSuggestionCommand = async (input, context) => {
195
208
  const b = (0, core_1.requestBuilder)(input, context);
196
209
  const headers = {};
197
- b.bp("/v2/users/GetUserPbxLinkSuggestion");
210
+ b.bp("/v2/users/get-user-pbx-link-suggestion");
198
211
  const query = (0, smithy_client_1.map)({
199
212
  [_e]: [, input[_e]],
200
213
  });
@@ -206,6 +219,33 @@ const se_GetUserPbxLinkSuggestionCommand = async (input, context) => {
206
219
  return b.build();
207
220
  };
208
221
  exports.se_GetUserPbxLinkSuggestionCommand = se_GetUserPbxLinkSuggestionCommand;
222
+ const se_GetUserPbxLinkSuggestionV1Command = async (input, context) => {
223
+ const b = (0, core_1.requestBuilder)(input, context);
224
+ const headers = {};
225
+ b.bp("/v2/users/GetUserPbxLinkSuggestion");
226
+ const query = (0, smithy_client_1.map)({
227
+ [_e]: [, input[_e]],
228
+ });
229
+ let body;
230
+ b.m("GET")
231
+ .h(headers)
232
+ .q(query)
233
+ .b(body);
234
+ return b.build();
235
+ };
236
+ exports.se_GetUserPbxLinkSuggestionV1Command = se_GetUserPbxLinkSuggestionV1Command;
237
+ const se_GetUserSettingsCommand = async (input, context) => {
238
+ const b = (0, core_1.requestBuilder)(input, context);
239
+ const headers = {};
240
+ b.bp("/v2/users/settings/{userId}");
241
+ b.p('userId', () => input.userId, '{userId}', false);
242
+ let body;
243
+ b.m("GET")
244
+ .h(headers)
245
+ .b(body);
246
+ return b.build();
247
+ };
248
+ exports.se_GetUserSettingsCommand = se_GetUserSettingsCommand;
209
249
  const se_ListBotApiKeysCommand = async (input, context) => {
210
250
  const b = (0, core_1.requestBuilder)(input, context);
211
251
  const headers = {};
@@ -237,12 +277,33 @@ const se_ListBotsCommand = async (input, context) => {
237
277
  return b.build();
238
278
  };
239
279
  exports.se_ListBotsCommand = se_ListBotsCommand;
280
+ const se_PartialUpdateUserSettingsCommand = async (input, context) => {
281
+ const b = (0, core_1.requestBuilder)(input, context);
282
+ const headers = {
283
+ 'content-type': 'application/json',
284
+ };
285
+ b.bp("/v2/users/settings");
286
+ const query = (0, smithy_client_1.map)({
287
+ [_t]: [, input[_t]],
288
+ });
289
+ let body;
290
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
291
+ 'settings': _ => (0, smithy_client_1._json)(_),
292
+ 'userId': [],
293
+ }));
294
+ b.m("PATCH")
295
+ .h(headers)
296
+ .q(query)
297
+ .b(body);
298
+ return b.build();
299
+ };
300
+ exports.se_PartialUpdateUserSettingsCommand = se_PartialUpdateUserSettingsCommand;
240
301
  const se_QueryUserCommand = async (input, context) => {
241
302
  const b = (0, core_1.requestBuilder)(input, context);
242
303
  const headers = {
243
304
  'content-type': 'application/json',
244
305
  };
245
- b.bp("/v2/users/QueryUser");
306
+ b.bp("/v2/users/query-user");
246
307
  let body;
247
308
  body = JSON.stringify((0, smithy_client_1.take)(input, {
248
309
  'predicate': _ => (0, smithy_client_1._json)(_),
@@ -259,7 +320,7 @@ const se_QueryUsersCommand = async (input, context) => {
259
320
  const headers = {
260
321
  'content-type': 'application/json',
261
322
  };
262
- b.bp("/v2/users/QueryUsers");
323
+ b.bp("/v2/users/query-users");
263
324
  let body;
264
325
  body = JSON.stringify((0, smithy_client_1.take)(input, {
265
326
  'predicate': _ => (0, smithy_client_1._json)(_),
@@ -320,7 +381,7 @@ const se_UploadPictureCommand = async (input, context) => {
320
381
  const headers = {
321
382
  'content-type': 'application/json',
322
383
  };
323
- b.bp("/v2/users/UploadPicture");
384
+ b.bp("/v2/users/upload-picture");
324
385
  let body;
325
386
  body = JSON.stringify((0, smithy_client_1.take)(input, {
326
387
  'picture': [],
@@ -331,12 +392,28 @@ const se_UploadPictureCommand = async (input, context) => {
331
392
  return b.build();
332
393
  };
333
394
  exports.se_UploadPictureCommand = se_UploadPictureCommand;
395
+ const se_UploadPictureV1Command = async (input, context) => {
396
+ const b = (0, core_1.requestBuilder)(input, context);
397
+ const headers = {
398
+ 'content-type': 'application/json',
399
+ };
400
+ b.bp("/v2/users/UploadPicture");
401
+ let body;
402
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
403
+ 'picture': [],
404
+ }));
405
+ b.m("POST")
406
+ .h(headers)
407
+ .b(body);
408
+ return b.build();
409
+ };
410
+ exports.se_UploadPictureV1Command = se_UploadPictureV1Command;
334
411
  const se_VerifyBotSecretKeyCommand = async (input, context) => {
335
412
  const b = (0, core_1.requestBuilder)(input, context);
336
413
  const headers = {
337
414
  'content-type': 'application/json',
338
415
  };
339
- b.bp("/v2/users/auth/VerifyBotSecretKey");
416
+ b.bp("/v2/users/verify-bot-secret-key");
340
417
  let body;
341
418
  body = JSON.stringify((0, smithy_client_1.take)(input, {
342
419
  'secret': [],
@@ -347,6 +424,22 @@ const se_VerifyBotSecretKeyCommand = async (input, context) => {
347
424
  return b.build();
348
425
  };
349
426
  exports.se_VerifyBotSecretKeyCommand = se_VerifyBotSecretKeyCommand;
427
+ const se_VerifyBotSecretKeyV1Command = async (input, context) => {
428
+ const b = (0, core_1.requestBuilder)(input, context);
429
+ const headers = {
430
+ 'content-type': 'application/json',
431
+ };
432
+ b.bp("/v2/users/auth/VerifyBotSecretKey");
433
+ let body;
434
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
435
+ 'secret': [],
436
+ }));
437
+ b.m("POST")
438
+ .h(headers)
439
+ .b(body);
440
+ return b.build();
441
+ };
442
+ exports.se_VerifyBotSecretKeyV1Command = se_VerifyBotSecretKeyV1Command;
350
443
  const de_BatchGetUsersCommand = async (output, context) => {
351
444
  if (output.statusCode !== 200 && output.statusCode >= 300) {
352
445
  return de_CommandError(output, context);
@@ -377,6 +470,21 @@ const de_BatchGetUsersPbxLinkDataCommand = async (output, context) => {
377
470
  return contents;
378
471
  };
379
472
  exports.de_BatchGetUsersPbxLinkDataCommand = de_BatchGetUsersPbxLinkDataCommand;
473
+ const de_BatchGetUsersPbxLinkDataV1Command = async (output, context) => {
474
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
475
+ return de_CommandError(output, context);
476
+ }
477
+ const contents = (0, smithy_client_1.map)({
478
+ $metadata: deserializeMetadata(output),
479
+ });
480
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
481
+ const doc = (0, smithy_client_1.take)(data, {
482
+ 'users': smithy_client_1._json,
483
+ });
484
+ Object.assign(contents, doc);
485
+ return contents;
486
+ };
487
+ exports.de_BatchGetUsersPbxLinkDataV1Command = de_BatchGetUsersPbxLinkDataV1Command;
380
488
  const de_ChangeUserEmailCommand = async (output, context) => {
381
489
  if (output.statusCode !== 200 && output.statusCode >= 300) {
382
490
  return de_CommandError(output, context);
@@ -520,6 +628,36 @@ const de_GetUserPbxLinkSuggestionCommand = async (output, context) => {
520
628
  return contents;
521
629
  };
522
630
  exports.de_GetUserPbxLinkSuggestionCommand = de_GetUserPbxLinkSuggestionCommand;
631
+ const de_GetUserPbxLinkSuggestionV1Command = async (output, context) => {
632
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
633
+ return de_CommandError(output, context);
634
+ }
635
+ const contents = (0, smithy_client_1.map)({
636
+ $metadata: deserializeMetadata(output),
637
+ });
638
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
639
+ const doc = (0, smithy_client_1.take)(data, {
640
+ 'suggestion': smithy_client_1._json,
641
+ });
642
+ Object.assign(contents, doc);
643
+ return contents;
644
+ };
645
+ exports.de_GetUserPbxLinkSuggestionV1Command = de_GetUserPbxLinkSuggestionV1Command;
646
+ const de_GetUserSettingsCommand = async (output, context) => {
647
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
648
+ return de_CommandError(output, context);
649
+ }
650
+ const contents = (0, smithy_client_1.map)({
651
+ $metadata: deserializeMetadata(output),
652
+ });
653
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
654
+ const doc = (0, smithy_client_1.take)(data, {
655
+ 'emailNotifications': smithy_client_1._json,
656
+ });
657
+ Object.assign(contents, doc);
658
+ return contents;
659
+ };
660
+ exports.de_GetUserSettingsCommand = de_GetUserSettingsCommand;
523
661
  const de_ListBotApiKeysCommand = async (output, context) => {
524
662
  if (output.statusCode !== 200 && output.statusCode >= 300) {
525
663
  return de_CommandError(output, context);
@@ -550,6 +688,21 @@ const de_ListBotsCommand = async (output, context) => {
550
688
  return contents;
551
689
  };
552
690
  exports.de_ListBotsCommand = de_ListBotsCommand;
691
+ const de_PartialUpdateUserSettingsCommand = async (output, context) => {
692
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
693
+ return de_CommandError(output, context);
694
+ }
695
+ const contents = (0, smithy_client_1.map)({
696
+ $metadata: deserializeMetadata(output),
697
+ });
698
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
699
+ const doc = (0, smithy_client_1.take)(data, {
700
+ 'emailNotifications': smithy_client_1._json,
701
+ });
702
+ Object.assign(contents, doc);
703
+ return contents;
704
+ };
705
+ exports.de_PartialUpdateUserSettingsCommand = de_PartialUpdateUserSettingsCommand;
553
706
  const de_QueryUserCommand = async (output, context) => {
554
707
  if (output.statusCode !== 200 && output.statusCode >= 300) {
555
708
  return de_CommandError(output, context);
@@ -625,6 +778,21 @@ const de_UploadPictureCommand = async (output, context) => {
625
778
  return contents;
626
779
  };
627
780
  exports.de_UploadPictureCommand = de_UploadPictureCommand;
781
+ const de_UploadPictureV1Command = async (output, context) => {
782
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
783
+ return de_CommandError(output, context);
784
+ }
785
+ const contents = (0, smithy_client_1.map)({
786
+ $metadata: deserializeMetadata(output),
787
+ });
788
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
789
+ const doc = (0, smithy_client_1.take)(data, {
790
+ 'url': smithy_client_1.expectString,
791
+ });
792
+ Object.assign(contents, doc);
793
+ return contents;
794
+ };
795
+ exports.de_UploadPictureV1Command = de_UploadPictureV1Command;
628
796
  const de_VerifyBotSecretKeyCommand = async (output, context) => {
629
797
  if (output.statusCode !== 200 && output.statusCode >= 300) {
630
798
  return de_CommandError(output, context);
@@ -642,6 +810,23 @@ const de_VerifyBotSecretKeyCommand = async (output, context) => {
642
810
  return contents;
643
811
  };
644
812
  exports.de_VerifyBotSecretKeyCommand = de_VerifyBotSecretKeyCommand;
813
+ const de_VerifyBotSecretKeyV1Command = async (output, context) => {
814
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
815
+ return de_CommandError(output, context);
816
+ }
817
+ const contents = (0, smithy_client_1.map)({
818
+ $metadata: deserializeMetadata(output),
819
+ });
820
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
821
+ const doc = (0, smithy_client_1.take)(data, {
822
+ 'company': smithy_client_1.expectString,
823
+ 'id': smithy_client_1.expectString,
824
+ 'name': smithy_client_1.expectString,
825
+ });
826
+ Object.assign(contents, doc);
827
+ return contents;
828
+ };
829
+ exports.de_VerifyBotSecretKeyV1Command = de_VerifyBotSecretKeyV1Command;
645
830
  const de_CommandError = async (output, context) => {
646
831
  const parsedOutput = {
647
832
  ...output,
@@ -866,6 +1051,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
866
1051
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
867
1052
  const _c = "company";
868
1053
  const _e = "email";
1054
+ const _t = "token";
869
1055
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
870
1056
  if (encoded.length) {
871
1057
  return JSON.parse(encoded);
package/dist-es/Users.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { UsersClient, } from "./UsersClient";
2
2
  import { BatchGetUsersCommand, } from "./commands/BatchGetUsersCommand";
3
3
  import { BatchGetUsersPbxLinkDataCommand, } from "./commands/BatchGetUsersPbxLinkDataCommand";
4
+ import { BatchGetUsersPbxLinkDataV1Command, } from "./commands/BatchGetUsersPbxLinkDataV1Command";
4
5
  import { ChangeUserEmailCommand, } from "./commands/ChangeUserEmailCommand";
5
6
  import { CreateBotApiKeyCommand, } from "./commands/CreateBotApiKeyCommand";
6
7
  import { CreateBotCommand, } from "./commands/CreateBotCommand";
@@ -11,18 +12,24 @@ import { GetBotCommand, } from "./commands/GetBotCommand";
11
12
  import { GetUserCommand, } from "./commands/GetUserCommand";
12
13
  import { GetUserPbxLinkDataCommand, } from "./commands/GetUserPbxLinkDataCommand";
13
14
  import { GetUserPbxLinkSuggestionCommand, } from "./commands/GetUserPbxLinkSuggestionCommand";
15
+ import { GetUserPbxLinkSuggestionV1Command, } from "./commands/GetUserPbxLinkSuggestionV1Command";
16
+ import { GetUserSettingsCommand, } from "./commands/GetUserSettingsCommand";
14
17
  import { ListBotApiKeysCommand, } from "./commands/ListBotApiKeysCommand";
15
18
  import { ListBotsCommand, } from "./commands/ListBotsCommand";
19
+ import { PartialUpdateUserSettingsCommand, } from "./commands/PartialUpdateUserSettingsCommand";
16
20
  import { QueryUserCommand, } from "./commands/QueryUserCommand";
17
21
  import { QueryUsersCommand, } from "./commands/QueryUsersCommand";
18
22
  import { UpdateBotCallbackCommand, } from "./commands/UpdateBotCallbackCommand";
19
23
  import { UpdateBotCommand, } from "./commands/UpdateBotCommand";
20
24
  import { UploadPictureCommand, } from "./commands/UploadPictureCommand";
25
+ import { UploadPictureV1Command, } from "./commands/UploadPictureV1Command";
21
26
  import { VerifyBotSecretKeyCommand, } from "./commands/VerifyBotSecretKeyCommand";
27
+ import { VerifyBotSecretKeyV1Command, } from "./commands/VerifyBotSecretKeyV1Command";
22
28
  import { createAggregatedClient } from "@smithy/smithy-client";
23
29
  const commands = {
24
30
  BatchGetUsersCommand,
25
31
  BatchGetUsersPbxLinkDataCommand,
32
+ BatchGetUsersPbxLinkDataV1Command,
26
33
  ChangeUserEmailCommand,
27
34
  CreateBotCommand,
28
35
  CreateBotApiKeyCommand,
@@ -33,14 +40,19 @@ const commands = {
33
40
  GetUserCommand,
34
41
  GetUserPbxLinkDataCommand,
35
42
  GetUserPbxLinkSuggestionCommand,
43
+ GetUserPbxLinkSuggestionV1Command,
44
+ GetUserSettingsCommand,
36
45
  ListBotApiKeysCommand,
37
46
  ListBotsCommand,
47
+ PartialUpdateUserSettingsCommand,
38
48
  QueryUserCommand,
39
49
  QueryUsersCommand,
40
50
  UpdateBotCommand,
41
51
  UpdateBotCallbackCommand,
42
52
  UploadPictureCommand,
53
+ UploadPictureV1Command,
43
54
  VerifyBotSecretKeyCommand,
55
+ VerifyBotSecretKeyV1Command,
44
56
  };
45
57
  export class Users extends UsersClient {
46
58
  }
@@ -0,0 +1,17 @@
1
+ import { de_BatchGetUsersPbxLinkDataV1Command, se_BatchGetUsersPbxLinkDataV1Command, } 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 BatchGetUsersPbxLinkDataV1Command extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "BatchGetUsersPbxLinkDataV1", {})
12
+ .n("UsersClient", "BatchGetUsersPbxLinkDataV1Command")
13
+ .f(void 0, void 0)
14
+ .ser(se_BatchGetUsersPbxLinkDataV1Command)
15
+ .de(de_BatchGetUsersPbxLinkDataV1Command)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetUserPbxLinkSuggestionV1Command, se_GetUserPbxLinkSuggestionV1Command, } 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 GetUserPbxLinkSuggestionV1Command extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "GetUserPbxLinkSuggestionV1", {})
12
+ .n("UsersClient", "GetUserPbxLinkSuggestionV1Command")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetUserPbxLinkSuggestionV1Command)
15
+ .de(de_GetUserPbxLinkSuggestionV1Command)
16
+ .build() {
17
+ }