@wildix/xbees-users-client 1.0.34 → 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.
@@ -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.BotToolType = exports.BotFunctionIntegration = exports.BotFunctionIntegrationMethod = exports.BotFunctionIntegrationWebhookAuthorization = exports.BotEmbeddedToolType = 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,13 +82,13 @@ class BotApiKeyNotFoundException extends UsersServiceException_1.UsersServiceExc
82
82
  }
83
83
  }
84
84
  exports.BotApiKeyNotFoundException = BotApiKeyNotFoundException;
85
- exports.BotEmbeddedToolType = {
85
+ exports.BotLlmEmbeddedToolType = {
86
86
  DELEGATE: "DELEGATE",
87
- TRANSFER: "HANDOVER",
87
+ HANDOVER: "HANDOVER",
88
88
  };
89
- var BotFunctionIntegrationWebhookAuthorization;
90
- (function (BotFunctionIntegrationWebhookAuthorization) {
91
- BotFunctionIntegrationWebhookAuthorization.visit = (value, visitor) => {
89
+ var BotLlmFunctionIntegrationWebhookAuthorization;
90
+ (function (BotLlmFunctionIntegrationWebhookAuthorization) {
91
+ BotLlmFunctionIntegrationWebhookAuthorization.visit = (value, visitor) => {
92
92
  if (value.bearer !== undefined)
93
93
  return visitor.bearer(value.bearer);
94
94
  if (value.basic !== undefined)
@@ -97,23 +97,23 @@ var BotFunctionIntegrationWebhookAuthorization;
97
97
  return visitor.oauth(value.oauth);
98
98
  return visitor._(value.$unknown[0], value.$unknown[1]);
99
99
  };
100
- })(BotFunctionIntegrationWebhookAuthorization = exports.BotFunctionIntegrationWebhookAuthorization || (exports.BotFunctionIntegrationWebhookAuthorization = {}));
101
- exports.BotFunctionIntegrationMethod = {
100
+ })(BotLlmFunctionIntegrationWebhookAuthorization = exports.BotLlmFunctionIntegrationWebhookAuthorization || (exports.BotLlmFunctionIntegrationWebhookAuthorization = {}));
101
+ exports.BotLlmFunctionIntegrationMethod = {
102
102
  DELETE: "delete",
103
103
  GET: "get",
104
104
  PATCH: "patch",
105
105
  POST: "post",
106
106
  PUT: "put",
107
107
  };
108
- var BotFunctionIntegration;
109
- (function (BotFunctionIntegration) {
110
- BotFunctionIntegration.visit = (value, visitor) => {
108
+ var BotLlmFunctionIntegration;
109
+ (function (BotLlmFunctionIntegration) {
110
+ BotLlmFunctionIntegration.visit = (value, visitor) => {
111
111
  if (value.webhook !== undefined)
112
112
  return visitor.webhook(value.webhook);
113
113
  return visitor._(value.$unknown[0], value.$unknown[1]);
114
114
  };
115
- })(BotFunctionIntegration = exports.BotFunctionIntegration || (exports.BotFunctionIntegration = {}));
116
- exports.BotToolType = {
115
+ })(BotLlmFunctionIntegration = exports.BotLlmFunctionIntegration || (exports.BotLlmFunctionIntegration = {}));
116
+ exports.BotLlmToolType = {
117
117
  FUNCTION: "function",
118
118
  };
119
119
  var BotEndpoint;
@@ -996,43 +996,50 @@ const se_BotDialogflowCxEndpoint = (input, context) => {
996
996
  'location': [],
997
997
  });
998
998
  };
999
- const se_BotEmbeddedTool = (input, context) => {
999
+ const se_BotEndpoint = (input, context) => {
1000
+ return models_0_1.BotEndpoint.visit(input, {
1001
+ dialogflowCx: value => ({ "dialogflowCx": se_BotDialogflowCxEndpoint(value, context) }),
1002
+ llm: value => ({ "llm": se_BotLlmEndpoint(value, context) }),
1003
+ openAiAssistant: value => ({ "openAiAssistant": (0, smithy_client_1._json)(value) }),
1004
+ sqs: value => ({ "sqs": (0, smithy_client_1._json)(value) }),
1005
+ webhook: value => ({ "webhook": (0, smithy_client_1._json)(value) }),
1006
+ _: (name, value) => ({ name: value })
1007
+ });
1008
+ };
1009
+ const se_BotLlmEmbeddedTool = (input, context) => {
1000
1010
  return (0, smithy_client_1.take)(input, {
1001
1011
  'name': [],
1002
1012
  'parameters': _ => se_Document(_, context),
1003
1013
  'type': [],
1004
1014
  });
1005
1015
  };
1006
- const se_BotEmbeddedToolsList = (input, context) => {
1016
+ const se_BotLlmEmbeddedToolsList = (input, context) => {
1007
1017
  return input.filter((e) => e != null).map(entry => {
1008
- return se_BotEmbeddedTool(entry, context);
1018
+ return se_BotLlmEmbeddedTool(entry, context);
1009
1019
  });
1010
1020
  };
1011
- const se_BotEndpoint = (input, context) => {
1012
- return models_0_1.BotEndpoint.visit(input, {
1013
- dialogflowCx: value => ({ "dialogflowCx": se_BotDialogflowCxEndpoint(value, context) }),
1014
- llm: value => ({ "llm": se_BotLlmEndpoint(value, context) }),
1015
- openAiAssistant: value => ({ "openAiAssistant": (0, smithy_client_1._json)(value) }),
1016
- sqs: value => ({ "sqs": (0, smithy_client_1._json)(value) }),
1017
- webhook: value => ({ "webhook": (0, smithy_client_1._json)(value) }),
1018
- _: (name, value) => ({ name: value })
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),
1019
1026
  });
1020
1027
  };
1021
- const se_BotFunctionDefinition = (input, context) => {
1028
+ const se_BotLlmFunctionDefinition = (input, context) => {
1022
1029
  return (0, smithy_client_1.take)(input, {
1023
1030
  'description': [],
1024
- 'integration': _ => se_BotFunctionIntegration(_, context),
1031
+ 'integration': _ => se_BotLlmFunctionIntegration(_, context),
1025
1032
  'name': [],
1026
1033
  'parameters': _ => se_Document(_, context),
1027
1034
  });
1028
1035
  };
1029
- const se_BotFunctionIntegration = (input, context) => {
1030
- return models_0_1.BotFunctionIntegration.visit(input, {
1031
- webhook: value => ({ "webhook": se_BotFunctionIntegrationWebhook(value, context) }),
1036
+ const se_BotLlmFunctionIntegration = (input, context) => {
1037
+ return models_0_1.BotLlmFunctionIntegration.visit(input, {
1038
+ webhook: value => ({ "webhook": se_BotLlmFunctionIntegrationWebhook(value, context) }),
1032
1039
  _: (name, value) => ({ name: value })
1033
1040
  });
1034
1041
  };
1035
- const se_BotFunctionIntegrationWebhook = (input, context) => {
1042
+ const se_BotLlmFunctionIntegrationWebhook = (input, context) => {
1036
1043
  return (0, smithy_client_1.take)(input, {
1037
1044
  'async': [],
1038
1045
  'authorization': smithy_client_1._json,
@@ -1042,22 +1049,15 @@ const se_BotFunctionIntegrationWebhook = (input, context) => {
1042
1049
  'url': [],
1043
1050
  });
1044
1051
  };
1045
- const se_BotLlmEndpoint = (input, context) => {
1052
+ const se_BotLlmTool = (input, context) => {
1046
1053
  return (0, smithy_client_1.take)(input, {
1047
- 'embeddedTools': _ => se_BotEmbeddedToolsList(_, context),
1048
- 'prompt': [],
1049
- 'tools': _ => se_BotToolsList(_, context),
1050
- });
1051
- };
1052
- const se_BotTool = (input, context) => {
1053
- return (0, smithy_client_1.take)(input, {
1054
- 'function': _ => se_BotFunctionDefinition(_, context),
1054
+ 'function': _ => se_BotLlmFunctionDefinition(_, context),
1055
1055
  'type': [],
1056
1056
  });
1057
1057
  };
1058
- const se_BotToolsList = (input, context) => {
1058
+ const se_BotLlmToolsList = (input, context) => {
1059
1059
  return input.filter((e) => e != null).map(entry => {
1060
- return se_BotTool(entry, context);
1060
+ return se_BotLlmTool(entry, context);
1061
1061
  });
1062
1062
  };
1063
1063
  const de_Document = (output, context) => {
@@ -1076,19 +1076,6 @@ const de_BotDialogflowCxEndpoint = (output, context) => {
1076
1076
  'location': smithy_client_1.expectString,
1077
1077
  });
1078
1078
  };
1079
- const de_BotEmbeddedTool = (output, context) => {
1080
- return (0, smithy_client_1.take)(output, {
1081
- 'name': smithy_client_1.expectString,
1082
- 'parameters': (_) => de_Document(_, context),
1083
- 'type': smithy_client_1.expectString,
1084
- });
1085
- };
1086
- const de_BotEmbeddedToolsList = (output, context) => {
1087
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1088
- return de_BotEmbeddedTool(entry, context);
1089
- });
1090
- return retVal;
1091
- };
1092
1079
  const de_BotEndpoint = (output, context) => {
1093
1080
  if (output.dialogflowCx != null) {
1094
1081
  return {
@@ -1117,23 +1104,43 @@ const de_BotEndpoint = (output, context) => {
1117
1104
  }
1118
1105
  return { $unknown: Object.entries(output)[0] };
1119
1106
  };
1120
- const de_BotFunctionDefinition = (output, context) => {
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) => {
1121
1128
  return (0, smithy_client_1.take)(output, {
1122
1129
  'description': smithy_client_1.expectString,
1123
- 'integration': (_) => de_BotFunctionIntegration((0, smithy_client_1.expectUnion)(_), context),
1130
+ 'integration': (_) => de_BotLlmFunctionIntegration((0, smithy_client_1.expectUnion)(_), context),
1124
1131
  'name': smithy_client_1.expectString,
1125
1132
  'parameters': (_) => de_Document(_, context),
1126
1133
  });
1127
1134
  };
1128
- const de_BotFunctionIntegration = (output, context) => {
1135
+ const de_BotLlmFunctionIntegration = (output, context) => {
1129
1136
  if (output.webhook != null) {
1130
1137
  return {
1131
- webhook: de_BotFunctionIntegrationWebhook(output.webhook, context)
1138
+ webhook: de_BotLlmFunctionIntegrationWebhook(output.webhook, context)
1132
1139
  };
1133
1140
  }
1134
1141
  return { $unknown: Object.entries(output)[0] };
1135
1142
  };
1136
- const de_BotFunctionIntegrationWebhook = (output, context) => {
1143
+ const de_BotLlmFunctionIntegrationWebhook = (output, context) => {
1137
1144
  return (0, smithy_client_1.take)(output, {
1138
1145
  'async': smithy_client_1.expectBoolean,
1139
1146
  'authorization': (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
@@ -1143,22 +1150,15 @@ const de_BotFunctionIntegrationWebhook = (output, context) => {
1143
1150
  'url': smithy_client_1.expectString,
1144
1151
  });
1145
1152
  };
1146
- const de_BotLlmEndpoint = (output, context) => {
1147
- return (0, smithy_client_1.take)(output, {
1148
- 'embeddedTools': (_) => de_BotEmbeddedToolsList(_, context),
1149
- 'prompt': smithy_client_1.expectString,
1150
- 'tools': (_) => de_BotToolsList(_, context),
1151
- });
1152
- };
1153
- const de_BotTool = (output, context) => {
1153
+ const de_BotLlmTool = (output, context) => {
1154
1154
  return (0, smithy_client_1.take)(output, {
1155
- 'function': (_) => de_BotFunctionDefinition(_, context),
1155
+ 'function': (_) => de_BotLlmFunctionDefinition(_, context),
1156
1156
  'type': smithy_client_1.expectString,
1157
1157
  });
1158
1158
  };
1159
- const de_BotToolsList = (output, context) => {
1159
+ const de_BotLlmToolsList = (output, context) => {
1160
1160
  const retVal = (output || []).filter((e) => e != null).map((entry) => {
1161
- return de_BotTool(entry, context);
1161
+ return de_BotLlmTool(entry, context);
1162
1162
  });
1163
1163
  return retVal;
1164
1164
  };
@@ -76,13 +76,13 @@ export class BotApiKeyNotFoundException extends __BaseException {
76
76
  Object.setPrototypeOf(this, BotApiKeyNotFoundException.prototype);
77
77
  }
78
78
  }
79
- export const BotEmbeddedToolType = {
79
+ export const BotLlmEmbeddedToolType = {
80
80
  DELEGATE: "DELEGATE",
81
- TRANSFER: "HANDOVER",
81
+ HANDOVER: "HANDOVER",
82
82
  };
83
- export var BotFunctionIntegrationWebhookAuthorization;
84
- (function (BotFunctionIntegrationWebhookAuthorization) {
85
- BotFunctionIntegrationWebhookAuthorization.visit = (value, visitor) => {
83
+ export var BotLlmFunctionIntegrationWebhookAuthorization;
84
+ (function (BotLlmFunctionIntegrationWebhookAuthorization) {
85
+ BotLlmFunctionIntegrationWebhookAuthorization.visit = (value, visitor) => {
86
86
  if (value.bearer !== undefined)
87
87
  return visitor.bearer(value.bearer);
88
88
  if (value.basic !== undefined)
@@ -91,23 +91,23 @@ export var BotFunctionIntegrationWebhookAuthorization;
91
91
  return visitor.oauth(value.oauth);
92
92
  return visitor._(value.$unknown[0], value.$unknown[1]);
93
93
  };
94
- })(BotFunctionIntegrationWebhookAuthorization || (BotFunctionIntegrationWebhookAuthorization = {}));
95
- export const BotFunctionIntegrationMethod = {
94
+ })(BotLlmFunctionIntegrationWebhookAuthorization || (BotLlmFunctionIntegrationWebhookAuthorization = {}));
95
+ export const BotLlmFunctionIntegrationMethod = {
96
96
  DELETE: "delete",
97
97
  GET: "get",
98
98
  PATCH: "patch",
99
99
  POST: "post",
100
100
  PUT: "put",
101
101
  };
102
- export var BotFunctionIntegration;
103
- (function (BotFunctionIntegration) {
104
- BotFunctionIntegration.visit = (value, visitor) => {
102
+ export var BotLlmFunctionIntegration;
103
+ (function (BotLlmFunctionIntegration) {
104
+ BotLlmFunctionIntegration.visit = (value, visitor) => {
105
105
  if (value.webhook !== undefined)
106
106
  return visitor.webhook(value.webhook);
107
107
  return visitor._(value.$unknown[0], value.$unknown[1]);
108
108
  };
109
- })(BotFunctionIntegration || (BotFunctionIntegration = {}));
110
- export const BotToolType = {
109
+ })(BotLlmFunctionIntegration || (BotLlmFunctionIntegration = {}));
110
+ export const BotLlmToolType = {
111
111
  FUNCTION: "function",
112
112
  };
113
113
  export var BotEndpoint;
@@ -1,5 +1,5 @@
1
1
  import { UsersServiceException as __BaseException } from "../models/UsersServiceException";
2
- import { BotApiKeyNotFoundException, BotEndpoint, BotFunctionIntegration, 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
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) => {
@@ -940,43 +940,50 @@ const se_BotDialogflowCxEndpoint = (input, context) => {
940
940
  'location': [],
941
941
  });
942
942
  };
943
- const se_BotEmbeddedTool = (input, context) => {
943
+ const se_BotEndpoint = (input, context) => {
944
+ return BotEndpoint.visit(input, {
945
+ dialogflowCx: value => ({ "dialogflowCx": se_BotDialogflowCxEndpoint(value, context) }),
946
+ llm: value => ({ "llm": se_BotLlmEndpoint(value, context) }),
947
+ openAiAssistant: value => ({ "openAiAssistant": _json(value) }),
948
+ sqs: value => ({ "sqs": _json(value) }),
949
+ webhook: value => ({ "webhook": _json(value) }),
950
+ _: (name, value) => ({ name: value })
951
+ });
952
+ };
953
+ const se_BotLlmEmbeddedTool = (input, context) => {
944
954
  return take(input, {
945
955
  'name': [],
946
956
  'parameters': _ => se_Document(_, context),
947
957
  'type': [],
948
958
  });
949
959
  };
950
- const se_BotEmbeddedToolsList = (input, context) => {
960
+ const se_BotLlmEmbeddedToolsList = (input, context) => {
951
961
  return input.filter((e) => e != null).map(entry => {
952
- return se_BotEmbeddedTool(entry, context);
962
+ return se_BotLlmEmbeddedTool(entry, context);
953
963
  });
954
964
  };
955
- const se_BotEndpoint = (input, context) => {
956
- return BotEndpoint.visit(input, {
957
- dialogflowCx: value => ({ "dialogflowCx": se_BotDialogflowCxEndpoint(value, context) }),
958
- llm: value => ({ "llm": se_BotLlmEndpoint(value, context) }),
959
- openAiAssistant: value => ({ "openAiAssistant": _json(value) }),
960
- sqs: value => ({ "sqs": _json(value) }),
961
- webhook: value => ({ "webhook": _json(value) }),
962
- _: (name, value) => ({ name: value })
965
+ const se_BotLlmEndpoint = (input, context) => {
966
+ return take(input, {
967
+ 'embeddedTools': _ => se_BotLlmEmbeddedToolsList(_, context),
968
+ 'prompt': [],
969
+ 'tools': _ => se_BotLlmToolsList(_, context),
963
970
  });
964
971
  };
965
- const se_BotFunctionDefinition = (input, context) => {
972
+ const se_BotLlmFunctionDefinition = (input, context) => {
966
973
  return take(input, {
967
974
  'description': [],
968
- 'integration': _ => se_BotFunctionIntegration(_, context),
975
+ 'integration': _ => se_BotLlmFunctionIntegration(_, context),
969
976
  'name': [],
970
977
  'parameters': _ => se_Document(_, context),
971
978
  });
972
979
  };
973
- const se_BotFunctionIntegration = (input, context) => {
974
- return BotFunctionIntegration.visit(input, {
975
- webhook: value => ({ "webhook": se_BotFunctionIntegrationWebhook(value, context) }),
980
+ const se_BotLlmFunctionIntegration = (input, context) => {
981
+ return BotLlmFunctionIntegration.visit(input, {
982
+ webhook: value => ({ "webhook": se_BotLlmFunctionIntegrationWebhook(value, context) }),
976
983
  _: (name, value) => ({ name: value })
977
984
  });
978
985
  };
979
- const se_BotFunctionIntegrationWebhook = (input, context) => {
986
+ const se_BotLlmFunctionIntegrationWebhook = (input, context) => {
980
987
  return take(input, {
981
988
  'async': [],
982
989
  'authorization': _json,
@@ -986,22 +993,15 @@ const se_BotFunctionIntegrationWebhook = (input, context) => {
986
993
  'url': [],
987
994
  });
988
995
  };
989
- const se_BotLlmEndpoint = (input, context) => {
996
+ const se_BotLlmTool = (input, context) => {
990
997
  return take(input, {
991
- 'embeddedTools': _ => se_BotEmbeddedToolsList(_, context),
992
- 'prompt': [],
993
- 'tools': _ => se_BotToolsList(_, context),
994
- });
995
- };
996
- const se_BotTool = (input, context) => {
997
- return take(input, {
998
- 'function': _ => se_BotFunctionDefinition(_, context),
998
+ 'function': _ => se_BotLlmFunctionDefinition(_, context),
999
999
  'type': [],
1000
1000
  });
1001
1001
  };
1002
- const se_BotToolsList = (input, context) => {
1002
+ const se_BotLlmToolsList = (input, context) => {
1003
1003
  return input.filter((e) => e != null).map(entry => {
1004
- return se_BotTool(entry, context);
1004
+ return se_BotLlmTool(entry, context);
1005
1005
  });
1006
1006
  };
1007
1007
  const de_Document = (output, context) => {
@@ -1020,19 +1020,6 @@ const de_BotDialogflowCxEndpoint = (output, context) => {
1020
1020
  'location': __expectString,
1021
1021
  });
1022
1022
  };
1023
- const de_BotEmbeddedTool = (output, context) => {
1024
- return take(output, {
1025
- 'name': __expectString,
1026
- 'parameters': (_) => de_Document(_, context),
1027
- 'type': __expectString,
1028
- });
1029
- };
1030
- const de_BotEmbeddedToolsList = (output, context) => {
1031
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1032
- return de_BotEmbeddedTool(entry, context);
1033
- });
1034
- return retVal;
1035
- };
1036
1023
  const de_BotEndpoint = (output, context) => {
1037
1024
  if (output.dialogflowCx != null) {
1038
1025
  return {
@@ -1061,23 +1048,43 @@ const de_BotEndpoint = (output, context) => {
1061
1048
  }
1062
1049
  return { $unknown: Object.entries(output)[0] };
1063
1050
  };
1064
- const de_BotFunctionDefinition = (output, context) => {
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) => {
1065
1072
  return take(output, {
1066
1073
  'description': __expectString,
1067
- 'integration': (_) => de_BotFunctionIntegration(__expectUnion(_), context),
1074
+ 'integration': (_) => de_BotLlmFunctionIntegration(__expectUnion(_), context),
1068
1075
  'name': __expectString,
1069
1076
  'parameters': (_) => de_Document(_, context),
1070
1077
  });
1071
1078
  };
1072
- const de_BotFunctionIntegration = (output, context) => {
1079
+ const de_BotLlmFunctionIntegration = (output, context) => {
1073
1080
  if (output.webhook != null) {
1074
1081
  return {
1075
- webhook: de_BotFunctionIntegrationWebhook(output.webhook, context)
1082
+ webhook: de_BotLlmFunctionIntegrationWebhook(output.webhook, context)
1076
1083
  };
1077
1084
  }
1078
1085
  return { $unknown: Object.entries(output)[0] };
1079
1086
  };
1080
- const de_BotFunctionIntegrationWebhook = (output, context) => {
1087
+ const de_BotLlmFunctionIntegrationWebhook = (output, context) => {
1081
1088
  return take(output, {
1082
1089
  'async': __expectBoolean,
1083
1090
  'authorization': (_) => _json(__expectUnion(_)),
@@ -1087,22 +1094,15 @@ const de_BotFunctionIntegrationWebhook = (output, context) => {
1087
1094
  'url': __expectString,
1088
1095
  });
1089
1096
  };
1090
- const de_BotLlmEndpoint = (output, context) => {
1091
- return take(output, {
1092
- 'embeddedTools': (_) => de_BotEmbeddedToolsList(_, context),
1093
- 'prompt': __expectString,
1094
- 'tools': (_) => de_BotToolsList(_, context),
1095
- });
1096
- };
1097
- const de_BotTool = (output, context) => {
1097
+ const de_BotLlmTool = (output, context) => {
1098
1098
  return take(output, {
1099
- 'function': (_) => de_BotFunctionDefinition(_, context),
1099
+ 'function': (_) => de_BotLlmFunctionDefinition(_, context),
1100
1100
  'type': __expectString,
1101
1101
  });
1102
1102
  };
1103
- const de_BotToolsList = (output, context) => {
1103
+ const de_BotLlmToolsList = (output, context) => {
1104
1104
  const retVal = (output || []).filter((e) => e != null).map((entry) => {
1105
- return de_BotTool(entry, context);
1105
+ return de_BotLlmTool(entry, context);
1106
1106
  });
1107
1107
  return retVal;
1108
1108
  };
@@ -44,42 +44,42 @@ declare const CreateBotCommand_base: {
44
44
  * endpoint: { // BotEndpoint Union: only one key present
45
45
  * llm: { // BotLlmEndpoint
46
46
  * prompt: "STRING_VALUE", // required
47
- * embeddedTools: [ // BotEmbeddedToolsList
48
- * { // BotEmbeddedTool
47
+ * embeddedTools: [ // BotLlmEmbeddedToolsList
48
+ * { // BotLlmEmbeddedTool
49
49
  * type: "HANDOVER" || "DELEGATE", // required
50
50
  * name: "STRING_VALUE", // required
51
51
  * parameters: "DOCUMENT_VALUE",
52
52
  * },
53
53
  * ],
54
- * tools: [ // BotToolsList
55
- * { // BotTool
54
+ * tools: [ // BotLlmToolsList
55
+ * { // BotLlmTool
56
56
  * type: "function", // required
57
- * function: { // BotFunctionDefinition
57
+ * function: { // BotLlmFunctionDefinition
58
58
  * name: "STRING_VALUE", // required
59
59
  * description: "STRING_VALUE",
60
60
  * parameters: "DOCUMENT_VALUE",
61
- * integration: { // BotFunctionIntegration Union: only one key present
62
- * webhook: { // BotFunctionIntegrationWebhook
61
+ * integration: { // BotLlmFunctionIntegration Union: only one key present
62
+ * webhook: { // BotLlmFunctionIntegrationWebhook
63
63
  * url: "STRING_VALUE", // required
64
64
  * method: "get" || "post" || "put" || "delete" || "patch",
65
65
  * async: true || false,
66
- * authorization: { // BotFunctionIntegrationWebhookAuthorization Union: only one key present
67
- * bearer: { // BotFunctionIntegrationWebhookAuthorizationBearer
66
+ * authorization: { // BotLlmFunctionIntegrationWebhookAuthorization Union: only one key present
67
+ * bearer: { // BotLlmFunctionIntegrationWebhookAuthorizationBearer
68
68
  * token: "STRING_VALUE", // required
69
69
  * },
70
- * basic: { // BotFunctionIntegrationWebhookAuthorizationBasic
70
+ * basic: { // BotLlmFunctionIntegrationWebhookAuthorizationBasic
71
71
  * username: "STRING_VALUE", // required
72
72
  * password: "STRING_VALUE", // required
73
73
  * },
74
- * oauth: { // BotFunctionIntegrationWebhookAuthorizationOAuth
74
+ * oauth: { // BotLlmFunctionIntegrationWebhookAuthorizationOAuth
75
75
  * clientId: "STRING_VALUE", // required
76
76
  * clientSecret: "STRING_VALUE", // required
77
77
  * endpointUrl: "STRING_VALUE", // required
78
78
  * scope: "STRING_VALUE",
79
79
  * },
80
80
  * },
81
- * headers: [ // BotFunctionIntegrationWebhookHeadersList
82
- * { // BotFunctionIntegrationWebhookHeader
81
+ * headers: [ // BotLlmFunctionIntegrationWebhookHeadersList
82
+ * { // BotLlmFunctionIntegrationWebhookHeader
83
83
  * key: "STRING_VALUE", // required
84
84
  * value: "STRING_VALUE", // required
85
85
  * },
@@ -46,42 +46,42 @@ declare const GetBotCallbackCommand_base: {
46
46
  * // endpoint: { // BotEndpoint Union: only one key present
47
47
  * // llm: { // BotLlmEndpoint
48
48
  * // prompt: "STRING_VALUE", // required
49
- * // embeddedTools: [ // BotEmbeddedToolsList
50
- * // { // BotEmbeddedTool
49
+ * // embeddedTools: [ // BotLlmEmbeddedToolsList
50
+ * // { // BotLlmEmbeddedTool
51
51
  * // type: "HANDOVER" || "DELEGATE", // required
52
52
  * // name: "STRING_VALUE", // required
53
53
  * // parameters: "DOCUMENT_VALUE",
54
54
  * // },
55
55
  * // ],
56
- * // tools: [ // BotToolsList
57
- * // { // BotTool
56
+ * // tools: [ // BotLlmToolsList
57
+ * // { // BotLlmTool
58
58
  * // type: "function", // required
59
- * // function: { // BotFunctionDefinition
59
+ * // function: { // BotLlmFunctionDefinition
60
60
  * // name: "STRING_VALUE", // required
61
61
  * // description: "STRING_VALUE",
62
62
  * // parameters: "DOCUMENT_VALUE",
63
- * // integration: { // BotFunctionIntegration Union: only one key present
64
- * // webhook: { // BotFunctionIntegrationWebhook
63
+ * // integration: { // BotLlmFunctionIntegration Union: only one key present
64
+ * // webhook: { // BotLlmFunctionIntegrationWebhook
65
65
  * // url: "STRING_VALUE", // required
66
66
  * // method: "get" || "post" || "put" || "delete" || "patch",
67
67
  * // async: true || false,
68
- * // authorization: { // BotFunctionIntegrationWebhookAuthorization Union: only one key present
69
- * // bearer: { // BotFunctionIntegrationWebhookAuthorizationBearer
68
+ * // authorization: { // BotLlmFunctionIntegrationWebhookAuthorization Union: only one key present
69
+ * // bearer: { // BotLlmFunctionIntegrationWebhookAuthorizationBearer
70
70
  * // token: "STRING_VALUE", // required
71
71
  * // },
72
- * // basic: { // BotFunctionIntegrationWebhookAuthorizationBasic
72
+ * // basic: { // BotLlmFunctionIntegrationWebhookAuthorizationBasic
73
73
  * // username: "STRING_VALUE", // required
74
74
  * // password: "STRING_VALUE", // required
75
75
  * // },
76
- * // oauth: { // BotFunctionIntegrationWebhookAuthorizationOAuth
76
+ * // oauth: { // BotLlmFunctionIntegrationWebhookAuthorizationOAuth
77
77
  * // clientId: "STRING_VALUE", // required
78
78
  * // clientSecret: "STRING_VALUE", // required
79
79
  * // endpointUrl: "STRING_VALUE", // required
80
80
  * // scope: "STRING_VALUE",
81
81
  * // },
82
82
  * // },
83
- * // headers: [ // BotFunctionIntegrationWebhookHeadersList
84
- * // { // BotFunctionIntegrationWebhookHeader
83
+ * // headers: [ // BotLlmFunctionIntegrationWebhookHeadersList
84
+ * // { // BotLlmFunctionIntegrationWebhookHeader
85
85
  * // key: "STRING_VALUE", // required
86
86
  * // value: "STRING_VALUE", // required
87
87
  * // },
@@ -42,42 +42,42 @@ declare const UpdateBotCallbackCommand_base: {
42
42
  * endpoint: { // BotEndpoint Union: only one key present
43
43
  * llm: { // BotLlmEndpoint
44
44
  * prompt: "STRING_VALUE", // required
45
- * embeddedTools: [ // BotEmbeddedToolsList
46
- * { // BotEmbeddedTool
45
+ * embeddedTools: [ // BotLlmEmbeddedToolsList
46
+ * { // BotLlmEmbeddedTool
47
47
  * type: "HANDOVER" || "DELEGATE", // required
48
48
  * name: "STRING_VALUE", // required
49
49
  * parameters: "DOCUMENT_VALUE",
50
50
  * },
51
51
  * ],
52
- * tools: [ // BotToolsList
53
- * { // BotTool
52
+ * tools: [ // BotLlmToolsList
53
+ * { // BotLlmTool
54
54
  * type: "function", // required
55
- * function: { // BotFunctionDefinition
55
+ * function: { // BotLlmFunctionDefinition
56
56
  * name: "STRING_VALUE", // required
57
57
  * description: "STRING_VALUE",
58
58
  * parameters: "DOCUMENT_VALUE",
59
- * integration: { // BotFunctionIntegration Union: only one key present
60
- * webhook: { // BotFunctionIntegrationWebhook
59
+ * integration: { // BotLlmFunctionIntegration Union: only one key present
60
+ * webhook: { // BotLlmFunctionIntegrationWebhook
61
61
  * url: "STRING_VALUE", // required
62
62
  * method: "get" || "post" || "put" || "delete" || "patch",
63
63
  * async: true || false,
64
- * authorization: { // BotFunctionIntegrationWebhookAuthorization Union: only one key present
65
- * bearer: { // BotFunctionIntegrationWebhookAuthorizationBearer
64
+ * authorization: { // BotLlmFunctionIntegrationWebhookAuthorization Union: only one key present
65
+ * bearer: { // BotLlmFunctionIntegrationWebhookAuthorizationBearer
66
66
  * token: "STRING_VALUE", // required
67
67
  * },
68
- * basic: { // BotFunctionIntegrationWebhookAuthorizationBasic
68
+ * basic: { // BotLlmFunctionIntegrationWebhookAuthorizationBasic
69
69
  * username: "STRING_VALUE", // required
70
70
  * password: "STRING_VALUE", // required
71
71
  * },
72
- * oauth: { // BotFunctionIntegrationWebhookAuthorizationOAuth
72
+ * oauth: { // BotLlmFunctionIntegrationWebhookAuthorizationOAuth
73
73
  * clientId: "STRING_VALUE", // required
74
74
  * clientSecret: "STRING_VALUE", // required
75
75
  * endpointUrl: "STRING_VALUE", // required
76
76
  * scope: "STRING_VALUE",
77
77
  * },
78
78
  * },
79
- * headers: [ // BotFunctionIntegrationWebhookHeadersList
80
- * { // BotFunctionIntegrationWebhookHeader
79
+ * headers: [ // BotLlmFunctionIntegrationWebhookHeadersList
80
+ * { // BotLlmFunctionIntegrationWebhookHeader
81
81
  * key: "STRING_VALUE", // required
82
82
  * value: "STRING_VALUE", // required
83
83
  * },
@@ -118,42 +118,42 @@ declare const UpdateBotCallbackCommand_base: {
118
118
  * // endpoint: { // BotEndpoint Union: only one key present
119
119
  * // llm: { // BotLlmEndpoint
120
120
  * // prompt: "STRING_VALUE", // required
121
- * // embeddedTools: [ // BotEmbeddedToolsList
122
- * // { // BotEmbeddedTool
121
+ * // embeddedTools: [ // BotLlmEmbeddedToolsList
122
+ * // { // BotLlmEmbeddedTool
123
123
  * // type: "HANDOVER" || "DELEGATE", // required
124
124
  * // name: "STRING_VALUE", // required
125
125
  * // parameters: "DOCUMENT_VALUE",
126
126
  * // },
127
127
  * // ],
128
- * // tools: [ // BotToolsList
129
- * // { // BotTool
128
+ * // tools: [ // BotLlmToolsList
129
+ * // { // BotLlmTool
130
130
  * // type: "function", // required
131
- * // function: { // BotFunctionDefinition
131
+ * // function: { // BotLlmFunctionDefinition
132
132
  * // name: "STRING_VALUE", // required
133
133
  * // description: "STRING_VALUE",
134
134
  * // parameters: "DOCUMENT_VALUE",
135
- * // integration: { // BotFunctionIntegration Union: only one key present
136
- * // webhook: { // BotFunctionIntegrationWebhook
135
+ * // integration: { // BotLlmFunctionIntegration Union: only one key present
136
+ * // webhook: { // BotLlmFunctionIntegrationWebhook
137
137
  * // url: "STRING_VALUE", // required
138
138
  * // method: "get" || "post" || "put" || "delete" || "patch",
139
139
  * // async: true || false,
140
- * // authorization: { // BotFunctionIntegrationWebhookAuthorization Union: only one key present
141
- * // bearer: { // BotFunctionIntegrationWebhookAuthorizationBearer
140
+ * // authorization: { // BotLlmFunctionIntegrationWebhookAuthorization Union: only one key present
141
+ * // bearer: { // BotLlmFunctionIntegrationWebhookAuthorizationBearer
142
142
  * // token: "STRING_VALUE", // required
143
143
  * // },
144
- * // basic: { // BotFunctionIntegrationWebhookAuthorizationBasic
144
+ * // basic: { // BotLlmFunctionIntegrationWebhookAuthorizationBasic
145
145
  * // username: "STRING_VALUE", // required
146
146
  * // password: "STRING_VALUE", // required
147
147
  * // },
148
- * // oauth: { // BotFunctionIntegrationWebhookAuthorizationOAuth
148
+ * // oauth: { // BotLlmFunctionIntegrationWebhookAuthorizationOAuth
149
149
  * // clientId: "STRING_VALUE", // required
150
150
  * // clientSecret: "STRING_VALUE", // required
151
151
  * // endpointUrl: "STRING_VALUE", // required
152
152
  * // scope: "STRING_VALUE",
153
153
  * // },
154
154
  * // },
155
- * // headers: [ // BotFunctionIntegrationWebhookHeadersList
156
- * // { // BotFunctionIntegrationWebhookHeader
155
+ * // headers: [ // BotLlmFunctionIntegrationWebhookHeadersList
156
+ * // { // BotLlmFunctionIntegrationWebhookHeader
157
157
  * // key: "STRING_VALUE", // required
158
158
  * // value: "STRING_VALUE", // required
159
159
  * // },
@@ -524,19 +524,19 @@ export declare class BotApiKeyNotFoundException extends __BaseException {
524
524
  * @public
525
525
  * @enum
526
526
  */
527
- export declare const BotEmbeddedToolType: {
527
+ export declare const BotLlmEmbeddedToolType: {
528
528
  readonly DELEGATE: "DELEGATE";
529
- readonly TRANSFER: "HANDOVER";
529
+ readonly HANDOVER: "HANDOVER";
530
530
  };
531
531
  /**
532
532
  * @public
533
533
  */
534
- export type BotEmbeddedToolType = typeof BotEmbeddedToolType[keyof typeof BotEmbeddedToolType];
534
+ export type BotLlmEmbeddedToolType = typeof BotLlmEmbeddedToolType[keyof typeof BotLlmEmbeddedToolType];
535
535
  /**
536
536
  * @public
537
537
  */
538
- export interface BotEmbeddedTool {
539
- type: BotEmbeddedToolType;
538
+ export interface BotLlmEmbeddedTool {
539
+ type: BotLlmEmbeddedToolType;
540
540
  name: string;
541
541
  /**
542
542
  * The parameters the functions accepts.
@@ -547,20 +547,20 @@ export interface BotEmbeddedTool {
547
547
  /**
548
548
  * @public
549
549
  */
550
- export interface BotFunctionIntegrationWebhookAuthorizationBasic {
550
+ export interface BotLlmFunctionIntegrationWebhookAuthorizationBasic {
551
551
  username: string;
552
552
  password: string;
553
553
  }
554
554
  /**
555
555
  * @public
556
556
  */
557
- export interface BotFunctionIntegrationWebhookAuthorizationBearer {
557
+ export interface BotLlmFunctionIntegrationWebhookAuthorizationBearer {
558
558
  token: string;
559
559
  }
560
560
  /**
561
561
  * @public
562
562
  */
563
- export interface BotFunctionIntegrationWebhookAuthorizationOAuth {
563
+ export interface BotLlmFunctionIntegrationWebhookAuthorizationOAuth {
564
564
  clientId: string;
565
565
  clientSecret: string;
566
566
  endpointUrl: string;
@@ -569,27 +569,27 @@ export interface BotFunctionIntegrationWebhookAuthorizationOAuth {
569
569
  /**
570
570
  * @public
571
571
  */
572
- export type BotFunctionIntegrationWebhookAuthorization = BotFunctionIntegrationWebhookAuthorization.BasicMember | BotFunctionIntegrationWebhookAuthorization.BearerMember | BotFunctionIntegrationWebhookAuthorization.OauthMember | BotFunctionIntegrationWebhookAuthorization.$UnknownMember;
572
+ export type BotLlmFunctionIntegrationWebhookAuthorization = BotLlmFunctionIntegrationWebhookAuthorization.BasicMember | BotLlmFunctionIntegrationWebhookAuthorization.BearerMember | BotLlmFunctionIntegrationWebhookAuthorization.OauthMember | BotLlmFunctionIntegrationWebhookAuthorization.$UnknownMember;
573
573
  /**
574
574
  * @public
575
575
  */
576
- export declare namespace BotFunctionIntegrationWebhookAuthorization {
576
+ export declare namespace BotLlmFunctionIntegrationWebhookAuthorization {
577
577
  interface BearerMember {
578
- bearer: BotFunctionIntegrationWebhookAuthorizationBearer;
578
+ bearer: BotLlmFunctionIntegrationWebhookAuthorizationBearer;
579
579
  basic?: never;
580
580
  oauth?: never;
581
581
  $unknown?: never;
582
582
  }
583
583
  interface BasicMember {
584
584
  bearer?: never;
585
- basic: BotFunctionIntegrationWebhookAuthorizationBasic;
585
+ basic: BotLlmFunctionIntegrationWebhookAuthorizationBasic;
586
586
  oauth?: never;
587
587
  $unknown?: never;
588
588
  }
589
589
  interface OauthMember {
590
590
  bearer?: never;
591
591
  basic?: never;
592
- oauth: BotFunctionIntegrationWebhookAuthorizationOAuth;
592
+ oauth: BotLlmFunctionIntegrationWebhookAuthorizationOAuth;
593
593
  $unknown?: never;
594
594
  }
595
595
  /**
@@ -602,17 +602,17 @@ export declare namespace BotFunctionIntegrationWebhookAuthorization {
602
602
  $unknown: [string, any];
603
603
  }
604
604
  interface Visitor<T> {
605
- bearer: (value: BotFunctionIntegrationWebhookAuthorizationBearer) => T;
606
- basic: (value: BotFunctionIntegrationWebhookAuthorizationBasic) => T;
607
- oauth: (value: BotFunctionIntegrationWebhookAuthorizationOAuth) => T;
605
+ bearer: (value: BotLlmFunctionIntegrationWebhookAuthorizationBearer) => T;
606
+ basic: (value: BotLlmFunctionIntegrationWebhookAuthorizationBasic) => T;
607
+ oauth: (value: BotLlmFunctionIntegrationWebhookAuthorizationOAuth) => T;
608
608
  _: (name: string, value: any) => T;
609
609
  }
610
- const visit: <T>(value: BotFunctionIntegrationWebhookAuthorization, visitor: Visitor<T>) => T;
610
+ const visit: <T>(value: BotLlmFunctionIntegrationWebhookAuthorization, visitor: Visitor<T>) => T;
611
611
  }
612
612
  /**
613
613
  * @public
614
614
  */
615
- export interface BotFunctionIntegrationWebhookHeader {
615
+ export interface BotLlmFunctionIntegrationWebhookHeader {
616
616
  key: string;
617
617
  value: string;
618
618
  }
@@ -620,7 +620,7 @@ export interface BotFunctionIntegrationWebhookHeader {
620
620
  * @public
621
621
  * @enum
622
622
  */
623
- export declare const BotFunctionIntegrationMethod: {
623
+ export declare const BotLlmFunctionIntegrationMethod: {
624
624
  readonly DELETE: "delete";
625
625
  readonly GET: "get";
626
626
  readonly PATCH: "patch";
@@ -630,28 +630,28 @@ export declare const BotFunctionIntegrationMethod: {
630
630
  /**
631
631
  * @public
632
632
  */
633
- export type BotFunctionIntegrationMethod = typeof BotFunctionIntegrationMethod[keyof typeof BotFunctionIntegrationMethod];
633
+ export type BotLlmFunctionIntegrationMethod = typeof BotLlmFunctionIntegrationMethod[keyof typeof BotLlmFunctionIntegrationMethod];
634
634
  /**
635
635
  * @public
636
636
  */
637
- export interface BotFunctionIntegrationWebhook {
637
+ export interface BotLlmFunctionIntegrationWebhook {
638
638
  url: string;
639
- method?: BotFunctionIntegrationMethod;
639
+ method?: BotLlmFunctionIntegrationMethod;
640
640
  async?: boolean;
641
- authorization?: BotFunctionIntegrationWebhookAuthorization;
642
- headers?: (BotFunctionIntegrationWebhookHeader)[];
641
+ authorization?: BotLlmFunctionIntegrationWebhookAuthorization;
642
+ headers?: (BotLlmFunctionIntegrationWebhookHeader)[];
643
643
  parameters?: __DocumentType;
644
644
  }
645
645
  /**
646
646
  * @public
647
647
  */
648
- export type BotFunctionIntegration = BotFunctionIntegration.WebhookMember | BotFunctionIntegration.$UnknownMember;
648
+ export type BotLlmFunctionIntegration = BotLlmFunctionIntegration.WebhookMember | BotLlmFunctionIntegration.$UnknownMember;
649
649
  /**
650
650
  * @public
651
651
  */
652
- export declare namespace BotFunctionIntegration {
652
+ export declare namespace BotLlmFunctionIntegration {
653
653
  interface WebhookMember {
654
- webhook: BotFunctionIntegrationWebhook;
654
+ webhook: BotLlmFunctionIntegrationWebhook;
655
655
  $unknown?: never;
656
656
  }
657
657
  /**
@@ -662,15 +662,15 @@ export declare namespace BotFunctionIntegration {
662
662
  $unknown: [string, any];
663
663
  }
664
664
  interface Visitor<T> {
665
- webhook: (value: BotFunctionIntegrationWebhook) => T;
665
+ webhook: (value: BotLlmFunctionIntegrationWebhook) => T;
666
666
  _: (name: string, value: any) => T;
667
667
  }
668
- const visit: <T>(value: BotFunctionIntegration, visitor: Visitor<T>) => T;
668
+ const visit: <T>(value: BotLlmFunctionIntegration, visitor: Visitor<T>) => T;
669
669
  }
670
670
  /**
671
671
  * @public
672
672
  */
673
- export interface BotFunctionDefinition {
673
+ export interface BotLlmFunctionDefinition {
674
674
  /**
675
675
  * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
676
676
  * @public
@@ -686,25 +686,25 @@ export interface BotFunctionDefinition {
686
686
  * @public
687
687
  */
688
688
  parameters?: __DocumentType;
689
- integration?: BotFunctionIntegration;
689
+ integration?: BotLlmFunctionIntegration;
690
690
  }
691
691
  /**
692
692
  * @public
693
693
  * @enum
694
694
  */
695
- export declare const BotToolType: {
695
+ export declare const BotLlmToolType: {
696
696
  readonly FUNCTION: "function";
697
697
  };
698
698
  /**
699
699
  * @public
700
700
  */
701
- export type BotToolType = typeof BotToolType[keyof typeof BotToolType];
701
+ export type BotLlmToolType = typeof BotLlmToolType[keyof typeof BotLlmToolType];
702
702
  /**
703
703
  * @public
704
704
  */
705
- export interface BotTool {
706
- type: BotToolType;
707
- function?: BotFunctionDefinition;
705
+ export interface BotLlmTool {
706
+ type: BotLlmToolType;
707
+ function?: BotLlmFunctionDefinition;
708
708
  }
709
709
  /**
710
710
  * @public
@@ -712,15 +712,15 @@ export interface BotTool {
712
712
  export interface BotLlmEndpoint {
713
713
  prompt: string;
714
714
  /**
715
- * Embedded functions to use within voice session.
715
+ * Embedded functions to use within chat session.
716
716
  * @public
717
717
  */
718
- embeddedTools?: (BotEmbeddedTool)[];
718
+ embeddedTools?: (BotLlmEmbeddedTool)[];
719
719
  /**
720
- * Custom tools to be used within voice session.
720
+ * Custom tools to be used within chat session.
721
721
  * @public
722
722
  */
723
- tools?: (BotTool)[];
723
+ tools?: (BotLlmTool)[];
724
724
  }
725
725
  /**
726
726
  * @public
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.34",
4
+ "version": "1.0.35",
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",