@wildix/xbees-users-client 1.0.36 → 1.0.38

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,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserQueryPredicateNotMetException = exports.UserQuery = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotEndpoint = exports.BotLlmToolType = exports.BotLlmFunctionIntegration = exports.BotLlmFunctionIntegrationMethod = exports.BotLlmFunctionIntegrationWebhookAuthorization = exports.BotLlmEmbeddedToolType = exports.BotApiKeyNotFoundException = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.PbxLicenseType = exports.ForbiddenException = exports.ValidationException = void 0;
3
+ exports.UserQueryPredicateNotMetException = exports.UserQuery = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotEndpoint = exports.BotLlmToolType = exports.BotLlmFunctionIntegration = exports.BotLlmFunctionIntegrationMethod = exports.BotLlmFunctionIntegrationWebhookAuthorization = exports.BotLlmEmbeddedToolType = exports.BotApiKeyNotFoundException = exports.BotIntegrationType = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.PbxLicenseType = exports.ForbiddenException = exports.ValidationException = void 0;
4
4
  const UsersServiceException_1 = require("./UsersServiceException");
5
5
  class ValidationException extends UsersServiceException_1.UsersServiceException {
6
6
  constructor(opts) {
@@ -69,6 +69,13 @@ exports.PbxColleaguesSearchStrategy = {
69
69
  CONTAIN: "contain",
70
70
  STARTS_WITH: "startsWith",
71
71
  };
72
+ exports.BotIntegrationType = {
73
+ DIALOGFLOW_CX: "DIALOGFLOW_CX",
74
+ LLM: "LLM",
75
+ OPEN_AI_ASSISTANT: "OPEN_AI_ASSISTANT",
76
+ SQS: "SQS",
77
+ WEBHOOK: "WEBHOOK",
78
+ };
72
79
  class BotApiKeyNotFoundException extends UsersServiceException_1.UsersServiceException {
73
80
  constructor(opts) {
74
81
  super({
@@ -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";
@@ -64,6 +64,13 @@ export const PbxColleaguesSearchStrategy = {
64
64
  CONTAIN: "contain",
65
65
  STARTS_WITH: "startsWith",
66
66
  };
67
+ export const BotIntegrationType = {
68
+ DIALOGFLOW_CX: "DIALOGFLOW_CX",
69
+ LLM: "LLM",
70
+ OPEN_AI_ASSISTANT: "OPEN_AI_ASSISTANT",
71
+ SQS: "SQS",
72
+ WEBHOOK: "WEBHOOK",
73
+ };
67
74
  export class BotApiKeyNotFoundException extends __BaseException {
68
75
  constructor(opts) {
69
76
  super({
@@ -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
  */
@@ -48,6 +48,8 @@ declare const CreateBotApiKeyCommand_base: {
48
48
  * // name: "STRING_VALUE", // required
49
49
  * // picture: "STRING_VALUE",
50
50
  * // searchable: true || false,
51
+ * // integrationType: "LLM" || "DIALOGFLOW_CX" || "OPEN_AI_ASSISTANT" || "WEBHOOK" || "SQS", // required
52
+ * // integrationApiKeysCount: Number("int"), // required
51
53
  * // createdAt: "STRING_VALUE", // required
52
54
  * // updated: "STRING_VALUE",
53
55
  * // },
@@ -121,6 +121,8 @@ declare const CreateBotCommand_base: {
121
121
  * // name: "STRING_VALUE", // required
122
122
  * // picture: "STRING_VALUE",
123
123
  * // searchable: true || false,
124
+ * // integrationType: "LLM" || "DIALOGFLOW_CX" || "OPEN_AI_ASSISTANT" || "WEBHOOK" || "SQS", // required
125
+ * // integrationApiKeysCount: Number("int"), // required
124
126
  * // createdAt: "STRING_VALUE", // required
125
127
  * // updated: "STRING_VALUE",
126
128
  * // },
@@ -47,6 +47,8 @@ declare const GetBotCommand_base: {
47
47
  * // name: "STRING_VALUE", // required
48
48
  * // picture: "STRING_VALUE",
49
49
  * // searchable: true || false,
50
+ * // integrationType: "LLM" || "DIALOGFLOW_CX" || "OPEN_AI_ASSISTANT" || "WEBHOOK" || "SQS", // required
51
+ * // integrationApiKeysCount: Number("int"), // required
50
52
  * // createdAt: "STRING_VALUE", // required
51
53
  * // updated: "STRING_VALUE",
52
54
  * // },
@@ -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
+ }
@@ -47,6 +47,8 @@ declare const ListBotsCommand_base: {
47
47
  * // name: "STRING_VALUE", // required
48
48
  * // picture: "STRING_VALUE",
49
49
  * // searchable: true || false,
50
+ * // integrationType: "LLM" || "DIALOGFLOW_CX" || "OPEN_AI_ASSISTANT" || "WEBHOOK" || "SQS", // required
51
+ * // integrationApiKeysCount: Number("int"), // required
50
52
  * // createdAt: "STRING_VALUE", // required
51
53
  * // updated: "STRING_VALUE",
52
54
  * // },
@@ -50,6 +50,8 @@ declare const UpdateBotCommand_base: {
50
50
  * // name: "STRING_VALUE", // required
51
51
  * // picture: "STRING_VALUE",
52
52
  * // searchable: true || false,
53
+ * // integrationType: "LLM" || "DIALOGFLOW_CX" || "OPEN_AI_ASSISTANT" || "WEBHOOK" || "SQS", // required
54
+ * // integrationApiKeysCount: Number("int"), // required
53
55
  * // createdAt: "STRING_VALUE", // required
54
56
  * // updated: "STRING_VALUE",
55
57
  * // },
@@ -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";
@@ -521,6 +521,21 @@ export interface BatchGetUsersPbxLinkDataV1Input {
521
521
  export interface BatchGetUsersPbxLinkDataV1Output {
522
522
  users: (UserPbxLinkData)[];
523
523
  }
524
+ /**
525
+ * @public
526
+ * @enum
527
+ */
528
+ export declare const BotIntegrationType: {
529
+ readonly DIALOGFLOW_CX: "DIALOGFLOW_CX";
530
+ readonly LLM: "LLM";
531
+ readonly OPEN_AI_ASSISTANT: "OPEN_AI_ASSISTANT";
532
+ readonly SQS: "SQS";
533
+ readonly WEBHOOK: "WEBHOOK";
534
+ };
535
+ /**
536
+ * @public
537
+ */
538
+ export type BotIntegrationType = typeof BotIntegrationType[keyof typeof BotIntegrationType];
524
539
  /**
525
540
  * @public
526
541
  */
@@ -529,6 +544,8 @@ export interface Bot {
529
544
  name: string;
530
545
  picture?: string;
531
546
  searchable?: boolean;
547
+ integrationType: BotIntegrationType;
548
+ integrationApiKeysCount: number;
532
549
  createdAt: string;
533
550
  updated?: string;
534
551
  }
@@ -998,6 +1015,15 @@ export interface DeleteBotApiKeyInput {
998
1015
  */
999
1016
  export interface DeleteBotApiKeyOutput {
1000
1017
  }
1018
+ /**
1019
+ * @public
1020
+ */
1021
+ export interface DirectoryItem {
1022
+ extension: string;
1023
+ name: string;
1024
+ department?: string;
1025
+ group?: string;
1026
+ }
1001
1027
  /**
1002
1028
  * @public
1003
1029
  */
@@ -1127,6 +1153,28 @@ export interface GetUserPbxLinkSuggestionV1Output {
1127
1153
  */
1128
1154
  suggestion?: UserPbxLinkSuggestion;
1129
1155
  }
1156
+ /**
1157
+ * @public
1158
+ */
1159
+ export interface IntelligenceSearchInput {
1160
+ /**
1161
+ * The unique identifier of the tenant when a service token is used. Only for s2s auth
1162
+ * @public
1163
+ */
1164
+ company?: string;
1165
+ search: string;
1166
+ /**
1167
+ * Optional extension to exclude from search results. Used to prevent returning the caller's own record when searching.
1168
+ * @public
1169
+ */
1170
+ excludeExtension?: string;
1171
+ }
1172
+ /**
1173
+ * @public
1174
+ */
1175
+ export interface IntelligenceSearchOutput {
1176
+ items: (DirectoryItem)[];
1177
+ }
1130
1178
  /**
1131
1179
  * @public
1132
1180
  */
@@ -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.38",
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",
@@ -76,4 +76,4 @@
76
76
  "react-native": {
77
77
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
78
78
  }
79
- }
79
+ }