@nocobase/plugin-flow-engine 2.1.0-alpha.13 → 2.1.0-alpha.15

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 (661) hide show
  1. package/dist/ai/ai-employees/nathan/index.js +1 -112
  2. package/dist/ai/ai-employees/nathan/prompt.md +132 -0
  3. package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/getContextApis.js +2 -2
  4. package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/getContextEnvs.js +2 -2
  5. package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/getContextVars.js +2 -2
  6. package/dist/ai/ai-employees/nathan/skills/frontend-developer/tools/lintAndTestJS.js +2 -2
  7. package/dist/client/index.js +1 -1
  8. package/dist/externalVersion.js +10 -13
  9. package/dist/locale/en-US.json +1 -0
  10. package/dist/locale/index.d.ts +2 -0
  11. package/dist/locale/zh-CN.json +1 -0
  12. package/dist/node_modules/ses/package.json +1 -1
  13. package/dist/node_modules/zod/package.json +1 -1
  14. package/dist/server/flow-surfaces/action-scope.d.ts +37 -0
  15. package/dist/server/flow-surfaces/action-scope.js +146 -0
  16. package/dist/server/flow-surfaces/builder.d.ts +209 -0
  17. package/dist/server/flow-surfaces/builder.js +858 -0
  18. package/dist/server/flow-surfaces/catalog.d.ts +65 -0
  19. package/dist/server/flow-surfaces/catalog.js +2766 -0
  20. package/dist/server/flow-surfaces/chart-config.d.ts +121 -0
  21. package/dist/server/flow-surfaces/chart-config.js +1394 -0
  22. package/dist/server/flow-surfaces/compiler.d.ts +22 -0
  23. package/dist/server/flow-surfaces/compiler.js +1129 -0
  24. package/dist/server/flow-surfaces/configure-options.d.ts +23 -0
  25. package/dist/server/flow-surfaces/configure-options.js +671 -0
  26. package/dist/server/flow-surfaces/constants.d.ts +13 -0
  27. package/dist/server/flow-surfaces/constants.js +137 -0
  28. package/dist/server/flow-surfaces/context.d.ts +72 -0
  29. package/dist/server/flow-surfaces/context.js +556 -0
  30. package/dist/server/flow-surfaces/contract-guard.d.ts +19 -0
  31. package/dist/server/flow-surfaces/contract-guard.js +411 -0
  32. package/dist/server/flow-surfaces/errors.d.ts +47 -0
  33. package/dist/server/flow-surfaces/errors.js +145 -0
  34. package/dist/server/flow-surfaces/executor.d.ts +13 -0
  35. package/dist/server/flow-surfaces/executor.js +97 -0
  36. package/dist/server/flow-surfaces/field-semantics.d.ts +15 -0
  37. package/dist/server/flow-surfaces/field-semantics.js +80 -0
  38. package/dist/server/{flow-schema-registry → flow-surfaces}/index.d.ts +3 -2
  39. package/dist/server/flow-surfaces/index.js +352 -0
  40. package/dist/server/flow-surfaces/locator.d.ts +28 -0
  41. package/dist/server/flow-surfaces/locator.js +238 -0
  42. package/dist/server/flow-surfaces/placement.d.ts +33 -0
  43. package/dist/server/flow-surfaces/placement.js +192 -0
  44. package/dist/server/flow-surfaces/route-sync.d.ts +47 -0
  45. package/dist/server/flow-surfaces/route-sync.js +392 -0
  46. package/dist/server/flow-surfaces/service.d.ts +530 -0
  47. package/dist/server/flow-surfaces/service.js +7736 -0
  48. package/dist/server/flow-surfaces/support-matrix.d.ts +28 -0
  49. package/dist/server/flow-surfaces/support-matrix.js +246 -0
  50. package/dist/server/flow-surfaces/surface-context.d.ts +51 -0
  51. package/dist/server/flow-surfaces/surface-context.js +356 -0
  52. package/dist/server/flow-surfaces/types.d.ts +192 -0
  53. package/dist/server/index.d.ts +1 -1
  54. package/dist/server/index.js +6 -4
  55. package/dist/server/plugin.d.ts +0 -3
  56. package/dist/server/plugin.js +7 -36
  57. package/dist/server/repository.d.ts +9 -68
  58. package/dist/server/repository.js +106 -420
  59. package/dist/server/server.d.ts +0 -7
  60. package/dist/server/server.js +53 -23
  61. package/dist/server/variables/resolve.d.ts +21 -0
  62. package/dist/server/variables/resolve.js +79 -0
  63. package/dist/swagger/flow-surfaces.d.ts +3186 -0
  64. package/dist/swagger/flow-surfaces.js +4320 -0
  65. package/dist/swagger/index.d.ts +2837 -810
  66. package/dist/swagger/index.js +14 -696
  67. package/package.json +2 -4
  68. package/dist/node_modules/ajv/.runkit_example.js +0 -23
  69. package/dist/node_modules/ajv/LICENSE +0 -22
  70. package/dist/node_modules/ajv/dist/2019.d.ts +0 -19
  71. package/dist/node_modules/ajv/dist/2019.js +0 -61
  72. package/dist/node_modules/ajv/dist/2020.d.ts +0 -19
  73. package/dist/node_modules/ajv/dist/2020.js +0 -55
  74. package/dist/node_modules/ajv/dist/ajv.d.ts +0 -18
  75. package/dist/node_modules/ajv/dist/ajv.js +0 -7
  76. package/dist/node_modules/ajv/dist/compile/codegen/code.d.ts +0 -40
  77. package/dist/node_modules/ajv/dist/compile/codegen/code.js +0 -156
  78. package/dist/node_modules/ajv/dist/compile/codegen/index.d.ts +0 -79
  79. package/dist/node_modules/ajv/dist/compile/codegen/index.js +0 -697
  80. package/dist/node_modules/ajv/dist/compile/codegen/scope.d.ts +0 -79
  81. package/dist/node_modules/ajv/dist/compile/codegen/scope.js +0 -143
  82. package/dist/node_modules/ajv/dist/compile/errors.d.ts +0 -13
  83. package/dist/node_modules/ajv/dist/compile/errors.js +0 -123
  84. package/dist/node_modules/ajv/dist/compile/index.d.ts +0 -80
  85. package/dist/node_modules/ajv/dist/compile/index.js +0 -242
  86. package/dist/node_modules/ajv/dist/compile/jtd/parse.d.ts +0 -4
  87. package/dist/node_modules/ajv/dist/compile/jtd/parse.js +0 -350
  88. package/dist/node_modules/ajv/dist/compile/jtd/serialize.d.ts +0 -4
  89. package/dist/node_modules/ajv/dist/compile/jtd/serialize.js +0 -236
  90. package/dist/node_modules/ajv/dist/compile/jtd/types.d.ts +0 -6
  91. package/dist/node_modules/ajv/dist/compile/jtd/types.js +0 -14
  92. package/dist/node_modules/ajv/dist/compile/names.d.ts +0 -20
  93. package/dist/node_modules/ajv/dist/compile/names.js +0 -28
  94. package/dist/node_modules/ajv/dist/compile/ref_error.d.ts +0 -6
  95. package/dist/node_modules/ajv/dist/compile/ref_error.js +0 -12
  96. package/dist/node_modules/ajv/dist/compile/resolve.d.ts +0 -12
  97. package/dist/node_modules/ajv/dist/compile/resolve.js +0 -155
  98. package/dist/node_modules/ajv/dist/compile/rules.d.ts +0 -28
  99. package/dist/node_modules/ajv/dist/compile/rules.js +0 -26
  100. package/dist/node_modules/ajv/dist/compile/util.d.ts +0 -40
  101. package/dist/node_modules/ajv/dist/compile/util.js +0 -178
  102. package/dist/node_modules/ajv/dist/compile/validate/applicability.d.ts +0 -6
  103. package/dist/node_modules/ajv/dist/compile/validate/applicability.js +0 -19
  104. package/dist/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +0 -4
  105. package/dist/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -50
  106. package/dist/node_modules/ajv/dist/compile/validate/dataType.d.ts +0 -17
  107. package/dist/node_modules/ajv/dist/compile/validate/dataType.js +0 -203
  108. package/dist/node_modules/ajv/dist/compile/validate/defaults.d.ts +0 -2
  109. package/dist/node_modules/ajv/dist/compile/validate/defaults.js +0 -35
  110. package/dist/node_modules/ajv/dist/compile/validate/index.d.ts +0 -42
  111. package/dist/node_modules/ajv/dist/compile/validate/index.js +0 -520
  112. package/dist/node_modules/ajv/dist/compile/validate/keyword.d.ts +0 -8
  113. package/dist/node_modules/ajv/dist/compile/validate/keyword.js +0 -124
  114. package/dist/node_modules/ajv/dist/compile/validate/subschema.d.ts +0 -47
  115. package/dist/node_modules/ajv/dist/compile/validate/subschema.js +0 -81
  116. package/dist/node_modules/ajv/dist/core.d.ts +0 -174
  117. package/dist/node_modules/ajv/dist/core.js +0 -618
  118. package/dist/node_modules/ajv/dist/jtd.d.ts +0 -47
  119. package/dist/node_modules/ajv/dist/jtd.js +0 -72
  120. package/dist/node_modules/ajv/dist/refs/data.json +0 -13
  121. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +0 -2
  122. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +0 -28
  123. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +0 -53
  124. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +0 -17
  125. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +0 -57
  126. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +0 -14
  127. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +0 -37
  128. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +0 -90
  129. package/dist/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +0 -39
  130. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +0 -2
  131. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +0 -30
  132. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +0 -48
  133. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +0 -17
  134. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +0 -51
  135. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
  136. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +0 -37
  137. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
  138. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +0 -90
  139. package/dist/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +0 -55
  140. package/dist/node_modules/ajv/dist/refs/json-schema-draft-06.json +0 -137
  141. package/dist/node_modules/ajv/dist/refs/json-schema-draft-07.json +0 -151
  142. package/dist/node_modules/ajv/dist/refs/json-schema-secure.json +0 -88
  143. package/dist/node_modules/ajv/dist/refs/jtd-schema.d.ts +0 -3
  144. package/dist/node_modules/ajv/dist/refs/jtd-schema.js +0 -118
  145. package/dist/node_modules/ajv/dist/runtime/equal.d.ts +0 -6
  146. package/dist/node_modules/ajv/dist/runtime/equal.js +0 -7
  147. package/dist/node_modules/ajv/dist/runtime/parseJson.d.ts +0 -18
  148. package/dist/node_modules/ajv/dist/runtime/parseJson.js +0 -185
  149. package/dist/node_modules/ajv/dist/runtime/quote.d.ts +0 -5
  150. package/dist/node_modules/ajv/dist/runtime/quote.js +0 -30
  151. package/dist/node_modules/ajv/dist/runtime/re2.d.ts +0 -6
  152. package/dist/node_modules/ajv/dist/runtime/re2.js +0 -6
  153. package/dist/node_modules/ajv/dist/runtime/timestamp.d.ts +0 -5
  154. package/dist/node_modules/ajv/dist/runtime/timestamp.js +0 -42
  155. package/dist/node_modules/ajv/dist/runtime/ucs2length.d.ts +0 -5
  156. package/dist/node_modules/ajv/dist/runtime/ucs2length.js +0 -24
  157. package/dist/node_modules/ajv/dist/runtime/uri.d.ts +0 -6
  158. package/dist/node_modules/ajv/dist/runtime/uri.js +0 -6
  159. package/dist/node_modules/ajv/dist/runtime/validation_error.d.ts +0 -7
  160. package/dist/node_modules/ajv/dist/runtime/validation_error.js +0 -11
  161. package/dist/node_modules/ajv/dist/standalone/index.d.ts +0 -6
  162. package/dist/node_modules/ajv/dist/standalone/index.js +0 -90
  163. package/dist/node_modules/ajv/dist/standalone/instance.d.ts +0 -12
  164. package/dist/node_modules/ajv/dist/standalone/instance.js +0 -35
  165. package/dist/node_modules/ajv/dist/types/index.d.ts +0 -183
  166. package/dist/node_modules/ajv/dist/types/index.js +0 -3
  167. package/dist/node_modules/ajv/dist/types/json-schema.d.ts +0 -125
  168. package/dist/node_modules/ajv/dist/types/json-schema.js +0 -3
  169. package/dist/node_modules/ajv/dist/types/jtd-schema.d.ts +0 -174
  170. package/dist/node_modules/ajv/dist/types/jtd-schema.js +0 -3
  171. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +0 -8
  172. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -49
  173. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +0 -6
  174. package/dist/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -106
  175. package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +0 -3
  176. package/dist/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -23
  177. package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +0 -4
  178. package/dist/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -12
  179. package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +0 -7
  180. package/dist/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -95
  181. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +0 -21
  182. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -85
  183. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +0 -3
  184. package/dist/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +0 -11
  185. package/dist/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +0 -6
  186. package/dist/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -66
  187. package/dist/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +0 -13
  188. package/dist/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -44
  189. package/dist/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +0 -5
  190. package/dist/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -52
  191. package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +0 -6
  192. package/dist/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -30
  193. package/dist/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +0 -4
  194. package/dist/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -26
  195. package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +0 -6
  196. package/dist/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -60
  197. package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +0 -3
  198. package/dist/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -75
  199. package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +0 -3
  200. package/dist/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -12
  201. package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +0 -3
  202. package/dist/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -54
  203. package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +0 -6
  204. package/dist/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -38
  205. package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +0 -3
  206. package/dist/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -13
  207. package/dist/node_modules/ajv/dist/vocabularies/code.d.ts +0 -17
  208. package/dist/node_modules/ajv/dist/vocabularies/code.js +0 -131
  209. package/dist/node_modules/ajv/dist/vocabularies/core/id.d.ts +0 -3
  210. package/dist/node_modules/ajv/dist/vocabularies/core/id.js +0 -10
  211. package/dist/node_modules/ajv/dist/vocabularies/core/index.d.ts +0 -3
  212. package/dist/node_modules/ajv/dist/vocabularies/core/index.js +0 -16
  213. package/dist/node_modules/ajv/dist/vocabularies/core/ref.d.ts +0 -8
  214. package/dist/node_modules/ajv/dist/vocabularies/core/ref.js +0 -122
  215. package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +0 -5
  216. package/dist/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -104
  217. package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +0 -10
  218. package/dist/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -9
  219. package/dist/node_modules/ajv/dist/vocabularies/draft2020.d.ts +0 -3
  220. package/dist/node_modules/ajv/dist/vocabularies/draft2020.js +0 -23
  221. package/dist/node_modules/ajv/dist/vocabularies/draft7.d.ts +0 -3
  222. package/dist/node_modules/ajv/dist/vocabularies/draft7.js +0 -17
  223. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +0 -5
  224. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +0 -30
  225. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +0 -5
  226. package/dist/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +0 -51
  227. package/dist/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +0 -3
  228. package/dist/node_modules/ajv/dist/vocabularies/dynamic/index.js +0 -9
  229. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +0 -3
  230. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +0 -16
  231. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +0 -3
  232. package/dist/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +0 -10
  233. package/dist/node_modules/ajv/dist/vocabularies/errors.d.ts +0 -9
  234. package/dist/node_modules/ajv/dist/vocabularies/errors.js +0 -3
  235. package/dist/node_modules/ajv/dist/vocabularies/format/format.d.ts +0 -8
  236. package/dist/node_modules/ajv/dist/vocabularies/format/format.js +0 -92
  237. package/dist/node_modules/ajv/dist/vocabularies/format/index.d.ts +0 -3
  238. package/dist/node_modules/ajv/dist/vocabularies/format/index.js +0 -6
  239. package/dist/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +0 -6
  240. package/dist/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +0 -71
  241. package/dist/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +0 -5
  242. package/dist/node_modules/ajv/dist/vocabularies/jtd/elements.js +0 -24
  243. package/dist/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +0 -6
  244. package/dist/node_modules/ajv/dist/vocabularies/jtd/enum.js +0 -43
  245. package/dist/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +0 -9
  246. package/dist/node_modules/ajv/dist/vocabularies/jtd/error.js +0 -20
  247. package/dist/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +0 -10
  248. package/dist/node_modules/ajv/dist/vocabularies/jtd/index.js +0 -29
  249. package/dist/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +0 -5
  250. package/dist/node_modules/ajv/dist/vocabularies/jtd/metadata.js +0 -25
  251. package/dist/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +0 -4
  252. package/dist/node_modules/ajv/dist/vocabularies/jtd/nullable.js +0 -22
  253. package/dist/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +0 -3
  254. package/dist/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +0 -15
  255. package/dist/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +0 -22
  256. package/dist/node_modules/ajv/dist/vocabularies/jtd/properties.js +0 -149
  257. package/dist/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +0 -4
  258. package/dist/node_modules/ajv/dist/vocabularies/jtd/ref.js +0 -67
  259. package/dist/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +0 -10
  260. package/dist/node_modules/ajv/dist/vocabularies/jtd/type.js +0 -69
  261. package/dist/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +0 -3
  262. package/dist/node_modules/ajv/dist/vocabularies/jtd/union.js +0 -12
  263. package/dist/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +0 -5
  264. package/dist/node_modules/ajv/dist/vocabularies/jtd/values.js +0 -51
  265. package/dist/node_modules/ajv/dist/vocabularies/metadata.d.ts +0 -3
  266. package/dist/node_modules/ajv/dist/vocabularies/metadata.js +0 -18
  267. package/dist/node_modules/ajv/dist/vocabularies/next.d.ts +0 -3
  268. package/dist/node_modules/ajv/dist/vocabularies/next.js +0 -8
  269. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +0 -3
  270. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/index.js +0 -7
  271. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +0 -6
  272. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +0 -40
  273. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +0 -6
  274. package/dist/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +0 -65
  275. package/dist/node_modules/ajv/dist/vocabularies/validation/const.d.ts +0 -6
  276. package/dist/node_modules/ajv/dist/vocabularies/validation/const.js +0 -25
  277. package/dist/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +0 -5
  278. package/dist/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +0 -12
  279. package/dist/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +0 -8
  280. package/dist/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -48
  281. package/dist/node_modules/ajv/dist/vocabularies/validation/index.d.ts +0 -16
  282. package/dist/node_modules/ajv/dist/vocabularies/validation/index.js +0 -33
  283. package/dist/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +0 -3
  284. package/dist/node_modules/ajv/dist/vocabularies/validation/limitContains.js +0 -15
  285. package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +0 -3
  286. package/dist/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -24
  287. package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +0 -3
  288. package/dist/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -27
  289. package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +0 -11
  290. package/dist/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -27
  291. package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +0 -3
  292. package/dist/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -24
  293. package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +0 -8
  294. package/dist/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -26
  295. package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +0 -8
  296. package/dist/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -33
  297. package/dist/node_modules/ajv/dist/vocabularies/validation/required.d.ts +0 -8
  298. package/dist/node_modules/ajv/dist/vocabularies/validation/required.js +0 -79
  299. package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +0 -9
  300. package/dist/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -64
  301. package/dist/node_modules/ajv/lib/2019.ts +0 -81
  302. package/dist/node_modules/ajv/lib/2020.ts +0 -75
  303. package/dist/node_modules/ajv/lib/ajv.ts +0 -70
  304. package/dist/node_modules/ajv/lib/compile/codegen/code.ts +0 -169
  305. package/dist/node_modules/ajv/lib/compile/codegen/index.ts +0 -852
  306. package/dist/node_modules/ajv/lib/compile/codegen/scope.ts +0 -215
  307. package/dist/node_modules/ajv/lib/compile/errors.ts +0 -184
  308. package/dist/node_modules/ajv/lib/compile/index.ts +0 -324
  309. package/dist/node_modules/ajv/lib/compile/jtd/parse.ts +0 -411
  310. package/dist/node_modules/ajv/lib/compile/jtd/serialize.ts +0 -277
  311. package/dist/node_modules/ajv/lib/compile/jtd/types.ts +0 -16
  312. package/dist/node_modules/ajv/lib/compile/names.ts +0 -27
  313. package/dist/node_modules/ajv/lib/compile/ref_error.ts +0 -13
  314. package/dist/node_modules/ajv/lib/compile/resolve.ts +0 -149
  315. package/dist/node_modules/ajv/lib/compile/rules.ts +0 -50
  316. package/dist/node_modules/ajv/lib/compile/util.ts +0 -213
  317. package/dist/node_modules/ajv/lib/compile/validate/applicability.ts +0 -22
  318. package/dist/node_modules/ajv/lib/compile/validate/boolSchema.ts +0 -47
  319. package/dist/node_modules/ajv/lib/compile/validate/dataType.ts +0 -230
  320. package/dist/node_modules/ajv/lib/compile/validate/defaults.ts +0 -32
  321. package/dist/node_modules/ajv/lib/compile/validate/index.ts +0 -582
  322. package/dist/node_modules/ajv/lib/compile/validate/keyword.ts +0 -171
  323. package/dist/node_modules/ajv/lib/compile/validate/subschema.ts +0 -135
  324. package/dist/node_modules/ajv/lib/core.ts +0 -892
  325. package/dist/node_modules/ajv/lib/jtd.ts +0 -132
  326. package/dist/node_modules/ajv/lib/refs/data.json +0 -13
  327. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +0 -28
  328. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +0 -53
  329. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +0 -17
  330. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +0 -57
  331. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +0 -14
  332. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +0 -37
  333. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +0 -90
  334. package/dist/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +0 -39
  335. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +0 -30
  336. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +0 -48
  337. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +0 -17
  338. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +0 -51
  339. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
  340. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +0 -37
  341. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
  342. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +0 -90
  343. package/dist/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +0 -55
  344. package/dist/node_modules/ajv/lib/refs/json-schema-draft-06.json +0 -137
  345. package/dist/node_modules/ajv/lib/refs/json-schema-draft-07.json +0 -151
  346. package/dist/node_modules/ajv/lib/refs/json-schema-secure.json +0 -88
  347. package/dist/node_modules/ajv/lib/refs/jtd-schema.ts +0 -130
  348. package/dist/node_modules/ajv/lib/runtime/equal.ts +0 -7
  349. package/dist/node_modules/ajv/lib/runtime/parseJson.ts +0 -177
  350. package/dist/node_modules/ajv/lib/runtime/quote.ts +0 -31
  351. package/dist/node_modules/ajv/lib/runtime/re2.ts +0 -6
  352. package/dist/node_modules/ajv/lib/runtime/timestamp.ts +0 -46
  353. package/dist/node_modules/ajv/lib/runtime/ucs2length.ts +0 -20
  354. package/dist/node_modules/ajv/lib/runtime/uri.ts +0 -6
  355. package/dist/node_modules/ajv/lib/runtime/validation_error.ts +0 -13
  356. package/dist/node_modules/ajv/lib/standalone/index.ts +0 -100
  357. package/dist/node_modules/ajv/lib/standalone/instance.ts +0 -36
  358. package/dist/node_modules/ajv/lib/types/index.ts +0 -244
  359. package/dist/node_modules/ajv/lib/types/json-schema.ts +0 -187
  360. package/dist/node_modules/ajv/lib/types/jtd-schema.ts +0 -273
  361. package/dist/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +0 -56
  362. package/dist/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +0 -118
  363. package/dist/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +0 -22
  364. package/dist/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +0 -14
  365. package/dist/node_modules/ajv/lib/vocabularies/applicator/contains.ts +0 -109
  366. package/dist/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +0 -112
  367. package/dist/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +0 -11
  368. package/dist/node_modules/ajv/lib/vocabularies/applicator/if.ts +0 -80
  369. package/dist/node_modules/ajv/lib/vocabularies/applicator/index.ts +0 -53
  370. package/dist/node_modules/ajv/lib/vocabularies/applicator/items.ts +0 -59
  371. package/dist/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +0 -36
  372. package/dist/node_modules/ajv/lib/vocabularies/applicator/not.ts +0 -38
  373. package/dist/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +0 -82
  374. package/dist/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +0 -91
  375. package/dist/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +0 -12
  376. package/dist/node_modules/ajv/lib/vocabularies/applicator/properties.ts +0 -57
  377. package/dist/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +0 -50
  378. package/dist/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +0 -13
  379. package/dist/node_modules/ajv/lib/vocabularies/code.ts +0 -168
  380. package/dist/node_modules/ajv/lib/vocabularies/core/id.ts +0 -10
  381. package/dist/node_modules/ajv/lib/vocabularies/core/index.ts +0 -16
  382. package/dist/node_modules/ajv/lib/vocabularies/core/ref.ts +0 -129
  383. package/dist/node_modules/ajv/lib/vocabularies/discriminator/index.ts +0 -113
  384. package/dist/node_modules/ajv/lib/vocabularies/discriminator/types.ts +0 -12
  385. package/dist/node_modules/ajv/lib/vocabularies/draft2020.ts +0 -23
  386. package/dist/node_modules/ajv/lib/vocabularies/draft7.ts +0 -17
  387. package/dist/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +0 -31
  388. package/dist/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +0 -51
  389. package/dist/node_modules/ajv/lib/vocabularies/dynamic/index.ts +0 -9
  390. package/dist/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +0 -14
  391. package/dist/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +0 -10
  392. package/dist/node_modules/ajv/lib/vocabularies/errors.ts +0 -18
  393. package/dist/node_modules/ajv/lib/vocabularies/format/format.ts +0 -120
  394. package/dist/node_modules/ajv/lib/vocabularies/format/index.ts +0 -6
  395. package/dist/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +0 -89
  396. package/dist/node_modules/ajv/lib/vocabularies/jtd/elements.ts +0 -32
  397. package/dist/node_modules/ajv/lib/vocabularies/jtd/enum.ts +0 -45
  398. package/dist/node_modules/ajv/lib/vocabularies/jtd/error.ts +0 -23
  399. package/dist/node_modules/ajv/lib/vocabularies/jtd/index.ts +0 -37
  400. package/dist/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +0 -24
  401. package/dist/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +0 -21
  402. package/dist/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +0 -15
  403. package/dist/node_modules/ajv/lib/vocabularies/jtd/properties.ts +0 -184
  404. package/dist/node_modules/ajv/lib/vocabularies/jtd/ref.ts +0 -76
  405. package/dist/node_modules/ajv/lib/vocabularies/jtd/type.ts +0 -75
  406. package/dist/node_modules/ajv/lib/vocabularies/jtd/union.ts +0 -12
  407. package/dist/node_modules/ajv/lib/vocabularies/jtd/values.ts +0 -58
  408. package/dist/node_modules/ajv/lib/vocabularies/metadata.ts +0 -17
  409. package/dist/node_modules/ajv/lib/vocabularies/next.ts +0 -8
  410. package/dist/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +0 -7
  411. package/dist/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +0 -47
  412. package/dist/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +0 -85
  413. package/dist/node_modules/ajv/lib/vocabularies/validation/const.ts +0 -28
  414. package/dist/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +0 -23
  415. package/dist/node_modules/ajv/lib/vocabularies/validation/enum.ts +0 -54
  416. package/dist/node_modules/ajv/lib/vocabularies/validation/index.ts +0 -49
  417. package/dist/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +0 -16
  418. package/dist/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +0 -26
  419. package/dist/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +0 -30
  420. package/dist/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +0 -42
  421. package/dist/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +0 -26
  422. package/dist/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +0 -34
  423. package/dist/node_modules/ajv/lib/vocabularies/validation/pattern.ts +0 -39
  424. package/dist/node_modules/ajv/lib/vocabularies/validation/required.ts +0 -98
  425. package/dist/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +0 -79
  426. package/dist/node_modules/ajv/package.json +0 -1
  427. package/dist/server/flow-models/action-handlers.d.ts +0 -26
  428. package/dist/server/flow-models/action-handlers.js +0 -209
  429. package/dist/server/flow-models/http-error-adapter.d.ts +0 -10
  430. package/dist/server/flow-models/http-error-adapter.js +0 -58
  431. package/dist/server/flow-models/mutate-executor.d.ts +0 -17
  432. package/dist/server/flow-models/mutate-executor.js +0 -309
  433. package/dist/server/flow-models/repository-internals/duplicate-helpers.d.ts +0 -12
  434. package/dist/server/flow-models/repository-internals/duplicate-helpers.js +0 -121
  435. package/dist/server/flow-models/repository-internals/ensure-lock.d.ts +0 -15
  436. package/dist/server/flow-models/repository-internals/ensure-lock.js +0 -117
  437. package/dist/server/flow-models/repository-internals/errors.d.ts +0 -21
  438. package/dist/server/flow-models/repository-internals/errors.js +0 -78
  439. package/dist/server/flow-models/schema-contribution-collector.d.ts +0 -28
  440. package/dist/server/flow-models/schema-contribution-collector.js +0 -238
  441. package/dist/server/flow-models/validation-facade.d.ts +0 -29
  442. package/dist/server/flow-models/validation-facade.js +0 -181
  443. package/dist/server/flow-schema-contributions/actions/aclCheck.d.ts +0 -10
  444. package/dist/server/flow-schema-contributions/actions/aclCheck.js +0 -46
  445. package/dist/server/flow-schema-contributions/actions/aclCheckRefresh.d.ts +0 -10
  446. package/dist/server/flow-schema-contributions/actions/aclCheckRefresh.js +0 -46
  447. package/dist/server/flow-schema-contributions/actions/actionLinkageRules.d.ts +0 -10
  448. package/dist/server/flow-schema-contributions/actions/actionLinkageRules.js +0 -48
  449. package/dist/server/flow-schema-contributions/actions/confirm.d.ts +0 -10
  450. package/dist/server/flow-schema-contributions/actions/confirm.js +0 -73
  451. package/dist/server/flow-schema-contributions/actions/customVariable.d.ts +0 -10
  452. package/dist/server/flow-schema-contributions/actions/customVariable.js +0 -76
  453. package/dist/server/flow-schema-contributions/actions/dataScope.d.ts +0 -10
  454. package/dist/server/flow-schema-contributions/actions/dataScope.js +0 -79
  455. package/dist/server/flow-schema-contributions/actions/detailsFieldLinkageRules.d.ts +0 -10
  456. package/dist/server/flow-schema-contributions/actions/detailsFieldLinkageRules.js +0 -62
  457. package/dist/server/flow-schema-contributions/actions/fieldLinkageRules.d.ts +0 -10
  458. package/dist/server/flow-schema-contributions/actions/fieldLinkageRules.js +0 -62
  459. package/dist/server/flow-schema-contributions/actions/filterFormDefaultValues.d.ts +0 -10
  460. package/dist/server/flow-schema-contributions/actions/filterFormDefaultValues.js +0 -80
  461. package/dist/server/flow-schema-contributions/actions/formAssignRules.d.ts +0 -10
  462. package/dist/server/flow-schema-contributions/actions/formAssignRules.js +0 -62
  463. package/dist/server/flow-schema-contributions/actions/index.d.ts +0 -31
  464. package/dist/server/flow-schema-contributions/actions/index.js +0 -117
  465. package/dist/server/flow-schema-contributions/actions/layout.d.ts +0 -10
  466. package/dist/server/flow-schema-contributions/actions/layout.js +0 -68
  467. package/dist/server/flow-schema-contributions/actions/linkageRulesRefresh.d.ts +0 -10
  468. package/dist/server/flow-schema-contributions/actions/linkageRulesRefresh.js +0 -50
  469. package/dist/server/flow-schema-contributions/actions/navigateToURL.d.ts +0 -10
  470. package/dist/server/flow-schema-contributions/actions/navigateToURL.js +0 -82
  471. package/dist/server/flow-schema-contributions/actions/openView.d.ts +0 -10
  472. package/dist/server/flow-schema-contributions/actions/openView.js +0 -68
  473. package/dist/server/flow-schema-contributions/actions/refreshTargetBlocks.d.ts +0 -10
  474. package/dist/server/flow-schema-contributions/actions/refreshTargetBlocks.js +0 -56
  475. package/dist/server/flow-schema-contributions/actions/runjs.d.ts +0 -10
  476. package/dist/server/flow-schema-contributions/actions/runjs.js +0 -55
  477. package/dist/server/flow-schema-contributions/actions/setTargetDataScope.d.ts +0 -10
  478. package/dist/server/flow-schema-contributions/actions/setTargetDataScope.js +0 -59
  479. package/dist/server/flow-schema-contributions/actions/showMessage.d.ts +0 -10
  480. package/dist/server/flow-schema-contributions/actions/showMessage.js +0 -69
  481. package/dist/server/flow-schema-contributions/actions/showNotification.d.ts +0 -10
  482. package/dist/server/flow-schema-contributions/actions/showNotification.js +0 -76
  483. package/dist/server/flow-schema-contributions/actions/sortingRule.d.ts +0 -10
  484. package/dist/server/flow-schema-contributions/actions/sortingRule.js +0 -67
  485. package/dist/server/flow-schema-contributions/field-models.d.ts +0 -12
  486. package/dist/server/flow-schema-contributions/field-models.js +0 -693
  487. package/dist/server/flow-schema-contributions/index.d.ts +0 -13
  488. package/dist/server/flow-schema-contributions/index.js +0 -64
  489. package/dist/server/flow-schema-contributions/models/ActionBulkEditModel.d.ts +0 -10
  490. package/dist/server/flow-schema-contributions/models/ActionBulkEditModel.js +0 -382
  491. package/dist/server/flow-schema-contributions/models/ActionBulkUpdateModel.d.ts +0 -10
  492. package/dist/server/flow-schema-contributions/models/ActionBulkUpdateModel.js +0 -169
  493. package/dist/server/flow-schema-contributions/models/ActionCustomRequestModel.d.ts +0 -11
  494. package/dist/server/flow-schema-contributions/models/ActionCustomRequestModel.js +0 -115
  495. package/dist/server/flow-schema-contributions/models/ActionDuplicateModel.d.ts +0 -10
  496. package/dist/server/flow-schema-contributions/models/ActionDuplicateModel.js +0 -169
  497. package/dist/server/flow-schema-contributions/models/ActionExportModel.d.ts +0 -10
  498. package/dist/server/flow-schema-contributions/models/ActionExportModel.js +0 -141
  499. package/dist/server/flow-schema-contributions/models/ActionImportModel.d.ts +0 -10
  500. package/dist/server/flow-schema-contributions/models/ActionImportModel.js +0 -122
  501. package/dist/server/flow-schema-contributions/models/ActionModel.d.ts +0 -10
  502. package/dist/server/flow-schema-contributions/models/ActionModel.js +0 -202
  503. package/dist/server/flow-schema-contributions/models/AddChildActionModel.d.ts +0 -10
  504. package/dist/server/flow-schema-contributions/models/AddChildActionModel.js +0 -47
  505. package/dist/server/flow-schema-contributions/models/AddNewActionModel.d.ts +0 -10
  506. package/dist/server/flow-schema-contributions/models/AddNewActionModel.js +0 -93
  507. package/dist/server/flow-schema-contributions/models/AssignFormGridModel.d.ts +0 -10
  508. package/dist/server/flow-schema-contributions/models/AssignFormGridModel.js +0 -82
  509. package/dist/server/flow-schema-contributions/models/AssignFormItemModel.d.ts +0 -10
  510. package/dist/server/flow-schema-contributions/models/AssignFormItemModel.js +0 -80
  511. package/dist/server/flow-schema-contributions/models/AssignFormModel.d.ts +0 -10
  512. package/dist/server/flow-schema-contributions/models/AssignFormModel.js +0 -122
  513. package/dist/server/flow-schema-contributions/models/BasePageTabModel.d.ts +0 -10
  514. package/dist/server/flow-schema-contributions/models/BasePageTabModel.js +0 -71
  515. package/dist/server/flow-schema-contributions/models/BlockGridCardModel.d.ts +0 -10
  516. package/dist/server/flow-schema-contributions/models/BlockGridCardModel.js +0 -449
  517. package/dist/server/flow-schema-contributions/models/BlockGridModel.d.ts +0 -10
  518. package/dist/server/flow-schema-contributions/models/BlockGridModel.js +0 -81
  519. package/dist/server/flow-schema-contributions/models/BlockIframeModel.d.ts +0 -10
  520. package/dist/server/flow-schema-contributions/models/BlockIframeModel.js +0 -143
  521. package/dist/server/flow-schema-contributions/models/BlockListModel.d.ts +0 -10
  522. package/dist/server/flow-schema-contributions/models/BlockListModel.js +0 -435
  523. package/dist/server/flow-schema-contributions/models/BlockMarkdownModel.d.ts +0 -10
  524. package/dist/server/flow-schema-contributions/models/BlockMarkdownModel.js +0 -108
  525. package/dist/server/flow-schema-contributions/models/BlockWorkbenchModel.d.ts +0 -10
  526. package/dist/server/flow-schema-contributions/models/BlockWorkbenchModel.js +0 -173
  527. package/dist/server/flow-schema-contributions/models/BulkDeleteActionModel.d.ts +0 -10
  528. package/dist/server/flow-schema-contributions/models/BulkDeleteActionModel.js +0 -47
  529. package/dist/server/flow-schema-contributions/models/ChildPageModel.d.ts +0 -10
  530. package/dist/server/flow-schema-contributions/models/ChildPageModel.js +0 -106
  531. package/dist/server/flow-schema-contributions/models/ChildPageTabModel.d.ts +0 -10
  532. package/dist/server/flow-schema-contributions/models/ChildPageTabModel.js +0 -114
  533. package/dist/server/flow-schema-contributions/models/CommentsModel.d.ts +0 -10
  534. package/dist/server/flow-schema-contributions/models/CommentsModel.js +0 -255
  535. package/dist/server/flow-schema-contributions/models/CreateFormModel.d.ts +0 -10
  536. package/dist/server/flow-schema-contributions/models/CreateFormModel.js +0 -54
  537. package/dist/server/flow-schema-contributions/models/DataVisualizationModel.d.ts +0 -10
  538. package/dist/server/flow-schema-contributions/models/DataVisualizationModel.js +0 -240
  539. package/dist/server/flow-schema-contributions/models/DeleteActionModel.d.ts +0 -10
  540. package/dist/server/flow-schema-contributions/models/DeleteActionModel.js +0 -47
  541. package/dist/server/flow-schema-contributions/models/DetailsBlockModel.d.ts +0 -10
  542. package/dist/server/flow-schema-contributions/models/DetailsBlockModel.js +0 -179
  543. package/dist/server/flow-schema-contributions/models/DetailsGridModel.d.ts +0 -10
  544. package/dist/server/flow-schema-contributions/models/DetailsGridModel.js +0 -82
  545. package/dist/server/flow-schema-contributions/models/DetailsItemModel.d.ts +0 -10
  546. package/dist/server/flow-schema-contributions/models/DetailsItemModel.js +0 -77
  547. package/dist/server/flow-schema-contributions/models/EditActionModel.d.ts +0 -10
  548. package/dist/server/flow-schema-contributions/models/EditActionModel.js +0 -93
  549. package/dist/server/flow-schema-contributions/models/EditFormModel.d.ts +0 -10
  550. package/dist/server/flow-schema-contributions/models/EditFormModel.js +0 -103
  551. package/dist/server/flow-schema-contributions/models/ExpandCollapseActionModel.d.ts +0 -10
  552. package/dist/server/flow-schema-contributions/models/ExpandCollapseActionModel.js +0 -47
  553. package/dist/server/flow-schema-contributions/models/FieldAttachmentUrlModel.d.ts +0 -10
  554. package/dist/server/flow-schema-contributions/models/FieldAttachmentUrlModel.js +0 -87
  555. package/dist/server/flow-schema-contributions/models/FieldCodeModel.d.ts +0 -10
  556. package/dist/server/flow-schema-contributions/models/FieldCodeModel.js +0 -99
  557. package/dist/server/flow-schema-contributions/models/FieldFormulaModel.d.ts +0 -10
  558. package/dist/server/flow-schema-contributions/models/FieldFormulaModel.js +0 -152
  559. package/dist/server/flow-schema-contributions/models/FieldMarkdownVditorModel.d.ts +0 -10
  560. package/dist/server/flow-schema-contributions/models/FieldMarkdownVditorModel.js +0 -92
  561. package/dist/server/flow-schema-contributions/models/FieldSequenceModel.d.ts +0 -10
  562. package/dist/server/flow-schema-contributions/models/FieldSequenceModel.js +0 -60
  563. package/dist/server/flow-schema-contributions/models/FieldSortModel.d.ts +0 -10
  564. package/dist/server/flow-schema-contributions/models/FieldSortModel.js +0 -87
  565. package/dist/server/flow-schema-contributions/models/FileManagerModel.d.ts +0 -10
  566. package/dist/server/flow-schema-contributions/models/FileManagerModel.js +0 -115
  567. package/dist/server/flow-schema-contributions/models/FilterActionModel.d.ts +0 -10
  568. package/dist/server/flow-schema-contributions/models/FilterActionModel.js +0 -57
  569. package/dist/server/flow-schema-contributions/models/FilterFormBlockModel.d.ts +0 -10
  570. package/dist/server/flow-schema-contributions/models/FilterFormBlockModel.js +0 -155
  571. package/dist/server/flow-schema-contributions/models/FilterFormCollapseActionModel.d.ts +0 -10
  572. package/dist/server/flow-schema-contributions/models/FilterFormCollapseActionModel.js +0 -85
  573. package/dist/server/flow-schema-contributions/models/FilterFormCustomFieldModel.d.ts +0 -10
  574. package/dist/server/flow-schema-contributions/models/FilterFormCustomFieldModel.js +0 -89
  575. package/dist/server/flow-schema-contributions/models/FilterFormGridModel.d.ts +0 -10
  576. package/dist/server/flow-schema-contributions/models/FilterFormGridModel.js +0 -82
  577. package/dist/server/flow-schema-contributions/models/FilterFormItemModel.d.ts +0 -10
  578. package/dist/server/flow-schema-contributions/models/FilterFormItemModel.js +0 -77
  579. package/dist/server/flow-schema-contributions/models/FilterFormJSActionModel.d.ts +0 -10
  580. package/dist/server/flow-schema-contributions/models/FilterFormJSActionModel.js +0 -108
  581. package/dist/server/flow-schema-contributions/models/FilterFormResetActionModel.d.ts +0 -10
  582. package/dist/server/flow-schema-contributions/models/FilterFormResetActionModel.js +0 -87
  583. package/dist/server/flow-schema-contributions/models/FilterFormSubmitActionModel.d.ts +0 -10
  584. package/dist/server/flow-schema-contributions/models/FilterFormSubmitActionModel.js +0 -87
  585. package/dist/server/flow-schema-contributions/models/FormAssociationItemModel.d.ts +0 -10
  586. package/dist/server/flow-schema-contributions/models/FormAssociationItemModel.js +0 -78
  587. package/dist/server/flow-schema-contributions/models/FormBlockModel.d.ts +0 -10
  588. package/dist/server/flow-schema-contributions/models/FormBlockModel.js +0 -45
  589. package/dist/server/flow-schema-contributions/models/FormGridModel.d.ts +0 -10
  590. package/dist/server/flow-schema-contributions/models/FormGridModel.js +0 -67
  591. package/dist/server/flow-schema-contributions/models/FormItemModel.d.ts +0 -10
  592. package/dist/server/flow-schema-contributions/models/FormItemModel.js +0 -77
  593. package/dist/server/flow-schema-contributions/models/FormSubmitActionModel.d.ts +0 -10
  594. package/dist/server/flow-schema-contributions/models/FormSubmitActionModel.js +0 -87
  595. package/dist/server/flow-schema-contributions/models/JSActionModel.d.ts +0 -10
  596. package/dist/server/flow-schema-contributions/models/JSActionModel.js +0 -65
  597. package/dist/server/flow-schema-contributions/models/JSBlockModel.d.ts +0 -10
  598. package/dist/server/flow-schema-contributions/models/JSBlockModel.js +0 -90
  599. package/dist/server/flow-schema-contributions/models/JSCollectionActionModel.d.ts +0 -10
  600. package/dist/server/flow-schema-contributions/models/JSCollectionActionModel.js +0 -47
  601. package/dist/server/flow-schema-contributions/models/JSColumnModel.d.ts +0 -10
  602. package/dist/server/flow-schema-contributions/models/JSColumnModel.js +0 -100
  603. package/dist/server/flow-schema-contributions/models/JSFormActionModel.d.ts +0 -10
  604. package/dist/server/flow-schema-contributions/models/JSFormActionModel.js +0 -47
  605. package/dist/server/flow-schema-contributions/models/JSItemModel.d.ts +0 -10
  606. package/dist/server/flow-schema-contributions/models/JSItemModel.js +0 -87
  607. package/dist/server/flow-schema-contributions/models/JSRecordActionModel.d.ts +0 -10
  608. package/dist/server/flow-schema-contributions/models/JSRecordActionModel.js +0 -47
  609. package/dist/server/flow-schema-contributions/models/LinkActionModel.d.ts +0 -10
  610. package/dist/server/flow-schema-contributions/models/LinkActionModel.js +0 -47
  611. package/dist/server/flow-schema-contributions/models/MapModel.d.ts +0 -10
  612. package/dist/server/flow-schema-contributions/models/MapModel.js +0 -427
  613. package/dist/server/flow-schema-contributions/models/PageModel.d.ts +0 -10
  614. package/dist/server/flow-schema-contributions/models/PageModel.js +0 -159
  615. package/dist/server/flow-schema-contributions/models/PageTabModel.d.ts +0 -10
  616. package/dist/server/flow-schema-contributions/models/PageTabModel.js +0 -69
  617. package/dist/server/flow-schema-contributions/models/PopupActionModel.d.ts +0 -10
  618. package/dist/server/flow-schema-contributions/models/PopupActionModel.js +0 -92
  619. package/dist/server/flow-schema-contributions/models/PopupCollectionActionModel.d.ts +0 -10
  620. package/dist/server/flow-schema-contributions/models/PopupCollectionActionModel.js +0 -119
  621. package/dist/server/flow-schema-contributions/models/RefreshActionModel.d.ts +0 -10
  622. package/dist/server/flow-schema-contributions/models/RefreshActionModel.js +0 -47
  623. package/dist/server/flow-schema-contributions/models/RootPageModel.d.ts +0 -10
  624. package/dist/server/flow-schema-contributions/models/RootPageModel.js +0 -124
  625. package/dist/server/flow-schema-contributions/models/RootPageTabModel.d.ts +0 -10
  626. package/dist/server/flow-schema-contributions/models/RootPageTabModel.js +0 -69
  627. package/dist/server/flow-schema-contributions/models/RouteModel.d.ts +0 -10
  628. package/dist/server/flow-schema-contributions/models/RouteModel.js +0 -121
  629. package/dist/server/flow-schema-contributions/models/TableActionsColumnModel.d.ts +0 -10
  630. package/dist/server/flow-schema-contributions/models/TableActionsColumnModel.js +0 -93
  631. package/dist/server/flow-schema-contributions/models/TableBlockModel.d.ts +0 -10
  632. package/dist/server/flow-schema-contributions/models/TableBlockModel.js +0 -254
  633. package/dist/server/flow-schema-contributions/models/TableColumnModel.d.ts +0 -10
  634. package/dist/server/flow-schema-contributions/models/TableColumnModel.js +0 -77
  635. package/dist/server/flow-schema-contributions/models/TableCustomColumnModel.d.ts +0 -10
  636. package/dist/server/flow-schema-contributions/models/TableCustomColumnModel.js +0 -66
  637. package/dist/server/flow-schema-contributions/models/UiTemplatesModel.d.ts +0 -10
  638. package/dist/server/flow-schema-contributions/models/UiTemplatesModel.js +0 -130
  639. package/dist/server/flow-schema-contributions/models/UpdateRecordActionModel.d.ts +0 -10
  640. package/dist/server/flow-schema-contributions/models/UpdateRecordActionModel.js +0 -173
  641. package/dist/server/flow-schema-contributions/models/ViewActionModel.d.ts +0 -10
  642. package/dist/server/flow-schema-contributions/models/ViewActionModel.js +0 -123
  643. package/dist/server/flow-schema-contributions/models/index.d.ts +0 -71
  644. package/dist/server/flow-schema-contributions/models/index.js +0 -371
  645. package/dist/server/flow-schema-contributions/shared.d.ts +0 -501
  646. package/dist/server/flow-schema-contributions/shared.js +0 -1649
  647. package/dist/server/flow-schema-registry/FlowSchemaRegistry.d.ts +0 -154
  648. package/dist/server/flow-schema-registry/FlowSchemaRegistry.js +0 -1424
  649. package/dist/server/flow-schema-registry/flow-schema-registry/fieldBinding.d.ts +0 -32
  650. package/dist/server/flow-schema-registry/flow-schema-registry/fieldBinding.js +0 -159
  651. package/dist/server/flow-schema-registry/flow-schema-registry/modelPatches.d.ts +0 -16
  652. package/dist/server/flow-schema-registry/flow-schema-registry/modelPatches.js +0 -226
  653. package/dist/server/flow-schema-registry/flow-schema-registry/schemaInference.d.ts +0 -17
  654. package/dist/server/flow-schema-registry/flow-schema-registry/schemaInference.js +0 -204
  655. package/dist/server/flow-schema-registry/flow-schema-registry/utils.d.ts +0 -25
  656. package/dist/server/flow-schema-registry/flow-schema-registry/utils.js +0 -278
  657. package/dist/server/flow-schema-registry/index.js +0 -32
  658. package/dist/server/flow-schema-registry/types.d.ts +0 -244
  659. package/dist/server/flow-schema-service.d.ts +0 -87
  660. package/dist/server/flow-schema-service.js +0 -963
  661. /package/dist/server/{flow-schema-registry → flow-surfaces}/types.js +0 -0
@@ -0,0 +1,4320 @@
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 flow_surfaces_exports = {};
28
+ __export(flow_surfaces_exports, {
29
+ default: () => flow_surfaces_default
30
+ });
31
+ module.exports = __toCommonJS(flow_surfaces_exports);
32
+ var import_constants = require("../server/flow-surfaces/constants");
33
+ const FLOW_SURFACES_TAG = "flowSurfaces";
34
+ const ANY_OBJECT_SCHEMA = {
35
+ type: "object",
36
+ additionalProperties: true
37
+ };
38
+ const FILTER_GROUP_EXAMPLE = {
39
+ logic: "$and",
40
+ items: []
41
+ };
42
+ const STRING_OR_INTEGER_SCHEMA = {
43
+ oneOf: [{ type: "string" }, { type: "integer" }]
44
+ };
45
+ const ACTION_TYPE_ENUM = [
46
+ "filter",
47
+ "addNew",
48
+ "popup",
49
+ "refresh",
50
+ "expandCollapse",
51
+ "bulkDelete",
52
+ "bulkEdit",
53
+ "bulkUpdate",
54
+ "export",
55
+ "exportAttachments",
56
+ "import",
57
+ "link",
58
+ "upload",
59
+ "js",
60
+ "jsItem",
61
+ "composeEmail",
62
+ "templatePrint",
63
+ "triggerWorkflow",
64
+ "duplicate",
65
+ "addChild",
66
+ "view",
67
+ "edit",
68
+ "delete",
69
+ "updateRecord",
70
+ "submit",
71
+ "reset",
72
+ "collapse"
73
+ ];
74
+ const NON_RECORD_ACTION_TYPE_ENUM = [
75
+ "filter",
76
+ "addNew",
77
+ "popup",
78
+ "refresh",
79
+ "expandCollapse",
80
+ "bulkDelete",
81
+ "bulkEdit",
82
+ "bulkUpdate",
83
+ "export",
84
+ "exportAttachments",
85
+ "import",
86
+ "link",
87
+ "upload",
88
+ "js",
89
+ "jsItem",
90
+ "composeEmail",
91
+ "templatePrint",
92
+ "triggerWorkflow",
93
+ "submit",
94
+ "reset",
95
+ "collapse"
96
+ ];
97
+ const RECORD_ACTION_TYPE_ENUM = [
98
+ "popup",
99
+ "js",
100
+ "composeEmail",
101
+ "templatePrint",
102
+ "triggerWorkflow",
103
+ "duplicate",
104
+ "addChild",
105
+ "view",
106
+ "edit",
107
+ "delete",
108
+ "updateRecord"
109
+ ];
110
+ function ref(name) {
111
+ return {
112
+ $ref: `#/components/schemas/${name}`
113
+ };
114
+ }
115
+ function parameterRef(name) {
116
+ return {
117
+ $ref: `#/components/parameters/${name}`
118
+ };
119
+ }
120
+ function dataEnvelope(schema) {
121
+ return {
122
+ type: "object",
123
+ required: ["data"],
124
+ properties: {
125
+ data: schema
126
+ }
127
+ };
128
+ }
129
+ function jsonContent(schema, example) {
130
+ return {
131
+ "application/json": {
132
+ schema,
133
+ ...example ? { example } : {}
134
+ }
135
+ };
136
+ }
137
+ function requestBody(schemaName, example, description) {
138
+ return {
139
+ required: true,
140
+ ...description ? { description } : {},
141
+ content: jsonContent(ref(schemaName), example)
142
+ };
143
+ }
144
+ function responses(schemaName, includeValidationError = true) {
145
+ return {
146
+ 200: {
147
+ description: "OK",
148
+ content: jsonContent(dataEnvelope(ref(schemaName)))
149
+ },
150
+ ...includeValidationError ? {
151
+ 400: {
152
+ description: "Invalid public request parameters or semantics",
153
+ content: jsonContent(ref("FlowSurfaceErrorResponse"))
154
+ },
155
+ 403: {
156
+ description: "Current role is not allowed to call this action",
157
+ content: jsonContent(ref("FlowSurfaceErrorResponse"))
158
+ },
159
+ 409: {
160
+ description: "Current FlowSurface state conflicts with the requested operation",
161
+ content: jsonContent(ref("FlowSurfaceErrorResponse"))
162
+ },
163
+ 500: {
164
+ description: "Unexpected internal server error",
165
+ content: jsonContent(ref("FlowSurfaceErrorResponse"))
166
+ }
167
+ } : {}
168
+ };
169
+ }
170
+ function valuesCompatibilityNote(description) {
171
+ return [
172
+ description,
173
+ "",
174
+ 'SDK compatibility note: `resource("flowSurfaces").action({ values: payload })` is still supported.',
175
+ "The request schema in this Swagger document describes the final business payload, not the outer SDK `values` wrapper."
176
+ ].join("\n");
177
+ }
178
+ const examples = {
179
+ catalog: {
180
+ target: {
181
+ uid: "table-block-uid"
182
+ }
183
+ },
184
+ context: {
185
+ target: {
186
+ uid: "details-block-uid"
187
+ },
188
+ path: "record",
189
+ maxDepth: 3
190
+ },
191
+ compose: {
192
+ target: {
193
+ uid: "page-grid-uid"
194
+ },
195
+ mode: "append",
196
+ blocks: [
197
+ {
198
+ key: "filter",
199
+ type: "filterForm",
200
+ resource: {
201
+ dataSourceKey: "main",
202
+ collectionName: "users"
203
+ },
204
+ fields: [
205
+ {
206
+ fieldPath: "username",
207
+ target: "table"
208
+ },
209
+ {
210
+ fieldPath: "nickname",
211
+ target: "table"
212
+ }
213
+ ],
214
+ actions: ["submit", "reset", "collapse"]
215
+ },
216
+ {
217
+ key: "table",
218
+ type: "table",
219
+ resource: {
220
+ dataSourceKey: "main",
221
+ collectionName: "users"
222
+ },
223
+ fields: ["username", "nickname", { fieldPath: "roles.title" }],
224
+ actions: ["filter", "addNew", "refresh", "bulkDelete", "link"],
225
+ recordActions: [
226
+ "view",
227
+ "edit",
228
+ {
229
+ type: "popup",
230
+ popup: {
231
+ mode: "replace",
232
+ blocks: [
233
+ {
234
+ key: "details",
235
+ type: "details",
236
+ resource: {
237
+ dataSourceKey: "main",
238
+ collectionName: "users"
239
+ },
240
+ fields: ["username", "nickname"]
241
+ }
242
+ ]
243
+ }
244
+ },
245
+ "updateRecord",
246
+ "delete"
247
+ ]
248
+ }
249
+ ],
250
+ layout: {
251
+ rows: [
252
+ [
253
+ {
254
+ key: "filter",
255
+ span: 3
256
+ },
257
+ {
258
+ key: "table",
259
+ span: 7
260
+ }
261
+ ]
262
+ ]
263
+ }
264
+ },
265
+ composeStatic: {
266
+ target: {
267
+ uid: "page-grid-uid"
268
+ },
269
+ blocks: [
270
+ {
271
+ key: "markdown",
272
+ type: "markdown",
273
+ settings: {
274
+ content: "# Team handbook"
275
+ }
276
+ },
277
+ {
278
+ key: "iframe",
279
+ type: "iframe",
280
+ settings: {
281
+ mode: "url",
282
+ url: "https://example.com/embed",
283
+ height: 360
284
+ }
285
+ },
286
+ {
287
+ key: "panel",
288
+ type: "actionPanel",
289
+ settings: {
290
+ layout: "list",
291
+ ellipsis: false
292
+ }
293
+ }
294
+ ],
295
+ layout: {
296
+ rows: [["markdown", "iframe"], ["panel"]]
297
+ }
298
+ },
299
+ composeListRich: {
300
+ target: {
301
+ uid: "page-grid-uid"
302
+ },
303
+ blocks: [
304
+ {
305
+ key: "employeesList",
306
+ type: "list",
307
+ resource: {
308
+ dataSourceKey: "main",
309
+ collectionName: "employees"
310
+ },
311
+ fields: [
312
+ "nickname",
313
+ {
314
+ fieldPath: "department.name"
315
+ }
316
+ ],
317
+ actions: ["addNew", "refresh"],
318
+ recordActions: [
319
+ "view",
320
+ "edit",
321
+ {
322
+ type: "popup",
323
+ popup: {
324
+ mode: "replace",
325
+ blocks: [
326
+ {
327
+ key: "details",
328
+ type: "details",
329
+ resource: {
330
+ dataSourceKey: "main",
331
+ collectionName: "employees"
332
+ },
333
+ fields: ["nickname"]
334
+ }
335
+ ]
336
+ }
337
+ },
338
+ "delete"
339
+ ],
340
+ settings: {
341
+ pageSize: 20,
342
+ layout: "vertical"
343
+ }
344
+ }
345
+ ]
346
+ },
347
+ composeGridCardRich: {
348
+ target: {
349
+ uid: "page-grid-uid"
350
+ },
351
+ blocks: [
352
+ {
353
+ key: "employeeCards",
354
+ type: "gridCard",
355
+ resource: {
356
+ dataSourceKey: "main",
357
+ collectionName: "employees"
358
+ },
359
+ fields: [
360
+ "nickname",
361
+ {
362
+ fieldPath: "department.name"
363
+ }
364
+ ],
365
+ actions: ["addNew", "refresh"],
366
+ recordActions: ["view", "edit", "updateRecord", "delete"],
367
+ settings: {
368
+ columns: 3,
369
+ rowCount: 2,
370
+ layout: "vertical"
371
+ }
372
+ }
373
+ ]
374
+ },
375
+ composeJsBlock: {
376
+ target: {
377
+ uid: "page-grid-uid"
378
+ },
379
+ blocks: [
380
+ {
381
+ key: "customHero",
382
+ type: "jsBlock",
383
+ settings: {
384
+ title: "Custom hero",
385
+ description: "Rendered by JS block runtime",
386
+ className: "hero-shell",
387
+ version: "1.0.0",
388
+ code: "ctx.render('<div>Hello from JS block</div>');"
389
+ }
390
+ }
391
+ ]
392
+ },
393
+ configure: {
394
+ target: {
395
+ uid: "details-field-uid"
396
+ },
397
+ changes: {
398
+ clickToOpen: true,
399
+ openView: {
400
+ dataSourceKey: "main",
401
+ collectionName: "departments",
402
+ associationName: "users.department",
403
+ mode: "drawer"
404
+ }
405
+ }
406
+ },
407
+ configureAssociationPopup: {
408
+ target: {
409
+ uid: "roles-field-wrapper-uid"
410
+ },
411
+ changes: {
412
+ clickToOpen: true,
413
+ openView: {
414
+ dataSourceKey: "main",
415
+ collectionName: "roles",
416
+ associationName: "users.roles",
417
+ mode: "drawer"
418
+ }
419
+ }
420
+ },
421
+ configureBlock: {
422
+ target: {
423
+ uid: "list-block-uid"
424
+ },
425
+ changes: {
426
+ pageSize: 50,
427
+ dataScope: {
428
+ logic: "$and",
429
+ items: [
430
+ {
431
+ path: "nickname",
432
+ operator: "$eq",
433
+ value: "beta"
434
+ }
435
+ ]
436
+ },
437
+ sorting: [
438
+ {
439
+ field: "username",
440
+ direction: "asc"
441
+ }
442
+ ],
443
+ layout: "vertical"
444
+ }
445
+ },
446
+ createMenu: {
447
+ title: "Employees",
448
+ type: "item",
449
+ parentMenuRouteId: 1001
450
+ },
451
+ updateMenu: {
452
+ menuRouteId: 1002,
453
+ title: "Employees Center",
454
+ parentMenuRouteId: null
455
+ },
456
+ configureAction: {
457
+ target: {
458
+ uid: "update-record-action-uid"
459
+ },
460
+ changes: {
461
+ title: "Quick update",
462
+ type: "primary",
463
+ color: "gold",
464
+ htmlType: "button",
465
+ position: "end",
466
+ confirm: {
467
+ enable: true,
468
+ title: "Confirm update",
469
+ content: "Apply assigned values?"
470
+ },
471
+ assignValues: {
472
+ status: "active"
473
+ }
474
+ }
475
+ },
476
+ configureJsBlock: {
477
+ target: {
478
+ uid: "js-block-uid"
479
+ },
480
+ changes: {
481
+ title: "Users hero",
482
+ description: "Rendered from FlowSurfaces configure",
483
+ className: "users-hero",
484
+ version: "1.0.1",
485
+ code: "ctx.render('<div>Users hero</div>');"
486
+ }
487
+ },
488
+ configureJsAction: {
489
+ target: {
490
+ uid: "js-action-uid"
491
+ },
492
+ changes: {
493
+ title: "Run diagnostics",
494
+ type: "primary",
495
+ version: "1.0.1",
496
+ code: `await ctx.runjs('console.log("diagnostics")');`
497
+ }
498
+ },
499
+ configureJsItemAction: {
500
+ target: {
501
+ uid: "js-item-action-uid"
502
+ },
503
+ changes: {
504
+ title: "Run item diagnostics",
505
+ type: "default",
506
+ version: "1.0.1",
507
+ code: `await ctx.runjs('console.log("item diagnostics")');`
508
+ }
509
+ },
510
+ configureJsField: {
511
+ target: {
512
+ uid: "js-field-wrapper-uid"
513
+ },
514
+ changes: {
515
+ label: "Custom renderer",
516
+ version: "1.0.1",
517
+ code: "ctx.render(String(ctx.record?.nickname?.toUpperCase?.() || ''));"
518
+ }
519
+ },
520
+ configureJsColumn: {
521
+ target: {
522
+ uid: "js-column-uid"
523
+ },
524
+ changes: {
525
+ title: "JS column",
526
+ width: 240,
527
+ fixed: "left",
528
+ version: "1.0.1",
529
+ code: "ctx.render(String(ctx.record?.username || ''));"
530
+ }
531
+ },
532
+ configureJsItem: {
533
+ target: {
534
+ uid: "js-item-uid"
535
+ },
536
+ changes: {
537
+ label: "JS item",
538
+ showLabel: true,
539
+ labelWidth: 120,
540
+ version: "1.0.1",
541
+ code: "ctx.render(String(ctx.record?.nickname || ''));"
542
+ }
543
+ },
544
+ configurePage: {
545
+ target: {
546
+ uid: "employees-page-uid"
547
+ },
548
+ changes: {
549
+ icon: "UserOutlined",
550
+ enableHeader: false
551
+ }
552
+ },
553
+ configureTableAdvanced: {
554
+ target: {
555
+ uid: "tree-table-block-uid"
556
+ },
557
+ changes: {
558
+ quickEdit: true,
559
+ treeTable: true,
560
+ defaultExpandAllRows: true,
561
+ dragSort: true,
562
+ dragSortBy: "sort"
563
+ }
564
+ },
565
+ configureEditForm: {
566
+ target: {
567
+ uid: "edit-form-block-uid"
568
+ },
569
+ changes: {
570
+ colon: false,
571
+ dataScope: {
572
+ logic: "$and",
573
+ items: [
574
+ {
575
+ path: "status",
576
+ operator: "$eq",
577
+ value: "draft"
578
+ }
579
+ ]
580
+ }
581
+ }
582
+ },
583
+ configureDetails: {
584
+ target: {
585
+ uid: "details-block-uid"
586
+ },
587
+ changes: {
588
+ colon: true,
589
+ linkageRules: [
590
+ {
591
+ when: {
592
+ path: "status",
593
+ operator: "$eq",
594
+ value: "archived"
595
+ },
596
+ set: {
597
+ hidden: true
598
+ }
599
+ }
600
+ ]
601
+ }
602
+ },
603
+ composePopupCurrentRecord: {
604
+ target: {
605
+ uid: "view-action-uid"
606
+ },
607
+ mode: "replace",
608
+ blocks: [
609
+ {
610
+ key: "details",
611
+ type: "details",
612
+ resource: {
613
+ binding: "currentRecord"
614
+ },
615
+ fields: ["nickname", "department.title"]
616
+ }
617
+ ]
618
+ },
619
+ composePopupAssociatedRecords: {
620
+ target: {
621
+ uid: "association-popup-action-uid"
622
+ },
623
+ mode: "replace",
624
+ blocks: [
625
+ {
626
+ key: "employees",
627
+ type: "table",
628
+ resource: {
629
+ binding: "associatedRecords",
630
+ associationField: "employee"
631
+ },
632
+ fields: ["nickname", "status"],
633
+ actions: ["refresh"],
634
+ recordActions: ["view", "edit"]
635
+ }
636
+ ]
637
+ },
638
+ configureActionModes: {
639
+ target: {
640
+ uid: "compose-email-action-uid"
641
+ },
642
+ changes: {
643
+ linkageRules: [
644
+ {
645
+ when: {
646
+ path: "status",
647
+ operator: "$eq",
648
+ value: "draft"
649
+ },
650
+ set: {
651
+ disabled: true
652
+ }
653
+ }
654
+ ],
655
+ editMode: "drawer",
656
+ updateMode: "overwrite",
657
+ duplicateMode: "popup",
658
+ collapsedRows: 2,
659
+ defaultCollapsed: true,
660
+ emailFieldNames: ["email", "backupEmail"],
661
+ defaultSelectAllRecords: true
662
+ }
663
+ },
664
+ createPage: {
665
+ menuRouteId: 1002,
666
+ title: "Employees",
667
+ tabTitle: "Overview",
668
+ enableTabs: true,
669
+ displayTitle: true,
670
+ documentTitle: "Employees workspace",
671
+ tabDocumentTitle: "Employees overview"
672
+ },
673
+ addTab: {
674
+ target: {
675
+ uid: "employees-page-uid"
676
+ },
677
+ title: "Details",
678
+ icon: "TableOutlined",
679
+ documentTitle: "Employee details tab"
680
+ },
681
+ updateTab: {
682
+ target: {
683
+ uid: "details-tab-schema"
684
+ },
685
+ title: "Details",
686
+ icon: "TableOutlined",
687
+ documentTitle: "Employee details tab",
688
+ flowRegistry: {
689
+ beforeRenderApply: {
690
+ key: "beforeRenderApply",
691
+ on: "beforeRender",
692
+ steps: {}
693
+ }
694
+ }
695
+ },
696
+ addPopupTab: {
697
+ target: {
698
+ uid: "view-action-popup-page-uid"
699
+ },
700
+ title: "Popup details",
701
+ icon: "TableOutlined",
702
+ documentTitle: "Popup details tab"
703
+ },
704
+ updatePopupTab: {
705
+ target: {
706
+ uid: "popup-secondary-tab-uid"
707
+ },
708
+ title: "Popup details updated",
709
+ icon: "AppstoreOutlined",
710
+ documentTitle: "Popup details updated tab",
711
+ flowRegistry: {
712
+ beforeRenderApply: {
713
+ key: "beforeRenderApply",
714
+ on: "beforeRender",
715
+ steps: {}
716
+ }
717
+ }
718
+ },
719
+ movePopupTab: {
720
+ sourceUid: "popup-secondary-tab-uid",
721
+ targetUid: "popup-primary-tab-uid",
722
+ position: "before"
723
+ },
724
+ removePopupTab: {
725
+ target: {
726
+ uid: "popup-secondary-tab-uid"
727
+ }
728
+ },
729
+ addBlock: {
730
+ target: {
731
+ uid: "view-action-uid"
732
+ },
733
+ type: "details",
734
+ resource: {
735
+ binding: "currentRecord"
736
+ }
737
+ },
738
+ addPopupAssociatedBlock: {
739
+ target: {
740
+ uid: "association-popup-action-uid"
741
+ },
742
+ type: "table",
743
+ resource: {
744
+ binding: "associatedRecords",
745
+ associationField: "employee"
746
+ }
747
+ },
748
+ addPopupOtherRecordsBlock: {
749
+ target: {
750
+ uid: "popup-action-uid"
751
+ },
752
+ type: "table",
753
+ resource: {
754
+ binding: "otherRecords",
755
+ dataSourceKey: "main",
756
+ collectionName: "departments"
757
+ }
758
+ },
759
+ addJsBlock: {
760
+ target: {
761
+ uid: "page-grid-uid"
762
+ },
763
+ type: "jsBlock",
764
+ settings: {
765
+ title: "Users banner",
766
+ description: "Custom JS rendered banner",
767
+ version: "1.0.0",
768
+ code: "ctx.render('<div>Users banner</div>');"
769
+ }
770
+ },
771
+ addField: {
772
+ target: {
773
+ uid: "create-form-block-uid"
774
+ },
775
+ fieldPath: "nickname",
776
+ renderer: "js",
777
+ settings: {
778
+ label: "Nickname (JS)",
779
+ code: "ctx.render(String(ctx.value?.toUpperCase?.() || ctx.value || ''));",
780
+ version: "1.0.0"
781
+ }
782
+ },
783
+ addAssociationField: {
784
+ target: {
785
+ uid: "table-block-uid"
786
+ },
787
+ fieldPath: "title",
788
+ associationPathName: "department",
789
+ settings: {
790
+ title: "Department title",
791
+ width: 240
792
+ },
793
+ popup: {
794
+ mode: "replace",
795
+ blocks: [
796
+ {
797
+ key: "departmentDetails",
798
+ type: "details",
799
+ resource: {
800
+ binding: "currentRecord"
801
+ },
802
+ fields: ["title", "manager.nickname"]
803
+ }
804
+ ]
805
+ }
806
+ },
807
+ addJsColumn: {
808
+ target: {
809
+ uid: "table-block-uid"
810
+ },
811
+ type: "jsColumn",
812
+ settings: {
813
+ title: "Runtime column",
814
+ width: 240,
815
+ version: "1.0.0",
816
+ code: "ctx.render(String(ctx.record?.nickname || ''));"
817
+ }
818
+ },
819
+ addJsItem: {
820
+ target: {
821
+ uid: "create-form-grid-uid"
822
+ },
823
+ type: "jsItem",
824
+ settings: {
825
+ label: "Runtime item",
826
+ showLabel: true,
827
+ version: "1.0.0",
828
+ code: "ctx.render(String(ctx.record?.nickname || ''));"
829
+ }
830
+ },
831
+ addAction: {
832
+ target: {
833
+ uid: "filter-form-block-uid"
834
+ },
835
+ type: "submit",
836
+ settings: {
837
+ title: "Apply filters",
838
+ confirm: false
839
+ }
840
+ },
841
+ addLinkAction: {
842
+ target: {
843
+ uid: "table-block-uid"
844
+ },
845
+ type: "link",
846
+ settings: {
847
+ title: "Open docs"
848
+ }
849
+ },
850
+ addJsAction: {
851
+ target: {
852
+ uid: "action-panel-uid"
853
+ },
854
+ type: "js",
855
+ settings: {
856
+ title: "Run JS",
857
+ type: "primary",
858
+ version: "1.0.0",
859
+ code: `await ctx.runjs('console.log("hello")');`
860
+ }
861
+ },
862
+ addJsItemAction: {
863
+ target: {
864
+ uid: "create-form-uid"
865
+ },
866
+ type: "jsItem",
867
+ settings: {
868
+ title: "Run item JS",
869
+ type: "default",
870
+ version: "1.0.0",
871
+ code: `await ctx.runjs('console.log("item")');`
872
+ }
873
+ },
874
+ addRecordAction: {
875
+ target: {
876
+ uid: "table-block-uid"
877
+ },
878
+ type: "view",
879
+ settings: {
880
+ title: "View user",
881
+ openView: {
882
+ dataSourceKey: "main",
883
+ collectionName: "users",
884
+ mode: "drawer"
885
+ }
886
+ },
887
+ popup: {
888
+ mode: "replace",
889
+ blocks: [
890
+ {
891
+ key: "details",
892
+ type: "details",
893
+ resource: {
894
+ dataSourceKey: "main",
895
+ collectionName: "users"
896
+ },
897
+ fields: ["username", "nickname"]
898
+ }
899
+ ]
900
+ }
901
+ },
902
+ addRecordJsAction: {
903
+ target: {
904
+ uid: "details-block-uid"
905
+ },
906
+ type: "js",
907
+ settings: {
908
+ title: "Inspect record",
909
+ type: "default",
910
+ version: "1.0.0",
911
+ code: "return currentRecord?.id;"
912
+ }
913
+ },
914
+ addBlocks: {
915
+ target: {
916
+ uid: "page-grid-uid"
917
+ },
918
+ blocks: [
919
+ {
920
+ key: "usersTable",
921
+ type: "table",
922
+ resourceInit: {
923
+ dataSourceKey: "main",
924
+ collectionName: "users"
925
+ },
926
+ settings: {
927
+ title: "Users table",
928
+ pageSize: 50
929
+ }
930
+ },
931
+ {
932
+ key: "teamNotes",
933
+ type: "markdown",
934
+ settings: {
935
+ content: "# Team notes"
936
+ }
937
+ }
938
+ ]
939
+ },
940
+ addFields: {
941
+ target: {
942
+ uid: "table-block-uid"
943
+ },
944
+ fields: [
945
+ {
946
+ key: "username",
947
+ fieldPath: "username",
948
+ settings: {
949
+ title: "User name",
950
+ width: 220
951
+ },
952
+ popup: {
953
+ mode: "replace",
954
+ blocks: [
955
+ {
956
+ key: "details",
957
+ type: "details",
958
+ resource: {
959
+ binding: "currentRecord"
960
+ },
961
+ fields: ["username", "nickname"]
962
+ }
963
+ ]
964
+ }
965
+ },
966
+ {
967
+ key: "nickname",
968
+ fieldPath: "nickname",
969
+ renderer: "js",
970
+ settings: {
971
+ label: "Nickname (JS)",
972
+ code: "return value;",
973
+ version: "1.0.0"
974
+ }
975
+ }
976
+ ]
977
+ },
978
+ addActions: {
979
+ target: {
980
+ uid: "filter-form-block-uid"
981
+ },
982
+ actions: [
983
+ {
984
+ key: "submit",
985
+ type: "submit",
986
+ settings: {
987
+ title: "Search",
988
+ confirm: false
989
+ }
990
+ },
991
+ {
992
+ key: "reset",
993
+ type: "reset",
994
+ settings: {
995
+ title: "Reset filters"
996
+ }
997
+ }
998
+ ]
999
+ },
1000
+ addRecordActions: {
1001
+ target: {
1002
+ uid: "table-block-uid"
1003
+ },
1004
+ recordActions: [
1005
+ {
1006
+ key: "view",
1007
+ type: "view",
1008
+ settings: {
1009
+ title: "View user",
1010
+ openView: {
1011
+ dataSourceKey: "main",
1012
+ collectionName: "users",
1013
+ mode: "drawer"
1014
+ }
1015
+ },
1016
+ popup: {
1017
+ mode: "replace",
1018
+ blocks: [
1019
+ {
1020
+ key: "details",
1021
+ type: "details",
1022
+ resource: {
1023
+ dataSourceKey: "main",
1024
+ collectionName: "users"
1025
+ },
1026
+ fields: ["username"]
1027
+ }
1028
+ ]
1029
+ }
1030
+ },
1031
+ {
1032
+ key: "edit",
1033
+ type: "edit",
1034
+ settings: {
1035
+ title: "Edit user"
1036
+ }
1037
+ },
1038
+ {
1039
+ key: "delete",
1040
+ type: "delete",
1041
+ settings: {
1042
+ title: "Delete user"
1043
+ }
1044
+ }
1045
+ ]
1046
+ },
1047
+ updateSettings: {
1048
+ target: {
1049
+ uid: "table-block-uid"
1050
+ },
1051
+ stepParams: {
1052
+ tableSettings: {
1053
+ pageSize: {
1054
+ pageSize: 50
1055
+ },
1056
+ tableDensity: {
1057
+ size: "middle"
1058
+ }
1059
+ }
1060
+ },
1061
+ flowRegistry: {
1062
+ beforeRenderApply: {
1063
+ key: "beforeRenderApply",
1064
+ on: "beforeRender",
1065
+ steps: {}
1066
+ }
1067
+ }
1068
+ },
1069
+ setEventFlows: {
1070
+ target: {
1071
+ uid: "view-action-uid"
1072
+ },
1073
+ flowRegistry: {
1074
+ popupSettings: {
1075
+ key: "popupSettings",
1076
+ on: "click",
1077
+ steps: {
1078
+ openView: {
1079
+ params: {
1080
+ title: "Employee details",
1081
+ size: "large"
1082
+ }
1083
+ }
1084
+ }
1085
+ }
1086
+ }
1087
+ },
1088
+ setLayout: {
1089
+ target: {
1090
+ uid: "page-grid-uid"
1091
+ },
1092
+ rows: {
1093
+ row1: [["block-a"], ["block-b"]]
1094
+ },
1095
+ sizes: {
1096
+ row1: [12, 12]
1097
+ },
1098
+ rowOrder: ["row1"]
1099
+ },
1100
+ moveNode: {
1101
+ sourceUid: "block-b",
1102
+ targetUid: "block-a",
1103
+ position: "before"
1104
+ },
1105
+ removeNode: {
1106
+ target: {
1107
+ uid: "obsolete-block-uid"
1108
+ }
1109
+ },
1110
+ mutate: {
1111
+ atomic: true,
1112
+ ops: [
1113
+ {
1114
+ opId: "menu",
1115
+ type: "createMenu",
1116
+ values: {
1117
+ title: "Employees",
1118
+ type: "item"
1119
+ }
1120
+ },
1121
+ {
1122
+ opId: "page",
1123
+ type: "createPage",
1124
+ values: {
1125
+ menuRouteId: {
1126
+ ref: "menu.routeId"
1127
+ },
1128
+ tabTitle: "Overview"
1129
+ }
1130
+ },
1131
+ {
1132
+ opId: "table",
1133
+ type: "addBlock",
1134
+ values: {
1135
+ target: {
1136
+ uid: {
1137
+ ref: "page.tabSchemaUid"
1138
+ }
1139
+ },
1140
+ type: "table",
1141
+ resourceInit: {
1142
+ dataSourceKey: "main",
1143
+ collectionName: "employees"
1144
+ }
1145
+ }
1146
+ },
1147
+ {
1148
+ type: "addField",
1149
+ values: {
1150
+ target: {
1151
+ uid: {
1152
+ ref: "table.uid"
1153
+ }
1154
+ },
1155
+ fieldPath: "nickname"
1156
+ }
1157
+ }
1158
+ ]
1159
+ },
1160
+ apply: {
1161
+ target: {
1162
+ uid: "page-grid-uid"
1163
+ },
1164
+ mode: "replace",
1165
+ spec: {
1166
+ subModels: {
1167
+ items: [
1168
+ {
1169
+ clientKey: "table-a",
1170
+ use: "TableBlockModel",
1171
+ stepParams: {
1172
+ resourceSettings: {
1173
+ init: {
1174
+ dataSourceKey: "main",
1175
+ collectionName: "employees"
1176
+ }
1177
+ }
1178
+ }
1179
+ },
1180
+ {
1181
+ clientKey: "markdown-a",
1182
+ use: "MarkdownBlockModel",
1183
+ props: {
1184
+ content: "Employee handbook"
1185
+ }
1186
+ }
1187
+ ]
1188
+ }
1189
+ }
1190
+ },
1191
+ getPopupQuery: {
1192
+ uid: "view-action-uid"
1193
+ },
1194
+ getPageQuery: {
1195
+ pageSchemaUid: "employees-page-schema"
1196
+ }
1197
+ };
1198
+ const FLOW_SURFACES_READ_ACL_NOTE = "Read actions (`get` / `catalog` / `context`) are open to `loggedIn` by default. Write actions still require the `ui.flowSurfaces` snippet.";
1199
+ const actionDocs = {
1200
+ catalog: {
1201
+ tags: [FLOW_SURFACES_TAG],
1202
+ summary: "List capabilities available in the current surface context",
1203
+ description: valuesCompatibilityNote(
1204
+ `Returns the block / field / action capabilities that can be created under the current target context, together with the recommended \`configureOptions\`, the underlying settings contract, event capabilities, and layout capabilities for the current node. The returned \`blocks[] / actions[] / recordActions[]\` only represent the truly available public capabilities under plugins enabled in the current instance. ${FLOW_SURFACES_READ_ACL_NOTE}`
1205
+ ),
1206
+ requestBody: requestBody("FlowSurfaceCatalogRequest", examples.catalog),
1207
+ responses: responses("FlowSurfaceCatalogResponse")
1208
+ },
1209
+ context: {
1210
+ tags: [FLOW_SURFACES_TAG],
1211
+ summary: "Read ctx variable tree available under the current target",
1212
+ description: valuesCompatibilityNote(
1213
+ `Returns the \`ctx\` variable tree available under the current target. \`path\` only accepts bare paths such as \`record\`, \`popup.record\`, and \`item.parentItem.value\`. Do not pass \`ctx.record\` or \`{{ ctx.record }}\`. ${FLOW_SURFACES_READ_ACL_NOTE}`
1214
+ ),
1215
+ requestBody: requestBody("FlowSurfaceContextRequest", examples.context),
1216
+ responses: responses("FlowSurfaceContextResponse")
1217
+ },
1218
+ get: {
1219
+ tags: [FLOW_SURFACES_TAG],
1220
+ summary: "Read normalized surface tree and route metadata",
1221
+ description: [
1222
+ "Reads the normalized Flow surface readback result as the stable read endpoint for CLI and orchestration tools.",
1223
+ "",
1224
+ "Only root-level locator fields are accepted. Exactly one of the following four fields must be used as the locator.",
1225
+ "Do not wrap the payload with `{ target: { ... } }`.",
1226
+ "Do not wrap the payload with `{ values: { ... } }`.",
1227
+ FLOW_SURFACES_READ_ACL_NOTE,
1228
+ "The `target` in the response only keeps lightweight locator information. Read the full node tree from `tree`.",
1229
+ "Tabs for route-backed pages are always read from `tree.subModels.tabs`. Top-level `tabs` / `tabTrees` are no longer returned separately.",
1230
+ "",
1231
+ `Example: GET /api/flowSurfaces:get?uid=${examples.getPopupQuery.uid}`,
1232
+ `Example: GET /api/flowSurfaces:get?pageSchemaUid=${examples.getPageQuery.pageSchemaUid}`
1233
+ ].join("\n"),
1234
+ parameters: [
1235
+ parameterRef("flowSurfaceTargetUid"),
1236
+ parameterRef("flowSurfaceTargetPageSchemaUid"),
1237
+ parameterRef("flowSurfaceTargetTabSchemaUid"),
1238
+ parameterRef("flowSurfaceTargetRouteId")
1239
+ ],
1240
+ responses: responses("FlowSurfaceGetResponse")
1241
+ },
1242
+ compose: {
1243
+ tags: [FLOW_SURFACES_TAG],
1244
+ summary: "Compose blocks, fields, actions and simple layout under an existing surface",
1245
+ description: valuesCompatibilityNote(
1246
+ "Organizes content under an existing page/tab/grid/popup using the public block/action/field semantics. This is the preferred creation entry for AI callers. The caller does not need to pass raw `use`, `fieldUse`, or `stepParams`. For collection blocks under a popup, check `catalog.blocks[].resourceBindings` first. The `select / subForm / bulkEditForm` scene is currently recognized only, and popup collection block creation is not supported in that scene."
1247
+ ),
1248
+ requestBody: {
1249
+ required: true,
1250
+ content: {
1251
+ "application/json": {
1252
+ schema: ref("FlowSurfaceComposeRequest"),
1253
+ examples: {
1254
+ filterTable: {
1255
+ summary: "Compose a filter-form and table with block actions, record actions and a simple 3:7 row layout",
1256
+ value: examples.compose
1257
+ },
1258
+ popupCurrentRecord: {
1259
+ summary: "Compose a current-record details block under a record popup surface",
1260
+ value: examples.composePopupCurrentRecord
1261
+ },
1262
+ popupAssociatedRecords: {
1263
+ summary: "Compose an associated-records table under an association-field popup surface",
1264
+ value: examples.composePopupAssociatedRecords
1265
+ },
1266
+ staticBlocks: {
1267
+ summary: "Compose markdown, iframe and action-panel blocks with simple settings",
1268
+ value: examples.composeStatic
1269
+ },
1270
+ listRich: {
1271
+ summary: "Compose a list block with item fields, block actions and record actions",
1272
+ value: examples.composeListRich
1273
+ },
1274
+ gridCardRich: {
1275
+ summary: "Compose a grid-card block with item fields, block actions and record actions",
1276
+ value: examples.composeGridCardRich
1277
+ },
1278
+ jsBlock: {
1279
+ summary: "Compose a JS block with simple code/version/title settings",
1280
+ value: examples.composeJsBlock
1281
+ }
1282
+ }
1283
+ }
1284
+ }
1285
+ },
1286
+ responses: responses("FlowSurfaceComposeResult")
1287
+ },
1288
+ configure: {
1289
+ tags: [FLOW_SURFACES_TAG],
1290
+ summary: "Apply simple semantic changes to a page, tab, block, field or action",
1291
+ description: valuesCompatibilityNote(
1292
+ "Uses simple `changes` to update high-frequency settings such as page/tab titles, table pageSize, field clickToOpen, and action openView/confirm without requiring the caller to know internal paths. Check `catalog(target).configureOptions` before calling this action."
1293
+ ),
1294
+ requestBody: {
1295
+ required: true,
1296
+ content: {
1297
+ "application/json": {
1298
+ schema: ref("FlowSurfaceConfigureRequest"),
1299
+ examples: {
1300
+ fieldOpenView: {
1301
+ summary: "Configure a field to click and open a popup view",
1302
+ value: examples.configure
1303
+ },
1304
+ associationFieldPopup: {
1305
+ summary: "Configure a to-many association display field to open the clicked associated record in a popup",
1306
+ value: examples.configureAssociationPopup
1307
+ },
1308
+ blockSettings: {
1309
+ summary: "Configure a list block with simple pageSize/dataScope/sorting/layout changes",
1310
+ value: examples.configureBlock
1311
+ },
1312
+ actionSettings: {
1313
+ summary: "Configure an action with button appearance, confirm dialog and assign values",
1314
+ value: examples.configureAction
1315
+ },
1316
+ jsBlockSettings: {
1317
+ summary: "Configure a JS block with decorator props and runJs code/version",
1318
+ value: examples.configureJsBlock
1319
+ },
1320
+ jsActionSettings: {
1321
+ summary: "Configure a JS action with button text and runJs code/version",
1322
+ value: examples.configureJsAction
1323
+ },
1324
+ jsItemActionSettings: {
1325
+ summary: "Configure a form JS item action with button text and runJs code/version",
1326
+ value: examples.configureJsItemAction
1327
+ },
1328
+ jsFieldSettings: {
1329
+ summary: "Configure a JS field wrapper and inner JS field with code/version",
1330
+ value: examples.configureJsField
1331
+ },
1332
+ jsColumnSettings: {
1333
+ summary: "Configure a JS column with width/fixed/code/version",
1334
+ value: examples.configureJsColumn
1335
+ },
1336
+ jsItemSettings: {
1337
+ summary: "Configure a JS item with label and runJs code/version",
1338
+ value: examples.configureJsItem
1339
+ },
1340
+ pageHeaderSettings: {
1341
+ summary: "Configure page icon and enableHeader using configureOptions",
1342
+ value: examples.configurePage
1343
+ },
1344
+ tableAdvancedSettings: {
1345
+ summary: "Configure advanced table simple keys such as quickEdit/treeTable/dragSort",
1346
+ value: examples.configureTableAdvanced
1347
+ },
1348
+ editFormSettings: {
1349
+ summary: "Configure edit form colon and dataScope with a FilterGroup",
1350
+ value: examples.configureEditForm
1351
+ },
1352
+ detailsSettings: {
1353
+ summary: "Configure details colon and linkageRules",
1354
+ value: examples.configureDetails
1355
+ },
1356
+ actionBehaviorSettings: {
1357
+ summary: "Configure action linkageRules, edit/update/duplicate modes, collapsed rows and email selection defaults",
1358
+ value: examples.configureActionModes
1359
+ }
1360
+ }
1361
+ }
1362
+ }
1363
+ },
1364
+ responses: responses("FlowSurfaceConfigureResult")
1365
+ },
1366
+ createMenu: {
1367
+ tags: [FLOW_SURFACES_TAG],
1368
+ summary: "Create a group menu or a bindable V2 menu item",
1369
+ description: valuesCompatibilityNote(
1370
+ 'Creates a FlowSurfaces menu node. `type="group"` creates a menu group. `type="item"` creates a menu item that can be bound to a modern page (v2), and automatically fills in the flowPage route, the default hidden tab route, and the RootPageModel anchor.'
1371
+ ),
1372
+ requestBody: requestBody("FlowSurfaceCreateMenuRequest", examples.createMenu),
1373
+ responses: responses("FlowSurfaceCreateMenuResult")
1374
+ },
1375
+ updateMenu: {
1376
+ tags: [FLOW_SURFACES_TAG],
1377
+ summary: "Update menu title/icon/tooltip or move it under another group",
1378
+ description: valuesCompatibilityNote(
1379
+ "Updates menu display information, or moves a group / item to the top level or under another group. Only `group` and `flowPage` menu nodes are supported."
1380
+ ),
1381
+ requestBody: requestBody("FlowSurfaceUpdateMenuRequest", examples.updateMenu),
1382
+ responses: responses("FlowSurfaceUpdateMenuResult")
1383
+ },
1384
+ createPage: {
1385
+ tags: [FLOW_SURFACES_TAG],
1386
+ summary: "Initialize a modern page for an existing bindable menu item",
1387
+ description: valuesCompatibilityNote(
1388
+ "Initializes a modern page (v2) for an existing bindable menu item through `menuRouteId` first, and fills in the default BlockGridModel. In compatibility mode, if `menuRouteId` is omitted, the old behavior still applies and a top-level menu plus page will be created automatically. Before initialization, do not call page/tab lifecycle actions such as `addTab`, `updateTab`, `moveTab`, `removeTab`, or `destroyPage`."
1389
+ ),
1390
+ requestBody: requestBody("FlowSurfaceCreatePageRequest", examples.createPage),
1391
+ responses: responses("FlowSurfaceCreatePageResult")
1392
+ },
1393
+ destroyPage: {
1394
+ tags: [FLOW_SURFACES_TAG],
1395
+ summary: "Destroy a modern page and its anchors",
1396
+ description: valuesCompatibilityNote(
1397
+ "Removes the page route, tab route, and the corresponding FlowModel subtree. Only a root-level `uid` is accepted. If you only have `pageSchemaUid` or `routeId`, call `flowSurfaces:get` first. For menu-first pages, `createPage(menuRouteId=...)` must finish initialization before this action can be called."
1398
+ ),
1399
+ requestBody: requestBody("FlowSurfaceDestroyPageRequest", {
1400
+ uid: "employees-page-uid"
1401
+ }),
1402
+ responses: responses("FlowSurfaceDestroyPageResult")
1403
+ },
1404
+ addTab: {
1405
+ tags: [FLOW_SURFACES_TAG],
1406
+ summary: "Add a tab under a page",
1407
+ description: valuesCompatibilityNote(
1408
+ "Adds a route-backed tab under a page and fills in the corresponding grid anchor. Only `target.uid` is accepted, and it must be the canonical uid of the page. For menu-first pages, `createPage(menuRouteId=...)` must finish initialization first."
1409
+ ),
1410
+ requestBody: requestBody("FlowSurfaceAddTabRequest", examples.addTab),
1411
+ responses: responses("FlowSurfaceAddTabResult")
1412
+ },
1413
+ updateTab: {
1414
+ tags: [FLOW_SURFACES_TAG],
1415
+ summary: "Update tab title, icon, document title and flow registry",
1416
+ description: valuesCompatibilityNote(
1417
+ "Updates the route-backed fields on the tab route and its matching synthetic RootPageTabModel. Only `target.uid` is accepted, and it must be a tab uid. Pre-created tabs under uninitialized pages are not supported by this action."
1418
+ ),
1419
+ requestBody: requestBody("FlowSurfaceUpdateTabRequest", examples.updateTab),
1420
+ responses: responses("FlowSurfaceUpdateTabResult")
1421
+ },
1422
+ moveTab: {
1423
+ tags: [FLOW_SURFACES_TAG],
1424
+ summary: "Reorder sibling tabs under the same page",
1425
+ description: valuesCompatibilityNote(
1426
+ "Reorders sibling tabs under the same page. Only root-level `sourceUid` / `targetUid` are accepted. Pre-created tabs under uninitialized pages are not supported by this action."
1427
+ ),
1428
+ requestBody: requestBody("FlowSurfaceMoveTabRequest", {
1429
+ sourceUid: "details-tab",
1430
+ targetUid: "overview-tab",
1431
+ position: "before"
1432
+ }),
1433
+ responses: responses("FlowSurfaceMoveTabResult")
1434
+ },
1435
+ removeTab: {
1436
+ tags: [FLOW_SURFACES_TAG],
1437
+ summary: "Remove a tab route and its anchor tree",
1438
+ description: valuesCompatibilityNote(
1439
+ "Removes the tab route and its matching FlowModel subtree. Only a root-level `uid` is accepted. The canonical uid of the current outer route-backed tab is the `tabSchemaUid` in the response. The last outer tab cannot be removed. Use `destroyPage` to remove the whole page. Pre-created tabs under uninitialized pages are not supported by this action."
1440
+ ),
1441
+ requestBody: requestBody("FlowSurfaceRemoveTabRequest", {
1442
+ uid: "details-tab"
1443
+ }),
1444
+ responses: responses("FlowSurfaceRemoveTabResult")
1445
+ },
1446
+ addPopupTab: {
1447
+ tags: [FLOW_SURFACES_TAG],
1448
+ summary: "Add a popup child tab under an existing popup page",
1449
+ description: valuesCompatibilityNote(
1450
+ "Adds a persisted child-tab subtree under an existing popup page (`ChildPageModel`). It only works on `ChildPageModel / ChildPageTabModel`, does not read or write `desktopRoutes`, and does not auto-create a popup page."
1451
+ ),
1452
+ requestBody: requestBody("FlowSurfaceAddPopupTabRequest", examples.addPopupTab),
1453
+ responses: responses("FlowSurfaceAddPopupTabResult")
1454
+ },
1455
+ updatePopupTab: {
1456
+ tags: [FLOW_SURFACES_TAG],
1457
+ summary: "Update popup child tab title, icon, document title and flow registry",
1458
+ description: valuesCompatibilityNote(
1459
+ "Updates the props / stepParams / flowRegistry of a popup child tab (`ChildPageTabModel`) itself. Route-backed tab semantics are not involved."
1460
+ ),
1461
+ requestBody: requestBody("FlowSurfaceUpdatePopupTabRequest", examples.updatePopupTab),
1462
+ responses: responses("FlowSurfaceUpdatePopupTabResult")
1463
+ },
1464
+ movePopupTab: {
1465
+ tags: [FLOW_SURFACES_TAG],
1466
+ summary: "Reorder sibling popup child tabs under the same popup page",
1467
+ description: valuesCompatibilityNote(
1468
+ "Reorders `subModels.tabs` under the same popup page. Only root-level `sourceUid` / `targetUid` are accepted, and both must be sibling popup-tab uids."
1469
+ ),
1470
+ requestBody: requestBody("FlowSurfaceMovePopupTabRequest", examples.movePopupTab),
1471
+ responses: responses("FlowSurfaceMovePopupTabResult")
1472
+ },
1473
+ removePopupTab: {
1474
+ tags: [FLOW_SURFACES_TAG],
1475
+ summary: "Remove a popup child tab subtree",
1476
+ description: valuesCompatibilityNote(
1477
+ "Removes the specified popup child-tab subtree. It is valid for the popup to end with 0 tabs. `removePopup` is not provided in this iteration, and the popup page is not required to keep at least one tab."
1478
+ ),
1479
+ requestBody: requestBody("FlowSurfaceRemovePopupTabRequest", examples.removePopupTab),
1480
+ responses: responses("FlowSurfaceRemovePopupTabResult")
1481
+ },
1482
+ addBlock: {
1483
+ tags: [FLOW_SURFACES_TAG],
1484
+ summary: "Add a block under a surface or grid container",
1485
+ description: valuesCompatibilityNote(
1486
+ "Creates a block by catalog key or an explicitly supported block use. Popup-capable host nodes automatically receive the popup shell. For collection blocks under a popup, check `catalog.blocks[].resourceBindings` first, then pass the semantic `resource.binding`. The lower-level `resourceInit` is still accepted for compatibility, but the server validates it against popup semantics. `resource` and `resourceInit` are mutually exclusive. The `select / subForm / bulkEditForm` scene is currently recognized only, and popup collection block creation is not supported in that scene. Direct add does not accept raw `props` / `decoratorProps` / `stepParams` / `flowRegistry`. Use `settings` and reuse the public configuration semantics from `configure.changes` / `catalog.configureOptions`."
1487
+ ),
1488
+ requestBody: {
1489
+ required: true,
1490
+ content: {
1491
+ "application/json": {
1492
+ schema: ref("FlowSurfaceAddBlockRequest"),
1493
+ examples: {
1494
+ popupCurrentRecord: {
1495
+ summary: "Create a current-record details block under a popup-capable host node",
1496
+ value: examples.addBlock
1497
+ },
1498
+ popupAssociatedRecords: {
1499
+ summary: "Create an associated-records table block under an association-field popup host node",
1500
+ value: examples.addPopupAssociatedBlock
1501
+ },
1502
+ popupOtherRecords: {
1503
+ summary: "Create a table bound to another collection explicitly under a popup host node",
1504
+ value: examples.addPopupOtherRecordsBlock
1505
+ },
1506
+ jsBlock: {
1507
+ summary: "Create a JS block directly under a page/tab/grid container",
1508
+ value: examples.addJsBlock
1509
+ }
1510
+ }
1511
+ }
1512
+ }
1513
+ },
1514
+ responses: responses("FlowSurfaceAddBlockResult")
1515
+ },
1516
+ addField: {
1517
+ tags: [FLOW_SURFACES_TAG],
1518
+ summary: "Add a field wrapper and inner field under a field container",
1519
+ description: valuesCompatibilityNote(
1520
+ "Automatically derives the wrapper/inner-field combination from the container use and the field interface. `fieldUse` is only kept as a compatibility check and is no longer an arbitrary creation entry. Direct add does not accept raw `wrapperProps` / `fieldProps` / `props` / `decoratorProps` / `stepParams` / `flowRegistry`. Use `settings` and reuse the public configuration semantics from `configure.changes` / `catalog.configureOptions`. Popup-capable fields can also pass `popup` directly to append a popup subtree. If local openView is enabled but no popup content is provided, the server fills in the popup page/tab/grid shell automatically."
1521
+ ),
1522
+ requestBody: {
1523
+ required: true,
1524
+ content: {
1525
+ "application/json": {
1526
+ schema: ref("FlowSurfaceAddFieldRequest"),
1527
+ examples: {
1528
+ directField: {
1529
+ summary: "Create a JS renderer bound field under a create form",
1530
+ value: examples.addField
1531
+ },
1532
+ associationField: {
1533
+ summary: "Create an association-path field under a table block",
1534
+ value: examples.addAssociationField
1535
+ },
1536
+ jsColumn: {
1537
+ summary: "Create a standalone JS column under a table field container",
1538
+ value: examples.addJsColumn
1539
+ },
1540
+ jsItem: {
1541
+ summary: "Create a standalone JS item under a form field container",
1542
+ value: examples.addJsItem
1543
+ }
1544
+ }
1545
+ }
1546
+ }
1547
+ },
1548
+ responses: responses("FlowSurfaceAddFieldResult")
1549
+ },
1550
+ addAction: {
1551
+ tags: [FLOW_SURFACES_TAG],
1552
+ summary: "Add a non-record action under an allowed block/form/filter-form/action-panel container",
1553
+ description: valuesCompatibilityNote(
1554
+ "Only non-record actions that are public in the catalog and visible in the current container may be created. Typical cases include table block actions, form submit, filter-form reset, and action-panel actions. Use `addRecordAction` for record actions. Direct add does not accept raw `props` / `decoratorProps` / `stepParams` / `flowRegistry`. Use `settings` and reuse `configure.changes` / `catalog.configureOptions`. Popup-capable actions may also include `popup` directly to append a popup subtree."
1555
+ ),
1556
+ requestBody: {
1557
+ required: true,
1558
+ content: {
1559
+ "application/json": {
1560
+ schema: ref("FlowSurfaceAddActionRequest"),
1561
+ examples: {
1562
+ submit: {
1563
+ summary: "Create a submit action under a filter-form action container",
1564
+ value: examples.addAction
1565
+ },
1566
+ link: {
1567
+ summary: "Create a link action under a table block action container",
1568
+ value: examples.addLinkAction
1569
+ },
1570
+ js: {
1571
+ summary: "Create a JS action under an action-panel container",
1572
+ value: examples.addJsAction
1573
+ },
1574
+ jsItem: {
1575
+ summary: "Create a form JS item action under a create/edit/form action container",
1576
+ value: examples.addJsItemAction
1577
+ }
1578
+ }
1579
+ }
1580
+ }
1581
+ },
1582
+ responses: responses("FlowSurfaceAddActionResult")
1583
+ },
1584
+ addRecordAction: {
1585
+ tags: [FLOW_SURFACES_TAG],
1586
+ summary: "Add a record action under a record-capable owner target",
1587
+ description: valuesCompatibilityNote(
1588
+ "Only record actions that are public in the catalog and visible in the current container may be created. The public target must be a record-capable owner target such as table/details/list/gridCard. Do not pass internal container uids such as a table actions column or a list/gridCard item. Direct add does not accept raw `props` / `decoratorProps` / `stepParams` / `flowRegistry`. Use `settings` and reuse `configure.changes` / `catalog.configureOptions`. Popup-capable actions may also include `popup` directly to append a popup subtree."
1589
+ ),
1590
+ requestBody: {
1591
+ required: true,
1592
+ content: {
1593
+ "application/json": {
1594
+ schema: ref("FlowSurfaceAddRecordActionRequest"),
1595
+ examples: {
1596
+ view: {
1597
+ summary: "Create a view action under a table record-action owner target",
1598
+ value: examples.addRecordAction
1599
+ },
1600
+ js: {
1601
+ summary: "Create a JS record action under a details block owner target",
1602
+ value: examples.addRecordJsAction
1603
+ }
1604
+ }
1605
+ }
1606
+ }
1607
+ },
1608
+ responses: responses("FlowSurfaceAddRecordActionResult")
1609
+ },
1610
+ addBlocks: {
1611
+ tags: [FLOW_SURFACES_TAG],
1612
+ summary: "Add multiple blocks sequentially under the same target",
1613
+ description: valuesCompatibilityNote(
1614
+ "Creates multiple blocks sequentially under the same target. Each item may include `settings`, but raw `props` / `decoratorProps` / `stepParams` / `flowRegistry` are not accepted. Partial-success semantics apply: a failure in one item does not roll back the others. Results are returned in input order as `index/key/ok/result/error`, and each `error` always includes `message/type/code/status`."
1615
+ ),
1616
+ requestBody: requestBody("FlowSurfaceAddBlocksRequest", examples.addBlocks),
1617
+ responses: responses("FlowSurfaceAddBlocksResult")
1618
+ },
1619
+ addFields: {
1620
+ tags: [FLOW_SURFACES_TAG],
1621
+ summary: "Add multiple fields sequentially under the same target",
1622
+ description: valuesCompatibilityNote(
1623
+ "Creates multiple fields sequentially under the same target. Each item may include `settings`, and popup-capable fields may also include `popup`, but raw `wrapperProps` / `fieldProps` / `props` / `decoratorProps` / `stepParams` / `flowRegistry` are not accepted. Partial-success semantics apply: a failure in one item does not roll back the others. Results are returned in input order as `index/key/ok/result/error`, and each `error` always includes `message/type/code/status`."
1624
+ ),
1625
+ requestBody: requestBody("FlowSurfaceAddFieldsRequest", examples.addFields),
1626
+ responses: responses("FlowSurfaceAddFieldsResult")
1627
+ },
1628
+ addActions: {
1629
+ tags: [FLOW_SURFACES_TAG],
1630
+ summary: "Add multiple non-record actions sequentially under the same target",
1631
+ description: valuesCompatibilityNote(
1632
+ "Creates multiple non-record actions sequentially under the same target. Each item may include `settings`, and popup-capable actions may also include `popup`, but raw `props` / `decoratorProps` / `stepParams` / `flowRegistry` are not accepted. Partial-success semantics apply. Record actions do not belong to this entry and should use `addRecordActions` instead. Each failed item always returns an `error` with `message/type/code/status`."
1633
+ ),
1634
+ requestBody: requestBody("FlowSurfaceAddActionsRequest", examples.addActions),
1635
+ responses: responses("FlowSurfaceAddActionsResult")
1636
+ },
1637
+ addRecordActions: {
1638
+ tags: [FLOW_SURFACES_TAG],
1639
+ summary: "Add multiple record actions sequentially under the same record-capable owner target",
1640
+ description: valuesCompatibilityNote(
1641
+ "Creates multiple record actions sequentially under the same target. The target must be a record-capable owner target, and the server resolves the canonical record-action container automatically. Do not pass internal container uids such as a table actions column or a list/gridCard item. Each item may include `settings`, and popup-capable actions may also include `popup`, but raw `props` / `decoratorProps` / `stepParams` / `flowRegistry` are not accepted. Partial-success semantics apply: a failure in one item does not roll back the others. Each failed item always returns an `error` with `message/type/code/status`."
1642
+ ),
1643
+ requestBody: requestBody("FlowSurfaceAddRecordActionsRequest", examples.addRecordActions),
1644
+ responses: responses("FlowSurfaceAddRecordActionsResult")
1645
+ },
1646
+ updateSettings: {
1647
+ tags: [FLOW_SURFACES_TAG],
1648
+ summary: "Update controlled props, decoratorProps, stepParams or flowRegistry",
1649
+ description: valuesCompatibilityNote(
1650
+ "Updates the specified domain according to the path-level contract exposed by the catalog. Arbitrary raw tree-field patches are not accepted."
1651
+ ),
1652
+ requestBody: requestBody("FlowSurfaceUpdateSettingsRequest", examples.updateSettings),
1653
+ responses: responses("FlowSurfaceUpdateSettingsResult")
1654
+ },
1655
+ setEventFlows: {
1656
+ tags: [FLOW_SURFACES_TAG],
1657
+ summary: "Replace instance-level event flow definitions on a node",
1658
+ description: valuesCompatibilityNote(
1659
+ "Fully replaces the instance-level event flows on the current node. The server validates whether eventName, flowKey, stepKey, and the node context are all valid."
1660
+ ),
1661
+ requestBody: requestBody("FlowSurfaceSetEventFlowsRequest", examples.setEventFlows),
1662
+ responses: responses("FlowSurfaceSetEventFlowsResult")
1663
+ },
1664
+ setLayout: {
1665
+ tags: [FLOW_SURFACES_TAG],
1666
+ summary: "Write rows, sizes and rowOrder for a grid",
1667
+ description: valuesCompatibilityNote(
1668
+ "Fully writes the grid layout. The server strictly validates that every child is covered completely and exactly once."
1669
+ ),
1670
+ requestBody: requestBody("FlowSurfaceSetLayoutRequest", examples.setLayout),
1671
+ responses: responses("FlowSurfaceSetLayoutResult")
1672
+ },
1673
+ moveNode: {
1674
+ tags: [FLOW_SURFACES_TAG],
1675
+ summary: "Move a node before or after a sibling under the same parent",
1676
+ description: valuesCompatibilityNote("Only sibling-node reordering under the same parent/subKey is supported."),
1677
+ requestBody: requestBody("FlowSurfaceMoveNodeRequest", examples.moveNode),
1678
+ responses: responses("FlowSurfaceMoveNodeResult")
1679
+ },
1680
+ removeNode: {
1681
+ tags: [FLOW_SURFACES_TAG],
1682
+ summary: "Remove a block, field wrapper, action or nested popup node",
1683
+ description: valuesCompatibilityNote(
1684
+ "Removes the specified normal node and its subtree. Only `target.uid` is accepted. If you only have `pageSchemaUid / tabSchemaUid / routeId`, call `flowSurfaces:get` first. `removeNode` is not used for page/tab deletion. Use `destroyPage` for pages and `removeTab` for tabs."
1685
+ ),
1686
+ requestBody: requestBody("FlowSurfaceRemoveNodeRequest", examples.removeNode),
1687
+ responses: responses("FlowSurfaceRemoveNodeResult")
1688
+ },
1689
+ mutate: {
1690
+ tags: [FLOW_SURFACES_TAG],
1691
+ summary: "Execute multiple operations atomically",
1692
+ description: valuesCompatibilityNote(
1693
+ 'Executes `ops[]` in order and supports `opId` plus `{ref:"<opId>.<field>"}` references to earlier results. V1 only supports `atomic=true`.'
1694
+ ),
1695
+ requestBody: requestBody("FlowSurfaceMutateRequest", examples.mutate),
1696
+ responses: responses("FlowSurfaceMutationResponse")
1697
+ },
1698
+ apply: {
1699
+ tags: [FLOW_SURFACES_TAG],
1700
+ summary: "Replace the target subtree from a complete spec",
1701
+ description: valuesCompatibilityNote(
1702
+ 'Accepts a complete subtree spec and compiles it into an operation sequence isomorphic to `mutate`. V1 only supports `mode="replace"`.'
1703
+ ),
1704
+ requestBody: requestBody("FlowSurfaceApplyRequest", examples.apply),
1705
+ responses: responses("FlowSurfaceMutationResponse")
1706
+ }
1707
+ };
1708
+ const parameters = {
1709
+ flowSurfaceTargetUid: {
1710
+ name: "uid",
1711
+ in: "query",
1712
+ description: "Target node uid",
1713
+ required: false,
1714
+ schema: {
1715
+ type: "string"
1716
+ },
1717
+ example: examples.getPopupQuery.uid
1718
+ },
1719
+ flowSurfaceTargetPageSchemaUid: {
1720
+ name: "pageSchemaUid",
1721
+ in: "query",
1722
+ description: "Top-level page schema uid",
1723
+ required: false,
1724
+ schema: {
1725
+ type: "string"
1726
+ },
1727
+ example: "employees-page-schema"
1728
+ },
1729
+ flowSurfaceTargetTabSchemaUid: {
1730
+ name: "tabSchemaUid",
1731
+ in: "query",
1732
+ description: "Tab schema uid",
1733
+ required: false,
1734
+ schema: {
1735
+ type: "string"
1736
+ },
1737
+ example: "details-tab-schema"
1738
+ },
1739
+ flowSurfaceTargetRouteId: {
1740
+ name: "routeId",
1741
+ in: "query",
1742
+ description: "Desktop route id",
1743
+ required: false,
1744
+ schema: {
1745
+ type: "string"
1746
+ },
1747
+ example: "101"
1748
+ }
1749
+ };
1750
+ const schemas = {
1751
+ FlowSurfaceMutateRef: {
1752
+ type: "object",
1753
+ required: ["ref"],
1754
+ properties: {
1755
+ ref: {
1756
+ type: "string",
1757
+ description: "Reference to a previous mutate op result field, for example `page.tabSchemaUid`."
1758
+ }
1759
+ },
1760
+ additionalProperties: false
1761
+ },
1762
+ FlowSurfaceResolvableString: {
1763
+ oneOf: [{ type: "string" }, ref("FlowSurfaceMutateRef")]
1764
+ },
1765
+ FlowSurfaceResolvableIdentifier: {
1766
+ oneOf: [{ type: "string" }, { type: "integer" }, ref("FlowSurfaceMutateRef")]
1767
+ },
1768
+ FlowSurfaceWriteTarget: {
1769
+ type: "object",
1770
+ required: ["uid"],
1771
+ properties: {
1772
+ uid: {
1773
+ type: "string"
1774
+ }
1775
+ },
1776
+ additionalProperties: false
1777
+ },
1778
+ FlowSurfaceReadLocator: {
1779
+ type: "object",
1780
+ minProperties: 1,
1781
+ properties: {
1782
+ uid: {
1783
+ type: "string"
1784
+ },
1785
+ pageSchemaUid: {
1786
+ type: "string"
1787
+ },
1788
+ tabSchemaUid: {
1789
+ type: "string"
1790
+ },
1791
+ routeId: {
1792
+ type: "string"
1793
+ }
1794
+ },
1795
+ additionalProperties: false
1796
+ },
1797
+ FlowSurfaceMutateWriteTarget: {
1798
+ type: "object",
1799
+ required: ["uid"],
1800
+ properties: {
1801
+ uid: ref("FlowSurfaceResolvableString")
1802
+ },
1803
+ additionalProperties: false
1804
+ },
1805
+ FlowSurfaceResolvedTarget: {
1806
+ type: "object",
1807
+ properties: {
1808
+ uid: {
1809
+ type: "string"
1810
+ },
1811
+ kind: {
1812
+ type: "string",
1813
+ enum: ["page", "tab", "grid", "block", "node"]
1814
+ },
1815
+ pageSchemaUid: {
1816
+ type: "string"
1817
+ },
1818
+ tabSchemaUid: {
1819
+ type: "string"
1820
+ },
1821
+ routeId: {
1822
+ type: "string"
1823
+ },
1824
+ route: ref("FlowSurfaceRouteMeta"),
1825
+ pageRoute: ref("FlowSurfaceRouteMeta"),
1826
+ tabRoute: ref("FlowSurfaceRouteMeta")
1827
+ },
1828
+ additionalProperties: true
1829
+ },
1830
+ FlowSurfaceReadTarget: {
1831
+ type: "object",
1832
+ properties: {
1833
+ locator: ref("FlowSurfaceReadLocator"),
1834
+ uid: {
1835
+ type: "string"
1836
+ },
1837
+ kind: {
1838
+ type: "string",
1839
+ enum: ["page", "tab", "grid", "block", "node"]
1840
+ }
1841
+ },
1842
+ additionalProperties: false
1843
+ },
1844
+ FlowSurfaceConfigureOption: {
1845
+ type: "object",
1846
+ properties: {
1847
+ type: {
1848
+ type: "string",
1849
+ enum: ["string", "number", "boolean", "object", "array"]
1850
+ },
1851
+ description: {
1852
+ type: "string"
1853
+ },
1854
+ enum: {
1855
+ type: "array",
1856
+ items: {
1857
+ oneOf: [{ type: "string" }, { type: "number" }, { type: "boolean" }]
1858
+ }
1859
+ },
1860
+ example: {},
1861
+ supportsFlowContext: {
1862
+ type: "boolean"
1863
+ }
1864
+ },
1865
+ required: ["type"],
1866
+ additionalProperties: false
1867
+ },
1868
+ FlowSurfaceConfigureOptions: {
1869
+ type: "object",
1870
+ additionalProperties: ref("FlowSurfaceConfigureOption")
1871
+ },
1872
+ FlowSurfaceNodeDomain: {
1873
+ type: "string",
1874
+ enum: ["props", "decoratorProps", "stepParams", "flowRegistry"]
1875
+ },
1876
+ FlowSurfaceMergeStrategy: {
1877
+ type: "string",
1878
+ enum: ["deep", "replace"]
1879
+ },
1880
+ FlowSurfaceFilterCondition: {
1881
+ type: "object",
1882
+ properties: {
1883
+ path: {
1884
+ type: "string"
1885
+ },
1886
+ operator: {
1887
+ type: "string"
1888
+ },
1889
+ value: {}
1890
+ },
1891
+ required: ["path", "operator"],
1892
+ additionalProperties: true
1893
+ },
1894
+ FlowSurfaceFilterGroup: {
1895
+ type: "object",
1896
+ properties: {
1897
+ logic: {
1898
+ type: "string",
1899
+ enum: ["$and", "$or"]
1900
+ },
1901
+ items: {
1902
+ type: "array",
1903
+ items: {
1904
+ oneOf: [ref("FlowSurfaceFilterCondition"), ref("FlowSurfaceFilterGroup")]
1905
+ }
1906
+ }
1907
+ },
1908
+ required: ["logic", "items"],
1909
+ additionalProperties: false,
1910
+ example: FILTER_GROUP_EXAMPLE
1911
+ },
1912
+ FlowSurfaceEventCapabilities: {
1913
+ type: "object",
1914
+ properties: {
1915
+ direct: {
1916
+ type: "array",
1917
+ items: {
1918
+ type: "string"
1919
+ }
1920
+ },
1921
+ object: {
1922
+ type: "array",
1923
+ items: {
1924
+ type: "string"
1925
+ }
1926
+ }
1927
+ },
1928
+ additionalProperties: false
1929
+ },
1930
+ FlowSurfaceLayoutCapabilities: {
1931
+ type: "object",
1932
+ properties: {
1933
+ supported: {
1934
+ type: "boolean"
1935
+ }
1936
+ },
1937
+ additionalProperties: false
1938
+ },
1939
+ FlowSurfaceDomainGroupContract: {
1940
+ type: "object",
1941
+ properties: {
1942
+ allowedPaths: {
1943
+ type: "array",
1944
+ items: {
1945
+ type: "string"
1946
+ }
1947
+ },
1948
+ clearable: {
1949
+ type: "boolean"
1950
+ },
1951
+ mergeStrategy: ref("FlowSurfaceMergeStrategy"),
1952
+ schema: ANY_OBJECT_SCHEMA,
1953
+ eventBindingSteps: {
1954
+ oneOf: [
1955
+ {
1956
+ type: "array",
1957
+ items: {
1958
+ type: "string"
1959
+ }
1960
+ },
1961
+ {
1962
+ type: "string",
1963
+ enum: ["*"]
1964
+ }
1965
+ ]
1966
+ },
1967
+ pathSchemas: ANY_OBJECT_SCHEMA
1968
+ },
1969
+ additionalProperties: false
1970
+ },
1971
+ FlowSurfaceDomainContract: {
1972
+ type: "object",
1973
+ properties: {
1974
+ allowedKeys: {
1975
+ type: "array",
1976
+ items: {
1977
+ type: "string"
1978
+ }
1979
+ },
1980
+ wildcard: {
1981
+ type: "boolean"
1982
+ },
1983
+ mergeStrategy: ref("FlowSurfaceMergeStrategy"),
1984
+ schema: ANY_OBJECT_SCHEMA,
1985
+ groups: {
1986
+ type: "object",
1987
+ additionalProperties: ref("FlowSurfaceDomainGroupContract")
1988
+ }
1989
+ },
1990
+ additionalProperties: false
1991
+ },
1992
+ FlowSurfaceNodeContract: {
1993
+ type: "object",
1994
+ properties: {
1995
+ editableDomains: {
1996
+ type: "array",
1997
+ items: ref("FlowSurfaceNodeDomain")
1998
+ },
1999
+ domains: {
2000
+ type: "object",
2001
+ properties: {
2002
+ props: ref("FlowSurfaceDomainContract"),
2003
+ decoratorProps: ref("FlowSurfaceDomainContract"),
2004
+ stepParams: ref("FlowSurfaceDomainContract"),
2005
+ flowRegistry: ref("FlowSurfaceDomainContract")
2006
+ },
2007
+ additionalProperties: false
2008
+ },
2009
+ eventCapabilities: ref("FlowSurfaceEventCapabilities"),
2010
+ layoutCapabilities: ref("FlowSurfaceLayoutCapabilities"),
2011
+ eventBindings: ANY_OBJECT_SCHEMA
2012
+ },
2013
+ additionalProperties: false
2014
+ },
2015
+ FlowSurfaceCatalogItem: {
2016
+ type: "object",
2017
+ properties: {
2018
+ key: {
2019
+ type: "string"
2020
+ },
2021
+ label: {
2022
+ type: "string"
2023
+ },
2024
+ use: {
2025
+ type: "string"
2026
+ },
2027
+ kind: {
2028
+ type: "string",
2029
+ enum: ["page", "tab", "block", "field", "action"]
2030
+ },
2031
+ scene: {
2032
+ type: "string"
2033
+ },
2034
+ fieldUse: {
2035
+ type: "string"
2036
+ },
2037
+ wrapperUse: {
2038
+ type: "string"
2039
+ },
2040
+ associationPathName: {
2041
+ type: "string",
2042
+ nullable: true
2043
+ },
2044
+ defaultTargetUid: {
2045
+ type: "string"
2046
+ },
2047
+ targetBlockUid: {
2048
+ type: "string"
2049
+ },
2050
+ requiredInitParams: {
2051
+ type: "array",
2052
+ items: {
2053
+ type: "string"
2054
+ }
2055
+ },
2056
+ allowedContainerUses: {
2057
+ type: "array",
2058
+ items: {
2059
+ type: "string"
2060
+ }
2061
+ },
2062
+ editableDomains: {
2063
+ type: "array",
2064
+ items: ref("FlowSurfaceNodeDomain")
2065
+ },
2066
+ configureOptions: ref("FlowSurfaceConfigureOptions"),
2067
+ resourceBindings: {
2068
+ type: "array",
2069
+ items: ref("FlowSurfaceResourceBindingOption")
2070
+ },
2071
+ settingsSchema: ANY_OBJECT_SCHEMA,
2072
+ settingsContract: {
2073
+ type: "object",
2074
+ properties: {
2075
+ props: ref("FlowSurfaceDomainContract"),
2076
+ decoratorProps: ref("FlowSurfaceDomainContract"),
2077
+ stepParams: ref("FlowSurfaceDomainContract"),
2078
+ flowRegistry: ref("FlowSurfaceDomainContract")
2079
+ },
2080
+ additionalProperties: false
2081
+ },
2082
+ eventCapabilities: ref("FlowSurfaceEventCapabilities"),
2083
+ layoutCapabilities: ref("FlowSurfaceLayoutCapabilities"),
2084
+ createSupported: {
2085
+ type: "boolean"
2086
+ }
2087
+ },
2088
+ additionalProperties: true
2089
+ },
2090
+ FlowSurfaceGetTreeNode: {
2091
+ type: "object",
2092
+ properties: {
2093
+ uid: {
2094
+ type: "string"
2095
+ },
2096
+ use: {
2097
+ type: "string"
2098
+ },
2099
+ subKey: {
2100
+ type: "string"
2101
+ },
2102
+ subType: {
2103
+ type: "string"
2104
+ },
2105
+ fieldUse: {
2106
+ type: "string"
2107
+ },
2108
+ schemaUid: {
2109
+ type: "string"
2110
+ },
2111
+ props: ANY_OBJECT_SCHEMA,
2112
+ decoratorProps: ANY_OBJECT_SCHEMA,
2113
+ stepParams: ANY_OBJECT_SCHEMA,
2114
+ flowRegistry: ANY_OBJECT_SCHEMA,
2115
+ subModels: {
2116
+ type: "object",
2117
+ additionalProperties: {
2118
+ oneOf: [
2119
+ ref("FlowSurfaceGetTreeNode"),
2120
+ {
2121
+ type: "array",
2122
+ items: ref("FlowSurfaceGetTreeNode")
2123
+ }
2124
+ ]
2125
+ }
2126
+ }
2127
+ },
2128
+ additionalProperties: true
2129
+ },
2130
+ FlowSurfaceNodeMap: {
2131
+ type: "object",
2132
+ additionalProperties: ref("FlowSurfaceGetTreeNode")
2133
+ },
2134
+ FlowSurfaceRouteMeta: {
2135
+ type: "object",
2136
+ properties: {
2137
+ id: STRING_OR_INTEGER_SCHEMA,
2138
+ type: {
2139
+ type: "string"
2140
+ },
2141
+ title: {
2142
+ type: "string"
2143
+ },
2144
+ icon: {
2145
+ type: "string",
2146
+ nullable: true
2147
+ },
2148
+ schemaUid: {
2149
+ type: "string"
2150
+ },
2151
+ tabSchemaName: {
2152
+ type: "string"
2153
+ },
2154
+ enableTabs: {
2155
+ type: "boolean"
2156
+ },
2157
+ hidden: {
2158
+ type: "boolean"
2159
+ },
2160
+ displayTitle: {
2161
+ type: "boolean"
2162
+ },
2163
+ sort: {
2164
+ type: "number"
2165
+ },
2166
+ options: ANY_OBJECT_SCHEMA,
2167
+ children: {
2168
+ type: "array",
2169
+ items: ref("FlowSurfaceRouteMeta")
2170
+ }
2171
+ },
2172
+ additionalProperties: true
2173
+ },
2174
+ FlowSurfaceNodeSpec: {
2175
+ type: "object",
2176
+ required: ["use"],
2177
+ properties: {
2178
+ uid: {
2179
+ type: "string"
2180
+ },
2181
+ clientKey: {
2182
+ type: "string"
2183
+ },
2184
+ use: {
2185
+ type: "string"
2186
+ },
2187
+ props: ANY_OBJECT_SCHEMA,
2188
+ decoratorProps: ANY_OBJECT_SCHEMA,
2189
+ stepParams: ANY_OBJECT_SCHEMA,
2190
+ flowRegistry: ANY_OBJECT_SCHEMA,
2191
+ subModels: {
2192
+ type: "object",
2193
+ additionalProperties: {
2194
+ oneOf: [
2195
+ ref("FlowSurfaceNodeSpec"),
2196
+ {
2197
+ type: "array",
2198
+ items: ref("FlowSurfaceNodeSpec")
2199
+ }
2200
+ ]
2201
+ }
2202
+ }
2203
+ },
2204
+ additionalProperties: false
2205
+ },
2206
+ FlowSurfaceApplySpec: {
2207
+ type: "object",
2208
+ properties: {
2209
+ props: ANY_OBJECT_SCHEMA,
2210
+ decoratorProps: ANY_OBJECT_SCHEMA,
2211
+ stepParams: ANY_OBJECT_SCHEMA,
2212
+ flowRegistry: ANY_OBJECT_SCHEMA,
2213
+ subModels: {
2214
+ type: "object",
2215
+ additionalProperties: {
2216
+ oneOf: [
2217
+ ref("FlowSurfaceNodeSpec"),
2218
+ {
2219
+ type: "array",
2220
+ items: ref("FlowSurfaceNodeSpec")
2221
+ }
2222
+ ]
2223
+ }
2224
+ }
2225
+ },
2226
+ additionalProperties: false
2227
+ },
2228
+ FlowSurfaceClientKeyMap: {
2229
+ type: "object",
2230
+ additionalProperties: {
2231
+ type: "string"
2232
+ }
2233
+ },
2234
+ FlowSurfaceResourceInit: {
2235
+ type: "object",
2236
+ properties: {
2237
+ dataSourceKey: {
2238
+ type: "string"
2239
+ },
2240
+ collectionName: {
2241
+ type: "string"
2242
+ },
2243
+ associationName: {
2244
+ type: "string"
2245
+ },
2246
+ associationPathName: {
2247
+ type: "string"
2248
+ },
2249
+ sourceId: STRING_OR_INTEGER_SCHEMA,
2250
+ filterByTk: STRING_OR_INTEGER_SCHEMA
2251
+ },
2252
+ additionalProperties: false
2253
+ },
2254
+ FlowSurfaceResourceBindingAssociationField: {
2255
+ type: "object",
2256
+ properties: {
2257
+ key: {
2258
+ type: "string"
2259
+ },
2260
+ label: {
2261
+ type: "string"
2262
+ },
2263
+ collectionName: {
2264
+ type: "string"
2265
+ },
2266
+ associationName: {
2267
+ type: "string"
2268
+ }
2269
+ },
2270
+ required: ["key", "label", "collectionName"],
2271
+ additionalProperties: false
2272
+ },
2273
+ FlowSurfaceResourceBindingOption: {
2274
+ type: "object",
2275
+ properties: {
2276
+ key: {
2277
+ type: "string",
2278
+ enum: ["currentCollection", "currentRecord", "associatedRecords", "otherRecords"]
2279
+ },
2280
+ label: {
2281
+ type: "string"
2282
+ },
2283
+ description: {
2284
+ type: "string"
2285
+ },
2286
+ requires: {
2287
+ type: "array",
2288
+ items: {
2289
+ type: "string"
2290
+ }
2291
+ },
2292
+ dataSourceKey: {
2293
+ type: "string"
2294
+ },
2295
+ collectionName: {
2296
+ type: "string"
2297
+ },
2298
+ associationFields: {
2299
+ type: "array",
2300
+ items: ref("FlowSurfaceResourceBindingAssociationField")
2301
+ }
2302
+ },
2303
+ required: ["key", "label"],
2304
+ additionalProperties: false
2305
+ },
2306
+ FlowSurfaceSemanticResourceInput: {
2307
+ type: "object",
2308
+ required: ["binding"],
2309
+ properties: {
2310
+ binding: {
2311
+ type: "string",
2312
+ enum: ["currentCollection", "currentRecord", "associatedRecords", "otherRecords"]
2313
+ },
2314
+ dataSourceKey: {
2315
+ type: "string"
2316
+ },
2317
+ collectionName: {
2318
+ type: "string"
2319
+ },
2320
+ associationField: {
2321
+ type: "string"
2322
+ }
2323
+ },
2324
+ additionalProperties: false
2325
+ },
2326
+ FlowSurfaceBlockResourceInput: {
2327
+ oneOf: [ref("FlowSurfaceSemanticResourceInput"), ref("FlowSurfaceResourceInit")]
2328
+ },
2329
+ FlowSurfaceMutateResourceInit: {
2330
+ type: "object",
2331
+ properties: {
2332
+ dataSourceKey: ref("FlowSurfaceResolvableString"),
2333
+ collectionName: ref("FlowSurfaceResolvableString"),
2334
+ associationName: ref("FlowSurfaceResolvableString"),
2335
+ associationPathName: ref("FlowSurfaceResolvableString"),
2336
+ sourceId: ref("FlowSurfaceResolvableIdentifier"),
2337
+ filterByTk: ref("FlowSurfaceResolvableIdentifier")
2338
+ },
2339
+ additionalProperties: false
2340
+ },
2341
+ FlowSurfaceCatalogRequest: {
2342
+ type: "object",
2343
+ properties: {
2344
+ target: ref("FlowSurfaceWriteTarget")
2345
+ },
2346
+ additionalProperties: false
2347
+ },
2348
+ FlowSurfaceCatalogResponse: {
2349
+ type: "object",
2350
+ properties: {
2351
+ target: {
2352
+ allOf: [ref("FlowSurfaceResolvedTarget")],
2353
+ nullable: true
2354
+ },
2355
+ blocks: {
2356
+ type: "array",
2357
+ items: ref("FlowSurfaceCatalogItem")
2358
+ },
2359
+ fields: {
2360
+ type: "array",
2361
+ items: ref("FlowSurfaceCatalogItem")
2362
+ },
2363
+ actions: {
2364
+ type: "array",
2365
+ description: "Public block/form/filter-form/action-panel actions available under the resolved target.",
2366
+ items: ref("FlowSurfaceCatalogItem")
2367
+ },
2368
+ recordActions: {
2369
+ type: "array",
2370
+ description: "Public record/item-level actions exposed for record-capable targets such as table/details/list/gridCard.",
2371
+ items: ref("FlowSurfaceCatalogItem")
2372
+ },
2373
+ editableDomains: {
2374
+ type: "array",
2375
+ items: ref("FlowSurfaceNodeDomain")
2376
+ },
2377
+ configureOptions: ref("FlowSurfaceConfigureOptions"),
2378
+ settingsSchema: ANY_OBJECT_SCHEMA,
2379
+ settingsContract: {
2380
+ type: "object",
2381
+ properties: {
2382
+ props: ref("FlowSurfaceDomainContract"),
2383
+ decoratorProps: ref("FlowSurfaceDomainContract"),
2384
+ stepParams: ref("FlowSurfaceDomainContract"),
2385
+ flowRegistry: ref("FlowSurfaceDomainContract")
2386
+ },
2387
+ additionalProperties: false
2388
+ },
2389
+ eventCapabilities: ref("FlowSurfaceEventCapabilities"),
2390
+ layoutCapabilities: ref("FlowSurfaceLayoutCapabilities")
2391
+ },
2392
+ additionalProperties: false
2393
+ },
2394
+ FlowSurfaceContextVarInfo: {
2395
+ type: "object",
2396
+ properties: {
2397
+ title: {
2398
+ type: "string"
2399
+ },
2400
+ type: {
2401
+ type: "string"
2402
+ },
2403
+ interface: {
2404
+ type: "string"
2405
+ },
2406
+ description: {
2407
+ type: "string"
2408
+ },
2409
+ disabled: {
2410
+ type: "boolean"
2411
+ },
2412
+ disabledReason: {
2413
+ type: "string"
2414
+ },
2415
+ properties: {
2416
+ type: "object",
2417
+ additionalProperties: ref("FlowSurfaceContextVarInfo")
2418
+ }
2419
+ },
2420
+ additionalProperties: false
2421
+ },
2422
+ FlowSurfaceContextRequest: {
2423
+ type: "object",
2424
+ required: ["target"],
2425
+ properties: {
2426
+ target: ref("FlowSurfaceWriteTarget"),
2427
+ path: {
2428
+ type: "string",
2429
+ description: "Bare path only, for example 'record', 'popup.record' or 'item.parentItem.value'."
2430
+ },
2431
+ maxDepth: {
2432
+ type: "integer",
2433
+ minimum: 1
2434
+ }
2435
+ },
2436
+ additionalProperties: false
2437
+ },
2438
+ FlowSurfaceContextResponse: {
2439
+ type: "object",
2440
+ properties: {
2441
+ vars: {
2442
+ type: "object",
2443
+ additionalProperties: ref("FlowSurfaceContextVarInfo")
2444
+ }
2445
+ },
2446
+ additionalProperties: false
2447
+ },
2448
+ FlowSurfaceGetResponse: {
2449
+ type: "object",
2450
+ properties: {
2451
+ target: ref("FlowSurfaceReadTarget"),
2452
+ tree: ref("FlowSurfaceGetTreeNode"),
2453
+ nodeMap: ref("FlowSurfaceNodeMap"),
2454
+ pageRoute: ref("FlowSurfaceRouteMeta"),
2455
+ route: ref("FlowSurfaceRouteMeta")
2456
+ },
2457
+ additionalProperties: false
2458
+ },
2459
+ FlowSurfaceComposeLayoutCell: {
2460
+ oneOf: [
2461
+ {
2462
+ type: "string"
2463
+ },
2464
+ {
2465
+ type: "object",
2466
+ required: ["key"],
2467
+ properties: {
2468
+ key: {
2469
+ type: "string"
2470
+ },
2471
+ span: {
2472
+ type: "number"
2473
+ }
2474
+ },
2475
+ additionalProperties: false
2476
+ }
2477
+ ]
2478
+ },
2479
+ FlowSurfaceComposeLayout: {
2480
+ type: "object",
2481
+ properties: {
2482
+ rows: {
2483
+ type: "array",
2484
+ items: {
2485
+ type: "array",
2486
+ items: ref("FlowSurfaceComposeLayoutCell")
2487
+ }
2488
+ }
2489
+ },
2490
+ additionalProperties: false
2491
+ },
2492
+ FlowSurfaceComposeFieldSpec: {
2493
+ oneOf: [
2494
+ {
2495
+ type: "string"
2496
+ },
2497
+ {
2498
+ type: "object",
2499
+ required: ["fieldPath"],
2500
+ properties: {
2501
+ key: {
2502
+ type: "string"
2503
+ },
2504
+ fieldPath: {
2505
+ type: "string"
2506
+ },
2507
+ renderer: {
2508
+ type: "string",
2509
+ enum: ["js"],
2510
+ description: "Optional public renderer variant for a bound field."
2511
+ },
2512
+ associationPathName: {
2513
+ type: "string"
2514
+ },
2515
+ target: {
2516
+ type: "string",
2517
+ description: "Reference to another compose block key, typically used by filter-form fields."
2518
+ },
2519
+ settings: ANY_OBJECT_SCHEMA,
2520
+ popup: ref("FlowSurfaceComposeActionPopup")
2521
+ },
2522
+ additionalProperties: false
2523
+ },
2524
+ {
2525
+ type: "object",
2526
+ required: ["type"],
2527
+ properties: {
2528
+ key: {
2529
+ type: "string"
2530
+ },
2531
+ type: {
2532
+ type: "string",
2533
+ enum: ["jsColumn", "jsItem"],
2534
+ description: "Standalone synthetic public field capability. Does not accept fieldPath."
2535
+ },
2536
+ settings: ANY_OBJECT_SCHEMA
2537
+ },
2538
+ additionalProperties: false
2539
+ }
2540
+ ]
2541
+ },
2542
+ FlowSurfaceComposeActionPopup: {
2543
+ type: "object",
2544
+ properties: {
2545
+ mode: {
2546
+ type: "string",
2547
+ enum: ["append", "replace"]
2548
+ },
2549
+ blocks: {
2550
+ type: "array",
2551
+ items: ref("FlowSurfaceComposeBlockSpec")
2552
+ },
2553
+ layout: ref("FlowSurfaceComposeLayout")
2554
+ },
2555
+ additionalProperties: false
2556
+ },
2557
+ FlowSurfaceComposeActionSpec: {
2558
+ oneOf: [
2559
+ {
2560
+ type: "string"
2561
+ },
2562
+ {
2563
+ type: "object",
2564
+ required: ["type"],
2565
+ properties: {
2566
+ key: {
2567
+ type: "string"
2568
+ },
2569
+ type: {
2570
+ type: "string",
2571
+ enum: NON_RECORD_ACTION_TYPE_ENUM
2572
+ },
2573
+ settings: ANY_OBJECT_SCHEMA,
2574
+ popup: ref("FlowSurfaceComposeActionPopup")
2575
+ },
2576
+ additionalProperties: false
2577
+ }
2578
+ ]
2579
+ },
2580
+ FlowSurfaceComposeRecordActionSpec: {
2581
+ oneOf: [
2582
+ {
2583
+ type: "string"
2584
+ },
2585
+ {
2586
+ type: "object",
2587
+ required: ["type"],
2588
+ properties: {
2589
+ key: {
2590
+ type: "string"
2591
+ },
2592
+ type: {
2593
+ type: "string",
2594
+ enum: RECORD_ACTION_TYPE_ENUM
2595
+ },
2596
+ settings: ANY_OBJECT_SCHEMA,
2597
+ popup: ref("FlowSurfaceComposeActionPopup")
2598
+ },
2599
+ additionalProperties: false
2600
+ }
2601
+ ]
2602
+ },
2603
+ FlowSurfaceComposeBlockSpec: {
2604
+ type: "object",
2605
+ required: ["key", "type"],
2606
+ properties: {
2607
+ key: {
2608
+ type: "string"
2609
+ },
2610
+ type: {
2611
+ type: "string",
2612
+ enum: [
2613
+ "table",
2614
+ "createForm",
2615
+ "editForm",
2616
+ "details",
2617
+ "filterForm",
2618
+ "list",
2619
+ "gridCard",
2620
+ "markdown",
2621
+ "iframe",
2622
+ "chart",
2623
+ "actionPanel",
2624
+ "jsBlock"
2625
+ ]
2626
+ },
2627
+ resource: ref("FlowSurfaceBlockResourceInput"),
2628
+ settings: ANY_OBJECT_SCHEMA,
2629
+ fields: {
2630
+ type: "array",
2631
+ items: ref("FlowSurfaceComposeFieldSpec")
2632
+ },
2633
+ actions: {
2634
+ type: "array",
2635
+ description: "Block-level actions. For table/list/gridCard, prefer block-wide collection actions here.",
2636
+ items: ref("FlowSurfaceComposeActionSpec")
2637
+ },
2638
+ recordActions: {
2639
+ type: "array",
2640
+ description: "Public semantic group for record/item-level actions on record-capable blocks such as table/details/list/gridCard.",
2641
+ items: ref("FlowSurfaceComposeRecordActionSpec")
2642
+ }
2643
+ },
2644
+ additionalProperties: false
2645
+ },
2646
+ FlowSurfaceComposeRequest: {
2647
+ type: "object",
2648
+ required: ["target"],
2649
+ properties: {
2650
+ target: ref("FlowSurfaceWriteTarget"),
2651
+ mode: {
2652
+ type: "string",
2653
+ enum: ["append", "replace"],
2654
+ default: "append"
2655
+ },
2656
+ blocks: {
2657
+ type: "array",
2658
+ items: ref("FlowSurfaceComposeBlockSpec")
2659
+ },
2660
+ layout: ref("FlowSurfaceComposeLayout")
2661
+ },
2662
+ additionalProperties: false
2663
+ },
2664
+ FlowSurfaceComposeFieldResult: {
2665
+ type: "object",
2666
+ properties: {
2667
+ key: {
2668
+ type: "string"
2669
+ },
2670
+ fieldPath: {
2671
+ type: "string"
2672
+ },
2673
+ renderer: {
2674
+ type: "string",
2675
+ enum: ["js"]
2676
+ },
2677
+ type: {
2678
+ type: "string",
2679
+ enum: ["jsColumn", "jsItem"]
2680
+ },
2681
+ uid: {
2682
+ type: "string"
2683
+ },
2684
+ associationPathName: {
2685
+ type: "string",
2686
+ nullable: true
2687
+ },
2688
+ target: {
2689
+ type: "string"
2690
+ },
2691
+ wrapperUid: {
2692
+ type: "string"
2693
+ },
2694
+ fieldUid: {
2695
+ type: "string"
2696
+ },
2697
+ innerFieldUid: {
2698
+ type: "string"
2699
+ },
2700
+ popupPageUid: {
2701
+ type: "string"
2702
+ },
2703
+ popupTabUid: {
2704
+ type: "string"
2705
+ },
2706
+ popupGridUid: {
2707
+ type: "string"
2708
+ }
2709
+ },
2710
+ additionalProperties: false
2711
+ },
2712
+ FlowSurfaceComposeActionResult: {
2713
+ type: "object",
2714
+ properties: {
2715
+ key: {
2716
+ type: "string"
2717
+ },
2718
+ type: {
2719
+ type: "string",
2720
+ enum: ACTION_TYPE_ENUM
2721
+ },
2722
+ uid: {
2723
+ type: "string"
2724
+ },
2725
+ parentUid: {
2726
+ type: "string"
2727
+ },
2728
+ assignFormUid: {
2729
+ type: "string"
2730
+ },
2731
+ assignFormGridUid: {
2732
+ type: "string"
2733
+ },
2734
+ popupPageUid: {
2735
+ type: "string"
2736
+ },
2737
+ popupTabUid: {
2738
+ type: "string"
2739
+ },
2740
+ popupGridUid: {
2741
+ type: "string"
2742
+ }
2743
+ },
2744
+ additionalProperties: false
2745
+ },
2746
+ FlowSurfaceComposeBlockResult: {
2747
+ type: "object",
2748
+ properties: {
2749
+ key: {
2750
+ type: "string"
2751
+ },
2752
+ type: {
2753
+ type: "string",
2754
+ enum: [
2755
+ "table",
2756
+ "createForm",
2757
+ "editForm",
2758
+ "details",
2759
+ "filterForm",
2760
+ "list",
2761
+ "gridCard",
2762
+ "markdown",
2763
+ "iframe",
2764
+ "chart",
2765
+ "actionPanel",
2766
+ "jsBlock"
2767
+ ]
2768
+ },
2769
+ uid: {
2770
+ type: "string"
2771
+ },
2772
+ gridUid: {
2773
+ type: "string"
2774
+ },
2775
+ itemUid: {
2776
+ type: "string"
2777
+ },
2778
+ itemGridUid: {
2779
+ type: "string"
2780
+ },
2781
+ actionsColumnUid: {
2782
+ type: "string"
2783
+ },
2784
+ fields: {
2785
+ type: "array",
2786
+ items: ref("FlowSurfaceComposeFieldResult")
2787
+ },
2788
+ actions: {
2789
+ type: "array",
2790
+ items: ref("FlowSurfaceComposeActionResult")
2791
+ },
2792
+ recordActions: {
2793
+ type: "array",
2794
+ description: "Returned record/item-level action results for record-capable public compose semantics such as table/details/list/gridCard.",
2795
+ items: ref("FlowSurfaceComposeActionResult")
2796
+ }
2797
+ },
2798
+ additionalProperties: false
2799
+ },
2800
+ FlowSurfaceComposeResult: {
2801
+ type: "object",
2802
+ properties: {
2803
+ target: ref("FlowSurfaceWriteTarget"),
2804
+ mode: {
2805
+ type: "string",
2806
+ enum: ["append", "replace"]
2807
+ },
2808
+ keyToUid: ref("FlowSurfaceClientKeyMap"),
2809
+ blocks: {
2810
+ type: "array",
2811
+ items: ref("FlowSurfaceComposeBlockResult")
2812
+ },
2813
+ layout: ref("FlowSurfaceSetLayoutResult")
2814
+ },
2815
+ additionalProperties: false
2816
+ },
2817
+ FlowSurfaceConfigureRequest: {
2818
+ type: "object",
2819
+ required: ["target", "changes"],
2820
+ properties: {
2821
+ target: ref("FlowSurfaceWriteTarget"),
2822
+ changes: ANY_OBJECT_SCHEMA
2823
+ },
2824
+ additionalProperties: false
2825
+ },
2826
+ FlowSurfaceConfigureResult: {
2827
+ type: "object",
2828
+ properties: {
2829
+ uid: {
2830
+ type: "string"
2831
+ },
2832
+ updated: {
2833
+ type: "array",
2834
+ items: {
2835
+ type: "string"
2836
+ }
2837
+ },
2838
+ popupPageUid: {
2839
+ type: "string"
2840
+ },
2841
+ popupTabUid: {
2842
+ type: "string"
2843
+ },
2844
+ popupGridUid: {
2845
+ type: "string"
2846
+ }
2847
+ },
2848
+ additionalProperties: false
2849
+ },
2850
+ FlowSurfaceCreateMenuRequest: {
2851
+ type: "object",
2852
+ required: ["title"],
2853
+ properties: {
2854
+ title: {
2855
+ type: "string"
2856
+ },
2857
+ type: {
2858
+ type: "string",
2859
+ enum: ["group", "item"],
2860
+ default: "item"
2861
+ },
2862
+ icon: {
2863
+ type: "string"
2864
+ },
2865
+ tooltip: {
2866
+ type: "string"
2867
+ },
2868
+ hideInMenu: {
2869
+ type: "boolean"
2870
+ },
2871
+ parentMenuRouteId: STRING_OR_INTEGER_SCHEMA
2872
+ },
2873
+ additionalProperties: false
2874
+ },
2875
+ FlowSurfaceCreateMenuResult: {
2876
+ type: "object",
2877
+ properties: {
2878
+ routeId: STRING_OR_INTEGER_SCHEMA,
2879
+ type: {
2880
+ type: "string",
2881
+ enum: ["group", "flowPage"]
2882
+ },
2883
+ parentMenuRouteId: {
2884
+ ...STRING_OR_INTEGER_SCHEMA,
2885
+ nullable: true
2886
+ },
2887
+ pageSchemaUid: {
2888
+ type: "string"
2889
+ },
2890
+ pageUid: {
2891
+ type: "string"
2892
+ },
2893
+ tabSchemaUid: {
2894
+ type: "string"
2895
+ },
2896
+ tabRouteId: STRING_OR_INTEGER_SCHEMA,
2897
+ tabSchemaName: {
2898
+ type: "string"
2899
+ }
2900
+ },
2901
+ additionalProperties: false
2902
+ },
2903
+ FlowSurfaceUpdateMenuRequest: {
2904
+ type: "object",
2905
+ required: ["menuRouteId"],
2906
+ properties: {
2907
+ menuRouteId: STRING_OR_INTEGER_SCHEMA,
2908
+ title: {
2909
+ type: "string"
2910
+ },
2911
+ icon: {
2912
+ type: "string",
2913
+ nullable: true
2914
+ },
2915
+ tooltip: {
2916
+ type: "string",
2917
+ nullable: true
2918
+ },
2919
+ hideInMenu: {
2920
+ type: "boolean"
2921
+ },
2922
+ parentMenuRouteId: {
2923
+ ...STRING_OR_INTEGER_SCHEMA,
2924
+ nullable: true
2925
+ }
2926
+ },
2927
+ additionalProperties: false
2928
+ },
2929
+ FlowSurfaceUpdateMenuResult: {
2930
+ type: "object",
2931
+ properties: {
2932
+ routeId: STRING_OR_INTEGER_SCHEMA,
2933
+ type: {
2934
+ type: "string",
2935
+ enum: ["group", "flowPage"]
2936
+ },
2937
+ parentMenuRouteId: {
2938
+ ...STRING_OR_INTEGER_SCHEMA,
2939
+ nullable: true
2940
+ }
2941
+ },
2942
+ additionalProperties: false
2943
+ },
2944
+ FlowSurfaceCreatePageRequest: {
2945
+ type: "object",
2946
+ properties: {
2947
+ menuRouteId: STRING_OR_INTEGER_SCHEMA,
2948
+ pageSchemaUid: {
2949
+ type: "string"
2950
+ },
2951
+ tabSchemaUid: {
2952
+ type: "string"
2953
+ },
2954
+ tabSchemaName: {
2955
+ type: "string"
2956
+ },
2957
+ pageUid: {
2958
+ type: "string"
2959
+ },
2960
+ title: {
2961
+ type: "string"
2962
+ },
2963
+ tabTitle: {
2964
+ type: "string"
2965
+ },
2966
+ icon: {
2967
+ type: "string"
2968
+ },
2969
+ tabIcon: {
2970
+ type: "string"
2971
+ },
2972
+ enableTabs: {
2973
+ type: "boolean"
2974
+ },
2975
+ enableHeader: {
2976
+ type: "boolean"
2977
+ },
2978
+ displayTitle: {
2979
+ type: "boolean"
2980
+ },
2981
+ documentTitle: {
2982
+ type: "string"
2983
+ },
2984
+ tabDocumentTitle: {
2985
+ type: "string"
2986
+ },
2987
+ tabFlowRegistry: ANY_OBJECT_SCHEMA,
2988
+ routeOptions: ANY_OBJECT_SCHEMA
2989
+ },
2990
+ additionalProperties: false
2991
+ },
2992
+ FlowSurfaceCreatePageResult: {
2993
+ type: "object",
2994
+ properties: {
2995
+ routeId: STRING_OR_INTEGER_SCHEMA,
2996
+ parentMenuRouteId: {
2997
+ ...STRING_OR_INTEGER_SCHEMA,
2998
+ nullable: true
2999
+ },
3000
+ pageSchemaUid: {
3001
+ type: "string"
3002
+ },
3003
+ pageUid: {
3004
+ type: "string"
3005
+ },
3006
+ tabSchemaUid: {
3007
+ type: "string"
3008
+ },
3009
+ tabRouteId: STRING_OR_INTEGER_SCHEMA,
3010
+ tabSchemaName: {
3011
+ type: "string"
3012
+ },
3013
+ gridUid: {
3014
+ type: "string"
3015
+ }
3016
+ },
3017
+ additionalProperties: false
3018
+ },
3019
+ FlowSurfaceDestroyPageRequest: {
3020
+ type: "object",
3021
+ required: ["uid"],
3022
+ properties: {
3023
+ uid: {
3024
+ type: "string"
3025
+ }
3026
+ },
3027
+ additionalProperties: false
3028
+ },
3029
+ FlowSurfaceDestroyPageResult: {
3030
+ type: "object",
3031
+ properties: {
3032
+ uid: {
3033
+ type: "string"
3034
+ }
3035
+ },
3036
+ additionalProperties: false
3037
+ },
3038
+ FlowSurfaceAddTabRequest: {
3039
+ type: "object",
3040
+ required: ["target"],
3041
+ properties: {
3042
+ target: ref("FlowSurfaceWriteTarget"),
3043
+ tabSchemaUid: {
3044
+ type: "string"
3045
+ },
3046
+ tabSchemaName: {
3047
+ type: "string"
3048
+ },
3049
+ title: {
3050
+ type: "string"
3051
+ },
3052
+ icon: {
3053
+ type: "string"
3054
+ },
3055
+ documentTitle: {
3056
+ type: "string"
3057
+ },
3058
+ flowRegistry: ANY_OBJECT_SCHEMA
3059
+ },
3060
+ additionalProperties: false
3061
+ },
3062
+ FlowSurfaceAddTabResult: {
3063
+ type: "object",
3064
+ properties: {
3065
+ pageUid: {
3066
+ type: "string"
3067
+ },
3068
+ tabSchemaUid: {
3069
+ type: "string"
3070
+ },
3071
+ tabRouteId: STRING_OR_INTEGER_SCHEMA,
3072
+ tabSchemaName: {
3073
+ type: "string"
3074
+ },
3075
+ gridUid: {
3076
+ type: "string"
3077
+ }
3078
+ },
3079
+ additionalProperties: false
3080
+ },
3081
+ FlowSurfaceUpdateTabRequest: {
3082
+ type: "object",
3083
+ required: ["target"],
3084
+ properties: {
3085
+ target: ref("FlowSurfaceWriteTarget"),
3086
+ title: {
3087
+ type: "string"
3088
+ },
3089
+ icon: {
3090
+ type: "string"
3091
+ },
3092
+ documentTitle: {
3093
+ type: "string"
3094
+ },
3095
+ flowRegistry: ANY_OBJECT_SCHEMA
3096
+ },
3097
+ additionalProperties: false
3098
+ },
3099
+ FlowSurfaceUpdateTabResult: {
3100
+ type: "object",
3101
+ properties: {
3102
+ uid: {
3103
+ type: "string"
3104
+ },
3105
+ routeId: STRING_OR_INTEGER_SCHEMA,
3106
+ title: {
3107
+ type: "string"
3108
+ },
3109
+ icon: {
3110
+ type: "string"
3111
+ }
3112
+ },
3113
+ additionalProperties: false
3114
+ },
3115
+ FlowSurfaceMoveTabRequest: {
3116
+ type: "object",
3117
+ required: ["sourceUid", "targetUid"],
3118
+ properties: {
3119
+ sourceUid: {
3120
+ type: "string"
3121
+ },
3122
+ targetUid: {
3123
+ type: "string"
3124
+ },
3125
+ position: {
3126
+ type: "string",
3127
+ enum: ["before", "after"]
3128
+ }
3129
+ },
3130
+ additionalProperties: false
3131
+ },
3132
+ FlowSurfaceMoveTabResult: {
3133
+ type: "object",
3134
+ properties: {
3135
+ sourceUid: {
3136
+ type: "string"
3137
+ },
3138
+ targetUid: {
3139
+ type: "string"
3140
+ },
3141
+ position: {
3142
+ type: "string",
3143
+ enum: ["before", "after"]
3144
+ }
3145
+ },
3146
+ additionalProperties: false
3147
+ },
3148
+ FlowSurfaceRemoveTabRequest: {
3149
+ type: "object",
3150
+ required: ["uid"],
3151
+ properties: {
3152
+ uid: {
3153
+ type: "string"
3154
+ }
3155
+ },
3156
+ additionalProperties: false
3157
+ },
3158
+ FlowSurfaceRemoveTabResult: {
3159
+ type: "object",
3160
+ properties: {
3161
+ uid: {
3162
+ type: "string"
3163
+ }
3164
+ },
3165
+ additionalProperties: false
3166
+ },
3167
+ FlowSurfaceAddPopupTabRequest: {
3168
+ type: "object",
3169
+ required: ["target"],
3170
+ properties: {
3171
+ target: ref("FlowSurfaceWriteTarget"),
3172
+ title: {
3173
+ type: "string"
3174
+ },
3175
+ icon: {
3176
+ type: "string"
3177
+ },
3178
+ documentTitle: {
3179
+ type: "string"
3180
+ },
3181
+ flowRegistry: ANY_OBJECT_SCHEMA
3182
+ },
3183
+ additionalProperties: false
3184
+ },
3185
+ FlowSurfaceAddPopupTabResult: {
3186
+ type: "object",
3187
+ properties: {
3188
+ popupPageUid: {
3189
+ type: "string"
3190
+ },
3191
+ popupTabUid: {
3192
+ type: "string"
3193
+ },
3194
+ popupGridUid: {
3195
+ type: "string"
3196
+ }
3197
+ },
3198
+ additionalProperties: false
3199
+ },
3200
+ FlowSurfaceUpdatePopupTabRequest: {
3201
+ type: "object",
3202
+ required: ["target"],
3203
+ properties: {
3204
+ target: ref("FlowSurfaceWriteTarget"),
3205
+ title: {
3206
+ type: "string"
3207
+ },
3208
+ icon: {
3209
+ type: "string"
3210
+ },
3211
+ documentTitle: {
3212
+ type: "string"
3213
+ },
3214
+ flowRegistry: ANY_OBJECT_SCHEMA
3215
+ },
3216
+ additionalProperties: false
3217
+ },
3218
+ FlowSurfaceUpdatePopupTabResult: {
3219
+ type: "object",
3220
+ properties: {
3221
+ uid: {
3222
+ type: "string"
3223
+ },
3224
+ title: {
3225
+ type: "string"
3226
+ },
3227
+ icon: {
3228
+ type: "string"
3229
+ }
3230
+ },
3231
+ additionalProperties: false
3232
+ },
3233
+ FlowSurfaceMovePopupTabRequest: {
3234
+ type: "object",
3235
+ required: ["sourceUid", "targetUid"],
3236
+ properties: {
3237
+ sourceUid: {
3238
+ type: "string"
3239
+ },
3240
+ targetUid: {
3241
+ type: "string"
3242
+ },
3243
+ position: {
3244
+ type: "string",
3245
+ enum: ["before", "after"]
3246
+ }
3247
+ },
3248
+ additionalProperties: false
3249
+ },
3250
+ FlowSurfaceMovePopupTabResult: {
3251
+ type: "object",
3252
+ properties: {
3253
+ sourceUid: {
3254
+ type: "string"
3255
+ },
3256
+ targetUid: {
3257
+ type: "string"
3258
+ },
3259
+ position: {
3260
+ type: "string",
3261
+ enum: ["before", "after"]
3262
+ }
3263
+ },
3264
+ additionalProperties: false
3265
+ },
3266
+ FlowSurfaceRemovePopupTabRequest: {
3267
+ type: "object",
3268
+ required: ["target"],
3269
+ properties: {
3270
+ target: ref("FlowSurfaceWriteTarget")
3271
+ },
3272
+ additionalProperties: false
3273
+ },
3274
+ FlowSurfaceRemovePopupTabResult: {
3275
+ type: "object",
3276
+ properties: {
3277
+ uid: {
3278
+ type: "string"
3279
+ }
3280
+ },
3281
+ additionalProperties: false
3282
+ },
3283
+ FlowSurfaceAddBlockRequest: {
3284
+ type: "object",
3285
+ required: ["target"],
3286
+ properties: {
3287
+ target: ref("FlowSurfaceWriteTarget"),
3288
+ type: {
3289
+ type: "string",
3290
+ enum: [
3291
+ "table",
3292
+ "createForm",
3293
+ "editForm",
3294
+ "details",
3295
+ "filterForm",
3296
+ "list",
3297
+ "gridCard",
3298
+ "markdown",
3299
+ "iframe",
3300
+ "chart",
3301
+ "actionPanel",
3302
+ "jsBlock"
3303
+ ]
3304
+ },
3305
+ use: {
3306
+ type: "string"
3307
+ },
3308
+ resource: ref("FlowSurfaceBlockResourceInput"),
3309
+ resourceInit: ref("FlowSurfaceResourceInit"),
3310
+ settings: ANY_OBJECT_SCHEMA
3311
+ },
3312
+ additionalProperties: false
3313
+ },
3314
+ FlowSurfaceAddBlockResult: {
3315
+ type: "object",
3316
+ properties: {
3317
+ uid: {
3318
+ type: "string"
3319
+ },
3320
+ parentUid: {
3321
+ type: "string"
3322
+ },
3323
+ subKey: {
3324
+ type: "string"
3325
+ },
3326
+ gridUid: {
3327
+ type: "string"
3328
+ },
3329
+ blockGridUid: {
3330
+ type: "string"
3331
+ },
3332
+ itemUid: {
3333
+ type: "string"
3334
+ },
3335
+ itemGridUid: {
3336
+ type: "string"
3337
+ },
3338
+ actionsColumnUid: {
3339
+ type: "string"
3340
+ },
3341
+ pageUid: {
3342
+ type: "string"
3343
+ },
3344
+ tabUid: {
3345
+ type: "string"
3346
+ },
3347
+ popupPageUid: {
3348
+ type: "string"
3349
+ },
3350
+ popupTabUid: {
3351
+ type: "string"
3352
+ },
3353
+ popupGridUid: {
3354
+ type: "string"
3355
+ }
3356
+ },
3357
+ additionalProperties: false
3358
+ },
3359
+ FlowSurfaceAddFieldRequest: {
3360
+ type: "object",
3361
+ required: ["target"],
3362
+ properties: {
3363
+ target: ref("FlowSurfaceWriteTarget"),
3364
+ fieldPath: {
3365
+ type: "string",
3366
+ description: "Required for bound fields. Omit when using synthetic standalone types such as jsColumn/jsItem."
3367
+ },
3368
+ renderer: {
3369
+ type: "string",
3370
+ enum: ["js"],
3371
+ description: "Public JS renderer variant for a bound field."
3372
+ },
3373
+ type: {
3374
+ type: "string",
3375
+ enum: ["jsColumn", "jsItem"],
3376
+ description: "Public standalone field capability. Does not accept fieldPath."
3377
+ },
3378
+ associationPathName: {
3379
+ type: "string"
3380
+ },
3381
+ dataSourceKey: {
3382
+ type: "string"
3383
+ },
3384
+ collectionName: {
3385
+ type: "string"
3386
+ },
3387
+ fieldUse: {
3388
+ type: "string",
3389
+ description: "Optional compatibility check. The server infers the actual field use from catalog capabilities."
3390
+ },
3391
+ defaultTargetUid: {
3392
+ type: "string"
3393
+ },
3394
+ targetBlockUid: {
3395
+ type: "string"
3396
+ },
3397
+ targetUid: {
3398
+ type: "string",
3399
+ description: "Legacy alias used by filter-form target selection. This is not the same field as `target.uid`."
3400
+ },
3401
+ settings: ANY_OBJECT_SCHEMA,
3402
+ popup: ref("FlowSurfaceComposeActionPopup")
3403
+ },
3404
+ additionalProperties: false
3405
+ },
3406
+ FlowSurfaceAddFieldResult: {
3407
+ type: "object",
3408
+ properties: {
3409
+ uid: {
3410
+ type: "string"
3411
+ },
3412
+ wrapperUid: {
3413
+ type: "string"
3414
+ },
3415
+ fieldUid: {
3416
+ type: "string"
3417
+ },
3418
+ innerFieldUid: {
3419
+ type: "string"
3420
+ },
3421
+ parentUid: {
3422
+ type: "string"
3423
+ },
3424
+ subKey: {
3425
+ type: "string"
3426
+ },
3427
+ fieldUse: {
3428
+ type: "string"
3429
+ },
3430
+ renderer: {
3431
+ type: "string",
3432
+ enum: ["js"]
3433
+ },
3434
+ type: {
3435
+ type: "string",
3436
+ enum: ["jsColumn", "jsItem"]
3437
+ },
3438
+ defaultTargetUid: {
3439
+ type: "string"
3440
+ },
3441
+ associationPathName: {
3442
+ type: "string",
3443
+ nullable: true
3444
+ },
3445
+ fieldPath: {
3446
+ type: "string"
3447
+ },
3448
+ popupPageUid: {
3449
+ type: "string"
3450
+ },
3451
+ popupTabUid: {
3452
+ type: "string"
3453
+ },
3454
+ popupGridUid: {
3455
+ type: "string"
3456
+ }
3457
+ },
3458
+ additionalProperties: false
3459
+ },
3460
+ FlowSurfaceAddActionRequest: {
3461
+ type: "object",
3462
+ required: ["target"],
3463
+ properties: {
3464
+ target: ref("FlowSurfaceWriteTarget"),
3465
+ type: {
3466
+ type: "string",
3467
+ enum: NON_RECORD_ACTION_TYPE_ENUM
3468
+ },
3469
+ use: {
3470
+ type: "string"
3471
+ },
3472
+ resourceInit: ref("FlowSurfaceResourceInit"),
3473
+ settings: ANY_OBJECT_SCHEMA,
3474
+ popup: ref("FlowSurfaceComposeActionPopup")
3475
+ },
3476
+ additionalProperties: false
3477
+ },
3478
+ FlowSurfaceAddActionResult: {
3479
+ type: "object",
3480
+ properties: {
3481
+ uid: {
3482
+ type: "string"
3483
+ },
3484
+ parentUid: {
3485
+ type: "string"
3486
+ },
3487
+ subKey: {
3488
+ type: "string"
3489
+ },
3490
+ assignFormUid: {
3491
+ type: "string"
3492
+ },
3493
+ assignFormGridUid: {
3494
+ type: "string"
3495
+ },
3496
+ popupPageUid: {
3497
+ type: "string"
3498
+ },
3499
+ popupTabUid: {
3500
+ type: "string"
3501
+ },
3502
+ popupGridUid: {
3503
+ type: "string"
3504
+ }
3505
+ },
3506
+ additionalProperties: false
3507
+ },
3508
+ FlowSurfaceAddRecordActionRequest: {
3509
+ type: "object",
3510
+ required: ["target"],
3511
+ properties: {
3512
+ target: ref("FlowSurfaceWriteTarget"),
3513
+ type: {
3514
+ type: "string",
3515
+ enum: RECORD_ACTION_TYPE_ENUM
3516
+ },
3517
+ use: {
3518
+ type: "string"
3519
+ },
3520
+ resourceInit: ref("FlowSurfaceResourceInit"),
3521
+ settings: ANY_OBJECT_SCHEMA,
3522
+ popup: ref("FlowSurfaceComposeActionPopup")
3523
+ },
3524
+ additionalProperties: false
3525
+ },
3526
+ FlowSurfaceAddRecordActionResult: {
3527
+ allOf: [ref("FlowSurfaceAddActionResult")]
3528
+ },
3529
+ FlowSurfaceBatchItemError: {
3530
+ type: "object",
3531
+ properties: {
3532
+ code: {
3533
+ type: "string"
3534
+ },
3535
+ message: {
3536
+ type: "string"
3537
+ },
3538
+ status: {
3539
+ type: "integer"
3540
+ },
3541
+ type: {
3542
+ type: "string",
3543
+ enum: ["bad_request", "forbidden", "conflict", "internal_error"]
3544
+ }
3545
+ },
3546
+ required: ["message", "type", "code", "status"],
3547
+ additionalProperties: false
3548
+ },
3549
+ FlowSurfaceAddBlockItem: {
3550
+ type: "object",
3551
+ properties: {
3552
+ key: {
3553
+ type: "string"
3554
+ },
3555
+ type: {
3556
+ type: "string",
3557
+ enum: [
3558
+ "table",
3559
+ "createForm",
3560
+ "editForm",
3561
+ "details",
3562
+ "filterForm",
3563
+ "list",
3564
+ "gridCard",
3565
+ "markdown",
3566
+ "iframe",
3567
+ "chart",
3568
+ "actionPanel",
3569
+ "jsBlock"
3570
+ ]
3571
+ },
3572
+ use: {
3573
+ type: "string"
3574
+ },
3575
+ resource: ref("FlowSurfaceBlockResourceInput"),
3576
+ resourceInit: ref("FlowSurfaceResourceInit"),
3577
+ settings: ANY_OBJECT_SCHEMA
3578
+ },
3579
+ additionalProperties: false
3580
+ },
3581
+ FlowSurfaceAddFieldItem: {
3582
+ type: "object",
3583
+ properties: {
3584
+ key: {
3585
+ type: "string"
3586
+ },
3587
+ fieldPath: {
3588
+ type: "string"
3589
+ },
3590
+ renderer: {
3591
+ type: "string",
3592
+ enum: ["js"]
3593
+ },
3594
+ type: {
3595
+ type: "string",
3596
+ enum: ["jsColumn", "jsItem"]
3597
+ },
3598
+ associationPathName: {
3599
+ type: "string"
3600
+ },
3601
+ dataSourceKey: {
3602
+ type: "string"
3603
+ },
3604
+ collectionName: {
3605
+ type: "string"
3606
+ },
3607
+ fieldUse: {
3608
+ type: "string"
3609
+ },
3610
+ defaultTargetUid: {
3611
+ type: "string"
3612
+ },
3613
+ targetBlockUid: {
3614
+ type: "string"
3615
+ },
3616
+ targetUid: {
3617
+ type: "string"
3618
+ },
3619
+ settings: ANY_OBJECT_SCHEMA,
3620
+ popup: ref("FlowSurfaceComposeActionPopup")
3621
+ },
3622
+ additionalProperties: false
3623
+ },
3624
+ FlowSurfaceAddActionItem: {
3625
+ type: "object",
3626
+ properties: {
3627
+ key: {
3628
+ type: "string"
3629
+ },
3630
+ type: {
3631
+ type: "string",
3632
+ enum: NON_RECORD_ACTION_TYPE_ENUM
3633
+ },
3634
+ use: {
3635
+ type: "string"
3636
+ },
3637
+ resourceInit: ref("FlowSurfaceResourceInit"),
3638
+ settings: ANY_OBJECT_SCHEMA,
3639
+ popup: ref("FlowSurfaceComposeActionPopup")
3640
+ },
3641
+ additionalProperties: false
3642
+ },
3643
+ FlowSurfaceAddRecordActionItem: {
3644
+ type: "object",
3645
+ properties: {
3646
+ key: {
3647
+ type: "string"
3648
+ },
3649
+ type: {
3650
+ type: "string",
3651
+ enum: RECORD_ACTION_TYPE_ENUM
3652
+ },
3653
+ use: {
3654
+ type: "string"
3655
+ },
3656
+ resourceInit: ref("FlowSurfaceResourceInit"),
3657
+ settings: ANY_OBJECT_SCHEMA,
3658
+ popup: ref("FlowSurfaceComposeActionPopup")
3659
+ },
3660
+ additionalProperties: false
3661
+ },
3662
+ FlowSurfaceAddBlocksRequest: {
3663
+ type: "object",
3664
+ required: ["target", "blocks"],
3665
+ properties: {
3666
+ target: ref("FlowSurfaceWriteTarget"),
3667
+ blocks: {
3668
+ type: "array",
3669
+ items: ref("FlowSurfaceAddBlockItem")
3670
+ }
3671
+ },
3672
+ additionalProperties: false
3673
+ },
3674
+ FlowSurfaceAddFieldsRequest: {
3675
+ type: "object",
3676
+ required: ["target", "fields"],
3677
+ properties: {
3678
+ target: ref("FlowSurfaceWriteTarget"),
3679
+ fields: {
3680
+ type: "array",
3681
+ items: ref("FlowSurfaceAddFieldItem")
3682
+ }
3683
+ },
3684
+ additionalProperties: false
3685
+ },
3686
+ FlowSurfaceAddActionsRequest: {
3687
+ type: "object",
3688
+ required: ["target", "actions"],
3689
+ properties: {
3690
+ target: ref("FlowSurfaceWriteTarget"),
3691
+ actions: {
3692
+ type: "array",
3693
+ items: ref("FlowSurfaceAddActionItem")
3694
+ }
3695
+ },
3696
+ additionalProperties: false
3697
+ },
3698
+ FlowSurfaceAddRecordActionsRequest: {
3699
+ type: "object",
3700
+ required: ["target", "recordActions"],
3701
+ properties: {
3702
+ target: ref("FlowSurfaceWriteTarget"),
3703
+ recordActions: {
3704
+ type: "array",
3705
+ items: ref("FlowSurfaceAddRecordActionItem")
3706
+ }
3707
+ },
3708
+ additionalProperties: false
3709
+ },
3710
+ FlowSurfaceAddBlocksItemResult: {
3711
+ type: "object",
3712
+ properties: {
3713
+ index: {
3714
+ type: "integer"
3715
+ },
3716
+ key: {
3717
+ type: "string"
3718
+ },
3719
+ ok: {
3720
+ type: "boolean"
3721
+ },
3722
+ result: ref("FlowSurfaceAddBlockResult"),
3723
+ error: ref("FlowSurfaceBatchItemError")
3724
+ },
3725
+ required: ["index", "ok"],
3726
+ additionalProperties: false
3727
+ },
3728
+ FlowSurfaceAddFieldsItemResult: {
3729
+ type: "object",
3730
+ properties: {
3731
+ index: {
3732
+ type: "integer"
3733
+ },
3734
+ key: {
3735
+ type: "string"
3736
+ },
3737
+ ok: {
3738
+ type: "boolean"
3739
+ },
3740
+ result: ref("FlowSurfaceAddFieldResult"),
3741
+ error: ref("FlowSurfaceBatchItemError")
3742
+ },
3743
+ required: ["index", "ok"],
3744
+ additionalProperties: false
3745
+ },
3746
+ FlowSurfaceAddActionsItemResult: {
3747
+ type: "object",
3748
+ properties: {
3749
+ index: {
3750
+ type: "integer"
3751
+ },
3752
+ key: {
3753
+ type: "string"
3754
+ },
3755
+ ok: {
3756
+ type: "boolean"
3757
+ },
3758
+ result: ref("FlowSurfaceAddActionResult"),
3759
+ error: ref("FlowSurfaceBatchItemError")
3760
+ },
3761
+ required: ["index", "ok"],
3762
+ additionalProperties: false
3763
+ },
3764
+ FlowSurfaceAddRecordActionsItemResult: {
3765
+ type: "object",
3766
+ properties: {
3767
+ index: {
3768
+ type: "integer"
3769
+ },
3770
+ key: {
3771
+ type: "string"
3772
+ },
3773
+ ok: {
3774
+ type: "boolean"
3775
+ },
3776
+ result: ref("FlowSurfaceAddRecordActionResult"),
3777
+ error: ref("FlowSurfaceBatchItemError")
3778
+ },
3779
+ required: ["index", "ok"],
3780
+ additionalProperties: false
3781
+ },
3782
+ FlowSurfaceAddBlocksResult: {
3783
+ type: "object",
3784
+ properties: {
3785
+ blocks: {
3786
+ type: "array",
3787
+ items: ref("FlowSurfaceAddBlocksItemResult")
3788
+ },
3789
+ successCount: {
3790
+ type: "integer"
3791
+ },
3792
+ errorCount: {
3793
+ type: "integer"
3794
+ }
3795
+ },
3796
+ additionalProperties: false
3797
+ },
3798
+ FlowSurfaceAddFieldsResult: {
3799
+ type: "object",
3800
+ properties: {
3801
+ fields: {
3802
+ type: "array",
3803
+ items: ref("FlowSurfaceAddFieldsItemResult")
3804
+ },
3805
+ successCount: {
3806
+ type: "integer"
3807
+ },
3808
+ errorCount: {
3809
+ type: "integer"
3810
+ }
3811
+ },
3812
+ additionalProperties: false
3813
+ },
3814
+ FlowSurfaceAddActionsResult: {
3815
+ type: "object",
3816
+ properties: {
3817
+ actions: {
3818
+ type: "array",
3819
+ items: ref("FlowSurfaceAddActionsItemResult")
3820
+ },
3821
+ successCount: {
3822
+ type: "integer"
3823
+ },
3824
+ errorCount: {
3825
+ type: "integer"
3826
+ }
3827
+ },
3828
+ additionalProperties: false
3829
+ },
3830
+ FlowSurfaceAddRecordActionsResult: {
3831
+ type: "object",
3832
+ properties: {
3833
+ recordActions: {
3834
+ type: "array",
3835
+ items: ref("FlowSurfaceAddRecordActionsItemResult")
3836
+ },
3837
+ successCount: {
3838
+ type: "integer"
3839
+ },
3840
+ errorCount: {
3841
+ type: "integer"
3842
+ }
3843
+ },
3844
+ additionalProperties: false
3845
+ },
3846
+ FlowSurfaceUpdateSettingsRequest: {
3847
+ type: "object",
3848
+ required: ["target"],
3849
+ properties: {
3850
+ target: ref("FlowSurfaceWriteTarget"),
3851
+ props: ANY_OBJECT_SCHEMA,
3852
+ decoratorProps: ANY_OBJECT_SCHEMA,
3853
+ stepParams: ANY_OBJECT_SCHEMA,
3854
+ flowRegistry: ANY_OBJECT_SCHEMA
3855
+ },
3856
+ additionalProperties: false
3857
+ },
3858
+ FlowSurfaceUpdateSettingsResult: {
3859
+ type: "object",
3860
+ properties: {
3861
+ uid: {
3862
+ type: "string"
3863
+ },
3864
+ updated: {
3865
+ type: "array",
3866
+ items: {
3867
+ type: "string"
3868
+ }
3869
+ }
3870
+ },
3871
+ additionalProperties: false
3872
+ },
3873
+ FlowSurfaceSetEventFlowsRequest: {
3874
+ type: "object",
3875
+ required: ["target"],
3876
+ properties: {
3877
+ target: ref("FlowSurfaceWriteTarget"),
3878
+ flowRegistry: ANY_OBJECT_SCHEMA,
3879
+ flows: ANY_OBJECT_SCHEMA
3880
+ },
3881
+ additionalProperties: false
3882
+ },
3883
+ FlowSurfaceSetEventFlowsResult: {
3884
+ type: "object",
3885
+ properties: {
3886
+ uid: {
3887
+ type: "string"
3888
+ },
3889
+ flowRegistry: ANY_OBJECT_SCHEMA
3890
+ },
3891
+ additionalProperties: false
3892
+ },
3893
+ FlowSurfaceSetLayoutRequest: {
3894
+ type: "object",
3895
+ required: ["target"],
3896
+ properties: {
3897
+ target: ref("FlowSurfaceWriteTarget"),
3898
+ rows: ANY_OBJECT_SCHEMA,
3899
+ sizes: ANY_OBJECT_SCHEMA,
3900
+ rowOrder: {
3901
+ type: "array",
3902
+ items: {
3903
+ type: "string"
3904
+ }
3905
+ }
3906
+ },
3907
+ additionalProperties: false
3908
+ },
3909
+ FlowSurfaceSetLayoutResult: {
3910
+ type: "object",
3911
+ properties: {
3912
+ uid: {
3913
+ type: "string"
3914
+ },
3915
+ rows: ANY_OBJECT_SCHEMA,
3916
+ sizes: ANY_OBJECT_SCHEMA,
3917
+ rowOrder: {
3918
+ type: "array",
3919
+ items: {
3920
+ type: "string"
3921
+ }
3922
+ }
3923
+ },
3924
+ additionalProperties: false
3925
+ },
3926
+ FlowSurfaceMoveNodeRequest: {
3927
+ type: "object",
3928
+ required: ["sourceUid", "targetUid"],
3929
+ properties: {
3930
+ sourceUid: {
3931
+ type: "string"
3932
+ },
3933
+ targetUid: {
3934
+ type: "string"
3935
+ },
3936
+ position: {
3937
+ type: "string",
3938
+ enum: ["before", "after"]
3939
+ }
3940
+ },
3941
+ additionalProperties: false
3942
+ },
3943
+ FlowSurfaceMoveNodeResult: {
3944
+ type: "object",
3945
+ properties: {
3946
+ sourceUid: {
3947
+ type: "string"
3948
+ },
3949
+ targetUid: {
3950
+ type: "string"
3951
+ },
3952
+ position: {
3953
+ type: "string",
3954
+ enum: ["before", "after"]
3955
+ }
3956
+ },
3957
+ additionalProperties: false
3958
+ },
3959
+ FlowSurfaceRemoveNodeRequest: {
3960
+ type: "object",
3961
+ required: ["target"],
3962
+ properties: {
3963
+ target: {
3964
+ type: "object",
3965
+ required: ["uid"],
3966
+ properties: {
3967
+ uid: {
3968
+ type: "string"
3969
+ }
3970
+ },
3971
+ additionalProperties: false
3972
+ }
3973
+ },
3974
+ additionalProperties: false
3975
+ },
3976
+ FlowSurfaceRemoveNodeResult: {
3977
+ type: "object",
3978
+ properties: {
3979
+ uid: {
3980
+ type: "string"
3981
+ }
3982
+ },
3983
+ additionalProperties: false
3984
+ },
3985
+ FlowSurfaceMutateAddTabValues: {
3986
+ type: "object",
3987
+ required: ["target"],
3988
+ properties: {
3989
+ target: ref("FlowSurfaceMutateWriteTarget"),
3990
+ tabSchemaUid: ref("FlowSurfaceResolvableString"),
3991
+ tabSchemaName: ref("FlowSurfaceResolvableString"),
3992
+ title: ref("FlowSurfaceResolvableString"),
3993
+ icon: ref("FlowSurfaceResolvableString"),
3994
+ documentTitle: ref("FlowSurfaceResolvableString"),
3995
+ flowRegistry: ANY_OBJECT_SCHEMA
3996
+ },
3997
+ additionalProperties: false
3998
+ },
3999
+ FlowSurfaceMutateUpdateTabValues: {
4000
+ type: "object",
4001
+ required: ["target"],
4002
+ properties: {
4003
+ target: ref("FlowSurfaceMutateWriteTarget"),
4004
+ title: ref("FlowSurfaceResolvableString"),
4005
+ icon: ref("FlowSurfaceResolvableString"),
4006
+ documentTitle: ref("FlowSurfaceResolvableString"),
4007
+ flowRegistry: ANY_OBJECT_SCHEMA
4008
+ },
4009
+ additionalProperties: false
4010
+ },
4011
+ FlowSurfaceMutateMoveTabValues: {
4012
+ type: "object",
4013
+ required: ["sourceUid", "targetUid"],
4014
+ properties: {
4015
+ sourceUid: ref("FlowSurfaceResolvableString"),
4016
+ targetUid: ref("FlowSurfaceResolvableString"),
4017
+ position: {
4018
+ type: "string",
4019
+ enum: ["before", "after"]
4020
+ }
4021
+ },
4022
+ additionalProperties: false
4023
+ },
4024
+ FlowSurfaceMutateRemoveTabValues: {
4025
+ type: "object",
4026
+ properties: {
4027
+ uid: ref("FlowSurfaceResolvableString")
4028
+ },
4029
+ additionalProperties: false
4030
+ },
4031
+ FlowSurfaceMutateAddBlockValues: {
4032
+ type: "object",
4033
+ required: ["target"],
4034
+ properties: {
4035
+ target: ref("FlowSurfaceMutateWriteTarget"),
4036
+ type: ref("FlowSurfaceResolvableString"),
4037
+ use: ref("FlowSurfaceResolvableString"),
4038
+ resourceInit: ref("FlowSurfaceMutateResourceInit"),
4039
+ props: ANY_OBJECT_SCHEMA,
4040
+ decoratorProps: ANY_OBJECT_SCHEMA,
4041
+ stepParams: ANY_OBJECT_SCHEMA
4042
+ },
4043
+ additionalProperties: false
4044
+ },
4045
+ FlowSurfaceMutateAddFieldValues: {
4046
+ type: "object",
4047
+ required: ["target"],
4048
+ properties: {
4049
+ target: ref("FlowSurfaceMutateWriteTarget"),
4050
+ fieldPath: ref("FlowSurfaceResolvableString"),
4051
+ associationPathName: ref("FlowSurfaceResolvableString"),
4052
+ dataSourceKey: ref("FlowSurfaceResolvableString"),
4053
+ collectionName: ref("FlowSurfaceResolvableString"),
4054
+ fieldUse: ref("FlowSurfaceResolvableString"),
4055
+ defaultTargetUid: ref("FlowSurfaceResolvableString"),
4056
+ targetBlockUid: ref("FlowSurfaceResolvableString"),
4057
+ targetUid: ref("FlowSurfaceResolvableString"),
4058
+ wrapperProps: ANY_OBJECT_SCHEMA,
4059
+ fieldProps: ANY_OBJECT_SCHEMA
4060
+ },
4061
+ additionalProperties: false
4062
+ },
4063
+ FlowSurfaceMutateAddActionValues: {
4064
+ type: "object",
4065
+ required: ["target"],
4066
+ properties: {
4067
+ target: ref("FlowSurfaceMutateWriteTarget"),
4068
+ type: ref("FlowSurfaceResolvableString"),
4069
+ use: ref("FlowSurfaceResolvableString"),
4070
+ resourceInit: ref("FlowSurfaceMutateResourceInit"),
4071
+ props: ANY_OBJECT_SCHEMA,
4072
+ decoratorProps: ANY_OBJECT_SCHEMA,
4073
+ stepParams: ANY_OBJECT_SCHEMA,
4074
+ flowRegistry: ANY_OBJECT_SCHEMA
4075
+ },
4076
+ additionalProperties: false
4077
+ },
4078
+ FlowSurfaceMutateAddRecordActionValues: {
4079
+ type: "object",
4080
+ required: ["target"],
4081
+ properties: {
4082
+ target: ref("FlowSurfaceMutateWriteTarget"),
4083
+ type: ref("FlowSurfaceResolvableString"),
4084
+ use: ref("FlowSurfaceResolvableString"),
4085
+ resourceInit: ref("FlowSurfaceMutateResourceInit"),
4086
+ props: ANY_OBJECT_SCHEMA,
4087
+ decoratorProps: ANY_OBJECT_SCHEMA,
4088
+ stepParams: ANY_OBJECT_SCHEMA,
4089
+ flowRegistry: ANY_OBJECT_SCHEMA
4090
+ },
4091
+ additionalProperties: false
4092
+ },
4093
+ FlowSurfaceMutateUpdateSettingsValues: {
4094
+ type: "object",
4095
+ required: ["target"],
4096
+ properties: {
4097
+ target: ref("FlowSurfaceMutateWriteTarget"),
4098
+ props: ANY_OBJECT_SCHEMA,
4099
+ decoratorProps: ANY_OBJECT_SCHEMA,
4100
+ stepParams: ANY_OBJECT_SCHEMA,
4101
+ flowRegistry: ANY_OBJECT_SCHEMA
4102
+ },
4103
+ additionalProperties: false
4104
+ },
4105
+ FlowSurfaceMutateSetEventFlowsValues: {
4106
+ type: "object",
4107
+ required: ["target"],
4108
+ properties: {
4109
+ target: ref("FlowSurfaceMutateWriteTarget"),
4110
+ flowRegistry: ANY_OBJECT_SCHEMA,
4111
+ flows: ANY_OBJECT_SCHEMA
4112
+ },
4113
+ additionalProperties: false
4114
+ },
4115
+ FlowSurfaceMutateSetLayoutValues: {
4116
+ type: "object",
4117
+ required: ["target"],
4118
+ properties: {
4119
+ target: ref("FlowSurfaceMutateWriteTarget"),
4120
+ rows: ANY_OBJECT_SCHEMA,
4121
+ sizes: ANY_OBJECT_SCHEMA,
4122
+ rowOrder: {
4123
+ type: "array",
4124
+ items: ref("FlowSurfaceResolvableString")
4125
+ }
4126
+ },
4127
+ additionalProperties: false
4128
+ },
4129
+ FlowSurfaceMutateMoveNodeValues: {
4130
+ type: "object",
4131
+ properties: {
4132
+ sourceUid: ref("FlowSurfaceResolvableString"),
4133
+ targetUid: ref("FlowSurfaceResolvableString"),
4134
+ position: {
4135
+ type: "string",
4136
+ enum: ["before", "after"]
4137
+ }
4138
+ },
4139
+ additionalProperties: false
4140
+ },
4141
+ FlowSurfaceMutateRemoveNodeValues: {
4142
+ type: "object",
4143
+ required: ["target"],
4144
+ properties: {
4145
+ target: {
4146
+ type: "object",
4147
+ required: ["uid"],
4148
+ properties: {
4149
+ uid: ref("FlowSurfaceResolvableString")
4150
+ },
4151
+ additionalProperties: false
4152
+ }
4153
+ },
4154
+ additionalProperties: false
4155
+ },
4156
+ FlowSurfaceMutateOpItem: {
4157
+ type: "object",
4158
+ required: ["type"],
4159
+ properties: {
4160
+ opId: {
4161
+ type: "string"
4162
+ },
4163
+ type: {
4164
+ type: "string",
4165
+ enum: [...import_constants.FLOW_SURFACE_MUTATE_OP_TYPES]
4166
+ },
4167
+ target: ref("FlowSurfaceMutateWriteTarget"),
4168
+ values: {
4169
+ ...ANY_OBJECT_SCHEMA,
4170
+ description: 'Business payload for the corresponding `/flowSurfaces:<type>` action. Nested refs must use `{ ref: "<opId>.<path>" }`.'
4171
+ }
4172
+ },
4173
+ additionalProperties: false
4174
+ },
4175
+ FlowSurfaceMutateRequest: {
4176
+ type: "object",
4177
+ properties: {
4178
+ atomic: {
4179
+ type: "boolean",
4180
+ enum: [true],
4181
+ default: true
4182
+ },
4183
+ ops: {
4184
+ type: "array",
4185
+ items: ref("FlowSurfaceMutateOpItem")
4186
+ }
4187
+ },
4188
+ additionalProperties: false
4189
+ },
4190
+ FlowSurfaceApplyRequest: {
4191
+ type: "object",
4192
+ required: ["target", "spec"],
4193
+ properties: {
4194
+ target: ref("FlowSurfaceWriteTarget"),
4195
+ mode: {
4196
+ type: "string",
4197
+ enum: ["replace"],
4198
+ default: "replace"
4199
+ },
4200
+ spec: ref("FlowSurfaceApplySpec")
4201
+ },
4202
+ additionalProperties: false
4203
+ },
4204
+ FlowSurfaceMutationResult: {
4205
+ oneOf: [
4206
+ ref("FlowSurfaceCreateMenuResult"),
4207
+ ref("FlowSurfaceUpdateMenuResult"),
4208
+ ref("FlowSurfaceCreatePageResult"),
4209
+ ref("FlowSurfaceDestroyPageResult"),
4210
+ ref("FlowSurfaceAddTabResult"),
4211
+ ref("FlowSurfaceUpdateTabResult"),
4212
+ ref("FlowSurfaceMoveTabResult"),
4213
+ ref("FlowSurfaceRemoveTabResult"),
4214
+ ref("FlowSurfaceAddPopupTabResult"),
4215
+ ref("FlowSurfaceUpdatePopupTabResult"),
4216
+ ref("FlowSurfaceMovePopupTabResult"),
4217
+ ref("FlowSurfaceRemovePopupTabResult"),
4218
+ ref("FlowSurfaceAddBlockResult"),
4219
+ ref("FlowSurfaceAddFieldResult"),
4220
+ ref("FlowSurfaceAddActionResult"),
4221
+ ref("FlowSurfaceAddRecordActionResult"),
4222
+ ref("FlowSurfaceUpdateSettingsResult"),
4223
+ ref("FlowSurfaceSetEventFlowsResult"),
4224
+ ref("FlowSurfaceSetLayoutResult"),
4225
+ ref("FlowSurfaceMoveNodeResult"),
4226
+ ref("FlowSurfaceRemoveNodeResult")
4227
+ ]
4228
+ },
4229
+ FlowSurfaceMutationItemResult: {
4230
+ type: "object",
4231
+ properties: {
4232
+ opId: {
4233
+ type: "string"
4234
+ },
4235
+ result: ref("FlowSurfaceMutationResult")
4236
+ },
4237
+ required: ["result"],
4238
+ additionalProperties: false
4239
+ },
4240
+ FlowSurfaceMutationResponse: {
4241
+ type: "object",
4242
+ properties: {
4243
+ results: {
4244
+ type: "array",
4245
+ items: ref("FlowSurfaceMutationItemResult")
4246
+ },
4247
+ clientKeyToUid: ref("FlowSurfaceClientKeyMap")
4248
+ },
4249
+ additionalProperties: false
4250
+ },
4251
+ FlowSurfaceErrorResponse: {
4252
+ type: "object",
4253
+ example: {
4254
+ errors: [
4255
+ {
4256
+ code: "FLOW_SURFACE_BAD_REQUEST",
4257
+ message: "flowSurfaces removeNode only accepts target.uid for regular nodes; if you only have pageSchemaUid, tabSchemaUid or routeId, call flowSurfaces:get first. Page use destroyPage and tab use removeTab",
4258
+ status: 400,
4259
+ type: "bad_request"
4260
+ }
4261
+ ]
4262
+ },
4263
+ properties: {
4264
+ errors: {
4265
+ type: "array",
4266
+ items: {
4267
+ type: "object",
4268
+ properties: {
4269
+ code: {
4270
+ type: "string",
4271
+ description: "Stable machine-readable error code",
4272
+ example: "FLOW_SURFACE_BAD_REQUEST"
4273
+ },
4274
+ message: {
4275
+ type: "string",
4276
+ description: "Human-readable error message for the caller"
4277
+ },
4278
+ status: {
4279
+ type: "integer",
4280
+ description: "HTTP status mapped from the FlowSurfaces error",
4281
+ example: 400
4282
+ },
4283
+ type: {
4284
+ type: "string",
4285
+ description: "Error category such as bad_request, forbidden, conflict or internal_error",
4286
+ example: "bad_request",
4287
+ enum: ["bad_request", "forbidden", "conflict", "internal_error"]
4288
+ }
4289
+ },
4290
+ required: ["message", "type", "code", "status"],
4291
+ additionalProperties: false
4292
+ }
4293
+ }
4294
+ },
4295
+ additionalProperties: true
4296
+ }
4297
+ };
4298
+ const paths = Object.fromEntries(
4299
+ import_constants.FLOW_SURFACES_ACTION_NAMES.map((actionName) => [
4300
+ `/flowSurfaces:${actionName}`,
4301
+ {
4302
+ [import_constants.FLOW_SURFACES_ACTION_METHODS[actionName]]: actionDocs[actionName]
4303
+ }
4304
+ ])
4305
+ );
4306
+ var flow_surfaces_default = {
4307
+ tags: [
4308
+ {
4309
+ name: FLOW_SURFACES_TAG,
4310
+ description: "Atomic and declarative FlowModel surface orchestration for external CLI and automation tools"
4311
+ }
4312
+ ],
4313
+ paths: {
4314
+ ...paths
4315
+ },
4316
+ components: {
4317
+ parameters,
4318
+ schemas
4319
+ }
4320
+ };