@vendasta/ai-assistants 0.44.0 → 0.45.1

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;
@@ -12,6 +17,7 @@ export interface FunctionInterface {
12
17
  headers?: FunctionHeaderInterface[];
13
18
  managed?: boolean;
14
19
  authStrategy?: FunctionAuthStrategyInterface;
20
+ mcpId?: string;
15
21
  }
16
22
  export interface FunctionAuthStrategyInterface {
17
23
  unspecified?: FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface;
@@ -34,8 +40,36 @@ export interface FunctionParameterInterface {
34
40
  value?: string;
35
41
  location?: e.FunctionParameterParameterLocation;
36
42
  }
43
+ export interface ListMCPToolsRequestInterface {
44
+ namespace?: NamespaceInterface;
45
+ url?: string;
46
+ authStrategy?: FunctionAuthStrategyInterface;
47
+ headers?: FunctionHeaderInterface[];
48
+ mcpId?: string;
49
+ }
50
+ export interface ListMCPToolsResponseInterface {
51
+ functions?: FunctionInterface[];
52
+ }
53
+ export interface ListMCPsRequestInterface {
54
+ filters?: ListMCPsRequestFiltersInterface;
55
+ pagingOptions?: PagedRequestOptionsInterface;
56
+ }
57
+ export interface ListMCPsResponseInterface {
58
+ mcps?: MCPInterface[];
59
+ pagingMetadata?: PagedResponseMetadataInterface;
60
+ }
61
+ export interface MCPInterface {
62
+ id?: string;
63
+ url?: string;
64
+ }
37
65
  export interface FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface {
38
66
  requiredScopes?: string[];
39
67
  }
40
68
  export interface FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface {
41
69
  }
70
+ export interface UpsertMCPRequestInterface {
71
+ namespace?: NamespaceInterface;
72
+ url?: string;
73
+ mcpId?: string;
74
+ functions?: FunctionInterface[];
75
+ }
@@ -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;
@@ -14,6 +22,7 @@ export declare class Function implements i.FunctionInterface {
14
22
  headers: FunctionHeader[];
15
23
  managed: boolean;
16
24
  authStrategy: FunctionAuthStrategy;
25
+ mcpId: string;
17
26
  static fromProto(proto: any): Function;
18
27
  constructor(kwargs?: i.FunctionInterface);
19
28
  toApiJson(): object;
@@ -51,6 +60,43 @@ export declare class FunctionParameter implements i.FunctionParameterInterface {
51
60
  constructor(kwargs?: i.FunctionParameterInterface);
52
61
  toApiJson(): object;
53
62
  }
63
+ export declare class ListMCPToolsRequest implements i.ListMCPToolsRequestInterface {
64
+ namespace: Namespace;
65
+ url: string;
66
+ authStrategy: FunctionAuthStrategy;
67
+ headers: FunctionHeader[];
68
+ mcpId: string;
69
+ static fromProto(proto: any): ListMCPToolsRequest;
70
+ constructor(kwargs?: i.ListMCPToolsRequestInterface);
71
+ toApiJson(): object;
72
+ }
73
+ export declare class ListMCPToolsResponse implements i.ListMCPToolsResponseInterface {
74
+ functions: Function[];
75
+ static fromProto(proto: any): ListMCPToolsResponse;
76
+ constructor(kwargs?: i.ListMCPToolsResponseInterface);
77
+ toApiJson(): object;
78
+ }
79
+ export declare class ListMCPsRequest implements i.ListMCPsRequestInterface {
80
+ filters: ListMCPsRequestFilters;
81
+ pagingOptions: PagedRequestOptions;
82
+ static fromProto(proto: any): ListMCPsRequest;
83
+ constructor(kwargs?: i.ListMCPsRequestInterface);
84
+ toApiJson(): object;
85
+ }
86
+ export declare class ListMCPsResponse implements i.ListMCPsResponseInterface {
87
+ mcps: MCP[];
88
+ pagingMetadata: PagedResponseMetadata;
89
+ static fromProto(proto: any): ListMCPsResponse;
90
+ constructor(kwargs?: i.ListMCPsResponseInterface);
91
+ toApiJson(): object;
92
+ }
93
+ export declare class MCP implements i.MCPInterface {
94
+ id: string;
95
+ url: string;
96
+ static fromProto(proto: any): MCP;
97
+ constructor(kwargs?: i.MCPInterface);
98
+ toApiJson(): object;
99
+ }
54
100
  export declare class FunctionAuthStrategyPlatformManagedFunctionAuthStrategy implements i.FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface {
55
101
  requiredScopes: string[];
56
102
  static fromProto(proto: any): FunctionAuthStrategyPlatformManagedFunctionAuthStrategy;
@@ -62,3 +108,12 @@ export declare class FunctionAuthStrategyUnspecifiedFunctionAuthStrategy impleme
62
108
  constructor(kwargs?: i.FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface);
63
109
  toApiJson(): object;
64
110
  }
111
+ export declare class UpsertMCPRequest implements i.UpsertMCPRequestInterface {
112
+ namespace: Namespace;
113
+ url: string;
114
+ mcpId: string;
115
+ functions: Function[];
116
+ static fromProto(proto: any): UpsertMCPRequest;
117
+ constructor(kwargs?: i.UpsertMCPRequestInterface);
118
+ toApiJson(): object;
119
+ }
@@ -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.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"