@wildix/xbees-users-client 1.0.22 → 1.0.24

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 (35) hide show
  1. package/dist-cjs/Users.js +10 -2
  2. package/dist-cjs/commands/{BatchGetUsersStreamLinkDataCommand.js → BatchGetUsersCommand.js} +7 -7
  3. package/dist-cjs/commands/GetUserCommand.js +21 -0
  4. package/dist-cjs/commands/GetUserPbxLinkDataCommand.js +21 -0
  5. package/dist-cjs/commands/QueryUserCommand.js +21 -0
  6. package/dist-cjs/commands/QueryUsersCommand.js +21 -0
  7. package/dist-cjs/commands/index.js +5 -1
  8. package/dist-cjs/models/models_0.js +33 -1
  9. package/dist-cjs/protocols/Aws_restJson1.js +149 -11
  10. package/dist-es/Users.js +10 -2
  11. package/dist-es/commands/BatchGetUsersCommand.js +17 -0
  12. package/dist-es/commands/GetUserCommand.js +17 -0
  13. package/dist-es/commands/GetUserPbxLinkDataCommand.js +17 -0
  14. package/dist-es/commands/QueryUserCommand.js +17 -0
  15. package/dist-es/commands/QueryUsersCommand.js +17 -0
  16. package/dist-es/commands/index.js +5 -1
  17. package/dist-es/models/models_0.js +31 -0
  18. package/dist-es/protocols/Aws_restJson1.js +137 -7
  19. package/dist-types/Users.d.ts +35 -7
  20. package/dist-types/UsersClient.d.ts +7 -3
  21. package/dist-types/commands/BatchGetUsersCommand.d.ts +85 -0
  22. package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +53 -4
  23. package/dist-types/commands/GetUserCommand.d.ts +83 -0
  24. package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +120 -0
  25. package/dist-types/commands/QueryUserCommand.d.ts +92 -0
  26. package/dist-types/commands/QueryUsersCommand.d.ts +92 -0
  27. package/dist-types/commands/index.d.ts +5 -1
  28. package/dist-types/models/models_0.d.ts +462 -60
  29. package/dist-types/protocols/Aws_restJson1.d.ts +45 -9
  30. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  31. package/dist-types/runtimeConfig.d.ts +1 -0
  32. package/dist-types/runtimeConfig.native.d.ts +1 -0
  33. package/package.json +1 -1
  34. package/dist-es/commands/BatchGetUsersStreamLinkDataCommand.js +0 -17
  35. 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,13 @@
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_BatchGetUsersPbxLinkDataCommand = async (input, context) => {
5
+ export const se_BatchGetUsersCommand = async (input, context) => {
6
6
  const b = rb(input, context);
7
7
  const headers = {
8
8
  'content-type': 'application/json',
9
9
  };
10
- b.bp("/v2/users/BatchGetUsersPbxLinkData");
10
+ b.bp("/v2/users/BatchGetUsers");
11
11
  let body;
12
12
  body = JSON.stringify(take(input, {
13
13
  'id': _ => _json(_),
@@ -17,12 +17,12 @@ export const se_BatchGetUsersPbxLinkDataCommand = async (input, context) => {
17
17
  .b(body);
18
18
  return b.build();
19
19
  };
20
- export const se_BatchGetUsersStreamLinkDataCommand = async (input, context) => {
20
+ export const se_BatchGetUsersPbxLinkDataCommand = async (input, context) => {
21
21
  const b = rb(input, context);
22
22
  const headers = {
23
23
  'content-type': 'application/json',
24
24
  };
25
- b.bp("/v1/users/BatchGetUsersStreamLinkData");
25
+ b.bp("/v2/users/BatchGetUsersPbxLinkData");
26
26
  let body;
27
27
  body = JSON.stringify(take(input, {
28
28
  'id': _ => _json(_),
@@ -151,6 +151,32 @@ export const se_GetBotCallbackCommand = async (input, context) => {
151
151
  .b(body);
152
152
  return b.build();
153
153
  };
154
+ export const se_GetUserCommand = async (input, context) => {
155
+ const b = rb(input, context);
156
+ const headers = {};
157
+ b.bp("/v2/users/cloud/{userId}");
158
+ b.p('userId', () => input.userId, '{userId}', false);
159
+ let body;
160
+ b.m("GET")
161
+ .h(headers)
162
+ .b(body);
163
+ return b.build();
164
+ };
165
+ export const se_GetUserPbxLinkDataCommand = async (input, context) => {
166
+ const b = rb(input, context);
167
+ const headers = {
168
+ 'content-type': 'application/json',
169
+ };
170
+ b.bp("/v2/users/GetUserPbxLinkData");
171
+ let body;
172
+ body = JSON.stringify(take(input, {
173
+ 'id': [],
174
+ }));
175
+ b.m("POST")
176
+ .h(headers)
177
+ .b(body);
178
+ return b.build();
179
+ };
154
180
  export const se_GetUserPbxLinkSuggestionCommand = async (input, context) => {
155
181
  const b = rb(input, context);
156
182
  const headers = {};
@@ -194,6 +220,38 @@ export const se_ListBotsCommand = async (input, context) => {
194
220
  .b(body);
195
221
  return b.build();
196
222
  };
223
+ export const se_QueryUserCommand = async (input, context) => {
224
+ const b = rb(input, context);
225
+ const headers = {
226
+ 'content-type': 'application/json',
227
+ };
228
+ b.bp("/v2/users/QueryUser");
229
+ let body;
230
+ body = JSON.stringify(take(input, {
231
+ 'predicate': _ => _json(_),
232
+ 'query': _ => _json(_),
233
+ }));
234
+ b.m("POST")
235
+ .h(headers)
236
+ .b(body);
237
+ return b.build();
238
+ };
239
+ export const se_QueryUsersCommand = async (input, context) => {
240
+ const b = rb(input, context);
241
+ const headers = {
242
+ 'content-type': 'application/json',
243
+ };
244
+ b.bp("/v2/users/QueryUsers");
245
+ let body;
246
+ body = JSON.stringify(take(input, {
247
+ 'predicate': _ => _json(_),
248
+ 'queries': _ => _json(_),
249
+ }));
250
+ b.m("POST")
251
+ .h(headers)
252
+ .b(body);
253
+ return b.build();
254
+ };
197
255
  export const se_UpdateBotCommand = async (input, context) => {
198
256
  const b = rb(input, context);
199
257
  const headers = {
@@ -266,7 +324,7 @@ export const se_VerifyBotSecretKeyCommand = async (input, context) => {
266
324
  .b(body);
267
325
  return b.build();
268
326
  };
269
- export const de_BatchGetUsersPbxLinkDataCommand = async (output, context) => {
327
+ export const de_BatchGetUsersCommand = async (output, context) => {
270
328
  if (output.statusCode !== 200 && output.statusCode >= 300) {
271
329
  return de_CommandError(output, context);
272
330
  }
@@ -280,7 +338,7 @@ export const de_BatchGetUsersPbxLinkDataCommand = async (output, context) => {
280
338
  Object.assign(contents, doc);
281
339
  return contents;
282
340
  };
283
- export const de_BatchGetUsersStreamLinkDataCommand = async (output, context) => {
341
+ export const de_BatchGetUsersPbxLinkDataCommand = async (output, context) => {
284
342
  if (output.statusCode !== 200 && output.statusCode >= 300) {
285
343
  return de_CommandError(output, context);
286
344
  }
@@ -385,6 +443,34 @@ export const de_GetBotCallbackCommand = async (output, context) => {
385
443
  Object.assign(contents, doc);
386
444
  return contents;
387
445
  };
446
+ export const de_GetUserCommand = async (output, context) => {
447
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
448
+ return de_CommandError(output, context);
449
+ }
450
+ const contents = map({
451
+ $metadata: deserializeMetadata(output),
452
+ });
453
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
454
+ const doc = take(data, {
455
+ 'user': _json,
456
+ });
457
+ Object.assign(contents, doc);
458
+ return contents;
459
+ };
460
+ export const de_GetUserPbxLinkDataCommand = async (output, context) => {
461
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
462
+ return de_CommandError(output, context);
463
+ }
464
+ const contents = map({
465
+ $metadata: deserializeMetadata(output),
466
+ });
467
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
468
+ const doc = take(data, {
469
+ 'user': _json,
470
+ });
471
+ Object.assign(contents, doc);
472
+ return contents;
473
+ };
388
474
  export const de_GetUserPbxLinkSuggestionCommand = async (output, context) => {
389
475
  if (output.statusCode !== 200 && output.statusCode >= 300) {
390
476
  return de_CommandError(output, context);
@@ -427,6 +513,34 @@ export const de_ListBotsCommand = async (output, context) => {
427
513
  Object.assign(contents, doc);
428
514
  return contents;
429
515
  };
516
+ export const de_QueryUserCommand = async (output, context) => {
517
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
518
+ return de_CommandError(output, context);
519
+ }
520
+ const contents = map({
521
+ $metadata: deserializeMetadata(output),
522
+ });
523
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
524
+ const doc = take(data, {
525
+ 'user': _json,
526
+ });
527
+ Object.assign(contents, doc);
528
+ return contents;
529
+ };
530
+ export const de_QueryUsersCommand = async (output, context) => {
531
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
532
+ return de_CommandError(output, context);
533
+ }
534
+ const contents = map({
535
+ $metadata: deserializeMetadata(output),
536
+ });
537
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
538
+ const doc = take(data, {
539
+ 'users': _json,
540
+ });
541
+ Object.assign(contents, doc);
542
+ return contents;
543
+ };
430
544
  export const de_UpdateBotCommand = async (output, context) => {
431
545
  if (output.statusCode !== 200 && output.statusCode >= 300) {
432
546
  return de_CommandError(output, context);
@@ -510,6 +624,9 @@ const de_CommandError = async (output, context) => {
510
624
  case "BotApiKeyNotFoundException":
511
625
  case "wildix.xbees.users#BotApiKeyNotFoundException":
512
626
  throw await de_BotApiKeyNotFoundExceptionRes(parsedOutput, context);
627
+ case "UserQueryPredicateNotMetException":
628
+ case "wildix.xbees.users#UserQueryPredicateNotMetException":
629
+ throw await de_UserQueryPredicateNotMetExceptionRes(parsedOutput, context);
513
630
  case "BotSecretKeyNotValidException":
514
631
  case "wildix.xbees.users#BotSecretKeyNotValidException":
515
632
  throw await de_BotSecretKeyNotValidExceptionRes(parsedOutput, context);
@@ -614,6 +731,19 @@ const de_UserNotFoundExceptionRes = async (parsedOutput, context) => {
614
731
  });
615
732
  return __decorateServiceException(exception, parsedOutput.body);
616
733
  };
734
+ const de_UserQueryPredicateNotMetExceptionRes = async (parsedOutput, context) => {
735
+ const contents = map({});
736
+ const data = parsedOutput.body;
737
+ const doc = take(data, {
738
+ 'message': __expectString,
739
+ });
740
+ Object.assign(contents, doc);
741
+ const exception = new UserQueryPredicateNotMetException({
742
+ $metadata: deserializeMetadata(parsedOutput),
743
+ ...contents
744
+ });
745
+ return __decorateServiceException(exception, parsedOutput.body);
746
+ };
617
747
  const se_Document = (input, context) => {
618
748
  return input;
619
749
  };
@@ -1,6 +1,6 @@
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
4
  import { ChangeUserEmailCommandInput, ChangeUserEmailCommandOutput } from "./commands/ChangeUserEmailCommand";
5
5
  import { CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput } from "./commands/CreateBotApiKeyCommand";
6
6
  import { CreateBotCommandInput, CreateBotCommandOutput } from "./commands/CreateBotCommand";
@@ -8,27 +8,31 @@ import { DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput } from "./com
8
8
  import { DeleteBotCommandInput, DeleteBotCommandOutput } from "./commands/DeleteBotCommand";
9
9
  import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "./commands/GetBotCallbackCommand";
10
10
  import { GetBotCommandInput, GetBotCommandOutput } from "./commands/GetBotCommand";
11
+ import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
12
+ import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
11
13
  import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
12
14
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
13
15
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
16
+ import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
17
+ import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
14
18
  import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
15
19
  import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
16
20
  import { UploadPictureCommandInput, UploadPictureCommandOutput } from "./commands/UploadPictureCommand";
17
21
  import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
18
22
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
19
23
  export interface Users {
24
+ /**
25
+ * @see {@link BatchGetUsersCommand}
26
+ */
27
+ batchGetUsers(args: BatchGetUsersCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetUsersCommandOutput>;
28
+ batchGetUsers(args: BatchGetUsersCommandInput, cb: (err: any, data?: BatchGetUsersCommandOutput) => void): void;
29
+ batchGetUsers(args: BatchGetUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetUsersCommandOutput) => void): void;
20
30
  /**
21
31
  * @see {@link BatchGetUsersPbxLinkDataCommand}
22
32
  */
23
33
  batchGetUsersPbxLinkData(args: BatchGetUsersPbxLinkDataCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetUsersPbxLinkDataCommandOutput>;
24
34
  batchGetUsersPbxLinkData(args: BatchGetUsersPbxLinkDataCommandInput, cb: (err: any, data?: BatchGetUsersPbxLinkDataCommandOutput) => void): void;
25
35
  batchGetUsersPbxLinkData(args: BatchGetUsersPbxLinkDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetUsersPbxLinkDataCommandOutput) => void): void;
26
- /**
27
- * @see {@link BatchGetUsersStreamLinkDataCommand}
28
- */
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;
32
36
  /**
33
37
  * @see {@link ChangeUserEmailCommand}
34
38
  */
@@ -71,6 +75,18 @@ export interface Users {
71
75
  getBotCallback(args: GetBotCallbackCommandInput, options?: __HttpHandlerOptions): Promise<GetBotCallbackCommandOutput>;
72
76
  getBotCallback(args: GetBotCallbackCommandInput, cb: (err: any, data?: GetBotCallbackCommandOutput) => void): void;
73
77
  getBotCallback(args: GetBotCallbackCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBotCallbackCommandOutput) => void): void;
78
+ /**
79
+ * @see {@link GetUserCommand}
80
+ */
81
+ getUser(args: GetUserCommandInput, options?: __HttpHandlerOptions): Promise<GetUserCommandOutput>;
82
+ getUser(args: GetUserCommandInput, cb: (err: any, data?: GetUserCommandOutput) => void): void;
83
+ getUser(args: GetUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserCommandOutput) => void): void;
84
+ /**
85
+ * @see {@link GetUserPbxLinkDataCommand}
86
+ */
87
+ getUserPbxLinkData(args: GetUserPbxLinkDataCommandInput, options?: __HttpHandlerOptions): Promise<GetUserPbxLinkDataCommandOutput>;
88
+ getUserPbxLinkData(args: GetUserPbxLinkDataCommandInput, cb: (err: any, data?: GetUserPbxLinkDataCommandOutput) => void): void;
89
+ getUserPbxLinkData(args: GetUserPbxLinkDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserPbxLinkDataCommandOutput) => void): void;
74
90
  /**
75
91
  * @see {@link GetUserPbxLinkSuggestionCommand}
76
92
  */
@@ -91,6 +107,18 @@ export interface Users {
91
107
  listBots(args: ListBotsCommandInput, options?: __HttpHandlerOptions): Promise<ListBotsCommandOutput>;
92
108
  listBots(args: ListBotsCommandInput, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
93
109
  listBots(args: ListBotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
110
+ /**
111
+ * @see {@link QueryUserCommand}
112
+ */
113
+ queryUser(args: QueryUserCommandInput, options?: __HttpHandlerOptions): Promise<QueryUserCommandOutput>;
114
+ queryUser(args: QueryUserCommandInput, cb: (err: any, data?: QueryUserCommandOutput) => void): void;
115
+ queryUser(args: QueryUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryUserCommandOutput) => void): void;
116
+ /**
117
+ * @see {@link QueryUsersCommand}
118
+ */
119
+ queryUsers(args: QueryUsersCommandInput, options?: __HttpHandlerOptions): Promise<QueryUsersCommandOutput>;
120
+ queryUsers(args: QueryUsersCommandInput, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
121
+ queryUsers(args: QueryUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
94
122
  /**
95
123
  * @see {@link UpdateBotCommand}
96
124
  */
@@ -1,5 +1,5 @@
1
+ import { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "./commands/BatchGetUsersCommand";
1
2
  import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "./commands/BatchGetUsersPbxLinkDataCommand";
2
- import { BatchGetUsersStreamLinkDataCommandInput, BatchGetUsersStreamLinkDataCommandOutput } from "./commands/BatchGetUsersStreamLinkDataCommand";
3
3
  import { ChangeUserEmailCommandInput, ChangeUserEmailCommandOutput } from "./commands/ChangeUserEmailCommand";
4
4
  import { CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput } from "./commands/CreateBotApiKeyCommand";
5
5
  import { CreateBotCommandInput, CreateBotCommandOutput } from "./commands/CreateBotCommand";
@@ -7,9 +7,13 @@ import { DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput } from "./com
7
7
  import { DeleteBotCommandInput, DeleteBotCommandOutput } from "./commands/DeleteBotCommand";
8
8
  import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "./commands/GetBotCallbackCommand";
9
9
  import { GetBotCommandInput, GetBotCommandOutput } from "./commands/GetBotCommand";
10
+ import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
11
+ import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
10
12
  import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
11
13
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
12
14
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
15
+ import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
16
+ import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
13
17
  import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
14
18
  import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
15
19
  import { UploadPictureCommandInput, UploadPictureCommandOutput } from "./commands/UploadPictureCommand";
@@ -25,11 +29,11 @@ export { __Client };
25
29
  /**
26
30
  * @public
27
31
  */
28
- export type ServiceInputTypes = BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersStreamLinkDataCommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserPbxLinkSuggestionCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UploadPictureCommandInput | VerifyBotSecretKeyCommandInput;
32
+ export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersPbxLinkDataCommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | QueryUserCommandInput | QueryUsersCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UploadPictureCommandInput | VerifyBotSecretKeyCommandInput;
29
33
  /**
30
34
  * @public
31
35
  */
32
- export type ServiceOutputTypes = BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersStreamLinkDataCommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserPbxLinkSuggestionCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UploadPictureCommandOutput | VerifyBotSecretKeyCommandOutput;
36
+ export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UploadPictureCommandOutput | VerifyBotSecretKeyCommandOutput;
33
37
  /**
34
38
  * @public
35
39
  */
@@ -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
+ }
@@ -36,19 +36,68 @@ declare const BatchGetUsersPbxLinkDataCommand_base: {
36
36
  * // const { UsersClient, BatchGetUsersPbxLinkDataCommand } = require("@wildix/xbees-users-client"); // CommonJS import
37
37
  * const client = new UsersClient(config);
38
38
  * const input = { // BatchGetUsersPbxLinkDataInput
39
- * id: [ // BatchUsersIdList // required
39
+ * id: [ // UsersIdList // required
40
40
  * "STRING_VALUE",
41
41
  * ],
42
42
  * };
43
43
  * const command = new BatchGetUsersPbxLinkDataCommand(input);
44
44
  * const response = await client.send(command);
45
45
  * // { // BatchGetUsersPbxLinkDataOutput
46
- * // users: [ // PbxLinkDataList // required
47
- * // { // PbxLinkData
46
+ * // users: [ // UsersPbxLinkDataList // required
47
+ * // { // UserPbxLinkData
48
48
  * // id: "STRING_VALUE", // required
49
49
  * // company: "STRING_VALUE", // required
50
- * // domain: "STRING_VALUE",
50
+ * // companyName: "STRING_VALUE",
51
+ * // domain: "STRING_VALUE", // required
51
52
  * // email: "STRING_VALUE",
53
+ * // info: { // UserPersonalInfo
54
+ * // dn: "STRING_VALUE", // required
55
+ * // id: "STRING_VALUE", // required
56
+ * // name: "STRING_VALUE", // required
57
+ * // extension: "STRING_VALUE", // required
58
+ * // officePhone: "STRING_VALUE",
59
+ * // mobilePhone: "STRING_VALUE",
60
+ * // faxNumber: "STRING_VALUE",
61
+ * // email: "STRING_VALUE",
62
+ * // role: "STRING_VALUE", // required
63
+ * // language: "STRING_VALUE", // required
64
+ * // dialplan: "STRING_VALUE", // required
65
+ * // faxDialplan: "STRING_VALUE", // required
66
+ * // departament: "STRING_VALUE",
67
+ * // picture: "STRING_VALUE", // required
68
+ * // groupDn: "STRING_VALUE", // required
69
+ * // groupName: "STRING_VALUE", // required
70
+ * // jid: "STRING_VALUE", // required
71
+ * // licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf", // required
72
+ * // login: "STRING_VALUE",
73
+ * // pbx: "STRING_VALUE",
74
+ * // pbxDn: "STRING_VALUE", // required
75
+ * // sourceId: "STRING_VALUE",
76
+ * // sipPassword: "STRING_VALUE",
77
+ * // },
78
+ * // pbx: { // UserPbxInfo
79
+ * // networkAddresses: [ // UserPbxInfoNetworkAddresses // required
80
+ * // "STRING_VALUE",
81
+ * // ],
82
+ * // ports: [ // UserPbxInfoPorts // required
83
+ * // "STRING_VALUE",
84
+ * // ],
85
+ * // externalLinePrefix: "STRING_VALUE",
86
+ * // version: "STRING_VALUE", // required
87
+ * // serial: "STRING_VALUE", // required
88
+ * // },
89
+ * // picture: "STRING_VALUE", // required
90
+ * // pictureDeleted: true || false,
91
+ * // port: "STRING_VALUE", // required
92
+ * // serial: "STRING_VALUE", // required
93
+ * // services: { // UserPbxServices
94
+ * // xcaracal: true || false,
95
+ * // wizyWebinar: true || false,
96
+ * // },
97
+ * // personalSettings: {},
98
+ * // dialplanSettings: {},
99
+ * // awsRegion: "STRING_VALUE",
100
+ * // updatedAt: "STRING_VALUE",
52
101
  * // },
53
102
  * // ],
54
103
  * // };
@@ -0,0 +1,83 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
+ import { GetUserInput, GetUserOutput } 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 GetUserCommand}.
14
+ */
15
+ export interface GetUserCommandInput extends GetUserInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetUserCommand}.
21
+ */
22
+ export interface GetUserCommandOutput extends GetUserOutput, __MetadataBearer {
23
+ }
24
+ declare const GetUserCommand_base: {
25
+ new (input: GetUserCommandInput): import("@smithy/smithy-client").CommandImpl<GetUserCommandInput, GetUserCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetUserCommandInput): import("@smithy/smithy-client").CommandImpl<GetUserCommandInput, GetUserCommandOutput, 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, GetUserCommand } from "@wildix/xbees-users-client"; // ES Modules import
36
+ * // const { UsersClient, GetUserCommand } = require("@wildix/xbees-users-client"); // CommonJS import
37
+ * const client = new UsersClient(config);
38
+ * const input = { // GetUserInput
39
+ * userId: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new GetUserCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // GetUserOutput
44
+ * // user: { // User
45
+ * // id: "STRING_VALUE", // required
46
+ * // name: "STRING_VALUE",
47
+ * // email: "STRING_VALUE",
48
+ * // phone: "STRING_VALUE",
49
+ * // picture: "STRING_VALUE",
50
+ * // locale: "STRING_VALUE",
51
+ * // timeZone: "STRING_VALUE",
52
+ * // company: "STRING_VALUE",
53
+ * // bot: true || false,
54
+ * // pbxDomain: "STRING_VALUE",
55
+ * // pbxPort: "STRING_VALUE",
56
+ * // pbxExtension: "STRING_VALUE",
57
+ * // pbxSerial: "STRING_VALUE",
58
+ * // pbxUserId: "STRING_VALUE",
59
+ * // createdAt: "STRING_VALUE",
60
+ * // updatedAt: "STRING_VALUE",
61
+ * // },
62
+ * // };
63
+ *
64
+ * ```
65
+ *
66
+ * @param GetUserCommandInput - {@link GetUserCommandInput}
67
+ * @returns {@link GetUserCommandOutput}
68
+ * @see {@link GetUserCommandInput} for command's `input` shape.
69
+ * @see {@link GetUserCommandOutput} for command's `response` shape.
70
+ * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
71
+ *
72
+ * @throws {@link UserNotFoundException} (client fault)
73
+ *
74
+ * @throws {@link ForbiddenException} (client fault)
75
+ *
76
+ * @throws {@link ValidationException} (client fault)
77
+ *
78
+ * @throws {@link UsersServiceException}
79
+ * <p>Base exception class for all service exceptions from Users service.</p>
80
+ *
81
+ */
82
+ export declare class GetUserCommand extends GetUserCommand_base {
83
+ }