@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.
- package/esm2020/lib/_internal/function.api.service.mjs +6 -2
- package/esm2020/lib/_internal/interfaces/answer.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/function.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/answer.mjs +59 -1
- package/esm2020/lib/_internal/objects/api.mjs +113 -67
- package/esm2020/lib/_internal/objects/function.mjs +48 -1
- package/esm2020/lib/_internal/objects/index.mjs +4 -4
- package/esm2020/lib/_internal/prompt-module.api.service.mjs +7 -2
- package/fesm2015/vendasta-ai-assistants.mjs +227 -67
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +227 -67
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/function.api.service.d.ts +3 -2
- package/lib/_internal/interfaces/answer.interface.d.ts +10 -0
- package/lib/_internal/interfaces/api.interface.d.ts +25 -17
- package/lib/_internal/interfaces/function.interface.d.ts +8 -0
- package/lib/_internal/interfaces/index.d.ts +3 -3
- package/lib/_internal/objects/answer.d.ts +16 -0
- package/lib/_internal/objects/api.d.ts +49 -35
- package/lib/_internal/objects/function.d.ts +11 -0
- package/lib/_internal/objects/index.d.ts +3 -3
- package/lib/_internal/prompt-module.api.service.d.ts +3 -2
- package/package.json +1 -1
|
@@ -360,6 +360,32 @@ function enumStringToValue$b(enumRef, value) {
|
|
|
360
360
|
}
|
|
361
361
|
return enumRef[value];
|
|
362
362
|
}
|
|
363
|
+
class DeleteMCPRequest {
|
|
364
|
+
static fromProto(proto) {
|
|
365
|
+
let m = new DeleteMCPRequest();
|
|
366
|
+
m = Object.assign(m, proto);
|
|
367
|
+
if (proto.namespace) {
|
|
368
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
369
|
+
}
|
|
370
|
+
return m;
|
|
371
|
+
}
|
|
372
|
+
constructor(kwargs) {
|
|
373
|
+
if (!kwargs) {
|
|
374
|
+
return;
|
|
375
|
+
}
|
|
376
|
+
Object.assign(this, kwargs);
|
|
377
|
+
}
|
|
378
|
+
toApiJson() {
|
|
379
|
+
const toReturn = {};
|
|
380
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
381
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
382
|
+
}
|
|
383
|
+
if (typeof this.mcpId !== 'undefined') {
|
|
384
|
+
toReturn['mcpId'] = this.mcpId;
|
|
385
|
+
}
|
|
386
|
+
return toReturn;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
363
389
|
class ListMCPsRequestFilters {
|
|
364
390
|
static fromProto(proto) {
|
|
365
391
|
let m = new ListMCPsRequestFilters();
|
|
@@ -576,6 +602,9 @@ class FunctionParameter {
|
|
|
576
602
|
if (typeof this.location !== 'undefined') {
|
|
577
603
|
toReturn['location'] = this.location;
|
|
578
604
|
}
|
|
605
|
+
if (typeof this.required !== 'undefined') {
|
|
606
|
+
toReturn['required'] = this.required;
|
|
607
|
+
}
|
|
579
608
|
return toReturn;
|
|
580
609
|
}
|
|
581
610
|
}
|
|
@@ -705,6 +734,12 @@ class MCP {
|
|
|
705
734
|
static fromProto(proto) {
|
|
706
735
|
let m = new MCP();
|
|
707
736
|
m = Object.assign(m, proto);
|
|
737
|
+
if (proto.namespace) {
|
|
738
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
739
|
+
}
|
|
740
|
+
if (proto.authStrategy) {
|
|
741
|
+
m.authStrategy = FunctionAuthStrategy.fromProto(proto.authStrategy);
|
|
742
|
+
}
|
|
708
743
|
return m;
|
|
709
744
|
}
|
|
710
745
|
constructor(kwargs) {
|
|
@@ -721,6 +756,12 @@ class MCP {
|
|
|
721
756
|
if (typeof this.url !== 'undefined') {
|
|
722
757
|
toReturn['url'] = this.url;
|
|
723
758
|
}
|
|
759
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
760
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
761
|
+
}
|
|
762
|
+
if (typeof this.authStrategy !== 'undefined' && this.authStrategy !== null) {
|
|
763
|
+
toReturn['authStrategy'] = 'toApiJson' in this.authStrategy ? this.authStrategy.toApiJson() : this.authStrategy;
|
|
764
|
+
}
|
|
724
765
|
return toReturn;
|
|
725
766
|
}
|
|
726
767
|
}
|
|
@@ -771,6 +812,9 @@ class UpsertMCPRequest {
|
|
|
771
812
|
if (proto.functions) {
|
|
772
813
|
m.functions = proto.functions.map(Function.fromProto);
|
|
773
814
|
}
|
|
815
|
+
if (proto.authStrategy) {
|
|
816
|
+
m.authStrategy = FunctionAuthStrategy.fromProto(proto.authStrategy);
|
|
817
|
+
}
|
|
774
818
|
return m;
|
|
775
819
|
}
|
|
776
820
|
constructor(kwargs) {
|
|
@@ -793,6 +837,9 @@ class UpsertMCPRequest {
|
|
|
793
837
|
if (typeof this.functions !== 'undefined' && this.functions !== null) {
|
|
794
838
|
toReturn['functions'] = 'toApiJson' in this.functions ? this.functions.toApiJson() : this.functions;
|
|
795
839
|
}
|
|
840
|
+
if (typeof this.authStrategy !== 'undefined' && this.authStrategy !== null) {
|
|
841
|
+
toReturn['authStrategy'] = 'toApiJson' in this.authStrategy ? this.authStrategy.toApiJson() : this.authStrategy;
|
|
842
|
+
}
|
|
796
843
|
return toReturn;
|
|
797
844
|
}
|
|
798
845
|
}
|
|
@@ -1670,6 +1717,32 @@ class ChatAnswerFunctionExecutionJobResult {
|
|
|
1670
1717
|
return toReturn;
|
|
1671
1718
|
}
|
|
1672
1719
|
}
|
|
1720
|
+
class ChatContent {
|
|
1721
|
+
static fromProto(proto) {
|
|
1722
|
+
let m = new ChatContent();
|
|
1723
|
+
m = Object.assign(m, proto);
|
|
1724
|
+
if (proto.image) {
|
|
1725
|
+
m.image = ImageContent.fromProto(proto.image);
|
|
1726
|
+
}
|
|
1727
|
+
return m;
|
|
1728
|
+
}
|
|
1729
|
+
constructor(kwargs) {
|
|
1730
|
+
if (!kwargs) {
|
|
1731
|
+
return;
|
|
1732
|
+
}
|
|
1733
|
+
Object.assign(this, kwargs);
|
|
1734
|
+
}
|
|
1735
|
+
toApiJson() {
|
|
1736
|
+
const toReturn = {};
|
|
1737
|
+
if (typeof this.text !== 'undefined') {
|
|
1738
|
+
toReturn['text'] = this.text;
|
|
1739
|
+
}
|
|
1740
|
+
if (typeof this.image !== 'undefined' && this.image !== null) {
|
|
1741
|
+
toReturn['image'] = 'toApiJson' in this.image ? this.image.toApiJson() : this.image;
|
|
1742
|
+
}
|
|
1743
|
+
return toReturn;
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1673
1746
|
class ChatMessage {
|
|
1674
1747
|
static fromProto(proto) {
|
|
1675
1748
|
let m = new ChatMessage();
|
|
@@ -1677,6 +1750,9 @@ class ChatMessage {
|
|
|
1677
1750
|
if (proto.role) {
|
|
1678
1751
|
m.role = enumStringToValue$4(ChatMessageRole, proto.role);
|
|
1679
1752
|
}
|
|
1753
|
+
if (proto.contentParts) {
|
|
1754
|
+
m.contentParts = proto.contentParts.map(ChatContent.fromProto);
|
|
1755
|
+
}
|
|
1680
1756
|
return m;
|
|
1681
1757
|
}
|
|
1682
1758
|
constructor(kwargs) {
|
|
@@ -1693,6 +1769,9 @@ class ChatMessage {
|
|
|
1693
1769
|
if (typeof this.content !== 'undefined') {
|
|
1694
1770
|
toReturn['content'] = this.content;
|
|
1695
1771
|
}
|
|
1772
|
+
if (typeof this.contentParts !== 'undefined' && this.contentParts !== null) {
|
|
1773
|
+
toReturn['contentParts'] = 'toApiJson' in this.contentParts ? this.contentParts.toApiJson() : this.contentParts;
|
|
1774
|
+
}
|
|
1696
1775
|
return toReturn;
|
|
1697
1776
|
}
|
|
1698
1777
|
}
|
|
@@ -1766,6 +1845,32 @@ class ContextInfo {
|
|
|
1766
1845
|
return toReturn;
|
|
1767
1846
|
}
|
|
1768
1847
|
}
|
|
1848
|
+
class ImageContent {
|
|
1849
|
+
static fromProto(proto) {
|
|
1850
|
+
let m = new ImageContent();
|
|
1851
|
+
m = Object.assign(m, proto);
|
|
1852
|
+
return m;
|
|
1853
|
+
}
|
|
1854
|
+
constructor(kwargs) {
|
|
1855
|
+
if (!kwargs) {
|
|
1856
|
+
return;
|
|
1857
|
+
}
|
|
1858
|
+
Object.assign(this, kwargs);
|
|
1859
|
+
}
|
|
1860
|
+
toApiJson() {
|
|
1861
|
+
const toReturn = {};
|
|
1862
|
+
if (typeof this.url !== 'undefined') {
|
|
1863
|
+
toReturn['url'] = this.url;
|
|
1864
|
+
}
|
|
1865
|
+
if (typeof this.mediaType !== 'undefined') {
|
|
1866
|
+
toReturn['mediaType'] = this.mediaType;
|
|
1867
|
+
}
|
|
1868
|
+
if (typeof this.altText !== 'undefined') {
|
|
1869
|
+
toReturn['altText'] = this.altText;
|
|
1870
|
+
}
|
|
1871
|
+
return toReturn;
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1769
1874
|
|
|
1770
1875
|
function enumStringToValue$3(enumRef, value) {
|
|
1771
1876
|
if (typeof value === 'number') {
|
|
@@ -2903,19 +3008,13 @@ class ExecuteFunctionResponse {
|
|
|
2903
3008
|
return toReturn;
|
|
2904
3009
|
}
|
|
2905
3010
|
}
|
|
2906
|
-
class
|
|
3011
|
+
class ListFunctionRequestFilters {
|
|
2907
3012
|
static fromProto(proto) {
|
|
2908
|
-
let m = new
|
|
3013
|
+
let m = new ListFunctionRequestFilters();
|
|
2909
3014
|
m = Object.assign(m, proto);
|
|
2910
3015
|
if (proto.namespace) {
|
|
2911
3016
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2912
3017
|
}
|
|
2913
|
-
if (proto.type) {
|
|
2914
|
-
m.type = enumStringToValue(GoalType, proto.type);
|
|
2915
|
-
}
|
|
2916
|
-
if (proto.supportedChannels) {
|
|
2917
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
2918
|
-
}
|
|
2919
3018
|
if (proto.namespaces) {
|
|
2920
3019
|
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
2921
3020
|
}
|
|
@@ -2932,27 +3031,47 @@ class ListGoalsRequestFilters {
|
|
|
2932
3031
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2933
3032
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2934
3033
|
}
|
|
2935
|
-
if (typeof this.type !== 'undefined') {
|
|
2936
|
-
toReturn['type'] = this.type;
|
|
2937
|
-
}
|
|
2938
|
-
if (typeof this.supportedChannels !== 'undefined') {
|
|
2939
|
-
toReturn['supportedChannels'] = this.supportedChannels;
|
|
2940
|
-
}
|
|
2941
3034
|
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
2942
3035
|
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
2943
3036
|
}
|
|
3037
|
+
if (typeof this.mcpId !== 'undefined') {
|
|
3038
|
+
toReturn['mcpId'] = this.mcpId;
|
|
3039
|
+
}
|
|
2944
3040
|
return toReturn;
|
|
2945
3041
|
}
|
|
2946
3042
|
}
|
|
2947
|
-
class
|
|
3043
|
+
class ListPromptModuleRequestFilters {
|
|
2948
3044
|
static fromProto(proto) {
|
|
2949
|
-
let m = new
|
|
3045
|
+
let m = new ListPromptModuleRequestFilters();
|
|
2950
3046
|
m = Object.assign(m, proto);
|
|
2951
3047
|
if (proto.namespace) {
|
|
2952
3048
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2953
3049
|
}
|
|
2954
|
-
|
|
2955
|
-
|
|
3050
|
+
return m;
|
|
3051
|
+
}
|
|
3052
|
+
constructor(kwargs) {
|
|
3053
|
+
if (!kwargs) {
|
|
3054
|
+
return;
|
|
3055
|
+
}
|
|
3056
|
+
Object.assign(this, kwargs);
|
|
3057
|
+
}
|
|
3058
|
+
toApiJson() {
|
|
3059
|
+
const toReturn = {};
|
|
3060
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3061
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3062
|
+
}
|
|
3063
|
+
return toReturn;
|
|
3064
|
+
}
|
|
3065
|
+
}
|
|
3066
|
+
class ListAssistantRequestFilters {
|
|
3067
|
+
static fromProto(proto) {
|
|
3068
|
+
let m = new ListAssistantRequestFilters();
|
|
3069
|
+
m = Object.assign(m, proto);
|
|
3070
|
+
if (proto.namespace) {
|
|
3071
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3072
|
+
}
|
|
3073
|
+
if (proto.type) {
|
|
3074
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
2956
3075
|
}
|
|
2957
3076
|
return m;
|
|
2958
3077
|
}
|
|
@@ -2967,8 +3086,8 @@ class ListFunctionRequestFilters {
|
|
|
2967
3086
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2968
3087
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2969
3088
|
}
|
|
2970
|
-
if (typeof this.
|
|
2971
|
-
toReturn['
|
|
3089
|
+
if (typeof this.type !== 'undefined') {
|
|
3090
|
+
toReturn['type'] = this.type;
|
|
2972
3091
|
}
|
|
2973
3092
|
return toReturn;
|
|
2974
3093
|
}
|
|
@@ -3031,38 +3150,21 @@ class ListAvailableModelsRequestFilters {
|
|
|
3031
3150
|
return toReturn;
|
|
3032
3151
|
}
|
|
3033
3152
|
}
|
|
3034
|
-
class
|
|
3153
|
+
class ListGoalsRequestFilters {
|
|
3035
3154
|
static fromProto(proto) {
|
|
3036
|
-
let m = new
|
|
3155
|
+
let m = new ListGoalsRequestFilters();
|
|
3037
3156
|
m = Object.assign(m, proto);
|
|
3038
3157
|
if (proto.namespace) {
|
|
3039
3158
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3040
3159
|
}
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
constructor(kwargs) {
|
|
3044
|
-
if (!kwargs) {
|
|
3045
|
-
return;
|
|
3046
|
-
}
|
|
3047
|
-
Object.assign(this, kwargs);
|
|
3048
|
-
}
|
|
3049
|
-
toApiJson() {
|
|
3050
|
-
const toReturn = {};
|
|
3051
|
-
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3052
|
-
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3160
|
+
if (proto.type) {
|
|
3161
|
+
m.type = enumStringToValue(GoalType, proto.type);
|
|
3053
3162
|
}
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
}
|
|
3057
|
-
class ListAssistantRequestFilters {
|
|
3058
|
-
static fromProto(proto) {
|
|
3059
|
-
let m = new ListAssistantRequestFilters();
|
|
3060
|
-
m = Object.assign(m, proto);
|
|
3061
|
-
if (proto.namespace) {
|
|
3062
|
-
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3163
|
+
if (proto.supportedChannels) {
|
|
3164
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
3063
3165
|
}
|
|
3064
|
-
if (proto.
|
|
3065
|
-
m.
|
|
3166
|
+
if (proto.namespaces) {
|
|
3167
|
+
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3066
3168
|
}
|
|
3067
3169
|
return m;
|
|
3068
3170
|
}
|
|
@@ -3080,6 +3182,12 @@ class ListAssistantRequestFilters {
|
|
|
3080
3182
|
if (typeof this.type !== 'undefined') {
|
|
3081
3183
|
toReturn['type'] = this.type;
|
|
3082
3184
|
}
|
|
3185
|
+
if (typeof this.supportedChannels !== 'undefined') {
|
|
3186
|
+
toReturn['supportedChannels'] = this.supportedChannels;
|
|
3187
|
+
}
|
|
3188
|
+
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3189
|
+
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3190
|
+
}
|
|
3083
3191
|
return toReturn;
|
|
3084
3192
|
}
|
|
3085
3193
|
}
|
|
@@ -4670,10 +4778,13 @@ class CreatePromptModuleVersionRequestOptions {
|
|
|
4670
4778
|
return toReturn;
|
|
4671
4779
|
}
|
|
4672
4780
|
}
|
|
4673
|
-
class
|
|
4781
|
+
class GenerateChatAnswerRequestOptions {
|
|
4674
4782
|
static fromProto(proto) {
|
|
4675
|
-
let m = new
|
|
4783
|
+
let m = new GenerateChatAnswerRequestOptions();
|
|
4676
4784
|
m = Object.assign(m, proto);
|
|
4785
|
+
if (proto.maxTokens) {
|
|
4786
|
+
m.maxTokens = parseInt(proto.maxTokens, 10);
|
|
4787
|
+
}
|
|
4677
4788
|
return m;
|
|
4678
4789
|
}
|
|
4679
4790
|
constructor(kwargs) {
|
|
@@ -4684,15 +4795,21 @@ class GetAssistantRequestOptions {
|
|
|
4684
4795
|
}
|
|
4685
4796
|
toApiJson() {
|
|
4686
4797
|
const toReturn = {};
|
|
4687
|
-
if (typeof this.
|
|
4688
|
-
toReturn['
|
|
4798
|
+
if (typeof this.includeAllCitations !== 'undefined') {
|
|
4799
|
+
toReturn['includeAllCitations'] = this.includeAllCitations;
|
|
4800
|
+
}
|
|
4801
|
+
if (typeof this.enableAsyncFunctions !== 'undefined') {
|
|
4802
|
+
toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
|
|
4803
|
+
}
|
|
4804
|
+
if (typeof this.maxTokens !== 'undefined') {
|
|
4805
|
+
toReturn['maxTokens'] = this.maxTokens;
|
|
4689
4806
|
}
|
|
4690
4807
|
return toReturn;
|
|
4691
4808
|
}
|
|
4692
4809
|
}
|
|
4693
|
-
class
|
|
4810
|
+
class UpsertAssistantRequestOptions {
|
|
4694
4811
|
static fromProto(proto) {
|
|
4695
|
-
let m = new
|
|
4812
|
+
let m = new UpsertAssistantRequestOptions();
|
|
4696
4813
|
m = Object.assign(m, proto);
|
|
4697
4814
|
return m;
|
|
4698
4815
|
}
|
|
@@ -4710,9 +4827,9 @@ class CreateAssistantRequestOptions {
|
|
|
4710
4827
|
return toReturn;
|
|
4711
4828
|
}
|
|
4712
4829
|
}
|
|
4713
|
-
class
|
|
4830
|
+
class CreateAssistantRequestOptions {
|
|
4714
4831
|
static fromProto(proto) {
|
|
4715
|
-
let m = new
|
|
4832
|
+
let m = new CreateAssistantRequestOptions();
|
|
4716
4833
|
m = Object.assign(m, proto);
|
|
4717
4834
|
return m;
|
|
4718
4835
|
}
|
|
@@ -4750,13 +4867,10 @@ class GetMultiAssistantRequestOptions {
|
|
|
4750
4867
|
return toReturn;
|
|
4751
4868
|
}
|
|
4752
4869
|
}
|
|
4753
|
-
class
|
|
4870
|
+
class GetAssistantRequestOptions {
|
|
4754
4871
|
static fromProto(proto) {
|
|
4755
|
-
let m = new
|
|
4872
|
+
let m = new GetAssistantRequestOptions();
|
|
4756
4873
|
m = Object.assign(m, proto);
|
|
4757
|
-
if (proto.maxTokens) {
|
|
4758
|
-
m.maxTokens = parseInt(proto.maxTokens, 10);
|
|
4759
|
-
}
|
|
4760
4874
|
return m;
|
|
4761
4875
|
}
|
|
4762
4876
|
constructor(kwargs) {
|
|
@@ -4767,14 +4881,8 @@ class GenerateChatAnswerRequestOptions {
|
|
|
4767
4881
|
}
|
|
4768
4882
|
toApiJson() {
|
|
4769
4883
|
const toReturn = {};
|
|
4770
|
-
if (typeof this.
|
|
4771
|
-
toReturn['
|
|
4772
|
-
}
|
|
4773
|
-
if (typeof this.enableAsyncFunctions !== 'undefined') {
|
|
4774
|
-
toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
|
|
4775
|
-
}
|
|
4776
|
-
if (typeof this.maxTokens !== 'undefined') {
|
|
4777
|
-
toReturn['maxTokens'] = this.maxTokens;
|
|
4884
|
+
if (typeof this.skipGoalsHydration !== 'undefined') {
|
|
4885
|
+
toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
|
|
4778
4886
|
}
|
|
4779
4887
|
return toReturn;
|
|
4780
4888
|
}
|
|
@@ -5039,6 +5147,49 @@ class UpsertGoalRequest {
|
|
|
5039
5147
|
return toReturn;
|
|
5040
5148
|
}
|
|
5041
5149
|
}
|
|
5150
|
+
class ValidatePromptModuleRequest {
|
|
5151
|
+
static fromProto(proto) {
|
|
5152
|
+
let m = new ValidatePromptModuleRequest();
|
|
5153
|
+
m = Object.assign(m, proto);
|
|
5154
|
+
return m;
|
|
5155
|
+
}
|
|
5156
|
+
constructor(kwargs) {
|
|
5157
|
+
if (!kwargs) {
|
|
5158
|
+
return;
|
|
5159
|
+
}
|
|
5160
|
+
Object.assign(this, kwargs);
|
|
5161
|
+
}
|
|
5162
|
+
toApiJson() {
|
|
5163
|
+
const toReturn = {};
|
|
5164
|
+
if (typeof this.content !== 'undefined') {
|
|
5165
|
+
toReturn['content'] = this.content;
|
|
5166
|
+
}
|
|
5167
|
+
return toReturn;
|
|
5168
|
+
}
|
|
5169
|
+
}
|
|
5170
|
+
class ValidatePromptModuleResponse {
|
|
5171
|
+
static fromProto(proto) {
|
|
5172
|
+
let m = new ValidatePromptModuleResponse();
|
|
5173
|
+
m = Object.assign(m, proto);
|
|
5174
|
+
return m;
|
|
5175
|
+
}
|
|
5176
|
+
constructor(kwargs) {
|
|
5177
|
+
if (!kwargs) {
|
|
5178
|
+
return;
|
|
5179
|
+
}
|
|
5180
|
+
Object.assign(this, kwargs);
|
|
5181
|
+
}
|
|
5182
|
+
toApiJson() {
|
|
5183
|
+
const toReturn = {};
|
|
5184
|
+
if (typeof this.isValid !== 'undefined') {
|
|
5185
|
+
toReturn['isValid'] = this.isValid;
|
|
5186
|
+
}
|
|
5187
|
+
if (typeof this.errorMessage !== 'undefined') {
|
|
5188
|
+
toReturn['errorMessage'] = this.errorMessage;
|
|
5189
|
+
}
|
|
5190
|
+
return toReturn;
|
|
5191
|
+
}
|
|
5192
|
+
}
|
|
5042
5193
|
|
|
5043
5194
|
// *********************************
|
|
5044
5195
|
// Code generated by sdkgen
|
|
@@ -5245,6 +5396,10 @@ class FunctionApiService {
|
|
|
5245
5396
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/ListMCPs", request.toApiJson(), this.apiOptions())
|
|
5246
5397
|
.pipe(map(resp => ListMCPsResponse.fromProto(resp)));
|
|
5247
5398
|
}
|
|
5399
|
+
deleteMcp(r) {
|
|
5400
|
+
const request = (r.toApiJson) ? r : new DeleteMCPRequest(r);
|
|
5401
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/DeleteMCP", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
5402
|
+
}
|
|
5248
5403
|
}
|
|
5249
5404
|
FunctionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FunctionApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5250
5405
|
FunctionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FunctionApiService, providedIn: 'root' });
|
|
@@ -5454,6 +5609,11 @@ class PromptModuleApiService {
|
|
|
5454
5609
|
const request = (r.toApiJson) ? r : new DeletePromptModuleRequest(r);
|
|
5455
5610
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/Delete", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
5456
5611
|
}
|
|
5612
|
+
validate(r) {
|
|
5613
|
+
const request = (r.toApiJson) ? r : new ValidatePromptModuleRequest(r);
|
|
5614
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/Validate", request.toApiJson(), this.apiOptions())
|
|
5615
|
+
.pipe(map(resp => ValidatePromptModuleResponse.fromProto(resp)));
|
|
5616
|
+
}
|
|
5457
5617
|
}
|
|
5458
5618
|
PromptModuleApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptModuleApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5459
5619
|
PromptModuleApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptModuleApiService, providedIn: 'root' });
|
|
@@ -5547,5 +5707,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5547
5707
|
* Generated bundle index. Do not edit.
|
|
5548
5708
|
*/
|
|
5549
5709
|
|
|
5550
|
-
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, DeployPromptRequest, ElevenLabsConfig, ExecuteFunctionRequest, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantRequestOptions, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantRequestOptions, GetMultiAssistantResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, GetTestRunRequest, GetTestRunResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, IntegrationTestApiService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsRequestFilters, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsRequestFilters, ListMCPsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, MCP, MCPOptions, Model, ModelConfig, ModelType, ModelVendor, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, RunTestsRequest, RunTestsResponse, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SortDirection, SortOptions, TestCase, TestResult, TestResultCitation, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertMCPRequest, UpsertTestCasesRequest, VendorModel };
|
|
5710
|
+
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatContent, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeleteMCPRequest, DeletePromptModuleRequest, DeletePromptRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, DeployPromptRequest, ElevenLabsConfig, ExecuteFunctionRequest, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantRequestOptions, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantRequestOptions, GetMultiAssistantResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, GetTestRunRequest, GetTestRunResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, ImageContent, IntegrationTestApiService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsRequestFilters, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsRequestFilters, ListMCPsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, MCP, MCPOptions, Model, ModelConfig, ModelType, ModelVendor, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, RunTestsRequest, RunTestsResponse, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SortDirection, SortOptions, TestCase, TestResult, TestResultCitation, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertMCPRequest, UpsertTestCasesRequest, ValidatePromptModuleRequest, ValidatePromptModuleResponse, VendorModel };
|
|
5551
5711
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|