@makaio/framework 1.0.0-dev-1783705652236 → 1.0.0-dev-1783973359164

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 (460) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/account-identity-BYfeWLe-.mjs +1 -0
  3. package/dist/adapter-auth-runtime-a4O7cSNP.mjs +1 -0
  4. package/dist/adapter-binding-DDUyv1JK.d.mts +254 -0
  5. package/dist/{adapter-CA8rPIUz.mjs → adapter-nl_xz9dz.mjs} +1 -1
  6. package/dist/adapter-subsystem/index.d.mts +120 -5
  7. package/dist/adapter-subsystem/index.mjs +1 -1
  8. package/dist/adapters/acp-client/index.d.mts +10 -0
  9. package/dist/adapters/acp-client/index.mjs +2 -2
  10. package/dist/adapters/config/index.d.mts +176 -153
  11. package/dist/adapters/config/index.mjs +1 -1
  12. package/dist/adapters/index.d.mts +1021 -1005
  13. package/dist/adapters/index.mjs +6 -6
  14. package/dist/adapters/node.d.mts +1 -1
  15. package/dist/adapters/node.mjs +1 -1
  16. package/dist/adapters/stream-session/index.d.mts +7 -5
  17. package/dist/adapters/stream-session/index.mjs +1 -1
  18. package/dist/auth-C3NOWqTU.mjs +1 -0
  19. package/dist/authority-state-bootstrap-CEuKScnL.mjs +1 -0
  20. package/dist/{base-orchestrator-J1WKAUkF.d.mts → base-orchestrator-BiShpVKL.d.mts} +6 -0
  21. package/dist/bus/index.d.mts +10 -10
  22. package/dist/bus/index.mjs +1 -1
  23. package/dist/{canonical-model-DV-Z8gsb.mjs → canonical-model-C31NaBJs.mjs} +1 -1
  24. package/dist/client-BkpLM8Fx.mjs +1 -0
  25. package/dist/client-binary-version-verifier-BK_vIjIo.mjs +2 -0
  26. package/dist/client-binary-version-verifier-BwrMTAh2.d.mts +179 -0
  27. package/dist/clients/index.d.mts +69 -85
  28. package/dist/clients/index.mjs +1 -2
  29. package/dist/clients/managed-install.d.mts +2 -0
  30. package/dist/clients/managed-install.mjs +1 -0
  31. package/dist/{clients-namespace-Bt_VTkEU.d.mts → clients-namespace-B96QIJOs.d.mts} +224 -21
  32. package/dist/compression-CZ_6fYq8.mjs +1 -0
  33. package/dist/config-namespace-DTA6EQL8.mjs +1 -0
  34. package/dist/{config-namespace-DqdFE6zk.d.mts → config-namespace-x0fuhEXe.d.mts} +73 -1
  35. package/dist/contracts/adapter/index.d.mts +3 -3
  36. package/dist/contracts/adapter/index.mjs +1 -1
  37. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  38. package/dist/contracts/artifact/index.d.mts +1 -1
  39. package/dist/contracts/auth/index.d.mts +3 -0
  40. package/dist/contracts/auth/index.mjs +1 -0
  41. package/dist/contracts/canonical-model/index.d.mts +1 -1
  42. package/dist/contracts/canonical-model/index.mjs +1 -1
  43. package/dist/contracts/client/index.d.mts +3 -3
  44. package/dist/contracts/client/index.mjs +1 -1
  45. package/dist/contracts/common/index.d.mts +1 -1
  46. package/dist/contracts/config/index.d.mts +20 -93
  47. package/dist/contracts/config/index.mjs +1 -1
  48. package/dist/contracts/extension/index.d.mts +3 -3
  49. package/dist/contracts/extension/index.mjs +1 -1
  50. package/dist/contracts/facet/index.d.mts +1 -1
  51. package/dist/contracts/facet/index.mjs +1 -1
  52. package/dist/contracts/harness/index.d.mts +1 -1
  53. package/dist/contracts/harness/index.mjs +1 -1
  54. package/dist/contracts/host/index.d.mts +1 -1
  55. package/dist/contracts/host/index.mjs +1 -1
  56. package/dist/contracts/index.d.mts +1161 -140
  57. package/dist/contracts/index.mjs +1 -1
  58. package/dist/contracts/materialization/index.d.mts +3 -3
  59. package/dist/contracts/materialization/index.mjs +1 -1
  60. package/dist/contracts/model-registry/index.d.mts +1 -1
  61. package/dist/contracts/model-registry/index.mjs +1 -1
  62. package/dist/contracts/native-session-supervisor/index.d.mts +2 -2
  63. package/dist/contracts/native-session-supervisor/index.mjs +1 -1
  64. package/dist/contracts/platform/index.d.mts +1 -1
  65. package/dist/contracts/platform/index.mjs +1 -1
  66. package/dist/contracts/provider/index.d.mts +2 -2
  67. package/dist/contracts/provider/index.mjs +1 -1
  68. package/dist/contracts/session/index.d.mts +3 -3
  69. package/dist/contracts/session/index.mjs +1 -1
  70. package/dist/contracts/shared/index.d.mts +2 -2
  71. package/dist/contracts/shared/index.mjs +1 -1
  72. package/dist/contracts/skill/index.d.mts +1 -1
  73. package/dist/contracts/skill/index.mjs +1 -1
  74. package/dist/contracts/telemetry/index.d.mts +1 -1
  75. package/dist/contracts/telemetry/index.mjs +1 -1
  76. package/dist/contracts/timeout/index.d.mts +1 -1
  77. package/dist/contracts/timeout/index.mjs +1 -1
  78. package/dist/contracts/toast/index.mjs +1 -1
  79. package/dist/contracts/variant/index.d.mts +1 -1
  80. package/dist/contracts/variant/index.mjs +1 -1
  81. package/dist/contracts/workflow/index.d.mts +3 -3
  82. package/dist/contracts/workflow/index.mjs +1 -1
  83. package/dist/{definition-s9PIua2B.d.mts → definition-Bj9Vr16H.d.mts} +1 -1
  84. package/dist/{definition-Cllhr9mi.d.mts → definition-BsTlOz99.d.mts} +36 -4
  85. package/dist/{definition-CuJvtYeG.d.mts → definition-Cbl0k6Fc.d.mts} +31 -1
  86. package/dist/definition-K3m51lgO.mjs +1 -0
  87. package/dist/definitions-C1pgx0Nq.mjs +1 -0
  88. package/dist/{detached-extension-handle-Cx6-0eqg.mjs → detached-extension-handle-vDK194QV.mjs} +1 -1
  89. package/dist/drizzle/0026_m_mrgvi7fq.sql +16 -0
  90. package/dist/drizzle/0027_m_mrgw0uzg.sql +1 -0
  91. package/dist/drizzle/0028_m_mrgx04i1.sql +1 -0
  92. package/dist/drizzle/0029_terminal-authority.sql +1 -0
  93. package/dist/drizzle/meta/_journal.json +28 -0
  94. package/dist/execution-target-Bg2wpfML.mjs +1 -0
  95. package/dist/{extension-CJClssfp.mjs → extension-CjTu6mzW.mjs} +1 -1
  96. package/dist/extension-D4iKUUMG.mjs +1 -0
  97. package/dist/{filesystem-service-Bmyqo6po.mjs → filesystem-service-maY_P3yA.mjs} +1 -1
  98. package/dist/git/index.mjs +1 -1
  99. package/dist/{globby-D4SANVoq.mjs → globby-CisClzat.mjs} +1 -1
  100. package/dist/handlers-RGs3eC9X.mjs +57 -0
  101. package/dist/{harness-DkUpbsuY.mjs → harness-DflvHAGV.mjs} +1 -1
  102. package/dist/index-9dISOTLT.d.mts +174 -0
  103. package/dist/{index-B9d_8_V2.d.mts → index-9g0agW_p.d.mts} +55 -55
  104. package/dist/{index-DScUb-hF.d.mts → index-BDr2Ba122.d.mts} +34 -11
  105. package/dist/{index-BcvG3wPv.d.mts → index-BKZAAWo2.d.mts} +185 -45
  106. package/dist/{index-CaerrEDH.d.mts → index-Bbr5LEUc.d.mts} +2 -2
  107. package/dist/{index-C23g_M_J2.d.mts → index-BmsPH78f2.d.mts} +50 -5
  108. package/dist/index-ButbwvVY.d.mts +1175 -0
  109. package/dist/index-BxuiHVFi.d.mts +284 -0
  110. package/dist/{index-DnnKUwHm.d.mts → index-C2C1qH1Y.d.mts} +38 -32
  111. package/dist/{index-ntS1EXlf.d.mts → index-C6LZOiDv.d.mts} +150 -2
  112. package/dist/{index-C9FCWOhp.d.mts → index-COC9jCdc.d.mts} +124 -22
  113. package/dist/{index-Cx1Bm6WD.d.mts → index-CVs0Qxks.d.mts} +8 -8
  114. package/dist/index-CagRgpXI2.d.mts +84 -0
  115. package/dist/{index-DoEF9LAc.d.mts → index-CtjLeK1F.d.mts} +3 -3
  116. package/dist/{index-DZPNuWMc.d.mts → index-Cx8jGKOs.d.mts} +4 -4
  117. package/dist/{index-h5go5Dtd.d.mts → index-D75FnT0B.d.mts} +1 -1
  118. package/dist/{index-FFVwQMad.d.mts → index-DNkR5yTY.d.mts} +3401 -594
  119. package/dist/{index-wq7XeqyG.d.mts → index-DXBiCH2y.d.mts} +27 -1
  120. package/dist/{index-B2DjrVb8.d.mts → index-DpZbaS7y.d.mts} +1194 -87
  121. package/dist/{index-BvTd61i5.d.mts → index-T96ydgVk.d.mts} +260 -160
  122. package/dist/{index-DLNRgZPo2.d.mts → index-j2YlW_Fc.d.mts} +1 -1
  123. package/dist/{index-PIlYSC73.d.mts → index-x2gFj3BK.d.mts} +41 -28
  124. package/dist/kernel/cli/index.d.mts +2 -2
  125. package/dist/kernel/cli/index.mjs +1 -1
  126. package/dist/kernel/cli/register.d.mts +1 -1
  127. package/dist/kernel/cli/register.mjs +1 -1
  128. package/dist/kernel/cli/schemas.mjs +1 -1
  129. package/dist/kernel/extension/index.d.mts +1 -1
  130. package/dist/kernel/extension/index.mjs +1 -1
  131. package/dist/kernel/index.d.mts +5 -5
  132. package/dist/kernel/index.mjs +1 -1
  133. package/dist/kernel/namespace/index.d.mts +1 -1
  134. package/dist/kernel/namespace/index.mjs +1 -1
  135. package/dist/kernel/observability/index.d.mts +1 -1
  136. package/dist/kernel/observability/index.mjs +1 -1
  137. package/dist/kernel/providers/index.d.mts +1 -1
  138. package/dist/kernel/providers/index.mjs +1 -1
  139. package/dist/kernel/window/index.d.mts +1 -1
  140. package/dist/kernel/window/index.mjs +1 -1
  141. package/dist/{lib-BOmKyjWD.mjs → lib-DIVnpS8e.mjs} +1 -1
  142. package/dist/{lib-DLZYp5z3.mjs → lib-DymjnkAP.mjs} +1 -1
  143. package/dist/{load-extensions-DNRIy4zC.d.mts → load-extensions-_EnedkUp.d.mts} +1 -1
  144. package/dist/{load-extensions-Cze1RHcG.mjs → load-extensions-nqL5WAKj.mjs} +1 -1
  145. package/dist/mcp-http-server/index.d.mts +27 -90
  146. package/dist/mcp-http-server/index.mjs +2 -2
  147. package/dist/model-uE5IyUFJ.mjs +1 -0
  148. package/dist/namespace-C05pkLbN.mjs +1 -0
  149. package/dist/{namespace-D9PLFmPQ.d.mts → namespace-CCZXyxSe.d.mts} +18 -18
  150. package/dist/namespace-D7pE2QWv.mjs +1 -0
  151. package/dist/{namespace-dFBD2ZmS.mjs → namespace-DwQtzlY-.mjs} +1 -1
  152. package/dist/namespace-HsI0Jbbr.mjs +1 -0
  153. package/dist/namespace-VmsT_tLJ.d.mts +3729 -0
  154. package/dist/namespace-Xp9-g_r-.mjs +1 -0
  155. package/dist/{native-session-supervisor-7ElwM6Is.mjs → native-session-supervisor-CdtVGWA9.mjs} +1 -1
  156. package/dist/node/bus-server/index.d.mts +1 -1
  157. package/dist/node/bus-server/index.mjs +1 -1
  158. package/dist/node/bus-server/server-lifecycle.d.mts +1 -1
  159. package/dist/node/bus-server/server-lifecycle.mjs +1 -1
  160. package/dist/node/transports/index.d.mts +36 -1
  161. package/dist/node/transports/index.mjs +2 -2
  162. package/dist/{orchestrator-shared-ChygCvR1.mjs → orchestrator-shared-DAkGOu9H.mjs} +1 -1
  163. package/dist/{orchestrator-shared-DFLb1otg.d.mts → orchestrator-shared-pxtyNu3W.d.mts} +13 -6
  164. package/dist/package-BYpWkSuQ.mjs +1 -0
  165. package/dist/package-CsFFT9iR.mjs +7 -0
  166. package/dist/{package-DmVZxufT.d.mts → package-DG9GSY8M.d.mts} +52 -1
  167. package/dist/package.json +1 -1
  168. package/dist/{profile-BMBXUqqh.mjs → profile-D2m94ZYD.mjs} +1 -1
  169. package/dist/provider-context-BYkMl--1.mjs +1 -0
  170. package/dist/provider-context-DOsjOjiR.mjs +1 -0
  171. package/dist/{providers-namespace-5GoTlHXz.d.mts → providers-namespace-O4de1tgO.d.mts} +161 -14
  172. package/dist/resolved-O2XXjTeu.mjs +1 -0
  173. package/dist/rules/index.d.mts +1 -1
  174. package/dist/rules/index.mjs +1 -1
  175. package/dist/rules/schemas.d.mts +1 -1
  176. package/dist/runtime-bun/index.mjs +1 -1
  177. package/dist/runtime-node/client-binary-strategy-dependencies.d.mts +34 -0
  178. package/dist/runtime-node/client-binary-strategy-dependencies.mjs +1 -0
  179. package/dist/runtime-node/extension-discovery.d.mts +1 -1
  180. package/dist/runtime-node/extension-validation.d.mts +1 -1
  181. package/dist/runtime-node/extension-validation.mjs +1 -1
  182. package/dist/runtime-node/index.d.mts +25 -84
  183. package/dist/runtime-node/index.mjs +24 -24
  184. package/dist/runtime-node/makaio-config.d.mts +1 -1
  185. package/dist/runtime-node/makaio-config.mjs +1 -1
  186. package/dist/runtime-node/workflow-worker/index.d.mts +2 -2
  187. package/dist/runtime-node/workflow-worker/index.mjs +1 -1
  188. package/dist/runtime-node/workflow-worker/worker-entry.mjs +1 -1
  189. package/dist/{schema-7aKBGB7S.mjs → schema-BI0aCHvV.mjs} +1 -1
  190. package/dist/schemas-C-J4W1ID.mjs +1 -0
  191. package/dist/{schemas-Br-rSxPE2.d.mts → schemas-CoJCTFod2.d.mts} +8 -8
  192. package/dist/schemas-K3Td_WdR.d.mts +3175 -0
  193. package/dist/schemas-n9Ff6_RX.mjs +1 -0
  194. package/dist/schemas-th_nuC5t.mjs +1 -0
  195. package/dist/selection-YRuVSdck.mjs +1 -0
  196. package/dist/service-base/index.d.mts +4 -3
  197. package/dist/service-base/index.mjs +1 -1
  198. package/dist/services/adapter-runtime/index.d.mts +3 -3
  199. package/dist/services/adapter-runtime/index.mjs +1 -1
  200. package/dist/services/adapter-runtime/namespace.d.mts +1 -1
  201. package/dist/services/adapter-runtime/schemas.d.mts +1 -1
  202. package/dist/services/adapter-subsystem/index.d.mts +4 -3
  203. package/dist/services/adapter-subsystem/index.mjs +1 -1
  204. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  205. package/dist/services/adapter-subsystem/namespace.mjs +1 -1
  206. package/dist/services/agent-runtime/index.d.mts +2 -2
  207. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  208. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  209. package/dist/services/capability/index.d.mts +1 -1
  210. package/dist/services/capability/index.mjs +1 -1
  211. package/dist/services/codebase/index.d.mts +2 -2
  212. package/dist/services/codebase/namespace.d.mts +1 -1
  213. package/dist/services/codebase/schemas.d.mts +1 -1
  214. package/dist/services/compression/index.d.mts +2 -2
  215. package/dist/services/compression/namespace.d.mts +1 -1
  216. package/dist/services/compression/schemas.d.mts +1 -1
  217. package/dist/services/context-rules/index.d.mts +4 -4
  218. package/dist/services/context-rules/index.mjs +1 -1
  219. package/dist/services/definition/namespace.d.mts +1 -19
  220. package/dist/services/definition/schemas.d.mts +0 -9
  221. package/dist/services/definition/schemas.mjs +1 -1
  222. package/dist/services/execution-target/index.d.mts +4 -4
  223. package/dist/services/execution-target/index.mjs +1 -1
  224. package/dist/services/execution-target/namespace.d.mts +1 -1
  225. package/dist/services/execution-target/namespace.mjs +1 -1
  226. package/dist/services/execution-target/schemas.d.mts +1 -1
  227. package/dist/services/execution-target/schemas.mjs +1 -1
  228. package/dist/services/filesystem/index.d.mts +1 -1
  229. package/dist/services/filesystem/index.mjs +1 -1
  230. package/dist/services/git/namespace.mjs +1 -1
  231. package/dist/services/git/schemas.mjs +1 -1
  232. package/dist/services/harness/index.d.mts +6 -6
  233. package/dist/services/harness/index.mjs +1 -1
  234. package/dist/services/index.d.mts +1591 -173
  235. package/dist/services/index.mjs +1 -1
  236. package/dist/services/log-import/browser.d.mts +2 -2
  237. package/dist/services/log-import/index.d.mts +2 -2
  238. package/dist/services/log-import/log-import.d.mts +1 -1
  239. package/dist/services/log-import/log-import.mjs +1 -1
  240. package/dist/services/log-import/namespace.mjs +1 -1
  241. package/dist/services/log-import/schemas.mjs +1 -1
  242. package/dist/services/model-registry/index.d.mts +1 -1
  243. package/dist/services/model-registry/index.mjs +1 -1
  244. package/dist/services/preferences/index.d.mts +2 -2
  245. package/dist/services/preferences/schemas.d.mts +1 -1
  246. package/dist/services/preferences/storage-namespace.d.mts +2 -2
  247. package/dist/services/provider-context/index.d.mts +2 -2
  248. package/dist/services/provider-context/index.mjs +1 -1
  249. package/dist/services/provider-runtime/index.d.mts +18 -0
  250. package/dist/services/provider-runtime/index.mjs +1 -1
  251. package/dist/services/session/handlers/index.d.mts +1 -1
  252. package/dist/services/session/handlers/index.mjs +1 -1
  253. package/dist/services/session/index.d.mts +10 -10
  254. package/dist/services/session/index.mjs +1 -1
  255. package/dist/services/session/messages/namespace.d.mts +1 -1
  256. package/dist/services/session/messages/namespace.mjs +1 -1
  257. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  258. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  259. package/dist/services/session/session-events/namespace.d.mts +1 -1
  260. package/dist/services/session/session-events/namespace.mjs +1 -1
  261. package/dist/services/session/storage/namespace.d.mts +1 -1
  262. package/dist/services/session/storage/schema.d.mts +1 -1
  263. package/dist/services/session/testing/index.d.mts +2 -2
  264. package/dist/services/session/testing/index.mjs +10 -10
  265. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  266. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  267. package/dist/services/session/turns/namespace.d.mts +1 -1
  268. package/dist/services/session/turns/namespace.mjs +1 -1
  269. package/dist/services/session-editor/index.d.mts +1 -1
  270. package/dist/services/session-editor/index.mjs +1 -1
  271. package/dist/services/settings/index.d.mts +3 -3
  272. package/dist/services/settings/index.mjs +1 -1
  273. package/dist/services/settings/namespace.d.mts +18 -25
  274. package/dist/services/settings/namespace.mjs +1 -1
  275. package/dist/services/settings/storage/clients-namespace.d.mts +1 -1
  276. package/dist/services/settings/storage/clients-namespace.mjs +1 -1
  277. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  278. package/dist/services/settings/storage/index.d.mts +3 -3
  279. package/dist/services/settings/storage/index.mjs +1 -1
  280. package/dist/services/settings/storage/providers-namespace.d.mts +1 -1
  281. package/dist/services/settings/storage/providers-namespace.mjs +1 -1
  282. package/dist/services/subagent/index.d.mts +2 -2
  283. package/dist/services/subagent/index.mjs +1 -1
  284. package/dist/services/subagent-template/index.d.mts +2 -2
  285. package/dist/services/subagent-template/namespace.d.mts +1 -1
  286. package/dist/services/subagent-template/schemas.d.mts +1 -1
  287. package/dist/services/tool-approval/index.d.mts +1 -1
  288. package/dist/services/tool-approval/index.mjs +1 -1
  289. package/dist/services/tools/index.d.mts +1 -1
  290. package/dist/services/tools/index.mjs +1 -1
  291. package/dist/services/tray-menu/index.d.mts +3 -3
  292. package/dist/services/tray-menu/index.mjs +1 -1
  293. package/dist/services/tray-menu/namespace.d.mts +1 -1
  294. package/dist/services/tray-menu/schemas.d.mts +1 -1
  295. package/dist/services/turn/index.d.mts +1 -1
  296. package/dist/services/turn/namespace.d.mts +1 -1
  297. package/dist/session-CAjudDuJ.mjs +76 -0
  298. package/dist/{session-DBfQkgdy.mjs → session-lRd8HZNZ.mjs} +1 -1
  299. package/dist/{shared-BVW-3Dhy.mjs → shared-RP_KARKF.mjs} +1 -1
  300. package/dist/{skill-N-ttlp1i.mjs → skill-CpNjWFuE.mjs} +1 -1
  301. package/dist/{src-Ck2sbaDa.mjs → src-Bo2eA51B.mjs} +1 -1
  302. package/dist/storage/drizzle/client.d.mts +1 -1
  303. package/dist/storage/drizzle/client.mjs +1 -1
  304. package/dist/storage/drizzle/index.d.mts +9 -2
  305. package/dist/storage/drizzle/index.mjs +1 -1
  306. package/dist/storage/handlers/drizzle/index.d.mts +1 -1
  307. package/dist/storage/handlers/drizzle/index.mjs +1 -1
  308. package/dist/storage/handlers/index.d.mts +1 -1
  309. package/dist/storage/handlers/index.mjs +1 -1
  310. package/dist/{tool-approval-service-DEiMKTv9.mjs → tool-approval-service-Dh0XI21f.mjs} +1 -1
  311. package/dist/tools/index.d.mts +1 -1
  312. package/dist/tools-PC_L6g2m.mjs +1 -0
  313. package/dist/{transition-OzGXyy3p.d.mts → transition-CwUIm1hJ.d.mts} +10 -2
  314. package/dist/{types-BWduCvRU.d.mts → types-B-xY9WW2.d.mts} +1 -1
  315. package/dist/{types-CBLPaQXe.d.mts → types-BaDYigzD.d.mts} +486 -25
  316. package/dist/{types-BrUOVfwe.d.mts → types-DvKaEOOn.d.mts} +252 -19
  317. package/dist/ui-hooks/index.d.mts +103 -14
  318. package/dist/ui-hooks/index.mjs +1 -1
  319. package/dist/ui-kernel/index.d.mts +3 -3
  320. package/dist/ui-kernel/pages/schemas.d.mts +1 -1
  321. package/dist/utils/keychain.mjs +1 -1
  322. package/dist/{version-DoV_pSzT.mjs → version-C1-VD-XL.mjs} +1 -1
  323. package/dist/workflow-DFJYGjq_.mjs +1 -0
  324. package/dist/workflow-engine/index.d.mts +663 -60
  325. package/dist/workflow-engine/index.mjs +1 -1
  326. package/dist/workflow-engine/package.d.mts +1 -1
  327. package/dist/workflow-engine/package.mjs +1 -1
  328. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  329. package/dist/workflow-worker-BEFjCccX.mjs +1 -0
  330. package/package.json +13 -8
  331. package/dist/account-identity-C7Kx_ieU.mjs +0 -1
  332. package/dist/cleanEnvForAdapter-BooAgM2R.mjs +0 -1
  333. package/dist/client-DaR4mzqn.mjs +0 -1
  334. package/dist/compression-C5JAWdgZ.mjs +0 -1
  335. package/dist/config-namespace-CY9leBnE.mjs +0 -1
  336. package/dist/credential-ref-YWQQENEo.mjs +0 -1
  337. package/dist/definition-C-GVz7uw.mjs +0 -1
  338. package/dist/execution-target-BR8bLkCR.mjs +0 -1
  339. package/dist/extension-BS_4BOeO.mjs +0 -1
  340. package/dist/handlers-B74FvKlA.mjs +0 -57
  341. package/dist/index-BcwOnvUh.d.mts +0 -749
  342. package/dist/index-D6aAzr32.d.mts +0 -997
  343. package/dist/index-DtwGhFFQ.d.mts +0 -40
  344. package/dist/loop-gate-handlers-o2B5FPdF.mjs +0 -1
  345. package/dist/namespace-B4cV_pk3.d.mts +0 -1317
  346. package/dist/namespace-BO3tODGC.mjs +0 -1
  347. package/dist/namespace-CVMZVqB5.mjs +0 -1
  348. package/dist/namespace-DBHwyhME.mjs +0 -1
  349. package/dist/namespace-DibbhCPP.mjs +0 -1
  350. package/dist/package-CF_Zm2v4.mjs +0 -1
  351. package/dist/package-Co_GO3UD.mjs +0 -7
  352. package/dist/provider-context-CqMgPOWF.mjs +0 -1
  353. package/dist/provider-context-DC_eq7es.mjs +0 -1
  354. package/dist/schemas-CVo8qAK-.mjs +0 -1
  355. package/dist/schemas-CuG17U3L.mjs +0 -1
  356. package/dist/session-CX6QDhi2.mjs +0 -76
  357. package/dist/tools-CGFZkB7F.mjs +0 -1
  358. package/dist/workflow-C3dgVwTY.mjs +0 -1
  359. package/dist/workflow-worker-dH70EbjE.mjs +0 -1
  360. /package/dist/{ajv-B5dPIck0.mjs → ajv-DfHhgdS5.mjs} +0 -0
  361. /package/dist/{await-trigger-DwVldnMt.mjs → await-trigger-DP-fTQc4.mjs} +0 -0
  362. /package/dist/{capability-service-XlymTzz1.mjs → capability-service-Dg2bU8qc.mjs} +0 -0
  363. /package/dist/{client-CebV_fZc.d.mts → client-DmJwprw1.d.mts} +0 -0
  364. /package/dist/{create-static-mount-DkK28kKW.mjs → create-static-mount-CBTXRtbN.mjs} +0 -0
  365. /package/dist/{cross-spawn-CDXy3BjE.mjs → cross-spawn-D9WWFl2a.mjs} +0 -0
  366. /package/dist/{cursor-storage-luQAg7E_.mjs → cursor-storage-Bw-7ROzx.mjs} +0 -0
  367. /package/dist/{descriptor-to-package-DdpjpT7n.mjs → descriptor-to-package-Rs-OjOQU.mjs} +0 -0
  368. /package/dist/{drizzle-DVTAl7Us.mjs → drizzle-DYfaDzlO.mjs} +0 -0
  369. /package/dist/{esm-CQG9Pc7n.mjs → esm-C_WW4-pP.mjs} +0 -0
  370. /package/dist/{event-DguYjV6D.mjs → event-DTM0-qWP.mjs} +0 -0
  371. /package/dist/{extension-discovery-CIZn5bkq.d.mts → extension-discovery-APMf1Tes.d.mts} +0 -0
  372. /package/dist/{extension-namespace-v3K0qVry.mjs → extension-namespace-vrh4ERXR.mjs} +0 -0
  373. /package/dist/{facet-BM4y4aQP.mjs → facet-DqPBpqkl.mjs} +0 -0
  374. /package/dist/{filesystem-service-Cwp0sWNc.d.mts → filesystem-service-Bx0bR2Lb.d.mts} +0 -0
  375. /package/dist/{handler-BFNvtv5t.mjs → handler-4pKQi3eo.mjs} +0 -0
  376. /package/dist/{host-vY07gek-.mjs → host-BfgdjlII.mjs} +0 -0
  377. /package/dist/{identity-DC3Pk0ps.mjs → identity-2qUT1NME.mjs} +0 -0
  378. /package/dist/{index-COI1tjAf.d.mts → index-BZ_DSGnE.d.mts} +0 -0
  379. /package/dist/{index-D7rWAEY0.d.mts → index-Bd52mmj9.d.mts} +0 -0
  380. /package/dist/{index-Dfi8Rorw.d.mts → index-BkAKfh4d.d.mts} +0 -0
  381. /package/dist/{index-CuHqL95P.d.mts → index-Bv9lm0Kf.d.mts} +0 -0
  382. /package/dist/{index-C4nStEdA.d.mts → index-C18Pn3zP.d.mts} +0 -0
  383. /package/dist/{index-Cr9lh21j.d.mts → index-CarbJsC92.d.mts} +0 -0
  384. /package/dist/{index-BjoOSg95.d.mts → index-Ctw617Tj.d.mts} +0 -0
  385. /package/dist/{index-DUD7wikz2.d.mts → index-D0eUQjTU2.d.mts} +0 -0
  386. /package/dist/{index-O08Q2ikz.d.mts → index-DHGW7dFf.d.mts} +0 -0
  387. /package/dist/{index-DEzdNQum.d.mts → index-DfVSWBBp.d.mts} +0 -0
  388. /package/dist/{index-WHUV7neB.d.mts → index-DlAfs3RD.d.mts} +0 -0
  389. /package/dist/{index-D3ahzHwb.d.mts → index-DnWZdG6C.d.mts} +0 -0
  390. /package/dist/{index-CpKikwK4.d.mts → index-DoLdETfR.d.mts} +0 -0
  391. /package/dist/{index-B92mToDo2.d.mts → index-DvaPrL6C.d.mts} +0 -0
  392. /package/dist/{index-D7Hkmrr3.d.mts → index-DwDBa2mb.d.mts} +0 -0
  393. /package/dist/{index-Y8rMeYYX.d.mts → index-FDyqQIt5.d.mts} +0 -0
  394. /package/dist/{index-BWIkf5oJ.d.mts → index-Lp0T_V1W.d.mts} +0 -0
  395. /package/dist/{index-OGIC4puQ.d.mts → index-Rhcr4YNA.d.mts} +0 -0
  396. /package/dist/{index-BvLXySoB2.d.mts → index-S-mAqWwq.d.mts} +0 -0
  397. /package/dist/{index-DOOrKin9.d.mts → index-_zsihEmk.d.mts} +0 -0
  398. /package/dist/{json-value-DtIkQN7g.d.mts → json-value-C8duSh9X.d.mts} +0 -0
  399. /package/dist/{jsonl-transport-CGPgD8iU.mjs → jsonl-transport-l5NPcQ_2.mjs} +0 -0
  400. /package/dist/{lib-ZKtnbCqH.mjs → lib-ClRTNIuz.mjs} +0 -0
  401. /package/dist/{materialization-CUYxZCfk.mjs → materialization-BwTORtBr.mjs} +0 -0
  402. /package/dist/{model-registry-C2VXobZj.mjs → model-registry-BneK5SGo.mjs} +0 -0
  403. /package/dist/{model-registry-rYICIwyR.mjs → model-registry-C8MInDtX.mjs} +0 -0
  404. /package/dist/{namespace-65uwTpbg.d.mts → namespace-3YVLQ_bM.d.mts} +0 -0
  405. /package/dist/{namespace-BGIeqwfU.d.mts → namespace-B0uZIZYT.d.mts} +0 -0
  406. /package/dist/{namespace-CQ8uza7o.d.mts → namespace-BcDHt-ww.d.mts} +0 -0
  407. /package/dist/{namespace-BigVYQyx.d.mts → namespace-BhVlHfoO.d.mts} +0 -0
  408. /package/dist/{namespace-j7vFsmYL.d.mts → namespace-Bl1UhLnK.d.mts} +0 -0
  409. /package/dist/{namespace-CfvtDD_U.d.mts → namespace-BoA6u44C.d.mts} +0 -0
  410. /package/dist/{namespace-Dk4OslmY.d.mts → namespace-BsEoWXV_.d.mts} +0 -0
  411. /package/dist/{namespace-DYSFDC2G.mjs → namespace-C238RqwB.mjs} +0 -0
  412. /package/dist/{namespace-BdO4e1Fm.mjs → namespace-CDO4rY11.mjs} +0 -0
  413. /package/dist/{namespace-CZK2ff3B.d.mts → namespace-CukqFYHf2.d.mts} +0 -0
  414. /package/dist/{namespace-wke7juzy.mjs → namespace-DDx4NVJm.mjs} +0 -0
  415. /package/dist/{namespace-D1_9WVCo.d.mts → namespace-Dar3O6iT.d.mts} +0 -0
  416. /package/dist/{namespace-DAj_riOn.d.mts → namespace-DoNigVgx.d.mts} +0 -0
  417. /package/dist/{namespace-D2s-4pyg.d.mts → namespace-Dvi66QS6.d.mts} +0 -0
  418. /package/dist/{namespace-D8P8Sxce2.d.mts → namespace-rO-C2Dgu2.d.mts} +0 -0
  419. /package/dist/{out-BoEZjBNz.mjs → out-BB6Kb4Xu.mjs} +0 -0
  420. /package/dist/{platform-DnbSvm2u.mjs → platform-CWhGFQFX.mjs} +0 -0
  421. /package/dist/{providers-Bd7BOZs0.mjs → providers-CUnrif24.mjs} +0 -0
  422. /package/dist/{quick-lru-6e7I1Bgf.mjs → quick-lru-BLaSzINB.mjs} +0 -0
  423. /package/dist/{registry-U_3aYSin.mjs → registry-TJjQgTgp.mjs} +0 -0
  424. /package/dist/{schema-B5vHi7Uu.d.mts → schema-aOwmHxaF.d.mts} +0 -0
  425. /package/dist/{schema-CHp6I33k.mjs → schema-cus0dJ81.mjs} +0 -0
  426. /package/dist/{schema-introspection-B7xODt4I.mjs → schema-introspection-BsWLmoFp.mjs} +0 -0
  427. /package/dist/{schemas-KlH1hB7u.d.mts → schemas-9QJf1FtS.d.mts} +0 -0
  428. /package/dist/{schemas-CJ2JvA7d.d.mts → schemas-BolSW7pQ.d.mts} +0 -0
  429. /package/dist/{schemas-D4zaFE2p.d.mts → schemas-CLsbsX1W.d.mts} +0 -0
  430. /package/dist/{schemas-XeIBqwvE.mjs → schemas-CMyv7l7-.mjs} +0 -0
  431. /package/dist/{schemas-CPI00yvh.mjs → schemas-CWxf_Yut.mjs} +0 -0
  432. /package/dist/{schemas-BemsLc_V.d.mts → schemas-D_9X_CRo.d.mts} +0 -0
  433. /package/dist/{schemas-DZGnr9Tl.mjs → schemas-DwfTUQIa.mjs} +0 -0
  434. /package/dist/{schemas-CoFCV42v.d.mts → schemas-OaBqeEUT.d.mts} +0 -0
  435. /package/dist/{schemas-B6tEKf9T.d.mts → schemas-XRhqOgVE.d.mts} +0 -0
  436. /package/dist/{schemas-DKncXGnb.d.mts → schemas-fRLDhefF.d.mts} +0 -0
  437. /package/dist/{schemas-DWfo0wp4.d.mts → schemas-jDRSOXJL.d.mts} +0 -0
  438. /package/dist/{schemas-lnE9YoG7.d.mts → schemas-qpo1Goit.d.mts} +0 -0
  439. /package/dist/{schemas-t6h9oSct.d.mts → schemas-qt5QTjVc.d.mts} +0 -0
  440. /package/dist/{semver-CIhHqMkw.mjs → semver-BccS1s9R.mjs} +0 -0
  441. /package/dist/{server-lifecycle-C5Z5PSMD.mjs → server-lifecycle-D-jxVr_0.mjs} +0 -0
  442. /package/dist/{server-lifecycle-_AA6EfzL.d.mts → server-lifecycle-r5Tkk8bU.d.mts} +0 -0
  443. /package/dist/{session-lineage-C1M7-O3C.d.mts → session-lineage-YShrn77v.d.mts} +0 -0
  444. /package/dist/{shared-schemas-BEVG96xW.mjs → shared-schemas-BNCPgGYP.mjs} +0 -0
  445. /package/dist/{src-_VODAJnf.mjs → src-Ci_WY9uw.mjs} +0 -0
  446. /package/dist/{storage-namespace-D5q9CrBp.mjs → storage-namespace-BzE2M4Hq.mjs} +0 -0
  447. /package/dist/{storage-namespace-Di1A3DMm.d.mts → storage-namespace-DWKFqEW-.d.mts} +0 -0
  448. /package/dist/{storage-namespace-definition-CzXPW45M.mjs → storage-namespace-definition-4UYuij1r.mjs} +0 -0
  449. /package/dist/{storage-namespace-definition-BffdI5Bz.d.mts → storage-namespace-definition-BZJGSaX3.d.mts} +0 -0
  450. /package/dist/{supports-color-DcXkvGDF.mjs → supports-color-Dzp6WuF5.mjs} +0 -0
  451. /package/dist/{telemetry-Cvi4rxiE.mjs → telemetry-B42EMbZt.mjs} +0 -0
  452. /package/dist/{timeout-XsYIOKrc.mjs → timeout-CvONPl0l.mjs} +0 -0
  453. /package/dist/{tray-menu-service-B2AxiQqL.mjs → tray-menu-service-Bonl2KXf.mjs} +0 -0
  454. /package/dist/{types-Bo78h9e3.d.mts → types-BCW9kr4L.d.mts} +0 -0
  455. /package/dist/{types-DCvp_swt.d.mts → types-CrJ7KEZ0.d.mts} +0 -0
  456. /package/dist/{types-BNW5n6qm.d.mts → types-DWNoZ3Sd.d.mts} +0 -0
  457. /package/dist/{ui-config-9bDRwFZr.mjs → ui-config-B2L3Xgqo.mjs} +0 -0
  458. /package/dist/{variant-5huHjUTm.mjs → variant-ByI-RZua.mjs} +0 -0
  459. /package/dist/{window-registry-PkrFIwX2.mjs → window-registry-DsWnCc8z.mjs} +0 -0
  460. /package/dist/{window-registry-ofIUQnfo.d.mts → window-registry-WsWu-rcK.d.mts} +0 -0
@@ -0,0 +1,3175 @@
1
+ import { z } from "zod";
2
+
3
+ //#region services/core/src/adapter-subsystem/namespace-schemas.d.ts
4
+ /**
5
+ * Adapter-subsystem bus schemas.
6
+ *
7
+ * Each key becomes a subject identifier under the `adapterSubsystem.` namespace.
8
+ */
9
+ declare const AdapterSubsystemSchemas: {
10
+ /**
11
+ * Get one adapter config by adapter name.
12
+ */
13
+ getAdapterConfig: {
14
+ request: z.ZodObject<{
15
+ name: z.ZodString;
16
+ }, z.core.$strict>;
17
+ response: z.ZodObject<{
18
+ config: z.ZodNullable<z.ZodObject<{
19
+ description: z.ZodOptional<z.ZodString>;
20
+ displayName: z.ZodOptional<z.ZodString>;
21
+ protocol: z.ZodOptional<z.ZodString>;
22
+ clientId: z.ZodOptional<z.ZodString>;
23
+ helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
24
+ label: z.ZodString;
25
+ url: z.ZodString;
26
+ }, z.core.$strict>>>;
27
+ instructions: z.ZodOptional<z.ZodString>;
28
+ providerDefinitionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
29
+ settings: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
30
+ name: z.ZodString;
31
+ enabled: z.ZodBoolean;
32
+ bindings: z.ZodArray<z.ZodObject<{
33
+ adapterName: z.ZodString;
34
+ providerConfigId: z.ZodString;
35
+ isDefault: z.ZodBoolean;
36
+ }, z.core.$strict>>;
37
+ }, z.core.$strict>>;
38
+ }, z.core.$strict>;
39
+ };
40
+ /**
41
+ * List all adapter configs.
42
+ */
43
+ listAdapterConfigs: {
44
+ request: z.ZodObject<{}, z.core.$strict>;
45
+ response: z.ZodObject<{
46
+ configs: z.ZodArray<z.ZodObject<{
47
+ description: z.ZodOptional<z.ZodString>;
48
+ displayName: z.ZodOptional<z.ZodString>;
49
+ protocol: z.ZodOptional<z.ZodString>;
50
+ clientId: z.ZodOptional<z.ZodString>;
51
+ helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
52
+ label: z.ZodString;
53
+ url: z.ZodString;
54
+ }, z.core.$strict>>>;
55
+ instructions: z.ZodOptional<z.ZodString>;
56
+ providerDefinitionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
57
+ settings: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
58
+ name: z.ZodString;
59
+ enabled: z.ZodBoolean;
60
+ bindings: z.ZodArray<z.ZodObject<{
61
+ adapterName: z.ZodString;
62
+ providerConfigId: z.ZodString;
63
+ isDefault: z.ZodBoolean;
64
+ }, z.core.$strict>>;
65
+ }, z.core.$strict>>;
66
+ }, z.core.$strict>;
67
+ };
68
+ /**
69
+ * Get one provider config by ID.
70
+ */
71
+ getProviderConfig: {
72
+ request: z.ZodObject<{
73
+ id: z.ZodString;
74
+ }, z.core.$strict>;
75
+ response: z.ZodObject<{
76
+ config: z.ZodNullable<z.ZodObject<{
77
+ id: z.ZodString;
78
+ definitionId: z.ZodString;
79
+ name: z.ZodString;
80
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
81
+ anthropic: z.ZodOptional<z.ZodString>;
82
+ openai: z.ZodOptional<z.ZodString>;
83
+ }, z.core.$strict>>;
84
+ modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
85
+ disabled: "disabled";
86
+ enabled: "enabled";
87
+ visible: "visible";
88
+ }>>>;
89
+ modelFilterMode: z.ZodEnum<{
90
+ allowlist: "allowlist";
91
+ "show-all": "show-all";
92
+ }>;
93
+ isDefault: z.ZodBoolean;
94
+ enabled: z.ZodBoolean;
95
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
96
+ mode: z.ZodLiteral<"explicit">;
97
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
98
+ owner: z.ZodLiteral<"provider">;
99
+ providerDefinitionId: z.ZodString;
100
+ methodId: z.ZodString;
101
+ }, z.core.$strict>, z.ZodObject<{
102
+ owner: z.ZodLiteral<"client">;
103
+ clientId: z.ZodString;
104
+ methodId: z.ZodString;
105
+ }, z.core.$strict>], "owner">;
106
+ hasCredentials: z.ZodLiteral<true>;
107
+ }, z.core.$strict>, z.ZodObject<{
108
+ mode: z.ZodLiteral<"inferred">;
109
+ method: z.ZodObject<{
110
+ owner: z.ZodLiteral<"client">;
111
+ clientId: z.ZodString;
112
+ methodId: z.ZodString;
113
+ }, z.core.$strict>;
114
+ account: z.ZodOptional<z.ZodObject<{
115
+ managerId: z.ZodString;
116
+ accountId: z.ZodString;
117
+ }, z.core.$strict>>;
118
+ hasCredentials: z.ZodLiteral<false>;
119
+ }, z.core.$strict>, z.ZodObject<{
120
+ mode: z.ZodLiteral<"none">;
121
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
122
+ owner: z.ZodLiteral<"provider">;
123
+ providerDefinitionId: z.ZodString;
124
+ methodId: z.ZodString;
125
+ }, z.core.$strict>, z.ZodObject<{
126
+ owner: z.ZodLiteral<"client">;
127
+ clientId: z.ZodString;
128
+ methodId: z.ZodString;
129
+ }, z.core.$strict>], "owner">;
130
+ hasCredentials: z.ZodLiteral<false>;
131
+ }, z.core.$strict>], "mode">;
132
+ managedBy: z.ZodOptional<z.ZodObject<{
133
+ kind: z.ZodLiteral<"client">;
134
+ clientId: z.ZodString;
135
+ }, z.core.$strict>>;
136
+ }, z.core.$strict>>;
137
+ }, z.core.$strict>;
138
+ };
139
+ /**
140
+ * List provider configs, optionally filtering by enabled state.
141
+ */
142
+ listProviderConfigs: {
143
+ request: z.ZodObject<{
144
+ enabled: z.ZodOptional<z.ZodBoolean>;
145
+ }, z.core.$strict>;
146
+ response: z.ZodObject<{
147
+ configs: z.ZodArray<z.ZodObject<{
148
+ id: z.ZodString;
149
+ definitionId: z.ZodString;
150
+ name: z.ZodString;
151
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
152
+ anthropic: z.ZodOptional<z.ZodString>;
153
+ openai: z.ZodOptional<z.ZodString>;
154
+ }, z.core.$strict>>;
155
+ modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
156
+ disabled: "disabled";
157
+ enabled: "enabled";
158
+ visible: "visible";
159
+ }>>>;
160
+ modelFilterMode: z.ZodEnum<{
161
+ allowlist: "allowlist";
162
+ "show-all": "show-all";
163
+ }>;
164
+ isDefault: z.ZodBoolean;
165
+ enabled: z.ZodBoolean;
166
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
167
+ mode: z.ZodLiteral<"explicit">;
168
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
169
+ owner: z.ZodLiteral<"provider">;
170
+ providerDefinitionId: z.ZodString;
171
+ methodId: z.ZodString;
172
+ }, z.core.$strict>, z.ZodObject<{
173
+ owner: z.ZodLiteral<"client">;
174
+ clientId: z.ZodString;
175
+ methodId: z.ZodString;
176
+ }, z.core.$strict>], "owner">;
177
+ hasCredentials: z.ZodLiteral<true>;
178
+ }, z.core.$strict>, z.ZodObject<{
179
+ mode: z.ZodLiteral<"inferred">;
180
+ method: z.ZodObject<{
181
+ owner: z.ZodLiteral<"client">;
182
+ clientId: z.ZodString;
183
+ methodId: z.ZodString;
184
+ }, z.core.$strict>;
185
+ account: z.ZodOptional<z.ZodObject<{
186
+ managerId: z.ZodString;
187
+ accountId: z.ZodString;
188
+ }, z.core.$strict>>;
189
+ hasCredentials: z.ZodLiteral<false>;
190
+ }, z.core.$strict>, z.ZodObject<{
191
+ mode: z.ZodLiteral<"none">;
192
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
193
+ owner: z.ZodLiteral<"provider">;
194
+ providerDefinitionId: z.ZodString;
195
+ methodId: z.ZodString;
196
+ }, z.core.$strict>, z.ZodObject<{
197
+ owner: z.ZodLiteral<"client">;
198
+ clientId: z.ZodString;
199
+ methodId: z.ZodString;
200
+ }, z.core.$strict>], "owner">;
201
+ hasCredentials: z.ZodLiteral<false>;
202
+ }, z.core.$strict>], "mode">;
203
+ managedBy: z.ZodOptional<z.ZodObject<{
204
+ kind: z.ZodLiteral<"client">;
205
+ clientId: z.ZodString;
206
+ }, z.core.$strict>>;
207
+ }, z.core.$strict>>;
208
+ }, z.core.$strict>;
209
+ };
210
+ /**
211
+ * List provider configs for a given provider definition.
212
+ */
213
+ listProviderConfigsByDefinition: {
214
+ request: z.ZodObject<{
215
+ definitionId: z.ZodString;
216
+ }, z.core.$strict>;
217
+ response: z.ZodObject<{
218
+ configs: z.ZodArray<z.ZodObject<{
219
+ id: z.ZodString;
220
+ definitionId: z.ZodString;
221
+ name: z.ZodString;
222
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
223
+ anthropic: z.ZodOptional<z.ZodString>;
224
+ openai: z.ZodOptional<z.ZodString>;
225
+ }, z.core.$strict>>;
226
+ modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
227
+ disabled: "disabled";
228
+ enabled: "enabled";
229
+ visible: "visible";
230
+ }>>>;
231
+ modelFilterMode: z.ZodEnum<{
232
+ allowlist: "allowlist";
233
+ "show-all": "show-all";
234
+ }>;
235
+ isDefault: z.ZodBoolean;
236
+ enabled: z.ZodBoolean;
237
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
238
+ mode: z.ZodLiteral<"explicit">;
239
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
240
+ owner: z.ZodLiteral<"provider">;
241
+ providerDefinitionId: z.ZodString;
242
+ methodId: z.ZodString;
243
+ }, z.core.$strict>, z.ZodObject<{
244
+ owner: z.ZodLiteral<"client">;
245
+ clientId: z.ZodString;
246
+ methodId: z.ZodString;
247
+ }, z.core.$strict>], "owner">;
248
+ hasCredentials: z.ZodLiteral<true>;
249
+ }, z.core.$strict>, z.ZodObject<{
250
+ mode: z.ZodLiteral<"inferred">;
251
+ method: z.ZodObject<{
252
+ owner: z.ZodLiteral<"client">;
253
+ clientId: z.ZodString;
254
+ methodId: z.ZodString;
255
+ }, z.core.$strict>;
256
+ account: z.ZodOptional<z.ZodObject<{
257
+ managerId: z.ZodString;
258
+ accountId: z.ZodString;
259
+ }, z.core.$strict>>;
260
+ hasCredentials: z.ZodLiteral<false>;
261
+ }, z.core.$strict>, z.ZodObject<{
262
+ mode: z.ZodLiteral<"none">;
263
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
264
+ owner: z.ZodLiteral<"provider">;
265
+ providerDefinitionId: z.ZodString;
266
+ methodId: z.ZodString;
267
+ }, z.core.$strict>, z.ZodObject<{
268
+ owner: z.ZodLiteral<"client">;
269
+ clientId: z.ZodString;
270
+ methodId: z.ZodString;
271
+ }, z.core.$strict>], "owner">;
272
+ hasCredentials: z.ZodLiteral<false>;
273
+ }, z.core.$strict>], "mode">;
274
+ managedBy: z.ZodOptional<z.ZodObject<{
275
+ kind: z.ZodLiteral<"client">;
276
+ clientId: z.ZodString;
277
+ }, z.core.$strict>>;
278
+ }, z.core.$strict>>;
279
+ }, z.core.$strict>;
280
+ };
281
+ /**
282
+ * List bindings for an adapter.
283
+ */
284
+ listBindings: {
285
+ request: z.ZodObject<{
286
+ adapterName: z.ZodString;
287
+ }, z.core.$strict>;
288
+ response: z.ZodObject<{
289
+ bindings: z.ZodArray<z.ZodObject<{
290
+ adapterName: z.ZodString;
291
+ providerConfigId: z.ZodString;
292
+ isDefault: z.ZodBoolean;
293
+ }, z.core.$strict>>;
294
+ }, z.core.$strict>;
295
+ };
296
+ /**
297
+ * List bindings for a provider config.
298
+ */
299
+ listBindingsByConfig: {
300
+ request: z.ZodObject<{
301
+ providerConfigId: z.ZodString;
302
+ }, z.core.$strict>;
303
+ response: z.ZodObject<{
304
+ bindings: z.ZodArray<z.ZodObject<{
305
+ adapterName: z.ZodString;
306
+ providerConfigId: z.ZodString;
307
+ isDefault: z.ZodBoolean;
308
+ }, z.core.$strict>>;
309
+ }, z.core.$strict>;
310
+ };
311
+ /**
312
+ * Get the default binding for an adapter.
313
+ */
314
+ getDefaultBinding: {
315
+ request: z.ZodObject<{
316
+ adapterName: z.ZodString;
317
+ }, z.core.$strict>;
318
+ response: z.ZodObject<{
319
+ binding: z.ZodNullable<z.ZodObject<{
320
+ adapterName: z.ZodString;
321
+ providerConfigId: z.ZodString;
322
+ isDefault: z.ZodBoolean;
323
+ }, z.core.$strict>>;
324
+ }, z.core.$strict>;
325
+ };
326
+ /**
327
+ * Find the provider config bound to a specific adapter for a definition.
328
+ */
329
+ findConfigForDefinitionAndAdapter: {
330
+ request: z.ZodObject<{
331
+ definitionId: z.ZodString;
332
+ adapterName: z.ZodString;
333
+ }, z.core.$strict>;
334
+ response: z.ZodObject<{
335
+ config: z.ZodNullable<z.ZodObject<{
336
+ id: z.ZodString;
337
+ definitionId: z.ZodString;
338
+ name: z.ZodString;
339
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
340
+ anthropic: z.ZodOptional<z.ZodString>;
341
+ openai: z.ZodOptional<z.ZodString>;
342
+ }, z.core.$strict>>;
343
+ modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
344
+ disabled: "disabled";
345
+ enabled: "enabled";
346
+ visible: "visible";
347
+ }>>>;
348
+ modelFilterMode: z.ZodEnum<{
349
+ allowlist: "allowlist";
350
+ "show-all": "show-all";
351
+ }>;
352
+ isDefault: z.ZodBoolean;
353
+ enabled: z.ZodBoolean;
354
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
355
+ mode: z.ZodLiteral<"explicit">;
356
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
357
+ owner: z.ZodLiteral<"provider">;
358
+ providerDefinitionId: z.ZodString;
359
+ methodId: z.ZodString;
360
+ }, z.core.$strict>, z.ZodObject<{
361
+ owner: z.ZodLiteral<"client">;
362
+ clientId: z.ZodString;
363
+ methodId: z.ZodString;
364
+ }, z.core.$strict>], "owner">;
365
+ hasCredentials: z.ZodLiteral<true>;
366
+ }, z.core.$strict>, z.ZodObject<{
367
+ mode: z.ZodLiteral<"inferred">;
368
+ method: z.ZodObject<{
369
+ owner: z.ZodLiteral<"client">;
370
+ clientId: z.ZodString;
371
+ methodId: z.ZodString;
372
+ }, z.core.$strict>;
373
+ account: z.ZodOptional<z.ZodObject<{
374
+ managerId: z.ZodString;
375
+ accountId: z.ZodString;
376
+ }, z.core.$strict>>;
377
+ hasCredentials: z.ZodLiteral<false>;
378
+ }, z.core.$strict>, z.ZodObject<{
379
+ mode: z.ZodLiteral<"none">;
380
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
381
+ owner: z.ZodLiteral<"provider">;
382
+ providerDefinitionId: z.ZodString;
383
+ methodId: z.ZodString;
384
+ }, z.core.$strict>, z.ZodObject<{
385
+ owner: z.ZodLiteral<"client">;
386
+ clientId: z.ZodString;
387
+ methodId: z.ZodString;
388
+ }, z.core.$strict>], "owner">;
389
+ hasCredentials: z.ZodLiteral<false>;
390
+ }, z.core.$strict>], "mode">;
391
+ managedBy: z.ZodOptional<z.ZodObject<{
392
+ kind: z.ZodLiteral<"client">;
393
+ clientId: z.ZodString;
394
+ }, z.core.$strict>>;
395
+ }, z.core.$strict>>;
396
+ }, z.core.$strict>;
397
+ };
398
+ /**
399
+ * Resolve a safe config, refs-only context, and provider definition from one
400
+ * captured runtime snapshot.
401
+ */
402
+ resolveProviderRuntimeSnapshot: {
403
+ request: z.ZodObject<{
404
+ providerConfigId: z.ZodString;
405
+ }, z.core.$strict>;
406
+ response: z.ZodObject<{
407
+ snapshot: z.ZodNullable<z.ZodObject<{
408
+ config: z.ZodObject<{
409
+ id: z.ZodString;
410
+ definitionId: z.ZodString;
411
+ name: z.ZodString;
412
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
413
+ anthropic: z.ZodOptional<z.ZodString>;
414
+ openai: z.ZodOptional<z.ZodString>;
415
+ }, z.core.$strict>>;
416
+ modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
417
+ disabled: "disabled";
418
+ enabled: "enabled";
419
+ visible: "visible";
420
+ }>>>;
421
+ modelFilterMode: z.ZodEnum<{
422
+ allowlist: "allowlist";
423
+ "show-all": "show-all";
424
+ }>;
425
+ isDefault: z.ZodBoolean;
426
+ enabled: z.ZodBoolean;
427
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
428
+ mode: z.ZodLiteral<"explicit">;
429
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
430
+ owner: z.ZodLiteral<"provider">;
431
+ providerDefinitionId: z.ZodString;
432
+ methodId: z.ZodString;
433
+ }, z.core.$strict>, z.ZodObject<{
434
+ owner: z.ZodLiteral<"client">;
435
+ clientId: z.ZodString;
436
+ methodId: z.ZodString;
437
+ }, z.core.$strict>], "owner">;
438
+ hasCredentials: z.ZodLiteral<true>;
439
+ }, z.core.$strict>, z.ZodObject<{
440
+ mode: z.ZodLiteral<"inferred">;
441
+ method: z.ZodObject<{
442
+ owner: z.ZodLiteral<"client">;
443
+ clientId: z.ZodString;
444
+ methodId: z.ZodString;
445
+ }, z.core.$strict>;
446
+ account: z.ZodOptional<z.ZodObject<{
447
+ managerId: z.ZodString;
448
+ accountId: z.ZodString;
449
+ }, z.core.$strict>>;
450
+ hasCredentials: z.ZodLiteral<false>;
451
+ }, z.core.$strict>, z.ZodObject<{
452
+ mode: z.ZodLiteral<"none">;
453
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
454
+ owner: z.ZodLiteral<"provider">;
455
+ providerDefinitionId: z.ZodString;
456
+ methodId: z.ZodString;
457
+ }, z.core.$strict>, z.ZodObject<{
458
+ owner: z.ZodLiteral<"client">;
459
+ clientId: z.ZodString;
460
+ methodId: z.ZodString;
461
+ }, z.core.$strict>], "owner">;
462
+ hasCredentials: z.ZodLiteral<false>;
463
+ }, z.core.$strict>], "mode">;
464
+ managedBy: z.ZodOptional<z.ZodObject<{
465
+ kind: z.ZodLiteral<"client">;
466
+ clientId: z.ZodString;
467
+ }, z.core.$strict>>;
468
+ }, z.core.$strict>;
469
+ context: z.ZodObject<{
470
+ state: z.ZodLiteral<"resolved">;
471
+ providerConfigId: z.ZodString;
472
+ definitionId: z.ZodString;
473
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
474
+ anthropic: z.ZodOptional<z.ZodString>;
475
+ openai: z.ZodOptional<z.ZodString>;
476
+ }, z.core.$strip>>;
477
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
478
+ mode: z.ZodLiteral<"explicit">;
479
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
480
+ owner: z.ZodLiteral<"provider">;
481
+ providerDefinitionId: z.ZodString;
482
+ methodId: z.ZodString;
483
+ }, z.core.$strict>, z.ZodObject<{
484
+ owner: z.ZodLiteral<"client">;
485
+ clientId: z.ZodString;
486
+ methodId: z.ZodString;
487
+ }, z.core.$strict>], "owner">;
488
+ definition: z.ZodObject<{
489
+ id: z.ZodString;
490
+ mode: z.ZodLiteral<"explicit">;
491
+ label: z.ZodString;
492
+ description: z.ZodOptional<z.ZodString>;
493
+ fields: z.ZodArray<z.ZodObject<{
494
+ id: z.ZodString;
495
+ label: z.ZodString;
496
+ description: z.ZodOptional<z.ZodString>;
497
+ required: z.ZodBoolean;
498
+ secret: z.ZodBoolean;
499
+ sourceHints: z.ZodArray<z.ZodObject<{
500
+ kind: z.ZodLiteral<"environment">;
501
+ variable: z.ZodString;
502
+ }, z.core.$strict>>;
503
+ }, z.core.$strict>>;
504
+ }, z.core.$strict>;
505
+ credentialRefs: z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>;
506
+ }, z.core.$strict>, z.ZodObject<{
507
+ mode: z.ZodLiteral<"inferred">;
508
+ method: z.ZodObject<{
509
+ owner: z.ZodLiteral<"client">;
510
+ clientId: z.ZodString;
511
+ methodId: z.ZodString;
512
+ }, z.core.$strict>;
513
+ definition: z.ZodObject<{
514
+ id: z.ZodString;
515
+ mode: z.ZodLiteral<"inferred">;
516
+ label: z.ZodString;
517
+ description: z.ZodOptional<z.ZodString>;
518
+ }, z.core.$strict>;
519
+ account: z.ZodOptional<z.ZodObject<{
520
+ managerId: z.ZodString;
521
+ accountId: z.ZodString;
522
+ }, z.core.$strict>>;
523
+ }, z.core.$strict>, z.ZodObject<{
524
+ mode: z.ZodLiteral<"none">;
525
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
526
+ owner: z.ZodLiteral<"provider">;
527
+ providerDefinitionId: z.ZodString;
528
+ methodId: z.ZodString;
529
+ }, z.core.$strict>, z.ZodObject<{
530
+ owner: z.ZodLiteral<"client">;
531
+ clientId: z.ZodString;
532
+ methodId: z.ZodString;
533
+ }, z.core.$strict>], "owner">;
534
+ definition: z.ZodObject<{
535
+ id: z.ZodString;
536
+ mode: z.ZodLiteral<"none">;
537
+ label: z.ZodString;
538
+ description: z.ZodOptional<z.ZodString>;
539
+ }, z.core.$strict>;
540
+ }, z.core.$strict>], "mode">;
541
+ capabilities: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
542
+ }, z.core.$strict>;
543
+ definition: z.ZodObject<{
544
+ id: z.ZodString;
545
+ packageName: z.ZodString;
546
+ name: z.ZodString;
547
+ description: z.ZodOptional<z.ZodString>;
548
+ endpoints: z.ZodOptional<z.ZodObject<{
549
+ anthropic: z.ZodOptional<z.ZodString>;
550
+ openai: z.ZodOptional<z.ZodString>;
551
+ }, z.core.$strip>>;
552
+ defaultModel: z.ZodOptional<z.ZodString>;
553
+ fastModel: z.ZodOptional<z.ZodString>;
554
+ availableModels: z.ZodArray<z.ZodObject<{
555
+ name: z.ZodString;
556
+ friendlyName: z.ZodOptional<z.ZodString>;
557
+ family: z.ZodOptional<z.ZodString>;
558
+ contextWindowSize: z.ZodNumber;
559
+ labId: z.ZodString;
560
+ supportedReasoningLevels: z.ZodOptional<z.ZodObject<{
561
+ none: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
562
+ low: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
563
+ medium: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
564
+ high: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
565
+ 'extra-high': z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
566
+ }, z.core.$strip>>;
567
+ metadata: z.ZodOptional<z.ZodObject<{
568
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
569
+ capabilities: z.ZodOptional<z.ZodObject<{
570
+ vision: z.ZodOptional<z.ZodBoolean>;
571
+ toolCalling: z.ZodOptional<z.ZodBoolean>;
572
+ parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
573
+ structuredOutput: z.ZodOptional<z.ZodBoolean>;
574
+ pdfUpload: z.ZodOptional<z.ZodBoolean>;
575
+ speechToText: z.ZodOptional<z.ZodObject<{
576
+ modes: z.ZodArray<z.ZodEnum<{
577
+ batch: "batch";
578
+ streaming: "streaming";
579
+ }>>;
580
+ vocabularyBiasing: z.ZodOptional<z.ZodBoolean>;
581
+ }, z.core.$strip>>;
582
+ textToSpeech: z.ZodOptional<z.ZodObject<{
583
+ modes: z.ZodArray<z.ZodEnum<{
584
+ streaming: "streaming";
585
+ buffered: "buffered";
586
+ }>>;
587
+ voiceSelection: z.ZodOptional<z.ZodBoolean>;
588
+ voiceInstructions: z.ZodOptional<z.ZodBoolean>;
589
+ outputFormats: z.ZodOptional<z.ZodArray<z.ZodString>>;
590
+ }, z.core.$strip>>;
591
+ }, z.core.$strip>>;
592
+ pricing: z.ZodOptional<z.ZodObject<{
593
+ token: z.ZodOptional<z.ZodObject<{
594
+ inputPerMillion: z.ZodNumber;
595
+ inputCachedPerMillion: z.ZodOptional<z.ZodNumber>;
596
+ cacheWritePerMillion: z.ZodOptional<z.ZodNumber>;
597
+ outputPerMillion: z.ZodNumber;
598
+ }, z.core.$strip>>;
599
+ request: z.ZodOptional<z.ZodObject<{
600
+ multiplier: z.ZodNumber;
601
+ }, z.core.$strip>>;
602
+ }, z.core.$strip>>;
603
+ includedInSubscription: z.ZodOptional<z.ZodBoolean>;
604
+ description: z.ZodOptional<z.ZodString>;
605
+ }, z.core.$strip>>;
606
+ }, z.core.$strip>>;
607
+ defaultModelFilterMode: z.ZodEnum<{
608
+ allowlist: "allowlist";
609
+ "show-all": "show-all";
610
+ }>;
611
+ authMethods: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
612
+ id: z.ZodString;
613
+ mode: z.ZodLiteral<"explicit">;
614
+ label: z.ZodString;
615
+ description: z.ZodOptional<z.ZodString>;
616
+ fields: z.ZodArray<z.ZodObject<{
617
+ id: z.ZodString;
618
+ label: z.ZodString;
619
+ description: z.ZodOptional<z.ZodString>;
620
+ required: z.ZodBoolean;
621
+ secret: z.ZodBoolean;
622
+ sourceHints: z.ZodArray<z.ZodObject<{
623
+ kind: z.ZodLiteral<"environment">;
624
+ variable: z.ZodString;
625
+ }, z.core.$strict>>;
626
+ }, z.core.$strict>>;
627
+ }, z.core.$strict>, z.ZodObject<{
628
+ id: z.ZodString;
629
+ mode: z.ZodLiteral<"none">;
630
+ label: z.ZodString;
631
+ description: z.ZodOptional<z.ZodString>;
632
+ }, z.core.$strict>], "mode">>;
633
+ capabilities: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
634
+ enabled: z.ZodBoolean;
635
+ createdAt: z.ZodNumber;
636
+ updatedAt: z.ZodNumber;
637
+ }, z.core.$strict>;
638
+ }, z.core.$strict>>;
639
+ }, z.core.$strict>;
640
+ };
641
+ /**
642
+ * Resolve provider state, exact adapter auth declarations, and runtime import
643
+ * paths from one adapter-subsystem read.
644
+ */
645
+ resolveAdapterRuntimeSnapshot: {
646
+ request: z.ZodObject<{
647
+ adapterName: z.ZodString;
648
+ providerConfigId: z.ZodString;
649
+ }, z.core.$strict>;
650
+ response: z.ZodDiscriminatedUnion<[z.ZodObject<{
651
+ status: z.ZodLiteral<"resolved">;
652
+ runtime: z.ZodObject<{
653
+ snapshot: z.ZodObject<{
654
+ config: z.ZodObject<{
655
+ id: z.ZodString;
656
+ definitionId: z.ZodString;
657
+ name: z.ZodString;
658
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
659
+ anthropic: z.ZodOptional<z.ZodString>;
660
+ openai: z.ZodOptional<z.ZodString>;
661
+ }, z.core.$strict>>;
662
+ modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
663
+ disabled: "disabled";
664
+ enabled: "enabled";
665
+ visible: "visible";
666
+ }>>>;
667
+ modelFilterMode: z.ZodEnum<{
668
+ allowlist: "allowlist";
669
+ "show-all": "show-all";
670
+ }>;
671
+ isDefault: z.ZodBoolean;
672
+ enabled: z.ZodBoolean;
673
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
674
+ mode: z.ZodLiteral<"explicit">;
675
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
676
+ owner: z.ZodLiteral<"provider">;
677
+ providerDefinitionId: z.ZodString;
678
+ methodId: z.ZodString;
679
+ }, z.core.$strict>, z.ZodObject<{
680
+ owner: z.ZodLiteral<"client">;
681
+ clientId: z.ZodString;
682
+ methodId: z.ZodString;
683
+ }, z.core.$strict>], "owner">;
684
+ hasCredentials: z.ZodLiteral<true>;
685
+ }, z.core.$strict>, z.ZodObject<{
686
+ mode: z.ZodLiteral<"inferred">;
687
+ method: z.ZodObject<{
688
+ owner: z.ZodLiteral<"client">;
689
+ clientId: z.ZodString;
690
+ methodId: z.ZodString;
691
+ }, z.core.$strict>;
692
+ account: z.ZodOptional<z.ZodObject<{
693
+ managerId: z.ZodString;
694
+ accountId: z.ZodString;
695
+ }, z.core.$strict>>;
696
+ hasCredentials: z.ZodLiteral<false>;
697
+ }, z.core.$strict>, z.ZodObject<{
698
+ mode: z.ZodLiteral<"none">;
699
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
700
+ owner: z.ZodLiteral<"provider">;
701
+ providerDefinitionId: z.ZodString;
702
+ methodId: z.ZodString;
703
+ }, z.core.$strict>, z.ZodObject<{
704
+ owner: z.ZodLiteral<"client">;
705
+ clientId: z.ZodString;
706
+ methodId: z.ZodString;
707
+ }, z.core.$strict>], "owner">;
708
+ hasCredentials: z.ZodLiteral<false>;
709
+ }, z.core.$strict>], "mode">;
710
+ managedBy: z.ZodOptional<z.ZodObject<{
711
+ kind: z.ZodLiteral<"client">;
712
+ clientId: z.ZodString;
713
+ }, z.core.$strict>>;
714
+ }, z.core.$strict>;
715
+ context: z.ZodObject<{
716
+ state: z.ZodLiteral<"resolved">;
717
+ providerConfigId: z.ZodString;
718
+ definitionId: z.ZodString;
719
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
720
+ anthropic: z.ZodOptional<z.ZodString>;
721
+ openai: z.ZodOptional<z.ZodString>;
722
+ }, z.core.$strip>>;
723
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
724
+ mode: z.ZodLiteral<"explicit">;
725
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
726
+ owner: z.ZodLiteral<"provider">;
727
+ providerDefinitionId: z.ZodString;
728
+ methodId: z.ZodString;
729
+ }, z.core.$strict>, z.ZodObject<{
730
+ owner: z.ZodLiteral<"client">;
731
+ clientId: z.ZodString;
732
+ methodId: z.ZodString;
733
+ }, z.core.$strict>], "owner">;
734
+ definition: z.ZodObject<{
735
+ id: z.ZodString;
736
+ mode: z.ZodLiteral<"explicit">;
737
+ label: z.ZodString;
738
+ description: z.ZodOptional<z.ZodString>;
739
+ fields: z.ZodArray<z.ZodObject<{
740
+ id: z.ZodString;
741
+ label: z.ZodString;
742
+ description: z.ZodOptional<z.ZodString>;
743
+ required: z.ZodBoolean;
744
+ secret: z.ZodBoolean;
745
+ sourceHints: z.ZodArray<z.ZodObject<{
746
+ kind: z.ZodLiteral<"environment">;
747
+ variable: z.ZodString;
748
+ }, z.core.$strict>>;
749
+ }, z.core.$strict>>;
750
+ }, z.core.$strict>;
751
+ credentialRefs: z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>;
752
+ }, z.core.$strict>, z.ZodObject<{
753
+ mode: z.ZodLiteral<"inferred">;
754
+ method: z.ZodObject<{
755
+ owner: z.ZodLiteral<"client">;
756
+ clientId: z.ZodString;
757
+ methodId: z.ZodString;
758
+ }, z.core.$strict>;
759
+ definition: z.ZodObject<{
760
+ id: z.ZodString;
761
+ mode: z.ZodLiteral<"inferred">;
762
+ label: z.ZodString;
763
+ description: z.ZodOptional<z.ZodString>;
764
+ }, z.core.$strict>;
765
+ account: z.ZodOptional<z.ZodObject<{
766
+ managerId: z.ZodString;
767
+ accountId: z.ZodString;
768
+ }, z.core.$strict>>;
769
+ }, z.core.$strict>, z.ZodObject<{
770
+ mode: z.ZodLiteral<"none">;
771
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
772
+ owner: z.ZodLiteral<"provider">;
773
+ providerDefinitionId: z.ZodString;
774
+ methodId: z.ZodString;
775
+ }, z.core.$strict>, z.ZodObject<{
776
+ owner: z.ZodLiteral<"client">;
777
+ clientId: z.ZodString;
778
+ methodId: z.ZodString;
779
+ }, z.core.$strict>], "owner">;
780
+ definition: z.ZodObject<{
781
+ id: z.ZodString;
782
+ mode: z.ZodLiteral<"none">;
783
+ label: z.ZodString;
784
+ description: z.ZodOptional<z.ZodString>;
785
+ }, z.core.$strict>;
786
+ }, z.core.$strict>], "mode">;
787
+ capabilities: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
788
+ }, z.core.$strict>;
789
+ definition: z.ZodObject<{
790
+ id: z.ZodString;
791
+ packageName: z.ZodString;
792
+ name: z.ZodString;
793
+ description: z.ZodOptional<z.ZodString>;
794
+ endpoints: z.ZodOptional<z.ZodObject<{
795
+ anthropic: z.ZodOptional<z.ZodString>;
796
+ openai: z.ZodOptional<z.ZodString>;
797
+ }, z.core.$strip>>;
798
+ defaultModel: z.ZodOptional<z.ZodString>;
799
+ fastModel: z.ZodOptional<z.ZodString>;
800
+ availableModels: z.ZodArray<z.ZodObject<{
801
+ name: z.ZodString;
802
+ friendlyName: z.ZodOptional<z.ZodString>;
803
+ family: z.ZodOptional<z.ZodString>;
804
+ contextWindowSize: z.ZodNumber;
805
+ labId: z.ZodString;
806
+ supportedReasoningLevels: z.ZodOptional<z.ZodObject<{
807
+ none: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
808
+ low: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
809
+ medium: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
810
+ high: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
811
+ 'extra-high': z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
812
+ }, z.core.$strip>>;
813
+ metadata: z.ZodOptional<z.ZodObject<{
814
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
815
+ capabilities: z.ZodOptional<z.ZodObject<{
816
+ vision: z.ZodOptional<z.ZodBoolean>;
817
+ toolCalling: z.ZodOptional<z.ZodBoolean>;
818
+ parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
819
+ structuredOutput: z.ZodOptional<z.ZodBoolean>;
820
+ pdfUpload: z.ZodOptional<z.ZodBoolean>;
821
+ speechToText: z.ZodOptional<z.ZodObject<{
822
+ modes: z.ZodArray<z.ZodEnum<{
823
+ batch: "batch";
824
+ streaming: "streaming";
825
+ }>>;
826
+ vocabularyBiasing: z.ZodOptional<z.ZodBoolean>;
827
+ }, z.core.$strip>>;
828
+ textToSpeech: z.ZodOptional<z.ZodObject<{
829
+ modes: z.ZodArray<z.ZodEnum<{
830
+ streaming: "streaming";
831
+ buffered: "buffered";
832
+ }>>;
833
+ voiceSelection: z.ZodOptional<z.ZodBoolean>;
834
+ voiceInstructions: z.ZodOptional<z.ZodBoolean>;
835
+ outputFormats: z.ZodOptional<z.ZodArray<z.ZodString>>;
836
+ }, z.core.$strip>>;
837
+ }, z.core.$strip>>;
838
+ pricing: z.ZodOptional<z.ZodObject<{
839
+ token: z.ZodOptional<z.ZodObject<{
840
+ inputPerMillion: z.ZodNumber;
841
+ inputCachedPerMillion: z.ZodOptional<z.ZodNumber>;
842
+ cacheWritePerMillion: z.ZodOptional<z.ZodNumber>;
843
+ outputPerMillion: z.ZodNumber;
844
+ }, z.core.$strip>>;
845
+ request: z.ZodOptional<z.ZodObject<{
846
+ multiplier: z.ZodNumber;
847
+ }, z.core.$strip>>;
848
+ }, z.core.$strip>>;
849
+ includedInSubscription: z.ZodOptional<z.ZodBoolean>;
850
+ description: z.ZodOptional<z.ZodString>;
851
+ }, z.core.$strip>>;
852
+ }, z.core.$strip>>;
853
+ defaultModelFilterMode: z.ZodEnum<{
854
+ allowlist: "allowlist";
855
+ "show-all": "show-all";
856
+ }>;
857
+ authMethods: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
858
+ id: z.ZodString;
859
+ mode: z.ZodLiteral<"explicit">;
860
+ label: z.ZodString;
861
+ description: z.ZodOptional<z.ZodString>;
862
+ fields: z.ZodArray<z.ZodObject<{
863
+ id: z.ZodString;
864
+ label: z.ZodString;
865
+ description: z.ZodOptional<z.ZodString>;
866
+ required: z.ZodBoolean;
867
+ secret: z.ZodBoolean;
868
+ sourceHints: z.ZodArray<z.ZodObject<{
869
+ kind: z.ZodLiteral<"environment">;
870
+ variable: z.ZodString;
871
+ }, z.core.$strict>>;
872
+ }, z.core.$strict>>;
873
+ }, z.core.$strict>, z.ZodObject<{
874
+ id: z.ZodString;
875
+ mode: z.ZodLiteral<"none">;
876
+ label: z.ZodString;
877
+ description: z.ZodOptional<z.ZodString>;
878
+ }, z.core.$strict>], "mode">>;
879
+ capabilities: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
880
+ enabled: z.ZodBoolean;
881
+ createdAt: z.ZodNumber;
882
+ updatedAt: z.ZodNumber;
883
+ }, z.core.$strict>;
884
+ }, z.core.$strict>;
885
+ adapterName: z.ZodString;
886
+ adapterClientId: z.ZodOptional<z.ZodString>;
887
+ providerProtocol: z.ZodOptional<z.ZodEnum<{
888
+ anthropic: "anthropic";
889
+ openai: "openai";
890
+ }>>;
891
+ adapterProviderAuth: z.core.$ZodBranded<z.ZodObject<{
892
+ bindings: z.ZodArray<z.ZodObject<{
893
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
894
+ owner: z.ZodLiteral<"provider">;
895
+ providerDefinitionId: z.ZodString;
896
+ methodId: z.ZodString;
897
+ }, z.core.$strict>, z.ZodObject<{
898
+ owner: z.ZodLiteral<"client">;
899
+ clientId: z.ZodString;
900
+ methodId: z.ZodString;
901
+ }, z.core.$strict>], "owner">;
902
+ deliveries: z.ZodTuple<[z.ZodDiscriminatedUnion<[z.ZodObject<{
903
+ kind: z.ZodLiteral<"process-env">;
904
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
905
+ }, z.core.$strict>, z.ZodObject<{
906
+ kind: z.ZodLiteral<"connector">;
907
+ target: z.ZodString;
908
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
909
+ constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
910
+ }, z.core.$strict>, z.ZodObject<{
911
+ kind: z.ZodLiteral<"native-client">;
912
+ clientId: z.ZodString;
913
+ }, z.core.$strict>, z.ZodObject<{
914
+ kind: z.ZodLiteral<"none">;
915
+ }, z.core.$strict>], "kind">], z.ZodDiscriminatedUnion<[z.ZodObject<{
916
+ kind: z.ZodLiteral<"process-env">;
917
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
918
+ }, z.core.$strict>, z.ZodObject<{
919
+ kind: z.ZodLiteral<"connector">;
920
+ target: z.ZodString;
921
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
922
+ constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
923
+ }, z.core.$strict>, z.ZodObject<{
924
+ kind: z.ZodLiteral<"native-client">;
925
+ clientId: z.ZodString;
926
+ }, z.core.$strict>, z.ZodObject<{
927
+ kind: z.ZodLiteral<"none">;
928
+ }, z.core.$strict>], "kind">>;
929
+ }, z.core.$strict>>;
930
+ scrubEnvVars: z.ZodArray<z.ZodString>;
931
+ }, z.core.$strict>, "AdapterProviderAuth", "out">;
932
+ compatibleProviderAuths: z.ZodArray<z.core.$ZodBranded<z.ZodObject<{
933
+ bindings: z.ZodArray<z.ZodObject<{
934
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
935
+ owner: z.ZodLiteral<"provider">;
936
+ providerDefinitionId: z.ZodString;
937
+ methodId: z.ZodString;
938
+ }, z.core.$strict>, z.ZodObject<{
939
+ owner: z.ZodLiteral<"client">;
940
+ clientId: z.ZodString;
941
+ methodId: z.ZodString;
942
+ }, z.core.$strict>], "owner">;
943
+ deliveries: z.ZodTuple<[z.ZodDiscriminatedUnion<[z.ZodObject<{
944
+ kind: z.ZodLiteral<"process-env">;
945
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
946
+ }, z.core.$strict>, z.ZodObject<{
947
+ kind: z.ZodLiteral<"connector">;
948
+ target: z.ZodString;
949
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
950
+ constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
951
+ }, z.core.$strict>, z.ZodObject<{
952
+ kind: z.ZodLiteral<"native-client">;
953
+ clientId: z.ZodString;
954
+ }, z.core.$strict>, z.ZodObject<{
955
+ kind: z.ZodLiteral<"none">;
956
+ }, z.core.$strict>], "kind">], z.ZodDiscriminatedUnion<[z.ZodObject<{
957
+ kind: z.ZodLiteral<"process-env">;
958
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
959
+ }, z.core.$strict>, z.ZodObject<{
960
+ kind: z.ZodLiteral<"connector">;
961
+ target: z.ZodString;
962
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
963
+ constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
964
+ }, z.core.$strict>, z.ZodObject<{
965
+ kind: z.ZodLiteral<"native-client">;
966
+ clientId: z.ZodString;
967
+ }, z.core.$strict>, z.ZodObject<{
968
+ kind: z.ZodLiteral<"none">;
969
+ }, z.core.$strict>], "kind">>;
970
+ }, z.core.$strict>>;
971
+ scrubEnvVars: z.ZodArray<z.ZodString>;
972
+ }, z.core.$strict>, "AdapterProviderAuth", "out">>;
973
+ runtimePackages: z.ZodObject<{
974
+ adapter: z.ZodObject<{
975
+ packageName: z.ZodString;
976
+ }, z.core.$strict>;
977
+ provider: z.ZodObject<{
978
+ packageName: z.ZodString;
979
+ definitionId: z.ZodString;
980
+ }, z.core.$strict>;
981
+ client: z.ZodOptional<z.ZodObject<{
982
+ packageName: z.ZodString;
983
+ clientId: z.ZodString;
984
+ }, z.core.$strict>>;
985
+ }, z.core.$strict>;
986
+ }, z.core.$strict>;
987
+ }, z.core.$strict>, z.ZodObject<{
988
+ status: z.ZodLiteral<"error">;
989
+ code: z.ZodEnum<{
990
+ "provider-config-not-found": "provider-config-not-found";
991
+ "provider-config-disabled": "provider-config-disabled";
992
+ "adapter-not-loaded": "adapter-not-loaded";
993
+ "adapter-not-bound": "adapter-not-bound";
994
+ "provider-incompatible": "provider-incompatible";
995
+ "auth-binding-missing": "auth-binding-missing";
996
+ "client-incompatible": "client-incompatible";
997
+ "runtime-package-metadata-missing": "runtime-package-metadata-missing";
998
+ "snapshot-identity-mismatch": "snapshot-identity-mismatch";
999
+ }>;
1000
+ }, z.core.$strict>], "status">;
1001
+ };
1002
+ /**
1003
+ * List effective adapters.
1004
+ */
1005
+ listAdapters: {
1006
+ request: z.ZodObject<{}, z.core.$strict>;
1007
+ response: z.ZodObject<{
1008
+ adapters: z.ZodArray<z.ZodObject<{
1009
+ name: z.ZodString;
1010
+ displayName: z.ZodString;
1011
+ description: z.ZodOptional<z.ZodString>;
1012
+ enabled: z.ZodBoolean;
1013
+ configCount: z.ZodNumber;
1014
+ readiness: z.ZodEnum<{
1015
+ ready: "ready";
1016
+ "needs-setup": "needs-setup";
1017
+ }>;
1018
+ supportsLogImport: z.ZodBoolean;
1019
+ helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1020
+ label: z.ZodString;
1021
+ url: z.ZodString;
1022
+ }, z.core.$strict>>>;
1023
+ instructions: z.ZodOptional<z.ZodString>;
1024
+ clientId: z.ZodOptional<z.ZodString>;
1025
+ protocol: z.ZodOptional<z.ZodString>;
1026
+ providerDefinitionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1027
+ }, z.core.$strict>>;
1028
+ }, z.core.$strict>;
1029
+ };
1030
+ /**
1031
+ * Get provider definitions contributed by a specific adapter.
1032
+ *
1033
+ * Returns the full provider definition array for the named adapter, including
1034
+ * the registry-populated `availableModels` set at boot time.
1035
+ */
1036
+ getProviderDefinitionsByAdapter: {
1037
+ request: z.ZodObject<{
1038
+ adapterName: z.ZodString;
1039
+ }, z.core.$strict>;
1040
+ response: z.ZodObject<{
1041
+ definitions: z.ZodArray<z.ZodObject<{
1042
+ id: z.ZodString;
1043
+ name: z.ZodString;
1044
+ description: z.ZodOptional<z.ZodString>;
1045
+ endpoints: z.ZodOptional<z.ZodObject<{
1046
+ anthropic: z.ZodOptional<z.ZodString>;
1047
+ openai: z.ZodOptional<z.ZodString>;
1048
+ }, z.core.$strip>>;
1049
+ defaultModel: z.ZodOptional<z.ZodString>;
1050
+ fastModel: z.ZodOptional<z.ZodString>;
1051
+ primaryTestModel: z.ZodOptional<z.ZodString>;
1052
+ secondaryTestModel: z.ZodOptional<z.ZodString>;
1053
+ availableModels: z.ZodDefault<z.ZodArray<z.ZodObject<{
1054
+ name: z.ZodString;
1055
+ friendlyName: z.ZodOptional<z.ZodString>;
1056
+ family: z.ZodOptional<z.ZodString>;
1057
+ contextWindowSize: z.ZodNumber;
1058
+ labId: z.ZodString;
1059
+ supportedReasoningLevels: z.ZodOptional<z.ZodObject<{
1060
+ none: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1061
+ low: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1062
+ medium: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1063
+ high: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1064
+ 'extra-high': z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
1065
+ }, z.core.$strip>>;
1066
+ metadata: z.ZodOptional<z.ZodObject<{
1067
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
1068
+ capabilities: z.ZodOptional<z.ZodObject<{
1069
+ vision: z.ZodOptional<z.ZodBoolean>;
1070
+ toolCalling: z.ZodOptional<z.ZodBoolean>;
1071
+ parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
1072
+ structuredOutput: z.ZodOptional<z.ZodBoolean>;
1073
+ pdfUpload: z.ZodOptional<z.ZodBoolean>;
1074
+ speechToText: z.ZodOptional<z.ZodObject<{
1075
+ modes: z.ZodArray<z.ZodEnum<{
1076
+ batch: "batch";
1077
+ streaming: "streaming";
1078
+ }>>;
1079
+ vocabularyBiasing: z.ZodOptional<z.ZodBoolean>;
1080
+ }, z.core.$strip>>;
1081
+ textToSpeech: z.ZodOptional<z.ZodObject<{
1082
+ modes: z.ZodArray<z.ZodEnum<{
1083
+ streaming: "streaming";
1084
+ buffered: "buffered";
1085
+ }>>;
1086
+ voiceSelection: z.ZodOptional<z.ZodBoolean>;
1087
+ voiceInstructions: z.ZodOptional<z.ZodBoolean>;
1088
+ outputFormats: z.ZodOptional<z.ZodArray<z.ZodString>>;
1089
+ }, z.core.$strip>>;
1090
+ }, z.core.$strip>>;
1091
+ pricing: z.ZodOptional<z.ZodObject<{
1092
+ token: z.ZodOptional<z.ZodObject<{
1093
+ inputPerMillion: z.ZodNumber;
1094
+ inputCachedPerMillion: z.ZodOptional<z.ZodNumber>;
1095
+ cacheWritePerMillion: z.ZodOptional<z.ZodNumber>;
1096
+ outputPerMillion: z.ZodNumber;
1097
+ }, z.core.$strip>>;
1098
+ request: z.ZodOptional<z.ZodObject<{
1099
+ multiplier: z.ZodNumber;
1100
+ }, z.core.$strip>>;
1101
+ }, z.core.$strip>>;
1102
+ includedInSubscription: z.ZodOptional<z.ZodBoolean>;
1103
+ description: z.ZodOptional<z.ZodString>;
1104
+ }, z.core.$strip>>;
1105
+ }, z.core.$strip>>>;
1106
+ defaultModelFilterMode: z.ZodOptional<z.ZodEnum<{
1107
+ allowlist: "allowlist";
1108
+ "show-all": "show-all";
1109
+ }>>;
1110
+ authMethods: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1111
+ id: z.ZodString;
1112
+ mode: z.ZodLiteral<"explicit">;
1113
+ label: z.ZodString;
1114
+ description: z.ZodOptional<z.ZodString>;
1115
+ fields: z.ZodArray<z.ZodObject<{
1116
+ id: z.ZodString;
1117
+ label: z.ZodString;
1118
+ description: z.ZodOptional<z.ZodString>;
1119
+ required: z.ZodBoolean;
1120
+ secret: z.ZodBoolean;
1121
+ sourceHints: z.ZodArray<z.ZodObject<{
1122
+ kind: z.ZodLiteral<"environment">;
1123
+ variable: z.ZodString;
1124
+ }, z.core.$strict>>;
1125
+ }, z.core.$strict>>;
1126
+ }, z.core.$strict>, z.ZodObject<{
1127
+ id: z.ZodString;
1128
+ mode: z.ZodLiteral<"none">;
1129
+ label: z.ZodString;
1130
+ description: z.ZodOptional<z.ZodString>;
1131
+ }, z.core.$strict>], "mode">>;
1132
+ capabilities: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1133
+ }, z.core.$strict>>;
1134
+ }, z.core.$strict>;
1135
+ };
1136
+ /**
1137
+ * List normalized authentication methods deliverable by loaded adapters for
1138
+ * one provider definition.
1139
+ */
1140
+ listCompatibleAuthOptions: {
1141
+ request: z.ZodObject<{
1142
+ definitionId: z.ZodString;
1143
+ }, z.core.$strict>;
1144
+ response: z.ZodObject<{
1145
+ options: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1146
+ definitionId: z.ZodString;
1147
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
1148
+ owner: z.ZodLiteral<"provider">;
1149
+ providerDefinitionId: z.ZodString;
1150
+ methodId: z.ZodString;
1151
+ }, z.core.$strict>, z.ZodObject<{
1152
+ owner: z.ZodLiteral<"client">;
1153
+ clientId: z.ZodString;
1154
+ methodId: z.ZodString;
1155
+ }, z.core.$strict>], "owner">;
1156
+ mode: z.ZodLiteral<"explicit">;
1157
+ label: z.ZodString;
1158
+ description: z.ZodOptional<z.ZodString>;
1159
+ fields: z.ZodArray<z.ZodObject<{
1160
+ id: z.ZodString;
1161
+ label: z.ZodString;
1162
+ description: z.ZodOptional<z.ZodString>;
1163
+ required: z.ZodBoolean;
1164
+ secret: z.ZodBoolean;
1165
+ sourceHints: z.ZodArray<z.ZodObject<{
1166
+ kind: z.ZodLiteral<"environment">;
1167
+ variable: z.ZodString;
1168
+ }, z.core.$strict>>;
1169
+ }, z.core.$strict>>;
1170
+ compatibleAdapterNames: z.ZodArray<z.ZodString>;
1171
+ portability: z.ZodLiteral<"portable">;
1172
+ }, z.core.$strict>, z.ZodObject<{
1173
+ definitionId: z.ZodString;
1174
+ method: z.ZodObject<{
1175
+ owner: z.ZodLiteral<"client">;
1176
+ clientId: z.ZodString;
1177
+ methodId: z.ZodString;
1178
+ }, z.core.$strict>;
1179
+ mode: z.ZodLiteral<"inferred">;
1180
+ label: z.ZodString;
1181
+ description: z.ZodOptional<z.ZodString>;
1182
+ fields: z.ZodArray<z.ZodObject<{
1183
+ id: z.ZodString;
1184
+ label: z.ZodString;
1185
+ description: z.ZodOptional<z.ZodString>;
1186
+ required: z.ZodBoolean;
1187
+ secret: z.ZodBoolean;
1188
+ sourceHints: z.ZodArray<z.ZodObject<{
1189
+ kind: z.ZodLiteral<"environment">;
1190
+ variable: z.ZodString;
1191
+ }, z.core.$strict>>;
1192
+ }, z.core.$strict>>;
1193
+ compatibleAdapterNames: z.ZodArray<z.ZodString>;
1194
+ portability: z.ZodLiteral<"local-only">;
1195
+ }, z.core.$strict>, z.ZodObject<{
1196
+ definitionId: z.ZodString;
1197
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
1198
+ owner: z.ZodLiteral<"provider">;
1199
+ providerDefinitionId: z.ZodString;
1200
+ methodId: z.ZodString;
1201
+ }, z.core.$strict>, z.ZodObject<{
1202
+ owner: z.ZodLiteral<"client">;
1203
+ clientId: z.ZodString;
1204
+ methodId: z.ZodString;
1205
+ }, z.core.$strict>], "owner">;
1206
+ mode: z.ZodLiteral<"none">;
1207
+ label: z.ZodString;
1208
+ description: z.ZodOptional<z.ZodString>;
1209
+ fields: z.ZodArray<z.ZodObject<{
1210
+ id: z.ZodString;
1211
+ label: z.ZodString;
1212
+ description: z.ZodOptional<z.ZodString>;
1213
+ required: z.ZodBoolean;
1214
+ secret: z.ZodBoolean;
1215
+ sourceHints: z.ZodArray<z.ZodObject<{
1216
+ kind: z.ZodLiteral<"environment">;
1217
+ variable: z.ZodString;
1218
+ }, z.core.$strict>>;
1219
+ }, z.core.$strict>>;
1220
+ compatibleAdapterNames: z.ZodArray<z.ZodString>;
1221
+ portability: z.ZodLiteral<"portable">;
1222
+ }, z.core.$strict>], "mode">>;
1223
+ }, z.core.$strict>;
1224
+ };
1225
+ /**
1226
+ * Create a provider config.
1227
+ */
1228
+ createProviderConfig: {
1229
+ request: z.ZodObject<{
1230
+ definitionId: z.ZodString;
1231
+ name: z.ZodOptional<z.ZodString>;
1232
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
1233
+ mode: z.ZodLiteral<"explicit">;
1234
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
1235
+ owner: z.ZodLiteral<"provider">;
1236
+ providerDefinitionId: z.ZodString;
1237
+ methodId: z.ZodString;
1238
+ }, z.core.$strict>, z.ZodObject<{
1239
+ owner: z.ZodLiteral<"client">;
1240
+ clientId: z.ZodString;
1241
+ methodId: z.ZodString;
1242
+ }, z.core.$strict>], "owner">;
1243
+ credentialRefs: z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>;
1244
+ }, z.core.$strict>, z.ZodObject<{
1245
+ mode: z.ZodLiteral<"inferred">;
1246
+ method: z.ZodObject<{
1247
+ owner: z.ZodLiteral<"client">;
1248
+ clientId: z.ZodString;
1249
+ methodId: z.ZodString;
1250
+ }, z.core.$strict>;
1251
+ account: z.ZodOptional<z.ZodObject<{
1252
+ managerId: z.ZodString;
1253
+ accountId: z.ZodString;
1254
+ }, z.core.$strict>>;
1255
+ }, z.core.$strict>, z.ZodObject<{
1256
+ mode: z.ZodLiteral<"none">;
1257
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
1258
+ owner: z.ZodLiteral<"provider">;
1259
+ providerDefinitionId: z.ZodString;
1260
+ methodId: z.ZodString;
1261
+ }, z.core.$strict>, z.ZodObject<{
1262
+ owner: z.ZodLiteral<"client">;
1263
+ clientId: z.ZodString;
1264
+ methodId: z.ZodString;
1265
+ }, z.core.$strict>], "owner">;
1266
+ }, z.core.$strict>], "mode">;
1267
+ managedBy: z.ZodOptional<z.ZodObject<{
1268
+ kind: z.ZodLiteral<"client">;
1269
+ clientId: z.ZodString;
1270
+ }, z.core.$strict>>;
1271
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
1272
+ anthropic: z.ZodOptional<z.ZodString>;
1273
+ openai: z.ZodOptional<z.ZodString>;
1274
+ }, z.core.$strip>>;
1275
+ modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
1276
+ disabled: "disabled";
1277
+ enabled: "enabled";
1278
+ visible: "visible";
1279
+ }>>>;
1280
+ modelFilterMode: z.ZodOptional<z.ZodEnum<{
1281
+ allowlist: "allowlist";
1282
+ "show-all": "show-all";
1283
+ }>>;
1284
+ enabled: z.ZodOptional<z.ZodBoolean>;
1285
+ }, z.core.$strict>;
1286
+ response: z.ZodObject<{
1287
+ config: z.ZodObject<{
1288
+ id: z.ZodString;
1289
+ definitionId: z.ZodString;
1290
+ name: z.ZodString;
1291
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
1292
+ anthropic: z.ZodOptional<z.ZodString>;
1293
+ openai: z.ZodOptional<z.ZodString>;
1294
+ }, z.core.$strict>>;
1295
+ modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
1296
+ disabled: "disabled";
1297
+ enabled: "enabled";
1298
+ visible: "visible";
1299
+ }>>>;
1300
+ modelFilterMode: z.ZodEnum<{
1301
+ allowlist: "allowlist";
1302
+ "show-all": "show-all";
1303
+ }>;
1304
+ isDefault: z.ZodBoolean;
1305
+ enabled: z.ZodBoolean;
1306
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
1307
+ mode: z.ZodLiteral<"explicit">;
1308
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
1309
+ owner: z.ZodLiteral<"provider">;
1310
+ providerDefinitionId: z.ZodString;
1311
+ methodId: z.ZodString;
1312
+ }, z.core.$strict>, z.ZodObject<{
1313
+ owner: z.ZodLiteral<"client">;
1314
+ clientId: z.ZodString;
1315
+ methodId: z.ZodString;
1316
+ }, z.core.$strict>], "owner">;
1317
+ hasCredentials: z.ZodLiteral<true>;
1318
+ }, z.core.$strict>, z.ZodObject<{
1319
+ mode: z.ZodLiteral<"inferred">;
1320
+ method: z.ZodObject<{
1321
+ owner: z.ZodLiteral<"client">;
1322
+ clientId: z.ZodString;
1323
+ methodId: z.ZodString;
1324
+ }, z.core.$strict>;
1325
+ account: z.ZodOptional<z.ZodObject<{
1326
+ managerId: z.ZodString;
1327
+ accountId: z.ZodString;
1328
+ }, z.core.$strict>>;
1329
+ hasCredentials: z.ZodLiteral<false>;
1330
+ }, z.core.$strict>, z.ZodObject<{
1331
+ mode: z.ZodLiteral<"none">;
1332
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
1333
+ owner: z.ZodLiteral<"provider">;
1334
+ providerDefinitionId: z.ZodString;
1335
+ methodId: z.ZodString;
1336
+ }, z.core.$strict>, z.ZodObject<{
1337
+ owner: z.ZodLiteral<"client">;
1338
+ clientId: z.ZodString;
1339
+ methodId: z.ZodString;
1340
+ }, z.core.$strict>], "owner">;
1341
+ hasCredentials: z.ZodLiteral<false>;
1342
+ }, z.core.$strict>], "mode">;
1343
+ managedBy: z.ZodOptional<z.ZodObject<{
1344
+ kind: z.ZodLiteral<"client">;
1345
+ clientId: z.ZodString;
1346
+ }, z.core.$strict>>;
1347
+ }, z.core.$strict>;
1348
+ }, z.core.$strict>;
1349
+ };
1350
+ /**
1351
+ * Update a provider config.
1352
+ */
1353
+ updateProviderConfig: {
1354
+ request: z.ZodObject<{
1355
+ id: z.ZodString;
1356
+ patch: z.ZodObject<{
1357
+ name: z.ZodOptional<z.ZodString>;
1358
+ endpointOverrides: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1359
+ anthropic: z.ZodOptional<z.ZodString>;
1360
+ openai: z.ZodOptional<z.ZodString>;
1361
+ }, z.core.$strip>>>;
1362
+ modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
1363
+ disabled: "disabled";
1364
+ enabled: "enabled";
1365
+ visible: "visible";
1366
+ }>>>;
1367
+ enabled: z.ZodOptional<z.ZodBoolean>;
1368
+ }, z.core.$strict>;
1369
+ }, z.core.$strict>;
1370
+ response: z.ZodObject<{
1371
+ config: z.ZodObject<{
1372
+ id: z.ZodString;
1373
+ definitionId: z.ZodString;
1374
+ name: z.ZodString;
1375
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
1376
+ anthropic: z.ZodOptional<z.ZodString>;
1377
+ openai: z.ZodOptional<z.ZodString>;
1378
+ }, z.core.$strict>>;
1379
+ modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
1380
+ disabled: "disabled";
1381
+ enabled: "enabled";
1382
+ visible: "visible";
1383
+ }>>>;
1384
+ modelFilterMode: z.ZodEnum<{
1385
+ allowlist: "allowlist";
1386
+ "show-all": "show-all";
1387
+ }>;
1388
+ isDefault: z.ZodBoolean;
1389
+ enabled: z.ZodBoolean;
1390
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
1391
+ mode: z.ZodLiteral<"explicit">;
1392
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
1393
+ owner: z.ZodLiteral<"provider">;
1394
+ providerDefinitionId: z.ZodString;
1395
+ methodId: z.ZodString;
1396
+ }, z.core.$strict>, z.ZodObject<{
1397
+ owner: z.ZodLiteral<"client">;
1398
+ clientId: z.ZodString;
1399
+ methodId: z.ZodString;
1400
+ }, z.core.$strict>], "owner">;
1401
+ hasCredentials: z.ZodLiteral<true>;
1402
+ }, z.core.$strict>, z.ZodObject<{
1403
+ mode: z.ZodLiteral<"inferred">;
1404
+ method: z.ZodObject<{
1405
+ owner: z.ZodLiteral<"client">;
1406
+ clientId: z.ZodString;
1407
+ methodId: z.ZodString;
1408
+ }, z.core.$strict>;
1409
+ account: z.ZodOptional<z.ZodObject<{
1410
+ managerId: z.ZodString;
1411
+ accountId: z.ZodString;
1412
+ }, z.core.$strict>>;
1413
+ hasCredentials: z.ZodLiteral<false>;
1414
+ }, z.core.$strict>, z.ZodObject<{
1415
+ mode: z.ZodLiteral<"none">;
1416
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
1417
+ owner: z.ZodLiteral<"provider">;
1418
+ providerDefinitionId: z.ZodString;
1419
+ methodId: z.ZodString;
1420
+ }, z.core.$strict>, z.ZodObject<{
1421
+ owner: z.ZodLiteral<"client">;
1422
+ clientId: z.ZodString;
1423
+ methodId: z.ZodString;
1424
+ }, z.core.$strict>], "owner">;
1425
+ hasCredentials: z.ZodLiteral<false>;
1426
+ }, z.core.$strict>], "mode">;
1427
+ managedBy: z.ZodOptional<z.ZodObject<{
1428
+ kind: z.ZodLiteral<"client">;
1429
+ clientId: z.ZodString;
1430
+ }, z.core.$strict>>;
1431
+ }, z.core.$strict>;
1432
+ }, z.core.$strict>;
1433
+ }; /** Replace the complete authentication selection for one provider config. */
1434
+ setProviderConfigAuth: {
1435
+ request: z.ZodObject<{
1436
+ id: z.ZodString;
1437
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
1438
+ mode: z.ZodLiteral<"explicit">;
1439
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
1440
+ owner: z.ZodLiteral<"provider">;
1441
+ providerDefinitionId: z.ZodString;
1442
+ methodId: z.ZodString;
1443
+ }, z.core.$strict>, z.ZodObject<{
1444
+ owner: z.ZodLiteral<"client">;
1445
+ clientId: z.ZodString;
1446
+ methodId: z.ZodString;
1447
+ }, z.core.$strict>], "owner">;
1448
+ credentialRefs: z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>;
1449
+ }, z.core.$strict>, z.ZodObject<{
1450
+ mode: z.ZodLiteral<"inferred">;
1451
+ method: z.ZodObject<{
1452
+ owner: z.ZodLiteral<"client">;
1453
+ clientId: z.ZodString;
1454
+ methodId: z.ZodString;
1455
+ }, z.core.$strict>;
1456
+ account: z.ZodOptional<z.ZodObject<{
1457
+ managerId: z.ZodString;
1458
+ accountId: z.ZodString;
1459
+ }, z.core.$strict>>;
1460
+ }, z.core.$strict>, z.ZodObject<{
1461
+ mode: z.ZodLiteral<"none">;
1462
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
1463
+ owner: z.ZodLiteral<"provider">;
1464
+ providerDefinitionId: z.ZodString;
1465
+ methodId: z.ZodString;
1466
+ }, z.core.$strict>, z.ZodObject<{
1467
+ owner: z.ZodLiteral<"client">;
1468
+ clientId: z.ZodString;
1469
+ methodId: z.ZodString;
1470
+ }, z.core.$strict>], "owner">;
1471
+ }, z.core.$strict>], "mode">;
1472
+ }, z.core.$strict>;
1473
+ response: z.ZodObject<{
1474
+ config: z.ZodObject<{
1475
+ id: z.ZodString;
1476
+ definitionId: z.ZodString;
1477
+ name: z.ZodString;
1478
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
1479
+ anthropic: z.ZodOptional<z.ZodString>;
1480
+ openai: z.ZodOptional<z.ZodString>;
1481
+ }, z.core.$strict>>;
1482
+ modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
1483
+ disabled: "disabled";
1484
+ enabled: "enabled";
1485
+ visible: "visible";
1486
+ }>>>;
1487
+ modelFilterMode: z.ZodEnum<{
1488
+ allowlist: "allowlist";
1489
+ "show-all": "show-all";
1490
+ }>;
1491
+ isDefault: z.ZodBoolean;
1492
+ enabled: z.ZodBoolean;
1493
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
1494
+ mode: z.ZodLiteral<"explicit">;
1495
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
1496
+ owner: z.ZodLiteral<"provider">;
1497
+ providerDefinitionId: z.ZodString;
1498
+ methodId: z.ZodString;
1499
+ }, z.core.$strict>, z.ZodObject<{
1500
+ owner: z.ZodLiteral<"client">;
1501
+ clientId: z.ZodString;
1502
+ methodId: z.ZodString;
1503
+ }, z.core.$strict>], "owner">;
1504
+ hasCredentials: z.ZodLiteral<true>;
1505
+ }, z.core.$strict>, z.ZodObject<{
1506
+ mode: z.ZodLiteral<"inferred">;
1507
+ method: z.ZodObject<{
1508
+ owner: z.ZodLiteral<"client">;
1509
+ clientId: z.ZodString;
1510
+ methodId: z.ZodString;
1511
+ }, z.core.$strict>;
1512
+ account: z.ZodOptional<z.ZodObject<{
1513
+ managerId: z.ZodString;
1514
+ accountId: z.ZodString;
1515
+ }, z.core.$strict>>;
1516
+ hasCredentials: z.ZodLiteral<false>;
1517
+ }, z.core.$strict>, z.ZodObject<{
1518
+ mode: z.ZodLiteral<"none">;
1519
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
1520
+ owner: z.ZodLiteral<"provider">;
1521
+ providerDefinitionId: z.ZodString;
1522
+ methodId: z.ZodString;
1523
+ }, z.core.$strict>, z.ZodObject<{
1524
+ owner: z.ZodLiteral<"client">;
1525
+ clientId: z.ZodString;
1526
+ methodId: z.ZodString;
1527
+ }, z.core.$strict>], "owner">;
1528
+ hasCredentials: z.ZodLiteral<false>;
1529
+ }, z.core.$strict>], "mode">;
1530
+ managedBy: z.ZodOptional<z.ZodObject<{
1531
+ kind: z.ZodLiteral<"client">;
1532
+ clientId: z.ZodString;
1533
+ }, z.core.$strict>>;
1534
+ }, z.core.$strict>;
1535
+ }, z.core.$strict>;
1536
+ };
1537
+ /**
1538
+ * Delete a provider config.
1539
+ */
1540
+ deleteProviderConfig: {
1541
+ request: z.ZodObject<{
1542
+ id: z.ZodString;
1543
+ }, z.core.$strict>;
1544
+ response: z.ZodObject<{
1545
+ deleted: z.ZodBoolean;
1546
+ }, z.core.$strict>;
1547
+ };
1548
+ /**
1549
+ * Set the default provider config for its definition.
1550
+ */
1551
+ setDefaultProviderConfig: {
1552
+ request: z.ZodObject<{
1553
+ id: z.ZodString;
1554
+ }, z.core.$strict>;
1555
+ response: z.ZodObject<{
1556
+ config: z.ZodObject<{
1557
+ id: z.ZodString;
1558
+ definitionId: z.ZodString;
1559
+ name: z.ZodString;
1560
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
1561
+ anthropic: z.ZodOptional<z.ZodString>;
1562
+ openai: z.ZodOptional<z.ZodString>;
1563
+ }, z.core.$strict>>;
1564
+ modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
1565
+ disabled: "disabled";
1566
+ enabled: "enabled";
1567
+ visible: "visible";
1568
+ }>>>;
1569
+ modelFilterMode: z.ZodEnum<{
1570
+ allowlist: "allowlist";
1571
+ "show-all": "show-all";
1572
+ }>;
1573
+ isDefault: z.ZodBoolean;
1574
+ enabled: z.ZodBoolean;
1575
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
1576
+ mode: z.ZodLiteral<"explicit">;
1577
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
1578
+ owner: z.ZodLiteral<"provider">;
1579
+ providerDefinitionId: z.ZodString;
1580
+ methodId: z.ZodString;
1581
+ }, z.core.$strict>, z.ZodObject<{
1582
+ owner: z.ZodLiteral<"client">;
1583
+ clientId: z.ZodString;
1584
+ methodId: z.ZodString;
1585
+ }, z.core.$strict>], "owner">;
1586
+ hasCredentials: z.ZodLiteral<true>;
1587
+ }, z.core.$strict>, z.ZodObject<{
1588
+ mode: z.ZodLiteral<"inferred">;
1589
+ method: z.ZodObject<{
1590
+ owner: z.ZodLiteral<"client">;
1591
+ clientId: z.ZodString;
1592
+ methodId: z.ZodString;
1593
+ }, z.core.$strict>;
1594
+ account: z.ZodOptional<z.ZodObject<{
1595
+ managerId: z.ZodString;
1596
+ accountId: z.ZodString;
1597
+ }, z.core.$strict>>;
1598
+ hasCredentials: z.ZodLiteral<false>;
1599
+ }, z.core.$strict>, z.ZodObject<{
1600
+ mode: z.ZodLiteral<"none">;
1601
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
1602
+ owner: z.ZodLiteral<"provider">;
1603
+ providerDefinitionId: z.ZodString;
1604
+ methodId: z.ZodString;
1605
+ }, z.core.$strict>, z.ZodObject<{
1606
+ owner: z.ZodLiteral<"client">;
1607
+ clientId: z.ZodString;
1608
+ methodId: z.ZodString;
1609
+ }, z.core.$strict>], "owner">;
1610
+ hasCredentials: z.ZodLiteral<false>;
1611
+ }, z.core.$strict>], "mode">;
1612
+ managedBy: z.ZodOptional<z.ZodObject<{
1613
+ kind: z.ZodLiteral<"client">;
1614
+ clientId: z.ZodString;
1615
+ }, z.core.$strict>>;
1616
+ }, z.core.$strict>;
1617
+ }, z.core.$strict>;
1618
+ };
1619
+ /**
1620
+ * Set the model filter mode for a provider config.
1621
+ */
1622
+ setModelFilterMode: {
1623
+ request: z.ZodObject<{
1624
+ id: z.ZodString;
1625
+ modelFilterMode: z.ZodEnum<{
1626
+ allowlist: "allowlist";
1627
+ "show-all": "show-all";
1628
+ }>;
1629
+ preferredModel: z.ZodOptional<z.ZodString>;
1630
+ }, z.core.$strict>;
1631
+ response: z.ZodObject<{
1632
+ config: z.ZodObject<{
1633
+ id: z.ZodString;
1634
+ definitionId: z.ZodString;
1635
+ name: z.ZodString;
1636
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
1637
+ anthropic: z.ZodOptional<z.ZodString>;
1638
+ openai: z.ZodOptional<z.ZodString>;
1639
+ }, z.core.$strict>>;
1640
+ modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
1641
+ disabled: "disabled";
1642
+ enabled: "enabled";
1643
+ visible: "visible";
1644
+ }>>>;
1645
+ modelFilterMode: z.ZodEnum<{
1646
+ allowlist: "allowlist";
1647
+ "show-all": "show-all";
1648
+ }>;
1649
+ isDefault: z.ZodBoolean;
1650
+ enabled: z.ZodBoolean;
1651
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
1652
+ mode: z.ZodLiteral<"explicit">;
1653
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
1654
+ owner: z.ZodLiteral<"provider">;
1655
+ providerDefinitionId: z.ZodString;
1656
+ methodId: z.ZodString;
1657
+ }, z.core.$strict>, z.ZodObject<{
1658
+ owner: z.ZodLiteral<"client">;
1659
+ clientId: z.ZodString;
1660
+ methodId: z.ZodString;
1661
+ }, z.core.$strict>], "owner">;
1662
+ hasCredentials: z.ZodLiteral<true>;
1663
+ }, z.core.$strict>, z.ZodObject<{
1664
+ mode: z.ZodLiteral<"inferred">;
1665
+ method: z.ZodObject<{
1666
+ owner: z.ZodLiteral<"client">;
1667
+ clientId: z.ZodString;
1668
+ methodId: z.ZodString;
1669
+ }, z.core.$strict>;
1670
+ account: z.ZodOptional<z.ZodObject<{
1671
+ managerId: z.ZodString;
1672
+ accountId: z.ZodString;
1673
+ }, z.core.$strict>>;
1674
+ hasCredentials: z.ZodLiteral<false>;
1675
+ }, z.core.$strict>, z.ZodObject<{
1676
+ mode: z.ZodLiteral<"none">;
1677
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
1678
+ owner: z.ZodLiteral<"provider">;
1679
+ providerDefinitionId: z.ZodString;
1680
+ methodId: z.ZodString;
1681
+ }, z.core.$strict>, z.ZodObject<{
1682
+ owner: z.ZodLiteral<"client">;
1683
+ clientId: z.ZodString;
1684
+ methodId: z.ZodString;
1685
+ }, z.core.$strict>], "owner">;
1686
+ hasCredentials: z.ZodLiteral<false>;
1687
+ }, z.core.$strict>], "mode">;
1688
+ managedBy: z.ZodOptional<z.ZodObject<{
1689
+ kind: z.ZodLiteral<"client">;
1690
+ clientId: z.ZodString;
1691
+ }, z.core.$strict>>;
1692
+ }, z.core.$strict>;
1693
+ }, z.core.$strict>;
1694
+ };
1695
+ /**
1696
+ * Set adapter config fields.
1697
+ */
1698
+ setAdapterConfig: {
1699
+ request: z.ZodObject<{
1700
+ name: z.ZodString;
1701
+ patch: z.ZodObject<{
1702
+ displayName: z.ZodOptional<z.ZodString>;
1703
+ description: z.ZodOptional<z.ZodString>;
1704
+ helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1705
+ label: z.ZodString;
1706
+ url: z.ZodString;
1707
+ }, z.core.$strict>>>;
1708
+ instructions: z.ZodOptional<z.ZodString>;
1709
+ clientId: z.ZodOptional<z.ZodString>;
1710
+ protocol: z.ZodOptional<z.ZodString>;
1711
+ providerDefinitionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1712
+ settings: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1713
+ enabled: z.ZodOptional<z.ZodBoolean>;
1714
+ }, z.core.$strict>;
1715
+ }, z.core.$strict>;
1716
+ response: z.ZodObject<{
1717
+ config: z.ZodObject<{
1718
+ description: z.ZodOptional<z.ZodString>;
1719
+ displayName: z.ZodOptional<z.ZodString>;
1720
+ protocol: z.ZodOptional<z.ZodString>;
1721
+ clientId: z.ZodOptional<z.ZodString>;
1722
+ helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1723
+ label: z.ZodString;
1724
+ url: z.ZodString;
1725
+ }, z.core.$strict>>>;
1726
+ instructions: z.ZodOptional<z.ZodString>;
1727
+ providerDefinitionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1728
+ settings: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
1729
+ name: z.ZodString;
1730
+ enabled: z.ZodBoolean;
1731
+ bindings: z.ZodArray<z.ZodObject<{
1732
+ adapterName: z.ZodString;
1733
+ providerConfigId: z.ZodString;
1734
+ isDefault: z.ZodBoolean;
1735
+ }, z.core.$strict>>;
1736
+ }, z.core.$strict>;
1737
+ }, z.core.$strict>;
1738
+ };
1739
+ /**
1740
+ * Enable or disable an adapter config.
1741
+ */
1742
+ setAdapterEnabled: {
1743
+ request: z.ZodObject<{
1744
+ name: z.ZodString;
1745
+ enabled: z.ZodBoolean;
1746
+ }, z.core.$strict>;
1747
+ response: z.ZodObject<{
1748
+ success: z.ZodBoolean;
1749
+ }, z.core.$strict>;
1750
+ };
1751
+ /**
1752
+ * Bind a provider config to an adapter.
1753
+ */
1754
+ bind: {
1755
+ request: z.ZodObject<{
1756
+ adapterName: z.ZodString;
1757
+ providerConfigId: z.ZodString;
1758
+ }, z.core.$strict>;
1759
+ response: z.ZodObject<{
1760
+ binding: z.ZodObject<{
1761
+ adapterName: z.ZodString;
1762
+ providerConfigId: z.ZodString;
1763
+ isDefault: z.ZodBoolean;
1764
+ }, z.core.$strict>;
1765
+ }, z.core.$strict>;
1766
+ };
1767
+ /**
1768
+ * Unbind a provider config from an adapter.
1769
+ */
1770
+ unbind: {
1771
+ request: z.ZodObject<{
1772
+ adapterName: z.ZodString;
1773
+ providerConfigId: z.ZodString;
1774
+ }, z.core.$strict>;
1775
+ response: z.ZodObject<{}, z.core.$strict>;
1776
+ };
1777
+ /**
1778
+ * Set the default binding for an adapter.
1779
+ */
1780
+ setDefaultBinding: {
1781
+ request: z.ZodObject<{
1782
+ adapterName: z.ZodString;
1783
+ providerConfigId: z.ZodString;
1784
+ }, z.core.$strict>;
1785
+ response: z.ZodObject<{}, z.core.$strict>;
1786
+ };
1787
+ /**
1788
+ * Ensure the subsystem is ready for grain-constrained consumers.
1789
+ */
1790
+ ensureReady: {
1791
+ request: z.ZodObject<{}, z.core.$strict>;
1792
+ response: z.ZodObject<{
1793
+ ready: z.ZodLiteral<true>;
1794
+ }, z.core.$strict>;
1795
+ };
1796
+ /**
1797
+ * Provider config lifecycle events.
1798
+ */
1799
+ 'providerConfig.created': z.ZodObject<{
1800
+ id: z.ZodString;
1801
+ definitionId: z.ZodString;
1802
+ name: z.ZodString;
1803
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
1804
+ anthropic: z.ZodOptional<z.ZodString>;
1805
+ openai: z.ZodOptional<z.ZodString>;
1806
+ }, z.core.$strict>>;
1807
+ modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
1808
+ disabled: "disabled";
1809
+ enabled: "enabled";
1810
+ visible: "visible";
1811
+ }>>>;
1812
+ modelFilterMode: z.ZodEnum<{
1813
+ allowlist: "allowlist";
1814
+ "show-all": "show-all";
1815
+ }>;
1816
+ isDefault: z.ZodBoolean;
1817
+ enabled: z.ZodBoolean;
1818
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
1819
+ mode: z.ZodLiteral<"explicit">;
1820
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
1821
+ owner: z.ZodLiteral<"provider">;
1822
+ providerDefinitionId: z.ZodString;
1823
+ methodId: z.ZodString;
1824
+ }, z.core.$strict>, z.ZodObject<{
1825
+ owner: z.ZodLiteral<"client">;
1826
+ clientId: z.ZodString;
1827
+ methodId: z.ZodString;
1828
+ }, z.core.$strict>], "owner">;
1829
+ hasCredentials: z.ZodLiteral<true>;
1830
+ }, z.core.$strict>, z.ZodObject<{
1831
+ mode: z.ZodLiteral<"inferred">;
1832
+ method: z.ZodObject<{
1833
+ owner: z.ZodLiteral<"client">;
1834
+ clientId: z.ZodString;
1835
+ methodId: z.ZodString;
1836
+ }, z.core.$strict>;
1837
+ account: z.ZodOptional<z.ZodObject<{
1838
+ managerId: z.ZodString;
1839
+ accountId: z.ZodString;
1840
+ }, z.core.$strict>>;
1841
+ hasCredentials: z.ZodLiteral<false>;
1842
+ }, z.core.$strict>, z.ZodObject<{
1843
+ mode: z.ZodLiteral<"none">;
1844
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
1845
+ owner: z.ZodLiteral<"provider">;
1846
+ providerDefinitionId: z.ZodString;
1847
+ methodId: z.ZodString;
1848
+ }, z.core.$strict>, z.ZodObject<{
1849
+ owner: z.ZodLiteral<"client">;
1850
+ clientId: z.ZodString;
1851
+ methodId: z.ZodString;
1852
+ }, z.core.$strict>], "owner">;
1853
+ hasCredentials: z.ZodLiteral<false>;
1854
+ }, z.core.$strict>], "mode">;
1855
+ managedBy: z.ZodOptional<z.ZodObject<{
1856
+ kind: z.ZodLiteral<"client">;
1857
+ clientId: z.ZodString;
1858
+ }, z.core.$strict>>;
1859
+ }, z.core.$strict>;
1860
+ 'providerConfig.updated': z.ZodObject<{
1861
+ id: z.ZodString;
1862
+ definitionId: z.ZodString;
1863
+ name: z.ZodString;
1864
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
1865
+ anthropic: z.ZodOptional<z.ZodString>;
1866
+ openai: z.ZodOptional<z.ZodString>;
1867
+ }, z.core.$strict>>;
1868
+ modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
1869
+ disabled: "disabled";
1870
+ enabled: "enabled";
1871
+ visible: "visible";
1872
+ }>>>;
1873
+ modelFilterMode: z.ZodEnum<{
1874
+ allowlist: "allowlist";
1875
+ "show-all": "show-all";
1876
+ }>;
1877
+ isDefault: z.ZodBoolean;
1878
+ enabled: z.ZodBoolean;
1879
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
1880
+ mode: z.ZodLiteral<"explicit">;
1881
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
1882
+ owner: z.ZodLiteral<"provider">;
1883
+ providerDefinitionId: z.ZodString;
1884
+ methodId: z.ZodString;
1885
+ }, z.core.$strict>, z.ZodObject<{
1886
+ owner: z.ZodLiteral<"client">;
1887
+ clientId: z.ZodString;
1888
+ methodId: z.ZodString;
1889
+ }, z.core.$strict>], "owner">;
1890
+ hasCredentials: z.ZodLiteral<true>;
1891
+ }, z.core.$strict>, z.ZodObject<{
1892
+ mode: z.ZodLiteral<"inferred">;
1893
+ method: z.ZodObject<{
1894
+ owner: z.ZodLiteral<"client">;
1895
+ clientId: z.ZodString;
1896
+ methodId: z.ZodString;
1897
+ }, z.core.$strict>;
1898
+ account: z.ZodOptional<z.ZodObject<{
1899
+ managerId: z.ZodString;
1900
+ accountId: z.ZodString;
1901
+ }, z.core.$strict>>;
1902
+ hasCredentials: z.ZodLiteral<false>;
1903
+ }, z.core.$strict>, z.ZodObject<{
1904
+ mode: z.ZodLiteral<"none">;
1905
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
1906
+ owner: z.ZodLiteral<"provider">;
1907
+ providerDefinitionId: z.ZodString;
1908
+ methodId: z.ZodString;
1909
+ }, z.core.$strict>, z.ZodObject<{
1910
+ owner: z.ZodLiteral<"client">;
1911
+ clientId: z.ZodString;
1912
+ methodId: z.ZodString;
1913
+ }, z.core.$strict>], "owner">;
1914
+ hasCredentials: z.ZodLiteral<false>;
1915
+ }, z.core.$strict>], "mode">;
1916
+ managedBy: z.ZodOptional<z.ZodObject<{
1917
+ kind: z.ZodLiteral<"client">;
1918
+ clientId: z.ZodString;
1919
+ }, z.core.$strict>>;
1920
+ }, z.core.$strict>;
1921
+ 'providerConfig.deleted': z.ZodObject<{
1922
+ id: z.ZodString;
1923
+ }, z.core.$strict>;
1924
+ 'providerConfig.defaultChanged': z.ZodObject<{
1925
+ definitionId: z.ZodString;
1926
+ configId: z.ZodNullable<z.ZodString>;
1927
+ }, z.core.$strict>;
1928
+ /**
1929
+ * Binding lifecycle events.
1930
+ */
1931
+ 'binding.created': z.ZodObject<{
1932
+ adapterName: z.ZodString;
1933
+ providerConfigId: z.ZodString;
1934
+ isDefault: z.ZodBoolean;
1935
+ }, z.core.$strict>;
1936
+ 'binding.deleted': z.ZodObject<{
1937
+ adapterName: z.ZodString;
1938
+ providerConfigId: z.ZodString;
1939
+ }, z.core.$strict>;
1940
+ 'binding.defaultChanged': z.ZodObject<{
1941
+ adapterName: z.ZodString;
1942
+ providerConfigId: z.ZodString;
1943
+ }, z.core.$strict>;
1944
+ /**
1945
+ * Readiness observability event (fire-and-forget, no replay guarantee).
1946
+ *
1947
+ * Listeners registered after the subsystem emits this event will miss it.
1948
+ * Use `ensureReady` (request/response) for reliable coordination.
1949
+ */
1950
+ ready: z.ZodObject<{}, z.core.$strict>;
1951
+ /**
1952
+ * Emitted once per adapter after the adapter-subsystem service processes a
1953
+ * newly-active adapter package.
1954
+ *
1955
+ * Replaces the retired batch `adaptersRegistered` event. The model registry
1956
+ * and other subscribers react per-adapter and debounce refreshes as needed.
1957
+ *
1958
+ * Fire-and-forget; no replay guarantee.
1959
+ */
1960
+ 'adapter.registered': z.ZodObject<{
1961
+ adapterName: z.ZodString;
1962
+ displayName: z.ZodString;
1963
+ packageName: z.ZodString;
1964
+ enabled: z.ZodBoolean;
1965
+ initialized: z.ZodBoolean;
1966
+ providerDefinitionIds: z.ZodArray<z.ZodString>;
1967
+ }, z.core.$strict>;
1968
+ };
1969
+ //#endregion
1970
+ //#region services/core/src/adapter-subsystem/runtime-schemas.d.ts
1971
+ /** Credential-free summary of one persisted provider-config auth selection. */
1972
+ declare const ProviderConfigAuthSummarySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1973
+ mode: z.ZodLiteral<"explicit">;
1974
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
1975
+ owner: z.ZodLiteral<"provider">;
1976
+ providerDefinitionId: z.ZodString;
1977
+ methodId: z.ZodString;
1978
+ }, z.core.$strict>, z.ZodObject<{
1979
+ owner: z.ZodLiteral<"client">;
1980
+ clientId: z.ZodString;
1981
+ methodId: z.ZodString;
1982
+ }, z.core.$strict>], "owner">;
1983
+ hasCredentials: z.ZodLiteral<true>;
1984
+ }, z.core.$strict>, z.ZodObject<{
1985
+ mode: z.ZodLiteral<"inferred">;
1986
+ method: z.ZodObject<{
1987
+ owner: z.ZodLiteral<"client">;
1988
+ clientId: z.ZodString;
1989
+ methodId: z.ZodString;
1990
+ }, z.core.$strict>;
1991
+ account: z.ZodOptional<z.ZodObject<{
1992
+ managerId: z.ZodString;
1993
+ accountId: z.ZodString;
1994
+ }, z.core.$strict>>;
1995
+ hasCredentials: z.ZodLiteral<false>;
1996
+ }, z.core.$strict>, z.ZodObject<{
1997
+ mode: z.ZodLiteral<"none">;
1998
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
1999
+ owner: z.ZodLiteral<"provider">;
2000
+ providerDefinitionId: z.ZodString;
2001
+ methodId: z.ZodString;
2002
+ }, z.core.$strict>, z.ZodObject<{
2003
+ owner: z.ZodLiteral<"client">;
2004
+ clientId: z.ZodString;
2005
+ methodId: z.ZodString;
2006
+ }, z.core.$strict>], "owner">;
2007
+ hasCredentials: z.ZodLiteral<false>;
2008
+ }, z.core.$strict>], "mode">;
2009
+ /** Authentication method that at least one loaded adapter can deliver. */
2010
+ declare const CompatibleAuthOptionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2011
+ definitionId: z.ZodString;
2012
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
2013
+ owner: z.ZodLiteral<"provider">;
2014
+ providerDefinitionId: z.ZodString;
2015
+ methodId: z.ZodString;
2016
+ }, z.core.$strict>, z.ZodObject<{
2017
+ owner: z.ZodLiteral<"client">;
2018
+ clientId: z.ZodString;
2019
+ methodId: z.ZodString;
2020
+ }, z.core.$strict>], "owner">;
2021
+ mode: z.ZodLiteral<"explicit">;
2022
+ label: z.ZodString;
2023
+ description: z.ZodOptional<z.ZodString>;
2024
+ fields: z.ZodArray<z.ZodObject<{
2025
+ id: z.ZodString;
2026
+ label: z.ZodString;
2027
+ description: z.ZodOptional<z.ZodString>;
2028
+ required: z.ZodBoolean;
2029
+ secret: z.ZodBoolean;
2030
+ sourceHints: z.ZodArray<z.ZodObject<{
2031
+ kind: z.ZodLiteral<"environment">;
2032
+ variable: z.ZodString;
2033
+ }, z.core.$strict>>;
2034
+ }, z.core.$strict>>;
2035
+ compatibleAdapterNames: z.ZodArray<z.ZodString>;
2036
+ portability: z.ZodLiteral<"portable">;
2037
+ }, z.core.$strict>, z.ZodObject<{
2038
+ definitionId: z.ZodString;
2039
+ method: z.ZodObject<{
2040
+ owner: z.ZodLiteral<"client">;
2041
+ clientId: z.ZodString;
2042
+ methodId: z.ZodString;
2043
+ }, z.core.$strict>;
2044
+ mode: z.ZodLiteral<"inferred">;
2045
+ label: z.ZodString;
2046
+ description: z.ZodOptional<z.ZodString>;
2047
+ fields: z.ZodArray<z.ZodObject<{
2048
+ id: z.ZodString;
2049
+ label: z.ZodString;
2050
+ description: z.ZodOptional<z.ZodString>;
2051
+ required: z.ZodBoolean;
2052
+ secret: z.ZodBoolean;
2053
+ sourceHints: z.ZodArray<z.ZodObject<{
2054
+ kind: z.ZodLiteral<"environment">;
2055
+ variable: z.ZodString;
2056
+ }, z.core.$strict>>;
2057
+ }, z.core.$strict>>;
2058
+ compatibleAdapterNames: z.ZodArray<z.ZodString>;
2059
+ portability: z.ZodLiteral<"local-only">;
2060
+ }, z.core.$strict>, z.ZodObject<{
2061
+ definitionId: z.ZodString;
2062
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
2063
+ owner: z.ZodLiteral<"provider">;
2064
+ providerDefinitionId: z.ZodString;
2065
+ methodId: z.ZodString;
2066
+ }, z.core.$strict>, z.ZodObject<{
2067
+ owner: z.ZodLiteral<"client">;
2068
+ clientId: z.ZodString;
2069
+ methodId: z.ZodString;
2070
+ }, z.core.$strict>], "owner">;
2071
+ mode: z.ZodLiteral<"none">;
2072
+ label: z.ZodString;
2073
+ description: z.ZodOptional<z.ZodString>;
2074
+ fields: z.ZodArray<z.ZodObject<{
2075
+ id: z.ZodString;
2076
+ label: z.ZodString;
2077
+ description: z.ZodOptional<z.ZodString>;
2078
+ required: z.ZodBoolean;
2079
+ secret: z.ZodBoolean;
2080
+ sourceHints: z.ZodArray<z.ZodObject<{
2081
+ kind: z.ZodLiteral<"environment">;
2082
+ variable: z.ZodString;
2083
+ }, z.core.$strict>>;
2084
+ }, z.core.$strict>>;
2085
+ compatibleAdapterNames: z.ZodArray<z.ZodString>;
2086
+ portability: z.ZodLiteral<"portable">;
2087
+ }, z.core.$strict>], "mode">;
2088
+ /** Bus-safe provider config read model that excludes credential references. */
2089
+ declare const ProviderConfigFileRecordSchema: z.ZodObject<{
2090
+ id: z.ZodString;
2091
+ definitionId: z.ZodString;
2092
+ name: z.ZodString;
2093
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
2094
+ anthropic: z.ZodOptional<z.ZodString>;
2095
+ openai: z.ZodOptional<z.ZodString>;
2096
+ }, z.core.$strict>>;
2097
+ modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
2098
+ disabled: "disabled";
2099
+ enabled: "enabled";
2100
+ visible: "visible";
2101
+ }>>>;
2102
+ modelFilterMode: z.ZodEnum<{
2103
+ allowlist: "allowlist";
2104
+ "show-all": "show-all";
2105
+ }>;
2106
+ isDefault: z.ZodBoolean;
2107
+ enabled: z.ZodBoolean;
2108
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
2109
+ mode: z.ZodLiteral<"explicit">;
2110
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
2111
+ owner: z.ZodLiteral<"provider">;
2112
+ providerDefinitionId: z.ZodString;
2113
+ methodId: z.ZodString;
2114
+ }, z.core.$strict>, z.ZodObject<{
2115
+ owner: z.ZodLiteral<"client">;
2116
+ clientId: z.ZodString;
2117
+ methodId: z.ZodString;
2118
+ }, z.core.$strict>], "owner">;
2119
+ hasCredentials: z.ZodLiteral<true>;
2120
+ }, z.core.$strict>, z.ZodObject<{
2121
+ mode: z.ZodLiteral<"inferred">;
2122
+ method: z.ZodObject<{
2123
+ owner: z.ZodLiteral<"client">;
2124
+ clientId: z.ZodString;
2125
+ methodId: z.ZodString;
2126
+ }, z.core.$strict>;
2127
+ account: z.ZodOptional<z.ZodObject<{
2128
+ managerId: z.ZodString;
2129
+ accountId: z.ZodString;
2130
+ }, z.core.$strict>>;
2131
+ hasCredentials: z.ZodLiteral<false>;
2132
+ }, z.core.$strict>, z.ZodObject<{
2133
+ mode: z.ZodLiteral<"none">;
2134
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
2135
+ owner: z.ZodLiteral<"provider">;
2136
+ providerDefinitionId: z.ZodString;
2137
+ methodId: z.ZodString;
2138
+ }, z.core.$strict>, z.ZodObject<{
2139
+ owner: z.ZodLiteral<"client">;
2140
+ clientId: z.ZodString;
2141
+ methodId: z.ZodString;
2142
+ }, z.core.$strict>], "owner">;
2143
+ hasCredentials: z.ZodLiteral<false>;
2144
+ }, z.core.$strict>], "mode">;
2145
+ managedBy: z.ZodOptional<z.ZodObject<{
2146
+ kind: z.ZodLiteral<"client">;
2147
+ clientId: z.ZodString;
2148
+ }, z.core.$strict>>;
2149
+ }, z.core.$strict>;
2150
+ /** Inferred bus-safe provider config read model. */
2151
+ type ProviderConfigFileRecord = z.infer<typeof ProviderConfigFileRecordSchema>;
2152
+ /** Inferred credential-free provider-config auth summary. */
2153
+ type ProviderConfigAuthSummary = z.infer<typeof ProviderConfigAuthSummarySchema>;
2154
+ /** Inferred adapter-compatible authentication choice. */
2155
+ type CompatibleAuthOption = z.infer<typeof CompatibleAuthOptionSchema>;
2156
+ /** Atomic, refs-only provider config, context, and definition snapshot. */
2157
+ declare const ProviderRuntimeSnapshotSchema: z.ZodObject<{
2158
+ config: z.ZodObject<{
2159
+ id: z.ZodString;
2160
+ definitionId: z.ZodString;
2161
+ name: z.ZodString;
2162
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
2163
+ anthropic: z.ZodOptional<z.ZodString>;
2164
+ openai: z.ZodOptional<z.ZodString>;
2165
+ }, z.core.$strict>>;
2166
+ modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
2167
+ disabled: "disabled";
2168
+ enabled: "enabled";
2169
+ visible: "visible";
2170
+ }>>>;
2171
+ modelFilterMode: z.ZodEnum<{
2172
+ allowlist: "allowlist";
2173
+ "show-all": "show-all";
2174
+ }>;
2175
+ isDefault: z.ZodBoolean;
2176
+ enabled: z.ZodBoolean;
2177
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
2178
+ mode: z.ZodLiteral<"explicit">;
2179
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
2180
+ owner: z.ZodLiteral<"provider">;
2181
+ providerDefinitionId: z.ZodString;
2182
+ methodId: z.ZodString;
2183
+ }, z.core.$strict>, z.ZodObject<{
2184
+ owner: z.ZodLiteral<"client">;
2185
+ clientId: z.ZodString;
2186
+ methodId: z.ZodString;
2187
+ }, z.core.$strict>], "owner">;
2188
+ hasCredentials: z.ZodLiteral<true>;
2189
+ }, z.core.$strict>, z.ZodObject<{
2190
+ mode: z.ZodLiteral<"inferred">;
2191
+ method: z.ZodObject<{
2192
+ owner: z.ZodLiteral<"client">;
2193
+ clientId: z.ZodString;
2194
+ methodId: z.ZodString;
2195
+ }, z.core.$strict>;
2196
+ account: z.ZodOptional<z.ZodObject<{
2197
+ managerId: z.ZodString;
2198
+ accountId: z.ZodString;
2199
+ }, z.core.$strict>>;
2200
+ hasCredentials: z.ZodLiteral<false>;
2201
+ }, z.core.$strict>, z.ZodObject<{
2202
+ mode: z.ZodLiteral<"none">;
2203
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
2204
+ owner: z.ZodLiteral<"provider">;
2205
+ providerDefinitionId: z.ZodString;
2206
+ methodId: z.ZodString;
2207
+ }, z.core.$strict>, z.ZodObject<{
2208
+ owner: z.ZodLiteral<"client">;
2209
+ clientId: z.ZodString;
2210
+ methodId: z.ZodString;
2211
+ }, z.core.$strict>], "owner">;
2212
+ hasCredentials: z.ZodLiteral<false>;
2213
+ }, z.core.$strict>], "mode">;
2214
+ managedBy: z.ZodOptional<z.ZodObject<{
2215
+ kind: z.ZodLiteral<"client">;
2216
+ clientId: z.ZodString;
2217
+ }, z.core.$strict>>;
2218
+ }, z.core.$strict>;
2219
+ context: z.ZodObject<{
2220
+ state: z.ZodLiteral<"resolved">;
2221
+ providerConfigId: z.ZodString;
2222
+ definitionId: z.ZodString;
2223
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
2224
+ anthropic: z.ZodOptional<z.ZodString>;
2225
+ openai: z.ZodOptional<z.ZodString>;
2226
+ }, z.core.$strip>>;
2227
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
2228
+ mode: z.ZodLiteral<"explicit">;
2229
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
2230
+ owner: z.ZodLiteral<"provider">;
2231
+ providerDefinitionId: z.ZodString;
2232
+ methodId: z.ZodString;
2233
+ }, z.core.$strict>, z.ZodObject<{
2234
+ owner: z.ZodLiteral<"client">;
2235
+ clientId: z.ZodString;
2236
+ methodId: z.ZodString;
2237
+ }, z.core.$strict>], "owner">;
2238
+ definition: z.ZodObject<{
2239
+ id: z.ZodString;
2240
+ mode: z.ZodLiteral<"explicit">;
2241
+ label: z.ZodString;
2242
+ description: z.ZodOptional<z.ZodString>;
2243
+ fields: z.ZodArray<z.ZodObject<{
2244
+ id: z.ZodString;
2245
+ label: z.ZodString;
2246
+ description: z.ZodOptional<z.ZodString>;
2247
+ required: z.ZodBoolean;
2248
+ secret: z.ZodBoolean;
2249
+ sourceHints: z.ZodArray<z.ZodObject<{
2250
+ kind: z.ZodLiteral<"environment">;
2251
+ variable: z.ZodString;
2252
+ }, z.core.$strict>>;
2253
+ }, z.core.$strict>>;
2254
+ }, z.core.$strict>;
2255
+ credentialRefs: z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>;
2256
+ }, z.core.$strict>, z.ZodObject<{
2257
+ mode: z.ZodLiteral<"inferred">;
2258
+ method: z.ZodObject<{
2259
+ owner: z.ZodLiteral<"client">;
2260
+ clientId: z.ZodString;
2261
+ methodId: z.ZodString;
2262
+ }, z.core.$strict>;
2263
+ definition: z.ZodObject<{
2264
+ id: z.ZodString;
2265
+ mode: z.ZodLiteral<"inferred">;
2266
+ label: z.ZodString;
2267
+ description: z.ZodOptional<z.ZodString>;
2268
+ }, z.core.$strict>;
2269
+ account: z.ZodOptional<z.ZodObject<{
2270
+ managerId: z.ZodString;
2271
+ accountId: z.ZodString;
2272
+ }, z.core.$strict>>;
2273
+ }, z.core.$strict>, z.ZodObject<{
2274
+ mode: z.ZodLiteral<"none">;
2275
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
2276
+ owner: z.ZodLiteral<"provider">;
2277
+ providerDefinitionId: z.ZodString;
2278
+ methodId: z.ZodString;
2279
+ }, z.core.$strict>, z.ZodObject<{
2280
+ owner: z.ZodLiteral<"client">;
2281
+ clientId: z.ZodString;
2282
+ methodId: z.ZodString;
2283
+ }, z.core.$strict>], "owner">;
2284
+ definition: z.ZodObject<{
2285
+ id: z.ZodString;
2286
+ mode: z.ZodLiteral<"none">;
2287
+ label: z.ZodString;
2288
+ description: z.ZodOptional<z.ZodString>;
2289
+ }, z.core.$strict>;
2290
+ }, z.core.$strict>], "mode">;
2291
+ capabilities: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
2292
+ }, z.core.$strict>;
2293
+ definition: z.ZodObject<{
2294
+ id: z.ZodString;
2295
+ packageName: z.ZodString;
2296
+ name: z.ZodString;
2297
+ description: z.ZodOptional<z.ZodString>;
2298
+ endpoints: z.ZodOptional<z.ZodObject<{
2299
+ anthropic: z.ZodOptional<z.ZodString>;
2300
+ openai: z.ZodOptional<z.ZodString>;
2301
+ }, z.core.$strip>>;
2302
+ defaultModel: z.ZodOptional<z.ZodString>;
2303
+ fastModel: z.ZodOptional<z.ZodString>;
2304
+ availableModels: z.ZodArray<z.ZodObject<{
2305
+ name: z.ZodString;
2306
+ friendlyName: z.ZodOptional<z.ZodString>;
2307
+ family: z.ZodOptional<z.ZodString>;
2308
+ contextWindowSize: z.ZodNumber;
2309
+ labId: z.ZodString;
2310
+ supportedReasoningLevels: z.ZodOptional<z.ZodObject<{
2311
+ none: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2312
+ low: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2313
+ medium: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2314
+ high: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2315
+ 'extra-high': z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2316
+ }, z.core.$strip>>;
2317
+ metadata: z.ZodOptional<z.ZodObject<{
2318
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
2319
+ capabilities: z.ZodOptional<z.ZodObject<{
2320
+ vision: z.ZodOptional<z.ZodBoolean>;
2321
+ toolCalling: z.ZodOptional<z.ZodBoolean>;
2322
+ parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
2323
+ structuredOutput: z.ZodOptional<z.ZodBoolean>;
2324
+ pdfUpload: z.ZodOptional<z.ZodBoolean>;
2325
+ speechToText: z.ZodOptional<z.ZodObject<{
2326
+ modes: z.ZodArray<z.ZodEnum<{
2327
+ batch: "batch";
2328
+ streaming: "streaming";
2329
+ }>>;
2330
+ vocabularyBiasing: z.ZodOptional<z.ZodBoolean>;
2331
+ }, z.core.$strip>>;
2332
+ textToSpeech: z.ZodOptional<z.ZodObject<{
2333
+ modes: z.ZodArray<z.ZodEnum<{
2334
+ streaming: "streaming";
2335
+ buffered: "buffered";
2336
+ }>>;
2337
+ voiceSelection: z.ZodOptional<z.ZodBoolean>;
2338
+ voiceInstructions: z.ZodOptional<z.ZodBoolean>;
2339
+ outputFormats: z.ZodOptional<z.ZodArray<z.ZodString>>;
2340
+ }, z.core.$strip>>;
2341
+ }, z.core.$strip>>;
2342
+ pricing: z.ZodOptional<z.ZodObject<{
2343
+ token: z.ZodOptional<z.ZodObject<{
2344
+ inputPerMillion: z.ZodNumber;
2345
+ inputCachedPerMillion: z.ZodOptional<z.ZodNumber>;
2346
+ cacheWritePerMillion: z.ZodOptional<z.ZodNumber>;
2347
+ outputPerMillion: z.ZodNumber;
2348
+ }, z.core.$strip>>;
2349
+ request: z.ZodOptional<z.ZodObject<{
2350
+ multiplier: z.ZodNumber;
2351
+ }, z.core.$strip>>;
2352
+ }, z.core.$strip>>;
2353
+ includedInSubscription: z.ZodOptional<z.ZodBoolean>;
2354
+ description: z.ZodOptional<z.ZodString>;
2355
+ }, z.core.$strip>>;
2356
+ }, z.core.$strip>>;
2357
+ defaultModelFilterMode: z.ZodEnum<{
2358
+ allowlist: "allowlist";
2359
+ "show-all": "show-all";
2360
+ }>;
2361
+ authMethods: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2362
+ id: z.ZodString;
2363
+ mode: z.ZodLiteral<"explicit">;
2364
+ label: z.ZodString;
2365
+ description: z.ZodOptional<z.ZodString>;
2366
+ fields: z.ZodArray<z.ZodObject<{
2367
+ id: z.ZodString;
2368
+ label: z.ZodString;
2369
+ description: z.ZodOptional<z.ZodString>;
2370
+ required: z.ZodBoolean;
2371
+ secret: z.ZodBoolean;
2372
+ sourceHints: z.ZodArray<z.ZodObject<{
2373
+ kind: z.ZodLiteral<"environment">;
2374
+ variable: z.ZodString;
2375
+ }, z.core.$strict>>;
2376
+ }, z.core.$strict>>;
2377
+ }, z.core.$strict>, z.ZodObject<{
2378
+ id: z.ZodString;
2379
+ mode: z.ZodLiteral<"none">;
2380
+ label: z.ZodString;
2381
+ description: z.ZodOptional<z.ZodString>;
2382
+ }, z.core.$strict>], "mode">>;
2383
+ capabilities: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
2384
+ enabled: z.ZodBoolean;
2385
+ createdAt: z.ZodNumber;
2386
+ updatedAt: z.ZodNumber;
2387
+ }, z.core.$strict>;
2388
+ }, z.core.$strict>;
2389
+ /** Atomic provider runtime snapshot inferred from the bus-safe schema. */
2390
+ type ProviderRuntimeSnapshot = z.infer<typeof ProviderRuntimeSnapshotSchema>;
2391
+ /** Stable failure reasons for atomic adapter runtime resolution. */
2392
+ declare const AdapterRuntimeSnapshotErrorCodeSchema: z.ZodEnum<{
2393
+ "provider-config-not-found": "provider-config-not-found";
2394
+ "provider-config-disabled": "provider-config-disabled";
2395
+ "adapter-not-loaded": "adapter-not-loaded";
2396
+ "adapter-not-bound": "adapter-not-bound";
2397
+ "provider-incompatible": "provider-incompatible";
2398
+ "auth-binding-missing": "auth-binding-missing";
2399
+ "client-incompatible": "client-incompatible";
2400
+ "runtime-package-metadata-missing": "runtime-package-metadata-missing";
2401
+ "snapshot-identity-mismatch": "snapshot-identity-mismatch";
2402
+ }>;
2403
+ /** Canonical package identities resolved locally by an isolated runtime. */
2404
+ declare const AdapterRuntimePackagesSchema: z.ZodObject<{
2405
+ adapter: z.ZodObject<{
2406
+ packageName: z.ZodString;
2407
+ }, z.core.$strict>;
2408
+ provider: z.ZodObject<{
2409
+ packageName: z.ZodString;
2410
+ definitionId: z.ZodString;
2411
+ }, z.core.$strict>;
2412
+ client: z.ZodOptional<z.ZodObject<{
2413
+ packageName: z.ZodString;
2414
+ clientId: z.ZodString;
2415
+ }, z.core.$strict>>;
2416
+ }, z.core.$strict>;
2417
+ /** One atomic refs-only adapter/provider runtime snapshot. */
2418
+ declare const AdapterRuntimeSnapshotSchema: z.ZodObject<{
2419
+ snapshot: z.ZodObject<{
2420
+ config: z.ZodObject<{
2421
+ id: z.ZodString;
2422
+ definitionId: z.ZodString;
2423
+ name: z.ZodString;
2424
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
2425
+ anthropic: z.ZodOptional<z.ZodString>;
2426
+ openai: z.ZodOptional<z.ZodString>;
2427
+ }, z.core.$strict>>;
2428
+ modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
2429
+ disabled: "disabled";
2430
+ enabled: "enabled";
2431
+ visible: "visible";
2432
+ }>>>;
2433
+ modelFilterMode: z.ZodEnum<{
2434
+ allowlist: "allowlist";
2435
+ "show-all": "show-all";
2436
+ }>;
2437
+ isDefault: z.ZodBoolean;
2438
+ enabled: z.ZodBoolean;
2439
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
2440
+ mode: z.ZodLiteral<"explicit">;
2441
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
2442
+ owner: z.ZodLiteral<"provider">;
2443
+ providerDefinitionId: z.ZodString;
2444
+ methodId: z.ZodString;
2445
+ }, z.core.$strict>, z.ZodObject<{
2446
+ owner: z.ZodLiteral<"client">;
2447
+ clientId: z.ZodString;
2448
+ methodId: z.ZodString;
2449
+ }, z.core.$strict>], "owner">;
2450
+ hasCredentials: z.ZodLiteral<true>;
2451
+ }, z.core.$strict>, z.ZodObject<{
2452
+ mode: z.ZodLiteral<"inferred">;
2453
+ method: z.ZodObject<{
2454
+ owner: z.ZodLiteral<"client">;
2455
+ clientId: z.ZodString;
2456
+ methodId: z.ZodString;
2457
+ }, z.core.$strict>;
2458
+ account: z.ZodOptional<z.ZodObject<{
2459
+ managerId: z.ZodString;
2460
+ accountId: z.ZodString;
2461
+ }, z.core.$strict>>;
2462
+ hasCredentials: z.ZodLiteral<false>;
2463
+ }, z.core.$strict>, z.ZodObject<{
2464
+ mode: z.ZodLiteral<"none">;
2465
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
2466
+ owner: z.ZodLiteral<"provider">;
2467
+ providerDefinitionId: z.ZodString;
2468
+ methodId: z.ZodString;
2469
+ }, z.core.$strict>, z.ZodObject<{
2470
+ owner: z.ZodLiteral<"client">;
2471
+ clientId: z.ZodString;
2472
+ methodId: z.ZodString;
2473
+ }, z.core.$strict>], "owner">;
2474
+ hasCredentials: z.ZodLiteral<false>;
2475
+ }, z.core.$strict>], "mode">;
2476
+ managedBy: z.ZodOptional<z.ZodObject<{
2477
+ kind: z.ZodLiteral<"client">;
2478
+ clientId: z.ZodString;
2479
+ }, z.core.$strict>>;
2480
+ }, z.core.$strict>;
2481
+ context: z.ZodObject<{
2482
+ state: z.ZodLiteral<"resolved">;
2483
+ providerConfigId: z.ZodString;
2484
+ definitionId: z.ZodString;
2485
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
2486
+ anthropic: z.ZodOptional<z.ZodString>;
2487
+ openai: z.ZodOptional<z.ZodString>;
2488
+ }, z.core.$strip>>;
2489
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
2490
+ mode: z.ZodLiteral<"explicit">;
2491
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
2492
+ owner: z.ZodLiteral<"provider">;
2493
+ providerDefinitionId: z.ZodString;
2494
+ methodId: z.ZodString;
2495
+ }, z.core.$strict>, z.ZodObject<{
2496
+ owner: z.ZodLiteral<"client">;
2497
+ clientId: z.ZodString;
2498
+ methodId: z.ZodString;
2499
+ }, z.core.$strict>], "owner">;
2500
+ definition: z.ZodObject<{
2501
+ id: z.ZodString;
2502
+ mode: z.ZodLiteral<"explicit">;
2503
+ label: z.ZodString;
2504
+ description: z.ZodOptional<z.ZodString>;
2505
+ fields: z.ZodArray<z.ZodObject<{
2506
+ id: z.ZodString;
2507
+ label: z.ZodString;
2508
+ description: z.ZodOptional<z.ZodString>;
2509
+ required: z.ZodBoolean;
2510
+ secret: z.ZodBoolean;
2511
+ sourceHints: z.ZodArray<z.ZodObject<{
2512
+ kind: z.ZodLiteral<"environment">;
2513
+ variable: z.ZodString;
2514
+ }, z.core.$strict>>;
2515
+ }, z.core.$strict>>;
2516
+ }, z.core.$strict>;
2517
+ credentialRefs: z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>;
2518
+ }, z.core.$strict>, z.ZodObject<{
2519
+ mode: z.ZodLiteral<"inferred">;
2520
+ method: z.ZodObject<{
2521
+ owner: z.ZodLiteral<"client">;
2522
+ clientId: z.ZodString;
2523
+ methodId: z.ZodString;
2524
+ }, z.core.$strict>;
2525
+ definition: z.ZodObject<{
2526
+ id: z.ZodString;
2527
+ mode: z.ZodLiteral<"inferred">;
2528
+ label: z.ZodString;
2529
+ description: z.ZodOptional<z.ZodString>;
2530
+ }, z.core.$strict>;
2531
+ account: z.ZodOptional<z.ZodObject<{
2532
+ managerId: z.ZodString;
2533
+ accountId: z.ZodString;
2534
+ }, z.core.$strict>>;
2535
+ }, z.core.$strict>, z.ZodObject<{
2536
+ mode: z.ZodLiteral<"none">;
2537
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
2538
+ owner: z.ZodLiteral<"provider">;
2539
+ providerDefinitionId: z.ZodString;
2540
+ methodId: z.ZodString;
2541
+ }, z.core.$strict>, z.ZodObject<{
2542
+ owner: z.ZodLiteral<"client">;
2543
+ clientId: z.ZodString;
2544
+ methodId: z.ZodString;
2545
+ }, z.core.$strict>], "owner">;
2546
+ definition: z.ZodObject<{
2547
+ id: z.ZodString;
2548
+ mode: z.ZodLiteral<"none">;
2549
+ label: z.ZodString;
2550
+ description: z.ZodOptional<z.ZodString>;
2551
+ }, z.core.$strict>;
2552
+ }, z.core.$strict>], "mode">;
2553
+ capabilities: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
2554
+ }, z.core.$strict>;
2555
+ definition: z.ZodObject<{
2556
+ id: z.ZodString;
2557
+ packageName: z.ZodString;
2558
+ name: z.ZodString;
2559
+ description: z.ZodOptional<z.ZodString>;
2560
+ endpoints: z.ZodOptional<z.ZodObject<{
2561
+ anthropic: z.ZodOptional<z.ZodString>;
2562
+ openai: z.ZodOptional<z.ZodString>;
2563
+ }, z.core.$strip>>;
2564
+ defaultModel: z.ZodOptional<z.ZodString>;
2565
+ fastModel: z.ZodOptional<z.ZodString>;
2566
+ availableModels: z.ZodArray<z.ZodObject<{
2567
+ name: z.ZodString;
2568
+ friendlyName: z.ZodOptional<z.ZodString>;
2569
+ family: z.ZodOptional<z.ZodString>;
2570
+ contextWindowSize: z.ZodNumber;
2571
+ labId: z.ZodString;
2572
+ supportedReasoningLevels: z.ZodOptional<z.ZodObject<{
2573
+ none: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2574
+ low: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2575
+ medium: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2576
+ high: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2577
+ 'extra-high': z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2578
+ }, z.core.$strip>>;
2579
+ metadata: z.ZodOptional<z.ZodObject<{
2580
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
2581
+ capabilities: z.ZodOptional<z.ZodObject<{
2582
+ vision: z.ZodOptional<z.ZodBoolean>;
2583
+ toolCalling: z.ZodOptional<z.ZodBoolean>;
2584
+ parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
2585
+ structuredOutput: z.ZodOptional<z.ZodBoolean>;
2586
+ pdfUpload: z.ZodOptional<z.ZodBoolean>;
2587
+ speechToText: z.ZodOptional<z.ZodObject<{
2588
+ modes: z.ZodArray<z.ZodEnum<{
2589
+ batch: "batch";
2590
+ streaming: "streaming";
2591
+ }>>;
2592
+ vocabularyBiasing: z.ZodOptional<z.ZodBoolean>;
2593
+ }, z.core.$strip>>;
2594
+ textToSpeech: z.ZodOptional<z.ZodObject<{
2595
+ modes: z.ZodArray<z.ZodEnum<{
2596
+ streaming: "streaming";
2597
+ buffered: "buffered";
2598
+ }>>;
2599
+ voiceSelection: z.ZodOptional<z.ZodBoolean>;
2600
+ voiceInstructions: z.ZodOptional<z.ZodBoolean>;
2601
+ outputFormats: z.ZodOptional<z.ZodArray<z.ZodString>>;
2602
+ }, z.core.$strip>>;
2603
+ }, z.core.$strip>>;
2604
+ pricing: z.ZodOptional<z.ZodObject<{
2605
+ token: z.ZodOptional<z.ZodObject<{
2606
+ inputPerMillion: z.ZodNumber;
2607
+ inputCachedPerMillion: z.ZodOptional<z.ZodNumber>;
2608
+ cacheWritePerMillion: z.ZodOptional<z.ZodNumber>;
2609
+ outputPerMillion: z.ZodNumber;
2610
+ }, z.core.$strip>>;
2611
+ request: z.ZodOptional<z.ZodObject<{
2612
+ multiplier: z.ZodNumber;
2613
+ }, z.core.$strip>>;
2614
+ }, z.core.$strip>>;
2615
+ includedInSubscription: z.ZodOptional<z.ZodBoolean>;
2616
+ description: z.ZodOptional<z.ZodString>;
2617
+ }, z.core.$strip>>;
2618
+ }, z.core.$strip>>;
2619
+ defaultModelFilterMode: z.ZodEnum<{
2620
+ allowlist: "allowlist";
2621
+ "show-all": "show-all";
2622
+ }>;
2623
+ authMethods: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2624
+ id: z.ZodString;
2625
+ mode: z.ZodLiteral<"explicit">;
2626
+ label: z.ZodString;
2627
+ description: z.ZodOptional<z.ZodString>;
2628
+ fields: z.ZodArray<z.ZodObject<{
2629
+ id: z.ZodString;
2630
+ label: z.ZodString;
2631
+ description: z.ZodOptional<z.ZodString>;
2632
+ required: z.ZodBoolean;
2633
+ secret: z.ZodBoolean;
2634
+ sourceHints: z.ZodArray<z.ZodObject<{
2635
+ kind: z.ZodLiteral<"environment">;
2636
+ variable: z.ZodString;
2637
+ }, z.core.$strict>>;
2638
+ }, z.core.$strict>>;
2639
+ }, z.core.$strict>, z.ZodObject<{
2640
+ id: z.ZodString;
2641
+ mode: z.ZodLiteral<"none">;
2642
+ label: z.ZodString;
2643
+ description: z.ZodOptional<z.ZodString>;
2644
+ }, z.core.$strict>], "mode">>;
2645
+ capabilities: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
2646
+ enabled: z.ZodBoolean;
2647
+ createdAt: z.ZodNumber;
2648
+ updatedAt: z.ZodNumber;
2649
+ }, z.core.$strict>;
2650
+ }, z.core.$strict>;
2651
+ adapterName: z.ZodString;
2652
+ adapterClientId: z.ZodOptional<z.ZodString>;
2653
+ providerProtocol: z.ZodOptional<z.ZodEnum<{
2654
+ anthropic: "anthropic";
2655
+ openai: "openai";
2656
+ }>>;
2657
+ adapterProviderAuth: z.core.$ZodBranded<z.ZodObject<{
2658
+ bindings: z.ZodArray<z.ZodObject<{
2659
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
2660
+ owner: z.ZodLiteral<"provider">;
2661
+ providerDefinitionId: z.ZodString;
2662
+ methodId: z.ZodString;
2663
+ }, z.core.$strict>, z.ZodObject<{
2664
+ owner: z.ZodLiteral<"client">;
2665
+ clientId: z.ZodString;
2666
+ methodId: z.ZodString;
2667
+ }, z.core.$strict>], "owner">;
2668
+ deliveries: z.ZodTuple<[z.ZodDiscriminatedUnion<[z.ZodObject<{
2669
+ kind: z.ZodLiteral<"process-env">;
2670
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
2671
+ }, z.core.$strict>, z.ZodObject<{
2672
+ kind: z.ZodLiteral<"connector">;
2673
+ target: z.ZodString;
2674
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
2675
+ constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2676
+ }, z.core.$strict>, z.ZodObject<{
2677
+ kind: z.ZodLiteral<"native-client">;
2678
+ clientId: z.ZodString;
2679
+ }, z.core.$strict>, z.ZodObject<{
2680
+ kind: z.ZodLiteral<"none">;
2681
+ }, z.core.$strict>], "kind">], z.ZodDiscriminatedUnion<[z.ZodObject<{
2682
+ kind: z.ZodLiteral<"process-env">;
2683
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
2684
+ }, z.core.$strict>, z.ZodObject<{
2685
+ kind: z.ZodLiteral<"connector">;
2686
+ target: z.ZodString;
2687
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
2688
+ constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2689
+ }, z.core.$strict>, z.ZodObject<{
2690
+ kind: z.ZodLiteral<"native-client">;
2691
+ clientId: z.ZodString;
2692
+ }, z.core.$strict>, z.ZodObject<{
2693
+ kind: z.ZodLiteral<"none">;
2694
+ }, z.core.$strict>], "kind">>;
2695
+ }, z.core.$strict>>;
2696
+ scrubEnvVars: z.ZodArray<z.ZodString>;
2697
+ }, z.core.$strict>, "AdapterProviderAuth", "out">;
2698
+ compatibleProviderAuths: z.ZodArray<z.core.$ZodBranded<z.ZodObject<{
2699
+ bindings: z.ZodArray<z.ZodObject<{
2700
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
2701
+ owner: z.ZodLiteral<"provider">;
2702
+ providerDefinitionId: z.ZodString;
2703
+ methodId: z.ZodString;
2704
+ }, z.core.$strict>, z.ZodObject<{
2705
+ owner: z.ZodLiteral<"client">;
2706
+ clientId: z.ZodString;
2707
+ methodId: z.ZodString;
2708
+ }, z.core.$strict>], "owner">;
2709
+ deliveries: z.ZodTuple<[z.ZodDiscriminatedUnion<[z.ZodObject<{
2710
+ kind: z.ZodLiteral<"process-env">;
2711
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
2712
+ }, z.core.$strict>, z.ZodObject<{
2713
+ kind: z.ZodLiteral<"connector">;
2714
+ target: z.ZodString;
2715
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
2716
+ constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2717
+ }, z.core.$strict>, z.ZodObject<{
2718
+ kind: z.ZodLiteral<"native-client">;
2719
+ clientId: z.ZodString;
2720
+ }, z.core.$strict>, z.ZodObject<{
2721
+ kind: z.ZodLiteral<"none">;
2722
+ }, z.core.$strict>], "kind">], z.ZodDiscriminatedUnion<[z.ZodObject<{
2723
+ kind: z.ZodLiteral<"process-env">;
2724
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
2725
+ }, z.core.$strict>, z.ZodObject<{
2726
+ kind: z.ZodLiteral<"connector">;
2727
+ target: z.ZodString;
2728
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
2729
+ constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
2730
+ }, z.core.$strict>, z.ZodObject<{
2731
+ kind: z.ZodLiteral<"native-client">;
2732
+ clientId: z.ZodString;
2733
+ }, z.core.$strict>, z.ZodObject<{
2734
+ kind: z.ZodLiteral<"none">;
2735
+ }, z.core.$strict>], "kind">>;
2736
+ }, z.core.$strict>>;
2737
+ scrubEnvVars: z.ZodArray<z.ZodString>;
2738
+ }, z.core.$strict>, "AdapterProviderAuth", "out">>;
2739
+ runtimePackages: z.ZodObject<{
2740
+ adapter: z.ZodObject<{
2741
+ packageName: z.ZodString;
2742
+ }, z.core.$strict>;
2743
+ provider: z.ZodObject<{
2744
+ packageName: z.ZodString;
2745
+ definitionId: z.ZodString;
2746
+ }, z.core.$strict>;
2747
+ client: z.ZodOptional<z.ZodObject<{
2748
+ packageName: z.ZodString;
2749
+ clientId: z.ZodString;
2750
+ }, z.core.$strict>>;
2751
+ }, z.core.$strict>;
2752
+ }, z.core.$strict>;
2753
+ /** Typed success/failure result for atomic runtime resolution. */
2754
+ declare const AdapterRuntimeSnapshotResolutionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2755
+ status: z.ZodLiteral<"resolved">;
2756
+ runtime: z.ZodObject<{
2757
+ snapshot: z.ZodObject<{
2758
+ config: z.ZodObject<{
2759
+ id: z.ZodString;
2760
+ definitionId: z.ZodString;
2761
+ name: z.ZodString;
2762
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
2763
+ anthropic: z.ZodOptional<z.ZodString>;
2764
+ openai: z.ZodOptional<z.ZodString>;
2765
+ }, z.core.$strict>>;
2766
+ modelVisibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
2767
+ disabled: "disabled";
2768
+ enabled: "enabled";
2769
+ visible: "visible";
2770
+ }>>>;
2771
+ modelFilterMode: z.ZodEnum<{
2772
+ allowlist: "allowlist";
2773
+ "show-all": "show-all";
2774
+ }>;
2775
+ isDefault: z.ZodBoolean;
2776
+ enabled: z.ZodBoolean;
2777
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
2778
+ mode: z.ZodLiteral<"explicit">;
2779
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
2780
+ owner: z.ZodLiteral<"provider">;
2781
+ providerDefinitionId: z.ZodString;
2782
+ methodId: z.ZodString;
2783
+ }, z.core.$strict>, z.ZodObject<{
2784
+ owner: z.ZodLiteral<"client">;
2785
+ clientId: z.ZodString;
2786
+ methodId: z.ZodString;
2787
+ }, z.core.$strict>], "owner">;
2788
+ hasCredentials: z.ZodLiteral<true>;
2789
+ }, z.core.$strict>, z.ZodObject<{
2790
+ mode: z.ZodLiteral<"inferred">;
2791
+ method: z.ZodObject<{
2792
+ owner: z.ZodLiteral<"client">;
2793
+ clientId: z.ZodString;
2794
+ methodId: z.ZodString;
2795
+ }, z.core.$strict>;
2796
+ account: z.ZodOptional<z.ZodObject<{
2797
+ managerId: z.ZodString;
2798
+ accountId: z.ZodString;
2799
+ }, z.core.$strict>>;
2800
+ hasCredentials: z.ZodLiteral<false>;
2801
+ }, z.core.$strict>, z.ZodObject<{
2802
+ mode: z.ZodLiteral<"none">;
2803
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
2804
+ owner: z.ZodLiteral<"provider">;
2805
+ providerDefinitionId: z.ZodString;
2806
+ methodId: z.ZodString;
2807
+ }, z.core.$strict>, z.ZodObject<{
2808
+ owner: z.ZodLiteral<"client">;
2809
+ clientId: z.ZodString;
2810
+ methodId: z.ZodString;
2811
+ }, z.core.$strict>], "owner">;
2812
+ hasCredentials: z.ZodLiteral<false>;
2813
+ }, z.core.$strict>], "mode">;
2814
+ managedBy: z.ZodOptional<z.ZodObject<{
2815
+ kind: z.ZodLiteral<"client">;
2816
+ clientId: z.ZodString;
2817
+ }, z.core.$strict>>;
2818
+ }, z.core.$strict>;
2819
+ context: z.ZodObject<{
2820
+ state: z.ZodLiteral<"resolved">;
2821
+ providerConfigId: z.ZodString;
2822
+ definitionId: z.ZodString;
2823
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
2824
+ anthropic: z.ZodOptional<z.ZodString>;
2825
+ openai: z.ZodOptional<z.ZodString>;
2826
+ }, z.core.$strip>>;
2827
+ auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
2828
+ mode: z.ZodLiteral<"explicit">;
2829
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
2830
+ owner: z.ZodLiteral<"provider">;
2831
+ providerDefinitionId: z.ZodString;
2832
+ methodId: z.ZodString;
2833
+ }, z.core.$strict>, z.ZodObject<{
2834
+ owner: z.ZodLiteral<"client">;
2835
+ clientId: z.ZodString;
2836
+ methodId: z.ZodString;
2837
+ }, z.core.$strict>], "owner">;
2838
+ definition: z.ZodObject<{
2839
+ id: z.ZodString;
2840
+ mode: z.ZodLiteral<"explicit">;
2841
+ label: z.ZodString;
2842
+ description: z.ZodOptional<z.ZodString>;
2843
+ fields: z.ZodArray<z.ZodObject<{
2844
+ id: z.ZodString;
2845
+ label: z.ZodString;
2846
+ description: z.ZodOptional<z.ZodString>;
2847
+ required: z.ZodBoolean;
2848
+ secret: z.ZodBoolean;
2849
+ sourceHints: z.ZodArray<z.ZodObject<{
2850
+ kind: z.ZodLiteral<"environment">;
2851
+ variable: z.ZodString;
2852
+ }, z.core.$strict>>;
2853
+ }, z.core.$strict>>;
2854
+ }, z.core.$strict>;
2855
+ credentialRefs: z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>;
2856
+ }, z.core.$strict>, z.ZodObject<{
2857
+ mode: z.ZodLiteral<"inferred">;
2858
+ method: z.ZodObject<{
2859
+ owner: z.ZodLiteral<"client">;
2860
+ clientId: z.ZodString;
2861
+ methodId: z.ZodString;
2862
+ }, z.core.$strict>;
2863
+ definition: z.ZodObject<{
2864
+ id: z.ZodString;
2865
+ mode: z.ZodLiteral<"inferred">;
2866
+ label: z.ZodString;
2867
+ description: z.ZodOptional<z.ZodString>;
2868
+ }, z.core.$strict>;
2869
+ account: z.ZodOptional<z.ZodObject<{
2870
+ managerId: z.ZodString;
2871
+ accountId: z.ZodString;
2872
+ }, z.core.$strict>>;
2873
+ }, z.core.$strict>, z.ZodObject<{
2874
+ mode: z.ZodLiteral<"none">;
2875
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
2876
+ owner: z.ZodLiteral<"provider">;
2877
+ providerDefinitionId: z.ZodString;
2878
+ methodId: z.ZodString;
2879
+ }, z.core.$strict>, z.ZodObject<{
2880
+ owner: z.ZodLiteral<"client">;
2881
+ clientId: z.ZodString;
2882
+ methodId: z.ZodString;
2883
+ }, z.core.$strict>], "owner">;
2884
+ definition: z.ZodObject<{
2885
+ id: z.ZodString;
2886
+ mode: z.ZodLiteral<"none">;
2887
+ label: z.ZodString;
2888
+ description: z.ZodOptional<z.ZodString>;
2889
+ }, z.core.$strict>;
2890
+ }, z.core.$strict>], "mode">;
2891
+ capabilities: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
2892
+ }, z.core.$strict>;
2893
+ definition: z.ZodObject<{
2894
+ id: z.ZodString;
2895
+ packageName: z.ZodString;
2896
+ name: z.ZodString;
2897
+ description: z.ZodOptional<z.ZodString>;
2898
+ endpoints: z.ZodOptional<z.ZodObject<{
2899
+ anthropic: z.ZodOptional<z.ZodString>;
2900
+ openai: z.ZodOptional<z.ZodString>;
2901
+ }, z.core.$strip>>;
2902
+ defaultModel: z.ZodOptional<z.ZodString>;
2903
+ fastModel: z.ZodOptional<z.ZodString>;
2904
+ availableModels: z.ZodArray<z.ZodObject<{
2905
+ name: z.ZodString;
2906
+ friendlyName: z.ZodOptional<z.ZodString>;
2907
+ family: z.ZodOptional<z.ZodString>;
2908
+ contextWindowSize: z.ZodNumber;
2909
+ labId: z.ZodString;
2910
+ supportedReasoningLevels: z.ZodOptional<z.ZodObject<{
2911
+ none: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2912
+ low: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2913
+ medium: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2914
+ high: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2915
+ 'extra-high': z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2916
+ }, z.core.$strip>>;
2917
+ metadata: z.ZodOptional<z.ZodObject<{
2918
+ maxOutputTokens: z.ZodOptional<z.ZodNumber>;
2919
+ capabilities: z.ZodOptional<z.ZodObject<{
2920
+ vision: z.ZodOptional<z.ZodBoolean>;
2921
+ toolCalling: z.ZodOptional<z.ZodBoolean>;
2922
+ parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
2923
+ structuredOutput: z.ZodOptional<z.ZodBoolean>;
2924
+ pdfUpload: z.ZodOptional<z.ZodBoolean>;
2925
+ speechToText: z.ZodOptional<z.ZodObject<{
2926
+ modes: z.ZodArray<z.ZodEnum<{
2927
+ batch: "batch";
2928
+ streaming: "streaming";
2929
+ }>>;
2930
+ vocabularyBiasing: z.ZodOptional<z.ZodBoolean>;
2931
+ }, z.core.$strip>>;
2932
+ textToSpeech: z.ZodOptional<z.ZodObject<{
2933
+ modes: z.ZodArray<z.ZodEnum<{
2934
+ streaming: "streaming";
2935
+ buffered: "buffered";
2936
+ }>>;
2937
+ voiceSelection: z.ZodOptional<z.ZodBoolean>;
2938
+ voiceInstructions: z.ZodOptional<z.ZodBoolean>;
2939
+ outputFormats: z.ZodOptional<z.ZodArray<z.ZodString>>;
2940
+ }, z.core.$strip>>;
2941
+ }, z.core.$strip>>;
2942
+ pricing: z.ZodOptional<z.ZodObject<{
2943
+ token: z.ZodOptional<z.ZodObject<{
2944
+ inputPerMillion: z.ZodNumber;
2945
+ inputCachedPerMillion: z.ZodOptional<z.ZodNumber>;
2946
+ cacheWritePerMillion: z.ZodOptional<z.ZodNumber>;
2947
+ outputPerMillion: z.ZodNumber;
2948
+ }, z.core.$strip>>;
2949
+ request: z.ZodOptional<z.ZodObject<{
2950
+ multiplier: z.ZodNumber;
2951
+ }, z.core.$strip>>;
2952
+ }, z.core.$strip>>;
2953
+ includedInSubscription: z.ZodOptional<z.ZodBoolean>;
2954
+ description: z.ZodOptional<z.ZodString>;
2955
+ }, z.core.$strip>>;
2956
+ }, z.core.$strip>>;
2957
+ defaultModelFilterMode: z.ZodEnum<{
2958
+ allowlist: "allowlist";
2959
+ "show-all": "show-all";
2960
+ }>;
2961
+ authMethods: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2962
+ id: z.ZodString;
2963
+ mode: z.ZodLiteral<"explicit">;
2964
+ label: z.ZodString;
2965
+ description: z.ZodOptional<z.ZodString>;
2966
+ fields: z.ZodArray<z.ZodObject<{
2967
+ id: z.ZodString;
2968
+ label: z.ZodString;
2969
+ description: z.ZodOptional<z.ZodString>;
2970
+ required: z.ZodBoolean;
2971
+ secret: z.ZodBoolean;
2972
+ sourceHints: z.ZodArray<z.ZodObject<{
2973
+ kind: z.ZodLiteral<"environment">;
2974
+ variable: z.ZodString;
2975
+ }, z.core.$strict>>;
2976
+ }, z.core.$strict>>;
2977
+ }, z.core.$strict>, z.ZodObject<{
2978
+ id: z.ZodString;
2979
+ mode: z.ZodLiteral<"none">;
2980
+ label: z.ZodString;
2981
+ description: z.ZodOptional<z.ZodString>;
2982
+ }, z.core.$strict>], "mode">>;
2983
+ capabilities: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
2984
+ enabled: z.ZodBoolean;
2985
+ createdAt: z.ZodNumber;
2986
+ updatedAt: z.ZodNumber;
2987
+ }, z.core.$strict>;
2988
+ }, z.core.$strict>;
2989
+ adapterName: z.ZodString;
2990
+ adapterClientId: z.ZodOptional<z.ZodString>;
2991
+ providerProtocol: z.ZodOptional<z.ZodEnum<{
2992
+ anthropic: "anthropic";
2993
+ openai: "openai";
2994
+ }>>;
2995
+ adapterProviderAuth: z.core.$ZodBranded<z.ZodObject<{
2996
+ bindings: z.ZodArray<z.ZodObject<{
2997
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
2998
+ owner: z.ZodLiteral<"provider">;
2999
+ providerDefinitionId: z.ZodString;
3000
+ methodId: z.ZodString;
3001
+ }, z.core.$strict>, z.ZodObject<{
3002
+ owner: z.ZodLiteral<"client">;
3003
+ clientId: z.ZodString;
3004
+ methodId: z.ZodString;
3005
+ }, z.core.$strict>], "owner">;
3006
+ deliveries: z.ZodTuple<[z.ZodDiscriminatedUnion<[z.ZodObject<{
3007
+ kind: z.ZodLiteral<"process-env">;
3008
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
3009
+ }, z.core.$strict>, z.ZodObject<{
3010
+ kind: z.ZodLiteral<"connector">;
3011
+ target: z.ZodString;
3012
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
3013
+ constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
3014
+ }, z.core.$strict>, z.ZodObject<{
3015
+ kind: z.ZodLiteral<"native-client">;
3016
+ clientId: z.ZodString;
3017
+ }, z.core.$strict>, z.ZodObject<{
3018
+ kind: z.ZodLiteral<"none">;
3019
+ }, z.core.$strict>], "kind">], z.ZodDiscriminatedUnion<[z.ZodObject<{
3020
+ kind: z.ZodLiteral<"process-env">;
3021
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
3022
+ }, z.core.$strict>, z.ZodObject<{
3023
+ kind: z.ZodLiteral<"connector">;
3024
+ target: z.ZodString;
3025
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
3026
+ constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
3027
+ }, z.core.$strict>, z.ZodObject<{
3028
+ kind: z.ZodLiteral<"native-client">;
3029
+ clientId: z.ZodString;
3030
+ }, z.core.$strict>, z.ZodObject<{
3031
+ kind: z.ZodLiteral<"none">;
3032
+ }, z.core.$strict>], "kind">>;
3033
+ }, z.core.$strict>>;
3034
+ scrubEnvVars: z.ZodArray<z.ZodString>;
3035
+ }, z.core.$strict>, "AdapterProviderAuth", "out">;
3036
+ compatibleProviderAuths: z.ZodArray<z.core.$ZodBranded<z.ZodObject<{
3037
+ bindings: z.ZodArray<z.ZodObject<{
3038
+ method: z.ZodDiscriminatedUnion<[z.ZodObject<{
3039
+ owner: z.ZodLiteral<"provider">;
3040
+ providerDefinitionId: z.ZodString;
3041
+ methodId: z.ZodString;
3042
+ }, z.core.$strict>, z.ZodObject<{
3043
+ owner: z.ZodLiteral<"client">;
3044
+ clientId: z.ZodString;
3045
+ methodId: z.ZodString;
3046
+ }, z.core.$strict>], "owner">;
3047
+ deliveries: z.ZodTuple<[z.ZodDiscriminatedUnion<[z.ZodObject<{
3048
+ kind: z.ZodLiteral<"process-env">;
3049
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
3050
+ }, z.core.$strict>, z.ZodObject<{
3051
+ kind: z.ZodLiteral<"connector">;
3052
+ target: z.ZodString;
3053
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
3054
+ constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
3055
+ }, z.core.$strict>, z.ZodObject<{
3056
+ kind: z.ZodLiteral<"native-client">;
3057
+ clientId: z.ZodString;
3058
+ }, z.core.$strict>, z.ZodObject<{
3059
+ kind: z.ZodLiteral<"none">;
3060
+ }, z.core.$strict>], "kind">], z.ZodDiscriminatedUnion<[z.ZodObject<{
3061
+ kind: z.ZodLiteral<"process-env">;
3062
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
3063
+ }, z.core.$strict>, z.ZodObject<{
3064
+ kind: z.ZodLiteral<"connector">;
3065
+ target: z.ZodString;
3066
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
3067
+ constants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
3068
+ }, z.core.$strict>, z.ZodObject<{
3069
+ kind: z.ZodLiteral<"native-client">;
3070
+ clientId: z.ZodString;
3071
+ }, z.core.$strict>, z.ZodObject<{
3072
+ kind: z.ZodLiteral<"none">;
3073
+ }, z.core.$strict>], "kind">>;
3074
+ }, z.core.$strict>>;
3075
+ scrubEnvVars: z.ZodArray<z.ZodString>;
3076
+ }, z.core.$strict>, "AdapterProviderAuth", "out">>;
3077
+ runtimePackages: z.ZodObject<{
3078
+ adapter: z.ZodObject<{
3079
+ packageName: z.ZodString;
3080
+ }, z.core.$strict>;
3081
+ provider: z.ZodObject<{
3082
+ packageName: z.ZodString;
3083
+ definitionId: z.ZodString;
3084
+ }, z.core.$strict>;
3085
+ client: z.ZodOptional<z.ZodObject<{
3086
+ packageName: z.ZodString;
3087
+ clientId: z.ZodString;
3088
+ }, z.core.$strict>>;
3089
+ }, z.core.$strict>;
3090
+ }, z.core.$strict>;
3091
+ }, z.core.$strict>, z.ZodObject<{
3092
+ status: z.ZodLiteral<"error">;
3093
+ code: z.ZodEnum<{
3094
+ "provider-config-not-found": "provider-config-not-found";
3095
+ "provider-config-disabled": "provider-config-disabled";
3096
+ "adapter-not-loaded": "adapter-not-loaded";
3097
+ "adapter-not-bound": "adapter-not-bound";
3098
+ "provider-incompatible": "provider-incompatible";
3099
+ "auth-binding-missing": "auth-binding-missing";
3100
+ "client-incompatible": "client-incompatible";
3101
+ "runtime-package-metadata-missing": "runtime-package-metadata-missing";
3102
+ "snapshot-identity-mismatch": "snapshot-identity-mismatch";
3103
+ }>;
3104
+ }, z.core.$strict>], "status">;
3105
+ /** Stable atomic adapter runtime resolution failure code. */
3106
+ type AdapterRuntimeSnapshotErrorCode = z.infer<typeof AdapterRuntimeSnapshotErrorCodeSchema>;
3107
+ /** Canonical package identities resolved by the isolated runtime. */
3108
+ type AdapterRuntimePackages = z.infer<typeof AdapterRuntimePackagesSchema>;
3109
+ /** Successful refs-only atomic adapter runtime snapshot. */
3110
+ type AdapterRuntimeSnapshot = z.infer<typeof AdapterRuntimeSnapshotSchema>;
3111
+ /** Typed atomic adapter runtime resolution result. */
3112
+ type AdapterRuntimeSnapshotResolution = z.infer<typeof AdapterRuntimeSnapshotResolutionSchema>;
3113
+ /** Binding record as surfaced by the adapter subsystem. */
3114
+ declare const BindingRecordSchema: z.ZodObject<{
3115
+ adapterName: z.ZodString;
3116
+ providerConfigId: z.ZodString;
3117
+ isDefault: z.ZodBoolean;
3118
+ }, z.core.$strict>;
3119
+ /** Inferred binding record. */
3120
+ type BindingRecord = z.infer<typeof BindingRecordSchema>;
3121
+ /** Normalized adapter file-backed read model. */
3122
+ declare const AdapterFileConfigSchema: z.ZodObject<{
3123
+ description: z.ZodOptional<z.ZodString>;
3124
+ displayName: z.ZodOptional<z.ZodString>;
3125
+ protocol: z.ZodOptional<z.ZodString>;
3126
+ clientId: z.ZodOptional<z.ZodString>;
3127
+ helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3128
+ label: z.ZodString;
3129
+ url: z.ZodString;
3130
+ }, z.core.$strict>>>;
3131
+ instructions: z.ZodOptional<z.ZodString>;
3132
+ providerDefinitionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3133
+ settings: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
3134
+ name: z.ZodString;
3135
+ enabled: z.ZodBoolean;
3136
+ bindings: z.ZodArray<z.ZodObject<{
3137
+ adapterName: z.ZodString;
3138
+ providerConfigId: z.ZodString;
3139
+ isDefault: z.ZodBoolean;
3140
+ }, z.core.$strict>>;
3141
+ }, z.core.$strict>;
3142
+ /** Inferred adapter file-backed read model. */
3143
+ type AdapterFileConfig = z.infer<typeof AdapterFileConfigSchema>;
3144
+ /** Readiness status for the effective adapter view. */
3145
+ declare const AdapterReadinessSchema: z.ZodEnum<{
3146
+ ready: "ready";
3147
+ "needs-setup": "needs-setup";
3148
+ }>;
3149
+ /** Inferred readiness status for the effective adapter view. */
3150
+ type AdapterReadiness = z.infer<typeof AdapterReadinessSchema>;
3151
+ /** Host-extensible effective adapter view. */
3152
+ declare const EffectiveAdapterSchema: z.ZodObject<{
3153
+ name: z.ZodString;
3154
+ displayName: z.ZodString;
3155
+ description: z.ZodOptional<z.ZodString>;
3156
+ enabled: z.ZodBoolean;
3157
+ configCount: z.ZodNumber;
3158
+ readiness: z.ZodEnum<{
3159
+ ready: "ready";
3160
+ "needs-setup": "needs-setup";
3161
+ }>;
3162
+ supportsLogImport: z.ZodBoolean;
3163
+ helpLinks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3164
+ label: z.ZodString;
3165
+ url: z.ZodString;
3166
+ }, z.core.$strict>>>;
3167
+ instructions: z.ZodOptional<z.ZodString>;
3168
+ clientId: z.ZodOptional<z.ZodString>;
3169
+ protocol: z.ZodOptional<z.ZodString>;
3170
+ providerDefinitionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
3171
+ }, z.core.$strict>;
3172
+ /** Inferred effective adapter view. */
3173
+ type EffectiveAdapter = z.infer<typeof EffectiveAdapterSchema>;
3174
+ //#endregion
3175
+ export { ProviderRuntimeSnapshot as C, ProviderConfigFileRecordSchema as S, AdapterSubsystemSchemas as T, EffectiveAdapter as _, AdapterRuntimePackages as a, ProviderConfigAuthSummarySchema as b, AdapterRuntimeSnapshotErrorCode as c, AdapterRuntimeSnapshotResolutionSchema as d, AdapterRuntimeSnapshotSchema as f, CompatibleAuthOptionSchema as g, CompatibleAuthOption as h, AdapterReadinessSchema as i, AdapterRuntimeSnapshotErrorCodeSchema as l, BindingRecordSchema as m, AdapterFileConfigSchema as n, AdapterRuntimePackagesSchema as o, BindingRecord as p, AdapterReadiness as r, AdapterRuntimeSnapshot as s, AdapterFileConfig as t, AdapterRuntimeSnapshotResolution as u, EffectiveAdapterSchema as v, ProviderRuntimeSnapshotSchema as w, ProviderConfigFileRecord as x, ProviderConfigAuthSummary as y };