@elementumai/edk 0.0.0-oidc-bootstrap → 0.8.0-preview.11

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 (360) hide show
  1. package/README.md +408 -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/factories.d.ts +189 -0
  47. package/dist-sdk/src/catalog/factories.js +202 -0
  48. package/dist-sdk/src/catalog/from-authoring.d.ts +103 -0
  49. package/dist-sdk/src/catalog/from-authoring.js +462 -0
  50. package/dist-sdk/src/catalog/index.d.ts +11 -0
  51. package/dist-sdk/src/catalog/index.js +11 -0
  52. package/dist-sdk/src/catalog/org.d.ts +11 -0
  53. package/dist-sdk/src/catalog/org.js +211 -0
  54. package/dist-sdk/src/catalog/render-helpers.d.ts +35 -0
  55. package/dist-sdk/src/catalog/render-helpers.js +82 -0
  56. package/dist-sdk/src/catalog/render.d.ts +36 -0
  57. package/dist-sdk/src/catalog/render.js +176 -0
  58. package/dist-sdk/src/catalog/token.d.ts +10 -0
  59. package/dist-sdk/src/catalog/token.js +62 -0
  60. package/dist-sdk/src/catalog/types.d.ts +158 -0
  61. package/dist-sdk/src/catalog/types.js +83 -0
  62. package/dist-sdk/src/catalog/write.d.ts +43 -0
  63. package/dist-sdk/src/catalog/write.js +109 -0
  64. package/dist-sdk/src/core/app-to-ui.d.ts +22 -0
  65. package/dist-sdk/src/core/app-to-ui.js +75 -0
  66. package/dist-sdk/src/core/index.d.ts +10 -0
  67. package/dist-sdk/src/core/index.js +9 -0
  68. package/dist-sdk/src/core/system-fields.d.ts +93 -0
  69. package/dist-sdk/src/core/system-fields.js +151 -0
  70. package/dist-sdk/src/core/triggers/on-demand.d.ts +144 -0
  71. package/dist-sdk/src/core/triggers/on-demand.js +112 -0
  72. package/dist-sdk/src/core/types/ai-provider.d.ts +36 -0
  73. package/dist-sdk/src/core/types/ai-provider.js +32 -0
  74. package/dist-sdk/src/core/types/app.d.ts +838 -0
  75. package/dist-sdk/src/core/types/app.js +210 -0
  76. package/dist-sdk/src/core/types/aspect-category.d.ts +35 -0
  77. package/dist-sdk/src/core/types/aspect-category.js +33 -0
  78. package/dist-sdk/src/core/types/cloud-link.d.ts +34 -0
  79. package/dist-sdk/src/core/types/cloud-link.js +32 -0
  80. package/dist-sdk/src/core/types/display-block.d.ts +149 -0
  81. package/dist-sdk/src/core/types/display-block.js +61 -0
  82. package/dist-sdk/src/core/types/group.d.ts +13 -0
  83. package/dist-sdk/src/core/types/group.js +6 -0
  84. package/dist-sdk/src/core/types/platform.d.ts +2 -0
  85. package/dist-sdk/src/core/types/platform.js +1 -0
  86. package/dist-sdk/src/core/types/user.d.ts +20 -0
  87. package/dist-sdk/src/core/types/user.js +8 -0
  88. package/dist-sdk/src/core/wire/ref-serializer.d.ts +45 -0
  89. package/dist-sdk/src/core/wire/ref-serializer.js +89 -0
  90. package/dist-sdk/src/engine/build/context.d.ts +49 -0
  91. package/dist-sdk/src/engine/build/context.js +6 -0
  92. package/dist-sdk/src/engine/entity.d.ts +44 -0
  93. package/dist-sdk/src/engine/entity.js +15 -0
  94. package/dist-sdk/src/engine/pull/context.d.ts +23 -0
  95. package/dist-sdk/src/engine/pull/context.js +44 -0
  96. package/dist-sdk/src/engine/pull/org.d.ts +44 -0
  97. package/dist-sdk/src/engine/pull/org.js +104 -0
  98. package/dist-sdk/src/engine/tf/escape.d.ts +22 -0
  99. package/dist-sdk/src/engine/tf/escape.js +28 -0
  100. package/dist-sdk/src/engine/tf/expr.d.ts +25 -0
  101. package/dist-sdk/src/engine/tf/expr.js +405 -0
  102. package/dist-sdk/src/engine/tf/index.d.ts +12 -0
  103. package/dist-sdk/src/engine/tf/index.js +11 -0
  104. package/dist-sdk/src/engine/tf/labels.d.ts +31 -0
  105. package/dist-sdk/src/engine/tf/labels.js +125 -0
  106. package/dist-sdk/src/engine/tf/model.d.ts +84 -0
  107. package/dist-sdk/src/engine/tf/model.js +49 -0
  108. package/dist-sdk/src/engine/tf/parse.d.ts +41 -0
  109. package/dist-sdk/src/engine/tf/parse.js +189 -0
  110. package/dist-sdk/src/engine/tf/render.d.ts +13 -0
  111. package/dist-sdk/src/engine/tf/render.js +102 -0
  112. package/dist-sdk/src/engine/workspace/authoring-layout.d.ts +43 -0
  113. package/dist-sdk/src/engine/workspace/authoring-layout.js +201 -0
  114. package/dist-sdk/src/entities/agent/build.d.ts +108 -0
  115. package/dist-sdk/src/entities/agent/build.js +148 -0
  116. package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.d.ts +18 -0
  117. package/dist-sdk/src/entities/agent/deserializer/print-agent-v2.js +177 -0
  118. package/dist-sdk/src/entities/agent/from-tf.d.ts +50 -0
  119. package/dist-sdk/src/entities/agent/from-tf.js +169 -0
  120. package/dist-sdk/src/entities/agent/index.d.ts +7 -0
  121. package/dist-sdk/src/entities/agent/index.js +7 -0
  122. package/dist-sdk/src/entities/agent/module.d.ts +4 -0
  123. package/dist-sdk/src/entities/agent/module.js +116 -0
  124. package/dist-sdk/src/entities/agent/to-tf.d.ts +33 -0
  125. package/dist-sdk/src/entities/agent/to-tf.js +136 -0
  126. package/dist-sdk/src/entities/agent/tools.d.ts +205 -0
  127. package/dist-sdk/src/entities/agent/tools.js +199 -0
  128. package/dist-sdk/src/entities/agent-tool/from-tf.d.ts +63 -0
  129. package/dist-sdk/src/entities/agent-tool/from-tf.js +169 -0
  130. package/dist-sdk/src/entities/agent-tool/module.d.ts +3 -0
  131. package/dist-sdk/src/entities/agent-tool/module.js +32 -0
  132. package/dist-sdk/src/entities/agent-tool/to-tf.d.ts +38 -0
  133. package/dist-sdk/src/entities/agent-tool/to-tf.js +164 -0
  134. package/dist-sdk/src/entities/agent-tool/types.d.ts +42 -0
  135. package/dist-sdk/src/entities/agent-tool/types.js +70 -0
  136. package/dist-sdk/src/entities/app/build.d.ts +318 -0
  137. package/dist-sdk/src/entities/app/build.js +325 -0
  138. package/dist-sdk/src/entities/app/deserializer/normalize.d.ts +165 -0
  139. package/dist-sdk/src/entities/app/deserializer/normalize.js +12 -0
  140. package/dist-sdk/src/entities/app/display-blocks.d.ts +26 -0
  141. package/dist-sdk/src/entities/app/display-blocks.js +34 -0
  142. package/dist-sdk/src/entities/app/from-tf.d.ts +23 -0
  143. package/dist-sdk/src/entities/app/from-tf.js +180 -0
  144. package/dist-sdk/src/entities/app/index.d.ts +11 -0
  145. package/dist-sdk/src/entities/app/index.js +10 -0
  146. package/dist-sdk/src/entities/app/locals.d.ts +11 -0
  147. package/dist-sdk/src/entities/app/locals.js +31 -0
  148. package/dist-sdk/src/entities/app/module.d.ts +4 -0
  149. package/dist-sdk/src/entities/app/module.js +59 -0
  150. package/dist-sdk/src/entities/app/to-tf.d.ts +28 -0
  151. package/dist-sdk/src/entities/app/to-tf.js +183 -0
  152. package/dist-sdk/src/entities/approval-chain/build.d.ts +24 -0
  153. package/dist-sdk/src/entities/approval-chain/build.js +56 -0
  154. package/dist-sdk/src/entities/approval-chain/index.d.ts +6 -0
  155. package/dist-sdk/src/entities/approval-chain/index.js +6 -0
  156. package/dist-sdk/src/entities/approval-chain/steps.d.ts +24 -0
  157. package/dist-sdk/src/entities/approval-chain/steps.js +20 -0
  158. package/dist-sdk/src/entities/automation/build.d.ts +215 -0
  159. package/dist-sdk/src/entities/automation/build.js +424 -0
  160. package/dist-sdk/src/entities/automation/catalog-render.d.ts +5 -0
  161. package/dist-sdk/src/entities/automation/catalog-render.js +35 -0
  162. package/dist-sdk/src/entities/automation/deserializer/ast.d.ts +135 -0
  163. package/dist-sdk/src/entities/automation/deserializer/ast.js +13 -0
  164. package/dist-sdk/src/entities/automation/deserializer/print-automation.d.ts +40 -0
  165. package/dist-sdk/src/entities/automation/deserializer/print-automation.js +1040 -0
  166. package/dist-sdk/src/entities/automation/filter.d.ts +81 -0
  167. package/dist-sdk/src/entities/automation/filter.js +146 -0
  168. package/dist-sdk/src/entities/automation/from-tf.d.ts +36 -0
  169. package/dist-sdk/src/entities/automation/from-tf.js +252 -0
  170. package/dist-sdk/src/entities/automation/index.d.ts +18 -0
  171. package/dist-sdk/src/entities/automation/index.js +21 -0
  172. package/dist-sdk/src/entities/automation/module.d.ts +3 -0
  173. package/dist-sdk/src/entities/automation/module.js +153 -0
  174. package/dist-sdk/src/entities/automation/operators.d.ts +66 -0
  175. package/dist-sdk/src/entities/automation/operators.js +43 -0
  176. package/dist-sdk/src/entities/automation/script-code.d.ts +62 -0
  177. package/dist-sdk/src/entities/automation/script-code.js +366 -0
  178. package/dist-sdk/src/entities/automation/serialize.d.ts +6 -0
  179. package/dist-sdk/src/entities/automation/serialize.js +41 -0
  180. package/dist-sdk/src/entities/automation/tasks.d.ts +535 -0
  181. package/dist-sdk/src/entities/automation/tasks.js +697 -0
  182. package/dist-sdk/src/entities/automation/to-tf.d.ts +38 -0
  183. package/dist-sdk/src/entities/automation/to-tf.js +266 -0
  184. package/dist-sdk/src/entities/automation/triggers.d.ts +197 -0
  185. package/dist-sdk/src/entities/automation/triggers.js +202 -0
  186. package/dist-sdk/src/entities/automation/types.d.ts +53 -0
  187. package/dist-sdk/src/entities/automation/types.js +101 -0
  188. package/dist-sdk/src/entities/automation/value-ref-tf.d.ts +76 -0
  189. package/dist-sdk/src/entities/automation/value-ref-tf.js +190 -0
  190. package/dist-sdk/src/entities/element/build.d.ts +108 -0
  191. package/dist-sdk/src/entities/element/build.js +109 -0
  192. package/dist-sdk/src/entities/element/from-tf.d.ts +19 -0
  193. package/dist-sdk/src/entities/element/from-tf.js +155 -0
  194. package/dist-sdk/src/entities/element/index.d.ts +9 -0
  195. package/dist-sdk/src/entities/element/index.js +9 -0
  196. package/dist-sdk/src/entities/element/locals.d.ts +7 -0
  197. package/dist-sdk/src/entities/element/locals.js +12 -0
  198. package/dist-sdk/src/entities/element/module.d.ts +8 -0
  199. package/dist-sdk/src/entities/element/module.js +63 -0
  200. package/dist-sdk/src/entities/element/to-tf.d.ts +14 -0
  201. package/dist-sdk/src/entities/element/to-tf.js +151 -0
  202. package/dist-sdk/src/entities/field/build.d.ts +69 -0
  203. package/dist-sdk/src/entities/field/build.js +74 -0
  204. package/dist-sdk/src/entities/field/calc/aggregate.d.ts +60 -0
  205. package/dist-sdk/src/entities/field/calc/aggregate.js +71 -0
  206. package/dist-sdk/src/entities/field/calc/date.d.ts +73 -0
  207. package/dist-sdk/src/entities/field/calc/date.js +109 -0
  208. package/dist-sdk/src/entities/field/calc/index.d.ts +229 -0
  209. package/dist-sdk/src/entities/field/calc/index.js +433 -0
  210. package/dist-sdk/src/entities/field/calc/numeric.d.ts +22 -0
  211. package/dist-sdk/src/entities/field/calc/numeric.js +67 -0
  212. package/dist-sdk/src/entities/field/calc/runtime.d.ts +61 -0
  213. package/dist-sdk/src/entities/field/calc/runtime.js +170 -0
  214. package/dist-sdk/src/entities/field/calc/text.d.ts +100 -0
  215. package/dist-sdk/src/entities/field/calc/text.js +208 -0
  216. package/dist-sdk/src/entities/field/calc/types.d.ts +86 -0
  217. package/dist-sdk/src/entities/field/calc/types.js +23 -0
  218. package/dist-sdk/src/entities/field/calc.d.ts +108 -0
  219. package/dist-sdk/src/entities/field/calc.js +54 -0
  220. package/dist-sdk/src/entities/field/from-tf.d.ts +29 -0
  221. package/dist-sdk/src/entities/field/from-tf.js +73 -0
  222. package/dist-sdk/src/entities/field/locals.d.ts +8 -0
  223. package/dist-sdk/src/entities/field/locals.js +24 -0
  224. package/dist-sdk/src/entities/field/module.d.ts +3 -0
  225. package/dist-sdk/src/entities/field/module.js +49 -0
  226. package/dist-sdk/src/entities/field/options.d.ts +27 -0
  227. package/dist-sdk/src/entities/field/options.js +76 -0
  228. package/dist-sdk/src/entities/field/record-shape.d.ts +57 -0
  229. package/dist-sdk/src/entities/field/record-shape.js +1 -0
  230. package/dist-sdk/src/entities/field/to-tf.d.ts +55 -0
  231. package/dist-sdk/src/entities/field/to-tf.js +97 -0
  232. package/dist-sdk/src/entities/field/types.d.ts +27 -0
  233. package/dist-sdk/src/entities/field/types.js +46 -0
  234. package/dist-sdk/src/entities/file-reader/build.d.ts +124 -0
  235. package/dist-sdk/src/entities/file-reader/build.js +105 -0
  236. package/dist-sdk/src/entities/file-reader/index.d.ts +5 -0
  237. package/dist-sdk/src/entities/file-reader/index.js +5 -0
  238. package/dist-sdk/src/entities/flow/activities/agent.d.ts +15 -0
  239. package/dist-sdk/src/entities/flow/activities/agent.js +29 -0
  240. package/dist-sdk/src/entities/flow/activities/approval.d.ts +9 -0
  241. package/dist-sdk/src/entities/flow/activities/approval.js +18 -0
  242. package/dist-sdk/src/entities/flow/activities/automation.d.ts +12 -0
  243. package/dist-sdk/src/entities/flow/activities/automation.js +22 -0
  244. package/dist-sdk/src/entities/flow/activities/ctx.d.ts +34 -0
  245. package/dist-sdk/src/entities/flow/activities/ctx.js +38 -0
  246. package/dist-sdk/src/entities/flow/activities/form.d.ts +22 -0
  247. package/dist-sdk/src/entities/flow/activities/form.js +36 -0
  248. package/dist-sdk/src/entities/flow/activities/index.d.ts +14 -0
  249. package/dist-sdk/src/entities/flow/activities/index.js +13 -0
  250. package/dist-sdk/src/entities/flow/activities/input-refs.d.ts +39 -0
  251. package/dist-sdk/src/entities/flow/activities/input-refs.js +19 -0
  252. package/dist-sdk/src/entities/flow/activities/prompt-template.d.ts +13 -0
  253. package/dist-sdk/src/entities/flow/activities/prompt-template.js +34 -0
  254. package/dist-sdk/src/entities/flow/activities/render-catalog.d.ts +140 -0
  255. package/dist-sdk/src/entities/flow/activities/render-catalog.js +174 -0
  256. package/dist-sdk/src/entities/flow/activities/types.d.ts +33 -0
  257. package/dist-sdk/src/entities/flow/activities/types.js +1 -0
  258. package/dist-sdk/src/entities/flow/build.d.ts +38 -0
  259. package/dist-sdk/src/entities/flow/build.js +115 -0
  260. package/dist-sdk/src/entities/flow/index.d.ts +8 -0
  261. package/dist-sdk/src/entities/flow/index.js +7 -0
  262. package/dist-sdk/src/entities/flow/serialize.d.ts +51 -0
  263. package/dist-sdk/src/entities/flow/serialize.js +94 -0
  264. package/dist-sdk/src/entities/flow/util.d.ts +27 -0
  265. package/dist-sdk/src/entities/flow/util.js +38 -0
  266. package/dist-sdk/src/entities/org/category.d.ts +5 -0
  267. package/dist-sdk/src/entities/org/category.js +33 -0
  268. package/dist-sdk/src/entities/org/cloud-link.d.ts +5 -0
  269. package/dist-sdk/src/entities/org/cloud-link.js +33 -0
  270. package/dist-sdk/src/entities/org/connector.d.ts +5 -0
  271. package/dist-sdk/src/entities/org/connector.js +37 -0
  272. package/dist-sdk/src/entities/org/group.d.ts +5 -0
  273. package/dist-sdk/src/entities/org/group.js +31 -0
  274. package/dist-sdk/src/entities/org/index.d.ts +10 -0
  275. package/dist-sdk/src/entities/org/index.js +10 -0
  276. package/dist-sdk/src/entities/org/role.d.ts +7 -0
  277. package/dist-sdk/src/entities/org/role.js +21 -0
  278. package/dist-sdk/src/entities/org/user.d.ts +7 -0
  279. package/dist-sdk/src/entities/org/user.js +21 -0
  280. package/dist-sdk/src/entities/search-table/build.d.ts +41 -0
  281. package/dist-sdk/src/entities/search-table/build.js +79 -0
  282. package/dist-sdk/src/entities/search-table/index.d.ts +5 -0
  283. package/dist-sdk/src/entities/search-table/index.js +5 -0
  284. package/dist-sdk/src/entities/search-table/module.d.ts +6 -0
  285. package/dist-sdk/src/entities/search-table/module.js +64 -0
  286. package/dist-sdk/src/entities/shared/context.d.ts +93 -0
  287. package/dist-sdk/src/entities/shared/context.js +156 -0
  288. package/dist-sdk/src/entities/shared/filters/ast.d.ts +242 -0
  289. package/dist-sdk/src/entities/shared/filters/ast.js +65 -0
  290. package/dist-sdk/src/entities/shared/filters/index.d.ts +211 -0
  291. package/dist-sdk/src/entities/shared/filters/index.js +372 -0
  292. package/dist-sdk/src/entities/shared/filters/types.d.ts +170 -0
  293. package/dist-sdk/src/entities/shared/filters/types.js +7 -0
  294. package/dist-sdk/src/entities/shared/ref.d.ts +160 -0
  295. package/dist-sdk/src/entities/shared/ref.js +119 -0
  296. package/dist-sdk/src/entities/shared/types/common.d.ts +106 -0
  297. package/dist-sdk/src/entities/shared/types/common.js +64 -0
  298. package/dist-sdk/src/entities/shared/types/field-types.d.ts +49 -0
  299. package/dist-sdk/src/entities/shared/types/field-types.js +48 -0
  300. package/dist-sdk/src/entities/shared/types/platform.d.ts +46 -0
  301. package/dist-sdk/src/entities/shared/types/platform.js +10 -0
  302. package/dist-sdk/src/entities/skill/build.d.ts +25 -0
  303. package/dist-sdk/src/entities/skill/build.js +50 -0
  304. package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.d.ts +20 -0
  305. package/dist-sdk/src/entities/skill/deserializer/print-skill-v2.js +96 -0
  306. package/dist-sdk/src/entities/skill/from-tf.d.ts +33 -0
  307. package/dist-sdk/src/entities/skill/from-tf.js +95 -0
  308. package/dist-sdk/src/entities/skill/index.d.ts +7 -0
  309. package/dist-sdk/src/entities/skill/index.js +7 -0
  310. package/dist-sdk/src/entities/skill/module.d.ts +4 -0
  311. package/dist-sdk/src/entities/skill/module.js +106 -0
  312. package/dist-sdk/src/entities/skill/to-tf.d.ts +33 -0
  313. package/dist-sdk/src/entities/skill/to-tf.js +58 -0
  314. package/dist-sdk/src/entities/skill/tools.d.ts +71 -0
  315. package/dist-sdk/src/entities/skill/tools.js +88 -0
  316. package/dist-sdk/src/entities/skill-tool/from-tf.d.ts +47 -0
  317. package/dist-sdk/src/entities/skill-tool/from-tf.js +121 -0
  318. package/dist-sdk/src/entities/skill-tool/module.d.ts +3 -0
  319. package/dist-sdk/src/entities/skill-tool/module.js +21 -0
  320. package/dist-sdk/src/entities/skill-tool/to-tf.d.ts +32 -0
  321. package/dist-sdk/src/entities/skill-tool/to-tf.js +107 -0
  322. package/dist-sdk/src/entities/skill-tool/types.d.ts +40 -0
  323. package/dist-sdk/src/entities/skill-tool/types.js +67 -0
  324. package/dist-sdk/src/entities/table/build.d.ts +74 -0
  325. package/dist-sdk/src/entities/table/build.js +339 -0
  326. package/dist-sdk/src/entities/table/catalog-render.d.ts +5 -0
  327. package/dist-sdk/src/entities/table/catalog-render.js +39 -0
  328. package/dist-sdk/src/entities/table/fields.d.ts +81 -0
  329. package/dist-sdk/src/entities/table/fields.js +70 -0
  330. package/dist-sdk/src/entities/table/filter.d.ts +41 -0
  331. package/dist-sdk/src/entities/table/filter.js +89 -0
  332. package/dist-sdk/src/entities/table/index.d.ts +8 -0
  333. package/dist-sdk/src/entities/table/index.js +12 -0
  334. package/dist-sdk/src/entities/table/joins.d.ts +26 -0
  335. package/dist-sdk/src/entities/table/joins.js +31 -0
  336. package/dist-sdk/src/entities/table/keys.d.ts +11 -0
  337. package/dist-sdk/src/entities/table/keys.js +25 -0
  338. package/dist-sdk/src/entities/table/module.d.ts +5 -0
  339. package/dist-sdk/src/entities/table/module.js +25 -0
  340. package/dist-sdk/src/entities/table/state.d.ts +39 -0
  341. package/dist-sdk/src/entities/table/state.js +43 -0
  342. package/dist-sdk/src/entities/view/from-tf.d.ts +25 -0
  343. package/dist-sdk/src/entities/view/from-tf.js +233 -0
  344. package/dist-sdk/src/entities/view/module.d.ts +24 -0
  345. package/dist-sdk/src/entities/view/module.js +61 -0
  346. package/dist-sdk/src/entities/view/to-tf.d.ts +63 -0
  347. package/dist-sdk/src/entities/view/to-tf.js +156 -0
  348. package/dist-sdk/src/entities/view/types.d.ts +58 -0
  349. package/dist-sdk/src/entities/view/types.js +89 -0
  350. package/dist-sdk/src/graph/deferred-catalog-render.d.ts +14 -0
  351. package/dist-sdk/src/graph/deferred-catalog-render.js +37 -0
  352. package/dist-sdk/src/graph/index.d.ts +83 -0
  353. package/dist-sdk/src/graph/index.js +207 -0
  354. package/dist-sdk/src/graph/modules.d.ts +7 -0
  355. package/dist-sdk/src/graph/modules.js +37 -0
  356. package/dist-sdk/src/graph/types.d.ts +301 -0
  357. package/dist-sdk/src/graph/types.js +102 -0
  358. package/dist-sdk/src/internal/sdk-package.d.ts +7 -0
  359. package/dist-sdk/src/internal/sdk-package.js +23 -0
  360. package/package.json +173 -8
@@ -0,0 +1,111 @@
1
+ /**
2
+ * Error types surfaced by the EDK SDK.
3
+ *
4
+ * Five classes, distinguished by *what* went wrong:
5
+ *
6
+ * `DeployConfigError` — misconfiguration detected before any
7
+ * network call (missing client id/secret,
8
+ * bad URL, etc.).
9
+ * `EdkValidationError` — author/SDK invariant violation: malformed
10
+ * entity source, unknown parameter, missing
11
+ * required field, etc. Detected at
12
+ * build/serialize time before any HTTP
13
+ * call. Distinct from `DeployError` so
14
+ * callers can branch on type.
15
+ * `DeployError` — the request reached a service and failed;
16
+ * carries the status, response body, and
17
+ * the original AxiosError as `cause` so an
18
+ * agent catching it can diagnose without
19
+ * re-reading the transcript.
20
+ * `DeployUpdateUnsupportedError` — the entity's hash changed (so an update
21
+ * is required) but the backend has no PUT
22
+ * path for this entity kind yet (skills,
23
+ * flows). Carries the recorded id so the
24
+ * operator can locate and delete it on the
25
+ * platform, then re-run.
26
+ * `DeployStateCorruptError` — `.edk-state/<appId>.json` exists but does
27
+ * not parse to the supported schema. The
28
+ * SDK never silently rebuilds — the
29
+ * operator must run the import CLI to
30
+ * regenerate state from the server.
31
+ *
32
+ * **Convention for new throws:** anywhere SDK code throws because of an
33
+ * agent's invalid input or a config-time invariant violation, throw
34
+ * `EdkValidationError` (not plain `Error`/`TypeError`). This keeps
35
+ * `.message` consistently surfaced by SDK error renderers / agent catch
36
+ * handlers, and lets callers branch on `instanceof EdkValidationError`
37
+ * vs `DeployError` if they want different recovery paths. Reserve plain
38
+ * `Error` for genuinely-internal invariants the agent can't fix
39
+ * (cycle detection, "unreachable" states, etc.).
40
+ */
41
+ export class DeployConfigError extends Error {
42
+ constructor(message) {
43
+ super(message);
44
+ this.name = "DeployConfigError";
45
+ }
46
+ }
47
+ export class EdkValidationError extends Error {
48
+ constructor(message, options) {
49
+ super(message, options);
50
+ this.name = "EdkValidationError";
51
+ }
52
+ }
53
+ export class DeployError extends Error {
54
+ status;
55
+ body;
56
+ constructor(message, status, body, options) {
57
+ super(message, options);
58
+ this.status = status;
59
+ this.body = body;
60
+ this.name = "DeployError";
61
+ }
62
+ }
63
+ /**
64
+ * Thrown by `.deploy()` when an entity's source hash differs from the
65
+ * recorded state hash and the backend has no PUT path for the entity's
66
+ * kind. Skills (hydra) and flows (wolverine) currently sit here.
67
+ *
68
+ * Carries the recorded `id` (e.g. `skillId`, `flowId`) so the operator
69
+ * can find the entity on the platform, delete it, and re-run. Once the
70
+ * backend ships PUT for the kind, the EDK side wires a `doUpdate`
71
+ * closure and this error stops firing.
72
+ */
73
+ export class DeployUpdateUnsupportedError extends Error {
74
+ entityKind;
75
+ entityName;
76
+ recordedId;
77
+ constructor(entityKind, entityName, recordedId) {
78
+ super(`Cannot update ${entityKind} "${entityName}": the source changed, ` +
79
+ `but the platform has no PUT endpoint for this kind yet. The recorded ` +
80
+ `id is "${recordedId}". Delete the entity on the platform, then re-run ` +
81
+ `the deploy to create a fresh one.`);
82
+ this.entityKind = entityKind;
83
+ this.entityName = entityName;
84
+ this.recordedId = recordedId;
85
+ this.name = "DeployUpdateUnsupportedError";
86
+ }
87
+ }
88
+ /**
89
+ * Thrown when `.edk-state/<appId>.json` exists but does not parse to
90
+ * the supported schema (missing fields, wrong version, malformed JSON).
91
+ *
92
+ * The SDK refuses to overwrite or "silently rebuild" the file because
93
+ * that would mask the underlying problem — e.g. someone hand-edited
94
+ * the file, a half-written file from a crashed deploy, or a downgrade
95
+ * to an older SDK that wrote an incompatible schema.
96
+ *
97
+ * Recovery: run `edk generate --aspect-id <UUID>`
98
+ * to regenerate state from server, or delete the file and re-run if the
99
+ * cohort is empty on the platform.
100
+ */
101
+ export class DeployStateCorruptError extends Error {
102
+ statePath;
103
+ constructor(statePath, detail, options) {
104
+ super(`EDK state file at "${statePath}" is unreadable: ${detail}. ` +
105
+ `Run "edk generate --aspect-id <UUID>" ` +
106
+ `to regenerate it from the server, or delete the file if the app has ` +
107
+ `no deployed entities on the platform.`, options);
108
+ this.statePath = statePath;
109
+ this.name = "DeployStateCorruptError";
110
+ }
111
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Canonical Relay-style connection wrapper used across every
3
+ * entity-client model for nested collections (agents, skills, fields,
4
+ * automations, users, …). Mirrors what antman returns from its
5
+ * GraphQL-flavored REST endpoints.
6
+ *
7
+ * Lives at the top of the entity-client — not inside any single
8
+ * client's `models/` — so every client imports the same definition
9
+ * rather than re-declaring it under a prefixed name.
10
+ *
11
+ * Carries `pageInfo` so agent-authored scripts can walk pages when
12
+ * they need to. Many antman endpoints already page under the hood;
13
+ * exposing the cursor metadata lets callers iterate without having
14
+ * to re-derive the structure.
15
+ */
16
+ export interface PageInfo {
17
+ readonly startCursor?: string;
18
+ readonly endCursor?: string;
19
+ readonly hasNextPage?: boolean;
20
+ readonly hasPreviousPage?: boolean;
21
+ }
22
+ export interface Edge<T> {
23
+ readonly cursor?: string;
24
+ readonly node: T;
25
+ }
26
+ export interface Connection<T> {
27
+ readonly total?: number;
28
+ readonly edges: ReadonlyArray<Edge<T>>;
29
+ readonly pageInfo?: PageInfo;
30
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Canonical Relay-style connection wrapper used across every
3
+ * entity-client model for nested collections (agents, skills, fields,
4
+ * automations, users, …). Mirrors what antman returns from its
5
+ * GraphQL-flavored REST endpoints.
6
+ *
7
+ * Lives at the top of the entity-client — not inside any single
8
+ * client's `models/` — so every client imports the same definition
9
+ * rather than re-declaring it under a prefixed name.
10
+ *
11
+ * Carries `pageInfo` so agent-authored scripts can walk pages when
12
+ * they need to. Many antman endpoints already page under the hood;
13
+ * exposing the cursor metadata lets callers iterate without having
14
+ * to re-derive the structure.
15
+ */
16
+ export {};
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Shared response shape returned by every deploy endpoint. Mobius,
3
+ * hydra, and wolverine all return at minimum `{id: string}` plus any
4
+ * service-specific fields — this base type captures that contract.
5
+ *
6
+ * Specific clients may narrow via an extending interface (e.g.
7
+ * `DeployedAutomation extends DeployResponse { … }`) when they have
8
+ * fields a caller might want typed precisely; for now each is an alias.
9
+ */
10
+ export interface DeployResponse {
11
+ readonly id: string;
12
+ readonly [key: string]: unknown;
13
+ }
14
+ /**
15
+ * Progress event emitted by `.deploy()` at start, success, and error
16
+ * boundaries. Wired via `DeployConfig.onEvent` — the same callback is
17
+ * propagated through `overrides` into every recursive `dep.deploy()`,
18
+ * so the event stream describes the whole dependency graph in
19
+ * topological order.
20
+ *
21
+ * Each entity emits exactly one of `deploy:success` or `deploy:error`
22
+ * after its `deploy:start`. On error, the event fires before the
23
+ * exception re-throws, so ancestors also see an error for their own
24
+ * scope as it propagates up.
25
+ *
26
+ * `kind` mirrors the runtime `Deployable.kind` discriminator
27
+ * ("automation" | "agent" | "skill" | "flow" | "aspect"). Typed as a
28
+ * plain string here to avoid an upward import from src/deploy.
29
+ */
30
+ export type DeployEvent = {
31
+ readonly type: "deploy:start";
32
+ readonly kind: string;
33
+ readonly name?: string;
34
+ } | {
35
+ readonly type: "deploy:success";
36
+ readonly kind: string;
37
+ readonly name?: string;
38
+ readonly id: string;
39
+ } | {
40
+ readonly type: "deploy:error";
41
+ readonly kind: string;
42
+ readonly name?: string;
43
+ readonly message: string;
44
+ } | {
45
+ /**
46
+ * Emitted after a successful update (PUT) when one or more
47
+ * state entries in the state file declare this entity as
48
+ * a forward dep. Those parents are now bound to the just-updated
49
+ * child's previous workflow version; their hashes will flip on
50
+ * their next deploy because the child's source hash changed.
51
+ *
52
+ * Parents in the *current* deploy graph re-PUT automatically (the
53
+ * topological walk handles them). This event surfaces parents NOT
54
+ * in the current graph — typically users who updated a child in
55
+ * one script and need to redeploy parents in another.
56
+ *
57
+ * `child` is the entity that triggered the cascade; `parents` is
58
+ * the list of `(kind, name, id)` tuples found in state.
59
+ */
60
+ readonly type: "deploy:stale-parent";
61
+ readonly child: {
62
+ readonly kind: string;
63
+ readonly name?: string;
64
+ readonly id: string;
65
+ };
66
+ readonly parents: ReadonlyArray<{
67
+ readonly kind: string;
68
+ readonly name: string;
69
+ readonly id: string;
70
+ }>;
71
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,104 @@
1
+ /**
2
+ * EDK-side entity abstraction shared by every layer that touches
3
+ * Elementum data — the entity-client (which produces them), the pull
4
+ * pipeline (which writes them), and the agent (which authors and
5
+ * reads them).
6
+ *
7
+ * Disambiguation note: jarvis defines a platform-wide `EntityType`
8
+ * enum with ~150 values (every Elementum object has one — see
9
+ * `jarvis/util/.../EntityType.java`). The EDK has its own much
10
+ * coarser categorization with seven values. To avoid confusion, the
11
+ * EDK types use the `Edk*` prefix (`EdkEntityType`, `EdkEntity`,
12
+ * `WritableEdkEntityType`, `WritableEdkEntity`).
13
+ *
14
+ * An EDK entity is one of the top-level objects defined under
15
+ * `elementum-entity-client/clients/<x>/`: agent, aspect (app),
16
+ * automation, skill, flow, user, group. Each is the canonical shape
17
+ * for that thing as it exists in the user's Elementum org. The
18
+ * `entityType` discriminator is added by the client function on the
19
+ * way out (it's not on antman's wire) so downstream code can
20
+ * dispatch on it without inspecting the import path or class name.
21
+ *
22
+ * Internal pipeline artifacts (deserializer ASTs, catalog snapshots
23
+ * derived from entities, etc.) are NOT entities. They're scaffolding
24
+ * the deserializer uses to convert wire shapes into source code.
25
+ */
26
+ /**
27
+ * Closed set of every EDK-level entity type the system knows about.
28
+ * Adding a new client (e.g. once wolverine flows ship) means
29
+ * extending this union and the `WritableEdkEntityType` filter below.
30
+ */
31
+ export type EdkEntityType = "agent" | "approvalChain" | "aspect" | "automation" | "flow" | "group" | "searchTable" | "skill" | "table" | "user";
32
+ /**
33
+ * Entity types that have a `generated/` source representation. Users
34
+ * and groups are discovery-only — they don't get pulled or authored —
35
+ * so they're excluded here, which makes `pulledPath(root, user)` a
36
+ * compile error rather than a runtime mistake.
37
+ */
38
+ export type WritableEdkEntityType = Exclude<EdkEntityType, "user" | "group">;
39
+ export interface EdkEntity {
40
+ readonly entityType: EdkEntityType;
41
+ readonly id: string;
42
+ readonly name: string;
43
+ }
44
+ export interface WritableEdkEntity extends EdkEntity {
45
+ readonly entityType: WritableEdkEntityType;
46
+ }
47
+ /**
48
+ * Platform-wide entity types from jarvis (SCREAMING_SNAKE), paired
49
+ * 1:1 with their PascalCase `typeName` representation. Mirrors the
50
+ * relevant slice of jarvis's `enum EntityType { APP_ASPECT("AspectApp"),
51
+ * ELEMENT_ASPECT("AspectElement"), USER("User"), ... }` Java
52
+ * enum — each enum value carries a typeName as an associated value.
53
+ *
54
+ * Today only the three values automation owners can take are listed
55
+ * (`APP_ASPECT`, `ELEMENT_ASPECT`, `USER`). Extend as new clients
56
+ * (B/agents, C/skills, D/flows) ship — the union derivations below
57
+ * will widen automatically and any switches that don't handle the
58
+ * new value become compile errors at the call site.
59
+ *
60
+ * Distinct from `EdkEntityType` (one layer up): EdkEntityType is the
61
+ * EDK's coarse lowercase categorization (`"aspect"` covers both
62
+ * APP_ASPECT and ELEMENT_ASPECT). Use this jarvis-projection layer
63
+ * when wire fidelity matters; use EdkEntityType for filesystem
64
+ * paths and writer discriminators where the granularity isn't.
65
+ */
66
+ export declare const ENTITY_TYPES: {
67
+ readonly APP_ASPECT: "AspectApp";
68
+ readonly ELEMENT_ASPECT: "AspectElement";
69
+ readonly USER: "User";
70
+ };
71
+ /**
72
+ * The set of platform entity-type tokens (the keys of `ENTITY_TYPES`).
73
+ *
74
+ * Use as `EntityType` (the full set) when a value can be any owner
75
+ * kind, or extract a per-use-case subset (e.g.
76
+ * `AutomationOwnerType`) when narrowing matters.
77
+ */
78
+ export type EntityType = keyof typeof ENTITY_TYPES;
79
+ /**
80
+ * The set of PascalCase typeNames (the values of `ENTITY_TYPES`).
81
+ * Mirrors what mobius emits in `__typename` and what the EDK
82
+ * serializer-input shape carries on `owner.type`. 1:1 with
83
+ * `EntityType`.
84
+ */
85
+ export type TypeName = (typeof ENTITY_TYPES)[EntityType];
86
+ /**
87
+ * Owner kinds an automation workflow accepts. Currently identical
88
+ * to the full `EntityType` set, but expressed as an `Extract`
89
+ * subset on purpose — when a future `EntityType` value (e.g.
90
+ * `ASPECT_TASK`) gets added that automations can't own, this
91
+ * subset stays narrow and the type system catches misuse.
92
+ */
93
+ export type AutomationOwnerType = Extract<EntityType, "APP_ASPECT" | "ELEMENT_ASPECT" | "USER">;
94
+ /**
95
+ * Canonical owner shape — what `Workflow.owner` and the
96
+ * deserializer's normalized owner both carry. Generic on the
97
+ * EntityType subset so per-entity callers can narrow:
98
+ * `Owner<AutomationOwnerType>` for automations, `Owner<AgentOwnerType>`
99
+ * (when defined) for agents, etc.
100
+ */
101
+ export interface Owner<T extends EntityType = EntityType> {
102
+ readonly id: string;
103
+ readonly type: T;
104
+ }
@@ -0,0 +1,52 @@
1
+ /**
2
+ * EDK-side entity abstraction shared by every layer that touches
3
+ * Elementum data — the entity-client (which produces them), the pull
4
+ * pipeline (which writes them), and the agent (which authors and
5
+ * reads them).
6
+ *
7
+ * Disambiguation note: jarvis defines a platform-wide `EntityType`
8
+ * enum with ~150 values (every Elementum object has one — see
9
+ * `jarvis/util/.../EntityType.java`). The EDK has its own much
10
+ * coarser categorization with seven values. To avoid confusion, the
11
+ * EDK types use the `Edk*` prefix (`EdkEntityType`, `EdkEntity`,
12
+ * `WritableEdkEntityType`, `WritableEdkEntity`).
13
+ *
14
+ * An EDK entity is one of the top-level objects defined under
15
+ * `elementum-entity-client/clients/<x>/`: agent, aspect (app),
16
+ * automation, skill, flow, user, group. Each is the canonical shape
17
+ * for that thing as it exists in the user's Elementum org. The
18
+ * `entityType` discriminator is added by the client function on the
19
+ * way out (it's not on antman's wire) so downstream code can
20
+ * dispatch on it without inspecting the import path or class name.
21
+ *
22
+ * Internal pipeline artifacts (deserializer ASTs, catalog snapshots
23
+ * derived from entities, etc.) are NOT entities. They're scaffolding
24
+ * the deserializer uses to convert wire shapes into source code.
25
+ */
26
+ // ---------------------------------------------------------------------------
27
+ // Platform entity-type values (jarvis projection)
28
+ // ---------------------------------------------------------------------------
29
+ /**
30
+ * Platform-wide entity types from jarvis (SCREAMING_SNAKE), paired
31
+ * 1:1 with their PascalCase `typeName` representation. Mirrors the
32
+ * relevant slice of jarvis's `enum EntityType { APP_ASPECT("AspectApp"),
33
+ * ELEMENT_ASPECT("AspectElement"), USER("User"), ... }` Java
34
+ * enum — each enum value carries a typeName as an associated value.
35
+ *
36
+ * Today only the three values automation owners can take are listed
37
+ * (`APP_ASPECT`, `ELEMENT_ASPECT`, `USER`). Extend as new clients
38
+ * (B/agents, C/skills, D/flows) ship — the union derivations below
39
+ * will widen automatically and any switches that don't handle the
40
+ * new value become compile errors at the call site.
41
+ *
42
+ * Distinct from `EdkEntityType` (one layer up): EdkEntityType is the
43
+ * EDK's coarse lowercase categorization (`"aspect"` covers both
44
+ * APP_ASPECT and ELEMENT_ASPECT). Use this jarvis-projection layer
45
+ * when wire fidelity matters; use EdkEntityType for filesystem
46
+ * paths and writer discriminators where the granularity isn't.
47
+ */
48
+ export const ENTITY_TYPES = {
49
+ APP_ASPECT: "AspectApp",
50
+ ELEMENT_ASPECT: "AspectElement",
51
+ USER: "User",
52
+ };
@@ -0,0 +1,130 @@
1
+ /**
2
+ * Shared wire-shape and identifier helpers used by anything that
3
+ * translates wire data into EDK TypeScript source — both the
4
+ * `defineX.fromJSON` deserializer pipeline and the
5
+ * `fetch-app-definition` renderer that emits standalone
6
+ * `defineApp({...})` files.
7
+ *
8
+ * Helpers that turn out to be useful across more than one of those
9
+ * paths live here so we have a single implementation of each
10
+ * convention (camelCase identifier shape, dedup-with-suffix rule, …)
11
+ * instead of duplicating them per-module and quietly drifting.
12
+ */
13
+ /**
14
+ * Returns a shallow copy of the input object with the `type` key
15
+ * removed. Idempotent — no-op if `type` isn't present. Returns `{}`
16
+ * for `undefined` so callers can chain without null checks.
17
+ *
18
+ * **Why this exists.** Wire shapes carry the task / trigger
19
+ * discriminator inline as `properties.type` (SCREAMING_SNAKE):
20
+ *
21
+ * ```
22
+ * properties: { type: "RECORD_SEARCH", aspectId: "...", filter: {...} }
23
+ * ```
24
+ *
25
+ * The deserializer's serializer-input shape carries the
26
+ * discriminator as the *wrapping key* (camelCase) instead:
27
+ *
28
+ * ```
29
+ * { recordSearch: { aspectId: "...", filter: {...} } }
30
+ * ```
31
+ *
32
+ * So normalize wraps via `{ [camelKey]: stripType(props) }` — the
33
+ * wrapping key is the new discriminator, and the previously-inline
34
+ * `type` becomes redundant. Carrying both could confuse downstream
35
+ * code switching on either form, so we drop it.
36
+ */
37
+ export declare function stripType(props: {
38
+ readonly [key: string]: unknown;
39
+ } | undefined): Record<string, unknown>;
40
+ /**
41
+ * Convert a human-readable label into a camelCase JS identifier:
42
+ * `"P1 Critical"` → `"p1Critical"`, `"App Version"` → `"appVersion"`,
43
+ * `"first NAME"` → `"firstName"`. Strips non-alphanumeric characters,
44
+ * collapses runs of separators, lowercases the leading character of
45
+ * the first part and Pascal-cases the rest.
46
+ *
47
+ * Returns `""` for inputs that contain no alphanumerics — callers
48
+ * decide what fallback to use (e.g. `"item1"`).
49
+ */
50
+ export declare function camelCase(input: string): string;
51
+ /**
52
+ * Mobius's `ValueReference.ofTriggerReference` canonicalizes onDemand
53
+ * parameter reference names so the UI picker can resolve them:
54
+ * - all alphanumeric → first char lowercased (`amountUsd` stays
55
+ * `amountUsd`, `AmountUsd` → `amountUsd`)
56
+ * - contains non-alnum char → camelCase via {@link camelCase}
57
+ * (`amount_usd` → `amountUsd`,
58
+ * `has receipt` → `hasReceipt`)
59
+ *
60
+ * Lives here (not in the serializer) because both sides of the wire
61
+ * need it: the serializer applies it on-write so saved triggerReference
62
+ * names match the picker's canonical form, and the deserializer
63
+ * applies it on-read to map wire reference names back to the source's
64
+ * declared parameter names.
65
+ */
66
+ export declare function normalizeOnDemandParamKey(name: string): string;
67
+ /**
68
+ * Pair each item with a unique camelCase key derived from
69
+ * `nameOf(item)`. Collisions are disambiguated with numeric suffixes
70
+ * (`foo`, `foo2`, `foo3`, …) so an emitted object literal never has
71
+ * duplicate keys. Source order is preserved.
72
+ *
73
+ * `fallbackPrefix` is used when an item's name camelCases to `""`
74
+ * (e.g. all-punctuation names) — callers pass `"field"` /
75
+ * `"automation"` / etc. so the fallback is self-documenting.
76
+ *
77
+ * Used by both the deserializer's catalog (`pull/catalog.ts`) and the
78
+ * fetch-app-definition renderer (`src/scripts/fetch-app-definition.ts`)
79
+ * so a fetched app file and a pulled entity file disambiguate the
80
+ * same way for the same input.
81
+ */
82
+ export declare function withUniqueKeys<T>(items: readonly T[], nameOf: (t: T) => string, fallbackPrefix?: string, handleOf?: (t: T) => string | null | undefined): readonly {
83
+ key: string;
84
+ item: T;
85
+ }[];
86
+ /**
87
+ * Build the JS identifier used as both the exported variable name
88
+ * and the import binding for an app's generated `.ts` file. The
89
+ * generated file is consumed by other generated files that
90
+ * `import { agentToolPlaygroundApp } from "../apps/agent-tool-playground.js"`,
91
+ * so the binding must be a valid JS identifier.
92
+ *
93
+ * camelCases the app name and appends `App` (idempotently). Two apps
94
+ * whose names happen to camel-case to the same identifier can still
95
+ * be disambiguated downstream by the catalog's per-handle pass.
96
+ */
97
+ export declare function handleFromName(name: string): string;
98
+ /**
99
+ * Quote a value as a TypeScript string literal — uses
100
+ * `JSON.stringify` so all whitespace, control characters, and
101
+ * non-ASCII code points are escaped to valid TS source. Naming an
102
+ * obvious case to remember why this matters: a field name with an
103
+ * embedded newline would render as an unescaped literal newline
104
+ * inside the emitted `"..."` and break parsing.
105
+ */
106
+ export declare function quote(s: string): string;
107
+ /**
108
+ * Unwrap a GraphQL `Connection<T>` into a flat readonly array of
109
+ * nodes. Accepts `null | undefined` so callers don't have to
110
+ * distinguish "field not requested" (undefined) from "field
111
+ * explicitly null" (null) — both yield an empty list.
112
+ */
113
+ export declare function unwrapConnection<T>(conn: {
114
+ readonly edges?: ReadonlyArray<{
115
+ readonly node: T;
116
+ }>;
117
+ } | null | undefined): readonly T[];
118
+ export declare function isUuid(value: string): boolean;
119
+ /**
120
+ * Format a stage's identity slots as a TypeScript object literal —
121
+ * `{ id, name, color?, icon? }`. `color`/`icon` are omitted when null,
122
+ * undefined, or empty so the catalog (wire-shape) and round-trip
123
+ * (normalized) printers agree on the emitted source.
124
+ */
125
+ export declare function formatStageBody(stage: {
126
+ readonly id: string;
127
+ readonly name: string;
128
+ readonly color?: string | null;
129
+ readonly icon?: string | null;
130
+ }): string;