@vendasta/ai-assistants 0.20.0 → 0.21.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/interfaces/assistant.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/assistant.mjs +8 -30
- package/esm2020/lib/_internal/objects/index.mjs +3 -3
- package/fesm2015/vendasta-ai-assistants.mjs +41 -64
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +41 -64
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/interfaces/assistant.interface.d.ts +2 -5
- package/lib/_internal/interfaces/index.d.ts +2 -2
- package/lib/_internal/objects/assistant.d.ts +2 -8
- package/lib/_internal/objects/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -749,6 +749,36 @@ function enumStringToValue$6(enumRef, value) {
|
|
|
749
749
|
}
|
|
750
750
|
return enumRef[value];
|
|
751
751
|
}
|
|
752
|
+
class KeyValuePair {
|
|
753
|
+
static fromProto(proto) {
|
|
754
|
+
let m = new KeyValuePair();
|
|
755
|
+
m = Object.assign(m, proto);
|
|
756
|
+
return m;
|
|
757
|
+
}
|
|
758
|
+
constructor(kwargs) {
|
|
759
|
+
if (!kwargs) {
|
|
760
|
+
return;
|
|
761
|
+
}
|
|
762
|
+
Object.assign(this, kwargs);
|
|
763
|
+
}
|
|
764
|
+
toApiJson() {
|
|
765
|
+
const toReturn = {};
|
|
766
|
+
if (typeof this.key !== 'undefined') {
|
|
767
|
+
toReturn['key'] = this.key;
|
|
768
|
+
}
|
|
769
|
+
if (typeof this.value !== 'undefined') {
|
|
770
|
+
toReturn['value'] = this.value;
|
|
771
|
+
}
|
|
772
|
+
return toReturn;
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
function enumStringToValue$5(enumRef, value) {
|
|
777
|
+
if (typeof value === 'number') {
|
|
778
|
+
return value;
|
|
779
|
+
}
|
|
780
|
+
return enumRef[value];
|
|
781
|
+
}
|
|
752
782
|
class Assistant {
|
|
753
783
|
static fromProto(proto) {
|
|
754
784
|
let m = new Assistant();
|
|
@@ -757,7 +787,7 @@ class Assistant {
|
|
|
757
787
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
758
788
|
}
|
|
759
789
|
if (proto.type) {
|
|
760
|
-
m.type = enumStringToValue$
|
|
790
|
+
m.type = enumStringToValue$5(AssistantType, proto.type);
|
|
761
791
|
}
|
|
762
792
|
if (proto.config) {
|
|
763
793
|
m.config = Config.fromProto(proto.config);
|
|
@@ -825,29 +855,6 @@ class AssistantKey {
|
|
|
825
855
|
return toReturn;
|
|
826
856
|
}
|
|
827
857
|
}
|
|
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
858
|
class Config {
|
|
852
859
|
static fromProto(proto) {
|
|
853
860
|
let m = new Config();
|
|
@@ -884,6 +891,9 @@ class ConfigurableGoal {
|
|
|
884
891
|
if (proto.goal) {
|
|
885
892
|
m.goal = Goal.fromProto(proto.goal);
|
|
886
893
|
}
|
|
894
|
+
if (proto.configuration) {
|
|
895
|
+
m.configuration = proto.configuration.map(KeyValuePair.fromProto);
|
|
896
|
+
}
|
|
887
897
|
return m;
|
|
888
898
|
}
|
|
889
899
|
constructor(kwargs) {
|
|
@@ -897,6 +907,9 @@ class ConfigurableGoal {
|
|
|
897
907
|
if (typeof this.goal !== 'undefined' && this.goal !== null) {
|
|
898
908
|
toReturn['goal'] = 'toApiJson' in this.goal ? this.goal.toApiJson() : this.goal;
|
|
899
909
|
}
|
|
910
|
+
if (typeof this.configuration !== 'undefined' && this.configuration !== null) {
|
|
911
|
+
toReturn['configuration'] = 'toApiJson' in this.configuration ? this.configuration.toApiJson() : this.configuration;
|
|
912
|
+
}
|
|
900
913
|
return toReturn;
|
|
901
914
|
}
|
|
902
915
|
}
|
|
@@ -924,9 +937,6 @@ class ConfigInboxConfig {
|
|
|
924
937
|
static fromProto(proto) {
|
|
925
938
|
let m = new ConfigInboxConfig();
|
|
926
939
|
m = Object.assign(m, proto);
|
|
927
|
-
if (proto.bookingConfig) {
|
|
928
|
-
m.bookingConfig = BookingConfig.fromProto(proto.bookingConfig);
|
|
929
|
-
}
|
|
930
940
|
return m;
|
|
931
941
|
}
|
|
932
942
|
constructor(kwargs) {
|
|
@@ -943,9 +953,6 @@ class ConfigInboxConfig {
|
|
|
943
953
|
if (typeof this.additionalInstructions !== 'undefined') {
|
|
944
954
|
toReturn['additionalInstructions'] = this.additionalInstructions;
|
|
945
955
|
}
|
|
946
|
-
if (typeof this.bookingConfig !== 'undefined' && this.bookingConfig !== null) {
|
|
947
|
-
toReturn['bookingConfig'] = 'toApiJson' in this.bookingConfig ? this.bookingConfig.toApiJson() : this.bookingConfig;
|
|
948
|
-
}
|
|
949
956
|
return toReturn;
|
|
950
957
|
}
|
|
951
958
|
}
|
|
@@ -1035,7 +1042,7 @@ class ConfigVoiceConfig {
|
|
|
1035
1042
|
let m = new ConfigVoiceConfig();
|
|
1036
1043
|
m = Object.assign(m, proto);
|
|
1037
1044
|
if (proto.vendorModel) {
|
|
1038
|
-
m.vendorModel = enumStringToValue$
|
|
1045
|
+
m.vendorModel = enumStringToValue$5(VendorModel, proto.vendorModel);
|
|
1039
1046
|
}
|
|
1040
1047
|
if (proto.modelConfig) {
|
|
1041
1048
|
m.modelConfig = ModelConfig.fromProto(proto.modelConfig);
|
|
@@ -1060,7 +1067,7 @@ class ConfigVoiceConfig {
|
|
|
1060
1067
|
}
|
|
1061
1068
|
}
|
|
1062
1069
|
|
|
1063
|
-
function enumStringToValue$
|
|
1070
|
+
function enumStringToValue$4(enumRef, value) {
|
|
1064
1071
|
if (typeof value === 'number') {
|
|
1065
1072
|
return value;
|
|
1066
1073
|
}
|
|
@@ -1077,7 +1084,7 @@ class Connection {
|
|
|
1077
1084
|
m.assistantKeys = proto.assistantKeys.map(AssistantKey.fromProto);
|
|
1078
1085
|
}
|
|
1079
1086
|
if (proto.supportedAssistantTypes) {
|
|
1080
|
-
m.supportedAssistantTypes = proto.supportedAssistantTypes.map((v) => enumStringToValue$
|
|
1087
|
+
m.supportedAssistantTypes = proto.supportedAssistantTypes.map((v) => enumStringToValue$4(AssistantType, v));
|
|
1081
1088
|
}
|
|
1082
1089
|
return m;
|
|
1083
1090
|
}
|
|
@@ -1152,36 +1159,6 @@ class ConnectionKey {
|
|
|
1152
1159
|
}
|
|
1153
1160
|
}
|
|
1154
1161
|
|
|
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
1162
|
function enumStringToValue$3(enumRef, value) {
|
|
1186
1163
|
if (typeof value === 'number') {
|
|
1187
1164
|
return value;
|
|
@@ -4064,5 +4041,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4064
4041
|
* Generated bundle index. Do not edit.
|
|
4065
4042
|
*/
|
|
4066
4043
|
|
|
4067
|
-
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType,
|
|
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 };
|
|
4068
4045
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|