@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.
- package/dist-cjs/models/models_0.js +13 -13
- package/dist-cjs/protocols/Aws_restJson1.js +57 -57
- package/dist-es/models/models_0.js +12 -12
- package/dist-es/protocols/Aws_restJson1.js +58 -58
- package/dist-types/commands/CreateBotCommand.d.ts +13 -13
- package/dist-types/commands/GetBotCallbackCommand.d.ts +13 -13
- package/dist-types/commands/UpdateBotCallbackCommand.d.ts +26 -26
- package/dist-types/models/models_0.d.ts +40 -40
- package/package.json +1 -1
|
@@ -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.
|
|
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.
|
|
85
|
+
exports.BotLlmEmbeddedToolType = {
|
|
86
86
|
DELEGATE: "DELEGATE",
|
|
87
|
-
|
|
87
|
+
HANDOVER: "HANDOVER",
|
|
88
88
|
};
|
|
89
|
-
var
|
|
90
|
-
(function (
|
|
91
|
-
|
|
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
|
-
})(
|
|
101
|
-
exports.
|
|
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
|
|
109
|
-
(function (
|
|
110
|
-
|
|
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
|
-
})(
|
|
116
|
-
exports.
|
|
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
|
|
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
|
|
1016
|
+
const se_BotLlmEmbeddedToolsList = (input, context) => {
|
|
1007
1017
|
return input.filter((e) => e != null).map(entry => {
|
|
1008
|
-
return
|
|
1018
|
+
return se_BotLlmEmbeddedTool(entry, context);
|
|
1009
1019
|
});
|
|
1010
1020
|
};
|
|
1011
|
-
const
|
|
1012
|
-
return
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
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
|
|
1028
|
+
const se_BotLlmFunctionDefinition = (input, context) => {
|
|
1022
1029
|
return (0, smithy_client_1.take)(input, {
|
|
1023
1030
|
'description': [],
|
|
1024
|
-
'integration': _ =>
|
|
1031
|
+
'integration': _ => se_BotLlmFunctionIntegration(_, context),
|
|
1025
1032
|
'name': [],
|
|
1026
1033
|
'parameters': _ => se_Document(_, context),
|
|
1027
1034
|
});
|
|
1028
1035
|
};
|
|
1029
|
-
const
|
|
1030
|
-
return models_0_1.
|
|
1031
|
-
webhook: value => ({ "webhook":
|
|
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
|
|
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
|
|
1052
|
+
const se_BotLlmTool = (input, context) => {
|
|
1046
1053
|
return (0, smithy_client_1.take)(input, {
|
|
1047
|
-
'
|
|
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
|
|
1058
|
+
const se_BotLlmToolsList = (input, context) => {
|
|
1059
1059
|
return input.filter((e) => e != null).map(entry => {
|
|
1060
|
-
return
|
|
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
|
|
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': (_) =>
|
|
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
|
|
1135
|
+
const de_BotLlmFunctionIntegration = (output, context) => {
|
|
1129
1136
|
if (output.webhook != null) {
|
|
1130
1137
|
return {
|
|
1131
|
-
webhook:
|
|
1138
|
+
webhook: de_BotLlmFunctionIntegrationWebhook(output.webhook, context)
|
|
1132
1139
|
};
|
|
1133
1140
|
}
|
|
1134
1141
|
return { $unknown: Object.entries(output)[0] };
|
|
1135
1142
|
};
|
|
1136
|
-
const
|
|
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
|
|
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': (_) =>
|
|
1155
|
+
'function': (_) => de_BotLlmFunctionDefinition(_, context),
|
|
1156
1156
|
'type': smithy_client_1.expectString,
|
|
1157
1157
|
});
|
|
1158
1158
|
};
|
|
1159
|
-
const
|
|
1159
|
+
const de_BotLlmToolsList = (output, context) => {
|
|
1160
1160
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1161
|
-
return
|
|
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
|
|
79
|
+
export const BotLlmEmbeddedToolType = {
|
|
80
80
|
DELEGATE: "DELEGATE",
|
|
81
|
-
|
|
81
|
+
HANDOVER: "HANDOVER",
|
|
82
82
|
};
|
|
83
|
-
export var
|
|
84
|
-
(function (
|
|
85
|
-
|
|
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
|
-
})(
|
|
95
|
-
export const
|
|
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
|
|
103
|
-
(function (
|
|
104
|
-
|
|
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
|
-
})(
|
|
110
|
-
export const
|
|
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,
|
|
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
|
|
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
|
|
960
|
+
const se_BotLlmEmbeddedToolsList = (input, context) => {
|
|
951
961
|
return input.filter((e) => e != null).map(entry => {
|
|
952
|
-
return
|
|
962
|
+
return se_BotLlmEmbeddedTool(entry, context);
|
|
953
963
|
});
|
|
954
964
|
};
|
|
955
|
-
const
|
|
956
|
-
return
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
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
|
|
972
|
+
const se_BotLlmFunctionDefinition = (input, context) => {
|
|
966
973
|
return take(input, {
|
|
967
974
|
'description': [],
|
|
968
|
-
'integration': _ =>
|
|
975
|
+
'integration': _ => se_BotLlmFunctionIntegration(_, context),
|
|
969
976
|
'name': [],
|
|
970
977
|
'parameters': _ => se_Document(_, context),
|
|
971
978
|
});
|
|
972
979
|
};
|
|
973
|
-
const
|
|
974
|
-
return
|
|
975
|
-
webhook: value => ({ "webhook":
|
|
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
|
|
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
|
|
996
|
+
const se_BotLlmTool = (input, context) => {
|
|
990
997
|
return take(input, {
|
|
991
|
-
'
|
|
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
|
|
1002
|
+
const se_BotLlmToolsList = (input, context) => {
|
|
1003
1003
|
return input.filter((e) => e != null).map(entry => {
|
|
1004
|
-
return
|
|
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
|
|
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': (_) =>
|
|
1074
|
+
'integration': (_) => de_BotLlmFunctionIntegration(__expectUnion(_), context),
|
|
1068
1075
|
'name': __expectString,
|
|
1069
1076
|
'parameters': (_) => de_Document(_, context),
|
|
1070
1077
|
});
|
|
1071
1078
|
};
|
|
1072
|
-
const
|
|
1079
|
+
const de_BotLlmFunctionIntegration = (output, context) => {
|
|
1073
1080
|
if (output.webhook != null) {
|
|
1074
1081
|
return {
|
|
1075
|
-
webhook:
|
|
1082
|
+
webhook: de_BotLlmFunctionIntegrationWebhook(output.webhook, context)
|
|
1076
1083
|
};
|
|
1077
1084
|
}
|
|
1078
1085
|
return { $unknown: Object.entries(output)[0] };
|
|
1079
1086
|
};
|
|
1080
|
-
const
|
|
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
|
|
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': (_) =>
|
|
1099
|
+
'function': (_) => de_BotLlmFunctionDefinition(_, context),
|
|
1100
1100
|
'type': __expectString,
|
|
1101
1101
|
});
|
|
1102
1102
|
};
|
|
1103
|
-
const
|
|
1103
|
+
const de_BotLlmToolsList = (output, context) => {
|
|
1104
1104
|
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1105
|
-
return
|
|
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: [ //
|
|
48
|
-
* { //
|
|
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: [ //
|
|
55
|
-
* { //
|
|
54
|
+
* tools: [ // BotLlmToolsList
|
|
55
|
+
* { // BotLlmTool
|
|
56
56
|
* type: "function", // required
|
|
57
|
-
* function: { //
|
|
57
|
+
* function: { // BotLlmFunctionDefinition
|
|
58
58
|
* name: "STRING_VALUE", // required
|
|
59
59
|
* description: "STRING_VALUE",
|
|
60
60
|
* parameters: "DOCUMENT_VALUE",
|
|
61
|
-
* integration: { //
|
|
62
|
-
* webhook: { //
|
|
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: { //
|
|
67
|
-
* bearer: { //
|
|
66
|
+
* authorization: { // BotLlmFunctionIntegrationWebhookAuthorization Union: only one key present
|
|
67
|
+
* bearer: { // BotLlmFunctionIntegrationWebhookAuthorizationBearer
|
|
68
68
|
* token: "STRING_VALUE", // required
|
|
69
69
|
* },
|
|
70
|
-
* basic: { //
|
|
70
|
+
* basic: { // BotLlmFunctionIntegrationWebhookAuthorizationBasic
|
|
71
71
|
* username: "STRING_VALUE", // required
|
|
72
72
|
* password: "STRING_VALUE", // required
|
|
73
73
|
* },
|
|
74
|
-
* oauth: { //
|
|
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: [ //
|
|
82
|
-
* { //
|
|
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: [ //
|
|
50
|
-
* // { //
|
|
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: [ //
|
|
57
|
-
* // { //
|
|
56
|
+
* // tools: [ // BotLlmToolsList
|
|
57
|
+
* // { // BotLlmTool
|
|
58
58
|
* // type: "function", // required
|
|
59
|
-
* // function: { //
|
|
59
|
+
* // function: { // BotLlmFunctionDefinition
|
|
60
60
|
* // name: "STRING_VALUE", // required
|
|
61
61
|
* // description: "STRING_VALUE",
|
|
62
62
|
* // parameters: "DOCUMENT_VALUE",
|
|
63
|
-
* // integration: { //
|
|
64
|
-
* // webhook: { //
|
|
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: { //
|
|
69
|
-
* // bearer: { //
|
|
68
|
+
* // authorization: { // BotLlmFunctionIntegrationWebhookAuthorization Union: only one key present
|
|
69
|
+
* // bearer: { // BotLlmFunctionIntegrationWebhookAuthorizationBearer
|
|
70
70
|
* // token: "STRING_VALUE", // required
|
|
71
71
|
* // },
|
|
72
|
-
* // basic: { //
|
|
72
|
+
* // basic: { // BotLlmFunctionIntegrationWebhookAuthorizationBasic
|
|
73
73
|
* // username: "STRING_VALUE", // required
|
|
74
74
|
* // password: "STRING_VALUE", // required
|
|
75
75
|
* // },
|
|
76
|
-
* // oauth: { //
|
|
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: [ //
|
|
84
|
-
* // { //
|
|
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: [ //
|
|
46
|
-
* { //
|
|
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: [ //
|
|
53
|
-
* { //
|
|
52
|
+
* tools: [ // BotLlmToolsList
|
|
53
|
+
* { // BotLlmTool
|
|
54
54
|
* type: "function", // required
|
|
55
|
-
* function: { //
|
|
55
|
+
* function: { // BotLlmFunctionDefinition
|
|
56
56
|
* name: "STRING_VALUE", // required
|
|
57
57
|
* description: "STRING_VALUE",
|
|
58
58
|
* parameters: "DOCUMENT_VALUE",
|
|
59
|
-
* integration: { //
|
|
60
|
-
* webhook: { //
|
|
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: { //
|
|
65
|
-
* bearer: { //
|
|
64
|
+
* authorization: { // BotLlmFunctionIntegrationWebhookAuthorization Union: only one key present
|
|
65
|
+
* bearer: { // BotLlmFunctionIntegrationWebhookAuthorizationBearer
|
|
66
66
|
* token: "STRING_VALUE", // required
|
|
67
67
|
* },
|
|
68
|
-
* basic: { //
|
|
68
|
+
* basic: { // BotLlmFunctionIntegrationWebhookAuthorizationBasic
|
|
69
69
|
* username: "STRING_VALUE", // required
|
|
70
70
|
* password: "STRING_VALUE", // required
|
|
71
71
|
* },
|
|
72
|
-
* oauth: { //
|
|
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: [ //
|
|
80
|
-
* { //
|
|
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: [ //
|
|
122
|
-
* // { //
|
|
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: [ //
|
|
129
|
-
* // { //
|
|
128
|
+
* // tools: [ // BotLlmToolsList
|
|
129
|
+
* // { // BotLlmTool
|
|
130
130
|
* // type: "function", // required
|
|
131
|
-
* // function: { //
|
|
131
|
+
* // function: { // BotLlmFunctionDefinition
|
|
132
132
|
* // name: "STRING_VALUE", // required
|
|
133
133
|
* // description: "STRING_VALUE",
|
|
134
134
|
* // parameters: "DOCUMENT_VALUE",
|
|
135
|
-
* // integration: { //
|
|
136
|
-
* // webhook: { //
|
|
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: { //
|
|
141
|
-
* // bearer: { //
|
|
140
|
+
* // authorization: { // BotLlmFunctionIntegrationWebhookAuthorization Union: only one key present
|
|
141
|
+
* // bearer: { // BotLlmFunctionIntegrationWebhookAuthorizationBearer
|
|
142
142
|
* // token: "STRING_VALUE", // required
|
|
143
143
|
* // },
|
|
144
|
-
* // basic: { //
|
|
144
|
+
* // basic: { // BotLlmFunctionIntegrationWebhookAuthorizationBasic
|
|
145
145
|
* // username: "STRING_VALUE", // required
|
|
146
146
|
* // password: "STRING_VALUE", // required
|
|
147
147
|
* // },
|
|
148
|
-
* // oauth: { //
|
|
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: [ //
|
|
156
|
-
* // { //
|
|
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
|
|
527
|
+
export declare const BotLlmEmbeddedToolType: {
|
|
528
528
|
readonly DELEGATE: "DELEGATE";
|
|
529
|
-
readonly
|
|
529
|
+
readonly HANDOVER: "HANDOVER";
|
|
530
530
|
};
|
|
531
531
|
/**
|
|
532
532
|
* @public
|
|
533
533
|
*/
|
|
534
|
-
export type
|
|
534
|
+
export type BotLlmEmbeddedToolType = typeof BotLlmEmbeddedToolType[keyof typeof BotLlmEmbeddedToolType];
|
|
535
535
|
/**
|
|
536
536
|
* @public
|
|
537
537
|
*/
|
|
538
|
-
export interface
|
|
539
|
-
type:
|
|
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
|
|
550
|
+
export interface BotLlmFunctionIntegrationWebhookAuthorizationBasic {
|
|
551
551
|
username: string;
|
|
552
552
|
password: string;
|
|
553
553
|
}
|
|
554
554
|
/**
|
|
555
555
|
* @public
|
|
556
556
|
*/
|
|
557
|
-
export interface
|
|
557
|
+
export interface BotLlmFunctionIntegrationWebhookAuthorizationBearer {
|
|
558
558
|
token: string;
|
|
559
559
|
}
|
|
560
560
|
/**
|
|
561
561
|
* @public
|
|
562
562
|
*/
|
|
563
|
-
export interface
|
|
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
|
|
572
|
+
export type BotLlmFunctionIntegrationWebhookAuthorization = BotLlmFunctionIntegrationWebhookAuthorization.BasicMember | BotLlmFunctionIntegrationWebhookAuthorization.BearerMember | BotLlmFunctionIntegrationWebhookAuthorization.OauthMember | BotLlmFunctionIntegrationWebhookAuthorization.$UnknownMember;
|
|
573
573
|
/**
|
|
574
574
|
* @public
|
|
575
575
|
*/
|
|
576
|
-
export declare namespace
|
|
576
|
+
export declare namespace BotLlmFunctionIntegrationWebhookAuthorization {
|
|
577
577
|
interface BearerMember {
|
|
578
|
-
bearer:
|
|
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:
|
|
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:
|
|
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:
|
|
606
|
-
basic: (value:
|
|
607
|
-
oauth: (value:
|
|
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:
|
|
610
|
+
const visit: <T>(value: BotLlmFunctionIntegrationWebhookAuthorization, visitor: Visitor<T>) => T;
|
|
611
611
|
}
|
|
612
612
|
/**
|
|
613
613
|
* @public
|
|
614
614
|
*/
|
|
615
|
-
export interface
|
|
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
|
|
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
|
|
633
|
+
export type BotLlmFunctionIntegrationMethod = typeof BotLlmFunctionIntegrationMethod[keyof typeof BotLlmFunctionIntegrationMethod];
|
|
634
634
|
/**
|
|
635
635
|
* @public
|
|
636
636
|
*/
|
|
637
|
-
export interface
|
|
637
|
+
export interface BotLlmFunctionIntegrationWebhook {
|
|
638
638
|
url: string;
|
|
639
|
-
method?:
|
|
639
|
+
method?: BotLlmFunctionIntegrationMethod;
|
|
640
640
|
async?: boolean;
|
|
641
|
-
authorization?:
|
|
642
|
-
headers?: (
|
|
641
|
+
authorization?: BotLlmFunctionIntegrationWebhookAuthorization;
|
|
642
|
+
headers?: (BotLlmFunctionIntegrationWebhookHeader)[];
|
|
643
643
|
parameters?: __DocumentType;
|
|
644
644
|
}
|
|
645
645
|
/**
|
|
646
646
|
* @public
|
|
647
647
|
*/
|
|
648
|
-
export type
|
|
648
|
+
export type BotLlmFunctionIntegration = BotLlmFunctionIntegration.WebhookMember | BotLlmFunctionIntegration.$UnknownMember;
|
|
649
649
|
/**
|
|
650
650
|
* @public
|
|
651
651
|
*/
|
|
652
|
-
export declare namespace
|
|
652
|
+
export declare namespace BotLlmFunctionIntegration {
|
|
653
653
|
interface WebhookMember {
|
|
654
|
-
webhook:
|
|
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:
|
|
665
|
+
webhook: (value: BotLlmFunctionIntegrationWebhook) => T;
|
|
666
666
|
_: (name: string, value: any) => T;
|
|
667
667
|
}
|
|
668
|
-
const visit: <T>(value:
|
|
668
|
+
const visit: <T>(value: BotLlmFunctionIntegration, visitor: Visitor<T>) => T;
|
|
669
669
|
}
|
|
670
670
|
/**
|
|
671
671
|
* @public
|
|
672
672
|
*/
|
|
673
|
-
export interface
|
|
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?:
|
|
689
|
+
integration?: BotLlmFunctionIntegration;
|
|
690
690
|
}
|
|
691
691
|
/**
|
|
692
692
|
* @public
|
|
693
693
|
* @enum
|
|
694
694
|
*/
|
|
695
|
-
export declare const
|
|
695
|
+
export declare const BotLlmToolType: {
|
|
696
696
|
readonly FUNCTION: "function";
|
|
697
697
|
};
|
|
698
698
|
/**
|
|
699
699
|
* @public
|
|
700
700
|
*/
|
|
701
|
-
export type
|
|
701
|
+
export type BotLlmToolType = typeof BotLlmToolType[keyof typeof BotLlmToolType];
|
|
702
702
|
/**
|
|
703
703
|
* @public
|
|
704
704
|
*/
|
|
705
|
-
export interface
|
|
706
|
-
type:
|
|
707
|
-
function?:
|
|
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
|
|
715
|
+
* Embedded functions to use within chat session.
|
|
716
716
|
* @public
|
|
717
717
|
*/
|
|
718
|
-
embeddedTools?: (
|
|
718
|
+
embeddedTools?: (BotLlmEmbeddedTool)[];
|
|
719
719
|
/**
|
|
720
|
-
* Custom tools to be used within
|
|
720
|
+
* Custom tools to be used within chat session.
|
|
721
721
|
* @public
|
|
722
722
|
*/
|
|
723
|
-
tools?: (
|
|
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.
|
|
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",
|