@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
@@ -23,6 +23,13 @@ export class ForbiddenException extends __BaseException {
23
23
  Object.setPrototypeOf(this, ForbiddenException.prototype);
24
24
  }
25
25
  }
26
+ export const PbxLicenseType = {
27
+ BASIC: "basic",
28
+ BUSINESS: "business",
29
+ ESSENTIAL: "essential",
30
+ PREMIUM: "premium",
31
+ WIZYCONF: "wizyconf",
32
+ };
26
33
  export class BotApiKeyNotFoundException extends __BaseException {
27
34
  constructor(opts) {
28
35
  super({
@@ -97,3 +104,27 @@ export class UserNotFoundException extends __BaseException {
97
104
  Object.setPrototypeOf(this, UserNotFoundException.prototype);
98
105
  }
99
106
  }
107
+ export var UserQuery;
108
+ (function (UserQuery) {
109
+ UserQuery.visit = (value, visitor) => {
110
+ if (value.id !== undefined)
111
+ return visitor.id(value.id);
112
+ if (value.email !== undefined)
113
+ return visitor.email(value.email);
114
+ if (value.phone !== undefined)
115
+ return visitor.phone(value.phone);
116
+ return visitor._(value.$unknown[0], value.$unknown[1]);
117
+ };
118
+ })(UserQuery || (UserQuery = {}));
119
+ export class UserQueryPredicateNotMetException extends __BaseException {
120
+ constructor(opts) {
121
+ super({
122
+ name: "UserQueryPredicateNotMetException",
123
+ $fault: "client",
124
+ ...opts
125
+ });
126
+ this.name = "UserQueryPredicateNotMetException";
127
+ this.$fault = "client";
128
+ Object.setPrototypeOf(this, UserQueryPredicateNotMetException.prototype);
129
+ }
130
+ }
@@ -1,13 +1,28 @@
1
1
  import { UsersServiceException as __BaseException } from "../models/UsersServiceException";
2
- import { BotApiKeyNotFoundException, BotEndpoint, BotNotFoundException, BotSecretKeyNotValidException, ForbiddenException, UserCompanyNotValidException, UserNotFoundException, ValidationException, } from "../models/models_0";
2
+ import { BotApiKeyNotFoundException, BotEndpoint, BotNotFoundException, BotSecretKeyNotValidException, ForbiddenException, UserCompanyNotValidException, UserNotFoundException, UserQueryPredicateNotMetException, ValidationException, } from "../models/models_0";
3
3
  import { requestBuilder as rb } from "@smithy/core";
4
4
  import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
5
+ export const se_BatchGetUsersCommand = async (input, context) => {
6
+ const b = rb(input, context);
7
+ const headers = {
8
+ 'content-type': 'application/json',
9
+ };
10
+ b.bp("/v2/users/batch-get-users");
11
+ let body;
12
+ body = JSON.stringify(take(input, {
13
+ 'id': _ => _json(_),
14
+ }));
15
+ b.m("POST")
16
+ .h(headers)
17
+ .b(body);
18
+ return b.build();
19
+ };
5
20
  export const se_BatchGetUsersPbxLinkDataCommand = async (input, context) => {
6
21
  const b = rb(input, context);
7
22
  const headers = {
8
23
  'content-type': 'application/json',
9
24
  };
10
- b.bp("/v2/users/BatchGetUsersPbxLinkData");
25
+ b.bp("/v2/users/batch-get-users-pbx-link-data");
11
26
  let body;
12
27
  body = JSON.stringify(take(input, {
13
28
  'id': _ => _json(_),
@@ -17,12 +32,12 @@ export const se_BatchGetUsersPbxLinkDataCommand = async (input, context) => {
17
32
  .b(body);
18
33
  return b.build();
19
34
  };
20
- export const se_BatchGetUsersStreamLinkDataCommand = async (input, context) => {
35
+ export const se_BatchGetUsersPbxLinkDataV1Command = async (input, context) => {
21
36
  const b = rb(input, context);
22
37
  const headers = {
23
38
  'content-type': 'application/json',
24
39
  };
25
- b.bp("/v1/users/BatchGetUsersStreamLinkData");
40
+ b.bp("/v2/users/BatchGetUsersPbxLinkData");
26
41
  let body;
27
42
  body = JSON.stringify(take(input, {
28
43
  'id': _ => _json(_),
@@ -151,7 +166,43 @@ export const se_GetBotCallbackCommand = async (input, context) => {
151
166
  .b(body);
152
167
  return b.build();
153
168
  };
169
+ export const se_GetUserCommand = async (input, context) => {
170
+ const b = rb(input, context);
171
+ const headers = {};
172
+ b.bp("/v2/users/cloud/{userId}");
173
+ b.p('userId', () => input.userId, '{userId}', false);
174
+ let body;
175
+ b.m("GET")
176
+ .h(headers)
177
+ .b(body);
178
+ return b.build();
179
+ };
180
+ export const se_GetUserPbxLinkDataCommand = async (input, context) => {
181
+ const b = rb(input, context);
182
+ const headers = {};
183
+ b.bp("/v2/users/cloud/{userId}/pbx-link-data");
184
+ b.p('userId', () => input.userId, '{userId}', false);
185
+ let body;
186
+ b.m("GET")
187
+ .h(headers)
188
+ .b(body);
189
+ return b.build();
190
+ };
154
191
  export const se_GetUserPbxLinkSuggestionCommand = async (input, context) => {
192
+ const b = rb(input, context);
193
+ const headers = {};
194
+ b.bp("/v2/users/get-user-pbx-link-suggestion");
195
+ const query = map({
196
+ [_e]: [, input[_e]],
197
+ });
198
+ let body;
199
+ b.m("GET")
200
+ .h(headers)
201
+ .q(query)
202
+ .b(body);
203
+ return b.build();
204
+ };
205
+ export const se_GetUserPbxLinkSuggestionV1Command = async (input, context) => {
155
206
  const b = rb(input, context);
156
207
  const headers = {};
157
208
  b.bp("/v2/users/GetUserPbxLinkSuggestion");
@@ -194,6 +245,38 @@ export const se_ListBotsCommand = async (input, context) => {
194
245
  .b(body);
195
246
  return b.build();
196
247
  };
248
+ export const se_QueryUserCommand = async (input, context) => {
249
+ const b = rb(input, context);
250
+ const headers = {
251
+ 'content-type': 'application/json',
252
+ };
253
+ b.bp("/v2/users/query-user");
254
+ let body;
255
+ body = JSON.stringify(take(input, {
256
+ 'predicate': _ => _json(_),
257
+ 'query': _ => _json(_),
258
+ }));
259
+ b.m("POST")
260
+ .h(headers)
261
+ .b(body);
262
+ return b.build();
263
+ };
264
+ export const se_QueryUsersCommand = async (input, context) => {
265
+ const b = rb(input, context);
266
+ const headers = {
267
+ 'content-type': 'application/json',
268
+ };
269
+ b.bp("/v2/users/query-users");
270
+ let body;
271
+ body = JSON.stringify(take(input, {
272
+ 'predicate': _ => _json(_),
273
+ 'queries': _ => _json(_),
274
+ }));
275
+ b.m("POST")
276
+ .h(headers)
277
+ .b(body);
278
+ return b.build();
279
+ };
197
280
  export const se_UpdateBotCommand = async (input, context) => {
198
281
  const b = rb(input, context);
199
282
  const headers = {
@@ -237,6 +320,21 @@ export const se_UpdateBotCallbackCommand = async (input, context) => {
237
320
  return b.build();
238
321
  };
239
322
  export const se_UploadPictureCommand = async (input, context) => {
323
+ const b = rb(input, context);
324
+ const headers = {
325
+ 'content-type': 'application/json',
326
+ };
327
+ b.bp("/v2/users/upload-picture");
328
+ let body;
329
+ body = JSON.stringify(take(input, {
330
+ 'picture': [],
331
+ }));
332
+ b.m("POST")
333
+ .h(headers)
334
+ .b(body);
335
+ return b.build();
336
+ };
337
+ export const se_UploadPictureV1Command = async (input, context) => {
240
338
  const b = rb(input, context);
241
339
  const headers = {
242
340
  'content-type': 'application/json',
@@ -252,6 +350,21 @@ export const se_UploadPictureCommand = async (input, context) => {
252
350
  return b.build();
253
351
  };
254
352
  export const se_VerifyBotSecretKeyCommand = async (input, context) => {
353
+ const b = rb(input, context);
354
+ const headers = {
355
+ 'content-type': 'application/json',
356
+ };
357
+ b.bp("/v2/users/verify-bot-secret-key");
358
+ let body;
359
+ body = JSON.stringify(take(input, {
360
+ 'secret': [],
361
+ }));
362
+ b.m("POST")
363
+ .h(headers)
364
+ .b(body);
365
+ return b.build();
366
+ };
367
+ export const se_VerifyBotSecretKeyV1Command = async (input, context) => {
255
368
  const b = rb(input, context);
256
369
  const headers = {
257
370
  'content-type': 'application/json',
@@ -266,6 +379,20 @@ export const se_VerifyBotSecretKeyCommand = async (input, context) => {
266
379
  .b(body);
267
380
  return b.build();
268
381
  };
382
+ export const de_BatchGetUsersCommand = async (output, context) => {
383
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
384
+ return de_CommandError(output, context);
385
+ }
386
+ const contents = map({
387
+ $metadata: deserializeMetadata(output),
388
+ });
389
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
390
+ const doc = take(data, {
391
+ 'users': _json,
392
+ });
393
+ Object.assign(contents, doc);
394
+ return contents;
395
+ };
269
396
  export const de_BatchGetUsersPbxLinkDataCommand = async (output, context) => {
270
397
  if (output.statusCode !== 200 && output.statusCode >= 300) {
271
398
  return de_CommandError(output, context);
@@ -280,7 +407,7 @@ export const de_BatchGetUsersPbxLinkDataCommand = async (output, context) => {
280
407
  Object.assign(contents, doc);
281
408
  return contents;
282
409
  };
283
- export const de_BatchGetUsersStreamLinkDataCommand = async (output, context) => {
410
+ export const de_BatchGetUsersPbxLinkDataV1Command = async (output, context) => {
284
411
  if (output.statusCode !== 200 && output.statusCode >= 300) {
285
412
  return de_CommandError(output, context);
286
413
  }
@@ -385,6 +512,34 @@ export const de_GetBotCallbackCommand = async (output, context) => {
385
512
  Object.assign(contents, doc);
386
513
  return contents;
387
514
  };
515
+ export const de_GetUserCommand = async (output, context) => {
516
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
517
+ return de_CommandError(output, context);
518
+ }
519
+ const contents = map({
520
+ $metadata: deserializeMetadata(output),
521
+ });
522
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
523
+ const doc = take(data, {
524
+ 'user': _json,
525
+ });
526
+ Object.assign(contents, doc);
527
+ return contents;
528
+ };
529
+ export const de_GetUserPbxLinkDataCommand = async (output, context) => {
530
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
531
+ return de_CommandError(output, context);
532
+ }
533
+ const contents = map({
534
+ $metadata: deserializeMetadata(output),
535
+ });
536
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
537
+ const doc = take(data, {
538
+ 'user': _json,
539
+ });
540
+ Object.assign(contents, doc);
541
+ return contents;
542
+ };
388
543
  export const de_GetUserPbxLinkSuggestionCommand = async (output, context) => {
389
544
  if (output.statusCode !== 200 && output.statusCode >= 300) {
390
545
  return de_CommandError(output, context);
@@ -399,6 +554,20 @@ export const de_GetUserPbxLinkSuggestionCommand = async (output, context) => {
399
554
  Object.assign(contents, doc);
400
555
  return contents;
401
556
  };
557
+ export const de_GetUserPbxLinkSuggestionV1Command = async (output, context) => {
558
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
559
+ return de_CommandError(output, context);
560
+ }
561
+ const contents = map({
562
+ $metadata: deserializeMetadata(output),
563
+ });
564
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
565
+ const doc = take(data, {
566
+ 'suggestion': _json,
567
+ });
568
+ Object.assign(contents, doc);
569
+ return contents;
570
+ };
402
571
  export const de_ListBotApiKeysCommand = async (output, context) => {
403
572
  if (output.statusCode !== 200 && output.statusCode >= 300) {
404
573
  return de_CommandError(output, context);
@@ -427,6 +596,34 @@ export const de_ListBotsCommand = async (output, context) => {
427
596
  Object.assign(contents, doc);
428
597
  return contents;
429
598
  };
599
+ export const de_QueryUserCommand = async (output, context) => {
600
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
601
+ return de_CommandError(output, context);
602
+ }
603
+ const contents = map({
604
+ $metadata: deserializeMetadata(output),
605
+ });
606
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
607
+ const doc = take(data, {
608
+ 'user': _json,
609
+ });
610
+ Object.assign(contents, doc);
611
+ return contents;
612
+ };
613
+ export const de_QueryUsersCommand = async (output, context) => {
614
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
615
+ return de_CommandError(output, context);
616
+ }
617
+ const contents = map({
618
+ $metadata: deserializeMetadata(output),
619
+ });
620
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
621
+ const doc = take(data, {
622
+ 'users': _json,
623
+ });
624
+ Object.assign(contents, doc);
625
+ return contents;
626
+ };
430
627
  export const de_UpdateBotCommand = async (output, context) => {
431
628
  if (output.statusCode !== 200 && output.statusCode >= 300) {
432
629
  return de_CommandError(output, context);
@@ -469,6 +666,20 @@ export const de_UploadPictureCommand = async (output, context) => {
469
666
  Object.assign(contents, doc);
470
667
  return contents;
471
668
  };
669
+ export const de_UploadPictureV1Command = async (output, context) => {
670
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
671
+ return de_CommandError(output, context);
672
+ }
673
+ const contents = map({
674
+ $metadata: deserializeMetadata(output),
675
+ });
676
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
677
+ const doc = take(data, {
678
+ 'url': __expectString,
679
+ });
680
+ Object.assign(contents, doc);
681
+ return contents;
682
+ };
472
683
  export const de_VerifyBotSecretKeyCommand = async (output, context) => {
473
684
  if (output.statusCode !== 200 && output.statusCode >= 300) {
474
685
  return de_CommandError(output, context);
@@ -485,6 +696,22 @@ export const de_VerifyBotSecretKeyCommand = async (output, context) => {
485
696
  Object.assign(contents, doc);
486
697
  return contents;
487
698
  };
699
+ export const de_VerifyBotSecretKeyV1Command = async (output, context) => {
700
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
701
+ return de_CommandError(output, context);
702
+ }
703
+ const contents = map({
704
+ $metadata: deserializeMetadata(output),
705
+ });
706
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
707
+ const doc = take(data, {
708
+ 'company': __expectString,
709
+ 'id': __expectString,
710
+ 'name': __expectString,
711
+ });
712
+ Object.assign(contents, doc);
713
+ return contents;
714
+ };
488
715
  const de_CommandError = async (output, context) => {
489
716
  const parsedOutput = {
490
717
  ...output,
@@ -510,6 +737,9 @@ const de_CommandError = async (output, context) => {
510
737
  case "BotApiKeyNotFoundException":
511
738
  case "wildix.xbees.users#BotApiKeyNotFoundException":
512
739
  throw await de_BotApiKeyNotFoundExceptionRes(parsedOutput, context);
740
+ case "UserQueryPredicateNotMetException":
741
+ case "wildix.xbees.users#UserQueryPredicateNotMetException":
742
+ throw await de_UserQueryPredicateNotMetExceptionRes(parsedOutput, context);
513
743
  case "BotSecretKeyNotValidException":
514
744
  case "wildix.xbees.users#BotSecretKeyNotValidException":
515
745
  throw await de_BotSecretKeyNotValidExceptionRes(parsedOutput, context);
@@ -614,6 +844,19 @@ const de_UserNotFoundExceptionRes = async (parsedOutput, context) => {
614
844
  });
615
845
  return __decorateServiceException(exception, parsedOutput.body);
616
846
  };
847
+ const de_UserQueryPredicateNotMetExceptionRes = async (parsedOutput, context) => {
848
+ const contents = map({});
849
+ const data = parsedOutput.body;
850
+ const doc = take(data, {
851
+ 'message': __expectString,
852
+ });
853
+ Object.assign(contents, doc);
854
+ const exception = new UserQueryPredicateNotMetException({
855
+ $metadata: deserializeMetadata(parsedOutput),
856
+ ...contents
857
+ });
858
+ return __decorateServiceException(exception, parsedOutput.body);
859
+ };
617
860
  const se_Document = (input, context) => {
618
861
  return input;
619
862
  };
@@ -1,6 +1,7 @@
1
1
  import { UsersClient } from "./UsersClient";
2
+ import { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "./commands/BatchGetUsersCommand";
2
3
  import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "./commands/BatchGetUsersPbxLinkDataCommand";
3
- import { BatchGetUsersStreamLinkDataCommandInput, BatchGetUsersStreamLinkDataCommandOutput } from "./commands/BatchGetUsersStreamLinkDataCommand";
4
+ import { BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1CommandOutput } from "./commands/BatchGetUsersPbxLinkDataV1Command";
4
5
  import { ChangeUserEmailCommandInput, ChangeUserEmailCommandOutput } from "./commands/ChangeUserEmailCommand";
5
6
  import { CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput } from "./commands/CreateBotApiKeyCommand";
6
7
  import { CreateBotCommandInput, CreateBotCommandOutput } from "./commands/CreateBotCommand";
@@ -8,15 +9,28 @@ import { DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput } from "./com
8
9
  import { DeleteBotCommandInput, DeleteBotCommandOutput } from "./commands/DeleteBotCommand";
9
10
  import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "./commands/GetBotCallbackCommand";
10
11
  import { GetBotCommandInput, GetBotCommandOutput } from "./commands/GetBotCommand";
12
+ import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
13
+ import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
11
14
  import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
15
+ import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
12
16
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
13
17
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
18
+ import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
19
+ import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
14
20
  import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
15
21
  import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
16
22
  import { UploadPictureCommandInput, UploadPictureCommandOutput } from "./commands/UploadPictureCommand";
23
+ import { UploadPictureV1CommandInput, UploadPictureV1CommandOutput } from "./commands/UploadPictureV1Command";
17
24
  import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
25
+ import { VerifyBotSecretKeyV1CommandInput, VerifyBotSecretKeyV1CommandOutput } from "./commands/VerifyBotSecretKeyV1Command";
18
26
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
19
27
  export interface Users {
28
+ /**
29
+ * @see {@link BatchGetUsersCommand}
30
+ */
31
+ batchGetUsers(args: BatchGetUsersCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetUsersCommandOutput>;
32
+ batchGetUsers(args: BatchGetUsersCommandInput, cb: (err: any, data?: BatchGetUsersCommandOutput) => void): void;
33
+ batchGetUsers(args: BatchGetUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetUsersCommandOutput) => void): void;
20
34
  /**
21
35
  * @see {@link BatchGetUsersPbxLinkDataCommand}
22
36
  */
@@ -24,11 +38,11 @@ export interface Users {
24
38
  batchGetUsersPbxLinkData(args: BatchGetUsersPbxLinkDataCommandInput, cb: (err: any, data?: BatchGetUsersPbxLinkDataCommandOutput) => void): void;
25
39
  batchGetUsersPbxLinkData(args: BatchGetUsersPbxLinkDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetUsersPbxLinkDataCommandOutput) => void): void;
26
40
  /**
27
- * @see {@link BatchGetUsersStreamLinkDataCommand}
41
+ * @see {@link BatchGetUsersPbxLinkDataV1Command}
28
42
  */
29
- batchGetUsersStreamLinkData(args: BatchGetUsersStreamLinkDataCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetUsersStreamLinkDataCommandOutput>;
30
- batchGetUsersStreamLinkData(args: BatchGetUsersStreamLinkDataCommandInput, cb: (err: any, data?: BatchGetUsersStreamLinkDataCommandOutput) => void): void;
31
- batchGetUsersStreamLinkData(args: BatchGetUsersStreamLinkDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetUsersStreamLinkDataCommandOutput) => void): void;
43
+ batchGetUsersPbxLinkDataV1(args: BatchGetUsersPbxLinkDataV1CommandInput, options?: __HttpHandlerOptions): Promise<BatchGetUsersPbxLinkDataV1CommandOutput>;
44
+ batchGetUsersPbxLinkDataV1(args: BatchGetUsersPbxLinkDataV1CommandInput, cb: (err: any, data?: BatchGetUsersPbxLinkDataV1CommandOutput) => void): void;
45
+ batchGetUsersPbxLinkDataV1(args: BatchGetUsersPbxLinkDataV1CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetUsersPbxLinkDataV1CommandOutput) => void): void;
32
46
  /**
33
47
  * @see {@link ChangeUserEmailCommand}
34
48
  */
@@ -71,6 +85,18 @@ export interface Users {
71
85
  getBotCallback(args: GetBotCallbackCommandInput, options?: __HttpHandlerOptions): Promise<GetBotCallbackCommandOutput>;
72
86
  getBotCallback(args: GetBotCallbackCommandInput, cb: (err: any, data?: GetBotCallbackCommandOutput) => void): void;
73
87
  getBotCallback(args: GetBotCallbackCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBotCallbackCommandOutput) => void): void;
88
+ /**
89
+ * @see {@link GetUserCommand}
90
+ */
91
+ getUser(args: GetUserCommandInput, options?: __HttpHandlerOptions): Promise<GetUserCommandOutput>;
92
+ getUser(args: GetUserCommandInput, cb: (err: any, data?: GetUserCommandOutput) => void): void;
93
+ getUser(args: GetUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserCommandOutput) => void): void;
94
+ /**
95
+ * @see {@link GetUserPbxLinkDataCommand}
96
+ */
97
+ getUserPbxLinkData(args: GetUserPbxLinkDataCommandInput, options?: __HttpHandlerOptions): Promise<GetUserPbxLinkDataCommandOutput>;
98
+ getUserPbxLinkData(args: GetUserPbxLinkDataCommandInput, cb: (err: any, data?: GetUserPbxLinkDataCommandOutput) => void): void;
99
+ getUserPbxLinkData(args: GetUserPbxLinkDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserPbxLinkDataCommandOutput) => void): void;
74
100
  /**
75
101
  * @see {@link GetUserPbxLinkSuggestionCommand}
76
102
  */
@@ -78,6 +104,13 @@ export interface Users {
78
104
  getUserPbxLinkSuggestion(args: GetUserPbxLinkSuggestionCommandInput, options?: __HttpHandlerOptions): Promise<GetUserPbxLinkSuggestionCommandOutput>;
79
105
  getUserPbxLinkSuggestion(args: GetUserPbxLinkSuggestionCommandInput, cb: (err: any, data?: GetUserPbxLinkSuggestionCommandOutput) => void): void;
80
106
  getUserPbxLinkSuggestion(args: GetUserPbxLinkSuggestionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserPbxLinkSuggestionCommandOutput) => void): void;
107
+ /**
108
+ * @see {@link GetUserPbxLinkSuggestionV1Command}
109
+ */
110
+ getUserPbxLinkSuggestionV1(): Promise<GetUserPbxLinkSuggestionV1CommandOutput>;
111
+ getUserPbxLinkSuggestionV1(args: GetUserPbxLinkSuggestionV1CommandInput, options?: __HttpHandlerOptions): Promise<GetUserPbxLinkSuggestionV1CommandOutput>;
112
+ getUserPbxLinkSuggestionV1(args: GetUserPbxLinkSuggestionV1CommandInput, cb: (err: any, data?: GetUserPbxLinkSuggestionV1CommandOutput) => void): void;
113
+ getUserPbxLinkSuggestionV1(args: GetUserPbxLinkSuggestionV1CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserPbxLinkSuggestionV1CommandOutput) => void): void;
81
114
  /**
82
115
  * @see {@link ListBotApiKeysCommand}
83
116
  */
@@ -91,6 +124,18 @@ export interface Users {
91
124
  listBots(args: ListBotsCommandInput, options?: __HttpHandlerOptions): Promise<ListBotsCommandOutput>;
92
125
  listBots(args: ListBotsCommandInput, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
93
126
  listBots(args: ListBotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
127
+ /**
128
+ * @see {@link QueryUserCommand}
129
+ */
130
+ queryUser(args: QueryUserCommandInput, options?: __HttpHandlerOptions): Promise<QueryUserCommandOutput>;
131
+ queryUser(args: QueryUserCommandInput, cb: (err: any, data?: QueryUserCommandOutput) => void): void;
132
+ queryUser(args: QueryUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryUserCommandOutput) => void): void;
133
+ /**
134
+ * @see {@link QueryUsersCommand}
135
+ */
136
+ queryUsers(args: QueryUsersCommandInput, options?: __HttpHandlerOptions): Promise<QueryUsersCommandOutput>;
137
+ queryUsers(args: QueryUsersCommandInput, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
138
+ queryUsers(args: QueryUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
94
139
  /**
95
140
  * @see {@link UpdateBotCommand}
96
141
  */
@@ -109,12 +154,24 @@ export interface Users {
109
154
  uploadPicture(args: UploadPictureCommandInput, options?: __HttpHandlerOptions): Promise<UploadPictureCommandOutput>;
110
155
  uploadPicture(args: UploadPictureCommandInput, cb: (err: any, data?: UploadPictureCommandOutput) => void): void;
111
156
  uploadPicture(args: UploadPictureCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UploadPictureCommandOutput) => void): void;
157
+ /**
158
+ * @see {@link UploadPictureV1Command}
159
+ */
160
+ uploadPictureV1(args: UploadPictureV1CommandInput, options?: __HttpHandlerOptions): Promise<UploadPictureV1CommandOutput>;
161
+ uploadPictureV1(args: UploadPictureV1CommandInput, cb: (err: any, data?: UploadPictureV1CommandOutput) => void): void;
162
+ uploadPictureV1(args: UploadPictureV1CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UploadPictureV1CommandOutput) => void): void;
112
163
  /**
113
164
  * @see {@link VerifyBotSecretKeyCommand}
114
165
  */
115
166
  verifyBotSecretKey(args: VerifyBotSecretKeyCommandInput, options?: __HttpHandlerOptions): Promise<VerifyBotSecretKeyCommandOutput>;
116
167
  verifyBotSecretKey(args: VerifyBotSecretKeyCommandInput, cb: (err: any, data?: VerifyBotSecretKeyCommandOutput) => void): void;
117
168
  verifyBotSecretKey(args: VerifyBotSecretKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: VerifyBotSecretKeyCommandOutput) => void): void;
169
+ /**
170
+ * @see {@link VerifyBotSecretKeyV1Command}
171
+ */
172
+ verifyBotSecretKeyV1(args: VerifyBotSecretKeyV1CommandInput, options?: __HttpHandlerOptions): Promise<VerifyBotSecretKeyV1CommandOutput>;
173
+ verifyBotSecretKeyV1(args: VerifyBotSecretKeyV1CommandInput, cb: (err: any, data?: VerifyBotSecretKeyV1CommandOutput) => void): void;
174
+ verifyBotSecretKeyV1(args: VerifyBotSecretKeyV1CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: VerifyBotSecretKeyV1CommandOutput) => void): void;
118
175
  }
119
176
  /**
120
177
  * @public
@@ -1,5 +1,6 @@
1
+ import { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "./commands/BatchGetUsersCommand";
1
2
  import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "./commands/BatchGetUsersPbxLinkDataCommand";
2
- import { BatchGetUsersStreamLinkDataCommandInput, BatchGetUsersStreamLinkDataCommandOutput } from "./commands/BatchGetUsersStreamLinkDataCommand";
3
+ import { BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1CommandOutput } from "./commands/BatchGetUsersPbxLinkDataV1Command";
3
4
  import { ChangeUserEmailCommandInput, ChangeUserEmailCommandOutput } from "./commands/ChangeUserEmailCommand";
4
5
  import { CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput } from "./commands/CreateBotApiKeyCommand";
5
6
  import { CreateBotCommandInput, CreateBotCommandOutput } from "./commands/CreateBotCommand";
@@ -7,13 +8,20 @@ import { DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput } from "./com
7
8
  import { DeleteBotCommandInput, DeleteBotCommandOutput } from "./commands/DeleteBotCommand";
8
9
  import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "./commands/GetBotCallbackCommand";
9
10
  import { GetBotCommandInput, GetBotCommandOutput } from "./commands/GetBotCommand";
11
+ import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
12
+ import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
10
13
  import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
14
+ import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
11
15
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
12
16
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
17
+ import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
18
+ import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
13
19
  import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
14
20
  import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
15
21
  import { UploadPictureCommandInput, UploadPictureCommandOutput } from "./commands/UploadPictureCommand";
22
+ import { UploadPictureV1CommandInput, UploadPictureV1CommandOutput } from "./commands/UploadPictureV1Command";
16
23
  import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
24
+ import { VerifyBotSecretKeyV1CommandInput, VerifyBotSecretKeyV1CommandOutput } from "./commands/VerifyBotSecretKeyV1Command";
17
25
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
18
26
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
19
27
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
@@ -25,11 +33,11 @@ export { __Client };
25
33
  /**
26
34
  * @public
27
35
  */
28
- export type ServiceInputTypes = BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersStreamLinkDataCommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserPbxLinkSuggestionCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UploadPictureCommandInput | VerifyBotSecretKeyCommandInput;
36
+ export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | QueryUserCommandInput | QueryUsersCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
29
37
  /**
30
38
  * @public
31
39
  */
32
- export type ServiceOutputTypes = BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersStreamLinkDataCommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserPbxLinkSuggestionCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UploadPictureCommandOutput | VerifyBotSecretKeyCommandOutput;
40
+ export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
33
41
  /**
34
42
  * @public
35
43
  */
@@ -0,0 +1,85 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
+ import { BatchGetUsersInput, BatchGetUsersOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link BatchGetUsersCommand}.
14
+ */
15
+ export interface BatchGetUsersCommandInput extends BatchGetUsersInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link BatchGetUsersCommand}.
21
+ */
22
+ export interface BatchGetUsersCommandOutput extends BatchGetUsersOutput, __MetadataBearer {
23
+ }
24
+ declare const BatchGetUsersCommand_base: {
25
+ new (input: BatchGetUsersCommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetUsersCommandInput, BatchGetUsersCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: BatchGetUsersCommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetUsersCommandInput, BatchGetUsersCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * @public
31
+ *
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { UsersClient, BatchGetUsersCommand } from "@wildix/xbees-users-client"; // ES Modules import
36
+ * // const { UsersClient, BatchGetUsersCommand } = require("@wildix/xbees-users-client"); // CommonJS import
37
+ * const client = new UsersClient(config);
38
+ * const input = { // BatchGetUsersInput
39
+ * id: [ // UsersIdList // required
40
+ * "STRING_VALUE",
41
+ * ],
42
+ * };
43
+ * const command = new BatchGetUsersCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // BatchGetUsersOutput
46
+ * // users: [ // UsersList // required
47
+ * // { // User
48
+ * // id: "STRING_VALUE", // required
49
+ * // name: "STRING_VALUE",
50
+ * // email: "STRING_VALUE",
51
+ * // phone: "STRING_VALUE",
52
+ * // picture: "STRING_VALUE",
53
+ * // locale: "STRING_VALUE",
54
+ * // timeZone: "STRING_VALUE",
55
+ * // company: "STRING_VALUE",
56
+ * // bot: true || false,
57
+ * // pbxDomain: "STRING_VALUE",
58
+ * // pbxPort: "STRING_VALUE",
59
+ * // pbxExtension: "STRING_VALUE",
60
+ * // pbxSerial: "STRING_VALUE",
61
+ * // pbxUserId: "STRING_VALUE",
62
+ * // createdAt: "STRING_VALUE",
63
+ * // updatedAt: "STRING_VALUE",
64
+ * // },
65
+ * // ],
66
+ * // };
67
+ *
68
+ * ```
69
+ *
70
+ * @param BatchGetUsersCommandInput - {@link BatchGetUsersCommandInput}
71
+ * @returns {@link BatchGetUsersCommandOutput}
72
+ * @see {@link BatchGetUsersCommandInput} for command's `input` shape.
73
+ * @see {@link BatchGetUsersCommandOutput} for command's `response` shape.
74
+ * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
75
+ *
76
+ * @throws {@link ForbiddenException} (client fault)
77
+ *
78
+ * @throws {@link ValidationException} (client fault)
79
+ *
80
+ * @throws {@link UsersServiceException}
81
+ * <p>Base exception class for all service exceptions from Users service.</p>
82
+ *
83
+ */
84
+ export declare class BatchGetUsersCommand extends BatchGetUsersCommand_base {
85
+ }