@vendasta/ai-assistants 0.30.0 → 0.31.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/assistant.enum.mjs +3 -1
- package/esm2020/lib/_internal/interfaces/answer.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/namespace.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/answer.mjs +24 -1
- package/esm2020/lib/_internal/objects/api.mjs +14 -2
- package/esm2020/lib/_internal/objects/index.mjs +3 -3
- package/esm2020/lib/_internal/objects/namespace.mjs +1 -53
- package/fesm2015/vendasta-ai-assistants.mjs +38 -53
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +38 -53
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/enums/assistant.enum.d.ts +3 -1
- package/lib/_internal/interfaces/answer.interface.d.ts +3 -0
- package/lib/_internal/interfaces/api.interface.d.ts +3 -1
- package/lib/_internal/interfaces/index.d.ts +2 -2
- package/lib/_internal/interfaces/namespace.interface.d.ts +0 -8
- package/lib/_internal/objects/answer.d.ts +6 -0
- package/lib/_internal/objects/api.d.ts +3 -1
- package/lib/_internal/objects/index.d.ts +2 -2
- package/lib/_internal/objects/namespace.d.ts +0 -14
- package/package.json +1 -1
|
@@ -4,7 +4,9 @@ export declare enum AssistantType {
|
|
|
4
4
|
ASSISTANT_TYPE_INBOX = 2,
|
|
5
5
|
ASSISTANT_TYPE_SOCIAL_MARKETING = 3,
|
|
6
6
|
ASSISTANT_TYPE_VOICE_RECEPTIONIST = 4,
|
|
7
|
-
ASSISTANT_TYPE_CUSTOM = 5
|
|
7
|
+
ASSISTANT_TYPE_CUSTOM = 5,
|
|
8
|
+
ASSISTANT_TYPE_SALES_COACH = 6,
|
|
9
|
+
ASSISTANT_TYPE_REPUTATION_MANAGEMENT_REVIEW_AGENT = 7
|
|
8
10
|
}
|
|
9
11
|
export declare enum VendorModel {
|
|
10
12
|
VENDOR_MODEL_UNSPECIFIED = 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AssistantInterface, AssistantKeyInterface } from './assistant.interface';
|
|
2
|
-
import { ChatMessageInterface, ChatUserInfoInterface, ChatAnswerFunctionExecutionJobInterface } from './answer.interface';
|
|
2
|
+
import { ChatMessageInterface, ChatUserInfoInterface, ContextInfoInterface, ChatAnswerFunctionExecutionJobInterface } from './answer.interface';
|
|
3
3
|
import { ConnectionKeyInterface, ConnectionInterface } from './connection.interface';
|
|
4
4
|
import { FieldMaskInterface } from './field-mask.interface';
|
|
5
5
|
import { FunctionKeyInterface, FunctionInterface } from './function.interface';
|
|
@@ -127,6 +127,7 @@ export interface GenerateChatAnswerRequestInterface {
|
|
|
127
127
|
chatChannel?: e.ChatChannel;
|
|
128
128
|
options?: GenerateChatAnswerRequestOptionsInterface;
|
|
129
129
|
assistantKey?: AssistantKeyInterface;
|
|
130
|
+
contextInfo?: ContextInfoInterface;
|
|
130
131
|
}
|
|
131
132
|
export interface GenerateChatAnswerResponseInterface {
|
|
132
133
|
answer?: string;
|
|
@@ -255,6 +256,7 @@ export interface GoalsDisabledForAccountGroupResponseInterface {
|
|
|
255
256
|
export interface ListAllAssistantsAssociatedToConnectionRequestInterface {
|
|
256
257
|
connectionKey?: ConnectionKeyInterface;
|
|
257
258
|
filters?: ListAllAssistantsAssociatedToConnectionRequestFiltersInterface;
|
|
259
|
+
fieldMask?: FieldMaskInterface;
|
|
258
260
|
}
|
|
259
261
|
export interface ListAllAssistantsAssociatedToConnectionResponseInterface {
|
|
260
262
|
assistants?: AssistantInterface[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { NamespaceAccountGroupNamespaceInterface,
|
|
1
|
+
export { NamespaceAccountGroupNamespaceInterface, NamespaceGlobalNamespaceInterface, NamespaceInterface, NamespacePartnerNamespaceInterface, NamespaceSystemNamespaceInterface, } from './namespace.interface';
|
|
2
2
|
export { FunctionInterface, FunctionAuthStrategyInterface, FunctionHeaderInterface, FunctionKeyInterface, FunctionParameterInterface, FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface, FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface, } from './function.interface';
|
|
3
3
|
export { PromptInterface, PromptModuleInterface, PromptModuleKeyInterface, PromptModuleVersionInterface, PromptVersionInterface, } from './prompt.interface';
|
|
4
4
|
export { GoalInterface, GoalKeyInterface, } from './goal.interface';
|
|
5
5
|
export { KeyValuePairInterface, } from './common.interface';
|
|
6
6
|
export { AssistantInterface, AssistantKeyInterface, ConfigInterface, ConfigurableGoalInterface, DeepgramConfigInterface, ConfigInboxConfigInterface, ModelConfigInterface, OpenAIRealtimeConfigInterface, OpenAIRealtimeConfigTurnDetectionInterface, ConfigVoiceConfigInterface, } from './assistant.interface';
|
|
7
7
|
export { ConnectionInterface, ConnectionKeyInterface, } from './connection.interface';
|
|
8
|
-
export { ChatAnswerFunctionExecutionJobInterface, ChatAnswerFunctionExecutionJobResultInterface, ChatMessageInterface, ChatUserInfoInterface, } from './answer.interface';
|
|
8
|
+
export { ChatAnswerFunctionExecutionJobInterface, ChatAnswerFunctionExecutionJobResultInterface, ChatMessageInterface, ChatUserInfoInterface, ContextInfoInterface, } from './answer.interface';
|
|
9
9
|
export { AccessInterface, } from './annotations.interface';
|
|
10
10
|
export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
|
|
11
11
|
export { FieldMaskInterface, } from './field-mask.interface';
|
|
@@ -1,20 +1,12 @@
|
|
|
1
1
|
export interface NamespaceAccountGroupNamespaceInterface {
|
|
2
2
|
accountGroupId?: string;
|
|
3
3
|
}
|
|
4
|
-
export interface NamespaceAccountGroupsForGroupNamespaceInterface {
|
|
5
|
-
groupPath?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface NamespaceAccountGroupsForPartnerNamespaceInterface {
|
|
8
|
-
partnerId?: string;
|
|
9
|
-
}
|
|
10
4
|
export interface NamespaceGlobalNamespaceInterface {
|
|
11
5
|
}
|
|
12
6
|
export interface NamespaceInterface {
|
|
13
7
|
accountGroupNamespace?: NamespaceAccountGroupNamespaceInterface;
|
|
14
8
|
partnerNamespace?: NamespacePartnerNamespaceInterface;
|
|
15
9
|
systemNamespace?: NamespaceSystemNamespaceInterface;
|
|
16
|
-
accountGroupsForPartnerNamespace?: NamespaceAccountGroupsForPartnerNamespaceInterface;
|
|
17
|
-
accountGroupsForGroupNamespace?: NamespaceAccountGroupsForGroupNamespaceInterface;
|
|
18
10
|
globalNamespace?: NamespaceGlobalNamespaceInterface;
|
|
19
11
|
}
|
|
20
12
|
export interface NamespacePartnerNamespaceInterface {
|
|
@@ -40,3 +40,9 @@ export declare class ChatUserInfo implements i.ChatUserInfoInterface {
|
|
|
40
40
|
constructor(kwargs?: i.ChatUserInfoInterface);
|
|
41
41
|
toApiJson(): object;
|
|
42
42
|
}
|
|
43
|
+
export declare class ContextInfo implements i.ContextInfoInterface {
|
|
44
|
+
variables: KeyValuePair[];
|
|
45
|
+
static fromProto(proto: any): ContextInfo;
|
|
46
|
+
constructor(kwargs?: i.ContextInfoInterface);
|
|
47
|
+
toApiJson(): object;
|
|
48
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i from '../interfaces';
|
|
2
2
|
import { Assistant, AssistantKey } from './assistant';
|
|
3
|
-
import { ChatMessage, ChatUserInfo, ChatAnswerFunctionExecutionJob } from './answer';
|
|
3
|
+
import { ChatMessage, ChatUserInfo, ContextInfo, ChatAnswerFunctionExecutionJob } from './answer';
|
|
4
4
|
import { ConnectionKey, Connection } from './connection';
|
|
5
5
|
import { FieldMask } from './field-mask';
|
|
6
6
|
import { FunctionKey, Function } from './function';
|
|
@@ -210,6 +210,7 @@ export declare class GenerateChatAnswerRequest implements i.GenerateChatAnswerRe
|
|
|
210
210
|
chatChannel: e.ChatChannel;
|
|
211
211
|
options: GenerateChatAnswerRequestOptions;
|
|
212
212
|
assistantKey: AssistantKey;
|
|
213
|
+
contextInfo: ContextInfo;
|
|
213
214
|
static fromProto(proto: any): GenerateChatAnswerRequest;
|
|
214
215
|
constructor(kwargs?: i.GenerateChatAnswerRequestInterface);
|
|
215
216
|
toApiJson(): object;
|
|
@@ -446,6 +447,7 @@ export declare class GoalsDisabledForAccountGroupResponse implements i.GoalsDisa
|
|
|
446
447
|
export declare class ListAllAssistantsAssociatedToConnectionRequest implements i.ListAllAssistantsAssociatedToConnectionRequestInterface {
|
|
447
448
|
connectionKey: ConnectionKey;
|
|
448
449
|
filters: ListAllAssistantsAssociatedToConnectionRequestFilters;
|
|
450
|
+
fieldMask: FieldMask;
|
|
449
451
|
static fromProto(proto: any): ListAllAssistantsAssociatedToConnectionRequest;
|
|
450
452
|
constructor(kwargs?: i.ListAllAssistantsAssociatedToConnectionRequestInterface);
|
|
451
453
|
toApiJson(): object;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { NamespaceAccountGroupNamespace,
|
|
1
|
+
export { NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, Namespace, NamespacePartnerNamespace, NamespaceSystemNamespace, } from './namespace';
|
|
2
2
|
export { Function, FunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, } from './function';
|
|
3
3
|
export { Prompt, PromptModule, PromptModuleKey, PromptModuleVersion, PromptVersion, } from './prompt';
|
|
4
4
|
export { Goal, GoalKey, } from './goal';
|
|
5
5
|
export { KeyValuePair, } from './common';
|
|
6
6
|
export { Assistant, AssistantKey, Config, ConfigurableGoal, DeepgramConfig, ConfigInboxConfig, ModelConfig, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, ConfigVoiceConfig, } from './assistant';
|
|
7
7
|
export { Connection, ConnectionKey, } from './connection';
|
|
8
|
-
export { ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatMessage, ChatUserInfo, } from './answer';
|
|
8
|
+
export { ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatMessage, ChatUserInfo, ContextInfo, } from './answer';
|
|
9
9
|
export { Access, } from './annotations';
|
|
10
10
|
export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
|
|
11
11
|
export { FieldMask, } from './field-mask';
|
|
@@ -6,18 +6,6 @@ export declare class NamespaceAccountGroupNamespace implements i.NamespaceAccoun
|
|
|
6
6
|
constructor(kwargs?: i.NamespaceAccountGroupNamespaceInterface);
|
|
7
7
|
toApiJson(): object;
|
|
8
8
|
}
|
|
9
|
-
export declare class NamespaceAccountGroupsForGroupNamespace implements i.NamespaceAccountGroupsForGroupNamespaceInterface {
|
|
10
|
-
groupPath: string;
|
|
11
|
-
static fromProto(proto: any): NamespaceAccountGroupsForGroupNamespace;
|
|
12
|
-
constructor(kwargs?: i.NamespaceAccountGroupsForGroupNamespaceInterface);
|
|
13
|
-
toApiJson(): object;
|
|
14
|
-
}
|
|
15
|
-
export declare class NamespaceAccountGroupsForPartnerNamespace implements i.NamespaceAccountGroupsForPartnerNamespaceInterface {
|
|
16
|
-
partnerId: string;
|
|
17
|
-
static fromProto(proto: any): NamespaceAccountGroupsForPartnerNamespace;
|
|
18
|
-
constructor(kwargs?: i.NamespaceAccountGroupsForPartnerNamespaceInterface);
|
|
19
|
-
toApiJson(): object;
|
|
20
|
-
}
|
|
21
9
|
export declare class NamespaceGlobalNamespace implements i.NamespaceGlobalNamespaceInterface {
|
|
22
10
|
static fromProto(proto: any): NamespaceGlobalNamespace;
|
|
23
11
|
constructor(kwargs?: i.NamespaceGlobalNamespaceInterface);
|
|
@@ -27,8 +15,6 @@ export declare class Namespace implements i.NamespaceInterface {
|
|
|
27
15
|
accountGroupNamespace: NamespaceAccountGroupNamespace;
|
|
28
16
|
partnerNamespace: NamespacePartnerNamespace;
|
|
29
17
|
systemNamespace: NamespaceSystemNamespace;
|
|
30
|
-
accountGroupsForPartnerNamespace: NamespaceAccountGroupsForPartnerNamespace;
|
|
31
|
-
accountGroupsForGroupNamespace: NamespaceAccountGroupsForGroupNamespace;
|
|
32
18
|
globalNamespace: NamespaceGlobalNamespace;
|
|
33
19
|
static fromProto(proto: any): Namespace;
|
|
34
20
|
constructor(kwargs?: i.NamespaceInterface);
|