@vendasta/ai-assistants 0.2.0 → 0.3.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/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +50 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/prompt.api.service.mjs +7 -2
- package/fesm2015/vendasta-ai-assistants.mjs +55 -1
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +55 -1
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/interfaces/api.interface.d.ts +7 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +13 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/prompt.api.service.d.ts +3 -2
- package/package.json +1 -1
|
@@ -67,6 +67,13 @@ export interface GetConnectionRequestInterface {
|
|
|
67
67
|
export interface GetConnectionResponseInterface {
|
|
68
68
|
connection?: ConnectionInterface;
|
|
69
69
|
}
|
|
70
|
+
export interface GetDeployedPromptVersionRequestInterface {
|
|
71
|
+
id?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface GetDeployedPromptVersionResponseInterface {
|
|
74
|
+
prompt?: PromptInterface;
|
|
75
|
+
deployedPromptVersion?: PromptVersionInterface;
|
|
76
|
+
}
|
|
70
77
|
export interface GetPromptRequestInterface {
|
|
71
78
|
id?: string;
|
|
72
79
|
}
|
|
@@ -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, ListConnectionsRequestFiltersInterface, GenerateChatAnswerRequestInterface, GenerateChatAnswerResponseInterface, GetAssistantRequestInterface, GetAssistantResponseInterface, GetChatAnswerFunctionExecutionJobRequestInterface, GetChatAnswerFunctionExecutionJobResponseInterface, GetConnectionRequestInterface, GetConnectionResponseInterface, GetPromptRequestInterface, GetPromptResponseInterface, GetPromptVersionRequestInterface, GetPromptVersionResponseInterface, ListAssistantRequestInterface, ListAssistantResponseInterface, ListConnectionsRequestInterface, ListConnectionsResponseInterface, ListPromptRequestInterface, ListPromptResponseInterface, ListPromptVersionsRequestInterface, ListPromptVersionsResponseInterface, GenerateChatAnswerRequestOptionsInterface, UpdatePromptRequestInterface, UpsertAssistantRequestInterface, UpsertAssistantResponseInterface, UpsertConnectionRequestInterface, } from './api.interface';
|
|
9
|
+
export { CreatePromptRequestInterface, DeleteAssistantRequestInterface, DeleteConnectionRequestInterface, DeletePromptRequestInterface, DeployPromptRequestInterface, ListAssistantRequestFiltersInterface, ListConnectionsRequestFiltersInterface, GenerateChatAnswerRequestInterface, GenerateChatAnswerResponseInterface, GetAssistantRequestInterface, GetAssistantResponseInterface, GetChatAnswerFunctionExecutionJobRequestInterface, GetChatAnswerFunctionExecutionJobResponseInterface, GetConnectionRequestInterface, GetConnectionResponseInterface, GetDeployedPromptVersionRequestInterface, GetDeployedPromptVersionResponseInterface, GetPromptRequestInterface, GetPromptResponseInterface, GetPromptVersionRequestInterface, GetPromptVersionResponseInterface, ListAssistantRequestInterface, ListAssistantResponseInterface, ListConnectionsRequestInterface, ListConnectionsResponseInterface, ListPromptRequestInterface, ListPromptResponseInterface, ListPromptVersionsRequestInterface, ListPromptVersionsResponseInterface, GenerateChatAnswerRequestOptionsInterface, UpdatePromptRequestInterface, UpsertAssistantRequestInterface, UpsertAssistantResponseInterface, UpsertConnectionRequestInterface, } from './api.interface';
|
|
@@ -114,6 +114,19 @@ export declare class GetConnectionResponse implements i.GetConnectionResponseInt
|
|
|
114
114
|
constructor(kwargs?: i.GetConnectionResponseInterface);
|
|
115
115
|
toApiJson(): object;
|
|
116
116
|
}
|
|
117
|
+
export declare class GetDeployedPromptVersionRequest implements i.GetDeployedPromptVersionRequestInterface {
|
|
118
|
+
id: string;
|
|
119
|
+
static fromProto(proto: any): GetDeployedPromptVersionRequest;
|
|
120
|
+
constructor(kwargs?: i.GetDeployedPromptVersionRequestInterface);
|
|
121
|
+
toApiJson(): object;
|
|
122
|
+
}
|
|
123
|
+
export declare class GetDeployedPromptVersionResponse implements i.GetDeployedPromptVersionResponseInterface {
|
|
124
|
+
prompt: Prompt;
|
|
125
|
+
deployedPromptVersion: PromptVersion;
|
|
126
|
+
static fromProto(proto: any): GetDeployedPromptVersionResponse;
|
|
127
|
+
constructor(kwargs?: i.GetDeployedPromptVersionResponseInterface);
|
|
128
|
+
toApiJson(): object;
|
|
129
|
+
}
|
|
117
130
|
export declare class GetPromptRequest implements i.GetPromptRequestInterface {
|
|
118
131
|
id: string;
|
|
119
132
|
static fromProto(proto: any): GetPromptRequest;
|
|
@@ -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, ListConnectionsRequestFilters, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, ListAssistantRequest, ListAssistantResponse, ListConnectionsRequest, ListConnectionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, GenerateChatAnswerRequestOptions, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, } from './api';
|
|
9
|
+
export { CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeletePromptRequest, DeployPromptRequest, ListAssistantRequestFilters, ListConnectionsRequestFilters, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, ListAssistantRequest, ListAssistantResponse, ListConnectionsRequest, ListConnectionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, GenerateChatAnswerRequestOptions, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, } from './api';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CreatePromptRequest, DeletePromptRequest, DeployPromptRequest, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, UpdatePromptRequest } from './objects/';
|
|
2
|
-
import { CreatePromptRequestInterface, DeletePromptRequestInterface, DeployPromptRequestInterface, GetPromptRequestInterface, GetPromptVersionRequestInterface, ListPromptRequestInterface, ListPromptVersionsRequestInterface, UpdatePromptRequestInterface } from './interfaces/';
|
|
1
|
+
import { CreatePromptRequest, DeletePromptRequest, DeployPromptRequest, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, UpdatePromptRequest } from './objects/';
|
|
2
|
+
import { CreatePromptRequestInterface, DeletePromptRequestInterface, DeployPromptRequestInterface, GetDeployedPromptVersionRequestInterface, GetPromptRequestInterface, GetPromptVersionRequestInterface, ListPromptRequestInterface, ListPromptVersionsRequestInterface, UpdatePromptRequestInterface } from './interfaces/';
|
|
3
3
|
import { HttpResponse } from '@angular/common/http';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -11,6 +11,7 @@ export declare class PromptApiService {
|
|
|
11
11
|
create(r: CreatePromptRequest | CreatePromptRequestInterface): Observable<HttpResponse<null>>;
|
|
12
12
|
get(r: GetPromptRequest | GetPromptRequestInterface): Observable<GetPromptResponse>;
|
|
13
13
|
getVersion(r: GetPromptVersionRequest | GetPromptVersionRequestInterface): Observable<GetPromptVersionResponse>;
|
|
14
|
+
getDeployedVersion(r: GetDeployedPromptVersionRequest | GetDeployedPromptVersionRequestInterface): Observable<GetDeployedPromptVersionResponse>;
|
|
14
15
|
update(r: UpdatePromptRequest | UpdatePromptRequestInterface): Observable<HttpResponse<null>>;
|
|
15
16
|
deploy(r: DeployPromptRequest | DeployPromptRequestInterface): Observable<HttpResponse<null>>;
|
|
16
17
|
list(r: ListPromptRequest | ListPromptRequestInterface): Observable<ListPromptResponse>;
|