@vendasta/ai-assistants 0.4.0 → 0.6.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/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/connection.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +69 -14
- package/esm2020/lib/_internal/objects/connection.mjs +4 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-ai-assistants.mjs +75 -13
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +75 -13
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/assistant.api.service.d.ts +3 -2
- package/lib/_internal/interfaces/api.interface.d.ts +12 -4
- package/lib/_internal/interfaces/connection.interface.d.ts +1 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +21 -7
- package/lib/_internal/objects/connection.d.ts +1 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DeleteAssistantRequest, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, UpsertAssistantRequest, UpsertAssistantResponse } from './objects/';
|
|
2
|
-
import { DeleteAssistantRequestInterface, GenerateChatAnswerRequestInterface, GetAssistantRequestInterface, GetChatAnswerFunctionExecutionJobRequestInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAssistantRequestInterface, UpsertAssistantRequestInterface } from './interfaces/';
|
|
1
|
+
import { DeleteAssistantRequest, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, SetAssistantConnectionsRequest, UpsertAssistantRequest, UpsertAssistantResponse } from './objects/';
|
|
2
|
+
import { DeleteAssistantRequestInterface, GenerateChatAnswerRequestInterface, GetAssistantRequestInterface, GetChatAnswerFunctionExecutionJobRequestInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAssistantRequestInterface, SetAssistantConnectionsRequestInterface, UpsertAssistantRequestInterface } from './interfaces/';
|
|
3
3
|
import { HttpResponse } from '@angular/common/http';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -15,6 +15,7 @@ export declare class AssistantApiService {
|
|
|
15
15
|
listAllAssistantsAssociatedToConnection(r: ListAllAssistantsAssociatedToConnectionRequest | ListAllAssistantsAssociatedToConnectionRequestInterface): Observable<ListAllAssistantsAssociatedToConnectionResponse>;
|
|
16
16
|
generateChatAnswer(r: GenerateChatAnswerRequest | GenerateChatAnswerRequestInterface): Observable<GenerateChatAnswerResponse>;
|
|
17
17
|
getChatAnswerFunctionExecutionJob(r: GetChatAnswerFunctionExecutionJobRequest | GetChatAnswerFunctionExecutionJobRequestInterface): Observable<GetChatAnswerFunctionExecutionJobResponse>;
|
|
18
|
+
setAssistantConnections(r: SetAssistantConnectionsRequest | SetAssistantConnectionsRequestInterface): Observable<HttpResponse<null>>;
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<AssistantApiService, never>;
|
|
19
20
|
static ɵprov: i0.ɵɵInjectableDeclaration<AssistantApiService>;
|
|
20
21
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AssistantInterface } from './assistant.interface';
|
|
1
|
+
import { AssistantInterface, AssistantKeyInterface } from './assistant.interface';
|
|
2
2
|
import { ChatMessageInterface, ChatUserInfoInterface, ChatAnswerFunctionExecutionJobInterface } from './answer.interface';
|
|
3
3
|
import { ConnectionKeyInterface, ConnectionInterface } from './connection.interface';
|
|
4
4
|
import { KeyValuePairInterface } from './common.interface';
|
|
@@ -6,6 +6,10 @@ import { NamespaceInterface } from './namespace.interface';
|
|
|
6
6
|
import { PagedRequestOptionsInterface, PagedResponseMetadataInterface } from './paging.interface';
|
|
7
7
|
import { PromptInterface, PromptVersionInterface } from './prompt.interface';
|
|
8
8
|
import * as e from '../enums';
|
|
9
|
+
export interface SetAssistantConnectionsRequestConnectionStateInterface {
|
|
10
|
+
connectionKey?: ConnectionKeyInterface;
|
|
11
|
+
isAssociated?: boolean;
|
|
12
|
+
}
|
|
9
13
|
export interface CreatePromptRequestInterface {
|
|
10
14
|
id?: string;
|
|
11
15
|
content?: string;
|
|
@@ -30,12 +34,12 @@ export interface ListAssistantRequestFiltersInterface {
|
|
|
30
34
|
namespace?: NamespaceInterface;
|
|
31
35
|
type?: e.AssistantType;
|
|
32
36
|
}
|
|
33
|
-
export interface ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
|
|
34
|
-
type?: e.AssistantType;
|
|
35
|
-
}
|
|
36
37
|
export interface ListConnectionsRequestFiltersInterface {
|
|
37
38
|
namespace?: NamespaceInterface;
|
|
38
39
|
}
|
|
40
|
+
export interface ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
|
|
41
|
+
type?: e.AssistantType;
|
|
42
|
+
}
|
|
39
43
|
export interface GenerateChatAnswerRequestInterface {
|
|
40
44
|
connectionKey?: ConnectionKeyInterface;
|
|
41
45
|
chatHistory?: ChatMessageInterface[];
|
|
@@ -141,6 +145,10 @@ export interface GenerateChatAnswerRequestOptionsInterface {
|
|
|
141
145
|
includeAllCitations?: boolean;
|
|
142
146
|
enableAsyncFunctions?: boolean;
|
|
143
147
|
}
|
|
148
|
+
export interface SetAssistantConnectionsRequestInterface {
|
|
149
|
+
associationStates?: SetAssistantConnectionsRequestConnectionStateInterface[];
|
|
150
|
+
assistantKey?: AssistantKeyInterface;
|
|
151
|
+
}
|
|
144
152
|
export interface UpdatePromptRequestInterface {
|
|
145
153
|
id?: string;
|
|
146
154
|
content?: string;
|
|
@@ -6,4 +6,4 @@ export { ChatAnswerFunctionExecutionJobInterface, ChatAnswerFunctionExecutionJob
|
|
|
6
6
|
export { PromptInterface, PromptVersionInterface, } from './prompt.interface';
|
|
7
7
|
export { AccessInterface, } from './annotations.interface';
|
|
8
8
|
export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
|
|
9
|
-
export { CreatePromptRequestInterface, DeleteAssistantRequestInterface, DeleteConnectionRequestInterface, DeletePromptRequestInterface, DeployPromptRequestInterface, ListAssistantRequestFiltersInterface,
|
|
9
|
+
export { SetAssistantConnectionsRequestConnectionStateInterface, CreatePromptRequestInterface, DeleteAssistantRequestInterface, DeleteConnectionRequestInterface, DeletePromptRequestInterface, DeployPromptRequestInterface, ListAssistantRequestFiltersInterface, ListConnectionsRequestFiltersInterface, ListAllAssistantsAssociatedToConnectionRequestFiltersInterface, GenerateChatAnswerRequestInterface, GenerateChatAnswerResponseInterface, GetAssistantRequestInterface, GetAssistantResponseInterface, GetChatAnswerFunctionExecutionJobRequestInterface, GetChatAnswerFunctionExecutionJobResponseInterface, GetConnectionRequestInterface, GetConnectionResponseInterface, GetDeployedPromptVersionRequestInterface, GetDeployedPromptVersionResponseInterface, GetMultiDeployedPromptVersionRequestInterface, GetMultiDeployedPromptVersionResponseInterface, GetPromptRequestInterface, GetPromptResponseInterface, GetPromptVersionRequestInterface, GetPromptVersionResponseInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAllAssistantsAssociatedToConnectionResponseInterface, ListAssistantRequestInterface, ListAssistantResponseInterface, ListConnectionsRequestInterface, ListConnectionsResponseInterface, ListPromptRequestInterface, ListPromptResponseInterface, ListPromptVersionsRequestInterface, ListPromptVersionsResponseInterface, GenerateChatAnswerRequestOptionsInterface, SetAssistantConnectionsRequestInterface, UpdatePromptRequestInterface, UpsertAssistantRequestInterface, UpsertAssistantResponseInterface, UpsertConnectionRequestInterface, } from './api.interface';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i from '../interfaces';
|
|
2
|
-
import { Assistant } from './assistant';
|
|
2
|
+
import { Assistant, AssistantKey } from './assistant';
|
|
3
3
|
import { ChatMessage, ChatUserInfo, ChatAnswerFunctionExecutionJob } from './answer';
|
|
4
4
|
import { ConnectionKey, Connection } from './connection';
|
|
5
5
|
import { KeyValuePair } from './common';
|
|
@@ -8,6 +8,13 @@ import { PagedRequestOptions, PagedResponseMetadata } from './paging';
|
|
|
8
8
|
import { Prompt, PromptVersion } from './prompt';
|
|
9
9
|
import * as e from '../enums';
|
|
10
10
|
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
11
|
+
export declare class SetAssistantConnectionsRequestConnectionState implements i.SetAssistantConnectionsRequestConnectionStateInterface {
|
|
12
|
+
connectionKey: ConnectionKey;
|
|
13
|
+
isAssociated: boolean;
|
|
14
|
+
static fromProto(proto: any): SetAssistantConnectionsRequestConnectionState;
|
|
15
|
+
constructor(kwargs?: i.SetAssistantConnectionsRequestConnectionStateInterface);
|
|
16
|
+
toApiJson(): object;
|
|
17
|
+
}
|
|
11
18
|
export declare class CreatePromptRequest implements i.CreatePromptRequestInterface {
|
|
12
19
|
id: string;
|
|
13
20
|
content: string;
|
|
@@ -50,18 +57,18 @@ export declare class ListAssistantRequestFilters implements i.ListAssistantReque
|
|
|
50
57
|
constructor(kwargs?: i.ListAssistantRequestFiltersInterface);
|
|
51
58
|
toApiJson(): object;
|
|
52
59
|
}
|
|
53
|
-
export declare class ListAllAssistantsAssociatedToConnectionRequestFilters implements i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
|
|
54
|
-
type: e.AssistantType;
|
|
55
|
-
static fromProto(proto: any): ListAllAssistantsAssociatedToConnectionRequestFilters;
|
|
56
|
-
constructor(kwargs?: i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface);
|
|
57
|
-
toApiJson(): object;
|
|
58
|
-
}
|
|
59
60
|
export declare class ListConnectionsRequestFilters implements i.ListConnectionsRequestFiltersInterface {
|
|
60
61
|
namespace: Namespace;
|
|
61
62
|
static fromProto(proto: any): ListConnectionsRequestFilters;
|
|
62
63
|
constructor(kwargs?: i.ListConnectionsRequestFiltersInterface);
|
|
63
64
|
toApiJson(): object;
|
|
64
65
|
}
|
|
66
|
+
export declare class ListAllAssistantsAssociatedToConnectionRequestFilters implements i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
|
|
67
|
+
type: e.AssistantType;
|
|
68
|
+
static fromProto(proto: any): ListAllAssistantsAssociatedToConnectionRequestFilters;
|
|
69
|
+
constructor(kwargs?: i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface);
|
|
70
|
+
toApiJson(): object;
|
|
71
|
+
}
|
|
65
72
|
export declare class GenerateChatAnswerRequest implements i.GenerateChatAnswerRequestInterface {
|
|
66
73
|
connectionKey: ConnectionKey;
|
|
67
74
|
chatHistory: ChatMessage[];
|
|
@@ -248,6 +255,13 @@ export declare class GenerateChatAnswerRequestOptions implements i.GenerateChatA
|
|
|
248
255
|
constructor(kwargs?: i.GenerateChatAnswerRequestOptionsInterface);
|
|
249
256
|
toApiJson(): object;
|
|
250
257
|
}
|
|
258
|
+
export declare class SetAssistantConnectionsRequest implements i.SetAssistantConnectionsRequestInterface {
|
|
259
|
+
associationStates: SetAssistantConnectionsRequestConnectionState[];
|
|
260
|
+
assistantKey: AssistantKey;
|
|
261
|
+
static fromProto(proto: any): SetAssistantConnectionsRequest;
|
|
262
|
+
constructor(kwargs?: i.SetAssistantConnectionsRequestInterface);
|
|
263
|
+
toApiJson(): object;
|
|
264
|
+
}
|
|
251
265
|
export declare class UpdatePromptRequest implements i.UpdatePromptRequestInterface {
|
|
252
266
|
id: string;
|
|
253
267
|
content: string;
|
|
@@ -11,6 +11,7 @@ export declare class Connection implements i.ConnectionInterface {
|
|
|
11
11
|
connectionType: string;
|
|
12
12
|
connectionTypeName: string;
|
|
13
13
|
iconUrl: string;
|
|
14
|
+
isConnectionLocked: boolean;
|
|
14
15
|
static fromProto(proto: any): Connection;
|
|
15
16
|
constructor(kwargs?: i.ConnectionInterface);
|
|
16
17
|
toApiJson(): object;
|
|
@@ -6,4 +6,4 @@ export { ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, C
|
|
|
6
6
|
export { Prompt, PromptVersion, } from './prompt';
|
|
7
7
|
export { Access, } from './annotations';
|
|
8
8
|
export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
|
|
9
|
-
export { CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeletePromptRequest, DeployPromptRequest, ListAssistantRequestFilters,
|
|
9
|
+
export { SetAssistantConnectionsRequestConnectionState, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeletePromptRequest, DeployPromptRequest, ListAssistantRequestFilters, ListConnectionsRequestFilters, ListAllAssistantsAssociatedToConnectionRequestFilters, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, ListConnectionsRequest, ListConnectionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, GenerateChatAnswerRequestOptions, SetAssistantConnectionsRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, } from './api';
|