@vendasta/ai-assistants 0.38.0 → 0.40.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.
Files changed (33) hide show
  1. package/esm2020/lib/_internal/assistant.api.service.mjs +7 -2
  2. package/esm2020/lib/_internal/enums/index.mjs +2 -2
  3. package/esm2020/lib/_internal/enums/model.enum.mjs +24 -0
  4. package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
  5. package/esm2020/lib/_internal/interfaces/assistant.interface.mjs +1 -1
  6. package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
  7. package/esm2020/lib/_internal/interfaces/integration-tests.interface.mjs +1 -1
  8. package/esm2020/lib/_internal/interfaces/model.interface.mjs +8 -0
  9. package/esm2020/lib/_internal/objects/api.mjs +133 -37
  10. package/esm2020/lib/_internal/objects/assistant.mjs +8 -1
  11. package/esm2020/lib/_internal/objects/index.mjs +4 -3
  12. package/esm2020/lib/_internal/objects/integration-tests.mjs +45 -1
  13. package/esm2020/lib/_internal/objects/model.mjs +46 -0
  14. package/fesm2015/vendasta-ai-assistants.mjs +264 -63
  15. package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
  16. package/fesm2020/vendasta-ai-assistants.mjs +264 -63
  17. package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
  18. package/lib/_internal/assistant.api.service.d.ts +3 -2
  19. package/lib/_internal/enums/index.d.ts +1 -1
  20. package/lib/_internal/enums/model.enum.d.ts +15 -0
  21. package/lib/_internal/interfaces/api.interface.d.ts +28 -14
  22. package/lib/_internal/interfaces/assistant.interface.d.ts +2 -0
  23. package/lib/_internal/interfaces/index.d.ts +3 -2
  24. package/lib/_internal/interfaces/integration-tests.interface.d.ts +10 -0
  25. package/lib/_internal/interfaces/model.interface.d.ts +8 -0
  26. package/lib/_internal/objects/api.d.ts +42 -16
  27. package/lib/_internal/objects/assistant.d.ts +2 -0
  28. package/lib/_internal/objects/index.d.ts +3 -2
  29. package/lib/_internal/objects/integration-tests.d.ts +13 -0
  30. package/lib/_internal/objects/model.d.ts +13 -0
  31. package/package.json +1 -1
  32. package/esm2020/lib/_internal/enums/api.enum.mjs +0 -18
  33. package/lib/_internal/enums/api.enum.d.ts +0 -10
@@ -68,6 +68,30 @@ var GoalType;
68
68
  GoalType[GoalType["GOAL_TYPE_CUSTOM"] = 4] = "GOAL_TYPE_CUSTOM";
69
69
  })(GoalType || (GoalType = {}));
70
70
 
71
+ // *********************************
72
+ // Code generated by sdkgen
73
+ // DO NOT EDIT!.
74
+ //
75
+ // Enums.
76
+ // *********************************
77
+ var ModelType;
78
+ (function (ModelType) {
79
+ ModelType[ModelType["TYPE_UNSET"] = 0] = "TYPE_UNSET";
80
+ ModelType[ModelType["TYPE_LARGE_LANGUAGE_MODEL"] = 1] = "TYPE_LARGE_LANGUAGE_MODEL";
81
+ ModelType[ModelType["TYPE_SPEECH_TO_TEXT"] = 2] = "TYPE_SPEECH_TO_TEXT";
82
+ ModelType[ModelType["TYPE_TEXT_TO_SPEECH"] = 3] = "TYPE_TEXT_TO_SPEECH";
83
+ ModelType[ModelType["TYPE_SPEECH_TO_SPEECH"] = 4] = "TYPE_SPEECH_TO_SPEECH";
84
+ ModelType[ModelType["TYPE_TEXT_TO_IMAGE"] = 5] = "TYPE_TEXT_TO_IMAGE";
85
+ ModelType[ModelType["TYPE_TEXT_TO_VIDEO"] = 6] = "TYPE_TEXT_TO_VIDEO";
86
+ })(ModelType || (ModelType = {}));
87
+ var ModelVendor;
88
+ (function (ModelVendor) {
89
+ ModelVendor[ModelVendor["VENDOR_UNSET"] = 0] = "VENDOR_UNSET";
90
+ ModelVendor[ModelVendor["VENDOR_OPENAI"] = 1] = "VENDOR_OPENAI";
91
+ ModelVendor[ModelVendor["VENDOR_GOOGLE"] = 2] = "VENDOR_GOOGLE";
92
+ ModelVendor[ModelVendor["VENDOR_DEEPGRAM"] = 3] = "VENDOR_DEEPGRAM";
93
+ })(ModelVendor || (ModelVendor = {}));
94
+
71
95
  // *********************************
72
96
  // Code generated by sdkgen
73
97
  // DO NOT EDIT!.
@@ -138,24 +162,6 @@ var SortDirection;
138
162
  SortDirection[SortDirection["SORT_DIRECTION_DESCENDING"] = 2] = "SORT_DIRECTION_DESCENDING";
139
163
  })(SortDirection || (SortDirection = {}));
140
164
 
141
- // *********************************
142
- // Code generated by sdkgen
143
- // DO NOT EDIT!.
144
- //
145
- // Enums.
146
- // *********************************
147
- var GenerateChatAnswerRequestModel;
148
- (function (GenerateChatAnswerRequestModel) {
149
- GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_NOT_SET"] = 0] = "MODEL_NOT_SET";
150
- GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_OPENAI_GPT_4OMNI"] = 1] = "MODEL_OPENAI_GPT_4OMNI";
151
- GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_OPENAI_GPT_4OMNI_MINI"] = 2] = "MODEL_OPENAI_GPT_4OMNI_MINI";
152
- GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_OPENAI_GPT_4DOT1"] = 3] = "MODEL_OPENAI_GPT_4DOT1";
153
- GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_OPENAI_GPT_4DOT1_MINI"] = 4] = "MODEL_OPENAI_GPT_4DOT1_MINI";
154
- GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_OPENAI_GPT_4DOT1_NANO"] = 5] = "MODEL_OPENAI_GPT_4DOT1_NANO";
155
- GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_GOOGLE_GEMINI_2DOT5_PRO_PREVIEW"] = 6] = "MODEL_GOOGLE_GEMINI_2DOT5_PRO_PREVIEW";
156
- GenerateChatAnswerRequestModel[GenerateChatAnswerRequestModel["MODEL_GOOGLE_GEMINI_2DOT5_FLASH_PREVIEW"] = 7] = "MODEL_GOOGLE_GEMINI_2DOT5_FLASH_PREVIEW";
157
- })(GenerateChatAnswerRequestModel || (GenerateChatAnswerRequestModel = {}));
158
-
159
165
  // *********************************
160
166
  // Code generated by sdkgen
161
167
  // DO NOT EDIT!.
@@ -163,7 +169,7 @@ var GenerateChatAnswerRequestModel;
163
169
  // Enums Index.
164
170
  // *********************************
165
171
 
166
- function enumStringToValue$c(enumRef, value) {
172
+ function enumStringToValue$d(enumRef, value) {
167
173
  if (typeof value === 'number') {
168
174
  return value;
169
175
  }
@@ -285,7 +291,7 @@ class NamespaceSystemNamespace {
285
291
  }
286
292
  }
287
293
 
288
- function enumStringToValue$b(enumRef, value) {
294
+ function enumStringToValue$c(enumRef, value) {
289
295
  if (typeof value === 'number') {
290
296
  return value;
291
297
  }
@@ -445,7 +451,7 @@ class FunctionParameter {
445
451
  m.items = FunctionParameter.fromProto(proto.items);
446
452
  }
447
453
  if (proto.location) {
448
- m.location = enumStringToValue$b(FunctionParameterParameterLocation, proto.location);
454
+ m.location = enumStringToValue$c(FunctionParameterParameterLocation, proto.location);
449
455
  }
450
456
  return m;
451
457
  }
@@ -519,7 +525,7 @@ class FunctionAuthStrategyUnspecifiedFunctionAuthStrategy {
519
525
  }
520
526
  }
521
527
 
522
- function enumStringToValue$a(enumRef, value) {
528
+ function enumStringToValue$b(enumRef, value) {
523
529
  if (typeof value === 'number') {
524
530
  return value;
525
531
  }
@@ -722,7 +728,7 @@ class PromptVersion {
722
728
  }
723
729
  }
724
730
 
725
- function enumStringToValue$9(enumRef, value) {
731
+ function enumStringToValue$a(enumRef, value) {
726
732
  if (typeof value === 'number') {
727
733
  return value;
728
734
  }
@@ -736,7 +742,7 @@ class Goal {
736
742
  m.namespace = Namespace.fromProto(proto.namespace);
737
743
  }
738
744
  if (proto.type) {
739
- m.type = enumStringToValue$9(GoalType, proto.type);
745
+ m.type = enumStringToValue$a(GoalType, proto.type);
740
746
  }
741
747
  if (proto.promptModules) {
742
748
  m.promptModules = proto.promptModules.map(PromptModule.fromProto);
@@ -748,7 +754,7 @@ class Goal {
748
754
  m.updated = new Date(proto.updated);
749
755
  }
750
756
  if (proto.supportedChannels) {
751
- m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue$9(GoalChannel, v));
757
+ m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue$a(GoalChannel, v));
752
758
  }
753
759
  return m;
754
760
  }
@@ -823,7 +829,7 @@ class GoalKey {
823
829
  }
824
830
  }
825
831
 
826
- function enumStringToValue$8(enumRef, value) {
832
+ function enumStringToValue$9(enumRef, value) {
827
833
  if (typeof value === 'number') {
828
834
  return value;
829
835
  }
@@ -853,6 +859,51 @@ class KeyValuePair {
853
859
  }
854
860
  }
855
861
 
862
+ function enumStringToValue$8(enumRef, value) {
863
+ if (typeof value === 'number') {
864
+ return value;
865
+ }
866
+ return enumRef[value];
867
+ }
868
+ class Model {
869
+ static fromProto(proto) {
870
+ let m = new Model();
871
+ m = Object.assign(m, proto);
872
+ if (proto.vendor) {
873
+ m.vendor = enumStringToValue$8(ModelVendor, proto.vendor);
874
+ }
875
+ if (proto.type) {
876
+ m.type = enumStringToValue$8(ModelType, proto.type);
877
+ }
878
+ return m;
879
+ }
880
+ constructor(kwargs) {
881
+ if (!kwargs) {
882
+ return;
883
+ }
884
+ Object.assign(this, kwargs);
885
+ }
886
+ toApiJson() {
887
+ const toReturn = {};
888
+ if (typeof this.id !== 'undefined') {
889
+ toReturn['id'] = this.id;
890
+ }
891
+ if (typeof this.vendor !== 'undefined') {
892
+ toReturn['vendor'] = this.vendor;
893
+ }
894
+ if (typeof this.type !== 'undefined') {
895
+ toReturn['type'] = this.type;
896
+ }
897
+ if (typeof this.name !== 'undefined') {
898
+ toReturn['name'] = this.name;
899
+ }
900
+ if (typeof this.recommended !== 'undefined') {
901
+ toReturn['recommended'] = this.recommended;
902
+ }
903
+ return toReturn;
904
+ }
905
+ }
906
+
856
907
  function enumStringToValue$7(enumRef, value) {
857
908
  if (typeof value === 'number') {
858
909
  return value;
@@ -948,6 +999,9 @@ class Config {
948
999
  if (proto.voiceConfig) {
949
1000
  m.voiceConfig = ConfigVoiceConfig.fromProto(proto.voiceConfig);
950
1001
  }
1002
+ if (proto.models) {
1003
+ m.models = proto.models.map(Model.fromProto);
1004
+ }
951
1005
  return m;
952
1006
  }
953
1007
  constructor(kwargs) {
@@ -964,6 +1018,9 @@ class Config {
964
1018
  if (typeof this.voiceConfig !== 'undefined' && this.voiceConfig !== null) {
965
1019
  toReturn['voiceConfig'] = 'toApiJson' in this.voiceConfig ? this.voiceConfig.toApiJson() : this.voiceConfig;
966
1020
  }
1021
+ if (typeof this.models !== 'undefined' && this.models !== null) {
1022
+ toReturn['models'] = 'toApiJson' in this.models ? this.models.toApiJson() : this.models;
1023
+ }
967
1024
  return toReturn;
968
1025
  }
969
1026
  }
@@ -1500,6 +1557,41 @@ class CancelTestRunRequest {
1500
1557
  return toReturn;
1501
1558
  }
1502
1559
  }
1560
+ class TestResultCitation {
1561
+ static fromProto(proto) {
1562
+ let m = new TestResultCitation();
1563
+ m = Object.assign(m, proto);
1564
+ return m;
1565
+ }
1566
+ constructor(kwargs) {
1567
+ if (!kwargs) {
1568
+ return;
1569
+ }
1570
+ Object.assign(this, kwargs);
1571
+ }
1572
+ toApiJson() {
1573
+ const toReturn = {};
1574
+ if (typeof this.type !== 'undefined') {
1575
+ toReturn['type'] = this.type;
1576
+ }
1577
+ if (typeof this.description !== 'undefined') {
1578
+ toReturn['description'] = this.description;
1579
+ }
1580
+ if (typeof this.title !== 'undefined') {
1581
+ toReturn['title'] = this.title;
1582
+ }
1583
+ if (typeof this.link !== 'undefined') {
1584
+ toReturn['link'] = this.link;
1585
+ }
1586
+ if (typeof this.reason !== 'undefined') {
1587
+ toReturn['reason'] = this.reason;
1588
+ }
1589
+ if (typeof this.fileUrl !== 'undefined') {
1590
+ toReturn['fileUrl'] = this.fileUrl;
1591
+ }
1592
+ return toReturn;
1593
+ }
1594
+ }
1503
1595
  class DeleteTestCasesRequest {
1504
1596
  static fromProto(proto) {
1505
1597
  let m = new DeleteTestCasesRequest();
@@ -1811,6 +1903,9 @@ class TestResult {
1811
1903
  if (proto.chatHistory) {
1812
1904
  m.chatHistory = proto.chatHistory.map(ChatMessage.fromProto);
1813
1905
  }
1906
+ if (proto.citations) {
1907
+ m.citations = proto.citations.map(TestResultCitation.fromProto);
1908
+ }
1814
1909
  return m;
1815
1910
  }
1816
1911
  constructor(kwargs) {
@@ -1842,6 +1937,12 @@ class TestResult {
1842
1937
  if (typeof this.score !== 'undefined') {
1843
1938
  toReturn['score'] = this.score;
1844
1939
  }
1940
+ if (typeof this.reasoning !== 'undefined') {
1941
+ toReturn['reasoning'] = this.reasoning;
1942
+ }
1943
+ if (typeof this.citations !== 'undefined' && this.citations !== null) {
1944
+ toReturn['citations'] = 'toApiJson' in this.citations ? this.citations.toApiJson() : this.citations;
1945
+ }
1845
1946
  return toReturn;
1846
1947
  }
1847
1948
  }
@@ -2534,21 +2635,12 @@ class ExecuteFunctionResponse {
2534
2635
  return toReturn;
2535
2636
  }
2536
2637
  }
2537
- class ListGoalsRequestFilters {
2638
+ class ListAllAssistantsAssociatedToConnectionRequestFilters {
2538
2639
  static fromProto(proto) {
2539
- let m = new ListGoalsRequestFilters();
2640
+ let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
2540
2641
  m = Object.assign(m, proto);
2541
- if (proto.namespace) {
2542
- m.namespace = Namespace.fromProto(proto.namespace);
2543
- }
2544
2642
  if (proto.type) {
2545
- m.type = enumStringToValue(GoalType, proto.type);
2546
- }
2547
- if (proto.supportedChannels) {
2548
- m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
2549
- }
2550
- if (proto.namespaces) {
2551
- m.namespaces = proto.namespaces.map(Namespace.fromProto);
2643
+ m.type = enumStringToValue(AssistantType, proto.type);
2552
2644
  }
2553
2645
  return m;
2554
2646
  }
@@ -2560,18 +2652,9 @@ class ListGoalsRequestFilters {
2560
2652
  }
2561
2653
  toApiJson() {
2562
2654
  const toReturn = {};
2563
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
2564
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
2565
- }
2566
2655
  if (typeof this.type !== 'undefined') {
2567
2656
  toReturn['type'] = this.type;
2568
2657
  }
2569
- if (typeof this.supportedChannels !== 'undefined') {
2570
- toReturn['supportedChannels'] = this.supportedChannels;
2571
- }
2572
- if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
2573
- toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
2574
- }
2575
2658
  return toReturn;
2576
2659
  }
2577
2660
  }
@@ -2627,12 +2710,44 @@ class ListFunctionRequestFilters {
2627
2710
  return toReturn;
2628
2711
  }
2629
2712
  }
2630
- class ListAllAssistantsAssociatedToConnectionRequestFilters {
2713
+ class ListPromptModuleRequestFilters {
2631
2714
  static fromProto(proto) {
2632
- let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
2715
+ let m = new ListPromptModuleRequestFilters();
2633
2716
  m = Object.assign(m, proto);
2717
+ if (proto.namespace) {
2718
+ m.namespace = Namespace.fromProto(proto.namespace);
2719
+ }
2720
+ return m;
2721
+ }
2722
+ constructor(kwargs) {
2723
+ if (!kwargs) {
2724
+ return;
2725
+ }
2726
+ Object.assign(this, kwargs);
2727
+ }
2728
+ toApiJson() {
2729
+ const toReturn = {};
2730
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
2731
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
2732
+ }
2733
+ return toReturn;
2734
+ }
2735
+ }
2736
+ class ListGoalsRequestFilters {
2737
+ static fromProto(proto) {
2738
+ let m = new ListGoalsRequestFilters();
2739
+ m = Object.assign(m, proto);
2740
+ if (proto.namespace) {
2741
+ m.namespace = Namespace.fromProto(proto.namespace);
2742
+ }
2634
2743
  if (proto.type) {
2635
- m.type = enumStringToValue(AssistantType, proto.type);
2744
+ m.type = enumStringToValue(GoalType, proto.type);
2745
+ }
2746
+ if (proto.supportedChannels) {
2747
+ m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
2748
+ }
2749
+ if (proto.namespaces) {
2750
+ m.namespaces = proto.namespaces.map(Namespace.fromProto);
2636
2751
  }
2637
2752
  return m;
2638
2753
  }
@@ -2644,9 +2759,18 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
2644
2759
  }
2645
2760
  toApiJson() {
2646
2761
  const toReturn = {};
2762
+ if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
2763
+ toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
2764
+ }
2647
2765
  if (typeof this.type !== 'undefined') {
2648
2766
  toReturn['type'] = this.type;
2649
2767
  }
2768
+ if (typeof this.supportedChannels !== 'undefined') {
2769
+ toReturn['supportedChannels'] = this.supportedChannels;
2770
+ }
2771
+ if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
2772
+ toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
2773
+ }
2650
2774
  return toReturn;
2651
2775
  }
2652
2776
  }
@@ -2679,12 +2803,15 @@ class ListAssistantRequestFilters {
2679
2803
  return toReturn;
2680
2804
  }
2681
2805
  }
2682
- class ListPromptModuleRequestFilters {
2806
+ class ListAvailableModelsRequestFilters {
2683
2807
  static fromProto(proto) {
2684
- let m = new ListPromptModuleRequestFilters();
2808
+ let m = new ListAvailableModelsRequestFilters();
2685
2809
  m = Object.assign(m, proto);
2686
- if (proto.namespace) {
2687
- m.namespace = Namespace.fromProto(proto.namespace);
2810
+ if (proto.vendor) {
2811
+ m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
2812
+ }
2813
+ if (proto.type) {
2814
+ m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
2688
2815
  }
2689
2816
  return m;
2690
2817
  }
@@ -2696,8 +2823,11 @@ class ListPromptModuleRequestFilters {
2696
2823
  }
2697
2824
  toApiJson() {
2698
2825
  const toReturn = {};
2699
- if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
2700
- toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
2826
+ if (typeof this.vendor !== 'undefined') {
2827
+ toReturn['vendor'] = this.vendor;
2828
+ }
2829
+ if (typeof this.type !== 'undefined') {
2830
+ toReturn['type'] = this.type;
2701
2831
  }
2702
2832
  return toReturn;
2703
2833
  }
@@ -2797,6 +2927,9 @@ class GetAssistantRequest {
2797
2927
  if (proto.namespace) {
2798
2928
  m.namespace = Namespace.fromProto(proto.namespace);
2799
2929
  }
2930
+ if (proto.options) {
2931
+ m.options = GetAssistantRequestOptions.fromProto(proto.options);
2932
+ }
2800
2933
  return m;
2801
2934
  }
2802
2935
  constructor(kwargs) {
@@ -2813,6 +2946,9 @@ class GetAssistantRequest {
2813
2946
  if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
2814
2947
  toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
2815
2948
  }
2949
+ if (typeof this.options !== 'undefined' && this.options !== null) {
2950
+ toReturn['options'] = 'toApiJson' in this.options ? this.options.toApiJson() : this.options;
2951
+ }
2816
2952
  return toReturn;
2817
2953
  }
2818
2954
  }
@@ -3727,6 +3863,52 @@ class ListAssistantResponse {
3727
3863
  return toReturn;
3728
3864
  }
3729
3865
  }
3866
+ class ListAvailableModelsRequest {
3867
+ static fromProto(proto) {
3868
+ let m = new ListAvailableModelsRequest();
3869
+ m = Object.assign(m, proto);
3870
+ if (proto.filters) {
3871
+ m.filters = ListAvailableModelsRequestFilters.fromProto(proto.filters);
3872
+ }
3873
+ return m;
3874
+ }
3875
+ constructor(kwargs) {
3876
+ if (!kwargs) {
3877
+ return;
3878
+ }
3879
+ Object.assign(this, kwargs);
3880
+ }
3881
+ toApiJson() {
3882
+ const toReturn = {};
3883
+ if (typeof this.filters !== 'undefined' && this.filters !== null) {
3884
+ toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
3885
+ }
3886
+ return toReturn;
3887
+ }
3888
+ }
3889
+ class ListAvailableModelsResponse {
3890
+ static fromProto(proto) {
3891
+ let m = new ListAvailableModelsResponse();
3892
+ m = Object.assign(m, proto);
3893
+ if (proto.models) {
3894
+ m.models = proto.models.map(Model.fromProto);
3895
+ }
3896
+ return m;
3897
+ }
3898
+ constructor(kwargs) {
3899
+ if (!kwargs) {
3900
+ return;
3901
+ }
3902
+ Object.assign(this, kwargs);
3903
+ }
3904
+ toApiJson() {
3905
+ const toReturn = {};
3906
+ if (typeof this.models !== 'undefined' && this.models !== null) {
3907
+ toReturn['models'] = 'toApiJson' in this.models ? this.models.toApiJson() : this.models;
3908
+ }
3909
+ return toReturn;
3910
+ }
3911
+ }
3730
3912
  class ListConnectionsRequest {
3731
3913
  static fromProto(proto) {
3732
3914
  let m = new ListConnectionsRequest();
@@ -4149,9 +4331,6 @@ class GenerateChatAnswerRequestOptions {
4149
4331
  if (proto.maxTokens) {
4150
4332
  m.maxTokens = parseInt(proto.maxTokens, 10);
4151
4333
  }
4152
- if (proto.model) {
4153
- m.model = enumStringToValue(GenerateChatAnswerRequestModel, proto.model);
4154
- }
4155
4334
  return m;
4156
4335
  }
4157
4336
  constructor(kwargs) {
@@ -4171,9 +4350,6 @@ class GenerateChatAnswerRequestOptions {
4171
4350
  if (typeof this.maxTokens !== 'undefined') {
4172
4351
  toReturn['maxTokens'] = this.maxTokens;
4173
4352
  }
4174
- if (typeof this.model !== 'undefined') {
4175
- toReturn['model'] = this.model;
4176
- }
4177
4353
  return toReturn;
4178
4354
  }
4179
4355
  }
@@ -4197,6 +4373,26 @@ class CreateAssistantRequestOptions {
4197
4373
  return toReturn;
4198
4374
  }
4199
4375
  }
4376
+ class GetAssistantRequestOptions {
4377
+ static fromProto(proto) {
4378
+ let m = new GetAssistantRequestOptions();
4379
+ m = Object.assign(m, proto);
4380
+ return m;
4381
+ }
4382
+ constructor(kwargs) {
4383
+ if (!kwargs) {
4384
+ return;
4385
+ }
4386
+ Object.assign(this, kwargs);
4387
+ }
4388
+ toApiJson() {
4389
+ const toReturn = {};
4390
+ if (typeof this.skipGoalsHydration !== 'undefined') {
4391
+ toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
4392
+ }
4393
+ return toReturn;
4394
+ }
4395
+ }
4200
4396
  class CreatePromptModuleVersionRequestOptions {
4201
4397
  static fromProto(proto) {
4202
4398
  let m = new CreatePromptModuleVersionRequestOptions();
@@ -4582,6 +4778,11 @@ class AssistantApiService {
4582
4778
  return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/ExecuteFunction", request.toApiJson(), this.apiOptions())
4583
4779
  .pipe(map(resp => ExecuteFunctionResponse.fromProto(resp)));
4584
4780
  }
4781
+ listAvailableModels(r) {
4782
+ const request = (r.toApiJson) ? r : new ListAvailableModelsRequest(r);
4783
+ return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/ListAvailableModels", request.toApiJson(), this.apiOptions())
4784
+ .pipe(map(resp => ListAvailableModelsResponse.fromProto(resp)));
4785
+ }
4585
4786
  }
4586
4787
  AssistantApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4587
4788
  AssistantApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, providedIn: 'root' });
@@ -4981,5 +5182,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
4981
5182
  * Generated bundle index. Do not edit.
4982
5183
  */
4983
5184
 
4984
- 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, GenerateChatAnswerRequestModel, GenerateChatAnswerRequestOptions, GenerateChatAnswerResponse, GetAssistantRequest, 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, ListConnectionsRequest, ListConnectionsRequestFilters, ListConnectionsResponse, ListFunctionRequest, ListFunctionRequestFilters, ListFunctionResponse, ListGoalsRequest, ListGoalsRequestFilters, ListGoalsResponse, ListPromptModuleRequest, ListPromptModuleRequestFilters, ListPromptModuleResponse, ListPromptModuleVersionsRequest, ListPromptModuleVersionsResponse, ListPromptRequest, ListPromptResponse, ListPromptVersionsRequest, ListPromptVersionsResponse, ListTestCasesByAssistantRequest, ListTestCasesByAssistantResponse, ListTestRunsByAssistantRequest, ListTestRunsByAssistantResponse, ModelConfig, 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 };
5185
+ 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, TestResultCitation, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertTestCasesRequest, VendorModel };
4985
5186
  //# sourceMappingURL=vendasta-ai-assistants.mjs.map