@vendasta/ai-assistants 0.59.0 → 0.61.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/assistant.api.service.mjs +2 -12
- package/esm2020/lib/_internal/enums/api.enum.mjs +10 -1
- package/esm2020/lib/_internal/enums/assistant.enum.mjs +2 -1
- package/esm2020/lib/_internal/enums/index.mjs +2 -2
- 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 +311 -449
- package/esm2020/lib/_internal/objects/assistant.mjs +27 -1
- package/esm2020/lib/_internal/objects/function.mjs +163 -1
- package/esm2020/lib/_internal/objects/goal.mjs +82 -1
- package/esm2020/lib/_internal/objects/index.mjs +6 -6
- package/esm2020/lib/_internal/objects/prompt.mjs +1 -77
- package/esm2020/lib/_internal/prompt-module.api.service.mjs +12 -2
- package/fesm2015/vendasta-ai-assistants.mjs +639 -559
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +639 -559
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/assistant.api.service.d.ts +2 -4
- package/lib/_internal/enums/api.enum.d.ts +8 -0
- package/lib/_internal/enums/assistant.enum.d.ts +2 -1
- package/lib/_internal/enums/index.d.ts +1 -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 +59 -82
- package/lib/_internal/interfaces/assistant.interface.d.ts +4 -0
- package/lib/_internal/interfaces/function.interface.d.ts +26 -0
- package/lib/_internal/interfaces/goal.interface.d.ts +13 -0
- package/lib/_internal/interfaces/index.d.ts +5 -5
- package/lib/_internal/interfaces/prompt.interface.d.ts +0 -15
- package/lib/_internal/objects/api.d.ts +100 -132
- package/lib/_internal/objects/assistant.d.ts +7 -0
- package/lib/_internal/objects/function.d.ts +44 -0
- package/lib/_internal/objects/goal.d.ts +22 -0
- package/lib/_internal/objects/index.d.ts +5 -5
- package/lib/_internal/objects/prompt.d.ts +0 -21
- package/lib/_internal/prompt-module.api.service.d.ts +4 -2
- 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
|
// *********************************
|
|
@@ -229,6 +230,15 @@ var ListGoalsRequestSortingOrder;
|
|
|
229
230
|
ListGoalsRequestSortingOrder[ListGoalsRequestSortingOrder["GOAL_SORTING_ORDER_ASCENDING"] = 0] = "GOAL_SORTING_ORDER_ASCENDING";
|
|
230
231
|
ListGoalsRequestSortingOrder[ListGoalsRequestSortingOrder["GOAL_SORTING_ORDER_DESCENDING"] = 1] = "GOAL_SORTING_ORDER_DESCENDING";
|
|
231
232
|
})(ListGoalsRequestSortingOrder || (ListGoalsRequestSortingOrder = {}));
|
|
233
|
+
var ValidationFailureAction;
|
|
234
|
+
(function (ValidationFailureAction) {
|
|
235
|
+
ValidationFailureAction[ValidationFailureAction["VALIDATION_FAILURE_ACTION_UNSPECIFIED"] = 0] = "VALIDATION_FAILURE_ACTION_UNSPECIFIED";
|
|
236
|
+
ValidationFailureAction[ValidationFailureAction["VALIDATION_FAILURE_ACTION_NONE"] = 1] = "VALIDATION_FAILURE_ACTION_NONE";
|
|
237
|
+
ValidationFailureAction[ValidationFailureAction["VALIDATION_FAILURE_ACTION_WARN"] = 2] = "VALIDATION_FAILURE_ACTION_WARN";
|
|
238
|
+
ValidationFailureAction[ValidationFailureAction["VALIDATION_FAILURE_ACTION_MODIFY"] = 3] = "VALIDATION_FAILURE_ACTION_MODIFY";
|
|
239
|
+
ValidationFailureAction[ValidationFailureAction["VALIDATION_FAILURE_ACTION_BLOCK"] = 4] = "VALIDATION_FAILURE_ACTION_BLOCK";
|
|
240
|
+
ValidationFailureAction[ValidationFailureAction["VALIDATION_FAILURE_ACTION_EXCEPTION"] = 5] = "VALIDATION_FAILURE_ACTION_EXCEPTION";
|
|
241
|
+
})(ValidationFailureAction || (ValidationFailureAction = {}));
|
|
232
242
|
|
|
233
243
|
// *********************************
|
|
234
244
|
// Code generated by sdkgen
|
|
@@ -1100,22 +1110,61 @@ class UpsertMCPRequest {
|
|
|
1100
1110
|
return toReturn;
|
|
1101
1111
|
}
|
|
1102
1112
|
}
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1113
|
+
class ValidateFunctionsRequest {
|
|
1114
|
+
static fromProto(proto) {
|
|
1115
|
+
let m = new ValidateFunctionsRequest();
|
|
1116
|
+
m = Object.assign(m, proto);
|
|
1117
|
+
if (proto.functions) {
|
|
1118
|
+
m.functions = proto.functions.map(Function.fromProto);
|
|
1119
|
+
}
|
|
1120
|
+
return m;
|
|
1121
|
+
}
|
|
1122
|
+
constructor(kwargs) {
|
|
1123
|
+
if (!kwargs) {
|
|
1124
|
+
return;
|
|
1125
|
+
}
|
|
1126
|
+
Object.assign(this, kwargs);
|
|
1127
|
+
}
|
|
1128
|
+
toApiJson() {
|
|
1129
|
+
const toReturn = {};
|
|
1130
|
+
if (typeof this.functions !== 'undefined' && this.functions !== null) {
|
|
1131
|
+
toReturn['functions'] = 'toApiJson' in this.functions ? this.functions.toApiJson() : this.functions;
|
|
1132
|
+
}
|
|
1133
|
+
return toReturn;
|
|
1107
1134
|
}
|
|
1108
|
-
return enumRef[value];
|
|
1109
1135
|
}
|
|
1110
|
-
class
|
|
1136
|
+
class ValidateFunctionsResponse {
|
|
1111
1137
|
static fromProto(proto) {
|
|
1112
|
-
let m = new
|
|
1138
|
+
let m = new ValidateFunctionsResponse();
|
|
1113
1139
|
m = Object.assign(m, proto);
|
|
1114
|
-
if (proto.
|
|
1115
|
-
m.
|
|
1140
|
+
if (proto.results) {
|
|
1141
|
+
m.results = proto.results.map(ValidateFunctionsResponseValidationResult.fromProto);
|
|
1116
1142
|
}
|
|
1117
|
-
|
|
1118
|
-
|
|
1143
|
+
return m;
|
|
1144
|
+
}
|
|
1145
|
+
constructor(kwargs) {
|
|
1146
|
+
if (!kwargs) {
|
|
1147
|
+
return;
|
|
1148
|
+
}
|
|
1149
|
+
Object.assign(this, kwargs);
|
|
1150
|
+
}
|
|
1151
|
+
toApiJson() {
|
|
1152
|
+
const toReturn = {};
|
|
1153
|
+
if (typeof this.results !== 'undefined' && this.results !== null) {
|
|
1154
|
+
toReturn['results'] = 'toApiJson' in this.results ? this.results.toApiJson() : this.results;
|
|
1155
|
+
}
|
|
1156
|
+
if (typeof this.allValid !== 'undefined') {
|
|
1157
|
+
toReturn['allValid'] = this.allValid;
|
|
1158
|
+
}
|
|
1159
|
+
return toReturn;
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
class ValidateMCPsRequest {
|
|
1163
|
+
static fromProto(proto) {
|
|
1164
|
+
let m = new ValidateMCPsRequest();
|
|
1165
|
+
m = Object.assign(m, proto);
|
|
1166
|
+
if (proto.mcps) {
|
|
1167
|
+
m.mcps = proto.mcps.map(MCP.fromProto);
|
|
1119
1168
|
}
|
|
1120
1169
|
return m;
|
|
1121
1170
|
}
|
|
@@ -1127,27 +1176,109 @@ class Prompt {
|
|
|
1127
1176
|
}
|
|
1128
1177
|
toApiJson() {
|
|
1129
1178
|
const toReturn = {};
|
|
1130
|
-
if (typeof this.
|
|
1131
|
-
toReturn['
|
|
1179
|
+
if (typeof this.mcps !== 'undefined' && this.mcps !== null) {
|
|
1180
|
+
toReturn['mcps'] = 'toApiJson' in this.mcps ? this.mcps.toApiJson() : this.mcps;
|
|
1132
1181
|
}
|
|
1133
|
-
|
|
1134
|
-
|
|
1182
|
+
return toReturn;
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
class ValidateMCPsResponse {
|
|
1186
|
+
static fromProto(proto) {
|
|
1187
|
+
let m = new ValidateMCPsResponse();
|
|
1188
|
+
m = Object.assign(m, proto);
|
|
1189
|
+
if (proto.results) {
|
|
1190
|
+
m.results = proto.results.map(ValidateMCPsResponseValidationResult.fromProto);
|
|
1135
1191
|
}
|
|
1136
|
-
|
|
1137
|
-
|
|
1192
|
+
return m;
|
|
1193
|
+
}
|
|
1194
|
+
constructor(kwargs) {
|
|
1195
|
+
if (!kwargs) {
|
|
1196
|
+
return;
|
|
1138
1197
|
}
|
|
1139
|
-
|
|
1140
|
-
|
|
1198
|
+
Object.assign(this, kwargs);
|
|
1199
|
+
}
|
|
1200
|
+
toApiJson() {
|
|
1201
|
+
const toReturn = {};
|
|
1202
|
+
if (typeof this.results !== 'undefined' && this.results !== null) {
|
|
1203
|
+
toReturn['results'] = 'toApiJson' in this.results ? this.results.toApiJson() : this.results;
|
|
1141
1204
|
}
|
|
1142
|
-
if (typeof this.
|
|
1143
|
-
toReturn['
|
|
1205
|
+
if (typeof this.allValid !== 'undefined') {
|
|
1206
|
+
toReturn['allValid'] = this.allValid;
|
|
1144
1207
|
}
|
|
1145
|
-
|
|
1146
|
-
|
|
1208
|
+
return toReturn;
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
class ValidateFunctionsResponseValidationResult {
|
|
1212
|
+
static fromProto(proto) {
|
|
1213
|
+
let m = new ValidateFunctionsResponseValidationResult();
|
|
1214
|
+
m = Object.assign(m, proto);
|
|
1215
|
+
if (proto.namespace) {
|
|
1216
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1217
|
+
}
|
|
1218
|
+
return m;
|
|
1219
|
+
}
|
|
1220
|
+
constructor(kwargs) {
|
|
1221
|
+
if (!kwargs) {
|
|
1222
|
+
return;
|
|
1223
|
+
}
|
|
1224
|
+
Object.assign(this, kwargs);
|
|
1225
|
+
}
|
|
1226
|
+
toApiJson() {
|
|
1227
|
+
const toReturn = {};
|
|
1228
|
+
if (typeof this.functionId !== 'undefined') {
|
|
1229
|
+
toReturn['functionId'] = this.functionId;
|
|
1230
|
+
}
|
|
1231
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1232
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1233
|
+
}
|
|
1234
|
+
if (typeof this.isValid !== 'undefined') {
|
|
1235
|
+
toReturn['isValid'] = this.isValid;
|
|
1236
|
+
}
|
|
1237
|
+
if (typeof this.errorMessage !== 'undefined') {
|
|
1238
|
+
toReturn['errorMessage'] = this.errorMessage;
|
|
1239
|
+
}
|
|
1240
|
+
return toReturn;
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
class ValidateMCPsResponseValidationResult {
|
|
1244
|
+
static fromProto(proto) {
|
|
1245
|
+
let m = new ValidateMCPsResponseValidationResult();
|
|
1246
|
+
m = Object.assign(m, proto);
|
|
1247
|
+
if (proto.namespace) {
|
|
1248
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1249
|
+
}
|
|
1250
|
+
return m;
|
|
1251
|
+
}
|
|
1252
|
+
constructor(kwargs) {
|
|
1253
|
+
if (!kwargs) {
|
|
1254
|
+
return;
|
|
1255
|
+
}
|
|
1256
|
+
Object.assign(this, kwargs);
|
|
1257
|
+
}
|
|
1258
|
+
toApiJson() {
|
|
1259
|
+
const toReturn = {};
|
|
1260
|
+
if (typeof this.mcpId !== 'undefined') {
|
|
1261
|
+
toReturn['mcpId'] = this.mcpId;
|
|
1262
|
+
}
|
|
1263
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1264
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1265
|
+
}
|
|
1266
|
+
if (typeof this.isValid !== 'undefined') {
|
|
1267
|
+
toReturn['isValid'] = this.isValid;
|
|
1268
|
+
}
|
|
1269
|
+
if (typeof this.errorMessage !== 'undefined') {
|
|
1270
|
+
toReturn['errorMessage'] = this.errorMessage;
|
|
1147
1271
|
}
|
|
1148
1272
|
return toReturn;
|
|
1149
1273
|
}
|
|
1150
1274
|
}
|
|
1275
|
+
|
|
1276
|
+
function enumStringToValue$a(enumRef, value) {
|
|
1277
|
+
if (typeof value === 'number') {
|
|
1278
|
+
return value;
|
|
1279
|
+
}
|
|
1280
|
+
return enumRef[value];
|
|
1281
|
+
}
|
|
1151
1282
|
class PromptModule {
|
|
1152
1283
|
static fromProto(proto) {
|
|
1153
1284
|
let m = new PromptModule();
|
|
@@ -1268,41 +1399,6 @@ class PromptModuleVersion {
|
|
|
1268
1399
|
return toReturn;
|
|
1269
1400
|
}
|
|
1270
1401
|
}
|
|
1271
|
-
class PromptVersion {
|
|
1272
|
-
static fromProto(proto) {
|
|
1273
|
-
let m = new PromptVersion();
|
|
1274
|
-
m = Object.assign(m, proto);
|
|
1275
|
-
if (proto.created) {
|
|
1276
|
-
m.created = new Date(proto.created);
|
|
1277
|
-
}
|
|
1278
|
-
return m;
|
|
1279
|
-
}
|
|
1280
|
-
constructor(kwargs) {
|
|
1281
|
-
if (!kwargs) {
|
|
1282
|
-
return;
|
|
1283
|
-
}
|
|
1284
|
-
Object.assign(this, kwargs);
|
|
1285
|
-
}
|
|
1286
|
-
toApiJson() {
|
|
1287
|
-
const toReturn = {};
|
|
1288
|
-
if (typeof this.id !== 'undefined') {
|
|
1289
|
-
toReturn['id'] = this.id;
|
|
1290
|
-
}
|
|
1291
|
-
if (typeof this.version !== 'undefined') {
|
|
1292
|
-
toReturn['version'] = this.version;
|
|
1293
|
-
}
|
|
1294
|
-
if (typeof this.content !== 'undefined') {
|
|
1295
|
-
toReturn['content'] = this.content;
|
|
1296
|
-
}
|
|
1297
|
-
if (typeof this.createdBy !== 'undefined') {
|
|
1298
|
-
toReturn['createdBy'] = this.createdBy;
|
|
1299
|
-
}
|
|
1300
|
-
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
1301
|
-
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
1302
|
-
}
|
|
1303
|
-
return toReturn;
|
|
1304
|
-
}
|
|
1305
|
-
}
|
|
1306
1402
|
|
|
1307
1403
|
function enumStringToValue$9(enumRef, value) {
|
|
1308
1404
|
if (typeof value === 'number') {
|
|
@@ -1416,6 +1512,87 @@ class GoalKey {
|
|
|
1416
1512
|
return toReturn;
|
|
1417
1513
|
}
|
|
1418
1514
|
}
|
|
1515
|
+
class ValidateGoalsRequest {
|
|
1516
|
+
static fromProto(proto) {
|
|
1517
|
+
let m = new ValidateGoalsRequest();
|
|
1518
|
+
m = Object.assign(m, proto);
|
|
1519
|
+
if (proto.goals) {
|
|
1520
|
+
m.goals = proto.goals.map(Goal.fromProto);
|
|
1521
|
+
}
|
|
1522
|
+
return m;
|
|
1523
|
+
}
|
|
1524
|
+
constructor(kwargs) {
|
|
1525
|
+
if (!kwargs) {
|
|
1526
|
+
return;
|
|
1527
|
+
}
|
|
1528
|
+
Object.assign(this, kwargs);
|
|
1529
|
+
}
|
|
1530
|
+
toApiJson() {
|
|
1531
|
+
const toReturn = {};
|
|
1532
|
+
if (typeof this.goals !== 'undefined' && this.goals !== null) {
|
|
1533
|
+
toReturn['goals'] = 'toApiJson' in this.goals ? this.goals.toApiJson() : this.goals;
|
|
1534
|
+
}
|
|
1535
|
+
return toReturn;
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
class ValidateGoalsResponse {
|
|
1539
|
+
static fromProto(proto) {
|
|
1540
|
+
let m = new ValidateGoalsResponse();
|
|
1541
|
+
m = Object.assign(m, proto);
|
|
1542
|
+
if (proto.results) {
|
|
1543
|
+
m.results = proto.results.map(ValidateGoalsResponseValidationResult.fromProto);
|
|
1544
|
+
}
|
|
1545
|
+
return m;
|
|
1546
|
+
}
|
|
1547
|
+
constructor(kwargs) {
|
|
1548
|
+
if (!kwargs) {
|
|
1549
|
+
return;
|
|
1550
|
+
}
|
|
1551
|
+
Object.assign(this, kwargs);
|
|
1552
|
+
}
|
|
1553
|
+
toApiJson() {
|
|
1554
|
+
const toReturn = {};
|
|
1555
|
+
if (typeof this.results !== 'undefined' && this.results !== null) {
|
|
1556
|
+
toReturn['results'] = 'toApiJson' in this.results ? this.results.toApiJson() : this.results;
|
|
1557
|
+
}
|
|
1558
|
+
if (typeof this.allValid !== 'undefined') {
|
|
1559
|
+
toReturn['allValid'] = this.allValid;
|
|
1560
|
+
}
|
|
1561
|
+
return toReturn;
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
class ValidateGoalsResponseValidationResult {
|
|
1565
|
+
static fromProto(proto) {
|
|
1566
|
+
let m = new ValidateGoalsResponseValidationResult();
|
|
1567
|
+
m = Object.assign(m, proto);
|
|
1568
|
+
if (proto.namespace) {
|
|
1569
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1570
|
+
}
|
|
1571
|
+
return m;
|
|
1572
|
+
}
|
|
1573
|
+
constructor(kwargs) {
|
|
1574
|
+
if (!kwargs) {
|
|
1575
|
+
return;
|
|
1576
|
+
}
|
|
1577
|
+
Object.assign(this, kwargs);
|
|
1578
|
+
}
|
|
1579
|
+
toApiJson() {
|
|
1580
|
+
const toReturn = {};
|
|
1581
|
+
if (typeof this.goalId !== 'undefined') {
|
|
1582
|
+
toReturn['goalId'] = this.goalId;
|
|
1583
|
+
}
|
|
1584
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1585
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1586
|
+
}
|
|
1587
|
+
if (typeof this.isValid !== 'undefined') {
|
|
1588
|
+
toReturn['isValid'] = this.isValid;
|
|
1589
|
+
}
|
|
1590
|
+
if (typeof this.errorMessage !== 'undefined') {
|
|
1591
|
+
toReturn['errorMessage'] = this.errorMessage;
|
|
1592
|
+
}
|
|
1593
|
+
return toReturn;
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1419
1596
|
|
|
1420
1597
|
function enumStringToValue$8(enumRef, value) {
|
|
1421
1598
|
if (typeof value === 'number') {
|
|
@@ -1723,6 +1900,9 @@ class ModelConfig {
|
|
|
1723
1900
|
if (proto.elevenLabsConfig) {
|
|
1724
1901
|
m.elevenLabsConfig = ElevenLabsConfig.fromProto(proto.elevenLabsConfig);
|
|
1725
1902
|
}
|
|
1903
|
+
if (proto.openaiConfig) {
|
|
1904
|
+
m.openaiConfig = OpenAIConfig.fromProto(proto.openaiConfig);
|
|
1905
|
+
}
|
|
1726
1906
|
return m;
|
|
1727
1907
|
}
|
|
1728
1908
|
constructor(kwargs) {
|
|
@@ -1742,6 +1922,29 @@ class ModelConfig {
|
|
|
1742
1922
|
if (typeof this.elevenLabsConfig !== 'undefined' && this.elevenLabsConfig !== null) {
|
|
1743
1923
|
toReturn['elevenLabsConfig'] = 'toApiJson' in this.elevenLabsConfig ? this.elevenLabsConfig.toApiJson() : this.elevenLabsConfig;
|
|
1744
1924
|
}
|
|
1925
|
+
if (typeof this.openaiConfig !== 'undefined' && this.openaiConfig !== null) {
|
|
1926
|
+
toReturn['openaiConfig'] = 'toApiJson' in this.openaiConfig ? this.openaiConfig.toApiJson() : this.openaiConfig;
|
|
1927
|
+
}
|
|
1928
|
+
return toReturn;
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
class OpenAIConfig {
|
|
1932
|
+
static fromProto(proto) {
|
|
1933
|
+
let m = new OpenAIConfig();
|
|
1934
|
+
m = Object.assign(m, proto);
|
|
1935
|
+
return m;
|
|
1936
|
+
}
|
|
1937
|
+
constructor(kwargs) {
|
|
1938
|
+
if (!kwargs) {
|
|
1939
|
+
return;
|
|
1940
|
+
}
|
|
1941
|
+
Object.assign(this, kwargs);
|
|
1942
|
+
}
|
|
1943
|
+
toApiJson() {
|
|
1944
|
+
const toReturn = {};
|
|
1945
|
+
if (typeof this.voice !== 'undefined') {
|
|
1946
|
+
toReturn['voice'] = this.voice;
|
|
1947
|
+
}
|
|
1745
1948
|
return toReturn;
|
|
1746
1949
|
}
|
|
1747
1950
|
}
|
|
@@ -2826,32 +3029,6 @@ class SetAssistantConnectionsRequestConnectionState {
|
|
|
2826
3029
|
return toReturn;
|
|
2827
3030
|
}
|
|
2828
3031
|
}
|
|
2829
|
-
class StreamingGenerateChatAnswerResponseContentChunk {
|
|
2830
|
-
static fromProto(proto) {
|
|
2831
|
-
let m = new StreamingGenerateChatAnswerResponseContentChunk();
|
|
2832
|
-
m = Object.assign(m, proto);
|
|
2833
|
-
if (proto.contentType) {
|
|
2834
|
-
m.contentType = enumStringToValue(StreamingGenerateChatAnswerResponseContentType, proto.contentType);
|
|
2835
|
-
}
|
|
2836
|
-
return m;
|
|
2837
|
-
}
|
|
2838
|
-
constructor(kwargs) {
|
|
2839
|
-
if (!kwargs) {
|
|
2840
|
-
return;
|
|
2841
|
-
}
|
|
2842
|
-
Object.assign(this, kwargs);
|
|
2843
|
-
}
|
|
2844
|
-
toApiJson() {
|
|
2845
|
-
const toReturn = {};
|
|
2846
|
-
if (typeof this.content !== 'undefined') {
|
|
2847
|
-
toReturn['content'] = this.content;
|
|
2848
|
-
}
|
|
2849
|
-
if (typeof this.contentType !== 'undefined') {
|
|
2850
|
-
toReturn['contentType'] = this.contentType;
|
|
2851
|
-
}
|
|
2852
|
-
return toReturn;
|
|
2853
|
-
}
|
|
2854
|
-
}
|
|
2855
3032
|
class CreateAssistantRequest {
|
|
2856
3033
|
static fromProto(proto) {
|
|
2857
3034
|
let m = new CreateAssistantRequest();
|
|
@@ -3208,38 +3385,6 @@ class DeployPromptModuleRequest {
|
|
|
3208
3385
|
return toReturn;
|
|
3209
3386
|
}
|
|
3210
3387
|
}
|
|
3211
|
-
class StreamingGenerateChatAnswerResponseErrorChunk {
|
|
3212
|
-
static fromProto(proto) {
|
|
3213
|
-
let m = new StreamingGenerateChatAnswerResponseErrorChunk();
|
|
3214
|
-
m = Object.assign(m, proto);
|
|
3215
|
-
if (proto.errorDetails) {
|
|
3216
|
-
m.errorDetails = proto.errorDetails.map(KeyValuePair.fromProto);
|
|
3217
|
-
}
|
|
3218
|
-
return m;
|
|
3219
|
-
}
|
|
3220
|
-
constructor(kwargs) {
|
|
3221
|
-
if (!kwargs) {
|
|
3222
|
-
return;
|
|
3223
|
-
}
|
|
3224
|
-
Object.assign(this, kwargs);
|
|
3225
|
-
}
|
|
3226
|
-
toApiJson() {
|
|
3227
|
-
const toReturn = {};
|
|
3228
|
-
if (typeof this.errorMessage !== 'undefined') {
|
|
3229
|
-
toReturn['errorMessage'] = this.errorMessage;
|
|
3230
|
-
}
|
|
3231
|
-
if (typeof this.errorCode !== 'undefined') {
|
|
3232
|
-
toReturn['errorCode'] = this.errorCode;
|
|
3233
|
-
}
|
|
3234
|
-
if (typeof this.errorDetails !== 'undefined' && this.errorDetails !== null) {
|
|
3235
|
-
toReturn['errorDetails'] = 'toApiJson' in this.errorDetails ? this.errorDetails.toApiJson() : this.errorDetails;
|
|
3236
|
-
}
|
|
3237
|
-
if (typeof this.resumable !== 'undefined') {
|
|
3238
|
-
toReturn['resumable'] = this.resumable;
|
|
3239
|
-
}
|
|
3240
|
-
return toReturn;
|
|
3241
|
-
}
|
|
3242
|
-
}
|
|
3243
3388
|
class ExecuteFunctionRequest {
|
|
3244
3389
|
static fromProto(proto) {
|
|
3245
3390
|
let m = new ExecuteFunctionRequest();
|
|
@@ -3298,148 +3443,8 @@ class ExecuteFunctionResponse {
|
|
|
3298
3443
|
if (typeof this.output !== 'undefined') {
|
|
3299
3444
|
toReturn['output'] = this.output;
|
|
3300
3445
|
}
|
|
3301
|
-
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
3302
|
-
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
3303
|
-
}
|
|
3304
|
-
return toReturn;
|
|
3305
|
-
}
|
|
3306
|
-
}
|
|
3307
|
-
class ListGoalsRequestFilters {
|
|
3308
|
-
static fromProto(proto) {
|
|
3309
|
-
let m = new ListGoalsRequestFilters();
|
|
3310
|
-
m = Object.assign(m, proto);
|
|
3311
|
-
if (proto.namespace) {
|
|
3312
|
-
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3313
|
-
}
|
|
3314
|
-
if (proto.type) {
|
|
3315
|
-
m.type = enumStringToValue(GoalType, proto.type);
|
|
3316
|
-
}
|
|
3317
|
-
if (proto.supportedChannels) {
|
|
3318
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
3319
|
-
}
|
|
3320
|
-
if (proto.namespaces) {
|
|
3321
|
-
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3322
|
-
}
|
|
3323
|
-
if (proto.constraintFilters) {
|
|
3324
|
-
m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
|
|
3325
|
-
}
|
|
3326
|
-
if (proto.sortOptions) {
|
|
3327
|
-
m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
|
|
3328
|
-
}
|
|
3329
|
-
return m;
|
|
3330
|
-
}
|
|
3331
|
-
constructor(kwargs) {
|
|
3332
|
-
if (!kwargs) {
|
|
3333
|
-
return;
|
|
3334
|
-
}
|
|
3335
|
-
Object.assign(this, kwargs);
|
|
3336
|
-
}
|
|
3337
|
-
toApiJson() {
|
|
3338
|
-
const toReturn = {};
|
|
3339
|
-
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3340
|
-
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3341
|
-
}
|
|
3342
|
-
if (typeof this.type !== 'undefined') {
|
|
3343
|
-
toReturn['type'] = this.type;
|
|
3344
|
-
}
|
|
3345
|
-
if (typeof this.supportedChannels !== 'undefined') {
|
|
3346
|
-
toReturn['supportedChannels'] = this.supportedChannels;
|
|
3347
|
-
}
|
|
3348
|
-
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3349
|
-
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3350
|
-
}
|
|
3351
|
-
if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
|
|
3352
|
-
toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
|
|
3353
|
-
}
|
|
3354
|
-
if (typeof this.searchTerm !== 'undefined') {
|
|
3355
|
-
toReturn['searchTerm'] = this.searchTerm;
|
|
3356
|
-
}
|
|
3357
|
-
if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
|
|
3358
|
-
toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
|
|
3359
|
-
}
|
|
3360
|
-
if (typeof this.omitOverrides !== 'undefined') {
|
|
3361
|
-
toReturn['omitOverrides'] = this.omitOverrides;
|
|
3362
|
-
}
|
|
3363
|
-
return toReturn;
|
|
3364
|
-
}
|
|
3365
|
-
}
|
|
3366
|
-
class ListPromptModuleRequestFilters {
|
|
3367
|
-
static fromProto(proto) {
|
|
3368
|
-
let m = new ListPromptModuleRequestFilters();
|
|
3369
|
-
m = Object.assign(m, proto);
|
|
3370
|
-
if (proto.namespace) {
|
|
3371
|
-
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3372
|
-
}
|
|
3373
|
-
return m;
|
|
3374
|
-
}
|
|
3375
|
-
constructor(kwargs) {
|
|
3376
|
-
if (!kwargs) {
|
|
3377
|
-
return;
|
|
3378
|
-
}
|
|
3379
|
-
Object.assign(this, kwargs);
|
|
3380
|
-
}
|
|
3381
|
-
toApiJson() {
|
|
3382
|
-
const toReturn = {};
|
|
3383
|
-
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3384
|
-
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3385
|
-
}
|
|
3386
|
-
return toReturn;
|
|
3387
|
-
}
|
|
3388
|
-
}
|
|
3389
|
-
class ListAssistantRequestFilters {
|
|
3390
|
-
static fromProto(proto) {
|
|
3391
|
-
let m = new ListAssistantRequestFilters();
|
|
3392
|
-
m = Object.assign(m, proto);
|
|
3393
|
-
if (proto.namespace) {
|
|
3394
|
-
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3395
|
-
}
|
|
3396
|
-
if (proto.type) {
|
|
3397
|
-
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3398
|
-
}
|
|
3399
|
-
return m;
|
|
3400
|
-
}
|
|
3401
|
-
constructor(kwargs) {
|
|
3402
|
-
if (!kwargs) {
|
|
3403
|
-
return;
|
|
3404
|
-
}
|
|
3405
|
-
Object.assign(this, kwargs);
|
|
3406
|
-
}
|
|
3407
|
-
toApiJson() {
|
|
3408
|
-
const toReturn = {};
|
|
3409
|
-
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3410
|
-
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3411
|
-
}
|
|
3412
|
-
if (typeof this.type !== 'undefined') {
|
|
3413
|
-
toReturn['type'] = this.type;
|
|
3414
|
-
}
|
|
3415
|
-
return toReturn;
|
|
3416
|
-
}
|
|
3417
|
-
}
|
|
3418
|
-
class ListConnectionsRequestFilters {
|
|
3419
|
-
static fromProto(proto) {
|
|
3420
|
-
let m = new ListConnectionsRequestFilters();
|
|
3421
|
-
m = Object.assign(m, proto);
|
|
3422
|
-
if (proto.namespace) {
|
|
3423
|
-
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3424
|
-
}
|
|
3425
|
-
if (proto.assistantType) {
|
|
3426
|
-
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
3427
|
-
}
|
|
3428
|
-
return m;
|
|
3429
|
-
}
|
|
3430
|
-
constructor(kwargs) {
|
|
3431
|
-
if (!kwargs) {
|
|
3432
|
-
return;
|
|
3433
|
-
}
|
|
3434
|
-
Object.assign(this, kwargs);
|
|
3435
|
-
}
|
|
3436
|
-
toApiJson() {
|
|
3437
|
-
const toReturn = {};
|
|
3438
|
-
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3439
|
-
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3440
|
-
}
|
|
3441
|
-
if (typeof this.assistantType !== 'undefined') {
|
|
3442
|
-
toReturn['assistantType'] = this.assistantType;
|
|
3446
|
+
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
3447
|
+
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
3443
3448
|
}
|
|
3444
3449
|
return toReturn;
|
|
3445
3450
|
}
|
|
@@ -3482,15 +3487,27 @@ class ListFunctionRequestFilters {
|
|
|
3482
3487
|
return toReturn;
|
|
3483
3488
|
}
|
|
3484
3489
|
}
|
|
3485
|
-
class
|
|
3490
|
+
class ListGoalsRequestFilters {
|
|
3486
3491
|
static fromProto(proto) {
|
|
3487
|
-
let m = new
|
|
3492
|
+
let m = new ListGoalsRequestFilters();
|
|
3488
3493
|
m = Object.assign(m, proto);
|
|
3489
|
-
if (proto.
|
|
3490
|
-
m.
|
|
3494
|
+
if (proto.namespace) {
|
|
3495
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3491
3496
|
}
|
|
3492
3497
|
if (proto.type) {
|
|
3493
|
-
m.type =
|
|
3498
|
+
m.type = enumStringToValue(GoalType, proto.type);
|
|
3499
|
+
}
|
|
3500
|
+
if (proto.supportedChannels) {
|
|
3501
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
3502
|
+
}
|
|
3503
|
+
if (proto.namespaces) {
|
|
3504
|
+
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3505
|
+
}
|
|
3506
|
+
if (proto.constraintFilters) {
|
|
3507
|
+
m.constraintFilters = proto.constraintFilters.map(ConstraintFilter.fromProto);
|
|
3508
|
+
}
|
|
3509
|
+
if (proto.sortOptions) {
|
|
3510
|
+
m.sortOptions = proto.sortOptions.map(ListGoalsRequestSortOptions.fromProto);
|
|
3494
3511
|
}
|
|
3495
3512
|
return m;
|
|
3496
3513
|
}
|
|
@@ -3502,19 +3519,40 @@ class ListAvailableModelsRequestFilters {
|
|
|
3502
3519
|
}
|
|
3503
3520
|
toApiJson() {
|
|
3504
3521
|
const toReturn = {};
|
|
3505
|
-
if (typeof this.
|
|
3506
|
-
toReturn['
|
|
3522
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3523
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3507
3524
|
}
|
|
3508
3525
|
if (typeof this.type !== 'undefined') {
|
|
3509
3526
|
toReturn['type'] = this.type;
|
|
3510
3527
|
}
|
|
3528
|
+
if (typeof this.supportedChannels !== 'undefined') {
|
|
3529
|
+
toReturn['supportedChannels'] = this.supportedChannels;
|
|
3530
|
+
}
|
|
3531
|
+
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3532
|
+
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3533
|
+
}
|
|
3534
|
+
if (typeof this.constraintFilters !== 'undefined' && this.constraintFilters !== null) {
|
|
3535
|
+
toReturn['constraintFilters'] = 'toApiJson' in this.constraintFilters ? this.constraintFilters.toApiJson() : this.constraintFilters;
|
|
3536
|
+
}
|
|
3537
|
+
if (typeof this.searchTerm !== 'undefined') {
|
|
3538
|
+
toReturn['searchTerm'] = this.searchTerm;
|
|
3539
|
+
}
|
|
3540
|
+
if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
|
|
3541
|
+
toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
|
|
3542
|
+
}
|
|
3543
|
+
if (typeof this.omitOverrides !== 'undefined') {
|
|
3544
|
+
toReturn['omitOverrides'] = this.omitOverrides;
|
|
3545
|
+
}
|
|
3511
3546
|
return toReturn;
|
|
3512
3547
|
}
|
|
3513
3548
|
}
|
|
3514
|
-
class
|
|
3549
|
+
class ListAssistantRequestFilters {
|
|
3515
3550
|
static fromProto(proto) {
|
|
3516
|
-
let m = new
|
|
3551
|
+
let m = new ListAssistantRequestFilters();
|
|
3517
3552
|
m = Object.assign(m, proto);
|
|
3553
|
+
if (proto.namespace) {
|
|
3554
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3555
|
+
}
|
|
3518
3556
|
if (proto.type) {
|
|
3519
3557
|
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3520
3558
|
}
|
|
@@ -3528,16 +3566,22 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
3528
3566
|
}
|
|
3529
3567
|
toApiJson() {
|
|
3530
3568
|
const toReturn = {};
|
|
3569
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3570
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3571
|
+
}
|
|
3531
3572
|
if (typeof this.type !== 'undefined') {
|
|
3532
3573
|
toReturn['type'] = this.type;
|
|
3533
3574
|
}
|
|
3534
3575
|
return toReturn;
|
|
3535
3576
|
}
|
|
3536
3577
|
}
|
|
3537
|
-
class
|
|
3578
|
+
class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
3538
3579
|
static fromProto(proto) {
|
|
3539
|
-
let m = new
|
|
3580
|
+
let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
|
|
3540
3581
|
m = Object.assign(m, proto);
|
|
3582
|
+
if (proto.type) {
|
|
3583
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3584
|
+
}
|
|
3541
3585
|
return m;
|
|
3542
3586
|
}
|
|
3543
3587
|
constructor(kwargs) {
|
|
@@ -3548,15 +3592,18 @@ class StreamingGenerateChatAnswerResponseFinalChunk {
|
|
|
3548
3592
|
}
|
|
3549
3593
|
toApiJson() {
|
|
3550
3594
|
const toReturn = {};
|
|
3595
|
+
if (typeof this.type !== 'undefined') {
|
|
3596
|
+
toReturn['type'] = this.type;
|
|
3597
|
+
}
|
|
3551
3598
|
return toReturn;
|
|
3552
3599
|
}
|
|
3553
3600
|
}
|
|
3554
|
-
class
|
|
3601
|
+
class ListPromptModuleRequestFilters {
|
|
3555
3602
|
static fromProto(proto) {
|
|
3556
|
-
let m = new
|
|
3603
|
+
let m = new ListPromptModuleRequestFilters();
|
|
3557
3604
|
m = Object.assign(m, proto);
|
|
3558
|
-
if (proto.
|
|
3559
|
-
m.
|
|
3605
|
+
if (proto.namespace) {
|
|
3606
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3560
3607
|
}
|
|
3561
3608
|
return m;
|
|
3562
3609
|
}
|
|
@@ -3568,25 +3615,22 @@ class StreamingGenerateChatAnswerResponseFunctionCompleteChunk {
|
|
|
3568
3615
|
}
|
|
3569
3616
|
toApiJson() {
|
|
3570
3617
|
const toReturn = {};
|
|
3571
|
-
if (typeof this.
|
|
3572
|
-
toReturn['
|
|
3573
|
-
}
|
|
3574
|
-
if (typeof this.result !== 'undefined') {
|
|
3575
|
-
toReturn['result'] = this.result;
|
|
3576
|
-
}
|
|
3577
|
-
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
3578
|
-
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
3579
|
-
}
|
|
3580
|
-
if (typeof this.functionCallId !== 'undefined') {
|
|
3581
|
-
toReturn['functionCallId'] = this.functionCallId;
|
|
3618
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3619
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3582
3620
|
}
|
|
3583
3621
|
return toReturn;
|
|
3584
3622
|
}
|
|
3585
3623
|
}
|
|
3586
|
-
class
|
|
3624
|
+
class ListConnectionsRequestFilters {
|
|
3587
3625
|
static fromProto(proto) {
|
|
3588
|
-
let m = new
|
|
3626
|
+
let m = new ListConnectionsRequestFilters();
|
|
3589
3627
|
m = Object.assign(m, proto);
|
|
3628
|
+
if (proto.namespace) {
|
|
3629
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3630
|
+
}
|
|
3631
|
+
if (proto.assistantType) {
|
|
3632
|
+
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
3633
|
+
}
|
|
3590
3634
|
return m;
|
|
3591
3635
|
}
|
|
3592
3636
|
constructor(kwargs) {
|
|
@@ -3597,25 +3641,25 @@ class StreamingGenerateChatAnswerResponseFunctionProgressChunk {
|
|
|
3597
3641
|
}
|
|
3598
3642
|
toApiJson() {
|
|
3599
3643
|
const toReturn = {};
|
|
3600
|
-
if (typeof this.
|
|
3601
|
-
toReturn['
|
|
3602
|
-
}
|
|
3603
|
-
if (typeof this.status !== 'undefined') {
|
|
3604
|
-
toReturn['status'] = this.status;
|
|
3605
|
-
}
|
|
3606
|
-
if (typeof this.progressMessage !== 'undefined') {
|
|
3607
|
-
toReturn['progressMessage'] = this.progressMessage;
|
|
3644
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3645
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3608
3646
|
}
|
|
3609
|
-
if (typeof this.
|
|
3610
|
-
toReturn['
|
|
3647
|
+
if (typeof this.assistantType !== 'undefined') {
|
|
3648
|
+
toReturn['assistantType'] = this.assistantType;
|
|
3611
3649
|
}
|
|
3612
3650
|
return toReturn;
|
|
3613
3651
|
}
|
|
3614
3652
|
}
|
|
3615
|
-
class
|
|
3653
|
+
class ListAvailableModelsRequestFilters {
|
|
3616
3654
|
static fromProto(proto) {
|
|
3617
|
-
let m = new
|
|
3655
|
+
let m = new ListAvailableModelsRequestFilters();
|
|
3618
3656
|
m = Object.assign(m, proto);
|
|
3657
|
+
if (proto.vendor) {
|
|
3658
|
+
m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
|
|
3659
|
+
}
|
|
3660
|
+
if (proto.type) {
|
|
3661
|
+
m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
|
|
3662
|
+
}
|
|
3619
3663
|
return m;
|
|
3620
3664
|
}
|
|
3621
3665
|
constructor(kwargs) {
|
|
@@ -3626,17 +3670,11 @@ class StreamingGenerateChatAnswerResponseFunctionStartChunk {
|
|
|
3626
3670
|
}
|
|
3627
3671
|
toApiJson() {
|
|
3628
3672
|
const toReturn = {};
|
|
3629
|
-
if (typeof this.
|
|
3630
|
-
toReturn['
|
|
3631
|
-
}
|
|
3632
|
-
if (typeof this.functionDescription !== 'undefined') {
|
|
3633
|
-
toReturn['functionDescription'] = this.functionDescription;
|
|
3634
|
-
}
|
|
3635
|
-
if (typeof this.arguments !== 'undefined') {
|
|
3636
|
-
toReturn['arguments'] = this.arguments;
|
|
3673
|
+
if (typeof this.vendor !== 'undefined') {
|
|
3674
|
+
toReturn['vendor'] = this.vendor;
|
|
3637
3675
|
}
|
|
3638
|
-
if (typeof this.
|
|
3639
|
-
toReturn['
|
|
3676
|
+
if (typeof this.type !== 'undefined') {
|
|
3677
|
+
toReturn['type'] = this.type;
|
|
3640
3678
|
}
|
|
3641
3679
|
return toReturn;
|
|
3642
3680
|
}
|
|
@@ -3707,6 +3745,9 @@ class GenerateChatAnswerResponse {
|
|
|
3707
3745
|
if (proto.metadata) {
|
|
3708
3746
|
m.metadata = proto.metadata.map(KeyValuePair.fromProto);
|
|
3709
3747
|
}
|
|
3748
|
+
if (proto.validationResult) {
|
|
3749
|
+
m.validationResult = ValidationResult.fromProto(proto.validationResult);
|
|
3750
|
+
}
|
|
3710
3751
|
return m;
|
|
3711
3752
|
}
|
|
3712
3753
|
constructor(kwargs) {
|
|
@@ -3726,6 +3767,9 @@ class GenerateChatAnswerResponse {
|
|
|
3726
3767
|
if (typeof this.pendingJobId !== 'undefined') {
|
|
3727
3768
|
toReturn['pendingJobId'] = this.pendingJobId;
|
|
3728
3769
|
}
|
|
3770
|
+
if (typeof this.validationResult !== 'undefined' && this.validationResult !== null) {
|
|
3771
|
+
toReturn['validationResult'] = 'toApiJson' in this.validationResult ? this.validationResult.toApiJson() : this.validationResult;
|
|
3772
|
+
}
|
|
3729
3773
|
return toReturn;
|
|
3730
3774
|
}
|
|
3731
3775
|
}
|
|
@@ -4937,32 +4981,9 @@ class ListTemplateVariablesResponse {
|
|
|
4937
4981
|
return toReturn;
|
|
4938
4982
|
}
|
|
4939
4983
|
}
|
|
4940
|
-
class
|
|
4941
|
-
static fromProto(proto) {
|
|
4942
|
-
let m = new StreamingGenerateChatAnswerResponseMetadataChunk();
|
|
4943
|
-
m = Object.assign(m, proto);
|
|
4944
|
-
if (proto.metadata) {
|
|
4945
|
-
m.metadata = proto.metadata.map(KeyValuePair.fromProto);
|
|
4946
|
-
}
|
|
4947
|
-
return m;
|
|
4948
|
-
}
|
|
4949
|
-
constructor(kwargs) {
|
|
4950
|
-
if (!kwargs) {
|
|
4951
|
-
return;
|
|
4952
|
-
}
|
|
4953
|
-
Object.assign(this, kwargs);
|
|
4954
|
-
}
|
|
4955
|
-
toApiJson() {
|
|
4956
|
-
const toReturn = {};
|
|
4957
|
-
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
4958
|
-
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
4959
|
-
}
|
|
4960
|
-
return toReturn;
|
|
4961
|
-
}
|
|
4962
|
-
}
|
|
4963
|
-
class GetAssistantRequestOptions {
|
|
4984
|
+
class UpsertAssistantRequestOptions {
|
|
4964
4985
|
static fromProto(proto) {
|
|
4965
|
-
let m = new
|
|
4986
|
+
let m = new UpsertAssistantRequestOptions();
|
|
4966
4987
|
m = Object.assign(m, proto);
|
|
4967
4988
|
return m;
|
|
4968
4989
|
}
|
|
@@ -4974,8 +4995,8 @@ class GetAssistantRequestOptions {
|
|
|
4974
4995
|
}
|
|
4975
4996
|
toApiJson() {
|
|
4976
4997
|
const toReturn = {};
|
|
4977
|
-
if (typeof this.
|
|
4978
|
-
toReturn['
|
|
4998
|
+
if (typeof this.applyDefaults !== 'undefined') {
|
|
4999
|
+
toReturn['applyDefaults'] = this.applyDefaults;
|
|
4979
5000
|
}
|
|
4980
5001
|
return toReturn;
|
|
4981
5002
|
}
|
|
@@ -5000,9 +5021,9 @@ class GetMultiAssistantRequestOptions {
|
|
|
5000
5021
|
return toReturn;
|
|
5001
5022
|
}
|
|
5002
5023
|
}
|
|
5003
|
-
class
|
|
5024
|
+
class CreatePromptModuleVersionRequestOptions {
|
|
5004
5025
|
static fromProto(proto) {
|
|
5005
|
-
let m = new
|
|
5026
|
+
let m = new CreatePromptModuleVersionRequestOptions();
|
|
5006
5027
|
m = Object.assign(m, proto);
|
|
5007
5028
|
return m;
|
|
5008
5029
|
}
|
|
@@ -5014,8 +5035,8 @@ class UpsertAssistantRequestOptions {
|
|
|
5014
5035
|
}
|
|
5015
5036
|
toApiJson() {
|
|
5016
5037
|
const toReturn = {};
|
|
5017
|
-
if (typeof this.
|
|
5018
|
-
toReturn['
|
|
5038
|
+
if (typeof this.shouldDeploy !== 'undefined') {
|
|
5039
|
+
toReturn['shouldDeploy'] = this.shouldDeploy;
|
|
5019
5040
|
}
|
|
5020
5041
|
return toReturn;
|
|
5021
5042
|
}
|
|
@@ -5040,13 +5061,10 @@ class CreateAssistantRequestOptions {
|
|
|
5040
5061
|
return toReturn;
|
|
5041
5062
|
}
|
|
5042
5063
|
}
|
|
5043
|
-
class
|
|
5064
|
+
class GetAssistantRequestOptions {
|
|
5044
5065
|
static fromProto(proto) {
|
|
5045
|
-
let m = new
|
|
5066
|
+
let m = new GetAssistantRequestOptions();
|
|
5046
5067
|
m = Object.assign(m, proto);
|
|
5047
|
-
if (proto.contextInfo) {
|
|
5048
|
-
m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
|
|
5049
|
-
}
|
|
5050
5068
|
return m;
|
|
5051
5069
|
}
|
|
5052
5070
|
constructor(kwargs) {
|
|
@@ -5057,11 +5075,8 @@ class ExecuteFunctionRequestOptions {
|
|
|
5057
5075
|
}
|
|
5058
5076
|
toApiJson() {
|
|
5059
5077
|
const toReturn = {};
|
|
5060
|
-
if (typeof this.
|
|
5061
|
-
toReturn['
|
|
5062
|
-
}
|
|
5063
|
-
if (typeof this.contextInfo !== 'undefined' && this.contextInfo !== null) {
|
|
5064
|
-
toReturn['contextInfo'] = 'toApiJson' in this.contextInfo ? this.contextInfo.toApiJson() : this.contextInfo;
|
|
5078
|
+
if (typeof this.skipGoalsHydration !== 'undefined') {
|
|
5079
|
+
toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
|
|
5065
5080
|
}
|
|
5066
5081
|
return toReturn;
|
|
5067
5082
|
}
|
|
@@ -5090,118 +5105,17 @@ class GenerateChatAnswerRequestOptions {
|
|
|
5090
5105
|
toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
|
|
5091
5106
|
}
|
|
5092
5107
|
if (typeof this.maxTokens !== 'undefined') {
|
|
5093
|
-
toReturn['maxTokens'] = this.maxTokens;
|
|
5094
|
-
}
|
|
5095
|
-
return toReturn;
|
|
5096
|
-
}
|
|
5097
|
-
}
|
|
5098
|
-
class CreatePromptModuleVersionRequestOptions {
|
|
5099
|
-
static fromProto(proto) {
|
|
5100
|
-
let m = new CreatePromptModuleVersionRequestOptions();
|
|
5101
|
-
m = Object.assign(m, proto);
|
|
5102
|
-
return m;
|
|
5103
|
-
}
|
|
5104
|
-
constructor(kwargs) {
|
|
5105
|
-
if (!kwargs) {
|
|
5106
|
-
return;
|
|
5107
|
-
}
|
|
5108
|
-
Object.assign(this, kwargs);
|
|
5109
|
-
}
|
|
5110
|
-
toApiJson() {
|
|
5111
|
-
const toReturn = {};
|
|
5112
|
-
if (typeof this.shouldDeploy !== 'undefined') {
|
|
5113
|
-
toReturn['shouldDeploy'] = this.shouldDeploy;
|
|
5114
|
-
}
|
|
5115
|
-
return toReturn;
|
|
5116
|
-
}
|
|
5117
|
-
}
|
|
5118
|
-
class ResumeStreamingGenerateChatAnswerRequest {
|
|
5119
|
-
static fromProto(proto) {
|
|
5120
|
-
let m = new ResumeStreamingGenerateChatAnswerRequest();
|
|
5121
|
-
m = Object.assign(m, proto);
|
|
5122
|
-
if (proto.lastReceivedSequenceNumber) {
|
|
5123
|
-
m.lastReceivedSequenceNumber = parseInt(proto.lastReceivedSequenceNumber, 10);
|
|
5124
|
-
}
|
|
5125
|
-
return m;
|
|
5126
|
-
}
|
|
5127
|
-
constructor(kwargs) {
|
|
5128
|
-
if (!kwargs) {
|
|
5129
|
-
return;
|
|
5130
|
-
}
|
|
5131
|
-
Object.assign(this, kwargs);
|
|
5132
|
-
}
|
|
5133
|
-
toApiJson() {
|
|
5134
|
-
const toReturn = {};
|
|
5135
|
-
if (typeof this.streamId !== 'undefined') {
|
|
5136
|
-
toReturn['streamId'] = this.streamId;
|
|
5137
|
-
}
|
|
5138
|
-
if (typeof this.lastReceivedSequenceNumber !== 'undefined') {
|
|
5139
|
-
toReturn['lastReceivedSequenceNumber'] = this.lastReceivedSequenceNumber;
|
|
5140
|
-
}
|
|
5141
|
-
return toReturn;
|
|
5142
|
-
}
|
|
5143
|
-
}
|
|
5144
|
-
class SetAssistantConnectionsRequest {
|
|
5145
|
-
static fromProto(proto) {
|
|
5146
|
-
let m = new SetAssistantConnectionsRequest();
|
|
5147
|
-
m = Object.assign(m, proto);
|
|
5148
|
-
if (proto.associationStates) {
|
|
5149
|
-
m.associationStates = proto.associationStates.map(SetAssistantConnectionsRequestConnectionState.fromProto);
|
|
5150
|
-
}
|
|
5151
|
-
if (proto.assistantKey) {
|
|
5152
|
-
m.assistantKey = AssistantKey.fromProto(proto.assistantKey);
|
|
5153
|
-
}
|
|
5154
|
-
return m;
|
|
5155
|
-
}
|
|
5156
|
-
constructor(kwargs) {
|
|
5157
|
-
if (!kwargs) {
|
|
5158
|
-
return;
|
|
5159
|
-
}
|
|
5160
|
-
Object.assign(this, kwargs);
|
|
5161
|
-
}
|
|
5162
|
-
toApiJson() {
|
|
5163
|
-
const toReturn = {};
|
|
5164
|
-
if (typeof this.associationStates !== 'undefined' && this.associationStates !== null) {
|
|
5165
|
-
toReturn['associationStates'] = 'toApiJson' in this.associationStates ? this.associationStates.toApiJson() : this.associationStates;
|
|
5166
|
-
}
|
|
5167
|
-
if (typeof this.assistantKey !== 'undefined' && this.assistantKey !== null) {
|
|
5168
|
-
toReturn['assistantKey'] = 'toApiJson' in this.assistantKey ? this.assistantKey.toApiJson() : this.assistantKey;
|
|
5169
|
-
}
|
|
5170
|
-
return toReturn;
|
|
5171
|
-
}
|
|
5172
|
-
}
|
|
5173
|
-
class ListGoalsRequestSortOptions {
|
|
5174
|
-
static fromProto(proto) {
|
|
5175
|
-
let m = new ListGoalsRequestSortOptions();
|
|
5176
|
-
m = Object.assign(m, proto);
|
|
5177
|
-
if (proto.order) {
|
|
5178
|
-
m.order = enumStringToValue(ListGoalsRequestSortingOrder, proto.order);
|
|
5179
|
-
}
|
|
5180
|
-
return m;
|
|
5181
|
-
}
|
|
5182
|
-
constructor(kwargs) {
|
|
5183
|
-
if (!kwargs) {
|
|
5184
|
-
return;
|
|
5185
|
-
}
|
|
5186
|
-
Object.assign(this, kwargs);
|
|
5187
|
-
}
|
|
5188
|
-
toApiJson() {
|
|
5189
|
-
const toReturn = {};
|
|
5190
|
-
if (typeof this.field !== 'undefined') {
|
|
5191
|
-
toReturn['field'] = this.field;
|
|
5192
|
-
}
|
|
5193
|
-
if (typeof this.order !== 'undefined') {
|
|
5194
|
-
toReturn['order'] = this.order;
|
|
5108
|
+
toReturn['maxTokens'] = this.maxTokens;
|
|
5195
5109
|
}
|
|
5196
5110
|
return toReturn;
|
|
5197
5111
|
}
|
|
5198
5112
|
}
|
|
5199
|
-
class
|
|
5113
|
+
class ExecuteFunctionRequestOptions {
|
|
5200
5114
|
static fromProto(proto) {
|
|
5201
|
-
let m = new
|
|
5115
|
+
let m = new ExecuteFunctionRequestOptions();
|
|
5202
5116
|
m = Object.assign(m, proto);
|
|
5203
|
-
if (proto.
|
|
5204
|
-
m.
|
|
5117
|
+
if (proto.contextInfo) {
|
|
5118
|
+
m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
|
|
5205
5119
|
}
|
|
5206
5120
|
return m;
|
|
5207
5121
|
}
|
|
@@ -5213,40 +5127,25 @@ class StreamingGenerateChatAnswerResponseStartChunk {
|
|
|
5213
5127
|
}
|
|
5214
5128
|
toApiJson() {
|
|
5215
5129
|
const toReturn = {};
|
|
5216
|
-
if (typeof this.
|
|
5217
|
-
toReturn['
|
|
5130
|
+
if (typeof this.skipComputeTemplateVariables !== 'undefined') {
|
|
5131
|
+
toReturn['skipComputeTemplateVariables'] = this.skipComputeTemplateVariables;
|
|
5218
5132
|
}
|
|
5219
|
-
if (typeof this.
|
|
5220
|
-
toReturn['
|
|
5133
|
+
if (typeof this.contextInfo !== 'undefined' && this.contextInfo !== null) {
|
|
5134
|
+
toReturn['contextInfo'] = 'toApiJson' in this.contextInfo ? this.contextInfo.toApiJson() : this.contextInfo;
|
|
5221
5135
|
}
|
|
5222
5136
|
return toReturn;
|
|
5223
5137
|
}
|
|
5224
5138
|
}
|
|
5225
|
-
class
|
|
5139
|
+
class SetAssistantConnectionsRequest {
|
|
5226
5140
|
static fromProto(proto) {
|
|
5227
|
-
let m = new
|
|
5141
|
+
let m = new SetAssistantConnectionsRequest();
|
|
5228
5142
|
m = Object.assign(m, proto);
|
|
5229
|
-
if (proto.
|
|
5230
|
-
m.
|
|
5143
|
+
if (proto.associationStates) {
|
|
5144
|
+
m.associationStates = proto.associationStates.map(SetAssistantConnectionsRequestConnectionState.fromProto);
|
|
5231
5145
|
}
|
|
5232
5146
|
if (proto.assistantKey) {
|
|
5233
5147
|
m.assistantKey = AssistantKey.fromProto(proto.assistantKey);
|
|
5234
5148
|
}
|
|
5235
|
-
if (proto.chatHistory) {
|
|
5236
|
-
m.chatHistory = proto.chatHistory.map(ChatMessage.fromProto);
|
|
5237
|
-
}
|
|
5238
|
-
if (proto.chatUserInfo) {
|
|
5239
|
-
m.chatUserInfo = ChatUserInfo.fromProto(proto.chatUserInfo);
|
|
5240
|
-
}
|
|
5241
|
-
if (proto.chatChannel) {
|
|
5242
|
-
m.chatChannel = enumStringToValue(ChatChannel, proto.chatChannel);
|
|
5243
|
-
}
|
|
5244
|
-
if (proto.contextInfo) {
|
|
5245
|
-
m.contextInfo = ContextInfo.fromProto(proto.contextInfo);
|
|
5246
|
-
}
|
|
5247
|
-
if (proto.agentArchitecture) {
|
|
5248
|
-
m.agentArchitecture = enumStringToValue(AgentArchitecture, proto.agentArchitecture);
|
|
5249
|
-
}
|
|
5250
5149
|
return m;
|
|
5251
5150
|
}
|
|
5252
5151
|
constructor(kwargs) {
|
|
@@ -5257,60 +5156,21 @@ class StreamingGenerateChatAnswerRequest {
|
|
|
5257
5156
|
}
|
|
5258
5157
|
toApiJson() {
|
|
5259
5158
|
const toReturn = {};
|
|
5260
|
-
if (typeof this.
|
|
5261
|
-
toReturn['
|
|
5159
|
+
if (typeof this.associationStates !== 'undefined' && this.associationStates !== null) {
|
|
5160
|
+
toReturn['associationStates'] = 'toApiJson' in this.associationStates ? this.associationStates.toApiJson() : this.associationStates;
|
|
5262
5161
|
}
|
|
5263
5162
|
if (typeof this.assistantKey !== 'undefined' && this.assistantKey !== null) {
|
|
5264
5163
|
toReturn['assistantKey'] = 'toApiJson' in this.assistantKey ? this.assistantKey.toApiJson() : this.assistantKey;
|
|
5265
5164
|
}
|
|
5266
|
-
if (typeof this.chatHistory !== 'undefined' && this.chatHistory !== null) {
|
|
5267
|
-
toReturn['chatHistory'] = 'toApiJson' in this.chatHistory ? this.chatHistory.toApiJson() : this.chatHistory;
|
|
5268
|
-
}
|
|
5269
|
-
if (typeof this.chatUserInfo !== 'undefined' && this.chatUserInfo !== null) {
|
|
5270
|
-
toReturn['chatUserInfo'] = 'toApiJson' in this.chatUserInfo ? this.chatUserInfo.toApiJson() : this.chatUserInfo;
|
|
5271
|
-
}
|
|
5272
|
-
if (typeof this.chatChannel !== 'undefined') {
|
|
5273
|
-
toReturn['chatChannel'] = this.chatChannel;
|
|
5274
|
-
}
|
|
5275
|
-
if (typeof this.contextInfo !== 'undefined' && this.contextInfo !== null) {
|
|
5276
|
-
toReturn['contextInfo'] = 'toApiJson' in this.contextInfo ? this.contextInfo.toApiJson() : this.contextInfo;
|
|
5277
|
-
}
|
|
5278
|
-
if (typeof this.agentArchitecture !== 'undefined') {
|
|
5279
|
-
toReturn['agentArchitecture'] = this.agentArchitecture;
|
|
5280
|
-
}
|
|
5281
5165
|
return toReturn;
|
|
5282
5166
|
}
|
|
5283
5167
|
}
|
|
5284
|
-
class
|
|
5168
|
+
class ListGoalsRequestSortOptions {
|
|
5285
5169
|
static fromProto(proto) {
|
|
5286
|
-
let m = new
|
|
5170
|
+
let m = new ListGoalsRequestSortOptions();
|
|
5287
5171
|
m = Object.assign(m, proto);
|
|
5288
|
-
if (proto.
|
|
5289
|
-
m.
|
|
5290
|
-
}
|
|
5291
|
-
if (proto.start) {
|
|
5292
|
-
m.start = StreamingGenerateChatAnswerResponseStartChunk.fromProto(proto.start);
|
|
5293
|
-
}
|
|
5294
|
-
if (proto.content) {
|
|
5295
|
-
m.content = StreamingGenerateChatAnswerResponseContentChunk.fromProto(proto.content);
|
|
5296
|
-
}
|
|
5297
|
-
if (proto.metadata) {
|
|
5298
|
-
m.metadata = StreamingGenerateChatAnswerResponseMetadataChunk.fromProto(proto.metadata);
|
|
5299
|
-
}
|
|
5300
|
-
if (proto.functionStart) {
|
|
5301
|
-
m.functionStart = StreamingGenerateChatAnswerResponseFunctionStartChunk.fromProto(proto.functionStart);
|
|
5302
|
-
}
|
|
5303
|
-
if (proto.functionProgress) {
|
|
5304
|
-
m.functionProgress = StreamingGenerateChatAnswerResponseFunctionProgressChunk.fromProto(proto.functionProgress);
|
|
5305
|
-
}
|
|
5306
|
-
if (proto.functionComplete) {
|
|
5307
|
-
m.functionComplete = StreamingGenerateChatAnswerResponseFunctionCompleteChunk.fromProto(proto.functionComplete);
|
|
5308
|
-
}
|
|
5309
|
-
if (proto.final) {
|
|
5310
|
-
m.final = StreamingGenerateChatAnswerResponseFinalChunk.fromProto(proto.final);
|
|
5311
|
-
}
|
|
5312
|
-
if (proto.error) {
|
|
5313
|
-
m.error = StreamingGenerateChatAnswerResponseErrorChunk.fromProto(proto.error);
|
|
5172
|
+
if (proto.order) {
|
|
5173
|
+
m.order = enumStringToValue(ListGoalsRequestSortingOrder, proto.order);
|
|
5314
5174
|
}
|
|
5315
5175
|
return m;
|
|
5316
5176
|
}
|
|
@@ -5322,32 +5182,11 @@ class StreamingGenerateChatAnswerResponse {
|
|
|
5322
5182
|
}
|
|
5323
5183
|
toApiJson() {
|
|
5324
5184
|
const toReturn = {};
|
|
5325
|
-
if (typeof this.
|
|
5326
|
-
toReturn['
|
|
5327
|
-
}
|
|
5328
|
-
if (typeof this.start !== 'undefined' && this.start !== null) {
|
|
5329
|
-
toReturn['start'] = 'toApiJson' in this.start ? this.start.toApiJson() : this.start;
|
|
5330
|
-
}
|
|
5331
|
-
if (typeof this.content !== 'undefined' && this.content !== null) {
|
|
5332
|
-
toReturn['content'] = 'toApiJson' in this.content ? this.content.toApiJson() : this.content;
|
|
5333
|
-
}
|
|
5334
|
-
if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
|
|
5335
|
-
toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
|
|
5336
|
-
}
|
|
5337
|
-
if (typeof this.functionStart !== 'undefined' && this.functionStart !== null) {
|
|
5338
|
-
toReturn['functionStart'] = 'toApiJson' in this.functionStart ? this.functionStart.toApiJson() : this.functionStart;
|
|
5339
|
-
}
|
|
5340
|
-
if (typeof this.functionProgress !== 'undefined' && this.functionProgress !== null) {
|
|
5341
|
-
toReturn['functionProgress'] = 'toApiJson' in this.functionProgress ? this.functionProgress.toApiJson() : this.functionProgress;
|
|
5342
|
-
}
|
|
5343
|
-
if (typeof this.functionComplete !== 'undefined' && this.functionComplete !== null) {
|
|
5344
|
-
toReturn['functionComplete'] = 'toApiJson' in this.functionComplete ? this.functionComplete.toApiJson() : this.functionComplete;
|
|
5345
|
-
}
|
|
5346
|
-
if (typeof this.final !== 'undefined' && this.final !== null) {
|
|
5347
|
-
toReturn['final'] = 'toApiJson' in this.final ? this.final.toApiJson() : this.final;
|
|
5185
|
+
if (typeof this.field !== 'undefined') {
|
|
5186
|
+
toReturn['field'] = this.field;
|
|
5348
5187
|
}
|
|
5349
|
-
if (typeof this.
|
|
5350
|
-
toReturn['
|
|
5188
|
+
if (typeof this.order !== 'undefined') {
|
|
5189
|
+
toReturn['order'] = this.order;
|
|
5351
5190
|
}
|
|
5352
5191
|
return toReturn;
|
|
5353
5192
|
}
|
|
@@ -5600,6 +5439,232 @@ class ValidatePromptModuleResponse {
|
|
|
5600
5439
|
return toReturn;
|
|
5601
5440
|
}
|
|
5602
5441
|
}
|
|
5442
|
+
class ValidatePromptModuleVersionsRequest {
|
|
5443
|
+
static fromProto(proto) {
|
|
5444
|
+
let m = new ValidatePromptModuleVersionsRequest();
|
|
5445
|
+
m = Object.assign(m, proto);
|
|
5446
|
+
if (proto.versions) {
|
|
5447
|
+
m.versions = proto.versions.map(PromptModuleVersion.fromProto);
|
|
5448
|
+
}
|
|
5449
|
+
return m;
|
|
5450
|
+
}
|
|
5451
|
+
constructor(kwargs) {
|
|
5452
|
+
if (!kwargs) {
|
|
5453
|
+
return;
|
|
5454
|
+
}
|
|
5455
|
+
Object.assign(this, kwargs);
|
|
5456
|
+
}
|
|
5457
|
+
toApiJson() {
|
|
5458
|
+
const toReturn = {};
|
|
5459
|
+
if (typeof this.versions !== 'undefined' && this.versions !== null) {
|
|
5460
|
+
toReturn['versions'] = 'toApiJson' in this.versions ? this.versions.toApiJson() : this.versions;
|
|
5461
|
+
}
|
|
5462
|
+
return toReturn;
|
|
5463
|
+
}
|
|
5464
|
+
}
|
|
5465
|
+
class ValidatePromptModuleVersionsResponse {
|
|
5466
|
+
static fromProto(proto) {
|
|
5467
|
+
let m = new ValidatePromptModuleVersionsResponse();
|
|
5468
|
+
m = Object.assign(m, proto);
|
|
5469
|
+
if (proto.results) {
|
|
5470
|
+
m.results = proto.results.map(ValidatePromptModuleVersionsResponseValidationResult.fromProto);
|
|
5471
|
+
}
|
|
5472
|
+
return m;
|
|
5473
|
+
}
|
|
5474
|
+
constructor(kwargs) {
|
|
5475
|
+
if (!kwargs) {
|
|
5476
|
+
return;
|
|
5477
|
+
}
|
|
5478
|
+
Object.assign(this, kwargs);
|
|
5479
|
+
}
|
|
5480
|
+
toApiJson() {
|
|
5481
|
+
const toReturn = {};
|
|
5482
|
+
if (typeof this.results !== 'undefined' && this.results !== null) {
|
|
5483
|
+
toReturn['results'] = 'toApiJson' in this.results ? this.results.toApiJson() : this.results;
|
|
5484
|
+
}
|
|
5485
|
+
if (typeof this.allValid !== 'undefined') {
|
|
5486
|
+
toReturn['allValid'] = this.allValid;
|
|
5487
|
+
}
|
|
5488
|
+
return toReturn;
|
|
5489
|
+
}
|
|
5490
|
+
}
|
|
5491
|
+
class ValidatePromptModulesRequest {
|
|
5492
|
+
static fromProto(proto) {
|
|
5493
|
+
let m = new ValidatePromptModulesRequest();
|
|
5494
|
+
m = Object.assign(m, proto);
|
|
5495
|
+
if (proto.promptModules) {
|
|
5496
|
+
m.promptModules = proto.promptModules.map(PromptModule.fromProto);
|
|
5497
|
+
}
|
|
5498
|
+
return m;
|
|
5499
|
+
}
|
|
5500
|
+
constructor(kwargs) {
|
|
5501
|
+
if (!kwargs) {
|
|
5502
|
+
return;
|
|
5503
|
+
}
|
|
5504
|
+
Object.assign(this, kwargs);
|
|
5505
|
+
}
|
|
5506
|
+
toApiJson() {
|
|
5507
|
+
const toReturn = {};
|
|
5508
|
+
if (typeof this.promptModules !== 'undefined' && this.promptModules !== null) {
|
|
5509
|
+
toReturn['promptModules'] = 'toApiJson' in this.promptModules ? this.promptModules.toApiJson() : this.promptModules;
|
|
5510
|
+
}
|
|
5511
|
+
return toReturn;
|
|
5512
|
+
}
|
|
5513
|
+
}
|
|
5514
|
+
class ValidatePromptModulesResponse {
|
|
5515
|
+
static fromProto(proto) {
|
|
5516
|
+
let m = new ValidatePromptModulesResponse();
|
|
5517
|
+
m = Object.assign(m, proto);
|
|
5518
|
+
if (proto.results) {
|
|
5519
|
+
m.results = proto.results.map(ValidatePromptModulesResponseValidationResult.fromProto);
|
|
5520
|
+
}
|
|
5521
|
+
return m;
|
|
5522
|
+
}
|
|
5523
|
+
constructor(kwargs) {
|
|
5524
|
+
if (!kwargs) {
|
|
5525
|
+
return;
|
|
5526
|
+
}
|
|
5527
|
+
Object.assign(this, kwargs);
|
|
5528
|
+
}
|
|
5529
|
+
toApiJson() {
|
|
5530
|
+
const toReturn = {};
|
|
5531
|
+
if (typeof this.results !== 'undefined' && this.results !== null) {
|
|
5532
|
+
toReturn['results'] = 'toApiJson' in this.results ? this.results.toApiJson() : this.results;
|
|
5533
|
+
}
|
|
5534
|
+
if (typeof this.allValid !== 'undefined') {
|
|
5535
|
+
toReturn['allValid'] = this.allValid;
|
|
5536
|
+
}
|
|
5537
|
+
return toReturn;
|
|
5538
|
+
}
|
|
5539
|
+
}
|
|
5540
|
+
class ValidatePromptModulesResponseValidationResult {
|
|
5541
|
+
static fromProto(proto) {
|
|
5542
|
+
let m = new ValidatePromptModulesResponseValidationResult();
|
|
5543
|
+
m = Object.assign(m, proto);
|
|
5544
|
+
if (proto.namespace) {
|
|
5545
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
5546
|
+
}
|
|
5547
|
+
return m;
|
|
5548
|
+
}
|
|
5549
|
+
constructor(kwargs) {
|
|
5550
|
+
if (!kwargs) {
|
|
5551
|
+
return;
|
|
5552
|
+
}
|
|
5553
|
+
Object.assign(this, kwargs);
|
|
5554
|
+
}
|
|
5555
|
+
toApiJson() {
|
|
5556
|
+
const toReturn = {};
|
|
5557
|
+
if (typeof this.id !== 'undefined') {
|
|
5558
|
+
toReturn['id'] = this.id;
|
|
5559
|
+
}
|
|
5560
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
5561
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
5562
|
+
}
|
|
5563
|
+
if (typeof this.isValid !== 'undefined') {
|
|
5564
|
+
toReturn['isValid'] = this.isValid;
|
|
5565
|
+
}
|
|
5566
|
+
if (typeof this.errorMessage !== 'undefined') {
|
|
5567
|
+
toReturn['errorMessage'] = this.errorMessage;
|
|
5568
|
+
}
|
|
5569
|
+
return toReturn;
|
|
5570
|
+
}
|
|
5571
|
+
}
|
|
5572
|
+
class ValidatePromptModuleVersionsResponseValidationResult {
|
|
5573
|
+
static fromProto(proto) {
|
|
5574
|
+
let m = new ValidatePromptModuleVersionsResponseValidationResult();
|
|
5575
|
+
m = Object.assign(m, proto);
|
|
5576
|
+
if (proto.namespace) {
|
|
5577
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
5578
|
+
}
|
|
5579
|
+
return m;
|
|
5580
|
+
}
|
|
5581
|
+
constructor(kwargs) {
|
|
5582
|
+
if (!kwargs) {
|
|
5583
|
+
return;
|
|
5584
|
+
}
|
|
5585
|
+
Object.assign(this, kwargs);
|
|
5586
|
+
}
|
|
5587
|
+
toApiJson() {
|
|
5588
|
+
const toReturn = {};
|
|
5589
|
+
if (typeof this.id !== 'undefined') {
|
|
5590
|
+
toReturn['id'] = this.id;
|
|
5591
|
+
}
|
|
5592
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
5593
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
5594
|
+
}
|
|
5595
|
+
if (typeof this.isValid !== 'undefined') {
|
|
5596
|
+
toReturn['isValid'] = this.isValid;
|
|
5597
|
+
}
|
|
5598
|
+
if (typeof this.errorMessage !== 'undefined') {
|
|
5599
|
+
toReturn['errorMessage'] = this.errorMessage;
|
|
5600
|
+
}
|
|
5601
|
+
return toReturn;
|
|
5602
|
+
}
|
|
5603
|
+
}
|
|
5604
|
+
class ValidationResult {
|
|
5605
|
+
static fromProto(proto) {
|
|
5606
|
+
let m = new ValidationResult();
|
|
5607
|
+
m = Object.assign(m, proto);
|
|
5608
|
+
if (proto.failureAction) {
|
|
5609
|
+
m.failureAction = enumStringToValue(ValidationFailureAction, proto.failureAction);
|
|
5610
|
+
}
|
|
5611
|
+
if (proto.violations) {
|
|
5612
|
+
m.violations = proto.violations.map(ValidationViolation.fromProto);
|
|
5613
|
+
}
|
|
5614
|
+
return m;
|
|
5615
|
+
}
|
|
5616
|
+
constructor(kwargs) {
|
|
5617
|
+
if (!kwargs) {
|
|
5618
|
+
return;
|
|
5619
|
+
}
|
|
5620
|
+
Object.assign(this, kwargs);
|
|
5621
|
+
}
|
|
5622
|
+
toApiJson() {
|
|
5623
|
+
const toReturn = {};
|
|
5624
|
+
if (typeof this.failureAction !== 'undefined') {
|
|
5625
|
+
toReturn['failureAction'] = this.failureAction;
|
|
5626
|
+
}
|
|
5627
|
+
if (typeof this.violations !== 'undefined' && this.violations !== null) {
|
|
5628
|
+
toReturn['violations'] = 'toApiJson' in this.violations ? this.violations.toApiJson() : this.violations;
|
|
5629
|
+
}
|
|
5630
|
+
return toReturn;
|
|
5631
|
+
}
|
|
5632
|
+
}
|
|
5633
|
+
class ValidationViolation {
|
|
5634
|
+
static fromProto(proto) {
|
|
5635
|
+
let m = new ValidationViolation();
|
|
5636
|
+
m = Object.assign(m, proto);
|
|
5637
|
+
if (proto.failureAction) {
|
|
5638
|
+
m.failureAction = enumStringToValue(ValidationFailureAction, proto.failureAction);
|
|
5639
|
+
}
|
|
5640
|
+
return m;
|
|
5641
|
+
}
|
|
5642
|
+
constructor(kwargs) {
|
|
5643
|
+
if (!kwargs) {
|
|
5644
|
+
return;
|
|
5645
|
+
}
|
|
5646
|
+
Object.assign(this, kwargs);
|
|
5647
|
+
}
|
|
5648
|
+
toApiJson() {
|
|
5649
|
+
const toReturn = {};
|
|
5650
|
+
if (typeof this.failureAction !== 'undefined') {
|
|
5651
|
+
toReturn['failureAction'] = this.failureAction;
|
|
5652
|
+
}
|
|
5653
|
+
if (typeof this.confidence !== 'undefined') {
|
|
5654
|
+
toReturn['confidence'] = this.confidence;
|
|
5655
|
+
}
|
|
5656
|
+
if (typeof this.message !== 'undefined') {
|
|
5657
|
+
toReturn['message'] = this.message;
|
|
5658
|
+
}
|
|
5659
|
+
if (typeof this.validatorName !== 'undefined') {
|
|
5660
|
+
toReturn['validatorName'] = this.validatorName;
|
|
5661
|
+
}
|
|
5662
|
+
if (typeof this.isInputValidation !== 'undefined') {
|
|
5663
|
+
toReturn['isInputValidation'] = this.isInputValidation;
|
|
5664
|
+
}
|
|
5665
|
+
return toReturn;
|
|
5666
|
+
}
|
|
5667
|
+
}
|
|
5603
5668
|
|
|
5604
5669
|
// *********************************
|
|
5605
5670
|
// Code generated by sdkgen
|
|
@@ -5676,16 +5741,6 @@ class AssistantApiService {
|
|
|
5676
5741
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/GenerateChatAnswer", request.toApiJson(), this.apiOptions())
|
|
5677
5742
|
.pipe(map(resp => GenerateChatAnswerResponse.fromProto(resp)));
|
|
5678
5743
|
}
|
|
5679
|
-
streamingGenerateChatAnswer(r) {
|
|
5680
|
-
const request = (r.toApiJson) ? r : new StreamingGenerateChatAnswerRequest(r);
|
|
5681
|
-
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/StreamingGenerateChatAnswer", request.toApiJson(), this.apiOptions())
|
|
5682
|
-
.pipe(map(resp => StreamingGenerateChatAnswerResponse.fromProto(resp)));
|
|
5683
|
-
}
|
|
5684
|
-
resumeStreamingGenerateChatAnswer(r) {
|
|
5685
|
-
const request = (r.toApiJson) ? r : new ResumeStreamingGenerateChatAnswerRequest(r);
|
|
5686
|
-
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/ResumeStreamingGenerateChatAnswer", request.toApiJson(), this.apiOptions())
|
|
5687
|
-
.pipe(map(resp => StreamingGenerateChatAnswerResponse.fromProto(resp)));
|
|
5688
|
-
}
|
|
5689
5744
|
getChatAnswerFunctionExecutionJob(r) {
|
|
5690
5745
|
const request = (r.toApiJson) ? r : new GetChatAnswerFunctionExecutionJobRequest(r);
|
|
5691
5746
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/GetChatAnswerFunctionExecutionJob", request.toApiJson(), this.apiOptions())
|
|
@@ -5829,6 +5884,16 @@ class FunctionApiService {
|
|
|
5829
5884
|
const request = (r.toApiJson) ? r : new CreateMCPFromIntegrationRequest(r);
|
|
5830
5885
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/CreateMCPFromIntegration", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
5831
5886
|
}
|
|
5887
|
+
validateFunctions(r) {
|
|
5888
|
+
const request = (r.toApiJson) ? r : new ValidateFunctionsRequest(r);
|
|
5889
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/ValidateFunctions", request.toApiJson(), this.apiOptions())
|
|
5890
|
+
.pipe(map(resp => ValidateFunctionsResponse.fromProto(resp)));
|
|
5891
|
+
}
|
|
5892
|
+
validateMcPs(r) {
|
|
5893
|
+
const request = (r.toApiJson) ? r : new ValidateMCPsRequest(r);
|
|
5894
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/ValidateMCPs", request.toApiJson(), this.apiOptions())
|
|
5895
|
+
.pipe(map(resp => ValidateMCPsResponse.fromProto(resp)));
|
|
5896
|
+
}
|
|
5832
5897
|
}
|
|
5833
5898
|
FunctionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FunctionApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5834
5899
|
FunctionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FunctionApiService, providedIn: 'root' });
|
|
@@ -5894,6 +5959,11 @@ class GoalApiService {
|
|
|
5894
5959
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/GoalsDisabledForAccountGroup", request.toApiJson(), this.apiOptions())
|
|
5895
5960
|
.pipe(map(resp => GoalsDisabledForAccountGroupResponse.fromProto(resp)));
|
|
5896
5961
|
}
|
|
5962
|
+
validateGoals(r) {
|
|
5963
|
+
const request = (r.toApiJson) ? r : new ValidateGoalsRequest(r);
|
|
5964
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/ValidateGoals", request.toApiJson(), this.apiOptions())
|
|
5965
|
+
.pipe(map(resp => ValidateGoalsResponse.fromProto(resp)));
|
|
5966
|
+
}
|
|
5897
5967
|
}
|
|
5898
5968
|
GoalApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GoalApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5899
5969
|
GoalApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GoalApiService, providedIn: 'root' });
|
|
@@ -6043,6 +6113,16 @@ class PromptModuleApiService {
|
|
|
6043
6113
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/Validate", request.toApiJson(), this.apiOptions())
|
|
6044
6114
|
.pipe(map(resp => ValidatePromptModuleResponse.fromProto(resp)));
|
|
6045
6115
|
}
|
|
6116
|
+
validatePromptModules(r) {
|
|
6117
|
+
const request = (r.toApiJson) ? r : new ValidatePromptModulesRequest(r);
|
|
6118
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/ValidatePromptModules", request.toApiJson(), this.apiOptions())
|
|
6119
|
+
.pipe(map(resp => ValidatePromptModulesResponse.fromProto(resp)));
|
|
6120
|
+
}
|
|
6121
|
+
validatePromptModuleVersions(r) {
|
|
6122
|
+
const request = (r.toApiJson) ? r : new ValidatePromptModuleVersionsRequest(r);
|
|
6123
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/ValidatePromptModuleVersions", request.toApiJson(), this.apiOptions())
|
|
6124
|
+
.pipe(map(resp => ValidatePromptModuleVersionsResponse.fromProto(resp)));
|
|
6125
|
+
}
|
|
6046
6126
|
}
|
|
6047
6127
|
PromptModuleApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptModuleApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6048
6128
|
PromptModuleApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptModuleApiService, providedIn: 'root' });
|
|
@@ -6062,5 +6142,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
6062
6142
|
* Generated bundle index. Do not edit.
|
|
6063
6143
|
*/
|
|
6064
6144
|
|
|
6065
|
-
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,
|
|
6145
|
+
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 };
|
|
6066
6146
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|