@wildix/xbees-users-client 1.0.33 → 1.0.35

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
@@ -17,7 +17,6 @@ const GetUserCommand_1 = require("./commands/GetUserCommand");
17
17
  const GetUserPbxLinkDataCommand_1 = require("./commands/GetUserPbxLinkDataCommand");
18
18
  const GetUserPbxLinkSuggestionCommand_1 = require("./commands/GetUserPbxLinkSuggestionCommand");
19
19
  const GetUserPbxLinkSuggestionV1Command_1 = require("./commands/GetUserPbxLinkSuggestionV1Command");
20
- const IntelligenceSearchCommand_1 = require("./commands/IntelligenceSearchCommand");
21
20
  const ListBotApiKeysCommand_1 = require("./commands/ListBotApiKeysCommand");
22
21
  const ListBotsCommand_1 = require("./commands/ListBotsCommand");
23
22
  const QueryColleaguesCommand_1 = require("./commands/QueryColleaguesCommand");
@@ -46,7 +45,6 @@ const commands = {
46
45
  GetUserPbxLinkDataCommand: GetUserPbxLinkDataCommand_1.GetUserPbxLinkDataCommand,
47
46
  GetUserPbxLinkSuggestionCommand: GetUserPbxLinkSuggestionCommand_1.GetUserPbxLinkSuggestionCommand,
48
47
  GetUserPbxLinkSuggestionV1Command: GetUserPbxLinkSuggestionV1Command_1.GetUserPbxLinkSuggestionV1Command,
49
- IntelligenceSearchCommand: IntelligenceSearchCommand_1.IntelligenceSearchCommand,
50
48
  ListBotApiKeysCommand: ListBotApiKeysCommand_1.ListBotApiKeysCommand,
51
49
  ListBotsCommand: ListBotsCommand_1.ListBotsCommand,
52
50
  QueryColleaguesCommand: QueryColleaguesCommand_1.QueryColleaguesCommand,
@@ -16,7 +16,6 @@ tslib_1.__exportStar(require("./GetUserCommand"), exports);
16
16
  tslib_1.__exportStar(require("./GetUserPbxLinkDataCommand"), exports);
17
17
  tslib_1.__exportStar(require("./GetUserPbxLinkSuggestionCommand"), exports);
18
18
  tslib_1.__exportStar(require("./GetUserPbxLinkSuggestionV1Command"), exports);
19
- tslib_1.__exportStar(require("./IntelligenceSearchCommand"), exports);
20
19
  tslib_1.__exportStar(require("./ListBotApiKeysCommand"), exports);
21
20
  tslib_1.__exportStar(require("./ListBotsCommand"), exports);
22
21
  tslib_1.__exportStar(require("./QueryColleaguesCommand"), 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.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.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) {
@@ -82,9 +82,45 @@ class BotApiKeyNotFoundException extends UsersServiceException_1.UsersServiceExc
82
82
  }
83
83
  }
84
84
  exports.BotApiKeyNotFoundException = BotApiKeyNotFoundException;
85
+ exports.BotLlmEmbeddedToolType = {
86
+ DELEGATE: "DELEGATE",
87
+ HANDOVER: "HANDOVER",
88
+ };
89
+ var BotLlmFunctionIntegrationWebhookAuthorization;
90
+ (function (BotLlmFunctionIntegrationWebhookAuthorization) {
91
+ BotLlmFunctionIntegrationWebhookAuthorization.visit = (value, visitor) => {
92
+ if (value.bearer !== undefined)
93
+ return visitor.bearer(value.bearer);
94
+ if (value.basic !== undefined)
95
+ return visitor.basic(value.basic);
96
+ if (value.oauth !== undefined)
97
+ return visitor.oauth(value.oauth);
98
+ return visitor._(value.$unknown[0], value.$unknown[1]);
99
+ };
100
+ })(BotLlmFunctionIntegrationWebhookAuthorization = exports.BotLlmFunctionIntegrationWebhookAuthorization || (exports.BotLlmFunctionIntegrationWebhookAuthorization = {}));
101
+ exports.BotLlmFunctionIntegrationMethod = {
102
+ DELETE: "delete",
103
+ GET: "get",
104
+ PATCH: "patch",
105
+ POST: "post",
106
+ PUT: "put",
107
+ };
108
+ var BotLlmFunctionIntegration;
109
+ (function (BotLlmFunctionIntegration) {
110
+ BotLlmFunctionIntegration.visit = (value, visitor) => {
111
+ if (value.webhook !== undefined)
112
+ return visitor.webhook(value.webhook);
113
+ return visitor._(value.$unknown[0], value.$unknown[1]);
114
+ };
115
+ })(BotLlmFunctionIntegration = exports.BotLlmFunctionIntegration || (exports.BotLlmFunctionIntegration = {}));
116
+ exports.BotLlmToolType = {
117
+ FUNCTION: "function",
118
+ };
85
119
  var BotEndpoint;
86
120
  (function (BotEndpoint) {
87
121
  BotEndpoint.visit = (value, visitor) => {
122
+ if (value.llm !== undefined)
123
+ return visitor.llm(value.llm);
88
124
  if (value.dialogflowCx !== undefined)
89
125
  return visitor.dialogflowCx(value.dialogflowCx);
90
126
  if (value.openAiAssistant !== undefined)
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
3
+ exports.de_UploadPictureV1Command = exports.de_UploadPictureCommand = exports.de_UpdateBotCallbackCommand = exports.de_UpdateBotCommand = exports.de_QueryUsersCommand = exports.de_QueryUserCommand = exports.de_QueryColleaguesCommand = exports.de_ListBotsCommand = exports.de_ListBotApiKeysCommand = 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_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 = 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");
@@ -255,23 +255,6 @@ const se_GetUserPbxLinkSuggestionV1Command = async (input, context) => {
255
255
  return b.build();
256
256
  };
257
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;
275
258
  const se_ListBotApiKeysCommand = async (input, context) => {
276
259
  const b = (0, core_1.requestBuilder)(input, context);
277
260
  const headers = {};
@@ -683,21 +666,6 @@ const de_GetUserPbxLinkSuggestionV1Command = async (output, context) => {
683
666
  return contents;
684
667
  };
685
668
  exports.de_GetUserPbxLinkSuggestionV1Command = de_GetUserPbxLinkSuggestionV1Command;
686
- const de_IntelligenceSearchCommand = async (output, context) => {
687
- if (output.statusCode !== 200 && output.statusCode >= 300) {
688
- return de_CommandError(output, context);
689
- }
690
- const contents = (0, smithy_client_1.map)({
691
- $metadata: deserializeMetadata(output),
692
- });
693
- const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
694
- const doc = (0, smithy_client_1.take)(data, {
695
- 'items': smithy_client_1._json,
696
- });
697
- Object.assign(contents, doc);
698
- return contents;
699
- };
700
- exports.de_IntelligenceSearchCommand = de_IntelligenceSearchCommand;
701
669
  const de_ListBotApiKeysCommand = async (output, context) => {
702
670
  if (output.statusCode !== 200 && output.statusCode >= 300) {
703
671
  return de_CommandError(output, context);
@@ -1031,12 +999,67 @@ const se_BotDialogflowCxEndpoint = (input, context) => {
1031
999
  const se_BotEndpoint = (input, context) => {
1032
1000
  return models_0_1.BotEndpoint.visit(input, {
1033
1001
  dialogflowCx: value => ({ "dialogflowCx": se_BotDialogflowCxEndpoint(value, context) }),
1002
+ llm: value => ({ "llm": se_BotLlmEndpoint(value, context) }),
1034
1003
  openAiAssistant: value => ({ "openAiAssistant": (0, smithy_client_1._json)(value) }),
1035
1004
  sqs: value => ({ "sqs": (0, smithy_client_1._json)(value) }),
1036
1005
  webhook: value => ({ "webhook": (0, smithy_client_1._json)(value) }),
1037
1006
  _: (name, value) => ({ name: value })
1038
1007
  });
1039
1008
  };
1009
+ const se_BotLlmEmbeddedTool = (input, context) => {
1010
+ return (0, smithy_client_1.take)(input, {
1011
+ 'name': [],
1012
+ 'parameters': _ => se_Document(_, context),
1013
+ 'type': [],
1014
+ });
1015
+ };
1016
+ const se_BotLlmEmbeddedToolsList = (input, context) => {
1017
+ return input.filter((e) => e != null).map(entry => {
1018
+ return se_BotLlmEmbeddedTool(entry, context);
1019
+ });
1020
+ };
1021
+ const se_BotLlmEndpoint = (input, context) => {
1022
+ return (0, smithy_client_1.take)(input, {
1023
+ 'embeddedTools': _ => se_BotLlmEmbeddedToolsList(_, context),
1024
+ 'prompt': [],
1025
+ 'tools': _ => se_BotLlmToolsList(_, context),
1026
+ });
1027
+ };
1028
+ const se_BotLlmFunctionDefinition = (input, context) => {
1029
+ return (0, smithy_client_1.take)(input, {
1030
+ 'description': [],
1031
+ 'integration': _ => se_BotLlmFunctionIntegration(_, context),
1032
+ 'name': [],
1033
+ 'parameters': _ => se_Document(_, context),
1034
+ });
1035
+ };
1036
+ const se_BotLlmFunctionIntegration = (input, context) => {
1037
+ return models_0_1.BotLlmFunctionIntegration.visit(input, {
1038
+ webhook: value => ({ "webhook": se_BotLlmFunctionIntegrationWebhook(value, context) }),
1039
+ _: (name, value) => ({ name: value })
1040
+ });
1041
+ };
1042
+ const se_BotLlmFunctionIntegrationWebhook = (input, context) => {
1043
+ return (0, smithy_client_1.take)(input, {
1044
+ 'async': [],
1045
+ 'authorization': smithy_client_1._json,
1046
+ 'headers': smithy_client_1._json,
1047
+ 'method': [],
1048
+ 'parameters': _ => se_Document(_, context),
1049
+ 'url': [],
1050
+ });
1051
+ };
1052
+ const se_BotLlmTool = (input, context) => {
1053
+ return (0, smithy_client_1.take)(input, {
1054
+ 'function': _ => se_BotLlmFunctionDefinition(_, context),
1055
+ 'type': [],
1056
+ });
1057
+ };
1058
+ const se_BotLlmToolsList = (input, context) => {
1059
+ return input.filter((e) => e != null).map(entry => {
1060
+ return se_BotLlmTool(entry, context);
1061
+ });
1062
+ };
1040
1063
  const de_Document = (output, context) => {
1041
1064
  return output;
1042
1065
  };
@@ -1059,6 +1082,11 @@ const de_BotEndpoint = (output, context) => {
1059
1082
  dialogflowCx: de_BotDialogflowCxEndpoint(output.dialogflowCx, context)
1060
1083
  };
1061
1084
  }
1085
+ if (output.llm != null) {
1086
+ return {
1087
+ llm: de_BotLlmEndpoint(output.llm, context)
1088
+ };
1089
+ }
1062
1090
  if (output.openAiAssistant != null) {
1063
1091
  return {
1064
1092
  openAiAssistant: (0, smithy_client_1._json)(output.openAiAssistant)
@@ -1076,6 +1104,64 @@ const de_BotEndpoint = (output, context) => {
1076
1104
  }
1077
1105
  return { $unknown: Object.entries(output)[0] };
1078
1106
  };
1107
+ const de_BotLlmEmbeddedTool = (output, context) => {
1108
+ return (0, smithy_client_1.take)(output, {
1109
+ 'name': smithy_client_1.expectString,
1110
+ 'parameters': (_) => de_Document(_, context),
1111
+ 'type': smithy_client_1.expectString,
1112
+ });
1113
+ };
1114
+ const de_BotLlmEmbeddedToolsList = (output, context) => {
1115
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1116
+ return de_BotLlmEmbeddedTool(entry, context);
1117
+ });
1118
+ return retVal;
1119
+ };
1120
+ const de_BotLlmEndpoint = (output, context) => {
1121
+ return (0, smithy_client_1.take)(output, {
1122
+ 'embeddedTools': (_) => de_BotLlmEmbeddedToolsList(_, context),
1123
+ 'prompt': smithy_client_1.expectString,
1124
+ 'tools': (_) => de_BotLlmToolsList(_, context),
1125
+ });
1126
+ };
1127
+ const de_BotLlmFunctionDefinition = (output, context) => {
1128
+ return (0, smithy_client_1.take)(output, {
1129
+ 'description': smithy_client_1.expectString,
1130
+ 'integration': (_) => de_BotLlmFunctionIntegration((0, smithy_client_1.expectUnion)(_), context),
1131
+ 'name': smithy_client_1.expectString,
1132
+ 'parameters': (_) => de_Document(_, context),
1133
+ });
1134
+ };
1135
+ const de_BotLlmFunctionIntegration = (output, context) => {
1136
+ if (output.webhook != null) {
1137
+ return {
1138
+ webhook: de_BotLlmFunctionIntegrationWebhook(output.webhook, context)
1139
+ };
1140
+ }
1141
+ return { $unknown: Object.entries(output)[0] };
1142
+ };
1143
+ const de_BotLlmFunctionIntegrationWebhook = (output, context) => {
1144
+ return (0, smithy_client_1.take)(output, {
1145
+ 'async': smithy_client_1.expectBoolean,
1146
+ 'authorization': (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
1147
+ 'headers': smithy_client_1._json,
1148
+ 'method': smithy_client_1.expectString,
1149
+ 'parameters': (_) => de_Document(_, context),
1150
+ 'url': smithy_client_1.expectString,
1151
+ });
1152
+ };
1153
+ const de_BotLlmTool = (output, context) => {
1154
+ return (0, smithy_client_1.take)(output, {
1155
+ 'function': (_) => de_BotLlmFunctionDefinition(_, context),
1156
+ 'type': smithy_client_1.expectString,
1157
+ });
1158
+ };
1159
+ const de_BotLlmToolsList = (output, context) => {
1160
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1161
+ return de_BotLlmTool(entry, context);
1162
+ });
1163
+ return retVal;
1164
+ };
1079
1165
  const deserializeMetadata = (output) => ({
1080
1166
  httpStatusCode: output.statusCode,
1081
1167
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -1091,8 +1177,6 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1091
1177
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1092
1178
  const _c = "company";
1093
1179
  const _e = "email";
1094
- const _eE = "excludeExtension";
1095
- const _s = "search";
1096
1180
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
1097
1181
  if (encoded.length) {
1098
1182
  return JSON.parse(encoded);
package/dist-es/Users.js CHANGED
@@ -14,7 +14,6 @@ import { GetUserCommand, } from "./commands/GetUserCommand";
14
14
  import { GetUserPbxLinkDataCommand, } from "./commands/GetUserPbxLinkDataCommand";
15
15
  import { GetUserPbxLinkSuggestionCommand, } from "./commands/GetUserPbxLinkSuggestionCommand";
16
16
  import { GetUserPbxLinkSuggestionV1Command, } from "./commands/GetUserPbxLinkSuggestionV1Command";
17
- import { IntelligenceSearchCommand, } from "./commands/IntelligenceSearchCommand";
18
17
  import { ListBotApiKeysCommand, } from "./commands/ListBotApiKeysCommand";
19
18
  import { ListBotsCommand, } from "./commands/ListBotsCommand";
20
19
  import { QueryColleaguesCommand, } from "./commands/QueryColleaguesCommand";
@@ -43,7 +42,6 @@ const commands = {
43
42
  GetUserPbxLinkDataCommand,
44
43
  GetUserPbxLinkSuggestionCommand,
45
44
  GetUserPbxLinkSuggestionV1Command,
46
- IntelligenceSearchCommand,
47
45
  ListBotApiKeysCommand,
48
46
  ListBotsCommand,
49
47
  QueryColleaguesCommand,
@@ -13,7 +13,6 @@ export * from "./GetUserCommand";
13
13
  export * from "./GetUserPbxLinkDataCommand";
14
14
  export * from "./GetUserPbxLinkSuggestionCommand";
15
15
  export * from "./GetUserPbxLinkSuggestionV1Command";
16
- export * from "./IntelligenceSearchCommand";
17
16
  export * from "./ListBotApiKeysCommand";
18
17
  export * from "./ListBotsCommand";
19
18
  export * from "./QueryColleaguesCommand";
@@ -76,9 +76,45 @@ export class BotApiKeyNotFoundException extends __BaseException {
76
76
  Object.setPrototypeOf(this, BotApiKeyNotFoundException.prototype);
77
77
  }
78
78
  }
79
+ export const BotLlmEmbeddedToolType = {
80
+ DELEGATE: "DELEGATE",
81
+ HANDOVER: "HANDOVER",
82
+ };
83
+ export var BotLlmFunctionIntegrationWebhookAuthorization;
84
+ (function (BotLlmFunctionIntegrationWebhookAuthorization) {
85
+ BotLlmFunctionIntegrationWebhookAuthorization.visit = (value, visitor) => {
86
+ if (value.bearer !== undefined)
87
+ return visitor.bearer(value.bearer);
88
+ if (value.basic !== undefined)
89
+ return visitor.basic(value.basic);
90
+ if (value.oauth !== undefined)
91
+ return visitor.oauth(value.oauth);
92
+ return visitor._(value.$unknown[0], value.$unknown[1]);
93
+ };
94
+ })(BotLlmFunctionIntegrationWebhookAuthorization || (BotLlmFunctionIntegrationWebhookAuthorization = {}));
95
+ export const BotLlmFunctionIntegrationMethod = {
96
+ DELETE: "delete",
97
+ GET: "get",
98
+ PATCH: "patch",
99
+ POST: "post",
100
+ PUT: "put",
101
+ };
102
+ export var BotLlmFunctionIntegration;
103
+ (function (BotLlmFunctionIntegration) {
104
+ BotLlmFunctionIntegration.visit = (value, visitor) => {
105
+ if (value.webhook !== undefined)
106
+ return visitor.webhook(value.webhook);
107
+ return visitor._(value.$unknown[0], value.$unknown[1]);
108
+ };
109
+ })(BotLlmFunctionIntegration || (BotLlmFunctionIntegration = {}));
110
+ export const BotLlmToolType = {
111
+ FUNCTION: "function",
112
+ };
79
113
  export var BotEndpoint;
80
114
  (function (BotEndpoint) {
81
115
  BotEndpoint.visit = (value, visitor) => {
116
+ if (value.llm !== undefined)
117
+ return visitor.llm(value.llm);
82
118
  if (value.dialogflowCx !== undefined)
83
119
  return visitor.dialogflowCx(value.dialogflowCx);
84
120
  if (value.openAiAssistant !== undefined)
@@ -1,7 +1,7 @@
1
1
  import { UsersServiceException as __BaseException } from "../models/UsersServiceException";
2
- import { BotApiKeyNotFoundException, BotEndpoint, BotNotFoundException, BotSecretKeyNotValidException, ForbiddenException, UserCompanyNotValidException, UserNotFoundException, UserQueryPredicateNotMetException, ValidationException, } from "../models/models_0";
2
+ import { BotApiKeyNotFoundException, BotEndpoint, BotLlmFunctionIntegration, BotNotFoundException, BotSecretKeyNotValidException, ForbiddenException, UserCompanyNotValidException, UserNotFoundException, UserQueryPredicateNotMetException, ValidationException, } from "../models/models_0";
3
3
  import { requestBuilder as rb } from "@smithy/core";
4
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
4
+ import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
5
5
  export const se_BatchGetUsersCommand = async (input, context) => {
6
6
  const b = rb(input, context);
7
7
  const headers = {
@@ -236,22 +236,6 @@ export const se_GetUserPbxLinkSuggestionV1Command = async (input, context) => {
236
236
  .b(body);
237
237
  return b.build();
238
238
  };
239
- export const se_IntelligenceSearchCommand = async (input, context) => {
240
- const b = rb(input, context);
241
- const headers = {};
242
- b.bp("/v2/users/intelligence-search");
243
- const query = map({
244
- [_c]: [, input[_c]],
245
- [_s]: [, __expectNonNull(input[_s], `search`)],
246
- [_eE]: [, input[_eE]],
247
- });
248
- let body;
249
- b.m("GET")
250
- .h(headers)
251
- .q(query)
252
- .b(body);
253
- return b.build();
254
- };
255
239
  export const se_ListBotApiKeysCommand = async (input, context) => {
256
240
  const b = rb(input, context);
257
241
  const headers = {};
@@ -637,20 +621,6 @@ export const de_GetUserPbxLinkSuggestionV1Command = async (output, context) => {
637
621
  Object.assign(contents, doc);
638
622
  return contents;
639
623
  };
640
- export const de_IntelligenceSearchCommand = async (output, context) => {
641
- if (output.statusCode !== 200 && output.statusCode >= 300) {
642
- return de_CommandError(output, context);
643
- }
644
- const contents = map({
645
- $metadata: deserializeMetadata(output),
646
- });
647
- const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
648
- const doc = take(data, {
649
- 'items': _json,
650
- });
651
- Object.assign(contents, doc);
652
- return contents;
653
- };
654
624
  export const de_ListBotApiKeysCommand = async (output, context) => {
655
625
  if (output.statusCode !== 200 && output.statusCode >= 300) {
656
626
  return de_CommandError(output, context);
@@ -973,12 +943,67 @@ const se_BotDialogflowCxEndpoint = (input, context) => {
973
943
  const se_BotEndpoint = (input, context) => {
974
944
  return BotEndpoint.visit(input, {
975
945
  dialogflowCx: value => ({ "dialogflowCx": se_BotDialogflowCxEndpoint(value, context) }),
946
+ llm: value => ({ "llm": se_BotLlmEndpoint(value, context) }),
976
947
  openAiAssistant: value => ({ "openAiAssistant": _json(value) }),
977
948
  sqs: value => ({ "sqs": _json(value) }),
978
949
  webhook: value => ({ "webhook": _json(value) }),
979
950
  _: (name, value) => ({ name: value })
980
951
  });
981
952
  };
953
+ const se_BotLlmEmbeddedTool = (input, context) => {
954
+ return take(input, {
955
+ 'name': [],
956
+ 'parameters': _ => se_Document(_, context),
957
+ 'type': [],
958
+ });
959
+ };
960
+ const se_BotLlmEmbeddedToolsList = (input, context) => {
961
+ return input.filter((e) => e != null).map(entry => {
962
+ return se_BotLlmEmbeddedTool(entry, context);
963
+ });
964
+ };
965
+ const se_BotLlmEndpoint = (input, context) => {
966
+ return take(input, {
967
+ 'embeddedTools': _ => se_BotLlmEmbeddedToolsList(_, context),
968
+ 'prompt': [],
969
+ 'tools': _ => se_BotLlmToolsList(_, context),
970
+ });
971
+ };
972
+ const se_BotLlmFunctionDefinition = (input, context) => {
973
+ return take(input, {
974
+ 'description': [],
975
+ 'integration': _ => se_BotLlmFunctionIntegration(_, context),
976
+ 'name': [],
977
+ 'parameters': _ => se_Document(_, context),
978
+ });
979
+ };
980
+ const se_BotLlmFunctionIntegration = (input, context) => {
981
+ return BotLlmFunctionIntegration.visit(input, {
982
+ webhook: value => ({ "webhook": se_BotLlmFunctionIntegrationWebhook(value, context) }),
983
+ _: (name, value) => ({ name: value })
984
+ });
985
+ };
986
+ const se_BotLlmFunctionIntegrationWebhook = (input, context) => {
987
+ return take(input, {
988
+ 'async': [],
989
+ 'authorization': _json,
990
+ 'headers': _json,
991
+ 'method': [],
992
+ 'parameters': _ => se_Document(_, context),
993
+ 'url': [],
994
+ });
995
+ };
996
+ const se_BotLlmTool = (input, context) => {
997
+ return take(input, {
998
+ 'function': _ => se_BotLlmFunctionDefinition(_, context),
999
+ 'type': [],
1000
+ });
1001
+ };
1002
+ const se_BotLlmToolsList = (input, context) => {
1003
+ return input.filter((e) => e != null).map(entry => {
1004
+ return se_BotLlmTool(entry, context);
1005
+ });
1006
+ };
982
1007
  const de_Document = (output, context) => {
983
1008
  return output;
984
1009
  };
@@ -1001,6 +1026,11 @@ const de_BotEndpoint = (output, context) => {
1001
1026
  dialogflowCx: de_BotDialogflowCxEndpoint(output.dialogflowCx, context)
1002
1027
  };
1003
1028
  }
1029
+ if (output.llm != null) {
1030
+ return {
1031
+ llm: de_BotLlmEndpoint(output.llm, context)
1032
+ };
1033
+ }
1004
1034
  if (output.openAiAssistant != null) {
1005
1035
  return {
1006
1036
  openAiAssistant: _json(output.openAiAssistant)
@@ -1018,6 +1048,64 @@ const de_BotEndpoint = (output, context) => {
1018
1048
  }
1019
1049
  return { $unknown: Object.entries(output)[0] };
1020
1050
  };
1051
+ const de_BotLlmEmbeddedTool = (output, context) => {
1052
+ return take(output, {
1053
+ 'name': __expectString,
1054
+ 'parameters': (_) => de_Document(_, context),
1055
+ 'type': __expectString,
1056
+ });
1057
+ };
1058
+ const de_BotLlmEmbeddedToolsList = (output, context) => {
1059
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1060
+ return de_BotLlmEmbeddedTool(entry, context);
1061
+ });
1062
+ return retVal;
1063
+ };
1064
+ const de_BotLlmEndpoint = (output, context) => {
1065
+ return take(output, {
1066
+ 'embeddedTools': (_) => de_BotLlmEmbeddedToolsList(_, context),
1067
+ 'prompt': __expectString,
1068
+ 'tools': (_) => de_BotLlmToolsList(_, context),
1069
+ });
1070
+ };
1071
+ const de_BotLlmFunctionDefinition = (output, context) => {
1072
+ return take(output, {
1073
+ 'description': __expectString,
1074
+ 'integration': (_) => de_BotLlmFunctionIntegration(__expectUnion(_), context),
1075
+ 'name': __expectString,
1076
+ 'parameters': (_) => de_Document(_, context),
1077
+ });
1078
+ };
1079
+ const de_BotLlmFunctionIntegration = (output, context) => {
1080
+ if (output.webhook != null) {
1081
+ return {
1082
+ webhook: de_BotLlmFunctionIntegrationWebhook(output.webhook, context)
1083
+ };
1084
+ }
1085
+ return { $unknown: Object.entries(output)[0] };
1086
+ };
1087
+ const de_BotLlmFunctionIntegrationWebhook = (output, context) => {
1088
+ return take(output, {
1089
+ 'async': __expectBoolean,
1090
+ 'authorization': (_) => _json(__expectUnion(_)),
1091
+ 'headers': _json,
1092
+ 'method': __expectString,
1093
+ 'parameters': (_) => de_Document(_, context),
1094
+ 'url': __expectString,
1095
+ });
1096
+ };
1097
+ const de_BotLlmTool = (output, context) => {
1098
+ return take(output, {
1099
+ 'function': (_) => de_BotLlmFunctionDefinition(_, context),
1100
+ 'type': __expectString,
1101
+ });
1102
+ };
1103
+ const de_BotLlmToolsList = (output, context) => {
1104
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1105
+ return de_BotLlmTool(entry, context);
1106
+ });
1107
+ return retVal;
1108
+ };
1021
1109
  const deserializeMetadata = (output) => ({
1022
1110
  httpStatusCode: output.statusCode,
1023
1111
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -1033,8 +1121,6 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
1033
1121
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1034
1122
  const _c = "company";
1035
1123
  const _e = "email";
1036
- const _eE = "excludeExtension";
1037
- const _s = "search";
1038
1124
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => {
1039
1125
  if (encoded.length) {
1040
1126
  return JSON.parse(encoded);
@@ -14,7 +14,6 @@ import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCom
14
14
  import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
15
15
  import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
16
16
  import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
17
- import { IntelligenceSearchCommandInput, IntelligenceSearchCommandOutput } from "./commands/IntelligenceSearchCommand";
18
17
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
19
18
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
20
19
  import { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "./commands/QueryColleaguesCommand";
@@ -120,12 +119,6 @@ export interface Users {
120
119
  getUserPbxLinkSuggestionV1(args: GetUserPbxLinkSuggestionV1CommandInput, options?: __HttpHandlerOptions): Promise<GetUserPbxLinkSuggestionV1CommandOutput>;
121
120
  getUserPbxLinkSuggestionV1(args: GetUserPbxLinkSuggestionV1CommandInput, cb: (err: any, data?: GetUserPbxLinkSuggestionV1CommandOutput) => void): void;
122
121
  getUserPbxLinkSuggestionV1(args: GetUserPbxLinkSuggestionV1CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserPbxLinkSuggestionV1CommandOutput) => void): void;
123
- /**
124
- * @see {@link IntelligenceSearchCommand}
125
- */
126
- intelligenceSearch(args: IntelligenceSearchCommandInput, options?: __HttpHandlerOptions): Promise<IntelligenceSearchCommandOutput>;
127
- intelligenceSearch(args: IntelligenceSearchCommandInput, cb: (err: any, data?: IntelligenceSearchCommandOutput) => void): void;
128
- intelligenceSearch(args: IntelligenceSearchCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: IntelligenceSearchCommandOutput) => void): void;
129
122
  /**
130
123
  * @see {@link ListBotApiKeysCommand}
131
124
  */
@@ -13,7 +13,6 @@ import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCom
13
13
  import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
14
14
  import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
15
15
  import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
16
- import { IntelligenceSearchCommandInput, IntelligenceSearchCommandOutput } from "./commands/IntelligenceSearchCommand";
17
16
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
18
17
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
19
18
  import { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "./commands/QueryColleaguesCommand";
@@ -36,11 +35,11 @@ export { __Client };
36
35
  /**
37
36
  * @public
38
37
  */
39
- export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | CreateSystemBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | IntelligenceSearchCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | QueryColleaguesCommandInput | QueryUserCommandInput | QueryUsersCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
38
+ export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | CreateSystemBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | QueryColleaguesCommandInput | QueryUserCommandInput | QueryUsersCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
40
39
  /**
41
40
  * @public
42
41
  */
43
- export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | CreateSystemBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | IntelligenceSearchCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | QueryColleaguesCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
42
+ export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | CreateSystemBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | QueryColleaguesCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
44
43
  /**
45
44
  * @public
46
45
  */