@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
|
@@ -129,7 +129,7 @@ var ChatMessageRole;
|
|
|
129
129
|
// Enums Index.
|
|
130
130
|
// *********************************
|
|
131
131
|
|
|
132
|
-
function enumStringToValue$
|
|
132
|
+
function enumStringToValue$c(enumRef, value) {
|
|
133
133
|
if (typeof value === 'number') {
|
|
134
134
|
return value;
|
|
135
135
|
}
|
|
@@ -251,7 +251,7 @@ class NamespaceSystemNamespace {
|
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
function enumStringToValue$
|
|
254
|
+
function enumStringToValue$b(enumRef, value) {
|
|
255
255
|
if (typeof value === 'number') {
|
|
256
256
|
return value;
|
|
257
257
|
}
|
|
@@ -411,7 +411,7 @@ class FunctionParameter {
|
|
|
411
411
|
m.items = FunctionParameter.fromProto(proto.items);
|
|
412
412
|
}
|
|
413
413
|
if (proto.location) {
|
|
414
|
-
m.location = enumStringToValue$
|
|
414
|
+
m.location = enumStringToValue$b(FunctionParameterParameterLocation, proto.location);
|
|
415
415
|
}
|
|
416
416
|
return m;
|
|
417
417
|
}
|
|
@@ -485,7 +485,7 @@ class FunctionAuthStrategyUnspecifiedFunctionAuthStrategy {
|
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
|
|
488
|
-
function enumStringToValue$
|
|
488
|
+
function enumStringToValue$a(enumRef, value) {
|
|
489
489
|
if (typeof value === 'number') {
|
|
490
490
|
return value;
|
|
491
491
|
}
|
|
@@ -688,7 +688,7 @@ class PromptVersion {
|
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
690
|
|
|
691
|
-
function enumStringToValue$
|
|
691
|
+
function enumStringToValue$9(enumRef, value) {
|
|
692
692
|
if (typeof value === 'number') {
|
|
693
693
|
return value;
|
|
694
694
|
}
|
|
@@ -702,7 +702,7 @@ class Goal {
|
|
|
702
702
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
703
703
|
}
|
|
704
704
|
if (proto.type) {
|
|
705
|
-
m.type = enumStringToValue$
|
|
705
|
+
m.type = enumStringToValue$9(GoalType, proto.type);
|
|
706
706
|
}
|
|
707
707
|
if (proto.promptModules) {
|
|
708
708
|
m.promptModules = proto.promptModules.map(PromptModule.fromProto);
|
|
@@ -714,7 +714,7 @@ class Goal {
|
|
|
714
714
|
m.updated = new Date(proto.updated);
|
|
715
715
|
}
|
|
716
716
|
if (proto.supportedChannels) {
|
|
717
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue$
|
|
717
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue$9(GoalChannel, v));
|
|
718
718
|
}
|
|
719
719
|
return m;
|
|
720
720
|
}
|
|
@@ -789,7 +789,7 @@ class GoalKey {
|
|
|
789
789
|
}
|
|
790
790
|
}
|
|
791
791
|
|
|
792
|
-
function enumStringToValue$
|
|
792
|
+
function enumStringToValue$8(enumRef, value) {
|
|
793
793
|
if (typeof value === 'number') {
|
|
794
794
|
return value;
|
|
795
795
|
}
|
|
@@ -819,7 +819,7 @@ class KeyValuePair {
|
|
|
819
819
|
}
|
|
820
820
|
}
|
|
821
821
|
|
|
822
|
-
function enumStringToValue$
|
|
822
|
+
function enumStringToValue$7(enumRef, value) {
|
|
823
823
|
if (typeof value === 'number') {
|
|
824
824
|
return value;
|
|
825
825
|
}
|
|
@@ -833,7 +833,7 @@ class Assistant {
|
|
|
833
833
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
834
834
|
}
|
|
835
835
|
if (proto.type) {
|
|
836
|
-
m.type = enumStringToValue$
|
|
836
|
+
m.type = enumStringToValue$7(AssistantType, proto.type);
|
|
837
837
|
}
|
|
838
838
|
if (proto.config) {
|
|
839
839
|
m.config = Config.fromProto(proto.config);
|
|
@@ -1091,7 +1091,7 @@ class ConfigVoiceConfig {
|
|
|
1091
1091
|
let m = new ConfigVoiceConfig();
|
|
1092
1092
|
m = Object.assign(m, proto);
|
|
1093
1093
|
if (proto.vendorModel) {
|
|
1094
|
-
m.vendorModel = enumStringToValue$
|
|
1094
|
+
m.vendorModel = enumStringToValue$7(VendorModel, proto.vendorModel);
|
|
1095
1095
|
}
|
|
1096
1096
|
if (proto.modelConfig) {
|
|
1097
1097
|
m.modelConfig = ModelConfig.fromProto(proto.modelConfig);
|
|
@@ -1116,7 +1116,7 @@ class ConfigVoiceConfig {
|
|
|
1116
1116
|
}
|
|
1117
1117
|
}
|
|
1118
1118
|
|
|
1119
|
-
function enumStringToValue$
|
|
1119
|
+
function enumStringToValue$6(enumRef, value) {
|
|
1120
1120
|
if (typeof value === 'number') {
|
|
1121
1121
|
return value;
|
|
1122
1122
|
}
|
|
@@ -1133,7 +1133,7 @@ class Connection {
|
|
|
1133
1133
|
m.assistantKeys = proto.assistantKeys.map(AssistantKey.fromProto);
|
|
1134
1134
|
}
|
|
1135
1135
|
if (proto.supportedAssistantTypes) {
|
|
1136
|
-
m.supportedAssistantTypes = proto.supportedAssistantTypes.map((v) => enumStringToValue$
|
|
1136
|
+
m.supportedAssistantTypes = proto.supportedAssistantTypes.map((v) => enumStringToValue$6(AssistantType, v));
|
|
1137
1137
|
}
|
|
1138
1138
|
return m;
|
|
1139
1139
|
}
|
|
@@ -1208,7 +1208,7 @@ class ConnectionKey {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
}
|
|
1210
1210
|
|
|
1211
|
-
function enumStringToValue$
|
|
1211
|
+
function enumStringToValue$5(enumRef, value) {
|
|
1212
1212
|
if (typeof value === 'number') {
|
|
1213
1213
|
return value;
|
|
1214
1214
|
}
|
|
@@ -1219,7 +1219,7 @@ class ChatAnswerFunctionExecutionJob {
|
|
|
1219
1219
|
let m = new ChatAnswerFunctionExecutionJob();
|
|
1220
1220
|
m = Object.assign(m, proto);
|
|
1221
1221
|
if (proto.status) {
|
|
1222
|
-
m.status = enumStringToValue$
|
|
1222
|
+
m.status = enumStringToValue$5(ChatAnswerFunctionExecutionJobStatus, proto.status);
|
|
1223
1223
|
}
|
|
1224
1224
|
if (proto.result) {
|
|
1225
1225
|
m.result = ChatAnswerFunctionExecutionJobResult.fromProto(proto.result);
|
|
@@ -1280,7 +1280,7 @@ class ChatMessage {
|
|
|
1280
1280
|
let m = new ChatMessage();
|
|
1281
1281
|
m = Object.assign(m, proto);
|
|
1282
1282
|
if (proto.role) {
|
|
1283
|
-
m.role = enumStringToValue$
|
|
1283
|
+
m.role = enumStringToValue$5(ChatMessageRole, proto.role);
|
|
1284
1284
|
}
|
|
1285
1285
|
return m;
|
|
1286
1286
|
}
|
|
@@ -1372,16 +1372,19 @@ class ContextInfo {
|
|
|
1372
1372
|
}
|
|
1373
1373
|
}
|
|
1374
1374
|
|
|
1375
|
-
function enumStringToValue$
|
|
1375
|
+
function enumStringToValue$4(enumRef, value) {
|
|
1376
1376
|
if (typeof value === 'number') {
|
|
1377
1377
|
return value;
|
|
1378
1378
|
}
|
|
1379
1379
|
return enumRef[value];
|
|
1380
1380
|
}
|
|
1381
|
-
class
|
|
1381
|
+
class PagedRequestOptions {
|
|
1382
1382
|
static fromProto(proto) {
|
|
1383
|
-
let m = new
|
|
1383
|
+
let m = new PagedRequestOptions();
|
|
1384
1384
|
m = Object.assign(m, proto);
|
|
1385
|
+
if (proto.pageSize) {
|
|
1386
|
+
m.pageSize = parseInt(proto.pageSize, 10);
|
|
1387
|
+
}
|
|
1385
1388
|
return m;
|
|
1386
1389
|
}
|
|
1387
1390
|
constructor(kwargs) {
|
|
@@ -1392,28 +1395,57 @@ class Access {
|
|
|
1392
1395
|
}
|
|
1393
1396
|
toApiJson() {
|
|
1394
1397
|
const toReturn = {};
|
|
1395
|
-
if (typeof this.
|
|
1396
|
-
toReturn['
|
|
1398
|
+
if (typeof this.cursor !== 'undefined') {
|
|
1399
|
+
toReturn['cursor'] = this.cursor;
|
|
1397
1400
|
}
|
|
1398
|
-
if (typeof this.
|
|
1399
|
-
toReturn['
|
|
1401
|
+
if (typeof this.pageSize !== 'undefined') {
|
|
1402
|
+
toReturn['pageSize'] = this.pageSize;
|
|
1403
|
+
}
|
|
1404
|
+
return toReturn;
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
class PagedResponseMetadata {
|
|
1408
|
+
static fromProto(proto) {
|
|
1409
|
+
let m = new PagedResponseMetadata();
|
|
1410
|
+
m = Object.assign(m, proto);
|
|
1411
|
+
if (proto.totalResults) {
|
|
1412
|
+
m.totalResults = parseInt(proto.totalResults, 10);
|
|
1413
|
+
}
|
|
1414
|
+
return m;
|
|
1415
|
+
}
|
|
1416
|
+
constructor(kwargs) {
|
|
1417
|
+
if (!kwargs) {
|
|
1418
|
+
return;
|
|
1419
|
+
}
|
|
1420
|
+
Object.assign(this, kwargs);
|
|
1421
|
+
}
|
|
1422
|
+
toApiJson() {
|
|
1423
|
+
const toReturn = {};
|
|
1424
|
+
if (typeof this.nextCursor !== 'undefined') {
|
|
1425
|
+
toReturn['nextCursor'] = this.nextCursor;
|
|
1426
|
+
}
|
|
1427
|
+
if (typeof this.hasMore !== 'undefined') {
|
|
1428
|
+
toReturn['hasMore'] = this.hasMore;
|
|
1429
|
+
}
|
|
1430
|
+
if (typeof this.totalResults !== 'undefined') {
|
|
1431
|
+
toReturn['totalResults'] = this.totalResults;
|
|
1400
1432
|
}
|
|
1401
1433
|
return toReturn;
|
|
1402
1434
|
}
|
|
1403
1435
|
}
|
|
1404
1436
|
|
|
1405
|
-
function enumStringToValue$
|
|
1437
|
+
function enumStringToValue$3(enumRef, value) {
|
|
1406
1438
|
if (typeof value === 'number') {
|
|
1407
1439
|
return value;
|
|
1408
1440
|
}
|
|
1409
1441
|
return enumRef[value];
|
|
1410
1442
|
}
|
|
1411
|
-
class
|
|
1443
|
+
class DeleteTestCasesRequest {
|
|
1412
1444
|
static fromProto(proto) {
|
|
1413
|
-
let m = new
|
|
1445
|
+
let m = new DeleteTestCasesRequest();
|
|
1414
1446
|
m = Object.assign(m, proto);
|
|
1415
|
-
if (proto.
|
|
1416
|
-
m.
|
|
1447
|
+
if (proto.connection) {
|
|
1448
|
+
m.connection = ConnectionKey.fromProto(proto.connection);
|
|
1417
1449
|
}
|
|
1418
1450
|
return m;
|
|
1419
1451
|
}
|
|
@@ -1425,21 +1457,24 @@ class PagedRequestOptions {
|
|
|
1425
1457
|
}
|
|
1426
1458
|
toApiJson() {
|
|
1427
1459
|
const toReturn = {};
|
|
1428
|
-
if (typeof this.
|
|
1429
|
-
toReturn['
|
|
1460
|
+
if (typeof this.connection !== 'undefined' && this.connection !== null) {
|
|
1461
|
+
toReturn['connection'] = 'toApiJson' in this.connection ? this.connection.toApiJson() : this.connection;
|
|
1430
1462
|
}
|
|
1431
|
-
if (typeof this.
|
|
1432
|
-
toReturn['
|
|
1463
|
+
if (typeof this.testCaseIds !== 'undefined') {
|
|
1464
|
+
toReturn['testCaseIds'] = this.testCaseIds;
|
|
1433
1465
|
}
|
|
1434
1466
|
return toReturn;
|
|
1435
1467
|
}
|
|
1436
1468
|
}
|
|
1437
|
-
class
|
|
1469
|
+
class ListTestCasesByConnectionRequest {
|
|
1438
1470
|
static fromProto(proto) {
|
|
1439
|
-
let m = new
|
|
1471
|
+
let m = new ListTestCasesByConnectionRequest();
|
|
1440
1472
|
m = Object.assign(m, proto);
|
|
1441
|
-
if (proto.
|
|
1442
|
-
m.
|
|
1473
|
+
if (proto.connection) {
|
|
1474
|
+
m.connection = ConnectionKey.fromProto(proto.connection);
|
|
1475
|
+
}
|
|
1476
|
+
if (proto.pagingOptions) {
|
|
1477
|
+
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
1443
1478
|
}
|
|
1444
1479
|
return m;
|
|
1445
1480
|
}
|
|
@@ -1451,14 +1486,177 @@ class PagedResponseMetadata {
|
|
|
1451
1486
|
}
|
|
1452
1487
|
toApiJson() {
|
|
1453
1488
|
const toReturn = {};
|
|
1454
|
-
if (typeof this.
|
|
1455
|
-
toReturn['
|
|
1489
|
+
if (typeof this.connection !== 'undefined' && this.connection !== null) {
|
|
1490
|
+
toReturn['connection'] = 'toApiJson' in this.connection ? this.connection.toApiJson() : this.connection;
|
|
1456
1491
|
}
|
|
1457
|
-
if (typeof this.
|
|
1458
|
-
toReturn['
|
|
1492
|
+
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
1493
|
+
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
1459
1494
|
}
|
|
1460
|
-
|
|
1461
|
-
|
|
1495
|
+
return toReturn;
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
class ListTestCasesByConnectionResponse {
|
|
1499
|
+
static fromProto(proto) {
|
|
1500
|
+
let m = new ListTestCasesByConnectionResponse();
|
|
1501
|
+
m = Object.assign(m, proto);
|
|
1502
|
+
if (proto.testCases) {
|
|
1503
|
+
m.testCases = proto.testCases.map(TestCase.fromProto);
|
|
1504
|
+
}
|
|
1505
|
+
if (proto.pagingMetadata) {
|
|
1506
|
+
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
1507
|
+
}
|
|
1508
|
+
return m;
|
|
1509
|
+
}
|
|
1510
|
+
constructor(kwargs) {
|
|
1511
|
+
if (!kwargs) {
|
|
1512
|
+
return;
|
|
1513
|
+
}
|
|
1514
|
+
Object.assign(this, kwargs);
|
|
1515
|
+
}
|
|
1516
|
+
toApiJson() {
|
|
1517
|
+
const toReturn = {};
|
|
1518
|
+
if (typeof this.testCases !== 'undefined' && this.testCases !== null) {
|
|
1519
|
+
toReturn['testCases'] = 'toApiJson' in this.testCases ? this.testCases.toApiJson() : this.testCases;
|
|
1520
|
+
}
|
|
1521
|
+
if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {
|
|
1522
|
+
toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;
|
|
1523
|
+
}
|
|
1524
|
+
return toReturn;
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
class RunTestsRequest {
|
|
1528
|
+
static fromProto(proto) {
|
|
1529
|
+
let m = new RunTestsRequest();
|
|
1530
|
+
m = Object.assign(m, proto);
|
|
1531
|
+
if (proto.connection) {
|
|
1532
|
+
m.connection = ConnectionKey.fromProto(proto.connection);
|
|
1533
|
+
}
|
|
1534
|
+
return m;
|
|
1535
|
+
}
|
|
1536
|
+
constructor(kwargs) {
|
|
1537
|
+
if (!kwargs) {
|
|
1538
|
+
return;
|
|
1539
|
+
}
|
|
1540
|
+
Object.assign(this, kwargs);
|
|
1541
|
+
}
|
|
1542
|
+
toApiJson() {
|
|
1543
|
+
const toReturn = {};
|
|
1544
|
+
if (typeof this.connection !== 'undefined' && this.connection !== null) {
|
|
1545
|
+
toReturn['connection'] = 'toApiJson' in this.connection ? this.connection.toApiJson() : this.connection;
|
|
1546
|
+
}
|
|
1547
|
+
if (typeof this.testCaseIds !== 'undefined') {
|
|
1548
|
+
toReturn['testCaseIds'] = this.testCaseIds;
|
|
1549
|
+
}
|
|
1550
|
+
return toReturn;
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
class RunTestsResponse {
|
|
1554
|
+
static fromProto(proto) {
|
|
1555
|
+
let m = new RunTestsResponse();
|
|
1556
|
+
m = Object.assign(m, proto);
|
|
1557
|
+
return m;
|
|
1558
|
+
}
|
|
1559
|
+
constructor(kwargs) {
|
|
1560
|
+
if (!kwargs) {
|
|
1561
|
+
return;
|
|
1562
|
+
}
|
|
1563
|
+
Object.assign(this, kwargs);
|
|
1564
|
+
}
|
|
1565
|
+
toApiJson() {
|
|
1566
|
+
const toReturn = {};
|
|
1567
|
+
if (typeof this.buildUrl !== 'undefined') {
|
|
1568
|
+
toReturn['buildUrl'] = this.buildUrl;
|
|
1569
|
+
}
|
|
1570
|
+
return toReturn;
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
class TestCase {
|
|
1574
|
+
static fromProto(proto) {
|
|
1575
|
+
let m = new TestCase();
|
|
1576
|
+
m = Object.assign(m, proto);
|
|
1577
|
+
if (proto.chatHistory) {
|
|
1578
|
+
m.chatHistory = proto.chatHistory.map(ChatMessage.fromProto);
|
|
1579
|
+
}
|
|
1580
|
+
return m;
|
|
1581
|
+
}
|
|
1582
|
+
constructor(kwargs) {
|
|
1583
|
+
if (!kwargs) {
|
|
1584
|
+
return;
|
|
1585
|
+
}
|
|
1586
|
+
Object.assign(this, kwargs);
|
|
1587
|
+
}
|
|
1588
|
+
toApiJson() {
|
|
1589
|
+
const toReturn = {};
|
|
1590
|
+
if (typeof this.id !== 'undefined') {
|
|
1591
|
+
toReturn['id'] = this.id;
|
|
1592
|
+
}
|
|
1593
|
+
if (typeof this.name !== 'undefined') {
|
|
1594
|
+
toReturn['name'] = this.name;
|
|
1595
|
+
}
|
|
1596
|
+
if (typeof this.chatHistory !== 'undefined' && this.chatHistory !== null) {
|
|
1597
|
+
toReturn['chatHistory'] = 'toApiJson' in this.chatHistory ? this.chatHistory.toApiJson() : this.chatHistory;
|
|
1598
|
+
}
|
|
1599
|
+
if (typeof this.expectation !== 'undefined') {
|
|
1600
|
+
toReturn['expectation'] = this.expectation;
|
|
1601
|
+
}
|
|
1602
|
+
return toReturn;
|
|
1603
|
+
}
|
|
1604
|
+
}
|
|
1605
|
+
class UpsertTestCasesRequest {
|
|
1606
|
+
static fromProto(proto) {
|
|
1607
|
+
let m = new UpsertTestCasesRequest();
|
|
1608
|
+
m = Object.assign(m, proto);
|
|
1609
|
+
if (proto.connection) {
|
|
1610
|
+
m.connection = ConnectionKey.fromProto(proto.connection);
|
|
1611
|
+
}
|
|
1612
|
+
if (proto.testCases) {
|
|
1613
|
+
m.testCases = proto.testCases.map(TestCase.fromProto);
|
|
1614
|
+
}
|
|
1615
|
+
return m;
|
|
1616
|
+
}
|
|
1617
|
+
constructor(kwargs) {
|
|
1618
|
+
if (!kwargs) {
|
|
1619
|
+
return;
|
|
1620
|
+
}
|
|
1621
|
+
Object.assign(this, kwargs);
|
|
1622
|
+
}
|
|
1623
|
+
toApiJson() {
|
|
1624
|
+
const toReturn = {};
|
|
1625
|
+
if (typeof this.connection !== 'undefined' && this.connection !== null) {
|
|
1626
|
+
toReturn['connection'] = 'toApiJson' in this.connection ? this.connection.toApiJson() : this.connection;
|
|
1627
|
+
}
|
|
1628
|
+
if (typeof this.testCases !== 'undefined' && this.testCases !== null) {
|
|
1629
|
+
toReturn['testCases'] = 'toApiJson' in this.testCases ? this.testCases.toApiJson() : this.testCases;
|
|
1630
|
+
}
|
|
1631
|
+
return toReturn;
|
|
1632
|
+
}
|
|
1633
|
+
}
|
|
1634
|
+
|
|
1635
|
+
function enumStringToValue$2(enumRef, value) {
|
|
1636
|
+
if (typeof value === 'number') {
|
|
1637
|
+
return value;
|
|
1638
|
+
}
|
|
1639
|
+
return enumRef[value];
|
|
1640
|
+
}
|
|
1641
|
+
class Access {
|
|
1642
|
+
static fromProto(proto) {
|
|
1643
|
+
let m = new Access();
|
|
1644
|
+
m = Object.assign(m, proto);
|
|
1645
|
+
return m;
|
|
1646
|
+
}
|
|
1647
|
+
constructor(kwargs) {
|
|
1648
|
+
if (!kwargs) {
|
|
1649
|
+
return;
|
|
1650
|
+
}
|
|
1651
|
+
Object.assign(this, kwargs);
|
|
1652
|
+
}
|
|
1653
|
+
toApiJson() {
|
|
1654
|
+
const toReturn = {};
|
|
1655
|
+
if (typeof this.scope !== 'undefined') {
|
|
1656
|
+
toReturn['scope'] = this.scope;
|
|
1657
|
+
}
|
|
1658
|
+
if (typeof this.public !== 'undefined') {
|
|
1659
|
+
toReturn['public'] = this.public;
|
|
1462
1660
|
}
|
|
1463
1661
|
return toReturn;
|
|
1464
1662
|
}
|
|
@@ -4261,6 +4459,52 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4261
4459
|
args: [{ providedIn: 'root' }]
|
|
4262
4460
|
}] });
|
|
4263
4461
|
|
|
4462
|
+
// *********************************
|
|
4463
|
+
// Code generated by sdkgen
|
|
4464
|
+
// DO NOT EDIT!.
|
|
4465
|
+
//
|
|
4466
|
+
// API Service.
|
|
4467
|
+
// *********************************
|
|
4468
|
+
class IntegrationTestApiService {
|
|
4469
|
+
constructor() {
|
|
4470
|
+
this.hostService = inject(HostService);
|
|
4471
|
+
this.http = inject(HttpClient);
|
|
4472
|
+
this._host = this.hostService.hostWithScheme;
|
|
4473
|
+
}
|
|
4474
|
+
apiOptions() {
|
|
4475
|
+
return {
|
|
4476
|
+
headers: new HttpHeaders({
|
|
4477
|
+
'Content-Type': 'application/json'
|
|
4478
|
+
}),
|
|
4479
|
+
withCredentials: true
|
|
4480
|
+
};
|
|
4481
|
+
}
|
|
4482
|
+
listTestCasesByConnection(r) {
|
|
4483
|
+
const request = (r.toApiJson) ? r : new ListTestCasesByConnectionRequest(r);
|
|
4484
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/ListTestCasesByConnection", request.toApiJson(), this.apiOptions())
|
|
4485
|
+
.pipe(map(resp => ListTestCasesByConnectionResponse.fromProto(resp)));
|
|
4486
|
+
}
|
|
4487
|
+
upsertTestCases(r) {
|
|
4488
|
+
const request = (r.toApiJson) ? r : new UpsertTestCasesRequest(r);
|
|
4489
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/UpsertTestCases", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
4490
|
+
}
|
|
4491
|
+
deleteTestCases(r) {
|
|
4492
|
+
const request = (r.toApiJson) ? r : new DeleteTestCasesRequest(r);
|
|
4493
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/DeleteTestCases", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
4494
|
+
}
|
|
4495
|
+
runTests(r) {
|
|
4496
|
+
const request = (r.toApiJson) ? r : new RunTestsRequest(r);
|
|
4497
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/RunTests", request.toApiJson(), this.apiOptions())
|
|
4498
|
+
.pipe(map(resp => RunTestsResponse.fromProto(resp)));
|
|
4499
|
+
}
|
|
4500
|
+
}
|
|
4501
|
+
IntegrationTestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntegrationTestApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4502
|
+
IntegrationTestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntegrationTestApiService, providedIn: 'root' });
|
|
4503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntegrationTestApiService, decorators: [{
|
|
4504
|
+
type: Injectable,
|
|
4505
|
+
args: [{ providedIn: 'root' }]
|
|
4506
|
+
}] });
|
|
4507
|
+
|
|
4264
4508
|
// *********************************
|
|
4265
4509
|
// Code generated by sdkgen
|
|
4266
4510
|
// DO NOT EDIT!.
|
|
@@ -4430,5 +4674,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4430
4674
|
* Generated bundle index. Do not edit.
|
|
4431
4675
|
*/
|
|
4432
4676
|
|
|
4433
|
-
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 };
|
|
4677
|
+
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 };
|
|
4434
4678
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|