phenoml 0.0.3 → 0.0.6

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 (908) hide show
  1. package/dist/cjs/BaseClient.d.ts +27 -0
  2. package/dist/cjs/{api/resources/agent/client/requests/AgentUpdateRequest.js → BaseClient.js} +1 -3
  3. package/dist/cjs/Client.d.ts +13 -25
  4. package/dist/cjs/Client.js +23 -10
  5. package/dist/cjs/api/index.d.ts +1 -0
  6. package/dist/cjs/api/index.js +1 -0
  7. package/dist/cjs/api/resources/agent/client/Client.d.ts +20 -30
  8. package/dist/cjs/api/resources/agent/client/Client.js +48 -36
  9. package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.d.ts +0 -6
  10. package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.js +1 -3
  11. package/dist/cjs/api/resources/agent/client/requests/AgentGetChatMessagesRequest.d.ts +4 -4
  12. package/dist/cjs/api/resources/agent/client/requests/AgentGetChatMessagesRequest.js +1 -3
  13. package/dist/cjs/api/resources/agent/client/requests/AgentListRequest.d.ts +4 -4
  14. package/dist/cjs/api/resources/agent/client/requests/AgentListRequest.js +1 -3
  15. package/dist/cjs/api/resources/agent/client/requests/index.d.ts +0 -2
  16. package/dist/cjs/api/resources/agent/errors/BadRequestError.d.ts +0 -3
  17. package/dist/cjs/api/resources/agent/errors/BadRequestError.js +1 -3
  18. package/dist/cjs/api/resources/agent/errors/ForbiddenError.d.ts +0 -3
  19. package/dist/cjs/api/resources/agent/errors/ForbiddenError.js +1 -3
  20. package/dist/cjs/api/resources/agent/errors/InternalServerError.d.ts +0 -3
  21. package/dist/cjs/api/resources/agent/errors/InternalServerError.js +1 -3
  22. package/dist/cjs/api/resources/agent/errors/NotFoundError.d.ts +0 -3
  23. package/dist/cjs/api/resources/agent/errors/NotFoundError.js +1 -3
  24. package/dist/cjs/api/resources/agent/errors/UnauthorizedError.d.ts +0 -3
  25. package/dist/cjs/api/resources/agent/errors/UnauthorizedError.js +1 -3
  26. package/dist/cjs/api/resources/agent/resources/prompts/client/Client.d.ts +5 -25
  27. package/dist/cjs/api/resources/agent/resources/prompts/client/Client.js +28 -26
  28. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.d.ts +0 -3
  29. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.js +1 -3
  30. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.d.ts +0 -3
  31. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.js +1 -3
  32. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.d.ts +0 -3
  33. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.js +1 -3
  34. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsListResponse.d.ts +0 -3
  35. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsListResponse.js +1 -3
  36. package/dist/cjs/api/resources/agent/types/AgentChatResponse.d.ts +0 -3
  37. package/dist/cjs/api/resources/agent/types/AgentChatResponse.js +1 -3
  38. package/dist/cjs/api/resources/agent/types/AgentCreateRequest.d.ts +28 -0
  39. package/dist/cjs/api/resources/agent/{client/requests → types}/AgentCreateRequest.js +1 -3
  40. package/dist/cjs/api/resources/agent/types/AgentDeleteResponse.d.ts +0 -3
  41. package/dist/cjs/api/resources/agent/types/AgentDeleteResponse.js +1 -3
  42. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.ts +1 -4
  43. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestOrder.js +1 -3
  44. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesResponse.d.ts +0 -3
  45. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesResponse.js +1 -3
  46. package/dist/cjs/api/resources/agent/types/AgentListResponse.d.ts +0 -3
  47. package/dist/cjs/api/resources/agent/types/AgentListResponse.js +1 -3
  48. package/dist/cjs/api/resources/agent/types/AgentPromptsResponse.d.ts +0 -3
  49. package/dist/cjs/api/resources/agent/types/AgentPromptsResponse.js +1 -3
  50. package/dist/cjs/api/resources/agent/types/AgentResponse.d.ts +0 -3
  51. package/dist/cjs/api/resources/agent/types/AgentResponse.js +1 -3
  52. package/dist/cjs/api/resources/agent/types/AgentTemplate.d.ts +14 -7
  53. package/dist/cjs/api/resources/agent/types/AgentTemplate.js +1 -3
  54. package/dist/cjs/api/resources/agent/types/ChatMessageTemplate.d.ts +0 -3
  55. package/dist/cjs/api/resources/agent/types/ChatMessageTemplate.js +1 -3
  56. package/dist/cjs/api/resources/agent/types/ChatSessionTemplate.d.ts +0 -3
  57. package/dist/cjs/api/resources/agent/types/ChatSessionTemplate.js +1 -3
  58. package/dist/cjs/api/resources/agent/types/JsonPatch.d.ts +0 -3
  59. package/dist/cjs/api/resources/agent/types/JsonPatch.js +1 -3
  60. package/dist/cjs/api/resources/agent/types/JsonPatchOperation.d.ts +3 -7
  61. package/dist/cjs/api/resources/agent/types/JsonPatchOperation.js +2 -3
  62. package/dist/cjs/api/resources/agent/types/PromptTemplate.d.ts +0 -3
  63. package/dist/cjs/api/resources/agent/types/PromptTemplate.js +1 -3
  64. package/dist/cjs/api/resources/agent/types/SuccessResponse.d.ts +0 -3
  65. package/dist/cjs/api/resources/agent/types/SuccessResponse.js +1 -3
  66. package/dist/cjs/api/resources/agent/types/index.d.ts +1 -4
  67. package/dist/cjs/api/resources/agent/types/index.js +1 -4
  68. package/dist/cjs/api/resources/authtoken/client/Client.d.ts +3 -14
  69. package/dist/cjs/api/resources/authtoken/client/Client.js +2 -4
  70. package/dist/cjs/api/resources/authtoken/errors/BadRequestError.d.ts +0 -3
  71. package/dist/cjs/api/resources/authtoken/errors/BadRequestError.js +1 -3
  72. package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.d.ts +0 -3
  73. package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.js +1 -3
  74. package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.d.ts +2 -2
  75. package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.js +1 -1
  76. package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.d.ts +0 -3
  77. package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.js +1 -3
  78. package/dist/cjs/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.d.ts +0 -3
  79. package/dist/cjs/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.js +1 -3
  80. package/dist/cjs/api/resources/authtoken/types/BadRequestErrorBody.d.ts +0 -3
  81. package/dist/cjs/api/resources/authtoken/types/BadRequestErrorBody.js +1 -3
  82. package/dist/cjs/api/resources/authtoken/types/UnauthorizedErrorBody.d.ts +0 -3
  83. package/dist/cjs/api/resources/authtoken/types/UnauthorizedErrorBody.js +1 -3
  84. package/dist/cjs/api/resources/cohort/client/Client.d.ts +5 -25
  85. package/dist/cjs/api/resources/cohort/client/Client.js +10 -8
  86. package/dist/cjs/api/resources/cohort/client/requests/CohortRequest.d.ts +0 -3
  87. package/dist/cjs/api/resources/cohort/client/requests/CohortRequest.js +1 -3
  88. package/dist/cjs/api/resources/cohort/errors/BadRequestError.d.ts +0 -3
  89. package/dist/cjs/api/resources/cohort/errors/BadRequestError.js +1 -3
  90. package/dist/cjs/api/resources/cohort/errors/InternalServerError.d.ts +0 -3
  91. package/dist/cjs/api/resources/cohort/errors/InternalServerError.js +1 -3
  92. package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.d.ts +0 -3
  93. package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.js +1 -3
  94. package/dist/cjs/api/resources/cohort/types/CohortResponse.d.ts +0 -3
  95. package/dist/cjs/api/resources/cohort/types/CohortResponse.js +1 -3
  96. package/dist/cjs/api/resources/cohort/types/SearchConcept.d.ts +0 -3
  97. package/dist/cjs/api/resources/cohort/types/SearchConcept.js +1 -3
  98. package/dist/cjs/api/resources/construe/client/Client.d.ts +5 -25
  99. package/dist/cjs/api/resources/construe/client/Client.js +16 -14
  100. package/dist/cjs/api/resources/construe/client/requests/ConstrueCohortRequest.d.ts +0 -3
  101. package/dist/cjs/api/resources/construe/client/requests/ConstrueCohortRequest.js +1 -3
  102. package/dist/cjs/api/resources/construe/client/requests/ExtractRequest.d.ts +0 -3
  103. package/dist/cjs/api/resources/construe/client/requests/ExtractRequest.js +1 -3
  104. package/dist/cjs/api/resources/construe/client/requests/UploadRequest.d.ts +2 -7
  105. package/dist/cjs/api/resources/construe/client/requests/UploadRequest.js +2 -3
  106. package/dist/cjs/api/resources/construe/errors/BadRequestError.d.ts +0 -3
  107. package/dist/cjs/api/resources/construe/errors/BadRequestError.js +1 -3
  108. package/dist/cjs/api/resources/construe/errors/ConflictError.d.ts +0 -3
  109. package/dist/cjs/api/resources/construe/errors/ConflictError.js +1 -3
  110. package/dist/cjs/api/resources/construe/errors/FailedDependencyError.d.ts +0 -3
  111. package/dist/cjs/api/resources/construe/errors/FailedDependencyError.js +1 -3
  112. package/dist/cjs/api/resources/construe/errors/InternalServerError.d.ts +0 -3
  113. package/dist/cjs/api/resources/construe/errors/InternalServerError.js +1 -3
  114. package/dist/cjs/api/resources/construe/errors/UnauthorizedError.d.ts +0 -3
  115. package/dist/cjs/api/resources/construe/errors/UnauthorizedError.js +1 -3
  116. package/dist/cjs/api/resources/construe/types/BadRequestErrorBody.d.ts +0 -3
  117. package/dist/cjs/api/resources/construe/types/BadRequestErrorBody.js +1 -3
  118. package/dist/cjs/api/resources/construe/types/ConstrueCohortResponse.d.ts +0 -3
  119. package/dist/cjs/api/resources/construe/types/ConstrueCohortResponse.js +1 -3
  120. package/dist/cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.ts +0 -3
  121. package/dist/cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.js +1 -3
  122. package/dist/cjs/api/resources/construe/types/ExtractCodesResult.d.ts +0 -3
  123. package/dist/cjs/api/resources/construe/types/ExtractCodesResult.js +1 -3
  124. package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.d.ts +1 -4
  125. package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.js +1 -3
  126. package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.d.ts +0 -3
  127. package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.js +1 -3
  128. package/dist/cjs/api/resources/construe/types/ExtractedCodeResult.d.ts +0 -3
  129. package/dist/cjs/api/resources/construe/types/ExtractedCodeResult.js +1 -3
  130. package/dist/cjs/api/resources/construe/types/InternalServerErrorBody.d.ts +0 -3
  131. package/dist/cjs/api/resources/construe/types/InternalServerErrorBody.js +1 -3
  132. package/dist/cjs/api/resources/construe/types/UnauthorizedErrorBody.d.ts +0 -3
  133. package/dist/cjs/api/resources/construe/types/UnauthorizedErrorBody.js +1 -3
  134. package/dist/cjs/api/resources/fhir/client/Client.d.ts +294 -0
  135. package/dist/cjs/api/resources/fhir/client/Client.js +693 -0
  136. package/dist/cjs/api/resources/fhir/client/index.d.ts +2 -0
  137. package/dist/cjs/api/resources/fhir/client/index.js +17 -0
  138. package/dist/cjs/api/resources/fhir/client/requests/FhirCreateRequest.d.ts +25 -0
  139. package/dist/cjs/api/resources/{agent/types/AgentFhirConfig.js → fhir/client/requests/FhirCreateRequest.js} +1 -3
  140. package/dist/cjs/api/resources/fhir/client/requests/FhirDeleteRequest.d.ts +10 -0
  141. package/dist/cjs/api/resources/{agent/types/AgentProvider.js → fhir/client/requests/FhirDeleteRequest.js} +1 -3
  142. package/dist/cjs/api/resources/fhir/client/requests/FhirExecuteBundleRequest.d.ts +44 -0
  143. package/dist/cjs/api/resources/fhir/client/requests/FhirExecuteBundleRequest.js +3 -0
  144. package/dist/cjs/api/resources/fhir/client/requests/FhirPatchRequest.d.ts +66 -0
  145. package/dist/cjs/api/resources/fhir/client/requests/FhirPatchRequest.js +3 -0
  146. package/dist/cjs/api/resources/fhir/client/requests/FhirSearchRequest.d.ts +23 -0
  147. package/dist/cjs/api/resources/fhir/client/requests/FhirSearchRequest.js +3 -0
  148. package/dist/cjs/api/resources/fhir/client/requests/FhirUpsertRequest.d.ts +27 -0
  149. package/dist/cjs/api/resources/fhir/client/requests/FhirUpsertRequest.js +3 -0
  150. package/dist/cjs/api/resources/fhir/client/requests/index.d.ts +6 -0
  151. package/dist/cjs/api/resources/fhir/client/requests/index.js +2 -0
  152. package/dist/cjs/api/resources/fhir/errors/BadRequestError.d.ts +5 -0
  153. package/dist/cjs/api/resources/fhir/errors/BadRequestError.js +50 -0
  154. package/dist/cjs/api/resources/fhir/errors/InternalServerError.d.ts +5 -0
  155. package/dist/cjs/api/resources/fhir/errors/InternalServerError.js +50 -0
  156. package/dist/cjs/api/resources/fhir/errors/NotFoundError.d.ts +5 -0
  157. package/dist/cjs/api/resources/fhir/errors/NotFoundError.js +50 -0
  158. package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.d.ts +5 -0
  159. package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.js +50 -0
  160. package/dist/cjs/api/resources/fhir/errors/index.d.ts +4 -0
  161. package/dist/cjs/api/resources/fhir/errors/index.js +20 -0
  162. package/dist/cjs/api/resources/fhir/index.d.ts +3 -0
  163. package/dist/cjs/api/resources/fhir/index.js +19 -0
  164. package/dist/cjs/api/resources/fhir/types/ErrorResponse.d.ts +11 -0
  165. package/dist/cjs/api/resources/fhir/types/ErrorResponse.js +3 -0
  166. package/dist/cjs/api/resources/fhir/types/FhirBundle.d.ts +54 -0
  167. package/dist/cjs/api/resources/fhir/types/FhirBundle.js +23 -0
  168. package/dist/cjs/api/resources/fhir/types/FhirPatchRequestBodyItem.d.ts +22 -0
  169. package/dist/cjs/api/resources/fhir/types/FhirPatchRequestBodyItem.js +16 -0
  170. package/dist/cjs/api/resources/fhir/types/FhirResource.d.ts +24 -0
  171. package/dist/cjs/api/resources/fhir/types/FhirResource.js +3 -0
  172. package/dist/cjs/api/resources/fhir/types/FhirSearchResponse.d.ts +2 -0
  173. package/dist/cjs/api/resources/fhir/types/FhirSearchResponse.js +3 -0
  174. package/dist/cjs/api/resources/fhir/types/index.d.ts +5 -0
  175. package/dist/cjs/api/resources/fhir/types/index.js +21 -0
  176. package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +141 -0
  177. package/dist/cjs/api/resources/fhirProvider/client/Client.js +594 -0
  178. package/dist/cjs/api/resources/fhirProvider/client/index.d.ts +2 -0
  179. package/dist/cjs/api/resources/fhirProvider/client/index.js +17 -0
  180. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.d.ts +17 -0
  181. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.js +3 -0
  182. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.d.ts +27 -0
  183. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.js +3 -0
  184. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.d.ts +10 -0
  185. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.js +3 -0
  186. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.d.ts +10 -0
  187. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.js +3 -0
  188. package/dist/cjs/api/resources/fhirProvider/client/requests/index.d.ts +4 -0
  189. package/dist/cjs/api/resources/fhirProvider/client/requests/index.js +2 -0
  190. package/dist/cjs/api/resources/fhirProvider/errors/BadRequestError.d.ts +5 -0
  191. package/dist/cjs/api/resources/fhirProvider/errors/BadRequestError.js +50 -0
  192. package/dist/cjs/api/resources/fhirProvider/errors/ForbiddenError.d.ts +5 -0
  193. package/dist/cjs/api/resources/fhirProvider/errors/ForbiddenError.js +50 -0
  194. package/dist/cjs/api/resources/fhirProvider/errors/InternalServerError.d.ts +5 -0
  195. package/dist/cjs/api/resources/fhirProvider/errors/InternalServerError.js +50 -0
  196. package/dist/cjs/api/resources/fhirProvider/errors/NotFoundError.d.ts +5 -0
  197. package/dist/cjs/api/resources/fhirProvider/errors/NotFoundError.js +50 -0
  198. package/dist/cjs/api/resources/fhirProvider/errors/UnauthorizedError.d.ts +5 -0
  199. package/dist/cjs/api/resources/fhirProvider/errors/UnauthorizedError.js +50 -0
  200. package/dist/cjs/api/resources/fhirProvider/errors/index.d.ts +5 -0
  201. package/dist/cjs/api/resources/fhirProvider/errors/index.js +21 -0
  202. package/dist/cjs/api/resources/fhirProvider/index.d.ts +3 -0
  203. package/dist/cjs/api/resources/fhirProvider/index.js +19 -0
  204. package/dist/cjs/api/resources/fhirProvider/types/AuthMethod.d.ts +9 -0
  205. package/dist/cjs/api/resources/fhirProvider/types/AuthMethod.js +12 -0
  206. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderAuthConfig.d.ts +19 -0
  207. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderAuthConfig.js +3 -0
  208. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.ts +4 -0
  209. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderDeleteResponse.js +3 -0
  210. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderListResponse.d.ts +6 -0
  211. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderListResponse.js +3 -0
  212. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.d.ts +6 -0
  213. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.js +3 -0
  214. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderResponse.d.ts +6 -0
  215. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderResponse.js +3 -0
  216. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.d.ts +6 -0
  217. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.js +3 -0
  218. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderTemplate.d.ts +22 -0
  219. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderTemplate.js +3 -0
  220. package/dist/cjs/api/resources/fhirProvider/types/FhirQueryResponse.d.ts +16 -0
  221. package/dist/cjs/api/resources/fhirProvider/types/FhirQueryResponse.js +3 -0
  222. package/dist/cjs/api/resources/fhirProvider/types/JsonWebKey.d.ts +17 -0
  223. package/dist/cjs/api/resources/fhirProvider/types/JsonWebKey.js +3 -0
  224. package/dist/cjs/api/resources/fhirProvider/types/Provider.d.ts +12 -0
  225. package/dist/cjs/api/resources/fhirProvider/types/Provider.js +15 -0
  226. package/dist/cjs/api/resources/fhirProvider/types/ServiceAccountKey.d.ts +16 -0
  227. package/dist/cjs/api/resources/fhirProvider/types/ServiceAccountKey.js +3 -0
  228. package/dist/cjs/api/resources/fhirProvider/types/SmartConfiguration.d.ts +15 -0
  229. package/dist/cjs/api/resources/fhirProvider/types/SmartConfiguration.js +3 -0
  230. package/dist/cjs/api/resources/fhirProvider/types/index.d.ts +13 -0
  231. package/dist/cjs/api/resources/fhirProvider/types/index.js +29 -0
  232. package/dist/cjs/api/resources/index.d.ts +3 -0
  233. package/dist/cjs/api/resources/index.js +4 -1
  234. package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +5 -25
  235. package/dist/cjs/api/resources/lang2Fhir/client/Client.js +19 -17
  236. package/dist/cjs/api/resources/lang2Fhir/client/requests/CreateRequest.d.ts +2 -7
  237. package/dist/cjs/api/resources/lang2Fhir/client/requests/CreateRequest.js +2 -3
  238. package/dist/cjs/api/resources/lang2Fhir/client/requests/DocumentRequest.d.ts +4 -11
  239. package/dist/cjs/api/resources/lang2Fhir/client/requests/DocumentRequest.js +3 -3
  240. package/dist/cjs/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.d.ts +0 -3
  241. package/dist/cjs/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.js +1 -3
  242. package/dist/cjs/api/resources/lang2Fhir/client/requests/SearchRequest.d.ts +0 -3
  243. package/dist/cjs/api/resources/lang2Fhir/client/requests/SearchRequest.js +1 -3
  244. package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.d.ts +0 -3
  245. package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.js +1 -3
  246. package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.d.ts +0 -3
  247. package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.js +1 -3
  248. package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.d.ts +0 -3
  249. package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.js +1 -3
  250. package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.d.ts +0 -3
  251. package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.js +1 -3
  252. package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.d.ts +0 -3
  253. package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.js +1 -3
  254. package/dist/cjs/api/resources/lang2Fhir/types/FhirResource.d.ts +0 -3
  255. package/dist/cjs/api/resources/lang2Fhir/types/FhirResource.js +1 -3
  256. package/dist/cjs/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.ts +0 -3
  257. package/dist/cjs/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.js +1 -3
  258. package/dist/cjs/api/resources/lang2Fhir/types/SearchResponse.d.ts +0 -3
  259. package/dist/cjs/api/resources/lang2Fhir/types/SearchResponse.js +1 -3
  260. package/dist/cjs/api/resources/tools/client/Client.d.ts +6 -26
  261. package/dist/cjs/api/resources/tools/client/Client.js +17 -15
  262. package/dist/cjs/api/resources/tools/client/requests/CohortRequest.d.ts +3 -20
  263. package/dist/cjs/api/resources/tools/client/requests/CohortRequest.js +1 -13
  264. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.ts +4 -21
  265. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.js +2 -9
  266. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.ts +2 -19
  267. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.js +1 -13
  268. package/dist/cjs/api/resources/tools/errors/BadRequestError.d.ts +0 -3
  269. package/dist/cjs/api/resources/tools/errors/BadRequestError.js +1 -3
  270. package/dist/cjs/api/resources/tools/errors/FailedDependencyError.d.ts +0 -3
  271. package/dist/cjs/api/resources/tools/errors/FailedDependencyError.js +1 -3
  272. package/dist/cjs/api/resources/tools/errors/ForbiddenError.d.ts +0 -3
  273. package/dist/cjs/api/resources/tools/errors/ForbiddenError.js +1 -3
  274. package/dist/cjs/api/resources/tools/errors/InternalServerError.d.ts +0 -3
  275. package/dist/cjs/api/resources/tools/errors/InternalServerError.js +1 -3
  276. package/dist/cjs/api/resources/tools/errors/UnauthorizedError.d.ts +0 -3
  277. package/dist/cjs/api/resources/tools/errors/UnauthorizedError.js +1 -3
  278. package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.d.ts +5 -25
  279. package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.js +19 -17
  280. package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.d.ts +0 -3
  281. package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.js +1 -3
  282. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.ts +5 -25
  283. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +19 -17
  284. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.ts +0 -3
  285. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.js +1 -3
  286. package/dist/cjs/api/resources/tools/types/CohortResponse.d.ts +0 -3
  287. package/dist/cjs/api/resources/tools/types/CohortResponse.js +1 -3
  288. package/dist/cjs/api/resources/tools/types/Lang2FhirAndCreateResponse.d.ts +0 -3
  289. package/dist/cjs/api/resources/tools/types/Lang2FhirAndCreateResponse.js +1 -3
  290. package/dist/cjs/api/resources/tools/types/Lang2FhirAndSearchResponse.d.ts +0 -3
  291. package/dist/cjs/api/resources/tools/types/Lang2FhirAndSearchResponse.js +1 -3
  292. package/dist/cjs/api/resources/tools/types/McpServerResponse.d.ts +0 -3
  293. package/dist/cjs/api/resources/tools/types/McpServerResponse.js +1 -3
  294. package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.d.ts +0 -3
  295. package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.js +1 -3
  296. package/dist/cjs/api/resources/tools/types/McpServerToolResponse.d.ts +0 -3
  297. package/dist/cjs/api/resources/tools/types/McpServerToolResponse.js +1 -3
  298. package/dist/cjs/api/resources/tools/types/SearchConcept.d.ts +0 -3
  299. package/dist/cjs/api/resources/tools/types/SearchConcept.js +1 -3
  300. package/dist/cjs/api/resources/tools/types/index.d.ts +0 -1
  301. package/dist/cjs/api/resources/tools/types/index.js +0 -1
  302. package/dist/cjs/api/resources/workflows/client/Client.d.ts +43 -0
  303. package/dist/cjs/api/resources/workflows/client/Client.js +222 -0
  304. package/dist/cjs/api/resources/workflows/client/index.d.ts +1 -0
  305. package/dist/cjs/api/resources/workflows/client/index.js +2 -0
  306. package/dist/cjs/api/resources/workflows/errors/BadRequestError.d.ts +5 -0
  307. package/dist/cjs/api/resources/workflows/errors/BadRequestError.js +50 -0
  308. package/dist/cjs/api/resources/workflows/errors/ForbiddenError.d.ts +5 -0
  309. package/dist/cjs/api/resources/workflows/errors/ForbiddenError.js +50 -0
  310. package/dist/cjs/api/resources/workflows/errors/InternalServerError.d.ts +5 -0
  311. package/dist/cjs/api/resources/workflows/errors/InternalServerError.js +50 -0
  312. package/dist/cjs/api/resources/workflows/errors/NotFoundError.d.ts +5 -0
  313. package/dist/cjs/api/resources/workflows/errors/NotFoundError.js +50 -0
  314. package/dist/cjs/api/resources/workflows/errors/UnauthorizedError.d.ts +5 -0
  315. package/dist/cjs/api/resources/workflows/errors/UnauthorizedError.js +50 -0
  316. package/dist/cjs/api/resources/workflows/errors/index.d.ts +5 -0
  317. package/dist/cjs/api/resources/workflows/errors/index.js +21 -0
  318. package/dist/cjs/api/resources/workflows/index.d.ts +4 -0
  319. package/dist/cjs/api/resources/workflows/index.js +20 -0
  320. package/dist/cjs/api/resources/workflows/resources/index.d.ts +4 -0
  321. package/dist/cjs/api/resources/workflows/resources/index.js +43 -0
  322. package/dist/cjs/api/resources/workflows/resources/mcpServer/client/Client.d.ts +50 -0
  323. package/dist/cjs/api/resources/workflows/resources/mcpServer/client/Client.js +268 -0
  324. package/dist/cjs/api/resources/workflows/resources/mcpServer/client/index.d.ts +1 -0
  325. package/dist/cjs/api/resources/workflows/resources/mcpServer/client/index.js +2 -0
  326. package/dist/cjs/api/resources/workflows/resources/mcpServer/index.d.ts +2 -0
  327. package/dist/cjs/api/resources/workflows/resources/mcpServer/index.js +18 -0
  328. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/index.d.ts +1 -0
  329. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/index.js +37 -0
  330. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.d.ts +49 -0
  331. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.js +265 -0
  332. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/index.d.ts +1 -0
  333. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/index.js +2 -0
  334. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/index.d.ts +1 -0
  335. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/index.js +17 -0
  336. package/dist/cjs/api/resources/workflows/resources/workflows/client/Client.d.ts +145 -0
  337. package/dist/cjs/api/resources/workflows/resources/workflows/client/Client.js +569 -0
  338. package/dist/cjs/api/resources/workflows/resources/workflows/client/index.d.ts +2 -0
  339. package/dist/cjs/api/resources/workflows/resources/workflows/client/index.js +17 -0
  340. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/CreateWorkflowRequest.d.ts +40 -0
  341. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/CreateWorkflowRequest.js +3 -0
  342. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/ExecuteWorkflowRequest.d.ts +15 -0
  343. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/ExecuteWorkflowRequest.js +3 -0
  344. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/UpdateWorkflowRequest.d.ts +40 -0
  345. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/UpdateWorkflowRequest.js +3 -0
  346. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/WorkflowsGetRequest.d.ts +10 -0
  347. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/WorkflowsGetRequest.js +3 -0
  348. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/WorkflowsListRequest.d.ts +10 -0
  349. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/WorkflowsListRequest.js +3 -0
  350. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/index.d.ts +5 -0
  351. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/index.js +2 -0
  352. package/dist/cjs/api/resources/workflows/resources/workflows/index.d.ts +2 -0
  353. package/dist/cjs/api/resources/workflows/resources/workflows/index.js +18 -0
  354. package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsDeleteResponse.d.ts +4 -0
  355. package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsDeleteResponse.js +3 -0
  356. package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsGetResponse.d.ts +7 -0
  357. package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsGetResponse.js +3 -0
  358. package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsUpdateResponse.d.ts +9 -0
  359. package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsUpdateResponse.js +3 -0
  360. package/dist/cjs/api/resources/workflows/resources/workflows/types/index.d.ts +3 -0
  361. package/dist/cjs/api/resources/workflows/resources/workflows/types/index.js +19 -0
  362. package/dist/cjs/api/resources/workflows/types/CreateWorkflowResponse.d.ts +13 -0
  363. package/dist/cjs/api/resources/workflows/types/CreateWorkflowResponse.js +3 -0
  364. package/dist/cjs/api/resources/workflows/types/DecisionNodeDefinition.d.ts +8 -0
  365. package/dist/cjs/api/resources/workflows/types/DecisionNodeDefinition.js +3 -0
  366. package/dist/cjs/api/resources/workflows/types/ExecuteWorkflowResponse.d.ts +13 -0
  367. package/dist/cjs/api/resources/workflows/types/ExecuteWorkflowResponse.js +3 -0
  368. package/dist/cjs/api/resources/workflows/types/Lang2FhirCreateDefinition.d.ts +10 -0
  369. package/dist/cjs/api/resources/workflows/types/Lang2FhirCreateDefinition.js +3 -0
  370. package/dist/cjs/api/resources/workflows/types/Lang2FhirSearchDefinition.d.ts +12 -0
  371. package/dist/cjs/api/resources/workflows/types/Lang2FhirSearchDefinition.js +3 -0
  372. package/dist/cjs/api/resources/workflows/types/ListWorkflowsResponse.d.ts +11 -0
  373. package/dist/cjs/api/resources/workflows/types/ListWorkflowsResponse.js +3 -0
  374. package/dist/cjs/api/resources/workflows/types/StepOperation.d.ts +7 -0
  375. package/dist/cjs/api/resources/workflows/types/StepOperation.js +3 -0
  376. package/dist/cjs/api/resources/workflows/types/SubWorkflowDefinition.d.ts +8 -0
  377. package/dist/cjs/api/resources/workflows/types/SubWorkflowDefinition.js +3 -0
  378. package/dist/cjs/api/resources/workflows/types/WorkflowConfig.d.ts +6 -0
  379. package/dist/cjs/api/resources/workflows/types/WorkflowConfig.js +3 -0
  380. package/dist/cjs/api/resources/workflows/types/WorkflowDefinition.d.ts +19 -0
  381. package/dist/cjs/api/resources/workflows/types/WorkflowDefinition.js +3 -0
  382. package/dist/cjs/api/resources/workflows/types/WorkflowGraph.d.ts +5 -0
  383. package/dist/cjs/api/resources/workflows/types/WorkflowGraph.js +3 -0
  384. package/dist/cjs/api/resources/workflows/types/WorkflowResponse.d.ts +28 -0
  385. package/dist/cjs/api/resources/workflows/types/WorkflowResponse.js +3 -0
  386. package/dist/cjs/api/resources/workflows/types/WorkflowStep.d.ts +28 -0
  387. package/dist/cjs/api/resources/workflows/types/WorkflowStep.js +14 -0
  388. package/dist/cjs/api/resources/workflows/types/WorkflowStepSummary.d.ts +25 -0
  389. package/dist/cjs/api/resources/workflows/types/WorkflowStepSummary.js +14 -0
  390. package/dist/cjs/api/resources/workflows/types/index.d.ts +14 -0
  391. package/dist/cjs/api/resources/workflows/types/index.js +30 -0
  392. package/dist/cjs/api/types/CohortResponse.d.ts +1 -0
  393. package/dist/cjs/api/types/CohortResponse.js +3 -0
  394. package/dist/cjs/api/types/Lang2FhirAndCreateResponse.d.ts +1 -0
  395. package/dist/cjs/api/types/Lang2FhirAndCreateResponse.js +3 -0
  396. package/dist/cjs/api/types/Lang2FhirAndSearchResponse.d.ts +1 -0
  397. package/dist/cjs/api/types/Lang2FhirAndSearchResponse.js +3 -0
  398. package/dist/cjs/api/types/McpServerResponse.d.ts +1 -0
  399. package/dist/cjs/api/types/McpServerResponse.js +3 -0
  400. package/dist/cjs/api/types/McpServerToolCallResponse.d.ts +1 -0
  401. package/dist/cjs/api/types/McpServerToolCallResponse.js +3 -0
  402. package/dist/cjs/api/types/McpServerToolResponse.d.ts +1 -0
  403. package/dist/cjs/api/types/McpServerToolResponse.js +3 -0
  404. package/dist/cjs/api/types/SearchConcept.d.ts +1 -0
  405. package/dist/cjs/api/types/SearchConcept.js +3 -0
  406. package/dist/cjs/api/types/index.d.ts +7 -0
  407. package/dist/cjs/api/types/index.js +23 -0
  408. package/dist/cjs/core/auth/AuthProvider.d.ts +1 -1
  409. package/dist/cjs/core/auth/BasicAuth.js +2 -1
  410. package/dist/cjs/core/auth/index.d.ts +2 -2
  411. package/dist/cjs/core/fetcher/APIResponse.d.ts +1 -1
  412. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +1 -1
  413. package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
  414. package/dist/cjs/core/fetcher/EndpointMetadata.js +2 -0
  415. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
  416. package/dist/cjs/core/fetcher/EndpointSupplier.js +22 -0
  417. package/dist/cjs/core/fetcher/Fetcher.d.ts +5 -3
  418. package/dist/cjs/core/fetcher/Fetcher.js +3 -2
  419. package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +1 -1
  420. package/dist/cjs/core/fetcher/index.d.ts +2 -0
  421. package/dist/cjs/core/fetcher/index.js +3 -1
  422. package/dist/cjs/core/fetcher/requestWithRetries.js +44 -8
  423. package/dist/cjs/core/headers.d.ts +2 -3
  424. package/dist/cjs/environments.d.ts +0 -3
  425. package/dist/cjs/environments.js +1 -3
  426. package/dist/cjs/errors/phenomlError.d.ts +0 -3
  427. package/dist/cjs/errors/phenomlError.js +1 -3
  428. package/dist/cjs/errors/phenomlTimeoutError.d.ts +0 -3
  429. package/dist/cjs/errors/phenomlTimeoutError.js +1 -3
  430. package/dist/cjs/version.d.ts +1 -1
  431. package/dist/cjs/version.js +1 -1
  432. package/dist/esm/BaseClient.d.mts +27 -0
  433. package/dist/esm/BaseClient.mjs +3 -0
  434. package/dist/esm/Client.d.mts +13 -25
  435. package/dist/esm/Client.mjs +20 -6
  436. package/dist/esm/WrapperClient.mjs +1 -0
  437. package/dist/esm/api/index.d.mts +1 -0
  438. package/dist/esm/api/index.mjs +1 -0
  439. package/dist/esm/api/resources/agent/client/Client.d.mts +20 -30
  440. package/dist/esm/api/resources/agent/client/Client.mjs +48 -36
  441. package/dist/esm/api/resources/agent/client/index.mjs +1 -0
  442. package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.d.mts +0 -6
  443. package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.mjs +1 -3
  444. package/dist/esm/api/resources/agent/client/requests/AgentGetChatMessagesRequest.d.mts +4 -4
  445. package/dist/esm/api/resources/agent/client/requests/AgentGetChatMessagesRequest.mjs +2 -4
  446. package/dist/esm/api/resources/agent/client/requests/AgentListRequest.d.mts +4 -4
  447. package/dist/esm/api/resources/agent/client/requests/AgentListRequest.mjs +1 -3
  448. package/dist/esm/api/resources/agent/client/requests/index.d.mts +0 -2
  449. package/dist/esm/api/resources/agent/client/requests/index.mjs +3 -1
  450. package/dist/esm/api/resources/agent/errors/BadRequestError.d.mts +0 -3
  451. package/dist/esm/api/resources/agent/errors/BadRequestError.mjs +2 -3
  452. package/dist/esm/api/resources/agent/errors/ForbiddenError.d.mts +0 -3
  453. package/dist/esm/api/resources/agent/errors/ForbiddenError.mjs +2 -3
  454. package/dist/esm/api/resources/agent/errors/InternalServerError.d.mts +0 -3
  455. package/dist/esm/api/resources/agent/errors/InternalServerError.mjs +2 -3
  456. package/dist/esm/api/resources/agent/errors/NotFoundError.d.mts +0 -3
  457. package/dist/esm/api/resources/agent/errors/NotFoundError.mjs +2 -3
  458. package/dist/esm/api/resources/agent/errors/UnauthorizedError.d.mts +0 -3
  459. package/dist/esm/api/resources/agent/errors/UnauthorizedError.mjs +2 -3
  460. package/dist/esm/api/resources/agent/resources/prompts/client/Client.d.mts +5 -25
  461. package/dist/esm/api/resources/agent/resources/prompts/client/Client.mjs +28 -26
  462. package/dist/esm/api/resources/agent/resources/prompts/client/index.mjs +1 -0
  463. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.d.mts +0 -3
  464. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.mjs +1 -3
  465. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.d.mts +0 -3
  466. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.mjs +1 -3
  467. package/dist/esm/api/resources/agent/resources/prompts/client/requests/index.mjs +2 -1
  468. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.d.mts +0 -3
  469. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.mjs +1 -3
  470. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsListResponse.d.mts +0 -3
  471. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsListResponse.mjs +2 -4
  472. package/dist/esm/api/resources/agent/types/AgentChatResponse.d.mts +0 -3
  473. package/dist/esm/api/resources/agent/types/AgentChatResponse.mjs +1 -3
  474. package/dist/esm/api/resources/agent/types/AgentCreateRequest.d.mts +28 -0
  475. package/dist/esm/api/resources/agent/types/AgentCreateRequest.mjs +2 -0
  476. package/dist/esm/api/resources/agent/types/AgentDeleteResponse.d.mts +0 -3
  477. package/dist/esm/api/resources/agent/types/AgentDeleteResponse.mjs +1 -3
  478. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.mts +1 -4
  479. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestOrder.mjs +1 -3
  480. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesResponse.d.mts +0 -3
  481. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesResponse.mjs +2 -4
  482. package/dist/esm/api/resources/agent/types/AgentListResponse.d.mts +0 -3
  483. package/dist/esm/api/resources/agent/types/AgentListResponse.mjs +2 -4
  484. package/dist/esm/api/resources/agent/types/AgentPromptsResponse.d.mts +0 -3
  485. package/dist/esm/api/resources/agent/types/AgentPromptsResponse.mjs +2 -4
  486. package/dist/esm/api/resources/agent/types/AgentResponse.d.mts +0 -3
  487. package/dist/esm/api/resources/agent/types/AgentResponse.mjs +2 -4
  488. package/dist/esm/api/resources/agent/types/AgentTemplate.d.mts +14 -7
  489. package/dist/esm/api/resources/agent/types/AgentTemplate.mjs +1 -3
  490. package/dist/esm/api/resources/agent/types/ChatMessageTemplate.d.mts +0 -3
  491. package/dist/esm/api/resources/agent/types/ChatMessageTemplate.mjs +1 -3
  492. package/dist/esm/api/resources/agent/types/ChatSessionTemplate.d.mts +0 -3
  493. package/dist/esm/api/resources/agent/types/ChatSessionTemplate.mjs +1 -3
  494. package/dist/esm/api/resources/agent/types/JsonPatch.d.mts +0 -3
  495. package/dist/esm/api/resources/agent/types/JsonPatch.mjs +2 -4
  496. package/dist/esm/api/resources/agent/types/JsonPatchOperation.d.mts +3 -7
  497. package/dist/esm/api/resources/agent/types/JsonPatchOperation.mjs +2 -3
  498. package/dist/esm/api/resources/agent/types/PromptTemplate.d.mts +0 -3
  499. package/dist/esm/api/resources/agent/types/PromptTemplate.mjs +1 -3
  500. package/dist/esm/api/resources/agent/types/SuccessResponse.d.mts +0 -3
  501. package/dist/esm/api/resources/agent/types/SuccessResponse.mjs +1 -3
  502. package/dist/esm/api/resources/agent/types/index.d.mts +1 -4
  503. package/dist/esm/api/resources/agent/types/index.mjs +1 -4
  504. package/dist/esm/api/resources/authtoken/client/Client.d.mts +3 -14
  505. package/dist/esm/api/resources/authtoken/client/Client.mjs +4 -4
  506. package/dist/esm/api/resources/authtoken/errors/BadRequestError.d.mts +0 -3
  507. package/dist/esm/api/resources/authtoken/errors/BadRequestError.mjs +2 -3
  508. package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.d.mts +0 -3
  509. package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.mjs +2 -3
  510. package/dist/esm/api/resources/authtoken/resources/auth/client/Client.d.mts +2 -2
  511. package/dist/esm/api/resources/authtoken/resources/auth/client/Client.mjs +1 -1
  512. package/dist/esm/api/resources/authtoken/resources/auth/client/index.mjs +1 -0
  513. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.d.mts +0 -3
  514. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.mjs +1 -3
  515. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/index.mjs +1 -1
  516. package/dist/esm/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.d.mts +0 -3
  517. package/dist/esm/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.mjs +1 -3
  518. package/dist/esm/api/resources/authtoken/types/BadRequestErrorBody.d.mts +0 -3
  519. package/dist/esm/api/resources/authtoken/types/BadRequestErrorBody.mjs +1 -3
  520. package/dist/esm/api/resources/authtoken/types/UnauthorizedErrorBody.d.mts +0 -3
  521. package/dist/esm/api/resources/authtoken/types/UnauthorizedErrorBody.mjs +1 -3
  522. package/dist/esm/api/resources/cohort/client/Client.d.mts +5 -25
  523. package/dist/esm/api/resources/cohort/client/Client.mjs +10 -8
  524. package/dist/esm/api/resources/cohort/client/index.mjs +1 -0
  525. package/dist/esm/api/resources/cohort/client/requests/CohortRequest.d.mts +0 -3
  526. package/dist/esm/api/resources/cohort/client/requests/CohortRequest.mjs +1 -3
  527. package/dist/esm/api/resources/cohort/client/requests/index.mjs +1 -1
  528. package/dist/esm/api/resources/cohort/errors/BadRequestError.d.mts +0 -3
  529. package/dist/esm/api/resources/cohort/errors/BadRequestError.mjs +2 -3
  530. package/dist/esm/api/resources/cohort/errors/InternalServerError.d.mts +0 -3
  531. package/dist/esm/api/resources/cohort/errors/InternalServerError.mjs +2 -3
  532. package/dist/esm/api/resources/cohort/errors/UnauthorizedError.d.mts +0 -3
  533. package/dist/esm/api/resources/cohort/errors/UnauthorizedError.mjs +2 -3
  534. package/dist/esm/api/resources/cohort/types/CohortResponse.d.mts +0 -3
  535. package/dist/esm/api/resources/cohort/types/CohortResponse.mjs +2 -4
  536. package/dist/esm/api/resources/cohort/types/SearchConcept.d.mts +0 -3
  537. package/dist/esm/api/resources/cohort/types/SearchConcept.mjs +1 -3
  538. package/dist/esm/api/resources/construe/client/Client.d.mts +5 -25
  539. package/dist/esm/api/resources/construe/client/Client.mjs +16 -14
  540. package/dist/esm/api/resources/construe/client/index.mjs +1 -0
  541. package/dist/esm/api/resources/construe/client/requests/ConstrueCohortRequest.d.mts +0 -3
  542. package/dist/esm/api/resources/construe/client/requests/ConstrueCohortRequest.mjs +1 -3
  543. package/dist/esm/api/resources/construe/client/requests/ExtractRequest.d.mts +0 -3
  544. package/dist/esm/api/resources/construe/client/requests/ExtractRequest.mjs +2 -4
  545. package/dist/esm/api/resources/construe/client/requests/UploadRequest.d.mts +2 -7
  546. package/dist/esm/api/resources/construe/client/requests/UploadRequest.mjs +2 -3
  547. package/dist/esm/api/resources/construe/client/requests/index.mjs +3 -1
  548. package/dist/esm/api/resources/construe/errors/BadRequestError.d.mts +0 -3
  549. package/dist/esm/api/resources/construe/errors/BadRequestError.mjs +2 -3
  550. package/dist/esm/api/resources/construe/errors/ConflictError.d.mts +0 -3
  551. package/dist/esm/api/resources/construe/errors/ConflictError.mjs +2 -3
  552. package/dist/esm/api/resources/construe/errors/FailedDependencyError.d.mts +0 -3
  553. package/dist/esm/api/resources/construe/errors/FailedDependencyError.mjs +2 -3
  554. package/dist/esm/api/resources/construe/errors/InternalServerError.d.mts +0 -3
  555. package/dist/esm/api/resources/construe/errors/InternalServerError.mjs +2 -3
  556. package/dist/esm/api/resources/construe/errors/UnauthorizedError.d.mts +0 -3
  557. package/dist/esm/api/resources/construe/errors/UnauthorizedError.mjs +2 -3
  558. package/dist/esm/api/resources/construe/types/BadRequestErrorBody.d.mts +0 -3
  559. package/dist/esm/api/resources/construe/types/BadRequestErrorBody.mjs +1 -3
  560. package/dist/esm/api/resources/construe/types/ConstrueCohortResponse.d.mts +0 -3
  561. package/dist/esm/api/resources/construe/types/ConstrueCohortResponse.mjs +1 -3
  562. package/dist/esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.mts +0 -3
  563. package/dist/esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.mjs +1 -3
  564. package/dist/esm/api/resources/construe/types/ExtractCodesResult.d.mts +0 -3
  565. package/dist/esm/api/resources/construe/types/ExtractCodesResult.mjs +2 -4
  566. package/dist/esm/api/resources/construe/types/ExtractRequestConfig.d.mts +1 -4
  567. package/dist/esm/api/resources/construe/types/ExtractRequestConfig.mjs +1 -3
  568. package/dist/esm/api/resources/construe/types/ExtractRequestSystem.d.mts +0 -3
  569. package/dist/esm/api/resources/construe/types/ExtractRequestSystem.mjs +1 -3
  570. package/dist/esm/api/resources/construe/types/ExtractedCodeResult.d.mts +0 -3
  571. package/dist/esm/api/resources/construe/types/ExtractedCodeResult.mjs +1 -3
  572. package/dist/esm/api/resources/construe/types/InternalServerErrorBody.d.mts +0 -3
  573. package/dist/esm/api/resources/construe/types/InternalServerErrorBody.mjs +1 -3
  574. package/dist/esm/api/resources/construe/types/UnauthorizedErrorBody.d.mts +0 -3
  575. package/dist/esm/api/resources/construe/types/UnauthorizedErrorBody.mjs +1 -3
  576. package/dist/esm/api/resources/fhir/client/Client.d.mts +294 -0
  577. package/dist/esm/api/resources/fhir/client/Client.mjs +656 -0
  578. package/dist/esm/api/resources/fhir/client/index.d.mts +2 -0
  579. package/dist/esm/api/resources/fhir/client/index.mjs +2 -0
  580. package/dist/esm/api/resources/fhir/client/requests/FhirCreateRequest.d.mts +25 -0
  581. package/dist/esm/api/resources/fhir/client/requests/FhirCreateRequest.mjs +2 -0
  582. package/dist/esm/api/resources/fhir/client/requests/FhirDeleteRequest.d.mts +10 -0
  583. package/dist/esm/api/resources/fhir/client/requests/FhirDeleteRequest.mjs +2 -0
  584. package/dist/esm/api/resources/fhir/client/requests/FhirExecuteBundleRequest.d.mts +44 -0
  585. package/dist/esm/api/resources/fhir/client/requests/FhirExecuteBundleRequest.mjs +2 -0
  586. package/dist/esm/api/resources/fhir/client/requests/FhirPatchRequest.d.mts +66 -0
  587. package/dist/esm/api/resources/fhir/client/requests/FhirPatchRequest.mjs +2 -0
  588. package/dist/esm/api/resources/fhir/client/requests/FhirSearchRequest.d.mts +23 -0
  589. package/dist/esm/api/resources/fhir/client/requests/FhirSearchRequest.mjs +2 -0
  590. package/dist/esm/api/resources/fhir/client/requests/FhirUpsertRequest.d.mts +27 -0
  591. package/dist/esm/api/resources/fhir/client/requests/FhirUpsertRequest.mjs +2 -0
  592. package/dist/esm/api/resources/fhir/client/requests/index.d.mts +6 -0
  593. package/dist/esm/api/resources/fhir/client/requests/index.mjs +6 -0
  594. package/dist/esm/api/resources/fhir/errors/BadRequestError.d.mts +5 -0
  595. package/dist/esm/api/resources/fhir/errors/BadRequestError.mjs +14 -0
  596. package/dist/esm/api/resources/fhir/errors/InternalServerError.d.mts +5 -0
  597. package/dist/esm/api/resources/fhir/errors/InternalServerError.mjs +14 -0
  598. package/dist/esm/api/resources/fhir/errors/NotFoundError.d.mts +5 -0
  599. package/dist/esm/api/resources/fhir/errors/NotFoundError.mjs +14 -0
  600. package/dist/esm/api/resources/fhir/errors/UnauthorizedError.d.mts +5 -0
  601. package/dist/esm/api/resources/fhir/errors/UnauthorizedError.mjs +14 -0
  602. package/dist/esm/api/resources/fhir/errors/index.d.mts +4 -0
  603. package/dist/esm/api/resources/fhir/errors/index.mjs +4 -0
  604. package/dist/esm/api/resources/fhir/index.d.mts +3 -0
  605. package/dist/esm/api/resources/fhir/index.mjs +3 -0
  606. package/dist/esm/api/resources/fhir/types/ErrorResponse.d.mts +11 -0
  607. package/dist/esm/api/resources/fhir/types/ErrorResponse.mjs +2 -0
  608. package/dist/esm/api/resources/fhir/types/FhirBundle.d.mts +54 -0
  609. package/dist/esm/api/resources/fhir/types/FhirBundle.mjs +20 -0
  610. package/dist/esm/api/resources/fhir/types/FhirPatchRequestBodyItem.d.mts +22 -0
  611. package/dist/esm/api/resources/fhir/types/FhirPatchRequestBodyItem.mjs +13 -0
  612. package/dist/esm/api/resources/fhir/types/FhirResource.d.mts +24 -0
  613. package/dist/esm/api/resources/fhir/types/FhirResource.mjs +2 -0
  614. package/dist/esm/api/resources/fhir/types/FhirSearchResponse.d.mts +2 -0
  615. package/dist/esm/api/resources/fhir/types/FhirSearchResponse.mjs +2 -0
  616. package/dist/esm/api/resources/fhir/types/index.d.mts +5 -0
  617. package/dist/esm/api/resources/fhir/types/index.mjs +5 -0
  618. package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +141 -0
  619. package/dist/esm/api/resources/fhirProvider/client/Client.mjs +557 -0
  620. package/dist/esm/api/resources/fhirProvider/client/index.d.mts +2 -0
  621. package/dist/esm/api/resources/fhirProvider/client/index.mjs +2 -0
  622. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.d.mts +17 -0
  623. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.mjs +2 -0
  624. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.d.mts +27 -0
  625. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.mjs +2 -0
  626. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.d.mts +10 -0
  627. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.mjs +2 -0
  628. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.d.mts +10 -0
  629. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.mjs +2 -0
  630. package/dist/esm/api/resources/fhirProvider/client/requests/index.d.mts +4 -0
  631. package/dist/esm/api/resources/fhirProvider/client/requests/index.mjs +4 -0
  632. package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.d.mts +5 -0
  633. package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.mjs +14 -0
  634. package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.d.mts +5 -0
  635. package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.mjs +14 -0
  636. package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.d.mts +5 -0
  637. package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.mjs +14 -0
  638. package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.d.mts +5 -0
  639. package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.mjs +14 -0
  640. package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.d.mts +5 -0
  641. package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.mjs +14 -0
  642. package/dist/esm/api/resources/fhirProvider/errors/index.d.mts +5 -0
  643. package/dist/esm/api/resources/fhirProvider/errors/index.mjs +5 -0
  644. package/dist/esm/api/resources/fhirProvider/index.d.mts +3 -0
  645. package/dist/esm/api/resources/fhirProvider/index.mjs +3 -0
  646. package/dist/esm/api/resources/fhirProvider/types/AuthMethod.d.mts +9 -0
  647. package/dist/esm/api/resources/fhirProvider/types/AuthMethod.mjs +9 -0
  648. package/dist/esm/api/resources/fhirProvider/types/FhirProviderAuthConfig.d.mts +19 -0
  649. package/dist/esm/api/resources/fhirProvider/types/FhirProviderAuthConfig.mjs +2 -0
  650. package/dist/esm/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.mts +4 -0
  651. package/dist/esm/api/resources/fhirProvider/types/FhirProviderDeleteResponse.mjs +2 -0
  652. package/dist/esm/api/resources/fhirProvider/types/FhirProviderListResponse.d.mts +6 -0
  653. package/dist/esm/api/resources/fhirProvider/types/FhirProviderListResponse.mjs +2 -0
  654. package/dist/esm/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.d.mts +6 -0
  655. package/dist/esm/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.mjs +2 -0
  656. package/dist/esm/api/resources/fhirProvider/types/FhirProviderResponse.d.mts +6 -0
  657. package/dist/esm/api/resources/fhirProvider/types/FhirProviderResponse.mjs +2 -0
  658. package/dist/esm/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.d.mts +6 -0
  659. package/dist/esm/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.mjs +2 -0
  660. package/dist/esm/api/resources/fhirProvider/types/FhirProviderTemplate.d.mts +22 -0
  661. package/dist/esm/api/resources/fhirProvider/types/FhirProviderTemplate.mjs +2 -0
  662. package/dist/esm/api/resources/fhirProvider/types/FhirQueryResponse.d.mts +16 -0
  663. package/dist/esm/api/resources/fhirProvider/types/FhirQueryResponse.mjs +2 -0
  664. package/dist/esm/api/resources/fhirProvider/types/JsonWebKey.d.mts +17 -0
  665. package/dist/esm/api/resources/fhirProvider/types/JsonWebKey.mjs +2 -0
  666. package/dist/esm/api/resources/fhirProvider/types/Provider.d.mts +12 -0
  667. package/dist/esm/api/resources/fhirProvider/types/Provider.mjs +12 -0
  668. package/dist/esm/api/resources/fhirProvider/types/ServiceAccountKey.d.mts +16 -0
  669. package/dist/esm/api/resources/fhirProvider/types/ServiceAccountKey.mjs +2 -0
  670. package/dist/esm/api/resources/fhirProvider/types/SmartConfiguration.d.mts +15 -0
  671. package/dist/esm/api/resources/fhirProvider/types/SmartConfiguration.mjs +2 -0
  672. package/dist/esm/api/resources/fhirProvider/types/index.d.mts +13 -0
  673. package/dist/esm/api/resources/fhirProvider/types/index.mjs +13 -0
  674. package/dist/esm/api/resources/index.d.mts +3 -0
  675. package/dist/esm/api/resources/index.mjs +3 -0
  676. package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +5 -25
  677. package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +19 -17
  678. package/dist/esm/api/resources/lang2Fhir/client/index.mjs +1 -0
  679. package/dist/esm/api/resources/lang2Fhir/client/requests/CreateRequest.d.mts +2 -7
  680. package/dist/esm/api/resources/lang2Fhir/client/requests/CreateRequest.mjs +2 -3
  681. package/dist/esm/api/resources/lang2Fhir/client/requests/DocumentRequest.d.mts +4 -11
  682. package/dist/esm/api/resources/lang2Fhir/client/requests/DocumentRequest.mjs +3 -3
  683. package/dist/esm/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.d.mts +0 -3
  684. package/dist/esm/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.mjs +1 -3
  685. package/dist/esm/api/resources/lang2Fhir/client/requests/SearchRequest.d.mts +0 -3
  686. package/dist/esm/api/resources/lang2Fhir/client/requests/SearchRequest.mjs +1 -3
  687. package/dist/esm/api/resources/lang2Fhir/client/requests/index.mjs +4 -1
  688. package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.d.mts +0 -3
  689. package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.mjs +2 -3
  690. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.d.mts +0 -3
  691. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.mjs +2 -3
  692. package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.d.mts +0 -3
  693. package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.mjs +2 -3
  694. package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.d.mts +0 -3
  695. package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.mjs +2 -3
  696. package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.d.mts +0 -3
  697. package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.mjs +2 -3
  698. package/dist/esm/api/resources/lang2Fhir/types/FhirResource.d.mts +0 -3
  699. package/dist/esm/api/resources/lang2Fhir/types/FhirResource.mjs +1 -3
  700. package/dist/esm/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.mts +0 -3
  701. package/dist/esm/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.mjs +1 -3
  702. package/dist/esm/api/resources/lang2Fhir/types/SearchResponse.d.mts +0 -3
  703. package/dist/esm/api/resources/lang2Fhir/types/SearchResponse.mjs +1 -3
  704. package/dist/esm/api/resources/tools/client/Client.d.mts +6 -26
  705. package/dist/esm/api/resources/tools/client/Client.mjs +17 -15
  706. package/dist/esm/api/resources/tools/client/index.mjs +1 -0
  707. package/dist/esm/api/resources/tools/client/requests/CohortRequest.d.mts +3 -20
  708. package/dist/esm/api/resources/tools/client/requests/CohortRequest.mjs +2 -12
  709. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.mts +4 -21
  710. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.mjs +2 -9
  711. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.mts +2 -19
  712. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.mjs +2 -12
  713. package/dist/esm/api/resources/tools/client/requests/index.mjs +3 -1
  714. package/dist/esm/api/resources/tools/errors/BadRequestError.d.mts +0 -3
  715. package/dist/esm/api/resources/tools/errors/BadRequestError.mjs +2 -3
  716. package/dist/esm/api/resources/tools/errors/FailedDependencyError.d.mts +0 -3
  717. package/dist/esm/api/resources/tools/errors/FailedDependencyError.mjs +2 -3
  718. package/dist/esm/api/resources/tools/errors/ForbiddenError.d.mts +0 -3
  719. package/dist/esm/api/resources/tools/errors/ForbiddenError.mjs +2 -3
  720. package/dist/esm/api/resources/tools/errors/InternalServerError.d.mts +0 -3
  721. package/dist/esm/api/resources/tools/errors/InternalServerError.mjs +2 -3
  722. package/dist/esm/api/resources/tools/errors/UnauthorizedError.d.mts +0 -3
  723. package/dist/esm/api/resources/tools/errors/UnauthorizedError.mjs +2 -3
  724. package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.d.mts +5 -25
  725. package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.mjs +19 -17
  726. package/dist/esm/api/resources/tools/resources/mcpServer/client/index.mjs +1 -0
  727. package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.d.mts +0 -3
  728. package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.mjs +1 -3
  729. package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/index.mjs +1 -1
  730. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.mts +5 -25
  731. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +19 -17
  732. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.mjs +1 -0
  733. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.mts +0 -3
  734. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.mjs +1 -3
  735. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.mjs +1 -1
  736. package/dist/esm/api/resources/tools/types/CohortResponse.d.mts +0 -3
  737. package/dist/esm/api/resources/tools/types/CohortResponse.mjs +2 -4
  738. package/dist/esm/api/resources/tools/types/Lang2FhirAndCreateResponse.d.mts +0 -3
  739. package/dist/esm/api/resources/tools/types/Lang2FhirAndCreateResponse.mjs +1 -3
  740. package/dist/esm/api/resources/tools/types/Lang2FhirAndSearchResponse.d.mts +0 -3
  741. package/dist/esm/api/resources/tools/types/Lang2FhirAndSearchResponse.mjs +1 -3
  742. package/dist/esm/api/resources/tools/types/McpServerResponse.d.mts +0 -3
  743. package/dist/esm/api/resources/tools/types/McpServerResponse.mjs +1 -3
  744. package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.d.mts +0 -3
  745. package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.mjs +1 -3
  746. package/dist/esm/api/resources/tools/types/McpServerToolResponse.d.mts +0 -3
  747. package/dist/esm/api/resources/tools/types/McpServerToolResponse.mjs +1 -3
  748. package/dist/esm/api/resources/tools/types/SearchConcept.d.mts +0 -3
  749. package/dist/esm/api/resources/tools/types/SearchConcept.mjs +1 -3
  750. package/dist/esm/api/resources/tools/types/index.d.mts +0 -1
  751. package/dist/esm/api/resources/tools/types/index.mjs +0 -1
  752. package/dist/esm/api/resources/workflows/client/Client.d.mts +43 -0
  753. package/dist/esm/api/resources/workflows/client/Client.mjs +185 -0
  754. package/dist/esm/api/resources/workflows/client/index.d.mts +1 -0
  755. package/dist/esm/api/resources/workflows/client/index.mjs +1 -0
  756. package/dist/esm/api/resources/workflows/errors/BadRequestError.d.mts +5 -0
  757. package/dist/esm/api/resources/workflows/errors/BadRequestError.mjs +14 -0
  758. package/dist/esm/api/resources/workflows/errors/ForbiddenError.d.mts +5 -0
  759. package/dist/esm/api/resources/workflows/errors/ForbiddenError.mjs +14 -0
  760. package/dist/esm/api/resources/workflows/errors/InternalServerError.d.mts +5 -0
  761. package/dist/esm/api/resources/workflows/errors/InternalServerError.mjs +14 -0
  762. package/dist/esm/api/resources/workflows/errors/NotFoundError.d.mts +5 -0
  763. package/dist/esm/api/resources/workflows/errors/NotFoundError.mjs +14 -0
  764. package/dist/esm/api/resources/workflows/errors/UnauthorizedError.d.mts +5 -0
  765. package/dist/esm/api/resources/workflows/errors/UnauthorizedError.mjs +14 -0
  766. package/dist/esm/api/resources/workflows/errors/index.d.mts +5 -0
  767. package/dist/esm/api/resources/workflows/errors/index.mjs +5 -0
  768. package/dist/esm/api/resources/workflows/index.d.mts +4 -0
  769. package/dist/esm/api/resources/workflows/index.mjs +4 -0
  770. package/dist/esm/api/resources/workflows/resources/index.d.mts +4 -0
  771. package/dist/esm/api/resources/workflows/resources/index.mjs +4 -0
  772. package/dist/esm/api/resources/workflows/resources/mcpServer/client/Client.d.mts +50 -0
  773. package/dist/esm/api/resources/workflows/resources/mcpServer/client/Client.mjs +231 -0
  774. package/dist/esm/api/resources/workflows/resources/mcpServer/client/index.d.mts +1 -0
  775. package/dist/esm/api/resources/workflows/resources/mcpServer/client/index.mjs +1 -0
  776. package/dist/esm/api/resources/workflows/resources/mcpServer/index.d.mts +2 -0
  777. package/dist/esm/api/resources/workflows/resources/mcpServer/index.mjs +2 -0
  778. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/index.d.mts +1 -0
  779. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/index.mjs +1 -0
  780. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.d.mts +49 -0
  781. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.mjs +228 -0
  782. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/index.d.mts +1 -0
  783. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/index.mjs +1 -0
  784. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/index.d.mts +1 -0
  785. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/index.mjs +1 -0
  786. package/dist/esm/api/resources/workflows/resources/workflows/client/Client.d.mts +145 -0
  787. package/dist/esm/api/resources/workflows/resources/workflows/client/Client.mjs +532 -0
  788. package/dist/esm/api/resources/workflows/resources/workflows/client/index.d.mts +2 -0
  789. package/dist/esm/api/resources/workflows/resources/workflows/client/index.mjs +2 -0
  790. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/CreateWorkflowRequest.d.mts +40 -0
  791. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/CreateWorkflowRequest.mjs +2 -0
  792. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/ExecuteWorkflowRequest.d.mts +15 -0
  793. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/ExecuteWorkflowRequest.mjs +2 -0
  794. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/UpdateWorkflowRequest.d.mts +40 -0
  795. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/UpdateWorkflowRequest.mjs +2 -0
  796. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/WorkflowsGetRequest.d.mts +10 -0
  797. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/WorkflowsGetRequest.mjs +2 -0
  798. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/WorkflowsListRequest.d.mts +10 -0
  799. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/WorkflowsListRequest.mjs +2 -0
  800. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/index.d.mts +5 -0
  801. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/index.mjs +5 -0
  802. package/dist/esm/api/resources/workflows/resources/workflows/index.d.mts +2 -0
  803. package/dist/esm/api/resources/workflows/resources/workflows/index.mjs +2 -0
  804. package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsDeleteResponse.d.mts +4 -0
  805. package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsDeleteResponse.mjs +2 -0
  806. package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsGetResponse.d.mts +7 -0
  807. package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsGetResponse.mjs +2 -0
  808. package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsUpdateResponse.d.mts +9 -0
  809. package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsUpdateResponse.mjs +2 -0
  810. package/dist/esm/api/resources/workflows/resources/workflows/types/index.d.mts +3 -0
  811. package/dist/esm/api/resources/workflows/resources/workflows/types/index.mjs +3 -0
  812. package/dist/esm/api/resources/workflows/types/CreateWorkflowResponse.d.mts +13 -0
  813. package/dist/esm/api/resources/workflows/types/CreateWorkflowResponse.mjs +2 -0
  814. package/dist/esm/api/resources/workflows/types/DecisionNodeDefinition.d.mts +8 -0
  815. package/dist/esm/api/resources/workflows/types/DecisionNodeDefinition.mjs +2 -0
  816. package/dist/esm/api/resources/workflows/types/ExecuteWorkflowResponse.d.mts +13 -0
  817. package/dist/esm/api/resources/workflows/types/ExecuteWorkflowResponse.mjs +2 -0
  818. package/dist/esm/api/resources/workflows/types/Lang2FhirCreateDefinition.d.mts +10 -0
  819. package/dist/esm/api/resources/workflows/types/Lang2FhirCreateDefinition.mjs +2 -0
  820. package/dist/esm/api/resources/workflows/types/Lang2FhirSearchDefinition.d.mts +12 -0
  821. package/dist/esm/api/resources/workflows/types/Lang2FhirSearchDefinition.mjs +2 -0
  822. package/dist/esm/api/resources/workflows/types/ListWorkflowsResponse.d.mts +11 -0
  823. package/dist/esm/api/resources/workflows/types/ListWorkflowsResponse.mjs +2 -0
  824. package/dist/esm/api/resources/workflows/types/StepOperation.d.mts +7 -0
  825. package/dist/esm/api/resources/workflows/types/StepOperation.mjs +2 -0
  826. package/dist/esm/api/resources/workflows/types/SubWorkflowDefinition.d.mts +8 -0
  827. package/dist/esm/api/resources/workflows/types/SubWorkflowDefinition.mjs +2 -0
  828. package/dist/esm/api/resources/workflows/types/WorkflowConfig.d.mts +6 -0
  829. package/dist/esm/api/resources/workflows/types/WorkflowConfig.mjs +2 -0
  830. package/dist/esm/api/resources/workflows/types/WorkflowDefinition.d.mts +19 -0
  831. package/dist/esm/api/resources/workflows/types/WorkflowDefinition.mjs +2 -0
  832. package/dist/esm/api/resources/workflows/types/WorkflowGraph.d.mts +5 -0
  833. package/dist/esm/api/resources/workflows/types/WorkflowGraph.mjs +2 -0
  834. package/dist/esm/api/resources/workflows/types/WorkflowResponse.d.mts +28 -0
  835. package/dist/esm/api/resources/workflows/types/WorkflowResponse.mjs +2 -0
  836. package/dist/esm/api/resources/workflows/types/WorkflowStep.d.mts +28 -0
  837. package/dist/esm/api/resources/workflows/types/WorkflowStep.mjs +12 -0
  838. package/dist/esm/api/resources/workflows/types/WorkflowStepSummary.d.mts +25 -0
  839. package/dist/esm/api/resources/workflows/types/WorkflowStepSummary.mjs +11 -0
  840. package/dist/esm/api/resources/workflows/types/index.d.mts +14 -0
  841. package/dist/esm/api/resources/workflows/types/index.mjs +14 -0
  842. package/dist/esm/api/types/CohortResponse.d.mts +1 -0
  843. package/dist/esm/api/types/CohortResponse.mjs +2 -0
  844. package/dist/esm/api/types/Lang2FhirAndCreateResponse.d.mts +1 -0
  845. package/dist/esm/api/types/Lang2FhirAndCreateResponse.mjs +2 -0
  846. package/dist/esm/api/types/Lang2FhirAndSearchResponse.d.mts +1 -0
  847. package/dist/esm/api/types/Lang2FhirAndSearchResponse.mjs +2 -0
  848. package/dist/esm/api/types/McpServerResponse.d.mts +1 -0
  849. package/dist/esm/api/types/McpServerResponse.mjs +2 -0
  850. package/dist/esm/api/types/McpServerToolCallResponse.d.mts +1 -0
  851. package/dist/esm/api/types/McpServerToolCallResponse.mjs +2 -0
  852. package/dist/esm/api/types/McpServerToolResponse.d.mts +1 -0
  853. package/dist/esm/api/types/McpServerToolResponse.mjs +2 -0
  854. package/dist/esm/api/types/SearchConcept.d.mts +1 -0
  855. package/dist/esm/api/types/SearchConcept.mjs +2 -0
  856. package/dist/esm/api/types/index.d.mts +7 -0
  857. package/dist/esm/api/types/index.mjs +7 -0
  858. package/dist/esm/core/auth/AuthProvider.d.mts +1 -1
  859. package/dist/esm/core/auth/BasicAuth.mjs +2 -1
  860. package/dist/esm/core/auth/index.d.mts +2 -2
  861. package/dist/esm/core/fetcher/APIResponse.d.mts +1 -1
  862. package/dist/esm/core/fetcher/BinaryResponse.d.mts +1 -1
  863. package/dist/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
  864. package/dist/esm/core/fetcher/EndpointMetadata.mjs +1 -0
  865. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
  866. package/dist/esm/core/fetcher/EndpointSupplier.mjs +20 -0
  867. package/dist/esm/core/fetcher/Fetcher.d.mts +5 -3
  868. package/dist/esm/core/fetcher/Fetcher.mjs +3 -2
  869. package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +1 -1
  870. package/dist/esm/core/fetcher/index.d.mts +2 -0
  871. package/dist/esm/core/fetcher/index.mjs +1 -0
  872. package/dist/esm/core/fetcher/requestWithRetries.mjs +44 -8
  873. package/dist/esm/core/headers.d.mts +2 -3
  874. package/dist/esm/environments.d.mts +0 -3
  875. package/dist/esm/environments.mjs +1 -3
  876. package/dist/esm/errors/phenomlError.d.mts +0 -3
  877. package/dist/esm/errors/phenomlError.mjs +2 -3
  878. package/dist/esm/errors/phenomlTimeoutError.d.mts +0 -3
  879. package/dist/esm/errors/phenomlTimeoutError.mjs +1 -3
  880. package/dist/esm/version.d.mts +1 -1
  881. package/dist/esm/version.mjs +1 -1
  882. package/package.json +2 -3
  883. package/reference.md +2183 -146
  884. package/LICENSE +0 -21
  885. package/dist/cjs/api/resources/agent/client/requests/AgentCreateRequest.d.ts +0 -29
  886. package/dist/cjs/api/resources/agent/client/requests/AgentUpdateRequest.d.ts +0 -25
  887. package/dist/cjs/api/resources/agent/types/AgentFhirConfig.d.ts +0 -12
  888. package/dist/cjs/api/resources/agent/types/AgentProvider.d.ts +0 -11
  889. package/dist/cjs/api/resources/agent/types/ChatFhirClientConfig.d.ts +0 -12
  890. package/dist/cjs/api/resources/agent/types/ChatFhirClientConfig.js +0 -5
  891. package/dist/cjs/api/resources/agent/types/ProviderType.d.ts +0 -13
  892. package/dist/cjs/api/resources/agent/types/ProviderType.js +0 -12
  893. package/dist/cjs/api/resources/tools/types/FhirClientConfig.d.ts +0 -12
  894. package/dist/cjs/api/resources/tools/types/FhirClientConfig.js +0 -5
  895. package/dist/esm/api/resources/agent/client/requests/AgentCreateRequest.d.mts +0 -29
  896. package/dist/esm/api/resources/agent/client/requests/AgentCreateRequest.mjs +0 -4
  897. package/dist/esm/api/resources/agent/client/requests/AgentUpdateRequest.d.mts +0 -25
  898. package/dist/esm/api/resources/agent/client/requests/AgentUpdateRequest.mjs +0 -4
  899. package/dist/esm/api/resources/agent/types/AgentFhirConfig.d.mts +0 -12
  900. package/dist/esm/api/resources/agent/types/AgentFhirConfig.mjs +0 -4
  901. package/dist/esm/api/resources/agent/types/AgentProvider.d.mts +0 -11
  902. package/dist/esm/api/resources/agent/types/AgentProvider.mjs +0 -4
  903. package/dist/esm/api/resources/agent/types/ChatFhirClientConfig.d.mts +0 -12
  904. package/dist/esm/api/resources/agent/types/ChatFhirClientConfig.mjs +0 -4
  905. package/dist/esm/api/resources/agent/types/ProviderType.d.mts +0 -13
  906. package/dist/esm/api/resources/agent/types/ProviderType.mjs +0 -9
  907. package/dist/esm/api/resources/tools/types/FhirClientConfig.d.mts +0 -12
  908. package/dist/esm/api/resources/tools/types/FhirClientConfig.mjs +0 -4
package/reference.md CHANGED
@@ -50,7 +50,7 @@ await client.agent.create({
50
50
  <dl>
51
51
  <dd>
52
52
 
53
- **request:** `phenoml.agent.AgentCreateRequest`
53
+ **request:** `phenoml.AgentCreateRequest`
54
54
 
55
55
  </dd>
56
56
  </dl>
@@ -97,7 +97,10 @@ Retrieves a list of PhenoAgents belonging to the authenticated user
97
97
  <dd>
98
98
 
99
99
  ```typescript
100
- await client.agent.list();
100
+ await client.agent.list({
101
+ is_active: true,
102
+ tags: "tags",
103
+ });
101
104
  ```
102
105
 
103
106
  </dd>
@@ -223,7 +226,11 @@ Updates an existing agent's configuration
223
226
  <dd>
224
227
 
225
228
  ```typescript
226
- await client.agent.update("id");
229
+ await client.agent.update("id", {
230
+ name: "name",
231
+ prompts: ["prompt_123", "prompt_456"],
232
+ is_active: true,
233
+ });
227
234
  ```
228
235
 
229
236
  </dd>
@@ -247,7 +254,7 @@ await client.agent.update("id");
247
254
  <dl>
248
255
  <dd>
249
256
 
250
- **request:** `phenoml.agent.AgentUpdateRequest`
257
+ **request:** `phenoml.AgentCreateRequest`
251
258
 
252
259
  </dd>
253
260
  </dl>
@@ -511,6 +518,9 @@ Retrieves a list of chat messages for a given chat session
511
518
  ```typescript
512
519
  await client.agent.getChatMessages({
513
520
  chat_session_id: "chat_session_id",
521
+ num_messages: 1,
522
+ role: "role",
523
+ order: "asc",
514
524
  });
515
525
  ```
516
526
 
@@ -1346,9 +1356,9 @@ await client.construe.cohort({
1346
1356
  </dl>
1347
1357
  </details>
1348
1358
 
1349
- ## Lang2Fhir
1359
+ ## Fhir
1350
1360
 
1351
- <details><summary><code>client.lang2Fhir.<a href="/src/api/resources/lang2Fhir/client/Client.ts">create</a>({ ...params }) -> phenoml.FhirResource</code></summary>
1361
+ <details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">search</a>(fhirProviderId, fhirPath, { ...params }) -> phenoml.FhirSearchResponse</code></summary>
1352
1362
  <dl>
1353
1363
  <dd>
1354
1364
 
@@ -1360,7 +1370,9 @@ await client.construe.cohort({
1360
1370
  <dl>
1361
1371
  <dd>
1362
1372
 
1363
- Converts natural language text into a structured FHIR resource
1373
+ Retrieves FHIR resources from the specified provider. Supports both individual resource retrieval and search operations based on the FHIR path and query parameters.
1374
+
1375
+ The request is proxied to the configured FHIR server with appropriate authentication headers.
1364
1376
 
1365
1377
  </dd>
1366
1378
  </dl>
@@ -1376,10 +1388,8 @@ Converts natural language text into a structured FHIR resource
1376
1388
  <dd>
1377
1389
 
1378
1390
  ```typescript
1379
- await client.lang2Fhir.create({
1380
- version: "R4",
1381
- resource: "auto",
1382
- text: "Patient has severe asthma with acute exacerbation",
1391
+ await client.fhir.search("550e8400-e29b-41d4-a716-446655440000", "Patient", {
1392
+ "X-Phenoml-On-Behalf-Of": "user@example.com",
1383
1393
  });
1384
1394
  ```
1385
1395
 
@@ -1396,72 +1406,35 @@ await client.lang2Fhir.create({
1396
1406
  <dl>
1397
1407
  <dd>
1398
1408
 
1399
- **request:** `phenoml.lang2Fhir.CreateRequest`
1400
-
1401
- </dd>
1402
- </dl>
1403
-
1404
- <dl>
1405
- <dd>
1409
+ **fhirProviderId:** `string`
1406
1410
 
1407
- **requestOptions:** `Lang2Fhir.RequestOptions`
1411
+ The ID of the FHIR provider to use. Can be either:
1408
1412
 
1409
- </dd>
1410
- </dl>
1411
- </dd>
1412
- </dl>
1413
+ - A UUID representing the provider ID
1414
+ - A provider name (legacy support - will just use the most recently updated provider with this name)
1413
1415
 
1414
1416
  </dd>
1415
1417
  </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
1418
 
1427
1419
  <dl>
1428
1420
  <dd>
1429
1421
 
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>
1422
+ **fhirPath:** `string`
1441
1423
 
1442
- <dl>
1443
- <dd>
1424
+ The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
1425
+ Examples:
1444
1426
 
1445
- ```typescript
1446
- await client.lang2Fhir.search({
1447
- text: "Appointments between March 2-9, 2025",
1448
- });
1449
- ```
1427
+ - "Patient" (for resource type operations)
1428
+ - "Patient/123" (for specific resource operations)
1429
+ - "Patient/123/\_history" (for history operations)
1450
1430
 
1451
- </dd>
1452
- </dl>
1453
1431
  </dd>
1454
1432
  </dl>
1455
1433
 
1456
- #### ⚙️ Parameters
1457
-
1458
- <dl>
1459
- <dd>
1460
-
1461
1434
  <dl>
1462
1435
  <dd>
1463
1436
 
1464
- **request:** `phenoml.lang2Fhir.SearchRequest`
1437
+ **request:** `phenoml.fhir.FhirSearchRequest`
1465
1438
 
1466
1439
  </dd>
1467
1440
  </dl>
@@ -1469,7 +1442,7 @@ await client.lang2Fhir.search({
1469
1442
  <dl>
1470
1443
  <dd>
1471
1444
 
1472
- **requestOptions:** `Lang2Fhir.RequestOptions`
1445
+ **requestOptions:** `Fhir.RequestOptions`
1473
1446
 
1474
1447
  </dd>
1475
1448
  </dl>
@@ -1480,7 +1453,7 @@ await client.lang2Fhir.search({
1480
1453
  </dl>
1481
1454
  </details>
1482
1455
 
1483
- <details><summary><code>client.lang2Fhir.<a href="/src/api/resources/lang2Fhir/client/Client.ts">uploadProfile</a>({ ...params }) -> phenoml.Lang2FhirUploadProfileResponse</code></summary>
1456
+ <details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">create</a>(fhirProviderId, fhirPath, { ...params }) -> phenoml.FhirResource</code></summary>
1484
1457
  <dl>
1485
1458
  <dd>
1486
1459
 
@@ -1492,7 +1465,9 @@ await client.lang2Fhir.search({
1492
1465
  <dl>
1493
1466
  <dd>
1494
1467
 
1495
- Upload a custom FHIR StructureDefinition profile for use with the lang2fhir service
1468
+ Creates a new FHIR resource on the specified provider. The request body should contain a valid FHIR resource in JSON format.
1469
+
1470
+ The request is proxied to the configured FHIR server with appropriate authentication headers.
1496
1471
 
1497
1472
  </dd>
1498
1473
  </dl>
@@ -1508,10 +1483,19 @@ Upload a custom FHIR StructureDefinition profile for use with the lang2fhir serv
1508
1483
  <dd>
1509
1484
 
1510
1485
  ```typescript
1511
- await client.lang2Fhir.uploadProfile({
1512
- version: "version",
1513
- resource: "custom-patient",
1514
- profile: "profile",
1486
+ await client.fhir.create("550e8400-e29b-41d4-a716-446655440000", "Patient", {
1487
+ "X-Phenoml-On-Behalf-Of": "user@example.com",
1488
+ body: {
1489
+ resourceType: "Patient",
1490
+ name: [
1491
+ {
1492
+ family: "Doe",
1493
+ given: ["Jane"],
1494
+ },
1495
+ ],
1496
+ gender: "female",
1497
+ birthDate: "1990-01-01",
1498
+ },
1515
1499
  });
1516
1500
  ```
1517
1501
 
@@ -1528,7 +1512,12 @@ await client.lang2Fhir.uploadProfile({
1528
1512
  <dl>
1529
1513
  <dd>
1530
1514
 
1531
- **request:** `phenoml.lang2Fhir.ProfileUploadRequest`
1515
+ **fhirProviderId:** `string`
1516
+
1517
+ The ID of the FHIR provider to use. Can be either:
1518
+
1519
+ - A UUID representing the provider ID
1520
+ - A provider name (legacy support - will just use the most recently updated provider with this name)
1532
1521
 
1533
1522
  </dd>
1534
1523
  </dl>
@@ -1536,7 +1525,30 @@ await client.lang2Fhir.uploadProfile({
1536
1525
  <dl>
1537
1526
  <dd>
1538
1527
 
1539
- **requestOptions:** `Lang2Fhir.RequestOptions`
1528
+ **fhirPath:** `string`
1529
+
1530
+ The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
1531
+ Examples:
1532
+
1533
+ - "Patient" (for resource type operations)
1534
+ - "Patient/123" (for specific resource operations)
1535
+ - "Patient/123/\_history" (for history operations)
1536
+
1537
+ </dd>
1538
+ </dl>
1539
+
1540
+ <dl>
1541
+ <dd>
1542
+
1543
+ **request:** `phenoml.fhir.FhirCreateRequest`
1544
+
1545
+ </dd>
1546
+ </dl>
1547
+
1548
+ <dl>
1549
+ <dd>
1550
+
1551
+ **requestOptions:** `Fhir.RequestOptions`
1540
1552
 
1541
1553
  </dd>
1542
1554
  </dl>
@@ -1547,7 +1559,7 @@ await client.lang2Fhir.uploadProfile({
1547
1559
  </dl>
1548
1560
  </details>
1549
1561
 
1550
- <details><summary><code>client.lang2Fhir.<a href="/src/api/resources/lang2Fhir/client/Client.ts">document</a>({ ...params }) -> phenoml.FhirResource</code></summary>
1562
+ <details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">upsert</a>(fhirProviderId, fhirPath, { ...params }) -> phenoml.FhirResource</code></summary>
1551
1563
  <dl>
1552
1564
  <dd>
1553
1565
 
@@ -1559,7 +1571,9 @@ await client.lang2Fhir.uploadProfile({
1559
1571
  <dl>
1560
1572
  <dd>
1561
1573
 
1562
- Extracts text from a document (PDF or image) and converts it into a structured FHIR resource
1574
+ Creates or updates a FHIR resource on the specified provider. If the resource exists, it will be updated; otherwise, it will be created.
1575
+
1576
+ The request is proxied to the configured FHIR server with appropriate authentication headers.
1563
1577
 
1564
1578
  </dd>
1565
1579
  </dl>
@@ -1575,11 +1589,20 @@ Extracts text from a document (PDF or image) and converts it into a structured F
1575
1589
  <dd>
1576
1590
 
1577
1591
  ```typescript
1578
- await client.lang2Fhir.document({
1579
- version: "R4",
1580
- resource: "questionnaire",
1581
- content: "content",
1582
- fileType: "application/pdf",
1592
+ await client.fhir.upsert("550e8400-e29b-41d4-a716-446655440000", "Patient", {
1593
+ "X-Phenoml-On-Behalf-Of": "user@example.com",
1594
+ body: {
1595
+ resourceType: "Patient",
1596
+ id: "123",
1597
+ name: [
1598
+ {
1599
+ family: "Doe",
1600
+ given: ["John", "Updated"],
1601
+ },
1602
+ ],
1603
+ gender: "male",
1604
+ birthDate: "1985-05-15",
1605
+ },
1583
1606
  });
1584
1607
  ```
1585
1608
 
@@ -1596,7 +1619,12 @@ await client.lang2Fhir.document({
1596
1619
  <dl>
1597
1620
  <dd>
1598
1621
 
1599
- **request:** `phenoml.lang2Fhir.DocumentRequest`
1622
+ **fhirProviderId:** `string`
1623
+
1624
+ The ID of the FHIR provider to use. Can be either:
1625
+
1626
+ - A UUID representing the provider ID
1627
+ - A provider name (legacy support - will just use the most recently updated provider with this name)
1600
1628
 
1601
1629
  </dd>
1602
1630
  </dl>
@@ -1604,7 +1632,30 @@ await client.lang2Fhir.document({
1604
1632
  <dl>
1605
1633
  <dd>
1606
1634
 
1607
- **requestOptions:** `Lang2Fhir.RequestOptions`
1635
+ **fhirPath:** `string`
1636
+
1637
+ The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
1638
+ Examples:
1639
+
1640
+ - "Patient" (for resource type operations)
1641
+ - "Patient/123" (for specific resource operations)
1642
+ - "Patient/123/\_history" (for history operations)
1643
+
1644
+ </dd>
1645
+ </dl>
1646
+
1647
+ <dl>
1648
+ <dd>
1649
+
1650
+ **request:** `phenoml.fhir.FhirUpsertRequest`
1651
+
1652
+ </dd>
1653
+ </dl>
1654
+
1655
+ <dl>
1656
+ <dd>
1657
+
1658
+ **requestOptions:** `Fhir.RequestOptions`
1608
1659
 
1609
1660
  </dd>
1610
1661
  </dl>
@@ -1615,9 +1666,7 @@ await client.lang2Fhir.document({
1615
1666
  </dl>
1616
1667
  </details>
1617
1668
 
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>
1669
+ <details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">delete</a>(fhirProviderId, fhirPath, { ...params }) -> Record<string, unknown></code></summary>
1621
1670
  <dl>
1622
1671
  <dd>
1623
1672
 
@@ -1629,7 +1678,9 @@ await client.lang2Fhir.document({
1629
1678
  <dl>
1630
1679
  <dd>
1631
1680
 
1632
- Converts natural language to FHIR resource and optionally stores it in a FHIR server
1681
+ Deletes a FHIR resource from the specified provider.
1682
+
1683
+ The request is proxied to the configured FHIR server with appropriate authentication headers.
1633
1684
 
1634
1685
  </dd>
1635
1686
  </dl>
@@ -1645,9 +1696,8 @@ Converts natural language to FHIR resource and optionally stores it in a FHIR se
1645
1696
  <dd>
1646
1697
 
1647
1698
  ```typescript
1648
- await client.tools.createFhirResource({
1649
- resource: "auto",
1650
- text: "Patient John Doe has severe asthma with acute exacerbation",
1699
+ await client.fhir.delete("550e8400-e29b-41d4-a716-446655440000", "Patient", {
1700
+ "X-Phenoml-On-Behalf-Of": "user@example.com",
1651
1701
  });
1652
1702
  ```
1653
1703
 
@@ -1664,7 +1714,12 @@ await client.tools.createFhirResource({
1664
1714
  <dl>
1665
1715
  <dd>
1666
1716
 
1667
- **request:** `phenoml.tools.Lang2FhirAndCreateRequest`
1717
+ **fhirProviderId:** `string`
1718
+
1719
+ The ID of the FHIR provider to use. Can be either:
1720
+
1721
+ - A UUID representing the provider ID
1722
+ - A provider name (legacy support - will just use the most recently updated provider with this name)
1668
1723
 
1669
1724
  </dd>
1670
1725
  </dl>
@@ -1672,7 +1727,30 @@ await client.tools.createFhirResource({
1672
1727
  <dl>
1673
1728
  <dd>
1674
1729
 
1675
- **requestOptions:** `Tools.RequestOptions`
1730
+ **fhirPath:** `string`
1731
+
1732
+ The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
1733
+ Examples:
1734
+
1735
+ - "Patient" (for resource type operations)
1736
+ - "Patient/123" (for specific resource operations)
1737
+ - "Patient/123/\_history" (for history operations)
1738
+
1739
+ </dd>
1740
+ </dl>
1741
+
1742
+ <dl>
1743
+ <dd>
1744
+
1745
+ **request:** `phenoml.fhir.FhirDeleteRequest`
1746
+
1747
+ </dd>
1748
+ </dl>
1749
+
1750
+ <dl>
1751
+ <dd>
1752
+
1753
+ **requestOptions:** `Fhir.RequestOptions`
1676
1754
 
1677
1755
  </dd>
1678
1756
  </dl>
@@ -1683,7 +1761,7 @@ await client.tools.createFhirResource({
1683
1761
  </dl>
1684
1762
  </details>
1685
1763
 
1686
- <details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">searchFhirResources</a>({ ...params }) -> phenoml.Lang2FhirAndSearchResponse</code></summary>
1764
+ <details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">patch</a>(fhirProviderId, fhirPath, { ...params }) -> phenoml.FhirResource</code></summary>
1687
1765
  <dl>
1688
1766
  <dd>
1689
1767
 
@@ -1695,7 +1773,15 @@ await client.tools.createFhirResource({
1695
1773
  <dl>
1696
1774
  <dd>
1697
1775
 
1698
- Converts natural language to FHIR search parameters and executes search in FHIR server
1776
+ Partially updates a FHIR resource on the specified provider using JSON Patch operations as defined in RFC 6902.
1777
+
1778
+ The request body should contain an array of JSON Patch operations. Each operation specifies:
1779
+
1780
+ - `op`: The operation type (add, remove, replace, move, copy, test)
1781
+ - `path`: JSON Pointer to the target location in the resource
1782
+ - `value`: The value to use (required for add, replace, and test operations)
1783
+
1784
+ The request is proxied to the configured FHIR server with appropriate authentication headers.
1699
1785
 
1700
1786
  </dd>
1701
1787
  </dl>
@@ -1711,8 +1797,15 @@ Converts natural language to FHIR search parameters and executes search in FHIR
1711
1797
  <dd>
1712
1798
 
1713
1799
  ```typescript
1714
- await client.tools.searchFhirResources({
1715
- text: "Find all appointments for patient John Doe next week",
1800
+ await client.fhir.patch("550e8400-e29b-41d4-a716-446655440000", "Patient", {
1801
+ "X-Phenoml-On-Behalf-Of": "user@example.com",
1802
+ body: [
1803
+ {
1804
+ op: "replace",
1805
+ path: "/name/0/family",
1806
+ value: "NewFamilyName",
1807
+ },
1808
+ ],
1716
1809
  });
1717
1810
  ```
1718
1811
 
@@ -1729,7 +1822,12 @@ await client.tools.searchFhirResources({
1729
1822
  <dl>
1730
1823
  <dd>
1731
1824
 
1732
- **request:** `phenoml.tools.Lang2FhirAndSearchRequest`
1825
+ **fhirProviderId:** `string`
1826
+
1827
+ The ID of the FHIR provider to use. Can be either:
1828
+
1829
+ - A UUID representing the provider ID
1830
+ - A provider name (legacy support - will just use the most recently updated provider with this name)
1733
1831
 
1734
1832
  </dd>
1735
1833
  </dl>
@@ -1737,7 +1835,30 @@ await client.tools.searchFhirResources({
1737
1835
  <dl>
1738
1836
  <dd>
1739
1837
 
1740
- **requestOptions:** `Tools.RequestOptions`
1838
+ **fhirPath:** `string`
1839
+
1840
+ The FHIR resource path to operate on. This follows FHIR RESTful API conventions.
1841
+ Examples:
1842
+
1843
+ - "Patient" (for resource type operations)
1844
+ - "Patient/123" (for specific resource operations)
1845
+ - "Patient/123/\_history" (for history operations)
1846
+
1847
+ </dd>
1848
+ </dl>
1849
+
1850
+ <dl>
1851
+ <dd>
1852
+
1853
+ **request:** `phenoml.fhir.FhirPatchRequest`
1854
+
1855
+ </dd>
1856
+ </dl>
1857
+
1858
+ <dl>
1859
+ <dd>
1860
+
1861
+ **requestOptions:** `Fhir.RequestOptions`
1741
1862
 
1742
1863
  </dd>
1743
1864
  </dl>
@@ -1748,7 +1869,7 @@ await client.tools.searchFhirResources({
1748
1869
  </dl>
1749
1870
  </details>
1750
1871
 
1751
- <details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">analyzeCohort</a>({ ...params }) -> phenoml.CohortResponse</code></summary>
1872
+ <details><summary><code>client.fhir.<a href="/src/api/resources/fhir/client/Client.ts">executeBundle</a>(fhirProviderId, { ...params }) -> phenoml.FhirBundle</code></summary>
1752
1873
  <dl>
1753
1874
  <dd>
1754
1875
 
@@ -1760,7 +1881,11 @@ await client.tools.searchFhirResources({
1760
1881
  <dl>
1761
1882
  <dd>
1762
1883
 
1763
- Uses LLM to extract search concepts from natural language and builds patient cohorts with inclusion/exclusion criteria
1884
+ Executes a FHIR Bundle transaction or batch operation on the specified provider. This allows multiple FHIR resources to be processed in a single request.
1885
+
1886
+ The request body should contain a valid FHIR Bundle resource with transaction or batch type.
1887
+
1888
+ The request is proxied to the configured FHIR server with appropriate authentication headers.
1764
1889
 
1765
1890
  </dd>
1766
1891
  </dl>
@@ -1776,9 +1901,41 @@ Uses LLM to extract search concepts from natural language and builds patient coh
1776
1901
  <dd>
1777
1902
 
1778
1903
  ```typescript
1779
- await client.tools.analyzeCohort({
1780
- text: "female patients over 20 with diabetes but not hypertension",
1781
- provider: "medplum",
1904
+ await client.fhir.executeBundle("550e8400-e29b-41d4-a716-446655440000", {
1905
+ "X-Phenoml-On-Behalf-Of": "user@example.com",
1906
+ body: {
1907
+ resourceType: "Bundle",
1908
+ entry: [
1909
+ {
1910
+ resource: {
1911
+ resourceType: "Patient",
1912
+ name: [
1913
+ {
1914
+ family: "Doe",
1915
+ given: ["John"],
1916
+ },
1917
+ ],
1918
+ },
1919
+ request: {
1920
+ method: "POST",
1921
+ url: "Patient",
1922
+ },
1923
+ },
1924
+ {
1925
+ resource: {
1926
+ resourceType: "Observation",
1927
+ status: "final",
1928
+ subject: {
1929
+ reference: "Patient/123",
1930
+ },
1931
+ },
1932
+ request: {
1933
+ method: "POST",
1934
+ url: "Observation",
1935
+ },
1936
+ },
1937
+ ],
1938
+ },
1782
1939
  });
1783
1940
  ```
1784
1941
 
@@ -1795,7 +1952,12 @@ await client.tools.analyzeCohort({
1795
1952
  <dl>
1796
1953
  <dd>
1797
1954
 
1798
- **request:** `phenoml.tools.CohortRequest`
1955
+ **fhirProviderId:** `string`
1956
+
1957
+ The ID of the FHIR provider to use. Can be either:
1958
+
1959
+ - A UUID representing the provider ID
1960
+ - A provider name (legacy support - will just use the most recently updated provider with this name)
1799
1961
 
1800
1962
  </dd>
1801
1963
  </dl>
@@ -1803,7 +1965,15 @@ await client.tools.analyzeCohort({
1803
1965
  <dl>
1804
1966
  <dd>
1805
1967
 
1806
- **requestOptions:** `Tools.RequestOptions`
1968
+ **request:** `phenoml.fhir.FhirExecuteBundleRequest`
1969
+
1970
+ </dd>
1971
+ </dl>
1972
+
1973
+ <dl>
1974
+ <dd>
1975
+
1976
+ **requestOptions:** `Fhir.RequestOptions`
1807
1977
 
1808
1978
  </dd>
1809
1979
  </dl>
@@ -1814,9 +1984,9 @@ await client.tools.analyzeCohort({
1814
1984
  </dl>
1815
1985
  </details>
1816
1986
 
1817
- ## Tools McpServer
1987
+ ## FhirProvider
1818
1988
 
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>
1989
+ <details><summary><code>client.fhirProvider.<a href="/src/api/resources/fhirProvider/client/Client.ts">create</a>({ ...params }) -> phenoml.FhirProviderResponse</code></summary>
1820
1990
  <dl>
1821
1991
  <dd>
1822
1992
 
@@ -1828,7 +1998,7 @@ await client.tools.analyzeCohort({
1828
1998
  <dl>
1829
1999
  <dd>
1830
2000
 
1831
- Creates a new MCP server
2001
+ Creates a new FHIR provider configuration with authentication credentials
1832
2002
 
1833
2003
  </dd>
1834
2004
  </dl>
@@ -1844,9 +2014,11 @@ Creates a new MCP server
1844
2014
  <dd>
1845
2015
 
1846
2016
  ```typescript
1847
- await client.tools.mcpServer.create({
1848
- name: "My MCP Server",
1849
- mcp_server_url: "https://mcp.example.com",
2017
+ await client.fhirProvider.create({
2018
+ name: "Epic Sandbox",
2019
+ provider: "athenahealth",
2020
+ auth_method: "client_secret",
2021
+ base_url: "https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4",
1850
2022
  });
1851
2023
  ```
1852
2024
 
@@ -1863,7 +2035,7 @@ await client.tools.mcpServer.create({
1863
2035
  <dl>
1864
2036
  <dd>
1865
2037
 
1866
- **request:** `phenoml.tools.McpServerCreateRequest`
2038
+ **request:** `phenoml.fhirProvider.FhirProviderCreateRequest`
1867
2039
 
1868
2040
  </dd>
1869
2041
  </dl>
@@ -1871,7 +2043,7 @@ await client.tools.mcpServer.create({
1871
2043
  <dl>
1872
2044
  <dd>
1873
2045
 
1874
- **requestOptions:** `McpServer.RequestOptions`
2046
+ **requestOptions:** `FhirProvider.RequestOptions`
1875
2047
 
1876
2048
  </dd>
1877
2049
  </dl>
@@ -1882,7 +2054,7 @@ await client.tools.mcpServer.create({
1882
2054
  </dl>
1883
2055
  </details>
1884
2056
 
1885
- <details><summary><code>client.tools.mcpServer.<a href="/src/api/resources/tools/resources/mcpServer/client/Client.ts">list</a>() -> phenoml.McpServerResponse</code></summary>
2057
+ <details><summary><code>client.fhirProvider.<a href="/src/api/resources/fhirProvider/client/Client.ts">list</a>() -> phenoml.FhirProviderListResponse</code></summary>
1886
2058
  <dl>
1887
2059
  <dd>
1888
2060
 
@@ -1894,7 +2066,7 @@ await client.tools.mcpServer.create({
1894
2066
  <dl>
1895
2067
  <dd>
1896
2068
 
1897
- Lists all MCP servers for a specific user
2069
+ Retrieves a list of all active FHIR providers for the authenticated user
1898
2070
 
1899
2071
  </dd>
1900
2072
  </dl>
@@ -1910,7 +2082,7 @@ Lists all MCP servers for a specific user
1910
2082
  <dd>
1911
2083
 
1912
2084
  ```typescript
1913
- await client.tools.mcpServer.list();
2085
+ await client.fhirProvider.list();
1914
2086
  ```
1915
2087
 
1916
2088
  </dd>
@@ -1926,7 +2098,7 @@ await client.tools.mcpServer.list();
1926
2098
  <dl>
1927
2099
  <dd>
1928
2100
 
1929
- **requestOptions:** `McpServer.RequestOptions`
2101
+ **requestOptions:** `FhirProvider.RequestOptions`
1930
2102
 
1931
2103
  </dd>
1932
2104
  </dl>
@@ -1937,7 +2109,7 @@ await client.tools.mcpServer.list();
1937
2109
  </dl>
1938
2110
  </details>
1939
2111
 
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>
2112
+ <details><summary><code>client.fhirProvider.<a href="/src/api/resources/fhirProvider/client/Client.ts">get</a>(fhirProviderId) -> phenoml.FhirProviderResponse</code></summary>
1941
2113
  <dl>
1942
2114
  <dd>
1943
2115
 
@@ -1949,7 +2121,7 @@ await client.tools.mcpServer.list();
1949
2121
  <dl>
1950
2122
  <dd>
1951
2123
 
1952
- Gets a MCP server by ID
2124
+ Retrieves a specific FHIR provider configuration by its ID
1953
2125
 
1954
2126
  </dd>
1955
2127
  </dl>
@@ -1965,7 +2137,7 @@ Gets a MCP server by ID
1965
2137
  <dd>
1966
2138
 
1967
2139
  ```typescript
1968
- await client.tools.mcpServer.get("mcp_server_id");
2140
+ await client.fhirProvider.get("fhir_provider_id");
1969
2141
  ```
1970
2142
 
1971
2143
  </dd>
@@ -1981,7 +2153,7 @@ await client.tools.mcpServer.get("mcp_server_id");
1981
2153
  <dl>
1982
2154
  <dd>
1983
2155
 
1984
- **mcpServerId:** `string` — ID of the MCP server to retrieve
2156
+ **fhirProviderId:** `string` — ID of the FHIR provider to retrieve
1985
2157
 
1986
2158
  </dd>
1987
2159
  </dl>
@@ -1989,7 +2161,7 @@ await client.tools.mcpServer.get("mcp_server_id");
1989
2161
  <dl>
1990
2162
  <dd>
1991
2163
 
1992
- **requestOptions:** `McpServer.RequestOptions`
2164
+ **requestOptions:** `FhirProvider.RequestOptions`
1993
2165
 
1994
2166
  </dd>
1995
2167
  </dl>
@@ -2000,7 +2172,7 @@ await client.tools.mcpServer.get("mcp_server_id");
2000
2172
  </dl>
2001
2173
  </details>
2002
2174
 
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>
2175
+ <details><summary><code>client.fhirProvider.<a href="/src/api/resources/fhirProvider/client/Client.ts">delete</a>(fhirProviderId) -> phenoml.FhirProviderDeleteResponse</code></summary>
2004
2176
  <dl>
2005
2177
  <dd>
2006
2178
 
@@ -2012,7 +2184,7 @@ await client.tools.mcpServer.get("mcp_server_id");
2012
2184
  <dl>
2013
2185
  <dd>
2014
2186
 
2015
- Deletes a MCP server by ID
2187
+ Soft deletes a FHIR provider by setting is_active to false
2016
2188
 
2017
2189
  </dd>
2018
2190
  </dl>
@@ -2028,7 +2200,7 @@ Deletes a MCP server by ID
2028
2200
  <dd>
2029
2201
 
2030
2202
  ```typescript
2031
- await client.tools.mcpServer.delete("mcp_server_id");
2203
+ await client.fhirProvider.delete("fhir_provider_id");
2032
2204
  ```
2033
2205
 
2034
2206
  </dd>
@@ -2044,7 +2216,7 @@ await client.tools.mcpServer.delete("mcp_server_id");
2044
2216
  <dl>
2045
2217
  <dd>
2046
2218
 
2047
- **mcpServerId:** `string` — ID of the MCP server to delete
2219
+ **fhirProviderId:** `string` — ID of the FHIR provider to delete
2048
2220
 
2049
2221
  </dd>
2050
2222
  </dl>
@@ -2052,7 +2224,7 @@ await client.tools.mcpServer.delete("mcp_server_id");
2052
2224
  <dl>
2053
2225
  <dd>
2054
2226
 
2055
- **requestOptions:** `McpServer.RequestOptions`
2227
+ **requestOptions:** `FhirProvider.RequestOptions`
2056
2228
 
2057
2229
  </dd>
2058
2230
  </dl>
@@ -2063,9 +2235,7 @@ await client.tools.mcpServer.delete("mcp_server_id");
2063
2235
  </dl>
2064
2236
  </details>
2065
2237
 
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>
2238
+ <details><summary><code>client.fhirProvider.<a href="/src/api/resources/fhirProvider/client/Client.ts">addAuthConfig</a>(fhirProviderId, { ...params }) -> phenoml.FhirProviderResponse</code></summary>
2069
2239
  <dl>
2070
2240
  <dd>
2071
2241
 
@@ -2077,7 +2247,7 @@ await client.tools.mcpServer.delete("mcp_server_id");
2077
2247
  <dl>
2078
2248
  <dd>
2079
2249
 
2080
- Lists all MCP server tools for a specific MCP server
2250
+ Adds a new authentication configuration to an existing FHIR provider. This enables key rotation and multiple auth configurations per provider.
2081
2251
 
2082
2252
  </dd>
2083
2253
  </dl>
@@ -2093,7 +2263,9 @@ Lists all MCP server tools for a specific MCP server
2093
2263
  <dd>
2094
2264
 
2095
2265
  ```typescript
2096
- await client.tools.mcpServer.tools.list("mcp_server_id");
2266
+ await client.fhirProvider.addAuthConfig("1716d214-de93-43a4-aa6b-a878d864e2ad", {
2267
+ auth_method: "client_secret",
2268
+ });
2097
2269
  ```
2098
2270
 
2099
2271
  </dd>
@@ -2109,7 +2281,7 @@ await client.tools.mcpServer.tools.list("mcp_server_id");
2109
2281
  <dl>
2110
2282
  <dd>
2111
2283
 
2112
- **mcpServerId:** `string` — ID of the MCP server to list tools for
2284
+ **fhirProviderId:** `string` — ID of the FHIR provider to add auth config to
2113
2285
 
2114
2286
  </dd>
2115
2287
  </dl>
@@ -2117,7 +2289,15 @@ await client.tools.mcpServer.tools.list("mcp_server_id");
2117
2289
  <dl>
2118
2290
  <dd>
2119
2291
 
2120
- **requestOptions:** `Tools.RequestOptions`
2292
+ **request:** `phenoml.fhirProvider.FhirProviderAddAuthConfigRequest`
2293
+
2294
+ </dd>
2295
+ </dl>
2296
+
2297
+ <dl>
2298
+ <dd>
2299
+
2300
+ **requestOptions:** `FhirProvider.RequestOptions`
2121
2301
 
2122
2302
  </dd>
2123
2303
  </dl>
@@ -2128,7 +2308,7 @@ await client.tools.mcpServer.tools.list("mcp_server_id");
2128
2308
  </dl>
2129
2309
  </details>
2130
2310
 
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>
2311
+ <details><summary><code>client.fhirProvider.<a href="/src/api/resources/fhirProvider/client/Client.ts">setActiveAuthConfig</a>(fhirProviderId, { ...params }) -> phenoml.FhirProviderSetActiveAuthConfigResponse</code></summary>
2132
2312
  <dl>
2133
2313
  <dd>
2134
2314
 
@@ -2140,7 +2320,7 @@ await client.tools.mcpServer.tools.list("mcp_server_id");
2140
2320
  <dl>
2141
2321
  <dd>
2142
2322
 
2143
- Gets a MCP server tool by ID
2323
+ Sets which authentication configuration should be active for a FHIR provider. Only one auth config can be active at a time.
2144
2324
 
2145
2325
  </dd>
2146
2326
  </dl>
@@ -2156,7 +2336,9 @@ Gets a MCP server tool by ID
2156
2336
  <dd>
2157
2337
 
2158
2338
  ```typescript
2159
- await client.tools.mcpServer.tools.get("mcp_server_tool_id");
2339
+ await client.fhirProvider.setActiveAuthConfig("1716d214-de93-43a4-aa6b-a878d864e2ad", {
2340
+ auth_config_id: "auth-config-123",
2341
+ });
2160
2342
  ```
2161
2343
 
2162
2344
  </dd>
@@ -2172,7 +2354,7 @@ await client.tools.mcpServer.tools.get("mcp_server_tool_id");
2172
2354
  <dl>
2173
2355
  <dd>
2174
2356
 
2175
- **mcpServerToolId:** `string` — ID of the MCP server tool to retrieve
2357
+ **fhirProviderId:** `string` — ID of the FHIR provider
2176
2358
 
2177
2359
  </dd>
2178
2360
  </dl>
@@ -2180,7 +2362,15 @@ await client.tools.mcpServer.tools.get("mcp_server_tool_id");
2180
2362
  <dl>
2181
2363
  <dd>
2182
2364
 
2183
- **requestOptions:** `Tools.RequestOptions`
2365
+ **request:** `phenoml.fhirProvider.FhirProviderSetActiveAuthConfigRequest`
2366
+
2367
+ </dd>
2368
+ </dl>
2369
+
2370
+ <dl>
2371
+ <dd>
2372
+
2373
+ **requestOptions:** `FhirProvider.RequestOptions`
2184
2374
 
2185
2375
  </dd>
2186
2376
  </dl>
@@ -2191,7 +2381,7 @@ await client.tools.mcpServer.tools.get("mcp_server_tool_id");
2191
2381
  </dl>
2192
2382
  </details>
2193
2383
 
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>
2384
+ <details><summary><code>client.fhirProvider.<a href="/src/api/resources/fhirProvider/client/Client.ts">removeAuthConfig</a>(fhirProviderId, { ...params }) -> phenoml.FhirProviderRemoveAuthConfigResponse</code></summary>
2195
2385
  <dl>
2196
2386
  <dd>
2197
2387
 
@@ -2203,7 +2393,7 @@ await client.tools.mcpServer.tools.get("mcp_server_tool_id");
2203
2393
  <dl>
2204
2394
  <dd>
2205
2395
 
2206
- Deletes a MCP server tool by ID
2396
+ Removes an authentication configuration from a FHIR provider. Cannot remove the currently active auth configuration.
2207
2397
 
2208
2398
  </dd>
2209
2399
  </dl>
@@ -2219,7 +2409,9 @@ Deletes a MCP server tool by ID
2219
2409
  <dd>
2220
2410
 
2221
2411
  ```typescript
2222
- await client.tools.mcpServer.tools.delete("mcp_server_tool_id");
2412
+ await client.fhirProvider.removeAuthConfig("1716d214-de93-43a4-aa6b-a878d864e2ad", {
2413
+ auth_config_id: "auth-config-123",
2414
+ });
2223
2415
  ```
2224
2416
 
2225
2417
  </dd>
@@ -2235,7 +2427,7 @@ await client.tools.mcpServer.tools.delete("mcp_server_tool_id");
2235
2427
  <dl>
2236
2428
  <dd>
2237
2429
 
2238
- **mcpServerToolId:** `string` — ID of the MCP server tool to delete
2430
+ **fhirProviderId:** `string` — ID of the FHIR provider
2239
2431
 
2240
2432
  </dd>
2241
2433
  </dl>
@@ -2243,7 +2435,15 @@ await client.tools.mcpServer.tools.delete("mcp_server_tool_id");
2243
2435
  <dl>
2244
2436
  <dd>
2245
2437
 
2246
- **requestOptions:** `Tools.RequestOptions`
2438
+ **request:** `phenoml.fhirProvider.FhirProviderRemoveAuthConfigRequest`
2439
+
2440
+ </dd>
2441
+ </dl>
2442
+
2443
+ <dl>
2444
+ <dd>
2445
+
2446
+ **requestOptions:** `FhirProvider.RequestOptions`
2247
2447
 
2248
2448
  </dd>
2249
2449
  </dl>
@@ -2254,7 +2454,9 @@ await client.tools.mcpServer.tools.delete("mcp_server_tool_id");
2254
2454
  </dl>
2255
2455
  </details>
2256
2456
 
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>
2457
+ ## Lang2Fhir
2458
+
2459
+ <details><summary><code>client.lang2Fhir.<a href="/src/api/resources/lang2Fhir/client/Client.ts">create</a>({ ...params }) -> phenoml.FhirResource</code></summary>
2258
2460
  <dl>
2259
2461
  <dd>
2260
2462
 
@@ -2266,7 +2468,7 @@ await client.tools.mcpServer.tools.delete("mcp_server_tool_id");
2266
2468
  <dl>
2267
2469
  <dd>
2268
2470
 
2269
- Calls a MCP server tool
2471
+ Converts natural language text into a structured FHIR resource
2270
2472
 
2271
2473
  </dd>
2272
2474
  </dl>
@@ -2282,10 +2484,10 @@ Calls a MCP server tool
2282
2484
  <dd>
2283
2485
 
2284
2486
  ```typescript
2285
- await client.tools.mcpServer.tools.call("mcp_server_tool_id", {
2286
- arguments: {
2287
- title: "PhenoML Agent API",
2288
- },
2487
+ await client.lang2Fhir.create({
2488
+ version: "R4",
2489
+ resource: "auto",
2490
+ text: "Patient has severe asthma with acute exacerbation",
2289
2491
  });
2290
2492
  ```
2291
2493
 
@@ -2302,7 +2504,7 @@ await client.tools.mcpServer.tools.call("mcp_server_tool_id", {
2302
2504
  <dl>
2303
2505
  <dd>
2304
2506
 
2305
- **mcpServerToolId:** `string` — ID of the MCP server tool to call
2507
+ **request:** `phenoml.lang2Fhir.CreateRequest`
2306
2508
 
2307
2509
  </dd>
2308
2510
  </dl>
@@ -2310,7 +2512,1842 @@ await client.tools.mcpServer.tools.call("mcp_server_tool_id", {
2310
2512
  <dl>
2311
2513
  <dd>
2312
2514
 
2313
- **request:** `phenoml.tools.mcpServer.McpServerToolCallRequest`
2515
+ **requestOptions:** `Lang2Fhir.RequestOptions`
2516
+
2517
+ </dd>
2518
+ </dl>
2519
+ </dd>
2520
+ </dl>
2521
+
2522
+ </dd>
2523
+ </dl>
2524
+ </details>
2525
+
2526
+ <details><summary><code>client.lang2Fhir.<a href="/src/api/resources/lang2Fhir/client/Client.ts">search</a>({ ...params }) -> phenoml.SearchResponse</code></summary>
2527
+ <dl>
2528
+ <dd>
2529
+
2530
+ #### 📝 Description
2531
+
2532
+ <dl>
2533
+ <dd>
2534
+
2535
+ <dl>
2536
+ <dd>
2537
+
2538
+ Converts natural language text into FHIR search parameters
2539
+
2540
+ </dd>
2541
+ </dl>
2542
+ </dd>
2543
+ </dl>
2544
+
2545
+ #### 🔌 Usage
2546
+
2547
+ <dl>
2548
+ <dd>
2549
+
2550
+ <dl>
2551
+ <dd>
2552
+
2553
+ ```typescript
2554
+ await client.lang2Fhir.search({
2555
+ text: "Appointments between March 2-9, 2025",
2556
+ });
2557
+ ```
2558
+
2559
+ </dd>
2560
+ </dl>
2561
+ </dd>
2562
+ </dl>
2563
+
2564
+ #### ⚙️ Parameters
2565
+
2566
+ <dl>
2567
+ <dd>
2568
+
2569
+ <dl>
2570
+ <dd>
2571
+
2572
+ **request:** `phenoml.lang2Fhir.SearchRequest`
2573
+
2574
+ </dd>
2575
+ </dl>
2576
+
2577
+ <dl>
2578
+ <dd>
2579
+
2580
+ **requestOptions:** `Lang2Fhir.RequestOptions`
2581
+
2582
+ </dd>
2583
+ </dl>
2584
+ </dd>
2585
+ </dl>
2586
+
2587
+ </dd>
2588
+ </dl>
2589
+ </details>
2590
+
2591
+ <details><summary><code>client.lang2Fhir.<a href="/src/api/resources/lang2Fhir/client/Client.ts">uploadProfile</a>({ ...params }) -> phenoml.Lang2FhirUploadProfileResponse</code></summary>
2592
+ <dl>
2593
+ <dd>
2594
+
2595
+ #### 📝 Description
2596
+
2597
+ <dl>
2598
+ <dd>
2599
+
2600
+ <dl>
2601
+ <dd>
2602
+
2603
+ Upload a custom FHIR StructureDefinition profile for use with the lang2fhir service
2604
+
2605
+ </dd>
2606
+ </dl>
2607
+ </dd>
2608
+ </dl>
2609
+
2610
+ #### 🔌 Usage
2611
+
2612
+ <dl>
2613
+ <dd>
2614
+
2615
+ <dl>
2616
+ <dd>
2617
+
2618
+ ```typescript
2619
+ await client.lang2Fhir.uploadProfile({
2620
+ version: "version",
2621
+ resource: "custom-patient",
2622
+ profile: "profile",
2623
+ });
2624
+ ```
2625
+
2626
+ </dd>
2627
+ </dl>
2628
+ </dd>
2629
+ </dl>
2630
+
2631
+ #### ⚙️ Parameters
2632
+
2633
+ <dl>
2634
+ <dd>
2635
+
2636
+ <dl>
2637
+ <dd>
2638
+
2639
+ **request:** `phenoml.lang2Fhir.ProfileUploadRequest`
2640
+
2641
+ </dd>
2642
+ </dl>
2643
+
2644
+ <dl>
2645
+ <dd>
2646
+
2647
+ **requestOptions:** `Lang2Fhir.RequestOptions`
2648
+
2649
+ </dd>
2650
+ </dl>
2651
+ </dd>
2652
+ </dl>
2653
+
2654
+ </dd>
2655
+ </dl>
2656
+ </details>
2657
+
2658
+ <details><summary><code>client.lang2Fhir.<a href="/src/api/resources/lang2Fhir/client/Client.ts">document</a>({ ...params }) -> phenoml.FhirResource</code></summary>
2659
+ <dl>
2660
+ <dd>
2661
+
2662
+ #### 📝 Description
2663
+
2664
+ <dl>
2665
+ <dd>
2666
+
2667
+ <dl>
2668
+ <dd>
2669
+
2670
+ Extracts text from a document (PDF or image) and converts it into a structured FHIR resource
2671
+
2672
+ </dd>
2673
+ </dl>
2674
+ </dd>
2675
+ </dl>
2676
+
2677
+ #### 🔌 Usage
2678
+
2679
+ <dl>
2680
+ <dd>
2681
+
2682
+ <dl>
2683
+ <dd>
2684
+
2685
+ ```typescript
2686
+ await client.lang2Fhir.document({
2687
+ version: "R4",
2688
+ resource: "questionnaire",
2689
+ content: "content",
2690
+ fileType: "application/pdf",
2691
+ });
2692
+ ```
2693
+
2694
+ </dd>
2695
+ </dl>
2696
+ </dd>
2697
+ </dl>
2698
+
2699
+ #### ⚙️ Parameters
2700
+
2701
+ <dl>
2702
+ <dd>
2703
+
2704
+ <dl>
2705
+ <dd>
2706
+
2707
+ **request:** `phenoml.lang2Fhir.DocumentRequest`
2708
+
2709
+ </dd>
2710
+ </dl>
2711
+
2712
+ <dl>
2713
+ <dd>
2714
+
2715
+ **requestOptions:** `Lang2Fhir.RequestOptions`
2716
+
2717
+ </dd>
2718
+ </dl>
2719
+ </dd>
2720
+ </dl>
2721
+
2722
+ </dd>
2723
+ </dl>
2724
+ </details>
2725
+
2726
+ ## Tools
2727
+
2728
+ <details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">createFhirResource</a>({ ...params }) -> phenoml.Lang2FhirAndCreateResponse</code></summary>
2729
+ <dl>
2730
+ <dd>
2731
+
2732
+ #### 📝 Description
2733
+
2734
+ <dl>
2735
+ <dd>
2736
+
2737
+ <dl>
2738
+ <dd>
2739
+
2740
+ Converts natural language to FHIR resource and optionally stores it in a FHIR server
2741
+
2742
+ </dd>
2743
+ </dl>
2744
+ </dd>
2745
+ </dl>
2746
+
2747
+ #### 🔌 Usage
2748
+
2749
+ <dl>
2750
+ <dd>
2751
+
2752
+ <dl>
2753
+ <dd>
2754
+
2755
+ ```typescript
2756
+ await client.tools.createFhirResource({
2757
+ resource: "auto",
2758
+ text: "Patient John Doe has severe asthma with acute exacerbation",
2759
+ });
2760
+ ```
2761
+
2762
+ </dd>
2763
+ </dl>
2764
+ </dd>
2765
+ </dl>
2766
+
2767
+ #### ⚙️ Parameters
2768
+
2769
+ <dl>
2770
+ <dd>
2771
+
2772
+ <dl>
2773
+ <dd>
2774
+
2775
+ **request:** `phenoml.tools.Lang2FhirAndCreateRequest`
2776
+
2777
+ </dd>
2778
+ </dl>
2779
+
2780
+ <dl>
2781
+ <dd>
2782
+
2783
+ **requestOptions:** `Tools.RequestOptions`
2784
+
2785
+ </dd>
2786
+ </dl>
2787
+ </dd>
2788
+ </dl>
2789
+
2790
+ </dd>
2791
+ </dl>
2792
+ </details>
2793
+
2794
+ <details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">searchFhirResources</a>({ ...params }) -> phenoml.Lang2FhirAndSearchResponse</code></summary>
2795
+ <dl>
2796
+ <dd>
2797
+
2798
+ #### 📝 Description
2799
+
2800
+ <dl>
2801
+ <dd>
2802
+
2803
+ <dl>
2804
+ <dd>
2805
+
2806
+ Converts natural language to FHIR search parameters and executes search in FHIR server
2807
+
2808
+ </dd>
2809
+ </dl>
2810
+ </dd>
2811
+ </dl>
2812
+
2813
+ #### 🔌 Usage
2814
+
2815
+ <dl>
2816
+ <dd>
2817
+
2818
+ <dl>
2819
+ <dd>
2820
+
2821
+ ```typescript
2822
+ await client.tools.searchFhirResources({
2823
+ text: "Find all appointments for patient John Doe next week",
2824
+ });
2825
+ ```
2826
+
2827
+ </dd>
2828
+ </dl>
2829
+ </dd>
2830
+ </dl>
2831
+
2832
+ #### ⚙️ Parameters
2833
+
2834
+ <dl>
2835
+ <dd>
2836
+
2837
+ <dl>
2838
+ <dd>
2839
+
2840
+ **request:** `phenoml.tools.Lang2FhirAndSearchRequest`
2841
+
2842
+ </dd>
2843
+ </dl>
2844
+
2845
+ <dl>
2846
+ <dd>
2847
+
2848
+ **requestOptions:** `Tools.RequestOptions`
2849
+
2850
+ </dd>
2851
+ </dl>
2852
+ </dd>
2853
+ </dl>
2854
+
2855
+ </dd>
2856
+ </dl>
2857
+ </details>
2858
+
2859
+ <details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">analyzeCohort</a>({ ...params }) -> phenoml.CohortResponse</code></summary>
2860
+ <dl>
2861
+ <dd>
2862
+
2863
+ #### 📝 Description
2864
+
2865
+ <dl>
2866
+ <dd>
2867
+
2868
+ <dl>
2869
+ <dd>
2870
+
2871
+ Uses LLM to extract search concepts from natural language and builds patient cohorts with inclusion/exclusion criteria
2872
+
2873
+ </dd>
2874
+ </dl>
2875
+ </dd>
2876
+ </dl>
2877
+
2878
+ #### 🔌 Usage
2879
+
2880
+ <dl>
2881
+ <dd>
2882
+
2883
+ <dl>
2884
+ <dd>
2885
+
2886
+ ```typescript
2887
+ await client.tools.analyzeCohort({
2888
+ text: "female patients over 20 with diabetes but not hypertension",
2889
+ provider: "550e8400-e29b-41d4-a716-446655440000",
2890
+ });
2891
+ ```
2892
+
2893
+ </dd>
2894
+ </dl>
2895
+ </dd>
2896
+ </dl>
2897
+
2898
+ #### ⚙️ Parameters
2899
+
2900
+ <dl>
2901
+ <dd>
2902
+
2903
+ <dl>
2904
+ <dd>
2905
+
2906
+ **request:** `phenoml.tools.CohortRequest`
2907
+
2908
+ </dd>
2909
+ </dl>
2910
+
2911
+ <dl>
2912
+ <dd>
2913
+
2914
+ **requestOptions:** `Tools.RequestOptions`
2915
+
2916
+ </dd>
2917
+ </dl>
2918
+ </dd>
2919
+ </dl>
2920
+
2921
+ </dd>
2922
+ </dl>
2923
+ </details>
2924
+
2925
+ ## Tools McpServer
2926
+
2927
+ <details><summary><code>client.tools.mcpServer.<a href="/src/api/resources/tools/resources/mcpServer/client/Client.ts">create</a>({ ...params }) -> phenoml.McpServerResponse</code></summary>
2928
+ <dl>
2929
+ <dd>
2930
+
2931
+ #### 📝 Description
2932
+
2933
+ <dl>
2934
+ <dd>
2935
+
2936
+ <dl>
2937
+ <dd>
2938
+
2939
+ Creates a new MCP server
2940
+
2941
+ </dd>
2942
+ </dl>
2943
+ </dd>
2944
+ </dl>
2945
+
2946
+ #### 🔌 Usage
2947
+
2948
+ <dl>
2949
+ <dd>
2950
+
2951
+ <dl>
2952
+ <dd>
2953
+
2954
+ ```typescript
2955
+ await client.tools.mcpServer.create({
2956
+ name: "My MCP Server",
2957
+ mcp_server_url: "https://mcp.example.com",
2958
+ });
2959
+ ```
2960
+
2961
+ </dd>
2962
+ </dl>
2963
+ </dd>
2964
+ </dl>
2965
+
2966
+ #### ⚙️ Parameters
2967
+
2968
+ <dl>
2969
+ <dd>
2970
+
2971
+ <dl>
2972
+ <dd>
2973
+
2974
+ **request:** `phenoml.tools.McpServerCreateRequest`
2975
+
2976
+ </dd>
2977
+ </dl>
2978
+
2979
+ <dl>
2980
+ <dd>
2981
+
2982
+ **requestOptions:** `McpServer.RequestOptions`
2983
+
2984
+ </dd>
2985
+ </dl>
2986
+ </dd>
2987
+ </dl>
2988
+
2989
+ </dd>
2990
+ </dl>
2991
+ </details>
2992
+
2993
+ <details><summary><code>client.tools.mcpServer.<a href="/src/api/resources/tools/resources/mcpServer/client/Client.ts">list</a>() -> phenoml.McpServerResponse</code></summary>
2994
+ <dl>
2995
+ <dd>
2996
+
2997
+ #### 📝 Description
2998
+
2999
+ <dl>
3000
+ <dd>
3001
+
3002
+ <dl>
3003
+ <dd>
3004
+
3005
+ Lists all MCP servers for a specific user
3006
+
3007
+ </dd>
3008
+ </dl>
3009
+ </dd>
3010
+ </dl>
3011
+
3012
+ #### 🔌 Usage
3013
+
3014
+ <dl>
3015
+ <dd>
3016
+
3017
+ <dl>
3018
+ <dd>
3019
+
3020
+ ```typescript
3021
+ await client.tools.mcpServer.list();
3022
+ ```
3023
+
3024
+ </dd>
3025
+ </dl>
3026
+ </dd>
3027
+ </dl>
3028
+
3029
+ #### ⚙️ Parameters
3030
+
3031
+ <dl>
3032
+ <dd>
3033
+
3034
+ <dl>
3035
+ <dd>
3036
+
3037
+ **requestOptions:** `McpServer.RequestOptions`
3038
+
3039
+ </dd>
3040
+ </dl>
3041
+ </dd>
3042
+ </dl>
3043
+
3044
+ </dd>
3045
+ </dl>
3046
+ </details>
3047
+
3048
+ <details><summary><code>client.tools.mcpServer.<a href="/src/api/resources/tools/resources/mcpServer/client/Client.ts">get</a>(mcpServerId) -> phenoml.McpServerResponse</code></summary>
3049
+ <dl>
3050
+ <dd>
3051
+
3052
+ #### 📝 Description
3053
+
3054
+ <dl>
3055
+ <dd>
3056
+
3057
+ <dl>
3058
+ <dd>
3059
+
3060
+ Gets a MCP server by ID
3061
+
3062
+ </dd>
3063
+ </dl>
3064
+ </dd>
3065
+ </dl>
3066
+
3067
+ #### 🔌 Usage
3068
+
3069
+ <dl>
3070
+ <dd>
3071
+
3072
+ <dl>
3073
+ <dd>
3074
+
3075
+ ```typescript
3076
+ await client.tools.mcpServer.get("mcp_server_id");
3077
+ ```
3078
+
3079
+ </dd>
3080
+ </dl>
3081
+ </dd>
3082
+ </dl>
3083
+
3084
+ #### ⚙️ Parameters
3085
+
3086
+ <dl>
3087
+ <dd>
3088
+
3089
+ <dl>
3090
+ <dd>
3091
+
3092
+ **mcpServerId:** `string` — ID of the MCP server to retrieve
3093
+
3094
+ </dd>
3095
+ </dl>
3096
+
3097
+ <dl>
3098
+ <dd>
3099
+
3100
+ **requestOptions:** `McpServer.RequestOptions`
3101
+
3102
+ </dd>
3103
+ </dl>
3104
+ </dd>
3105
+ </dl>
3106
+
3107
+ </dd>
3108
+ </dl>
3109
+ </details>
3110
+
3111
+ <details><summary><code>client.tools.mcpServer.<a href="/src/api/resources/tools/resources/mcpServer/client/Client.ts">delete</a>(mcpServerId) -> phenoml.McpServerResponse</code></summary>
3112
+ <dl>
3113
+ <dd>
3114
+
3115
+ #### 📝 Description
3116
+
3117
+ <dl>
3118
+ <dd>
3119
+
3120
+ <dl>
3121
+ <dd>
3122
+
3123
+ Deletes a MCP server by ID
3124
+
3125
+ </dd>
3126
+ </dl>
3127
+ </dd>
3128
+ </dl>
3129
+
3130
+ #### 🔌 Usage
3131
+
3132
+ <dl>
3133
+ <dd>
3134
+
3135
+ <dl>
3136
+ <dd>
3137
+
3138
+ ```typescript
3139
+ await client.tools.mcpServer.delete("mcp_server_id");
3140
+ ```
3141
+
3142
+ </dd>
3143
+ </dl>
3144
+ </dd>
3145
+ </dl>
3146
+
3147
+ #### ⚙️ Parameters
3148
+
3149
+ <dl>
3150
+ <dd>
3151
+
3152
+ <dl>
3153
+ <dd>
3154
+
3155
+ **mcpServerId:** `string` — ID of the MCP server to delete
3156
+
3157
+ </dd>
3158
+ </dl>
3159
+
3160
+ <dl>
3161
+ <dd>
3162
+
3163
+ **requestOptions:** `McpServer.RequestOptions`
3164
+
3165
+ </dd>
3166
+ </dl>
3167
+ </dd>
3168
+ </dl>
3169
+
3170
+ </dd>
3171
+ </dl>
3172
+ </details>
3173
+
3174
+ ## Tools McpServer Tools
3175
+
3176
+ <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>
3177
+ <dl>
3178
+ <dd>
3179
+
3180
+ #### 📝 Description
3181
+
3182
+ <dl>
3183
+ <dd>
3184
+
3185
+ <dl>
3186
+ <dd>
3187
+
3188
+ Lists all MCP server tools for a specific MCP server
3189
+
3190
+ </dd>
3191
+ </dl>
3192
+ </dd>
3193
+ </dl>
3194
+
3195
+ #### 🔌 Usage
3196
+
3197
+ <dl>
3198
+ <dd>
3199
+
3200
+ <dl>
3201
+ <dd>
3202
+
3203
+ ```typescript
3204
+ await client.tools.mcpServer.tools.list("mcp_server_id");
3205
+ ```
3206
+
3207
+ </dd>
3208
+ </dl>
3209
+ </dd>
3210
+ </dl>
3211
+
3212
+ #### ⚙️ Parameters
3213
+
3214
+ <dl>
3215
+ <dd>
3216
+
3217
+ <dl>
3218
+ <dd>
3219
+
3220
+ **mcpServerId:** `string` — ID of the MCP server to list tools for
3221
+
3222
+ </dd>
3223
+ </dl>
3224
+
3225
+ <dl>
3226
+ <dd>
3227
+
3228
+ **requestOptions:** `Tools.RequestOptions`
3229
+
3230
+ </dd>
3231
+ </dl>
3232
+ </dd>
3233
+ </dl>
3234
+
3235
+ </dd>
3236
+ </dl>
3237
+ </details>
3238
+
3239
+ <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>
3240
+ <dl>
3241
+ <dd>
3242
+
3243
+ #### 📝 Description
3244
+
3245
+ <dl>
3246
+ <dd>
3247
+
3248
+ <dl>
3249
+ <dd>
3250
+
3251
+ Gets a MCP server tool by ID
3252
+
3253
+ </dd>
3254
+ </dl>
3255
+ </dd>
3256
+ </dl>
3257
+
3258
+ #### 🔌 Usage
3259
+
3260
+ <dl>
3261
+ <dd>
3262
+
3263
+ <dl>
3264
+ <dd>
3265
+
3266
+ ```typescript
3267
+ await client.tools.mcpServer.tools.get("mcp_server_tool_id");
3268
+ ```
3269
+
3270
+ </dd>
3271
+ </dl>
3272
+ </dd>
3273
+ </dl>
3274
+
3275
+ #### ⚙️ Parameters
3276
+
3277
+ <dl>
3278
+ <dd>
3279
+
3280
+ <dl>
3281
+ <dd>
3282
+
3283
+ **mcpServerToolId:** `string` — ID of the MCP server tool to retrieve
3284
+
3285
+ </dd>
3286
+ </dl>
3287
+
3288
+ <dl>
3289
+ <dd>
3290
+
3291
+ **requestOptions:** `Tools.RequestOptions`
3292
+
3293
+ </dd>
3294
+ </dl>
3295
+ </dd>
3296
+ </dl>
3297
+
3298
+ </dd>
3299
+ </dl>
3300
+ </details>
3301
+
3302
+ <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>
3303
+ <dl>
3304
+ <dd>
3305
+
3306
+ #### 📝 Description
3307
+
3308
+ <dl>
3309
+ <dd>
3310
+
3311
+ <dl>
3312
+ <dd>
3313
+
3314
+ Deletes a MCP server tool by ID
3315
+
3316
+ </dd>
3317
+ </dl>
3318
+ </dd>
3319
+ </dl>
3320
+
3321
+ #### 🔌 Usage
3322
+
3323
+ <dl>
3324
+ <dd>
3325
+
3326
+ <dl>
3327
+ <dd>
3328
+
3329
+ ```typescript
3330
+ await client.tools.mcpServer.tools.delete("mcp_server_tool_id");
3331
+ ```
3332
+
3333
+ </dd>
3334
+ </dl>
3335
+ </dd>
3336
+ </dl>
3337
+
3338
+ #### ⚙️ Parameters
3339
+
3340
+ <dl>
3341
+ <dd>
3342
+
3343
+ <dl>
3344
+ <dd>
3345
+
3346
+ **mcpServerToolId:** `string` — ID of the MCP server tool to delete
3347
+
3348
+ </dd>
3349
+ </dl>
3350
+
3351
+ <dl>
3352
+ <dd>
3353
+
3354
+ **requestOptions:** `Tools.RequestOptions`
3355
+
3356
+ </dd>
3357
+ </dl>
3358
+ </dd>
3359
+ </dl>
3360
+
3361
+ </dd>
3362
+ </dl>
3363
+ </details>
3364
+
3365
+ <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>
3366
+ <dl>
3367
+ <dd>
3368
+
3369
+ #### 📝 Description
3370
+
3371
+ <dl>
3372
+ <dd>
3373
+
3374
+ <dl>
3375
+ <dd>
3376
+
3377
+ Calls a MCP server tool
3378
+
3379
+ </dd>
3380
+ </dl>
3381
+ </dd>
3382
+ </dl>
3383
+
3384
+ #### 🔌 Usage
3385
+
3386
+ <dl>
3387
+ <dd>
3388
+
3389
+ <dl>
3390
+ <dd>
3391
+
3392
+ ```typescript
3393
+ await client.tools.mcpServer.tools.call("mcp_server_tool_id", {
3394
+ arguments: {
3395
+ title: "PhenoML Agent API",
3396
+ },
3397
+ });
3398
+ ```
3399
+
3400
+ </dd>
3401
+ </dl>
3402
+ </dd>
3403
+ </dl>
3404
+
3405
+ #### ⚙️ Parameters
3406
+
3407
+ <dl>
3408
+ <dd>
3409
+
3410
+ <dl>
3411
+ <dd>
3412
+
3413
+ **mcpServerToolId:** `string` — ID of the MCP server tool to call
3414
+
3415
+ </dd>
3416
+ </dl>
3417
+
3418
+ <dl>
3419
+ <dd>
3420
+
3421
+ **request:** `phenoml.tools.mcpServer.McpServerToolCallRequest`
3422
+
3423
+ </dd>
3424
+ </dl>
3425
+
3426
+ <dl>
3427
+ <dd>
3428
+
3429
+ **requestOptions:** `Tools.RequestOptions`
3430
+
3431
+ </dd>
3432
+ </dl>
3433
+ </dd>
3434
+ </dl>
3435
+
3436
+ </dd>
3437
+ </dl>
3438
+ </details>
3439
+
3440
+ ## Workflows
3441
+
3442
+ <details><summary><code>client.workflows.<a href="/src/api/resources/workflows/client/Client.ts">createFhirResource</a>() -> void</code></summary>
3443
+ <dl>
3444
+ <dd>
3445
+
3446
+ #### 🔌 Usage
3447
+
3448
+ <dl>
3449
+ <dd>
3450
+
3451
+ <dl>
3452
+ <dd>
3453
+
3454
+ ```typescript
3455
+ await client.workflows.createFhirResource();
3456
+ ```
3457
+
3458
+ </dd>
3459
+ </dl>
3460
+ </dd>
3461
+ </dl>
3462
+
3463
+ #### ⚙️ Parameters
3464
+
3465
+ <dl>
3466
+ <dd>
3467
+
3468
+ <dl>
3469
+ <dd>
3470
+
3471
+ **requestOptions:** `Workflows.RequestOptions`
3472
+
3473
+ </dd>
3474
+ </dl>
3475
+ </dd>
3476
+ </dl>
3477
+
3478
+ </dd>
3479
+ </dl>
3480
+ </details>
3481
+
3482
+ <details><summary><code>client.workflows.<a href="/src/api/resources/workflows/client/Client.ts">searchFhirResources</a>() -> void</code></summary>
3483
+ <dl>
3484
+ <dd>
3485
+
3486
+ #### 🔌 Usage
3487
+
3488
+ <dl>
3489
+ <dd>
3490
+
3491
+ <dl>
3492
+ <dd>
3493
+
3494
+ ```typescript
3495
+ await client.workflows.searchFhirResources();
3496
+ ```
3497
+
3498
+ </dd>
3499
+ </dl>
3500
+ </dd>
3501
+ </dl>
3502
+
3503
+ #### ⚙️ Parameters
3504
+
3505
+ <dl>
3506
+ <dd>
3507
+
3508
+ <dl>
3509
+ <dd>
3510
+
3511
+ **requestOptions:** `Workflows.RequestOptions`
3512
+
3513
+ </dd>
3514
+ </dl>
3515
+ </dd>
3516
+ </dl>
3517
+
3518
+ </dd>
3519
+ </dl>
3520
+ </details>
3521
+
3522
+ <details><summary><code>client.workflows.<a href="/src/api/resources/workflows/client/Client.ts">analyzeCohort</a>() -> void</code></summary>
3523
+ <dl>
3524
+ <dd>
3525
+
3526
+ #### 🔌 Usage
3527
+
3528
+ <dl>
3529
+ <dd>
3530
+
3531
+ <dl>
3532
+ <dd>
3533
+
3534
+ ```typescript
3535
+ await client.workflows.analyzeCohort();
3536
+ ```
3537
+
3538
+ </dd>
3539
+ </dl>
3540
+ </dd>
3541
+ </dl>
3542
+
3543
+ #### ⚙️ Parameters
3544
+
3545
+ <dl>
3546
+ <dd>
3547
+
3548
+ <dl>
3549
+ <dd>
3550
+
3551
+ **requestOptions:** `Workflows.RequestOptions`
3552
+
3553
+ </dd>
3554
+ </dl>
3555
+ </dd>
3556
+ </dl>
3557
+
3558
+ </dd>
3559
+ </dl>
3560
+ </details>
3561
+
3562
+ ## Workflows Workflows
3563
+
3564
+ <details><summary><code>client.workflows.workflows.<a href="/src/api/resources/workflows/resources/workflows/client/Client.ts">list</a>({ ...params }) -> phenoml.ListWorkflowsResponse</code></summary>
3565
+ <dl>
3566
+ <dd>
3567
+
3568
+ #### 📝 Description
3569
+
3570
+ <dl>
3571
+ <dd>
3572
+
3573
+ <dl>
3574
+ <dd>
3575
+
3576
+ Retrieves all workflow definitions for the authenticated user
3577
+
3578
+ </dd>
3579
+ </dl>
3580
+ </dd>
3581
+ </dl>
3582
+
3583
+ #### 🔌 Usage
3584
+
3585
+ <dl>
3586
+ <dd>
3587
+
3588
+ <dl>
3589
+ <dd>
3590
+
3591
+ ```typescript
3592
+ await client.workflows.workflows.list({
3593
+ verbose: true,
3594
+ });
3595
+ ```
3596
+
3597
+ </dd>
3598
+ </dl>
3599
+ </dd>
3600
+ </dl>
3601
+
3602
+ #### ⚙️ Parameters
3603
+
3604
+ <dl>
3605
+ <dd>
3606
+
3607
+ <dl>
3608
+ <dd>
3609
+
3610
+ **request:** `phenoml.workflows.WorkflowsListRequest`
3611
+
3612
+ </dd>
3613
+ </dl>
3614
+
3615
+ <dl>
3616
+ <dd>
3617
+
3618
+ **requestOptions:** `Workflows.RequestOptions`
3619
+
3620
+ </dd>
3621
+ </dl>
3622
+ </dd>
3623
+ </dl>
3624
+
3625
+ </dd>
3626
+ </dl>
3627
+ </details>
3628
+
3629
+ <details><summary><code>client.workflows.workflows.<a href="/src/api/resources/workflows/resources/workflows/client/Client.ts">create</a>({ ...params }) -> phenoml.CreateWorkflowResponse</code></summary>
3630
+ <dl>
3631
+ <dd>
3632
+
3633
+ #### 📝 Description
3634
+
3635
+ <dl>
3636
+ <dd>
3637
+
3638
+ <dl>
3639
+ <dd>
3640
+
3641
+ Creates a new workflow definition with graph generation from workflow instructions
3642
+
3643
+ </dd>
3644
+ </dl>
3645
+ </dd>
3646
+ </dl>
3647
+
3648
+ #### 🔌 Usage
3649
+
3650
+ <dl>
3651
+ <dd>
3652
+
3653
+ <dl>
3654
+ <dd>
3655
+
3656
+ ```typescript
3657
+ await client.workflows.workflows.create({
3658
+ verbose: true,
3659
+ name: "Patient Data Mapping Workflow",
3660
+ workflow_instructions: "Given diagnosis data, find the patient and create condition record",
3661
+ sample_data: {
3662
+ patient_last_name: "Rippin",
3663
+ patient_first_name: "Clay",
3664
+ diagnosis_code: "I10",
3665
+ },
3666
+ fhir_provider_id: "550e8400-e29b-41d4-a716-446655440000",
3667
+ });
3668
+ ```
3669
+
3670
+ </dd>
3671
+ </dl>
3672
+ </dd>
3673
+ </dl>
3674
+
3675
+ #### ⚙️ Parameters
3676
+
3677
+ <dl>
3678
+ <dd>
3679
+
3680
+ <dl>
3681
+ <dd>
3682
+
3683
+ **request:** `phenoml.workflows.CreateWorkflowRequest`
3684
+
3685
+ </dd>
3686
+ </dl>
3687
+
3688
+ <dl>
3689
+ <dd>
3690
+
3691
+ **requestOptions:** `Workflows.RequestOptions`
3692
+
3693
+ </dd>
3694
+ </dl>
3695
+ </dd>
3696
+ </dl>
3697
+
3698
+ </dd>
3699
+ </dl>
3700
+ </details>
3701
+
3702
+ <details><summary><code>client.workflows.workflows.<a href="/src/api/resources/workflows/resources/workflows/client/Client.ts">get</a>(id, { ...params }) -> phenoml.WorkflowsGetResponse</code></summary>
3703
+ <dl>
3704
+ <dd>
3705
+
3706
+ #### 📝 Description
3707
+
3708
+ <dl>
3709
+ <dd>
3710
+
3711
+ <dl>
3712
+ <dd>
3713
+
3714
+ Retrieves a workflow definition by its ID
3715
+
3716
+ </dd>
3717
+ </dl>
3718
+ </dd>
3719
+ </dl>
3720
+
3721
+ #### 🔌 Usage
3722
+
3723
+ <dl>
3724
+ <dd>
3725
+
3726
+ <dl>
3727
+ <dd>
3728
+
3729
+ ```typescript
3730
+ await client.workflows.workflows.get("id", {
3731
+ verbose: true,
3732
+ });
3733
+ ```
3734
+
3735
+ </dd>
3736
+ </dl>
3737
+ </dd>
3738
+ </dl>
3739
+
3740
+ #### ⚙️ Parameters
3741
+
3742
+ <dl>
3743
+ <dd>
3744
+
3745
+ <dl>
3746
+ <dd>
3747
+
3748
+ **id:** `string` — ID of the workflow to retrieve
3749
+
3750
+ </dd>
3751
+ </dl>
3752
+
3753
+ <dl>
3754
+ <dd>
3755
+
3756
+ **request:** `phenoml.workflows.WorkflowsGetRequest`
3757
+
3758
+ </dd>
3759
+ </dl>
3760
+
3761
+ <dl>
3762
+ <dd>
3763
+
3764
+ **requestOptions:** `Workflows.RequestOptions`
3765
+
3766
+ </dd>
3767
+ </dl>
3768
+ </dd>
3769
+ </dl>
3770
+
3771
+ </dd>
3772
+ </dl>
3773
+ </details>
3774
+
3775
+ <details><summary><code>client.workflows.workflows.<a href="/src/api/resources/workflows/resources/workflows/client/Client.ts">update</a>(id, { ...params }) -> phenoml.WorkflowsUpdateResponse</code></summary>
3776
+ <dl>
3777
+ <dd>
3778
+
3779
+ #### 📝 Description
3780
+
3781
+ <dl>
3782
+ <dd>
3783
+
3784
+ <dl>
3785
+ <dd>
3786
+
3787
+ Updates an existing workflow definition
3788
+
3789
+ </dd>
3790
+ </dl>
3791
+ </dd>
3792
+ </dl>
3793
+
3794
+ #### 🔌 Usage
3795
+
3796
+ <dl>
3797
+ <dd>
3798
+
3799
+ <dl>
3800
+ <dd>
3801
+
3802
+ ```typescript
3803
+ await client.workflows.workflows.update("id", {
3804
+ verbose: true,
3805
+ name: "Updated Patient Data Mapping Workflow",
3806
+ workflow_instructions: "Given diagnosis data, find the patient and create condition record",
3807
+ sample_data: {
3808
+ patient_last_name: "Smith",
3809
+ patient_first_name: "John",
3810
+ diagnosis_code: "E11",
3811
+ },
3812
+ fhir_provider_id: "550e8400-e29b-41d4-a716-446655440000",
3813
+ });
3814
+ ```
3815
+
3816
+ </dd>
3817
+ </dl>
3818
+ </dd>
3819
+ </dl>
3820
+
3821
+ #### ⚙️ Parameters
3822
+
3823
+ <dl>
3824
+ <dd>
3825
+
3826
+ <dl>
3827
+ <dd>
3828
+
3829
+ **id:** `string` — ID of the workflow to update
3830
+
3831
+ </dd>
3832
+ </dl>
3833
+
3834
+ <dl>
3835
+ <dd>
3836
+
3837
+ **request:** `phenoml.workflows.UpdateWorkflowRequest`
3838
+
3839
+ </dd>
3840
+ </dl>
3841
+
3842
+ <dl>
3843
+ <dd>
3844
+
3845
+ **requestOptions:** `Workflows.RequestOptions`
3846
+
3847
+ </dd>
3848
+ </dl>
3849
+ </dd>
3850
+ </dl>
3851
+
3852
+ </dd>
3853
+ </dl>
3854
+ </details>
3855
+
3856
+ <details><summary><code>client.workflows.workflows.<a href="/src/api/resources/workflows/resources/workflows/client/Client.ts">delete</a>(id) -> phenoml.WorkflowsDeleteResponse</code></summary>
3857
+ <dl>
3858
+ <dd>
3859
+
3860
+ #### 📝 Description
3861
+
3862
+ <dl>
3863
+ <dd>
3864
+
3865
+ <dl>
3866
+ <dd>
3867
+
3868
+ Deletes a workflow definition by its ID
3869
+
3870
+ </dd>
3871
+ </dl>
3872
+ </dd>
3873
+ </dl>
3874
+
3875
+ #### 🔌 Usage
3876
+
3877
+ <dl>
3878
+ <dd>
3879
+
3880
+ <dl>
3881
+ <dd>
3882
+
3883
+ ```typescript
3884
+ await client.workflows.workflows.delete("id");
3885
+ ```
3886
+
3887
+ </dd>
3888
+ </dl>
3889
+ </dd>
3890
+ </dl>
3891
+
3892
+ #### ⚙️ Parameters
3893
+
3894
+ <dl>
3895
+ <dd>
3896
+
3897
+ <dl>
3898
+ <dd>
3899
+
3900
+ **id:** `string` — ID of the workflow to delete
3901
+
3902
+ </dd>
3903
+ </dl>
3904
+
3905
+ <dl>
3906
+ <dd>
3907
+
3908
+ **requestOptions:** `Workflows.RequestOptions`
3909
+
3910
+ </dd>
3911
+ </dl>
3912
+ </dd>
3913
+ </dl>
3914
+
3915
+ </dd>
3916
+ </dl>
3917
+ </details>
3918
+
3919
+ <details><summary><code>client.workflows.workflows.<a href="/src/api/resources/workflows/resources/workflows/client/Client.ts">execute</a>(id, { ...params }) -> phenoml.ExecuteWorkflowResponse</code></summary>
3920
+ <dl>
3921
+ <dd>
3922
+
3923
+ #### 📝 Description
3924
+
3925
+ <dl>
3926
+ <dd>
3927
+
3928
+ <dl>
3929
+ <dd>
3930
+
3931
+ Executes a workflow with provided input data and returns results
3932
+
3933
+ </dd>
3934
+ </dl>
3935
+ </dd>
3936
+ </dl>
3937
+
3938
+ #### 🔌 Usage
3939
+
3940
+ <dl>
3941
+ <dd>
3942
+
3943
+ <dl>
3944
+ <dd>
3945
+
3946
+ ```typescript
3947
+ await client.workflows.workflows.execute("id", {
3948
+ input_data: {
3949
+ patient_last_name: "Johnson",
3950
+ patient_first_name: "Mary",
3951
+ diagnosis_code: "M79.3",
3952
+ encounter_date: "2024-01-15",
3953
+ },
3954
+ });
3955
+ ```
3956
+
3957
+ </dd>
3958
+ </dl>
3959
+ </dd>
3960
+ </dl>
3961
+
3962
+ #### ⚙️ Parameters
3963
+
3964
+ <dl>
3965
+ <dd>
3966
+
3967
+ <dl>
3968
+ <dd>
3969
+
3970
+ **id:** `string` — ID of the workflow to execute
3971
+
3972
+ </dd>
3973
+ </dl>
3974
+
3975
+ <dl>
3976
+ <dd>
3977
+
3978
+ **request:** `phenoml.workflows.ExecuteWorkflowRequest`
3979
+
3980
+ </dd>
3981
+ </dl>
3982
+
3983
+ <dl>
3984
+ <dd>
3985
+
3986
+ **requestOptions:** `Workflows.RequestOptions`
3987
+
3988
+ </dd>
3989
+ </dl>
3990
+ </dd>
3991
+ </dl>
3992
+
3993
+ </dd>
3994
+ </dl>
3995
+ </details>
3996
+
3997
+ ## Workflows McpServer
3998
+
3999
+ <details><summary><code>client.workflows.mcpServer.<a href="/src/api/resources/workflows/resources/mcpServer/client/Client.ts">create</a>() -> void</code></summary>
4000
+ <dl>
4001
+ <dd>
4002
+
4003
+ #### 🔌 Usage
4004
+
4005
+ <dl>
4006
+ <dd>
4007
+
4008
+ <dl>
4009
+ <dd>
4010
+
4011
+ ```typescript
4012
+ await client.workflows.mcpServer.create();
4013
+ ```
4014
+
4015
+ </dd>
4016
+ </dl>
4017
+ </dd>
4018
+ </dl>
4019
+
4020
+ #### ⚙️ Parameters
4021
+
4022
+ <dl>
4023
+ <dd>
4024
+
4025
+ <dl>
4026
+ <dd>
4027
+
4028
+ **requestOptions:** `McpServer.RequestOptions`
4029
+
4030
+ </dd>
4031
+ </dl>
4032
+ </dd>
4033
+ </dl>
4034
+
4035
+ </dd>
4036
+ </dl>
4037
+ </details>
4038
+
4039
+ <details><summary><code>client.workflows.mcpServer.<a href="/src/api/resources/workflows/resources/mcpServer/client/Client.ts">list</a>() -> void</code></summary>
4040
+ <dl>
4041
+ <dd>
4042
+
4043
+ #### 🔌 Usage
4044
+
4045
+ <dl>
4046
+ <dd>
4047
+
4048
+ <dl>
4049
+ <dd>
4050
+
4051
+ ```typescript
4052
+ await client.workflows.mcpServer.list();
4053
+ ```
4054
+
4055
+ </dd>
4056
+ </dl>
4057
+ </dd>
4058
+ </dl>
4059
+
4060
+ #### ⚙️ Parameters
4061
+
4062
+ <dl>
4063
+ <dd>
4064
+
4065
+ <dl>
4066
+ <dd>
4067
+
4068
+ **requestOptions:** `McpServer.RequestOptions`
4069
+
4070
+ </dd>
4071
+ </dl>
4072
+ </dd>
4073
+ </dl>
4074
+
4075
+ </dd>
4076
+ </dl>
4077
+ </details>
4078
+
4079
+ <details><summary><code>client.workflows.mcpServer.<a href="/src/api/resources/workflows/resources/mcpServer/client/Client.ts">get</a>(mcpServerId) -> void</code></summary>
4080
+ <dl>
4081
+ <dd>
4082
+
4083
+ #### 🔌 Usage
4084
+
4085
+ <dl>
4086
+ <dd>
4087
+
4088
+ <dl>
4089
+ <dd>
4090
+
4091
+ ```typescript
4092
+ await client.workflows.mcpServer.get("mcp_server_id");
4093
+ ```
4094
+
4095
+ </dd>
4096
+ </dl>
4097
+ </dd>
4098
+ </dl>
4099
+
4100
+ #### ⚙️ Parameters
4101
+
4102
+ <dl>
4103
+ <dd>
4104
+
4105
+ <dl>
4106
+ <dd>
4107
+
4108
+ **mcpServerId:** `string`
4109
+
4110
+ </dd>
4111
+ </dl>
4112
+
4113
+ <dl>
4114
+ <dd>
4115
+
4116
+ **requestOptions:** `McpServer.RequestOptions`
4117
+
4118
+ </dd>
4119
+ </dl>
4120
+ </dd>
4121
+ </dl>
4122
+
4123
+ </dd>
4124
+ </dl>
4125
+ </details>
4126
+
4127
+ <details><summary><code>client.workflows.mcpServer.<a href="/src/api/resources/workflows/resources/mcpServer/client/Client.ts">delete</a>(mcpServerId) -> void</code></summary>
4128
+ <dl>
4129
+ <dd>
4130
+
4131
+ #### 🔌 Usage
4132
+
4133
+ <dl>
4134
+ <dd>
4135
+
4136
+ <dl>
4137
+ <dd>
4138
+
4139
+ ```typescript
4140
+ await client.workflows.mcpServer.delete("mcp_server_id");
4141
+ ```
4142
+
4143
+ </dd>
4144
+ </dl>
4145
+ </dd>
4146
+ </dl>
4147
+
4148
+ #### ⚙️ Parameters
4149
+
4150
+ <dl>
4151
+ <dd>
4152
+
4153
+ <dl>
4154
+ <dd>
4155
+
4156
+ **mcpServerId:** `string`
4157
+
4158
+ </dd>
4159
+ </dl>
4160
+
4161
+ <dl>
4162
+ <dd>
4163
+
4164
+ **requestOptions:** `McpServer.RequestOptions`
4165
+
4166
+ </dd>
4167
+ </dl>
4168
+ </dd>
4169
+ </dl>
4170
+
4171
+ </dd>
4172
+ </dl>
4173
+ </details>
4174
+
4175
+ ## Workflows McpServer Tools
4176
+
4177
+ <details><summary><code>client.workflows.mcpServer.tools.<a href="/src/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.ts">list</a>(mcpServerId) -> void</code></summary>
4178
+ <dl>
4179
+ <dd>
4180
+
4181
+ #### 🔌 Usage
4182
+
4183
+ <dl>
4184
+ <dd>
4185
+
4186
+ <dl>
4187
+ <dd>
4188
+
4189
+ ```typescript
4190
+ await client.workflows.mcpServer.tools.list("mcp_server_id");
4191
+ ```
4192
+
4193
+ </dd>
4194
+ </dl>
4195
+ </dd>
4196
+ </dl>
4197
+
4198
+ #### ⚙️ Parameters
4199
+
4200
+ <dl>
4201
+ <dd>
4202
+
4203
+ <dl>
4204
+ <dd>
4205
+
4206
+ **mcpServerId:** `string`
4207
+
4208
+ </dd>
4209
+ </dl>
4210
+
4211
+ <dl>
4212
+ <dd>
4213
+
4214
+ **requestOptions:** `Tools.RequestOptions`
4215
+
4216
+ </dd>
4217
+ </dl>
4218
+ </dd>
4219
+ </dl>
4220
+
4221
+ </dd>
4222
+ </dl>
4223
+ </details>
4224
+
4225
+ <details><summary><code>client.workflows.mcpServer.tools.<a href="/src/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.ts">get</a>(mcpServerToolId) -> void</code></summary>
4226
+ <dl>
4227
+ <dd>
4228
+
4229
+ #### 🔌 Usage
4230
+
4231
+ <dl>
4232
+ <dd>
4233
+
4234
+ <dl>
4235
+ <dd>
4236
+
4237
+ ```typescript
4238
+ await client.workflows.mcpServer.tools.get("mcp_server_tool_id");
4239
+ ```
4240
+
4241
+ </dd>
4242
+ </dl>
4243
+ </dd>
4244
+ </dl>
4245
+
4246
+ #### ⚙️ Parameters
4247
+
4248
+ <dl>
4249
+ <dd>
4250
+
4251
+ <dl>
4252
+ <dd>
4253
+
4254
+ **mcpServerToolId:** `string`
4255
+
4256
+ </dd>
4257
+ </dl>
4258
+
4259
+ <dl>
4260
+ <dd>
4261
+
4262
+ **requestOptions:** `Tools.RequestOptions`
4263
+
4264
+ </dd>
4265
+ </dl>
4266
+ </dd>
4267
+ </dl>
4268
+
4269
+ </dd>
4270
+ </dl>
4271
+ </details>
4272
+
4273
+ <details><summary><code>client.workflows.mcpServer.tools.<a href="/src/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.ts">delete</a>(mcpServerToolId) -> void</code></summary>
4274
+ <dl>
4275
+ <dd>
4276
+
4277
+ #### 🔌 Usage
4278
+
4279
+ <dl>
4280
+ <dd>
4281
+
4282
+ <dl>
4283
+ <dd>
4284
+
4285
+ ```typescript
4286
+ await client.workflows.mcpServer.tools.delete("mcp_server_tool_id");
4287
+ ```
4288
+
4289
+ </dd>
4290
+ </dl>
4291
+ </dd>
4292
+ </dl>
4293
+
4294
+ #### ⚙️ Parameters
4295
+
4296
+ <dl>
4297
+ <dd>
4298
+
4299
+ <dl>
4300
+ <dd>
4301
+
4302
+ **mcpServerToolId:** `string`
4303
+
4304
+ </dd>
4305
+ </dl>
4306
+
4307
+ <dl>
4308
+ <dd>
4309
+
4310
+ **requestOptions:** `Tools.RequestOptions`
4311
+
4312
+ </dd>
4313
+ </dl>
4314
+ </dd>
4315
+ </dl>
4316
+
4317
+ </dd>
4318
+ </dl>
4319
+ </details>
4320
+
4321
+ <details><summary><code>client.workflows.mcpServer.tools.<a href="/src/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.ts">call</a>(mcpServerToolId) -> void</code></summary>
4322
+ <dl>
4323
+ <dd>
4324
+
4325
+ #### 🔌 Usage
4326
+
4327
+ <dl>
4328
+ <dd>
4329
+
4330
+ <dl>
4331
+ <dd>
4332
+
4333
+ ```typescript
4334
+ await client.workflows.mcpServer.tools.call("mcp_server_tool_id");
4335
+ ```
4336
+
4337
+ </dd>
4338
+ </dl>
4339
+ </dd>
4340
+ </dl>
4341
+
4342
+ #### ⚙️ Parameters
4343
+
4344
+ <dl>
4345
+ <dd>
4346
+
4347
+ <dl>
4348
+ <dd>
4349
+
4350
+ **mcpServerToolId:** `string`
2314
4351
 
2315
4352
  </dd>
2316
4353
  </dl>