@tai42/studio-sdk 16.0.0 → 17.0.0

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 (486) hide show
  1. package/dist/components/code-block.js +1 -1
  2. package/dist/components/code-block.js.map +1 -1
  3. package/dist/components/confirm-dialog.js +1 -1
  4. package/dist/components/confirm-dialog.js.map +1 -1
  5. package/dist/components/copy-field.js +1 -1
  6. package/dist/components/copy-field.js.map +1 -1
  7. package/dist/components/date-range-picker.d.ts.map +1 -1
  8. package/dist/components/date-range-picker.js.map +1 -1
  9. package/dist/components/dialog.d.ts.map +1 -1
  10. package/dist/components/dialog.js.map +1 -1
  11. package/dist/components/dirty-guard.d.ts.map +1 -1
  12. package/dist/components/dirty-guard.js +1 -1
  13. package/dist/components/dirty-guard.js.map +1 -1
  14. package/dist/components/explorer-body.d.ts +49 -0
  15. package/dist/components/explorer-body.d.ts.map +1 -0
  16. package/dist/components/explorer-body.js +67 -0
  17. package/dist/components/explorer-body.js.map +1 -0
  18. package/dist/components/explorer-page-size.d.ts +4 -0
  19. package/dist/components/explorer-page-size.d.ts.map +1 -0
  20. package/dist/components/explorer-page-size.js +36 -0
  21. package/dist/components/explorer-page-size.js.map +1 -0
  22. package/dist/components/explorer-tag-filter.d.ts +17 -0
  23. package/dist/components/explorer-tag-filter.d.ts.map +1 -0
  24. package/dist/components/explorer-tag-filter.js +29 -0
  25. package/dist/components/explorer-tag-filter.js.map +1 -0
  26. package/dist/components/explorer-tags.d.ts +22 -0
  27. package/dist/components/explorer-tags.d.ts.map +1 -0
  28. package/dist/components/explorer-tags.js +51 -0
  29. package/dist/components/explorer-tags.js.map +1 -0
  30. package/dist/components/explorer-view.d.ts +3 -17
  31. package/dist/components/explorer-view.d.ts.map +1 -1
  32. package/dist/components/explorer-view.js +53 -170
  33. package/dist/components/explorer-view.js.map +1 -1
  34. package/dist/components/extension-combo-builder.d.ts +1 -6
  35. package/dist/components/extension-combo-builder.d.ts.map +1 -1
  36. package/dist/components/extension-combo-builder.js +4 -79
  37. package/dist/components/extension-combo-builder.js.map +1 -1
  38. package/dist/components/extension-combo-parts.d.ts +44 -0
  39. package/dist/components/extension-combo-parts.d.ts.map +1 -0
  40. package/dist/components/extension-combo-parts.js +52 -0
  41. package/dist/components/extension-combo-parts.js.map +1 -0
  42. package/dist/components/field.d.ts +8 -0
  43. package/dist/components/field.d.ts.map +1 -1
  44. package/dist/components/field.js +0 -8
  45. package/dist/components/field.js.map +1 -1
  46. package/dist/components/fleet-report.d.ts +1 -1
  47. package/dist/components/fleet-report.d.ts.map +1 -1
  48. package/dist/components/fleet-report.js +51 -37
  49. package/dist/components/fleet-report.js.map +1 -1
  50. package/dist/components/folder-nav.d.ts.map +1 -1
  51. package/dist/components/folder-nav.js +1 -1
  52. package/dist/components/folder-nav.js.map +1 -1
  53. package/dist/components/form-dialog.d.ts.map +1 -1
  54. package/dist/components/form-dialog.js +1 -1
  55. package/dist/components/form-dialog.js.map +1 -1
  56. package/dist/components/icons/chrome-marks.d.ts +50 -0
  57. package/dist/components/icons/chrome-marks.d.ts.map +1 -0
  58. package/dist/components/icons/chrome-marks.js +51 -0
  59. package/dist/components/icons/chrome-marks.js.map +1 -0
  60. package/dist/components/icons/icon-frame.d.ts +29 -0
  61. package/dist/components/icons/icon-frame.d.ts.map +1 -0
  62. package/dist/components/icons/icon-frame.js +19 -0
  63. package/dist/components/icons/icon-frame.js.map +1 -0
  64. package/dist/components/icons/index.d.ts +40 -0
  65. package/dist/components/icons/index.d.ts.map +1 -0
  66. package/dist/components/icons/index.js +39 -0
  67. package/dist/components/icons/index.js.map +1 -0
  68. package/dist/components/icons/nav-map.d.ts +14 -0
  69. package/dist/components/icons/nav-map.d.ts.map +1 -0
  70. package/dist/components/icons/nav-map.js +28 -0
  71. package/dist/components/icons/nav-map.js.map +1 -0
  72. package/dist/components/icons/nav-marks.d.ts +44 -0
  73. package/dist/components/icons/nav-marks.d.ts.map +1 -0
  74. package/dist/components/icons/nav-marks.js +45 -0
  75. package/dist/components/icons/nav-marks.js.map +1 -0
  76. package/dist/components/icons/status-marks.d.ts +21 -0
  77. package/dist/components/icons/status-marks.d.ts.map +1 -0
  78. package/dist/components/icons/status-marks.js +22 -0
  79. package/dist/components/icons/status-marks.js.map +1 -0
  80. package/dist/components/icons/theme-marks.d.ts +9 -0
  81. package/dist/components/icons/theme-marks.d.ts.map +1 -0
  82. package/dist/components/icons/theme-marks.js +10 -0
  83. package/dist/components/icons/theme-marks.js.map +1 -0
  84. package/dist/components/inputs.js.map +1 -1
  85. package/dist/components/json-diff.d.ts.map +1 -1
  86. package/dist/components/json-diff.js +1 -3
  87. package/dist/components/json-diff.js.map +1 -1
  88. package/dist/components/json-tree-context.d.ts +13 -0
  89. package/dist/components/json-tree-context.d.ts.map +1 -0
  90. package/dist/components/json-tree-context.js +15 -0
  91. package/dist/components/json-tree-context.js.map +1 -0
  92. package/dist/components/json-tree-model.d.ts +56 -0
  93. package/dist/components/json-tree-model.d.ts.map +1 -0
  94. package/dist/components/json-tree-model.js +125 -0
  95. package/dist/components/json-tree-model.js.map +1 -0
  96. package/dist/components/json-tree-nodes.d.ts +35 -0
  97. package/dist/components/json-tree-nodes.d.ts.map +1 -0
  98. package/dist/components/json-tree-nodes.js +113 -0
  99. package/dist/components/json-tree-nodes.js.map +1 -0
  100. package/dist/components/json-tree.d.ts +20 -0
  101. package/dist/components/json-tree.d.ts.map +1 -1
  102. package/dist/components/json-tree.js +7 -315
  103. package/dist/components/json-tree.js.map +1 -1
  104. package/dist/components/json-value-format.d.ts +20 -0
  105. package/dist/components/json-value-format.d.ts.map +1 -0
  106. package/dist/components/json-value-format.js +63 -0
  107. package/dist/components/json-value-format.js.map +1 -0
  108. package/dist/components/markdown-blocks.d.ts +38 -0
  109. package/dist/components/markdown-blocks.d.ts.map +1 -0
  110. package/dist/components/markdown-blocks.js +168 -0
  111. package/dist/components/markdown-blocks.js.map +1 -0
  112. package/dist/components/markdown-inline.d.ts +24 -0
  113. package/dist/components/markdown-inline.d.ts.map +1 -0
  114. package/dist/components/markdown-inline.js +257 -0
  115. package/dist/components/markdown-inline.js.map +1 -0
  116. package/dist/components/markdown.d.ts +3 -52
  117. package/dist/components/markdown.d.ts.map +1 -1
  118. package/dist/components/markdown.js +4 -376
  119. package/dist/components/markdown.js.map +1 -1
  120. package/dist/components/observer-registry.d.ts +38 -0
  121. package/dist/components/observer-registry.d.ts.map +1 -0
  122. package/dist/components/observer-registry.js +131 -0
  123. package/dist/components/observer-registry.js.map +1 -0
  124. package/dist/components/overflow-measure.d.ts +38 -0
  125. package/dist/components/overflow-measure.d.ts.map +1 -0
  126. package/dist/components/overflow-measure.js +54 -0
  127. package/dist/components/overflow-measure.js.map +1 -0
  128. package/dist/components/page-fill.d.ts.map +1 -1
  129. package/dist/components/page-fill.js.map +1 -1
  130. package/dist/components/prose-regions.d.ts +81 -0
  131. package/dist/components/prose-regions.d.ts.map +1 -0
  132. package/dist/components/prose-regions.js +128 -0
  133. package/dist/components/prose-regions.js.map +1 -0
  134. package/dist/components/radio-group.d.ts.map +1 -1
  135. package/dist/components/radio-group.js.map +1 -1
  136. package/dist/components/scroll-region.d.ts +24 -0
  137. package/dist/components/scroll-region.d.ts.map +1 -1
  138. package/dist/components/scroll-region.js +3 -322
  139. package/dist/components/scroll-region.js.map +1 -1
  140. package/dist/components/tab-stop-parse.d.ts +53 -0
  141. package/dist/components/tab-stop-parse.d.ts.map +1 -0
  142. package/dist/components/tab-stop-parse.js +202 -0
  143. package/dist/components/tab-stop-parse.js.map +1 -0
  144. package/dist/components/table.d.ts +1 -1
  145. package/dist/components/table.d.ts.map +1 -1
  146. package/dist/components/tags.d.ts.map +1 -1
  147. package/dist/components/tags.js +1 -1
  148. package/dist/components/tags.js.map +1 -1
  149. package/dist/components/templated-text-field.d.ts +1 -1
  150. package/dist/components/templated-text-field.d.ts.map +1 -1
  151. package/dist/components/templated-text-field.js +10 -174
  152. package/dist/components/templated-text-field.js.map +1 -1
  153. package/dist/components/templated-text-kwargs-editor.d.ts +24 -0
  154. package/dist/components/templated-text-kwargs-editor.d.ts.map +1 -0
  155. package/dist/components/templated-text-kwargs-editor.js +48 -0
  156. package/dist/components/templated-text-kwargs-editor.js.map +1 -0
  157. package/dist/components/templated-text-kwargs.d.ts +37 -0
  158. package/dist/components/templated-text-kwargs.d.ts.map +1 -0
  159. package/dist/components/templated-text-kwargs.js +66 -0
  160. package/dist/components/templated-text-kwargs.js.map +1 -0
  161. package/dist/components/templated-text-source.d.ts +33 -0
  162. package/dist/components/templated-text-source.d.ts.map +1 -0
  163. package/dist/components/templated-text-source.js +53 -0
  164. package/dist/components/templated-text-source.js.map +1 -0
  165. package/dist/components/tool-picker-parts.d.ts +39 -0
  166. package/dist/components/tool-picker-parts.d.ts.map +1 -0
  167. package/dist/components/tool-picker-parts.js +87 -0
  168. package/dist/components/tool-picker-parts.js.map +1 -0
  169. package/dist/components/tool-picker.d.ts +1 -2
  170. package/dist/components/tool-picker.d.ts.map +1 -1
  171. package/dist/components/tool-picker.js +4 -66
  172. package/dist/components/tool-picker.js.map +1 -1
  173. package/dist/components/version-history-panel.d.ts.map +1 -1
  174. package/dist/components/version-history-panel.js +7 -34
  175. package/dist/components/version-history-panel.js.map +1 -1
  176. package/dist/components/version-history-rows.d.ts +48 -0
  177. package/dist/components/version-history-rows.d.ts.map +1 -0
  178. package/dist/components/version-history-rows.js +51 -0
  179. package/dist/components/version-history-rows.js.map +1 -0
  180. package/dist/components/view-toggle.d.ts.map +1 -1
  181. package/dist/components/view-toggle.js.map +1 -1
  182. package/dist/element-slot.d.ts +11 -0
  183. package/dist/element-slot.d.ts.map +1 -1
  184. package/dist/element-slot.js +0 -11
  185. package/dist/element-slot.js.map +1 -1
  186. package/dist/guards.d.ts +6 -0
  187. package/dist/guards.d.ts.map +1 -0
  188. package/dist/guards.js +8 -0
  189. package/dist/guards.js.map +1 -0
  190. package/dist/hooks/interactions-connection.d.ts +43 -0
  191. package/dist/hooks/interactions-connection.d.ts.map +1 -0
  192. package/dist/hooks/interactions-connection.js +171 -0
  193. package/dist/hooks/interactions-connection.js.map +1 -0
  194. package/dist/hooks/interactions-stream.d.ts +80 -0
  195. package/dist/hooks/interactions-stream.d.ts.map +1 -0
  196. package/dist/hooks/interactions-stream.js +233 -0
  197. package/dist/hooks/interactions-stream.js.map +1 -0
  198. package/dist/hooks/useApi.d.ts +2259 -2189
  199. package/dist/hooks/useApi.d.ts.map +1 -1
  200. package/dist/hooks/useApi.js +0 -11
  201. package/dist/hooks/useApi.js.map +1 -1
  202. package/dist/hooks/useAuth.d.ts +6 -0
  203. package/dist/hooks/useAuth.d.ts.map +1 -1
  204. package/dist/hooks/useAuth.js +0 -6
  205. package/dist/hooks/useAuth.js.map +1 -1
  206. package/dist/hooks/useCapabilities.d.ts +18 -2
  207. package/dist/hooks/useCapabilities.d.ts.map +1 -1
  208. package/dist/hooks/useCapabilities.js +1 -17
  209. package/dist/hooks/useCapabilities.js.map +1 -1
  210. package/dist/hooks/useSse.d.ts +34 -6
  211. package/dist/hooks/useSse.d.ts.map +1 -1
  212. package/dist/hooks/useSse.js +27 -471
  213. package/dist/hooks/useSse.js.map +1 -1
  214. package/dist/hooks/useSystemKinds.d.ts +1 -1
  215. package/dist/hooks/useSystemKinds.d.ts.map +1 -1
  216. package/dist/hooks/useSystemKinds.js +0 -18
  217. package/dist/hooks/useSystemKinds.js.map +1 -1
  218. package/dist/hooks/useTheme.d.ts +15 -0
  219. package/dist/hooks/useTheme.d.ts.map +1 -1
  220. package/dist/hooks/useTheme.js +0 -15
  221. package/dist/hooks/useTheme.js.map +1 -1
  222. package/dist/hooks/useToolDisplayNames.d.ts +0 -14
  223. package/dist/hooks/useToolDisplayNames.d.ts.map +1 -1
  224. package/dist/hooks/useToolDisplayNames.js +0 -14
  225. package/dist/hooks/useToolDisplayNames.js.map +1 -1
  226. package/dist/host.d.ts +3 -3
  227. package/dist/host.d.ts.map +1 -1
  228. package/dist/host.js +2 -9
  229. package/dist/host.js.map +1 -1
  230. package/dist/index.d.ts +103 -103
  231. package/dist/index.d.ts.map +1 -1
  232. package/dist/index.js +49 -62
  233. package/dist/index.js.map +1 -1
  234. package/dist/navigation/app-link.d.ts +25 -0
  235. package/dist/navigation/app-link.d.ts.map +1 -0
  236. package/dist/navigation/app-link.js +33 -0
  237. package/dist/navigation/app-link.js.map +1 -0
  238. package/dist/navigation/context.d.ts +3 -20
  239. package/dist/navigation/context.d.ts.map +1 -1
  240. package/dist/navigation/context.js +7 -267
  241. package/dist/navigation/context.js.map +1 -1
  242. package/dist/navigation/entry-state.d.ts +23 -0
  243. package/dist/navigation/entry-state.d.ts.map +1 -0
  244. package/dist/navigation/entry-state.js +39 -0
  245. package/dist/navigation/entry-state.js.map +1 -0
  246. package/dist/navigation/guard-registry.d.ts +30 -0
  247. package/dist/navigation/guard-registry.d.ts.map +1 -0
  248. package/dist/navigation/guard-registry.js +46 -0
  249. package/dist/navigation/guard-registry.js.map +1 -0
  250. package/dist/navigation/guarded-navigation.d.ts +24 -0
  251. package/dist/navigation/guarded-navigation.d.ts.map +1 -0
  252. package/dist/navigation/guarded-navigation.js +102 -0
  253. package/dist/navigation/guarded-navigation.js.map +1 -0
  254. package/dist/navigation/index.d.ts +5 -4
  255. package/dist/navigation/index.d.ts.map +1 -1
  256. package/dist/navigation/index.js +2 -1
  257. package/dist/navigation/index.js.map +1 -1
  258. package/dist/navigation/types.d.ts +8 -11
  259. package/dist/navigation/types.d.ts.map +1 -1
  260. package/dist/navigation/use-back-forward-guard.d.ts +12 -0
  261. package/dist/navigation/use-back-forward-guard.d.ts.map +1 -0
  262. package/dist/navigation/use-back-forward-guard.js +75 -0
  263. package/dist/navigation/use-back-forward-guard.js.map +1 -0
  264. package/dist/navigation/use-search-commit.d.ts.map +1 -1
  265. package/dist/navigation/use-search-commit.js.map +1 -1
  266. package/dist/plugin/host-state.d.ts.map +1 -1
  267. package/dist/plugin/host-state.js.map +1 -1
  268. package/dist/plugin/registry.d.ts +6 -15
  269. package/dist/plugin/registry.d.ts.map +1 -1
  270. package/dist/plugin/registry.js +83 -75
  271. package/dist/plugin/registry.js.map +1 -1
  272. package/dist/schema-editor/SchemaEditor.d.ts.map +1 -1
  273. package/dist/schema-editor/SchemaEditor.js.map +1 -1
  274. package/dist/schema-editor/index.d.ts +3 -3
  275. package/dist/schema-editor/index.d.ts.map +1 -1
  276. package/dist/schema-editor/index.js +1 -6
  277. package/dist/schema-editor/index.js.map +1 -1
  278. package/dist/schema-form/SecretRefField.d.ts +18 -3
  279. package/dist/schema-form/SecretRefField.d.ts.map +1 -1
  280. package/dist/schema-form/SecretRefField.js +21 -26
  281. package/dist/schema-form/SecretRefField.js.map +1 -1
  282. package/dist/schema-form/classify.d.ts +1 -113
  283. package/dist/schema-form/classify.d.ts.map +1 -1
  284. package/dist/schema-form/classify.js +174 -246
  285. package/dist/schema-form/classify.js.map +1 -1
  286. package/dist/schema-form/context.d.ts +6 -0
  287. package/dist/schema-form/context.d.ts.map +1 -1
  288. package/dist/schema-form/context.js +0 -6
  289. package/dist/schema-form/context.js.map +1 -1
  290. package/dist/schema-form/default-value.d.ts.map +1 -1
  291. package/dist/schema-form/default-value.js +42 -19
  292. package/dist/schema-form/default-value.js.map +1 -1
  293. package/dist/schema-form/enum-field.d.ts +1 -1
  294. package/dist/schema-form/enum-field.d.ts.map +1 -1
  295. package/dist/schema-form/field-group.d.ts +6 -0
  296. package/dist/schema-form/field-group.d.ts.map +1 -1
  297. package/dist/schema-form/field-group.js +0 -6
  298. package/dist/schema-form/field-group.js.map +1 -1
  299. package/dist/schema-form/field-model.d.ts +121 -0
  300. package/dist/schema-form/field-model.d.ts.map +1 -0
  301. package/dist/schema-form/field-model.js +2 -0
  302. package/dist/schema-form/field-model.js.map +1 -0
  303. package/dist/schema-form/field-node.d.ts.map +1 -1
  304. package/dist/schema-form/field-node.js +25 -14
  305. package/dist/schema-form/field-node.js.map +1 -1
  306. package/dist/schema-form/index.d.ts +8 -8
  307. package/dist/schema-form/index.d.ts.map +1 -1
  308. package/dist/schema-form/index.js +3 -34
  309. package/dist/schema-form/index.js.map +1 -1
  310. package/dist/schema-form/json-field.d.ts +19 -0
  311. package/dist/schema-form/json-field.d.ts.map +1 -1
  312. package/dist/schema-form/json-field.js +0 -19
  313. package/dist/schema-form/json-field.js.map +1 -1
  314. package/dist/schema-form/media-field.d.ts +1 -1
  315. package/dist/schema-form/media-field.d.ts.map +1 -1
  316. package/dist/schema-form/media-field.js +49 -30
  317. package/dist/schema-form/media-field.js.map +1 -1
  318. package/dist/schema-form/record-field.d.ts +12 -0
  319. package/dist/schema-form/record-field.d.ts.map +1 -1
  320. package/dist/schema-form/record-field.js +1 -13
  321. package/dist/schema-form/record-field.js.map +1 -1
  322. package/dist/schema-form/string-annotations.d.ts +20 -0
  323. package/dist/schema-form/string-annotations.d.ts.map +1 -0
  324. package/dist/schema-form/string-annotations.js +105 -0
  325. package/dist/schema-form/string-annotations.js.map +1 -0
  326. package/dist/schema-form/string-field.d.ts +1 -1
  327. package/dist/schema-form/string-field.d.ts.map +1 -1
  328. package/dist/schema-form/string-field.js +1 -1
  329. package/dist/schema-form/string-field.js.map +1 -1
  330. package/dist/schema-form/union-field.d.ts +1 -1
  331. package/dist/schema-form/union-field.d.ts.map +1 -1
  332. package/dist/schema-form/union-field.js.map +1 -1
  333. package/dist/schema-form/union.d.ts +8 -1
  334. package/dist/schema-form/union.d.ts.map +1 -1
  335. package/dist/schema-form/union.js +0 -7
  336. package/dist/schema-form/union.js.map +1 -1
  337. package/dist/schema-form/validate.d.ts.map +1 -1
  338. package/dist/schema-form/validate.js +126 -105
  339. package/dist/schema-form/validate.js.map +1 -1
  340. package/dist/state-binding/AdapterMapping.d.ts.map +1 -1
  341. package/dist/state-binding/AdapterMapping.js +0 -0
  342. package/dist/state-binding/AdapterMapping.js.map +1 -1
  343. package/dist/state-binding/BindingJqField.d.ts.map +1 -1
  344. package/dist/state-binding/BindingJqField.js +2 -2
  345. package/dist/state-binding/BindingJqField.js.map +1 -1
  346. package/dist/state-binding/InputInjectionRow.d.ts.map +1 -1
  347. package/dist/state-binding/InputInjectionRow.js +3 -3
  348. package/dist/state-binding/InputInjectionRow.js.map +1 -1
  349. package/dist/state-binding/StateAttachRow.d.ts.map +1 -1
  350. package/dist/state-binding/StateAttachRow.js +57 -41
  351. package/dist/state-binding/StateAttachRow.js.map +1 -1
  352. package/dist/state-binding/StateBindingSection.d.ts.map +1 -1
  353. package/dist/state-binding/StateBindingSection.js.map +1 -1
  354. package/dist/state-binding/SubjectScopeFields.d.ts.map +1 -1
  355. package/dist/state-binding/SubjectScopeFields.js.map +1 -1
  356. package/dist/state-binding/UpdateRow.d.ts.map +1 -1
  357. package/dist/state-binding/UpdateRow.js +2 -2
  358. package/dist/state-binding/UpdateRow.js.map +1 -1
  359. package/dist/state-binding/adapter-mapping-row.d.ts +17 -0
  360. package/dist/state-binding/adapter-mapping-row.d.ts.map +1 -0
  361. package/dist/state-binding/adapter-mapping-row.js +87 -0
  362. package/dist/state-binding/adapter-mapping-row.js.map +1 -0
  363. package/dist/state-binding/index.d.ts +21 -21
  364. package/dist/state-binding/index.d.ts.map +1 -1
  365. package/dist/state-binding/index.js +9 -15
  366. package/dist/state-binding/index.js.map +1 -1
  367. package/dist/state-binding/templated-text-catalog.d.ts.map +1 -1
  368. package/dist/state-binding/templated-text-catalog.js.map +1 -1
  369. package/dist/state-binding/types.d.ts +2 -2
  370. package/dist/state-binding/types.d.ts.map +1 -1
  371. package/dist/structured-output/StructuredOutput.d.ts.map +1 -1
  372. package/dist/structured-output/StructuredOutput.js +1 -3
  373. package/dist/structured-output/StructuredOutput.js.map +1 -1
  374. package/package.json +2 -2
  375. package/src/components/code-block.tsx +1 -1
  376. package/src/components/confirm-dialog.tsx +1 -1
  377. package/src/components/copy-field.tsx +1 -1
  378. package/src/components/date-range-picker.tsx +1 -1
  379. package/src/components/dialog.tsx +1 -1
  380. package/src/components/dirty-guard.tsx +3 -3
  381. package/src/components/explorer-body.tsx +239 -0
  382. package/src/components/explorer-page-size.ts +39 -0
  383. package/src/components/explorer-tag-filter.tsx +80 -0
  384. package/src/components/explorer-tags.ts +64 -0
  385. package/src/components/explorer-view.tsx +115 -367
  386. package/src/components/extension-combo-builder.tsx +35 -153
  387. package/src/components/extension-combo-parts.tsx +236 -0
  388. package/src/components/field.tsx +1 -1
  389. package/src/components/fleet-report.tsx +98 -55
  390. package/src/components/folder-nav.tsx +2 -2
  391. package/src/components/form-dialog.tsx +2 -2
  392. package/src/components/icons/chrome-marks.tsx +195 -0
  393. package/src/components/icons/icon-frame.tsx +50 -0
  394. package/src/components/icons/index.ts +84 -0
  395. package/src/components/icons/nav-map.ts +55 -0
  396. package/src/components/icons/nav-marks.tsx +205 -0
  397. package/src/components/icons/status-marks.tsx +46 -0
  398. package/src/components/icons/theme-marks.tsx +33 -0
  399. package/src/components/inputs.tsx +1 -1
  400. package/src/components/json-diff.tsx +1 -4
  401. package/src/components/json-tree-context.ts +26 -0
  402. package/src/components/json-tree-model.ts +139 -0
  403. package/src/components/json-tree-nodes.tsx +224 -0
  404. package/src/components/json-tree.tsx +15 -434
  405. package/src/components/json-value-format.ts +64 -0
  406. package/src/components/markdown-blocks.ts +198 -0
  407. package/src/components/markdown-inline.tsx +365 -0
  408. package/src/components/markdown.tsx +6 -472
  409. package/src/components/observer-registry.ts +139 -0
  410. package/src/components/overflow-measure.ts +69 -0
  411. package/src/components/page-fill.tsx +1 -1
  412. package/src/components/prose-regions.ts +153 -0
  413. package/src/components/radio-group.tsx +1 -1
  414. package/src/components/scroll-region.tsx +22 -361
  415. package/src/components/tab-stop-parse.ts +217 -0
  416. package/src/components/table.tsx +1 -1
  417. package/src/components/tags.tsx +2 -2
  418. package/src/components/templated-text-field.tsx +39 -332
  419. package/src/components/templated-text-kwargs-editor.tsx +147 -0
  420. package/src/components/templated-text-kwargs.ts +92 -0
  421. package/src/components/templated-text-source.tsx +226 -0
  422. package/src/components/tool-picker-parts.tsx +184 -0
  423. package/src/components/tool-picker.tsx +22 -114
  424. package/src/components/version-history-panel.tsx +39 -143
  425. package/src/components/version-history-rows.tsx +220 -0
  426. package/src/components/view-toggle.tsx +1 -1
  427. package/src/element-slot.ts +1 -1
  428. package/src/guards.ts +7 -0
  429. package/src/hooks/interactions-connection.ts +227 -0
  430. package/src/hooks/interactions-stream.ts +274 -0
  431. package/src/hooks/useApi.ts +1 -1
  432. package/src/hooks/useAuth.ts +1 -1
  433. package/src/hooks/useCapabilities.ts +3 -3
  434. package/src/hooks/useSse.ts +51 -478
  435. package/src/hooks/useSystemKinds.tsx +2 -2
  436. package/src/hooks/useTheme.ts +1 -1
  437. package/src/hooks/useToolDisplayNames.tsx +2 -2
  438. package/src/host.ts +7 -7
  439. package/src/index.ts +292 -292
  440. package/src/navigation/app-link.tsx +70 -0
  441. package/src/navigation/context.tsx +12 -331
  442. package/src/navigation/entry-state.ts +42 -0
  443. package/src/navigation/guard-registry.ts +65 -0
  444. package/src/navigation/guarded-navigation.ts +147 -0
  445. package/src/navigation/index.ts +14 -14
  446. package/src/navigation/types.ts +8 -11
  447. package/src/navigation/use-back-forward-guard.ts +90 -0
  448. package/src/navigation/use-search-commit.ts +1 -1
  449. package/src/plugin/host-state.ts +1 -1
  450. package/src/plugin/registry.ts +111 -90
  451. package/src/schema-editor/SchemaEditor.tsx +1 -1
  452. package/src/schema-editor/index.ts +3 -3
  453. package/src/schema-form/SecretRefField.tsx +122 -72
  454. package/src/schema-form/classify.ts +245 -396
  455. package/src/schema-form/context.ts +1 -1
  456. package/src/schema-form/default-value.ts +48 -17
  457. package/src/schema-form/enum-field.tsx +1 -1
  458. package/src/schema-form/field-group.tsx +1 -1
  459. package/src/schema-form/field-model.ts +133 -0
  460. package/src/schema-form/field-node.tsx +95 -39
  461. package/src/schema-form/index.ts +10 -10
  462. package/src/schema-form/json-field.tsx +1 -1
  463. package/src/schema-form/media-field.tsx +136 -67
  464. package/src/schema-form/record-field.tsx +2 -2
  465. package/src/schema-form/string-annotations.ts +111 -0
  466. package/src/schema-form/string-field.tsx +2 -2
  467. package/src/schema-form/union-field.tsx +3 -2
  468. package/src/schema-form/union.ts +1 -1
  469. package/src/schema-form/validate.ts +185 -104
  470. package/src/state-binding/AdapterMapping.tsx +0 -0
  471. package/src/state-binding/BindingJqField.tsx +3 -3
  472. package/src/state-binding/InputInjectionRow.tsx +4 -4
  473. package/src/state-binding/StateAttachRow.tsx +229 -154
  474. package/src/state-binding/StateBindingSection.tsx +1 -1
  475. package/src/state-binding/SubjectScopeFields.tsx +1 -1
  476. package/src/state-binding/UpdateRow.tsx +3 -3
  477. package/src/state-binding/adapter-mapping-row.tsx +232 -0
  478. package/src/state-binding/index.ts +43 -43
  479. package/src/state-binding/templated-text-catalog.ts +0 -1
  480. package/src/state-binding/types.ts +2 -2
  481. package/src/structured-output/StructuredOutput.tsx +1 -4
  482. package/dist/components/icons.d.ts +0 -160
  483. package/dist/components/icons.d.ts.map +0 -1
  484. package/dist/components/icons.js +0 -160
  485. package/dist/components/icons.js.map +0 -1
  486. package/src/components/icons.tsx +0 -586
@@ -1,1034 +1,1339 @@
1
+ /**
2
+ * `useApi` — the typed client, provided through an SDK-owned React context.
3
+ *
4
+ * SDK boundary invariant: this context lives INSIDE the shared module set
5
+ * (the SDK is a shared singleton across the plugin boundary), so a plugin calling
6
+ * `useApi()` reaches the SAME client the shell built. It must NEVER wrap a
7
+ * TanStack Query/Router context (those are deliberately NOT shared) — it stays a
8
+ * plain typed client. The `ApiClient` type is imported type-only, so there is no
9
+ * runtime dependency on @tai42/api-client (the SDK imports nothing internal at
10
+ * runtime).
11
+ */
1
12
  import type { ApiClient } from '@tai42/api-client';
2
13
  export declare const ApiProvider: import("react").Provider<{
3
- readonly baseUrl: string;
4
- readonly listTools: (signal?: AbortSignal) => Promise<string[]>;
5
- readonly getToolSchema: (name: string, signal?: AbortSignal) => Promise<{
6
- input: Record<string, unknown>;
7
- output: Record<string, unknown> | null;
8
- description: string | null;
9
- }>;
10
- readonly getAllToolSchemas: (signal?: AbortSignal) => Promise<Record<string, {
11
- input: Record<string, unknown>;
12
- output: Record<string, unknown> | null;
13
- description: string | null;
14
- }>>;
15
- readonly runTool: (args: import("@tai42/api-client").RunToolArgs, signal?: AbortSignal) => Promise<unknown>;
16
- readonly reloadTool: (args: import("@tai42/api-client").ToolAdminArgs) => Promise<{
17
- op: string;
18
- reachable: boolean;
19
- local_only: boolean;
20
- results: {
21
- name: string;
22
- outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
23
- payload: unknown;
24
- error: string | null;
25
- detail: string | null;
26
- }[];
27
- error: string | null;
28
- }>;
29
- readonly removeTool: (args: import("@tai42/api-client").ToolAdminArgs) => Promise<{
30
- op: string;
31
- reachable: boolean;
32
- local_only: boolean;
33
- results: {
14
+ readonly streamInteractions: (signal?: AbortSignal, lastEventId?: string) => Promise<AsyncGenerator<import("@tai42/api-client").SseFrame, any, any>>;
15
+ readonly getHealth: (signal?: AbortSignal) => Promise<string>;
16
+ readonly getSystemKinds: (signal?: AbortSignal) => Promise<{
17
+ kind: string;
18
+ state: "default" | "active" | "off";
19
+ plugin: string | null;
20
+ detail: string;
21
+ }[]>;
22
+ readonly searchMarketplace: (query?: import("@tai42/api-client").MarketplaceSearchQuery, signal?: AbortSignal) => Promise<{
23
+ listings: {
24
+ ref: string;
25
+ namespace: string;
34
26
  name: string;
35
- outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
36
- payload: unknown;
37
- error: string | null;
38
- detail: string | null;
27
+ display_name: string | null;
28
+ icon_url: string | null;
29
+ package: string | null;
30
+ description: string;
31
+ categories: string[];
32
+ tags: string[];
33
+ trust_tier: string;
34
+ pricing: string;
35
+ latest_version: string | null;
36
+ downloads: number;
37
+ updated_at: string;
38
+ kinds: {
39
+ kind: string;
40
+ count: number;
41
+ names: string[];
42
+ }[];
43
+ groups: {
44
+ name: string;
45
+ count: number;
46
+ }[];
47
+ premium?: boolean | null | undefined;
39
48
  }[];
40
- error: string | null;
41
- }>;
42
- readonly submitToolRun: (args: import("@tai42/api-client").SubmitToolRunArgs, signal?: AbortSignal) => Promise<{
43
- run_id: string;
44
- }>;
45
- readonly getToolRun: (runId: string, signal?: AbortSignal) => Promise<{
46
- run_id: string;
47
- tool_name: string;
48
- status: "running" | "succeeded" | "failed" | "lost";
49
- started_at: string;
50
- finished_at?: string | undefined;
51
- result?: unknown;
52
- error?: string | undefined;
49
+ total: number;
50
+ page: number;
51
+ page_size: number;
53
52
  }>;
54
- readonly listToolRuns: (toolName: string, signal?: AbortSignal) => Promise<{
55
- run_id: string;
56
- tool_name: string;
57
- status: "running" | "succeeded" | "failed" | "lost";
58
- started_at: string;
59
- finished_at?: string | undefined;
60
- }[]>;
61
- readonly listToolTags: (signal?: AbortSignal) => Promise<{
62
- name: string;
63
- tags: string[];
64
- badges: string[];
65
- hidden: boolean;
66
- }[]>;
67
- readonly listPresets: (signal?: AbortSignal) => Promise<{
68
- name: string;
69
- base_tool: string;
70
- description: string;
71
- active_version: number;
72
- extensions: (string | {
73
- name: string;
74
- config: Record<string, unknown>;
75
- })[][];
76
- output_schema: Record<string, unknown> | null;
77
- input_schema: Record<string, unknown> | null;
78
- conflicted: boolean;
79
- conflicted_reason: string | null;
80
- uses: string[];
81
- used_by: string[];
82
- }[]>;
83
- readonly createPreset: (body: import("@tai42/api-client").CreatePresetBody) => Promise<{
53
+ readonly getMarketplacePlugin: (namespace: string, name: string, signal?: AbortSignal) => Promise<{
54
+ namespace: string;
84
55
  name: string;
85
- base_tool: string;
56
+ display_name: string | null;
57
+ icon_url: string | null;
58
+ package: string | null;
86
59
  description: string;
87
- active_version: number;
88
- extensions: (string | {
60
+ readme_md: string | null;
61
+ license: string | null;
62
+ homepage_url: string | null;
63
+ repository_url: string | null;
64
+ categories: string[];
65
+ tags: string[];
66
+ trust_tier: string;
67
+ pricing: string;
68
+ downloads: number;
69
+ latest: {
70
+ version: string;
71
+ contract_range: string | null;
72
+ status: string;
73
+ published_at: string | null;
74
+ items: {
75
+ kind: string;
76
+ name: string;
77
+ description: string;
78
+ tags: string[];
79
+ group: string | null;
80
+ routes?: {
81
+ base: string;
82
+ paths: {
83
+ path: string;
84
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
85
+ public: boolean;
86
+ }[];
87
+ } | null | undefined;
88
+ required_env?: {
89
+ name: string;
90
+ secret: boolean;
91
+ }[] | undefined;
92
+ }[];
93
+ } | null;
94
+ versions: {
95
+ version: string;
96
+ contract_range: string | null;
97
+ status: string;
98
+ published_at: string | null;
99
+ }[];
100
+ source?: "pypi" | "github" | "spec" | null | undefined;
101
+ docs_url?: string | null | undefined;
102
+ premium?: boolean | null | undefined;
103
+ }>;
104
+ readonly listMarketplaceCategories: (signal?: AbortSignal) => Promise<string[]>;
105
+ readonly listMarketplaceKinds: (signal?: AbortSignal) => Promise<string[]>;
106
+ readonly listInstalledMarketplacePlugins: (signal?: AbortSignal) => Promise<{
107
+ installed: {
108
+ ref: string;
109
+ version: string;
110
+ source: string;
111
+ delivery: "package" | "descriptor";
112
+ installed_at: string;
113
+ latest: string | null;
114
+ update_available: boolean;
115
+ incompatible_newer: string | null;
116
+ missing_upstream: boolean;
117
+ compat: {
118
+ status: "unknown" | "compatible" | "incompatible";
119
+ reason: string | null;
120
+ };
121
+ items: {
122
+ name: string;
123
+ kind: string;
124
+ }[];
125
+ route_mounts: Record<string, string>;
126
+ }[];
127
+ quarantined: {
89
128
  name: string;
90
- config: Record<string, unknown>;
91
- })[][];
92
- output_schema: Record<string, unknown> | null;
93
- input_schema: Record<string, unknown> | null;
94
- conflicted: boolean;
95
- conflicted_reason: string | null;
96
- uses: string[];
97
- used_by: string[];
129
+ reason: string;
130
+ }[];
98
131
  }>;
99
- readonly getPreset: (name: string, signal?: AbortSignal) => Promise<{
100
- name: string;
101
- base_tool: string;
102
- description: string;
103
- active_version: number;
104
- extensions: (string | {
132
+ readonly previewMarketplaceInstall: (body: import("@tai42/api-client").MarketplaceInstallPreviewBody, signal?: AbortSignal) => Promise<{
133
+ ref: string;
134
+ version: string;
135
+ items: {
136
+ item: string;
137
+ kind: string;
138
+ base: string;
139
+ default_base: string;
140
+ routes: {
141
+ path: string;
142
+ full_path: string;
143
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
144
+ public: boolean;
145
+ }[];
146
+ }[];
147
+ collisions: {
148
+ item: string;
149
+ full_path: string;
150
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
151
+ conflict_owner: string;
152
+ conflict_path: string;
153
+ }[];
154
+ public_routes: {
155
+ item: string;
156
+ full_path: string;
157
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
158
+ }[];
159
+ new_public_routes: {
160
+ item: string;
161
+ full_path: string;
162
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
163
+ }[];
164
+ requires_public_acceptance: boolean;
165
+ required_env: {
105
166
  name: string;
106
- config: Record<string, unknown>;
107
- })[][];
108
- output_schema: Record<string, unknown> | null;
109
- input_schema: Record<string, unknown> | null;
110
- conflicted: boolean;
111
- conflicted_reason: string | null;
112
- uses: string[];
113
- used_by: string[];
114
- fixed_kwargs: Record<string, unknown>;
167
+ secret: boolean;
168
+ }[];
169
+ missing_env: string[];
170
+ delivery: "package" | "descriptor";
115
171
  }>;
116
- readonly listPresetVersions: (name: string, signal?: AbortSignal) => Promise<{
117
- version: number;
118
- body: {
119
- base_tool: string;
120
- description: string;
121
- extensions: (string | Record<string, unknown>)[][];
122
- fixed_kwargs: Record<string, unknown>;
123
- input_schema: Record<string, unknown> | {
124
- content?: string | undefined;
125
- id?: string | undefined;
126
- kwargs?: Record<string, unknown> | undefined;
127
- } | null;
128
- output_schema: Record<string, unknown> | {
129
- content?: string | undefined;
130
- id?: string | undefined;
131
- kwargs?: Record<string, unknown> | undefined;
132
- } | null;
133
- state_binding: {
134
- states: {
135
- input_injections: {
136
- into: string;
137
- jq: {
138
- content?: string | undefined;
139
- id?: string | undefined;
140
- kwargs?: Record<string, unknown> | undefined;
141
- } | null;
142
- template_jq: string | null;
143
- }[];
144
- scope_expr: {
145
- content?: string | undefined;
146
- id?: string | undefined;
147
- kwargs?: Record<string, unknown> | undefined;
148
- } | null;
149
- state: string;
150
- subject_expr: {
151
- content?: string | undefined;
152
- id?: string | undefined;
153
- kwargs?: Record<string, unknown> | undefined;
154
- };
155
- templates: string[];
156
- updates: {
157
- adapter: {
158
- content?: string | undefined;
159
- id?: string | undefined;
160
- kwargs?: Record<string, unknown> | undefined;
161
- } | null;
162
- jq: {
163
- content?: string | undefined;
164
- id?: string | undefined;
165
- kwargs?: Record<string, unknown> | undefined;
166
- } | null;
167
- op_id: {
168
- content?: string | undefined;
169
- id?: string | undefined;
170
- kwargs?: Record<string, unknown> | undefined;
171
- } | null;
172
- template_jq: string | null;
173
- }[];
174
- }[];
175
- } | null;
172
+ readonly installMarketplacePlugin: (body: import("@tai42/api-client").MarketplaceInstallBody) => Promise<{
173
+ ref: string;
174
+ version: string;
175
+ notes: string[];
176
+ advisories: {
177
+ id: number;
178
+ listing: string;
179
+ affected_versions: string;
180
+ severity: string;
181
+ summary: string;
182
+ created_at: string;
183
+ withdrawn_at: string | null;
184
+ }[];
185
+ routes: {
186
+ item: string;
187
+ full_path: string;
188
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
189
+ public: boolean;
190
+ }[];
191
+ }>;
192
+ readonly uninstallMarketplacePlugin: (body: import("@tai42/api-client").MarketplaceUninstallBody) => Promise<{
193
+ ref: string;
194
+ uninstalled: true;
195
+ notes: string[];
196
+ }>;
197
+ readonly updateMarketplacePlugin: (body: import("@tai42/api-client").MarketplaceInstallBody) => Promise<{
198
+ ref: string;
199
+ version: string;
200
+ notes: string[];
201
+ advisories: {
202
+ id: number;
203
+ listing: string;
204
+ affected_versions: string;
205
+ severity: string;
206
+ summary: string;
207
+ created_at: string;
208
+ withdrawn_at: string | null;
209
+ }[];
210
+ routes: {
211
+ item: string;
212
+ full_path: string;
213
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
214
+ public: boolean;
215
+ }[];
216
+ }>;
217
+ readonly upgradeAllMarketplacePlugins: () => Promise<{
218
+ results: {
219
+ ref: string;
220
+ outcome: "failed" | "upgraded" | "up-to-date" | "no-compatible-version";
221
+ detail: string;
222
+ }[];
223
+ }>;
224
+ readonly getMarketplaceAdvisories: (signal?: AbortSignal) => Promise<{
225
+ advisories: {
226
+ id: number;
227
+ listing: string;
228
+ affected_versions: string;
229
+ severity: string;
230
+ summary: string;
231
+ created_at: string;
232
+ withdrawn_at: string | null;
233
+ }[];
234
+ fetched_at: string;
235
+ }>;
236
+ readonly getObservabilityMetrics: (params?: import("@tai42/api-client").MetricsQuery, signal?: AbortSignal) => Promise<{
237
+ summary: {
238
+ totalRuns: number;
239
+ totalCost: number;
240
+ totalTokens: number;
241
+ averageLatencyMs: number;
242
+ avgCostPerRun: number;
243
+ avgTokensPerRun: number;
244
+ timeToFirstTokenMs: number | null;
176
245
  };
246
+ timeSeries: {
247
+ bucket: string | null;
248
+ runs: number;
249
+ cost: number;
250
+ avgLatencyMs: number;
251
+ totalTokens: number;
252
+ }[];
253
+ byModel: {
254
+ model: string;
255
+ calls: number;
256
+ cost: number;
257
+ totalTokens: number;
258
+ avgLatencyMs: number;
259
+ }[];
260
+ granularity: "hour" | "day" | "week";
261
+ }>;
262
+ readonly listRuns: (params?: import("@tai42/api-client").RunsQuery, signal?: AbortSignal) => Promise<{
263
+ items: {
264
+ id: string;
265
+ traceId: string;
266
+ createdAt: string | null;
267
+ tags: string[];
268
+ status: "error" | "success";
269
+ cost: number | null;
270
+ latencyMs: number | null;
271
+ totalTokens: number | null;
272
+ inputPreview: unknown;
273
+ outputPreview: unknown;
274
+ }[];
275
+ page: number;
276
+ nextPage: number | null;
277
+ }>;
278
+ readonly getRunTrace: (traceId: string, signal?: AbortSignal) => Promise<{
279
+ traceId: string;
280
+ timestamp: string | null;
177
281
  tags: string[];
178
- created_at: string;
179
- is_current: boolean;
282
+ totalCost: number | null;
283
+ input: unknown;
284
+ output: unknown;
285
+ metadata: unknown;
286
+ spans: {
287
+ id: string;
288
+ parentId: string | null;
289
+ traceId: string | null;
290
+ name: string | null;
291
+ type: string | null;
292
+ level: string | null;
293
+ statusMessage: string | null;
294
+ start: string | null;
295
+ end: string | null;
296
+ model: string | null;
297
+ usage: unknown;
298
+ metadata: unknown;
299
+ input: unknown;
300
+ output: unknown;
301
+ nodeId: string | null;
302
+ }[];
303
+ }>;
304
+ readonly exportTrace: (traceId: string, signal?: AbortSignal) => Promise<Blob>;
305
+ readonly exportRuns: (params: import("@tai42/api-client").RunsQuery & {
306
+ format: "csv" | "json";
307
+ }, signal?: AbortSignal) => Promise<Blob>;
308
+ readonly listSchedules: (signal?: AbortSignal) => Promise<{
309
+ [x: string]: unknown;
310
+ name: string;
311
+ enabled?: boolean | undefined;
312
+ schedule?: unknown;
313
+ target?: unknown;
314
+ args?: unknown[] | undefined;
315
+ kwargs?: Record<string, unknown> | undefined;
180
316
  }[]>;
181
- readonly getPresetVersion: (name: string, version: number, signal?: AbortSignal) => Promise<{
182
- version: number;
183
- body: {
184
- base_tool: string;
185
- description: string;
186
- extensions: (string | Record<string, unknown>)[][];
187
- fixed_kwargs: Record<string, unknown>;
188
- input_schema: Record<string, unknown> | {
189
- content?: string | undefined;
190
- id?: string | undefined;
191
- kwargs?: Record<string, unknown> | undefined;
192
- } | null;
193
- output_schema: Record<string, unknown> | {
194
- content?: string | undefined;
195
- id?: string | undefined;
196
- kwargs?: Record<string, unknown> | undefined;
197
- } | null;
198
- state_binding: {
199
- states: {
200
- input_injections: {
201
- into: string;
202
- jq: {
203
- content?: string | undefined;
204
- id?: string | undefined;
205
- kwargs?: Record<string, unknown> | undefined;
206
- } | null;
207
- template_jq: string | null;
208
- }[];
209
- scope_expr: {
210
- content?: string | undefined;
211
- id?: string | undefined;
212
- kwargs?: Record<string, unknown> | undefined;
213
- } | null;
214
- state: string;
215
- subject_expr: {
216
- content?: string | undefined;
217
- id?: string | undefined;
218
- kwargs?: Record<string, unknown> | undefined;
219
- };
220
- templates: string[];
221
- updates: {
222
- adapter: {
223
- content?: string | undefined;
224
- id?: string | undefined;
225
- kwargs?: Record<string, unknown> | undefined;
226
- } | null;
227
- jq: {
228
- content?: string | undefined;
229
- id?: string | undefined;
230
- kwargs?: Record<string, unknown> | undefined;
231
- } | null;
232
- op_id: {
233
- content?: string | undefined;
234
- id?: string | undefined;
235
- kwargs?: Record<string, unknown> | undefined;
236
- } | null;
237
- template_jq: string | null;
238
- }[];
317
+ readonly getServerDateTime: (signal?: AbortSignal) => Promise<{
318
+ [x: string]: unknown;
319
+ utc: unknown;
320
+ local?: unknown;
321
+ system?: unknown;
322
+ }>;
323
+ readonly addSchedule: (body: {
324
+ tool_name: string;
325
+ tool_kwargs: Record<string, unknown>;
326
+ schedule_kwargs: Record<string, unknown>;
327
+ state_binding?: import("@tai42/api-client").StateBinding | null;
328
+ }) => Promise<unknown>;
329
+ readonly deleteSchedule: (name: string) => Promise<unknown>;
330
+ readonly listBackupSections: (signal?: AbortSignal) => Promise<{
331
+ name: string;
332
+ secret: boolean;
333
+ }[]>;
334
+ readonly exportBackup: (sections: string[], signal?: AbortSignal) => Promise<Blob>;
335
+ readonly importBackup: (body: {
336
+ document: unknown;
337
+ sections: string[];
338
+ }) => Promise<{
339
+ ok: boolean;
340
+ sections: Record<string, {
341
+ created: number;
342
+ updated: number;
343
+ skipped: number;
344
+ errors: string[];
345
+ new_api_keys?: {
346
+ user_id: string;
347
+ description: string;
348
+ api_key: string;
349
+ }[] | undefined;
350
+ fanout?: {
351
+ mode: "local-only";
352
+ note: string;
353
+ } | {
354
+ op: string;
355
+ reachable: boolean;
356
+ local_only: boolean;
357
+ results: {
358
+ name: string;
359
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
360
+ payload: unknown;
361
+ error: string | null;
362
+ detail: string | null;
239
363
  }[];
240
- } | null;
241
- };
242
- tags: string[];
243
- created_at: string;
244
- is_current: boolean;
364
+ error: string | null;
365
+ mode: "fleet";
366
+ } | {
367
+ op: string;
368
+ reachable: boolean;
369
+ local_only: boolean;
370
+ results: {
371
+ name: string;
372
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
373
+ payload: unknown;
374
+ error: string | null;
375
+ detail: string | null;
376
+ }[];
377
+ error: string | null;
378
+ mode: "unreachable";
379
+ } | undefined;
380
+ }>;
245
381
  }>;
246
- readonly savePresetVersion: (name: string, body: import("@tai42/api-client").SavePresetVersionBody) => Promise<{
382
+ readonly validateCondition: (body: import("@tai42/api-client").ValidateConditionBody) => Promise<{
383
+ ok: boolean;
384
+ result: boolean | null;
385
+ }>;
386
+ readonly listPolicyVersions: (userId: string, signal?: AbortSignal) => Promise<{
247
387
  version: number;
248
388
  body: {
249
- base_tool: string;
250
- description: string;
251
- extensions: (string | Record<string, unknown>)[][];
252
- fixed_kwargs: Record<string, unknown>;
253
- input_schema: Record<string, unknown> | {
254
- content?: string | undefined;
255
- id?: string | undefined;
256
- kwargs?: Record<string, unknown> | undefined;
257
- } | null;
258
- output_schema: Record<string, unknown> | {
389
+ condition: {
259
390
  content?: string | undefined;
260
391
  id?: string | undefined;
261
392
  kwargs?: Record<string, unknown> | undefined;
262
393
  } | null;
263
- state_binding: {
264
- states: {
265
- input_injections: {
266
- into: string;
267
- jq: {
268
- content?: string | undefined;
269
- id?: string | undefined;
270
- kwargs?: Record<string, unknown> | undefined;
271
- } | null;
272
- template_jq: string | null;
273
- }[];
274
- scope_expr: {
275
- content?: string | undefined;
276
- id?: string | undefined;
277
- kwargs?: Record<string, unknown> | undefined;
278
- } | null;
279
- state: string;
280
- subject_expr: {
281
- content?: string | undefined;
282
- id?: string | undefined;
283
- kwargs?: Record<string, unknown> | undefined;
284
- };
285
- templates: string[];
286
- updates: {
287
- adapter: {
288
- content?: string | undefined;
289
- id?: string | undefined;
290
- kwargs?: Record<string, unknown> | undefined;
291
- } | null;
292
- jq: {
293
- content?: string | undefined;
294
- id?: string | undefined;
295
- kwargs?: Record<string, unknown> | undefined;
296
- } | null;
297
- op_id: {
298
- content?: string | undefined;
299
- id?: string | undefined;
300
- kwargs?: Record<string, unknown> | undefined;
301
- } | null;
302
- template_jq: string | null;
303
- }[];
304
- }[];
305
- } | null;
394
+ policy_data: Record<string, unknown>;
395
+ scopes: string[];
306
396
  };
307
397
  tags: string[];
308
398
  created_at: string;
309
399
  is_current: boolean;
310
- }>;
311
- readonly rollbackPreset: (name: string, version: number) => Promise<{
312
- name: string;
400
+ }[]>;
401
+ readonly rollbackPolicy: (userId: string, version: number) => Promise<{
402
+ user_id: string;
313
403
  active_version: number;
314
404
  }>;
315
- readonly deletePreset: (name: string) => Promise<{
316
- name: string;
317
- deleted: true;
405
+ readonly logout: () => Promise<{
406
+ revoked: boolean;
318
407
  }>;
319
- readonly renamePreset: (name: string, newName: string) => Promise<{
320
- name: string;
321
- renamed_from: string;
322
- active_version: number;
408
+ readonly getAuthCapabilities: (signal?: AbortSignal) => Promise<{
409
+ mintable: boolean;
410
+ providers: {
411
+ name: string;
412
+ mintable: boolean;
413
+ }[];
323
414
  }>;
324
- readonly getPresetReferees: (name: string, signal?: AbortSignal) => Promise<{
325
- name: string;
326
- referees: string[];
415
+ readonly getLoginMethods: (options?: {
416
+ signal?: AbortSignal;
417
+ }) => Promise<{
418
+ methods: ({
419
+ shape: "form";
420
+ id: string;
421
+ title: string;
422
+ purpose: "login" | "invite";
423
+ fields: {
424
+ name: string;
425
+ label: string;
426
+ secret: boolean;
427
+ autocomplete?: string | undefined;
428
+ }[];
429
+ submit_path: string;
430
+ } | {
431
+ shape: "button";
432
+ id: string;
433
+ label: string;
434
+ href: string;
435
+ icon?: string | undefined;
436
+ })[];
437
+ needs_setup: boolean;
438
+ setup_login?: {
439
+ kinds: ("invite" | "password")[];
440
+ } | null | undefined;
327
441
  }>;
328
- readonly validatePreset: (body: import("@tai42/api-client").ValidatePresetBody) => Promise<{
329
- valid: boolean;
330
- error: string | null;
442
+ readonly submitLoginForm: (path: string, values: Record<string, string>) => Promise<{
443
+ token: string;
444
+ user_id: string;
331
445
  }>;
332
- readonly setPresetVersionTags: (name: string, version: number, tags: readonly string[]) => Promise<{
333
- name: string;
334
- version: number;
446
+ readonly exchangeSsoCode: (code: string) => Promise<{
447
+ token: string;
448
+ user_id: string;
449
+ }>;
450
+ readonly claimLogin: (body: {
451
+ token: string;
452
+ }) => Promise<{
453
+ token: string;
454
+ user_id: string;
455
+ }>;
456
+ readonly submitSetup: (body: import("@tai42/api-client").SetupBody) => Promise<{
457
+ owner_user_id: string;
458
+ key_user_id: string;
459
+ api_key: string;
460
+ key_fingerprint: string;
461
+ login_attached: boolean;
462
+ invite_token?: string | null | undefined;
463
+ login_path?: string | null | undefined;
464
+ }>;
465
+ readonly getMe: (signal?: AbortSignal) => Promise<{
466
+ user_id: string;
467
+ owner_user_id: string | null;
468
+ admin: boolean;
469
+ scopes: string[];
470
+ routes: {
471
+ path: string;
472
+ methods: string[];
473
+ }[];
474
+ route_patterns: {
475
+ pattern: string;
476
+ scope_id: string;
477
+ }[];
478
+ sub_mcp: {
479
+ tools: string[];
480
+ transport: string;
481
+ slug: string;
482
+ }[];
483
+ tools: string[];
484
+ agents: string[];
485
+ mintable: boolean;
486
+ principal?: {
487
+ user_id: string;
488
+ kind: "human" | "service";
489
+ display_name: string;
490
+ } | null | undefined;
491
+ }>;
492
+ readonly listScopes: (signal?: AbortSignal) => Promise<Record<string, string>>;
493
+ readonly addUrlToScope: (body: import("@tai42/api-client").AddUrlToScopeBody) => Promise<{
494
+ scope_id: string;
495
+ url: string;
496
+ }>;
497
+ readonly removeUrlFromScope: (body: {
498
+ url: string;
499
+ }) => Promise<{
500
+ url: string;
501
+ }>;
502
+ readonly removeScope: (scopeId: string) => Promise<{
503
+ scope_id: string;
504
+ deleted_keys: number;
505
+ }>;
506
+ readonly listAuthRoutes: (signal?: AbortSignal) => Promise<{
507
+ path: string;
508
+ methods: string[];
509
+ mapped: string | null;
335
510
  tags: string[];
511
+ summary: string;
512
+ action: "read" | "write" | "fenced" | "secret" | null;
513
+ }[]>;
514
+ readonly listPublicRoutes: (signal?: AbortSignal) => Promise<string[]>;
515
+ readonly pinRoutePublic: (body: import("@tai42/api-client").PinRoutePublicBody) => Promise<{
516
+ url: string;
336
517
  }>;
337
- readonly listStates: (signal?: AbortSignal) => Promise<{
338
- default_subject_kind: string;
518
+ readonly unpinPublicRoute: (url: string) => Promise<{
519
+ url: string;
520
+ }>;
521
+ readonly listRoles: (signal?: AbortSignal) => Promise<{
522
+ allow_all: boolean;
523
+ base_tier: string | null;
524
+ condition: {
525
+ content?: string | undefined;
526
+ id?: string | undefined;
527
+ kwargs?: Record<string, unknown> | undefined;
528
+ } | null;
339
529
  description: string;
340
- effective_schema: Record<string, unknown> | null;
530
+ grants: Record<string, "none" | "read" | "write">;
341
531
  name: string;
342
- regimes: Record<string, unknown>[] | null;
343
- retention_days: number | null;
344
- subject_kinds: string[];
345
- updated_at: string | null;
346
- schema?: Record<string, unknown> | {
532
+ scopes: string[];
533
+ }[]>;
534
+ readonly createRole: (body: import("@tai42/api-client").RoleCreateBody) => Promise<{
535
+ allow_all: boolean;
536
+ base_tier: string | null;
537
+ condition: {
347
538
  content?: string | undefined;
348
539
  id?: string | undefined;
349
540
  kwargs?: Record<string, unknown> | undefined;
350
- } | undefined;
351
- }[]>;
352
- readonly getState: (name: string, signal?: AbortSignal) => Promise<{
353
- default_subject_kind: string;
541
+ } | null;
354
542
  description: string;
355
- effective_schema: Record<string, unknown> | null;
543
+ grants: Record<string, "none" | "read" | "write">;
356
544
  name: string;
357
- regimes: Record<string, unknown>[] | null;
358
- retention_days: number | null;
359
- subject_kinds: string[];
360
- updated_at: string | null;
361
- attachments: {
362
- template: string;
363
- path: string[];
364
- parameters: Record<string, unknown>;
365
- declarations: Record<string, unknown>;
366
- }[];
367
- schema?: Record<string, unknown> | {
545
+ scopes: string[];
546
+ }>;
547
+ readonly updateRole: (name: string, body: import("@tai42/api-client").RoleUpdateBody) => Promise<{
548
+ allow_all: boolean;
549
+ base_tier: string | null;
550
+ condition: {
368
551
  content?: string | undefined;
369
552
  id?: string | undefined;
370
553
  kwargs?: Record<string, unknown> | undefined;
371
- } | undefined;
372
- }>;
373
- readonly putState: (name: string, body: import("@tai42/api-client").StateDeclarationBody) => Promise<{
374
- default_subject_kind: string;
554
+ } | null;
375
555
  description: string;
376
- effective_schema: Record<string, unknown> | null;
556
+ grants: Record<string, "none" | "read" | "write">;
377
557
  name: string;
378
- regimes: Record<string, unknown>[] | null;
379
- retention_days: number | null;
380
- subject_kinds: string[];
381
- updated_at: string | null;
382
- attachments: {
383
- template: string;
384
- path: string[];
385
- parameters: Record<string, unknown>;
386
- declarations: Record<string, unknown>;
558
+ scopes: string[];
559
+ }>;
560
+ readonly deleteRole: (name: string) => Promise<{
561
+ name: string;
562
+ deleted: boolean;
563
+ }>;
564
+ readonly listRoleVersions: (name: string, signal?: AbortSignal) => Promise<{
565
+ versions: {
566
+ version: number;
567
+ body: {
568
+ allow_all: boolean;
569
+ base_tier: string | null;
570
+ condition: {
571
+ content?: string | undefined;
572
+ id?: string | undefined;
573
+ kwargs?: Record<string, unknown> | undefined;
574
+ } | null;
575
+ description: string;
576
+ grants: Record<string, "none" | "read" | "write">;
577
+ name: string;
578
+ scopes: string[];
579
+ };
580
+ tags: string[];
581
+ created_at: string;
582
+ is_current: boolean;
387
583
  }[];
388
- schema?: Record<string, unknown> | {
584
+ audit: {
585
+ version: number;
586
+ body: {
587
+ action: string;
588
+ actor: string | null;
589
+ before: unknown;
590
+ after: unknown;
591
+ };
592
+ tags: string[];
593
+ created_at: string;
594
+ is_current: boolean;
595
+ }[];
596
+ }>;
597
+ readonly rollbackRole: (name: string, version: number) => Promise<{
598
+ allow_all: boolean;
599
+ base_tier: string | null;
600
+ condition: {
389
601
  content?: string | undefined;
390
602
  id?: string | undefined;
391
603
  kwargs?: Record<string, unknown> | undefined;
392
- } | undefined;
393
- }>;
394
- readonly deleteState: (name: string) => Promise<{
604
+ } | null;
605
+ description: string;
606
+ grants: Record<string, "none" | "read" | "write">;
395
607
  name: string;
396
- deleted: true;
397
- }>;
398
- readonly getStateStats: (name: string, signal?: AbortSignal) => Promise<{
399
- records: number;
400
- per_field: Record<string, number>;
401
- per_kind: Record<string, number>;
402
- consumers: number;
608
+ scopes: string[];
403
609
  }>;
404
- readonly listStateAttachments: (name: string, signal?: AbortSignal) => Promise<{
405
- template: string;
406
- path: string[];
407
- parameters: Record<string, unknown>;
408
- declarations: Record<string, unknown>;
610
+ readonly listTokensPayload: (signal?: AbortSignal) => Promise<{
611
+ user_id: string;
612
+ description: string;
613
+ scopes: string[];
614
+ policy_data: unknown;
615
+ condition?: {
616
+ content?: string | undefined;
617
+ id?: string | undefined;
618
+ kwargs?: Record<string, unknown> | undefined;
619
+ } | null | undefined;
620
+ principal?: {
621
+ user_id: string;
622
+ kind: "human" | "service";
623
+ display_name: string;
624
+ } | null | undefined;
625
+ orphaned?: boolean | undefined;
409
626
  }[]>;
410
- readonly getStateAttachment: (name: string, template: string, signal?: AbortSignal) => Promise<{
411
- template: string;
412
- path: string[];
413
- parameters: Record<string, unknown>;
414
- declarations: Record<string, unknown>;
415
- }>;
416
- readonly attachStateTemplate: (name: string, template: string, body: import("@tai42/api-client").StateAttachmentBody) => Promise<{
417
- attached: true;
418
- state: string;
419
- template: string;
627
+ readonly createApiKey: (body: import("@tai42/api-client").ApiKeyBody) => Promise<string>;
628
+ readonly editApiKey: (userId: string, body: Omit<import("@tai42/api-client").ApiKeyBody, "user_id">) => Promise<{
629
+ user_id: string;
630
+ updated: boolean;
420
631
  }>;
421
- readonly patchStateAttachment: (name: string, template: string, body: import("@tai42/api-client").StateAttachmentBody) => Promise<{
422
- updated: true;
423
- state: string;
424
- template: string;
632
+ readonly revokeApiKey: (userId: string) => Promise<{
633
+ user_id: string;
634
+ revoked: boolean;
425
635
  }>;
426
- readonly detachStateTemplate: (name: string, template: string) => Promise<{
427
- detached: true;
428
- state: string;
429
- template: string;
636
+ readonly createClaimLink: (body: import("@tai42/api-client").ClaimLinkBody) => Promise<{
637
+ claim_path: string;
638
+ token: string;
639
+ expires_at: string;
430
640
  }>;
431
- readonly listStateSubjects: (name: string, params: {
432
- kind?: string;
433
- } & import("@tai42/api-client").StatePageQuery, signal?: AbortSignal) => Promise<{
434
- subjects: {
435
- subject: {
436
- target_kind: "tool" | "agent";
437
- target_name: string;
438
- kind: string;
439
- key: string;
440
- };
441
- updated_at: number;
442
- }[];
443
- next_cursor: string | null;
641
+ readonly listPrincipals: (signal?: AbortSignal) => Promise<{
642
+ user_id: string;
643
+ kind: "human" | "service";
644
+ display_name: string;
645
+ created_by: string | null;
646
+ disabled: boolean;
647
+ created_at: string;
648
+ }[]>;
649
+ readonly createPrincipal: (body: {
650
+ user_id?: string;
651
+ kind: "human" | "service";
652
+ display_name: string;
653
+ role: string;
654
+ }) => Promise<{
655
+ user_id: string;
656
+ kind: "human" | "service";
657
+ display_name: string;
658
+ created_by: string | null;
659
+ disabled: boolean;
660
+ created_at: string;
444
661
  }>;
445
- readonly searchStateRecords: (name: string, body: {
446
- filters: Record<string, unknown>;
447
- } & import("@tai42/api-client").StatePageQuery, signal?: AbortSignal) => Promise<{
448
- matches: {
449
- subject: {
450
- target_kind: "tool" | "agent";
451
- target_name: string;
452
- kind: string;
453
- key: string;
454
- };
455
- updated_at: number;
456
- }[];
457
- next_cursor: string | null;
662
+ readonly updatePrincipal: (userId: string, body: {
663
+ display_name?: string;
664
+ disabled?: boolean;
665
+ }) => Promise<{
666
+ user_id: string;
667
+ kind: "human" | "service";
668
+ display_name: string;
669
+ created_by: string | null;
670
+ disabled: boolean;
671
+ created_at: string;
458
672
  }>;
459
- readonly getStateRecord: (name: string, subject: import("@tai42/api-client").StateSubjectRef, signal?: AbortSignal) => Promise<{
460
- state: string;
461
- subject: {
462
- target_kind: "tool" | "agent";
463
- target_name: string;
464
- kind: string;
465
- key: string;
466
- };
467
- data: Record<string, unknown>;
468
- seq: number;
469
- canonical_subject: {
470
- target_kind: "tool" | "agent";
471
- target_name: string;
472
- kind: string;
473
- key: string;
474
- };
475
- folded_from: {
476
- target_kind: "tool" | "agent";
477
- target_name: string;
478
- kind: string;
479
- key: string;
480
- }[];
481
- } | null>;
482
- readonly putStateRecord: (name: string, subject: import("@tai42/api-client").StateSubjectRef, data: Record<string, unknown>) => Promise<{
483
- state: string;
484
- subject: {
485
- target_kind: "tool" | "agent";
486
- target_name: string;
487
- kind: string;
488
- key: string;
489
- };
490
- data: Record<string, unknown>;
491
- seq: number;
492
- canonical_subject: {
493
- target_kind: "tool" | "agent";
494
- target_name: string;
495
- kind: string;
496
- key: string;
497
- };
498
- folded_from: {
499
- target_kind: "tool" | "agent";
500
- target_name: string;
501
- kind: string;
502
- key: string;
503
- }[];
673
+ readonly deletePrincipal: (userId: string) => Promise<{
674
+ user_id: string;
675
+ deleted: boolean;
504
676
  }>;
505
- readonly patchStateRecord: (name: string, subject: import("@tai42/api-client").StateSubjectRef, data: Record<string, unknown>) => Promise<{
506
- state: string;
507
- subject: {
508
- target_kind: "tool" | "agent";
509
- target_name: string;
510
- kind: string;
511
- key: string;
512
- };
513
- data: Record<string, unknown>;
514
- seq: number;
515
- canonical_subject: {
516
- target_kind: "tool" | "agent";
517
- target_name: string;
518
- kind: string;
519
- key: string;
520
- };
521
- folded_from: {
522
- target_kind: "tool" | "agent";
523
- target_name: string;
524
- kind: string;
525
- key: string;
677
+ readonly getSettingsSchema: (signal?: AbortSignal) => Promise<{
678
+ groups: {
679
+ name: string;
680
+ module: string;
681
+ qualname: string;
682
+ fields: {
683
+ name: string;
684
+ env_var: string;
685
+ type: string;
686
+ default: unknown;
687
+ required: boolean;
688
+ secret: boolean;
689
+ description: string | null;
690
+ nested_group: string | null;
691
+ default_namespace_var: string | null;
692
+ value: unknown;
693
+ }[];
526
694
  }[];
527
695
  }>;
528
- readonly applyStateRecord: (name: string, subject: import("@tai42/api-client").StateSubjectRef, ops: readonly Record<string, unknown>[]) => Promise<{
529
- applied: boolean;
530
- data: Record<string, unknown> | null;
531
- seq: number | null;
532
- skipped: Record<string, unknown>[];
533
- }>;
534
- readonly evalTemplateJq: (name: string, subject: import("@tai42/api-client").StateSubjectRef, jqName: string, params?: Record<string, unknown>, signal?: AbortSignal) => Promise<{
535
- name: string;
536
- purpose: "input";
537
- value: unknown;
538
- }>;
539
- readonly applyTemplateJq: (name: string, subject: import("@tai42/api-client").StateSubjectRef, jqName: string, body?: {
540
- input?: unknown;
541
- op_id?: string;
542
- }) => Promise<{
696
+ readonly getMcpConfigSchema: (signal?: AbortSignal) => Promise<Record<string, unknown>>;
697
+ readonly createTriggerLink: (body: import("@tai42/api-client").TriggerLinkCreateBody) => Promise<{
543
698
  name: string;
544
- applied: boolean;
545
- data: Record<string, unknown> | null;
546
- seq: number | null;
547
- skipped: Record<string, unknown>[];
548
- }>;
549
- readonly deleteStateRecord: (name: string, subject: import("@tai42/api-client").StateSubjectRef) => Promise<{
550
- erased: true;
551
- }>;
552
- readonly foldStateRecord: (name: string, subject: import("@tai42/api-client").StateSubjectRef, into: import("@tai42/api-client").StateSubjectRef, mode: "switch" | "merge") => Promise<{
553
- mode: "switch" | "merge";
554
- from: {
555
- kind: string;
556
- key: string;
557
- };
558
- into: {
559
- kind: string;
560
- key: string;
561
- };
562
- already: boolean;
563
- flattened: number;
699
+ trigger_path: string;
700
+ token: string;
701
+ topic: string;
702
+ expires_at: string | null;
564
703
  }>;
565
- readonly listStateWrites: (name: string, subject: import("@tai42/api-client").StateSubjectRef, params?: import("@tai42/api-client").StatePageQuery, signal?: AbortSignal) => Promise<{
704
+ readonly listTriggerLinks: (signal?: AbortSignal) => Promise<{
566
705
  items: {
567
- seq: number;
568
- at: string;
569
- origin: {
570
- consumer: string | null;
571
- meta: Record<string, unknown> | null;
572
- run_id: string | null;
573
- op_id: string | null;
574
- door: string;
575
- actor: string | null;
576
- turn_id: string | null;
577
- inbound_id: string | null;
578
- };
579
- paths: (string | number)[][];
706
+ name: string;
707
+ topic: string;
708
+ execution_key: string;
709
+ trigger_auth: "token" | "public" | "verifier" | "token+api_key" | "out-of-service";
710
+ tool_kwargs: Record<string, unknown> | null;
711
+ created_by: string | null;
712
+ created_at: string;
713
+ expires_at: string | null;
714
+ token_hash_prefix: string;
580
715
  }[];
581
- next_cursor: string | null;
716
+ total: number;
582
717
  }>;
583
- readonly stateConsumers: (name: string, signal?: AbortSignal) => Promise<{
584
- kind: string;
585
- name: string | null;
586
- detail: string | null;
587
- link: {
588
- token: string | null;
589
- plugin_path: string | null;
590
- search: Record<string, unknown> | null;
591
- } | null;
592
- unavailable: string | null;
593
- }[]>;
594
- readonly listStateTemplates: (signal?: AbortSignal) => Promise<{
595
- declarations: {
596
- check: {
597
- content?: string | undefined;
598
- id?: string | undefined;
599
- kwargs?: Record<string, unknown> | undefined;
600
- } | null;
601
- schema: Record<string, unknown>;
602
- } | null;
603
- description: string;
604
- kind: "state-template";
718
+ readonly deleteTriggerLink: (name: string) => Promise<{
719
+ removed: boolean;
605
720
  name: string;
606
- parameters: Record<string, unknown>;
607
- reconcile: {
608
- close: {
609
- content?: string | undefined;
610
- id?: string | undefined;
611
- kwargs?: Record<string, unknown> | undefined;
612
- };
613
- orphans: {
721
+ }>;
722
+ readonly listHooks: (topic?: string, signal?: AbortSignal) => Promise<{
723
+ items: {
724
+ condition: {
614
725
  content?: string | undefined;
615
726
  id?: string | undefined;
616
727
  kwargs?: Record<string, unknown> | undefined;
617
- };
618
- resolutions: {
728
+ } | null;
729
+ execution_key: string;
730
+ execution_key_fingerprint: string;
731
+ expr: {
619
732
  content?: string | undefined;
620
733
  id?: string | undefined;
621
734
  kwargs?: Record<string, unknown> | undefined;
622
- };
623
- } | null;
624
- regimes: Record<string, unknown>[];
625
- template_jq: Record<string, {
735
+ } | null;
736
+ name: string;
737
+ state_binding: {
738
+ states: {
739
+ input_injections: {
740
+ into: string;
741
+ jq: {
742
+ content?: string | undefined;
743
+ id?: string | undefined;
744
+ kwargs?: Record<string, unknown> | undefined;
745
+ } | null;
746
+ template_jq: string | null;
747
+ }[];
748
+ scope_expr: {
749
+ content?: string | undefined;
750
+ id?: string | undefined;
751
+ kwargs?: Record<string, unknown> | undefined;
752
+ } | null;
753
+ state: string;
754
+ subject_expr: {
755
+ content?: string | undefined;
756
+ id?: string | undefined;
757
+ kwargs?: Record<string, unknown> | undefined;
758
+ };
759
+ templates: string[];
760
+ updates: {
761
+ adapter: {
762
+ content?: string | undefined;
763
+ id?: string | undefined;
764
+ kwargs?: Record<string, unknown> | undefined;
765
+ } | null;
766
+ jq: {
767
+ content?: string | undefined;
768
+ id?: string | undefined;
769
+ kwargs?: Record<string, unknown> | undefined;
770
+ } | null;
771
+ op_id: {
772
+ content?: string | undefined;
773
+ id?: string | undefined;
774
+ kwargs?: Record<string, unknown> | undefined;
775
+ } | null;
776
+ template_jq: string | null;
777
+ }[];
778
+ }[];
779
+ } | null;
780
+ subject: {
781
+ key_expr: {
782
+ content?: string | undefined;
783
+ id?: string | undefined;
784
+ kwargs?: Record<string, unknown> | undefined;
785
+ };
786
+ kind: string;
787
+ target_kind: "tool" | "agent";
788
+ target_name: string;
789
+ } | null;
790
+ tool: string;
791
+ tool_kwargs: Record<string, unknown>;
792
+ topic: string;
793
+ }[];
794
+ total: number;
795
+ topic_verifiers: Record<string, {
796
+ verifier: string;
797
+ config: Record<string, unknown>;
798
+ }>;
799
+ trigger_auth: Record<string, "token" | "public" | "verifier" | "token+api_key" | "out-of-service">;
800
+ }>;
801
+ readonly registerHook: (params: import("@tai42/api-client").HookRegister) => Promise<{
802
+ registered: boolean;
803
+ name: string;
804
+ }>;
805
+ readonly unregisterHook: (name: string) => Promise<{
806
+ removed: boolean;
807
+ name: string;
808
+ }>;
809
+ readonly listHookVerifiers: (signal?: AbortSignal) => Promise<string[]>;
810
+ readonly setTopicVerifier: (topic: string, body: import("@tai42/api-client").TopicVerifierBody) => Promise<{
811
+ topic: string;
812
+ verifier: string;
813
+ }>;
814
+ readonly deleteTopicVerifier: (topic: string) => Promise<{
815
+ removed: boolean;
816
+ topic: string;
817
+ }>;
818
+ readonly listAgents: (signal?: AbortSignal) => Promise<{
819
+ items: {
820
+ name: string;
626
821
  description: string;
627
- jq: {
628
- content?: string | undefined;
629
- id?: string | undefined;
630
- kwargs?: Record<string, unknown> | undefined;
631
- };
632
- params: string[];
633
- purpose: "input" | "update";
634
- reads: string[][];
635
- writes: string[][];
636
- }> | null;
637
- trace: Record<string, unknown>;
638
- attached_to: number;
639
- shipped_default: boolean;
640
- schema?: Record<string, unknown> | {
641
- content?: string | undefined;
642
- id?: string | undefined;
643
- kwargs?: Record<string, unknown> | undefined;
644
- } | undefined;
645
- }[]>;
646
- readonly getStateTemplate: (name: string, signal?: AbortSignal) => Promise<{
647
- declarations: {
648
- check: {
822
+ tool_name: string;
823
+ input_schema: Record<string, unknown>;
824
+ spec_runnable: boolean;
825
+ }[];
826
+ total: number;
827
+ }>;
828
+ readonly listSpecRunnableAgents: (signal?: AbortSignal) => Promise<{
829
+ items: {
830
+ name: string;
831
+ description: string;
832
+ tool_name: string;
833
+ input_schema: Record<string, unknown>;
834
+ spec_runnable: boolean;
835
+ }[];
836
+ total: number;
837
+ }>;
838
+ readonly streamAgentRun: (name: string, input: unknown, signal?: AbortSignal) => Promise<AsyncGenerator<import("@tai42/api-client").ParsedAgentEvent, any, any>>;
839
+ readonly streamAuthoredAgentRun: (name: string, input: unknown, signal?: AbortSignal) => Promise<AsyncGenerator<import("@tai42/api-client").ParsedAgentEvent, any, any>>;
840
+ readonly listNotifications: (signal?: AbortSignal) => Promise<{
841
+ notifications: {
842
+ id: string;
843
+ message: string;
844
+ recipient: string | null;
845
+ created_at: string;
846
+ audience?: string | null | undefined;
847
+ media?: unknown[] | null | undefined;
848
+ template?: {
849
+ body_parameters: string[];
850
+ buttons: unknown[];
851
+ header_media: {
852
+ caption: string | null;
853
+ filename: string | null;
854
+ kind: "image" | "link" | "document" | "video" | "audio";
855
+ url: string;
856
+ } | null;
857
+ language: string;
858
+ name: string;
859
+ } | null | undefined;
860
+ options?: string[] | null | undefined;
861
+ }[];
862
+ }>;
863
+ readonly getWebEntryGate: (identity: string, signal?: AbortSignal) => Promise<{
864
+ enabled: boolean;
865
+ codes: {
866
+ code_id: string;
867
+ label: string | null;
868
+ created_at: string;
869
+ expires_at: string | null;
870
+ }[];
871
+ }>;
872
+ readonly setWebEntryGate: (identity: string, enabled: boolean) => Promise<{
873
+ enabled: boolean;
874
+ }>;
875
+ readonly mintWebEntryCode: (identity: string, body: import("@tai42/api-client").WebEntryCodeMintBody) => Promise<{
876
+ code: string;
877
+ code_id: string;
878
+ expires_at: string | null;
879
+ }>;
880
+ readonly revokeWebEntryCode: (identity: string, codeId: string) => Promise<{
881
+ status: "revoked";
882
+ }>;
883
+ readonly listConversationRoutes: (signal?: AbortSignal) => Promise<{
884
+ items: {
885
+ callback_secret: string | null;
886
+ callback_url: string | null;
887
+ channel: string | null;
888
+ door: "channel" | "api";
889
+ error_reply_text: string | null;
890
+ execution_key: string;
891
+ execution_key_fingerprint: string;
892
+ initial_mode: "agent" | "manual";
893
+ locale: string | null;
894
+ our_identity: string | null;
895
+ payload_expr: {
649
896
  content?: string | undefined;
650
897
  id?: string | undefined;
651
898
  kwargs?: Record<string, unknown> | undefined;
652
899
  } | null;
653
- schema: Record<string, unknown>;
654
- } | null;
655
- description: string;
656
- kind: "state-template";
657
- name: string;
658
- parameters: Record<string, unknown>;
659
- reconcile: {
660
- close: {
661
- content?: string | undefined;
662
- id?: string | undefined;
663
- kwargs?: Record<string, unknown> | undefined;
664
- };
665
- orphans: {
666
- content?: string | undefined;
667
- id?: string | undefined;
668
- kwargs?: Record<string, unknown> | undefined;
669
- };
670
- resolutions: {
671
- content?: string | undefined;
672
- id?: string | undefined;
673
- kwargs?: Record<string, unknown> | undefined;
674
- };
675
- } | null;
676
- regimes: Record<string, unknown>[];
677
- template_jq: Record<string, {
678
- description: string;
679
- jq: {
900
+ reply_expr: {
680
901
  content?: string | undefined;
681
902
  id?: string | undefined;
682
903
  kwargs?: Record<string, unknown> | undefined;
683
- };
684
- params: string[];
685
- purpose: "input" | "update";
686
- reads: string[][];
687
- writes: string[][];
688
- }> | null;
689
- trace: Record<string, unknown>;
690
- schema?: Record<string, unknown> | {
691
- content?: string | undefined;
692
- id?: string | undefined;
693
- kwargs?: Record<string, unknown> | undefined;
694
- } | undefined;
904
+ } | null;
905
+ route_name: string;
906
+ target_kind: "tool" | "agent";
907
+ target_name: string;
908
+ turns_per_hour_override: number | null;
909
+ }[];
910
+ total: number;
695
911
  }>;
696
- readonly putStateTemplate: (name: string, body: import("@tai42/api-client").StateTemplateBody, replace?: boolean) => Promise<{
697
- declarations: {
698
- check: {
912
+ readonly createOrReplaceConversationRoute: (route: import("@tai42/api-client").ConversationRouteCreate) => Promise<{
913
+ created: boolean;
914
+ route_name: string;
915
+ route: {
916
+ callback_secret: string | null;
917
+ callback_url: string | null;
918
+ channel: string | null;
919
+ door: "channel" | "api";
920
+ error_reply_text: string | null;
921
+ execution_key: string;
922
+ execution_key_fingerprint: string;
923
+ initial_mode: "agent" | "manual";
924
+ locale: string | null;
925
+ our_identity: string | null;
926
+ payload_expr: {
699
927
  content?: string | undefined;
700
928
  id?: string | undefined;
701
929
  kwargs?: Record<string, unknown> | undefined;
702
930
  } | null;
703
- schema: Record<string, unknown>;
704
- } | null;
705
- description: string;
706
- kind: "state-template";
707
- name: string;
708
- parameters: Record<string, unknown>;
709
- reconcile: {
710
- close: {
711
- content?: string | undefined;
712
- id?: string | undefined;
713
- kwargs?: Record<string, unknown> | undefined;
714
- };
715
- orphans: {
716
- content?: string | undefined;
717
- id?: string | undefined;
718
- kwargs?: Record<string, unknown> | undefined;
719
- };
720
- resolutions: {
721
- content?: string | undefined;
722
- id?: string | undefined;
723
- kwargs?: Record<string, unknown> | undefined;
724
- };
725
- } | null;
726
- regimes: Record<string, unknown>[];
727
- template_jq: Record<string, {
728
- description: string;
729
- jq: {
931
+ reply_expr: {
730
932
  content?: string | undefined;
731
933
  id?: string | undefined;
732
934
  kwargs?: Record<string, unknown> | undefined;
733
- };
734
- params: string[];
735
- purpose: "input" | "update";
736
- reads: string[][];
737
- writes: string[][];
738
- }> | null;
739
- trace: Record<string, unknown>;
740
- schema?: Record<string, unknown> | {
741
- content?: string | undefined;
742
- id?: string | undefined;
743
- kwargs?: Record<string, unknown> | undefined;
744
- } | undefined;
745
- }>;
746
- readonly deleteStateTemplate: (name: string) => Promise<{
747
- name: string;
748
- deleted: true;
935
+ } | null;
936
+ route_name: string;
937
+ target_kind: "tool" | "agent";
938
+ target_name: string;
939
+ turns_per_hour_override: number | null;
940
+ };
941
+ callback_secret: string | null;
749
942
  }>;
750
- readonly pruneStateRetention: () => Promise<{
751
- pruned: Record<string, number>;
943
+ readonly deleteConversationRoute: (routeName: string) => Promise<{
944
+ removed: boolean;
945
+ route_name: string;
752
946
  }>;
753
- readonly listToolMeta: (signal?: AbortSignal) => Promise<{
754
- folders: {
755
- id: string;
756
- name: string;
757
- parent_id: string | null;
758
- }[];
759
- meta: {
760
- tool_name: string;
761
- display_name: string | null;
762
- folder_id: string | null;
763
- tags: string[];
764
- badges: string[];
765
- hidden: boolean | null;
947
+ readonly listConversationThreads: (routeName: string, page: number, pageSize: number, filters?: import("@tai42/api-client").ConversationThreadFilters, signal?: AbortSignal) => Promise<{
948
+ total: number;
949
+ page: number;
950
+ page_size: number;
951
+ next_page: number | null;
952
+ truncated: boolean;
953
+ items: {
954
+ thread_id: string;
955
+ client_address: string;
956
+ last_activity_at: number;
957
+ message_count: number;
958
+ last_delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
766
959
  }[];
767
960
  }>;
768
- readonly upsertToolMeta: (toolName: string, patch: import("@tai42/api-client").ToolMetaPatch) => Promise<{
769
- tool_name: string;
770
- display_name: string | null;
771
- folder_id: string | null;
772
- tags: string[];
773
- badges: string[];
774
- hidden: boolean | null;
775
- }>;
776
- readonly deleteToolMeta: (toolName: string) => Promise<{
777
- tool_name: string;
778
- deleted: true;
779
- }>;
780
- readonly createFolder: (name: string, parentId?: string | null) => Promise<{
781
- id: string;
782
- name: string;
783
- parent_id: string | null;
784
- }>;
785
- readonly renameFolder: (folderId: string, name: string) => Promise<{
786
- id: string;
787
- name: string;
788
- parent_id: string | null;
789
- }>;
790
- readonly moveFolder: (folderId: string, parentId: string | null) => Promise<{
791
- id: string;
792
- name: string;
793
- parent_id: string | null;
794
- }>;
795
- readonly deleteFolder: (folderId: string) => Promise<{
796
- folder_id: string;
797
- deleted: true;
798
- }>;
799
- readonly getStorageInfo: (signal?: AbortSignal) => Promise<{
800
- present: boolean;
801
- provider: string | null;
802
- module: string | null;
803
- }>;
804
- readonly listStorageResources: (signal?: AbortSignal) => Promise<{
805
- resources: string[];
806
- }>;
807
- readonly statStorageResource: (id: string, signal?: AbortSignal) => Promise<{
808
- id: string;
809
- content_type: string | null;
961
+ readonly readConversationTranscript: (query: import("@tai42/api-client").ConversationTranscriptQuery, signal?: AbortSignal) => Promise<{
962
+ order: "asc" | "desc";
963
+ total: number;
964
+ page: number;
965
+ page_size: number;
966
+ next_page: number | null;
967
+ truncated: boolean;
968
+ items: {
969
+ message_id: string;
970
+ route_name: string;
971
+ door: "channel" | "api";
972
+ thread_id: string;
973
+ client_address: string;
974
+ caller_principal: string | null;
975
+ inbound_text: string;
976
+ answer_status: "error" | "silent" | "answered" | null;
977
+ answer: string | null;
978
+ origin: "client" | "operator";
979
+ delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
980
+ created_at: number;
981
+ updated_at: number;
982
+ channel?: string | null | undefined;
983
+ our_identity?: string | null | undefined;
984
+ provider_message_id?: string | null | undefined;
985
+ callback_url?: string | null | undefined;
986
+ error?: string | null | undefined;
987
+ outbound_message_ids?: string[] | undefined;
988
+ attempts?: number | undefined;
989
+ }[];
810
990
  }>;
811
- readonly downloadStorageResource: (id: string, signal?: AbortSignal) => Promise<Blob>;
812
- readonly uploadStorageResource: (body: import("@tai42/api-client").StorageUploadBody) => Promise<{
813
- id: string;
814
- stored: true;
991
+ readonly searchConversationMessages: (query: import("@tai42/api-client").ConversationMessageSearchQuery, signal?: AbortSignal) => Promise<{
992
+ total: number;
993
+ page: number;
994
+ page_size: number;
995
+ next_page: number | null;
996
+ truncated: boolean;
997
+ items: {
998
+ message_id: string;
999
+ route_name: string;
1000
+ door: "channel" | "api";
1001
+ thread_id: string;
1002
+ client_address: string;
1003
+ caller_principal: string | null;
1004
+ inbound_text: string;
1005
+ answer_status: "error" | "silent" | "answered" | null;
1006
+ answer: string | null;
1007
+ origin: "client" | "operator";
1008
+ delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
1009
+ created_at: number;
1010
+ updated_at: number;
1011
+ channel?: string | null | undefined;
1012
+ our_identity?: string | null | undefined;
1013
+ provider_message_id?: string | null | undefined;
1014
+ callback_url?: string | null | undefined;
1015
+ error?: string | null | undefined;
1016
+ outbound_message_ids?: string[] | undefined;
1017
+ attempts?: number | undefined;
1018
+ }[];
815
1019
  }>;
816
- readonly deleteStorageResource: (id: string) => Promise<{
817
- id: string;
818
- deleted: true;
1020
+ readonly sendConversationThreadMessage: (routeName: string, body: import("@tai42/api-client").ConversationThreadMessageBody) => Promise<{
1021
+ message_id: string;
1022
+ thread_id: string;
819
1023
  }>;
820
- readonly deleteStorageDir: (path: string) => Promise<{
821
- dir: string;
822
- deleted: true;
1024
+ readonly getConversationThreadMode: (routeName: string, threadId: string, signal?: AbortSignal) => Promise<{
1025
+ mode: "agent" | "manual";
1026
+ source: "route" | "thread";
823
1027
  }>;
824
- readonly getBackendInfo: (signal?: AbortSignal) => Promise<{
825
- present: boolean;
826
- backend: string | null;
827
- module: string | null;
1028
+ readonly setConversationThreadMode: (routeName: string, threadId: string, mode: import("@tai42/api-client").ConversationThreadMode) => Promise<{
1029
+ mode: "agent" | "manual";
1030
+ source: "route" | "thread";
828
1031
  }>;
829
- readonly listFleetWorkers: (signal?: AbortSignal) => Promise<{
830
- workers: {
831
- name: string;
832
- kind: "backend" | "serve";
833
- pid: number;
834
- generation: number;
835
- joined_at: string;
836
- beat_at: string;
837
- state: "ready" | "resyncing" | "recycling";
838
- stale: boolean;
839
- last_op: {
840
- op: string;
841
- outcome: string;
842
- at: string;
1032
+ readonly listConversationConfigs: (signal?: AbortSignal) => Promise<{
1033
+ items: {
1034
+ greeting_template: string | null;
1035
+ multichannel: boolean;
1036
+ state_binding: {
1037
+ states: {
1038
+ input_injections: {
1039
+ into: string;
1040
+ jq: {
1041
+ content?: string | undefined;
1042
+ id?: string | undefined;
1043
+ kwargs?: Record<string, unknown> | undefined;
1044
+ } | null;
1045
+ template_jq: string | null;
1046
+ }[];
1047
+ scope_expr: {
1048
+ content?: string | undefined;
1049
+ id?: string | undefined;
1050
+ kwargs?: Record<string, unknown> | undefined;
1051
+ } | null;
1052
+ state: string;
1053
+ subject_expr: {
1054
+ content?: string | undefined;
1055
+ id?: string | undefined;
1056
+ kwargs?: Record<string, unknown> | undefined;
1057
+ };
1058
+ templates: string[];
1059
+ updates: {
1060
+ adapter: {
1061
+ content?: string | undefined;
1062
+ id?: string | undefined;
1063
+ kwargs?: Record<string, unknown> | undefined;
1064
+ } | null;
1065
+ jq: {
1066
+ content?: string | undefined;
1067
+ id?: string | undefined;
1068
+ kwargs?: Record<string, unknown> | undefined;
1069
+ } | null;
1070
+ op_id: {
1071
+ content?: string | undefined;
1072
+ id?: string | undefined;
1073
+ kwargs?: Record<string, unknown> | undefined;
1074
+ } | null;
1075
+ template_jq: string | null;
1076
+ }[];
1077
+ }[];
843
1078
  } | null;
1079
+ target_kind: "tool" | "agent";
1080
+ target_name: string;
844
1081
  }[];
1082
+ total: number;
845
1083
  }>;
846
- readonly reloadFleetConfig: (targets: string[] | null) => Promise<{
847
- op: string;
848
- reachable: boolean;
849
- local_only: boolean;
850
- results: {
851
- name: string;
852
- outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
853
- payload: unknown;
854
- error: string | null;
855
- detail: string | null;
856
- }[];
857
- error: string | null;
858
- }>;
859
- readonly listExtensions: (signal?: AbortSignal) => Promise<{
860
- name: string;
861
- kind: string;
862
- }[]>;
863
- readonly getToolExtensions: (name: string, signal?: AbortSignal) => Promise<{
864
- combos: (string | {
865
- name: string;
866
- config: Record<string, unknown>;
867
- })[][];
868
- available: {
869
- name: string;
870
- kind: string;
871
- }[];
872
- }>;
873
- readonly setToolExtensions: (name: string, combos: readonly import("@tai42/api-client").PresetExtensionElement[][]) => Promise<{
874
- status: string;
875
- env_keys: number;
876
- fanout: {
877
- mode: "local-only";
878
- note: string;
879
- } | {
880
- op: string;
881
- reachable: boolean;
882
- local_only: boolean;
883
- results: {
884
- name: string;
885
- outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
886
- payload: unknown;
887
- error: string | null;
888
- detail: string | null;
889
- }[];
890
- error: string | null;
891
- mode: "fleet";
892
- } | {
893
- op: string;
894
- reachable: boolean;
895
- local_only: boolean;
896
- results: {
897
- name: string;
898
- outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
899
- payload: unknown;
900
- error: string | null;
901
- detail: string | null;
1084
+ readonly getConversationConfig: (targetKind: import("@tai42/api-client").ConversationTargetKind, targetName: string, signal?: AbortSignal) => Promise<{
1085
+ greeting_template: string | null;
1086
+ multichannel: boolean;
1087
+ state_binding: {
1088
+ states: {
1089
+ input_injections: {
1090
+ into: string;
1091
+ jq: {
1092
+ content?: string | undefined;
1093
+ id?: string | undefined;
1094
+ kwargs?: Record<string, unknown> | undefined;
1095
+ } | null;
1096
+ template_jq: string | null;
1097
+ }[];
1098
+ scope_expr: {
1099
+ content?: string | undefined;
1100
+ id?: string | undefined;
1101
+ kwargs?: Record<string, unknown> | undefined;
1102
+ } | null;
1103
+ state: string;
1104
+ subject_expr: {
1105
+ content?: string | undefined;
1106
+ id?: string | undefined;
1107
+ kwargs?: Record<string, unknown> | undefined;
1108
+ };
1109
+ templates: string[];
1110
+ updates: {
1111
+ adapter: {
1112
+ content?: string | undefined;
1113
+ id?: string | undefined;
1114
+ kwargs?: Record<string, unknown> | undefined;
1115
+ } | null;
1116
+ jq: {
1117
+ content?: string | undefined;
1118
+ id?: string | undefined;
1119
+ kwargs?: Record<string, unknown> | undefined;
1120
+ } | null;
1121
+ op_id: {
1122
+ content?: string | undefined;
1123
+ id?: string | undefined;
1124
+ kwargs?: Record<string, unknown> | undefined;
1125
+ } | null;
1126
+ template_jq: string | null;
1127
+ }[];
902
1128
  }[];
903
- error: string | null;
904
- mode: "unreachable";
1129
+ } | null;
1130
+ target_kind: "tool" | "agent";
1131
+ target_name: string;
1132
+ }>;
1133
+ readonly setConversationConfig: (config: import("@tai42/api-client").TargetConversationConfig) => Promise<{
1134
+ created: boolean;
1135
+ target_kind: "tool" | "agent";
1136
+ target_name: string;
1137
+ config: {
1138
+ greeting_template: string | null;
1139
+ multichannel: boolean;
1140
+ state_binding: {
1141
+ states: {
1142
+ input_injections: {
1143
+ into: string;
1144
+ jq: {
1145
+ content?: string | undefined;
1146
+ id?: string | undefined;
1147
+ kwargs?: Record<string, unknown> | undefined;
1148
+ } | null;
1149
+ template_jq: string | null;
1150
+ }[];
1151
+ scope_expr: {
1152
+ content?: string | undefined;
1153
+ id?: string | undefined;
1154
+ kwargs?: Record<string, unknown> | undefined;
1155
+ } | null;
1156
+ state: string;
1157
+ subject_expr: {
1158
+ content?: string | undefined;
1159
+ id?: string | undefined;
1160
+ kwargs?: Record<string, unknown> | undefined;
1161
+ };
1162
+ templates: string[];
1163
+ updates: {
1164
+ adapter: {
1165
+ content?: string | undefined;
1166
+ id?: string | undefined;
1167
+ kwargs?: Record<string, unknown> | undefined;
1168
+ } | null;
1169
+ jq: {
1170
+ content?: string | undefined;
1171
+ id?: string | undefined;
1172
+ kwargs?: Record<string, unknown> | undefined;
1173
+ } | null;
1174
+ op_id: {
1175
+ content?: string | undefined;
1176
+ id?: string | undefined;
1177
+ kwargs?: Record<string, unknown> | undefined;
1178
+ } | null;
1179
+ template_jq: string | null;
1180
+ }[];
1181
+ }[];
1182
+ } | null;
1183
+ target_kind: "tool" | "agent";
1184
+ target_name: string;
905
1185
  };
906
1186
  }>;
907
- readonly listTemplates: (signal?: AbortSignal) => Promise<string[]>;
908
- readonly getTemplate: (templateId: string) => Promise<{
909
- template: string;
910
- schema: Record<string, unknown>;
911
- }>;
912
- readonly uploadTemplate: (path: string, content: string) => Promise<{
913
- path: string;
914
- uploaded: true;
1187
+ readonly deleteConversationConfig: (targetKind: import("@tai42/api-client").ConversationTargetKind, targetName: string) => Promise<{
1188
+ removed: boolean;
1189
+ target_kind: "tool" | "agent";
1190
+ target_name: string;
915
1191
  }>;
916
- readonly deleteTemplate: (path: string) => Promise<{
917
- path: string;
918
- deleted: true;
1192
+ readonly listFailedConversationMessages: (signal?: AbortSignal) => Promise<{
1193
+ items: {
1194
+ message_id: string;
1195
+ route_name: string;
1196
+ door: "channel" | "api";
1197
+ thread_id: string;
1198
+ client_address: string;
1199
+ caller_principal: string | null;
1200
+ inbound_text: string;
1201
+ answer_status: "error" | "silent" | "answered" | null;
1202
+ answer: string | null;
1203
+ origin: "client" | "operator";
1204
+ delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
1205
+ created_at: number;
1206
+ updated_at: number;
1207
+ channel?: string | null | undefined;
1208
+ our_identity?: string | null | undefined;
1209
+ provider_message_id?: string | null | undefined;
1210
+ callback_url?: string | null | undefined;
1211
+ error?: string | null | undefined;
1212
+ outbound_message_ids?: string[] | undefined;
1213
+ attempts?: number | undefined;
1214
+ }[];
1215
+ total: number;
919
1216
  }>;
920
- readonly deleteTemplateDir: (path: string) => Promise<{
921
- path: string;
922
- deleted: true;
1217
+ readonly deleteConversationThread: (routeName: string, threadId: string) => Promise<{
1218
+ removed: number;
1219
+ route_name: string;
1220
+ thread_id: string;
923
1221
  }>;
924
- readonly renderTemplate: (text: import("@tai42/api-client").TemplatedText) => Promise<{
925
- rendered: string;
1222
+ readonly deleteConversationPerson: (personId: string) => Promise<{
1223
+ person_id: string;
1224
+ removed: number;
1225
+ erased: boolean;
926
1226
  }>;
927
- readonly clearTemplatesCache: () => Promise<{
928
- cleared: true;
1227
+ readonly listChannels: (signal?: AbortSignal) => Promise<{
1228
+ channels: string[];
929
1229
  }>;
930
- readonly getManifest: (signal?: AbortSignal) => Promise<{
931
- mcp: {
932
- [x: string]: unknown;
933
- managed?: {
934
- connection_id: string;
935
- provider_id: string;
936
- sub_service: string;
937
- } | null | undefined;
1230
+ readonly listInteractions: (page: number, pageSize: number, signal?: AbortSignal) => Promise<{
1231
+ total: number;
1232
+ page: number;
1233
+ page_size: number;
1234
+ next_page: number | null;
1235
+ truncated: boolean;
1236
+ items: {
1237
+ interaction_id: string;
1238
+ group_id: string;
1239
+ question: string;
1240
+ answer_format: "text" | "external" | "confirm" | "select" | "form";
1241
+ format_payload: Record<string, unknown>;
1242
+ created_at: string;
1243
+ timeout_at: string;
1244
+ sensitive: boolean;
1245
+ server_verified?: boolean | undefined;
1246
+ channel?: string | undefined;
1247
+ recipient?: string | undefined;
1248
+ origin?: string | undefined;
1249
+ audience?: string | undefined;
1250
+ media?: unknown[] | undefined;
938
1251
  }[];
939
- user_tools: string[];
940
1252
  }>;
941
- readonly setMcpConfig: (mcp: unknown[]) => Promise<{
1253
+ readonly answerInteraction: (interactionId: string, answer: unknown) => Promise<{
1254
+ interaction_id: string;
942
1255
  status: string;
943
- env_keys: number;
944
- fanout: {
945
- mode: "local-only";
946
- note: string;
947
- } | {
948
- op: string;
949
- reachable: boolean;
950
- local_only: boolean;
951
- results: {
952
- name: string;
953
- outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
954
- payload: unknown;
955
- error: string | null;
956
- detail: string | null;
1256
+ }>;
1257
+ readonly cancelInteraction: (interactionId: string) => Promise<{
1258
+ interaction_id: string;
1259
+ status: string;
1260
+ }>;
1261
+ readonly listStudioPlugins: (signal?: AbortSignal) => Promise<{
1262
+ name: string;
1263
+ version: string;
1264
+ api_version: number;
1265
+ entry: string;
1266
+ integrity: Record<string, string>;
1267
+ contributions: {
1268
+ tool_panels: Record<string, string>;
1269
+ pages: string[];
1270
+ settings_tabs: string[];
1271
+ nav_entries: string[];
1272
+ };
1273
+ }[]>;
1274
+ readonly listProviders: (signal?: AbortSignal) => Promise<{
1275
+ providers: {
1276
+ id: string;
1277
+ display_name: string;
1278
+ description: string;
1279
+ icon_url: string;
1280
+ kind: "none" | "oauth";
1281
+ origin: "system" | "community";
1282
+ category: string;
1283
+ sub_services: {
1284
+ id: string;
1285
+ display_name: string;
1286
+ description: string;
1287
+ scopes: string[];
957
1288
  }[];
958
- error: string | null;
959
- mode: "fleet";
960
- } | {
961
- op: string;
962
- reachable: boolean;
963
- local_only: boolean;
964
- results: {
965
- name: string;
966
- outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
967
- payload: unknown;
968
- error: string | null;
969
- detail: string | null;
1289
+ config_fields: {
1290
+ key: string;
1291
+ label: string;
1292
+ target: "env" | "header";
1293
+ required: boolean;
1294
+ secret: boolean;
970
1295
  }[];
971
- error: string | null;
972
- mode: "unreachable";
973
- };
974
- }>;
975
- readonly getMcpStatus: (signal?: AbortSignal) => Promise<{
976
- bound: Record<string, string[]>;
977
- failed: {
978
- title: string;
979
- status: string;
1296
+ }[];
1297
+ categories: {
1298
+ id: string;
1299
+ display_name: string;
1300
+ sort_order: number;
980
1301
  }[];
981
1302
  }>;
982
- readonly reloadMcp: (title: string) => Promise<{
983
- op: string;
984
- reachable: boolean;
985
- local_only: boolean;
986
- results: {
987
- name: string;
988
- outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
989
- payload: unknown;
990
- error: string | null;
991
- detail: string | null;
1303
+ readonly listConnections: (signal?: AbortSignal) => Promise<{
1304
+ items: {
1305
+ connection_id: string;
1306
+ provider_id: string;
1307
+ alias: string;
1308
+ kind: "none" | "oauth";
1309
+ account_identity: string | null;
1310
+ enabled_sub_services: string[];
1311
+ granted_scopes: string[];
1312
+ unreachable_sub_services: string[];
1313
+ auth_health_state: "healthy" | "reconnect_required" | "refresh_failing";
1314
+ created_at: string;
992
1315
  }[];
993
- error: string | null;
1316
+ total: number;
1317
+ unhealthy?: number | undefined;
994
1318
  }>;
995
- readonly addToolsEntries: (entries: readonly unknown[], replace?: boolean) => Promise<{
996
- status: string;
997
- env_keys: number;
998
- fanout: {
999
- mode: "local-only";
1000
- note: string;
1001
- } | {
1002
- op: string;
1003
- reachable: boolean;
1004
- local_only: boolean;
1005
- results: {
1006
- name: string;
1007
- outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1008
- payload: unknown;
1009
- error: string | null;
1010
- detail: string | null;
1011
- }[];
1012
- error: string | null;
1013
- mode: "fleet";
1014
- } | {
1015
- op: string;
1016
- reachable: boolean;
1017
- local_only: boolean;
1018
- results: {
1019
- name: string;
1020
- outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1021
- payload: unknown;
1022
- error: string | null;
1023
- detail: string | null;
1024
- }[];
1025
- error: string | null;
1026
- mode: "unreachable";
1027
- };
1319
+ readonly getConnection: (id: string, signal?: AbortSignal) => Promise<{
1320
+ connection_id: string;
1321
+ provider_id: string;
1322
+ alias: string;
1323
+ kind: "none" | "oauth";
1324
+ account_identity: string | null;
1325
+ enabled_sub_services: string[];
1326
+ granted_scopes: string[];
1327
+ unreachable_sub_services: string[];
1328
+ auth_health_state: "healthy" | "reconnect_required" | "refresh_failing";
1329
+ created_at: string;
1028
1330
  }>;
1029
- readonly removeToolsEntry: (title: string) => Promise<{
1030
- status: string;
1031
- env_keys: number;
1331
+ readonly startConnect: (args: import("@tai42/api-client").StartConnectArgs) => Promise<{
1332
+ flow_id: string;
1333
+ authorize_url: string;
1334
+ } | {
1335
+ connection_id: string;
1336
+ added_manifest_entries: string[];
1032
1337
  fanout: {
1033
1338
  mode: "local-only";
1034
1339
  note: string;
@@ -1058,11 +1363,13 @@ export declare const ApiProvider: import("react").Provider<{
1058
1363
  }[];
1059
1364
  error: string | null;
1060
1365
  mode: "unreachable";
1061
- };
1366
+ } | null;
1062
1367
  }>;
1063
- readonly addAgentsEntries: (entries: readonly unknown[], replace?: boolean) => Promise<{
1064
- status: string;
1065
- env_keys: number;
1368
+ readonly disconnect: (id: string) => Promise<{
1369
+ connection_id: string;
1370
+ upstream_revoke_outcome: "success" | "failed" | "skipped";
1371
+ upstream_revoke_status: number | null;
1372
+ removed_manifest_entries: string[];
1066
1373
  fanout: {
1067
1374
  mode: "local-only";
1068
1375
  note: string;
@@ -1092,11 +1399,20 @@ export declare const ApiProvider: import("react").Provider<{
1092
1399
  }[];
1093
1400
  error: string | null;
1094
1401
  mode: "unreachable";
1095
- };
1402
+ } | null;
1096
1403
  }>;
1097
- readonly removeAgentsEntry: (title: string) => Promise<{
1098
- status: string;
1099
- env_keys: number;
1404
+ readonly reconnect: (id: string, enabled_sub_services: string[], return_url?: string) => Promise<{
1405
+ flow_id: string;
1406
+ authorize_url: string;
1407
+ }>;
1408
+ readonly patchSubServices: (id: string, enabled_sub_services: string[], return_url?: string) => Promise<{
1409
+ connection_id: string;
1410
+ enabled_sub_services: string[];
1411
+ consent_required: boolean;
1412
+ flow_id: string | null;
1413
+ authorize_url: string | null;
1414
+ added_manifest_entries: string[];
1415
+ removed_manifest_entries: string[];
1100
1416
  fanout: {
1101
1417
  mode: "local-only";
1102
1418
  note: string;
@@ -1126,11 +1442,12 @@ export declare const ApiProvider: import("react").Provider<{
1126
1442
  }[];
1127
1443
  error: string | null;
1128
1444
  mode: "unreachable";
1129
- };
1445
+ } | null;
1130
1446
  }>;
1131
- readonly updateApiTools: (body: import("@tai42/api-client").ApiToolsListsBody) => Promise<{
1132
- status: string;
1133
- env_keys: number;
1447
+ readonly completeOAuth: (state: string, code: string, error?: string) => Promise<{
1448
+ kind: "success";
1449
+ connection_id: string;
1450
+ return_url: string;
1134
1451
  fanout: {
1135
1452
  mode: "local-only";
1136
1453
  note: string;
@@ -1160,65 +1477,15 @@ export declare const ApiProvider: import("react").Provider<{
1160
1477
  }[];
1161
1478
  error: string | null;
1162
1479
  mode: "unreachable";
1163
- };
1164
- }>;
1165
- readonly listFailedMcps: (signal?: AbortSignal) => Promise<{
1166
- op: string;
1167
- reachable: boolean;
1168
- local_only: boolean;
1169
- results: {
1170
- name: string;
1171
- outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1172
- payload: unknown;
1173
- error: string | null;
1174
- detail: string | null;
1175
- }[];
1176
- error: string | null;
1177
- }>;
1178
- readonly reloadFailedMcps: () => Promise<{
1179
- op: string;
1180
- reachable: boolean;
1181
- local_only: boolean;
1182
- results: {
1183
- name: string;
1184
- outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1185
- payload: unknown;
1186
- error: string | null;
1187
- detail: string | null;
1188
- }[];
1189
- error: string | null;
1190
- }>;
1191
- readonly deregisterMcp: (title: string) => Promise<{
1192
- op: string;
1193
- reachable: boolean;
1194
- local_only: boolean;
1195
- results: {
1196
- name: string;
1197
- outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1198
- payload: unknown;
1199
- error: string | null;
1200
- detail: string | null;
1201
- }[];
1202
- error: string | null;
1203
- }>;
1204
- readonly listSubMcp: (signal?: AbortSignal) => Promise<Record<string, {
1205
- tools: string[];
1206
- transport: string;
1207
- }>>;
1208
- readonly createSubMcp: (slug: string, tools: string[], transport?: string) => Promise<{
1209
- slug: string;
1210
- tools: string[];
1211
- transport: string;
1212
- }>;
1213
- readonly deleteSubMcp: (slug: string) => Promise<{
1214
- slug: string;
1215
- removed: true;
1216
- }>;
1217
- readonly getEnvConfig: (signal?: AbortSignal) => Promise<{
1218
- env: Record<string, string>;
1219
- secret_keys: string[];
1480
+ } | null;
1481
+ } | {
1482
+ kind: "failed";
1483
+ reason: string;
1484
+ } | {
1485
+ kind: "cancelled";
1486
+ message: string;
1220
1487
  }>;
1221
- readonly setEnvConfig: (env: Record<string, string>) => Promise<{
1488
+ readonly setMcpSecretEnv: (body: import("../../../api-client/dist/client/manifest-client").SetMcpSecretEnvBody) => Promise<{
1222
1489
  status: string;
1223
1490
  env_keys: number;
1224
1491
  fanout: {
@@ -1252,23 +1519,23 @@ export declare const ApiProvider: import("react").Provider<{
1252
1519
  mode: "unreachable";
1253
1520
  };
1254
1521
  }>;
1255
- readonly getConfigMode: (signal?: AbortSignal) => Promise<{
1256
- config_mode: string;
1257
- read_only: boolean;
1258
- }>;
1259
- readonly reloadConfig: (targets?: string[] | null) => Promise<{
1260
- op: string;
1261
- reachable: boolean;
1262
- local_only: boolean;
1263
- results: {
1264
- name: string;
1265
- outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1266
- payload: unknown;
1267
- error: string | null;
1268
- detail: string | null;
1522
+ readonly getManifestPreserved: (signal?: AbortSignal) => Promise<{
1523
+ mcp: {
1524
+ [x: string]: unknown;
1525
+ managed?: {
1526
+ connection_id: string;
1527
+ provider_id: string;
1528
+ sub_service: string;
1529
+ } | null | undefined;
1269
1530
  }[];
1270
- error: string | null;
1531
+ user_tools: string[];
1271
1532
  }>;
1533
+ readonly getMcpEnvRefs: (signal?: AbortSignal) => Promise<{
1534
+ var: string;
1535
+ pointer: string;
1536
+ has_default: boolean;
1537
+ set: boolean;
1538
+ }[]>;
1272
1539
  readonly listSettingsProfiles: (signal?: AbortSignal) => Promise<{
1273
1540
  name: string;
1274
1541
  description: string;
@@ -1365,7 +1632,11 @@ export declare const ApiProvider: import("react").Provider<{
1365
1632
  ok: true;
1366
1633
  version: number;
1367
1634
  }>;
1368
- readonly setMcpSecretEnv: (body: import("../../../api-client/dist/client").SetMcpSecretEnvBody) => Promise<{
1635
+ readonly getEnvConfig: (signal?: AbortSignal) => Promise<{
1636
+ env: Record<string, string>;
1637
+ secret_keys: string[];
1638
+ }>;
1639
+ readonly setEnvConfig: (env: Record<string, string>) => Promise<{
1369
1640
  status: string;
1370
1641
  env_keys: number;
1371
1642
  fanout: {
@@ -1399,7 +1670,37 @@ export declare const ApiProvider: import("react").Provider<{
1399
1670
  mode: "unreachable";
1400
1671
  };
1401
1672
  }>;
1402
- readonly getManifestPreserved: (signal?: AbortSignal) => Promise<{
1673
+ readonly getConfigMode: (signal?: AbortSignal) => Promise<{
1674
+ config_mode: string;
1675
+ read_only: boolean;
1676
+ }>;
1677
+ readonly reloadConfig: (targets?: string[] | null) => Promise<{
1678
+ op: string;
1679
+ reachable: boolean;
1680
+ local_only: boolean;
1681
+ results: {
1682
+ name: string;
1683
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1684
+ payload: unknown;
1685
+ error: string | null;
1686
+ detail: string | null;
1687
+ }[];
1688
+ error: string | null;
1689
+ }>;
1690
+ readonly listSubMcp: (signal?: AbortSignal) => Promise<Record<string, {
1691
+ tools: string[];
1692
+ transport: string;
1693
+ }>>;
1694
+ readonly createSubMcp: (slug: string, tools: string[], transport?: string) => Promise<{
1695
+ slug: string;
1696
+ tools: string[];
1697
+ transport: string;
1698
+ }>;
1699
+ readonly deleteSubMcp: (slug: string) => Promise<{
1700
+ slug: string;
1701
+ removed: true;
1702
+ }>;
1703
+ readonly getManifest: (signal?: AbortSignal) => Promise<{
1403
1704
  mcp: {
1404
1705
  [x: string]: unknown;
1405
1706
  managed?: {
@@ -1410,75 +1711,63 @@ export declare const ApiProvider: import("react").Provider<{
1410
1711
  }[];
1411
1712
  user_tools: string[];
1412
1713
  }>;
1413
- readonly getMcpEnvRefs: (signal?: AbortSignal) => Promise<{
1414
- var: string;
1415
- pointer: string;
1416
- has_default: boolean;
1417
- set: boolean;
1418
- }[]>;
1419
- readonly listProviders: (signal?: AbortSignal) => Promise<{
1420
- providers: {
1421
- id: string;
1422
- display_name: string;
1423
- description: string;
1424
- icon_url: string;
1425
- kind: "none" | "oauth";
1426
- origin: "system" | "community";
1427
- category: string;
1428
- sub_services: {
1429
- id: string;
1430
- display_name: string;
1431
- description: string;
1432
- scopes: string[];
1714
+ readonly setMcpConfig: (mcp: unknown[]) => Promise<{
1715
+ status: string;
1716
+ env_keys: number;
1717
+ fanout: {
1718
+ mode: "local-only";
1719
+ note: string;
1720
+ } | {
1721
+ op: string;
1722
+ reachable: boolean;
1723
+ local_only: boolean;
1724
+ results: {
1725
+ name: string;
1726
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1727
+ payload: unknown;
1728
+ error: string | null;
1729
+ detail: string | null;
1433
1730
  }[];
1434
- config_fields: {
1435
- key: string;
1436
- label: string;
1437
- target: "env" | "header";
1438
- required: boolean;
1439
- secret: boolean;
1731
+ error: string | null;
1732
+ mode: "fleet";
1733
+ } | {
1734
+ op: string;
1735
+ reachable: boolean;
1736
+ local_only: boolean;
1737
+ results: {
1738
+ name: string;
1739
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1740
+ payload: unknown;
1741
+ error: string | null;
1742
+ detail: string | null;
1440
1743
  }[];
1441
- }[];
1442
- categories: {
1443
- id: string;
1444
- display_name: string;
1445
- sort_order: number;
1446
- }[];
1744
+ error: string | null;
1745
+ mode: "unreachable";
1746
+ };
1447
1747
  }>;
1448
- readonly listConnections: (signal?: AbortSignal) => Promise<{
1449
- items: {
1450
- connection_id: string;
1451
- provider_id: string;
1452
- alias: string;
1453
- kind: "none" | "oauth";
1454
- account_identity: string | null;
1455
- enabled_sub_services: string[];
1456
- granted_scopes: string[];
1457
- unreachable_sub_services: string[];
1458
- auth_health_state: "healthy" | "reconnect_required" | "refresh_failing";
1459
- created_at: string;
1748
+ readonly getMcpStatus: (signal?: AbortSignal) => Promise<{
1749
+ bound: Record<string, string[]>;
1750
+ failed: {
1751
+ title: string;
1752
+ status: string;
1460
1753
  }[];
1461
- total: number;
1462
- unhealthy?: number | undefined;
1463
1754
  }>;
1464
- readonly getConnection: (id: string, signal?: AbortSignal) => Promise<{
1465
- connection_id: string;
1466
- provider_id: string;
1467
- alias: string;
1468
- kind: "none" | "oauth";
1469
- account_identity: string | null;
1470
- enabled_sub_services: string[];
1471
- granted_scopes: string[];
1472
- unreachable_sub_services: string[];
1473
- auth_health_state: "healthy" | "reconnect_required" | "refresh_failing";
1474
- created_at: string;
1755
+ readonly reloadMcp: (title: string) => Promise<{
1756
+ op: string;
1757
+ reachable: boolean;
1758
+ local_only: boolean;
1759
+ results: {
1760
+ name: string;
1761
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1762
+ payload: unknown;
1763
+ error: string | null;
1764
+ detail: string | null;
1765
+ }[];
1766
+ error: string | null;
1475
1767
  }>;
1476
- readonly startConnect: (args: import("@tai42/api-client").StartConnectArgs) => Promise<{
1477
- flow_id: string;
1478
- authorize_url: string;
1479
- } | {
1480
- connection_id: string;
1481
- added_manifest_entries: string[];
1768
+ readonly addToolsEntries: (entries: readonly unknown[], replace?: boolean) => Promise<{
1769
+ status: string;
1770
+ env_keys: number;
1482
1771
  fanout: {
1483
1772
  mode: "local-only";
1484
1773
  note: string;
@@ -1508,13 +1797,11 @@ export declare const ApiProvider: import("react").Provider<{
1508
1797
  }[];
1509
1798
  error: string | null;
1510
1799
  mode: "unreachable";
1511
- } | null;
1800
+ };
1512
1801
  }>;
1513
- readonly disconnect: (id: string) => Promise<{
1514
- connection_id: string;
1515
- upstream_revoke_outcome: "success" | "failed" | "skipped";
1516
- upstream_revoke_status: number | null;
1517
- removed_manifest_entries: string[];
1802
+ readonly removeToolsEntry: (title: string) => Promise<{
1803
+ status: string;
1804
+ env_keys: number;
1518
1805
  fanout: {
1519
1806
  mode: "local-only";
1520
1807
  note: string;
@@ -1544,20 +1831,11 @@ export declare const ApiProvider: import("react").Provider<{
1544
1831
  }[];
1545
1832
  error: string | null;
1546
1833
  mode: "unreachable";
1547
- } | null;
1548
- }>;
1549
- readonly reconnect: (id: string, enabled_sub_services: string[], return_url?: string) => Promise<{
1550
- flow_id: string;
1551
- authorize_url: string;
1834
+ };
1552
1835
  }>;
1553
- readonly patchSubServices: (id: string, enabled_sub_services: string[], return_url?: string) => Promise<{
1554
- connection_id: string;
1555
- enabled_sub_services: string[];
1556
- consent_required: boolean;
1557
- flow_id: string | null;
1558
- authorize_url: string | null;
1559
- added_manifest_entries: string[];
1560
- removed_manifest_entries: string[];
1836
+ readonly addAgentsEntries: (entries: readonly unknown[], replace?: boolean) => Promise<{
1837
+ status: string;
1838
+ env_keys: number;
1561
1839
  fanout: {
1562
1840
  mode: "local-only";
1563
1841
  note: string;
@@ -1587,12 +1865,11 @@ export declare const ApiProvider: import("react").Provider<{
1587
1865
  }[];
1588
1866
  error: string | null;
1589
1867
  mode: "unreachable";
1590
- } | null;
1868
+ };
1591
1869
  }>;
1592
- readonly completeOAuth: (state: string, code: string, error?: string) => Promise<{
1593
- kind: "success";
1594
- connection_id: string;
1595
- return_url: string;
1870
+ readonly removeAgentsEntry: (title: string) => Promise<{
1871
+ status: string;
1872
+ env_keys: number;
1596
1873
  fanout: {
1597
1874
  mode: "local-only";
1598
1875
  note: string;
@@ -1622,1215 +1899,1008 @@ export declare const ApiProvider: import("react").Provider<{
1622
1899
  }[];
1623
1900
  error: string | null;
1624
1901
  mode: "unreachable";
1625
- } | null;
1626
- } | {
1627
- kind: "failed";
1628
- reason: string;
1629
- } | {
1630
- kind: "cancelled";
1631
- message: string;
1632
- }>;
1633
- readonly listStudioPlugins: (signal?: AbortSignal) => Promise<{
1634
- name: string;
1635
- version: string;
1636
- api_version: number;
1637
- entry: string;
1638
- integrity: Record<string, string>;
1639
- contributions: {
1640
- tool_panels: Record<string, string>;
1641
- pages: string[];
1642
- settings_tabs: string[];
1643
- nav_entries: string[];
1644
1902
  };
1645
- }[]>;
1646
- readonly listInteractions: (page: number, pageSize: number, signal?: AbortSignal) => Promise<{
1647
- total: number;
1648
- page: number;
1649
- page_size: number;
1650
- next_page: number | null;
1651
- truncated: boolean;
1652
- items: {
1653
- interaction_id: string;
1654
- group_id: string;
1655
- question: string;
1656
- answer_format: "text" | "external" | "confirm" | "select" | "form";
1657
- format_payload: Record<string, unknown>;
1658
- created_at: string;
1659
- timeout_at: string;
1660
- sensitive: boolean;
1661
- server_verified?: boolean | undefined;
1662
- channel?: string | undefined;
1663
- recipient?: string | undefined;
1664
- origin?: string | undefined;
1665
- audience?: string | undefined;
1666
- media?: unknown[] | undefined;
1667
- }[];
1668
1903
  }>;
1669
- readonly answerInteraction: (interactionId: string, answer: unknown) => Promise<{
1670
- interaction_id: string;
1671
- status: string;
1672
- }>;
1673
- readonly cancelInteraction: (interactionId: string) => Promise<{
1674
- interaction_id: string;
1904
+ readonly updateApiTools: (body: import("@tai42/api-client").ApiToolsListsBody) => Promise<{
1675
1905
  status: string;
1676
- }>;
1677
- readonly listChannels: (signal?: AbortSignal) => Promise<{
1678
- channels: string[];
1679
- }>;
1680
- readonly listConversationRoutes: (signal?: AbortSignal) => Promise<{
1681
- items: {
1682
- callback_secret: string | null;
1683
- callback_url: string | null;
1684
- channel: string | null;
1685
- door: "channel" | "api";
1686
- error_reply_text: string | null;
1687
- execution_key: string;
1688
- execution_key_fingerprint: string;
1689
- initial_mode: "agent" | "manual";
1690
- locale: string | null;
1691
- our_identity: string | null;
1692
- payload_expr: {
1693
- content?: string | undefined;
1694
- id?: string | undefined;
1695
- kwargs?: Record<string, unknown> | undefined;
1696
- } | null;
1697
- reply_expr: {
1698
- content?: string | undefined;
1699
- id?: string | undefined;
1700
- kwargs?: Record<string, unknown> | undefined;
1701
- } | null;
1702
- route_name: string;
1703
- target_kind: "tool" | "agent";
1704
- target_name: string;
1705
- turns_per_hour_override: number | null;
1706
- }[];
1707
- total: number;
1708
- }>;
1709
- readonly createOrReplaceConversationRoute: (route: import("@tai42/api-client").ConversationRouteCreate) => Promise<{
1710
- created: boolean;
1711
- route_name: string;
1712
- route: {
1713
- callback_secret: string | null;
1714
- callback_url: string | null;
1715
- channel: string | null;
1716
- door: "channel" | "api";
1717
- error_reply_text: string | null;
1718
- execution_key: string;
1719
- execution_key_fingerprint: string;
1720
- initial_mode: "agent" | "manual";
1721
- locale: string | null;
1722
- our_identity: string | null;
1723
- payload_expr: {
1724
- content?: string | undefined;
1725
- id?: string | undefined;
1726
- kwargs?: Record<string, unknown> | undefined;
1727
- } | null;
1728
- reply_expr: {
1729
- content?: string | undefined;
1730
- id?: string | undefined;
1731
- kwargs?: Record<string, unknown> | undefined;
1732
- } | null;
1733
- route_name: string;
1734
- target_kind: "tool" | "agent";
1735
- target_name: string;
1736
- turns_per_hour_override: number | null;
1906
+ env_keys: number;
1907
+ fanout: {
1908
+ mode: "local-only";
1909
+ note: string;
1910
+ } | {
1911
+ op: string;
1912
+ reachable: boolean;
1913
+ local_only: boolean;
1914
+ results: {
1915
+ name: string;
1916
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1917
+ payload: unknown;
1918
+ error: string | null;
1919
+ detail: string | null;
1920
+ }[];
1921
+ error: string | null;
1922
+ mode: "fleet";
1923
+ } | {
1924
+ op: string;
1925
+ reachable: boolean;
1926
+ local_only: boolean;
1927
+ results: {
1928
+ name: string;
1929
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1930
+ payload: unknown;
1931
+ error: string | null;
1932
+ detail: string | null;
1933
+ }[];
1934
+ error: string | null;
1935
+ mode: "unreachable";
1737
1936
  };
1738
- callback_secret: string | null;
1739
- }>;
1740
- readonly deleteConversationRoute: (routeName: string) => Promise<{
1741
- removed: boolean;
1742
- route_name: string;
1743
1937
  }>;
1744
- readonly listConversationThreads: (routeName: string, page: number, pageSize: number, filters?: import("@tai42/api-client").ConversationThreadFilters, signal?: AbortSignal) => Promise<{
1745
- total: number;
1746
- page: number;
1747
- page_size: number;
1748
- next_page: number | null;
1749
- truncated: boolean;
1750
- items: {
1751
- thread_id: string;
1752
- client_address: string;
1753
- last_activity_at: number;
1754
- message_count: number;
1755
- last_delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
1938
+ readonly listFailedMcps: (signal?: AbortSignal) => Promise<{
1939
+ op: string;
1940
+ reachable: boolean;
1941
+ local_only: boolean;
1942
+ results: {
1943
+ name: string;
1944
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1945
+ payload: unknown;
1946
+ error: string | null;
1947
+ detail: string | null;
1756
1948
  }[];
1949
+ error: string | null;
1757
1950
  }>;
1758
- readonly readConversationTranscript: (query: import("@tai42/api-client").ConversationTranscriptQuery, signal?: AbortSignal) => Promise<{
1759
- order: "asc" | "desc";
1760
- total: number;
1761
- page: number;
1762
- page_size: number;
1763
- next_page: number | null;
1764
- truncated: boolean;
1765
- items: {
1766
- message_id: string;
1767
- route_name: string;
1768
- door: "channel" | "api";
1769
- thread_id: string;
1770
- client_address: string;
1771
- caller_principal: string | null;
1772
- inbound_text: string;
1773
- answer_status: "error" | "silent" | "answered" | null;
1774
- answer: string | null;
1775
- origin: "client" | "operator";
1776
- delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
1777
- created_at: number;
1778
- updated_at: number;
1779
- channel?: string | null | undefined;
1780
- our_identity?: string | null | undefined;
1781
- provider_message_id?: string | null | undefined;
1782
- callback_url?: string | null | undefined;
1783
- error?: string | null | undefined;
1784
- outbound_message_ids?: string[] | undefined;
1785
- attempts?: number | undefined;
1951
+ readonly reloadFailedMcps: () => Promise<{
1952
+ op: string;
1953
+ reachable: boolean;
1954
+ local_only: boolean;
1955
+ results: {
1956
+ name: string;
1957
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1958
+ payload: unknown;
1959
+ error: string | null;
1960
+ detail: string | null;
1786
1961
  }[];
1962
+ error: string | null;
1787
1963
  }>;
1788
- readonly searchConversationMessages: (query: import("@tai42/api-client").ConversationMessageSearchQuery, signal?: AbortSignal) => Promise<{
1789
- total: number;
1790
- page: number;
1791
- page_size: number;
1792
- next_page: number | null;
1793
- truncated: boolean;
1794
- items: {
1795
- message_id: string;
1796
- route_name: string;
1797
- door: "channel" | "api";
1798
- thread_id: string;
1799
- client_address: string;
1800
- caller_principal: string | null;
1801
- inbound_text: string;
1802
- answer_status: "error" | "silent" | "answered" | null;
1803
- answer: string | null;
1804
- origin: "client" | "operator";
1805
- delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
1806
- created_at: number;
1807
- updated_at: number;
1808
- channel?: string | null | undefined;
1809
- our_identity?: string | null | undefined;
1810
- provider_message_id?: string | null | undefined;
1811
- callback_url?: string | null | undefined;
1812
- error?: string | null | undefined;
1813
- outbound_message_ids?: string[] | undefined;
1814
- attempts?: number | undefined;
1964
+ readonly deregisterMcp: (title: string) => Promise<{
1965
+ op: string;
1966
+ reachable: boolean;
1967
+ local_only: boolean;
1968
+ results: {
1969
+ name: string;
1970
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1971
+ payload: unknown;
1972
+ error: string | null;
1973
+ detail: string | null;
1815
1974
  }[];
1975
+ error: string | null;
1816
1976
  }>;
1817
- readonly sendConversationThreadMessage: (routeName: string, body: import("@tai42/api-client").ConversationThreadMessageBody) => Promise<{
1818
- message_id: string;
1819
- thread_id: string;
1977
+ readonly listTemplates: (signal?: AbortSignal) => Promise<string[]>;
1978
+ readonly getTemplate: (templateId: string) => Promise<{
1979
+ template: string;
1980
+ schema: Record<string, unknown>;
1820
1981
  }>;
1821
- readonly getConversationThreadMode: (routeName: string, threadId: string, signal?: AbortSignal) => Promise<{
1822
- mode: "agent" | "manual";
1823
- source: "route" | "thread";
1982
+ readonly uploadTemplate: (path: string, content: string) => Promise<{
1983
+ path: string;
1984
+ uploaded: true;
1824
1985
  }>;
1825
- readonly setConversationThreadMode: (routeName: string, threadId: string, mode: import("@tai42/api-client").ConversationThreadMode) => Promise<{
1826
- mode: "agent" | "manual";
1827
- source: "route" | "thread";
1986
+ readonly deleteTemplate: (path: string) => Promise<{
1987
+ path: string;
1988
+ deleted: true;
1828
1989
  }>;
1829
- readonly listConversationConfigs: (signal?: AbortSignal) => Promise<{
1830
- items: {
1831
- greeting_template: string | null;
1832
- multichannel: boolean;
1833
- state_binding: {
1834
- states: {
1835
- input_injections: {
1836
- into: string;
1837
- jq: {
1838
- content?: string | undefined;
1839
- id?: string | undefined;
1840
- kwargs?: Record<string, unknown> | undefined;
1841
- } | null;
1842
- template_jq: string | null;
1843
- }[];
1844
- scope_expr: {
1845
- content?: string | undefined;
1846
- id?: string | undefined;
1847
- kwargs?: Record<string, unknown> | undefined;
1848
- } | null;
1849
- state: string;
1850
- subject_expr: {
1851
- content?: string | undefined;
1852
- id?: string | undefined;
1853
- kwargs?: Record<string, unknown> | undefined;
1854
- };
1855
- templates: string[];
1856
- updates: {
1857
- adapter: {
1858
- content?: string | undefined;
1859
- id?: string | undefined;
1860
- kwargs?: Record<string, unknown> | undefined;
1861
- } | null;
1862
- jq: {
1863
- content?: string | undefined;
1864
- id?: string | undefined;
1865
- kwargs?: Record<string, unknown> | undefined;
1866
- } | null;
1867
- op_id: {
1868
- content?: string | undefined;
1869
- id?: string | undefined;
1870
- kwargs?: Record<string, unknown> | undefined;
1871
- } | null;
1872
- template_jq: string | null;
1873
- }[];
1874
- }[];
1875
- } | null;
1876
- target_kind: "tool" | "agent";
1877
- target_name: string;
1990
+ readonly deleteTemplateDir: (path: string) => Promise<{
1991
+ path: string;
1992
+ deleted: true;
1993
+ }>;
1994
+ readonly renderTemplate: (text: import("@tai42/api-client").TemplatedText) => Promise<{
1995
+ rendered: string;
1996
+ }>;
1997
+ readonly clearTemplatesCache: () => Promise<{
1998
+ cleared: true;
1999
+ }>;
2000
+ readonly listExtensions: (signal?: AbortSignal) => Promise<{
2001
+ name: string;
2002
+ kind: string;
2003
+ }[]>;
2004
+ readonly getToolExtensions: (name: string, signal?: AbortSignal) => Promise<{
2005
+ combos: (string | {
2006
+ name: string;
2007
+ config: Record<string, unknown>;
2008
+ })[][];
2009
+ available: {
2010
+ name: string;
2011
+ kind: string;
1878
2012
  }[];
1879
- total: number;
1880
2013
  }>;
1881
- readonly getConversationConfig: (targetKind: import("@tai42/api-client").ConversationTargetKind, targetName: string, signal?: AbortSignal) => Promise<{
1882
- greeting_template: string | null;
1883
- multichannel: boolean;
1884
- state_binding: {
1885
- states: {
1886
- input_injections: {
1887
- into: string;
1888
- jq: {
1889
- content?: string | undefined;
1890
- id?: string | undefined;
1891
- kwargs?: Record<string, unknown> | undefined;
1892
- } | null;
1893
- template_jq: string | null;
1894
- }[];
1895
- scope_expr: {
1896
- content?: string | undefined;
1897
- id?: string | undefined;
1898
- kwargs?: Record<string, unknown> | undefined;
1899
- } | null;
1900
- state: string;
1901
- subject_expr: {
1902
- content?: string | undefined;
1903
- id?: string | undefined;
1904
- kwargs?: Record<string, unknown> | undefined;
1905
- };
1906
- templates: string[];
1907
- updates: {
1908
- adapter: {
1909
- content?: string | undefined;
1910
- id?: string | undefined;
1911
- kwargs?: Record<string, unknown> | undefined;
1912
- } | null;
1913
- jq: {
1914
- content?: string | undefined;
1915
- id?: string | undefined;
1916
- kwargs?: Record<string, unknown> | undefined;
1917
- } | null;
1918
- op_id: {
1919
- content?: string | undefined;
1920
- id?: string | undefined;
1921
- kwargs?: Record<string, unknown> | undefined;
1922
- } | null;
1923
- template_jq: string | null;
1924
- }[];
2014
+ readonly setToolExtensions: (name: string, combos: readonly import("@tai42/api-client").PresetExtensionElement[][]) => Promise<{
2015
+ status: string;
2016
+ env_keys: number;
2017
+ fanout: {
2018
+ mode: "local-only";
2019
+ note: string;
2020
+ } | {
2021
+ op: string;
2022
+ reachable: boolean;
2023
+ local_only: boolean;
2024
+ results: {
2025
+ name: string;
2026
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2027
+ payload: unknown;
2028
+ error: string | null;
2029
+ detail: string | null;
1925
2030
  }[];
1926
- } | null;
1927
- target_kind: "tool" | "agent";
1928
- target_name: string;
1929
- }>;
1930
- readonly setConversationConfig: (config: import("@tai42/api-client").TargetConversationConfig) => Promise<{
1931
- created: boolean;
1932
- target_kind: "tool" | "agent";
1933
- target_name: string;
1934
- config: {
1935
- greeting_template: string | null;
1936
- multichannel: boolean;
1937
- state_binding: {
1938
- states: {
1939
- input_injections: {
1940
- into: string;
1941
- jq: {
1942
- content?: string | undefined;
1943
- id?: string | undefined;
1944
- kwargs?: Record<string, unknown> | undefined;
1945
- } | null;
1946
- template_jq: string | null;
1947
- }[];
1948
- scope_expr: {
1949
- content?: string | undefined;
1950
- id?: string | undefined;
1951
- kwargs?: Record<string, unknown> | undefined;
1952
- } | null;
1953
- state: string;
1954
- subject_expr: {
1955
- content?: string | undefined;
1956
- id?: string | undefined;
1957
- kwargs?: Record<string, unknown> | undefined;
1958
- };
1959
- templates: string[];
1960
- updates: {
1961
- adapter: {
1962
- content?: string | undefined;
1963
- id?: string | undefined;
1964
- kwargs?: Record<string, unknown> | undefined;
1965
- } | null;
1966
- jq: {
1967
- content?: string | undefined;
1968
- id?: string | undefined;
1969
- kwargs?: Record<string, unknown> | undefined;
1970
- } | null;
1971
- op_id: {
1972
- content?: string | undefined;
1973
- id?: string | undefined;
1974
- kwargs?: Record<string, unknown> | undefined;
1975
- } | null;
1976
- template_jq: string | null;
1977
- }[];
1978
- }[];
1979
- } | null;
1980
- target_kind: "tool" | "agent";
1981
- target_name: string;
2031
+ error: string | null;
2032
+ mode: "fleet";
2033
+ } | {
2034
+ op: string;
2035
+ reachable: boolean;
2036
+ local_only: boolean;
2037
+ results: {
2038
+ name: string;
2039
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2040
+ payload: unknown;
2041
+ error: string | null;
2042
+ detail: string | null;
2043
+ }[];
2044
+ error: string | null;
2045
+ mode: "unreachable";
1982
2046
  };
1983
2047
  }>;
1984
- readonly deleteConversationConfig: (targetKind: import("@tai42/api-client").ConversationTargetKind, targetName: string) => Promise<{
1985
- removed: boolean;
1986
- target_kind: "tool" | "agent";
1987
- target_name: string;
2048
+ readonly getBackendInfo: (signal?: AbortSignal) => Promise<{
2049
+ present: boolean;
2050
+ backend: string | null;
2051
+ module: string | null;
1988
2052
  }>;
1989
- readonly listFailedConversationMessages: (signal?: AbortSignal) => Promise<{
1990
- items: {
1991
- message_id: string;
1992
- route_name: string;
1993
- door: "channel" | "api";
1994
- thread_id: string;
1995
- client_address: string;
1996
- caller_principal: string | null;
1997
- inbound_text: string;
1998
- answer_status: "error" | "silent" | "answered" | null;
1999
- answer: string | null;
2000
- origin: "client" | "operator";
2001
- delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
2002
- created_at: number;
2003
- updated_at: number;
2004
- channel?: string | null | undefined;
2005
- our_identity?: string | null | undefined;
2006
- provider_message_id?: string | null | undefined;
2007
- callback_url?: string | null | undefined;
2008
- error?: string | null | undefined;
2009
- outbound_message_ids?: string[] | undefined;
2010
- attempts?: number | undefined;
2053
+ readonly listFleetWorkers: (signal?: AbortSignal) => Promise<{
2054
+ workers: {
2055
+ name: string;
2056
+ kind: "backend" | "serve";
2057
+ pid: number;
2058
+ generation: number;
2059
+ joined_at: string;
2060
+ beat_at: string;
2061
+ state: "ready" | "resyncing" | "recycling";
2062
+ stale: boolean;
2063
+ last_op: {
2064
+ op: string;
2065
+ outcome: string;
2066
+ at: string;
2067
+ } | null;
2011
2068
  }[];
2012
- total: number;
2013
2069
  }>;
2014
- readonly deleteConversationThread: (routeName: string, threadId: string) => Promise<{
2015
- removed: number;
2016
- route_name: string;
2017
- thread_id: string;
2070
+ readonly reloadFleetConfig: (targets: string[] | null) => Promise<{
2071
+ op: string;
2072
+ reachable: boolean;
2073
+ local_only: boolean;
2074
+ results: {
2075
+ name: string;
2076
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2077
+ payload: unknown;
2078
+ error: string | null;
2079
+ detail: string | null;
2080
+ }[];
2081
+ error: string | null;
2018
2082
  }>;
2019
- readonly deleteConversationPerson: (personId: string) => Promise<{
2020
- person_id: string;
2021
- removed: number;
2022
- erased: boolean;
2083
+ readonly getStorageInfo: (signal?: AbortSignal) => Promise<{
2084
+ present: boolean;
2085
+ provider: string | null;
2086
+ module: string | null;
2023
2087
  }>;
2024
- readonly getWebEntryGate: (identity: string, signal?: AbortSignal) => Promise<{
2025
- enabled: boolean;
2026
- codes: {
2027
- code_id: string;
2028
- label: string | null;
2029
- created_at: string;
2030
- expires_at: string | null;
2031
- }[];
2088
+ readonly listStorageResources: (signal?: AbortSignal) => Promise<{
2089
+ resources: string[];
2032
2090
  }>;
2033
- readonly setWebEntryGate: (identity: string, enabled: boolean) => Promise<{
2034
- enabled: boolean;
2091
+ readonly statStorageResource: (id: string, signal?: AbortSignal) => Promise<{
2092
+ id: string;
2093
+ content_type: string | null;
2035
2094
  }>;
2036
- readonly mintWebEntryCode: (identity: string, body: import("@tai42/api-client").WebEntryCodeMintBody) => Promise<{
2037
- code: string;
2038
- code_id: string;
2039
- expires_at: string | null;
2095
+ readonly downloadStorageResource: (id: string, signal?: AbortSignal) => Promise<Blob>;
2096
+ readonly uploadStorageResource: (body: import("@tai42/api-client").StorageUploadBody) => Promise<{
2097
+ id: string;
2098
+ stored: true;
2040
2099
  }>;
2041
- readonly revokeWebEntryCode: (identity: string, codeId: string) => Promise<{
2042
- status: "revoked";
2100
+ readonly deleteStorageResource: (id: string) => Promise<{
2101
+ id: string;
2102
+ deleted: true;
2043
2103
  }>;
2044
- readonly listNotifications: (signal?: AbortSignal) => Promise<{
2045
- notifications: {
2046
- id: string;
2047
- message: string;
2048
- recipient: string | null;
2049
- created_at: string;
2050
- audience?: string | null | undefined;
2051
- media?: unknown[] | null | undefined;
2052
- template?: {
2053
- body_parameters: string[];
2054
- buttons: unknown[];
2055
- header_media: {
2056
- caption: string | null;
2057
- filename: string | null;
2058
- kind: "image" | "link" | "document" | "video" | "audio";
2059
- url: string;
2060
- } | null;
2061
- language: string;
2062
- name: string;
2063
- } | null | undefined;
2064
- options?: string[] | null | undefined;
2065
- }[];
2104
+ readonly deleteStorageDir: (path: string) => Promise<{
2105
+ dir: string;
2106
+ deleted: true;
2066
2107
  }>;
2067
- readonly listAgents: (signal?: AbortSignal) => Promise<{
2068
- items: {
2108
+ readonly listToolMeta: (signal?: AbortSignal) => Promise<{
2109
+ folders: {
2110
+ id: string;
2069
2111
  name: string;
2070
- description: string;
2071
- tool_name: string;
2072
- input_schema: Record<string, unknown>;
2073
- spec_runnable: boolean;
2112
+ parent_id: string | null;
2074
2113
  }[];
2075
- total: number;
2076
- }>;
2077
- readonly listSpecRunnableAgents: (signal?: AbortSignal) => Promise<{
2078
- items: {
2079
- name: string;
2080
- description: string;
2114
+ meta: {
2081
2115
  tool_name: string;
2082
- input_schema: Record<string, unknown>;
2083
- spec_runnable: boolean;
2116
+ display_name: string | null;
2117
+ folder_id: string | null;
2118
+ tags: string[];
2119
+ badges: string[];
2120
+ hidden: boolean | null;
2084
2121
  }[];
2085
- total: number;
2086
2122
  }>;
2087
- readonly streamAgentRun: (name: string, input: unknown, signal?: AbortSignal) => Promise<AsyncGenerator<import("@tai42/api-client").ParsedAgentEvent, any, any>>;
2088
- readonly streamAuthoredAgentRun: (name: string, input: unknown, signal?: AbortSignal) => Promise<AsyncGenerator<import("@tai42/api-client").ParsedAgentEvent, any, any>>;
2089
- readonly listHooks: (topic?: string, signal?: AbortSignal) => Promise<{
2090
- items: {
2091
- condition: {
2092
- content?: string | undefined;
2093
- id?: string | undefined;
2094
- kwargs?: Record<string, unknown> | undefined;
2095
- } | null;
2096
- execution_key: string;
2097
- execution_key_fingerprint: string;
2098
- expr: {
2099
- content?: string | undefined;
2100
- id?: string | undefined;
2101
- kwargs?: Record<string, unknown> | undefined;
2102
- } | null;
2103
- name: string;
2104
- state_binding: {
2105
- states: {
2106
- input_injections: {
2107
- into: string;
2108
- jq: {
2109
- content?: string | undefined;
2110
- id?: string | undefined;
2111
- kwargs?: Record<string, unknown> | undefined;
2112
- } | null;
2113
- template_jq: string | null;
2114
- }[];
2115
- scope_expr: {
2116
- content?: string | undefined;
2117
- id?: string | undefined;
2118
- kwargs?: Record<string, unknown> | undefined;
2119
- } | null;
2120
- state: string;
2121
- subject_expr: {
2122
- content?: string | undefined;
2123
- id?: string | undefined;
2124
- kwargs?: Record<string, unknown> | undefined;
2125
- };
2126
- templates: string[];
2127
- updates: {
2128
- adapter: {
2129
- content?: string | undefined;
2130
- id?: string | undefined;
2131
- kwargs?: Record<string, unknown> | undefined;
2132
- } | null;
2133
- jq: {
2134
- content?: string | undefined;
2135
- id?: string | undefined;
2136
- kwargs?: Record<string, unknown> | undefined;
2137
- } | null;
2138
- op_id: {
2139
- content?: string | undefined;
2140
- id?: string | undefined;
2141
- kwargs?: Record<string, unknown> | undefined;
2142
- } | null;
2143
- template_jq: string | null;
2144
- }[];
2145
- }[];
2146
- } | null;
2147
- subject: {
2148
- key_expr: {
2149
- content?: string | undefined;
2150
- id?: string | undefined;
2151
- kwargs?: Record<string, unknown> | undefined;
2152
- };
2153
- kind: string;
2154
- target_kind: "tool" | "agent";
2155
- target_name: string;
2156
- } | null;
2157
- tool: string;
2158
- tool_kwargs: Record<string, unknown>;
2159
- topic: string;
2123
+ readonly upsertToolMeta: (toolName: string, patch: import("@tai42/api-client").ToolMetaPatch) => Promise<{
2124
+ tool_name: string;
2125
+ display_name: string | null;
2126
+ folder_id: string | null;
2127
+ tags: string[];
2128
+ badges: string[];
2129
+ hidden: boolean | null;
2130
+ }>;
2131
+ readonly deleteToolMeta: (toolName: string) => Promise<{
2132
+ tool_name: string;
2133
+ deleted: true;
2134
+ }>;
2135
+ readonly createFolder: (name: string, parentId?: string | null) => Promise<{
2136
+ id: string;
2137
+ name: string;
2138
+ parent_id: string | null;
2139
+ }>;
2140
+ readonly renameFolder: (folderId: string, name: string) => Promise<{
2141
+ id: string;
2142
+ name: string;
2143
+ parent_id: string | null;
2144
+ }>;
2145
+ readonly moveFolder: (folderId: string, parentId: string | null) => Promise<{
2146
+ id: string;
2147
+ name: string;
2148
+ parent_id: string | null;
2149
+ }>;
2150
+ readonly deleteFolder: (folderId: string) => Promise<{
2151
+ folder_id: string;
2152
+ deleted: true;
2153
+ }>;
2154
+ readonly listStates: (signal?: AbortSignal) => Promise<{
2155
+ default_subject_kind: string;
2156
+ description: string;
2157
+ effective_schema: Record<string, unknown> | null;
2158
+ name: string;
2159
+ regimes: Record<string, unknown>[] | null;
2160
+ retention_days: number | null;
2161
+ subject_kinds: string[];
2162
+ updated_at: string | null;
2163
+ schema?: Record<string, unknown> | {
2164
+ content?: string | undefined;
2165
+ id?: string | undefined;
2166
+ kwargs?: Record<string, unknown> | undefined;
2167
+ } | undefined;
2168
+ }[]>;
2169
+ readonly getState: (name: string, signal?: AbortSignal) => Promise<{
2170
+ default_subject_kind: string;
2171
+ description: string;
2172
+ effective_schema: Record<string, unknown> | null;
2173
+ name: string;
2174
+ regimes: Record<string, unknown>[] | null;
2175
+ retention_days: number | null;
2176
+ subject_kinds: string[];
2177
+ updated_at: string | null;
2178
+ attachments: {
2179
+ template: string;
2180
+ path: string[];
2181
+ parameters: Record<string, unknown>;
2182
+ declarations: Record<string, unknown>;
2160
2183
  }[];
2161
- total: number;
2162
- topic_verifiers: Record<string, {
2163
- verifier: string;
2164
- config: Record<string, unknown>;
2165
- }>;
2166
- trigger_auth: Record<string, "public" | "verifier" | "token" | "token+api_key" | "out-of-service">;
2184
+ schema?: Record<string, unknown> | {
2185
+ content?: string | undefined;
2186
+ id?: string | undefined;
2187
+ kwargs?: Record<string, unknown> | undefined;
2188
+ } | undefined;
2167
2189
  }>;
2168
- readonly registerHook: (params: import("@tai42/api-client").HookRegister) => Promise<{
2169
- registered: boolean;
2190
+ readonly putState: (name: string, body: import("@tai42/api-client").StateDeclarationBody) => Promise<{
2191
+ default_subject_kind: string;
2192
+ description: string;
2193
+ effective_schema: Record<string, unknown> | null;
2170
2194
  name: string;
2195
+ regimes: Record<string, unknown>[] | null;
2196
+ retention_days: number | null;
2197
+ subject_kinds: string[];
2198
+ updated_at: string | null;
2199
+ attachments: {
2200
+ template: string;
2201
+ path: string[];
2202
+ parameters: Record<string, unknown>;
2203
+ declarations: Record<string, unknown>;
2204
+ }[];
2205
+ schema?: Record<string, unknown> | {
2206
+ content?: string | undefined;
2207
+ id?: string | undefined;
2208
+ kwargs?: Record<string, unknown> | undefined;
2209
+ } | undefined;
2171
2210
  }>;
2172
- readonly unregisterHook: (name: string) => Promise<{
2173
- removed: boolean;
2211
+ readonly deleteState: (name: string) => Promise<{
2174
2212
  name: string;
2213
+ deleted: true;
2175
2214
  }>;
2176
- readonly listHookVerifiers: (signal?: AbortSignal) => Promise<string[]>;
2177
- readonly setTopicVerifier: (topic: string, body: import("@tai42/api-client").TopicVerifierBody) => Promise<{
2178
- topic: string;
2179
- verifier: string;
2215
+ readonly getStateStats: (name: string, signal?: AbortSignal) => Promise<{
2216
+ records: number;
2217
+ per_field: Record<string, number>;
2218
+ per_kind: Record<string, number>;
2219
+ consumers: number;
2180
2220
  }>;
2181
- readonly deleteTopicVerifier: (topic: string) => Promise<{
2182
- removed: boolean;
2183
- topic: string;
2221
+ readonly listStateAttachments: (name: string, signal?: AbortSignal) => Promise<{
2222
+ template: string;
2223
+ path: string[];
2224
+ parameters: Record<string, unknown>;
2225
+ declarations: Record<string, unknown>;
2226
+ }[]>;
2227
+ readonly getStateAttachment: (name: string, template: string, signal?: AbortSignal) => Promise<{
2228
+ template: string;
2229
+ path: string[];
2230
+ parameters: Record<string, unknown>;
2231
+ declarations: Record<string, unknown>;
2184
2232
  }>;
2185
- readonly createTriggerLink: (body: import("@tai42/api-client").TriggerLinkCreateBody) => Promise<{
2186
- name: string;
2187
- trigger_path: string;
2188
- token: string;
2189
- topic: string;
2190
- expires_at: string | null;
2233
+ readonly attachStateTemplate: (name: string, template: string, body: import("@tai42/api-client").StateAttachmentBody) => Promise<{
2234
+ attached: true;
2235
+ state: string;
2236
+ template: string;
2191
2237
  }>;
2192
- readonly listTriggerLinks: (signal?: AbortSignal) => Promise<{
2193
- items: {
2194
- name: string;
2195
- topic: string;
2196
- execution_key: string;
2197
- trigger_auth: "public" | "verifier" | "token" | "token+api_key" | "out-of-service";
2198
- tool_kwargs: Record<string, unknown> | null;
2199
- created_by: string | null;
2200
- created_at: string;
2201
- expires_at: string | null;
2202
- token_hash_prefix: string;
2238
+ readonly patchStateAttachment: (name: string, template: string, body: import("@tai42/api-client").StateAttachmentBody) => Promise<{
2239
+ updated: true;
2240
+ state: string;
2241
+ template: string;
2242
+ }>;
2243
+ readonly detachStateTemplate: (name: string, template: string) => Promise<{
2244
+ detached: true;
2245
+ state: string;
2246
+ template: string;
2247
+ }>;
2248
+ readonly listStateSubjects: (name: string, params: {
2249
+ kind?: string;
2250
+ } & import("@tai42/api-client").StatePageQuery, signal?: AbortSignal) => Promise<{
2251
+ subjects: {
2252
+ subject: {
2253
+ target_kind: "tool" | "agent";
2254
+ target_name: string;
2255
+ kind: string;
2256
+ key: string;
2257
+ };
2258
+ updated_at: number;
2203
2259
  }[];
2204
- total: number;
2260
+ next_cursor: string | null;
2205
2261
  }>;
2206
- readonly deleteTriggerLink: (name: string) => Promise<{
2207
- removed: boolean;
2208
- name: string;
2262
+ readonly searchStateRecords: (name: string, body: {
2263
+ filters: Record<string, unknown>;
2264
+ } & import("@tai42/api-client").StatePageQuery, signal?: AbortSignal) => Promise<{
2265
+ matches: {
2266
+ subject: {
2267
+ target_kind: "tool" | "agent";
2268
+ target_name: string;
2269
+ kind: string;
2270
+ key: string;
2271
+ };
2272
+ updated_at: number;
2273
+ }[];
2274
+ next_cursor: string | null;
2209
2275
  }>;
2210
- readonly getMcpConfigSchema: (signal?: AbortSignal) => Promise<Record<string, unknown>>;
2211
- readonly getSettingsSchema: (signal?: AbortSignal) => Promise<{
2212
- groups: {
2213
- name: string;
2214
- module: string;
2215
- qualname: string;
2216
- fields: {
2217
- name: string;
2218
- env_var: string;
2219
- type: string;
2220
- default: unknown;
2221
- required: boolean;
2222
- secret: boolean;
2223
- description: string | null;
2224
- nested_group: string | null;
2225
- default_namespace_var: string | null;
2226
- value: unknown;
2227
- }[];
2276
+ readonly getStateRecord: (name: string, subject: import("@tai42/api-client").StateSubjectRef, signal?: AbortSignal) => Promise<{
2277
+ state: string;
2278
+ subject: {
2279
+ target_kind: "tool" | "agent";
2280
+ target_name: string;
2281
+ kind: string;
2282
+ key: string;
2283
+ };
2284
+ data: Record<string, unknown>;
2285
+ seq: number;
2286
+ canonical_subject: {
2287
+ target_kind: "tool" | "agent";
2288
+ target_name: string;
2289
+ kind: string;
2290
+ key: string;
2291
+ };
2292
+ folded_from: {
2293
+ target_kind: "tool" | "agent";
2294
+ target_name: string;
2295
+ kind: string;
2296
+ key: string;
2297
+ }[];
2298
+ } | null>;
2299
+ readonly putStateRecord: (name: string, subject: import("@tai42/api-client").StateSubjectRef, data: Record<string, unknown>) => Promise<{
2300
+ state: string;
2301
+ subject: {
2302
+ target_kind: "tool" | "agent";
2303
+ target_name: string;
2304
+ kind: string;
2305
+ key: string;
2306
+ };
2307
+ data: Record<string, unknown>;
2308
+ seq: number;
2309
+ canonical_subject: {
2310
+ target_kind: "tool" | "agent";
2311
+ target_name: string;
2312
+ kind: string;
2313
+ key: string;
2314
+ };
2315
+ folded_from: {
2316
+ target_kind: "tool" | "agent";
2317
+ target_name: string;
2318
+ kind: string;
2319
+ key: string;
2228
2320
  }[];
2229
2321
  }>;
2230
- readonly listScopes: (signal?: AbortSignal) => Promise<Record<string, string>>;
2231
- readonly addUrlToScope: (body: import("@tai42/api-client").AddUrlToScopeBody) => Promise<{
2232
- scope_id: string;
2233
- url: string;
2322
+ readonly patchStateRecord: (name: string, subject: import("@tai42/api-client").StateSubjectRef, data: Record<string, unknown>) => Promise<{
2323
+ state: string;
2324
+ subject: {
2325
+ target_kind: "tool" | "agent";
2326
+ target_name: string;
2327
+ kind: string;
2328
+ key: string;
2329
+ };
2330
+ data: Record<string, unknown>;
2331
+ seq: number;
2332
+ canonical_subject: {
2333
+ target_kind: "tool" | "agent";
2334
+ target_name: string;
2335
+ kind: string;
2336
+ key: string;
2337
+ };
2338
+ folded_from: {
2339
+ target_kind: "tool" | "agent";
2340
+ target_name: string;
2341
+ kind: string;
2342
+ key: string;
2343
+ }[];
2234
2344
  }>;
2235
- readonly removeUrlFromScope: (body: {
2236
- url: string;
2345
+ readonly applyStateRecord: (name: string, subject: import("@tai42/api-client").StateSubjectRef, ops: readonly Record<string, unknown>[]) => Promise<{
2346
+ applied: boolean;
2347
+ data: Record<string, unknown> | null;
2348
+ seq: number | null;
2349
+ skipped: Record<string, unknown>[];
2350
+ }>;
2351
+ readonly evalTemplateJq: (name: string, subject: import("@tai42/api-client").StateSubjectRef, jqName: string, params?: Record<string, unknown>, signal?: AbortSignal) => Promise<{
2352
+ name: string;
2353
+ purpose: "input";
2354
+ value: unknown;
2355
+ }>;
2356
+ readonly applyTemplateJq: (name: string, subject: import("@tai42/api-client").StateSubjectRef, jqName: string, body?: {
2357
+ input?: unknown;
2358
+ op_id?: string;
2237
2359
  }) => Promise<{
2238
- url: string;
2360
+ name: string;
2361
+ applied: boolean;
2362
+ data: Record<string, unknown> | null;
2363
+ seq: number | null;
2364
+ skipped: Record<string, unknown>[];
2239
2365
  }>;
2240
- readonly removeScope: (scopeId: string) => Promise<{
2241
- scope_id: string;
2242
- deleted_keys: number;
2366
+ readonly deleteStateRecord: (name: string, subject: import("@tai42/api-client").StateSubjectRef) => Promise<{
2367
+ erased: true;
2243
2368
  }>;
2244
- readonly listAuthRoutes: (signal?: AbortSignal) => Promise<{
2245
- path: string;
2246
- methods: string[];
2247
- mapped: string | null;
2248
- tags: string[];
2249
- summary: string;
2250
- action: "read" | "write" | "secret" | "fenced" | null;
2251
- }[]>;
2252
- readonly listPublicRoutes: (signal?: AbortSignal) => Promise<string[]>;
2253
- readonly pinRoutePublic: (body: import("@tai42/api-client").PinRoutePublicBody) => Promise<{
2254
- url: string;
2369
+ readonly foldStateRecord: (name: string, subject: import("@tai42/api-client").StateSubjectRef, into: import("@tai42/api-client").StateSubjectRef, mode: "switch" | "merge") => Promise<{
2370
+ mode: "switch" | "merge";
2371
+ from: {
2372
+ kind: string;
2373
+ key: string;
2374
+ };
2375
+ into: {
2376
+ kind: string;
2377
+ key: string;
2378
+ };
2379
+ already: boolean;
2380
+ flattened: number;
2255
2381
  }>;
2256
- readonly unpinPublicRoute: (url: string) => Promise<{
2257
- url: string;
2382
+ readonly listStateWrites: (name: string, subject: import("@tai42/api-client").StateSubjectRef, params?: import("@tai42/api-client").StatePageQuery, signal?: AbortSignal) => Promise<{
2383
+ items: {
2384
+ seq: number;
2385
+ at: string;
2386
+ origin: {
2387
+ consumer: string | null;
2388
+ meta: Record<string, unknown> | null;
2389
+ run_id: string | null;
2390
+ op_id: string | null;
2391
+ door: string;
2392
+ actor: string | null;
2393
+ turn_id: string | null;
2394
+ inbound_id: string | null;
2395
+ };
2396
+ paths: (string | number)[][];
2397
+ }[];
2398
+ next_cursor: string | null;
2258
2399
  }>;
2259
- readonly listRoles: (signal?: AbortSignal) => Promise<{
2260
- allow_all: boolean;
2261
- base_tier: string | null;
2262
- condition: {
2263
- content?: string | undefined;
2264
- id?: string | undefined;
2265
- kwargs?: Record<string, unknown> | undefined;
2400
+ readonly stateConsumers: (name: string, signal?: AbortSignal) => Promise<{
2401
+ kind: string;
2402
+ name: string | null;
2403
+ detail: string | null;
2404
+ link: {
2405
+ token: string | null;
2406
+ plugin_path: string | null;
2407
+ search: Record<string, unknown> | null;
2266
2408
  } | null;
2267
- description: string;
2268
- grants: Record<string, "none" | "read" | "write">;
2269
- name: string;
2270
- scopes: string[];
2409
+ unavailable: string | null;
2271
2410
  }[]>;
2272
- readonly createRole: (body: import("@tai42/api-client").RoleCreateBody) => Promise<{
2273
- allow_all: boolean;
2274
- base_tier: string | null;
2275
- condition: {
2276
- content?: string | undefined;
2277
- id?: string | undefined;
2278
- kwargs?: Record<string, unknown> | undefined;
2411
+ readonly listStateTemplates: (signal?: AbortSignal) => Promise<{
2412
+ declarations: {
2413
+ check: {
2414
+ content?: string | undefined;
2415
+ id?: string | undefined;
2416
+ kwargs?: Record<string, unknown> | undefined;
2417
+ } | null;
2418
+ schema: Record<string, unknown>;
2279
2419
  } | null;
2280
2420
  description: string;
2281
- grants: Record<string, "none" | "read" | "write">;
2421
+ kind: "state-template";
2282
2422
  name: string;
2283
- scopes: string[];
2284
- }>;
2285
- readonly updateRole: (name: string, body: import("@tai42/api-client").RoleUpdateBody) => Promise<{
2286
- allow_all: boolean;
2287
- base_tier: string | null;
2288
- condition: {
2423
+ parameters: Record<string, unknown>;
2424
+ reconcile: {
2425
+ close: {
2426
+ content?: string | undefined;
2427
+ id?: string | undefined;
2428
+ kwargs?: Record<string, unknown> | undefined;
2429
+ };
2430
+ orphans: {
2431
+ content?: string | undefined;
2432
+ id?: string | undefined;
2433
+ kwargs?: Record<string, unknown> | undefined;
2434
+ };
2435
+ resolutions: {
2436
+ content?: string | undefined;
2437
+ id?: string | undefined;
2438
+ kwargs?: Record<string, unknown> | undefined;
2439
+ };
2440
+ } | null;
2441
+ regimes: Record<string, unknown>[];
2442
+ template_jq: Record<string, {
2443
+ description: string;
2444
+ jq: {
2445
+ content?: string | undefined;
2446
+ id?: string | undefined;
2447
+ kwargs?: Record<string, unknown> | undefined;
2448
+ };
2449
+ params: string[];
2450
+ purpose: "input" | "update";
2451
+ reads: string[][];
2452
+ writes: string[][];
2453
+ }> | null;
2454
+ trace: Record<string, unknown>;
2455
+ attached_to: number;
2456
+ shipped_default: boolean;
2457
+ schema?: Record<string, unknown> | {
2289
2458
  content?: string | undefined;
2290
2459
  id?: string | undefined;
2291
2460
  kwargs?: Record<string, unknown> | undefined;
2461
+ } | undefined;
2462
+ }[]>;
2463
+ readonly getStateTemplate: (name: string, signal?: AbortSignal) => Promise<{
2464
+ declarations: {
2465
+ check: {
2466
+ content?: string | undefined;
2467
+ id?: string | undefined;
2468
+ kwargs?: Record<string, unknown> | undefined;
2469
+ } | null;
2470
+ schema: Record<string, unknown>;
2292
2471
  } | null;
2293
2472
  description: string;
2294
- grants: Record<string, "none" | "read" | "write">;
2295
- name: string;
2296
- scopes: string[];
2297
- }>;
2298
- readonly deleteRole: (name: string) => Promise<{
2473
+ kind: "state-template";
2299
2474
  name: string;
2300
- deleted: boolean;
2301
- }>;
2302
- readonly listRoleVersions: (name: string, signal?: AbortSignal) => Promise<{
2303
- versions: {
2304
- version: number;
2305
- body: {
2306
- allow_all: boolean;
2307
- base_tier: string | null;
2308
- condition: {
2309
- content?: string | undefined;
2310
- id?: string | undefined;
2311
- kwargs?: Record<string, unknown> | undefined;
2312
- } | null;
2313
- description: string;
2314
- grants: Record<string, "none" | "read" | "write">;
2315
- name: string;
2316
- scopes: string[];
2475
+ parameters: Record<string, unknown>;
2476
+ reconcile: {
2477
+ close: {
2478
+ content?: string | undefined;
2479
+ id?: string | undefined;
2480
+ kwargs?: Record<string, unknown> | undefined;
2317
2481
  };
2318
- tags: string[];
2319
- created_at: string;
2320
- is_current: boolean;
2321
- }[];
2322
- audit: {
2323
- version: number;
2324
- body: {
2325
- action: string;
2326
- actor: string | null;
2327
- before: unknown;
2328
- after: unknown;
2482
+ orphans: {
2483
+ content?: string | undefined;
2484
+ id?: string | undefined;
2485
+ kwargs?: Record<string, unknown> | undefined;
2329
2486
  };
2330
- tags: string[];
2331
- created_at: string;
2332
- is_current: boolean;
2333
- }[];
2334
- }>;
2335
- readonly rollbackRole: (name: string, version: number) => Promise<{
2336
- allow_all: boolean;
2337
- base_tier: string | null;
2338
- condition: {
2487
+ resolutions: {
2488
+ content?: string | undefined;
2489
+ id?: string | undefined;
2490
+ kwargs?: Record<string, unknown> | undefined;
2491
+ };
2492
+ } | null;
2493
+ regimes: Record<string, unknown>[];
2494
+ template_jq: Record<string, {
2495
+ description: string;
2496
+ jq: {
2497
+ content?: string | undefined;
2498
+ id?: string | undefined;
2499
+ kwargs?: Record<string, unknown> | undefined;
2500
+ };
2501
+ params: string[];
2502
+ purpose: "input" | "update";
2503
+ reads: string[][];
2504
+ writes: string[][];
2505
+ }> | null;
2506
+ trace: Record<string, unknown>;
2507
+ schema?: Record<string, unknown> | {
2339
2508
  content?: string | undefined;
2340
2509
  id?: string | undefined;
2341
2510
  kwargs?: Record<string, unknown> | undefined;
2511
+ } | undefined;
2512
+ }>;
2513
+ readonly putStateTemplate: (name: string, body: import("@tai42/api-client").StateTemplateBody, replace?: boolean) => Promise<{
2514
+ declarations: {
2515
+ check: {
2516
+ content?: string | undefined;
2517
+ id?: string | undefined;
2518
+ kwargs?: Record<string, unknown> | undefined;
2519
+ } | null;
2520
+ schema: Record<string, unknown>;
2342
2521
  } | null;
2343
2522
  description: string;
2344
- grants: Record<string, "none" | "read" | "write">;
2523
+ kind: "state-template";
2345
2524
  name: string;
2346
- scopes: string[];
2347
- }>;
2348
- readonly listTokensPayload: (signal?: AbortSignal) => Promise<{
2349
- user_id: string;
2350
- description: string;
2351
- scopes: string[];
2352
- policy_data: unknown;
2353
- condition?: {
2525
+ parameters: Record<string, unknown>;
2526
+ reconcile: {
2527
+ close: {
2528
+ content?: string | undefined;
2529
+ id?: string | undefined;
2530
+ kwargs?: Record<string, unknown> | undefined;
2531
+ };
2532
+ orphans: {
2533
+ content?: string | undefined;
2534
+ id?: string | undefined;
2535
+ kwargs?: Record<string, unknown> | undefined;
2536
+ };
2537
+ resolutions: {
2538
+ content?: string | undefined;
2539
+ id?: string | undefined;
2540
+ kwargs?: Record<string, unknown> | undefined;
2541
+ };
2542
+ } | null;
2543
+ regimes: Record<string, unknown>[];
2544
+ template_jq: Record<string, {
2545
+ description: string;
2546
+ jq: {
2547
+ content?: string | undefined;
2548
+ id?: string | undefined;
2549
+ kwargs?: Record<string, unknown> | undefined;
2550
+ };
2551
+ params: string[];
2552
+ purpose: "input" | "update";
2553
+ reads: string[][];
2554
+ writes: string[][];
2555
+ }> | null;
2556
+ trace: Record<string, unknown>;
2557
+ schema?: Record<string, unknown> | {
2354
2558
  content?: string | undefined;
2355
2559
  id?: string | undefined;
2356
2560
  kwargs?: Record<string, unknown> | undefined;
2357
- } | null | undefined;
2358
- }[]>;
2359
- readonly createApiKey: (body: import("@tai42/api-client").ApiKeyBody) => Promise<string>;
2360
- readonly editApiKey: (userId: string, body: Omit<import("@tai42/api-client").ApiKeyBody, "user_id">) => Promise<{
2361
- user_id: string;
2362
- updated: boolean;
2363
- }>;
2364
- readonly revokeApiKey: (userId: string) => Promise<{
2365
- user_id: string;
2366
- revoked: boolean;
2367
- }>;
2368
- readonly createClaimLink: (body: import("@tai42/api-client").ClaimLinkBody) => Promise<{
2369
- claim_path: string;
2370
- token: string;
2371
- expires_at: string;
2372
- }>;
2373
- readonly getMe: (signal?: AbortSignal) => Promise<{
2374
- user_id: string;
2375
- owner_user_id: string | null;
2376
- admin: boolean;
2377
- scopes: string[];
2378
- routes: {
2379
- path: string;
2380
- methods: string[];
2381
- }[];
2382
- route_patterns: {
2383
- pattern: string;
2384
- scope_id: string;
2385
- }[];
2386
- sub_mcp: {
2387
- tools: string[];
2388
- transport: string;
2389
- slug: string;
2390
- }[];
2391
- tools: string[];
2392
- agents: string[];
2393
- mintable: boolean;
2394
- }>;
2395
- readonly getLoginMethods: (options?: {
2396
- signal?: AbortSignal;
2397
- }) => Promise<{
2398
- methods: ({
2399
- shape: "form";
2400
- id: string;
2401
- title: string;
2402
- purpose: "login" | "bootstrap" | "invite";
2403
- fields: {
2404
- name: string;
2405
- label: string;
2406
- secret: boolean;
2407
- autocomplete?: string | undefined;
2408
- }[];
2409
- submit_path: string;
2410
- } | {
2411
- shape: "button";
2412
- id: string;
2413
- label: string;
2414
- href: string;
2415
- icon?: string | undefined;
2416
- })[];
2417
- bootstrap: boolean;
2418
- }>;
2419
- readonly submitLoginForm: (path: string, values: Record<string, string>) => Promise<{
2420
- token: string;
2421
- user_id: string;
2561
+ } | undefined;
2422
2562
  }>;
2423
- readonly exchangeSsoCode: (code: string) => Promise<{
2424
- token: string;
2425
- user_id: string;
2563
+ readonly deleteStateTemplate: (name: string) => Promise<{
2564
+ name: string;
2565
+ deleted: true;
2426
2566
  }>;
2427
- readonly claimLogin: (body: {
2428
- token: string;
2429
- }) => Promise<{
2430
- token: string;
2431
- user_id: string;
2567
+ readonly pruneStateRetention: () => Promise<{
2568
+ pruned: Record<string, number>;
2432
2569
  }>;
2433
- readonly getAuthCapabilities: (signal?: AbortSignal) => Promise<{
2434
- mintable: boolean;
2435
- providers: {
2570
+ readonly listPresets: (signal?: AbortSignal) => Promise<{
2571
+ name: string;
2572
+ base_tool: string;
2573
+ description: string;
2574
+ active_version: number;
2575
+ extensions: (string | {
2436
2576
  name: string;
2437
- mintable: boolean;
2438
- }[];
2577
+ config: Record<string, unknown>;
2578
+ })[][];
2579
+ output_schema: Record<string, unknown> | null;
2580
+ input_schema: Record<string, unknown> | null;
2581
+ conflicted: boolean;
2582
+ conflicted_reason: string | null;
2583
+ uses: string[];
2584
+ used_by: string[];
2585
+ }[]>;
2586
+ readonly createPreset: (body: import("@tai42/api-client").CreatePresetBody) => Promise<{
2587
+ name: string;
2588
+ base_tool: string;
2589
+ description: string;
2590
+ active_version: number;
2591
+ extensions: (string | {
2592
+ name: string;
2593
+ config: Record<string, unknown>;
2594
+ })[][];
2595
+ output_schema: Record<string, unknown> | null;
2596
+ input_schema: Record<string, unknown> | null;
2597
+ conflicted: boolean;
2598
+ conflicted_reason: string | null;
2599
+ uses: string[];
2600
+ used_by: string[];
2439
2601
  }>;
2440
- readonly logout: () => Promise<{
2441
- revoked: boolean;
2602
+ readonly getPreset: (name: string, signal?: AbortSignal) => Promise<{
2603
+ name: string;
2604
+ base_tool: string;
2605
+ description: string;
2606
+ active_version: number;
2607
+ extensions: (string | {
2608
+ name: string;
2609
+ config: Record<string, unknown>;
2610
+ })[][];
2611
+ output_schema: Record<string, unknown> | null;
2612
+ input_schema: Record<string, unknown> | null;
2613
+ conflicted: boolean;
2614
+ conflicted_reason: string | null;
2615
+ uses: string[];
2616
+ used_by: string[];
2617
+ fixed_kwargs: Record<string, unknown>;
2442
2618
  }>;
2443
- readonly validateCondition: (body: import("@tai42/api-client").ValidateConditionBody) => Promise<{
2444
- ok: boolean;
2445
- result: boolean | null;
2619
+ readonly listPresetVersions: (name: string, signal?: AbortSignal) => Promise<{
2620
+ version: number;
2621
+ body: {
2622
+ base_tool: string;
2623
+ description: string;
2624
+ extensions: (string | Record<string, unknown>)[][];
2625
+ fixed_kwargs: Record<string, unknown>;
2626
+ input_schema: Record<string, unknown> | {
2627
+ content?: string | undefined;
2628
+ id?: string | undefined;
2629
+ kwargs?: Record<string, unknown> | undefined;
2630
+ } | null;
2631
+ output_schema: Record<string, unknown> | {
2632
+ content?: string | undefined;
2633
+ id?: string | undefined;
2634
+ kwargs?: Record<string, unknown> | undefined;
2635
+ } | null;
2636
+ state_binding: {
2637
+ states: {
2638
+ input_injections: {
2639
+ into: string;
2640
+ jq: {
2641
+ content?: string | undefined;
2642
+ id?: string | undefined;
2643
+ kwargs?: Record<string, unknown> | undefined;
2644
+ } | null;
2645
+ template_jq: string | null;
2646
+ }[];
2647
+ scope_expr: {
2648
+ content?: string | undefined;
2649
+ id?: string | undefined;
2650
+ kwargs?: Record<string, unknown> | undefined;
2651
+ } | null;
2652
+ state: string;
2653
+ subject_expr: {
2654
+ content?: string | undefined;
2655
+ id?: string | undefined;
2656
+ kwargs?: Record<string, unknown> | undefined;
2657
+ };
2658
+ templates: string[];
2659
+ updates: {
2660
+ adapter: {
2661
+ content?: string | undefined;
2662
+ id?: string | undefined;
2663
+ kwargs?: Record<string, unknown> | undefined;
2664
+ } | null;
2665
+ jq: {
2666
+ content?: string | undefined;
2667
+ id?: string | undefined;
2668
+ kwargs?: Record<string, unknown> | undefined;
2669
+ } | null;
2670
+ op_id: {
2671
+ content?: string | undefined;
2672
+ id?: string | undefined;
2673
+ kwargs?: Record<string, unknown> | undefined;
2674
+ } | null;
2675
+ template_jq: string | null;
2676
+ }[];
2677
+ }[];
2678
+ } | null;
2679
+ };
2680
+ tags: string[];
2681
+ created_at: string;
2682
+ is_current: boolean;
2683
+ }[]>;
2684
+ readonly getPresetVersion: (name: string, version: number, signal?: AbortSignal) => Promise<{
2685
+ version: number;
2686
+ body: {
2687
+ base_tool: string;
2688
+ description: string;
2689
+ extensions: (string | Record<string, unknown>)[][];
2690
+ fixed_kwargs: Record<string, unknown>;
2691
+ input_schema: Record<string, unknown> | {
2692
+ content?: string | undefined;
2693
+ id?: string | undefined;
2694
+ kwargs?: Record<string, unknown> | undefined;
2695
+ } | null;
2696
+ output_schema: Record<string, unknown> | {
2697
+ content?: string | undefined;
2698
+ id?: string | undefined;
2699
+ kwargs?: Record<string, unknown> | undefined;
2700
+ } | null;
2701
+ state_binding: {
2702
+ states: {
2703
+ input_injections: {
2704
+ into: string;
2705
+ jq: {
2706
+ content?: string | undefined;
2707
+ id?: string | undefined;
2708
+ kwargs?: Record<string, unknown> | undefined;
2709
+ } | null;
2710
+ template_jq: string | null;
2711
+ }[];
2712
+ scope_expr: {
2713
+ content?: string | undefined;
2714
+ id?: string | undefined;
2715
+ kwargs?: Record<string, unknown> | undefined;
2716
+ } | null;
2717
+ state: string;
2718
+ subject_expr: {
2719
+ content?: string | undefined;
2720
+ id?: string | undefined;
2721
+ kwargs?: Record<string, unknown> | undefined;
2722
+ };
2723
+ templates: string[];
2724
+ updates: {
2725
+ adapter: {
2726
+ content?: string | undefined;
2727
+ id?: string | undefined;
2728
+ kwargs?: Record<string, unknown> | undefined;
2729
+ } | null;
2730
+ jq: {
2731
+ content?: string | undefined;
2732
+ id?: string | undefined;
2733
+ kwargs?: Record<string, unknown> | undefined;
2734
+ } | null;
2735
+ op_id: {
2736
+ content?: string | undefined;
2737
+ id?: string | undefined;
2738
+ kwargs?: Record<string, unknown> | undefined;
2739
+ } | null;
2740
+ template_jq: string | null;
2741
+ }[];
2742
+ }[];
2743
+ } | null;
2744
+ };
2745
+ tags: string[];
2746
+ created_at: string;
2747
+ is_current: boolean;
2446
2748
  }>;
2447
- readonly listPolicyVersions: (userId: string, signal?: AbortSignal) => Promise<{
2749
+ readonly savePresetVersion: (name: string, body: import("@tai42/api-client").SavePresetVersionBody) => Promise<{
2448
2750
  version: number;
2449
2751
  body: {
2450
- condition: {
2752
+ base_tool: string;
2753
+ description: string;
2754
+ extensions: (string | Record<string, unknown>)[][];
2755
+ fixed_kwargs: Record<string, unknown>;
2756
+ input_schema: Record<string, unknown> | {
2451
2757
  content?: string | undefined;
2452
2758
  id?: string | undefined;
2453
2759
  kwargs?: Record<string, unknown> | undefined;
2454
2760
  } | null;
2455
- policy_data: Record<string, unknown>;
2456
- scopes: string[];
2457
- };
2458
- tags: string[];
2459
- created_at: string;
2460
- is_current: boolean;
2461
- }[]>;
2462
- readonly rollbackPolicy: (userId: string, version: number) => Promise<{
2463
- user_id: string;
2464
- active_version: number;
2465
- }>;
2466
- readonly listBackupSections: (signal?: AbortSignal) => Promise<{
2467
- name: string;
2468
- secret: boolean;
2469
- }[]>;
2470
- readonly exportBackup: (sections: string[], signal?: AbortSignal) => Promise<Blob>;
2471
- readonly importBackup: (body: {
2472
- document: unknown;
2473
- sections: string[];
2474
- }) => Promise<{
2475
- ok: boolean;
2476
- sections: Record<string, {
2477
- created: number;
2478
- updated: number;
2479
- skipped: number;
2480
- errors: string[];
2481
- new_api_keys?: {
2482
- user_id: string;
2483
- description: string;
2484
- api_key: string;
2485
- }[] | undefined;
2486
- fanout?: {
2487
- mode: "local-only";
2488
- note: string;
2489
- } | {
2490
- op: string;
2491
- reachable: boolean;
2492
- local_only: boolean;
2493
- results: {
2494
- name: string;
2495
- outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2496
- payload: unknown;
2497
- error: string | null;
2498
- detail: string | null;
2499
- }[];
2500
- error: string | null;
2501
- mode: "fleet";
2502
- } | {
2503
- op: string;
2504
- reachable: boolean;
2505
- local_only: boolean;
2506
- results: {
2507
- name: string;
2508
- outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2509
- payload: unknown;
2510
- error: string | null;
2511
- detail: string | null;
2761
+ output_schema: Record<string, unknown> | {
2762
+ content?: string | undefined;
2763
+ id?: string | undefined;
2764
+ kwargs?: Record<string, unknown> | undefined;
2765
+ } | null;
2766
+ state_binding: {
2767
+ states: {
2768
+ input_injections: {
2769
+ into: string;
2770
+ jq: {
2771
+ content?: string | undefined;
2772
+ id?: string | undefined;
2773
+ kwargs?: Record<string, unknown> | undefined;
2774
+ } | null;
2775
+ template_jq: string | null;
2776
+ }[];
2777
+ scope_expr: {
2778
+ content?: string | undefined;
2779
+ id?: string | undefined;
2780
+ kwargs?: Record<string, unknown> | undefined;
2781
+ } | null;
2782
+ state: string;
2783
+ subject_expr: {
2784
+ content?: string | undefined;
2785
+ id?: string | undefined;
2786
+ kwargs?: Record<string, unknown> | undefined;
2787
+ };
2788
+ templates: string[];
2789
+ updates: {
2790
+ adapter: {
2791
+ content?: string | undefined;
2792
+ id?: string | undefined;
2793
+ kwargs?: Record<string, unknown> | undefined;
2794
+ } | null;
2795
+ jq: {
2796
+ content?: string | undefined;
2797
+ id?: string | undefined;
2798
+ kwargs?: Record<string, unknown> | undefined;
2799
+ } | null;
2800
+ op_id: {
2801
+ content?: string | undefined;
2802
+ id?: string | undefined;
2803
+ kwargs?: Record<string, unknown> | undefined;
2804
+ } | null;
2805
+ template_jq: string | null;
2806
+ }[];
2512
2807
  }[];
2513
- error: string | null;
2514
- mode: "unreachable";
2515
- } | undefined;
2516
- }>;
2517
- }>;
2518
- readonly listSchedules: (signal?: AbortSignal) => Promise<{
2519
- [x: string]: unknown;
2520
- name: string;
2521
- enabled?: boolean | undefined;
2522
- schedule?: unknown;
2523
- target?: unknown;
2524
- args?: unknown[] | undefined;
2525
- kwargs?: Record<string, unknown> | undefined;
2526
- }[]>;
2527
- readonly getServerDateTime: (signal?: AbortSignal) => Promise<{
2528
- [x: string]: unknown;
2529
- utc: unknown;
2530
- local?: unknown;
2531
- system?: unknown;
2532
- }>;
2533
- readonly addSchedule: (body: {
2534
- tool_name: string;
2535
- tool_kwargs: Record<string, unknown>;
2536
- schedule_kwargs: Record<string, unknown>;
2537
- state_binding?: import("@tai42/api-client").StateBinding | null;
2538
- }) => Promise<unknown>;
2539
- readonly deleteSchedule: (name: string) => Promise<unknown>;
2540
- readonly getObservabilityMetrics: (params?: import("@tai42/api-client").MetricsQuery, signal?: AbortSignal) => Promise<{
2541
- summary: {
2542
- totalRuns: number;
2543
- totalCost: number;
2544
- totalTokens: number;
2545
- averageLatencyMs: number;
2546
- avgCostPerRun: number;
2547
- avgTokensPerRun: number;
2548
- timeToFirstTokenMs: number | null;
2808
+ } | null;
2549
2809
  };
2550
- timeSeries: {
2551
- bucket: string | null;
2552
- runs: number;
2553
- cost: number;
2554
- avgLatencyMs: number;
2555
- totalTokens: number;
2556
- }[];
2557
- byModel: {
2558
- model: string;
2559
- calls: number;
2560
- cost: number;
2561
- totalTokens: number;
2562
- avgLatencyMs: number;
2563
- }[];
2564
- granularity: "hour" | "day" | "week";
2565
- }>;
2566
- readonly listRuns: (params?: import("@tai42/api-client").RunsQuery, signal?: AbortSignal) => Promise<{
2567
- items: {
2568
- id: string;
2569
- traceId: string;
2570
- createdAt: string | null;
2571
- tags: string[];
2572
- status: "error" | "success";
2573
- cost: number | null;
2574
- latencyMs: number | null;
2575
- totalTokens: number | null;
2576
- inputPreview: unknown;
2577
- outputPreview: unknown;
2578
- }[];
2579
- page: number;
2580
- nextPage: number | null;
2581
- }>;
2582
- readonly getRunTrace: (traceId: string, signal?: AbortSignal) => Promise<{
2583
- traceId: string;
2584
- timestamp: string | null;
2585
2810
  tags: string[];
2586
- totalCost: number | null;
2587
- input: unknown;
2588
- output: unknown;
2589
- metadata: unknown;
2590
- spans: {
2591
- id: string;
2592
- parentId: string | null;
2593
- traceId: string | null;
2594
- name: string | null;
2595
- type: string | null;
2596
- level: string | null;
2597
- statusMessage: string | null;
2598
- start: string | null;
2599
- end: string | null;
2600
- model: string | null;
2601
- usage: unknown;
2602
- metadata: unknown;
2603
- input: unknown;
2604
- output: unknown;
2605
- nodeId: string | null;
2606
- }[];
2607
- }>;
2608
- readonly exportTrace: (traceId: string, signal?: AbortSignal) => Promise<Blob>;
2609
- readonly exportRuns: (params: import("@tai42/api-client").RunsQuery & {
2610
- format: "csv" | "json";
2611
- }, signal?: AbortSignal) => Promise<Blob>;
2612
- readonly searchMarketplace: (query?: import("@tai42/api-client").MarketplaceSearchQuery, signal?: AbortSignal) => Promise<{
2613
- listings: {
2614
- ref: string;
2615
- namespace: string;
2616
- name: string;
2617
- display_name: string | null;
2618
- icon_url: string | null;
2619
- package: string | null;
2620
- description: string;
2621
- categories: string[];
2622
- tags: string[];
2623
- trust_tier: string;
2624
- pricing: string;
2625
- latest_version: string | null;
2626
- downloads: number;
2627
- updated_at: string;
2628
- kinds: {
2629
- kind: string;
2630
- count: number;
2631
- names: string[];
2632
- }[];
2633
- groups: {
2634
- name: string;
2635
- count: number;
2636
- }[];
2637
- premium?: boolean | null | undefined;
2638
- }[];
2639
- total: number;
2640
- page: number;
2641
- page_size: number;
2811
+ created_at: string;
2812
+ is_current: boolean;
2642
2813
  }>;
2643
- readonly getMarketplacePlugin: (namespace: string, name: string, signal?: AbortSignal) => Promise<{
2644
- namespace: string;
2814
+ readonly rollbackPreset: (name: string, version: number) => Promise<{
2645
2815
  name: string;
2646
- display_name: string | null;
2647
- icon_url: string | null;
2648
- package: string | null;
2649
- description: string;
2650
- readme_md: string | null;
2651
- license: string | null;
2652
- homepage_url: string | null;
2653
- repository_url: string | null;
2654
- categories: string[];
2655
- tags: string[];
2656
- trust_tier: string;
2657
- pricing: string;
2658
- downloads: number;
2659
- latest: {
2660
- version: string;
2661
- contract_range: string | null;
2662
- status: string;
2663
- published_at: string | null;
2664
- items: {
2665
- kind: string;
2666
- name: string;
2667
- description: string;
2668
- tags: string[];
2669
- group: string | null;
2670
- routes?: {
2671
- base: string;
2672
- paths: {
2673
- path: string;
2674
- methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
2675
- public: boolean;
2676
- }[];
2677
- } | null | undefined;
2678
- required_env?: {
2679
- name: string;
2680
- secret: boolean;
2681
- }[] | undefined;
2682
- }[];
2683
- } | null;
2684
- versions: {
2685
- version: string;
2686
- contract_range: string | null;
2687
- status: string;
2688
- published_at: string | null;
2689
- }[];
2690
- source?: "pypi" | "github" | "spec" | null | undefined;
2691
- docs_url?: string | null | undefined;
2692
- premium?: boolean | null | undefined;
2816
+ active_version: number;
2693
2817
  }>;
2694
- readonly listMarketplaceCategories: (signal?: AbortSignal) => Promise<string[]>;
2695
- readonly listMarketplaceKinds: (signal?: AbortSignal) => Promise<string[]>;
2696
- readonly listInstalledMarketplacePlugins: (signal?: AbortSignal) => Promise<{
2697
- installed: {
2698
- ref: string;
2699
- version: string;
2700
- source: string;
2701
- delivery: "package" | "descriptor";
2702
- installed_at: string;
2703
- latest: string | null;
2704
- update_available: boolean;
2705
- incompatible_newer: string | null;
2706
- missing_upstream: boolean;
2707
- compat: {
2708
- status: "unknown" | "compatible" | "incompatible";
2709
- reason: string | null;
2710
- };
2711
- items: {
2712
- name: string;
2713
- kind: string;
2714
- }[];
2715
- route_mounts: Record<string, string>;
2716
- }[];
2717
- quarantined: {
2718
- name: string;
2719
- reason: string;
2720
- }[];
2818
+ readonly deletePreset: (name: string) => Promise<{
2819
+ name: string;
2820
+ deleted: true;
2721
2821
  }>;
2722
- readonly previewMarketplaceInstall: (body: import("@tai42/api-client").MarketplaceInstallPreviewBody, signal?: AbortSignal) => Promise<{
2723
- ref: string;
2724
- version: string;
2725
- items: {
2726
- item: string;
2727
- kind: string;
2728
- base: string;
2729
- default_base: string;
2730
- routes: {
2731
- path: string;
2732
- full_path: string;
2733
- methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
2734
- public: boolean;
2735
- }[];
2736
- }[];
2737
- collisions: {
2738
- item: string;
2739
- full_path: string;
2740
- methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
2741
- conflict_owner: string;
2742
- conflict_path: string;
2743
- }[];
2744
- public_routes: {
2745
- item: string;
2746
- full_path: string;
2747
- methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
2748
- }[];
2749
- new_public_routes: {
2750
- item: string;
2751
- full_path: string;
2752
- methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
2753
- }[];
2754
- requires_public_acceptance: boolean;
2755
- required_env: {
2756
- name: string;
2757
- secret: boolean;
2758
- }[];
2759
- missing_env: string[];
2760
- delivery: "package" | "descriptor";
2822
+ readonly renamePreset: (name: string, newName: string) => Promise<{
2823
+ name: string;
2824
+ renamed_from: string;
2825
+ active_version: number;
2761
2826
  }>;
2762
- readonly installMarketplacePlugin: (body: import("@tai42/api-client").MarketplaceInstallBody) => Promise<{
2763
- ref: string;
2764
- version: string;
2765
- notes: string[];
2766
- advisories: {
2767
- id: number;
2768
- listing: string;
2769
- affected_versions: string;
2770
- severity: string;
2771
- summary: string;
2772
- created_at: string;
2773
- withdrawn_at: string | null;
2774
- }[];
2775
- routes: {
2776
- item: string;
2777
- full_path: string;
2778
- methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
2779
- public: boolean;
2780
- }[];
2827
+ readonly getPresetReferees: (name: string, signal?: AbortSignal) => Promise<{
2828
+ name: string;
2829
+ referees: string[];
2781
2830
  }>;
2782
- readonly uninstallMarketplacePlugin: (body: import("@tai42/api-client").MarketplaceUninstallBody) => Promise<{
2783
- ref: string;
2784
- uninstalled: true;
2785
- notes: string[];
2831
+ readonly validatePreset: (body: import("@tai42/api-client").ValidatePresetBody) => Promise<{
2832
+ valid: boolean;
2833
+ error: string | null;
2786
2834
  }>;
2787
- readonly updateMarketplacePlugin: (body: import("@tai42/api-client").MarketplaceInstallBody) => Promise<{
2788
- ref: string;
2789
- version: string;
2790
- notes: string[];
2791
- advisories: {
2792
- id: number;
2793
- listing: string;
2794
- affected_versions: string;
2795
- severity: string;
2796
- summary: string;
2797
- created_at: string;
2798
- withdrawn_at: string | null;
2799
- }[];
2800
- routes: {
2801
- item: string;
2802
- full_path: string;
2803
- methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
2804
- public: boolean;
2805
- }[];
2835
+ readonly setPresetVersionTags: (name: string, version: number, tags: readonly string[]) => Promise<{
2836
+ name: string;
2837
+ version: number;
2838
+ tags: string[];
2806
2839
  }>;
2807
- readonly upgradeAllMarketplacePlugins: () => Promise<{
2840
+ readonly listTools: (signal?: AbortSignal) => Promise<string[]>;
2841
+ readonly getToolSchema: (name: string, signal?: AbortSignal) => Promise<{
2842
+ input: Record<string, unknown>;
2843
+ output: Record<string, unknown> | null;
2844
+ description: string | null;
2845
+ }>;
2846
+ readonly getAllToolSchemas: (signal?: AbortSignal) => Promise<Record<string, {
2847
+ input: Record<string, unknown>;
2848
+ output: Record<string, unknown> | null;
2849
+ description: string | null;
2850
+ }>>;
2851
+ readonly runTool: (args: import("@tai42/api-client").RunToolArgs, signal?: AbortSignal) => Promise<unknown>;
2852
+ readonly reloadTool: (args: import("@tai42/api-client").ToolAdminArgs) => Promise<{
2853
+ op: string;
2854
+ reachable: boolean;
2855
+ local_only: boolean;
2808
2856
  results: {
2809
- ref: string;
2810
- outcome: "failed" | "upgraded" | "up-to-date" | "no-compatible-version";
2811
- detail: string;
2857
+ name: string;
2858
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2859
+ payload: unknown;
2860
+ error: string | null;
2861
+ detail: string | null;
2812
2862
  }[];
2863
+ error: string | null;
2813
2864
  }>;
2814
- readonly getMarketplaceAdvisories: (signal?: AbortSignal) => Promise<{
2815
- advisories: {
2816
- id: number;
2817
- listing: string;
2818
- affected_versions: string;
2819
- severity: string;
2820
- summary: string;
2821
- created_at: string;
2822
- withdrawn_at: string | null;
2865
+ readonly removeTool: (args: import("@tai42/api-client").ToolAdminArgs) => Promise<{
2866
+ op: string;
2867
+ reachable: boolean;
2868
+ local_only: boolean;
2869
+ results: {
2870
+ name: string;
2871
+ outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
2872
+ payload: unknown;
2873
+ error: string | null;
2874
+ detail: string | null;
2823
2875
  }[];
2824
- fetched_at: string;
2876
+ error: string | null;
2825
2877
  }>;
2826
- readonly getHealth: (signal?: AbortSignal) => Promise<string>;
2827
- readonly getSystemKinds: (signal?: AbortSignal) => Promise<{
2828
- kind: string;
2829
- state: "default" | "active" | "off";
2830
- plugin: string | null;
2831
- detail: string;
2878
+ readonly submitToolRun: (args: import("@tai42/api-client").SubmitToolRunArgs, signal?: AbortSignal) => Promise<{
2879
+ run_id: string;
2880
+ }>;
2881
+ readonly getToolRun: (runId: string, signal?: AbortSignal) => Promise<{
2882
+ run_id: string;
2883
+ tool_name: string;
2884
+ status: "running" | "succeeded" | "failed" | "lost";
2885
+ started_at: string;
2886
+ finished_at?: string | undefined;
2887
+ result?: unknown;
2888
+ error?: string | undefined;
2889
+ }>;
2890
+ readonly listToolRuns: (toolName: string, signal?: AbortSignal) => Promise<{
2891
+ run_id: string;
2892
+ tool_name: string;
2893
+ status: "running" | "succeeded" | "failed" | "lost";
2894
+ started_at: string;
2895
+ finished_at?: string | undefined;
2832
2896
  }[]>;
2833
- readonly streamInteractions: (signal?: AbortSignal, lastEventId?: string) => Promise<AsyncGenerator<import("@tai42/api-client").SseFrame, any, any>>;
2897
+ readonly listToolTags: (signal?: AbortSignal) => Promise<{
2898
+ name: string;
2899
+ tags: string[];
2900
+ badges: string[];
2901
+ hidden: boolean;
2902
+ }[]>;
2903
+ readonly baseUrl: string;
2834
2904
  } | null>;
2835
2905
  export declare function useApi(): ApiClient;
2836
2906
  export type { ApiClient };