@vendasta/ai-assistants 0.31.0 → 0.32.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/index.mjs +2 -1
- package/esm2020/lib/_internal/integration-test.api.service.mjs +53 -0
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/integration-tests.interface.mjs +2 -0
- package/esm2020/lib/_internal/objects/index.mjs +3 -2
- package/esm2020/lib/_internal/objects/integration-tests.mjs +201 -0
- package/fesm2015/vendasta-ai-assistants.mjs +287 -43
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +287 -43
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/integration-test.api.service.d.ts +17 -0
- package/lib/_internal/interfaces/index.d.ts +2 -1
- package/lib/_internal/interfaces/integration-tests.interface.d.ts +32 -0
- package/lib/_internal/objects/index.d.ts +2 -1
- package/lib/_internal/objects/integration-tests.d.ts +55 -0
- package/package.json +1 -1
|
@@ -130,7 +130,7 @@ var ChatMessageRole;
|
|
|
130
130
|
// Enums Index.
|
|
131
131
|
// *********************************
|
|
132
132
|
|
|
133
|
-
function enumStringToValue$
|
|
133
|
+
function enumStringToValue$c(enumRef, value) {
|
|
134
134
|
if (typeof value === 'number') {
|
|
135
135
|
return value;
|
|
136
136
|
}
|
|
@@ -252,7 +252,7 @@ class NamespaceSystemNamespace {
|
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
-
function enumStringToValue$
|
|
255
|
+
function enumStringToValue$b(enumRef, value) {
|
|
256
256
|
if (typeof value === 'number') {
|
|
257
257
|
return value;
|
|
258
258
|
}
|
|
@@ -412,7 +412,7 @@ class FunctionParameter {
|
|
|
412
412
|
m.items = FunctionParameter.fromProto(proto.items);
|
|
413
413
|
}
|
|
414
414
|
if (proto.location) {
|
|
415
|
-
m.location = enumStringToValue$
|
|
415
|
+
m.location = enumStringToValue$b(FunctionParameterParameterLocation, proto.location);
|
|
416
416
|
}
|
|
417
417
|
return m;
|
|
418
418
|
}
|
|
@@ -486,7 +486,7 @@ class FunctionAuthStrategyUnspecifiedFunctionAuthStrategy {
|
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
488
|
|
|
489
|
-
function enumStringToValue$
|
|
489
|
+
function enumStringToValue$a(enumRef, value) {
|
|
490
490
|
if (typeof value === 'number') {
|
|
491
491
|
return value;
|
|
492
492
|
}
|
|
@@ -689,7 +689,7 @@ class PromptVersion {
|
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
691
|
|
|
692
|
-
function enumStringToValue$
|
|
692
|
+
function enumStringToValue$9(enumRef, value) {
|
|
693
693
|
if (typeof value === 'number') {
|
|
694
694
|
return value;
|
|
695
695
|
}
|
|
@@ -703,7 +703,7 @@ class Goal {
|
|
|
703
703
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
704
704
|
}
|
|
705
705
|
if (proto.type) {
|
|
706
|
-
m.type = enumStringToValue$
|
|
706
|
+
m.type = enumStringToValue$9(GoalType, proto.type);
|
|
707
707
|
}
|
|
708
708
|
if (proto.promptModules) {
|
|
709
709
|
m.promptModules = proto.promptModules.map(PromptModule.fromProto);
|
|
@@ -715,7 +715,7 @@ class Goal {
|
|
|
715
715
|
m.updated = new Date(proto.updated);
|
|
716
716
|
}
|
|
717
717
|
if (proto.supportedChannels) {
|
|
718
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue$
|
|
718
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue$9(GoalChannel, v));
|
|
719
719
|
}
|
|
720
720
|
return m;
|
|
721
721
|
}
|
|
@@ -790,7 +790,7 @@ class GoalKey {
|
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
792
|
|
|
793
|
-
function enumStringToValue$
|
|
793
|
+
function enumStringToValue$8(enumRef, value) {
|
|
794
794
|
if (typeof value === 'number') {
|
|
795
795
|
return value;
|
|
796
796
|
}
|
|
@@ -820,7 +820,7 @@ class KeyValuePair {
|
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
822
|
|
|
823
|
-
function enumStringToValue$
|
|
823
|
+
function enumStringToValue$7(enumRef, value) {
|
|
824
824
|
if (typeof value === 'number') {
|
|
825
825
|
return value;
|
|
826
826
|
}
|
|
@@ -834,7 +834,7 @@ class Assistant {
|
|
|
834
834
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
835
835
|
}
|
|
836
836
|
if (proto.type) {
|
|
837
|
-
m.type = enumStringToValue$
|
|
837
|
+
m.type = enumStringToValue$7(AssistantType, proto.type);
|
|
838
838
|
}
|
|
839
839
|
if (proto.config) {
|
|
840
840
|
m.config = Config.fromProto(proto.config);
|
|
@@ -1092,7 +1092,7 @@ class ConfigVoiceConfig {
|
|
|
1092
1092
|
let m = new ConfigVoiceConfig();
|
|
1093
1093
|
m = Object.assign(m, proto);
|
|
1094
1094
|
if (proto.vendorModel) {
|
|
1095
|
-
m.vendorModel = enumStringToValue$
|
|
1095
|
+
m.vendorModel = enumStringToValue$7(VendorModel, proto.vendorModel);
|
|
1096
1096
|
}
|
|
1097
1097
|
if (proto.modelConfig) {
|
|
1098
1098
|
m.modelConfig = ModelConfig.fromProto(proto.modelConfig);
|
|
@@ -1117,7 +1117,7 @@ class ConfigVoiceConfig {
|
|
|
1117
1117
|
}
|
|
1118
1118
|
}
|
|
1119
1119
|
|
|
1120
|
-
function enumStringToValue$
|
|
1120
|
+
function enumStringToValue$6(enumRef, value) {
|
|
1121
1121
|
if (typeof value === 'number') {
|
|
1122
1122
|
return value;
|
|
1123
1123
|
}
|
|
@@ -1134,7 +1134,7 @@ class Connection {
|
|
|
1134
1134
|
m.assistantKeys = proto.assistantKeys.map(AssistantKey.fromProto);
|
|
1135
1135
|
}
|
|
1136
1136
|
if (proto.supportedAssistantTypes) {
|
|
1137
|
-
m.supportedAssistantTypes = proto.supportedAssistantTypes.map((v) => enumStringToValue$
|
|
1137
|
+
m.supportedAssistantTypes = proto.supportedAssistantTypes.map((v) => enumStringToValue$6(AssistantType, v));
|
|
1138
1138
|
}
|
|
1139
1139
|
return m;
|
|
1140
1140
|
}
|
|
@@ -1209,7 +1209,7 @@ class ConnectionKey {
|
|
|
1209
1209
|
}
|
|
1210
1210
|
}
|
|
1211
1211
|
|
|
1212
|
-
function enumStringToValue$
|
|
1212
|
+
function enumStringToValue$5(enumRef, value) {
|
|
1213
1213
|
if (typeof value === 'number') {
|
|
1214
1214
|
return value;
|
|
1215
1215
|
}
|
|
@@ -1220,7 +1220,7 @@ class ChatAnswerFunctionExecutionJob {
|
|
|
1220
1220
|
let m = new ChatAnswerFunctionExecutionJob();
|
|
1221
1221
|
m = Object.assign(m, proto);
|
|
1222
1222
|
if (proto.status) {
|
|
1223
|
-
m.status = enumStringToValue$
|
|
1223
|
+
m.status = enumStringToValue$5(ChatAnswerFunctionExecutionJobStatus, proto.status);
|
|
1224
1224
|
}
|
|
1225
1225
|
if (proto.result) {
|
|
1226
1226
|
m.result = ChatAnswerFunctionExecutionJobResult.fromProto(proto.result);
|
|
@@ -1281,7 +1281,7 @@ class ChatMessage {
|
|
|
1281
1281
|
let m = new ChatMessage();
|
|
1282
1282
|
m = Object.assign(m, proto);
|
|
1283
1283
|
if (proto.role) {
|
|
1284
|
-
m.role = enumStringToValue$
|
|
1284
|
+
m.role = enumStringToValue$5(ChatMessageRole, proto.role);
|
|
1285
1285
|
}
|
|
1286
1286
|
return m;
|
|
1287
1287
|
}
|
|
@@ -1373,16 +1373,19 @@ class ContextInfo {
|
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
1375
|
|
|
1376
|
-
function enumStringToValue$
|
|
1376
|
+
function enumStringToValue$4(enumRef, value) {
|
|
1377
1377
|
if (typeof value === 'number') {
|
|
1378
1378
|
return value;
|
|
1379
1379
|
}
|
|
1380
1380
|
return enumRef[value];
|
|
1381
1381
|
}
|
|
1382
|
-
class
|
|
1382
|
+
class PagedRequestOptions {
|
|
1383
1383
|
static fromProto(proto) {
|
|
1384
|
-
let m = new
|
|
1384
|
+
let m = new PagedRequestOptions();
|
|
1385
1385
|
m = Object.assign(m, proto);
|
|
1386
|
+
if (proto.pageSize) {
|
|
1387
|
+
m.pageSize = parseInt(proto.pageSize, 10);
|
|
1388
|
+
}
|
|
1386
1389
|
return m;
|
|
1387
1390
|
}
|
|
1388
1391
|
constructor(kwargs) {
|
|
@@ -1393,28 +1396,57 @@ class Access {
|
|
|
1393
1396
|
}
|
|
1394
1397
|
toApiJson() {
|
|
1395
1398
|
const toReturn = {};
|
|
1396
|
-
if (typeof this.
|
|
1397
|
-
toReturn['
|
|
1399
|
+
if (typeof this.cursor !== 'undefined') {
|
|
1400
|
+
toReturn['cursor'] = this.cursor;
|
|
1398
1401
|
}
|
|
1399
|
-
if (typeof this.
|
|
1400
|
-
toReturn['
|
|
1402
|
+
if (typeof this.pageSize !== 'undefined') {
|
|
1403
|
+
toReturn['pageSize'] = this.pageSize;
|
|
1404
|
+
}
|
|
1405
|
+
return toReturn;
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
class PagedResponseMetadata {
|
|
1409
|
+
static fromProto(proto) {
|
|
1410
|
+
let m = new PagedResponseMetadata();
|
|
1411
|
+
m = Object.assign(m, proto);
|
|
1412
|
+
if (proto.totalResults) {
|
|
1413
|
+
m.totalResults = parseInt(proto.totalResults, 10);
|
|
1414
|
+
}
|
|
1415
|
+
return m;
|
|
1416
|
+
}
|
|
1417
|
+
constructor(kwargs) {
|
|
1418
|
+
if (!kwargs) {
|
|
1419
|
+
return;
|
|
1420
|
+
}
|
|
1421
|
+
Object.assign(this, kwargs);
|
|
1422
|
+
}
|
|
1423
|
+
toApiJson() {
|
|
1424
|
+
const toReturn = {};
|
|
1425
|
+
if (typeof this.nextCursor !== 'undefined') {
|
|
1426
|
+
toReturn['nextCursor'] = this.nextCursor;
|
|
1427
|
+
}
|
|
1428
|
+
if (typeof this.hasMore !== 'undefined') {
|
|
1429
|
+
toReturn['hasMore'] = this.hasMore;
|
|
1430
|
+
}
|
|
1431
|
+
if (typeof this.totalResults !== 'undefined') {
|
|
1432
|
+
toReturn['totalResults'] = this.totalResults;
|
|
1401
1433
|
}
|
|
1402
1434
|
return toReturn;
|
|
1403
1435
|
}
|
|
1404
1436
|
}
|
|
1405
1437
|
|
|
1406
|
-
function enumStringToValue$
|
|
1438
|
+
function enumStringToValue$3(enumRef, value) {
|
|
1407
1439
|
if (typeof value === 'number') {
|
|
1408
1440
|
return value;
|
|
1409
1441
|
}
|
|
1410
1442
|
return enumRef[value];
|
|
1411
1443
|
}
|
|
1412
|
-
class
|
|
1444
|
+
class DeleteTestCasesRequest {
|
|
1413
1445
|
static fromProto(proto) {
|
|
1414
|
-
let m = new
|
|
1446
|
+
let m = new DeleteTestCasesRequest();
|
|
1415
1447
|
m = Object.assign(m, proto);
|
|
1416
|
-
if (proto.
|
|
1417
|
-
m.
|
|
1448
|
+
if (proto.connection) {
|
|
1449
|
+
m.connection = ConnectionKey.fromProto(proto.connection);
|
|
1418
1450
|
}
|
|
1419
1451
|
return m;
|
|
1420
1452
|
}
|
|
@@ -1426,21 +1458,24 @@ class PagedRequestOptions {
|
|
|
1426
1458
|
}
|
|
1427
1459
|
toApiJson() {
|
|
1428
1460
|
const toReturn = {};
|
|
1429
|
-
if (typeof this.
|
|
1430
|
-
toReturn['
|
|
1461
|
+
if (typeof this.connection !== 'undefined' && this.connection !== null) {
|
|
1462
|
+
toReturn['connection'] = 'toApiJson' in this.connection ? this.connection.toApiJson() : this.connection;
|
|
1431
1463
|
}
|
|
1432
|
-
if (typeof this.
|
|
1433
|
-
toReturn['
|
|
1464
|
+
if (typeof this.testCaseIds !== 'undefined') {
|
|
1465
|
+
toReturn['testCaseIds'] = this.testCaseIds;
|
|
1434
1466
|
}
|
|
1435
1467
|
return toReturn;
|
|
1436
1468
|
}
|
|
1437
1469
|
}
|
|
1438
|
-
class
|
|
1470
|
+
class ListTestCasesByConnectionRequest {
|
|
1439
1471
|
static fromProto(proto) {
|
|
1440
|
-
let m = new
|
|
1472
|
+
let m = new ListTestCasesByConnectionRequest();
|
|
1441
1473
|
m = Object.assign(m, proto);
|
|
1442
|
-
if (proto.
|
|
1443
|
-
m.
|
|
1474
|
+
if (proto.connection) {
|
|
1475
|
+
m.connection = ConnectionKey.fromProto(proto.connection);
|
|
1476
|
+
}
|
|
1477
|
+
if (proto.pagingOptions) {
|
|
1478
|
+
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
1444
1479
|
}
|
|
1445
1480
|
return m;
|
|
1446
1481
|
}
|
|
@@ -1452,14 +1487,177 @@ class PagedResponseMetadata {
|
|
|
1452
1487
|
}
|
|
1453
1488
|
toApiJson() {
|
|
1454
1489
|
const toReturn = {};
|
|
1455
|
-
if (typeof this.
|
|
1456
|
-
toReturn['
|
|
1490
|
+
if (typeof this.connection !== 'undefined' && this.connection !== null) {
|
|
1491
|
+
toReturn['connection'] = 'toApiJson' in this.connection ? this.connection.toApiJson() : this.connection;
|
|
1457
1492
|
}
|
|
1458
|
-
if (typeof this.
|
|
1459
|
-
toReturn['
|
|
1493
|
+
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
1494
|
+
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
1460
1495
|
}
|
|
1461
|
-
|
|
1462
|
-
|
|
1496
|
+
return toReturn;
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
class ListTestCasesByConnectionResponse {
|
|
1500
|
+
static fromProto(proto) {
|
|
1501
|
+
let m = new ListTestCasesByConnectionResponse();
|
|
1502
|
+
m = Object.assign(m, proto);
|
|
1503
|
+
if (proto.testCases) {
|
|
1504
|
+
m.testCases = proto.testCases.map(TestCase.fromProto);
|
|
1505
|
+
}
|
|
1506
|
+
if (proto.pagingMetadata) {
|
|
1507
|
+
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
1508
|
+
}
|
|
1509
|
+
return m;
|
|
1510
|
+
}
|
|
1511
|
+
constructor(kwargs) {
|
|
1512
|
+
if (!kwargs) {
|
|
1513
|
+
return;
|
|
1514
|
+
}
|
|
1515
|
+
Object.assign(this, kwargs);
|
|
1516
|
+
}
|
|
1517
|
+
toApiJson() {
|
|
1518
|
+
const toReturn = {};
|
|
1519
|
+
if (typeof this.testCases !== 'undefined' && this.testCases !== null) {
|
|
1520
|
+
toReturn['testCases'] = 'toApiJson' in this.testCases ? this.testCases.toApiJson() : this.testCases;
|
|
1521
|
+
}
|
|
1522
|
+
if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {
|
|
1523
|
+
toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;
|
|
1524
|
+
}
|
|
1525
|
+
return toReturn;
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
class RunTestsRequest {
|
|
1529
|
+
static fromProto(proto) {
|
|
1530
|
+
let m = new RunTestsRequest();
|
|
1531
|
+
m = Object.assign(m, proto);
|
|
1532
|
+
if (proto.connection) {
|
|
1533
|
+
m.connection = ConnectionKey.fromProto(proto.connection);
|
|
1534
|
+
}
|
|
1535
|
+
return m;
|
|
1536
|
+
}
|
|
1537
|
+
constructor(kwargs) {
|
|
1538
|
+
if (!kwargs) {
|
|
1539
|
+
return;
|
|
1540
|
+
}
|
|
1541
|
+
Object.assign(this, kwargs);
|
|
1542
|
+
}
|
|
1543
|
+
toApiJson() {
|
|
1544
|
+
const toReturn = {};
|
|
1545
|
+
if (typeof this.connection !== 'undefined' && this.connection !== null) {
|
|
1546
|
+
toReturn['connection'] = 'toApiJson' in this.connection ? this.connection.toApiJson() : this.connection;
|
|
1547
|
+
}
|
|
1548
|
+
if (typeof this.testCaseIds !== 'undefined') {
|
|
1549
|
+
toReturn['testCaseIds'] = this.testCaseIds;
|
|
1550
|
+
}
|
|
1551
|
+
return toReturn;
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
class RunTestsResponse {
|
|
1555
|
+
static fromProto(proto) {
|
|
1556
|
+
let m = new RunTestsResponse();
|
|
1557
|
+
m = Object.assign(m, proto);
|
|
1558
|
+
return m;
|
|
1559
|
+
}
|
|
1560
|
+
constructor(kwargs) {
|
|
1561
|
+
if (!kwargs) {
|
|
1562
|
+
return;
|
|
1563
|
+
}
|
|
1564
|
+
Object.assign(this, kwargs);
|
|
1565
|
+
}
|
|
1566
|
+
toApiJson() {
|
|
1567
|
+
const toReturn = {};
|
|
1568
|
+
if (typeof this.buildUrl !== 'undefined') {
|
|
1569
|
+
toReturn['buildUrl'] = this.buildUrl;
|
|
1570
|
+
}
|
|
1571
|
+
return toReturn;
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
class TestCase {
|
|
1575
|
+
static fromProto(proto) {
|
|
1576
|
+
let m = new TestCase();
|
|
1577
|
+
m = Object.assign(m, proto);
|
|
1578
|
+
if (proto.chatHistory) {
|
|
1579
|
+
m.chatHistory = proto.chatHistory.map(ChatMessage.fromProto);
|
|
1580
|
+
}
|
|
1581
|
+
return m;
|
|
1582
|
+
}
|
|
1583
|
+
constructor(kwargs) {
|
|
1584
|
+
if (!kwargs) {
|
|
1585
|
+
return;
|
|
1586
|
+
}
|
|
1587
|
+
Object.assign(this, kwargs);
|
|
1588
|
+
}
|
|
1589
|
+
toApiJson() {
|
|
1590
|
+
const toReturn = {};
|
|
1591
|
+
if (typeof this.id !== 'undefined') {
|
|
1592
|
+
toReturn['id'] = this.id;
|
|
1593
|
+
}
|
|
1594
|
+
if (typeof this.name !== 'undefined') {
|
|
1595
|
+
toReturn['name'] = this.name;
|
|
1596
|
+
}
|
|
1597
|
+
if (typeof this.chatHistory !== 'undefined' && this.chatHistory !== null) {
|
|
1598
|
+
toReturn['chatHistory'] = 'toApiJson' in this.chatHistory ? this.chatHistory.toApiJson() : this.chatHistory;
|
|
1599
|
+
}
|
|
1600
|
+
if (typeof this.expectation !== 'undefined') {
|
|
1601
|
+
toReturn['expectation'] = this.expectation;
|
|
1602
|
+
}
|
|
1603
|
+
return toReturn;
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
class UpsertTestCasesRequest {
|
|
1607
|
+
static fromProto(proto) {
|
|
1608
|
+
let m = new UpsertTestCasesRequest();
|
|
1609
|
+
m = Object.assign(m, proto);
|
|
1610
|
+
if (proto.connection) {
|
|
1611
|
+
m.connection = ConnectionKey.fromProto(proto.connection);
|
|
1612
|
+
}
|
|
1613
|
+
if (proto.testCases) {
|
|
1614
|
+
m.testCases = proto.testCases.map(TestCase.fromProto);
|
|
1615
|
+
}
|
|
1616
|
+
return m;
|
|
1617
|
+
}
|
|
1618
|
+
constructor(kwargs) {
|
|
1619
|
+
if (!kwargs) {
|
|
1620
|
+
return;
|
|
1621
|
+
}
|
|
1622
|
+
Object.assign(this, kwargs);
|
|
1623
|
+
}
|
|
1624
|
+
toApiJson() {
|
|
1625
|
+
const toReturn = {};
|
|
1626
|
+
if (typeof this.connection !== 'undefined' && this.connection !== null) {
|
|
1627
|
+
toReturn['connection'] = 'toApiJson' in this.connection ? this.connection.toApiJson() : this.connection;
|
|
1628
|
+
}
|
|
1629
|
+
if (typeof this.testCases !== 'undefined' && this.testCases !== null) {
|
|
1630
|
+
toReturn['testCases'] = 'toApiJson' in this.testCases ? this.testCases.toApiJson() : this.testCases;
|
|
1631
|
+
}
|
|
1632
|
+
return toReturn;
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
function enumStringToValue$2(enumRef, value) {
|
|
1637
|
+
if (typeof value === 'number') {
|
|
1638
|
+
return value;
|
|
1639
|
+
}
|
|
1640
|
+
return enumRef[value];
|
|
1641
|
+
}
|
|
1642
|
+
class Access {
|
|
1643
|
+
static fromProto(proto) {
|
|
1644
|
+
let m = new Access();
|
|
1645
|
+
m = Object.assign(m, proto);
|
|
1646
|
+
return m;
|
|
1647
|
+
}
|
|
1648
|
+
constructor(kwargs) {
|
|
1649
|
+
if (!kwargs) {
|
|
1650
|
+
return;
|
|
1651
|
+
}
|
|
1652
|
+
Object.assign(this, kwargs);
|
|
1653
|
+
}
|
|
1654
|
+
toApiJson() {
|
|
1655
|
+
const toReturn = {};
|
|
1656
|
+
if (typeof this.scope !== 'undefined') {
|
|
1657
|
+
toReturn['scope'] = this.scope;
|
|
1658
|
+
}
|
|
1659
|
+
if (typeof this.public !== 'undefined') {
|
|
1660
|
+
toReturn['public'] = this.public;
|
|
1463
1661
|
}
|
|
1464
1662
|
return toReturn;
|
|
1465
1663
|
}
|
|
@@ -4262,6 +4460,52 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4262
4460
|
args: [{ providedIn: 'root' }]
|
|
4263
4461
|
}] });
|
|
4264
4462
|
|
|
4463
|
+
// *********************************
|
|
4464
|
+
// Code generated by sdkgen
|
|
4465
|
+
// DO NOT EDIT!.
|
|
4466
|
+
//
|
|
4467
|
+
// API Service.
|
|
4468
|
+
// *********************************
|
|
4469
|
+
class IntegrationTestApiService {
|
|
4470
|
+
constructor() {
|
|
4471
|
+
this.hostService = inject(HostService);
|
|
4472
|
+
this.http = inject(HttpClient);
|
|
4473
|
+
this._host = this.hostService.hostWithScheme;
|
|
4474
|
+
}
|
|
4475
|
+
apiOptions() {
|
|
4476
|
+
return {
|
|
4477
|
+
headers: new HttpHeaders({
|
|
4478
|
+
'Content-Type': 'application/json'
|
|
4479
|
+
}),
|
|
4480
|
+
withCredentials: true
|
|
4481
|
+
};
|
|
4482
|
+
}
|
|
4483
|
+
listTestCasesByConnection(r) {
|
|
4484
|
+
const request = (r.toApiJson) ? r : new ListTestCasesByConnectionRequest(r);
|
|
4485
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/ListTestCasesByConnection", request.toApiJson(), this.apiOptions())
|
|
4486
|
+
.pipe(map(resp => ListTestCasesByConnectionResponse.fromProto(resp)));
|
|
4487
|
+
}
|
|
4488
|
+
upsertTestCases(r) {
|
|
4489
|
+
const request = (r.toApiJson) ? r : new UpsertTestCasesRequest(r);
|
|
4490
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/UpsertTestCases", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4491
|
+
}
|
|
4492
|
+
deleteTestCases(r) {
|
|
4493
|
+
const request = (r.toApiJson) ? r : new DeleteTestCasesRequest(r);
|
|
4494
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/DeleteTestCases", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4495
|
+
}
|
|
4496
|
+
runTests(r) {
|
|
4497
|
+
const request = (r.toApiJson) ? r : new RunTestsRequest(r);
|
|
4498
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/RunTests", request.toApiJson(), this.apiOptions())
|
|
4499
|
+
.pipe(map(resp => RunTestsResponse.fromProto(resp)));
|
|
4500
|
+
}
|
|
4501
|
+
}
|
|
4502
|
+
IntegrationTestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntegrationTestApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4503
|
+
IntegrationTestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntegrationTestApiService, providedIn: 'root' });
|
|
4504
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntegrationTestApiService, decorators: [{
|
|
4505
|
+
type: Injectable,
|
|
4506
|
+
args: [{ providedIn: 'root' }]
|
|
4507
|
+
}] });
|
|
4508
|
+
|
|
4265
4509
|
// *********************************
|
|
4266
4510
|
// Code generated by sdkgen
|
|
4267
4511
|
// DO NOT EDIT!.
|
|
@@ -4431,5 +4675,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4431
4675
|
* Generated bundle index. Do not edit.
|
|
4432
4676
|
*/
|
|
4433
4677
|
|
|
4434
|
-
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, ModelConfig, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, VendorModel };
|
|
4678
|
+
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, DeployPromptRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, IntegrationTestApiService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, ListTestCasesByConnectionRequest, ListTestCasesByConnectionResponse, ModelConfig, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, RunTestsRequest, RunTestsResponse, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, TestCase, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertTestCasesRequest, VendorModel };
|
|
4435
4679
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|