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