@vendasta/ai-assistants 0.27.0 → 0.28.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/interfaces/api.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/api.mjs +7 -1
- package/esm2020/lib/_internal/objects/function.mjs +73 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-ai-assistants.mjs +80 -1
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +80 -1
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/enums/answer.enum.d.ts +2 -1
- package/lib/_internal/interfaces/api.interface.d.ts +1 -0
- package/lib/_internal/interfaces/function.interface.d.ts +10 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +1 -0
- package/lib/_internal/objects/function.d.ts +19 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -12,7 +12,8 @@ export declare enum ChatChannel {
|
|
|
12
12
|
CHAT_CHANNEL_WHATSAPP = 4,
|
|
13
13
|
CHAT_CHANNEL_FACEBOOK = 5,
|
|
14
14
|
CHAT_CHANNEL_INSTAGRAM = 7,
|
|
15
|
-
CHAT_CHANNEL_AUTOMATION = 8
|
|
15
|
+
CHAT_CHANNEL_AUTOMATION = 8,
|
|
16
|
+
CHAT_CHANNEL_PLATFORM = 9
|
|
16
17
|
}
|
|
17
18
|
export declare enum ChatMessageRole {
|
|
18
19
|
CHAT_MESSAGE_ROLE_INVALID = 0,
|
|
@@ -118,6 +118,7 @@ export interface GenerateChatAnswerRequestInterface {
|
|
|
118
118
|
chatUserInfo?: ChatUserInfoInterface;
|
|
119
119
|
chatChannel?: e.ChatChannel;
|
|
120
120
|
options?: GenerateChatAnswerRequestOptionsInterface;
|
|
121
|
+
assistantKey?: AssistantKeyInterface;
|
|
121
122
|
}
|
|
122
123
|
export interface GenerateChatAnswerResponseInterface {
|
|
123
124
|
answer?: string;
|
|
@@ -11,6 +11,11 @@ export interface FunctionInterface {
|
|
|
11
11
|
updated?: Date;
|
|
12
12
|
headers?: FunctionHeaderInterface[];
|
|
13
13
|
managed?: boolean;
|
|
14
|
+
authStrategy?: FunctionAuthStrategyInterface;
|
|
15
|
+
}
|
|
16
|
+
export interface FunctionAuthStrategyInterface {
|
|
17
|
+
unspecified?: FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface;
|
|
18
|
+
platformManaged?: FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface;
|
|
14
19
|
}
|
|
15
20
|
export interface FunctionHeaderInterface {
|
|
16
21
|
key?: string;
|
|
@@ -29,3 +34,8 @@ export interface FunctionParameterInterface {
|
|
|
29
34
|
value?: string;
|
|
30
35
|
location?: e.FunctionParameterParameterLocation;
|
|
31
36
|
}
|
|
37
|
+
export interface FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface {
|
|
38
|
+
requiredScopes?: string[];
|
|
39
|
+
}
|
|
40
|
+
export interface FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface {
|
|
41
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { NamespaceAccountGroupNamespaceInterface, NamespaceAccountGroupsForGroupNamespaceInterface, NamespaceAccountGroupsForPartnerNamespaceInterface, NamespaceGlobalNamespaceInterface, NamespaceInterface, NamespacePartnerNamespaceInterface, NamespaceSystemNamespaceInterface, } from './namespace.interface';
|
|
2
|
-
export { FunctionInterface, FunctionHeaderInterface, FunctionKeyInterface, FunctionParameterInterface, } from './function.interface';
|
|
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';
|
|
@@ -195,6 +195,7 @@ export declare class GenerateChatAnswerRequest implements i.GenerateChatAnswerRe
|
|
|
195
195
|
chatUserInfo: ChatUserInfo;
|
|
196
196
|
chatChannel: e.ChatChannel;
|
|
197
197
|
options: GenerateChatAnswerRequestOptions;
|
|
198
|
+
assistantKey: AssistantKey;
|
|
198
199
|
static fromProto(proto: any): GenerateChatAnswerRequest;
|
|
199
200
|
constructor(kwargs?: i.GenerateChatAnswerRequestInterface);
|
|
200
201
|
toApiJson(): object;
|
|
@@ -13,10 +13,18 @@ export declare class Function implements i.FunctionInterface {
|
|
|
13
13
|
updated: Date;
|
|
14
14
|
headers: FunctionHeader[];
|
|
15
15
|
managed: boolean;
|
|
16
|
+
authStrategy: FunctionAuthStrategy;
|
|
16
17
|
static fromProto(proto: any): Function;
|
|
17
18
|
constructor(kwargs?: i.FunctionInterface);
|
|
18
19
|
toApiJson(): object;
|
|
19
20
|
}
|
|
21
|
+
export declare class FunctionAuthStrategy implements i.FunctionAuthStrategyInterface {
|
|
22
|
+
unspecified: FunctionAuthStrategyUnspecifiedFunctionAuthStrategy;
|
|
23
|
+
platformManaged: FunctionAuthStrategyPlatformManagedFunctionAuthStrategy;
|
|
24
|
+
static fromProto(proto: any): FunctionAuthStrategy;
|
|
25
|
+
constructor(kwargs?: i.FunctionAuthStrategyInterface);
|
|
26
|
+
toApiJson(): object;
|
|
27
|
+
}
|
|
20
28
|
export declare class FunctionHeader implements i.FunctionHeaderInterface {
|
|
21
29
|
key: string;
|
|
22
30
|
value: string;
|
|
@@ -43,3 +51,14 @@ export declare class FunctionParameter implements i.FunctionParameterInterface {
|
|
|
43
51
|
constructor(kwargs?: i.FunctionParameterInterface);
|
|
44
52
|
toApiJson(): object;
|
|
45
53
|
}
|
|
54
|
+
export declare class FunctionAuthStrategyPlatformManagedFunctionAuthStrategy implements i.FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface {
|
|
55
|
+
requiredScopes: string[];
|
|
56
|
+
static fromProto(proto: any): FunctionAuthStrategyPlatformManagedFunctionAuthStrategy;
|
|
57
|
+
constructor(kwargs?: i.FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface);
|
|
58
|
+
toApiJson(): object;
|
|
59
|
+
}
|
|
60
|
+
export declare class FunctionAuthStrategyUnspecifiedFunctionAuthStrategy implements i.FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface {
|
|
61
|
+
static fromProto(proto: any): FunctionAuthStrategyUnspecifiedFunctionAuthStrategy;
|
|
62
|
+
constructor(kwargs?: i.FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface);
|
|
63
|
+
toApiJson(): object;
|
|
64
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { NamespaceAccountGroupNamespace, NamespaceAccountGroupsForGroupNamespace, NamespaceAccountGroupsForPartnerNamespace, NamespaceGlobalNamespace, Namespace, NamespacePartnerNamespace, NamespaceSystemNamespace, } from './namespace';
|
|
2
|
-
export { Function, FunctionHeader, FunctionKey, FunctionParameter, } from './function';
|
|
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';
|