@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
@@ -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). */
@@ -88,7 +86,7 @@ export function inputFor(field, opts = {}) {
88
86
  props.placeholder = opts.placeholder;
89
87
  return buildBindingNode("Input", field, props);
90
88
  }
91
- /** Bind a TEXT/HTML/RICH_TEXT field to a `Textarea`. */
89
+ /** Bind a TEXT/RICH_TEXT field to a `Textarea`. */
92
90
  export function textareaFor(field, opts = {}) {
93
91
  const props = commonProps(field, opts);
94
92
  if (opts.placeholder != null)
@@ -120,7 +118,6 @@ export function fieldFor(field, opts = {}) {
120
118
  case "PICKLIST":
121
119
  case "MULTI_PICKLIST":
122
120
  return selectFor(field, opts);
123
- case "HTML":
124
121
  case "RICH_TEXT":
125
122
  return textareaFor(field, opts);
126
123
  case "BOOLEAN":
@@ -16,7 +16,7 @@ export interface AiProviderConnector {
16
16
  readonly model?: string;
17
17
  }
18
18
  /** @deprecated Use the pulled `catalog.aiProviders.<provider>.models.<model>` token instead — see {@link AiProviderConnector}. */
19
- export declare function defineAiProviderConnector(opts: {
19
+ export declare function aiProviderConnector(opts: {
20
20
  id: string;
21
21
  name?: string;
22
22
  model?: string;
@@ -1,5 +1,5 @@
1
1
  /** @deprecated Use the pulled `catalog.aiProviders.<provider>.models.<model>` token instead — see {@link AiProviderConnector}. */
2
- export function defineAiProviderConnector(opts) {
2
+ export function aiProviderConnector(opts) {
3
3
  return {
4
4
  id: opts.id,
5
5
  ...(opts.name != null && { name: opts.name }),
@@ -9,11 +9,13 @@
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
+ import type { RefExpr } from "../../entities/shared/filters/ast.js";
14
+ import type { Filter } from "../../entities/shared/filters/types.js";
13
15
  import type { CloudLink } from "./cloud-link.js";
14
16
  import type { DisplayBlockBag } from "./display-block.js";
15
- import type { SerializedRenderTree } from "../../entities/flow/activities/render-catalog.js";
16
- import type { AspectFieldQrFormat, AspectNumericFieldFormat, AspectReferenceFieldFormat, PicklistConfigInput, PicklistValueExInput } from "../../../elementum-entity-client/clients/aspects/models/index.js";
17
+ import type { SerializedRenderTree } from "../render-tree.js";
18
+ import type { AspectFieldQrFormat, AspectNumericFieldFormat, AspectReferenceFieldFormat, PicklistValueExInput } from "../../../elementum-entity-client/clients/aspects/models/index.js";
17
19
  /**
18
20
  * One static picklist value; in `createRecord` / `updateField` pick via
19
21
  * `(options) => options.Name` — only `id` is sent to the API.
@@ -76,7 +78,7 @@ export type FieldScope = "row" | "unscoped";
76
78
  * Names that Ultron auto-provisions on every `APP` aspect. A user field
77
79
  * whose `name` collides with one of these causes compose to fail with a
78
80
  * raw Postgres unique-constraint 500 instead of a typed validation error,
79
- * so we reject the collision at `defineApp()` time.
81
+ * so we reject the collision at `app()` time.
80
82
  *
81
83
  * This list is hand-maintained — if Ultron adds a new system field, add
82
84
  * the literal here and regenerate. A long-term improvement is to source
@@ -113,7 +115,7 @@ type TagsOf<F> = F extends {
113
115
  type HasLiteralTags<F> = string extends TagsOf<F> ? false : true;
114
116
  type HasKnownSystemSemanticTag<F> = HasLiteralTags<F> extends true ? [Extract<TagsOf<F>, SystemFieldSemanticTag>] extends [never] ? false : true : false;
115
117
  type WritableFieldValues<TFields extends Record<string, AppField>> = {
116
- [K in keyof TFields]?: AppFieldInputForTask<TFields[K] & AppField>;
118
+ [K in keyof TFields]?: AppFieldInputForAction<TFields[K] & AppField>;
117
119
  };
118
120
  /**
119
121
  * Shared base for every per-variant `AppField`. Carries identity
@@ -195,6 +197,43 @@ export interface HtmlAppField<Scope extends FieldScope = "unscoped"> extends Asp
195
197
  export interface JsonAppField<Scope extends FieldScope = "unscoped"> extends AspectFieldBase<Scope> {
196
198
  readonly type: "JSON";
197
199
  }
200
+ /**
201
+ * Normalized (pulled) dynamic-picklist config — a picklist whose values
202
+ * come from records of another aspect (`elementum_dropdown_field`/
203
+ * `elementum_multiselect_field`'s `dynamic_config`), rather than a fixed
204
+ * `options` list. `relatedAspectId`/`relatedLabelFieldId`/`parentFieldId`
205
+ * mirror `RelationAppField`'s duality: a raw platform id (the common case —
206
+ * `field/from-tf.ts` prints it via `unsafePlatformId(...)`), or a resolved
207
+ * catalog ref when the related aspect/field is already pulled into this
208
+ * workspace. `filter`/`sort` round-trip through the same `Filter<RefExpr,
209
+ * RefExpr>` shape `NormalizedAccessPolicy` already uses.
210
+ */
211
+ export interface NormalizedPicklistDynamicConfig {
212
+ readonly relatedAspectId: AppOrElementRef | string;
213
+ readonly relatedLabelFieldId: string | {
214
+ readonly ownerRefName: string;
215
+ readonly fieldKey: string;
216
+ };
217
+ /**
218
+ * A field on the SAME owning aspect (not `relatedAspectId`'s target) — the
219
+ * cascading-parent trigger. Carried as that field's own bag key, printed
220
+ * as a hoisted `FieldRef` const (`field/from-tf.ts` resolves it via
221
+ * `fieldKeyFromTfRef`, same as `AppField.parentField`'s sibling mechanism).
222
+ */
223
+ readonly parentFieldId?: string;
224
+ readonly autoRelate?: boolean;
225
+ readonly valuesRenderType?: string;
226
+ readonly filter?: Filter<RefExpr, RefExpr>;
227
+ readonly sort?: Readonly<Record<string, unknown>>;
228
+ }
229
+ /**
230
+ * Only `dynamic` round-trips through the terraform path today — a `static`
231
+ * variant exists on the platform (filter/sort/parentFieldId over a fixed
232
+ * option list) but has no terraform attribute yet (see `field/to-tf.ts`).
233
+ */
234
+ export interface NormalizedPicklistConfig {
235
+ readonly dynamic?: NormalizedPicklistDynamicConfig;
236
+ }
198
237
  /**
199
238
  * Shared base for `PicklistAppField` / `MultiPicklistAppField`. The
200
239
  * three value-source mechanisms are mutually exclusive at the wire
@@ -204,8 +243,8 @@ export interface JsonAppField<Scope extends FieldScope = "unscoped"> extends Asp
204
243
  * translation (the agent-friendly authoring shape)
205
244
  * - `picklistValues` — explicit `PicklistValueExInput[]` for richer
206
245
  * authoring (color, icon)
207
- * - `config: PicklistConfigInput` — typed wrapper for static /
208
- * dynamic picklist config (related-aspect refs, filters, etc.)
246
+ * - `config: NormalizedPicklistConfig` — dynamic picklist config
247
+ * (related-aspect refs, filter, sort)
209
248
  *
210
249
  * The legacy `values: string[]` slot is preserved for update flows
211
250
  * that re-send id-only ordering data.
@@ -227,18 +266,15 @@ export interface JsonAppField<Scope extends FieldScope = "unscoped"> extends Asp
227
266
  * } satisfies PicklistAppField;
228
267
  * ```
229
268
  *
230
- * The serializer flattens this into the wire form: `parentField.id`
231
- * lands on `config.static.parentFieldId` (or `config.dynamic.parentFieldId`
232
- * when the picklist is dynamic), and each option's `parentValues` ids
233
- * land on its `relatedParentValues`. For the related-aspect-backed
234
- * (dynamic) case, the cross-aspect field mappings live on
235
- * `config.dynamic.parentMappings` and are still authored through the
236
- * `config` slot directly.
269
+ * This dependent-option-link mechanism (`parentField`/`parentValues`) is a
270
+ * DIFFERENT, still-unimplemented feature from `config.dynamic`'s own
271
+ * `parentFieldId` (a dynamic picklist's cascading-parent trigger) — see
272
+ * `field/to-tf.ts`'s handling of `relatedParentValues`.
237
273
  */
238
274
  export interface PicklistAppFieldBase<Scope extends FieldScope = "unscoped"> extends AspectFieldBase<Scope> {
239
275
  readonly options?: Readonly<Record<string, PicklistOption>>;
240
276
  readonly picklistValues?: readonly PicklistValueExInput[];
241
- readonly config?: PicklistConfigInput;
277
+ readonly config?: NormalizedPicklistConfig;
242
278
  readonly values?: readonly string[];
243
279
  readonly referenceFormat?: AspectReferenceFieldFormat;
244
280
  readonly parentField?: PicklistAppField<Scope> | MultiPicklistAppField<Scope>;
@@ -249,7 +285,7 @@ export interface PicklistAppFieldBase<Scope extends FieldScope = "unscoped"> ext
249
285
  * set is still present in the current `picklistValues`; missing
250
286
  * ids → throw, since the EDK doesn't support deleting picklist
251
287
  * values (matching the create/update-only pattern across
252
- * `defineAutomation`, `defineAgent`, etc.).
288
+ * `automation`, `agent`, etc.).
253
289
  *
254
290
  * Hand-authored fields don't set this; the guard is a no-op.
255
291
  * Never serialized to ultron — `resolvePicklistValues` projects
@@ -282,7 +318,7 @@ export interface AttachmentAppField<Scope extends FieldScope = "unscoped"> exten
282
318
  * RELATION fields (`elementum_relation_field`) - a dynamic dropdown whose
283
319
  * options are records from another App/Element/Task, distinct from a
284
320
  * static PICKLIST (no fixed `options` list at all). `relatedObject`/
285
- * `relatedLabelField` accept a catalog token (`AspectRef`/`FieldRef`) or a
321
+ * `relatedLabelField` accept a catalog token (`AppOrElementRef`/`FieldRef`) or a
286
322
  * raw platform id. A token naming a SIBLING app/element authored in the
287
323
  * same build resolves to a direct resource reference - Terraform sequences
288
324
  * its creation automatically, so it does NOT need to already exist on the
@@ -295,7 +331,7 @@ export interface AttachmentAppField<Scope extends FieldScope = "unscoped"> exten
295
331
  */
296
332
  export interface RelationAppField<Scope extends FieldScope = "unscoped"> extends AspectFieldBase<Scope> {
297
333
  readonly type: "RELATION";
298
- readonly relatedObject: AspectRef | string;
334
+ readonly relatedObject: AppOrElementRef | string;
299
335
  readonly relatedLabelField: FieldRef | string;
300
336
  /** Defaults to `true` on the platform. */
301
337
  readonly autoRelate?: boolean;
@@ -349,9 +385,9 @@ export interface AppAgent {
349
385
  /**
350
386
  * A reusable agentic skill owned by the app — an AI capability bundle
351
387
  * (prompt + tools) that one of the app's agents can be granted via
352
- * `defineAgent({ skills: [...] })`. The agent doesn't author the skill
388
+ * `agent({ skills: [...] })`. The agent doesn't author the skill
353
389
  * here; it only references it by id/name. Authoring lives on the
354
- * separate `defineSkill` factory and lands in this bag once deployed.
390
+ * separate `skill` factory and lands in this bag once deployed.
355
391
  */
356
392
  export interface AppAgenticSkill {
357
393
  readonly id: string;
@@ -370,7 +406,7 @@ export interface AppSearchTable<TFields extends Record<string, AppField> = {}> {
370
406
  *
371
407
  * `type` is required — the renderer reads it from antman's wire
372
408
  * (`TriggerParameter.fieldType`, surfaced from mobius's
373
- * `ServiceTaskParam.fieldType`). Hand-authored `defineApp({ ... })`
409
+ * `ServiceTaskParam.fieldType`). Hand-authored `app({ ... })`
374
410
  * entries must set it explicitly so `runAutomation`'s input typing can
375
411
  * derive value types.
376
412
  */
@@ -384,12 +420,12 @@ export interface AppAutomationParam {
384
420
  /**
385
421
  * Workflow metadata attached to an automation in an AppAutomation
386
422
  * entry — the part the agent needs to pull the automation back as
387
- * editable source via `defineAutomation.fromJSON`.
423
+ * editable source via `automation.fromJSON`.
388
424
  *
389
425
  * Substantive type, not a wrapper over the entity-client's `Workflow`:
390
426
  * - `id` is required, so the agent can't author an entry with
391
427
  * workflow metadata but no actual id (typecheck catches it at
392
- * `defineApp({...})` construction time).
428
+ * `app({...})` construction time).
393
429
  * - Surface is narrow to authoring concerns. Heavier wire fields
394
430
  * (triggers, tasks, outputs, owner, etc.) live on the
395
431
  * entity-client's `Workflow` and are read at pull time, not
@@ -401,7 +437,7 @@ export interface AppAutomationParam {
401
437
  * which to pull at the call site:
402
438
  *
403
439
  * ```ts
404
- * defineAutomation.fromJSON(myApp.automations.foo.workflowDraft!)
440
+ * automation.fromJSON(myApp.automations.foo.workflowDraft!)
405
441
  * ```
406
442
  *
407
443
  * (The ref is passed directly, not its `.id` — `fromJSON` takes the
@@ -409,7 +445,7 @@ export interface AppAutomationParam {
409
445
  */
410
446
  export interface AppAutomationWorkflow<TParams extends Record<string, AppAutomationParam> = {}> {
411
447
  /**
412
- * Runtime-injected discriminator stamped by `defineApp` so the SDK
448
+ * Runtime-injected discriminator stamped by `app` so the SDK
413
449
  * can distinguish a workflow ref from its parent automation ref at
414
450
  * tool-config time. Both shapes have the same required surface
415
451
  * (`id: string`), so structural typing alone can't tell them apart
@@ -437,7 +473,7 @@ export interface AppAutomationWorkflow<TParams extends Record<string, AppAutomat
437
473
  }
438
474
  export interface AppAutomation<TParams extends Record<string, AppAutomationParam> = {}, TStatus extends "DRAFT" | "ACTIVE" = "ACTIVE"> {
439
475
  /**
440
- * Runtime-injected discriminator stamped by `defineApp`. Pairs with
476
+ * Runtime-injected discriminator stamped by `app`. Pairs with
441
477
  * `AppAutomationWorkflow.kind` to let the SDK reject a workflow ref
442
478
  * passed where an automation ref was expected (e.g.
443
479
  * `agentExecuteWorkflowTool({ automation: ... })`). See the comment
@@ -456,8 +492,8 @@ export interface AppAutomation<TParams extends Record<string, AppAutomationParam
456
492
  /**
457
493
  * Live published version of this automation. Populated by the agent
458
494
  * from the `workflowCurrent` field of the antman app definition
459
- * response when authoring `defineApp({...})`. Read at pull time
460
- * via `defineAutomation.fromJSON(myApp.automations.foo.workflowCurrent!)`.
495
+ * response when authoring `app({...})`. Read at pull time
496
+ * via `automation.fromJSON(myApp.automations.foo.workflowCurrent!)`.
461
497
  * Carries the active version's parameters for `runAutomation`
462
498
  * static-mode resolution.
463
499
  */
@@ -533,14 +569,13 @@ interface Deployable {
533
569
  }
534
570
  /**
535
571
  * Narrow `Deployable` shapes, discriminated on the `kind` literal every
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.
572
+ * builder output sets (`agent` → `"agent"`, `automation` →
573
+ * `"automation"`). Used to constrain each App bag so a deployable of the
574
+ * wrong kind is a compile error instead of a runtime surprise at deploy time.
540
575
  *
541
576
  * These are structural (not imported from the builder modules) to avoid
542
577
  * a circular import between `core/types/app.ts` and `agents/builder.ts`
543
- * / `automations/builder.ts` / `flows/builder.ts`. Every builder output
578
+ * / `automations/builder.ts`. Every builder output
544
579
  * satisfies the corresponding shape because its own `kind` field is a
545
580
  * literal, not the wider `DeployableKind` union.
546
581
  */
@@ -550,13 +585,6 @@ export interface DeployableAgent extends Deployable {
550
585
  export interface DeployableAutomation extends Deployable {
551
586
  readonly kind: "automation";
552
587
  }
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
588
  export interface DeployableApprovalChain extends Deployable {
561
589
  readonly kind: "approvalChain";
562
590
  }
@@ -576,7 +604,7 @@ export interface AppApprovalChain {
576
604
  * `Deployable` of the matching kind. A `Deployable`'s id is assigned at
577
605
  * deploy time via the late-binding registry.
578
606
  */
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> = {}> {
607
+ 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
608
  readonly id: string;
581
609
  readonly name: string;
582
610
  readonly fields: TFields;
@@ -604,7 +632,6 @@ export interface App<TFields extends Record<string, AppField> = {}, TAgents exte
604
632
  readonly searchTables: TSearchTables;
605
633
  readonly automations: TAutomations;
606
634
  readonly phoneServices: TPhoneServices;
607
- readonly flows: TFlows;
608
635
  readonly approvalChains: TApprovalChains;
609
636
  readonly agenticSkills: TAgenticSkills;
610
637
  readonly stages: TStages;
@@ -631,8 +658,8 @@ export interface App<TFields extends Record<string, AppField> = {}, TAgents exte
631
658
  readonly recordCreateDisplayBlocks?: DisplayBlockBag;
632
659
  /**
633
660
  * 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
661
+ * as a card with sections for automations, agents, and related entities.
662
+ * Built children embed their own `FlowGraph` / `ActivityNode`; pre-loaded
636
663
  * `App*` refs render as single neutral leaf nodes (since their
637
664
  * internal structure isn't available without a deploy round-trip).
638
665
  */
@@ -650,7 +677,7 @@ export type ValidateAppFields<TFields extends Record<string, AppField>> = {
650
677
  [K in keyof TFields]: TFields[K]["name"] extends ReservedSystemFieldName ? HasKnownSystemSemanticTag<TFields[K]> extends true ? TFields[K] : _ReservedSystemFieldName<TFields[K]["name"] & string> : TFields[K];
651
678
  };
652
679
  /**
653
- * Shared options shape consumed by both the data-only `defineApp`
680
+ * Shared options shape consumed by both the data-only `app`
654
681
  * (this file) and the deploy-attached wrapper in
655
682
  * `src/aspects/index.ts`. Hoisting the options type to one
656
683
  * declaration site means a future addition (e.g. a new optional
@@ -669,7 +696,7 @@ export type ValidateAppFields<TFields extends Record<string, AppField>> = {
669
696
  * not legitimate fetched state). The agent should only see this
670
697
  * flag in `generated/apps/*.ts` files; never write it by hand.
671
698
  */
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> = {}> {
699
+ 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
700
  readonly id: string;
674
701
  readonly name: string;
675
702
  readonly snapshot?: TSnapshot;
@@ -686,7 +713,6 @@ export interface DefineAppOpts<TFields extends Record<string, AppField> = {}, TA
686
713
  readonly searchTables?: TSearchTables;
687
714
  readonly automations?: TAutomations;
688
715
  readonly phoneServices?: TPhoneServices;
689
- readonly flows?: TFlows;
690
716
  readonly approvalChains?: TApprovalChains;
691
717
  readonly agenticSkills?: TAgenticSkills;
692
718
  readonly stages?: TStages;
@@ -703,7 +729,7 @@ export interface DefineAppOpts<TFields extends Record<string, AppField> = {}, TA
703
729
  readonly cloudConnection?: AppCloudConnection;
704
730
  /**
705
731
  * Toggle the comments display block. Only available on snapshot
706
- * sources (pulled via `defineApp.fromJSON(...)`) because the EDK
732
+ * sources (pulled via `app.fromJSON(...)`) because the EDK
707
733
  * needs the full `displayBlocks` list to reconcile the comments
708
734
  * block on update — a fresh create has no list and the platform
709
735
  * auto-provisions display blocks without a comments block. To
@@ -716,7 +742,7 @@ export interface DefineAppOpts<TFields extends Record<string, AppField> = {}, TA
716
742
  /** New-record-form layout blocks, keyed by author handle. */
717
743
  readonly recordCreateDisplayBlocks?: DisplayBlockBag;
718
744
  }
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>;
745
+ export declare function app<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
746
  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
747
  /**
722
748
  * Value type for a single app field: static picklists use `PicklistOption` (one of `options` values);
@@ -746,7 +772,7 @@ export type FieldValueForAppField<F extends AppField<FieldScope>> = F extends {
746
772
  * conditional mapped types, so `ctx.trigger.record.id` would fail to type-check
747
773
  * with the intersection form.
748
774
  */
749
- export type AspectRecord<A extends App> = A extends App<infer TFields, any, any, any, any, any, any, any, any, infer TSystemFields> ? {
775
+ export type AspectRecord<A extends App> = A extends App<infer TFields, any, any, any, any, any, any, any, infer TSystemFields> ? {
750
776
  [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
777
  } : unknown;
752
778
  /**
@@ -807,7 +833,7 @@ export declare function asRowProxy<T extends {
807
833
  fields: Record<string, AppField>;
808
834
  }>(source: T): RowProxy<T>;
809
835
  /**
810
- * Static picklist value in tasks: `values: { stage: (options) => options.Assigned }`.
836
+ * Static picklist value in actions: `values: { stage: (options) => options.Assigned }`.
811
837
  * `options` is that field's `options` map (same object as `app.fields.<field>.options`).
812
838
  */
813
839
  export type PicklistOptionsResolver<F extends AppField> = F extends {
@@ -821,7 +847,7 @@ export type PicklistOptionsResolver<F extends AppField> = F extends {
821
847
  * Allowed `values` entry per field. Static picklists: **only** `(options) => options.X` or `Ref` (e.g. dynamic UUID).
822
848
  * Other fields: `ValueOrRef` as usual.
823
849
  */
824
- export type AppFieldInputForTask<F extends AppField> = F extends {
850
+ export type AppFieldInputForAction<F extends AppField> = F extends {
825
851
  type: "PICKLIST";
826
852
  readonly options: Readonly<Record<string, PicklistOption>>;
827
853
  } ? PicklistOptionsResolver<F> | Ref<FieldValueForAppField<F>> : F extends {
@@ -76,7 +76,7 @@ export function buildFieldTypeByIdMap(app) {
76
76
  }
77
77
  return m;
78
78
  }
79
- export function defineApp(opts) {
79
+ export function app(opts) {
80
80
  const built = {
81
81
  id: opts.id,
82
82
  name: opts.name,
@@ -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 ?? {}),
@@ -118,7 +117,7 @@ export function defineApp(opts) {
118
117
  *
119
118
  * Pure function — returns a new object graph rather than mutating
120
119
  * the input. Non-`AppAutomation` entries (`DeployableAutomation`
121
- * objects produced by `defineAutomation(...).build()`) pass through
120
+ * objects produced by `automation(...).build()`) pass through
122
121
  * unchanged; the brand is only relevant for `AppAutomation` data
123
122
  * refs.
124
123
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * AspectCategoryRef — a typed handle to an existing aspect category on
3
3
  * the Elementum platform. Distinct from {@link AppCategory} (in
4
- * `app.ts`), which is the by-name shape that `defineApp({ category })`
4
+ * `app.ts`), which is the by-name shape that `app({ category })`
5
5
  * accepts because the compose endpoint upserts categories by name.
6
6
  *
7
7
  * Some antman endpoints (notably `POST /v1/elements`) accept a
@@ -11,7 +11,7 @@
11
11
  *
12
12
  * ```ts
13
13
  * // connectors/categories.ts
14
- * export const importedData = defineCategory({
14
+ * export const importedData = category({
15
15
  * id: "3b7a6ef4-...",
16
16
  * name: "Imported Data",
17
17
  * });
@@ -19,7 +19,7 @@
19
19
  * // elements/tickets.ts
20
20
  * import { importedData } from "../connectors/categories.js";
21
21
  *
22
- * defineElement({
22
+ * element({
23
23
  * category: importedData,
24
24
  * // ...
25
25
  * });
@@ -29,7 +29,7 @@ export interface AspectCategoryRef {
29
29
  readonly id: string;
30
30
  readonly name?: string;
31
31
  }
32
- export declare function defineCategory(opts: {
32
+ export declare function category(opts: {
33
33
  id: string;
34
34
  name?: string;
35
35
  }): AspectCategoryRef;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * AspectCategoryRef — a typed handle to an existing aspect category on
3
3
  * the Elementum platform. Distinct from {@link AppCategory} (in
4
- * `app.ts`), which is the by-name shape that `defineApp({ category })`
4
+ * `app.ts`), which is the by-name shape that `app({ category })`
5
5
  * accepts because the compose endpoint upserts categories by name.
6
6
  *
7
7
  * Some antman endpoints (notably `POST /v1/elements`) accept a
@@ -11,7 +11,7 @@
11
11
  *
12
12
  * ```ts
13
13
  * // connectors/categories.ts
14
- * export const importedData = defineCategory({
14
+ * export const importedData = category({
15
15
  * id: "3b7a6ef4-...",
16
16
  * name: "Imported Data",
17
17
  * });
@@ -19,13 +19,13 @@
19
19
  * // elements/tickets.ts
20
20
  * import { importedData } from "../connectors/categories.js";
21
21
  *
22
- * defineElement({
22
+ * element({
23
23
  * category: importedData,
24
24
  * // ...
25
25
  * });
26
26
  * ```
27
27
  */
28
- export function defineCategory(opts) {
28
+ export function category(opts) {
29
29
  return {
30
30
  id: opts.id,
31
31
  ...(opts.name != null && { name: opts.name }),
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * ```ts
11
11
  * // connectors/cloud-links.ts
12
- * export const prodSnowflake = defineCloudLink({
12
+ * export const prodSnowflake = cloudLink({
13
13
  * id: "ab100edd-b301-4a16-b269-e5347449ad9b",
14
14
  * name: "Prod Snowflake",
15
15
  * });
@@ -17,7 +17,7 @@
17
17
  * // search-tables/linked-tickets.ts
18
18
  * import { prodSnowflake } from "../connectors/cloud-links.js";
19
19
  *
20
- * defineSearchTable({
20
+ * searchTable({
21
21
  * kind: "linked",
22
22
  * cloudLink: prodSnowflake,
23
23
  * // ...
@@ -28,7 +28,7 @@ export interface CloudLink {
28
28
  readonly id: string;
29
29
  readonly name?: string;
30
30
  }
31
- export declare function defineCloudLink(opts: {
31
+ export declare function cloudLink(opts: {
32
32
  id: string;
33
33
  name?: string;
34
34
  }): CloudLink;
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * ```ts
11
11
  * // connectors/cloud-links.ts
12
- * export const prodSnowflake = defineCloudLink({
12
+ * export const prodSnowflake = cloudLink({
13
13
  * id: "ab100edd-b301-4a16-b269-e5347449ad9b",
14
14
  * name: "Prod Snowflake",
15
15
  * });
@@ -17,14 +17,14 @@
17
17
  * // search-tables/linked-tickets.ts
18
18
  * import { prodSnowflake } from "../connectors/cloud-links.js";
19
19
  *
20
- * defineSearchTable({
20
+ * searchTable({
21
21
  * kind: "linked",
22
22
  * cloudLink: prodSnowflake,
23
23
  * // ...
24
24
  * });
25
25
  * ```
26
26
  */
27
- export function defineCloudLink(opts) {
27
+ export function cloudLink(opts) {
28
28
  return {
29
29
  id: opts.id,
30
30
  ...(opts.name != null && { name: opts.name }),
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Display-block authoring types — the typed shapes an author places in
3
- * `defineApp({ displayBlocks: {...} })` (record-view layout) and
4
- * `defineApp({ recordCreateDisplayBlocks: {...} })` (new-record form).
3
+ * `app({ displayBlocks: {...} })` (record-view layout) and
4
+ * `app({ recordCreateDisplayBlocks: {...} })` (new-record form).
5
5
  *
6
6
  * A display block controls how a record's fields and components are
7
7
  * laid out in the UI. Each bag is keyed by an author-chosen handle;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Display-block authoring types — the typed shapes an author places in
3
- * `defineApp({ displayBlocks: {...} })` (record-view layout) and
4
- * `defineApp({ recordCreateDisplayBlocks: {...} })` (new-record form).
3
+ * `app({ displayBlocks: {...} })` (record-view layout) and
4
+ * `app({ recordCreateDisplayBlocks: {...} })` (new-record form).
5
5
  *
6
6
  * A display block controls how a record's fields and components are
7
7
  * laid out in the UI. Each bag is keyed by an author-chosen handle;
@@ -7,7 +7,7 @@ export interface GroupRef {
7
7
  readonly id: string;
8
8
  readonly name?: string;
9
9
  }
10
- export declare function defineGroup(opts: {
10
+ export declare function group(opts: {
11
11
  id: string;
12
12
  name?: string;
13
13
  }): GroupRef;
@@ -1,4 +1,4 @@
1
- export function defineGroup(opts) {
1
+ export function group(opts) {
2
2
  return {
3
3
  id: opts.id,
4
4
  ...(opts.name != null && { name: opts.name }),
@@ -12,7 +12,7 @@ export interface UserRef {
12
12
  readonly firstName?: string;
13
13
  readonly lastName?: string;
14
14
  }
15
- export declare function defineUser(opts: {
15
+ export declare function user(opts: {
16
16
  id: string;
17
17
  email: string;
18
18
  firstName?: string;
@@ -1,4 +1,4 @@
1
- export function defineUser(opts) {
1
+ export function user(opts) {
2
2
  return {
3
3
  id: opts.id,
4
4
  email: opts.email,
@@ -21,11 +21,11 @@ export function serializeRefData(data) {
21
21
  // lowercases the root segment of any trigger ref in the result tree.
22
22
  return { triggerReference: { name: data.name } };
23
23
  case "task":
24
- return { taskReference: { taskRefKey: data.taskRefKey, name: data.name } };
24
+ return { taskReference: { taskRefKey: data.actionRefKey, name: data.name } };
25
25
  case "forEach":
26
26
  return {
27
27
  forEachReference: {
28
- forEachTaskRefKey: data.forEachTaskName,
28
+ forEachTaskRefKey: data.forEachActionName,
29
29
  name: data.name,
30
30
  },
31
31
  };
@@ -78,7 +78,7 @@ function serializeTemplate(data) {
78
78
  * `resolveVariableParamMarkers` after all tasks are serialized.
79
79
  */
80
80
  function serializeVariableParamMarker(data) {
81
- return { __variableParamRef: { variableTaskRefKey: data.variableTaskRefKey, name: data.name } };
81
+ return { __variableParamRef: { variableTaskRefKey: data.variableActionRefKey, name: data.name } };
82
82
  }
83
83
  /**
84
84
  * Serialize a ValueOrRef to a ValueReferenceInput JSON.