@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,123 @@
1
+ /**
2
+ * Wire model for the platform's polymorphic `AgenticSkillTool`
3
+ * GraphQL interface, surfaced through antman's `getSkill` endpoint
4
+ * (`antman/.../skill/SkillClient.java`'s GraphQL fragment).
5
+ *
6
+ * Mirrors antman's flat-union `SkillTool` Java record: every
7
+ * variant-specific field is optional on the wire, populated based on
8
+ * `type`. Same convention as the canonical agent-tool model. Antman
9
+ * aliases the platform's `__typename` to `type` so the GraphQL-y
10
+ * field name doesn't leak into the REST surface; it also aliases the
11
+ * platform's coarser `type` scalar to `category` to avoid colliding
12
+ * with the variant discriminator above.
13
+ */
14
+ /**
15
+ * Closed set of `SkillTool` variants the EDK round-trips. Mirrors
16
+ * the platform's `AgenticSkillTool` union discriminators.
17
+ */
18
+ export type SkillToolType = "AgenticSkillAutomationTool" | "AgenticSkillSearchAspectTool" | "AgenticSkillSearchTableTool" | "AgenticSkillCreateRecordTool" | "AgenticSkillUpdateRecordTool" | "AgenticSkillRunAgentTool";
19
+ /**
20
+ * One field entry on a skill tool's `fields[]` array — covers the
21
+ * search-side and record-side variants. `required` and `defaultValue`
22
+ * are populated only on the create/update variants.
23
+ *
24
+ * The field reference itself appears in two shapes depending on the
25
+ * read path: `GET /v1/skills/{id}` (antman's REST facade over the
26
+ * graph) nests it the same way agent tools do — `field: { id, ... }`,
27
+ * with every other property on that nested object left `null` — while
28
+ * some callers still send/expect the flatter `fieldId` UUID. Both are
29
+ * optional here so a reader can fall back (`fieldId ?? field?.id`)
30
+ * regardless of which shape actually arrived; don't assume either is
31
+ * exclusively present.
32
+ */
33
+ export interface SkillToolField {
34
+ readonly fieldId?: string;
35
+ readonly field?: {
36
+ readonly id: string;
37
+ };
38
+ readonly name?: string;
39
+ readonly description?: string;
40
+ readonly required?: boolean;
41
+ readonly defaultValue?: string;
42
+ }
43
+ /**
44
+ * Filter variable carried on search variants — `{ name, value }`
45
+ * pair. The EDK builder doesn't surface these today; pulled skills
46
+ * with non-empty `filterVariables` drop the variable list with a
47
+ * structured miss.
48
+ */
49
+ export interface SkillToolFilterVariable {
50
+ readonly name: string;
51
+ readonly value: string;
52
+ }
53
+ /**
54
+ * Polymorphic skill-tool wire shape. `type` is the discriminator;
55
+ * only the fields a given variant supplies are populated. Every
56
+ * variant carries the shared identity bookkeeping (`id`, `name`,
57
+ * `description`, `status`, `startMessage`).
58
+ *
59
+ * Variant-to-fields map (every field optional, populated per `type`):
60
+ *
61
+ * | type | extra fields |
62
+ * |---------------------------------|--------------------------------------------------------------------|
63
+ * | AgenticSkillAutomationTool | automation |
64
+ * | AgenticSkillSearchAspectTool | aspect, fields, filter, filterVariables, sort, limit, queryDescription |
65
+ * | AgenticSkillSearchTableTool | aspect, table, fields, filter, filterVariables, limit, queryDescription |
66
+ * | AgenticSkillCreateRecordTool | aspect, fields |
67
+ * | AgenticSkillUpdateRecordTool | aspect, fields, handleDescription |
68
+ * | AgenticSkillRunAgentTool | targetAgent, workerTaskPrompt |
69
+ *
70
+ * `filter` / `sort` / `limit` / `filterVariables` aren't authored by
71
+ * the EDK skill builder today — the deserializer drops them with a
72
+ * structured miss when they're non-empty so the pulled source stays
73
+ * within what the builder can re-emit.
74
+ *
75
+ * Note: `aspect.__typename` retains the GraphQL-y name because the
76
+ * apps/aspect wire surface still uses `__typename`; antman doesn't
77
+ * rename it across the skill query either.
78
+ */
79
+ export interface SkillTool {
80
+ readonly type?: SkillToolType;
81
+ readonly id: string;
82
+ readonly name: string;
83
+ readonly description: string;
84
+ readonly status?: string;
85
+ readonly startMessage?: string;
86
+ /**
87
+ * Coarser tool-type scalar — aliased from the platform's `type`
88
+ * field via GraphQL so it doesn't collide with the variant
89
+ * discriminator. Informational only; the EDK doesn't author it.
90
+ */
91
+ readonly category?: string;
92
+ readonly automation?: {
93
+ readonly id: string;
94
+ readonly name?: string;
95
+ };
96
+ readonly aspect?: {
97
+ readonly id: string;
98
+ readonly __typename?: string;
99
+ readonly name?: string;
100
+ };
101
+ readonly table?: {
102
+ readonly id: string;
103
+ readonly displayName?: string;
104
+ };
105
+ readonly fields?: readonly SkillToolField[];
106
+ readonly filter?: import("../../../../src/entities/shared/filters/types.js").FilterExpr;
107
+ readonly filterVariables?: readonly SkillToolFilterVariable[];
108
+ readonly sort?: {
109
+ readonly orders: ReadonlyArray<{
110
+ readonly field: string;
111
+ readonly direction: "ASC" | "DESC";
112
+ }>;
113
+ };
114
+ readonly limit?: number;
115
+ readonly queryDescription?: string;
116
+ readonly handleDescription?: string;
117
+ readonly targetAgent?: {
118
+ readonly id: string;
119
+ readonly name?: string;
120
+ readonly type?: string;
121
+ };
122
+ readonly workerTaskPrompt?: string;
123
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Wire model for the platform's polymorphic `AgenticSkillTool`
3
+ * GraphQL interface, surfaced through antman's `getSkill` endpoint
4
+ * (`antman/.../skill/SkillClient.java`'s GraphQL fragment).
5
+ *
6
+ * Mirrors antman's flat-union `SkillTool` Java record: every
7
+ * variant-specific field is optional on the wire, populated based on
8
+ * `type`. Same convention as the canonical agent-tool model. Antman
9
+ * aliases the platform's `__typename` to `type` so the GraphQL-y
10
+ * field name doesn't leak into the REST surface; it also aliases the
11
+ * platform's coarser `type` scalar to `category` to avoid colliding
12
+ * with the variant discriminator above.
13
+ */
14
+ export {};
@@ -0,0 +1,78 @@
1
+ /**
2
+ * Canonical Skill model — single source of truth for every antman
3
+ * endpoint that returns a skill or a piece of one. These endpoints
4
+ * populate this type today:
5
+ *
6
+ * - `Aspect.agenticSkills` (catalog view from `POST /v1/apps/definition`)
7
+ * populates identity-only fields: `id`, `name`, `description`.
8
+ * - `GET /v1/apps/{appId}/skills` (availability view) populates identity
9
+ * fields plus `clientHandle` for skills that an app can reference.
10
+ * - `GET /v1/skills/{skillId}` (full view) populates everything else
11
+ * (`instructions`, `status`, `type`, `properties`, `tools`, `app`).
12
+ *
13
+ * Different endpoints populate different fields on the same type;
14
+ * every field that isn't required on both views is optional. Same
15
+ * pattern as the canonical `Agent` model.
16
+ *
17
+ * `app` is the owning aspect — present for app-scoped skills, absent
18
+ * for org-scoped skills. The EDK builder today only supports
19
+ * authoring app-scoped skills, so the pull deserializer drops
20
+ * org-scoped skills with a structured miss (the skill body is still
21
+ * readable, but no `defineSkill({...})` source is emitted).
22
+ */
23
+ import type { Connection } from "../../../models/connection.js";
24
+ import type { SkillTool } from "./skill-tool.js";
25
+ /**
26
+ * Closed set of `AgenticSkillType` values mirrored from the platform's
27
+ * enum (`INTERNAL` | `CUSTOM`). The EDK serializer always emits
28
+ * `"CUSTOM"` on create; the read shape keeps both values so a pulled
29
+ * skill round-trips honestly.
30
+ */
31
+ export type SkillType = "INTERNAL" | "CUSTOM";
32
+ /**
33
+ * Closed set of `AgenticSkillStatus` values — `DRAFT` (default on the
34
+ * EDK builder), `ACTIVE`, or `INACTIVE`.
35
+ */
36
+ export type SkillStatus = "DRAFT" | "ACTIVE" | "INACTIVE";
37
+ /**
38
+ * Canonical wire shape. Identity-only views populate `id` / `name` /
39
+ * (optionally) `description`; the full view populates the rest. Every
40
+ * non-identity field is optional so the type can carry both shapes
41
+ * without callers needing to narrow on which endpoint produced it.
42
+ */
43
+ export interface Skill {
44
+ readonly id: string;
45
+ readonly name: string;
46
+ /** Server-assigned stable handle (e.g. `SKL_5op9ei66`); preferred over a name-derived handle. */
47
+ readonly clientHandle?: string;
48
+ /**
49
+ * Immutable creation timestamp (ISO-8601). Primary ordering key for
50
+ * deterministic handle minting (`src/handles`); optional, falls back to
51
+ * `id` ordering when absent.
52
+ */
53
+ readonly createdAt?: string;
54
+ readonly description?: string;
55
+ readonly instructions?: string;
56
+ readonly status?: SkillStatus;
57
+ readonly type?: SkillType;
58
+ /**
59
+ * Opaque pass-through JSON for the skill's properties field. The
60
+ * platform stores it verbatim; the EDK serializer hands the builder's
61
+ * `properties` option through unchanged and the deserializer hands
62
+ * the wire value back to the printer the same way.
63
+ */
64
+ readonly properties?: Record<string, unknown> | null;
65
+ /**
66
+ * Owner aspect — present when the skill is app-scoped, absent (null
67
+ * / undefined) when org-scoped. Antman queries the field via hydra's
68
+ * GraphQL; org-scoped skills produce `null` on the wire.
69
+ */
70
+ readonly app?: {
71
+ readonly id: string;
72
+ } | null;
73
+ /**
74
+ * Polymorphic tool list — populated by the full view only. Variant
75
+ * dispatch is on `tools.edges[].node.type`.
76
+ */
77
+ readonly tools?: Connection<SkillTool>;
78
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Canonical Skill model — single source of truth for every antman
3
+ * endpoint that returns a skill or a piece of one. These endpoints
4
+ * populate this type today:
5
+ *
6
+ * - `Aspect.agenticSkills` (catalog view from `POST /v1/apps/definition`)
7
+ * populates identity-only fields: `id`, `name`, `description`.
8
+ * - `GET /v1/apps/{appId}/skills` (availability view) populates identity
9
+ * fields plus `clientHandle` for skills that an app can reference.
10
+ * - `GET /v1/skills/{skillId}` (full view) populates everything else
11
+ * (`instructions`, `status`, `type`, `properties`, `tools`, `app`).
12
+ *
13
+ * Different endpoints populate different fields on the same type;
14
+ * every field that isn't required on both views is optional. Same
15
+ * pattern as the canonical `Agent` model.
16
+ *
17
+ * `app` is the owning aspect — present for app-scoped skills, absent
18
+ * for org-scoped skills. The EDK builder today only supports
19
+ * authoring app-scoped skills, so the pull deserializer drops
20
+ * org-scoped skills with a structured miss (the skill body is still
21
+ * readable, but no `defineSkill({...})` source is emitted).
22
+ */
23
+ export {};
@@ -0,0 +1 @@
1
+ export type { AspectFieldSemanticTag, AspectFieldType, TableFieldAggregation, TableFieldExpanded, TableJoinType, TableFieldSnowflakeInput, TableFieldBigQueryInput, TableFieldCloudCreateInput, TableCalculationCreateInput, TableFieldAggregatableCreateInput, TableFieldCreateInput, TableFieldCloudUpdateInput, TableCalculationUpdateInput, TableFieldAggregatableUpdateInput, TableFieldUpdateInput, TableFieldIdentityInput, TableFieldEnvelopeUpdateInput, TableFieldUpdatePayload, TableFieldsV3UpdateCreateInput, TableFieldsV3UpdateSetInput, TableFieldsV3UpdateDeleteInput, TableFieldsV3UpdateInput, TableJoinFieldInput, TableJoinInput, TableSnowflakeMappingInput, TableBigQueryMappingInput, TableDatabricksMappingInput, TableCloudMappingInput, TableDataViewSnowflakeCreateInput, TableDataViewCreateInput, TableDataViewSnowflakeUpdateInput, TableDataViewUpdateInput, TableCreateRequest, TableUpdateRequest, TableFieldWire, TableJoinWire, TableWire, TablePagedList, DeployedTable, } from "./table-wire.js";
@@ -0,0 +1,265 @@
1
+ /**
2
+ * Wire-shape types for the platform's table endpoints.
3
+ *
4
+ * Mirrors the platform table wire schemas:
5
+ * - TableCreateRequest
6
+ * - TableUpdateRequest
7
+ * - Table
8
+ * - TablePagedList
9
+ *
10
+ * The shapes here are the literal JSON payload — the serializer in
11
+ * `src/tables/serializer/` resolves EDK refs (App / Element /
12
+ * AspectCategoryRef / CloudLink / built TableField factory output)
13
+ * to id-strings and discriminated objects the platform request expects.
14
+ */
15
+ import type { DeployResponse } from "../../../types.js";
16
+ export type AspectFieldSemanticTag = "ASSIGNEE" | "ASSIGNMENT_GROUP" | "BREAK_LINE" | "CLOSED_AT" | "CLOSED_BY" | "COST" | "CREATED_AT" | "CREATED_BY" | "CURRENCY" | "DESCRIPTION" | "DUE_DATE" | "FULL_LINE" | "HANDLE" | "PERCENT" | "PERCENT_MULTIPLY" | "PRIORITY" | "REVENUE" | "STAGE" | "STATUS" | "TITLE" | "TOTAL_VALUE_MANAGED" | "UPDATED_AT" | "UPDATED_BY" | "VERSION";
17
+ export type AspectFieldType = "ATTACHMENT_ID" | "BOOLEAN" | "DATE" | "DATETIME" | "DECIMAL" | "GROUP_ID" | "HANDLE" | "HTML" | "JSON" | "MULTI_PICKLIST" | "NUMBER" | "PICKLIST" | "TEXT" | "USER_ID";
18
+ export type TableFieldAggregation = "AVERAGE" | "COUNT" | "COUNT_DISTINCT" | "MAX" | "MIN" | "NOT_SET" | "STANDARD_DEVIATION" | "SUM";
19
+ export type TableFieldExpanded = "GROUP_NAME" | "MULTI_PICKLIST_LABEL" | "PICKLIST_LABEL" | "STAGE_NAME" | "USER_EMAIL" | "USER_FIRST_NAME" | "USER_LAST_NAME";
20
+ export type TableJoinType = "FULL" | "INNER" | "LEFT" | "RIGHT";
21
+ export interface TableFieldSnowflakeInput {
22
+ readonly columnName: string;
23
+ readonly type: AspectFieldType;
24
+ }
25
+ export interface TableFieldBigQueryInput {
26
+ readonly columnName: string;
27
+ readonly type: AspectFieldType;
28
+ }
29
+ export interface TableFieldCloudCreateInput {
30
+ readonly name: string;
31
+ readonly snowflake?: TableFieldSnowflakeInput;
32
+ readonly bigQuery?: TableFieldBigQueryInput;
33
+ readonly tags?: readonly AspectFieldSemanticTag[];
34
+ }
35
+ export interface TableCalculationCreateInput {
36
+ readonly name: string;
37
+ readonly text: string;
38
+ readonly tags?: readonly AspectFieldSemanticTag[];
39
+ }
40
+ export interface TableFieldAggregatableCreateInput {
41
+ readonly name: string;
42
+ /** Source field id (a TableField on this or a related table). */
43
+ readonly field: string;
44
+ readonly aggregation?: TableFieldAggregation;
45
+ readonly expanded?: TableFieldExpanded;
46
+ readonly tags?: readonly AspectFieldSemanticTag[];
47
+ }
48
+ /**
49
+ * Discriminated field input — populate exactly one of `cloud`,
50
+ * `calculation`, or `reference`. The platform validates this at the
51
+ * server boundary; the SDK serializer enforces it locally so the
52
+ * compiler catches misuse.
53
+ */
54
+ export interface TableFieldCreateInput {
55
+ readonly cloud?: TableFieldCloudCreateInput;
56
+ readonly calculation?: TableCalculationCreateInput;
57
+ readonly reference?: TableFieldAggregatableCreateInput;
58
+ }
59
+ export interface TableFieldCloudUpdateInput {
60
+ readonly name: string;
61
+ readonly snowflake?: TableFieldSnowflakeInput;
62
+ readonly tags?: readonly AspectFieldSemanticTag[];
63
+ }
64
+ export interface TableCalculationUpdateInput {
65
+ readonly name?: string;
66
+ readonly text?: string;
67
+ readonly tags?: readonly AspectFieldSemanticTag[];
68
+ }
69
+ export interface TableFieldAggregatableUpdateInput {
70
+ readonly name?: string;
71
+ readonly field?: string;
72
+ readonly aggregation?: TableFieldAggregation;
73
+ readonly expanded?: TableFieldExpanded;
74
+ readonly tags?: readonly AspectFieldSemanticTag[];
75
+ }
76
+ export interface TableFieldUpdateInput {
77
+ readonly cloud?: TableFieldCloudUpdateInput;
78
+ readonly calculation?: TableCalculationUpdateInput;
79
+ readonly reference?: TableFieldAggregatableUpdateInput;
80
+ }
81
+ export interface TableFieldIdentityInput {
82
+ readonly id: string;
83
+ readonly clientHandle?: string;
84
+ readonly __typename?: string;
85
+ }
86
+ export interface TableFieldEnvelopeUpdateInput {
87
+ readonly id?: string;
88
+ readonly name?: string;
89
+ readonly fieldType?: AspectFieldType | string;
90
+ readonly tags?: readonly string[];
91
+ readonly semanticTags?: readonly string[];
92
+ readonly field?: TableFieldIdentityInput;
93
+ readonly source?: TableFieldIdentityInput;
94
+ readonly clientHandle?: string;
95
+ readonly isAggregated?: boolean;
96
+ readonly configured?: boolean;
97
+ readonly __typename?: string;
98
+ readonly cloud?: TableFieldCloudUpdateInput;
99
+ readonly calculation?: TableCalculationUpdateInput;
100
+ readonly reference?: TableFieldAggregatableUpdateInput;
101
+ readonly aggregation?: TableFieldAggregation;
102
+ readonly expanded?: TableFieldExpanded;
103
+ }
104
+ export type TableFieldUpdatePayload = TableFieldUpdateInput | TableFieldEnvelopeUpdateInput;
105
+ export interface TableFieldsV3UpdateCreateInput {
106
+ readonly field: TableFieldCreateInput;
107
+ readonly index?: number;
108
+ }
109
+ export interface TableFieldsV3UpdateSetInput {
110
+ readonly id: string;
111
+ readonly field: TableFieldUpdatePayload;
112
+ readonly index?: number;
113
+ }
114
+ export interface TableFieldsV3UpdateDeleteInput {
115
+ readonly id: string;
116
+ }
117
+ export interface TableFieldsV3UpdateInput {
118
+ readonly creates?: readonly TableFieldsV3UpdateCreateInput[];
119
+ readonly updates?: readonly TableFieldsV3UpdateSetInput[];
120
+ readonly deletes?: readonly TableFieldsV3UpdateDeleteInput[];
121
+ }
122
+ export interface TableJoinFieldInput {
123
+ /** Field id on the parent (host) table side of the join. */
124
+ readonly leftFieldId: string;
125
+ /** Field id on the joined-in (source) table side of the join. */
126
+ readonly rightFieldId: string;
127
+ }
128
+ export interface TableJoinInput {
129
+ readonly source: string;
130
+ readonly type: TableJoinType;
131
+ readonly joinOn: readonly TableJoinFieldInput[];
132
+ readonly filter?: unknown;
133
+ }
134
+ export interface TableSnowflakeMappingInput {
135
+ readonly databaseName: string;
136
+ readonly schemaName: string;
137
+ readonly tableName: string;
138
+ }
139
+ export interface TableBigQueryMappingInput {
140
+ readonly datasetName: string;
141
+ readonly tableName: string;
142
+ }
143
+ export interface TableDatabricksMappingInput {
144
+ readonly databaseName: string;
145
+ readonly schemaName: string;
146
+ readonly tableName: string;
147
+ }
148
+ export interface TableCloudMappingInput {
149
+ readonly cloudLinkId: string;
150
+ readonly snowflakeMapping?: TableSnowflakeMappingInput;
151
+ readonly bigQueryMapping?: TableBigQueryMappingInput;
152
+ readonly databricksMapping?: TableDatabricksMappingInput;
153
+ }
154
+ export interface TableDataViewSnowflakeCreateInput {
155
+ readonly databaseName: string;
156
+ readonly schemaName: string;
157
+ readonly name: string;
158
+ }
159
+ export interface TableDataViewCreateInput {
160
+ readonly snowflake?: TableDataViewSnowflakeCreateInput;
161
+ }
162
+ export interface TableDataViewSnowflakeUpdateInput {
163
+ readonly databaseName?: string;
164
+ readonly schemaName?: string;
165
+ readonly name?: string;
166
+ }
167
+ export interface TableDataViewUpdateInput {
168
+ readonly snowflake?: TableDataViewSnowflakeUpdateInput;
169
+ }
170
+ /** Body for creating a table. */
171
+ export interface TableCreateRequest {
172
+ readonly name: string;
173
+ /** Record-handle prefix (e.g. "TKT"). */
174
+ readonly handle: string;
175
+ /** Source aspect (App / Element) id, or another Table id. */
176
+ readonly source: string;
177
+ /** AspectCategory id this table files under. */
178
+ readonly categoryId: string;
179
+ readonly fields: readonly TableFieldCreateInput[];
180
+ readonly description?: string;
181
+ readonly icon?: string;
182
+ readonly color?: string;
183
+ readonly cloudMapping?: TableCloudMappingInput;
184
+ readonly dataView?: TableDataViewCreateInput;
185
+ readonly join?: TableJoinInput;
186
+ readonly joins?: readonly TableJoinInput[];
187
+ /** Opaque Filter JSON applied to the table results. */
188
+ readonly filter?: unknown;
189
+ /** Opaque Limit JSON. */
190
+ readonly limit?: unknown;
191
+ /** Opaque Sort JSON. */
192
+ readonly orderBy?: unknown;
193
+ }
194
+ /** Body for updating a table. */
195
+ export interface TableUpdateRequest {
196
+ readonly name?: string;
197
+ readonly source?: string;
198
+ readonly categoryId?: string;
199
+ readonly description?: string;
200
+ readonly icon?: string;
201
+ readonly color?: string;
202
+ readonly fields?: TableFieldsV3UpdateInput;
203
+ readonly cloudMapping?: TableCloudMappingInput;
204
+ readonly dataView?: TableDataViewUpdateInput;
205
+ readonly filter?: unknown;
206
+ readonly limit?: unknown;
207
+ readonly orderBy?: unknown;
208
+ }
209
+ /**
210
+ * Response field shape — narrow union that mirrors what the platform
211
+ * surfaces today on `Table.fields[]`. Each variant carries the same
212
+ * identity surface (`id`, `name`, `fieldType`, `tags`,
213
+ * `semanticTags`); per-variant slots round-trip extra metadata.
214
+ */
215
+ export interface TableFieldWire {
216
+ readonly id: string;
217
+ readonly name: string;
218
+ readonly fieldType: AspectFieldType;
219
+ readonly configured?: boolean;
220
+ readonly isAggregated?: boolean;
221
+ readonly tags?: readonly string[];
222
+ readonly semanticTags?: readonly AspectFieldSemanticTag[];
223
+ /** Discriminator surfaced by the platform on each variant. */
224
+ readonly __typename?: string;
225
+ /** Extra metadata passes through opaquely. */
226
+ readonly [key: string]: unknown;
227
+ }
228
+ export interface TableJoinWire {
229
+ readonly id: string;
230
+ readonly type?: TableJoinType;
231
+ readonly [key: string]: unknown;
232
+ }
233
+ /** Trimmed Table response. The platform returns more; we project to id + the bits the SDK needs. */
234
+ export interface TableWire {
235
+ readonly id: string;
236
+ readonly name: string;
237
+ readonly handle: string;
238
+ readonly type?: string;
239
+ readonly configured?: boolean;
240
+ readonly editable?: boolean;
241
+ readonly cloudManaged?: boolean;
242
+ readonly fields?: readonly TableFieldWire[];
243
+ readonly joins?: readonly TableJoinWire[];
244
+ readonly __typename?: string;
245
+ readonly [key: string]: unknown;
246
+ }
247
+ /**
248
+ * Normalized deploy response. Matches the `DeployResponse` contract
249
+ * (a top-level `id`) so the late-binding registry and per-process
250
+ * stamp WeakMap key uniformly across entity kinds.
251
+ */
252
+ export interface DeployedTable extends DeployResponse {
253
+ readonly id: string;
254
+ readonly name?: string;
255
+ readonly handle?: string;
256
+ readonly __typename?: string;
257
+ }
258
+ /** Trimmed page shape for `GET /tables`. */
259
+ export interface TablePagedList {
260
+ readonly items: readonly TableWire[];
261
+ readonly paging?: {
262
+ readonly has_next_page?: boolean;
263
+ readonly end_cursor?: string;
264
+ };
265
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Wire-shape types for the platform's table endpoints.
3
+ *
4
+ * Mirrors the platform table wire schemas:
5
+ * - TableCreateRequest
6
+ * - TableUpdateRequest
7
+ * - Table
8
+ * - TablePagedList
9
+ *
10
+ * The shapes here are the literal JSON payload — the serializer in
11
+ * `src/tables/serializer/` resolves EDK refs (App / Element /
12
+ * AspectCategoryRef / CloudLink / built TableField factory output)
13
+ * to id-strings and discriminated objects the platform request expects.
14
+ */
15
+ export {};
@@ -0,0 +1,90 @@
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 declare class DeployConfigError extends Error {
42
+ constructor(message: string);
43
+ }
44
+ export declare class EdkValidationError extends Error {
45
+ constructor(message: string, options?: {
46
+ cause?: unknown;
47
+ });
48
+ }
49
+ export declare class DeployError extends Error {
50
+ readonly status: number;
51
+ readonly body: unknown;
52
+ constructor(message: string, status: number, body: unknown, options?: {
53
+ cause?: unknown;
54
+ });
55
+ }
56
+ /**
57
+ * Thrown by `.deploy()` when an entity's source hash differs from the
58
+ * recorded state hash and the backend has no PUT path for the entity's
59
+ * kind. Skills (hydra) and flows (wolverine) currently sit here.
60
+ *
61
+ * Carries the recorded `id` (e.g. `skillId`, `flowId`) so the operator
62
+ * can find the entity on the platform, delete it, and re-run. Once the
63
+ * backend ships PUT for the kind, the EDK side wires a `doUpdate`
64
+ * closure and this error stops firing.
65
+ */
66
+ export declare class DeployUpdateUnsupportedError extends Error {
67
+ readonly entityKind: string;
68
+ readonly entityName: string;
69
+ readonly recordedId: string;
70
+ constructor(entityKind: string, entityName: string, recordedId: string);
71
+ }
72
+ /**
73
+ * Thrown when `.edk-state/<appId>.json` exists but does not parse to
74
+ * the supported schema (missing fields, wrong version, malformed JSON).
75
+ *
76
+ * The SDK refuses to overwrite or "silently rebuild" the file because
77
+ * that would mask the underlying problem — e.g. someone hand-edited
78
+ * the file, a half-written file from a crashed deploy, or a downgrade
79
+ * to an older SDK that wrote an incompatible schema.
80
+ *
81
+ * Recovery: run `edk generate --aspect-id <UUID>`
82
+ * to regenerate state from server, or delete the file and re-run if the
83
+ * cohort is empty on the platform.
84
+ */
85
+ export declare class DeployStateCorruptError extends Error {
86
+ readonly statePath: string;
87
+ constructor(statePath: string, detail: string, options?: {
88
+ cause?: unknown;
89
+ });
90
+ }