@wildix/xbees-users-client 1.0.23 → 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.
Files changed (47) hide show
  1. package/dist-cjs/Users.js +18 -2
  2. package/dist-cjs/commands/{BatchGetUsersStreamLinkDataCommand.js → BatchGetUsersCommand.js} +7 -7
  3. package/dist-cjs/commands/BatchGetUsersPbxLinkDataV1Command.js +21 -0
  4. package/dist-cjs/commands/GetUserCommand.js +21 -0
  5. package/dist-cjs/commands/GetUserPbxLinkDataCommand.js +21 -0
  6. package/dist-cjs/commands/GetUserPbxLinkSuggestionV1Command.js +21 -0
  7. package/dist-cjs/commands/QueryUserCommand.js +21 -0
  8. package/dist-cjs/commands/QueryUsersCommand.js +21 -0
  9. package/dist-cjs/commands/UploadPictureV1Command.js +21 -0
  10. package/dist-cjs/commands/VerifyBotSecretKeyV1Command.js +21 -0
  11. package/dist-cjs/commands/index.js +9 -1
  12. package/dist-cjs/models/models_0.js +33 -1
  13. package/dist-cjs/protocols/Aws_restJson1.js +269 -10
  14. package/dist-es/Users.js +18 -2
  15. package/dist-es/commands/BatchGetUsersCommand.js +17 -0
  16. package/dist-es/commands/BatchGetUsersPbxLinkDataV1Command.js +17 -0
  17. package/dist-es/commands/GetUserCommand.js +17 -0
  18. package/dist-es/commands/GetUserPbxLinkDataCommand.js +17 -0
  19. package/dist-es/commands/GetUserPbxLinkSuggestionV1Command.js +17 -0
  20. package/dist-es/commands/QueryUserCommand.js +17 -0
  21. package/dist-es/commands/QueryUsersCommand.js +17 -0
  22. package/dist-es/commands/UploadPictureV1Command.js +17 -0
  23. package/dist-es/commands/VerifyBotSecretKeyV1Command.js +17 -0
  24. package/dist-es/commands/index.js +9 -1
  25. package/dist-es/models/models_0.js +31 -0
  26. package/dist-es/protocols/Aws_restJson1.js +248 -5
  27. package/dist-types/Users.d.ts +62 -5
  28. package/dist-types/UsersClient.d.ts +11 -3
  29. package/dist-types/commands/BatchGetUsersCommand.d.ts +85 -0
  30. package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +53 -4
  31. package/dist-types/commands/BatchGetUsersPbxLinkDataV1Command.d.ts +122 -0
  32. package/dist-types/commands/GetUserCommand.d.ts +83 -0
  33. package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +120 -0
  34. package/dist-types/commands/GetUserPbxLinkSuggestionV1Command.d.ts +67 -0
  35. package/dist-types/commands/QueryUserCommand.d.ts +92 -0
  36. package/dist-types/commands/QueryUsersCommand.d.ts +92 -0
  37. package/dist-types/commands/UploadPictureV1Command.d.ts +64 -0
  38. package/dist-types/commands/VerifyBotSecretKeyV1Command.d.ts +68 -0
  39. package/dist-types/commands/index.d.ts +9 -1
  40. package/dist-types/models/models_0.d.ts +536 -60
  41. package/dist-types/protocols/Aws_restJson1.d.ts +77 -5
  42. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  43. package/dist-types/runtimeConfig.d.ts +1 -0
  44. package/dist-types/runtimeConfig.native.d.ts +1 -0
  45. package/package.json +1 -1
  46. package/dist-es/commands/BatchGetUsersStreamLinkDataCommand.js +0 -17
  47. package/dist-types/commands/BatchGetUsersStreamLinkDataCommand.d.ts +0 -83
@@ -1,16 +1,32 @@
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_ListBotsCommand = exports.de_ListBotApiKeysCommand = exports.de_GetUserPbxLinkSuggestionCommand = exports.de_GetBotCallbackCommand = exports.de_GetBotCommand = exports.de_DeleteBotApiKeyCommand = exports.de_DeleteBotCommand = exports.de_CreateBotApiKeyCommand = exports.de_CreateBotCommand = exports.de_ChangeUserEmailCommand = exports.de_BatchGetUsersStreamLinkDataCommand = exports.de_BatchGetUsersPbxLinkDataCommand = exports.se_VerifyBotSecretKeyCommand = exports.se_UploadPictureCommand = exports.se_UpdateBotCallbackCommand = exports.se_UpdateBotCommand = exports.se_ListBotsCommand = exports.se_ListBotApiKeysCommand = exports.se_GetUserPbxLinkSuggestionCommand = exports.se_GetBotCallbackCommand = exports.se_GetBotCommand = exports.se_DeleteBotApiKeyCommand = exports.se_DeleteBotCommand = exports.se_CreateBotApiKeyCommand = exports.se_CreateBotCommand = exports.se_ChangeUserEmailCommand = exports.se_BatchGetUsersStreamLinkDataCommand = exports.se_BatchGetUsersPbxLinkDataCommand = 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");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
+ const se_BatchGetUsersCommand = async (input, context) => {
9
+ const b = (0, core_1.requestBuilder)(input, context);
10
+ const headers = {
11
+ 'content-type': 'application/json',
12
+ };
13
+ b.bp("/v2/users/batch-get-users");
14
+ let body;
15
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
16
+ 'id': _ => (0, smithy_client_1._json)(_),
17
+ }));
18
+ b.m("POST")
19
+ .h(headers)
20
+ .b(body);
21
+ return b.build();
22
+ };
23
+ exports.se_BatchGetUsersCommand = se_BatchGetUsersCommand;
8
24
  const se_BatchGetUsersPbxLinkDataCommand = async (input, context) => {
9
25
  const b = (0, core_1.requestBuilder)(input, context);
10
26
  const headers = {
11
27
  'content-type': 'application/json',
12
28
  };
13
- b.bp("/v2/users/BatchGetUsersPbxLinkData");
29
+ b.bp("/v2/users/batch-get-users-pbx-link-data");
14
30
  let body;
15
31
  body = JSON.stringify((0, smithy_client_1.take)(input, {
16
32
  'id': _ => (0, smithy_client_1._json)(_),
@@ -21,12 +37,12 @@ const se_BatchGetUsersPbxLinkDataCommand = async (input, context) => {
21
37
  return b.build();
22
38
  };
23
39
  exports.se_BatchGetUsersPbxLinkDataCommand = se_BatchGetUsersPbxLinkDataCommand;
24
- const se_BatchGetUsersStreamLinkDataCommand = async (input, context) => {
40
+ const se_BatchGetUsersPbxLinkDataV1Command = async (input, context) => {
25
41
  const b = (0, core_1.requestBuilder)(input, context);
26
42
  const headers = {
27
43
  'content-type': 'application/json',
28
44
  };
29
- b.bp("/v1/users/BatchGetUsersStreamLinkData");
45
+ b.bp("/v2/users/BatchGetUsersPbxLinkData");
30
46
  let body;
31
47
  body = JSON.stringify((0, smithy_client_1.take)(input, {
32
48
  'id': _ => (0, smithy_client_1._json)(_),
@@ -36,7 +52,7 @@ const se_BatchGetUsersStreamLinkDataCommand = async (input, context) => {
36
52
  .b(body);
37
53
  return b.build();
38
54
  };
39
- exports.se_BatchGetUsersStreamLinkDataCommand = se_BatchGetUsersStreamLinkDataCommand;
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 = {
@@ -163,10 +179,34 @@ const se_GetBotCallbackCommand = async (input, context) => {
163
179
  return b.build();
164
180
  };
165
181
  exports.se_GetBotCallbackCommand = se_GetBotCallbackCommand;
182
+ const se_GetUserCommand = async (input, context) => {
183
+ const b = (0, core_1.requestBuilder)(input, context);
184
+ const headers = {};
185
+ b.bp("/v2/users/cloud/{userId}");
186
+ b.p('userId', () => input.userId, '{userId}', false);
187
+ let body;
188
+ b.m("GET")
189
+ .h(headers)
190
+ .b(body);
191
+ return b.build();
192
+ };
193
+ exports.se_GetUserCommand = se_GetUserCommand;
194
+ const se_GetUserPbxLinkDataCommand = async (input, context) => {
195
+ const b = (0, core_1.requestBuilder)(input, context);
196
+ const headers = {};
197
+ b.bp("/v2/users/cloud/{userId}/pbx-link-data");
198
+ b.p('userId', () => input.userId, '{userId}', false);
199
+ let body;
200
+ b.m("GET")
201
+ .h(headers)
202
+ .b(body);
203
+ return b.build();
204
+ };
205
+ exports.se_GetUserPbxLinkDataCommand = se_GetUserPbxLinkDataCommand;
166
206
  const se_GetUserPbxLinkSuggestionCommand = async (input, context) => {
167
207
  const b = (0, core_1.requestBuilder)(input, context);
168
208
  const headers = {};
169
- b.bp("/v2/users/GetUserPbxLinkSuggestion");
209
+ b.bp("/v2/users/get-user-pbx-link-suggestion");
170
210
  const query = (0, smithy_client_1.map)({
171
211
  [_e]: [, input[_e]],
172
212
  });
@@ -178,6 +218,21 @@ const se_GetUserPbxLinkSuggestionCommand = async (input, context) => {
178
218
  return b.build();
179
219
  };
180
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;
181
236
  const se_ListBotApiKeysCommand = async (input, context) => {
182
237
  const b = (0, core_1.requestBuilder)(input, context);
183
238
  const headers = {};
@@ -209,6 +264,40 @@ const se_ListBotsCommand = async (input, context) => {
209
264
  return b.build();
210
265
  };
211
266
  exports.se_ListBotsCommand = se_ListBotsCommand;
267
+ const se_QueryUserCommand = async (input, context) => {
268
+ const b = (0, core_1.requestBuilder)(input, context);
269
+ const headers = {
270
+ 'content-type': 'application/json',
271
+ };
272
+ b.bp("/v2/users/query-user");
273
+ let body;
274
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
275
+ 'predicate': _ => (0, smithy_client_1._json)(_),
276
+ 'query': _ => (0, smithy_client_1._json)(_),
277
+ }));
278
+ b.m("POST")
279
+ .h(headers)
280
+ .b(body);
281
+ return b.build();
282
+ };
283
+ exports.se_QueryUserCommand = se_QueryUserCommand;
284
+ const se_QueryUsersCommand = async (input, context) => {
285
+ const b = (0, core_1.requestBuilder)(input, context);
286
+ const headers = {
287
+ 'content-type': 'application/json',
288
+ };
289
+ b.bp("/v2/users/query-users");
290
+ let body;
291
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
292
+ 'predicate': _ => (0, smithy_client_1._json)(_),
293
+ 'queries': _ => (0, smithy_client_1._json)(_),
294
+ }));
295
+ b.m("POST")
296
+ .h(headers)
297
+ .b(body);
298
+ return b.build();
299
+ };
300
+ exports.se_QueryUsersCommand = se_QueryUsersCommand;
212
301
  const se_UpdateBotCommand = async (input, context) => {
213
302
  const b = (0, core_1.requestBuilder)(input, context);
214
303
  const headers = {
@@ -258,7 +347,7 @@ const se_UploadPictureCommand = async (input, context) => {
258
347
  const headers = {
259
348
  'content-type': 'application/json',
260
349
  };
261
- b.bp("/v2/users/UploadPicture");
350
+ b.bp("/v2/users/upload-picture");
262
351
  let body;
263
352
  body = JSON.stringify((0, smithy_client_1.take)(input, {
264
353
  'picture': [],
@@ -269,12 +358,28 @@ const se_UploadPictureCommand = async (input, context) => {
269
358
  return b.build();
270
359
  };
271
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;
272
377
  const se_VerifyBotSecretKeyCommand = async (input, context) => {
273
378
  const b = (0, core_1.requestBuilder)(input, context);
274
379
  const headers = {
275
380
  'content-type': 'application/json',
276
381
  };
277
- b.bp("/v2/users/auth/VerifyBotSecretKey");
382
+ b.bp("/v2/users/verify-bot-secret-key");
278
383
  let body;
279
384
  body = JSON.stringify((0, smithy_client_1.take)(input, {
280
385
  'secret': [],
@@ -285,6 +390,37 @@ const se_VerifyBotSecretKeyCommand = async (input, context) => {
285
390
  return b.build();
286
391
  };
287
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;
409
+ const de_BatchGetUsersCommand = async (output, context) => {
410
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
411
+ return de_CommandError(output, context);
412
+ }
413
+ const contents = (0, smithy_client_1.map)({
414
+ $metadata: deserializeMetadata(output),
415
+ });
416
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
417
+ const doc = (0, smithy_client_1.take)(data, {
418
+ 'users': smithy_client_1._json,
419
+ });
420
+ Object.assign(contents, doc);
421
+ return contents;
422
+ };
423
+ exports.de_BatchGetUsersCommand = de_BatchGetUsersCommand;
288
424
  const de_BatchGetUsersPbxLinkDataCommand = async (output, context) => {
289
425
  if (output.statusCode !== 200 && output.statusCode >= 300) {
290
426
  return de_CommandError(output, context);
@@ -300,7 +436,7 @@ const de_BatchGetUsersPbxLinkDataCommand = async (output, context) => {
300
436
  return contents;
301
437
  };
302
438
  exports.de_BatchGetUsersPbxLinkDataCommand = de_BatchGetUsersPbxLinkDataCommand;
303
- const de_BatchGetUsersStreamLinkDataCommand = async (output, context) => {
439
+ const de_BatchGetUsersPbxLinkDataV1Command = async (output, context) => {
304
440
  if (output.statusCode !== 200 && output.statusCode >= 300) {
305
441
  return de_CommandError(output, context);
306
442
  }
@@ -314,7 +450,7 @@ const de_BatchGetUsersStreamLinkDataCommand = async (output, context) => {
314
450
  Object.assign(contents, doc);
315
451
  return contents;
316
452
  };
317
- exports.de_BatchGetUsersStreamLinkDataCommand = de_BatchGetUsersStreamLinkDataCommand;
453
+ exports.de_BatchGetUsersPbxLinkDataV1Command = de_BatchGetUsersPbxLinkDataV1Command;
318
454
  const de_ChangeUserEmailCommand = async (output, context) => {
319
455
  if (output.statusCode !== 200 && output.statusCode >= 300) {
320
456
  return de_CommandError(output, context);
@@ -413,6 +549,36 @@ const de_GetBotCallbackCommand = async (output, context) => {
413
549
  return contents;
414
550
  };
415
551
  exports.de_GetBotCallbackCommand = de_GetBotCallbackCommand;
552
+ const de_GetUserCommand = async (output, context) => {
553
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
554
+ return de_CommandError(output, context);
555
+ }
556
+ const contents = (0, smithy_client_1.map)({
557
+ $metadata: deserializeMetadata(output),
558
+ });
559
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
560
+ const doc = (0, smithy_client_1.take)(data, {
561
+ 'user': smithy_client_1._json,
562
+ });
563
+ Object.assign(contents, doc);
564
+ return contents;
565
+ };
566
+ exports.de_GetUserCommand = de_GetUserCommand;
567
+ const de_GetUserPbxLinkDataCommand = async (output, context) => {
568
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
569
+ return de_CommandError(output, context);
570
+ }
571
+ const contents = (0, smithy_client_1.map)({
572
+ $metadata: deserializeMetadata(output),
573
+ });
574
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
575
+ const doc = (0, smithy_client_1.take)(data, {
576
+ 'user': smithy_client_1._json,
577
+ });
578
+ Object.assign(contents, doc);
579
+ return contents;
580
+ };
581
+ exports.de_GetUserPbxLinkDataCommand = de_GetUserPbxLinkDataCommand;
416
582
  const de_GetUserPbxLinkSuggestionCommand = async (output, context) => {
417
583
  if (output.statusCode !== 200 && output.statusCode >= 300) {
418
584
  return de_CommandError(output, context);
@@ -428,6 +594,21 @@ const de_GetUserPbxLinkSuggestionCommand = async (output, context) => {
428
594
  return contents;
429
595
  };
430
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;
431
612
  const de_ListBotApiKeysCommand = async (output, context) => {
432
613
  if (output.statusCode !== 200 && output.statusCode >= 300) {
433
614
  return de_CommandError(output, context);
@@ -458,6 +639,36 @@ const de_ListBotsCommand = async (output, context) => {
458
639
  return contents;
459
640
  };
460
641
  exports.de_ListBotsCommand = de_ListBotsCommand;
642
+ const de_QueryUserCommand = async (output, context) => {
643
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
644
+ return de_CommandError(output, context);
645
+ }
646
+ const contents = (0, smithy_client_1.map)({
647
+ $metadata: deserializeMetadata(output),
648
+ });
649
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
650
+ const doc = (0, smithy_client_1.take)(data, {
651
+ 'user': smithy_client_1._json,
652
+ });
653
+ Object.assign(contents, doc);
654
+ return contents;
655
+ };
656
+ exports.de_QueryUserCommand = de_QueryUserCommand;
657
+ const de_QueryUsersCommand = async (output, context) => {
658
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
659
+ return de_CommandError(output, context);
660
+ }
661
+ const contents = (0, smithy_client_1.map)({
662
+ $metadata: deserializeMetadata(output),
663
+ });
664
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
665
+ const doc = (0, smithy_client_1.take)(data, {
666
+ 'users': smithy_client_1._json,
667
+ });
668
+ Object.assign(contents, doc);
669
+ return contents;
670
+ };
671
+ exports.de_QueryUsersCommand = de_QueryUsersCommand;
461
672
  const de_UpdateBotCommand = async (output, context) => {
462
673
  if (output.statusCode !== 200 && output.statusCode >= 300) {
463
674
  return de_CommandError(output, context);
@@ -503,6 +714,21 @@ const de_UploadPictureCommand = async (output, context) => {
503
714
  return contents;
504
715
  };
505
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;
506
732
  const de_VerifyBotSecretKeyCommand = async (output, context) => {
507
733
  if (output.statusCode !== 200 && output.statusCode >= 300) {
508
734
  return de_CommandError(output, context);
@@ -520,6 +746,23 @@ const de_VerifyBotSecretKeyCommand = async (output, context) => {
520
746
  return contents;
521
747
  };
522
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;
523
766
  const de_CommandError = async (output, context) => {
524
767
  const parsedOutput = {
525
768
  ...output,
@@ -545,6 +788,9 @@ const de_CommandError = async (output, context) => {
545
788
  case "BotApiKeyNotFoundException":
546
789
  case "wildix.xbees.users#BotApiKeyNotFoundException":
547
790
  throw await de_BotApiKeyNotFoundExceptionRes(parsedOutput, context);
791
+ case "UserQueryPredicateNotMetException":
792
+ case "wildix.xbees.users#UserQueryPredicateNotMetException":
793
+ throw await de_UserQueryPredicateNotMetExceptionRes(parsedOutput, context);
548
794
  case "BotSecretKeyNotValidException":
549
795
  case "wildix.xbees.users#BotSecretKeyNotValidException":
550
796
  throw await de_BotSecretKeyNotValidExceptionRes(parsedOutput, context);
@@ -649,6 +895,19 @@ const de_UserNotFoundExceptionRes = async (parsedOutput, context) => {
649
895
  });
650
896
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
651
897
  };
898
+ const de_UserQueryPredicateNotMetExceptionRes = async (parsedOutput, context) => {
899
+ const contents = (0, smithy_client_1.map)({});
900
+ const data = parsedOutput.body;
901
+ const doc = (0, smithy_client_1.take)(data, {
902
+ 'message': smithy_client_1.expectString,
903
+ });
904
+ Object.assign(contents, doc);
905
+ const exception = new models_0_1.UserQueryPredicateNotMetException({
906
+ $metadata: deserializeMetadata(parsedOutput),
907
+ ...contents
908
+ });
909
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
910
+ };
652
911
  const se_Document = (input, context) => {
653
912
  return input;
654
913
  };
package/dist-es/Users.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { UsersClient, } from "./UsersClient";
2
+ import { BatchGetUsersCommand, } from "./commands/BatchGetUsersCommand";
2
3
  import { BatchGetUsersPbxLinkDataCommand, } from "./commands/BatchGetUsersPbxLinkDataCommand";
3
- import { BatchGetUsersStreamLinkDataCommand, } from "./commands/BatchGetUsersStreamLinkDataCommand";
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";
@@ -8,17 +9,25 @@ import { DeleteBotApiKeyCommand, } from "./commands/DeleteBotApiKeyCommand";
8
9
  import { DeleteBotCommand, } from "./commands/DeleteBotCommand";
9
10
  import { GetBotCallbackCommand, } from "./commands/GetBotCallbackCommand";
10
11
  import { GetBotCommand, } from "./commands/GetBotCommand";
12
+ import { GetUserCommand, } from "./commands/GetUserCommand";
13
+ import { GetUserPbxLinkDataCommand, } from "./commands/GetUserPbxLinkDataCommand";
11
14
  import { GetUserPbxLinkSuggestionCommand, } from "./commands/GetUserPbxLinkSuggestionCommand";
15
+ import { GetUserPbxLinkSuggestionV1Command, } from "./commands/GetUserPbxLinkSuggestionV1Command";
12
16
  import { ListBotApiKeysCommand, } from "./commands/ListBotApiKeysCommand";
13
17
  import { ListBotsCommand, } from "./commands/ListBotsCommand";
18
+ import { QueryUserCommand, } from "./commands/QueryUserCommand";
19
+ import { QueryUsersCommand, } from "./commands/QueryUsersCommand";
14
20
  import { UpdateBotCallbackCommand, } from "./commands/UpdateBotCallbackCommand";
15
21
  import { UpdateBotCommand, } from "./commands/UpdateBotCommand";
16
22
  import { UploadPictureCommand, } from "./commands/UploadPictureCommand";
23
+ import { UploadPictureV1Command, } from "./commands/UploadPictureV1Command";
17
24
  import { VerifyBotSecretKeyCommand, } from "./commands/VerifyBotSecretKeyCommand";
25
+ import { VerifyBotSecretKeyV1Command, } from "./commands/VerifyBotSecretKeyV1Command";
18
26
  import { createAggregatedClient } from "@smithy/smithy-client";
19
27
  const commands = {
28
+ BatchGetUsersCommand,
20
29
  BatchGetUsersPbxLinkDataCommand,
21
- BatchGetUsersStreamLinkDataCommand,
30
+ BatchGetUsersPbxLinkDataV1Command,
22
31
  ChangeUserEmailCommand,
23
32
  CreateBotCommand,
24
33
  CreateBotApiKeyCommand,
@@ -26,13 +35,20 @@ const commands = {
26
35
  DeleteBotApiKeyCommand,
27
36
  GetBotCommand,
28
37
  GetBotCallbackCommand,
38
+ GetUserCommand,
39
+ GetUserPbxLinkDataCommand,
29
40
  GetUserPbxLinkSuggestionCommand,
41
+ GetUserPbxLinkSuggestionV1Command,
30
42
  ListBotApiKeysCommand,
31
43
  ListBotsCommand,
44
+ QueryUserCommand,
45
+ QueryUsersCommand,
32
46
  UpdateBotCommand,
33
47
  UpdateBotCallbackCommand,
34
48
  UploadPictureCommand,
49
+ UploadPictureV1Command,
35
50
  VerifyBotSecretKeyCommand,
51
+ VerifyBotSecretKeyV1Command,
36
52
  };
37
53
  export class Users extends UsersClient {
38
54
  }
@@ -0,0 +1,17 @@
1
+ import { de_BatchGetUsersCommand, se_BatchGetUsersCommand, } 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 BatchGetUsersCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "BatchGetUsers", {})
12
+ .n("UsersClient", "BatchGetUsersCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_BatchGetUsersCommand)
15
+ .de(de_BatchGetUsersCommand)
16
+ .build() {
17
+ }
@@ -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_GetUserCommand, se_GetUserCommand, } 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 GetUserCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "GetUser", {})
12
+ .n("UsersClient", "GetUserCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetUserCommand)
15
+ .de(de_GetUserCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetUserPbxLinkDataCommand, se_GetUserPbxLinkDataCommand, } 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 GetUserPbxLinkDataCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "GetUserPbxLinkData", {})
12
+ .n("UsersClient", "GetUserPbxLinkDataCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetUserPbxLinkDataCommand)
15
+ .de(de_GetUserPbxLinkDataCommand)
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_QueryUserCommand, se_QueryUserCommand, } 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 QueryUserCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "QueryUser", {})
12
+ .n("UsersClient", "QueryUserCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_QueryUserCommand)
15
+ .de(de_QueryUserCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_QueryUsersCommand, se_QueryUsersCommand, } 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 QueryUsersCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "QueryUsers", {})
12
+ .n("UsersClient", "QueryUsersCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_QueryUsersCommand)
15
+ .de(de_QueryUsersCommand)
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
+ export * from "./BatchGetUsersCommand";
1
2
  export * from "./BatchGetUsersPbxLinkDataCommand";
2
- export * from "./BatchGetUsersStreamLinkDataCommand";
3
+ export * from "./BatchGetUsersPbxLinkDataV1Command";
3
4
  export * from "./ChangeUserEmailCommand";
4
5
  export * from "./CreateBotCommand";
5
6
  export * from "./CreateBotApiKeyCommand";
@@ -7,10 +8,17 @@ export * from "./DeleteBotCommand";
7
8
  export * from "./DeleteBotApiKeyCommand";
8
9
  export * from "./GetBotCommand";
9
10
  export * from "./GetBotCallbackCommand";
11
+ export * from "./GetUserCommand";
12
+ export * from "./GetUserPbxLinkDataCommand";
10
13
  export * from "./GetUserPbxLinkSuggestionCommand";
14
+ export * from "./GetUserPbxLinkSuggestionV1Command";
11
15
  export * from "./ListBotApiKeysCommand";
12
16
  export * from "./ListBotsCommand";
17
+ export * from "./QueryUserCommand";
18
+ export * from "./QueryUsersCommand";
13
19
  export * from "./UpdateBotCommand";
14
20
  export * from "./UpdateBotCallbackCommand";
15
21
  export * from "./UploadPictureCommand";
22
+ export * from "./UploadPictureV1Command";
16
23
  export * from "./VerifyBotSecretKeyCommand";
24
+ export * from "./VerifyBotSecretKeyV1Command";