@wildix/xbees-users-client 1.0.32 → 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
package/dist-cjs/Users.js CHANGED
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Users = void 0;
4
4
  const UsersClient_1 = require("./UsersClient");
5
5
  const BatchGetUsersCommand_1 = require("./commands/BatchGetUsersCommand");
6
- const BatchGetUsersEmailNotificationsSettingsCommand_1 = require("./commands/BatchGetUsersEmailNotificationsSettingsCommand");
7
6
  const BatchGetUsersPbxLinkDataCommand_1 = require("./commands/BatchGetUsersPbxLinkDataCommand");
8
7
  const BatchGetUsersPbxLinkDataV1Command_1 = require("./commands/BatchGetUsersPbxLinkDataV1Command");
9
8
  const ChangeUserEmailCommand_1 = require("./commands/ChangeUserEmailCommand");
@@ -15,21 +14,17 @@ const DeleteBotCommand_1 = require("./commands/DeleteBotCommand");
15
14
  const GetBotCallbackCommand_1 = require("./commands/GetBotCallbackCommand");
16
15
  const GetBotCommand_1 = require("./commands/GetBotCommand");
17
16
  const GetUserCommand_1 = require("./commands/GetUserCommand");
18
- const GetUserEmailNotificationsSettingsCommand_1 = require("./commands/GetUserEmailNotificationsSettingsCommand");
19
17
  const GetUserPbxLinkDataCommand_1 = require("./commands/GetUserPbxLinkDataCommand");
20
18
  const GetUserPbxLinkSuggestionCommand_1 = require("./commands/GetUserPbxLinkSuggestionCommand");
21
19
  const GetUserPbxLinkSuggestionV1Command_1 = require("./commands/GetUserPbxLinkSuggestionV1Command");
20
+ const IntelligenceSearchCommand_1 = require("./commands/IntelligenceSearchCommand");
22
21
  const ListBotApiKeysCommand_1 = require("./commands/ListBotApiKeysCommand");
23
22
  const ListBotsCommand_1 = require("./commands/ListBotsCommand");
24
- const PartialUpdateUserEmailNotificationsSettingsCommand_1 = require("./commands/PartialUpdateUserEmailNotificationsSettingsCommand");
25
23
  const QueryColleaguesCommand_1 = require("./commands/QueryColleaguesCommand");
26
24
  const QueryUserCommand_1 = require("./commands/QueryUserCommand");
27
25
  const QueryUsersCommand_1 = require("./commands/QueryUsersCommand");
28
- const ToggleTranscriptionEmailNotificationsSubscriptionCommand_1 = require("./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand");
29
- const ToggleUnreadEmailNotificationsSubscriptionCommand_1 = require("./commands/ToggleUnreadEmailNotificationsSubscriptionCommand");
30
26
  const UpdateBotCallbackCommand_1 = require("./commands/UpdateBotCallbackCommand");
31
27
  const UpdateBotCommand_1 = require("./commands/UpdateBotCommand");
32
- const UpdateUserEmailNotificationsSettingsCommand_1 = require("./commands/UpdateUserEmailNotificationsSettingsCommand");
33
28
  const UploadPictureCommand_1 = require("./commands/UploadPictureCommand");
34
29
  const UploadPictureV1Command_1 = require("./commands/UploadPictureV1Command");
35
30
  const VerifyBotSecretKeyCommand_1 = require("./commands/VerifyBotSecretKeyCommand");
@@ -37,7 +32,6 @@ const VerifyBotSecretKeyV1Command_1 = require("./commands/VerifyBotSecretKeyV1Co
37
32
  const smithy_client_1 = require("@smithy/smithy-client");
38
33
  const commands = {
39
34
  BatchGetUsersCommand: BatchGetUsersCommand_1.BatchGetUsersCommand,
40
- BatchGetUsersEmailNotificationsSettingsCommand: BatchGetUsersEmailNotificationsSettingsCommand_1.BatchGetUsersEmailNotificationsSettingsCommand,
41
35
  BatchGetUsersPbxLinkDataCommand: BatchGetUsersPbxLinkDataCommand_1.BatchGetUsersPbxLinkDataCommand,
42
36
  BatchGetUsersPbxLinkDataV1Command: BatchGetUsersPbxLinkDataV1Command_1.BatchGetUsersPbxLinkDataV1Command,
43
37
  ChangeUserEmailCommand: ChangeUserEmailCommand_1.ChangeUserEmailCommand,
@@ -49,21 +43,17 @@ const commands = {
49
43
  GetBotCommand: GetBotCommand_1.GetBotCommand,
50
44
  GetBotCallbackCommand: GetBotCallbackCommand_1.GetBotCallbackCommand,
51
45
  GetUserCommand: GetUserCommand_1.GetUserCommand,
52
- GetUserEmailNotificationsSettingsCommand: GetUserEmailNotificationsSettingsCommand_1.GetUserEmailNotificationsSettingsCommand,
53
46
  GetUserPbxLinkDataCommand: GetUserPbxLinkDataCommand_1.GetUserPbxLinkDataCommand,
54
47
  GetUserPbxLinkSuggestionCommand: GetUserPbxLinkSuggestionCommand_1.GetUserPbxLinkSuggestionCommand,
55
48
  GetUserPbxLinkSuggestionV1Command: GetUserPbxLinkSuggestionV1Command_1.GetUserPbxLinkSuggestionV1Command,
49
+ IntelligenceSearchCommand: IntelligenceSearchCommand_1.IntelligenceSearchCommand,
56
50
  ListBotApiKeysCommand: ListBotApiKeysCommand_1.ListBotApiKeysCommand,
57
51
  ListBotsCommand: ListBotsCommand_1.ListBotsCommand,
58
- PartialUpdateUserEmailNotificationsSettingsCommand: PartialUpdateUserEmailNotificationsSettingsCommand_1.PartialUpdateUserEmailNotificationsSettingsCommand,
59
52
  QueryColleaguesCommand: QueryColleaguesCommand_1.QueryColleaguesCommand,
60
53
  QueryUserCommand: QueryUserCommand_1.QueryUserCommand,
61
54
  QueryUsersCommand: QueryUsersCommand_1.QueryUsersCommand,
62
- ToggleTranscriptionEmailNotificationsSubscriptionCommand: ToggleTranscriptionEmailNotificationsSubscriptionCommand_1.ToggleTranscriptionEmailNotificationsSubscriptionCommand,
63
- ToggleUnreadEmailNotificationsSubscriptionCommand: ToggleUnreadEmailNotificationsSubscriptionCommand_1.ToggleUnreadEmailNotificationsSubscriptionCommand,
64
55
  UpdateBotCommand: UpdateBotCommand_1.UpdateBotCommand,
65
56
  UpdateBotCallbackCommand: UpdateBotCallbackCommand_1.UpdateBotCallbackCommand,
66
- UpdateUserEmailNotificationsSettingsCommand: UpdateUserEmailNotificationsSettingsCommand_1.UpdateUserEmailNotificationsSettingsCommand,
67
57
  UploadPictureCommand: UploadPictureCommand_1.UploadPictureCommand,
68
58
  UploadPictureV1Command: UploadPictureV1Command_1.UploadPictureV1Command,
69
59
  VerifyBotSecretKeyCommand: VerifyBotSecretKeyCommand_1.VerifyBotSecretKeyCommand,
@@ -1,21 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetUserEmailNotificationsSettingsCommand = exports.$Command = void 0;
3
+ exports.IntelligenceSearchCommand = exports.$Command = void 0;
4
4
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- class GetUserEmailNotificationsSettingsCommand extends smithy_client_1.Command.classBuilder()
8
+ class IntelligenceSearchCommand extends smithy_client_1.Command.classBuilder()
9
9
  .m(function (Command, cs, config, o) {
10
10
  return [
11
11
  (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
12
  ];
13
13
  })
14
- .s("Users", "GetUserEmailNotificationsSettings", {})
15
- .n("UsersClient", "GetUserEmailNotificationsSettingsCommand")
14
+ .s("Users", "IntelligenceSearch", {})
15
+ .n("UsersClient", "IntelligenceSearchCommand")
16
16
  .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_GetUserEmailNotificationsSettingsCommand)
18
- .de(Aws_restJson1_1.de_GetUserEmailNotificationsSettingsCommand)
17
+ .ser(Aws_restJson1_1.se_IntelligenceSearchCommand)
18
+ .de(Aws_restJson1_1.de_IntelligenceSearchCommand)
19
19
  .build() {
20
20
  }
21
- exports.GetUserEmailNotificationsSettingsCommand = GetUserEmailNotificationsSettingsCommand;
21
+ exports.IntelligenceSearchCommand = IntelligenceSearchCommand;
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./BatchGetUsersCommand"), exports);
5
- tslib_1.__exportStar(require("./BatchGetUsersEmailNotificationsSettingsCommand"), exports);
6
5
  tslib_1.__exportStar(require("./BatchGetUsersPbxLinkDataCommand"), exports);
7
6
  tslib_1.__exportStar(require("./BatchGetUsersPbxLinkDataV1Command"), exports);
8
7
  tslib_1.__exportStar(require("./ChangeUserEmailCommand"), exports);
@@ -14,21 +13,17 @@ tslib_1.__exportStar(require("./DeleteBotApiKeyCommand"), exports);
14
13
  tslib_1.__exportStar(require("./GetBotCommand"), exports);
15
14
  tslib_1.__exportStar(require("./GetBotCallbackCommand"), exports);
16
15
  tslib_1.__exportStar(require("./GetUserCommand"), exports);
17
- tslib_1.__exportStar(require("./GetUserEmailNotificationsSettingsCommand"), exports);
18
16
  tslib_1.__exportStar(require("./GetUserPbxLinkDataCommand"), exports);
19
17
  tslib_1.__exportStar(require("./GetUserPbxLinkSuggestionCommand"), exports);
20
18
  tslib_1.__exportStar(require("./GetUserPbxLinkSuggestionV1Command"), exports);
19
+ tslib_1.__exportStar(require("./IntelligenceSearchCommand"), exports);
21
20
  tslib_1.__exportStar(require("./ListBotApiKeysCommand"), exports);
22
21
  tslib_1.__exportStar(require("./ListBotsCommand"), exports);
23
- tslib_1.__exportStar(require("./PartialUpdateUserEmailNotificationsSettingsCommand"), exports);
24
22
  tslib_1.__exportStar(require("./QueryColleaguesCommand"), exports);
25
23
  tslib_1.__exportStar(require("./QueryUserCommand"), exports);
26
24
  tslib_1.__exportStar(require("./QueryUsersCommand"), exports);
27
- tslib_1.__exportStar(require("./ToggleTranscriptionEmailNotificationsSubscriptionCommand"), exports);
28
- tslib_1.__exportStar(require("./ToggleUnreadEmailNotificationsSubscriptionCommand"), exports);
29
25
  tslib_1.__exportStar(require("./UpdateBotCommand"), exports);
30
26
  tslib_1.__exportStar(require("./UpdateBotCallbackCommand"), exports);
31
- tslib_1.__exportStar(require("./UpdateUserEmailNotificationsSettingsCommand"), exports);
32
27
  tslib_1.__exportStar(require("./UploadPictureCommand"), exports);
33
28
  tslib_1.__exportStar(require("./UploadPictureV1Command"), exports);
34
29
  tslib_1.__exportStar(require("./VerifyBotSecretKeyCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_ListBotApiKeysCommand = exports.de_GetUserPbxLinkSuggestionV1Command = exports.de_GetUserPbxLinkSuggestionCommand = exports.de_GetUserPbxLinkDataCommand = exports.de_GetUserEmailNotificationsSettingsCommand = exports.de_GetUserCommand = exports.de_GetBotCallbackCommand = exports.de_GetBotCommand = exports.de_DeleteBotApiKeyCommand = exports.de_DeleteBotCommand = exports.de_CreateSystemBotCommand = exports.de_CreateBotApiKeyCommand = exports.de_CreateBotCommand = exports.de_ChangeUserEmailCommand = exports.de_BatchGetUsersPbxLinkDataV1Command = exports.de_BatchGetUsersPbxLinkDataCommand = exports.de_BatchGetUsersEmailNotificationsSettingsCommand = exports.de_BatchGetUsersCommand = exports.se_VerifyBotSecretKeyV1Command = exports.se_VerifyBotSecretKeyCommand = exports.se_UploadPictureV1Command = exports.se_UploadPictureCommand = exports.se_UpdateUserEmailNotificationsSettingsCommand = exports.se_UpdateBotCallbackCommand = exports.se_UpdateBotCommand = exports.se_ToggleUnreadEmailNotificationsSubscriptionCommand = exports.se_ToggleTranscriptionEmailNotificationsSubscriptionCommand = exports.se_QueryUsersCommand = exports.se_QueryUserCommand = exports.se_QueryColleaguesCommand = exports.se_PartialUpdateUserEmailNotificationsSettingsCommand = exports.se_ListBotsCommand = exports.se_ListBotApiKeysCommand = exports.se_GetUserPbxLinkSuggestionV1Command = exports.se_GetUserPbxLinkSuggestionCommand = exports.se_GetUserPbxLinkDataCommand = exports.se_GetUserEmailNotificationsSettingsCommand = exports.se_GetUserCommand = exports.se_GetBotCallbackCommand = exports.se_GetBotCommand = exports.se_DeleteBotApiKeyCommand = exports.se_DeleteBotCommand = exports.se_CreateSystemBotCommand = exports.se_CreateBotApiKeyCommand = exports.se_CreateBotCommand = exports.se_ChangeUserEmailCommand = exports.se_BatchGetUsersPbxLinkDataV1Command = exports.se_BatchGetUsersPbxLinkDataCommand = exports.se_BatchGetUsersEmailNotificationsSettingsCommand = exports.se_BatchGetUsersCommand = void 0;
4
- exports.de_VerifyBotSecretKeyV1Command = exports.de_VerifyBotSecretKeyCommand = exports.de_UploadPictureV1Command = exports.de_UploadPictureCommand = exports.de_UpdateUserEmailNotificationsSettingsCommand = exports.de_UpdateBotCallbackCommand = exports.de_UpdateBotCommand = exports.de_ToggleUnreadEmailNotificationsSubscriptionCommand = exports.de_ToggleTranscriptionEmailNotificationsSubscriptionCommand = exports.de_QueryUsersCommand = exports.de_QueryUserCommand = exports.de_QueryColleaguesCommand = exports.de_PartialUpdateUserEmailNotificationsSettingsCommand = exports.de_ListBotsCommand = void 0;
3
+ exports.de_UpdateBotCallbackCommand = exports.de_UpdateBotCommand = exports.de_QueryUsersCommand = exports.de_QueryUserCommand = exports.de_QueryColleaguesCommand = exports.de_ListBotsCommand = exports.de_ListBotApiKeysCommand = exports.de_IntelligenceSearchCommand = exports.de_GetUserPbxLinkSuggestionV1Command = exports.de_GetUserPbxLinkSuggestionCommand = exports.de_GetUserPbxLinkDataCommand = exports.de_GetUserCommand = exports.de_GetBotCallbackCommand = exports.de_GetBotCommand = exports.de_DeleteBotApiKeyCommand = exports.de_DeleteBotCommand = exports.de_CreateSystemBotCommand = exports.de_CreateBotApiKeyCommand = exports.de_CreateBotCommand = exports.de_ChangeUserEmailCommand = exports.de_BatchGetUsersPbxLinkDataV1Command = exports.de_BatchGetUsersPbxLinkDataCommand = exports.de_BatchGetUsersCommand = exports.se_VerifyBotSecretKeyV1Command = exports.se_VerifyBotSecretKeyCommand = exports.se_UploadPictureV1Command = exports.se_UploadPictureCommand = exports.se_UpdateBotCallbackCommand = exports.se_UpdateBotCommand = exports.se_QueryUsersCommand = exports.se_QueryUserCommand = exports.se_QueryColleaguesCommand = exports.se_ListBotsCommand = exports.se_ListBotApiKeysCommand = exports.se_IntelligenceSearchCommand = exports.se_GetUserPbxLinkSuggestionV1Command = exports.se_GetUserPbxLinkSuggestionCommand = exports.se_GetUserPbxLinkDataCommand = exports.se_GetUserCommand = exports.se_GetBotCallbackCommand = exports.se_GetBotCommand = exports.se_DeleteBotApiKeyCommand = exports.se_DeleteBotCommand = exports.se_CreateSystemBotCommand = exports.se_CreateBotApiKeyCommand = exports.se_CreateBotCommand = exports.se_ChangeUserEmailCommand = exports.se_BatchGetUsersPbxLinkDataV1Command = exports.se_BatchGetUsersPbxLinkDataCommand = exports.se_BatchGetUsersCommand = void 0;
4
+ exports.de_VerifyBotSecretKeyV1Command = exports.de_VerifyBotSecretKeyCommand = exports.de_UploadPictureV1Command = exports.de_UploadPictureCommand = void 0;
5
5
  const UsersServiceException_1 = require("../models/UsersServiceException");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const core_1 = require("@smithy/core");
@@ -22,22 +22,6 @@ const se_BatchGetUsersCommand = async (input, context) => {
22
22
  return b.build();
23
23
  };
24
24
  exports.se_BatchGetUsersCommand = se_BatchGetUsersCommand;
25
- const se_BatchGetUsersEmailNotificationsSettingsCommand = async (input, context) => {
26
- const b = (0, core_1.requestBuilder)(input, context);
27
- const headers = {
28
- 'content-type': 'application/json',
29
- };
30
- b.bp("/v2/users/batch-get-users-email-notifications-settings");
31
- let body;
32
- body = JSON.stringify((0, smithy_client_1.take)(input, {
33
- 'usersIds': _ => (0, smithy_client_1._json)(_),
34
- }));
35
- b.m("POST")
36
- .h(headers)
37
- .b(body);
38
- return b.build();
39
- };
40
- exports.se_BatchGetUsersEmailNotificationsSettingsCommand = se_BatchGetUsersEmailNotificationsSettingsCommand;
41
25
  const se_BatchGetUsersPbxLinkDataCommand = async (input, context) => {
42
26
  const b = (0, core_1.requestBuilder)(input, context);
43
27
  const headers = {
@@ -229,18 +213,6 @@ const se_GetUserCommand = async (input, context) => {
229
213
  return b.build();
230
214
  };
231
215
  exports.se_GetUserCommand = se_GetUserCommand;
232
- const se_GetUserEmailNotificationsSettingsCommand = async (input, context) => {
233
- const b = (0, core_1.requestBuilder)(input, context);
234
- const headers = {};
235
- b.bp("/v2/users/cloud/{userId}/notifications/email");
236
- b.p('userId', () => input.userId, '{userId}', false);
237
- let body;
238
- b.m("GET")
239
- .h(headers)
240
- .b(body);
241
- return b.build();
242
- };
243
- exports.se_GetUserEmailNotificationsSettingsCommand = se_GetUserEmailNotificationsSettingsCommand;
244
216
  const se_GetUserPbxLinkDataCommand = async (input, context) => {
245
217
  const b = (0, core_1.requestBuilder)(input, context);
246
218
  const headers = {};
@@ -283,6 +255,23 @@ const se_GetUserPbxLinkSuggestionV1Command = async (input, context) => {
283
255
  return b.build();
284
256
  };
285
257
  exports.se_GetUserPbxLinkSuggestionV1Command = se_GetUserPbxLinkSuggestionV1Command;
258
+ const se_IntelligenceSearchCommand = async (input, context) => {
259
+ const b = (0, core_1.requestBuilder)(input, context);
260
+ const headers = {};
261
+ b.bp("/v2/users/intelligence-search");
262
+ const query = (0, smithy_client_1.map)({
263
+ [_c]: [, input[_c]],
264
+ [_s]: [, (0, smithy_client_1.expectNonNull)(input[_s], `search`)],
265
+ [_eE]: [, input[_eE]],
266
+ });
267
+ let body;
268
+ b.m("GET")
269
+ .h(headers)
270
+ .q(query)
271
+ .b(body);
272
+ return b.build();
273
+ };
274
+ exports.se_IntelligenceSearchCommand = se_IntelligenceSearchCommand;
286
275
  const se_ListBotApiKeysCommand = async (input, context) => {
287
276
  const b = (0, core_1.requestBuilder)(input, context);
288
277
  const headers = {};
@@ -314,24 +303,6 @@ const se_ListBotsCommand = async (input, context) => {
314
303
  return b.build();
315
304
  };
316
305
  exports.se_ListBotsCommand = se_ListBotsCommand;
317
- const se_PartialUpdateUserEmailNotificationsSettingsCommand = async (input, context) => {
318
- const b = (0, core_1.requestBuilder)(input, context);
319
- const headers = {
320
- 'content-type': 'application/json',
321
- };
322
- b.bp("/v2/users/cloud/{userId}/notifications/email");
323
- b.p('userId', () => input.userId, '{userId}', false);
324
- let body;
325
- body = JSON.stringify((0, smithy_client_1.take)(input, {
326
- 'transcription': [],
327
- 'unread': [],
328
- }));
329
- b.m("PATCH")
330
- .h(headers)
331
- .b(body);
332
- return b.build();
333
- };
334
- exports.se_PartialUpdateUserEmailNotificationsSettingsCommand = se_PartialUpdateUserEmailNotificationsSettingsCommand;
335
306
  const se_QueryColleaguesCommand = async (input, context) => {
336
307
  const b = (0, core_1.requestBuilder)(input, context);
337
308
  const headers = {
@@ -386,40 +357,6 @@ const se_QueryUsersCommand = async (input, context) => {
386
357
  return b.build();
387
358
  };
388
359
  exports.se_QueryUsersCommand = se_QueryUsersCommand;
389
- const se_ToggleTranscriptionEmailNotificationsSubscriptionCommand = async (input, context) => {
390
- const b = (0, core_1.requestBuilder)(input, context);
391
- const headers = {
392
- 'content-type': 'application/json',
393
- };
394
- b.bp("/v2/users/toggle-transcription-email-notifications-subscription");
395
- let body;
396
- body = JSON.stringify((0, smithy_client_1.take)(input, {
397
- 'subscribe': [],
398
- 'unsubscribeToken': [],
399
- }));
400
- b.m("POST")
401
- .h(headers)
402
- .b(body);
403
- return b.build();
404
- };
405
- exports.se_ToggleTranscriptionEmailNotificationsSubscriptionCommand = se_ToggleTranscriptionEmailNotificationsSubscriptionCommand;
406
- const se_ToggleUnreadEmailNotificationsSubscriptionCommand = async (input, context) => {
407
- const b = (0, core_1.requestBuilder)(input, context);
408
- const headers = {
409
- 'content-type': 'application/json',
410
- };
411
- b.bp("/v2/users/toggle-unread-email-notifications-subscription");
412
- let body;
413
- body = JSON.stringify((0, smithy_client_1.take)(input, {
414
- 'subscribe': [],
415
- 'unsubscribeToken': [],
416
- }));
417
- b.m("POST")
418
- .h(headers)
419
- .b(body);
420
- return b.build();
421
- };
422
- exports.se_ToggleUnreadEmailNotificationsSubscriptionCommand = se_ToggleUnreadEmailNotificationsSubscriptionCommand;
423
360
  const se_UpdateBotCommand = async (input, context) => {
424
361
  const b = (0, core_1.requestBuilder)(input, context);
425
362
  const headers = {
@@ -464,24 +401,6 @@ const se_UpdateBotCallbackCommand = async (input, context) => {
464
401
  return b.build();
465
402
  };
466
403
  exports.se_UpdateBotCallbackCommand = se_UpdateBotCallbackCommand;
467
- const se_UpdateUserEmailNotificationsSettingsCommand = async (input, context) => {
468
- const b = (0, core_1.requestBuilder)(input, context);
469
- const headers = {
470
- 'content-type': 'application/json',
471
- };
472
- b.bp("/v2/users/cloud/{userId}/notifications/email");
473
- b.p('userId', () => input.userId, '{userId}', false);
474
- let body;
475
- body = JSON.stringify((0, smithy_client_1.take)(input, {
476
- 'transcription': [],
477
- 'unread': [],
478
- }));
479
- b.m("POST")
480
- .h(headers)
481
- .b(body);
482
- return b.build();
483
- };
484
- exports.se_UpdateUserEmailNotificationsSettingsCommand = se_UpdateUserEmailNotificationsSettingsCommand;
485
404
  const se_UploadPictureCommand = async (input, context) => {
486
405
  const b = (0, core_1.requestBuilder)(input, context);
487
406
  const headers = {
@@ -561,21 +480,6 @@ const de_BatchGetUsersCommand = async (output, context) => {
561
480
  return contents;
562
481
  };
563
482
  exports.de_BatchGetUsersCommand = de_BatchGetUsersCommand;
564
- const de_BatchGetUsersEmailNotificationsSettingsCommand = async (output, context) => {
565
- if (output.statusCode !== 200 && output.statusCode >= 300) {
566
- return de_CommandError(output, context);
567
- }
568
- const contents = (0, smithy_client_1.map)({
569
- $metadata: deserializeMetadata(output),
570
- });
571
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
572
- const doc = (0, smithy_client_1.take)(data, {
573
- 'notifications': smithy_client_1._json,
574
- });
575
- Object.assign(contents, doc);
576
- return contents;
577
- };
578
- exports.de_BatchGetUsersEmailNotificationsSettingsCommand = de_BatchGetUsersEmailNotificationsSettingsCommand;
579
483
  const de_BatchGetUsersPbxLinkDataCommand = async (output, context) => {
580
484
  if (output.statusCode !== 200 && output.statusCode >= 300) {
581
485
  return de_CommandError(output, context);
@@ -734,21 +638,6 @@ const de_GetUserCommand = async (output, context) => {
734
638
  return contents;
735
639
  };
736
640
  exports.de_GetUserCommand = de_GetUserCommand;
737
- const de_GetUserEmailNotificationsSettingsCommand = async (output, context) => {
738
- if (output.statusCode !== 200 && output.statusCode >= 300) {
739
- return de_CommandError(output, context);
740
- }
741
- const contents = (0, smithy_client_1.map)({
742
- $metadata: deserializeMetadata(output),
743
- });
744
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
745
- const doc = (0, smithy_client_1.take)(data, {
746
- 'notifications': smithy_client_1._json,
747
- });
748
- Object.assign(contents, doc);
749
- return contents;
750
- };
751
- exports.de_GetUserEmailNotificationsSettingsCommand = de_GetUserEmailNotificationsSettingsCommand;
752
641
  const de_GetUserPbxLinkDataCommand = async (output, context) => {
753
642
  if (output.statusCode !== 200 && output.statusCode >= 300) {
754
643
  return de_CommandError(output, context);
@@ -794,7 +683,7 @@ const de_GetUserPbxLinkSuggestionV1Command = async (output, context) => {
794
683
  return contents;
795
684
  };
796
685
  exports.de_GetUserPbxLinkSuggestionV1Command = de_GetUserPbxLinkSuggestionV1Command;
797
- const de_ListBotApiKeysCommand = async (output, context) => {
686
+ const de_IntelligenceSearchCommand = async (output, context) => {
798
687
  if (output.statusCode !== 200 && output.statusCode >= 300) {
799
688
  return de_CommandError(output, context);
800
689
  }
@@ -803,13 +692,13 @@ const de_ListBotApiKeysCommand = async (output, context) => {
803
692
  });
804
693
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
805
694
  const doc = (0, smithy_client_1.take)(data, {
806
- 'keys': smithy_client_1._json,
695
+ 'items': smithy_client_1._json,
807
696
  });
808
697
  Object.assign(contents, doc);
809
698
  return contents;
810
699
  };
811
- exports.de_ListBotApiKeysCommand = de_ListBotApiKeysCommand;
812
- const de_ListBotsCommand = async (output, context) => {
700
+ exports.de_IntelligenceSearchCommand = de_IntelligenceSearchCommand;
701
+ const de_ListBotApiKeysCommand = async (output, context) => {
813
702
  if (output.statusCode !== 200 && output.statusCode >= 300) {
814
703
  return de_CommandError(output, context);
815
704
  }
@@ -818,13 +707,13 @@ const de_ListBotsCommand = async (output, context) => {
818
707
  });
819
708
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
820
709
  const doc = (0, smithy_client_1.take)(data, {
821
- 'bots': smithy_client_1._json,
710
+ 'keys': smithy_client_1._json,
822
711
  });
823
712
  Object.assign(contents, doc);
824
713
  return contents;
825
714
  };
826
- exports.de_ListBotsCommand = de_ListBotsCommand;
827
- const de_PartialUpdateUserEmailNotificationsSettingsCommand = async (output, context) => {
715
+ exports.de_ListBotApiKeysCommand = de_ListBotApiKeysCommand;
716
+ const de_ListBotsCommand = async (output, context) => {
828
717
  if (output.statusCode !== 200 && output.statusCode >= 300) {
829
718
  return de_CommandError(output, context);
830
719
  }
@@ -833,12 +722,12 @@ const de_PartialUpdateUserEmailNotificationsSettingsCommand = async (output, con
833
722
  });
834
723
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
835
724
  const doc = (0, smithy_client_1.take)(data, {
836
- 'notifications': smithy_client_1._json,
725
+ 'bots': smithy_client_1._json,
837
726
  });
838
727
  Object.assign(contents, doc);
839
728
  return contents;
840
729
  };
841
- exports.de_PartialUpdateUserEmailNotificationsSettingsCommand = de_PartialUpdateUserEmailNotificationsSettingsCommand;
730
+ exports.de_ListBotsCommand = de_ListBotsCommand;
842
731
  const de_QueryColleaguesCommand = async (output, context) => {
843
732
  if (output.statusCode !== 200 && output.statusCode >= 300) {
844
733
  return de_CommandError(output, context);
@@ -884,28 +773,6 @@ const de_QueryUsersCommand = async (output, context) => {
884
773
  return contents;
885
774
  };
886
775
  exports.de_QueryUsersCommand = de_QueryUsersCommand;
887
- const de_ToggleTranscriptionEmailNotificationsSubscriptionCommand = async (output, context) => {
888
- if (output.statusCode !== 200 && output.statusCode >= 300) {
889
- return de_CommandError(output, context);
890
- }
891
- const contents = (0, smithy_client_1.map)({
892
- $metadata: deserializeMetadata(output),
893
- });
894
- await (0, smithy_client_1.collectBody)(output.body, context);
895
- return contents;
896
- };
897
- exports.de_ToggleTranscriptionEmailNotificationsSubscriptionCommand = de_ToggleTranscriptionEmailNotificationsSubscriptionCommand;
898
- const de_ToggleUnreadEmailNotificationsSubscriptionCommand = async (output, context) => {
899
- if (output.statusCode !== 200 && output.statusCode >= 300) {
900
- return de_CommandError(output, context);
901
- }
902
- const contents = (0, smithy_client_1.map)({
903
- $metadata: deserializeMetadata(output),
904
- });
905
- await (0, smithy_client_1.collectBody)(output.body, context);
906
- return contents;
907
- };
908
- exports.de_ToggleUnreadEmailNotificationsSubscriptionCommand = de_ToggleUnreadEmailNotificationsSubscriptionCommand;
909
776
  const de_UpdateBotCommand = async (output, context) => {
910
777
  if (output.statusCode !== 200 && output.statusCode >= 300) {
911
778
  return de_CommandError(output, context);
@@ -936,21 +803,6 @@ const de_UpdateBotCallbackCommand = async (output, context) => {
936
803
  return contents;
937
804
  };
938
805
  exports.de_UpdateBotCallbackCommand = de_UpdateBotCallbackCommand;
939
- const de_UpdateUserEmailNotificationsSettingsCommand = async (output, context) => {
940
- if (output.statusCode !== 200 && output.statusCode >= 300) {
941
- return de_CommandError(output, context);
942
- }
943
- const contents = (0, smithy_client_1.map)({
944
- $metadata: deserializeMetadata(output),
945
- });
946
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
947
- const doc = (0, smithy_client_1.take)(data, {
948
- 'notifications': smithy_client_1._json,
949
- });
950
- Object.assign(contents, doc);
951
- return contents;
952
- };
953
- exports.de_UpdateUserEmailNotificationsSettingsCommand = de_UpdateUserEmailNotificationsSettingsCommand;
954
806
  const de_UploadPictureCommand = async (output, context) => {
955
807
  if (output.statusCode !== 200 && output.statusCode >= 300) {
956
808
  return de_CommandError(output, context);
@@ -1239,6 +1091,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1239
1091
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1240
1092
  const _c = "company";
1241
1093
  const _e = "email";
1094
+ const _eE = "excludeExtension";
1095
+ const _s = "search";
1242
1096
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
1243
1097
  if (encoded.length) {
1244
1098
  return JSON.parse(encoded);
package/dist-es/Users.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { UsersClient, } from "./UsersClient";
2
2
  import { BatchGetUsersCommand, } from "./commands/BatchGetUsersCommand";
3
- import { BatchGetUsersEmailNotificationsSettingsCommand, } from "./commands/BatchGetUsersEmailNotificationsSettingsCommand";
4
3
  import { BatchGetUsersPbxLinkDataCommand, } from "./commands/BatchGetUsersPbxLinkDataCommand";
5
4
  import { BatchGetUsersPbxLinkDataV1Command, } from "./commands/BatchGetUsersPbxLinkDataV1Command";
6
5
  import { ChangeUserEmailCommand, } from "./commands/ChangeUserEmailCommand";
@@ -12,21 +11,17 @@ import { DeleteBotCommand, } from "./commands/DeleteBotCommand";
12
11
  import { GetBotCallbackCommand, } from "./commands/GetBotCallbackCommand";
13
12
  import { GetBotCommand, } from "./commands/GetBotCommand";
14
13
  import { GetUserCommand, } from "./commands/GetUserCommand";
15
- import { GetUserEmailNotificationsSettingsCommand, } from "./commands/GetUserEmailNotificationsSettingsCommand";
16
14
  import { GetUserPbxLinkDataCommand, } from "./commands/GetUserPbxLinkDataCommand";
17
15
  import { GetUserPbxLinkSuggestionCommand, } from "./commands/GetUserPbxLinkSuggestionCommand";
18
16
  import { GetUserPbxLinkSuggestionV1Command, } from "./commands/GetUserPbxLinkSuggestionV1Command";
17
+ import { IntelligenceSearchCommand, } from "./commands/IntelligenceSearchCommand";
19
18
  import { ListBotApiKeysCommand, } from "./commands/ListBotApiKeysCommand";
20
19
  import { ListBotsCommand, } from "./commands/ListBotsCommand";
21
- import { PartialUpdateUserEmailNotificationsSettingsCommand, } from "./commands/PartialUpdateUserEmailNotificationsSettingsCommand";
22
20
  import { QueryColleaguesCommand, } from "./commands/QueryColleaguesCommand";
23
21
  import { QueryUserCommand, } from "./commands/QueryUserCommand";
24
22
  import { QueryUsersCommand, } from "./commands/QueryUsersCommand";
25
- import { ToggleTranscriptionEmailNotificationsSubscriptionCommand, } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
26
- import { ToggleUnreadEmailNotificationsSubscriptionCommand, } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
27
23
  import { UpdateBotCallbackCommand, } from "./commands/UpdateBotCallbackCommand";
28
24
  import { UpdateBotCommand, } from "./commands/UpdateBotCommand";
29
- import { UpdateUserEmailNotificationsSettingsCommand, } from "./commands/UpdateUserEmailNotificationsSettingsCommand";
30
25
  import { UploadPictureCommand, } from "./commands/UploadPictureCommand";
31
26
  import { UploadPictureV1Command, } from "./commands/UploadPictureV1Command";
32
27
  import { VerifyBotSecretKeyCommand, } from "./commands/VerifyBotSecretKeyCommand";
@@ -34,7 +29,6 @@ import { VerifyBotSecretKeyV1Command, } from "./commands/VerifyBotSecretKeyV1Com
34
29
  import { createAggregatedClient } from "@smithy/smithy-client";
35
30
  const commands = {
36
31
  BatchGetUsersCommand,
37
- BatchGetUsersEmailNotificationsSettingsCommand,
38
32
  BatchGetUsersPbxLinkDataCommand,
39
33
  BatchGetUsersPbxLinkDataV1Command,
40
34
  ChangeUserEmailCommand,
@@ -46,21 +40,17 @@ const commands = {
46
40
  GetBotCommand,
47
41
  GetBotCallbackCommand,
48
42
  GetUserCommand,
49
- GetUserEmailNotificationsSettingsCommand,
50
43
  GetUserPbxLinkDataCommand,
51
44
  GetUserPbxLinkSuggestionCommand,
52
45
  GetUserPbxLinkSuggestionV1Command,
46
+ IntelligenceSearchCommand,
53
47
  ListBotApiKeysCommand,
54
48
  ListBotsCommand,
55
- PartialUpdateUserEmailNotificationsSettingsCommand,
56
49
  QueryColleaguesCommand,
57
50
  QueryUserCommand,
58
51
  QueryUsersCommand,
59
- ToggleTranscriptionEmailNotificationsSubscriptionCommand,
60
- ToggleUnreadEmailNotificationsSubscriptionCommand,
61
52
  UpdateBotCommand,
62
53
  UpdateBotCallbackCommand,
63
- UpdateUserEmailNotificationsSettingsCommand,
64
54
  UploadPictureCommand,
65
55
  UploadPictureV1Command,
66
56
  VerifyBotSecretKeyCommand,
@@ -0,0 +1,17 @@
1
+ import { de_IntelligenceSearchCommand, se_IntelligenceSearchCommand, } 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 IntelligenceSearchCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "IntelligenceSearch", {})
12
+ .n("UsersClient", "IntelligenceSearchCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_IntelligenceSearchCommand)
15
+ .de(de_IntelligenceSearchCommand)
16
+ .build() {
17
+ }
@@ -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";