@wildix/xbees-users-client 1.0.36 → 1.0.37

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.
package/dist-cjs/Users.js CHANGED
@@ -19,6 +19,7 @@ const GetUserEmailNotificationsSettingsCommand_1 = require("./commands/GetUserEm
19
19
  const GetUserPbxLinkDataCommand_1 = require("./commands/GetUserPbxLinkDataCommand");
20
20
  const GetUserPbxLinkSuggestionCommand_1 = require("./commands/GetUserPbxLinkSuggestionCommand");
21
21
  const GetUserPbxLinkSuggestionV1Command_1 = require("./commands/GetUserPbxLinkSuggestionV1Command");
22
+ const IntelligenceSearchCommand_1 = require("./commands/IntelligenceSearchCommand");
22
23
  const ListBotApiKeysCommand_1 = require("./commands/ListBotApiKeysCommand");
23
24
  const ListBotsCommand_1 = require("./commands/ListBotsCommand");
24
25
  const PartialUpdateUserEmailNotificationsSettingsCommand_1 = require("./commands/PartialUpdateUserEmailNotificationsSettingsCommand");
@@ -53,6 +54,7 @@ const commands = {
53
54
  GetUserPbxLinkDataCommand: GetUserPbxLinkDataCommand_1.GetUserPbxLinkDataCommand,
54
55
  GetUserPbxLinkSuggestionCommand: GetUserPbxLinkSuggestionCommand_1.GetUserPbxLinkSuggestionCommand,
55
56
  GetUserPbxLinkSuggestionV1Command: GetUserPbxLinkSuggestionV1Command_1.GetUserPbxLinkSuggestionV1Command,
57
+ IntelligenceSearchCommand: IntelligenceSearchCommand_1.IntelligenceSearchCommand,
56
58
  ListBotApiKeysCommand: ListBotApiKeysCommand_1.ListBotApiKeysCommand,
57
59
  ListBotsCommand: ListBotsCommand_1.ListBotsCommand,
58
60
  PartialUpdateUserEmailNotificationsSettingsCommand: PartialUpdateUserEmailNotificationsSettingsCommand_1.PartialUpdateUserEmailNotificationsSettingsCommand,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IntelligenceSearchCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class IntelligenceSearchCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Users", "IntelligenceSearch", {})
15
+ .n("UsersClient", "IntelligenceSearchCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_IntelligenceSearchCommand)
18
+ .de(Aws_restJson1_1.de_IntelligenceSearchCommand)
19
+ .build() {
20
+ }
21
+ exports.IntelligenceSearchCommand = IntelligenceSearchCommand;
@@ -18,6 +18,7 @@ tslib_1.__exportStar(require("./GetUserEmailNotificationsSettingsCommand"), expo
18
18
  tslib_1.__exportStar(require("./GetUserPbxLinkDataCommand"), exports);
19
19
  tslib_1.__exportStar(require("./GetUserPbxLinkSuggestionCommand"), exports);
20
20
  tslib_1.__exportStar(require("./GetUserPbxLinkSuggestionV1Command"), exports);
21
+ tslib_1.__exportStar(require("./IntelligenceSearchCommand"), exports);
21
22
  tslib_1.__exportStar(require("./ListBotApiKeysCommand"), exports);
22
23
  tslib_1.__exportStar(require("./ListBotsCommand"), exports);
23
24
  tslib_1.__exportStar(require("./PartialUpdateUserEmailNotificationsSettingsCommand"), 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_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_IntelligenceSearchCommand = 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 = exports.de_ListBotApiKeysCommand = exports.de_IntelligenceSearchCommand = 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");
@@ -283,6 +283,23 @@ const se_GetUserPbxLinkSuggestionV1Command = async (input, context) => {
283
283
  return b.build();
284
284
  };
285
285
  exports.se_GetUserPbxLinkSuggestionV1Command = se_GetUserPbxLinkSuggestionV1Command;
286
+ const se_IntelligenceSearchCommand = async (input, context) => {
287
+ const b = (0, core_1.requestBuilder)(input, context);
288
+ const headers = {};
289
+ b.bp("/v2/users/intelligence-search");
290
+ const query = (0, smithy_client_1.map)({
291
+ [_c]: [, input[_c]],
292
+ [_s]: [, (0, smithy_client_1.expectNonNull)(input[_s], `search`)],
293
+ [_eE]: [, input[_eE]],
294
+ });
295
+ let body;
296
+ b.m("GET")
297
+ .h(headers)
298
+ .q(query)
299
+ .b(body);
300
+ return b.build();
301
+ };
302
+ exports.se_IntelligenceSearchCommand = se_IntelligenceSearchCommand;
286
303
  const se_ListBotApiKeysCommand = async (input, context) => {
287
304
  const b = (0, core_1.requestBuilder)(input, context);
288
305
  const headers = {};
@@ -794,6 +811,21 @@ const de_GetUserPbxLinkSuggestionV1Command = async (output, context) => {
794
811
  return contents;
795
812
  };
796
813
  exports.de_GetUserPbxLinkSuggestionV1Command = de_GetUserPbxLinkSuggestionV1Command;
814
+ const de_IntelligenceSearchCommand = async (output, context) => {
815
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
816
+ return de_CommandError(output, context);
817
+ }
818
+ const contents = (0, smithy_client_1.map)({
819
+ $metadata: deserializeMetadata(output),
820
+ });
821
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
822
+ const doc = (0, smithy_client_1.take)(data, {
823
+ 'items': smithy_client_1._json,
824
+ });
825
+ Object.assign(contents, doc);
826
+ return contents;
827
+ };
828
+ exports.de_IntelligenceSearchCommand = de_IntelligenceSearchCommand;
797
829
  const de_ListBotApiKeysCommand = async (output, context) => {
798
830
  if (output.statusCode !== 200 && output.statusCode >= 300) {
799
831
  return de_CommandError(output, context);
@@ -1357,6 +1389,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1357
1389
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1358
1390
  const _c = "company";
1359
1391
  const _e = "email";
1392
+ const _eE = "excludeExtension";
1393
+ const _s = "search";
1360
1394
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
1361
1395
  if (encoded.length) {
1362
1396
  return JSON.parse(encoded);
package/dist-es/Users.js CHANGED
@@ -16,6 +16,7 @@ import { GetUserEmailNotificationsSettingsCommand, } from "./commands/GetUserEma
16
16
  import { GetUserPbxLinkDataCommand, } from "./commands/GetUserPbxLinkDataCommand";
17
17
  import { GetUserPbxLinkSuggestionCommand, } from "./commands/GetUserPbxLinkSuggestionCommand";
18
18
  import { GetUserPbxLinkSuggestionV1Command, } from "./commands/GetUserPbxLinkSuggestionV1Command";
19
+ import { IntelligenceSearchCommand, } from "./commands/IntelligenceSearchCommand";
19
20
  import { ListBotApiKeysCommand, } from "./commands/ListBotApiKeysCommand";
20
21
  import { ListBotsCommand, } from "./commands/ListBotsCommand";
21
22
  import { PartialUpdateUserEmailNotificationsSettingsCommand, } from "./commands/PartialUpdateUserEmailNotificationsSettingsCommand";
@@ -50,6 +51,7 @@ const commands = {
50
51
  GetUserPbxLinkDataCommand,
51
52
  GetUserPbxLinkSuggestionCommand,
52
53
  GetUserPbxLinkSuggestionV1Command,
54
+ IntelligenceSearchCommand,
53
55
  ListBotApiKeysCommand,
54
56
  ListBotsCommand,
55
57
  PartialUpdateUserEmailNotificationsSettingsCommand,
@@ -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
+ }
@@ -15,6 +15,7 @@ export * from "./GetUserEmailNotificationsSettingsCommand";
15
15
  export * from "./GetUserPbxLinkDataCommand";
16
16
  export * from "./GetUserPbxLinkSuggestionCommand";
17
17
  export * from "./GetUserPbxLinkSuggestionV1Command";
18
+ export * from "./IntelligenceSearchCommand";
18
19
  export * from "./ListBotApiKeysCommand";
19
20
  export * from "./ListBotsCommand";
20
21
  export * from "./PartialUpdateUserEmailNotificationsSettingsCommand";
@@ -262,6 +262,22 @@ export const se_GetUserPbxLinkSuggestionV1Command = async (input, context) => {
262
262
  .b(body);
263
263
  return b.build();
264
264
  };
265
+ export const se_IntelligenceSearchCommand = async (input, context) => {
266
+ const b = rb(input, context);
267
+ const headers = {};
268
+ b.bp("/v2/users/intelligence-search");
269
+ const query = map({
270
+ [_c]: [, input[_c]],
271
+ [_s]: [, __expectNonNull(input[_s], `search`)],
272
+ [_eE]: [, input[_eE]],
273
+ });
274
+ let body;
275
+ b.m("GET")
276
+ .h(headers)
277
+ .q(query)
278
+ .b(body);
279
+ return b.build();
280
+ };
265
281
  export const se_ListBotApiKeysCommand = async (input, context) => {
266
282
  const b = rb(input, context);
267
283
  const headers = {};
@@ -741,6 +757,20 @@ export const de_GetUserPbxLinkSuggestionV1Command = async (output, context) => {
741
757
  Object.assign(contents, doc);
742
758
  return contents;
743
759
  };
760
+ export const de_IntelligenceSearchCommand = async (output, context) => {
761
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
762
+ return de_CommandError(output, context);
763
+ }
764
+ const contents = map({
765
+ $metadata: deserializeMetadata(output),
766
+ });
767
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
768
+ const doc = take(data, {
769
+ 'items': _json,
770
+ });
771
+ Object.assign(contents, doc);
772
+ return contents;
773
+ };
744
774
  export const de_ListBotApiKeysCommand = async (output, context) => {
745
775
  if (output.statusCode !== 200 && output.statusCode >= 300) {
746
776
  return de_CommandError(output, context);
@@ -1289,6 +1319,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1289
1319
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1290
1320
  const _c = "company";
1291
1321
  const _e = "email";
1322
+ const _eE = "excludeExtension";
1323
+ const _s = "search";
1292
1324
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
1293
1325
  if (encoded.length) {
1294
1326
  return JSON.parse(encoded);
@@ -16,6 +16,7 @@ import { GetUserEmailNotificationsSettingsCommandInput, GetUserEmailNotification
16
16
  import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
17
17
  import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
18
18
  import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
19
+ import { IntelligenceSearchCommandInput, IntelligenceSearchCommandOutput } from "./commands/IntelligenceSearchCommand";
19
20
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
20
21
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
21
22
  import { PartialUpdateUserEmailNotificationsSettingsCommandInput, PartialUpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/PartialUpdateUserEmailNotificationsSettingsCommand";
@@ -137,6 +138,12 @@ export interface Users {
137
138
  getUserPbxLinkSuggestionV1(args: GetUserPbxLinkSuggestionV1CommandInput, options?: __HttpHandlerOptions): Promise<GetUserPbxLinkSuggestionV1CommandOutput>;
138
139
  getUserPbxLinkSuggestionV1(args: GetUserPbxLinkSuggestionV1CommandInput, cb: (err: any, data?: GetUserPbxLinkSuggestionV1CommandOutput) => void): void;
139
140
  getUserPbxLinkSuggestionV1(args: GetUserPbxLinkSuggestionV1CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserPbxLinkSuggestionV1CommandOutput) => void): void;
141
+ /**
142
+ * @see {@link IntelligenceSearchCommand}
143
+ */
144
+ intelligenceSearch(args: IntelligenceSearchCommandInput, options?: __HttpHandlerOptions): Promise<IntelligenceSearchCommandOutput>;
145
+ intelligenceSearch(args: IntelligenceSearchCommandInput, cb: (err: any, data?: IntelligenceSearchCommandOutput) => void): void;
146
+ intelligenceSearch(args: IntelligenceSearchCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: IntelligenceSearchCommandOutput) => void): void;
140
147
  /**
141
148
  * @see {@link ListBotApiKeysCommand}
142
149
  */
@@ -15,6 +15,7 @@ import { GetUserEmailNotificationsSettingsCommandInput, GetUserEmailNotification
15
15
  import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
16
16
  import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
17
17
  import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
18
+ import { IntelligenceSearchCommandInput, IntelligenceSearchCommandOutput } from "./commands/IntelligenceSearchCommand";
18
19
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
19
20
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
20
21
  import { PartialUpdateUserEmailNotificationsSettingsCommandInput, PartialUpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/PartialUpdateUserEmailNotificationsSettingsCommand";
@@ -41,11 +42,11 @@ export { __Client };
41
42
  /**
42
43
  * @public
43
44
  */
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;
45
+ export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersEmailNotificationsSettingsCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | CreateSystemBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserEmailNotificationsSettingsCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | IntelligenceSearchCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | PartialUpdateUserEmailNotificationsSettingsCommandInput | QueryColleaguesCommandInput | QueryUserCommandInput | QueryUsersCommandInput | ToggleTranscriptionEmailNotificationsSubscriptionCommandInput | ToggleUnreadEmailNotificationsSubscriptionCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UpdateUserEmailNotificationsSettingsCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
45
46
  /**
46
47
  * @public
47
48
  */
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;
49
+ export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersEmailNotificationsSettingsCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | CreateSystemBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserEmailNotificationsSettingsCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | IntelligenceSearchCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | PartialUpdateUserEmailNotificationsSettingsCommandOutput | QueryColleaguesCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput | ToggleUnreadEmailNotificationsSubscriptionCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UpdateUserEmailNotificationsSettingsCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
49
50
  /**
50
51
  * @public
51
52
  */
@@ -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", // required
48
+ * // name: "STRING_VALUE", // required
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
+ }
@@ -15,6 +15,7 @@ export * from "./GetUserEmailNotificationsSettingsCommand";
15
15
  export * from "./GetUserPbxLinkDataCommand";
16
16
  export * from "./GetUserPbxLinkSuggestionCommand";
17
17
  export * from "./GetUserPbxLinkSuggestionV1Command";
18
+ export * from "./IntelligenceSearchCommand";
18
19
  export * from "./ListBotApiKeysCommand";
19
20
  export * from "./ListBotsCommand";
20
21
  export * from "./PartialUpdateUserEmailNotificationsSettingsCommand";
@@ -998,6 +998,15 @@ export interface DeleteBotApiKeyInput {
998
998
  */
999
999
  export interface DeleteBotApiKeyOutput {
1000
1000
  }
1001
+ /**
1002
+ * @public
1003
+ */
1004
+ export interface DirectoryItem {
1005
+ extension: string;
1006
+ name: string;
1007
+ department?: string;
1008
+ group?: string;
1009
+ }
1001
1010
  /**
1002
1011
  * @public
1003
1012
  */
@@ -1127,6 +1136,28 @@ export interface GetUserPbxLinkSuggestionV1Output {
1127
1136
  */
1128
1137
  suggestion?: UserPbxLinkSuggestion;
1129
1138
  }
1139
+ /**
1140
+ * @public
1141
+ */
1142
+ export interface IntelligenceSearchInput {
1143
+ /**
1144
+ * The unique identifier of the tenant when a service token is used. Only for s2s auth
1145
+ * @public
1146
+ */
1147
+ company?: string;
1148
+ search: string;
1149
+ /**
1150
+ * Optional extension to exclude from search results. Used to prevent returning the caller's own record when searching.
1151
+ * @public
1152
+ */
1153
+ excludeExtension?: string;
1154
+ }
1155
+ /**
1156
+ * @public
1157
+ */
1158
+ export interface IntelligenceSearchOutput {
1159
+ items: (DirectoryItem)[];
1160
+ }
1130
1161
  /**
1131
1162
  * @public
1132
1163
  */
@@ -15,6 +15,7 @@ import { GetUserEmailNotificationsSettingsCommandInput, GetUserEmailNotification
15
15
  import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "../commands/GetUserPbxLinkDataCommand";
16
16
  import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "../commands/GetUserPbxLinkSuggestionCommand";
17
17
  import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "../commands/GetUserPbxLinkSuggestionV1Command";
18
+ import { IntelligenceSearchCommandInput, IntelligenceSearchCommandOutput } from "../commands/IntelligenceSearchCommand";
18
19
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "../commands/ListBotApiKeysCommand";
19
20
  import { ListBotsCommandInput, ListBotsCommandOutput } from "../commands/ListBotsCommand";
20
21
  import { PartialUpdateUserEmailNotificationsSettingsCommandInput, PartialUpdateUserEmailNotificationsSettingsCommandOutput } from "../commands/PartialUpdateUserEmailNotificationsSettingsCommand";
@@ -100,6 +101,10 @@ export declare const se_GetUserPbxLinkSuggestionCommand: (input: GetUserPbxLinkS
100
101
  * serializeAws_restJson1GetUserPbxLinkSuggestionV1Command
101
102
  */
102
103
  export declare const se_GetUserPbxLinkSuggestionV1Command: (input: GetUserPbxLinkSuggestionV1CommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
104
+ /**
105
+ * serializeAws_restJson1IntelligenceSearchCommand
106
+ */
107
+ export declare const se_IntelligenceSearchCommand: (input: IntelligenceSearchCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
103
108
  /**
104
109
  * serializeAws_restJson1ListBotApiKeysCommand
105
110
  */
@@ -228,6 +233,10 @@ export declare const de_GetUserPbxLinkSuggestionCommand: (output: __HttpResponse
228
233
  * deserializeAws_restJson1GetUserPbxLinkSuggestionV1Command
229
234
  */
230
235
  export declare const de_GetUserPbxLinkSuggestionV1Command: (output: __HttpResponse, context: __SerdeContext) => Promise<GetUserPbxLinkSuggestionV1CommandOutput>;
236
+ /**
237
+ * deserializeAws_restJson1IntelligenceSearchCommand
238
+ */
239
+ export declare const de_IntelligenceSearchCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<IntelligenceSearchCommandOutput>;
231
240
  /**
232
241
  * deserializeAws_restJson1ListBotApiKeysCommand
233
242
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/xbees-users-client",
3
3
  "description": "@wildix/xbees-users-client client",
4
- "version": "1.0.36",
4
+ "version": "1.0.37",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -17,7 +17,6 @@
17
17
  "module": "./dist-es/index.js",
18
18
  "sideEffects": false,
19
19
  "dependencies": {
20
- "tslib": "^2.6.2",
21
20
  "@aws-crypto/sha256-browser": "3.0.0",
22
21
  "@aws-crypto/sha256-js": "3.0.0",
23
22
  "@aws-sdk/middleware-user-agent": "3.587.0",
@@ -46,15 +45,16 @@
46
45
  "@smithy/util-defaults-mode-node": "^3.0.3",
47
46
  "@smithy/util-retry": "^3.0.0",
48
47
  "@smithy/util-utf8": "^3.0.0",
49
- "@wildix/smithy-utils": "^1.0.2"
48
+ "@wildix/smithy-utils": "^1.0.2",
49
+ "tslib": "^2.6.2"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@tsconfig/node16": "16.1.3",
53
+ "@types/node": "^16.18.96",
53
54
  "concurrently": "7.0.0",
54
55
  "downlevel-dts": "0.10.1",
55
56
  "rimraf": "^3.0.0",
56
- "typescript": "~4.9.5",
57
- "@types/node": "^16.18.96"
57
+ "typescript": "~4.9.5"
58
58
  },
59
59
  "engines": {
60
60
  "node": ">=16.0.0"
@@ -76,4 +76,4 @@
76
76
  "react-native": {
77
77
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
78
78
  }
79
- }
79
+ }