@elementumai/edk 0.8.2-alpha.5 → 0.9.2

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 (372) hide show
  1. package/README.md +18 -14
  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 +2 -10
  6. package/dist-sdk/elementum-entity-client/clients/skills/models/skill-tool.d.ts +1 -1
  7. package/dist-sdk/fs/entity.d.ts +2 -2
  8. package/dist-sdk/fs/entity.js +1 -1
  9. package/dist-sdk/pull/missing-report.d.ts +81 -0
  10. package/dist-sdk/pull/missing-report.js +52 -0
  11. package/dist-sdk/src/catalog/factories.d.ts +53 -19
  12. package/dist-sdk/src/catalog/factories.js +51 -12
  13. package/dist-sdk/src/catalog/from-authoring.js +13 -3
  14. package/dist-sdk/src/catalog/index.d.ts +2 -2
  15. package/dist-sdk/src/catalog/index.js +1 -1
  16. package/dist-sdk/src/catalog/org.js +1 -0
  17. package/dist-sdk/src/catalog/render.js +6 -0
  18. package/dist-sdk/src/catalog/token.js +7 -0
  19. package/dist-sdk/src/catalog/types.d.ts +34 -23
  20. package/dist-sdk/src/catalog/types.js +7 -4
  21. package/dist-sdk/src/core/app-to-ui.d.ts +6 -6
  22. package/dist-sdk/src/core/app-to-ui.js +7 -9
  23. package/dist-sdk/src/core/index.d.ts +1 -0
  24. package/dist-sdk/src/core/index.js +1 -0
  25. package/dist-sdk/src/core/platform-id.d.ts +11 -0
  26. package/dist-sdk/src/core/platform-id.js +8 -0
  27. package/dist-sdk/src/{entities/flow/activities/render-catalog.d.ts → core/render-tree.d.ts} +2 -2
  28. package/dist-sdk/src/{entities/flow/activities/render-catalog.js → core/render-tree.js} +6 -8
  29. package/dist-sdk/src/core/types/app.d.ts +13 -23
  30. package/dist-sdk/src/core/types/app.js +0 -1
  31. package/dist-sdk/src/engine/build/context.d.ts +3 -3
  32. package/dist-sdk/src/engine/pull/attrs.d.ts +4 -0
  33. package/dist-sdk/src/engine/pull/attrs.js +17 -0
  34. package/dist-sdk/src/engine/pull/context.d.ts +39 -0
  35. package/dist-sdk/src/engine/pull/org.d.ts +1 -0
  36. package/dist-sdk/src/engine/pull/org.js +2 -0
  37. package/dist-sdk/src/engine/tf/expr.d.ts +1 -1
  38. package/dist-sdk/src/engine/tf/expr.js +10 -3
  39. package/dist-sdk/src/engine/workspace/authoring-layout.js +4 -2
  40. package/dist-sdk/src/entities/access-policy/build.d.ts +4 -13
  41. package/dist-sdk/src/entities/access-policy/build.js +1 -1
  42. package/dist-sdk/src/entities/access-policy/from-tf.d.ts +12 -38
  43. package/dist-sdk/src/entities/access-policy/from-tf.js +16 -74
  44. package/dist-sdk/src/entities/access-policy/principal.d.ts +29 -0
  45. package/dist-sdk/src/entities/access-policy/principal.js +13 -0
  46. package/dist-sdk/src/entities/access-policy/to-tf.d.ts +20 -5
  47. package/dist-sdk/src/entities/access-policy/to-tf.js +26 -54
  48. package/dist-sdk/src/entities/agent/build.d.ts +39 -8
  49. package/dist-sdk/src/entities/agent/build.js +36 -15
  50. package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.d.ts +5 -0
  51. package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +121 -36
  52. package/dist-sdk/src/entities/agent/from-tf.js +5 -8
  53. package/dist-sdk/src/entities/agent/index.d.ts +5 -2
  54. package/dist-sdk/src/entities/agent/index.js +4 -2
  55. package/dist-sdk/src/entities/agent/module.js +5 -2
  56. package/dist-sdk/src/entities/agent/run-as.d.ts +16 -0
  57. package/dist-sdk/src/entities/agent/run-as.js +1 -0
  58. package/dist-sdk/src/entities/agent/to-tf.d.ts +2 -1
  59. package/dist-sdk/src/entities/agent/to-tf.js +2 -1
  60. package/dist-sdk/src/entities/agent/tools.d.ts +60 -48
  61. package/dist-sdk/src/entities/agent/tools.js +44 -38
  62. package/dist-sdk/src/entities/agent-a2a-skill/from-tf.js +1 -1
  63. package/dist-sdk/src/entities/agent-a2a-skill/to-tf.js +4 -4
  64. package/dist-sdk/src/entities/agent-tool/from-tf.d.ts +17 -8
  65. package/dist-sdk/src/entities/agent-tool/from-tf.js +127 -37
  66. package/dist-sdk/src/entities/agent-tool/module.js +6 -0
  67. package/dist-sdk/src/entities/agent-tool/to-tf.d.ts +5 -5
  68. package/dist-sdk/src/entities/agent-tool/to-tf.js +93 -20
  69. package/dist-sdk/src/entities/agent-tool/types.d.ts +4 -5
  70. package/dist-sdk/src/entities/agent-tool/types.js +36 -8
  71. package/dist-sdk/src/entities/app/build.d.ts +137 -25
  72. package/dist-sdk/src/entities/app/build.js +104 -53
  73. package/dist-sdk/src/entities/app/deserializer/normalize.d.ts +173 -1
  74. package/dist-sdk/src/entities/app/deserializer/pulled-expression.d.ts +59 -0
  75. package/dist-sdk/src/entities/app/deserializer/pulled-expression.js +68 -0
  76. package/dist-sdk/src/entities/app/display-blocks.d.ts +2 -1
  77. package/dist-sdk/src/entities/app/display-blocks.js +1 -1
  78. package/dist-sdk/src/entities/app/from-tf.d.ts +11 -1
  79. package/dist-sdk/src/entities/app/from-tf.js +30 -2
  80. package/dist-sdk/src/entities/app/index.d.ts +13 -4
  81. package/dist-sdk/src/entities/app/index.js +8 -1
  82. package/dist-sdk/src/entities/app/module.js +27 -2
  83. package/dist-sdk/src/entities/app/to-tf.js +75 -1
  84. package/dist-sdk/src/entities/approval-chain/build.d.ts +31 -16
  85. package/dist-sdk/src/entities/approval-chain/build.js +49 -49
  86. package/dist-sdk/src/entities/approval-chain/from-tf.d.ts +17 -0
  87. package/dist-sdk/src/entities/approval-chain/from-tf.js +57 -0
  88. package/dist-sdk/src/entities/approval-chain/index.d.ts +2 -3
  89. package/dist-sdk/src/entities/approval-chain/index.js +2 -3
  90. package/dist-sdk/src/entities/approval-chain/module.d.ts +3 -0
  91. package/dist-sdk/src/entities/approval-chain/module.js +51 -0
  92. package/dist-sdk/src/entities/approval-chain/printer.d.ts +2 -0
  93. package/dist-sdk/src/entities/approval-chain/printer.js +21 -0
  94. package/dist-sdk/src/entities/approval-chain/to-tf.d.ts +9 -0
  95. package/dist-sdk/src/entities/approval-chain/to-tf.js +43 -0
  96. package/dist-sdk/src/entities/automation/build.d.ts +10 -6
  97. package/dist-sdk/src/entities/automation/build.js +5 -4
  98. package/dist-sdk/src/entities/automation/deserializer/ast.d.ts +10 -8
  99. package/dist-sdk/src/entities/automation/deserializer/print-automation.js +51 -114
  100. package/dist-sdk/src/entities/automation/filter.d.ts +1 -115
  101. package/dist-sdk/src/entities/automation/filter.js +1 -197
  102. package/dist-sdk/src/entities/automation/from-tf.d.ts +4 -0
  103. package/dist-sdk/src/entities/automation/from-tf.js +202 -119
  104. package/dist-sdk/src/entities/automation/index.d.ts +4 -2
  105. package/dist-sdk/src/entities/automation/index.js +3 -1
  106. package/dist-sdk/src/entities/automation/module.js +10 -4
  107. package/dist-sdk/src/entities/automation/script-code.js +94 -6
  108. package/dist-sdk/src/entities/automation/tasks.d.ts +20 -19
  109. package/dist-sdk/src/entities/automation/tasks.js +2 -2
  110. package/dist-sdk/src/entities/automation/to-tf.d.ts +34 -2
  111. package/dist-sdk/src/entities/automation/to-tf.js +273 -98
  112. package/dist-sdk/src/entities/automation/triggers.d.ts +18 -17
  113. package/dist-sdk/src/entities/automation/triggers.js +1 -1
  114. package/dist-sdk/src/entities/dashboard/build.d.ts +17 -0
  115. package/dist-sdk/src/entities/dashboard/from-tf.d.ts +12 -0
  116. package/dist-sdk/src/entities/dashboard/from-tf.js +95 -0
  117. package/dist-sdk/src/entities/dashboard/module.d.ts +3 -0
  118. package/dist-sdk/src/entities/dashboard/module.js +16 -0
  119. package/dist-sdk/src/entities/dashboard/to-tf.d.ts +30 -0
  120. package/dist-sdk/src/entities/dashboard/to-tf.js +94 -0
  121. package/dist-sdk/src/entities/dashboard-widget/module.d.ts +3 -0
  122. package/dist-sdk/src/entities/dashboard-widget/module.js +10 -0
  123. package/dist-sdk/src/entities/data-lookup/module.d.ts +3 -0
  124. package/dist-sdk/src/entities/data-lookup/module.js +22 -0
  125. package/dist-sdk/src/entities/datamine/build.d.ts +22 -0
  126. package/dist-sdk/src/entities/datamine/build.js +1 -0
  127. package/dist-sdk/src/entities/datamine/from-tf.d.ts +17 -0
  128. package/dist-sdk/src/entities/datamine/from-tf.js +98 -0
  129. package/dist-sdk/src/entities/datamine/module.d.ts +3 -0
  130. package/dist-sdk/src/entities/datamine/module.js +23 -0
  131. package/dist-sdk/src/entities/datamine/to-tf.d.ts +11 -0
  132. package/dist-sdk/src/entities/datamine/to-tf.js +53 -0
  133. package/dist-sdk/src/entities/dynamic-layout/build.d.ts +303 -0
  134. package/dist-sdk/src/entities/dynamic-layout/build.js +4 -0
  135. package/dist-sdk/src/entities/dynamic-layout/dialect.d.ts +2 -0
  136. package/dist-sdk/src/entities/dynamic-layout/dialect.js +9 -0
  137. package/dist-sdk/src/entities/dynamic-layout/from-tf.d.ts +10 -0
  138. package/dist-sdk/src/entities/dynamic-layout/from-tf.js +233 -0
  139. package/dist-sdk/src/entities/dynamic-layout/module.d.ts +3 -0
  140. package/dist-sdk/src/entities/dynamic-layout/module.js +13 -0
  141. package/dist-sdk/src/entities/dynamic-layout/to-tf.d.ts +26 -0
  142. package/dist-sdk/src/entities/dynamic-layout/to-tf.js +267 -0
  143. package/dist-sdk/src/entities/element/build.d.ts +31 -14
  144. package/dist-sdk/src/entities/element/build.js +12 -4
  145. package/dist-sdk/src/entities/element/from-tf.d.ts +9 -1
  146. package/dist-sdk/src/entities/element/from-tf.js +31 -2
  147. package/dist-sdk/src/entities/element/index.d.ts +8 -3
  148. package/dist-sdk/src/entities/element/index.js +4 -1
  149. package/dist-sdk/src/entities/element/module.js +19 -2
  150. package/dist-sdk/src/entities/element/to-tf.js +57 -1
  151. package/dist-sdk/src/entities/field/build.d.ts +4 -3
  152. package/dist-sdk/src/entities/field/calculation-types.d.ts +6 -0
  153. package/dist-sdk/src/entities/field/calculation-types.js +42 -0
  154. package/dist-sdk/src/entities/field/from-tf.js +90 -11
  155. package/dist-sdk/src/entities/field/module.d.ts +1 -0
  156. package/dist-sdk/src/entities/field/module.js +5 -2
  157. package/dist-sdk/src/entities/field/record-shape.d.ts +1 -1
  158. package/dist-sdk/src/entities/field/to-tf.d.ts +1 -1
  159. package/dist-sdk/src/entities/field/to-tf.js +22 -6
  160. package/dist-sdk/src/entities/field/types.js +3 -0
  161. package/dist-sdk/src/entities/file-reader/build.d.ts +66 -19
  162. package/dist-sdk/src/entities/file-reader/build.js +49 -4
  163. package/dist-sdk/src/entities/file-reader/deserializer/print-file-reader.d.ts +1 -0
  164. package/dist-sdk/src/entities/file-reader/deserializer/print-file-reader.js +11 -9
  165. package/dist-sdk/src/entities/file-reader/from-tf.d.ts +1 -1
  166. package/dist-sdk/src/entities/file-reader/from-tf.js +31 -2
  167. package/dist-sdk/src/entities/file-reader/index.d.ts +3 -3
  168. package/dist-sdk/src/entities/file-reader/index.js +3 -3
  169. package/dist-sdk/src/entities/file-reader/module.js +6 -5
  170. package/dist-sdk/src/entities/file-reader/to-tf.d.ts +1 -1
  171. package/dist-sdk/src/entities/file-reader/to-tf.js +5 -2
  172. package/dist-sdk/src/entities/file-reader/types.d.ts +3 -4
  173. package/dist-sdk/src/entities/file-reader/types.js +4 -5
  174. package/dist-sdk/src/entities/org/category.js +4 -5
  175. package/dist-sdk/src/entities/org/group.js +4 -5
  176. package/dist-sdk/src/entities/org/index.d.ts +1 -0
  177. package/dist-sdk/src/entities/org/index.js +1 -0
  178. package/dist-sdk/src/entities/org/phone-provider.d.ts +4 -0
  179. package/dist-sdk/src/entities/org/phone-provider.js +33 -0
  180. package/dist-sdk/src/entities/org/role.d.ts +3 -3
  181. package/dist-sdk/src/entities/org/role.js +9 -6
  182. package/dist-sdk/src/entities/organization/build.d.ts +29 -0
  183. package/dist-sdk/src/entities/organization/build.js +24 -0
  184. package/dist-sdk/src/entities/organization/index.d.ts +2 -0
  185. package/dist-sdk/src/entities/organization/index.js +2 -0
  186. package/dist-sdk/src/entities/organization/module.d.ts +2 -0
  187. package/dist-sdk/src/entities/organization/module.js +18 -0
  188. package/dist-sdk/src/entities/organization/to-tf.d.ts +6 -0
  189. package/dist-sdk/src/entities/organization/to-tf.js +37 -0
  190. package/dist-sdk/src/entities/phone-service/build.d.ts +17 -0
  191. package/dist-sdk/src/entities/phone-service/build.js +31 -0
  192. package/dist-sdk/src/entities/phone-service/deserializer/print-phone-service.d.ts +4 -0
  193. package/dist-sdk/src/entities/phone-service/deserializer/print-phone-service.js +54 -0
  194. package/dist-sdk/src/entities/phone-service/from-tf.d.ts +25 -0
  195. package/dist-sdk/src/entities/phone-service/from-tf.js +75 -0
  196. package/dist-sdk/src/entities/phone-service/index.d.ts +2 -0
  197. package/dist-sdk/src/entities/phone-service/index.js +2 -0
  198. package/dist-sdk/src/entities/phone-service/module.d.ts +3 -0
  199. package/dist-sdk/src/entities/phone-service/module.js +55 -0
  200. package/dist-sdk/src/entities/phone-service/to-tf.d.ts +12 -0
  201. package/dist-sdk/src/entities/phone-service/to-tf.js +54 -0
  202. package/dist-sdk/src/entities/phone-service/types.d.ts +35 -0
  203. package/dist-sdk/src/entities/phone-service/types.js +22 -0
  204. package/dist-sdk/src/entities/record-create-form/from-tf.d.ts +11 -0
  205. package/dist-sdk/src/entities/record-create-form/from-tf.js +74 -0
  206. package/dist-sdk/src/entities/record-create-form/module.d.ts +11 -0
  207. package/dist-sdk/src/entities/record-create-form/module.js +24 -0
  208. package/dist-sdk/src/entities/record-create-form/to-tf.d.ts +33 -0
  209. package/dist-sdk/src/entities/record-create-form/to-tf.js +80 -0
  210. package/dist-sdk/src/entities/relationship/build.d.ts +16 -0
  211. package/dist-sdk/src/entities/relationship/build.js +1 -0
  212. package/dist-sdk/src/entities/relationship/from-tf.d.ts +12 -0
  213. package/dist-sdk/src/entities/relationship/from-tf.js +109 -0
  214. package/dist-sdk/src/entities/relationship/module.d.ts +3 -0
  215. package/dist-sdk/src/entities/relationship/module.js +16 -0
  216. package/dist-sdk/src/entities/relationship/to-tf.d.ts +31 -0
  217. package/dist-sdk/src/entities/relationship/to-tf.js +153 -0
  218. package/dist-sdk/src/entities/role/build.d.ts +65 -0
  219. package/dist-sdk/src/entities/role/build.js +33 -0
  220. package/dist-sdk/src/entities/role/from-tf.d.ts +13 -0
  221. package/dist-sdk/src/entities/role/from-tf.js +138 -0
  222. package/dist-sdk/src/entities/role/to-tf.d.ts +13 -0
  223. package/dist-sdk/src/entities/role/to-tf.js +69 -0
  224. package/dist-sdk/src/entities/search-table/build.d.ts +67 -28
  225. package/dist-sdk/src/entities/search-table/build.js +110 -56
  226. package/dist-sdk/src/entities/search-table/from-tf.d.ts +37 -0
  227. package/dist-sdk/src/entities/search-table/from-tf.js +113 -0
  228. package/dist-sdk/src/entities/search-table/index.d.ts +2 -2
  229. package/dist-sdk/src/entities/search-table/index.js +2 -2
  230. package/dist-sdk/src/entities/search-table/module.js +88 -10
  231. package/dist-sdk/src/entities/search-table/printer.d.ts +2 -0
  232. package/dist-sdk/src/entities/search-table/printer.js +52 -0
  233. package/dist-sdk/src/entities/search-table/to-tf.d.ts +14 -0
  234. package/dist-sdk/src/entities/search-table/to-tf.js +104 -0
  235. package/dist-sdk/src/entities/search-table/types.d.ts +8 -0
  236. package/dist-sdk/src/entities/search-table/types.js +21 -0
  237. package/dist-sdk/src/entities/service-account/build.d.ts +32 -0
  238. package/dist-sdk/src/entities/service-account/build.js +9 -0
  239. package/dist-sdk/src/entities/service-account/from-tf.d.ts +10 -0
  240. package/dist-sdk/src/entities/service-account/from-tf.js +109 -0
  241. package/dist-sdk/src/entities/service-account/module.d.ts +4 -0
  242. package/dist-sdk/src/entities/service-account/module.js +21 -0
  243. package/dist-sdk/src/entities/service-account/ref.d.ts +11 -0
  244. package/dist-sdk/src/entities/service-account/ref.js +5 -0
  245. package/dist-sdk/src/entities/service-account/to-tf.d.ts +11 -0
  246. package/dist-sdk/src/entities/service-account/to-tf.js +72 -0
  247. package/dist-sdk/src/entities/shared/connector-from-tf.d.ts +14 -0
  248. package/dist-sdk/src/entities/shared/connector-from-tf.js +14 -0
  249. package/dist-sdk/src/entities/shared/filters/ast.d.ts +21 -79
  250. package/dist-sdk/src/entities/shared/filters/ast.js +5 -2
  251. package/dist-sdk/src/entities/shared/filters/index.d.ts +94 -206
  252. package/dist-sdk/src/entities/shared/filters/index.js +189 -341
  253. package/dist-sdk/src/entities/shared/filters/print.d.ts +11 -0
  254. package/dist-sdk/src/entities/shared/filters/print.js +122 -0
  255. package/dist-sdk/src/entities/shared/filters/tf-codec.d.ts +170 -0
  256. package/dist-sdk/src/entities/shared/filters/tf-codec.js +527 -0
  257. package/dist-sdk/src/entities/shared/filters/types.d.ts +66 -69
  258. package/dist-sdk/src/entities/shared/filters/types.js +2 -3
  259. package/dist-sdk/src/entities/skill/build.d.ts +2 -2
  260. package/dist-sdk/src/entities/skill/build.js +4 -3
  261. package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.d.ts +10 -0
  262. package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.js +74 -32
  263. package/dist-sdk/src/entities/skill/index.d.ts +2 -1
  264. package/dist-sdk/src/entities/skill/index.js +2 -1
  265. package/dist-sdk/src/entities/skill/module.js +6 -0
  266. package/dist-sdk/src/entities/skill/to-tf.d.ts +5 -1
  267. package/dist-sdk/src/entities/skill/to-tf.js +18 -0
  268. package/dist-sdk/src/entities/skill/tools.d.ts +46 -31
  269. package/dist-sdk/src/entities/skill/tools.js +33 -20
  270. package/dist-sdk/src/entities/skill-tool/from-tf.d.ts +4 -1
  271. package/dist-sdk/src/entities/skill-tool/from-tf.js +76 -8
  272. package/dist-sdk/src/entities/skill-tool/module.js +9 -0
  273. package/dist-sdk/src/entities/skill-tool/to-tf.d.ts +6 -1
  274. package/dist-sdk/src/entities/skill-tool/to-tf.js +94 -42
  275. package/dist-sdk/src/entities/skill-tool/types.js +18 -1
  276. package/dist-sdk/src/entities/table/build.d.ts +64 -23
  277. package/dist-sdk/src/entities/table/build.js +33 -18
  278. package/dist-sdk/src/entities/table/catalog-render.js +6 -0
  279. package/dist-sdk/src/entities/table/deserializer/normalize.d.ts +99 -0
  280. package/dist-sdk/src/entities/table/deserializer/normalize.js +192 -0
  281. package/dist-sdk/src/entities/table/fields/types.d.ts +86 -0
  282. package/dist-sdk/src/entities/table/fields/types.js +12 -0
  283. package/dist-sdk/src/entities/table/fields.d.ts +107 -47
  284. package/dist-sdk/src/entities/table/fields.js +76 -55
  285. package/dist-sdk/src/entities/table/from-tf.d.ts +4 -0
  286. package/dist-sdk/src/entities/table/from-tf.js +261 -0
  287. package/dist-sdk/src/entities/table/index.d.ts +7 -5
  288. package/dist-sdk/src/entities/table/index.js +7 -7
  289. package/dist-sdk/src/entities/table/joins.d.ts +22 -9
  290. package/dist-sdk/src/entities/table/joins.js +8 -16
  291. package/dist-sdk/src/entities/table/module.d.ts +2 -1
  292. package/dist-sdk/src/entities/table/module.js +13 -6
  293. package/dist-sdk/src/entities/table/to-tf.d.ts +10 -0
  294. package/dist-sdk/src/entities/table/to-tf.js +230 -0
  295. package/dist-sdk/src/entities/task/build.d.ts +43 -0
  296. package/dist-sdk/src/entities/task/build.js +17 -0
  297. package/dist-sdk/src/entities/task/from-tf.d.ts +28 -0
  298. package/dist-sdk/src/entities/task/from-tf.js +38 -0
  299. package/dist-sdk/src/entities/task/index.d.ts +1 -0
  300. package/dist-sdk/src/entities/task/index.js +1 -0
  301. package/dist-sdk/src/entities/task/module.d.ts +3 -0
  302. package/dist-sdk/src/entities/task/module.js +12 -0
  303. package/dist-sdk/src/entities/task/to-tf.d.ts +9 -0
  304. package/dist-sdk/src/entities/task/to-tf.js +49 -0
  305. package/dist-sdk/src/entities/view/from-tf.d.ts +7 -2
  306. package/dist-sdk/src/entities/view/from-tf.js +209 -25
  307. package/dist-sdk/src/entities/view/module.js +5 -1
  308. package/dist-sdk/src/entities/view/to-tf.d.ts +49 -7
  309. package/dist-sdk/src/entities/view/to-tf.js +155 -18
  310. package/dist-sdk/src/entities/view/types.d.ts +8 -0
  311. package/dist-sdk/src/entities/view/types.js +43 -0
  312. package/dist-sdk/src/entities/visual-flow/build.d.ts +87 -0
  313. package/dist-sdk/src/entities/visual-flow/build.js +72 -0
  314. package/dist-sdk/src/entities/visual-flow/from-tf.d.ts +49 -0
  315. package/dist-sdk/src/entities/visual-flow/from-tf.js +124 -0
  316. package/dist-sdk/src/entities/visual-flow/index.d.ts +1 -0
  317. package/dist-sdk/src/entities/visual-flow/index.js +1 -0
  318. package/dist-sdk/src/entities/visual-flow/module.d.ts +3 -0
  319. package/dist-sdk/src/entities/visual-flow/module.js +41 -0
  320. package/dist-sdk/src/entities/visual-flow/printer.d.ts +8 -0
  321. package/dist-sdk/src/entities/visual-flow/printer.js +92 -0
  322. package/dist-sdk/src/entities/visual-flow/to-tf.d.ts +14 -0
  323. package/dist-sdk/src/entities/visual-flow/to-tf.js +101 -0
  324. package/dist-sdk/src/entities/widget/build.d.ts +55 -0
  325. package/dist-sdk/src/entities/widget/build.js +1 -0
  326. package/dist-sdk/src/entities/widget/from-tf.d.ts +11 -0
  327. package/dist-sdk/src/entities/widget/from-tf.js +209 -0
  328. package/dist-sdk/src/entities/widget/module.d.ts +3 -0
  329. package/dist-sdk/src/entities/widget/module.js +16 -0
  330. package/dist-sdk/src/entities/widget/to-tf.d.ts +44 -0
  331. package/dist-sdk/src/entities/widget/to-tf.js +204 -0
  332. package/dist-sdk/src/graph/deferred-catalog-render.d.ts +1 -1
  333. package/dist-sdk/src/graph/deferred-catalog-render.js +1 -1
  334. package/dist-sdk/src/graph/index.d.ts +7 -0
  335. package/dist-sdk/src/graph/index.js +4 -18
  336. package/dist-sdk/src/graph/modules.js +30 -1
  337. package/dist-sdk/src/graph/types.d.ts +55 -7
  338. package/dist-sdk/src/internal/sdk-package.d.ts +1 -1
  339. package/dist-sdk/src/internal/sdk-package.js +4 -2
  340. package/package.json +30 -15
  341. package/dist-sdk/src/entities/access-policy/filter.d.ts +0 -61
  342. package/dist-sdk/src/entities/access-policy/filter.js +0 -83
  343. package/dist-sdk/src/entities/approval-chain/steps.d.ts +0 -24
  344. package/dist-sdk/src/entities/approval-chain/steps.js +0 -20
  345. package/dist-sdk/src/entities/flow/activities/agent.d.ts +0 -15
  346. package/dist-sdk/src/entities/flow/activities/agent.js +0 -29
  347. package/dist-sdk/src/entities/flow/activities/approval.d.ts +0 -9
  348. package/dist-sdk/src/entities/flow/activities/approval.js +0 -18
  349. package/dist-sdk/src/entities/flow/activities/automation.d.ts +0 -12
  350. package/dist-sdk/src/entities/flow/activities/automation.js +0 -22
  351. package/dist-sdk/src/entities/flow/activities/ctx.d.ts +0 -34
  352. package/dist-sdk/src/entities/flow/activities/ctx.js +0 -38
  353. package/dist-sdk/src/entities/flow/activities/form.d.ts +0 -22
  354. package/dist-sdk/src/entities/flow/activities/form.js +0 -36
  355. package/dist-sdk/src/entities/flow/activities/index.d.ts +0 -14
  356. package/dist-sdk/src/entities/flow/activities/index.js +0 -13
  357. package/dist-sdk/src/entities/flow/activities/input-refs.d.ts +0 -39
  358. package/dist-sdk/src/entities/flow/activities/input-refs.js +0 -19
  359. package/dist-sdk/src/entities/flow/activities/prompt-template.d.ts +0 -13
  360. package/dist-sdk/src/entities/flow/activities/prompt-template.js +0 -34
  361. package/dist-sdk/src/entities/flow/activities/types.d.ts +0 -33
  362. package/dist-sdk/src/entities/flow/build.d.ts +0 -38
  363. package/dist-sdk/src/entities/flow/build.js +0 -115
  364. package/dist-sdk/src/entities/flow/index.d.ts +0 -8
  365. package/dist-sdk/src/entities/flow/index.js +0 -7
  366. package/dist-sdk/src/entities/flow/serialize.d.ts +0 -51
  367. package/dist-sdk/src/entities/flow/serialize.js +0 -94
  368. package/dist-sdk/src/entities/flow/util.d.ts +0 -27
  369. package/dist-sdk/src/entities/flow/util.js +0 -38
  370. package/dist-sdk/src/entities/table/filter.d.ts +0 -41
  371. package/dist-sdk/src/entities/table/filter.js +0 -89
  372. /package/dist-sdk/src/entities/{flow/activities/types.js → dashboard/build.js} +0 -0
@@ -61,6 +61,8 @@ const CATALOG_FILENAME = "catalog.ts";
61
61
  function isEntityFile(name) {
62
62
  if (name === CATALOG_FILENAME)
63
63
  return false;
64
+ if (name === "org.ts" || name === "org.js" || name === "org.mjs")
65
+ return false;
64
66
  if (name.endsWith(".d.ts") || name.endsWith(".test.ts"))
65
67
  return false;
66
68
  if (name.startsWith("_"))
@@ -206,19 +208,27 @@ async function loadCatalogChildBag(appDir, child, parent, catalogPath, defsOut)
206
208
  const refs = {};
207
209
  const defs = {};
208
210
  for (const file of await listEntityFiles(catalogChildDir(appDir, child))) {
211
+ const refName = refNameOf(file);
209
212
  let mod;
210
213
  try {
211
214
  mod = (await jiti.import(file));
212
215
  }
213
216
  catch (err) {
217
+ const message = err instanceof Error ? err.message : String(err);
218
+ console.error(`[edk] warning: could not load catalog child ${file}; ` +
219
+ `using typed stub ${parent}.${refName}: ${message}`);
214
220
  if (process.env.EDK_DEBUG) {
215
221
  console.error(`[EDK_DEBUG] Failed to import ${file}:`, err);
216
222
  }
217
- // Skip files that fail to load — e.g. an automation that references a
218
- // catalog token not yet imported. Same policy as `regenerateAppCatalogsUnder`.
223
+ // Keep the on-disk child visible to sibling authoring even when its full
224
+ // module cannot load yet (for example, a skill that references an
225
+ // element whose catalog is generated later in the same fresh bootstrap).
226
+ // The normal entity-discovery pass still imports the file and reports
227
+ // the real authoring error; this fallback only prevents one unresolved
228
+ // child from erasing its typed catalog ref and cascading into siblings.
229
+ refs[refName] = facet.stubRef(refName, parent);
219
230
  continue;
220
231
  }
221
- const refName = refNameOf(file);
222
232
  const defaultExport = mod.default;
223
233
  const namedExports = { ...mod };
224
234
  delete namedExports.default;
@@ -4,9 +4,9 @@
4
4
  * ids appear here (identity lives in `src/deploy/state`).
5
5
  */
6
6
  export { AI_PROVIDER_LLM_MODELS, type AiProviderLlmModel, type AiProviderType } from "./ai-provider-models.js";
7
- export { REF_SCOPE, REF_UPDATABLE, type AgentRef, type AiProviderRef, type ApprovalChainRef, type AspectRef, type AutomationCatalogRef, type AutomationRef, type CatalogRef, type CatalogRefKind, type CategoryRef, type CloudLinkRef, type ConnectorRef, type GroupRef, type FileReaderCatalogRef, type DocumentModelFieldRef, type FieldRef, type FlowRef, type OutputPropertyRef, type SearchTableRef, type SkillRef, type TableColumnRef, type TableRef, type TriggerParameterRef, USER_FIELD_KEYS, type UserFieldKey, type UserFieldRef, } from "./types.js";
7
+ export { REF_SCOPE, REF_UPDATABLE, type AgentRef, type AiProviderRef, type ApprovalChainRef, type ApprovalProcessRef, type AppCatalogRef, type AppOrElementRef, type AutomationCatalogRef, type AutomationRef, type CatalogRef, type CatalogRefKind, type CategoryRef, type CloudLinkRef, type AiServiceRef, type ConnectorRef, type GroupRef, type PhoneProviderRef, type PhoneServiceRef, type FileReaderCatalogRef, type DocumentModelFieldRef, type ElementCatalogRef, type FieldRef, type OutputPropertyRef, type SearchTableRef, type DatamineRef, type SkillRef, type TableColumnRef, type TableRef, type TriggerParameterRef, USER_FIELD_KEYS, type UserFieldKey, type UserFieldRef, } from "./types.js";
8
8
  export { renderBarrel, renderCatalog, renderFragment, type BarrelEntry, type BarrelRoot, } from "./render.js";
9
9
  export { appCatalogTarget, barrelPathFor, orgCatalogTarget, regenerateBarrel, writeCatalog, writeFlatCatalog, writeFragment, type CatalogTarget, } from "./write.js";
10
10
  export { isCatalogToken, slimToken, slimTokens } from "./token.js";
11
11
  export { buildAppCatalogFromAuthoring, listEntityFilesFromPaths, refNameOf, regenerateAppCatalogsUnder, writeAppCatalog, writeAppCatalogFromAuthoring, type AppAuthoringCatalog, type AppCatalogRegenResult, type ConfiguredEntity, } from "./from-authoring.js";
12
- export { agentRef, appCatalog, approvalChainRef, automationRef, categoryRef, cloudLinkRef, connectorRef, defineAiProvider, groupRef, documentModelFieldRef, documentModelRef, elementCatalog, fieldRef, flowRef, orgCatalog, outputPropertyRef, searchTableRef, skillRef, tableColumnRef, tableRef, triggerParameterRef, usersCatalog, } from "./factories.js";
12
+ export { agentRef, appRef, appCatalog, approvalChainRef, automationRef, categoryRef, cloudLinkRef, connectorRef, defineAiProvider, groupRef, linkedSearchTableRef, phoneProviderRef, phoneServiceRef, documentModelFieldRef, documentModelRef, elementCatalog, elementRef, fieldRef, orgCatalog, outputPropertyRef, searchTableRef, datamineRef, skillRef, tableColumnRef, tableRef, tableSearchTableRef, triggerParameterRef, usersCatalog, } from "./factories.js";
@@ -9,4 +9,4 @@ export { renderBarrel, renderCatalog, renderFragment, } from "./render.js";
9
9
  export { appCatalogTarget, barrelPathFor, orgCatalogTarget, regenerateBarrel, writeCatalog, writeFlatCatalog, writeFragment, } from "./write.js";
10
10
  export { isCatalogToken, slimToken, slimTokens } from "./token.js";
11
11
  export { buildAppCatalogFromAuthoring, listEntityFilesFromPaths, refNameOf, regenerateAppCatalogsUnder, writeAppCatalog, writeAppCatalogFromAuthoring, } from "./from-authoring.js";
12
- export { agentRef, appCatalog, approvalChainRef, automationRef, categoryRef, cloudLinkRef, connectorRef, defineAiProvider, groupRef, documentModelFieldRef, documentModelRef, elementCatalog, fieldRef, flowRef, orgCatalog, outputPropertyRef, searchTableRef, skillRef, tableColumnRef, tableRef, triggerParameterRef, usersCatalog, } from "./factories.js";
12
+ export { agentRef, appRef, appCatalog, approvalChainRef, automationRef, categoryRef, cloudLinkRef, connectorRef, defineAiProvider, groupRef, linkedSearchTableRef, phoneProviderRef, phoneServiceRef, documentModelFieldRef, documentModelRef, elementCatalog, elementRef, fieldRef, orgCatalog, outputPropertyRef, searchTableRef, datamineRef, skillRef, tableColumnRef, tableRef, tableSearchTableRef, triggerParameterRef, usersCatalog, } from "./factories.js";
@@ -203,6 +203,7 @@ function renderBarrel(appHandles, elementHandles, tableHandles) {
203
203
  lines.push(" cloudLinks: org.cloudLinks,");
204
204
  lines.push(" categories: org.categories,");
205
205
  lines.push(" groups: org.groups,");
206
+ lines.push(" phoneProviders: org.phoneProviders,");
206
207
  if (tableHandles.length > 0) {
207
208
  lines.push(" tables: {");
208
209
  for (const h of tableHandles)
@@ -47,15 +47,21 @@ export function renderCatalog(root, refs, _automationTriggerKinds, ownFile) {
47
47
  const entryIndent = isApp ? " " : " ";
48
48
  for (const m of liveMeta) {
49
49
  const kindRefs = refs.filter((r) => r.__kind === m.refKind);
50
+ let everyEntryUsesVariantFactory = kindRefs.length > 0;
50
51
  for (const ref of kindRefs) {
51
52
  const rendered = m.renderEntry({
52
53
  ref,
53
54
  keyName: ref.refName,
54
55
  baseIndent: entryIndent,
55
56
  });
57
+ if (rendered.omitsDefaultFactory !== true) {
58
+ everyEntryUsesVariantFactory = false;
59
+ }
56
60
  for (const f of rendered.extraFactories ?? [])
57
61
  factoryNames.add(f);
58
62
  }
63
+ if (everyEntryUsesVariantFactory)
64
+ factoryNames.delete(m.factoryName);
59
65
  }
60
66
  const lines = [];
61
67
  if (ownFile !== undefined) {
@@ -49,6 +49,13 @@ export function slimToken(token) {
49
49
  // task build.
50
50
  if (token.__kind === "documentModel" && typeof token.readerType === "string")
51
51
  out.readerType = token.readerType;
52
+ // Search-table resource selection is generated by catalog factories, not
53
+ // authored as public API. Preserve the private discriminator so tool HCL
54
+ // can reference the correct resource family.
55
+ if (token.__kind === "searchTable" &&
56
+ (token.__variant === "snowflake" || token.__variant === "linked" || token.__variant === "table")) {
57
+ out.__variant = token.__variant;
58
+ }
52
59
  if (token.__kind === "field" && Array.isArray(token.options)) {
53
60
  out.options = token.options.filter((option) => typeof option === "string");
54
61
  }
@@ -27,31 +27,32 @@ import type { AiProviderLlmModel, AiProviderType } from "./ai-provider-models.js
27
27
  /**
28
28
  * Kinds a catalog fragment can describe:
29
29
  * - behavioral, app-owned, deployable — `automation` / `agent` / `skill`;
30
- * - reference-only, app-owned — `field` / `searchTable`;
30
+ * - reference-only, app- or element-owned — `field`;
31
+ * - reference-only, element- or table-owned — `searchTable`;
31
32
  * - reference-only, org-owned — `cloudLink` / `connector`;
32
- * - the aspect itself (a tool's `aspectId`) — `app` / `element`, resolved by
33
+ * - the app or element itself, resolved by
33
34
  * handle against the app registry rather than a state scope;
34
35
  * - nested under an automation — `triggerParameter` / `outputProperty`,
35
36
  * resolved to the current-version param/output id via the parent
36
37
  * automation's state binding.
37
38
  */
38
- export type CatalogRefKind = "automation" | "agent" | "skill" | "flow" | "approvalChain" | "table" | "tableColumn" | "cloudLink" | "field" | "searchTable" | "documentModel" | "documentModelField" | "connector" | "aiProvider" | "category" | "group" | "app" | "element" | "triggerParameter" | "outputProperty";
39
+ export type CatalogRefKind = "automation" | "agent" | "skill" | "visual-flow" | "approvalChain" | "table" | "tableColumn" | "cloudLink" | "field" | "searchTable" | "documentModel" | "documentModelField" | "connector" | "aiProvider" | "category" | "group" | "phoneProvider" | "phone-service" | "datamine" | "app" | "element" | "task" | "triggerParameter" | "outputProperty";
39
40
  /**
40
41
  * The reference surface for a catalog entity. `handle` is the stable join key
41
42
  * (no id); `name` is for readability/diagnostics, never a match key.
42
43
  */
43
- export interface CatalogRef<K extends CatalogRefKind = CatalogRefKind> {
44
+ export interface CatalogRef<K extends CatalogRefKind = CatalogRefKind, RefName extends string = string, Parent extends string | undefined = string | undefined> {
44
45
  readonly __kind: K;
45
- readonly refName: string;
46
+ readonly refName: RefName;
46
47
  readonly name: string;
47
48
  /**
48
- * The owning **parent**'s handle — the aspect (app / element / table) that
49
+ * The owning **parent**'s handle — the app, element, or table that
49
50
  * owns this entity — so a reference is self-describing ("app X's automation
50
51
  * foo") and an entity can derive its parent from its own ref. Absent for
51
52
  * org-owned kinds (cloud links, connectors), which resolve against the single
52
53
  * org scope by kind.
53
54
  */
54
- readonly parent?: string;
55
+ readonly parent?: Parent;
55
56
  }
56
57
  export interface AutomationRef<TTrigger = unknown, TOutput = unknown> extends CatalogRef<"automation"> {
57
58
  /**
@@ -65,7 +66,7 @@ export interface AutomationRef<TTrigger = unknown, TOutput = unknown> extends Ca
65
66
  */
66
67
  readonly output?: TOutput;
67
68
  }
68
- export type AgentRef = CatalogRef<"agent">;
69
+ export type AgentRef<Parent extends string = string, RefName extends string = string> = CatalogRef<"agent", RefName, Parent>;
69
70
  export interface SkillRef extends CatalogRef<"skill"> {
70
71
  /**
71
72
  * A raw platform id, when the export carries a `skill_ids`/
@@ -77,24 +78,30 @@ export interface SkillRef extends CatalogRef<"skill"> {
77
78
  */
78
79
  readonly unresolvedId?: string;
79
80
  }
80
- export type FlowRef = CatalogRef<"flow">;
81
- export interface ApprovalChainRef extends CatalogRef<"approvalChain"> {
81
+ export interface ApprovalChainRef<Parent extends string = string, RefName extends string = string> extends CatalogRef<"approvalChain", RefName, Parent> {
82
82
  /** Provider id retained only when no managed/data HCL reference exists. */
83
83
  readonly unresolvedId?: string;
84
84
  }
85
- export interface TableColumnRef extends CatalogRef<"tableColumn"> {
85
+ /** Public name for the provider's `elementum_approval_process` reference. */
86
+ export type ApprovalProcessRef<Parent extends string = string, RefName extends string = string> = ApprovalChainRef<Parent, RefName>;
87
+ export interface TableColumnRef<Parent extends string = string, RefName extends string = string> extends CatalogRef<"tableColumn", RefName, Parent> {
86
88
  /** Owning table handle. */
87
- readonly parent: string;
89
+ readonly parent: Parent;
88
90
  readonly fieldType?: string;
89
91
  readonly tags?: readonly string[];
90
92
  }
91
- export interface TableRef extends CatalogRef<"table"> {
92
- readonly columns?: Readonly<Record<string, TableColumnRef>>;
93
+ export interface TableRef<RefName extends string = string, Columns extends Readonly<Record<string, TableColumnRef<RefName>>> = Readonly<Record<string, TableColumnRef<RefName>>>, Datamines extends Readonly<Record<string, DatamineRef<RefName>>> = Readonly<Record<string, DatamineRef<RefName>>>> extends CatalogRef<"table", RefName> {
94
+ readonly columns?: Columns;
95
+ readonly datamines?: Datamines;
93
96
  /** Raw category id, when imported. Categories are not tokenized yet. */
94
97
  readonly categoryId?: string;
95
98
  }
96
- export type SearchTableRef = CatalogRef<"searchTable">;
97
- export type ConnectorRef = CatalogRef<"connector">;
99
+ export type SearchTableRef<Parent extends string = string, RefName extends string = string> = CatalogRef<"searchTable", RefName, Parent>;
100
+ export type DatamineRef<Parent extends string = string, RefName extends string = string> = CatalogRef<"datamine", RefName, Parent>;
101
+ /** Public reference to an AI service/model selected for runtime use. */
102
+ export type AiServiceRef = CatalogRef<"connector">;
103
+ /** @internal Backend compatibility name. Prefer {@link AiServiceRef} on authoring surfaces. */
104
+ export type ConnectorRef = AiServiceRef;
98
105
  /**
99
106
  * An AI provider reference that also exposes its enabled connectors as a
100
107
  * nested ref bag — models are referenceable *on* the provider
@@ -120,16 +127,21 @@ export type CloudLinkRef = CatalogRef<"cloudLink">;
120
127
  /** Org-owned reference identities from `elementum pull org --data-only` (pristine-refactor). */
121
128
  export type CategoryRef = CatalogRef<"category">;
122
129
  export type GroupRef = CatalogRef<"group">;
123
- /** A reference to an aspect (app/element) itself — its barrel root object. */
124
- export type AspectRef = CatalogRef<"app"> | CatalogRef<"element">;
130
+ export type PhoneProviderRef = CatalogRef<"phoneProvider">;
131
+ export type PhoneServiceRef<Parent extends string = string, RefName extends string = string> = CatalogRef<"phone-service", RefName, Parent>;
132
+ /** Typed references to app and element catalog roots. */
133
+ export type AppCatalogRef<RefName extends string = string> = CatalogRef<"app", RefName>;
134
+ export type ElementCatalogRef<RefName extends string = string> = CatalogRef<"element", RefName>;
135
+ export type AppOrElementRef<RefName extends string = string> = AppCatalogRef<RefName> | ElementCatalogRef<RefName>;
125
136
  /**
126
137
  * A field reference. Beyond the shared surface it carries `fieldType` (the
127
138
  * platform field type — `"TEXT"`, `"PICKLIST"`, …) so builders can constrain
128
139
  * filters/mappings at compile time. Authoring-only: the wire boundary resolves
129
140
  * the token to the field id and drops the rest.
130
141
  */
131
- export interface FieldRef extends CatalogRef<"field"> {
132
- readonly fieldType: string;
142
+ export interface FieldRef<Parent extends string = string, RefName extends string = string, FieldType extends string = string> extends CatalogRef<"field", RefName, Parent> {
143
+ readonly parent: Parent;
144
+ readonly fieldType: FieldType;
133
145
  readonly tags?: readonly string[];
134
146
  readonly options?: readonly string[];
135
147
  /**
@@ -204,15 +216,14 @@ export interface AutomationCatalogRef extends CatalogRef<"automation"> {
204
216
  * Which scope resolves a kind's id at deploy:
205
217
  * - `"app"` — the app's v2 state (app-owned entities + fields/tables);
206
218
  * - `"org"` — the org's v2 state (cloud links, connectors);
207
- * - `"registry"` — the app registry (`apps.v2.json`), for aspect self-refs
219
+ * - `"registry"` — the app registry (`apps.v2.json`), for app/element self-refs
208
220
  * (`app` / `element`), keyed by handle → id rather than a state binding.
209
221
  */
210
222
  export declare const REF_SCOPE: Readonly<Record<CatalogRefKind, "app" | "org" | "registry">>;
211
223
  /**
212
224
  * Kinds the platform can update in place (PUT). A bound entity of any other
213
225
  * kind that has changed can't be updated — the deploy must surface that and
214
- * the user re-creates it. Flows are create-only today (the flow service has no
215
- * PUT); the reference-only kinds (field/cloudLink/connector) and aspect
226
+ * the user re-creates it. The reference-only kinds (field/cloudLink/connector) and app/element
216
227
  * self-refs never deploy through v2, so they're simply absent.
217
228
  *
218
229
  * `searchTable` is here but only *partially* updatable — the platform's PUT
@@ -29,36 +29,39 @@ export const USER_FIELD_KEYS = ["firstName", "email", "jobTitle", "lastName"];
29
29
  * Which scope resolves a kind's id at deploy:
30
30
  * - `"app"` — the app's v2 state (app-owned entities + fields/tables);
31
31
  * - `"org"` — the org's v2 state (cloud links, connectors);
32
- * - `"registry"` — the app registry (`apps.v2.json`), for aspect self-refs
32
+ * - `"registry"` — the app registry (`apps.v2.json`), for app/element self-refs
33
33
  * (`app` / `element`), keyed by handle → id rather than a state binding.
34
34
  */
35
35
  export const REF_SCOPE = {
36
36
  automation: "app",
37
37
  agent: "app",
38
38
  skill: "app",
39
- flow: "app",
39
+ "visual-flow": "app",
40
40
  approvalChain: "app",
41
41
  table: "org",
42
42
  tableColumn: "org",
43
43
  cloudLink: "org",
44
44
  field: "app",
45
45
  searchTable: "app",
46
+ datamine: "app",
46
47
  documentModel: "app",
47
48
  documentModelField: "app",
48
49
  connector: "org",
49
50
  aiProvider: "org",
50
51
  category: "org",
51
52
  group: "org",
53
+ phoneProvider: "org",
54
+ "phone-service": "app",
52
55
  app: "registry",
53
56
  element: "registry",
57
+ task: "registry",
54
58
  triggerParameter: "app",
55
59
  outputProperty: "app",
56
60
  };
57
61
  /**
58
62
  * Kinds the platform can update in place (PUT). A bound entity of any other
59
63
  * kind that has changed can't be updated — the deploy must surface that and
60
- * the user re-creates it. Flows are create-only today (the flow service has no
61
- * PUT); the reference-only kinds (field/cloudLink/connector) and aspect
64
+ * the user re-creates it. The reference-only kinds (field/cloudLink/connector) and app/element
62
65
  * self-refs never deploy through v2, so they're simply absent.
63
66
  *
64
67
  * `searchTable` is here but only *partially* updatable — the platform's PUT
@@ -1,22 +1,22 @@
1
1
  /**
2
2
  * App composer for `App.toUI()`.
3
3
  *
4
- * Walks an `App`'s flows / automations / agents bags and emits a single
4
+ * Walks an `App`'s automations / agents bags and emits a single
5
5
  * json-render `SerializedRenderTree` containing a top-level `Card` with
6
6
  * a vertical `Stack` of sections — one section per entity kind, each
7
- * with a heading and either a nested `FlowGraph` (for flows /
8
- * automations) or a `Grid` of `ActivityNode`s (for agents).
7
+ * with a heading and either a nested `FlowGraph` (for automations) or a
8
+ * `Grid` of `ActivityNode`s (for agents).
9
9
  *
10
10
  * Both built deployables (with a `toRenderNode()` method) and pre-loaded
11
11
  * `App*` reference shapes are accepted. References render as a single
12
12
  * neutral activity node since their internal structure isn't available
13
13
  * client-side.
14
14
  */
15
- import { type SerializedRenderTree } from "../entities/flow/activities/render-catalog.js";
15
+ import { type SerializedRenderTree } from "./render-tree.js";
16
16
  import type { App } from "./types/app.js";
17
17
  /**
18
18
  * Compose an `App` into a single json-render document. The top-level
19
- * `Card` carries the app name; nested sections render flows /
20
- * automations as graphs and agents as a 3-column card grid.
19
+ * `Card` carries the app name; nested sections render automations as graphs
20
+ * and agents as a 3-column card grid.
21
21
  */
22
22
  export declare function appToUi(app: App): SerializedRenderTree;
@@ -1,18 +1,18 @@
1
1
  /**
2
2
  * App composer for `App.toUI()`.
3
3
  *
4
- * Walks an `App`'s flows / automations / agents bags and emits a single
4
+ * Walks an `App`'s automations / agents bags and emits a single
5
5
  * json-render `SerializedRenderTree` containing a top-level `Card` with
6
6
  * a vertical `Stack` of sections — one section per entity kind, each
7
- * with a heading and either a nested `FlowGraph` (for flows /
8
- * automations) or a `Grid` of `ActivityNode`s (for agents).
7
+ * with a heading and either a nested `FlowGraph` (for automations) or a
8
+ * `Grid` of `ActivityNode`s (for agents).
9
9
  *
10
10
  * Both built deployables (with a `toRenderNode()` method) and pre-loaded
11
11
  * `App*` reference shapes are accepted. References render as a single
12
12
  * neutral activity node since their internal structure isn't available
13
13
  * client-side.
14
14
  */
15
- import { activityNode, card, grid, heading, serializeRenderTree, stack, } from "../entities/flow/activities/render-catalog.js";
15
+ import { activityNode, card, grid, heading, serializeRenderTree, stack, } from "./render-tree.js";
16
16
  function hasToRenderNode(value) {
17
17
  return (typeof value === "object" &&
18
18
  value !== null &&
@@ -51,24 +51,22 @@ function bagSection(title, entries, refKind, refTypeLabel, layout) {
51
51
  }
52
52
  /**
53
53
  * Compose an `App` into a single json-render document. The top-level
54
- * `Card` carries the app name; nested sections render flows /
55
- * automations as graphs and agents as a 3-column card grid.
54
+ * `Card` carries the app name; nested sections render automations as graphs
55
+ * and agents as a 3-column card grid.
56
56
  */
57
57
  export function appToUi(app) {
58
- const flowEntries = Object.entries(app.flows ?? {});
59
58
  const approvalChainEntries = Object.entries(app.approvalChains ?? {});
60
59
  const automationEntries = Object.entries(app.automations ?? {});
61
60
  const agentEntries = Object.entries(app.agents ?? {});
62
61
  const skillEntries = Object.entries(app.agenticSkills ?? {});
63
62
  const sections = [
64
- ...bagSection("Flows", flowEntries, "DEFAULT", "Flow ref", "graph-stack"),
65
63
  ...bagSection("Approval Chains", approvalChainEntries, "DEFAULT", "Approval chain ref", "graph-stack"),
66
64
  ...bagSection("Automations", automationEntries, "AUTOMATION", "Automation ref", "graph-stack"),
67
65
  ...bagSection("Agents", agentEntries, "AGENT", "Agent ref", "grid"),
68
66
  ...bagSection("Skills", skillEntries, "DEFAULT", "Skill ref", "grid"),
69
67
  ];
70
68
  if (sections.length === 0) {
71
- sections.push(heading("No flows, approval chains, automations, agents, or skills defined.", { level: 4 }));
69
+ sections.push(heading("No approval chains, automations, agents, or skills defined.", { level: 4 }));
72
70
  }
73
71
  const root = card({ title: app.name, ...(app.description != null && { description: app.description }) }, [stack(sections, { direction: "vertical", gap: "lg" })]);
74
72
  return serializeRenderTree(root);
@@ -8,3 +8,4 @@ export { type UserRef, defineUser, } from "./types/user.js";
8
8
  export { type GroupRef, defineGroup, } from "./types/group.js";
9
9
  export { type CloudLink, defineCloudLink, } from "./types/cloud-link.js";
10
10
  export { type AspectCategoryRef, defineCategory, } from "./types/aspect-category.js";
11
+ export { unsafePlatformId, type UnsafePlatformId } from "./platform-id.js";
@@ -7,3 +7,4 @@ export { defineUser, } from "./types/user.js";
7
7
  export { defineGroup, } from "./types/group.js";
8
8
  export { defineCloudLink, } from "./types/cloud-link.js";
9
9
  export { defineCategory, } from "./types/aspect-category.js";
10
+ export { unsafePlatformId } from "./platform-id.js";
@@ -0,0 +1,11 @@
1
+ /**
2
+ * An explicit escape hatch for a platform id that could not be represented by
3
+ * a portable catalog reference. The object wrapper makes raw ids impossible to
4
+ * pass accidentally where the public API normally expects a typed ref.
5
+ */
6
+ export interface UnsafePlatformId {
7
+ readonly __unsafe: "platformId";
8
+ readonly value: string;
9
+ }
10
+ /** Mark a non-portable platform id intentionally. Prefer catalog refs whenever possible. */
11
+ export declare function unsafePlatformId(value: string): UnsafePlatformId;
@@ -0,0 +1,8 @@
1
+ import { EdkValidationError } from "../../elementum-entity-client/errors.js";
2
+ /** Mark a non-portable platform id intentionally. Prefer catalog refs whenever possible. */
3
+ export function unsafePlatformId(value) {
4
+ if (value.trim() === "") {
5
+ throw new EdkValidationError("unsafePlatformId requires a non-empty platform id.");
6
+ }
7
+ return { __unsafe: "platformId", value };
8
+ }
@@ -1,5 +1,5 @@
1
- import type { FieldRef } from "../../../catalog/index.js";
2
- /** Marker key the wire boundary flattens to a `record/<id>` statePath string. */
1
+ import type { FieldRef } from "../catalog/index.js";
2
+ /** Marker key the Terraform emitter flattens to a `record/<id>` statePath string. */
3
3
  export declare const RECORD_PATH_MARKER = "__recordPath";
4
4
  /** A node in the v2 render-tree AST. `aspectFieldId`/statePath hold tokens/markers. */
5
5
  export interface RenderNode<T extends string = string> {
@@ -1,18 +1,16 @@
1
1
  /**
2
- * v2 form render-catalog — typed json-render AST helpers for `formActivity`.
3
- * Parallel to v1 `src/flows/activities/render-catalog.ts`; the layout helpers
4
- * are identical, but the **field-binding leaves take a `FieldRef` token** (not a
2
+ * Typed json-render AST helpers shared by Canvas and app UI composition.
3
+ * Field-binding leaves take a `FieldRef` token (not a
5
4
  * live `AppField`) and emit the field id position as a token resolved at deploy.
6
5
  *
7
6
  * A binding leaf needs the field id in two places — `__binding.aspectFieldId`
8
7
  * (resolved straight to the id) and the `record/<id>` **statePath string**. v2
9
8
  * has no id at author time, so the statePath is emitted as a structured marker
10
- * `{ __recordPath: <FieldRef token> }`; after `resolvePayload` swaps the token
11
- * for the id, the wire boundary flattens the marker to `"record/<id>"` (see
12
- * `flattenRecordPaths` in the apply wire client).
9
+ * `{ __recordPath: <FieldRef token> }`; the Terraform emitter resolves it to a
10
+ * `"record/${field-resource.id}"` template inside the JSON configuration.
13
11
  */
14
- import { EdkValidationError } from "../../../../elementum-entity-client/errors.js";
15
- /** Marker key the wire boundary flattens to a `record/<id>` statePath string. */
12
+ import { EdkValidationError } from "../../elementum-entity-client/errors.js";
13
+ /** Marker key the Terraform emitter flattens to a `record/<id>` statePath string. */
16
14
  export const RECORD_PATH_MARKER = "__recordPath";
17
15
  const NODE_KIND = "render-node";
18
16
  /** Build the structured statePath marker for a field (flattened to a string at deploy). */
@@ -9,10 +9,10 @@
9
9
  */
10
10
  import { type Ref, type ValueOrRef } from "../../entities/shared/ref.js";
11
11
  import type { WorkflowFieldType } from "../../entities/shared/types/field-types.js";
12
- import type { AspectRef, FieldRef } from "../../catalog/types.js";
12
+ import type { AppOrElementRef, FieldRef } from "../../catalog/types.js";
13
13
  import type { CloudLink } from "./cloud-link.js";
14
14
  import type { DisplayBlockBag } from "./display-block.js";
15
- import type { SerializedRenderTree } from "../../entities/flow/activities/render-catalog.js";
15
+ import type { SerializedRenderTree } from "../render-tree.js";
16
16
  import type { AspectFieldQrFormat, AspectNumericFieldFormat, AspectReferenceFieldFormat, PicklistConfigInput, PicklistValueExInput } from "../../../elementum-entity-client/clients/aspects/models/index.js";
17
17
  /**
18
18
  * One static picklist value; in `createRecord` / `updateField` pick via
@@ -282,7 +282,7 @@ export interface AttachmentAppField<Scope extends FieldScope = "unscoped"> exten
282
282
  * RELATION fields (`elementum_relation_field`) - a dynamic dropdown whose
283
283
  * options are records from another App/Element/Task, distinct from a
284
284
  * static PICKLIST (no fixed `options` list at all). `relatedObject`/
285
- * `relatedLabelField` accept a catalog token (`AspectRef`/`FieldRef`) or a
285
+ * `relatedLabelField` accept a catalog token (`AppOrElementRef`/`FieldRef`) or a
286
286
  * raw platform id. A token naming a SIBLING app/element authored in the
287
287
  * same build resolves to a direct resource reference - Terraform sequences
288
288
  * its creation automatically, so it does NOT need to already exist on the
@@ -295,7 +295,7 @@ export interface AttachmentAppField<Scope extends FieldScope = "unscoped"> exten
295
295
  */
296
296
  export interface RelationAppField<Scope extends FieldScope = "unscoped"> extends AspectFieldBase<Scope> {
297
297
  readonly type: "RELATION";
298
- readonly relatedObject: AspectRef | string;
298
+ readonly relatedObject: AppOrElementRef | string;
299
299
  readonly relatedLabelField: FieldRef | string;
300
300
  /** Defaults to `true` on the platform. */
301
301
  readonly autoRelate?: boolean;
@@ -534,13 +534,12 @@ interface Deployable {
534
534
  /**
535
535
  * Narrow `Deployable` shapes, discriminated on the `kind` literal every
536
536
  * builder output sets (`defineAgent` → `"agent"`, `defineAutomation` →
537
- * `"automation"`, `defineFlow` → `"flow"`). Used to constrain each App
538
- * bag so `automations: { myFlow }` or `flows: { myAgent }` are compile
539
- * errors instead of runtime surprises at deploy time.
537
+ * `"automation"`). Used to constrain each App bag so a deployable of the
538
+ * wrong kind is a compile error instead of a runtime surprise at deploy time.
540
539
  *
541
540
  * These are structural (not imported from the builder modules) to avoid
542
541
  * a circular import between `core/types/app.ts` and `agents/builder.ts`
543
- * / `automations/builder.ts` / `flows/builder.ts`. Every builder output
542
+ * / `automations/builder.ts`. Every builder output
544
543
  * satisfies the corresponding shape because its own `kind` field is a
545
544
  * literal, not the wider `DeployableKind` union.
546
545
  */
@@ -550,13 +549,6 @@ export interface DeployableAgent extends Deployable {
550
549
  export interface DeployableAutomation extends Deployable {
551
550
  readonly kind: "automation";
552
551
  }
553
- export interface DeployableFlow extends Deployable {
554
- readonly kind: "flow";
555
- }
556
- export interface AppFlow {
557
- readonly id: string;
558
- readonly name?: string;
559
- }
560
552
  export interface DeployableApprovalChain extends Deployable {
561
553
  readonly kind: "approvalChain";
562
554
  }
@@ -576,7 +568,7 @@ export interface AppApprovalChain {
576
568
  * `Deployable` of the matching kind. A `Deployable`'s id is assigned at
577
569
  * deploy time via the late-binding registry.
578
570
  */
579
- export interface App<TFields extends Record<string, AppField> = {}, TAgents extends Record<string, AppAgent | DeployableAgent> = {}, TSearchTables extends Record<string, AppSearchTable | DeployableSearchTable> = {}, TAutomations extends Record<string, AppAutomation | DeployableAutomation> = {}, TPhoneServices extends Record<string, AppPhoneService> = {}, TFlows extends Record<string, AppFlow | DeployableFlow> = {}, TApprovalChains extends Record<string, AppApprovalChain | DeployableApprovalChain> = {}, TAgenticSkills extends Record<string, AppAgenticSkill | DeployableSkill> = {}, TStages extends Record<string, AppStage> = {}, TSystemFields extends Record<string, AppField> = {}> {
571
+ export interface App<TFields extends Record<string, AppField> = {}, TAgents extends Record<string, AppAgent | DeployableAgent> = {}, TSearchTables extends Record<string, AppSearchTable | DeployableSearchTable> = {}, TAutomations extends Record<string, AppAutomation | DeployableAutomation> = {}, TPhoneServices extends Record<string, AppPhoneService> = {}, TApprovalChains extends Record<string, AppApprovalChain | DeployableApprovalChain> = {}, TAgenticSkills extends Record<string, AppAgenticSkill | DeployableSkill> = {}, TStages extends Record<string, AppStage> = {}, TSystemFields extends Record<string, AppField> = {}> {
580
572
  readonly id: string;
581
573
  readonly name: string;
582
574
  readonly fields: TFields;
@@ -604,7 +596,6 @@ export interface App<TFields extends Record<string, AppField> = {}, TAgents exte
604
596
  readonly searchTables: TSearchTables;
605
597
  readonly automations: TAutomations;
606
598
  readonly phoneServices: TPhoneServices;
607
- readonly flows: TFlows;
608
599
  readonly approvalChains: TApprovalChains;
609
600
  readonly agenticSkills: TAgenticSkills;
610
601
  readonly stages: TStages;
@@ -631,8 +622,8 @@ export interface App<TFields extends Record<string, AppField> = {}, TAgents exte
631
622
  readonly recordCreateDisplayBlocks?: DisplayBlockBag;
632
623
  /**
633
624
  * Produce a json-render `SerializedRenderTree` describing the app
634
- * as a card with sections for flows, automations, and agents. Built
635
- * children embed their own `FlowGraph` / `ActivityNode`; pre-loaded
625
+ * as a card with sections for automations, agents, and related entities.
626
+ * Built children embed their own `FlowGraph` / `ActivityNode`; pre-loaded
636
627
  * `App*` refs render as single neutral leaf nodes (since their
637
628
  * internal structure isn't available without a deploy round-trip).
638
629
  */
@@ -669,7 +660,7 @@ export type ValidateAppFields<TFields extends Record<string, AppField>> = {
669
660
  * not legitimate fetched state). The agent should only see this
670
661
  * flag in `generated/apps/*.ts` files; never write it by hand.
671
662
  */
672
- export interface DefineAppOpts<TFields extends Record<string, AppField> = {}, TAgents extends Record<string, AppAgent | DeployableAgent> = {}, TSearchTables extends Record<string, AppSearchTable | DeployableSearchTable> = {}, TAutomations extends Record<string, AppAutomation | DeployableAutomation> = {}, TPhoneServices extends Record<string, AppPhoneService> = {}, TFlows extends Record<string, AppFlow | DeployableFlow> = {}, TApprovalChains extends Record<string, AppApprovalChain | DeployableApprovalChain> = {}, TAgenticSkills extends Record<string, AppAgenticSkill | DeployableSkill> = {}, TStages extends Record<string, AppStage> = {}, TSnapshot extends boolean = false, TSystemFields extends Record<string, AppField> = {}> {
663
+ export interface DefineAppOpts<TFields extends Record<string, AppField> = {}, TAgents extends Record<string, AppAgent | DeployableAgent> = {}, TSearchTables extends Record<string, AppSearchTable | DeployableSearchTable> = {}, TAutomations extends Record<string, AppAutomation | DeployableAutomation> = {}, TPhoneServices extends Record<string, AppPhoneService> = {}, TApprovalChains extends Record<string, AppApprovalChain | DeployableApprovalChain> = {}, TAgenticSkills extends Record<string, AppAgenticSkill | DeployableSkill> = {}, TStages extends Record<string, AppStage> = {}, TSnapshot extends boolean = false, TSystemFields extends Record<string, AppField> = {}> {
673
664
  readonly id: string;
674
665
  readonly name: string;
675
666
  readonly snapshot?: TSnapshot;
@@ -686,7 +677,6 @@ export interface DefineAppOpts<TFields extends Record<string, AppField> = {}, TA
686
677
  readonly searchTables?: TSearchTables;
687
678
  readonly automations?: TAutomations;
688
679
  readonly phoneServices?: TPhoneServices;
689
- readonly flows?: TFlows;
690
680
  readonly approvalChains?: TApprovalChains;
691
681
  readonly agenticSkills?: TAgenticSkills;
692
682
  readonly stages?: TStages;
@@ -716,7 +706,7 @@ export interface DefineAppOpts<TFields extends Record<string, AppField> = {}, TA
716
706
  /** New-record-form layout blocks, keyed by author handle. */
717
707
  readonly recordCreateDisplayBlocks?: DisplayBlockBag;
718
708
  }
719
- export declare function defineApp<const TFields extends Record<string, AppField> = {}, const TAgents extends Record<string, AppAgent | DeployableAgent> = {}, const TSearchTables extends Record<string, AppSearchTable | DeployableSearchTable> = {}, const TAutomations extends Record<string, AppAutomation | DeployableAutomation> = {}, const TPhoneServices extends Record<string, AppPhoneService> = {}, const TFlows extends Record<string, AppFlow | DeployableFlow> = {}, const TApprovalChains extends Record<string, AppApprovalChain | DeployableApprovalChain> = {}, const TAgenticSkills extends Record<string, AppAgenticSkill | DeployableSkill> = {}, const TStages extends Record<string, AppStage> = {}, const TSnapshot extends boolean = false, const TSystemFields extends Record<string, AppField> = {}>(opts: DefineAppOpts<TFields, TAgents, TSearchTables, TAutomations, TPhoneServices, TFlows, TApprovalChains, TAgenticSkills, TStages, TSnapshot, TSystemFields>): App<TFields, TAgents, TSearchTables, TAutomations, TPhoneServices, TFlows, TApprovalChains, TAgenticSkills, TStages, TSystemFields>;
709
+ export declare function defineApp<const TFields extends Record<string, AppField> = {}, const TAgents extends Record<string, AppAgent | DeployableAgent> = {}, const TSearchTables extends Record<string, AppSearchTable | DeployableSearchTable> = {}, const TAutomations extends Record<string, AppAutomation | DeployableAutomation> = {}, const TPhoneServices extends Record<string, AppPhoneService> = {}, const TApprovalChains extends Record<string, AppApprovalChain | DeployableApprovalChain> = {}, const TAgenticSkills extends Record<string, AppAgenticSkill | DeployableSkill> = {}, const TStages extends Record<string, AppStage> = {}, const TSnapshot extends boolean = false, const TSystemFields extends Record<string, AppField> = {}>(opts: DefineAppOpts<TFields, TAgents, TSearchTables, TAutomations, TPhoneServices, TApprovalChains, TAgenticSkills, TStages, TSnapshot, TSystemFields>): App<TFields, TAgents, TSearchTables, TAutomations, TPhoneServices, TApprovalChains, TAgenticSkills, TStages, TSystemFields>;
720
710
  export type FieldValueType<T extends string> = T extends "TEXT" | "HANDLE" | "HTML" | "RICH_TEXT" | "PICKLIST" ? string : T extends "NUMBER" | "DECIMAL" ? number : T extends "BOOLEAN" ? boolean : T extends "DATE" | "DATETIME" ? string : T extends "USER" | "USER_ID" | "GROUP" | "GROUP_ID" ? string : T extends "UUID" | "ASPECT_ID" | "ASPECT_RECORD_ID" | "ASPECT_FIELD_ID" ? string : T extends "JSON" | "OBJECT" ? unknown : string;
721
711
  /**
722
712
  * Value type for a single app field: static picklists use `PicklistOption` (one of `options` values);
@@ -746,7 +736,7 @@ export type FieldValueForAppField<F extends AppField<FieldScope>> = F extends {
746
736
  * conditional mapped types, so `ctx.trigger.record.id` would fail to type-check
747
737
  * with the intersection form.
748
738
  */
749
- export type AspectRecord<A extends App> = A extends App<infer TFields, any, any, any, any, any, any, any, any, infer TSystemFields> ? {
739
+ export type AspectRecord<A extends App> = A extends App<infer TFields, any, any, any, any, any, any, any, infer TSystemFields> ? {
750
740
  [K in keyof TFields | keyof TSystemFields | "id"]: K extends "id" ? string : K extends keyof TFields ? FieldValueForAppField<TFields[K]> : K extends keyof TSystemFields ? FieldValueForAppField<TSystemFields[K] & AppField> : never;
751
741
  } : unknown;
752
742
  /**
@@ -86,7 +86,6 @@ export function defineApp(opts) {
86
86
  searchTables: (opts.searchTables ?? {}),
87
87
  automations: brandAutomations(opts.automations),
88
88
  phoneServices: (opts.phoneServices ?? {}),
89
- flows: (opts.flows ?? {}),
90
89
  approvalChains: (opts.approvalChains ?? {}),
91
90
  agenticSkills: (opts.agenticSkills ?? {}),
92
91
  stages: (opts.stages ?? {}),
@@ -49,7 +49,7 @@ export interface OrgRefLookup {
49
49
  * unlike `byName`'s category precedent which re-derives the label from a
50
50
  * hand-authored display name).
51
51
  */
52
- rawLookup(type: string, tfLabel: string, value: string): void;
52
+ rawLookup(type: string, tfLabel: string, value: string, extraAttrs?: Readonly<Record<string, TfValue>>): void;
53
53
  /**
54
54
  * Record a name-keyed `data.elementum_element` lookup for a FOREIGN
55
55
  * element (e.g. a cross-aspect agent-tool target — board issue #42).
@@ -71,7 +71,7 @@ export interface OrgRefLookup {
71
71
  }
72
72
  /** A stream root discovered elsewhere in THIS workspace build — kind + tfLabel, keyed by {@link workspaceAspectKey}. */
73
73
  export interface WorkspaceAspect {
74
- readonly kind: ChildResourceScope;
74
+ readonly kind: ChildResourceScope | "table";
75
75
  readonly tfLabel: string;
76
76
  }
77
77
  /**
@@ -82,7 +82,7 @@ export interface WorkspaceAspect {
82
82
  * so `refName` alone is not a unique map key). Keying by kind+refName keeps
83
83
  * an app "tickets" and an element "tickets" from colliding.
84
84
  */
85
- export declare function workspaceAspectKey(kind: ChildResourceScope, refName: string): string;
85
+ export declare function workspaceAspectKey(kind: ChildResourceScope | "table", refName: string): string;
86
86
  export interface ToTfContext {
87
87
  /** The owning app's refName — its authoring directory / catalog key. */
88
88
  readonly appRefName: string;
@@ -0,0 +1,4 @@
1
+ import type { TfValue } from "../tf/index.js";
2
+ import type { FromTfContext } from "./context.js";
3
+ export declare function reportUnknownAttrs(attrs: Readonly<Record<string, unknown>>, known: ReadonlySet<string>, where: string, passName: string, ctx: FromTfContext): void;
4
+ export declare function stringList(attrs: Readonly<Record<string, TfValue>>, key: string, where: string, ctx: FromTfContext): string[] | undefined;