@metad/contracts 3.8.0 → 3.8.3

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.esm.js CHANGED
@@ -1,30 +1,30 @@
1
1
  import ShortUniqueId from 'short-unique-id';
2
2
  export * from '@xpert-ai/chatkit-types';
3
3
 
4
- function _array_like_to_array$5(arr, len) {
4
+ function _array_like_to_array$6(arr, len) {
5
5
  if (len == null || len > arr.length) len = arr.length;
6
6
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
7
7
  return arr2;
8
8
  }
9
- function _array_without_holes$1(arr) {
10
- if (Array.isArray(arr)) return _array_like_to_array$5(arr);
9
+ function _array_without_holes$2(arr) {
10
+ if (Array.isArray(arr)) return _array_like_to_array$6(arr);
11
11
  }
12
- function _iterable_to_array$2(iter) {
12
+ function _iterable_to_array$3(iter) {
13
13
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
14
14
  }
15
- function _non_iterable_spread$1() {
15
+ function _non_iterable_spread$2() {
16
16
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
17
17
  }
18
- function _to_consumable_array$1(arr) {
19
- return _array_without_holes$1(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$5(arr) || _non_iterable_spread$1();
18
+ function _to_consumable_array$2(arr) {
19
+ return _array_without_holes$2(arr) || _iterable_to_array$3(arr) || _unsupported_iterable_to_array$6(arr) || _non_iterable_spread$2();
20
20
  }
21
- function _unsupported_iterable_to_array$5(o, minLen) {
21
+ function _unsupported_iterable_to_array$6(o, minLen) {
22
22
  if (!o) return;
23
- if (typeof o === "string") return _array_like_to_array$5(o, minLen);
23
+ if (typeof o === "string") return _array_like_to_array$6(o, minLen);
24
24
  var n = Object.prototype.toString.call(o).slice(8, -1);
25
25
  if (n === "Object" && o.constructor) n = o.constructor.name;
26
26
  if (n === "Map" || n === "Set") return Array.from(n);
27
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
27
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$6(o, minLen);
28
28
  }
29
29
  var _uuidGenerator;
30
30
  var uuidGenerator = new ShortUniqueId({
@@ -34,7 +34,7 @@ var uuid = function() {
34
34
  for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
35
35
  args[_key] = arguments[_key];
36
36
  }
37
- return (_uuidGenerator = uuidGenerator).randomUUID.apply(_uuidGenerator, _to_consumable_array$1(args));
37
+ return (_uuidGenerator = uuidGenerator).randomUUID.apply(_uuidGenerator, _to_consumable_array$2(args));
38
38
  };
39
39
  var ParameterTypeEnum;
40
40
  (function(ParameterTypeEnum) {
@@ -705,9 +705,6 @@ var FeatureEnum;
705
705
  var FileStorageProviderEnum;
706
706
  (function(FileStorageProviderEnum) {
707
707
  FileStorageProviderEnum["LOCAL"] = "LOCAL";
708
- FileStorageProviderEnum["S3"] = "S3";
709
- FileStorageProviderEnum["WASABI"] = "WASABI";
710
- FileStorageProviderEnum["OSS"] = "OSS";
711
708
  })(FileStorageProviderEnum || (FileStorageProviderEnum = {}));
712
709
 
713
710
  var HttpStatus;
@@ -1789,15 +1786,15 @@ var VariableOperations = [
1789
1786
  }
1790
1787
  ];
1791
1788
 
1792
- function _array_like_to_array$4(arr, len) {
1789
+ function _array_like_to_array$5(arr, len) {
1793
1790
  if (len == null || len > arr.length) len = arr.length;
1794
1791
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
1795
1792
  return arr2;
1796
1793
  }
1797
- function _array_with_holes$3(arr) {
1794
+ function _array_with_holes$4(arr) {
1798
1795
  if (Array.isArray(arr)) return arr;
1799
1796
  }
1800
- function _define_property$3(obj, key, value) {
1797
+ function _define_property$4(obj, key, value) {
1801
1798
  if (key in obj) {
1802
1799
  Object.defineProperty(obj, key, {
1803
1800
  value: value,
@@ -1810,7 +1807,7 @@ function _define_property$3(obj, key, value) {
1810
1807
  }
1811
1808
  return obj;
1812
1809
  }
1813
- function _iterable_to_array_limit$2(arr, i) {
1810
+ function _iterable_to_array_limit$3(arr, i) {
1814
1811
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1815
1812
  if (_i == null) return;
1816
1813
  var _arr = [];
@@ -1834,10 +1831,10 @@ function _iterable_to_array_limit$2(arr, i) {
1834
1831
  }
1835
1832
  return _arr;
1836
1833
  }
1837
- function _non_iterable_rest$3() {
1834
+ function _non_iterable_rest$4() {
1838
1835
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1839
1836
  }
1840
- function _object_spread$2(target) {
1837
+ function _object_spread$3(target) {
1841
1838
  for(var i = 1; i < arguments.length; i++){
1842
1839
  var source = arguments[i] != null ? arguments[i] : {};
1843
1840
  var ownKeys = Object.keys(source);
@@ -1847,12 +1844,12 @@ function _object_spread$2(target) {
1847
1844
  }));
1848
1845
  }
1849
1846
  ownKeys.forEach(function(key) {
1850
- _define_property$3(target, key, source[key]);
1847
+ _define_property$4(target, key, source[key]);
1851
1848
  });
1852
1849
  }
1853
1850
  return target;
1854
1851
  }
1855
- function ownKeys$1(object, enumerableOnly) {
1852
+ function ownKeys$2(object, enumerableOnly) {
1856
1853
  var keys = Object.keys(object);
1857
1854
  if (Object.getOwnPropertySymbols) {
1858
1855
  var symbols = Object.getOwnPropertySymbols(object);
@@ -1860,27 +1857,27 @@ function ownKeys$1(object, enumerableOnly) {
1860
1857
  }
1861
1858
  return keys;
1862
1859
  }
1863
- function _object_spread_props$1(target, source) {
1860
+ function _object_spread_props$2(target, source) {
1864
1861
  source = source != null ? source : {};
1865
1862
  if (Object.getOwnPropertyDescriptors) {
1866
1863
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
1867
1864
  } else {
1868
- ownKeys$1(Object(source)).forEach(function(key) {
1865
+ ownKeys$2(Object(source)).forEach(function(key) {
1869
1866
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1870
1867
  });
1871
1868
  }
1872
1869
  return target;
1873
1870
  }
1874
- function _sliced_to_array$2(arr, i) {
1875
- return _array_with_holes$3(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$4(arr, i) || _non_iterable_rest$3();
1871
+ function _sliced_to_array$3(arr, i) {
1872
+ return _array_with_holes$4(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$5(arr, i) || _non_iterable_rest$4();
1876
1873
  }
1877
- function _unsupported_iterable_to_array$4(o, minLen) {
1874
+ function _unsupported_iterable_to_array$5(o, minLen) {
1878
1875
  if (!o) return;
1879
- if (typeof o === "string") return _array_like_to_array$4(o, minLen);
1876
+ if (typeof o === "string") return _array_like_to_array$5(o, minLen);
1880
1877
  var n = Object.prototype.toString.call(o).slice(8, -1);
1881
1878
  if (n === "Object" && o.constructor) n = o.constructor.name;
1882
1879
  if (n === "Map" || n === "Set") return Array.from(n);
1883
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen);
1880
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$5(o, minLen);
1884
1881
  }
1885
1882
  /**
1886
1883
  * @deprecated can use getCurrentTaskInput instead?
@@ -1954,10 +1951,10 @@ function configurableStoreNamespace(configurable) {
1954
1951
  * @param value
1955
1952
  * @returns
1956
1953
  */ function setStateVariable(state, varName, value) {
1957
- var _varName_split = _sliced_to_array$2(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
1954
+ var _varName_split = _sliced_to_array$3(varName.split("."), 2), agentChannelName = _varName_split[0], variableName = _varName_split[1];
1958
1955
  if (variableName) {
1959
1956
  var _state_agentChannelName;
1960
- 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));
1957
+ state[agentChannelName] = _object_spread_props$2(_object_spread$3({}, (_state_agentChannelName = state[agentChannelName]) !== null && _state_agentChannelName !== void 0 ? _state_agentChannelName : {}), _define_property$4({}, variableName, value));
1961
1958
  } else {
1962
1959
  state[agentChannelName] = value;
1963
1960
  }
@@ -2124,7 +2121,7 @@ function genPipelineKnowledgeBaseKey() {
2124
2121
  return letterStartSUID("KnowledgeBase_");
2125
2122
  }
2126
2123
 
2127
- function _define_property$2(obj, key, value) {
2124
+ function _define_property$3(obj, key, value) {
2128
2125
  if (key in obj) {
2129
2126
  Object.defineProperty(obj, key, {
2130
2127
  value: value,
@@ -2137,7 +2134,7 @@ function _define_property$2(obj, key, value) {
2137
2134
  }
2138
2135
  return obj;
2139
2136
  }
2140
- function _object_spread$1(target) {
2137
+ function _object_spread$2(target) {
2141
2138
  for(var i = 1; i < arguments.length; i++){
2142
2139
  var source = arguments[i] != null ? arguments[i] : {};
2143
2140
  var ownKeys = Object.keys(source);
@@ -2147,7 +2144,7 @@ function _object_spread$1(target) {
2147
2144
  }));
2148
2145
  }
2149
2146
  ownKeys.forEach(function(key) {
2150
- _define_property$2(target, key, source[key]);
2147
+ _define_property$3(target, key, source[key]);
2151
2148
  });
2152
2149
  }
2153
2150
  return target;
@@ -2162,7 +2159,7 @@ var DocumentTypeEnum;
2162
2159
  * @deprecated use DocumentSourceProviderCategoryEnum local file type instead
2163
2160
  */ DocumentTypeEnum["FILE"] = "file";
2164
2161
  })(DocumentTypeEnum || (DocumentTypeEnum = {}));
2165
- var KDocumentSourceType = _object_spread$1({}, DocumentSourceProviderCategoryEnum, DocumentTypeEnum);
2162
+ var KDocumentSourceType = _object_spread$2({}, DocumentSourceProviderCategoryEnum, DocumentTypeEnum);
2166
2163
  var KBDocumentCategoryEnum;
2167
2164
  (function(KBDocumentCategoryEnum) {
2168
2165
  KBDocumentCategoryEnum["Text"] = "text";
@@ -2449,23 +2446,23 @@ function genXpertDBSqlKey() {
2449
2446
  return letterStartSUID("DBSql_");
2450
2447
  }
2451
2448
 
2452
- function _array_like_to_array$3(arr, len) {
2449
+ function _array_like_to_array$4(arr, len) {
2453
2450
  if (len == null || len > arr.length) len = arr.length;
2454
2451
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
2455
2452
  return arr2;
2456
2453
  }
2457
- function _array_without_holes(arr) {
2458
- if (Array.isArray(arr)) return _array_like_to_array$3(arr);
2454
+ function _array_without_holes$1(arr) {
2455
+ if (Array.isArray(arr)) return _array_like_to_array$4(arr);
2459
2456
  }
2460
- function _iterable_to_array$1(iter) {
2457
+ function _iterable_to_array$2(iter) {
2461
2458
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
2462
2459
  }
2463
- function _non_iterable_spread() {
2460
+ function _non_iterable_spread$1() {
2464
2461
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2465
2462
  }
2466
- function _object_without_properties(source, excluded) {
2463
+ function _object_without_properties$1(source, excluded) {
2467
2464
  if (source == null) return {};
2468
- var target = _object_without_properties_loose(source, excluded);
2465
+ var target = _object_without_properties_loose$1(source, excluded);
2469
2466
  var key, i;
2470
2467
  if (Object.getOwnPropertySymbols) {
2471
2468
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -2478,7 +2475,7 @@ function _object_without_properties(source, excluded) {
2478
2475
  }
2479
2476
  return target;
2480
2477
  }
2481
- function _object_without_properties_loose(source, excluded) {
2478
+ function _object_without_properties_loose$1(source, excluded) {
2482
2479
  if (source == null) return {};
2483
2480
  var target = {};
2484
2481
  var sourceKeys = Object.keys(source);
@@ -2490,21 +2487,21 @@ function _object_without_properties_loose(source, excluded) {
2490
2487
  }
2491
2488
  return target;
2492
2489
  }
2493
- function _to_consumable_array(arr) {
2494
- return _array_without_holes(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$3(arr) || _non_iterable_spread();
2490
+ function _to_consumable_array$1(arr) {
2491
+ return _array_without_holes$1(arr) || _iterable_to_array$2(arr) || _unsupported_iterable_to_array$4(arr) || _non_iterable_spread$1();
2495
2492
  }
2496
- function _unsupported_iterable_to_array$3(o, minLen) {
2493
+ function _unsupported_iterable_to_array$4(o, minLen) {
2497
2494
  if (!o) return;
2498
- if (typeof o === "string") return _array_like_to_array$3(o, minLen);
2495
+ if (typeof o === "string") return _array_like_to_array$4(o, minLen);
2499
2496
  var n = Object.prototype.toString.call(o).slice(8, -1);
2500
2497
  if (n === "Object" && o.constructor) n = o.constructor.name;
2501
2498
  if (n === "Map" || n === "Set") return Array.from(n);
2502
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$3(o, minLen);
2499
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$4(o, minLen);
2503
2500
  }
2504
2501
  // Helpers
2505
2502
  function omitXpertRelations(xpert) {
2506
2503
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2507
- 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, [
2504
+ 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$1(_ref, [
2508
2505
  "draft",
2509
2506
  "agent",
2510
2507
  "agents",
@@ -2568,12 +2565,12 @@ function locateNodes(nodes, position) {
2568
2565
  }) // Node height min 70
2569
2566
  ;
2570
2567
  var xRange = {
2571
- min: (_Math = Math).min.apply(_Math, _to_consumable_array(x0Positions)),
2572
- max: (_Math1 = Math).max.apply(_Math1, _to_consumable_array(x1Positions))
2568
+ min: (_Math = Math).min.apply(_Math, _to_consumable_array$1(x0Positions)),
2569
+ max: (_Math1 = Math).max.apply(_Math1, _to_consumable_array$1(x1Positions))
2573
2570
  };
2574
2571
  var yRange = {
2575
- min: (_Math2 = Math).min.apply(_Math2, _to_consumable_array(y0Positions)),
2576
- max: (_Math3 = Math).max.apply(_Math3, _to_consumable_array(y1Positions))
2572
+ min: (_Math2 = Math).min.apply(_Math2, _to_consumable_array$1(y0Positions)),
2573
+ max: (_Math3 = Math).max.apply(_Math3, _to_consumable_array$1(y1Positions))
2577
2574
  };
2578
2575
  var size = {
2579
2576
  width: xRange.max - xRange.min + 50,
@@ -2610,9 +2607,9 @@ function locateNodes(nodes, position) {
2610
2607
  }
2611
2608
  if ((_xpert_agents = xpert.agents) === null || _xpert_agents === void 0 ? void 0 : _xpert_agents.length) {
2612
2609
  var _agents;
2613
- (_agents = agents).push.apply(_agents, _to_consumable_array(xpert.agents));
2610
+ (_agents = agents).push.apply(_agents, _to_consumable_array$1(xpert.agents));
2614
2611
  }
2615
- (_nodes = nodes).push.apply(_nodes, _to_consumable_array(agents.map(function(_) {
2612
+ (_nodes = nodes).push.apply(_nodes, _to_consumable_array$1(agents.map(function(_) {
2616
2613
  var _xpert_options_agent___key, _xpert_options_agent, _xpert_options, _xpert_options_agent___key1, _xpert_options_agent1, _xpert_options1;
2617
2614
  var _xpert_options_agent___key_position;
2618
2615
  return {
@@ -2644,7 +2641,7 @@ function locateNodes(nodes, position) {
2644
2641
  });
2645
2642
  });
2646
2643
  var _xpert_knowledgebases;
2647
- (_nodes1 = nodes).push.apply(_nodes1, _to_consumable_array(((_xpert_knowledgebases = xpert.knowledgebases) !== null && _xpert_knowledgebases !== void 0 ? _xpert_knowledgebases : []).map(function(x) {
2644
+ (_nodes1 = nodes).push.apply(_nodes1, _to_consumable_array$1(((_xpert_knowledgebases = xpert.knowledgebases) !== null && _xpert_knowledgebases !== void 0 ? _xpert_knowledgebases : []).map(function(x) {
2648
2645
  var _xpert_options_knowledge_x_id, _xpert_options_knowledge, _xpert_options, _xpert_options_knowledge_x_id1, _xpert_options_knowledge1, _xpert_options1;
2649
2646
  var _xpert_options_knowledge_x_id_position;
2650
2647
  return {
@@ -2659,7 +2656,7 @@ function locateNodes(nodes, position) {
2659
2656
  };
2660
2657
  })));
2661
2658
  var _xpert_toolsets;
2662
- (_nodes2 = nodes).push.apply(_nodes2, _to_consumable_array(((_xpert_toolsets = xpert.toolsets) !== null && _xpert_toolsets !== void 0 ? _xpert_toolsets : []).map(function(x) {
2659
+ (_nodes2 = nodes).push.apply(_nodes2, _to_consumable_array$1(((_xpert_toolsets = xpert.toolsets) !== null && _xpert_toolsets !== void 0 ? _xpert_toolsets : []).map(function(x) {
2663
2660
  var _xpert_options_toolset_x_id, _xpert_options_toolset, _xpert_options, _xpert_options_toolset_x_id1, _xpert_options_toolset1, _xpert_options1;
2664
2661
  var _xpert_options_toolset_x_id_position;
2665
2662
  return {
@@ -2696,12 +2693,12 @@ function locateNodes(nodes, position) {
2696
2693
  }) // Node height min 70
2697
2694
  ;
2698
2695
  var xRange = {
2699
- min: (_Math = Math).min.apply(_Math, _to_consumable_array(x0Positions)),
2700
- max: (_Math1 = Math).max.apply(_Math1, _to_consumable_array(x1Positions))
2696
+ min: (_Math = Math).min.apply(_Math, _to_consumable_array$1(x0Positions)),
2697
+ max: (_Math1 = Math).max.apply(_Math1, _to_consumable_array$1(x1Positions))
2701
2698
  };
2702
2699
  var yRange = {
2703
- min: (_Math2 = Math).min.apply(_Math2, _to_consumable_array(y0Positions)),
2704
- max: (_Math3 = Math).max.apply(_Math3, _to_consumable_array(y1Positions))
2700
+ min: (_Math2 = Math).min.apply(_Math2, _to_consumable_array$1(y0Positions)),
2701
+ max: (_Math3 = Math).max.apply(_Math3, _to_consumable_array$1(y1Positions))
2705
2702
  };
2706
2703
  var size = {
2707
2704
  width: xRange.max - xRange.min + 50,
@@ -2839,9 +2836,10 @@ var MCPServerType;
2839
2836
  MCPServerType["SSE"] = "sse";
2840
2837
  MCPServerType["STDIO"] = "stdio";
2841
2838
  MCPServerType["CODE"] = "code";
2839
+ MCPServerType["HTTP"] = "http";
2842
2840
  })(MCPServerType || (MCPServerType = {}));
2843
2841
 
2844
- function _define_property$1(obj, key, value) {
2842
+ function _define_property$2(obj, key, value) {
2845
2843
  if (key in obj) {
2846
2844
  Object.defineProperty(obj, key, {
2847
2845
  value: value,
@@ -2854,7 +2852,7 @@ function _define_property$1(obj, key, value) {
2854
2852
  }
2855
2853
  return obj;
2856
2854
  }
2857
- function _object_spread(target) {
2855
+ function _object_spread$1(target) {
2858
2856
  for(var i = 1; i < arguments.length; i++){
2859
2857
  var source = arguments[i] != null ? arguments[i] : {};
2860
2858
  var ownKeys = Object.keys(source);
@@ -2864,12 +2862,12 @@ function _object_spread(target) {
2864
2862
  }));
2865
2863
  }
2866
2864
  ownKeys.forEach(function(key) {
2867
- _define_property$1(target, key, source[key]);
2865
+ _define_property$2(target, key, source[key]);
2868
2866
  });
2869
2867
  }
2870
2868
  return target;
2871
2869
  }
2872
- function ownKeys(object, enumerableOnly) {
2870
+ function ownKeys$1(object, enumerableOnly) {
2873
2871
  var keys = Object.keys(object);
2874
2872
  if (Object.getOwnPropertySymbols) {
2875
2873
  var symbols = Object.getOwnPropertySymbols(object);
@@ -2877,12 +2875,12 @@ function ownKeys(object, enumerableOnly) {
2877
2875
  }
2878
2876
  return keys;
2879
2877
  }
2880
- function _object_spread_props(target, source) {
2878
+ function _object_spread_props$1(target, source) {
2881
2879
  source = source != null ? source : {};
2882
2880
  if (Object.getOwnPropertyDescriptors) {
2883
2881
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
2884
2882
  } else {
2885
- ownKeys(Object(source)).forEach(function(key) {
2883
+ ownKeys$1(Object(source)).forEach(function(key) {
2886
2884
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2887
2885
  });
2888
2886
  }
@@ -2905,8 +2903,8 @@ function _object_spread_props(target, source) {
2905
2903
  var doc = _step.value;
2906
2904
  var _doc_metadata;
2907
2905
  if ((_doc_metadata = doc.metadata) === null || _doc_metadata === void 0 ? void 0 : _doc_metadata.chunkId) {
2908
- map.set(doc.metadata.chunkId, _object_spread_props(_object_spread({}, doc), {
2909
- metadata: _object_spread_props(_object_spread({}, doc.metadata), {
2906
+ map.set(doc.metadata.chunkId, _object_spread_props$1(_object_spread$1({}, doc), {
2907
+ metadata: _object_spread_props$1(_object_spread$1({}, doc.metadata), {
2910
2908
  children: []
2911
2909
  })
2912
2910
  }));
@@ -3049,6 +3047,444 @@ function getAgentMiddlewareNodes(graph, agentKey) {
3049
3047
  return middlewares;
3050
3048
  }
3051
3049
 
3050
+ function _array_like_to_array$3(arr, len) {
3051
+ if (len == null || len > arr.length) len = arr.length;
3052
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
3053
+ return arr2;
3054
+ }
3055
+ function _array_with_holes$3(arr) {
3056
+ if (Array.isArray(arr)) return arr;
3057
+ }
3058
+ function _array_without_holes(arr) {
3059
+ if (Array.isArray(arr)) return _array_like_to_array$3(arr);
3060
+ }
3061
+ function _define_property$1(obj, key, value) {
3062
+ if (key in obj) {
3063
+ Object.defineProperty(obj, key, {
3064
+ value: value,
3065
+ enumerable: true,
3066
+ configurable: true,
3067
+ writable: true
3068
+ });
3069
+ } else {
3070
+ obj[key] = value;
3071
+ }
3072
+ return obj;
3073
+ }
3074
+ function _iterable_to_array$1(iter) {
3075
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
3076
+ }
3077
+ function _iterable_to_array_limit$2(arr, i) {
3078
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
3079
+ if (_i == null) return;
3080
+ var _arr = [];
3081
+ var _n = true;
3082
+ var _d = false;
3083
+ var _s, _e;
3084
+ try {
3085
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
3086
+ _arr.push(_s.value);
3087
+ if (i && _arr.length === i) break;
3088
+ }
3089
+ } catch (err) {
3090
+ _d = true;
3091
+ _e = err;
3092
+ } finally{
3093
+ try {
3094
+ if (!_n && _i["return"] != null) _i["return"]();
3095
+ } finally{
3096
+ if (_d) throw _e;
3097
+ }
3098
+ }
3099
+ return _arr;
3100
+ }
3101
+ function _non_iterable_rest$3() {
3102
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3103
+ }
3104
+ function _non_iterable_spread() {
3105
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3106
+ }
3107
+ function _object_spread(target) {
3108
+ for(var i = 1; i < arguments.length; i++){
3109
+ var source = arguments[i] != null ? arguments[i] : {};
3110
+ var ownKeys = Object.keys(source);
3111
+ if (typeof Object.getOwnPropertySymbols === "function") {
3112
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
3113
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
3114
+ }));
3115
+ }
3116
+ ownKeys.forEach(function(key) {
3117
+ _define_property$1(target, key, source[key]);
3118
+ });
3119
+ }
3120
+ return target;
3121
+ }
3122
+ function ownKeys(object, enumerableOnly) {
3123
+ var keys = Object.keys(object);
3124
+ if (Object.getOwnPropertySymbols) {
3125
+ var symbols = Object.getOwnPropertySymbols(object);
3126
+ keys.push.apply(keys, symbols);
3127
+ }
3128
+ return keys;
3129
+ }
3130
+ function _object_spread_props(target, source) {
3131
+ source = source != null ? source : {};
3132
+ if (Object.getOwnPropertyDescriptors) {
3133
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
3134
+ } else {
3135
+ ownKeys(Object(source)).forEach(function(key) {
3136
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
3137
+ });
3138
+ }
3139
+ return target;
3140
+ }
3141
+ function _object_without_properties(source, excluded) {
3142
+ if (source == null) return {};
3143
+ var target = _object_without_properties_loose(source, excluded);
3144
+ var key, i;
3145
+ if (Object.getOwnPropertySymbols) {
3146
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
3147
+ for(i = 0; i < sourceSymbolKeys.length; i++){
3148
+ key = sourceSymbolKeys[i];
3149
+ if (excluded.indexOf(key) >= 0) continue;
3150
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
3151
+ target[key] = source[key];
3152
+ }
3153
+ }
3154
+ return target;
3155
+ }
3156
+ function _object_without_properties_loose(source, excluded) {
3157
+ if (source == null) return {};
3158
+ var target = {};
3159
+ var sourceKeys = Object.keys(source);
3160
+ var key, i;
3161
+ for(i = 0; i < sourceKeys.length; i++){
3162
+ key = sourceKeys[i];
3163
+ if (excluded.indexOf(key) >= 0) continue;
3164
+ target[key] = source[key];
3165
+ }
3166
+ return target;
3167
+ }
3168
+ function _sliced_to_array$2(arr, i) {
3169
+ return _array_with_holes$3(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$3(arr, i) || _non_iterable_rest$3();
3170
+ }
3171
+ function _to_consumable_array(arr) {
3172
+ return _array_without_holes(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$3(arr) || _non_iterable_spread();
3173
+ }
3174
+ function _unsupported_iterable_to_array$3(o, minLen) {
3175
+ if (!o) return;
3176
+ if (typeof o === "string") return _array_like_to_array$3(o, minLen);
3177
+ var n = Object.prototype.toString.call(o).slice(8, -1);
3178
+ if (n === "Object" && o.constructor) n = o.constructor.name;
3179
+ if (n === "Map" || n === "Set") return Array.from(n);
3180
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array$3(o, minLen);
3181
+ }
3182
+ function isNil(value) {
3183
+ return value === null || value === undefined;
3184
+ }
3185
+ function isTextContent(content) {
3186
+ return !!content && typeof content === "object" && content.type === "text";
3187
+ }
3188
+ function isReasoningContent(content) {
3189
+ return !!content && typeof content === "object" && content.type === "reasoning";
3190
+ }
3191
+ function isComponentContent(content) {
3192
+ return !!content && typeof content === "object" && content.type === "component";
3193
+ }
3194
+ function inferContentSource(content) {
3195
+ if (typeof content === "string") {
3196
+ return "text";
3197
+ }
3198
+ switch(content === null || content === void 0 ? void 0 : content.type){
3199
+ case "text":
3200
+ return "text";
3201
+ case "reasoning":
3202
+ return "reasoning";
3203
+ case "component":
3204
+ return "component";
3205
+ case "memory":
3206
+ return "memory";
3207
+ default:
3208
+ return "content";
3209
+ }
3210
+ }
3211
+ function mapJoinHint(hint) {
3212
+ switch(hint){
3213
+ case "none":
3214
+ return "";
3215
+ case "space":
3216
+ return " ";
3217
+ case "line":
3218
+ return "\n";
3219
+ case "paragraph":
3220
+ return "\n\n";
3221
+ default:
3222
+ return "";
3223
+ }
3224
+ }
3225
+ function endsWithCodeFence(text) {
3226
+ var normalized = (text !== null && text !== void 0 ? text : "").replace(/[ \t]+$/g, "");
3227
+ return normalized.endsWith("```");
3228
+ }
3229
+ function shouldJoinWithoutSeparator(previous, current) {
3230
+ return !!(previous === null || previous === void 0 ? void 0 : previous.streamId) && previous.source === current.source && previous.streamId === current.streamId;
3231
+ }
3232
+ function getSeparator(previousType, previousText, nextText, joinHint) {
3233
+ if (!nextText || /^\s/.test(nextText)) {
3234
+ return "";
3235
+ }
3236
+ if (joinHint) {
3237
+ return mapJoinHint(joinHint);
3238
+ }
3239
+ if (previousType === "component") {
3240
+ return "\n\n";
3241
+ }
3242
+ if (endsWithCodeFence(previousText)) {
3243
+ return "\n";
3244
+ }
3245
+ if (previousText && !/[\s\n]$/.test(previousText)) {
3246
+ return "\n";
3247
+ }
3248
+ return "";
3249
+ }
3250
+ function normalizeIncomingContent(content, context) {
3251
+ if (typeof content !== "string") {
3252
+ return content;
3253
+ }
3254
+ return _object_spread({
3255
+ type: "text",
3256
+ text: content
3257
+ }, context.streamId ? {
3258
+ id: context.streamId
3259
+ } : {});
3260
+ }
3261
+ function ensureArrayContent(content) {
3262
+ if (Array.isArray(content)) {
3263
+ return content;
3264
+ }
3265
+ if (typeof content === "string" && content.length > 0) {
3266
+ return [
3267
+ {
3268
+ type: "text",
3269
+ text: content
3270
+ }
3271
+ ];
3272
+ }
3273
+ return [];
3274
+ }
3275
+ function stringifySingle(content) {
3276
+ if (content.type === "text") {
3277
+ return content.text;
3278
+ }
3279
+ if (content.type === "component") {
3280
+ return JSON.stringify(content.data);
3281
+ }
3282
+ return JSON.stringify(content);
3283
+ }
3284
+ function filterText(content) {
3285
+ if (typeof content === "string") {
3286
+ return content;
3287
+ }
3288
+ if ((content === null || content === void 0 ? void 0 : content.type) === "text") {
3289
+ return content.text;
3290
+ }
3291
+ return "";
3292
+ }
3293
+ function mergeComponentData(previous, incoming) {
3294
+ var _previous_data, _incoming_data;
3295
+ var _incoming_data1;
3296
+ var mergedIncomingData = Object.entries((_incoming_data1 = incoming.data) !== null && _incoming_data1 !== void 0 ? _incoming_data1 : {}).reduce(function(acc, param) {
3297
+ var _param = _sliced_to_array$2(param, 2), key = _param[0], value = _param[1];
3298
+ if (!isNil(value)) {
3299
+ acc[key] = value;
3300
+ }
3301
+ return acc;
3302
+ }, {});
3303
+ var _previous_data1;
3304
+ return _object_spread_props(_object_spread({}, previous, incoming), {
3305
+ data: _object_spread_props(_object_spread({}, (_previous_data1 = previous.data) !== null && _previous_data1 !== void 0 ? _previous_data1 : {}, mergedIncomingData), {
3306
+ created_date: ((_previous_data = previous.data) === null || _previous_data === void 0 ? void 0 : _previous_data.created_date) || ((_incoming_data = incoming.data) === null || _incoming_data === void 0 ? void 0 : _incoming_data.created_date)
3307
+ })
3308
+ });
3309
+ }
3310
+ function inferMessageAppendContext(content, fallbackSource) {
3311
+ return _object_spread({
3312
+ source: fallbackSource !== null && fallbackSource !== void 0 ? fallbackSource : inferContentSource(content)
3313
+ }, typeof content !== "string" && (content === null || content === void 0 ? void 0 : content.id) ? {
3314
+ streamId: String(content.id)
3315
+ } : {});
3316
+ }
3317
+ function resolveMessageAppendContext(options) {
3318
+ var inferredContext = inferMessageAppendContext(options.incoming, options.fallbackSource);
3319
+ var appendContext = typeof options.incoming === "string" && !inferredContext.streamId && options.fallbackStreamId ? _object_spread_props(_object_spread({}, inferredContext), {
3320
+ streamId: options.fallbackStreamId
3321
+ }) : inferredContext;
3322
+ var messageContext = shouldJoinWithoutSeparator(options.previous, appendContext) ? _object_spread_props(_object_spread({}, appendContext), {
3323
+ joinHint: "none"
3324
+ }) : appendContext;
3325
+ return {
3326
+ appendContext: appendContext,
3327
+ messageContext: messageContext
3328
+ };
3329
+ }
3330
+ /**
3331
+ * Stateful helper for streaming append.
3332
+ *
3333
+ * It keeps the previous append context and resolves the current one, so callers
3334
+ * can avoid passing `previous` manually for every chunk and still get stable
3335
+ * join behavior (for example, same source + same stream -> `joinHint: 'none'`).
3336
+ *
3337
+ * Call `reset()` at turn/session boundaries to prevent cross-turn contamination.
3338
+ */ function createMessageAppendContextTracker() {
3339
+ var initial = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
3340
+ var previous = initial;
3341
+ return {
3342
+ resolve: function resolve(options) {
3343
+ var resolved = resolveMessageAppendContext(_object_spread_props(_object_spread({}, options), {
3344
+ previous: previous
3345
+ }));
3346
+ previous = resolved.appendContext;
3347
+ return resolved;
3348
+ },
3349
+ reset: function reset() {
3350
+ previous = null;
3351
+ },
3352
+ current: function current() {
3353
+ return previous;
3354
+ }
3355
+ };
3356
+ }
3357
+ /**
3358
+ * Append one incoming chunk into a chat message in place.
3359
+ *
3360
+ * Behavior:
3361
+ * - Keeps `aiMessage` object reference stable (caller may hold this object).
3362
+ * - Updates message properties with new references (`content`/`reasoning` arrays)
3363
+ * so UI change detection that relies on reference changes can react reliably.
3364
+ * - Applies context-aware merge rules for text/reasoning/component chunks.
3365
+ * - `previous` must be supplied by caller when same-stream join inference is needed.
3366
+ */ function appendMessageContent(aiMessage, incoming, context) {
3367
+ aiMessage.status = "answering";
3368
+ var _ref = context !== null && context !== void 0 ? context : {}, previous = _ref.previous, contextWithoutPrevious = _object_without_properties(_ref, [
3369
+ "previous"
3370
+ ]);
3371
+ var resolvedContext = _object_spread({}, inferMessageAppendContext(incoming), contextWithoutPrevious);
3372
+ var content = normalizeIncomingContent(incoming, resolvedContext);
3373
+ if (isReasoningContent(content)) {
3374
+ var _aiMessage_reasoning;
3375
+ var reasoning = (_aiMessage_reasoning = aiMessage.reasoning) !== null && _aiMessage_reasoning !== void 0 ? _aiMessage_reasoning : [];
3376
+ var lastReasoning = reasoning[reasoning.length - 1];
3377
+ if ((lastReasoning === null || lastReasoning === void 0 ? void 0 : lastReasoning.id) === content.id) {
3378
+ var mergedReasoning = _object_spread_props(_object_spread({}, lastReasoning), {
3379
+ text: "".concat(lastReasoning.text).concat(content.text)
3380
+ });
3381
+ aiMessage.reasoning = _to_consumable_array(reasoning.slice(0, reasoning.length - 1)).concat([
3382
+ mergedReasoning
3383
+ ]);
3384
+ } else {
3385
+ aiMessage.reasoning = _to_consumable_array(reasoning).concat([
3386
+ content
3387
+ ]);
3388
+ }
3389
+ aiMessage.status = "reasoning";
3390
+ return;
3391
+ }
3392
+ var chunks = ensureArrayContent(aiMessage.content);
3393
+ if (isTextContent(content)) {
3394
+ var _resolvedContext_joinHint;
3395
+ var joinHint = (_resolvedContext_joinHint = resolvedContext.joinHint) !== null && _resolvedContext_joinHint !== void 0 ? _resolvedContext_joinHint : shouldJoinWithoutSeparator(previous, resolvedContext) ? "none" : undefined;
3396
+ var lastContent = chunks[chunks.length - 1];
3397
+ if (isTextContent(lastContent) && (joinHint === "none" || !!content.id && !!lastContent.id && lastContent.id === content.id)) {
3398
+ var mergedLastContent = _object_spread(_object_spread_props(_object_spread({}, lastContent), {
3399
+ text: "".concat(lastContent.text).concat(content.text)
3400
+ }), !lastContent.id && content.id ? {
3401
+ id: content.id
3402
+ } : {});
3403
+ aiMessage.content = _to_consumable_array(chunks.slice(0, chunks.length - 1)).concat([
3404
+ mergedLastContent
3405
+ ]);
3406
+ return;
3407
+ }
3408
+ var _lastContent_type;
3409
+ var previousType = (_lastContent_type = lastContent === null || lastContent === void 0 ? void 0 : lastContent.type) !== null && _lastContent_type !== void 0 ? _lastContent_type : null;
3410
+ var previousText = isTextContent(lastContent) ? lastContent.text : "";
3411
+ var separator = getSeparator(previousType, previousText, content.text, joinHint);
3412
+ var appended = _object_spread_props(_object_spread({}, content), {
3413
+ text: separator + content.text
3414
+ });
3415
+ aiMessage.content = _to_consumable_array(chunks).concat([
3416
+ appended
3417
+ ]);
3418
+ return;
3419
+ }
3420
+ var nextChunks = _to_consumable_array(chunks);
3421
+ if (isComponentContent(content) && content.id) {
3422
+ var index = nextChunks.findIndex(function(item) {
3423
+ return isComponentContent(item) && item.id === content.id;
3424
+ });
3425
+ if (index > -1) {
3426
+ nextChunks[index] = mergeComponentData(nextChunks[index], content);
3427
+ } else {
3428
+ nextChunks.push(content);
3429
+ }
3430
+ } else {
3431
+ nextChunks.push(content);
3432
+ }
3433
+ aiMessage.content = nextChunks;
3434
+ }
3435
+ function appendMessagePlainText(accumulator, incoming, context) {
3436
+ var resolvedContext = _object_spread({}, inferMessageAppendContext(incoming), context !== null && context !== void 0 ? context : {});
3437
+ var nextText = filterText(incoming);
3438
+ if (!nextText) {
3439
+ return accumulator !== null && accumulator !== void 0 ? accumulator : "";
3440
+ }
3441
+ var previous = accumulator !== null && accumulator !== void 0 ? accumulator : "";
3442
+ var separator = getSeparator("text", previous, nextText, resolvedContext.joinHint);
3443
+ return previous + separator + nextText;
3444
+ }
3445
+ function stringifyMessageContent(content) {
3446
+ if (typeof content === "string") {
3447
+ return content;
3448
+ }
3449
+ if (Array.isArray(content)) {
3450
+ var result = "";
3451
+ var previousContext = null;
3452
+ content.forEach(function(item) {
3453
+ var itemContext = inferMessageAppendContext(item);
3454
+ var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
3455
+ result = appendMessagePlainText(result, stringifySingle(item), _object_spread({}, itemContext, joinHint ? {
3456
+ joinHint: joinHint
3457
+ } : {}));
3458
+ previousContext = itemContext;
3459
+ });
3460
+ return result;
3461
+ }
3462
+ return stringifySingle(content);
3463
+ }
3464
+ function filterMessageText(content) {
3465
+ if (typeof content === "string") {
3466
+ return content;
3467
+ }
3468
+ if (Array.isArray(content)) {
3469
+ var result = "";
3470
+ var previousContext = null;
3471
+ content.forEach(function(item) {
3472
+ var nextText = filterText(item);
3473
+ if (!nextText) {
3474
+ return;
3475
+ }
3476
+ var itemContext = inferMessageAppendContext(item);
3477
+ var joinHint = shouldJoinWithoutSeparator(previousContext, itemContext) ? "none" : undefined;
3478
+ result = appendMessagePlainText(result, nextText, _object_spread({}, itemContext, joinHint ? {
3479
+ joinHint: joinHint
3480
+ } : {}));
3481
+ previousContext = itemContext;
3482
+ });
3483
+ return result || null;
3484
+ }
3485
+ return filterText(content) || null;
3486
+ }
3487
+
3052
3488
  var PermissionsEnum;
3053
3489
  (function(PermissionsEnum) {
3054
3490
  PermissionsEnum["PROFILE_EDIT"] = "PROFILE_EDIT";
@@ -3908,4 +4344,9 @@ var InterruptMessageType;
3908
4344
  InterruptMessageType["Select"] = "select";
3909
4345
  })(InterruptMessageType || (InterruptMessageType = {}));
3910
4346
 
3911
- 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, ChatMessageFeedbackRatingEnum, 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, IteratorIndexParameterName, IteratorItemParameterName, 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_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, USAGE_HOUR_FORMAT, 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, genXpertIteratorKey, genXpertMiddlewareKey, genXpertSkillKey, genXpertStartKey, genXpertTriggerKey, generateCronExpression, getAgentMiddlewareNodes, getAgentVarGroup, getCurrentGraph, getEnabledTools, getStoreNamespace, getSwarmPartners, getToolCallFromConfig, getToolCallIdFromConfig, getToolLabel, getVariableSchema, getWorkflowTriggers, getWorkspaceFromRunnable, isAgentKey, isAudioType, isDocumentSheet, isEnableTool, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isMessageGroup, isMiddlewareToolEnabled, isRouterKey, isToolEnabled, isVideoType, isXpertNodeType, letterStartSUID, locateNodes, mapTranslationLanguage, messageContentText, omitXpertRelations, setStateVariable, shortTitle, transformInstallation, uuid, workflowNodeIdentifier, xpertLabel };
4347
+ var PLUGIN_LEVEL = {
4348
+ SYSTEM: "system",
4349
+ ORGANIZATION: "organization"
4350
+ };
4351
+
4352
+ 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, ChatMessageFeedbackRatingEnum, 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, IteratorIndexParameterName, IteratorItemParameterName, 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, PLUGIN_LEVEL, 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_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, USAGE_HOUR_FORMAT, UserType, VariableOperationEnum, VariableOperations, VectorTypeEnum, Visibility, VisitEntityEnum, VisitTypeEnum, WeekDaysEnum, WorkflowComparisonOperator, WorkflowLogicalOperator, WorkflowNodeTypeEnum, XpertAgentExecutionStatusEnum, XpertParameterTypeEnum, XpertTableStatus, XpertToolsetCategoryEnum, XpertTypeEnum, agentLabel, agentUniqueName, allChannels, appendMessageContent, appendMessagePlainText, buildChunkTree, channelName, classificateDocumentCategory, collectTreeLeaves, configurableStoreNamespace, convertToUrlPath, createAgentConnections, createMessageAppendContextTracker, createXpertGraph, createXpertNodes, embeddingCubeCollectionName, extractSemanticModelDraft, figureOutXpert, filterMessageText, findStartNodes, genJSONParseKey, genJSONStringifyKey, genListOperatorKey, genPipelineChunkerKey, genPipelineKnowledgeBaseKey, genPipelineProcessorKey, genPipelineSourceKey, genPipelineUnderstandingKey, genVariableAggregatorKey, genXpertDBDeleteKey, genXpertDBInsertKey, genXpertDBQueryKey, genXpertDBSqlKey, genXpertDBUpdateKey, genXpertIteratorKey, genXpertMiddlewareKey, genXpertSkillKey, genXpertStartKey, genXpertTriggerKey, generateCronExpression, getAgentMiddlewareNodes, getAgentVarGroup, getCurrentGraph, getEnabledTools, getStoreNamespace, getSwarmPartners, getToolCallFromConfig, getToolCallIdFromConfig, getToolLabel, getVariableSchema, getWorkflowTriggers, getWorkspaceFromRunnable, inferMessageAppendContext, isAgentKey, isAudioType, isDocumentSheet, isEnableTool, isImageType, isInterruptMessage, isIteratingKey, isIteratorKey, isMessageGroup, isMiddlewareToolEnabled, isRouterKey, isToolEnabled, isVideoType, isXpertNodeType, letterStartSUID, locateNodes, mapTranslationLanguage, messageContentText, omitXpertRelations, resolveMessageAppendContext, setStateVariable, shortTitle, stringifyMessageContent, transformInstallation, uuid, workflowNodeIdentifier, xpertLabel };