@vendasta/ai-assistants 0.21.0 → 0.24.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/answer.enum.mjs +4 -1
- package/esm2020/lib/_internal/enums/function.enum.mjs +12 -0
- package/esm2020/lib/_internal/enums/index.mjs +2 -1
- package/esm2020/lib/_internal/goal.api.service.mjs +11 -2
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/function.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +130 -44
- package/esm2020/lib/_internal/objects/function.mjs +8 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/prompt-module.api.service.mjs +4 -3
- package/fesm2015/vendasta-ai-assistants.mjs +162 -45
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +162 -45
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/enums/answer.enum.d.ts +4 -1
- package/lib/_internal/enums/function.enum.d.ts +4 -0
- package/lib/_internal/enums/index.d.ts +1 -0
- package/lib/_internal/goal.api.service.d.ts +4 -2
- package/lib/_internal/interfaces/api.interface.d.ts +24 -12
- package/lib/_internal/interfaces/function.interface.d.ts +2 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +47 -23
- package/lib/_internal/objects/function.d.ts +2 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/prompt-module.api.service.d.ts +2 -2
- package/package.json +1 -1
|
@@ -26,6 +26,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
26
26
|
args: [{ providedIn: 'root' }]
|
|
27
27
|
}] });
|
|
28
28
|
|
|
29
|
+
// *********************************
|
|
30
|
+
// Code generated by sdkgen
|
|
31
|
+
// DO NOT EDIT!.
|
|
32
|
+
//
|
|
33
|
+
// Enums.
|
|
34
|
+
// *********************************
|
|
35
|
+
var FunctionParameterParameterLocation;
|
|
36
|
+
(function (FunctionParameterParameterLocation) {
|
|
37
|
+
FunctionParameterParameterLocation[FunctionParameterParameterLocation["LOCATION_BODY"] = 0] = "LOCATION_BODY";
|
|
38
|
+
FunctionParameterParameterLocation[FunctionParameterParameterLocation["LOCATION_QUERY_PARAM"] = 1] = "LOCATION_QUERY_PARAM";
|
|
39
|
+
})(FunctionParameterParameterLocation || (FunctionParameterParameterLocation = {}));
|
|
40
|
+
|
|
29
41
|
// *********************************
|
|
30
42
|
// Code generated by sdkgen
|
|
31
43
|
// DO NOT EDIT!.
|
|
@@ -94,6 +106,9 @@ var ChatChannel;
|
|
|
94
106
|
ChatChannel[ChatChannel["CHAT_CHANNEL_WEB"] = 2] = "CHAT_CHANNEL_WEB";
|
|
95
107
|
ChatChannel[ChatChannel["CHAT_CHANNEL_SMS"] = 3] = "CHAT_CHANNEL_SMS";
|
|
96
108
|
ChatChannel[ChatChannel["CHAT_CHANNEL_WHATSAPP"] = 4] = "CHAT_CHANNEL_WHATSAPP";
|
|
109
|
+
ChatChannel[ChatChannel["CHAT_CHANNEL_FACEBOOK"] = 5] = "CHAT_CHANNEL_FACEBOOK";
|
|
110
|
+
ChatChannel[ChatChannel["CHAT_CHANNEL_INSTAGRAM"] = 7] = "CHAT_CHANNEL_INSTAGRAM";
|
|
111
|
+
ChatChannel[ChatChannel["CHAT_CHANNEL_AUTOMATION"] = 8] = "CHAT_CHANNEL_AUTOMATION";
|
|
97
112
|
})(ChatChannel || (ChatChannel = {}));
|
|
98
113
|
var ChatMessageRole;
|
|
99
114
|
(function (ChatMessageRole) {
|
|
@@ -407,6 +422,9 @@ class FunctionParameter {
|
|
|
407
422
|
if (proto.items) {
|
|
408
423
|
m.items = FunctionParameter.fromProto(proto.items);
|
|
409
424
|
}
|
|
425
|
+
if (proto.location) {
|
|
426
|
+
m.location = enumStringToValue$9(FunctionParameterParameterLocation, proto.location);
|
|
427
|
+
}
|
|
410
428
|
return m;
|
|
411
429
|
}
|
|
412
430
|
constructor(kwargs) {
|
|
@@ -435,6 +453,9 @@ class FunctionParameter {
|
|
|
435
453
|
if (typeof this.value !== 'undefined') {
|
|
436
454
|
toReturn['value'] = this.value;
|
|
437
455
|
}
|
|
456
|
+
if (typeof this.location !== 'undefined') {
|
|
457
|
+
toReturn['location'] = this.location;
|
|
458
|
+
}
|
|
438
459
|
return toReturn;
|
|
439
460
|
}
|
|
440
461
|
}
|
|
@@ -1476,6 +1497,49 @@ class SetAssistantConnectionsRequestConnectionState {
|
|
|
1476
1497
|
return toReturn;
|
|
1477
1498
|
}
|
|
1478
1499
|
}
|
|
1500
|
+
class CreateGoalRequest {
|
|
1501
|
+
static fromProto(proto) {
|
|
1502
|
+
let m = new CreateGoalRequest();
|
|
1503
|
+
m = Object.assign(m, proto);
|
|
1504
|
+
if (proto.goal) {
|
|
1505
|
+
m.goal = Goal.fromProto(proto.goal);
|
|
1506
|
+
}
|
|
1507
|
+
return m;
|
|
1508
|
+
}
|
|
1509
|
+
constructor(kwargs) {
|
|
1510
|
+
if (!kwargs) {
|
|
1511
|
+
return;
|
|
1512
|
+
}
|
|
1513
|
+
Object.assign(this, kwargs);
|
|
1514
|
+
}
|
|
1515
|
+
toApiJson() {
|
|
1516
|
+
const toReturn = {};
|
|
1517
|
+
if (typeof this.goal !== 'undefined' && this.goal !== null) {
|
|
1518
|
+
toReturn['goal'] = 'toApiJson' in this.goal ? this.goal.toApiJson() : this.goal;
|
|
1519
|
+
}
|
|
1520
|
+
return toReturn;
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
class CreateGoalResponse {
|
|
1524
|
+
static fromProto(proto) {
|
|
1525
|
+
let m = new CreateGoalResponse();
|
|
1526
|
+
m = Object.assign(m, proto);
|
|
1527
|
+
return m;
|
|
1528
|
+
}
|
|
1529
|
+
constructor(kwargs) {
|
|
1530
|
+
if (!kwargs) {
|
|
1531
|
+
return;
|
|
1532
|
+
}
|
|
1533
|
+
Object.assign(this, kwargs);
|
|
1534
|
+
}
|
|
1535
|
+
toApiJson() {
|
|
1536
|
+
const toReturn = {};
|
|
1537
|
+
if (typeof this.id !== 'undefined') {
|
|
1538
|
+
toReturn['id'] = this.id;
|
|
1539
|
+
}
|
|
1540
|
+
return toReturn;
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1479
1543
|
class CreatePromptModuleRequest {
|
|
1480
1544
|
static fromProto(proto) {
|
|
1481
1545
|
let m = new CreatePromptModuleRequest();
|
|
@@ -1514,6 +1578,26 @@ class CreatePromptModuleRequest {
|
|
|
1514
1578
|
return toReturn;
|
|
1515
1579
|
}
|
|
1516
1580
|
}
|
|
1581
|
+
class CreatePromptModuleResponse {
|
|
1582
|
+
static fromProto(proto) {
|
|
1583
|
+
let m = new CreatePromptModuleResponse();
|
|
1584
|
+
m = Object.assign(m, proto);
|
|
1585
|
+
return m;
|
|
1586
|
+
}
|
|
1587
|
+
constructor(kwargs) {
|
|
1588
|
+
if (!kwargs) {
|
|
1589
|
+
return;
|
|
1590
|
+
}
|
|
1591
|
+
Object.assign(this, kwargs);
|
|
1592
|
+
}
|
|
1593
|
+
toApiJson() {
|
|
1594
|
+
const toReturn = {};
|
|
1595
|
+
if (typeof this.id !== 'undefined') {
|
|
1596
|
+
toReturn['id'] = this.id;
|
|
1597
|
+
}
|
|
1598
|
+
return toReturn;
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1517
1601
|
class CreatePromptModuleVersionRequest {
|
|
1518
1602
|
static fromProto(proto) {
|
|
1519
1603
|
let m = new CreatePromptModuleVersionRequest();
|
|
@@ -1780,13 +1864,16 @@ class DeployPromptRequest {
|
|
|
1780
1864
|
return toReturn;
|
|
1781
1865
|
}
|
|
1782
1866
|
}
|
|
1783
|
-
class
|
|
1867
|
+
class ListConnectionsRequestFilters {
|
|
1784
1868
|
static fromProto(proto) {
|
|
1785
|
-
let m = new
|
|
1869
|
+
let m = new ListConnectionsRequestFilters();
|
|
1786
1870
|
m = Object.assign(m, proto);
|
|
1787
1871
|
if (proto.namespace) {
|
|
1788
1872
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1789
1873
|
}
|
|
1874
|
+
if (proto.assistantType) {
|
|
1875
|
+
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
1876
|
+
}
|
|
1790
1877
|
return m;
|
|
1791
1878
|
}
|
|
1792
1879
|
constructor(kwargs) {
|
|
@@ -1800,19 +1887,19 @@ class ListPromptModuleRequestFilters {
|
|
|
1800
1887
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1801
1888
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1802
1889
|
}
|
|
1890
|
+
if (typeof this.assistantType !== 'undefined') {
|
|
1891
|
+
toReturn['assistantType'] = this.assistantType;
|
|
1892
|
+
}
|
|
1803
1893
|
return toReturn;
|
|
1804
1894
|
}
|
|
1805
1895
|
}
|
|
1806
|
-
class
|
|
1896
|
+
class ListPromptModuleRequestFilters {
|
|
1807
1897
|
static fromProto(proto) {
|
|
1808
|
-
let m = new
|
|
1898
|
+
let m = new ListPromptModuleRequestFilters();
|
|
1809
1899
|
m = Object.assign(m, proto);
|
|
1810
1900
|
if (proto.namespace) {
|
|
1811
1901
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1812
1902
|
}
|
|
1813
|
-
if (proto.assistantType) {
|
|
1814
|
-
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
1815
|
-
}
|
|
1816
1903
|
return m;
|
|
1817
1904
|
}
|
|
1818
1905
|
constructor(kwargs) {
|
|
@@ -1826,19 +1913,13 @@ class ListConnectionsRequestFilters {
|
|
|
1826
1913
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1827
1914
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1828
1915
|
}
|
|
1829
|
-
if (typeof this.assistantType !== 'undefined') {
|
|
1830
|
-
toReturn['assistantType'] = this.assistantType;
|
|
1831
|
-
}
|
|
1832
1916
|
return toReturn;
|
|
1833
1917
|
}
|
|
1834
1918
|
}
|
|
1835
|
-
class
|
|
1919
|
+
class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
1836
1920
|
static fromProto(proto) {
|
|
1837
|
-
let m = new
|
|
1921
|
+
let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
|
|
1838
1922
|
m = Object.assign(m, proto);
|
|
1839
|
-
if (proto.namespace) {
|
|
1840
|
-
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1841
|
-
}
|
|
1842
1923
|
if (proto.type) {
|
|
1843
1924
|
m.type = enumStringToValue(AssistantType, proto.type);
|
|
1844
1925
|
}
|
|
@@ -1852,27 +1933,21 @@ class ListAssistantRequestFilters {
|
|
|
1852
1933
|
}
|
|
1853
1934
|
toApiJson() {
|
|
1854
1935
|
const toReturn = {};
|
|
1855
|
-
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1856
|
-
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1857
|
-
}
|
|
1858
1936
|
if (typeof this.type !== 'undefined') {
|
|
1859
1937
|
toReturn['type'] = this.type;
|
|
1860
1938
|
}
|
|
1861
1939
|
return toReturn;
|
|
1862
1940
|
}
|
|
1863
1941
|
}
|
|
1864
|
-
class
|
|
1942
|
+
class ListAssistantRequestFilters {
|
|
1865
1943
|
static fromProto(proto) {
|
|
1866
|
-
let m = new
|
|
1944
|
+
let m = new ListAssistantRequestFilters();
|
|
1867
1945
|
m = Object.assign(m, proto);
|
|
1868
1946
|
if (proto.namespace) {
|
|
1869
1947
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1870
1948
|
}
|
|
1871
1949
|
if (proto.type) {
|
|
1872
|
-
m.type = enumStringToValue(
|
|
1873
|
-
}
|
|
1874
|
-
if (proto.supportedChannels) {
|
|
1875
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
1950
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
1876
1951
|
}
|
|
1877
1952
|
return m;
|
|
1878
1953
|
}
|
|
@@ -1890,18 +1965,15 @@ class ListGoalsRequestFilters {
|
|
|
1890
1965
|
if (typeof this.type !== 'undefined') {
|
|
1891
1966
|
toReturn['type'] = this.type;
|
|
1892
1967
|
}
|
|
1893
|
-
if (typeof this.supportedChannels !== 'undefined') {
|
|
1894
|
-
toReturn['supportedChannels'] = this.supportedChannels;
|
|
1895
|
-
}
|
|
1896
1968
|
return toReturn;
|
|
1897
1969
|
}
|
|
1898
1970
|
}
|
|
1899
|
-
class
|
|
1971
|
+
class ListFunctionRequestFilters {
|
|
1900
1972
|
static fromProto(proto) {
|
|
1901
|
-
let m = new
|
|
1973
|
+
let m = new ListFunctionRequestFilters();
|
|
1902
1974
|
m = Object.assign(m, proto);
|
|
1903
|
-
if (proto.
|
|
1904
|
-
m.
|
|
1975
|
+
if (proto.namespace) {
|
|
1976
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1905
1977
|
}
|
|
1906
1978
|
return m;
|
|
1907
1979
|
}
|
|
@@ -1913,19 +1985,25 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
1913
1985
|
}
|
|
1914
1986
|
toApiJson() {
|
|
1915
1987
|
const toReturn = {};
|
|
1916
|
-
if (typeof this.
|
|
1917
|
-
toReturn['
|
|
1988
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1989
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1918
1990
|
}
|
|
1919
1991
|
return toReturn;
|
|
1920
1992
|
}
|
|
1921
1993
|
}
|
|
1922
|
-
class
|
|
1994
|
+
class ListGoalsRequestFilters {
|
|
1923
1995
|
static fromProto(proto) {
|
|
1924
|
-
let m = new
|
|
1996
|
+
let m = new ListGoalsRequestFilters();
|
|
1925
1997
|
m = Object.assign(m, proto);
|
|
1926
1998
|
if (proto.namespace) {
|
|
1927
1999
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1928
2000
|
}
|
|
2001
|
+
if (proto.type) {
|
|
2002
|
+
m.type = enumStringToValue(GoalType, proto.type);
|
|
2003
|
+
}
|
|
2004
|
+
if (proto.supportedChannels) {
|
|
2005
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
2006
|
+
}
|
|
1929
2007
|
return m;
|
|
1930
2008
|
}
|
|
1931
2009
|
constructor(kwargs) {
|
|
@@ -1939,6 +2017,12 @@ class ListFunctionRequestFilters {
|
|
|
1939
2017
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1940
2018
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1941
2019
|
}
|
|
2020
|
+
if (typeof this.type !== 'undefined') {
|
|
2021
|
+
toReturn['type'] = this.type;
|
|
2022
|
+
}
|
|
2023
|
+
if (typeof this.supportedChannels !== 'undefined') {
|
|
2024
|
+
toReturn['supportedChannels'] = this.supportedChannels;
|
|
2025
|
+
}
|
|
1942
2026
|
return toReturn;
|
|
1943
2027
|
}
|
|
1944
2028
|
}
|
|
@@ -3364,9 +3448,9 @@ class ListPromptVersionsResponse {
|
|
|
3364
3448
|
return toReturn;
|
|
3365
3449
|
}
|
|
3366
3450
|
}
|
|
3367
|
-
class
|
|
3451
|
+
class CreatePromptModuleVersionRequestOptions {
|
|
3368
3452
|
static fromProto(proto) {
|
|
3369
|
-
let m = new
|
|
3453
|
+
let m = new CreatePromptModuleVersionRequestOptions();
|
|
3370
3454
|
m = Object.assign(m, proto);
|
|
3371
3455
|
return m;
|
|
3372
3456
|
}
|
|
@@ -3378,15 +3462,15 @@ class UpsertAssistantRequestOptions {
|
|
|
3378
3462
|
}
|
|
3379
3463
|
toApiJson() {
|
|
3380
3464
|
const toReturn = {};
|
|
3381
|
-
if (typeof this.
|
|
3382
|
-
toReturn['
|
|
3465
|
+
if (typeof this.shouldDeploy !== 'undefined') {
|
|
3466
|
+
toReturn['shouldDeploy'] = this.shouldDeploy;
|
|
3383
3467
|
}
|
|
3384
3468
|
return toReturn;
|
|
3385
3469
|
}
|
|
3386
3470
|
}
|
|
3387
|
-
class
|
|
3471
|
+
class UpsertAssistantRequestOptions {
|
|
3388
3472
|
static fromProto(proto) {
|
|
3389
|
-
let m = new
|
|
3473
|
+
let m = new UpsertAssistantRequestOptions();
|
|
3390
3474
|
m = Object.assign(m, proto);
|
|
3391
3475
|
return m;
|
|
3392
3476
|
}
|
|
@@ -3398,8 +3482,8 @@ class CreatePromptModuleVersionRequestOptions {
|
|
|
3398
3482
|
}
|
|
3399
3483
|
toApiJson() {
|
|
3400
3484
|
const toReturn = {};
|
|
3401
|
-
if (typeof this.
|
|
3402
|
-
toReturn['
|
|
3485
|
+
if (typeof this.applyDefaults !== 'undefined') {
|
|
3486
|
+
toReturn['applyDefaults'] = this.applyDefaults;
|
|
3403
3487
|
}
|
|
3404
3488
|
return toReturn;
|
|
3405
3489
|
}
|
|
@@ -3462,6 +3546,29 @@ class SetAssistantConnectionsRequest {
|
|
|
3462
3546
|
return toReturn;
|
|
3463
3547
|
}
|
|
3464
3548
|
}
|
|
3549
|
+
class UpdateGoalRequest {
|
|
3550
|
+
static fromProto(proto) {
|
|
3551
|
+
let m = new UpdateGoalRequest();
|
|
3552
|
+
m = Object.assign(m, proto);
|
|
3553
|
+
if (proto.goal) {
|
|
3554
|
+
m.goal = Goal.fromProto(proto.goal);
|
|
3555
|
+
}
|
|
3556
|
+
return m;
|
|
3557
|
+
}
|
|
3558
|
+
constructor(kwargs) {
|
|
3559
|
+
if (!kwargs) {
|
|
3560
|
+
return;
|
|
3561
|
+
}
|
|
3562
|
+
Object.assign(this, kwargs);
|
|
3563
|
+
}
|
|
3564
|
+
toApiJson() {
|
|
3565
|
+
const toReturn = {};
|
|
3566
|
+
if (typeof this.goal !== 'undefined' && this.goal !== null) {
|
|
3567
|
+
toReturn['goal'] = 'toApiJson' in this.goal ? this.goal.toApiJson() : this.goal;
|
|
3568
|
+
}
|
|
3569
|
+
return toReturn;
|
|
3570
|
+
}
|
|
3571
|
+
}
|
|
3465
3572
|
class UpdatePromptModuleRequest {
|
|
3466
3573
|
static fromProto(proto) {
|
|
3467
3574
|
let m = new UpdatePromptModuleRequest();
|
|
@@ -3841,6 +3948,15 @@ class GoalApiService {
|
|
|
3841
3948
|
const request = (r.toApiJson) ? r : new UpsertGoalRequest(r);
|
|
3842
3949
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/Upsert", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
3843
3950
|
}
|
|
3951
|
+
create(r) {
|
|
3952
|
+
const request = (r.toApiJson) ? r : new CreateGoalRequest(r);
|
|
3953
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/Create", request.toApiJson(), this.apiOptions())
|
|
3954
|
+
.pipe(map(resp => CreateGoalResponse.fromProto(resp)));
|
|
3955
|
+
}
|
|
3956
|
+
update(r) {
|
|
3957
|
+
const request = (r.toApiJson) ? r : new UpdateGoalRequest(r);
|
|
3958
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/Update", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
3959
|
+
}
|
|
3844
3960
|
get(r) {
|
|
3845
3961
|
const request = (r.toApiJson) ? r : new GetGoalRequest(r);
|
|
3846
3962
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/Get", request.toApiJson(), this.apiOptions())
|
|
@@ -3895,7 +4011,8 @@ class PromptModuleApiService {
|
|
|
3895
4011
|
}
|
|
3896
4012
|
create(r) {
|
|
3897
4013
|
const request = (r.toApiJson) ? r : new CreatePromptModuleRequest(r);
|
|
3898
|
-
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/Create", request.toApiJson(),
|
|
4014
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/Create", request.toApiJson(), this.apiOptions())
|
|
4015
|
+
.pipe(map(resp => CreatePromptModuleResponse.fromProto(resp)));
|
|
3899
4016
|
}
|
|
3900
4017
|
createVersion(r) {
|
|
3901
4018
|
const request = (r.toApiJson) ? r : new CreatePromptModuleVersionRequest(r);
|
|
@@ -4041,5 +4158,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4041
4158
|
* Generated bundle index. Do not edit.
|
|
4042
4159
|
*/
|
|
4043
4160
|
|
|
4044
|
-
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, CreatePromptModuleRequest, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, Function, FunctionApiService, FunctionHeader, FunctionKey, FunctionParameter, 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, NamespaceAccountGroupsForGroupNamespace, NamespaceAccountGroupsForPartnerNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, VendorModel };
|
|
4161
|
+
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, Function, FunctionApiService, 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, NamespaceAccountGroupsForGroupNamespace, NamespaceAccountGroupsForPartnerNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, VendorModel };
|
|
4045
4162
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|