@vendasta/ai-assistants 0.46.0 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/_internal/function.api.service.mjs +6 -2
- package/esm2020/lib/_internal/interfaces/answer.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/function.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/answer.mjs +59 -1
- package/esm2020/lib/_internal/objects/api.mjs +113 -67
- package/esm2020/lib/_internal/objects/function.mjs +48 -1
- package/esm2020/lib/_internal/objects/index.mjs +4 -4
- package/esm2020/lib/_internal/prompt-module.api.service.mjs +7 -2
- package/fesm2015/vendasta-ai-assistants.mjs +227 -67
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +227 -67
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/function.api.service.d.ts +3 -2
- package/lib/_internal/interfaces/answer.interface.d.ts +10 -0
- package/lib/_internal/interfaces/api.interface.d.ts +25 -17
- package/lib/_internal/interfaces/function.interface.d.ts +8 -0
- package/lib/_internal/interfaces/index.d.ts +3 -3
- package/lib/_internal/objects/answer.d.ts +16 -0
- package/lib/_internal/objects/api.d.ts +49 -35
- package/lib/_internal/objects/function.d.ts +11 -0
- package/lib/_internal/objects/index.d.ts +3 -3
- package/lib/_internal/prompt-module.api.service.d.ts +3 -2
- package/package.json +1 -1
|
@@ -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,47 @@ 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 ListPromptModuleRequestFilters {
|
|
2947
3043
|
static fromProto(proto) {
|
|
2948
|
-
let m = new
|
|
3044
|
+
let m = new ListPromptModuleRequestFilters();
|
|
2949
3045
|
m = Object.assign(m, proto);
|
|
2950
3046
|
if (proto.namespace) {
|
|
2951
3047
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2952
3048
|
}
|
|
2953
|
-
|
|
2954
|
-
|
|
3049
|
+
return m;
|
|
3050
|
+
}
|
|
3051
|
+
constructor(kwargs) {
|
|
3052
|
+
if (!kwargs) {
|
|
3053
|
+
return;
|
|
3054
|
+
}
|
|
3055
|
+
Object.assign(this, kwargs);
|
|
3056
|
+
}
|
|
3057
|
+
toApiJson() {
|
|
3058
|
+
const toReturn = {};
|
|
3059
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3060
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3061
|
+
}
|
|
3062
|
+
return toReturn;
|
|
3063
|
+
}
|
|
3064
|
+
}
|
|
3065
|
+
class ListAssistantRequestFilters {
|
|
3066
|
+
static fromProto(proto) {
|
|
3067
|
+
let m = new ListAssistantRequestFilters();
|
|
3068
|
+
m = Object.assign(m, proto);
|
|
3069
|
+
if (proto.namespace) {
|
|
3070
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3071
|
+
}
|
|
3072
|
+
if (proto.type) {
|
|
3073
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
2955
3074
|
}
|
|
2956
3075
|
return m;
|
|
2957
3076
|
}
|
|
@@ -2966,8 +3085,8 @@ class ListFunctionRequestFilters {
|
|
|
2966
3085
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2967
3086
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2968
3087
|
}
|
|
2969
|
-
if (typeof this.
|
|
2970
|
-
toReturn['
|
|
3088
|
+
if (typeof this.type !== 'undefined') {
|
|
3089
|
+
toReturn['type'] = this.type;
|
|
2971
3090
|
}
|
|
2972
3091
|
return toReturn;
|
|
2973
3092
|
}
|
|
@@ -3030,38 +3149,21 @@ class ListAvailableModelsRequestFilters {
|
|
|
3030
3149
|
return toReturn;
|
|
3031
3150
|
}
|
|
3032
3151
|
}
|
|
3033
|
-
class
|
|
3152
|
+
class ListGoalsRequestFilters {
|
|
3034
3153
|
static fromProto(proto) {
|
|
3035
|
-
let m = new
|
|
3154
|
+
let m = new ListGoalsRequestFilters();
|
|
3036
3155
|
m = Object.assign(m, proto);
|
|
3037
3156
|
if (proto.namespace) {
|
|
3038
3157
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3039
3158
|
}
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
constructor(kwargs) {
|
|
3043
|
-
if (!kwargs) {
|
|
3044
|
-
return;
|
|
3045
|
-
}
|
|
3046
|
-
Object.assign(this, kwargs);
|
|
3047
|
-
}
|
|
3048
|
-
toApiJson() {
|
|
3049
|
-
const toReturn = {};
|
|
3050
|
-
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
3051
|
-
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
3159
|
+
if (proto.type) {
|
|
3160
|
+
m.type = enumStringToValue(GoalType, proto.type);
|
|
3052
3161
|
}
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
}
|
|
3056
|
-
class ListAssistantRequestFilters {
|
|
3057
|
-
static fromProto(proto) {
|
|
3058
|
-
let m = new ListAssistantRequestFilters();
|
|
3059
|
-
m = Object.assign(m, proto);
|
|
3060
|
-
if (proto.namespace) {
|
|
3061
|
-
m.namespace = Namespace.fromProto(proto.namespace);
|
|
3162
|
+
if (proto.supportedChannels) {
|
|
3163
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
3062
3164
|
}
|
|
3063
|
-
if (proto.
|
|
3064
|
-
m.
|
|
3165
|
+
if (proto.namespaces) {
|
|
3166
|
+
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
3065
3167
|
}
|
|
3066
3168
|
return m;
|
|
3067
3169
|
}
|
|
@@ -3079,6 +3181,12 @@ class ListAssistantRequestFilters {
|
|
|
3079
3181
|
if (typeof this.type !== 'undefined') {
|
|
3080
3182
|
toReturn['type'] = this.type;
|
|
3081
3183
|
}
|
|
3184
|
+
if (typeof this.supportedChannels !== 'undefined') {
|
|
3185
|
+
toReturn['supportedChannels'] = this.supportedChannels;
|
|
3186
|
+
}
|
|
3187
|
+
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
3188
|
+
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
3189
|
+
}
|
|
3082
3190
|
return toReturn;
|
|
3083
3191
|
}
|
|
3084
3192
|
}
|
|
@@ -4669,10 +4777,13 @@ class CreatePromptModuleVersionRequestOptions {
|
|
|
4669
4777
|
return toReturn;
|
|
4670
4778
|
}
|
|
4671
4779
|
}
|
|
4672
|
-
class
|
|
4780
|
+
class GenerateChatAnswerRequestOptions {
|
|
4673
4781
|
static fromProto(proto) {
|
|
4674
|
-
let m = new
|
|
4782
|
+
let m = new GenerateChatAnswerRequestOptions();
|
|
4675
4783
|
m = Object.assign(m, proto);
|
|
4784
|
+
if (proto.maxTokens) {
|
|
4785
|
+
m.maxTokens = parseInt(proto.maxTokens, 10);
|
|
4786
|
+
}
|
|
4676
4787
|
return m;
|
|
4677
4788
|
}
|
|
4678
4789
|
constructor(kwargs) {
|
|
@@ -4683,15 +4794,21 @@ class GetAssistantRequestOptions {
|
|
|
4683
4794
|
}
|
|
4684
4795
|
toApiJson() {
|
|
4685
4796
|
const toReturn = {};
|
|
4686
|
-
if (typeof this.
|
|
4687
|
-
toReturn['
|
|
4797
|
+
if (typeof this.includeAllCitations !== 'undefined') {
|
|
4798
|
+
toReturn['includeAllCitations'] = this.includeAllCitations;
|
|
4799
|
+
}
|
|
4800
|
+
if (typeof this.enableAsyncFunctions !== 'undefined') {
|
|
4801
|
+
toReturn['enableAsyncFunctions'] = this.enableAsyncFunctions;
|
|
4802
|
+
}
|
|
4803
|
+
if (typeof this.maxTokens !== 'undefined') {
|
|
4804
|
+
toReturn['maxTokens'] = this.maxTokens;
|
|
4688
4805
|
}
|
|
4689
4806
|
return toReturn;
|
|
4690
4807
|
}
|
|
4691
4808
|
}
|
|
4692
|
-
class
|
|
4809
|
+
class UpsertAssistantRequestOptions {
|
|
4693
4810
|
static fromProto(proto) {
|
|
4694
|
-
let m = new
|
|
4811
|
+
let m = new UpsertAssistantRequestOptions();
|
|
4695
4812
|
m = Object.assign(m, proto);
|
|
4696
4813
|
return m;
|
|
4697
4814
|
}
|
|
@@ -4709,9 +4826,9 @@ class CreateAssistantRequestOptions {
|
|
|
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
|
}
|
|
@@ -4749,13 +4866,10 @@ class GetMultiAssistantRequestOptions {
|
|
|
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
|
}
|
|
@@ -5038,6 +5146,49 @@ class UpsertGoalRequest {
|
|
|
5038
5146
|
return toReturn;
|
|
5039
5147
|
}
|
|
5040
5148
|
}
|
|
5149
|
+
class ValidatePromptModuleRequest {
|
|
5150
|
+
static fromProto(proto) {
|
|
5151
|
+
let m = new ValidatePromptModuleRequest();
|
|
5152
|
+
m = Object.assign(m, proto);
|
|
5153
|
+
return m;
|
|
5154
|
+
}
|
|
5155
|
+
constructor(kwargs) {
|
|
5156
|
+
if (!kwargs) {
|
|
5157
|
+
return;
|
|
5158
|
+
}
|
|
5159
|
+
Object.assign(this, kwargs);
|
|
5160
|
+
}
|
|
5161
|
+
toApiJson() {
|
|
5162
|
+
const toReturn = {};
|
|
5163
|
+
if (typeof this.content !== 'undefined') {
|
|
5164
|
+
toReturn['content'] = this.content;
|
|
5165
|
+
}
|
|
5166
|
+
return toReturn;
|
|
5167
|
+
}
|
|
5168
|
+
}
|
|
5169
|
+
class ValidatePromptModuleResponse {
|
|
5170
|
+
static fromProto(proto) {
|
|
5171
|
+
let m = new ValidatePromptModuleResponse();
|
|
5172
|
+
m = Object.assign(m, proto);
|
|
5173
|
+
return m;
|
|
5174
|
+
}
|
|
5175
|
+
constructor(kwargs) {
|
|
5176
|
+
if (!kwargs) {
|
|
5177
|
+
return;
|
|
5178
|
+
}
|
|
5179
|
+
Object.assign(this, kwargs);
|
|
5180
|
+
}
|
|
5181
|
+
toApiJson() {
|
|
5182
|
+
const toReturn = {};
|
|
5183
|
+
if (typeof this.isValid !== 'undefined') {
|
|
5184
|
+
toReturn['isValid'] = this.isValid;
|
|
5185
|
+
}
|
|
5186
|
+
if (typeof this.errorMessage !== 'undefined') {
|
|
5187
|
+
toReturn['errorMessage'] = this.errorMessage;
|
|
5188
|
+
}
|
|
5189
|
+
return toReturn;
|
|
5190
|
+
}
|
|
5191
|
+
}
|
|
5041
5192
|
|
|
5042
5193
|
// *********************************
|
|
5043
5194
|
// Code generated by sdkgen
|
|
@@ -5244,6 +5395,10 @@ class FunctionApiService {
|
|
|
5244
5395
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/ListMCPs", request.toApiJson(), this.apiOptions())
|
|
5245
5396
|
.pipe(map(resp => ListMCPsResponse.fromProto(resp)));
|
|
5246
5397
|
}
|
|
5398
|
+
deleteMcp(r) {
|
|
5399
|
+
const request = (r.toApiJson) ? r : new DeleteMCPRequest(r);
|
|
5400
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.FunctionService/DeleteMCP", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
5401
|
+
}
|
|
5247
5402
|
}
|
|
5248
5403
|
FunctionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FunctionApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5249
5404
|
FunctionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FunctionApiService, providedIn: 'root' });
|
|
@@ -5453,6 +5608,11 @@ class PromptModuleApiService {
|
|
|
5453
5608
|
const request = (r.toApiJson) ? r : new DeletePromptModuleRequest(r);
|
|
5454
5609
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/Delete", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
5455
5610
|
}
|
|
5611
|
+
validate(r) {
|
|
5612
|
+
const request = (r.toApiJson) ? r : new ValidatePromptModuleRequest(r);
|
|
5613
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.PromptModuleService/Validate", request.toApiJson(), this.apiOptions())
|
|
5614
|
+
.pipe(map(resp => ValidatePromptModuleResponse.fromProto(resp)));
|
|
5615
|
+
}
|
|
5456
5616
|
}
|
|
5457
5617
|
PromptModuleApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptModuleApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5458
5618
|
PromptModuleApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PromptModuleApiService, providedIn: 'root' });
|
|
@@ -5546,5 +5706,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5546
5706
|
* Generated bundle index. Do not edit.
|
|
5547
5707
|
*/
|
|
5548
5708
|
|
|
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 };
|
|
5709
|
+
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, CancelTestRunRequest, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatContent, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigVoiceConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, ContextInfo, CreateAssistantRequest, CreateAssistantRequestOptions, CreateAssistantResponse, CreateGoalRequest, CreateGoalResponse, CreatePromptModuleRequest, CreatePromptModuleResponse, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeepgramConfig, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeleteMCPRequest, DeletePromptModuleRequest, DeletePromptRequest, DeleteTestCasesRequest, DeployPromptModuleRequest, DeployPromptRequest, ElevenLabsConfig, ExecuteFunctionRequest, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, GetAssistantRequestOptions, GetAssistantResponse, GetChatAnswerFunctionExecutionJobRequest, GetChatAnswerFunctionExecutionJobResponse, GetConnectionRequest, GetConnectionResponse, GetDeployedPromptModuleVersionRequest, GetDeployedPromptModuleVersionResponse, GetDeployedPromptVersionRequest, GetDeployedPromptVersionResponse, GetFunctionRequest, GetFunctionResponse, GetGoalRequest, GetGoalResponse, GetHydratedDeployedPromptModuleVersionRequest, GetHydratedDeployedPromptModuleVersionResponse, GetMultiAssistantRequest, GetMultiAssistantRequestOptions, GetMultiAssistantResponse, GetMultiDeployedPromptVersionRequest, GetMultiDeployedPromptVersionResponse, GetMultiFunctionRequest, GetMultiFunctionResponse, GetMultiGoalRequest, GetMultiGoalResponse, GetMultiHydratedDeployedPromptModuleVersionRequest, GetMultiHydratedDeployedPromptModuleVersionResponse, GetPromptModuleRequest, GetPromptModuleResponse, GetPromptModuleVersionRequest, GetPromptModuleVersionResponse, GetPromptRequest, GetPromptResponse, GetPromptVersionRequest, GetPromptVersionResponse, GetTestRunRequest, GetTestRunResponse, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, GoalsDisabledForAccountGroupRequest, GoalsDisabledForAccountGroupResponse, HostService, ImageContent, IntegrationTestApiService, KeyValuePair, ListAllAssistantsAssociatedToConnectionRequest, ListAllAssistantsAssociatedToConnectionRequestFilters, ListAllAssistantsAssociatedToConnectionResponse, ListAssistantRequest, ListAssistantRequestFilters, ListAssistantResponse, ListAvailableModelsRequest, ListAvailableModelsRequestFilters, ListAvailableModelsResponse, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsResponse, ListMCPToolsRequest, ListMCPToolsResponse, ListMCPsRequest, ListMCPsRequestFilters, ListMCPsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, MCP, MCPOptions, Model, ModelConfig, ModelType, ModelVendor, Namespace, NamespaceAccountGroupNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, OpenAIRealtimeConfig, OpenAIRealtimeConfigTurnDetection, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, RunTestsRequest, RunTestsResponse, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, SortDirection, SortOptions, TestCase, TestResult, TestResultCitation, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertMCPRequest, UpsertTestCasesRequest, ValidatePromptModuleRequest, ValidatePromptModuleResponse, VendorModel };
|
|
5550
5710
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|