@vendasta/ai-assistants 0.46.0 → 0.48.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, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsResponse, UpsertFunctionRequest, UpsertMCPRequest } from './objects/';
2
- import { DeleteFunctionRequestInterface, GetFunctionRequestInterface, GetMultiFunctionRequestInterface, ListFunctionRequestInterface, ListMCPToolsRequestInterface, ListMCPsRequestInterface, UpsertFunctionRequestInterface, UpsertMCPRequestInterface } from './interfaces/';
1
+ import { DeleteFunctionRequest, DeleteMCPRequest, GetFunctionRequest, GetFunctionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, ListFunctionRequest, ListFunctionResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsResponse, UpsertFunctionRequest, UpsertMCPRequest } from './objects/';
2
+ import { DeleteFunctionRequestInterface, DeleteMCPRequestInterface, 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";
@@ -16,6 +16,7 @@ export declare class FunctionApiService {
16
16
  listMcpTools(r: ListMCPToolsRequest | ListMCPToolsRequestInterface): Observable<ListMCPToolsResponse>;
17
17
  upsertMcp(r: UpsertMCPRequest | UpsertMCPRequestInterface): Observable<HttpResponse<null>>;
18
18
  listMcPs(r: ListMCPsRequest | ListMCPsRequestInterface): Observable<ListMCPsResponse>;
19
+ deleteMcp(r: DeleteMCPRequest | DeleteMCPRequestInterface): Observable<HttpResponse<null>>;
19
20
  static ɵfac: i0.ɵɵFactoryDeclaration<FunctionApiService, never>;
20
21
  static ɵprov: i0.ɵɵInjectableDeclaration<FunctionApiService>;
21
22
  }
@@ -10,9 +10,14 @@ export interface ChatAnswerFunctionExecutionJobResultInterface {
10
10
  content?: string;
11
11
  metadata?: KeyValuePairInterface[];
12
12
  }
13
+ export interface ChatContentInterface {
14
+ text?: string;
15
+ image?: ImageContentInterface;
16
+ }
13
17
  export interface ChatMessageInterface {
14
18
  role?: e.ChatMessageRole;
15
19
  content?: string;
20
+ contentParts?: ChatContentInterface[];
16
21
  }
17
22
  export interface ChatUserInfoInterface {
18
23
  name?: string;
@@ -29,3 +34,8 @@ export interface ChatUserInfoInterface {
29
34
  export interface ContextInfoInterface {
30
35
  variables?: KeyValuePairInterface[];
31
36
  }
37
+ export interface ImageContentInterface {
38
+ url?: string;
39
+ mediaType?: string;
40
+ altText?: string;
41
+ }
@@ -99,12 +99,17 @@ export interface ExecuteFunctionResponseInterface {
99
99
  output?: string;
100
100
  metadata?: KeyValuePairInterface[];
101
101
  }
102
+ export interface ListFunctionRequestFiltersInterface {
103
+ namespace?: NamespaceInterface;
104
+ namespaces?: NamespaceInterface[];
105
+ mcpId?: string;
106
+ }
102
107
  export interface ListPromptModuleRequestFiltersInterface {
103
108
  namespace?: NamespaceInterface;
104
109
  }
105
- export interface ListFunctionRequestFiltersInterface {
110
+ export interface ListAssistantRequestFiltersInterface {
106
111
  namespace?: NamespaceInterface;
107
- namespaces?: NamespaceInterface[];
112
+ type?: e.AssistantType;
108
113
  }
109
114
  export interface ListConnectionsRequestFiltersInterface {
110
115
  namespace?: NamespaceInterface;
@@ -114,19 +119,15 @@ export interface ListAvailableModelsRequestFiltersInterface {
114
119
  vendor?: e.ModelVendor[];
115
120
  type?: e.ModelType[];
116
121
  }
117
- export interface ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
118
- type?: e.AssistantType;
119
- }
120
- export interface ListAssistantRequestFiltersInterface {
121
- namespace?: NamespaceInterface;
122
- type?: e.AssistantType;
123
- }
124
122
  export interface ListGoalsRequestFiltersInterface {
125
123
  namespace?: NamespaceInterface;
126
124
  type?: e.GoalType;
127
125
  supportedChannels?: e.GoalChannel[];
128
126
  namespaces?: NamespaceInterface[];
129
127
  }
128
+ export interface ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
129
+ type?: e.AssistantType;
130
+ }
130
131
  export interface GenerateChatAnswerRequestInterface {
131
132
  connectionKey?: ConnectionKeyInterface;
132
133
  chatHistory?: ChatMessageInterface[];
@@ -349,25 +350,25 @@ export interface ListPromptVersionsResponseInterface {
349
350
  promptVersions?: PromptVersionInterface[];
350
351
  metadata?: PagedResponseMetadataInterface;
351
352
  }
352
- export interface UpsertAssistantRequestOptionsInterface {
353
- applyDefaults?: boolean;
353
+ export interface CreatePromptModuleVersionRequestOptionsInterface {
354
+ shouldDeploy?: boolean;
354
355
  }
355
356
  export interface GenerateChatAnswerRequestOptionsInterface {
356
357
  includeAllCitations?: boolean;
357
358
  enableAsyncFunctions?: boolean;
358
359
  maxTokens?: number;
359
360
  }
360
- export interface CreatePromptModuleVersionRequestOptionsInterface {
361
- shouldDeploy?: boolean;
361
+ export interface UpsertAssistantRequestOptionsInterface {
362
+ applyDefaults?: boolean;
362
363
  }
363
- export interface GetAssistantRequestOptionsInterface {
364
- skipGoalsHydration?: boolean;
364
+ export interface CreateAssistantRequestOptionsInterface {
365
+ applyDefaults?: boolean;
365
366
  }
366
367
  export interface GetMultiAssistantRequestOptionsInterface {
367
368
  skipGoalsHydration?: boolean;
368
369
  }
369
- export interface CreateAssistantRequestOptionsInterface {
370
- applyDefaults?: boolean;
370
+ export interface GetAssistantRequestOptionsInterface {
371
+ skipGoalsHydration?: boolean;
371
372
  }
372
373
  export interface SetAssistantConnectionsRequestInterface {
373
374
  associationStates?: SetAssistantConnectionsRequestConnectionStateInterface[];
@@ -407,3 +408,10 @@ export interface UpsertFunctionRequestInterface {
407
408
  export interface UpsertGoalRequestInterface {
408
409
  goal?: GoalInterface;
409
410
  }
411
+ export interface ValidatePromptModuleRequestInterface {
412
+ content?: string;
413
+ }
414
+ export interface ValidatePromptModuleResponseInterface {
415
+ isValid?: boolean;
416
+ errorMessage?: string;
417
+ }
@@ -1,6 +1,10 @@
1
1
  import { NamespaceInterface } from './namespace.interface';
2
2
  import { PagedRequestOptionsInterface, PagedResponseMetadataInterface } from './paging.interface';
3
3
  import * as e from '../enums';
4
+ export interface DeleteMCPRequestInterface {
5
+ namespace?: NamespaceInterface;
6
+ mcpId?: string;
7
+ }
4
8
  export interface ListMCPsRequestFiltersInterface {
5
9
  namespaces?: NamespaceInterface[];
6
10
  mcpIds?: string[];
@@ -39,6 +43,7 @@ export interface FunctionParameterInterface {
39
43
  items?: FunctionParameterInterface;
40
44
  value?: string;
41
45
  location?: e.FunctionParameterParameterLocation;
46
+ required?: boolean;
42
47
  }
43
48
  export interface ListMCPToolsRequestInterface {
44
49
  namespace?: NamespaceInterface;
@@ -61,6 +66,8 @@ export interface ListMCPsResponseInterface {
61
66
  export interface MCPInterface {
62
67
  id?: string;
63
68
  url?: string;
69
+ namespace?: NamespaceInterface;
70
+ authStrategy?: FunctionAuthStrategyInterface;
64
71
  }
65
72
  export interface FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface {
66
73
  requiredScopes?: string[];
@@ -72,4 +79,5 @@ export interface UpsertMCPRequestInterface {
72
79
  url?: string;
73
80
  mcpId?: string;
74
81
  functions?: FunctionInterface[];
82
+ authStrategy?: FunctionAuthStrategyInterface;
75
83
  }
@@ -1,14 +1,14 @@
1
1
  export { NamespaceAccountGroupNamespaceInterface, NamespaceGlobalNamespaceInterface, NamespaceInterface, NamespacePartnerNamespaceInterface, NamespaceSystemNamespaceInterface, } from './namespace.interface';
2
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
+ export { DeleteMCPRequestInterface, ListMCPsRequestFiltersInterface, FunctionInterface, FunctionAuthStrategyInterface, FunctionHeaderInterface, FunctionKeyInterface, FunctionParameterInterface, ListMCPToolsRequestInterface, ListMCPToolsResponseInterface, ListMCPsRequestInterface, ListMCPsResponseInterface, MCPInterface, FunctionAuthStrategyPlatformManagedFunctionAuthStrategyInterface, FunctionAuthStrategyUnspecifiedFunctionAuthStrategyInterface, UpsertMCPRequestInterface, } from './function.interface';
4
4
  export { PromptInterface, PromptModuleInterface, PromptModuleKeyInterface, PromptModuleVersionInterface, PromptVersionInterface, } from './prompt.interface';
5
5
  export { GoalInterface, GoalKeyInterface, } from './goal.interface';
6
6
  export { KeyValuePairInterface, } from './common.interface';
7
7
  export { ModelInterface, } from './model.interface';
8
8
  export { AssistantInterface, AssistantKeyInterface, ConfigInterface, ConfigurableGoalInterface, DeepgramConfigInterface, ElevenLabsConfigInterface, ConfigInboxConfigInterface, ModelConfigInterface, OpenAIRealtimeConfigInterface, OpenAIRealtimeConfigTurnDetectionInterface, ConfigVoiceConfigInterface, } from './assistant.interface';
9
9
  export { ConnectionInterface, ConnectionKeyInterface, } from './connection.interface';
10
- export { ChatAnswerFunctionExecutionJobInterface, ChatAnswerFunctionExecutionJobResultInterface, ChatMessageInterface, ChatUserInfoInterface, ContextInfoInterface, } from './answer.interface';
10
+ export { ChatAnswerFunctionExecutionJobInterface, ChatAnswerFunctionExecutionJobResultInterface, ChatContentInterface, ChatMessageInterface, ChatUserInfoInterface, ContextInfoInterface, ImageContentInterface, } from './answer.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';
14
- export { BuildDefaultAssistantRequestInterface, BuildDefaultAssistantResponseInterface, SetAssistantConnectionsRequestConnectionStateInterface, CreateAssistantRequestInterface, CreateAssistantResponseInterface, CreateGoalRequestInterface, CreateGoalResponseInterface, CreatePromptModuleRequestInterface, CreatePromptModuleResponseInterface, CreatePromptModuleVersionRequestInterface, CreatePromptRequestInterface, DeleteAssistantRequestInterface, DeleteConnectionRequestInterface, DeleteFunctionRequestInterface, DeleteGoalRequestInterface, DeletePromptModuleRequestInterface, DeletePromptRequestInterface, DeployPromptModuleRequestInterface, DeployPromptRequestInterface, ExecuteFunctionRequestInterface, ExecuteFunctionResponseInterface, ListPromptModuleRequestFiltersInterface, ListFunctionRequestFiltersInterface, ListConnectionsRequestFiltersInterface, ListAvailableModelsRequestFiltersInterface, ListAllAssistantsAssociatedToConnectionRequestFiltersInterface, ListAssistantRequestFiltersInterface, ListGoalsRequestFiltersInterface, GenerateChatAnswerRequestInterface, GenerateChatAnswerResponseInterface, GetAssistantRequestInterface, GetAssistantResponseInterface, GetChatAnswerFunctionExecutionJobRequestInterface, GetChatAnswerFunctionExecutionJobResponseInterface, GetConnectionRequestInterface, GetConnectionResponseInterface, GetDeployedPromptModuleVersionRequestInterface, GetDeployedPromptModuleVersionResponseInterface, GetDeployedPromptVersionRequestInterface, GetDeployedPromptVersionResponseInterface, GetFunctionRequestInterface, GetFunctionResponseInterface, GetGoalRequestInterface, GetGoalResponseInterface, GetHydratedDeployedPromptModuleVersionRequestInterface, GetHydratedDeployedPromptModuleVersionResponseInterface, GetMultiAssistantRequestInterface, GetMultiAssistantResponseInterface, GetMultiDeployedPromptVersionRequestInterface, GetMultiDeployedPromptVersionResponseInterface, GetMultiFunctionRequestInterface, GetMultiFunctionResponseInterface, GetMultiGoalRequestInterface, GetMultiGoalResponseInterface, GetMultiHydratedDeployedPromptModuleVersionRequestInterface, GetMultiHydratedDeployedPromptModuleVersionResponseInterface, GetPromptModuleRequestInterface, GetPromptModuleResponseInterface, GetPromptModuleVersionRequestInterface, GetPromptModuleVersionResponseInterface, GetPromptRequestInterface, GetPromptResponseInterface, GetPromptVersionRequestInterface, GetPromptVersionResponseInterface, GoalsDisabledForAccountGroupRequestInterface, GoalsDisabledForAccountGroupResponseInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAllAssistantsAssociatedToConnectionResponseInterface, ListAssistantRequestInterface, ListAssistantResponseInterface, ListAvailableModelsRequestInterface, ListAvailableModelsResponseInterface, ListConnectionsRequestInterface, ListConnectionsResponseInterface, ListFunctionRequestInterface, ListFunctionResponseInterface, ListGoalsRequestInterface, ListGoalsResponseInterface, ListPromptModuleRequestInterface, ListPromptModuleResponseInterface, ListPromptModuleVersionsRequestInterface, ListPromptModuleVersionsResponseInterface, ListPromptRequestInterface, ListPromptResponseInterface, ListPromptVersionsRequestInterface, ListPromptVersionsResponseInterface, GenerateChatAnswerRequestOptionsInterface, CreatePromptModuleVersionRequestOptionsInterface, GetAssistantRequestOptionsInterface, CreateAssistantRequestOptionsInterface, GetMultiAssistantRequestOptionsInterface, UpsertAssistantRequestOptionsInterface, SetAssistantConnectionsRequestInterface, UpdateAssistantRequestInterface, UpdateGoalRequestInterface, UpdatePromptModuleRequestInterface, UpdatePromptRequestInterface, UpsertAssistantRequestInterface, UpsertAssistantResponseInterface, UpsertConnectionRequestInterface, UpsertFunctionRequestInterface, UpsertGoalRequestInterface, } from './api.interface';
14
+ export { BuildDefaultAssistantRequestInterface, BuildDefaultAssistantResponseInterface, SetAssistantConnectionsRequestConnectionStateInterface, CreateAssistantRequestInterface, CreateAssistantResponseInterface, CreateGoalRequestInterface, CreateGoalResponseInterface, CreatePromptModuleRequestInterface, CreatePromptModuleResponseInterface, CreatePromptModuleVersionRequestInterface, CreatePromptRequestInterface, DeleteAssistantRequestInterface, DeleteConnectionRequestInterface, DeleteFunctionRequestInterface, DeleteGoalRequestInterface, DeletePromptModuleRequestInterface, DeletePromptRequestInterface, DeployPromptModuleRequestInterface, DeployPromptRequestInterface, ExecuteFunctionRequestInterface, ExecuteFunctionResponseInterface, ListFunctionRequestFiltersInterface, ListPromptModuleRequestFiltersInterface, ListAssistantRequestFiltersInterface, ListConnectionsRequestFiltersInterface, ListAvailableModelsRequestFiltersInterface, ListGoalsRequestFiltersInterface, ListAllAssistantsAssociatedToConnectionRequestFiltersInterface, GenerateChatAnswerRequestInterface, GenerateChatAnswerResponseInterface, GetAssistantRequestInterface, GetAssistantResponseInterface, GetChatAnswerFunctionExecutionJobRequestInterface, GetChatAnswerFunctionExecutionJobResponseInterface, GetConnectionRequestInterface, GetConnectionResponseInterface, GetDeployedPromptModuleVersionRequestInterface, GetDeployedPromptModuleVersionResponseInterface, GetDeployedPromptVersionRequestInterface, GetDeployedPromptVersionResponseInterface, GetFunctionRequestInterface, GetFunctionResponseInterface, GetGoalRequestInterface, GetGoalResponseInterface, GetHydratedDeployedPromptModuleVersionRequestInterface, GetHydratedDeployedPromptModuleVersionResponseInterface, GetMultiAssistantRequestInterface, GetMultiAssistantResponseInterface, GetMultiDeployedPromptVersionRequestInterface, GetMultiDeployedPromptVersionResponseInterface, GetMultiFunctionRequestInterface, GetMultiFunctionResponseInterface, GetMultiGoalRequestInterface, GetMultiGoalResponseInterface, GetMultiHydratedDeployedPromptModuleVersionRequestInterface, GetMultiHydratedDeployedPromptModuleVersionResponseInterface, GetPromptModuleRequestInterface, GetPromptModuleResponseInterface, GetPromptModuleVersionRequestInterface, GetPromptModuleVersionResponseInterface, GetPromptRequestInterface, GetPromptResponseInterface, GetPromptVersionRequestInterface, GetPromptVersionResponseInterface, GoalsDisabledForAccountGroupRequestInterface, GoalsDisabledForAccountGroupResponseInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAllAssistantsAssociatedToConnectionResponseInterface, ListAssistantRequestInterface, ListAssistantResponseInterface, ListAvailableModelsRequestInterface, ListAvailableModelsResponseInterface, ListConnectionsRequestInterface, ListConnectionsResponseInterface, ListFunctionRequestInterface, ListFunctionResponseInterface, ListGoalsRequestInterface, ListGoalsResponseInterface, ListPromptModuleRequestInterface, ListPromptModuleResponseInterface, ListPromptModuleVersionsRequestInterface, ListPromptModuleVersionsResponseInterface, ListPromptRequestInterface, ListPromptResponseInterface, ListPromptVersionsRequestInterface, ListPromptVersionsResponseInterface, CreatePromptModuleVersionRequestOptionsInterface, GenerateChatAnswerRequestOptionsInterface, UpsertAssistantRequestOptionsInterface, CreateAssistantRequestOptionsInterface, GetMultiAssistantRequestOptionsInterface, GetAssistantRequestOptionsInterface, SetAssistantConnectionsRequestInterface, UpdateAssistantRequestInterface, UpdateGoalRequestInterface, UpdatePromptModuleRequestInterface, UpdatePromptRequestInterface, UpsertAssistantRequestInterface, UpsertAssistantResponseInterface, UpsertConnectionRequestInterface, UpsertFunctionRequestInterface, UpsertGoalRequestInterface, ValidatePromptModuleRequestInterface, ValidatePromptModuleResponseInterface, } from './api.interface';
@@ -18,9 +18,17 @@ export declare class ChatAnswerFunctionExecutionJobResult implements i.ChatAnswe
18
18
  constructor(kwargs?: i.ChatAnswerFunctionExecutionJobResultInterface);
19
19
  toApiJson(): object;
20
20
  }
21
+ export declare class ChatContent implements i.ChatContentInterface {
22
+ text: string;
23
+ image: ImageContent;
24
+ static fromProto(proto: any): ChatContent;
25
+ constructor(kwargs?: i.ChatContentInterface);
26
+ toApiJson(): object;
27
+ }
21
28
  export declare class ChatMessage implements i.ChatMessageInterface {
22
29
  role: e.ChatMessageRole;
23
30
  content: string;
31
+ contentParts: ChatContent[];
24
32
  static fromProto(proto: any): ChatMessage;
25
33
  constructor(kwargs?: i.ChatMessageInterface);
26
34
  toApiJson(): object;
@@ -46,3 +54,11 @@ export declare class ContextInfo implements i.ContextInfoInterface {
46
54
  constructor(kwargs?: i.ContextInfoInterface);
47
55
  toApiJson(): object;
48
56
  }
57
+ export declare class ImageContent implements i.ImageContentInterface {
58
+ url: string;
59
+ mediaType: string;
60
+ altText: string;
61
+ static fromProto(proto: any): ImageContent;
62
+ constructor(kwargs?: i.ImageContentInterface);
63
+ toApiJson(): object;
64
+ }
@@ -164,22 +164,27 @@ export declare class ExecuteFunctionResponse implements i.ExecuteFunctionRespons
164
164
  constructor(kwargs?: i.ExecuteFunctionResponseInterface);
165
165
  toApiJson(): object;
166
166
  }
167
- export declare class ListGoalsRequestFilters implements i.ListGoalsRequestFiltersInterface {
168
- namespace: Namespace;
169
- type: e.GoalType;
170
- supportedChannels: e.GoalChannel[];
171
- namespaces: Namespace[];
172
- static fromProto(proto: any): ListGoalsRequestFilters;
173
- constructor(kwargs?: i.ListGoalsRequestFiltersInterface);
174
- toApiJson(): object;
175
- }
176
167
  export declare class ListFunctionRequestFilters implements i.ListFunctionRequestFiltersInterface {
177
168
  namespace: Namespace;
178
169
  namespaces: Namespace[];
170
+ mcpId: string;
179
171
  static fromProto(proto: any): ListFunctionRequestFilters;
180
172
  constructor(kwargs?: i.ListFunctionRequestFiltersInterface);
181
173
  toApiJson(): object;
182
174
  }
175
+ export declare class ListPromptModuleRequestFilters implements i.ListPromptModuleRequestFiltersInterface {
176
+ namespace: Namespace;
177
+ static fromProto(proto: any): ListPromptModuleRequestFilters;
178
+ constructor(kwargs?: i.ListPromptModuleRequestFiltersInterface);
179
+ toApiJson(): object;
180
+ }
181
+ export declare class ListAssistantRequestFilters implements i.ListAssistantRequestFiltersInterface {
182
+ namespace: Namespace;
183
+ type: e.AssistantType;
184
+ static fromProto(proto: any): ListAssistantRequestFilters;
185
+ constructor(kwargs?: i.ListAssistantRequestFiltersInterface);
186
+ toApiJson(): object;
187
+ }
183
188
  export declare class ListConnectionsRequestFilters implements i.ListConnectionsRequestFiltersInterface {
184
189
  namespace: Namespace;
185
190
  assistantType: e.AssistantType;
@@ -194,17 +199,13 @@ export declare class ListAvailableModelsRequestFilters implements i.ListAvailabl
194
199
  constructor(kwargs?: i.ListAvailableModelsRequestFiltersInterface);
195
200
  toApiJson(): object;
196
201
  }
197
- export declare class ListPromptModuleRequestFilters implements i.ListPromptModuleRequestFiltersInterface {
198
- namespace: Namespace;
199
- static fromProto(proto: any): ListPromptModuleRequestFilters;
200
- constructor(kwargs?: i.ListPromptModuleRequestFiltersInterface);
201
- toApiJson(): object;
202
- }
203
- export declare class ListAssistantRequestFilters implements i.ListAssistantRequestFiltersInterface {
202
+ export declare class ListGoalsRequestFilters implements i.ListGoalsRequestFiltersInterface {
204
203
  namespace: Namespace;
205
- type: e.AssistantType;
206
- static fromProto(proto: any): ListAssistantRequestFilters;
207
- constructor(kwargs?: i.ListAssistantRequestFiltersInterface);
204
+ type: e.GoalType;
205
+ supportedChannels: e.GoalChannel[];
206
+ namespaces: Namespace[];
207
+ static fromProto(proto: any): ListGoalsRequestFilters;
208
+ constructor(kwargs?: i.ListGoalsRequestFiltersInterface);
208
209
  toApiJson(): object;
209
210
  }
210
211
  export declare class ListAllAssistantsAssociatedToConnectionRequestFilters implements i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
@@ -615,16 +616,12 @@ export declare class CreatePromptModuleVersionRequestOptions implements i.Create
615
616
  constructor(kwargs?: i.CreatePromptModuleVersionRequestOptionsInterface);
616
617
  toApiJson(): object;
617
618
  }
618
- export declare class GetAssistantRequestOptions implements i.GetAssistantRequestOptionsInterface {
619
- skipGoalsHydration: boolean;
620
- static fromProto(proto: any): GetAssistantRequestOptions;
621
- constructor(kwargs?: i.GetAssistantRequestOptionsInterface);
622
- toApiJson(): object;
623
- }
624
- export declare class CreateAssistantRequestOptions implements i.CreateAssistantRequestOptionsInterface {
625
- applyDefaults: boolean;
626
- static fromProto(proto: any): CreateAssistantRequestOptions;
627
- constructor(kwargs?: i.CreateAssistantRequestOptionsInterface);
619
+ export declare class GenerateChatAnswerRequestOptions implements i.GenerateChatAnswerRequestOptionsInterface {
620
+ includeAllCitations: boolean;
621
+ enableAsyncFunctions: boolean;
622
+ maxTokens: number;
623
+ static fromProto(proto: any): GenerateChatAnswerRequestOptions;
624
+ constructor(kwargs?: i.GenerateChatAnswerRequestOptionsInterface);
628
625
  toApiJson(): object;
629
626
  }
630
627
  export declare class UpsertAssistantRequestOptions implements i.UpsertAssistantRequestOptionsInterface {
@@ -633,18 +630,22 @@ export declare class UpsertAssistantRequestOptions implements i.UpsertAssistantR
633
630
  constructor(kwargs?: i.UpsertAssistantRequestOptionsInterface);
634
631
  toApiJson(): object;
635
632
  }
633
+ export declare class CreateAssistantRequestOptions implements i.CreateAssistantRequestOptionsInterface {
634
+ applyDefaults: boolean;
635
+ static fromProto(proto: any): CreateAssistantRequestOptions;
636
+ constructor(kwargs?: i.CreateAssistantRequestOptionsInterface);
637
+ toApiJson(): object;
638
+ }
636
639
  export declare class GetMultiAssistantRequestOptions implements i.GetMultiAssistantRequestOptionsInterface {
637
640
  skipGoalsHydration: boolean;
638
641
  static fromProto(proto: any): GetMultiAssistantRequestOptions;
639
642
  constructor(kwargs?: i.GetMultiAssistantRequestOptionsInterface);
640
643
  toApiJson(): object;
641
644
  }
642
- export declare class GenerateChatAnswerRequestOptions implements i.GenerateChatAnswerRequestOptionsInterface {
643
- includeAllCitations: boolean;
644
- enableAsyncFunctions: boolean;
645
- maxTokens: number;
646
- static fromProto(proto: any): GenerateChatAnswerRequestOptions;
647
- constructor(kwargs?: i.GenerateChatAnswerRequestOptionsInterface);
645
+ export declare class GetAssistantRequestOptions implements i.GetAssistantRequestOptionsInterface {
646
+ skipGoalsHydration: boolean;
647
+ static fromProto(proto: any): GetAssistantRequestOptions;
648
+ constructor(kwargs?: i.GetAssistantRequestOptionsInterface);
648
649
  toApiJson(): object;
649
650
  }
650
651
  export declare class SetAssistantConnectionsRequest implements i.SetAssistantConnectionsRequestInterface {
@@ -715,3 +716,16 @@ export declare class UpsertGoalRequest implements i.UpsertGoalRequestInterface {
715
716
  constructor(kwargs?: i.UpsertGoalRequestInterface);
716
717
  toApiJson(): object;
717
718
  }
719
+ export declare class ValidatePromptModuleRequest implements i.ValidatePromptModuleRequestInterface {
720
+ content: string;
721
+ static fromProto(proto: any): ValidatePromptModuleRequest;
722
+ constructor(kwargs?: i.ValidatePromptModuleRequestInterface);
723
+ toApiJson(): object;
724
+ }
725
+ export declare class ValidatePromptModuleResponse implements i.ValidatePromptModuleResponseInterface {
726
+ isValid: boolean;
727
+ errorMessage: string;
728
+ static fromProto(proto: any): ValidatePromptModuleResponse;
729
+ constructor(kwargs?: i.ValidatePromptModuleResponseInterface);
730
+ toApiJson(): object;
731
+ }
@@ -3,6 +3,13 @@ import { Namespace } from './namespace';
3
3
  import { PagedRequestOptions, PagedResponseMetadata } from './paging';
4
4
  import * as e from '../enums';
5
5
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
6
+ export declare class DeleteMCPRequest implements i.DeleteMCPRequestInterface {
7
+ namespace: Namespace;
8
+ mcpId: string;
9
+ static fromProto(proto: any): DeleteMCPRequest;
10
+ constructor(kwargs?: i.DeleteMCPRequestInterface);
11
+ toApiJson(): object;
12
+ }
6
13
  export declare class ListMCPsRequestFilters implements i.ListMCPsRequestFiltersInterface {
7
14
  namespaces: Namespace[];
8
15
  mcpIds: string[];
@@ -56,6 +63,7 @@ export declare class FunctionParameter implements i.FunctionParameterInterface {
56
63
  items: FunctionParameter;
57
64
  value: string;
58
65
  location: e.FunctionParameterParameterLocation;
66
+ required: boolean;
59
67
  static fromProto(proto: any): FunctionParameter;
60
68
  constructor(kwargs?: i.FunctionParameterInterface);
61
69
  toApiJson(): object;
@@ -93,6 +101,8 @@ export declare class ListMCPsResponse implements i.ListMCPsResponseInterface {
93
101
  export declare class MCP implements i.MCPInterface {
94
102
  id: string;
95
103
  url: string;
104
+ namespace: Namespace;
105
+ authStrategy: FunctionAuthStrategy;
96
106
  static fromProto(proto: any): MCP;
97
107
  constructor(kwargs?: i.MCPInterface);
98
108
  toApiJson(): object;
@@ -113,6 +123,7 @@ export declare class UpsertMCPRequest implements i.UpsertMCPRequestInterface {
113
123
  url: string;
114
124
  mcpId: string;
115
125
  functions: Function[];
126
+ authStrategy: FunctionAuthStrategy;
116
127
  static fromProto(proto: any): UpsertMCPRequest;
117
128
  constructor(kwargs?: i.UpsertMCPRequestInterface);
118
129
  toApiJson(): object;
@@ -1,14 +1,14 @@
1
1
  export { NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, Namespace, NamespacePartnerNamespace, NamespaceSystemNamespace, } from './namespace';
2
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
+ export { DeleteMCPRequest, ListMCPsRequestFilters, Function, FunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsResponse, MCP, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, UpsertMCPRequest, } from './function';
4
4
  export { Prompt, PromptModule, PromptModuleKey, PromptModuleVersion, PromptVersion, } from './prompt';
5
5
  export { Goal, GoalKey, } from './goal';
6
6
  export { KeyValuePair, } from './common';
7
7
  export { Model, } from './model';
8
8
  export { Assistant, AssistantKey, Config, ConfigurableGoal, DeepgramConfig, ElevenLabsConfig, ConfigInboxConfig, ModelConfig, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, ConfigVoiceConfig, } from './assistant';
9
9
  export { Connection, ConnectionKey, } from './connection';
10
- export { ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatMessage, ChatUserInfo, ContextInfo, } from './answer';
10
+ export { ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatContent, ChatMessage, ChatUserInfo, ContextInfo, ImageContent, } from './answer';
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';
14
- export { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, SetAssistantConnectionsRequestConnectionState, CreateAssistantRequest, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, ListAllAssistantsAssociatedToConnectionRequestFilters, ListFunctionRequestFilters, ListConnectionsRequestFilters, ListAvailableModelsRequestFilters, ListGoalsRequestFilters, ListAssistantRequestFilters, ListPromptModuleRequestFilters, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsResponse, ListFunctionRequest, ListFunctionResponse, ListGoalsRequest, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, CreateAssistantRequestOptions, UpsertAssistantRequestOptions, GenerateChatAnswerRequestOptions, CreatePromptModuleVersionRequestOptions, GetMultiAssistantRequestOptions, GetAssistantRequestOptions, SetAssistantConnectionsRequest, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, } from './api';
14
+ export { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, SetAssistantConnectionsRequestConnectionState, CreateAssistantRequest, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, ListFunctionRequestFilters, ListPromptModuleRequestFilters, ListAssistantRequestFilters, ListConnectionsRequestFilters, ListAvailableModelsRequestFilters, ListGoalsRequestFilters, ListAllAssistantsAssociatedToConnectionRequestFilters, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsResponse, ListFunctionRequest, ListFunctionResponse, ListGoalsRequest, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, CreatePromptModuleVersionRequestOptions, GenerateChatAnswerRequestOptions, UpsertAssistantRequestOptions, CreateAssistantRequestOptions, GetMultiAssistantRequestOptions, GetAssistantRequestOptions, SetAssistantConnectionsRequest, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, ValidatePromptModuleRequest, ValidatePromptModuleResponse, } from './api';
@@ -1,5 +1,5 @@
1
- import { CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, DeletePromptModuleRequest, DeployPromptModuleRequest, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, ListPromptModuleRequest, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, UpdatePromptModuleRequest } from './objects/';
2
- import { CreatePromptModuleRequestInterface, CreatePromptModuleVersionRequestInterface, DeletePromptModuleRequestInterface, DeployPromptModuleRequestInterface, GetDeployedPromptModuleVersionRequestInterface, GetHydratedDeployedPromptModuleVersionRequestInterface, GetMultiHydratedDeployedPromptModuleVersionRequestInterface, GetPromptModuleRequestInterface, GetPromptModuleVersionRequestInterface, ListPromptModuleRequestInterface, ListPromptModuleVersionsRequestInterface, UpdatePromptModuleRequestInterface } from './interfaces/';
1
+ import { CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, DeletePromptModuleRequest, DeployPromptModuleRequest, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, ListPromptModuleRequest, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, UpdatePromptModuleRequest, ValidatePromptModuleRequest, ValidatePromptModuleResponse } from './objects/';
2
+ import { CreatePromptModuleRequestInterface, CreatePromptModuleVersionRequestInterface, DeletePromptModuleRequestInterface, DeployPromptModuleRequestInterface, GetDeployedPromptModuleVersionRequestInterface, GetHydratedDeployedPromptModuleVersionRequestInterface, GetMultiHydratedDeployedPromptModuleVersionRequestInterface, GetPromptModuleRequestInterface, GetPromptModuleVersionRequestInterface, ListPromptModuleRequestInterface, ListPromptModuleVersionsRequestInterface, UpdatePromptModuleRequestInterface, ValidatePromptModuleRequestInterface } from './interfaces/';
3
3
  import { HttpResponse } from '@angular/common/http';
4
4
  import { Observable } from 'rxjs';
5
5
  import * as i0 from "@angular/core";
@@ -20,6 +20,7 @@ export declare class PromptModuleApiService {
20
20
  list(r: ListPromptModuleRequest | ListPromptModuleRequestInterface): Observable<ListPromptModuleResponse>;
21
21
  listVersions(r: ListPromptModuleVersionsRequest | ListPromptModuleVersionsRequestInterface): Observable<ListPromptModuleVersionsResponse>;
22
22
  delete(r: DeletePromptModuleRequest | DeletePromptModuleRequestInterface): Observable<HttpResponse<null>>;
23
+ validate(r: ValidatePromptModuleRequest | ValidatePromptModuleRequestInterface): Observable<ValidatePromptModuleResponse>;
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<PromptModuleApiService, never>;
24
25
  static ɵprov: i0.ɵɵInjectableDeclaration<PromptModuleApiService>;
25
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/ai-assistants",
3
- "version": "0.46.0",
3
+ "version": "0.48.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"