@vendasta/ai-assistants 0.31.0 → 0.33.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.
@@ -5,5 +5,6 @@ export { AssistantApiService } from './assistant.api.service';
5
5
  export { ConnectionApiService } from './connection.api.service';
6
6
  export { FunctionApiService } from './function.api.service';
7
7
  export { GoalApiService } from './goal.api.service';
8
+ export { IntegrationTestApiService } from './integration-test.api.service';
8
9
  export { PromptModuleApiService } from './prompt-module.api.service';
9
10
  export { PromptApiService } from './prompt.api.service';
@@ -0,0 +1,17 @@
1
+ import { DeleteTestCasesRequest, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, RunTestsRequest, RunTestsResponse, UpsertTestCasesRequest } from './objects/';
2
+ import { DeleteTestCasesRequestInterface, ListTestCasesByAssistantRequestInterface, RunTestsRequestInterface, UpsertTestCasesRequestInterface } 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 IntegrationTestApiService {
7
+ private readonly hostService;
8
+ private readonly http;
9
+ private _host;
10
+ private apiOptions;
11
+ listTestCasesByAssistant(r: ListTestCasesByAssistantRequest | ListTestCasesByAssistantRequestInterface): Observable<ListTestCasesByAssistantResponse>;
12
+ upsertTestCases(r: UpsertTestCasesRequest | UpsertTestCasesRequestInterface): Observable<HttpResponse<null>>;
13
+ deleteTestCases(r: DeleteTestCasesRequest | DeleteTestCasesRequestInterface): Observable<HttpResponse<null>>;
14
+ runTests(r: RunTestsRequest | RunTestsRequestInterface): Observable<RunTestsResponse>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<IntegrationTestApiService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<IntegrationTestApiService>;
17
+ }
@@ -6,7 +6,8 @@ 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
8
  export { ChatAnswerFunctionExecutionJobInterface, ChatAnswerFunctionExecutionJobResultInterface, ChatMessageInterface, ChatUserInfoInterface, ContextInfoInterface, } from './answer.interface';
9
- export { AccessInterface, } from './annotations.interface';
10
9
  export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
10
+ export { DeleteTestCasesRequestInterface, ListTestCasesByAssistantRequestInterface, ListTestCasesByAssistantResponseInterface, RunTestsRequestInterface, RunTestsResponseInterface, TestCaseInterface, UpsertTestCasesRequestInterface, } from './integration-tests.interface';
11
+ export { AccessInterface, } from './annotations.interface';
11
12
  export { FieldMaskInterface, } from './field-mask.interface';
12
13
  export { BuildDefaultAssistantRequestInterface, BuildDefaultAssistantResponseInterface, SetAssistantConnectionsRequestConnectionStateInterface, CreateAssistantRequestInterface, CreateAssistantResponseInterface, CreateGoalRequestInterface, CreateGoalResponseInterface, CreatePromptModuleRequestInterface, CreatePromptModuleResponseInterface, CreatePromptModuleVersionRequestInterface, CreatePromptRequestInterface, DeleteAssistantRequestInterface, DeleteConnectionRequestInterface, DeleteFunctionRequestInterface, DeleteGoalRequestInterface, DeletePromptModuleRequestInterface, DeletePromptRequestInterface, DeployPromptModuleRequestInterface, DeployPromptRequestInterface, ExecuteFunctionRequestInterface, ExecuteFunctionResponseInterface, ListFunctionRequestFiltersInterface, ListConnectionsRequestFiltersInterface, ListPromptModuleRequestFiltersInterface, ListAllAssistantsAssociatedToConnectionRequestFiltersInterface, ListAssistantRequestFiltersInterface, ListGoalsRequestFiltersInterface, GenerateChatAnswerRequestInterface, GenerateChatAnswerResponseInterface, GetAssistantRequestInterface, GetAssistantResponseInterface, GetChatAnswerFunctionExecutionJobRequestInterface, GetChatAnswerFunctionExecutionJobResponseInterface, GetConnectionRequestInterface, GetConnectionResponseInterface, GetDeployedPromptModuleVersionRequestInterface, GetDeployedPromptModuleVersionResponseInterface, GetDeployedPromptVersionRequestInterface, GetDeployedPromptVersionResponseInterface, GetFunctionRequestInterface, GetFunctionResponseInterface, GetGoalRequestInterface, GetGoalResponseInterface, GetHydratedDeployedPromptModuleVersionRequestInterface, GetHydratedDeployedPromptModuleVersionResponseInterface, GetMultiDeployedPromptVersionRequestInterface, GetMultiDeployedPromptVersionResponseInterface, GetMultiFunctionRequestInterface, GetMultiFunctionResponseInterface, GetMultiGoalRequestInterface, GetMultiGoalResponseInterface, GetMultiHydratedDeployedPromptModuleVersionRequestInterface, GetMultiHydratedDeployedPromptModuleVersionResponseInterface, GetPromptModuleRequestInterface, GetPromptModuleResponseInterface, GetPromptModuleVersionRequestInterface, GetPromptModuleVersionResponseInterface, GetPromptRequestInterface, GetPromptResponseInterface, GetPromptVersionRequestInterface, GetPromptVersionResponseInterface, GoalsDisabledForAccountGroupRequestInterface, GoalsDisabledForAccountGroupResponseInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAllAssistantsAssociatedToConnectionResponseInterface, ListAssistantRequestInterface, ListAssistantResponseInterface, ListConnectionsRequestInterface, ListConnectionsResponseInterface, ListFunctionRequestInterface, ListFunctionResponseInterface, ListGoalsRequestInterface, ListGoalsResponseInterface, ListPromptModuleRequestInterface, ListPromptModuleResponseInterface, ListPromptModuleVersionsRequestInterface, ListPromptModuleVersionsResponseInterface, ListPromptRequestInterface, ListPromptResponseInterface, ListPromptVersionsRequestInterface, ListPromptVersionsResponseInterface, CreateAssistantRequestOptionsInterface, CreatePromptModuleVersionRequestOptionsInterface, GenerateChatAnswerRequestOptionsInterface, UpsertAssistantRequestOptionsInterface, SetAssistantConnectionsRequestInterface, UpdateAssistantRequestInterface, UpdateGoalRequestInterface, UpdatePromptModuleRequestInterface, UpdatePromptRequestInterface, UpsertAssistantRequestInterface, UpsertAssistantResponseInterface, UpsertConnectionRequestInterface, UpsertFunctionRequestInterface, UpsertGoalRequestInterface, } from './api.interface';
@@ -0,0 +1,32 @@
1
+ import { AssistantKeyInterface } from './assistant.interface';
2
+ import { ChatMessageInterface } from './answer.interface';
3
+ import { PagedRequestOptionsInterface, PagedResponseMetadataInterface } from './paging.interface';
4
+ export interface DeleteTestCasesRequestInterface {
5
+ assistant?: AssistantKeyInterface;
6
+ testCaseIds?: string[];
7
+ }
8
+ export interface ListTestCasesByAssistantRequestInterface {
9
+ assistant?: AssistantKeyInterface;
10
+ pagingOptions?: PagedRequestOptionsInterface;
11
+ }
12
+ export interface ListTestCasesByAssistantResponseInterface {
13
+ testCases?: TestCaseInterface[];
14
+ pagingMetadata?: PagedResponseMetadataInterface;
15
+ }
16
+ export interface RunTestsRequestInterface {
17
+ assistant?: AssistantKeyInterface;
18
+ testCaseIds?: string[];
19
+ }
20
+ export interface RunTestsResponseInterface {
21
+ buildUrl?: string;
22
+ }
23
+ export interface TestCaseInterface {
24
+ id?: string;
25
+ name?: string;
26
+ chatHistory?: ChatMessageInterface[];
27
+ expectation?: string;
28
+ }
29
+ export interface UpsertTestCasesRequestInterface {
30
+ assistant?: AssistantKeyInterface;
31
+ testCases?: TestCaseInterface[];
32
+ }
@@ -6,7 +6,8 @@ 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
8
  export { ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatMessage, ChatUserInfo, ContextInfo, } from './answer';
9
- export { Access, } from './annotations';
10
9
  export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
10
+ export { DeleteTestCasesRequest, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, RunTestsRequest, RunTestsResponse, TestCase, UpsertTestCasesRequest, } from './integration-tests';
11
+ export { Access, } from './annotations';
11
12
  export { FieldMask, } from './field-mask';
12
13
  export { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, SetAssistantConnectionsRequestConnectionState, CreateAssistantRequest, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, ListPromptModuleRequestFilters, ListConnectionsRequestFilters, ListGoalsRequestFilters, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAssistantRequestFilters, ListFunctionRequestFilters, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, ListConnectionsRequest, ListConnectionsResponse, ListFunctionRequest, ListFunctionResponse, ListGoalsRequest, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, CreatePromptModuleVersionRequestOptions, GenerateChatAnswerRequestOptions, CreateAssistantRequestOptions, UpsertAssistantRequestOptions, SetAssistantConnectionsRequest, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, } from './api';
@@ -0,0 +1,55 @@
1
+ import * as i from '../interfaces';
2
+ import { AssistantKey } from './assistant';
3
+ import { ChatMessage } from './answer';
4
+ import { PagedRequestOptions, PagedResponseMetadata } from './paging';
5
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
6
+ export declare class DeleteTestCasesRequest implements i.DeleteTestCasesRequestInterface {
7
+ assistant: AssistantKey;
8
+ testCaseIds: string[];
9
+ static fromProto(proto: any): DeleteTestCasesRequest;
10
+ constructor(kwargs?: i.DeleteTestCasesRequestInterface);
11
+ toApiJson(): object;
12
+ }
13
+ export declare class ListTestCasesByAssistantRequest implements i.ListTestCasesByAssistantRequestInterface {
14
+ assistant: AssistantKey;
15
+ pagingOptions: PagedRequestOptions;
16
+ static fromProto(proto: any): ListTestCasesByAssistantRequest;
17
+ constructor(kwargs?: i.ListTestCasesByAssistantRequestInterface);
18
+ toApiJson(): object;
19
+ }
20
+ export declare class ListTestCasesByAssistantResponse implements i.ListTestCasesByAssistantResponseInterface {
21
+ testCases: TestCase[];
22
+ pagingMetadata: PagedResponseMetadata;
23
+ static fromProto(proto: any): ListTestCasesByAssistantResponse;
24
+ constructor(kwargs?: i.ListTestCasesByAssistantResponseInterface);
25
+ toApiJson(): object;
26
+ }
27
+ export declare class RunTestsRequest implements i.RunTestsRequestInterface {
28
+ assistant: AssistantKey;
29
+ testCaseIds: string[];
30
+ static fromProto(proto: any): RunTestsRequest;
31
+ constructor(kwargs?: i.RunTestsRequestInterface);
32
+ toApiJson(): object;
33
+ }
34
+ export declare class RunTestsResponse implements i.RunTestsResponseInterface {
35
+ buildUrl: string;
36
+ static fromProto(proto: any): RunTestsResponse;
37
+ constructor(kwargs?: i.RunTestsResponseInterface);
38
+ toApiJson(): object;
39
+ }
40
+ export declare class TestCase implements i.TestCaseInterface {
41
+ id: string;
42
+ name: string;
43
+ chatHistory: ChatMessage[];
44
+ expectation: string;
45
+ static fromProto(proto: any): TestCase;
46
+ constructor(kwargs?: i.TestCaseInterface);
47
+ toApiJson(): object;
48
+ }
49
+ export declare class UpsertTestCasesRequest implements i.UpsertTestCasesRequestInterface {
50
+ assistant: AssistantKey;
51
+ testCases: TestCase[];
52
+ static fromProto(proto: any): UpsertTestCasesRequest;
53
+ constructor(kwargs?: i.UpsertTestCasesRequestInterface);
54
+ toApiJson(): object;
55
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/ai-assistants",
3
- "version": "0.31.0",
3
+ "version": "0.33.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"