@tai42/studio-sdk 15.0.0 → 16.0.1

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