@vendasta/ai-assistants 0.10.0 → 0.12.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/namespace.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +13 -1
- package/esm2020/lib/_internal/objects/goal.mjs +7 -1
- package/esm2020/lib/_internal/objects/namespace.mjs +3 -9
- package/fesm2015/vendasta-ai-assistants.mjs +34 -10
- package/fesm2015/vendasta-ai-assistants.mjs.map +1 -1
- package/fesm2020/vendasta-ai-assistants.mjs +34 -10
- 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 +2 -0
- package/lib/_internal/interfaces/goal.interface.d.ts +1 -0
- package/lib/_internal/interfaces/namespace.interface.d.ts +1 -3
- package/lib/_internal/objects/api.d.ts +2 -0
- package/lib/_internal/objects/goal.d.ts +1 -0
- package/lib/_internal/objects/namespace.d.ts +1 -3
- 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";
|
|
@@ -130,8 +142,8 @@ class NamespaceAccountGroupsForGroupNamespace {
|
|
|
130
142
|
}
|
|
131
143
|
toApiJson() {
|
|
132
144
|
const toReturn = {};
|
|
133
|
-
if (typeof this.
|
|
134
|
-
toReturn['
|
|
145
|
+
if (typeof this.groupPath !== 'undefined') {
|
|
146
|
+
toReturn['groupPath'] = this.groupPath;
|
|
135
147
|
}
|
|
136
148
|
return toReturn;
|
|
137
149
|
}
|
|
@@ -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
|
}
|
|
@@ -1524,6 +1536,12 @@ class ListGoalsRequestFilters {
|
|
|
1524
1536
|
if (proto.namespace) {
|
|
1525
1537
|
m.namespace = Namespace.fromProto(proto.namespace);
|
|
1526
1538
|
}
|
|
1539
|
+
if (proto.type) {
|
|
1540
|
+
m.type = enumStringToValue(GoalType, proto.type);
|
|
1541
|
+
}
|
|
1542
|
+
if (proto.supportedChannels) {
|
|
1543
|
+
m.supportedChannels = proto.supportedChannels.map((v) => enumStringToValue(GoalChannel, v));
|
|
1544
|
+
}
|
|
1527
1545
|
return m;
|
|
1528
1546
|
}
|
|
1529
1547
|
constructor(kwargs) {
|
|
@@ -1537,6 +1555,12 @@ class ListGoalsRequestFilters {
|
|
|
1537
1555
|
if (typeof this.namespace !== 'undefined' && this.namespace !== null) {
|
|
1538
1556
|
toReturn['namespace'] = 'toApiJson' in this.namespace ? this.namespace.toApiJson() : this.namespace;
|
|
1539
1557
|
}
|
|
1558
|
+
if (typeof this.type !== 'undefined') {
|
|
1559
|
+
toReturn['type'] = this.type;
|
|
1560
|
+
}
|
|
1561
|
+
if (typeof this.supportedChannels !== 'undefined') {
|
|
1562
|
+
toReturn['supportedChannels'] = this.supportedChannels;
|
|
1563
|
+
}
|
|
1540
1564
|
return toReturn;
|
|
1541
1565
|
}
|
|
1542
1566
|
}
|
|
@@ -3664,5 +3688,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3664
3688
|
* Generated bundle index. Do not edit.
|
|
3665
3689
|
*/
|
|
3666
3690
|
|
|
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 };
|
|
3691
|
+
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, 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
3692
|
//# sourceMappingURL=vendasta-ai-assistants.mjs.map
|