@wildix/xbees-users-client 1.0.31 → 1.0.33

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 (32) hide show
  1. package/dist-cjs/Users.js +2 -12
  2. package/dist-cjs/commands/{GetUserEmailNotificationsSettingsCommand.js → IntelligenceSearchCommand.js} +7 -7
  3. package/dist-cjs/commands/index.js +1 -6
  4. package/dist-cjs/protocols/Aws_restJson1.js +30 -176
  5. package/dist-es/Users.js +2 -12
  6. package/dist-es/commands/IntelligenceSearchCommand.js +17 -0
  7. package/dist-es/commands/index.js +1 -6
  8. package/dist-es/protocols/Aws_restJson1.js +23 -159
  9. package/dist-types/Users.d.ts +7 -42
  10. package/dist-types/UsersClient.d.ts +3 -8
  11. package/dist-types/commands/IntelligenceSearchCommand.d.ts +73 -0
  12. package/dist-types/commands/index.d.ts +1 -6
  13. package/dist-types/models/models_0.d.ts +30 -130
  14. package/dist-types/protocols/Aws_restJson1.d.ts +9 -54
  15. package/package.json +1 -1
  16. package/dist-cjs/commands/BatchGetUsersEmailNotificationsSettingsCommand.js +0 -21
  17. package/dist-cjs/commands/PartialUpdateUserEmailNotificationsSettingsCommand.js +0 -21
  18. package/dist-cjs/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.js +0 -21
  19. package/dist-cjs/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.js +0 -21
  20. package/dist-cjs/commands/UpdateUserEmailNotificationsSettingsCommand.js +0 -21
  21. package/dist-es/commands/BatchGetUsersEmailNotificationsSettingsCommand.js +0 -17
  22. package/dist-es/commands/GetUserEmailNotificationsSettingsCommand.js +0 -17
  23. package/dist-es/commands/PartialUpdateUserEmailNotificationsSettingsCommand.js +0 -17
  24. package/dist-es/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.js +0 -17
  25. package/dist-es/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.js +0 -17
  26. package/dist-es/commands/UpdateUserEmailNotificationsSettingsCommand.js +0 -17
  27. package/dist-types/commands/BatchGetUsersEmailNotificationsSettingsCommand.d.ts +0 -71
  28. package/dist-types/commands/GetUserEmailNotificationsSettingsCommand.d.ts +0 -69
  29. package/dist-types/commands/PartialUpdateUserEmailNotificationsSettingsCommand.d.ts +0 -69
  30. package/dist-types/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.d.ts +0 -63
  31. package/dist-types/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.d.ts +0 -63
  32. package/dist-types/commands/UpdateUserEmailNotificationsSettingsCommand.d.ts +0 -69
@@ -17,21 +17,6 @@ export const se_BatchGetUsersCommand = async (input, context) => {
17
17
  .b(body);
18
18
  return b.build();
19
19
  };
20
- export const se_BatchGetUsersEmailNotificationsSettingsCommand = 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-email-notifications-settings");
26
- let body;
27
- body = JSON.stringify(take(input, {
28
- 'usersIds': _ => _json(_),
29
- }));
30
- b.m("POST")
31
- .h(headers)
32
- .b(body);
33
- return b.build();
34
- };
35
20
  export const se_BatchGetUsersPbxLinkDataCommand = async (input, context) => {
36
21
  const b = rb(input, context);
37
22
  const headers = {
@@ -212,17 +197,6 @@ export const se_GetUserCommand = async (input, context) => {
212
197
  .b(body);
213
198
  return b.build();
214
199
  };
215
- export const se_GetUserEmailNotificationsSettingsCommand = async (input, context) => {
216
- const b = rb(input, context);
217
- const headers = {};
218
- b.bp("/v2/users/cloud/{userId}/notifications/email");
219
- b.p('userId', () => input.userId, '{userId}', false);
220
- let body;
221
- b.m("GET")
222
- .h(headers)
223
- .b(body);
224
- return b.build();
225
- };
226
200
  export const se_GetUserPbxLinkDataCommand = async (input, context) => {
227
201
  const b = rb(input, context);
228
202
  const headers = {};
@@ -262,13 +236,14 @@ export const se_GetUserPbxLinkSuggestionV1Command = async (input, context) => {
262
236
  .b(body);
263
237
  return b.build();
264
238
  };
265
- export const se_ListBotApiKeysCommand = async (input, context) => {
239
+ export const se_IntelligenceSearchCommand = async (input, context) => {
266
240
  const b = rb(input, context);
267
241
  const headers = {};
268
- b.bp("/v2/users/bots/{botId}/keys");
269
- b.p('botId', () => input.botId, '{botId}', false);
242
+ b.bp("/v2/users/intelligence-search");
270
243
  const query = map({
271
244
  [_c]: [, input[_c]],
245
+ [_s]: [, __expectNonNull(input[_s], `search`)],
246
+ [_eE]: [, input[_eE]],
272
247
  });
273
248
  let body;
274
249
  b.m("GET")
@@ -277,10 +252,11 @@ export const se_ListBotApiKeysCommand = async (input, context) => {
277
252
  .b(body);
278
253
  return b.build();
279
254
  };
280
- export const se_ListBotsCommand = async (input, context) => {
255
+ export const se_ListBotApiKeysCommand = async (input, context) => {
281
256
  const b = rb(input, context);
282
257
  const headers = {};
283
- b.bp("/v2/users/bots");
258
+ b.bp("/v2/users/bots/{botId}/keys");
259
+ b.p('botId', () => input.botId, '{botId}', false);
284
260
  const query = map({
285
261
  [_c]: [, input[_c]],
286
262
  });
@@ -291,20 +267,17 @@ export const se_ListBotsCommand = async (input, context) => {
291
267
  .b(body);
292
268
  return b.build();
293
269
  };
294
- export const se_PartialUpdateUserEmailNotificationsSettingsCommand = async (input, context) => {
270
+ export const se_ListBotsCommand = async (input, context) => {
295
271
  const b = rb(input, context);
296
- const headers = {
297
- 'content-type': 'application/json',
298
- };
299
- b.bp("/v2/users/cloud/{userId}/notifications/email");
300
- b.p('userId', () => input.userId, '{userId}', false);
272
+ const headers = {};
273
+ b.bp("/v2/users/bots");
274
+ const query = map({
275
+ [_c]: [, input[_c]],
276
+ });
301
277
  let body;
302
- body = JSON.stringify(take(input, {
303
- 'transcription': [],
304
- 'unread': [],
305
- }));
306
- b.m("PATCH")
278
+ b.m("GET")
307
279
  .h(headers)
280
+ .q(query)
308
281
  .b(body);
309
282
  return b.build();
310
283
  };
@@ -359,38 +332,6 @@ export const se_QueryUsersCommand = async (input, context) => {
359
332
  .b(body);
360
333
  return b.build();
361
334
  };
362
- export const se_ToggleTranscriptionEmailNotificationsSubscriptionCommand = async (input, context) => {
363
- const b = rb(input, context);
364
- const headers = {
365
- 'content-type': 'application/json',
366
- };
367
- b.bp("/v2/users/Toggle-transcription-email-notifications-subscription");
368
- let body;
369
- body = JSON.stringify(take(input, {
370
- 'subscribe': [],
371
- 'unsubscribeToken': [],
372
- }));
373
- b.m("POST")
374
- .h(headers)
375
- .b(body);
376
- return b.build();
377
- };
378
- export const se_ToggleUnreadEmailNotificationsSubscriptionCommand = async (input, context) => {
379
- const b = rb(input, context);
380
- const headers = {
381
- 'content-type': 'application/json',
382
- };
383
- b.bp("/v2/users/Toggle-unread-email-notifications-subscription");
384
- let body;
385
- body = JSON.stringify(take(input, {
386
- 'subscribe': [],
387
- 'unsubscribeToken': [],
388
- }));
389
- b.m("POST")
390
- .h(headers)
391
- .b(body);
392
- return b.build();
393
- };
394
335
  export const se_UpdateBotCommand = async (input, context) => {
395
336
  const b = rb(input, context);
396
337
  const headers = {
@@ -433,23 +374,6 @@ export const se_UpdateBotCallbackCommand = async (input, context) => {
433
374
  .b(body);
434
375
  return b.build();
435
376
  };
436
- export const se_UpdateUserEmailNotificationsSettingsCommand = async (input, context) => {
437
- const b = rb(input, context);
438
- const headers = {
439
- 'content-type': 'application/json',
440
- };
441
- b.bp("/v2/users/cloud/{userId}/notifications/email");
442
- b.p('userId', () => input.userId, '{userId}', false);
443
- let body;
444
- body = JSON.stringify(take(input, {
445
- 'transcription': [],
446
- 'unread': [],
447
- }));
448
- b.m("POST")
449
- .h(headers)
450
- .b(body);
451
- return b.build();
452
- };
453
377
  export const se_UploadPictureCommand = async (input, context) => {
454
378
  const b = rb(input, context);
455
379
  const headers = {
@@ -524,20 +448,6 @@ export const de_BatchGetUsersCommand = async (output, context) => {
524
448
  Object.assign(contents, doc);
525
449
  return contents;
526
450
  };
527
- export const de_BatchGetUsersEmailNotificationsSettingsCommand = async (output, context) => {
528
- if (output.statusCode !== 200 && output.statusCode >= 300) {
529
- return de_CommandError(output, context);
530
- }
531
- const contents = map({
532
- $metadata: deserializeMetadata(output),
533
- });
534
- const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
535
- const doc = take(data, {
536
- 'notifications': _json,
537
- });
538
- Object.assign(contents, doc);
539
- return contents;
540
- };
541
451
  export const de_BatchGetUsersPbxLinkDataCommand = async (output, context) => {
542
452
  if (output.statusCode !== 200 && output.statusCode >= 300) {
543
453
  return de_CommandError(output, context);
@@ -685,20 +595,6 @@ export const de_GetUserCommand = async (output, context) => {
685
595
  Object.assign(contents, doc);
686
596
  return contents;
687
597
  };
688
- export const de_GetUserEmailNotificationsSettingsCommand = async (output, context) => {
689
- if (output.statusCode !== 200 && output.statusCode >= 300) {
690
- return de_CommandError(output, context);
691
- }
692
- const contents = map({
693
- $metadata: deserializeMetadata(output),
694
- });
695
- const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
696
- const doc = take(data, {
697
- 'notifications': _json,
698
- });
699
- Object.assign(contents, doc);
700
- return contents;
701
- };
702
598
  export const de_GetUserPbxLinkDataCommand = async (output, context) => {
703
599
  if (output.statusCode !== 200 && output.statusCode >= 300) {
704
600
  return de_CommandError(output, context);
@@ -741,7 +637,7 @@ export const de_GetUserPbxLinkSuggestionV1Command = async (output, context) => {
741
637
  Object.assign(contents, doc);
742
638
  return contents;
743
639
  };
744
- export const de_ListBotApiKeysCommand = async (output, context) => {
640
+ export const de_IntelligenceSearchCommand = async (output, context) => {
745
641
  if (output.statusCode !== 200 && output.statusCode >= 300) {
746
642
  return de_CommandError(output, context);
747
643
  }
@@ -750,12 +646,12 @@ export const de_ListBotApiKeysCommand = async (output, context) => {
750
646
  });
751
647
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
752
648
  const doc = take(data, {
753
- 'keys': _json,
649
+ 'items': _json,
754
650
  });
755
651
  Object.assign(contents, doc);
756
652
  return contents;
757
653
  };
758
- export const de_ListBotsCommand = async (output, context) => {
654
+ export const de_ListBotApiKeysCommand = async (output, context) => {
759
655
  if (output.statusCode !== 200 && output.statusCode >= 300) {
760
656
  return de_CommandError(output, context);
761
657
  }
@@ -764,12 +660,12 @@ export const de_ListBotsCommand = async (output, context) => {
764
660
  });
765
661
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
766
662
  const doc = take(data, {
767
- 'bots': _json,
663
+ 'keys': _json,
768
664
  });
769
665
  Object.assign(contents, doc);
770
666
  return contents;
771
667
  };
772
- export const de_PartialUpdateUserEmailNotificationsSettingsCommand = async (output, context) => {
668
+ export const de_ListBotsCommand = async (output, context) => {
773
669
  if (output.statusCode !== 200 && output.statusCode >= 300) {
774
670
  return de_CommandError(output, context);
775
671
  }
@@ -778,7 +674,7 @@ export const de_PartialUpdateUserEmailNotificationsSettingsCommand = async (outp
778
674
  });
779
675
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
780
676
  const doc = take(data, {
781
- 'notifications': _json,
677
+ 'bots': _json,
782
678
  });
783
679
  Object.assign(contents, doc);
784
680
  return contents;
@@ -825,26 +721,6 @@ export const de_QueryUsersCommand = async (output, context) => {
825
721
  Object.assign(contents, doc);
826
722
  return contents;
827
723
  };
828
- export const de_ToggleTranscriptionEmailNotificationsSubscriptionCommand = async (output, context) => {
829
- if (output.statusCode !== 200 && output.statusCode >= 300) {
830
- return de_CommandError(output, context);
831
- }
832
- const contents = map({
833
- $metadata: deserializeMetadata(output),
834
- });
835
- await collectBody(output.body, context);
836
- return contents;
837
- };
838
- export const de_ToggleUnreadEmailNotificationsSubscriptionCommand = async (output, context) => {
839
- if (output.statusCode !== 200 && output.statusCode >= 300) {
840
- return de_CommandError(output, context);
841
- }
842
- const contents = map({
843
- $metadata: deserializeMetadata(output),
844
- });
845
- await collectBody(output.body, context);
846
- return contents;
847
- };
848
724
  export const de_UpdateBotCommand = async (output, context) => {
849
725
  if (output.statusCode !== 200 && output.statusCode >= 300) {
850
726
  return de_CommandError(output, context);
@@ -873,20 +749,6 @@ export const de_UpdateBotCallbackCommand = async (output, context) => {
873
749
  Object.assign(contents, doc);
874
750
  return contents;
875
751
  };
876
- export const de_UpdateUserEmailNotificationsSettingsCommand = async (output, context) => {
877
- if (output.statusCode !== 200 && output.statusCode >= 300) {
878
- return de_CommandError(output, context);
879
- }
880
- const contents = map({
881
- $metadata: deserializeMetadata(output),
882
- });
883
- const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
884
- const doc = take(data, {
885
- 'notifications': _json,
886
- });
887
- Object.assign(contents, doc);
888
- return contents;
889
- };
890
752
  export const de_UploadPictureCommand = async (output, context) => {
891
753
  if (output.statusCode !== 200 && output.statusCode >= 300) {
892
754
  return de_CommandError(output, context);
@@ -1171,6 +1033,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1171
1033
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1172
1034
  const _c = "company";
1173
1035
  const _e = "email";
1036
+ const _eE = "excludeExtension";
1037
+ const _s = "search";
1174
1038
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
1175
1039
  if (encoded.length) {
1176
1040
  return JSON.parse(encoded);
@@ -1,6 +1,5 @@
1
1
  import { UsersClient } from "./UsersClient";
2
2
  import { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "./commands/BatchGetUsersCommand";
3
- import { BatchGetUsersEmailNotificationsSettingsCommandInput, BatchGetUsersEmailNotificationsSettingsCommandOutput } from "./commands/BatchGetUsersEmailNotificationsSettingsCommand";
4
3
  import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "./commands/BatchGetUsersPbxLinkDataCommand";
5
4
  import { BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1CommandOutput } from "./commands/BatchGetUsersPbxLinkDataV1Command";
6
5
  import { ChangeUserEmailCommandInput, ChangeUserEmailCommandOutput } from "./commands/ChangeUserEmailCommand";
@@ -12,21 +11,17 @@ import { DeleteBotCommandInput, DeleteBotCommandOutput } from "./commands/Delete
12
11
  import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "./commands/GetBotCallbackCommand";
13
12
  import { GetBotCommandInput, GetBotCommandOutput } from "./commands/GetBotCommand";
14
13
  import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
15
- import { GetUserEmailNotificationsSettingsCommandInput, GetUserEmailNotificationsSettingsCommandOutput } from "./commands/GetUserEmailNotificationsSettingsCommand";
16
14
  import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
17
15
  import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
18
16
  import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
17
+ import { IntelligenceSearchCommandInput, IntelligenceSearchCommandOutput } from "./commands/IntelligenceSearchCommand";
19
18
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
20
19
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
21
- import { PartialUpdateUserEmailNotificationsSettingsCommandInput, PartialUpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/PartialUpdateUserEmailNotificationsSettingsCommand";
22
20
  import { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "./commands/QueryColleaguesCommand";
23
21
  import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
24
22
  import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
25
- import { ToggleTranscriptionEmailNotificationsSubscriptionCommandInput, ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
26
- import { ToggleUnreadEmailNotificationsSubscriptionCommandInput, ToggleUnreadEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
27
23
  import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
28
24
  import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
29
- import { UpdateUserEmailNotificationsSettingsCommandInput, UpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/UpdateUserEmailNotificationsSettingsCommand";
30
25
  import { UploadPictureCommandInput, UploadPictureCommandOutput } from "./commands/UploadPictureCommand";
31
26
  import { UploadPictureV1CommandInput, UploadPictureV1CommandOutput } from "./commands/UploadPictureV1Command";
32
27
  import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
@@ -39,12 +34,6 @@ export interface Users {
39
34
  batchGetUsers(args: BatchGetUsersCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetUsersCommandOutput>;
40
35
  batchGetUsers(args: BatchGetUsersCommandInput, cb: (err: any, data?: BatchGetUsersCommandOutput) => void): void;
41
36
  batchGetUsers(args: BatchGetUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetUsersCommandOutput) => void): void;
42
- /**
43
- * @see {@link BatchGetUsersEmailNotificationsSettingsCommand}
44
- */
45
- batchGetUsersEmailNotificationsSettings(args: BatchGetUsersEmailNotificationsSettingsCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetUsersEmailNotificationsSettingsCommandOutput>;
46
- batchGetUsersEmailNotificationsSettings(args: BatchGetUsersEmailNotificationsSettingsCommandInput, cb: (err: any, data?: BatchGetUsersEmailNotificationsSettingsCommandOutput) => void): void;
47
- batchGetUsersEmailNotificationsSettings(args: BatchGetUsersEmailNotificationsSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetUsersEmailNotificationsSettingsCommandOutput) => void): void;
48
37
  /**
49
38
  * @see {@link BatchGetUsersPbxLinkDataCommand}
50
39
  */
@@ -111,12 +100,6 @@ export interface Users {
111
100
  getUser(args: GetUserCommandInput, options?: __HttpHandlerOptions): Promise<GetUserCommandOutput>;
112
101
  getUser(args: GetUserCommandInput, cb: (err: any, data?: GetUserCommandOutput) => void): void;
113
102
  getUser(args: GetUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserCommandOutput) => void): void;
114
- /**
115
- * @see {@link GetUserEmailNotificationsSettingsCommand}
116
- */
117
- getUserEmailNotificationsSettings(args: GetUserEmailNotificationsSettingsCommandInput, options?: __HttpHandlerOptions): Promise<GetUserEmailNotificationsSettingsCommandOutput>;
118
- getUserEmailNotificationsSettings(args: GetUserEmailNotificationsSettingsCommandInput, cb: (err: any, data?: GetUserEmailNotificationsSettingsCommandOutput) => void): void;
119
- getUserEmailNotificationsSettings(args: GetUserEmailNotificationsSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserEmailNotificationsSettingsCommandOutput) => void): void;
120
103
  /**
121
104
  * @see {@link GetUserPbxLinkDataCommand}
122
105
  */
@@ -137,6 +120,12 @@ export interface Users {
137
120
  getUserPbxLinkSuggestionV1(args: GetUserPbxLinkSuggestionV1CommandInput, options?: __HttpHandlerOptions): Promise<GetUserPbxLinkSuggestionV1CommandOutput>;
138
121
  getUserPbxLinkSuggestionV1(args: GetUserPbxLinkSuggestionV1CommandInput, cb: (err: any, data?: GetUserPbxLinkSuggestionV1CommandOutput) => void): void;
139
122
  getUserPbxLinkSuggestionV1(args: GetUserPbxLinkSuggestionV1CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserPbxLinkSuggestionV1CommandOutput) => void): void;
123
+ /**
124
+ * @see {@link IntelligenceSearchCommand}
125
+ */
126
+ intelligenceSearch(args: IntelligenceSearchCommandInput, options?: __HttpHandlerOptions): Promise<IntelligenceSearchCommandOutput>;
127
+ intelligenceSearch(args: IntelligenceSearchCommandInput, cb: (err: any, data?: IntelligenceSearchCommandOutput) => void): void;
128
+ intelligenceSearch(args: IntelligenceSearchCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: IntelligenceSearchCommandOutput) => void): void;
140
129
  /**
141
130
  * @see {@link ListBotApiKeysCommand}
142
131
  */
@@ -150,12 +139,6 @@ export interface Users {
150
139
  listBots(args: ListBotsCommandInput, options?: __HttpHandlerOptions): Promise<ListBotsCommandOutput>;
151
140
  listBots(args: ListBotsCommandInput, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
152
141
  listBots(args: ListBotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
153
- /**
154
- * @see {@link PartialUpdateUserEmailNotificationsSettingsCommand}
155
- */
156
- partialUpdateUserEmailNotificationsSettings(args: PartialUpdateUserEmailNotificationsSettingsCommandInput, options?: __HttpHandlerOptions): Promise<PartialUpdateUserEmailNotificationsSettingsCommandOutput>;
157
- partialUpdateUserEmailNotificationsSettings(args: PartialUpdateUserEmailNotificationsSettingsCommandInput, cb: (err: any, data?: PartialUpdateUserEmailNotificationsSettingsCommandOutput) => void): void;
158
- partialUpdateUserEmailNotificationsSettings(args: PartialUpdateUserEmailNotificationsSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PartialUpdateUserEmailNotificationsSettingsCommandOutput) => void): void;
159
142
  /**
160
143
  * @see {@link QueryColleaguesCommand}
161
144
  */
@@ -175,18 +158,6 @@ export interface Users {
175
158
  queryUsers(args: QueryUsersCommandInput, options?: __HttpHandlerOptions): Promise<QueryUsersCommandOutput>;
176
159
  queryUsers(args: QueryUsersCommandInput, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
177
160
  queryUsers(args: QueryUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
178
- /**
179
- * @see {@link ToggleTranscriptionEmailNotificationsSubscriptionCommand}
180
- */
181
- toggleTranscriptionEmailNotificationsSubscription(args: ToggleTranscriptionEmailNotificationsSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput>;
182
- toggleTranscriptionEmailNotificationsSubscription(args: ToggleTranscriptionEmailNotificationsSubscriptionCommandInput, cb: (err: any, data?: ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput) => void): void;
183
- toggleTranscriptionEmailNotificationsSubscription(args: ToggleTranscriptionEmailNotificationsSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput) => void): void;
184
- /**
185
- * @see {@link ToggleUnreadEmailNotificationsSubscriptionCommand}
186
- */
187
- toggleUnreadEmailNotificationsSubscription(args: ToggleUnreadEmailNotificationsSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<ToggleUnreadEmailNotificationsSubscriptionCommandOutput>;
188
- toggleUnreadEmailNotificationsSubscription(args: ToggleUnreadEmailNotificationsSubscriptionCommandInput, cb: (err: any, data?: ToggleUnreadEmailNotificationsSubscriptionCommandOutput) => void): void;
189
- toggleUnreadEmailNotificationsSubscription(args: ToggleUnreadEmailNotificationsSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ToggleUnreadEmailNotificationsSubscriptionCommandOutput) => void): void;
190
161
  /**
191
162
  * @see {@link UpdateBotCommand}
192
163
  */
@@ -199,12 +170,6 @@ export interface Users {
199
170
  updateBotCallback(args: UpdateBotCallbackCommandInput, options?: __HttpHandlerOptions): Promise<UpdateBotCallbackCommandOutput>;
200
171
  updateBotCallback(args: UpdateBotCallbackCommandInput, cb: (err: any, data?: UpdateBotCallbackCommandOutput) => void): void;
201
172
  updateBotCallback(args: UpdateBotCallbackCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBotCallbackCommandOutput) => void): void;
202
- /**
203
- * @see {@link UpdateUserEmailNotificationsSettingsCommand}
204
- */
205
- updateUserEmailNotificationsSettings(args: UpdateUserEmailNotificationsSettingsCommandInput, options?: __HttpHandlerOptions): Promise<UpdateUserEmailNotificationsSettingsCommandOutput>;
206
- updateUserEmailNotificationsSettings(args: UpdateUserEmailNotificationsSettingsCommandInput, cb: (err: any, data?: UpdateUserEmailNotificationsSettingsCommandOutput) => void): void;
207
- updateUserEmailNotificationsSettings(args: UpdateUserEmailNotificationsSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateUserEmailNotificationsSettingsCommandOutput) => void): void;
208
173
  /**
209
174
  * @see {@link UploadPictureCommand}
210
175
  */
@@ -1,5 +1,4 @@
1
1
  import { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "./commands/BatchGetUsersCommand";
2
- import { BatchGetUsersEmailNotificationsSettingsCommandInput, BatchGetUsersEmailNotificationsSettingsCommandOutput } from "./commands/BatchGetUsersEmailNotificationsSettingsCommand";
3
2
  import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "./commands/BatchGetUsersPbxLinkDataCommand";
4
3
  import { BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1CommandOutput } from "./commands/BatchGetUsersPbxLinkDataV1Command";
5
4
  import { ChangeUserEmailCommandInput, ChangeUserEmailCommandOutput } from "./commands/ChangeUserEmailCommand";
@@ -11,21 +10,17 @@ import { DeleteBotCommandInput, DeleteBotCommandOutput } from "./commands/Delete
11
10
  import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "./commands/GetBotCallbackCommand";
12
11
  import { GetBotCommandInput, GetBotCommandOutput } from "./commands/GetBotCommand";
13
12
  import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
14
- import { GetUserEmailNotificationsSettingsCommandInput, GetUserEmailNotificationsSettingsCommandOutput } from "./commands/GetUserEmailNotificationsSettingsCommand";
15
13
  import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
16
14
  import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
17
15
  import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
16
+ import { IntelligenceSearchCommandInput, IntelligenceSearchCommandOutput } from "./commands/IntelligenceSearchCommand";
18
17
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
19
18
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
20
- import { PartialUpdateUserEmailNotificationsSettingsCommandInput, PartialUpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/PartialUpdateUserEmailNotificationsSettingsCommand";
21
19
  import { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "./commands/QueryColleaguesCommand";
22
20
  import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
23
21
  import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
24
- import { ToggleTranscriptionEmailNotificationsSubscriptionCommandInput, ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
25
- import { ToggleUnreadEmailNotificationsSubscriptionCommandInput, ToggleUnreadEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
26
22
  import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
27
23
  import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
28
- import { UpdateUserEmailNotificationsSettingsCommandInput, UpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/UpdateUserEmailNotificationsSettingsCommand";
29
24
  import { UploadPictureCommandInput, UploadPictureCommandOutput } from "./commands/UploadPictureCommand";
30
25
  import { UploadPictureV1CommandInput, UploadPictureV1CommandOutput } from "./commands/UploadPictureV1Command";
31
26
  import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
@@ -41,11 +36,11 @@ export { __Client };
41
36
  /**
42
37
  * @public
43
38
  */
44
- export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersEmailNotificationsSettingsCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | CreateSystemBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserEmailNotificationsSettingsCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | PartialUpdateUserEmailNotificationsSettingsCommandInput | QueryColleaguesCommandInput | QueryUserCommandInput | QueryUsersCommandInput | ToggleTranscriptionEmailNotificationsSubscriptionCommandInput | ToggleUnreadEmailNotificationsSubscriptionCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UpdateUserEmailNotificationsSettingsCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
39
+ export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | CreateSystemBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | IntelligenceSearchCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | QueryColleaguesCommandInput | QueryUserCommandInput | QueryUsersCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
45
40
  /**
46
41
  * @public
47
42
  */
48
- export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersEmailNotificationsSettingsCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | CreateSystemBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserEmailNotificationsSettingsCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | PartialUpdateUserEmailNotificationsSettingsCommandOutput | QueryColleaguesCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput | ToggleUnreadEmailNotificationsSubscriptionCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UpdateUserEmailNotificationsSettingsCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
43
+ export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | CreateSystemBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | IntelligenceSearchCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | QueryColleaguesCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
49
44
  /**
50
45
  * @public
51
46
  */
@@ -0,0 +1,73 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
+ import { IntelligenceSearchInput, IntelligenceSearchOutput } 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 IntelligenceSearchCommand}.
14
+ */
15
+ export interface IntelligenceSearchCommandInput extends IntelligenceSearchInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link IntelligenceSearchCommand}.
21
+ */
22
+ export interface IntelligenceSearchCommandOutput extends IntelligenceSearchOutput, __MetadataBearer {
23
+ }
24
+ declare const IntelligenceSearchCommand_base: {
25
+ new (input: IntelligenceSearchCommandInput): import("@smithy/smithy-client").CommandImpl<IntelligenceSearchCommandInput, IntelligenceSearchCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: IntelligenceSearchCommandInput): import("@smithy/smithy-client").CommandImpl<IntelligenceSearchCommandInput, IntelligenceSearchCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Search user in the directory using AI. Result is sorted by relevance.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { UsersClient, IntelligenceSearchCommand } from "@wildix/xbees-users-client"; // ES Modules import
35
+ * // const { UsersClient, IntelligenceSearchCommand } = require("@wildix/xbees-users-client"); // CommonJS import
36
+ * const client = new UsersClient(config);
37
+ * const input = { // IntelligenceSearchInput
38
+ * company: "STRING_VALUE",
39
+ * search: "STRING_VALUE", // required
40
+ * excludeExtension: "STRING_VALUE",
41
+ * };
42
+ * const command = new IntelligenceSearchCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // IntelligenceSearchOutput
45
+ * // items: [ // DirectoryItems // required
46
+ * // { // DirectoryItem
47
+ * // extension: "STRING_VALUE",
48
+ * // name: "STRING_VALUE",
49
+ * // department: "STRING_VALUE",
50
+ * // group: "STRING_VALUE",
51
+ * // },
52
+ * // ],
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param IntelligenceSearchCommandInput - {@link IntelligenceSearchCommandInput}
58
+ * @returns {@link IntelligenceSearchCommandOutput}
59
+ * @see {@link IntelligenceSearchCommandInput} for command's `input` shape.
60
+ * @see {@link IntelligenceSearchCommandOutput} for command's `response` shape.
61
+ * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
62
+ *
63
+ * @throws {@link ForbiddenException} (client fault)
64
+ *
65
+ * @throws {@link ValidationException} (client fault)
66
+ *
67
+ * @throws {@link UsersServiceException}
68
+ * <p>Base exception class for all service exceptions from Users service.</p>
69
+ *
70
+ * @public
71
+ */
72
+ export declare class IntelligenceSearchCommand extends IntelligenceSearchCommand_base {
73
+ }
@@ -1,5 +1,4 @@
1
1
  export * from "./BatchGetUsersCommand";
2
- export * from "./BatchGetUsersEmailNotificationsSettingsCommand";
3
2
  export * from "./BatchGetUsersPbxLinkDataCommand";
4
3
  export * from "./BatchGetUsersPbxLinkDataV1Command";
5
4
  export * from "./ChangeUserEmailCommand";
@@ -11,21 +10,17 @@ export * from "./DeleteBotApiKeyCommand";
11
10
  export * from "./GetBotCommand";
12
11
  export * from "./GetBotCallbackCommand";
13
12
  export * from "./GetUserCommand";
14
- export * from "./GetUserEmailNotificationsSettingsCommand";
15
13
  export * from "./GetUserPbxLinkDataCommand";
16
14
  export * from "./GetUserPbxLinkSuggestionCommand";
17
15
  export * from "./GetUserPbxLinkSuggestionV1Command";
16
+ export * from "./IntelligenceSearchCommand";
18
17
  export * from "./ListBotApiKeysCommand";
19
18
  export * from "./ListBotsCommand";
20
- export * from "./PartialUpdateUserEmailNotificationsSettingsCommand";
21
19
  export * from "./QueryColleaguesCommand";
22
20
  export * from "./QueryUserCommand";
23
21
  export * from "./QueryUsersCommand";
24
- export * from "./ToggleTranscriptionEmailNotificationsSubscriptionCommand";
25
- export * from "./ToggleUnreadEmailNotificationsSubscriptionCommand";
26
22
  export * from "./UpdateBotCommand";
27
23
  export * from "./UpdateBotCallbackCommand";
28
- export * from "./UpdateUserEmailNotificationsSettingsCommand";
29
24
  export * from "./UploadPictureCommand";
30
25
  export * from "./UploadPictureV1Command";
31
26
  export * from "./VerifyBotSecretKeyCommand";