@vendasta/ai-assistants 0.13.0 → 0.15.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/assistant.enum.mjs +6 -1
- package/esm2020/lib/_internal/enums/index.mjs +2 -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/goal.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +68 -42
- package/esm2020/lib/_internal/objects/assistant.mjs +116 -6
- package/esm2020/lib/_internal/objects/goal.mjs +5 -5
- package/esm2020/lib/_internal/objects/index.mjs +3 -3
- package/fesm2015/vendasta-ai-assistants.mjs +189 -48
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +189 -48
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/enums/assistant.enum.d.ts +4 -0
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/interfaces/api.interface.d.ts +14 -10
- package/lib/_internal/interfaces/assistant.interface.d.ts +19 -2
- package/lib/_internal/interfaces/goal.interface.d.ts +4 -4
- package/lib/_internal/interfaces/index.d.ts +2 -2
- package/lib/_internal/objects/api.d.ts +26 -19
- package/lib/_internal/objects/assistant.d.ts +31 -2
- package/lib/_internal/objects/goal.d.ts +4 -4
- package/lib/_internal/objects/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -68,6 +68,11 @@ var AssistantType;
|
|
|
68
68
|
AssistantType[AssistantType["ASSISTANT_TYPE_SOCIAL_MARKETING"] = 3] = "ASSISTANT_TYPE_SOCIAL_MARKETING";
|
|
69
69
|
AssistantType[AssistantType["ASSISTANT_TYPE_VOICE_RECEPTIONIST"] = 4] = "ASSISTANT_TYPE_VOICE_RECEPTIONIST";
|
|
70
70
|
})(AssistantType || (AssistantType = {}));
|
|
71
|
+
var VendorModel;
|
|
72
|
+
(function (VendorModel) {
|
|
73
|
+
VendorModel[VendorModel["VENDOR_MODEL_UNSPECIFIED"] = 0] = "VENDOR_MODEL_UNSPECIFIED";
|
|
74
|
+
VendorModel[VendorModel["VENDOR_MODEL_OPEN_AI_REALTIME"] = 1] = "VENDOR_MODEL_OPEN_AI_REALTIME";
|
|
75
|
+
})(VendorModel || (VendorModel = {}));
|
|
71
76
|
|
|
72
77
|
// *********************************
|
|
73
78
|
// Code generated by sdkgen
|
|
@@ -618,10 +623,10 @@ class Goal {
|
|
|
618
623
|
m.type = enumStringToValue$7(GoalType, proto.type);
|
|
619
624
|
}
|
|
620
625
|
if (proto.promptModules) {
|
|
621
|
-
m.promptModules = proto.promptModules.map(
|
|
626
|
+
m.promptModules = proto.promptModules.map(PromptModule.fromProto);
|
|
622
627
|
}
|
|
623
628
|
if (proto.functions) {
|
|
624
|
-
m.functions = proto.functions.map(
|
|
629
|
+
m.functions = proto.functions.map(Function.fromProto);
|
|
625
630
|
}
|
|
626
631
|
if (proto.updated) {
|
|
627
632
|
m.updated = new Date(proto.updated);
|
|
@@ -788,6 +793,9 @@ class Config {
|
|
|
788
793
|
if (proto.inboxConfig) {
|
|
789
794
|
m.inboxConfig = ConfigInboxConfig.fromProto(proto.inboxConfig);
|
|
790
795
|
}
|
|
796
|
+
if (proto.voiceConfig) {
|
|
797
|
+
m.voiceConfig = ConfigVoiceConfig.fromProto(proto.voiceConfig);
|
|
798
|
+
}
|
|
791
799
|
return m;
|
|
792
800
|
}
|
|
793
801
|
constructor(kwargs) {
|
|
@@ -801,6 +809,9 @@ class Config {
|
|
|
801
809
|
if (typeof this.inboxConfig !== 'undefined' && this.inboxConfig !== null) {
|
|
802
810
|
toReturn['inboxConfig'] = 'toApiJson' in this.inboxConfig ? this.inboxConfig.toApiJson() : this.inboxConfig;
|
|
803
811
|
}
|
|
812
|
+
if (typeof this.voiceConfig !== 'undefined' && this.voiceConfig !== null) {
|
|
813
|
+
toReturn['voiceConfig'] = 'toApiJson' in this.voiceConfig ? this.voiceConfig.toApiJson() : this.voiceConfig;
|
|
814
|
+
}
|
|
804
815
|
return toReturn;
|
|
805
816
|
}
|
|
806
817
|
}
|
|
@@ -808,8 +819,8 @@ class ConfigurableGoal {
|
|
|
808
819
|
static fromProto(proto) {
|
|
809
820
|
let m = new ConfigurableGoal();
|
|
810
821
|
m = Object.assign(m, proto);
|
|
811
|
-
if (proto.
|
|
812
|
-
m.
|
|
822
|
+
if (proto.goal) {
|
|
823
|
+
m.goal = Goal.fromProto(proto.goal);
|
|
813
824
|
}
|
|
814
825
|
return m;
|
|
815
826
|
}
|
|
@@ -821,8 +832,8 @@ class ConfigurableGoal {
|
|
|
821
832
|
}
|
|
822
833
|
toApiJson() {
|
|
823
834
|
const toReturn = {};
|
|
824
|
-
if (typeof this.
|
|
825
|
-
toReturn['
|
|
835
|
+
if (typeof this.goal !== 'undefined' && this.goal !== null) {
|
|
836
|
+
toReturn['goal'] = 'toApiJson' in this.goal ? this.goal.toApiJson() : this.goal;
|
|
826
837
|
}
|
|
827
838
|
return toReturn;
|
|
828
839
|
}
|
|
@@ -850,6 +861,110 @@ class ConfigInboxConfig {
|
|
|
850
861
|
return toReturn;
|
|
851
862
|
}
|
|
852
863
|
}
|
|
864
|
+
class ModelConfig {
|
|
865
|
+
static fromProto(proto) {
|
|
866
|
+
let m = new ModelConfig();
|
|
867
|
+
m = Object.assign(m, proto);
|
|
868
|
+
if (proto.openaiRealtimeConfig) {
|
|
869
|
+
m.openaiRealtimeConfig = OpenAIRealtimeConfig.fromProto(proto.openaiRealtimeConfig);
|
|
870
|
+
}
|
|
871
|
+
return m;
|
|
872
|
+
}
|
|
873
|
+
constructor(kwargs) {
|
|
874
|
+
if (!kwargs) {
|
|
875
|
+
return;
|
|
876
|
+
}
|
|
877
|
+
Object.assign(this, kwargs);
|
|
878
|
+
}
|
|
879
|
+
toApiJson() {
|
|
880
|
+
const toReturn = {};
|
|
881
|
+
if (typeof this.openaiRealtimeConfig !== 'undefined' && this.openaiRealtimeConfig !== null) {
|
|
882
|
+
toReturn['openaiRealtimeConfig'] = 'toApiJson' in this.openaiRealtimeConfig ? this.openaiRealtimeConfig.toApiJson() : this.openaiRealtimeConfig;
|
|
883
|
+
}
|
|
884
|
+
return toReturn;
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
class OpenAIRealtimeConfig {
|
|
888
|
+
static fromProto(proto) {
|
|
889
|
+
let m = new OpenAIRealtimeConfig();
|
|
890
|
+
m = Object.assign(m, proto);
|
|
891
|
+
if (proto.turnDetection) {
|
|
892
|
+
m.turnDetection = OpenAIRealtimeConfigTurnDetection.fromProto(proto.turnDetection);
|
|
893
|
+
}
|
|
894
|
+
return m;
|
|
895
|
+
}
|
|
896
|
+
constructor(kwargs) {
|
|
897
|
+
if (!kwargs) {
|
|
898
|
+
return;
|
|
899
|
+
}
|
|
900
|
+
Object.assign(this, kwargs);
|
|
901
|
+
}
|
|
902
|
+
toApiJson() {
|
|
903
|
+
const toReturn = {};
|
|
904
|
+
if (typeof this.voice !== 'undefined') {
|
|
905
|
+
toReturn['voice'] = this.voice;
|
|
906
|
+
}
|
|
907
|
+
if (typeof this.turnDetection !== 'undefined' && this.turnDetection !== null) {
|
|
908
|
+
toReturn['turnDetection'] = 'toApiJson' in this.turnDetection ? this.turnDetection.toApiJson() : this.turnDetection;
|
|
909
|
+
}
|
|
910
|
+
return toReturn;
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
class OpenAIRealtimeConfigTurnDetection {
|
|
914
|
+
static fromProto(proto) {
|
|
915
|
+
let m = new OpenAIRealtimeConfigTurnDetection();
|
|
916
|
+
m = Object.assign(m, proto);
|
|
917
|
+
return m;
|
|
918
|
+
}
|
|
919
|
+
constructor(kwargs) {
|
|
920
|
+
if (!kwargs) {
|
|
921
|
+
return;
|
|
922
|
+
}
|
|
923
|
+
Object.assign(this, kwargs);
|
|
924
|
+
}
|
|
925
|
+
toApiJson() {
|
|
926
|
+
const toReturn = {};
|
|
927
|
+
if (typeof this.threshold !== 'undefined') {
|
|
928
|
+
toReturn['threshold'] = this.threshold;
|
|
929
|
+
}
|
|
930
|
+
if (typeof this.prefixPadding !== 'undefined') {
|
|
931
|
+
toReturn['prefixPadding'] = this.prefixPadding;
|
|
932
|
+
}
|
|
933
|
+
if (typeof this.silenceDuration !== 'undefined') {
|
|
934
|
+
toReturn['silenceDuration'] = this.silenceDuration;
|
|
935
|
+
}
|
|
936
|
+
return toReturn;
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
class ConfigVoiceConfig {
|
|
940
|
+
static fromProto(proto) {
|
|
941
|
+
let m = new ConfigVoiceConfig();
|
|
942
|
+
m = Object.assign(m, proto);
|
|
943
|
+
if (proto.vendorModel) {
|
|
944
|
+
m.vendorModel = enumStringToValue$6(VendorModel, proto.vendorModel);
|
|
945
|
+
}
|
|
946
|
+
if (proto.modelConfig) {
|
|
947
|
+
m.modelConfig = ModelConfig.fromProto(proto.modelConfig);
|
|
948
|
+
}
|
|
949
|
+
return m;
|
|
950
|
+
}
|
|
951
|
+
constructor(kwargs) {
|
|
952
|
+
if (!kwargs) {
|
|
953
|
+
return;
|
|
954
|
+
}
|
|
955
|
+
Object.assign(this, kwargs);
|
|
956
|
+
}
|
|
957
|
+
toApiJson() {
|
|
958
|
+
const toReturn = {};
|
|
959
|
+
if (typeof this.vendorModel !== 'undefined') {
|
|
960
|
+
toReturn['vendorModel'] = this.vendorModel;
|
|
961
|
+
}
|
|
962
|
+
if (typeof this.modelConfig !== 'undefined' && this.modelConfig !== null) {
|
|
963
|
+
toReturn['modelConfig'] = 'toApiJson' in this.modelConfig ? this.modelConfig.toApiJson() : this.modelConfig;
|
|
964
|
+
}
|
|
965
|
+
return toReturn;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
853
968
|
|
|
854
969
|
function enumStringToValue$5(enumRef, value) {
|
|
855
970
|
if (typeof value === 'number') {
|
|
@@ -1536,19 +1651,13 @@ class DeployPromptRequest {
|
|
|
1536
1651
|
return toReturn;
|
|
1537
1652
|
}
|
|
1538
1653
|
}
|
|
1539
|
-
class
|
|
1654
|
+
class ListPromptModuleRequestFilters {
|
|
1540
1655
|
static fromProto(proto) {
|
|
1541
|
-
let m = new
|
|
1656
|
+
let m = new ListPromptModuleRequestFilters();
|
|
1542
1657
|
m = Object.assign(m, proto);
|
|
1543
1658
|
if (proto.namespace) {
|
|
1544
1659
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1545
1660
|
}
|
|
1546
|
-
if (proto.type) {
|
|
1547
|
-
m.type = enumStringToValue(GoalType, proto.type);
|
|
1548
|
-
}
|
|
1549
|
-
if (proto.supportedChannels) {
|
|
1550
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
1551
|
-
}
|
|
1552
1661
|
return m;
|
|
1553
1662
|
}
|
|
1554
1663
|
constructor(kwargs) {
|
|
@@ -1562,22 +1671,19 @@ class ListGoalsRequestFilters {
|
|
|
1562
1671
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1563
1672
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1564
1673
|
}
|
|
1565
|
-
if (typeof this.type !== 'undefined') {
|
|
1566
|
-
toReturn['type'] = this.type;
|
|
1567
|
-
}
|
|
1568
|
-
if (typeof this.supportedChannels !== 'undefined') {
|
|
1569
|
-
toReturn['supportedChannels'] = this.supportedChannels;
|
|
1570
|
-
}
|
|
1571
1674
|
return toReturn;
|
|
1572
1675
|
}
|
|
1573
1676
|
}
|
|
1574
|
-
class
|
|
1677
|
+
class ListConnectionsRequestFilters {
|
|
1575
1678
|
static fromProto(proto) {
|
|
1576
|
-
let m = new
|
|
1679
|
+
let m = new ListConnectionsRequestFilters();
|
|
1577
1680
|
m = Object.assign(m, proto);
|
|
1578
1681
|
if (proto.namespace) {
|
|
1579
1682
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1580
1683
|
}
|
|
1684
|
+
if (proto.assistantType) {
|
|
1685
|
+
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
1686
|
+
}
|
|
1581
1687
|
return m;
|
|
1582
1688
|
}
|
|
1583
1689
|
constructor(kwargs) {
|
|
@@ -1591,19 +1697,19 @@ class ListFunctionRequestFilters {
|
|
|
1591
1697
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1592
1698
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1593
1699
|
}
|
|
1700
|
+
if (typeof this.assistantType !== 'undefined') {
|
|
1701
|
+
toReturn['assistantType'] = this.assistantType;
|
|
1702
|
+
}
|
|
1594
1703
|
return toReturn;
|
|
1595
1704
|
}
|
|
1596
1705
|
}
|
|
1597
|
-
class
|
|
1706
|
+
class ListFunctionRequestFilters {
|
|
1598
1707
|
static fromProto(proto) {
|
|
1599
|
-
let m = new
|
|
1708
|
+
let m = new ListFunctionRequestFilters();
|
|
1600
1709
|
m = Object.assign(m, proto);
|
|
1601
1710
|
if (proto.namespace) {
|
|
1602
1711
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1603
1712
|
}
|
|
1604
|
-
if (proto.type) {
|
|
1605
|
-
m.type = enumStringToValue(AssistantType, proto.type);
|
|
1606
|
-
}
|
|
1607
1713
|
return m;
|
|
1608
1714
|
}
|
|
1609
1715
|
constructor(kwargs) {
|
|
@@ -1617,18 +1723,21 @@ class ListAssistantRequestFilters {
|
|
|
1617
1723
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1618
1724
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1619
1725
|
}
|
|
1620
|
-
if (typeof this.type !== 'undefined') {
|
|
1621
|
-
toReturn['type'] = this.type;
|
|
1622
|
-
}
|
|
1623
1726
|
return toReturn;
|
|
1624
1727
|
}
|
|
1625
1728
|
}
|
|
1626
|
-
class
|
|
1729
|
+
class ListGoalsRequestFilters {
|
|
1627
1730
|
static fromProto(proto) {
|
|
1628
|
-
let m = new
|
|
1731
|
+
let m = new ListGoalsRequestFilters();
|
|
1629
1732
|
m = Object.assign(m, proto);
|
|
1733
|
+
if (proto.namespace) {
|
|
1734
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1735
|
+
}
|
|
1630
1736
|
if (proto.type) {
|
|
1631
|
-
m.type = enumStringToValue(
|
|
1737
|
+
m.type = enumStringToValue(GoalType, proto.type);
|
|
1738
|
+
}
|
|
1739
|
+
if (proto.supportedChannels) {
|
|
1740
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
1632
1741
|
}
|
|
1633
1742
|
return m;
|
|
1634
1743
|
}
|
|
@@ -1640,21 +1749,24 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
1640
1749
|
}
|
|
1641
1750
|
toApiJson() {
|
|
1642
1751
|
const toReturn = {};
|
|
1752
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1753
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1754
|
+
}
|
|
1643
1755
|
if (typeof this.type !== 'undefined') {
|
|
1644
1756
|
toReturn['type'] = this.type;
|
|
1645
1757
|
}
|
|
1758
|
+
if (typeof this.supportedChannels !== 'undefined') {
|
|
1759
|
+
toReturn['supportedChannels'] = this.supportedChannels;
|
|
1760
|
+
}
|
|
1646
1761
|
return toReturn;
|
|
1647
1762
|
}
|
|
1648
1763
|
}
|
|
1649
|
-
class
|
|
1764
|
+
class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
1650
1765
|
static fromProto(proto) {
|
|
1651
|
-
let m = new
|
|
1766
|
+
let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
|
|
1652
1767
|
m = Object.assign(m, proto);
|
|
1653
|
-
if (proto.
|
|
1654
|
-
m.
|
|
1655
|
-
}
|
|
1656
|
-
if (proto.assistantType) {
|
|
1657
|
-
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
1768
|
+
if (proto.type) {
|
|
1769
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
1658
1770
|
}
|
|
1659
1771
|
return m;
|
|
1660
1772
|
}
|
|
@@ -1666,22 +1778,22 @@ class ListConnectionsRequestFilters {
|
|
|
1666
1778
|
}
|
|
1667
1779
|
toApiJson() {
|
|
1668
1780
|
const toReturn = {};
|
|
1669
|
-
if (typeof this.
|
|
1670
|
-
toReturn['
|
|
1671
|
-
}
|
|
1672
|
-
if (typeof this.assistantType !== 'undefined') {
|
|
1673
|
-
toReturn['assistantType'] = this.assistantType;
|
|
1781
|
+
if (typeof this.type !== 'undefined') {
|
|
1782
|
+
toReturn['type'] = this.type;
|
|
1674
1783
|
}
|
|
1675
1784
|
return toReturn;
|
|
1676
1785
|
}
|
|
1677
1786
|
}
|
|
1678
|
-
class
|
|
1787
|
+
class ListAssistantRequestFilters {
|
|
1679
1788
|
static fromProto(proto) {
|
|
1680
|
-
let m = new
|
|
1789
|
+
let m = new ListAssistantRequestFilters();
|
|
1681
1790
|
m = Object.assign(m, proto);
|
|
1682
1791
|
if (proto.namespace) {
|
|
1683
1792
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1684
1793
|
}
|
|
1794
|
+
if (proto.type) {
|
|
1795
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
1796
|
+
}
|
|
1685
1797
|
return m;
|
|
1686
1798
|
}
|
|
1687
1799
|
constructor(kwargs) {
|
|
@@ -1695,6 +1807,9 @@ class ListPromptModuleRequestFilters {
|
|
|
1695
1807
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1696
1808
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1697
1809
|
}
|
|
1810
|
+
if (typeof this.type !== 'undefined') {
|
|
1811
|
+
toReturn['type'] = this.type;
|
|
1812
|
+
}
|
|
1698
1813
|
return toReturn;
|
|
1699
1814
|
}
|
|
1700
1815
|
}
|
|
@@ -3123,6 +3238,26 @@ class CreatePromptModuleVersionRequestOptions {
|
|
|
3123
3238
|
return toReturn;
|
|
3124
3239
|
}
|
|
3125
3240
|
}
|
|
3241
|
+
class UpsertAssistantRequestOptions {
|
|
3242
|
+
static fromProto(proto) {
|
|
3243
|
+
let m = new UpsertAssistantRequestOptions();
|
|
3244
|
+
m = Object.assign(m, proto);
|
|
3245
|
+
return m;
|
|
3246
|
+
}
|
|
3247
|
+
constructor(kwargs) {
|
|
3248
|
+
if (!kwargs) {
|
|
3249
|
+
return;
|
|
3250
|
+
}
|
|
3251
|
+
Object.assign(this, kwargs);
|
|
3252
|
+
}
|
|
3253
|
+
toApiJson() {
|
|
3254
|
+
const toReturn = {};
|
|
3255
|
+
if (typeof this.applyDefaults !== 'undefined') {
|
|
3256
|
+
toReturn['applyDefaults'] = this.applyDefaults;
|
|
3257
|
+
}
|
|
3258
|
+
return toReturn;
|
|
3259
|
+
}
|
|
3260
|
+
}
|
|
3126
3261
|
class SetAssistantConnectionsRequest {
|
|
3127
3262
|
static fromProto(proto) {
|
|
3128
3263
|
let m = new SetAssistantConnectionsRequest();
|
|
@@ -3217,6 +3352,9 @@ class UpsertAssistantRequest {
|
|
|
3217
3352
|
if (proto.assistant) {
|
|
3218
3353
|
m.assistant = Assistant.fromProto(proto.assistant);
|
|
3219
3354
|
}
|
|
3355
|
+
if (proto.options) {
|
|
3356
|
+
m.options = UpsertAssistantRequestOptions.fromProto(proto.options);
|
|
3357
|
+
}
|
|
3220
3358
|
return m;
|
|
3221
3359
|
}
|
|
3222
3360
|
constructor(kwargs) {
|
|
@@ -3230,6 +3368,9 @@ class UpsertAssistantRequest {
|
|
|
3230
3368
|
if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
|
|
3231
3369
|
toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
|
|
3232
3370
|
}
|
|
3371
|
+
if (typeof this.options !== 'undefined' && this.options !== null) {
|
|
3372
|
+
toReturn['options'] = 'toApiJson' in this.options ? this.options.toApiJson() : this.options;
|
|
3373
|
+
}
|
|
3233
3374
|
return toReturn;
|
|
3234
3375
|
}
|
|
3235
3376
|
}
|
|
@@ -3715,5 +3856,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3715
3856
|
* Generated bundle index. Do not edit.
|
|
3716
3857
|
*/
|
|
3717
3858
|
|
|
3718
|
-
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, CreatePromptModuleRequest, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, Function, FunctionApiService, 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, 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, Namespace, NamespaceAccountGroupNamespace, NamespaceAccountGroupsForGroupNamespace, NamespaceAccountGroupsForPartnerNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest };
|
|
3859
|
+
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, CreatePromptModuleRequest, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, Function, FunctionApiService, 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, 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 };
|
|
3719
3860
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|