@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
|
@@ -155,6 +155,7 @@ var VendorModel;
|
|
|
155
155
|
VendorModel[VendorModel["VENDOR_MODEL_OPEN_AI_REALTIME"] = 1] = "VENDOR_MODEL_OPEN_AI_REALTIME";
|
|
156
156
|
VendorModel[VendorModel["VENDOR_MODEL_DEEPGRAM"] = 2] = "VENDOR_MODEL_DEEPGRAM";
|
|
157
157
|
VendorModel[VendorModel["VENDOR_MODEL_ELEVEN_LABS"] = 3] = "VENDOR_MODEL_ELEVEN_LABS";
|
|
158
|
+
VendorModel[VendorModel["VENDOR_MODEL_OPEN_AI"] = 4] = "VENDOR_MODEL_OPEN_AI";
|
|
158
159
|
})(VendorModel || (VendorModel = {}));
|
|
159
160
|
|
|
160
161
|
// *********************************
|
|
@@ -582,6 +583,9 @@ class CreateMCPFromIntegrationRequest {
|
|
|
582
583
|
if (typeof this.connectionId !== 'undefined') {
|
|
583
584
|
toReturn['connectionId'] = this.connectionId;
|
|
584
585
|
}
|
|
586
|
+
if (typeof this.sourcePath !== 'undefined') {
|
|
587
|
+
toReturn['sourcePath'] = this.sourcePath;
|
|
588
|
+
}
|
|
585
589
|
return toReturn;
|
|
586
590
|
}
|
|
587
591
|
}
|
|
@@ -708,6 +712,9 @@ class Function {
|
|
|
708
712
|
if (typeof this.constraints !== 'undefined' && this.constraints !== null) {
|
|
709
713
|
toReturn['constraints'] = 'toApiJson' in this.constraints ? this.constraints.toApiJson() : this.constraints;
|
|
710
714
|
}
|
|
715
|
+
if (typeof this.sourcePath !== 'undefined') {
|
|
716
|
+
toReturn['sourcePath'] = this.sourcePath;
|
|
717
|
+
}
|
|
711
718
|
return toReturn;
|
|
712
719
|
}
|
|
713
720
|
}
|
|
@@ -1028,6 +1035,9 @@ class MCP {
|
|
|
1028
1035
|
if (typeof this.authStrategy !== 'undefined' && this.authStrategy !== null) {
|
|
1029
1036
|
toReturn['authStrategy'] = 'toApiJson' in this.authStrategy ? this.authStrategy.toApiJson() : this.authStrategy;
|
|
1030
1037
|
}
|
|
1038
|
+
if (typeof this.sourcePath !== 'undefined') {
|
|
1039
|
+
toReturn['sourcePath'] = this.sourcePath;
|
|
1040
|
+
}
|
|
1031
1041
|
return toReturn;
|
|
1032
1042
|
}
|
|
1033
1043
|
}
|
|
@@ -1106,6 +1116,171 @@ class UpsertMCPRequest {
|
|
|
1106
1116
|
if (typeof this.authStrategy !== 'undefined' && this.authStrategy !== null) {
|
|
1107
1117
|
toReturn['authStrategy'] = 'toApiJson' in this.authStrategy ? this.authStrategy.toApiJson() : this.authStrategy;
|
|
1108
1118
|
}
|
|
1119
|
+
if (typeof this.sourcePath !== 'undefined') {
|
|
1120
|
+
toReturn['sourcePath'] = this.sourcePath;
|
|
1121
|
+
}
|
|
1122
|
+
return toReturn;
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
class ValidateFunctionsRequest {
|
|
1126
|
+
static fromProto(proto) {
|
|
1127
|
+
let m = new ValidateFunctionsRequest();
|
|
1128
|
+
m = Object.assign(m, proto);
|
|
1129
|
+
if (proto.functions) {
|
|
1130
|
+
m.functions = proto.functions.map(Function.fromProto);
|
|
1131
|
+
}
|
|
1132
|
+
return m;
|
|
1133
|
+
}
|
|
1134
|
+
constructor(kwargs) {
|
|
1135
|
+
if (!kwargs) {
|
|
1136
|
+
return;
|
|
1137
|
+
}
|
|
1138
|
+
Object.assign(this, kwargs);
|
|
1139
|
+
}
|
|
1140
|
+
toApiJson() {
|
|
1141
|
+
const toReturn = {};
|
|
1142
|
+
if (typeof this.functions !== 'undefined' && this.functions !== null) {
|
|
1143
|
+
toReturn['functions'] = 'toApiJson' in this.functions ? this.functions.toApiJson() : this.functions;
|
|
1144
|
+
}
|
|
1145
|
+
return toReturn;
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
class ValidateFunctionsResponse {
|
|
1149
|
+
static fromProto(proto) {
|
|
1150
|
+
let m = new ValidateFunctionsResponse();
|
|
1151
|
+
m = Object.assign(m, proto);
|
|
1152
|
+
if (proto.results) {
|
|
1153
|
+
m.results = proto.results.map(ValidateFunctionsResponseValidationResult.fromProto);
|
|
1154
|
+
}
|
|
1155
|
+
return m;
|
|
1156
|
+
}
|
|
1157
|
+
constructor(kwargs) {
|
|
1158
|
+
if (!kwargs) {
|
|
1159
|
+
return;
|
|
1160
|
+
}
|
|
1161
|
+
Object.assign(this, kwargs);
|
|
1162
|
+
}
|
|
1163
|
+
toApiJson() {
|
|
1164
|
+
const toReturn = {};
|
|
1165
|
+
if (typeof this.results !== 'undefined' && this.results !== null) {
|
|
1166
|
+
toReturn['results'] = 'toApiJson' in this.results ? this.results.toApiJson() : this.results;
|
|
1167
|
+
}
|
|
1168
|
+
if (typeof this.allValid !== 'undefined') {
|
|
1169
|
+
toReturn['allValid'] = this.allValid;
|
|
1170
|
+
}
|
|
1171
|
+
return toReturn;
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
class ValidateMCPsRequest {
|
|
1175
|
+
static fromProto(proto) {
|
|
1176
|
+
let m = new ValidateMCPsRequest();
|
|
1177
|
+
m = Object.assign(m, proto);
|
|
1178
|
+
if (proto.mcps) {
|
|
1179
|
+
m.mcps = proto.mcps.map(MCP.fromProto);
|
|
1180
|
+
}
|
|
1181
|
+
return m;
|
|
1182
|
+
}
|
|
1183
|
+
constructor(kwargs) {
|
|
1184
|
+
if (!kwargs) {
|
|
1185
|
+
return;
|
|
1186
|
+
}
|
|
1187
|
+
Object.assign(this, kwargs);
|
|
1188
|
+
}
|
|
1189
|
+
toApiJson() {
|
|
1190
|
+
const toReturn = {};
|
|
1191
|
+
if (typeof this.mcps !== 'undefined' && this.mcps !== null) {
|
|
1192
|
+
toReturn['mcps'] = 'toApiJson' in this.mcps ? this.mcps.toApiJson() : this.mcps;
|
|
1193
|
+
}
|
|
1194
|
+
return toReturn;
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
class ValidateMCPsResponse {
|
|
1198
|
+
static fromProto(proto) {
|
|
1199
|
+
let m = new ValidateMCPsResponse();
|
|
1200
|
+
m = Object.assign(m, proto);
|
|
1201
|
+
if (proto.results) {
|
|
1202
|
+
m.results = proto.results.map(ValidateMCPsResponseValidationResult.fromProto);
|
|
1203
|
+
}
|
|
1204
|
+
return m;
|
|
1205
|
+
}
|
|
1206
|
+
constructor(kwargs) {
|
|
1207
|
+
if (!kwargs) {
|
|
1208
|
+
return;
|
|
1209
|
+
}
|
|
1210
|
+
Object.assign(this, kwargs);
|
|
1211
|
+
}
|
|
1212
|
+
toApiJson() {
|
|
1213
|
+
const toReturn = {};
|
|
1214
|
+
if (typeof this.results !== 'undefined' && this.results !== null) {
|
|
1215
|
+
toReturn['results'] = 'toApiJson' in this.results ? this.results.toApiJson() : this.results;
|
|
1216
|
+
}
|
|
1217
|
+
if (typeof this.allValid !== 'undefined') {
|
|
1218
|
+
toReturn['allValid'] = this.allValid;
|
|
1219
|
+
}
|
|
1220
|
+
return toReturn;
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
class ValidateFunctionsResponseValidationResult {
|
|
1224
|
+
static fromProto(proto) {
|
|
1225
|
+
let m = new ValidateFunctionsResponseValidationResult();
|
|
1226
|
+
m = Object.assign(m, proto);
|
|
1227
|
+
if (proto.namespace) {
|
|
1228
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1229
|
+
}
|
|
1230
|
+
return m;
|
|
1231
|
+
}
|
|
1232
|
+
constructor(kwargs) {
|
|
1233
|
+
if (!kwargs) {
|
|
1234
|
+
return;
|
|
1235
|
+
}
|
|
1236
|
+
Object.assign(this, kwargs);
|
|
1237
|
+
}
|
|
1238
|
+
toApiJson() {
|
|
1239
|
+
const toReturn = {};
|
|
1240
|
+
if (typeof this.functionId !== 'undefined') {
|
|
1241
|
+
toReturn['functionId'] = this.functionId;
|
|
1242
|
+
}
|
|
1243
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1244
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1245
|
+
}
|
|
1246
|
+
if (typeof this.isValid !== 'undefined') {
|
|
1247
|
+
toReturn['isValid'] = this.isValid;
|
|
1248
|
+
}
|
|
1249
|
+
if (typeof this.errorMessage !== 'undefined') {
|
|
1250
|
+
toReturn['errorMessage'] = this.errorMessage;
|
|
1251
|
+
}
|
|
1252
|
+
return toReturn;
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
class ValidateMCPsResponseValidationResult {
|
|
1256
|
+
static fromProto(proto) {
|
|
1257
|
+
let m = new ValidateMCPsResponseValidationResult();
|
|
1258
|
+
m = Object.assign(m, proto);
|
|
1259
|
+
if (proto.namespace) {
|
|
1260
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1261
|
+
}
|
|
1262
|
+
return m;
|
|
1263
|
+
}
|
|
1264
|
+
constructor(kwargs) {
|
|
1265
|
+
if (!kwargs) {
|
|
1266
|
+
return;
|
|
1267
|
+
}
|
|
1268
|
+
Object.assign(this, kwargs);
|
|
1269
|
+
}
|
|
1270
|
+
toApiJson() {
|
|
1271
|
+
const toReturn = {};
|
|
1272
|
+
if (typeof this.mcpId !== 'undefined') {
|
|
1273
|
+
toReturn['mcpId'] = this.mcpId;
|
|
1274
|
+
}
|
|
1275
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1276
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1277
|
+
}
|
|
1278
|
+
if (typeof this.isValid !== 'undefined') {
|
|
1279
|
+
toReturn['isValid'] = this.isValid;
|
|
1280
|
+
}
|
|
1281
|
+
if (typeof this.errorMessage !== 'undefined') {
|
|
1282
|
+
toReturn['errorMessage'] = this.errorMessage;
|
|
1283
|
+
}
|
|
1109
1284
|
return toReturn;
|
|
1110
1285
|
}
|
|
1111
1286
|
}
|
|
@@ -1166,6 +1341,9 @@ class PromptModule {
|
|
|
1166
1341
|
if (typeof this.managed !== 'undefined') {
|
|
1167
1342
|
toReturn['managed'] = this.managed;
|
|
1168
1343
|
}
|
|
1344
|
+
if (typeof this.sourcePath !== 'undefined') {
|
|
1345
|
+
toReturn['sourcePath'] = this.sourcePath;
|
|
1346
|
+
}
|
|
1169
1347
|
return toReturn;
|
|
1170
1348
|
}
|
|
1171
1349
|
}
|
|
@@ -1320,6 +1498,9 @@ class Goal {
|
|
|
1320
1498
|
if (typeof this.constraints !== 'undefined' && this.constraints !== null) {
|
|
1321
1499
|
toReturn['constraints'] = 'toApiJson' in this.constraints ? this.constraints.toApiJson() : this.constraints;
|
|
1322
1500
|
}
|
|
1501
|
+
if (typeof this.sourcePath !== 'undefined') {
|
|
1502
|
+
toReturn['sourcePath'] = this.sourcePath;
|
|
1503
|
+
}
|
|
1323
1504
|
return toReturn;
|
|
1324
1505
|
}
|
|
1325
1506
|
}
|
|
@@ -1349,6 +1530,87 @@ class GoalKey {
|
|
|
1349
1530
|
return toReturn;
|
|
1350
1531
|
}
|
|
1351
1532
|
}
|
|
1533
|
+
class ValidateGoalsRequest {
|
|
1534
|
+
static fromProto(proto) {
|
|
1535
|
+
let m = new ValidateGoalsRequest();
|
|
1536
|
+
m = Object.assign(m, proto);
|
|
1537
|
+
if (proto.goals) {
|
|
1538
|
+
m.goals = proto.goals.map(Goal.fromProto);
|
|
1539
|
+
}
|
|
1540
|
+
return m;
|
|
1541
|
+
}
|
|
1542
|
+
constructor(kwargs) {
|
|
1543
|
+
if (!kwargs) {
|
|
1544
|
+
return;
|
|
1545
|
+
}
|
|
1546
|
+
Object.assign(this, kwargs);
|
|
1547
|
+
}
|
|
1548
|
+
toApiJson() {
|
|
1549
|
+
const toReturn = {};
|
|
1550
|
+
if (typeof this.goals !== 'undefined' && this.goals !== null) {
|
|
1551
|
+
toReturn['goals'] = 'toApiJson' in this.goals ? this.goals.toApiJson() : this.goals;
|
|
1552
|
+
}
|
|
1553
|
+
return toReturn;
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
class ValidateGoalsResponse {
|
|
1557
|
+
static fromProto(proto) {
|
|
1558
|
+
let m = new ValidateGoalsResponse();
|
|
1559
|
+
m = Object.assign(m, proto);
|
|
1560
|
+
if (proto.results) {
|
|
1561
|
+
m.results = proto.results.map(ValidateGoalsResponseValidationResult.fromProto);
|
|
1562
|
+
}
|
|
1563
|
+
return m;
|
|
1564
|
+
}
|
|
1565
|
+
constructor(kwargs) {
|
|
1566
|
+
if (!kwargs) {
|
|
1567
|
+
return;
|
|
1568
|
+
}
|
|
1569
|
+
Object.assign(this, kwargs);
|
|
1570
|
+
}
|
|
1571
|
+
toApiJson() {
|
|
1572
|
+
const toReturn = {};
|
|
1573
|
+
if (typeof this.results !== 'undefined' && this.results !== null) {
|
|
1574
|
+
toReturn['results'] = 'toApiJson' in this.results ? this.results.toApiJson() : this.results;
|
|
1575
|
+
}
|
|
1576
|
+
if (typeof this.allValid !== 'undefined') {
|
|
1577
|
+
toReturn['allValid'] = this.allValid;
|
|
1578
|
+
}
|
|
1579
|
+
return toReturn;
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
class ValidateGoalsResponseValidationResult {
|
|
1583
|
+
static fromProto(proto) {
|
|
1584
|
+
let m = new ValidateGoalsResponseValidationResult();
|
|
1585
|
+
m = Object.assign(m, proto);
|
|
1586
|
+
if (proto.namespace) {
|
|
1587
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1588
|
+
}
|
|
1589
|
+
return m;
|
|
1590
|
+
}
|
|
1591
|
+
constructor(kwargs) {
|
|
1592
|
+
if (!kwargs) {
|
|
1593
|
+
return;
|
|
1594
|
+
}
|
|
1595
|
+
Object.assign(this, kwargs);
|
|
1596
|
+
}
|
|
1597
|
+
toApiJson() {
|
|
1598
|
+
const toReturn = {};
|
|
1599
|
+
if (typeof this.goalId !== 'undefined') {
|
|
1600
|
+
toReturn['goalId'] = this.goalId;
|
|
1601
|
+
}
|
|
1602
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1603
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1604
|
+
}
|
|
1605
|
+
if (typeof this.isValid !== 'undefined') {
|
|
1606
|
+
toReturn['isValid'] = this.isValid;
|
|
1607
|
+
}
|
|
1608
|
+
if (typeof this.errorMessage !== 'undefined') {
|
|
1609
|
+
toReturn['errorMessage'] = this.errorMessage;
|
|
1610
|
+
}
|
|
1611
|
+
return toReturn;
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1352
1614
|
|
|
1353
1615
|
function enumStringToValue$8(enumRef, value) {
|
|
1354
1616
|
if (typeof value === 'number') {
|
|
@@ -1656,6 +1918,9 @@ class ModelConfig {
|
|
|
1656
1918
|
if (proto.elevenLabsConfig) {
|
|
1657
1919
|
m.elevenLabsConfig = ElevenLabsConfig.fromProto(proto.elevenLabsConfig);
|
|
1658
1920
|
}
|
|
1921
|
+
if (proto.openaiConfig) {
|
|
1922
|
+
m.openaiConfig = OpenAIConfig.fromProto(proto.openaiConfig);
|
|
1923
|
+
}
|
|
1659
1924
|
return m;
|
|
1660
1925
|
}
|
|
1661
1926
|
constructor(kwargs) {
|
|
@@ -1675,6 +1940,29 @@ class ModelConfig {
|
|
|
1675
1940
|
if (typeof this.elevenLabsConfig !== 'undefined' && this.elevenLabsConfig !== null) {
|
|
1676
1941
|
toReturn['elevenLabsConfig'] = 'toApiJson' in this.elevenLabsConfig ? this.elevenLabsConfig.toApiJson() : this.elevenLabsConfig;
|
|
1677
1942
|
}
|
|
1943
|
+
if (typeof this.openaiConfig !== 'undefined' && this.openaiConfig !== null) {
|
|
1944
|
+
toReturn['openaiConfig'] = 'toApiJson' in this.openaiConfig ? this.openaiConfig.toApiJson() : this.openaiConfig;
|
|
1945
|
+
}
|
|
1946
|
+
return toReturn;
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
class OpenAIConfig {
|
|
1950
|
+
static fromProto(proto) {
|
|
1951
|
+
let m = new OpenAIConfig();
|
|
1952
|
+
m = Object.assign(m, proto);
|
|
1953
|
+
return m;
|
|
1954
|
+
}
|
|
1955
|
+
constructor(kwargs) {
|
|
1956
|
+
if (!kwargs) {
|
|
1957
|
+
return;
|
|
1958
|
+
}
|
|
1959
|
+
Object.assign(this, kwargs);
|
|
1960
|
+
}
|
|
1961
|
+
toApiJson() {
|
|
1962
|
+
const toReturn = {};
|
|
1963
|
+
if (typeof this.voice !== 'undefined') {
|
|
1964
|
+
toReturn['voice'] = this.voice;
|
|
1965
|
+
}
|
|
1678
1966
|
return toReturn;
|
|
1679
1967
|
}
|
|
1680
1968
|
}
|
|
@@ -2889,6 +3177,9 @@ class CreatePromptModuleRequest {
|
|
|
2889
3177
|
if (typeof this.managed !== 'undefined') {
|
|
2890
3178
|
toReturn['managed'] = this.managed;
|
|
2891
3179
|
}
|
|
3180
|
+
if (typeof this.sourcePath !== 'undefined') {
|
|
3181
|
+
toReturn['sourcePath'] = this.sourcePath;
|
|
3182
|
+
}
|
|
2892
3183
|
return toReturn;
|
|
2893
3184
|
}
|
|
2894
3185
|
}
|
|
@@ -5002,6 +5293,9 @@ class UpdatePromptModuleRequest {
|
|
|
5002
5293
|
if (typeof this.description !== 'undefined') {
|
|
5003
5294
|
toReturn['description'] = this.description;
|
|
5004
5295
|
}
|
|
5296
|
+
if (typeof this.sourcePath !== 'undefined') {
|
|
5297
|
+
toReturn['sourcePath'] = this.sourcePath;
|
|
5298
|
+
}
|
|
5005
5299
|
return toReturn;
|
|
5006
5300
|
}
|
|
5007
5301
|
}
|
|
@@ -5614,6 +5908,16 @@ class FunctionApiService {
|
|
|
5614
5908
|
const request = (r.toApiJson) ? r : new CreateMCPFromIntegrationRequest(r);
|
|
5615
5909
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/CreateMCPFromIntegration", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
5616
5910
|
}
|
|
5911
|
+
validateFunctions(r) {
|
|
5912
|
+
const request = (r.toApiJson) ? r : new ValidateFunctionsRequest(r);
|
|
5913
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/ValidateFunctions", request.toApiJson(), this.apiOptions())
|
|
5914
|
+
.pipe(map(resp => ValidateFunctionsResponse.fromProto(resp)));
|
|
5915
|
+
}
|
|
5916
|
+
validateMcPs(r) {
|
|
5917
|
+
const request = (r.toApiJson) ? r : new ValidateMCPsRequest(r);
|
|
5918
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/ValidateMCPs", request.toApiJson(), this.apiOptions())
|
|
5919
|
+
.pipe(map(resp => ValidateMCPsResponse.fromProto(resp)));
|
|
5920
|
+
}
|
|
5617
5921
|
}
|
|
5618
5922
|
FunctionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FunctionApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5619
5923
|
FunctionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FunctionApiService, providedIn: 'root' });
|
|
@@ -5679,6 +5983,11 @@ class GoalApiService {
|
|
|
5679
5983
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/GoalsDisabledForAccountGroup", request.toApiJson(), this.apiOptions())
|
|
5680
5984
|
.pipe(map(resp => GoalsDisabledForAccountGroupResponse.fromProto(resp)));
|
|
5681
5985
|
}
|
|
5986
|
+
validateGoals(r) {
|
|
5987
|
+
const request = (r.toApiJson) ? r : new ValidateGoalsRequest(r);
|
|
5988
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/ValidateGoals", request.toApiJson(), this.apiOptions())
|
|
5989
|
+
.pipe(map(resp => ValidateGoalsResponse.fromProto(resp)));
|
|
5990
|
+
}
|
|
5682
5991
|
}
|
|
5683
5992
|
GoalApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GoalApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5684
5993
|
GoalApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GoalApiService, providedIn: 'root' });
|
|
@@ -5857,5 +6166,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5857
6166
|
* Generated bundle index. Do not edit.
|
|
5858
6167
|
*/
|
|
5859
6168
|
|
|
5860
|
-
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 };
|
|
6169
|
+
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 };
|
|
5861
6170
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|