@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
|
@@ -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!.
|
|
@@ -125,6 +149,19 @@ var ChatMessageRole;
|
|
|
125
149
|
ChatMessageRole[ChatMessageRole["CHAT_MESSAGE_ROLE_ASSISTANT"] = 2] = "CHAT_MESSAGE_ROLE_ASSISTANT";
|
|
126
150
|
})(ChatMessageRole || (ChatMessageRole = {}));
|
|
127
151
|
|
|
152
|
+
// *********************************
|
|
153
|
+
// Code generated by sdkgen
|
|
154
|
+
// DO NOT EDIT!.
|
|
155
|
+
//
|
|
156
|
+
// Enums.
|
|
157
|
+
// *********************************
|
|
158
|
+
var SortDirection;
|
|
159
|
+
(function (SortDirection) {
|
|
160
|
+
SortDirection[SortDirection["SORT_DIRECTION_INVALID"] = 0] = "SORT_DIRECTION_INVALID";
|
|
161
|
+
SortDirection[SortDirection["SORT_DIRECTION_ASCENDING"] = 1] = "SORT_DIRECTION_ASCENDING";
|
|
162
|
+
SortDirection[SortDirection["SORT_DIRECTION_DESCENDING"] = 2] = "SORT_DIRECTION_DESCENDING";
|
|
163
|
+
})(SortDirection || (SortDirection = {}));
|
|
164
|
+
|
|
128
165
|
// *********************************
|
|
129
166
|
// Code generated by sdkgen
|
|
130
167
|
// DO NOT EDIT!.
|
|
@@ -132,7 +169,7 @@ var ChatMessageRole;
|
|
|
132
169
|
// Enums Index.
|
|
133
170
|
// *********************************
|
|
134
171
|
|
|
135
|
-
function enumStringToValue$
|
|
172
|
+
function enumStringToValue$d(enumRef, value) {
|
|
136
173
|
if (typeof value === 'number') {
|
|
137
174
|
return value;
|
|
138
175
|
}
|
|
@@ -254,7 +291,7 @@ class NamespaceSystemNamespace {
|
|
|
254
291
|
}
|
|
255
292
|
}
|
|
256
293
|
|
|
257
|
-
function enumStringToValue$
|
|
294
|
+
function enumStringToValue$c(enumRef, value) {
|
|
258
295
|
if (typeof value === 'number') {
|
|
259
296
|
return value;
|
|
260
297
|
}
|
|
@@ -414,7 +451,7 @@ class FunctionParameter {
|
|
|
414
451
|
m.items = FunctionParameter.fromProto(proto.items);
|
|
415
452
|
}
|
|
416
453
|
if (proto.location) {
|
|
417
|
-
m.location = enumStringToValue$
|
|
454
|
+
m.location = enumStringToValue$c(FunctionParameterParameterLocation, proto.location);
|
|
418
455
|
}
|
|
419
456
|
return m;
|
|
420
457
|
}
|
|
@@ -488,7 +525,7 @@ class FunctionAuthStrategyUnspecifiedFunctionAuthStrategy {
|
|
|
488
525
|
}
|
|
489
526
|
}
|
|
490
527
|
|
|
491
|
-
function enumStringToValue$
|
|
528
|
+
function enumStringToValue$b(enumRef, value) {
|
|
492
529
|
if (typeof value === 'number') {
|
|
493
530
|
return value;
|
|
494
531
|
}
|
|
@@ -691,7 +728,7 @@ class PromptVersion {
|
|
|
691
728
|
}
|
|
692
729
|
}
|
|
693
730
|
|
|
694
|
-
function enumStringToValue$
|
|
731
|
+
function enumStringToValue$a(enumRef, value) {
|
|
695
732
|
if (typeof value === 'number') {
|
|
696
733
|
return value;
|
|
697
734
|
}
|
|
@@ -705,7 +742,7 @@ class Goal {
|
|
|
705
742
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
706
743
|
}
|
|
707
744
|
if (proto.type) {
|
|
708
|
-
m.type = enumStringToValue$
|
|
745
|
+
m.type = enumStringToValue$a(GoalType, proto.type);
|
|
709
746
|
}
|
|
710
747
|
if (proto.promptModules) {
|
|
711
748
|
m.promptModules = proto.promptModules.map(PromptModule.fromProto);
|
|
@@ -717,7 +754,7 @@ class Goal {
|
|
|
717
754
|
m.updated = new Date(proto.updated);
|
|
718
755
|
}
|
|
719
756
|
if (proto.supportedChannels) {
|
|
720
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue$
|
|
757
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue$a(GoalChannel, v));
|
|
721
758
|
}
|
|
722
759
|
return m;
|
|
723
760
|
}
|
|
@@ -792,7 +829,7 @@ class GoalKey {
|
|
|
792
829
|
}
|
|
793
830
|
}
|
|
794
831
|
|
|
795
|
-
function enumStringToValue$
|
|
832
|
+
function enumStringToValue$9(enumRef, value) {
|
|
796
833
|
if (typeof value === 'number') {
|
|
797
834
|
return value;
|
|
798
835
|
}
|
|
@@ -822,6 +859,51 @@ class KeyValuePair {
|
|
|
822
859
|
}
|
|
823
860
|
}
|
|
824
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
|
+
|
|
825
907
|
function enumStringToValue$7(enumRef, value) {
|
|
826
908
|
if (typeof value === 'number') {
|
|
827
909
|
return value;
|
|
@@ -917,6 +999,9 @@ class Config {
|
|
|
917
999
|
if (proto.voiceConfig) {
|
|
918
1000
|
m.voiceConfig = ConfigVoiceConfig.fromProto(proto.voiceConfig);
|
|
919
1001
|
}
|
|
1002
|
+
if (proto.models) {
|
|
1003
|
+
m.models = proto.models.map(Model.fromProto);
|
|
1004
|
+
}
|
|
920
1005
|
return m;
|
|
921
1006
|
}
|
|
922
1007
|
constructor(kwargs) {
|
|
@@ -933,6 +1018,9 @@ class Config {
|
|
|
933
1018
|
if (typeof this.voiceConfig !== 'undefined' && this.voiceConfig !== null) {
|
|
934
1019
|
toReturn['voiceConfig'] = 'toApiJson' in this.voiceConfig ? this.voiceConfig.toApiJson() : this.voiceConfig;
|
|
935
1020
|
}
|
|
1021
|
+
if (typeof this.models !== 'undefined' && this.models !== null) {
|
|
1022
|
+
toReturn['models'] = 'toApiJson' in this.models ? this.models.toApiJson() : this.models;
|
|
1023
|
+
}
|
|
936
1024
|
return toReturn;
|
|
937
1025
|
}
|
|
938
1026
|
}
|
|
@@ -1443,6 +1531,32 @@ function enumStringToValue$3(enumRef, value) {
|
|
|
1443
1531
|
}
|
|
1444
1532
|
return enumRef[value];
|
|
1445
1533
|
}
|
|
1534
|
+
class CancelTestRunRequest {
|
|
1535
|
+
static fromProto(proto) {
|
|
1536
|
+
let m = new CancelTestRunRequest();
|
|
1537
|
+
m = Object.assign(m, proto);
|
|
1538
|
+
if (proto.assistant) {
|
|
1539
|
+
m.assistant = AssistantKey.fromProto(proto.assistant);
|
|
1540
|
+
}
|
|
1541
|
+
return m;
|
|
1542
|
+
}
|
|
1543
|
+
constructor(kwargs) {
|
|
1544
|
+
if (!kwargs) {
|
|
1545
|
+
return;
|
|
1546
|
+
}
|
|
1547
|
+
Object.assign(this, kwargs);
|
|
1548
|
+
}
|
|
1549
|
+
toApiJson() {
|
|
1550
|
+
const toReturn = {};
|
|
1551
|
+
if (typeof this.assistant !== 'undefined' && this.assistant !== null) {
|
|
1552
|
+
toReturn['assistant'] = 'toApiJson' in this.assistant ? this.assistant.toApiJson() : this.assistant;
|
|
1553
|
+
}
|
|
1554
|
+
if (typeof this.id !== 'undefined') {
|
|
1555
|
+
toReturn['id'] = this.id;
|
|
1556
|
+
}
|
|
1557
|
+
return toReturn;
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1446
1560
|
class DeleteTestCasesRequest {
|
|
1447
1561
|
static fromProto(proto) {
|
|
1448
1562
|
let m = new DeleteTestCasesRequest();
|
|
@@ -1528,6 +1642,9 @@ class ListTestCasesByAssistantRequest {
|
|
|
1528
1642
|
if (proto.pagingOptions) {
|
|
1529
1643
|
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
1530
1644
|
}
|
|
1645
|
+
if (proto.sortOptions) {
|
|
1646
|
+
m.sortOptions = SortOptions.fromProto(proto.sortOptions);
|
|
1647
|
+
}
|
|
1531
1648
|
return m;
|
|
1532
1649
|
}
|
|
1533
1650
|
constructor(kwargs) {
|
|
@@ -1544,6 +1661,12 @@ class ListTestCasesByAssistantRequest {
|
|
|
1544
1661
|
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
1545
1662
|
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
1546
1663
|
}
|
|
1664
|
+
if (typeof this.searchTerm !== 'undefined') {
|
|
1665
|
+
toReturn['searchTerm'] = this.searchTerm;
|
|
1666
|
+
}
|
|
1667
|
+
if (typeof this.sortOptions !== 'undefined' && this.sortOptions !== null) {
|
|
1668
|
+
toReturn['sortOptions'] = 'toApiJson' in this.sortOptions ? this.sortOptions.toApiJson() : this.sortOptions;
|
|
1669
|
+
}
|
|
1547
1670
|
return toReturn;
|
|
1548
1671
|
}
|
|
1549
1672
|
}
|
|
@@ -1680,6 +1803,32 @@ class RunTestsResponse {
|
|
|
1680
1803
|
return toReturn;
|
|
1681
1804
|
}
|
|
1682
1805
|
}
|
|
1806
|
+
class SortOptions {
|
|
1807
|
+
static fromProto(proto) {
|
|
1808
|
+
let m = new SortOptions();
|
|
1809
|
+
m = Object.assign(m, proto);
|
|
1810
|
+
if (proto.direction) {
|
|
1811
|
+
m.direction = enumStringToValue$3(SortDirection, proto.direction);
|
|
1812
|
+
}
|
|
1813
|
+
return m;
|
|
1814
|
+
}
|
|
1815
|
+
constructor(kwargs) {
|
|
1816
|
+
if (!kwargs) {
|
|
1817
|
+
return;
|
|
1818
|
+
}
|
|
1819
|
+
Object.assign(this, kwargs);
|
|
1820
|
+
}
|
|
1821
|
+
toApiJson() {
|
|
1822
|
+
const toReturn = {};
|
|
1823
|
+
if (typeof this.direction !== 'undefined') {
|
|
1824
|
+
toReturn['direction'] = this.direction;
|
|
1825
|
+
}
|
|
1826
|
+
if (typeof this.field !== 'undefined') {
|
|
1827
|
+
toReturn['field'] = this.field;
|
|
1828
|
+
}
|
|
1829
|
+
return toReturn;
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1683
1832
|
class TestCase {
|
|
1684
1833
|
static fromProto(proto) {
|
|
1685
1834
|
let m = new TestCase();
|
|
@@ -2442,21 +2591,12 @@ class ExecuteFunctionResponse {
|
|
|
2442
2591
|
return toReturn;
|
|
2443
2592
|
}
|
|
2444
2593
|
}
|
|
2445
|
-
class
|
|
2594
|
+
class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
2446
2595
|
static fromProto(proto) {
|
|
2447
|
-
let m = new
|
|
2596
|
+
let m = new ListAllAssistantsAssociatedToConnectionRequestFilters();
|
|
2448
2597
|
m = Object.assign(m, proto);
|
|
2449
|
-
if (proto.namespace) {
|
|
2450
|
-
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2451
|
-
}
|
|
2452
2598
|
if (proto.type) {
|
|
2453
|
-
m.type = enumStringToValue(
|
|
2454
|
-
}
|
|
2455
|
-
if (proto.supportedChannels) {
|
|
2456
|
-
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
2457
|
-
}
|
|
2458
|
-
if (proto.namespaces) {
|
|
2459
|
-
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
2599
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
2460
2600
|
}
|
|
2461
2601
|
return m;
|
|
2462
2602
|
}
|
|
@@ -2468,18 +2608,9 @@ class ListGoalsRequestFilters {
|
|
|
2468
2608
|
}
|
|
2469
2609
|
toApiJson() {
|
|
2470
2610
|
const toReturn = {};
|
|
2471
|
-
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2472
|
-
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2473
|
-
}
|
|
2474
2611
|
if (typeof this.type !== 'undefined') {
|
|
2475
2612
|
toReturn['type'] = this.type;
|
|
2476
2613
|
}
|
|
2477
|
-
if (typeof this.supportedChannels !== 'undefined') {
|
|
2478
|
-
toReturn['supportedChannels'] = this.supportedChannels;
|
|
2479
|
-
}
|
|
2480
|
-
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
2481
|
-
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
2482
|
-
}
|
|
2483
2614
|
return toReturn;
|
|
2484
2615
|
}
|
|
2485
2616
|
}
|
|
@@ -2535,12 +2666,44 @@ class ListFunctionRequestFilters {
|
|
|
2535
2666
|
return toReturn;
|
|
2536
2667
|
}
|
|
2537
2668
|
}
|
|
2538
|
-
class
|
|
2669
|
+
class ListPromptModuleRequestFilters {
|
|
2539
2670
|
static fromProto(proto) {
|
|
2540
|
-
let m = new
|
|
2671
|
+
let m = new ListPromptModuleRequestFilters();
|
|
2672
|
+
m = Object.assign(m, proto);
|
|
2673
|
+
if (proto.namespace) {
|
|
2674
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2675
|
+
}
|
|
2676
|
+
return m;
|
|
2677
|
+
}
|
|
2678
|
+
constructor(kwargs) {
|
|
2679
|
+
if (!kwargs) {
|
|
2680
|
+
return;
|
|
2681
|
+
}
|
|
2682
|
+
Object.assign(this, kwargs);
|
|
2683
|
+
}
|
|
2684
|
+
toApiJson() {
|
|
2685
|
+
const toReturn = {};
|
|
2686
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2687
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2688
|
+
}
|
|
2689
|
+
return toReturn;
|
|
2690
|
+
}
|
|
2691
|
+
}
|
|
2692
|
+
class ListGoalsRequestFilters {
|
|
2693
|
+
static fromProto(proto) {
|
|
2694
|
+
let m = new ListGoalsRequestFilters();
|
|
2541
2695
|
m = Object.assign(m, proto);
|
|
2696
|
+
if (proto.namespace) {
|
|
2697
|
+
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2698
|
+
}
|
|
2542
2699
|
if (proto.type) {
|
|
2543
|
-
m.type = enumStringToValue(
|
|
2700
|
+
m.type = enumStringToValue(GoalType, proto.type);
|
|
2701
|
+
}
|
|
2702
|
+
if (proto.supportedChannels) {
|
|
2703
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
2704
|
+
}
|
|
2705
|
+
if (proto.namespaces) {
|
|
2706
|
+
m.namespaces = proto.namespaces.map(Namespace.fromProto);
|
|
2544
2707
|
}
|
|
2545
2708
|
return m;
|
|
2546
2709
|
}
|
|
@@ -2552,9 +2715,18 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
2552
2715
|
}
|
|
2553
2716
|
toApiJson() {
|
|
2554
2717
|
const toReturn = {};
|
|
2718
|
+
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2719
|
+
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2720
|
+
}
|
|
2555
2721
|
if (typeof this.type !== 'undefined') {
|
|
2556
2722
|
toReturn['type'] = this.type;
|
|
2557
2723
|
}
|
|
2724
|
+
if (typeof this.supportedChannels !== 'undefined') {
|
|
2725
|
+
toReturn['supportedChannels'] = this.supportedChannels;
|
|
2726
|
+
}
|
|
2727
|
+
if (typeof this.namespaces !== 'undefined' && this.namespaces !== null) {
|
|
2728
|
+
toReturn['namespaces'] = 'toApiJson' in this.namespaces ? this.namespaces.toApiJson() : this.namespaces;
|
|
2729
|
+
}
|
|
2558
2730
|
return toReturn;
|
|
2559
2731
|
}
|
|
2560
2732
|
}
|
|
@@ -2587,12 +2759,15 @@ class ListAssistantRequestFilters {
|
|
|
2587
2759
|
return toReturn;
|
|
2588
2760
|
}
|
|
2589
2761
|
}
|
|
2590
|
-
class
|
|
2762
|
+
class ListAvailableModelsRequestFilters {
|
|
2591
2763
|
static fromProto(proto) {
|
|
2592
|
-
let m = new
|
|
2764
|
+
let m = new ListAvailableModelsRequestFilters();
|
|
2593
2765
|
m = Object.assign(m, proto);
|
|
2594
|
-
if (proto.
|
|
2595
|
-
m.
|
|
2766
|
+
if (proto.vendor) {
|
|
2767
|
+
m.vendor = proto.vendor.map((v) => enumStringToValue(ModelVendor, v));
|
|
2768
|
+
}
|
|
2769
|
+
if (proto.type) {
|
|
2770
|
+
m.type = proto.type.map((v) => enumStringToValue(ModelType, v));
|
|
2596
2771
|
}
|
|
2597
2772
|
return m;
|
|
2598
2773
|
}
|
|
@@ -2604,8 +2779,11 @@ class ListPromptModuleRequestFilters {
|
|
|
2604
2779
|
}
|
|
2605
2780
|
toApiJson() {
|
|
2606
2781
|
const toReturn = {};
|
|
2607
|
-
if (typeof this.
|
|
2608
|
-
toReturn['
|
|
2782
|
+
if (typeof this.vendor !== 'undefined') {
|
|
2783
|
+
toReturn['vendor'] = this.vendor;
|
|
2784
|
+
}
|
|
2785
|
+
if (typeof this.type !== 'undefined') {
|
|
2786
|
+
toReturn['type'] = this.type;
|
|
2609
2787
|
}
|
|
2610
2788
|
return toReturn;
|
|
2611
2789
|
}
|
|
@@ -2705,6 +2883,9 @@ class GetAssistantRequest {
|
|
|
2705
2883
|
if (proto.namespace) {
|
|
2706
2884
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
2707
2885
|
}
|
|
2886
|
+
if (proto.options) {
|
|
2887
|
+
m.options = GetAssistantRequestOptions.fromProto(proto.options);
|
|
2888
|
+
}
|
|
2708
2889
|
return m;
|
|
2709
2890
|
}
|
|
2710
2891
|
constructor(kwargs) {
|
|
@@ -2721,6 +2902,9 @@ class GetAssistantRequest {
|
|
|
2721
2902
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
2722
2903
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
2723
2904
|
}
|
|
2905
|
+
if (typeof this.options !== 'undefined' && this.options !== null) {
|
|
2906
|
+
toReturn['options'] = 'toApiJson' in this.options ? this.options.toApiJson() : this.options;
|
|
2907
|
+
}
|
|
2724
2908
|
return toReturn;
|
|
2725
2909
|
}
|
|
2726
2910
|
}
|
|
@@ -3635,6 +3819,52 @@ class ListAssistantResponse {
|
|
|
3635
3819
|
return toReturn;
|
|
3636
3820
|
}
|
|
3637
3821
|
}
|
|
3822
|
+
class ListAvailableModelsRequest {
|
|
3823
|
+
static fromProto(proto) {
|
|
3824
|
+
let m = new ListAvailableModelsRequest();
|
|
3825
|
+
m = Object.assign(m, proto);
|
|
3826
|
+
if (proto.filters) {
|
|
3827
|
+
m.filters = ListAvailableModelsRequestFilters.fromProto(proto.filters);
|
|
3828
|
+
}
|
|
3829
|
+
return m;
|
|
3830
|
+
}
|
|
3831
|
+
constructor(kwargs) {
|
|
3832
|
+
if (!kwargs) {
|
|
3833
|
+
return;
|
|
3834
|
+
}
|
|
3835
|
+
Object.assign(this, kwargs);
|
|
3836
|
+
}
|
|
3837
|
+
toApiJson() {
|
|
3838
|
+
const toReturn = {};
|
|
3839
|
+
if (typeof this.filters !== 'undefined' && this.filters !== null) {
|
|
3840
|
+
toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
|
|
3841
|
+
}
|
|
3842
|
+
return toReturn;
|
|
3843
|
+
}
|
|
3844
|
+
}
|
|
3845
|
+
class ListAvailableModelsResponse {
|
|
3846
|
+
static fromProto(proto) {
|
|
3847
|
+
let m = new ListAvailableModelsResponse();
|
|
3848
|
+
m = Object.assign(m, proto);
|
|
3849
|
+
if (proto.models) {
|
|
3850
|
+
m.models = proto.models.map(Model.fromProto);
|
|
3851
|
+
}
|
|
3852
|
+
return m;
|
|
3853
|
+
}
|
|
3854
|
+
constructor(kwargs) {
|
|
3855
|
+
if (!kwargs) {
|
|
3856
|
+
return;
|
|
3857
|
+
}
|
|
3858
|
+
Object.assign(this, kwargs);
|
|
3859
|
+
}
|
|
3860
|
+
toApiJson() {
|
|
3861
|
+
const toReturn = {};
|
|
3862
|
+
if (typeof this.models !== 'undefined' && this.models !== null) {
|
|
3863
|
+
toReturn['models'] = 'toApiJson' in this.models ? this.models.toApiJson() : this.models;
|
|
3864
|
+
}
|
|
3865
|
+
return toReturn;
|
|
3866
|
+
}
|
|
3867
|
+
}
|
|
3638
3868
|
class ListConnectionsRequest {
|
|
3639
3869
|
static fromProto(proto) {
|
|
3640
3870
|
let m = new ListConnectionsRequest();
|
|
@@ -4099,6 +4329,26 @@ class CreateAssistantRequestOptions {
|
|
|
4099
4329
|
return toReturn;
|
|
4100
4330
|
}
|
|
4101
4331
|
}
|
|
4332
|
+
class GetAssistantRequestOptions {
|
|
4333
|
+
static fromProto(proto) {
|
|
4334
|
+
let m = new GetAssistantRequestOptions();
|
|
4335
|
+
m = Object.assign(m, proto);
|
|
4336
|
+
return m;
|
|
4337
|
+
}
|
|
4338
|
+
constructor(kwargs) {
|
|
4339
|
+
if (!kwargs) {
|
|
4340
|
+
return;
|
|
4341
|
+
}
|
|
4342
|
+
Object.assign(this, kwargs);
|
|
4343
|
+
}
|
|
4344
|
+
toApiJson() {
|
|
4345
|
+
const toReturn = {};
|
|
4346
|
+
if (typeof this.skipGoalsHydration !== 'undefined') {
|
|
4347
|
+
toReturn['skipGoalsHydration'] = this.skipGoalsHydration;
|
|
4348
|
+
}
|
|
4349
|
+
return toReturn;
|
|
4350
|
+
}
|
|
4351
|
+
}
|
|
4102
4352
|
class CreatePromptModuleVersionRequestOptions {
|
|
4103
4353
|
static fromProto(proto) {
|
|
4104
4354
|
let m = new CreatePromptModuleVersionRequestOptions();
|
|
@@ -4484,6 +4734,11 @@ class AssistantApiService {
|
|
|
4484
4734
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/ExecuteFunction", request.toApiJson(), this.apiOptions())
|
|
4485
4735
|
.pipe(map(resp => ExecuteFunctionResponse.fromProto(resp)));
|
|
4486
4736
|
}
|
|
4737
|
+
listAvailableModels(r) {
|
|
4738
|
+
const request = (r.toApiJson) ? r : new ListAvailableModelsRequest(r);
|
|
4739
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.AssistantService/ListAvailableModels", request.toApiJson(), this.apiOptions())
|
|
4740
|
+
.pipe(map(resp => ListAvailableModelsResponse.fromProto(resp)));
|
|
4741
|
+
}
|
|
4487
4742
|
}
|
|
4488
4743
|
AssistantApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4489
4744
|
AssistantApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssistantApiService, providedIn: 'root' });
|
|
@@ -4702,6 +4957,10 @@ class IntegrationTestApiService {
|
|
|
4702
4957
|
return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/GetTestRun", request.toApiJson(), this.apiOptions())
|
|
4703
4958
|
.pipe(map(resp => GetTestRunResponse.fromProto(resp)));
|
|
4704
4959
|
}
|
|
4960
|
+
cancelTestRun(r) {
|
|
4961
|
+
const request = (r.toApiJson) ? r : new CancelTestRunRequest(r);
|
|
4962
|
+
return this.http.post(this._host + "/ai_assistants.v1alpha1.IntegrationTestService/CancelTestRun", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4963
|
+
}
|
|
4705
4964
|
}
|
|
4706
4965
|
IntegrationTestApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntegrationTestApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4707
4966
|
IntegrationTestApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: IntegrationTestApiService, providedIn: 'root' });
|
|
@@ -4879,5 +5138,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4879
5138
|
* Generated bundle index. Do not edit.
|
|
4880
5139
|
*/
|
|
4881
5140
|
|
|
4882
|
-
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 };
|
|
5141
|
+
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 };
|
|
4883
5142
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|