@vendasta/ai-assistants 0.36.0 → 0.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/_internal/enums/api.enum.mjs +18 -0
- package/esm2020/lib/_internal/enums/index.mjs +3 -1
- package/esm2020/lib/_internal/enums/integration-tests.enum.mjs +13 -0
- package/esm2020/lib/_internal/integration-test.api.service.mjs +16 -2
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/integration-tests.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +7 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/integration-tests.mjs +249 -1
- package/fesm2015/vendasta-ai-assistants.mjs +299 -1
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +299 -1
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/enums/api.enum.d.ts +10 -0
- package/lib/_internal/enums/index.d.ts +2 -0
- package/lib/_internal/enums/integration-tests.enum.d.ts +5 -0
- package/lib/_internal/integration-test.api.service.d.ts +5 -2
- package/lib/_internal/interfaces/api.interface.d.ts +1 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/integration-tests.interface.d.ts +42 -0
- package/lib/_internal/objects/api.d.ts +1 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/integration-tests.d.ts +66 -0
- package/package.json +1 -1
|
@@ -124,6 +124,37 @@ var ChatMessageRole;
|
|
|
124
124
|
ChatMessageRole[ChatMessageRole["CHAT_MESSAGE_ROLE_ASSISTANT"] = 2] = "CHAT_MESSAGE_ROLE_ASSISTANT";
|
|
125
125
|
})(ChatMessageRole || (ChatMessageRole = {}));
|
|
126
126
|
|
|
127
|
+
// *********************************
|
|
128
|
+
// Code generated by sdkgen
|
|
129
|
+
// DO NOT EDIT!.
|
|
130
|
+
//
|
|
131
|
+
// Enums.
|
|
132
|
+
// *********************************
|
|
133
|
+
var SortDirection;
|
|
134
|
+
(function (SortDirection) {
|
|
135
|
+
SortDirection[SortDirection["SORT_DIRECTION_INVALID"] = 0] = "SORT_DIRECTION_INVALID";
|
|
136
|
+
SortDirection[SortDirection["SORT_DIRECTION_ASCENDING"] = 1] = "SORT_DIRECTION_ASCENDING";
|
|
137
|
+
SortDirection[SortDirection["SORT_DIRECTION_DESCENDING"] = 2] = "SORT_DIRECTION_DESCENDING";
|
|
138
|
+
})(SortDirection || (SortDirection = {}));
|
|
139
|
+
|
|
140
|
+
// *********************************
|
|
141
|
+
// Code generated by sdkgen
|
|
142
|
+
// DO NOT EDIT!.
|
|
143
|
+
//
|
|
144
|
+
// Enums.
|
|
145
|
+
// *********************************
|
|
146
|
+
var GenerateChatAnswerRequestModel;
|
|
147
|
+
(function (GenerateChatAnswerRequestModel) {
|
|
148
|
+
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_NOT_SET"] = 0] = "MODEL_NOT_SET";
|
|
149
|
+
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_OPENAI_GPT_4OMNI"] = 1] = "MODEL_OPENAI_GPT_4OMNI";
|
|
150
|
+
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_OPENAI_GPT_4OMNI_MINI"] = 2] = "MODEL_OPENAI_GPT_4OMNI_MINI";
|
|
151
|
+
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_OPENAI_GPT_4DOT1"] = 3] = "MODEL_OPENAI_GPT_4DOT1";
|
|
152
|
+
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_OPENAI_GPT_4DOT1_MINI"] = 4] = "MODEL_OPENAI_GPT_4DOT1_MINI";
|
|
153
|
+
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_OPENAI_GPT_4DOT1_NANO"] = 5] = "MODEL_OPENAI_GPT_4DOT1_NANO";
|
|
154
|
+
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_GOOGLE_GEMINI_2DOT5_PRO_PREVIEW"] = 6] = "MODEL_GOOGLE_GEMINI_2DOT5_PRO_PREVIEW";
|
|
155
|
+
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_GOOGLE_GEMINI_2DOT5_FLASH_PREVIEW"] = 7] = "MODEL_GOOGLE_GEMINI_2DOT5_FLASH_PREVIEW";
|
|
156
|
+
})(GenerateChatAnswerRequestModel || (GenerateChatAnswerRequestModel = {}));
|
|
157
|
+
|
|
127
158
|
// *********************************
|
|
128
159
|
// Code generated by sdkgen
|
|
129
160
|
// DO NOT EDIT!.
|
|
@@ -1442,6 +1473,32 @@ function enumStringToValue$3(enumRef, value) {
|
|
|
1442
1473
|
}
|
|
1443
1474
|
return enumRef[value];
|
|
1444
1475
|
}
|
|
1476
|
+
class CancelTestRunRequest {
|
|
1477
|
+
static fromProto(proto) {
|
|
1478
|
+
let m = new CancelTestRunRequest();
|
|
1479
|
+
m = Object.assign(m, proto);
|
|
1480
|
+
if (proto.assistant) {
|
|
1481
|
+
m.assistant = AssistantKey.fromProto(proto.assistant);
|
|
1482
|
+
}
|
|
1483
|
+
return m;
|
|
1484
|
+
}
|
|
1485
|
+
constructor(kwargs) {
|
|
1486
|
+
if (!kwargs) {
|
|
1487
|
+
return;
|
|
1488
|
+
}
|
|
1489
|
+
Object.assign(this, kwargs);
|
|
1490
|
+
}
|
|
1491
|
+
toApiJson() {
|
|
1492
|
+
const toReturn = {};
|
|
1493
|
+
if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
|
|
1494
|
+
toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
|
|
1495
|
+
}
|
|
1496
|
+
if (typeof this.id !== 'undefined') {
|
|
1497
|
+
toReturn['id'] = this.id;
|
|
1498
|
+
}
|
|
1499
|
+
return toReturn;
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1445
1502
|
class DeleteTestCasesRequest {
|
|
1446
1503
|
static fromProto(proto) {
|
|
1447
1504
|
let m = new DeleteTestCasesRequest();
|
|
@@ -1468,6 +1525,55 @@ class DeleteTestCasesRequest {
|
|
|
1468
1525
|
return toReturn;
|
|
1469
1526
|
}
|
|
1470
1527
|
}
|
|
1528
|
+
class GetTestRunRequest {
|
|
1529
|
+
static fromProto(proto) {
|
|
1530
|
+
let m = new GetTestRunRequest();
|
|
1531
|
+
m = Object.assign(m, proto);
|
|
1532
|
+
if (proto.assistant) {
|
|
1533
|
+
m.assistant = AssistantKey.fromProto(proto.assistant);
|
|
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.assistant !== 'undefined' && this.assistant !== null) {
|
|
1546
|
+
toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
|
|
1547
|
+
}
|
|
1548
|
+
if (typeof this.id !== 'undefined') {
|
|
1549
|
+
toReturn['id'] = this.id;
|
|
1550
|
+
}
|
|
1551
|
+
return toReturn;
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
class GetTestRunResponse {
|
|
1555
|
+
static fromProto(proto) {
|
|
1556
|
+
let m = new GetTestRunResponse();
|
|
1557
|
+
m = Object.assign(m, proto);
|
|
1558
|
+
if (proto.testRun) {
|
|
1559
|
+
m.testRun = TestRun.fromProto(proto.testRun);
|
|
1560
|
+
}
|
|
1561
|
+
return m;
|
|
1562
|
+
}
|
|
1563
|
+
constructor(kwargs) {
|
|
1564
|
+
if (!kwargs) {
|
|
1565
|
+
return;
|
|
1566
|
+
}
|
|
1567
|
+
Object.assign(this, kwargs);
|
|
1568
|
+
}
|
|
1569
|
+
toApiJson() {
|
|
1570
|
+
const toReturn = {};
|
|
1571
|
+
if (typeof this.testRun !== 'undefined' && this.testRun !== null) {
|
|
1572
|
+
toReturn['testRun'] = 'toApiJson' in this.testRun ? this.testRun.toApiJson() : this.testRun;
|
|
1573
|
+
}
|
|
1574
|
+
return toReturn;
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1471
1577
|
class ListTestCasesByAssistantRequest {
|
|
1472
1578
|
static fromProto(proto) {
|
|
1473
1579
|
let m = new ListTestCasesByAssistantRequest();
|
|
@@ -1478,6 +1584,9 @@ class ListTestCasesByAssistantRequest {
|
|
|
1478
1584
|
if (proto.pagingOptions) {
|
|
1479
1585
|
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
1480
1586
|
}
|
|
1587
|
+
if (proto.sortOptions) {
|
|
1588
|
+
m.sortOptions = SortOptions.fromProto(proto.sortOptions);
|
|
1589
|
+
}
|
|
1481
1590
|
return m;
|
|
1482
1591
|
}
|
|
1483
1592
|
constructor(kwargs) {
|
|
@@ -1494,6 +1603,12 @@ class ListTestCasesByAssistantRequest {
|
|
|
1494
1603
|
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
1495
1604
|
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
1496
1605
|
}
|
|
1606
|
+
if (typeof this.searchTerm !== 'undefined') {
|
|
1607
|
+
toReturn['searchTerm'] = this.searchTerm;
|
|
1608
|
+
}
|
|
1609
|
+
if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
|
|
1610
|
+
toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
|
|
1611
|
+
}
|
|
1497
1612
|
return toReturn;
|
|
1498
1613
|
}
|
|
1499
1614
|
}
|
|
@@ -1526,6 +1641,64 @@ class ListTestCasesByAssistantResponse {
|
|
|
1526
1641
|
return toReturn;
|
|
1527
1642
|
}
|
|
1528
1643
|
}
|
|
1644
|
+
class ListTestRunsByAssistantRequest {
|
|
1645
|
+
static fromProto(proto) {
|
|
1646
|
+
let m = new ListTestRunsByAssistantRequest();
|
|
1647
|
+
m = Object.assign(m, proto);
|
|
1648
|
+
if (proto.assistant) {
|
|
1649
|
+
m.assistant = AssistantKey.fromProto(proto.assistant);
|
|
1650
|
+
}
|
|
1651
|
+
if (proto.pagingOptions) {
|
|
1652
|
+
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
1653
|
+
}
|
|
1654
|
+
return m;
|
|
1655
|
+
}
|
|
1656
|
+
constructor(kwargs) {
|
|
1657
|
+
if (!kwargs) {
|
|
1658
|
+
return;
|
|
1659
|
+
}
|
|
1660
|
+
Object.assign(this, kwargs);
|
|
1661
|
+
}
|
|
1662
|
+
toApiJson() {
|
|
1663
|
+
const toReturn = {};
|
|
1664
|
+
if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
|
|
1665
|
+
toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
|
|
1666
|
+
}
|
|
1667
|
+
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
1668
|
+
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
1669
|
+
}
|
|
1670
|
+
return toReturn;
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
class ListTestRunsByAssistantResponse {
|
|
1674
|
+
static fromProto(proto) {
|
|
1675
|
+
let m = new ListTestRunsByAssistantResponse();
|
|
1676
|
+
m = Object.assign(m, proto);
|
|
1677
|
+
if (proto.testRuns) {
|
|
1678
|
+
m.testRuns = proto.testRuns.map(TestRun.fromProto);
|
|
1679
|
+
}
|
|
1680
|
+
if (proto.pagingMetadata) {
|
|
1681
|
+
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
1682
|
+
}
|
|
1683
|
+
return m;
|
|
1684
|
+
}
|
|
1685
|
+
constructor(kwargs) {
|
|
1686
|
+
if (!kwargs) {
|
|
1687
|
+
return;
|
|
1688
|
+
}
|
|
1689
|
+
Object.assign(this, kwargs);
|
|
1690
|
+
}
|
|
1691
|
+
toApiJson() {
|
|
1692
|
+
const toReturn = {};
|
|
1693
|
+
if (typeof this.testRuns !== 'undefined' && this.testRuns !== null) {
|
|
1694
|
+
toReturn['testRuns'] = 'toApiJson' in this.testRuns ? this.testRuns.toApiJson() : this.testRuns;
|
|
1695
|
+
}
|
|
1696
|
+
if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {
|
|
1697
|
+
toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;
|
|
1698
|
+
}
|
|
1699
|
+
return toReturn;
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1529
1702
|
class RunTestsRequest {
|
|
1530
1703
|
static fromProto(proto) {
|
|
1531
1704
|
let m = new RunTestsRequest();
|
|
@@ -1572,6 +1745,32 @@ class RunTestsResponse {
|
|
|
1572
1745
|
return toReturn;
|
|
1573
1746
|
}
|
|
1574
1747
|
}
|
|
1748
|
+
class SortOptions {
|
|
1749
|
+
static fromProto(proto) {
|
|
1750
|
+
let m = new SortOptions();
|
|
1751
|
+
m = Object.assign(m, proto);
|
|
1752
|
+
if (proto.direction) {
|
|
1753
|
+
m.direction = enumStringToValue$3(SortDirection, proto.direction);
|
|
1754
|
+
}
|
|
1755
|
+
return m;
|
|
1756
|
+
}
|
|
1757
|
+
constructor(kwargs) {
|
|
1758
|
+
if (!kwargs) {
|
|
1759
|
+
return;
|
|
1760
|
+
}
|
|
1761
|
+
Object.assign(this, kwargs);
|
|
1762
|
+
}
|
|
1763
|
+
toApiJson() {
|
|
1764
|
+
const toReturn = {};
|
|
1765
|
+
if (typeof this.direction !== 'undefined') {
|
|
1766
|
+
toReturn['direction'] = this.direction;
|
|
1767
|
+
}
|
|
1768
|
+
if (typeof this.field !== 'undefined') {
|
|
1769
|
+
toReturn['field'] = this.field;
|
|
1770
|
+
}
|
|
1771
|
+
return toReturn;
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1575
1774
|
class TestCase {
|
|
1576
1775
|
static fromProto(proto) {
|
|
1577
1776
|
let m = new TestCase();
|
|
@@ -1604,6 +1803,85 @@ class TestCase {
|
|
|
1604
1803
|
return toReturn;
|
|
1605
1804
|
}
|
|
1606
1805
|
}
|
|
1806
|
+
class TestResult {
|
|
1807
|
+
static fromProto(proto) {
|
|
1808
|
+
let m = new TestResult();
|
|
1809
|
+
m = Object.assign(m, proto);
|
|
1810
|
+
if (proto.chatHistory) {
|
|
1811
|
+
m.chatHistory = proto.chatHistory.map(ChatMessage.fromProto);
|
|
1812
|
+
}
|
|
1813
|
+
return m;
|
|
1814
|
+
}
|
|
1815
|
+
constructor(kwargs) {
|
|
1816
|
+
if (!kwargs) {
|
|
1817
|
+
return;
|
|
1818
|
+
}
|
|
1819
|
+
Object.assign(this, kwargs);
|
|
1820
|
+
}
|
|
1821
|
+
toApiJson() {
|
|
1822
|
+
const toReturn = {};
|
|
1823
|
+
if (typeof this.id !== 'undefined') {
|
|
1824
|
+
toReturn['id'] = this.id;
|
|
1825
|
+
}
|
|
1826
|
+
if (typeof this.name !== 'undefined') {
|
|
1827
|
+
toReturn['name'] = this.name;
|
|
1828
|
+
}
|
|
1829
|
+
if (typeof this.chatHistory !== 'undefined' && this.chatHistory !== null) {
|
|
1830
|
+
toReturn['chatHistory'] = 'toApiJson' in this.chatHistory ? this.chatHistory.toApiJson() : this.chatHistory;
|
|
1831
|
+
}
|
|
1832
|
+
if (typeof this.expected !== 'undefined') {
|
|
1833
|
+
toReturn['expected'] = this.expected;
|
|
1834
|
+
}
|
|
1835
|
+
if (typeof this.evaluation !== 'undefined') {
|
|
1836
|
+
toReturn['evaluation'] = this.evaluation;
|
|
1837
|
+
}
|
|
1838
|
+
if (typeof this.status !== 'undefined') {
|
|
1839
|
+
toReturn['status'] = this.status;
|
|
1840
|
+
}
|
|
1841
|
+
if (typeof this.score !== 'undefined') {
|
|
1842
|
+
toReturn['score'] = this.score;
|
|
1843
|
+
}
|
|
1844
|
+
return toReturn;
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
class TestRun {
|
|
1848
|
+
static fromProto(proto) {
|
|
1849
|
+
let m = new TestRun();
|
|
1850
|
+
m = Object.assign(m, proto);
|
|
1851
|
+
if (proto.testResults) {
|
|
1852
|
+
m.testResults = proto.testResults.map(TestResult.fromProto);
|
|
1853
|
+
}
|
|
1854
|
+
if (proto.created) {
|
|
1855
|
+
m.created = new Date(proto.created);
|
|
1856
|
+
}
|
|
1857
|
+
return m;
|
|
1858
|
+
}
|
|
1859
|
+
constructor(kwargs) {
|
|
1860
|
+
if (!kwargs) {
|
|
1861
|
+
return;
|
|
1862
|
+
}
|
|
1863
|
+
Object.assign(this, kwargs);
|
|
1864
|
+
}
|
|
1865
|
+
toApiJson() {
|
|
1866
|
+
const toReturn = {};
|
|
1867
|
+
if (typeof this.id !== 'undefined') {
|
|
1868
|
+
toReturn['id'] = this.id;
|
|
1869
|
+
}
|
|
1870
|
+
if (typeof this.status !== 'undefined') {
|
|
1871
|
+
toReturn['status'] = this.status;
|
|
1872
|
+
}
|
|
1873
|
+
if (typeof this.testFramework !== 'undefined') {
|
|
1874
|
+
toReturn['testFramework'] = this.testFramework;
|
|
1875
|
+
}
|
|
1876
|
+
if (typeof this.testResults !== 'undefined' && this.testResults !== null) {
|
|
1877
|
+
toReturn['testResults'] = 'toApiJson' in this.testResults ? this.testResults.toApiJson() : this.testResults;
|
|
1878
|
+
}
|
|
1879
|
+
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
1880
|
+
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
1881
|
+
}
|
|
1882
|
+
return toReturn;
|
|
1883
|
+
}
|
|
1884
|
+
}
|
|
1607
1885
|
class UpsertTestCasesRequest {
|
|
1608
1886
|
static fromProto(proto) {
|
|
1609
1887
|
let m = new UpsertTestCasesRequest();
|
|
@@ -3870,6 +4148,9 @@ class GenerateChatAnswerRequestOptions {
|
|
|
3870
4148
|
if (proto.maxTokens) {
|
|
3871
4149
|
m.maxTokens = parseInt(proto.maxTokens, 10);
|
|
3872
4150
|
}
|
|
4151
|
+
if (proto.model) {
|
|
4152
|
+
m.model = enumStringToValue(GenerateChatAnswerRequestModel, proto.model);
|
|
4153
|
+
}
|
|
3873
4154
|
return m;
|
|
3874
4155
|
}
|
|
3875
4156
|
constructor(kwargs) {
|
|
@@ -3889,6 +4170,9 @@ class GenerateChatAnswerRequestOptions {
|
|
|
3889
4170
|
if (typeof this.maxTokens !== 'undefined') {
|
|
3890
4171
|
toReturn['maxTokens'] = this.maxTokens;
|
|
3891
4172
|
}
|
|
4173
|
+
if (typeof this.model !== 'undefined') {
|
|
4174
|
+
toReturn['model'] = this.model;
|
|
4175
|
+
}
|
|
3892
4176
|
return toReturn;
|
|
3893
4177
|
}
|
|
3894
4178
|
}
|
|
@@ -4505,6 +4789,20 @@ class IntegrationTestApiService {
|
|
|
4505
4789
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/RunTests", request.toApiJson(), this.apiOptions())
|
|
4506
4790
|
.pipe(map(resp => RunTestsResponse.fromProto(resp)));
|
|
4507
4791
|
}
|
|
4792
|
+
listTestRunsByAssistant(r) {
|
|
4793
|
+
const request = (r.toApiJson) ? r : new ListTestRunsByAssistantRequest(r);
|
|
4794
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/ListTestRunsByAssistant", request.toApiJson(), this.apiOptions())
|
|
4795
|
+
.pipe(map(resp => ListTestRunsByAssistantResponse.fromProto(resp)));
|
|
4796
|
+
}
|
|
4797
|
+
getTestRun(r) {
|
|
4798
|
+
const request = (r.toApiJson) ? r : new GetTestRunRequest(r);
|
|
4799
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/GetTestRun", request.toApiJson(), this.apiOptions())
|
|
4800
|
+
.pipe(map(resp => GetTestRunResponse.fromProto(resp)));
|
|
4801
|
+
}
|
|
4802
|
+
cancelTestRun(r) {
|
|
4803
|
+
const request = (r.toApiJson) ? r : new CancelTestRunRequest(r);
|
|
4804
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/CancelTestRun", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
4805
|
+
}
|
|
4508
4806
|
}
|
|
4509
4807
|
IntegrationTestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntegrationTestApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4510
4808
|
IntegrationTestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntegrationTestApiService, providedIn: 'root' });
|
|
@@ -4682,5 +4980,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4682
4980
|
* Generated bundle index. Do not edit.
|
|
4683
4981
|
*/
|
|
4684
4982
|
|
|
4685
|
-
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, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, 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 };
|
|
4983
|
+
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, 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, GenerateChatAnswerRequestModel, 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, GetTestRunRequest, GetTestRunResponse, 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, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, ModelConfig, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, RunTestsRequest, RunTestsResponse, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SortDirection, SortOptions, TestCase, TestResult, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertTestCasesRequest, VendorModel };
|
|
4686
4984
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|