@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.
@@ -1014,6 +1014,12 @@ class MCP {
1014
1014
  if (proto.authStrategy) {
1015
1015
  m.authStrategy = FunctionAuthStrategy.fromProto(proto.authStrategy);
1016
1016
  }
1017
+ if (proto.headers) {
1018
+ m.headers = proto.headers.map(FunctionHeader.fromProto);
1019
+ }
1020
+ if (proto.constraints) {
1021
+ m.constraints = proto.constraints.map(Constraint.fromProto);
1022
+ }
1017
1023
  return m;
1018
1024
  }
1019
1025
  constructor(kwargs) {
@@ -1039,6 +1045,12 @@ class MCP {
1039
1045
  if (typeof this.sourcePath !== 'undefined') {
1040
1046
  toReturn['sourcePath'] = this.sourcePath;
1041
1047
  }
1048
+ if (typeof this.headers !== 'undefined' && this.headers !== null) {
1049
+ toReturn['headers'] = 'toApiJson' in this.headers ? this.headers.toApiJson() : this.headers;
1050
+ }
1051
+ if (typeof this.constraints !== 'undefined' && this.constraints !== null) {
1052
+ toReturn['constraints'] = 'toApiJson' in this.constraints ? this.constraints.toApiJson() : this.constraints;
1053
+ }
1042
1054
  return toReturn;
1043
1055
  }
1044
1056
  }
@@ -1112,12 +1124,6 @@ class SerializeMCPRequest {
1112
1124
  if (proto.mcp) {
1113
1125
  m.mcp = MCP.fromProto(proto.mcp);
1114
1126
  }
1115
- if (proto.headers) {
1116
- m.headers = proto.headers.map(FunctionHeader.fromProto);
1117
- }
1118
- if (proto.constraints) {
1119
- m.constraints = proto.constraints.map(Constraint.fromProto);
1120
- }
1121
1127
  return m;
1122
1128
  }
1123
1129
  constructor(kwargs) {
@@ -1131,12 +1137,6 @@ class SerializeMCPRequest {
1131
1137
  if (typeof this.mcp !== 'undefined' && this.mcp !== null) {
1132
1138
  toReturn['mcp'] = 'toApiJson' in this.mcp ? this.mcp.toApiJson() : this.mcp;
1133
1139
  }
1134
- if (typeof this.headers !== 'undefined' && this.headers !== null) {
1135
- toReturn['headers'] = 'toApiJson' in this.headers ? this.headers.toApiJson() : this.headers;
1136
- }
1137
- if (typeof this.constraints !== 'undefined' && this.constraints !== null) {
1138
- toReturn['constraints'] = 'toApiJson' in this.constraints ? this.constraints.toApiJson() : this.constraints;
1139
- }
1140
1140
  return toReturn;
1141
1141
  }
1142
1142
  }
@@ -1190,6 +1190,12 @@ class UpsertMCPRequest {
1190
1190
  if (proto.authStrategy) {
1191
1191
  m.authStrategy = FunctionAuthStrategy.fromProto(proto.authStrategy);
1192
1192
  }
1193
+ if (proto.headers) {
1194
+ m.headers = proto.headers.map(FunctionHeader.fromProto);
1195
+ }
1196
+ if (proto.constraints) {
1197
+ m.constraints = proto.constraints.map(Constraint.fromProto);
1198
+ }
1193
1199
  return m;
1194
1200
  }
1195
1201
  constructor(kwargs) {
@@ -1218,6 +1224,12 @@ class UpsertMCPRequest {
1218
1224
  if (typeof this.sourcePath !== 'undefined') {
1219
1225
  toReturn['sourcePath'] = this.sourcePath;
1220
1226
  }
1227
+ if (typeof this.headers !== 'undefined' && this.headers !== null) {
1228
+ toReturn['headers'] = 'toApiJson' in this.headers ? this.headers.toApiJson() : this.headers;
1229
+ }
1230
+ if (typeof this.constraints !== 'undefined' && this.constraints !== null) {
1231
+ toReturn['constraints'] = 'toApiJson' in this.constraints ? this.constraints.toApiJson() : this.constraints;
1232
+ }
1221
1233
  return toReturn;
1222
1234
  }
1223
1235
  }
@@ -1900,6 +1912,12 @@ class Assistant {
1900
1912
  if (proto.configurableGoals) {
1901
1913
  m.configurableGoals = proto.configurableGoals.map(ConfigurableGoal.fromProto);
1902
1914
  }
1915
+ if (proto.inputValidators) {
1916
+ m.inputValidators = proto.inputValidators.map(Validator.fromProto);
1917
+ }
1918
+ if (proto.outputValidators) {
1919
+ m.outputValidators = proto.outputValidators.map(Validator.fromProto);
1920
+ }
1903
1921
  return m;
1904
1922
  }
1905
1923
  constructor(kwargs) {
@@ -1940,6 +1958,12 @@ class Assistant {
1940
1958
  if (typeof this.description !== 'undefined') {
1941
1959
  toReturn['description'] = this.description;
1942
1960
  }
1961
+ if (typeof this.inputValidators !== 'undefined' && this.inputValidators !== null) {
1962
+ toReturn['inputValidators'] = 'toApiJson' in this.inputValidators ? this.inputValidators.toApiJson() : this.inputValidators;
1963
+ }
1964
+ if (typeof this.outputValidators !== 'undefined' && this.outputValidators !== null) {
1965
+ toReturn['outputValidators'] = 'toApiJson' in this.outputValidators ? this.outputValidators.toApiJson() : this.outputValidators;
1966
+ }
1943
1967
  return toReturn;
1944
1968
  }
1945
1969
  }
@@ -2235,6 +2259,29 @@ class OpenAIRealtimeConfigTurnDetection {
2235
2259
  return toReturn;
2236
2260
  }
2237
2261
  }
2262
+ class Validator {
2263
+ static fromProto(proto) {
2264
+ let m = new Validator();
2265
+ m = Object.assign(m, proto);
2266
+ return m;
2267
+ }
2268
+ constructor(kwargs) {
2269
+ if (!kwargs) {
2270
+ return;
2271
+ }
2272
+ Object.assign(this, kwargs);
2273
+ }
2274
+ toApiJson() {
2275
+ const toReturn = {};
2276
+ if (typeof this.name !== 'undefined') {
2277
+ toReturn['name'] = this.name;
2278
+ }
2279
+ if (typeof this.config !== 'undefined') {
2280
+ toReturn['config'] = this.config;
2281
+ }
2282
+ return toReturn;
2283
+ }
2284
+ }
2238
2285
  class ConfigVoiceConfig {
2239
2286
  static fromProto(proto) {
2240
2287
  let m = new ConfigVoiceConfig();
@@ -2261,6 +2308,9 @@ class ConfigVoiceConfig {
2261
2308
  if (typeof this.modelConfig !== 'undefined' && this.modelConfig !== null) {
2262
2309
  toReturn['modelConfig'] = 'toApiJson' in this.modelConfig ? this.modelConfig.toApiJson() : this.modelConfig;
2263
2310
  }
2311
+ if (typeof this.preGreetingMessage !== 'undefined') {
2312
+ toReturn['preGreetingMessage'] = this.preGreetingMessage;
2313
+ }
2264
2314
  return toReturn;
2265
2315
  }
2266
2316
  }
@@ -6410,5 +6460,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
6410
6460
  * Generated bundle index. Do not edit.
6411
6461
  */
6412
6462
 
6413
- 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 };
6463
+ 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 };
6414
6464
  //# sourceMappingURL=vendasta-ai-assistants.mjs.map