@vendasta/ai-assistants 0.59.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 (43) hide show
  1. package/esm2020/lib/_internal/assistant.api.service.mjs +2 -12
  2. package/esm2020/lib/_internal/enums/api.enum.mjs +10 -1
  3. package/esm2020/lib/_internal/enums/assistant.enum.mjs +2 -1
  4. package/esm2020/lib/_internal/enums/index.mjs +2 -2
  5. package/esm2020/lib/_internal/function.api.service.mjs +12 -2
  6. package/esm2020/lib/_internal/goal.api.service.mjs +7 -2
  7. package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
  8. package/esm2020/lib/_internal/interfaces/assistant.interface.mjs +1 -1
  9. package/esm2020/lib/_internal/interfaces/function.interface.mjs +1 -1
  10. package/esm2020/lib/_internal/interfaces/goal.interface.mjs +1 -1
  11. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  12. package/esm2020/lib/_internal/interfaces/prompt.interface.mjs +1 -1
  13. package/esm2020/lib/_internal/objects/api.mjs +311 -449
  14. package/esm2020/lib/_internal/objects/assistant.mjs +27 -1
  15. package/esm2020/lib/_internal/objects/function.mjs +163 -1
  16. package/esm2020/lib/_internal/objects/goal.mjs +82 -1
  17. package/esm2020/lib/_internal/objects/index.mjs +6 -6
  18. package/esm2020/lib/_internal/objects/prompt.mjs +1 -77
  19. package/esm2020/lib/_internal/prompt-module.api.service.mjs +12 -2
  20. package/fesm2015/vendasta-ai-assistants.mjs +639 -559
  21. package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
  22. package/fesm2020/vendasta-ai-assistants.mjs +639 -559
  23. package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
  24. package/lib/_internal/assistant.api.service.d.ts +2 -4
  25. package/lib/_internal/enums/api.enum.d.ts +8 -0
  26. package/lib/_internal/enums/assistant.enum.d.ts +2 -1
  27. package/lib/_internal/enums/index.d.ts +1 -1
  28. package/lib/_internal/function.api.service.d.ts +4 -2
  29. package/lib/_internal/goal.api.service.d.ts +3 -2
  30. package/lib/_internal/interfaces/api.interface.d.ts +59 -82
  31. package/lib/_internal/interfaces/assistant.interface.d.ts +4 -0
  32. package/lib/_internal/interfaces/function.interface.d.ts +26 -0
  33. package/lib/_internal/interfaces/goal.interface.d.ts +13 -0
  34. package/lib/_internal/interfaces/index.d.ts +5 -5
  35. package/lib/_internal/interfaces/prompt.interface.d.ts +0 -15
  36. package/lib/_internal/objects/api.d.ts +100 -132
  37. package/lib/_internal/objects/assistant.d.ts +7 -0
  38. package/lib/_internal/objects/function.d.ts +44 -0
  39. package/lib/_internal/objects/goal.d.ts +22 -0
  40. package/lib/_internal/objects/index.d.ts +5 -5
  41. package/lib/_internal/objects/prompt.d.ts +0 -21
  42. package/lib/_internal/prompt-module.api.service.d.ts +4 -2
  43. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CreateAssistantRequest, CreateAssistantResponse, DeleteAssistantRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetMultiAssistantRequest, GetMultiAssistantResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsResponse, ListTemplateVariablesRequest, ListTemplateVariablesResponse, ResumeStreamingGenerateChatAnswerRequest, SetAssistantConnectionsRequest, StreamingGenerateChatAnswerRequest, StreamingGenerateChatAnswerResponse, UpdateAssistantRequest, UpsertAssistantRequest, UpsertAssistantResponse } from './objects/';
2
- import { BuildDefaultAssistantRequestInterface, CreateAssistantRequestInterface, DeleteAssistantRequestInterface, ExecuteFunctionRequestInterface, GenerateChatAnswerRequestInterface, GetAssistantRequestInterface, GetChatAnswerFunctionExecutionJobRequestInterface, GetMultiAssistantRequestInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAssistantRequestInterface, ListAvailableModelsRequestInterface, ListTemplateVariablesRequestInterface, ResumeStreamingGenerateChatAnswerRequestInterface, SetAssistantConnectionsRequestInterface, StreamingGenerateChatAnswerRequestInterface, UpdateAssistantRequestInterface, UpsertAssistantRequestInterface } from './interfaces/';
1
+ import { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CreateAssistantRequest, CreateAssistantResponse, DeleteAssistantRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetMultiAssistantRequest, GetMultiAssistantResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsResponse, ListTemplateVariablesRequest, ListTemplateVariablesResponse, SetAssistantConnectionsRequest, UpdateAssistantRequest, UpsertAssistantRequest, UpsertAssistantResponse } from './objects/';
2
+ import { BuildDefaultAssistantRequestInterface, CreateAssistantRequestInterface, DeleteAssistantRequestInterface, ExecuteFunctionRequestInterface, GenerateChatAnswerRequestInterface, GetAssistantRequestInterface, GetChatAnswerFunctionExecutionJobRequestInterface, GetMultiAssistantRequestInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAssistantRequestInterface, ListAvailableModelsRequestInterface, ListTemplateVariablesRequestInterface, SetAssistantConnectionsRequestInterface, UpdateAssistantRequestInterface, UpsertAssistantRequestInterface } 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,8 +18,6 @@ export declare class AssistantApiService {
18
18
  listAssistant(r: ListAssistantRequest | ListAssistantRequestInterface): Observable<ListAssistantResponse>;
19
19
  listAllAssistantsAssociatedToConnection(r: ListAllAssistantsAssociatedToConnectionRequest | ListAllAssistantsAssociatedToConnectionRequestInterface): Observable<ListAllAssistantsAssociatedToConnectionResponse>;
20
20
  generateChatAnswer(r: GenerateChatAnswerRequest | GenerateChatAnswerRequestInterface): Observable<GenerateChatAnswerResponse>;
21
- streamingGenerateChatAnswer(r: StreamingGenerateChatAnswerRequest | StreamingGenerateChatAnswerRequestInterface): Observable<StreamingGenerateChatAnswerResponse>;
22
- resumeStreamingGenerateChatAnswer(r: ResumeStreamingGenerateChatAnswerRequest | ResumeStreamingGenerateChatAnswerRequestInterface): Observable<StreamingGenerateChatAnswerResponse>;
23
21
  getChatAnswerFunctionExecutionJob(r: GetChatAnswerFunctionExecutionJobRequest | GetChatAnswerFunctionExecutionJobRequestInterface): Observable<GetChatAnswerFunctionExecutionJobResponse>;
24
22
  setAssistantConnections(r: SetAssistantConnectionsRequest | SetAssistantConnectionsRequestInterface): Observable<HttpResponse<null>>;
25
23
  executeFunction(r: ExecuteFunctionRequest | ExecuteFunctionRequestInterface): Observable<ExecuteFunctionResponse>;
@@ -15,3 +15,11 @@ export declare enum ListGoalsRequestSortingOrder {
15
15
  GOAL_SORTING_ORDER_ASCENDING = 0,
16
16
  GOAL_SORTING_ORDER_DESCENDING = 1
17
17
  }
18
+ export declare enum ValidationFailureAction {
19
+ VALIDATION_FAILURE_ACTION_UNSPECIFIED = 0,
20
+ VALIDATION_FAILURE_ACTION_NONE = 1,
21
+ VALIDATION_FAILURE_ACTION_WARN = 2,
22
+ VALIDATION_FAILURE_ACTION_MODIFY = 3,
23
+ VALIDATION_FAILURE_ACTION_BLOCK = 4,
24
+ VALIDATION_FAILURE_ACTION_EXCEPTION = 5
25
+ }
@@ -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
  }
@@ -7,4 +7,4 @@ export { ModelType, ModelVendor, } from './model.enum';
7
7
  export { VendorModel, } from './assistant.enum';
8
8
  export { ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessageRole, } from './answer.enum';
9
9
  export { SortDirection, } from './integration-tests.enum';
10
- export { AgentArchitecture, StreamingGenerateChatAnswerResponseContentType, ListGoalsRequestSortingOrder, } from './api.enum';
10
+ export { AgentArchitecture, StreamingGenerateChatAnswerResponseContentType, ListGoalsRequestSortingOrder, ValidationFailureAction, } from './api.enum';
@@ -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
  }
@@ -23,10 +23,6 @@ export interface SetAssistantConnectionsRequestConnectionStateInterface {
23
23
  connectionKey?: ConnectionKeyInterface;
24
24
  isAssociated?: boolean;
25
25
  }
26
- export interface StreamingGenerateChatAnswerResponseContentChunkInterface {
27
- content?: string;
28
- contentType?: e.StreamingGenerateChatAnswerResponseContentType;
29
- }
30
26
  export interface CreateAssistantRequestInterface {
31
27
  assistant?: AssistantInterface;
32
28
  options?: CreateAssistantRequestOptionsInterface;
@@ -85,12 +81,6 @@ export interface DeployPromptModuleRequestInterface {
85
81
  namespace?: NamespaceInterface;
86
82
  version?: string;
87
83
  }
88
- export interface StreamingGenerateChatAnswerResponseErrorChunkInterface {
89
- errorMessage?: string;
90
- errorCode?: string;
91
- errorDetails?: KeyValuePairInterface[];
92
- resumable?: boolean;
93
- }
94
84
  export interface ExecuteFunctionRequestInterface {
95
85
  assistantKey?: AssistantKeyInterface;
96
86
  functionKey?: FunctionKeyInterface;
@@ -101,6 +91,12 @@ export interface ExecuteFunctionResponseInterface {
101
91
  output?: string;
102
92
  metadata?: KeyValuePairInterface[];
103
93
  }
94
+ export interface ListFunctionRequestFiltersInterface {
95
+ namespace?: NamespaceInterface;
96
+ namespaces?: NamespaceInterface[];
97
+ mcpId?: string;
98
+ constraintFilters?: ConstraintFilterInterface[];
99
+ }
104
100
  export interface ListGoalsRequestFiltersInterface {
105
101
  namespace?: NamespaceInterface;
106
102
  type?: e.GoalType;
@@ -111,50 +107,24 @@ export interface ListGoalsRequestFiltersInterface {
111
107
  sortOptions?: ListGoalsRequestSortOptionsInterface[];
112
108
  omitOverrides?: boolean;
113
109
  }
114
- export interface ListPromptModuleRequestFiltersInterface {
115
- namespace?: NamespaceInterface;
116
- }
117
110
  export interface ListAssistantRequestFiltersInterface {
118
111
  namespace?: NamespaceInterface;
119
112
  type?: e.AssistantType;
120
113
  }
121
- export interface ListConnectionsRequestFiltersInterface {
114
+ export interface ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
115
+ type?: e.AssistantType;
116
+ }
117
+ export interface ListPromptModuleRequestFiltersInterface {
122
118
  namespace?: NamespaceInterface;
123
- assistantType?: e.AssistantType;
124
119
  }
125
- export interface ListFunctionRequestFiltersInterface {
120
+ export interface ListConnectionsRequestFiltersInterface {
126
121
  namespace?: NamespaceInterface;
127
- namespaces?: NamespaceInterface[];
128
- mcpId?: string;
129
- constraintFilters?: ConstraintFilterInterface[];
122
+ assistantType?: e.AssistantType;
130
123
  }
131
124
  export interface ListAvailableModelsRequestFiltersInterface {
132
125
  vendor?: e.ModelVendor[];
133
126
  type?: e.ModelType[];
134
127
  }
135
- export interface ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
136
- type?: e.AssistantType;
137
- }
138
- export interface StreamingGenerateChatAnswerResponseFinalChunkInterface {
139
- }
140
- export interface StreamingGenerateChatAnswerResponseFunctionCompleteChunkInterface {
141
- functionName?: string;
142
- result?: string;
143
- metadata?: KeyValuePairInterface[];
144
- functionCallId?: string;
145
- }
146
- export interface StreamingGenerateChatAnswerResponseFunctionProgressChunkInterface {
147
- functionName?: string;
148
- status?: string;
149
- progressMessage?: string;
150
- functionCallId?: string;
151
- }
152
- export interface StreamingGenerateChatAnswerResponseFunctionStartChunkInterface {
153
- functionName?: string;
154
- functionDescription?: string;
155
- arguments?: string;
156
- functionCallId?: string;
157
- }
158
128
  export interface GenerateChatAnswerRequestInterface {
159
129
  connectionKey?: ConnectionKeyInterface;
160
130
  chatHistory?: ChatMessageInterface[];
@@ -168,6 +138,7 @@ export interface GenerateChatAnswerResponseInterface {
168
138
  answer?: string;
169
139
  metadata?: KeyValuePairInterface[];
170
140
  pendingJobId?: string;
141
+ validationResult?: ValidationResultInterface;
171
142
  }
172
143
  export interface GetAssistantRequestInterface {
173
144
  id?: string;
@@ -341,36 +312,29 @@ export interface ListTemplateVariablesRequestInterface {
341
312
  export interface ListTemplateVariablesResponseInterface {
342
313
  assistantScopedVariables?: TemplateVariableInterface[];
343
314
  }
344
- export interface StreamingGenerateChatAnswerResponseMetadataChunkInterface {
345
- metadata?: KeyValuePairInterface[];
346
- }
347
- export interface GetAssistantRequestOptionsInterface {
348
- skipGoalsHydration?: boolean;
315
+ export interface UpsertAssistantRequestOptionsInterface {
316
+ applyDefaults?: boolean;
349
317
  }
350
318
  export interface GetMultiAssistantRequestOptionsInterface {
351
319
  skipGoalsHydration?: boolean;
352
320
  }
353
- export interface UpsertAssistantRequestOptionsInterface {
354
- applyDefaults?: boolean;
321
+ export interface CreatePromptModuleVersionRequestOptionsInterface {
322
+ shouldDeploy?: boolean;
355
323
  }
356
324
  export interface CreateAssistantRequestOptionsInterface {
357
325
  applyDefaults?: boolean;
358
326
  }
359
- export interface ExecuteFunctionRequestOptionsInterface {
360
- skipComputeTemplateVariables?: boolean;
361
- contextInfo?: ContextInfoInterface;
327
+ export interface GetAssistantRequestOptionsInterface {
328
+ skipGoalsHydration?: boolean;
362
329
  }
363
330
  export interface GenerateChatAnswerRequestOptionsInterface {
364
331
  includeAllCitations?: boolean;
365
332
  enableAsyncFunctions?: boolean;
366
333
  maxTokens?: number;
367
334
  }
368
- export interface CreatePromptModuleVersionRequestOptionsInterface {
369
- shouldDeploy?: boolean;
370
- }
371
- export interface ResumeStreamingGenerateChatAnswerRequestInterface {
372
- streamId?: string;
373
- lastReceivedSequenceNumber?: number;
335
+ export interface ExecuteFunctionRequestOptionsInterface {
336
+ skipComputeTemplateVariables?: boolean;
337
+ contextInfo?: ContextInfoInterface;
374
338
  }
375
339
  export interface SetAssistantConnectionsRequestInterface {
376
340
  associationStates?: SetAssistantConnectionsRequestConnectionStateInterface[];
@@ -380,30 +344,6 @@ export interface ListGoalsRequestSortOptionsInterface {
380
344
  field?: string;
381
345
  order?: e.ListGoalsRequestSortingOrder;
382
346
  }
383
- export interface StreamingGenerateChatAnswerResponseStartChunkInterface {
384
- streamId?: string;
385
- metadata?: KeyValuePairInterface[];
386
- }
387
- export interface StreamingGenerateChatAnswerRequestInterface {
388
- connectionKey?: ConnectionKeyInterface;
389
- assistantKey?: AssistantKeyInterface;
390
- chatHistory?: ChatMessageInterface[];
391
- chatUserInfo?: ChatUserInfoInterface;
392
- chatChannel?: e.ChatChannel;
393
- contextInfo?: ContextInfoInterface;
394
- agentArchitecture?: e.AgentArchitecture;
395
- }
396
- export interface StreamingGenerateChatAnswerResponseInterface {
397
- sequenceNumber?: number;
398
- start?: StreamingGenerateChatAnswerResponseStartChunkInterface;
399
- content?: StreamingGenerateChatAnswerResponseContentChunkInterface;
400
- metadata?: StreamingGenerateChatAnswerResponseMetadataChunkInterface;
401
- functionStart?: StreamingGenerateChatAnswerResponseFunctionStartChunkInterface;
402
- functionProgress?: StreamingGenerateChatAnswerResponseFunctionProgressChunkInterface;
403
- functionComplete?: StreamingGenerateChatAnswerResponseFunctionCompleteChunkInterface;
404
- final?: StreamingGenerateChatAnswerResponseFinalChunkInterface;
405
- error?: StreamingGenerateChatAnswerResponseErrorChunkInterface;
406
- }
407
347
  export interface UpdateAssistantRequestInterface {
408
348
  assistant?: AssistantInterface;
409
349
  fieldMask?: FieldMaskInterface;
@@ -440,3 +380,40 @@ export interface ValidatePromptModuleResponseInterface {
440
380
  isValid?: boolean;
441
381
  errorMessage?: string;
442
382
  }
383
+ export interface ValidatePromptModuleVersionsRequestInterface {
384
+ versions?: PromptModuleVersionInterface[];
385
+ }
386
+ export interface ValidatePromptModuleVersionsResponseInterface {
387
+ results?: ValidatePromptModuleVersionsResponseValidationResultInterface[];
388
+ allValid?: boolean;
389
+ }
390
+ export interface ValidatePromptModulesRequestInterface {
391
+ promptModules?: PromptModuleInterface[];
392
+ }
393
+ export interface ValidatePromptModulesResponseInterface {
394
+ results?: ValidatePromptModulesResponseValidationResultInterface[];
395
+ allValid?: boolean;
396
+ }
397
+ export interface ValidatePromptModulesResponseValidationResultInterface {
398
+ id?: string;
399
+ namespace?: NamespaceInterface;
400
+ isValid?: boolean;
401
+ errorMessage?: string;
402
+ }
403
+ export interface ValidatePromptModuleVersionsResponseValidationResultInterface {
404
+ id?: string;
405
+ namespace?: NamespaceInterface;
406
+ isValid?: boolean;
407
+ errorMessage?: string;
408
+ }
409
+ export interface ValidationResultInterface {
410
+ failureAction?: e.ValidationFailureAction;
411
+ violations?: ValidationViolationInterface[];
412
+ }
413
+ export interface ValidationViolationInterface {
414
+ failureAction?: e.ValidationFailureAction;
415
+ confidence?: number;
416
+ message?: string;
417
+ validatorName?: string;
418
+ isInputValidation?: boolean;
419
+ }
@@ -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,15 +1,15 @@
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';
5
- export { PromptInterface, PromptModuleInterface, PromptModuleKeyInterface, PromptModuleVersionInterface, PromptVersionInterface, } from './prompt.interface';
6
- export { GoalInterface, GoalKeyInterface, } from './goal.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
+ export { PromptModuleInterface, PromptModuleKeyInterface, PromptModuleVersionInterface, } from './prompt.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';
13
13
  export { AccessInterface, MCPOptionsInterface, } from './annotations.interface';
14
14
  export { FieldMaskInterface, } from './field-mask.interface';
15
- export { BuildDefaultAssistantRequestInterface, BuildDefaultAssistantResponseInterface, SetAssistantConnectionsRequestConnectionStateInterface, StreamingGenerateChatAnswerResponseContentChunkInterface, CreateAssistantRequestInterface, CreateAssistantResponseInterface, CreateGoalRequestInterface, CreateGoalResponseInterface, CreatePromptModuleRequestInterface, CreatePromptModuleResponseInterface, CreatePromptModuleVersionRequestInterface, DeleteAssistantRequestInterface, DeleteConnectionRequestInterface, DeleteFunctionRequestInterface, DeleteGoalRequestInterface, DeletePromptModuleRequestInterface, DeployPromptModuleRequestInterface, StreamingGenerateChatAnswerResponseErrorChunkInterface, ExecuteFunctionRequestInterface, ExecuteFunctionResponseInterface, ListGoalsRequestFiltersInterface, ListPromptModuleRequestFiltersInterface, ListAssistantRequestFiltersInterface, ListConnectionsRequestFiltersInterface, ListFunctionRequestFiltersInterface, ListAvailableModelsRequestFiltersInterface, ListAllAssistantsAssociatedToConnectionRequestFiltersInterface, StreamingGenerateChatAnswerResponseFinalChunkInterface, StreamingGenerateChatAnswerResponseFunctionCompleteChunkInterface, StreamingGenerateChatAnswerResponseFunctionProgressChunkInterface, StreamingGenerateChatAnswerResponseFunctionStartChunkInterface, GenerateChatAnswerRequestInterface, GenerateChatAnswerResponseInterface, GetAssistantRequestInterface, GetAssistantResponseInterface, GetChatAnswerFunctionExecutionJobRequestInterface, GetChatAnswerFunctionExecutionJobResponseInterface, GetConnectionRequestInterface, GetConnectionResponseInterface, GetDeployedPromptModuleVersionRequestInterface, GetDeployedPromptModuleVersionResponseInterface, GetFunctionRequestInterface, GetFunctionResponseInterface, GetGoalRequestInterface, GetGoalResponseInterface, GetHydratedDeployedPromptModuleVersionRequestInterface, GetHydratedDeployedPromptModuleVersionResponseInterface, GetMultiAssistantRequestInterface, GetMultiAssistantResponseInterface, GetMultiFunctionRequestInterface, GetMultiFunctionResponseInterface, GetMultiGoalRequestInterface, GetMultiGoalResponseInterface, GetMultiHydratedDeployedPromptModuleVersionRequestInterface, GetMultiHydratedDeployedPromptModuleVersionResponseInterface, GetPromptModuleRequestInterface, GetPromptModuleResponseInterface, GetPromptModuleVersionRequestInterface, GetPromptModuleVersionResponseInterface, GoalsDisabledForAccountGroupRequestInterface, GoalsDisabledForAccountGroupResponseInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAllAssistantsAssociatedToConnectionResponseInterface, ListAssistantRequestInterface, ListAssistantResponseInterface, ListAvailableModelsRequestInterface, ListAvailableModelsResponseInterface, ListConnectionsRequestInterface, ListConnectionsResponseInterface, ListFunctionRequestInterface, ListFunctionResponseInterface, ListGoalsRequestInterface, ListGoalsResponseInterface, ListPromptModuleRequestInterface, ListPromptModuleResponseInterface, ListPromptModuleVersionsRequestInterface, ListPromptModuleVersionsResponseInterface, ListTemplateVariablesRequestInterface, ListTemplateVariablesResponseInterface, StreamingGenerateChatAnswerResponseMetadataChunkInterface, GetAssistantRequestOptionsInterface, GetMultiAssistantRequestOptionsInterface, UpsertAssistantRequestOptionsInterface, CreateAssistantRequestOptionsInterface, ExecuteFunctionRequestOptionsInterface, GenerateChatAnswerRequestOptionsInterface, CreatePromptModuleVersionRequestOptionsInterface, ResumeStreamingGenerateChatAnswerRequestInterface, SetAssistantConnectionsRequestInterface, ListGoalsRequestSortOptionsInterface, StreamingGenerateChatAnswerResponseStartChunkInterface, StreamingGenerateChatAnswerRequestInterface, StreamingGenerateChatAnswerResponseInterface, UpdateAssistantRequestInterface, UpdateGoalRequestInterface, UpdatePromptModuleRequestInterface, UpsertAssistantRequestInterface, UpsertAssistantResponseInterface, UpsertConnectionRequestInterface, UpsertFunctionRequestInterface, UpsertGoalRequestInterface, ValidatePromptModuleRequestInterface, ValidatePromptModuleResponseInterface, } from './api.interface';
15
+ export { BuildDefaultAssistantRequestInterface, BuildDefaultAssistantResponseInterface, SetAssistantConnectionsRequestConnectionStateInterface, CreateAssistantRequestInterface, CreateAssistantResponseInterface, CreateGoalRequestInterface, CreateGoalResponseInterface, CreatePromptModuleRequestInterface, CreatePromptModuleResponseInterface, CreatePromptModuleVersionRequestInterface, DeleteAssistantRequestInterface, DeleteConnectionRequestInterface, DeleteFunctionRequestInterface, DeleteGoalRequestInterface, DeletePromptModuleRequestInterface, DeployPromptModuleRequestInterface, ExecuteFunctionRequestInterface, ExecuteFunctionResponseInterface, ListFunctionRequestFiltersInterface, ListGoalsRequestFiltersInterface, ListAssistantRequestFiltersInterface, ListAllAssistantsAssociatedToConnectionRequestFiltersInterface, ListPromptModuleRequestFiltersInterface, ListConnectionsRequestFiltersInterface, ListAvailableModelsRequestFiltersInterface, GenerateChatAnswerRequestInterface, GenerateChatAnswerResponseInterface, GetAssistantRequestInterface, GetAssistantResponseInterface, GetChatAnswerFunctionExecutionJobRequestInterface, GetChatAnswerFunctionExecutionJobResponseInterface, GetConnectionRequestInterface, GetConnectionResponseInterface, GetDeployedPromptModuleVersionRequestInterface, GetDeployedPromptModuleVersionResponseInterface, GetFunctionRequestInterface, GetFunctionResponseInterface, GetGoalRequestInterface, GetGoalResponseInterface, GetHydratedDeployedPromptModuleVersionRequestInterface, GetHydratedDeployedPromptModuleVersionResponseInterface, GetMultiAssistantRequestInterface, GetMultiAssistantResponseInterface, GetMultiFunctionRequestInterface, GetMultiFunctionResponseInterface, GetMultiGoalRequestInterface, GetMultiGoalResponseInterface, GetMultiHydratedDeployedPromptModuleVersionRequestInterface, GetMultiHydratedDeployedPromptModuleVersionResponseInterface, GetPromptModuleRequestInterface, GetPromptModuleResponseInterface, GetPromptModuleVersionRequestInterface, GetPromptModuleVersionResponseInterface, GoalsDisabledForAccountGroupRequestInterface, GoalsDisabledForAccountGroupResponseInterface, ListAllAssistantsAssociatedToConnectionRequestInterface, ListAllAssistantsAssociatedToConnectionResponseInterface, ListAssistantRequestInterface, ListAssistantResponseInterface, ListAvailableModelsRequestInterface, ListAvailableModelsResponseInterface, ListConnectionsRequestInterface, ListConnectionsResponseInterface, ListFunctionRequestInterface, ListFunctionResponseInterface, ListGoalsRequestInterface, ListGoalsResponseInterface, ListPromptModuleRequestInterface, ListPromptModuleResponseInterface, ListPromptModuleVersionsRequestInterface, ListPromptModuleVersionsResponseInterface, ListTemplateVariablesRequestInterface, ListTemplateVariablesResponseInterface, UpsertAssistantRequestOptionsInterface, GetMultiAssistantRequestOptionsInterface, CreatePromptModuleVersionRequestOptionsInterface, CreateAssistantRequestOptionsInterface, GetAssistantRequestOptionsInterface, GenerateChatAnswerRequestOptionsInterface, ExecuteFunctionRequestOptionsInterface, SetAssistantConnectionsRequestInterface, ListGoalsRequestSortOptionsInterface, UpdateAssistantRequestInterface, UpdateGoalRequestInterface, UpdatePromptModuleRequestInterface, UpsertAssistantRequestInterface, UpsertAssistantResponseInterface, UpsertConnectionRequestInterface, UpsertFunctionRequestInterface, UpsertGoalRequestInterface, ValidatePromptModuleRequestInterface, ValidatePromptModuleResponseInterface, ValidatePromptModuleVersionsRequestInterface, ValidatePromptModuleVersionsResponseInterface, ValidatePromptModulesRequestInterface, ValidatePromptModulesResponseInterface, ValidatePromptModulesResponseValidationResultInterface, ValidatePromptModuleVersionsResponseValidationResultInterface, ValidationResultInterface, ValidationViolationInterface, } from './api.interface';
@@ -1,12 +1,4 @@
1
1
  import { NamespaceInterface } from './namespace.interface';
2
- export interface PromptInterface {
3
- id?: string;
4
- deployedVersion?: string;
5
- deployedBy?: string;
6
- updated?: Date;
7
- description?: string;
8
- deployed?: Date;
9
- }
10
2
  export interface PromptModuleInterface {
11
3
  id?: string;
12
4
  namespace?: NamespaceInterface;
@@ -30,10 +22,3 @@ export interface PromptModuleVersionInterface {
30
22
  createdBy?: string;
31
23
  created?: Date;
32
24
  }
33
- export interface PromptVersionInterface {
34
- id?: string;
35
- version?: string;
36
- content?: string;
37
- createdBy?: string;
38
- created?: Date;
39
- }