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