@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
|
@@ -125,6 +125,37 @@ var ChatMessageRole;
|
|
|
125
125
|
ChatMessageRole[ChatMessageRole["CHAT_MESSAGE_ROLE_ASSISTANT"] = 2] = "CHAT_MESSAGE_ROLE_ASSISTANT";
|
|
126
126
|
})(ChatMessageRole || (ChatMessageRole = {}));
|
|
127
127
|
|
|
128
|
+
// *********************************
|
|
129
|
+
// Code generated by sdkgen
|
|
130
|
+
// DO NOT EDIT!.
|
|
131
|
+
//
|
|
132
|
+
// Enums.
|
|
133
|
+
// *********************************
|
|
134
|
+
var SortDirection;
|
|
135
|
+
(function (SortDirection) {
|
|
136
|
+
SortDirection[SortDirection["SORT_DIRECTION_INVALID"] = 0] = "SORT_DIRECTION_INVALID";
|
|
137
|
+
SortDirection[SortDirection["SORT_DIRECTION_ASCENDING"] = 1] = "SORT_DIRECTION_ASCENDING";
|
|
138
|
+
SortDirection[SortDirection["SORT_DIRECTION_DESCENDING"] = 2] = "SORT_DIRECTION_DESCENDING";
|
|
139
|
+
})(SortDirection || (SortDirection = {}));
|
|
140
|
+
|
|
141
|
+
// *********************************
|
|
142
|
+
// Code generated by sdkgen
|
|
143
|
+
// DO NOT EDIT!.
|
|
144
|
+
//
|
|
145
|
+
// Enums.
|
|
146
|
+
// *********************************
|
|
147
|
+
var GenerateChatAnswerRequestModel;
|
|
148
|
+
(function (GenerateChatAnswerRequestModel) {
|
|
149
|
+
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_NOT_SET"] = 0] = "MODEL_NOT_SET";
|
|
150
|
+
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_OPENAI_GPT_4OMNI"] = 1] = "MODEL_OPENAI_GPT_4OMNI";
|
|
151
|
+
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_OPENAI_GPT_4OMNI_MINI"] = 2] = "MODEL_OPENAI_GPT_4OMNI_MINI";
|
|
152
|
+
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_OPENAI_GPT_4DOT1"] = 3] = "MODEL_OPENAI_GPT_4DOT1";
|
|
153
|
+
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_OPENAI_GPT_4DOT1_MINI"] = 4] = "MODEL_OPENAI_GPT_4DOT1_MINI";
|
|
154
|
+
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_OPENAI_GPT_4DOT1_NANO"] = 5] = "MODEL_OPENAI_GPT_4DOT1_NANO";
|
|
155
|
+
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_GOOGLE_GEMINI_2DOT5_PRO_PREVIEW"] = 6] = "MODEL_GOOGLE_GEMINI_2DOT5_PRO_PREVIEW";
|
|
156
|
+
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_GOOGLE_GEMINI_2DOT5_FLASH_PREVIEW"] = 7] = "MODEL_GOOGLE_GEMINI_2DOT5_FLASH_PREVIEW";
|
|
157
|
+
})(GenerateChatAnswerRequestModel || (GenerateChatAnswerRequestModel = {}));
|
|
158
|
+
|
|
128
159
|
// *********************************
|
|
129
160
|
// Code generated by sdkgen
|
|
130
161
|
// DO NOT EDIT!.
|
|
@@ -1443,6 +1474,32 @@ function enumStringToValue$3(enumRef, value) {
|
|
|
1443
1474
|
}
|
|
1444
1475
|
return enumRef[value];
|
|
1445
1476
|
}
|
|
1477
|
+
class CancelTestRunRequest {
|
|
1478
|
+
static fromProto(proto) {
|
|
1479
|
+
let m = new CancelTestRunRequest();
|
|
1480
|
+
m = Object.assign(m, proto);
|
|
1481
|
+
if (proto.assistant) {
|
|
1482
|
+
m.assistant = AssistantKey.fromProto(proto.assistant);
|
|
1483
|
+
}
|
|
1484
|
+
return m;
|
|
1485
|
+
}
|
|
1486
|
+
constructor(kwargs) {
|
|
1487
|
+
if (!kwargs) {
|
|
1488
|
+
return;
|
|
1489
|
+
}
|
|
1490
|
+
Object.assign(this, kwargs);
|
|
1491
|
+
}
|
|
1492
|
+
toApiJson() {
|
|
1493
|
+
const toReturn = {};
|
|
1494
|
+
if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
|
|
1495
|
+
toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
|
|
1496
|
+
}
|
|
1497
|
+
if (typeof this.id !== 'undefined') {
|
|
1498
|
+
toReturn['id'] = this.id;
|
|
1499
|
+
}
|
|
1500
|
+
return toReturn;
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1446
1503
|
class DeleteTestCasesRequest {
|
|
1447
1504
|
static fromProto(proto) {
|
|
1448
1505
|
let m = new DeleteTestCasesRequest();
|
|
@@ -1469,6 +1526,55 @@ class DeleteTestCasesRequest {
|
|
|
1469
1526
|
return toReturn;
|
|
1470
1527
|
}
|
|
1471
1528
|
}
|
|
1529
|
+
class GetTestRunRequest {
|
|
1530
|
+
static fromProto(proto) {
|
|
1531
|
+
let m = new GetTestRunRequest();
|
|
1532
|
+
m = Object.assign(m, proto);
|
|
1533
|
+
if (proto.assistant) {
|
|
1534
|
+
m.assistant = AssistantKey.fromProto(proto.assistant);
|
|
1535
|
+
}
|
|
1536
|
+
return m;
|
|
1537
|
+
}
|
|
1538
|
+
constructor(kwargs) {
|
|
1539
|
+
if (!kwargs) {
|
|
1540
|
+
return;
|
|
1541
|
+
}
|
|
1542
|
+
Object.assign(this, kwargs);
|
|
1543
|
+
}
|
|
1544
|
+
toApiJson() {
|
|
1545
|
+
const toReturn = {};
|
|
1546
|
+
if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
|
|
1547
|
+
toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
|
|
1548
|
+
}
|
|
1549
|
+
if (typeof this.id !== 'undefined') {
|
|
1550
|
+
toReturn['id'] = this.id;
|
|
1551
|
+
}
|
|
1552
|
+
return toReturn;
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
class GetTestRunResponse {
|
|
1556
|
+
static fromProto(proto) {
|
|
1557
|
+
let m = new GetTestRunResponse();
|
|
1558
|
+
m = Object.assign(m, proto);
|
|
1559
|
+
if (proto.testRun) {
|
|
1560
|
+
m.testRun = TestRun.fromProto(proto.testRun);
|
|
1561
|
+
}
|
|
1562
|
+
return m;
|
|
1563
|
+
}
|
|
1564
|
+
constructor(kwargs) {
|
|
1565
|
+
if (!kwargs) {
|
|
1566
|
+
return;
|
|
1567
|
+
}
|
|
1568
|
+
Object.assign(this, kwargs);
|
|
1569
|
+
}
|
|
1570
|
+
toApiJson() {
|
|
1571
|
+
const toReturn = {};
|
|
1572
|
+
if (typeof this.testRun !== 'undefined' && this.testRun !== null) {
|
|
1573
|
+
toReturn['testRun'] = 'toApiJson' in this.testRun ? this.testRun.toApiJson() : this.testRun;
|
|
1574
|
+
}
|
|
1575
|
+
return toReturn;
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1472
1578
|
class ListTestCasesByAssistantRequest {
|
|
1473
1579
|
static fromProto(proto) {
|
|
1474
1580
|
let m = new ListTestCasesByAssistantRequest();
|
|
@@ -1479,6 +1585,9 @@ class ListTestCasesByAssistantRequest {
|
|
|
1479
1585
|
if (proto.pagingOptions) {
|
|
1480
1586
|
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
1481
1587
|
}
|
|
1588
|
+
if (proto.sortOptions) {
|
|
1589
|
+
m.sortOptions = SortOptions.fromProto(proto.sortOptions);
|
|
1590
|
+
}
|
|
1482
1591
|
return m;
|
|
1483
1592
|
}
|
|
1484
1593
|
constructor(kwargs) {
|
|
@@ -1495,6 +1604,12 @@ class ListTestCasesByAssistantRequest {
|
|
|
1495
1604
|
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
1496
1605
|
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
1497
1606
|
}
|
|
1607
|
+
if (typeof this.searchTerm !== 'undefined') {
|
|
1608
|
+
toReturn['searchTerm'] = this.searchTerm;
|
|
1609
|
+
}
|
|
1610
|
+
if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
|
|
1611
|
+
toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
|
|
1612
|
+
}
|
|
1498
1613
|
return toReturn;
|
|
1499
1614
|
}
|
|
1500
1615
|
}
|
|
@@ -1527,6 +1642,64 @@ class ListTestCasesByAssistantResponse {
|
|
|
1527
1642
|
return toReturn;
|
|
1528
1643
|
}
|
|
1529
1644
|
}
|
|
1645
|
+
class ListTestRunsByAssistantRequest {
|
|
1646
|
+
static fromProto(proto) {
|
|
1647
|
+
let m = new ListTestRunsByAssistantRequest();
|
|
1648
|
+
m = Object.assign(m, proto);
|
|
1649
|
+
if (proto.assistant) {
|
|
1650
|
+
m.assistant = AssistantKey.fromProto(proto.assistant);
|
|
1651
|
+
}
|
|
1652
|
+
if (proto.pagingOptions) {
|
|
1653
|
+
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
1654
|
+
}
|
|
1655
|
+
return m;
|
|
1656
|
+
}
|
|
1657
|
+
constructor(kwargs) {
|
|
1658
|
+
if (!kwargs) {
|
|
1659
|
+
return;
|
|
1660
|
+
}
|
|
1661
|
+
Object.assign(this, kwargs);
|
|
1662
|
+
}
|
|
1663
|
+
toApiJson() {
|
|
1664
|
+
const toReturn = {};
|
|
1665
|
+
if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
|
|
1666
|
+
toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
|
|
1667
|
+
}
|
|
1668
|
+
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
1669
|
+
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
1670
|
+
}
|
|
1671
|
+
return toReturn;
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
class ListTestRunsByAssistantResponse {
|
|
1675
|
+
static fromProto(proto) {
|
|
1676
|
+
let m = new ListTestRunsByAssistantResponse();
|
|
1677
|
+
m = Object.assign(m, proto);
|
|
1678
|
+
if (proto.testRuns) {
|
|
1679
|
+
m.testRuns = proto.testRuns.map(TestRun.fromProto);
|
|
1680
|
+
}
|
|
1681
|
+
if (proto.pagingMetadata) {
|
|
1682
|
+
m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
|
|
1683
|
+
}
|
|
1684
|
+
return m;
|
|
1685
|
+
}
|
|
1686
|
+
constructor(kwargs) {
|
|
1687
|
+
if (!kwargs) {
|
|
1688
|
+
return;
|
|
1689
|
+
}
|
|
1690
|
+
Object.assign(this, kwargs);
|
|
1691
|
+
}
|
|
1692
|
+
toApiJson() {
|
|
1693
|
+
const toReturn = {};
|
|
1694
|
+
if (typeof this.testRuns !== 'undefined' && this.testRuns !== null) {
|
|
1695
|
+
toReturn['testRuns'] = 'toApiJson' in this.testRuns ? this.testRuns.toApiJson() : this.testRuns;
|
|
1696
|
+
}
|
|
1697
|
+
if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {
|
|
1698
|
+
toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;
|
|
1699
|
+
}
|
|
1700
|
+
return toReturn;
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1530
1703
|
class RunTestsRequest {
|
|
1531
1704
|
static fromProto(proto) {
|
|
1532
1705
|
let m = new RunTestsRequest();
|
|
@@ -1573,6 +1746,32 @@ class RunTestsResponse {
|
|
|
1573
1746
|
return toReturn;
|
|
1574
1747
|
}
|
|
1575
1748
|
}
|
|
1749
|
+
class SortOptions {
|
|
1750
|
+
static fromProto(proto) {
|
|
1751
|
+
let m = new SortOptions();
|
|
1752
|
+
m = Object.assign(m, proto);
|
|
1753
|
+
if (proto.direction) {
|
|
1754
|
+
m.direction = enumStringToValue$3(SortDirection, proto.direction);
|
|
1755
|
+
}
|
|
1756
|
+
return m;
|
|
1757
|
+
}
|
|
1758
|
+
constructor(kwargs) {
|
|
1759
|
+
if (!kwargs) {
|
|
1760
|
+
return;
|
|
1761
|
+
}
|
|
1762
|
+
Object.assign(this, kwargs);
|
|
1763
|
+
}
|
|
1764
|
+
toApiJson() {
|
|
1765
|
+
const toReturn = {};
|
|
1766
|
+
if (typeof this.direction !== 'undefined') {
|
|
1767
|
+
toReturn['direction'] = this.direction;
|
|
1768
|
+
}
|
|
1769
|
+
if (typeof this.field !== 'undefined') {
|
|
1770
|
+
toReturn['field'] = this.field;
|
|
1771
|
+
}
|
|
1772
|
+
return toReturn;
|
|
1773
|
+
}
|
|
1774
|
+
}
|
|
1576
1775
|
class TestCase {
|
|
1577
1776
|
static fromProto(proto) {
|
|
1578
1777
|
let m = new TestCase();
|
|
@@ -1605,6 +1804,85 @@ class TestCase {
|
|
|
1605
1804
|
return toReturn;
|
|
1606
1805
|
}
|
|
1607
1806
|
}
|
|
1807
|
+
class TestResult {
|
|
1808
|
+
static fromProto(proto) {
|
|
1809
|
+
let m = new TestResult();
|
|
1810
|
+
m = Object.assign(m, proto);
|
|
1811
|
+
if (proto.chatHistory) {
|
|
1812
|
+
m.chatHistory = proto.chatHistory.map(ChatMessage.fromProto);
|
|
1813
|
+
}
|
|
1814
|
+
return m;
|
|
1815
|
+
}
|
|
1816
|
+
constructor(kwargs) {
|
|
1817
|
+
if (!kwargs) {
|
|
1818
|
+
return;
|
|
1819
|
+
}
|
|
1820
|
+
Object.assign(this, kwargs);
|
|
1821
|
+
}
|
|
1822
|
+
toApiJson() {
|
|
1823
|
+
const toReturn = {};
|
|
1824
|
+
if (typeof this.id !== 'undefined') {
|
|
1825
|
+
toReturn['id'] = this.id;
|
|
1826
|
+
}
|
|
1827
|
+
if (typeof this.name !== 'undefined') {
|
|
1828
|
+
toReturn['name'] = this.name;
|
|
1829
|
+
}
|
|
1830
|
+
if (typeof this.chatHistory !== 'undefined' && this.chatHistory !== null) {
|
|
1831
|
+
toReturn['chatHistory'] = 'toApiJson' in this.chatHistory ? this.chatHistory.toApiJson() : this.chatHistory;
|
|
1832
|
+
}
|
|
1833
|
+
if (typeof this.expected !== 'undefined') {
|
|
1834
|
+
toReturn['expected'] = this.expected;
|
|
1835
|
+
}
|
|
1836
|
+
if (typeof this.evaluation !== 'undefined') {
|
|
1837
|
+
toReturn['evaluation'] = this.evaluation;
|
|
1838
|
+
}
|
|
1839
|
+
if (typeof this.status !== 'undefined') {
|
|
1840
|
+
toReturn['status'] = this.status;
|
|
1841
|
+
}
|
|
1842
|
+
if (typeof this.score !== 'undefined') {
|
|
1843
|
+
toReturn['score'] = this.score;
|
|
1844
|
+
}
|
|
1845
|
+
return toReturn;
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
class TestRun {
|
|
1849
|
+
static fromProto(proto) {
|
|
1850
|
+
let m = new TestRun();
|
|
1851
|
+
m = Object.assign(m, proto);
|
|
1852
|
+
if (proto.testResults) {
|
|
1853
|
+
m.testResults = proto.testResults.map(TestResult.fromProto);
|
|
1854
|
+
}
|
|
1855
|
+
if (proto.created) {
|
|
1856
|
+
m.created = new Date(proto.created);
|
|
1857
|
+
}
|
|
1858
|
+
return m;
|
|
1859
|
+
}
|
|
1860
|
+
constructor(kwargs) {
|
|
1861
|
+
if (!kwargs) {
|
|
1862
|
+
return;
|
|
1863
|
+
}
|
|
1864
|
+
Object.assign(this, kwargs);
|
|
1865
|
+
}
|
|
1866
|
+
toApiJson() {
|
|
1867
|
+
const toReturn = {};
|
|
1868
|
+
if (typeof this.id !== 'undefined') {
|
|
1869
|
+
toReturn['id'] = this.id;
|
|
1870
|
+
}
|
|
1871
|
+
if (typeof this.status !== 'undefined') {
|
|
1872
|
+
toReturn['status'] = this.status;
|
|
1873
|
+
}
|
|
1874
|
+
if (typeof this.testFramework !== 'undefined') {
|
|
1875
|
+
toReturn['testFramework'] = this.testFramework;
|
|
1876
|
+
}
|
|
1877
|
+
if (typeof this.testResults !== 'undefined' && this.testResults !== null) {
|
|
1878
|
+
toReturn['testResults'] = 'toApiJson' in this.testResults ? this.testResults.toApiJson() : this.testResults;
|
|
1879
|
+
}
|
|
1880
|
+
if (typeof this.created !== 'undefined' && this.created !== null) {
|
|
1881
|
+
toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
|
|
1882
|
+
}
|
|
1883
|
+
return toReturn;
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1608
1886
|
class UpsertTestCasesRequest {
|
|
1609
1887
|
static fromProto(proto) {
|
|
1610
1888
|
let m = new UpsertTestCasesRequest();
|
|
@@ -3871,6 +4149,9 @@ class GenerateChatAnswerRequestOptions {
|
|
|
3871
4149
|
if (proto.maxTokens) {
|
|
3872
4150
|
m.maxTokens = parseInt(proto.maxTokens, 10);
|
|
3873
4151
|
}
|
|
4152
|
+
if (proto.model) {
|
|
4153
|
+
m.model = enumStringToValue(GenerateChatAnswerRequestModel, proto.model);
|
|
4154
|
+
}
|
|
3874
4155
|
return m;
|
|
3875
4156
|
}
|
|
3876
4157
|
constructor(kwargs) {
|
|
@@ -3890,6 +4171,9 @@ class GenerateChatAnswerRequestOptions {
|
|
|
3890
4171
|
if (typeof this.maxTokens !== 'undefined') {
|
|
3891
4172
|
toReturn['maxTokens'] = this.maxTokens;
|
|
3892
4173
|
}
|
|
4174
|
+
if (typeof this.model !== 'undefined') {
|
|
4175
|
+
toReturn['model'] = this.model;
|
|
4176
|
+
}
|
|
3893
4177
|
return toReturn;
|
|
3894
4178
|
}
|
|
3895
4179
|
}
|
|
@@ -4506,6 +4790,20 @@ class IntegrationTestApiService {
|
|
|
4506
4790
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/RunTests", request.toApiJson(), this.apiOptions())
|
|
4507
4791
|
.pipe(map(resp => RunTestsResponse.fromProto(resp)));
|
|
4508
4792
|
}
|
|
4793
|
+
listTestRunsByAssistant(r) {
|
|
4794
|
+
const request = (r.toApiJson) ? r : new ListTestRunsByAssistantRequest(r);
|
|
4795
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/ListTestRunsByAssistant", request.toApiJson(), this.apiOptions())
|
|
4796
|
+
.pipe(map(resp => ListTestRunsByAssistantResponse.fromProto(resp)));
|
|
4797
|
+
}
|
|
4798
|
+
getTestRun(r) {
|
|
4799
|
+
const request = (r.toApiJson) ? r : new GetTestRunRequest(r);
|
|
4800
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/GetTestRun", request.toApiJson(), this.apiOptions())
|
|
4801
|
+
.pipe(map(resp => GetTestRunResponse.fromProto(resp)));
|
|
4802
|
+
}
|
|
4803
|
+
cancelTestRun(r) {
|
|
4804
|
+
const request = (r.toApiJson) ? r : new CancelTestRunRequest(r);
|
|
4805
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/CancelTestRun", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4806
|
+
}
|
|
4509
4807
|
}
|
|
4510
4808
|
IntegrationTestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntegrationTestApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4511
4809
|
IntegrationTestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntegrationTestApiService, providedIn: 'root' });
|
|
@@ -4683,5 +4981,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4683
4981
|
* Generated bundle index. Do not edit.
|
|
4684
4982
|
*/
|
|
4685
4983
|
|
|
4686
|
-
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 };
|
|
4984
|
+
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 };
|
|
4687
4985
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|