@vendasta/ai-assistants 0.44.0 → 0.45.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.
@@ -1,5 +1,5 @@
1
- import { DeleteFunctionRequest, GetFunctionRequest, GetFunctionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, ListFunctionRequest, ListFunctionResponse, UpsertFunctionRequest } from './objects/';
2
- import { DeleteFunctionRequestInterface, GetFunctionRequestInterface, GetMultiFunctionRequestInterface, ListFunctionRequestInterface, UpsertFunctionRequestInterface } from './interfaces/';
1
+ import { DeleteFunctionRequest, GetFunctionRequest, GetFunctionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, ListFunctionRequest, ListFunctionResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsResponse, UpsertFunctionRequest, UpsertMCPRequest } from './objects/';
2
+ import { DeleteFunctionRequestInterface, GetFunctionRequestInterface, GetMultiFunctionRequestInterface, ListFunctionRequestInterface, ListMCPToolsRequestInterface, ListMCPsRequestInterface, UpsertFunctionRequestInterface, UpsertMCPRequestInterface } from './interfaces/';
3
3
  import { HttpResponse } from '@angular/common/http';
4
4
  import { Observable } from 'rxjs';
5
5
  import * as i0 from "@angular/core";
@@ -13,6 +13,9 @@ export declare class FunctionApiService {
13
13
  getMulti(r: GetMultiFunctionRequest | GetMultiFunctionRequestInterface): Observable<GetMultiFunctionResponse>;
14
14
  list(r: ListFunctionRequest | ListFunctionRequestInterface): Observable<ListFunctionResponse>;
15
15
  delete(r: DeleteFunctionRequest | DeleteFunctionRequestInterface): Observable<HttpResponse<null>>;
16
+ listMcpTools(r: ListMCPToolsRequest | ListMCPToolsRequestInterface): Observable<ListMCPToolsResponse>;
17
+ upsertMcp(r: UpsertMCPRequest | UpsertMCPRequestInterface): Observable<HttpResponse<null>>;
18
+ listMcPs(r: ListMCPsRequest | ListMCPsRequestInterface): Observable<ListMCPsResponse>;
16
19
  static ɵfac: i0.ɵɵFactoryDeclaration<FunctionApiService, never>;
17
20
  static ɵprov: i0.ɵɵInjectableDeclaration<FunctionApiService>;
18
21
  }
@@ -1,5 +1,10 @@
1
1
  import { NamespaceInterface } from './namespace.interface';
2
+ import { PagedRequestOptionsInterface, PagedResponseMetadataInterface } from './paging.interface';
2
3
  import * as e from '../enums';
4
+ export interface ListMCPsRequestFiltersInterface {
5
+ namespaces?: NamespaceInterface[];
6
+ mcpIds?: string[];
7
+ }
3
8
  export interface FunctionInterface {
4
9
  id?: string;
5
10
  namespace?: NamespaceInterface;
@@ -34,8 +39,36 @@ export interface FunctionParameterInterface {
34
39
  value?: string;
35
40
  location?: e.FunctionParameterParameterLocation;
36
41
  }
42
+ export interface ListMCPToolsRequestInterface {
43
+ namespace?: NamespaceInterface;
44
+ url?: string;
45
+ authStrategy?: FunctionAuthStrategyInterface;
46
+ headers?: FunctionHeaderInterface[];
47
+ mcpId?: string;
48
+ }
49
+ export interface ListMCPToolsResponseInterface {
50
+ functions?: FunctionInterface[];
51
+ }
52
+ export interface ListMCPsRequestInterface {
53
+ filters?: ListMCPsRequestFiltersInterface;
54
+ pagingOptions?: PagedRequestOptionsInterface;
55
+ }
56
+ export interface ListMCPsResponseInterface {
57
+ mcps?: MCPInterface[];
58
+ pagingMetadata?: PagedResponseMetadataInterface;
59
+ }
60
+ export interface MCPInterface {
61
+ id?: string;
62
+ url?: string;
63
+ }
37
64
  export interface FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface {
38
65
  requiredScopes?: string[];
39
66
  }
40
67
  export interface FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface {
41
68
  }
69
+ export interface UpsertMCPRequestInterface {
70
+ namespace?: NamespaceInterface;
71
+ url?: string;
72
+ mcpId?: string;
73
+ functions?: FunctionInterface[];
74
+ }
@@ -1,5 +1,6 @@
1
1
  export { NamespaceAccountGroupNamespaceInterface, NamespaceGlobalNamespaceInterface, NamespaceInterface, NamespacePartnerNamespaceInterface, NamespaceSystemNamespaceInterface, } from './namespace.interface';
2
- export { FunctionInterface, FunctionAuthStrategyInterface, FunctionHeaderInterface, FunctionKeyInterface, FunctionParameterInterface, FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface, FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface, } from './function.interface';
2
+ export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
3
+ export { ListMCPsRequestFiltersInterface, FunctionInterface, FunctionAuthStrategyInterface, FunctionHeaderInterface, FunctionKeyInterface, FunctionParameterInterface, ListMCPToolsRequestInterface, ListMCPToolsResponseInterface, ListMCPsRequestInterface, ListMCPsResponseInterface, MCPInterface, FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface, FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface, UpsertMCPRequestInterface, } from './function.interface';
3
4
  export { PromptInterface, PromptModuleInterface, PromptModuleKeyInterface, PromptModuleVersionInterface, PromptVersionInterface, } from './prompt.interface';
4
5
  export { GoalInterface, GoalKeyInterface, } from './goal.interface';
5
6
  export { KeyValuePairInterface, } from './common.interface';
@@ -7,7 +8,6 @@ export { ModelInterface, } from './model.interface';
7
8
  export { AssistantInterface, AssistantKeyInterface, ConfigInterface, ConfigurableGoalInterface, DeepgramConfigInterface, ElevenLabsConfigInterface, ConfigInboxConfigInterface, ModelConfigInterface, OpenAIRealtimeConfigInterface, OpenAIRealtimeConfigTurnDetectionInterface, ConfigVoiceConfigInterface, } from './assistant.interface';
8
9
  export { ConnectionInterface, ConnectionKeyInterface, } from './connection.interface';
9
10
  export { ChatAnswerFunctionExecutionJobInterface, ChatAnswerFunctionExecutionJobResultInterface, ChatMessageInterface, ChatUserInfoInterface, ContextInfoInterface, } from './answer.interface';
10
- export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
11
11
  export { CancelTestRunRequestInterface, TestResultCitationInterface, DeleteTestCasesRequestInterface, GetTestRunRequestInterface, GetTestRunResponseInterface, ListTestCasesByAssistantRequestInterface, ListTestCasesByAssistantResponseInterface, ListTestRunsByAssistantRequestInterface, ListTestRunsByAssistantResponseInterface, RunTestsRequestInterface, RunTestsResponseInterface, SortOptionsInterface, TestCaseInterface, TestResultInterface, TestRunInterface, UpsertTestCasesRequestInterface, } from './integration-tests.interface';
12
12
  export { AccessInterface, MCPOptionsInterface, } from './annotations.interface';
13
13
  export { FieldMaskInterface, } from './field-mask.interface';
@@ -1,7 +1,15 @@
1
1
  import * as i from '../interfaces';
2
2
  import { Namespace } from './namespace';
3
+ import { PagedRequestOptions, PagedResponseMetadata } from './paging';
3
4
  import * as e from '../enums';
4
5
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
6
+ export declare class ListMCPsRequestFilters implements i.ListMCPsRequestFiltersInterface {
7
+ namespaces: Namespace[];
8
+ mcpIds: string[];
9
+ static fromProto(proto: any): ListMCPsRequestFilters;
10
+ constructor(kwargs?: i.ListMCPsRequestFiltersInterface);
11
+ toApiJson(): object;
12
+ }
5
13
  export declare class Function implements i.FunctionInterface {
6
14
  id: string;
7
15
  namespace: Namespace;
@@ -51,6 +59,43 @@ export declare class FunctionParameter implements i.FunctionParameterInterface {
51
59
  constructor(kwargs?: i.FunctionParameterInterface);
52
60
  toApiJson(): object;
53
61
  }
62
+ export declare class ListMCPToolsRequest implements i.ListMCPToolsRequestInterface {
63
+ namespace: Namespace;
64
+ url: string;
65
+ authStrategy: FunctionAuthStrategy;
66
+ headers: FunctionHeader[];
67
+ mcpId: string;
68
+ static fromProto(proto: any): ListMCPToolsRequest;
69
+ constructor(kwargs?: i.ListMCPToolsRequestInterface);
70
+ toApiJson(): object;
71
+ }
72
+ export declare class ListMCPToolsResponse implements i.ListMCPToolsResponseInterface {
73
+ functions: Function[];
74
+ static fromProto(proto: any): ListMCPToolsResponse;
75
+ constructor(kwargs?: i.ListMCPToolsResponseInterface);
76
+ toApiJson(): object;
77
+ }
78
+ export declare class ListMCPsRequest implements i.ListMCPsRequestInterface {
79
+ filters: ListMCPsRequestFilters;
80
+ pagingOptions: PagedRequestOptions;
81
+ static fromProto(proto: any): ListMCPsRequest;
82
+ constructor(kwargs?: i.ListMCPsRequestInterface);
83
+ toApiJson(): object;
84
+ }
85
+ export declare class ListMCPsResponse implements i.ListMCPsResponseInterface {
86
+ mcps: MCP[];
87
+ pagingMetadata: PagedResponseMetadata;
88
+ static fromProto(proto: any): ListMCPsResponse;
89
+ constructor(kwargs?: i.ListMCPsResponseInterface);
90
+ toApiJson(): object;
91
+ }
92
+ export declare class MCP implements i.MCPInterface {
93
+ id: string;
94
+ url: string;
95
+ static fromProto(proto: any): MCP;
96
+ constructor(kwargs?: i.MCPInterface);
97
+ toApiJson(): object;
98
+ }
54
99
  export declare class FunctionAuthStrategyPlatformManagedFunctionAuthStrategy implements i.FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface {
55
100
  requiredScopes: string[];
56
101
  static fromProto(proto: any): FunctionAuthStrategyPlatformManagedFunctionAuthStrategy;
@@ -62,3 +107,12 @@ export declare class FunctionAuthStrategyUnspecifiedFunctionAuthStrategy impleme
62
107
  constructor(kwargs?: i.FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface);
63
108
  toApiJson(): object;
64
109
  }
110
+ export declare class UpsertMCPRequest implements i.UpsertMCPRequestInterface {
111
+ namespace: Namespace;
112
+ url: string;
113
+ mcpId: string;
114
+ functions: Function[];
115
+ static fromProto(proto: any): UpsertMCPRequest;
116
+ constructor(kwargs?: i.UpsertMCPRequestInterface);
117
+ toApiJson(): object;
118
+ }
@@ -1,5 +1,6 @@
1
1
  export { NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, Namespace, NamespacePartnerNamespace, NamespaceSystemNamespace, } from './namespace';
2
- export { Function, FunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, } from './function';
2
+ export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
3
+ export { ListMCPsRequestFilters, Function, FunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsResponse, MCP, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, UpsertMCPRequest, } from './function';
3
4
  export { Prompt, PromptModule, PromptModuleKey, PromptModuleVersion, PromptVersion, } from './prompt';
4
5
  export { Goal, GoalKey, } from './goal';
5
6
  export { KeyValuePair, } from './common';
@@ -7,7 +8,6 @@ export { Model, } from './model';
7
8
  export { Assistant, AssistantKey, Config, ConfigurableGoal, DeepgramConfig, ElevenLabsConfig, ConfigInboxConfig, ModelConfig, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, ConfigVoiceConfig, } from './assistant';
8
9
  export { Connection, ConnectionKey, } from './connection';
9
10
  export { ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatMessage, ChatUserInfo, ContextInfo, } from './answer';
10
- export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
11
11
  export { CancelTestRunRequest, TestResultCitation, DeleteTestCasesRequest, GetTestRunRequest, GetTestRunResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, RunTestsRequest, RunTestsResponse, SortOptions, TestCase, TestResult, TestRun, UpsertTestCasesRequest, } from './integration-tests';
12
12
  export { Access, MCPOptions, } from './annotations';
13
13
  export { FieldMask, } from './field-mask';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/ai-assistants",
3
- "version": "0.44.0",
3
+ "version": "0.45.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"