@vendasta/ai-assistants 0.45.1 → 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/assistant.api.service.mjs +7 -2
- 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 +144 -69
- package/esm2020/lib/_internal/objects/function.mjs +48 -1
- package/esm2020/lib/_internal/objects/index.mjs +4 -4
- package/fesm2015/vendasta-ai-assistants.mjs +258 -69
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +258 -69
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/assistant.api.service.d.ts +3 -2
- 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 +30 -19
- 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 +55 -35
- 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,15 +3007,15 @@ 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.
|
|
2913
|
-
m.
|
|
3017
|
+
if (proto.namespaces) {
|
|
3018
|
+
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
2914
3019
|
}
|
|
2915
3020
|
return m;
|
|
2916
3021
|
}
|
|
@@ -2925,8 +3030,11 @@ class ListConnectionsRequestFilters {
|
|
|
2925
3030
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2926
3031
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2927
3032
|
}
|
|
2928
|
-
if (typeof this.
|
|
2929
|
-
toReturn['
|
|
3033
|
+
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3034
|
+
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3035
|
+
}
|
|
3036
|
+
if (typeof this.mcpId !== 'undefined') {
|
|
3037
|
+
toReturn['mcpId'] = this.mcpId;
|
|
2930
3038
|
}
|
|
2931
3039
|
return toReturn;
|
|
2932
3040
|
}
|
|
@@ -2960,12 +3068,15 @@ class ListAvailableModelsRequestFilters {
|
|
|
2960
3068
|
return toReturn;
|
|
2961
3069
|
}
|
|
2962
3070
|
}
|
|
2963
|
-
class
|
|
3071
|
+
class ListConnectionsRequestFilters {
|
|
2964
3072
|
static fromProto(proto) {
|
|
2965
|
-
let m = new
|
|
3073
|
+
let m = new ListConnectionsRequestFilters();
|
|
2966
3074
|
m = Object.assign(m, proto);
|
|
2967
|
-
if (proto.
|
|
2968
|
-
m.
|
|
3075
|
+
if (proto.namespace) {
|
|
3076
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3077
|
+
}
|
|
3078
|
+
if (proto.assistantType) {
|
|
3079
|
+
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
2969
3080
|
}
|
|
2970
3081
|
return m;
|
|
2971
3082
|
}
|
|
@@ -2977,28 +3088,22 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
2977
3088
|
}
|
|
2978
3089
|
toApiJson() {
|
|
2979
3090
|
const toReturn = {};
|
|
2980
|
-
if (typeof this.
|
|
2981
|
-
toReturn['
|
|
3091
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3092
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3093
|
+
}
|
|
3094
|
+
if (typeof this.assistantType !== 'undefined') {
|
|
3095
|
+
toReturn['assistantType'] = this.assistantType;
|
|
2982
3096
|
}
|
|
2983
3097
|
return toReturn;
|
|
2984
3098
|
}
|
|
2985
3099
|
}
|
|
2986
|
-
class
|
|
3100
|
+
class ListPromptModuleRequestFilters {
|
|
2987
3101
|
static fromProto(proto) {
|
|
2988
|
-
let m = new
|
|
3102
|
+
let m = new ListPromptModuleRequestFilters();
|
|
2989
3103
|
m = Object.assign(m, proto);
|
|
2990
3104
|
if (proto.namespace) {
|
|
2991
3105
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2992
3106
|
}
|
|
2993
|
-
if (proto.type) {
|
|
2994
|
-
m.type = enumStringToValue(GoalType, proto.type);
|
|
2995
|
-
}
|
|
2996
|
-
if (proto.supportedChannels) {
|
|
2997
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
2998
|
-
}
|
|
2999
|
-
if (proto.namespaces) {
|
|
3000
|
-
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3001
|
-
}
|
|
3002
3107
|
return m;
|
|
3003
3108
|
}
|
|
3004
3109
|
constructor(kwargs) {
|
|
@@ -3012,27 +3117,24 @@ class ListGoalsRequestFilters {
|
|
|
3012
3117
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3013
3118
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3014
3119
|
}
|
|
3015
|
-
if (typeof this.type !== 'undefined') {
|
|
3016
|
-
toReturn['type'] = this.type;
|
|
3017
|
-
}
|
|
3018
|
-
if (typeof this.supportedChannels !== 'undefined') {
|
|
3019
|
-
toReturn['supportedChannels'] = this.supportedChannels;
|
|
3020
|
-
}
|
|
3021
|
-
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3022
|
-
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3023
|
-
}
|
|
3024
3120
|
return toReturn;
|
|
3025
3121
|
}
|
|
3026
3122
|
}
|
|
3027
|
-
class
|
|
3123
|
+
class ListGoalsRequestFilters {
|
|
3028
3124
|
static fromProto(proto) {
|
|
3029
|
-
let m = new
|
|
3125
|
+
let m = new ListGoalsRequestFilters();
|
|
3030
3126
|
m = Object.assign(m, proto);
|
|
3031
3127
|
if (proto.namespace) {
|
|
3032
3128
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3033
3129
|
}
|
|
3034
3130
|
if (proto.type) {
|
|
3035
|
-
m.type = enumStringToValue(
|
|
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);
|
|
3036
3138
|
}
|
|
3037
3139
|
return m;
|
|
3038
3140
|
}
|
|
@@ -3050,18 +3152,21 @@ class ListAssistantRequestFilters {
|
|
|
3050
3152
|
if (typeof this.type !== 'undefined') {
|
|
3051
3153
|
toReturn['type'] = this.type;
|
|
3052
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.
|
|
3061
|
-
m.
|
|
3062
|
-
}
|
|
3063
|
-
if (proto.namespaces) {
|
|
3064
|
-
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3168
|
+
if (proto.type) {
|
|
3169
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3065
3170
|
}
|
|
3066
3171
|
return m;
|
|
3067
3172
|
}
|
|
@@ -3073,22 +3178,22 @@ class ListFunctionRequestFilters {
|
|
|
3073
3178
|
}
|
|
3074
3179
|
toApiJson() {
|
|
3075
3180
|
const toReturn = {};
|
|
3076
|
-
if (typeof this.
|
|
3077
|
-
toReturn['
|
|
3078
|
-
}
|
|
3079
|
-
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3080
|
-
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3181
|
+
if (typeof this.type !== 'undefined') {
|
|
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);
|
|
3089
3191
|
if (proto.namespace) {
|
|
3090
3192
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3091
3193
|
}
|
|
3194
|
+
if (proto.type) {
|
|
3195
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
3196
|
+
}
|
|
3092
3197
|
return m;
|
|
3093
3198
|
}
|
|
3094
3199
|
constructor(kwargs) {
|
|
@@ -3102,6 +3207,9 @@ class ListPromptModuleRequestFilters {
|
|
|
3102
3207
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3103
3208
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3104
3209
|
}
|
|
3210
|
+
if (typeof this.type !== 'undefined') {
|
|
3211
|
+
toReturn['type'] = this.type;
|
|
3212
|
+
}
|
|
3105
3213
|
return toReturn;
|
|
3106
3214
|
}
|
|
3107
3215
|
}
|
|
@@ -3600,6 +3708,58 @@ class GetHydratedDeployedPromptModuleVersionResponse {
|
|
|
3600
3708
|
return toReturn;
|
|
3601
3709
|
}
|
|
3602
3710
|
}
|
|
3711
|
+
class GetMultiAssistantRequest {
|
|
3712
|
+
static fromProto(proto) {
|
|
3713
|
+
let m = new GetMultiAssistantRequest();
|
|
3714
|
+
m = Object.assign(m, proto);
|
|
3715
|
+
if (proto.assistantKeys) {
|
|
3716
|
+
m.assistantKeys = proto.assistantKeys.map(AssistantKey.fromProto);
|
|
3717
|
+
}
|
|
3718
|
+
if (proto.options) {
|
|
3719
|
+
m.options = GetMultiAssistantRequestOptions.fromProto(proto.options);
|
|
3720
|
+
}
|
|
3721
|
+
return m;
|
|
3722
|
+
}
|
|
3723
|
+
constructor(kwargs) {
|
|
3724
|
+
if (!kwargs) {
|
|
3725
|
+
return;
|
|
3726
|
+
}
|
|
3727
|
+
Object.assign(this, kwargs);
|
|
3728
|
+
}
|
|
3729
|
+
toApiJson() {
|
|
3730
|
+
const toReturn = {};
|
|
3731
|
+
if (typeof this.assistantKeys !== 'undefined' && this.assistantKeys !== null) {
|
|
3732
|
+
toReturn['assistantKeys'] = 'toApiJson' in this.assistantKeys ? this.assistantKeys.toApiJson() : this.assistantKeys;
|
|
3733
|
+
}
|
|
3734
|
+
if (typeof this.options !== 'undefined' && this.options !== null) {
|
|
3735
|
+
toReturn['options'] = 'toApiJson' in this.options ? this.options.toApiJson() : this.options;
|
|
3736
|
+
}
|
|
3737
|
+
return toReturn;
|
|
3738
|
+
}
|
|
3739
|
+
}
|
|
3740
|
+
class GetMultiAssistantResponse {
|
|
3741
|
+
static fromProto(proto) {
|
|
3742
|
+
let m = new GetMultiAssistantResponse();
|
|
3743
|
+
m = Object.assign(m, proto);
|
|
3744
|
+
if (proto.assistants) {
|
|
3745
|
+
m.assistants = proto.assistants.map(Assistant.fromProto);
|
|
3746
|
+
}
|
|
3747
|
+
return m;
|
|
3748
|
+
}
|
|
3749
|
+
constructor(kwargs) {
|
|
3750
|
+
if (!kwargs) {
|
|
3751
|
+
return;
|
|
3752
|
+
}
|
|
3753
|
+
Object.assign(this, kwargs);
|
|
3754
|
+
}
|
|
3755
|
+
toApiJson() {
|
|
3756
|
+
const toReturn = {};
|
|
3757
|
+
if (typeof this.assistants !== 'undefined' && this.assistants !== null) {
|
|
3758
|
+
toReturn['assistants'] = 'toApiJson' in this.assistants ? this.assistants.toApiJson() : this.assistants;
|
|
3759
|
+
}
|
|
3760
|
+
return toReturn;
|
|
3761
|
+
}
|
|
3762
|
+
}
|
|
3603
3763
|
class GetMultiDeployedPromptVersionRequest {
|
|
3604
3764
|
static fromProto(proto) {
|
|
3605
3765
|
let m = new GetMultiDeployedPromptVersionRequest();
|
|
@@ -4597,10 +4757,13 @@ class ListPromptVersionsResponse {
|
|
|
4597
4757
|
return toReturn;
|
|
4598
4758
|
}
|
|
4599
4759
|
}
|
|
4600
|
-
class
|
|
4760
|
+
class GenerateChatAnswerRequestOptions {
|
|
4601
4761
|
static fromProto(proto) {
|
|
4602
|
-
let m = new
|
|
4762
|
+
let m = new GenerateChatAnswerRequestOptions();
|
|
4603
4763
|
m = Object.assign(m, proto);
|
|
4764
|
+
if (proto.maxTokens) {
|
|
4765
|
+
m.maxTokens = parseInt(proto.maxTokens, 10);
|
|
4766
|
+
}
|
|
4604
4767
|
return m;
|
|
4605
4768
|
}
|
|
4606
4769
|
constructor(kwargs) {
|
|
@@ -4611,15 +4774,21 @@ class UpsertAssistantRequestOptions {
|
|
|
4611
4774
|
}
|
|
4612
4775
|
toApiJson() {
|
|
4613
4776
|
const toReturn = {};
|
|
4614
|
-
if (typeof this.
|
|
4615
|
-
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;
|
|
4616
4785
|
}
|
|
4617
4786
|
return toReturn;
|
|
4618
4787
|
}
|
|
4619
4788
|
}
|
|
4620
|
-
class
|
|
4789
|
+
class GetMultiAssistantRequestOptions {
|
|
4621
4790
|
static fromProto(proto) {
|
|
4622
|
-
let m = new
|
|
4791
|
+
let m = new GetMultiAssistantRequestOptions();
|
|
4623
4792
|
m = Object.assign(m, proto);
|
|
4624
4793
|
return m;
|
|
4625
4794
|
}
|
|
@@ -4631,8 +4800,8 @@ class CreateAssistantRequestOptions {
|
|
|
4631
4800
|
}
|
|
4632
4801
|
toApiJson() {
|
|
4633
4802
|
const toReturn = {};
|
|
4634
|
-
if (typeof this.
|
|
4635
|
-
toReturn['
|
|
4803
|
+
if (typeof this.skipGoalsHydration !== 'undefined') {
|
|
4804
|
+
toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
|
|
4636
4805
|
}
|
|
4637
4806
|
return toReturn;
|
|
4638
4807
|
}
|
|
@@ -4657,13 +4826,10 @@ class CreatePromptModuleVersionRequestOptions {
|
|
|
4657
4826
|
return toReturn;
|
|
4658
4827
|
}
|
|
4659
4828
|
}
|
|
4660
|
-
class
|
|
4829
|
+
class CreateAssistantRequestOptions {
|
|
4661
4830
|
static fromProto(proto) {
|
|
4662
|
-
let m = new
|
|
4831
|
+
let m = new CreateAssistantRequestOptions();
|
|
4663
4832
|
m = Object.assign(m, proto);
|
|
4664
|
-
if (proto.maxTokens) {
|
|
4665
|
-
m.maxTokens = parseInt(proto.maxTokens, 10);
|
|
4666
|
-
}
|
|
4667
4833
|
return m;
|
|
4668
4834
|
}
|
|
4669
4835
|
constructor(kwargs) {
|
|
@@ -4674,14 +4840,28 @@ class GenerateChatAnswerRequestOptions {
|
|
|
4674
4840
|
}
|
|
4675
4841
|
toApiJson() {
|
|
4676
4842
|
const toReturn = {};
|
|
4677
|
-
if (typeof this.
|
|
4678
|
-
toReturn['
|
|
4843
|
+
if (typeof this.applyDefaults !== 'undefined') {
|
|
4844
|
+
toReturn['applyDefaults'] = this.applyDefaults;
|
|
4679
4845
|
}
|
|
4680
|
-
|
|
4681
|
-
|
|
4846
|
+
return toReturn;
|
|
4847
|
+
}
|
|
4848
|
+
}
|
|
4849
|
+
class UpsertAssistantRequestOptions {
|
|
4850
|
+
static fromProto(proto) {
|
|
4851
|
+
let m = new UpsertAssistantRequestOptions();
|
|
4852
|
+
m = Object.assign(m, proto);
|
|
4853
|
+
return m;
|
|
4854
|
+
}
|
|
4855
|
+
constructor(kwargs) {
|
|
4856
|
+
if (!kwargs) {
|
|
4857
|
+
return;
|
|
4682
4858
|
}
|
|
4683
|
-
|
|
4684
|
-
|
|
4859
|
+
Object.assign(this, kwargs);
|
|
4860
|
+
}
|
|
4861
|
+
toApiJson() {
|
|
4862
|
+
const toReturn = {};
|
|
4863
|
+
if (typeof this.applyDefaults !== 'undefined') {
|
|
4864
|
+
toReturn['applyDefaults'] = this.applyDefaults;
|
|
4685
4865
|
}
|
|
4686
4866
|
return toReturn;
|
|
4687
4867
|
}
|
|
@@ -5013,6 +5193,11 @@ class AssistantApiService {
|
|
|
5013
5193
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/GetAssistant", request.toApiJson(), this.apiOptions())
|
|
5014
5194
|
.pipe(map(resp => GetAssistantResponse.fromProto(resp)));
|
|
5015
5195
|
}
|
|
5196
|
+
getMultiAssistant(r) {
|
|
5197
|
+
const request = (r.toApiJson) ? r : new GetMultiAssistantRequest(r);
|
|
5198
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/GetMultiAssistant", request.toApiJson(), this.apiOptions())
|
|
5199
|
+
.pipe(map(resp => GetMultiAssistantResponse.fromProto(resp)));
|
|
5200
|
+
}
|
|
5016
5201
|
buildDefaultAssistant(r) {
|
|
5017
5202
|
const request = (r.toApiJson) ? r : new BuildDefaultAssistantRequest(r);
|
|
5018
5203
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/BuildDefaultAssistant", request.toApiJson(), this.apiOptions())
|
|
@@ -5167,6 +5352,10 @@ class FunctionApiService {
|
|
|
5167
5352
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/ListMCPs", request.toApiJson(), this.apiOptions())
|
|
5168
5353
|
.pipe(map(resp => ListMCPsResponse.fromProto(resp)));
|
|
5169
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
|
+
}
|
|
5170
5359
|
}
|
|
5171
5360
|
FunctionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FunctionApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5172
5361
|
FunctionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FunctionApiService, providedIn: 'root' });
|
|
@@ -5469,5 +5658,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5469
5658
|
* Generated bundle index. Do not edit.
|
|
5470
5659
|
*/
|
|
5471
5660
|
|
|
5472
|
-
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, 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 };
|
|
5473
5662
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|