@elementumai/edk 0.8.2-alpha.6 → 0.9.5

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 (481) hide show
  1. package/README.md +49 -37
  2. package/dist-sdk/elementum-entity-client/clients/agents/models/agent-tool.d.ts +3 -3
  3. package/dist-sdk/elementum-entity-client/clients/aspects/models/index.d.ts +1 -1
  4. package/dist-sdk/elementum-entity-client/clients/aspects/models/picklist-config.d.ts +3 -11
  5. package/dist-sdk/elementum-entity-client/clients/automation/models/automation.d.ts +3 -11
  6. package/dist-sdk/elementum-entity-client/clients/skills/models/skill-tool.d.ts +1 -1
  7. package/dist-sdk/elementum-entity-client/clients/skills/models/skill.d.ts +1 -1
  8. package/dist-sdk/elementum-entity-client/clients/skills/models/skill.js +1 -1
  9. package/dist-sdk/fs/entity.d.ts +2 -2
  10. package/dist-sdk/fs/entity.js +1 -1
  11. package/dist-sdk/pull/missing-report.d.ts +81 -0
  12. package/dist-sdk/pull/missing-report.js +52 -0
  13. package/dist-sdk/pull/util.d.ts +1 -1
  14. package/dist-sdk/pull/util.js +3 -3
  15. package/dist-sdk/src/catalog/factories.d.ts +96 -23
  16. package/dist-sdk/src/catalog/factories.js +141 -21
  17. package/dist-sdk/src/catalog/from-authoring.d.ts +5 -5
  18. package/dist-sdk/src/catalog/from-authoring.js +20 -10
  19. package/dist-sdk/src/catalog/index.d.ts +2 -2
  20. package/dist-sdk/src/catalog/index.js +1 -1
  21. package/dist-sdk/src/catalog/org.js +63 -4
  22. package/dist-sdk/src/catalog/render-helpers.d.ts +1 -1
  23. package/dist-sdk/src/catalog/render-helpers.js +1 -1
  24. package/dist-sdk/src/catalog/render.d.ts +1 -0
  25. package/dist-sdk/src/catalog/render.js +8 -2
  26. package/dist-sdk/src/catalog/token.js +18 -4
  27. package/dist-sdk/src/catalog/types.d.ts +64 -24
  28. package/dist-sdk/src/catalog/types.js +12 -4
  29. package/dist-sdk/src/core/app-to-ui.d.ts +6 -6
  30. package/dist-sdk/src/core/app-to-ui.js +7 -9
  31. package/dist-sdk/src/core/index.d.ts +11 -10
  32. package/dist-sdk/src/core/index.js +10 -9
  33. package/dist-sdk/src/core/platform-id.d.ts +11 -0
  34. package/dist-sdk/src/core/platform-id.js +8 -0
  35. package/dist-sdk/src/{entities/flow/activities/render-catalog.d.ts → core/render-tree.d.ts} +3 -3
  36. package/dist-sdk/src/{entities/flow/activities/render-catalog.js → core/render-tree.js} +7 -10
  37. package/dist-sdk/src/core/types/ai-provider.d.ts +1 -1
  38. package/dist-sdk/src/core/types/ai-provider.js +1 -1
  39. package/dist-sdk/src/core/types/app.d.ts +78 -52
  40. package/dist-sdk/src/core/types/app.js +2 -3
  41. package/dist-sdk/src/core/types/aspect-category.d.ts +4 -4
  42. package/dist-sdk/src/core/types/aspect-category.js +4 -4
  43. package/dist-sdk/src/core/types/cloud-link.d.ts +3 -3
  44. package/dist-sdk/src/core/types/cloud-link.js +3 -3
  45. package/dist-sdk/src/core/types/display-block.d.ts +2 -2
  46. package/dist-sdk/src/core/types/display-block.js +2 -2
  47. package/dist-sdk/src/core/types/group.d.ts +1 -1
  48. package/dist-sdk/src/core/types/group.js +1 -1
  49. package/dist-sdk/src/core/types/user.d.ts +1 -1
  50. package/dist-sdk/src/core/types/user.js +1 -1
  51. package/dist-sdk/src/core/wire/ref-serializer.js +3 -3
  52. package/dist-sdk/src/engine/build/context.d.ts +23 -16
  53. package/dist-sdk/src/engine/entity.d.ts +1 -1
  54. package/dist-sdk/src/engine/pull/attrs.d.ts +4 -0
  55. package/dist-sdk/src/engine/pull/attrs.js +17 -0
  56. package/dist-sdk/src/engine/pull/context.d.ts +73 -0
  57. package/dist-sdk/src/engine/pull/context.js +14 -0
  58. package/dist-sdk/src/engine/pull/org.d.ts +10 -0
  59. package/dist-sdk/src/engine/pull/org.js +35 -0
  60. package/dist-sdk/src/engine/pull/ref-only.d.ts +37 -0
  61. package/dist-sdk/src/engine/pull/ref-only.js +204 -0
  62. package/dist-sdk/src/engine/tf/expr.d.ts +7 -3
  63. package/dist-sdk/src/engine/tf/expr.js +27 -15
  64. package/dist-sdk/src/engine/tf/index.d.ts +1 -1
  65. package/dist-sdk/src/engine/tf/index.js +1 -1
  66. package/dist-sdk/src/engine/tf/model.d.ts +8 -1
  67. package/dist-sdk/src/engine/tf/model.js +4 -0
  68. package/dist-sdk/src/engine/tf/parse.js +13 -2
  69. package/dist-sdk/src/engine/tf/render.js +4 -0
  70. package/dist-sdk/src/engine/workspace/authoring-layout.js +4 -2
  71. package/dist-sdk/src/entities/access-policy/build.d.ts +6 -16
  72. package/dist-sdk/src/entities/access-policy/build.js +2 -2
  73. package/dist-sdk/src/entities/access-policy/from-tf.d.ts +14 -40
  74. package/dist-sdk/src/entities/access-policy/from-tf.js +26 -85
  75. package/dist-sdk/src/entities/access-policy/principal.d.ts +39 -0
  76. package/dist-sdk/src/entities/access-policy/principal.js +13 -0
  77. package/dist-sdk/src/entities/access-policy/to-tf.d.ts +33 -6
  78. package/dist-sdk/src/entities/access-policy/to-tf.js +62 -60
  79. package/dist-sdk/src/entities/agent/build.d.ts +42 -11
  80. package/dist-sdk/src/entities/agent/build.js +40 -19
  81. package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.d.ts +11 -1
  82. package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +180 -45
  83. package/dist-sdk/src/entities/agent/from-tf.d.ts +3 -1
  84. package/dist-sdk/src/entities/agent/from-tf.js +17 -12
  85. package/dist-sdk/src/entities/agent/index.d.ts +5 -2
  86. package/dist-sdk/src/entities/agent/index.js +4 -2
  87. package/dist-sdk/src/entities/agent/module.js +7 -2
  88. package/dist-sdk/src/entities/agent/run-as.d.ts +16 -0
  89. package/dist-sdk/src/entities/agent/run-as.js +1 -0
  90. package/dist-sdk/src/entities/agent/to-tf.d.ts +6 -2
  91. package/dist-sdk/src/entities/agent/to-tf.js +58 -9
  92. package/dist-sdk/src/entities/agent/tools.d.ts +97 -70
  93. package/dist-sdk/src/entities/agent/tools.js +63 -43
  94. package/dist-sdk/src/entities/agent-a2a-skill/from-tf.js +1 -1
  95. package/dist-sdk/src/entities/agent-a2a-skill/to-tf.js +4 -4
  96. package/dist-sdk/src/entities/agent-evaluation/build.d.ts +19 -0
  97. package/dist-sdk/src/entities/agent-evaluation/build.js +41 -0
  98. package/dist-sdk/src/entities/agent-evaluation/deserializer/print-agent-evaluation.d.ts +4 -0
  99. package/dist-sdk/src/entities/agent-evaluation/deserializer/print-agent-evaluation.js +30 -0
  100. package/dist-sdk/src/entities/agent-evaluation/from-tf.d.ts +12 -0
  101. package/dist-sdk/src/entities/agent-evaluation/from-tf.js +46 -0
  102. package/dist-sdk/src/entities/agent-evaluation/index.d.ts +1 -0
  103. package/dist-sdk/src/entities/agent-evaluation/index.js +1 -0
  104. package/dist-sdk/src/entities/agent-evaluation/module.d.ts +3 -0
  105. package/dist-sdk/src/entities/agent-evaluation/module.js +58 -0
  106. package/dist-sdk/src/entities/agent-evaluation/to-tf.d.ts +12 -0
  107. package/dist-sdk/src/entities/agent-evaluation/to-tf.js +35 -0
  108. package/dist-sdk/src/entities/agent-tool/from-tf.d.ts +25 -15
  109. package/dist-sdk/src/entities/agent-tool/from-tf.js +175 -43
  110. package/dist-sdk/src/entities/agent-tool/module.js +6 -0
  111. package/dist-sdk/src/entities/agent-tool/to-tf.d.ts +15 -7
  112. package/dist-sdk/src/entities/agent-tool/to-tf.js +169 -48
  113. package/dist-sdk/src/entities/agent-tool/types.d.ts +4 -6
  114. package/dist-sdk/src/entities/agent-tool/types.js +30 -29
  115. package/dist-sdk/src/entities/app/build.d.ts +214 -47
  116. package/dist-sdk/src/entities/app/build.js +128 -66
  117. package/dist-sdk/src/entities/app/deserializer/normalize.d.ts +188 -8
  118. package/dist-sdk/src/entities/app/deserializer/pulled-expression.d.ts +59 -0
  119. package/dist-sdk/src/entities/app/deserializer/pulled-expression.js +70 -0
  120. package/dist-sdk/src/entities/app/display-blocks.d.ts +2 -1
  121. package/dist-sdk/src/entities/app/display-blocks.js +1 -1
  122. package/dist-sdk/src/entities/app/from-tf.d.ts +11 -1
  123. package/dist-sdk/src/entities/app/from-tf.js +30 -2
  124. package/dist-sdk/src/entities/app/index.d.ts +20 -8
  125. package/dist-sdk/src/entities/app/index.js +16 -6
  126. package/dist-sdk/src/entities/app/module.js +29 -4
  127. package/dist-sdk/src/entities/app/to-tf.d.ts +1 -1
  128. package/dist-sdk/src/entities/app/to-tf.js +97 -7
  129. package/dist-sdk/src/entities/approval-chain/build.d.ts +31 -16
  130. package/dist-sdk/src/entities/approval-chain/build.js +49 -49
  131. package/dist-sdk/src/entities/approval-chain/from-tf.d.ts +17 -0
  132. package/dist-sdk/src/entities/approval-chain/from-tf.js +57 -0
  133. package/dist-sdk/src/entities/approval-chain/index.d.ts +2 -3
  134. package/dist-sdk/src/entities/approval-chain/index.js +2 -3
  135. package/dist-sdk/src/entities/approval-chain/module.d.ts +3 -0
  136. package/dist-sdk/src/entities/approval-chain/module.js +51 -0
  137. package/dist-sdk/src/entities/approval-chain/printer.d.ts +2 -0
  138. package/dist-sdk/src/entities/approval-chain/printer.js +21 -0
  139. package/dist-sdk/src/entities/approval-chain/to-tf.d.ts +9 -0
  140. package/dist-sdk/src/entities/approval-chain/to-tf.js +43 -0
  141. package/dist-sdk/src/entities/automation/build.d.ts +177 -95
  142. package/dist-sdk/src/entities/automation/build.js +164 -72
  143. package/dist-sdk/src/entities/automation/calculation-expression.d.ts +191 -0
  144. package/dist-sdk/src/entities/automation/calculation-expression.js +57 -0
  145. package/dist-sdk/src/entities/automation/deserializer/ast.d.ts +18 -9
  146. package/dist-sdk/src/entities/automation/deserializer/print-automation.d.ts +18 -14
  147. package/dist-sdk/src/entities/automation/deserializer/print-automation.js +214 -311
  148. package/dist-sdk/src/entities/automation/filter.d.ts +1 -115
  149. package/dist-sdk/src/entities/automation/filter.js +1 -197
  150. package/dist-sdk/src/entities/automation/from-tf.d.ts +28 -0
  151. package/dist-sdk/src/entities/automation/from-tf.js +695 -182
  152. package/dist-sdk/src/entities/automation/index.d.ts +9 -10
  153. package/dist-sdk/src/entities/automation/index.js +11 -11
  154. package/dist-sdk/src/entities/automation/module.js +82 -8
  155. package/dist-sdk/src/entities/automation/operators.d.ts +32 -48
  156. package/dist-sdk/src/entities/automation/operators.js +10 -37
  157. package/dist-sdk/src/entities/automation/output-key-wire-name.d.ts +1 -1
  158. package/dist-sdk/src/entities/automation/output-key-wire-name.js +1 -1
  159. package/dist-sdk/src/entities/automation/script-code.js +107 -28
  160. package/dist-sdk/src/entities/automation/serialize.js +1 -1
  161. package/dist-sdk/src/entities/automation/tasks.d.ts +167 -102
  162. package/dist-sdk/src/entities/automation/tasks.js +66 -13
  163. package/dist-sdk/src/entities/automation/to-tf.d.ts +44 -3
  164. package/dist-sdk/src/entities/automation/to-tf.js +607 -161
  165. package/dist-sdk/src/entities/automation/triggers.d.ts +33 -25
  166. package/dist-sdk/src/entities/automation/triggers.js +8 -2
  167. package/dist-sdk/src/entities/automation/types.d.ts +3 -2
  168. package/dist-sdk/src/entities/automation/types.js +3 -2
  169. package/dist-sdk/src/entities/chart/build.d.ts +95 -0
  170. package/dist-sdk/src/entities/chart/build.js +42 -0
  171. package/dist-sdk/src/entities/chart/from-tf.d.ts +55 -0
  172. package/dist-sdk/src/entities/chart/from-tf.js +269 -0
  173. package/dist-sdk/src/entities/chart/index.d.ts +4 -0
  174. package/dist-sdk/src/entities/chart/index.js +3 -0
  175. package/dist-sdk/src/entities/chart/module.d.ts +3 -0
  176. package/dist-sdk/src/entities/chart/module.js +61 -0
  177. package/dist-sdk/src/entities/chart/printer.d.ts +5 -0
  178. package/dist-sdk/src/entities/chart/printer.js +104 -0
  179. package/dist-sdk/src/entities/chart/to-tf.d.ts +15 -0
  180. package/dist-sdk/src/entities/chart/to-tf.js +150 -0
  181. package/dist-sdk/src/entities/chart/types.d.ts +53 -0
  182. package/dist-sdk/src/entities/chart/types.js +22 -0
  183. package/dist-sdk/src/entities/dashboard/build.d.ts +44 -0
  184. package/dist-sdk/src/entities/dashboard/build.js +16 -0
  185. package/dist-sdk/src/entities/dashboard/from-tf.d.ts +12 -0
  186. package/dist-sdk/src/entities/dashboard/from-tf.js +113 -0
  187. package/dist-sdk/src/entities/dashboard/module.d.ts +3 -0
  188. package/dist-sdk/src/entities/dashboard/module.js +16 -0
  189. package/dist-sdk/src/entities/dashboard/to-tf.d.ts +43 -0
  190. package/dist-sdk/src/entities/dashboard/to-tf.js +121 -0
  191. package/dist-sdk/src/entities/dashboard-widget/module.d.ts +3 -0
  192. package/dist-sdk/src/entities/dashboard-widget/module.js +10 -0
  193. package/dist-sdk/src/entities/data-lookup/module.d.ts +3 -0
  194. package/dist-sdk/src/entities/data-lookup/module.js +22 -0
  195. package/dist-sdk/src/entities/datamine/build.d.ts +22 -0
  196. package/dist-sdk/src/entities/datamine/from-tf.d.ts +17 -0
  197. package/dist-sdk/src/entities/datamine/from-tf.js +98 -0
  198. package/dist-sdk/src/entities/datamine/module.d.ts +3 -0
  199. package/dist-sdk/src/entities/datamine/module.js +23 -0
  200. package/dist-sdk/src/entities/datamine/to-tf.d.ts +11 -0
  201. package/dist-sdk/src/entities/datamine/to-tf.js +53 -0
  202. package/dist-sdk/src/entities/dynamic-layout/build.d.ts +304 -0
  203. package/dist-sdk/src/entities/dynamic-layout/build.js +4 -0
  204. package/dist-sdk/src/entities/dynamic-layout/dialect.d.ts +4 -0
  205. package/dist-sdk/src/entities/dynamic-layout/dialect.js +47 -0
  206. package/dist-sdk/src/entities/dynamic-layout/from-tf.d.ts +10 -0
  207. package/dist-sdk/src/entities/dynamic-layout/from-tf.js +239 -0
  208. package/dist-sdk/src/entities/dynamic-layout/module.d.ts +3 -0
  209. package/dist-sdk/src/entities/dynamic-layout/module.js +13 -0
  210. package/dist-sdk/src/entities/dynamic-layout/to-tf.d.ts +26 -0
  211. package/dist-sdk/src/entities/dynamic-layout/to-tf.js +267 -0
  212. package/dist-sdk/src/entities/element/build.d.ts +48 -38
  213. package/dist-sdk/src/entities/element/build.js +24 -33
  214. package/dist-sdk/src/entities/element/from-tf.d.ts +9 -1
  215. package/dist-sdk/src/entities/element/from-tf.js +31 -2
  216. package/dist-sdk/src/entities/element/index.d.ts +14 -7
  217. package/dist-sdk/src/entities/element/index.js +11 -5
  218. package/dist-sdk/src/entities/element/module.js +26 -5
  219. package/dist-sdk/src/entities/element/to-tf.d.ts +2 -1
  220. package/dist-sdk/src/entities/element/to-tf.js +64 -4
  221. package/dist-sdk/src/entities/field/build.d.ts +55 -27
  222. package/dist-sdk/src/entities/field/build.js +31 -6
  223. package/dist-sdk/src/entities/field/calc/aggregate.d.ts +52 -21
  224. package/dist-sdk/src/entities/field/calc/aggregate.js +59 -29
  225. package/dist-sdk/src/entities/field/calc/date.d.ts +78 -29
  226. package/dist-sdk/src/entities/field/calc/date.js +120 -29
  227. package/dist-sdk/src/entities/field/calc/index.d.ts +80 -85
  228. package/dist-sdk/src/entities/field/calc/index.js +82 -139
  229. package/dist-sdk/src/entities/field/calc/numeric.d.ts +8 -12
  230. package/dist-sdk/src/entities/field/calc/numeric.js +10 -27
  231. package/dist-sdk/src/entities/field/calc/runtime.d.ts +19 -2
  232. package/dist-sdk/src/entities/field/calc/runtime.js +79 -8
  233. package/dist-sdk/src/entities/field/calc/text.d.ts +32 -23
  234. package/dist-sdk/src/entities/field/calc/text.js +43 -31
  235. package/dist-sdk/src/entities/field/calc/types.d.ts +36 -81
  236. package/dist-sdk/src/entities/field/calc/types.js +1 -22
  237. package/dist-sdk/src/entities/field/calc.d.ts +71 -48
  238. package/dist-sdk/src/entities/field/calc.js +5 -15
  239. package/dist-sdk/src/entities/field/calculation-types.d.ts +6 -0
  240. package/dist-sdk/src/entities/field/calculation-types.js +49 -0
  241. package/dist-sdk/src/entities/field/from-tf.js +238 -13
  242. package/dist-sdk/src/entities/field/locals.d.ts +11 -3
  243. package/dist-sdk/src/entities/field/locals.js +15 -2
  244. package/dist-sdk/src/entities/field/module.d.ts +1 -0
  245. package/dist-sdk/src/entities/field/module.js +27 -7
  246. package/dist-sdk/src/entities/field/record-shape.d.ts +25 -11
  247. package/dist-sdk/src/entities/field/to-tf.d.ts +41 -2
  248. package/dist-sdk/src/entities/field/to-tf.js +314 -40
  249. package/dist-sdk/src/entities/field/types.d.ts +1 -1
  250. package/dist-sdk/src/entities/field/types.js +10 -1
  251. package/dist-sdk/src/entities/file-reader/build.d.ts +71 -19
  252. package/dist-sdk/src/entities/file-reader/build.js +49 -4
  253. package/dist-sdk/src/entities/file-reader/deserializer/print-file-reader.d.ts +1 -0
  254. package/dist-sdk/src/entities/file-reader/deserializer/print-file-reader.js +12 -10
  255. package/dist-sdk/src/entities/file-reader/from-tf.d.ts +1 -1
  256. package/dist-sdk/src/entities/file-reader/from-tf.js +31 -2
  257. package/dist-sdk/src/entities/file-reader/index.d.ts +3 -3
  258. package/dist-sdk/src/entities/file-reader/index.js +3 -3
  259. package/dist-sdk/src/entities/file-reader/module.js +6 -5
  260. package/dist-sdk/src/entities/file-reader/to-tf.d.ts +1 -1
  261. package/dist-sdk/src/entities/file-reader/to-tf.js +5 -2
  262. package/dist-sdk/src/entities/file-reader/types.d.ts +3 -4
  263. package/dist-sdk/src/entities/file-reader/types.js +4 -5
  264. package/dist-sdk/src/entities/org/category.js +4 -5
  265. package/dist-sdk/src/entities/org/cloud-link.js +4 -5
  266. package/dist-sdk/src/entities/org/email-alias.d.ts +2 -0
  267. package/dist-sdk/src/entities/org/email-alias.js +12 -0
  268. package/dist-sdk/src/entities/org/group.js +4 -5
  269. package/dist-sdk/src/entities/org/index.d.ts +2 -0
  270. package/dist-sdk/src/entities/org/index.js +2 -0
  271. package/dist-sdk/src/entities/org/phone-provider.d.ts +4 -0
  272. package/dist-sdk/src/entities/org/phone-provider.js +30 -0
  273. package/dist-sdk/src/entities/org/role.d.ts +3 -3
  274. package/dist-sdk/src/entities/org/role.js +9 -6
  275. package/dist-sdk/src/entities/organization/build.d.ts +241 -0
  276. package/dist-sdk/src/entities/organization/build.js +165 -0
  277. package/dist-sdk/src/entities/organization/index.d.ts +2 -0
  278. package/dist-sdk/src/entities/organization/index.js +2 -0
  279. package/dist-sdk/src/entities/organization/module.d.ts +2 -0
  280. package/dist-sdk/src/entities/organization/module.js +21 -0
  281. package/dist-sdk/src/entities/organization/to-tf.d.ts +7 -0
  282. package/dist-sdk/src/entities/organization/to-tf.js +154 -0
  283. package/dist-sdk/src/entities/phone-service/build.d.ts +17 -0
  284. package/dist-sdk/src/entities/phone-service/build.js +31 -0
  285. package/dist-sdk/src/entities/phone-service/deserializer/print-phone-service.d.ts +4 -0
  286. package/dist-sdk/src/entities/phone-service/deserializer/print-phone-service.js +56 -0
  287. package/dist-sdk/src/entities/phone-service/from-tf.d.ts +25 -0
  288. package/dist-sdk/src/entities/phone-service/from-tf.js +75 -0
  289. package/dist-sdk/src/entities/phone-service/index.d.ts +2 -0
  290. package/dist-sdk/src/entities/phone-service/index.js +2 -0
  291. package/dist-sdk/src/entities/phone-service/module.d.ts +3 -0
  292. package/dist-sdk/src/entities/phone-service/module.js +55 -0
  293. package/dist-sdk/src/entities/phone-service/to-tf.d.ts +12 -0
  294. package/dist-sdk/src/entities/phone-service/to-tf.js +54 -0
  295. package/dist-sdk/src/entities/phone-service/types.d.ts +35 -0
  296. package/dist-sdk/src/entities/phone-service/types.js +22 -0
  297. package/dist-sdk/src/entities/record-create-form/from-tf.d.ts +11 -0
  298. package/dist-sdk/src/entities/record-create-form/from-tf.js +74 -0
  299. package/dist-sdk/src/entities/record-create-form/module.d.ts +11 -0
  300. package/dist-sdk/src/entities/record-create-form/module.js +24 -0
  301. package/dist-sdk/src/entities/record-create-form/to-tf.d.ts +33 -0
  302. package/dist-sdk/src/entities/record-create-form/to-tf.js +88 -0
  303. package/dist-sdk/src/entities/relationship/build.d.ts +16 -0
  304. package/dist-sdk/src/entities/relationship/build.js +1 -0
  305. package/dist-sdk/src/entities/relationship/from-tf.d.ts +12 -0
  306. package/dist-sdk/src/entities/relationship/from-tf.js +109 -0
  307. package/dist-sdk/src/entities/relationship/module.d.ts +3 -0
  308. package/dist-sdk/src/entities/relationship/module.js +16 -0
  309. package/dist-sdk/src/entities/relationship/to-tf.d.ts +32 -0
  310. package/dist-sdk/src/entities/relationship/to-tf.js +145 -0
  311. package/dist-sdk/src/entities/role/build.d.ts +65 -0
  312. package/dist-sdk/src/entities/role/build.js +33 -0
  313. package/dist-sdk/src/entities/role/from-tf.d.ts +13 -0
  314. package/dist-sdk/src/entities/role/from-tf.js +138 -0
  315. package/dist-sdk/src/entities/role/to-tf.d.ts +13 -0
  316. package/dist-sdk/src/entities/role/to-tf.js +69 -0
  317. package/dist-sdk/src/entities/search-table/build.d.ts +67 -28
  318. package/dist-sdk/src/entities/search-table/build.js +110 -56
  319. package/dist-sdk/src/entities/search-table/from-tf.d.ts +37 -0
  320. package/dist-sdk/src/entities/search-table/from-tf.js +113 -0
  321. package/dist-sdk/src/entities/search-table/index.d.ts +2 -2
  322. package/dist-sdk/src/entities/search-table/index.js +2 -2
  323. package/dist-sdk/src/entities/search-table/module.js +88 -10
  324. package/dist-sdk/src/entities/search-table/printer.d.ts +2 -0
  325. package/dist-sdk/src/entities/search-table/printer.js +52 -0
  326. package/dist-sdk/src/entities/search-table/to-tf.d.ts +14 -0
  327. package/dist-sdk/src/entities/search-table/to-tf.js +104 -0
  328. package/dist-sdk/src/entities/search-table/types.d.ts +8 -0
  329. package/dist-sdk/src/entities/search-table/types.js +21 -0
  330. package/dist-sdk/src/entities/service-account/build.d.ts +32 -0
  331. package/dist-sdk/src/entities/service-account/build.js +9 -0
  332. package/dist-sdk/src/entities/service-account/from-tf.d.ts +10 -0
  333. package/dist-sdk/src/entities/service-account/from-tf.js +109 -0
  334. package/dist-sdk/src/entities/service-account/module.d.ts +4 -0
  335. package/dist-sdk/src/entities/service-account/module.js +21 -0
  336. package/dist-sdk/src/entities/service-account/ref.d.ts +11 -0
  337. package/dist-sdk/src/entities/service-account/ref.js +5 -0
  338. package/dist-sdk/src/entities/service-account/to-tf.d.ts +32 -0
  339. package/dist-sdk/src/entities/service-account/to-tf.js +103 -0
  340. package/dist-sdk/src/entities/shared/connector-from-tf.d.ts +14 -0
  341. package/dist-sdk/src/entities/shared/connector-from-tf.js +14 -0
  342. package/dist-sdk/src/entities/shared/context.d.ts +25 -24
  343. package/dist-sdk/src/entities/shared/context.js +36 -35
  344. package/dist-sdk/src/entities/shared/filters/ast.d.ts +30 -81
  345. package/dist-sdk/src/entities/shared/filters/ast.js +6 -2
  346. package/dist-sdk/src/entities/shared/filters/index.d.ts +95 -206
  347. package/dist-sdk/src/entities/shared/filters/index.js +196 -341
  348. package/dist-sdk/src/entities/shared/filters/print.d.ts +11 -0
  349. package/dist-sdk/src/entities/shared/filters/print.js +122 -0
  350. package/dist-sdk/src/entities/shared/filters/tf-codec.d.ts +170 -0
  351. package/dist-sdk/src/entities/shared/filters/tf-codec.js +527 -0
  352. package/dist-sdk/src/entities/shared/filters/types.d.ts +66 -69
  353. package/dist-sdk/src/entities/shared/filters/types.js +2 -3
  354. package/dist-sdk/src/entities/shared/foreign-ref.d.ts +14 -0
  355. package/dist-sdk/src/entities/shared/foreign-ref.js +12 -0
  356. package/dist-sdk/src/entities/shared/ref.d.ts +26 -11
  357. package/dist-sdk/src/entities/shared/ref.js +8 -3
  358. package/dist-sdk/src/entities/shared/types/common.d.ts +2 -2
  359. package/dist-sdk/src/entities/shared/types/field-types.d.ts +1 -1
  360. package/dist-sdk/src/entities/shared/types/field-types.js +1 -1
  361. package/dist-sdk/src/entities/skill/build.d.ts +4 -4
  362. package/dist-sdk/src/entities/skill/build.js +6 -5
  363. package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.d.ts +11 -1
  364. package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.js +100 -39
  365. package/dist-sdk/src/entities/skill/index.d.ts +3 -2
  366. package/dist-sdk/src/entities/skill/index.js +3 -2
  367. package/dist-sdk/src/entities/skill/module.js +8 -2
  368. package/dist-sdk/src/entities/skill/to-tf.d.ts +6 -2
  369. package/dist-sdk/src/entities/skill/to-tf.js +20 -2
  370. package/dist-sdk/src/entities/skill/tools.d.ts +47 -31
  371. package/dist-sdk/src/entities/skill/tools.js +37 -23
  372. package/dist-sdk/src/entities/skill-tool/from-tf.d.ts +17 -1
  373. package/dist-sdk/src/entities/skill-tool/from-tf.js +118 -8
  374. package/dist-sdk/src/entities/skill-tool/module.js +9 -0
  375. package/dist-sdk/src/entities/skill-tool/to-tf.d.ts +6 -1
  376. package/dist-sdk/src/entities/skill-tool/to-tf.js +100 -48
  377. package/dist-sdk/src/entities/skill-tool/types.js +18 -1
  378. package/dist-sdk/src/entities/table/build.d.ts +64 -23
  379. package/dist-sdk/src/entities/table/build.js +41 -26
  380. package/dist-sdk/src/entities/table/catalog-render.js +15 -1
  381. package/dist-sdk/src/entities/table/deserializer/normalize.d.ts +99 -0
  382. package/dist-sdk/src/entities/table/deserializer/normalize.js +192 -0
  383. package/dist-sdk/src/entities/table/fields/types.d.ts +86 -0
  384. package/dist-sdk/src/entities/table/fields/types.js +12 -0
  385. package/dist-sdk/src/entities/table/fields.d.ts +107 -47
  386. package/dist-sdk/src/entities/table/fields.js +76 -55
  387. package/dist-sdk/src/entities/table/from-tf.d.ts +4 -0
  388. package/dist-sdk/src/entities/table/from-tf.js +261 -0
  389. package/dist-sdk/src/entities/table/index.d.ts +7 -5
  390. package/dist-sdk/src/entities/table/index.js +7 -7
  391. package/dist-sdk/src/entities/table/joins.d.ts +22 -9
  392. package/dist-sdk/src/entities/table/joins.js +8 -16
  393. package/dist-sdk/src/entities/table/module.d.ts +2 -1
  394. package/dist-sdk/src/entities/table/module.js +13 -6
  395. package/dist-sdk/src/entities/table/to-tf.d.ts +10 -0
  396. package/dist-sdk/src/entities/table/to-tf.js +222 -0
  397. package/dist-sdk/src/entities/task/build.d.ts +43 -0
  398. package/dist-sdk/src/entities/task/build.js +17 -0
  399. package/dist-sdk/src/entities/task/from-tf.d.ts +28 -0
  400. package/dist-sdk/src/entities/task/from-tf.js +38 -0
  401. package/dist-sdk/src/entities/task/index.d.ts +1 -0
  402. package/dist-sdk/src/entities/task/index.js +1 -0
  403. package/dist-sdk/src/entities/task/module.d.ts +3 -0
  404. package/dist-sdk/src/entities/task/module.js +12 -0
  405. package/dist-sdk/src/entities/task/to-tf.d.ts +9 -0
  406. package/dist-sdk/src/entities/task/to-tf.js +49 -0
  407. package/dist-sdk/src/entities/view/build.d.ts +46 -0
  408. package/dist-sdk/src/entities/view/build.js +19 -0
  409. package/dist-sdk/src/entities/view/from-tf.d.ts +7 -2
  410. package/dist-sdk/src/entities/view/from-tf.js +264 -30
  411. package/dist-sdk/src/entities/view/module.d.ts +6 -13
  412. package/dist-sdk/src/entities/view/module.js +12 -15
  413. package/dist-sdk/src/entities/view/sharing.d.ts +10 -0
  414. package/dist-sdk/src/entities/view/sharing.js +6 -0
  415. package/dist-sdk/src/entities/view/to-tf.d.ts +56 -12
  416. package/dist-sdk/src/entities/view/to-tf.js +192 -20
  417. package/dist-sdk/src/entities/view/types.d.ts +8 -0
  418. package/dist-sdk/src/entities/view/types.js +46 -0
  419. package/dist-sdk/src/entities/visual-flow/build.d.ts +87 -0
  420. package/dist-sdk/src/entities/visual-flow/build.js +72 -0
  421. package/dist-sdk/src/entities/visual-flow/from-tf.d.ts +49 -0
  422. package/dist-sdk/src/entities/visual-flow/from-tf.js +124 -0
  423. package/dist-sdk/src/entities/visual-flow/index.d.ts +1 -0
  424. package/dist-sdk/src/entities/visual-flow/index.js +1 -0
  425. package/dist-sdk/src/entities/visual-flow/module.d.ts +3 -0
  426. package/dist-sdk/src/entities/visual-flow/module.js +41 -0
  427. package/dist-sdk/src/entities/visual-flow/printer.d.ts +8 -0
  428. package/dist-sdk/src/entities/visual-flow/printer.js +92 -0
  429. package/dist-sdk/src/entities/visual-flow/to-tf.d.ts +15 -0
  430. package/dist-sdk/src/entities/visual-flow/to-tf.js +97 -0
  431. package/dist-sdk/src/entities/widget/build.d.ts +55 -0
  432. package/dist-sdk/src/entities/widget/build.js +1 -0
  433. package/dist-sdk/src/entities/widget/from-tf.d.ts +11 -0
  434. package/dist-sdk/src/entities/widget/from-tf.js +209 -0
  435. package/dist-sdk/src/entities/widget/module.d.ts +3 -0
  436. package/dist-sdk/src/entities/widget/module.js +16 -0
  437. package/dist-sdk/src/entities/widget/to-tf.d.ts +45 -0
  438. package/dist-sdk/src/entities/widget/to-tf.js +206 -0
  439. package/dist-sdk/src/graph/deferred-catalog-render.d.ts +1 -1
  440. package/dist-sdk/src/graph/deferred-catalog-render.js +1 -1
  441. package/dist-sdk/src/graph/index.d.ts +12 -1
  442. package/dist-sdk/src/graph/index.js +8 -19
  443. package/dist-sdk/src/graph/modules.js +35 -1
  444. package/dist-sdk/src/graph/types.d.ts +106 -7
  445. package/dist-sdk/src/internal/safe-identifier.d.ts +4 -0
  446. package/dist-sdk/src/internal/safe-identifier.js +13 -0
  447. package/dist-sdk/src/internal/sdk-package.d.ts +1 -1
  448. package/dist-sdk/src/internal/sdk-package.js +5 -2
  449. package/package.json +39 -15
  450. package/dist-sdk/src/entities/access-policy/filter.d.ts +0 -61
  451. package/dist-sdk/src/entities/access-policy/filter.js +0 -83
  452. package/dist-sdk/src/entities/approval-chain/steps.d.ts +0 -24
  453. package/dist-sdk/src/entities/approval-chain/steps.js +0 -20
  454. package/dist-sdk/src/entities/flow/activities/agent.d.ts +0 -15
  455. package/dist-sdk/src/entities/flow/activities/agent.js +0 -29
  456. package/dist-sdk/src/entities/flow/activities/approval.d.ts +0 -9
  457. package/dist-sdk/src/entities/flow/activities/approval.js +0 -18
  458. package/dist-sdk/src/entities/flow/activities/automation.d.ts +0 -12
  459. package/dist-sdk/src/entities/flow/activities/automation.js +0 -22
  460. package/dist-sdk/src/entities/flow/activities/ctx.d.ts +0 -34
  461. package/dist-sdk/src/entities/flow/activities/ctx.js +0 -38
  462. package/dist-sdk/src/entities/flow/activities/form.d.ts +0 -22
  463. package/dist-sdk/src/entities/flow/activities/form.js +0 -36
  464. package/dist-sdk/src/entities/flow/activities/index.d.ts +0 -14
  465. package/dist-sdk/src/entities/flow/activities/index.js +0 -13
  466. package/dist-sdk/src/entities/flow/activities/input-refs.d.ts +0 -39
  467. package/dist-sdk/src/entities/flow/activities/input-refs.js +0 -19
  468. package/dist-sdk/src/entities/flow/activities/prompt-template.d.ts +0 -13
  469. package/dist-sdk/src/entities/flow/activities/prompt-template.js +0 -34
  470. package/dist-sdk/src/entities/flow/activities/types.d.ts +0 -33
  471. package/dist-sdk/src/entities/flow/build.d.ts +0 -38
  472. package/dist-sdk/src/entities/flow/build.js +0 -115
  473. package/dist-sdk/src/entities/flow/index.d.ts +0 -8
  474. package/dist-sdk/src/entities/flow/index.js +0 -7
  475. package/dist-sdk/src/entities/flow/serialize.d.ts +0 -51
  476. package/dist-sdk/src/entities/flow/serialize.js +0 -94
  477. package/dist-sdk/src/entities/flow/util.d.ts +0 -27
  478. package/dist-sdk/src/entities/flow/util.js +0 -38
  479. package/dist-sdk/src/entities/table/filter.d.ts +0 -41
  480. package/dist-sdk/src/entities/table/filter.js +0 -89
  481. /package/dist-sdk/src/entities/{flow/activities/types.js → datamine/build.js} +0 -0
@@ -6,19 +6,24 @@
6
6
  * module never names the app's own resource type.
7
7
  */
8
8
  import { optionalString, plainObject, resourceRefLabel } from "../../engine/pull/context.js";
9
- import { isTfExpr, scopedLabelToBagKey } from "../../engine/tf/index.js";
9
+ import { reportUnknownAttrs } from "../../engine/pull/attrs.js";
10
+ import { isTfExpr, scopedLabelToBagKey, tfLabelToTsLabel } from "../../engine/tf/index.js";
10
11
  import { fieldKeyFromTfRef } from "../field/from-tf.js";
11
- import { GROUP_SECTION_WIRE_TYPE, KNOWN_LAYOUT_ATTRS, KNOWN_LAYOUT_SECTION_ATTRS, KNOWN_LIST_VIEW_ATTRS, KNOWN_MANAGED_VIEW_ORDER_ATTRS, LIST_VIEW_RESOURCE_TYPE, SECTION_TYPE_FROM_WIRE, SYSTEM_FIELD_KEY_BY_ID_ATTR, UPDATE_SECTION_WIRE_TYPE, } from "./types.js";
12
- /** Report every attribute key not in `known` as dialect growth — shared by all four view/section passes below. */
13
- function reportUnknownAttrs(attrs, known, where, passName, ctx) {
14
- for (const key of Object.keys(attrs)) {
15
- if (!known.has(key)) {
16
- ctx.diagnostics.push(`${where}: unhandled attribute "${key}" — the export dialect grew; extend ${passName} deliberately`);
17
- }
18
- }
12
+ import { DASHBOARD_RESOURCE_TYPE } from "../dashboard/module.js";
13
+ import { filterFromTf, principalList } from "../access-policy/from-tf.js";
14
+ import { listViewDensity, } from "./build.js";
15
+ import { AGENT_VIEW_RESOURCE_TYPE, CALENDAR_VIEW_RESOURCE_TYPE, DASHBOARD_VIEW_RESOURCE_TYPE, GROUP_SECTION_WIRE_TYPE, KNOWN_AGENT_VIEW_ATTRS, KNOWN_CALENDAR_VIEW_ATTRS, KNOWN_DASHBOARD_VIEW_ATTRS, KNOWN_KANBAN_VIEW_ATTRS, KNOWN_LAYOUT_ATTRS, KNOWN_LAYOUT_SECTION_ATTRS, KNOWN_LIST_VIEW_ATTRS, KNOWN_MANAGED_VIEW_ORDER_ATTRS, LIST_VIEW_RESOURCE_TYPE, KANBAN_VIEW_RESOURCE_TYPE, SECTION_TYPE_FROM_WIRE, SYSTEM_FIELD_KEY_BY_ID_ATTR, UPDATE_SECTION_WIRE_TYPE, } from "./types.js";
16
+ function viewFilter(value, owner, where) {
17
+ return value === undefined ? undefined : filterFromTf(value, {
18
+ type: owner.type,
19
+ label: owner.label,
20
+ ownerRefName: tfLabelToTsLabel(owner.label),
21
+ ownerTfLabel: owner.ownerTfLabel,
22
+ scope: owner.scope ?? "app",
23
+ }, `${where}.filter`);
19
24
  }
20
25
  /** All three view resource kinds → the normalized shapes the app printer consumes. */
21
- export function viewsFromTf(layoutBlocks, listViewBlocks, managedViewOrderBlocks, owner, ctx) {
26
+ export function viewsFromTf(layoutBlocks, listViewBlocks, calendarViewBlocks, kanbanViewBlocks, dashboardViewBlocks, agentViewBlocks, managedViewOrderBlocks, owner, ctx) {
22
27
  const layouts = [];
23
28
  for (const block of layoutBlocks) {
24
29
  const layout = layoutFromTf(block, owner, ctx);
@@ -26,12 +31,44 @@ export function viewsFromTf(layoutBlocks, listViewBlocks, managedViewOrderBlocks
26
31
  layouts.push(layout);
27
32
  }
28
33
  const listViews = [];
29
- const keyByTfLabel = new Map();
34
+ const keyByAddress = new Map();
30
35
  for (const block of listViewBlocks) {
31
36
  const view = listViewFromTf(block, owner, ctx);
32
37
  if (view !== undefined) {
33
38
  listViews.push(view);
34
- keyByTfLabel.set(block.label ?? "", view.key);
39
+ keyByAddress.set(`${LIST_VIEW_RESOURCE_TYPE}.${block.label ?? ""}`, view.key);
40
+ }
41
+ }
42
+ const agentViews = [];
43
+ for (const block of agentViewBlocks) {
44
+ const view = agentViewFromTf(block, owner, ctx);
45
+ if (view !== undefined) {
46
+ agentViews.push(view);
47
+ keyByAddress.set(`${AGENT_VIEW_RESOURCE_TYPE}.${block.label ?? ""}`, view.key);
48
+ }
49
+ }
50
+ const calendarViews = [];
51
+ for (const block of calendarViewBlocks) {
52
+ const view = calendarViewFromTf(block, owner, ctx);
53
+ if (view !== undefined) {
54
+ calendarViews.push(view);
55
+ keyByAddress.set(`${CALENDAR_VIEW_RESOURCE_TYPE}.${block.label ?? ""}`, view.key);
56
+ }
57
+ }
58
+ const kanbanViews = [];
59
+ for (const block of kanbanViewBlocks) {
60
+ const view = kanbanViewFromTf(block, owner, ctx);
61
+ if (view !== undefined) {
62
+ kanbanViews.push(view);
63
+ keyByAddress.set(`${KANBAN_VIEW_RESOURCE_TYPE}.${block.label ?? ""}`, view.key);
64
+ }
65
+ }
66
+ const dashboardViews = [];
67
+ for (const block of dashboardViewBlocks) {
68
+ const view = dashboardViewFromTf(block, owner, ctx);
69
+ if (view !== undefined) {
70
+ dashboardViews.push(view);
71
+ keyByAddress.set(`${DASHBOARD_VIEW_RESOURCE_TYPE}.${block.label ?? ""}`, view.key);
35
72
  }
36
73
  }
37
74
  // Singleton per aspect — at most one block is expected; extras are reported.
@@ -41,9 +78,137 @@ export function viewsFromTf(layoutBlocks, listViewBlocks, managedViewOrderBlocks
41
78
  ctx.diagnostics.push(`unexpected additional elementum_managed_view_order.${block.label ?? "?"} for one aspect; ignored`);
42
79
  continue;
43
80
  }
44
- viewOrder = managedViewOrderFromTf(block, owner, keyByTfLabel, ctx);
81
+ viewOrder = managedViewOrderFromTf(block, owner, keyByAddress, ctx);
82
+ }
83
+ return { layouts, listViews, calendarViews, kanbanViews, dashboardViews, agentViews, ...(viewOrder !== undefined ? { viewOrder } : {}) };
84
+ }
85
+ function dashboardViewFromTf(block, owner, ctx) {
86
+ const label = block.label;
87
+ if (label === undefined || label === "") {
88
+ ctx.diagnostics.push(`${DASHBOARD_VIEW_RESOURCE_TYPE} block is missing its label; skipped`);
89
+ return undefined;
90
+ }
91
+ const attrs = block.attrs;
92
+ const where = `dashboard view "${label}"`;
93
+ reportUnknownAttrs(attrs, KNOWN_DASHBOARD_VIEW_ATTRS, where, "dashboardViewFromTf", ctx);
94
+ if (resourceRefLabel(attrs["aspect_id"], owner.type) !== owner.label) {
95
+ ctx.diagnostics.push(`${where}: aspect_id does not reference ${owner.type}.${owner.label}; skipped`);
96
+ return undefined;
97
+ }
98
+ const dashboardLabel = resourceRefLabel(attrs["dashboard_id"], DASHBOARD_RESOURCE_TYPE);
99
+ if (dashboardLabel === undefined) {
100
+ ctx.diagnostics.push(`${where}: dashboard_id is not a ${DASHBOARD_RESOURCE_TYPE} resource reference; skipped`);
101
+ return undefined;
102
+ }
103
+ const scope = owner.scope ?? "app";
104
+ const sort = managedViewSortFromTf(attrs["sort"], owner, where, ctx);
105
+ const userIds = principalList(attrs["user_ids"], "elementum_user", `${where}: user_ids`, ctx);
106
+ const groupIds = principalList(attrs["group_ids"], "elementum_group", `${where}: group_ids`, ctx);
107
+ const filter = viewFilter(attrs["filter"], owner, where);
108
+ return {
109
+ key: scopedLabelToBagKey(owner.ownerTfLabel, label, scope),
110
+ name: optionalString(attrs, "name", where, ctx) ?? "",
111
+ dashboardKey: scopedLabelToBagKey(owner.ownerTfLabel, dashboardLabel, scope),
112
+ ...(typeof attrs["allow_record_creation"] === "boolean" && { allowRecordCreation: attrs["allow_record_creation"] }),
113
+ ...(filter !== undefined && { filter }),
114
+ ...(sort !== undefined && { sort }),
115
+ ...(userIds !== undefined && { userIds }),
116
+ ...(groupIds !== undefined && { groupIds }),
117
+ };
118
+ }
119
+ function calendarViewFromTf(block, owner, ctx) {
120
+ return typedFieldViewFromTf(block, owner, CALENDAR_VIEW_RESOURCE_TYPE, KNOWN_CALENDAR_VIEW_ATTRS, false, ctx);
121
+ }
122
+ function kanbanViewFromTf(block, owner, ctx) {
123
+ return typedFieldViewFromTf(block, owner, KANBAN_VIEW_RESOURCE_TYPE, KNOWN_KANBAN_VIEW_ATTRS, true, ctx);
124
+ }
125
+ function typedFieldViewFromTf(block, owner, resourceType, knownAttrs, includeAllowedFilterFields, ctx) {
126
+ const label = block.label;
127
+ if (label === undefined || label === "") {
128
+ ctx.diagnostics.push(`${resourceType} block is missing its label; skipped`);
129
+ return undefined;
130
+ }
131
+ const attrs = block.attrs;
132
+ const kind = resourceType === CALENDAR_VIEW_RESOURCE_TYPE ? "calendar" : "kanban";
133
+ const where = `${kind} view "${label}"`;
134
+ reportUnknownAttrs(attrs, knownAttrs, where, `${kind}ViewFromTf`, ctx);
135
+ if (resourceRefLabel(attrs["aspect_id"], owner.type) !== owner.label) {
136
+ ctx.diagnostics.push(`${where}: aspect_id does not reference ${owner.type}.${owner.label}; skipped`);
137
+ return undefined;
138
+ }
139
+ const scope = owner.scope ?? "app";
140
+ const readFields = (attr) => {
141
+ const raw = attrs[attr];
142
+ if (raw === undefined)
143
+ return undefined;
144
+ if (!Array.isArray(raw)) {
145
+ ctx.diagnostics.push(`${where}: ${attr} is not a list; dropped`);
146
+ return undefined;
147
+ }
148
+ const fields = [];
149
+ for (const value of raw) {
150
+ const key = fieldRefFromTf(value, owner.label, owner.ownerTfLabel, scope, ctx);
151
+ if (key !== undefined)
152
+ fields.push(key);
153
+ }
154
+ return fields;
155
+ };
156
+ const columns = readFields("columns") ?? [];
157
+ const displayByField = attrs["display_by_field"] !== undefined
158
+ ? fieldRefFromTf(attrs["display_by_field"], owner.label, owner.ownerTfLabel, scope, ctx)
159
+ : undefined;
160
+ const allowedFilterFields = includeAllowedFilterFields ? readFields("allowed_filter_fields") : undefined;
161
+ const sort = managedViewSortFromTf(attrs["sort"], owner, where, ctx);
162
+ const userIds = principalList(attrs["user_ids"], "elementum_user", `${where}: user_ids`, ctx);
163
+ const groupIds = principalList(attrs["group_ids"], "elementum_group", `${where}: group_ids`, ctx);
164
+ const filter = viewFilter(attrs["filter"], owner, where);
165
+ return {
166
+ key: scopedLabelToBagKey(owner.ownerTfLabel, label, scope),
167
+ name: optionalString(attrs, "name", where, ctx) ?? "",
168
+ columns,
169
+ ...(displayByField !== undefined && { displayByField }),
170
+ ...(allowedFilterFields !== undefined && { allowedFilterFields }),
171
+ ...(typeof attrs["allow_record_creation"] === "boolean" && { allowRecordCreation: attrs["allow_record_creation"] }),
172
+ ...(filter !== undefined && { filter }),
173
+ ...(sort !== undefined && { sort }),
174
+ ...(userIds !== undefined && { userIds }),
175
+ ...(groupIds !== undefined && { groupIds }),
176
+ };
177
+ }
178
+ function agentViewFromTf(block, owner, ctx) {
179
+ const label = block.label;
180
+ if (label === undefined || label === "") {
181
+ ctx.diagnostics.push(`${AGENT_VIEW_RESOURCE_TYPE} block is missing its label; skipped`);
182
+ return undefined;
45
183
  }
46
- return { layouts, listViews, ...(viewOrder !== undefined ? { viewOrder } : {}) };
184
+ const attrs = block.attrs;
185
+ const where = `agent view "${label}"`;
186
+ reportUnknownAttrs(attrs, KNOWN_AGENT_VIEW_ATTRS, where, "agentViewFromTf", ctx);
187
+ if (resourceRefLabel(attrs["aspect_id"], owner.type) !== owner.label) {
188
+ ctx.diagnostics.push(`${where}: aspect_id does not reference ${owner.type}.${owner.label}; skipped`);
189
+ return undefined;
190
+ }
191
+ const agentLabel = resourceRefLabel(attrs["agent_id"], "elementum_agent");
192
+ if (agentLabel === undefined) {
193
+ ctx.diagnostics.push(`${where}: agent_id is not an elementum_agent resource reference; skipped`);
194
+ return undefined;
195
+ }
196
+ const scope = owner.scope ?? "app";
197
+ const sort = managedViewSortFromTf(attrs["sort"], owner, where, ctx);
198
+ const userIds = principalList(attrs["user_ids"], "elementum_user", `${where}: user_ids`, ctx);
199
+ const groupIds = principalList(attrs["group_ids"], "elementum_group", `${where}: group_ids`, ctx);
200
+ const filter = viewFilter(attrs["filter"], owner, where);
201
+ return {
202
+ key: scopedLabelToBagKey(owner.ownerTfLabel, label, scope),
203
+ name: optionalString(attrs, "name", where, ctx) ?? "",
204
+ agentKey: scopedLabelToBagKey(owner.ownerTfLabel, agentLabel, scope),
205
+ ...(typeof attrs["allow_record_creation"] === "boolean" && { allowRecordCreation: attrs["allow_record_creation"] }),
206
+ ...(filter !== undefined && { filter }),
207
+ ...(sort !== undefined && { sort }),
208
+ ...(userIds !== undefined && { userIds }),
209
+ ...(groupIds !== undefined && { groupIds }),
210
+ ...(typeof attrs["display_order"] === "number" && { displayOrder: attrs["display_order"] }),
211
+ };
47
212
  }
48
213
  function layoutFromTf(block, owner, ctx) {
49
214
  const label = block.label ?? "";
@@ -111,6 +276,8 @@ function sectionFromTf(raw, ownerLabel, ownerTfLabel, scope, where, ctx) {
111
276
  section.icon = rec["icon"];
112
277
  if (typeof rec["color"] === "string")
113
278
  section.color = rec["color"];
279
+ if (typeof rec["max_columns"] === "number")
280
+ section.maxColumns = rec["max_columns"];
114
281
  const fieldIds = rec["field_ids"];
115
282
  if (Array.isArray(fieldIds)) {
116
283
  const fields = [];
@@ -175,38 +342,91 @@ function listViewFromTf(block, owner, ctx) {
175
342
  else if (columnsAttr !== undefined) {
176
343
  ctx.diagnostics.push(`${where}: columns is not a list; dropped`);
177
344
  }
178
- // Opaque JSON pass-through: `elementum build` is stateless and never reads
179
- // current state, so if these were left unauthored, `to-tf` would author
345
+ // `elementum build` is stateless and never reads current state, so if these
346
+ // were left unauthored, `to-tf` would author
180
347
  // "absent" — forcing terraform to null out whatever's actually live on
181
348
  // every plan. Confirmed live: that trips a real provider bug ("provider
182
349
  // produced inconsistent result after apply", .sort was null but is still
183
350
  // reported non-null) on ANY list view with either attribute set. Round-
184
- // tripping the raw value, opaque and untyped, avoids ever manufacturing
185
- // that diff in the first place.
186
- const filter = jsonencodeValue(attrs["filter"]);
187
- const sort = jsonencodeValue(attrs["sort"]);
188
- if (attrs["filter"] !== undefined && filter === undefined) {
189
- ctx.diagnostics.push(`${where}: filter is not a jsonencode(...) expression; dropped`);
190
- }
191
- if (attrs["sort"] !== undefined && sort === undefined) {
192
- ctx.diagnostics.push(`${where}: sort is not a jsonencode(...) expression; dropped`);
193
- }
351
+ // round-tripping both values avoids ever manufacturing that diff. Filters
352
+ // and sorts decode through their shared typed codecs.
353
+ const filter = viewFilter(attrs["filter"], owner, where);
354
+ const sort = managedViewSortFromTf(attrs["sort"], owner, where, ctx);
355
+ const density = listViewDensityFromTf(attrs["density"], where, ctx);
356
+ const userIds = principalList(attrs["user_ids"], "elementum_user", `${where}: user_ids`, ctx);
357
+ const groupIds = principalList(attrs["group_ids"], "elementum_group", `${where}: group_ids`, ctx);
194
358
  return {
195
359
  key: scopedLabelToBagKey(owner.ownerTfLabel, label, scope),
196
360
  name,
197
361
  columns,
198
362
  ...(typeof attrs["allow_record_creation"] === "boolean" && { allowRecordCreation: attrs["allow_record_creation"] }),
199
- ...(typeof attrs["density"] === "string" && { density: attrs["density"] }),
363
+ ...(density !== undefined && { density }),
200
364
  ...(typeof attrs["rows"] === "number" && { rows: attrs["rows"] }),
201
365
  ...(filter !== undefined && { filter }),
202
366
  ...(sort !== undefined && { sort }),
367
+ ...(userIds !== undefined && { userIds }),
368
+ ...(groupIds !== undefined && { groupIds }),
203
369
  };
204
370
  }
205
371
  /** `jsonencode({...})` → its decoded payload; undefined for any other shape. */
206
372
  function jsonencodeValue(v) {
207
373
  return v !== undefined && isTfExpr(v) && v.$expr === "jsonencode" ? v.value : undefined;
208
374
  }
209
- function managedViewOrderFromTf(block, owner, keyByTfLabel, ctx) {
375
+ function managedViewSortFromTf(value, owner, where, ctx) {
376
+ if (value === undefined)
377
+ return undefined;
378
+ const decoded = jsonencodeValue(value);
379
+ if (decoded === undefined) {
380
+ ctx.diagnostics.push(`${where}: sort is not a jsonencode(...) expression; dropped`);
381
+ return undefined;
382
+ }
383
+ const sort = plainObject(decoded);
384
+ if (sort === undefined || Object.keys(sort).some((key) => key !== "orders") || !Array.isArray(sort["orders"])) {
385
+ ctx.diagnostics.push(`${where}: sort must be { orders: [...] }; dropped`);
386
+ return undefined;
387
+ }
388
+ const orders = [];
389
+ for (const [index, rawOrder] of sort["orders"].entries()) {
390
+ const order = plainObject(rawOrder);
391
+ const direction = order?.["direction"];
392
+ const aggregation = order?.["aggregation"];
393
+ if (order === undefined
394
+ || Object.keys(order).some((key) => key !== "field" && key !== "aggregation" && key !== "direction")
395
+ || (direction !== "ASC" && direction !== "DESC")
396
+ || !isManagedViewSortAggregation(aggregation)) {
397
+ ctx.diagnostics.push(`${where}: sort.orders[${index}] has an invalid managed-view order; dropped sort`);
398
+ return undefined;
399
+ }
400
+ const rawField = order["field"];
401
+ const field = typeof rawField === "string"
402
+ ? (PLATFORM_ID.test(rawField) ? rawField : undefined)
403
+ : fieldRefFromTf(rawField, owner.label, owner.ownerTfLabel, owner.scope ?? "app", ctx);
404
+ if (field === undefined) {
405
+ ctx.diagnostics.push(`${where}: sort.orders[${index}].field does not resolve to a field; dropped sort`);
406
+ return undefined;
407
+ }
408
+ orders.push({
409
+ field,
410
+ ...(aggregation !== undefined ? { aggregation } : {}),
411
+ direction,
412
+ });
413
+ }
414
+ return { orders };
415
+ }
416
+ const PLATFORM_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
417
+ function isManagedViewSortAggregation(value) {
418
+ return value === undefined || value === null || value === "AVERAGE" || value === "COUNT" || value === "MAX" || value === "MIN" || value === "SUM";
419
+ }
420
+ function listViewDensityFromTf(value, where, ctx) {
421
+ if (value === undefined)
422
+ return undefined;
423
+ if (value === listViewDensity.comfortable || value === listViewDensity.compact || value === listViewDensity.standard) {
424
+ return value;
425
+ }
426
+ ctx.diagnostics.push(`${where}: density must be COMFORTABLE, COMPACT, or STANDARD; dropped`);
427
+ return undefined;
428
+ }
429
+ function managedViewOrderFromTf(block, owner, keyByAddress, ctx) {
210
430
  const label = block.label ?? "?";
211
431
  const attrs = block.attrs;
212
432
  const where = `managed view order "${label}"`;
@@ -223,8 +443,22 @@ function managedViewOrderFromTf(block, owner, keyByTfLabel, ctx) {
223
443
  }
224
444
  const order = [];
225
445
  for (const v of viewIdsAttr) {
226
- const tfLabel = resourceRefLabel(v, LIST_VIEW_RESOURCE_TYPE);
227
- const key = tfLabel !== undefined ? keyByTfLabel.get(tfLabel) : undefined;
446
+ const listLabel = resourceRefLabel(v, LIST_VIEW_RESOURCE_TYPE);
447
+ const agentLabel = resourceRefLabel(v, AGENT_VIEW_RESOURCE_TYPE);
448
+ const calendarLabel = resourceRefLabel(v, CALENDAR_VIEW_RESOURCE_TYPE);
449
+ const kanbanLabel = resourceRefLabel(v, KANBAN_VIEW_RESOURCE_TYPE);
450
+ const dashboardLabel = resourceRefLabel(v, DASHBOARD_VIEW_RESOURCE_TYPE);
451
+ const key = listLabel !== undefined
452
+ ? keyByAddress.get(`${LIST_VIEW_RESOURCE_TYPE}.${listLabel}`)
453
+ : agentLabel !== undefined
454
+ ? keyByAddress.get(`${AGENT_VIEW_RESOURCE_TYPE}.${agentLabel}`)
455
+ : calendarLabel !== undefined
456
+ ? keyByAddress.get(`${CALENDAR_VIEW_RESOURCE_TYPE}.${calendarLabel}`)
457
+ : kanbanLabel !== undefined
458
+ ? keyByAddress.get(`${KANBAN_VIEW_RESOURCE_TYPE}.${kanbanLabel}`)
459
+ : dashboardLabel !== undefined
460
+ ? keyByAddress.get(`${DASHBOARD_VIEW_RESOURCE_TYPE}.${dashboardLabel}`)
461
+ : undefined;
228
462
  if (key === undefined) {
229
463
  ctx.diagnostics.push(`${where}: a view_ids entry does not resolve to a known list view; dropped`);
230
464
  continue;
@@ -7,18 +7,11 @@ import { type EntityKindModule } from "../../graph/types.js";
7
7
  export declare const viewModule: EntityKindModule;
8
8
  /**
9
9
  * `elementum_managed_view_order` is a singleton per aspect with no identity
10
- * of its own — ei's export carries the OWNING APP's id as its import id
11
- * (confirmed live against `prestonhigh`: both `elementum_app.prestonhigh`
12
- * and `elementum_managed_view_order.preston_high_students_view_order` import
13
- * the same platform id). Adopting it through the generic targeted-import
14
- * gate would collide with the app's own state binding (same id, two
15
- * addresses) — the gate correctly refuses to guess rather than silently
16
- * mis-binding it. So: scoped for the build-vs-export (build does emit it, so a
17
- * stream mismatch still gets caught) but NOT adoptable. Left unresolved:
18
- * whether a plan/apply against an app whose view order already exists on
19
- * the platform treats this as a safe no-op create or errors "already
20
- * exists" — not yet verified live. Until confirmed, treat a fresh
21
- * `elementum apply` on an adopted app with pre-existing list views as a real open
22
- * risk, not a settled case.
10
+ * of its own: its import/state id is the owning app or element id. That id is
11
+ * therefore intentionally shared with the owner's resource at a different
12
+ * Terraform resource type, just like `elementum_record_create_form`.
13
+ * Adoption scopes identity by resource type, so both bindings can be safely
14
+ * imported and recognized on re-pull. Leaving this resource unadopted makes a
15
+ * freshly pulled workspace plan a create that would reorder the live views.
23
16
  */
24
17
  export declare const managedViewOrderModule: EntityKindModule;
@@ -1,6 +1,6 @@
1
1
  /** The view entity's registry entries (see src/graph/). */
2
2
  import { NO_CANVAS, NO_CATALOG, NO_DATA, NO_LIFECYCLE, } from "../../graph/types.js";
3
- import { LAYOUT_RESOURCE_TYPE, LIST_VIEW_RESOURCE_TYPE, MANAGED_VIEW_ORDER_RESOURCE_TYPE, } from "./types.js";
3
+ import { AGENT_VIEW_RESOURCE_TYPE, CALENDAR_VIEW_RESOURCE_TYPE, DASHBOARD_VIEW_RESOURCE_TYPE, KANBAN_VIEW_RESOURCE_TYPE, LAYOUT_RESOURCE_TYPE, LIST_VIEW_RESOURCE_TYPE, MANAGED_VIEW_ORDER_RESOURCE_TYPE, } from "./types.js";
4
4
  /**
5
5
  * Layouts + list views are stream members folded into the app authoring file
6
6
  * (inline), extracted by `appFromTf` — not own-file kinds.
@@ -18,6 +18,10 @@ export const viewModule = {
18
18
  rows: [
19
19
  { key: "layout", resourceType: LAYOUT_RESOURCE_TYPE, implemented: true },
20
20
  { key: "listView", resourceType: LIST_VIEW_RESOURCE_TYPE, implemented: true },
21
+ { key: "agentView", resourceType: AGENT_VIEW_RESOURCE_TYPE, implemented: true },
22
+ { key: "calendarView", resourceType: CALENDAR_VIEW_RESOURCE_TYPE, implemented: true },
23
+ { key: "dashboardView", resourceType: DASHBOARD_VIEW_RESOURCE_TYPE, implemented: true },
24
+ { key: "kanbanView", resourceType: KANBAN_VIEW_RESOURCE_TYPE, implemented: true },
21
25
  ],
22
26
  },
23
27
  data: NO_DATA,
@@ -27,19 +31,12 @@ export const viewModule = {
27
31
  };
28
32
  /**
29
33
  * `elementum_managed_view_order` is a singleton per aspect with no identity
30
- * of its own — ei's export carries the OWNING APP's id as its import id
31
- * (confirmed live against `prestonhigh`: both `elementum_app.prestonhigh`
32
- * and `elementum_managed_view_order.preston_high_students_view_order` import
33
- * the same platform id). Adopting it through the generic targeted-import
34
- * gate would collide with the app's own state binding (same id, two
35
- * addresses) — the gate correctly refuses to guess rather than silently
36
- * mis-binding it. So: scoped for the build-vs-export (build does emit it, so a
37
- * stream mismatch still gets caught) but NOT adoptable. Left unresolved:
38
- * whether a plan/apply against an app whose view order already exists on
39
- * the platform treats this as a safe no-op create or errors "already
40
- * exists" — not yet verified live. Until confirmed, treat a fresh
41
- * `elementum apply` on an adopted app with pre-existing list views as a real open
42
- * risk, not a settled case.
34
+ * of its own: its import/state id is the owning app or element id. That id is
35
+ * therefore intentionally shared with the owner's resource at a different
36
+ * Terraform resource type, just like `elementum_record_create_form`.
37
+ * Adoption scopes identity by resource type, so both bindings can be safely
38
+ * imported and recognized on re-pull. Leaving this resource unadopted makes a
39
+ * freshly pulled workspace plan a create that would reorder the live views.
43
40
  */
44
41
  export const managedViewOrderModule = {
45
42
  kind: "managed-view-order",
@@ -52,7 +49,7 @@ export const managedViewOrderModule = {
52
49
  resource: {
53
50
  shape: "single",
54
51
  resourceType: MANAGED_VIEW_ORDER_RESOURCE_TYPE,
55
- adoptable: false,
52
+ adoptable: true,
56
53
  },
57
54
  data: NO_DATA,
58
55
  lifecycle: NO_LIFECYCLE,
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Managed-view visibility — who can see a saved list/calendar/kanban/dashboard/
3
+ * agent view. Maps to HCL `user_ids` / `group_ids` on view resources (not
4
+ * `elementum_access_policy`, which is record-level on the owning aspect).
5
+ */
6
+ import type { AccessPolicyGroupRef, AccessPolicyUserRef } from "../access-policy/principal.js";
7
+ export interface ManagedViewSharing {
8
+ readonly userIds?: readonly AccessPolicyUserRef[];
9
+ readonly groupIds?: readonly AccessPolicyGroupRef[];
10
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Managed-view visibility — who can see a saved list/calendar/kanban/dashboard/
3
+ * agent view. Maps to HCL `user_ids` / `group_ids` on view resources (not
4
+ * `elementum_access_policy`, which is record-level on the owning aspect).
5
+ */
6
+ export {};
@@ -5,18 +5,22 @@
5
5
  * and supplies the `objectId` back-reference — this module never names the
6
6
  * app's own resource type.
7
7
  *
8
- * Unsupported authoring shapes degrade through `diagnostics` — reported,
9
- * never silent. `children`-shaped structural breakage isn't possible here
10
- * (views have no nested sub-entities of their own), so this module never
11
- * throws `EntityTfError`.
8
+ * Unsupported structural view shapes degrade through `diagnostics` —
9
+ * reported, never silent. Invalid authored filter trees fail at build time
10
+ * with the same `EntityTfError` path used by access-policy row filters.
12
11
  */
13
12
  import { type ChildResourceScope, type TfBlock, type TfValue } from "../../engine/tf/index.js";
13
+ import type { Filter } from "../shared/filters/types.js";
14
+ import type { ManagedViewSharing } from "./sharing.js";
15
+ import type { ListViewDensity, ManagedViewSort } from "./build.js";
16
+ import type { UnsafePlatformId } from "../../core/platform-id.js";
17
+ import type { OrgRefLookup } from "../../engine/build/context.js";
14
18
  /** The authored field-ref shape post-`slimTokens`: a system key string, or a slimmed `FieldRef` token. */
15
19
  export type ViewFieldRefWire = string | {
16
20
  readonly __kind?: string;
17
21
  readonly refName?: string;
18
22
  readonly fieldType?: string;
19
- };
23
+ } | UnsafePlatformId;
20
24
  export interface AppLayoutSectionWire {
21
25
  readonly type?: string;
22
26
  readonly displayLocation?: string;
@@ -25,23 +29,58 @@ export interface AppLayoutSectionWire {
25
29
  readonly name?: string;
26
30
  readonly icon?: string;
27
31
  readonly color?: string;
32
+ readonly maxColumns?: number;
28
33
  readonly fields?: readonly ViewFieldRefWire[];
29
34
  }
30
35
  export interface AppLayoutWire {
31
36
  readonly sections: readonly AppLayoutSectionWire[];
32
37
  }
33
- export interface AppListViewWire {
38
+ export interface AppListViewWire extends ManagedViewSharing {
34
39
  readonly name?: string;
35
40
  readonly columns?: readonly ViewFieldRefWire[];
36
41
  readonly allowRecordCreation?: boolean;
37
- readonly density?: string;
42
+ readonly density?: ListViewDensity;
38
43
  readonly rows?: number;
39
- /** Opaque JSON pass-through (see `entities/app/build.ts`'s `AppListView.filter` for why). */
40
- readonly filter?: unknown;
41
- /** Opaque JSON pass-through — see `filter`. */
42
- readonly sort?: unknown;
44
+ /** Provider filter tree; authored field tokens resolve to deployed field IDs. */
45
+ readonly filter?: Filter;
46
+ readonly sort?: ManagedViewSort;
47
+ }
48
+ export interface AppAgentViewWire extends ManagedViewSharing {
49
+ readonly name?: string;
50
+ readonly agent?: {
51
+ readonly refName?: string;
52
+ readonly parent?: string;
53
+ };
54
+ readonly allowRecordCreation?: boolean;
55
+ readonly filter?: Filter;
56
+ readonly sort?: ManagedViewSort;
57
+ readonly displayOrder?: number;
58
+ }
59
+ export interface AppCalendarViewWire extends ManagedViewSharing {
60
+ readonly name?: string;
61
+ readonly columns?: readonly ViewFieldRefWire[];
62
+ readonly displayByField?: ViewFieldRefWire;
63
+ readonly allowRecordCreation?: boolean;
64
+ readonly filter?: Filter;
65
+ readonly sort?: ManagedViewSort;
66
+ }
67
+ export interface AppKanbanViewWire extends AppCalendarViewWire {
68
+ readonly allowedFilterFields?: readonly ViewFieldRefWire[];
69
+ }
70
+ export interface AppDashboardViewWire extends ManagedViewSharing {
71
+ readonly name?: string;
72
+ readonly dashboard?: {
73
+ readonly __kind?: string;
74
+ readonly refName?: string;
75
+ readonly parent?: string;
76
+ } | string;
77
+ readonly allowRecordCreation?: boolean;
78
+ readonly filter?: Filter;
79
+ readonly sort?: ManagedViewSort;
43
80
  }
44
81
  export interface ViewToTfOptions {
82
+ /** Owning authoring refName, for validating catalog-token parents. */
83
+ readonly ownerRefName: string;
45
84
  /** The owning stream root's terraform label (namespace). */
46
85
  readonly ownerTfLabel: string;
47
86
  /** App children use `apps_<ns>_`; element children use `<ns>_`. */
@@ -55,6 +94,11 @@ export interface ViewToTfOptions {
55
94
  readonly aspectName: string;
56
95
  /** The owning aspect's id reference — computed by the caller. */
57
96
  readonly objectId: TfValue;
97
+ /** App stage terraform labels declared by systemFields.stage.options. */
98
+ readonly stageTfLabels?: ReadonlySet<string>;
99
+ /** Declared sibling dashboard keys, for fail-fast dashboard-view references. */
100
+ readonly dashboardKeys?: ReadonlySet<string>;
101
+ readonly orgRefs?: OrgRefLookup;
58
102
  /** Degradations land here — reported by the caller, never silent. */
59
103
  readonly diagnostics: string[];
60
104
  }
@@ -62,4 +106,4 @@ export interface ViewToTfResult {
62
106
  readonly blocks: readonly TfBlock[];
63
107
  }
64
108
  /** `layouts`/`listViews`/`viewOrder` → their resource blocks, in ei's dialect. */
65
- export declare function viewToTf(layouts: Readonly<Record<string, AppLayoutWire>> | undefined, listViews: Readonly<Record<string, AppListViewWire>> | undefined, viewOrder: readonly string[] | undefined, opts: ViewToTfOptions): ViewToTfResult;
109
+ export declare function viewToTf(layouts: Readonly<Record<string, AppLayoutWire>> | undefined, listViews: Readonly<Record<string, AppListViewWire>> | undefined, calendarViews: Readonly<Record<string, AppCalendarViewWire>> | undefined, kanbanViews: Readonly<Record<string, AppKanbanViewWire>> | undefined, dashboardViews: Readonly<Record<string, AppDashboardViewWire>> | undefined, agentViews: Readonly<Record<string, AppAgentViewWire>> | undefined, viewOrder: readonly string[] | undefined, opts: ViewToTfOptions): ViewToTfResult;