@elementumai/edk 0.0.0-oidc-bootstrap → 0.8.1

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 (390) hide show
  1. package/README.md +462 -3
  2. package/dist-sdk/elementum-entity-client/clients/agents/models/agent-tool.d.ts +188 -0
  3. package/dist-sdk/elementum-entity-client/clients/agents/models/agent-tool.js +20 -0
  4. package/dist-sdk/elementum-entity-client/clients/agents/models/agent.d.ts +245 -0
  5. package/dist-sdk/elementum-entity-client/clients/agents/models/agent.js +30 -0
  6. package/dist-sdk/elementum-entity-client/clients/ai-provider-connectors/models/ai-provider-connector.d.ts +18 -0
  7. package/dist-sdk/elementum-entity-client/clients/ai-provider-connectors/models/ai-provider-connector.js +8 -0
  8. package/dist-sdk/elementum-entity-client/clients/aspects/models/aspect.d.ts +718 -0
  9. package/dist-sdk/elementum-entity-client/clients/aspects/models/aspect.js +52 -0
  10. package/dist-sdk/elementum-entity-client/clients/aspects/models/field-base.d.ts +23 -0
  11. package/dist-sdk/elementum-entity-client/clients/aspects/models/field-base.js +1 -0
  12. package/dist-sdk/elementum-entity-client/clients/aspects/models/field-types.d.ts +148 -0
  13. package/dist-sdk/elementum-entity-client/clients/aspects/models/field-types.js +12 -0
  14. package/dist-sdk/elementum-entity-client/clients/aspects/models/format.d.ts +63 -0
  15. package/dist-sdk/elementum-entity-client/clients/aspects/models/format.js +17 -0
  16. package/dist-sdk/elementum-entity-client/clients/aspects/models/index.d.ts +39 -0
  17. package/dist-sdk/elementum-entity-client/clients/aspects/models/index.js +35 -0
  18. package/dist-sdk/elementum-entity-client/clients/aspects/models/picklist-config.d.ts +116 -0
  19. package/dist-sdk/elementum-entity-client/clients/aspects/models/picklist-config.js +11 -0
  20. package/dist-sdk/elementum-entity-client/clients/automation/models/automation.d.ts +178 -0
  21. package/dist-sdk/elementum-entity-client/clients/automation/models/automation.js +18 -0
  22. package/dist-sdk/elementum-entity-client/clients/document-models/models/document-model.d.ts +200 -0
  23. package/dist-sdk/elementum-entity-client/clients/document-models/models/document-model.js +1 -0
  24. package/dist-sdk/elementum-entity-client/clients/search-tables/models/index.d.ts +1 -0
  25. package/dist-sdk/elementum-entity-client/clients/search-tables/models/index.js +1 -0
  26. package/dist-sdk/elementum-entity-client/clients/search-tables/models/search-table-wire.d.ts +141 -0
  27. package/dist-sdk/elementum-entity-client/clients/search-tables/models/search-table-wire.js +22 -0
  28. package/dist-sdk/elementum-entity-client/clients/skills/models/skill-tool.d.ts +123 -0
  29. package/dist-sdk/elementum-entity-client/clients/skills/models/skill-tool.js +14 -0
  30. package/dist-sdk/elementum-entity-client/clients/skills/models/skill.d.ts +78 -0
  31. package/dist-sdk/elementum-entity-client/clients/skills/models/skill.js +23 -0
  32. package/dist-sdk/elementum-entity-client/clients/tables/models/index.d.ts +1 -0
  33. package/dist-sdk/elementum-entity-client/clients/tables/models/index.js +1 -0
  34. package/dist-sdk/elementum-entity-client/clients/tables/models/table-wire.d.ts +265 -0
  35. package/dist-sdk/elementum-entity-client/clients/tables/models/table-wire.js +15 -0
  36. package/dist-sdk/elementum-entity-client/errors.d.ts +90 -0
  37. package/dist-sdk/elementum-entity-client/errors.js +111 -0
  38. package/dist-sdk/elementum-entity-client/models/connection.d.ts +30 -0
  39. package/dist-sdk/elementum-entity-client/models/connection.js +16 -0
  40. package/dist-sdk/elementum-entity-client/types.d.ts +71 -0
  41. package/dist-sdk/elementum-entity-client/types.js +1 -0
  42. package/dist-sdk/fs/entity.d.ts +104 -0
  43. package/dist-sdk/fs/entity.js +52 -0
  44. package/dist-sdk/pull/util.d.ts +130 -0
  45. package/dist-sdk/pull/util.js +204 -0
  46. package/dist-sdk/src/catalog/ai-provider-models.d.ts +30 -0
  47. package/dist-sdk/src/catalog/ai-provider-models.js +63 -0
  48. package/dist-sdk/src/catalog/factories.d.ts +242 -0
  49. package/dist-sdk/src/catalog/factories.js +265 -0
  50. package/dist-sdk/src/catalog/from-authoring.d.ts +103 -0
  51. package/dist-sdk/src/catalog/from-authoring.js +467 -0
  52. package/dist-sdk/src/catalog/index.d.ts +12 -0
  53. package/dist-sdk/src/catalog/index.js +12 -0
  54. package/dist-sdk/src/catalog/org.d.ts +11 -0
  55. package/dist-sdk/src/catalog/org.js +288 -0
  56. package/dist-sdk/src/catalog/render-helpers.d.ts +35 -0
  57. package/dist-sdk/src/catalog/render-helpers.js +82 -0
  58. package/dist-sdk/src/catalog/render.d.ts +48 -0
  59. package/dist-sdk/src/catalog/render.js +193 -0
  60. package/dist-sdk/src/catalog/token.d.ts +10 -0
  61. package/dist-sdk/src/catalog/token.js +76 -0
  62. package/dist-sdk/src/catalog/types.d.ts +215 -0
  63. package/dist-sdk/src/catalog/types.js +86 -0
  64. package/dist-sdk/src/catalog/write.d.ts +43 -0
  65. package/dist-sdk/src/catalog/write.js +109 -0
  66. package/dist-sdk/src/core/app-to-ui.d.ts +22 -0
  67. package/dist-sdk/src/core/app-to-ui.js +75 -0
  68. package/dist-sdk/src/core/index.d.ts +10 -0
  69. package/dist-sdk/src/core/index.js +9 -0
  70. package/dist-sdk/src/core/system-fields.d.ts +95 -0
  71. package/dist-sdk/src/core/system-fields.js +153 -0
  72. package/dist-sdk/src/core/triggers/on-demand.d.ts +144 -0
  73. package/dist-sdk/src/core/triggers/on-demand.js +112 -0
  74. package/dist-sdk/src/core/types/ai-provider.d.ts +23 -0
  75. package/dist-sdk/src/core/types/ai-provider.js +8 -0
  76. package/dist-sdk/src/core/types/app.d.ts +857 -0
  77. package/dist-sdk/src/core/types/app.js +210 -0
  78. package/dist-sdk/src/core/types/aspect-category.d.ts +35 -0
  79. package/dist-sdk/src/core/types/aspect-category.js +33 -0
  80. package/dist-sdk/src/core/types/cloud-link.d.ts +34 -0
  81. package/dist-sdk/src/core/types/cloud-link.js +32 -0
  82. package/dist-sdk/src/core/types/display-block.d.ts +149 -0
  83. package/dist-sdk/src/core/types/display-block.js +61 -0
  84. package/dist-sdk/src/core/types/group.d.ts +13 -0
  85. package/dist-sdk/src/core/types/group.js +6 -0
  86. package/dist-sdk/src/core/types/platform.d.ts +2 -0
  87. package/dist-sdk/src/core/types/platform.js +1 -0
  88. package/dist-sdk/src/core/types/user.d.ts +20 -0
  89. package/dist-sdk/src/core/types/user.js +8 -0
  90. package/dist-sdk/src/core/wire/ref-serializer.d.ts +45 -0
  91. package/dist-sdk/src/core/wire/ref-serializer.js +89 -0
  92. package/dist-sdk/src/engine/build/context.d.ts +67 -0
  93. package/dist-sdk/src/engine/build/context.js +6 -0
  94. package/dist-sdk/src/engine/build/source-context.d.ts +45 -0
  95. package/dist-sdk/src/engine/build/source-context.js +23 -0
  96. package/dist-sdk/src/engine/entity.d.ts +44 -0
  97. package/dist-sdk/src/engine/entity.js +15 -0
  98. package/dist-sdk/src/engine/pull/context.d.ts +38 -0
  99. package/dist-sdk/src/engine/pull/context.js +44 -0
  100. package/dist-sdk/src/engine/pull/org.d.ts +54 -0
  101. package/dist-sdk/src/engine/pull/org.js +134 -0
  102. package/dist-sdk/src/engine/tf/escape.d.ts +22 -0
  103. package/dist-sdk/src/engine/tf/escape.js +28 -0
  104. package/dist-sdk/src/engine/tf/expr.d.ts +25 -0
  105. package/dist-sdk/src/engine/tf/expr.js +405 -0
  106. package/dist-sdk/src/engine/tf/index.d.ts +12 -0
  107. package/dist-sdk/src/engine/tf/index.js +11 -0
  108. package/dist-sdk/src/engine/tf/labels.d.ts +76 -0
  109. package/dist-sdk/src/engine/tf/labels.js +196 -0
  110. package/dist-sdk/src/engine/tf/model.d.ts +84 -0
  111. package/dist-sdk/src/engine/tf/model.js +49 -0
  112. package/dist-sdk/src/engine/tf/parse.d.ts +41 -0
  113. package/dist-sdk/src/engine/tf/parse.js +189 -0
  114. package/dist-sdk/src/engine/tf/render.d.ts +13 -0
  115. package/dist-sdk/src/engine/tf/render.js +102 -0
  116. package/dist-sdk/src/engine/workspace/authoring-layout.d.ts +43 -0
  117. package/dist-sdk/src/engine/workspace/authoring-layout.js +201 -0
  118. package/dist-sdk/src/entities/access-policy/build.d.ts +26 -0
  119. package/dist-sdk/src/entities/access-policy/build.js +7 -0
  120. package/dist-sdk/src/entities/access-policy/filter.d.ts +61 -0
  121. package/dist-sdk/src/entities/access-policy/filter.js +83 -0
  122. package/dist-sdk/src/entities/access-policy/from-tf.d.ts +48 -0
  123. package/dist-sdk/src/entities/access-policy/from-tf.js +189 -0
  124. package/dist-sdk/src/entities/access-policy/module.d.ts +3 -0
  125. package/dist-sdk/src/entities/access-policy/module.js +17 -0
  126. package/dist-sdk/src/entities/access-policy/to-tf.d.ts +36 -0
  127. package/dist-sdk/src/entities/access-policy/to-tf.js +149 -0
  128. package/dist-sdk/src/entities/access-policy/types.d.ts +4 -0
  129. package/dist-sdk/src/entities/access-policy/types.js +10 -0
  130. package/dist-sdk/src/entities/agent/build.d.ts +108 -0
  131. package/dist-sdk/src/entities/agent/build.js +148 -0
  132. package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.d.ts +53 -0
  133. package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +344 -0
  134. package/dist-sdk/src/entities/agent/from-tf.d.ts +65 -0
  135. package/dist-sdk/src/entities/agent/from-tf.js +289 -0
  136. package/dist-sdk/src/entities/agent/index.d.ts +7 -0
  137. package/dist-sdk/src/entities/agent/index.js +7 -0
  138. package/dist-sdk/src/entities/agent/module.d.ts +4 -0
  139. package/dist-sdk/src/entities/agent/module.js +122 -0
  140. package/dist-sdk/src/entities/agent/to-tf.d.ts +33 -0
  141. package/dist-sdk/src/entities/agent/to-tf.js +188 -0
  142. package/dist-sdk/src/entities/agent/tools.d.ts +284 -0
  143. package/dist-sdk/src/entities/agent/tools.js +238 -0
  144. package/dist-sdk/src/entities/agent-tool/from-tf.d.ts +110 -0
  145. package/dist-sdk/src/entities/agent-tool/from-tf.js +265 -0
  146. package/dist-sdk/src/entities/agent-tool/module.d.ts +3 -0
  147. package/dist-sdk/src/entities/agent-tool/module.js +32 -0
  148. package/dist-sdk/src/entities/agent-tool/to-tf.d.ts +40 -0
  149. package/dist-sdk/src/entities/agent-tool/to-tf.js +250 -0
  150. package/dist-sdk/src/entities/agent-tool/types.d.ts +43 -0
  151. package/dist-sdk/src/entities/agent-tool/types.js +102 -0
  152. package/dist-sdk/src/entities/app/build.d.ts +368 -0
  153. package/dist-sdk/src/entities/app/build.js +372 -0
  154. package/dist-sdk/src/entities/app/deserializer/normalize.d.ts +168 -0
  155. package/dist-sdk/src/entities/app/deserializer/normalize.js +12 -0
  156. package/dist-sdk/src/entities/app/display-blocks.d.ts +26 -0
  157. package/dist-sdk/src/entities/app/display-blocks.js +34 -0
  158. package/dist-sdk/src/entities/app/from-tf.d.ts +23 -0
  159. package/dist-sdk/src/entities/app/from-tf.js +197 -0
  160. package/dist-sdk/src/entities/app/index.d.ts +14 -0
  161. package/dist-sdk/src/entities/app/index.js +11 -0
  162. package/dist-sdk/src/entities/app/locals.d.ts +11 -0
  163. package/dist-sdk/src/entities/app/locals.js +31 -0
  164. package/dist-sdk/src/entities/app/module.d.ts +4 -0
  165. package/dist-sdk/src/entities/app/module.js +66 -0
  166. package/dist-sdk/src/entities/app/to-tf.d.ts +33 -0
  167. package/dist-sdk/src/entities/app/to-tf.js +212 -0
  168. package/dist-sdk/src/entities/approval-chain/build.d.ts +24 -0
  169. package/dist-sdk/src/entities/approval-chain/build.js +56 -0
  170. package/dist-sdk/src/entities/approval-chain/index.d.ts +6 -0
  171. package/dist-sdk/src/entities/approval-chain/index.js +6 -0
  172. package/dist-sdk/src/entities/approval-chain/steps.d.ts +24 -0
  173. package/dist-sdk/src/entities/approval-chain/steps.js +20 -0
  174. package/dist-sdk/src/entities/automation/build.d.ts +259 -0
  175. package/dist-sdk/src/entities/automation/build.js +436 -0
  176. package/dist-sdk/src/entities/automation/catalog-render.d.ts +5 -0
  177. package/dist-sdk/src/entities/automation/catalog-render.js +35 -0
  178. package/dist-sdk/src/entities/automation/deserializer/ast.d.ts +152 -0
  179. package/dist-sdk/src/entities/automation/deserializer/ast.js +13 -0
  180. package/dist-sdk/src/entities/automation/deserializer/print-automation.d.ts +55 -0
  181. package/dist-sdk/src/entities/automation/deserializer/print-automation.js +1176 -0
  182. package/dist-sdk/src/entities/automation/filter.d.ts +93 -0
  183. package/dist-sdk/src/entities/automation/filter.js +156 -0
  184. package/dist-sdk/src/entities/automation/from-tf.d.ts +35 -0
  185. package/dist-sdk/src/entities/automation/from-tf.js +1258 -0
  186. package/dist-sdk/src/entities/automation/index.d.ts +22 -0
  187. package/dist-sdk/src/entities/automation/index.js +25 -0
  188. package/dist-sdk/src/entities/automation/module.d.ts +3 -0
  189. package/dist-sdk/src/entities/automation/module.js +150 -0
  190. package/dist-sdk/src/entities/automation/operators.d.ts +93 -0
  191. package/dist-sdk/src/entities/automation/operators.js +69 -0
  192. package/dist-sdk/src/entities/automation/output-key-wire-name.d.ts +19 -0
  193. package/dist-sdk/src/entities/automation/output-key-wire-name.js +24 -0
  194. package/dist-sdk/src/entities/automation/script-code.d.ts +51 -0
  195. package/dist-sdk/src/entities/automation/script-code.js +633 -0
  196. package/dist-sdk/src/entities/automation/serialize.d.ts +6 -0
  197. package/dist-sdk/src/entities/automation/serialize.js +41 -0
  198. package/dist-sdk/src/entities/automation/tasks.d.ts +641 -0
  199. package/dist-sdk/src/entities/automation/tasks.js +765 -0
  200. package/dist-sdk/src/entities/automation/to-tf.d.ts +19 -0
  201. package/dist-sdk/src/entities/automation/to-tf.js +1169 -0
  202. package/dist-sdk/src/entities/automation/triggers.d.ts +205 -0
  203. package/dist-sdk/src/entities/automation/triggers.js +202 -0
  204. package/dist-sdk/src/entities/automation/types.d.ts +78 -0
  205. package/dist-sdk/src/entities/automation/types.js +131 -0
  206. package/dist-sdk/src/entities/element/build.d.ts +121 -0
  207. package/dist-sdk/src/entities/element/build.js +110 -0
  208. package/dist-sdk/src/entities/element/from-tf.d.ts +19 -0
  209. package/dist-sdk/src/entities/element/from-tf.js +170 -0
  210. package/dist-sdk/src/entities/element/index.d.ts +12 -0
  211. package/dist-sdk/src/entities/element/index.js +10 -0
  212. package/dist-sdk/src/entities/element/locals.d.ts +7 -0
  213. package/dist-sdk/src/entities/element/locals.js +12 -0
  214. package/dist-sdk/src/entities/element/module.d.ts +8 -0
  215. package/dist-sdk/src/entities/element/module.js +65 -0
  216. package/dist-sdk/src/entities/element/to-tf.d.ts +14 -0
  217. package/dist-sdk/src/entities/element/to-tf.js +169 -0
  218. package/dist-sdk/src/entities/field/build.d.ts +112 -0
  219. package/dist-sdk/src/entities/field/build.js +84 -0
  220. package/dist-sdk/src/entities/field/calc/aggregate.d.ts +60 -0
  221. package/dist-sdk/src/entities/field/calc/aggregate.js +71 -0
  222. package/dist-sdk/src/entities/field/calc/date.d.ts +73 -0
  223. package/dist-sdk/src/entities/field/calc/date.js +109 -0
  224. package/dist-sdk/src/entities/field/calc/index.d.ts +229 -0
  225. package/dist-sdk/src/entities/field/calc/index.js +433 -0
  226. package/dist-sdk/src/entities/field/calc/numeric.d.ts +22 -0
  227. package/dist-sdk/src/entities/field/calc/numeric.js +67 -0
  228. package/dist-sdk/src/entities/field/calc/runtime.d.ts +61 -0
  229. package/dist-sdk/src/entities/field/calc/runtime.js +174 -0
  230. package/dist-sdk/src/entities/field/calc/text.d.ts +100 -0
  231. package/dist-sdk/src/entities/field/calc/text.js +208 -0
  232. package/dist-sdk/src/entities/field/calc/types.d.ts +86 -0
  233. package/dist-sdk/src/entities/field/calc/types.js +23 -0
  234. package/dist-sdk/src/entities/field/calc.d.ts +108 -0
  235. package/dist-sdk/src/entities/field/calc.js +54 -0
  236. package/dist-sdk/src/entities/field/from-tf.d.ts +31 -0
  237. package/dist-sdk/src/entities/field/from-tf.js +184 -0
  238. package/dist-sdk/src/entities/field/locals.d.ts +8 -0
  239. package/dist-sdk/src/entities/field/locals.js +24 -0
  240. package/dist-sdk/src/entities/field/module.d.ts +3 -0
  241. package/dist-sdk/src/entities/field/module.js +50 -0
  242. package/dist-sdk/src/entities/field/options.d.ts +27 -0
  243. package/dist-sdk/src/entities/field/options.js +76 -0
  244. package/dist-sdk/src/entities/field/record-shape.d.ts +57 -0
  245. package/dist-sdk/src/entities/field/record-shape.js +1 -0
  246. package/dist-sdk/src/entities/field/to-tf.d.ts +73 -0
  247. package/dist-sdk/src/entities/field/to-tf.js +142 -0
  248. package/dist-sdk/src/entities/field/types.d.ts +53 -0
  249. package/dist-sdk/src/entities/field/types.js +68 -0
  250. package/dist-sdk/src/entities/file-reader/build.d.ts +182 -0
  251. package/dist-sdk/src/entities/file-reader/build.js +105 -0
  252. package/dist-sdk/src/entities/file-reader/deserializer/print-file-reader.d.ts +6 -0
  253. package/dist-sdk/src/entities/file-reader/deserializer/print-file-reader.js +109 -0
  254. package/dist-sdk/src/entities/file-reader/from-tf.d.ts +13 -0
  255. package/dist-sdk/src/entities/file-reader/from-tf.js +172 -0
  256. package/dist-sdk/src/entities/file-reader/index.d.ts +10 -0
  257. package/dist-sdk/src/entities/file-reader/index.js +10 -0
  258. package/dist-sdk/src/entities/file-reader/module.d.ts +3 -0
  259. package/dist-sdk/src/entities/file-reader/module.js +115 -0
  260. package/dist-sdk/src/entities/file-reader/to-tf.d.ts +14 -0
  261. package/dist-sdk/src/entities/file-reader/to-tf.js +84 -0
  262. package/dist-sdk/src/entities/file-reader/types.d.ts +32 -0
  263. package/dist-sdk/src/entities/file-reader/types.js +30 -0
  264. package/dist-sdk/src/entities/flow/activities/agent.d.ts +15 -0
  265. package/dist-sdk/src/entities/flow/activities/agent.js +29 -0
  266. package/dist-sdk/src/entities/flow/activities/approval.d.ts +9 -0
  267. package/dist-sdk/src/entities/flow/activities/approval.js +18 -0
  268. package/dist-sdk/src/entities/flow/activities/automation.d.ts +12 -0
  269. package/dist-sdk/src/entities/flow/activities/automation.js +22 -0
  270. package/dist-sdk/src/entities/flow/activities/ctx.d.ts +34 -0
  271. package/dist-sdk/src/entities/flow/activities/ctx.js +38 -0
  272. package/dist-sdk/src/entities/flow/activities/form.d.ts +22 -0
  273. package/dist-sdk/src/entities/flow/activities/form.js +36 -0
  274. package/dist-sdk/src/entities/flow/activities/index.d.ts +14 -0
  275. package/dist-sdk/src/entities/flow/activities/index.js +13 -0
  276. package/dist-sdk/src/entities/flow/activities/input-refs.d.ts +39 -0
  277. package/dist-sdk/src/entities/flow/activities/input-refs.js +19 -0
  278. package/dist-sdk/src/entities/flow/activities/prompt-template.d.ts +13 -0
  279. package/dist-sdk/src/entities/flow/activities/prompt-template.js +34 -0
  280. package/dist-sdk/src/entities/flow/activities/render-catalog.d.ts +140 -0
  281. package/dist-sdk/src/entities/flow/activities/render-catalog.js +174 -0
  282. package/dist-sdk/src/entities/flow/activities/types.d.ts +33 -0
  283. package/dist-sdk/src/entities/flow/activities/types.js +1 -0
  284. package/dist-sdk/src/entities/flow/build.d.ts +38 -0
  285. package/dist-sdk/src/entities/flow/build.js +115 -0
  286. package/dist-sdk/src/entities/flow/index.d.ts +8 -0
  287. package/dist-sdk/src/entities/flow/index.js +7 -0
  288. package/dist-sdk/src/entities/flow/serialize.d.ts +51 -0
  289. package/dist-sdk/src/entities/flow/serialize.js +94 -0
  290. package/dist-sdk/src/entities/flow/util.d.ts +27 -0
  291. package/dist-sdk/src/entities/flow/util.js +38 -0
  292. package/dist-sdk/src/entities/org/ai-provider.d.ts +13 -0
  293. package/dist-sdk/src/entities/org/ai-provider.js +46 -0
  294. package/dist-sdk/src/entities/org/category.d.ts +5 -0
  295. package/dist-sdk/src/entities/org/category.js +33 -0
  296. package/dist-sdk/src/entities/org/cloud-link.d.ts +5 -0
  297. package/dist-sdk/src/entities/org/cloud-link.js +33 -0
  298. package/dist-sdk/src/entities/org/connector.d.ts +12 -0
  299. package/dist-sdk/src/entities/org/connector.js +35 -0
  300. package/dist-sdk/src/entities/org/group.d.ts +5 -0
  301. package/dist-sdk/src/entities/org/group.js +40 -0
  302. package/dist-sdk/src/entities/org/index.d.ts +11 -0
  303. package/dist-sdk/src/entities/org/index.js +11 -0
  304. package/dist-sdk/src/entities/org/role.d.ts +7 -0
  305. package/dist-sdk/src/entities/org/role.js +21 -0
  306. package/dist-sdk/src/entities/org/user.d.ts +7 -0
  307. package/dist-sdk/src/entities/org/user.js +30 -0
  308. package/dist-sdk/src/entities/search-table/build.d.ts +41 -0
  309. package/dist-sdk/src/entities/search-table/build.js +79 -0
  310. package/dist-sdk/src/entities/search-table/index.d.ts +5 -0
  311. package/dist-sdk/src/entities/search-table/index.js +5 -0
  312. package/dist-sdk/src/entities/search-table/module.d.ts +6 -0
  313. package/dist-sdk/src/entities/search-table/module.js +64 -0
  314. package/dist-sdk/src/entities/shared/context.d.ts +93 -0
  315. package/dist-sdk/src/entities/shared/context.js +156 -0
  316. package/dist-sdk/src/entities/shared/filters/ast.d.ts +277 -0
  317. package/dist-sdk/src/entities/shared/filters/ast.js +65 -0
  318. package/dist-sdk/src/entities/shared/filters/index.d.ts +211 -0
  319. package/dist-sdk/src/entities/shared/filters/index.js +372 -0
  320. package/dist-sdk/src/entities/shared/filters/types.d.ts +170 -0
  321. package/dist-sdk/src/entities/shared/filters/types.js +7 -0
  322. package/dist-sdk/src/entities/shared/ref.d.ts +160 -0
  323. package/dist-sdk/src/entities/shared/ref.js +119 -0
  324. package/dist-sdk/src/entities/shared/tool-field-ref.d.ts +17 -0
  325. package/dist-sdk/src/entities/shared/tool-field-ref.js +31 -0
  326. package/dist-sdk/src/entities/shared/types/common.d.ts +106 -0
  327. package/dist-sdk/src/entities/shared/types/common.js +64 -0
  328. package/dist-sdk/src/entities/shared/types/field-types.d.ts +58 -0
  329. package/dist-sdk/src/entities/shared/types/field-types.js +57 -0
  330. package/dist-sdk/src/entities/shared/types/platform.d.ts +46 -0
  331. package/dist-sdk/src/entities/shared/types/platform.js +10 -0
  332. package/dist-sdk/src/entities/skill/build.d.ts +25 -0
  333. package/dist-sdk/src/entities/skill/build.js +50 -0
  334. package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.d.ts +39 -0
  335. package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.js +124 -0
  336. package/dist-sdk/src/entities/skill/from-tf.d.ts +33 -0
  337. package/dist-sdk/src/entities/skill/from-tf.js +96 -0
  338. package/dist-sdk/src/entities/skill/index.d.ts +7 -0
  339. package/dist-sdk/src/entities/skill/index.js +7 -0
  340. package/dist-sdk/src/entities/skill/module.d.ts +4 -0
  341. package/dist-sdk/src/entities/skill/module.js +111 -0
  342. package/dist-sdk/src/entities/skill/to-tf.d.ts +33 -0
  343. package/dist-sdk/src/entities/skill/to-tf.js +59 -0
  344. package/dist-sdk/src/entities/skill/tools.d.ts +93 -0
  345. package/dist-sdk/src/entities/skill/tools.js +105 -0
  346. package/dist-sdk/src/entities/skill-tool/from-tf.d.ts +60 -0
  347. package/dist-sdk/src/entities/skill-tool/from-tf.js +142 -0
  348. package/dist-sdk/src/entities/skill-tool/module.d.ts +3 -0
  349. package/dist-sdk/src/entities/skill-tool/module.js +21 -0
  350. package/dist-sdk/src/entities/skill-tool/to-tf.d.ts +34 -0
  351. package/dist-sdk/src/entities/skill-tool/to-tf.js +130 -0
  352. package/dist-sdk/src/entities/skill-tool/types.d.ts +40 -0
  353. package/dist-sdk/src/entities/skill-tool/types.js +67 -0
  354. package/dist-sdk/src/entities/table/build.d.ts +74 -0
  355. package/dist-sdk/src/entities/table/build.js +339 -0
  356. package/dist-sdk/src/entities/table/catalog-render.d.ts +5 -0
  357. package/dist-sdk/src/entities/table/catalog-render.js +39 -0
  358. package/dist-sdk/src/entities/table/fields.d.ts +81 -0
  359. package/dist-sdk/src/entities/table/fields.js +70 -0
  360. package/dist-sdk/src/entities/table/filter.d.ts +41 -0
  361. package/dist-sdk/src/entities/table/filter.js +89 -0
  362. package/dist-sdk/src/entities/table/index.d.ts +8 -0
  363. package/dist-sdk/src/entities/table/index.js +12 -0
  364. package/dist-sdk/src/entities/table/joins.d.ts +26 -0
  365. package/dist-sdk/src/entities/table/joins.js +31 -0
  366. package/dist-sdk/src/entities/table/keys.d.ts +11 -0
  367. package/dist-sdk/src/entities/table/keys.js +25 -0
  368. package/dist-sdk/src/entities/table/module.d.ts +5 -0
  369. package/dist-sdk/src/entities/table/module.js +25 -0
  370. package/dist-sdk/src/entities/table/state.d.ts +39 -0
  371. package/dist-sdk/src/entities/table/state.js +43 -0
  372. package/dist-sdk/src/entities/view/from-tf.d.ts +29 -0
  373. package/dist-sdk/src/entities/view/from-tf.js +235 -0
  374. package/dist-sdk/src/entities/view/module.d.ts +24 -0
  375. package/dist-sdk/src/entities/view/module.js +61 -0
  376. package/dist-sdk/src/entities/view/to-tf.d.ts +65 -0
  377. package/dist-sdk/src/entities/view/to-tf.js +171 -0
  378. package/dist-sdk/src/entities/view/types.d.ts +58 -0
  379. package/dist-sdk/src/entities/view/types.js +89 -0
  380. package/dist-sdk/src/graph/deferred-catalog-render.d.ts +9 -0
  381. package/dist-sdk/src/graph/deferred-catalog-render.js +18 -0
  382. package/dist-sdk/src/graph/index.d.ts +91 -0
  383. package/dist-sdk/src/graph/index.js +211 -0
  384. package/dist-sdk/src/graph/modules.d.ts +7 -0
  385. package/dist-sdk/src/graph/modules.js +42 -0
  386. package/dist-sdk/src/graph/types.d.ts +375 -0
  387. package/dist-sdk/src/graph/types.js +102 -0
  388. package/dist-sdk/src/internal/sdk-package.d.ts +7 -0
  389. package/dist-sdk/src/internal/sdk-package.js +23 -0
  390. package/package.json +201 -8
@@ -0,0 +1,641 @@
1
+ /**
2
+ * v2 automation task factories. Each returns a {@link TaskDef}: the one-of
3
+ * discriminator `key` + the task's inner `config` (minus `name`, which the
4
+ * builder injects), plus the typed output exposed as `ctx.tasks.<name>`.
5
+ *
6
+ * Wire shapes mirror v1's `task-serializer.ts` exactly. Two reference
7
+ * conventions:
8
+ * - **id slots** (`aspectId`, `aspectFieldId`, `agentId`, `relatedAspectId`)
9
+ * hold `CatalogRef` tokens, resolved at deploy by `resolvePayload`.
10
+ * - **value slots** (a field's value, an email body, a record reference)
11
+ * accept a literal or a `ctx` `Ref` and are pre-serialized to the platform's
12
+ * `ValueReference` JSON via the shared, agnostic `serializeValueOrRef`.
13
+ */
14
+ import type { AgentRef, AspectRef, AutomationRef, CloudLinkRef, ConnectorRef, FileReaderCatalogRef, DocumentModelFieldRef, FieldRef, SearchTableRef } from "../../catalog/index.js";
15
+ import type { RecordShape } from "../field/record-shape.js";
16
+ import type { ValueOrRef } from "../shared/ref.js";
17
+ import type { TaskDef } from "./build.js";
18
+ import type { Filter } from "./filter.js";
19
+ import { type ScriptCodeFn } from "./script-code.js";
20
+ /** A field assignment: which field, and the value (literal or `ctx` ref). */
21
+ export interface FieldAssignment {
22
+ readonly field: FieldRef;
23
+ readonly value: ValueOrRef<unknown>;
24
+ }
25
+ export interface RecordSearchOutput<A extends AspectRef = AspectRef> {
26
+ readonly records: readonly RecordShape<A>[];
27
+ readonly record: RecordShape<A>;
28
+ readonly totalCount: number;
29
+ }
30
+ export interface RecordSearchOptions<A extends AspectRef = AspectRef> {
31
+ readonly app: A;
32
+ /** Required — the platform rejects a record search with no filter (use `filter.whereTrue()` for all). */
33
+ readonly filter: Filter;
34
+ readonly sort?: Record<string, unknown>;
35
+ readonly limit?: number;
36
+ }
37
+ export declare function recordSearch<A extends AspectRef>(opts: RecordSearchOptions<A>): TaskDef<RecordSearchOutput<A>>;
38
+ export interface TableRecordsSearchOutput<A extends AspectRef = AspectRef> {
39
+ readonly records: readonly RecordShape<A>[];
40
+ readonly record: RecordShape<A>;
41
+ readonly totalCount: number;
42
+ }
43
+ export interface TableRecordsSearchOptions<A extends AspectRef = AspectRef> {
44
+ /**
45
+ * Table id. Unlike `app`/`aspectId` slots, this is a raw string, not a
46
+ * catalog token — tables have no import/reference mechanism yet (they're
47
+ * create-only), so an existing table can't be minted into `@catalog` the
48
+ * way an app or connector can. Mirrors `approvalChainTemplateId`'s same
49
+ * raw-id convention for a referenced-but-not-catalog-modeled entity.
50
+ */
51
+ readonly table: string;
52
+ /**
53
+ * The app/element this table derives from — authoring-time only, purely to
54
+ * type `record`/`records` via `RecordShape<A>` (a table's own fields aren't
55
+ * catalog-modeled, so this is the only field-typed source available).
56
+ * Never sent to the platform.
57
+ */
58
+ readonly source?: A;
59
+ /**
60
+ * Table fields aren't catalog-modeled either (same reasoning as `table`
61
+ * above — mirrors table join fields' raw-id convention), so build with a
62
+ * raw wire filter shape directly, e.g.
63
+ * `{ type: "IS_NULL", field: "<tableFieldId>", not: true }`, rather than
64
+ * through the `filter.*` DSL (which resolves `FieldRef` catalog tokens).
65
+ */
66
+ readonly filter?: Filter;
67
+ readonly limit?: number;
68
+ }
69
+ export declare function tableRecordsSearch<A extends AspectRef = AspectRef>(opts: TableRecordsSearchOptions<A>): TaskDef<TableRecordsSearchOutput<A>>;
70
+ export interface CreateRecordOutput<A extends AspectRef = AspectRef> {
71
+ readonly record: RecordShape<A>;
72
+ }
73
+ export interface CreateRecordOptions<A extends AspectRef = AspectRef> {
74
+ readonly app: A;
75
+ readonly fields: readonly FieldAssignment[];
76
+ /** Relate the new record to `record` (the triggering/source record). */
77
+ readonly relateToRecord?: boolean;
78
+ /** A record reference to relate to, when `relateToRecord` is set. */
79
+ readonly record?: ValueOrRef<unknown>;
80
+ }
81
+ export declare function createRecord<A extends AspectRef>(opts: CreateRecordOptions<A>): TaskDef<CreateRecordOutput<A>>;
82
+ export interface UpdateFieldOptions<A extends AspectRef = AspectRef> {
83
+ readonly app: A;
84
+ /** The record to update (e.g. `ctx.trigger.record`). */
85
+ readonly record: ValueOrRef<unknown>;
86
+ readonly fields: readonly FieldAssignment[];
87
+ }
88
+ export declare function updateField<A extends AspectRef>(opts: UpdateFieldOptions<A>): TaskDef<{
89
+ record: RecordShape<A>;
90
+ }>;
91
+ export interface FindRelatedRecordsOptions<A extends AspectRef = AspectRef> {
92
+ readonly relatedApp: A;
93
+ /** The record whose related records to find. */
94
+ readonly record: ValueOrRef<unknown>;
95
+ readonly filter?: Filter;
96
+ readonly sort?: Record<string, unknown>;
97
+ readonly limit?: number;
98
+ }
99
+ export declare function findRelatedRecords<A extends AspectRef>(opts: FindRelatedRecordsOptions<A>): TaskDef<RecordSearchOutput<A>>;
100
+ export interface RelateRecordsOptions {
101
+ /** One or more source record references. */
102
+ readonly sources: readonly ValueOrRef<unknown>[];
103
+ readonly target: ValueOrRef<unknown>;
104
+ }
105
+ export declare function relateRecords(opts: RelateRecordsOptions): TaskDef<Record<string, never>>;
106
+ /** An email attachment: a literal/ref file value, or an existing record's attachment field to reuse. */
107
+ export type EmailAttachment = {
108
+ readonly file: ValueOrRef<unknown>;
109
+ } | {
110
+ readonly fromRecord: ValueOrRef<unknown>;
111
+ };
112
+ export interface SendEmailOptions {
113
+ readonly subject: ValueOrRef<unknown>;
114
+ readonly body: ValueOrRef<unknown>;
115
+ readonly fromUsername?: string;
116
+ readonly fromDisplayName?: string;
117
+ /** Recipient user references. */
118
+ readonly toUsers?: readonly ValueOrRef<unknown>[];
119
+ /** Recipient group references. */
120
+ readonly toGroups?: readonly ValueOrRef<unknown>[];
121
+ /** Literal email addresses. */
122
+ readonly toAddresses?: readonly ValueOrRef<unknown>[];
123
+ readonly attachments?: readonly EmailAttachment[];
124
+ }
125
+ export declare function sendEmail(opts: SendEmailOptions): TaskDef<Record<string, never>>;
126
+ export interface PostCommentOptions {
127
+ readonly contents: ValueOrRef<unknown>;
128
+ /** Conversation tags. Omit for an untagged comment — the provider's message task has no tags of its own. */
129
+ readonly tags?: readonly string[];
130
+ /** The record to comment on (required). */
131
+ readonly record: ValueOrRef<unknown>;
132
+ }
133
+ export declare function postComment(opts: PostCommentOptions): TaskDef<Record<string, never>>;
134
+ /** Declared scalar type of one aiAgent structured-output field. */
135
+ export type AiAgentOutputFieldType = "text" | "number" | "decimal" | "boolean" | "date" | "datetime";
136
+ export interface AiAgentOutputField {
137
+ readonly type: AiAgentOutputFieldType;
138
+ readonly description?: string;
139
+ }
140
+ /** TS type a structured-output field of the given declared type resolves to. */
141
+ type AiAgentFieldTs<T extends AiAgentOutputFieldType> = T extends "number" | "decimal" ? number : T extends "boolean" ? boolean : string;
142
+ /**
143
+ * Output shape exposed as `ctx.tasks.<name>` for an aiAgent task — always under
144
+ * a single `result` accessor. Text output is `result: string`; json output is
145
+ * `result: { <field>: … }` over the declared `schema`. The platform's wire
146
+ * reference names (`ai_agent_task_response` / `ai_agent_task_structured_output.<field>`)
147
+ * are applied by the workflow serializer; in source you always read `result`.
148
+ */
149
+ export type AiAgentOutput<S extends Record<string, AiAgentOutputField> | undefined> = S extends Record<string, AiAgentOutputField> ? {
150
+ readonly result: {
151
+ readonly [K in keyof S]: AiAgentFieldTs<S[K]["type"]>;
152
+ };
153
+ } : {
154
+ readonly result: string;
155
+ };
156
+ export interface AiAgentOptions<S extends Record<string, AiAgentOutputField> | undefined = Record<string, AiAgentOutputField> | undefined> {
157
+ readonly agent: AgentRef;
158
+ readonly prompt: ValueOrRef<unknown>;
159
+ /** Required — `"text"` or `"json"`. `"json"` requires a `schema`. */
160
+ readonly outputType: "text" | "json";
161
+ /** Structured-output schema (field name → type/description). Required for `outputType: "json"`. */
162
+ readonly schema?: S;
163
+ /** Optional connector override. */
164
+ readonly connector?: ConnectorRef;
165
+ }
166
+ export declare function aiAgent<const S extends Record<string, AiAgentOutputField> | undefined = undefined>(opts: AiAgentOptions<S>): TaskDef<AiAgentOutput<S>>;
167
+ export interface VariableDecl {
168
+ /** Server-assigned id — omit when authoring a new variable; include when updating an existing one. */
169
+ readonly id?: string;
170
+ readonly name: string;
171
+ readonly type: string;
172
+ readonly value?: ValueOrRef<unknown>;
173
+ }
174
+ export interface VariableAssign {
175
+ readonly variable: ValueOrRef<unknown>;
176
+ readonly value: ValueOrRef<unknown>;
177
+ }
178
+ export interface SetVariableOptions {
179
+ readonly create?: readonly VariableDecl[];
180
+ readonly update?: readonly VariableAssign[];
181
+ }
182
+ export declare function setVariable(opts: SetVariableOptions): TaskDef<Record<string, never>>;
183
+ type ExecuteScriptFieldValue<T extends string> = Uppercase<T> extends "INTEGER" | "NUMBER" | "DECIMAL" ? number : Uppercase<T> extends "BOOLEAN" ? boolean : string;
184
+ type ExecuteScriptOutput<O extends Record<string, string> | undefined> = {
185
+ readonly result: O extends Record<string, string> ? {
186
+ readonly [K in keyof O]: ExecuteScriptFieldValue<O[K]>;
187
+ } : Record<string, unknown>;
188
+ };
189
+ export interface ExecuteScriptOptions<O extends Record<string, string> | undefined = undefined> {
190
+ /**
191
+ * A FUNCTION whose body ships as the platform script (v3):
192
+ * `(input) => { const { X } = input.parameters; return { OUT: X }; }`.
193
+ * Matches the platform contract (`input.parameters.<name>`, mandatory
194
+ * plain-object return) and is serialized to TEXT — it must not close over
195
+ * outer variables (a best-effort scan throws on captures).
196
+ *
197
+ * Top-level workflows should use fluent `.executeScript(name, {…})` instead
198
+ * of `.task(name, () => executeScript(…))`. This factory remains for nested
199
+ * `childTask(…, executeScript(…))` (operators have no fluent surface).
200
+ */
201
+ readonly code: ScriptCodeFn<Record<string, unknown>, Record<string, unknown>>;
202
+ readonly inputs?: Record<string, ValueOrRef<unknown>>;
203
+ /** Output schema: property name → `"text" | "integer" | "number" | "decimal" | "boolean"`. */
204
+ readonly outputs?: O;
205
+ }
206
+ /**
207
+ * Build the executeScript `TaskDef` from an ALREADY-RESOLVED body string.
208
+ * Shared by the public `executeScript()` factory below (which resolves the
209
+ * body via `extractScriptBody`'s `toString()` path) and the fluent
210
+ * `WorkflowBuilder.executeScript()` in `build.ts` (which resolves it via
211
+ * `tryExtractFromCurrentSource` first, for byte-exact pulled-source fidelity,
212
+ * falling back to `extractScriptBody` only when there's no tracked source) —
213
+ * so the body is computed exactly once, not re-derived by each layer.
214
+ */
215
+ export declare function executeScriptTaskDefWithBody<O extends Record<string, string> | undefined = undefined>(body: string, opts: Pick<ExecuteScriptOptions<O>, "inputs" | "outputs">): TaskDef<ExecuteScriptOutput<O>> & {
216
+ readonly key: "executeScript";
217
+ };
218
+ export declare function executeScript<const O extends Record<string, string> | undefined = undefined>(opts: ExecuteScriptOptions<O>): TaskDef<ExecuteScriptOutput<O>> & {
219
+ readonly key: "executeScript";
220
+ };
221
+ export interface ApiRequestHeader {
222
+ readonly name: string;
223
+ readonly value: ValueOrRef<unknown>;
224
+ }
225
+ export interface ApiRequestBasicAuth {
226
+ readonly username: ValueOrRef<unknown>;
227
+ /**
228
+ * elementum_api_task's `basic_auth.reference_password` - a dynamic
229
+ * password pulled from another task's refs at runtime. Mutually exclusive
230
+ * with a static password, which is NOT modeled: the provider schema
231
+ * treats it as write-only (confirmed against api_task_resource.go's
232
+ * reconstructAPITaskBasicAuth - the API never returns the real value, so
233
+ * it's always copied forward from whatever was already in state), so a
234
+ * plan rebuilt from a fresh pull could never reproduce it.
235
+ */
236
+ readonly referencePassword?: ValueOrRef<unknown>;
237
+ }
238
+ /**
239
+ * elementum_api_task's `bearer_auth` block. `token` is a plain static
240
+ * string only (no template/ref support on the wire, and - like basic_auth's
241
+ * password - write-only on read, so it always round-trips from authored
242
+ * source rather than a pull); `referenceToken` is the round-trippable
243
+ * dynamic alternative. Mutually exclusive with each other, and with
244
+ * `basicAuth`/`oauth` at the task level.
245
+ */
246
+ export interface ApiRequestBearerAuth {
247
+ readonly token?: string;
248
+ readonly referenceToken?: ValueOrRef<unknown>;
249
+ }
250
+ /**
251
+ * elementum_api_task's `oauth` block (client-credentials grant). `clientId`/
252
+ * `clientSecret` are plain static strings, write-only on read like
253
+ * bearer_auth.token - always resent from authored source, never
254
+ * reconstructed from a pull. Mutually exclusive with `basicAuth`/
255
+ * `bearerAuth`.
256
+ */
257
+ export interface ApiRequestOAuth {
258
+ readonly url?: ValueOrRef<unknown>;
259
+ readonly clientId?: string;
260
+ readonly clientSecret?: string;
261
+ readonly requestType: "BASIC" | "FORM";
262
+ readonly headers?: readonly ApiRequestHeader[];
263
+ }
264
+ export interface ApiRequestFormValue {
265
+ readonly key: string;
266
+ readonly value: ValueOrRef<unknown>;
267
+ }
268
+ /** elementum_api_task's `custom_body` block - arbitrary content type + body text (XML, CSV, SOAP, ...). */
269
+ export interface ApiRequestCustomBody {
270
+ readonly contentType: string;
271
+ readonly content: ValueOrRef<unknown>;
272
+ }
273
+ /**
274
+ * One part of a `multipart_body`. Exactly one of `value` (a plain text
275
+ * field - templated like other body content), `attachment`, `attachmentId`,
276
+ * or `file` (value references) should be set; the provider validates the
277
+ * mutual exclusivity server-side.
278
+ */
279
+ export interface ApiRequestMultipartPart {
280
+ readonly name: string;
281
+ readonly value?: ValueOrRef<unknown>;
282
+ readonly attachment?: ValueOrRef<unknown>;
283
+ readonly attachmentId?: ValueOrRef<unknown>;
284
+ readonly file?: ValueOrRef<unknown>;
285
+ }
286
+ export interface ApiRequestMultipartBody {
287
+ readonly parts: readonly ApiRequestMultipartPart[];
288
+ }
289
+ export interface ApiRequestOptions {
290
+ readonly url: ValueOrRef<unknown>;
291
+ readonly method: string;
292
+ readonly headers?: readonly ApiRequestHeader[];
293
+ /** elementum_api_task's `basic_auth` block. Mutually exclusive with `bearerAuth`/`oauth`. */
294
+ readonly basicAuth?: ApiRequestBasicAuth;
295
+ /** elementum_api_task's `bearer_auth` block. Mutually exclusive with `basicAuth`/`oauth`. */
296
+ readonly bearerAuth?: ApiRequestBearerAuth;
297
+ /** elementum_api_task's `oauth` block. Mutually exclusive with `basicAuth`/`bearerAuth`. */
298
+ readonly oauth?: ApiRequestOAuth;
299
+ /** elementum_api_task's `json_body` attribute. Mutually exclusive with `formBody`/`customBody`/`multipartBody`. */
300
+ readonly jsonBody?: ValueOrRef<unknown>;
301
+ /** elementum_api_task's `form_body` attribute. Mutually exclusive with `jsonBody`/`customBody`/`multipartBody`. */
302
+ readonly formBody?: readonly ApiRequestFormValue[];
303
+ /** elementum_api_task's `custom_body` block. Mutually exclusive with `jsonBody`/`formBody`/`multipartBody`. */
304
+ readonly customBody?: ApiRequestCustomBody;
305
+ /** elementum_api_task's `multipart_body` block (file uploads). Mutually exclusive with `jsonBody`/`formBody`/`customBody`. */
306
+ readonly multipartBody?: ApiRequestMultipartBody;
307
+ readonly responseType?: string;
308
+ readonly continueOnError?: boolean;
309
+ }
310
+ export declare function apiRequest(opts: ApiRequestOptions): TaskDef<{
311
+ response: unknown;
312
+ }>;
313
+ export interface AiSearchTableOptions {
314
+ readonly table: SearchTableRef;
315
+ readonly query: ValueOrRef<unknown>;
316
+ readonly filter?: Filter;
317
+ readonly limit?: number;
318
+ }
319
+ export declare function aiSearchTable(opts: AiSearchTableOptions): TaskDef<RecordSearchOutput>;
320
+ export interface AiSummarizeOptions {
321
+ readonly text: ValueOrRef<unknown>;
322
+ readonly context?: ValueOrRef<unknown>;
323
+ /** Desired summary length, in sentences. Required, must be ≥ 1 (platform rejects 0/negative). */
324
+ readonly length: number;
325
+ readonly connector?: ConnectorRef;
326
+ }
327
+ export declare function aiSummarize(opts: AiSummarizeOptions): TaskDef<{
328
+ output: unknown;
329
+ }>;
330
+ export interface AiTransformOptions {
331
+ readonly prompt: ValueOrRef<unknown>;
332
+ /** Required — `BOOLEAN`, `DATE`, `DATETIME`, or `TEXT`. */
333
+ readonly fieldType: string;
334
+ readonly connector?: ConnectorRef;
335
+ }
336
+ export declare function aiTransform(opts: AiTransformOptions): TaskDef<{
337
+ output: unknown;
338
+ }>;
339
+ export interface AiEmailAnalysisOptions {
340
+ readonly emailBody: ValueOrRef<unknown>;
341
+ readonly emailSubject: ValueOrRef<unknown>;
342
+ readonly connector?: ConnectorRef;
343
+ }
344
+ export declare function aiEmailAnalysis(opts: AiEmailAnalysisOptions): TaskDef<{
345
+ output: unknown;
346
+ }>;
347
+ export interface AiFileAnalysisOptions {
348
+ readonly attachmentId: ValueOrRef<unknown>;
349
+ /** Required — the document model to analyze the file against. */
350
+ readonly documentModel: FileReaderCatalogRef;
351
+ /**
352
+ * Required — unlike aiSummarize/aiClassify/aiTransform's `connector`
353
+ * (optional there; the provider falls back to the org default),
354
+ * elementum_ai_file_read_task's ai_provider_connector_id is Required in
355
+ * the provider's own schema (ai_file_read_task_resource.go). Omitting it
356
+ * here would build clean but fail at `plan`/`apply`.
357
+ */
358
+ readonly connector: ConnectorRef;
359
+ }
360
+ export declare function aiFileAnalysis(opts: AiFileAnalysisOptions): TaskDef<{
361
+ output: unknown;
362
+ }>;
363
+ export interface AiClassifyStaticCategory {
364
+ readonly name: ValueOrRef<unknown>;
365
+ readonly description?: ValueOrRef<unknown>;
366
+ }
367
+ /** Where the classification categories come from: a static list or a related aspect. */
368
+ export type AiClassifyCategorySource = {
369
+ readonly type: "static";
370
+ readonly categories: readonly AiClassifyStaticCategory[];
371
+ } | {
372
+ readonly type: "dynamic";
373
+ readonly app: AspectRef;
374
+ readonly labelField: FieldRef;
375
+ readonly descriptionField?: FieldRef;
376
+ readonly filter?: Filter;
377
+ readonly limit?: number;
378
+ };
379
+ export interface AiClassifyOptions {
380
+ readonly text: ValueOrRef<unknown>;
381
+ readonly categorySource: AiClassifyCategorySource;
382
+ readonly context?: ValueOrRef<unknown>;
383
+ readonly connector?: ConnectorRef;
384
+ }
385
+ export declare function aiClassify(opts: AiClassifyOptions): TaskDef<{
386
+ output: unknown;
387
+ }>;
388
+ type Empty = Record<string, never>;
389
+ export interface NotificationOptions {
390
+ readonly title: ValueOrRef<string>;
391
+ readonly message: ValueOrRef<string>;
392
+ /** Plain-text description shown in the notification's metadata (not templated). */
393
+ readonly description?: string;
394
+ readonly userIds?: readonly string[];
395
+ readonly groupIds?: readonly string[];
396
+ readonly userRefs?: readonly ValueOrRef<string>[];
397
+ readonly groupRefs?: readonly ValueOrRef<string>[];
398
+ /** Also notify the record's watchers. */
399
+ readonly notifyWatchers?: boolean;
400
+ }
401
+ export declare function notification(opts: NotificationOptions): TaskDef<Empty>;
402
+ export interface FilterTaskOptions {
403
+ readonly condition: Filter;
404
+ }
405
+ export declare function filterTask(opts: FilterTaskOptions): TaskDef<Empty>;
406
+ export interface AssignUserOptions {
407
+ readonly field: FieldRef;
408
+ readonly userId: string;
409
+ }
410
+ export declare function assignUser(opts: AssignUserOptions): TaskDef<Empty>;
411
+ export interface AssignGroupOptions {
412
+ readonly field: FieldRef;
413
+ readonly groupId: string;
414
+ }
415
+ export declare function assignGroup(opts: AssignGroupOptions): TaskDef<Empty>;
416
+ export interface AddWatcherOptions {
417
+ readonly userIds?: readonly string[];
418
+ readonly groupIds?: readonly string[];
419
+ readonly userRefs?: readonly ValueOrRef<unknown>[];
420
+ readonly groupRefs?: readonly ValueOrRef<unknown>[];
421
+ readonly record?: ValueOrRef<unknown>;
422
+ }
423
+ export declare function addWatcher(opts: AddWatcherOptions): TaskDef<Empty>;
424
+ export interface RecordFieldLockingOptions {
425
+ readonly app: AspectRef;
426
+ readonly record: ValueOrRef<unknown>;
427
+ readonly fieldsToLock?: readonly FieldRef[];
428
+ readonly fieldsToUnlock?: readonly FieldRef[];
429
+ }
430
+ export declare function recordFieldLocking(opts: RecordFieldLockingOptions): TaskDef<Empty>;
431
+ export interface UserSearchOptions {
432
+ /** Pre-built wire filter over user attributes. */
433
+ readonly filter: Filter;
434
+ }
435
+ export declare function userSearch(opts: UserSearchOptions): TaskDef<RecordSearchOutput>;
436
+ export declare function userGroupSearch(opts: UserSearchOptions): TaskDef<RecordSearchOutput>;
437
+ export interface SaveAttachmentOptions {
438
+ readonly record: ValueOrRef<unknown>;
439
+ readonly file: ValueOrRef<unknown>;
440
+ readonly tag?: ValueOrRef<unknown>;
441
+ readonly viewState?: string;
442
+ }
443
+ export declare function saveAttachment(opts: SaveAttachmentOptions): TaskDef<Empty>;
444
+ export interface UnzipOptions {
445
+ readonly file: ValueOrRef<unknown>;
446
+ }
447
+ export declare function unzip(opts: UnzipOptions): TaskDef<Empty>;
448
+ export interface GenerateReportOptions {
449
+ readonly record: ValueOrRef<unknown>;
450
+ readonly reportId: string;
451
+ readonly reportType: string;
452
+ }
453
+ export declare function generateReport(opts: GenerateReportOptions): TaskDef<Empty>;
454
+ export interface PostTeamsMessageOptions {
455
+ readonly webhookUrl: string;
456
+ readonly contents: ValueOrRef<unknown>;
457
+ readonly title: ValueOrRef<unknown>;
458
+ readonly subtitle: ValueOrRef<unknown>;
459
+ readonly recordUrl?: ValueOrRef<unknown>;
460
+ readonly recordButtonText?: ValueOrRef<unknown>;
461
+ }
462
+ export declare function postTeamsMessage(opts: PostTeamsMessageOptions): TaskDef<Empty>;
463
+ export interface AssignmentEngineOptions {
464
+ readonly assignmentEngineId: string;
465
+ readonly record: ValueOrRef<unknown>;
466
+ }
467
+ export declare function assignmentEngine(opts: AssignmentEngineOptions): TaskDef<Empty>;
468
+ export interface ProcedureOptions {
469
+ readonly procedureId: string;
470
+ /** A raw cloud link id, or a `catalog.cloudLinks.<handle>` reference. */
471
+ readonly cloudLinkId: string | CloudLinkRef;
472
+ /** Positional arguments (index == position). */
473
+ readonly parameters?: readonly ValueOrRef<unknown>[];
474
+ }
475
+ export declare function procedure(opts: ProcedureOptions): TaskDef<{
476
+ output: unknown;
477
+ }>;
478
+ export interface InitiateCallOptions {
479
+ readonly agent: AgentRef;
480
+ readonly phoneServiceId: string;
481
+ readonly phoneNumber: ValueOrRef<unknown>;
482
+ readonly record: ValueOrRef<unknown>;
483
+ readonly language: ValueOrRef<unknown>;
484
+ readonly firstMessage: ValueOrRef<unknown>;
485
+ readonly context?: ValueOrRef<unknown>;
486
+ }
487
+ export declare function initiateCall(opts: InitiateCallOptions): TaskDef<Empty>;
488
+ export interface CalculationEntry {
489
+ /** Server-assigned entry id — omit when authoring a new calculation; include when updating an existing one (mirrors {@link VariableDecl.id}). */
490
+ readonly id?: string;
491
+ readonly name: string;
492
+ readonly expression: ValueOrRef<unknown>;
493
+ /**
494
+ * The calculation's declared result type (e.g. `"NUMBER"`, `"TEXT"`,
495
+ * `"DATETIME"`) — required. Without it the platform can't disambiguate how
496
+ * to evaluate `expression` (e.g. `"{{{field}}}+1"` as arithmetic vs. string
497
+ * concatenation) and rejects the request as malformed. Mirrors
498
+ * {@link VariableDecl.type}'s loose string typing.
499
+ */
500
+ readonly outputType?: string;
501
+ readonly record?: ValueOrRef<unknown>;
502
+ }
503
+ export interface CalculationOptions {
504
+ readonly calculations: readonly CalculationEntry[];
505
+ }
506
+ export declare function calculation(opts: CalculationOptions): TaskDef<Empty>;
507
+ export interface ApprovalStatusUpdateOptions {
508
+ readonly approvalChainTemplateId: string;
509
+ readonly record: ValueOrRef<unknown>;
510
+ readonly status: string;
511
+ readonly reason?: ValueOrRef<unknown>;
512
+ readonly tags?: ValueOrRef<unknown>;
513
+ }
514
+ export declare function approvalStatusUpdate(opts: ApprovalStatusUpdateOptions): TaskDef<Empty>;
515
+ export interface RunAutomationInput {
516
+ /** The target automation's trigger-parameter name. */
517
+ readonly name: string;
518
+ readonly value: ValueOrRef<unknown>;
519
+ }
520
+ export interface RunAutomationOptions {
521
+ readonly automation: AutomationRef;
522
+ readonly synchronous?: boolean;
523
+ /**
524
+ * Input mappings by parameter **name**. v2 uses the platform's dynamic-mapping
525
+ * path (name-resolved at runtime) — v1's static path resolves names to param
526
+ * ids at build time, which v2 can't do (trigger params aren't catalog-modeled).
527
+ */
528
+ readonly inputs?: readonly RunAutomationInput[];
529
+ /** Output property names to surface. */
530
+ readonly outputs?: readonly string[];
531
+ }
532
+ export declare function runAutomation(opts: RunAutomationOptions): TaskDef<{
533
+ output: unknown;
534
+ }>;
535
+ export type ReadFileDataSource = {
536
+ readonly type: "attachmentId";
537
+ readonly value: ValueOrRef<unknown>;
538
+ } | {
539
+ readonly type: "attachment";
540
+ readonly value: ValueOrRef<unknown>;
541
+ } | {
542
+ readonly type: "file";
543
+ readonly value: ValueOrRef<unknown>;
544
+ } | {
545
+ readonly type: "rawText";
546
+ readonly value: ValueOrRef<unknown>;
547
+ };
548
+ export interface ReadFileOptions {
549
+ readonly fileReader: FileReaderCatalogRef;
550
+ readonly record?: ValueOrRef<unknown>;
551
+ readonly dataSource: ReadFileDataSource;
552
+ }
553
+ export declare function readFile(opts: ReadFileOptions): TaskDef<{
554
+ output: unknown;
555
+ }>;
556
+ export type BulkExcelFieldSource = {
557
+ readonly type: "documentModelField";
558
+ readonly field: DocumentModelFieldRef;
559
+ } | {
560
+ readonly type: "value";
561
+ readonly value: ValueOrRef<unknown>;
562
+ };
563
+ export interface BulkExcelFieldMapping {
564
+ readonly field: FieldRef;
565
+ readonly source: BulkExcelFieldSource;
566
+ }
567
+ export interface BulkExcelOptions {
568
+ readonly attachmentId: ValueOrRef<unknown>;
569
+ readonly documentModel: FileReaderCatalogRef;
570
+ readonly app: AspectRef;
571
+ readonly aspectType: string;
572
+ readonly strict?: boolean;
573
+ readonly fieldMappings: readonly BulkExcelFieldMapping[];
574
+ }
575
+ export declare function bulkExcel(opts: BulkExcelOptions): TaskDef<{
576
+ output: unknown;
577
+ }>;
578
+ export interface ApprovalChainOptions {
579
+ readonly approverIds?: readonly string[];
580
+ readonly approvers?: readonly ValueOrRef<unknown>[];
581
+ readonly reason?: ValueOrRef<unknown>;
582
+ readonly summary?: ValueOrRef<unknown>;
583
+ }
584
+ export declare function approvalChain(opts: ApprovalChainOptions): TaskDef<Empty>;
585
+ export interface ApprovalChainTemplateOptions {
586
+ /** Approval-chain template id (approval chains aren't catalog-modeled yet). */
587
+ readonly approvalChainTemplateId: string;
588
+ readonly requester: ValueOrRef<unknown>;
589
+ readonly record: ValueOrRef<unknown>;
590
+ readonly summary?: ValueOrRef<unknown>;
591
+ readonly reason?: ValueOrRef<unknown>;
592
+ readonly relatedRecord?: ValueOrRef<unknown>;
593
+ readonly tags?: ValueOrRef<unknown>;
594
+ /** Pre-built wire dynamic-approver entries. */
595
+ readonly dynamicApprovers?: readonly Record<string, unknown>[];
596
+ }
597
+ export declare function approvalChainTemplate(opts: ApprovalChainTemplateOptions): TaskDef<Empty>;
598
+ export interface SendSurveyOptions {
599
+ readonly record: ValueOrRef<unknown>;
600
+ readonly surveyTemplateId: ValueOrRef<unknown>;
601
+ readonly expirationDate: ValueOrRef<unknown>;
602
+ readonly dueDate: ValueOrRef<unknown>;
603
+ readonly reminderDate: ValueOrRef<unknown>;
604
+ readonly emailSubject: ValueOrRef<unknown>;
605
+ readonly instructions: ValueOrRef<unknown>;
606
+ readonly attachmentIds?: readonly ValueOrRef<unknown>[];
607
+ /** At least one of `userIds` / `groupIds` is required. */
608
+ readonly userIds?: readonly ValueOrRef<unknown>[];
609
+ readonly groupIds?: readonly ValueOrRef<unknown>[];
610
+ }
611
+ export declare function sendSurvey(opts: SendSurveyOptions): TaskDef<Empty>;
612
+ export interface InitiateEmailFirstEmail {
613
+ readonly context?: ValueOrRef<unknown>;
614
+ readonly contextEvaluationInstructions?: ValueOrRef<unknown>;
615
+ readonly firstMessage: {
616
+ readonly firstEmailMessage?: ValueOrRef<unknown>;
617
+ readonly firstEmailMessageGenerationInstructions?: ValueOrRef<unknown>;
618
+ };
619
+ }
620
+ export interface InitiateEmailConversationOptions {
621
+ readonly agent: AgentRef;
622
+ readonly emailAliasId: string;
623
+ readonly emailAddress: ValueOrRef<unknown>;
624
+ readonly emailName?: ValueOrRef<unknown>;
625
+ readonly record: ValueOrRef<unknown>;
626
+ readonly subjectGenerationInstructions?: ValueOrRef<unknown>;
627
+ /** Required — ISO-8601 duration after which an idle conversation closes (e.g. `"PT24H"`). */
628
+ readonly inactivityDeadline: string;
629
+ /** Required — the opening email (message or generation instructions). */
630
+ readonly firstEmail: InitiateEmailFirstEmail;
631
+ readonly emailAddressFieldId?: ValueOrRef<unknown>;
632
+ readonly emailNameFieldId?: ValueOrRef<unknown>;
633
+ readonly summaryFieldId?: ValueOrRef<unknown>;
634
+ readonly summaryPrompt?: ValueOrRef<unknown>;
635
+ readonly evaluationFieldId?: ValueOrRef<unknown>;
636
+ readonly evaluationPrompt?: ValueOrRef<unknown>;
637
+ }
638
+ export declare function initiateEmailConversation(opts: InitiateEmailConversationOptions): TaskDef<{
639
+ output: unknown;
640
+ }>;
641
+ export {};