@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
@@ -34,13 +34,6 @@ export declare class SetAssistantConnectionsRequestConnectionState implements i.
34
34
  constructor(kwargs?: i.SetAssistantConnectionsRequestConnectionStateInterface);
35
35
  toApiJson(): object;
36
36
  }
37
- export declare class StreamingGenerateChatAnswerResponseContentChunk implements i.StreamingGenerateChatAnswerResponseContentChunkInterface {
38
- content: string;
39
- contentType: e.StreamingGenerateChatAnswerResponseContentType;
40
- static fromProto(proto: any): StreamingGenerateChatAnswerResponseContentChunk;
41
- constructor(kwargs?: i.StreamingGenerateChatAnswerResponseContentChunkInterface);
42
- toApiJson(): object;
43
- }
44
37
  export declare class CreateAssistantRequest implements i.CreateAssistantRequestInterface {
45
38
  assistant: Assistant;
46
39
  options: CreateAssistantRequestOptions;
@@ -138,15 +131,6 @@ export declare class DeployPromptModuleRequest implements i.DeployPromptModuleRe
138
131
  constructor(kwargs?: i.DeployPromptModuleRequestInterface);
139
132
  toApiJson(): object;
140
133
  }
141
- export declare class StreamingGenerateChatAnswerResponseErrorChunk implements i.StreamingGenerateChatAnswerResponseErrorChunkInterface {
142
- errorMessage: string;
143
- errorCode: string;
144
- errorDetails: KeyValuePair[];
145
- resumable: boolean;
146
- static fromProto(proto: any): StreamingGenerateChatAnswerResponseErrorChunk;
147
- constructor(kwargs?: i.StreamingGenerateChatAnswerResponseErrorChunkInterface);
148
- toApiJson(): object;
149
- }
150
134
  export declare class ExecuteFunctionRequest implements i.ExecuteFunctionRequestInterface {
151
135
  assistantKey: AssistantKey;
152
136
  functionKey: FunctionKey;
@@ -163,6 +147,15 @@ export declare class ExecuteFunctionResponse implements i.ExecuteFunctionRespons
163
147
  constructor(kwargs?: i.ExecuteFunctionResponseInterface);
164
148
  toApiJson(): object;
165
149
  }
150
+ export declare class ListFunctionRequestFilters implements i.ListFunctionRequestFiltersInterface {
151
+ namespace: Namespace;
152
+ namespaces: Namespace[];
153
+ mcpId: string;
154
+ constraintFilters: ConstraintFilter[];
155
+ static fromProto(proto: any): ListFunctionRequestFilters;
156
+ constructor(kwargs?: i.ListFunctionRequestFiltersInterface);
157
+ toApiJson(): object;
158
+ }
166
159
  export declare class ListGoalsRequestFilters implements i.ListGoalsRequestFiltersInterface {
167
160
  namespace: Namespace;
168
161
  type: e.GoalType;
@@ -176,12 +169,6 @@ export declare class ListGoalsRequestFilters implements i.ListGoalsRequestFilter
176
169
  constructor(kwargs?: i.ListGoalsRequestFiltersInterface);
177
170
  toApiJson(): object;
178
171
  }
179
- export declare class ListPromptModuleRequestFilters implements i.ListPromptModuleRequestFiltersInterface {
180
- namespace: Namespace;
181
- static fromProto(proto: any): ListPromptModuleRequestFilters;
182
- constructor(kwargs?: i.ListPromptModuleRequestFiltersInterface);
183
- toApiJson(): object;
184
- }
185
172
  export declare class ListAssistantRequestFilters implements i.ListAssistantRequestFiltersInterface {
186
173
  namespace: Namespace;
187
174
  type: e.AssistantType;
@@ -189,6 +176,18 @@ export declare class ListAssistantRequestFilters implements i.ListAssistantReque
189
176
  constructor(kwargs?: i.ListAssistantRequestFiltersInterface);
190
177
  toApiJson(): object;
191
178
  }
179
+ export declare class ListAllAssistantsAssociatedToConnectionRequestFilters implements i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
180
+ type: e.AssistantType;
181
+ static fromProto(proto: any): ListAllAssistantsAssociatedToConnectionRequestFilters;
182
+ constructor(kwargs?: i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface);
183
+ toApiJson(): object;
184
+ }
185
+ export declare class ListPromptModuleRequestFilters implements i.ListPromptModuleRequestFiltersInterface {
186
+ namespace: Namespace;
187
+ static fromProto(proto: any): ListPromptModuleRequestFilters;
188
+ constructor(kwargs?: i.ListPromptModuleRequestFiltersInterface);
189
+ toApiJson(): object;
190
+ }
192
191
  export declare class ListConnectionsRequestFilters implements i.ListConnectionsRequestFiltersInterface {
193
192
  namespace: Namespace;
194
193
  assistantType: e.AssistantType;
@@ -196,15 +195,6 @@ export declare class ListConnectionsRequestFilters implements i.ListConnectionsR
196
195
  constructor(kwargs?: i.ListConnectionsRequestFiltersInterface);
197
196
  toApiJson(): object;
198
197
  }
199
- export declare class ListFunctionRequestFilters implements i.ListFunctionRequestFiltersInterface {
200
- namespace: Namespace;
201
- namespaces: Namespace[];
202
- mcpId: string;
203
- constraintFilters: ConstraintFilter[];
204
- static fromProto(proto: any): ListFunctionRequestFilters;
205
- constructor(kwargs?: i.ListFunctionRequestFiltersInterface);
206
- toApiJson(): object;
207
- }
208
198
  export declare class ListAvailableModelsRequestFilters implements i.ListAvailableModelsRequestFiltersInterface {
209
199
  vendor: e.ModelVendor[];
210
200
  type: e.ModelType[];
@@ -212,44 +202,6 @@ export declare class ListAvailableModelsRequestFilters implements i.ListAvailabl
212
202
  constructor(kwargs?: i.ListAvailableModelsRequestFiltersInterface);
213
203
  toApiJson(): object;
214
204
  }
215
- export declare class ListAllAssistantsAssociatedToConnectionRequestFilters implements i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface {
216
- type: e.AssistantType;
217
- static fromProto(proto: any): ListAllAssistantsAssociatedToConnectionRequestFilters;
218
- constructor(kwargs?: i.ListAllAssistantsAssociatedToConnectionRequestFiltersInterface);
219
- toApiJson(): object;
220
- }
221
- export declare class StreamingGenerateChatAnswerResponseFinalChunk implements i.StreamingGenerateChatAnswerResponseFinalChunkInterface {
222
- static fromProto(proto: any): StreamingGenerateChatAnswerResponseFinalChunk;
223
- constructor(kwargs?: i.StreamingGenerateChatAnswerResponseFinalChunkInterface);
224
- toApiJson(): object;
225
- }
226
- export declare class StreamingGenerateChatAnswerResponseFunctionCompleteChunk implements i.StreamingGenerateChatAnswerResponseFunctionCompleteChunkInterface {
227
- functionName: string;
228
- result: string;
229
- metadata: KeyValuePair[];
230
- functionCallId: string;
231
- static fromProto(proto: any): StreamingGenerateChatAnswerResponseFunctionCompleteChunk;
232
- constructor(kwargs?: i.StreamingGenerateChatAnswerResponseFunctionCompleteChunkInterface);
233
- toApiJson(): object;
234
- }
235
- export declare class StreamingGenerateChatAnswerResponseFunctionProgressChunk implements i.StreamingGenerateChatAnswerResponseFunctionProgressChunkInterface {
236
- functionName: string;
237
- status: string;
238
- progressMessage: string;
239
- functionCallId: string;
240
- static fromProto(proto: any): StreamingGenerateChatAnswerResponseFunctionProgressChunk;
241
- constructor(kwargs?: i.StreamingGenerateChatAnswerResponseFunctionProgressChunkInterface);
242
- toApiJson(): object;
243
- }
244
- export declare class StreamingGenerateChatAnswerResponseFunctionStartChunk implements i.StreamingGenerateChatAnswerResponseFunctionStartChunkInterface {
245
- functionName: string;
246
- functionDescription: string;
247
- arguments: string;
248
- functionCallId: string;
249
- static fromProto(proto: any): StreamingGenerateChatAnswerResponseFunctionStartChunk;
250
- constructor(kwargs?: i.StreamingGenerateChatAnswerResponseFunctionStartChunkInterface);
251
- toApiJson(): object;
252
- }
253
205
  export declare class GenerateChatAnswerRequest implements i.GenerateChatAnswerRequestInterface {
254
206
  connectionKey: ConnectionKey;
255
207
  chatHistory: ChatMessage[];
@@ -266,6 +218,7 @@ export declare class GenerateChatAnswerResponse implements i.GenerateChatAnswerR
266
218
  answer: string;
267
219
  metadata: KeyValuePair[];
268
220
  pendingJobId: string;
221
+ validationResult: ValidationResult;
269
222
  static fromProto(proto: any): GenerateChatAnswerResponse;
270
223
  constructor(kwargs?: i.GenerateChatAnswerResponseInterface);
271
224
  toApiJson(): object;
@@ -580,16 +533,10 @@ export declare class ListTemplateVariablesResponse implements i.ListTemplateVari
580
533
  constructor(kwargs?: i.ListTemplateVariablesResponseInterface);
581
534
  toApiJson(): object;
582
535
  }
583
- export declare class StreamingGenerateChatAnswerResponseMetadataChunk implements i.StreamingGenerateChatAnswerResponseMetadataChunkInterface {
584
- metadata: KeyValuePair[];
585
- static fromProto(proto: any): StreamingGenerateChatAnswerResponseMetadataChunk;
586
- constructor(kwargs?: i.StreamingGenerateChatAnswerResponseMetadataChunkInterface);
587
- toApiJson(): object;
588
- }
589
- export declare class GetAssistantRequestOptions implements i.GetAssistantRequestOptionsInterface {
590
- skipGoalsHydration: boolean;
591
- static fromProto(proto: any): GetAssistantRequestOptions;
592
- constructor(kwargs?: i.GetAssistantRequestOptionsInterface);
536
+ export declare class UpsertAssistantRequestOptions implements i.UpsertAssistantRequestOptionsInterface {
537
+ applyDefaults: boolean;
538
+ static fromProto(proto: any): UpsertAssistantRequestOptions;
539
+ constructor(kwargs?: i.UpsertAssistantRequestOptionsInterface);
593
540
  toApiJson(): object;
594
541
  }
595
542
  export declare class GetMultiAssistantRequestOptions implements i.GetMultiAssistantRequestOptionsInterface {
@@ -598,10 +545,10 @@ export declare class GetMultiAssistantRequestOptions implements i.GetMultiAssist
598
545
  constructor(kwargs?: i.GetMultiAssistantRequestOptionsInterface);
599
546
  toApiJson(): object;
600
547
  }
601
- export declare class UpsertAssistantRequestOptions implements i.UpsertAssistantRequestOptionsInterface {
602
- applyDefaults: boolean;
603
- static fromProto(proto: any): UpsertAssistantRequestOptions;
604
- constructor(kwargs?: i.UpsertAssistantRequestOptionsInterface);
548
+ export declare class CreatePromptModuleVersionRequestOptions implements i.CreatePromptModuleVersionRequestOptionsInterface {
549
+ shouldDeploy: boolean;
550
+ static fromProto(proto: any): CreatePromptModuleVersionRequestOptions;
551
+ constructor(kwargs?: i.CreatePromptModuleVersionRequestOptionsInterface);
605
552
  toApiJson(): object;
606
553
  }
607
554
  export declare class CreateAssistantRequestOptions implements i.CreateAssistantRequestOptionsInterface {
@@ -610,11 +557,10 @@ export declare class CreateAssistantRequestOptions implements i.CreateAssistantR
610
557
  constructor(kwargs?: i.CreateAssistantRequestOptionsInterface);
611
558
  toApiJson(): object;
612
559
  }
613
- export declare class ExecuteFunctionRequestOptions implements i.ExecuteFunctionRequestOptionsInterface {
614
- skipComputeTemplateVariables: boolean;
615
- contextInfo: ContextInfo;
616
- static fromProto(proto: any): ExecuteFunctionRequestOptions;
617
- constructor(kwargs?: i.ExecuteFunctionRequestOptionsInterface);
560
+ export declare class GetAssistantRequestOptions implements i.GetAssistantRequestOptionsInterface {
561
+ skipGoalsHydration: boolean;
562
+ static fromProto(proto: any): GetAssistantRequestOptions;
563
+ constructor(kwargs?: i.GetAssistantRequestOptionsInterface);
618
564
  toApiJson(): object;
619
565
  }
620
566
  export declare class GenerateChatAnswerRequestOptions implements i.GenerateChatAnswerRequestOptionsInterface {
@@ -625,17 +571,11 @@ export declare class GenerateChatAnswerRequestOptions implements i.GenerateChatA
625
571
  constructor(kwargs?: i.GenerateChatAnswerRequestOptionsInterface);
626
572
  toApiJson(): object;
627
573
  }
628
- export declare class CreatePromptModuleVersionRequestOptions implements i.CreatePromptModuleVersionRequestOptionsInterface {
629
- shouldDeploy: boolean;
630
- static fromProto(proto: any): CreatePromptModuleVersionRequestOptions;
631
- constructor(kwargs?: i.CreatePromptModuleVersionRequestOptionsInterface);
632
- toApiJson(): object;
633
- }
634
- export declare class ResumeStreamingGenerateChatAnswerRequest implements i.ResumeStreamingGenerateChatAnswerRequestInterface {
635
- streamId: string;
636
- lastReceivedSequenceNumber: number;
637
- static fromProto(proto: any): ResumeStreamingGenerateChatAnswerRequest;
638
- constructor(kwargs?: i.ResumeStreamingGenerateChatAnswerRequestInterface);
574
+ export declare class ExecuteFunctionRequestOptions implements i.ExecuteFunctionRequestOptionsInterface {
575
+ skipComputeTemplateVariables: boolean;
576
+ contextInfo: ContextInfo;
577
+ static fromProto(proto: any): ExecuteFunctionRequestOptions;
578
+ constructor(kwargs?: i.ExecuteFunctionRequestOptionsInterface);
639
579
  toApiJson(): object;
640
580
  }
641
581
  export declare class SetAssistantConnectionsRequest implements i.SetAssistantConnectionsRequestInterface {
@@ -652,39 +592,6 @@ export declare class ListGoalsRequestSortOptions implements i.ListGoalsRequestSo
652
592
  constructor(kwargs?: i.ListGoalsRequestSortOptionsInterface);
653
593
  toApiJson(): object;
654
594
  }
655
- export declare class StreamingGenerateChatAnswerResponseStartChunk implements i.StreamingGenerateChatAnswerResponseStartChunkInterface {
656
- streamId: string;
657
- metadata: KeyValuePair[];
658
- static fromProto(proto: any): StreamingGenerateChatAnswerResponseStartChunk;
659
- constructor(kwargs?: i.StreamingGenerateChatAnswerResponseStartChunkInterface);
660
- toApiJson(): object;
661
- }
662
- export declare class StreamingGenerateChatAnswerRequest implements i.StreamingGenerateChatAnswerRequestInterface {
663
- connectionKey: ConnectionKey;
664
- assistantKey: AssistantKey;
665
- chatHistory: ChatMessage[];
666
- chatUserInfo: ChatUserInfo;
667
- chatChannel: e.ChatChannel;
668
- contextInfo: ContextInfo;
669
- agentArchitecture: e.AgentArchitecture;
670
- static fromProto(proto: any): StreamingGenerateChatAnswerRequest;
671
- constructor(kwargs?: i.StreamingGenerateChatAnswerRequestInterface);
672
- toApiJson(): object;
673
- }
674
- export declare class StreamingGenerateChatAnswerResponse implements i.StreamingGenerateChatAnswerResponseInterface {
675
- sequenceNumber: number;
676
- start: StreamingGenerateChatAnswerResponseStartChunk;
677
- content: StreamingGenerateChatAnswerResponseContentChunk;
678
- metadata: StreamingGenerateChatAnswerResponseMetadataChunk;
679
- functionStart: StreamingGenerateChatAnswerResponseFunctionStartChunk;
680
- functionProgress: StreamingGenerateChatAnswerResponseFunctionProgressChunk;
681
- functionComplete: StreamingGenerateChatAnswerResponseFunctionCompleteChunk;
682
- final: StreamingGenerateChatAnswerResponseFinalChunk;
683
- error: StreamingGenerateChatAnswerResponseErrorChunk;
684
- static fromProto(proto: any): StreamingGenerateChatAnswerResponse;
685
- constructor(kwargs?: i.StreamingGenerateChatAnswerResponseInterface);
686
- toApiJson(): object;
687
- }
688
595
  export declare class UpdateAssistantRequest implements i.UpdateAssistantRequestInterface {
689
596
  assistant: Assistant;
690
597
  fieldMask: FieldMask;
@@ -751,3 +658,64 @@ export declare class ValidatePromptModuleResponse implements i.ValidatePromptMod
751
658
  constructor(kwargs?: i.ValidatePromptModuleResponseInterface);
752
659
  toApiJson(): object;
753
660
  }
661
+ export declare class ValidatePromptModuleVersionsRequest implements i.ValidatePromptModuleVersionsRequestInterface {
662
+ versions: PromptModuleVersion[];
663
+ static fromProto(proto: any): ValidatePromptModuleVersionsRequest;
664
+ constructor(kwargs?: i.ValidatePromptModuleVersionsRequestInterface);
665
+ toApiJson(): object;
666
+ }
667
+ export declare class ValidatePromptModuleVersionsResponse implements i.ValidatePromptModuleVersionsResponseInterface {
668
+ results: ValidatePromptModuleVersionsResponseValidationResult[];
669
+ allValid: boolean;
670
+ static fromProto(proto: any): ValidatePromptModuleVersionsResponse;
671
+ constructor(kwargs?: i.ValidatePromptModuleVersionsResponseInterface);
672
+ toApiJson(): object;
673
+ }
674
+ export declare class ValidatePromptModulesRequest implements i.ValidatePromptModulesRequestInterface {
675
+ promptModules: PromptModule[];
676
+ static fromProto(proto: any): ValidatePromptModulesRequest;
677
+ constructor(kwargs?: i.ValidatePromptModulesRequestInterface);
678
+ toApiJson(): object;
679
+ }
680
+ export declare class ValidatePromptModulesResponse implements i.ValidatePromptModulesResponseInterface {
681
+ results: ValidatePromptModulesResponseValidationResult[];
682
+ allValid: boolean;
683
+ static fromProto(proto: any): ValidatePromptModulesResponse;
684
+ constructor(kwargs?: i.ValidatePromptModulesResponseInterface);
685
+ toApiJson(): object;
686
+ }
687
+ export declare class ValidatePromptModulesResponseValidationResult implements i.ValidatePromptModulesResponseValidationResultInterface {
688
+ id: string;
689
+ namespace: Namespace;
690
+ isValid: boolean;
691
+ errorMessage: string;
692
+ static fromProto(proto: any): ValidatePromptModulesResponseValidationResult;
693
+ constructor(kwargs?: i.ValidatePromptModulesResponseValidationResultInterface);
694
+ toApiJson(): object;
695
+ }
696
+ export declare class ValidatePromptModuleVersionsResponseValidationResult implements i.ValidatePromptModuleVersionsResponseValidationResultInterface {
697
+ id: string;
698
+ namespace: Namespace;
699
+ isValid: boolean;
700
+ errorMessage: string;
701
+ static fromProto(proto: any): ValidatePromptModuleVersionsResponseValidationResult;
702
+ constructor(kwargs?: i.ValidatePromptModuleVersionsResponseValidationResultInterface);
703
+ toApiJson(): object;
704
+ }
705
+ export declare class ValidationResult implements i.ValidationResultInterface {
706
+ failureAction: e.ValidationFailureAction;
707
+ violations: ValidationViolation[];
708
+ static fromProto(proto: any): ValidationResult;
709
+ constructor(kwargs?: i.ValidationResultInterface);
710
+ toApiJson(): object;
711
+ }
712
+ export declare class ValidationViolation implements i.ValidationViolationInterface {
713
+ failureAction: e.ValidationFailureAction;
714
+ confidence: number;
715
+ message: string;
716
+ validatorName: string;
717
+ isInputValidation: boolean;
718
+ static fromProto(proto: any): ValidationViolation;
719
+ constructor(kwargs?: i.ValidationViolationInterface);
720
+ toApiJson(): object;
721
+ }
@@ -65,10 +65,17 @@ export declare class ModelConfig implements i.ModelConfigInterface {
65
65
  openaiRealtimeConfig: OpenAIRealtimeConfig;
66
66
  deepgramConfig: DeepgramConfig;
67
67
  elevenLabsConfig: ElevenLabsConfig;
68
+ openaiConfig: OpenAIConfig;
68
69
  static fromProto(proto: any): ModelConfig;
69
70
  constructor(kwargs?: i.ModelConfigInterface);
70
71
  toApiJson(): object;
71
72
  }
73
+ export declare class OpenAIConfig implements i.OpenAIConfigInterface {
74
+ voice: string;
75
+ static fromProto(proto: any): OpenAIConfig;
76
+ constructor(kwargs?: i.OpenAIConfigInterface);
77
+ toApiJson(): object;
78
+ }
72
79
  export declare class OpenAIRealtimeConfig implements i.OpenAIRealtimeConfigInterface {
73
80
  voice: string;
74
81
  turnDetection: OpenAIRealtimeConfigTurnDetection;
@@ -153,3 +153,47 @@ export declare class UpsertMCPRequest implements i.UpsertMCPRequestInterface {
153
153
  constructor(kwargs?: i.UpsertMCPRequestInterface);
154
154
  toApiJson(): object;
155
155
  }
156
+ export declare class ValidateFunctionsRequest implements i.ValidateFunctionsRequestInterface {
157
+ functions: Function[];
158
+ static fromProto(proto: any): ValidateFunctionsRequest;
159
+ constructor(kwargs?: i.ValidateFunctionsRequestInterface);
160
+ toApiJson(): object;
161
+ }
162
+ export declare class ValidateFunctionsResponse implements i.ValidateFunctionsResponseInterface {
163
+ results: ValidateFunctionsResponseValidationResult[];
164
+ allValid: boolean;
165
+ static fromProto(proto: any): ValidateFunctionsResponse;
166
+ constructor(kwargs?: i.ValidateFunctionsResponseInterface);
167
+ toApiJson(): object;
168
+ }
169
+ export declare class ValidateMCPsRequest implements i.ValidateMCPsRequestInterface {
170
+ mcps: MCP[];
171
+ static fromProto(proto: any): ValidateMCPsRequest;
172
+ constructor(kwargs?: i.ValidateMCPsRequestInterface);
173
+ toApiJson(): object;
174
+ }
175
+ export declare class ValidateMCPsResponse implements i.ValidateMCPsResponseInterface {
176
+ results: ValidateMCPsResponseValidationResult[];
177
+ allValid: boolean;
178
+ static fromProto(proto: any): ValidateMCPsResponse;
179
+ constructor(kwargs?: i.ValidateMCPsResponseInterface);
180
+ toApiJson(): object;
181
+ }
182
+ export declare class ValidateFunctionsResponseValidationResult implements i.ValidateFunctionsResponseValidationResultInterface {
183
+ functionId: string;
184
+ namespace: Namespace;
185
+ isValid: boolean;
186
+ errorMessage: string;
187
+ static fromProto(proto: any): ValidateFunctionsResponseValidationResult;
188
+ constructor(kwargs?: i.ValidateFunctionsResponseValidationResultInterface);
189
+ toApiJson(): object;
190
+ }
191
+ export declare class ValidateMCPsResponseValidationResult implements i.ValidateMCPsResponseValidationResultInterface {
192
+ mcpId: string;
193
+ namespace: Namespace;
194
+ isValid: boolean;
195
+ errorMessage: string;
196
+ static fromProto(proto: any): ValidateMCPsResponseValidationResult;
197
+ constructor(kwargs?: i.ValidateMCPsResponseValidationResultInterface);
198
+ toApiJson(): object;
199
+ }
@@ -30,3 +30,25 @@ export declare class GoalKey implements i.GoalKeyInterface {
30
30
  constructor(kwargs?: i.GoalKeyInterface);
31
31
  toApiJson(): object;
32
32
  }
33
+ export declare class ValidateGoalsRequest implements i.ValidateGoalsRequestInterface {
34
+ goals: Goal[];
35
+ static fromProto(proto: any): ValidateGoalsRequest;
36
+ constructor(kwargs?: i.ValidateGoalsRequestInterface);
37
+ toApiJson(): object;
38
+ }
39
+ export declare class ValidateGoalsResponse implements i.ValidateGoalsResponseInterface {
40
+ results: ValidateGoalsResponseValidationResult[];
41
+ allValid: boolean;
42
+ static fromProto(proto: any): ValidateGoalsResponse;
43
+ constructor(kwargs?: i.ValidateGoalsResponseInterface);
44
+ toApiJson(): object;
45
+ }
46
+ export declare class ValidateGoalsResponseValidationResult implements i.ValidateGoalsResponseValidationResultInterface {
47
+ goalId: string;
48
+ namespace: Namespace;
49
+ isValid: boolean;
50
+ errorMessage: string;
51
+ static fromProto(proto: any): ValidateGoalsResponseValidationResult;
52
+ constructor(kwargs?: i.ValidateGoalsResponseValidationResultInterface);
53
+ toApiJson(): object;
54
+ }
@@ -1,15 +1,15 @@
1
1
  export { NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, Namespace, NamespacePartnerNamespace, NamespaceSystemNamespace, } from './namespace';
2
2
  export { Constraint, ConstraintFilter, Scope, } from './constraints';
3
3
  export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
4
- export { FunctionAuthStrategyConnectedIntegrationAuthStrategy, CreateMCPFromIntegrationRequest, DeleteMCPRequest, ListMCPsRequestFilters, Function, FunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionAuthStrategyImpersonationAuthStrategy, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsResponse, MCP, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, UpsertMCPRequest, } from './function';
5
- export { Prompt, PromptModule, PromptModuleKey, PromptModuleVersion, PromptVersion, } from './prompt';
6
- export { Goal, GoalKey, } from './goal';
4
+ export { FunctionAuthStrategyConnectedIntegrationAuthStrategy, CreateMCPFromIntegrationRequest, DeleteMCPRequest, ListMCPsRequestFilters, Function, FunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionAuthStrategyImpersonationAuthStrategy, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsResponse, MCP, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, UpsertMCPRequest, ValidateFunctionsRequest, ValidateFunctionsResponse, ValidateMCPsRequest, ValidateMCPsResponse, ValidateFunctionsResponseValidationResult, ValidateMCPsResponseValidationResult, } from './function';
5
+ export { PromptModule, PromptModuleKey, PromptModuleVersion, } from './prompt';
6
+ export { Goal, GoalKey, ValidateGoalsRequest, ValidateGoalsResponse, ValidateGoalsResponseValidationResult, } from './goal';
7
7
  export { KeyValuePair, } from './common';
8
8
  export { Model, } from './model';
9
- export { Assistant, AssistantKey, Config, ConfigurableGoal, DeepgramConfig, ElevenLabsConfig, ConfigInboxConfig, ModelConfig, OpenAIRealtimeConfig, TemplateVariable, OpenAIRealtimeConfigTurnDetection, ConfigVoiceConfig, } from './assistant';
9
+ export { Assistant, AssistantKey, Config, ConfigurableGoal, DeepgramConfig, ElevenLabsConfig, ConfigInboxConfig, ModelConfig, OpenAIConfig, OpenAIRealtimeConfig, TemplateVariable, OpenAIRealtimeConfigTurnDetection, ConfigVoiceConfig, } from './assistant';
10
10
  export { Connection, ConnectionKey, } from './connection';
11
11
  export { ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatContent, ChatMessage, ChatUserInfo, ContextInfo, ImageContent, } from './answer';
12
12
  export { CancelTestRunRequest, TestResultCitation, DeleteTestCasesRequest, GetTestRunRequest, GetTestRunResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, RunTestsRequest, RunTestsResponse, SortOptions, TestCase, TestResult, TestRun, UpsertTestCasesRequest, } from './integration-tests';
13
13
  export { Access, MCPOptions, } from './annotations';
14
14
  export { FieldMask, } from './field-mask';
15
- export { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, SetAssistantConnectionsRequestConnectionState, StreamingGenerateChatAnswerResponseContentChunk, CreateAssistantRequest, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeployPromptModuleRequest, StreamingGenerateChatAnswerResponseErrorChunk, ExecuteFunctionRequest, ExecuteFunctionResponse, ListGoalsRequestFilters, ListPromptModuleRequestFilters, ListAssistantRequestFilters, ListConnectionsRequestFilters, ListFunctionRequestFilters, ListAvailableModelsRequestFilters, ListAllAssistantsAssociatedToConnectionRequestFilters, StreamingGenerateChatAnswerResponseFinalChunk, StreamingGenerateChatAnswerResponseFunctionCompleteChunk, StreamingGenerateChatAnswerResponseFunctionProgressChunk, StreamingGenerateChatAnswerResponseFunctionStartChunk, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsResponse, ListFunctionRequest, ListFunctionResponse, ListGoalsRequest, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListTemplateVariablesRequest, ListTemplateVariablesResponse, StreamingGenerateChatAnswerResponseMetadataChunk, GetAssistantRequestOptions, GetMultiAssistantRequestOptions, UpsertAssistantRequestOptions, CreateAssistantRequestOptions, ExecuteFunctionRequestOptions, GenerateChatAnswerRequestOptions, CreatePromptModuleVersionRequestOptions, ResumeStreamingGenerateChatAnswerRequest, SetAssistantConnectionsRequest, ListGoalsRequestSortOptions, StreamingGenerateChatAnswerResponseStartChunk, StreamingGenerateChatAnswerRequest, StreamingGenerateChatAnswerResponse, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, ValidatePromptModuleRequest, ValidatePromptModuleResponse, } from './api';
15
+ export { BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, SetAssistantConnectionsRequestConnectionState, CreateAssistantRequest, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeployPromptModuleRequest, ExecuteFunctionRequest, ExecuteFunctionResponse, ListFunctionRequestFilters, ListGoalsRequestFilters, ListAssistantRequestFilters, ListAllAssistantsAssociatedToConnectionRequestFilters, ListPromptModuleRequestFilters, ListConnectionsRequestFilters, ListAvailableModelsRequestFilters, GenerateChatAnswerRequest, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsResponse, ListFunctionRequest, ListFunctionResponse, ListGoalsRequest, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListTemplateVariablesRequest, ListTemplateVariablesResponse, UpsertAssistantRequestOptions, GetMultiAssistantRequestOptions, CreatePromptModuleVersionRequestOptions, CreateAssistantRequestOptions, GetAssistantRequestOptions, GenerateChatAnswerRequestOptions, ExecuteFunctionRequestOptions, SetAssistantConnectionsRequest, ListGoalsRequestSortOptions, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, ValidatePromptModuleRequest, ValidatePromptModuleResponse, ValidatePromptModuleVersionsRequest, ValidatePromptModuleVersionsResponse, ValidatePromptModulesRequest, ValidatePromptModulesResponse, ValidatePromptModulesResponseValidationResult, ValidatePromptModuleVersionsResponseValidationResult, ValidationResult, ValidationViolation, } from './api';
@@ -1,17 +1,6 @@
1
1
  import * as i from '../interfaces';
2
2
  import { Namespace } from './namespace';
3
3
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
4
- export declare class Prompt implements i.PromptInterface {
5
- id: string;
6
- deployedVersion: string;
7
- deployedBy: string;
8
- updated: Date;
9
- description: string;
10
- deployed: Date;
11
- static fromProto(proto: any): Prompt;
12
- constructor(kwargs?: i.PromptInterface);
13
- toApiJson(): object;
14
- }
15
4
  export declare class PromptModule implements i.PromptModuleInterface {
16
5
  id: string;
17
6
  namespace: Namespace;
@@ -44,13 +33,3 @@ export declare class PromptModuleVersion implements i.PromptModuleVersionInterfa
44
33
  constructor(kwargs?: i.PromptModuleVersionInterface);
45
34
  toApiJson(): object;
46
35
  }
47
- export declare class PromptVersion implements i.PromptVersionInterface {
48
- id: string;
49
- version: string;
50
- content: string;
51
- createdBy: string;
52
- created: Date;
53
- static fromProto(proto: any): PromptVersion;
54
- constructor(kwargs?: i.PromptVersionInterface);
55
- toApiJson(): object;
56
- }
@@ -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, ValidatePromptModuleRequest, ValidatePromptModuleResponse } from './objects/';
2
- import { CreatePromptModuleRequestInterface, CreatePromptModuleVersionRequestInterface, DeletePromptModuleRequestInterface, DeployPromptModuleRequestInterface, GetDeployedPromptModuleVersionRequestInterface, GetHydratedDeployedPromptModuleVersionRequestInterface, GetMultiHydratedDeployedPromptModuleVersionRequestInterface, GetPromptModuleRequestInterface, GetPromptModuleVersionRequestInterface, ListPromptModuleRequestInterface, ListPromptModuleVersionsRequestInterface, UpdatePromptModuleRequestInterface, ValidatePromptModuleRequestInterface } 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, ValidatePromptModuleVersionsRequest, ValidatePromptModuleVersionsResponse, ValidatePromptModulesRequest, ValidatePromptModulesResponse } from './objects/';
2
+ import { CreatePromptModuleRequestInterface, CreatePromptModuleVersionRequestInterface, DeletePromptModuleRequestInterface, DeployPromptModuleRequestInterface, GetDeployedPromptModuleVersionRequestInterface, GetHydratedDeployedPromptModuleVersionRequestInterface, GetMultiHydratedDeployedPromptModuleVersionRequestInterface, GetPromptModuleRequestInterface, GetPromptModuleVersionRequestInterface, ListPromptModuleRequestInterface, ListPromptModuleVersionsRequestInterface, UpdatePromptModuleRequestInterface, ValidatePromptModuleRequestInterface, ValidatePromptModuleVersionsRequestInterface, ValidatePromptModulesRequestInterface } from './interfaces/';
3
3
  import { HttpResponse } from '@angular/common/http';
4
4
  import { Observable } from 'rxjs';
5
5
  import * as i0 from "@angular/core";
@@ -21,6 +21,8 @@ export declare class PromptModuleApiService {
21
21
  listVersions(r: ListPromptModuleVersionsRequest | ListPromptModuleVersionsRequestInterface): Observable<ListPromptModuleVersionsResponse>;
22
22
  delete(r: DeletePromptModuleRequest | DeletePromptModuleRequestInterface): Observable<HttpResponse<null>>;
23
23
  validate(r: ValidatePromptModuleRequest | ValidatePromptModuleRequestInterface): Observable<ValidatePromptModuleResponse>;
24
+ validatePromptModules(r: ValidatePromptModulesRequest | ValidatePromptModulesRequestInterface): Observable<ValidatePromptModulesResponse>;
25
+ validatePromptModuleVersions(r: ValidatePromptModuleVersionsRequest | ValidatePromptModuleVersionsRequestInterface): Observable<ValidatePromptModuleVersionsResponse>;
24
26
  static ɵfac: i0.ɵɵFactoryDeclaration<PromptModuleApiService, never>;
25
27
  static ɵprov: i0.ɵɵInjectableDeclaration<PromptModuleApiService>;
26
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/ai-assistants",
3
- "version": "0.59.0",
3
+ "version": "0.61.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"