@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,265 @@
1
+ /** Fixed platform user-directory schema used by userSearch filters. */
2
+ export const usersCatalog = {
3
+ fields: {
4
+ firstName: { __kind: "userField", refName: "firstName", name: "firstName", fieldType: "TEXT" },
5
+ email: { __kind: "userField", refName: "email", name: "email", fieldType: "TEXT" },
6
+ jobTitle: { __kind: "userField", refName: "jobTitle", name: "jobTitle", fieldType: "TEXT" },
7
+ lastName: { __kind: "userField", refName: "lastName", name: "lastName", fieldType: "TEXT" },
8
+ },
9
+ };
10
+ /** Build a ref-kind factory: no identity parameter, `.refName` defaults to `name` (stamped over by the enclosing bag). */
11
+ function refFactory(kind) {
12
+ return (opts) => ({ __kind: kind, refName: opts.name, ...opts });
13
+ }
14
+ /**
15
+ * Automation ref. Accepts optional `trigger` and `outputs` bags of typed parameter/property refs —
16
+ * e.g. `automationRef({ trigger: { topic: triggerParameterRef({ name: "topic", parent: "auto" }) } })`
17
+ * gives `catalog.app.automations.auto.trigger.topic` as a typed `TriggerParameterRef` usable in
18
+ * `executeWorkflow` inputs. `handle` and `parent` are injected by the enclosing `appCatalog`/
19
+ * `elementCatalog`; factory calls need not supply them.
20
+ *
21
+ * Generic parameters `T`/`O` preserve specific key shapes on the returned ref so TypeScript can
22
+ * narrow `.trigger.<name>` and `.outputs.<name>` at the call site.
23
+ */
24
+ export function automationRef(opts) {
25
+ return {
26
+ __kind: "automation",
27
+ refName: "",
28
+ name: "",
29
+ ...(opts?.trigger !== undefined ? { trigger: opts.trigger } : {}),
30
+ ...(opts?.outputs !== undefined ? { outputs: opts.outputs } : {}),
31
+ };
32
+ }
33
+ /**
34
+ * Build a trigger parameter ref — keyed by parameter name; `parent` is the
35
+ * owning automation's refName. `const T` (not plain `T`) so `required: true`
36
+ * infers as the LITERAL — that literal is what `agentRunAutomation`'s mapped
37
+ * input types key off (same trick as {@link fieldRef}'s `fieldType`).
38
+ */
39
+ export const triggerParameterRef = (opts) => ({ __kind: "triggerParameter", refName: opts.name, ...opts });
40
+ /**
41
+ * Document model ref. Accepts an optional `fields` bag of typed field refs —
42
+ * mirrors {@link automationRef}'s `trigger`/`outputs` bags. `handle` and
43
+ * `parent` are injected by the enclosing `appCatalog`/`elementCatalog`;
44
+ * factory calls need no `parent` argument.
45
+ */
46
+ export function documentModelRef(opts) {
47
+ return {
48
+ __kind: "documentModel",
49
+ refName: opts.name,
50
+ name: opts.name,
51
+ readerType: opts.readerType,
52
+ ...(opts.parent !== undefined ? { parent: opts.parent } : {}),
53
+ ...(opts.fields !== undefined ? { fields: opts.fields } : {}),
54
+ };
55
+ }
56
+ /** Build a document model field ref — keyed by field name; `parent` is the owning document model's refName. */
57
+ export function documentModelFieldRef(opts) {
58
+ return { __kind: "documentModelField", refName: opts.name, name: opts.name, parent: opts.parent };
59
+ }
60
+ /** Build an output property ref — keyed by property name; `parent` is the owning automation's refName. */
61
+ export function outputPropertyRef(opts) {
62
+ return { __kind: "outputProperty", refName: opts.name, name: opts.name, parent: opts.parent };
63
+ }
64
+ /**
65
+ * Agent ref — no required arguments. `handle` and `parent` are injected by the enclosing
66
+ * `appCatalog`/`elementCatalog`; `name` defaults to `""`.
67
+ */
68
+ export function agentRef(opts) {
69
+ return { __kind: "agent", refName: "", name: opts?.name ?? "", ...(opts?.parent !== undefined ? { parent: opts.parent } : {}) };
70
+ }
71
+ /**
72
+ * Skill ref — no required arguments, same shape as {@link agentRef}. `handle` and `parent`
73
+ * are injected by the enclosing `appCatalog`/`elementCatalog`; `name` defaults to `""`.
74
+ */
75
+ export function skillRef(opts) {
76
+ return { __kind: "skill", refName: "", name: opts?.name ?? "", ...(opts?.parent !== undefined ? { parent: opts.parent } : {}) };
77
+ }
78
+ export const flowRef = refFactory("flow");
79
+ export const approvalChainRef = refFactory("approvalChain");
80
+ export const searchTableRef = refFactory("searchTable");
81
+ export const connectorRef = refFactory("connector");
82
+ /**
83
+ * AI provider ref — reference only, the provider must already exist on the
84
+ * platform (never created/deployed). Accepts an optional `models` bag whose
85
+ * entries are either connector refs (`connectorRef({ name })`, what `pull
86
+ * org` always emits) or a bare model literal naming a connector to create
87
+ * for that model — type-checked against `type`'s valid models
88
+ * (`AiProviderLlmModel`). `handle` is injected by the enclosing
89
+ * `orgCatalog`, which also stamps each nested ref-shaped model's `.parent`
90
+ * to this provider's own key.
91
+ *
92
+ * A hand-rolled generic (not built through `refFactory`, which fixes its
93
+ * type parameter once at definition time and would widen `type` away from
94
+ * its literal) — same `const T extends ...` trick as {@link fieldRef} so
95
+ * `type: "anthropic"` narrows which models are valid at each call site.
96
+ */
97
+ export function defineAiProvider(opts) {
98
+ return {
99
+ __kind: "aiProvider",
100
+ refName: opts.name,
101
+ name: opts.name,
102
+ type: opts.type,
103
+ ...(opts.models !== undefined ? { models: opts.models } : {}),
104
+ };
105
+ }
106
+ export const cloudLinkRef = refFactory("cloudLink");
107
+ export const categoryRef = refFactory("category");
108
+ export const groupRef = refFactory("group");
109
+ export function tableColumnRef(opts) {
110
+ return {
111
+ __kind: "tableColumn",
112
+ refName: opts.name,
113
+ parent: opts.parent ?? "",
114
+ name: opts.name,
115
+ ...(opts.fieldType !== undefined ? { fieldType: opts.fieldType } : {}),
116
+ ...(opts.tags !== undefined ? { tags: opts.tags } : {}),
117
+ };
118
+ }
119
+ export function tableRef(opts) {
120
+ return {
121
+ __kind: "table",
122
+ refName: opts.name,
123
+ name: opts.name,
124
+ ...(opts.columns !== undefined ? { columns: opts.columns } : {}),
125
+ ...(opts.categoryId !== undefined ? { categoryId: opts.categoryId } : {}),
126
+ };
127
+ }
128
+ /**
129
+ * `refName` is optional and defaults to `name` — for a caller with no bag-key
130
+ * context (e.g. a cross-aspect field ref where the field belongs to an aspect
131
+ * that isn't being printed in this pass), matching resolution falls back to
132
+ * `name`. A caller that *does* know the field's real bag key (its own app's
133
+ * pull printer, printing a display-block/parentField/calc reference to one of
134
+ * its own fields) should pass it explicitly — that's what lets the reference
135
+ * survive a later `name` rename instead of going stale (#230).
136
+ *
137
+ * `const T` (not plain `T`) so `fieldType: "PICKLIST"` infers as the literal,
138
+ * not widened to `string` — required for `RecordShape` (`entities/field/record-shape.ts`)
139
+ * to discriminate per-field value types from a catalog app's `fields` bag.
140
+ */
141
+ export const fieldRef = (opts) => ({ __kind: "field", ...opts, refName: opts.refName ?? opts.name });
142
+ /**
143
+ * Stamp each bag entry's `.handle` to match its own object key — the one place a ref name is
144
+ * actually carried. For field/automation/agent/skill/searchTable bags `injectParent` is the
145
+ * catalog root's refName, which is injected as `.parent` so factory calls for those kinds need
146
+ * no `parent` argument. A field's (or search table's) `.parent` identifies which aspect's state
147
+ * a resolver should look it up against — it's unrelated to the aspect's own
148
+ * parent-in-the-org-hierarchy (always "org" for apps/elements).
149
+ */
150
+ function withOwnKeyAsHandle(bag, injectParent) {
151
+ if (bag === undefined)
152
+ return undefined;
153
+ const out = {};
154
+ for (const [refName, ref] of Object.entries(bag)) {
155
+ out[refName] = { ...ref, refName: refName, ...(injectParent !== undefined ? { parent: injectParent } : {}) };
156
+ }
157
+ return out;
158
+ }
159
+ function stampTableRefs(bag) {
160
+ if (bag === undefined)
161
+ return undefined;
162
+ const out = {};
163
+ for (const [tableRefName, ref] of Object.entries(bag)) {
164
+ const columns = ref.columns === undefined
165
+ ? undefined
166
+ : Object.fromEntries(Object.entries(ref.columns).map(([columnRefName, column]) => [
167
+ columnRefName,
168
+ { ...column, refName: columnRefName, parent: tableRefName },
169
+ ]));
170
+ out[tableRefName] = {
171
+ ...ref,
172
+ refName: tableRefName,
173
+ ...(columns !== undefined ? { columns } : {}),
174
+ };
175
+ }
176
+ return out;
177
+ }
178
+ /**
179
+ * Assemble an app catalog object. Injects `__kind: "app"` so the result
180
+ * satisfies `CatalogRef<"app">` (accepted by aspect-ref parameters) without
181
+ * any raw `__kind` string in the call site. `B` is inferred from the bags
182
+ * argument, preserving specific field / search-table key shapes. Every bag
183
+ * entry's `.handle` is stamped from its own key. Automation, agent, skill,
184
+ * and search-table entries also get `.parent` injected from
185
+ * `identity.refName` — their factory calls (`automationRef()`, `agentRef()`,
186
+ * `searchTableRef({ name })`, …) need no `parent` argument.
187
+ */
188
+ export function appCatalog(identity, bags) {
189
+ return {
190
+ __kind: "app",
191
+ refName: identity.refName,
192
+ name: identity.name,
193
+ ...bags,
194
+ fields: withOwnKeyAsHandle(bags.fields, identity.refName) ?? {},
195
+ searchTables: withOwnKeyAsHandle(bags.searchTables, identity.refName) ?? {},
196
+ fileReaders: withOwnKeyAsHandle(bags.fileReaders, identity.refName) ?? {},
197
+ automations: withOwnKeyAsHandle(bags.automations, identity.refName) ?? {},
198
+ agents: withOwnKeyAsHandle(bags.agents, identity.refName) ?? {},
199
+ skills: withOwnKeyAsHandle(bags.skills, identity.refName) ?? {},
200
+ };
201
+ }
202
+ /** Same as {@link appCatalog}, but for an element catalog root. */
203
+ export function elementCatalog(identity, bags) {
204
+ return {
205
+ __kind: "element",
206
+ refName: identity.refName,
207
+ name: identity.name,
208
+ ...bags,
209
+ fields: withOwnKeyAsHandle(bags.fields, identity.refName) ?? {},
210
+ searchTables: withOwnKeyAsHandle(bags.searchTables, identity.refName) ?? {},
211
+ fileReaders: withOwnKeyAsHandle(bags.fileReaders, identity.refName) ?? {},
212
+ automations: withOwnKeyAsHandle(bags.automations, identity.refName) ?? {},
213
+ agents: withOwnKeyAsHandle(bags.agents, identity.refName) ?? {},
214
+ skills: withOwnKeyAsHandle(bags.skills, identity.refName) ?? {},
215
+ };
216
+ }
217
+ /**
218
+ * Assemble the org catalog object. Produces `{ handle: "org", name: "Org", ...bags }`.
219
+ * No `__kind` — the org is not a `CatalogRef` kind and is referenced only as
220
+ * a namespace (`org.aiProviders.X.models.Y`, `org.cloudLinks.Y`), never passed as a ref.
221
+ * `"org"` is a fixed singleton namespace, not derived from any entity's name —
222
+ * unlike every other identity in this file, it's not a ref name. Bag entries'
223
+ * `.handle` are stamped from their own key, same as `appCatalog`.
224
+ */
225
+ export function orgCatalog(bags) {
226
+ return {
227
+ handle: "org",
228
+ name: "Org",
229
+ ...bags,
230
+ aiProviders: stampAiProviders(bags.aiProviders),
231
+ cloudLinks: withOwnKeyAsHandle(bags.cloudLinks) ?? {},
232
+ categories: withOwnKeyAsHandle(bags.categories) ?? {},
233
+ groups: withOwnKeyAsHandle(bags.groups) ?? {},
234
+ tables: stampTableRefs(bags.tables) ?? {},
235
+ };
236
+ }
237
+ /**
238
+ * Stamp each provider's own `.refName`/`.handle` from its bag key (same as
239
+ * `withOwnKeyAsHandle`), and — since a provider's `models` bag is nested
240
+ * one level deeper than every other org bag — also stamp each ref-shaped
241
+ * model's `.parent` to the owning provider's key, so a connector ref
242
+ * self-describes which provider it came from. A bare model-literal entry
243
+ * (a create-intent, not yet a ref) has nothing to stamp and passes through
244
+ * unchanged — `withOwnKeyAsHandle` can't be reused here since its generic
245
+ * constraint requires every entry to already be a `CatalogRef`.
246
+ */
247
+ function stampAiProviders(bag) {
248
+ const stamped = withOwnKeyAsHandle(bag);
249
+ if (stamped === undefined)
250
+ return {};
251
+ const out = {};
252
+ for (const [providerKey, provider] of Object.entries(stamped)) {
253
+ out[providerKey] = { ...provider, models: stampAiProviderModels(provider.models, providerKey) };
254
+ }
255
+ return out;
256
+ }
257
+ function stampAiProviderModels(models, providerKey) {
258
+ if (models === undefined)
259
+ return {};
260
+ const out = {};
261
+ for (const [modelKey, model] of Object.entries(models)) {
262
+ out[modelKey] = typeof model === "string" ? model : { ...model, refName: modelKey, parent: providerKey };
263
+ }
264
+ return out;
265
+ }
@@ -0,0 +1,103 @@
1
+ import type { CatalogRef } from "./types.js";
2
+ import { type AuthoringTenantContext } from "../engine/workspace/authoring-layout.js";
3
+ /**
4
+ * An authoring file's default export — what `defineApp`/`defineAgent`/
5
+ * `defineAutomation` produce. `ref()`/`def()` both take the ref name as a
6
+ * call-time argument (never a stored property the authoring file declares).
7
+ */
8
+ export interface ConfiguredEntity<TRef extends CatalogRef = CatalogRef> {
9
+ ref(refName: string): TRef;
10
+ def(refName: string): unknown;
11
+ }
12
+ /**
13
+ * Expand caller paths into concrete entity source files.
14
+ *
15
+ * Each path may be a single `.ts`/`.js`/`.mjs` authoring file or a directory
16
+ * to walk (same skip rules as {@link listEntityFilesRecursive}). Used by
17
+ * plan/apply so `edk plan path/to/foo.ts bar.ts some/dir` works without
18
+ * moving files into a staging folder.
19
+ *
20
+ * When `tenant` is set (plan/apply), every file must also sit under the
21
+ * authenticated org/instance workspace — see {@link assertAuthoringPathForTenant}.
22
+ */
23
+ export declare function listEntityFilesFromPaths(paths: readonly string[], tenant?: AuthoringTenantContext): Promise<string[]>;
24
+ /**
25
+ * The ref name a file's authoring convention implies — its name minus
26
+ * extension. Exported so other discovery code (`src/deploy/directory.ts`)
27
+ * derives the same value from the same rule, rather than each maintaining its
28
+ * own copy of "strip the extension."
29
+ */
30
+ export declare function refNameOf(file: string): string;
31
+ export interface AppAuthoringCatalog {
32
+ /** Ref-only: `{ __kind, refName, name, fields, …catalogBags }`. */
33
+ readonly refs: Record<string, unknown>;
34
+ /** Same shape, but every entry is `.def()` instead of `.ref()`, plus the app's own `def()` under `app`. */
35
+ readonly defs: Record<string, unknown>;
36
+ }
37
+ /**
38
+ * Assemble an app's catalog from authoring files on disk — no server
39
+ * round-trip. `appFile` is the app's own authoring file (a `defineApp(...)`
40
+ * result); `appDir` is its containing folder.
41
+ *
42
+ * Writes a throwaway stub version of `<appDir>/generated/catalog.ts` before
43
+ * importing any child authoring file (see `writeStubCatalog`) — a sibling
44
+ * may reference another sibling's catalog entry that doesn't exist on disk
45
+ * yet. The stub is overwritten with the real catalog by this function's
46
+ * caller.
47
+ */
48
+ export declare function buildAppCatalogFromAuthoring(appDir: string, appFile: string, orgCatalogPath?: string): Promise<AppAuthoringCatalog>;
49
+ /**
50
+ * Build the app's catalog from authoring files and persist `refs` as a static
51
+ * catalog file at `<appDir>/generated/catalog.ts` — distinct from the app's own
52
+ * authoring files, so this never clobbers hand-authored source. Returns `defs`
53
+ * too (not yet written to disk) for callers that need the whole app's deployable
54
+ * entities in one pass.
55
+ *
56
+ * `extraRefs` merges in refs that don't (yet) have authoring files of their
57
+ * own — e.g. search tables, sourced from state by the app-pull orchestrator —
58
+ * so they keep showing up in the catalog instead of being dropped now that the
59
+ * old embedded-in-the-app-file catalog section is gone.
60
+ */
61
+ export declare function writeAppCatalogFromAuthoring(appDir: string, appRefName: string, appName: string, appFile: string, extraRefs?: readonly CatalogRef[]): Promise<{
62
+ catalogPath: string;
63
+ defs: Record<string, unknown>;
64
+ }>;
65
+ /**
66
+ * Write/refresh `<appDir>/generated/catalog.ts` regardless of whether the app has been
67
+ * fully pulled yet. If `appFile` already default-exports a configured app (a
68
+ * `defineApp(...)` pull), this is exactly {@link writeAppCatalogFromAuthoring}.
69
+ * Otherwise — `edk import app` ran but `edk pull app` hasn't, so `appFile` is
70
+ * just the old reference-only stub with no default export — falls back to
71
+ * `importRefs` (the import-time fields/searchTables) merged with whatever
72
+ * own-file children already have authoring files in this folder.
73
+ */
74
+ export declare function writeAppCatalog(appDir: string, appRefName: string, appName: string, appFile: string, importRefs?: readonly CatalogRef[], kind?: "app" | "element"): Promise<{
75
+ catalogPath: string;
76
+ }>;
77
+ /** One app's catalog regenerated by {@link regenerateAppCatalogsUnder}. */
78
+ export interface AppCatalogRegenResult {
79
+ readonly appRefName: string;
80
+ readonly appName: string;
81
+ readonly kind: "app" | "element";
82
+ /** The regenerated per-app/per-element catalog file path. */
83
+ readonly catalogPath: string;
84
+ }
85
+ /**
86
+ * Regenerate the per-entity catalog for every app/element authoring file
87
+ * found anywhere under `dir` — the same kind of file `edk plan`/`edk apply`
88
+ * discover as deployable entities. Run this **before** plan/apply discovery:
89
+ * an automation file that imports its owning app's/element's `catalog.ts`
90
+ * needs that file to reflect whatever own-file children exist on disk right
91
+ * now, not a stale snapshot from the last time the catalog was written.
92
+ *
93
+ * A file that fails to load is silently skipped here — `discoverV2Entities`
94
+ * (run right after this, by the caller) is what surfaces load errors to the
95
+ * user; duplicating that reporting here would just be noise.
96
+ *
97
+ * `pathOrPaths` may be one directory (historical), one authoring file, or a
98
+ * mix of files and directories — same expansion rules as plan/apply discovery.
99
+ *
100
+ * Pass `tenant` from plan/apply so paths are gated to the authenticated
101
+ * org/instance workspace.
102
+ */
103
+ export declare function regenerateAppCatalogsUnder(pathOrPaths: string | readonly string[], tenant?: AuthoringTenantContext): Promise<AppCatalogRegenResult[]>;