@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
|
@@ -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,24 @@ 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 ListAvailableModelsRequestFilters {
|
|
2948
3044
|
static fromProto(proto) {
|
|
2949
|
-
let m = new
|
|
3045
|
+
let m = new ListAvailableModelsRequestFilters();
|
|
2950
3046
|
m = Object.assign(m, proto);
|
|
2951
|
-
if (proto.
|
|
2952
|
-
m.
|
|
3047
|
+
if (proto.vendor) {
|
|
3048
|
+
m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
|
|
2953
3049
|
}
|
|
2954
|
-
if (proto.
|
|
2955
|
-
m.
|
|
3050
|
+
if (proto.type) {
|
|
3051
|
+
m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
|
|
2956
3052
|
}
|
|
2957
3053
|
return m;
|
|
2958
3054
|
}
|
|
@@ -2964,11 +3060,11 @@ class ListFunctionRequestFilters {
|
|
|
2964
3060
|
}
|
|
2965
3061
|
toApiJson() {
|
|
2966
3062
|
const toReturn = {};
|
|
2967
|
-
if (typeof this.
|
|
2968
|
-
toReturn['
|
|
3063
|
+
if (typeof this.vendor !== 'undefined') {
|
|
3064
|
+
toReturn['vendor'] = this.vendor;
|
|
2969
3065
|
}
|
|
2970
|
-
if (typeof this.
|
|
2971
|
-
toReturn['
|
|
3066
|
+
if (typeof this.type !== 'undefined') {
|
|
3067
|
+
toReturn['type'] = this.type;
|
|
2972
3068
|
}
|
|
2973
3069
|
return toReturn;
|
|
2974
3070
|
}
|
|
@@ -3002,15 +3098,12 @@ class ListConnectionsRequestFilters {
|
|
|
3002
3098
|
return toReturn;
|
|
3003
3099
|
}
|
|
3004
3100
|
}
|
|
3005
|
-
class
|
|
3101
|
+
class ListPromptModuleRequestFilters {
|
|
3006
3102
|
static fromProto(proto) {
|
|
3007
|
-
let m = new
|
|
3103
|
+
let m = new ListPromptModuleRequestFilters();
|
|
3008
3104
|
m = Object.assign(m, proto);
|
|
3009
|
-
if (proto.
|
|
3010
|
-
m.
|
|
3011
|
-
}
|
|
3012
|
-
if (proto.type) {
|
|
3013
|
-
m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
|
|
3105
|
+
if (proto.namespace) {
|
|
3106
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3014
3107
|
}
|
|
3015
3108
|
return m;
|
|
3016
3109
|
}
|
|
@@ -3022,22 +3115,28 @@ class ListAvailableModelsRequestFilters {
|
|
|
3022
3115
|
}
|
|
3023
3116
|
toApiJson() {
|
|
3024
3117
|
const toReturn = {};
|
|
3025
|
-
if (typeof this.
|
|
3026
|
-
toReturn['
|
|
3027
|
-
}
|
|
3028
|
-
if (typeof this.type !== 'undefined') {
|
|
3029
|
-
toReturn['type'] = this.type;
|
|
3118
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3119
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3030
3120
|
}
|
|
3031
3121
|
return toReturn;
|
|
3032
3122
|
}
|
|
3033
3123
|
}
|
|
3034
|
-
class
|
|
3124
|
+
class ListGoalsRequestFilters {
|
|
3035
3125
|
static fromProto(proto) {
|
|
3036
|
-
let m = new
|
|
3126
|
+
let m = new ListGoalsRequestFilters();
|
|
3037
3127
|
m = Object.assign(m, proto);
|
|
3038
3128
|
if (proto.namespace) {
|
|
3039
3129
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3040
3130
|
}
|
|
3131
|
+
if (proto.type) {
|
|
3132
|
+
m.type = enumStringToValue(GoalType, proto.type);
|
|
3133
|
+
}
|
|
3134
|
+
if (proto.supportedChannels) {
|
|
3135
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
3136
|
+
}
|
|
3137
|
+
if (proto.namespaces) {
|
|
3138
|
+
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3139
|
+
}
|
|
3041
3140
|
return m;
|
|
3042
3141
|
}
|
|
3043
3142
|
constructor(kwargs) {
|
|
@@ -3051,16 +3150,22 @@ class ListPromptModuleRequestFilters {
|
|
|
3051
3150
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3052
3151
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3053
3152
|
}
|
|
3153
|
+
if (typeof this.type !== 'undefined') {
|
|
3154
|
+
toReturn['type'] = this.type;
|
|
3155
|
+
}
|
|
3156
|
+
if (typeof this.supportedChannels !== 'undefined') {
|
|
3157
|
+
toReturn['supportedChannels'] = this.supportedChannels;
|
|
3158
|
+
}
|
|
3159
|
+
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3160
|
+
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3161
|
+
}
|
|
3054
3162
|
return toReturn;
|
|
3055
3163
|
}
|
|
3056
3164
|
}
|
|
3057
|
-
class
|
|
3165
|
+
class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
3058
3166
|
static fromProto(proto) {
|
|
3059
|
-
let m = new
|
|
3167
|
+
let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
|
|
3060
3168
|
m = Object.assign(m, proto);
|
|
3061
|
-
if (proto.namespace) {
|
|
3062
|
-
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3063
|
-
}
|
|
3064
3169
|
if (proto.type) {
|
|
3065
3170
|
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3066
3171
|
}
|
|
@@ -3074,19 +3179,19 @@ class ListAssistantRequestFilters {
|
|
|
3074
3179
|
}
|
|
3075
3180
|
toApiJson() {
|
|
3076
3181
|
const toReturn = {};
|
|
3077
|
-
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3078
|
-
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3079
|
-
}
|
|
3080
3182
|
if (typeof this.type !== 'undefined') {
|
|
3081
3183
|
toReturn['type'] = this.type;
|
|
3082
3184
|
}
|
|
3083
3185
|
return toReturn;
|
|
3084
3186
|
}
|
|
3085
3187
|
}
|
|
3086
|
-
class
|
|
3188
|
+
class ListAssistantRequestFilters {
|
|
3087
3189
|
static fromProto(proto) {
|
|
3088
|
-
let m = new
|
|
3190
|
+
let m = new ListAssistantRequestFilters();
|
|
3089
3191
|
m = Object.assign(m, proto);
|
|
3192
|
+
if (proto.namespace) {
|
|
3193
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3194
|
+
}
|
|
3090
3195
|
if (proto.type) {
|
|
3091
3196
|
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3092
3197
|
}
|
|
@@ -3100,6 +3205,9 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
3100
3205
|
}
|
|
3101
3206
|
toApiJson() {
|
|
3102
3207
|
const toReturn = {};
|
|
3208
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3209
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3210
|
+
}
|
|
3103
3211
|
if (typeof this.type !== 'undefined') {
|
|
3104
3212
|
toReturn['type'] = this.type;
|
|
3105
3213
|
}
|
|
@@ -4650,10 +4758,13 @@ class ListPromptVersionsResponse {
|
|
|
4650
4758
|
return toReturn;
|
|
4651
4759
|
}
|
|
4652
4760
|
}
|
|
4653
|
-
class
|
|
4761
|
+
class GenerateChatAnswerRequestOptions {
|
|
4654
4762
|
static fromProto(proto) {
|
|
4655
|
-
let m = new
|
|
4763
|
+
let m = new GenerateChatAnswerRequestOptions();
|
|
4656
4764
|
m = Object.assign(m, proto);
|
|
4765
|
+
if (proto.maxTokens) {
|
|
4766
|
+
m.maxTokens = parseInt(proto.maxTokens, 10);
|
|
4767
|
+
}
|
|
4657
4768
|
return m;
|
|
4658
4769
|
}
|
|
4659
4770
|
constructor(kwargs) {
|
|
@@ -4664,15 +4775,21 @@ class CreatePromptModuleVersionRequestOptions {
|
|
|
4664
4775
|
}
|
|
4665
4776
|
toApiJson() {
|
|
4666
4777
|
const toReturn = {};
|
|
4667
|
-
if (typeof this.
|
|
4668
|
-
toReturn['
|
|
4778
|
+
if (typeof this.includeAllCitations !== 'undefined') {
|
|
4779
|
+
toReturn['includeAllCitations'] = this.includeAllCitations;
|
|
4780
|
+
}
|
|
4781
|
+
if (typeof this.enableAsyncFunctions !== 'undefined') {
|
|
4782
|
+
toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
|
|
4783
|
+
}
|
|
4784
|
+
if (typeof this.maxTokens !== 'undefined') {
|
|
4785
|
+
toReturn['maxTokens'] = this.maxTokens;
|
|
4669
4786
|
}
|
|
4670
4787
|
return toReturn;
|
|
4671
4788
|
}
|
|
4672
4789
|
}
|
|
4673
|
-
class
|
|
4790
|
+
class GetMultiAssistantRequestOptions {
|
|
4674
4791
|
static fromProto(proto) {
|
|
4675
|
-
let m = new
|
|
4792
|
+
let m = new GetMultiAssistantRequestOptions();
|
|
4676
4793
|
m = Object.assign(m, proto);
|
|
4677
4794
|
return m;
|
|
4678
4795
|
}
|
|
@@ -4690,9 +4807,9 @@ class GetAssistantRequestOptions {
|
|
|
4690
4807
|
return toReturn;
|
|
4691
4808
|
}
|
|
4692
4809
|
}
|
|
4693
|
-
class
|
|
4810
|
+
class CreatePromptModuleVersionRequestOptions {
|
|
4694
4811
|
static fromProto(proto) {
|
|
4695
|
-
let m = new
|
|
4812
|
+
let m = new CreatePromptModuleVersionRequestOptions();
|
|
4696
4813
|
m = Object.assign(m, proto);
|
|
4697
4814
|
return m;
|
|
4698
4815
|
}
|
|
@@ -4704,15 +4821,15 @@ class CreateAssistantRequestOptions {
|
|
|
4704
4821
|
}
|
|
4705
4822
|
toApiJson() {
|
|
4706
4823
|
const toReturn = {};
|
|
4707
|
-
if (typeof this.
|
|
4708
|
-
toReturn['
|
|
4824
|
+
if (typeof this.shouldDeploy !== 'undefined') {
|
|
4825
|
+
toReturn['shouldDeploy'] = this.shouldDeploy;
|
|
4709
4826
|
}
|
|
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
|
}
|
|
@@ -4730,9 +4847,9 @@ class UpsertAssistantRequestOptions {
|
|
|
4730
4847
|
return toReturn;
|
|
4731
4848
|
}
|
|
4732
4849
|
}
|
|
4733
|
-
class
|
|
4850
|
+
class UpsertAssistantRequestOptions {
|
|
4734
4851
|
static fromProto(proto) {
|
|
4735
|
-
let m = new
|
|
4852
|
+
let m = new UpsertAssistantRequestOptions();
|
|
4736
4853
|
m = Object.assign(m, proto);
|
|
4737
4854
|
return m;
|
|
4738
4855
|
}
|
|
@@ -4744,19 +4861,16 @@ class GetMultiAssistantRequestOptions {
|
|
|
4744
4861
|
}
|
|
4745
4862
|
toApiJson() {
|
|
4746
4863
|
const toReturn = {};
|
|
4747
|
-
if (typeof this.
|
|
4748
|
-
toReturn['
|
|
4864
|
+
if (typeof this.applyDefaults !== 'undefined') {
|
|
4865
|
+
toReturn['applyDefaults'] = this.applyDefaults;
|
|
4749
4866
|
}
|
|
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
|
}
|
|
@@ -5245,6 +5353,10 @@ class FunctionApiService {
|
|
|
5245
5353
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/ListMCPs", request.toApiJson(), this.apiOptions())
|
|
5246
5354
|
.pipe(map(resp => ListMCPsResponse.fromProto(resp)));
|
|
5247
5355
|
}
|
|
5356
|
+
deleteMcp(r) {
|
|
5357
|
+
const request = (r.toApiJson) ? r : new DeleteMCPRequest(r);
|
|
5358
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/DeleteMCP", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
5359
|
+
}
|
|
5248
5360
|
}
|
|
5249
5361
|
FunctionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FunctionApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5250
5362
|
FunctionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FunctionApiService, providedIn: 'root' });
|
|
@@ -5547,5 +5659,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5547
5659
|
* Generated bundle index. Do not edit.
|
|
5548
5660
|
*/
|
|
5549
5661
|
|
|
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 };
|
|
5662
|
+
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 };
|
|
5551
5663
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|