@metad/contracts 3.6.1 → 3.6.2
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/index.cjs.d.ts +1 -0
- package/index.cjs.js +4233 -5
- package/index.esm.d.ts +1 -0
- package/index.esm.js +4129 -0
- package/package.json +9 -2
- package/src/agent/{ai-model.ts → ai-model.d.ts} +2 -2
- package/src/agent/graph.d.ts +148 -0
- package/src/agent/index.d.ts +5 -0
- package/src/agent/token.d.ts +21 -0
- package/src/agent/utils.d.ts +19 -0
- package/src/agent/variables.d.ts +14 -0
- package/src/ai/ai-model.model.d.ts +198 -0
- package/src/ai/ai-provider.model.d.ts +43 -0
- package/src/ai/ai.model.d.ts +82 -0
- package/src/ai/chat-message-feedback.model.d.ts +24 -0
- package/src/ai/chat-message.model.d.ts +222 -0
- package/src/ai/chat.model.d.ts +189 -0
- package/src/ai/copilot-checkpoint.model.d.ts +23 -0
- package/src/ai/copilot-example.model.d.ts +19 -0
- package/src/ai/copilot-model.model.d.ts +26 -0
- package/src/ai/copilot-organization.model.d.ts +17 -0
- package/src/ai/copilot-provider.model.d.ts +31 -0
- package/src/ai/copilot-role.model.d.ts +43 -0
- package/src/ai/copilot-store.model.d.ts +29 -0
- package/src/ai/copilot-user.model.d.ts +20 -0
- package/src/ai/copilot.model.d.ts +36 -0
- package/src/ai/{environment.model.ts → environment.model.d.ts} +10 -12
- package/src/ai/feature.model.d.ts +6 -0
- package/src/ai/index.d.ts +39 -0
- package/src/ai/knowledge-doc-chunk.model.d.ts +60 -0
- package/src/ai/knowledge-doc-page.model.d.ts +15 -0
- package/src/ai/knowledge-doc.model.d.ts +192 -0
- package/src/ai/knowledge-pipeline.d.ts +107 -0
- package/src/ai/knowledge-retrieval-log.model.d.ts +10 -0
- package/src/ai/knowledgebase-task.model.d.ts +39 -0
- package/src/ai/knowledgebase.model.d.ts +162 -0
- package/src/ai/rag-web.d.ts +26 -0
- package/src/ai/rag.d.ts +24 -0
- package/src/ai/role-permissions.d.ts +13 -0
- package/src/ai/types.d.ts +39 -0
- package/src/ai/xpert-agent-execution.model.d.ts +96 -0
- package/src/ai/xpert-agent.model.d.ts +192 -0
- package/src/ai/xpert-project.model.d.ts +86 -0
- package/src/ai/xpert-task.model.d.ts +26 -0
- package/src/ai/xpert-template.model.d.ts +47 -0
- package/src/ai/xpert-tool-mcp.model.d.ts +67 -0
- package/src/ai/xpert-tool.model.d.ts +147 -0
- package/src/ai/xpert-toolset.model.d.ts +200 -0
- package/src/ai/xpert-workflow-task.prompt.d.ts +2 -0
- package/src/ai/xpert-workflow.model.d.ts +366 -0
- package/src/ai/xpert-workspace.model.d.ts +32 -0
- package/src/ai/xpert.model.d.ts +529 -0
- package/src/ai/xpert.utils.d.ts +80 -0
- package/src/analytics/ai.d.ts +73 -0
- package/src/analytics/approval-policy.model.d.ts +30 -0
- package/src/analytics/business-area-user.model.d.ts +35 -0
- package/src/analytics/business-area.d.ts +17 -0
- package/src/analytics/certification.model.d.ts +11 -0
- package/src/analytics/chatbi-conversation.model.d.ts +15 -0
- package/src/analytics/chatbi-model.model.d.ts +18 -0
- package/src/analytics/collection.model.d.ts +6 -0
- package/src/analytics/comment.model.d.ts +10 -0
- package/src/analytics/data-source-type.d.ts +16 -0
- package/src/analytics/data-source.d.ts +62 -0
- package/src/analytics/favorite.d.ts +14 -0
- package/src/analytics/features.d.ts +19 -0
- package/src/analytics/feed-model.d.ts +13 -0
- package/src/analytics/gateway.d.ts +27 -0
- package/src/analytics/index.d.ts +38 -0
- package/src/analytics/indicator-app.d.ts +44 -0
- package/src/analytics/{indicator-market.ts → indicator-market.d.ts} +2 -6
- package/src/analytics/indicator.d.ts +106 -0
- package/src/analytics/model-query-log.model.d.ts +41 -0
- package/src/analytics/model-query.d.ts +21 -0
- package/src/analytics/{notification-destination.ts → notification-destination.d.ts} +5 -9
- package/src/analytics/{permission-approval-user.model.ts → permission-approval-user.model.d.ts} +8 -10
- package/src/analytics/permission-approval.model.d.ts +47 -0
- package/src/analytics/project.model.d.ts +50 -0
- package/src/analytics/role-permissions.d.ts +25 -0
- package/src/analytics/schema.d.ts +262 -0
- package/src/analytics/screenshot.model.d.ts +25 -0
- package/src/analytics/semantic-model-entity.d.ts +37 -0
- package/src/analytics/semantic-model-member.d.ts +24 -0
- package/src/analytics/semantic-model.d.ts +175 -0
- package/src/analytics/{story-point.ts → story-point.d.ts} +6 -11
- package/src/analytics/story-template.model.d.ts +28 -0
- package/src/analytics/story-widget.d.ts +12 -0
- package/src/analytics/story.d.ts +93 -0
- package/src/analytics/subscription.d.ts +38 -0
- package/src/analytics/visit.model.d.ts +34 -0
- package/src/analytics/webSocket.d.ts +48 -0
- package/src/api-key.model.d.ts +10 -0
- package/src/base-entity.model.d.ts +27 -0
- package/src/contact.model.d.ts +41 -0
- package/src/core.model.d.ts +97 -0
- package/src/{country.model.ts → country.model.d.ts} +2 -3
- package/src/currency.model.d.ts +579 -0
- package/src/{custom-smtp.model.ts → custom-smtp.model.d.ts} +17 -21
- package/src/date-picker.model.d.ts +5 -0
- package/src/email-template.model.d.ts +39 -0
- package/src/email.model.d.ts +36 -0
- package/src/employee.model.d.ts +128 -0
- package/src/entity-with-members.model.d.ts +13 -0
- package/src/feature.model.d.ts +93 -0
- package/src/file-provider.d.ts +33 -0
- package/src/help-center-article.model.d.ts +0 -0
- package/src/help-center.model.d.ts +0 -0
- package/src/http-status.enum.d.ts +57 -0
- package/src/import-export.model.d.ts +36 -0
- package/src/index.d.ts +48 -0
- package/src/integration/dify.d.ts +0 -0
- package/src/integration/dingtalk.d.ts +2 -0
- package/src/integration/fastgpt.d.ts +0 -0
- package/src/integration/firecrawl.d.ts +2 -0
- package/src/integration/github.d.ts +69 -0
- package/src/integration/index.d.ts +4 -0
- package/src/integration/lark.d.ts +11 -0
- package/src/integration/wecom.d.ts +2 -0
- package/src/integration.model.d.ts +90 -0
- package/src/invite.model.d.ts +123 -0
- package/src/language.model.d.ts +19 -0
- package/src/organization-contact.model.d.ts +73 -0
- package/src/{organization-department.model.ts → organization-department.model.d.ts} +10 -16
- package/src/organization-language.model.d.ts +18 -0
- package/src/organization-projects.model.d.ts +80 -0
- package/src/organization-team-employee-model.d.ts +12 -0
- package/src/organization-team-model.d.ts +19 -0
- package/src/organization.model.d.ts +239 -0
- package/src/{password-reset.model.ts → password-reset.model.d.ts} +10 -14
- package/src/{plain-object.model.ts → plain-object.model.d.ts} +1 -1
- package/src/plugin.d.ts +13 -0
- package/src/role-permission.model.d.ts +61 -0
- package/src/role.model.d.ts +26 -0
- package/src/schedule.d.ts +27 -0
- package/src/secret-token.model.d.ts +11 -0
- package/src/seed.model.d.ts +37 -0
- package/src/storage-file.model.d.ts +40 -0
- package/src/tag-entity.model.d.ts +20 -0
- package/src/tenant.model.d.ts +40 -0
- package/src/tools/index.d.ts +1 -0
- package/src/tools/sandbox.d.ts +5 -0
- package/src/translation.model.d.ts +26 -0
- package/src/types.d.ts +241 -0
- package/src/user-organization.model.d.ts +24 -0
- package/src/user.model.d.ts +131 -0
- package/src/visibility.model.d.ts +6 -0
- package/.babelrc +0 -5
- package/.eslintrc.json +0 -18
- package/babel.config.json +0 -1
- package/jest.config.ts +0 -16
- package/project.json +0 -53
- package/src/agent/graph.ts +0 -272
- package/src/agent/index.ts +0 -5
- package/src/agent/token.ts +0 -23
- package/src/agent/utils.spec.ts +0 -283
- package/src/agent/utils.ts +0 -122
- package/src/agent/variables.ts +0 -21
- package/src/ai/ai-model.model.ts +0 -228
- package/src/ai/ai-provider.model.ts +0 -53
- package/src/ai/ai.model.ts +0 -87
- package/src/ai/chat-message-feedback.model.ts +0 -31
- package/src/ai/chat-message.model.ts +0 -277
- package/src/ai/chat.model.ts +0 -207
- package/src/ai/copilot-checkpoint.model.ts +0 -25
- package/src/ai/copilot-example.model.ts +0 -23
- package/src/ai/copilot-model.model.ts +0 -31
- package/src/ai/copilot-organization.model.ts +0 -21
- package/src/ai/copilot-provider.model.ts +0 -46
- package/src/ai/copilot-role.model.ts +0 -48
- package/src/ai/copilot-store.model.ts +0 -34
- package/src/ai/copilot-user.model.ts +0 -24
- package/src/ai/copilot.model.ts +0 -47
- package/src/ai/feature.model.ts +0 -6
- package/src/ai/index.ts +0 -39
- package/src/ai/knowledge-doc-chunk.model.ts +0 -120
- package/src/ai/knowledge-doc-chunk.spec.ts +0 -47
- package/src/ai/knowledge-doc-page.model.ts +0 -20
- package/src/ai/knowledge-doc.model.ts +0 -252
- package/src/ai/knowledge-pipeline.ts +0 -138
- package/src/ai/knowledge-retrieval-log.model.ts +0 -19
- package/src/ai/knowledgebase-task.model.ts +0 -46
- package/src/ai/knowledgebase.model.ts +0 -190
- package/src/ai/rag-web.ts +0 -54
- package/src/ai/rag.ts +0 -24
- package/src/ai/role-permissions.ts +0 -13
- package/src/ai/types.ts +0 -83
- package/src/ai/xpert-agent-execution.model.ts +0 -115
- package/src/ai/xpert-agent.model.ts +0 -258
- package/src/ai/xpert-project.model.ts +0 -103
- package/src/ai/xpert-task.model.ts +0 -32
- package/src/ai/xpert-template.model.ts +0 -53
- package/src/ai/xpert-tool-mcp.model.ts +0 -72
- package/src/ai/xpert-tool.model.ts +0 -211
- package/src/ai/xpert-toolset.model.ts +0 -220
- package/src/ai/xpert-workflow-task.prompt.ts +0 -71
- package/src/ai/xpert-workflow.model.ts +0 -449
- package/src/ai/xpert-workspace.model.ts +0 -42
- package/src/ai/xpert.model.ts +0 -613
- package/src/ai/xpert.utils.ts +0 -214
- package/src/analytics/ai.ts +0 -79
- package/src/analytics/approval-policy.model.ts +0 -40
- package/src/analytics/business-area-user.model.ts +0 -43
- package/src/analytics/business-area.ts +0 -20
- package/src/analytics/certification.model.ts +0 -12
- package/src/analytics/chatbi-conversation.model.ts +0 -16
- package/src/analytics/chatbi-model.model.ts +0 -22
- package/src/analytics/collection.model.ts +0 -8
- package/src/analytics/comment.model.ts +0 -14
- package/src/analytics/data-source-type.ts +0 -19
- package/src/analytics/data-source.ts +0 -72
- package/src/analytics/favorite.ts +0 -18
- package/src/analytics/features.ts +0 -19
- package/src/analytics/feed-model.ts +0 -15
- package/src/analytics/gateway.ts +0 -30
- package/src/analytics/index.ts +0 -39
- package/src/analytics/indicator-app.ts +0 -49
- package/src/analytics/indicator.ts +0 -127
- package/src/analytics/model-query-log.model.ts +0 -45
- package/src/analytics/model-query.ts +0 -22
- package/src/analytics/permission-approval.model.ts +0 -58
- package/src/analytics/project.model.ts +0 -56
- package/src/analytics/role-permissions.ts +0 -36
- package/src/analytics/schema.ts +0 -300
- package/src/analytics/screenshot.model.ts +0 -28
- package/src/analytics/semantic-model-entity.ts +0 -49
- package/src/analytics/semantic-model-member.ts +0 -45
- package/src/analytics/semantic-model.ts +0 -227
- package/src/analytics/story-template.model.ts +0 -34
- package/src/analytics/story-widget.ts +0 -15
- package/src/analytics/story.ts +0 -109
- package/src/analytics/subscription.ts +0 -43
- package/src/analytics/visit.model.ts +0 -39
- package/src/analytics/webSocket.ts +0 -53
- package/src/api-key.model.ts +0 -11
- package/src/base-entity.model.ts +0 -34
- package/src/contact.model.ts +0 -45
- package/src/core.model.ts +0 -103
- package/src/currency.model.ts +0 -582
- package/src/date-picker.model.ts +0 -5
- package/src/email-template.model.ts +0 -50
- package/src/email.model.ts +0 -46
- package/src/employee.model.ts +0 -199
- package/src/entity-with-members.model.ts +0 -16
- package/src/feature.model.ts +0 -108
- package/src/file-provider.ts +0 -37
- package/src/help-center-article.model.ts +0 -35
- package/src/help-center.model.ts +0 -33
- package/src/http-status.enum.ts +0 -58
- package/src/import-export.model.ts +0 -42
- package/src/index.ts +0 -60
- package/src/integration/dify.ts +0 -31
- package/src/integration/dingtalk.ts +0 -16
- package/src/integration/fastgpt.ts +0 -32
- package/src/integration/firecrawl.ts +0 -46
- package/src/integration/github.ts +0 -149
- package/src/integration/index.ts +0 -15
- package/src/integration/lark.ts +0 -79
- package/src/integration/wecom.ts +0 -16
- package/src/integration.model.ts +0 -119
- package/src/invite.model.ts +0 -144
- package/src/language.model.ts +0 -22
- package/src/organization-contact.model.ts +0 -84
- package/src/organization-language.model.ts +0 -24
- package/src/organization-projects.model.ts +0 -99
- package/src/organization-team-employee-model.ts +0 -14
- package/src/organization-team-model.ts +0 -25
- package/src/organization.model.ts +0 -266
- package/src/plugin.ts +0 -15
- package/src/role-permission.model.ts +0 -123
- package/src/role.model.ts +0 -31
- package/src/schedule.ts +0 -71
- package/src/secret-token.model.ts +0 -15
- package/src/seed.model.ts +0 -50
- package/src/storage-file.model.ts +0 -46
- package/src/tag-entity.model.ts +0 -23
- package/src/tenant.model.ts +0 -52
- package/src/tools/index.ts +0 -1
- package/src/tools/sandbox.ts +0 -5
- package/src/translation.model.ts +0 -37
- package/src/types.ts +0 -277
- package/src/user-organization.model.ts +0 -31
- package/src/user.model.ts +0 -151
- package/src/visibility.model.ts +0 -6
- package/tsconfig.json +0 -22
- package/tsconfig.lib.json +0 -10
- package/tsconfig.spec.json +0 -9
package/index.cjs.js
CHANGED
|
@@ -1,6 +1,4234 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function getDefaultExportFromCjs(x) {
|
|
4
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
var shortUniqueId = {
|
|
8
|
+
exports: {}
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
(function (module) {
|
|
12
|
+
function _array_like_to_array(arr, len) {
|
|
13
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
14
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
15
|
+
return arr2;
|
|
16
|
+
}
|
|
17
|
+
function _array_without_holes(arr) {
|
|
18
|
+
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
19
|
+
}
|
|
20
|
+
function _assert_this_initialized(self) {
|
|
21
|
+
if (self === void 0) {
|
|
22
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
23
|
+
}
|
|
24
|
+
return self;
|
|
25
|
+
}
|
|
26
|
+
function _class_call_check(instance, Constructor) {
|
|
27
|
+
if (!(instance instanceof Constructor)) {
|
|
28
|
+
throw new TypeError("Cannot call a class as a function");
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function _construct(Parent, args, Class) {
|
|
32
|
+
if (_is_native_reflect_construct()) {
|
|
33
|
+
_construct = Reflect.construct;
|
|
34
|
+
} else {
|
|
35
|
+
_construct = function construct(Parent, args, Class) {
|
|
36
|
+
var a = [
|
|
37
|
+
null
|
|
38
|
+
];
|
|
39
|
+
a.push.apply(a, args);
|
|
40
|
+
var Constructor = Function.bind.apply(Parent, a);
|
|
41
|
+
var instance = new Constructor();
|
|
42
|
+
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
43
|
+
return instance;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
return _construct.apply(null, arguments);
|
|
47
|
+
}
|
|
48
|
+
function _get_prototype_of(o) {
|
|
49
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
50
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
51
|
+
};
|
|
52
|
+
return _get_prototype_of(o);
|
|
53
|
+
}
|
|
54
|
+
function _inherits(subClass, superClass) {
|
|
55
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
56
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
57
|
+
}
|
|
58
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
59
|
+
constructor: {
|
|
60
|
+
value: subClass,
|
|
61
|
+
writable: true,
|
|
62
|
+
configurable: true
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
66
|
+
}
|
|
67
|
+
function _is_native_function(fn) {
|
|
68
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
69
|
+
}
|
|
70
|
+
function _iterable_to_array(iter) {
|
|
71
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
72
|
+
}
|
|
73
|
+
function _non_iterable_spread() {
|
|
74
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
75
|
+
}
|
|
76
|
+
function _possible_constructor_return(self, call) {
|
|
77
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
78
|
+
return call;
|
|
79
|
+
}
|
|
80
|
+
return _assert_this_initialized(self);
|
|
81
|
+
}
|
|
82
|
+
function _set_prototype_of(o, p) {
|
|
83
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
84
|
+
o.__proto__ = p;
|
|
85
|
+
return o;
|
|
86
|
+
};
|
|
87
|
+
return _set_prototype_of(o, p);
|
|
88
|
+
}
|
|
89
|
+
function _to_consumable_array(arr) {
|
|
90
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
91
|
+
}
|
|
92
|
+
function _type_of(obj) {
|
|
93
|
+
"@swc/helpers - typeof";
|
|
94
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
95
|
+
}
|
|
96
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
97
|
+
if (!o) return;
|
|
98
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
99
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
100
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
101
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
102
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
103
|
+
}
|
|
104
|
+
function _wrap_native_super(Class) {
|
|
105
|
+
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
106
|
+
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
107
|
+
if (Class === null || !_is_native_function(Class)) return Class;
|
|
108
|
+
if (typeof Class !== "function") {
|
|
109
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
110
|
+
}
|
|
111
|
+
if (typeof _cache !== "undefined") {
|
|
112
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
|
113
|
+
_cache.set(Class, Wrapper);
|
|
114
|
+
}
|
|
115
|
+
function Wrapper() {
|
|
116
|
+
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
117
|
+
}
|
|
118
|
+
Wrapper.prototype = Object.create(Class.prototype, {
|
|
119
|
+
constructor: {
|
|
120
|
+
value: Wrapper,
|
|
121
|
+
enumerable: false,
|
|
122
|
+
writable: true,
|
|
123
|
+
configurable: true
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
return _set_prototype_of(Wrapper, Class);
|
|
127
|
+
};
|
|
128
|
+
return _wrap_native_super(Class);
|
|
129
|
+
}
|
|
130
|
+
function _is_native_reflect_construct() {
|
|
131
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
132
|
+
if (Reflect.construct.sham) return false;
|
|
133
|
+
if (typeof Proxy === "function") return true;
|
|
134
|
+
try {
|
|
135
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
136
|
+
return true;
|
|
137
|
+
} catch (e) {
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
function _create_super(Derived) {
|
|
142
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
143
|
+
return function _createSuperInternal() {
|
|
144
|
+
var Super = _get_prototype_of(Derived), result;
|
|
145
|
+
if (hasNativeReflectConstruct) {
|
|
146
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
147
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
148
|
+
} else {
|
|
149
|
+
result = Super.apply(this, arguments);
|
|
150
|
+
}
|
|
151
|
+
return _possible_constructor_return(this, result);
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
var ShortUniqueId = function() {
|
|
155
|
+
var __defProp = Object.defineProperty;
|
|
156
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
157
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
158
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
159
|
+
var __defNormalProp = function(obj, key, value) {
|
|
160
|
+
return key in obj ? __defProp(obj, key, {
|
|
161
|
+
enumerable: true,
|
|
162
|
+
configurable: true,
|
|
163
|
+
writable: true,
|
|
164
|
+
value: value
|
|
165
|
+
}) : obj[key] = value;
|
|
166
|
+
};
|
|
167
|
+
var __spreadValues = function(a, b) {
|
|
168
|
+
for(var prop in b || (b = {}))if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
169
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
170
|
+
if (__getOwnPropSymbols) try {
|
|
171
|
+
for(var _iterator = __getOwnPropSymbols(b)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
172
|
+
var prop = _step.value;
|
|
173
|
+
if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
174
|
+
}
|
|
175
|
+
} catch (err) {
|
|
176
|
+
_didIteratorError = true;
|
|
177
|
+
_iteratorError = err;
|
|
178
|
+
} finally{
|
|
179
|
+
try {
|
|
180
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
181
|
+
_iterator.return();
|
|
182
|
+
}
|
|
183
|
+
} finally{
|
|
184
|
+
if (_didIteratorError) {
|
|
185
|
+
throw _iteratorError;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
return a;
|
|
190
|
+
};
|
|
191
|
+
var __markAsModule = function(target) {
|
|
192
|
+
return __defProp(target, "__esModule", {
|
|
193
|
+
value: true
|
|
194
|
+
});
|
|
195
|
+
};
|
|
196
|
+
var __export = function(target, all) {
|
|
197
|
+
__markAsModule(target);
|
|
198
|
+
for(var name in all)__defProp(target, name, {
|
|
199
|
+
get: all[name],
|
|
200
|
+
enumerable: true
|
|
201
|
+
});
|
|
202
|
+
};
|
|
203
|
+
// src/index.ts
|
|
204
|
+
var src_exports = {};
|
|
205
|
+
__export(src_exports, {
|
|
206
|
+
DEFAULT_UUID_LENGTH: function() {
|
|
207
|
+
return DEFAULT_UUID_LENGTH;
|
|
208
|
+
},
|
|
209
|
+
default: function() {
|
|
210
|
+
return ShortUniqueId;
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
// package.json
|
|
214
|
+
var version = "4.4.4";
|
|
215
|
+
// src/index.ts
|
|
216
|
+
var DEFAULT_UUID_LENGTH = 6;
|
|
217
|
+
var DEFAULT_OPTIONS = {
|
|
218
|
+
dictionary: "alphanum",
|
|
219
|
+
shuffle: true,
|
|
220
|
+
debug: false,
|
|
221
|
+
length: DEFAULT_UUID_LENGTH
|
|
222
|
+
};
|
|
223
|
+
var _ShortUniqueId = /*#__PURE__*/ function(Function1) {
|
|
224
|
+
_inherits(_ShortUniqueId, Function1);
|
|
225
|
+
var _super = _create_super(_ShortUniqueId);
|
|
226
|
+
function _ShortUniqueId() {
|
|
227
|
+
var argOptions = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
228
|
+
_class_call_check(this, _ShortUniqueId);
|
|
229
|
+
var _this;
|
|
230
|
+
_this = _super.call(this);
|
|
231
|
+
_this.dictIndex = 0;
|
|
232
|
+
_this.dictRange = [];
|
|
233
|
+
_this.lowerBound = 0;
|
|
234
|
+
_this.upperBound = 0;
|
|
235
|
+
_this.dictLength = 0;
|
|
236
|
+
_this._digit_first_ascii = 48;
|
|
237
|
+
_this._digit_last_ascii = 58;
|
|
238
|
+
_this._alpha_lower_first_ascii = 97;
|
|
239
|
+
_this._alpha_lower_last_ascii = 123;
|
|
240
|
+
_this._hex_last_ascii = 103;
|
|
241
|
+
_this._alpha_upper_first_ascii = 65;
|
|
242
|
+
_this._alpha_upper_last_ascii = 91;
|
|
243
|
+
_this._number_dict_ranges = {
|
|
244
|
+
digits: [
|
|
245
|
+
_this._digit_first_ascii,
|
|
246
|
+
_this._digit_last_ascii
|
|
247
|
+
]
|
|
248
|
+
};
|
|
249
|
+
_this._alpha_dict_ranges = {
|
|
250
|
+
lowerCase: [
|
|
251
|
+
_this._alpha_lower_first_ascii,
|
|
252
|
+
_this._alpha_lower_last_ascii
|
|
253
|
+
],
|
|
254
|
+
upperCase: [
|
|
255
|
+
_this._alpha_upper_first_ascii,
|
|
256
|
+
_this._alpha_upper_last_ascii
|
|
257
|
+
]
|
|
258
|
+
};
|
|
259
|
+
_this._alpha_lower_dict_ranges = {
|
|
260
|
+
lowerCase: [
|
|
261
|
+
_this._alpha_lower_first_ascii,
|
|
262
|
+
_this._alpha_lower_last_ascii
|
|
263
|
+
]
|
|
264
|
+
};
|
|
265
|
+
_this._alpha_upper_dict_ranges = {
|
|
266
|
+
upperCase: [
|
|
267
|
+
_this._alpha_upper_first_ascii,
|
|
268
|
+
_this._alpha_upper_last_ascii
|
|
269
|
+
]
|
|
270
|
+
};
|
|
271
|
+
_this._alphanum_dict_ranges = {
|
|
272
|
+
digits: [
|
|
273
|
+
_this._digit_first_ascii,
|
|
274
|
+
_this._digit_last_ascii
|
|
275
|
+
],
|
|
276
|
+
lowerCase: [
|
|
277
|
+
_this._alpha_lower_first_ascii,
|
|
278
|
+
_this._alpha_lower_last_ascii
|
|
279
|
+
],
|
|
280
|
+
upperCase: [
|
|
281
|
+
_this._alpha_upper_first_ascii,
|
|
282
|
+
_this._alpha_upper_last_ascii
|
|
283
|
+
]
|
|
284
|
+
};
|
|
285
|
+
_this._alphanum_lower_dict_ranges = {
|
|
286
|
+
digits: [
|
|
287
|
+
_this._digit_first_ascii,
|
|
288
|
+
_this._digit_last_ascii
|
|
289
|
+
],
|
|
290
|
+
lowerCase: [
|
|
291
|
+
_this._alpha_lower_first_ascii,
|
|
292
|
+
_this._alpha_lower_last_ascii
|
|
293
|
+
]
|
|
294
|
+
};
|
|
295
|
+
_this._alphanum_upper_dict_ranges = {
|
|
296
|
+
digits: [
|
|
297
|
+
_this._digit_first_ascii,
|
|
298
|
+
_this._digit_last_ascii
|
|
299
|
+
],
|
|
300
|
+
upperCase: [
|
|
301
|
+
_this._alpha_upper_first_ascii,
|
|
302
|
+
_this._alpha_upper_last_ascii
|
|
303
|
+
]
|
|
304
|
+
};
|
|
305
|
+
_this._hex_dict_ranges = {
|
|
306
|
+
decDigits: [
|
|
307
|
+
_this._digit_first_ascii,
|
|
308
|
+
_this._digit_last_ascii
|
|
309
|
+
],
|
|
310
|
+
alphaDigits: [
|
|
311
|
+
_this._alpha_lower_first_ascii,
|
|
312
|
+
_this._hex_last_ascii
|
|
313
|
+
]
|
|
314
|
+
};
|
|
315
|
+
_this.log = function() {
|
|
316
|
+
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
317
|
+
args[_key] = arguments[_key];
|
|
318
|
+
}
|
|
319
|
+
var finalArgs = _to_consumable_array(args);
|
|
320
|
+
finalArgs[0] = "[short-unique-id] ".concat(args[0]);
|
|
321
|
+
if (_this.debug === true) {
|
|
322
|
+
if (typeof console !== "undefined" && console !== null) {
|
|
323
|
+
var _console;
|
|
324
|
+
return (_console = console).log.apply(_console, _to_consumable_array(finalArgs));
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
_this.setDictionary = function(dictionary, shuffle) {
|
|
329
|
+
var finalDict;
|
|
330
|
+
if (dictionary && Array.isArray(dictionary) && dictionary.length > 1) {
|
|
331
|
+
finalDict = dictionary;
|
|
332
|
+
} else {
|
|
333
|
+
finalDict = [];
|
|
334
|
+
var i;
|
|
335
|
+
_this.dictIndex = i = 0;
|
|
336
|
+
var rangesName = "_".concat(dictionary, "_dict_ranges");
|
|
337
|
+
var ranges = _this[rangesName];
|
|
338
|
+
Object.keys(ranges).forEach(function(rangeType) {
|
|
339
|
+
var rangeTypeKey = rangeType;
|
|
340
|
+
_this.dictRange = ranges[rangeTypeKey];
|
|
341
|
+
_this.lowerBound = _this.dictRange[0];
|
|
342
|
+
_this.upperBound = _this.dictRange[1];
|
|
343
|
+
for(_this.dictIndex = i = _this.lowerBound; _this.lowerBound <= _this.upperBound ? i < _this.upperBound : i > _this.upperBound; _this.dictIndex = _this.lowerBound <= _this.upperBound ? i += 1 : i -= 1){
|
|
344
|
+
finalDict.push(String.fromCharCode(_this.dictIndex));
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
if (shuffle) {
|
|
349
|
+
var PROBABILITY = 0.5;
|
|
350
|
+
finalDict = finalDict.sort(function() {
|
|
351
|
+
return Math.random() - PROBABILITY;
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
_this.dict = finalDict;
|
|
355
|
+
_this.dictLength = _this.dict.length;
|
|
356
|
+
_this.counter = 0;
|
|
357
|
+
};
|
|
358
|
+
_this.seq = function() {
|
|
359
|
+
return _this.sequentialUUID();
|
|
360
|
+
};
|
|
361
|
+
_this.sequentialUUID = function() {
|
|
362
|
+
var counterDiv;
|
|
363
|
+
var counterRem;
|
|
364
|
+
var id = "";
|
|
365
|
+
counterDiv = _this.counter;
|
|
366
|
+
do {
|
|
367
|
+
counterRem = counterDiv % _this.dictLength;
|
|
368
|
+
counterDiv = Math.trunc(counterDiv / _this.dictLength);
|
|
369
|
+
id += _this.dict[counterRem];
|
|
370
|
+
}while (counterDiv !== 0);
|
|
371
|
+
_this.counter += 1;
|
|
372
|
+
return id;
|
|
373
|
+
};
|
|
374
|
+
_this.randomUUID = function() {
|
|
375
|
+
var uuidLength = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : _this.uuidLength || DEFAULT_UUID_LENGTH;
|
|
376
|
+
var id;
|
|
377
|
+
var randomPartIdx;
|
|
378
|
+
var j;
|
|
379
|
+
if (uuidLength === null || typeof uuidLength === "undefined" || uuidLength < 1) {
|
|
380
|
+
throw new Error("Invalid UUID Length Provided");
|
|
381
|
+
}
|
|
382
|
+
id = "";
|
|
383
|
+
for(j = 0; j < uuidLength; j += 1){
|
|
384
|
+
randomPartIdx = parseInt((Math.random() * _this.dictLength).toFixed(0), 10) % _this.dictLength;
|
|
385
|
+
id += _this.dict[randomPartIdx];
|
|
386
|
+
}
|
|
387
|
+
return id;
|
|
388
|
+
};
|
|
389
|
+
_this.availableUUIDs = function() {
|
|
390
|
+
var uuidLength = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : _this.uuidLength;
|
|
391
|
+
return parseFloat(Math.pow(_to_consumable_array(new Set(_this.dict)).length, uuidLength).toFixed(0));
|
|
392
|
+
};
|
|
393
|
+
_this.approxMaxBeforeCollision = function() {
|
|
394
|
+
var rounds = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : _this.availableUUIDs(_this.uuidLength);
|
|
395
|
+
return parseFloat(Math.sqrt(Math.PI / 2 * rounds).toFixed(20));
|
|
396
|
+
};
|
|
397
|
+
_this.collisionProbability = function() {
|
|
398
|
+
var rounds = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : _this.availableUUIDs(_this.uuidLength), uuidLength = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _this.uuidLength;
|
|
399
|
+
return parseFloat((_this.approxMaxBeforeCollision(rounds) / _this.availableUUIDs(uuidLength)).toFixed(20));
|
|
400
|
+
};
|
|
401
|
+
_this.uniqueness = function() {
|
|
402
|
+
var rounds = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : _this.availableUUIDs(_this.uuidLength);
|
|
403
|
+
var score = parseFloat((1 - _this.approxMaxBeforeCollision(rounds) / rounds).toFixed(20));
|
|
404
|
+
return score > 1 ? 1 : score < 0 ? 0 : score;
|
|
405
|
+
};
|
|
406
|
+
_this.getVersion = function() {
|
|
407
|
+
return _this.version;
|
|
408
|
+
};
|
|
409
|
+
_this.stamp = function(finalLength) {
|
|
410
|
+
if (typeof finalLength !== "number" || finalLength < 10) {
|
|
411
|
+
throw new Error("Param finalLength must be number greater than 10");
|
|
412
|
+
}
|
|
413
|
+
var hexStamp = Math.floor(+new Date() / 1e3).toString(16);
|
|
414
|
+
var idLength = finalLength - 9;
|
|
415
|
+
var rndIdx = Math.round(Math.random() * (idLength > 15 ? 15 : idLength));
|
|
416
|
+
var id = _this.randomUUID(idLength);
|
|
417
|
+
return "".concat(id.substr(0, rndIdx)).concat(hexStamp).concat(id.substr(rndIdx)).concat(rndIdx.toString(16));
|
|
418
|
+
};
|
|
419
|
+
_this.parseStamp = function(stamp) {
|
|
420
|
+
if (stamp.length < 10) {
|
|
421
|
+
throw new Error("Stamp length invalid");
|
|
422
|
+
}
|
|
423
|
+
var rndIdx = parseInt(stamp.substr(stamp.length - 1, 1), 16);
|
|
424
|
+
return new Date(parseInt(stamp.substr(rndIdx, 8), 16) * 1e3);
|
|
425
|
+
};
|
|
426
|
+
var options = __spreadValues(__spreadValues({}, DEFAULT_OPTIONS), argOptions);
|
|
427
|
+
_this.counter = 0;
|
|
428
|
+
_this.debug = false;
|
|
429
|
+
_this.dict = [];
|
|
430
|
+
_this.version = version;
|
|
431
|
+
var dictionary = options.dictionary, shuffle = options.shuffle, length = options.length;
|
|
432
|
+
_this.uuidLength = length;
|
|
433
|
+
_this.setDictionary(dictionary, shuffle);
|
|
434
|
+
_this.debug = options.debug;
|
|
435
|
+
_this.log(_this.dict);
|
|
436
|
+
_this.log("Generator instantiated with Dictionary Size ".concat(_this.dictLength));
|
|
437
|
+
return _possible_constructor_return(_this, new Proxy(_assert_this_initialized(_this), {
|
|
438
|
+
apply: function(target, that, args) {
|
|
439
|
+
return _this.randomUUID.apply(_this, _to_consumable_array(args));
|
|
440
|
+
}
|
|
441
|
+
}));
|
|
442
|
+
}
|
|
443
|
+
return _ShortUniqueId;
|
|
444
|
+
}(_wrap_native_super(Function));
|
|
445
|
+
var ShortUniqueId = _ShortUniqueId;
|
|
446
|
+
ShortUniqueId.default = _ShortUniqueId;
|
|
447
|
+
return src_exports;
|
|
448
|
+
}();
|
|
449
|
+
|
|
450
|
+
(module.exports = ShortUniqueId.default), "undefined" != typeof window && (ShortUniqueId = ShortUniqueId.default);
|
|
451
|
+
} (shortUniqueId));
|
|
452
|
+
|
|
453
|
+
var shortUniqueIdExports = shortUniqueId.exports;
|
|
454
|
+
var ShortUniqueId = /*@__PURE__*/getDefaultExportFromCjs(shortUniqueIdExports);
|
|
455
|
+
|
|
456
|
+
var uuid = new ShortUniqueId({
|
|
457
|
+
length: 10
|
|
458
|
+
});
|
|
459
|
+
exports.ParameterTypeEnum = void 0;
|
|
460
|
+
(function(ParameterTypeEnum) {
|
|
461
|
+
ParameterTypeEnum["STRING"] = "string";
|
|
462
|
+
ParameterTypeEnum["NUMBER"] = "number";
|
|
463
|
+
ParameterTypeEnum["BOOLEAN"] = "boolean";
|
|
464
|
+
ParameterTypeEnum["ARRAY"] = "array";
|
|
465
|
+
ParameterTypeEnum["SELECT"] = "select";
|
|
466
|
+
ParameterTypeEnum["SECRET_INPUT"] = "secret-input";
|
|
467
|
+
ParameterTypeEnum["FILE"] = "file";
|
|
468
|
+
})(exports.ParameterTypeEnum || (exports.ParameterTypeEnum = {}));
|
|
469
|
+
function letterStartSUID(start) {
|
|
470
|
+
return start + uuid();
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
exports.OrderTypeEnum = void 0;
|
|
474
|
+
(function(OrderTypeEnum) {
|
|
475
|
+
OrderTypeEnum["DESC"] = "DESC";
|
|
476
|
+
OrderTypeEnum["ASC"] = "ASC";
|
|
477
|
+
})(exports.OrderTypeEnum || (exports.OrderTypeEnum = {}));
|
|
478
|
+
|
|
479
|
+
var DEFAULT_CURRENCIES = {
|
|
480
|
+
AFN: "Afghan Afghani",
|
|
481
|
+
AFA: "Afghan Afghani (1927–2002)",
|
|
482
|
+
ALL: "Albanian Lek",
|
|
483
|
+
ALK: "Albanian Lek (1946–1965)",
|
|
484
|
+
DZD: "Algerian Dinar",
|
|
485
|
+
ADP: "Andorran Peseta",
|
|
486
|
+
AOA: "Angolan Kwanza",
|
|
487
|
+
AOK: "Angolan Kwanza (1977–1991)",
|
|
488
|
+
AON: "Angolan New Kwanza (1990–2000)",
|
|
489
|
+
AOR: "Angolan Readjusted Kwanza (1995–1999)",
|
|
490
|
+
ARA: "Argentine Austral",
|
|
491
|
+
ARS: "Argentine Peso",
|
|
492
|
+
ARM: "Argentine Peso (1881–1970)",
|
|
493
|
+
ARP: "Argentine Peso (1983–1985)",
|
|
494
|
+
ARL: "Argentine Peso Ley (1970–1983)",
|
|
495
|
+
AMD: "Armenian Dram",
|
|
496
|
+
AWG: "Aruban Florin",
|
|
497
|
+
AUD: "Australian Dollar",
|
|
498
|
+
ATS: "Austrian Schilling",
|
|
499
|
+
AZN: "Azerbaijani Manat",
|
|
500
|
+
AZM: "Azerbaijani Manat (1993–2006)",
|
|
501
|
+
BSD: "Bahamian Dollar",
|
|
502
|
+
BHD: "Bahraini Dinar",
|
|
503
|
+
BDT: "Bangladeshi Taka",
|
|
504
|
+
BBD: "Barbadian Dollar",
|
|
505
|
+
BYN: "Belarusian Ruble",
|
|
506
|
+
BYB: "Belarusian Ruble (1994–1999)",
|
|
507
|
+
BYR: "Belarusian Ruble (2000–2016)",
|
|
508
|
+
BEF: "Belgian Franc",
|
|
509
|
+
BEC: "Belgian Franc (convertible)",
|
|
510
|
+
BEL: "Belgian Franc (financial)",
|
|
511
|
+
BZD: "Belize Dollar",
|
|
512
|
+
BMD: "Bermudan Dollar",
|
|
513
|
+
BTN: "Bhutanese Ngultrum",
|
|
514
|
+
BOB: "Bolivian Boliviano",
|
|
515
|
+
BOL: "Bolivian Boliviano (1863–1963)",
|
|
516
|
+
BOV: "Bolivian Mvdol",
|
|
517
|
+
BOP: "Bolivian Peso",
|
|
518
|
+
BAM: "Bosnia-Herzegovina Convertible Mark",
|
|
519
|
+
BAD: "Bosnia-Herzegovina Dinar (1992–1994)",
|
|
520
|
+
BAN: "Bosnia-Herzegovina New Dinar (1994–1997)",
|
|
521
|
+
BWP: "Botswanan Pula",
|
|
522
|
+
BRC: "Brazilian Cruzado (1986–1989)",
|
|
523
|
+
BRZ: "Brazilian Cruzeiro (1942–1967)",
|
|
524
|
+
BRE: "Brazilian Cruzeiro (1990–1993)",
|
|
525
|
+
BRR: "Brazilian Cruzeiro (1993–1994)",
|
|
526
|
+
BRN: "Brazilian New Cruzado (1989–1990)",
|
|
527
|
+
BRB: "Brazilian New Cruzeiro (1967–1986)",
|
|
528
|
+
BRL: "Brazilian Real",
|
|
529
|
+
GBP: "British Pound",
|
|
530
|
+
BND: "Brunei Dollar",
|
|
531
|
+
BGL: "Bulgarian Hard Lev",
|
|
532
|
+
BGN: "Bulgarian Lev",
|
|
533
|
+
BGO: "Bulgarian Lev (1879–1952)",
|
|
534
|
+
BGM: "Bulgarian Socialist Lev",
|
|
535
|
+
BUK: "Burmese Kyat",
|
|
536
|
+
BIF: "Burundian Franc",
|
|
537
|
+
XPF: "CFP Franc",
|
|
538
|
+
KHR: "Cambodian Riel",
|
|
539
|
+
CAD: "Canadian Dollar",
|
|
540
|
+
CVE: "Cape Verdean Escudo",
|
|
541
|
+
KYD: "Cayman Islands Dollar",
|
|
542
|
+
XAF: "Central African CFA Franc",
|
|
543
|
+
CLE: "Chilean Escudo",
|
|
544
|
+
CLP: "Chilean Peso",
|
|
545
|
+
CLF: "Chilean Unit of Account (UF)",
|
|
546
|
+
CNX: "Chinese People’s Bank Dollar",
|
|
547
|
+
CNY: "Chinese Yuan",
|
|
548
|
+
COP: "Colombian Peso",
|
|
549
|
+
COU: "Colombian Real Value Unit",
|
|
550
|
+
KMF: "Comorian Franc",
|
|
551
|
+
CDF: "Congolese Franc",
|
|
552
|
+
CRC: "Costa Rican Col\xf3n",
|
|
553
|
+
HRD: "Croatian Dinar",
|
|
554
|
+
HRK: "Croatian Kuna",
|
|
555
|
+
CUC: "Cuban Convertible Peso",
|
|
556
|
+
CUP: "Cuban Peso",
|
|
557
|
+
CYP: "Cypriot Pound",
|
|
558
|
+
CZK: "Czech Koruna",
|
|
559
|
+
CSK: "Czechoslovak Hard Koruna",
|
|
560
|
+
DKK: "Danish Krone",
|
|
561
|
+
DJF: "Djiboutian Franc",
|
|
562
|
+
DOP: "Dominican Peso",
|
|
563
|
+
NLG: "Dutch Guilder",
|
|
564
|
+
XCD: "East Caribbean Dollar",
|
|
565
|
+
DDM: "East German Mark",
|
|
566
|
+
ECS: "Ecuadorian Sucre",
|
|
567
|
+
ECV: "Ecuadorian Unit of Constant Value",
|
|
568
|
+
EGP: "Egyptian Pound",
|
|
569
|
+
GQE: "Equatorial Guinean Ekwele",
|
|
570
|
+
ERN: "Eritrean Nakfa",
|
|
571
|
+
EEK: "Estonian Kroon",
|
|
572
|
+
ETB: "Ethiopian Birr",
|
|
573
|
+
EUR: "Euro",
|
|
574
|
+
XEU: "European Currency Unit",
|
|
575
|
+
FKP: "Falkland Islands Pound",
|
|
576
|
+
FJD: "Fijian Dollar",
|
|
577
|
+
FIM: "Finnish Markka",
|
|
578
|
+
FRF: "French Franc",
|
|
579
|
+
XFO: "French Gold Franc",
|
|
580
|
+
XFU: "French UIC-Franc",
|
|
581
|
+
GMD: "Gambian Dalasi",
|
|
582
|
+
GEK: "Georgian Kupon Larit",
|
|
583
|
+
GEL: "Georgian Lari",
|
|
584
|
+
DEM: "German Mark",
|
|
585
|
+
GHS: "Ghanaian Cedi",
|
|
586
|
+
GHC: "Ghanaian Cedi (1979–2007)",
|
|
587
|
+
GIP: "Gibraltar Pound",
|
|
588
|
+
GRD: "Greek Drachma",
|
|
589
|
+
GTQ: "Guatemalan Quetzal",
|
|
590
|
+
GWP: "Guinea-Bissau Peso",
|
|
591
|
+
GNF: "Guinean Franc",
|
|
592
|
+
GNS: "Guinean Syli",
|
|
593
|
+
GYD: "Guyanaese Dollar",
|
|
594
|
+
HTG: "Haitian Gourde",
|
|
595
|
+
HNL: "Honduran Lempira",
|
|
596
|
+
HKD: "Hong Kong Dollar",
|
|
597
|
+
HUF: "Hungarian Forint",
|
|
598
|
+
ISK: "Icelandic Kr\xf3na",
|
|
599
|
+
ISJ: "Icelandic Kr\xf3na (1918–1981)",
|
|
600
|
+
INR: "Indian Rupee",
|
|
601
|
+
IDR: "Indonesian Rupiah",
|
|
602
|
+
IRR: "Iranian Rial",
|
|
603
|
+
IQD: "Iraqi Dinar",
|
|
604
|
+
IEP: "Irish Pound",
|
|
605
|
+
ILS: "Israeli New Shekel",
|
|
606
|
+
ILP: "Israeli Pound",
|
|
607
|
+
ILR: "Israeli Shekel (1980–1985)",
|
|
608
|
+
ITL: "Italian Lira",
|
|
609
|
+
JMD: "Jamaican Dollar",
|
|
610
|
+
JPY: "Japanese Yen",
|
|
611
|
+
JOD: "Jordanian Dinar",
|
|
612
|
+
KZT: "Kazakhstani Tenge",
|
|
613
|
+
KES: "Kenyan Shilling",
|
|
614
|
+
KWD: "Kuwaiti Dinar",
|
|
615
|
+
KGS: "Kyrgystani Som",
|
|
616
|
+
LAK: "Laotian Kip",
|
|
617
|
+
LVL: "Latvian Lats",
|
|
618
|
+
LVR: "Latvian Ruble",
|
|
619
|
+
LBP: "Lebanese Pound",
|
|
620
|
+
LSL: "Lesotho Loti",
|
|
621
|
+
LRD: "Liberian Dollar",
|
|
622
|
+
LYD: "Libyan Dinar",
|
|
623
|
+
LTL: "Lithuanian Litas",
|
|
624
|
+
LTT: "Lithuanian Talonas",
|
|
625
|
+
LUL: "Luxembourg Financial Franc",
|
|
626
|
+
LUC: "Luxembourgian Convertible Franc",
|
|
627
|
+
LUF: "Luxembourgian Franc",
|
|
628
|
+
MOP: "Macanese Pataca",
|
|
629
|
+
MKD: "Macedonian Denar",
|
|
630
|
+
MKN: "Macedonian Denar (1992–1993)",
|
|
631
|
+
MGA: "Malagasy Ariary",
|
|
632
|
+
MGF: "Malagasy Franc",
|
|
633
|
+
MWK: "Malawian Kwacha",
|
|
634
|
+
MYR: "Malaysian Ringgit",
|
|
635
|
+
MVR: "Maldivian Rufiyaa",
|
|
636
|
+
MVP: "Maldivian Rupee (1947–1981)",
|
|
637
|
+
MLF: "Malian Franc",
|
|
638
|
+
MTL: "Maltese Lira",
|
|
639
|
+
MTP: "Maltese Pound",
|
|
640
|
+
MRO: "Mauritanian Ouguiya",
|
|
641
|
+
MUR: "Mauritian Rupee",
|
|
642
|
+
MXV: "Mexican Investment Unit",
|
|
643
|
+
MXN: "Mexican Peso",
|
|
644
|
+
MXP: "Mexican Silver Peso (1861–1992)",
|
|
645
|
+
MDC: "Moldovan Cupon",
|
|
646
|
+
MDL: "Moldovan Leu",
|
|
647
|
+
MCF: "Monegasque Franc",
|
|
648
|
+
MNT: "Mongolian Tugrik",
|
|
649
|
+
MAD: "Moroccan Dirham",
|
|
650
|
+
MAF: "Moroccan Franc",
|
|
651
|
+
MZE: "Mozambican Escudo",
|
|
652
|
+
MZN: "Mozambican Metical",
|
|
653
|
+
MZM: "Mozambican Metical (1980–2006)",
|
|
654
|
+
MMK: "Myanmar Kyat",
|
|
655
|
+
NAD: "Namibian Dollar",
|
|
656
|
+
NPR: "Nepalese Rupee",
|
|
657
|
+
ANG: "Netherlands Antillean Guilder",
|
|
658
|
+
TWD: "New Taiwan Dollar",
|
|
659
|
+
NZD: "New Zealand Dollar",
|
|
660
|
+
NIO: "Nicaraguan C\xf3rdoba",
|
|
661
|
+
NIC: "Nicaraguan C\xf3rdoba (1988–1991)",
|
|
662
|
+
NGN: "Nigerian Naira",
|
|
663
|
+
KPW: "North Korean Won",
|
|
664
|
+
NOK: "Norwegian Krone",
|
|
665
|
+
OMR: "Omani Rial",
|
|
666
|
+
PKR: "Pakistani Rupee",
|
|
667
|
+
PAB: "Panamanian Balboa",
|
|
668
|
+
PGK: "Papua New Guinean Kina",
|
|
669
|
+
PYG: "Paraguayan Guarani",
|
|
670
|
+
PEI: "Peruvian Inti",
|
|
671
|
+
PEN: "Peruvian Sol",
|
|
672
|
+
PES: "Peruvian Sol (1863–1965)",
|
|
673
|
+
PHP: "Philippine Peso",
|
|
674
|
+
PLN: "Polish Zloty",
|
|
675
|
+
PLZ: "Polish Zloty (1950–1995)",
|
|
676
|
+
PTE: "Portuguese Escudo",
|
|
677
|
+
GWE: "Portuguese Guinea Escudo",
|
|
678
|
+
QAR: "Qatari Rial",
|
|
679
|
+
XRE: "RINET Funds",
|
|
680
|
+
RHD: "Rhodesian Dollar",
|
|
681
|
+
RON: "Romanian Leu",
|
|
682
|
+
ROL: "Romanian Leu (1952–2006)",
|
|
683
|
+
RUB: "Russian Ruble",
|
|
684
|
+
RUR: "Russian Ruble (1991–1998)",
|
|
685
|
+
RWF: "Rwandan Franc",
|
|
686
|
+
SVC: "Salvadoran Col\xf3n",
|
|
687
|
+
WST: "Samoan Tala",
|
|
688
|
+
SAR: "Saudi Riyal",
|
|
689
|
+
RSD: "Serbian Dinar",
|
|
690
|
+
CSD: "Serbian Dinar (2002–2006)",
|
|
691
|
+
SCR: "Seychellois Rupee",
|
|
692
|
+
SLL: "Sierra Leonean Leone",
|
|
693
|
+
SGD: "Singapore Dollar",
|
|
694
|
+
SKK: "Slovak Koruna",
|
|
695
|
+
SIT: "Slovenian Tolar",
|
|
696
|
+
SBD: "Solomon Islands Dollar",
|
|
697
|
+
SOS: "Somali Shilling",
|
|
698
|
+
ZAR: "South African Rand",
|
|
699
|
+
ZAL: "South African Rand (financial)",
|
|
700
|
+
KRH: "South Korean Hwan (1953–1962)",
|
|
701
|
+
KRW: "South Korean Won",
|
|
702
|
+
KRO: "South Korean Won (1945–1953)",
|
|
703
|
+
SSP: "South Sudanese Pound",
|
|
704
|
+
SUR: "Soviet Rouble",
|
|
705
|
+
ESP: "Spanish Peseta",
|
|
706
|
+
ESA: "Spanish Peseta (A account)",
|
|
707
|
+
ESB: "Spanish Peseta (convertible account)",
|
|
708
|
+
LKR: "Sri Lankan Rupee",
|
|
709
|
+
SHP: "St. Helena Pound",
|
|
710
|
+
SDD: "Sudanese Dinar (1992–2007)",
|
|
711
|
+
SDG: "Sudanese Pound",
|
|
712
|
+
SDP: "Sudanese Pound (1957–1998)",
|
|
713
|
+
SRD: "Surinamese Dollar",
|
|
714
|
+
SRG: "Surinamese Guilder",
|
|
715
|
+
SZL: "Swazi Lilangeni",
|
|
716
|
+
SEK: "Swedish Krona",
|
|
717
|
+
CHF: "Swiss Franc",
|
|
718
|
+
SYP: "Syrian Pound",
|
|
719
|
+
STD: "S\xe3o Tom\xe9 & Pr\xedncipe Dobra",
|
|
720
|
+
TJR: "Tajikistani Ruble",
|
|
721
|
+
TJS: "Tajikistani Somoni",
|
|
722
|
+
TZS: "Tanzanian Shilling",
|
|
723
|
+
THB: "Thai Baht",
|
|
724
|
+
TPE: "Timorese Escudo",
|
|
725
|
+
TOP: "Tongan Paʻanga",
|
|
726
|
+
TTD: "Trinidad & Tobago Dollar",
|
|
727
|
+
TND: "Tunisian Dinar",
|
|
728
|
+
TRY: "Turkish Lira",
|
|
729
|
+
TRL: "Turkish Lira (1922–2005)",
|
|
730
|
+
TMT: "Turkmenistani Manat",
|
|
731
|
+
TMM: "Turkmenistani Manat (1993–2009)",
|
|
732
|
+
USD: "US Dollar",
|
|
733
|
+
USN: "US Dollar (Next day)",
|
|
734
|
+
USS: "US Dollar (Same day)",
|
|
735
|
+
UGX: "Ugandan Shilling",
|
|
736
|
+
UGS: "Ugandan Shilling (1966–1987)",
|
|
737
|
+
UAH: "Ukrainian Hryvnia",
|
|
738
|
+
UAK: "Ukrainian Karbovanets",
|
|
739
|
+
AED: "United Arab Emirates Dirham",
|
|
740
|
+
UYU: "Uruguayan Peso",
|
|
741
|
+
UYP: "Uruguayan Peso (1975–1993)",
|
|
742
|
+
UYI: "Uruguayan Peso (Indexed Units)",
|
|
743
|
+
UZS: "Uzbekistani Som",
|
|
744
|
+
VUV: "Vanuatu Vatu",
|
|
745
|
+
VEF: "Venezuelan Bol\xedvar",
|
|
746
|
+
VEB: "Venezuelan Bol\xedvar (1871–2008)",
|
|
747
|
+
VND: "Vietnamese Dong",
|
|
748
|
+
VNN: "Vietnamese Dong (1978–1985)",
|
|
749
|
+
CHE: "WIR Euro",
|
|
750
|
+
CHW: "WIR Franc",
|
|
751
|
+
XOF: "West African CFA Franc",
|
|
752
|
+
YDD: "Yemeni Dinar",
|
|
753
|
+
YER: "Yemeni Rial",
|
|
754
|
+
YUN: "Yugoslavian Convertible Dinar (1990–1992)",
|
|
755
|
+
YUD: "Yugoslavian Hard Dinar (1966–1990)",
|
|
756
|
+
YUM: "Yugoslavian New Dinar (1994–2002)",
|
|
757
|
+
YUR: "Yugoslavian Reformed Dinar (1992–1993)",
|
|
758
|
+
ZRN: "Zairean New Zaire (1993–1998)",
|
|
759
|
+
ZRZ: "Zairean Zaire (1971–1993)",
|
|
760
|
+
ZMW: "Zambian Kwacha",
|
|
761
|
+
ZMK: "Zambian Kwacha (1968–2012)",
|
|
762
|
+
ZWD: "Zimbabwean Dollar (1980–2008)",
|
|
763
|
+
ZWR: "Zimbabwean Dollar (2008)",
|
|
764
|
+
ZWL: "Zimbabwean Dollar (2009)"
|
|
765
|
+
};
|
|
766
|
+
exports.CurrenciesEnum = void 0;
|
|
767
|
+
(function(CurrenciesEnum) {
|
|
768
|
+
CurrenciesEnum["AFN"] = "AFN";
|
|
769
|
+
CurrenciesEnum["AFA"] = "AFA";
|
|
770
|
+
CurrenciesEnum["ALL"] = "ALL";
|
|
771
|
+
CurrenciesEnum["ALK"] = "ALK";
|
|
772
|
+
CurrenciesEnum["DZD"] = "DZD";
|
|
773
|
+
CurrenciesEnum["ADP"] = "ADP";
|
|
774
|
+
CurrenciesEnum["AOA"] = "AOA";
|
|
775
|
+
CurrenciesEnum["AOK"] = "AOK";
|
|
776
|
+
CurrenciesEnum["AON"] = "AON";
|
|
777
|
+
CurrenciesEnum["AOR"] = "AOR";
|
|
778
|
+
CurrenciesEnum["ARA"] = "ARA";
|
|
779
|
+
CurrenciesEnum["ARS"] = "ARS";
|
|
780
|
+
CurrenciesEnum["ARM"] = "ARM";
|
|
781
|
+
CurrenciesEnum["ARP"] = "ARP";
|
|
782
|
+
CurrenciesEnum["ARL"] = "ARL";
|
|
783
|
+
CurrenciesEnum["AMD"] = "AMD";
|
|
784
|
+
CurrenciesEnum["AWG"] = "AWG";
|
|
785
|
+
CurrenciesEnum["AUD"] = "AUD";
|
|
786
|
+
CurrenciesEnum["ATS"] = "ATS";
|
|
787
|
+
CurrenciesEnum["AZN"] = "AZN";
|
|
788
|
+
CurrenciesEnum["AZM"] = "AZM";
|
|
789
|
+
CurrenciesEnum["BSD"] = "BSD";
|
|
790
|
+
CurrenciesEnum["BHD"] = "BHD";
|
|
791
|
+
CurrenciesEnum["BDT"] = "BDT";
|
|
792
|
+
CurrenciesEnum["BBD"] = "BBD";
|
|
793
|
+
CurrenciesEnum["BYN"] = "BYN";
|
|
794
|
+
CurrenciesEnum["BYB"] = "BYB";
|
|
795
|
+
CurrenciesEnum["BYR"] = "BYR";
|
|
796
|
+
CurrenciesEnum["BEF"] = "BEF";
|
|
797
|
+
CurrenciesEnum["BEC"] = "BEC";
|
|
798
|
+
CurrenciesEnum["BEL"] = "BEL";
|
|
799
|
+
CurrenciesEnum["BZD"] = "BZD";
|
|
800
|
+
CurrenciesEnum["BMD"] = "BMD";
|
|
801
|
+
CurrenciesEnum["BTN"] = "BTN";
|
|
802
|
+
CurrenciesEnum["BOB"] = "BOB";
|
|
803
|
+
CurrenciesEnum["BOL"] = "BOL";
|
|
804
|
+
CurrenciesEnum["BOV"] = "BOV";
|
|
805
|
+
CurrenciesEnum["BOP"] = "BOP";
|
|
806
|
+
CurrenciesEnum["BAM"] = "BAM";
|
|
807
|
+
CurrenciesEnum["BAD"] = "BAD";
|
|
808
|
+
CurrenciesEnum["BAN"] = "BAN";
|
|
809
|
+
CurrenciesEnum["BWP"] = "BWP";
|
|
810
|
+
CurrenciesEnum["BRC"] = "BRC";
|
|
811
|
+
CurrenciesEnum["BRZ"] = "BRZ";
|
|
812
|
+
CurrenciesEnum["BRE"] = "BRE";
|
|
813
|
+
CurrenciesEnum["BRR"] = "BRR";
|
|
814
|
+
CurrenciesEnum["BRN"] = "BRN";
|
|
815
|
+
CurrenciesEnum["BRB"] = "BRB";
|
|
816
|
+
CurrenciesEnum["BRL"] = "BRL";
|
|
817
|
+
CurrenciesEnum["GBP"] = "GBP";
|
|
818
|
+
CurrenciesEnum["BND"] = "BND";
|
|
819
|
+
CurrenciesEnum["BGL"] = "BGL";
|
|
820
|
+
CurrenciesEnum["BGN"] = "BGN";
|
|
821
|
+
CurrenciesEnum["BGO"] = "BGO";
|
|
822
|
+
CurrenciesEnum["BGM"] = "BGM";
|
|
823
|
+
CurrenciesEnum["BUK"] = "BUK";
|
|
824
|
+
CurrenciesEnum["BIF"] = "BIF";
|
|
825
|
+
CurrenciesEnum["XPF"] = "XPF";
|
|
826
|
+
CurrenciesEnum["KHR"] = "KHR";
|
|
827
|
+
CurrenciesEnum["CAD"] = "CAD";
|
|
828
|
+
CurrenciesEnum["CVE"] = "CVE";
|
|
829
|
+
CurrenciesEnum["KYD"] = "KYD";
|
|
830
|
+
CurrenciesEnum["XAF"] = "XAF";
|
|
831
|
+
CurrenciesEnum["CLE"] = "CLE";
|
|
832
|
+
CurrenciesEnum["CLP"] = "CLP";
|
|
833
|
+
CurrenciesEnum["CLF"] = "CLF";
|
|
834
|
+
CurrenciesEnum["CNX"] = "CNX";
|
|
835
|
+
CurrenciesEnum["CNY"] = "CNY";
|
|
836
|
+
CurrenciesEnum["COP"] = "COP";
|
|
837
|
+
CurrenciesEnum["COU"] = "COU";
|
|
838
|
+
CurrenciesEnum["KMF"] = "KMF";
|
|
839
|
+
CurrenciesEnum["CDF"] = "CDF";
|
|
840
|
+
CurrenciesEnum["CRC"] = "CRC";
|
|
841
|
+
CurrenciesEnum["HRD"] = "HRD";
|
|
842
|
+
CurrenciesEnum["HRK"] = "HRK";
|
|
843
|
+
CurrenciesEnum["CUC"] = "CUC";
|
|
844
|
+
CurrenciesEnum["CUP"] = "CUP";
|
|
845
|
+
CurrenciesEnum["CYP"] = "CYP";
|
|
846
|
+
CurrenciesEnum["CZK"] = "CZK";
|
|
847
|
+
CurrenciesEnum["CSK"] = "CSK";
|
|
848
|
+
CurrenciesEnum["DKK"] = "DKK";
|
|
849
|
+
CurrenciesEnum["DJF"] = "DJF";
|
|
850
|
+
CurrenciesEnum["DOP"] = "DOP";
|
|
851
|
+
CurrenciesEnum["NLG"] = "NLG";
|
|
852
|
+
CurrenciesEnum["XCD"] = "XCD";
|
|
853
|
+
CurrenciesEnum["DDM"] = "DDM";
|
|
854
|
+
CurrenciesEnum["ECS"] = "ECS";
|
|
855
|
+
CurrenciesEnum["ECV"] = "ECV";
|
|
856
|
+
CurrenciesEnum["EGP"] = "EGP";
|
|
857
|
+
CurrenciesEnum["GQE"] = "GQE";
|
|
858
|
+
CurrenciesEnum["ERN"] = "ERN";
|
|
859
|
+
CurrenciesEnum["EEK"] = "EEK";
|
|
860
|
+
CurrenciesEnum["ETB"] = "ETB";
|
|
861
|
+
CurrenciesEnum["EUR"] = "EUR";
|
|
862
|
+
CurrenciesEnum["XEU"] = "XEU";
|
|
863
|
+
CurrenciesEnum["FKP"] = "FKP";
|
|
864
|
+
CurrenciesEnum["FJD"] = "FJD";
|
|
865
|
+
CurrenciesEnum["FIM"] = "FIM";
|
|
866
|
+
CurrenciesEnum["FRF"] = "FRF";
|
|
867
|
+
CurrenciesEnum["XFO"] = "XFO";
|
|
868
|
+
CurrenciesEnum["XFU"] = "XFU";
|
|
869
|
+
CurrenciesEnum["GMD"] = "GMD";
|
|
870
|
+
CurrenciesEnum["GEK"] = "GEK";
|
|
871
|
+
CurrenciesEnum["GEL"] = "GEL";
|
|
872
|
+
CurrenciesEnum["DEM"] = "DEM";
|
|
873
|
+
CurrenciesEnum["GHS"] = "GHS";
|
|
874
|
+
CurrenciesEnum["GHC"] = "GHC";
|
|
875
|
+
CurrenciesEnum["GIP"] = "GIP";
|
|
876
|
+
CurrenciesEnum["GRD"] = "GRD";
|
|
877
|
+
CurrenciesEnum["GTQ"] = "GTQ";
|
|
878
|
+
CurrenciesEnum["GWP"] = "GWP";
|
|
879
|
+
CurrenciesEnum["GNF"] = "GNF";
|
|
880
|
+
CurrenciesEnum["GNS"] = "GNS";
|
|
881
|
+
CurrenciesEnum["GYD"] = "GYD";
|
|
882
|
+
CurrenciesEnum["HTG"] = "HTG";
|
|
883
|
+
CurrenciesEnum["HNL"] = "HNL";
|
|
884
|
+
CurrenciesEnum["HKD"] = "HKD";
|
|
885
|
+
CurrenciesEnum["HUF"] = "HUF";
|
|
886
|
+
CurrenciesEnum["ISK"] = "ISK";
|
|
887
|
+
CurrenciesEnum["ISJ"] = "ISJ";
|
|
888
|
+
CurrenciesEnum["INR"] = "INR";
|
|
889
|
+
CurrenciesEnum["IDR"] = "IDR";
|
|
890
|
+
CurrenciesEnum["IRR"] = "IRR";
|
|
891
|
+
CurrenciesEnum["IQD"] = "IQD";
|
|
892
|
+
CurrenciesEnum["IEP"] = "IEP";
|
|
893
|
+
CurrenciesEnum["ILS"] = "ILS";
|
|
894
|
+
CurrenciesEnum["ILP"] = "ILP";
|
|
895
|
+
CurrenciesEnum["ILR"] = "ILR";
|
|
896
|
+
CurrenciesEnum["ITL"] = "ITL";
|
|
897
|
+
CurrenciesEnum["JMD"] = "JMD";
|
|
898
|
+
CurrenciesEnum["JPY"] = "JPY";
|
|
899
|
+
CurrenciesEnum["JOD"] = "JOD";
|
|
900
|
+
CurrenciesEnum["KZT"] = "KZT";
|
|
901
|
+
CurrenciesEnum["KES"] = "KES";
|
|
902
|
+
CurrenciesEnum["KWD"] = "KWD";
|
|
903
|
+
CurrenciesEnum["KGS"] = "KGS";
|
|
904
|
+
CurrenciesEnum["LAK"] = "LAK";
|
|
905
|
+
CurrenciesEnum["LVL"] = "LVL";
|
|
906
|
+
CurrenciesEnum["LVR"] = "LVR";
|
|
907
|
+
CurrenciesEnum["LBP"] = "LBP";
|
|
908
|
+
CurrenciesEnum["LSL"] = "LSL";
|
|
909
|
+
CurrenciesEnum["LRD"] = "LRD";
|
|
910
|
+
CurrenciesEnum["LYD"] = "LYD";
|
|
911
|
+
CurrenciesEnum["LTL"] = "LTL";
|
|
912
|
+
CurrenciesEnum["LTT"] = "LTT";
|
|
913
|
+
CurrenciesEnum["LUL"] = "LUL";
|
|
914
|
+
CurrenciesEnum["LUC"] = "LUC";
|
|
915
|
+
CurrenciesEnum["LUF"] = "LUF";
|
|
916
|
+
CurrenciesEnum["MOP"] = "MOP";
|
|
917
|
+
CurrenciesEnum["MKD"] = "MKD";
|
|
918
|
+
CurrenciesEnum["MKN"] = "MKN";
|
|
919
|
+
CurrenciesEnum["MGA"] = "MGA";
|
|
920
|
+
CurrenciesEnum["MGF"] = "MGF";
|
|
921
|
+
CurrenciesEnum["MWK"] = "MWK";
|
|
922
|
+
CurrenciesEnum["MYR"] = "MYR";
|
|
923
|
+
CurrenciesEnum["MVR"] = "MVR";
|
|
924
|
+
CurrenciesEnum["MVP"] = "MVP";
|
|
925
|
+
CurrenciesEnum["MLF"] = "MLF";
|
|
926
|
+
CurrenciesEnum["MTL"] = "MTL";
|
|
927
|
+
CurrenciesEnum["MTP"] = "MTP";
|
|
928
|
+
CurrenciesEnum["MRO"] = "MRO";
|
|
929
|
+
CurrenciesEnum["MUR"] = "MUR";
|
|
930
|
+
CurrenciesEnum["MXV"] = "MXV";
|
|
931
|
+
CurrenciesEnum["MXN"] = "MXN";
|
|
932
|
+
CurrenciesEnum["MXP"] = "MXP";
|
|
933
|
+
CurrenciesEnum["MDC"] = "MDC";
|
|
934
|
+
CurrenciesEnum["MDL"] = "MDL";
|
|
935
|
+
CurrenciesEnum["MCF"] = "MCF";
|
|
936
|
+
CurrenciesEnum["MNT"] = "MNT";
|
|
937
|
+
CurrenciesEnum["MAD"] = "MAD";
|
|
938
|
+
CurrenciesEnum["MAF"] = "MAF";
|
|
939
|
+
CurrenciesEnum["MZE"] = "MZE";
|
|
940
|
+
CurrenciesEnum["MZN"] = "MZN";
|
|
941
|
+
CurrenciesEnum["MZM"] = "MZM";
|
|
942
|
+
CurrenciesEnum["MMK"] = "MMK";
|
|
943
|
+
CurrenciesEnum["NAD"] = "NAD";
|
|
944
|
+
CurrenciesEnum["NPR"] = "NPR";
|
|
945
|
+
CurrenciesEnum["ANG"] = "ANG";
|
|
946
|
+
CurrenciesEnum["TWD"] = "TWD";
|
|
947
|
+
CurrenciesEnum["NZD"] = "NZD";
|
|
948
|
+
CurrenciesEnum["NIO"] = "NIO";
|
|
949
|
+
CurrenciesEnum["NIC"] = "NIC";
|
|
950
|
+
CurrenciesEnum["NGN"] = "NGN";
|
|
951
|
+
CurrenciesEnum["KPW"] = "KPW";
|
|
952
|
+
CurrenciesEnum["NOK"] = "NOK";
|
|
953
|
+
CurrenciesEnum["OMR"] = "OMR";
|
|
954
|
+
CurrenciesEnum["PKR"] = "PKR";
|
|
955
|
+
CurrenciesEnum["PAB"] = "PAB";
|
|
956
|
+
CurrenciesEnum["PGK"] = "PGK";
|
|
957
|
+
CurrenciesEnum["PYG"] = "PYG";
|
|
958
|
+
CurrenciesEnum["PEI"] = "PEI";
|
|
959
|
+
CurrenciesEnum["PEN"] = "PEN";
|
|
960
|
+
CurrenciesEnum["PES"] = "PES";
|
|
961
|
+
CurrenciesEnum["PHP"] = "PHP";
|
|
962
|
+
CurrenciesEnum["PLN"] = "PLN";
|
|
963
|
+
CurrenciesEnum["PLZ"] = "PLZ";
|
|
964
|
+
CurrenciesEnum["PTE"] = "PTE";
|
|
965
|
+
CurrenciesEnum["GWE"] = "GWE";
|
|
966
|
+
CurrenciesEnum["QAR"] = "QAR";
|
|
967
|
+
CurrenciesEnum["XRE"] = "XRE";
|
|
968
|
+
CurrenciesEnum["RHD"] = "RHD";
|
|
969
|
+
CurrenciesEnum["RON"] = "RON";
|
|
970
|
+
CurrenciesEnum["ROL"] = "ROL";
|
|
971
|
+
CurrenciesEnum["RUB"] = "RUB";
|
|
972
|
+
CurrenciesEnum["RUR"] = "RUR";
|
|
973
|
+
CurrenciesEnum["RWF"] = "RWF";
|
|
974
|
+
CurrenciesEnum["SVC"] = "SVC";
|
|
975
|
+
CurrenciesEnum["WST"] = "WST";
|
|
976
|
+
CurrenciesEnum["SAR"] = "SAR";
|
|
977
|
+
CurrenciesEnum["RSD"] = "RSD";
|
|
978
|
+
CurrenciesEnum["CSD"] = "CSD";
|
|
979
|
+
CurrenciesEnum["SCR"] = "SCR";
|
|
980
|
+
CurrenciesEnum["SLL"] = "SLL";
|
|
981
|
+
CurrenciesEnum["SGD"] = "SGD";
|
|
982
|
+
CurrenciesEnum["SKK"] = "SKK";
|
|
983
|
+
CurrenciesEnum["SIT"] = "SIT";
|
|
984
|
+
CurrenciesEnum["SBD"] = "SBD";
|
|
985
|
+
CurrenciesEnum["SOS"] = "SOS";
|
|
986
|
+
CurrenciesEnum["ZAR"] = "ZAR";
|
|
987
|
+
CurrenciesEnum["ZAL"] = "ZAL";
|
|
988
|
+
CurrenciesEnum["KRH"] = "KRH";
|
|
989
|
+
CurrenciesEnum["KRW"] = "KRW";
|
|
990
|
+
CurrenciesEnum["KRO"] = "KRO";
|
|
991
|
+
CurrenciesEnum["SSP"] = "SSP";
|
|
992
|
+
CurrenciesEnum["SUR"] = "SUR";
|
|
993
|
+
CurrenciesEnum["ESP"] = "ESP";
|
|
994
|
+
CurrenciesEnum["ESA"] = "ESA";
|
|
995
|
+
CurrenciesEnum["ESB"] = "ESB";
|
|
996
|
+
CurrenciesEnum["LKR"] = "LKR";
|
|
997
|
+
CurrenciesEnum["SHP"] = "SHP";
|
|
998
|
+
CurrenciesEnum["SDD"] = "SDD";
|
|
999
|
+
CurrenciesEnum["SDG"] = "SDG";
|
|
1000
|
+
CurrenciesEnum["SDP"] = "SDP";
|
|
1001
|
+
CurrenciesEnum["SRD"] = "SRD";
|
|
1002
|
+
CurrenciesEnum["SRG"] = "SRG";
|
|
1003
|
+
CurrenciesEnum["SZL"] = "SZL";
|
|
1004
|
+
CurrenciesEnum["SEK"] = "SEK";
|
|
1005
|
+
CurrenciesEnum["CHF"] = "CHF";
|
|
1006
|
+
CurrenciesEnum["SYP"] = "SYP";
|
|
1007
|
+
CurrenciesEnum["STD"] = "STD";
|
|
1008
|
+
CurrenciesEnum["TJR"] = "TJR";
|
|
1009
|
+
CurrenciesEnum["TJS"] = "TJS";
|
|
1010
|
+
CurrenciesEnum["TZS"] = "TZS";
|
|
1011
|
+
CurrenciesEnum["THB"] = "THB";
|
|
1012
|
+
CurrenciesEnum["TPE"] = "TPE";
|
|
1013
|
+
CurrenciesEnum["TOP"] = "TOP";
|
|
1014
|
+
CurrenciesEnum["TTD"] = "TTD";
|
|
1015
|
+
CurrenciesEnum["TND"] = "TND";
|
|
1016
|
+
CurrenciesEnum["TRY"] = "TRY";
|
|
1017
|
+
CurrenciesEnum["TRL"] = "TRL";
|
|
1018
|
+
CurrenciesEnum["TMT"] = "TMT";
|
|
1019
|
+
CurrenciesEnum["TMM"] = "TMM";
|
|
1020
|
+
CurrenciesEnum["USD"] = "USD";
|
|
1021
|
+
CurrenciesEnum["USN"] = "USN";
|
|
1022
|
+
CurrenciesEnum["USS"] = "USS";
|
|
1023
|
+
CurrenciesEnum["UGX"] = "UGX";
|
|
1024
|
+
CurrenciesEnum["UGS"] = "UGS";
|
|
1025
|
+
CurrenciesEnum["UAH"] = "UAH";
|
|
1026
|
+
CurrenciesEnum["UAK"] = "UAK";
|
|
1027
|
+
CurrenciesEnum["AED"] = "AED";
|
|
1028
|
+
CurrenciesEnum["UYU"] = "UYU";
|
|
1029
|
+
CurrenciesEnum["UYP"] = "UYP";
|
|
1030
|
+
CurrenciesEnum["UYI"] = "UYI";
|
|
1031
|
+
CurrenciesEnum["UZS"] = "UZS";
|
|
1032
|
+
CurrenciesEnum["VUV"] = "VUV";
|
|
1033
|
+
CurrenciesEnum["VEF"] = "VEF";
|
|
1034
|
+
CurrenciesEnum["VEB"] = "VEB";
|
|
1035
|
+
CurrenciesEnum["VND"] = "VND";
|
|
1036
|
+
CurrenciesEnum["VNN"] = "VNN";
|
|
1037
|
+
CurrenciesEnum["CHE"] = "CHE";
|
|
1038
|
+
CurrenciesEnum["CHW"] = "CHW";
|
|
1039
|
+
CurrenciesEnum["XOF"] = "XOF";
|
|
1040
|
+
CurrenciesEnum["YDD"] = "YDD";
|
|
1041
|
+
CurrenciesEnum["YER"] = "YER";
|
|
1042
|
+
CurrenciesEnum["YUN"] = "YUN";
|
|
1043
|
+
CurrenciesEnum["YUD"] = "YUD";
|
|
1044
|
+
CurrenciesEnum["YUM"] = "YUM";
|
|
1045
|
+
CurrenciesEnum["YUR"] = "YUR";
|
|
1046
|
+
CurrenciesEnum["ZRN"] = "ZRN";
|
|
1047
|
+
CurrenciesEnum["ZRZ"] = "ZRZ";
|
|
1048
|
+
CurrenciesEnum["ZMW"] = "ZMW";
|
|
1049
|
+
CurrenciesEnum["ZMK"] = "ZMK";
|
|
1050
|
+
CurrenciesEnum["ZWD"] = "ZWD";
|
|
1051
|
+
CurrenciesEnum["ZWR"] = "ZWR";
|
|
1052
|
+
CurrenciesEnum["ZWL"] = "ZWL";
|
|
1053
|
+
})(exports.CurrenciesEnum || (exports.CurrenciesEnum = {}));
|
|
1054
|
+
|
|
1055
|
+
exports.EmailTemplateNameEnum = void 0;
|
|
1056
|
+
(function(EmailTemplateNameEnum) {
|
|
1057
|
+
EmailTemplateNameEnum["PASSWORD_RESET"] = "password";
|
|
1058
|
+
EmailTemplateNameEnum["WELCOME_USER"] = "welcome-user";
|
|
1059
|
+
EmailTemplateNameEnum["INVITE_USER"] = "invite-user";
|
|
1060
|
+
EmailTemplateNameEnum["EMAIL_VERIFICATION"] = "email-verification";
|
|
1061
|
+
})(exports.EmailTemplateNameEnum || (exports.EmailTemplateNameEnum = {}));
|
|
1062
|
+
exports.EmailTemplateEnum = void 0;
|
|
1063
|
+
(function(EmailTemplateEnum) {
|
|
1064
|
+
EmailTemplateEnum["PASSWORD_RESET"] = "password";
|
|
1065
|
+
EmailTemplateEnum["MULTI_TENANT_PASSWORD_RESET"] = "multi-tenant-password";
|
|
1066
|
+
EmailTemplateEnum["PASSWORD_LESS_AUTHENTICATION"] = "password-less-authentication";
|
|
1067
|
+
EmailTemplateEnum["WELCOME_USER"] = "welcome-user";
|
|
1068
|
+
EmailTemplateEnum["EMAIL_VERIFICATION"] = "email-verification";
|
|
1069
|
+
EmailTemplateEnum["INVITE_USER"] = "invite-user";
|
|
1070
|
+
})(exports.EmailTemplateEnum || (exports.EmailTemplateEnum = {}));
|
|
1071
|
+
|
|
1072
|
+
exports.DEFAULT_TYPE = void 0;
|
|
1073
|
+
(function(DEFAULT_TYPE) {
|
|
1074
|
+
DEFAULT_TYPE["ALL_EMPLOYEE"] = "ALL_EMPLOYEE";
|
|
1075
|
+
DEFAULT_TYPE["NO_EMPLOYEE"] = "NO_EMPLOYEE";
|
|
1076
|
+
})(exports.DEFAULT_TYPE || (exports.DEFAULT_TYPE = {}));
|
|
1077
|
+
exports.PayPeriodEnum = void 0;
|
|
1078
|
+
(function(PayPeriodEnum) {
|
|
1079
|
+
PayPeriodEnum["NONE"] = "NONE";
|
|
1080
|
+
PayPeriodEnum["BI_WEEKLY"] = "BI_WEEKLY";
|
|
1081
|
+
PayPeriodEnum["WEEKLY"] = "WEEKLY";
|
|
1082
|
+
PayPeriodEnum["TWICE_PER_MONTH"] = "TWICE_PER_MONTH";
|
|
1083
|
+
PayPeriodEnum["MONTHLY"] = "MONTHLY";
|
|
1084
|
+
})(exports.PayPeriodEnum || (exports.PayPeriodEnum = {}));
|
|
1085
|
+
|
|
1086
|
+
exports.FeatureStatusEnum = void 0;
|
|
1087
|
+
(function(FeatureStatusEnum) {
|
|
1088
|
+
FeatureStatusEnum["INFO"] = "info";
|
|
1089
|
+
FeatureStatusEnum["PRIMARY"] = "primary";
|
|
1090
|
+
FeatureStatusEnum["SUCCESS"] = "success";
|
|
1091
|
+
FeatureStatusEnum["WARNING"] = "warning";
|
|
1092
|
+
})(exports.FeatureStatusEnum || (exports.FeatureStatusEnum = {}));
|
|
1093
|
+
exports.IFeatureToggleTypeEnum = void 0;
|
|
1094
|
+
(function(IFeatureToggleTypeEnum) {
|
|
1095
|
+
IFeatureToggleTypeEnum["RELEASE"] = "release";
|
|
1096
|
+
IFeatureToggleTypeEnum["KILL_SWITCH"] = "kill-switch";
|
|
1097
|
+
IFeatureToggleTypeEnum["EXPERIMENT"] = "experiment";
|
|
1098
|
+
IFeatureToggleTypeEnum["OPERATIONAL"] = "operational";
|
|
1099
|
+
IFeatureToggleTypeEnum["PERMISSION"] = "permission";
|
|
1100
|
+
})(exports.IFeatureToggleTypeEnum || (exports.IFeatureToggleTypeEnum = {}));
|
|
1101
|
+
exports.FeatureEnum = void 0;
|
|
1102
|
+
(function(FeatureEnum) {
|
|
1103
|
+
FeatureEnum["FEATURE_HOME"] = "FEATURE_HOME";
|
|
1104
|
+
FeatureEnum["FEATURE_DASHBOARD"] = "FEATURE_DASHBOARD";
|
|
1105
|
+
FeatureEnum["FEATURE_JOB"] = "FEATURE_JOB";
|
|
1106
|
+
FeatureEnum["FEATURE_EMPLOYEES"] = "FEATURE_EMPLOYEES";
|
|
1107
|
+
FeatureEnum["FEATURE_MANAGE_INVITE"] = "FEATURE_MANAGE_INVITE";
|
|
1108
|
+
FeatureEnum["FEATURE_ORGANIZATION"] = "FEATURE_ORGANIZATION";
|
|
1109
|
+
FeatureEnum["FEATURE_ORGANIZATION_TAG"] = "FEATURE_ORGANIZATION_TAG";
|
|
1110
|
+
FeatureEnum["FEATURE_ORGANIZATION_PROJECT"] = "FEATURE_ORGANIZATION_PROJECT";
|
|
1111
|
+
FeatureEnum["FEATURE_CONTACT"] = "FEATURE_CONTACT";
|
|
1112
|
+
FeatureEnum["FEATURE_USER"] = "FEATURE_USER";
|
|
1113
|
+
FeatureEnum["FEATURE_ORGANIZATIONS"] = "FEATURE_ORGANIZATIONS";
|
|
1114
|
+
// FEATURE_APP_INTEGRATION = 'FEATURE_APP_INTEGRATION',
|
|
1115
|
+
FeatureEnum["FEATURE_SETTING"] = "FEATURE_SETTING";
|
|
1116
|
+
FeatureEnum["FEATURE_EMAIL_HISTORY"] = "FEATURE_EMAIL_HISTORY";
|
|
1117
|
+
FeatureEnum["FEATURE_EMAIL_TEMPLATE"] = "FEATURE_EMAIL_TEMPLATE";
|
|
1118
|
+
FeatureEnum["FEATURE_FILE_STORAGE"] = "FEATURE_FILE_STORAGE";
|
|
1119
|
+
FeatureEnum["FEATURE_SMS_GATEWAY"] = "FEATURE_SMS_GATEWAY";
|
|
1120
|
+
FeatureEnum["FEATURE_SMTP"] = "FEATURE_SMTP";
|
|
1121
|
+
FeatureEnum["FEATURE_ROLES_PERMISSION"] = "FEATURE_ROLES_PERMISSION";
|
|
1122
|
+
FeatureEnum["FEATURE_INTEGRATION"] = "FEATURE_INTEGRATION";
|
|
1123
|
+
})(exports.FeatureEnum || (exports.FeatureEnum = {}));
|
|
1124
|
+
|
|
1125
|
+
exports.FileStorageProviderEnum = void 0;
|
|
1126
|
+
(function(FileStorageProviderEnum) {
|
|
1127
|
+
FileStorageProviderEnum["LOCAL"] = "LOCAL";
|
|
1128
|
+
FileStorageProviderEnum["S3"] = "S3";
|
|
1129
|
+
FileStorageProviderEnum["WASABI"] = "WASABI";
|
|
1130
|
+
FileStorageProviderEnum["OSS"] = "OSS";
|
|
1131
|
+
})(exports.FileStorageProviderEnum || (exports.FileStorageProviderEnum = {}));
|
|
1132
|
+
|
|
1133
|
+
exports.HttpStatus = void 0;
|
|
1134
|
+
(function(HttpStatus) {
|
|
1135
|
+
HttpStatus[HttpStatus["CONTINUE"] = 100] = "CONTINUE";
|
|
1136
|
+
HttpStatus[HttpStatus["SWITCHING_PROTOCOLS"] = 101] = "SWITCHING_PROTOCOLS";
|
|
1137
|
+
HttpStatus[HttpStatus["PROCESSING"] = 102] = "PROCESSING";
|
|
1138
|
+
HttpStatus[HttpStatus["OK"] = 200] = "OK";
|
|
1139
|
+
HttpStatus[HttpStatus["CREATED"] = 201] = "CREATED";
|
|
1140
|
+
HttpStatus[HttpStatus["ACCEPTED"] = 202] = "ACCEPTED";
|
|
1141
|
+
HttpStatus[HttpStatus["NON_AUTHORITATIVE_INFORMATION"] = 203] = "NON_AUTHORITATIVE_INFORMATION";
|
|
1142
|
+
HttpStatus[HttpStatus["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
1143
|
+
HttpStatus[HttpStatus["RESET_CONTENT"] = 205] = "RESET_CONTENT";
|
|
1144
|
+
HttpStatus[HttpStatus["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT";
|
|
1145
|
+
HttpStatus[HttpStatus["AMBIGUOUS"] = 300] = "AMBIGUOUS";
|
|
1146
|
+
HttpStatus[HttpStatus["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY";
|
|
1147
|
+
HttpStatus[HttpStatus["FOUND"] = 302] = "FOUND";
|
|
1148
|
+
HttpStatus[HttpStatus["SEE_OTHER"] = 303] = "SEE_OTHER";
|
|
1149
|
+
HttpStatus[HttpStatus["NOT_MODIFIED"] = 304] = "NOT_MODIFIED";
|
|
1150
|
+
HttpStatus[HttpStatus["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT";
|
|
1151
|
+
HttpStatus[HttpStatus["PERMANENT_REDIRECT"] = 308] = "PERMANENT_REDIRECT";
|
|
1152
|
+
HttpStatus[HttpStatus["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
1153
|
+
HttpStatus[HttpStatus["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
1154
|
+
HttpStatus[HttpStatus["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED";
|
|
1155
|
+
HttpStatus[HttpStatus["FORBIDDEN"] = 403] = "FORBIDDEN";
|
|
1156
|
+
HttpStatus[HttpStatus["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
1157
|
+
HttpStatus[HttpStatus["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED";
|
|
1158
|
+
HttpStatus[HttpStatus["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
|
|
1159
|
+
HttpStatus[HttpStatus["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED";
|
|
1160
|
+
HttpStatus[HttpStatus["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
|
|
1161
|
+
HttpStatus[HttpStatus["CONFLICT"] = 409] = "CONFLICT";
|
|
1162
|
+
HttpStatus[HttpStatus["GONE"] = 410] = "GONE";
|
|
1163
|
+
HttpStatus[HttpStatus["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED";
|
|
1164
|
+
HttpStatus[HttpStatus["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
1165
|
+
HttpStatus[HttpStatus["PAYLOAD_TOO_LARGE"] = 413] = "PAYLOAD_TOO_LARGE";
|
|
1166
|
+
HttpStatus[HttpStatus["URI_TOO_LONG"] = 414] = "URI_TOO_LONG";
|
|
1167
|
+
HttpStatus[HttpStatus["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE";
|
|
1168
|
+
HttpStatus[HttpStatus["REQUESTED_RANGE_NOT_SATISFIABLE"] = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE";
|
|
1169
|
+
HttpStatus[HttpStatus["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED";
|
|
1170
|
+
HttpStatus[HttpStatus["I_AM_A_TEAPOT"] = 418] = "I_AM_A_TEAPOT";
|
|
1171
|
+
HttpStatus[HttpStatus["UNPROCESSABLE_ENTITY"] = 422] = "UNPROCESSABLE_ENTITY";
|
|
1172
|
+
HttpStatus[HttpStatus["FAILED_DEPENDENCY"] = 424] = "FAILED_DEPENDENCY";
|
|
1173
|
+
HttpStatus[HttpStatus["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
|
|
1174
|
+
HttpStatus[HttpStatus["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
|
|
1175
|
+
HttpStatus[HttpStatus["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED";
|
|
1176
|
+
HttpStatus[HttpStatus["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
|
|
1177
|
+
HttpStatus[HttpStatus["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
|
|
1178
|
+
HttpStatus[HttpStatus["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT";
|
|
1179
|
+
HttpStatus[HttpStatus["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED";
|
|
1180
|
+
})(exports.HttpStatus || (exports.HttpStatus = {}));
|
|
1181
|
+
exports.RequestMethodEnum = void 0;
|
|
1182
|
+
(function(RequestMethodEnum) {
|
|
1183
|
+
RequestMethodEnum["GET"] = "GET";
|
|
1184
|
+
RequestMethodEnum["POST"] = "POST";
|
|
1185
|
+
RequestMethodEnum["PUT"] = "PUT";
|
|
1186
|
+
RequestMethodEnum["DELETE"] = "DELETE";
|
|
1187
|
+
RequestMethodEnum["PATCH"] = "PATCH";
|
|
1188
|
+
RequestMethodEnum["ALL"] = "ALL";
|
|
1189
|
+
RequestMethodEnum["OPTIONS"] = "OPTIONS";
|
|
1190
|
+
RequestMethodEnum["HEAD"] = "HEAD";
|
|
1191
|
+
})(exports.RequestMethodEnum || (exports.RequestMethodEnum = {}));
|
|
1192
|
+
|
|
1193
|
+
exports.ImportTypeEnum = void 0;
|
|
1194
|
+
(function(ImportTypeEnum) {
|
|
1195
|
+
ImportTypeEnum["MERGE"] = "merge";
|
|
1196
|
+
ImportTypeEnum["CLEAN"] = "clean";
|
|
1197
|
+
})(exports.ImportTypeEnum || (exports.ImportTypeEnum = {}));
|
|
1198
|
+
exports.ImportHistoryStatusEnum = void 0;
|
|
1199
|
+
(function(ImportHistoryStatusEnum) {
|
|
1200
|
+
ImportHistoryStatusEnum["SUCCESS"] = "Success";
|
|
1201
|
+
ImportHistoryStatusEnum["FAILED"] = "Failed";
|
|
1202
|
+
ImportHistoryStatusEnum["CANCELLED"] = "Cancelled";
|
|
1203
|
+
})(exports.ImportHistoryStatusEnum || (exports.ImportHistoryStatusEnum = {}));
|
|
1204
|
+
|
|
1205
|
+
exports.OrganizationContactBudgetTypeEnum = void 0;
|
|
1206
|
+
(function(OrganizationContactBudgetTypeEnum) {
|
|
1207
|
+
OrganizationContactBudgetTypeEnum["HOURS"] = "hours";
|
|
1208
|
+
OrganizationContactBudgetTypeEnum["COST"] = "cost";
|
|
1209
|
+
})(exports.OrganizationContactBudgetTypeEnum || (exports.OrganizationContactBudgetTypeEnum = {}));
|
|
1210
|
+
exports.ContactOrganizationInviteStatus = void 0;
|
|
1211
|
+
(function(ContactOrganizationInviteStatus) {
|
|
1212
|
+
ContactOrganizationInviteStatus["NOT_INVITED"] = "NOT_INVITED";
|
|
1213
|
+
ContactOrganizationInviteStatus["INVITED"] = "INVITED";
|
|
1214
|
+
ContactOrganizationInviteStatus["ACCEPTED"] = "ACCEPTED";
|
|
1215
|
+
})(exports.ContactOrganizationInviteStatus || (exports.ContactOrganizationInviteStatus = {}));
|
|
1216
|
+
exports.ContactType = void 0;
|
|
1217
|
+
(function(ContactType) {
|
|
1218
|
+
ContactType["CLIENT"] = "CLIENT";
|
|
1219
|
+
ContactType["CUSTOMER"] = "CUSTOMER";
|
|
1220
|
+
ContactType["LEAD"] = "LEAD";
|
|
1221
|
+
})(exports.ContactType || (exports.ContactType = {}));
|
|
1222
|
+
|
|
1223
|
+
exports.OrganizationPermissionsEnum = void 0;
|
|
1224
|
+
(function(OrganizationPermissionsEnum) {
|
|
1225
|
+
OrganizationPermissionsEnum["ALLOW_MANUAL_TIME"] = "allowManualTime";
|
|
1226
|
+
OrganizationPermissionsEnum["ALLOW_MODIFY_TIME"] = "allowModifyTime";
|
|
1227
|
+
OrganizationPermissionsEnum["ALLOW_DELETE_TIME"] = "allowDeleteTime";
|
|
1228
|
+
OrganizationPermissionsEnum["ALLOW_FUTURE_DATE"] = "futureDateAllowed";
|
|
1229
|
+
})(exports.OrganizationPermissionsEnum || (exports.OrganizationPermissionsEnum = {}));
|
|
1230
|
+
exports.ListsInputTypeEnum = void 0;
|
|
1231
|
+
(function(ListsInputTypeEnum) {
|
|
1232
|
+
ListsInputTypeEnum["DEPARTMENTS"] = "DEPARTMENTS";
|
|
1233
|
+
ListsInputTypeEnum["POSITIONS"] = "POSITIONS";
|
|
1234
|
+
ListsInputTypeEnum["VENDORS"] = "VENDORS";
|
|
1235
|
+
})(exports.ListsInputTypeEnum || (exports.ListsInputTypeEnum = {}));
|
|
1236
|
+
exports.OrganizationSelectInput = void 0;
|
|
1237
|
+
(function(OrganizationSelectInput) {
|
|
1238
|
+
OrganizationSelectInput["id"] = "id";
|
|
1239
|
+
OrganizationSelectInput["name"] = "name";
|
|
1240
|
+
OrganizationSelectInput["profile_link"] = "profile_link";
|
|
1241
|
+
OrganizationSelectInput["valueDate"] = "valueDate";
|
|
1242
|
+
OrganizationSelectInput["imageUrl"] = "imageUrl";
|
|
1243
|
+
OrganizationSelectInput["currency"] = "currency";
|
|
1244
|
+
OrganizationSelectInput["createdAt"] = "createdAt";
|
|
1245
|
+
OrganizationSelectInput["updatedAt"] = "updatedAt";
|
|
1246
|
+
OrganizationSelectInput["isActive"] = "isActive";
|
|
1247
|
+
OrganizationSelectInput["tags"] = "tags";
|
|
1248
|
+
})(exports.OrganizationSelectInput || (exports.OrganizationSelectInput = {}));
|
|
1249
|
+
exports.RegionsEnum = void 0;
|
|
1250
|
+
(function(RegionsEnum) {
|
|
1251
|
+
RegionsEnum["EN"] = "English (United States)";
|
|
1252
|
+
RegionsEnum["BG"] = "Bulgarian (Bulgaria)";
|
|
1253
|
+
RegionsEnum["HE"] = "Hebrew (Israel)";
|
|
1254
|
+
RegionsEnum["RU"] = "Rusian (Russia)";
|
|
1255
|
+
})(exports.RegionsEnum || (exports.RegionsEnum = {}));
|
|
1256
|
+
exports.DefaultValueDateTypeEnum = void 0;
|
|
1257
|
+
(function(DefaultValueDateTypeEnum) {
|
|
1258
|
+
DefaultValueDateTypeEnum["TODAY"] = "TODAY";
|
|
1259
|
+
DefaultValueDateTypeEnum["END_OF_MONTH"] = "END_OF_MONTH";
|
|
1260
|
+
DefaultValueDateTypeEnum["START_OF_MONTH"] = "START_OF_MONTH";
|
|
1261
|
+
})(exports.DefaultValueDateTypeEnum || (exports.DefaultValueDateTypeEnum = {}));
|
|
1262
|
+
exports.ProjectBillingEnum = void 0;
|
|
1263
|
+
(function(ProjectBillingEnum) {
|
|
1264
|
+
ProjectBillingEnum["RATE"] = "RATE";
|
|
1265
|
+
ProjectBillingEnum["FLAT_FEE"] = "FLAT_FEE";
|
|
1266
|
+
ProjectBillingEnum["MILESTONES"] = "MILESTONES";
|
|
1267
|
+
})(exports.ProjectBillingEnum || (exports.ProjectBillingEnum = {}));
|
|
1268
|
+
exports.AlignmentOptions = void 0;
|
|
1269
|
+
(function(AlignmentOptions) {
|
|
1270
|
+
AlignmentOptions["LEFT"] = "LEFT";
|
|
1271
|
+
AlignmentOptions["RIGHT"] = "RIGHT";
|
|
1272
|
+
AlignmentOptions["CENTER"] = "CENTER";
|
|
1273
|
+
})(exports.AlignmentOptions || (exports.AlignmentOptions = {}));
|
|
1274
|
+
exports.CurrencyPosition = void 0;
|
|
1275
|
+
(function(CurrencyPosition) {
|
|
1276
|
+
CurrencyPosition["LEFT"] = "LEFT";
|
|
1277
|
+
CurrencyPosition["RIGHT"] = "RIGHT";
|
|
1278
|
+
})(exports.CurrencyPosition || (exports.CurrencyPosition = {}));
|
|
1279
|
+
exports.WeekDaysEnum = void 0;
|
|
1280
|
+
(function(WeekDaysEnum) {
|
|
1281
|
+
WeekDaysEnum["MONDAY"] = "MONDAY";
|
|
1282
|
+
WeekDaysEnum["TUESDAY"] = "TUESDAY";
|
|
1283
|
+
WeekDaysEnum["WEDNESDAY"] = "WEDNESDAY";
|
|
1284
|
+
WeekDaysEnum["THURSDAY"] = "THURSDAY";
|
|
1285
|
+
WeekDaysEnum["FRIDAY"] = "FRIDAY";
|
|
1286
|
+
WeekDaysEnum["SATURDAY"] = "SATURDAY";
|
|
1287
|
+
WeekDaysEnum["SUNDAY"] = "SUNDAY";
|
|
1288
|
+
})(exports.WeekDaysEnum || (exports.WeekDaysEnum = {}));
|
|
1289
|
+
exports.BonusTypeEnum = void 0;
|
|
1290
|
+
(function(BonusTypeEnum) {
|
|
1291
|
+
BonusTypeEnum["PROFIT_BASED_BONUS"] = "PROFIT_BASED_BONUS";
|
|
1292
|
+
BonusTypeEnum["REVENUE_BASED_BONUS"] = "REVENUE_BASED_BONUS";
|
|
1293
|
+
})(exports.BonusTypeEnum || (exports.BonusTypeEnum = {}));
|
|
1294
|
+
exports.ClientFocusEnum = void 0;
|
|
1295
|
+
(function(ClientFocusEnum) {
|
|
1296
|
+
ClientFocusEnum["VERY_SMALL_BUSINESSES"] = "Very Small Businesses";
|
|
1297
|
+
ClientFocusEnum["SMALL_BUSINESSES"] = "Small Businesses";
|
|
1298
|
+
ClientFocusEnum["MEDIUM_BUSINESSES"] = "Medium Businesses";
|
|
1299
|
+
ClientFocusEnum["LARGE_BUSINESSES"] = "Large Businesses";
|
|
1300
|
+
})(exports.ClientFocusEnum || (exports.ClientFocusEnum = {}));
|
|
1301
|
+
exports.ProjectOwnerEnum = void 0;
|
|
1302
|
+
(function(ProjectOwnerEnum) {
|
|
1303
|
+
ProjectOwnerEnum["CLIENT"] = "CLIENT";
|
|
1304
|
+
ProjectOwnerEnum["INTERNAL"] = "INTERNAL";
|
|
1305
|
+
})(exports.ProjectOwnerEnum || (exports.ProjectOwnerEnum = {}));
|
|
1306
|
+
exports.MinimumProjectSizeEnum = void 0;
|
|
1307
|
+
(function(MinimumProjectSizeEnum) {
|
|
1308
|
+
MinimumProjectSizeEnum["ONE_THOUSAND"] = "1000+";
|
|
1309
|
+
MinimumProjectSizeEnum["FIVE_THOUSAND"] = "5000+";
|
|
1310
|
+
MinimumProjectSizeEnum["TEN_THOUSAND"] = "10000+";
|
|
1311
|
+
MinimumProjectSizeEnum["TWENTY_FIVE_THOUSAND"] = "25000+";
|
|
1312
|
+
MinimumProjectSizeEnum["FIFTY_THOUSAND"] = "50000+";
|
|
1313
|
+
MinimumProjectSizeEnum["ONE_HUNDRED_THOUSAND"] = "100000+";
|
|
1314
|
+
})(exports.MinimumProjectSizeEnum || (exports.MinimumProjectSizeEnum = {}));
|
|
1315
|
+
var DEFAULT_PROFIT_BASED_BONUS = 75;
|
|
1316
|
+
var DEFAULT_REVENUE_BASED_BONUS = 10;
|
|
1317
|
+
var DEFAULT_INVITE_EXPIRY_PERIOD = 7;
|
|
1318
|
+
exports.CrudActionEnum = void 0;
|
|
1319
|
+
(function(CrudActionEnum) {
|
|
1320
|
+
CrudActionEnum["CREATED"] = "CREATED";
|
|
1321
|
+
CrudActionEnum["UPDATED"] = "UPDATED";
|
|
1322
|
+
CrudActionEnum["DELETED"] = "DELETED";
|
|
1323
|
+
})(exports.CrudActionEnum || (exports.CrudActionEnum = {}));
|
|
1324
|
+
var DEFAULT_DATE_FORMATS = [
|
|
1325
|
+
"L",
|
|
1326
|
+
"LL",
|
|
1327
|
+
"dddd, LL"
|
|
1328
|
+
];
|
|
1329
|
+
var DEFAULT_TIME_FORMATS = [
|
|
1330
|
+
12,
|
|
1331
|
+
24
|
|
1332
|
+
];
|
|
1333
|
+
exports.OrganizationDemoNetworkEnum = void 0;
|
|
1334
|
+
(function(OrganizationDemoNetworkEnum) {
|
|
1335
|
+
OrganizationDemoNetworkEnum["github"] = "github";
|
|
1336
|
+
OrganizationDemoNetworkEnum["aliyun"] = "aliyun";
|
|
1337
|
+
})(exports.OrganizationDemoNetworkEnum || (exports.OrganizationDemoNetworkEnum = {}));
|
|
1338
|
+
|
|
1
1339
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1340
|
+
* Here is the intermediate type definition converted from the actual schema type to the xmla file format.
|
|
1341
|
+
* But the type definition here can also be referenced by the actual schema definition.
|
|
1342
|
+
*/ var DimensionType;
|
|
1343
|
+
(function(DimensionType) {
|
|
1344
|
+
DimensionType["StandardDimension"] = "StandardDimension";
|
|
1345
|
+
DimensionType["TimeDimension"] = "TimeDimension";
|
|
1346
|
+
DimensionType["MeasuresDimension"] = "MeasuresDimension";
|
|
1347
|
+
})(DimensionType || (DimensionType = {}));
|
|
1348
|
+
var Access;
|
|
1349
|
+
(function(Access) {
|
|
1350
|
+
/**
|
|
1351
|
+
* No access to an object and its children.
|
|
1352
|
+
*/ Access["none"] = "none";
|
|
1353
|
+
/**
|
|
1354
|
+
* A grant that covers none of the children unless explicitly granted.
|
|
1355
|
+
*/ Access["custom"] = "custom";
|
|
1356
|
+
/**
|
|
1357
|
+
* Access to all shared dimensions (applies to schema grant).
|
|
1358
|
+
*/ Access["all_dimensions"] = "all_dimensions";
|
|
1359
|
+
/**
|
|
1360
|
+
* All access to an object and its children.
|
|
1361
|
+
*/ Access["all"] = "all";
|
|
1362
|
+
})(Access || (Access = {}));
|
|
1363
|
+
var RollupPolicy;
|
|
1364
|
+
(function(RollupPolicy) {
|
|
1365
|
+
RollupPolicy["full"] = "full";
|
|
1366
|
+
RollupPolicy["partial"] = "partial";
|
|
1367
|
+
RollupPolicy["hidden"] = "hidden";
|
|
1368
|
+
})(RollupPolicy || (RollupPolicy = {}));
|
|
1369
|
+
|
|
1370
|
+
var schema = /*#__PURE__*/Object.freeze({
|
|
1371
|
+
__proto__: null,
|
|
1372
|
+
get Access () { return Access; },
|
|
1373
|
+
get DimensionType () { return DimensionType; },
|
|
1374
|
+
get RollupPolicy () { return RollupPolicy; }
|
|
1375
|
+
});
|
|
1376
|
+
|
|
1377
|
+
exports.ChatDashboardMessageType = void 0;
|
|
1378
|
+
(function(ChatDashboardMessageType) {
|
|
1379
|
+
/**
|
|
1380
|
+
* Display data preview using analytical card event
|
|
1381
|
+
*/ ChatDashboardMessageType["AnalyticalCard"] = "AnalyticalCard";
|
|
1382
|
+
/**
|
|
1383
|
+
* Create or edit a cube event
|
|
1384
|
+
*/ ChatDashboardMessageType["Cube"] = "Cube";
|
|
1385
|
+
/**
|
|
1386
|
+
* Edit a virtual cube event
|
|
1387
|
+
*/ ChatDashboardMessageType["VirtualCube"] = "VirtualCube";
|
|
1388
|
+
/**
|
|
1389
|
+
* Create or edit members (calculated members or dimension sets) event
|
|
1390
|
+
*/ ChatDashboardMessageType["Members"] = "Members";
|
|
1391
|
+
/**
|
|
1392
|
+
* List indicators event
|
|
1393
|
+
*/ ChatDashboardMessageType["ListIndicators"] = "ListIndicators";
|
|
1394
|
+
/**
|
|
1395
|
+
* Create or edit an indicator event
|
|
1396
|
+
*/ ChatDashboardMessageType["Indicator"] = "Indicator";
|
|
1397
|
+
ChatDashboardMessageType["Indicators"] = "Indicators";
|
|
1398
|
+
})(exports.ChatDashboardMessageType || (exports.ChatDashboardMessageType = {}));
|
|
1399
|
+
exports.BIInterruptMessageType = void 0;
|
|
1400
|
+
(function(BIInterruptMessageType) {
|
|
1401
|
+
BIInterruptMessageType["SwitchProject"] = "switch_project";
|
|
1402
|
+
BIInterruptMessageType["SwitchSemanticModel"] = "switch_semantic_model";
|
|
1403
|
+
BIInterruptMessageType["DeleteArtifact"] = "delete_artifact";
|
|
1404
|
+
})(exports.BIInterruptMessageType || (exports.BIInterruptMessageType = {}));
|
|
1405
|
+
|
|
1406
|
+
exports.BusinessType = void 0;
|
|
1407
|
+
(function(BusinessType) {
|
|
1408
|
+
BusinessType["SEMANTIC_MODEL"] = "SEMANTIC_MODEL";
|
|
1409
|
+
BusinessType["STORY"] = "STORY";
|
|
1410
|
+
BusinessType["INDICATOR"] = "INDICATOR";
|
|
1411
|
+
})(exports.BusinessType || (exports.BusinessType = {}));
|
|
1412
|
+
|
|
1413
|
+
exports.BusinessAreaRole = void 0;
|
|
1414
|
+
(function(BusinessAreaRole) {
|
|
1415
|
+
BusinessAreaRole[BusinessAreaRole["Adminer"] = 0] = "Adminer";
|
|
1416
|
+
BusinessAreaRole[BusinessAreaRole["Modeler"] = 1] = "Modeler";
|
|
1417
|
+
BusinessAreaRole[BusinessAreaRole["Viewer"] = 2] = "Viewer";
|
|
1418
|
+
})(exports.BusinessAreaRole || (exports.BusinessAreaRole = {}));
|
|
1419
|
+
|
|
1420
|
+
exports.AuthenticationEnum = void 0;
|
|
1421
|
+
(function(AuthenticationEnum) {
|
|
1422
|
+
AuthenticationEnum["NONE"] = "NONE";
|
|
1423
|
+
AuthenticationEnum["BASIC"] = "BASIC";
|
|
1424
|
+
})(exports.AuthenticationEnum || (exports.AuthenticationEnum = {}));
|
|
1425
|
+
exports.DataSourceTypeEnum = void 0;
|
|
1426
|
+
(function(DataSourceTypeEnum) {
|
|
1427
|
+
DataSourceTypeEnum["NONE"] = "NONE";
|
|
1428
|
+
})(exports.DataSourceTypeEnum || (exports.DataSourceTypeEnum = {}));
|
|
1429
|
+
|
|
1430
|
+
exports.DataSourceSyntaxEnum = void 0;
|
|
1431
|
+
(function(DataSourceSyntaxEnum) {
|
|
1432
|
+
DataSourceSyntaxEnum["SQL"] = "sql";
|
|
1433
|
+
DataSourceSyntaxEnum["MDX"] = "mdx";
|
|
1434
|
+
})(exports.DataSourceSyntaxEnum || (exports.DataSourceSyntaxEnum = {}));
|
|
1435
|
+
exports.DataSourceProtocolEnum = void 0;
|
|
1436
|
+
(function(DataSourceProtocolEnum) {
|
|
1437
|
+
DataSourceProtocolEnum["SQL"] = "sql";
|
|
1438
|
+
DataSourceProtocolEnum["XMLA"] = "xmla";
|
|
1439
|
+
})(exports.DataSourceProtocolEnum || (exports.DataSourceProtocolEnum = {}));
|
|
1440
|
+
|
|
1441
|
+
exports.AnalyticsFeatures = void 0;
|
|
1442
|
+
(function(AnalyticsFeatures) {
|
|
1443
|
+
AnalyticsFeatures["FEATURE_BUSINESS_AREA"] = "FEATURE_BUSINESS_AREA";
|
|
1444
|
+
AnalyticsFeatures["FEATURE_INDICATOR"] = "FEATURE_INDICATOR";
|
|
1445
|
+
AnalyticsFeatures["FEATURE_INDICATOR_MARKET"] = "FEATURE_INDICATOR_MARKET";
|
|
1446
|
+
AnalyticsFeatures["FEATURE_INDICATOR_REGISTER"] = "FEATURE_INDICATOR_REGISTER";
|
|
1447
|
+
AnalyticsFeatures["FEATURE_INDICATOR_APP"] = "FEATURE_INDICATOR_APP";
|
|
1448
|
+
AnalyticsFeatures["FEATURE_STORY"] = "FEATURE_STORY";
|
|
1449
|
+
AnalyticsFeatures["FEATURE_STORY_CREATION"] = "FEATURE_STORY_CREATION";
|
|
1450
|
+
AnalyticsFeatures["FEATURE_STORY_VIEWER"] = "FEATURE_STORY_VIEWER";
|
|
1451
|
+
AnalyticsFeatures["FEATURE_STORY_MARKET"] = "FEATURE_STORY_MARKET";
|
|
1452
|
+
AnalyticsFeatures["FEATURE_MODEL"] = "FEATURE_MODEL";
|
|
1453
|
+
AnalyticsFeatures["FEATURE_MODEL_CREATION"] = "FEATURE_MODEL_CREATION";
|
|
1454
|
+
AnalyticsFeatures["FEATURE_MODEL_VIEWER"] = "FEATURE_MODEL_VIEWER";
|
|
1455
|
+
AnalyticsFeatures["FEATURE_SUBSCRIPTION"] = "FEATURE_SUBSCRIPTION";
|
|
1456
|
+
AnalyticsFeatures["FEATURE_HOME_TREND"] = "FEATURE_HOME_TREND";
|
|
1457
|
+
AnalyticsFeatures["FEATURE_HOME_CATALOG"] = "FEATURE_HOME_CATALOG";
|
|
1458
|
+
AnalyticsFeatures["FEATURE_PROJECT"] = "FEATURE_PROJECT";
|
|
1459
|
+
AnalyticsFeatures["FEATURE_DATA_FACTORY"] = "FEATURE_DATA_FACTORY";
|
|
1460
|
+
})(exports.AnalyticsFeatures || (exports.AnalyticsFeatures = {}));
|
|
1461
|
+
|
|
1462
|
+
exports.FeedTypeEnum = void 0;
|
|
1463
|
+
(function(FeedTypeEnum) {
|
|
1464
|
+
FeedTypeEnum["StoryWidget"] = "StoryWidget";
|
|
1465
|
+
FeedTypeEnum["IndicatorWidget"] = "IndicatorWidget";
|
|
1466
|
+
FeedTypeEnum["Recents"] = "Recents";
|
|
1467
|
+
FeedTypeEnum["Ranking"] = "Ranking";
|
|
1468
|
+
})(exports.FeedTypeEnum || (exports.FeedTypeEnum = {}));
|
|
1469
|
+
|
|
1470
|
+
var IndicatorOptionFields = [
|
|
1471
|
+
"dimensions",
|
|
1472
|
+
"filters",
|
|
1473
|
+
"formula",
|
|
1474
|
+
"measure",
|
|
1475
|
+
"aggregator",
|
|
1476
|
+
"calendar"
|
|
1477
|
+
];
|
|
1478
|
+
exports.IndicatorType = void 0;
|
|
1479
|
+
(function(IndicatorType) {
|
|
1480
|
+
IndicatorType["BASIC"] = "BASIC";
|
|
1481
|
+
IndicatorType["DERIVE"] = "DERIVE";
|
|
1482
|
+
})(exports.IndicatorType || (exports.IndicatorType = {}));
|
|
1483
|
+
exports.IndicatorStatusEnum = void 0;
|
|
1484
|
+
(function(IndicatorStatusEnum) {
|
|
1485
|
+
/**
|
|
1486
|
+
* draft
|
|
1487
|
+
*/ IndicatorStatusEnum["DRAFT"] = "DRAFT";
|
|
1488
|
+
/**
|
|
1489
|
+
* Published
|
|
1490
|
+
*/ IndicatorStatusEnum["RELEASED"] = "RELEASED";
|
|
1491
|
+
/**
|
|
1492
|
+
* Offline Archive
|
|
1493
|
+
*/ IndicatorStatusEnum["ARCHIVED"] = "ARCHIVED";
|
|
1494
|
+
})(exports.IndicatorStatusEnum || (exports.IndicatorStatusEnum = {}));
|
|
1495
|
+
|
|
1496
|
+
exports.TimeGranularity = void 0;
|
|
1497
|
+
(function(TimeGranularity) {
|
|
1498
|
+
TimeGranularity["Year"] = "Year";
|
|
1499
|
+
TimeGranularity["Quarter"] = "Quarter";
|
|
1500
|
+
TimeGranularity["Month"] = "Month";
|
|
1501
|
+
TimeGranularity["Week"] = "Week";
|
|
1502
|
+
TimeGranularity["Day"] = "Day";
|
|
1503
|
+
})(exports.TimeGranularity || (exports.TimeGranularity = {}));
|
|
1504
|
+
exports.IndicatorTagEnum = void 0;
|
|
1505
|
+
(function(IndicatorTagEnum) {
|
|
1506
|
+
IndicatorTagEnum[IndicatorTagEnum["UNIT"] = 0] = "UNIT";
|
|
1507
|
+
IndicatorTagEnum[IndicatorTagEnum["MOM"] = 1] = "MOM";
|
|
1508
|
+
IndicatorTagEnum[IndicatorTagEnum["YOY"] = 2] = "YOY";
|
|
1509
|
+
})(exports.IndicatorTagEnum || (exports.IndicatorTagEnum = {}));
|
|
1510
|
+
|
|
1511
|
+
exports.AnalyticsPermissionsEnum = void 0;
|
|
1512
|
+
(function(AnalyticsPermissionsEnum) {
|
|
1513
|
+
/**
|
|
1514
|
+
* Edit Certification
|
|
1515
|
+
*/ AnalyticsPermissionsEnum["CERTIFICATION_EDIT"] = "CERTIFICATION_EDIT";
|
|
1516
|
+
// DataSource
|
|
1517
|
+
AnalyticsPermissionsEnum["DATA_SOURCE_VIEW"] = "DATA_SOURCE_VIEW";
|
|
1518
|
+
AnalyticsPermissionsEnum["DATA_SOURCE_EDIT"] = "DATA_SOURCE_EDIT";
|
|
1519
|
+
// Notification Destination
|
|
1520
|
+
AnalyticsPermissionsEnum["NOTIFICATION_DESTINATION_VIEW"] = "NOTIFICATION_DESTINATION_VIEW";
|
|
1521
|
+
AnalyticsPermissionsEnum["NOTIFICATION_DESTINATION_EDIT"] = "NOTIFICATION_DESTINATION_EDIT";
|
|
1522
|
+
// Subscription
|
|
1523
|
+
AnalyticsPermissionsEnum["SUBSCRIPTION_VIEW"] = "SUBSCRIPTION_VIEW";
|
|
1524
|
+
AnalyticsPermissionsEnum["SUBSCRIPTION_EDIT"] = "SUBSCRIPTION_EDIT";
|
|
1525
|
+
// Semantic Model
|
|
1526
|
+
AnalyticsPermissionsEnum["MODELS_VIEW"] = "MODELS_VIEW";
|
|
1527
|
+
AnalyticsPermissionsEnum["MODELS_EDIT"] = "MODELS_EDIT";
|
|
1528
|
+
// Story
|
|
1529
|
+
AnalyticsPermissionsEnum["STORIES_VIEW"] = "STORIES_VIEW";
|
|
1530
|
+
AnalyticsPermissionsEnum["STORIES_EDIT"] = "STORIES_EDIT";
|
|
1531
|
+
// BusinessGroup
|
|
1532
|
+
AnalyticsPermissionsEnum["BUSINESS_AREA_VIEW"] = "BUSINESS_AREA_VIEW";
|
|
1533
|
+
AnalyticsPermissionsEnum["BUSINESS_AREA_EDIT"] = "BUSINESS_AREA_EDIT";
|
|
1534
|
+
// Indicator
|
|
1535
|
+
AnalyticsPermissionsEnum["INDICATOR_VIEW"] = "INDICATOR_VIEW";
|
|
1536
|
+
AnalyticsPermissionsEnum["INDICATOR_MARTKET_VIEW"] = "INDICATOR_MARTKET_VIEW";
|
|
1537
|
+
AnalyticsPermissionsEnum["INDICATOR_EDIT"] = "INDICATOR_EDIT";
|
|
1538
|
+
// Data Factory
|
|
1539
|
+
AnalyticsPermissionsEnum["DATA_FACTORY_VIEW"] = "DATA_FACTORY_VIEW";
|
|
1540
|
+
AnalyticsPermissionsEnum["DATA_FACTORY_EDIT"] = "DATA_FACTORY_EDIT";
|
|
1541
|
+
// Permission application approval view, you can browse all permission applications
|
|
1542
|
+
AnalyticsPermissionsEnum["PERMISSION_APPROVAL_VIEW"] = "PERMISSION_APPROVAL_VIEW";
|
|
1543
|
+
// Permission application creation permission, cannot browse other applications
|
|
1544
|
+
AnalyticsPermissionsEnum["PERMISSION_APPROVAL_EDIT"] = "PERMISSION_APPROVAL_EDIT";
|
|
1545
|
+
})(exports.AnalyticsPermissionsEnum || (exports.AnalyticsPermissionsEnum = {}));
|
|
1546
|
+
|
|
1547
|
+
exports.AgentType = void 0;
|
|
1548
|
+
(function(AgentType) {
|
|
1549
|
+
AgentType["Local"] = "local";
|
|
1550
|
+
AgentType["Browser"] = "browser";
|
|
1551
|
+
AgentType["Server"] = "server";
|
|
1552
|
+
AgentType["Wasm"] = "wasm";
|
|
1553
|
+
})(exports.AgentType || (exports.AgentType = {}));
|
|
1554
|
+
exports.ModelTypeEnum = void 0;
|
|
1555
|
+
(function(ModelTypeEnum) {
|
|
1556
|
+
ModelTypeEnum["XMLA"] = "XMLA";
|
|
1557
|
+
ModelTypeEnum["SQL"] = "SQL";
|
|
1558
|
+
})(exports.ModelTypeEnum || (exports.ModelTypeEnum = {}));
|
|
1559
|
+
exports.RoleTypeEnum = void 0;
|
|
1560
|
+
(function(RoleTypeEnum) {
|
|
1561
|
+
RoleTypeEnum["single"] = "single";
|
|
1562
|
+
RoleTypeEnum["union"] = "union";
|
|
1563
|
+
})(exports.RoleTypeEnum || (exports.RoleTypeEnum = {}));
|
|
1564
|
+
exports.SemanticModelStatusEnum = void 0;
|
|
1565
|
+
(function(SemanticModelStatusEnum) {
|
|
1566
|
+
/**
|
|
1567
|
+
* Using
|
|
1568
|
+
*/ SemanticModelStatusEnum["Progressing"] = "progressing";
|
|
1569
|
+
/**
|
|
1570
|
+
* Archived
|
|
1571
|
+
*/ SemanticModelStatusEnum["Archived"] = "archived";
|
|
1572
|
+
})(exports.SemanticModelStatusEnum || (exports.SemanticModelStatusEnum = {}));
|
|
1573
|
+
function extractSemanticModelDraft(model) {
|
|
1574
|
+
var _model_options, _model_options1;
|
|
1575
|
+
return {
|
|
1576
|
+
key: model.key,
|
|
1577
|
+
name: model.name,
|
|
1578
|
+
description: model.description,
|
|
1579
|
+
type: model.type,
|
|
1580
|
+
agentType: model.agentType,
|
|
1581
|
+
dataSourceId: model.dataSourceId,
|
|
1582
|
+
businessAreaId: model.businessAreaId,
|
|
1583
|
+
catalog: model.catalog,
|
|
1584
|
+
cube: model.cube,
|
|
1585
|
+
schema: (_model_options = model.options) === null || _model_options === void 0 ? void 0 : _model_options.schema,
|
|
1586
|
+
settings: (_model_options1 = model.options) === null || _model_options1 === void 0 ? void 0 : _model_options1.settings,
|
|
1587
|
+
roles: model.roles
|
|
1588
|
+
};
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
exports.ModelEntityType = void 0;
|
|
1592
|
+
(function(ModelEntityType) {
|
|
1593
|
+
ModelEntityType["Cube"] = "cube";
|
|
1594
|
+
ModelEntityType["Dimension"] = "dimension";
|
|
1595
|
+
})(exports.ModelEntityType || (exports.ModelEntityType = {}));
|
|
1596
|
+
|
|
1597
|
+
function embeddingCubeCollectionName(modelKey, cube, isDraft) {
|
|
1598
|
+
return "".concat(modelKey, ":").concat(cube).concat(isDraft ? ":draft" : "");
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
exports.StoryStatusEnum = void 0;
|
|
1602
|
+
(function(StoryStatusEnum) {
|
|
1603
|
+
/**
|
|
1604
|
+
* 草稿
|
|
1605
|
+
*/ StoryStatusEnum["DRAFT"] = "DRAFT";
|
|
1606
|
+
/**
|
|
1607
|
+
* 重新编辑
|
|
1608
|
+
*/ StoryStatusEnum["CHANGING"] = "CHANGING";
|
|
1609
|
+
/**
|
|
1610
|
+
* 审阅中
|
|
1611
|
+
*/ StoryStatusEnum["REVIEW"] = "REVIEW";
|
|
1612
|
+
/**
|
|
1613
|
+
* 通过
|
|
1614
|
+
*/ StoryStatusEnum["APPROVED"] = "APPROVED";
|
|
1615
|
+
/**
|
|
1616
|
+
* 退回
|
|
1617
|
+
*/ StoryStatusEnum["REJECTED"] = "REJECTED";
|
|
1618
|
+
/**
|
|
1619
|
+
* 已发布
|
|
1620
|
+
*/ StoryStatusEnum["RELEASED"] = "RELEASED";
|
|
1621
|
+
/**
|
|
1622
|
+
* 下线存档
|
|
1623
|
+
*/ StoryStatusEnum["ARCHIVED"] = "ARCHIVED";
|
|
1624
|
+
})(exports.StoryStatusEnum || (exports.StoryStatusEnum = {}));
|
|
1625
|
+
exports.AccessEnum = void 0;
|
|
1626
|
+
(function(AccessEnum) {
|
|
1627
|
+
/**
|
|
1628
|
+
* 可看到
|
|
1629
|
+
*/ AccessEnum["View"] = "View";
|
|
1630
|
+
/**
|
|
1631
|
+
* 可读取详情
|
|
1632
|
+
*/ AccessEnum["Read"] = "Read";
|
|
1633
|
+
/**
|
|
1634
|
+
* 可编辑
|
|
1635
|
+
*/ AccessEnum["Write"] = "Write";
|
|
1636
|
+
})(exports.AccessEnum || (exports.AccessEnum = {}));
|
|
1637
|
+
|
|
1638
|
+
exports.SubscriptionType = void 0;
|
|
1639
|
+
(function(SubscriptionType) {
|
|
1640
|
+
SubscriptionType["CHART"] = "CHART";
|
|
1641
|
+
SubscriptionType["INDICATOR"] = "INDICATOR";
|
|
1642
|
+
})(exports.SubscriptionType || (exports.SubscriptionType = {}));
|
|
1643
|
+
|
|
1644
|
+
exports.VisitEntityEnum = void 0;
|
|
1645
|
+
(function(VisitEntityEnum) {
|
|
1646
|
+
VisitEntityEnum["DataSource"] = "DataSource";
|
|
1647
|
+
VisitEntityEnum["SemanticModel"] = "SemanticModel";
|
|
1648
|
+
VisitEntityEnum["Story"] = "Story";
|
|
1649
|
+
VisitEntityEnum["Widget"] = "Widget";
|
|
1650
|
+
VisitEntityEnum["Indicator"] = "Indicator";
|
|
1651
|
+
})(exports.VisitEntityEnum || (exports.VisitEntityEnum = {}));
|
|
1652
|
+
exports.VisitTypeEnum = void 0;
|
|
1653
|
+
(function(VisitTypeEnum) {
|
|
1654
|
+
VisitTypeEnum["View"] = "View";
|
|
1655
|
+
VisitTypeEnum["Data"] = "Data";
|
|
1656
|
+
})(exports.VisitTypeEnum || (exports.VisitTypeEnum = {}));
|
|
1657
|
+
|
|
1658
|
+
exports.AgentEventType = void 0;
|
|
1659
|
+
(function(AgentEventType) {
|
|
1660
|
+
AgentEventType["request"] = "request";
|
|
1661
|
+
AgentEventType["response"] = "response";
|
|
1662
|
+
AgentEventType["error"] = "error";
|
|
1663
|
+
})(exports.AgentEventType || (exports.AgentEventType = {}));
|
|
1664
|
+
exports.LocalAgentType = void 0;
|
|
1665
|
+
(function(LocalAgentType) {
|
|
1666
|
+
LocalAgentType[LocalAgentType["TENANT"] = 0] = "TENANT";
|
|
1667
|
+
LocalAgentType[LocalAgentType["USER"] = 1] = "USER";
|
|
1668
|
+
})(exports.LocalAgentType || (exports.LocalAgentType = {}));
|
|
1669
|
+
var TENANT_AGENT_LOCAL_URL = "agent-local-url";
|
|
1670
|
+
|
|
1671
|
+
exports.ApprovalPolicyTypesEnum = void 0;
|
|
1672
|
+
(function(ApprovalPolicyTypesEnum) {
|
|
1673
|
+
ApprovalPolicyTypesEnum[ApprovalPolicyTypesEnum["TIME_OFF"] = 1] = "TIME_OFF";
|
|
1674
|
+
ApprovalPolicyTypesEnum[ApprovalPolicyTypesEnum["EQUIPMENT_SHARING"] = 2] = "EQUIPMENT_SHARING";
|
|
1675
|
+
ApprovalPolicyTypesEnum[ApprovalPolicyTypesEnum["BUSINESS_TRIP"] = 3] = "BUSINESS_TRIP";
|
|
1676
|
+
})(exports.ApprovalPolicyTypesEnum || (exports.ApprovalPolicyTypesEnum = {}));
|
|
1677
|
+
exports.ApprovalPolicyTypesStringEnum = void 0;
|
|
1678
|
+
(function(ApprovalPolicyTypesStringEnum) {
|
|
1679
|
+
ApprovalPolicyTypesStringEnum["TIME_OFF"] = "TIME_OFF";
|
|
1680
|
+
ApprovalPolicyTypesStringEnum["EQUIPMENT_SHARING"] = "EQUIPMENT_SHARING";
|
|
1681
|
+
ApprovalPolicyTypesStringEnum["BUSINESS_TRIP"] = "BUSINESS_TRIP";
|
|
1682
|
+
ApprovalPolicyTypesStringEnum["INDICATOR"] = "INDICATOR";
|
|
1683
|
+
ApprovalPolicyTypesStringEnum["STORY"] = "STORY";
|
|
1684
|
+
ApprovalPolicyTypesStringEnum["BUSINESS_AREA"] = "BUSINESS_AREA";
|
|
1685
|
+
})(exports.ApprovalPolicyTypesStringEnum || (exports.ApprovalPolicyTypesStringEnum = {}));
|
|
1686
|
+
|
|
1687
|
+
exports.PermissionApprovalStatusTypesEnum = void 0;
|
|
1688
|
+
(function(PermissionApprovalStatusTypesEnum) {
|
|
1689
|
+
PermissionApprovalStatusTypesEnum[PermissionApprovalStatusTypesEnum["REQUESTED"] = 1] = "REQUESTED";
|
|
1690
|
+
PermissionApprovalStatusTypesEnum[PermissionApprovalStatusTypesEnum["APPROVED"] = 2] = "APPROVED";
|
|
1691
|
+
PermissionApprovalStatusTypesEnum[PermissionApprovalStatusTypesEnum["REFUSED"] = 3] = "REFUSED";
|
|
1692
|
+
})(exports.PermissionApprovalStatusTypesEnum || (exports.PermissionApprovalStatusTypesEnum = {}));
|
|
1693
|
+
var PermissionApprovalStatus = {
|
|
1694
|
+
REQUESTED: 1,
|
|
1695
|
+
APPROVED: 2,
|
|
1696
|
+
REFUSED: 3
|
|
1697
|
+
};
|
|
1698
|
+
|
|
1699
|
+
exports.ProjectStatusEnum = void 0;
|
|
1700
|
+
(function(ProjectStatusEnum) {
|
|
1701
|
+
/**
|
|
1702
|
+
* In use
|
|
1703
|
+
*/ ProjectStatusEnum["Progressing"] = "Progressing";
|
|
1704
|
+
/**
|
|
1705
|
+
* Archived
|
|
1706
|
+
*/ ProjectStatusEnum["Archived"] = "Archived";
|
|
1707
|
+
})(exports.ProjectStatusEnum || (exports.ProjectStatusEnum = {}));
|
|
1708
|
+
|
|
1709
|
+
exports.StoryTemplateType = void 0;
|
|
1710
|
+
(function(StoryTemplateType) {
|
|
1711
|
+
StoryTemplateType["Template"] = "Template";
|
|
1712
|
+
StoryTemplateType["Theme"] = "Theme";
|
|
1713
|
+
})(exports.StoryTemplateType || (exports.StoryTemplateType = {}));
|
|
1714
|
+
|
|
1715
|
+
exports.QueryStatusEnum = void 0;
|
|
1716
|
+
(function(QueryStatusEnum) {
|
|
1717
|
+
QueryStatusEnum["PENDING"] = "pending";
|
|
1718
|
+
QueryStatusEnum["RUNNING"] = "running";
|
|
1719
|
+
QueryStatusEnum["SUCCESS"] = "success";
|
|
1720
|
+
QueryStatusEnum["FAILED"] = "failed";
|
|
1721
|
+
})(exports.QueryStatusEnum || (exports.QueryStatusEnum = {}));
|
|
1722
|
+
|
|
1723
|
+
exports.ProviderType = void 0;
|
|
1724
|
+
(function(ProviderType) {
|
|
1725
|
+
ProviderType["CUSTOM"] = "custom";
|
|
1726
|
+
ProviderType["SYSTEM"] = "system";
|
|
1727
|
+
})(exports.ProviderType || (exports.ProviderType = {}));
|
|
1728
|
+
exports.CredentialFormTypeEnum = void 0;
|
|
1729
|
+
(function(CredentialFormTypeEnum) {
|
|
1730
|
+
CredentialFormTypeEnum["TEXT_INPUT"] = "text-input";
|
|
1731
|
+
CredentialFormTypeEnum["SECRET_INPUT"] = "secret-input";
|
|
1732
|
+
CredentialFormTypeEnum["SELECT"] = "select";
|
|
1733
|
+
CredentialFormTypeEnum["RADIO"] = "radio";
|
|
1734
|
+
})(exports.CredentialFormTypeEnum || (exports.CredentialFormTypeEnum = {}));
|
|
1735
|
+
exports.FetchFrom = void 0;
|
|
1736
|
+
(function(FetchFrom) {
|
|
1737
|
+
FetchFrom["PREDEFINED_MODEL"] = "predefined-model";
|
|
1738
|
+
FetchFrom["CUSTOMIZABLE_MODEL"] = "customizable-model";
|
|
1739
|
+
})(exports.FetchFrom || (exports.FetchFrom = {}));
|
|
1740
|
+
exports.ModelFeature = void 0;
|
|
1741
|
+
(function(ModelFeature) {
|
|
1742
|
+
ModelFeature["TOOL_CALL"] = "tool-call";
|
|
1743
|
+
ModelFeature["MULTI_TOOL_CALL"] = "multi-tool-call";
|
|
1744
|
+
ModelFeature["AGENT_THOUGHT"] = "agent-thought";
|
|
1745
|
+
ModelFeature["VISION"] = "vision";
|
|
1746
|
+
ModelFeature["STREAM_TOOL_CALL"] = "stream-tool-call";
|
|
1747
|
+
ModelFeature["VIDEO"] = "video";
|
|
1748
|
+
ModelFeature["STRUCTURED_OUTPUT"] = "structured-output";
|
|
1749
|
+
})(exports.ModelFeature || (exports.ModelFeature = {}));
|
|
1750
|
+
exports.ModelPropertyKey = void 0;
|
|
1751
|
+
(function(ModelPropertyKey) {
|
|
1752
|
+
ModelPropertyKey["MODE"] = "mode";
|
|
1753
|
+
ModelPropertyKey["CONTEXT_SIZE"] = "context_size";
|
|
1754
|
+
ModelPropertyKey["MAX_CHUNKS"] = "max_chunks";
|
|
1755
|
+
ModelPropertyKey["FILE_UPLOAD_LIMIT"] = "file_upload_limit";
|
|
1756
|
+
ModelPropertyKey["SUPPORTED_FILE_EXTENSIONS"] = "supported_file_extensions";
|
|
1757
|
+
ModelPropertyKey["MAX_CHARACTERS_PER_CHUNK"] = "max_characters_per_chunk";
|
|
1758
|
+
ModelPropertyKey["DEFAULT_VOICE"] = "default_voice";
|
|
1759
|
+
ModelPropertyKey["VOICES"] = "voices";
|
|
1760
|
+
ModelPropertyKey["WORD_LIMIT"] = "word_limit";
|
|
1761
|
+
ModelPropertyKey["AUDIO_TYPE"] = "audio_type";
|
|
1762
|
+
ModelPropertyKey["MAX_WORKERS"] = "max_workers";
|
|
1763
|
+
})(exports.ModelPropertyKey || (exports.ModelPropertyKey = {}));
|
|
1764
|
+
exports.ConfigurateMethod = void 0;
|
|
1765
|
+
(function(ConfigurateMethod) {
|
|
1766
|
+
ConfigurateMethod["PREDEFINED_MODEL"] = "predefined-model";
|
|
1767
|
+
ConfigurateMethod["CUSTOMIZABLE_MODEL"] = "customizable-model";
|
|
1768
|
+
})(exports.ConfigurateMethod || (exports.ConfigurateMethod = {}));
|
|
1769
|
+
exports.ParameterType = void 0;
|
|
1770
|
+
(function(ParameterType) {
|
|
1771
|
+
ParameterType["FLOAT"] = "float";
|
|
1772
|
+
ParameterType["INT"] = "int";
|
|
1773
|
+
ParameterType["STRING"] = "string";
|
|
1774
|
+
ParameterType["BOOLEAN"] = "boolean";
|
|
1775
|
+
ParameterType["TEXT"] = "text";
|
|
1776
|
+
})(exports.ParameterType || (exports.ParameterType = {}));
|
|
1777
|
+
var AI_MODEL_TYPE_VARIABLE = "__model_type";
|
|
1778
|
+
exports.PriceType = void 0;
|
|
1779
|
+
(function(PriceType) {
|
|
1780
|
+
PriceType["INPUT"] = "input";
|
|
1781
|
+
PriceType["OUTPUT"] = "output";
|
|
1782
|
+
})(exports.PriceType || (exports.PriceType = {}));
|
|
1783
|
+
|
|
1784
|
+
/**
|
|
1785
|
+
* Business roles for AI copilot (commands or contexts)
|
|
1786
|
+
*/ exports.AiBusinessRole = void 0;
|
|
1787
|
+
(function(AiBusinessRole) {
|
|
1788
|
+
AiBusinessRole["FinanceBP"] = "finance_bp";
|
|
1789
|
+
AiBusinessRole["SupplyChainExpert"] = "supply_chain_expert";
|
|
1790
|
+
})(exports.AiBusinessRole || (exports.AiBusinessRole = {}));
|
|
1791
|
+
exports.AiProvider = void 0;
|
|
1792
|
+
(function(AiProvider) {
|
|
1793
|
+
/**
|
|
1794
|
+
* - https://js.langchain.com/docs/integrations/chat/openai/
|
|
1795
|
+
*/ AiProvider["OpenAI"] = "openai";
|
|
1796
|
+
/**
|
|
1797
|
+
* - https://js.langchain.com/docs/integrations/chat/openai/
|
|
1798
|
+
*/ AiProvider["Azure"] = "azure";
|
|
1799
|
+
// DashScope = 'dashscope',
|
|
1800
|
+
/**
|
|
1801
|
+
* - https://ollama.com/
|
|
1802
|
+
* - https://js.langchain.com/docs/integrations/chat/ollama/
|
|
1803
|
+
*/ AiProvider["Ollama"] = "ollama";
|
|
1804
|
+
/**
|
|
1805
|
+
* - https://www.deepseek.com/zh
|
|
1806
|
+
* - https://js.langchain.com/docs/integrations/chat/openai/
|
|
1807
|
+
*/ AiProvider["DeepSeek"] = "deepseek";
|
|
1808
|
+
/**
|
|
1809
|
+
* - https://docs.anthropic.com/en/home
|
|
1810
|
+
* - https://js.langchain.com/docs/integrations/chat/anthropic/
|
|
1811
|
+
*/ AiProvider["Anthropic"] = "anthropic";
|
|
1812
|
+
/**
|
|
1813
|
+
* - https://www.aliyun.com/product/bailian
|
|
1814
|
+
* - https://js.langchain.com/docs/integrations/chat/alibaba_tongyi/
|
|
1815
|
+
*/ AiProvider["AlibabaTongyi"] = "alibaba_tongyi";
|
|
1816
|
+
/**
|
|
1817
|
+
* - https://open.bigmodel.cn/
|
|
1818
|
+
* - https://js.langchain.com/docs/integrations/chat/openai/
|
|
1819
|
+
*/ AiProvider["Zhipu"] = "zhipu";
|
|
1820
|
+
/**
|
|
1821
|
+
* - https://qianfan.cloud.baidu.com/
|
|
1822
|
+
* - https://js.langchain.com/docs/integrations/chat/baidu_qianfan/
|
|
1823
|
+
*/ AiProvider["BaiduQianfan"] = "baidu_qianfan";
|
|
1824
|
+
/**
|
|
1825
|
+
* - https://www.together.ai/
|
|
1826
|
+
* - https://js.langchain.com/docs/integrations/chat/togetherai/
|
|
1827
|
+
*/ AiProvider["Together"] = "together";
|
|
1828
|
+
/**
|
|
1829
|
+
* - https://platform.moonshot.cn/console
|
|
1830
|
+
* - https://js.langchain.com/docs/integrations/chat/openai/
|
|
1831
|
+
*/ AiProvider["Moonshot"] = "moonshot";
|
|
1832
|
+
/**
|
|
1833
|
+
* - https://groq.com/
|
|
1834
|
+
* - https://js.langchain.com/docs/integrations/chat/openai/
|
|
1835
|
+
*/ AiProvider["Groq"] = "groq";
|
|
1836
|
+
/**
|
|
1837
|
+
* - https://mistral.ai/
|
|
1838
|
+
*
|
|
1839
|
+
*/ AiProvider["Mistral"] = "mistral";
|
|
1840
|
+
/**
|
|
1841
|
+
* - https://cohere.com/
|
|
1842
|
+
*/ AiProvider["Cohere"] = "cohere";
|
|
1843
|
+
})(exports.AiProvider || (exports.AiProvider = {}));
|
|
1844
|
+
exports.AiProtocol = void 0;
|
|
1845
|
+
(function(AiProtocol) {
|
|
1846
|
+
AiProtocol["OpenAI"] = "openai";
|
|
1847
|
+
AiProtocol["Others"] = "others";
|
|
1848
|
+
})(exports.AiProtocol || (exports.AiProtocol = {}));
|
|
1849
|
+
var OpenAIEmbeddingsProviders = [
|
|
1850
|
+
"openai",
|
|
1851
|
+
"azure",
|
|
1852
|
+
"deepseek"
|
|
1853
|
+
];
|
|
1854
|
+
var OllamaEmbeddingsProviders = [
|
|
1855
|
+
"ollama"
|
|
1856
|
+
];
|
|
1857
|
+
|
|
1858
|
+
exports.ChatGatewayEvent = void 0;
|
|
1859
|
+
(function(ChatGatewayEvent) {
|
|
1860
|
+
ChatGatewayEvent["ACK"] = "ack";
|
|
1861
|
+
ChatGatewayEvent["ConversationCreated"] = "conversation_created";
|
|
1862
|
+
ChatGatewayEvent["Message"] = "message";
|
|
1863
|
+
ChatGatewayEvent["MessageStream"] = "message_stream";
|
|
1864
|
+
ChatGatewayEvent["StepStart"] = "step_start";
|
|
1865
|
+
ChatGatewayEvent["StepEnd"] = "step_end";
|
|
1866
|
+
ChatGatewayEvent["ToolStart"] = "tool_start";
|
|
1867
|
+
ChatGatewayEvent["ToolEnd"] = "tool_end";
|
|
1868
|
+
ChatGatewayEvent["ChainStart"] = "chain_start";
|
|
1869
|
+
ChatGatewayEvent["ChainEnd"] = "chain_end";
|
|
1870
|
+
ChatGatewayEvent["CancelChain"] = "cancel_chain";
|
|
1871
|
+
ChatGatewayEvent["ChainAborted"] = "chain_aborted";
|
|
1872
|
+
ChatGatewayEvent["Error"] = "error";
|
|
1873
|
+
ChatGatewayEvent["Agent"] = "agent";
|
|
1874
|
+
})(exports.ChatGatewayEvent || (exports.ChatGatewayEvent = {}));
|
|
1875
|
+
|
|
1876
|
+
exports.ChatMessageStepCategory = void 0;
|
|
1877
|
+
(function(ChatMessageStepCategory) {
|
|
1878
|
+
/**
|
|
1879
|
+
* List of items: urls, files, etc.
|
|
1880
|
+
*/ ChatMessageStepCategory["List"] = "list";
|
|
1881
|
+
/**
|
|
1882
|
+
* Websearch results
|
|
1883
|
+
*/ ChatMessageStepCategory["WebSearch"] = "web_search";
|
|
1884
|
+
/**
|
|
1885
|
+
* Files list
|
|
1886
|
+
*/ ChatMessageStepCategory["Files"] = "files";
|
|
1887
|
+
/**
|
|
1888
|
+
* View a file
|
|
1889
|
+
*/ ChatMessageStepCategory["File"] = "file";
|
|
1890
|
+
/**
|
|
1891
|
+
* Program Execution
|
|
1892
|
+
*/ ChatMessageStepCategory["Program"] = "program";
|
|
1893
|
+
/**
|
|
1894
|
+
* Iframe
|
|
1895
|
+
*/ ChatMessageStepCategory["Iframe"] = "iframe";
|
|
1896
|
+
ChatMessageStepCategory["Memory"] = "memory";
|
|
1897
|
+
ChatMessageStepCategory["Tasks"] = "tasks";
|
|
1898
|
+
/**
|
|
1899
|
+
* Knowledges (knowledge base retriever results)
|
|
1900
|
+
*/ ChatMessageStepCategory["Knowledges"] = "knowledges";
|
|
1901
|
+
})(exports.ChatMessageStepCategory || (exports.ChatMessageStepCategory = {}));
|
|
1902
|
+
// Type guards
|
|
1903
|
+
/**
|
|
1904
|
+
* @deprecated use content in message
|
|
1905
|
+
*/ function isMessageGroup(message) {
|
|
1906
|
+
return "messages" in message;
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
exports.ChatMessageFeedbackRatingEnum = void 0;
|
|
1910
|
+
(function(ChatMessageFeedbackRatingEnum) {
|
|
1911
|
+
ChatMessageFeedbackRatingEnum["LIKE"] = "like";
|
|
1912
|
+
ChatMessageFeedbackRatingEnum["DISLIKE"] = "dislike";
|
|
1913
|
+
})(exports.ChatMessageFeedbackRatingEnum || (exports.ChatMessageFeedbackRatingEnum = {}));
|
|
1914
|
+
|
|
1915
|
+
var MEMORY_QA_PROMPT = "Summarize the experience of the above conversation and output a short question and answer.";
|
|
1916
|
+
var MEMORY_PROFILE_PROMPT = "Extract new user profile information from the above conversation in one short sentence. If no new information is available, return nothing.";
|
|
1917
|
+
|
|
1918
|
+
exports.AiProviderRole = void 0;
|
|
1919
|
+
(function(AiProviderRole) {
|
|
1920
|
+
AiProviderRole["Primary"] = "primary";
|
|
1921
|
+
AiProviderRole["Secondary"] = "secondary";
|
|
1922
|
+
AiProviderRole["Embedding"] = "embedding";
|
|
1923
|
+
AiProviderRole["Reasoning"] = "reasoning";
|
|
1924
|
+
})(exports.AiProviderRole || (exports.AiProviderRole = {}));
|
|
1925
|
+
|
|
1926
|
+
exports.AiFeatureEnum = void 0;
|
|
1927
|
+
(function(AiFeatureEnum) {
|
|
1928
|
+
AiFeatureEnum["FEATURE_COPILOT"] = "FEATURE_COPILOT";
|
|
1929
|
+
AiFeatureEnum["FEATURE_COPILOT_KNOWLEDGEBASE"] = "FEATURE_COPILOT_KNOWLEDGEBASE";
|
|
1930
|
+
AiFeatureEnum["FEATURE_COPILOT_CHAT"] = "FEATURE_COPILOT_CHAT";
|
|
1931
|
+
AiFeatureEnum["FEATURE_XPERT"] = "FEATURE_XPERT";
|
|
1932
|
+
})(exports.AiFeatureEnum || (exports.AiFeatureEnum = {}));
|
|
1933
|
+
|
|
1934
|
+
exports.VectorTypeEnum = void 0;
|
|
1935
|
+
(function(VectorTypeEnum) {
|
|
1936
|
+
VectorTypeEnum["ANALYTICDB"] = "analyticdb";
|
|
1937
|
+
VectorTypeEnum["CHROMA"] = "chroma";
|
|
1938
|
+
VectorTypeEnum["MILVUS"] = "milvus";
|
|
1939
|
+
VectorTypeEnum["MYSCALE"] = "myscale";
|
|
1940
|
+
VectorTypeEnum["PGVECTOR"] = "pgvector";
|
|
1941
|
+
VectorTypeEnum["PGVECTO_RS"] = "pgvecto-rs";
|
|
1942
|
+
VectorTypeEnum["QDRANT"] = "qdrant";
|
|
1943
|
+
VectorTypeEnum["RELYT"] = "relyt";
|
|
1944
|
+
VectorTypeEnum["TIDB_VECTOR"] = "tidb_vector";
|
|
1945
|
+
VectorTypeEnum["WEAVIATE"] = "weaviate";
|
|
1946
|
+
VectorTypeEnum["OPENSEARCH"] = "opensearch";
|
|
1947
|
+
VectorTypeEnum["TENCENT"] = "tencent";
|
|
1948
|
+
VectorTypeEnum["ORACLE"] = "oracle";
|
|
1949
|
+
VectorTypeEnum["ELASTICSEARCH"] = "elasticsearch";
|
|
1950
|
+
VectorTypeEnum["ELASTICSEARCH_JA"] = "elasticsearch-ja";
|
|
1951
|
+
VectorTypeEnum["LINDORM"] = "lindorm";
|
|
1952
|
+
VectorTypeEnum["COUCHBASE"] = "couchbase";
|
|
1953
|
+
VectorTypeEnum["BAIDU"] = "baidu";
|
|
1954
|
+
VectorTypeEnum["VIKINGDB"] = "vikingdb";
|
|
1955
|
+
VectorTypeEnum["UPSTASH"] = "upstash";
|
|
1956
|
+
VectorTypeEnum["TIDB_ON_QDRANT"] = "tidb_on_qdrant";
|
|
1957
|
+
VectorTypeEnum["OCEANBASE"] = "oceanbase";
|
|
1958
|
+
})(exports.VectorTypeEnum || (exports.VectorTypeEnum = {}));
|
|
1959
|
+
|
|
1960
|
+
exports.KDocumentWebTypeEnum = void 0;
|
|
1961
|
+
(function(KDocumentWebTypeEnum) {
|
|
1962
|
+
KDocumentWebTypeEnum["Playwright"] = "playwright";
|
|
1963
|
+
KDocumentWebTypeEnum["FireCrawl"] = "firecrawl";
|
|
1964
|
+
KDocumentWebTypeEnum["Notion"] = "notion";
|
|
1965
|
+
})(exports.KDocumentWebTypeEnum || (exports.KDocumentWebTypeEnum = {}));
|
|
1966
|
+
var KDocumentWebTypeOptions = [
|
|
1967
|
+
{
|
|
1968
|
+
value: "playwright",
|
|
1969
|
+
label: {
|
|
1970
|
+
en_US: "Playwright"
|
|
1971
|
+
},
|
|
1972
|
+
icon: '<svg width="100%" height="100%" viewBox="0 0 400 400" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M136.444 221.556C123.558 225.213 115.104 231.625 109.535 238.032C114.869 233.364 122.014 229.08 131.652 226.348C141.51 223.554 149.92 223.574 156.869 224.915V219.481C150.941 218.939 144.145 219.371 136.444 221.556ZM108.946 175.876L61.0895 188.484C61.0895 188.484 61.9617 189.716 63.5767 191.36L104.153 180.668C104.153 180.668 103.578 188.077 98.5847 194.705C108.03 187.559 108.946 175.876 108.946 175.876ZM149.005 288.347C81.6582 306.486 46.0272 228.438 35.2396 187.928C30.2556 169.229 28.0799 155.067 27.5 145.928C27.4377 144.979 27.4665 144.179 27.5336 143.446C24.04 143.657 22.3674 145.473 22.7077 150.721C23.2876 159.855 25.4633 174.016 30.4473 192.721C41.2301 233.225 76.8659 311.273 144.213 293.134C158.872 289.185 169.885 281.992 178.152 272.81C170.532 279.692 160.995 285.112 149.005 288.347ZM161.661 128.11V132.903H188.077C187.535 131.206 186.989 129.677 186.447 128.11H161.661Z" fill="#2D4552"/>\n<path d="M193.981 167.584C205.861 170.958 212.144 179.287 215.465 186.658L228.711 190.42C228.711 190.42 226.904 164.623 203.57 157.995C181.741 151.793 168.308 170.124 166.674 172.496C173.024 167.972 182.297 164.268 193.981 167.584ZM299.422 186.777C277.573 180.547 264.145 198.916 262.535 201.255C268.89 196.736 278.158 193.031 289.837 196.362C301.698 199.741 307.976 208.06 311.307 215.436L324.572 219.212C324.572 219.212 322.736 193.41 299.422 186.777ZM286.262 254.795L176.072 223.99C176.072 223.99 177.265 230.038 181.842 237.869L274.617 263.805C282.255 259.386 286.262 254.795 286.262 254.795ZM209.867 321.102C122.618 297.71 133.166 186.543 147.284 133.865C153.097 112.156 159.073 96.0203 164.029 85.204C161.072 84.5953 158.623 86.1529 156.203 91.0746C150.941 101.747 144.212 119.124 137.7 143.45C123.586 196.127 113.038 307.29 200.283 330.682C241.406 341.699 273.442 324.955 297.323 298.659C274.655 319.19 245.714 330.701 209.867 321.102Z" fill="#2D4552"/>\n<path d="M161.661 262.296V239.863L99.3324 257.537C99.3324 257.537 103.938 230.777 136.444 221.556C146.302 218.762 154.713 218.781 161.661 220.123V128.11H192.869C189.471 117.61 186.184 109.526 183.423 103.909C178.856 94.612 174.174 100.775 163.545 109.665C156.059 115.919 137.139 129.261 108.668 136.933C80.1966 144.61 57.179 142.574 47.5752 140.911C33.9601 138.562 26.8387 135.572 27.5049 145.928C28.0847 155.062 30.2605 169.224 35.2445 187.928C46.0272 228.433 81.663 306.481 149.01 288.342C166.602 283.602 179.019 274.233 187.626 262.291H161.661V262.296ZM61.0848 188.484L108.946 175.876C108.946 175.876 107.551 194.288 89.6087 199.018C71.6614 203.743 61.0848 188.484 61.0848 188.484Z" fill="#E2574C"/>\n<path d="M341.786 129.174C329.345 131.355 299.498 134.072 262.612 124.185C225.716 114.304 201.236 97.0224 191.537 88.8994C177.788 77.3834 171.74 69.3802 165.788 81.4857C160.526 92.163 153.797 109.54 147.284 133.866C133.171 186.543 122.623 297.706 209.867 321.098C297.093 344.47 343.53 242.92 357.644 190.238C364.157 165.917 367.013 147.5 367.799 135.625C368.695 122.173 359.455 126.078 341.786 129.174ZM166.497 172.756C166.497 172.756 180.246 151.372 203.565 158C226.899 164.628 228.706 190.425 228.706 190.425L166.497 172.756ZM223.42 268.713C182.403 256.698 176.077 223.99 176.077 223.99L286.262 254.796C286.262 254.791 264.021 280.578 223.42 268.713ZM262.377 201.495C262.377 201.495 276.107 180.126 299.422 186.773C322.736 193.411 324.572 219.208 324.572 219.208L262.377 201.495Z" fill="#2EAD33"/>\n<path d="M139.88 246.04L99.3324 257.532C99.3324 257.532 103.737 232.44 133.607 222.496L110.647 136.33L108.663 136.933C80.1918 144.611 57.1742 142.574 47.5704 140.911C33.9554 138.563 26.834 135.572 27.5001 145.929C28.08 155.063 30.2557 169.224 35.2397 187.929C46.0225 228.433 81.6583 306.481 149.005 288.342L150.989 287.719L139.88 246.04ZM61.0848 188.485L108.946 175.876C108.946 175.876 107.551 194.288 89.6087 199.018C71.6615 203.743 61.0848 188.485 61.0848 188.485Z" fill="#D65348"/>\n<path d="M225.27 269.163L223.415 268.712C182.398 256.698 176.072 223.99 176.072 223.99L232.89 239.872L262.971 124.281L262.607 124.185C225.711 114.304 201.232 97.0224 191.532 88.8994C177.783 77.3834 171.735 69.3802 165.783 81.4857C160.526 92.163 153.797 109.54 147.284 133.866C133.171 186.543 122.623 297.706 209.867 321.097L211.655 321.5L225.27 269.163ZM166.497 172.756C166.497 172.756 180.246 151.372 203.565 158C226.899 164.628 228.706 190.425 228.706 190.425L166.497 172.756Z" fill="#1D8D22"/>\n<path d="M141.946 245.451L131.072 248.537C133.641 263.019 138.169 276.917 145.276 289.195C146.513 288.922 147.74 288.687 149 288.342C152.302 287.451 155.364 286.348 158.312 285.145C150.371 273.361 145.118 259.789 141.946 245.451ZM137.7 143.451C132.112 164.307 127.113 194.326 128.489 224.436C130.952 223.367 133.554 222.371 136.444 221.551L138.457 221.101C136.003 188.939 141.308 156.165 147.284 133.866C148.799 128.225 150.318 122.978 151.832 118.085C149.393 119.637 146.767 121.228 143.776 122.867C141.759 129.093 139.722 135.898 137.7 143.451Z" fill="#C04B41"/>\n</svg>'
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
value: "firecrawl",
|
|
1976
|
+
label: {
|
|
1977
|
+
en_US: "FireCrawl"
|
|
1978
|
+
},
|
|
1979
|
+
icon: "\uD83D\uDD25"
|
|
1980
|
+
}
|
|
1981
|
+
];
|
|
1982
|
+
|
|
1983
|
+
exports.WorkflowNodeTypeEnum = void 0;
|
|
1984
|
+
(function(WorkflowNodeTypeEnum) {
|
|
1985
|
+
/**
|
|
1986
|
+
* Trigger
|
|
1987
|
+
*/ WorkflowNodeTypeEnum["TRIGGER"] = "trigger";
|
|
1988
|
+
/**
|
|
1989
|
+
* State Variable Assigner
|
|
1990
|
+
*/ WorkflowNodeTypeEnum["ASSIGNER"] = "assigner";
|
|
1991
|
+
/**
|
|
1992
|
+
* Router
|
|
1993
|
+
*/ WorkflowNodeTypeEnum["IF_ELSE"] = "if-else";
|
|
1994
|
+
WorkflowNodeTypeEnum["LIST_OPERATOR"] = "list-operator";
|
|
1995
|
+
WorkflowNodeTypeEnum["VARIABLE_AGGREGATOR"] = "variable-aggregator";
|
|
1996
|
+
// SPLITTER = 'splitter',
|
|
1997
|
+
WorkflowNodeTypeEnum["ITERATING"] = "iterating";
|
|
1998
|
+
WorkflowNodeTypeEnum["ANSWER"] = "answer";
|
|
1999
|
+
WorkflowNodeTypeEnum["CODE"] = "code";
|
|
2000
|
+
WorkflowNodeTypeEnum["HTTP"] = "http";
|
|
2001
|
+
WorkflowNodeTypeEnum["KNOWLEDGE"] = "knowledge";
|
|
2002
|
+
WorkflowNodeTypeEnum["SUBFLOW"] = "subflow";
|
|
2003
|
+
WorkflowNodeTypeEnum["TEMPLATE"] = "template";
|
|
2004
|
+
WorkflowNodeTypeEnum["CLASSIFIER"] = "classifier";
|
|
2005
|
+
WorkflowNodeTypeEnum["TOOL"] = "tool";
|
|
2006
|
+
WorkflowNodeTypeEnum["AGENT_TOOL"] = "agent-tool";
|
|
2007
|
+
WorkflowNodeTypeEnum["NOTE"] = "note";
|
|
2008
|
+
/**
|
|
2009
|
+
* Task node, distribute tasks to sub-agents
|
|
2010
|
+
*/ WorkflowNodeTypeEnum["TASK"] = "task";
|
|
2011
|
+
// Knowledge Pipeline nodes
|
|
2012
|
+
WorkflowNodeTypeEnum["SOURCE"] = "source";
|
|
2013
|
+
WorkflowNodeTypeEnum["PROCESSOR"] = "processor";
|
|
2014
|
+
WorkflowNodeTypeEnum["CHUNKER"] = "chunker";
|
|
2015
|
+
WorkflowNodeTypeEnum["UNDERSTANDING"] = "understanding";
|
|
2016
|
+
WorkflowNodeTypeEnum["KNOWLEDGE_BASE"] = "knowledgebase";
|
|
2017
|
+
})(exports.WorkflowNodeTypeEnum || (exports.WorkflowNodeTypeEnum = {}));
|
|
2018
|
+
exports.VariableOperationEnum = void 0;
|
|
2019
|
+
(function(VariableOperationEnum) {
|
|
2020
|
+
VariableOperationEnum["APPEND"] = "append";
|
|
2021
|
+
VariableOperationEnum["EXTEND"] = "extend";
|
|
2022
|
+
VariableOperationEnum["OVERWRITE"] = "overwrite";
|
|
2023
|
+
VariableOperationEnum["CLEAR"] = "clear";
|
|
2024
|
+
})(exports.VariableOperationEnum || (exports.VariableOperationEnum = {}));
|
|
2025
|
+
/**
|
|
2026
|
+
* The parameter name that represents the entire current element in array
|
|
2027
|
+
*/ var IteratingItemParameterName = "$item";
|
|
2028
|
+
var IteratingIndexParameterName = "$index";
|
|
2029
|
+
exports.WorkflowLogicalOperator = void 0;
|
|
2030
|
+
(function(WorkflowLogicalOperator) {
|
|
2031
|
+
WorkflowLogicalOperator["AND"] = "and";
|
|
2032
|
+
WorkflowLogicalOperator["OR"] = "or";
|
|
2033
|
+
})(exports.WorkflowLogicalOperator || (exports.WorkflowLogicalOperator = {}));
|
|
2034
|
+
exports.WorkflowComparisonOperator = void 0;
|
|
2035
|
+
(function(WorkflowComparisonOperator) {
|
|
2036
|
+
WorkflowComparisonOperator["CONTAINS"] = "contains";
|
|
2037
|
+
WorkflowComparisonOperator["NOT_CONTAINS"] = "not-contains";
|
|
2038
|
+
WorkflowComparisonOperator["EQUAL"] = "equal";
|
|
2039
|
+
WorkflowComparisonOperator["NOT_EQUAL"] = "not-equal";
|
|
2040
|
+
WorkflowComparisonOperator["GT"] = "gt";
|
|
2041
|
+
WorkflowComparisonOperator["LT"] = "lt";
|
|
2042
|
+
WorkflowComparisonOperator["GE"] = "ge";
|
|
2043
|
+
WorkflowComparisonOperator["LE"] = "le";
|
|
2044
|
+
WorkflowComparisonOperator["STARTS_WITH"] = "starts-with";
|
|
2045
|
+
WorkflowComparisonOperator["ENDS_WITH"] = "ends-with";
|
|
2046
|
+
WorkflowComparisonOperator["EMPTY"] = "empty";
|
|
2047
|
+
WorkflowComparisonOperator["NOT_EMPTY"] = "not-empty";
|
|
2048
|
+
WorkflowComparisonOperator["IS_TRUE"] = "is-true";
|
|
2049
|
+
WorkflowComparisonOperator["IS_FALSE"] = "is-false";
|
|
2050
|
+
WorkflowComparisonOperator["LIKE"] = "like";
|
|
2051
|
+
WorkflowComparisonOperator["NOT_LIKE"] = "not-like";
|
|
2052
|
+
})(exports.WorkflowComparisonOperator || (exports.WorkflowComparisonOperator = {}));
|
|
2053
|
+
function genXpertTriggerKey() {
|
|
2054
|
+
return letterStartSUID("Trigger_");
|
|
2055
|
+
}
|
|
2056
|
+
function genListOperatorKey() {
|
|
2057
|
+
return letterStartSUID("ListOperator_");
|
|
2058
|
+
}
|
|
2059
|
+
function genVariableAggregatorKey() {
|
|
2060
|
+
return letterStartSUID("VariableAggregator_");
|
|
2061
|
+
}
|
|
2062
|
+
function isAgentKey(key) {
|
|
2063
|
+
return key === null || key === void 0 ? void 0 : key.toLowerCase().startsWith("agent_");
|
|
2064
|
+
}
|
|
2065
|
+
function isRouterKey(key) {
|
|
2066
|
+
return key === null || key === void 0 ? void 0 : key.toLowerCase().startsWith("router_");
|
|
2067
|
+
}
|
|
2068
|
+
function isIteratingKey(key) {
|
|
2069
|
+
return key === null || key === void 0 ? void 0 : key.toLowerCase().startsWith("iterating_");
|
|
2070
|
+
}
|
|
2071
|
+
function isWorkflowKey(key) {
|
|
2072
|
+
return isRouterKey(key) || isIteratingKey(key);
|
|
2073
|
+
}
|
|
2074
|
+
function workflowNodeIdentifier(node) {
|
|
2075
|
+
return node.title || node.key;
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2078
|
+
exports.XpertTypeEnum = void 0;
|
|
2079
|
+
(function(XpertTypeEnum) {
|
|
2080
|
+
/**
|
|
2081
|
+
* Chat Agents
|
|
2082
|
+
*/ XpertTypeEnum["Agent"] = "agent";
|
|
2083
|
+
/**
|
|
2084
|
+
* Copilot in UI
|
|
2085
|
+
*/ XpertTypeEnum["Copilot"] = "copilot";
|
|
2086
|
+
/**
|
|
2087
|
+
* Knowledge Workflow
|
|
2088
|
+
*/ XpertTypeEnum["Knowledge"] = "knowledge";
|
|
2089
|
+
})(exports.XpertTypeEnum || (exports.XpertTypeEnum = {}));
|
|
2090
|
+
exports.LongTermMemoryTypeEnum = void 0;
|
|
2091
|
+
(function(LongTermMemoryTypeEnum) {
|
|
2092
|
+
LongTermMemoryTypeEnum["PROFILE"] = "profile";
|
|
2093
|
+
LongTermMemoryTypeEnum["QA"] = "qa";
|
|
2094
|
+
})(exports.LongTermMemoryTypeEnum || (exports.LongTermMemoryTypeEnum = {}));
|
|
2095
|
+
exports.XpertParameterTypeEnum = void 0;
|
|
2096
|
+
(function(XpertParameterTypeEnum) {
|
|
2097
|
+
/**
|
|
2098
|
+
* @deprecated use string
|
|
2099
|
+
*/ XpertParameterTypeEnum["TEXT"] = "text";
|
|
2100
|
+
/**
|
|
2101
|
+
* @deprecated use string
|
|
2102
|
+
*/ XpertParameterTypeEnum["PARAGRAPH"] = "paragraph";
|
|
2103
|
+
XpertParameterTypeEnum["STRING"] = "string";
|
|
2104
|
+
XpertParameterTypeEnum["NUMBER"] = "number";
|
|
2105
|
+
XpertParameterTypeEnum["OBJECT"] = "object";
|
|
2106
|
+
XpertParameterTypeEnum["SELECT"] = "select";
|
|
2107
|
+
XpertParameterTypeEnum["ARRAY_STRING"] = "array[string]";
|
|
2108
|
+
XpertParameterTypeEnum["ARRAY"] = "array[object]";
|
|
2109
|
+
XpertParameterTypeEnum["ARRAY_FILE"] = "array[file]";
|
|
2110
|
+
XpertParameterTypeEnum["ARRAY_DOCUMENT"] = "array[document]";
|
|
2111
|
+
XpertParameterTypeEnum["BOOLEAN"] = "boolean";
|
|
2112
|
+
XpertParameterTypeEnum["SECRET"] = "secret";
|
|
2113
|
+
})(exports.XpertParameterTypeEnum || (exports.XpertParameterTypeEnum = {}));
|
|
2114
|
+
exports.ChatMessageTypeEnum = void 0;
|
|
2115
|
+
(function(ChatMessageTypeEnum) {
|
|
2116
|
+
// LOG = 'log',
|
|
2117
|
+
ChatMessageTypeEnum["MESSAGE"] = "message";
|
|
2118
|
+
ChatMessageTypeEnum["EVENT"] = "event";
|
|
2119
|
+
})(exports.ChatMessageTypeEnum || (exports.ChatMessageTypeEnum = {}));
|
|
2120
|
+
exports.ChatMessageEventTypeEnum = void 0;
|
|
2121
|
+
(function(ChatMessageEventTypeEnum) {
|
|
2122
|
+
ChatMessageEventTypeEnum["ON_CONVERSATION_START"] = "on_conversation_start";
|
|
2123
|
+
ChatMessageEventTypeEnum["ON_CONVERSATION_END"] = "on_conversation_end";
|
|
2124
|
+
ChatMessageEventTypeEnum["ON_MESSAGE_START"] = "on_message_start";
|
|
2125
|
+
ChatMessageEventTypeEnum["ON_MESSAGE_END"] = "on_message_end";
|
|
2126
|
+
ChatMessageEventTypeEnum["ON_TOOL_START"] = "on_tool_start";
|
|
2127
|
+
ChatMessageEventTypeEnum["ON_TOOL_END"] = "on_tool_end";
|
|
2128
|
+
ChatMessageEventTypeEnum["ON_TOOL_ERROR"] = "on_tool_error";
|
|
2129
|
+
/**
|
|
2130
|
+
* Step message in tool call
|
|
2131
|
+
*/ ChatMessageEventTypeEnum["ON_TOOL_MESSAGE"] = "on_tool_message";
|
|
2132
|
+
ChatMessageEventTypeEnum["ON_AGENT_START"] = "on_agent_start";
|
|
2133
|
+
ChatMessageEventTypeEnum["ON_AGENT_END"] = "on_agent_end";
|
|
2134
|
+
ChatMessageEventTypeEnum["ON_RETRIEVER_START"] = "on_retriever_start";
|
|
2135
|
+
ChatMessageEventTypeEnum["ON_RETRIEVER_END"] = "on_retriever_end";
|
|
2136
|
+
ChatMessageEventTypeEnum["ON_RETRIEVER_ERROR"] = "on_retriever_error";
|
|
2137
|
+
ChatMessageEventTypeEnum["ON_INTERRUPT"] = "on_interrupt";
|
|
2138
|
+
ChatMessageEventTypeEnum["ON_ERROR"] = "on_error";
|
|
2139
|
+
ChatMessageEventTypeEnum["ON_CHAT_EVENT"] = "on_chat_event";
|
|
2140
|
+
})(exports.ChatMessageEventTypeEnum || (exports.ChatMessageEventTypeEnum = {}));
|
|
2141
|
+
|
|
2142
|
+
function agentLabel(agent) {
|
|
2143
|
+
return agent.title || agent.name || agent.key;
|
|
2144
|
+
}
|
|
2145
|
+
function agentUniqueName(agent) {
|
|
2146
|
+
return agent ? convertToUrlPath(agent.name) || agent.key : null;
|
|
2147
|
+
}
|
|
2148
|
+
function convertToUrlPath(title) {
|
|
2149
|
+
return title === null || title === void 0 ? void 0 : title.toLowerCase() // Convert to lowercase
|
|
2150
|
+
.replace(/\s+/g, "-") // Replace spaces with -
|
|
2151
|
+
.replace(/[^a-z0-9-]/g, ""); // Remove non-alphanumeric characters
|
|
2152
|
+
}
|
|
2153
|
+
var VariableOperations = [
|
|
2154
|
+
{
|
|
2155
|
+
value: "append",
|
|
2156
|
+
label: {
|
|
2157
|
+
zh_Hans: "追加",
|
|
2158
|
+
en_US: "Append"
|
|
2159
|
+
}
|
|
2160
|
+
},
|
|
2161
|
+
{
|
|
2162
|
+
value: "extends",
|
|
2163
|
+
label: {
|
|
2164
|
+
zh_Hans: "扩展",
|
|
2165
|
+
en_US: "Extend"
|
|
2166
|
+
}
|
|
2167
|
+
},
|
|
2168
|
+
{
|
|
2169
|
+
value: "overwrite",
|
|
2170
|
+
label: {
|
|
2171
|
+
zh_Hans: "覆盖",
|
|
2172
|
+
en_US: "Overwrite"
|
|
2173
|
+
}
|
|
2174
|
+
},
|
|
2175
|
+
{
|
|
2176
|
+
value: "clear",
|
|
2177
|
+
label: {
|
|
2178
|
+
zh_Hans: "清除",
|
|
2179
|
+
en_US: "Clear"
|
|
2180
|
+
}
|
|
2181
|
+
}
|
|
2182
|
+
];
|
|
2183
|
+
|
|
2184
|
+
function _array_like_to_array$4(arr, len) {
|
|
2185
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
2186
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2187
|
+
return arr2;
|
|
2188
|
+
}
|
|
2189
|
+
function _array_with_holes$3(arr) {
|
|
2190
|
+
if (Array.isArray(arr)) return arr;
|
|
2191
|
+
}
|
|
2192
|
+
function _define_property$3(obj, key, value) {
|
|
2193
|
+
if (key in obj) {
|
|
2194
|
+
Object.defineProperty(obj, key, {
|
|
2195
|
+
value: value,
|
|
2196
|
+
enumerable: true,
|
|
2197
|
+
configurable: true,
|
|
2198
|
+
writable: true
|
|
2199
|
+
});
|
|
2200
|
+
} else {
|
|
2201
|
+
obj[key] = value;
|
|
2202
|
+
}
|
|
2203
|
+
return obj;
|
|
2204
|
+
}
|
|
2205
|
+
function _iterable_to_array_limit$2(arr, i) {
|
|
2206
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
2207
|
+
if (_i == null) return;
|
|
2208
|
+
var _arr = [];
|
|
2209
|
+
var _n = true;
|
|
2210
|
+
var _d = false;
|
|
2211
|
+
var _s, _e;
|
|
2212
|
+
try {
|
|
2213
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
2214
|
+
_arr.push(_s.value);
|
|
2215
|
+
if (i && _arr.length === i) break;
|
|
2216
|
+
}
|
|
2217
|
+
} catch (err) {
|
|
2218
|
+
_d = true;
|
|
2219
|
+
_e = err;
|
|
2220
|
+
} finally{
|
|
2221
|
+
try {
|
|
2222
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
2223
|
+
} finally{
|
|
2224
|
+
if (_d) throw _e;
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
2227
|
+
return _arr;
|
|
2228
|
+
}
|
|
2229
|
+
function _non_iterable_rest$3() {
|
|
2230
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2231
|
+
}
|
|
2232
|
+
function _object_spread$2(target) {
|
|
2233
|
+
for(var i = 1; i < arguments.length; i++){
|
|
2234
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
2235
|
+
var ownKeys = Object.keys(source);
|
|
2236
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
2237
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
2238
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
2239
|
+
}));
|
|
2240
|
+
}
|
|
2241
|
+
ownKeys.forEach(function(key) {
|
|
2242
|
+
_define_property$3(target, key, source[key]);
|
|
2243
|
+
});
|
|
2244
|
+
}
|
|
2245
|
+
return target;
|
|
2246
|
+
}
|
|
2247
|
+
function ownKeys$1(object, enumerableOnly) {
|
|
2248
|
+
var keys = Object.keys(object);
|
|
2249
|
+
if (Object.getOwnPropertySymbols) {
|
|
2250
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
2251
|
+
keys.push.apply(keys, symbols);
|
|
2252
|
+
}
|
|
2253
|
+
return keys;
|
|
2254
|
+
}
|
|
2255
|
+
function _object_spread_props$1(target, source) {
|
|
2256
|
+
source = source != null ? source : {};
|
|
2257
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
2258
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2259
|
+
} else {
|
|
2260
|
+
ownKeys$1(Object(source)).forEach(function(key) {
|
|
2261
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2262
|
+
});
|
|
2263
|
+
}
|
|
2264
|
+
return target;
|
|
2265
|
+
}
|
|
2266
|
+
function _sliced_to_array$2(arr, i) {
|
|
2267
|
+
return _array_with_holes$3(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$4(arr, i) || _non_iterable_rest$3();
|
|
2268
|
+
}
|
|
2269
|
+
function _unsupported_iterable_to_array$4(o, minLen) {
|
|
2270
|
+
if (!o) return;
|
|
2271
|
+
if (typeof o === "string") return _array_like_to_array$4(o, minLen);
|
|
2272
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2273
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2274
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2275
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen);
|
|
2276
|
+
}
|
|
2277
|
+
/**
|
|
2278
|
+
* @deprecated can use getCurrentTaskInput instead?
|
|
2279
|
+
*/ var CONTEXT_VARIABLE_CURRENTSTATE = "currentState";
|
|
2280
|
+
var STATE_VARIABLE_SYS = "sys";
|
|
2281
|
+
var STATE_VARIABLE_HUMAN = "human";
|
|
2282
|
+
var GRAPH_NODE_SUMMARIZE_CONVERSATION = "summarize_conversation";
|
|
2283
|
+
var GRAPH_NODE_TITLE_CONVERSATION = "title_conversation";
|
|
2284
|
+
var STATE_VARIABLE_FILES = "files";
|
|
2285
|
+
var STATE_VARIABLE_INPUT = "input";
|
|
2286
|
+
var STATE_VARIABLE_TITLE_CHANNEL = channelName("title");
|
|
2287
|
+
// Helpers
|
|
2288
|
+
function channelName(name) {
|
|
2289
|
+
return name.toLowerCase() + "_channel";
|
|
2290
|
+
}
|
|
2291
|
+
function messageContentText(content) {
|
|
2292
|
+
return typeof content === "string" ? content : content.type === "text" ? content.text : "";
|
|
2293
|
+
}
|
|
2294
|
+
function getWorkspaceFromRunnable(configurable) {
|
|
2295
|
+
return (configurable === null || configurable === void 0 ? void 0 : configurable.projectId) ? {
|
|
2296
|
+
type: "project",
|
|
2297
|
+
id: ""
|
|
2298
|
+
} : (configurable === null || configurable === void 0 ? void 0 : configurable.thread_id) ? {
|
|
2299
|
+
type: "conversation",
|
|
2300
|
+
id: configurable.thread_id
|
|
2301
|
+
} : {};
|
|
2302
|
+
}
|
|
2303
|
+
function getToolCallFromConfig(config) {
|
|
2304
|
+
var _config_configurable;
|
|
2305
|
+
return (config === null || config === void 0 ? void 0 : config.toolCall) || (config === null || config === void 0 ? void 0 : (_config_configurable = config.configurable) === null || _config_configurable === void 0 ? void 0 : _config_configurable.toolCall);
|
|
2306
|
+
}
|
|
2307
|
+
function getToolCallIdFromConfig(config) {
|
|
2308
|
+
var _config_metadata, _config_configurable, _getToolCallFromConfig;
|
|
2309
|
+
return ((_config_metadata = config.metadata) === null || _config_metadata === void 0 ? void 0 : _config_metadata.tool_call_id) || (config === null || config === void 0 ? void 0 : (_config_configurable = config.configurable) === null || _config_configurable === void 0 ? void 0 : _config_configurable.tool_call_id) || ((_getToolCallFromConfig = getToolCallFromConfig(config)) === null || _getToolCallFromConfig === void 0 ? void 0 : _getToolCallFromConfig.id);
|
|
2310
|
+
}
|
|
2311
|
+
/**
|
|
2312
|
+
* Compute long-term memory namespace:
|
|
2313
|
+
* 1. When a user talks to a digital expert individually, use `ExpertId` + `UserId` to store memory
|
|
2314
|
+
* 2. When talking to a digital expert in a project, all users and digital experts share `ProjectId` to store memory
|
|
2315
|
+
*
|
|
2316
|
+
* @param config
|
|
2317
|
+
* @returns
|
|
2318
|
+
*/ function getStoreNamespace(config) {
|
|
2319
|
+
var configurable = config.configurable;
|
|
2320
|
+
return configurableStoreNamespace(configurable);
|
|
2321
|
+
}
|
|
2322
|
+
function configurableStoreNamespace(configurable) {
|
|
2323
|
+
return (configurable === null || configurable === void 0 ? void 0 : configurable.projectId) ? [
|
|
2324
|
+
configurable === null || configurable === void 0 ? void 0 : configurable.projectId
|
|
2325
|
+
] : (configurable === null || configurable === void 0 ? void 0 : configurable.userId) ? [
|
|
2326
|
+
configurable.xpertId,
|
|
2327
|
+
configurable.userId
|
|
2328
|
+
] : [];
|
|
2329
|
+
}
|
|
2330
|
+
/**
|
|
2331
|
+
* Set value into variable of state.
|
|
2332
|
+
*
|
|
2333
|
+
* @param state
|
|
2334
|
+
* @param varName
|
|
2335
|
+
* @param value
|
|
2336
|
+
* @returns
|
|
2337
|
+
*/ function setStateVariable(state, varName, value) {
|
|
2338
|
+
var _varName_split = _sliced_to_array$2(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
|
|
2339
|
+
if (variableName) {
|
|
2340
|
+
var _state_agentChannelName;
|
|
2341
|
+
state[agentChannelName] = _object_spread_props$1(_object_spread$2({}, (_state_agentChannelName = state[agentChannelName]) !== null && _state_agentChannelName !== void 0 ? _state_agentChannelName : {}), _define_property$3({}, variableName, value));
|
|
2342
|
+
} else {
|
|
2343
|
+
state[agentChannelName] = value;
|
|
2344
|
+
}
|
|
2345
|
+
return state;
|
|
2346
|
+
}
|
|
2347
|
+
/**
|
|
2348
|
+
* Get agent variable group from graph.
|
|
2349
|
+
*
|
|
2350
|
+
* @param key
|
|
2351
|
+
* @param graph
|
|
2352
|
+
* @returns
|
|
2353
|
+
*/ function getAgentVarGroup(key, graph) {
|
|
2354
|
+
var _agent_options;
|
|
2355
|
+
var node = graph.nodes.find(function(_) {
|
|
2356
|
+
return _.type === "agent" && _.key === key;
|
|
2357
|
+
});
|
|
2358
|
+
var variables = [];
|
|
2359
|
+
var varGroup = {
|
|
2360
|
+
group: {
|
|
2361
|
+
name: channelName(node.key),
|
|
2362
|
+
description: {
|
|
2363
|
+
en_US: agentLabel(node.entity)
|
|
2364
|
+
}
|
|
2365
|
+
},
|
|
2366
|
+
variables: variables
|
|
2367
|
+
};
|
|
2368
|
+
variables.push({
|
|
2369
|
+
name: "messages",
|
|
2370
|
+
type: exports.XpertParameterTypeEnum.ARRAY,
|
|
2371
|
+
description: {
|
|
2372
|
+
zh_Hans: "消息列表",
|
|
2373
|
+
en_US: "Message List"
|
|
2374
|
+
}
|
|
2375
|
+
});
|
|
2376
|
+
variables.push({
|
|
2377
|
+
name: "output",
|
|
2378
|
+
type: exports.XpertParameterTypeEnum.STRING,
|
|
2379
|
+
description: {
|
|
2380
|
+
zh_Hans: "输出",
|
|
2381
|
+
en_US: "Output"
|
|
2382
|
+
}
|
|
2383
|
+
});
|
|
2384
|
+
variables.push({
|
|
2385
|
+
name: "error",
|
|
2386
|
+
type: exports.XpertParameterTypeEnum.STRING,
|
|
2387
|
+
description: {
|
|
2388
|
+
zh_Hans: "错误",
|
|
2389
|
+
en_US: "Error"
|
|
2390
|
+
}
|
|
2391
|
+
});
|
|
2392
|
+
var agent = node.entity;
|
|
2393
|
+
if (((_agent_options = agent.options) === null || _agent_options === void 0 ? void 0 : _agent_options.structuredOutputMethod) && agent.outputVariables) {
|
|
2394
|
+
agent.outputVariables.forEach(function(variable) {
|
|
2395
|
+
variables.push({
|
|
2396
|
+
name: variable.name || "",
|
|
2397
|
+
type: variable.type,
|
|
2398
|
+
description: variable.description,
|
|
2399
|
+
item: variable.item
|
|
2400
|
+
});
|
|
2401
|
+
});
|
|
2402
|
+
}
|
|
2403
|
+
return varGroup;
|
|
2404
|
+
}
|
|
2405
|
+
// Swarm
|
|
2406
|
+
/**
|
|
2407
|
+
* Get swarm partners of agent in team
|
|
2408
|
+
*
|
|
2409
|
+
* @param graph
|
|
2410
|
+
* @param agentKey
|
|
2411
|
+
*/ function getSwarmPartners(graph, agentKey, partners, leaderKey) {
|
|
2412
|
+
var connections = graph.connections.filter(function(conn) {
|
|
2413
|
+
return conn.type === "agent" && conn.to === agentKey && (leaderKey ? conn.from !== leaderKey : true) && graph.connections.some(function(_) {
|
|
2414
|
+
return _.type === "agent" && _.to === conn.from && _.from === agentKey;
|
|
2415
|
+
});
|
|
2416
|
+
});
|
|
2417
|
+
connections.forEach(function(conn) {
|
|
2418
|
+
var key = conn.from;
|
|
2419
|
+
if (partners.indexOf(key) < 0) {
|
|
2420
|
+
partners.push(key);
|
|
2421
|
+
getSwarmPartners(graph, key, partners);
|
|
2422
|
+
}
|
|
2423
|
+
});
|
|
2424
|
+
return partners;
|
|
2425
|
+
}
|
|
2426
|
+
function getWorkflowTriggers(graph, from) {
|
|
2427
|
+
return graph.nodes.filter(function(node) {
|
|
2428
|
+
return node.type === "workflow" && node.entity.type === exports.WorkflowNodeTypeEnum.TRIGGER && node.entity.from === from;
|
|
2429
|
+
});
|
|
2430
|
+
}
|
|
2431
|
+
|
|
2432
|
+
exports.KnowledgeProviderEnum = void 0;
|
|
2433
|
+
(function(KnowledgeProviderEnum) {
|
|
2434
|
+
KnowledgeProviderEnum["Internal"] = "internal";
|
|
2435
|
+
})(exports.KnowledgeProviderEnum || (exports.KnowledgeProviderEnum = {}));
|
|
2436
|
+
exports.KnowledgebaseTypeEnum = void 0;
|
|
2437
|
+
(function(KnowledgebaseTypeEnum) {
|
|
2438
|
+
KnowledgebaseTypeEnum["Standard"] = "standard";
|
|
2439
|
+
KnowledgebaseTypeEnum["External"] = "external";
|
|
2440
|
+
})(exports.KnowledgebaseTypeEnum || (exports.KnowledgebaseTypeEnum = {}));
|
|
2441
|
+
exports.KnowledgeStructureEnum = void 0;
|
|
2442
|
+
(function(KnowledgeStructureEnum) {
|
|
2443
|
+
KnowledgeStructureEnum["General"] = "general";
|
|
2444
|
+
KnowledgeStructureEnum["ParentChild"] = "parent-child";
|
|
2445
|
+
KnowledgeStructureEnum["QA"] = "qa";
|
|
2446
|
+
})(exports.KnowledgeStructureEnum || (exports.KnowledgeStructureEnum = {}));
|
|
2447
|
+
exports.KnowledgebasePermission = void 0;
|
|
2448
|
+
(function(KnowledgebasePermission) {
|
|
2449
|
+
/**
|
|
2450
|
+
* Only visible to you
|
|
2451
|
+
* @default
|
|
2452
|
+
*/ KnowledgebasePermission["Private"] = "private";
|
|
2453
|
+
/**
|
|
2454
|
+
* Visible to all members in the organization
|
|
2455
|
+
*/ KnowledgebasePermission["Organization"] = "organization";
|
|
2456
|
+
/**
|
|
2457
|
+
* Visible to all members in the tenant
|
|
2458
|
+
*/ KnowledgebasePermission["Public"] = "public";
|
|
2459
|
+
})(exports.KnowledgebasePermission || (exports.KnowledgebasePermission = {}));
|
|
2460
|
+
/**
|
|
2461
|
+
* Channel name for knowledgebase pipeline
|
|
2462
|
+
*/ var KnowledgebaseChannel = channelName("knowledgebase");
|
|
2463
|
+
/**
|
|
2464
|
+
* Task ID of a knowledgebase run
|
|
2465
|
+
*/ var KnowledgeTask = "task_id";
|
|
2466
|
+
/**
|
|
2467
|
+
* Specify the data source to run
|
|
2468
|
+
*/ var KNOWLEDGE_SOURCES_NAME = "sources";
|
|
2469
|
+
var KNOWLEDGE_DOCUMENTS_NAME = "documents";
|
|
2470
|
+
var KNOWLEDGE_FOLDER_ID_NAME = "folder_id";
|
|
2471
|
+
var KNOWLEDGE_STAGE_NAME = "stage";
|
|
2472
|
+
|
|
2473
|
+
exports.DocumentSourceProviderCategoryEnum = void 0;
|
|
2474
|
+
(function(DocumentSourceProviderCategoryEnum) {
|
|
2475
|
+
/**
|
|
2476
|
+
* Local files uploaded directly to the system
|
|
2477
|
+
*/ DocumentSourceProviderCategoryEnum["LocalFile"] = "local-file";
|
|
2478
|
+
/**
|
|
2479
|
+
* Remote file systems, e.g. S3, FTP, etc.
|
|
2480
|
+
*/ DocumentSourceProviderCategoryEnum["FileSystem"] = "file-system";
|
|
2481
|
+
/**
|
|
2482
|
+
* Online documents, e.g. public URLs, Google Docs, etc.
|
|
2483
|
+
*/ DocumentSourceProviderCategoryEnum["OnlineDocument"] = "online-document";
|
|
2484
|
+
/**
|
|
2485
|
+
* Web crawling from public websites
|
|
2486
|
+
*/ DocumentSourceProviderCategoryEnum["WebCrawl"] = "web-crawl";
|
|
2487
|
+
/**
|
|
2488
|
+
* Database connections, e.g. MySQL, PostgreSQL, etc.
|
|
2489
|
+
* @deprecated Planning
|
|
2490
|
+
*/ DocumentSourceProviderCategoryEnum["Database"] = "database";
|
|
2491
|
+
})(exports.DocumentSourceProviderCategoryEnum || (exports.DocumentSourceProviderCategoryEnum = {}));
|
|
2492
|
+
function genPipelineSourceKey() {
|
|
2493
|
+
return letterStartSUID("Source_");
|
|
2494
|
+
}
|
|
2495
|
+
function genPipelineProcessorKey() {
|
|
2496
|
+
return letterStartSUID("Processor_");
|
|
2497
|
+
}
|
|
2498
|
+
function genPipelineChunkerKey() {
|
|
2499
|
+
return letterStartSUID("Chunker_");
|
|
2500
|
+
}
|
|
2501
|
+
function genPipelineUnderstandingKey() {
|
|
2502
|
+
return letterStartSUID("Understanding_");
|
|
2503
|
+
}
|
|
2504
|
+
function genPipelineKnowledgeBaseKey() {
|
|
2505
|
+
return letterStartSUID("KnowledgeBase_");
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
function _define_property$2(obj, key, value) {
|
|
2509
|
+
if (key in obj) {
|
|
2510
|
+
Object.defineProperty(obj, key, {
|
|
2511
|
+
value: value,
|
|
2512
|
+
enumerable: true,
|
|
2513
|
+
configurable: true,
|
|
2514
|
+
writable: true
|
|
2515
|
+
});
|
|
2516
|
+
} else {
|
|
2517
|
+
obj[key] = value;
|
|
2518
|
+
}
|
|
2519
|
+
return obj;
|
|
2520
|
+
}
|
|
2521
|
+
function _object_spread$1(target) {
|
|
2522
|
+
for(var i = 1; i < arguments.length; i++){
|
|
2523
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
2524
|
+
var ownKeys = Object.keys(source);
|
|
2525
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
2526
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
2527
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
2528
|
+
}));
|
|
2529
|
+
}
|
|
2530
|
+
ownKeys.forEach(function(key) {
|
|
2531
|
+
_define_property$2(target, key, source[key]);
|
|
2532
|
+
});
|
|
2533
|
+
}
|
|
2534
|
+
return target;
|
|
2535
|
+
}
|
|
2536
|
+
exports.DocumentTypeEnum = void 0;
|
|
2537
|
+
(function(DocumentTypeEnum) {
|
|
2538
|
+
/**
|
|
2539
|
+
* Folder, parent of other documents
|
|
2540
|
+
*/ DocumentTypeEnum["FOLDER"] = "folder";
|
|
2541
|
+
/**
|
|
2542
|
+
* Local files
|
|
2543
|
+
* @deprecated use DocumentSourceProviderCategoryEnum local file type instead
|
|
2544
|
+
*/ DocumentTypeEnum["FILE"] = "file";
|
|
2545
|
+
})(exports.DocumentTypeEnum || (exports.DocumentTypeEnum = {}));
|
|
2546
|
+
var KDocumentSourceType = _object_spread$1({}, exports.DocumentSourceProviderCategoryEnum, exports.DocumentTypeEnum);
|
|
2547
|
+
exports.KBDocumentCategoryEnum = void 0;
|
|
2548
|
+
(function(KBDocumentCategoryEnum) {
|
|
2549
|
+
KBDocumentCategoryEnum["Text"] = "text";
|
|
2550
|
+
KBDocumentCategoryEnum["Image"] = "image";
|
|
2551
|
+
KBDocumentCategoryEnum["Audio"] = "audio";
|
|
2552
|
+
KBDocumentCategoryEnum["Video"] = "video";
|
|
2553
|
+
KBDocumentCategoryEnum["Sheet"] = "sheet";
|
|
2554
|
+
KBDocumentCategoryEnum["Other"] = "other";
|
|
2555
|
+
})(exports.KBDocumentCategoryEnum || (exports.KBDocumentCategoryEnum = {}));
|
|
2556
|
+
exports.KBDocumentStatusEnum = void 0;
|
|
2557
|
+
(function(KBDocumentStatusEnum) {
|
|
2558
|
+
KBDocumentStatusEnum["WAITING"] = "waiting";
|
|
2559
|
+
KBDocumentStatusEnum["VALIDATE"] = "validate";
|
|
2560
|
+
KBDocumentStatusEnum["RUNNING"] = "running";
|
|
2561
|
+
KBDocumentStatusEnum["TRANSFORMED"] = "transformed";
|
|
2562
|
+
KBDocumentStatusEnum["SPLITTED"] = "splitted";
|
|
2563
|
+
KBDocumentStatusEnum["UNDERSTOOD"] = "understood";
|
|
2564
|
+
KBDocumentStatusEnum["EMBEDDING"] = "embedding";
|
|
2565
|
+
KBDocumentStatusEnum["CANCEL"] = "cancel";
|
|
2566
|
+
KBDocumentStatusEnum["FINISH"] = "finish";
|
|
2567
|
+
KBDocumentStatusEnum["ERROR"] = "error";
|
|
2568
|
+
})(exports.KBDocumentStatusEnum || (exports.KBDocumentStatusEnum = {}));
|
|
2569
|
+
function isDocumentSheet(type) {
|
|
2570
|
+
return [
|
|
2571
|
+
"csv",
|
|
2572
|
+
"xls",
|
|
2573
|
+
"xlsx",
|
|
2574
|
+
"ods",
|
|
2575
|
+
"vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
2576
|
+
].includes(type);
|
|
2577
|
+
}
|
|
2578
|
+
function isImageType(type) {
|
|
2579
|
+
return [
|
|
2580
|
+
"jpg",
|
|
2581
|
+
"jpeg",
|
|
2582
|
+
"png",
|
|
2583
|
+
"gif",
|
|
2584
|
+
"bmp",
|
|
2585
|
+
"tiff",
|
|
2586
|
+
"svg",
|
|
2587
|
+
"webp"
|
|
2588
|
+
].includes(type);
|
|
2589
|
+
}
|
|
2590
|
+
function isVideoType(type) {
|
|
2591
|
+
return [
|
|
2592
|
+
"mp4",
|
|
2593
|
+
"avi",
|
|
2594
|
+
"mov",
|
|
2595
|
+
"wmv",
|
|
2596
|
+
"flv",
|
|
2597
|
+
"mkv",
|
|
2598
|
+
"webm"
|
|
2599
|
+
].includes(type);
|
|
2600
|
+
}
|
|
2601
|
+
function isAudioType(type) {
|
|
2602
|
+
return [
|
|
2603
|
+
"mp3",
|
|
2604
|
+
"wav",
|
|
2605
|
+
"aac",
|
|
2606
|
+
"flac",
|
|
2607
|
+
"ogg",
|
|
2608
|
+
"m4a"
|
|
2609
|
+
].includes(type);
|
|
2610
|
+
}
|
|
2611
|
+
function classificateDocumentCategory(entity) {
|
|
2612
|
+
return isDocumentSheet(entity.type) ? "sheet" : isImageType(entity.type) ? "image" : isVideoType(entity.type) ? "video" : isAudioType(entity.type) ? "audio" : "text";
|
|
2613
|
+
}
|
|
2614
|
+
|
|
2615
|
+
exports.AIPermissionsEnum = void 0;
|
|
2616
|
+
(function(AIPermissionsEnum) {
|
|
2617
|
+
/**
|
|
2618
|
+
* Create or edit Knowledgebase in organization.
|
|
2619
|
+
*/ AIPermissionsEnum["KNOWLEDGEBASE_EDIT"] = "KNOWLEDGEBASE_EDIT";
|
|
2620
|
+
AIPermissionsEnum["COPILOT_VIEW"] = "COPILOT_VIEW";
|
|
2621
|
+
AIPermissionsEnum["COPILOT_EDIT"] = "COPILOT_EDIT";
|
|
2622
|
+
/**
|
|
2623
|
+
* Create or edit Xperts in organization.
|
|
2624
|
+
*/ AIPermissionsEnum["XPERT_EDIT"] = "XPERT_EDIT";
|
|
2625
|
+
AIPermissionsEnum["CHAT_VIEW"] = "CHAT_VIEW";
|
|
2626
|
+
})(exports.AIPermissionsEnum || (exports.AIPermissionsEnum = {}));
|
|
2627
|
+
|
|
2628
|
+
exports.XpertAgentExecutionStatusEnum = void 0;
|
|
2629
|
+
(function(XpertAgentExecutionStatusEnum) {
|
|
2630
|
+
XpertAgentExecutionStatusEnum["RUNNING"] = "running";
|
|
2631
|
+
XpertAgentExecutionStatusEnum["SUCCESS"] = "success";
|
|
2632
|
+
XpertAgentExecutionStatusEnum["ERROR"] = "error";
|
|
2633
|
+
XpertAgentExecutionStatusEnum["PENDING"] = "pending";
|
|
2634
|
+
XpertAgentExecutionStatusEnum["TIMEOUT"] = "timeout";
|
|
2635
|
+
XpertAgentExecutionStatusEnum["INTERRUPTED"] = "interrupted";
|
|
2636
|
+
})(exports.XpertAgentExecutionStatusEnum || (exports.XpertAgentExecutionStatusEnum = {}));
|
|
2637
|
+
|
|
2638
|
+
exports.ToolParameterType = void 0;
|
|
2639
|
+
(function(ToolParameterType) {
|
|
2640
|
+
ToolParameterType["STRING"] = "string";
|
|
2641
|
+
ToolParameterType["NUMBER"] = "number";
|
|
2642
|
+
ToolParameterType["BOOLEAN"] = "boolean";
|
|
2643
|
+
ToolParameterType["ARRAY"] = "array";
|
|
2644
|
+
ToolParameterType["SELECT"] = "select";
|
|
2645
|
+
ToolParameterType["SECRET_INPUT"] = "secret-input";
|
|
2646
|
+
ToolParameterType["FILE"] = "file";
|
|
2647
|
+
})(exports.ToolParameterType || (exports.ToolParameterType = {}));
|
|
2648
|
+
exports.ToolParameterForm = void 0;
|
|
2649
|
+
(function(ToolParameterForm) {
|
|
2650
|
+
ToolParameterForm["SCHEMA"] = "schema";
|
|
2651
|
+
ToolParameterForm["FORM"] = "form";
|
|
2652
|
+
ToolParameterForm["LLM"] = "llm"; // will be set by LLM
|
|
2653
|
+
})(exports.ToolParameterForm || (exports.ToolParameterForm = {}));
|
|
2654
|
+
var TOOL_NAME_REGEX = /^[a-zA-Z0-9_-]+$/;
|
|
2655
|
+
// Helper functions for tools
|
|
2656
|
+
/**
|
|
2657
|
+
*
|
|
2658
|
+
* @param tool Tool
|
|
2659
|
+
* @param disableToolDefault Is default disable tools
|
|
2660
|
+
* @returns Tool is enabled?
|
|
2661
|
+
*/ function isToolEnabled(tool) {
|
|
2662
|
+
var disableToolDefault = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
2663
|
+
var disabled = tool.disabled;
|
|
2664
|
+
if (disabled == null && tool.enabled != null) {
|
|
2665
|
+
disabled = !tool.enabled;
|
|
2666
|
+
}
|
|
2667
|
+
if (disabled == null) {
|
|
2668
|
+
disabled = disableToolDefault;
|
|
2669
|
+
}
|
|
2670
|
+
return !disabled;
|
|
2671
|
+
}
|
|
2672
|
+
/**
|
|
2673
|
+
* Tool is enabled?
|
|
2674
|
+
*
|
|
2675
|
+
* @deprecated use isToolEnabled
|
|
2676
|
+
*/ function isEnableTool(tool, toolset) {
|
|
2677
|
+
var disabled = tool.disabled;
|
|
2678
|
+
if (disabled == null && tool.enabled != null) {
|
|
2679
|
+
disabled = !tool.enabled;
|
|
2680
|
+
}
|
|
2681
|
+
if (disabled == null) {
|
|
2682
|
+
var _toolset_options;
|
|
2683
|
+
disabled = (_toolset_options = toolset.options) === null || _toolset_options === void 0 ? void 0 : _toolset_options.disableToolDefault;
|
|
2684
|
+
}
|
|
2685
|
+
return !disabled;
|
|
2686
|
+
}
|
|
2687
|
+
function getEnabledTools(toolset) {
|
|
2688
|
+
var _toolset_options, _toolset_options1, _toolset_tools;
|
|
2689
|
+
if (!toolset) return null;
|
|
2690
|
+
var disableToolDefault = (_toolset_options = toolset.options) === null || _toolset_options === void 0 ? void 0 : _toolset_options.disableToolDefault;
|
|
2691
|
+
var positions = toolset === null || toolset === void 0 ? void 0 : (_toolset_options1 = toolset.options) === null || _toolset_options1 === void 0 ? void 0 : _toolset_options1.toolPositions;
|
|
2692
|
+
var tools = toolset === null || toolset === void 0 ? void 0 : (_toolset_tools = toolset.tools) === null || _toolset_tools === void 0 ? void 0 : _toolset_tools.filter(function(_) {
|
|
2693
|
+
return isToolEnabled(_, disableToolDefault);
|
|
2694
|
+
});
|
|
2695
|
+
return positions && tools ? tools.sort(function(a, b) {
|
|
2696
|
+
var _positions_a_name, _positions_b_name;
|
|
2697
|
+
return ((_positions_a_name = positions[a.name]) !== null && _positions_a_name !== void 0 ? _positions_a_name : Infinity) - ((_positions_b_name = positions[b.name]) !== null && _positions_b_name !== void 0 ? _positions_b_name : Infinity);
|
|
2698
|
+
}) : tools;
|
|
2699
|
+
}
|
|
2700
|
+
function getToolLabel(tool) {
|
|
2701
|
+
var _tool_schema;
|
|
2702
|
+
if (!tool) return "";
|
|
2703
|
+
var identity = (_tool_schema = tool.schema) === null || _tool_schema === void 0 ? void 0 : _tool_schema.identity;
|
|
2704
|
+
if (identity) {
|
|
2705
|
+
return identity.label || tool.name || "";
|
|
2706
|
+
}
|
|
2707
|
+
return tool.name || "";
|
|
2708
|
+
}
|
|
2709
|
+
|
|
2710
|
+
exports.XpertToolsetCategoryEnum = void 0;
|
|
2711
|
+
(function(XpertToolsetCategoryEnum) {
|
|
2712
|
+
XpertToolsetCategoryEnum["BUILTIN"] = "builtin";
|
|
2713
|
+
XpertToolsetCategoryEnum["API"] = "api";
|
|
2714
|
+
/**
|
|
2715
|
+
* [Anthropic Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction)
|
|
2716
|
+
*/ XpertToolsetCategoryEnum["MCP"] = "mcp";
|
|
2717
|
+
/**
|
|
2718
|
+
* @deprecated
|
|
2719
|
+
*/ XpertToolsetCategoryEnum["WORKFLOW"] = "workflow";
|
|
2720
|
+
})(exports.XpertToolsetCategoryEnum || (exports.XpertToolsetCategoryEnum = {}));
|
|
2721
|
+
exports.CredentialsType = void 0;
|
|
2722
|
+
(function(CredentialsType) {
|
|
2723
|
+
CredentialsType["SECRET_INPUT"] = "secret-input";
|
|
2724
|
+
CredentialsType["TEXT_INPUT"] = "text-input";
|
|
2725
|
+
CredentialsType["SELECT"] = "select";
|
|
2726
|
+
CredentialsType["REMOTE_SELECT"] = "remote-select";
|
|
2727
|
+
CredentialsType["COPILOT_MODEL"] = "copilot-model";
|
|
2728
|
+
CredentialsType["BOOLEAN"] = "boolean";
|
|
2729
|
+
CredentialsType["INT"] = "int";
|
|
2730
|
+
CredentialsType["NUMBER"] = "number";
|
|
2731
|
+
})(exports.CredentialsType || (exports.CredentialsType = {}));
|
|
2732
|
+
exports.ApiProviderSchemaType = void 0;
|
|
2733
|
+
(function(ApiProviderSchemaType) {
|
|
2734
|
+
/**
|
|
2735
|
+
* Enum class for api provider schema type.
|
|
2736
|
+
*/ ApiProviderSchemaType["OPENAPI"] = "openapi";
|
|
2737
|
+
ApiProviderSchemaType["SWAGGER"] = "swagger";
|
|
2738
|
+
ApiProviderSchemaType["OPENAI_PLUGIN"] = "openai_plugin";
|
|
2739
|
+
ApiProviderSchemaType["OPENAI_ACTIONS"] = "openai_actions";
|
|
2740
|
+
})(exports.ApiProviderSchemaType || (exports.ApiProviderSchemaType = {}));
|
|
2741
|
+
exports.ToolTagEnum = void 0;
|
|
2742
|
+
(function(ToolTagEnum) {
|
|
2743
|
+
ToolTagEnum["SEARCH"] = "search";
|
|
2744
|
+
ToolTagEnum["IMAGE"] = "image";
|
|
2745
|
+
ToolTagEnum["VIDEOS"] = "videos";
|
|
2746
|
+
ToolTagEnum["WEATHER"] = "weather";
|
|
2747
|
+
ToolTagEnum["FINANCE"] = "finance";
|
|
2748
|
+
ToolTagEnum["DESIGN"] = "design";
|
|
2749
|
+
ToolTagEnum["TRAVEL"] = "travel";
|
|
2750
|
+
ToolTagEnum["SOCIAL"] = "social";
|
|
2751
|
+
ToolTagEnum["NEWS"] = "news";
|
|
2752
|
+
ToolTagEnum["MEDICAL"] = "medical";
|
|
2753
|
+
ToolTagEnum["PRODUCTIVITY"] = "productivity";
|
|
2754
|
+
ToolTagEnum["EDUCATION"] = "education";
|
|
2755
|
+
ToolTagEnum["BUSINESS"] = "business";
|
|
2756
|
+
ToolTagEnum["ENTERTAINMENT"] = "entertainment";
|
|
2757
|
+
ToolTagEnum["UTILITIES"] = "utilities";
|
|
2758
|
+
ToolTagEnum["ANALYSIS"] = "analysis";
|
|
2759
|
+
ToolTagEnum["SANDBOX"] = "sandbox";
|
|
2760
|
+
ToolTagEnum["PROJECT"] = "project";
|
|
2761
|
+
ToolTagEnum["AGENT"] = "agent";
|
|
2762
|
+
ToolTagEnum["OTHER"] = "other";
|
|
2763
|
+
})(exports.ToolTagEnum || (exports.ToolTagEnum = {}));
|
|
2764
|
+
|
|
2765
|
+
function _array_like_to_array$3(arr, len) {
|
|
2766
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
2767
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
2768
|
+
return arr2;
|
|
2769
|
+
}
|
|
2770
|
+
function _array_without_holes(arr) {
|
|
2771
|
+
if (Array.isArray(arr)) return _array_like_to_array$3(arr);
|
|
2772
|
+
}
|
|
2773
|
+
function _iterable_to_array$1(iter) {
|
|
2774
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
2775
|
+
}
|
|
2776
|
+
function _non_iterable_spread() {
|
|
2777
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2778
|
+
}
|
|
2779
|
+
function _object_without_properties(source, excluded) {
|
|
2780
|
+
if (source == null) return {};
|
|
2781
|
+
var target = _object_without_properties_loose(source, excluded);
|
|
2782
|
+
var key, i;
|
|
2783
|
+
if (Object.getOwnPropertySymbols) {
|
|
2784
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
2785
|
+
for(i = 0; i < sourceSymbolKeys.length; i++){
|
|
2786
|
+
key = sourceSymbolKeys[i];
|
|
2787
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
2788
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
2789
|
+
target[key] = source[key];
|
|
2790
|
+
}
|
|
2791
|
+
}
|
|
2792
|
+
return target;
|
|
2793
|
+
}
|
|
2794
|
+
function _object_without_properties_loose(source, excluded) {
|
|
2795
|
+
if (source == null) return {};
|
|
2796
|
+
var target = {};
|
|
2797
|
+
var sourceKeys = Object.keys(source);
|
|
2798
|
+
var key, i;
|
|
2799
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
2800
|
+
key = sourceKeys[i];
|
|
2801
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
2802
|
+
target[key] = source[key];
|
|
2803
|
+
}
|
|
2804
|
+
return target;
|
|
2805
|
+
}
|
|
2806
|
+
function _to_consumable_array(arr) {
|
|
2807
|
+
return _array_without_holes(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$3(arr) || _non_iterable_spread();
|
|
2808
|
+
}
|
|
2809
|
+
function _unsupported_iterable_to_array$3(o, minLen) {
|
|
2810
|
+
if (!o) return;
|
|
2811
|
+
if (typeof o === "string") return _array_like_to_array$3(o, minLen);
|
|
2812
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
2813
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
2814
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
2815
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$3(o, minLen);
|
|
2816
|
+
}
|
|
2817
|
+
// Helpers
|
|
2818
|
+
function omitXpertRelations(xpert) {
|
|
2819
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2820
|
+
var _ref = xpert !== null && xpert !== void 0 ? xpert : {}; _ref.draft; _ref.agent; _ref.agents; _ref.executors; _ref.leaders; _ref.knowledgebases; _ref.toolsets; _ref.managers; var rest = _object_without_properties(_ref, [
|
|
2821
|
+
"draft",
|
|
2822
|
+
"agent",
|
|
2823
|
+
"agents",
|
|
2824
|
+
"executors",
|
|
2825
|
+
"leaders",
|
|
2826
|
+
"knowledgebases",
|
|
2827
|
+
"toolsets",
|
|
2828
|
+
"managers"
|
|
2829
|
+
]);
|
|
2830
|
+
return rest;
|
|
2831
|
+
}
|
|
2832
|
+
function figureOutXpert(xpert, isDraft) {
|
|
2833
|
+
var _xpert_draft;
|
|
2834
|
+
var _ref;
|
|
2835
|
+
return (_ref = isDraft ? (_xpert_draft = xpert.draft) === null || _xpert_draft === void 0 ? void 0 : _xpert_draft.team : xpert) !== null && _ref !== void 0 ? _ref : xpert;
|
|
2836
|
+
}
|
|
2837
|
+
function xpertLabel(agent) {
|
|
2838
|
+
return agent.title || agent.name;
|
|
2839
|
+
}
|
|
2840
|
+
function createXpertGraph(xpert, position) {
|
|
2841
|
+
var _xpert_graph;
|
|
2842
|
+
var graph = (_xpert_graph = xpert.graph) !== null && _xpert_graph !== void 0 ? _xpert_graph : xpert.draft;
|
|
2843
|
+
var _locateNodes = locateNodes(graph.nodes, position), nodes = _locateNodes.nodes, size = _locateNodes.size;
|
|
2844
|
+
return {
|
|
2845
|
+
nodes: nodes,
|
|
2846
|
+
size: size,
|
|
2847
|
+
connections: graph.connections
|
|
2848
|
+
};
|
|
2849
|
+
}
|
|
2850
|
+
function locateNodes(nodes, position) {
|
|
2851
|
+
var _Math, _Math1, _Math2, _Math3;
|
|
2852
|
+
// Extract the area by positions of all nodes
|
|
2853
|
+
var positions = nodes.map(function(node) {
|
|
2854
|
+
return node.position;
|
|
2855
|
+
});
|
|
2856
|
+
var x0Positions = positions.map(function(pos) {
|
|
2857
|
+
return pos.x;
|
|
2858
|
+
});
|
|
2859
|
+
var x1Positions = nodes.map(function(node) {
|
|
2860
|
+
var _node_size;
|
|
2861
|
+
var _node_size_width;
|
|
2862
|
+
return node.position.x + ((_node_size_width = (_node_size = node.size) === null || _node_size === void 0 ? void 0 : _node_size.width) !== null && _node_size_width !== void 0 ? _node_size_width : 240);
|
|
2863
|
+
}) // Node width min 240
|
|
2864
|
+
;
|
|
2865
|
+
var y0Positions = positions.map(function(pos) {
|
|
2866
|
+
return pos.y;
|
|
2867
|
+
});
|
|
2868
|
+
var y1Positions = nodes.map(function(node) {
|
|
2869
|
+
var _node_size;
|
|
2870
|
+
var _node_size_height;
|
|
2871
|
+
return node.position.y + ((_node_size_height = (_node_size = node.size) === null || _node_size === void 0 ? void 0 : _node_size.height) !== null && _node_size_height !== void 0 ? _node_size_height : 70);
|
|
2872
|
+
}) // Node height min 70
|
|
2873
|
+
;
|
|
2874
|
+
var xRange = {
|
|
2875
|
+
min: (_Math = Math).min.apply(_Math, _to_consumable_array(x0Positions)),
|
|
2876
|
+
max: (_Math1 = Math).max.apply(_Math1, _to_consumable_array(x1Positions))
|
|
2877
|
+
};
|
|
2878
|
+
var yRange = {
|
|
2879
|
+
min: (_Math2 = Math).min.apply(_Math2, _to_consumable_array(y0Positions)),
|
|
2880
|
+
max: (_Math3 = Math).max.apply(_Math3, _to_consumable_array(y1Positions))
|
|
2881
|
+
};
|
|
2882
|
+
var size = {
|
|
2883
|
+
width: xRange.max - xRange.min + 50,
|
|
2884
|
+
height: yRange.max - yRange.min + 80
|
|
2885
|
+
};
|
|
2886
|
+
nodes.forEach(function(node) {
|
|
2887
|
+
var _node_position, _node_position1;
|
|
2888
|
+
node.position = {
|
|
2889
|
+
x: position.x + (((_node_position = node.position) === null || _node_position === void 0 ? void 0 : _node_position.x) ? node.position.x - xRange.min : 0) + 10,
|
|
2890
|
+
y: position.y + (((_node_position1 = node.position) === null || _node_position1 === void 0 ? void 0 : _node_position1.y) ? node.position.y - yRange.min : 0) + 40
|
|
2891
|
+
};
|
|
2892
|
+
});
|
|
2893
|
+
return {
|
|
2894
|
+
size: size,
|
|
2895
|
+
nodes: nodes
|
|
2896
|
+
};
|
|
2897
|
+
}
|
|
2898
|
+
/**
|
|
2899
|
+
* Create all nodes of xpert and it's area size
|
|
2900
|
+
*
|
|
2901
|
+
* @param xpert
|
|
2902
|
+
* @returns
|
|
2903
|
+
*/ function createXpertNodes(xpert, position) {
|
|
2904
|
+
var // Agents
|
|
2905
|
+
_nodes, // knowledgebases
|
|
2906
|
+
_nodes1, // Toolsets
|
|
2907
|
+
_nodes2, _Math, _Math1, _Math2, _Math3;
|
|
2908
|
+
var _xpert_agent_options, _xpert_agents, // External experts
|
|
2909
|
+
_xpert_executors;
|
|
2910
|
+
var nodes = [];
|
|
2911
|
+
var agents = [];
|
|
2912
|
+
if (!((_xpert_agent_options = xpert.agent.options) === null || _xpert_agent_options === void 0 ? void 0 : _xpert_agent_options.hidden)) {
|
|
2913
|
+
agents.push(xpert.agent);
|
|
2914
|
+
}
|
|
2915
|
+
if ((_xpert_agents = xpert.agents) === null || _xpert_agents === void 0 ? void 0 : _xpert_agents.length) {
|
|
2916
|
+
var _agents;
|
|
2917
|
+
(_agents = agents).push.apply(_agents, _to_consumable_array(xpert.agents));
|
|
2918
|
+
}
|
|
2919
|
+
(_nodes = nodes).push.apply(_nodes, _to_consumable_array(agents.map(function(_) {
|
|
2920
|
+
var _xpert_options_agent___key, _xpert_options_agent, _xpert_options, _xpert_options_agent___key1, _xpert_options_agent1, _xpert_options1;
|
|
2921
|
+
var _xpert_options_agent___key_position;
|
|
2922
|
+
return {
|
|
2923
|
+
type: "agent",
|
|
2924
|
+
key: _.key,
|
|
2925
|
+
position: (_xpert_options_agent___key_position = (_xpert_options = xpert.options) === null || _xpert_options === void 0 ? void 0 : (_xpert_options_agent = _xpert_options.agent) === null || _xpert_options_agent === void 0 ? void 0 : (_xpert_options_agent___key = _xpert_options_agent[_.key]) === null || _xpert_options_agent___key === void 0 ? void 0 : _xpert_options_agent___key.position) !== null && _xpert_options_agent___key_position !== void 0 ? _xpert_options_agent___key_position : {
|
|
2926
|
+
x: 0,
|
|
2927
|
+
y: 0
|
|
2928
|
+
},
|
|
2929
|
+
size: (_xpert_options1 = xpert.options) === null || _xpert_options1 === void 0 ? void 0 : (_xpert_options_agent1 = _xpert_options1.agent) === null || _xpert_options_agent1 === void 0 ? void 0 : (_xpert_options_agent___key1 = _xpert_options_agent1[_.key]) === null || _xpert_options_agent___key1 === void 0 ? void 0 : _xpert_options_agent___key1.size,
|
|
2930
|
+
entity: _
|
|
2931
|
+
};
|
|
2932
|
+
})));
|
|
2933
|
+
(_xpert_executors = xpert.executors) === null || _xpert_executors === void 0 ? void 0 : _xpert_executors.forEach(function(executor) {
|
|
2934
|
+
var _xpert_options_xpert_executor_id, _xpert_options_xpert, _xpert_options;
|
|
2935
|
+
var _xpert_options_xpert_executor_id_position;
|
|
2936
|
+
var position = (_xpert_options_xpert_executor_id_position = (_xpert_options = xpert.options) === null || _xpert_options === void 0 ? void 0 : (_xpert_options_xpert = _xpert_options.xpert) === null || _xpert_options_xpert === void 0 ? void 0 : (_xpert_options_xpert_executor_id = _xpert_options_xpert[executor.id]) === null || _xpert_options_xpert_executor_id === void 0 ? void 0 : _xpert_options_xpert_executor_id.position) !== null && _xpert_options_xpert_executor_id_position !== void 0 ? _xpert_options_xpert_executor_id_position : {
|
|
2937
|
+
x: 0,
|
|
2938
|
+
y: 0
|
|
2939
|
+
};
|
|
2940
|
+
var executorGraph = createXpertNodes(executor, position);
|
|
2941
|
+
nodes.push({
|
|
2942
|
+
type: "xpert",
|
|
2943
|
+
key: executor.id,
|
|
2944
|
+
position: position,
|
|
2945
|
+
size: executorGraph.size,
|
|
2946
|
+
entity: executor,
|
|
2947
|
+
nodes: executorGraph.nodes
|
|
2948
|
+
});
|
|
2949
|
+
});
|
|
2950
|
+
var _xpert_knowledgebases;
|
|
2951
|
+
(_nodes1 = nodes).push.apply(_nodes1, _to_consumable_array(((_xpert_knowledgebases = xpert.knowledgebases) !== null && _xpert_knowledgebases !== void 0 ? _xpert_knowledgebases : []).map(function(x) {
|
|
2952
|
+
var _xpert_options_knowledge_x_id, _xpert_options_knowledge, _xpert_options, _xpert_options_knowledge_x_id1, _xpert_options_knowledge1, _xpert_options1;
|
|
2953
|
+
var _xpert_options_knowledge_x_id_position;
|
|
2954
|
+
return {
|
|
2955
|
+
key: x.id,
|
|
2956
|
+
type: "knowledge",
|
|
2957
|
+
position: (_xpert_options_knowledge_x_id_position = (_xpert_options = xpert.options) === null || _xpert_options === void 0 ? void 0 : (_xpert_options_knowledge = _xpert_options.knowledge) === null || _xpert_options_knowledge === void 0 ? void 0 : (_xpert_options_knowledge_x_id = _xpert_options_knowledge[x.id]) === null || _xpert_options_knowledge_x_id === void 0 ? void 0 : _xpert_options_knowledge_x_id.position) !== null && _xpert_options_knowledge_x_id_position !== void 0 ? _xpert_options_knowledge_x_id_position : {
|
|
2958
|
+
x: 0,
|
|
2959
|
+
y: 0
|
|
2960
|
+
},
|
|
2961
|
+
size: (_xpert_options1 = xpert.options) === null || _xpert_options1 === void 0 ? void 0 : (_xpert_options_knowledge1 = _xpert_options1.knowledge) === null || _xpert_options_knowledge1 === void 0 ? void 0 : (_xpert_options_knowledge_x_id1 = _xpert_options_knowledge1[x.id]) === null || _xpert_options_knowledge_x_id1 === void 0 ? void 0 : _xpert_options_knowledge_x_id1.size,
|
|
2962
|
+
entity: x
|
|
2963
|
+
};
|
|
2964
|
+
})));
|
|
2965
|
+
var _xpert_toolsets;
|
|
2966
|
+
(_nodes2 = nodes).push.apply(_nodes2, _to_consumable_array(((_xpert_toolsets = xpert.toolsets) !== null && _xpert_toolsets !== void 0 ? _xpert_toolsets : []).map(function(x) {
|
|
2967
|
+
var _xpert_options_toolset_x_id, _xpert_options_toolset, _xpert_options, _xpert_options_toolset_x_id1, _xpert_options_toolset1, _xpert_options1;
|
|
2968
|
+
var _xpert_options_toolset_x_id_position;
|
|
2969
|
+
return {
|
|
2970
|
+
key: x.id,
|
|
2971
|
+
type: "toolset",
|
|
2972
|
+
position: (_xpert_options_toolset_x_id_position = (_xpert_options = xpert.options) === null || _xpert_options === void 0 ? void 0 : (_xpert_options_toolset = _xpert_options.toolset) === null || _xpert_options_toolset === void 0 ? void 0 : (_xpert_options_toolset_x_id = _xpert_options_toolset[x.id]) === null || _xpert_options_toolset_x_id === void 0 ? void 0 : _xpert_options_toolset_x_id.position) !== null && _xpert_options_toolset_x_id_position !== void 0 ? _xpert_options_toolset_x_id_position : {
|
|
2973
|
+
x: 0,
|
|
2974
|
+
y: 0
|
|
2975
|
+
},
|
|
2976
|
+
size: (_xpert_options1 = xpert.options) === null || _xpert_options1 === void 0 ? void 0 : (_xpert_options_toolset1 = _xpert_options1.toolset) === null || _xpert_options_toolset1 === void 0 ? void 0 : (_xpert_options_toolset_x_id1 = _xpert_options_toolset1[x.id]) === null || _xpert_options_toolset_x_id1 === void 0 ? void 0 : _xpert_options_toolset_x_id1.size,
|
|
2977
|
+
entity: x
|
|
2978
|
+
};
|
|
2979
|
+
})));
|
|
2980
|
+
// Extract the area by positions of all nodes
|
|
2981
|
+
var positions = nodes.map(function(node) {
|
|
2982
|
+
return node.position;
|
|
2983
|
+
});
|
|
2984
|
+
var x0Positions = positions.map(function(pos) {
|
|
2985
|
+
return pos.x;
|
|
2986
|
+
});
|
|
2987
|
+
var x1Positions = nodes.map(function(node) {
|
|
2988
|
+
var _node_size;
|
|
2989
|
+
var _node_size_width;
|
|
2990
|
+
return node.position.x + ((_node_size_width = (_node_size = node.size) === null || _node_size === void 0 ? void 0 : _node_size.width) !== null && _node_size_width !== void 0 ? _node_size_width : 240);
|
|
2991
|
+
}) // Node width min 240
|
|
2992
|
+
;
|
|
2993
|
+
var y0Positions = positions.map(function(pos) {
|
|
2994
|
+
return pos.y;
|
|
2995
|
+
});
|
|
2996
|
+
var y1Positions = nodes.map(function(node) {
|
|
2997
|
+
var _node_size;
|
|
2998
|
+
var _node_size_height;
|
|
2999
|
+
return node.position.y + ((_node_size_height = (_node_size = node.size) === null || _node_size === void 0 ? void 0 : _node_size.height) !== null && _node_size_height !== void 0 ? _node_size_height : 70);
|
|
3000
|
+
}) // Node height min 70
|
|
3001
|
+
;
|
|
3002
|
+
var xRange = {
|
|
3003
|
+
min: (_Math = Math).min.apply(_Math, _to_consumable_array(x0Positions)),
|
|
3004
|
+
max: (_Math1 = Math).max.apply(_Math1, _to_consumable_array(x1Positions))
|
|
3005
|
+
};
|
|
3006
|
+
var yRange = {
|
|
3007
|
+
min: (_Math2 = Math).min.apply(_Math2, _to_consumable_array(y0Positions)),
|
|
3008
|
+
max: (_Math3 = Math).max.apply(_Math3, _to_consumable_array(y1Positions))
|
|
3009
|
+
};
|
|
3010
|
+
var size = {
|
|
3011
|
+
width: xRange.max - xRange.min + 50,
|
|
3012
|
+
height: yRange.max - yRange.min + 80
|
|
3013
|
+
};
|
|
3014
|
+
nodes.forEach(function(node) {
|
|
3015
|
+
var _node_position, _node_position1;
|
|
3016
|
+
node.position = {
|
|
3017
|
+
x: position.x + (((_node_position = node.position) === null || _node_position === void 0 ? void 0 : _node_position.x) ? node.position.x - xRange.min : 0) + 10,
|
|
3018
|
+
y: position.y + (((_node_position1 = node.position) === null || _node_position1 === void 0 ? void 0 : _node_position1.y) ? node.position.y - yRange.min : 0) + 40
|
|
3019
|
+
};
|
|
3020
|
+
});
|
|
3021
|
+
return {
|
|
3022
|
+
nodes: nodes,
|
|
3023
|
+
size: size
|
|
3024
|
+
};
|
|
3025
|
+
}
|
|
3026
|
+
function createAgentConnections(agent, collaborators) {
|
|
3027
|
+
var // collaborators
|
|
3028
|
+
_agent_collaboratorNames, // knowledgebases
|
|
3029
|
+
_agent_knowledgebaseIds, // toolsets
|
|
3030
|
+
_agent_toolsetIds;
|
|
3031
|
+
var connections = [];
|
|
3032
|
+
var from = agent.leaderKey;
|
|
3033
|
+
var to = agent.key;
|
|
3034
|
+
if (from && to) {
|
|
3035
|
+
connections.push({
|
|
3036
|
+
type: "agent",
|
|
3037
|
+
key: from + "/" + to,
|
|
3038
|
+
from: from,
|
|
3039
|
+
to: to
|
|
3040
|
+
});
|
|
3041
|
+
}
|
|
3042
|
+
(_agent_collaboratorNames = agent.collaboratorNames) === null || _agent_collaboratorNames === void 0 ? void 0 : _agent_collaboratorNames.forEach(function(name) {
|
|
3043
|
+
var collaborator = collaborators.find(function(_) {
|
|
3044
|
+
return _.name === name;
|
|
3045
|
+
});
|
|
3046
|
+
if (collaborator) {
|
|
3047
|
+
var from = agent.key;
|
|
3048
|
+
var to = collaborator.id;
|
|
3049
|
+
connections.push({
|
|
3050
|
+
type: "xpert",
|
|
3051
|
+
key: from + "/" + to,
|
|
3052
|
+
from: from,
|
|
3053
|
+
to: to
|
|
3054
|
+
});
|
|
3055
|
+
}
|
|
3056
|
+
});
|
|
3057
|
+
(_agent_knowledgebaseIds = agent.knowledgebaseIds) === null || _agent_knowledgebaseIds === void 0 ? void 0 : _agent_knowledgebaseIds.forEach(function(knowledgebaseId) {
|
|
3058
|
+
var from = agent.key;
|
|
3059
|
+
var to = knowledgebaseId;
|
|
3060
|
+
connections.push({
|
|
3061
|
+
type: "knowledge",
|
|
3062
|
+
key: from + "/" + to,
|
|
3063
|
+
from: from,
|
|
3064
|
+
to: to
|
|
3065
|
+
});
|
|
3066
|
+
});
|
|
3067
|
+
(_agent_toolsetIds = agent.toolsetIds) === null || _agent_toolsetIds === void 0 ? void 0 : _agent_toolsetIds.forEach(function(toolsetId) {
|
|
3068
|
+
var from = agent.key;
|
|
3069
|
+
var to = toolsetId;
|
|
3070
|
+
connections.push({
|
|
3071
|
+
type: "toolset",
|
|
3072
|
+
key: from + "/" + to,
|
|
3073
|
+
from: from,
|
|
3074
|
+
to: to
|
|
3075
|
+
});
|
|
3076
|
+
});
|
|
3077
|
+
return connections;
|
|
3078
|
+
}
|
|
3079
|
+
|
|
3080
|
+
exports.ApiAuthType = void 0;
|
|
3081
|
+
(function(ApiAuthType) {
|
|
3082
|
+
/**
|
|
3083
|
+
* Enum class for api provider auth type.
|
|
3084
|
+
*/ ApiAuthType["NONE"] = "none";
|
|
3085
|
+
ApiAuthType["API_KEY"] = "api_key";
|
|
3086
|
+
ApiAuthType["BASIC"] = "basic";
|
|
3087
|
+
})(exports.ApiAuthType || (exports.ApiAuthType = {}));
|
|
3088
|
+
exports.EmbeddingStatusEnum = void 0;
|
|
3089
|
+
(function(EmbeddingStatusEnum) {
|
|
3090
|
+
EmbeddingStatusEnum["PROCESSING"] = "processing";
|
|
3091
|
+
EmbeddingStatusEnum["SUCCESS"] = "success";
|
|
3092
|
+
EmbeddingStatusEnum["FAILED"] = "failed";
|
|
3093
|
+
EmbeddingStatusEnum["REQUIRED"] = "required";
|
|
3094
|
+
})(exports.EmbeddingStatusEnum || (exports.EmbeddingStatusEnum = {}));
|
|
3095
|
+
var Attachment_Type_Options = [
|
|
3096
|
+
{
|
|
3097
|
+
key: "document",
|
|
3098
|
+
value: "TXT, MD, MDX, MARKDOWN, PDF, HTML, XLSX, XLS, DOC, DOCX, CSV, EML, MSG, PPTX, PPT, XML, EPUB",
|
|
3099
|
+
label: {
|
|
3100
|
+
zh_Hans: "文档",
|
|
3101
|
+
en_US: "Document"
|
|
3102
|
+
}
|
|
3103
|
+
},
|
|
3104
|
+
{
|
|
3105
|
+
key: "image",
|
|
3106
|
+
value: "JPG, JPEG, PNG, GIF, WEBP, SVG",
|
|
3107
|
+
label: {
|
|
3108
|
+
zh_Hans: "图片",
|
|
3109
|
+
en_US: "Image"
|
|
3110
|
+
}
|
|
3111
|
+
},
|
|
3112
|
+
{
|
|
3113
|
+
key: "audio",
|
|
3114
|
+
value: "MP3, M4A, WAV, AMR, MPGA",
|
|
3115
|
+
label: {
|
|
3116
|
+
zh_Hans: "音频",
|
|
3117
|
+
en_US: "Audio"
|
|
3118
|
+
}
|
|
3119
|
+
},
|
|
3120
|
+
{
|
|
3121
|
+
key: "video",
|
|
3122
|
+
value: "MP4, MOV, MPEG, WEBM",
|
|
3123
|
+
label: {
|
|
3124
|
+
zh_Hans: "视频",
|
|
3125
|
+
en_US: "Video"
|
|
3126
|
+
}
|
|
3127
|
+
},
|
|
3128
|
+
{
|
|
3129
|
+
key: "others",
|
|
3130
|
+
value: "",
|
|
3131
|
+
label: {
|
|
3132
|
+
zh_Hans: "其他文件类型",
|
|
3133
|
+
en_US: "Other file types"
|
|
3134
|
+
}
|
|
3135
|
+
}
|
|
3136
|
+
];
|
|
3137
|
+
|
|
3138
|
+
var TASK_DESCRIPTION_PREFIX = "Launch a new agent to handle complex, multi-step tasks autonomously. \n\nAvailable agent types and the tools they have access to:";
|
|
3139
|
+
var TASK_DESCRIPTION_SUFFIX = 'When using the Task tool, you must specify a subagent_type parameter to select which agent type to use.\n\nWhen to use the Agent tool:\n- When you are instructed to execute custom slash commands. Use the Agent tool with the slash command invocation as the entire prompt. The slash command can take arguments. For example: Task(description="Check the file")\n\nWhen NOT to use the Agent tool:\n- If you want to read a specific file path, use the Read or Glob tool instead of the Agent tool, to find the match more quickly\n- If you are searching for a specific term or definition within a known location, use the Glob tool instead, to find the match more quickly\n- If you are searching for content within a specific file or set of 2-3 files, use the Read tool instead of the Agent tool, to find the match more quickly\n- Other tasks that are not related to the agent descriptions above\n\n\nUsage notes:\n1. Launch multiple agents concurrently whenever possible, to maximize performance; to do that, use a single message with multiple tool uses\n2. When the agent is done, it will return a single message back to you. The result returned by the agent is not visible to the user. To show the user the result, you should send a text message back to the user with a concise summary of the result.\n3. Each agent invocation is stateless. You will not be able to send additional messages to the agent, nor will the agent be able to communicate with you outside of its final report. Therefore, your prompt should contain a highly detailed task description for the agent to perform autonomously and you should specify exactly what information the agent should return back to you in its final and only message to you.\n4. The agent\'s outputs should generally be trusted\n5. Clearly tell the agent whether you expect it to create content, perform analysis, or just do research (search, file reads, web fetches, etc.), since it is not aware of the user\'s intent\n6. If the agent description mentions that it should be used proactively, then you should try your best to use it without the user having to ask for it first. Use your judgement.\n\nExample usage:\n\n<example_agent_descriptions>\n"content-reviewer": use this agent after you are done creating significant content or documents\n"greeting-responder": use this agent when to respond to user greetings with a friendly joke\n"research-analyst": use this agent to conduct thorough research on complex topics\n</example_agent_description>\n\n<example>\nuser: "Please write a function that checks if a number is prime"\nassistant: Sure let me write a function that checks if a number is prime\nassistant: First let me use the Write tool to write a function that checks if a number is prime\nassistant: I\'m going to use the Write tool to write the following code:\n<code>\nfunction isPrime(n) {\n if (n <= 1) return false\n for (let i = 2; i * i <= n; i++) {\n if (n % i === 0) return false\n }\n return true\n}\n</code>\n<commentary>\nSince significant content was created and the task was completed, now use the content-reviewer agent to review the work\n</commentary>\nassistant: Now let me use the content-reviewer agent to review the code\nassistant: Uses the Task tool to launch with the content-reviewer agent \n</example>\n\n<example>\nuser: "Can you help me research the environmental impact of different renewable energy sources and create a comprehensive report?"\n<commentary>\nThis is a complex research task that would benefit from using the research-analyst agent to conduct thorough analysis\n</commentary>\nassistant: I\'ll help you research the environmental impact of renewable energy sources. Let me use the research-analyst agent to conduct comprehensive research on this topic.\nassistant: Uses the Task tool to launch with the research-analyst agent, providing detailed instructions about what research to conduct and what format the report should take\n</example>\n\n<example>\nuser: "Hello"\n<commentary>\nSince the user is greeting, use the greeting-responder agent to respond with a friendly joke\n</commentary>\nassistant: "I\'m going to use the Task tool to launch with the greeting-responder agent"\n</example>';
|
|
3140
|
+
|
|
3141
|
+
exports.MCPServerType = void 0;
|
|
3142
|
+
(function(MCPServerType) {
|
|
3143
|
+
MCPServerType["SSE"] = "sse";
|
|
3144
|
+
MCPServerType["STDIO"] = "stdio";
|
|
3145
|
+
MCPServerType["CODE"] = "code";
|
|
3146
|
+
})(exports.MCPServerType || (exports.MCPServerType = {}));
|
|
3147
|
+
|
|
3148
|
+
function _define_property$1(obj, key, value) {
|
|
3149
|
+
if (key in obj) {
|
|
3150
|
+
Object.defineProperty(obj, key, {
|
|
3151
|
+
value: value,
|
|
3152
|
+
enumerable: true,
|
|
3153
|
+
configurable: true,
|
|
3154
|
+
writable: true
|
|
3155
|
+
});
|
|
3156
|
+
} else {
|
|
3157
|
+
obj[key] = value;
|
|
3158
|
+
}
|
|
3159
|
+
return obj;
|
|
3160
|
+
}
|
|
3161
|
+
function _object_spread(target) {
|
|
3162
|
+
for(var i = 1; i < arguments.length; i++){
|
|
3163
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
3164
|
+
var ownKeys = Object.keys(source);
|
|
3165
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
3166
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
3167
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
3168
|
+
}));
|
|
3169
|
+
}
|
|
3170
|
+
ownKeys.forEach(function(key) {
|
|
3171
|
+
_define_property$1(target, key, source[key]);
|
|
3172
|
+
});
|
|
3173
|
+
}
|
|
3174
|
+
return target;
|
|
3175
|
+
}
|
|
3176
|
+
function ownKeys(object, enumerableOnly) {
|
|
3177
|
+
var keys = Object.keys(object);
|
|
3178
|
+
if (Object.getOwnPropertySymbols) {
|
|
3179
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
3180
|
+
keys.push.apply(keys, symbols);
|
|
3181
|
+
}
|
|
3182
|
+
return keys;
|
|
3183
|
+
}
|
|
3184
|
+
function _object_spread_props(target, source) {
|
|
3185
|
+
source = source != null ? source : {};
|
|
3186
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
3187
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3188
|
+
} else {
|
|
3189
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
3190
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3191
|
+
});
|
|
3192
|
+
}
|
|
3193
|
+
return target;
|
|
3194
|
+
}
|
|
3195
|
+
/**
|
|
3196
|
+
* Build a hierarchical tree structure from a flat list of DocumentInterface objects,
|
|
3197
|
+
* and
|
|
3198
|
+
*
|
|
3199
|
+
* @template Metadata - Type of metadata, defaults to IDocChunkMetadata
|
|
3200
|
+
* @param documents - A flat array of DocumentInterface objects
|
|
3201
|
+
* @returns the hierarchical tree (root-level DocumentInterface[])
|
|
3202
|
+
*/ function buildChunkTree(documents) {
|
|
3203
|
+
if (!documents || documents.length === 0) return [];
|
|
3204
|
+
// Step 1. Build a lookup map for quick access by chunkId
|
|
3205
|
+
var map = new Map();
|
|
3206
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
3207
|
+
try {
|
|
3208
|
+
for(var _iterator = documents[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
3209
|
+
var doc = _step.value;
|
|
3210
|
+
var _doc_metadata;
|
|
3211
|
+
if ((_doc_metadata = doc.metadata) === null || _doc_metadata === void 0 ? void 0 : _doc_metadata.chunkId) {
|
|
3212
|
+
map.set(doc.metadata.chunkId, _object_spread_props(_object_spread({}, doc), {
|
|
3213
|
+
metadata: _object_spread_props(_object_spread({}, doc.metadata), {
|
|
3214
|
+
children: []
|
|
3215
|
+
})
|
|
3216
|
+
}));
|
|
3217
|
+
}
|
|
3218
|
+
}
|
|
3219
|
+
} catch (err) {
|
|
3220
|
+
_didIteratorError = true;
|
|
3221
|
+
_iteratorError = err;
|
|
3222
|
+
} finally{
|
|
3223
|
+
try {
|
|
3224
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
3225
|
+
_iterator.return();
|
|
3226
|
+
}
|
|
3227
|
+
} finally{
|
|
3228
|
+
if (_didIteratorError) {
|
|
3229
|
+
throw _iteratorError;
|
|
3230
|
+
}
|
|
3231
|
+
}
|
|
3232
|
+
}
|
|
3233
|
+
// Step 2. Organize nodes into tree
|
|
3234
|
+
var roots = [];
|
|
3235
|
+
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
3236
|
+
try {
|
|
3237
|
+
for(var _iterator1 = map.values()[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
3238
|
+
var doc1 = _step1.value;
|
|
3239
|
+
var parentId = doc1.metadata.parentId;
|
|
3240
|
+
if (parentId && map.has(parentId)) {
|
|
3241
|
+
var parent = map.get(parentId);
|
|
3242
|
+
parent.metadata.children = parent.metadata.children || [];
|
|
3243
|
+
parent.metadata.children.push(doc1);
|
|
3244
|
+
} else {
|
|
3245
|
+
roots.push(doc1);
|
|
3246
|
+
}
|
|
3247
|
+
}
|
|
3248
|
+
} catch (err) {
|
|
3249
|
+
_didIteratorError1 = true;
|
|
3250
|
+
_iteratorError1 = err;
|
|
3251
|
+
} finally{
|
|
3252
|
+
try {
|
|
3253
|
+
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
3254
|
+
_iterator1.return();
|
|
3255
|
+
}
|
|
3256
|
+
} finally{
|
|
3257
|
+
if (_didIteratorError1) {
|
|
3258
|
+
throw _iteratorError1;
|
|
3259
|
+
}
|
|
3260
|
+
}
|
|
3261
|
+
}
|
|
3262
|
+
return roots;
|
|
3263
|
+
}
|
|
3264
|
+
/**
|
|
3265
|
+
* Find all leaf nodes (nodes without children).
|
|
3266
|
+
*
|
|
3267
|
+
* @param roots
|
|
3268
|
+
* @returns
|
|
3269
|
+
*/ function collectTreeLeaves(roots) {
|
|
3270
|
+
var leaves = [];
|
|
3271
|
+
var collectLeaves = function(node) {
|
|
3272
|
+
var children = node.metadata.children;
|
|
3273
|
+
if (!children || children.length === 0) {
|
|
3274
|
+
leaves.push(node);
|
|
3275
|
+
} else {
|
|
3276
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
3277
|
+
try {
|
|
3278
|
+
for(var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
3279
|
+
var child = _step.value;
|
|
3280
|
+
collectLeaves(child);
|
|
3281
|
+
}
|
|
3282
|
+
} catch (err) {
|
|
3283
|
+
_didIteratorError = true;
|
|
3284
|
+
_iteratorError = err;
|
|
3285
|
+
} finally{
|
|
3286
|
+
try {
|
|
3287
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
3288
|
+
_iterator.return();
|
|
3289
|
+
}
|
|
3290
|
+
} finally{
|
|
3291
|
+
if (_didIteratorError) {
|
|
3292
|
+
throw _iteratorError;
|
|
3293
|
+
}
|
|
3294
|
+
}
|
|
3295
|
+
}
|
|
3296
|
+
}
|
|
3297
|
+
};
|
|
3298
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
3299
|
+
try {
|
|
3300
|
+
for(var _iterator = roots[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
3301
|
+
var root = _step.value;
|
|
3302
|
+
collectLeaves(root);
|
|
3303
|
+
}
|
|
3304
|
+
} catch (err) {
|
|
3305
|
+
_didIteratorError = true;
|
|
3306
|
+
_iteratorError = err;
|
|
3307
|
+
} finally{
|
|
3308
|
+
try {
|
|
3309
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
3310
|
+
_iterator.return();
|
|
3311
|
+
}
|
|
3312
|
+
} finally{
|
|
3313
|
+
if (_didIteratorError) {
|
|
3314
|
+
throw _iteratorError;
|
|
3315
|
+
}
|
|
3316
|
+
}
|
|
3317
|
+
}
|
|
3318
|
+
return leaves;
|
|
3319
|
+
}
|
|
3320
|
+
|
|
3321
|
+
exports.PermissionsEnum = void 0;
|
|
3322
|
+
(function(PermissionsEnum) {
|
|
3323
|
+
PermissionsEnum["PROFILE_EDIT"] = "PROFILE_EDIT";
|
|
3324
|
+
PermissionsEnum["ADMIN_DASHBOARD_VIEW"] = "ADMIN_DASHBOARD_VIEW";
|
|
3325
|
+
PermissionsEnum["ORG_EMPLOYEES_VIEW"] = "ORG_EMPLOYEES_VIEW";
|
|
3326
|
+
PermissionsEnum["ORG_EMPLOYEES_EDIT"] = "ORG_EMPLOYEES_EDIT";
|
|
3327
|
+
PermissionsEnum["ORG_TAGS_EDIT"] = "ORG_TAGS_EDIT";
|
|
3328
|
+
PermissionsEnum["ORG_USERS_VIEW"] = "ORG_USERS_VIEW";
|
|
3329
|
+
PermissionsEnum["ORG_USERS_EDIT"] = "ORG_USERS_EDIT";
|
|
3330
|
+
PermissionsEnum["ORG_INVITE_VIEW"] = "ORG_INVITE_VIEW";
|
|
3331
|
+
PermissionsEnum["ORG_INVITE_EDIT"] = "ORG_INVITE_EDIT";
|
|
3332
|
+
PermissionsEnum["ALL_ORG_VIEW"] = "ALL_ORG_VIEW";
|
|
3333
|
+
PermissionsEnum["ALL_ORG_EDIT"] = "ALL_ORG_EDIT";
|
|
3334
|
+
PermissionsEnum["APPROVAL_POLICY_VIEW"] = "APPROVALS_POLICY_VIEW";
|
|
3335
|
+
PermissionsEnum["APPROVAL_POLICY_EDIT"] = "APPROVALS_POLICY_EDIT";
|
|
3336
|
+
PermissionsEnum["CHANGE_SELECTED_ORGANIZATION"] = "CHANGE_SELECTED_ORGANIZATION";
|
|
3337
|
+
PermissionsEnum["CHANGE_ROLES_PERMISSIONS"] = "CHANGE_ROLES_PERMISSIONS";
|
|
3338
|
+
PermissionsEnum["SUPER_ADMIN_EDIT"] = "SUPER_ADMIN_EDIT";
|
|
3339
|
+
PermissionsEnum["PUBLIC_PAGE_EDIT"] = "PUBLIC_PAGE_EDIT";
|
|
3340
|
+
PermissionsEnum["VIEW_ALL_EMAILS"] = "VIEW_ALL_EMAILS";
|
|
3341
|
+
PermissionsEnum["VIEW_ALL_EMAIL_TEMPLATES"] = "VIEW_ALL_EMAIL_TEMPLATES";
|
|
3342
|
+
PermissionsEnum["ORG_HELP_CENTER_EDIT"] = "ORG_HELP_CENTER_EDIT";
|
|
3343
|
+
PermissionsEnum["ORG_CONTACT_EDIT"] = "ORG_CONTACT_EDIT";
|
|
3344
|
+
PermissionsEnum["ORG_CONTACT_VIEW"] = "ORG_CONTACT_VIEW";
|
|
3345
|
+
PermissionsEnum["ORG_DEMO_EDIT"] = "ORG_DEMO_EDIT";
|
|
3346
|
+
PermissionsEnum["INTEGRATION_EDIT"] = "INTEGRATION_EDIT";
|
|
3347
|
+
PermissionsEnum["INTEGRATION_VIEW"] = "INTEGRATION_VIEW";
|
|
3348
|
+
PermissionsEnum["FILE_STORAGE_VIEW"] = "FILE_STORAGE_VIEW";
|
|
3349
|
+
PermissionsEnum["SMS_GATEWAY_VIEW"] = "SMS_GATEWAY_VIEW";
|
|
3350
|
+
PermissionsEnum["CUSTOM_SMTP_VIEW"] = "CUSTOM_SMTP_VIEW";
|
|
3351
|
+
PermissionsEnum["VIEW_ALL_ACCOUNTING_TEMPLATES"] = "VIEW_ALL_ACCOUNTING_TEMPLATES";
|
|
3352
|
+
PermissionsEnum["ACCESS_DELETE_ACCOUNT"] = "ACCESS_DELETE_ACCOUNT";
|
|
3353
|
+
PermissionsEnum["ACCESS_DELETE_ALL_DATA"] = "ACCESS_DELETE_ALL_DATA";
|
|
3354
|
+
})(exports.PermissionsEnum || (exports.PermissionsEnum = {}));
|
|
3355
|
+
var PermissionGroups = {
|
|
3356
|
+
//Permissions which can be given to any role
|
|
3357
|
+
GENERAL: [
|
|
3358
|
+
"PROFILE_EDIT",
|
|
3359
|
+
"ADMIN_DASHBOARD_VIEW",
|
|
3360
|
+
"ORG_INVITE_VIEW",
|
|
3361
|
+
"ORG_INVITE_EDIT",
|
|
3362
|
+
"VIEW_ALL_EMAILS",
|
|
3363
|
+
"VIEW_ALL_EMAIL_TEMPLATES",
|
|
3364
|
+
"INTEGRATION_EDIT",
|
|
3365
|
+
"ORG_DEMO_EDIT",
|
|
3366
|
+
// PermissionsEnum.VIEW_ALL_ACCOUNTING_TEMPLATES,
|
|
3367
|
+
// AI
|
|
3368
|
+
exports.AIPermissionsEnum.KNOWLEDGEBASE_EDIT,
|
|
3369
|
+
exports.AIPermissionsEnum.COPILOT_VIEW,
|
|
3370
|
+
exports.AIPermissionsEnum.COPILOT_EDIT,
|
|
3371
|
+
exports.AIPermissionsEnum.XPERT_EDIT,
|
|
3372
|
+
exports.AIPermissionsEnum.CHAT_VIEW,
|
|
3373
|
+
// DataSource
|
|
3374
|
+
exports.AnalyticsPermissionsEnum.DATA_SOURCE_VIEW,
|
|
3375
|
+
exports.AnalyticsPermissionsEnum.DATA_SOURCE_EDIT,
|
|
3376
|
+
// Semantic Model
|
|
3377
|
+
exports.AnalyticsPermissionsEnum.MODELS_VIEW,
|
|
3378
|
+
exports.AnalyticsPermissionsEnum.MODELS_EDIT,
|
|
3379
|
+
// Story
|
|
3380
|
+
exports.AnalyticsPermissionsEnum.STORIES_VIEW,
|
|
3381
|
+
exports.AnalyticsPermissionsEnum.STORIES_EDIT,
|
|
3382
|
+
// Business Area
|
|
3383
|
+
exports.AnalyticsPermissionsEnum.BUSINESS_AREA_VIEW,
|
|
3384
|
+
exports.AnalyticsPermissionsEnum.BUSINESS_AREA_EDIT,
|
|
3385
|
+
// Certification
|
|
3386
|
+
exports.AnalyticsPermissionsEnum.CERTIFICATION_EDIT,
|
|
3387
|
+
// Indicator
|
|
3388
|
+
exports.AnalyticsPermissionsEnum.INDICATOR_VIEW,
|
|
3389
|
+
exports.AnalyticsPermissionsEnum.INDICATOR_MARTKET_VIEW,
|
|
3390
|
+
exports.AnalyticsPermissionsEnum.INDICATOR_EDIT,
|
|
3391
|
+
// Data Factory
|
|
3392
|
+
exports.AnalyticsPermissionsEnum.DATA_FACTORY_VIEW,
|
|
3393
|
+
exports.AnalyticsPermissionsEnum.DATA_FACTORY_EDIT
|
|
3394
|
+
],
|
|
3395
|
+
//Readonly permissions, are only enabled for admin role
|
|
3396
|
+
ADMINISTRATION: [
|
|
3397
|
+
"ORG_USERS_VIEW",
|
|
3398
|
+
"ORG_USERS_EDIT",
|
|
3399
|
+
"ALL_ORG_VIEW",
|
|
3400
|
+
"ALL_ORG_EDIT",
|
|
3401
|
+
"CHANGE_SELECTED_ORGANIZATION",
|
|
3402
|
+
"CHANGE_ROLES_PERMISSIONS",
|
|
3403
|
+
"SUPER_ADMIN_EDIT",
|
|
3404
|
+
"INTEGRATION_VIEW",
|
|
3405
|
+
"ACCESS_DELETE_ACCOUNT",
|
|
3406
|
+
"ACCESS_DELETE_ALL_DATA"
|
|
3407
|
+
]
|
|
3408
|
+
};
|
|
3409
|
+
|
|
3410
|
+
exports.TagCategoryEnum = void 0;
|
|
3411
|
+
(function(TagCategoryEnum) {
|
|
3412
|
+
TagCategoryEnum["INDICATOR"] = "indicator";
|
|
3413
|
+
TagCategoryEnum["STORY"] = "story";
|
|
3414
|
+
TagCategoryEnum["TOOLSET"] = "toolset";
|
|
3415
|
+
TagCategoryEnum["XPERT"] = "xpert";
|
|
3416
|
+
})(exports.TagCategoryEnum || (exports.TagCategoryEnum = {}));
|
|
3417
|
+
|
|
3418
|
+
var DEFAULT_TENANT = "Default Tenant";
|
|
3419
|
+
|
|
3420
|
+
var TranslationLanguageMap = {
|
|
3421
|
+
"zh-CN": "zh",
|
|
3422
|
+
"zh-Hans": "zh"
|
|
3423
|
+
};
|
|
3424
|
+
function mapTranslationLanguage(languageCode) {
|
|
3425
|
+
return TranslationLanguageMap[languageCode] || languageCode;
|
|
3426
|
+
}
|
|
3427
|
+
|
|
3428
|
+
exports.RolesEnum = void 0;
|
|
3429
|
+
(function(RolesEnum) {
|
|
3430
|
+
RolesEnum["SUPER_ADMIN"] = "SUPER_ADMIN";
|
|
3431
|
+
RolesEnum["ADMIN"] = "ADMIN";
|
|
3432
|
+
RolesEnum["DATA_ENTRY"] = "DATA_ENTRY";
|
|
3433
|
+
RolesEnum["EMPLOYEE"] = "EMPLOYEE";
|
|
3434
|
+
RolesEnum["CANDIDATE"] = "CANDIDATE";
|
|
3435
|
+
RolesEnum["MANAGER"] = "MANAGER";
|
|
3436
|
+
RolesEnum["VIEWER"] = "VIEWER";
|
|
3437
|
+
// 有所免费用户
|
|
3438
|
+
RolesEnum["TRIAL"] = "TRIAL";
|
|
3439
|
+
})(exports.RolesEnum || (exports.RolesEnum = {}));
|
|
3440
|
+
|
|
3441
|
+
exports.UserType = void 0;
|
|
3442
|
+
(function(UserType) {
|
|
3443
|
+
UserType["USER"] = "user";
|
|
3444
|
+
UserType["COMMUNICATION"] = "communication";
|
|
3445
|
+
})(exports.UserType || (exports.UserType = {}));
|
|
3446
|
+
exports.LanguagesEnum = void 0;
|
|
3447
|
+
(function(LanguagesEnum) {
|
|
3448
|
+
LanguagesEnum["Chinese"] = "zh-CN";
|
|
3449
|
+
LanguagesEnum["SimplifiedChinese"] = "zh-Hans";
|
|
3450
|
+
LanguagesEnum["TraditionalChinese"] = "zh-Hant";
|
|
3451
|
+
LanguagesEnum["English"] = "en";
|
|
3452
|
+
})(exports.LanguagesEnum || (exports.LanguagesEnum = {}));
|
|
3453
|
+
var LanguagesMap = {
|
|
3454
|
+
"zh-CN": "zh-Hans",
|
|
3455
|
+
"zh-Hans": "zh-Hans",
|
|
3456
|
+
"zh": "zh-Hans"
|
|
3457
|
+
};
|
|
3458
|
+
exports.ProviderEnum = void 0;
|
|
3459
|
+
(function(ProviderEnum) {
|
|
3460
|
+
ProviderEnum["GOOGLE"] = "google";
|
|
3461
|
+
ProviderEnum["FACEBOOK"] = "facebook";
|
|
3462
|
+
})(exports.ProviderEnum || (exports.ProviderEnum = {}));
|
|
3463
|
+
|
|
3464
|
+
/* eslint-disable @typescript-eslint/no-empty-interface */ exports.SMTPSecureEnum = void 0;
|
|
3465
|
+
(function(SMTPSecureEnum) {
|
|
3466
|
+
SMTPSecureEnum["TRUE"] = "True";
|
|
3467
|
+
SMTPSecureEnum["FALSE"] = "False";
|
|
3468
|
+
})(exports.SMTPSecureEnum || (exports.SMTPSecureEnum = {}));
|
|
3469
|
+
|
|
3470
|
+
exports.IntegrationEnum = void 0;
|
|
3471
|
+
(function(IntegrationEnum) {
|
|
3472
|
+
IntegrationEnum["UPWORK"] = "Upwork";
|
|
3473
|
+
IntegrationEnum["HUBSTAFF"] = "Hubstaff";
|
|
3474
|
+
IntegrationEnum["LARK"] = "Lark";
|
|
3475
|
+
IntegrationEnum["DINGTALK"] = "DingTalk";
|
|
3476
|
+
IntegrationEnum["WECOM"] = "WeCom";
|
|
3477
|
+
IntegrationEnum["FIRECRAWL"] = "firecrawl";
|
|
3478
|
+
IntegrationEnum["KNOWLEDGEBASE"] = "knowledgebase";
|
|
3479
|
+
IntegrationEnum["GITHUB"] = "github";
|
|
3480
|
+
IntegrationEnum["RAGFlow"] = "ragflow";
|
|
3481
|
+
IntegrationEnum["Dify"] = "dify";
|
|
3482
|
+
IntegrationEnum["FastGPT"] = "fastgpt";
|
|
3483
|
+
})(exports.IntegrationEnum || (exports.IntegrationEnum = {}));
|
|
3484
|
+
exports.IntegrationFeatureEnum = void 0;
|
|
3485
|
+
(function(IntegrationFeatureEnum) {
|
|
3486
|
+
IntegrationFeatureEnum["KNOWLEDGE"] = "knowledge";
|
|
3487
|
+
IntegrationFeatureEnum["AGENT"] = "agent";
|
|
3488
|
+
IntegrationFeatureEnum["SSO"] = "sso";
|
|
3489
|
+
})(exports.IntegrationFeatureEnum || (exports.IntegrationFeatureEnum = {}));
|
|
3490
|
+
exports.IntegrationFilterEnum = void 0;
|
|
3491
|
+
(function(IntegrationFilterEnum) {
|
|
3492
|
+
IntegrationFilterEnum["ALL"] = "All";
|
|
3493
|
+
IntegrationFilterEnum["FREE"] = "Free";
|
|
3494
|
+
IntegrationFilterEnum["PAID"] = "Paid";
|
|
3495
|
+
})(exports.IntegrationFilterEnum || (exports.IntegrationFilterEnum = {}));
|
|
3496
|
+
var DEFAULT_INTEGRATION_PAID_FILTERS = [
|
|
3497
|
+
{
|
|
3498
|
+
label: "All",
|
|
3499
|
+
value: "all"
|
|
3500
|
+
},
|
|
3501
|
+
{
|
|
3502
|
+
label: "Free",
|
|
3503
|
+
value: "false"
|
|
3504
|
+
},
|
|
3505
|
+
{
|
|
3506
|
+
label: "Paid",
|
|
3507
|
+
value: "true"
|
|
3508
|
+
}
|
|
3509
|
+
];
|
|
3510
|
+
|
|
3511
|
+
exports.InviteStatusEnum = void 0;
|
|
3512
|
+
(function(InviteStatusEnum) {
|
|
3513
|
+
InviteStatusEnum["INVITED"] = "INVITED";
|
|
3514
|
+
InviteStatusEnum["ACCEPTED"] = "ACCEPTED";
|
|
3515
|
+
})(exports.InviteStatusEnum || (exports.InviteStatusEnum = {}));
|
|
3516
|
+
exports.InvitationTypeEnum = void 0;
|
|
3517
|
+
(function(InvitationTypeEnum) {
|
|
3518
|
+
InvitationTypeEnum["USER"] = "USER";
|
|
3519
|
+
InvitationTypeEnum["EMPLOYEE"] = "EMPLOYEE";
|
|
3520
|
+
InvitationTypeEnum["CANDIDATE"] = "CANDIDATE";
|
|
3521
|
+
})(exports.InvitationTypeEnum || (exports.InvitationTypeEnum = {}));
|
|
3522
|
+
exports.InvitationExpirationEnum = void 0;
|
|
3523
|
+
(function(InvitationExpirationEnum) {
|
|
3524
|
+
InvitationExpirationEnum[InvitationExpirationEnum["DAY"] = 1] = "DAY";
|
|
3525
|
+
InvitationExpirationEnum[InvitationExpirationEnum["WEEK"] = 7] = "WEEK";
|
|
3526
|
+
InvitationExpirationEnum[InvitationExpirationEnum["TWO_WEEK"] = 14] = "TWO_WEEK";
|
|
3527
|
+
InvitationExpirationEnum[InvitationExpirationEnum["MONTH"] = 30] = "MONTH";
|
|
3528
|
+
InvitationExpirationEnum["NEVER"] = "Never";
|
|
3529
|
+
})(exports.InvitationExpirationEnum || (exports.InvitationExpirationEnum = {}));
|
|
3530
|
+
|
|
3531
|
+
exports.TaskListTypeEnum = void 0;
|
|
3532
|
+
(function(TaskListTypeEnum) {
|
|
3533
|
+
TaskListTypeEnum["GRID"] = "GRID";
|
|
3534
|
+
TaskListTypeEnum["SPRINT"] = "SPRINT";
|
|
3535
|
+
})(exports.TaskListTypeEnum || (exports.TaskListTypeEnum = {}));
|
|
3536
|
+
exports.OrganizationProjectBudgetTypeEnum = void 0;
|
|
3537
|
+
(function(OrganizationProjectBudgetTypeEnum) {
|
|
3538
|
+
OrganizationProjectBudgetTypeEnum["HOURS"] = "hours";
|
|
3539
|
+
OrganizationProjectBudgetTypeEnum["COST"] = "cost";
|
|
3540
|
+
})(exports.OrganizationProjectBudgetTypeEnum || (exports.OrganizationProjectBudgetTypeEnum = {}));
|
|
3541
|
+
|
|
3542
|
+
exports.Visibility = void 0;
|
|
3543
|
+
(function(Visibility) {
|
|
3544
|
+
Visibility["Public"] = "public";
|
|
3545
|
+
Visibility["Internal"] = "internal";
|
|
3546
|
+
Visibility["Secret"] = "secret";
|
|
3547
|
+
Visibility["Private"] = "private";
|
|
3548
|
+
})(exports.Visibility || (exports.Visibility = {}));
|
|
3549
|
+
|
|
3550
|
+
var IntegrationDingTalkProvider = {
|
|
3551
|
+
name: exports.IntegrationEnum.DINGTALK,
|
|
3552
|
+
label: {
|
|
3553
|
+
en_US: "DingTalk",
|
|
3554
|
+
zh_Hans: "钉钉"
|
|
3555
|
+
},
|
|
3556
|
+
avatar: "dingtalk.svg",
|
|
3557
|
+
webhook: true,
|
|
3558
|
+
schema: {
|
|
3559
|
+
type: "object",
|
|
3560
|
+
properties: {}
|
|
3561
|
+
},
|
|
3562
|
+
pro: true
|
|
3563
|
+
};
|
|
3564
|
+
|
|
3565
|
+
var IntegrationGitHubProvider = {
|
|
3566
|
+
name: exports.IntegrationEnum.GITHUB,
|
|
3567
|
+
label: {
|
|
3568
|
+
en_US: "GitHub",
|
|
3569
|
+
zh_Hans: "GitHub"
|
|
3570
|
+
},
|
|
3571
|
+
description: {
|
|
3572
|
+
en_US: "GitHub is a proprietary developer platform that allows developers to create, store, manage, and share their code. It uses Git to provide distributed version control and GitHub itself provides access control, bug tracking, software feature requests, task management, continuous integration, and wikis for every project.",
|
|
3573
|
+
zh_Hans: "GitHub 是一个专有的开发者平台,允许开发者创建、存储、管理和分享他们的代码。它使用 Git 提供分布式版本控制,GitHub 本身为每个项目提供访问控制、错误跟踪、软件功能请求、任务管理、持续集成和知识。"
|
|
3574
|
+
},
|
|
3575
|
+
avatar: "github.svg",
|
|
3576
|
+
webhook: true,
|
|
3577
|
+
schema: {
|
|
3578
|
+
type: "object",
|
|
3579
|
+
properties: {
|
|
3580
|
+
appName: {
|
|
3581
|
+
type: "string",
|
|
3582
|
+
description: "The App Name of the GitHub App"
|
|
3583
|
+
},
|
|
3584
|
+
appId: {
|
|
3585
|
+
type: "string",
|
|
3586
|
+
description: "The App ID of the GitHub App"
|
|
3587
|
+
},
|
|
3588
|
+
clientId: {
|
|
3589
|
+
type: "string",
|
|
3590
|
+
description: "The Client ID of the GitHub App"
|
|
3591
|
+
},
|
|
3592
|
+
clientSecret: {
|
|
3593
|
+
type: "string",
|
|
3594
|
+
description: "The Client Secret of the GitHub App"
|
|
3595
|
+
},
|
|
3596
|
+
privateKey: {
|
|
3597
|
+
type: "textarea",
|
|
3598
|
+
description: "The private key of the GitHub App"
|
|
3599
|
+
},
|
|
3600
|
+
webhookSecret: {
|
|
3601
|
+
type: "string",
|
|
3602
|
+
description: "The webhook secret of the GitHub App"
|
|
3603
|
+
}
|
|
3604
|
+
}
|
|
3605
|
+
}
|
|
3606
|
+
};
|
|
3607
|
+
/**
|
|
3608
|
+
* Transform GitHub API installation data to our simplified format
|
|
3609
|
+
*/ var transformInstallation = function(installation) {
|
|
3610
|
+
if (!installation.account) {
|
|
3611
|
+
throw new Error("Installation account is null");
|
|
3612
|
+
}
|
|
3613
|
+
// Handle both User and Organization account types
|
|
3614
|
+
var accountName;
|
|
3615
|
+
if ("login" in installation.account && installation.account.login) {
|
|
3616
|
+
accountName = installation.account.login;
|
|
3617
|
+
} else if ("slug" in installation.account && installation.account.slug) {
|
|
3618
|
+
accountName = installation.account.slug;
|
|
3619
|
+
} else if ("name" in installation.account && installation.account.name) {
|
|
3620
|
+
accountName = installation.account.name;
|
|
3621
|
+
} else {
|
|
3622
|
+
accountName = "Unknown";
|
|
3623
|
+
}
|
|
3624
|
+
var accountType = installation.target_type;
|
|
3625
|
+
return {
|
|
3626
|
+
id: installation.id,
|
|
3627
|
+
accountName: accountName,
|
|
3628
|
+
accountType: accountType,
|
|
3629
|
+
avatarUrl: installation.account.avatar_url
|
|
3630
|
+
};
|
|
3631
|
+
};
|
|
3632
|
+
|
|
3633
|
+
var IntegrationLarkProvider = {
|
|
3634
|
+
name: exports.IntegrationEnum.LARK,
|
|
3635
|
+
label: {
|
|
3636
|
+
en_US: "Lark",
|
|
3637
|
+
zh_Hans: "飞书"
|
|
3638
|
+
},
|
|
3639
|
+
avatar: "lark.png",
|
|
3640
|
+
webhook: true,
|
|
3641
|
+
schema: {
|
|
3642
|
+
type: "object",
|
|
3643
|
+
properties: {
|
|
3644
|
+
isLark: {
|
|
3645
|
+
type: "boolean",
|
|
3646
|
+
title: {
|
|
3647
|
+
en_US: "Is Lark",
|
|
3648
|
+
zh_Hans: "国际版"
|
|
3649
|
+
}
|
|
3650
|
+
},
|
|
3651
|
+
appId: {
|
|
3652
|
+
type: "string",
|
|
3653
|
+
title: "App ID"
|
|
3654
|
+
},
|
|
3655
|
+
appSecret: {
|
|
3656
|
+
type: "string",
|
|
3657
|
+
title: "App Secret"
|
|
3658
|
+
},
|
|
3659
|
+
verificationToken: {
|
|
3660
|
+
type: "string",
|
|
3661
|
+
title: "Verification Token"
|
|
3662
|
+
},
|
|
3663
|
+
encryptKey: {
|
|
3664
|
+
type: "string",
|
|
3665
|
+
title: {
|
|
3666
|
+
en_US: "Encrypt Key"
|
|
3667
|
+
}
|
|
3668
|
+
},
|
|
3669
|
+
xpertId: {
|
|
3670
|
+
type: "remote-select",
|
|
3671
|
+
title: {
|
|
3672
|
+
en_US: "Xpert",
|
|
3673
|
+
zh_Hans: "数字专家"
|
|
3674
|
+
},
|
|
3675
|
+
placeholder: {
|
|
3676
|
+
en_US: "Choose a corresponding digital expert",
|
|
3677
|
+
zh_Hans: "选择一个对应的数字专家"
|
|
3678
|
+
},
|
|
3679
|
+
selectUrl: "/api/xpert/select-options"
|
|
3680
|
+
},
|
|
3681
|
+
preferLanguage: {
|
|
3682
|
+
type: "select",
|
|
3683
|
+
title: {
|
|
3684
|
+
en_US: "Preferred Language",
|
|
3685
|
+
zh_Hans: "首选语言"
|
|
3686
|
+
},
|
|
3687
|
+
options: [
|
|
3688
|
+
{
|
|
3689
|
+
value: "en",
|
|
3690
|
+
label: {
|
|
3691
|
+
en_US: "English",
|
|
3692
|
+
zh_Hans: "英语"
|
|
3693
|
+
}
|
|
3694
|
+
},
|
|
3695
|
+
{
|
|
3696
|
+
value: "zh",
|
|
3697
|
+
label: {
|
|
3698
|
+
en_US: "Chinese",
|
|
3699
|
+
zh_Hans: "中文"
|
|
3700
|
+
}
|
|
3701
|
+
}
|
|
3702
|
+
]
|
|
3703
|
+
}
|
|
3704
|
+
},
|
|
3705
|
+
required: [
|
|
3706
|
+
"appId",
|
|
3707
|
+
"appSecret"
|
|
3708
|
+
],
|
|
3709
|
+
secret: [
|
|
3710
|
+
"appSecret",
|
|
3711
|
+
"verificationToken",
|
|
3712
|
+
"encryptKey"
|
|
3713
|
+
]
|
|
3714
|
+
}
|
|
3715
|
+
};
|
|
3716
|
+
|
|
3717
|
+
function _define_property(obj, key, value) {
|
|
3718
|
+
if (key in obj) {
|
|
3719
|
+
Object.defineProperty(obj, key, {
|
|
3720
|
+
value: value,
|
|
3721
|
+
enumerable: true,
|
|
3722
|
+
configurable: true,
|
|
3723
|
+
writable: true
|
|
3724
|
+
});
|
|
3725
|
+
} else {
|
|
3726
|
+
obj[key] = value;
|
|
3727
|
+
}
|
|
3728
|
+
return obj;
|
|
3729
|
+
}
|
|
3730
|
+
var _obj;
|
|
3731
|
+
var INTEGRATION_PROVIDERS = (_obj = {}, // [IntegrationEnum.LARK]: IntegrationLarkProvider,
|
|
3732
|
+
_define_property(_obj, exports.IntegrationEnum.DINGTALK, IntegrationDingTalkProvider), // [IntegrationEnum.WECOM]: IntegrationWeComProvider,
|
|
3733
|
+
_define_property(_obj, exports.IntegrationEnum.GITHUB, IntegrationGitHubProvider), _obj);
|
|
3734
|
+
|
|
3735
|
+
exports.AiModelTypeEnum = void 0;
|
|
3736
|
+
(function(AiModelTypeEnum) {
|
|
3737
|
+
AiModelTypeEnum["LLM"] = "llm";
|
|
3738
|
+
AiModelTypeEnum["TEXT_EMBEDDING"] = "text-embedding";
|
|
3739
|
+
AiModelTypeEnum["RERANK"] = "rerank";
|
|
3740
|
+
AiModelTypeEnum["SPEECH2TEXT"] = "speech2text";
|
|
3741
|
+
AiModelTypeEnum["MODERATION"] = "moderation";
|
|
3742
|
+
AiModelTypeEnum["TTS"] = "tts";
|
|
3743
|
+
AiModelTypeEnum["TEXT2IMG"] = "text2img";
|
|
3744
|
+
})(exports.AiModelTypeEnum || (exports.AiModelTypeEnum = {}));
|
|
3745
|
+
|
|
3746
|
+
function _array_like_to_array$2(arr, len) {
|
|
3747
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
3748
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3749
|
+
return arr2;
|
|
3750
|
+
}
|
|
3751
|
+
function _array_with_holes$2(arr) {
|
|
3752
|
+
if (Array.isArray(arr)) return arr;
|
|
3753
|
+
}
|
|
3754
|
+
function _iterable_to_array_limit$1(arr, i) {
|
|
3755
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
3756
|
+
if (_i == null) return;
|
|
3757
|
+
var _arr = [];
|
|
3758
|
+
var _n = true;
|
|
3759
|
+
var _d = false;
|
|
3760
|
+
var _s, _e;
|
|
3761
|
+
try {
|
|
3762
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
3763
|
+
_arr.push(_s.value);
|
|
3764
|
+
if (i && _arr.length === i) break;
|
|
3765
|
+
}
|
|
3766
|
+
} catch (err) {
|
|
3767
|
+
_d = true;
|
|
3768
|
+
_e = err;
|
|
3769
|
+
} finally{
|
|
3770
|
+
try {
|
|
3771
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
3772
|
+
} finally{
|
|
3773
|
+
if (_d) throw _e;
|
|
3774
|
+
}
|
|
3775
|
+
}
|
|
3776
|
+
return _arr;
|
|
3777
|
+
}
|
|
3778
|
+
function _non_iterable_rest$2() {
|
|
3779
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3780
|
+
}
|
|
3781
|
+
function _sliced_to_array$1(arr, i) {
|
|
3782
|
+
return _array_with_holes$2(arr) || _iterable_to_array_limit$1(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$2();
|
|
3783
|
+
}
|
|
3784
|
+
function _unsupported_iterable_to_array$2(o, minLen) {
|
|
3785
|
+
if (!o) return;
|
|
3786
|
+
if (typeof o === "string") return _array_like_to_array$2(o, minLen);
|
|
3787
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3788
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3789
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3790
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$2(o, minLen);
|
|
3791
|
+
}
|
|
3792
|
+
/**
|
|
3793
|
+
* Channels of all upstream and downstream nodes relative to the starting point startKey.
|
|
3794
|
+
*
|
|
3795
|
+
* @param graph
|
|
3796
|
+
* @param startKey
|
|
3797
|
+
*/ function allChannels(graph, startKey) {
|
|
3798
|
+
graph = getCurrentGraph(graph, startKey);
|
|
3799
|
+
return graph.nodes.filter(function(node) {
|
|
3800
|
+
return !(node.type === "workflow" && isRouterKey(node.key));
|
|
3801
|
+
}).map(function(node) {
|
|
3802
|
+
return node.key;
|
|
3803
|
+
});
|
|
3804
|
+
}
|
|
3805
|
+
function findStartNodes(graph, key) {
|
|
3806
|
+
var toMap = new Map();
|
|
3807
|
+
// Consider only horizontal processes
|
|
3808
|
+
var connections = graph.connections.filter(function(_) {
|
|
3809
|
+
return _.type === "edge";
|
|
3810
|
+
});
|
|
3811
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
3812
|
+
try {
|
|
3813
|
+
// Construct toMap: record all upstream nodes of each node
|
|
3814
|
+
for(var _iterator = connections[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
3815
|
+
var conn = _step.value;
|
|
3816
|
+
if (!toMap.has(conn.to)) toMap.set(conn.to, []);
|
|
3817
|
+
var _conn_from_split = _sliced_to_array$1(conn.from.split("/"), 1), fromKey = _conn_from_split[0];
|
|
3818
|
+
if (conn.type === "edge") {
|
|
3819
|
+
toMap.get(conn.to).push(fromKey);
|
|
3820
|
+
}
|
|
3821
|
+
}
|
|
3822
|
+
} catch (err) {
|
|
3823
|
+
_didIteratorError = true;
|
|
3824
|
+
_iteratorError = err;
|
|
3825
|
+
} finally{
|
|
3826
|
+
try {
|
|
3827
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
3828
|
+
_iterator.return();
|
|
3829
|
+
}
|
|
3830
|
+
} finally{
|
|
3831
|
+
if (_didIteratorError) {
|
|
3832
|
+
throw _iteratorError;
|
|
3833
|
+
}
|
|
3834
|
+
}
|
|
3835
|
+
}
|
|
3836
|
+
var result = new Set();
|
|
3837
|
+
var checked = [];
|
|
3838
|
+
// Recursively search upstream until you reach the starting point
|
|
3839
|
+
function dfsUp(nodeKey) {
|
|
3840
|
+
checked.push(nodeKey);
|
|
3841
|
+
var parents = toMap.get(nodeKey);
|
|
3842
|
+
// There is no upstream, this is the starting point
|
|
3843
|
+
if (!parents || parents.length === 0) {
|
|
3844
|
+
result.add(nodeKey);
|
|
3845
|
+
return;
|
|
3846
|
+
}
|
|
3847
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
3848
|
+
try {
|
|
3849
|
+
for(var _iterator = parents[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
3850
|
+
var parent = _step.value;
|
|
3851
|
+
// There is a cycle
|
|
3852
|
+
if (checked.includes(parent)) {
|
|
3853
|
+
return;
|
|
3854
|
+
}
|
|
3855
|
+
dfsUp(parent);
|
|
3856
|
+
}
|
|
3857
|
+
} catch (err) {
|
|
3858
|
+
_didIteratorError = true;
|
|
3859
|
+
_iteratorError = err;
|
|
3860
|
+
} finally{
|
|
3861
|
+
try {
|
|
3862
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
3863
|
+
_iterator.return();
|
|
3864
|
+
}
|
|
3865
|
+
} finally{
|
|
3866
|
+
if (_didIteratorError) {
|
|
3867
|
+
throw _iteratorError;
|
|
3868
|
+
}
|
|
3869
|
+
}
|
|
3870
|
+
}
|
|
3871
|
+
}
|
|
3872
|
+
dfsUp(key);
|
|
3873
|
+
return Array.from(result);
|
|
3874
|
+
}
|
|
3875
|
+
/**
|
|
3876
|
+
* Keep the content in the same graph as the key node (including the node, its connected nodes, and the 'edge' type connections between them)
|
|
3877
|
+
*
|
|
3878
|
+
* @param graph
|
|
3879
|
+
* @param key
|
|
3880
|
+
* @returns
|
|
3881
|
+
*/ function getCurrentGraph(graph, key) {
|
|
3882
|
+
var validConnections = graph.connections.filter(function(conn) {
|
|
3883
|
+
return conn.type === "edge";
|
|
3884
|
+
});
|
|
3885
|
+
// Extract the primary key (remove the / suffix)
|
|
3886
|
+
var normalize = function(k) {
|
|
3887
|
+
return k.split("/")[0];
|
|
3888
|
+
};
|
|
3889
|
+
// Adjacency list: bidirectional (because you want to traverse the current graph)
|
|
3890
|
+
var adjacency = new Map();
|
|
3891
|
+
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
3892
|
+
try {
|
|
3893
|
+
for(var _iterator = validConnections[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
3894
|
+
var conn = _step.value;
|
|
3895
|
+
var from = normalize(conn.from);
|
|
3896
|
+
var to = normalize(conn.to);
|
|
3897
|
+
if (!adjacency.has(from)) adjacency.set(from, new Set());
|
|
3898
|
+
if (!adjacency.has(to)) adjacency.set(to, new Set());
|
|
3899
|
+
adjacency.get(from).add(to);
|
|
3900
|
+
adjacency.get(to).add(from);
|
|
3901
|
+
}
|
|
3902
|
+
} catch (err) {
|
|
3903
|
+
_didIteratorError = true;
|
|
3904
|
+
_iteratorError = err;
|
|
3905
|
+
} finally{
|
|
3906
|
+
try {
|
|
3907
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
3908
|
+
_iterator.return();
|
|
3909
|
+
}
|
|
3910
|
+
} finally{
|
|
3911
|
+
if (_didIteratorError) {
|
|
3912
|
+
throw _iteratorError;
|
|
3913
|
+
}
|
|
3914
|
+
}
|
|
3915
|
+
}
|
|
3916
|
+
var visited = new Set();
|
|
3917
|
+
var queue = key ? [
|
|
3918
|
+
normalize(key)
|
|
3919
|
+
] : [];
|
|
3920
|
+
// BFS/DFS collects all nodes in the same graph
|
|
3921
|
+
while(queue.length > 0){
|
|
3922
|
+
var current = queue.pop();
|
|
3923
|
+
if (visited.has(current)) continue;
|
|
3924
|
+
visited.add(current);
|
|
3925
|
+
var neighbors = adjacency.get(current) || new Set();
|
|
3926
|
+
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
3927
|
+
try {
|
|
3928
|
+
for(var _iterator1 = neighbors[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
3929
|
+
var neighbor = _step1.value;
|
|
3930
|
+
if (!visited.has(neighbor)) {
|
|
3931
|
+
queue.push(neighbor);
|
|
3932
|
+
}
|
|
3933
|
+
}
|
|
3934
|
+
} catch (err) {
|
|
3935
|
+
_didIteratorError1 = true;
|
|
3936
|
+
_iteratorError1 = err;
|
|
3937
|
+
} finally{
|
|
3938
|
+
try {
|
|
3939
|
+
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
3940
|
+
_iterator1.return();
|
|
3941
|
+
}
|
|
3942
|
+
} finally{
|
|
3943
|
+
if (_didIteratorError1) {
|
|
3944
|
+
throw _iteratorError1;
|
|
3945
|
+
}
|
|
3946
|
+
}
|
|
3947
|
+
}
|
|
3948
|
+
}
|
|
3949
|
+
new Set(graph.nodes.map(function(n) {
|
|
3950
|
+
return n.key;
|
|
3951
|
+
}));
|
|
3952
|
+
var keptNodes = graph.nodes.filter(function(n) {
|
|
3953
|
+
return visited.has(normalize(n.key));
|
|
3954
|
+
});
|
|
3955
|
+
new Set(keptNodes.map(function(n) {
|
|
3956
|
+
return n.key;
|
|
3957
|
+
}));
|
|
3958
|
+
var keptConnections = validConnections.filter(function(conn) {
|
|
3959
|
+
var from = normalize(conn.from);
|
|
3960
|
+
var to = normalize(conn.to);
|
|
3961
|
+
return visited.has(from) && visited.has(to);
|
|
3962
|
+
});
|
|
3963
|
+
return {
|
|
3964
|
+
nodes: keptNodes,
|
|
3965
|
+
connections: keptConnections
|
|
3966
|
+
};
|
|
3967
|
+
}
|
|
3968
|
+
function shortTitle(input) {
|
|
3969
|
+
if (input) {
|
|
3970
|
+
return input.length <= 50 ? input : input.slice(0, 50) + "...";
|
|
3971
|
+
}
|
|
3972
|
+
return null;
|
|
3973
|
+
}
|
|
3974
|
+
|
|
3975
|
+
function _array_like_to_array$1(arr, len) {
|
|
3976
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
3977
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
3978
|
+
return arr2;
|
|
3979
|
+
}
|
|
3980
|
+
function _array_with_holes$1(arr) {
|
|
3981
|
+
if (Array.isArray(arr)) return arr;
|
|
3982
|
+
}
|
|
3983
|
+
function _iterable_to_array(iter) {
|
|
3984
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
3985
|
+
}
|
|
3986
|
+
function _non_iterable_rest$1() {
|
|
3987
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
3988
|
+
}
|
|
3989
|
+
function _to_array(arr) {
|
|
3990
|
+
return _array_with_holes$1(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array$1(arr) || _non_iterable_rest$1();
|
|
3991
|
+
}
|
|
3992
|
+
function _unsupported_iterable_to_array$1(o, minLen) {
|
|
3993
|
+
if (!o) return;
|
|
3994
|
+
if (typeof o === "string") return _array_like_to_array$1(o, minLen);
|
|
3995
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
3996
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
3997
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
3998
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$1(o, minLen);
|
|
3999
|
+
}
|
|
4000
|
+
/**
|
|
4001
|
+
*
|
|
4002
|
+
* Returns the variable schema for a given variable name.
|
|
4003
|
+
* The variable name can be in the format of 'groupName.variableName' or just 'variableName'.
|
|
4004
|
+
*
|
|
4005
|
+
* @param variables
|
|
4006
|
+
* @param variable
|
|
4007
|
+
* @returns
|
|
4008
|
+
*/ function getVariableSchema(variables, variable) {
|
|
4009
|
+
var _variable_split;
|
|
4010
|
+
var _ref = _to_array((_variable_split = variable === null || variable === void 0 ? void 0 : variable.split(".")) !== null && _variable_split !== void 0 ? _variable_split : []), groupName = _ref[0], rest = _ref.slice(1);
|
|
4011
|
+
var group = variables === null || variables === void 0 ? void 0 : variables.find(function(_) {
|
|
4012
|
+
var __group, __group1;
|
|
4013
|
+
return rest.length ? ((__group = _.group) === null || __group === void 0 ? void 0 : __group.name) === groupName : !((__group1 = _.group) === null || __group1 === void 0 ? void 0 : __group1.name);
|
|
4014
|
+
});
|
|
4015
|
+
return {
|
|
4016
|
+
group: group,
|
|
4017
|
+
variable: group === null || group === void 0 ? void 0 : group.variables.find(function(_) {
|
|
4018
|
+
return _.name === (rest.join(".") || groupName);
|
|
4019
|
+
})
|
|
4020
|
+
};
|
|
4021
|
+
}
|
|
4022
|
+
|
|
4023
|
+
function _array_like_to_array(arr, len) {
|
|
4024
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
4025
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
4026
|
+
return arr2;
|
|
4027
|
+
}
|
|
4028
|
+
function _array_with_holes(arr) {
|
|
4029
|
+
if (Array.isArray(arr)) return arr;
|
|
4030
|
+
}
|
|
4031
|
+
function _iterable_to_array_limit(arr, i) {
|
|
4032
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
4033
|
+
if (_i == null) return;
|
|
4034
|
+
var _arr = [];
|
|
4035
|
+
var _n = true;
|
|
4036
|
+
var _d = false;
|
|
4037
|
+
var _s, _e;
|
|
4038
|
+
try {
|
|
4039
|
+
for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
|
|
4040
|
+
_arr.push(_s.value);
|
|
4041
|
+
if (i && _arr.length === i) break;
|
|
4042
|
+
}
|
|
4043
|
+
} catch (err) {
|
|
4044
|
+
_d = true;
|
|
4045
|
+
_e = err;
|
|
4046
|
+
} finally{
|
|
4047
|
+
try {
|
|
4048
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
4049
|
+
} finally{
|
|
4050
|
+
if (_d) throw _e;
|
|
4051
|
+
}
|
|
4052
|
+
}
|
|
4053
|
+
return _arr;
|
|
4054
|
+
}
|
|
4055
|
+
function _non_iterable_rest() {
|
|
4056
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4057
|
+
}
|
|
4058
|
+
function _sliced_to_array(arr, i) {
|
|
4059
|
+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
4060
|
+
}
|
|
4061
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
4062
|
+
if (!o) return;
|
|
4063
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
4064
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
4065
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
4066
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
4067
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
4068
|
+
}
|
|
4069
|
+
exports.ScheduleTaskStatus = void 0;
|
|
4070
|
+
(function(ScheduleTaskStatus) {
|
|
4071
|
+
ScheduleTaskStatus["PAUSED"] = "paused";
|
|
4072
|
+
ScheduleTaskStatus["ARCHIVED"] = "archived";
|
|
4073
|
+
ScheduleTaskStatus["SCHEDULED"] = "scheduled";
|
|
4074
|
+
})(exports.ScheduleTaskStatus || (exports.ScheduleTaskStatus = {}));
|
|
4075
|
+
exports.TaskFrequency = void 0;
|
|
4076
|
+
(function(TaskFrequency) {
|
|
4077
|
+
TaskFrequency["Once"] = "Once";
|
|
4078
|
+
TaskFrequency["Daily"] = "Daily";
|
|
4079
|
+
TaskFrequency["Weekly"] = "Weekly";
|
|
4080
|
+
TaskFrequency["Monthly"] = "Monthly";
|
|
4081
|
+
TaskFrequency["Yearly"] = "Yearly";
|
|
4082
|
+
})(exports.TaskFrequency || (exports.TaskFrequency = {}));
|
|
4083
|
+
/**
|
|
4084
|
+
* Generate cron expression: Minutes Hour Day Month Week
|
|
4085
|
+
*
|
|
4086
|
+
* @param schedule
|
|
4087
|
+
* @returns
|
|
4088
|
+
*/ function generateCronExpression(schedule) {
|
|
4089
|
+
if (!schedule.time) throw new Error("Time is required for scheduling");
|
|
4090
|
+
var _schedule_time_split = _sliced_to_array(schedule.time.split(":"), 2), hourStr = _schedule_time_split[0], minuteStr = _schedule_time_split[1];
|
|
4091
|
+
var hour = parseInt(hourStr, 10);
|
|
4092
|
+
var minute = parseInt(minuteStr, 10);
|
|
4093
|
+
if (isNaN(hour) || isNaN(minute) || hour < 0 || hour > 23 || minute < 0 || minute > 59) {
|
|
4094
|
+
throw new Error("Invalid time format. Expected HH:mm with valid hour and minute.");
|
|
4095
|
+
}
|
|
4096
|
+
switch(schedule.frequency){
|
|
4097
|
+
case "Once":
|
|
4098
|
+
{
|
|
4099
|
+
if (!schedule.date) throw new Error("Date is required for Once schedule");
|
|
4100
|
+
var date = new Date(schedule.date);
|
|
4101
|
+
// if (isNaN(date.getTime())) throw new Error('Invalid date format for Once schedule');
|
|
4102
|
+
return "".concat(minute, " ").concat(hour, " ").concat(date.getDate(), " ").concat(date.getMonth() + 1, " *");
|
|
4103
|
+
}
|
|
4104
|
+
case "Daily":
|
|
4105
|
+
return "".concat(minute, " ").concat(hour, " * * *");
|
|
4106
|
+
case "Weekly":
|
|
4107
|
+
if (schedule.dayOfWeek === undefined || schedule.dayOfWeek < 0 || schedule.dayOfWeek > 6) throw new Error("Valid dayOfWeek (0-6) is required for Weekly schedule");
|
|
4108
|
+
return "".concat(minute, " ").concat(hour, " * * ").concat(schedule.dayOfWeek);
|
|
4109
|
+
case "Monthly":
|
|
4110
|
+
if (!schedule.dayOfMonth || schedule.dayOfMonth < 1 || schedule.dayOfMonth > 31) throw new Error("Valid dayOfMonth (1-31) is required for Monthly schedule");
|
|
4111
|
+
return "".concat(minute, " ").concat(hour, " ").concat(schedule.dayOfMonth, " * *");
|
|
4112
|
+
case "Yearly":
|
|
4113
|
+
{
|
|
4114
|
+
if (!schedule.date) throw new Error("Date is required for Yearly schedule");
|
|
4115
|
+
var date1 = new Date(schedule.date);
|
|
4116
|
+
// if (isNaN(date.getTime())) throw new Error('Invalid date format for Yearly schedule');
|
|
4117
|
+
return "".concat(minute, " ").concat(hour, " ").concat(date1.getDate(), " ").concat(date1.getMonth() + 1, " *");
|
|
4118
|
+
}
|
|
4119
|
+
default:
|
|
4120
|
+
throw new Error("Unsupported frequency: ".concat(schedule.frequency));
|
|
4121
|
+
}
|
|
4122
|
+
}
|
|
4123
|
+
|
|
4124
|
+
exports.InterruptMessageType = void 0;
|
|
4125
|
+
(function(InterruptMessageType) {
|
|
4126
|
+
InterruptMessageType["SlidesTemplate"] = "slides_template";
|
|
4127
|
+
InterruptMessageType["SwitchGitHubRepository"] = "switch_github_repository";
|
|
4128
|
+
InterruptMessageType["Select"] = "select";
|
|
4129
|
+
})(exports.InterruptMessageType || (exports.InterruptMessageType = {}));
|
|
4130
|
+
|
|
4131
|
+
exports.AI_MODEL_TYPE_VARIABLE = AI_MODEL_TYPE_VARIABLE;
|
|
4132
|
+
exports.Attachment_Type_Options = Attachment_Type_Options;
|
|
4133
|
+
exports.CONTEXT_VARIABLE_CURRENTSTATE = CONTEXT_VARIABLE_CURRENTSTATE;
|
|
4134
|
+
exports.DEFAULT_CURRENCIES = DEFAULT_CURRENCIES;
|
|
4135
|
+
exports.DEFAULT_DATE_FORMATS = DEFAULT_DATE_FORMATS;
|
|
4136
|
+
exports.DEFAULT_INTEGRATION_PAID_FILTERS = DEFAULT_INTEGRATION_PAID_FILTERS;
|
|
4137
|
+
exports.DEFAULT_INVITE_EXPIRY_PERIOD = DEFAULT_INVITE_EXPIRY_PERIOD;
|
|
4138
|
+
exports.DEFAULT_PROFIT_BASED_BONUS = DEFAULT_PROFIT_BASED_BONUS;
|
|
4139
|
+
exports.DEFAULT_REVENUE_BASED_BONUS = DEFAULT_REVENUE_BASED_BONUS;
|
|
4140
|
+
exports.DEFAULT_TENANT = DEFAULT_TENANT;
|
|
4141
|
+
exports.DEFAULT_TIME_FORMATS = DEFAULT_TIME_FORMATS;
|
|
4142
|
+
exports.GRAPH_NODE_SUMMARIZE_CONVERSATION = GRAPH_NODE_SUMMARIZE_CONVERSATION;
|
|
4143
|
+
exports.GRAPH_NODE_TITLE_CONVERSATION = GRAPH_NODE_TITLE_CONVERSATION;
|
|
4144
|
+
exports.INTEGRATION_PROVIDERS = INTEGRATION_PROVIDERS;
|
|
4145
|
+
exports.IndicatorOptionFields = IndicatorOptionFields;
|
|
4146
|
+
exports.IntegrationGitHubProvider = IntegrationGitHubProvider;
|
|
4147
|
+
exports.IntegrationLarkProvider = IntegrationLarkProvider;
|
|
4148
|
+
exports.IteratingIndexParameterName = IteratingIndexParameterName;
|
|
4149
|
+
exports.IteratingItemParameterName = IteratingItemParameterName;
|
|
4150
|
+
exports.KDocumentSourceType = KDocumentSourceType;
|
|
4151
|
+
exports.KDocumentWebTypeOptions = KDocumentWebTypeOptions;
|
|
4152
|
+
exports.KNOWLEDGE_DOCUMENTS_NAME = KNOWLEDGE_DOCUMENTS_NAME;
|
|
4153
|
+
exports.KNOWLEDGE_FOLDER_ID_NAME = KNOWLEDGE_FOLDER_ID_NAME;
|
|
4154
|
+
exports.KNOWLEDGE_SOURCES_NAME = KNOWLEDGE_SOURCES_NAME;
|
|
4155
|
+
exports.KNOWLEDGE_STAGE_NAME = KNOWLEDGE_STAGE_NAME;
|
|
4156
|
+
exports.KnowledgeTask = KnowledgeTask;
|
|
4157
|
+
exports.KnowledgebaseChannel = KnowledgebaseChannel;
|
|
4158
|
+
exports.LanguagesMap = LanguagesMap;
|
|
4159
|
+
exports.MDX = schema;
|
|
4160
|
+
exports.MEMORY_PROFILE_PROMPT = MEMORY_PROFILE_PROMPT;
|
|
4161
|
+
exports.MEMORY_QA_PROMPT = MEMORY_QA_PROMPT;
|
|
4162
|
+
exports.OllamaEmbeddingsProviders = OllamaEmbeddingsProviders;
|
|
4163
|
+
exports.OpenAIEmbeddingsProviders = OpenAIEmbeddingsProviders;
|
|
4164
|
+
exports.PermissionApprovalStatus = PermissionApprovalStatus;
|
|
4165
|
+
exports.PermissionGroups = PermissionGroups;
|
|
4166
|
+
exports.STATE_VARIABLE_FILES = STATE_VARIABLE_FILES;
|
|
4167
|
+
exports.STATE_VARIABLE_HUMAN = STATE_VARIABLE_HUMAN;
|
|
4168
|
+
exports.STATE_VARIABLE_INPUT = STATE_VARIABLE_INPUT;
|
|
4169
|
+
exports.STATE_VARIABLE_SYS = STATE_VARIABLE_SYS;
|
|
4170
|
+
exports.STATE_VARIABLE_TITLE_CHANNEL = STATE_VARIABLE_TITLE_CHANNEL;
|
|
4171
|
+
exports.TASK_DESCRIPTION_PREFIX = TASK_DESCRIPTION_PREFIX;
|
|
4172
|
+
exports.TASK_DESCRIPTION_SUFFIX = TASK_DESCRIPTION_SUFFIX;
|
|
4173
|
+
exports.TENANT_AGENT_LOCAL_URL = TENANT_AGENT_LOCAL_URL;
|
|
4174
|
+
exports.TOOL_NAME_REGEX = TOOL_NAME_REGEX;
|
|
4175
|
+
exports.TranslationLanguageMap = TranslationLanguageMap;
|
|
4176
|
+
exports.VariableOperations = VariableOperations;
|
|
4177
|
+
exports.agentLabel = agentLabel;
|
|
4178
|
+
exports.agentUniqueName = agentUniqueName;
|
|
4179
|
+
exports.allChannels = allChannels;
|
|
4180
|
+
exports.buildChunkTree = buildChunkTree;
|
|
4181
|
+
exports.channelName = channelName;
|
|
4182
|
+
exports.classificateDocumentCategory = classificateDocumentCategory;
|
|
4183
|
+
exports.collectTreeLeaves = collectTreeLeaves;
|
|
4184
|
+
exports.configurableStoreNamespace = configurableStoreNamespace;
|
|
4185
|
+
exports.convertToUrlPath = convertToUrlPath;
|
|
4186
|
+
exports.createAgentConnections = createAgentConnections;
|
|
4187
|
+
exports.createXpertGraph = createXpertGraph;
|
|
4188
|
+
exports.createXpertNodes = createXpertNodes;
|
|
4189
|
+
exports.embeddingCubeCollectionName = embeddingCubeCollectionName;
|
|
4190
|
+
exports.extractSemanticModelDraft = extractSemanticModelDraft;
|
|
4191
|
+
exports.figureOutXpert = figureOutXpert;
|
|
4192
|
+
exports.findStartNodes = findStartNodes;
|
|
4193
|
+
exports.genListOperatorKey = genListOperatorKey;
|
|
4194
|
+
exports.genPipelineChunkerKey = genPipelineChunkerKey;
|
|
4195
|
+
exports.genPipelineKnowledgeBaseKey = genPipelineKnowledgeBaseKey;
|
|
4196
|
+
exports.genPipelineProcessorKey = genPipelineProcessorKey;
|
|
4197
|
+
exports.genPipelineSourceKey = genPipelineSourceKey;
|
|
4198
|
+
exports.genPipelineUnderstandingKey = genPipelineUnderstandingKey;
|
|
4199
|
+
exports.genVariableAggregatorKey = genVariableAggregatorKey;
|
|
4200
|
+
exports.genXpertTriggerKey = genXpertTriggerKey;
|
|
4201
|
+
exports.generateCronExpression = generateCronExpression;
|
|
4202
|
+
exports.getAgentVarGroup = getAgentVarGroup;
|
|
4203
|
+
exports.getCurrentGraph = getCurrentGraph;
|
|
4204
|
+
exports.getEnabledTools = getEnabledTools;
|
|
4205
|
+
exports.getStoreNamespace = getStoreNamespace;
|
|
4206
|
+
exports.getSwarmPartners = getSwarmPartners;
|
|
4207
|
+
exports.getToolCallFromConfig = getToolCallFromConfig;
|
|
4208
|
+
exports.getToolCallIdFromConfig = getToolCallIdFromConfig;
|
|
4209
|
+
exports.getToolLabel = getToolLabel;
|
|
4210
|
+
exports.getVariableSchema = getVariableSchema;
|
|
4211
|
+
exports.getWorkflowTriggers = getWorkflowTriggers;
|
|
4212
|
+
exports.getWorkspaceFromRunnable = getWorkspaceFromRunnable;
|
|
4213
|
+
exports.isAgentKey = isAgentKey;
|
|
4214
|
+
exports.isAudioType = isAudioType;
|
|
4215
|
+
exports.isDocumentSheet = isDocumentSheet;
|
|
4216
|
+
exports.isEnableTool = isEnableTool;
|
|
4217
|
+
exports.isImageType = isImageType;
|
|
4218
|
+
exports.isIteratingKey = isIteratingKey;
|
|
4219
|
+
exports.isMessageGroup = isMessageGroup;
|
|
4220
|
+
exports.isRouterKey = isRouterKey;
|
|
4221
|
+
exports.isToolEnabled = isToolEnabled;
|
|
4222
|
+
exports.isVideoType = isVideoType;
|
|
4223
|
+
exports.isWorkflowKey = isWorkflowKey;
|
|
4224
|
+
exports.letterStartSUID = letterStartSUID;
|
|
4225
|
+
exports.locateNodes = locateNodes;
|
|
4226
|
+
exports.mapTranslationLanguage = mapTranslationLanguage;
|
|
4227
|
+
exports.messageContentText = messageContentText;
|
|
4228
|
+
exports.omitXpertRelations = omitXpertRelations;
|
|
4229
|
+
exports.setStateVariable = setStateVariable;
|
|
4230
|
+
exports.shortTitle = shortTitle;
|
|
4231
|
+
exports.transformInstallation = transformInstallation;
|
|
4232
|
+
exports.uuid = uuid;
|
|
4233
|
+
exports.workflowNodeIdentifier = workflowNodeIdentifier;
|
|
4234
|
+
exports.xpertLabel = xpertLabel;
|