@wildix/xbees-users-client 1.0.24 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist-cjs/Users.js +12 -0
  2. package/dist-cjs/commands/BatchGetUsersPbxLinkDataV1Command.js +21 -0
  3. package/dist-cjs/commands/GetUserPbxLinkSuggestionV1Command.js +21 -0
  4. package/dist-cjs/commands/GetUserSettingsCommand.js +21 -0
  5. package/dist-cjs/commands/PartialUpdateUserSettingsCommand.js +21 -0
  6. package/dist-cjs/commands/UploadPictureV1Command.js +21 -0
  7. package/dist-cjs/commands/VerifyBotSecretKeyV1Command.js +21 -0
  8. package/dist-cjs/commands/index.js +6 -0
  9. package/dist-cjs/protocols/Aws_restJson1.js +202 -16
  10. package/dist-es/Users.js +12 -0
  11. package/dist-es/commands/BatchGetUsersPbxLinkDataV1Command.js +17 -0
  12. package/dist-es/commands/GetUserPbxLinkSuggestionV1Command.js +17 -0
  13. package/dist-es/commands/GetUserSettingsCommand.js +17 -0
  14. package/dist-es/commands/PartialUpdateUserSettingsCommand.js +17 -0
  15. package/dist-es/commands/UploadPictureV1Command.js +17 -0
  16. package/dist-es/commands/VerifyBotSecretKeyV1Command.js +17 -0
  17. package/dist-es/commands/index.js +6 -0
  18. package/dist-es/protocols/Aws_restJson1.js +184 -11
  19. package/dist-types/Users.d.ts +43 -0
  20. package/dist-types/UsersClient.d.ts +8 -2
  21. package/dist-types/commands/BatchGetUsersPbxLinkDataV1Command.d.ts +122 -0
  22. package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +1 -1
  23. package/dist-types/commands/GetUserPbxLinkSuggestionV1Command.d.ts +67 -0
  24. package/dist-types/commands/GetUserSettingsCommand.d.ts +69 -0
  25. package/dist-types/commands/PartialUpdateUserSettingsCommand.d.ts +76 -0
  26. package/dist-types/commands/UploadPictureV1Command.d.ts +64 -0
  27. package/dist-types/commands/VerifyBotSecretKeyV1Command.d.ts +68 -0
  28. package/dist-types/commands/index.d.ts +6 -0
  29. package/dist-types/models/models_0.d.ts +157 -1
  30. package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
  31. package/package.json +2 -2
@@ -0,0 +1,17 @@
1
+ import { de_GetUserSettingsCommand, se_GetUserSettingsCommand, } 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 GetUserSettingsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "GetUserSettings", {})
12
+ .n("UsersClient", "GetUserSettingsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetUserSettingsCommand)
15
+ .de(de_GetUserSettingsCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_PartialUpdateUserSettingsCommand, se_PartialUpdateUserSettingsCommand, } 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 PartialUpdateUserSettingsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "PartialUpdateUserSettings", {})
12
+ .n("UsersClient", "PartialUpdateUserSettingsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_PartialUpdateUserSettingsCommand)
15
+ .de(de_PartialUpdateUserSettingsCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_UploadPictureV1Command, se_UploadPictureV1Command, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class UploadPictureV1Command extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "UploadPictureV1", {})
12
+ .n("UsersClient", "UploadPictureV1Command")
13
+ .f(void 0, void 0)
14
+ .ser(se_UploadPictureV1Command)
15
+ .de(de_UploadPictureV1Command)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_VerifyBotSecretKeyV1Command, se_VerifyBotSecretKeyV1Command, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class VerifyBotSecretKeyV1Command extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "VerifyBotSecretKeyV1", {})
12
+ .n("UsersClient", "VerifyBotSecretKeyV1Command")
13
+ .f(void 0, void 0)
14
+ .ser(se_VerifyBotSecretKeyV1Command)
15
+ .de(de_VerifyBotSecretKeyV1Command)
16
+ .build() {
17
+ }
@@ -1,5 +1,6 @@
1
1
  export * from "./BatchGetUsersCommand";
2
2
  export * from "./BatchGetUsersPbxLinkDataCommand";
3
+ export * from "./BatchGetUsersPbxLinkDataV1Command";
3
4
  export * from "./ChangeUserEmailCommand";
4
5
  export * from "./CreateBotCommand";
5
6
  export * from "./CreateBotApiKeyCommand";
@@ -10,11 +11,16 @@ export * from "./GetBotCallbackCommand";
10
11
  export * from "./GetUserCommand";
11
12
  export * from "./GetUserPbxLinkDataCommand";
12
13
  export * from "./GetUserPbxLinkSuggestionCommand";
14
+ export * from "./GetUserPbxLinkSuggestionV1Command";
15
+ export * from "./GetUserSettingsCommand";
13
16
  export * from "./ListBotApiKeysCommand";
14
17
  export * from "./ListBotsCommand";
18
+ export * from "./PartialUpdateUserSettingsCommand";
15
19
  export * from "./QueryUserCommand";
16
20
  export * from "./QueryUsersCommand";
17
21
  export * from "./UpdateBotCommand";
18
22
  export * from "./UpdateBotCallbackCommand";
19
23
  export * from "./UploadPictureCommand";
24
+ export * from "./UploadPictureV1Command";
20
25
  export * from "./VerifyBotSecretKeyCommand";
26
+ export * from "./VerifyBotSecretKeyV1Command";
@@ -7,7 +7,7 @@ export const se_BatchGetUsersCommand = async (input, context) => {
7
7
  const headers = {
8
8
  'content-type': 'application/json',
9
9
  };
10
- b.bp("/v2/users/BatchGetUsers");
10
+ b.bp("/v2/users/batch-get-users");
11
11
  let body;
12
12
  body = JSON.stringify(take(input, {
13
13
  'id': _ => _json(_),
@@ -18,6 +18,21 @@ export const se_BatchGetUsersCommand = async (input, context) => {
18
18
  return b.build();
19
19
  };
20
20
  export const se_BatchGetUsersPbxLinkDataCommand = async (input, context) => {
21
+ const b = rb(input, context);
22
+ const headers = {
23
+ 'content-type': 'application/json',
24
+ };
25
+ b.bp("/v2/users/batch-get-users-pbx-link-data");
26
+ let body;
27
+ body = JSON.stringify(take(input, {
28
+ 'id': _ => _json(_),
29
+ }));
30
+ b.m("POST")
31
+ .h(headers)
32
+ .b(body);
33
+ return b.build();
34
+ };
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',
@@ -164,20 +179,30 @@ export const se_GetUserCommand = async (input, context) => {
164
179
  };
165
180
  export const se_GetUserPbxLinkDataCommand = async (input, context) => {
166
181
  const b = rb(input, context);
167
- const headers = {
168
- 'content-type': 'application/json',
169
- };
170
- b.bp("/v2/users/GetUserPbxLinkData");
182
+ const headers = {};
183
+ b.bp("/v2/users/cloud/{userId}/pbx-link-data");
184
+ b.p('userId', () => input.userId, '{userId}', false);
171
185
  let body;
172
- body = JSON.stringify(take(input, {
173
- 'id': [],
174
- }));
175
- b.m("POST")
186
+ b.m("GET")
176
187
  .h(headers)
177
188
  .b(body);
178
189
  return b.build();
179
190
  };
180
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) => {
181
206
  const b = rb(input, context);
182
207
  const headers = {};
183
208
  b.bp("/v2/users/GetUserPbxLinkSuggestion");
@@ -191,6 +216,17 @@ export const se_GetUserPbxLinkSuggestionCommand = async (input, context) => {
191
216
  .b(body);
192
217
  return b.build();
193
218
  };
219
+ export const se_GetUserSettingsCommand = async (input, context) => {
220
+ const b = rb(input, context);
221
+ const headers = {};
222
+ b.bp("/v2/users/settings/{userId}");
223
+ b.p('userId', () => input.userId, '{userId}', false);
224
+ let body;
225
+ b.m("GET")
226
+ .h(headers)
227
+ .b(body);
228
+ return b.build();
229
+ };
194
230
  export const se_ListBotApiKeysCommand = async (input, context) => {
195
231
  const b = rb(input, context);
196
232
  const headers = {};
@@ -220,12 +256,32 @@ export const se_ListBotsCommand = async (input, context) => {
220
256
  .b(body);
221
257
  return b.build();
222
258
  };
259
+ export const se_PartialUpdateUserSettingsCommand = async (input, context) => {
260
+ const b = rb(input, context);
261
+ const headers = {
262
+ 'content-type': 'application/json',
263
+ };
264
+ b.bp("/v2/users/settings");
265
+ const query = map({
266
+ [_t]: [, input[_t]],
267
+ });
268
+ let body;
269
+ body = JSON.stringify(take(input, {
270
+ 'settings': _ => _json(_),
271
+ 'userId': [],
272
+ }));
273
+ b.m("PATCH")
274
+ .h(headers)
275
+ .q(query)
276
+ .b(body);
277
+ return b.build();
278
+ };
223
279
  export const se_QueryUserCommand = async (input, context) => {
224
280
  const b = rb(input, context);
225
281
  const headers = {
226
282
  'content-type': 'application/json',
227
283
  };
228
- b.bp("/v2/users/QueryUser");
284
+ b.bp("/v2/users/query-user");
229
285
  let body;
230
286
  body = JSON.stringify(take(input, {
231
287
  'predicate': _ => _json(_),
@@ -241,7 +297,7 @@ export const se_QueryUsersCommand = async (input, context) => {
241
297
  const headers = {
242
298
  'content-type': 'application/json',
243
299
  };
244
- b.bp("/v2/users/QueryUsers");
300
+ b.bp("/v2/users/query-users");
245
301
  let body;
246
302
  body = JSON.stringify(take(input, {
247
303
  'predicate': _ => _json(_),
@@ -295,6 +351,21 @@ export const se_UpdateBotCallbackCommand = async (input, context) => {
295
351
  return b.build();
296
352
  };
297
353
  export const se_UploadPictureCommand = async (input, context) => {
354
+ const b = rb(input, context);
355
+ const headers = {
356
+ 'content-type': 'application/json',
357
+ };
358
+ b.bp("/v2/users/upload-picture");
359
+ let body;
360
+ body = JSON.stringify(take(input, {
361
+ 'picture': [],
362
+ }));
363
+ b.m("POST")
364
+ .h(headers)
365
+ .b(body);
366
+ return b.build();
367
+ };
368
+ export const se_UploadPictureV1Command = async (input, context) => {
298
369
  const b = rb(input, context);
299
370
  const headers = {
300
371
  'content-type': 'application/json',
@@ -310,6 +381,21 @@ export const se_UploadPictureCommand = async (input, context) => {
310
381
  return b.build();
311
382
  };
312
383
  export const se_VerifyBotSecretKeyCommand = async (input, context) => {
384
+ const b = rb(input, context);
385
+ const headers = {
386
+ 'content-type': 'application/json',
387
+ };
388
+ b.bp("/v2/users/verify-bot-secret-key");
389
+ let body;
390
+ body = JSON.stringify(take(input, {
391
+ 'secret': [],
392
+ }));
393
+ b.m("POST")
394
+ .h(headers)
395
+ .b(body);
396
+ return b.build();
397
+ };
398
+ export const se_VerifyBotSecretKeyV1Command = async (input, context) => {
313
399
  const b = rb(input, context);
314
400
  const headers = {
315
401
  'content-type': 'application/json',
@@ -352,6 +438,20 @@ export const de_BatchGetUsersPbxLinkDataCommand = async (output, context) => {
352
438
  Object.assign(contents, doc);
353
439
  return contents;
354
440
  };
441
+ export const de_BatchGetUsersPbxLinkDataV1Command = async (output, context) => {
442
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
443
+ return de_CommandError(output, context);
444
+ }
445
+ const contents = map({
446
+ $metadata: deserializeMetadata(output),
447
+ });
448
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
449
+ const doc = take(data, {
450
+ 'users': _json,
451
+ });
452
+ Object.assign(contents, doc);
453
+ return contents;
454
+ };
355
455
  export const de_ChangeUserEmailCommand = async (output, context) => {
356
456
  if (output.statusCode !== 200 && output.statusCode >= 300) {
357
457
  return de_CommandError(output, context);
@@ -485,6 +585,34 @@ export const de_GetUserPbxLinkSuggestionCommand = async (output, context) => {
485
585
  Object.assign(contents, doc);
486
586
  return contents;
487
587
  };
588
+ export const de_GetUserPbxLinkSuggestionV1Command = async (output, context) => {
589
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
590
+ return de_CommandError(output, context);
591
+ }
592
+ const contents = map({
593
+ $metadata: deserializeMetadata(output),
594
+ });
595
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
596
+ const doc = take(data, {
597
+ 'suggestion': _json,
598
+ });
599
+ Object.assign(contents, doc);
600
+ return contents;
601
+ };
602
+ export const de_GetUserSettingsCommand = async (output, context) => {
603
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
604
+ return de_CommandError(output, context);
605
+ }
606
+ const contents = map({
607
+ $metadata: deserializeMetadata(output),
608
+ });
609
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
610
+ const doc = take(data, {
611
+ 'emailNotifications': _json,
612
+ });
613
+ Object.assign(contents, doc);
614
+ return contents;
615
+ };
488
616
  export const de_ListBotApiKeysCommand = async (output, context) => {
489
617
  if (output.statusCode !== 200 && output.statusCode >= 300) {
490
618
  return de_CommandError(output, context);
@@ -513,6 +641,20 @@ export const de_ListBotsCommand = async (output, context) => {
513
641
  Object.assign(contents, doc);
514
642
  return contents;
515
643
  };
644
+ export const de_PartialUpdateUserSettingsCommand = async (output, context) => {
645
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
646
+ return de_CommandError(output, context);
647
+ }
648
+ const contents = map({
649
+ $metadata: deserializeMetadata(output),
650
+ });
651
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
652
+ const doc = take(data, {
653
+ 'emailNotifications': _json,
654
+ });
655
+ Object.assign(contents, doc);
656
+ return contents;
657
+ };
516
658
  export const de_QueryUserCommand = async (output, context) => {
517
659
  if (output.statusCode !== 200 && output.statusCode >= 300) {
518
660
  return de_CommandError(output, context);
@@ -583,6 +725,20 @@ export const de_UploadPictureCommand = async (output, context) => {
583
725
  Object.assign(contents, doc);
584
726
  return contents;
585
727
  };
728
+ export const de_UploadPictureV1Command = async (output, context) => {
729
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
730
+ return de_CommandError(output, context);
731
+ }
732
+ const contents = map({
733
+ $metadata: deserializeMetadata(output),
734
+ });
735
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
736
+ const doc = take(data, {
737
+ 'url': __expectString,
738
+ });
739
+ Object.assign(contents, doc);
740
+ return contents;
741
+ };
586
742
  export const de_VerifyBotSecretKeyCommand = async (output, context) => {
587
743
  if (output.statusCode !== 200 && output.statusCode >= 300) {
588
744
  return de_CommandError(output, context);
@@ -599,6 +755,22 @@ export const de_VerifyBotSecretKeyCommand = async (output, context) => {
599
755
  Object.assign(contents, doc);
600
756
  return contents;
601
757
  };
758
+ export const de_VerifyBotSecretKeyV1Command = async (output, context) => {
759
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
760
+ return de_CommandError(output, context);
761
+ }
762
+ const contents = map({
763
+ $metadata: deserializeMetadata(output),
764
+ });
765
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
766
+ const doc = take(data, {
767
+ 'company': __expectString,
768
+ 'id': __expectString,
769
+ 'name': __expectString,
770
+ });
771
+ Object.assign(contents, doc);
772
+ return contents;
773
+ };
602
774
  const de_CommandError = async (output, context) => {
603
775
  const parsedOutput = {
604
776
  ...output,
@@ -823,6 +995,7 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
823
995
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
824
996
  const _c = "company";
825
997
  const _e = "email";
998
+ const _t = "token";
826
999
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
827
1000
  if (encoded.length) {
828
1001
  return JSON.parse(encoded);
@@ -1,6 +1,7 @@
1
1
  import { UsersClient } from "./UsersClient";
2
2
  import { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "./commands/BatchGetUsersCommand";
3
3
  import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "./commands/BatchGetUsersPbxLinkDataCommand";
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";
@@ -11,14 +12,19 @@ import { GetBotCommandInput, GetBotCommandOutput } from "./commands/GetBotComman
11
12
  import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
12
13
  import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
13
14
  import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
15
+ import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
16
+ import { GetUserSettingsCommandInput, GetUserSettingsCommandOutput } from "./commands/GetUserSettingsCommand";
14
17
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
15
18
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
19
+ import { PartialUpdateUserSettingsCommandInput, PartialUpdateUserSettingsCommandOutput } from "./commands/PartialUpdateUserSettingsCommand";
16
20
  import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
17
21
  import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
18
22
  import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
19
23
  import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
20
24
  import { UploadPictureCommandInput, UploadPictureCommandOutput } from "./commands/UploadPictureCommand";
25
+ import { UploadPictureV1CommandInput, UploadPictureV1CommandOutput } from "./commands/UploadPictureV1Command";
21
26
  import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
27
+ import { VerifyBotSecretKeyV1CommandInput, VerifyBotSecretKeyV1CommandOutput } from "./commands/VerifyBotSecretKeyV1Command";
22
28
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
23
29
  export interface Users {
24
30
  /**
@@ -33,6 +39,12 @@ export interface Users {
33
39
  batchGetUsersPbxLinkData(args: BatchGetUsersPbxLinkDataCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetUsersPbxLinkDataCommandOutput>;
34
40
  batchGetUsersPbxLinkData(args: BatchGetUsersPbxLinkDataCommandInput, cb: (err: any, data?: BatchGetUsersPbxLinkDataCommandOutput) => void): void;
35
41
  batchGetUsersPbxLinkData(args: BatchGetUsersPbxLinkDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetUsersPbxLinkDataCommandOutput) => void): void;
42
+ /**
43
+ * @see {@link BatchGetUsersPbxLinkDataV1Command}
44
+ */
45
+ batchGetUsersPbxLinkDataV1(args: BatchGetUsersPbxLinkDataV1CommandInput, options?: __HttpHandlerOptions): Promise<BatchGetUsersPbxLinkDataV1CommandOutput>;
46
+ batchGetUsersPbxLinkDataV1(args: BatchGetUsersPbxLinkDataV1CommandInput, cb: (err: any, data?: BatchGetUsersPbxLinkDataV1CommandOutput) => void): void;
47
+ batchGetUsersPbxLinkDataV1(args: BatchGetUsersPbxLinkDataV1CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetUsersPbxLinkDataV1CommandOutput) => void): void;
36
48
  /**
37
49
  * @see {@link ChangeUserEmailCommand}
38
50
  */
@@ -94,6 +106,19 @@ export interface Users {
94
106
  getUserPbxLinkSuggestion(args: GetUserPbxLinkSuggestionCommandInput, options?: __HttpHandlerOptions): Promise<GetUserPbxLinkSuggestionCommandOutput>;
95
107
  getUserPbxLinkSuggestion(args: GetUserPbxLinkSuggestionCommandInput, cb: (err: any, data?: GetUserPbxLinkSuggestionCommandOutput) => void): void;
96
108
  getUserPbxLinkSuggestion(args: GetUserPbxLinkSuggestionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserPbxLinkSuggestionCommandOutput) => void): void;
109
+ /**
110
+ * @see {@link GetUserPbxLinkSuggestionV1Command}
111
+ */
112
+ getUserPbxLinkSuggestionV1(): Promise<GetUserPbxLinkSuggestionV1CommandOutput>;
113
+ getUserPbxLinkSuggestionV1(args: GetUserPbxLinkSuggestionV1CommandInput, options?: __HttpHandlerOptions): Promise<GetUserPbxLinkSuggestionV1CommandOutput>;
114
+ getUserPbxLinkSuggestionV1(args: GetUserPbxLinkSuggestionV1CommandInput, cb: (err: any, data?: GetUserPbxLinkSuggestionV1CommandOutput) => void): void;
115
+ getUserPbxLinkSuggestionV1(args: GetUserPbxLinkSuggestionV1CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserPbxLinkSuggestionV1CommandOutput) => void): void;
116
+ /**
117
+ * @see {@link GetUserSettingsCommand}
118
+ */
119
+ getUserSettings(args: GetUserSettingsCommandInput, options?: __HttpHandlerOptions): Promise<GetUserSettingsCommandOutput>;
120
+ getUserSettings(args: GetUserSettingsCommandInput, cb: (err: any, data?: GetUserSettingsCommandOutput) => void): void;
121
+ getUserSettings(args: GetUserSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserSettingsCommandOutput) => void): void;
97
122
  /**
98
123
  * @see {@link ListBotApiKeysCommand}
99
124
  */
@@ -107,6 +132,12 @@ export interface Users {
107
132
  listBots(args: ListBotsCommandInput, options?: __HttpHandlerOptions): Promise<ListBotsCommandOutput>;
108
133
  listBots(args: ListBotsCommandInput, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
109
134
  listBots(args: ListBotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
135
+ /**
136
+ * @see {@link PartialUpdateUserSettingsCommand}
137
+ */
138
+ partialUpdateUserSettings(args: PartialUpdateUserSettingsCommandInput, options?: __HttpHandlerOptions): Promise<PartialUpdateUserSettingsCommandOutput>;
139
+ partialUpdateUserSettings(args: PartialUpdateUserSettingsCommandInput, cb: (err: any, data?: PartialUpdateUserSettingsCommandOutput) => void): void;
140
+ partialUpdateUserSettings(args: PartialUpdateUserSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PartialUpdateUserSettingsCommandOutput) => void): void;
110
141
  /**
111
142
  * @see {@link QueryUserCommand}
112
143
  */
@@ -137,12 +168,24 @@ export interface Users {
137
168
  uploadPicture(args: UploadPictureCommandInput, options?: __HttpHandlerOptions): Promise<UploadPictureCommandOutput>;
138
169
  uploadPicture(args: UploadPictureCommandInput, cb: (err: any, data?: UploadPictureCommandOutput) => void): void;
139
170
  uploadPicture(args: UploadPictureCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UploadPictureCommandOutput) => void): void;
171
+ /**
172
+ * @see {@link UploadPictureV1Command}
173
+ */
174
+ uploadPictureV1(args: UploadPictureV1CommandInput, options?: __HttpHandlerOptions): Promise<UploadPictureV1CommandOutput>;
175
+ uploadPictureV1(args: UploadPictureV1CommandInput, cb: (err: any, data?: UploadPictureV1CommandOutput) => void): void;
176
+ uploadPictureV1(args: UploadPictureV1CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UploadPictureV1CommandOutput) => void): void;
140
177
  /**
141
178
  * @see {@link VerifyBotSecretKeyCommand}
142
179
  */
143
180
  verifyBotSecretKey(args: VerifyBotSecretKeyCommandInput, options?: __HttpHandlerOptions): Promise<VerifyBotSecretKeyCommandOutput>;
144
181
  verifyBotSecretKey(args: VerifyBotSecretKeyCommandInput, cb: (err: any, data?: VerifyBotSecretKeyCommandOutput) => void): void;
145
182
  verifyBotSecretKey(args: VerifyBotSecretKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: VerifyBotSecretKeyCommandOutput) => void): void;
183
+ /**
184
+ * @see {@link VerifyBotSecretKeyV1Command}
185
+ */
186
+ verifyBotSecretKeyV1(args: VerifyBotSecretKeyV1CommandInput, options?: __HttpHandlerOptions): Promise<VerifyBotSecretKeyV1CommandOutput>;
187
+ verifyBotSecretKeyV1(args: VerifyBotSecretKeyV1CommandInput, cb: (err: any, data?: VerifyBotSecretKeyV1CommandOutput) => void): void;
188
+ verifyBotSecretKeyV1(args: VerifyBotSecretKeyV1CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: VerifyBotSecretKeyV1CommandOutput) => void): void;
146
189
  }
147
190
  /**
148
191
  * @public
@@ -1,5 +1,6 @@
1
1
  import { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "./commands/BatchGetUsersCommand";
2
2
  import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "./commands/BatchGetUsersPbxLinkDataCommand";
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";
@@ -10,14 +11,19 @@ import { GetBotCommandInput, GetBotCommandOutput } from "./commands/GetBotComman
10
11
  import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
11
12
  import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
12
13
  import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
14
+ import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
15
+ import { GetUserSettingsCommandInput, GetUserSettingsCommandOutput } from "./commands/GetUserSettingsCommand";
13
16
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
14
17
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
18
+ import { PartialUpdateUserSettingsCommandInput, PartialUpdateUserSettingsCommandOutput } from "./commands/PartialUpdateUserSettingsCommand";
15
19
  import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
16
20
  import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
17
21
  import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
18
22
  import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
19
23
  import { UploadPictureCommandInput, UploadPictureCommandOutput } from "./commands/UploadPictureCommand";
24
+ import { UploadPictureV1CommandInput, UploadPictureV1CommandOutput } from "./commands/UploadPictureV1Command";
20
25
  import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
26
+ import { VerifyBotSecretKeyV1CommandInput, VerifyBotSecretKeyV1CommandOutput } from "./commands/VerifyBotSecretKeyV1Command";
21
27
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
22
28
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
23
29
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
@@ -29,11 +35,11 @@ export { __Client };
29
35
  /**
30
36
  * @public
31
37
  */
32
- export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersPbxLinkDataCommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | QueryUserCommandInput | QueryUsersCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UploadPictureCommandInput | VerifyBotSecretKeyCommandInput;
38
+ export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | GetUserSettingsCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | PartialUpdateUserSettingsCommandInput | QueryUserCommandInput | QueryUsersCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
33
39
  /**
34
40
  * @public
35
41
  */
36
- export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UploadPictureCommandOutput | VerifyBotSecretKeyCommandOutput;
42
+ export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | GetUserSettingsCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | PartialUpdateUserSettingsCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
37
43
  /**
38
44
  * @public
39
45
  */
@@ -0,0 +1,122 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
+ import { BatchGetUsersPbxLinkDataV1Input, BatchGetUsersPbxLinkDataV1Output } 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 BatchGetUsersPbxLinkDataV1Command}.
14
+ */
15
+ export interface BatchGetUsersPbxLinkDataV1CommandInput extends BatchGetUsersPbxLinkDataV1Input {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link BatchGetUsersPbxLinkDataV1Command}.
21
+ */
22
+ export interface BatchGetUsersPbxLinkDataV1CommandOutput extends BatchGetUsersPbxLinkDataV1Output, __MetadataBearer {
23
+ }
24
+ declare const BatchGetUsersPbxLinkDataV1Command_base: {
25
+ new (input: BatchGetUsersPbxLinkDataV1CommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1CommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: BatchGetUsersPbxLinkDataV1CommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1CommandOutput, 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, BatchGetUsersPbxLinkDataV1Command } from "@wildix/xbees-users-client"; // ES Modules import
36
+ * // const { UsersClient, BatchGetUsersPbxLinkDataV1Command } = require("@wildix/xbees-users-client"); // CommonJS import
37
+ * const client = new UsersClient(config);
38
+ * const input = { // BatchGetUsersPbxLinkDataV1Input
39
+ * id: [ // UsersIdList // required
40
+ * "STRING_VALUE",
41
+ * ],
42
+ * };
43
+ * const command = new BatchGetUsersPbxLinkDataV1Command(input);
44
+ * const response = await client.send(command);
45
+ * // { // BatchGetUsersPbxLinkDataV1Output
46
+ * // users: [ // UsersPbxLinkDataList // required
47
+ * // { // UserPbxLinkData
48
+ * // id: "STRING_VALUE", // required
49
+ * // company: "STRING_VALUE", // required
50
+ * // companyName: "STRING_VALUE",
51
+ * // domain: "STRING_VALUE", // required
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",
101
+ * // },
102
+ * // ],
103
+ * // };
104
+ *
105
+ * ```
106
+ *
107
+ * @param BatchGetUsersPbxLinkDataV1CommandInput - {@link BatchGetUsersPbxLinkDataV1CommandInput}
108
+ * @returns {@link BatchGetUsersPbxLinkDataV1CommandOutput}
109
+ * @see {@link BatchGetUsersPbxLinkDataV1CommandInput} for command's `input` shape.
110
+ * @see {@link BatchGetUsersPbxLinkDataV1CommandOutput} for command's `response` shape.
111
+ * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
112
+ *
113
+ * @throws {@link ForbiddenException} (client fault)
114
+ *
115
+ * @throws {@link ValidationException} (client fault)
116
+ *
117
+ * @throws {@link UsersServiceException}
118
+ * <p>Base exception class for all service exceptions from Users service.</p>
119
+ *
120
+ */
121
+ export declare class BatchGetUsersPbxLinkDataV1Command extends BatchGetUsersPbxLinkDataV1Command_base {
122
+ }