@vendasta/ai-assistants 0.37.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 +3 -1
- package/esm2020/lib/_internal/enums/integration-tests.enum.mjs +13 -0
- package/esm2020/lib/_internal/enums/model.enum.mjs +24 -0
- package/esm2020/lib/_internal/integration-test.api.service.mjs +6 -2
- 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/integration-tests.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/model.interface.mjs +8 -0
- package/esm2020/lib/_internal/objects/api.mjs +133 -31
- package/esm2020/lib/_internal/objects/assistant.mjs +8 -1
- package/esm2020/lib/_internal/objects/index.mjs +4 -3
- package/esm2020/lib/_internal/objects/integration-tests.mjs +63 -1
- package/esm2020/lib/_internal/objects/model.mjs +46 -0
- package/fesm2015/vendasta-ai-assistants.mjs +298 -39
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +298 -39
- 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 +2 -0
- package/lib/_internal/enums/integration-tests.enum.d.ts +5 -0
- package/lib/_internal/enums/model.enum.d.ts +15 -0
- package/lib/_internal/integration-test.api.service.d.ts +3 -2
- package/lib/_internal/interfaces/api.interface.d.ts +28 -13
- package/lib/_internal/interfaces/assistant.interface.d.ts +2 -0
- package/lib/_internal/interfaces/index.d.ts +3 -2
- package/lib/_internal/interfaces/integration-tests.interface.d.ts +11 -0
- package/lib/_internal/interfaces/model.interface.d.ts +8 -0
- package/lib/_internal/objects/api.d.ts +42 -15
- package/lib/_internal/objects/assistant.d.ts +2 -0
- package/lib/_internal/objects/index.d.ts +3 -2
- package/lib/_internal/objects/integration-tests.d.ts +17 -0
- package/lib/_internal/objects/model.d.ts +13 -0
- package/package.json +1 -1
|
@@ -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!.
|
|
@@ -124,6 +148,19 @@ var ChatMessageRole;
|
|
|
124
148
|
ChatMessageRole[ChatMessageRole["CHAT_MESSAGE_ROLE_ASSISTANT"] = 2] = "CHAT_MESSAGE_ROLE_ASSISTANT";
|
|
125
149
|
})(ChatMessageRole || (ChatMessageRole = {}));
|
|
126
150
|
|
|
151
|
+
// *********************************
|
|
152
|
+
// Code generated by sdkgen
|
|
153
|
+
// DO NOT EDIT!.
|
|
154
|
+
//
|
|
155
|
+
// Enums.
|
|
156
|
+
// *********************************
|
|
157
|
+
var SortDirection;
|
|
158
|
+
(function (SortDirection) {
|
|
159
|
+
SortDirection[SortDirection["SORT_DIRECTION_INVALID"] = 0] = "SORT_DIRECTION_INVALID";
|
|
160
|
+
SortDirection[SortDirection["SORT_DIRECTION_ASCENDING"] = 1] = "SORT_DIRECTION_ASCENDING";
|
|
161
|
+
SortDirection[SortDirection["SORT_DIRECTION_DESCENDING"] = 2] = "SORT_DIRECTION_DESCENDING";
|
|
162
|
+
})(SortDirection || (SortDirection = {}));
|
|
163
|
+
|
|
127
164
|
// *********************************
|
|
128
165
|
// Code generated by sdkgen
|
|
129
166
|
// DO NOT EDIT!.
|
|
@@ -131,7 +168,7 @@ var ChatMessageRole;
|
|
|
131
168
|
// Enums Index.
|
|
132
169
|
// *********************************
|
|
133
170
|
|
|
134
|
-
function enumStringToValue$
|
|
171
|
+
function enumStringToValue$d(enumRef, value) {
|
|
135
172
|
if (typeof value === 'number') {
|
|
136
173
|
return value;
|
|
137
174
|
}
|
|
@@ -253,7 +290,7 @@ class NamespaceSystemNamespace {
|
|
|
253
290
|
}
|
|
254
291
|
}
|
|
255
292
|
|
|
256
|
-
function enumStringToValue$
|
|
293
|
+
function enumStringToValue$c(enumRef, value) {
|
|
257
294
|
if (typeof value === 'number') {
|
|
258
295
|
return value;
|
|
259
296
|
}
|
|
@@ -413,7 +450,7 @@ class FunctionParameter {
|
|
|
413
450
|
m.items = FunctionParameter.fromProto(proto.items);
|
|
414
451
|
}
|
|
415
452
|
if (proto.location) {
|
|
416
|
-
m.location = enumStringToValue$
|
|
453
|
+
m.location = enumStringToValue$c(FunctionParameterParameterLocation, proto.location);
|
|
417
454
|
}
|
|
418
455
|
return m;
|
|
419
456
|
}
|
|
@@ -487,7 +524,7 @@ class FunctionAuthStrategyUnspecifiedFunctionAuthStrategy {
|
|
|
487
524
|
}
|
|
488
525
|
}
|
|
489
526
|
|
|
490
|
-
function enumStringToValue$
|
|
527
|
+
function enumStringToValue$b(enumRef, value) {
|
|
491
528
|
if (typeof value === 'number') {
|
|
492
529
|
return value;
|
|
493
530
|
}
|
|
@@ -690,7 +727,7 @@ class PromptVersion {
|
|
|
690
727
|
}
|
|
691
728
|
}
|
|
692
729
|
|
|
693
|
-
function enumStringToValue$
|
|
730
|
+
function enumStringToValue$a(enumRef, value) {
|
|
694
731
|
if (typeof value === 'number') {
|
|
695
732
|
return value;
|
|
696
733
|
}
|
|
@@ -704,7 +741,7 @@ class Goal {
|
|
|
704
741
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
705
742
|
}
|
|
706
743
|
if (proto.type) {
|
|
707
|
-
m.type = enumStringToValue$
|
|
744
|
+
m.type = enumStringToValue$a(GoalType, proto.type);
|
|
708
745
|
}
|
|
709
746
|
if (proto.promptModules) {
|
|
710
747
|
m.promptModules = proto.promptModules.map(PromptModule.fromProto);
|
|
@@ -716,7 +753,7 @@ class Goal {
|
|
|
716
753
|
m.updated = new Date(proto.updated);
|
|
717
754
|
}
|
|
718
755
|
if (proto.supportedChannels) {
|
|
719
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue$
|
|
756
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue$a(GoalChannel, v));
|
|
720
757
|
}
|
|
721
758
|
return m;
|
|
722
759
|
}
|
|
@@ -791,7 +828,7 @@ class GoalKey {
|
|
|
791
828
|
}
|
|
792
829
|
}
|
|
793
830
|
|
|
794
|
-
function enumStringToValue$
|
|
831
|
+
function enumStringToValue$9(enumRef, value) {
|
|
795
832
|
if (typeof value === 'number') {
|
|
796
833
|
return value;
|
|
797
834
|
}
|
|
@@ -821,6 +858,51 @@ class KeyValuePair {
|
|
|
821
858
|
}
|
|
822
859
|
}
|
|
823
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
|
+
|
|
824
906
|
function enumStringToValue$7(enumRef, value) {
|
|
825
907
|
if (typeof value === 'number') {
|
|
826
908
|
return value;
|
|
@@ -916,6 +998,9 @@ class Config {
|
|
|
916
998
|
if (proto.voiceConfig) {
|
|
917
999
|
m.voiceConfig = ConfigVoiceConfig.fromProto(proto.voiceConfig);
|
|
918
1000
|
}
|
|
1001
|
+
if (proto.models) {
|
|
1002
|
+
m.models = proto.models.map(Model.fromProto);
|
|
1003
|
+
}
|
|
919
1004
|
return m;
|
|
920
1005
|
}
|
|
921
1006
|
constructor(kwargs) {
|
|
@@ -932,6 +1017,9 @@ class Config {
|
|
|
932
1017
|
if (typeof this.voiceConfig !== 'undefined' && this.voiceConfig !== null) {
|
|
933
1018
|
toReturn['voiceConfig'] = 'toApiJson' in this.voiceConfig ? this.voiceConfig.toApiJson() : this.voiceConfig;
|
|
934
1019
|
}
|
|
1020
|
+
if (typeof this.models !== 'undefined' && this.models !== null) {
|
|
1021
|
+
toReturn['models'] = 'toApiJson' in this.models ? this.models.toApiJson() : this.models;
|
|
1022
|
+
}
|
|
935
1023
|
return toReturn;
|
|
936
1024
|
}
|
|
937
1025
|
}
|
|
@@ -1442,6 +1530,32 @@ function enumStringToValue$3(enumRef, value) {
|
|
|
1442
1530
|
}
|
|
1443
1531
|
return enumRef[value];
|
|
1444
1532
|
}
|
|
1533
|
+
class CancelTestRunRequest {
|
|
1534
|
+
static fromProto(proto) {
|
|
1535
|
+
let m = new CancelTestRunRequest();
|
|
1536
|
+
m = Object.assign(m, proto);
|
|
1537
|
+
if (proto.assistant) {
|
|
1538
|
+
m.assistant = AssistantKey.fromProto(proto.assistant);
|
|
1539
|
+
}
|
|
1540
|
+
return m;
|
|
1541
|
+
}
|
|
1542
|
+
constructor(kwargs) {
|
|
1543
|
+
if (!kwargs) {
|
|
1544
|
+
return;
|
|
1545
|
+
}
|
|
1546
|
+
Object.assign(this, kwargs);
|
|
1547
|
+
}
|
|
1548
|
+
toApiJson() {
|
|
1549
|
+
const toReturn = {};
|
|
1550
|
+
if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
|
|
1551
|
+
toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
|
|
1552
|
+
}
|
|
1553
|
+
if (typeof this.id !== 'undefined') {
|
|
1554
|
+
toReturn['id'] = this.id;
|
|
1555
|
+
}
|
|
1556
|
+
return toReturn;
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1445
1559
|
class DeleteTestCasesRequest {
|
|
1446
1560
|
static fromProto(proto) {
|
|
1447
1561
|
let m = new DeleteTestCasesRequest();
|
|
@@ -1527,6 +1641,9 @@ class ListTestCasesByAssistantRequest {
|
|
|
1527
1641
|
if (proto.pagingOptions) {
|
|
1528
1642
|
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
1529
1643
|
}
|
|
1644
|
+
if (proto.sortOptions) {
|
|
1645
|
+
m.sortOptions = SortOptions.fromProto(proto.sortOptions);
|
|
1646
|
+
}
|
|
1530
1647
|
return m;
|
|
1531
1648
|
}
|
|
1532
1649
|
constructor(kwargs) {
|
|
@@ -1543,6 +1660,12 @@ class ListTestCasesByAssistantRequest {
|
|
|
1543
1660
|
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
1544
1661
|
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
1545
1662
|
}
|
|
1663
|
+
if (typeof this.searchTerm !== 'undefined') {
|
|
1664
|
+
toReturn['searchTerm'] = this.searchTerm;
|
|
1665
|
+
}
|
|
1666
|
+
if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
|
|
1667
|
+
toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
|
|
1668
|
+
}
|
|
1546
1669
|
return toReturn;
|
|
1547
1670
|
}
|
|
1548
1671
|
}
|
|
@@ -1679,6 +1802,32 @@ class RunTestsResponse {
|
|
|
1679
1802
|
return toReturn;
|
|
1680
1803
|
}
|
|
1681
1804
|
}
|
|
1805
|
+
class SortOptions {
|
|
1806
|
+
static fromProto(proto) {
|
|
1807
|
+
let m = new SortOptions();
|
|
1808
|
+
m = Object.assign(m, proto);
|
|
1809
|
+
if (proto.direction) {
|
|
1810
|
+
m.direction = enumStringToValue$3(SortDirection, proto.direction);
|
|
1811
|
+
}
|
|
1812
|
+
return m;
|
|
1813
|
+
}
|
|
1814
|
+
constructor(kwargs) {
|
|
1815
|
+
if (!kwargs) {
|
|
1816
|
+
return;
|
|
1817
|
+
}
|
|
1818
|
+
Object.assign(this, kwargs);
|
|
1819
|
+
}
|
|
1820
|
+
toApiJson() {
|
|
1821
|
+
const toReturn = {};
|
|
1822
|
+
if (typeof this.direction !== 'undefined') {
|
|
1823
|
+
toReturn['direction'] = this.direction;
|
|
1824
|
+
}
|
|
1825
|
+
if (typeof this.field !== 'undefined') {
|
|
1826
|
+
toReturn['field'] = this.field;
|
|
1827
|
+
}
|
|
1828
|
+
return toReturn;
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1682
1831
|
class TestCase {
|
|
1683
1832
|
static fromProto(proto) {
|
|
1684
1833
|
let m = new TestCase();
|
|
@@ -2441,21 +2590,12 @@ class ExecuteFunctionResponse {
|
|
|
2441
2590
|
return toReturn;
|
|
2442
2591
|
}
|
|
2443
2592
|
}
|
|
2444
|
-
class
|
|
2593
|
+
class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
2445
2594
|
static fromProto(proto) {
|
|
2446
|
-
let m = new
|
|
2595
|
+
let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
|
|
2447
2596
|
m = Object.assign(m, proto);
|
|
2448
|
-
if (proto.namespace) {
|
|
2449
|
-
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2450
|
-
}
|
|
2451
2597
|
if (proto.type) {
|
|
2452
|
-
m.type = enumStringToValue(
|
|
2453
|
-
}
|
|
2454
|
-
if (proto.supportedChannels) {
|
|
2455
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
2456
|
-
}
|
|
2457
|
-
if (proto.namespaces) {
|
|
2458
|
-
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
2598
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
2459
2599
|
}
|
|
2460
2600
|
return m;
|
|
2461
2601
|
}
|
|
@@ -2467,18 +2607,9 @@ class ListGoalsRequestFilters {
|
|
|
2467
2607
|
}
|
|
2468
2608
|
toApiJson() {
|
|
2469
2609
|
const toReturn = {};
|
|
2470
|
-
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2471
|
-
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2472
|
-
}
|
|
2473
2610
|
if (typeof this.type !== 'undefined') {
|
|
2474
2611
|
toReturn['type'] = this.type;
|
|
2475
2612
|
}
|
|
2476
|
-
if (typeof this.supportedChannels !== 'undefined') {
|
|
2477
|
-
toReturn['supportedChannels'] = this.supportedChannels;
|
|
2478
|
-
}
|
|
2479
|
-
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
2480
|
-
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
2481
|
-
}
|
|
2482
2613
|
return toReturn;
|
|
2483
2614
|
}
|
|
2484
2615
|
}
|
|
@@ -2534,12 +2665,44 @@ class ListFunctionRequestFilters {
|
|
|
2534
2665
|
return toReturn;
|
|
2535
2666
|
}
|
|
2536
2667
|
}
|
|
2537
|
-
class
|
|
2668
|
+
class ListPromptModuleRequestFilters {
|
|
2538
2669
|
static fromProto(proto) {
|
|
2539
|
-
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();
|
|
2540
2694
|
m = Object.assign(m, proto);
|
|
2695
|
+
if (proto.namespace) {
|
|
2696
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2697
|
+
}
|
|
2541
2698
|
if (proto.type) {
|
|
2542
|
-
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);
|
|
2543
2706
|
}
|
|
2544
2707
|
return m;
|
|
2545
2708
|
}
|
|
@@ -2551,9 +2714,18 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
2551
2714
|
}
|
|
2552
2715
|
toApiJson() {
|
|
2553
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
|
+
}
|
|
2554
2720
|
if (typeof this.type !== 'undefined') {
|
|
2555
2721
|
toReturn['type'] = this.type;
|
|
2556
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
|
+
}
|
|
2557
2729
|
return toReturn;
|
|
2558
2730
|
}
|
|
2559
2731
|
}
|
|
@@ -2586,12 +2758,15 @@ class ListAssistantRequestFilters {
|
|
|
2586
2758
|
return toReturn;
|
|
2587
2759
|
}
|
|
2588
2760
|
}
|
|
2589
|
-
class
|
|
2761
|
+
class ListAvailableModelsRequestFilters {
|
|
2590
2762
|
static fromProto(proto) {
|
|
2591
|
-
let m = new
|
|
2763
|
+
let m = new ListAvailableModelsRequestFilters();
|
|
2592
2764
|
m = Object.assign(m, proto);
|
|
2593
|
-
if (proto.
|
|
2594
|
-
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));
|
|
2595
2770
|
}
|
|
2596
2771
|
return m;
|
|
2597
2772
|
}
|
|
@@ -2603,8 +2778,11 @@ class ListPromptModuleRequestFilters {
|
|
|
2603
2778
|
}
|
|
2604
2779
|
toApiJson() {
|
|
2605
2780
|
const toReturn = {};
|
|
2606
|
-
if (typeof this.
|
|
2607
|
-
toReturn['
|
|
2781
|
+
if (typeof this.vendor !== 'undefined') {
|
|
2782
|
+
toReturn['vendor'] = this.vendor;
|
|
2783
|
+
}
|
|
2784
|
+
if (typeof this.type !== 'undefined') {
|
|
2785
|
+
toReturn['type'] = this.type;
|
|
2608
2786
|
}
|
|
2609
2787
|
return toReturn;
|
|
2610
2788
|
}
|
|
@@ -2704,6 +2882,9 @@ class GetAssistantRequest {
|
|
|
2704
2882
|
if (proto.namespace) {
|
|
2705
2883
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2706
2884
|
}
|
|
2885
|
+
if (proto.options) {
|
|
2886
|
+
m.options = GetAssistantRequestOptions.fromProto(proto.options);
|
|
2887
|
+
}
|
|
2707
2888
|
return m;
|
|
2708
2889
|
}
|
|
2709
2890
|
constructor(kwargs) {
|
|
@@ -2720,6 +2901,9 @@ class GetAssistantRequest {
|
|
|
2720
2901
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2721
2902
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2722
2903
|
}
|
|
2904
|
+
if (typeof this.options !== 'undefined' && this.options !== null) {
|
|
2905
|
+
toReturn['options'] = 'toApiJson' in this.options ? this.options.toApiJson() : this.options;
|
|
2906
|
+
}
|
|
2723
2907
|
return toReturn;
|
|
2724
2908
|
}
|
|
2725
2909
|
}
|
|
@@ -3634,6 +3818,52 @@ class ListAssistantResponse {
|
|
|
3634
3818
|
return toReturn;
|
|
3635
3819
|
}
|
|
3636
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
|
+
}
|
|
3637
3867
|
class ListConnectionsRequest {
|
|
3638
3868
|
static fromProto(proto) {
|
|
3639
3869
|
let m = new ListConnectionsRequest();
|
|
@@ -4098,6 +4328,26 @@ class CreateAssistantRequestOptions {
|
|
|
4098
4328
|
return toReturn;
|
|
4099
4329
|
}
|
|
4100
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
|
+
}
|
|
4101
4351
|
class CreatePromptModuleVersionRequestOptions {
|
|
4102
4352
|
static fromProto(proto) {
|
|
4103
4353
|
let m = new CreatePromptModuleVersionRequestOptions();
|
|
@@ -4483,6 +4733,11 @@ class AssistantApiService {
|
|
|
4483
4733
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/ExecuteFunction", request.toApiJson(), this.apiOptions())
|
|
4484
4734
|
.pipe(map(resp => ExecuteFunctionResponse.fromProto(resp)));
|
|
4485
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
|
+
}
|
|
4486
4741
|
}
|
|
4487
4742
|
AssistantApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4488
4743
|
AssistantApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, providedIn: 'root' });
|
|
@@ -4701,6 +4956,10 @@ class IntegrationTestApiService {
|
|
|
4701
4956
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/GetTestRun", request.toApiJson(), this.apiOptions())
|
|
4702
4957
|
.pipe(map(resp => GetTestRunResponse.fromProto(resp)));
|
|
4703
4958
|
}
|
|
4959
|
+
cancelTestRun(r) {
|
|
4960
|
+
const request = (r.toApiJson) ? r : new CancelTestRunRequest(r);
|
|
4961
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/CancelTestRun", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
|
|
4962
|
+
}
|
|
4704
4963
|
}
|
|
4705
4964
|
IntegrationTestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntegrationTestApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4706
4965
|
IntegrationTestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntegrationTestApiService, providedIn: 'root' });
|
|
@@ -4878,5 +5137,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4878
5137
|
* Generated bundle index. Do not edit.
|
|
4879
5138
|
*/
|
|
4880
5139
|
|
|
4881
|
-
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, BuildDefaultAssistantRequest, BuildDefaultAssistantResponse, 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, 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, TestCase, TestResult, TestRun, UpdateAssistantRequest, UpdateGoalRequest, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantRequestOptions, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest, UpsertTestCasesRequest, VendorModel };
|
|
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 };
|
|
4882
5141
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|