phenoml 16.0.0 → 17.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (421) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/agent/client/Client.d.ts +3 -59
  3. package/dist/cjs/api/resources/agent/client/Client.js +7 -232
  4. package/dist/cjs/api/resources/agent/client/requests/index.d.ts +0 -3
  5. package/dist/cjs/api/resources/{fhir/errors/InternalServerError.d.ts → agent/errors/GatewayTimeoutError.d.ts} +1 -1
  6. package/dist/cjs/api/resources/{fhir/errors/BadGatewayError.js → agent/errors/GatewayTimeoutError.js} +5 -5
  7. package/dist/cjs/api/resources/agent/errors/index.d.ts +1 -0
  8. package/dist/cjs/api/resources/agent/errors/index.js +1 -0
  9. package/dist/cjs/api/resources/agent/resources/chat/client/Client.d.ts +79 -0
  10. package/dist/cjs/api/resources/agent/resources/chat/client/Client.js +305 -0
  11. package/dist/cjs/api/resources/agent/{client/requests/GetChatMessagesRequest.d.ts → resources/chat/client/requests/ListMessagesRequest.d.ts} +4 -4
  12. package/dist/cjs/api/resources/agent/resources/chat/client/requests/index.d.ts +3 -0
  13. package/dist/cjs/api/resources/agent/resources/chat/exports.d.ts +2 -0
  14. package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → agent/resources/chat}/exports.js +2 -2
  15. package/dist/cjs/api/resources/agent/resources/chat/index.d.ts +2 -0
  16. package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/index.js +1 -1
  17. package/dist/cjs/api/resources/agent/resources/chat/types/ListMessagesRequestOrder.d.ts +5 -0
  18. package/dist/cjs/api/resources/agent/{types/GetChatMessagesRequestOrder.js → resources/chat/types/ListMessagesRequestOrder.js} +2 -2
  19. package/dist/cjs/api/resources/agent/resources/chat/types/ListMessagesRequestRole.d.ts +7 -0
  20. package/dist/cjs/api/resources/agent/{types/GetChatMessagesRequestRole.js → resources/chat/types/ListMessagesRequestRole.js} +2 -2
  21. package/dist/cjs/api/resources/agent/{types/GetChatMessagesResponse.d.ts → resources/chat/types/ListMessagesResponse.d.ts} +2 -2
  22. package/dist/cjs/api/resources/agent/resources/chat/types/index.d.ts +3 -0
  23. package/dist/cjs/api/resources/agent/resources/chat/types/index.js +19 -0
  24. package/dist/cjs/api/resources/agent/resources/index.d.ts +3 -0
  25. package/dist/cjs/api/resources/agent/resources/index.js +4 -1
  26. package/dist/cjs/api/resources/agent/types/index.d.ts +0 -3
  27. package/dist/cjs/api/resources/agent/types/index.js +0 -3
  28. package/dist/cjs/api/resources/construe/client/Client.d.ts +6 -330
  29. package/dist/cjs/api/resources/construe/client/Client.js +8 -838
  30. package/dist/cjs/api/resources/construe/client/requests/index.d.ts +0 -9
  31. package/dist/cjs/api/resources/construe/client/requests/index.js +0 -3
  32. package/dist/cjs/api/resources/construe/exports.d.ts +1 -0
  33. package/dist/cjs/api/resources/construe/exports.js +1 -0
  34. package/dist/cjs/api/resources/construe/index.d.ts +1 -0
  35. package/dist/cjs/api/resources/construe/index.js +1 -0
  36. package/dist/cjs/api/resources/construe/resources/codeSystems/client/Client.d.ts +135 -0
  37. package/dist/cjs/api/resources/construe/resources/codeSystems/client/Client.js +433 -0
  38. package/dist/cjs/api/resources/construe/resources/codeSystems/client/index.d.ts +1 -0
  39. package/dist/cjs/api/resources/construe/resources/codeSystems/client/index.js +17 -0
  40. package/dist/{esm/api/resources/construe/client/requests/ExportCodeSystemRequest.d.mts → cjs/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.ts} +1 -1
  41. package/dist/cjs/api/resources/construe/{client/requests/DeleteCodeSystemRequest.d.ts → resources/codeSystems/client/requests/ExportRequest.d.ts} +1 -1
  42. package/dist/cjs/api/resources/construe/{client/requests/GetCodeSystemRequest.d.ts → resources/codeSystems/client/requests/FindRequest.d.ts} +1 -1
  43. package/dist/cjs/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.d.ts +1 -1
  44. package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/index.d.ts +4 -0
  45. package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/index.js +5 -0
  46. package/dist/cjs/api/resources/construe/resources/codeSystems/exports.d.ts +2 -0
  47. package/dist/cjs/api/resources/{tools/resources/mcpServer → construe/resources/codeSystems}/exports.js +2 -3
  48. package/dist/cjs/api/resources/construe/resources/codeSystems/index.d.ts +2 -0
  49. package/dist/cjs/api/resources/construe/resources/codeSystems/index.js +18 -0
  50. package/dist/{esm/api/resources/construe/types/UploadCodeSystemResponse.d.mts → cjs/api/resources/construe/resources/codeSystems/types/UploadResponse.d.ts} +1 -1
  51. package/dist/cjs/api/resources/construe/resources/codeSystems/types/index.d.ts +1 -0
  52. package/dist/cjs/api/resources/construe/resources/codeSystems/types/index.js +17 -0
  53. package/dist/cjs/api/resources/construe/resources/codes/client/Client.d.ts +227 -0
  54. package/dist/cjs/api/resources/construe/resources/codes/client/Client.js +528 -0
  55. package/dist/cjs/api/resources/construe/resources/codes/client/index.d.ts +1 -0
  56. package/dist/cjs/api/resources/construe/resources/codes/client/index.js +17 -0
  57. package/dist/cjs/api/resources/construe/{client/requests/ListCodesRequest.d.ts → resources/codes/client/requests/CodesListRequest.d.ts} +1 -1
  58. package/dist/cjs/api/resources/construe/{client → resources/codes/client}/requests/ExtractRequest.d.ts +1 -1
  59. package/dist/{esm/api/resources/construe/client/requests/GetCodeRequest.d.mts → cjs/api/resources/construe/resources/codes/client/requests/LookupRequest.d.ts} +1 -1
  60. package/dist/cjs/api/resources/construe/resources/codes/client/requests/index.d.ts +5 -0
  61. package/dist/cjs/api/resources/construe/resources/codes/exports.d.ts +2 -0
  62. package/dist/cjs/api/resources/construe/resources/codes/exports.js +21 -0
  63. package/dist/cjs/api/resources/construe/resources/index.d.ts +5 -0
  64. package/dist/cjs/api/resources/construe/resources/index.js +44 -0
  65. package/dist/cjs/api/resources/construe/types/index.d.ts +0 -1
  66. package/dist/cjs/api/resources/construe/types/index.js +0 -1
  67. package/dist/cjs/api/resources/fhir/client/Client.d.ts +50 -75
  68. package/dist/cjs/api/resources/fhir/client/Client.js +75 -205
  69. package/dist/cjs/api/resources/fhir/client/requests/CreateRequest.d.ts +2 -3
  70. package/dist/cjs/api/resources/fhir/client/requests/ExecuteBundleRequest.d.ts +19 -16
  71. package/dist/cjs/api/resources/fhir/client/requests/SearchRequest.d.ts +0 -8
  72. package/dist/cjs/api/resources/fhir/client/requests/UpsertRequest.d.ts +3 -4
  73. package/dist/cjs/api/resources/fhir/index.d.ts +0 -1
  74. package/dist/cjs/api/resources/fhir/index.js +0 -1
  75. package/dist/cjs/api/resources/fhir/types/index.d.ts +0 -4
  76. package/dist/cjs/api/resources/fhir/types/index.js +0 -4
  77. package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +3 -74
  78. package/dist/cjs/api/resources/fhirProvider/client/Client.js +5 -221
  79. package/dist/cjs/api/resources/fhirProvider/client/requests/index.d.ts +0 -2
  80. package/dist/cjs/api/resources/fhirProvider/exports.d.ts +1 -0
  81. package/dist/cjs/api/resources/fhirProvider/exports.js +1 -0
  82. package/dist/cjs/api/resources/fhirProvider/index.d.ts +1 -0
  83. package/dist/cjs/api/resources/fhirProvider/index.js +1 -0
  84. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/Client.d.ts +90 -0
  85. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/Client.js +280 -0
  86. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/index.d.ts +1 -0
  87. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/index.js +17 -0
  88. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/requests/index.d.ts +2 -0
  89. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/requests/index.js +2 -0
  90. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/exports.d.ts +2 -0
  91. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/exports.js +21 -0
  92. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/index.d.ts +2 -0
  93. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/index.js +18 -0
  94. package/dist/cjs/api/resources/fhirProvider/{types/RemoveAuthConfigResponse.d.ts → resources/authConfig/types/RemoveResponse.d.ts} +2 -2
  95. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/types/index.d.ts +1 -0
  96. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/types/index.js +17 -0
  97. package/dist/cjs/api/resources/fhirProvider/resources/index.d.ts +3 -0
  98. package/dist/cjs/api/resources/{tools/resources/mcpServer → fhirProvider}/resources/index.js +7 -2
  99. package/dist/cjs/api/resources/fhirProvider/types/index.d.ts +0 -1
  100. package/dist/cjs/api/resources/fhirProvider/types/index.js +0 -1
  101. package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +11 -1
  102. package/dist/cjs/api/resources/lang2Fhir/client/Client.js +33 -3
  103. package/dist/cjs/api/resources/{fhir/errors/ServiceUnavailableError.d.ts → lang2Fhir/errors/ClientClosedRequestError.d.ts} +1 -1
  104. package/dist/cjs/api/resources/lang2Fhir/errors/ClientClosedRequestError.js +54 -0
  105. package/dist/cjs/api/resources/{fhir/errors/UnauthorizedError.d.ts → lang2Fhir/errors/GatewayTimeoutError.d.ts} +1 -1
  106. package/dist/cjs/api/resources/{fhir/errors/InternalServerError.js → lang2Fhir/errors/GatewayTimeoutError.js} +5 -5
  107. package/dist/cjs/api/resources/lang2Fhir/errors/index.d.ts +3 -1
  108. package/dist/cjs/api/resources/lang2Fhir/errors/index.js +3 -1
  109. package/dist/cjs/api/resources/summary/resources/templates/client/Client.d.ts +7 -4
  110. package/dist/cjs/api/resources/summary/resources/templates/client/Client.js +6 -12
  111. package/dist/{esm/api/resources/summary/resources/templates/types/TemplatesDeleteResponse.d.mts → cjs/api/resources/summary/resources/templates/types/DeleteResponse.d.ts} +1 -1
  112. package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesGetResponse.d.ts → GetResponse.d.ts} +1 -1
  113. package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesListResponse.d.ts → ListResponse.d.ts} +1 -1
  114. package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesUpdateResponse.d.ts → UpdateResponse.d.ts} +1 -1
  115. package/dist/cjs/api/resources/summary/resources/templates/types/index.d.ts +4 -4
  116. package/dist/cjs/api/resources/summary/resources/templates/types/index.js +4 -4
  117. package/dist/cjs/api/resources/tools/client/Client.d.ts +6 -6
  118. package/dist/cjs/api/resources/tools/client/Client.js +8 -12
  119. package/dist/cjs/api/resources/{fhir/errors/BadRequestError.d.ts → tools/errors/NotFoundError.d.ts} +1 -1
  120. package/dist/cjs/api/resources/{fhir/errors/BadRequestError.js → tools/errors/NotFoundError.js} +5 -5
  121. package/dist/cjs/api/resources/tools/errors/index.d.ts +1 -1
  122. package/dist/cjs/api/resources/tools/errors/index.js +1 -1
  123. package/dist/cjs/api/resources/tools/resources/index.d.ts +3 -2
  124. package/dist/cjs/api/resources/tools/resources/index.js +4 -3
  125. package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.d.ts +21 -19
  126. package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.js +20 -16
  127. package/dist/cjs/api/resources/tools/resources/mcpServers/client/index.d.ts +1 -0
  128. package/dist/cjs/api/resources/tools/resources/mcpServers/client/index.js +17 -0
  129. package/dist/cjs/api/resources/tools/resources/mcpServers/client/requests/index.js +2 -0
  130. package/dist/cjs/api/resources/tools/resources/mcpServers/exports.d.ts +2 -0
  131. package/dist/cjs/api/resources/tools/resources/mcpServers/exports.js +21 -0
  132. package/dist/cjs/api/resources/tools/resources/mcpServers/index.d.ts +1 -0
  133. package/dist/cjs/api/resources/tools/resources/mcpServers/index.js +17 -0
  134. package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.d.ts +19 -17
  135. package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.js +22 -16
  136. package/dist/cjs/api/resources/tools/resources/mcpTools/client/index.js +2 -0
  137. package/dist/cjs/api/resources/tools/resources/mcpTools/exports.d.ts +2 -0
  138. package/dist/cjs/api/resources/tools/resources/mcpTools/exports.js +21 -0
  139. package/dist/cjs/api/resources/tools/resources/mcpTools/index.d.ts +1 -0
  140. package/dist/cjs/api/resources/tools/resources/mcpTools/index.js +17 -0
  141. package/dist/cjs/api/resources/workflows/client/Client.d.ts +3 -0
  142. package/dist/cjs/api/resources/workflows/client/Client.js +9 -0
  143. package/dist/cjs/version.d.ts +1 -1
  144. package/dist/cjs/version.js +1 -1
  145. package/dist/esm/BaseClient.mjs +2 -2
  146. package/dist/esm/api/resources/agent/client/Client.d.mts +3 -59
  147. package/dist/esm/api/resources/agent/client/Client.mjs +6 -231
  148. package/dist/esm/api/resources/agent/client/requests/index.d.mts +0 -3
  149. package/dist/esm/api/resources/{fhir/errors/InternalServerError.d.mts → agent/errors/GatewayTimeoutError.d.mts} +1 -1
  150. package/dist/esm/api/resources/{fhir/errors/InternalServerError.mjs → agent/errors/GatewayTimeoutError.mjs} +3 -3
  151. package/dist/esm/api/resources/agent/errors/index.d.mts +1 -0
  152. package/dist/esm/api/resources/agent/errors/index.mjs +1 -0
  153. package/dist/esm/api/resources/agent/resources/chat/client/Client.d.mts +79 -0
  154. package/dist/esm/api/resources/agent/resources/chat/client/Client.mjs +268 -0
  155. package/dist/esm/api/resources/agent/{client/requests/GetChatMessagesRequest.d.mts → resources/chat/client/requests/ListMessagesRequest.d.mts} +4 -4
  156. package/dist/esm/api/resources/agent/resources/chat/client/requests/index.d.mts +3 -0
  157. package/dist/esm/api/resources/agent/resources/chat/exports.d.mts +2 -0
  158. package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → agent/resources/chat}/exports.mjs +1 -1
  159. package/dist/esm/api/resources/agent/resources/chat/index.d.mts +2 -0
  160. package/dist/esm/api/resources/agent/resources/chat/index.mjs +2 -0
  161. package/dist/esm/api/resources/agent/resources/chat/types/ListMessagesRequestOrder.d.mts +5 -0
  162. package/dist/esm/api/resources/agent/{types/GetChatMessagesRequestOrder.mjs → resources/chat/types/ListMessagesRequestOrder.mjs} +1 -1
  163. package/dist/esm/api/resources/agent/resources/chat/types/ListMessagesRequestRole.d.mts +7 -0
  164. package/dist/esm/api/resources/agent/{types/GetChatMessagesRequestRole.mjs → resources/chat/types/ListMessagesRequestRole.mjs} +1 -1
  165. package/dist/esm/api/resources/agent/{types/GetChatMessagesResponse.d.mts → resources/chat/types/ListMessagesResponse.d.mts} +2 -2
  166. package/dist/esm/api/resources/agent/resources/chat/types/index.d.mts +3 -0
  167. package/dist/esm/api/resources/agent/resources/chat/types/index.mjs +3 -0
  168. package/dist/esm/api/resources/agent/resources/index.d.mts +3 -0
  169. package/dist/esm/api/resources/agent/resources/index.mjs +3 -0
  170. package/dist/esm/api/resources/agent/types/index.d.mts +0 -3
  171. package/dist/esm/api/resources/agent/types/index.mjs +0 -3
  172. package/dist/esm/api/resources/construe/client/Client.d.mts +6 -330
  173. package/dist/esm/api/resources/construe/client/Client.mjs +8 -838
  174. package/dist/esm/api/resources/construe/client/requests/index.d.mts +0 -9
  175. package/dist/esm/api/resources/construe/client/requests/index.mjs +1 -1
  176. package/dist/esm/api/resources/construe/exports.d.mts +1 -0
  177. package/dist/esm/api/resources/construe/exports.mjs +1 -0
  178. package/dist/esm/api/resources/construe/index.d.mts +1 -0
  179. package/dist/esm/api/resources/construe/index.mjs +1 -0
  180. package/dist/esm/api/resources/construe/resources/codeSystems/client/Client.d.mts +135 -0
  181. package/dist/esm/api/resources/construe/resources/codeSystems/client/Client.mjs +396 -0
  182. package/dist/esm/api/resources/construe/resources/codeSystems/client/index.d.mts +1 -0
  183. package/dist/esm/api/resources/construe/resources/codeSystems/client/index.mjs +1 -0
  184. package/dist/{cjs/api/resources/construe/client/requests/ExportCodeSystemRequest.d.ts → esm/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.mts} +1 -1
  185. package/dist/esm/api/resources/construe/{client/requests/DeleteCodeSystemRequest.d.mts → resources/codeSystems/client/requests/ExportRequest.d.mts} +1 -1
  186. package/dist/esm/api/resources/construe/{client/requests/GetCodeSystemRequest.d.mts → resources/codeSystems/client/requests/FindRequest.d.mts} +1 -1
  187. package/dist/esm/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.d.mts +1 -1
  188. package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/index.d.mts +4 -0
  189. package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/index.mjs +1 -0
  190. package/dist/esm/api/resources/construe/resources/codeSystems/exports.d.mts +2 -0
  191. package/dist/esm/api/resources/{tools/resources/mcpServer → construe/resources/codeSystems}/exports.mjs +1 -2
  192. package/dist/esm/api/resources/construe/resources/codeSystems/index.d.mts +2 -0
  193. package/dist/esm/api/resources/construe/resources/codeSystems/index.mjs +2 -0
  194. package/dist/{cjs/api/resources/construe/types/UploadCodeSystemResponse.d.ts → esm/api/resources/construe/resources/codeSystems/types/UploadResponse.d.mts} +1 -1
  195. package/dist/esm/api/resources/construe/resources/codeSystems/types/index.d.mts +1 -0
  196. package/dist/esm/api/resources/construe/resources/codeSystems/types/index.mjs +1 -0
  197. package/dist/esm/api/resources/construe/resources/codes/client/Client.d.mts +227 -0
  198. package/dist/esm/api/resources/construe/resources/codes/client/Client.mjs +491 -0
  199. package/dist/esm/api/resources/construe/resources/codes/client/index.d.mts +1 -0
  200. package/dist/esm/api/resources/construe/resources/codes/client/index.mjs +1 -0
  201. package/dist/esm/api/resources/construe/{client/requests/ListCodesRequest.d.mts → resources/codes/client/requests/CodesListRequest.d.mts} +1 -1
  202. package/dist/esm/api/resources/construe/{client → resources/codes/client}/requests/ExtractRequest.d.mts +1 -1
  203. package/dist/{cjs/api/resources/construe/client/requests/GetCodeRequest.d.ts → esm/api/resources/construe/resources/codes/client/requests/LookupRequest.d.mts} +1 -1
  204. package/dist/esm/api/resources/construe/resources/codes/client/requests/index.d.mts +5 -0
  205. package/dist/esm/api/resources/construe/resources/codes/exports.d.mts +2 -0
  206. package/dist/esm/api/resources/construe/resources/codes/exports.mjs +3 -0
  207. package/dist/esm/api/resources/construe/resources/index.d.mts +5 -0
  208. package/dist/esm/api/resources/construe/resources/index.mjs +5 -0
  209. package/dist/esm/api/resources/construe/types/index.d.mts +0 -1
  210. package/dist/esm/api/resources/construe/types/index.mjs +0 -1
  211. package/dist/esm/api/resources/fhir/client/Client.d.mts +50 -75
  212. package/dist/esm/api/resources/fhir/client/Client.mjs +75 -205
  213. package/dist/esm/api/resources/fhir/client/requests/CreateRequest.d.mts +2 -3
  214. package/dist/esm/api/resources/fhir/client/requests/ExecuteBundleRequest.d.mts +19 -16
  215. package/dist/esm/api/resources/fhir/client/requests/SearchRequest.d.mts +0 -8
  216. package/dist/esm/api/resources/fhir/client/requests/UpsertRequest.d.mts +3 -4
  217. package/dist/esm/api/resources/fhir/index.d.mts +0 -1
  218. package/dist/esm/api/resources/fhir/index.mjs +0 -1
  219. package/dist/esm/api/resources/fhir/types/index.d.mts +0 -4
  220. package/dist/esm/api/resources/fhir/types/index.mjs +0 -4
  221. package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +3 -74
  222. package/dist/esm/api/resources/fhirProvider/client/Client.mjs +5 -221
  223. package/dist/esm/api/resources/fhirProvider/client/requests/index.d.mts +0 -2
  224. package/dist/esm/api/resources/fhirProvider/exports.d.mts +1 -0
  225. package/dist/esm/api/resources/fhirProvider/exports.mjs +1 -0
  226. package/dist/esm/api/resources/fhirProvider/index.d.mts +1 -0
  227. package/dist/esm/api/resources/fhirProvider/index.mjs +1 -0
  228. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/Client.d.mts +90 -0
  229. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/Client.mjs +243 -0
  230. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/index.d.mts +1 -0
  231. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/index.mjs +1 -0
  232. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/requests/index.d.mts +2 -0
  233. package/dist/esm/api/resources/fhirProvider/resources/authConfig/exports.d.mts +2 -0
  234. package/dist/esm/api/resources/fhirProvider/resources/authConfig/exports.mjs +3 -0
  235. package/dist/esm/api/resources/fhirProvider/resources/authConfig/index.d.mts +2 -0
  236. package/dist/esm/api/resources/fhirProvider/resources/authConfig/index.mjs +2 -0
  237. package/dist/esm/api/resources/fhirProvider/{types/RemoveAuthConfigResponse.d.mts → resources/authConfig/types/RemoveResponse.d.mts} +2 -2
  238. package/dist/esm/api/resources/fhirProvider/resources/authConfig/types/index.d.mts +1 -0
  239. package/dist/esm/api/resources/fhirProvider/resources/authConfig/types/index.mjs +1 -0
  240. package/dist/esm/api/resources/fhirProvider/resources/index.d.mts +3 -0
  241. package/dist/esm/api/resources/fhirProvider/resources/index.mjs +3 -0
  242. package/dist/esm/api/resources/fhirProvider/types/index.d.mts +0 -1
  243. package/dist/esm/api/resources/fhirProvider/types/index.mjs +0 -1
  244. package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +11 -1
  245. package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +33 -3
  246. package/dist/esm/api/resources/{fhir/errors/ServiceUnavailableError.d.mts → lang2Fhir/errors/ClientClosedRequestError.d.mts} +1 -1
  247. package/dist/esm/api/resources/lang2Fhir/errors/ClientClosedRequestError.mjs +17 -0
  248. package/dist/esm/api/resources/{fhir/errors/UnauthorizedError.d.mts → lang2Fhir/errors/GatewayTimeoutError.d.mts} +1 -1
  249. package/dist/esm/api/resources/{fhir/errors/BadGatewayError.mjs → lang2Fhir/errors/GatewayTimeoutError.mjs} +3 -3
  250. package/dist/esm/api/resources/lang2Fhir/errors/index.d.mts +3 -1
  251. package/dist/esm/api/resources/lang2Fhir/errors/index.mjs +3 -1
  252. package/dist/esm/api/resources/summary/resources/templates/client/Client.d.mts +7 -4
  253. package/dist/esm/api/resources/summary/resources/templates/client/Client.mjs +6 -12
  254. package/dist/{cjs/api/resources/summary/resources/templates/types/TemplatesDeleteResponse.d.ts → esm/api/resources/summary/resources/templates/types/DeleteResponse.d.mts} +1 -1
  255. package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesGetResponse.d.mts → GetResponse.d.mts} +1 -1
  256. package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesListResponse.d.mts → ListResponse.d.mts} +1 -1
  257. package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesUpdateResponse.d.mts → UpdateResponse.d.mts} +1 -1
  258. package/dist/esm/api/resources/summary/resources/templates/types/index.d.mts +4 -4
  259. package/dist/esm/api/resources/summary/resources/templates/types/index.mjs +4 -4
  260. package/dist/esm/api/resources/tools/client/Client.d.mts +6 -6
  261. package/dist/esm/api/resources/tools/client/Client.mjs +8 -12
  262. package/dist/esm/api/resources/{fhir/errors/BadRequestError.d.mts → tools/errors/NotFoundError.d.mts} +1 -1
  263. package/dist/esm/api/resources/{fhir/errors/BadRequestError.mjs → tools/errors/NotFoundError.mjs} +3 -3
  264. package/dist/esm/api/resources/tools/errors/index.d.mts +1 -1
  265. package/dist/esm/api/resources/tools/errors/index.mjs +1 -1
  266. package/dist/esm/api/resources/tools/resources/index.d.mts +3 -2
  267. package/dist/esm/api/resources/tools/resources/index.mjs +3 -2
  268. package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.d.mts +21 -19
  269. package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.mjs +18 -14
  270. package/dist/esm/api/resources/tools/resources/mcpServers/client/index.d.mts +1 -0
  271. package/dist/esm/api/resources/tools/resources/mcpServers/client/index.mjs +1 -0
  272. package/dist/esm/api/resources/tools/resources/mcpServers/client/requests/index.mjs +1 -0
  273. package/dist/esm/api/resources/tools/resources/mcpServers/exports.d.mts +2 -0
  274. package/dist/esm/api/resources/tools/resources/mcpServers/exports.mjs +3 -0
  275. package/dist/esm/api/resources/tools/resources/mcpServers/index.d.mts +1 -0
  276. package/dist/esm/api/resources/tools/resources/mcpServers/index.mjs +1 -0
  277. package/dist/esm/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.d.mts +19 -17
  278. package/dist/esm/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.mjs +20 -14
  279. package/dist/esm/api/resources/tools/resources/mcpTools/client/index.d.mts +1 -0
  280. package/dist/esm/api/resources/tools/resources/mcpTools/client/index.mjs +1 -0
  281. package/dist/esm/api/resources/tools/resources/mcpTools/exports.d.mts +2 -0
  282. package/dist/esm/api/resources/tools/resources/mcpTools/exports.mjs +3 -0
  283. package/dist/esm/api/resources/tools/resources/mcpTools/index.d.mts +1 -0
  284. package/dist/esm/api/resources/tools/resources/mcpTools/index.mjs +1 -0
  285. package/dist/esm/api/resources/workflows/client/Client.d.mts +3 -0
  286. package/dist/esm/api/resources/workflows/client/Client.mjs +9 -0
  287. package/dist/esm/version.d.mts +1 -1
  288. package/dist/esm/version.mjs +1 -1
  289. package/openapi/openapi.json +353 -660
  290. package/package.json +57 -13
  291. package/reference.md +235 -211
  292. package/dist/cjs/api/resources/agent/types/GetChatMessagesRequestOrder.d.ts +0 -5
  293. package/dist/cjs/api/resources/agent/types/GetChatMessagesRequestRole.d.ts +0 -7
  294. package/dist/cjs/api/resources/fhir/errors/BadGatewayError.d.ts +0 -6
  295. package/dist/cjs/api/resources/fhir/errors/ServiceUnavailableError.js +0 -54
  296. package/dist/cjs/api/resources/fhir/errors/TooManyRequestsError.d.ts +0 -6
  297. package/dist/cjs/api/resources/fhir/errors/TooManyRequestsError.js +0 -54
  298. package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.js +0 -54
  299. package/dist/cjs/api/resources/fhir/errors/index.d.ts +0 -7
  300. package/dist/cjs/api/resources/fhir/errors/index.js +0 -23
  301. package/dist/cjs/api/resources/fhir/types/ErrorResponse.d.ts +0 -11
  302. package/dist/cjs/api/resources/fhir/types/FhirBundle.d.ts +0 -54
  303. package/dist/cjs/api/resources/fhir/types/FhirBundle.js +0 -23
  304. package/dist/cjs/api/resources/fhir/types/FhirResource.d.ts +0 -24
  305. package/dist/cjs/api/resources/fhir/types/SearchResponse.d.ts +0 -2
  306. package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.d.ts +0 -5
  307. package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.js +0 -54
  308. package/dist/cjs/api/resources/summary/resources/templates/types/TemplatesGetResponse.js +0 -3
  309. package/dist/cjs/api/resources/summary/resources/templates/types/TemplatesListResponse.js +0 -3
  310. package/dist/cjs/api/resources/summary/resources/templates/types/TemplatesUpdateResponse.js +0 -3
  311. package/dist/cjs/api/resources/tools/errors/FailedDependencyError.d.ts +0 -5
  312. package/dist/cjs/api/resources/tools/errors/FailedDependencyError.js +0 -54
  313. package/dist/cjs/api/resources/tools/resources/mcpServer/exports.d.ts +0 -3
  314. package/dist/cjs/api/resources/tools/resources/mcpServer/index.d.ts +0 -2
  315. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.d.ts +0 -1
  316. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/exports.d.ts +0 -2
  317. package/dist/esm/api/resources/agent/types/GetChatMessagesRequestOrder.d.mts +0 -5
  318. package/dist/esm/api/resources/agent/types/GetChatMessagesRequestRole.d.mts +0 -7
  319. package/dist/esm/api/resources/fhir/errors/BadGatewayError.d.mts +0 -6
  320. package/dist/esm/api/resources/fhir/errors/ServiceUnavailableError.mjs +0 -17
  321. package/dist/esm/api/resources/fhir/errors/TooManyRequestsError.d.mts +0 -6
  322. package/dist/esm/api/resources/fhir/errors/TooManyRequestsError.mjs +0 -17
  323. package/dist/esm/api/resources/fhir/errors/UnauthorizedError.mjs +0 -17
  324. package/dist/esm/api/resources/fhir/errors/index.d.mts +0 -7
  325. package/dist/esm/api/resources/fhir/errors/index.mjs +0 -7
  326. package/dist/esm/api/resources/fhir/types/ErrorResponse.d.mts +0 -11
  327. package/dist/esm/api/resources/fhir/types/FhirBundle.d.mts +0 -54
  328. package/dist/esm/api/resources/fhir/types/FhirBundle.mjs +0 -20
  329. package/dist/esm/api/resources/fhir/types/FhirResource.d.mts +0 -24
  330. package/dist/esm/api/resources/fhir/types/SearchResponse.d.mts +0 -2
  331. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.d.mts +0 -5
  332. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.mjs +0 -17
  333. package/dist/esm/api/resources/summary/resources/templates/types/TemplatesGetResponse.mjs +0 -2
  334. package/dist/esm/api/resources/summary/resources/templates/types/TemplatesListResponse.mjs +0 -2
  335. package/dist/esm/api/resources/summary/resources/templates/types/TemplatesUpdateResponse.mjs +0 -2
  336. package/dist/esm/api/resources/tools/errors/FailedDependencyError.d.mts +0 -5
  337. package/dist/esm/api/resources/tools/errors/FailedDependencyError.mjs +0 -17
  338. package/dist/esm/api/resources/tools/resources/mcpServer/exports.d.mts +0 -3
  339. package/dist/esm/api/resources/tools/resources/mcpServer/index.d.mts +0 -2
  340. package/dist/esm/api/resources/tools/resources/mcpServer/index.mjs +0 -2
  341. package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.d.mts +0 -1
  342. package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.mjs +0 -1
  343. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/exports.d.mts +0 -2
  344. /package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.d.ts +0 -0
  345. /package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.js +0 -0
  346. /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.d.ts +0 -0
  347. /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.js +0 -0
  348. /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.d.ts +0 -0
  349. /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.js +0 -0
  350. /package/dist/cjs/api/resources/agent/{client/requests/GetChatMessagesRequest.js → resources/chat/client/requests/ListMessagesRequest.js} +0 -0
  351. /package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/requests/index.js +0 -0
  352. /package/dist/cjs/api/resources/agent/{types/GetChatMessagesResponse.js → resources/chat/types/ListMessagesResponse.js} +0 -0
  353. /package/dist/cjs/api/resources/construe/{client/requests/DeleteCodeSystemRequest.js → resources/codeSystems/client/requests/DeleteRequest.js} +0 -0
  354. /package/dist/cjs/api/resources/construe/{client/requests/ExportCodeSystemRequest.js → resources/codeSystems/client/requests/ExportRequest.js} +0 -0
  355. /package/dist/cjs/api/resources/construe/{client/requests/ExtractRequest.js → resources/codeSystems/client/requests/FindRequest.js} +0 -0
  356. /package/dist/cjs/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.js +0 -0
  357. /package/dist/cjs/api/resources/construe/{client/requests/GetCodeRequest.js → resources/codeSystems/types/UploadResponse.js} +0 -0
  358. /package/dist/cjs/api/resources/construe/{client/requests/GetCodeSystemRequest.js → resources/codes/client/requests/CodesListRequest.js} +0 -0
  359. /package/dist/cjs/api/resources/construe/{client/requests/ListCodesRequest.js → resources/codes/client/requests/ExtractRequest.js} +0 -0
  360. /package/dist/cjs/api/resources/construe/{client/requests/SearchSemanticRequest.js → resources/codes/client/requests/LookupRequest.js} +0 -0
  361. /package/dist/cjs/api/resources/construe/{client → resources/codes/client}/requests/SearchSemanticRequest.d.ts +0 -0
  362. /package/dist/cjs/api/resources/construe/{client/requests/SearchTextRequest.js → resources/codes/client/requests/SearchSemanticRequest.js} +0 -0
  363. /package/dist/cjs/api/resources/construe/{client → resources/codes/client}/requests/SearchTextRequest.d.ts +0 -0
  364. /package/dist/cjs/api/resources/construe/{types/UploadCodeSystemResponse.js → resources/codes/client/requests/SearchTextRequest.js} +0 -0
  365. /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools/client → construe/resources/codes/client/requests}/index.js +0 -0
  366. /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.d.ts +0 -0
  367. /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.js +0 -0
  368. /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.d.ts +0 -0
  369. /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.js +0 -0
  370. /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.d.ts +0 -0
  371. /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.js +0 -0
  372. /package/dist/cjs/api/resources/{fhir/types/ErrorResponse.js → fhirProvider/resources/authConfig/types/RemoveResponse.js} +0 -0
  373. /package/dist/cjs/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.d.ts +0 -0
  374. /package/dist/cjs/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.js +0 -0
  375. /package/dist/cjs/api/resources/{fhir/types/FhirResource.js → summary/resources/templates/types/DeleteResponse.js} +0 -0
  376. /package/dist/cjs/api/resources/{fhir/types/SearchResponse.js → summary/resources/templates/types/GetResponse.js} +0 -0
  377. /package/dist/cjs/api/resources/{fhirProvider/types/RemoveAuthConfigResponse.js → summary/resources/templates/types/ListResponse.js} +0 -0
  378. /package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesDeleteResponse.js → UpdateResponse.js} +0 -0
  379. /package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.d.ts +0 -0
  380. /package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.js +0 -0
  381. /package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/index.d.ts +0 -0
  382. /package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/index.d.ts +0 -0
  383. /package/dist/esm/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.d.mts +0 -0
  384. /package/dist/esm/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.mjs +0 -0
  385. /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.d.mts +0 -0
  386. /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.mjs +0 -0
  387. /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.d.mts +0 -0
  388. /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.mjs +0 -0
  389. /package/dist/esm/api/resources/agent/{client/requests/GetChatMessagesRequest.mjs → resources/chat/client/requests/ListMessagesRequest.mjs} +0 -0
  390. /package/dist/esm/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/requests/index.mjs +0 -0
  391. /package/dist/esm/api/resources/agent/{types/GetChatMessagesResponse.mjs → resources/chat/types/ListMessagesResponse.mjs} +0 -0
  392. /package/dist/esm/api/resources/construe/{client/requests/DeleteCodeSystemRequest.mjs → resources/codeSystems/client/requests/DeleteRequest.mjs} +0 -0
  393. /package/dist/esm/api/resources/construe/{client/requests/ExportCodeSystemRequest.mjs → resources/codeSystems/client/requests/ExportRequest.mjs} +0 -0
  394. /package/dist/esm/api/resources/construe/{client/requests/ExtractRequest.mjs → resources/codeSystems/client/requests/FindRequest.mjs} +0 -0
  395. /package/dist/esm/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.mjs +0 -0
  396. /package/dist/esm/api/resources/construe/{client/requests/GetCodeRequest.mjs → resources/codeSystems/types/UploadResponse.mjs} +0 -0
  397. /package/dist/esm/api/resources/construe/{client/requests/GetCodeSystemRequest.mjs → resources/codes/client/requests/CodesListRequest.mjs} +0 -0
  398. /package/dist/esm/api/resources/construe/{client/requests/ListCodesRequest.mjs → resources/codes/client/requests/ExtractRequest.mjs} +0 -0
  399. /package/dist/esm/api/resources/construe/{client/requests/SearchSemanticRequest.mjs → resources/codes/client/requests/LookupRequest.mjs} +0 -0
  400. /package/dist/esm/api/resources/construe/{client → resources/codes/client}/requests/SearchSemanticRequest.d.mts +0 -0
  401. /package/dist/esm/api/resources/construe/{client/requests/SearchTextRequest.mjs → resources/codes/client/requests/SearchSemanticRequest.mjs} +0 -0
  402. /package/dist/esm/api/resources/construe/{client → resources/codes/client}/requests/SearchTextRequest.d.mts +0 -0
  403. /package/dist/esm/api/resources/construe/{types/UploadCodeSystemResponse.mjs → resources/codes/client/requests/SearchTextRequest.mjs} +0 -0
  404. /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools/client → construe/resources/codes/client/requests}/index.mjs +0 -0
  405. /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.d.mts +0 -0
  406. /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.mjs +0 -0
  407. /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.d.mts +0 -0
  408. /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.mjs +0 -0
  409. /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.d.mts +0 -0
  410. /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.mjs +0 -0
  411. /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools/client/index.d.mts → fhirProvider/resources/authConfig/client/requests/index.mjs} +0 -0
  412. /package/dist/esm/api/resources/{fhir/types/ErrorResponse.mjs → fhirProvider/resources/authConfig/types/RemoveResponse.mjs} +0 -0
  413. /package/dist/esm/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.d.mts +0 -0
  414. /package/dist/esm/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.mjs +0 -0
  415. /package/dist/esm/api/resources/{fhir/types/FhirResource.mjs → summary/resources/templates/types/DeleteResponse.mjs} +0 -0
  416. /package/dist/esm/api/resources/{fhir/types/SearchResponse.mjs → summary/resources/templates/types/GetResponse.mjs} +0 -0
  417. /package/dist/esm/api/resources/{fhirProvider/types/RemoveAuthConfigResponse.mjs → summary/resources/templates/types/ListResponse.mjs} +0 -0
  418. /package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesDeleteResponse.mjs → UpdateResponse.mjs} +0 -0
  419. /package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.d.mts +0 -0
  420. /package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.mjs +0 -0
  421. /package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/index.d.mts +0 -0
package/reference.md CHANGED
@@ -416,7 +416,8 @@ await client.agent.patch("id", [{
416
416
  </dl>
417
417
  </details>
418
418
 
419
- <details><summary><code>client.agent.<a href="/src/api/resources/agent/client/Client.ts">chat</a>({ ...params }) -> phenoml.AgentChatResponse</code></summary>
419
+ ## Chat
420
+ <details><summary><code>client.agent.chat.<a href="/src/api/resources/agent/resources/chat/client/Client.ts">send</a>({ ...params }) -> phenoml.AgentChatResponse</code></summary>
420
421
  <dl>
421
422
  <dd>
422
423
 
@@ -443,7 +444,7 @@ Send a message to an agent and receive a JSON response.
443
444
  <dd>
444
445
 
445
446
  ```typescript
446
- await client.agent.chat({
447
+ await client.agent.chat.send({
447
448
  "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
448
449
  "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
449
450
  message: "What is the patient's current condition?",
@@ -473,7 +474,7 @@ await client.agent.chat({
473
474
  <dl>
474
475
  <dd>
475
476
 
476
- **requestOptions:** `AgentClient.RequestOptions`
477
+ **requestOptions:** `ChatClient.RequestOptions`
477
478
 
478
479
  </dd>
479
480
  </dl>
@@ -485,7 +486,7 @@ await client.agent.chat({
485
486
  </dl>
486
487
  </details>
487
488
 
488
- <details><summary><code>client.agent.<a href="/src/api/resources/agent/client/Client.ts">streamChat</a>({ ...params }) -> core.Stream&lt;phenoml.AgentChatStreamEvent&gt;</code></summary>
489
+ <details><summary><code>client.agent.chat.<a href="/src/api/resources/agent/resources/chat/client/Client.ts">stream</a>({ ...params }) -> core.Stream&lt;phenoml.AgentChatStreamEvent&gt;</code></summary>
489
490
  <dl>
490
491
  <dd>
491
492
 
@@ -514,7 +515,7 @@ tool_result, message_end, and error.
514
515
  <dd>
515
516
 
516
517
  ```typescript
517
- const response = await client.agent.streamChat({
518
+ const response = await client.agent.chat.stream({
518
519
  "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
519
520
  "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
520
521
  message: "What is the patient's current condition?",
@@ -547,7 +548,7 @@ for await (const item of response) {
547
548
  <dl>
548
549
  <dd>
549
550
 
550
- **requestOptions:** `AgentClient.RequestOptions`
551
+ **requestOptions:** `ChatClient.RequestOptions`
551
552
 
552
553
  </dd>
553
554
  </dl>
@@ -559,7 +560,7 @@ for await (const item of response) {
559
560
  </dl>
560
561
  </details>
561
562
 
562
- <details><summary><code>client.agent.<a href="/src/api/resources/agent/client/Client.ts">getChatMessages</a>({ ...params }) -> phenoml.GetChatMessagesResponse</code></summary>
563
+ <details><summary><code>client.agent.chat.<a href="/src/api/resources/agent/resources/chat/client/Client.ts">listMessages</a>({ ...params }) -> phenoml.ListMessagesResponse</code></summary>
563
564
  <dl>
564
565
  <dd>
565
566
 
@@ -586,7 +587,7 @@ Retrieves a list of chat messages for a given chat session
586
587
  <dd>
587
588
 
588
589
  ```typescript
589
- await client.agent.getChatMessages({
590
+ await client.agent.chat.listMessages({
590
591
  chat_session_id: "chat_session_id",
591
592
  num_messages: 1,
592
593
  role: "user",
@@ -607,7 +608,7 @@ await client.agent.getChatMessages({
607
608
  <dl>
608
609
  <dd>
609
610
 
610
- **request:** `phenoml.agent.GetChatMessagesRequest`
611
+ **request:** `phenoml.agent.ListMessagesRequest`
611
612
 
612
613
  </dd>
613
614
  </dl>
@@ -615,7 +616,7 @@ await client.agent.getChatMessages({
615
616
  <dl>
616
617
  <dd>
617
618
 
618
- **requestOptions:** `AgentClient.RequestOptions`
619
+ **requestOptions:** `ChatClient.RequestOptions`
619
620
 
620
621
  </dd>
621
622
  </dl>
@@ -1167,7 +1168,7 @@ await client.cohort.analyze({
1167
1168
  </details>
1168
1169
 
1169
1170
  ## Construe
1170
- <details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">uploadCodeSystem</a>({ ...params }) -> phenoml.UploadCodeSystemResponse</code></summary>
1171
+ <details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">submitFeedback</a>({ ...params }) -> phenoml.FeedbackResponse</code></summary>
1171
1172
  <dl>
1172
1173
  <dd>
1173
1174
 
@@ -1179,10 +1180,8 @@ await client.cohort.analyze({
1179
1180
  <dl>
1180
1181
  <dd>
1181
1182
 
1182
- Upload a custom medical code system with codes and descriptions for use in code extraction. Requires a paid plan.
1183
- Returns 202 immediately; embedding generation runs asynchronously. Poll
1184
- GET /construe/codes/systems/{codesystem}?version={version} to check when status
1185
- transitions from "processing" to "ready" or "failed".
1183
+ Submits user feedback on results from the Construe extraction endpoint.
1184
+ Feedback includes the full extraction result received and the result the user expected.
1186
1185
  </dd>
1187
1186
  </dl>
1188
1187
  </dd>
@@ -1197,17 +1196,31 @@ transitions from "processing" to "ready" or "failed".
1197
1196
  <dd>
1198
1197
 
1199
1198
  ```typescript
1200
- await client.construe.uploadCodeSystem({
1201
- name: "CUSTOM_CODES",
1202
- version: "1.0",
1203
- format: "json",
1204
- codes: [{
1205
- code: "X001",
1206
- description: "Example custom code 1"
1207
- }, {
1208
- code: "X002",
1209
- description: "Example custom code 2"
1210
- }]
1199
+ await client.construe.submitFeedback({
1200
+ text: "Patient has type 2 diabetes with hyperglycemia",
1201
+ received_result: {
1202
+ system: {
1203
+ name: "ICD-10-CM",
1204
+ version: "2025"
1205
+ },
1206
+ codes: [{
1207
+ code: "E11.9",
1208
+ description: "Type 2 diabetes mellitus without complications",
1209
+ valid: true
1210
+ }]
1211
+ },
1212
+ expected_result: {
1213
+ system: {
1214
+ name: "ICD-10-CM",
1215
+ version: "2025"
1216
+ },
1217
+ codes: [{
1218
+ code: "E11.65",
1219
+ description: "Type 2 diabetes mellitus with hyperglycemia",
1220
+ valid: true
1221
+ }]
1222
+ },
1223
+ detail: "Expected code E11.65 because the text mentions hyperglycemia"
1211
1224
  });
1212
1225
 
1213
1226
  ```
@@ -1224,7 +1237,7 @@ await client.construe.uploadCodeSystem({
1224
1237
  <dl>
1225
1238
  <dd>
1226
1239
 
1227
- **request:** `phenoml.construe.UploadRequest`
1240
+ **request:** `phenoml.construe.FeedbackRequest`
1228
1241
 
1229
1242
  </dd>
1230
1243
  </dl>
@@ -1244,7 +1257,8 @@ await client.construe.uploadCodeSystem({
1244
1257
  </dl>
1245
1258
  </details>
1246
1259
 
1247
- <details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">extractCodes</a>({ ...params }) -> phenoml.ExtractCodesResult</code></summary>
1260
+ ## Code Systems
1261
+ <details><summary><code>client.construe.codeSystems.<a href="/src/api/resources/construe/resources/codeSystems/client/Client.ts">upload</a>({ ...params }) -> phenoml.UploadResponse</code></summary>
1248
1262
  <dl>
1249
1263
  <dd>
1250
1264
 
@@ -1256,9 +1270,10 @@ await client.construe.uploadCodeSystem({
1256
1270
  <dl>
1257
1271
  <dd>
1258
1272
 
1259
- Converts natural language text into structured medical codes.
1260
-
1261
- Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
1273
+ Upload a custom medical code system with codes and descriptions for use in code extraction. Requires a paid plan.
1274
+ Returns 202 immediately; embedding generation runs asynchronously. Poll
1275
+ GET /construe/codes/systems/{codesystem}?version={version} to check when status
1276
+ transitions from "processing" to "ready" or "failed".
1262
1277
  </dd>
1263
1278
  </dl>
1264
1279
  </dd>
@@ -1273,12 +1288,17 @@ Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
1273
1288
  <dd>
1274
1289
 
1275
1290
  ```typescript
1276
- await client.construe.extractCodes({
1277
- text: "Patient is a 14-year-old female, previously healthy, who is here for evaluation of abnormal renal ultrasound with atrophic right kidney.",
1278
- system: {
1279
- name: "ICD-10-CM",
1280
- version: "2025"
1281
- }
1291
+ await client.construe.codeSystems.upload({
1292
+ name: "CUSTOM_CODES",
1293
+ version: "1.0",
1294
+ format: "json",
1295
+ codes: [{
1296
+ code: "X001",
1297
+ description: "Example custom code 1"
1298
+ }, {
1299
+ code: "X002",
1300
+ description: "Example custom code 2"
1301
+ }]
1282
1302
  });
1283
1303
 
1284
1304
  ```
@@ -1295,7 +1315,7 @@ await client.construe.extractCodes({
1295
1315
  <dl>
1296
1316
  <dd>
1297
1317
 
1298
- **request:** `phenoml.construe.ExtractRequest`
1318
+ **request:** `phenoml.construe.UploadRequest`
1299
1319
 
1300
1320
  </dd>
1301
1321
  </dl>
@@ -1303,7 +1323,7 @@ await client.construe.extractCodes({
1303
1323
  <dl>
1304
1324
  <dd>
1305
1325
 
1306
- **requestOptions:** `ConstrueClient.RequestOptions`
1326
+ **requestOptions:** `CodeSystemsClient.RequestOptions`
1307
1327
 
1308
1328
  </dd>
1309
1329
  </dl>
@@ -1315,7 +1335,7 @@ await client.construe.extractCodes({
1315
1335
  </dl>
1316
1336
  </details>
1317
1337
 
1318
- <details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">listCodeSystems</a>() -> phenoml.ListCodeSystemsResponse</code></summary>
1338
+ <details><summary><code>client.construe.codeSystems.<a href="/src/api/resources/construe/resources/codeSystems/client/Client.ts">list</a>() -> phenoml.ListCodeSystemsResponse</code></summary>
1319
1339
  <dl>
1320
1340
  <dd>
1321
1341
 
@@ -1342,7 +1362,7 @@ Returns the terminology server's catalog of available code systems, including bo
1342
1362
  <dd>
1343
1363
 
1344
1364
  ```typescript
1345
- await client.construe.listCodeSystems();
1365
+ await client.construe.codeSystems.list();
1346
1366
 
1347
1367
  ```
1348
1368
  </dd>
@@ -1358,7 +1378,7 @@ await client.construe.listCodeSystems();
1358
1378
  <dl>
1359
1379
  <dd>
1360
1380
 
1361
- **requestOptions:** `ConstrueClient.RequestOptions`
1381
+ **requestOptions:** `CodeSystemsClient.RequestOptions`
1362
1382
 
1363
1383
  </dd>
1364
1384
  </dl>
@@ -1370,7 +1390,7 @@ await client.construe.listCodeSystems();
1370
1390
  </dl>
1371
1391
  </details>
1372
1392
 
1373
- <details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">getCodeSystem</a>(codesystem, { ...params }) -> phenoml.GetCodeSystemDetailResponse</code></summary>
1393
+ <details><summary><code>client.construe.codeSystems.<a href="/src/api/resources/construe/resources/codeSystems/client/Client.ts">find</a>(codesystem, { ...params }) -> phenoml.GetCodeSystemDetailResponse</code></summary>
1374
1394
  <dl>
1375
1395
  <dd>
1376
1396
 
@@ -1397,7 +1417,7 @@ Returns full metadata for a single code system, including timestamps and builtin
1397
1417
  <dd>
1398
1418
 
1399
1419
  ```typescript
1400
- await client.construe.getCodeSystem("ICD-10-CM", {
1420
+ await client.construe.codeSystems.find("ICD-10-CM", {
1401
1421
  version: "2025"
1402
1422
  });
1403
1423
 
@@ -1423,7 +1443,7 @@ await client.construe.getCodeSystem("ICD-10-CM", {
1423
1443
  <dl>
1424
1444
  <dd>
1425
1445
 
1426
- **request:** `phenoml.construe.GetCodeSystemRequest`
1446
+ **request:** `phenoml.construe.FindRequest`
1427
1447
 
1428
1448
  </dd>
1429
1449
  </dl>
@@ -1431,7 +1451,7 @@ await client.construe.getCodeSystem("ICD-10-CM", {
1431
1451
  <dl>
1432
1452
  <dd>
1433
1453
 
1434
- **requestOptions:** `ConstrueClient.RequestOptions`
1454
+ **requestOptions:** `CodeSystemsClient.RequestOptions`
1435
1455
 
1436
1456
  </dd>
1437
1457
  </dl>
@@ -1443,7 +1463,7 @@ await client.construe.getCodeSystem("ICD-10-CM", {
1443
1463
  </dl>
1444
1464
  </details>
1445
1465
 
1446
- <details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">deleteCodeSystem</a>(codesystem, { ...params }) -> phenoml.DeleteCodeSystemResponse</code></summary>
1466
+ <details><summary><code>client.construe.codeSystems.<a href="/src/api/resources/construe/resources/codeSystems/client/Client.ts">delete</a>(codesystem, { ...params }) -> phenoml.DeleteCodeSystemResponse</code></summary>
1447
1467
  <dl>
1448
1468
  <dd>
1449
1469
 
@@ -1471,7 +1491,7 @@ Only available on dedicated instances. Large systems may take up to a minute to
1471
1491
  <dd>
1472
1492
 
1473
1493
  ```typescript
1474
- await client.construe.deleteCodeSystem("CUSTOM_CODES", {
1494
+ await client.construe.codeSystems.delete("CUSTOM_CODES", {
1475
1495
  version: "version"
1476
1496
  });
1477
1497
 
@@ -1497,7 +1517,7 @@ await client.construe.deleteCodeSystem("CUSTOM_CODES", {
1497
1517
  <dl>
1498
1518
  <dd>
1499
1519
 
1500
- **request:** `phenoml.construe.DeleteCodeSystemRequest`
1520
+ **request:** `phenoml.construe.DeleteRequest`
1501
1521
 
1502
1522
  </dd>
1503
1523
  </dl>
@@ -1505,7 +1525,7 @@ await client.construe.deleteCodeSystem("CUSTOM_CODES", {
1505
1525
  <dl>
1506
1526
  <dd>
1507
1527
 
1508
- **requestOptions:** `ConstrueClient.RequestOptions`
1528
+ **requestOptions:** `CodeSystemsClient.RequestOptions`
1509
1529
 
1510
1530
  </dd>
1511
1531
  </dl>
@@ -1517,7 +1537,7 @@ await client.construe.deleteCodeSystem("CUSTOM_CODES", {
1517
1537
  </dl>
1518
1538
  </details>
1519
1539
 
1520
- <details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">exportCodeSystem</a>(codesystem, { ...params }) -> phenoml.ExportCodeSystemResponse</code></summary>
1540
+ <details><summary><code>client.construe.codeSystems.<a href="/src/api/resources/construe/resources/codeSystems/client/Client.ts">export</a>(codesystem, { ...params }) -> phenoml.ExportCodeSystemResponse</code></summary>
1521
1541
  <dl>
1522
1542
  <dd>
1523
1543
 
@@ -1546,7 +1566,7 @@ Only available on dedicated instances. Builtin systems cannot be exported.
1546
1566
  <dd>
1547
1567
 
1548
1568
  ```typescript
1549
- await client.construe.exportCodeSystem("CUSTOM_CODES", {
1569
+ await client.construe.codeSystems.export("CUSTOM_CODES", {
1550
1570
  version: "version"
1551
1571
  });
1552
1572
 
@@ -1572,7 +1592,7 @@ await client.construe.exportCodeSystem("CUSTOM_CODES", {
1572
1592
  <dl>
1573
1593
  <dd>
1574
1594
 
1575
- **request:** `phenoml.construe.ExportCodeSystemRequest`
1595
+ **request:** `phenoml.construe.ExportRequest`
1576
1596
 
1577
1597
  </dd>
1578
1598
  </dl>
@@ -1580,7 +1600,7 @@ await client.construe.exportCodeSystem("CUSTOM_CODES", {
1580
1600
  <dl>
1581
1601
  <dd>
1582
1602
 
1583
- **requestOptions:** `ConstrueClient.RequestOptions`
1603
+ **requestOptions:** `CodeSystemsClient.RequestOptions`
1584
1604
 
1585
1605
  </dd>
1586
1606
  </dl>
@@ -1592,7 +1612,8 @@ await client.construe.exportCodeSystem("CUSTOM_CODES", {
1592
1612
  </dl>
1593
1613
  </details>
1594
1614
 
1595
- <details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">listCodes</a>(codesystem, { ...params }) -> phenoml.ListCodesResponse</code></summary>
1615
+ ## Codes
1616
+ <details><summary><code>client.construe.codes.<a href="/src/api/resources/construe/resources/codes/client/Client.ts">extract</a>({ ...params }) -> phenoml.ExtractCodesResult</code></summary>
1596
1617
  <dl>
1597
1618
  <dd>
1598
1619
 
@@ -1604,7 +1625,7 @@ await client.construe.exportCodeSystem("CUSTOM_CODES", {
1604
1625
  <dl>
1605
1626
  <dd>
1606
1627
 
1607
- Returns a paginated list of all codes in the specified code system from the terminology server.
1628
+ Converts natural language text into structured medical codes.
1608
1629
 
1609
1630
  Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
1610
1631
  </dd>
@@ -1621,10 +1642,12 @@ Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
1621
1642
  <dd>
1622
1643
 
1623
1644
  ```typescript
1624
- await client.construe.listCodes("ICD-10-CM", {
1625
- version: "2025",
1626
- cursor: "cursor",
1627
- limit: 1
1645
+ await client.construe.codes.extract({
1646
+ text: "Patient is a 14-year-old female, previously healthy, who is here for evaluation of abnormal renal ultrasound with atrophic right kidney.",
1647
+ system: {
1648
+ name: "ICD-10-CM",
1649
+ version: "2025"
1650
+ }
1628
1651
  });
1629
1652
 
1630
1653
  ```
@@ -1641,15 +1664,7 @@ await client.construe.listCodes("ICD-10-CM", {
1641
1664
  <dl>
1642
1665
  <dd>
1643
1666
 
1644
- **codesystem:** `string` — Code system name (e.g., "ICD-10-CM", "SNOMED_CT_US_LITE")
1645
-
1646
- </dd>
1647
- </dl>
1648
-
1649
- <dl>
1650
- <dd>
1651
-
1652
- **request:** `phenoml.construe.ListCodesRequest`
1667
+ **request:** `phenoml.construe.ExtractRequest`
1653
1668
 
1654
1669
  </dd>
1655
1670
  </dl>
@@ -1657,7 +1672,7 @@ await client.construe.listCodes("ICD-10-CM", {
1657
1672
  <dl>
1658
1673
  <dd>
1659
1674
 
1660
- **requestOptions:** `ConstrueClient.RequestOptions`
1675
+ **requestOptions:** `CodesClient.RequestOptions`
1661
1676
 
1662
1677
  </dd>
1663
1678
  </dl>
@@ -1669,7 +1684,7 @@ await client.construe.listCodes("ICD-10-CM", {
1669
1684
  </dl>
1670
1685
  </details>
1671
1686
 
1672
- <details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">getCode</a>(codesystem, codeID, { ...params }) -> phenoml.GetCodeResponse</code></summary>
1687
+ <details><summary><code>client.construe.codes.<a href="/src/api/resources/construe/resources/codes/client/Client.ts">list</a>(codesystem, { ...params }) -> phenoml.ListCodesResponse</code></summary>
1673
1688
  <dl>
1674
1689
  <dd>
1675
1690
 
@@ -1681,7 +1696,7 @@ await client.construe.listCodes("ICD-10-CM", {
1681
1696
  <dl>
1682
1697
  <dd>
1683
1698
 
1684
- Looks up a specific code in the terminology server and returns its details.
1699
+ Returns a paginated list of all codes in the specified code system from the terminology server.
1685
1700
 
1686
1701
  Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
1687
1702
  </dd>
@@ -1698,8 +1713,10 @@ Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
1698
1713
  <dd>
1699
1714
 
1700
1715
  ```typescript
1701
- await client.construe.getCode("ICD-10-CM", "E1165", {
1702
- version: "version"
1716
+ await client.construe.codes.list("ICD-10-CM", {
1717
+ version: "2025",
1718
+ cursor: "cursor",
1719
+ limit: 1
1703
1720
  });
1704
1721
 
1705
1722
  ```
@@ -1716,18 +1733,7 @@ await client.construe.getCode("ICD-10-CM", "E1165", {
1716
1733
  <dl>
1717
1734
  <dd>
1718
1735
 
1719
- **codesystem:** `string` — Code system name
1720
-
1721
- </dd>
1722
- </dl>
1723
-
1724
- <dl>
1725
- <dd>
1726
-
1727
- **codeID:** `string`
1728
-
1729
- The code identifier. ICD-10-CM codes are stored without their
1730
- cosmetic dot (use "E1165", not "E11.65").
1736
+ **codesystem:** `string` — Code system name (e.g., "ICD-10-CM", "SNOMED_CT_US_LITE")
1731
1737
 
1732
1738
  </dd>
1733
1739
  </dl>
@@ -1735,7 +1741,7 @@ cosmetic dot (use "E1165", not "E11.65").
1735
1741
  <dl>
1736
1742
  <dd>
1737
1743
 
1738
- **request:** `phenoml.construe.GetCodeRequest`
1744
+ **request:** `phenoml.construe.CodesListRequest`
1739
1745
 
1740
1746
  </dd>
1741
1747
  </dl>
@@ -1743,7 +1749,7 @@ cosmetic dot (use "E1165", not "E11.65").
1743
1749
  <dl>
1744
1750
  <dd>
1745
1751
 
1746
- **requestOptions:** `ConstrueClient.RequestOptions`
1752
+ **requestOptions:** `CodesClient.RequestOptions`
1747
1753
 
1748
1754
  </dd>
1749
1755
  </dl>
@@ -1755,7 +1761,7 @@ cosmetic dot (use "E1165", not "E11.65").
1755
1761
  </dl>
1756
1762
  </details>
1757
1763
 
1758
- <details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">searchSemantic</a>(codesystem, { ...params }) -> phenoml.SemanticSearchResponse</code></summary>
1764
+ <details><summary><code>client.construe.codes.<a href="/src/api/resources/construe/resources/codes/client/Client.ts">lookup</a>(codesystem, codeID, { ...params }) -> phenoml.GetCodeResponse</code></summary>
1759
1765
  <dl>
1760
1766
  <dd>
1761
1767
 
@@ -1767,23 +1773,7 @@ cosmetic dot (use "E1165", not "E11.65").
1767
1773
  <dl>
1768
1774
  <dd>
1769
1775
 
1770
- Performs semantic similarity search using vector embeddings.
1771
-
1772
- **Availability**: This endpoint works for both **built-in and custom** code systems.
1773
-
1774
- **When to use**: Best for natural language queries where you want to find conceptually
1775
- related codes, even when different terminology is used. The search understands meaning,
1776
- not just keywords.
1777
-
1778
- **Examples**:
1779
- - Query "trouble breathing at night" finds codes like "Sleep apnea", "Orthopnea",
1780
- "Nocturnal dyspnea" — semantically related but no exact keyword matches
1781
- - Query "heart problems" finds "Myocardial infarction", "Cardiac arrest", "Arrhythmia"
1782
-
1783
- **Trade-offs**: Slower than text search (requires embedding generation), but finds
1784
- conceptually similar results that keyword search would miss.
1785
-
1786
- See also: `/search/text` for faster keyword-based lookup with typo tolerance.
1776
+ Looks up a specific code in the terminology server and returns its details.
1787
1777
 
1788
1778
  Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
1789
1779
  </dd>
@@ -1800,10 +1790,8 @@ Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
1800
1790
  <dd>
1801
1791
 
1802
1792
  ```typescript
1803
- await client.construe.searchSemantic("ICD-10-CM", {
1804
- text: "patient has trouble breathing at night and wakes up gasping",
1805
- version: "version",
1806
- limit: 1
1793
+ await client.construe.codes.lookup("ICD-10-CM", "E1165", {
1794
+ version: "version"
1807
1795
  });
1808
1796
 
1809
1797
  ```
@@ -1828,7 +1816,10 @@ await client.construe.searchSemantic("ICD-10-CM", {
1828
1816
  <dl>
1829
1817
  <dd>
1830
1818
 
1831
- **request:** `phenoml.construe.SearchSemanticRequest`
1819
+ **codeID:** `string`
1820
+
1821
+ The code identifier. ICD-10-CM codes are stored without their
1822
+ cosmetic dot (use "E1165", not "E11.65").
1832
1823
 
1833
1824
  </dd>
1834
1825
  </dl>
@@ -1836,7 +1827,15 @@ await client.construe.searchSemantic("ICD-10-CM", {
1836
1827
  <dl>
1837
1828
  <dd>
1838
1829
 
1839
- **requestOptions:** `ConstrueClient.RequestOptions`
1830
+ **request:** `phenoml.construe.LookupRequest`
1831
+
1832
+ </dd>
1833
+ </dl>
1834
+
1835
+ <dl>
1836
+ <dd>
1837
+
1838
+ **requestOptions:** `CodesClient.RequestOptions`
1840
1839
 
1841
1840
  </dd>
1842
1841
  </dl>
@@ -1848,7 +1847,7 @@ await client.construe.searchSemantic("ICD-10-CM", {
1848
1847
  </dl>
1849
1848
  </details>
1850
1849
 
1851
- <details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">submitFeedback</a>({ ...params }) -> phenoml.FeedbackResponse</code></summary>
1850
+ <details><summary><code>client.construe.codes.<a href="/src/api/resources/construe/resources/codes/client/Client.ts">searchSemantic</a>(codesystem, { ...params }) -> phenoml.SemanticSearchResponse</code></summary>
1852
1851
  <dl>
1853
1852
  <dd>
1854
1853
 
@@ -1860,8 +1859,25 @@ await client.construe.searchSemantic("ICD-10-CM", {
1860
1859
  <dl>
1861
1860
  <dd>
1862
1861
 
1863
- Submits user feedback on results from the Construe extraction endpoint.
1864
- Feedback includes the full extraction result received and the result the user expected.
1862
+ Performs semantic similarity search using vector embeddings.
1863
+
1864
+ **Availability**: This endpoint works for both **built-in and custom** code systems.
1865
+
1866
+ **When to use**: Best for natural language queries where you want to find conceptually
1867
+ related codes, even when different terminology is used. The search understands meaning,
1868
+ not just keywords.
1869
+
1870
+ **Examples**:
1871
+ - Query "trouble breathing at night" finds codes like "Sleep apnea", "Orthopnea",
1872
+ "Nocturnal dyspnea" — semantically related but no exact keyword matches
1873
+ - Query "heart problems" finds "Myocardial infarction", "Cardiac arrest", "Arrhythmia"
1874
+
1875
+ **Trade-offs**: Slower than text search (requires embedding generation), but finds
1876
+ conceptually similar results that keyword search would miss.
1877
+
1878
+ See also: `/search/text` for faster keyword-based lookup with typo tolerance.
1879
+
1880
+ Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
1865
1881
  </dd>
1866
1882
  </dl>
1867
1883
  </dd>
@@ -1876,31 +1892,10 @@ Feedback includes the full extraction result received and the result the user ex
1876
1892
  <dd>
1877
1893
 
1878
1894
  ```typescript
1879
- await client.construe.submitFeedback({
1880
- text: "Patient has type 2 diabetes with hyperglycemia",
1881
- received_result: {
1882
- system: {
1883
- name: "ICD-10-CM",
1884
- version: "2025"
1885
- },
1886
- codes: [{
1887
- code: "E11.9",
1888
- description: "Type 2 diabetes mellitus without complications",
1889
- valid: true
1890
- }]
1891
- },
1892
- expected_result: {
1893
- system: {
1894
- name: "ICD-10-CM",
1895
- version: "2025"
1896
- },
1897
- codes: [{
1898
- code: "E11.65",
1899
- description: "Type 2 diabetes mellitus with hyperglycemia",
1900
- valid: true
1901
- }]
1902
- },
1903
- detail: "Expected code E11.65 because the text mentions hyperglycemia"
1895
+ await client.construe.codes.searchSemantic("ICD-10-CM", {
1896
+ text: "patient has trouble breathing at night and wakes up gasping",
1897
+ version: "version",
1898
+ limit: 1
1904
1899
  });
1905
1900
 
1906
1901
  ```
@@ -1917,7 +1912,7 @@ await client.construe.submitFeedback({
1917
1912
  <dl>
1918
1913
  <dd>
1919
1914
 
1920
- **request:** `phenoml.construe.FeedbackRequest`
1915
+ **codesystem:** `string` — Code system name
1921
1916
 
1922
1917
  </dd>
1923
1918
  </dl>
@@ -1925,7 +1920,15 @@ await client.construe.submitFeedback({
1925
1920
  <dl>
1926
1921
  <dd>
1927
1922
 
1928
- **requestOptions:** `ConstrueClient.RequestOptions`
1923
+ **request:** `phenoml.construe.SearchSemanticRequest`
1924
+
1925
+ </dd>
1926
+ </dl>
1927
+
1928
+ <dl>
1929
+ <dd>
1930
+
1931
+ **requestOptions:** `CodesClient.RequestOptions`
1929
1932
 
1930
1933
  </dd>
1931
1934
  </dl>
@@ -1937,7 +1940,7 @@ await client.construe.submitFeedback({
1937
1940
  </dl>
1938
1941
  </details>
1939
1942
 
1940
- <details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">searchText</a>(codesystem, { ...params }) -> phenoml.TextSearchResponse</code></summary>
1943
+ <details><summary><code>client.construe.codes.<a href="/src/api/resources/construe/resources/codes/client/Client.ts">searchText</a>(codesystem, { ...params }) -> phenoml.TextSearchResponse</code></summary>
1941
1944
  <dl>
1942
1945
  <dd>
1943
1946
 
@@ -1987,7 +1990,7 @@ Usage of CPT is subject to AMA requirements: see PhenoML Terms of Service.
1987
1990
  <dd>
1988
1991
 
1989
1992
  ```typescript
1990
- await client.construe.searchText("ICD-10-CM", {
1993
+ await client.construe.codes.searchText("ICD-10-CM", {
1991
1994
  q: "E11.65",
1992
1995
  version: "version",
1993
1996
  limit: 1
@@ -2023,7 +2026,7 @@ await client.construe.searchText("ICD-10-CM", {
2023
2026
  <dl>
2024
2027
  <dd>
2025
2028
 
2026
- **requestOptions:** `ConstrueClient.RequestOptions`
2029
+ **requestOptions:** `CodesClient.RequestOptions`
2027
2030
 
2028
2031
  </dd>
2029
2032
  </dl>
@@ -2036,7 +2039,7 @@ await client.construe.searchText("ICD-10-CM", {
2036
2039
  </details>
2037
2040
 
2038
2041
  ## Fhir
2039
- <details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">search</a>(fhir_provider_id, fhir_path, { ...params }) -> phenoml.SearchResponse</code></summary>
2042
+ <details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">search</a>(fhir_provider_id, fhir_path, { ...params }) -> unknown</code></summary>
2040
2043
  <dl>
2041
2044
  <dd>
2042
2045
 
@@ -2048,7 +2051,19 @@ await client.construe.searchText("ICD-10-CM", {
2048
2051
  <dl>
2049
2052
  <dd>
2050
2053
 
2051
- Retrieves FHIR resources from the specified provider. Supports both individual resource retrieval and search operations based on the FHIR path and query parameters.
2054
+ Retrieves FHIR resources from the specified provider. Supports both individual resource retrieval (e.g. `Patient/123` via the path) and search operations.
2055
+
2056
+ FHIR search parameters are passed through to the upstream server verbatim as native query-string parameters; this proxy does not model, validate, or transform them. Append standard FHIR search parameters directly to the request URL. Supported parameters include:
2057
+ - Resource-specific search parameters (e.g. `name` for Patient, `status` for Observation)
2058
+ - Common search parameters (`_id`, `_lastUpdated`, `_tag`, `_profile`, `_security`, `_text`, `_content`, `_filter`)
2059
+ - Result parameters (`_count`, `_offset`, `_sort`, `_include`, `_revinclude`, `_summary`, `_elements`)
2060
+ - Search prefixes for dates, numbers, and quantities (`eq`, `ne`, `gt`, `ge`, `lt`, `le`, `sa`, `eb`, `ap`)
2061
+
2062
+ Examples:
2063
+ - `Patient?name=John%20Doe&_count=10&_sort=family`
2064
+ - `Observation?patient=Patient/123&date=ge2023-01-01&category=vital-signs&_sort=-date`
2065
+
2066
+ When using a generated SDK, supply these via the client's request-level query-parameter option (the SDK escape hatch) rather than a typed argument.
2052
2067
 
2053
2068
  The request is proxied to the configured FHIR server with appropriate authentication headers.
2054
2069
  </dd>
@@ -2130,7 +2145,7 @@ Examples:
2130
2145
  </dl>
2131
2146
  </details>
2132
2147
 
2133
- <details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">create</a>(fhir_provider_id, fhir_path, { ...params }) -> phenoml.FhirResource</code></summary>
2148
+ <details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">create</a>(fhir_provider_id, fhir_path, { ...params }) -> unknown</code></summary>
2134
2149
  <dl>
2135
2150
  <dd>
2136
2151
 
@@ -2163,7 +2178,7 @@ await client.fhir.create("550e8400-e29b-41d4-a716-446655440000", "Patient", {
2163
2178
  "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
2164
2179
  "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
2165
2180
  body: {
2166
- resourceType: "Patient"
2181
+ "resourceType": "Patient"
2167
2182
  }
2168
2183
  });
2169
2184
 
@@ -2227,7 +2242,7 @@ Examples:
2227
2242
  </dl>
2228
2243
  </details>
2229
2244
 
2230
- <details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">upsert</a>(fhir_provider_id, fhir_path, { ...params }) -> phenoml.FhirResource</code></summary>
2245
+ <details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">upsert</a>(fhir_provider_id, fhir_path, { ...params }) -> unknown</code></summary>
2231
2246
  <dl>
2232
2247
  <dd>
2233
2248
 
@@ -2260,8 +2275,8 @@ await client.fhir.upsert("550e8400-e29b-41d4-a716-446655440000", "Patient", {
2260
2275
  "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
2261
2276
  "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
2262
2277
  body: {
2263
- resourceType: "Patient",
2264
- id: "123"
2278
+ "resourceType": "Patient",
2279
+ "id": "123"
2265
2280
  }
2266
2281
  });
2267
2282
 
@@ -2325,7 +2340,7 @@ Examples:
2325
2340
  </dl>
2326
2341
  </details>
2327
2342
 
2328
- <details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">delete</a>(fhir_provider_id, fhir_path, { ...params }) -> Record&lt;string, unknown&gt;</code></summary>
2343
+ <details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">delete</a>(fhir_provider_id, fhir_path, { ...params }) -> unknown</code></summary>
2329
2344
  <dl>
2330
2345
  <dd>
2331
2346
 
@@ -2419,7 +2434,7 @@ Examples:
2419
2434
  </dl>
2420
2435
  </details>
2421
2436
 
2422
- <details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">patch</a>(fhir_provider_id, fhir_path, { ...params }) -> phenoml.FhirResource</code></summary>
2437
+ <details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">patch</a>(fhir_provider_id, fhir_path, { ...params }) -> unknown</code></summary>
2423
2438
  <dl>
2424
2439
  <dd>
2425
2440
 
@@ -2431,12 +2446,16 @@ Examples:
2431
2446
  <dl>
2432
2447
  <dd>
2433
2448
 
2434
- Partially updates a FHIR resource on the specified provider using JSON Patch operations as defined in RFC 6902.
2449
+ Partially updates a FHIR resource on the specified provider.
2435
2450
 
2436
- The request body should contain an array of JSON Patch operations. Each operation specifies:
2437
- - `op`: The operation type (add, remove, replace, move, copy, test)
2438
- - `path`: JSON Pointer to the target location in the resource
2439
- - `value`: The value to use (required for add, replace, and test operations)
2451
+ Two body formats are supported, selected by request content type:
2452
+ - `application/json-patch+json` an array of JSON Patch operations as defined in RFC 6902. Each operation specifies:
2453
+ - `op`: The operation type (add, remove, replace, move, copy, test)
2454
+ - `path`: JSON Pointer to the target location in the resource
2455
+ - `value`: The value to use (required for add, replace, and test operations)
2456
+ - `application/fhir+json` — a partial FHIR resource for merge-patch semantics.
2457
+
2458
+ **Note:** This proxy currently forwards the request body to the upstream FHIR server with `Content-Type: application/fhir+json` regardless of the declared request content type. JSON Patch (RFC 6902) therefore only succeeds against upstream servers that accept patch arrays under `application/fhir+json`; servers that strictly enforce patch media types may reject or misinterpret it. Support for either format ultimately depends on the upstream FHIR server.
2440
2459
 
2441
2460
  The request is proxied to the configured FHIR server with appropriate authentication headers.
2442
2461
  </dd>
@@ -2523,7 +2542,7 @@ Examples:
2523
2542
  </dl>
2524
2543
  </details>
2525
2544
 
2526
- <details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">executeBundle</a>(fhir_provider_id, { ...params }) -> phenoml.FhirBundle</code></summary>
2545
+ <details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">executeBundle</a>(fhir_provider_id, { ...params }) -> unknown</code></summary>
2527
2546
  <dl>
2528
2547
  <dd>
2529
2548
 
@@ -2558,9 +2577,15 @@ await client.fhir.executeBundle("550e8400-e29b-41d4-a716-446655440000", {
2558
2577
  "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
2559
2578
  "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
2560
2579
  body: {
2561
- resourceType: "Bundle",
2562
- entry: [{
2563
- resource: {
2580
+ "resourceType": "Bundle",
2581
+ "type": "transaction",
2582
+ "entry": [
2583
+ {
2584
+ "request": {
2585
+ "method": "POST",
2586
+ "url": "Patient"
2587
+ },
2588
+ "resource": {
2564
2589
  "resourceType": "Patient",
2565
2590
  "name": [
2566
2591
  {
@@ -2570,24 +2595,22 @@ await client.fhir.executeBundle("550e8400-e29b-41d4-a716-446655440000", {
2570
2595
  ]
2571
2596
  }
2572
2597
  ]
2573
- },
2574
- request: {
2575
- method: "POST",
2576
- url: "Patient"
2577
2598
  }
2578
- }, {
2579
- resource: {
2599
+ },
2600
+ {
2601
+ "request": {
2602
+ "method": "POST",
2603
+ "url": "Observation"
2604
+ },
2605
+ "resource": {
2580
2606
  "resourceType": "Observation",
2581
2607
  "status": "final",
2582
2608
  "subject": {
2583
2609
  "reference": "Patient/123"
2584
2610
  }
2585
- },
2586
- request: {
2587
- method: "POST",
2588
- url: "Observation"
2589
2611
  }
2590
- }]
2612
+ }
2613
+ ]
2591
2614
  }
2592
2615
  });
2593
2616
 
@@ -2902,7 +2925,8 @@ await client.fhirProvider.delete("fhir_provider_id");
2902
2925
  </dl>
2903
2926
  </details>
2904
2927
 
2905
- <details><summary><code>client.fhirProvider.<a href="/src/api/resources/fhirProvider/client/Client.ts">addAuthConfig</a>(fhir_provider_id, { ...params }) -> phenoml.FhirProviderResponse</code></summary>
2928
+ ## Auth Config
2929
+ <details><summary><code>client.fhirProvider.authConfig.<a href="/src/api/resources/fhirProvider/resources/authConfig/client/Client.ts">add</a>(fhir_provider_id, { ...params }) -> phenoml.FhirProviderResponse</code></summary>
2906
2930
  <dl>
2907
2931
  <dd>
2908
2932
 
@@ -2932,7 +2956,7 @@ Note: Sandbox providers cannot be modified.
2932
2956
  <dd>
2933
2957
 
2934
2958
  ```typescript
2935
- await client.fhirProvider.addAuthConfig("1716d214-de93-43a4-aa6b-a878d864e2ad", {
2959
+ await client.fhirProvider.authConfig.add("1716d214-de93-43a4-aa6b-a878d864e2ad", {
2936
2960
  auth_method: "client_secret",
2937
2961
  client_id: "your-client-id",
2938
2962
  client_secret: "your-client-secret"
@@ -2968,7 +2992,7 @@ await client.fhirProvider.addAuthConfig("1716d214-de93-43a4-aa6b-a878d864e2ad",
2968
2992
  <dl>
2969
2993
  <dd>
2970
2994
 
2971
- **requestOptions:** `FhirProviderClient.RequestOptions`
2995
+ **requestOptions:** `AuthConfigClient.RequestOptions`
2972
2996
 
2973
2997
  </dd>
2974
2998
  </dl>
@@ -2980,7 +3004,7 @@ await client.fhirProvider.addAuthConfig("1716d214-de93-43a4-aa6b-a878d864e2ad",
2980
3004
  </dl>
2981
3005
  </details>
2982
3006
 
2983
- <details><summary><code>client.fhirProvider.<a href="/src/api/resources/fhirProvider/client/Client.ts">setActiveAuthConfig</a>(fhir_provider_id, { ...params }) -> phenoml.FhirProviderResponse</code></summary>
3007
+ <details><summary><code>client.fhirProvider.authConfig.<a href="/src/api/resources/fhirProvider/resources/authConfig/client/Client.ts">setActive</a>(fhir_provider_id, { ...params }) -> phenoml.FhirProviderResponse</code></summary>
2984
3008
  <dl>
2985
3009
  <dd>
2986
3010
 
@@ -3013,7 +3037,7 @@ Note: Sandbox providers cannot be modified.
3013
3037
  <dd>
3014
3038
 
3015
3039
  ```typescript
3016
- await client.fhirProvider.setActiveAuthConfig("1716d214-de93-43a4-aa6b-a878d864e2ad", {
3040
+ await client.fhirProvider.authConfig.setActive("1716d214-de93-43a4-aa6b-a878d864e2ad", {
3017
3041
  auth_config_id: "auth-config-456"
3018
3042
  });
3019
3043
 
@@ -3047,7 +3071,7 @@ await client.fhirProvider.setActiveAuthConfig("1716d214-de93-43a4-aa6b-a878d864e
3047
3071
  <dl>
3048
3072
  <dd>
3049
3073
 
3050
- **requestOptions:** `FhirProviderClient.RequestOptions`
3074
+ **requestOptions:** `AuthConfigClient.RequestOptions`
3051
3075
 
3052
3076
  </dd>
3053
3077
  </dl>
@@ -3059,7 +3083,7 @@ await client.fhirProvider.setActiveAuthConfig("1716d214-de93-43a4-aa6b-a878d864e
3059
3083
  </dl>
3060
3084
  </details>
3061
3085
 
3062
- <details><summary><code>client.fhirProvider.<a href="/src/api/resources/fhirProvider/client/Client.ts">removeAuthConfig</a>(fhir_provider_id, { ...params }) -> phenoml.RemoveAuthConfigResponse</code></summary>
3086
+ <details><summary><code>client.fhirProvider.authConfig.<a href="/src/api/resources/fhirProvider/resources/authConfig/client/Client.ts">remove</a>(fhir_provider_id, { ...params }) -> phenoml.RemoveResponse</code></summary>
3063
3087
  <dl>
3064
3088
  <dd>
3065
3089
 
@@ -3089,7 +3113,7 @@ Note: Sandbox providers cannot be modified.
3089
3113
  <dd>
3090
3114
 
3091
3115
  ```typescript
3092
- await client.fhirProvider.removeAuthConfig("1716d214-de93-43a4-aa6b-a878d864e2ad", {
3116
+ await client.fhirProvider.authConfig.remove("1716d214-de93-43a4-aa6b-a878d864e2ad", {
3093
3117
  auth_config_id: "auth-config-456"
3094
3118
  });
3095
3119
 
@@ -3123,7 +3147,7 @@ await client.fhirProvider.removeAuthConfig("1716d214-de93-43a4-aa6b-a878d864e2ad
3123
3147
  <dl>
3124
3148
  <dd>
3125
3149
 
3126
- **requestOptions:** `FhirProviderClient.RequestOptions`
3150
+ **requestOptions:** `AuthConfigClient.RequestOptions`
3127
3151
 
3128
3152
  </dd>
3129
3153
  </dl>
@@ -3664,8 +3688,8 @@ await client.summary.create({
3664
3688
  </dl>
3665
3689
  </details>
3666
3690
 
3667
- ## Summary Templates
3668
- <details><summary><code>client.summary.templates.<a href="/src/api/resources/summary/resources/templates/client/Client.ts">list</a>() -> phenoml.TemplatesListResponse</code></summary>
3691
+ ## Templates
3692
+ <details><summary><code>client.summary.templates.<a href="/src/api/resources/summary/resources/templates/client/Client.ts">list</a>() -> phenoml.ListResponse</code></summary>
3669
3693
  <dl>
3670
3694
  <dd>
3671
3695
 
@@ -3788,7 +3812,7 @@ await client.summary.templates.create({
3788
3812
  </dl>
3789
3813
  </details>
3790
3814
 
3791
- <details><summary><code>client.summary.templates.<a href="/src/api/resources/summary/resources/templates/client/Client.ts">get</a>(id) -> phenoml.TemplatesGetResponse</code></summary>
3815
+ <details><summary><code>client.summary.templates.<a href="/src/api/resources/summary/resources/templates/client/Client.ts">get</a>(id) -> phenoml.GetResponse</code></summary>
3792
3816
  <dl>
3793
3817
  <dd>
3794
3818
 
@@ -3851,7 +3875,7 @@ await client.summary.templates.get("id");
3851
3875
  </dl>
3852
3876
  </details>
3853
3877
 
3854
- <details><summary><code>client.summary.templates.<a href="/src/api/resources/summary/resources/templates/client/Client.ts">update</a>(id, { ...params }) -> phenoml.TemplatesUpdateResponse</code></summary>
3878
+ <details><summary><code>client.summary.templates.<a href="/src/api/resources/summary/resources/templates/client/Client.ts">update</a>(id, { ...params }) -> phenoml.UpdateResponse</code></summary>
3855
3879
  <dl>
3856
3880
  <dd>
3857
3881
 
@@ -3927,7 +3951,7 @@ await client.summary.templates.update("id", {
3927
3951
  </dl>
3928
3952
  </details>
3929
3953
 
3930
- <details><summary><code>client.summary.templates.<a href="/src/api/resources/summary/resources/templates/client/Client.ts">delete</a>(id) -> phenoml.TemplatesDeleteResponse</code></summary>
3954
+ <details><summary><code>client.summary.templates.<a href="/src/api/resources/summary/resources/templates/client/Client.ts">delete</a>(id) -> phenoml.DeleteResponse</code></summary>
3931
3955
  <dl>
3932
3956
  <dd>
3933
3957
 
@@ -4270,8 +4294,8 @@ await client.tools.analyzeCohort({
4270
4294
  </dl>
4271
4295
  </details>
4272
4296
 
4273
- ## Tools McpServer
4274
- <details><summary><code>client.tools.mcpServer.<a href="/src/api/resources/tools/resources/mcpServer/client/Client.ts">create</a>({ ...params }) -> phenoml.McpServerResponse</code></summary>
4297
+ ## MCP Servers
4298
+ <details><summary><code>client.tools.mcpServers.<a href="/src/api/resources/tools/resources/mcpServers/client/Client.ts">create</a>({ ...params }) -> phenoml.McpServerResponse</code></summary>
4275
4299
  <dl>
4276
4300
  <dd>
4277
4301
 
@@ -4298,7 +4322,7 @@ Creates a new MCP server
4298
4322
  <dd>
4299
4323
 
4300
4324
  ```typescript
4301
- await client.tools.mcpServer.create({
4325
+ await client.tools.mcpServers.create({
4302
4326
  name: "My MCP Server",
4303
4327
  mcp_server_url: "https://mcp.example.com"
4304
4328
  });
@@ -4325,7 +4349,7 @@ await client.tools.mcpServer.create({
4325
4349
  <dl>
4326
4350
  <dd>
4327
4351
 
4328
- **requestOptions:** `McpServerClient.RequestOptions`
4352
+ **requestOptions:** `McpServersClient.RequestOptions`
4329
4353
 
4330
4354
  </dd>
4331
4355
  </dl>
@@ -4337,7 +4361,7 @@ await client.tools.mcpServer.create({
4337
4361
  </dl>
4338
4362
  </details>
4339
4363
 
4340
- <details><summary><code>client.tools.mcpServer.<a href="/src/api/resources/tools/resources/mcpServer/client/Client.ts">list</a>() -> phenoml.McpServerResponse</code></summary>
4364
+ <details><summary><code>client.tools.mcpServers.<a href="/src/api/resources/tools/resources/mcpServers/client/Client.ts">list</a>() -> phenoml.McpServerResponse</code></summary>
4341
4365
  <dl>
4342
4366
  <dd>
4343
4367
 
@@ -4364,7 +4388,7 @@ Lists all MCP servers for a specific user
4364
4388
  <dd>
4365
4389
 
4366
4390
  ```typescript
4367
- await client.tools.mcpServer.list();
4391
+ await client.tools.mcpServers.list();
4368
4392
 
4369
4393
  ```
4370
4394
  </dd>
@@ -4380,7 +4404,7 @@ await client.tools.mcpServer.list();
4380
4404
  <dl>
4381
4405
  <dd>
4382
4406
 
4383
- **requestOptions:** `McpServerClient.RequestOptions`
4407
+ **requestOptions:** `McpServersClient.RequestOptions`
4384
4408
 
4385
4409
  </dd>
4386
4410
  </dl>
@@ -4392,7 +4416,7 @@ await client.tools.mcpServer.list();
4392
4416
  </dl>
4393
4417
  </details>
4394
4418
 
4395
- <details><summary><code>client.tools.mcpServer.<a href="/src/api/resources/tools/resources/mcpServer/client/Client.ts">get</a>(mcp_server_id) -> phenoml.McpServerResponse</code></summary>
4419
+ <details><summary><code>client.tools.mcpServers.<a href="/src/api/resources/tools/resources/mcpServers/client/Client.ts">get</a>(mcp_server_id) -> phenoml.McpServerResponse</code></summary>
4396
4420
  <dl>
4397
4421
  <dd>
4398
4422
 
@@ -4419,7 +4443,7 @@ Gets a MCP server by ID
4419
4443
  <dd>
4420
4444
 
4421
4445
  ```typescript
4422
- await client.tools.mcpServer.get("mcp_server_id");
4446
+ await client.tools.mcpServers.get("mcp_server_id");
4423
4447
 
4424
4448
  ```
4425
4449
  </dd>
@@ -4443,7 +4467,7 @@ await client.tools.mcpServer.get("mcp_server_id");
4443
4467
  <dl>
4444
4468
  <dd>
4445
4469
 
4446
- **requestOptions:** `McpServerClient.RequestOptions`
4470
+ **requestOptions:** `McpServersClient.RequestOptions`
4447
4471
 
4448
4472
  </dd>
4449
4473
  </dl>
@@ -4455,7 +4479,7 @@ await client.tools.mcpServer.get("mcp_server_id");
4455
4479
  </dl>
4456
4480
  </details>
4457
4481
 
4458
- <details><summary><code>client.tools.mcpServer.<a href="/src/api/resources/tools/resources/mcpServer/client/Client.ts">delete</a>(mcp_server_id) -> phenoml.McpServerResponse</code></summary>
4482
+ <details><summary><code>client.tools.mcpServers.<a href="/src/api/resources/tools/resources/mcpServers/client/Client.ts">delete</a>(mcp_server_id) -> phenoml.McpServerResponse</code></summary>
4459
4483
  <dl>
4460
4484
  <dd>
4461
4485
 
@@ -4482,7 +4506,7 @@ Deletes a MCP server by ID
4482
4506
  <dd>
4483
4507
 
4484
4508
  ```typescript
4485
- await client.tools.mcpServer.delete("mcp_server_id");
4509
+ await client.tools.mcpServers.delete("mcp_server_id");
4486
4510
 
4487
4511
  ```
4488
4512
  </dd>
@@ -4506,7 +4530,7 @@ await client.tools.mcpServer.delete("mcp_server_id");
4506
4530
  <dl>
4507
4531
  <dd>
4508
4532
 
4509
- **requestOptions:** `McpServerClient.RequestOptions`
4533
+ **requestOptions:** `McpServersClient.RequestOptions`
4510
4534
 
4511
4535
  </dd>
4512
4536
  </dl>
@@ -4518,8 +4542,8 @@ await client.tools.mcpServer.delete("mcp_server_id");
4518
4542
  </dl>
4519
4543
  </details>
4520
4544
 
4521
- ## Tools McpServer Tools
4522
- <details><summary><code>client.tools.mcpServer.tools.<a href="/src/api/resources/tools/resources/mcpServer/resources/tools/client/Client.ts">list</a>(mcp_server_id) -> phenoml.McpServerToolResponse</code></summary>
4545
+ ## Tools McpTools
4546
+ <details><summary><code>client.tools.mcpTools.<a href="/src/api/resources/tools/resources/mcpTools/client/Client.ts">list</a>(mcp_server_id) -> phenoml.McpServerToolResponse</code></summary>
4523
4547
  <dl>
4524
4548
  <dd>
4525
4549
 
@@ -4546,7 +4570,7 @@ Lists all MCP server tools for a specific MCP server
4546
4570
  <dd>
4547
4571
 
4548
4572
  ```typescript
4549
- await client.tools.mcpServer.tools.list("mcp_server_id");
4573
+ await client.tools.mcpTools.list("mcp_server_id");
4550
4574
 
4551
4575
  ```
4552
4576
  </dd>
@@ -4570,7 +4594,7 @@ await client.tools.mcpServer.tools.list("mcp_server_id");
4570
4594
  <dl>
4571
4595
  <dd>
4572
4596
 
4573
- **requestOptions:** `ToolsClient.RequestOptions`
4597
+ **requestOptions:** `McpToolsClient.RequestOptions`
4574
4598
 
4575
4599
  </dd>
4576
4600
  </dl>
@@ -4582,7 +4606,7 @@ await client.tools.mcpServer.tools.list("mcp_server_id");
4582
4606
  </dl>
4583
4607
  </details>
4584
4608
 
4585
- <details><summary><code>client.tools.mcpServer.tools.<a href="/src/api/resources/tools/resources/mcpServer/resources/tools/client/Client.ts">get</a>(mcp_server_tool_id) -> phenoml.McpServerToolResponse</code></summary>
4609
+ <details><summary><code>client.tools.mcpTools.<a href="/src/api/resources/tools/resources/mcpTools/client/Client.ts">get</a>(mcp_server_tool_id) -> phenoml.McpServerToolResponse</code></summary>
4586
4610
  <dl>
4587
4611
  <dd>
4588
4612
 
@@ -4609,7 +4633,7 @@ Gets a MCP server tool by ID
4609
4633
  <dd>
4610
4634
 
4611
4635
  ```typescript
4612
- await client.tools.mcpServer.tools.get("mcp_server_tool_id");
4636
+ await client.tools.mcpTools.get("mcp_server_tool_id");
4613
4637
 
4614
4638
  ```
4615
4639
  </dd>
@@ -4633,7 +4657,7 @@ await client.tools.mcpServer.tools.get("mcp_server_tool_id");
4633
4657
  <dl>
4634
4658
  <dd>
4635
4659
 
4636
- **requestOptions:** `ToolsClient.RequestOptions`
4660
+ **requestOptions:** `McpToolsClient.RequestOptions`
4637
4661
 
4638
4662
  </dd>
4639
4663
  </dl>
@@ -4645,7 +4669,7 @@ await client.tools.mcpServer.tools.get("mcp_server_tool_id");
4645
4669
  </dl>
4646
4670
  </details>
4647
4671
 
4648
- <details><summary><code>client.tools.mcpServer.tools.<a href="/src/api/resources/tools/resources/mcpServer/resources/tools/client/Client.ts">delete</a>(mcp_server_tool_id) -> phenoml.McpServerToolResponse</code></summary>
4672
+ <details><summary><code>client.tools.mcpTools.<a href="/src/api/resources/tools/resources/mcpTools/client/Client.ts">delete</a>(mcp_server_tool_id) -> phenoml.McpServerToolResponse</code></summary>
4649
4673
  <dl>
4650
4674
  <dd>
4651
4675
 
@@ -4672,7 +4696,7 @@ Deletes a MCP server tool by ID
4672
4696
  <dd>
4673
4697
 
4674
4698
  ```typescript
4675
- await client.tools.mcpServer.tools.delete("mcp_server_tool_id");
4699
+ await client.tools.mcpTools.delete("mcp_server_tool_id");
4676
4700
 
4677
4701
  ```
4678
4702
  </dd>
@@ -4696,7 +4720,7 @@ await client.tools.mcpServer.tools.delete("mcp_server_tool_id");
4696
4720
  <dl>
4697
4721
  <dd>
4698
4722
 
4699
- **requestOptions:** `ToolsClient.RequestOptions`
4723
+ **requestOptions:** `McpToolsClient.RequestOptions`
4700
4724
 
4701
4725
  </dd>
4702
4726
  </dl>