@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.
@@ -14,6 +14,8 @@ export interface AssistantInterface {
14
14
  userId?: string;
15
15
  role?: string;
16
16
  description?: string;
17
+ inputValidators?: ValidatorInterface[];
18
+ outputValidators?: ValidatorInterface[];
17
19
  }
18
20
  export interface AssistantKeyInterface {
19
21
  id?: string;
@@ -61,7 +63,12 @@ export interface OpenAIRealtimeConfigTurnDetectionInterface {
61
63
  prefixPadding?: number;
62
64
  silenceDuration?: number;
63
65
  }
66
+ export interface ValidatorInterface {
67
+ name?: string;
68
+ config?: any;
69
+ }
64
70
  export interface ConfigVoiceConfigInterface {
65
71
  vendorModel?: e.VendorModel;
66
72
  modelConfig?: ModelConfigInterface;
73
+ preGreetingMessage?: string;
67
74
  }
@@ -87,6 +87,8 @@ export interface MCPInterface {
87
87
  namespace?: NamespaceInterface;
88
88
  authStrategy?: FunctionAuthStrategyInterface;
89
89
  sourcePath?: string;
90
+ headers?: FunctionHeaderInterface[];
91
+ constraints?: ConstraintInterface[];
90
92
  }
91
93
  export interface FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface {
92
94
  requiredScopes?: string[];
@@ -99,8 +101,6 @@ export interface SerializeFunctionResponseInterface {
99
101
  }
100
102
  export interface SerializeMCPRequestInterface {
101
103
  mcp?: MCPInterface;
102
- headers?: FunctionHeaderInterface[];
103
- constraints?: ConstraintInterface[];
104
104
  }
105
105
  export interface SerializeMCPResponseInterface {
106
106
  file?: string;
@@ -114,6 +114,8 @@ export interface UpsertMCPRequestInterface {
114
114
  functions?: FunctionInterface[];
115
115
  authStrategy?: FunctionAuthStrategyInterface;
116
116
  sourcePath?: string;
117
+ headers?: FunctionHeaderInterface[];
118
+ constraints?: ConstraintInterface[];
117
119
  }
118
120
  export interface ValidateFunctionsRequestInterface {
119
121
  functions?: FunctionInterface[];
@@ -6,7 +6,7 @@ export { PromptModuleInterface, PromptModuleKeyInterface, PromptModuleVersionInt
6
6
  export { GoalInterface, GoalKeyInterface, SerializeGoalRequestInterface, SerializeGoalResponseInterface, ValidateGoalsRequestInterface, ValidateGoalsResponseInterface, ValidateGoalsResponseValidationResultInterface, } from './goal.interface';
7
7
  export { KeyValuePairInterface, } from './common.interface';
8
8
  export { ModelInterface, } from './model.interface';
9
- export { AssistantInterface, AssistantKeyInterface, ConfigInterface, ConfigurableGoalInterface, DeepgramConfigInterface, ElevenLabsConfigInterface, ConfigInboxConfigInterface, ModelConfigInterface, OpenAIConfigInterface, OpenAIRealtimeConfigInterface, TemplateVariableInterface, OpenAIRealtimeConfigTurnDetectionInterface, ConfigVoiceConfigInterface, } from './assistant.interface';
9
+ export { AssistantInterface, AssistantKeyInterface, ConfigInterface, ConfigurableGoalInterface, DeepgramConfigInterface, ElevenLabsConfigInterface, ConfigInboxConfigInterface, ModelConfigInterface, OpenAIConfigInterface, OpenAIRealtimeConfigInterface, TemplateVariableInterface, OpenAIRealtimeConfigTurnDetectionInterface, ValidatorInterface, ConfigVoiceConfigInterface, } from './assistant.interface';
10
10
  export { ConnectionInterface, ConnectionKeyInterface, } from './connection.interface';
11
11
  export { ChatAnswerFunctionExecutionJobInterface, ChatAnswerFunctionExecutionJobResultInterface, ChatContentInterface, ChatMessageInterface, ChatUserInfoInterface, ContextInfoInterface, ImageContentInterface, } from './answer.interface';
12
12
  export { CancelTestRunRequestInterface, TestResultCitationInterface, DeleteTestCasesRequestInterface, GetTestRunRequestInterface, GetTestRunResponseInterface, ListTestCasesByAssistantRequestInterface, ListTestCasesByAssistantResponseInterface, ListTestRunsByAssistantRequestInterface, ListTestRunsByAssistantResponseInterface, RunTestsRequestInterface, RunTestsResponseInterface, SortOptionsInterface, TestCaseInterface, TestResultInterface, TestRunInterface, UpsertTestCasesRequestInterface, } from './integration-tests.interface';
@@ -16,6 +16,8 @@ export declare class Assistant implements i.AssistantInterface {
16
16
  userId: string;
17
17
  role: string;
18
18
  description: string;
19
+ inputValidators: Validator[];
20
+ outputValidators: Validator[];
19
21
  static fromProto(proto: any): Assistant;
20
22
  constructor(kwargs?: i.AssistantInterface);
21
23
  toApiJson(): object;
@@ -99,9 +101,17 @@ export declare class OpenAIRealtimeConfigTurnDetection implements i.OpenAIRealti
99
101
  constructor(kwargs?: i.OpenAIRealtimeConfigTurnDetectionInterface);
100
102
  toApiJson(): object;
101
103
  }
104
+ export declare class Validator implements i.ValidatorInterface {
105
+ name: string;
106
+ config: any;
107
+ static fromProto(proto: any): Validator;
108
+ constructor(kwargs?: i.ValidatorInterface);
109
+ toApiJson(): object;
110
+ }
102
111
  export declare class ConfigVoiceConfig implements i.ConfigVoiceConfigInterface {
103
112
  vendorModel: e.VendorModel;
104
113
  modelConfig: ModelConfig;
114
+ preGreetingMessage: string;
105
115
  static fromProto(proto: any): ConfigVoiceConfig;
106
116
  constructor(kwargs?: i.ConfigVoiceConfigInterface);
107
117
  toApiJson(): object;
@@ -131,6 +131,8 @@ export declare class MCP implements i.MCPInterface {
131
131
  namespace: Namespace;
132
132
  authStrategy: FunctionAuthStrategy;
133
133
  sourcePath: string;
134
+ headers: FunctionHeader[];
135
+ constraints: Constraint[];
134
136
  static fromProto(proto: any): MCP;
135
137
  constructor(kwargs?: i.MCPInterface);
136
138
  toApiJson(): object;
@@ -155,8 +157,6 @@ export declare class SerializeFunctionResponse implements i.SerializeFunctionRes
155
157
  }
156
158
  export declare class SerializeMCPRequest implements i.SerializeMCPRequestInterface {
157
159
  mcp: MCP;
158
- headers: FunctionHeader[];
159
- constraints: Constraint[];
160
160
  static fromProto(proto: any): SerializeMCPRequest;
161
161
  constructor(kwargs?: i.SerializeMCPRequestInterface);
162
162
  toApiJson(): object;
@@ -179,6 +179,8 @@ export declare class UpsertMCPRequest implements i.UpsertMCPRequestInterface {
179
179
  functions: Function[];
180
180
  authStrategy: FunctionAuthStrategy;
181
181
  sourcePath: string;
182
+ headers: FunctionHeader[];
183
+ constraints: Constraint[];
182
184
  static fromProto(proto: any): UpsertMCPRequest;
183
185
  constructor(kwargs?: i.UpsertMCPRequestInterface);
184
186
  toApiJson(): object;
@@ -6,7 +6,7 @@ export { PromptModule, PromptModuleKey, PromptModuleVersion, SerializePromptModu
6
6
  export { Goal, GoalKey, SerializeGoalRequest, SerializeGoalResponse, ValidateGoalsRequest, ValidateGoalsResponse, ValidateGoalsResponseValidationResult, } from './goal';
7
7
  export { KeyValuePair, } from './common';
8
8
  export { Model, } from './model';
9
- export { Assistant, AssistantKey, Config, ConfigurableGoal, DeepgramConfig, ElevenLabsConfig, ConfigInboxConfig, ModelConfig, OpenAIConfig, OpenAIRealtimeConfig, TemplateVariable, OpenAIRealtimeConfigTurnDetection, ConfigVoiceConfig, } from './assistant';
9
+ export { Assistant, AssistantKey, Config, ConfigurableGoal, DeepgramConfig, ElevenLabsConfig, ConfigInboxConfig, ModelConfig, OpenAIConfig, OpenAIRealtimeConfig, TemplateVariable, OpenAIRealtimeConfigTurnDetection, Validator, ConfigVoiceConfig, } from './assistant';
10
10
  export { Connection, ConnectionKey, } from './connection';
11
11
  export { ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatContent, ChatMessage, ChatUserInfo, ContextInfo, ImageContent, } from './answer';
12
12
  export { CancelTestRunRequest, TestResultCitation, DeleteTestCasesRequest, GetTestRunRequest, GetTestRunResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, RunTestsRequest, RunTestsResponse, SortOptions, TestCase, TestResult, TestRun, UpsertTestCasesRequest, } from './integration-tests';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/ai-assistants",
3
- "version": "0.63.0",
3
+ "version": "0.65.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"