phenoml 0.0.2

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 (764) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +185 -0
  3. package/dist/cjs/Client.d.ts +50 -0
  4. package/dist/cjs/Client.js +84 -0
  5. package/dist/cjs/WrapperClient.d.ts +21 -0
  6. package/dist/cjs/WrapperClient.js +111 -0
  7. package/dist/cjs/api/index.d.ts +1 -0
  8. package/dist/cjs/api/index.js +17 -0
  9. package/dist/cjs/api/resources/agent/client/Client.d.ts +187 -0
  10. package/dist/cjs/api/resources/agent/client/Client.js +670 -0
  11. package/dist/cjs/api/resources/agent/client/index.d.ts +2 -0
  12. package/dist/cjs/api/resources/agent/client/index.js +17 -0
  13. package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.d.ts +23 -0
  14. package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.js +5 -0
  15. package/dist/cjs/api/resources/agent/client/requests/AgentCreateRequest.d.ts +29 -0
  16. package/dist/cjs/api/resources/agent/client/requests/AgentCreateRequest.js +5 -0
  17. package/dist/cjs/api/resources/agent/client/requests/AgentGetChatMessagesRequest.d.ts +20 -0
  18. package/dist/cjs/api/resources/agent/client/requests/AgentGetChatMessagesRequest.js +5 -0
  19. package/dist/cjs/api/resources/agent/client/requests/AgentListRequest.d.ts +13 -0
  20. package/dist/cjs/api/resources/agent/client/requests/AgentListRequest.js +5 -0
  21. package/dist/cjs/api/resources/agent/client/requests/AgentUpdateRequest.d.ts +25 -0
  22. package/dist/cjs/api/resources/agent/client/requests/AgentUpdateRequest.js +5 -0
  23. package/dist/cjs/api/resources/agent/client/requests/index.d.ts +5 -0
  24. package/dist/cjs/api/resources/agent/client/requests/index.js +2 -0
  25. package/dist/cjs/api/resources/agent/errors/BadRequestError.d.ts +8 -0
  26. package/dist/cjs/api/resources/agent/errors/BadRequestError.js +52 -0
  27. package/dist/cjs/api/resources/agent/errors/ForbiddenError.d.ts +8 -0
  28. package/dist/cjs/api/resources/agent/errors/ForbiddenError.js +52 -0
  29. package/dist/cjs/api/resources/agent/errors/InternalServerError.d.ts +8 -0
  30. package/dist/cjs/api/resources/agent/errors/InternalServerError.js +52 -0
  31. package/dist/cjs/api/resources/agent/errors/NotFoundError.d.ts +8 -0
  32. package/dist/cjs/api/resources/agent/errors/NotFoundError.js +52 -0
  33. package/dist/cjs/api/resources/agent/errors/UnauthorizedError.d.ts +8 -0
  34. package/dist/cjs/api/resources/agent/errors/UnauthorizedError.js +52 -0
  35. package/dist/cjs/api/resources/agent/errors/index.d.ts +5 -0
  36. package/dist/cjs/api/resources/agent/errors/index.js +21 -0
  37. package/dist/cjs/api/resources/agent/index.d.ts +4 -0
  38. package/dist/cjs/api/resources/agent/index.js +20 -0
  39. package/dist/cjs/api/resources/agent/resources/index.d.ts +3 -0
  40. package/dist/cjs/api/resources/agent/resources/index.js +42 -0
  41. package/dist/cjs/api/resources/agent/resources/prompts/client/Client.d.ts +161 -0
  42. package/dist/cjs/api/resources/agent/resources/prompts/client/Client.js +564 -0
  43. package/dist/cjs/api/resources/agent/resources/prompts/client/index.d.ts +2 -0
  44. package/dist/cjs/api/resources/agent/resources/prompts/client/index.js +17 -0
  45. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.d.ts +25 -0
  46. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.js +5 -0
  47. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.d.ts +21 -0
  48. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.js +5 -0
  49. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/index.d.ts +2 -0
  50. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/index.js +2 -0
  51. package/dist/cjs/api/resources/agent/resources/prompts/index.d.ts +2 -0
  52. package/dist/cjs/api/resources/agent/resources/prompts/index.js +18 -0
  53. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.d.ts +7 -0
  54. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.js +5 -0
  55. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsListResponse.d.ts +9 -0
  56. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsListResponse.js +5 -0
  57. package/dist/cjs/api/resources/agent/resources/prompts/types/index.d.ts +2 -0
  58. package/dist/cjs/api/resources/agent/resources/prompts/types/index.js +18 -0
  59. package/dist/cjs/api/resources/agent/types/AgentChatResponse.d.ts +12 -0
  60. package/dist/cjs/api/resources/agent/types/AgentChatResponse.js +5 -0
  61. package/dist/cjs/api/resources/agent/types/AgentDeleteResponse.d.ts +7 -0
  62. package/dist/cjs/api/resources/agent/types/AgentDeleteResponse.js +5 -0
  63. package/dist/cjs/api/resources/agent/types/AgentFhirConfig.d.ts +12 -0
  64. package/dist/cjs/api/resources/agent/types/AgentFhirConfig.js +5 -0
  65. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.ts +8 -0
  66. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestOrder.js +10 -0
  67. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesResponse.d.ts +9 -0
  68. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesResponse.js +5 -0
  69. package/dist/cjs/api/resources/agent/types/AgentListResponse.d.ts +9 -0
  70. package/dist/cjs/api/resources/agent/types/AgentListResponse.js +5 -0
  71. package/dist/cjs/api/resources/agent/types/AgentPromptsResponse.d.ts +9 -0
  72. package/dist/cjs/api/resources/agent/types/AgentPromptsResponse.js +5 -0
  73. package/dist/cjs/api/resources/agent/types/AgentProvider.d.ts +11 -0
  74. package/dist/cjs/api/resources/agent/types/AgentProvider.js +5 -0
  75. package/dist/cjs/api/resources/agent/types/AgentResponse.d.ts +9 -0
  76. package/dist/cjs/api/resources/agent/types/AgentResponse.js +5 -0
  77. package/dist/cjs/api/resources/agent/types/AgentTemplate.d.ts +23 -0
  78. package/dist/cjs/api/resources/agent/types/AgentTemplate.js +5 -0
  79. package/dist/cjs/api/resources/agent/types/ChatFhirClientConfig.d.ts +12 -0
  80. package/dist/cjs/api/resources/agent/types/ChatFhirClientConfig.js +5 -0
  81. package/dist/cjs/api/resources/agent/types/ChatMessageTemplate.d.ts +27 -0
  82. package/dist/cjs/api/resources/agent/types/ChatMessageTemplate.js +5 -0
  83. package/dist/cjs/api/resources/agent/types/ChatSessionTemplate.d.ts +25 -0
  84. package/dist/cjs/api/resources/agent/types/ChatSessionTemplate.js +5 -0
  85. package/dist/cjs/api/resources/agent/types/JsonPatch.d.ts +8 -0
  86. package/dist/cjs/api/resources/agent/types/JsonPatch.js +5 -0
  87. package/dist/cjs/api/resources/agent/types/JsonPatchOperation.d.ts +26 -0
  88. package/dist/cjs/api/resources/agent/types/JsonPatchOperation.js +17 -0
  89. package/dist/cjs/api/resources/agent/types/PromptTemplate.d.ts +19 -0
  90. package/dist/cjs/api/resources/agent/types/PromptTemplate.js +5 -0
  91. package/dist/cjs/api/resources/agent/types/ProviderType.d.ts +13 -0
  92. package/dist/cjs/api/resources/agent/types/ProviderType.js +12 -0
  93. package/dist/cjs/api/resources/agent/types/SuccessResponse.d.ts +7 -0
  94. package/dist/cjs/api/resources/agent/types/SuccessResponse.js +5 -0
  95. package/dist/cjs/api/resources/agent/types/index.d.ts +18 -0
  96. package/dist/cjs/api/resources/agent/types/index.js +34 -0
  97. package/dist/cjs/api/resources/authtoken/client/Client.d.ts +23 -0
  98. package/dist/cjs/api/resources/authtoken/client/Client.js +17 -0
  99. package/dist/cjs/api/resources/authtoken/client/index.d.ts +1 -0
  100. package/dist/cjs/api/resources/authtoken/client/index.js +2 -0
  101. package/dist/cjs/api/resources/authtoken/errors/BadRequestError.d.ts +8 -0
  102. package/dist/cjs/api/resources/authtoken/errors/BadRequestError.js +52 -0
  103. package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.d.ts +8 -0
  104. package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.js +52 -0
  105. package/dist/cjs/api/resources/authtoken/errors/index.d.ts +2 -0
  106. package/dist/cjs/api/resources/authtoken/errors/index.js +18 -0
  107. package/dist/cjs/api/resources/authtoken/index.d.ts +4 -0
  108. package/dist/cjs/api/resources/authtoken/index.js +20 -0
  109. package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.d.ts +50 -0
  110. package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.js +145 -0
  111. package/dist/cjs/api/resources/authtoken/resources/auth/client/index.d.ts +2 -0
  112. package/dist/cjs/api/resources/authtoken/resources/auth/client/index.js +17 -0
  113. package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.d.ts +16 -0
  114. package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.js +5 -0
  115. package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/index.d.ts +1 -0
  116. package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/index.js +2 -0
  117. package/dist/cjs/api/resources/authtoken/resources/auth/index.d.ts +2 -0
  118. package/dist/cjs/api/resources/authtoken/resources/auth/index.js +18 -0
  119. package/dist/cjs/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.d.ts +7 -0
  120. package/dist/cjs/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.js +5 -0
  121. package/dist/cjs/api/resources/authtoken/resources/auth/types/index.d.ts +1 -0
  122. package/dist/cjs/api/resources/authtoken/resources/auth/types/index.js +17 -0
  123. package/dist/cjs/api/resources/authtoken/resources/index.d.ts +3 -0
  124. package/dist/cjs/api/resources/authtoken/resources/index.js +42 -0
  125. package/dist/cjs/api/resources/authtoken/types/BadRequestErrorBody.d.ts +8 -0
  126. package/dist/cjs/api/resources/authtoken/types/BadRequestErrorBody.js +5 -0
  127. package/dist/cjs/api/resources/authtoken/types/UnauthorizedErrorBody.d.ts +8 -0
  128. package/dist/cjs/api/resources/authtoken/types/UnauthorizedErrorBody.js +5 -0
  129. package/dist/cjs/api/resources/authtoken/types/index.d.ts +2 -0
  130. package/dist/cjs/api/resources/authtoken/types/index.js +18 -0
  131. package/dist/cjs/api/resources/cohort/client/Client.d.ts +51 -0
  132. package/dist/cjs/api/resources/cohort/client/Client.js +134 -0
  133. package/dist/cjs/api/resources/cohort/client/index.d.ts +2 -0
  134. package/dist/cjs/api/resources/cohort/client/index.js +17 -0
  135. package/dist/cjs/api/resources/cohort/client/requests/CohortRequest.d.ts +13 -0
  136. package/dist/cjs/api/resources/cohort/client/requests/CohortRequest.js +5 -0
  137. package/dist/cjs/api/resources/cohort/client/requests/index.d.ts +1 -0
  138. package/dist/cjs/api/resources/cohort/client/requests/index.js +2 -0
  139. package/dist/cjs/api/resources/cohort/errors/BadRequestError.d.ts +8 -0
  140. package/dist/cjs/api/resources/cohort/errors/BadRequestError.js +52 -0
  141. package/dist/cjs/api/resources/cohort/errors/InternalServerError.d.ts +8 -0
  142. package/dist/cjs/api/resources/cohort/errors/InternalServerError.js +52 -0
  143. package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.d.ts +8 -0
  144. package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.js +52 -0
  145. package/dist/cjs/api/resources/cohort/errors/index.d.ts +3 -0
  146. package/dist/cjs/api/resources/cohort/errors/index.js +19 -0
  147. package/dist/cjs/api/resources/cohort/index.d.ts +3 -0
  148. package/dist/cjs/api/resources/cohort/index.js +19 -0
  149. package/dist/cjs/api/resources/cohort/types/CohortResponse.d.ts +12 -0
  150. package/dist/cjs/api/resources/cohort/types/CohortResponse.js +5 -0
  151. package/dist/cjs/api/resources/cohort/types/SearchConcept.d.ts +13 -0
  152. package/dist/cjs/api/resources/cohort/types/SearchConcept.js +5 -0
  153. package/dist/cjs/api/resources/cohort/types/index.d.ts +2 -0
  154. package/dist/cjs/api/resources/cohort/types/index.js +18 -0
  155. package/dist/cjs/api/resources/construe/client/Client.d.ts +94 -0
  156. package/dist/cjs/api/resources/construe/client/Client.js +295 -0
  157. package/dist/cjs/api/resources/construe/client/index.d.ts +2 -0
  158. package/dist/cjs/api/resources/construe/client/index.js +17 -0
  159. package/dist/cjs/api/resources/construe/client/requests/ConstrueCohortRequest.d.ts +26 -0
  160. package/dist/cjs/api/resources/construe/client/requests/ConstrueCohortRequest.js +5 -0
  161. package/dist/cjs/api/resources/construe/client/requests/ExtractRequest.d.ts +16 -0
  162. package/dist/cjs/api/resources/construe/client/requests/ExtractRequest.js +5 -0
  163. package/dist/cjs/api/resources/construe/client/requests/UploadRequest.d.ts +40 -0
  164. package/dist/cjs/api/resources/construe/client/requests/UploadRequest.js +13 -0
  165. package/dist/cjs/api/resources/construe/client/requests/index.d.ts +3 -0
  166. package/dist/cjs/api/resources/construe/client/requests/index.js +2 -0
  167. package/dist/cjs/api/resources/construe/errors/BadRequestError.d.ts +8 -0
  168. package/dist/cjs/api/resources/construe/errors/BadRequestError.js +52 -0
  169. package/dist/cjs/api/resources/construe/errors/ConflictError.d.ts +8 -0
  170. package/dist/cjs/api/resources/construe/errors/ConflictError.js +52 -0
  171. package/dist/cjs/api/resources/construe/errors/FailedDependencyError.d.ts +8 -0
  172. package/dist/cjs/api/resources/construe/errors/FailedDependencyError.js +52 -0
  173. package/dist/cjs/api/resources/construe/errors/InternalServerError.d.ts +8 -0
  174. package/dist/cjs/api/resources/construe/errors/InternalServerError.js +52 -0
  175. package/dist/cjs/api/resources/construe/errors/UnauthorizedError.d.ts +8 -0
  176. package/dist/cjs/api/resources/construe/errors/UnauthorizedError.js +52 -0
  177. package/dist/cjs/api/resources/construe/errors/index.d.ts +5 -0
  178. package/dist/cjs/api/resources/construe/errors/index.js +21 -0
  179. package/dist/cjs/api/resources/construe/index.d.ts +3 -0
  180. package/dist/cjs/api/resources/construe/index.js +19 -0
  181. package/dist/cjs/api/resources/construe/types/BadRequestErrorBody.d.ts +9 -0
  182. package/dist/cjs/api/resources/construe/types/BadRequestErrorBody.js +5 -0
  183. package/dist/cjs/api/resources/construe/types/ConstrueCohortResponse.d.ts +49 -0
  184. package/dist/cjs/api/resources/construe/types/ConstrueCohortResponse.js +5 -0
  185. package/dist/cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.ts +6 -0
  186. package/dist/cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.js +5 -0
  187. package/dist/cjs/api/resources/construe/types/ExtractCodesResult.d.ts +8 -0
  188. package/dist/cjs/api/resources/construe/types/ExtractCodesResult.js +5 -0
  189. package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.d.ts +18 -0
  190. package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.js +15 -0
  191. package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.d.ts +21 -0
  192. package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.js +5 -0
  193. package/dist/cjs/api/resources/construe/types/ExtractedCodeResult.d.ts +13 -0
  194. package/dist/cjs/api/resources/construe/types/ExtractedCodeResult.js +5 -0
  195. package/dist/cjs/api/resources/construe/types/InternalServerErrorBody.d.ts +9 -0
  196. package/dist/cjs/api/resources/construe/types/InternalServerErrorBody.js +5 -0
  197. package/dist/cjs/api/resources/construe/types/UnauthorizedErrorBody.d.ts +9 -0
  198. package/dist/cjs/api/resources/construe/types/UnauthorizedErrorBody.js +5 -0
  199. package/dist/cjs/api/resources/construe/types/index.d.ts +9 -0
  200. package/dist/cjs/api/resources/construe/types/index.js +25 -0
  201. package/dist/cjs/api/resources/index.d.ts +6 -0
  202. package/dist/cjs/api/resources/index.js +42 -0
  203. package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +111 -0
  204. package/dist/cjs/api/resources/lang2Fhir/client/Client.js +360 -0
  205. package/dist/cjs/api/resources/lang2Fhir/client/index.d.ts +2 -0
  206. package/dist/cjs/api/resources/lang2Fhir/client/index.js +17 -0
  207. package/dist/cjs/api/resources/lang2Fhir/client/requests/CreateRequest.d.ts +43 -0
  208. package/dist/cjs/api/resources/lang2Fhir/client/requests/CreateRequest.js +27 -0
  209. package/dist/cjs/api/resources/lang2Fhir/client/requests/DocumentRequest.d.ts +42 -0
  210. package/dist/cjs/api/resources/lang2Fhir/client/requests/DocumentRequest.js +19 -0
  211. package/dist/cjs/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.d.ts +19 -0
  212. package/dist/cjs/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.js +5 -0
  213. package/dist/cjs/api/resources/lang2Fhir/client/requests/SearchRequest.d.ts +13 -0
  214. package/dist/cjs/api/resources/lang2Fhir/client/requests/SearchRequest.js +5 -0
  215. package/dist/cjs/api/resources/lang2Fhir/client/requests/index.d.ts +4 -0
  216. package/dist/cjs/api/resources/lang2Fhir/client/requests/index.js +2 -0
  217. package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.d.ts +8 -0
  218. package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.js +52 -0
  219. package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.d.ts +8 -0
  220. package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.js +52 -0
  221. package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.d.ts +8 -0
  222. package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.js +52 -0
  223. package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.d.ts +8 -0
  224. package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.js +52 -0
  225. package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.d.ts +8 -0
  226. package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.js +52 -0
  227. package/dist/cjs/api/resources/lang2Fhir/errors/index.d.ts +5 -0
  228. package/dist/cjs/api/resources/lang2Fhir/errors/index.js +21 -0
  229. package/dist/cjs/api/resources/lang2Fhir/index.d.ts +3 -0
  230. package/dist/cjs/api/resources/lang2Fhir/index.js +19 -0
  231. package/dist/cjs/api/resources/lang2Fhir/types/FhirResource.d.ts +7 -0
  232. package/dist/cjs/api/resources/lang2Fhir/types/FhirResource.js +5 -0
  233. package/dist/cjs/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.ts +10 -0
  234. package/dist/cjs/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.js +5 -0
  235. package/dist/cjs/api/resources/lang2Fhir/types/SearchResponse.d.ts +9 -0
  236. package/dist/cjs/api/resources/lang2Fhir/types/SearchResponse.js +5 -0
  237. package/dist/cjs/api/resources/lang2Fhir/types/index.d.ts +3 -0
  238. package/dist/cjs/api/resources/lang2Fhir/types/index.js +19 -0
  239. package/dist/cjs/api/resources/tools/client/Client.d.ts +95 -0
  240. package/dist/cjs/api/resources/tools/client/Client.js +302 -0
  241. package/dist/cjs/api/resources/tools/client/index.d.ts +2 -0
  242. package/dist/cjs/api/resources/tools/client/index.js +17 -0
  243. package/dist/cjs/api/resources/tools/client/requests/CohortRequest.d.ts +30 -0
  244. package/dist/cjs/api/resources/tools/client/requests/CohortRequest.js +15 -0
  245. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.ts +54 -0
  246. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.js +33 -0
  247. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.ts +35 -0
  248. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.js +15 -0
  249. package/dist/cjs/api/resources/tools/client/requests/index.d.ts +3 -0
  250. package/dist/cjs/api/resources/tools/client/requests/index.js +2 -0
  251. package/dist/cjs/api/resources/tools/errors/BadRequestError.d.ts +8 -0
  252. package/dist/cjs/api/resources/tools/errors/BadRequestError.js +52 -0
  253. package/dist/cjs/api/resources/tools/errors/FailedDependencyError.d.ts +8 -0
  254. package/dist/cjs/api/resources/tools/errors/FailedDependencyError.js +52 -0
  255. package/dist/cjs/api/resources/tools/errors/ForbiddenError.d.ts +8 -0
  256. package/dist/cjs/api/resources/tools/errors/ForbiddenError.js +52 -0
  257. package/dist/cjs/api/resources/tools/errors/InternalServerError.d.ts +8 -0
  258. package/dist/cjs/api/resources/tools/errors/InternalServerError.js +52 -0
  259. package/dist/cjs/api/resources/tools/errors/UnauthorizedError.d.ts +8 -0
  260. package/dist/cjs/api/resources/tools/errors/UnauthorizedError.js +52 -0
  261. package/dist/cjs/api/resources/tools/errors/index.d.ts +5 -0
  262. package/dist/cjs/api/resources/tools/errors/index.js +21 -0
  263. package/dist/cjs/api/resources/tools/index.d.ts +4 -0
  264. package/dist/cjs/api/resources/tools/index.js +20 -0
  265. package/dist/cjs/api/resources/tools/resources/index.d.ts +2 -0
  266. package/dist/cjs/api/resources/tools/resources/index.js +41 -0
  267. package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.d.ts +100 -0
  268. package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.js +337 -0
  269. package/dist/cjs/api/resources/tools/resources/mcpServer/client/index.d.ts +2 -0
  270. package/dist/cjs/api/resources/tools/resources/mcpServer/client/index.js +17 -0
  271. package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.d.ts +16 -0
  272. package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.js +5 -0
  273. package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/index.d.ts +1 -0
  274. package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/index.js +2 -0
  275. package/dist/cjs/api/resources/tools/resources/mcpServer/index.d.ts +2 -0
  276. package/dist/cjs/api/resources/tools/resources/mcpServer/index.js +18 -0
  277. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.d.ts +2 -0
  278. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.js +41 -0
  279. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.ts +100 -0
  280. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +338 -0
  281. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/index.d.ts +2 -0
  282. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/index.js +17 -0
  283. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.ts +15 -0
  284. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.js +5 -0
  285. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.d.ts +1 -0
  286. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.js +2 -0
  287. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/index.d.ts +1 -0
  288. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/index.js +17 -0
  289. package/dist/cjs/api/resources/tools/types/CohortResponse.d.ts +16 -0
  290. package/dist/cjs/api/resources/tools/types/CohortResponse.js +5 -0
  291. package/dist/cjs/api/resources/tools/types/FhirClientConfig.d.ts +12 -0
  292. package/dist/cjs/api/resources/tools/types/FhirClientConfig.js +5 -0
  293. package/dist/cjs/api/resources/tools/types/Lang2FhirAndCreateResponse.d.ts +12 -0
  294. package/dist/cjs/api/resources/tools/types/Lang2FhirAndCreateResponse.js +5 -0
  295. package/dist/cjs/api/resources/tools/types/Lang2FhirAndSearchResponse.d.ts +14 -0
  296. package/dist/cjs/api/resources/tools/types/Lang2FhirAndSearchResponse.js +5 -0
  297. package/dist/cjs/api/resources/tools/types/McpServerResponse.d.ts +30 -0
  298. package/dist/cjs/api/resources/tools/types/McpServerResponse.js +5 -0
  299. package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.d.ts +13 -0
  300. package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.js +5 -0
  301. package/dist/cjs/api/resources/tools/types/McpServerToolResponse.d.ts +34 -0
  302. package/dist/cjs/api/resources/tools/types/McpServerToolResponse.js +5 -0
  303. package/dist/cjs/api/resources/tools/types/SearchConcept.d.ts +16 -0
  304. package/dist/cjs/api/resources/tools/types/SearchConcept.js +5 -0
  305. package/dist/cjs/api/resources/tools/types/index.d.ts +8 -0
  306. package/dist/cjs/api/resources/tools/types/index.js +24 -0
  307. package/dist/cjs/core/auth/AuthProvider.d.ts +4 -0
  308. package/dist/cjs/core/auth/AuthProvider.js +2 -0
  309. package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
  310. package/dist/cjs/core/auth/AuthRequest.js +2 -0
  311. package/dist/cjs/core/auth/BasicAuth.d.ts +8 -0
  312. package/dist/cjs/core/auth/BasicAuth.js +26 -0
  313. package/dist/cjs/core/auth/BearerToken.d.ts +5 -0
  314. package/dist/cjs/core/auth/BearerToken.js +15 -0
  315. package/dist/cjs/core/auth/index.d.ts +4 -0
  316. package/dist/cjs/core/auth/index.js +7 -0
  317. package/dist/cjs/core/base64.d.ts +2 -0
  318. package/dist/cjs/core/base64.js +26 -0
  319. package/dist/cjs/core/fetcher/APIResponse.d.ts +20 -0
  320. package/dist/cjs/core/fetcher/APIResponse.js +2 -0
  321. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +20 -0
  322. package/dist/cjs/core/fetcher/BinaryResponse.js +17 -0
  323. package/dist/cjs/core/fetcher/Fetcher.d.ts +40 -0
  324. package/dist/cjs/core/fetcher/Fetcher.js +120 -0
  325. package/dist/cjs/core/fetcher/Headers.d.ts +2 -0
  326. package/dist/cjs/core/fetcher/Headers.js +84 -0
  327. package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +58 -0
  328. package/dist/cjs/core/fetcher/HttpResponsePromise.js +103 -0
  329. package/dist/cjs/core/fetcher/RawResponse.d.ts +29 -0
  330. package/dist/cjs/core/fetcher/RawResponse.js +44 -0
  331. package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +4 -0
  332. package/dist/cjs/core/fetcher/ResponseWithBody.js +6 -0
  333. package/dist/cjs/core/fetcher/Supplier.d.ts +4 -0
  334. package/dist/cjs/core/fetcher/Supplier.js +22 -0
  335. package/dist/cjs/core/fetcher/createRequestUrl.d.ts +1 -0
  336. package/dist/cjs/core/fetcher/createRequestUrl.js +8 -0
  337. package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +1 -0
  338. package/dist/cjs/core/fetcher/getErrorResponseBody.js +44 -0
  339. package/dist/cjs/core/fetcher/getFetchFn.d.ts +1 -0
  340. package/dist/cjs/core/fetcher/getFetchFn.js +17 -0
  341. package/dist/cjs/core/fetcher/getHeader.d.ts +1 -0
  342. package/dist/cjs/core/fetcher/getHeader.js +11 -0
  343. package/dist/cjs/core/fetcher/getRequestBody.d.ts +7 -0
  344. package/dist/cjs/core/fetcher/getRequestBody.js +23 -0
  345. package/dist/cjs/core/fetcher/getResponseBody.d.ts +1 -0
  346. package/dist/cjs/core/fetcher/getResponseBody.js +55 -0
  347. package/dist/cjs/core/fetcher/index.d.ts +9 -0
  348. package/dist/cjs/core/fetcher/index.js +15 -0
  349. package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -0
  350. package/dist/cjs/core/fetcher/makeRequest.js +42 -0
  351. package/dist/cjs/core/fetcher/requestWithRetries.d.ts +1 -0
  352. package/dist/cjs/core/fetcher/requestWithRetries.js +40 -0
  353. package/dist/cjs/core/fetcher/signals.d.ts +11 -0
  354. package/dist/cjs/core/fetcher/signals.js +36 -0
  355. package/dist/cjs/core/headers.d.ts +3 -0
  356. package/dist/cjs/core/headers.js +29 -0
  357. package/dist/cjs/core/index.d.ts +5 -0
  358. package/dist/cjs/core/index.js +44 -0
  359. package/dist/cjs/core/json.d.ts +15 -0
  360. package/dist/cjs/core/json.js +24 -0
  361. package/dist/cjs/core/runtime/index.d.ts +1 -0
  362. package/dist/cjs/core/runtime/index.js +5 -0
  363. package/dist/cjs/core/runtime/runtime.d.ts +9 -0
  364. package/dist/cjs/core/runtime/runtime.js +102 -0
  365. package/dist/cjs/core/url/index.d.ts +2 -0
  366. package/dist/cjs/core/url/index.js +7 -0
  367. package/dist/cjs/core/url/join.d.ts +1 -0
  368. package/dist/cjs/core/url/join.js +69 -0
  369. package/dist/cjs/core/url/qs.d.ts +6 -0
  370. package/dist/cjs/core/url/qs.js +64 -0
  371. package/dist/cjs/environments.d.ts +7 -0
  372. package/dist/cjs/environments.js +9 -0
  373. package/dist/cjs/errors/index.d.ts +2 -0
  374. package/dist/cjs/errors/index.js +7 -0
  375. package/dist/cjs/errors/phenomlError.d.ts +15 -0
  376. package/dist/cjs/errors/phenomlError.js +30 -0
  377. package/dist/cjs/errors/phenomlTimeoutError.d.ts +6 -0
  378. package/dist/cjs/errors/phenomlTimeoutError.js +13 -0
  379. package/dist/cjs/index.d.ts +4 -0
  380. package/dist/cjs/index.js +44 -0
  381. package/dist/cjs/version.d.ts +1 -0
  382. package/dist/cjs/version.js +4 -0
  383. package/dist/esm/Client.d.mts +50 -0
  384. package/dist/esm/Client.mjs +47 -0
  385. package/dist/esm/WrapperClient.d.mts +21 -0
  386. package/dist/esm/WrapperClient.mjs +74 -0
  387. package/dist/esm/api/index.d.mts +1 -0
  388. package/dist/esm/api/index.mjs +1 -0
  389. package/dist/esm/api/resources/agent/client/Client.d.mts +187 -0
  390. package/dist/esm/api/resources/agent/client/Client.mjs +633 -0
  391. package/dist/esm/api/resources/agent/client/index.d.mts +2 -0
  392. package/dist/esm/api/resources/agent/client/index.mjs +1 -0
  393. package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.d.mts +23 -0
  394. package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.mjs +4 -0
  395. package/dist/esm/api/resources/agent/client/requests/AgentCreateRequest.d.mts +29 -0
  396. package/dist/esm/api/resources/agent/client/requests/AgentCreateRequest.mjs +4 -0
  397. package/dist/esm/api/resources/agent/client/requests/AgentGetChatMessagesRequest.d.mts +20 -0
  398. package/dist/esm/api/resources/agent/client/requests/AgentGetChatMessagesRequest.mjs +4 -0
  399. package/dist/esm/api/resources/agent/client/requests/AgentListRequest.d.mts +13 -0
  400. package/dist/esm/api/resources/agent/client/requests/AgentListRequest.mjs +4 -0
  401. package/dist/esm/api/resources/agent/client/requests/AgentUpdateRequest.d.mts +25 -0
  402. package/dist/esm/api/resources/agent/client/requests/AgentUpdateRequest.mjs +4 -0
  403. package/dist/esm/api/resources/agent/client/requests/index.d.mts +5 -0
  404. package/dist/esm/api/resources/agent/client/requests/index.mjs +1 -0
  405. package/dist/esm/api/resources/agent/errors/BadRequestError.d.mts +8 -0
  406. package/dist/esm/api/resources/agent/errors/BadRequestError.mjs +15 -0
  407. package/dist/esm/api/resources/agent/errors/ForbiddenError.d.mts +8 -0
  408. package/dist/esm/api/resources/agent/errors/ForbiddenError.mjs +15 -0
  409. package/dist/esm/api/resources/agent/errors/InternalServerError.d.mts +8 -0
  410. package/dist/esm/api/resources/agent/errors/InternalServerError.mjs +15 -0
  411. package/dist/esm/api/resources/agent/errors/NotFoundError.d.mts +8 -0
  412. package/dist/esm/api/resources/agent/errors/NotFoundError.mjs +15 -0
  413. package/dist/esm/api/resources/agent/errors/UnauthorizedError.d.mts +8 -0
  414. package/dist/esm/api/resources/agent/errors/UnauthorizedError.mjs +15 -0
  415. package/dist/esm/api/resources/agent/errors/index.d.mts +5 -0
  416. package/dist/esm/api/resources/agent/errors/index.mjs +5 -0
  417. package/dist/esm/api/resources/agent/index.d.mts +4 -0
  418. package/dist/esm/api/resources/agent/index.mjs +4 -0
  419. package/dist/esm/api/resources/agent/resources/index.d.mts +3 -0
  420. package/dist/esm/api/resources/agent/resources/index.mjs +3 -0
  421. package/dist/esm/api/resources/agent/resources/prompts/client/Client.d.mts +161 -0
  422. package/dist/esm/api/resources/agent/resources/prompts/client/Client.mjs +527 -0
  423. package/dist/esm/api/resources/agent/resources/prompts/client/index.d.mts +2 -0
  424. package/dist/esm/api/resources/agent/resources/prompts/client/index.mjs +1 -0
  425. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.d.mts +25 -0
  426. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.mjs +4 -0
  427. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.d.mts +21 -0
  428. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.mjs +4 -0
  429. package/dist/esm/api/resources/agent/resources/prompts/client/requests/index.d.mts +2 -0
  430. package/dist/esm/api/resources/agent/resources/prompts/client/requests/index.mjs +1 -0
  431. package/dist/esm/api/resources/agent/resources/prompts/index.d.mts +2 -0
  432. package/dist/esm/api/resources/agent/resources/prompts/index.mjs +2 -0
  433. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.d.mts +7 -0
  434. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.mjs +4 -0
  435. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsListResponse.d.mts +9 -0
  436. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsListResponse.mjs +4 -0
  437. package/dist/esm/api/resources/agent/resources/prompts/types/index.d.mts +2 -0
  438. package/dist/esm/api/resources/agent/resources/prompts/types/index.mjs +2 -0
  439. package/dist/esm/api/resources/agent/types/AgentChatResponse.d.mts +12 -0
  440. package/dist/esm/api/resources/agent/types/AgentChatResponse.mjs +4 -0
  441. package/dist/esm/api/resources/agent/types/AgentDeleteResponse.d.mts +7 -0
  442. package/dist/esm/api/resources/agent/types/AgentDeleteResponse.mjs +4 -0
  443. package/dist/esm/api/resources/agent/types/AgentFhirConfig.d.mts +12 -0
  444. package/dist/esm/api/resources/agent/types/AgentFhirConfig.mjs +4 -0
  445. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.mts +8 -0
  446. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestOrder.mjs +7 -0
  447. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesResponse.d.mts +9 -0
  448. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesResponse.mjs +4 -0
  449. package/dist/esm/api/resources/agent/types/AgentListResponse.d.mts +9 -0
  450. package/dist/esm/api/resources/agent/types/AgentListResponse.mjs +4 -0
  451. package/dist/esm/api/resources/agent/types/AgentPromptsResponse.d.mts +9 -0
  452. package/dist/esm/api/resources/agent/types/AgentPromptsResponse.mjs +4 -0
  453. package/dist/esm/api/resources/agent/types/AgentProvider.d.mts +11 -0
  454. package/dist/esm/api/resources/agent/types/AgentProvider.mjs +4 -0
  455. package/dist/esm/api/resources/agent/types/AgentResponse.d.mts +9 -0
  456. package/dist/esm/api/resources/agent/types/AgentResponse.mjs +4 -0
  457. package/dist/esm/api/resources/agent/types/AgentTemplate.d.mts +23 -0
  458. package/dist/esm/api/resources/agent/types/AgentTemplate.mjs +4 -0
  459. package/dist/esm/api/resources/agent/types/ChatFhirClientConfig.d.mts +12 -0
  460. package/dist/esm/api/resources/agent/types/ChatFhirClientConfig.mjs +4 -0
  461. package/dist/esm/api/resources/agent/types/ChatMessageTemplate.d.mts +27 -0
  462. package/dist/esm/api/resources/agent/types/ChatMessageTemplate.mjs +4 -0
  463. package/dist/esm/api/resources/agent/types/ChatSessionTemplate.d.mts +25 -0
  464. package/dist/esm/api/resources/agent/types/ChatSessionTemplate.mjs +4 -0
  465. package/dist/esm/api/resources/agent/types/JsonPatch.d.mts +8 -0
  466. package/dist/esm/api/resources/agent/types/JsonPatch.mjs +4 -0
  467. package/dist/esm/api/resources/agent/types/JsonPatchOperation.d.mts +26 -0
  468. package/dist/esm/api/resources/agent/types/JsonPatchOperation.mjs +14 -0
  469. package/dist/esm/api/resources/agent/types/PromptTemplate.d.mts +19 -0
  470. package/dist/esm/api/resources/agent/types/PromptTemplate.mjs +4 -0
  471. package/dist/esm/api/resources/agent/types/ProviderType.d.mts +13 -0
  472. package/dist/esm/api/resources/agent/types/ProviderType.mjs +9 -0
  473. package/dist/esm/api/resources/agent/types/SuccessResponse.d.mts +7 -0
  474. package/dist/esm/api/resources/agent/types/SuccessResponse.mjs +4 -0
  475. package/dist/esm/api/resources/agent/types/index.d.mts +18 -0
  476. package/dist/esm/api/resources/agent/types/index.mjs +18 -0
  477. package/dist/esm/api/resources/authtoken/client/Client.d.mts +23 -0
  478. package/dist/esm/api/resources/authtoken/client/Client.mjs +13 -0
  479. package/dist/esm/api/resources/authtoken/client/index.d.mts +1 -0
  480. package/dist/esm/api/resources/authtoken/client/index.mjs +1 -0
  481. package/dist/esm/api/resources/authtoken/errors/BadRequestError.d.mts +8 -0
  482. package/dist/esm/api/resources/authtoken/errors/BadRequestError.mjs +15 -0
  483. package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.d.mts +8 -0
  484. package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.mjs +15 -0
  485. package/dist/esm/api/resources/authtoken/errors/index.d.mts +2 -0
  486. package/dist/esm/api/resources/authtoken/errors/index.mjs +2 -0
  487. package/dist/esm/api/resources/authtoken/index.d.mts +4 -0
  488. package/dist/esm/api/resources/authtoken/index.mjs +4 -0
  489. package/dist/esm/api/resources/authtoken/resources/auth/client/Client.d.mts +50 -0
  490. package/dist/esm/api/resources/authtoken/resources/auth/client/Client.mjs +108 -0
  491. package/dist/esm/api/resources/authtoken/resources/auth/client/index.d.mts +2 -0
  492. package/dist/esm/api/resources/authtoken/resources/auth/client/index.mjs +1 -0
  493. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.d.mts +16 -0
  494. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.mjs +4 -0
  495. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/index.d.mts +1 -0
  496. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/index.mjs +1 -0
  497. package/dist/esm/api/resources/authtoken/resources/auth/index.d.mts +2 -0
  498. package/dist/esm/api/resources/authtoken/resources/auth/index.mjs +2 -0
  499. package/dist/esm/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.d.mts +7 -0
  500. package/dist/esm/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.mjs +4 -0
  501. package/dist/esm/api/resources/authtoken/resources/auth/types/index.d.mts +1 -0
  502. package/dist/esm/api/resources/authtoken/resources/auth/types/index.mjs +1 -0
  503. package/dist/esm/api/resources/authtoken/resources/index.d.mts +3 -0
  504. package/dist/esm/api/resources/authtoken/resources/index.mjs +3 -0
  505. package/dist/esm/api/resources/authtoken/types/BadRequestErrorBody.d.mts +8 -0
  506. package/dist/esm/api/resources/authtoken/types/BadRequestErrorBody.mjs +4 -0
  507. package/dist/esm/api/resources/authtoken/types/UnauthorizedErrorBody.d.mts +8 -0
  508. package/dist/esm/api/resources/authtoken/types/UnauthorizedErrorBody.mjs +4 -0
  509. package/dist/esm/api/resources/authtoken/types/index.d.mts +2 -0
  510. package/dist/esm/api/resources/authtoken/types/index.mjs +2 -0
  511. package/dist/esm/api/resources/cohort/client/Client.d.mts +51 -0
  512. package/dist/esm/api/resources/cohort/client/Client.mjs +97 -0
  513. package/dist/esm/api/resources/cohort/client/index.d.mts +2 -0
  514. package/dist/esm/api/resources/cohort/client/index.mjs +1 -0
  515. package/dist/esm/api/resources/cohort/client/requests/CohortRequest.d.mts +13 -0
  516. package/dist/esm/api/resources/cohort/client/requests/CohortRequest.mjs +4 -0
  517. package/dist/esm/api/resources/cohort/client/requests/index.d.mts +1 -0
  518. package/dist/esm/api/resources/cohort/client/requests/index.mjs +1 -0
  519. package/dist/esm/api/resources/cohort/errors/BadRequestError.d.mts +8 -0
  520. package/dist/esm/api/resources/cohort/errors/BadRequestError.mjs +15 -0
  521. package/dist/esm/api/resources/cohort/errors/InternalServerError.d.mts +8 -0
  522. package/dist/esm/api/resources/cohort/errors/InternalServerError.mjs +15 -0
  523. package/dist/esm/api/resources/cohort/errors/UnauthorizedError.d.mts +8 -0
  524. package/dist/esm/api/resources/cohort/errors/UnauthorizedError.mjs +15 -0
  525. package/dist/esm/api/resources/cohort/errors/index.d.mts +3 -0
  526. package/dist/esm/api/resources/cohort/errors/index.mjs +3 -0
  527. package/dist/esm/api/resources/cohort/index.d.mts +3 -0
  528. package/dist/esm/api/resources/cohort/index.mjs +3 -0
  529. package/dist/esm/api/resources/cohort/types/CohortResponse.d.mts +12 -0
  530. package/dist/esm/api/resources/cohort/types/CohortResponse.mjs +4 -0
  531. package/dist/esm/api/resources/cohort/types/SearchConcept.d.mts +13 -0
  532. package/dist/esm/api/resources/cohort/types/SearchConcept.mjs +4 -0
  533. package/dist/esm/api/resources/cohort/types/index.d.mts +2 -0
  534. package/dist/esm/api/resources/cohort/types/index.mjs +2 -0
  535. package/dist/esm/api/resources/construe/client/Client.d.mts +94 -0
  536. package/dist/esm/api/resources/construe/client/Client.mjs +258 -0
  537. package/dist/esm/api/resources/construe/client/index.d.mts +2 -0
  538. package/dist/esm/api/resources/construe/client/index.mjs +1 -0
  539. package/dist/esm/api/resources/construe/client/requests/ConstrueCohortRequest.d.mts +26 -0
  540. package/dist/esm/api/resources/construe/client/requests/ConstrueCohortRequest.mjs +4 -0
  541. package/dist/esm/api/resources/construe/client/requests/ExtractRequest.d.mts +16 -0
  542. package/dist/esm/api/resources/construe/client/requests/ExtractRequest.mjs +4 -0
  543. package/dist/esm/api/resources/construe/client/requests/UploadRequest.d.mts +40 -0
  544. package/dist/esm/api/resources/construe/client/requests/UploadRequest.mjs +10 -0
  545. package/dist/esm/api/resources/construe/client/requests/index.d.mts +3 -0
  546. package/dist/esm/api/resources/construe/client/requests/index.mjs +1 -0
  547. package/dist/esm/api/resources/construe/errors/BadRequestError.d.mts +8 -0
  548. package/dist/esm/api/resources/construe/errors/BadRequestError.mjs +15 -0
  549. package/dist/esm/api/resources/construe/errors/ConflictError.d.mts +8 -0
  550. package/dist/esm/api/resources/construe/errors/ConflictError.mjs +15 -0
  551. package/dist/esm/api/resources/construe/errors/FailedDependencyError.d.mts +8 -0
  552. package/dist/esm/api/resources/construe/errors/FailedDependencyError.mjs +15 -0
  553. package/dist/esm/api/resources/construe/errors/InternalServerError.d.mts +8 -0
  554. package/dist/esm/api/resources/construe/errors/InternalServerError.mjs +15 -0
  555. package/dist/esm/api/resources/construe/errors/UnauthorizedError.d.mts +8 -0
  556. package/dist/esm/api/resources/construe/errors/UnauthorizedError.mjs +15 -0
  557. package/dist/esm/api/resources/construe/errors/index.d.mts +5 -0
  558. package/dist/esm/api/resources/construe/errors/index.mjs +5 -0
  559. package/dist/esm/api/resources/construe/index.d.mts +3 -0
  560. package/dist/esm/api/resources/construe/index.mjs +3 -0
  561. package/dist/esm/api/resources/construe/types/BadRequestErrorBody.d.mts +9 -0
  562. package/dist/esm/api/resources/construe/types/BadRequestErrorBody.mjs +4 -0
  563. package/dist/esm/api/resources/construe/types/ConstrueCohortResponse.d.mts +49 -0
  564. package/dist/esm/api/resources/construe/types/ConstrueCohortResponse.mjs +4 -0
  565. package/dist/esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.mts +6 -0
  566. package/dist/esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.mjs +4 -0
  567. package/dist/esm/api/resources/construe/types/ExtractCodesResult.d.mts +8 -0
  568. package/dist/esm/api/resources/construe/types/ExtractCodesResult.mjs +4 -0
  569. package/dist/esm/api/resources/construe/types/ExtractRequestConfig.d.mts +18 -0
  570. package/dist/esm/api/resources/construe/types/ExtractRequestConfig.mjs +12 -0
  571. package/dist/esm/api/resources/construe/types/ExtractRequestSystem.d.mts +21 -0
  572. package/dist/esm/api/resources/construe/types/ExtractRequestSystem.mjs +4 -0
  573. package/dist/esm/api/resources/construe/types/ExtractedCodeResult.d.mts +13 -0
  574. package/dist/esm/api/resources/construe/types/ExtractedCodeResult.mjs +4 -0
  575. package/dist/esm/api/resources/construe/types/InternalServerErrorBody.d.mts +9 -0
  576. package/dist/esm/api/resources/construe/types/InternalServerErrorBody.mjs +4 -0
  577. package/dist/esm/api/resources/construe/types/UnauthorizedErrorBody.d.mts +9 -0
  578. package/dist/esm/api/resources/construe/types/UnauthorizedErrorBody.mjs +4 -0
  579. package/dist/esm/api/resources/construe/types/index.d.mts +9 -0
  580. package/dist/esm/api/resources/construe/types/index.mjs +9 -0
  581. package/dist/esm/api/resources/index.d.mts +6 -0
  582. package/dist/esm/api/resources/index.mjs +6 -0
  583. package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +111 -0
  584. package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +323 -0
  585. package/dist/esm/api/resources/lang2Fhir/client/index.d.mts +2 -0
  586. package/dist/esm/api/resources/lang2Fhir/client/index.mjs +1 -0
  587. package/dist/esm/api/resources/lang2Fhir/client/requests/CreateRequest.d.mts +43 -0
  588. package/dist/esm/api/resources/lang2Fhir/client/requests/CreateRequest.mjs +24 -0
  589. package/dist/esm/api/resources/lang2Fhir/client/requests/DocumentRequest.d.mts +42 -0
  590. package/dist/esm/api/resources/lang2Fhir/client/requests/DocumentRequest.mjs +16 -0
  591. package/dist/esm/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.d.mts +19 -0
  592. package/dist/esm/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.mjs +4 -0
  593. package/dist/esm/api/resources/lang2Fhir/client/requests/SearchRequest.d.mts +13 -0
  594. package/dist/esm/api/resources/lang2Fhir/client/requests/SearchRequest.mjs +4 -0
  595. package/dist/esm/api/resources/lang2Fhir/client/requests/index.d.mts +4 -0
  596. package/dist/esm/api/resources/lang2Fhir/client/requests/index.mjs +1 -0
  597. package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.d.mts +8 -0
  598. package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.mjs +15 -0
  599. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.d.mts +8 -0
  600. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.mjs +15 -0
  601. package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.d.mts +8 -0
  602. package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.mjs +15 -0
  603. package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.d.mts +8 -0
  604. package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.mjs +15 -0
  605. package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.d.mts +8 -0
  606. package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.mjs +15 -0
  607. package/dist/esm/api/resources/lang2Fhir/errors/index.d.mts +5 -0
  608. package/dist/esm/api/resources/lang2Fhir/errors/index.mjs +5 -0
  609. package/dist/esm/api/resources/lang2Fhir/index.d.mts +3 -0
  610. package/dist/esm/api/resources/lang2Fhir/index.mjs +3 -0
  611. package/dist/esm/api/resources/lang2Fhir/types/FhirResource.d.mts +7 -0
  612. package/dist/esm/api/resources/lang2Fhir/types/FhirResource.mjs +4 -0
  613. package/dist/esm/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.mts +10 -0
  614. package/dist/esm/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.mjs +4 -0
  615. package/dist/esm/api/resources/lang2Fhir/types/SearchResponse.d.mts +9 -0
  616. package/dist/esm/api/resources/lang2Fhir/types/SearchResponse.mjs +4 -0
  617. package/dist/esm/api/resources/lang2Fhir/types/index.d.mts +3 -0
  618. package/dist/esm/api/resources/lang2Fhir/types/index.mjs +3 -0
  619. package/dist/esm/api/resources/tools/client/Client.d.mts +95 -0
  620. package/dist/esm/api/resources/tools/client/Client.mjs +265 -0
  621. package/dist/esm/api/resources/tools/client/index.d.mts +2 -0
  622. package/dist/esm/api/resources/tools/client/index.mjs +1 -0
  623. package/dist/esm/api/resources/tools/client/requests/CohortRequest.d.mts +30 -0
  624. package/dist/esm/api/resources/tools/client/requests/CohortRequest.mjs +12 -0
  625. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.mts +54 -0
  626. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.mjs +30 -0
  627. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.mts +35 -0
  628. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.mjs +12 -0
  629. package/dist/esm/api/resources/tools/client/requests/index.d.mts +3 -0
  630. package/dist/esm/api/resources/tools/client/requests/index.mjs +1 -0
  631. package/dist/esm/api/resources/tools/errors/BadRequestError.d.mts +8 -0
  632. package/dist/esm/api/resources/tools/errors/BadRequestError.mjs +15 -0
  633. package/dist/esm/api/resources/tools/errors/FailedDependencyError.d.mts +8 -0
  634. package/dist/esm/api/resources/tools/errors/FailedDependencyError.mjs +15 -0
  635. package/dist/esm/api/resources/tools/errors/ForbiddenError.d.mts +8 -0
  636. package/dist/esm/api/resources/tools/errors/ForbiddenError.mjs +15 -0
  637. package/dist/esm/api/resources/tools/errors/InternalServerError.d.mts +8 -0
  638. package/dist/esm/api/resources/tools/errors/InternalServerError.mjs +15 -0
  639. package/dist/esm/api/resources/tools/errors/UnauthorizedError.d.mts +8 -0
  640. package/dist/esm/api/resources/tools/errors/UnauthorizedError.mjs +15 -0
  641. package/dist/esm/api/resources/tools/errors/index.d.mts +5 -0
  642. package/dist/esm/api/resources/tools/errors/index.mjs +5 -0
  643. package/dist/esm/api/resources/tools/index.d.mts +4 -0
  644. package/dist/esm/api/resources/tools/index.mjs +4 -0
  645. package/dist/esm/api/resources/tools/resources/index.d.mts +2 -0
  646. package/dist/esm/api/resources/tools/resources/index.mjs +2 -0
  647. package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.d.mts +100 -0
  648. package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.mjs +300 -0
  649. package/dist/esm/api/resources/tools/resources/mcpServer/client/index.d.mts +2 -0
  650. package/dist/esm/api/resources/tools/resources/mcpServer/client/index.mjs +1 -0
  651. package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.d.mts +16 -0
  652. package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.mjs +4 -0
  653. package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/index.d.mts +1 -0
  654. package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/index.mjs +1 -0
  655. package/dist/esm/api/resources/tools/resources/mcpServer/index.d.mts +2 -0
  656. package/dist/esm/api/resources/tools/resources/mcpServer/index.mjs +2 -0
  657. package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.d.mts +2 -0
  658. package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.mjs +2 -0
  659. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.mts +100 -0
  660. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +301 -0
  661. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.d.mts +2 -0
  662. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.mjs +1 -0
  663. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.mts +15 -0
  664. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.mjs +4 -0
  665. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.d.mts +1 -0
  666. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.mjs +1 -0
  667. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/index.d.mts +1 -0
  668. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/index.mjs +1 -0
  669. package/dist/esm/api/resources/tools/types/CohortResponse.d.mts +16 -0
  670. package/dist/esm/api/resources/tools/types/CohortResponse.mjs +4 -0
  671. package/dist/esm/api/resources/tools/types/FhirClientConfig.d.mts +12 -0
  672. package/dist/esm/api/resources/tools/types/FhirClientConfig.mjs +4 -0
  673. package/dist/esm/api/resources/tools/types/Lang2FhirAndCreateResponse.d.mts +12 -0
  674. package/dist/esm/api/resources/tools/types/Lang2FhirAndCreateResponse.mjs +4 -0
  675. package/dist/esm/api/resources/tools/types/Lang2FhirAndSearchResponse.d.mts +14 -0
  676. package/dist/esm/api/resources/tools/types/Lang2FhirAndSearchResponse.mjs +4 -0
  677. package/dist/esm/api/resources/tools/types/McpServerResponse.d.mts +30 -0
  678. package/dist/esm/api/resources/tools/types/McpServerResponse.mjs +4 -0
  679. package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.d.mts +13 -0
  680. package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.mjs +4 -0
  681. package/dist/esm/api/resources/tools/types/McpServerToolResponse.d.mts +34 -0
  682. package/dist/esm/api/resources/tools/types/McpServerToolResponse.mjs +4 -0
  683. package/dist/esm/api/resources/tools/types/SearchConcept.d.mts +16 -0
  684. package/dist/esm/api/resources/tools/types/SearchConcept.mjs +4 -0
  685. package/dist/esm/api/resources/tools/types/index.d.mts +8 -0
  686. package/dist/esm/api/resources/tools/types/index.mjs +8 -0
  687. package/dist/esm/core/auth/AuthProvider.d.mts +4 -0
  688. package/dist/esm/core/auth/AuthProvider.mjs +1 -0
  689. package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
  690. package/dist/esm/core/auth/AuthRequest.mjs +1 -0
  691. package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
  692. package/dist/esm/core/auth/BasicAuth.mjs +23 -0
  693. package/dist/esm/core/auth/BearerToken.d.mts +5 -0
  694. package/dist/esm/core/auth/BearerToken.mjs +12 -0
  695. package/dist/esm/core/auth/index.d.mts +4 -0
  696. package/dist/esm/core/auth/index.mjs +2 -0
  697. package/dist/esm/core/base64.d.mts +2 -0
  698. package/dist/esm/core/base64.mjs +22 -0
  699. package/dist/esm/core/fetcher/APIResponse.d.mts +20 -0
  700. package/dist/esm/core/fetcher/APIResponse.mjs +1 -0
  701. package/dist/esm/core/fetcher/BinaryResponse.d.mts +20 -0
  702. package/dist/esm/core/fetcher/BinaryResponse.mjs +14 -0
  703. package/dist/esm/core/fetcher/Fetcher.d.mts +40 -0
  704. package/dist/esm/core/fetcher/Fetcher.mjs +116 -0
  705. package/dist/esm/core/fetcher/Headers.d.mts +2 -0
  706. package/dist/esm/core/fetcher/Headers.mjs +82 -0
  707. package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +58 -0
  708. package/dist/esm/core/fetcher/HttpResponsePromise.mjs +99 -0
  709. package/dist/esm/core/fetcher/RawResponse.d.mts +29 -0
  710. package/dist/esm/core/fetcher/RawResponse.mjs +40 -0
  711. package/dist/esm/core/fetcher/ResponseWithBody.d.mts +4 -0
  712. package/dist/esm/core/fetcher/ResponseWithBody.mjs +3 -0
  713. package/dist/esm/core/fetcher/Supplier.d.mts +4 -0
  714. package/dist/esm/core/fetcher/Supplier.mjs +19 -0
  715. package/dist/esm/core/fetcher/createRequestUrl.d.mts +1 -0
  716. package/dist/esm/core/fetcher/createRequestUrl.mjs +5 -0
  717. package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +1 -0
  718. package/dist/esm/core/fetcher/getErrorResponseBody.mjs +41 -0
  719. package/dist/esm/core/fetcher/getFetchFn.d.mts +1 -0
  720. package/dist/esm/core/fetcher/getFetchFn.mjs +14 -0
  721. package/dist/esm/core/fetcher/getHeader.d.mts +1 -0
  722. package/dist/esm/core/fetcher/getHeader.mjs +8 -0
  723. package/dist/esm/core/fetcher/getRequestBody.d.mts +7 -0
  724. package/dist/esm/core/fetcher/getRequestBody.mjs +20 -0
  725. package/dist/esm/core/fetcher/getResponseBody.d.mts +1 -0
  726. package/dist/esm/core/fetcher/getResponseBody.mjs +52 -0
  727. package/dist/esm/core/fetcher/index.d.mts +9 -0
  728. package/dist/esm/core/fetcher/index.mjs +5 -0
  729. package/dist/esm/core/fetcher/makeRequest.d.mts +1 -0
  730. package/dist/esm/core/fetcher/makeRequest.mjs +38 -0
  731. package/dist/esm/core/fetcher/requestWithRetries.d.mts +1 -0
  732. package/dist/esm/core/fetcher/requestWithRetries.mjs +37 -0
  733. package/dist/esm/core/fetcher/signals.d.mts +11 -0
  734. package/dist/esm/core/fetcher/signals.mjs +32 -0
  735. package/dist/esm/core/headers.d.mts +3 -0
  736. package/dist/esm/core/headers.mjs +25 -0
  737. package/dist/esm/core/index.d.mts +5 -0
  738. package/dist/esm/core/index.mjs +5 -0
  739. package/dist/esm/core/json.d.mts +15 -0
  740. package/dist/esm/core/json.mjs +19 -0
  741. package/dist/esm/core/runtime/index.d.mts +1 -0
  742. package/dist/esm/core/runtime/index.mjs +1 -0
  743. package/dist/esm/core/runtime/runtime.d.mts +9 -0
  744. package/dist/esm/core/runtime/runtime.mjs +99 -0
  745. package/dist/esm/core/url/index.d.mts +2 -0
  746. package/dist/esm/core/url/index.mjs +2 -0
  747. package/dist/esm/core/url/join.d.mts +1 -0
  748. package/dist/esm/core/url/join.mjs +66 -0
  749. package/dist/esm/core/url/qs.d.mts +6 -0
  750. package/dist/esm/core/url/qs.mjs +61 -0
  751. package/dist/esm/environments.d.mts +7 -0
  752. package/dist/esm/environments.mjs +6 -0
  753. package/dist/esm/errors/index.d.mts +2 -0
  754. package/dist/esm/errors/index.mjs +2 -0
  755. package/dist/esm/errors/phenomlError.d.mts +15 -0
  756. package/dist/esm/errors/phenomlError.mjs +26 -0
  757. package/dist/esm/errors/phenomlTimeoutError.d.mts +6 -0
  758. package/dist/esm/errors/phenomlTimeoutError.mjs +9 -0
  759. package/dist/esm/index.d.mts +4 -0
  760. package/dist/esm/index.mjs +4 -0
  761. package/dist/esm/version.d.mts +1 -0
  762. package/dist/esm/version.mjs +1 -0
  763. package/package.json +65 -0
  764. package/reference.md +2330 -0
package/reference.md ADDED
@@ -0,0 +1,2330 @@
1
+ # Reference
2
+
3
+ ## Agent
4
+
5
+ <details><summary><code>client.agent.<a href="/src/api/resources/agent/client/Client.ts">create</a>({ ...params }) -> phenoml.AgentResponse</code></summary>
6
+ <dl>
7
+ <dd>
8
+
9
+ #### 📝 Description
10
+
11
+ <dl>
12
+ <dd>
13
+
14
+ <dl>
15
+ <dd>
16
+
17
+ Creates a new PhenoAgent with specified configuration
18
+
19
+ </dd>
20
+ </dl>
21
+ </dd>
22
+ </dl>
23
+
24
+ #### 🔌 Usage
25
+
26
+ <dl>
27
+ <dd>
28
+
29
+ <dl>
30
+ <dd>
31
+
32
+ ```typescript
33
+ await client.agent.create({
34
+ name: "name",
35
+ prompts: ["prompt_123", "prompt_456"],
36
+ is_active: true,
37
+ });
38
+ ```
39
+
40
+ </dd>
41
+ </dl>
42
+ </dd>
43
+ </dl>
44
+
45
+ #### ⚙️ Parameters
46
+
47
+ <dl>
48
+ <dd>
49
+
50
+ <dl>
51
+ <dd>
52
+
53
+ **request:** `phenoml.agent.AgentCreateRequest`
54
+
55
+ </dd>
56
+ </dl>
57
+
58
+ <dl>
59
+ <dd>
60
+
61
+ **requestOptions:** `Agent.RequestOptions`
62
+
63
+ </dd>
64
+ </dl>
65
+ </dd>
66
+ </dl>
67
+
68
+ </dd>
69
+ </dl>
70
+ </details>
71
+
72
+ <details><summary><code>client.agent.<a href="/src/api/resources/agent/client/Client.ts">list</a>({ ...params }) -> phenoml.AgentListResponse</code></summary>
73
+ <dl>
74
+ <dd>
75
+
76
+ #### 📝 Description
77
+
78
+ <dl>
79
+ <dd>
80
+
81
+ <dl>
82
+ <dd>
83
+
84
+ Retrieves a list of PhenoAgents belonging to the authenticated user
85
+
86
+ </dd>
87
+ </dl>
88
+ </dd>
89
+ </dl>
90
+
91
+ #### 🔌 Usage
92
+
93
+ <dl>
94
+ <dd>
95
+
96
+ <dl>
97
+ <dd>
98
+
99
+ ```typescript
100
+ await client.agent.list();
101
+ ```
102
+
103
+ </dd>
104
+ </dl>
105
+ </dd>
106
+ </dl>
107
+
108
+ #### ⚙️ Parameters
109
+
110
+ <dl>
111
+ <dd>
112
+
113
+ <dl>
114
+ <dd>
115
+
116
+ **request:** `phenoml.agent.AgentListRequest`
117
+
118
+ </dd>
119
+ </dl>
120
+
121
+ <dl>
122
+ <dd>
123
+
124
+ **requestOptions:** `Agent.RequestOptions`
125
+
126
+ </dd>
127
+ </dl>
128
+ </dd>
129
+ </dl>
130
+
131
+ </dd>
132
+ </dl>
133
+ </details>
134
+
135
+ <details><summary><code>client.agent.<a href="/src/api/resources/agent/client/Client.ts">get</a>(id) -> phenoml.AgentResponse</code></summary>
136
+ <dl>
137
+ <dd>
138
+
139
+ #### 📝 Description
140
+
141
+ <dl>
142
+ <dd>
143
+
144
+ <dl>
145
+ <dd>
146
+
147
+ Retrieves a specific agent by its ID
148
+
149
+ </dd>
150
+ </dl>
151
+ </dd>
152
+ </dl>
153
+
154
+ #### 🔌 Usage
155
+
156
+ <dl>
157
+ <dd>
158
+
159
+ <dl>
160
+ <dd>
161
+
162
+ ```typescript
163
+ await client.agent.get("id");
164
+ ```
165
+
166
+ </dd>
167
+ </dl>
168
+ </dd>
169
+ </dl>
170
+
171
+ #### ⚙️ Parameters
172
+
173
+ <dl>
174
+ <dd>
175
+
176
+ <dl>
177
+ <dd>
178
+
179
+ **id:** `string` — Agent ID
180
+
181
+ </dd>
182
+ </dl>
183
+
184
+ <dl>
185
+ <dd>
186
+
187
+ **requestOptions:** `Agent.RequestOptions`
188
+
189
+ </dd>
190
+ </dl>
191
+ </dd>
192
+ </dl>
193
+
194
+ </dd>
195
+ </dl>
196
+ </details>
197
+
198
+ <details><summary><code>client.agent.<a href="/src/api/resources/agent/client/Client.ts">update</a>(id, { ...params }) -> phenoml.AgentResponse</code></summary>
199
+ <dl>
200
+ <dd>
201
+
202
+ #### 📝 Description
203
+
204
+ <dl>
205
+ <dd>
206
+
207
+ <dl>
208
+ <dd>
209
+
210
+ Updates an existing agent's configuration
211
+
212
+ </dd>
213
+ </dl>
214
+ </dd>
215
+ </dl>
216
+
217
+ #### 🔌 Usage
218
+
219
+ <dl>
220
+ <dd>
221
+
222
+ <dl>
223
+ <dd>
224
+
225
+ ```typescript
226
+ await client.agent.update("id");
227
+ ```
228
+
229
+ </dd>
230
+ </dl>
231
+ </dd>
232
+ </dl>
233
+
234
+ #### ⚙️ Parameters
235
+
236
+ <dl>
237
+ <dd>
238
+
239
+ <dl>
240
+ <dd>
241
+
242
+ **id:** `string` — Agent ID
243
+
244
+ </dd>
245
+ </dl>
246
+
247
+ <dl>
248
+ <dd>
249
+
250
+ **request:** `phenoml.agent.AgentUpdateRequest`
251
+
252
+ </dd>
253
+ </dl>
254
+
255
+ <dl>
256
+ <dd>
257
+
258
+ **requestOptions:** `Agent.RequestOptions`
259
+
260
+ </dd>
261
+ </dl>
262
+ </dd>
263
+ </dl>
264
+
265
+ </dd>
266
+ </dl>
267
+ </details>
268
+
269
+ <details><summary><code>client.agent.<a href="/src/api/resources/agent/client/Client.ts">delete</a>(id) -> phenoml.AgentDeleteResponse</code></summary>
270
+ <dl>
271
+ <dd>
272
+
273
+ #### 📝 Description
274
+
275
+ <dl>
276
+ <dd>
277
+
278
+ <dl>
279
+ <dd>
280
+
281
+ Deletes an existing agent
282
+
283
+ </dd>
284
+ </dl>
285
+ </dd>
286
+ </dl>
287
+
288
+ #### 🔌 Usage
289
+
290
+ <dl>
291
+ <dd>
292
+
293
+ <dl>
294
+ <dd>
295
+
296
+ ```typescript
297
+ await client.agent.delete("id");
298
+ ```
299
+
300
+ </dd>
301
+ </dl>
302
+ </dd>
303
+ </dl>
304
+
305
+ #### ⚙️ Parameters
306
+
307
+ <dl>
308
+ <dd>
309
+
310
+ <dl>
311
+ <dd>
312
+
313
+ **id:** `string` — Agent ID
314
+
315
+ </dd>
316
+ </dl>
317
+
318
+ <dl>
319
+ <dd>
320
+
321
+ **requestOptions:** `Agent.RequestOptions`
322
+
323
+ </dd>
324
+ </dl>
325
+ </dd>
326
+ </dl>
327
+
328
+ </dd>
329
+ </dl>
330
+ </details>
331
+
332
+ <details><summary><code>client.agent.<a href="/src/api/resources/agent/client/Client.ts">patch</a>(id, { ...params }) -> phenoml.AgentResponse</code></summary>
333
+ <dl>
334
+ <dd>
335
+
336
+ #### 📝 Description
337
+
338
+ <dl>
339
+ <dd>
340
+
341
+ <dl>
342
+ <dd>
343
+
344
+ Patches an existing agent's configuration
345
+
346
+ </dd>
347
+ </dl>
348
+ </dd>
349
+ </dl>
350
+
351
+ #### 🔌 Usage
352
+
353
+ <dl>
354
+ <dd>
355
+
356
+ <dl>
357
+ <dd>
358
+
359
+ ```typescript
360
+ await client.agent.patch("id", [
361
+ {
362
+ op: "replace",
363
+ path: "/name",
364
+ value: "Updated Agent Name",
365
+ },
366
+ {
367
+ op: "add",
368
+ path: "/tags/-",
369
+ value: "new-tag",
370
+ },
371
+ {
372
+ op: "remove",
373
+ path: "/description",
374
+ },
375
+ ]);
376
+ ```
377
+
378
+ </dd>
379
+ </dl>
380
+ </dd>
381
+ </dl>
382
+
383
+ #### ⚙️ Parameters
384
+
385
+ <dl>
386
+ <dd>
387
+
388
+ <dl>
389
+ <dd>
390
+
391
+ **id:** `string` — Agent ID
392
+
393
+ </dd>
394
+ </dl>
395
+
396
+ <dl>
397
+ <dd>
398
+
399
+ **request:** `phenoml.JsonPatch`
400
+
401
+ </dd>
402
+ </dl>
403
+
404
+ <dl>
405
+ <dd>
406
+
407
+ **requestOptions:** `Agent.RequestOptions`
408
+
409
+ </dd>
410
+ </dl>
411
+ </dd>
412
+ </dl>
413
+
414
+ </dd>
415
+ </dl>
416
+ </details>
417
+
418
+ <details><summary><code>client.agent.<a href="/src/api/resources/agent/client/Client.ts">chat</a>({ ...params }) -> phenoml.AgentChatResponse</code></summary>
419
+ <dl>
420
+ <dd>
421
+
422
+ #### 📝 Description
423
+
424
+ <dl>
425
+ <dd>
426
+
427
+ <dl>
428
+ <dd>
429
+
430
+ Send a message to an agent and receive a response
431
+
432
+ </dd>
433
+ </dl>
434
+ </dd>
435
+ </dl>
436
+
437
+ #### 🔌 Usage
438
+
439
+ <dl>
440
+ <dd>
441
+
442
+ <dl>
443
+ <dd>
444
+
445
+ ```typescript
446
+ await client.agent.chat({
447
+ message: "What is the patient's current condition?",
448
+ agent_id: "agent-123",
449
+ });
450
+ ```
451
+
452
+ </dd>
453
+ </dl>
454
+ </dd>
455
+ </dl>
456
+
457
+ #### ⚙️ Parameters
458
+
459
+ <dl>
460
+ <dd>
461
+
462
+ <dl>
463
+ <dd>
464
+
465
+ **request:** `phenoml.agent.AgentChatRequest`
466
+
467
+ </dd>
468
+ </dl>
469
+
470
+ <dl>
471
+ <dd>
472
+
473
+ **requestOptions:** `Agent.RequestOptions`
474
+
475
+ </dd>
476
+ </dl>
477
+ </dd>
478
+ </dl>
479
+
480
+ </dd>
481
+ </dl>
482
+ </details>
483
+
484
+ <details><summary><code>client.agent.<a href="/src/api/resources/agent/client/Client.ts">getChatMessages</a>({ ...params }) -> phenoml.AgentGetChatMessagesResponse</code></summary>
485
+ <dl>
486
+ <dd>
487
+
488
+ #### 📝 Description
489
+
490
+ <dl>
491
+ <dd>
492
+
493
+ <dl>
494
+ <dd>
495
+
496
+ Retrieves a list of chat messages for a given chat session
497
+
498
+ </dd>
499
+ </dl>
500
+ </dd>
501
+ </dl>
502
+
503
+ #### 🔌 Usage
504
+
505
+ <dl>
506
+ <dd>
507
+
508
+ <dl>
509
+ <dd>
510
+
511
+ ```typescript
512
+ await client.agent.getChatMessages({
513
+ chat_session_id: "chat_session_id",
514
+ });
515
+ ```
516
+
517
+ </dd>
518
+ </dl>
519
+ </dd>
520
+ </dl>
521
+
522
+ #### ⚙️ Parameters
523
+
524
+ <dl>
525
+ <dd>
526
+
527
+ <dl>
528
+ <dd>
529
+
530
+ **request:** `phenoml.agent.AgentGetChatMessagesRequest`
531
+
532
+ </dd>
533
+ </dl>
534
+
535
+ <dl>
536
+ <dd>
537
+
538
+ **requestOptions:** `Agent.RequestOptions`
539
+
540
+ </dd>
541
+ </dl>
542
+ </dd>
543
+ </dl>
544
+
545
+ </dd>
546
+ </dl>
547
+ </details>
548
+
549
+ ## Agent Prompts
550
+
551
+ <details><summary><code>client.agent.prompts.<a href="/src/api/resources/agent/resources/prompts/client/Client.ts">create</a>({ ...params }) -> phenoml.AgentPromptsResponse</code></summary>
552
+ <dl>
553
+ <dd>
554
+
555
+ #### 📝 Description
556
+
557
+ <dl>
558
+ <dd>
559
+
560
+ <dl>
561
+ <dd>
562
+
563
+ Creates a new agent prompt
564
+
565
+ </dd>
566
+ </dl>
567
+ </dd>
568
+ </dl>
569
+
570
+ #### 🔌 Usage
571
+
572
+ <dl>
573
+ <dd>
574
+
575
+ <dl>
576
+ <dd>
577
+
578
+ ```typescript
579
+ await client.agent.prompts.create({
580
+ name: "Medical Assistant System Prompt",
581
+ content: "You are a helpful medical assistant specialized in FHIR data processing...",
582
+ is_active: true,
583
+ });
584
+ ```
585
+
586
+ </dd>
587
+ </dl>
588
+ </dd>
589
+ </dl>
590
+
591
+ #### ⚙️ Parameters
592
+
593
+ <dl>
594
+ <dd>
595
+
596
+ <dl>
597
+ <dd>
598
+
599
+ **request:** `phenoml.agent.AgentPromptsCreateRequest`
600
+
601
+ </dd>
602
+ </dl>
603
+
604
+ <dl>
605
+ <dd>
606
+
607
+ **requestOptions:** `Prompts.RequestOptions`
608
+
609
+ </dd>
610
+ </dl>
611
+ </dd>
612
+ </dl>
613
+
614
+ </dd>
615
+ </dl>
616
+ </details>
617
+
618
+ <details><summary><code>client.agent.prompts.<a href="/src/api/resources/agent/resources/prompts/client/Client.ts">list</a>() -> phenoml.PromptsListResponse</code></summary>
619
+ <dl>
620
+ <dd>
621
+
622
+ #### 📝 Description
623
+
624
+ <dl>
625
+ <dd>
626
+
627
+ <dl>
628
+ <dd>
629
+
630
+ Retrieves a list of agent prompts belonging to the authenticated user
631
+
632
+ </dd>
633
+ </dl>
634
+ </dd>
635
+ </dl>
636
+
637
+ #### 🔌 Usage
638
+
639
+ <dl>
640
+ <dd>
641
+
642
+ <dl>
643
+ <dd>
644
+
645
+ ```typescript
646
+ await client.agent.prompts.list();
647
+ ```
648
+
649
+ </dd>
650
+ </dl>
651
+ </dd>
652
+ </dl>
653
+
654
+ #### ⚙️ Parameters
655
+
656
+ <dl>
657
+ <dd>
658
+
659
+ <dl>
660
+ <dd>
661
+
662
+ **requestOptions:** `Prompts.RequestOptions`
663
+
664
+ </dd>
665
+ </dl>
666
+ </dd>
667
+ </dl>
668
+
669
+ </dd>
670
+ </dl>
671
+ </details>
672
+
673
+ <details><summary><code>client.agent.prompts.<a href="/src/api/resources/agent/resources/prompts/client/Client.ts">get</a>(id) -> phenoml.AgentPromptsResponse</code></summary>
674
+ <dl>
675
+ <dd>
676
+
677
+ #### 📝 Description
678
+
679
+ <dl>
680
+ <dd>
681
+
682
+ <dl>
683
+ <dd>
684
+
685
+ Retrieves a specific prompt by its ID
686
+
687
+ </dd>
688
+ </dl>
689
+ </dd>
690
+ </dl>
691
+
692
+ #### 🔌 Usage
693
+
694
+ <dl>
695
+ <dd>
696
+
697
+ <dl>
698
+ <dd>
699
+
700
+ ```typescript
701
+ await client.agent.prompts.get("id");
702
+ ```
703
+
704
+ </dd>
705
+ </dl>
706
+ </dd>
707
+ </dl>
708
+
709
+ #### ⚙️ Parameters
710
+
711
+ <dl>
712
+ <dd>
713
+
714
+ <dl>
715
+ <dd>
716
+
717
+ **id:** `string` — Prompt ID
718
+
719
+ </dd>
720
+ </dl>
721
+
722
+ <dl>
723
+ <dd>
724
+
725
+ **requestOptions:** `Prompts.RequestOptions`
726
+
727
+ </dd>
728
+ </dl>
729
+ </dd>
730
+ </dl>
731
+
732
+ </dd>
733
+ </dl>
734
+ </details>
735
+
736
+ <details><summary><code>client.agent.prompts.<a href="/src/api/resources/agent/resources/prompts/client/Client.ts">update</a>(id, { ...params }) -> phenoml.AgentPromptsResponse</code></summary>
737
+ <dl>
738
+ <dd>
739
+
740
+ #### 📝 Description
741
+
742
+ <dl>
743
+ <dd>
744
+
745
+ <dl>
746
+ <dd>
747
+
748
+ Updates an existing prompt
749
+
750
+ </dd>
751
+ </dl>
752
+ </dd>
753
+ </dl>
754
+
755
+ #### 🔌 Usage
756
+
757
+ <dl>
758
+ <dd>
759
+
760
+ <dl>
761
+ <dd>
762
+
763
+ ```typescript
764
+ await client.agent.prompts.update("id");
765
+ ```
766
+
767
+ </dd>
768
+ </dl>
769
+ </dd>
770
+ </dl>
771
+
772
+ #### ⚙️ Parameters
773
+
774
+ <dl>
775
+ <dd>
776
+
777
+ <dl>
778
+ <dd>
779
+
780
+ **id:** `string` — Prompt ID
781
+
782
+ </dd>
783
+ </dl>
784
+
785
+ <dl>
786
+ <dd>
787
+
788
+ **request:** `phenoml.agent.AgentPromptsUpdateRequest`
789
+
790
+ </dd>
791
+ </dl>
792
+
793
+ <dl>
794
+ <dd>
795
+
796
+ **requestOptions:** `Prompts.RequestOptions`
797
+
798
+ </dd>
799
+ </dl>
800
+ </dd>
801
+ </dl>
802
+
803
+ </dd>
804
+ </dl>
805
+ </details>
806
+
807
+ <details><summary><code>client.agent.prompts.<a href="/src/api/resources/agent/resources/prompts/client/Client.ts">delete</a>(id) -> phenoml.PromptsDeleteResponse</code></summary>
808
+ <dl>
809
+ <dd>
810
+
811
+ #### 📝 Description
812
+
813
+ <dl>
814
+ <dd>
815
+
816
+ <dl>
817
+ <dd>
818
+
819
+ Soft deletes a prompt by setting is_active to false
820
+
821
+ </dd>
822
+ </dl>
823
+ </dd>
824
+ </dl>
825
+
826
+ #### 🔌 Usage
827
+
828
+ <dl>
829
+ <dd>
830
+
831
+ <dl>
832
+ <dd>
833
+
834
+ ```typescript
835
+ await client.agent.prompts.delete("id");
836
+ ```
837
+
838
+ </dd>
839
+ </dl>
840
+ </dd>
841
+ </dl>
842
+
843
+ #### ⚙️ Parameters
844
+
845
+ <dl>
846
+ <dd>
847
+
848
+ <dl>
849
+ <dd>
850
+
851
+ **id:** `string` — Prompt ID
852
+
853
+ </dd>
854
+ </dl>
855
+
856
+ <dl>
857
+ <dd>
858
+
859
+ **requestOptions:** `Prompts.RequestOptions`
860
+
861
+ </dd>
862
+ </dl>
863
+ </dd>
864
+ </dl>
865
+
866
+ </dd>
867
+ </dl>
868
+ </details>
869
+
870
+ <details><summary><code>client.agent.prompts.<a href="/src/api/resources/agent/resources/prompts/client/Client.ts">patch</a>(id, { ...params }) -> phenoml.AgentPromptsResponse</code></summary>
871
+ <dl>
872
+ <dd>
873
+
874
+ #### 📝 Description
875
+
876
+ <dl>
877
+ <dd>
878
+
879
+ <dl>
880
+ <dd>
881
+
882
+ Patches an existing prompt
883
+
884
+ </dd>
885
+ </dl>
886
+ </dd>
887
+ </dl>
888
+
889
+ #### 🔌 Usage
890
+
891
+ <dl>
892
+ <dd>
893
+
894
+ <dl>
895
+ <dd>
896
+
897
+ ```typescript
898
+ await client.agent.prompts.patch("id", [
899
+ {
900
+ op: "replace",
901
+ path: "/name",
902
+ value: "Updated Agent Name",
903
+ },
904
+ {
905
+ op: "add",
906
+ path: "/tags/-",
907
+ value: "new-tag",
908
+ },
909
+ {
910
+ op: "remove",
911
+ path: "/description",
912
+ },
913
+ ]);
914
+ ```
915
+
916
+ </dd>
917
+ </dl>
918
+ </dd>
919
+ </dl>
920
+
921
+ #### ⚙️ Parameters
922
+
923
+ <dl>
924
+ <dd>
925
+
926
+ <dl>
927
+ <dd>
928
+
929
+ **id:** `string` — Agent Prompt ID
930
+
931
+ </dd>
932
+ </dl>
933
+
934
+ <dl>
935
+ <dd>
936
+
937
+ **request:** `phenoml.JsonPatch`
938
+
939
+ </dd>
940
+ </dl>
941
+
942
+ <dl>
943
+ <dd>
944
+
945
+ **requestOptions:** `Prompts.RequestOptions`
946
+
947
+ </dd>
948
+ </dl>
949
+ </dd>
950
+ </dl>
951
+
952
+ </dd>
953
+ </dl>
954
+ </details>
955
+
956
+ <details><summary><code>client.agent.prompts.<a href="/src/api/resources/agent/resources/prompts/client/Client.ts">loadDefaults</a>() -> phenoml.SuccessResponse</code></summary>
957
+ <dl>
958
+ <dd>
959
+
960
+ #### 📝 Description
961
+
962
+ <dl>
963
+ <dd>
964
+
965
+ <dl>
966
+ <dd>
967
+
968
+ Loads default agent prompts for the authenticated user
969
+
970
+ </dd>
971
+ </dl>
972
+ </dd>
973
+ </dl>
974
+
975
+ #### 🔌 Usage
976
+
977
+ <dl>
978
+ <dd>
979
+
980
+ <dl>
981
+ <dd>
982
+
983
+ ```typescript
984
+ await client.agent.prompts.loadDefaults();
985
+ ```
986
+
987
+ </dd>
988
+ </dl>
989
+ </dd>
990
+ </dl>
991
+
992
+ #### ⚙️ Parameters
993
+
994
+ <dl>
995
+ <dd>
996
+
997
+ <dl>
998
+ <dd>
999
+
1000
+ **requestOptions:** `Prompts.RequestOptions`
1001
+
1002
+ </dd>
1003
+ </dl>
1004
+ </dd>
1005
+ </dl>
1006
+
1007
+ </dd>
1008
+ </dl>
1009
+ </details>
1010
+
1011
+ ## Authtoken Auth
1012
+
1013
+ <details><summary><code>client.authtoken.auth.<a href="/src/api/resources/authtoken/resources/auth/client/Client.ts">generateToken</a>({ ...params }) -> phenoml.AuthGenerateTokenResponse</code></summary>
1014
+ <dl>
1015
+ <dd>
1016
+
1017
+ #### 📝 Description
1018
+
1019
+ <dl>
1020
+ <dd>
1021
+
1022
+ <dl>
1023
+ <dd>
1024
+
1025
+ Obtain an access token using client credentials
1026
+
1027
+ </dd>
1028
+ </dl>
1029
+ </dd>
1030
+ </dl>
1031
+
1032
+ #### 🔌 Usage
1033
+
1034
+ <dl>
1035
+ <dd>
1036
+
1037
+ <dl>
1038
+ <dd>
1039
+
1040
+ ```typescript
1041
+ await client.authtoken.auth.generateToken({
1042
+ username: "username",
1043
+ password: "password",
1044
+ });
1045
+ ```
1046
+
1047
+ </dd>
1048
+ </dl>
1049
+ </dd>
1050
+ </dl>
1051
+
1052
+ #### ⚙️ Parameters
1053
+
1054
+ <dl>
1055
+ <dd>
1056
+
1057
+ <dl>
1058
+ <dd>
1059
+
1060
+ **request:** `phenoml.authtoken.AuthGenerateTokenRequest`
1061
+
1062
+ </dd>
1063
+ </dl>
1064
+
1065
+ <dl>
1066
+ <dd>
1067
+
1068
+ **requestOptions:** `Auth.RequestOptions`
1069
+
1070
+ </dd>
1071
+ </dl>
1072
+ </dd>
1073
+ </dl>
1074
+
1075
+ </dd>
1076
+ </dl>
1077
+ </details>
1078
+
1079
+ ## Cohort
1080
+
1081
+ <details><summary><code>client.cohort.<a href="/src/api/resources/cohort/client/Client.ts">analyze</a>({ ...params }) -> phenoml.CohortResponse</code></summary>
1082
+ <dl>
1083
+ <dd>
1084
+
1085
+ #### 📝 Description
1086
+
1087
+ <dl>
1088
+ <dd>
1089
+
1090
+ <dl>
1091
+ <dd>
1092
+
1093
+ Converts natural language text into structured FHIR search queries for patient cohort analysis
1094
+
1095
+ </dd>
1096
+ </dl>
1097
+ </dd>
1098
+ </dl>
1099
+
1100
+ #### 🔌 Usage
1101
+
1102
+ <dl>
1103
+ <dd>
1104
+
1105
+ <dl>
1106
+ <dd>
1107
+
1108
+ ```typescript
1109
+ await client.cohort.analyze({
1110
+ text: "female patients over 65 with diabetes but not hypertension",
1111
+ });
1112
+ ```
1113
+
1114
+ </dd>
1115
+ </dl>
1116
+ </dd>
1117
+ </dl>
1118
+
1119
+ #### ⚙️ Parameters
1120
+
1121
+ <dl>
1122
+ <dd>
1123
+
1124
+ <dl>
1125
+ <dd>
1126
+
1127
+ **request:** `phenoml.cohort.CohortRequest`
1128
+
1129
+ </dd>
1130
+ </dl>
1131
+
1132
+ <dl>
1133
+ <dd>
1134
+
1135
+ **requestOptions:** `Cohort.RequestOptions`
1136
+
1137
+ </dd>
1138
+ </dl>
1139
+ </dd>
1140
+ </dl>
1141
+
1142
+ </dd>
1143
+ </dl>
1144
+ </details>
1145
+
1146
+ ## Construe
1147
+
1148
+ <details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">uploadCodeSystem</a>({ ...params }) -> phenoml.ConstrueUploadCodeSystemResponse</code></summary>
1149
+ <dl>
1150
+ <dd>
1151
+
1152
+ #### 📝 Description
1153
+
1154
+ <dl>
1155
+ <dd>
1156
+
1157
+ <dl>
1158
+ <dd>
1159
+
1160
+ Upload a custom medical code system with codes and descriptions for use in code extraction.
1161
+ Upon upload, construe generates embeddings for all of the codes in the code system and stores them in the vector database so you can
1162
+ subsequently use the code system for construe/extract and lang2fhir/create (coming soon!)
1163
+
1164
+ </dd>
1165
+ </dl>
1166
+ </dd>
1167
+ </dl>
1168
+
1169
+ #### 🔌 Usage
1170
+
1171
+ <dl>
1172
+ <dd>
1173
+
1174
+ <dl>
1175
+ <dd>
1176
+
1177
+ ```typescript
1178
+ await client.construe.uploadCodeSystem({
1179
+ name: "CUSTOM_CODES",
1180
+ version: "1.0",
1181
+ format: "json",
1182
+ file: "file",
1183
+ });
1184
+ ```
1185
+
1186
+ </dd>
1187
+ </dl>
1188
+ </dd>
1189
+ </dl>
1190
+
1191
+ #### ⚙️ Parameters
1192
+
1193
+ <dl>
1194
+ <dd>
1195
+
1196
+ <dl>
1197
+ <dd>
1198
+
1199
+ **request:** `phenoml.construe.UploadRequest`
1200
+
1201
+ </dd>
1202
+ </dl>
1203
+
1204
+ <dl>
1205
+ <dd>
1206
+
1207
+ **requestOptions:** `Construe.RequestOptions`
1208
+
1209
+ </dd>
1210
+ </dl>
1211
+ </dd>
1212
+ </dl>
1213
+
1214
+ </dd>
1215
+ </dl>
1216
+ </details>
1217
+
1218
+ <details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">extractCodes</a>({ ...params }) -> phenoml.ExtractCodesResult</code></summary>
1219
+ <dl>
1220
+ <dd>
1221
+
1222
+ #### 📝 Description
1223
+
1224
+ <dl>
1225
+ <dd>
1226
+
1227
+ <dl>
1228
+ <dd>
1229
+
1230
+ Converts natural language text into structured medical codes
1231
+
1232
+ </dd>
1233
+ </dl>
1234
+ </dd>
1235
+ </dl>
1236
+
1237
+ #### 🔌 Usage
1238
+
1239
+ <dl>
1240
+ <dd>
1241
+
1242
+ <dl>
1243
+ <dd>
1244
+
1245
+ ```typescript
1246
+ await client.construe.extractCodes({
1247
+ text: "Patient is a 14-year-old female, previously healthy, who is here for evaluation of abnormal renal ultrasound with atrophic right kidney",
1248
+ });
1249
+ ```
1250
+
1251
+ </dd>
1252
+ </dl>
1253
+ </dd>
1254
+ </dl>
1255
+
1256
+ #### ⚙️ Parameters
1257
+
1258
+ <dl>
1259
+ <dd>
1260
+
1261
+ <dl>
1262
+ <dd>
1263
+
1264
+ **request:** `phenoml.construe.ExtractRequest`
1265
+
1266
+ </dd>
1267
+ </dl>
1268
+
1269
+ <dl>
1270
+ <dd>
1271
+
1272
+ **requestOptions:** `Construe.RequestOptions`
1273
+
1274
+ </dd>
1275
+ </dl>
1276
+ </dd>
1277
+ </dl>
1278
+
1279
+ </dd>
1280
+ </dl>
1281
+ </details>
1282
+
1283
+ <details><summary><code>client.construe.<a href="/src/api/resources/construe/client/Client.ts">cohort</a>({ ...params }) -> phenoml.ConstrueCohortResponse</code></summary>
1284
+ <dl>
1285
+ <dd>
1286
+
1287
+ #### 📝 Description
1288
+
1289
+ <dl>
1290
+ <dd>
1291
+
1292
+ <dl>
1293
+ <dd>
1294
+
1295
+ Creates a patient cohort based on a natural language description.
1296
+ Translates the description into FHIR search queries and optional SQL queries.
1297
+
1298
+ </dd>
1299
+ </dl>
1300
+ </dd>
1301
+ </dl>
1302
+
1303
+ #### 🔌 Usage
1304
+
1305
+ <dl>
1306
+ <dd>
1307
+
1308
+ <dl>
1309
+ <dd>
1310
+
1311
+ ```typescript
1312
+ await client.construe.cohort({
1313
+ text: "Between 20 and 40 years old with hyperlipidemia",
1314
+ });
1315
+ ```
1316
+
1317
+ </dd>
1318
+ </dl>
1319
+ </dd>
1320
+ </dl>
1321
+
1322
+ #### ⚙️ Parameters
1323
+
1324
+ <dl>
1325
+ <dd>
1326
+
1327
+ <dl>
1328
+ <dd>
1329
+
1330
+ **request:** `phenoml.construe.ConstrueCohortRequest`
1331
+
1332
+ </dd>
1333
+ </dl>
1334
+
1335
+ <dl>
1336
+ <dd>
1337
+
1338
+ **requestOptions:** `Construe.RequestOptions`
1339
+
1340
+ </dd>
1341
+ </dl>
1342
+ </dd>
1343
+ </dl>
1344
+
1345
+ </dd>
1346
+ </dl>
1347
+ </details>
1348
+
1349
+ ## Lang2Fhir
1350
+
1351
+ <details><summary><code>client.lang2Fhir.<a href="/src/api/resources/lang2Fhir/client/Client.ts">create</a>({ ...params }) -> phenoml.FhirResource</code></summary>
1352
+ <dl>
1353
+ <dd>
1354
+
1355
+ #### 📝 Description
1356
+
1357
+ <dl>
1358
+ <dd>
1359
+
1360
+ <dl>
1361
+ <dd>
1362
+
1363
+ Converts natural language text into a structured FHIR resource
1364
+
1365
+ </dd>
1366
+ </dl>
1367
+ </dd>
1368
+ </dl>
1369
+
1370
+ #### 🔌 Usage
1371
+
1372
+ <dl>
1373
+ <dd>
1374
+
1375
+ <dl>
1376
+ <dd>
1377
+
1378
+ ```typescript
1379
+ await client.lang2Fhir.create({
1380
+ version: "R4",
1381
+ resource: "auto",
1382
+ text: "Patient has severe asthma with acute exacerbation",
1383
+ });
1384
+ ```
1385
+
1386
+ </dd>
1387
+ </dl>
1388
+ </dd>
1389
+ </dl>
1390
+
1391
+ #### ⚙️ Parameters
1392
+
1393
+ <dl>
1394
+ <dd>
1395
+
1396
+ <dl>
1397
+ <dd>
1398
+
1399
+ **request:** `phenoml.lang2Fhir.CreateRequest`
1400
+
1401
+ </dd>
1402
+ </dl>
1403
+
1404
+ <dl>
1405
+ <dd>
1406
+
1407
+ **requestOptions:** `Lang2Fhir.RequestOptions`
1408
+
1409
+ </dd>
1410
+ </dl>
1411
+ </dd>
1412
+ </dl>
1413
+
1414
+ </dd>
1415
+ </dl>
1416
+ </details>
1417
+
1418
+ <details><summary><code>client.lang2Fhir.<a href="/src/api/resources/lang2Fhir/client/Client.ts">search</a>({ ...params }) -> phenoml.SearchResponse</code></summary>
1419
+ <dl>
1420
+ <dd>
1421
+
1422
+ #### 📝 Description
1423
+
1424
+ <dl>
1425
+ <dd>
1426
+
1427
+ <dl>
1428
+ <dd>
1429
+
1430
+ Converts natural language text into FHIR search parameters
1431
+
1432
+ </dd>
1433
+ </dl>
1434
+ </dd>
1435
+ </dl>
1436
+
1437
+ #### 🔌 Usage
1438
+
1439
+ <dl>
1440
+ <dd>
1441
+
1442
+ <dl>
1443
+ <dd>
1444
+
1445
+ ```typescript
1446
+ await client.lang2Fhir.search({
1447
+ text: "Appointments between March 2-9, 2025",
1448
+ });
1449
+ ```
1450
+
1451
+ </dd>
1452
+ </dl>
1453
+ </dd>
1454
+ </dl>
1455
+
1456
+ #### ⚙️ Parameters
1457
+
1458
+ <dl>
1459
+ <dd>
1460
+
1461
+ <dl>
1462
+ <dd>
1463
+
1464
+ **request:** `phenoml.lang2Fhir.SearchRequest`
1465
+
1466
+ </dd>
1467
+ </dl>
1468
+
1469
+ <dl>
1470
+ <dd>
1471
+
1472
+ **requestOptions:** `Lang2Fhir.RequestOptions`
1473
+
1474
+ </dd>
1475
+ </dl>
1476
+ </dd>
1477
+ </dl>
1478
+
1479
+ </dd>
1480
+ </dl>
1481
+ </details>
1482
+
1483
+ <details><summary><code>client.lang2Fhir.<a href="/src/api/resources/lang2Fhir/client/Client.ts">uploadProfile</a>({ ...params }) -> phenoml.Lang2FhirUploadProfileResponse</code></summary>
1484
+ <dl>
1485
+ <dd>
1486
+
1487
+ #### 📝 Description
1488
+
1489
+ <dl>
1490
+ <dd>
1491
+
1492
+ <dl>
1493
+ <dd>
1494
+
1495
+ Upload a custom FHIR StructureDefinition profile for use with the lang2fhir service
1496
+
1497
+ </dd>
1498
+ </dl>
1499
+ </dd>
1500
+ </dl>
1501
+
1502
+ #### 🔌 Usage
1503
+
1504
+ <dl>
1505
+ <dd>
1506
+
1507
+ <dl>
1508
+ <dd>
1509
+
1510
+ ```typescript
1511
+ await client.lang2Fhir.uploadProfile({
1512
+ version: "version",
1513
+ resource: "custom-patient",
1514
+ profile: "profile",
1515
+ });
1516
+ ```
1517
+
1518
+ </dd>
1519
+ </dl>
1520
+ </dd>
1521
+ </dl>
1522
+
1523
+ #### ⚙️ Parameters
1524
+
1525
+ <dl>
1526
+ <dd>
1527
+
1528
+ <dl>
1529
+ <dd>
1530
+
1531
+ **request:** `phenoml.lang2Fhir.ProfileUploadRequest`
1532
+
1533
+ </dd>
1534
+ </dl>
1535
+
1536
+ <dl>
1537
+ <dd>
1538
+
1539
+ **requestOptions:** `Lang2Fhir.RequestOptions`
1540
+
1541
+ </dd>
1542
+ </dl>
1543
+ </dd>
1544
+ </dl>
1545
+
1546
+ </dd>
1547
+ </dl>
1548
+ </details>
1549
+
1550
+ <details><summary><code>client.lang2Fhir.<a href="/src/api/resources/lang2Fhir/client/Client.ts">document</a>({ ...params }) -> phenoml.FhirResource</code></summary>
1551
+ <dl>
1552
+ <dd>
1553
+
1554
+ #### 📝 Description
1555
+
1556
+ <dl>
1557
+ <dd>
1558
+
1559
+ <dl>
1560
+ <dd>
1561
+
1562
+ Extracts text from a document (PDF or image) and converts it into a structured FHIR resource
1563
+
1564
+ </dd>
1565
+ </dl>
1566
+ </dd>
1567
+ </dl>
1568
+
1569
+ #### 🔌 Usage
1570
+
1571
+ <dl>
1572
+ <dd>
1573
+
1574
+ <dl>
1575
+ <dd>
1576
+
1577
+ ```typescript
1578
+ await client.lang2Fhir.document({
1579
+ version: "R4",
1580
+ resource: "questionnaire",
1581
+ content: "content",
1582
+ fileType: "application/pdf",
1583
+ });
1584
+ ```
1585
+
1586
+ </dd>
1587
+ </dl>
1588
+ </dd>
1589
+ </dl>
1590
+
1591
+ #### ⚙️ Parameters
1592
+
1593
+ <dl>
1594
+ <dd>
1595
+
1596
+ <dl>
1597
+ <dd>
1598
+
1599
+ **request:** `phenoml.lang2Fhir.DocumentRequest`
1600
+
1601
+ </dd>
1602
+ </dl>
1603
+
1604
+ <dl>
1605
+ <dd>
1606
+
1607
+ **requestOptions:** `Lang2Fhir.RequestOptions`
1608
+
1609
+ </dd>
1610
+ </dl>
1611
+ </dd>
1612
+ </dl>
1613
+
1614
+ </dd>
1615
+ </dl>
1616
+ </details>
1617
+
1618
+ ## Tools
1619
+
1620
+ <details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">createFhirResource</a>({ ...params }) -> phenoml.Lang2FhirAndCreateResponse</code></summary>
1621
+ <dl>
1622
+ <dd>
1623
+
1624
+ #### 📝 Description
1625
+
1626
+ <dl>
1627
+ <dd>
1628
+
1629
+ <dl>
1630
+ <dd>
1631
+
1632
+ Converts natural language to FHIR resource and optionally stores it in a FHIR server
1633
+
1634
+ </dd>
1635
+ </dl>
1636
+ </dd>
1637
+ </dl>
1638
+
1639
+ #### 🔌 Usage
1640
+
1641
+ <dl>
1642
+ <dd>
1643
+
1644
+ <dl>
1645
+ <dd>
1646
+
1647
+ ```typescript
1648
+ await client.tools.createFhirResource({
1649
+ resource: "auto",
1650
+ text: "Patient John Doe has severe asthma with acute exacerbation",
1651
+ });
1652
+ ```
1653
+
1654
+ </dd>
1655
+ </dl>
1656
+ </dd>
1657
+ </dl>
1658
+
1659
+ #### ⚙️ Parameters
1660
+
1661
+ <dl>
1662
+ <dd>
1663
+
1664
+ <dl>
1665
+ <dd>
1666
+
1667
+ **request:** `phenoml.tools.Lang2FhirAndCreateRequest`
1668
+
1669
+ </dd>
1670
+ </dl>
1671
+
1672
+ <dl>
1673
+ <dd>
1674
+
1675
+ **requestOptions:** `Tools.RequestOptions`
1676
+
1677
+ </dd>
1678
+ </dl>
1679
+ </dd>
1680
+ </dl>
1681
+
1682
+ </dd>
1683
+ </dl>
1684
+ </details>
1685
+
1686
+ <details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">searchFhirResources</a>({ ...params }) -> phenoml.Lang2FhirAndSearchResponse</code></summary>
1687
+ <dl>
1688
+ <dd>
1689
+
1690
+ #### 📝 Description
1691
+
1692
+ <dl>
1693
+ <dd>
1694
+
1695
+ <dl>
1696
+ <dd>
1697
+
1698
+ Converts natural language to FHIR search parameters and executes search in FHIR server
1699
+
1700
+ </dd>
1701
+ </dl>
1702
+ </dd>
1703
+ </dl>
1704
+
1705
+ #### 🔌 Usage
1706
+
1707
+ <dl>
1708
+ <dd>
1709
+
1710
+ <dl>
1711
+ <dd>
1712
+
1713
+ ```typescript
1714
+ await client.tools.searchFhirResources({
1715
+ text: "Find all appointments for patient John Doe next week",
1716
+ });
1717
+ ```
1718
+
1719
+ </dd>
1720
+ </dl>
1721
+ </dd>
1722
+ </dl>
1723
+
1724
+ #### ⚙️ Parameters
1725
+
1726
+ <dl>
1727
+ <dd>
1728
+
1729
+ <dl>
1730
+ <dd>
1731
+
1732
+ **request:** `phenoml.tools.Lang2FhirAndSearchRequest`
1733
+
1734
+ </dd>
1735
+ </dl>
1736
+
1737
+ <dl>
1738
+ <dd>
1739
+
1740
+ **requestOptions:** `Tools.RequestOptions`
1741
+
1742
+ </dd>
1743
+ </dl>
1744
+ </dd>
1745
+ </dl>
1746
+
1747
+ </dd>
1748
+ </dl>
1749
+ </details>
1750
+
1751
+ <details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">analyzeCohort</a>({ ...params }) -> phenoml.CohortResponse</code></summary>
1752
+ <dl>
1753
+ <dd>
1754
+
1755
+ #### 📝 Description
1756
+
1757
+ <dl>
1758
+ <dd>
1759
+
1760
+ <dl>
1761
+ <dd>
1762
+
1763
+ Uses LLM to extract search concepts from natural language and builds patient cohorts with inclusion/exclusion criteria
1764
+
1765
+ </dd>
1766
+ </dl>
1767
+ </dd>
1768
+ </dl>
1769
+
1770
+ #### 🔌 Usage
1771
+
1772
+ <dl>
1773
+ <dd>
1774
+
1775
+ <dl>
1776
+ <dd>
1777
+
1778
+ ```typescript
1779
+ await client.tools.analyzeCohort({
1780
+ text: "female patients over 20 with diabetes but not hypertension",
1781
+ provider: "medplum",
1782
+ });
1783
+ ```
1784
+
1785
+ </dd>
1786
+ </dl>
1787
+ </dd>
1788
+ </dl>
1789
+
1790
+ #### ⚙️ Parameters
1791
+
1792
+ <dl>
1793
+ <dd>
1794
+
1795
+ <dl>
1796
+ <dd>
1797
+
1798
+ **request:** `phenoml.tools.CohortRequest`
1799
+
1800
+ </dd>
1801
+ </dl>
1802
+
1803
+ <dl>
1804
+ <dd>
1805
+
1806
+ **requestOptions:** `Tools.RequestOptions`
1807
+
1808
+ </dd>
1809
+ </dl>
1810
+ </dd>
1811
+ </dl>
1812
+
1813
+ </dd>
1814
+ </dl>
1815
+ </details>
1816
+
1817
+ ## Tools McpServer
1818
+
1819
+ <details><summary><code>client.tools.mcpServer.<a href="/src/api/resources/tools/resources/mcpServer/client/Client.ts">create</a>({ ...params }) -> phenoml.McpServerResponse</code></summary>
1820
+ <dl>
1821
+ <dd>
1822
+
1823
+ #### 📝 Description
1824
+
1825
+ <dl>
1826
+ <dd>
1827
+
1828
+ <dl>
1829
+ <dd>
1830
+
1831
+ Creates a new MCP server
1832
+
1833
+ </dd>
1834
+ </dl>
1835
+ </dd>
1836
+ </dl>
1837
+
1838
+ #### 🔌 Usage
1839
+
1840
+ <dl>
1841
+ <dd>
1842
+
1843
+ <dl>
1844
+ <dd>
1845
+
1846
+ ```typescript
1847
+ await client.tools.mcpServer.create({
1848
+ name: "My MCP Server",
1849
+ mcp_server_url: "https://mcp.example.com",
1850
+ });
1851
+ ```
1852
+
1853
+ </dd>
1854
+ </dl>
1855
+ </dd>
1856
+ </dl>
1857
+
1858
+ #### ⚙️ Parameters
1859
+
1860
+ <dl>
1861
+ <dd>
1862
+
1863
+ <dl>
1864
+ <dd>
1865
+
1866
+ **request:** `phenoml.tools.McpServerCreateRequest`
1867
+
1868
+ </dd>
1869
+ </dl>
1870
+
1871
+ <dl>
1872
+ <dd>
1873
+
1874
+ **requestOptions:** `McpServer.RequestOptions`
1875
+
1876
+ </dd>
1877
+ </dl>
1878
+ </dd>
1879
+ </dl>
1880
+
1881
+ </dd>
1882
+ </dl>
1883
+ </details>
1884
+
1885
+ <details><summary><code>client.tools.mcpServer.<a href="/src/api/resources/tools/resources/mcpServer/client/Client.ts">list</a>() -> phenoml.McpServerResponse</code></summary>
1886
+ <dl>
1887
+ <dd>
1888
+
1889
+ #### 📝 Description
1890
+
1891
+ <dl>
1892
+ <dd>
1893
+
1894
+ <dl>
1895
+ <dd>
1896
+
1897
+ Lists all MCP servers for a specific user
1898
+
1899
+ </dd>
1900
+ </dl>
1901
+ </dd>
1902
+ </dl>
1903
+
1904
+ #### 🔌 Usage
1905
+
1906
+ <dl>
1907
+ <dd>
1908
+
1909
+ <dl>
1910
+ <dd>
1911
+
1912
+ ```typescript
1913
+ await client.tools.mcpServer.list();
1914
+ ```
1915
+
1916
+ </dd>
1917
+ </dl>
1918
+ </dd>
1919
+ </dl>
1920
+
1921
+ #### ⚙️ Parameters
1922
+
1923
+ <dl>
1924
+ <dd>
1925
+
1926
+ <dl>
1927
+ <dd>
1928
+
1929
+ **requestOptions:** `McpServer.RequestOptions`
1930
+
1931
+ </dd>
1932
+ </dl>
1933
+ </dd>
1934
+ </dl>
1935
+
1936
+ </dd>
1937
+ </dl>
1938
+ </details>
1939
+
1940
+ <details><summary><code>client.tools.mcpServer.<a href="/src/api/resources/tools/resources/mcpServer/client/Client.ts">get</a>(mcpServerId) -> phenoml.McpServerResponse</code></summary>
1941
+ <dl>
1942
+ <dd>
1943
+
1944
+ #### 📝 Description
1945
+
1946
+ <dl>
1947
+ <dd>
1948
+
1949
+ <dl>
1950
+ <dd>
1951
+
1952
+ Gets a MCP server by ID
1953
+
1954
+ </dd>
1955
+ </dl>
1956
+ </dd>
1957
+ </dl>
1958
+
1959
+ #### 🔌 Usage
1960
+
1961
+ <dl>
1962
+ <dd>
1963
+
1964
+ <dl>
1965
+ <dd>
1966
+
1967
+ ```typescript
1968
+ await client.tools.mcpServer.get("mcp_server_id");
1969
+ ```
1970
+
1971
+ </dd>
1972
+ </dl>
1973
+ </dd>
1974
+ </dl>
1975
+
1976
+ #### ⚙️ Parameters
1977
+
1978
+ <dl>
1979
+ <dd>
1980
+
1981
+ <dl>
1982
+ <dd>
1983
+
1984
+ **mcpServerId:** `string` — ID of the MCP server to retrieve
1985
+
1986
+ </dd>
1987
+ </dl>
1988
+
1989
+ <dl>
1990
+ <dd>
1991
+
1992
+ **requestOptions:** `McpServer.RequestOptions`
1993
+
1994
+ </dd>
1995
+ </dl>
1996
+ </dd>
1997
+ </dl>
1998
+
1999
+ </dd>
2000
+ </dl>
2001
+ </details>
2002
+
2003
+ <details><summary><code>client.tools.mcpServer.<a href="/src/api/resources/tools/resources/mcpServer/client/Client.ts">delete</a>(mcpServerId) -> phenoml.McpServerResponse</code></summary>
2004
+ <dl>
2005
+ <dd>
2006
+
2007
+ #### 📝 Description
2008
+
2009
+ <dl>
2010
+ <dd>
2011
+
2012
+ <dl>
2013
+ <dd>
2014
+
2015
+ Deletes a MCP server by ID
2016
+
2017
+ </dd>
2018
+ </dl>
2019
+ </dd>
2020
+ </dl>
2021
+
2022
+ #### 🔌 Usage
2023
+
2024
+ <dl>
2025
+ <dd>
2026
+
2027
+ <dl>
2028
+ <dd>
2029
+
2030
+ ```typescript
2031
+ await client.tools.mcpServer.delete("mcp_server_id");
2032
+ ```
2033
+
2034
+ </dd>
2035
+ </dl>
2036
+ </dd>
2037
+ </dl>
2038
+
2039
+ #### ⚙️ Parameters
2040
+
2041
+ <dl>
2042
+ <dd>
2043
+
2044
+ <dl>
2045
+ <dd>
2046
+
2047
+ **mcpServerId:** `string` — ID of the MCP server to delete
2048
+
2049
+ </dd>
2050
+ </dl>
2051
+
2052
+ <dl>
2053
+ <dd>
2054
+
2055
+ **requestOptions:** `McpServer.RequestOptions`
2056
+
2057
+ </dd>
2058
+ </dl>
2059
+ </dd>
2060
+ </dl>
2061
+
2062
+ </dd>
2063
+ </dl>
2064
+ </details>
2065
+
2066
+ ## Tools McpServer Tools
2067
+
2068
+ <details><summary><code>client.tools.mcpServer.tools.<a href="/src/api/resources/tools/resources/mcpServer/resources/tools/client/Client.ts">list</a>(mcpServerId) -> phenoml.McpServerToolResponse</code></summary>
2069
+ <dl>
2070
+ <dd>
2071
+
2072
+ #### 📝 Description
2073
+
2074
+ <dl>
2075
+ <dd>
2076
+
2077
+ <dl>
2078
+ <dd>
2079
+
2080
+ Lists all MCP server tools for a specific MCP server
2081
+
2082
+ </dd>
2083
+ </dl>
2084
+ </dd>
2085
+ </dl>
2086
+
2087
+ #### 🔌 Usage
2088
+
2089
+ <dl>
2090
+ <dd>
2091
+
2092
+ <dl>
2093
+ <dd>
2094
+
2095
+ ```typescript
2096
+ await client.tools.mcpServer.tools.list("mcp_server_id");
2097
+ ```
2098
+
2099
+ </dd>
2100
+ </dl>
2101
+ </dd>
2102
+ </dl>
2103
+
2104
+ #### ⚙️ Parameters
2105
+
2106
+ <dl>
2107
+ <dd>
2108
+
2109
+ <dl>
2110
+ <dd>
2111
+
2112
+ **mcpServerId:** `string` — ID of the MCP server to list tools for
2113
+
2114
+ </dd>
2115
+ </dl>
2116
+
2117
+ <dl>
2118
+ <dd>
2119
+
2120
+ **requestOptions:** `Tools.RequestOptions`
2121
+
2122
+ </dd>
2123
+ </dl>
2124
+ </dd>
2125
+ </dl>
2126
+
2127
+ </dd>
2128
+ </dl>
2129
+ </details>
2130
+
2131
+ <details><summary><code>client.tools.mcpServer.tools.<a href="/src/api/resources/tools/resources/mcpServer/resources/tools/client/Client.ts">get</a>(mcpServerToolId) -> phenoml.McpServerToolResponse</code></summary>
2132
+ <dl>
2133
+ <dd>
2134
+
2135
+ #### 📝 Description
2136
+
2137
+ <dl>
2138
+ <dd>
2139
+
2140
+ <dl>
2141
+ <dd>
2142
+
2143
+ Gets a MCP server tool by ID
2144
+
2145
+ </dd>
2146
+ </dl>
2147
+ </dd>
2148
+ </dl>
2149
+
2150
+ #### 🔌 Usage
2151
+
2152
+ <dl>
2153
+ <dd>
2154
+
2155
+ <dl>
2156
+ <dd>
2157
+
2158
+ ```typescript
2159
+ await client.tools.mcpServer.tools.get("mcp_server_tool_id");
2160
+ ```
2161
+
2162
+ </dd>
2163
+ </dl>
2164
+ </dd>
2165
+ </dl>
2166
+
2167
+ #### ⚙️ Parameters
2168
+
2169
+ <dl>
2170
+ <dd>
2171
+
2172
+ <dl>
2173
+ <dd>
2174
+
2175
+ **mcpServerToolId:** `string` — ID of the MCP server tool to retrieve
2176
+
2177
+ </dd>
2178
+ </dl>
2179
+
2180
+ <dl>
2181
+ <dd>
2182
+
2183
+ **requestOptions:** `Tools.RequestOptions`
2184
+
2185
+ </dd>
2186
+ </dl>
2187
+ </dd>
2188
+ </dl>
2189
+
2190
+ </dd>
2191
+ </dl>
2192
+ </details>
2193
+
2194
+ <details><summary><code>client.tools.mcpServer.tools.<a href="/src/api/resources/tools/resources/mcpServer/resources/tools/client/Client.ts">delete</a>(mcpServerToolId) -> phenoml.McpServerToolResponse</code></summary>
2195
+ <dl>
2196
+ <dd>
2197
+
2198
+ #### 📝 Description
2199
+
2200
+ <dl>
2201
+ <dd>
2202
+
2203
+ <dl>
2204
+ <dd>
2205
+
2206
+ Deletes a MCP server tool by ID
2207
+
2208
+ </dd>
2209
+ </dl>
2210
+ </dd>
2211
+ </dl>
2212
+
2213
+ #### 🔌 Usage
2214
+
2215
+ <dl>
2216
+ <dd>
2217
+
2218
+ <dl>
2219
+ <dd>
2220
+
2221
+ ```typescript
2222
+ await client.tools.mcpServer.tools.delete("mcp_server_tool_id");
2223
+ ```
2224
+
2225
+ </dd>
2226
+ </dl>
2227
+ </dd>
2228
+ </dl>
2229
+
2230
+ #### ⚙️ Parameters
2231
+
2232
+ <dl>
2233
+ <dd>
2234
+
2235
+ <dl>
2236
+ <dd>
2237
+
2238
+ **mcpServerToolId:** `string` — ID of the MCP server tool to delete
2239
+
2240
+ </dd>
2241
+ </dl>
2242
+
2243
+ <dl>
2244
+ <dd>
2245
+
2246
+ **requestOptions:** `Tools.RequestOptions`
2247
+
2248
+ </dd>
2249
+ </dl>
2250
+ </dd>
2251
+ </dl>
2252
+
2253
+ </dd>
2254
+ </dl>
2255
+ </details>
2256
+
2257
+ <details><summary><code>client.tools.mcpServer.tools.<a href="/src/api/resources/tools/resources/mcpServer/resources/tools/client/Client.ts">call</a>(mcpServerToolId, { ...params }) -> phenoml.McpServerToolCallResponse</code></summary>
2258
+ <dl>
2259
+ <dd>
2260
+
2261
+ #### 📝 Description
2262
+
2263
+ <dl>
2264
+ <dd>
2265
+
2266
+ <dl>
2267
+ <dd>
2268
+
2269
+ Calls a MCP server tool
2270
+
2271
+ </dd>
2272
+ </dl>
2273
+ </dd>
2274
+ </dl>
2275
+
2276
+ #### 🔌 Usage
2277
+
2278
+ <dl>
2279
+ <dd>
2280
+
2281
+ <dl>
2282
+ <dd>
2283
+
2284
+ ```typescript
2285
+ await client.tools.mcpServer.tools.call("mcp_server_tool_id", {
2286
+ arguments: {
2287
+ title: "PhenoML Agent API",
2288
+ },
2289
+ });
2290
+ ```
2291
+
2292
+ </dd>
2293
+ </dl>
2294
+ </dd>
2295
+ </dl>
2296
+
2297
+ #### ⚙️ Parameters
2298
+
2299
+ <dl>
2300
+ <dd>
2301
+
2302
+ <dl>
2303
+ <dd>
2304
+
2305
+ **mcpServerToolId:** `string` — ID of the MCP server tool to call
2306
+
2307
+ </dd>
2308
+ </dl>
2309
+
2310
+ <dl>
2311
+ <dd>
2312
+
2313
+ **request:** `phenoml.tools.mcpServer.McpServerToolCallRequest`
2314
+
2315
+ </dd>
2316
+ </dl>
2317
+
2318
+ <dl>
2319
+ <dd>
2320
+
2321
+ **requestOptions:** `Tools.RequestOptions`
2322
+
2323
+ </dd>
2324
+ </dl>
2325
+ </dd>
2326
+ </dl>
2327
+
2328
+ </dd>
2329
+ </dl>
2330
+ </details>