@vendasta/ai-assistants 0.20.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/assistant.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/assistant.mjs +8 -30
- package/esm2020/lib/_internal/objects/function.mjs +8 -1
- package/esm2020/lib/_internal/objects/index.mjs +4 -4
- package/esm2020/lib/_internal/prompt-module.api.service.mjs +4 -3
- package/fesm2015/vendasta-ai-assistants.mjs +201 -108
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +201 -108
- 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/assistant.interface.d.ts +2 -5
- package/lib/_internal/interfaces/function.interface.d.ts +2 -0
- package/lib/_internal/interfaces/index.d.ts +3 -3
- package/lib/_internal/objects/api.d.ts +47 -23
- package/lib/_internal/objects/assistant.d.ts +2 -8
- package/lib/_internal/objects/function.d.ts +2 -0
- package/lib/_internal/objects/index.d.ts +3 -3
- 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
|
}
|
|
@@ -749,6 +769,36 @@ function enumStringToValue$6(enumRef, value) {
|
|
|
749
769
|
}
|
|
750
770
|
return enumRef[value];
|
|
751
771
|
}
|
|
772
|
+
class KeyValuePair {
|
|
773
|
+
static fromProto(proto) {
|
|
774
|
+
let m = new KeyValuePair();
|
|
775
|
+
m = Object.assign(m, proto);
|
|
776
|
+
return m;
|
|
777
|
+
}
|
|
778
|
+
constructor(kwargs) {
|
|
779
|
+
if (!kwargs) {
|
|
780
|
+
return;
|
|
781
|
+
}
|
|
782
|
+
Object.assign(this, kwargs);
|
|
783
|
+
}
|
|
784
|
+
toApiJson() {
|
|
785
|
+
const toReturn = {};
|
|
786
|
+
if (typeof this.key !== 'undefined') {
|
|
787
|
+
toReturn['key'] = this.key;
|
|
788
|
+
}
|
|
789
|
+
if (typeof this.value !== 'undefined') {
|
|
790
|
+
toReturn['value'] = this.value;
|
|
791
|
+
}
|
|
792
|
+
return toReturn;
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
function enumStringToValue$5(enumRef, value) {
|
|
797
|
+
if (typeof value === 'number') {
|
|
798
|
+
return value;
|
|
799
|
+
}
|
|
800
|
+
return enumRef[value];
|
|
801
|
+
}
|
|
752
802
|
class Assistant {
|
|
753
803
|
static fromProto(proto) {
|
|
754
804
|
let m = new Assistant();
|
|
@@ -757,7 +807,7 @@ class Assistant {
|
|
|
757
807
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
758
808
|
}
|
|
759
809
|
if (proto.type) {
|
|
760
|
-
m.type = enumStringToValue$
|
|
810
|
+
m.type = enumStringToValue$5(AssistantType, proto.type);
|
|
761
811
|
}
|
|
762
812
|
if (proto.config) {
|
|
763
813
|
m.config = Config.fromProto(proto.config);
|
|
@@ -825,29 +875,6 @@ class AssistantKey {
|
|
|
825
875
|
return toReturn;
|
|
826
876
|
}
|
|
827
877
|
}
|
|
828
|
-
class BookingConfig {
|
|
829
|
-
static fromProto(proto) {
|
|
830
|
-
let m = new BookingConfig();
|
|
831
|
-
m = Object.assign(m, proto);
|
|
832
|
-
return m;
|
|
833
|
-
}
|
|
834
|
-
constructor(kwargs) {
|
|
835
|
-
if (!kwargs) {
|
|
836
|
-
return;
|
|
837
|
-
}
|
|
838
|
-
Object.assign(this, kwargs);
|
|
839
|
-
}
|
|
840
|
-
toApiJson() {
|
|
841
|
-
const toReturn = {};
|
|
842
|
-
if (typeof this.calendarId !== 'undefined') {
|
|
843
|
-
toReturn['calendarId'] = this.calendarId;
|
|
844
|
-
}
|
|
845
|
-
if (typeof this.meetingTypeId !== 'undefined') {
|
|
846
|
-
toReturn['meetingTypeId'] = this.meetingTypeId;
|
|
847
|
-
}
|
|
848
|
-
return toReturn;
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
878
|
class Config {
|
|
852
879
|
static fromProto(proto) {
|
|
853
880
|
let m = new Config();
|
|
@@ -884,6 +911,9 @@ class ConfigurableGoal {
|
|
|
884
911
|
if (proto.goal) {
|
|
885
912
|
m.goal = Goal.fromProto(proto.goal);
|
|
886
913
|
}
|
|
914
|
+
if (proto.configuration) {
|
|
915
|
+
m.configuration = proto.configuration.map(KeyValuePair.fromProto);
|
|
916
|
+
}
|
|
887
917
|
return m;
|
|
888
918
|
}
|
|
889
919
|
constructor(kwargs) {
|
|
@@ -897,6 +927,9 @@ class ConfigurableGoal {
|
|
|
897
927
|
if (typeof this.goal !== 'undefined' && this.goal !== null) {
|
|
898
928
|
toReturn['goal'] = 'toApiJson' in this.goal ? this.goal.toApiJson() : this.goal;
|
|
899
929
|
}
|
|
930
|
+
if (typeof this.configuration !== 'undefined' && this.configuration !== null) {
|
|
931
|
+
toReturn['configuration'] = 'toApiJson' in this.configuration ? this.configuration.toApiJson() : this.configuration;
|
|
932
|
+
}
|
|
900
933
|
return toReturn;
|
|
901
934
|
}
|
|
902
935
|
}
|
|
@@ -924,9 +957,6 @@ class ConfigInboxConfig {
|
|
|
924
957
|
static fromProto(proto) {
|
|
925
958
|
let m = new ConfigInboxConfig();
|
|
926
959
|
m = Object.assign(m, proto);
|
|
927
|
-
if (proto.bookingConfig) {
|
|
928
|
-
m.bookingConfig = BookingConfig.fromProto(proto.bookingConfig);
|
|
929
|
-
}
|
|
930
960
|
return m;
|
|
931
961
|
}
|
|
932
962
|
constructor(kwargs) {
|
|
@@ -943,9 +973,6 @@ class ConfigInboxConfig {
|
|
|
943
973
|
if (typeof this.additionalInstructions !== 'undefined') {
|
|
944
974
|
toReturn['additionalInstructions'] = this.additionalInstructions;
|
|
945
975
|
}
|
|
946
|
-
if (typeof this.bookingConfig !== 'undefined' && this.bookingConfig !== null) {
|
|
947
|
-
toReturn['bookingConfig'] = 'toApiJson' in this.bookingConfig ? this.bookingConfig.toApiJson() : this.bookingConfig;
|
|
948
|
-
}
|
|
949
976
|
return toReturn;
|
|
950
977
|
}
|
|
951
978
|
}
|
|
@@ -1035,7 +1062,7 @@ class ConfigVoiceConfig {
|
|
|
1035
1062
|
let m = new ConfigVoiceConfig();
|
|
1036
1063
|
m = Object.assign(m, proto);
|
|
1037
1064
|
if (proto.vendorModel) {
|
|
1038
|
-
m.vendorModel = enumStringToValue$
|
|
1065
|
+
m.vendorModel = enumStringToValue$5(VendorModel, proto.vendorModel);
|
|
1039
1066
|
}
|
|
1040
1067
|
if (proto.modelConfig) {
|
|
1041
1068
|
m.modelConfig = ModelConfig.fromProto(proto.modelConfig);
|
|
@@ -1060,7 +1087,7 @@ class ConfigVoiceConfig {
|
|
|
1060
1087
|
}
|
|
1061
1088
|
}
|
|
1062
1089
|
|
|
1063
|
-
function enumStringToValue$
|
|
1090
|
+
function enumStringToValue$4(enumRef, value) {
|
|
1064
1091
|
if (typeof value === 'number') {
|
|
1065
1092
|
return value;
|
|
1066
1093
|
}
|
|
@@ -1077,7 +1104,7 @@ class Connection {
|
|
|
1077
1104
|
m.assistantKeys = proto.assistantKeys.map(AssistantKey.fromProto);
|
|
1078
1105
|
}
|
|
1079
1106
|
if (proto.supportedAssistantTypes) {
|
|
1080
|
-
m.supportedAssistantTypes = proto.supportedAssistantTypes.map((v) => enumStringToValue$
|
|
1107
|
+
m.supportedAssistantTypes = proto.supportedAssistantTypes.map((v) => enumStringToValue$4(AssistantType, v));
|
|
1081
1108
|
}
|
|
1082
1109
|
return m;
|
|
1083
1110
|
}
|
|
@@ -1152,36 +1179,6 @@ class ConnectionKey {
|
|
|
1152
1179
|
}
|
|
1153
1180
|
}
|
|
1154
1181
|
|
|
1155
|
-
function enumStringToValue$4(enumRef, value) {
|
|
1156
|
-
if (typeof value === 'number') {
|
|
1157
|
-
return value;
|
|
1158
|
-
}
|
|
1159
|
-
return enumRef[value];
|
|
1160
|
-
}
|
|
1161
|
-
class KeyValuePair {
|
|
1162
|
-
static fromProto(proto) {
|
|
1163
|
-
let m = new KeyValuePair();
|
|
1164
|
-
m = Object.assign(m, proto);
|
|
1165
|
-
return m;
|
|
1166
|
-
}
|
|
1167
|
-
constructor(kwargs) {
|
|
1168
|
-
if (!kwargs) {
|
|
1169
|
-
return;
|
|
1170
|
-
}
|
|
1171
|
-
Object.assign(this, kwargs);
|
|
1172
|
-
}
|
|
1173
|
-
toApiJson() {
|
|
1174
|
-
const toReturn = {};
|
|
1175
|
-
if (typeof this.key !== 'undefined') {
|
|
1176
|
-
toReturn['key'] = this.key;
|
|
1177
|
-
}
|
|
1178
|
-
if (typeof this.value !== 'undefined') {
|
|
1179
|
-
toReturn['value'] = this.value;
|
|
1180
|
-
}
|
|
1181
|
-
return toReturn;
|
|
1182
|
-
}
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
1182
|
function enumStringToValue$3(enumRef, value) {
|
|
1186
1183
|
if (typeof value === 'number') {
|
|
1187
1184
|
return value;
|
|
@@ -1499,6 +1496,49 @@ class SetAssistantConnectionsRequestConnectionState {
|
|
|
1499
1496
|
return toReturn;
|
|
1500
1497
|
}
|
|
1501
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
|
+
}
|
|
1502
1542
|
class CreatePromptModuleRequest {
|
|
1503
1543
|
static fromProto(proto) {
|
|
1504
1544
|
let m = new CreatePromptModuleRequest();
|
|
@@ -1537,6 +1577,26 @@ class CreatePromptModuleRequest {
|
|
|
1537
1577
|
return toReturn;
|
|
1538
1578
|
}
|
|
1539
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
|
+
}
|
|
1540
1600
|
class CreatePromptModuleVersionRequest {
|
|
1541
1601
|
static fromProto(proto) {
|
|
1542
1602
|
let m = new CreatePromptModuleVersionRequest();
|
|
@@ -1803,13 +1863,16 @@ class DeployPromptRequest {
|
|
|
1803
1863
|
return toReturn;
|
|
1804
1864
|
}
|
|
1805
1865
|
}
|
|
1806
|
-
class
|
|
1866
|
+
class ListConnectionsRequestFilters {
|
|
1807
1867
|
static fromProto(proto) {
|
|
1808
|
-
let m = new
|
|
1868
|
+
let m = new ListConnectionsRequestFilters();
|
|
1809
1869
|
m = Object.assign(m, proto);
|
|
1810
1870
|
if (proto.namespace) {
|
|
1811
1871
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1812
1872
|
}
|
|
1873
|
+
if (proto.assistantType) {
|
|
1874
|
+
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
1875
|
+
}
|
|
1813
1876
|
return m;
|
|
1814
1877
|
}
|
|
1815
1878
|
constructor(kwargs) {
|
|
@@ -1823,19 +1886,19 @@ class ListPromptModuleRequestFilters {
|
|
|
1823
1886
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1824
1887
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1825
1888
|
}
|
|
1889
|
+
if (typeof this.assistantType !== 'undefined') {
|
|
1890
|
+
toReturn['assistantType'] = this.assistantType;
|
|
1891
|
+
}
|
|
1826
1892
|
return toReturn;
|
|
1827
1893
|
}
|
|
1828
1894
|
}
|
|
1829
|
-
class
|
|
1895
|
+
class ListPromptModuleRequestFilters {
|
|
1830
1896
|
static fromProto(proto) {
|
|
1831
|
-
let m = new
|
|
1897
|
+
let m = new ListPromptModuleRequestFilters();
|
|
1832
1898
|
m = Object.assign(m, proto);
|
|
1833
1899
|
if (proto.namespace) {
|
|
1834
1900
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1835
1901
|
}
|
|
1836
|
-
if (proto.assistantType) {
|
|
1837
|
-
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
1838
|
-
}
|
|
1839
1902
|
return m;
|
|
1840
1903
|
}
|
|
1841
1904
|
constructor(kwargs) {
|
|
@@ -1849,19 +1912,13 @@ class ListConnectionsRequestFilters {
|
|
|
1849
1912
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1850
1913
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1851
1914
|
}
|
|
1852
|
-
if (typeof this.assistantType !== 'undefined') {
|
|
1853
|
-
toReturn['assistantType'] = this.assistantType;
|
|
1854
|
-
}
|
|
1855
1915
|
return toReturn;
|
|
1856
1916
|
}
|
|
1857
1917
|
}
|
|
1858
|
-
class
|
|
1918
|
+
class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
1859
1919
|
static fromProto(proto) {
|
|
1860
|
-
let m = new
|
|
1920
|
+
let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
|
|
1861
1921
|
m = Object.assign(m, proto);
|
|
1862
|
-
if (proto.namespace) {
|
|
1863
|
-
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1864
|
-
}
|
|
1865
1922
|
if (proto.type) {
|
|
1866
1923
|
m.type = enumStringToValue(AssistantType, proto.type);
|
|
1867
1924
|
}
|
|
@@ -1875,27 +1932,21 @@ class ListAssistantRequestFilters {
|
|
|
1875
1932
|
}
|
|
1876
1933
|
toApiJson() {
|
|
1877
1934
|
const toReturn = {};
|
|
1878
|
-
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1879
|
-
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1880
|
-
}
|
|
1881
1935
|
if (typeof this.type !== 'undefined') {
|
|
1882
1936
|
toReturn['type'] = this.type;
|
|
1883
1937
|
}
|
|
1884
1938
|
return toReturn;
|
|
1885
1939
|
}
|
|
1886
1940
|
}
|
|
1887
|
-
class
|
|
1941
|
+
class ListAssistantRequestFilters {
|
|
1888
1942
|
static fromProto(proto) {
|
|
1889
|
-
let m = new
|
|
1943
|
+
let m = new ListAssistantRequestFilters();
|
|
1890
1944
|
m = Object.assign(m, proto);
|
|
1891
1945
|
if (proto.namespace) {
|
|
1892
1946
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1893
1947
|
}
|
|
1894
1948
|
if (proto.type) {
|
|
1895
|
-
m.type = enumStringToValue(
|
|
1896
|
-
}
|
|
1897
|
-
if (proto.supportedChannels) {
|
|
1898
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
1949
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
1899
1950
|
}
|
|
1900
1951
|
return m;
|
|
1901
1952
|
}
|
|
@@ -1913,18 +1964,15 @@ class ListGoalsRequestFilters {
|
|
|
1913
1964
|
if (typeof this.type !== 'undefined') {
|
|
1914
1965
|
toReturn['type'] = this.type;
|
|
1915
1966
|
}
|
|
1916
|
-
if (typeof this.supportedChannels !== 'undefined') {
|
|
1917
|
-
toReturn['supportedChannels'] = this.supportedChannels;
|
|
1918
|
-
}
|
|
1919
1967
|
return toReturn;
|
|
1920
1968
|
}
|
|
1921
1969
|
}
|
|
1922
|
-
class
|
|
1970
|
+
class ListFunctionRequestFilters {
|
|
1923
1971
|
static fromProto(proto) {
|
|
1924
|
-
let m = new
|
|
1972
|
+
let m = new ListFunctionRequestFilters();
|
|
1925
1973
|
m = Object.assign(m, proto);
|
|
1926
|
-
if (proto.
|
|
1927
|
-
m.
|
|
1974
|
+
if (proto.namespace) {
|
|
1975
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1928
1976
|
}
|
|
1929
1977
|
return m;
|
|
1930
1978
|
}
|
|
@@ -1936,19 +1984,25 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
1936
1984
|
}
|
|
1937
1985
|
toApiJson() {
|
|
1938
1986
|
const toReturn = {};
|
|
1939
|
-
if (typeof this.
|
|
1940
|
-
toReturn['
|
|
1987
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1988
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1941
1989
|
}
|
|
1942
1990
|
return toReturn;
|
|
1943
1991
|
}
|
|
1944
1992
|
}
|
|
1945
|
-
class
|
|
1993
|
+
class ListGoalsRequestFilters {
|
|
1946
1994
|
static fromProto(proto) {
|
|
1947
|
-
let m = new
|
|
1995
|
+
let m = new ListGoalsRequestFilters();
|
|
1948
1996
|
m = Object.assign(m, proto);
|
|
1949
1997
|
if (proto.namespace) {
|
|
1950
1998
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1951
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
|
+
}
|
|
1952
2006
|
return m;
|
|
1953
2007
|
}
|
|
1954
2008
|
constructor(kwargs) {
|
|
@@ -1962,6 +2016,12 @@ class ListFunctionRequestFilters {
|
|
|
1962
2016
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1963
2017
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1964
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
|
+
}
|
|
1965
2025
|
return toReturn;
|
|
1966
2026
|
}
|
|
1967
2027
|
}
|
|
@@ -3387,9 +3447,9 @@ class ListPromptVersionsResponse {
|
|
|
3387
3447
|
return toReturn;
|
|
3388
3448
|
}
|
|
3389
3449
|
}
|
|
3390
|
-
class
|
|
3450
|
+
class CreatePromptModuleVersionRequestOptions {
|
|
3391
3451
|
static fromProto(proto) {
|
|
3392
|
-
let m = new
|
|
3452
|
+
let m = new CreatePromptModuleVersionRequestOptions();
|
|
3393
3453
|
m = Object.assign(m, proto);
|
|
3394
3454
|
return m;
|
|
3395
3455
|
}
|
|
@@ -3401,15 +3461,15 @@ class UpsertAssistantRequestOptions {
|
|
|
3401
3461
|
}
|
|
3402
3462
|
toApiJson() {
|
|
3403
3463
|
const toReturn = {};
|
|
3404
|
-
if (typeof this.
|
|
3405
|
-
toReturn['
|
|
3464
|
+
if (typeof this.shouldDeploy !== 'undefined') {
|
|
3465
|
+
toReturn['shouldDeploy'] = this.shouldDeploy;
|
|
3406
3466
|
}
|
|
3407
3467
|
return toReturn;
|
|
3408
3468
|
}
|
|
3409
3469
|
}
|
|
3410
|
-
class
|
|
3470
|
+
class UpsertAssistantRequestOptions {
|
|
3411
3471
|
static fromProto(proto) {
|
|
3412
|
-
let m = new
|
|
3472
|
+
let m = new UpsertAssistantRequestOptions();
|
|
3413
3473
|
m = Object.assign(m, proto);
|
|
3414
3474
|
return m;
|
|
3415
3475
|
}
|
|
@@ -3421,8 +3481,8 @@ class CreatePromptModuleVersionRequestOptions {
|
|
|
3421
3481
|
}
|
|
3422
3482
|
toApiJson() {
|
|
3423
3483
|
const toReturn = {};
|
|
3424
|
-
if (typeof this.
|
|
3425
|
-
toReturn['
|
|
3484
|
+
if (typeof this.applyDefaults !== 'undefined') {
|
|
3485
|
+
toReturn['applyDefaults'] = this.applyDefaults;
|
|
3426
3486
|
}
|
|
3427
3487
|
return toReturn;
|
|
3428
3488
|
}
|
|
@@ -3485,6 +3545,29 @@ class SetAssistantConnectionsRequest {
|
|
|
3485
3545
|
return toReturn;
|
|
3486
3546
|
}
|
|
3487
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
|
+
}
|
|
3488
3571
|
class UpdatePromptModuleRequest {
|
|
3489
3572
|
static fromProto(proto) {
|
|
3490
3573
|
let m = new UpdatePromptModuleRequest();
|
|
@@ -3864,6 +3947,15 @@ class GoalApiService {
|
|
|
3864
3947
|
const request = (r.toApiJson) ? r : new UpsertGoalRequest(r);
|
|
3865
3948
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/Upsert", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
3866
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
|
+
}
|
|
3867
3959
|
get(r) {
|
|
3868
3960
|
const request = (r.toApiJson) ? r : new GetGoalRequest(r);
|
|
3869
3961
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.GoalService/Get", request.toApiJson(), this.apiOptions())
|
|
@@ -3918,7 +4010,8 @@ class PromptModuleApiService {
|
|
|
3918
4010
|
}
|
|
3919
4011
|
create(r) {
|
|
3920
4012
|
const request = (r.toApiJson) ? r : new CreatePromptModuleRequest(r);
|
|
3921
|
-
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)));
|
|
3922
4015
|
}
|
|
3923
4016
|
createVersion(r) {
|
|
3924
4017
|
const request = (r.toApiJson) ? r : new CreatePromptModuleVersionRequest(r);
|
|
@@ -4064,5 +4157,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4064
4157
|
* Generated bundle index. Do not edit.
|
|
4065
4158
|
*/
|
|
4066
4159
|
|
|
4067
|
-
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType,
|
|
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 };
|
|
4068
4161
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|