@vendasta/ai-assistants 0.60.0 → 0.62.0
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/esm2020/lib/_internal/enums/assistant.enum.mjs +2 -1
- package/esm2020/lib/_internal/function.api.service.mjs +12 -2
- package/esm2020/lib/_internal/goal.api.service.mjs +7 -2
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/assistant.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/function.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/goal.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/prompt.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +7 -1
- package/esm2020/lib/_internal/objects/assistant.mjs +27 -1
- package/esm2020/lib/_internal/objects/function.mjs +175 -1
- package/esm2020/lib/_internal/objects/goal.mjs +85 -1
- package/esm2020/lib/_internal/objects/index.mjs +4 -4
- package/esm2020/lib/_internal/objects/prompt.mjs +4 -1
- package/fesm2015/vendasta-ai-assistants.mjs +310 -1
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +310 -1
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/enums/assistant.enum.d.ts +2 -1
- package/lib/_internal/function.api.service.d.ts +4 -2
- package/lib/_internal/goal.api.service.d.ts +3 -2
- package/lib/_internal/interfaces/api.interface.d.ts +2 -0
- package/lib/_internal/interfaces/assistant.interface.d.ts +4 -0
- package/lib/_internal/interfaces/function.interface.d.ts +30 -0
- package/lib/_internal/interfaces/goal.interface.d.ts +14 -0
- package/lib/_internal/interfaces/index.d.ts +3 -3
- package/lib/_internal/interfaces/prompt.interface.d.ts +1 -0
- package/lib/_internal/objects/api.d.ts +2 -0
- package/lib/_internal/objects/assistant.d.ts +7 -0
- package/lib/_internal/objects/function.d.ts +48 -0
- package/lib/_internal/objects/goal.d.ts +23 -0
- package/lib/_internal/objects/index.d.ts +3 -3
- package/lib/_internal/objects/prompt.d.ts +1 -0
- package/package.json +1 -1
|
@@ -156,6 +156,7 @@ var VendorModel;
|
|
|
156
156
|
VendorModel[VendorModel["VENDOR_MODEL_OPEN_AI_REALTIME"] = 1] = "VENDOR_MODEL_OPEN_AI_REALTIME";
|
|
157
157
|
VendorModel[VendorModel["VENDOR_MODEL_DEEPGRAM"] = 2] = "VENDOR_MODEL_DEEPGRAM";
|
|
158
158
|
VendorModel[VendorModel["VENDOR_MODEL_ELEVEN_LABS"] = 3] = "VENDOR_MODEL_ELEVEN_LABS";
|
|
159
|
+
VendorModel[VendorModel["VENDOR_MODEL_OPEN_AI"] = 4] = "VENDOR_MODEL_OPEN_AI";
|
|
159
160
|
})(VendorModel || (VendorModel = {}));
|
|
160
161
|
|
|
161
162
|
// *********************************
|
|
@@ -583,6 +584,9 @@ class CreateMCPFromIntegrationRequest {
|
|
|
583
584
|
if (typeof this.connectionId !== 'undefined') {
|
|
584
585
|
toReturn['connectionId'] = this.connectionId;
|
|
585
586
|
}
|
|
587
|
+
if (typeof this.sourcePath !== 'undefined') {
|
|
588
|
+
toReturn['sourcePath'] = this.sourcePath;
|
|
589
|
+
}
|
|
586
590
|
return toReturn;
|
|
587
591
|
}
|
|
588
592
|
}
|
|
@@ -709,6 +713,9 @@ class Function {
|
|
|
709
713
|
if (typeof this.constraints !== 'undefined' && this.constraints !== null) {
|
|
710
714
|
toReturn['constraints'] = 'toApiJson' in this.constraints ? this.constraints.toApiJson() : this.constraints;
|
|
711
715
|
}
|
|
716
|
+
if (typeof this.sourcePath !== 'undefined') {
|
|
717
|
+
toReturn['sourcePath'] = this.sourcePath;
|
|
718
|
+
}
|
|
712
719
|
return toReturn;
|
|
713
720
|
}
|
|
714
721
|
}
|
|
@@ -1029,6 +1036,9 @@ class MCP {
|
|
|
1029
1036
|
if (typeof this.authStrategy !== 'undefined' && this.authStrategy !== null) {
|
|
1030
1037
|
toReturn['authStrategy'] = 'toApiJson' in this.authStrategy ? this.authStrategy.toApiJson() : this.authStrategy;
|
|
1031
1038
|
}
|
|
1039
|
+
if (typeof this.sourcePath !== 'undefined') {
|
|
1040
|
+
toReturn['sourcePath'] = this.sourcePath;
|
|
1041
|
+
}
|
|
1032
1042
|
return toReturn;
|
|
1033
1043
|
}
|
|
1034
1044
|
}
|
|
@@ -1107,6 +1117,171 @@ class UpsertMCPRequest {
|
|
|
1107
1117
|
if (typeof this.authStrategy !== 'undefined' && this.authStrategy !== null) {
|
|
1108
1118
|
toReturn['authStrategy'] = 'toApiJson' in this.authStrategy ? this.authStrategy.toApiJson() : this.authStrategy;
|
|
1109
1119
|
}
|
|
1120
|
+
if (typeof this.sourcePath !== 'undefined') {
|
|
1121
|
+
toReturn['sourcePath'] = this.sourcePath;
|
|
1122
|
+
}
|
|
1123
|
+
return toReturn;
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
class ValidateFunctionsRequest {
|
|
1127
|
+
static fromProto(proto) {
|
|
1128
|
+
let m = new ValidateFunctionsRequest();
|
|
1129
|
+
m = Object.assign(m, proto);
|
|
1130
|
+
if (proto.functions) {
|
|
1131
|
+
m.functions = proto.functions.map(Function.fromProto);
|
|
1132
|
+
}
|
|
1133
|
+
return m;
|
|
1134
|
+
}
|
|
1135
|
+
constructor(kwargs) {
|
|
1136
|
+
if (!kwargs) {
|
|
1137
|
+
return;
|
|
1138
|
+
}
|
|
1139
|
+
Object.assign(this, kwargs);
|
|
1140
|
+
}
|
|
1141
|
+
toApiJson() {
|
|
1142
|
+
const toReturn = {};
|
|
1143
|
+
if (typeof this.functions !== 'undefined' && this.functions !== null) {
|
|
1144
|
+
toReturn['functions'] = 'toApiJson' in this.functions ? this.functions.toApiJson() : this.functions;
|
|
1145
|
+
}
|
|
1146
|
+
return toReturn;
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
class ValidateFunctionsResponse {
|
|
1150
|
+
static fromProto(proto) {
|
|
1151
|
+
let m = new ValidateFunctionsResponse();
|
|
1152
|
+
m = Object.assign(m, proto);
|
|
1153
|
+
if (proto.results) {
|
|
1154
|
+
m.results = proto.results.map(ValidateFunctionsResponseValidationResult.fromProto);
|
|
1155
|
+
}
|
|
1156
|
+
return m;
|
|
1157
|
+
}
|
|
1158
|
+
constructor(kwargs) {
|
|
1159
|
+
if (!kwargs) {
|
|
1160
|
+
return;
|
|
1161
|
+
}
|
|
1162
|
+
Object.assign(this, kwargs);
|
|
1163
|
+
}
|
|
1164
|
+
toApiJson() {
|
|
1165
|
+
const toReturn = {};
|
|
1166
|
+
if (typeof this.results !== 'undefined' && this.results !== null) {
|
|
1167
|
+
toReturn['results'] = 'toApiJson' in this.results ? this.results.toApiJson() : this.results;
|
|
1168
|
+
}
|
|
1169
|
+
if (typeof this.allValid !== 'undefined') {
|
|
1170
|
+
toReturn['allValid'] = this.allValid;
|
|
1171
|
+
}
|
|
1172
|
+
return toReturn;
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
class ValidateMCPsRequest {
|
|
1176
|
+
static fromProto(proto) {
|
|
1177
|
+
let m = new ValidateMCPsRequest();
|
|
1178
|
+
m = Object.assign(m, proto);
|
|
1179
|
+
if (proto.mcps) {
|
|
1180
|
+
m.mcps = proto.mcps.map(MCP.fromProto);
|
|
1181
|
+
}
|
|
1182
|
+
return m;
|
|
1183
|
+
}
|
|
1184
|
+
constructor(kwargs) {
|
|
1185
|
+
if (!kwargs) {
|
|
1186
|
+
return;
|
|
1187
|
+
}
|
|
1188
|
+
Object.assign(this, kwargs);
|
|
1189
|
+
}
|
|
1190
|
+
toApiJson() {
|
|
1191
|
+
const toReturn = {};
|
|
1192
|
+
if (typeof this.mcps !== 'undefined' && this.mcps !== null) {
|
|
1193
|
+
toReturn['mcps'] = 'toApiJson' in this.mcps ? this.mcps.toApiJson() : this.mcps;
|
|
1194
|
+
}
|
|
1195
|
+
return toReturn;
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
class ValidateMCPsResponse {
|
|
1199
|
+
static fromProto(proto) {
|
|
1200
|
+
let m = new ValidateMCPsResponse();
|
|
1201
|
+
m = Object.assign(m, proto);
|
|
1202
|
+
if (proto.results) {
|
|
1203
|
+
m.results = proto.results.map(ValidateMCPsResponseValidationResult.fromProto);
|
|
1204
|
+
}
|
|
1205
|
+
return m;
|
|
1206
|
+
}
|
|
1207
|
+
constructor(kwargs) {
|
|
1208
|
+
if (!kwargs) {
|
|
1209
|
+
return;
|
|
1210
|
+
}
|
|
1211
|
+
Object.assign(this, kwargs);
|
|
1212
|
+
}
|
|
1213
|
+
toApiJson() {
|
|
1214
|
+
const toReturn = {};
|
|
1215
|
+
if (typeof this.results !== 'undefined' && this.results !== null) {
|
|
1216
|
+
toReturn['results'] = 'toApiJson' in this.results ? this.results.toApiJson() : this.results;
|
|
1217
|
+
}
|
|
1218
|
+
if (typeof this.allValid !== 'undefined') {
|
|
1219
|
+
toReturn['allValid'] = this.allValid;
|
|
1220
|
+
}
|
|
1221
|
+
return toReturn;
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
class ValidateFunctionsResponseValidationResult {
|
|
1225
|
+
static fromProto(proto) {
|
|
1226
|
+
let m = new ValidateFunctionsResponseValidationResult();
|
|
1227
|
+
m = Object.assign(m, proto);
|
|
1228
|
+
if (proto.namespace) {
|
|
1229
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1230
|
+
}
|
|
1231
|
+
return m;
|
|
1232
|
+
}
|
|
1233
|
+
constructor(kwargs) {
|
|
1234
|
+
if (!kwargs) {
|
|
1235
|
+
return;
|
|
1236
|
+
}
|
|
1237
|
+
Object.assign(this, kwargs);
|
|
1238
|
+
}
|
|
1239
|
+
toApiJson() {
|
|
1240
|
+
const toReturn = {};
|
|
1241
|
+
if (typeof this.functionId !== 'undefined') {
|
|
1242
|
+
toReturn['functionId'] = this.functionId;
|
|
1243
|
+
}
|
|
1244
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1245
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1246
|
+
}
|
|
1247
|
+
if (typeof this.isValid !== 'undefined') {
|
|
1248
|
+
toReturn['isValid'] = this.isValid;
|
|
1249
|
+
}
|
|
1250
|
+
if (typeof this.errorMessage !== 'undefined') {
|
|
1251
|
+
toReturn['errorMessage'] = this.errorMessage;
|
|
1252
|
+
}
|
|
1253
|
+
return toReturn;
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
class ValidateMCPsResponseValidationResult {
|
|
1257
|
+
static fromProto(proto) {
|
|
1258
|
+
let m = new ValidateMCPsResponseValidationResult();
|
|
1259
|
+
m = Object.assign(m, proto);
|
|
1260
|
+
if (proto.namespace) {
|
|
1261
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1262
|
+
}
|
|
1263
|
+
return m;
|
|
1264
|
+
}
|
|
1265
|
+
constructor(kwargs) {
|
|
1266
|
+
if (!kwargs) {
|
|
1267
|
+
return;
|
|
1268
|
+
}
|
|
1269
|
+
Object.assign(this, kwargs);
|
|
1270
|
+
}
|
|
1271
|
+
toApiJson() {
|
|
1272
|
+
const toReturn = {};
|
|
1273
|
+
if (typeof this.mcpId !== 'undefined') {
|
|
1274
|
+
toReturn['mcpId'] = this.mcpId;
|
|
1275
|
+
}
|
|
1276
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1277
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1278
|
+
}
|
|
1279
|
+
if (typeof this.isValid !== 'undefined') {
|
|
1280
|
+
toReturn['isValid'] = this.isValid;
|
|
1281
|
+
}
|
|
1282
|
+
if (typeof this.errorMessage !== 'undefined') {
|
|
1283
|
+
toReturn['errorMessage'] = this.errorMessage;
|
|
1284
|
+
}
|
|
1110
1285
|
return toReturn;
|
|
1111
1286
|
}
|
|
1112
1287
|
}
|
|
@@ -1167,6 +1342,9 @@ class PromptModule {
|
|
|
1167
1342
|
if (typeof this.managed !== 'undefined') {
|
|
1168
1343
|
toReturn['managed'] = this.managed;
|
|
1169
1344
|
}
|
|
1345
|
+
if (typeof this.sourcePath !== 'undefined') {
|
|
1346
|
+
toReturn['sourcePath'] = this.sourcePath;
|
|
1347
|
+
}
|
|
1170
1348
|
return toReturn;
|
|
1171
1349
|
}
|
|
1172
1350
|
}
|
|
@@ -1321,6 +1499,9 @@ class Goal {
|
|
|
1321
1499
|
if (typeof this.constraints !== 'undefined' && this.constraints !== null) {
|
|
1322
1500
|
toReturn['constraints'] = 'toApiJson' in this.constraints ? this.constraints.toApiJson() : this.constraints;
|
|
1323
1501
|
}
|
|
1502
|
+
if (typeof this.sourcePath !== 'undefined') {
|
|
1503
|
+
toReturn['sourcePath'] = this.sourcePath;
|
|
1504
|
+
}
|
|
1324
1505
|
return toReturn;
|
|
1325
1506
|
}
|
|
1326
1507
|
}
|
|
@@ -1350,6 +1531,87 @@ class GoalKey {
|
|
|
1350
1531
|
return toReturn;
|
|
1351
1532
|
}
|
|
1352
1533
|
}
|
|
1534
|
+
class ValidateGoalsRequest {
|
|
1535
|
+
static fromProto(proto) {
|
|
1536
|
+
let m = new ValidateGoalsRequest();
|
|
1537
|
+
m = Object.assign(m, proto);
|
|
1538
|
+
if (proto.goals) {
|
|
1539
|
+
m.goals = proto.goals.map(Goal.fromProto);
|
|
1540
|
+
}
|
|
1541
|
+
return m;
|
|
1542
|
+
}
|
|
1543
|
+
constructor(kwargs) {
|
|
1544
|
+
if (!kwargs) {
|
|
1545
|
+
return;
|
|
1546
|
+
}
|
|
1547
|
+
Object.assign(this, kwargs);
|
|
1548
|
+
}
|
|
1549
|
+
toApiJson() {
|
|
1550
|
+
const toReturn = {};
|
|
1551
|
+
if (typeof this.goals !== 'undefined' && this.goals !== null) {
|
|
1552
|
+
toReturn['goals'] = 'toApiJson' in this.goals ? this.goals.toApiJson() : this.goals;
|
|
1553
|
+
}
|
|
1554
|
+
return toReturn;
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
class ValidateGoalsResponse {
|
|
1558
|
+
static fromProto(proto) {
|
|
1559
|
+
let m = new ValidateGoalsResponse();
|
|
1560
|
+
m = Object.assign(m, proto);
|
|
1561
|
+
if (proto.results) {
|
|
1562
|
+
m.results = proto.results.map(ValidateGoalsResponseValidationResult.fromProto);
|
|
1563
|
+
}
|
|
1564
|
+
return m;
|
|
1565
|
+
}
|
|
1566
|
+
constructor(kwargs) {
|
|
1567
|
+
if (!kwargs) {
|
|
1568
|
+
return;
|
|
1569
|
+
}
|
|
1570
|
+
Object.assign(this, kwargs);
|
|
1571
|
+
}
|
|
1572
|
+
toApiJson() {
|
|
1573
|
+
const toReturn = {};
|
|
1574
|
+
if (typeof this.results !== 'undefined' && this.results !== null) {
|
|
1575
|
+
toReturn['results'] = 'toApiJson' in this.results ? this.results.toApiJson() : this.results;
|
|
1576
|
+
}
|
|
1577
|
+
if (typeof this.allValid !== 'undefined') {
|
|
1578
|
+
toReturn['allValid'] = this.allValid;
|
|
1579
|
+
}
|
|
1580
|
+
return toReturn;
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
class ValidateGoalsResponseValidationResult {
|
|
1584
|
+
static fromProto(proto) {
|
|
1585
|
+
let m = new ValidateGoalsResponseValidationResult();
|
|
1586
|
+
m = Object.assign(m, proto);
|
|
1587
|
+
if (proto.namespace) {
|
|
1588
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1589
|
+
}
|
|
1590
|
+
return m;
|
|
1591
|
+
}
|
|
1592
|
+
constructor(kwargs) {
|
|
1593
|
+
if (!kwargs) {
|
|
1594
|
+
return;
|
|
1595
|
+
}
|
|
1596
|
+
Object.assign(this, kwargs);
|
|
1597
|
+
}
|
|
1598
|
+
toApiJson() {
|
|
1599
|
+
const toReturn = {};
|
|
1600
|
+
if (typeof this.goalId !== 'undefined') {
|
|
1601
|
+
toReturn['goalId'] = this.goalId;
|
|
1602
|
+
}
|
|
1603
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1604
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1605
|
+
}
|
|
1606
|
+
if (typeof this.isValid !== 'undefined') {
|
|
1607
|
+
toReturn['isValid'] = this.isValid;
|
|
1608
|
+
}
|
|
1609
|
+
if (typeof this.errorMessage !== 'undefined') {
|
|
1610
|
+
toReturn['errorMessage'] = this.errorMessage;
|
|
1611
|
+
}
|
|
1612
|
+
return toReturn;
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1353
1615
|
|
|
1354
1616
|
function enumStringToValue$8(enumRef, value) {
|
|
1355
1617
|
if (typeof value === 'number') {
|
|
@@ -1657,6 +1919,9 @@ class ModelConfig {
|
|
|
1657
1919
|
if (proto.elevenLabsConfig) {
|
|
1658
1920
|
m.elevenLabsConfig = ElevenLabsConfig.fromProto(proto.elevenLabsConfig);
|
|
1659
1921
|
}
|
|
1922
|
+
if (proto.openaiConfig) {
|
|
1923
|
+
m.openaiConfig = OpenAIConfig.fromProto(proto.openaiConfig);
|
|
1924
|
+
}
|
|
1660
1925
|
return m;
|
|
1661
1926
|
}
|
|
1662
1927
|
constructor(kwargs) {
|
|
@@ -1676,6 +1941,29 @@ class ModelConfig {
|
|
|
1676
1941
|
if (typeof this.elevenLabsConfig !== 'undefined' && this.elevenLabsConfig !== null) {
|
|
1677
1942
|
toReturn['elevenLabsConfig'] = 'toApiJson' in this.elevenLabsConfig ? this.elevenLabsConfig.toApiJson() : this.elevenLabsConfig;
|
|
1678
1943
|
}
|
|
1944
|
+
if (typeof this.openaiConfig !== 'undefined' && this.openaiConfig !== null) {
|
|
1945
|
+
toReturn['openaiConfig'] = 'toApiJson' in this.openaiConfig ? this.openaiConfig.toApiJson() : this.openaiConfig;
|
|
1946
|
+
}
|
|
1947
|
+
return toReturn;
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
class OpenAIConfig {
|
|
1951
|
+
static fromProto(proto) {
|
|
1952
|
+
let m = new OpenAIConfig();
|
|
1953
|
+
m = Object.assign(m, proto);
|
|
1954
|
+
return m;
|
|
1955
|
+
}
|
|
1956
|
+
constructor(kwargs) {
|
|
1957
|
+
if (!kwargs) {
|
|
1958
|
+
return;
|
|
1959
|
+
}
|
|
1960
|
+
Object.assign(this, kwargs);
|
|
1961
|
+
}
|
|
1962
|
+
toApiJson() {
|
|
1963
|
+
const toReturn = {};
|
|
1964
|
+
if (typeof this.voice !== 'undefined') {
|
|
1965
|
+
toReturn['voice'] = this.voice;
|
|
1966
|
+
}
|
|
1679
1967
|
return toReturn;
|
|
1680
1968
|
}
|
|
1681
1969
|
}
|
|
@@ -2890,6 +3178,9 @@ class CreatePromptModuleRequest {
|
|
|
2890
3178
|
if (typeof this.managed !== 'undefined') {
|
|
2891
3179
|
toReturn['managed'] = this.managed;
|
|
2892
3180
|
}
|
|
3181
|
+
if (typeof this.sourcePath !== 'undefined') {
|
|
3182
|
+
toReturn['sourcePath'] = this.sourcePath;
|
|
3183
|
+
}
|
|
2893
3184
|
return toReturn;
|
|
2894
3185
|
}
|
|
2895
3186
|
}
|
|
@@ -5003,6 +5294,9 @@ class UpdatePromptModuleRequest {
|
|
|
5003
5294
|
if (typeof this.description !== 'undefined') {
|
|
5004
5295
|
toReturn['description'] = this.description;
|
|
5005
5296
|
}
|
|
5297
|
+
if (typeof this.sourcePath !== 'undefined') {
|
|
5298
|
+
toReturn['sourcePath'] = this.sourcePath;
|
|
5299
|
+
}
|
|
5006
5300
|
return toReturn;
|
|
5007
5301
|
}
|
|
5008
5302
|
}
|
|
@@ -5615,6 +5909,16 @@ class FunctionApiService {
|
|
|
5615
5909
|
const request = (r.toApiJson) ? r : new CreateMCPFromIntegrationRequest(r);
|
|
5616
5910
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/CreateMCPFromIntegration", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
5617
5911
|
}
|
|
5912
|
+
validateFunctions(r) {
|
|
5913
|
+
const request = (r.toApiJson) ? r : new ValidateFunctionsRequest(r);
|
|
5914
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/ValidateFunctions", request.toApiJson(), this.apiOptions())
|
|
5915
|
+
.pipe(map(resp => ValidateFunctionsResponse.fromProto(resp)));
|
|
5916
|
+
}
|
|
5917
|
+
validateMcPs(r) {
|
|
5918
|
+
const request = (r.toApiJson) ? r : new ValidateMCPsRequest(r);
|
|
5919
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/ValidateMCPs", request.toApiJson(), this.apiOptions())
|
|
5920
|
+
.pipe(map(resp => ValidateMCPsResponse.fromProto(resp)));
|
|
5921
|
+
}
|
|
5618
5922
|
}
|
|
5619
5923
|
FunctionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FunctionApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5620
5924
|
FunctionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FunctionApiService, providedIn: 'root' });
|
|
@@ -5680,6 +5984,11 @@ class GoalApiService {
|
|
|
5680
5984
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/GoalsDisabledForAccountGroup", request.toApiJson(), this.apiOptions())
|
|
5681
5985
|
.pipe(map(resp => GoalsDisabledForAccountGroupResponse.fromProto(resp)));
|
|
5682
5986
|
}
|
|
5987
|
+
validateGoals(r) {
|
|
5988
|
+
const request = (r.toApiJson) ? r : new ValidateGoalsRequest(r);
|
|
5989
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/ValidateGoals", request.toApiJson(), this.apiOptions())
|
|
5990
|
+
.pipe(map(resp => ValidateGoalsResponse.fromProto(resp)));
|
|
5991
|
+
}
|
|
5683
5992
|
}
|
|
5684
5993
|
GoalApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GoalApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5685
5994
|
GoalApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GoalApiService, providedIn: 'root' });
|
|
@@ -5858,5 +6167,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5858
6167
|
* Generated bundle index. Do not edit.
|
|
5859
6168
|
*/
|
|
5860
6169
|
|
|
5861
|
-
export { Access, Action, AgentArchitecture, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatContent, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, Constraint, ConstraintFilter, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreateMCPFromIntegrationRequest, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeleteMCPRequest, DeletePromptModuleRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, Effect, ElevenLabsConfig, ExecuteFunctionRequest, ExecuteFunctionRequestOptions, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyConnectedIntegrationAuthStrategy, FunctionAuthStrategyImpersonationAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantRequestOptions, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantRequestOptions, GetMultiAssistantResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetTestRunRequest, GetTestRunResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, ImageContent, IntegrationTestApiService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsRequestFilters, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsRequestSortOptions, ListGoalsRequestSortingOrder, ListGoalsResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsRequestFilters, ListMCPsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListTemplateVariablesRequest, ListTemplateVariablesResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, MCP, MCPOptions, Model, ModelConfig, ModelType, ModelVendor, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, NamespaceType, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, RunTestsRequest, RunTestsResponse, Scope, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SortDirection, SortOptions, StreamingGenerateChatAnswerResponseContentType, TemplateVariable, TestCase, TestResult, TestResultCitation, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertMCPRequest, UpsertTestCasesRequest, ValidatePromptModuleRequest, ValidatePromptModuleResponse, ValidatePromptModuleVersionsRequest, ValidatePromptModuleVersionsResponse, ValidatePromptModuleVersionsResponseValidationResult, ValidatePromptModulesRequest, ValidatePromptModulesResponse, ValidatePromptModulesResponseValidationResult, ValidationFailureAction, ValidationResult, ValidationViolation, VendorModel };
|
|
6170
|
+
export { Access, Action, AgentArchitecture, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatContent, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, Constraint, ConstraintFilter, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreateMCPFromIntegrationRequest, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeleteMCPRequest, DeletePromptModuleRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, Effect, ElevenLabsConfig, ExecuteFunctionRequest, ExecuteFunctionRequestOptions, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyConnectedIntegrationAuthStrategy, FunctionAuthStrategyImpersonationAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantRequestOptions, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantRequestOptions, GetMultiAssistantResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetTestRunRequest, GetTestRunResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, ImageContent, IntegrationTestApiService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsRequestFilters, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsRequestSortOptions, ListGoalsRequestSortingOrder, ListGoalsResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsRequestFilters, ListMCPsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListTemplateVariablesRequest, ListTemplateVariablesResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, MCP, MCPOptions, Model, ModelConfig, ModelType, ModelVendor, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, NamespaceType, OpenAIConfig, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, RunTestsRequest, RunTestsResponse, Scope, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SortDirection, SortOptions, StreamingGenerateChatAnswerResponseContentType, TemplateVariable, TestCase, TestResult, TestResultCitation, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertMCPRequest, UpsertTestCasesRequest, ValidateFunctionsRequest, ValidateFunctionsResponse, ValidateFunctionsResponseValidationResult, ValidateGoalsRequest, ValidateGoalsResponse, ValidateGoalsResponseValidationResult, ValidateMCPsRequest, ValidateMCPsResponse, ValidateMCPsResponseValidationResult, ValidatePromptModuleRequest, ValidatePromptModuleResponse, ValidatePromptModuleVersionsRequest, ValidatePromptModuleVersionsResponse, ValidatePromptModuleVersionsResponseValidationResult, ValidatePromptModulesRequest, ValidatePromptModulesResponse, ValidatePromptModulesResponseValidationResult, ValidationFailureAction, ValidationResult, ValidationViolation, VendorModel };
|
|
5862
6171
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|