@metad/contracts 3.6.2 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/index.cjs.js +260 -464
- package/index.esm.js +245 -465
- package/package.json +2 -2
- package/src/agent/graph.d.ts +3 -0
- package/src/agent/variables.d.ts +4 -2
- package/src/ai/index.d.ts +3 -0
- package/src/ai/knowledge-doc-chunk.model.d.ts +1 -0
- package/src/ai/knowledge-doc.model.d.ts +33 -3
- package/src/ai/knowledgebase.model.d.ts +13 -1
- package/src/ai/middleware.model.d.ts +18 -0
- package/src/ai/skill.model.d.ts +181 -0
- package/src/ai/types.d.ts +33 -1
- package/src/ai/xpert-agent.model.d.ts +12 -0
- package/src/ai/xpert-table.model.d.ts +84 -0
- package/src/ai/xpert-tool-mcp.model.d.ts +5 -0
- package/src/ai/xpert-tool.model.d.ts +7 -0
- package/src/ai/xpert-workflow.model.d.ts +42 -7
- package/src/ai/xpert.model.d.ts +25 -3
- package/src/ai/xpert.utils.d.ts +0 -3
- package/src/analytics/gateway.d.ts +1 -0
- package/src/analytics/indicator.d.ts +5 -6
- package/src/analytics/semantic-model-entity.d.ts +1 -0
- package/src/analytics/semantic-model-member.d.ts +3 -0
- package/src/analytics/semantic-model.d.ts +8 -0
- package/src/plugin.d.ts +1 -1
- package/src/types.d.ts +6 -2
package/index.esm.js
CHANGED
|
@@ -1,459 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
var shortUniqueId = {
|
|
6
|
-
exports: {}
|
|
7
|
-
};
|
|
1
|
+
import ShortUniqueId from 'short-unique-id';
|
|
8
2
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
];
|
|
37
|
-
a.push.apply(a, args);
|
|
38
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
39
|
-
var instance = new Constructor();
|
|
40
|
-
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
41
|
-
return instance;
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
return _construct.apply(null, arguments);
|
|
45
|
-
}
|
|
46
|
-
function _get_prototype_of(o) {
|
|
47
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
48
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
49
|
-
};
|
|
50
|
-
return _get_prototype_of(o);
|
|
51
|
-
}
|
|
52
|
-
function _inherits(subClass, superClass) {
|
|
53
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
54
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
55
|
-
}
|
|
56
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
57
|
-
constructor: {
|
|
58
|
-
value: subClass,
|
|
59
|
-
writable: true,
|
|
60
|
-
configurable: true
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
64
|
-
}
|
|
65
|
-
function _is_native_function(fn) {
|
|
66
|
-
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
67
|
-
}
|
|
68
|
-
function _iterable_to_array(iter) {
|
|
69
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
70
|
-
}
|
|
71
|
-
function _non_iterable_spread() {
|
|
72
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
73
|
-
}
|
|
74
|
-
function _possible_constructor_return(self, call) {
|
|
75
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
76
|
-
return call;
|
|
77
|
-
}
|
|
78
|
-
return _assert_this_initialized(self);
|
|
79
|
-
}
|
|
80
|
-
function _set_prototype_of(o, p) {
|
|
81
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
82
|
-
o.__proto__ = p;
|
|
83
|
-
return o;
|
|
84
|
-
};
|
|
85
|
-
return _set_prototype_of(o, p);
|
|
86
|
-
}
|
|
87
|
-
function _to_consumable_array(arr) {
|
|
88
|
-
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
89
|
-
}
|
|
90
|
-
function _type_of(obj) {
|
|
91
|
-
"@swc/helpers - typeof";
|
|
92
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
93
|
-
}
|
|
94
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
95
|
-
if (!o) return;
|
|
96
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
97
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
98
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
99
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
100
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
101
|
-
}
|
|
102
|
-
function _wrap_native_super(Class) {
|
|
103
|
-
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
104
|
-
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
105
|
-
if (Class === null || !_is_native_function(Class)) return Class;
|
|
106
|
-
if (typeof Class !== "function") {
|
|
107
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
108
|
-
}
|
|
109
|
-
if (typeof _cache !== "undefined") {
|
|
110
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
|
111
|
-
_cache.set(Class, Wrapper);
|
|
112
|
-
}
|
|
113
|
-
function Wrapper() {
|
|
114
|
-
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
115
|
-
}
|
|
116
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
|
117
|
-
constructor: {
|
|
118
|
-
value: Wrapper,
|
|
119
|
-
enumerable: false,
|
|
120
|
-
writable: true,
|
|
121
|
-
configurable: true
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
return _set_prototype_of(Wrapper, Class);
|
|
125
|
-
};
|
|
126
|
-
return _wrap_native_super(Class);
|
|
127
|
-
}
|
|
128
|
-
function _is_native_reflect_construct() {
|
|
129
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
130
|
-
if (Reflect.construct.sham) return false;
|
|
131
|
-
if (typeof Proxy === "function") return true;
|
|
132
|
-
try {
|
|
133
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
134
|
-
return true;
|
|
135
|
-
} catch (e) {
|
|
136
|
-
return false;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
function _create_super(Derived) {
|
|
140
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
141
|
-
return function _createSuperInternal() {
|
|
142
|
-
var Super = _get_prototype_of(Derived), result;
|
|
143
|
-
if (hasNativeReflectConstruct) {
|
|
144
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
145
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
146
|
-
} else {
|
|
147
|
-
result = Super.apply(this, arguments);
|
|
148
|
-
}
|
|
149
|
-
return _possible_constructor_return(this, result);
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
var ShortUniqueId = function() {
|
|
153
|
-
var __defProp = Object.defineProperty;
|
|
154
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
155
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
156
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
157
|
-
var __defNormalProp = function(obj, key, value) {
|
|
158
|
-
return key in obj ? __defProp(obj, key, {
|
|
159
|
-
enumerable: true,
|
|
160
|
-
configurable: true,
|
|
161
|
-
writable: true,
|
|
162
|
-
value: value
|
|
163
|
-
}) : obj[key] = value;
|
|
164
|
-
};
|
|
165
|
-
var __spreadValues = function(a, b) {
|
|
166
|
-
for(var prop in b || (b = {}))if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
167
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
168
|
-
if (__getOwnPropSymbols) try {
|
|
169
|
-
for(var _iterator = __getOwnPropSymbols(b)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
170
|
-
var prop = _step.value;
|
|
171
|
-
if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
172
|
-
}
|
|
173
|
-
} catch (err) {
|
|
174
|
-
_didIteratorError = true;
|
|
175
|
-
_iteratorError = err;
|
|
176
|
-
} finally{
|
|
177
|
-
try {
|
|
178
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
179
|
-
_iterator.return();
|
|
180
|
-
}
|
|
181
|
-
} finally{
|
|
182
|
-
if (_didIteratorError) {
|
|
183
|
-
throw _iteratorError;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
return a;
|
|
188
|
-
};
|
|
189
|
-
var __markAsModule = function(target) {
|
|
190
|
-
return __defProp(target, "__esModule", {
|
|
191
|
-
value: true
|
|
192
|
-
});
|
|
193
|
-
};
|
|
194
|
-
var __export = function(target, all) {
|
|
195
|
-
__markAsModule(target);
|
|
196
|
-
for(var name in all)__defProp(target, name, {
|
|
197
|
-
get: all[name],
|
|
198
|
-
enumerable: true
|
|
199
|
-
});
|
|
200
|
-
};
|
|
201
|
-
// src/index.ts
|
|
202
|
-
var src_exports = {};
|
|
203
|
-
__export(src_exports, {
|
|
204
|
-
DEFAULT_UUID_LENGTH: function() {
|
|
205
|
-
return DEFAULT_UUID_LENGTH;
|
|
206
|
-
},
|
|
207
|
-
default: function() {
|
|
208
|
-
return ShortUniqueId;
|
|
209
|
-
}
|
|
210
|
-
});
|
|
211
|
-
// package.json
|
|
212
|
-
var version = "4.4.4";
|
|
213
|
-
// src/index.ts
|
|
214
|
-
var DEFAULT_UUID_LENGTH = 6;
|
|
215
|
-
var DEFAULT_OPTIONS = {
|
|
216
|
-
dictionary: "alphanum",
|
|
217
|
-
shuffle: true,
|
|
218
|
-
debug: false,
|
|
219
|
-
length: DEFAULT_UUID_LENGTH
|
|
220
|
-
};
|
|
221
|
-
var _ShortUniqueId = /*#__PURE__*/ function(Function1) {
|
|
222
|
-
_inherits(_ShortUniqueId, Function1);
|
|
223
|
-
var _super = _create_super(_ShortUniqueId);
|
|
224
|
-
function _ShortUniqueId() {
|
|
225
|
-
var argOptions = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
226
|
-
_class_call_check(this, _ShortUniqueId);
|
|
227
|
-
var _this;
|
|
228
|
-
_this = _super.call(this);
|
|
229
|
-
_this.dictIndex = 0;
|
|
230
|
-
_this.dictRange = [];
|
|
231
|
-
_this.lowerBound = 0;
|
|
232
|
-
_this.upperBound = 0;
|
|
233
|
-
_this.dictLength = 0;
|
|
234
|
-
_this._digit_first_ascii = 48;
|
|
235
|
-
_this._digit_last_ascii = 58;
|
|
236
|
-
_this._alpha_lower_first_ascii = 97;
|
|
237
|
-
_this._alpha_lower_last_ascii = 123;
|
|
238
|
-
_this._hex_last_ascii = 103;
|
|
239
|
-
_this._alpha_upper_first_ascii = 65;
|
|
240
|
-
_this._alpha_upper_last_ascii = 91;
|
|
241
|
-
_this._number_dict_ranges = {
|
|
242
|
-
digits: [
|
|
243
|
-
_this._digit_first_ascii,
|
|
244
|
-
_this._digit_last_ascii
|
|
245
|
-
]
|
|
246
|
-
};
|
|
247
|
-
_this._alpha_dict_ranges = {
|
|
248
|
-
lowerCase: [
|
|
249
|
-
_this._alpha_lower_first_ascii,
|
|
250
|
-
_this._alpha_lower_last_ascii
|
|
251
|
-
],
|
|
252
|
-
upperCase: [
|
|
253
|
-
_this._alpha_upper_first_ascii,
|
|
254
|
-
_this._alpha_upper_last_ascii
|
|
255
|
-
]
|
|
256
|
-
};
|
|
257
|
-
_this._alpha_lower_dict_ranges = {
|
|
258
|
-
lowerCase: [
|
|
259
|
-
_this._alpha_lower_first_ascii,
|
|
260
|
-
_this._alpha_lower_last_ascii
|
|
261
|
-
]
|
|
262
|
-
};
|
|
263
|
-
_this._alpha_upper_dict_ranges = {
|
|
264
|
-
upperCase: [
|
|
265
|
-
_this._alpha_upper_first_ascii,
|
|
266
|
-
_this._alpha_upper_last_ascii
|
|
267
|
-
]
|
|
268
|
-
};
|
|
269
|
-
_this._alphanum_dict_ranges = {
|
|
270
|
-
digits: [
|
|
271
|
-
_this._digit_first_ascii,
|
|
272
|
-
_this._digit_last_ascii
|
|
273
|
-
],
|
|
274
|
-
lowerCase: [
|
|
275
|
-
_this._alpha_lower_first_ascii,
|
|
276
|
-
_this._alpha_lower_last_ascii
|
|
277
|
-
],
|
|
278
|
-
upperCase: [
|
|
279
|
-
_this._alpha_upper_first_ascii,
|
|
280
|
-
_this._alpha_upper_last_ascii
|
|
281
|
-
]
|
|
282
|
-
};
|
|
283
|
-
_this._alphanum_lower_dict_ranges = {
|
|
284
|
-
digits: [
|
|
285
|
-
_this._digit_first_ascii,
|
|
286
|
-
_this._digit_last_ascii
|
|
287
|
-
],
|
|
288
|
-
lowerCase: [
|
|
289
|
-
_this._alpha_lower_first_ascii,
|
|
290
|
-
_this._alpha_lower_last_ascii
|
|
291
|
-
]
|
|
292
|
-
};
|
|
293
|
-
_this._alphanum_upper_dict_ranges = {
|
|
294
|
-
digits: [
|
|
295
|
-
_this._digit_first_ascii,
|
|
296
|
-
_this._digit_last_ascii
|
|
297
|
-
],
|
|
298
|
-
upperCase: [
|
|
299
|
-
_this._alpha_upper_first_ascii,
|
|
300
|
-
_this._alpha_upper_last_ascii
|
|
301
|
-
]
|
|
302
|
-
};
|
|
303
|
-
_this._hex_dict_ranges = {
|
|
304
|
-
decDigits: [
|
|
305
|
-
_this._digit_first_ascii,
|
|
306
|
-
_this._digit_last_ascii
|
|
307
|
-
],
|
|
308
|
-
alphaDigits: [
|
|
309
|
-
_this._alpha_lower_first_ascii,
|
|
310
|
-
_this._hex_last_ascii
|
|
311
|
-
]
|
|
312
|
-
};
|
|
313
|
-
_this.log = function() {
|
|
314
|
-
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
315
|
-
args[_key] = arguments[_key];
|
|
316
|
-
}
|
|
317
|
-
var finalArgs = _to_consumable_array(args);
|
|
318
|
-
finalArgs[0] = "[short-unique-id] ".concat(args[0]);
|
|
319
|
-
if (_this.debug === true) {
|
|
320
|
-
if (typeof console !== "undefined" && console !== null) {
|
|
321
|
-
var _console;
|
|
322
|
-
return (_console = console).log.apply(_console, _to_consumable_array(finalArgs));
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
};
|
|
326
|
-
_this.setDictionary = function(dictionary, shuffle) {
|
|
327
|
-
var finalDict;
|
|
328
|
-
if (dictionary && Array.isArray(dictionary) && dictionary.length > 1) {
|
|
329
|
-
finalDict = dictionary;
|
|
330
|
-
} else {
|
|
331
|
-
finalDict = [];
|
|
332
|
-
var i;
|
|
333
|
-
_this.dictIndex = i = 0;
|
|
334
|
-
var rangesName = "_".concat(dictionary, "_dict_ranges");
|
|
335
|
-
var ranges = _this[rangesName];
|
|
336
|
-
Object.keys(ranges).forEach(function(rangeType) {
|
|
337
|
-
var rangeTypeKey = rangeType;
|
|
338
|
-
_this.dictRange = ranges[rangeTypeKey];
|
|
339
|
-
_this.lowerBound = _this.dictRange[0];
|
|
340
|
-
_this.upperBound = _this.dictRange[1];
|
|
341
|
-
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){
|
|
342
|
-
finalDict.push(String.fromCharCode(_this.dictIndex));
|
|
343
|
-
}
|
|
344
|
-
});
|
|
345
|
-
}
|
|
346
|
-
if (shuffle) {
|
|
347
|
-
var PROBABILITY = 0.5;
|
|
348
|
-
finalDict = finalDict.sort(function() {
|
|
349
|
-
return Math.random() - PROBABILITY;
|
|
350
|
-
});
|
|
351
|
-
}
|
|
352
|
-
_this.dict = finalDict;
|
|
353
|
-
_this.dictLength = _this.dict.length;
|
|
354
|
-
_this.counter = 0;
|
|
355
|
-
};
|
|
356
|
-
_this.seq = function() {
|
|
357
|
-
return _this.sequentialUUID();
|
|
358
|
-
};
|
|
359
|
-
_this.sequentialUUID = function() {
|
|
360
|
-
var counterDiv;
|
|
361
|
-
var counterRem;
|
|
362
|
-
var id = "";
|
|
363
|
-
counterDiv = _this.counter;
|
|
364
|
-
do {
|
|
365
|
-
counterRem = counterDiv % _this.dictLength;
|
|
366
|
-
counterDiv = Math.trunc(counterDiv / _this.dictLength);
|
|
367
|
-
id += _this.dict[counterRem];
|
|
368
|
-
}while (counterDiv !== 0);
|
|
369
|
-
_this.counter += 1;
|
|
370
|
-
return id;
|
|
371
|
-
};
|
|
372
|
-
_this.randomUUID = function() {
|
|
373
|
-
var uuidLength = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : _this.uuidLength || DEFAULT_UUID_LENGTH;
|
|
374
|
-
var id;
|
|
375
|
-
var randomPartIdx;
|
|
376
|
-
var j;
|
|
377
|
-
if (uuidLength === null || typeof uuidLength === "undefined" || uuidLength < 1) {
|
|
378
|
-
throw new Error("Invalid UUID Length Provided");
|
|
379
|
-
}
|
|
380
|
-
id = "";
|
|
381
|
-
for(j = 0; j < uuidLength; j += 1){
|
|
382
|
-
randomPartIdx = parseInt((Math.random() * _this.dictLength).toFixed(0), 10) % _this.dictLength;
|
|
383
|
-
id += _this.dict[randomPartIdx];
|
|
384
|
-
}
|
|
385
|
-
return id;
|
|
386
|
-
};
|
|
387
|
-
_this.availableUUIDs = function() {
|
|
388
|
-
var uuidLength = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : _this.uuidLength;
|
|
389
|
-
return parseFloat(Math.pow(_to_consumable_array(new Set(_this.dict)).length, uuidLength).toFixed(0));
|
|
390
|
-
};
|
|
391
|
-
_this.approxMaxBeforeCollision = function() {
|
|
392
|
-
var rounds = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : _this.availableUUIDs(_this.uuidLength);
|
|
393
|
-
return parseFloat(Math.sqrt(Math.PI / 2 * rounds).toFixed(20));
|
|
394
|
-
};
|
|
395
|
-
_this.collisionProbability = function() {
|
|
396
|
-
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;
|
|
397
|
-
return parseFloat((_this.approxMaxBeforeCollision(rounds) / _this.availableUUIDs(uuidLength)).toFixed(20));
|
|
398
|
-
};
|
|
399
|
-
_this.uniqueness = function() {
|
|
400
|
-
var rounds = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : _this.availableUUIDs(_this.uuidLength);
|
|
401
|
-
var score = parseFloat((1 - _this.approxMaxBeforeCollision(rounds) / rounds).toFixed(20));
|
|
402
|
-
return score > 1 ? 1 : score < 0 ? 0 : score;
|
|
403
|
-
};
|
|
404
|
-
_this.getVersion = function() {
|
|
405
|
-
return _this.version;
|
|
406
|
-
};
|
|
407
|
-
_this.stamp = function(finalLength) {
|
|
408
|
-
if (typeof finalLength !== "number" || finalLength < 10) {
|
|
409
|
-
throw new Error("Param finalLength must be number greater than 10");
|
|
410
|
-
}
|
|
411
|
-
var hexStamp = Math.floor(+new Date() / 1e3).toString(16);
|
|
412
|
-
var idLength = finalLength - 9;
|
|
413
|
-
var rndIdx = Math.round(Math.random() * (idLength > 15 ? 15 : idLength));
|
|
414
|
-
var id = _this.randomUUID(idLength);
|
|
415
|
-
return "".concat(id.substr(0, rndIdx)).concat(hexStamp).concat(id.substr(rndIdx)).concat(rndIdx.toString(16));
|
|
416
|
-
};
|
|
417
|
-
_this.parseStamp = function(stamp) {
|
|
418
|
-
if (stamp.length < 10) {
|
|
419
|
-
throw new Error("Stamp length invalid");
|
|
420
|
-
}
|
|
421
|
-
var rndIdx = parseInt(stamp.substr(stamp.length - 1, 1), 16);
|
|
422
|
-
return new Date(parseInt(stamp.substr(rndIdx, 8), 16) * 1e3);
|
|
423
|
-
};
|
|
424
|
-
var options = __spreadValues(__spreadValues({}, DEFAULT_OPTIONS), argOptions);
|
|
425
|
-
_this.counter = 0;
|
|
426
|
-
_this.debug = false;
|
|
427
|
-
_this.dict = [];
|
|
428
|
-
_this.version = version;
|
|
429
|
-
var dictionary = options.dictionary, shuffle = options.shuffle, length = options.length;
|
|
430
|
-
_this.uuidLength = length;
|
|
431
|
-
_this.setDictionary(dictionary, shuffle);
|
|
432
|
-
_this.debug = options.debug;
|
|
433
|
-
_this.log(_this.dict);
|
|
434
|
-
_this.log("Generator instantiated with Dictionary Size ".concat(_this.dictLength));
|
|
435
|
-
return _possible_constructor_return(_this, new Proxy(_assert_this_initialized(_this), {
|
|
436
|
-
apply: function(target, that, args) {
|
|
437
|
-
return _this.randomUUID.apply(_this, _to_consumable_array(args));
|
|
438
|
-
}
|
|
439
|
-
}));
|
|
440
|
-
}
|
|
441
|
-
return _ShortUniqueId;
|
|
442
|
-
}(_wrap_native_super(Function));
|
|
443
|
-
var ShortUniqueId = _ShortUniqueId;
|
|
444
|
-
ShortUniqueId.default = _ShortUniqueId;
|
|
445
|
-
return src_exports;
|
|
446
|
-
}();
|
|
447
|
-
|
|
448
|
-
(module.exports = ShortUniqueId.default), "undefined" != typeof window && (ShortUniqueId = ShortUniqueId.default);
|
|
449
|
-
} (shortUniqueId));
|
|
450
|
-
|
|
451
|
-
var shortUniqueIdExports = shortUniqueId.exports;
|
|
452
|
-
var ShortUniqueId = /*@__PURE__*/getDefaultExportFromCjs(shortUniqueIdExports);
|
|
453
|
-
|
|
454
|
-
var uuid = new ShortUniqueId({
|
|
3
|
+
function _array_like_to_array$5(arr, len) {
|
|
4
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
5
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
6
|
+
return arr2;
|
|
7
|
+
}
|
|
8
|
+
function _array_without_holes$1(arr) {
|
|
9
|
+
if (Array.isArray(arr)) return _array_like_to_array$5(arr);
|
|
10
|
+
}
|
|
11
|
+
function _iterable_to_array$2(iter) {
|
|
12
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
13
|
+
}
|
|
14
|
+
function _non_iterable_spread$1() {
|
|
15
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16
|
+
}
|
|
17
|
+
function _to_consumable_array$1(arr) {
|
|
18
|
+
return _array_without_holes$1(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$5(arr) || _non_iterable_spread$1();
|
|
19
|
+
}
|
|
20
|
+
function _unsupported_iterable_to_array$5(o, minLen) {
|
|
21
|
+
if (!o) return;
|
|
22
|
+
if (typeof o === "string") return _array_like_to_array$5(o, minLen);
|
|
23
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
24
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
25
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
26
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
|
|
27
|
+
}
|
|
28
|
+
var _uuidGenerator;
|
|
29
|
+
var uuidGenerator = new ShortUniqueId({
|
|
455
30
|
length: 10
|
|
456
31
|
});
|
|
32
|
+
var uuid = function() {
|
|
33
|
+
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
34
|
+
args[_key] = arguments[_key];
|
|
35
|
+
}
|
|
36
|
+
return (_uuidGenerator = uuidGenerator).randomUUID.apply(_uuidGenerator, _to_consumable_array$1(args));
|
|
37
|
+
};
|
|
457
38
|
var ParameterTypeEnum;
|
|
458
39
|
(function(ParameterTypeEnum) {
|
|
459
40
|
ParameterTypeEnum["STRING"] = "string";
|
|
@@ -1366,10 +947,10 @@ var RollupPolicy;
|
|
|
1366
947
|
})(RollupPolicy || (RollupPolicy = {}));
|
|
1367
948
|
|
|
1368
949
|
var schema = /*#__PURE__*/Object.freeze({
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
950
|
+
__proto__: null,
|
|
951
|
+
get Access () { return Access; },
|
|
952
|
+
get DimensionType () { return DimensionType; },
|
|
953
|
+
get RollupPolicy () { return RollupPolicy; }
|
|
1373
954
|
});
|
|
1374
955
|
|
|
1375
956
|
var ChatDashboardMessageType;
|
|
@@ -1465,6 +1046,25 @@ var FeedTypeEnum;
|
|
|
1465
1046
|
FeedTypeEnum["Ranking"] = "Ranking";
|
|
1466
1047
|
})(FeedTypeEnum || (FeedTypeEnum = {}));
|
|
1467
1048
|
|
|
1049
|
+
/**
|
|
1050
|
+
* Fields included in the draft of Indicator, please keep it in sync with TIndicator type
|
|
1051
|
+
*/ var IndicatorDraftFields = [
|
|
1052
|
+
"code",
|
|
1053
|
+
"name",
|
|
1054
|
+
"type",
|
|
1055
|
+
"visible",
|
|
1056
|
+
"isApplication",
|
|
1057
|
+
"modelId",
|
|
1058
|
+
"entity",
|
|
1059
|
+
"unit",
|
|
1060
|
+
"principal",
|
|
1061
|
+
"authentication",
|
|
1062
|
+
"certificationId",
|
|
1063
|
+
"validity",
|
|
1064
|
+
"business",
|
|
1065
|
+
"options",
|
|
1066
|
+
"businessAreaId"
|
|
1067
|
+
];
|
|
1468
1068
|
var IndicatorOptionFields = [
|
|
1469
1069
|
"dimensions",
|
|
1470
1070
|
"filters",
|
|
@@ -1991,15 +1591,9 @@ var WorkflowNodeTypeEnum;
|
|
|
1991
1591
|
*/ WorkflowNodeTypeEnum["IF_ELSE"] = "if-else";
|
|
1992
1592
|
WorkflowNodeTypeEnum["LIST_OPERATOR"] = "list-operator";
|
|
1993
1593
|
WorkflowNodeTypeEnum["VARIABLE_AGGREGATOR"] = "variable-aggregator";
|
|
1994
|
-
// SPLITTER = 'splitter',
|
|
1995
1594
|
WorkflowNodeTypeEnum["ITERATING"] = "iterating";
|
|
1996
|
-
WorkflowNodeTypeEnum["ANSWER"] = "answer";
|
|
1997
|
-
WorkflowNodeTypeEnum["CODE"] = "code";
|
|
1998
1595
|
WorkflowNodeTypeEnum["HTTP"] = "http";
|
|
1999
|
-
WorkflowNodeTypeEnum["KNOWLEDGE"] = "knowledge";
|
|
2000
1596
|
WorkflowNodeTypeEnum["SUBFLOW"] = "subflow";
|
|
2001
|
-
WorkflowNodeTypeEnum["TEMPLATE"] = "template";
|
|
2002
|
-
WorkflowNodeTypeEnum["CLASSIFIER"] = "classifier";
|
|
2003
1597
|
WorkflowNodeTypeEnum["TOOL"] = "tool";
|
|
2004
1598
|
WorkflowNodeTypeEnum["AGENT_TOOL"] = "agent-tool";
|
|
2005
1599
|
WorkflowNodeTypeEnum["NOTE"] = "note";
|
|
@@ -2012,6 +1606,39 @@ var WorkflowNodeTypeEnum;
|
|
|
2012
1606
|
WorkflowNodeTypeEnum["CHUNKER"] = "chunker";
|
|
2013
1607
|
WorkflowNodeTypeEnum["UNDERSTANDING"] = "understanding";
|
|
2014
1608
|
WorkflowNodeTypeEnum["KNOWLEDGE_BASE"] = "knowledgebase";
|
|
1609
|
+
// ===============================
|
|
1610
|
+
// 📦 Transform Nodes
|
|
1611
|
+
// ===============================
|
|
1612
|
+
WorkflowNodeTypeEnum["CLASSIFIER"] = "classifier";
|
|
1613
|
+
WorkflowNodeTypeEnum["KNOWLEDGE"] = "knowledge";
|
|
1614
|
+
WorkflowNodeTypeEnum["CODE"] = "code";
|
|
1615
|
+
WorkflowNodeTypeEnum["TEMPLATE"] = "template";
|
|
1616
|
+
WorkflowNodeTypeEnum["ANSWER"] = "answer";
|
|
1617
|
+
WorkflowNodeTypeEnum["JSON_STRINGIFY"] = "json-stringify";
|
|
1618
|
+
WorkflowNodeTypeEnum["JSON_PARSE"] = "json-parse";
|
|
1619
|
+
// ===============================
|
|
1620
|
+
// 📦 Database Operation Nodes
|
|
1621
|
+
// ===============================
|
|
1622
|
+
/**
|
|
1623
|
+
* Custom SQL
|
|
1624
|
+
*/ WorkflowNodeTypeEnum["DB_SQL"] = "db-sql";
|
|
1625
|
+
/**
|
|
1626
|
+
* Insert data (INSERT)
|
|
1627
|
+
*/ WorkflowNodeTypeEnum["DB_INSERT"] = "db-insert";
|
|
1628
|
+
/**
|
|
1629
|
+
* Update data (UPDATE)
|
|
1630
|
+
*/ WorkflowNodeTypeEnum["DB_UPDATE"] = "db-update";
|
|
1631
|
+
/**
|
|
1632
|
+
* Delete data (DELETE)
|
|
1633
|
+
*/ WorkflowNodeTypeEnum["DB_DELETE"] = "db-delete";
|
|
1634
|
+
/**
|
|
1635
|
+
* Query data (SELECT)
|
|
1636
|
+
*/ WorkflowNodeTypeEnum["DB_QUERY"] = "db-query";
|
|
1637
|
+
// ===============================
|
|
1638
|
+
// 🏆 Pro Nodes
|
|
1639
|
+
// ===============================
|
|
1640
|
+
WorkflowNodeTypeEnum["MIDDLEWARE"] = "middleware";
|
|
1641
|
+
WorkflowNodeTypeEnum["SKILL"] = "skill";
|
|
2015
1642
|
})(WorkflowNodeTypeEnum || (WorkflowNodeTypeEnum = {}));
|
|
2016
1643
|
var VariableOperationEnum;
|
|
2017
1644
|
(function(VariableOperationEnum) {
|
|
@@ -2057,6 +1684,12 @@ function genListOperatorKey() {
|
|
|
2057
1684
|
function genVariableAggregatorKey() {
|
|
2058
1685
|
return letterStartSUID("VariableAggregator_");
|
|
2059
1686
|
}
|
|
1687
|
+
function genJSONStringifyKey() {
|
|
1688
|
+
return letterStartSUID("JSONStringify_");
|
|
1689
|
+
}
|
|
1690
|
+
function genJSONParseKey() {
|
|
1691
|
+
return letterStartSUID("JSONParse_");
|
|
1692
|
+
}
|
|
2060
1693
|
function isAgentKey(key) {
|
|
2061
1694
|
return key === null || key === void 0 ? void 0 : key.toLowerCase().startsWith("agent_");
|
|
2062
1695
|
}
|
|
@@ -2102,7 +1735,9 @@ var XpertParameterTypeEnum;
|
|
|
2102
1735
|
XpertParameterTypeEnum["NUMBER"] = "number";
|
|
2103
1736
|
XpertParameterTypeEnum["OBJECT"] = "object";
|
|
2104
1737
|
XpertParameterTypeEnum["SELECT"] = "select";
|
|
1738
|
+
XpertParameterTypeEnum["FILE"] = "file";
|
|
2105
1739
|
XpertParameterTypeEnum["ARRAY_STRING"] = "array[string]";
|
|
1740
|
+
XpertParameterTypeEnum["ARRAY_NUMBER"] = "array[number]";
|
|
2106
1741
|
XpertParameterTypeEnum["ARRAY"] = "array[object]";
|
|
2107
1742
|
XpertParameterTypeEnum["ARRAY_FILE"] = "array[file]";
|
|
2108
1743
|
XpertParameterTypeEnum["ARRAY_DOCUMENT"] = "array[document]";
|
|
@@ -2281,6 +1916,9 @@ var GRAPH_NODE_SUMMARIZE_CONVERSATION = "summarize_conversation";
|
|
|
2281
1916
|
var GRAPH_NODE_TITLE_CONVERSATION = "title_conversation";
|
|
2282
1917
|
var STATE_VARIABLE_FILES = "files";
|
|
2283
1918
|
var STATE_VARIABLE_INPUT = "input";
|
|
1919
|
+
var STATE_SYS_VOLUME = "volume";
|
|
1920
|
+
var STATE_SYS_WORKSPACE_PATH = "workspace_path";
|
|
1921
|
+
var STATE_SYS_WORKSPACE_URL = "workspace_url";
|
|
2284
1922
|
var STATE_VARIABLE_TITLE_CHANNEL = channelName("title");
|
|
2285
1923
|
// Helpers
|
|
2286
1924
|
function channelName(name) {
|
|
@@ -2609,6 +2247,45 @@ function isAudioType(type) {
|
|
|
2609
2247
|
function classificateDocumentCategory(entity) {
|
|
2610
2248
|
return isDocumentSheet(entity.type) ? "sheet" : isImageType(entity.type) ? "image" : isVideoType(entity.type) ? "video" : isAudioType(entity.type) ? "audio" : "text";
|
|
2611
2249
|
}
|
|
2250
|
+
/**
|
|
2251
|
+
* System standard Metadata field definition constants
|
|
2252
|
+
* It can be used for rendering, validation, sorting, displaying descriptions, etc.
|
|
2253
|
+
*/ var STANDARD_METADATA_FIELDS = [
|
|
2254
|
+
// Document Info
|
|
2255
|
+
{
|
|
2256
|
+
group: {
|
|
2257
|
+
en_US: "Document Info",
|
|
2258
|
+
zh_Hans: "文档信息"
|
|
2259
|
+
},
|
|
2260
|
+
fields: [
|
|
2261
|
+
{
|
|
2262
|
+
key: "title",
|
|
2263
|
+
label: {
|
|
2264
|
+
en_US: "Original File Name",
|
|
2265
|
+
zh_Hans: "原始文件名称"
|
|
2266
|
+
},
|
|
2267
|
+
type: "string"
|
|
2268
|
+
}
|
|
2269
|
+
]
|
|
2270
|
+
},
|
|
2271
|
+
// Technical Parameters
|
|
2272
|
+
{
|
|
2273
|
+
group: {
|
|
2274
|
+
en_US: "Technical Parameters",
|
|
2275
|
+
zh_Hans: "技术参数"
|
|
2276
|
+
},
|
|
2277
|
+
fields: [
|
|
2278
|
+
{
|
|
2279
|
+
key: "tokens",
|
|
2280
|
+
label: {
|
|
2281
|
+
en_US: "Tokens",
|
|
2282
|
+
zh_Hans: "词元"
|
|
2283
|
+
},
|
|
2284
|
+
type: "number"
|
|
2285
|
+
}
|
|
2286
|
+
]
|
|
2287
|
+
}
|
|
2288
|
+
];
|
|
2612
2289
|
|
|
2613
2290
|
var AIPermissionsEnum;
|
|
2614
2291
|
(function(AIPermissionsEnum) {
|
|
@@ -2698,6 +2375,9 @@ function getEnabledTools(toolset) {
|
|
|
2698
2375
|
function getToolLabel(tool) {
|
|
2699
2376
|
var _tool_schema;
|
|
2700
2377
|
if (!tool) return "";
|
|
2378
|
+
if (tool.label) {
|
|
2379
|
+
return tool.label;
|
|
2380
|
+
}
|
|
2701
2381
|
var identity = (_tool_schema = tool.schema) === null || _tool_schema === void 0 ? void 0 : _tool_schema.identity;
|
|
2702
2382
|
if (identity) {
|
|
2703
2383
|
return identity.label || tool.name || "";
|
|
@@ -2760,6 +2440,32 @@ var ToolTagEnum;
|
|
|
2760
2440
|
ToolTagEnum["OTHER"] = "other";
|
|
2761
2441
|
})(ToolTagEnum || (ToolTagEnum = {}));
|
|
2762
2442
|
|
|
2443
|
+
var XpertTableStatus;
|
|
2444
|
+
(function(XpertTableStatus) {
|
|
2445
|
+
XpertTableStatus["DRAFT"] = "draft";
|
|
2446
|
+
XpertTableStatus["READY"] = "ready";
|
|
2447
|
+
XpertTableStatus["PENDING_ACTIVATION"] = "pendingActivation";
|
|
2448
|
+
XpertTableStatus["ACTIVE"] = "active";
|
|
2449
|
+
XpertTableStatus["NEEDS_MIGRATION"] = "needsMigration";
|
|
2450
|
+
XpertTableStatus["DEPRECATED"] = "deprecated";
|
|
2451
|
+
XpertTableStatus["ERROR"] = "error";
|
|
2452
|
+
})(XpertTableStatus || (XpertTableStatus = {}));
|
|
2453
|
+
function genXpertDBInsertKey() {
|
|
2454
|
+
return letterStartSUID("DBInsert_");
|
|
2455
|
+
}
|
|
2456
|
+
function genXpertDBUpdateKey() {
|
|
2457
|
+
return letterStartSUID("DBUpdate_");
|
|
2458
|
+
}
|
|
2459
|
+
function genXpertDBDeleteKey() {
|
|
2460
|
+
return letterStartSUID("DBDelete_");
|
|
2461
|
+
}
|
|
2462
|
+
function genXpertDBQueryKey() {
|
|
2463
|
+
return letterStartSUID("DBQuery_");
|
|
2464
|
+
}
|
|
2465
|
+
function genXpertDBSqlKey() {
|
|
2466
|
+
return letterStartSUID("DBSql_");
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2763
2469
|
function _array_like_to_array$3(arr, len) {
|
|
2764
2470
|
if (len == null || len > arr.length) len = arr.length;
|
|
2765
2471
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -2815,13 +2521,16 @@ function _unsupported_iterable_to_array$3(o, minLen) {
|
|
|
2815
2521
|
// Helpers
|
|
2816
2522
|
function omitXpertRelations(xpert) {
|
|
2817
2523
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
2818
|
-
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, [
|
|
2524
|
+
var _ref = xpert !== null && xpert !== void 0 ? xpert : {}; _ref.draft; _ref.agent; _ref.agents; _ref.executors; _ref.leaders; _ref.knowledgebases; _ref.knowledgebase; _ref.environment; _ref.integrations; _ref.toolsets; _ref.managers; var rest = _object_without_properties(_ref, [
|
|
2819
2525
|
"draft",
|
|
2820
2526
|
"agent",
|
|
2821
2527
|
"agents",
|
|
2822
2528
|
"executors",
|
|
2823
2529
|
"leaders",
|
|
2824
2530
|
"knowledgebases",
|
|
2531
|
+
"knowledgebase",
|
|
2532
|
+
"environment",
|
|
2533
|
+
"integrations",
|
|
2825
2534
|
"toolsets",
|
|
2826
2535
|
"managers"
|
|
2827
2536
|
]);
|
|
@@ -3316,6 +3025,35 @@ function _object_spread_props(target, source) {
|
|
|
3316
3025
|
return leaves;
|
|
3317
3026
|
}
|
|
3318
3027
|
|
|
3028
|
+
// Skill types
|
|
3029
|
+
function genXpertSkillKey() {
|
|
3030
|
+
return letterStartSUID("Skill_");
|
|
3031
|
+
}
|
|
3032
|
+
|
|
3033
|
+
function genXpertMiddlewareKey() {
|
|
3034
|
+
return letterStartSUID("Middleware_");
|
|
3035
|
+
}
|
|
3036
|
+
var normalizeNodeKey = function(key) {
|
|
3037
|
+
var _key_split;
|
|
3038
|
+
return key === null || key === void 0 ? void 0 : (_key_split = key.split("/")) === null || _key_split === void 0 ? void 0 : _key_split[0];
|
|
3039
|
+
};
|
|
3040
|
+
function getAgentMiddlewareNodes(graph, agentKey) {
|
|
3041
|
+
var _graph_connections;
|
|
3042
|
+
var _graph_connections_filter_map_filter;
|
|
3043
|
+
var middlewares = (_graph_connections_filter_map_filter = (_graph_connections = graph.connections) === null || _graph_connections === void 0 ? void 0 : _graph_connections.filter(function(conn) {
|
|
3044
|
+
return conn.type === "workflow" && conn.from === agentKey;
|
|
3045
|
+
}).map(function(conn) {
|
|
3046
|
+
var _graph_nodes;
|
|
3047
|
+
var to = normalizeNodeKey(conn.to);
|
|
3048
|
+
return (_graph_nodes = graph.nodes) === null || _graph_nodes === void 0 ? void 0 : _graph_nodes.find(function(node) {
|
|
3049
|
+
return node.key === to;
|
|
3050
|
+
});
|
|
3051
|
+
}).filter(function(node) {
|
|
3052
|
+
return (node === null || node === void 0 ? void 0 : node.entity).type === WorkflowNodeTypeEnum.MIDDLEWARE;
|
|
3053
|
+
})) !== null && _graph_connections_filter_map_filter !== void 0 ? _graph_connections_filter_map_filter : [];
|
|
3054
|
+
return middlewares;
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3319
3057
|
var PermissionsEnum;
|
|
3320
3058
|
(function(PermissionsEnum) {
|
|
3321
3059
|
PermissionsEnum["PROFILE_EDIT"] = "PROFILE_EDIT";
|
|
@@ -4017,6 +3755,48 @@ function _unsupported_iterable_to_array$1(o, minLen) {
|
|
|
4017
3755
|
})
|
|
4018
3756
|
};
|
|
4019
3757
|
}
|
|
3758
|
+
var FILE_VARIABLES = [
|
|
3759
|
+
{
|
|
3760
|
+
name: "filePath",
|
|
3761
|
+
type: XpertParameterTypeEnum.STRING,
|
|
3762
|
+
description: {
|
|
3763
|
+
en_US: "The path to the file",
|
|
3764
|
+
zh_Hans: "文件的路径"
|
|
3765
|
+
}
|
|
3766
|
+
},
|
|
3767
|
+
{
|
|
3768
|
+
name: "fileName",
|
|
3769
|
+
type: XpertParameterTypeEnum.STRING,
|
|
3770
|
+
description: {
|
|
3771
|
+
en_US: "The name of the file",
|
|
3772
|
+
zh_Hans: "文件的名称"
|
|
3773
|
+
}
|
|
3774
|
+
},
|
|
3775
|
+
{
|
|
3776
|
+
name: "fileUrl",
|
|
3777
|
+
type: XpertParameterTypeEnum.STRING,
|
|
3778
|
+
description: {
|
|
3779
|
+
en_US: "The URL of the file",
|
|
3780
|
+
zh_Hans: "文件的URL地址"
|
|
3781
|
+
}
|
|
3782
|
+
},
|
|
3783
|
+
{
|
|
3784
|
+
name: "fileSize",
|
|
3785
|
+
type: XpertParameterTypeEnum.NUMBER,
|
|
3786
|
+
description: {
|
|
3787
|
+
en_US: "The size of the file in bytes",
|
|
3788
|
+
zh_Hans: "文件的大小,单位为字节"
|
|
3789
|
+
}
|
|
3790
|
+
},
|
|
3791
|
+
{
|
|
3792
|
+
name: "mimeType",
|
|
3793
|
+
type: XpertParameterTypeEnum.STRING,
|
|
3794
|
+
description: {
|
|
3795
|
+
en_US: "The MIME type of the file",
|
|
3796
|
+
zh_Hans: "文件的MIME类型"
|
|
3797
|
+
}
|
|
3798
|
+
}
|
|
3799
|
+
];
|
|
4020
3800
|
|
|
4021
3801
|
function _array_like_to_array(arr, len) {
|
|
4022
3802
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -4126,4 +3906,4 @@ var InterruptMessageType;
|
|
|
4126
3906
|
InterruptMessageType["Select"] = "select";
|
|
4127
3907
|
})(InterruptMessageType || (InterruptMessageType = {}));
|
|
4128
3908
|
|
|
4129
|
-
export { AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, AccessEnum, AgentEventType, AgentType, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, AnalyticsFeatures, AnalyticsPermissionsEnum, ApiAuthType, ApiProviderSchemaType, ApprovalPolicyTypesEnum, ApprovalPolicyTypesStringEnum, Attachment_Type_Options, AuthenticationEnum, BIInterruptMessageType, BonusTypeEnum, BusinessAreaRole, BusinessType, CONTEXT_VARIABLE_CURRENTSTATE, ChatDashboardMessageType, ChatGatewayEvent, ChatMessageEventTypeEnum, ChatMessageFeedbackRatingEnum, ChatMessageStepCategory, ChatMessageTypeEnum, ClientFocusEnum, ConfigurateMethod, ContactOrganizationInviteStatus, ContactType, CredentialFormTypeEnum, CredentialsType, CrudActionEnum, CurrenciesEnum, CurrencyPosition, DEFAULT_CURRENCIES, DEFAULT_DATE_FORMATS, DEFAULT_INTEGRATION_PAID_FILTERS, DEFAULT_INVITE_EXPIRY_PERIOD, DEFAULT_PROFIT_BASED_BONUS, DEFAULT_REVENUE_BASED_BONUS, DEFAULT_TENANT, DEFAULT_TIME_FORMATS, DEFAULT_TYPE, DataSourceProtocolEnum, DataSourceSyntaxEnum, DataSourceTypeEnum, DefaultValueDateTypeEnum, DocumentSourceProviderCategoryEnum, DocumentTypeEnum, EmailTemplateEnum, EmailTemplateNameEnum, EmbeddingStatusEnum, FeatureEnum, FeatureStatusEnum, FeedTypeEnum, FetchFrom, FileStorageProviderEnum, GRAPH_NODE_SUMMARIZE_CONVERSATION, GRAPH_NODE_TITLE_CONVERSATION, HttpStatus, IFeatureToggleTypeEnum, INTEGRATION_PROVIDERS, ImportHistoryStatusEnum, ImportTypeEnum, IndicatorOptionFields, IndicatorStatusEnum, IndicatorTagEnum, IndicatorType, IntegrationEnum, IntegrationFeatureEnum, IntegrationFilterEnum, IntegrationGitHubProvider, IntegrationLarkProvider, InterruptMessageType, InvitationExpirationEnum, InvitationTypeEnum, InviteStatusEnum, IteratingIndexParameterName, IteratingItemParameterName, KBDocumentCategoryEnum, KBDocumentStatusEnum, KDocumentSourceType, KDocumentWebTypeEnum, KDocumentWebTypeOptions, KNOWLEDGE_DOCUMENTS_NAME, KNOWLEDGE_FOLDER_ID_NAME, KNOWLEDGE_SOURCES_NAME, KNOWLEDGE_STAGE_NAME, KnowledgeProviderEnum, KnowledgeStructureEnum, KnowledgeTask, KnowledgebaseChannel, KnowledgebasePermission, KnowledgebaseTypeEnum, LanguagesEnum, LanguagesMap, ListsInputTypeEnum, LocalAgentType, LongTermMemoryTypeEnum, MCPServerType, schema as MDX, MEMORY_PROFILE_PROMPT, MEMORY_QA_PROMPT, MinimumProjectSizeEnum, ModelEntityType, ModelFeature, ModelPropertyKey, ModelTypeEnum, OllamaEmbeddingsProviders, OpenAIEmbeddingsProviders, OrderTypeEnum, OrganizationContactBudgetTypeEnum, OrganizationDemoNetworkEnum, OrganizationPermissionsEnum, OrganizationProjectBudgetTypeEnum, OrganizationSelectInput, ParameterType, ParameterTypeEnum, PayPeriodEnum, PermissionApprovalStatus, PermissionApprovalStatusTypesEnum, PermissionGroups, PermissionsEnum, PriceType, ProjectBillingEnum, ProjectOwnerEnum, ProjectStatusEnum, ProviderEnum, ProviderType, QueryStatusEnum, RegionsEnum, RequestMethodEnum, RoleTypeEnum, RolesEnum, SMTPSecureEnum, STATE_VARIABLE_FILES, STATE_VARIABLE_HUMAN, STATE_VARIABLE_INPUT, STATE_VARIABLE_SYS, STATE_VARIABLE_TITLE_CHANNEL, ScheduleTaskStatus, SemanticModelStatusEnum, StoryStatusEnum, StoryTemplateType, SubscriptionType, TASK_DESCRIPTION_PREFIX, TASK_DESCRIPTION_SUFFIX, TENANT_AGENT_LOCAL_URL, TOOL_NAME_REGEX, TagCategoryEnum, TaskFrequency, TaskListTypeEnum, TimeGranularity, ToolParameterForm, ToolParameterType, ToolTagEnum, TranslationLanguageMap, UserType, VariableOperationEnum, VariableOperations, VectorTypeEnum, Visibility, VisitEntityEnum, VisitTypeEnum, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XpertAgentExecutionStatusEnum, XpertParameterTypeEnum, XpertToolsetCategoryEnum, XpertTypeEnum, agentLabel, agentUniqueName, allChannels, buildChunkTree, channelName, classificateDocumentCategory, collectTreeLeaves, configurableStoreNamespace, convertToUrlPath, createAgentConnections, createXpertGraph, createXpertNodes, embeddingCubeCollectionName, extractSemanticModelDraft, figureOutXpert, findStartNodes, genListOperatorKey, genPipelineChunkerKey, genPipelineKnowledgeBaseKey, genPipelineProcessorKey, genPipelineSourceKey, genPipelineUnderstandingKey, genVariableAggregatorKey, genXpertTriggerKey, generateCronExpression, getAgentVarGroup, getCurrentGraph, getEnabledTools, getStoreNamespace, getSwarmPartners, getToolCallFromConfig, getToolCallIdFromConfig, getToolLabel, getVariableSchema, getWorkflowTriggers, getWorkspaceFromRunnable, isAgentKey, isAudioType, isDocumentSheet, isEnableTool, isImageType, isIteratingKey, isMessageGroup, isRouterKey, isToolEnabled, isVideoType, isWorkflowKey, letterStartSUID, locateNodes, mapTranslationLanguage, messageContentText, omitXpertRelations, setStateVariable, shortTitle, transformInstallation, uuid, workflowNodeIdentifier, xpertLabel };
|
|
3909
|
+
export { AIPermissionsEnum, AI_MODEL_TYPE_VARIABLE, AccessEnum, AgentEventType, AgentType, AiBusinessRole, AiFeatureEnum, AiModelTypeEnum, AiProtocol, AiProvider, AiProviderRole, AlignmentOptions, AnalyticsFeatures, AnalyticsPermissionsEnum, ApiAuthType, ApiProviderSchemaType, ApprovalPolicyTypesEnum, ApprovalPolicyTypesStringEnum, Attachment_Type_Options, AuthenticationEnum, BIInterruptMessageType, BonusTypeEnum, BusinessAreaRole, BusinessType, CONTEXT_VARIABLE_CURRENTSTATE, ChatDashboardMessageType, ChatGatewayEvent, ChatMessageEventTypeEnum, ChatMessageFeedbackRatingEnum, ChatMessageStepCategory, ChatMessageTypeEnum, ClientFocusEnum, ConfigurateMethod, ContactOrganizationInviteStatus, ContactType, CredentialFormTypeEnum, CredentialsType, CrudActionEnum, CurrenciesEnum, CurrencyPosition, DEFAULT_CURRENCIES, DEFAULT_DATE_FORMATS, DEFAULT_INTEGRATION_PAID_FILTERS, DEFAULT_INVITE_EXPIRY_PERIOD, DEFAULT_PROFIT_BASED_BONUS, DEFAULT_REVENUE_BASED_BONUS, DEFAULT_TENANT, DEFAULT_TIME_FORMATS, DEFAULT_TYPE, DataSourceProtocolEnum, DataSourceSyntaxEnum, DataSourceTypeEnum, DefaultValueDateTypeEnum, DocumentSourceProviderCategoryEnum, DocumentTypeEnum, EmailTemplateEnum, EmailTemplateNameEnum, EmbeddingStatusEnum, FILE_VARIABLES, FeatureEnum, FeatureStatusEnum, FeedTypeEnum, FetchFrom, FileStorageProviderEnum, GRAPH_NODE_SUMMARIZE_CONVERSATION, GRAPH_NODE_TITLE_CONVERSATION, HttpStatus, IFeatureToggleTypeEnum, INTEGRATION_PROVIDERS, ImportHistoryStatusEnum, ImportTypeEnum, IndicatorDraftFields, IndicatorOptionFields, IndicatorStatusEnum, IndicatorTagEnum, IndicatorType, IntegrationEnum, IntegrationFeatureEnum, IntegrationFilterEnum, IntegrationGitHubProvider, IntegrationLarkProvider, InterruptMessageType, InvitationExpirationEnum, InvitationTypeEnum, InviteStatusEnum, IteratingIndexParameterName, IteratingItemParameterName, KBDocumentCategoryEnum, KBDocumentStatusEnum, KDocumentSourceType, KDocumentWebTypeEnum, KDocumentWebTypeOptions, KNOWLEDGE_DOCUMENTS_NAME, KNOWLEDGE_FOLDER_ID_NAME, KNOWLEDGE_SOURCES_NAME, KNOWLEDGE_STAGE_NAME, KnowledgeProviderEnum, KnowledgeStructureEnum, KnowledgeTask, KnowledgebaseChannel, KnowledgebasePermission, KnowledgebaseTypeEnum, LanguagesEnum, LanguagesMap, ListsInputTypeEnum, LocalAgentType, LongTermMemoryTypeEnum, MCPServerType, schema as MDX, MEMORY_PROFILE_PROMPT, MEMORY_QA_PROMPT, MinimumProjectSizeEnum, ModelEntityType, ModelFeature, ModelPropertyKey, ModelTypeEnum, OllamaEmbeddingsProviders, OpenAIEmbeddingsProviders, OrderTypeEnum, OrganizationContactBudgetTypeEnum, OrganizationDemoNetworkEnum, OrganizationPermissionsEnum, OrganizationProjectBudgetTypeEnum, OrganizationSelectInput, ParameterType, ParameterTypeEnum, PayPeriodEnum, PermissionApprovalStatus, PermissionApprovalStatusTypesEnum, PermissionGroups, PermissionsEnum, PriceType, ProjectBillingEnum, ProjectOwnerEnum, ProjectStatusEnum, ProviderEnum, ProviderType, QueryStatusEnum, RegionsEnum, RequestMethodEnum, RoleTypeEnum, RolesEnum, SMTPSecureEnum, STANDARD_METADATA_FIELDS, STATE_SYS_VOLUME, STATE_SYS_WORKSPACE_PATH, STATE_SYS_WORKSPACE_URL, STATE_VARIABLE_FILES, STATE_VARIABLE_HUMAN, STATE_VARIABLE_INPUT, STATE_VARIABLE_SYS, STATE_VARIABLE_TITLE_CHANNEL, ScheduleTaskStatus, SemanticModelStatusEnum, StoryStatusEnum, StoryTemplateType, SubscriptionType, TASK_DESCRIPTION_PREFIX, TASK_DESCRIPTION_SUFFIX, TENANT_AGENT_LOCAL_URL, TOOL_NAME_REGEX, TagCategoryEnum, TaskFrequency, TaskListTypeEnum, TimeGranularity, ToolParameterForm, ToolParameterType, ToolTagEnum, TranslationLanguageMap, UserType, VariableOperationEnum, VariableOperations, VectorTypeEnum, Visibility, VisitEntityEnum, VisitTypeEnum, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XpertAgentExecutionStatusEnum, XpertParameterTypeEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, agentLabel, agentUniqueName, allChannels, buildChunkTree, channelName, classificateDocumentCategory, collectTreeLeaves, configurableStoreNamespace, convertToUrlPath, createAgentConnections, createXpertGraph, createXpertNodes, embeddingCubeCollectionName, extractSemanticModelDraft, figureOutXpert, findStartNodes, genJSONParseKey, genJSONStringifyKey, genListOperatorKey, genPipelineChunkerKey, genPipelineKnowledgeBaseKey, genPipelineProcessorKey, genPipelineSourceKey, genPipelineUnderstandingKey, genVariableAggregatorKey, genXpertDBDeleteKey, genXpertDBInsertKey, genXpertDBQueryKey, genXpertDBSqlKey, genXpertDBUpdateKey, genXpertMiddlewareKey, genXpertSkillKey, genXpertTriggerKey, generateCronExpression, getAgentMiddlewareNodes, getAgentVarGroup, getCurrentGraph, getEnabledTools, getStoreNamespace, getSwarmPartners, getToolCallFromConfig, getToolCallIdFromConfig, getToolLabel, getVariableSchema, getWorkflowTriggers, getWorkspaceFromRunnable, isAgentKey, isAudioType, isDocumentSheet, isEnableTool, isImageType, isIteratingKey, isMessageGroup, isRouterKey, isToolEnabled, isVideoType, isWorkflowKey, letterStartSUID, locateNodes, mapTranslationLanguage, messageContentText, omitXpertRelations, setStateVariable, shortTitle, transformInstallation, uuid, workflowNodeIdentifier, xpertLabel };
|