@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.
@@ -5,3 +5,7 @@ export declare enum AssistantType {
5
5
  ASSISTANT_TYPE_SOCIAL_MARKETING = 3,
6
6
  ASSISTANT_TYPE_VOICE_RECEPTIONIST = 4
7
7
  }
8
+ export declare enum VendorModel {
9
+ VENDOR_MODEL_UNSPECIFIED = 0,
10
+ VENDOR_MODEL_OPEN_AI_REALTIME = 1
11
+ }
@@ -1,3 +1,3 @@
1
1
  export { GoalChannel, GoalType, } from './goal.enum';
2
- export { AssistantType, } from './assistant.enum';
2
+ export { AssistantType, VendorModel, } from './assistant.enum';
3
3
  export { ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessageRole, } from './answer.enum';
@@ -16,6 +16,7 @@ export interface AssistantKeyInterface {
16
16
  }
17
17
  export interface ConfigInterface {
18
18
  inboxConfig?: ConfigInboxConfigInterface;
19
+ voiceConfig?: ConfigVoiceConfigInterface;
19
20
  }
20
21
  export interface ConfigurableGoalInterface {
21
22
  goalKey?: GoalKeyInterface;
@@ -24,3 +25,19 @@ export interface ConfigInboxConfigInterface {
24
25
  leadCaptureEnabled?: boolean;
25
26
  additionalInstructions?: string;
26
27
  }
28
+ export interface ModelConfigInterface {
29
+ openaiRealtimeConfig?: OpenAIRealtimeConfigInterface;
30
+ }
31
+ export interface OpenAIRealtimeConfigInterface {
32
+ voice?: string;
33
+ turnDetection?: OpenAIRealtimeConfigTurnDetectionInterface;
34
+ }
35
+ export interface OpenAIRealtimeConfigTurnDetectionInterface {
36
+ threshold?: number;
37
+ prefixPadding?: number;
38
+ silenceDuration?: number;
39
+ }
40
+ export interface ConfigVoiceConfigInterface {
41
+ vendorModel?: e.VendorModel;
42
+ modelConfig?: ModelConfigInterface;
43
+ }
@@ -2,7 +2,7 @@ export { NamespaceAccountGroupNamespaceInterface, NamespaceAccountGroupsForGroup
2
2
  export { FunctionInterface, FunctionKeyInterface, FunctionParameterInterface, } from './function.interface';
3
3
  export { PromptInterface, PromptModuleInterface, PromptModuleKeyInterface, PromptModuleVersionInterface, PromptVersionInterface, } from './prompt.interface';
4
4
  export { GoalInterface, GoalKeyInterface, } from './goal.interface';
5
- export { AssistantInterface, AssistantKeyInterface, ConfigInterface, ConfigurableGoalInterface, ConfigInboxConfigInterface, } from './assistant.interface';
5
+ export { AssistantInterface, AssistantKeyInterface, ConfigInterface, ConfigurableGoalInterface, ConfigInboxConfigInterface, ModelConfigInterface, OpenAIRealtimeConfigInterface, OpenAIRealtimeConfigTurnDetectionInterface, ConfigVoiceConfigInterface, } from './assistant.interface';
6
6
  export { ConnectionInterface, ConnectionKeyInterface, } from './connection.interface';
7
7
  export { KeyValuePairInterface, } from './common.interface';
8
8
  export { ChatAnswerFunctionExecutionJobInterface, ChatAnswerFunctionExecutionJobResultInterface, ChatMessageInterface, ChatUserInfoInterface, } from './answer.interface';
@@ -24,6 +24,7 @@ export declare class AssistantKey implements i.AssistantKeyInterface {
24
24
  }
25
25
  export declare class Config implements i.ConfigInterface {
26
26
  inboxConfig: ConfigInboxConfig;
27
+ voiceConfig: ConfigVoiceConfig;
27
28
  static fromProto(proto: any): Config;
28
29
  constructor(kwargs?: i.ConfigInterface);
29
30
  toApiJson(): object;
@@ -41,3 +42,31 @@ export declare class ConfigInboxConfig implements i.ConfigInboxConfigInterface {
41
42
  constructor(kwargs?: i.ConfigInboxConfigInterface);
42
43
  toApiJson(): object;
43
44
  }
45
+ export declare class ModelConfig implements i.ModelConfigInterface {
46
+ openaiRealtimeConfig: OpenAIRealtimeConfig;
47
+ static fromProto(proto: any): ModelConfig;
48
+ constructor(kwargs?: i.ModelConfigInterface);
49
+ toApiJson(): object;
50
+ }
51
+ export declare class OpenAIRealtimeConfig implements i.OpenAIRealtimeConfigInterface {
52
+ voice: string;
53
+ turnDetection: OpenAIRealtimeConfigTurnDetection;
54
+ static fromProto(proto: any): OpenAIRealtimeConfig;
55
+ constructor(kwargs?: i.OpenAIRealtimeConfigInterface);
56
+ toApiJson(): object;
57
+ }
58
+ export declare class OpenAIRealtimeConfigTurnDetection implements i.OpenAIRealtimeConfigTurnDetectionInterface {
59
+ threshold: number;
60
+ prefixPadding: number;
61
+ silenceDuration: number;
62
+ static fromProto(proto: any): OpenAIRealtimeConfigTurnDetection;
63
+ constructor(kwargs?: i.OpenAIRealtimeConfigTurnDetectionInterface);
64
+ toApiJson(): object;
65
+ }
66
+ export declare class ConfigVoiceConfig implements i.ConfigVoiceConfigInterface {
67
+ vendorModel: e.VendorModel;
68
+ modelConfig: ModelConfig;
69
+ static fromProto(proto: any): ConfigVoiceConfig;
70
+ constructor(kwargs?: i.ConfigVoiceConfigInterface);
71
+ toApiJson(): object;
72
+ }
@@ -2,7 +2,7 @@ export { NamespaceAccountGroupNamespace, NamespaceAccountGroupsForGroupNamespace
2
2
  export { Function, FunctionKey, FunctionParameter, } from './function';
3
3
  export { Prompt, PromptModule, PromptModuleKey, PromptModuleVersion, PromptVersion, } from './prompt';
4
4
  export { Goal, GoalKey, } from './goal';
5
- export { Assistant, AssistantKey, Config, ConfigurableGoal, ConfigInboxConfig, } from './assistant';
5
+ export { Assistant, AssistantKey, Config, ConfigurableGoal, ConfigInboxConfig, ModelConfig, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, ConfigVoiceConfig, } from './assistant';
6
6
  export { Connection, ConnectionKey, } from './connection';
7
7
  export { KeyValuePair, } from './common';
8
8
  export { ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatMessage, ChatUserInfo, } from './answer';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/ai-assistants",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"