@vendasta/ai-assistants 0.8.0 → 0.9.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/enums/goal.enum.mjs +5 -4
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/connection.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +7 -1
- package/esm2020/lib/_internal/objects/connection.mjs +8 -1
- package/fesm2015/vendasta-ai-assistants.mjs +16 -3
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +16 -3
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/enums/goal.enum.d.ts +4 -3
- package/lib/_internal/interfaces/api.interface.d.ts +1 -0
- package/lib/_internal/interfaces/connection.interface.d.ts +2 -0
- package/lib/_internal/objects/api.d.ts +1 -0
- package/lib/_internal/objects/connection.d.ts +2 -0
- package/package.json +1 -1
|
@@ -35,9 +35,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
35
35
|
var GoalType;
|
|
36
36
|
(function (GoalType) {
|
|
37
37
|
GoalType[GoalType["GOAL_TYPE_INVALID"] = 0] = "GOAL_TYPE_INVALID";
|
|
38
|
-
GoalType[GoalType["
|
|
39
|
-
GoalType[GoalType["
|
|
40
|
-
GoalType[GoalType["
|
|
38
|
+
GoalType[GoalType["GOAL_TYPE_OBJECTIVE"] = 1] = "GOAL_TYPE_OBJECTIVE";
|
|
39
|
+
GoalType[GoalType["GOAL_TYPE_KNOWLEDGE"] = 2] = "GOAL_TYPE_KNOWLEDGE";
|
|
40
|
+
GoalType[GoalType["GOAL_TYPE_PERSONALITY"] = 3] = "GOAL_TYPE_PERSONALITY";
|
|
41
|
+
GoalType[GoalType["GOAL_TYPE_CUSTOM"] = 4] = "GOAL_TYPE_CUSTOM";
|
|
41
42
|
})(GoalType || (GoalType = {}));
|
|
42
43
|
|
|
43
44
|
// *********************************
|
|
@@ -844,6 +845,9 @@ class Connection {
|
|
|
844
845
|
if (proto.assistantKeys) {
|
|
845
846
|
m.assistantKeys = proto.assistantKeys.map(AssistantKey.fromProto);
|
|
846
847
|
}
|
|
848
|
+
if (proto.supportedAssistantTypes) {
|
|
849
|
+
m.supportedAssistantTypes = proto.supportedAssistantTypes.map((v) => enumStringToValue$5(AssistantType, v));
|
|
850
|
+
}
|
|
847
851
|
return m;
|
|
848
852
|
}
|
|
849
853
|
constructor(kwargs) {
|
|
@@ -881,6 +885,9 @@ class Connection {
|
|
|
881
885
|
if (typeof this.isConnectionLocked !== 'undefined') {
|
|
882
886
|
toReturn['isConnectionLocked'] = this.isConnectionLocked;
|
|
883
887
|
}
|
|
888
|
+
if (typeof this.supportedAssistantTypes !== 'undefined') {
|
|
889
|
+
toReturn['supportedAssistantTypes'] = this.supportedAssistantTypes;
|
|
890
|
+
}
|
|
884
891
|
return toReturn;
|
|
885
892
|
}
|
|
886
893
|
}
|
|
@@ -1519,6 +1526,9 @@ class ListConnectionsRequestFilters {
|
|
|
1519
1526
|
if (proto.namespace) {
|
|
1520
1527
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1521
1528
|
}
|
|
1529
|
+
if (proto.assistantType) {
|
|
1530
|
+
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
1531
|
+
}
|
|
1522
1532
|
return m;
|
|
1523
1533
|
}
|
|
1524
1534
|
constructor(kwargs) {
|
|
@@ -1532,6 +1542,9 @@ class ListConnectionsRequestFilters {
|
|
|
1532
1542
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1533
1543
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1534
1544
|
}
|
|
1545
|
+
if (typeof this.assistantType !== 'undefined') {
|
|
1546
|
+
toReturn['assistantType'] = this.assistantType;
|
|
1547
|
+
}
|
|
1535
1548
|
return toReturn;
|
|
1536
1549
|
}
|
|
1537
1550
|
}
|