@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
|
@@ -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,8 @@ 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";
|
|
97
111
|
})(ChatChannel || (ChatChannel = {}));
|
|
98
112
|
var ChatMessageRole;
|
|
99
113
|
(function (ChatMessageRole) {
|
|
@@ -407,6 +421,9 @@ class FunctionParameter {
|
|
|
407
421
|
if (proto.items) {
|
|
408
422
|
m.items = FunctionParameter.fromProto(proto.items);
|
|
409
423
|
}
|
|
424
|
+
if (proto.location) {
|
|
425
|
+
m.location = enumStringToValue$9(FunctionParameterParameterLocation, proto.location);
|
|
426
|
+
}
|
|
410
427
|
return m;
|
|
411
428
|
}
|
|
412
429
|
constructor(kwargs) {
|
|
@@ -435,6 +452,9 @@ class FunctionParameter {
|
|
|
435
452
|
if (typeof this.value !== 'undefined') {
|
|
436
453
|
toReturn['value'] = this.value;
|
|
437
454
|
}
|
|
455
|
+
if (typeof this.location !== 'undefined') {
|
|
456
|
+
toReturn['location'] = this.location;
|
|
457
|
+
}
|
|
438
458
|
return toReturn;
|
|
439
459
|
}
|
|
440
460
|
}
|
|
@@ -1476,6 +1496,49 @@ class SetAssistantConnectionsRequestConnectionState {
|
|
|
1476
1496
|
return toReturn;
|
|
1477
1497
|
}
|
|
1478
1498
|
}
|
|
1499
|
+
class CreateGoalRequest {
|
|
1500
|
+
static fromProto(proto) {
|
|
1501
|
+
let m = new CreateGoalRequest();
|
|
1502
|
+
m = Object.assign(m, proto);
|
|
1503
|
+
if (proto.goal) {
|
|
1504
|
+
m.goal = Goal.fromProto(proto.goal);
|
|
1505
|
+
}
|
|
1506
|
+
return m;
|
|
1507
|
+
}
|
|
1508
|
+
constructor(kwargs) {
|
|
1509
|
+
if (!kwargs) {
|
|
1510
|
+
return;
|
|
1511
|
+
}
|
|
1512
|
+
Object.assign(this, kwargs);
|
|
1513
|
+
}
|
|
1514
|
+
toApiJson() {
|
|
1515
|
+
const toReturn = {};
|
|
1516
|
+
if (typeof this.goal !== 'undefined' && this.goal !== null) {
|
|
1517
|
+
toReturn['goal'] = 'toApiJson' in this.goal ? this.goal.toApiJson() : this.goal;
|
|
1518
|
+
}
|
|
1519
|
+
return toReturn;
|
|
1520
|
+
}
|
|
1521
|
+
}
|
|
1522
|
+
class CreateGoalResponse {
|
|
1523
|
+
static fromProto(proto) {
|
|
1524
|
+
let m = new CreateGoalResponse();
|
|
1525
|
+
m = Object.assign(m, proto);
|
|
1526
|
+
return m;
|
|
1527
|
+
}
|
|
1528
|
+
constructor(kwargs) {
|
|
1529
|
+
if (!kwargs) {
|
|
1530
|
+
return;
|
|
1531
|
+
}
|
|
1532
|
+
Object.assign(this, kwargs);
|
|
1533
|
+
}
|
|
1534
|
+
toApiJson() {
|
|
1535
|
+
const toReturn = {};
|
|
1536
|
+
if (typeof this.id !== 'undefined') {
|
|
1537
|
+
toReturn['id'] = this.id;
|
|
1538
|
+
}
|
|
1539
|
+
return toReturn;
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1479
1542
|
class CreatePromptModuleRequest {
|
|
1480
1543
|
static fromProto(proto) {
|
|
1481
1544
|
let m = new CreatePromptModuleRequest();
|
|
@@ -1514,6 +1577,26 @@ class CreatePromptModuleRequest {
|
|
|
1514
1577
|
return toReturn;
|
|
1515
1578
|
}
|
|
1516
1579
|
}
|
|
1580
|
+
class CreatePromptModuleResponse {
|
|
1581
|
+
static fromProto(proto) {
|
|
1582
|
+
let m = new CreatePromptModuleResponse();
|
|
1583
|
+
m = Object.assign(m, proto);
|
|
1584
|
+
return m;
|
|
1585
|
+
}
|
|
1586
|
+
constructor(kwargs) {
|
|
1587
|
+
if (!kwargs) {
|
|
1588
|
+
return;
|
|
1589
|
+
}
|
|
1590
|
+
Object.assign(this, kwargs);
|
|
1591
|
+
}
|
|
1592
|
+
toApiJson() {
|
|
1593
|
+
const toReturn = {};
|
|
1594
|
+
if (typeof this.id !== 'undefined') {
|
|
1595
|
+
toReturn['id'] = this.id;
|
|
1596
|
+
}
|
|
1597
|
+
return toReturn;
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1517
1600
|
class CreatePromptModuleVersionRequest {
|
|
1518
1601
|
static fromProto(proto) {
|
|
1519
1602
|
let m = new CreatePromptModuleVersionRequest();
|
|
@@ -1780,13 +1863,16 @@ class DeployPromptRequest {
|
|
|
1780
1863
|
return toReturn;
|
|
1781
1864
|
}
|
|
1782
1865
|
}
|
|
1783
|
-
class
|
|
1866
|
+
class ListConnectionsRequestFilters {
|
|
1784
1867
|
static fromProto(proto) {
|
|
1785
|
-
let m = new
|
|
1868
|
+
let m = new ListConnectionsRequestFilters();
|
|
1786
1869
|
m = Object.assign(m, proto);
|
|
1787
1870
|
if (proto.namespace) {
|
|
1788
1871
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1789
1872
|
}
|
|
1873
|
+
if (proto.assistantType) {
|
|
1874
|
+
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
1875
|
+
}
|
|
1790
1876
|
return m;
|
|
1791
1877
|
}
|
|
1792
1878
|
constructor(kwargs) {
|
|
@@ -1800,19 +1886,19 @@ class ListPromptModuleRequestFilters {
|
|
|
1800
1886
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1801
1887
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1802
1888
|
}
|
|
1889
|
+
if (typeof this.assistantType !== 'undefined') {
|
|
1890
|
+
toReturn['assistantType'] = this.assistantType;
|
|
1891
|
+
}
|
|
1803
1892
|
return toReturn;
|
|
1804
1893
|
}
|
|
1805
1894
|
}
|
|
1806
|
-
class
|
|
1895
|
+
class ListPromptModuleRequestFilters {
|
|
1807
1896
|
static fromProto(proto) {
|
|
1808
|
-
let m = new
|
|
1897
|
+
let m = new ListPromptModuleRequestFilters();
|
|
1809
1898
|
m = Object.assign(m, proto);
|
|
1810
1899
|
if (proto.namespace) {
|
|
1811
1900
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1812
1901
|
}
|
|
1813
|
-
if (proto.assistantType) {
|
|
1814
|
-
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
1815
|
-
}
|
|
1816
1902
|
return m;
|
|
1817
1903
|
}
|
|
1818
1904
|
constructor(kwargs) {
|
|
@@ -1826,19 +1912,13 @@ class ListConnectionsRequestFilters {
|
|
|
1826
1912
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1827
1913
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1828
1914
|
}
|
|
1829
|
-
if (typeof this.assistantType !== 'undefined') {
|
|
1830
|
-
toReturn['assistantType'] = this.assistantType;
|
|
1831
|
-
}
|
|
1832
1915
|
return toReturn;
|
|
1833
1916
|
}
|
|
1834
1917
|
}
|
|
1835
|
-
class
|
|
1918
|
+
class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
1836
1919
|
static fromProto(proto) {
|
|
1837
|
-
let m = new
|
|
1920
|
+
let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
|
|
1838
1921
|
m = Object.assign(m, proto);
|
|
1839
|
-
if (proto.namespace) {
|
|
1840
|
-
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1841
|
-
}
|
|
1842
1922
|
if (proto.type) {
|
|
1843
1923
|
m.type = enumStringToValue(AssistantType, proto.type);
|
|
1844
1924
|
}
|
|
@@ -1852,27 +1932,21 @@ class ListAssistantRequestFilters {
|
|
|
1852
1932
|
}
|
|
1853
1933
|
toApiJson() {
|
|
1854
1934
|
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
1935
|
if (typeof this.type !== 'undefined') {
|
|
1859
1936
|
toReturn['type'] = this.type;
|
|
1860
1937
|
}
|
|
1861
1938
|
return toReturn;
|
|
1862
1939
|
}
|
|
1863
1940
|
}
|
|
1864
|
-
class
|
|
1941
|
+
class ListAssistantRequestFilters {
|
|
1865
1942
|
static fromProto(proto) {
|
|
1866
|
-
let m = new
|
|
1943
|
+
let m = new ListAssistantRequestFilters();
|
|
1867
1944
|
m = Object.assign(m, proto);
|
|
1868
1945
|
if (proto.namespace) {
|
|
1869
1946
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1870
1947
|
}
|
|
1871
1948
|
if (proto.type) {
|
|
1872
|
-
m.type = enumStringToValue(
|
|
1873
|
-
}
|
|
1874
|
-
if (proto.supportedChannels) {
|
|
1875
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
1949
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
1876
1950
|
}
|
|
1877
1951
|
return m;
|
|
1878
1952
|
}
|
|
@@ -1890,18 +1964,15 @@ class ListGoalsRequestFilters {
|
|
|
1890
1964
|
if (typeof this.type !== 'undefined') {
|
|
1891
1965
|
toReturn['type'] = this.type;
|
|
1892
1966
|
}
|
|
1893
|
-
if (typeof this.supportedChannels !== 'undefined') {
|
|
1894
|
-
toReturn['supportedChannels'] = this.supportedChannels;
|
|
1895
|
-
}
|
|
1896
1967
|
return toReturn;
|
|
1897
1968
|
}
|
|
1898
1969
|
}
|
|
1899
|
-
class
|
|
1970
|
+
class ListFunctionRequestFilters {
|
|
1900
1971
|
static fromProto(proto) {
|
|
1901
|
-
let m = new
|
|
1972
|
+
let m = new ListFunctionRequestFilters();
|
|
1902
1973
|
m = Object.assign(m, proto);
|
|
1903
|
-
if (proto.
|
|
1904
|
-
m.
|
|
1974
|
+
if (proto.namespace) {
|
|
1975
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1905
1976
|
}
|
|
1906
1977
|
return m;
|
|
1907
1978
|
}
|
|
@@ -1913,19 +1984,25 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
1913
1984
|
}
|
|
1914
1985
|
toApiJson() {
|
|
1915
1986
|
const toReturn = {};
|
|
1916
|
-
if (typeof this.
|
|
1917
|
-
toReturn['
|
|
1987
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1988
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1918
1989
|
}
|
|
1919
1990
|
return toReturn;
|
|
1920
1991
|
}
|
|
1921
1992
|
}
|
|
1922
|
-
class
|
|
1993
|
+
class ListGoalsRequestFilters {
|
|
1923
1994
|
static fromProto(proto) {
|
|
1924
|
-
let m = new
|
|
1995
|
+
let m = new ListGoalsRequestFilters();
|
|
1925
1996
|
m = Object.assign(m, proto);
|
|
1926
1997
|
if (proto.namespace) {
|
|
1927
1998
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1928
1999
|
}
|
|
2000
|
+
if (proto.type) {
|
|
2001
|
+
m.type = enumStringToValue(GoalType, proto.type);
|
|
2002
|
+
}
|
|
2003
|
+
if (proto.supportedChannels) {
|
|
2004
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
2005
|
+
}
|
|
1929
2006
|
return m;
|
|
1930
2007
|
}
|
|
1931
2008
|
constructor(kwargs) {
|
|
@@ -1939,6 +2016,12 @@ class ListFunctionRequestFilters {
|
|
|
1939
2016
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1940
2017
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1941
2018
|
}
|
|
2019
|
+
if (typeof this.type !== 'undefined') {
|
|
2020
|
+
toReturn['type'] = this.type;
|
|
2021
|
+
}
|
|
2022
|
+
if (typeof this.supportedChannels !== 'undefined') {
|
|
2023
|
+
toReturn['supportedChannels'] = this.supportedChannels;
|
|
2024
|
+
}
|
|
1942
2025
|
return toReturn;
|
|
1943
2026
|
}
|
|
1944
2027
|
}
|
|
@@ -3364,9 +3447,9 @@ class ListPromptVersionsResponse {
|
|
|
3364
3447
|
return toReturn;
|
|
3365
3448
|
}
|
|
3366
3449
|
}
|
|
3367
|
-
class
|
|
3450
|
+
class CreatePromptModuleVersionRequestOptions {
|
|
3368
3451
|
static fromProto(proto) {
|
|
3369
|
-
let m = new
|
|
3452
|
+
let m = new CreatePromptModuleVersionRequestOptions();
|
|
3370
3453
|
m = Object.assign(m, proto);
|
|
3371
3454
|
return m;
|
|
3372
3455
|
}
|
|
@@ -3378,15 +3461,15 @@ class UpsertAssistantRequestOptions {
|
|
|
3378
3461
|
}
|
|
3379
3462
|
toApiJson() {
|
|
3380
3463
|
const toReturn = {};
|
|
3381
|
-
if (typeof this.
|
|
3382
|
-
toReturn['
|
|
3464
|
+
if (typeof this.shouldDeploy !== 'undefined') {
|
|
3465
|
+
toReturn['shouldDeploy'] = this.shouldDeploy;
|
|
3383
3466
|
}
|
|
3384
3467
|
return toReturn;
|
|
3385
3468
|
}
|
|
3386
3469
|
}
|
|
3387
|
-
class
|
|
3470
|
+
class UpsertAssistantRequestOptions {
|
|
3388
3471
|
static fromProto(proto) {
|
|
3389
|
-
let m = new
|
|
3472
|
+
let m = new UpsertAssistantRequestOptions();
|
|
3390
3473
|
m = Object.assign(m, proto);
|
|
3391
3474
|
return m;
|
|
3392
3475
|
}
|
|
@@ -3398,8 +3481,8 @@ class CreatePromptModuleVersionRequestOptions {
|
|
|
3398
3481
|
}
|
|
3399
3482
|
toApiJson() {
|
|
3400
3483
|
const toReturn = {};
|
|
3401
|
-
if (typeof this.
|
|
3402
|
-
toReturn['
|
|
3484
|
+
if (typeof this.applyDefaults !== 'undefined') {
|
|
3485
|
+
toReturn['applyDefaults'] = this.applyDefaults;
|
|
3403
3486
|
}
|
|
3404
3487
|
return toReturn;
|
|
3405
3488
|
}
|
|
@@ -3462,6 +3545,29 @@ class SetAssistantConnectionsRequest {
|
|
|
3462
3545
|
return toReturn;
|
|
3463
3546
|
}
|
|
3464
3547
|
}
|
|
3548
|
+
class UpdateGoalRequest {
|
|
3549
|
+
static fromProto(proto) {
|
|
3550
|
+
let m = new UpdateGoalRequest();
|
|
3551
|
+
m = Object.assign(m, proto);
|
|
3552
|
+
if (proto.goal) {
|
|
3553
|
+
m.goal = Goal.fromProto(proto.goal);
|
|
3554
|
+
}
|
|
3555
|
+
return m;
|
|
3556
|
+
}
|
|
3557
|
+
constructor(kwargs) {
|
|
3558
|
+
if (!kwargs) {
|
|
3559
|
+
return;
|
|
3560
|
+
}
|
|
3561
|
+
Object.assign(this, kwargs);
|
|
3562
|
+
}
|
|
3563
|
+
toApiJson() {
|
|
3564
|
+
const toReturn = {};
|
|
3565
|
+
if (typeof this.goal !== 'undefined' && this.goal !== null) {
|
|
3566
|
+
toReturn['goal'] = 'toApiJson' in this.goal ? this.goal.toApiJson() : this.goal;
|
|
3567
|
+
}
|
|
3568
|
+
return toReturn;
|
|
3569
|
+
}
|
|
3570
|
+
}
|
|
3465
3571
|
class UpdatePromptModuleRequest {
|
|
3466
3572
|
static fromProto(proto) {
|
|
3467
3573
|
let m = new UpdatePromptModuleRequest();
|
|
@@ -3841,6 +3947,15 @@ class GoalApiService {
|
|
|
3841
3947
|
const request = (r.toApiJson) ? r : new UpsertGoalRequest(r);
|
|
3842
3948
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/Upsert", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
3843
3949
|
}
|
|
3950
|
+
create(r) {
|
|
3951
|
+
const request = (r.toApiJson) ? r : new CreateGoalRequest(r);
|
|
3952
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/Create", request.toApiJson(), this.apiOptions())
|
|
3953
|
+
.pipe(map(resp => CreateGoalResponse.fromProto(resp)));
|
|
3954
|
+
}
|
|
3955
|
+
update(r) {
|
|
3956
|
+
const request = (r.toApiJson) ? r : new UpdateGoalRequest(r);
|
|
3957
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/Update", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
3958
|
+
}
|
|
3844
3959
|
get(r) {
|
|
3845
3960
|
const request = (r.toApiJson) ? r : new GetGoalRequest(r);
|
|
3846
3961
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/Get", request.toApiJson(), this.apiOptions())
|
|
@@ -3895,7 +4010,8 @@ class PromptModuleApiService {
|
|
|
3895
4010
|
}
|
|
3896
4011
|
create(r) {
|
|
3897
4012
|
const request = (r.toApiJson) ? r : new CreatePromptModuleRequest(r);
|
|
3898
|
-
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/Create", request.toApiJson(),
|
|
4013
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/Create", request.toApiJson(), this.apiOptions())
|
|
4014
|
+
.pipe(map(resp => CreatePromptModuleResponse.fromProto(resp)));
|
|
3899
4015
|
}
|
|
3900
4016
|
createVersion(r) {
|
|
3901
4017
|
const request = (r.toApiJson) ? r : new CreatePromptModuleVersionRequest(r);
|
|
@@ -4041,5 +4157,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4041
4157
|
* Generated bundle index. Do not edit.
|
|
4042
4158
|
*/
|
|
4043
4159
|
|
|
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 };
|
|
4160
|
+
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
4161
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|