@nocobase/plugin-flow-engine 2.1.0-beta.35 → 2.1.0-beta.37

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.
Files changed (68) hide show
  1. package/dist/externalVersion.js +9 -9
  2. package/dist/node_modules/@ant-design/icons-svg/package.json +1 -1
  3. package/dist/node_modules/acorn/LICENSE +21 -0
  4. package/dist/node_modules/acorn/bin/acorn +4 -0
  5. package/dist/node_modules/acorn/dist/acorn.d.mts +857 -0
  6. package/dist/node_modules/acorn/dist/acorn.d.ts +857 -0
  7. package/dist/node_modules/acorn/dist/acorn.js +1 -0
  8. package/dist/node_modules/acorn/dist/bin.js +90 -0
  9. package/dist/node_modules/acorn/package.json +1 -0
  10. package/dist/node_modules/acorn-jsx/LICENSE +19 -0
  11. package/dist/node_modules/acorn-jsx/index.d.ts +12 -0
  12. package/dist/node_modules/acorn-jsx/index.js +1 -0
  13. package/dist/node_modules/acorn-jsx/package.json +1 -0
  14. package/dist/node_modules/acorn-jsx/xhtml.js +255 -0
  15. package/dist/node_modules/acorn-walk/LICENSE +21 -0
  16. package/dist/node_modules/acorn-walk/dist/walk.d.mts +177 -0
  17. package/dist/node_modules/acorn-walk/dist/walk.d.ts +177 -0
  18. package/dist/node_modules/acorn-walk/dist/walk.js +1 -0
  19. package/dist/node_modules/acorn-walk/node_modules/acorn/bin/acorn +4 -0
  20. package/dist/node_modules/acorn-walk/node_modules/acorn/dist/acorn.d.mts +866 -0
  21. package/dist/node_modules/acorn-walk/node_modules/acorn/dist/acorn.d.ts +866 -0
  22. package/dist/node_modules/acorn-walk/node_modules/acorn/dist/acorn.js +6174 -0
  23. package/dist/node_modules/acorn-walk/node_modules/acorn/dist/bin.js +90 -0
  24. package/dist/node_modules/acorn-walk/node_modules/acorn/package.json +50 -0
  25. package/dist/node_modules/acorn-walk/package.json +1 -0
  26. package/dist/node_modules/ses/package.json +1 -1
  27. package/dist/node_modules/zod/package.json +1 -1
  28. package/dist/server/flow-surfaces/action-scope.d.ts +2 -0
  29. package/dist/server/flow-surfaces/action-scope.js +8 -0
  30. package/dist/server/flow-surfaces/authoring-validation.d.ts +3 -0
  31. package/dist/server/flow-surfaces/authoring-validation.js +317 -9
  32. package/dist/server/flow-surfaces/blueprint/compile-blocks.js +143 -3
  33. package/dist/server/flow-surfaces/blueprint/public-types.d.ts +1 -1
  34. package/dist/server/flow-surfaces/builder.js +54 -1
  35. package/dist/server/flow-surfaces/catalog.js +158 -2
  36. package/dist/server/flow-surfaces/chart-config.d.ts +58 -54
  37. package/dist/server/flow-surfaces/chart-config.js +18 -5
  38. package/dist/server/flow-surfaces/compose-compiler.d.ts +1 -1
  39. package/dist/server/flow-surfaces/compose-runtime.d.ts +1 -0
  40. package/dist/server/flow-surfaces/compose-runtime.js +24 -6
  41. package/dist/server/flow-surfaces/configure-options.js +40 -1
  42. package/dist/server/flow-surfaces/default-block-actions.js +11 -0
  43. package/dist/server/flow-surfaces/index.js +4 -2
  44. package/dist/server/flow-surfaces/node-use-sets.js +2 -0
  45. package/dist/server/flow-surfaces/runjs-authoring/ctx-libs-member-mismatch-stop/index.js +1 -1
  46. package/dist/server/flow-surfaces/runjs-authoring/index.d.ts +14 -2
  47. package/dist/server/flow-surfaces/runjs-authoring/index.js +4633 -252
  48. package/dist/server/flow-surfaces/runjs-authoring/nested-runjs-stop/index.d.ts +10 -0
  49. package/dist/server/flow-surfaces/runjs-authoring/nested-runjs-stop/index.js +40 -0
  50. package/dist/server/flow-surfaces/runjs-authoring/rules.js +6 -0
  51. package/dist/server/flow-surfaces/runjs-authoring/source-limit-stop/index.d.ts +10 -0
  52. package/dist/server/flow-surfaces/runjs-authoring/source-limit-stop/index.js +40 -0
  53. package/dist/server/flow-surfaces/runjs-authoring/syntax-stop/index.d.ts +10 -0
  54. package/dist/server/flow-surfaces/runjs-authoring/syntax-stop/index.js +40 -0
  55. package/dist/server/flow-surfaces/runjs-authoring/types.d.ts +1 -1
  56. package/dist/server/flow-surfaces/service-utils.d.ts +1 -1
  57. package/dist/server/flow-surfaces/service-utils.js +3 -0
  58. package/dist/server/flow-surfaces/service.d.ts +106 -17
  59. package/dist/server/flow-surfaces/service.js +1760 -131
  60. package/dist/server/flow-surfaces/support-matrix.d.ts +1 -1
  61. package/dist/server/flow-surfaces/support-matrix.js +13 -1
  62. package/dist/server/flow-surfaces/surface-context.js +4 -13
  63. package/dist/swagger/flow-surfaces.d.ts +148 -0
  64. package/dist/swagger/flow-surfaces.examples.d.ts +179 -1
  65. package/dist/swagger/flow-surfaces.examples.js +75 -3
  66. package/dist/swagger/flow-surfaces.js +181 -7
  67. package/dist/swagger/index.d.ts +148 -0
  68. package/package.json +5 -2
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import type { RunJsAuthoringRuleDefinition } from '../types';
10
+ export declare const nestedRunjsStopRule: RunJsAuthoringRuleDefinition;
@@ -0,0 +1,40 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
+ var nested_runjs_stop_exports = {};
28
+ __export(nested_runjs_stop_exports, {
29
+ nestedRunjsStopRule: () => nestedRunjsStopRule
30
+ });
31
+ module.exports = __toCommonJS(nested_runjs_stop_exports);
32
+ const nestedRunjsStopRule = {
33
+ repairClass: "nested-runjs-stop",
34
+ defaultRuleId: "runjs-nested-runjs-forbidden",
35
+ suggestedAction: "Write the JavaScript directly in the current RunJS body instead of calling ctx.runjs(...)."
36
+ };
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ nestedRunjsStopRule
40
+ });
@@ -36,16 +36,22 @@ var import_blocked_global_stop = require("./blocked-global-stop");
36
36
  var import_ctx_libs_member_mismatch_stop = require("./ctx-libs-member-mismatch-stop");
37
37
  var import_ctx_root_mismatch_stop = require("./ctx-root-mismatch-stop");
38
38
  var import_missing_top_level_return = require("./missing-top-level-return");
39
+ var import_nested_runjs_stop = require("./nested-runjs-stop");
39
40
  var import_render_top_level_function_wrapper = require("./render-top-level-function-wrapper");
40
41
  var import_render_unreachable_render_call = require("./render-unreachable-render-call");
41
42
  var import_replace_innerhtml_with_render = require("./replace-innerhtml-with-render");
42
43
  var import_react_runtime_contract_stop = require("./react-runtime-contract-stop");
43
44
  var import_resource_runtime_contract_stop = require("./resource-runtime-contract-stop");
45
+ var import_source_limit_stop = require("./source-limit-stop");
44
46
  var import_switch_to_resource_api = require("./switch-to-resource-api");
47
+ var import_syntax_stop = require("./syntax-stop");
45
48
  var import_unknown_model_stop = require("./unknown-model-stop");
46
49
  var import_unknown_surface_stop = require("./unknown-surface-stop");
47
50
  var import_value_surface_forbids_render = require("./value-surface-forbids-render");
48
51
  const RUNJS_AUTHORING_RULES = [
52
+ import_syntax_stop.syntaxStopRule,
53
+ import_nested_runjs_stop.nestedRunjsStopRule,
54
+ import_source_limit_stop.sourceLimitStopRule,
49
55
  import_switch_to_resource_api.switchToResourceApiRule,
50
56
  import_missing_top_level_return.missingTopLevelReturnRule,
51
57
  import_value_surface_forbids_render.valueSurfaceForbidsRenderRule,
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import type { RunJsAuthoringRuleDefinition } from '../types';
10
+ export declare const sourceLimitStopRule: RunJsAuthoringRuleDefinition;
@@ -0,0 +1,40 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
+ var source_limit_stop_exports = {};
28
+ __export(source_limit_stop_exports, {
29
+ sourceLimitStopRule: () => sourceLimitStopRule
30
+ });
31
+ module.exports = __toCommonJS(source_limit_stop_exports);
32
+ const sourceLimitStopRule = {
33
+ repairClass: "source-limit-stop",
34
+ defaultRuleId: "runjs-source-too-large",
35
+ suggestedAction: "Reduce the authored JavaScript size or split the UI behavior into fewer, smaller RunJS sources."
36
+ };
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ sourceLimitStopRule
40
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import type { RunJsAuthoringRuleDefinition } from '../types';
10
+ export declare const syntaxStopRule: RunJsAuthoringRuleDefinition;
@@ -0,0 +1,40 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __export = (target, all) => {
15
+ for (var name in all)
16
+ __defProp(target, name, { get: all[name], enumerable: true });
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
+ var syntax_stop_exports = {};
28
+ __export(syntax_stop_exports, {
29
+ syntaxStopRule: () => syntaxStopRule
30
+ });
31
+ module.exports = __toCommonJS(syntax_stop_exports);
32
+ const syntaxStopRule = {
33
+ repairClass: "syntax-stop",
34
+ defaultRuleId: "runjs-syntax-invalid",
35
+ suggestedAction: "Fix the JavaScript syntax before retrying the FlowSurface write."
36
+ };
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ syntaxStopRule
40
+ });
@@ -6,7 +6,7 @@
6
6
  * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
7
  * For more information, please refer to: https://www.nocobase.com/agreement.
8
8
  */
9
- export type RunJsAuthoringRepairClass = 'switch-to-resource-api' | 'missing-top-level-return' | 'value-surface-forbids-render' | 'unknown-surface-stop' | 'unknown-model-stop' | 'replace-innerhtml-with-render' | 'render-top-level-function-wrapper' | 'render-unreachable-render-call' | 'blocked-global-stop' | 'blocked-capability-reroute' | 'react-runtime-contract-stop' | 'resource-runtime-contract-stop' | 'ctx-libs-member-mismatch-stop' | 'ctx-root-mismatch-stop';
9
+ export type RunJsAuthoringRepairClass = 'syntax-stop' | 'nested-runjs-stop' | 'source-limit-stop' | 'switch-to-resource-api' | 'missing-top-level-return' | 'value-surface-forbids-render' | 'unknown-surface-stop' | 'unknown-model-stop' | 'replace-innerhtml-with-render' | 'render-top-level-function-wrapper' | 'render-unreachable-render-call' | 'blocked-global-stop' | 'blocked-capability-reroute' | 'react-runtime-contract-stop' | 'resource-runtime-contract-stop' | 'ctx-libs-member-mismatch-stop' | 'ctx-root-mismatch-stop';
10
10
  export type RunJsAuthoringSurfaceStyle = 'render' | 'value' | 'action';
11
11
  export interface RunJsAuthoringRuleDefinition {
12
12
  repairClass: RunJsAuthoringRepairClass;
@@ -118,7 +118,7 @@ export declare function splitComposeFieldChanges(changes: Record<string, any>, w
118
118
  wrapperChanges: _.Dictionary<any>;
119
119
  fieldChanges: _.Dictionary<any>;
120
120
  };
121
- export declare function getCatalogRecordActionContainerUse(use?: string): "DetailsBlockModel" | "ListItemModel" | "GridCardItemModel" | "TableActionsColumnModel";
121
+ export declare function getCatalogRecordActionContainerUse(use?: string): "DetailsBlockModel" | "ListItemModel" | "GridCardItemModel" | "TableActionsColumnModel" | "CommentItemModel";
122
122
  export declare function normalizeRowSpans(spans?: Array<number | undefined>): number[];
123
123
  export declare function normalizePublicBlockHeightMode(input: any): string;
124
124
  export declare function normalizeStoredChartCardHeightMode(input: any): string;
@@ -714,6 +714,9 @@ function getCatalogRecordActionContainerUse(use) {
714
714
  case "GridCardBlockModel":
715
715
  case "GridCardItemModel":
716
716
  return "GridCardItemModel";
717
+ case "CommentsBlockModel":
718
+ case "CommentItemModel":
719
+ return "CommentItemModel";
717
720
  default:
718
721
  return null;
719
722
  }
@@ -9,12 +9,19 @@
9
9
  import type { Plugin } from '@nocobase/server';
10
10
  import _ from 'lodash';
11
11
  import FlowModelRepository from '../repository';
12
+ import type { FlowSurfaceApplyBlueprintDocument } from './blueprint';
12
13
  import { SurfaceLocator } from './locator';
13
14
  import type { TemplateTranslate } from './template-display';
14
15
  import type { FlowSurfaceActionLinkageRule, FlowSurfaceBlockLinkageRule, FlowSurfaceFieldLinkageRule, FlowSurfaceFieldValueRule, FlowSurfaceGetReactionMetaResult, FlowSurfaceGetReactionMetaValues, FlowSurfaceReactionWriteResult, FlowSurfaceReactionWriteValues } from './reaction/types';
15
16
  import type { FlowSurfaceTemplateListPopupActionContext, FlowSurfaceTemplateListValues, FlowSurfaceTemplateRow } from './template-service-utils';
16
- import type { FlowSurfaceApplyValues, FlowSurfaceCatalogResponse, FlowSurfaceCatalogValues, FlowSurfaceComposeValues, FlowSurfaceConfigureValues, FlowSurfaceContextValues, FlowSurfaceDescribeValues, FlowSurfaceMutateValues } from './types';
17
+ import type { FlowSurfaceApplyValues, FlowSurfaceActionScope, FlowSurfaceCatalogResponse, FlowSurfaceCatalogValues, FlowSurfaceComposeValues, FlowSurfaceConfigureValues, FlowSurfaceContextValues, FlowSurfaceDescribeValues, FlowSurfaceMutateValues } from './types';
18
+ import type { FlowSurfaceContextResponse, FlowSurfaceContextVarInfo } from './types';
17
19
  type FlowSurfacePopupTemplateAliasSession = Map<string, string>;
20
+ type FlowSurfaceRequestRoles = readonly string[] | string;
21
+ type FlowSurfaceReadOptions = {
22
+ transaction?: any;
23
+ currentRoles?: FlowSurfaceRequestRoles;
24
+ };
18
25
  type FlowSurfaceAddFieldResult = {
19
26
  uid?: string;
20
27
  parentUid?: string;
@@ -33,6 +40,12 @@ type FlowSurfaceAddFieldResult = {
33
40
  popupGridUid?: string;
34
41
  };
35
42
  type FlowSurfacePopupTemplateTreeCache = Map<string, Promise<any | null> | any | null>;
43
+ type FlowSurfaceApplyBlueprintResponse = {
44
+ version: '1';
45
+ mode: FlowSurfaceApplyBlueprintDocument['mode'];
46
+ target: Record<string, any>;
47
+ surface: any;
48
+ };
36
49
  export declare class FlowSurfacesService {
37
50
  private readonly plugin;
38
51
  constructor(plugin: Plugin);
@@ -128,7 +141,7 @@ export declare class FlowSurfacesService {
128
141
  private buildAssociatedRecordsResourceInit;
129
142
  context(values: FlowSurfaceContextValues, options?: {
130
143
  transaction?: any;
131
- }): Promise<import("./types").FlowSurfaceContextResponse>;
144
+ }): Promise<FlowSurfaceContextResponse>;
132
145
  private extractReactionCanonicalRules;
133
146
  private buildReactionFieldPathMaps;
134
147
  private extractReactionFieldPaths;
@@ -161,9 +174,7 @@ export declare class FlowSurfacesService {
161
174
  private stripInternalSurfaceMetaFromNodeTree;
162
175
  private buildSurfaceReadPayload;
163
176
  private buildSurfaceContextFingerprint;
164
- get(input: Record<string, any>, options?: {
165
- transaction?: any;
166
- }): Promise<Record<string, any>>;
177
+ get(input: Record<string, any>, options?: FlowSurfaceReadOptions): Promise<Record<string, any>>;
167
178
  private getDeclaredKeyPersistenceDeps;
168
179
  private patchDeclaredKeyModel;
169
180
  private persistCreatedKeysForAction;
@@ -176,6 +187,7 @@ export declare class FlowSurfacesService {
176
187
  private resolveApplyBlueprintCreateNavigationGroup;
177
188
  private resolveApplyBlueprintCreatePageIdentity;
178
189
  private prepareApplyBlueprintRequest;
190
+ private prevalidateApplyBlueprintChartAssets;
179
191
  private getApplyBlueprintKanbanBlockResourceObject;
180
192
  private normalizeApplyBlueprintKanbanResourceText;
181
193
  private getApplyBlueprintKanbanBlockBinding;
@@ -199,13 +211,12 @@ export declare class FlowSurfacesService {
199
211
  private bindTransactionRollbackEmitter;
200
212
  applyBlueprint(values: Record<string, any>, options?: {
201
213
  transaction?: any;
202
- }): Promise<{
203
- version: string;
204
- mode: import("./blueprint").FlowSurfaceApplyBlueprintMode;
205
- target: _.Dictionary<any>;
206
- surface: Record<string, any>;
207
- }>;
214
+ currentRoles?: FlowSurfaceRequestRoles;
215
+ }): Promise<FlowSurfaceApplyBlueprintResponse>;
216
+ private applyBlueprintMutationWithoutExternalTransaction;
217
+ private assertApplyBlueprintAuthoringPayload;
208
218
  private applyBlueprintWithTransaction;
219
+ private buildApplyBlueprintResponse;
209
220
  private findApprovalSurfaceRootForNode;
210
221
  private syncApprovalRuntimeConfigForSurfaceRoot;
211
222
  private syncApprovalRuntimeConfigForNode;
@@ -318,6 +329,7 @@ export declare class FlowSurfacesService {
318
329
  private decorateTemplateReadbackTree;
319
330
  compose(values: FlowSurfaceComposeValues, options?: {
320
331
  transaction?: any;
332
+ currentRoles?: FlowSurfaceRequestRoles;
321
333
  enabledPackages?: ReadonlySet<string>;
322
334
  popupTemplateAliasSession?: FlowSurfacePopupTemplateAliasSession;
323
335
  popupTemplateTreeCache?: FlowSurfacePopupTemplateTreeCache;
@@ -325,6 +337,7 @@ export declare class FlowSurfacesService {
325
337
  }): Promise<import("./compose-runtime").FlowSurfaceComposeExecutionResult>;
326
338
  configure(values: FlowSurfaceConfigureValues, options?: {
327
339
  transaction?: any;
340
+ currentRoles?: FlowSurfaceRequestRoles;
328
341
  popupTemplateTreeCache?: FlowSurfacePopupTemplateTreeCache;
329
342
  skipConfigureGeneratedDefaultPopup?: boolean;
330
343
  }): Promise<_.Dictionary<any> | {
@@ -443,6 +456,7 @@ export declare class FlowSurfacesService {
443
456
  }): Promise<FlowSurfaceAddFieldResult>;
444
457
  addAction(values: Record<string, any>, options?: {
445
458
  transaction?: any;
459
+ currentRoles?: FlowSurfaceRequestRoles;
446
460
  enabledPackages?: ReadonlySet<string>;
447
461
  autoCompleteDefaultPopup?: boolean;
448
462
  popupTemplateAliasSession?: FlowSurfacePopupTemplateAliasSession;
@@ -451,19 +465,20 @@ export declare class FlowSurfacesService {
451
465
  uid: any;
452
466
  parentUid: any;
453
467
  subKey: string;
454
- scope: import("./types").FlowSurfaceActionScope;
468
+ scope: FlowSurfaceActionScope;
455
469
  }>;
456
470
  addRecordAction(values: Record<string, any>, options?: {
457
471
  transaction?: any;
472
+ currentRoles?: FlowSurfaceRequestRoles;
458
473
  enabledPackages?: ReadonlySet<string>;
459
474
  autoCompleteDefaultPopup?: boolean;
460
475
  popupTemplateAliasSession?: FlowSurfacePopupTemplateAliasSession;
461
476
  popupTemplateTreeCache?: FlowSurfacePopupTemplateTreeCache;
462
477
  }): Promise<{
463
- uid: string;
478
+ uid: any;
464
479
  parentUid: any;
465
480
  subKey: string;
466
- scope: import("./types").FlowSurfaceActionScope;
481
+ scope: FlowSurfaceActionScope;
467
482
  }>;
468
483
  addBlocks(values: Record<string, any>): Promise<{
469
484
  [x: string]: number | Record<string, any>[];
@@ -475,12 +490,16 @@ export declare class FlowSurfacesService {
475
490
  successCount: number;
476
491
  errorCount: number;
477
492
  }>;
478
- addActions(values: Record<string, any>): Promise<{
493
+ addActions(values: Record<string, any>, options?: {
494
+ currentRoles?: FlowSurfaceRequestRoles;
495
+ }): Promise<{
479
496
  [x: string]: number | Record<string, any>[];
480
497
  successCount: number;
481
498
  errorCount: number;
482
499
  }>;
483
- addRecordActions(values: Record<string, any>): Promise<{
500
+ addRecordActions(values: Record<string, any>, options?: {
501
+ currentRoles?: FlowSurfaceRequestRoles;
502
+ }): Promise<{
484
503
  [x: string]: number | Record<string, any>[];
485
504
  successCount: number;
486
505
  errorCount: number;
@@ -605,6 +624,7 @@ export declare class FlowSurfacesService {
605
624
  private ensureLocalFieldPopupSurface;
606
625
  private applyInlineNodeSettings;
607
626
  private resolveComposeBlockSettings;
627
+ private resolveComposeActionSettings;
608
628
  private applyInlineFieldPopup;
609
629
  private applyInlineFieldSettings;
610
630
  private applyInlineStandaloneFieldSettings;
@@ -668,6 +688,7 @@ export declare class FlowSurfacesService {
668
688
  private applyInlineActionPopup;
669
689
  updateSettings(values: Record<string, any>, options?: {
670
690
  transaction?: any;
691
+ currentRoles?: FlowSurfaceRequestRoles;
671
692
  replaceChartCardSettings?: boolean;
672
693
  replacePopupStepParamSubtrees?: boolean;
673
694
  openViewActionName?: string;
@@ -675,6 +696,9 @@ export declare class FlowSurfacesService {
675
696
  popupActionContext?: FlowSurfaceTemplateListPopupActionContext;
676
697
  popupTemplateTreeCache?: FlowSurfacePopupTemplateTreeCache;
677
698
  skipHiddenPopupHostEnsure?: boolean;
699
+ enabledPackages?: ReadonlySet<string>;
700
+ allowAIEmployeeInternalProps?: boolean;
701
+ replaceRecordHistorySettings?: boolean;
678
702
  }): Promise<{
679
703
  uid: any;
680
704
  updated?: undefined;
@@ -683,8 +707,10 @@ export declare class FlowSurfacesService {
683
707
  updated: string[];
684
708
  }>;
685
709
  private normalizeLegacyDataScopeFilterWrapperForUpdateSettings;
710
+ private assertRecordHistoryRecordIdWriteAllowed;
686
711
  private syncCalendarPopupPropsForUpdateSettings;
687
712
  private replaceExplicitPopupStepParamSubtreesForUpdateSettings;
713
+ private replaceRecordHistorySettingsForUpdateSettings;
688
714
  private normalizePopupStepParamReplacementForUpdateSettings;
689
715
  private stripPopupPropsFromPayload;
690
716
  private syncDefaultSortingForUpdateSettings;
@@ -705,7 +731,12 @@ export declare class FlowSurfacesService {
705
731
  private stripLegacyBlockHeaderChromeForUpdateSettings;
706
732
  private normalizeOpenViewForUpdateSettings;
707
733
  private syncChartConfigureForUpdateSettings;
734
+ private validateBuilderChartFieldsForUpdateSettings;
708
735
  private validateChartConfigureForUpdateSettings;
736
+ private normalizeChartSelectionFieldPath;
737
+ private validateBuilderChartFieldsForRuntime;
738
+ private resolveBuilderChartAssociationSubfieldSuggestion;
739
+ private validateChartConfigureForRuntime;
709
740
  private stripChartSqlForInspection;
710
741
  private normalizeReadOnlyChartSql;
711
742
  private buildChartSqlPreviewQuery;
@@ -752,7 +783,7 @@ export declare class FlowSurfacesService {
752
783
  additionalProperties: boolean;
753
784
  };
754
785
  }[];
755
- vars: Record<string, import("./types").FlowSurfaceContextVarInfo>;
786
+ vars: Record<string, FlowSurfaceContextVarInfo>;
756
787
  fingerprint: string;
757
788
  writeCapabilities: {
758
789
  defaultAddPhase: string;
@@ -805,6 +836,7 @@ export declare class FlowSurfacesService {
805
836
  private normalizeEventFlowObject;
806
837
  private persistEventFlowRegistry;
807
838
  private buildEventFlowWriteResult;
839
+ private buildFlowRegistryRunJsAuthoringContext;
808
840
  private assertFlowRegistryRunJsAuthoringPayload;
809
841
  private buildEventFlowBindingMeta;
810
842
  private buildEventFlowStepActionsMeta;
@@ -954,7 +986,21 @@ export declare class FlowSurfacesService {
954
986
  private stripBasicSqlVisualWhenPreviewUnavailable;
955
987
  private configureActionPanelBlock;
956
988
  private configureMapBlock;
989
+ private normalizeBlockResourceForValidation;
990
+ private isCommentTemplateCollection;
991
+ private isCommentsAssociationField;
992
+ private getRecordHistoryDeclaredFilterTargetKey;
993
+ private collectionHasConcreteField;
994
+ private assertInitialBlockResourceCompatible;
995
+ private assertInitialBlockSettingsCompatible;
996
+ private assertCommentsBlockResourceCompatible;
997
+ private assertRecordHistoryBlockResourceCompatible;
998
+ private normalizeRecordHistoryBlockCreateState;
999
+ private normalizeConfigureCollectionBlockResource;
1000
+ private assertCommentsSettingValues;
1001
+ private assertRecordHistorySettingValues;
957
1002
  private configureCommentsBlock;
1003
+ private configureRecordHistoryBlock;
958
1004
  private configureJSBlock;
959
1005
  private configureActionColumn;
960
1006
  private configureJSColumn;
@@ -965,6 +1011,49 @@ export declare class FlowSurfacesService {
965
1011
  private normalizeFilterActionDefaultFilterValue;
966
1012
  private normalizeActionAssignValues;
967
1013
  private normalizeActionTriggerWorkflows;
1014
+ private isAIEmployeeActionUse;
1015
+ private hasAIEmployeePublicSettings;
1016
+ private assertOnlyAIEmployeePublicSettings;
1017
+ private assertOnlyAIEmployeeNestedPublicSettings;
1018
+ private assertNoAIEmployeeInternalPropSettings;
1019
+ private readAIEmployeePersistedTasks;
1020
+ private buildAIEmployeeTaskStepParams;
1021
+ private mergeAIEmployeeActionSettingsPayload;
1022
+ private syncAIEmployeeTaskStepParamsForUpdateSettings;
1023
+ private assertAIEmployeePluginEnabled;
1024
+ private readRecordPlainObject;
1025
+ private readRecordField;
1026
+ private normalizeFlowSurfaceRequestRoles;
1027
+ private assertRequestRolesCanUseAIEmployeeUsername;
1028
+ private assertVisibleAIEmployeeUsername;
1029
+ private normalizeAIEmployeeUsername;
1030
+ private assertAIEmployeeWorkContextType;
1031
+ private normalizeAIEmployeeWorkContext;
1032
+ private normalizeAIEmployeeTaskModel;
1033
+ private normalizeAIEmployeeSkillSettings;
1034
+ private collectAIEmployeePromptVariables;
1035
+ private hasAIEmployeePromptVariables;
1036
+ private collectAIEmployeeContextPathEntries;
1037
+ private isAIEmployeeContextInfoPathAllowed;
1038
+ private canResolveAIEmployeeContextPath;
1039
+ private isAIEmployeeContextPathAllowed;
1040
+ private extractAIEmployeePromptContextPath;
1041
+ private buildAIEmployeePromptVariableHint;
1042
+ private throwAIEmployeePromptVariableInvalid;
1043
+ private assertAIEmployeePromptVariablesAllowed;
1044
+ private assertAIEmployeeTaskPromptVariablesAllowed;
1045
+ private appendAIEmployeeCurrentRecordPromptVariable;
1046
+ private resolveAIEmployeePromptActionTargetUid;
1047
+ private buildAIEmployeePromptValidationContext;
1048
+ private appendAIEmployeeCurrentRecordPromptVariableToTasks;
1049
+ private assertAIEmployeeStepParamTaskPromptVariablesAllowedForUpdateSettings;
1050
+ private normalizeAIEmployeeStepParamTasksForUpdateSettings;
1051
+ private normalizeAIEmployeeTaskMessage;
1052
+ private normalizeAIEmployeeTaskPatch;
1053
+ private normalizeAIEmployeeTasks;
1054
+ private normalizeAIEmployeeActionSettingsReferences;
1055
+ private normalizeAIEmployeeActionPublicSettings;
1056
+ private resolveAIEmployeeActionSelfUid;
968
1057
  private configureActionNode;
969
1058
  private normalizeActionPanelActionChanges;
970
1059
  private buildFieldCatalog;