@vendasta/ai-assistants 0.21.0 → 0.23.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 +3 -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 +161 -45
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +161 -45
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/enums/answer.enum.d.ts +3 -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,8 @@ 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";
|
|
98
112
|
})(ChatChannel || (ChatChannel = {}));
|
|
99
113
|
var ChatMessageRole;
|
|
100
114
|
(function (ChatMessageRole) {
|
|
@@ -408,6 +422,9 @@ class FunctionParameter {
|
|
|
408
422
|
if (proto.items) {
|
|
409
423
|
m.items = FunctionParameter.fromProto(proto.items);
|
|
410
424
|
}
|
|
425
|
+
if (proto.location) {
|
|
426
|
+
m.location = enumStringToValue$9(FunctionParameterParameterLocation, proto.location);
|
|
427
|
+
}
|
|
411
428
|
return m;
|
|
412
429
|
}
|
|
413
430
|
constructor(kwargs) {
|
|
@@ -436,6 +453,9 @@ class FunctionParameter {
|
|
|
436
453
|
if (typeof this.value !== 'undefined') {
|
|
437
454
|
toReturn['value'] = this.value;
|
|
438
455
|
}
|
|
456
|
+
if (typeof this.location !== 'undefined') {
|
|
457
|
+
toReturn['location'] = this.location;
|
|
458
|
+
}
|
|
439
459
|
return toReturn;
|
|
440
460
|
}
|
|
441
461
|
}
|
|
@@ -1477,6 +1497,49 @@ class SetAssistantConnectionsRequestConnectionState {
|
|
|
1477
1497
|
return toReturn;
|
|
1478
1498
|
}
|
|
1479
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
|
+
}
|
|
1480
1543
|
class CreatePromptModuleRequest {
|
|
1481
1544
|
static fromProto(proto) {
|
|
1482
1545
|
let m = new CreatePromptModuleRequest();
|
|
@@ -1515,6 +1578,26 @@ class CreatePromptModuleRequest {
|
|
|
1515
1578
|
return toReturn;
|
|
1516
1579
|
}
|
|
1517
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
|
+
}
|
|
1518
1601
|
class CreatePromptModuleVersionRequest {
|
|
1519
1602
|
static fromProto(proto) {
|
|
1520
1603
|
let m = new CreatePromptModuleVersionRequest();
|
|
@@ -1781,13 +1864,16 @@ class DeployPromptRequest {
|
|
|
1781
1864
|
return toReturn;
|
|
1782
1865
|
}
|
|
1783
1866
|
}
|
|
1784
|
-
class
|
|
1867
|
+
class ListConnectionsRequestFilters {
|
|
1785
1868
|
static fromProto(proto) {
|
|
1786
|
-
let m = new
|
|
1869
|
+
let m = new ListConnectionsRequestFilters();
|
|
1787
1870
|
m = Object.assign(m, proto);
|
|
1788
1871
|
if (proto.namespace) {
|
|
1789
1872
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1790
1873
|
}
|
|
1874
|
+
if (proto.assistantType) {
|
|
1875
|
+
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
1876
|
+
}
|
|
1791
1877
|
return m;
|
|
1792
1878
|
}
|
|
1793
1879
|
constructor(kwargs) {
|
|
@@ -1801,19 +1887,19 @@ class ListPromptModuleRequestFilters {
|
|
|
1801
1887
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1802
1888
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1803
1889
|
}
|
|
1890
|
+
if (typeof this.assistantType !== 'undefined') {
|
|
1891
|
+
toReturn['assistantType'] = this.assistantType;
|
|
1892
|
+
}
|
|
1804
1893
|
return toReturn;
|
|
1805
1894
|
}
|
|
1806
1895
|
}
|
|
1807
|
-
class
|
|
1896
|
+
class ListPromptModuleRequestFilters {
|
|
1808
1897
|
static fromProto(proto) {
|
|
1809
|
-
let m = new
|
|
1898
|
+
let m = new ListPromptModuleRequestFilters();
|
|
1810
1899
|
m = Object.assign(m, proto);
|
|
1811
1900
|
if (proto.namespace) {
|
|
1812
1901
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1813
1902
|
}
|
|
1814
|
-
if (proto.assistantType) {
|
|
1815
|
-
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
1816
|
-
}
|
|
1817
1903
|
return m;
|
|
1818
1904
|
}
|
|
1819
1905
|
constructor(kwargs) {
|
|
@@ -1827,19 +1913,13 @@ class ListConnectionsRequestFilters {
|
|
|
1827
1913
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1828
1914
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1829
1915
|
}
|
|
1830
|
-
if (typeof this.assistantType !== 'undefined') {
|
|
1831
|
-
toReturn['assistantType'] = this.assistantType;
|
|
1832
|
-
}
|
|
1833
1916
|
return toReturn;
|
|
1834
1917
|
}
|
|
1835
1918
|
}
|
|
1836
|
-
class
|
|
1919
|
+
class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
1837
1920
|
static fromProto(proto) {
|
|
1838
|
-
let m = new
|
|
1921
|
+
let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
|
|
1839
1922
|
m = Object.assign(m, proto);
|
|
1840
|
-
if (proto.namespace) {
|
|
1841
|
-
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1842
|
-
}
|
|
1843
1923
|
if (proto.type) {
|
|
1844
1924
|
m.type = enumStringToValue(AssistantType, proto.type);
|
|
1845
1925
|
}
|
|
@@ -1853,27 +1933,21 @@ class ListAssistantRequestFilters {
|
|
|
1853
1933
|
}
|
|
1854
1934
|
toApiJson() {
|
|
1855
1935
|
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
1936
|
if (typeof this.type !== 'undefined') {
|
|
1860
1937
|
toReturn['type'] = this.type;
|
|
1861
1938
|
}
|
|
1862
1939
|
return toReturn;
|
|
1863
1940
|
}
|
|
1864
1941
|
}
|
|
1865
|
-
class
|
|
1942
|
+
class ListAssistantRequestFilters {
|
|
1866
1943
|
static fromProto(proto) {
|
|
1867
|
-
let m = new
|
|
1944
|
+
let m = new ListAssistantRequestFilters();
|
|
1868
1945
|
m = Object.assign(m, proto);
|
|
1869
1946
|
if (proto.namespace) {
|
|
1870
1947
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1871
1948
|
}
|
|
1872
1949
|
if (proto.type) {
|
|
1873
|
-
m.type = enumStringToValue(
|
|
1874
|
-
}
|
|
1875
|
-
if (proto.supportedChannels) {
|
|
1876
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
1950
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
1877
1951
|
}
|
|
1878
1952
|
return m;
|
|
1879
1953
|
}
|
|
@@ -1891,18 +1965,15 @@ class ListGoalsRequestFilters {
|
|
|
1891
1965
|
if (typeof this.type !== 'undefined') {
|
|
1892
1966
|
toReturn['type'] = this.type;
|
|
1893
1967
|
}
|
|
1894
|
-
if (typeof this.supportedChannels !== 'undefined') {
|
|
1895
|
-
toReturn['supportedChannels'] = this.supportedChannels;
|
|
1896
|
-
}
|
|
1897
1968
|
return toReturn;
|
|
1898
1969
|
}
|
|
1899
1970
|
}
|
|
1900
|
-
class
|
|
1971
|
+
class ListFunctionRequestFilters {
|
|
1901
1972
|
static fromProto(proto) {
|
|
1902
|
-
let m = new
|
|
1973
|
+
let m = new ListFunctionRequestFilters();
|
|
1903
1974
|
m = Object.assign(m, proto);
|
|
1904
|
-
if (proto.
|
|
1905
|
-
m.
|
|
1975
|
+
if (proto.namespace) {
|
|
1976
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1906
1977
|
}
|
|
1907
1978
|
return m;
|
|
1908
1979
|
}
|
|
@@ -1914,19 +1985,25 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
1914
1985
|
}
|
|
1915
1986
|
toApiJson() {
|
|
1916
1987
|
const toReturn = {};
|
|
1917
|
-
if (typeof this.
|
|
1918
|
-
toReturn['
|
|
1988
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1989
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1919
1990
|
}
|
|
1920
1991
|
return toReturn;
|
|
1921
1992
|
}
|
|
1922
1993
|
}
|
|
1923
|
-
class
|
|
1994
|
+
class ListGoalsRequestFilters {
|
|
1924
1995
|
static fromProto(proto) {
|
|
1925
|
-
let m = new
|
|
1996
|
+
let m = new ListGoalsRequestFilters();
|
|
1926
1997
|
m = Object.assign(m, proto);
|
|
1927
1998
|
if (proto.namespace) {
|
|
1928
1999
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1929
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
|
+
}
|
|
1930
2007
|
return m;
|
|
1931
2008
|
}
|
|
1932
2009
|
constructor(kwargs) {
|
|
@@ -1940,6 +2017,12 @@ class ListFunctionRequestFilters {
|
|
|
1940
2017
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1941
2018
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1942
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
|
+
}
|
|
1943
2026
|
return toReturn;
|
|
1944
2027
|
}
|
|
1945
2028
|
}
|
|
@@ -3365,9 +3448,9 @@ class ListPromptVersionsResponse {
|
|
|
3365
3448
|
return toReturn;
|
|
3366
3449
|
}
|
|
3367
3450
|
}
|
|
3368
|
-
class
|
|
3451
|
+
class CreatePromptModuleVersionRequestOptions {
|
|
3369
3452
|
static fromProto(proto) {
|
|
3370
|
-
let m = new
|
|
3453
|
+
let m = new CreatePromptModuleVersionRequestOptions();
|
|
3371
3454
|
m = Object.assign(m, proto);
|
|
3372
3455
|
return m;
|
|
3373
3456
|
}
|
|
@@ -3379,15 +3462,15 @@ class UpsertAssistantRequestOptions {
|
|
|
3379
3462
|
}
|
|
3380
3463
|
toApiJson() {
|
|
3381
3464
|
const toReturn = {};
|
|
3382
|
-
if (typeof this.
|
|
3383
|
-
toReturn['
|
|
3465
|
+
if (typeof this.shouldDeploy !== 'undefined') {
|
|
3466
|
+
toReturn['shouldDeploy'] = this.shouldDeploy;
|
|
3384
3467
|
}
|
|
3385
3468
|
return toReturn;
|
|
3386
3469
|
}
|
|
3387
3470
|
}
|
|
3388
|
-
class
|
|
3471
|
+
class UpsertAssistantRequestOptions {
|
|
3389
3472
|
static fromProto(proto) {
|
|
3390
|
-
let m = new
|
|
3473
|
+
let m = new UpsertAssistantRequestOptions();
|
|
3391
3474
|
m = Object.assign(m, proto);
|
|
3392
3475
|
return m;
|
|
3393
3476
|
}
|
|
@@ -3399,8 +3482,8 @@ class CreatePromptModuleVersionRequestOptions {
|
|
|
3399
3482
|
}
|
|
3400
3483
|
toApiJson() {
|
|
3401
3484
|
const toReturn = {};
|
|
3402
|
-
if (typeof this.
|
|
3403
|
-
toReturn['
|
|
3485
|
+
if (typeof this.applyDefaults !== 'undefined') {
|
|
3486
|
+
toReturn['applyDefaults'] = this.applyDefaults;
|
|
3404
3487
|
}
|
|
3405
3488
|
return toReturn;
|
|
3406
3489
|
}
|
|
@@ -3463,6 +3546,29 @@ class SetAssistantConnectionsRequest {
|
|
|
3463
3546
|
return toReturn;
|
|
3464
3547
|
}
|
|
3465
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
|
+
}
|
|
3466
3572
|
class UpdatePromptModuleRequest {
|
|
3467
3573
|
static fromProto(proto) {
|
|
3468
3574
|
let m = new UpdatePromptModuleRequest();
|
|
@@ -3842,6 +3948,15 @@ class GoalApiService {
|
|
|
3842
3948
|
const request = (r.toApiJson) ? r : new UpsertGoalRequest(r);
|
|
3843
3949
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/Upsert", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
3844
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(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
3959
|
+
}
|
|
3845
3960
|
get(r) {
|
|
3846
3961
|
const request = (r.toApiJson) ? r : new GetGoalRequest(r);
|
|
3847
3962
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/Get", request.toApiJson(), this.apiOptions())
|
|
@@ -3896,7 +4011,8 @@ class PromptModuleApiService {
|
|
|
3896
4011
|
}
|
|
3897
4012
|
create(r) {
|
|
3898
4013
|
const request = (r.toApiJson) ? r : new CreatePromptModuleRequest(r);
|
|
3899
|
-
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)));
|
|
3900
4016
|
}
|
|
3901
4017
|
createVersion(r) {
|
|
3902
4018
|
const request = (r.toApiJson) ? r : new CreatePromptModuleVersionRequest(r);
|
|
@@ -4042,5 +4158,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4042
4158
|
* Generated bundle index. Do not edit.
|
|
4043
4159
|
*/
|
|
4044
4160
|
|
|
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 };
|
|
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 };
|
|
4046
4162
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|