@vendasta/ai-assistants 0.46.0 → 0.47.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +81 -78
- package/esm2020/lib/_internal/objects/function.mjs +48 -1
- package/esm2020/lib/_internal/objects/index.mjs +4 -4
- package/fesm2015/vendasta-ai-assistants.mjs +190 -78
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +190 -78
- 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 +21 -20
- 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 +38 -37
- package/lib/_internal/objects/function.d.ts +11 -0
- package/lib/_internal/objects/index.d.ts +3 -3
- package/package.json +1 -1
|
@@ -359,6 +359,32 @@ function enumStringToValue$b(enumRef, value) {
|
|
|
359
359
|
}
|
|
360
360
|
return enumRef[value];
|
|
361
361
|
}
|
|
362
|
+
class DeleteMCPRequest {
|
|
363
|
+
static fromProto(proto) {
|
|
364
|
+
let m = new DeleteMCPRequest();
|
|
365
|
+
m = Object.assign(m, proto);
|
|
366
|
+
if (proto.namespace) {
|
|
367
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
368
|
+
}
|
|
369
|
+
return m;
|
|
370
|
+
}
|
|
371
|
+
constructor(kwargs) {
|
|
372
|
+
if (!kwargs) {
|
|
373
|
+
return;
|
|
374
|
+
}
|
|
375
|
+
Object.assign(this, kwargs);
|
|
376
|
+
}
|
|
377
|
+
toApiJson() {
|
|
378
|
+
const toReturn = {};
|
|
379
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
380
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
381
|
+
}
|
|
382
|
+
if (typeof this.mcpId !== 'undefined') {
|
|
383
|
+
toReturn['mcpId'] = this.mcpId;
|
|
384
|
+
}
|
|
385
|
+
return toReturn;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
362
388
|
class ListMCPsRequestFilters {
|
|
363
389
|
static fromProto(proto) {
|
|
364
390
|
let m = new ListMCPsRequestFilters();
|
|
@@ -575,6 +601,9 @@ class FunctionParameter {
|
|
|
575
601
|
if (typeof this.location !== 'undefined') {
|
|
576
602
|
toReturn['location'] = this.location;
|
|
577
603
|
}
|
|
604
|
+
if (typeof this.required !== 'undefined') {
|
|
605
|
+
toReturn['required'] = this.required;
|
|
606
|
+
}
|
|
578
607
|
return toReturn;
|
|
579
608
|
}
|
|
580
609
|
}
|
|
@@ -704,6 +733,12 @@ class MCP {
|
|
|
704
733
|
static fromProto(proto) {
|
|
705
734
|
let m = new MCP();
|
|
706
735
|
m = Object.assign(m, proto);
|
|
736
|
+
if (proto.namespace) {
|
|
737
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
738
|
+
}
|
|
739
|
+
if (proto.authStrategy) {
|
|
740
|
+
m.authStrategy = FunctionAuthStrategy.fromProto(proto.authStrategy);
|
|
741
|
+
}
|
|
707
742
|
return m;
|
|
708
743
|
}
|
|
709
744
|
constructor(kwargs) {
|
|
@@ -720,6 +755,12 @@ class MCP {
|
|
|
720
755
|
if (typeof this.url !== 'undefined') {
|
|
721
756
|
toReturn['url'] = this.url;
|
|
722
757
|
}
|
|
758
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
759
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
760
|
+
}
|
|
761
|
+
if (typeof this.authStrategy !== 'undefined' && this.authStrategy !== null) {
|
|
762
|
+
toReturn['authStrategy'] = 'toApiJson' in this.authStrategy ? this.authStrategy.toApiJson() : this.authStrategy;
|
|
763
|
+
}
|
|
723
764
|
return toReturn;
|
|
724
765
|
}
|
|
725
766
|
}
|
|
@@ -770,6 +811,9 @@ class UpsertMCPRequest {
|
|
|
770
811
|
if (proto.functions) {
|
|
771
812
|
m.functions = proto.functions.map(Function.fromProto);
|
|
772
813
|
}
|
|
814
|
+
if (proto.authStrategy) {
|
|
815
|
+
m.authStrategy = FunctionAuthStrategy.fromProto(proto.authStrategy);
|
|
816
|
+
}
|
|
773
817
|
return m;
|
|
774
818
|
}
|
|
775
819
|
constructor(kwargs) {
|
|
@@ -792,6 +836,9 @@ class UpsertMCPRequest {
|
|
|
792
836
|
if (typeof this.functions !== 'undefined' && this.functions !== null) {
|
|
793
837
|
toReturn['functions'] = 'toApiJson' in this.functions ? this.functions.toApiJson() : this.functions;
|
|
794
838
|
}
|
|
839
|
+
if (typeof this.authStrategy !== 'undefined' && this.authStrategy !== null) {
|
|
840
|
+
toReturn['authStrategy'] = 'toApiJson' in this.authStrategy ? this.authStrategy.toApiJson() : this.authStrategy;
|
|
841
|
+
}
|
|
795
842
|
return toReturn;
|
|
796
843
|
}
|
|
797
844
|
}
|
|
@@ -1669,6 +1716,32 @@ class ChatAnswerFunctionExecutionJobResult {
|
|
|
1669
1716
|
return toReturn;
|
|
1670
1717
|
}
|
|
1671
1718
|
}
|
|
1719
|
+
class ChatContent {
|
|
1720
|
+
static fromProto(proto) {
|
|
1721
|
+
let m = new ChatContent();
|
|
1722
|
+
m = Object.assign(m, proto);
|
|
1723
|
+
if (proto.image) {
|
|
1724
|
+
m.image = ImageContent.fromProto(proto.image);
|
|
1725
|
+
}
|
|
1726
|
+
return m;
|
|
1727
|
+
}
|
|
1728
|
+
constructor(kwargs) {
|
|
1729
|
+
if (!kwargs) {
|
|
1730
|
+
return;
|
|
1731
|
+
}
|
|
1732
|
+
Object.assign(this, kwargs);
|
|
1733
|
+
}
|
|
1734
|
+
toApiJson() {
|
|
1735
|
+
const toReturn = {};
|
|
1736
|
+
if (typeof this.text !== 'undefined') {
|
|
1737
|
+
toReturn['text'] = this.text;
|
|
1738
|
+
}
|
|
1739
|
+
if (typeof this.image !== 'undefined' && this.image !== null) {
|
|
1740
|
+
toReturn['image'] = 'toApiJson' in this.image ? this.image.toApiJson() : this.image;
|
|
1741
|
+
}
|
|
1742
|
+
return toReturn;
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1672
1745
|
class ChatMessage {
|
|
1673
1746
|
static fromProto(proto) {
|
|
1674
1747
|
let m = new ChatMessage();
|
|
@@ -1676,6 +1749,9 @@ class ChatMessage {
|
|
|
1676
1749
|
if (proto.role) {
|
|
1677
1750
|
m.role = enumStringToValue$4(ChatMessageRole, proto.role);
|
|
1678
1751
|
}
|
|
1752
|
+
if (proto.contentParts) {
|
|
1753
|
+
m.contentParts = proto.contentParts.map(ChatContent.fromProto);
|
|
1754
|
+
}
|
|
1679
1755
|
return m;
|
|
1680
1756
|
}
|
|
1681
1757
|
constructor(kwargs) {
|
|
@@ -1692,6 +1768,9 @@ class ChatMessage {
|
|
|
1692
1768
|
if (typeof this.content !== 'undefined') {
|
|
1693
1769
|
toReturn['content'] = this.content;
|
|
1694
1770
|
}
|
|
1771
|
+
if (typeof this.contentParts !== 'undefined' && this.contentParts !== null) {
|
|
1772
|
+
toReturn['contentParts'] = 'toApiJson' in this.contentParts ? this.contentParts.toApiJson() : this.contentParts;
|
|
1773
|
+
}
|
|
1695
1774
|
return toReturn;
|
|
1696
1775
|
}
|
|
1697
1776
|
}
|
|
@@ -1765,6 +1844,32 @@ class ContextInfo {
|
|
|
1765
1844
|
return toReturn;
|
|
1766
1845
|
}
|
|
1767
1846
|
}
|
|
1847
|
+
class ImageContent {
|
|
1848
|
+
static fromProto(proto) {
|
|
1849
|
+
let m = new ImageContent();
|
|
1850
|
+
m = Object.assign(m, proto);
|
|
1851
|
+
return m;
|
|
1852
|
+
}
|
|
1853
|
+
constructor(kwargs) {
|
|
1854
|
+
if (!kwargs) {
|
|
1855
|
+
return;
|
|
1856
|
+
}
|
|
1857
|
+
Object.assign(this, kwargs);
|
|
1858
|
+
}
|
|
1859
|
+
toApiJson() {
|
|
1860
|
+
const toReturn = {};
|
|
1861
|
+
if (typeof this.url !== 'undefined') {
|
|
1862
|
+
toReturn['url'] = this.url;
|
|
1863
|
+
}
|
|
1864
|
+
if (typeof this.mediaType !== 'undefined') {
|
|
1865
|
+
toReturn['mediaType'] = this.mediaType;
|
|
1866
|
+
}
|
|
1867
|
+
if (typeof this.altText !== 'undefined') {
|
|
1868
|
+
toReturn['altText'] = this.altText;
|
|
1869
|
+
}
|
|
1870
|
+
return toReturn;
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1768
1873
|
|
|
1769
1874
|
function enumStringToValue$3(enumRef, value) {
|
|
1770
1875
|
if (typeof value === 'number') {
|
|
@@ -2902,19 +3007,13 @@ class ExecuteFunctionResponse {
|
|
|
2902
3007
|
return toReturn;
|
|
2903
3008
|
}
|
|
2904
3009
|
}
|
|
2905
|
-
class
|
|
3010
|
+
class ListFunctionRequestFilters {
|
|
2906
3011
|
static fromProto(proto) {
|
|
2907
|
-
let m = new
|
|
3012
|
+
let m = new ListFunctionRequestFilters();
|
|
2908
3013
|
m = Object.assign(m, proto);
|
|
2909
3014
|
if (proto.namespace) {
|
|
2910
3015
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2911
3016
|
}
|
|
2912
|
-
if (proto.type) {
|
|
2913
|
-
m.type = enumStringToValue(GoalType, proto.type);
|
|
2914
|
-
}
|
|
2915
|
-
if (proto.supportedChannels) {
|
|
2916
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
2917
|
-
}
|
|
2918
3017
|
if (proto.namespaces) {
|
|
2919
3018
|
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
2920
3019
|
}
|
|
@@ -2931,27 +3030,24 @@ class ListGoalsRequestFilters {
|
|
|
2931
3030
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2932
3031
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2933
3032
|
}
|
|
2934
|
-
if (typeof this.type !== 'undefined') {
|
|
2935
|
-
toReturn['type'] = this.type;
|
|
2936
|
-
}
|
|
2937
|
-
if (typeof this.supportedChannels !== 'undefined') {
|
|
2938
|
-
toReturn['supportedChannels'] = this.supportedChannels;
|
|
2939
|
-
}
|
|
2940
3033
|
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
2941
3034
|
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
2942
3035
|
}
|
|
3036
|
+
if (typeof this.mcpId !== 'undefined') {
|
|
3037
|
+
toReturn['mcpId'] = this.mcpId;
|
|
3038
|
+
}
|
|
2943
3039
|
return toReturn;
|
|
2944
3040
|
}
|
|
2945
3041
|
}
|
|
2946
|
-
class
|
|
3042
|
+
class ListAvailableModelsRequestFilters {
|
|
2947
3043
|
static fromProto(proto) {
|
|
2948
|
-
let m = new
|
|
3044
|
+
let m = new ListAvailableModelsRequestFilters();
|
|
2949
3045
|
m = Object.assign(m, proto);
|
|
2950
|
-
if (proto.
|
|
2951
|
-
m.
|
|
3046
|
+
if (proto.vendor) {
|
|
3047
|
+
m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
|
|
2952
3048
|
}
|
|
2953
|
-
if (proto.
|
|
2954
|
-
m.
|
|
3049
|
+
if (proto.type) {
|
|
3050
|
+
m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
|
|
2955
3051
|
}
|
|
2956
3052
|
return m;
|
|
2957
3053
|
}
|
|
@@ -2963,11 +3059,11 @@ class ListFunctionRequestFilters {
|
|
|
2963
3059
|
}
|
|
2964
3060
|
toApiJson() {
|
|
2965
3061
|
const toReturn = {};
|
|
2966
|
-
if (typeof this.
|
|
2967
|
-
toReturn['
|
|
3062
|
+
if (typeof this.vendor !== 'undefined') {
|
|
3063
|
+
toReturn['vendor'] = this.vendor;
|
|
2968
3064
|
}
|
|
2969
|
-
if (typeof this.
|
|
2970
|
-
toReturn['
|
|
3065
|
+
if (typeof this.type !== 'undefined') {
|
|
3066
|
+
toReturn['type'] = this.type;
|
|
2971
3067
|
}
|
|
2972
3068
|
return toReturn;
|
|
2973
3069
|
}
|
|
@@ -3001,15 +3097,12 @@ class ListConnectionsRequestFilters {
|
|
|
3001
3097
|
return toReturn;
|
|
3002
3098
|
}
|
|
3003
3099
|
}
|
|
3004
|
-
class
|
|
3100
|
+
class ListPromptModuleRequestFilters {
|
|
3005
3101
|
static fromProto(proto) {
|
|
3006
|
-
let m = new
|
|
3102
|
+
let m = new ListPromptModuleRequestFilters();
|
|
3007
3103
|
m = Object.assign(m, proto);
|
|
3008
|
-
if (proto.
|
|
3009
|
-
m.
|
|
3010
|
-
}
|
|
3011
|
-
if (proto.type) {
|
|
3012
|
-
m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
|
|
3104
|
+
if (proto.namespace) {
|
|
3105
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3013
3106
|
}
|
|
3014
3107
|
return m;
|
|
3015
3108
|
}
|
|
@@ -3021,22 +3114,28 @@ class ListAvailableModelsRequestFilters {
|
|
|
3021
3114
|
}
|
|
3022
3115
|
toApiJson() {
|
|
3023
3116
|
const toReturn = {};
|
|
3024
|
-
if (typeof this.
|
|
3025
|
-
toReturn['
|
|
3026
|
-
}
|
|
3027
|
-
if (typeof this.type !== 'undefined') {
|
|
3028
|
-
toReturn['type'] = this.type;
|
|
3117
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3118
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3029
3119
|
}
|
|
3030
3120
|
return toReturn;
|
|
3031
3121
|
}
|
|
3032
3122
|
}
|
|
3033
|
-
class
|
|
3123
|
+
class ListGoalsRequestFilters {
|
|
3034
3124
|
static fromProto(proto) {
|
|
3035
|
-
let m = new
|
|
3125
|
+
let m = new ListGoalsRequestFilters();
|
|
3036
3126
|
m = Object.assign(m, proto);
|
|
3037
3127
|
if (proto.namespace) {
|
|
3038
3128
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3039
3129
|
}
|
|
3130
|
+
if (proto.type) {
|
|
3131
|
+
m.type = enumStringToValue(GoalType, proto.type);
|
|
3132
|
+
}
|
|
3133
|
+
if (proto.supportedChannels) {
|
|
3134
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
3135
|
+
}
|
|
3136
|
+
if (proto.namespaces) {
|
|
3137
|
+
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3138
|
+
}
|
|
3040
3139
|
return m;
|
|
3041
3140
|
}
|
|
3042
3141
|
constructor(kwargs) {
|
|
@@ -3050,16 +3149,22 @@ class ListPromptModuleRequestFilters {
|
|
|
3050
3149
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3051
3150
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3052
3151
|
}
|
|
3152
|
+
if (typeof this.type !== 'undefined') {
|
|
3153
|
+
toReturn['type'] = this.type;
|
|
3154
|
+
}
|
|
3155
|
+
if (typeof this.supportedChannels !== 'undefined') {
|
|
3156
|
+
toReturn['supportedChannels'] = this.supportedChannels;
|
|
3157
|
+
}
|
|
3158
|
+
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3159
|
+
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3160
|
+
}
|
|
3053
3161
|
return toReturn;
|
|
3054
3162
|
}
|
|
3055
3163
|
}
|
|
3056
|
-
class
|
|
3164
|
+
class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
3057
3165
|
static fromProto(proto) {
|
|
3058
|
-
let m = new
|
|
3166
|
+
let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
|
|
3059
3167
|
m = Object.assign(m, proto);
|
|
3060
|
-
if (proto.namespace) {
|
|
3061
|
-
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3062
|
-
}
|
|
3063
3168
|
if (proto.type) {
|
|
3064
3169
|
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3065
3170
|
}
|
|
@@ -3073,19 +3178,19 @@ class ListAssistantRequestFilters {
|
|
|
3073
3178
|
}
|
|
3074
3179
|
toApiJson() {
|
|
3075
3180
|
const toReturn = {};
|
|
3076
|
-
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3077
|
-
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3078
|
-
}
|
|
3079
3181
|
if (typeof this.type !== 'undefined') {
|
|
3080
3182
|
toReturn['type'] = this.type;
|
|
3081
3183
|
}
|
|
3082
3184
|
return toReturn;
|
|
3083
3185
|
}
|
|
3084
3186
|
}
|
|
3085
|
-
class
|
|
3187
|
+
class ListAssistantRequestFilters {
|
|
3086
3188
|
static fromProto(proto) {
|
|
3087
|
-
let m = new
|
|
3189
|
+
let m = new ListAssistantRequestFilters();
|
|
3088
3190
|
m = Object.assign(m, proto);
|
|
3191
|
+
if (proto.namespace) {
|
|
3192
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3193
|
+
}
|
|
3089
3194
|
if (proto.type) {
|
|
3090
3195
|
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3091
3196
|
}
|
|
@@ -3099,6 +3204,9 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
3099
3204
|
}
|
|
3100
3205
|
toApiJson() {
|
|
3101
3206
|
const toReturn = {};
|
|
3207
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3208
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3209
|
+
}
|
|
3102
3210
|
if (typeof this.type !== 'undefined') {
|
|
3103
3211
|
toReturn['type'] = this.type;
|
|
3104
3212
|
}
|
|
@@ -4649,10 +4757,13 @@ class ListPromptVersionsResponse {
|
|
|
4649
4757
|
return toReturn;
|
|
4650
4758
|
}
|
|
4651
4759
|
}
|
|
4652
|
-
class
|
|
4760
|
+
class GenerateChatAnswerRequestOptions {
|
|
4653
4761
|
static fromProto(proto) {
|
|
4654
|
-
let m = new
|
|
4762
|
+
let m = new GenerateChatAnswerRequestOptions();
|
|
4655
4763
|
m = Object.assign(m, proto);
|
|
4764
|
+
if (proto.maxTokens) {
|
|
4765
|
+
m.maxTokens = parseInt(proto.maxTokens, 10);
|
|
4766
|
+
}
|
|
4656
4767
|
return m;
|
|
4657
4768
|
}
|
|
4658
4769
|
constructor(kwargs) {
|
|
@@ -4663,15 +4774,21 @@ class CreatePromptModuleVersionRequestOptions {
|
|
|
4663
4774
|
}
|
|
4664
4775
|
toApiJson() {
|
|
4665
4776
|
const toReturn = {};
|
|
4666
|
-
if (typeof this.
|
|
4667
|
-
toReturn['
|
|
4777
|
+
if (typeof this.includeAllCitations !== 'undefined') {
|
|
4778
|
+
toReturn['includeAllCitations'] = this.includeAllCitations;
|
|
4779
|
+
}
|
|
4780
|
+
if (typeof this.enableAsyncFunctions !== 'undefined') {
|
|
4781
|
+
toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
|
|
4782
|
+
}
|
|
4783
|
+
if (typeof this.maxTokens !== 'undefined') {
|
|
4784
|
+
toReturn['maxTokens'] = this.maxTokens;
|
|
4668
4785
|
}
|
|
4669
4786
|
return toReturn;
|
|
4670
4787
|
}
|
|
4671
4788
|
}
|
|
4672
|
-
class
|
|
4789
|
+
class GetMultiAssistantRequestOptions {
|
|
4673
4790
|
static fromProto(proto) {
|
|
4674
|
-
let m = new
|
|
4791
|
+
let m = new GetMultiAssistantRequestOptions();
|
|
4675
4792
|
m = Object.assign(m, proto);
|
|
4676
4793
|
return m;
|
|
4677
4794
|
}
|
|
@@ -4689,9 +4806,9 @@ class GetAssistantRequestOptions {
|
|
|
4689
4806
|
return toReturn;
|
|
4690
4807
|
}
|
|
4691
4808
|
}
|
|
4692
|
-
class
|
|
4809
|
+
class CreatePromptModuleVersionRequestOptions {
|
|
4693
4810
|
static fromProto(proto) {
|
|
4694
|
-
let m = new
|
|
4811
|
+
let m = new CreatePromptModuleVersionRequestOptions();
|
|
4695
4812
|
m = Object.assign(m, proto);
|
|
4696
4813
|
return m;
|
|
4697
4814
|
}
|
|
@@ -4703,15 +4820,15 @@ class CreateAssistantRequestOptions {
|
|
|
4703
4820
|
}
|
|
4704
4821
|
toApiJson() {
|
|
4705
4822
|
const toReturn = {};
|
|
4706
|
-
if (typeof this.
|
|
4707
|
-
toReturn['
|
|
4823
|
+
if (typeof this.shouldDeploy !== 'undefined') {
|
|
4824
|
+
toReturn['shouldDeploy'] = this.shouldDeploy;
|
|
4708
4825
|
}
|
|
4709
4826
|
return toReturn;
|
|
4710
4827
|
}
|
|
4711
4828
|
}
|
|
4712
|
-
class
|
|
4829
|
+
class CreateAssistantRequestOptions {
|
|
4713
4830
|
static fromProto(proto) {
|
|
4714
|
-
let m = new
|
|
4831
|
+
let m = new CreateAssistantRequestOptions();
|
|
4715
4832
|
m = Object.assign(m, proto);
|
|
4716
4833
|
return m;
|
|
4717
4834
|
}
|
|
@@ -4729,9 +4846,9 @@ class UpsertAssistantRequestOptions {
|
|
|
4729
4846
|
return toReturn;
|
|
4730
4847
|
}
|
|
4731
4848
|
}
|
|
4732
|
-
class
|
|
4849
|
+
class UpsertAssistantRequestOptions {
|
|
4733
4850
|
static fromProto(proto) {
|
|
4734
|
-
let m = new
|
|
4851
|
+
let m = new UpsertAssistantRequestOptions();
|
|
4735
4852
|
m = Object.assign(m, proto);
|
|
4736
4853
|
return m;
|
|
4737
4854
|
}
|
|
@@ -4743,19 +4860,16 @@ class GetMultiAssistantRequestOptions {
|
|
|
4743
4860
|
}
|
|
4744
4861
|
toApiJson() {
|
|
4745
4862
|
const toReturn = {};
|
|
4746
|
-
if (typeof this.
|
|
4747
|
-
toReturn['
|
|
4863
|
+
if (typeof this.applyDefaults !== 'undefined') {
|
|
4864
|
+
toReturn['applyDefaults'] = this.applyDefaults;
|
|
4748
4865
|
}
|
|
4749
4866
|
return toReturn;
|
|
4750
4867
|
}
|
|
4751
4868
|
}
|
|
4752
|
-
class
|
|
4869
|
+
class GetAssistantRequestOptions {
|
|
4753
4870
|
static fromProto(proto) {
|
|
4754
|
-
let m = new
|
|
4871
|
+
let m = new GetAssistantRequestOptions();
|
|
4755
4872
|
m = Object.assign(m, proto);
|
|
4756
|
-
if (proto.maxTokens) {
|
|
4757
|
-
m.maxTokens = parseInt(proto.maxTokens, 10);
|
|
4758
|
-
}
|
|
4759
4873
|
return m;
|
|
4760
4874
|
}
|
|
4761
4875
|
constructor(kwargs) {
|
|
@@ -4766,14 +4880,8 @@ class GenerateChatAnswerRequestOptions {
|
|
|
4766
4880
|
}
|
|
4767
4881
|
toApiJson() {
|
|
4768
4882
|
const toReturn = {};
|
|
4769
|
-
if (typeof this.
|
|
4770
|
-
toReturn['
|
|
4771
|
-
}
|
|
4772
|
-
if (typeof this.enableAsyncFunctions !== 'undefined') {
|
|
4773
|
-
toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
|
|
4774
|
-
}
|
|
4775
|
-
if (typeof this.maxTokens !== 'undefined') {
|
|
4776
|
-
toReturn['maxTokens'] = this.maxTokens;
|
|
4883
|
+
if (typeof this.skipGoalsHydration !== 'undefined') {
|
|
4884
|
+
toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
|
|
4777
4885
|
}
|
|
4778
4886
|
return toReturn;
|
|
4779
4887
|
}
|
|
@@ -5244,6 +5352,10 @@ class FunctionApiService {
|
|
|
5244
5352
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/ListMCPs", request.toApiJson(), this.apiOptions())
|
|
5245
5353
|
.pipe(map(resp => ListMCPsResponse.fromProto(resp)));
|
|
5246
5354
|
}
|
|
5355
|
+
deleteMcp(r) {
|
|
5356
|
+
const request = (r.toApiJson) ? r : new DeleteMCPRequest(r);
|
|
5357
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/DeleteMCP", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
5358
|
+
}
|
|
5247
5359
|
}
|
|
5248
5360
|
FunctionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FunctionApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5249
5361
|
FunctionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FunctionApiService, providedIn: 'root' });
|
|
@@ -5546,5 +5658,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5546
5658
|
* Generated bundle index. Do not edit.
|
|
5547
5659
|
*/
|
|
5548
5660
|
|
|
5549
|
-
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 };
|
|
5661
|
+
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, VendorModel };
|
|
5550
5662
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|