@engyalo/workflow-types 1.1.8-main-c496ef7 → 1.1.8-main-09d0dcd
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/lib/models/agent-knowledge.d.ts +10 -0
- package/lib/models/agent-knowledge.js +10 -0
- package/lib/models/agent-knowledge.js.map +1 -1
- package/lib/models/components.d.ts +12 -1
- package/lib/models/components.js +2 -0
- package/lib/models/components.js.map +1 -1
- package/lib/models/index.d.ts +2 -2
- package/lib/models/index.js +3 -1
- package/lib/models/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
export declare enum AgentKnowledgeFileType {
|
|
2
|
+
csv = "csv",
|
|
3
|
+
pdf = "pdf",
|
|
4
|
+
docx = "docx",
|
|
5
|
+
txt = "txt",
|
|
6
|
+
md = "md",
|
|
7
|
+
xlsx = "xlsx"
|
|
8
|
+
}
|
|
1
9
|
/**
|
|
2
10
|
* Represents the knowledge associated with an agent.
|
|
3
11
|
*
|
|
@@ -15,6 +23,8 @@ export interface IAgentKnowledge {
|
|
|
15
23
|
name: string;
|
|
16
24
|
description: string;
|
|
17
25
|
workflowId: string;
|
|
26
|
+
storageType?: string;
|
|
27
|
+
sourceType?: AgentKnowledgeFileType;
|
|
18
28
|
attributes: Record<string, string | number | boolean>;
|
|
19
29
|
url: string;
|
|
20
30
|
}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentKnowledgeFileType = void 0;
|
|
4
|
+
var AgentKnowledgeFileType;
|
|
5
|
+
(function (AgentKnowledgeFileType) {
|
|
6
|
+
AgentKnowledgeFileType["csv"] = "csv";
|
|
7
|
+
AgentKnowledgeFileType["pdf"] = "pdf";
|
|
8
|
+
AgentKnowledgeFileType["docx"] = "docx";
|
|
9
|
+
AgentKnowledgeFileType["txt"] = "txt";
|
|
10
|
+
AgentKnowledgeFileType["md"] = "md";
|
|
11
|
+
AgentKnowledgeFileType["xlsx"] = "xlsx";
|
|
12
|
+
})(AgentKnowledgeFileType || (exports.AgentKnowledgeFileType = AgentKnowledgeFileType = {}));
|
|
3
13
|
//# sourceMappingURL=agent-knowledge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-knowledge.js","sourceRoot":"","sources":["../../src/models/agent-knowledge.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"agent-knowledge.js","sourceRoot":"","sources":["../../src/models/agent-knowledge.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAOX;AAPD,WAAY,sBAAsB;IACjC,qCAAW,CAAA;IACX,qCAAW,CAAA;IACX,uCAAa,CAAA;IACb,qCAAW,CAAA;IACX,mCAAS,CAAA;IACT,uCAAa,CAAA;AACd,CAAC,EAPW,sBAAsB,sCAAtB,sBAAsB,QAOjC"}
|
|
@@ -23,7 +23,8 @@ export declare enum IComponentType {
|
|
|
23
23
|
voiceUpsellAgent = "voiceUpsellAgent",
|
|
24
24
|
orisVoice = "orisVoice",
|
|
25
25
|
customVoiceAgent = "customVoiceAgent",
|
|
26
|
-
orisB2C = "orisB2C"
|
|
26
|
+
orisB2C = "orisB2C",
|
|
27
|
+
faqAgent = "faqAgent"
|
|
27
28
|
}
|
|
28
29
|
export declare const ComponentTypeEnum: string[];
|
|
29
30
|
export interface IFunnel {
|
|
@@ -90,6 +91,15 @@ export interface CustomAgent {
|
|
|
90
91
|
maxInputLength?: number;
|
|
91
92
|
strictInstructions?: boolean;
|
|
92
93
|
}
|
|
94
|
+
export interface FaqAgent {
|
|
95
|
+
systemPrompt: string;
|
|
96
|
+
fallbackMessage: string;
|
|
97
|
+
confidenceThreshold?: number;
|
|
98
|
+
searchModel?: 'semantic';
|
|
99
|
+
temperature?: number;
|
|
100
|
+
tools?: string[];
|
|
101
|
+
intents?: CustomAgentIntent[];
|
|
102
|
+
}
|
|
93
103
|
export interface VoiceUpsellAgent {
|
|
94
104
|
storefront: string;
|
|
95
105
|
skus: string[];
|
|
@@ -227,6 +237,7 @@ export interface IComponent {
|
|
|
227
237
|
notification?: INotification;
|
|
228
238
|
orisVoice?: OrisVoice;
|
|
229
239
|
customVoiceAgent?: CustomVoiceAgent;
|
|
240
|
+
faqAgent?: FaqAgent;
|
|
230
241
|
}
|
|
231
242
|
export interface IComponentLight {
|
|
232
243
|
_id?: string;
|
package/lib/models/components.js
CHANGED
|
@@ -25,6 +25,7 @@ var IComponentType;
|
|
|
25
25
|
IComponentType["orisVoice"] = "orisVoice";
|
|
26
26
|
IComponentType["customVoiceAgent"] = "customVoiceAgent";
|
|
27
27
|
IComponentType["orisB2C"] = "orisB2C";
|
|
28
|
+
IComponentType["faqAgent"] = "faqAgent";
|
|
28
29
|
})(IComponentType || (exports.IComponentType = IComponentType = {}));
|
|
29
30
|
exports.ComponentTypeEnum = [
|
|
30
31
|
'start',
|
|
@@ -47,6 +48,7 @@ exports.ComponentTypeEnum = [
|
|
|
47
48
|
'orisVoice',
|
|
48
49
|
'customVoiceAgent',
|
|
49
50
|
'orisB2C',
|
|
51
|
+
'faqAgent',
|
|
50
52
|
];
|
|
51
53
|
var DaysOfWeek;
|
|
52
54
|
(function (DaysOfWeek) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../src/models/components.ts"],"names":[],"mappings":";;;AAKA,oDAAoD;AACpD,IAAY,
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../src/models/components.ts"],"names":[],"mappings":";;;AAKA,oDAAoD;AACpD,IAAY,cAuBX;AAvBD,WAAY,cAAc;IACzB,uCAAqB,CAAA;IACrB,iCAAe,CAAA;IACf,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,2DAAyC,CAAA;IACzC,yCAAuB,CAAA;IACvB,+BAAa,CAAA;IACb,+CAA6B,CAAA;IAC7B,mDAAiC,CAAA;IACjC,+CAA6B,CAAA;IAC7B,yCAAuB,CAAA;IACvB,iCAAe,CAAA;IACf,iCAAe,CAAA;IACf,+BAAa,CAAA;IACb,qCAAmB,CAAA;IACnB,6CAA2B,CAAA;IAC3B,uDAAqC,CAAA;IACrC,yCAAuB,CAAA;IACvB,uDAAqC,CAAA;IACrC,qCAAmB,CAAA;IACnB,uCAAqB,CAAA;AACtB,CAAC,EAvBW,cAAc,8BAAd,cAAc,QAuBzB;AAEY,QAAA,iBAAiB,GAAG;IAChC,OAAO;IACP,MAAM;IACN,OAAO;IACP,UAAU;IACV,SAAS;IACT,QAAQ;IACR,WAAW;IACX,cAAc;IACd,WAAW;IACX,MAAM;IACN,gBAAgB;IAChB,OAAO;IACP,oBAAoB;IACpB,UAAU;IACV,cAAc;IACd,aAAa;IACb,kBAAkB;IAClB,WAAW;IACX,kBAAkB;IAClB,SAAS;IACT,UAAU;CACV,CAAC;AAmbF,IAAY,UAQX;AARD,WAAY,UAAU;IACrB,+CAAU,CAAA;IACV,+CAAU,CAAA;IACV,iDAAW,CAAA;IACX,qDAAa,CAAA;IACb,mDAAY,CAAA;IACZ,+CAAU,CAAA;IACV,mDAAY,CAAA;AACb,CAAC,EARW,UAAU,0BAAV,UAAU,QAQrB;AAED,IAAY,YAIX;AAJD,WAAY,YAAY;IACvB,qCAAqB,CAAA;IACrB,6CAA6B,CAAA;IAC7B,2CAA2B,CAAA;AAC5B,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB"}
|
package/lib/models/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { IGeneralStatus } from './status';
|
|
|
3
3
|
export { TriggerTypes, ITriggers } from './triggers';
|
|
4
4
|
export { IWorkflow, IWorkflowCreatePayload, IWorkflowCreateRespose, IWorkflowUpdatePayload, IWorkflowUpdateResponse, IWorkflowDeletePayload, IWorkflowDeleteResponse } from './workflows';
|
|
5
5
|
export { IActivity, IActivityRelease, IActivityEvent } from './activities';
|
|
6
|
-
export { IComponent, IComponentLight, IComponentConfig, IActionUI, IReactionUI, IReminderUI, ITriggersUI, ISourceUI, IContentUI, IContentThenUI, ComponentTypeEnum, IComponentType, LinkComponent, LinkItem, IEventUI, CustomVoiceAgent, OrisVoice, CustomAgent, VoiceUpsellAgent, } from './components';
|
|
6
|
+
export { IComponent, IComponentLight, IComponentConfig, IActionUI, IReactionUI, IReminderUI, ITriggersUI, ISourceUI, IContentUI, IContentThenUI, ComponentTypeEnum, IComponentType, LinkComponent, LinkItem, IEventUI, CustomVoiceAgent, OrisVoice, CustomAgent, VoiceUpsellAgent, FaqAgent, } from './components';
|
|
7
7
|
export { IChannel, IFacebookChannel, IWhatsAppChannel } from './channel';
|
|
8
8
|
export { IReaction, ITrigger, IAction } from './step';
|
|
9
9
|
export { IUser, IAccessUserLog } from './users';
|
|
@@ -24,5 +24,5 @@ export { IExtensionTemplate, ITemplateSettings, IExtensionPaginated, IExtension,
|
|
|
24
24
|
export { ISalesdeskSettingsSubjects, ISalesdeskSettingsTemplates, ISalesdeskSettings } from './salesdesk';
|
|
25
25
|
export { IAgentLuaTool, IAgentToolUI, IAgentToolType, isValidAgentToolType } from './agent-tools';
|
|
26
26
|
export { IAgentMcp, IAgentMcpTool, IAgentMcpToolListResult } from './agent-mcp';
|
|
27
|
-
export { IAgentKnowledge } from './agent-knowledge';
|
|
27
|
+
export { IAgentKnowledge, AgentKnowledgeFileType } from './agent-knowledge';
|
|
28
28
|
export { IAgentGuardrail } from './agent-guardrail';
|
package/lib/models/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isValidAgentToolType = exports.IAgentToolType = exports.AvailableTemplates = exports.IExtensionStatus = exports.GoToSchema_Version1 = exports.BaseActionSchema = exports.ActionSchemaTypes = exports.ICustomIntentStatus = exports.IActivityTemplateType = exports.IColumnTypes = exports.IntentsResponseError = exports.TablesResponseError = exports.VersioningResponseError = exports.SharedResponseErrors = exports.TriggerResponseError = exports.ScopeResponseError = exports.ComponentResponseError = exports.ActivityTemplateResponseError = exports.ActivityResponseErrors = exports.WorkflowResponseErrors = exports.HttpStatusCodes = exports.IComponentType = exports.ComponentTypeEnum = exports.TriggerTypes = exports.IGeneralStatus = exports.EventLogSource = exports.LogActions = exports.Roles = void 0;
|
|
3
|
+
exports.AgentKnowledgeFileType = exports.isValidAgentToolType = exports.IAgentToolType = exports.AvailableTemplates = exports.IExtensionStatus = exports.GoToSchema_Version1 = exports.BaseActionSchema = exports.ActionSchemaTypes = exports.ICustomIntentStatus = exports.IActivityTemplateType = exports.IColumnTypes = exports.IntentsResponseError = exports.TablesResponseError = exports.VersioningResponseError = exports.SharedResponseErrors = exports.TriggerResponseError = exports.ScopeResponseError = exports.ComponentResponseError = exports.ActivityTemplateResponseError = exports.ActivityResponseErrors = exports.WorkflowResponseErrors = exports.HttpStatusCodes = exports.IComponentType = exports.ComponentTypeEnum = exports.TriggerTypes = exports.IGeneralStatus = exports.EventLogSource = exports.LogActions = exports.Roles = void 0;
|
|
4
4
|
var client_1 = require("./client");
|
|
5
5
|
Object.defineProperty(exports, "Roles", { enumerable: true, get: function () { return client_1.Roles; } });
|
|
6
6
|
Object.defineProperty(exports, "LogActions", { enumerable: true, get: function () { return client_1.LogActions; } });
|
|
@@ -40,4 +40,6 @@ Object.defineProperty(exports, "AvailableTemplates", { enumerable: true, get: fu
|
|
|
40
40
|
var agent_tools_1 = require("./agent-tools");
|
|
41
41
|
Object.defineProperty(exports, "IAgentToolType", { enumerable: true, get: function () { return agent_tools_1.IAgentToolType; } });
|
|
42
42
|
Object.defineProperty(exports, "isValidAgentToolType", { enumerable: true, get: function () { return agent_tools_1.isValidAgentToolType; } });
|
|
43
|
+
var agent_knowledge_1 = require("./agent-knowledge");
|
|
44
|
+
Object.defineProperty(exports, "AgentKnowledgeFileType", { enumerable: true, get: function () { return agent_knowledge_1.AgentKnowledgeFileType; } });
|
|
43
45
|
//# sourceMappingURL=index.js.map
|
package/lib/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;AAAA,mCAAmH;AAAjG,+FAAA,KAAK,OAAA;AAAmC,oGAAA,UAAU,OAAA;AAAc,wGAAA,cAAc,OAAA;AAChG,mCAA0C;AAAjC,wGAAA,cAAc,OAAA;AACvB,uCAAqD;AAA5C,wGAAA,YAAY,OAAA;AAGrB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;AAAA,mCAAmH;AAAjG,+FAAA,KAAK,OAAA;AAAmC,oGAAA,UAAU,OAAA;AAAc,wGAAA,cAAc,OAAA;AAChG,mCAA0C;AAAjC,wGAAA,cAAc,OAAA;AACvB,uCAAqD;AAA5C,wGAAA,YAAY,OAAA;AAGrB,2CAqBsB;AAVrB,+GAAA,iBAAiB,OAAA;AACjB,4GAAA,cAAc,OAAA;AAgBf,uCAeoB;AAXnB,2GAAA,eAAe,OAAA;AACf,kHAAA,sBAAsB,OAAA;AACtB,kHAAA,sBAAsB,OAAA;AACtB,yHAAA,6BAA6B,OAAA;AAC7B,kHAAA,sBAAsB,OAAA;AACtB,8GAAA,kBAAkB,OAAA;AAClB,gHAAA,oBAAoB,OAAA;AACpB,gHAAA,oBAAoB,OAAA;AACpB,mHAAA,uBAAuB,OAAA;AACvB,+GAAA,mBAAmB,OAAA;AACnB,gHAAA,oBAAoB,OAAA;AAGrB,mCAA+E;AAA/C,sGAAA,YAAY,OAAA;AAC5C,2DAAgK;AAAvJ,2HAAA,qBAAqB,OAAA;AAE9B,mDAAsE;AAA9C,qHAAA,mBAAmB,OAAA;AAE3C,mDAA0I;AAAjI,mHAAA,iBAAiB,OAAA;AAAsB,kHAAA,gBAAgB,OAAA;AAAqB,qHAAA,mBAAmB,OAAA;AAGxG,qDAAmK;AAAlF,mHAAA,gBAAgB,OAAA;AAAoB,qHAAA,kBAAkB,OAAA;AAEvI,6CAAkG;AAA5D,6GAAA,cAAc,OAAA;AAAE,mHAAA,oBAAoB,OAAA;AAE1E,qDAA4E;AAAlD,yHAAA,sBAAsB,OAAA"}
|