@vendasta/ai-assistants 0.11.0 → 0.13.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 +14 -2
- package/esm2020/lib/_internal/enums/index.mjs +2 -2
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/goal.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/namespace.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +57 -19
- package/esm2020/lib/_internal/objects/goal.mjs +7 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/esm2020/lib/_internal/objects/namespace.mjs +1 -7
- package/fesm2015/vendasta-ai-assistants.mjs +76 -26
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +76 -26
- package/fesm2020/vendasta-ai-assistants.mjs.map +1 -1
- package/lib/_internal/enums/goal.enum.d.ts +12 -1
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/interfaces/api.interface.d.ts +12 -6
- package/lib/_internal/interfaces/goal.interface.d.ts +1 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/interfaces/namespace.interface.d.ts +0 -2
- package/lib/_internal/objects/api.d.ts +21 -12
- package/lib/_internal/objects/goal.d.ts +1 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/lib/_internal/objects/namespace.d.ts +0 -2
- package/package.json +1 -1
|
@@ -32,10 +32,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
32
32
|
//
|
|
33
33
|
// Enums.
|
|
34
34
|
// *********************************
|
|
35
|
+
var GoalChannel;
|
|
36
|
+
(function (GoalChannel) {
|
|
37
|
+
GoalChannel[GoalChannel["GOAL_CHANNEL_INVALID"] = 0] = "GOAL_CHANNEL_INVALID";
|
|
38
|
+
GoalChannel[GoalChannel["GOAL_CHANNEL_SMS"] = 1] = "GOAL_CHANNEL_SMS";
|
|
39
|
+
GoalChannel[GoalChannel["GOAL_CHANNEL_EMAIL"] = 2] = "GOAL_CHANNEL_EMAIL";
|
|
40
|
+
GoalChannel[GoalChannel["GOAL_CHANNEL_PLATFORM"] = 3] = "GOAL_CHANNEL_PLATFORM";
|
|
41
|
+
GoalChannel[GoalChannel["GOAL_CHANNEL_WEBCHAT"] = 4] = "GOAL_CHANNEL_WEBCHAT";
|
|
42
|
+
GoalChannel[GoalChannel["GOAL_CHANNEL_VOICE"] = 5] = "GOAL_CHANNEL_VOICE";
|
|
43
|
+
GoalChannel[GoalChannel["GOAL_CHANNEL_WHATSAPP"] = 6] = "GOAL_CHANNEL_WHATSAPP";
|
|
44
|
+
GoalChannel[GoalChannel["GOAL_CHANNEL_INSTAGRAM"] = 7] = "GOAL_CHANNEL_INSTAGRAM";
|
|
45
|
+
GoalChannel[GoalChannel["GOAL_CHANNEL_FACEBOOK"] = 8] = "GOAL_CHANNEL_FACEBOOK";
|
|
46
|
+
})(GoalChannel || (GoalChannel = {}));
|
|
35
47
|
var GoalType;
|
|
36
48
|
(function (GoalType) {
|
|
37
49
|
GoalType[GoalType["GOAL_TYPE_INVALID"] = 0] = "GOAL_TYPE_INVALID";
|
|
38
|
-
GoalType[GoalType["
|
|
50
|
+
GoalType[GoalType["GOAL_TYPE_GOAL"] = 1] = "GOAL_TYPE_GOAL";
|
|
39
51
|
GoalType[GoalType["GOAL_TYPE_KNOWLEDGE"] = 2] = "GOAL_TYPE_KNOWLEDGE";
|
|
40
52
|
GoalType[GoalType["GOAL_TYPE_PERSONALITY"] = 3] = "GOAL_TYPE_PERSONALITY";
|
|
41
53
|
GoalType[GoalType["GOAL_TYPE_CUSTOM"] = 4] = "GOAL_TYPE_CUSTOM";
|
|
@@ -170,9 +182,6 @@ class NamespaceGlobalNamespace {
|
|
|
170
182
|
}
|
|
171
183
|
toApiJson() {
|
|
172
184
|
const toReturn = {};
|
|
173
|
-
if (typeof this.contextId !== 'undefined') {
|
|
174
|
-
toReturn['contextId'] = this.contextId;
|
|
175
|
-
}
|
|
176
185
|
return toReturn;
|
|
177
186
|
}
|
|
178
187
|
}
|
|
@@ -263,9 +272,6 @@ class NamespaceSystemNamespace {
|
|
|
263
272
|
}
|
|
264
273
|
toApiJson() {
|
|
265
274
|
const toReturn = {};
|
|
266
|
-
if (typeof this.contextId !== 'undefined') {
|
|
267
|
-
toReturn['contextId'] = this.contextId;
|
|
268
|
-
}
|
|
269
275
|
return toReturn;
|
|
270
276
|
}
|
|
271
277
|
}
|
|
@@ -619,6 +625,9 @@ class Goal {
|
|
|
619
625
|
if (proto.updated) {
|
|
620
626
|
m.updated = new Date(proto.updated);
|
|
621
627
|
}
|
|
628
|
+
if (proto.supportedChannels) {
|
|
629
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue$7(GoalChannel, v));
|
|
630
|
+
}
|
|
622
631
|
return m;
|
|
623
632
|
}
|
|
624
633
|
constructor(kwargs) {
|
|
@@ -656,6 +665,9 @@ class Goal {
|
|
|
656
665
|
if (typeof this.updated !== 'undefined' && this.updated !== null) {
|
|
657
666
|
toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
|
|
658
667
|
}
|
|
668
|
+
if (typeof this.supportedChannels !== 'undefined') {
|
|
669
|
+
toReturn['supportedChannels'] = this.supportedChannels;
|
|
670
|
+
}
|
|
659
671
|
return toReturn;
|
|
660
672
|
}
|
|
661
673
|
}
|
|
@@ -1264,6 +1276,9 @@ class CreatePromptModuleVersionRequest {
|
|
|
1264
1276
|
if (proto.namespace) {
|
|
1265
1277
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1266
1278
|
}
|
|
1279
|
+
if (proto.options) {
|
|
1280
|
+
m.options = CreatePromptModuleVersionRequestOptions.fromProto(proto.options);
|
|
1281
|
+
}
|
|
1267
1282
|
return m;
|
|
1268
1283
|
}
|
|
1269
1284
|
constructor(kwargs) {
|
|
@@ -1283,6 +1298,9 @@ class CreatePromptModuleVersionRequest {
|
|
|
1283
1298
|
if (typeof this.content !== 'undefined') {
|
|
1284
1299
|
toReturn['content'] = this.content;
|
|
1285
1300
|
}
|
|
1301
|
+
if (typeof this.options !== 'undefined' && this.options !== null) {
|
|
1302
|
+
toReturn['options'] = 'toApiJson' in this.options ? this.options.toApiJson() : this.options;
|
|
1303
|
+
}
|
|
1286
1304
|
return toReturn;
|
|
1287
1305
|
}
|
|
1288
1306
|
}
|
|
@@ -1524,6 +1542,12 @@ class ListGoalsRequestFilters {
|
|
|
1524
1542
|
if (proto.namespace) {
|
|
1525
1543
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1526
1544
|
}
|
|
1545
|
+
if (proto.type) {
|
|
1546
|
+
m.type = enumStringToValue(GoalType, proto.type);
|
|
1547
|
+
}
|
|
1548
|
+
if (proto.supportedChannels) {
|
|
1549
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
1550
|
+
}
|
|
1527
1551
|
return m;
|
|
1528
1552
|
}
|
|
1529
1553
|
constructor(kwargs) {
|
|
@@ -1537,12 +1561,18 @@ class ListGoalsRequestFilters {
|
|
|
1537
1561
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1538
1562
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1539
1563
|
}
|
|
1564
|
+
if (typeof this.type !== 'undefined') {
|
|
1565
|
+
toReturn['type'] = this.type;
|
|
1566
|
+
}
|
|
1567
|
+
if (typeof this.supportedChannels !== 'undefined') {
|
|
1568
|
+
toReturn['supportedChannels'] = this.supportedChannels;
|
|
1569
|
+
}
|
|
1540
1570
|
return toReturn;
|
|
1541
1571
|
}
|
|
1542
1572
|
}
|
|
1543
|
-
class
|
|
1573
|
+
class ListFunctionRequestFilters {
|
|
1544
1574
|
static fromProto(proto) {
|
|
1545
|
-
let m = new
|
|
1575
|
+
let m = new ListFunctionRequestFilters();
|
|
1546
1576
|
m = Object.assign(m, proto);
|
|
1547
1577
|
if (proto.namespace) {
|
|
1548
1578
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
@@ -1563,13 +1593,16 @@ class ListPromptModuleRequestFilters {
|
|
|
1563
1593
|
return toReturn;
|
|
1564
1594
|
}
|
|
1565
1595
|
}
|
|
1566
|
-
class
|
|
1596
|
+
class ListAssistantRequestFilters {
|
|
1567
1597
|
static fromProto(proto) {
|
|
1568
|
-
let m = new
|
|
1598
|
+
let m = new ListAssistantRequestFilters();
|
|
1569
1599
|
m = Object.assign(m, proto);
|
|
1570
1600
|
if (proto.namespace) {
|
|
1571
1601
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1572
1602
|
}
|
|
1603
|
+
if (proto.type) {
|
|
1604
|
+
m.type = enumStringToValue(AssistantType, proto.type);
|
|
1605
|
+
}
|
|
1573
1606
|
return m;
|
|
1574
1607
|
}
|
|
1575
1608
|
constructor(kwargs) {
|
|
@@ -1583,6 +1616,9 @@ class ListFunctionRequestFilters {
|
|
|
1583
1616
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1584
1617
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1585
1618
|
}
|
|
1619
|
+
if (typeof this.type !== 'undefined') {
|
|
1620
|
+
toReturn['type'] = this.type;
|
|
1621
|
+
}
|
|
1586
1622
|
return toReturn;
|
|
1587
1623
|
}
|
|
1588
1624
|
}
|
|
@@ -1609,15 +1645,15 @@ class ListAllAssistantsAssociatedToConnectionRequestFilters {
|
|
|
1609
1645
|
return toReturn;
|
|
1610
1646
|
}
|
|
1611
1647
|
}
|
|
1612
|
-
class
|
|
1648
|
+
class ListConnectionsRequestFilters {
|
|
1613
1649
|
static fromProto(proto) {
|
|
1614
|
-
let m = new
|
|
1650
|
+
let m = new ListConnectionsRequestFilters();
|
|
1615
1651
|
m = Object.assign(m, proto);
|
|
1616
1652
|
if (proto.namespace) {
|
|
1617
1653
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1618
1654
|
}
|
|
1619
|
-
if (proto.
|
|
1620
|
-
m.
|
|
1655
|
+
if (proto.assistantType) {
|
|
1656
|
+
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
1621
1657
|
}
|
|
1622
1658
|
return m;
|
|
1623
1659
|
}
|
|
@@ -1632,22 +1668,19 @@ class ListAssistantRequestFilters {
|
|
|
1632
1668
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1633
1669
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1634
1670
|
}
|
|
1635
|
-
if (typeof this.
|
|
1636
|
-
toReturn['
|
|
1671
|
+
if (typeof this.assistantType !== 'undefined') {
|
|
1672
|
+
toReturn['assistantType'] = this.assistantType;
|
|
1637
1673
|
}
|
|
1638
1674
|
return toReturn;
|
|
1639
1675
|
}
|
|
1640
1676
|
}
|
|
1641
|
-
class
|
|
1677
|
+
class ListPromptModuleRequestFilters {
|
|
1642
1678
|
static fromProto(proto) {
|
|
1643
|
-
let m = new
|
|
1679
|
+
let m = new ListPromptModuleRequestFilters();
|
|
1644
1680
|
m = Object.assign(m, proto);
|
|
1645
1681
|
if (proto.namespace) {
|
|
1646
1682
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1647
1683
|
}
|
|
1648
|
-
if (proto.assistantType) {
|
|
1649
|
-
m.assistantType = enumStringToValue(AssistantType, proto.assistantType);
|
|
1650
|
-
}
|
|
1651
1684
|
return m;
|
|
1652
1685
|
}
|
|
1653
1686
|
constructor(kwargs) {
|
|
@@ -1661,9 +1694,6 @@ class ListConnectionsRequestFilters {
|
|
|
1661
1694
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1662
1695
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1663
1696
|
}
|
|
1664
|
-
if (typeof this.assistantType !== 'undefined') {
|
|
1665
|
-
toReturn['assistantType'] = this.assistantType;
|
|
1666
|
-
}
|
|
1667
1697
|
return toReturn;
|
|
1668
1698
|
}
|
|
1669
1699
|
}
|
|
@@ -3072,6 +3102,26 @@ class GenerateChatAnswerRequestOptions {
|
|
|
3072
3102
|
return toReturn;
|
|
3073
3103
|
}
|
|
3074
3104
|
}
|
|
3105
|
+
class CreatePromptModuleVersionRequestOptions {
|
|
3106
|
+
static fromProto(proto) {
|
|
3107
|
+
let m = new CreatePromptModuleVersionRequestOptions();
|
|
3108
|
+
m = Object.assign(m, proto);
|
|
3109
|
+
return m;
|
|
3110
|
+
}
|
|
3111
|
+
constructor(kwargs) {
|
|
3112
|
+
if (!kwargs) {
|
|
3113
|
+
return;
|
|
3114
|
+
}
|
|
3115
|
+
Object.assign(this, kwargs);
|
|
3116
|
+
}
|
|
3117
|
+
toApiJson() {
|
|
3118
|
+
const toReturn = {};
|
|
3119
|
+
if (typeof this.shouldDeploy !== 'undefined') {
|
|
3120
|
+
toReturn['shouldDeploy'] = this.shouldDeploy;
|
|
3121
|
+
}
|
|
3122
|
+
return toReturn;
|
|
3123
|
+
}
|
|
3124
|
+
}
|
|
3075
3125
|
class SetAssistantConnectionsRequest {
|
|
3076
3126
|
static fromProto(proto) {
|
|
3077
3127
|
let m = new SetAssistantConnectionsRequest();
|
|
@@ -3664,5 +3714,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3664
3714
|
* Generated bundle index. Do not edit.
|
|
3665
3715
|
*/
|
|
3666
3716
|
|
|
3667
|
-
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, CreatePromptModuleRequest, CreatePromptModuleVersionRequest, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, Function, FunctionApiService, FunctionKey, FunctionParameter, 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, Goal, GoalApiService, GoalKey, GoalType, HostService, 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, Namespace, NamespaceAccountGroupNamespace, NamespaceAccountGroupsForGroupNamespace, NamespaceAccountGroupsForPartnerNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest };
|
|
3717
|
+
export { Access, Assistant, AssistantApiService, AssistantKey, AssistantType, ChatAnswerFunctionExecutionJob, ChatAnswerFunctionExecutionJobResult, ChatAnswerFunctionExecutionJobStatus, ChatChannel, ChatMessage, ChatMessageRole, ChatUserInfo, Config, ConfigInboxConfig, ConfigurableGoal, Connection, ConnectionApiService, ConnectionKey, CreatePromptModuleRequest, CreatePromptModuleVersionRequest, CreatePromptModuleVersionRequestOptions, CreatePromptRequest, DeleteAssistantRequest, DeleteConnectionRequest, DeleteFunctionRequest, DeleteGoalRequest, DeletePromptModuleRequest, DeletePromptRequest, DeployPromptModuleRequest, DeployPromptRequest, Function, FunctionApiService, FunctionKey, FunctionParameter, 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, Goal, GoalApiService, GoalChannel, GoalKey, GoalType, HostService, 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, Namespace, NamespaceAccountGroupNamespace, NamespaceAccountGroupsForGroupNamespace, NamespaceAccountGroupsForPartnerNamespace, NamespaceGlobalNamespace, NamespacePartnerNamespace, NamespaceSystemNamespace, PagedRequestOptions, PagedResponseMetadata, Prompt, PromptApiService, PromptModule, PromptModuleApiService, PromptModuleKey, PromptModuleVersion, PromptVersion, SetAssistantConnectionsRequest, SetAssistantConnectionsRequestConnectionState, UpdatePromptModuleRequest, UpdatePromptRequest, UpsertAssistantRequest, UpsertAssistantResponse, UpsertConnectionRequest, UpsertFunctionRequest, UpsertGoalRequest };
|
|
3668
3718
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|