@vendasta/ai-assistants 0.63.0 → 0.65.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/function.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/assistant.mjs +39 -1
- package/esm2020/lib/_internal/objects/function.mjs +25 -13
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-ai-assistants.mjs +63 -13
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +63 -13
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/interfaces/assistant.interface.d.ts +7 -0
- package/lib/_internal/interfaces/function.interface.d.ts +4 -2
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/assistant.d.ts +10 -0
- package/lib/_internal/objects/function.d.ts +4 -2
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1013,6 +1013,12 @@ class MCP {
|
|
|
1013
1013
|
if (proto.authStrategy) {
|
|
1014
1014
|
m.authStrategy = FunctionAuthStrategy.fromProto(proto.authStrategy);
|
|
1015
1015
|
}
|
|
1016
|
+
if (proto.headers) {
|
|
1017
|
+
m.headers = proto.headers.map(FunctionHeader.fromProto);
|
|
1018
|
+
}
|
|
1019
|
+
if (proto.constraints) {
|
|
1020
|
+
m.constraints = proto.constraints.map(Constraint.fromProto);
|
|
1021
|
+
}
|
|
1016
1022
|
return m;
|
|
1017
1023
|
}
|
|
1018
1024
|
constructor(kwargs) {
|
|
@@ -1038,6 +1044,12 @@ class MCP {
|
|
|
1038
1044
|
if (typeof this.sourcePath !== 'undefined') {
|
|
1039
1045
|
toReturn['sourcePath'] = this.sourcePath;
|
|
1040
1046
|
}
|
|
1047
|
+
if (typeof this.headers !== 'undefined' && this.headers !== null) {
|
|
1048
|
+
toReturn['headers'] = 'toApiJson' in this.headers ? this.headers.toApiJson() : this.headers;
|
|
1049
|
+
}
|
|
1050
|
+
if (typeof this.constraints !== 'undefined' && this.constraints !== null) {
|
|
1051
|
+
toReturn['constraints'] = 'toApiJson' in this.constraints ? this.constraints.toApiJson() : this.constraints;
|
|
1052
|
+
}
|
|
1041
1053
|
return toReturn;
|
|
1042
1054
|
}
|
|
1043
1055
|
}
|
|
@@ -1111,12 +1123,6 @@ class SerializeMCPRequest {
|
|
|
1111
1123
|
if (proto.mcp) {
|
|
1112
1124
|
m.mcp = MCP.fromProto(proto.mcp);
|
|
1113
1125
|
}
|
|
1114
|
-
if (proto.headers) {
|
|
1115
|
-
m.headers = proto.headers.map(FunctionHeader.fromProto);
|
|
1116
|
-
}
|
|
1117
|
-
if (proto.constraints) {
|
|
1118
|
-
m.constraints = proto.constraints.map(Constraint.fromProto);
|
|
1119
|
-
}
|
|
1120
1126
|
return m;
|
|
1121
1127
|
}
|
|
1122
1128
|
constructor(kwargs) {
|
|
@@ -1130,12 +1136,6 @@ class SerializeMCPRequest {
|
|
|
1130
1136
|
if (typeof this.mcp !== 'undefined' && this.mcp !== null) {
|
|
1131
1137
|
toReturn['mcp'] = 'toApiJson' in this.mcp ? this.mcp.toApiJson() : this.mcp;
|
|
1132
1138
|
}
|
|
1133
|
-
if (typeof this.headers !== 'undefined' && this.headers !== null) {
|
|
1134
|
-
toReturn['headers'] = 'toApiJson' in this.headers ? this.headers.toApiJson() : this.headers;
|
|
1135
|
-
}
|
|
1136
|
-
if (typeof this.constraints !== 'undefined' && this.constraints !== null) {
|
|
1137
|
-
toReturn['constraints'] = 'toApiJson' in this.constraints ? this.constraints.toApiJson() : this.constraints;
|
|
1138
|
-
}
|
|
1139
1139
|
return toReturn;
|
|
1140
1140
|
}
|
|
1141
1141
|
}
|
|
@@ -1189,6 +1189,12 @@ class UpsertMCPRequest {
|
|
|
1189
1189
|
if (proto.authStrategy) {
|
|
1190
1190
|
m.authStrategy = FunctionAuthStrategy.fromProto(proto.authStrategy);
|
|
1191
1191
|
}
|
|
1192
|
+
if (proto.headers) {
|
|
1193
|
+
m.headers = proto.headers.map(FunctionHeader.fromProto);
|
|
1194
|
+
}
|
|
1195
|
+
if (proto.constraints) {
|
|
1196
|
+
m.constraints = proto.constraints.map(Constraint.fromProto);
|
|
1197
|
+
}
|
|
1192
1198
|
return m;
|
|
1193
1199
|
}
|
|
1194
1200
|
constructor(kwargs) {
|
|
@@ -1217,6 +1223,12 @@ class UpsertMCPRequest {
|
|
|
1217
1223
|
if (typeof this.sourcePath !== 'undefined') {
|
|
1218
1224
|
toReturn['sourcePath'] = this.sourcePath;
|
|
1219
1225
|
}
|
|
1226
|
+
if (typeof this.headers !== 'undefined' && this.headers !== null) {
|
|
1227
|
+
toReturn['headers'] = 'toApiJson' in this.headers ? this.headers.toApiJson() : this.headers;
|
|
1228
|
+
}
|
|
1229
|
+
if (typeof this.constraints !== 'undefined' && this.constraints !== null) {
|
|
1230
|
+
toReturn['constraints'] = 'toApiJson' in this.constraints ? this.constraints.toApiJson() : this.constraints;
|
|
1231
|
+
}
|
|
1220
1232
|
return toReturn;
|
|
1221
1233
|
}
|
|
1222
1234
|
}
|
|
@@ -1899,6 +1911,12 @@ class Assistant {
|
|
|
1899
1911
|
if (proto.configurableGoals) {
|
|
1900
1912
|
m.configurableGoals = proto.configurableGoals.map(ConfigurableGoal.fromProto);
|
|
1901
1913
|
}
|
|
1914
|
+
if (proto.inputValidators) {
|
|
1915
|
+
m.inputValidators = proto.inputValidators.map(Validator.fromProto);
|
|
1916
|
+
}
|
|
1917
|
+
if (proto.outputValidators) {
|
|
1918
|
+
m.outputValidators = proto.outputValidators.map(Validator.fromProto);
|
|
1919
|
+
}
|
|
1902
1920
|
return m;
|
|
1903
1921
|
}
|
|
1904
1922
|
constructor(kwargs) {
|
|
@@ -1939,6 +1957,12 @@ class Assistant {
|
|
|
1939
1957
|
if (typeof this.description !== 'undefined') {
|
|
1940
1958
|
toReturn['description'] = this.description;
|
|
1941
1959
|
}
|
|
1960
|
+
if (typeof this.inputValidators !== 'undefined' && this.inputValidators !== null) {
|
|
1961
|
+
toReturn['inputValidators'] = 'toApiJson' in this.inputValidators ? this.inputValidators.toApiJson() : this.inputValidators;
|
|
1962
|
+
}
|
|
1963
|
+
if (typeof this.outputValidators !== 'undefined' && this.outputValidators !== null) {
|
|
1964
|
+
toReturn['outputValidators'] = 'toApiJson' in this.outputValidators ? this.outputValidators.toApiJson() : this.outputValidators;
|
|
1965
|
+
}
|
|
1942
1966
|
return toReturn;
|
|
1943
1967
|
}
|
|
1944
1968
|
}
|
|
@@ -2234,6 +2258,29 @@ class OpenAIRealtimeConfigTurnDetection {
|
|
|
2234
2258
|
return toReturn;
|
|
2235
2259
|
}
|
|
2236
2260
|
}
|
|
2261
|
+
class Validator {
|
|
2262
|
+
static fromProto(proto) {
|
|
2263
|
+
let m = new Validator();
|
|
2264
|
+
m = Object.assign(m, proto);
|
|
2265
|
+
return m;
|
|
2266
|
+
}
|
|
2267
|
+
constructor(kwargs) {
|
|
2268
|
+
if (!kwargs) {
|
|
2269
|
+
return;
|
|
2270
|
+
}
|
|
2271
|
+
Object.assign(this, kwargs);
|
|
2272
|
+
}
|
|
2273
|
+
toApiJson() {
|
|
2274
|
+
const toReturn = {};
|
|
2275
|
+
if (typeof this.name !== 'undefined') {
|
|
2276
|
+
toReturn['name'] = this.name;
|
|
2277
|
+
}
|
|
2278
|
+
if (typeof this.config !== 'undefined') {
|
|
2279
|
+
toReturn['config'] = this.config;
|
|
2280
|
+
}
|
|
2281
|
+
return toReturn;
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2237
2284
|
class ConfigVoiceConfig {
|
|
2238
2285
|
static fromProto(proto) {
|
|
2239
2286
|
let m = new ConfigVoiceConfig();
|
|
@@ -2260,6 +2307,9 @@ class ConfigVoiceConfig {
|
|
|
2260
2307
|
if (typeof this.modelConfig !== 'undefined' && this.modelConfig !== null) {
|
|
2261
2308
|
toReturn['modelConfig'] = 'toApiJson' in this.modelConfig ? this.modelConfig.toApiJson() : this.modelConfig;
|
|
2262
2309
|
}
|
|
2310
|
+
if (typeof this.preGreetingMessage !== 'undefined') {
|
|
2311
|
+
toReturn['preGreetingMessage'] = this.preGreetingMessage;
|
|
2312
|
+
}
|
|
2263
2313
|
return toReturn;
|
|
2264
2314
|
}
|
|
2265
2315
|
}
|
|
@@ -6409,5 +6459,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
6409
6459
|
* Generated bundle index. Do not edit.
|
|
6410
6460
|
*/
|
|
6411
6461
|
|
|
6412
|
-
export { Access, Action, AgentArchitecture, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatContent, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, Constraint, ConstraintFilter, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreateMCPFromIntegrationRequest, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeleteMCPRequest, DeletePromptModuleRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, Effect, ElevenLabsConfig, ExecuteFunctionRequest, ExecuteFunctionRequestOptions, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyConnectedIntegrationAuthStrategy, FunctionAuthStrategyImpersonationAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantRequestOptions, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantRequestOptions, GetMultiAssistantResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetTestRunRequest, GetTestRunResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, ImageContent, IntegrationTestApiService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsRequestFilters, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsRequestSortOptions, ListGoalsRequestSortingOrder, ListGoalsResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsRequestFilters, ListMCPsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListTemplateVariablesRequest, ListTemplateVariablesResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, MCP, MCPOptions, Model, ModelConfig, ModelType, ModelVendor, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, NamespaceType, OpenAIConfig, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, RunTestsRequest, RunTestsResponse, Scope, SerializeFunctionRequest, SerializeFunctionResponse, SerializeGoalRequest, SerializeGoalResponse, SerializeMCPRequest, SerializeMCPResponse, SerializePromptModuleRequest, SerializePromptModuleResponse, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SetConnectionAssistantRequest, SortDirection, SortOptions, StreamingGenerateChatAnswerResponseContentType, TemplateVariable, TestCase, TestResult, TestResultCitation, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertMCPRequest, UpsertTestCasesRequest, ValidateFunctionsRequest, ValidateFunctionsResponse, ValidateFunctionsResponseValidationResult, ValidateGoalsRequest, ValidateGoalsResponse, ValidateGoalsResponseValidationResult, ValidateMCPsRequest, ValidateMCPsResponse, ValidateMCPsResponseValidationResult, ValidatePromptModuleRequest, ValidatePromptModuleResponse, ValidatePromptModuleVersionsRequest, ValidatePromptModuleVersionsResponse, ValidatePromptModuleVersionsResponseValidationResult, ValidatePromptModulesRequest, ValidatePromptModulesResponse, ValidatePromptModulesResponseValidationResult, ValidationFailureAction, ValidationResult, ValidationViolation, VendorModel };
|
|
6462
|
+
export { Access, Action, AgentArchitecture, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatContent, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, Constraint, ConstraintFilter, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreateMCPFromIntegrationRequest, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeleteMCPRequest, DeletePromptModuleRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, Effect, ElevenLabsConfig, ExecuteFunctionRequest, ExecuteFunctionRequestOptions, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyConnectedIntegrationAuthStrategy, FunctionAuthStrategyImpersonationAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantRequestOptions, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantRequestOptions, GetMultiAssistantResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetTestRunRequest, GetTestRunResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, ImageContent, IntegrationTestApiService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsRequestFilters, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsRequestSortOptions, ListGoalsRequestSortingOrder, ListGoalsResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsRequestFilters, ListMCPsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListTemplateVariablesRequest, ListTemplateVariablesResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, MCP, MCPOptions, Model, ModelConfig, ModelType, ModelVendor, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, NamespaceType, OpenAIConfig, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, RunTestsRequest, RunTestsResponse, Scope, SerializeFunctionRequest, SerializeFunctionResponse, SerializeGoalRequest, SerializeGoalResponse, SerializeMCPRequest, SerializeMCPResponse, SerializePromptModuleRequest, SerializePromptModuleResponse, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SetConnectionAssistantRequest, SortDirection, SortOptions, StreamingGenerateChatAnswerResponseContentType, TemplateVariable, TestCase, TestResult, TestResultCitation, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertMCPRequest, UpsertTestCasesRequest, ValidateFunctionsRequest, ValidateFunctionsResponse, ValidateFunctionsResponseValidationResult, ValidateGoalsRequest, ValidateGoalsResponse, ValidateGoalsResponseValidationResult, ValidateMCPsRequest, ValidateMCPsResponse, ValidateMCPsResponseValidationResult, ValidatePromptModuleRequest, ValidatePromptModuleResponse, ValidatePromptModuleVersionsRequest, ValidatePromptModuleVersionsResponse, ValidatePromptModuleVersionsResponseValidationResult, ValidatePromptModulesRequest, ValidatePromptModulesResponse, ValidatePromptModulesResponseValidationResult, ValidationFailureAction, ValidationResult, ValidationViolation, Validator, VendorModel };
|
|
6413
6463
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|