@vendasta/ai-assistants 0.5.0 → 0.7.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/assistant.api.service.mjs +6 -2
- package/esm2020/lib/_internal/enums/assistant.enum.mjs +2 -1
- package/esm2020/lib/_internal/enums/goal.enum.mjs +14 -0
- package/esm2020/lib/_internal/enums/index.mjs +2 -1
- package/esm2020/lib/_internal/goal.api.service.mjs +58 -0
- package/esm2020/lib/_internal/index.mjs +3 -1
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/assistant.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/function.interface.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/goal.interface.mjs +2 -0
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/prompt.interface.mjs +1 -7
- package/esm2020/lib/_internal/objects/api.mjs +801 -51
- package/esm2020/lib/_internal/objects/assistant.mjs +31 -1
- package/esm2020/lib/_internal/objects/function.mjs +34 -0
- package/esm2020/lib/_internal/objects/goal.mjs +96 -0
- package/esm2020/lib/_internal/objects/index.mjs +6 -4
- package/esm2020/lib/_internal/objects/prompt.mjs +119 -1
- package/esm2020/lib/_internal/prompt-module.api.service.mjs +81 -0
- package/fesm2015/vendasta-ai-assistants.mjs +1529 -365
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +1529 -365
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/assistant.api.service.d.ts +3 -2
- package/lib/_internal/enums/assistant.enum.d.ts +2 -1
- package/lib/_internal/enums/goal.enum.d.ts +6 -0
- package/lib/_internal/enums/index.d.ts +1 -0
- package/lib/_internal/goal.api.service.d.ts +18 -0
- package/lib/_internal/index.d.ts +2 -0
- package/lib/_internal/interfaces/api.interface.d.ts +116 -4
- package/lib/_internal/interfaces/assistant.interface.d.ts +5 -0
- package/lib/_internal/interfaces/function.interface.d.ts +5 -0
- package/lib/_internal/interfaces/goal.interface.d.ts +19 -0
- package/lib/_internal/interfaces/index.d.ts +5 -3
- package/lib/_internal/interfaces/prompt.interface.d.ts +23 -0
- package/lib/_internal/objects/api.d.ts +202 -6
- package/lib/_internal/objects/assistant.d.ts +8 -0
- package/lib/_internal/objects/function.d.ts +10 -0
- package/lib/_internal/objects/goal.d.ts +27 -0
- package/lib/_internal/objects/index.d.ts +5 -3
- package/lib/_internal/objects/prompt.d.ts +32 -0
- package/lib/_internal/prompt-module.api.service.d.ts +23 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i from '../interfaces';
|
|
2
|
+
import { Namespace } from './namespace';
|
|
3
|
+
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
4
|
+
export declare class FunctionKey implements i.FunctionKeyInterface {
|
|
5
|
+
id: string;
|
|
6
|
+
namespace: Namespace;
|
|
7
|
+
static fromProto(proto: any): FunctionKey;
|
|
8
|
+
constructor(kwargs?: i.FunctionKeyInterface);
|
|
9
|
+
toApiJson(): object;
|
|
10
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as i from '../interfaces';
|
|
2
|
+
import { FunctionKey } from './function';
|
|
3
|
+
import { Namespace } from './namespace';
|
|
4
|
+
import { PromptModuleKey } from './prompt';
|
|
5
|
+
import * as e from '../enums';
|
|
6
|
+
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
7
|
+
export declare class Goal implements i.GoalInterface {
|
|
8
|
+
id: string;
|
|
9
|
+
namespace: Namespace;
|
|
10
|
+
name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
type: e.GoalType;
|
|
13
|
+
promptModules: PromptModuleKey[];
|
|
14
|
+
functions: FunctionKey[];
|
|
15
|
+
updatedBy: string;
|
|
16
|
+
updated: Date;
|
|
17
|
+
static fromProto(proto: any): Goal;
|
|
18
|
+
constructor(kwargs?: i.GoalInterface);
|
|
19
|
+
toApiJson(): object;
|
|
20
|
+
}
|
|
21
|
+
export declare class GoalKey implements i.GoalKeyInterface {
|
|
22
|
+
id: string;
|
|
23
|
+
namespace: Namespace;
|
|
24
|
+
static fromProto(proto: any): GoalKey;
|
|
25
|
+
constructor(kwargs?: i.GoalKeyInterface);
|
|
26
|
+
toApiJson(): object;
|
|
27
|
+
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export { NamespaceAccountGroupNamespace, Namespace, NamespacePartnerNamespace, NamespaceSystemNamespace, } from './namespace';
|
|
2
|
-
export {
|
|
2
|
+
export { FunctionKey, } from './function';
|
|
3
|
+
export { Prompt, PromptModule, PromptModuleKey, PromptModuleVersion, PromptVersion, } from './prompt';
|
|
4
|
+
export { Goal, GoalKey, } from './goal';
|
|
5
|
+
export { Assistant, AssistantKey, Config, ConfigurableGoal, ConfigInboxConfig, } from './assistant';
|
|
3
6
|
export { Connection, ConnectionKey, } from './connection';
|
|
4
7
|
export { KeyValuePair, } from './common';
|
|
5
8
|
export { ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatMessage, ChatUserInfo, } from './answer';
|
|
6
|
-
export { Prompt, PromptVersion, } from './prompt';
|
|
7
9
|
export { Access, } from './annotations';
|
|
8
10
|
export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
|
|
9
|
-
export { CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeletePromptRequest, DeployPromptRequest,
|
|
11
|
+
export { SetAssistantConnectionsRequestConnectionState, CreatePromptModuleRequest, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, ListPromptModuleRequestFilters, ListGoalsRequestFilters, ListAllAssistantsAssociatedToConnectionRequestFilters, ListConnectionsRequestFilters, ListAssistantRequestFilters, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, ListConnectionsRequest, ListConnectionsResponse, ListGoalsRequest, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, GenerateChatAnswerRequestOptions, SetAssistantConnectionsRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, UpsertGoalRequest, } from './api';
|
|
@@ -1,14 +1,46 @@
|
|
|
1
1
|
import * as i from '../interfaces';
|
|
2
|
+
import { Namespace } from './namespace';
|
|
2
3
|
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
3
4
|
export declare class Prompt implements i.PromptInterface {
|
|
4
5
|
id: string;
|
|
5
6
|
deployedVersion: string;
|
|
6
7
|
deployedBy: string;
|
|
7
8
|
updated: Date;
|
|
9
|
+
description: string;
|
|
10
|
+
deployed: Date;
|
|
8
11
|
static fromProto(proto: any): Prompt;
|
|
9
12
|
constructor(kwargs?: i.PromptInterface);
|
|
10
13
|
toApiJson(): object;
|
|
11
14
|
}
|
|
15
|
+
export declare class PromptModule implements i.PromptModuleInterface {
|
|
16
|
+
id: string;
|
|
17
|
+
namespace: Namespace;
|
|
18
|
+
name: string;
|
|
19
|
+
deployedVersion: string;
|
|
20
|
+
deployedBy: string;
|
|
21
|
+
updated: Date;
|
|
22
|
+
static fromProto(proto: any): PromptModule;
|
|
23
|
+
constructor(kwargs?: i.PromptModuleInterface);
|
|
24
|
+
toApiJson(): object;
|
|
25
|
+
}
|
|
26
|
+
export declare class PromptModuleKey implements i.PromptModuleKeyInterface {
|
|
27
|
+
id: string;
|
|
28
|
+
namespace: Namespace;
|
|
29
|
+
static fromProto(proto: any): PromptModuleKey;
|
|
30
|
+
constructor(kwargs?: i.PromptModuleKeyInterface);
|
|
31
|
+
toApiJson(): object;
|
|
32
|
+
}
|
|
33
|
+
export declare class PromptModuleVersion implements i.PromptModuleVersionInterface {
|
|
34
|
+
id: string;
|
|
35
|
+
namespace: Namespace;
|
|
36
|
+
version: string;
|
|
37
|
+
content: string;
|
|
38
|
+
createdBy: string;
|
|
39
|
+
created: Date;
|
|
40
|
+
static fromProto(proto: any): PromptModuleVersion;
|
|
41
|
+
constructor(kwargs?: i.PromptModuleVersionInterface);
|
|
42
|
+
toApiJson(): object;
|
|
43
|
+
}
|
|
12
44
|
export declare class PromptVersion implements i.PromptVersionInterface {
|
|
13
45
|
id: string;
|
|
14
46
|
version: string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CreatePromptModuleRequest, DeletePromptModuleRequest, DeployPromptModuleRequest, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, ListPromptModuleRequest, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, UpdatePromptModuleRequest } from './objects/';
|
|
2
|
+
import { CreatePromptModuleRequestInterface, DeletePromptModuleRequestInterface, DeployPromptModuleRequestInterface, GetHydratedDeployedPromptModuleVersionRequestInterface, GetMultiHydratedDeployedPromptModuleVersionRequestInterface, GetPromptModuleRequestInterface, GetPromptModuleVersionRequestInterface, ListPromptModuleRequestInterface, ListPromptModuleVersionsRequestInterface, UpdatePromptModuleRequestInterface } from './interfaces/';
|
|
3
|
+
import { HttpResponse } from '@angular/common/http';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class PromptModuleApiService {
|
|
7
|
+
private readonly hostService;
|
|
8
|
+
private readonly http;
|
|
9
|
+
private _host;
|
|
10
|
+
private apiOptions;
|
|
11
|
+
create(r: CreatePromptModuleRequest | CreatePromptModuleRequestInterface): Observable<HttpResponse<null>>;
|
|
12
|
+
get(r: GetPromptModuleRequest | GetPromptModuleRequestInterface): Observable<GetPromptModuleResponse>;
|
|
13
|
+
getVersion(r: GetPromptModuleVersionRequest | GetPromptModuleVersionRequestInterface): Observable<GetPromptModuleVersionResponse>;
|
|
14
|
+
getHydratedDeployedVersion(r: GetHydratedDeployedPromptModuleVersionRequest | GetHydratedDeployedPromptModuleVersionRequestInterface): Observable<GetHydratedDeployedPromptModuleVersionResponse>;
|
|
15
|
+
getMultiHydratedDeployedVersion(r: GetMultiHydratedDeployedPromptModuleVersionRequest | GetMultiHydratedDeployedPromptModuleVersionRequestInterface): Observable<GetMultiHydratedDeployedPromptModuleVersionResponse>;
|
|
16
|
+
update(r: UpdatePromptModuleRequest | UpdatePromptModuleRequestInterface): Observable<HttpResponse<null>>;
|
|
17
|
+
deploy(r: DeployPromptModuleRequest | DeployPromptModuleRequestInterface): Observable<HttpResponse<null>>;
|
|
18
|
+
list(r: ListPromptModuleRequest | ListPromptModuleRequestInterface): Observable<ListPromptModuleResponse>;
|
|
19
|
+
listVersions(r: ListPromptModuleVersionsRequest | ListPromptModuleVersionsRequestInterface): Observable<ListPromptModuleVersionsResponse>;
|
|
20
|
+
delete(r: DeletePromptModuleRequest | DeletePromptModuleRequestInterface): Observable<HttpResponse<null>>;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PromptModuleApiService, never>;
|
|
22
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PromptModuleApiService>;
|
|
23
|
+
}
|