@vendasta/ai-assistants 0.60.0 → 0.61.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.
Files changed (27) hide show
  1. package/esm2020/lib/_internal/enums/assistant.enum.mjs +2 -1
  2. package/esm2020/lib/_internal/function.api.service.mjs +12 -2
  3. package/esm2020/lib/_internal/goal.api.service.mjs +7 -2
  4. package/esm2020/lib/_internal/interfaces/assistant.interface.mjs +1 -1
  5. package/esm2020/lib/_internal/interfaces/function.interface.mjs +1 -1
  6. package/esm2020/lib/_internal/interfaces/goal.interface.mjs +1 -1
  7. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  8. package/esm2020/lib/_internal/objects/assistant.mjs +27 -1
  9. package/esm2020/lib/_internal/objects/function.mjs +163 -1
  10. package/esm2020/lib/_internal/objects/goal.mjs +82 -1
  11. package/esm2020/lib/_internal/objects/index.mjs +4 -4
  12. package/fesm2015/vendasta-ai-assistants.mjs +286 -1
  13. package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
  14. package/fesm2020/vendasta-ai-assistants.mjs +286 -1
  15. package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
  16. package/lib/_internal/enums/assistant.enum.d.ts +2 -1
  17. package/lib/_internal/function.api.service.d.ts +4 -2
  18. package/lib/_internal/goal.api.service.d.ts +3 -2
  19. package/lib/_internal/interfaces/assistant.interface.d.ts +4 -0
  20. package/lib/_internal/interfaces/function.interface.d.ts +26 -0
  21. package/lib/_internal/interfaces/goal.interface.d.ts +13 -0
  22. package/lib/_internal/interfaces/index.d.ts +3 -3
  23. package/lib/_internal/objects/assistant.d.ts +7 -0
  24. package/lib/_internal/objects/function.d.ts +44 -0
  25. package/lib/_internal/objects/goal.d.ts +22 -0
  26. package/lib/_internal/objects/index.d.ts +3 -3
  27. package/package.json +1 -1
@@ -2,5 +2,6 @@ export declare enum VendorModel {
2
2
  VENDOR_MODEL_UNSPECIFIED = 0,
3
3
  VENDOR_MODEL_OPEN_AI_REALTIME = 1,
4
4
  VENDOR_MODEL_DEEPGRAM = 2,
5
- VENDOR_MODEL_ELEVEN_LABS = 3
5
+ VENDOR_MODEL_ELEVEN_LABS = 3,
6
+ VENDOR_MODEL_OPEN_AI = 4
6
7
  }
@@ -1,5 +1,5 @@
1
- import { CreateMCPFromIntegrationRequest, DeleteFunctionRequest, DeleteMCPRequest, GetFunctionRequest, GetFunctionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, ListFunctionRequest, ListFunctionResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsResponse, UpsertFunctionRequest, UpsertMCPRequest } from './objects/';
2
- import { CreateMCPFromIntegrationRequestInterface, DeleteFunctionRequestInterface, DeleteMCPRequestInterface, GetFunctionRequestInterface, GetMultiFunctionRequestInterface, ListFunctionRequestInterface, ListMCPToolsRequestInterface, ListMCPsRequestInterface, UpsertFunctionRequestInterface, UpsertMCPRequestInterface } from './interfaces/';
1
+ import { CreateMCPFromIntegrationRequest, DeleteFunctionRequest, DeleteMCPRequest, GetFunctionRequest, GetFunctionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, ListFunctionRequest, ListFunctionResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsResponse, UpsertFunctionRequest, UpsertMCPRequest, ValidateFunctionsRequest, ValidateFunctionsResponse, ValidateMCPsRequest, ValidateMCPsResponse } from './objects/';
2
+ import { CreateMCPFromIntegrationRequestInterface, DeleteFunctionRequestInterface, DeleteMCPRequestInterface, GetFunctionRequestInterface, GetMultiFunctionRequestInterface, ListFunctionRequestInterface, ListMCPToolsRequestInterface, ListMCPsRequestInterface, UpsertFunctionRequestInterface, UpsertMCPRequestInterface, ValidateFunctionsRequestInterface, ValidateMCPsRequestInterface } from './interfaces/';
3
3
  import { HttpResponse } from '@angular/common/http';
4
4
  import { Observable } from 'rxjs';
5
5
  import * as i0 from "@angular/core";
@@ -18,6 +18,8 @@ export declare class FunctionApiService {
18
18
  listMcPs(r: ListMCPsRequest | ListMCPsRequestInterface): Observable<ListMCPsResponse>;
19
19
  deleteMcp(r: DeleteMCPRequest | DeleteMCPRequestInterface): Observable<HttpResponse<null>>;
20
20
  createMcpFromIntegration(r: CreateMCPFromIntegrationRequest | CreateMCPFromIntegrationRequestInterface): Observable<HttpResponse<null>>;
21
+ validateFunctions(r: ValidateFunctionsRequest | ValidateFunctionsRequestInterface): Observable<ValidateFunctionsResponse>;
22
+ validateMcPs(r: ValidateMCPsRequest | ValidateMCPsRequestInterface): Observable<ValidateMCPsResponse>;
21
23
  static ɵfac: i0.ɵɵFactoryDeclaration<FunctionApiService, never>;
22
24
  static ɵprov: i0.ɵɵInjectableDeclaration<FunctionApiService>;
23
25
  }
@@ -1,5 +1,5 @@
1
- import { CreateGoalRequest, CreateGoalResponse, DeleteGoalRequest, GetGoalRequest, GetGoalResponse, GetMultiGoalRequest, GetMultiGoalResponse, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, ListGoalsRequest, ListGoalsResponse, UpdateGoalRequest, UpsertGoalRequest } from './objects/';
2
- import { CreateGoalRequestInterface, DeleteGoalRequestInterface, GetGoalRequestInterface, GetMultiGoalRequestInterface, GoalsDisabledForAccountGroupRequestInterface, ListGoalsRequestInterface, UpdateGoalRequestInterface, UpsertGoalRequestInterface } from './interfaces/';
1
+ import { CreateGoalRequest, CreateGoalResponse, DeleteGoalRequest, GetGoalRequest, GetGoalResponse, GetMultiGoalRequest, GetMultiGoalResponse, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, ListGoalsRequest, ListGoalsResponse, UpdateGoalRequest, UpsertGoalRequest, ValidateGoalsRequest, ValidateGoalsResponse } from './objects/';
2
+ import { CreateGoalRequestInterface, DeleteGoalRequestInterface, GetGoalRequestInterface, GetMultiGoalRequestInterface, GoalsDisabledForAccountGroupRequestInterface, ListGoalsRequestInterface, UpdateGoalRequestInterface, UpsertGoalRequestInterface, ValidateGoalsRequestInterface } from './interfaces/';
3
3
  import { HttpResponse } from '@angular/common/http';
4
4
  import { Observable } from 'rxjs';
5
5
  import * as i0 from "@angular/core";
@@ -16,6 +16,7 @@ export declare class GoalApiService {
16
16
  delete(r: DeleteGoalRequest | DeleteGoalRequestInterface): Observable<HttpResponse<null>>;
17
17
  list(r: ListGoalsRequest | ListGoalsRequestInterface): Observable<ListGoalsResponse>;
18
18
  goalsDisabledForAccountGroup(r: GoalsDisabledForAccountGroupRequest | GoalsDisabledForAccountGroupRequestInterface): Observable<GoalsDisabledForAccountGroupResponse>;
19
+ validateGoals(r: ValidateGoalsRequest | ValidateGoalsRequestInterface): Observable<ValidateGoalsResponse>;
19
20
  static ɵfac: i0.ɵɵFactoryDeclaration<GoalApiService, never>;
20
21
  static ɵprov: i0.ɵɵInjectableDeclaration<GoalApiService>;
21
22
  }
@@ -42,6 +42,10 @@ export interface ModelConfigInterface {
42
42
  openaiRealtimeConfig?: OpenAIRealtimeConfigInterface;
43
43
  deepgramConfig?: DeepgramConfigInterface;
44
44
  elevenLabsConfig?: ElevenLabsConfigInterface;
45
+ openaiConfig?: OpenAIConfigInterface;
46
+ }
47
+ export interface OpenAIConfigInterface {
48
+ voice?: string;
45
49
  }
46
50
  export interface OpenAIRealtimeConfigInterface {
47
51
  voice?: string;
@@ -97,3 +97,29 @@ export interface UpsertMCPRequestInterface {
97
97
  functions?: FunctionInterface[];
98
98
  authStrategy?: FunctionAuthStrategyInterface;
99
99
  }
100
+ export interface ValidateFunctionsRequestInterface {
101
+ functions?: FunctionInterface[];
102
+ }
103
+ export interface ValidateFunctionsResponseInterface {
104
+ results?: ValidateFunctionsResponseValidationResultInterface[];
105
+ allValid?: boolean;
106
+ }
107
+ export interface ValidateMCPsRequestInterface {
108
+ mcps?: MCPInterface[];
109
+ }
110
+ export interface ValidateMCPsResponseInterface {
111
+ results?: ValidateMCPsResponseValidationResultInterface[];
112
+ allValid?: boolean;
113
+ }
114
+ export interface ValidateFunctionsResponseValidationResultInterface {
115
+ functionId?: string;
116
+ namespace?: NamespaceInterface;
117
+ isValid?: boolean;
118
+ errorMessage?: string;
119
+ }
120
+ export interface ValidateMCPsResponseValidationResultInterface {
121
+ mcpId?: string;
122
+ namespace?: NamespaceInterface;
123
+ isValid?: boolean;
124
+ errorMessage?: string;
125
+ }
@@ -22,3 +22,16 @@ export interface GoalKeyInterface {
22
22
  id?: string;
23
23
  namespace?: NamespaceInterface;
24
24
  }
25
+ export interface ValidateGoalsRequestInterface {
26
+ goals?: GoalInterface[];
27
+ }
28
+ export interface ValidateGoalsResponseInterface {
29
+ results?: ValidateGoalsResponseValidationResultInterface[];
30
+ allValid?: boolean;
31
+ }
32
+ export interface ValidateGoalsResponseValidationResultInterface {
33
+ goalId?: string;
34
+ namespace?: NamespaceInterface;
35
+ isValid?: boolean;
36
+ errorMessage?: string;
37
+ }
@@ -1,12 +1,12 @@
1
1
  export { NamespaceAccountGroupNamespaceInterface, NamespaceGlobalNamespaceInterface, NamespaceInterface, NamespacePartnerNamespaceInterface, NamespaceSystemNamespaceInterface, } from './namespace.interface';
2
2
  export { ConstraintInterface, ConstraintFilterInterface, ScopeInterface, } from './constraints.interface';
3
3
  export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
4
- export { FunctionAuthStrategyConnectedIntegrationAuthStrategyInterface, CreateMCPFromIntegrationRequestInterface, DeleteMCPRequestInterface, ListMCPsRequestFiltersInterface, FunctionInterface, FunctionAuthStrategyInterface, FunctionHeaderInterface, FunctionKeyInterface, FunctionParameterInterface, FunctionAuthStrategyImpersonationAuthStrategyInterface, ListMCPToolsRequestInterface, ListMCPToolsResponseInterface, ListMCPsRequestInterface, ListMCPsResponseInterface, MCPInterface, FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface, FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface, UpsertMCPRequestInterface, } from './function.interface';
4
+ export { FunctionAuthStrategyConnectedIntegrationAuthStrategyInterface, CreateMCPFromIntegrationRequestInterface, DeleteMCPRequestInterface, ListMCPsRequestFiltersInterface, FunctionInterface, FunctionAuthStrategyInterface, FunctionHeaderInterface, FunctionKeyInterface, FunctionParameterInterface, FunctionAuthStrategyImpersonationAuthStrategyInterface, ListMCPToolsRequestInterface, ListMCPToolsResponseInterface, ListMCPsRequestInterface, ListMCPsResponseInterface, MCPInterface, FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface, FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface, UpsertMCPRequestInterface, ValidateFunctionsRequestInterface, ValidateFunctionsResponseInterface, ValidateMCPsRequestInterface, ValidateMCPsResponseInterface, ValidateFunctionsResponseValidationResultInterface, ValidateMCPsResponseValidationResultInterface, } from './function.interface';
5
5
  export { PromptModuleInterface, PromptModuleKeyInterface, PromptModuleVersionInterface, } from './prompt.interface';
6
- export { GoalInterface, GoalKeyInterface, } from './goal.interface';
6
+ export { GoalInterface, GoalKeyInterface, ValidateGoalsRequestInterface, ValidateGoalsResponseInterface, ValidateGoalsResponseValidationResultInterface, } from './goal.interface';
7
7
  export { KeyValuePairInterface, } from './common.interface';
8
8
  export { ModelInterface, } from './model.interface';
9
- export { AssistantInterface, AssistantKeyInterface, ConfigInterface, ConfigurableGoalInterface, DeepgramConfigInterface, ElevenLabsConfigInterface, ConfigInboxConfigInterface, ModelConfigInterface, OpenAIRealtimeConfigInterface, TemplateVariableInterface, OpenAIRealtimeConfigTurnDetectionInterface, ConfigVoiceConfigInterface, } from './assistant.interface';
9
+ export { AssistantInterface, AssistantKeyInterface, ConfigInterface, ConfigurableGoalInterface, DeepgramConfigInterface, ElevenLabsConfigInterface, ConfigInboxConfigInterface, ModelConfigInterface, OpenAIConfigInterface, OpenAIRealtimeConfigInterface, TemplateVariableInterface, OpenAIRealtimeConfigTurnDetectionInterface, ConfigVoiceConfigInterface, } from './assistant.interface';
10
10
  export { ConnectionInterface, ConnectionKeyInterface, } from './connection.interface';
11
11
  export { ChatAnswerFunctionExecutionJobInterface, ChatAnswerFunctionExecutionJobResultInterface, ChatContentInterface, ChatMessageInterface, ChatUserInfoInterface, ContextInfoInterface, ImageContentInterface, } from './answer.interface';
12
12
  export { CancelTestRunRequestInterface, TestResultCitationInterface, DeleteTestCasesRequestInterface, GetTestRunRequestInterface, GetTestRunResponseInterface, ListTestCasesByAssistantRequestInterface, ListTestCasesByAssistantResponseInterface, ListTestRunsByAssistantRequestInterface, ListTestRunsByAssistantResponseInterface, RunTestsRequestInterface, RunTestsResponseInterface, SortOptionsInterface, TestCaseInterface, TestResultInterface, TestRunInterface, UpsertTestCasesRequestInterface, } from './integration-tests.interface';
@@ -65,10 +65,17 @@ export declare class ModelConfig implements i.ModelConfigInterface {
65
65
  openaiRealtimeConfig: OpenAIRealtimeConfig;
66
66
  deepgramConfig: DeepgramConfig;
67
67
  elevenLabsConfig: ElevenLabsConfig;
68
+ openaiConfig: OpenAIConfig;
68
69
  static fromProto(proto: any): ModelConfig;
69
70
  constructor(kwargs?: i.ModelConfigInterface);
70
71
  toApiJson(): object;
71
72
  }
73
+ export declare class OpenAIConfig implements i.OpenAIConfigInterface {
74
+ voice: string;
75
+ static fromProto(proto: any): OpenAIConfig;
76
+ constructor(kwargs?: i.OpenAIConfigInterface);
77
+ toApiJson(): object;
78
+ }
72
79
  export declare class OpenAIRealtimeConfig implements i.OpenAIRealtimeConfigInterface {
73
80
  voice: string;
74
81
  turnDetection: OpenAIRealtimeConfigTurnDetection;
@@ -153,3 +153,47 @@ export declare class UpsertMCPRequest implements i.UpsertMCPRequestInterface {
153
153
  constructor(kwargs?: i.UpsertMCPRequestInterface);
154
154
  toApiJson(): object;
155
155
  }
156
+ export declare class ValidateFunctionsRequest implements i.ValidateFunctionsRequestInterface {
157
+ functions: Function[];
158
+ static fromProto(proto: any): ValidateFunctionsRequest;
159
+ constructor(kwargs?: i.ValidateFunctionsRequestInterface);
160
+ toApiJson(): object;
161
+ }
162
+ export declare class ValidateFunctionsResponse implements i.ValidateFunctionsResponseInterface {
163
+ results: ValidateFunctionsResponseValidationResult[];
164
+ allValid: boolean;
165
+ static fromProto(proto: any): ValidateFunctionsResponse;
166
+ constructor(kwargs?: i.ValidateFunctionsResponseInterface);
167
+ toApiJson(): object;
168
+ }
169
+ export declare class ValidateMCPsRequest implements i.ValidateMCPsRequestInterface {
170
+ mcps: MCP[];
171
+ static fromProto(proto: any): ValidateMCPsRequest;
172
+ constructor(kwargs?: i.ValidateMCPsRequestInterface);
173
+ toApiJson(): object;
174
+ }
175
+ export declare class ValidateMCPsResponse implements i.ValidateMCPsResponseInterface {
176
+ results: ValidateMCPsResponseValidationResult[];
177
+ allValid: boolean;
178
+ static fromProto(proto: any): ValidateMCPsResponse;
179
+ constructor(kwargs?: i.ValidateMCPsResponseInterface);
180
+ toApiJson(): object;
181
+ }
182
+ export declare class ValidateFunctionsResponseValidationResult implements i.ValidateFunctionsResponseValidationResultInterface {
183
+ functionId: string;
184
+ namespace: Namespace;
185
+ isValid: boolean;
186
+ errorMessage: string;
187
+ static fromProto(proto: any): ValidateFunctionsResponseValidationResult;
188
+ constructor(kwargs?: i.ValidateFunctionsResponseValidationResultInterface);
189
+ toApiJson(): object;
190
+ }
191
+ export declare class ValidateMCPsResponseValidationResult implements i.ValidateMCPsResponseValidationResultInterface {
192
+ mcpId: string;
193
+ namespace: Namespace;
194
+ isValid: boolean;
195
+ errorMessage: string;
196
+ static fromProto(proto: any): ValidateMCPsResponseValidationResult;
197
+ constructor(kwargs?: i.ValidateMCPsResponseValidationResultInterface);
198
+ toApiJson(): object;
199
+ }
@@ -30,3 +30,25 @@ export declare class GoalKey implements i.GoalKeyInterface {
30
30
  constructor(kwargs?: i.GoalKeyInterface);
31
31
  toApiJson(): object;
32
32
  }
33
+ export declare class ValidateGoalsRequest implements i.ValidateGoalsRequestInterface {
34
+ goals: Goal[];
35
+ static fromProto(proto: any): ValidateGoalsRequest;
36
+ constructor(kwargs?: i.ValidateGoalsRequestInterface);
37
+ toApiJson(): object;
38
+ }
39
+ export declare class ValidateGoalsResponse implements i.ValidateGoalsResponseInterface {
40
+ results: ValidateGoalsResponseValidationResult[];
41
+ allValid: boolean;
42
+ static fromProto(proto: any): ValidateGoalsResponse;
43
+ constructor(kwargs?: i.ValidateGoalsResponseInterface);
44
+ toApiJson(): object;
45
+ }
46
+ export declare class ValidateGoalsResponseValidationResult implements i.ValidateGoalsResponseValidationResultInterface {
47
+ goalId: string;
48
+ namespace: Namespace;
49
+ isValid: boolean;
50
+ errorMessage: string;
51
+ static fromProto(proto: any): ValidateGoalsResponseValidationResult;
52
+ constructor(kwargs?: i.ValidateGoalsResponseValidationResultInterface);
53
+ toApiJson(): object;
54
+ }
@@ -1,12 +1,12 @@
1
1
  export { NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, Namespace, NamespacePartnerNamespace, NamespaceSystemNamespace, } from './namespace';
2
2
  export { Constraint, ConstraintFilter, Scope, } from './constraints';
3
3
  export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
4
- export { FunctionAuthStrategyConnectedIntegrationAuthStrategy, CreateMCPFromIntegrationRequest, DeleteMCPRequest, ListMCPsRequestFilters, Function, FunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionAuthStrategyImpersonationAuthStrategy, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsResponse, MCP, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, UpsertMCPRequest, } from './function';
4
+ export { FunctionAuthStrategyConnectedIntegrationAuthStrategy, CreateMCPFromIntegrationRequest, DeleteMCPRequest, ListMCPsRequestFilters, Function, FunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionAuthStrategyImpersonationAuthStrategy, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsResponse, MCP, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, UpsertMCPRequest, ValidateFunctionsRequest, ValidateFunctionsResponse, ValidateMCPsRequest, ValidateMCPsResponse, ValidateFunctionsResponseValidationResult, ValidateMCPsResponseValidationResult, } from './function';
5
5
  export { PromptModule, PromptModuleKey, PromptModuleVersion, } from './prompt';
6
- export { Goal, GoalKey, } from './goal';
6
+ export { Goal, GoalKey, ValidateGoalsRequest, ValidateGoalsResponse, ValidateGoalsResponseValidationResult, } from './goal';
7
7
  export { KeyValuePair, } from './common';
8
8
  export { Model, } from './model';
9
- export { Assistant, AssistantKey, Config, ConfigurableGoal, DeepgramConfig, ElevenLabsConfig, ConfigInboxConfig, ModelConfig, OpenAIRealtimeConfig, TemplateVariable, OpenAIRealtimeConfigTurnDetection, ConfigVoiceConfig, } from './assistant';
9
+ export { Assistant, AssistantKey, Config, ConfigurableGoal, DeepgramConfig, ElevenLabsConfig, ConfigInboxConfig, ModelConfig, OpenAIConfig, OpenAIRealtimeConfig, TemplateVariable, OpenAIRealtimeConfigTurnDetection, ConfigVoiceConfig, } from './assistant';
10
10
  export { Connection, ConnectionKey, } from './connection';
11
11
  export { ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatContent, ChatMessage, ChatUserInfo, ContextInfo, ImageContent, } from './answer';
12
12
  export { CancelTestRunRequest, TestResultCitation, DeleteTestCasesRequest, GetTestRunRequest, GetTestRunResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, RunTestsRequest, RunTestsResponse, SortOptions, TestCase, TestResult, TestRun, UpsertTestCasesRequest, } from './integration-tests';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/ai-assistants",
3
- "version": "0.60.0",
3
+ "version": "0.61.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"