@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
|
@@ -27,6 +27,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
27
27
|
args: [{ providedIn: 'root' }]
|
|
28
28
|
}] });
|
|
29
29
|
|
|
30
|
+
// *********************************
|
|
31
|
+
// Code generated by sdkgen
|
|
32
|
+
// DO NOT EDIT!.
|
|
33
|
+
//
|
|
34
|
+
// Enums.
|
|
35
|
+
// *********************************
|
|
36
|
+
var FunctionParameterParameterLocation;
|
|
37
|
+
(function (FunctionParameterParameterLocation) {
|
|
38
|
+
FunctionParameterParameterLocation[FunctionParameterParameterLocation["LOCATION_BODY"] = 0] = "LOCATION_BODY";
|
|
39
|
+
FunctionParameterParameterLocation[FunctionParameterParameterLocation["LOCATION_QUERY_PARAM"] = 1] = "LOCATION_QUERY_PARAM";
|
|
40
|
+
})(FunctionParameterParameterLocation || (FunctionParameterParameterLocation = {}));
|
|
41
|
+
|
|
30
42
|
// *********************************
|
|
31
43
|
// Code generated by sdkgen
|
|
32
44
|
// DO NOT EDIT!.
|
|
@@ -95,6 +107,9 @@ var ChatChannel;
|
|
|
95
107
|
ChatChannel[ChatChannel["CHAT_CHANNEL_WEB"] = 2] = "CHAT_CHANNEL_WEB";
|
|
96
108
|
ChatChannel[ChatChannel["CHAT_CHANNEL_SMS"] = 3] = "CHAT_CHANNEL_SMS";
|
|
97
109
|
ChatChannel[ChatChannel["CHAT_CHANNEL_WHATSAPP"] = 4] = "CHAT_CHANNEL_WHATSAPP";
|
|
110
|
+
ChatChannel[ChatChannel["CHAT_CHANNEL_FACEBOOK"] = 5] = "CHAT_CHANNEL_FACEBOOK";
|
|
111
|
+
ChatChannel[ChatChannel["CHAT_CHANNEL_INSTAGRAM"] = 7] = "CHAT_CHANNEL_INSTAGRAM";
|
|
112
|
+
ChatChannel[ChatChannel["CHAT_CHANNEL_AUTOMATION"] = 8] = "CHAT_CHANNEL_AUTOMATION";
|
|
98
113
|
})(ChatChannel || (ChatChannel = {}));
|
|
99
114
|
var ChatMessageRole;
|
|
100
115
|
(function (ChatMessageRole) {
|
|
@@ -408,6 +423,9 @@ class FunctionParameter {
|
|
|
408
423
|
if (proto.items) {
|
|
409
424
|
m.items = FunctionParameter.fromProto(proto.items);
|
|
410
425
|
}
|
|
426
|
+
if (proto.location) {
|
|
427
|
+
m.location = enumStringToValue$9(FunctionParameterParameterLocation, proto.location);
|
|
428
|
+
}
|
|
411
429
|
return m;
|
|
412
430
|
}
|
|
413
431
|
constructor(kwargs) {
|
|
@@ -436,6 +454,9 @@ class FunctionParameter {
|
|
|
436
454
|
if (typeof this.value !== 'undefined') {
|
|
437
455
|
toReturn['value'] = this.value;
|
|
438
456
|
}
|
|
457
|
+
if (typeof this.location !== 'undefined') {
|
|
458
|
+
toReturn['location'] = this.location;
|
|
459
|
+
}
|
|
439
460
|
return toReturn;
|
|
440
461
|
}
|
|
441
462
|
}
|
|
@@ -1477,6 +1498,49 @@ class SetAssistantConnectionsRequestConnectionState {
|
|
|
1477
1498
|
return toReturn;
|
|
1478
1499
|
}
|
|
1479
1500
|
}
|
|
1501
|
+
class CreateGoalRequest {
|
|
1502
|
+
static fromProto(proto) {
|
|
1503
|
+
let m = new CreateGoalRequest();
|
|
1504
|
+
m = Object.assign(m, proto);
|
|
1505
|
+
if (proto.goal) {
|
|
1506
|
+
m.goal = Goal.fromProto(proto.goal);
|
|
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.goal !== 'undefined' && this.goal !== null) {
|
|
1519
|
+
toReturn['goal'] = 'toApiJson' in this.goal ? this.goal.toApiJson() : this.goal;
|
|
1520
|
+
}
|
|
1521
|
+
return toReturn;
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
class CreateGoalResponse {
|
|
1525
|
+
static fromProto(proto) {
|
|
1526
|
+
let m = new CreateGoalResponse();
|
|
1527
|
+
m = Object.assign(m, proto);
|
|
1528
|
+
return m;
|
|
1529
|
+
}
|
|
1530
|
+
constructor(kwargs) {
|
|
1531
|
+
if (!kwargs) {
|
|
1532
|
+
return;
|
|
1533
|
+
}
|
|
1534
|
+
Object.assign(this, kwargs);
|
|
1535
|
+
}
|
|
1536
|
+
toApiJson() {
|
|
1537
|
+
const toReturn = {};
|
|
1538
|
+
if (typeof this.id !== 'undefined') {
|
|
1539
|
+
toReturn['id'] = this.id;
|
|
1540
|
+
}
|
|
1541
|
+
return toReturn;
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1480
1544
|
class CreatePromptModuleRequest {
|
|
1481
1545
|
static fromProto(proto) {
|
|
1482
1546
|
let m = new CreatePromptModuleRequest();
|
|
@@ -1515,6 +1579,26 @@ class CreatePromptModuleRequest {
|
|
|
1515
1579
|
return toReturn;
|
|
1516
1580
|
}
|
|
1517
1581
|
}
|
|
1582
|
+
class CreatePromptModuleResponse {
|
|
1583
|
+
static fromProto(proto) {
|
|
1584
|
+
let m = new CreatePromptModuleResponse();
|
|
1585
|
+
m = Object.assign(m, proto);
|
|
1586
|
+
return m;
|
|
1587
|
+
}
|
|
1588
|
+
constructor(kwargs) {
|
|
1589
|
+
if (!kwargs) {
|
|
1590
|
+
return;
|
|
1591
|
+
}
|
|
1592
|
+
Object.assign(this, kwargs);
|
|
1593
|
+
}
|
|
1594
|
+
toApiJson() {
|
|
1595
|
+
const toReturn = {};
|
|
1596
|
+
if (typeof this.id !== 'undefined') {
|
|
1597
|
+
toReturn['id'] = this.id;
|
|
1598
|
+
}
|
|
1599
|
+
return toReturn;
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1518
1602
|
class CreatePromptModuleVersionRequest {
|
|
1519
1603
|
static fromProto(proto) {
|
|
1520
1604
|
let m = new CreatePromptModuleVersionRequest();
|
|
@@ -1781,13 +1865,16 @@ class DeployPromptRequest {
|
|
|
1781
1865
|
return toReturn;
|
|
1782
1866
|
}
|
|
1783
1867
|
}
|
|
1784
|
-
class
|
|
1868
|
+
class ListConnectionsRequestFilters {
|
|
1785
1869
|
static fromProto(proto) {
|
|
1786
|
-
let m = new
|
|
1870
|
+
let m = new ListConnectionsRequestFilters();
|
|
1787
1871
|
m = Object.assign(m, proto);
|
|
1788
1872
|
if (proto.namespace) {
|
|
1789
1873
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1790
1874
|
}
|
|
1875
|
+
if (proto.assistantType) {
|
|
1876
|
+
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
1877
|
+
}
|
|
1791
1878
|
return m;
|
|
1792
1879
|
}
|
|
1793
1880
|
constructor(kwargs) {
|
|
@@ -1801,19 +1888,19 @@ class ListPromptModuleRequestFilters {
|
|
|
1801
1888
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1802
1889
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1803
1890
|
}
|
|
1891
|
+
if (typeof this.assistantType !== 'undefined') {
|
|
1892
|
+
toReturn['assistantType'] = this.assistantType;
|
|
1893
|
+
}
|
|
1804
1894
|
return toReturn;
|
|
1805
1895
|
}
|
|
1806
1896
|
}
|
|
1807
|
-
class
|
|
1897
|
+
class ListPromptModuleRequestFilters {
|
|
1808
1898
|
static fromProto(proto) {
|
|
1809
|
-
let m = new
|
|
1899
|
+
let m = new ListPromptModuleRequestFilters();
|
|
1810
1900
|
m = Object.assign(m, proto);
|
|
1811
1901
|
if (proto.namespace) {
|
|
1812
1902
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1813
1903
|
}
|
|
1814
|
-
if (proto.assistantType) {
|
|
1815
|
-
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
1816
|
-
}
|
|
1817
1904
|
return m;
|
|
1818
1905
|
}
|
|
1819
1906
|
constructor(kwargs) {
|
|
@@ -1827,19 +1914,13 @@ class ListConnectionsRequestFilters {
|
|
|
1827
1914
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1828
1915
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1829
1916
|
}
|
|
1830
|
-
if (typeof this.assistantType !== 'undefined') {
|
|
1831
|
-
toReturn['assistantType'] = this.assistantType;
|
|
1832
|
-
}
|
|
1833
1917
|
return toReturn;
|
|
1834
1918
|
}
|
|
1835
1919
|
}
|
|
1836
|
-
class
|
|
1920
|
+
class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
1837
1921
|
static fromProto(proto) {
|
|
1838
|
-
let m = new
|
|
1922
|
+
let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
|
|
1839
1923
|
m = Object.assign(m, proto);
|
|
1840
|
-
if (proto.namespace) {
|
|
1841
|
-
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1842
|
-
}
|
|
1843
1924
|
if (proto.type) {
|
|
1844
1925
|
m.type = enumStringToValue(AssistantType, proto.type);
|
|
1845
1926
|
}
|
|
@@ -1853,27 +1934,21 @@ class ListAssistantRequestFilters {
|
|
|
1853
1934
|
}
|
|
1854
1935
|
toApiJson() {
|
|
1855
1936
|
const toReturn = {};
|
|
1856
|
-
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1857
|
-
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1858
|
-
}
|
|
1859
1937
|
if (typeof this.type !== 'undefined') {
|
|
1860
1938
|
toReturn['type'] = this.type;
|
|
1861
1939
|
}
|
|
1862
1940
|
return toReturn;
|
|
1863
1941
|
}
|
|
1864
1942
|
}
|
|
1865
|
-
class
|
|
1943
|
+
class ListAssistantRequestFilters {
|
|
1866
1944
|
static fromProto(proto) {
|
|
1867
|
-
let m = new
|
|
1945
|
+
let m = new ListAssistantRequestFilters();
|
|
1868
1946
|
m = Object.assign(m, proto);
|
|
1869
1947
|
if (proto.namespace) {
|
|
1870
1948
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1871
1949
|
}
|
|
1872
1950
|
if (proto.type) {
|
|
1873
|
-
m.type = enumStringToValue(
|
|
1874
|
-
}
|
|
1875
|
-
if (proto.supportedChannels) {
|
|
1876
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
1951
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
1877
1952
|
}
|
|
1878
1953
|
return m;
|
|
1879
1954
|
}
|
|
@@ -1891,18 +1966,15 @@ class ListGoalsRequestFilters {
|
|
|
1891
1966
|
if (typeof this.type !== 'undefined') {
|
|
1892
1967
|
toReturn['type'] = this.type;
|
|
1893
1968
|
}
|
|
1894
|
-
if (typeof this.supportedChannels !== 'undefined') {
|
|
1895
|
-
toReturn['supportedChannels'] = this.supportedChannels;
|
|
1896
|
-
}
|
|
1897
1969
|
return toReturn;
|
|
1898
1970
|
}
|
|
1899
1971
|
}
|
|
1900
|
-
class
|
|
1972
|
+
class ListFunctionRequestFilters {
|
|
1901
1973
|
static fromProto(proto) {
|
|
1902
|
-
let m = new
|
|
1974
|
+
let m = new ListFunctionRequestFilters();
|
|
1903
1975
|
m = Object.assign(m, proto);
|
|
1904
|
-
if (proto.
|
|
1905
|
-
m.
|
|
1976
|
+
if (proto.namespace) {
|
|
1977
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1906
1978
|
}
|
|
1907
1979
|
return m;
|
|
1908
1980
|
}
|
|
@@ -1914,19 +1986,25 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
1914
1986
|
}
|
|
1915
1987
|
toApiJson() {
|
|
1916
1988
|
const toReturn = {};
|
|
1917
|
-
if (typeof this.
|
|
1918
|
-
toReturn['
|
|
1989
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1990
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1919
1991
|
}
|
|
1920
1992
|
return toReturn;
|
|
1921
1993
|
}
|
|
1922
1994
|
}
|
|
1923
|
-
class
|
|
1995
|
+
class ListGoalsRequestFilters {
|
|
1924
1996
|
static fromProto(proto) {
|
|
1925
|
-
let m = new
|
|
1997
|
+
let m = new ListGoalsRequestFilters();
|
|
1926
1998
|
m = Object.assign(m, proto);
|
|
1927
1999
|
if (proto.namespace) {
|
|
1928
2000
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1929
2001
|
}
|
|
2002
|
+
if (proto.type) {
|
|
2003
|
+
m.type = enumStringToValue(GoalType, proto.type);
|
|
2004
|
+
}
|
|
2005
|
+
if (proto.supportedChannels) {
|
|
2006
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
2007
|
+
}
|
|
1930
2008
|
return m;
|
|
1931
2009
|
}
|
|
1932
2010
|
constructor(kwargs) {
|
|
@@ -1940,6 +2018,12 @@ class ListFunctionRequestFilters {
|
|
|
1940
2018
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1941
2019
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1942
2020
|
}
|
|
2021
|
+
if (typeof this.type !== 'undefined') {
|
|
2022
|
+
toReturn['type'] = this.type;
|
|
2023
|
+
}
|
|
2024
|
+
if (typeof this.supportedChannels !== 'undefined') {
|
|
2025
|
+
toReturn['supportedChannels'] = this.supportedChannels;
|
|
2026
|
+
}
|
|
1943
2027
|
return toReturn;
|
|
1944
2028
|
}
|
|
1945
2029
|
}
|
|
@@ -3365,9 +3449,9 @@ class ListPromptVersionsResponse {
|
|
|
3365
3449
|
return toReturn;
|
|
3366
3450
|
}
|
|
3367
3451
|
}
|
|
3368
|
-
class
|
|
3452
|
+
class CreatePromptModuleVersionRequestOptions {
|
|
3369
3453
|
static fromProto(proto) {
|
|
3370
|
-
let m = new
|
|
3454
|
+
let m = new CreatePromptModuleVersionRequestOptions();
|
|
3371
3455
|
m = Object.assign(m, proto);
|
|
3372
3456
|
return m;
|
|
3373
3457
|
}
|
|
@@ -3379,15 +3463,15 @@ class UpsertAssistantRequestOptions {
|
|
|
3379
3463
|
}
|
|
3380
3464
|
toApiJson() {
|
|
3381
3465
|
const toReturn = {};
|
|
3382
|
-
if (typeof this.
|
|
3383
|
-
toReturn['
|
|
3466
|
+
if (typeof this.shouldDeploy !== 'undefined') {
|
|
3467
|
+
toReturn['shouldDeploy'] = this.shouldDeploy;
|
|
3384
3468
|
}
|
|
3385
3469
|
return toReturn;
|
|
3386
3470
|
}
|
|
3387
3471
|
}
|
|
3388
|
-
class
|
|
3472
|
+
class UpsertAssistantRequestOptions {
|
|
3389
3473
|
static fromProto(proto) {
|
|
3390
|
-
let m = new
|
|
3474
|
+
let m = new UpsertAssistantRequestOptions();
|
|
3391
3475
|
m = Object.assign(m, proto);
|
|
3392
3476
|
return m;
|
|
3393
3477
|
}
|
|
@@ -3399,8 +3483,8 @@ class CreatePromptModuleVersionRequestOptions {
|
|
|
3399
3483
|
}
|
|
3400
3484
|
toApiJson() {
|
|
3401
3485
|
const toReturn = {};
|
|
3402
|
-
if (typeof this.
|
|
3403
|
-
toReturn['
|
|
3486
|
+
if (typeof this.applyDefaults !== 'undefined') {
|
|
3487
|
+
toReturn['applyDefaults'] = this.applyDefaults;
|
|
3404
3488
|
}
|
|
3405
3489
|
return toReturn;
|
|
3406
3490
|
}
|
|
@@ -3463,6 +3547,29 @@ class SetAssistantConnectionsRequest {
|
|
|
3463
3547
|
return toReturn;
|
|
3464
3548
|
}
|
|
3465
3549
|
}
|
|
3550
|
+
class UpdateGoalRequest {
|
|
3551
|
+
static fromProto(proto) {
|
|
3552
|
+
let m = new UpdateGoalRequest();
|
|
3553
|
+
m = Object.assign(m, proto);
|
|
3554
|
+
if (proto.goal) {
|
|
3555
|
+
m.goal = Goal.fromProto(proto.goal);
|
|
3556
|
+
}
|
|
3557
|
+
return m;
|
|
3558
|
+
}
|
|
3559
|
+
constructor(kwargs) {
|
|
3560
|
+
if (!kwargs) {
|
|
3561
|
+
return;
|
|
3562
|
+
}
|
|
3563
|
+
Object.assign(this, kwargs);
|
|
3564
|
+
}
|
|
3565
|
+
toApiJson() {
|
|
3566
|
+
const toReturn = {};
|
|
3567
|
+
if (typeof this.goal !== 'undefined' && this.goal !== null) {
|
|
3568
|
+
toReturn['goal'] = 'toApiJson' in this.goal ? this.goal.toApiJson() : this.goal;
|
|
3569
|
+
}
|
|
3570
|
+
return toReturn;
|
|
3571
|
+
}
|
|
3572
|
+
}
|
|
3466
3573
|
class UpdatePromptModuleRequest {
|
|
3467
3574
|
static fromProto(proto) {
|
|
3468
3575
|
let m = new UpdatePromptModuleRequest();
|
|
@@ -3842,6 +3949,15 @@ class GoalApiService {
|
|
|
3842
3949
|
const request = (r.toApiJson) ? r : new UpsertGoalRequest(r);
|
|
3843
3950
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/Upsert", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
3844
3951
|
}
|
|
3952
|
+
create(r) {
|
|
3953
|
+
const request = (r.toApiJson) ? r : new CreateGoalRequest(r);
|
|
3954
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/Create", request.toApiJson(), this.apiOptions())
|
|
3955
|
+
.pipe(map(resp => CreateGoalResponse.fromProto(resp)));
|
|
3956
|
+
}
|
|
3957
|
+
update(r) {
|
|
3958
|
+
const request = (r.toApiJson) ? r : new UpdateGoalRequest(r);
|
|
3959
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/Update", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
3960
|
+
}
|
|
3845
3961
|
get(r) {
|
|
3846
3962
|
const request = (r.toApiJson) ? r : new GetGoalRequest(r);
|
|
3847
3963
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/Get", request.toApiJson(), this.apiOptions())
|
|
@@ -3896,7 +4012,8 @@ class PromptModuleApiService {
|
|
|
3896
4012
|
}
|
|
3897
4013
|
create(r) {
|
|
3898
4014
|
const request = (r.toApiJson) ? r : new CreatePromptModuleRequest(r);
|
|
3899
|
-
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/Create", request.toApiJson(),
|
|
4015
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/Create", request.toApiJson(), this.apiOptions())
|
|
4016
|
+
.pipe(map(resp => CreatePromptModuleResponse.fromProto(resp)));
|
|
3900
4017
|
}
|
|
3901
4018
|
createVersion(r) {
|
|
3902
4019
|
const request = (r.toApiJson) ? r : new CreatePromptModuleVersionRequest(r);
|
|
@@ -4042,5 +4159,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4042
4159
|
* Generated bundle index. Do not edit.
|
|
4043
4160
|
*/
|
|
4044
4161
|
|
|
4045
|
-
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 };
|
|
4162
|
+
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 };
|
|
4046
4163
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|