@vendasta/ai-assistants 0.38.0 → 0.39.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/assistant.api.service.mjs +7 -2
- package/esm2020/lib/_internal/enums/index.mjs +2 -2
- package/esm2020/lib/_internal/enums/model.enum.mjs +24 -0
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/assistant.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/model.interface.mjs +8 -0
- package/esm2020/lib/_internal/objects/api.mjs +133 -37
- package/esm2020/lib/_internal/objects/assistant.mjs +8 -1
- package/esm2020/lib/_internal/objects/index.mjs +3 -2
- package/esm2020/lib/_internal/objects/model.mjs +46 -0
- package/fesm2015/vendasta-ai-assistants.mjs +220 -63
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +220 -63
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/assistant.api.service.d.ts +3 -2
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/enums/model.enum.d.ts +15 -0
- package/lib/_internal/interfaces/api.interface.d.ts +28 -14
- package/lib/_internal/interfaces/assistant.interface.d.ts +2 -0
- package/lib/_internal/interfaces/index.d.ts +2 -1
- package/lib/_internal/interfaces/model.interface.d.ts +8 -0
- package/lib/_internal/objects/api.d.ts +42 -16
- package/lib/_internal/objects/assistant.d.ts +2 -0
- package/lib/_internal/objects/index.d.ts +2 -1
- package/lib/_internal/objects/model.d.ts +13 -0
- package/package.json +1 -1
- package/esm2020/lib/_internal/enums/api.enum.mjs +0 -18
- package/lib/_internal/enums/api.enum.d.ts +0 -10
|
@@ -67,6 +67,30 @@ var GoalType;
|
|
|
67
67
|
GoalType[GoalType["GOAL_TYPE_CUSTOM"] = 4] = "GOAL_TYPE_CUSTOM";
|
|
68
68
|
})(GoalType || (GoalType = {}));
|
|
69
69
|
|
|
70
|
+
// *********************************
|
|
71
|
+
// Code generated by sdkgen
|
|
72
|
+
// DO NOT EDIT!.
|
|
73
|
+
//
|
|
74
|
+
// Enums.
|
|
75
|
+
// *********************************
|
|
76
|
+
var ModelType;
|
|
77
|
+
(function (ModelType) {
|
|
78
|
+
ModelType[ModelType["TYPE_UNSET"] = 0] = "TYPE_UNSET";
|
|
79
|
+
ModelType[ModelType["TYPE_LARGE_LANGUAGE_MODEL"] = 1] = "TYPE_LARGE_LANGUAGE_MODEL";
|
|
80
|
+
ModelType[ModelType["TYPE_SPEECH_TO_TEXT"] = 2] = "TYPE_SPEECH_TO_TEXT";
|
|
81
|
+
ModelType[ModelType["TYPE_TEXT_TO_SPEECH"] = 3] = "TYPE_TEXT_TO_SPEECH";
|
|
82
|
+
ModelType[ModelType["TYPE_SPEECH_TO_SPEECH"] = 4] = "TYPE_SPEECH_TO_SPEECH";
|
|
83
|
+
ModelType[ModelType["TYPE_TEXT_TO_IMAGE"] = 5] = "TYPE_TEXT_TO_IMAGE";
|
|
84
|
+
ModelType[ModelType["TYPE_TEXT_TO_VIDEO"] = 6] = "TYPE_TEXT_TO_VIDEO";
|
|
85
|
+
})(ModelType || (ModelType = {}));
|
|
86
|
+
var ModelVendor;
|
|
87
|
+
(function (ModelVendor) {
|
|
88
|
+
ModelVendor[ModelVendor["VENDOR_UNSET"] = 0] = "VENDOR_UNSET";
|
|
89
|
+
ModelVendor[ModelVendor["VENDOR_OPENAI"] = 1] = "VENDOR_OPENAI";
|
|
90
|
+
ModelVendor[ModelVendor["VENDOR_GOOGLE"] = 2] = "VENDOR_GOOGLE";
|
|
91
|
+
ModelVendor[ModelVendor["VENDOR_DEEPGRAM"] = 3] = "VENDOR_DEEPGRAM";
|
|
92
|
+
})(ModelVendor || (ModelVendor = {}));
|
|
93
|
+
|
|
70
94
|
// *********************************
|
|
71
95
|
// Code generated by sdkgen
|
|
72
96
|
// DO NOT EDIT!.
|
|
@@ -137,24 +161,6 @@ var SortDirection;
|
|
|
137
161
|
SortDirection[SortDirection["SORT_DIRECTION_DESCENDING"] = 2] = "SORT_DIRECTION_DESCENDING";
|
|
138
162
|
})(SortDirection || (SortDirection = {}));
|
|
139
163
|
|
|
140
|
-
// *********************************
|
|
141
|
-
// Code generated by sdkgen
|
|
142
|
-
// DO NOT EDIT!.
|
|
143
|
-
//
|
|
144
|
-
// Enums.
|
|
145
|
-
// *********************************
|
|
146
|
-
var GenerateChatAnswerRequestModel;
|
|
147
|
-
(function (GenerateChatAnswerRequestModel) {
|
|
148
|
-
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_NOT_SET"] = 0] = "MODEL_NOT_SET";
|
|
149
|
-
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_OPENAI_GPT_4OMNI"] = 1] = "MODEL_OPENAI_GPT_4OMNI";
|
|
150
|
-
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_OPENAI_GPT_4OMNI_MINI"] = 2] = "MODEL_OPENAI_GPT_4OMNI_MINI";
|
|
151
|
-
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_OPENAI_GPT_4DOT1"] = 3] = "MODEL_OPENAI_GPT_4DOT1";
|
|
152
|
-
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_OPENAI_GPT_4DOT1_MINI"] = 4] = "MODEL_OPENAI_GPT_4DOT1_MINI";
|
|
153
|
-
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_OPENAI_GPT_4DOT1_NANO"] = 5] = "MODEL_OPENAI_GPT_4DOT1_NANO";
|
|
154
|
-
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_GOOGLE_GEMINI_2DOT5_PRO_PREVIEW"] = 6] = "MODEL_GOOGLE_GEMINI_2DOT5_PRO_PREVIEW";
|
|
155
|
-
GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_GOOGLE_GEMINI_2DOT5_FLASH_PREVIEW"] = 7] = "MODEL_GOOGLE_GEMINI_2DOT5_FLASH_PREVIEW";
|
|
156
|
-
})(GenerateChatAnswerRequestModel || (GenerateChatAnswerRequestModel = {}));
|
|
157
|
-
|
|
158
164
|
// *********************************
|
|
159
165
|
// Code generated by sdkgen
|
|
160
166
|
// DO NOT EDIT!.
|
|
@@ -162,7 +168,7 @@ var GenerateChatAnswerRequestModel;
|
|
|
162
168
|
// Enums Index.
|
|
163
169
|
// *********************************
|
|
164
170
|
|
|
165
|
-
function enumStringToValue$
|
|
171
|
+
function enumStringToValue$d(enumRef, value) {
|
|
166
172
|
if (typeof value === 'number') {
|
|
167
173
|
return value;
|
|
168
174
|
}
|
|
@@ -284,7 +290,7 @@ class NamespaceSystemNamespace {
|
|
|
284
290
|
}
|
|
285
291
|
}
|
|
286
292
|
|
|
287
|
-
function enumStringToValue$
|
|
293
|
+
function enumStringToValue$c(enumRef, value) {
|
|
288
294
|
if (typeof value === 'number') {
|
|
289
295
|
return value;
|
|
290
296
|
}
|
|
@@ -444,7 +450,7 @@ class FunctionParameter {
|
|
|
444
450
|
m.items = FunctionParameter.fromProto(proto.items);
|
|
445
451
|
}
|
|
446
452
|
if (proto.location) {
|
|
447
|
-
m.location = enumStringToValue$
|
|
453
|
+
m.location = enumStringToValue$c(FunctionParameterParameterLocation, proto.location);
|
|
448
454
|
}
|
|
449
455
|
return m;
|
|
450
456
|
}
|
|
@@ -518,7 +524,7 @@ class FunctionAuthStrategyUnspecifiedFunctionAuthStrategy {
|
|
|
518
524
|
}
|
|
519
525
|
}
|
|
520
526
|
|
|
521
|
-
function enumStringToValue$
|
|
527
|
+
function enumStringToValue$b(enumRef, value) {
|
|
522
528
|
if (typeof value === 'number') {
|
|
523
529
|
return value;
|
|
524
530
|
}
|
|
@@ -721,7 +727,7 @@ class PromptVersion {
|
|
|
721
727
|
}
|
|
722
728
|
}
|
|
723
729
|
|
|
724
|
-
function enumStringToValue$
|
|
730
|
+
function enumStringToValue$a(enumRef, value) {
|
|
725
731
|
if (typeof value === 'number') {
|
|
726
732
|
return value;
|
|
727
733
|
}
|
|
@@ -735,7 +741,7 @@ class Goal {
|
|
|
735
741
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
736
742
|
}
|
|
737
743
|
if (proto.type) {
|
|
738
|
-
m.type = enumStringToValue$
|
|
744
|
+
m.type = enumStringToValue$a(GoalType, proto.type);
|
|
739
745
|
}
|
|
740
746
|
if (proto.promptModules) {
|
|
741
747
|
m.promptModules = proto.promptModules.map(PromptModule.fromProto);
|
|
@@ -747,7 +753,7 @@ class Goal {
|
|
|
747
753
|
m.updated = new Date(proto.updated);
|
|
748
754
|
}
|
|
749
755
|
if (proto.supportedChannels) {
|
|
750
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue$
|
|
756
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue$a(GoalChannel, v));
|
|
751
757
|
}
|
|
752
758
|
return m;
|
|
753
759
|
}
|
|
@@ -822,7 +828,7 @@ class GoalKey {
|
|
|
822
828
|
}
|
|
823
829
|
}
|
|
824
830
|
|
|
825
|
-
function enumStringToValue$
|
|
831
|
+
function enumStringToValue$9(enumRef, value) {
|
|
826
832
|
if (typeof value === 'number') {
|
|
827
833
|
return value;
|
|
828
834
|
}
|
|
@@ -852,6 +858,51 @@ class KeyValuePair {
|
|
|
852
858
|
}
|
|
853
859
|
}
|
|
854
860
|
|
|
861
|
+
function enumStringToValue$8(enumRef, value) {
|
|
862
|
+
if (typeof value === 'number') {
|
|
863
|
+
return value;
|
|
864
|
+
}
|
|
865
|
+
return enumRef[value];
|
|
866
|
+
}
|
|
867
|
+
class Model {
|
|
868
|
+
static fromProto(proto) {
|
|
869
|
+
let m = new Model();
|
|
870
|
+
m = Object.assign(m, proto);
|
|
871
|
+
if (proto.vendor) {
|
|
872
|
+
m.vendor = enumStringToValue$8(ModelVendor, proto.vendor);
|
|
873
|
+
}
|
|
874
|
+
if (proto.type) {
|
|
875
|
+
m.type = enumStringToValue$8(ModelType, proto.type);
|
|
876
|
+
}
|
|
877
|
+
return m;
|
|
878
|
+
}
|
|
879
|
+
constructor(kwargs) {
|
|
880
|
+
if (!kwargs) {
|
|
881
|
+
return;
|
|
882
|
+
}
|
|
883
|
+
Object.assign(this, kwargs);
|
|
884
|
+
}
|
|
885
|
+
toApiJson() {
|
|
886
|
+
const toReturn = {};
|
|
887
|
+
if (typeof this.id !== 'undefined') {
|
|
888
|
+
toReturn['id'] = this.id;
|
|
889
|
+
}
|
|
890
|
+
if (typeof this.vendor !== 'undefined') {
|
|
891
|
+
toReturn['vendor'] = this.vendor;
|
|
892
|
+
}
|
|
893
|
+
if (typeof this.type !== 'undefined') {
|
|
894
|
+
toReturn['type'] = this.type;
|
|
895
|
+
}
|
|
896
|
+
if (typeof this.name !== 'undefined') {
|
|
897
|
+
toReturn['name'] = this.name;
|
|
898
|
+
}
|
|
899
|
+
if (typeof this.recommended !== 'undefined') {
|
|
900
|
+
toReturn['recommended'] = this.recommended;
|
|
901
|
+
}
|
|
902
|
+
return toReturn;
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
|
|
855
906
|
function enumStringToValue$7(enumRef, value) {
|
|
856
907
|
if (typeof value === 'number') {
|
|
857
908
|
return value;
|
|
@@ -947,6 +998,9 @@ class Config {
|
|
|
947
998
|
if (proto.voiceConfig) {
|
|
948
999
|
m.voiceConfig = ConfigVoiceConfig.fromProto(proto.voiceConfig);
|
|
949
1000
|
}
|
|
1001
|
+
if (proto.models) {
|
|
1002
|
+
m.models = proto.models.map(Model.fromProto);
|
|
1003
|
+
}
|
|
950
1004
|
return m;
|
|
951
1005
|
}
|
|
952
1006
|
constructor(kwargs) {
|
|
@@ -963,6 +1017,9 @@ class Config {
|
|
|
963
1017
|
if (typeof this.voiceConfig !== 'undefined' && this.voiceConfig !== null) {
|
|
964
1018
|
toReturn['voiceConfig'] = 'toApiJson' in this.voiceConfig ? this.voiceConfig.toApiJson() : this.voiceConfig;
|
|
965
1019
|
}
|
|
1020
|
+
if (typeof this.models !== 'undefined' && this.models !== null) {
|
|
1021
|
+
toReturn['models'] = 'toApiJson' in this.models ? this.models.toApiJson() : this.models;
|
|
1022
|
+
}
|
|
966
1023
|
return toReturn;
|
|
967
1024
|
}
|
|
968
1025
|
}
|
|
@@ -2533,21 +2590,12 @@ class ExecuteFunctionResponse {
|
|
|
2533
2590
|
return toReturn;
|
|
2534
2591
|
}
|
|
2535
2592
|
}
|
|
2536
|
-
class
|
|
2593
|
+
class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
2537
2594
|
static fromProto(proto) {
|
|
2538
|
-
let m = new
|
|
2595
|
+
let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
|
|
2539
2596
|
m = Object.assign(m, proto);
|
|
2540
|
-
if (proto.namespace) {
|
|
2541
|
-
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2542
|
-
}
|
|
2543
2597
|
if (proto.type) {
|
|
2544
|
-
m.type = enumStringToValue(
|
|
2545
|
-
}
|
|
2546
|
-
if (proto.supportedChannels) {
|
|
2547
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
2548
|
-
}
|
|
2549
|
-
if (proto.namespaces) {
|
|
2550
|
-
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
2598
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
2551
2599
|
}
|
|
2552
2600
|
return m;
|
|
2553
2601
|
}
|
|
@@ -2559,18 +2607,9 @@ class ListGoalsRequestFilters {
|
|
|
2559
2607
|
}
|
|
2560
2608
|
toApiJson() {
|
|
2561
2609
|
const toReturn = {};
|
|
2562
|
-
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2563
|
-
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2564
|
-
}
|
|
2565
2610
|
if (typeof this.type !== 'undefined') {
|
|
2566
2611
|
toReturn['type'] = this.type;
|
|
2567
2612
|
}
|
|
2568
|
-
if (typeof this.supportedChannels !== 'undefined') {
|
|
2569
|
-
toReturn['supportedChannels'] = this.supportedChannels;
|
|
2570
|
-
}
|
|
2571
|
-
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
2572
|
-
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
2573
|
-
}
|
|
2574
2613
|
return toReturn;
|
|
2575
2614
|
}
|
|
2576
2615
|
}
|
|
@@ -2626,12 +2665,44 @@ class ListFunctionRequestFilters {
|
|
|
2626
2665
|
return toReturn;
|
|
2627
2666
|
}
|
|
2628
2667
|
}
|
|
2629
|
-
class
|
|
2668
|
+
class ListPromptModuleRequestFilters {
|
|
2630
2669
|
static fromProto(proto) {
|
|
2631
|
-
let m = new
|
|
2670
|
+
let m = new ListPromptModuleRequestFilters();
|
|
2671
|
+
m = Object.assign(m, proto);
|
|
2672
|
+
if (proto.namespace) {
|
|
2673
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2674
|
+
}
|
|
2675
|
+
return m;
|
|
2676
|
+
}
|
|
2677
|
+
constructor(kwargs) {
|
|
2678
|
+
if (!kwargs) {
|
|
2679
|
+
return;
|
|
2680
|
+
}
|
|
2681
|
+
Object.assign(this, kwargs);
|
|
2682
|
+
}
|
|
2683
|
+
toApiJson() {
|
|
2684
|
+
const toReturn = {};
|
|
2685
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2686
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2687
|
+
}
|
|
2688
|
+
return toReturn;
|
|
2689
|
+
}
|
|
2690
|
+
}
|
|
2691
|
+
class ListGoalsRequestFilters {
|
|
2692
|
+
static fromProto(proto) {
|
|
2693
|
+
let m = new ListGoalsRequestFilters();
|
|
2632
2694
|
m = Object.assign(m, proto);
|
|
2695
|
+
if (proto.namespace) {
|
|
2696
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2697
|
+
}
|
|
2633
2698
|
if (proto.type) {
|
|
2634
|
-
m.type = enumStringToValue(
|
|
2699
|
+
m.type = enumStringToValue(GoalType, proto.type);
|
|
2700
|
+
}
|
|
2701
|
+
if (proto.supportedChannels) {
|
|
2702
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
2703
|
+
}
|
|
2704
|
+
if (proto.namespaces) {
|
|
2705
|
+
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
2635
2706
|
}
|
|
2636
2707
|
return m;
|
|
2637
2708
|
}
|
|
@@ -2643,9 +2714,18 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
2643
2714
|
}
|
|
2644
2715
|
toApiJson() {
|
|
2645
2716
|
const toReturn = {};
|
|
2717
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2718
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2719
|
+
}
|
|
2646
2720
|
if (typeof this.type !== 'undefined') {
|
|
2647
2721
|
toReturn['type'] = this.type;
|
|
2648
2722
|
}
|
|
2723
|
+
if (typeof this.supportedChannels !== 'undefined') {
|
|
2724
|
+
toReturn['supportedChannels'] = this.supportedChannels;
|
|
2725
|
+
}
|
|
2726
|
+
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
2727
|
+
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
2728
|
+
}
|
|
2649
2729
|
return toReturn;
|
|
2650
2730
|
}
|
|
2651
2731
|
}
|
|
@@ -2678,12 +2758,15 @@ class ListAssistantRequestFilters {
|
|
|
2678
2758
|
return toReturn;
|
|
2679
2759
|
}
|
|
2680
2760
|
}
|
|
2681
|
-
class
|
|
2761
|
+
class ListAvailableModelsRequestFilters {
|
|
2682
2762
|
static fromProto(proto) {
|
|
2683
|
-
let m = new
|
|
2763
|
+
let m = new ListAvailableModelsRequestFilters();
|
|
2684
2764
|
m = Object.assign(m, proto);
|
|
2685
|
-
if (proto.
|
|
2686
|
-
m.
|
|
2765
|
+
if (proto.vendor) {
|
|
2766
|
+
m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
|
|
2767
|
+
}
|
|
2768
|
+
if (proto.type) {
|
|
2769
|
+
m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
|
|
2687
2770
|
}
|
|
2688
2771
|
return m;
|
|
2689
2772
|
}
|
|
@@ -2695,8 +2778,11 @@ class ListPromptModuleRequestFilters {
|
|
|
2695
2778
|
}
|
|
2696
2779
|
toApiJson() {
|
|
2697
2780
|
const toReturn = {};
|
|
2698
|
-
if (typeof this.
|
|
2699
|
-
toReturn['
|
|
2781
|
+
if (typeof this.vendor !== 'undefined') {
|
|
2782
|
+
toReturn['vendor'] = this.vendor;
|
|
2783
|
+
}
|
|
2784
|
+
if (typeof this.type !== 'undefined') {
|
|
2785
|
+
toReturn['type'] = this.type;
|
|
2700
2786
|
}
|
|
2701
2787
|
return toReturn;
|
|
2702
2788
|
}
|
|
@@ -2796,6 +2882,9 @@ class GetAssistantRequest {
|
|
|
2796
2882
|
if (proto.namespace) {
|
|
2797
2883
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2798
2884
|
}
|
|
2885
|
+
if (proto.options) {
|
|
2886
|
+
m.options = GetAssistantRequestOptions.fromProto(proto.options);
|
|
2887
|
+
}
|
|
2799
2888
|
return m;
|
|
2800
2889
|
}
|
|
2801
2890
|
constructor(kwargs) {
|
|
@@ -2812,6 +2901,9 @@ class GetAssistantRequest {
|
|
|
2812
2901
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2813
2902
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2814
2903
|
}
|
|
2904
|
+
if (typeof this.options !== 'undefined' && this.options !== null) {
|
|
2905
|
+
toReturn['options'] = 'toApiJson' in this.options ? this.options.toApiJson() : this.options;
|
|
2906
|
+
}
|
|
2815
2907
|
return toReturn;
|
|
2816
2908
|
}
|
|
2817
2909
|
}
|
|
@@ -3726,6 +3818,52 @@ class ListAssistantResponse {
|
|
|
3726
3818
|
return toReturn;
|
|
3727
3819
|
}
|
|
3728
3820
|
}
|
|
3821
|
+
class ListAvailableModelsRequest {
|
|
3822
|
+
static fromProto(proto) {
|
|
3823
|
+
let m = new ListAvailableModelsRequest();
|
|
3824
|
+
m = Object.assign(m, proto);
|
|
3825
|
+
if (proto.filters) {
|
|
3826
|
+
m.filters = ListAvailableModelsRequestFilters.fromProto(proto.filters);
|
|
3827
|
+
}
|
|
3828
|
+
return m;
|
|
3829
|
+
}
|
|
3830
|
+
constructor(kwargs) {
|
|
3831
|
+
if (!kwargs) {
|
|
3832
|
+
return;
|
|
3833
|
+
}
|
|
3834
|
+
Object.assign(this, kwargs);
|
|
3835
|
+
}
|
|
3836
|
+
toApiJson() {
|
|
3837
|
+
const toReturn = {};
|
|
3838
|
+
if (typeof this.filters !== 'undefined' && this.filters !== null) {
|
|
3839
|
+
toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
|
|
3840
|
+
}
|
|
3841
|
+
return toReturn;
|
|
3842
|
+
}
|
|
3843
|
+
}
|
|
3844
|
+
class ListAvailableModelsResponse {
|
|
3845
|
+
static fromProto(proto) {
|
|
3846
|
+
let m = new ListAvailableModelsResponse();
|
|
3847
|
+
m = Object.assign(m, proto);
|
|
3848
|
+
if (proto.models) {
|
|
3849
|
+
m.models = proto.models.map(Model.fromProto);
|
|
3850
|
+
}
|
|
3851
|
+
return m;
|
|
3852
|
+
}
|
|
3853
|
+
constructor(kwargs) {
|
|
3854
|
+
if (!kwargs) {
|
|
3855
|
+
return;
|
|
3856
|
+
}
|
|
3857
|
+
Object.assign(this, kwargs);
|
|
3858
|
+
}
|
|
3859
|
+
toApiJson() {
|
|
3860
|
+
const toReturn = {};
|
|
3861
|
+
if (typeof this.models !== 'undefined' && this.models !== null) {
|
|
3862
|
+
toReturn['models'] = 'toApiJson' in this.models ? this.models.toApiJson() : this.models;
|
|
3863
|
+
}
|
|
3864
|
+
return toReturn;
|
|
3865
|
+
}
|
|
3866
|
+
}
|
|
3729
3867
|
class ListConnectionsRequest {
|
|
3730
3868
|
static fromProto(proto) {
|
|
3731
3869
|
let m = new ListConnectionsRequest();
|
|
@@ -4148,9 +4286,6 @@ class GenerateChatAnswerRequestOptions {
|
|
|
4148
4286
|
if (proto.maxTokens) {
|
|
4149
4287
|
m.maxTokens = parseInt(proto.maxTokens, 10);
|
|
4150
4288
|
}
|
|
4151
|
-
if (proto.model) {
|
|
4152
|
-
m.model = enumStringToValue(GenerateChatAnswerRequestModel, proto.model);
|
|
4153
|
-
}
|
|
4154
4289
|
return m;
|
|
4155
4290
|
}
|
|
4156
4291
|
constructor(kwargs) {
|
|
@@ -4170,9 +4305,6 @@ class GenerateChatAnswerRequestOptions {
|
|
|
4170
4305
|
if (typeof this.maxTokens !== 'undefined') {
|
|
4171
4306
|
toReturn['maxTokens'] = this.maxTokens;
|
|
4172
4307
|
}
|
|
4173
|
-
if (typeof this.model !== 'undefined') {
|
|
4174
|
-
toReturn['model'] = this.model;
|
|
4175
|
-
}
|
|
4176
4308
|
return toReturn;
|
|
4177
4309
|
}
|
|
4178
4310
|
}
|
|
@@ -4196,6 +4328,26 @@ class CreateAssistantRequestOptions {
|
|
|
4196
4328
|
return toReturn;
|
|
4197
4329
|
}
|
|
4198
4330
|
}
|
|
4331
|
+
class GetAssistantRequestOptions {
|
|
4332
|
+
static fromProto(proto) {
|
|
4333
|
+
let m = new GetAssistantRequestOptions();
|
|
4334
|
+
m = Object.assign(m, proto);
|
|
4335
|
+
return m;
|
|
4336
|
+
}
|
|
4337
|
+
constructor(kwargs) {
|
|
4338
|
+
if (!kwargs) {
|
|
4339
|
+
return;
|
|
4340
|
+
}
|
|
4341
|
+
Object.assign(this, kwargs);
|
|
4342
|
+
}
|
|
4343
|
+
toApiJson() {
|
|
4344
|
+
const toReturn = {};
|
|
4345
|
+
if (typeof this.skipGoalsHydration !== 'undefined') {
|
|
4346
|
+
toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
|
|
4347
|
+
}
|
|
4348
|
+
return toReturn;
|
|
4349
|
+
}
|
|
4350
|
+
}
|
|
4199
4351
|
class CreatePromptModuleVersionRequestOptions {
|
|
4200
4352
|
static fromProto(proto) {
|
|
4201
4353
|
let m = new CreatePromptModuleVersionRequestOptions();
|
|
@@ -4581,6 +4733,11 @@ class AssistantApiService {
|
|
|
4581
4733
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/ExecuteFunction", request.toApiJson(), this.apiOptions())
|
|
4582
4734
|
.pipe(map(resp => ExecuteFunctionResponse.fromProto(resp)));
|
|
4583
4735
|
}
|
|
4736
|
+
listAvailableModels(r) {
|
|
4737
|
+
const request = (r.toApiJson) ? r : new ListAvailableModelsRequest(r);
|
|
4738
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/ListAvailableModels", request.toApiJson(), this.apiOptions())
|
|
4739
|
+
.pipe(map(resp => ListAvailableModelsResponse.fromProto(resp)));
|
|
4740
|
+
}
|
|
4584
4741
|
}
|
|
4585
4742
|
AssistantApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4586
4743
|
AssistantApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, providedIn: 'root' });
|
|
@@ -4980,5 +5137,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4980
5137
|
* Generated bundle index. Do not edit.
|
|
4981
5138
|
*/
|
|
4982
5139
|
|
|
4983
|
-
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, ExecuteFunctionRequest, ExecuteFunctionResponse, FieldMask, Function, FunctionApiService, FunctionAuthStrategy, FunctionAuthStrategyPlatformManagedFunctionAuthStrategy, FunctionAuthStrategyUnspecifiedFunctionAuthStrategy, FunctionHeader, FunctionKey, FunctionParameter, FunctionParameterParameterLocation, GenerateChatAnswerRequest,
|
|
5140
|
+
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, 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, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, 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, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertTestCasesRequest, VendorModel };
|
|
4984
5141
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|