@vendasta/ai-assistants 0.15.0 → 0.17.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/answer.enum.mjs +2 -1
- package/esm2020/lib/_internal/enums/assistant.enum.mjs +2 -1
- 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 +27 -1
- package/esm2020/lib/_internal/objects/function.mjs +30 -1
- package/esm2020/lib/_internal/objects/index.mjs +3 -3
- package/fesm2015/vendasta-ai-assistants.mjs +58 -1
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +58 -1
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/enums/answer.enum.d.ts +2 -1
- package/lib/_internal/enums/assistant.enum.d.ts +2 -1
- package/lib/_internal/interfaces/assistant.interface.d.ts +4 -0
- package/lib/_internal/interfaces/function.interface.d.ts +5 -0
- package/lib/_internal/interfaces/index.d.ts +2 -2
- package/lib/_internal/objects/assistant.d.ts +7 -0
- package/lib/_internal/objects/function.d.ts +8 -0
- package/lib/_internal/objects/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -8,7 +8,8 @@ export declare enum ChatChannel {
|
|
|
8
8
|
CHAT_CHANNEL_INVALID = 0,
|
|
9
9
|
CHAT_CHANNEL_UNSPECIFIED = 1,
|
|
10
10
|
CHAT_CHANNEL_WEB = 2,
|
|
11
|
-
CHAT_CHANNEL_SMS = 3
|
|
11
|
+
CHAT_CHANNEL_SMS = 3,
|
|
12
|
+
CHAT_CHANNEL_WHATSAPP = 4
|
|
12
13
|
}
|
|
13
14
|
export declare enum ChatMessageRole {
|
|
14
15
|
CHAT_MESSAGE_ROLE_INVALID = 0,
|
|
@@ -21,12 +21,16 @@ export interface ConfigInterface {
|
|
|
21
21
|
export interface ConfigurableGoalInterface {
|
|
22
22
|
goal?: GoalInterface;
|
|
23
23
|
}
|
|
24
|
+
export interface DeepgramConfigInterface {
|
|
25
|
+
voice?: string;
|
|
26
|
+
}
|
|
24
27
|
export interface ConfigInboxConfigInterface {
|
|
25
28
|
leadCaptureEnabled?: boolean;
|
|
26
29
|
additionalInstructions?: string;
|
|
27
30
|
}
|
|
28
31
|
export interface ModelConfigInterface {
|
|
29
32
|
openaiRealtimeConfig?: OpenAIRealtimeConfigInterface;
|
|
33
|
+
deepgramConfig?: DeepgramConfigInterface;
|
|
30
34
|
}
|
|
31
35
|
export interface OpenAIRealtimeConfigInterface {
|
|
32
36
|
voice?: string;
|
|
@@ -8,6 +8,11 @@ export interface FunctionInterface {
|
|
|
8
8
|
functionParameters?: FunctionParameterInterface[];
|
|
9
9
|
generatesAnswer?: boolean;
|
|
10
10
|
updated?: Date;
|
|
11
|
+
headers?: FunctionHeaderInterface[];
|
|
12
|
+
}
|
|
13
|
+
export interface FunctionHeaderInterface {
|
|
14
|
+
key?: string;
|
|
15
|
+
value?: string;
|
|
11
16
|
}
|
|
12
17
|
export interface FunctionKeyInterface {
|
|
13
18
|
id?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { NamespaceAccountGroupNamespaceInterface, NamespaceAccountGroupsForGroupNamespaceInterface, NamespaceAccountGroupsForPartnerNamespaceInterface, NamespaceGlobalNamespaceInterface, NamespaceInterface, NamespacePartnerNamespaceInterface, NamespaceSystemNamespaceInterface, } from './namespace.interface';
|
|
2
|
-
export { FunctionInterface, FunctionKeyInterface, FunctionParameterInterface, } from './function.interface';
|
|
2
|
+
export { FunctionInterface, FunctionHeaderInterface, 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, ModelConfigInterface, OpenAIRealtimeConfigInterface, OpenAIRealtimeConfigTurnDetectionInterface, ConfigVoiceConfigInterface, } from './assistant.interface';
|
|
5
|
+
export { AssistantInterface, AssistantKeyInterface, ConfigInterface, ConfigurableGoalInterface, DeepgramConfigInterface, 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';
|
|
@@ -35,6 +35,12 @@ export declare class ConfigurableGoal implements i.ConfigurableGoalInterface {
|
|
|
35
35
|
constructor(kwargs?: i.ConfigurableGoalInterface);
|
|
36
36
|
toApiJson(): object;
|
|
37
37
|
}
|
|
38
|
+
export declare class DeepgramConfig implements i.DeepgramConfigInterface {
|
|
39
|
+
voice: string;
|
|
40
|
+
static fromProto(proto: any): DeepgramConfig;
|
|
41
|
+
constructor(kwargs?: i.DeepgramConfigInterface);
|
|
42
|
+
toApiJson(): object;
|
|
43
|
+
}
|
|
38
44
|
export declare class ConfigInboxConfig implements i.ConfigInboxConfigInterface {
|
|
39
45
|
leadCaptureEnabled: boolean;
|
|
40
46
|
additionalInstructions: string;
|
|
@@ -44,6 +50,7 @@ export declare class ConfigInboxConfig implements i.ConfigInboxConfigInterface {
|
|
|
44
50
|
}
|
|
45
51
|
export declare class ModelConfig implements i.ModelConfigInterface {
|
|
46
52
|
openaiRealtimeConfig: OpenAIRealtimeConfig;
|
|
53
|
+
deepgramConfig: DeepgramConfig;
|
|
47
54
|
static fromProto(proto: any): ModelConfig;
|
|
48
55
|
constructor(kwargs?: i.ModelConfigInterface);
|
|
49
56
|
toApiJson(): object;
|
|
@@ -10,10 +10,18 @@ export declare class Function implements i.FunctionInterface {
|
|
|
10
10
|
functionParameters: FunctionParameter[];
|
|
11
11
|
generatesAnswer: boolean;
|
|
12
12
|
updated: Date;
|
|
13
|
+
headers: FunctionHeader[];
|
|
13
14
|
static fromProto(proto: any): Function;
|
|
14
15
|
constructor(kwargs?: i.FunctionInterface);
|
|
15
16
|
toApiJson(): object;
|
|
16
17
|
}
|
|
18
|
+
export declare class FunctionHeader implements i.FunctionHeaderInterface {
|
|
19
|
+
key: string;
|
|
20
|
+
value: string;
|
|
21
|
+
static fromProto(proto: any): FunctionHeader;
|
|
22
|
+
constructor(kwargs?: i.FunctionHeaderInterface);
|
|
23
|
+
toApiJson(): object;
|
|
24
|
+
}
|
|
17
25
|
export declare class FunctionKey implements i.FunctionKeyInterface {
|
|
18
26
|
id: string;
|
|
19
27
|
namespace: Namespace;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { NamespaceAccountGroupNamespace, NamespaceAccountGroupsForGroupNamespace, NamespaceAccountGroupsForPartnerNamespace, NamespaceGlobalNamespace, Namespace, NamespacePartnerNamespace, NamespaceSystemNamespace, } from './namespace';
|
|
2
|
-
export { Function, FunctionKey, FunctionParameter, } from './function';
|
|
2
|
+
export { Function, FunctionHeader, 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, ModelConfig, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, ConfigVoiceConfig, } from './assistant';
|
|
5
|
+
export { Assistant, AssistantKey, Config, ConfigurableGoal, DeepgramConfig, 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';
|