@wildix/xbees-users-client 1.0.24 → 1.0.25

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.
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,6 +15,7 @@ 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");
17
19
  const ListBotApiKeysCommand_1 = require("./commands/ListBotApiKeysCommand");
18
20
  const ListBotsCommand_1 = require("./commands/ListBotsCommand");
19
21
  const QueryUserCommand_1 = require("./commands/QueryUserCommand");
@@ -21,11 +23,14 @@ const QueryUsersCommand_1 = require("./commands/QueryUsersCommand");
21
23
  const UpdateBotCallbackCommand_1 = require("./commands/UpdateBotCallbackCommand");
22
24
  const UpdateBotCommand_1 = require("./commands/UpdateBotCommand");
23
25
  const UploadPictureCommand_1 = require("./commands/UploadPictureCommand");
26
+ const UploadPictureV1Command_1 = require("./commands/UploadPictureV1Command");
24
27
  const VerifyBotSecretKeyCommand_1 = require("./commands/VerifyBotSecretKeyCommand");
28
+ const VerifyBotSecretKeyV1Command_1 = require("./commands/VerifyBotSecretKeyV1Command");
25
29
  const smithy_client_1 = require("@smithy/smithy-client");
26
30
  const commands = {
27
31
  BatchGetUsersCommand: BatchGetUsersCommand_1.BatchGetUsersCommand,
28
32
  BatchGetUsersPbxLinkDataCommand: BatchGetUsersPbxLinkDataCommand_1.BatchGetUsersPbxLinkDataCommand,
33
+ BatchGetUsersPbxLinkDataV1Command: BatchGetUsersPbxLinkDataV1Command_1.BatchGetUsersPbxLinkDataV1Command,
29
34
  ChangeUserEmailCommand: ChangeUserEmailCommand_1.ChangeUserEmailCommand,
30
35
  CreateBotCommand: CreateBotCommand_1.CreateBotCommand,
31
36
  CreateBotApiKeyCommand: CreateBotApiKeyCommand_1.CreateBotApiKeyCommand,
@@ -36,6 +41,7 @@ const commands = {
36
41
  GetUserCommand: GetUserCommand_1.GetUserCommand,
37
42
  GetUserPbxLinkDataCommand: GetUserPbxLinkDataCommand_1.GetUserPbxLinkDataCommand,
38
43
  GetUserPbxLinkSuggestionCommand: GetUserPbxLinkSuggestionCommand_1.GetUserPbxLinkSuggestionCommand,
44
+ GetUserPbxLinkSuggestionV1Command: GetUserPbxLinkSuggestionV1Command_1.GetUserPbxLinkSuggestionV1Command,
39
45
  ListBotApiKeysCommand: ListBotApiKeysCommand_1.ListBotApiKeysCommand,
40
46
  ListBotsCommand: ListBotsCommand_1.ListBotsCommand,
41
47
  QueryUserCommand: QueryUserCommand_1.QueryUserCommand,
@@ -43,7 +49,9 @@ const commands = {
43
49
  UpdateBotCommand: UpdateBotCommand_1.UpdateBotCommand,
44
50
  UpdateBotCallbackCommand: UpdateBotCallbackCommand_1.UpdateBotCallbackCommand,
45
51
  UploadPictureCommand: UploadPictureCommand_1.UploadPictureCommand,
52
+ UploadPictureV1Command: UploadPictureV1Command_1.UploadPictureV1Command,
46
53
  VerifyBotSecretKeyCommand: VerifyBotSecretKeyCommand_1.VerifyBotSecretKeyCommand,
54
+ VerifyBotSecretKeyV1Command: VerifyBotSecretKeyV1Command_1.VerifyBotSecretKeyV1Command,
47
55
  };
48
56
  class Users extends UsersClient_1.UsersClient {
49
57
  }
@@ -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.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,6 +14,7 @@ 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);
16
18
  tslib_1.__exportStar(require("./ListBotApiKeysCommand"), exports);
17
19
  tslib_1.__exportStar(require("./ListBotsCommand"), exports);
18
20
  tslib_1.__exportStar(require("./QueryUserCommand"), exports);
@@ -20,4 +22,6 @@ tslib_1.__exportStar(require("./QueryUsersCommand"), exports);
20
22
  tslib_1.__exportStar(require("./UpdateBotCommand"), exports);
21
23
  tslib_1.__exportStar(require("./UpdateBotCallbackCommand"), exports);
22
24
  tslib_1.__exportStar(require("./UploadPictureCommand"), exports);
25
+ tslib_1.__exportStar(require("./UploadPictureV1Command"), exports);
23
26
  tslib_1.__exportStar(require("./VerifyBotSecretKeyCommand"), exports);
27
+ tslib_1.__exportStar(require("./VerifyBotSecretKeyV1Command"), exports);
@@ -1,6 +1,6 @@
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_VerifyBotSecretKeyV1Command = exports.de_VerifyBotSecretKeyCommand = exports.de_UploadPictureV1Command = exports.de_UploadPictureCommand = exports.de_UpdateBotCallbackCommand = exports.de_UpdateBotCommand = exports.de_QueryUsersCommand = exports.de_QueryUserCommand = exports.de_ListBotsCommand = exports.de_ListBotApiKeysCommand = 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_ListBotsCommand = exports.se_ListBotApiKeysCommand = 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
4
  const UsersServiceException_1 = require("../models/UsersServiceException");
5
5
  const models_0_1 = require("../models/models_0");
6
6
  const core_1 = require("@smithy/core");
@@ -10,7 +10,7 @@ const se_BatchGetUsersCommand = async (input, context) => {
10
10
  const headers = {
11
11
  'content-type': 'application/json',
12
12
  };
13
- b.bp("/v2/users/BatchGetUsers");
13
+ b.bp("/v2/users/batch-get-users");
14
14
  let body;
15
15
  body = JSON.stringify((0, smithy_client_1.take)(input, {
16
16
  'id': _ => (0, smithy_client_1._json)(_),
@@ -26,7 +26,7 @@ const se_BatchGetUsersPbxLinkDataCommand = async (input, context) => {
26
26
  const headers = {
27
27
  'content-type': 'application/json',
28
28
  };
29
- b.bp("/v2/users/BatchGetUsersPbxLinkData");
29
+ b.bp("/v2/users/batch-get-users-pbx-link-data");
30
30
  let body;
31
31
  body = JSON.stringify((0, smithy_client_1.take)(input, {
32
32
  'id': _ => (0, smithy_client_1._json)(_),
@@ -37,6 +37,22 @@ const se_BatchGetUsersPbxLinkDataCommand = async (input, context) => {
37
37
  return b.build();
38
38
  };
39
39
  exports.se_BatchGetUsersPbxLinkDataCommand = se_BatchGetUsersPbxLinkDataCommand;
40
+ const se_BatchGetUsersPbxLinkDataV1Command = async (input, context) => {
41
+ const b = (0, core_1.requestBuilder)(input, context);
42
+ const headers = {
43
+ 'content-type': 'application/json',
44
+ };
45
+ b.bp("/v2/users/BatchGetUsersPbxLinkData");
46
+ let body;
47
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
48
+ 'id': _ => (0, smithy_client_1._json)(_),
49
+ }));
50
+ b.m("POST")
51
+ .h(headers)
52
+ .b(body);
53
+ return b.build();
54
+ };
55
+ exports.se_BatchGetUsersPbxLinkDataV1Command = se_BatchGetUsersPbxLinkDataV1Command;
40
56
  const se_ChangeUserEmailCommand = async (input, context) => {
41
57
  const b = (0, core_1.requestBuilder)(input, context);
42
58
  const headers = {
@@ -177,15 +193,11 @@ const se_GetUserCommand = async (input, context) => {
177
193
  exports.se_GetUserCommand = se_GetUserCommand;
178
194
  const se_GetUserPbxLinkDataCommand = async (input, context) => {
179
195
  const b = (0, core_1.requestBuilder)(input, context);
180
- const headers = {
181
- 'content-type': 'application/json',
182
- };
183
- b.bp("/v2/users/GetUserPbxLinkData");
196
+ const headers = {};
197
+ b.bp("/v2/users/cloud/{userId}/pbx-link-data");
198
+ b.p('userId', () => input.userId, '{userId}', false);
184
199
  let body;
185
- body = JSON.stringify((0, smithy_client_1.take)(input, {
186
- 'id': [],
187
- }));
188
- b.m("POST")
200
+ b.m("GET")
189
201
  .h(headers)
190
202
  .b(body);
191
203
  return b.build();
@@ -194,7 +206,7 @@ exports.se_GetUserPbxLinkDataCommand = se_GetUserPbxLinkDataCommand;
194
206
  const se_GetUserPbxLinkSuggestionCommand = async (input, context) => {
195
207
  const b = (0, core_1.requestBuilder)(input, context);
196
208
  const headers = {};
197
- b.bp("/v2/users/GetUserPbxLinkSuggestion");
209
+ b.bp("/v2/users/get-user-pbx-link-suggestion");
198
210
  const query = (0, smithy_client_1.map)({
199
211
  [_e]: [, input[_e]],
200
212
  });
@@ -206,6 +218,21 @@ const se_GetUserPbxLinkSuggestionCommand = async (input, context) => {
206
218
  return b.build();
207
219
  };
208
220
  exports.se_GetUserPbxLinkSuggestionCommand = se_GetUserPbxLinkSuggestionCommand;
221
+ const se_GetUserPbxLinkSuggestionV1Command = async (input, context) => {
222
+ const b = (0, core_1.requestBuilder)(input, context);
223
+ const headers = {};
224
+ b.bp("/v2/users/GetUserPbxLinkSuggestion");
225
+ const query = (0, smithy_client_1.map)({
226
+ [_e]: [, input[_e]],
227
+ });
228
+ let body;
229
+ b.m("GET")
230
+ .h(headers)
231
+ .q(query)
232
+ .b(body);
233
+ return b.build();
234
+ };
235
+ exports.se_GetUserPbxLinkSuggestionV1Command = se_GetUserPbxLinkSuggestionV1Command;
209
236
  const se_ListBotApiKeysCommand = async (input, context) => {
210
237
  const b = (0, core_1.requestBuilder)(input, context);
211
238
  const headers = {};
@@ -242,7 +269,7 @@ const se_QueryUserCommand = async (input, context) => {
242
269
  const headers = {
243
270
  'content-type': 'application/json',
244
271
  };
245
- b.bp("/v2/users/QueryUser");
272
+ b.bp("/v2/users/query-user");
246
273
  let body;
247
274
  body = JSON.stringify((0, smithy_client_1.take)(input, {
248
275
  'predicate': _ => (0, smithy_client_1._json)(_),
@@ -259,7 +286,7 @@ const se_QueryUsersCommand = async (input, context) => {
259
286
  const headers = {
260
287
  'content-type': 'application/json',
261
288
  };
262
- b.bp("/v2/users/QueryUsers");
289
+ b.bp("/v2/users/query-users");
263
290
  let body;
264
291
  body = JSON.stringify((0, smithy_client_1.take)(input, {
265
292
  'predicate': _ => (0, smithy_client_1._json)(_),
@@ -320,7 +347,7 @@ const se_UploadPictureCommand = async (input, context) => {
320
347
  const headers = {
321
348
  'content-type': 'application/json',
322
349
  };
323
- b.bp("/v2/users/UploadPicture");
350
+ b.bp("/v2/users/upload-picture");
324
351
  let body;
325
352
  body = JSON.stringify((0, smithy_client_1.take)(input, {
326
353
  'picture': [],
@@ -331,12 +358,28 @@ const se_UploadPictureCommand = async (input, context) => {
331
358
  return b.build();
332
359
  };
333
360
  exports.se_UploadPictureCommand = se_UploadPictureCommand;
361
+ const se_UploadPictureV1Command = async (input, context) => {
362
+ const b = (0, core_1.requestBuilder)(input, context);
363
+ const headers = {
364
+ 'content-type': 'application/json',
365
+ };
366
+ b.bp("/v2/users/UploadPicture");
367
+ let body;
368
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
369
+ 'picture': [],
370
+ }));
371
+ b.m("POST")
372
+ .h(headers)
373
+ .b(body);
374
+ return b.build();
375
+ };
376
+ exports.se_UploadPictureV1Command = se_UploadPictureV1Command;
334
377
  const se_VerifyBotSecretKeyCommand = async (input, context) => {
335
378
  const b = (0, core_1.requestBuilder)(input, context);
336
379
  const headers = {
337
380
  'content-type': 'application/json',
338
381
  };
339
- b.bp("/v2/users/auth/VerifyBotSecretKey");
382
+ b.bp("/v2/users/verify-bot-secret-key");
340
383
  let body;
341
384
  body = JSON.stringify((0, smithy_client_1.take)(input, {
342
385
  'secret': [],
@@ -347,6 +390,22 @@ const se_VerifyBotSecretKeyCommand = async (input, context) => {
347
390
  return b.build();
348
391
  };
349
392
  exports.se_VerifyBotSecretKeyCommand = se_VerifyBotSecretKeyCommand;
393
+ const se_VerifyBotSecretKeyV1Command = async (input, context) => {
394
+ const b = (0, core_1.requestBuilder)(input, context);
395
+ const headers = {
396
+ 'content-type': 'application/json',
397
+ };
398
+ b.bp("/v2/users/auth/VerifyBotSecretKey");
399
+ let body;
400
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
401
+ 'secret': [],
402
+ }));
403
+ b.m("POST")
404
+ .h(headers)
405
+ .b(body);
406
+ return b.build();
407
+ };
408
+ exports.se_VerifyBotSecretKeyV1Command = se_VerifyBotSecretKeyV1Command;
350
409
  const de_BatchGetUsersCommand = async (output, context) => {
351
410
  if (output.statusCode !== 200 && output.statusCode >= 300) {
352
411
  return de_CommandError(output, context);
@@ -377,6 +436,21 @@ const de_BatchGetUsersPbxLinkDataCommand = async (output, context) => {
377
436
  return contents;
378
437
  };
379
438
  exports.de_BatchGetUsersPbxLinkDataCommand = de_BatchGetUsersPbxLinkDataCommand;
439
+ const de_BatchGetUsersPbxLinkDataV1Command = async (output, context) => {
440
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
441
+ return de_CommandError(output, context);
442
+ }
443
+ const contents = (0, smithy_client_1.map)({
444
+ $metadata: deserializeMetadata(output),
445
+ });
446
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
447
+ const doc = (0, smithy_client_1.take)(data, {
448
+ 'users': smithy_client_1._json,
449
+ });
450
+ Object.assign(contents, doc);
451
+ return contents;
452
+ };
453
+ exports.de_BatchGetUsersPbxLinkDataV1Command = de_BatchGetUsersPbxLinkDataV1Command;
380
454
  const de_ChangeUserEmailCommand = async (output, context) => {
381
455
  if (output.statusCode !== 200 && output.statusCode >= 300) {
382
456
  return de_CommandError(output, context);
@@ -520,6 +594,21 @@ const de_GetUserPbxLinkSuggestionCommand = async (output, context) => {
520
594
  return contents;
521
595
  };
522
596
  exports.de_GetUserPbxLinkSuggestionCommand = de_GetUserPbxLinkSuggestionCommand;
597
+ const de_GetUserPbxLinkSuggestionV1Command = async (output, context) => {
598
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
599
+ return de_CommandError(output, context);
600
+ }
601
+ const contents = (0, smithy_client_1.map)({
602
+ $metadata: deserializeMetadata(output),
603
+ });
604
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
605
+ const doc = (0, smithy_client_1.take)(data, {
606
+ 'suggestion': smithy_client_1._json,
607
+ });
608
+ Object.assign(contents, doc);
609
+ return contents;
610
+ };
611
+ exports.de_GetUserPbxLinkSuggestionV1Command = de_GetUserPbxLinkSuggestionV1Command;
523
612
  const de_ListBotApiKeysCommand = async (output, context) => {
524
613
  if (output.statusCode !== 200 && output.statusCode >= 300) {
525
614
  return de_CommandError(output, context);
@@ -625,6 +714,21 @@ const de_UploadPictureCommand = async (output, context) => {
625
714
  return contents;
626
715
  };
627
716
  exports.de_UploadPictureCommand = de_UploadPictureCommand;
717
+ const de_UploadPictureV1Command = async (output, context) => {
718
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
719
+ return de_CommandError(output, context);
720
+ }
721
+ const contents = (0, smithy_client_1.map)({
722
+ $metadata: deserializeMetadata(output),
723
+ });
724
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
725
+ const doc = (0, smithy_client_1.take)(data, {
726
+ 'url': smithy_client_1.expectString,
727
+ });
728
+ Object.assign(contents, doc);
729
+ return contents;
730
+ };
731
+ exports.de_UploadPictureV1Command = de_UploadPictureV1Command;
628
732
  const de_VerifyBotSecretKeyCommand = async (output, context) => {
629
733
  if (output.statusCode !== 200 && output.statusCode >= 300) {
630
734
  return de_CommandError(output, context);
@@ -642,6 +746,23 @@ const de_VerifyBotSecretKeyCommand = async (output, context) => {
642
746
  return contents;
643
747
  };
644
748
  exports.de_VerifyBotSecretKeyCommand = de_VerifyBotSecretKeyCommand;
749
+ const de_VerifyBotSecretKeyV1Command = async (output, context) => {
750
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
751
+ return de_CommandError(output, context);
752
+ }
753
+ const contents = (0, smithy_client_1.map)({
754
+ $metadata: deserializeMetadata(output),
755
+ });
756
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
757
+ const doc = (0, smithy_client_1.take)(data, {
758
+ 'company': smithy_client_1.expectString,
759
+ 'id': smithy_client_1.expectString,
760
+ 'name': smithy_client_1.expectString,
761
+ });
762
+ Object.assign(contents, doc);
763
+ return contents;
764
+ };
765
+ exports.de_VerifyBotSecretKeyV1Command = de_VerifyBotSecretKeyV1Command;
645
766
  const de_CommandError = async (output, context) => {
646
767
  const parsedOutput = {
647
768
  ...output,
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,6 +12,7 @@ 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";
14
16
  import { ListBotApiKeysCommand, } from "./commands/ListBotApiKeysCommand";
15
17
  import { ListBotsCommand, } from "./commands/ListBotsCommand";
16
18
  import { QueryUserCommand, } from "./commands/QueryUserCommand";
@@ -18,11 +20,14 @@ import { QueryUsersCommand, } from "./commands/QueryUsersCommand";
18
20
  import { UpdateBotCallbackCommand, } from "./commands/UpdateBotCallbackCommand";
19
21
  import { UpdateBotCommand, } from "./commands/UpdateBotCommand";
20
22
  import { UploadPictureCommand, } from "./commands/UploadPictureCommand";
23
+ import { UploadPictureV1Command, } from "./commands/UploadPictureV1Command";
21
24
  import { VerifyBotSecretKeyCommand, } from "./commands/VerifyBotSecretKeyCommand";
25
+ import { VerifyBotSecretKeyV1Command, } from "./commands/VerifyBotSecretKeyV1Command";
22
26
  import { createAggregatedClient } from "@smithy/smithy-client";
23
27
  const commands = {
24
28
  BatchGetUsersCommand,
25
29
  BatchGetUsersPbxLinkDataCommand,
30
+ BatchGetUsersPbxLinkDataV1Command,
26
31
  ChangeUserEmailCommand,
27
32
  CreateBotCommand,
28
33
  CreateBotApiKeyCommand,
@@ -33,6 +38,7 @@ const commands = {
33
38
  GetUserCommand,
34
39
  GetUserPbxLinkDataCommand,
35
40
  GetUserPbxLinkSuggestionCommand,
41
+ GetUserPbxLinkSuggestionV1Command,
36
42
  ListBotApiKeysCommand,
37
43
  ListBotsCommand,
38
44
  QueryUserCommand,
@@ -40,7 +46,9 @@ const commands = {
40
46
  UpdateBotCommand,
41
47
  UpdateBotCallbackCommand,
42
48
  UploadPictureCommand,
49
+ UploadPictureV1Command,
43
50
  VerifyBotSecretKeyCommand,
51
+ VerifyBotSecretKeyV1Command,
44
52
  };
45
53
  export class Users extends UsersClient {
46
54
  }
@@ -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
+ }
@@ -0,0 +1,17 @@
1
+ import { de_UploadPictureV1Command, se_UploadPictureV1Command, } 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 UploadPictureV1Command extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "UploadPictureV1", {})
12
+ .n("UsersClient", "UploadPictureV1Command")
13
+ .f(void 0, void 0)
14
+ .ser(se_UploadPictureV1Command)
15
+ .de(de_UploadPictureV1Command)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_VerifyBotSecretKeyV1Command, se_VerifyBotSecretKeyV1Command, } 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 VerifyBotSecretKeyV1Command extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "VerifyBotSecretKeyV1", {})
12
+ .n("UsersClient", "VerifyBotSecretKeyV1Command")
13
+ .f(void 0, void 0)
14
+ .ser(se_VerifyBotSecretKeyV1Command)
15
+ .de(de_VerifyBotSecretKeyV1Command)
16
+ .build() {
17
+ }
@@ -1,5 +1,6 @@
1
1
  export * from "./BatchGetUsersCommand";
2
2
  export * from "./BatchGetUsersPbxLinkDataCommand";
3
+ export * from "./BatchGetUsersPbxLinkDataV1Command";
3
4
  export * from "./ChangeUserEmailCommand";
4
5
  export * from "./CreateBotCommand";
5
6
  export * from "./CreateBotApiKeyCommand";
@@ -10,6 +11,7 @@ export * from "./GetBotCallbackCommand";
10
11
  export * from "./GetUserCommand";
11
12
  export * from "./GetUserPbxLinkDataCommand";
12
13
  export * from "./GetUserPbxLinkSuggestionCommand";
14
+ export * from "./GetUserPbxLinkSuggestionV1Command";
13
15
  export * from "./ListBotApiKeysCommand";
14
16
  export * from "./ListBotsCommand";
15
17
  export * from "./QueryUserCommand";
@@ -17,4 +19,6 @@ export * from "./QueryUsersCommand";
17
19
  export * from "./UpdateBotCommand";
18
20
  export * from "./UpdateBotCallbackCommand";
19
21
  export * from "./UploadPictureCommand";
22
+ export * from "./UploadPictureV1Command";
20
23
  export * from "./VerifyBotSecretKeyCommand";
24
+ export * from "./VerifyBotSecretKeyV1Command";