@vendasta/ai-assistants 0.13.0 → 0.14.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/assistant.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/assistant.mjs +111 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-ai-assistants.mjs +116 -1
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +116 -1
- 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/assistant.interface.d.ts +17 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/assistant.d.ts +29 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- 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
|
|
@@ -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
|
}
|
|
@@ -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') {
|
|
@@ -3714,5 +3829,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3714
3829
|
* Generated bundle index. Do not edit.
|
|
3715
3830
|
*/
|
|
3716
3831
|
|
|
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 };
|
|
3832
|
+
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, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, VendorModel };
|
|
3718
3833
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|