phenoml 0.0.4 → 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 (831) hide show
  1. package/dist/cjs/BaseClient.d.ts +27 -0
  2. package/dist/cjs/BaseClient.js +3 -0
  3. package/dist/cjs/Client.d.ts +6 -24
  4. package/dist/cjs/Client.js +8 -5
  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 +11 -25
  8. package/dist/cjs/api/resources/agent/client/Client.js +33 -29
  9. package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.d.ts +0 -3
  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/errors/BadRequestError.d.ts +0 -3
  16. package/dist/cjs/api/resources/agent/errors/BadRequestError.js +1 -3
  17. package/dist/cjs/api/resources/agent/errors/ForbiddenError.d.ts +0 -3
  18. package/dist/cjs/api/resources/agent/errors/ForbiddenError.js +1 -3
  19. package/dist/cjs/api/resources/agent/errors/InternalServerError.d.ts +0 -3
  20. package/dist/cjs/api/resources/agent/errors/InternalServerError.js +1 -3
  21. package/dist/cjs/api/resources/agent/errors/NotFoundError.d.ts +0 -3
  22. package/dist/cjs/api/resources/agent/errors/NotFoundError.js +1 -3
  23. package/dist/cjs/api/resources/agent/errors/UnauthorizedError.d.ts +0 -3
  24. package/dist/cjs/api/resources/agent/errors/UnauthorizedError.js +1 -3
  25. package/dist/cjs/api/resources/agent/resources/prompts/client/Client.d.ts +3 -23
  26. package/dist/cjs/api/resources/agent/resources/prompts/client/Client.js +22 -24
  27. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.d.ts +0 -3
  28. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.js +1 -3
  29. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.d.ts +0 -3
  30. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.js +1 -3
  31. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.d.ts +0 -3
  32. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.js +1 -3
  33. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsListResponse.d.ts +0 -3
  34. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsListResponse.js +1 -3
  35. package/dist/cjs/api/resources/agent/types/AgentChatResponse.d.ts +0 -3
  36. package/dist/cjs/api/resources/agent/types/AgentChatResponse.js +1 -3
  37. package/dist/cjs/api/resources/agent/types/AgentCreateRequest.d.ts +0 -3
  38. package/dist/cjs/api/resources/agent/types/AgentCreateRequest.js +1 -3
  39. package/dist/cjs/api/resources/agent/types/AgentDeleteResponse.d.ts +0 -3
  40. package/dist/cjs/api/resources/agent/types/AgentDeleteResponse.js +1 -3
  41. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.ts +1 -4
  42. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestOrder.js +1 -3
  43. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesResponse.d.ts +0 -3
  44. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesResponse.js +1 -3
  45. package/dist/cjs/api/resources/agent/types/AgentListResponse.d.ts +0 -3
  46. package/dist/cjs/api/resources/agent/types/AgentListResponse.js +1 -3
  47. package/dist/cjs/api/resources/agent/types/AgentPromptsResponse.d.ts +0 -3
  48. package/dist/cjs/api/resources/agent/types/AgentPromptsResponse.js +1 -3
  49. package/dist/cjs/api/resources/agent/types/AgentResponse.d.ts +0 -3
  50. package/dist/cjs/api/resources/agent/types/AgentResponse.js +1 -3
  51. package/dist/cjs/api/resources/agent/types/AgentTemplate.d.ts +0 -3
  52. package/dist/cjs/api/resources/agent/types/AgentTemplate.js +1 -3
  53. package/dist/cjs/api/resources/agent/types/ChatMessageTemplate.d.ts +0 -3
  54. package/dist/cjs/api/resources/agent/types/ChatMessageTemplate.js +1 -3
  55. package/dist/cjs/api/resources/agent/types/ChatSessionTemplate.d.ts +0 -3
  56. package/dist/cjs/api/resources/agent/types/ChatSessionTemplate.js +1 -3
  57. package/dist/cjs/api/resources/agent/types/JsonPatch.d.ts +0 -3
  58. package/dist/cjs/api/resources/agent/types/JsonPatch.js +1 -3
  59. package/dist/cjs/api/resources/agent/types/JsonPatchOperation.d.ts +3 -7
  60. package/dist/cjs/api/resources/agent/types/JsonPatchOperation.js +2 -3
  61. package/dist/cjs/api/resources/agent/types/PromptTemplate.d.ts +0 -3
  62. package/dist/cjs/api/resources/agent/types/PromptTemplate.js +1 -3
  63. package/dist/cjs/api/resources/agent/types/SuccessResponse.d.ts +0 -3
  64. package/dist/cjs/api/resources/agent/types/SuccessResponse.js +1 -3
  65. package/dist/cjs/api/resources/authtoken/client/Client.d.ts +2 -13
  66. package/dist/cjs/api/resources/authtoken/client/Client.js +1 -3
  67. package/dist/cjs/api/resources/authtoken/errors/BadRequestError.d.ts +0 -3
  68. package/dist/cjs/api/resources/authtoken/errors/BadRequestError.js +1 -3
  69. package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.d.ts +0 -3
  70. package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.js +1 -3
  71. package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.d.ts +0 -3
  72. package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.js +1 -3
  73. package/dist/cjs/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.d.ts +0 -3
  74. package/dist/cjs/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.js +1 -3
  75. package/dist/cjs/api/resources/authtoken/types/BadRequestErrorBody.d.ts +0 -3
  76. package/dist/cjs/api/resources/authtoken/types/BadRequestErrorBody.js +1 -3
  77. package/dist/cjs/api/resources/authtoken/types/UnauthorizedErrorBody.d.ts +0 -3
  78. package/dist/cjs/api/resources/authtoken/types/UnauthorizedErrorBody.js +1 -3
  79. package/dist/cjs/api/resources/cohort/client/Client.d.ts +3 -23
  80. package/dist/cjs/api/resources/cohort/client/Client.js +4 -6
  81. package/dist/cjs/api/resources/cohort/client/requests/CohortRequest.d.ts +0 -3
  82. package/dist/cjs/api/resources/cohort/client/requests/CohortRequest.js +1 -3
  83. package/dist/cjs/api/resources/cohort/errors/BadRequestError.d.ts +0 -3
  84. package/dist/cjs/api/resources/cohort/errors/BadRequestError.js +1 -3
  85. package/dist/cjs/api/resources/cohort/errors/InternalServerError.d.ts +0 -3
  86. package/dist/cjs/api/resources/cohort/errors/InternalServerError.js +1 -3
  87. package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.d.ts +0 -3
  88. package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.js +1 -3
  89. package/dist/cjs/api/resources/cohort/types/CohortResponse.d.ts +0 -3
  90. package/dist/cjs/api/resources/cohort/types/CohortResponse.js +1 -3
  91. package/dist/cjs/api/resources/cohort/types/SearchConcept.d.ts +0 -3
  92. package/dist/cjs/api/resources/cohort/types/SearchConcept.js +1 -3
  93. package/dist/cjs/api/resources/construe/client/Client.d.ts +3 -23
  94. package/dist/cjs/api/resources/construe/client/Client.js +10 -12
  95. package/dist/cjs/api/resources/construe/client/requests/ConstrueCohortRequest.d.ts +0 -3
  96. package/dist/cjs/api/resources/construe/client/requests/ConstrueCohortRequest.js +1 -3
  97. package/dist/cjs/api/resources/construe/client/requests/ExtractRequest.d.ts +0 -3
  98. package/dist/cjs/api/resources/construe/client/requests/ExtractRequest.js +1 -3
  99. package/dist/cjs/api/resources/construe/client/requests/UploadRequest.d.ts +2 -7
  100. package/dist/cjs/api/resources/construe/client/requests/UploadRequest.js +2 -3
  101. package/dist/cjs/api/resources/construe/errors/BadRequestError.d.ts +0 -3
  102. package/dist/cjs/api/resources/construe/errors/BadRequestError.js +1 -3
  103. package/dist/cjs/api/resources/construe/errors/ConflictError.d.ts +0 -3
  104. package/dist/cjs/api/resources/construe/errors/ConflictError.js +1 -3
  105. package/dist/cjs/api/resources/construe/errors/FailedDependencyError.d.ts +0 -3
  106. package/dist/cjs/api/resources/construe/errors/FailedDependencyError.js +1 -3
  107. package/dist/cjs/api/resources/construe/errors/InternalServerError.d.ts +0 -3
  108. package/dist/cjs/api/resources/construe/errors/InternalServerError.js +1 -3
  109. package/dist/cjs/api/resources/construe/errors/UnauthorizedError.d.ts +0 -3
  110. package/dist/cjs/api/resources/construe/errors/UnauthorizedError.js +1 -3
  111. package/dist/cjs/api/resources/construe/types/BadRequestErrorBody.d.ts +0 -3
  112. package/dist/cjs/api/resources/construe/types/BadRequestErrorBody.js +1 -3
  113. package/dist/cjs/api/resources/construe/types/ConstrueCohortResponse.d.ts +0 -3
  114. package/dist/cjs/api/resources/construe/types/ConstrueCohortResponse.js +1 -3
  115. package/dist/cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.ts +0 -3
  116. package/dist/cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.js +1 -3
  117. package/dist/cjs/api/resources/construe/types/ExtractCodesResult.d.ts +0 -3
  118. package/dist/cjs/api/resources/construe/types/ExtractCodesResult.js +1 -3
  119. package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.d.ts +1 -4
  120. package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.js +1 -3
  121. package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.d.ts +0 -3
  122. package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.js +1 -3
  123. package/dist/cjs/api/resources/construe/types/ExtractedCodeResult.d.ts +0 -3
  124. package/dist/cjs/api/resources/construe/types/ExtractedCodeResult.js +1 -3
  125. package/dist/cjs/api/resources/construe/types/InternalServerErrorBody.d.ts +0 -3
  126. package/dist/cjs/api/resources/construe/types/InternalServerErrorBody.js +1 -3
  127. package/dist/cjs/api/resources/construe/types/UnauthorizedErrorBody.d.ts +0 -3
  128. package/dist/cjs/api/resources/construe/types/UnauthorizedErrorBody.js +1 -3
  129. package/dist/cjs/api/resources/fhir/client/Client.d.ts +26 -25
  130. package/dist/cjs/api/resources/fhir/client/Client.js +42 -23
  131. package/dist/cjs/api/resources/fhir/client/requests/FhirCreateRequest.d.ts +11 -4
  132. package/dist/cjs/api/resources/fhir/client/requests/FhirCreateRequest.js +1 -3
  133. package/dist/cjs/api/resources/fhir/client/requests/FhirDeleteRequest.d.ts +0 -3
  134. package/dist/cjs/api/resources/fhir/client/requests/FhirDeleteRequest.js +1 -3
  135. package/dist/cjs/api/resources/fhir/client/requests/FhirExecuteBundleRequest.d.ts +0 -3
  136. package/dist/cjs/api/resources/fhir/client/requests/FhirExecuteBundleRequest.js +1 -3
  137. package/dist/cjs/api/resources/fhir/client/requests/FhirPatchRequest.d.ts +0 -3
  138. package/dist/cjs/api/resources/fhir/client/requests/FhirPatchRequest.js +1 -3
  139. package/dist/cjs/api/resources/fhir/client/requests/FhirSearchRequest.d.ts +0 -3
  140. package/dist/cjs/api/resources/fhir/client/requests/FhirSearchRequest.js +1 -3
  141. package/dist/cjs/api/resources/fhir/client/requests/FhirUpsertRequest.d.ts +12 -4
  142. package/dist/cjs/api/resources/fhir/client/requests/FhirUpsertRequest.js +1 -3
  143. package/dist/cjs/api/resources/fhir/errors/BadRequestError.d.ts +0 -3
  144. package/dist/cjs/api/resources/fhir/errors/BadRequestError.js +1 -3
  145. package/dist/cjs/api/resources/fhir/errors/InternalServerError.d.ts +0 -3
  146. package/dist/cjs/api/resources/fhir/errors/InternalServerError.js +1 -3
  147. package/dist/cjs/api/resources/fhir/errors/NotFoundError.d.ts +0 -3
  148. package/dist/cjs/api/resources/fhir/errors/NotFoundError.js +1 -3
  149. package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.d.ts +0 -3
  150. package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.js +1 -3
  151. package/dist/cjs/api/resources/fhir/types/ErrorResponse.d.ts +0 -3
  152. package/dist/cjs/api/resources/fhir/types/ErrorResponse.js +1 -3
  153. package/dist/cjs/api/resources/fhir/types/FhirBundle.d.ts +1 -4
  154. package/dist/cjs/api/resources/fhir/types/FhirBundle.js +1 -3
  155. package/dist/cjs/api/resources/fhir/types/FhirPatchRequestBodyItem.d.ts +3 -7
  156. package/dist/cjs/api/resources/fhir/types/FhirPatchRequestBodyItem.js +2 -3
  157. package/dist/cjs/api/resources/fhir/types/FhirResource.d.ts +0 -3
  158. package/dist/cjs/api/resources/fhir/types/FhirResource.js +1 -3
  159. package/dist/cjs/api/resources/fhir/types/FhirSearchResponse.d.ts +0 -3
  160. package/dist/cjs/api/resources/fhir/types/FhirSearchResponse.js +1 -3
  161. package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +3 -23
  162. package/dist/cjs/api/resources/fhirProvider/client/Client.js +22 -24
  163. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.d.ts +0 -3
  164. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.js +1 -3
  165. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.d.ts +0 -3
  166. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.js +1 -3
  167. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.d.ts +0 -3
  168. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.js +1 -3
  169. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.d.ts +0 -3
  170. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.js +1 -3
  171. package/dist/cjs/api/resources/fhirProvider/errors/BadRequestError.d.ts +0 -3
  172. package/dist/cjs/api/resources/fhirProvider/errors/BadRequestError.js +1 -3
  173. package/dist/cjs/api/resources/fhirProvider/errors/ForbiddenError.d.ts +0 -3
  174. package/dist/cjs/api/resources/fhirProvider/errors/ForbiddenError.js +1 -3
  175. package/dist/cjs/api/resources/fhirProvider/errors/InternalServerError.d.ts +0 -3
  176. package/dist/cjs/api/resources/fhirProvider/errors/InternalServerError.js +1 -3
  177. package/dist/cjs/api/resources/fhirProvider/errors/NotFoundError.d.ts +0 -3
  178. package/dist/cjs/api/resources/fhirProvider/errors/NotFoundError.js +1 -3
  179. package/dist/cjs/api/resources/fhirProvider/errors/UnauthorizedError.d.ts +0 -3
  180. package/dist/cjs/api/resources/fhirProvider/errors/UnauthorizedError.js +1 -3
  181. package/dist/cjs/api/resources/fhirProvider/types/AuthMethod.d.ts +2 -7
  182. package/dist/cjs/api/resources/fhirProvider/types/AuthMethod.js +2 -3
  183. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderAuthConfig.d.ts +0 -3
  184. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderAuthConfig.js +1 -3
  185. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.ts +0 -3
  186. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderDeleteResponse.js +1 -3
  187. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderListResponse.d.ts +0 -3
  188. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderListResponse.js +1 -3
  189. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.d.ts +0 -3
  190. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.js +1 -3
  191. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderResponse.d.ts +0 -3
  192. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderResponse.js +1 -3
  193. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.d.ts +0 -3
  194. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.js +1 -3
  195. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderTemplate.d.ts +0 -3
  196. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderTemplate.js +1 -3
  197. package/dist/cjs/api/resources/fhirProvider/types/FhirQueryResponse.d.ts +0 -3
  198. package/dist/cjs/api/resources/fhirProvider/types/FhirQueryResponse.js +1 -3
  199. package/dist/cjs/api/resources/fhirProvider/types/JsonWebKey.d.ts +0 -3
  200. package/dist/cjs/api/resources/fhirProvider/types/JsonWebKey.js +1 -3
  201. package/dist/cjs/api/resources/fhirProvider/types/Provider.d.ts +2 -7
  202. package/dist/cjs/api/resources/fhirProvider/types/Provider.js +2 -3
  203. package/dist/cjs/api/resources/fhirProvider/types/ServiceAccountKey.d.ts +0 -3
  204. package/dist/cjs/api/resources/fhirProvider/types/ServiceAccountKey.js +1 -3
  205. package/dist/cjs/api/resources/fhirProvider/types/SmartConfiguration.d.ts +0 -3
  206. package/dist/cjs/api/resources/fhirProvider/types/SmartConfiguration.js +1 -3
  207. package/dist/cjs/api/resources/index.d.ts +1 -0
  208. package/dist/cjs/api/resources/index.js +2 -1
  209. package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +3 -23
  210. package/dist/cjs/api/resources/lang2Fhir/client/Client.js +13 -15
  211. package/dist/cjs/api/resources/lang2Fhir/client/requests/CreateRequest.d.ts +2 -7
  212. package/dist/cjs/api/resources/lang2Fhir/client/requests/CreateRequest.js +2 -3
  213. package/dist/cjs/api/resources/lang2Fhir/client/requests/DocumentRequest.d.ts +4 -11
  214. package/dist/cjs/api/resources/lang2Fhir/client/requests/DocumentRequest.js +3 -3
  215. package/dist/cjs/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.d.ts +0 -3
  216. package/dist/cjs/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.js +1 -3
  217. package/dist/cjs/api/resources/lang2Fhir/client/requests/SearchRequest.d.ts +0 -3
  218. package/dist/cjs/api/resources/lang2Fhir/client/requests/SearchRequest.js +1 -3
  219. package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.d.ts +0 -3
  220. package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.js +1 -3
  221. package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.d.ts +0 -3
  222. package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.js +1 -3
  223. package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.d.ts +0 -3
  224. package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.js +1 -3
  225. package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.d.ts +0 -3
  226. package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.js +1 -3
  227. package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.d.ts +0 -3
  228. package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.js +1 -3
  229. package/dist/cjs/api/resources/lang2Fhir/types/FhirResource.d.ts +0 -3
  230. package/dist/cjs/api/resources/lang2Fhir/types/FhirResource.js +1 -3
  231. package/dist/cjs/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.ts +0 -3
  232. package/dist/cjs/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.js +1 -3
  233. package/dist/cjs/api/resources/lang2Fhir/types/SearchResponse.d.ts +0 -3
  234. package/dist/cjs/api/resources/lang2Fhir/types/SearchResponse.js +1 -3
  235. package/dist/cjs/api/resources/tools/client/Client.d.ts +3 -23
  236. package/dist/cjs/api/resources/tools/client/Client.js +10 -12
  237. package/dist/cjs/api/resources/tools/client/requests/CohortRequest.d.ts +0 -3
  238. package/dist/cjs/api/resources/tools/client/requests/CohortRequest.js +1 -3
  239. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.ts +2 -7
  240. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.js +2 -3
  241. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.ts +0 -3
  242. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.js +1 -3
  243. package/dist/cjs/api/resources/tools/errors/BadRequestError.d.ts +0 -3
  244. package/dist/cjs/api/resources/tools/errors/BadRequestError.js +1 -3
  245. package/dist/cjs/api/resources/tools/errors/FailedDependencyError.d.ts +0 -3
  246. package/dist/cjs/api/resources/tools/errors/FailedDependencyError.js +1 -3
  247. package/dist/cjs/api/resources/tools/errors/ForbiddenError.d.ts +0 -3
  248. package/dist/cjs/api/resources/tools/errors/ForbiddenError.js +1 -3
  249. package/dist/cjs/api/resources/tools/errors/InternalServerError.d.ts +0 -3
  250. package/dist/cjs/api/resources/tools/errors/InternalServerError.js +1 -3
  251. package/dist/cjs/api/resources/tools/errors/UnauthorizedError.d.ts +0 -3
  252. package/dist/cjs/api/resources/tools/errors/UnauthorizedError.js +1 -3
  253. package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.d.ts +3 -23
  254. package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.js +13 -15
  255. package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.d.ts +0 -3
  256. package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.js +1 -3
  257. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.ts +3 -23
  258. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +13 -15
  259. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.ts +0 -3
  260. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.js +1 -3
  261. package/dist/cjs/api/resources/tools/types/CohortResponse.d.ts +0 -3
  262. package/dist/cjs/api/resources/tools/types/CohortResponse.js +1 -3
  263. package/dist/cjs/api/resources/tools/types/Lang2FhirAndCreateResponse.d.ts +0 -3
  264. package/dist/cjs/api/resources/tools/types/Lang2FhirAndCreateResponse.js +1 -3
  265. package/dist/cjs/api/resources/tools/types/Lang2FhirAndSearchResponse.d.ts +0 -3
  266. package/dist/cjs/api/resources/tools/types/Lang2FhirAndSearchResponse.js +1 -3
  267. package/dist/cjs/api/resources/tools/types/McpServerResponse.d.ts +0 -3
  268. package/dist/cjs/api/resources/tools/types/McpServerResponse.js +1 -3
  269. package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.d.ts +0 -3
  270. package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.js +1 -3
  271. package/dist/cjs/api/resources/tools/types/McpServerToolResponse.d.ts +0 -3
  272. package/dist/cjs/api/resources/tools/types/McpServerToolResponse.js +1 -3
  273. package/dist/cjs/api/resources/tools/types/SearchConcept.d.ts +0 -3
  274. package/dist/cjs/api/resources/tools/types/SearchConcept.js +1 -3
  275. package/dist/cjs/api/resources/workflows/client/Client.d.ts +43 -0
  276. package/dist/cjs/api/resources/workflows/client/Client.js +222 -0
  277. package/dist/cjs/api/resources/workflows/client/index.d.ts +1 -0
  278. package/dist/cjs/api/resources/workflows/client/index.js +2 -0
  279. package/dist/cjs/api/resources/workflows/errors/BadRequestError.d.ts +5 -0
  280. package/dist/cjs/api/resources/workflows/errors/BadRequestError.js +50 -0
  281. package/dist/cjs/api/resources/workflows/errors/ForbiddenError.d.ts +5 -0
  282. package/dist/cjs/api/resources/workflows/errors/ForbiddenError.js +50 -0
  283. package/dist/cjs/api/resources/workflows/errors/InternalServerError.d.ts +5 -0
  284. package/dist/cjs/api/resources/workflows/errors/InternalServerError.js +50 -0
  285. package/dist/cjs/api/resources/workflows/errors/NotFoundError.d.ts +5 -0
  286. package/dist/cjs/api/resources/workflows/errors/NotFoundError.js +50 -0
  287. package/dist/cjs/api/resources/workflows/errors/UnauthorizedError.d.ts +5 -0
  288. package/dist/cjs/api/resources/workflows/errors/UnauthorizedError.js +50 -0
  289. package/dist/cjs/api/resources/workflows/errors/index.d.ts +5 -0
  290. package/dist/cjs/api/resources/workflows/errors/index.js +21 -0
  291. package/dist/cjs/api/resources/workflows/index.d.ts +4 -0
  292. package/dist/cjs/api/resources/workflows/index.js +20 -0
  293. package/dist/cjs/api/resources/workflows/resources/index.d.ts +4 -0
  294. package/dist/cjs/api/resources/workflows/resources/index.js +43 -0
  295. package/dist/cjs/api/resources/workflows/resources/mcpServer/client/Client.d.ts +50 -0
  296. package/dist/cjs/api/resources/workflows/resources/mcpServer/client/Client.js +268 -0
  297. package/dist/cjs/api/resources/workflows/resources/mcpServer/client/index.d.ts +1 -0
  298. package/dist/cjs/api/resources/workflows/resources/mcpServer/client/index.js +2 -0
  299. package/dist/cjs/api/resources/workflows/resources/mcpServer/index.d.ts +2 -0
  300. package/dist/cjs/api/resources/workflows/resources/mcpServer/index.js +18 -0
  301. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/index.d.ts +1 -0
  302. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/index.js +37 -0
  303. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.d.ts +49 -0
  304. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.js +265 -0
  305. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/index.d.ts +1 -0
  306. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/index.js +2 -0
  307. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/index.d.ts +1 -0
  308. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/index.js +17 -0
  309. package/dist/cjs/api/resources/workflows/resources/workflows/client/Client.d.ts +145 -0
  310. package/dist/cjs/api/resources/workflows/resources/workflows/client/Client.js +569 -0
  311. package/dist/cjs/api/resources/workflows/resources/workflows/client/index.d.ts +2 -0
  312. package/dist/cjs/api/resources/workflows/resources/workflows/client/index.js +17 -0
  313. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/CreateWorkflowRequest.d.ts +40 -0
  314. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/CreateWorkflowRequest.js +3 -0
  315. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/ExecuteWorkflowRequest.d.ts +15 -0
  316. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/ExecuteWorkflowRequest.js +3 -0
  317. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/UpdateWorkflowRequest.d.ts +40 -0
  318. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/UpdateWorkflowRequest.js +3 -0
  319. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/WorkflowsGetRequest.d.ts +10 -0
  320. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/WorkflowsGetRequest.js +3 -0
  321. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/WorkflowsListRequest.d.ts +10 -0
  322. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/WorkflowsListRequest.js +3 -0
  323. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/index.d.ts +5 -0
  324. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/index.js +2 -0
  325. package/dist/cjs/api/resources/workflows/resources/workflows/index.d.ts +2 -0
  326. package/dist/cjs/api/resources/workflows/resources/workflows/index.js +18 -0
  327. package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsDeleteResponse.d.ts +4 -0
  328. package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsDeleteResponse.js +3 -0
  329. package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsGetResponse.d.ts +7 -0
  330. package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsGetResponse.js +3 -0
  331. package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsUpdateResponse.d.ts +9 -0
  332. package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsUpdateResponse.js +3 -0
  333. package/dist/cjs/api/resources/workflows/resources/workflows/types/index.d.ts +3 -0
  334. package/dist/cjs/api/resources/workflows/resources/workflows/types/index.js +19 -0
  335. package/dist/cjs/api/resources/workflows/types/CreateWorkflowResponse.d.ts +13 -0
  336. package/dist/cjs/api/resources/workflows/types/CreateWorkflowResponse.js +3 -0
  337. package/dist/cjs/api/resources/workflows/types/DecisionNodeDefinition.d.ts +8 -0
  338. package/dist/cjs/api/resources/workflows/types/DecisionNodeDefinition.js +3 -0
  339. package/dist/cjs/api/resources/workflows/types/ExecuteWorkflowResponse.d.ts +13 -0
  340. package/dist/cjs/api/resources/workflows/types/ExecuteWorkflowResponse.js +3 -0
  341. package/dist/cjs/api/resources/workflows/types/Lang2FhirCreateDefinition.d.ts +10 -0
  342. package/dist/cjs/api/resources/workflows/types/Lang2FhirCreateDefinition.js +3 -0
  343. package/dist/cjs/api/resources/workflows/types/Lang2FhirSearchDefinition.d.ts +12 -0
  344. package/dist/cjs/api/resources/workflows/types/Lang2FhirSearchDefinition.js +3 -0
  345. package/dist/cjs/api/resources/workflows/types/ListWorkflowsResponse.d.ts +11 -0
  346. package/dist/cjs/api/resources/workflows/types/ListWorkflowsResponse.js +3 -0
  347. package/dist/cjs/api/resources/workflows/types/StepOperation.d.ts +7 -0
  348. package/dist/cjs/api/resources/workflows/types/StepOperation.js +3 -0
  349. package/dist/cjs/api/resources/workflows/types/SubWorkflowDefinition.d.ts +8 -0
  350. package/dist/cjs/api/resources/workflows/types/SubWorkflowDefinition.js +3 -0
  351. package/dist/cjs/api/resources/workflows/types/WorkflowConfig.d.ts +6 -0
  352. package/dist/cjs/api/resources/workflows/types/WorkflowConfig.js +3 -0
  353. package/dist/cjs/api/resources/workflows/types/WorkflowDefinition.d.ts +19 -0
  354. package/dist/cjs/api/resources/workflows/types/WorkflowDefinition.js +3 -0
  355. package/dist/cjs/api/resources/workflows/types/WorkflowGraph.d.ts +5 -0
  356. package/dist/cjs/api/resources/workflows/types/WorkflowGraph.js +3 -0
  357. package/dist/cjs/api/resources/workflows/types/WorkflowResponse.d.ts +28 -0
  358. package/dist/cjs/api/resources/workflows/types/WorkflowResponse.js +3 -0
  359. package/dist/cjs/api/resources/workflows/types/WorkflowStep.d.ts +28 -0
  360. package/dist/cjs/api/resources/workflows/types/WorkflowStep.js +14 -0
  361. package/dist/cjs/api/resources/workflows/types/WorkflowStepSummary.d.ts +25 -0
  362. package/dist/cjs/api/resources/workflows/types/WorkflowStepSummary.js +14 -0
  363. package/dist/cjs/api/resources/workflows/types/index.d.ts +14 -0
  364. package/dist/cjs/api/resources/workflows/types/index.js +30 -0
  365. package/dist/cjs/api/types/CohortResponse.d.ts +1 -0
  366. package/dist/cjs/api/types/CohortResponse.js +3 -0
  367. package/dist/cjs/api/types/Lang2FhirAndCreateResponse.d.ts +1 -0
  368. package/dist/cjs/api/types/Lang2FhirAndCreateResponse.js +3 -0
  369. package/dist/cjs/api/types/Lang2FhirAndSearchResponse.d.ts +1 -0
  370. package/dist/cjs/api/types/Lang2FhirAndSearchResponse.js +3 -0
  371. package/dist/cjs/api/types/McpServerResponse.d.ts +1 -0
  372. package/dist/cjs/api/types/McpServerResponse.js +3 -0
  373. package/dist/cjs/api/types/McpServerToolCallResponse.d.ts +1 -0
  374. package/dist/cjs/api/types/McpServerToolCallResponse.js +3 -0
  375. package/dist/cjs/api/types/McpServerToolResponse.d.ts +1 -0
  376. package/dist/cjs/api/types/McpServerToolResponse.js +3 -0
  377. package/dist/cjs/api/types/SearchConcept.d.ts +1 -0
  378. package/dist/cjs/api/types/SearchConcept.js +3 -0
  379. package/dist/cjs/api/types/index.d.ts +7 -0
  380. package/dist/cjs/api/types/index.js +23 -0
  381. package/dist/cjs/core/auth/AuthProvider.d.ts +1 -1
  382. package/dist/cjs/core/auth/BasicAuth.js +2 -1
  383. package/dist/cjs/core/auth/index.d.ts +2 -2
  384. package/dist/cjs/core/fetcher/APIResponse.d.ts +1 -1
  385. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +1 -1
  386. package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
  387. package/dist/cjs/core/fetcher/EndpointMetadata.js +2 -0
  388. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
  389. package/dist/cjs/core/fetcher/EndpointSupplier.js +22 -0
  390. package/dist/cjs/core/fetcher/Fetcher.d.ts +5 -3
  391. package/dist/cjs/core/fetcher/Fetcher.js +3 -2
  392. package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +1 -1
  393. package/dist/cjs/core/fetcher/index.d.ts +2 -0
  394. package/dist/cjs/core/fetcher/index.js +3 -1
  395. package/dist/cjs/core/headers.d.ts +2 -3
  396. package/dist/cjs/environments.d.ts +0 -3
  397. package/dist/cjs/environments.js +1 -3
  398. package/dist/cjs/errors/phenomlError.d.ts +0 -3
  399. package/dist/cjs/errors/phenomlError.js +1 -3
  400. package/dist/cjs/errors/phenomlTimeoutError.d.ts +0 -3
  401. package/dist/cjs/errors/phenomlTimeoutError.js +1 -3
  402. package/dist/cjs/version.d.ts +1 -1
  403. package/dist/cjs/version.js +1 -1
  404. package/dist/esm/BaseClient.d.mts +27 -0
  405. package/dist/esm/BaseClient.mjs +3 -0
  406. package/dist/esm/Client.d.mts +6 -24
  407. package/dist/esm/Client.mjs +9 -5
  408. package/dist/esm/WrapperClient.mjs +1 -0
  409. package/dist/esm/api/index.d.mts +1 -0
  410. package/dist/esm/api/index.mjs +1 -0
  411. package/dist/esm/api/resources/agent/client/Client.d.mts +11 -25
  412. package/dist/esm/api/resources/agent/client/Client.mjs +33 -29
  413. package/dist/esm/api/resources/agent/client/index.mjs +1 -0
  414. package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.d.mts +0 -3
  415. package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.mjs +1 -3
  416. package/dist/esm/api/resources/agent/client/requests/AgentGetChatMessagesRequest.d.mts +4 -4
  417. package/dist/esm/api/resources/agent/client/requests/AgentGetChatMessagesRequest.mjs +2 -4
  418. package/dist/esm/api/resources/agent/client/requests/AgentListRequest.d.mts +4 -4
  419. package/dist/esm/api/resources/agent/client/requests/AgentListRequest.mjs +1 -3
  420. package/dist/esm/api/resources/agent/client/requests/index.mjs +3 -1
  421. package/dist/esm/api/resources/agent/errors/BadRequestError.d.mts +0 -3
  422. package/dist/esm/api/resources/agent/errors/BadRequestError.mjs +2 -3
  423. package/dist/esm/api/resources/agent/errors/ForbiddenError.d.mts +0 -3
  424. package/dist/esm/api/resources/agent/errors/ForbiddenError.mjs +2 -3
  425. package/dist/esm/api/resources/agent/errors/InternalServerError.d.mts +0 -3
  426. package/dist/esm/api/resources/agent/errors/InternalServerError.mjs +2 -3
  427. package/dist/esm/api/resources/agent/errors/NotFoundError.d.mts +0 -3
  428. package/dist/esm/api/resources/agent/errors/NotFoundError.mjs +2 -3
  429. package/dist/esm/api/resources/agent/errors/UnauthorizedError.d.mts +0 -3
  430. package/dist/esm/api/resources/agent/errors/UnauthorizedError.mjs +2 -3
  431. package/dist/esm/api/resources/agent/resources/prompts/client/Client.d.mts +3 -23
  432. package/dist/esm/api/resources/agent/resources/prompts/client/Client.mjs +22 -24
  433. package/dist/esm/api/resources/agent/resources/prompts/client/index.mjs +1 -0
  434. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.d.mts +0 -3
  435. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.mjs +1 -3
  436. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.d.mts +0 -3
  437. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.mjs +1 -3
  438. package/dist/esm/api/resources/agent/resources/prompts/client/requests/index.mjs +2 -1
  439. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.d.mts +0 -3
  440. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.mjs +1 -3
  441. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsListResponse.d.mts +0 -3
  442. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsListResponse.mjs +2 -4
  443. package/dist/esm/api/resources/agent/types/AgentChatResponse.d.mts +0 -3
  444. package/dist/esm/api/resources/agent/types/AgentChatResponse.mjs +1 -3
  445. package/dist/esm/api/resources/agent/types/AgentCreateRequest.d.mts +0 -3
  446. package/dist/esm/api/resources/agent/types/AgentCreateRequest.mjs +1 -3
  447. package/dist/esm/api/resources/agent/types/AgentDeleteResponse.d.mts +0 -3
  448. package/dist/esm/api/resources/agent/types/AgentDeleteResponse.mjs +1 -3
  449. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.mts +1 -4
  450. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestOrder.mjs +1 -3
  451. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesResponse.d.mts +0 -3
  452. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesResponse.mjs +2 -4
  453. package/dist/esm/api/resources/agent/types/AgentListResponse.d.mts +0 -3
  454. package/dist/esm/api/resources/agent/types/AgentListResponse.mjs +2 -4
  455. package/dist/esm/api/resources/agent/types/AgentPromptsResponse.d.mts +0 -3
  456. package/dist/esm/api/resources/agent/types/AgentPromptsResponse.mjs +2 -4
  457. package/dist/esm/api/resources/agent/types/AgentResponse.d.mts +0 -3
  458. package/dist/esm/api/resources/agent/types/AgentResponse.mjs +2 -4
  459. package/dist/esm/api/resources/agent/types/AgentTemplate.d.mts +0 -3
  460. package/dist/esm/api/resources/agent/types/AgentTemplate.mjs +1 -3
  461. package/dist/esm/api/resources/agent/types/ChatMessageTemplate.d.mts +0 -3
  462. package/dist/esm/api/resources/agent/types/ChatMessageTemplate.mjs +1 -3
  463. package/dist/esm/api/resources/agent/types/ChatSessionTemplate.d.mts +0 -3
  464. package/dist/esm/api/resources/agent/types/ChatSessionTemplate.mjs +1 -3
  465. package/dist/esm/api/resources/agent/types/JsonPatch.d.mts +0 -3
  466. package/dist/esm/api/resources/agent/types/JsonPatch.mjs +2 -4
  467. package/dist/esm/api/resources/agent/types/JsonPatchOperation.d.mts +3 -7
  468. package/dist/esm/api/resources/agent/types/JsonPatchOperation.mjs +2 -3
  469. package/dist/esm/api/resources/agent/types/PromptTemplate.d.mts +0 -3
  470. package/dist/esm/api/resources/agent/types/PromptTemplate.mjs +1 -3
  471. package/dist/esm/api/resources/agent/types/SuccessResponse.d.mts +0 -3
  472. package/dist/esm/api/resources/agent/types/SuccessResponse.mjs +1 -3
  473. package/dist/esm/api/resources/authtoken/client/Client.d.mts +2 -13
  474. package/dist/esm/api/resources/authtoken/client/Client.mjs +3 -3
  475. package/dist/esm/api/resources/authtoken/errors/BadRequestError.d.mts +0 -3
  476. package/dist/esm/api/resources/authtoken/errors/BadRequestError.mjs +2 -3
  477. package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.d.mts +0 -3
  478. package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.mjs +2 -3
  479. package/dist/esm/api/resources/authtoken/resources/auth/client/index.mjs +1 -0
  480. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.d.mts +0 -3
  481. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.mjs +1 -3
  482. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/index.mjs +1 -1
  483. package/dist/esm/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.d.mts +0 -3
  484. package/dist/esm/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.mjs +1 -3
  485. package/dist/esm/api/resources/authtoken/types/BadRequestErrorBody.d.mts +0 -3
  486. package/dist/esm/api/resources/authtoken/types/BadRequestErrorBody.mjs +1 -3
  487. package/dist/esm/api/resources/authtoken/types/UnauthorizedErrorBody.d.mts +0 -3
  488. package/dist/esm/api/resources/authtoken/types/UnauthorizedErrorBody.mjs +1 -3
  489. package/dist/esm/api/resources/cohort/client/Client.d.mts +3 -23
  490. package/dist/esm/api/resources/cohort/client/Client.mjs +4 -6
  491. package/dist/esm/api/resources/cohort/client/index.mjs +1 -0
  492. package/dist/esm/api/resources/cohort/client/requests/CohortRequest.d.mts +0 -3
  493. package/dist/esm/api/resources/cohort/client/requests/CohortRequest.mjs +1 -3
  494. package/dist/esm/api/resources/cohort/client/requests/index.mjs +1 -1
  495. package/dist/esm/api/resources/cohort/errors/BadRequestError.d.mts +0 -3
  496. package/dist/esm/api/resources/cohort/errors/BadRequestError.mjs +2 -3
  497. package/dist/esm/api/resources/cohort/errors/InternalServerError.d.mts +0 -3
  498. package/dist/esm/api/resources/cohort/errors/InternalServerError.mjs +2 -3
  499. package/dist/esm/api/resources/cohort/errors/UnauthorizedError.d.mts +0 -3
  500. package/dist/esm/api/resources/cohort/errors/UnauthorizedError.mjs +2 -3
  501. package/dist/esm/api/resources/cohort/types/CohortResponse.d.mts +0 -3
  502. package/dist/esm/api/resources/cohort/types/CohortResponse.mjs +2 -4
  503. package/dist/esm/api/resources/cohort/types/SearchConcept.d.mts +0 -3
  504. package/dist/esm/api/resources/cohort/types/SearchConcept.mjs +1 -3
  505. package/dist/esm/api/resources/construe/client/Client.d.mts +3 -23
  506. package/dist/esm/api/resources/construe/client/Client.mjs +10 -12
  507. package/dist/esm/api/resources/construe/client/index.mjs +1 -0
  508. package/dist/esm/api/resources/construe/client/requests/ConstrueCohortRequest.d.mts +0 -3
  509. package/dist/esm/api/resources/construe/client/requests/ConstrueCohortRequest.mjs +1 -3
  510. package/dist/esm/api/resources/construe/client/requests/ExtractRequest.d.mts +0 -3
  511. package/dist/esm/api/resources/construe/client/requests/ExtractRequest.mjs +2 -4
  512. package/dist/esm/api/resources/construe/client/requests/UploadRequest.d.mts +2 -7
  513. package/dist/esm/api/resources/construe/client/requests/UploadRequest.mjs +2 -3
  514. package/dist/esm/api/resources/construe/client/requests/index.mjs +3 -1
  515. package/dist/esm/api/resources/construe/errors/BadRequestError.d.mts +0 -3
  516. package/dist/esm/api/resources/construe/errors/BadRequestError.mjs +2 -3
  517. package/dist/esm/api/resources/construe/errors/ConflictError.d.mts +0 -3
  518. package/dist/esm/api/resources/construe/errors/ConflictError.mjs +2 -3
  519. package/dist/esm/api/resources/construe/errors/FailedDependencyError.d.mts +0 -3
  520. package/dist/esm/api/resources/construe/errors/FailedDependencyError.mjs +2 -3
  521. package/dist/esm/api/resources/construe/errors/InternalServerError.d.mts +0 -3
  522. package/dist/esm/api/resources/construe/errors/InternalServerError.mjs +2 -3
  523. package/dist/esm/api/resources/construe/errors/UnauthorizedError.d.mts +0 -3
  524. package/dist/esm/api/resources/construe/errors/UnauthorizedError.mjs +2 -3
  525. package/dist/esm/api/resources/construe/types/BadRequestErrorBody.d.mts +0 -3
  526. package/dist/esm/api/resources/construe/types/BadRequestErrorBody.mjs +1 -3
  527. package/dist/esm/api/resources/construe/types/ConstrueCohortResponse.d.mts +0 -3
  528. package/dist/esm/api/resources/construe/types/ConstrueCohortResponse.mjs +1 -3
  529. package/dist/esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.mts +0 -3
  530. package/dist/esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.mjs +1 -3
  531. package/dist/esm/api/resources/construe/types/ExtractCodesResult.d.mts +0 -3
  532. package/dist/esm/api/resources/construe/types/ExtractCodesResult.mjs +2 -4
  533. package/dist/esm/api/resources/construe/types/ExtractRequestConfig.d.mts +1 -4
  534. package/dist/esm/api/resources/construe/types/ExtractRequestConfig.mjs +1 -3
  535. package/dist/esm/api/resources/construe/types/ExtractRequestSystem.d.mts +0 -3
  536. package/dist/esm/api/resources/construe/types/ExtractRequestSystem.mjs +1 -3
  537. package/dist/esm/api/resources/construe/types/ExtractedCodeResult.d.mts +0 -3
  538. package/dist/esm/api/resources/construe/types/ExtractedCodeResult.mjs +1 -3
  539. package/dist/esm/api/resources/construe/types/InternalServerErrorBody.d.mts +0 -3
  540. package/dist/esm/api/resources/construe/types/InternalServerErrorBody.mjs +1 -3
  541. package/dist/esm/api/resources/construe/types/UnauthorizedErrorBody.d.mts +0 -3
  542. package/dist/esm/api/resources/construe/types/UnauthorizedErrorBody.mjs +1 -3
  543. package/dist/esm/api/resources/fhir/client/Client.d.mts +26 -25
  544. package/dist/esm/api/resources/fhir/client/Client.mjs +42 -23
  545. package/dist/esm/api/resources/fhir/client/index.mjs +1 -0
  546. package/dist/esm/api/resources/fhir/client/requests/FhirCreateRequest.d.mts +11 -4
  547. package/dist/esm/api/resources/fhir/client/requests/FhirCreateRequest.mjs +2 -4
  548. package/dist/esm/api/resources/fhir/client/requests/FhirDeleteRequest.d.mts +0 -3
  549. package/dist/esm/api/resources/fhir/client/requests/FhirDeleteRequest.mjs +1 -3
  550. package/dist/esm/api/resources/fhir/client/requests/FhirExecuteBundleRequest.d.mts +0 -3
  551. package/dist/esm/api/resources/fhir/client/requests/FhirExecuteBundleRequest.mjs +2 -4
  552. package/dist/esm/api/resources/fhir/client/requests/FhirPatchRequest.d.mts +0 -3
  553. package/dist/esm/api/resources/fhir/client/requests/FhirPatchRequest.mjs +2 -4
  554. package/dist/esm/api/resources/fhir/client/requests/FhirSearchRequest.d.mts +0 -3
  555. package/dist/esm/api/resources/fhir/client/requests/FhirSearchRequest.mjs +1 -3
  556. package/dist/esm/api/resources/fhir/client/requests/FhirUpsertRequest.d.mts +12 -4
  557. package/dist/esm/api/resources/fhir/client/requests/FhirUpsertRequest.mjs +2 -4
  558. package/dist/esm/api/resources/fhir/client/requests/index.mjs +6 -1
  559. package/dist/esm/api/resources/fhir/errors/BadRequestError.d.mts +0 -3
  560. package/dist/esm/api/resources/fhir/errors/BadRequestError.mjs +2 -3
  561. package/dist/esm/api/resources/fhir/errors/InternalServerError.d.mts +0 -3
  562. package/dist/esm/api/resources/fhir/errors/InternalServerError.mjs +2 -3
  563. package/dist/esm/api/resources/fhir/errors/NotFoundError.d.mts +0 -3
  564. package/dist/esm/api/resources/fhir/errors/NotFoundError.mjs +2 -3
  565. package/dist/esm/api/resources/fhir/errors/UnauthorizedError.d.mts +0 -3
  566. package/dist/esm/api/resources/fhir/errors/UnauthorizedError.mjs +2 -3
  567. package/dist/esm/api/resources/fhir/types/ErrorResponse.d.mts +0 -3
  568. package/dist/esm/api/resources/fhir/types/ErrorResponse.mjs +1 -3
  569. package/dist/esm/api/resources/fhir/types/FhirBundle.d.mts +1 -4
  570. package/dist/esm/api/resources/fhir/types/FhirBundle.mjs +1 -3
  571. package/dist/esm/api/resources/fhir/types/FhirPatchRequestBodyItem.d.mts +3 -7
  572. package/dist/esm/api/resources/fhir/types/FhirPatchRequestBodyItem.mjs +2 -3
  573. package/dist/esm/api/resources/fhir/types/FhirResource.d.mts +0 -3
  574. package/dist/esm/api/resources/fhir/types/FhirResource.mjs +1 -3
  575. package/dist/esm/api/resources/fhir/types/FhirSearchResponse.d.mts +0 -3
  576. package/dist/esm/api/resources/fhir/types/FhirSearchResponse.mjs +2 -4
  577. package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +3 -23
  578. package/dist/esm/api/resources/fhirProvider/client/Client.mjs +22 -24
  579. package/dist/esm/api/resources/fhirProvider/client/index.mjs +1 -0
  580. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.d.mts +0 -3
  581. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.mjs +2 -4
  582. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.d.mts +0 -3
  583. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.mjs +2 -4
  584. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.d.mts +0 -3
  585. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.mjs +1 -3
  586. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.d.mts +0 -3
  587. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.mjs +1 -3
  588. package/dist/esm/api/resources/fhirProvider/client/requests/index.mjs +4 -1
  589. package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.d.mts +0 -3
  590. package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.mjs +2 -3
  591. package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.d.mts +0 -3
  592. package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.mjs +2 -3
  593. package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.d.mts +0 -3
  594. package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.mjs +2 -3
  595. package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.d.mts +0 -3
  596. package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.mjs +2 -3
  597. package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.d.mts +0 -3
  598. package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.mjs +2 -3
  599. package/dist/esm/api/resources/fhirProvider/types/AuthMethod.d.mts +2 -7
  600. package/dist/esm/api/resources/fhirProvider/types/AuthMethod.mjs +2 -3
  601. package/dist/esm/api/resources/fhirProvider/types/FhirProviderAuthConfig.d.mts +0 -3
  602. package/dist/esm/api/resources/fhirProvider/types/FhirProviderAuthConfig.mjs +2 -4
  603. package/dist/esm/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.mts +0 -3
  604. package/dist/esm/api/resources/fhirProvider/types/FhirProviderDeleteResponse.mjs +1 -3
  605. package/dist/esm/api/resources/fhirProvider/types/FhirProviderListResponse.d.mts +0 -3
  606. package/dist/esm/api/resources/fhirProvider/types/FhirProviderListResponse.mjs +2 -4
  607. package/dist/esm/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.d.mts +0 -3
  608. package/dist/esm/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.mjs +2 -4
  609. package/dist/esm/api/resources/fhirProvider/types/FhirProviderResponse.d.mts +0 -3
  610. package/dist/esm/api/resources/fhirProvider/types/FhirProviderResponse.mjs +2 -4
  611. package/dist/esm/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.d.mts +0 -3
  612. package/dist/esm/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.mjs +2 -4
  613. package/dist/esm/api/resources/fhirProvider/types/FhirProviderTemplate.d.mts +0 -3
  614. package/dist/esm/api/resources/fhirProvider/types/FhirProviderTemplate.mjs +2 -4
  615. package/dist/esm/api/resources/fhirProvider/types/FhirQueryResponse.d.mts +0 -3
  616. package/dist/esm/api/resources/fhirProvider/types/FhirQueryResponse.mjs +1 -3
  617. package/dist/esm/api/resources/fhirProvider/types/JsonWebKey.d.mts +0 -3
  618. package/dist/esm/api/resources/fhirProvider/types/JsonWebKey.mjs +1 -3
  619. package/dist/esm/api/resources/fhirProvider/types/Provider.d.mts +2 -7
  620. package/dist/esm/api/resources/fhirProvider/types/Provider.mjs +2 -3
  621. package/dist/esm/api/resources/fhirProvider/types/ServiceAccountKey.d.mts +0 -3
  622. package/dist/esm/api/resources/fhirProvider/types/ServiceAccountKey.mjs +1 -3
  623. package/dist/esm/api/resources/fhirProvider/types/SmartConfiguration.d.mts +0 -3
  624. package/dist/esm/api/resources/fhirProvider/types/SmartConfiguration.mjs +1 -3
  625. package/dist/esm/api/resources/index.d.mts +1 -0
  626. package/dist/esm/api/resources/index.mjs +1 -0
  627. package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +3 -23
  628. package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +13 -15
  629. package/dist/esm/api/resources/lang2Fhir/client/index.mjs +1 -0
  630. package/dist/esm/api/resources/lang2Fhir/client/requests/CreateRequest.d.mts +2 -7
  631. package/dist/esm/api/resources/lang2Fhir/client/requests/CreateRequest.mjs +2 -3
  632. package/dist/esm/api/resources/lang2Fhir/client/requests/DocumentRequest.d.mts +4 -11
  633. package/dist/esm/api/resources/lang2Fhir/client/requests/DocumentRequest.mjs +3 -3
  634. package/dist/esm/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.d.mts +0 -3
  635. package/dist/esm/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.mjs +1 -3
  636. package/dist/esm/api/resources/lang2Fhir/client/requests/SearchRequest.d.mts +0 -3
  637. package/dist/esm/api/resources/lang2Fhir/client/requests/SearchRequest.mjs +1 -3
  638. package/dist/esm/api/resources/lang2Fhir/client/requests/index.mjs +4 -1
  639. package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.d.mts +0 -3
  640. package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.mjs +2 -3
  641. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.d.mts +0 -3
  642. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.mjs +2 -3
  643. package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.d.mts +0 -3
  644. package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.mjs +2 -3
  645. package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.d.mts +0 -3
  646. package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.mjs +2 -3
  647. package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.d.mts +0 -3
  648. package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.mjs +2 -3
  649. package/dist/esm/api/resources/lang2Fhir/types/FhirResource.d.mts +0 -3
  650. package/dist/esm/api/resources/lang2Fhir/types/FhirResource.mjs +1 -3
  651. package/dist/esm/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.mts +0 -3
  652. package/dist/esm/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.mjs +1 -3
  653. package/dist/esm/api/resources/lang2Fhir/types/SearchResponse.d.mts +0 -3
  654. package/dist/esm/api/resources/lang2Fhir/types/SearchResponse.mjs +1 -3
  655. package/dist/esm/api/resources/tools/client/Client.d.mts +3 -23
  656. package/dist/esm/api/resources/tools/client/Client.mjs +10 -12
  657. package/dist/esm/api/resources/tools/client/index.mjs +1 -0
  658. package/dist/esm/api/resources/tools/client/requests/CohortRequest.d.mts +0 -3
  659. package/dist/esm/api/resources/tools/client/requests/CohortRequest.mjs +1 -3
  660. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.mts +2 -7
  661. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.mjs +2 -3
  662. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.mts +0 -3
  663. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.mjs +1 -3
  664. package/dist/esm/api/resources/tools/client/requests/index.mjs +3 -1
  665. package/dist/esm/api/resources/tools/errors/BadRequestError.d.mts +0 -3
  666. package/dist/esm/api/resources/tools/errors/BadRequestError.mjs +2 -3
  667. package/dist/esm/api/resources/tools/errors/FailedDependencyError.d.mts +0 -3
  668. package/dist/esm/api/resources/tools/errors/FailedDependencyError.mjs +2 -3
  669. package/dist/esm/api/resources/tools/errors/ForbiddenError.d.mts +0 -3
  670. package/dist/esm/api/resources/tools/errors/ForbiddenError.mjs +2 -3
  671. package/dist/esm/api/resources/tools/errors/InternalServerError.d.mts +0 -3
  672. package/dist/esm/api/resources/tools/errors/InternalServerError.mjs +2 -3
  673. package/dist/esm/api/resources/tools/errors/UnauthorizedError.d.mts +0 -3
  674. package/dist/esm/api/resources/tools/errors/UnauthorizedError.mjs +2 -3
  675. package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.d.mts +3 -23
  676. package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.mjs +13 -15
  677. package/dist/esm/api/resources/tools/resources/mcpServer/client/index.mjs +1 -0
  678. package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.d.mts +0 -3
  679. package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.mjs +1 -3
  680. package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/index.mjs +1 -1
  681. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.mts +3 -23
  682. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +13 -15
  683. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.mjs +1 -0
  684. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.mts +0 -3
  685. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.mjs +1 -3
  686. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.mjs +1 -1
  687. package/dist/esm/api/resources/tools/types/CohortResponse.d.mts +0 -3
  688. package/dist/esm/api/resources/tools/types/CohortResponse.mjs +2 -4
  689. package/dist/esm/api/resources/tools/types/Lang2FhirAndCreateResponse.d.mts +0 -3
  690. package/dist/esm/api/resources/tools/types/Lang2FhirAndCreateResponse.mjs +1 -3
  691. package/dist/esm/api/resources/tools/types/Lang2FhirAndSearchResponse.d.mts +0 -3
  692. package/dist/esm/api/resources/tools/types/Lang2FhirAndSearchResponse.mjs +1 -3
  693. package/dist/esm/api/resources/tools/types/McpServerResponse.d.mts +0 -3
  694. package/dist/esm/api/resources/tools/types/McpServerResponse.mjs +1 -3
  695. package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.d.mts +0 -3
  696. package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.mjs +1 -3
  697. package/dist/esm/api/resources/tools/types/McpServerToolResponse.d.mts +0 -3
  698. package/dist/esm/api/resources/tools/types/McpServerToolResponse.mjs +1 -3
  699. package/dist/esm/api/resources/tools/types/SearchConcept.d.mts +0 -3
  700. package/dist/esm/api/resources/tools/types/SearchConcept.mjs +1 -3
  701. package/dist/esm/api/resources/workflows/client/Client.d.mts +43 -0
  702. package/dist/esm/api/resources/workflows/client/Client.mjs +185 -0
  703. package/dist/esm/api/resources/workflows/client/index.d.mts +1 -0
  704. package/dist/esm/api/resources/workflows/client/index.mjs +1 -0
  705. package/dist/esm/api/resources/workflows/errors/BadRequestError.d.mts +5 -0
  706. package/dist/esm/api/resources/workflows/errors/BadRequestError.mjs +14 -0
  707. package/dist/esm/api/resources/workflows/errors/ForbiddenError.d.mts +5 -0
  708. package/dist/esm/api/resources/workflows/errors/ForbiddenError.mjs +14 -0
  709. package/dist/esm/api/resources/workflows/errors/InternalServerError.d.mts +5 -0
  710. package/dist/esm/api/resources/workflows/errors/InternalServerError.mjs +14 -0
  711. package/dist/esm/api/resources/workflows/errors/NotFoundError.d.mts +5 -0
  712. package/dist/esm/api/resources/workflows/errors/NotFoundError.mjs +14 -0
  713. package/dist/esm/api/resources/workflows/errors/UnauthorizedError.d.mts +5 -0
  714. package/dist/esm/api/resources/workflows/errors/UnauthorizedError.mjs +14 -0
  715. package/dist/esm/api/resources/workflows/errors/index.d.mts +5 -0
  716. package/dist/esm/api/resources/workflows/errors/index.mjs +5 -0
  717. package/dist/esm/api/resources/workflows/index.d.mts +4 -0
  718. package/dist/esm/api/resources/workflows/index.mjs +4 -0
  719. package/dist/esm/api/resources/workflows/resources/index.d.mts +4 -0
  720. package/dist/esm/api/resources/workflows/resources/index.mjs +4 -0
  721. package/dist/esm/api/resources/workflows/resources/mcpServer/client/Client.d.mts +50 -0
  722. package/dist/esm/api/resources/workflows/resources/mcpServer/client/Client.mjs +231 -0
  723. package/dist/esm/api/resources/workflows/resources/mcpServer/client/index.d.mts +1 -0
  724. package/dist/esm/api/resources/workflows/resources/mcpServer/client/index.mjs +1 -0
  725. package/dist/esm/api/resources/workflows/resources/mcpServer/index.d.mts +2 -0
  726. package/dist/esm/api/resources/workflows/resources/mcpServer/index.mjs +2 -0
  727. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/index.d.mts +1 -0
  728. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/index.mjs +1 -0
  729. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.d.mts +49 -0
  730. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.mjs +228 -0
  731. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/index.d.mts +1 -0
  732. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/index.mjs +1 -0
  733. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/index.d.mts +1 -0
  734. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/index.mjs +1 -0
  735. package/dist/esm/api/resources/workflows/resources/workflows/client/Client.d.mts +145 -0
  736. package/dist/esm/api/resources/workflows/resources/workflows/client/Client.mjs +532 -0
  737. package/dist/esm/api/resources/workflows/resources/workflows/client/index.d.mts +2 -0
  738. package/dist/esm/api/resources/workflows/resources/workflows/client/index.mjs +2 -0
  739. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/CreateWorkflowRequest.d.mts +40 -0
  740. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/CreateWorkflowRequest.mjs +2 -0
  741. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/ExecuteWorkflowRequest.d.mts +15 -0
  742. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/ExecuteWorkflowRequest.mjs +2 -0
  743. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/UpdateWorkflowRequest.d.mts +40 -0
  744. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/UpdateWorkflowRequest.mjs +2 -0
  745. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/WorkflowsGetRequest.d.mts +10 -0
  746. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/WorkflowsGetRequest.mjs +2 -0
  747. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/WorkflowsListRequest.d.mts +10 -0
  748. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/WorkflowsListRequest.mjs +2 -0
  749. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/index.d.mts +5 -0
  750. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/index.mjs +5 -0
  751. package/dist/esm/api/resources/workflows/resources/workflows/index.d.mts +2 -0
  752. package/dist/esm/api/resources/workflows/resources/workflows/index.mjs +2 -0
  753. package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsDeleteResponse.d.mts +4 -0
  754. package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsDeleteResponse.mjs +2 -0
  755. package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsGetResponse.d.mts +7 -0
  756. package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsGetResponse.mjs +2 -0
  757. package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsUpdateResponse.d.mts +9 -0
  758. package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsUpdateResponse.mjs +2 -0
  759. package/dist/esm/api/resources/workflows/resources/workflows/types/index.d.mts +3 -0
  760. package/dist/esm/api/resources/workflows/resources/workflows/types/index.mjs +3 -0
  761. package/dist/esm/api/resources/workflows/types/CreateWorkflowResponse.d.mts +13 -0
  762. package/dist/esm/api/resources/workflows/types/CreateWorkflowResponse.mjs +2 -0
  763. package/dist/esm/api/resources/workflows/types/DecisionNodeDefinition.d.mts +8 -0
  764. package/dist/esm/api/resources/workflows/types/DecisionNodeDefinition.mjs +2 -0
  765. package/dist/esm/api/resources/workflows/types/ExecuteWorkflowResponse.d.mts +13 -0
  766. package/dist/esm/api/resources/workflows/types/ExecuteWorkflowResponse.mjs +2 -0
  767. package/dist/esm/api/resources/workflows/types/Lang2FhirCreateDefinition.d.mts +10 -0
  768. package/dist/esm/api/resources/workflows/types/Lang2FhirCreateDefinition.mjs +2 -0
  769. package/dist/esm/api/resources/workflows/types/Lang2FhirSearchDefinition.d.mts +12 -0
  770. package/dist/esm/api/resources/workflows/types/Lang2FhirSearchDefinition.mjs +2 -0
  771. package/dist/esm/api/resources/workflows/types/ListWorkflowsResponse.d.mts +11 -0
  772. package/dist/esm/api/resources/workflows/types/ListWorkflowsResponse.mjs +2 -0
  773. package/dist/esm/api/resources/workflows/types/StepOperation.d.mts +7 -0
  774. package/dist/esm/api/resources/workflows/types/StepOperation.mjs +2 -0
  775. package/dist/esm/api/resources/workflows/types/SubWorkflowDefinition.d.mts +8 -0
  776. package/dist/esm/api/resources/workflows/types/SubWorkflowDefinition.mjs +2 -0
  777. package/dist/esm/api/resources/workflows/types/WorkflowConfig.d.mts +6 -0
  778. package/dist/esm/api/resources/workflows/types/WorkflowConfig.mjs +2 -0
  779. package/dist/esm/api/resources/workflows/types/WorkflowDefinition.d.mts +19 -0
  780. package/dist/esm/api/resources/workflows/types/WorkflowDefinition.mjs +2 -0
  781. package/dist/esm/api/resources/workflows/types/WorkflowGraph.d.mts +5 -0
  782. package/dist/esm/api/resources/workflows/types/WorkflowGraph.mjs +2 -0
  783. package/dist/esm/api/resources/workflows/types/WorkflowResponse.d.mts +28 -0
  784. package/dist/esm/api/resources/workflows/types/WorkflowResponse.mjs +2 -0
  785. package/dist/esm/api/resources/workflows/types/WorkflowStep.d.mts +28 -0
  786. package/dist/esm/api/resources/workflows/types/WorkflowStep.mjs +12 -0
  787. package/dist/esm/api/resources/workflows/types/WorkflowStepSummary.d.mts +25 -0
  788. package/dist/esm/api/resources/workflows/types/WorkflowStepSummary.mjs +11 -0
  789. package/dist/esm/api/resources/workflows/types/index.d.mts +14 -0
  790. package/dist/esm/api/resources/workflows/types/index.mjs +14 -0
  791. package/dist/esm/api/types/CohortResponse.d.mts +1 -0
  792. package/dist/esm/api/types/CohortResponse.mjs +2 -0
  793. package/dist/esm/api/types/Lang2FhirAndCreateResponse.d.mts +1 -0
  794. package/dist/esm/api/types/Lang2FhirAndCreateResponse.mjs +2 -0
  795. package/dist/esm/api/types/Lang2FhirAndSearchResponse.d.mts +1 -0
  796. package/dist/esm/api/types/Lang2FhirAndSearchResponse.mjs +2 -0
  797. package/dist/esm/api/types/McpServerResponse.d.mts +1 -0
  798. package/dist/esm/api/types/McpServerResponse.mjs +2 -0
  799. package/dist/esm/api/types/McpServerToolCallResponse.d.mts +1 -0
  800. package/dist/esm/api/types/McpServerToolCallResponse.mjs +2 -0
  801. package/dist/esm/api/types/McpServerToolResponse.d.mts +1 -0
  802. package/dist/esm/api/types/McpServerToolResponse.mjs +2 -0
  803. package/dist/esm/api/types/SearchConcept.d.mts +1 -0
  804. package/dist/esm/api/types/SearchConcept.mjs +2 -0
  805. package/dist/esm/api/types/index.d.mts +7 -0
  806. package/dist/esm/api/types/index.mjs +7 -0
  807. package/dist/esm/core/auth/AuthProvider.d.mts +1 -1
  808. package/dist/esm/core/auth/BasicAuth.mjs +2 -1
  809. package/dist/esm/core/auth/index.d.mts +2 -2
  810. package/dist/esm/core/fetcher/APIResponse.d.mts +1 -1
  811. package/dist/esm/core/fetcher/BinaryResponse.d.mts +1 -1
  812. package/dist/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
  813. package/dist/esm/core/fetcher/EndpointMetadata.mjs +1 -0
  814. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
  815. package/dist/esm/core/fetcher/EndpointSupplier.mjs +20 -0
  816. package/dist/esm/core/fetcher/Fetcher.d.mts +5 -3
  817. package/dist/esm/core/fetcher/Fetcher.mjs +3 -2
  818. package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +1 -1
  819. package/dist/esm/core/fetcher/index.d.mts +2 -0
  820. package/dist/esm/core/fetcher/index.mjs +1 -0
  821. package/dist/esm/core/headers.d.mts +2 -3
  822. package/dist/esm/environments.d.mts +0 -3
  823. package/dist/esm/environments.mjs +1 -3
  824. package/dist/esm/errors/phenomlError.d.mts +0 -3
  825. package/dist/esm/errors/phenomlError.mjs +2 -3
  826. package/dist/esm/errors/phenomlTimeoutError.d.mts +0 -3
  827. package/dist/esm/errors/phenomlTimeoutError.mjs +1 -3
  828. package/dist/esm/version.d.mts +1 -1
  829. package/dist/esm/version.mjs +1 -1
  830. package/package.json +2 -2
  831. package/reference.md +952 -1
@@ -0,0 +1,532 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __rest = (this && this.__rest) || function (s, e) {
12
+ var t = {};
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
+ t[p] = s[p];
15
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
+ t[p[i]] = s[p[i]];
19
+ }
20
+ return t;
21
+ };
22
+ import * as environments from "../../../../../../environments.mjs";
23
+ import * as core from "../../../../../../core/index.mjs";
24
+ import * as phenoml from "../../../../../index.mjs";
25
+ import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
26
+ import * as errors from "../../../../../../errors/index.mjs";
27
+ export class Workflows {
28
+ constructor(_options = {}) {
29
+ this._options = _options;
30
+ }
31
+ /**
32
+ * Retrieves all workflow definitions for the authenticated user
33
+ *
34
+ * @param {phenoml.workflows.WorkflowsListRequest} request
35
+ * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
36
+ *
37
+ * @throws {@link phenoml.workflows.UnauthorizedError}
38
+ * @throws {@link phenoml.workflows.ForbiddenError}
39
+ * @throws {@link phenoml.workflows.InternalServerError}
40
+ *
41
+ * @example
42
+ * await client.workflows.workflows.list({
43
+ * verbose: true
44
+ * })
45
+ */
46
+ list(request = {}, requestOptions) {
47
+ return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
48
+ }
49
+ __list() {
50
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
51
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
52
+ const { verbose } = request;
53
+ const _queryParams = {};
54
+ if (verbose != null) {
55
+ _queryParams["verbose"] = verbose.toString();
56
+ }
57
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
58
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
59
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, "workflows"),
60
+ method: "GET",
61
+ headers: _headers,
62
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
63
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
64
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
65
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
66
+ });
67
+ if (_response.ok) {
68
+ return {
69
+ data: _response.body,
70
+ rawResponse: _response.rawResponse,
71
+ };
72
+ }
73
+ if (_response.error.reason === "status-code") {
74
+ switch (_response.error.statusCode) {
75
+ case 401:
76
+ throw new phenoml.workflows.UnauthorizedError(_response.error.body, _response.rawResponse);
77
+ case 403:
78
+ throw new phenoml.workflows.ForbiddenError(_response.error.body, _response.rawResponse);
79
+ case 500:
80
+ throw new phenoml.workflows.InternalServerError(_response.error.body, _response.rawResponse);
81
+ default:
82
+ throw new errors.phenomlError({
83
+ statusCode: _response.error.statusCode,
84
+ body: _response.error.body,
85
+ rawResponse: _response.rawResponse,
86
+ });
87
+ }
88
+ }
89
+ switch (_response.error.reason) {
90
+ case "non-json":
91
+ throw new errors.phenomlError({
92
+ statusCode: _response.error.statusCode,
93
+ body: _response.error.rawBody,
94
+ rawResponse: _response.rawResponse,
95
+ });
96
+ case "timeout":
97
+ throw new errors.phenomlTimeoutError("Timeout exceeded when calling GET /workflows.");
98
+ case "unknown":
99
+ throw new errors.phenomlError({
100
+ message: _response.error.errorMessage,
101
+ rawResponse: _response.rawResponse,
102
+ });
103
+ }
104
+ });
105
+ }
106
+ /**
107
+ * Creates a new workflow definition with graph generation from workflow instructions
108
+ *
109
+ * @param {phenoml.workflows.CreateWorkflowRequest} request
110
+ * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
111
+ *
112
+ * @throws {@link phenoml.workflows.BadRequestError}
113
+ * @throws {@link phenoml.workflows.UnauthorizedError}
114
+ * @throws {@link phenoml.workflows.ForbiddenError}
115
+ * @throws {@link phenoml.workflows.InternalServerError}
116
+ *
117
+ * @example
118
+ * await client.workflows.workflows.create({
119
+ * verbose: true,
120
+ * name: "Patient Data Mapping Workflow",
121
+ * workflow_instructions: "Given diagnosis data, find the patient and create condition record",
122
+ * sample_data: {
123
+ * "patient_last_name": "Rippin",
124
+ * "patient_first_name": "Clay",
125
+ * "diagnosis_code": "I10"
126
+ * },
127
+ * fhir_provider_id: "550e8400-e29b-41d4-a716-446655440000"
128
+ * })
129
+ */
130
+ create(request, requestOptions) {
131
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
132
+ }
133
+ __create(request, requestOptions) {
134
+ return __awaiter(this, void 0, void 0, function* () {
135
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
136
+ const { verbose } = request, _body = __rest(request, ["verbose"]);
137
+ const _queryParams = {};
138
+ if (verbose != null) {
139
+ _queryParams["verbose"] = verbose.toString();
140
+ }
141
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
142
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
143
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, "workflows"),
144
+ method: "POST",
145
+ headers: _headers,
146
+ contentType: "application/json",
147
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
148
+ requestType: "json",
149
+ body: _body,
150
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
151
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
152
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
153
+ });
154
+ if (_response.ok) {
155
+ return {
156
+ data: _response.body,
157
+ rawResponse: _response.rawResponse,
158
+ };
159
+ }
160
+ if (_response.error.reason === "status-code") {
161
+ switch (_response.error.statusCode) {
162
+ case 400:
163
+ throw new phenoml.workflows.BadRequestError(_response.error.body, _response.rawResponse);
164
+ case 401:
165
+ throw new phenoml.workflows.UnauthorizedError(_response.error.body, _response.rawResponse);
166
+ case 403:
167
+ throw new phenoml.workflows.ForbiddenError(_response.error.body, _response.rawResponse);
168
+ case 500:
169
+ throw new phenoml.workflows.InternalServerError(_response.error.body, _response.rawResponse);
170
+ default:
171
+ throw new errors.phenomlError({
172
+ statusCode: _response.error.statusCode,
173
+ body: _response.error.body,
174
+ rawResponse: _response.rawResponse,
175
+ });
176
+ }
177
+ }
178
+ switch (_response.error.reason) {
179
+ case "non-json":
180
+ throw new errors.phenomlError({
181
+ statusCode: _response.error.statusCode,
182
+ body: _response.error.rawBody,
183
+ rawResponse: _response.rawResponse,
184
+ });
185
+ case "timeout":
186
+ throw new errors.phenomlTimeoutError("Timeout exceeded when calling POST /workflows.");
187
+ case "unknown":
188
+ throw new errors.phenomlError({
189
+ message: _response.error.errorMessage,
190
+ rawResponse: _response.rawResponse,
191
+ });
192
+ }
193
+ });
194
+ }
195
+ /**
196
+ * Retrieves a workflow definition by its ID
197
+ *
198
+ * @param {string} id - ID of the workflow to retrieve
199
+ * @param {phenoml.workflows.WorkflowsGetRequest} request
200
+ * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
201
+ *
202
+ * @throws {@link phenoml.workflows.UnauthorizedError}
203
+ * @throws {@link phenoml.workflows.ForbiddenError}
204
+ * @throws {@link phenoml.workflows.NotFoundError}
205
+ * @throws {@link phenoml.workflows.InternalServerError}
206
+ *
207
+ * @example
208
+ * await client.workflows.workflows.get("id", {
209
+ * verbose: true
210
+ * })
211
+ */
212
+ get(id, request = {}, requestOptions) {
213
+ return core.HttpResponsePromise.fromPromise(this.__get(id, request, requestOptions));
214
+ }
215
+ __get(id_1) {
216
+ return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
217
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
218
+ const { verbose } = request;
219
+ const _queryParams = {};
220
+ if (verbose != null) {
221
+ _queryParams["verbose"] = verbose.toString();
222
+ }
223
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
224
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
225
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `workflows/${encodeURIComponent(id)}`),
226
+ method: "GET",
227
+ headers: _headers,
228
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
229
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
230
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
231
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
232
+ });
233
+ if (_response.ok) {
234
+ return {
235
+ data: _response.body,
236
+ rawResponse: _response.rawResponse,
237
+ };
238
+ }
239
+ if (_response.error.reason === "status-code") {
240
+ switch (_response.error.statusCode) {
241
+ case 401:
242
+ throw new phenoml.workflows.UnauthorizedError(_response.error.body, _response.rawResponse);
243
+ case 403:
244
+ throw new phenoml.workflows.ForbiddenError(_response.error.body, _response.rawResponse);
245
+ case 404:
246
+ throw new phenoml.workflows.NotFoundError(_response.error.body, _response.rawResponse);
247
+ case 500:
248
+ throw new phenoml.workflows.InternalServerError(_response.error.body, _response.rawResponse);
249
+ default:
250
+ throw new errors.phenomlError({
251
+ statusCode: _response.error.statusCode,
252
+ body: _response.error.body,
253
+ rawResponse: _response.rawResponse,
254
+ });
255
+ }
256
+ }
257
+ switch (_response.error.reason) {
258
+ case "non-json":
259
+ throw new errors.phenomlError({
260
+ statusCode: _response.error.statusCode,
261
+ body: _response.error.rawBody,
262
+ rawResponse: _response.rawResponse,
263
+ });
264
+ case "timeout":
265
+ throw new errors.phenomlTimeoutError("Timeout exceeded when calling GET /workflows/{id}.");
266
+ case "unknown":
267
+ throw new errors.phenomlError({
268
+ message: _response.error.errorMessage,
269
+ rawResponse: _response.rawResponse,
270
+ });
271
+ }
272
+ });
273
+ }
274
+ /**
275
+ * Updates an existing workflow definition
276
+ *
277
+ * @param {string} id - ID of the workflow to update
278
+ * @param {phenoml.workflows.UpdateWorkflowRequest} request
279
+ * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
280
+ *
281
+ * @throws {@link phenoml.workflows.BadRequestError}
282
+ * @throws {@link phenoml.workflows.UnauthorizedError}
283
+ * @throws {@link phenoml.workflows.ForbiddenError}
284
+ * @throws {@link phenoml.workflows.NotFoundError}
285
+ * @throws {@link phenoml.workflows.InternalServerError}
286
+ *
287
+ * @example
288
+ * await client.workflows.workflows.update("id", {
289
+ * verbose: true,
290
+ * name: "Updated Patient Data Mapping Workflow",
291
+ * workflow_instructions: "Given diagnosis data, find the patient and create condition record",
292
+ * sample_data: {
293
+ * "patient_last_name": "Smith",
294
+ * "patient_first_name": "John",
295
+ * "diagnosis_code": "E11"
296
+ * },
297
+ * fhir_provider_id: "550e8400-e29b-41d4-a716-446655440000"
298
+ * })
299
+ */
300
+ update(id, request, requestOptions) {
301
+ return core.HttpResponsePromise.fromPromise(this.__update(id, request, requestOptions));
302
+ }
303
+ __update(id, request, requestOptions) {
304
+ return __awaiter(this, void 0, void 0, function* () {
305
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
306
+ const { verbose } = request, _body = __rest(request, ["verbose"]);
307
+ const _queryParams = {};
308
+ if (verbose != null) {
309
+ _queryParams["verbose"] = verbose.toString();
310
+ }
311
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
312
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
313
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `workflows/${encodeURIComponent(id)}`),
314
+ method: "PUT",
315
+ headers: _headers,
316
+ contentType: "application/json",
317
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
318
+ requestType: "json",
319
+ body: _body,
320
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
321
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
322
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
323
+ });
324
+ if (_response.ok) {
325
+ return {
326
+ data: _response.body,
327
+ rawResponse: _response.rawResponse,
328
+ };
329
+ }
330
+ if (_response.error.reason === "status-code") {
331
+ switch (_response.error.statusCode) {
332
+ case 400:
333
+ throw new phenoml.workflows.BadRequestError(_response.error.body, _response.rawResponse);
334
+ case 401:
335
+ throw new phenoml.workflows.UnauthorizedError(_response.error.body, _response.rawResponse);
336
+ case 403:
337
+ throw new phenoml.workflows.ForbiddenError(_response.error.body, _response.rawResponse);
338
+ case 404:
339
+ throw new phenoml.workflows.NotFoundError(_response.error.body, _response.rawResponse);
340
+ case 500:
341
+ throw new phenoml.workflows.InternalServerError(_response.error.body, _response.rawResponse);
342
+ default:
343
+ throw new errors.phenomlError({
344
+ statusCode: _response.error.statusCode,
345
+ body: _response.error.body,
346
+ rawResponse: _response.rawResponse,
347
+ });
348
+ }
349
+ }
350
+ switch (_response.error.reason) {
351
+ case "non-json":
352
+ throw new errors.phenomlError({
353
+ statusCode: _response.error.statusCode,
354
+ body: _response.error.rawBody,
355
+ rawResponse: _response.rawResponse,
356
+ });
357
+ case "timeout":
358
+ throw new errors.phenomlTimeoutError("Timeout exceeded when calling PUT /workflows/{id}.");
359
+ case "unknown":
360
+ throw new errors.phenomlError({
361
+ message: _response.error.errorMessage,
362
+ rawResponse: _response.rawResponse,
363
+ });
364
+ }
365
+ });
366
+ }
367
+ /**
368
+ * Deletes a workflow definition by its ID
369
+ *
370
+ * @param {string} id - ID of the workflow to delete
371
+ * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
372
+ *
373
+ * @throws {@link phenoml.workflows.UnauthorizedError}
374
+ * @throws {@link phenoml.workflows.ForbiddenError}
375
+ * @throws {@link phenoml.workflows.NotFoundError}
376
+ * @throws {@link phenoml.workflows.InternalServerError}
377
+ *
378
+ * @example
379
+ * await client.workflows.workflows.delete("id")
380
+ */
381
+ delete(id, requestOptions) {
382
+ return core.HttpResponsePromise.fromPromise(this.__delete(id, requestOptions));
383
+ }
384
+ __delete(id, requestOptions) {
385
+ return __awaiter(this, void 0, void 0, function* () {
386
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
387
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
388
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
389
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `workflows/${encodeURIComponent(id)}`),
390
+ method: "DELETE",
391
+ headers: _headers,
392
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
393
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
394
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
395
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
396
+ });
397
+ if (_response.ok) {
398
+ return {
399
+ data: _response.body,
400
+ rawResponse: _response.rawResponse,
401
+ };
402
+ }
403
+ if (_response.error.reason === "status-code") {
404
+ switch (_response.error.statusCode) {
405
+ case 401:
406
+ throw new phenoml.workflows.UnauthorizedError(_response.error.body, _response.rawResponse);
407
+ case 403:
408
+ throw new phenoml.workflows.ForbiddenError(_response.error.body, _response.rawResponse);
409
+ case 404:
410
+ throw new phenoml.workflows.NotFoundError(_response.error.body, _response.rawResponse);
411
+ case 500:
412
+ throw new phenoml.workflows.InternalServerError(_response.error.body, _response.rawResponse);
413
+ default:
414
+ throw new errors.phenomlError({
415
+ statusCode: _response.error.statusCode,
416
+ body: _response.error.body,
417
+ rawResponse: _response.rawResponse,
418
+ });
419
+ }
420
+ }
421
+ switch (_response.error.reason) {
422
+ case "non-json":
423
+ throw new errors.phenomlError({
424
+ statusCode: _response.error.statusCode,
425
+ body: _response.error.rawBody,
426
+ rawResponse: _response.rawResponse,
427
+ });
428
+ case "timeout":
429
+ throw new errors.phenomlTimeoutError("Timeout exceeded when calling DELETE /workflows/{id}.");
430
+ case "unknown":
431
+ throw new errors.phenomlError({
432
+ message: _response.error.errorMessage,
433
+ rawResponse: _response.rawResponse,
434
+ });
435
+ }
436
+ });
437
+ }
438
+ /**
439
+ * Executes a workflow with provided input data and returns results
440
+ *
441
+ * @param {string} id - ID of the workflow to execute
442
+ * @param {phenoml.workflows.ExecuteWorkflowRequest} request
443
+ * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
444
+ *
445
+ * @throws {@link phenoml.workflows.BadRequestError}
446
+ * @throws {@link phenoml.workflows.UnauthorizedError}
447
+ * @throws {@link phenoml.workflows.ForbiddenError}
448
+ * @throws {@link phenoml.workflows.NotFoundError}
449
+ * @throws {@link phenoml.workflows.InternalServerError}
450
+ *
451
+ * @example
452
+ * await client.workflows.workflows.execute("id", {
453
+ * input_data: {
454
+ * "patient_last_name": "Johnson",
455
+ * "patient_first_name": "Mary",
456
+ * "diagnosis_code": "M79.3",
457
+ * "encounter_date": "2024-01-15"
458
+ * }
459
+ * })
460
+ */
461
+ execute(id, request, requestOptions) {
462
+ return core.HttpResponsePromise.fromPromise(this.__execute(id, request, requestOptions));
463
+ }
464
+ __execute(id, request, requestOptions) {
465
+ return __awaiter(this, void 0, void 0, function* () {
466
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
467
+ let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
468
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
469
+ url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `workflows/${encodeURIComponent(id)}/execute`),
470
+ method: "POST",
471
+ headers: _headers,
472
+ contentType: "application/json",
473
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
474
+ requestType: "json",
475
+ body: request,
476
+ timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
477
+ maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
478
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
479
+ });
480
+ if (_response.ok) {
481
+ return {
482
+ data: _response.body,
483
+ rawResponse: _response.rawResponse,
484
+ };
485
+ }
486
+ if (_response.error.reason === "status-code") {
487
+ switch (_response.error.statusCode) {
488
+ case 400:
489
+ throw new phenoml.workflows.BadRequestError(_response.error.body, _response.rawResponse);
490
+ case 401:
491
+ throw new phenoml.workflows.UnauthorizedError(_response.error.body, _response.rawResponse);
492
+ case 403:
493
+ throw new phenoml.workflows.ForbiddenError(_response.error.body, _response.rawResponse);
494
+ case 404:
495
+ throw new phenoml.workflows.NotFoundError(_response.error.body, _response.rawResponse);
496
+ case 500:
497
+ throw new phenoml.workflows.InternalServerError(_response.error.body, _response.rawResponse);
498
+ default:
499
+ throw new errors.phenomlError({
500
+ statusCode: _response.error.statusCode,
501
+ body: _response.error.body,
502
+ rawResponse: _response.rawResponse,
503
+ });
504
+ }
505
+ }
506
+ switch (_response.error.reason) {
507
+ case "non-json":
508
+ throw new errors.phenomlError({
509
+ statusCode: _response.error.statusCode,
510
+ body: _response.error.rawBody,
511
+ rawResponse: _response.rawResponse,
512
+ });
513
+ case "timeout":
514
+ throw new errors.phenomlTimeoutError("Timeout exceeded when calling POST /workflows/{id}/execute.");
515
+ case "unknown":
516
+ throw new errors.phenomlError({
517
+ message: _response.error.errorMessage,
518
+ rawResponse: _response.rawResponse,
519
+ });
520
+ }
521
+ });
522
+ }
523
+ _getAuthorizationHeader() {
524
+ return __awaiter(this, void 0, void 0, function* () {
525
+ const bearer = yield core.Supplier.get(this._options.token);
526
+ if (bearer != null) {
527
+ return `Bearer ${bearer}`;
528
+ }
529
+ return undefined;
530
+ });
531
+ }
532
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1,2 @@
1
+ export {};
2
+ export * from "./requests/index.mjs";
@@ -0,0 +1,40 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * verbose: true,
5
+ * name: "Patient Data Mapping Workflow",
6
+ * workflow_instructions: "Given diagnosis data, find the patient and create condition record",
7
+ * sample_data: {
8
+ * "patient_last_name": "Rippin",
9
+ * "patient_first_name": "Clay",
10
+ * "diagnosis_code": "I10"
11
+ * },
12
+ * fhir_provider_id: "550e8400-e29b-41d4-a716-446655440000"
13
+ * }
14
+ */
15
+ export interface CreateWorkflowRequest {
16
+ /** If true, includes full workflow implementation details in workflow_details field */
17
+ verbose?: boolean;
18
+ /** Human-readable name for the workflow */
19
+ name: string;
20
+ /** Natural language instructions that define the workflow logic */
21
+ workflow_instructions: string;
22
+ /** Sample data to use for workflow graph generation */
23
+ sample_data: Record<string, unknown>;
24
+ /** FHIR provider ID(s) - must be valid UUID(s) from existing FHIR providers */
25
+ fhir_provider_id: CreateWorkflowRequest.FhirProviderId;
26
+ /** Enable dynamic lang2fhir calls instead of pre-populated templates */
27
+ dynamic_generation?: boolean;
28
+ }
29
+ export declare namespace CreateWorkflowRequest {
30
+ /**
31
+ * FHIR provider ID(s) - must be valid UUID(s) from existing FHIR providers
32
+ */
33
+ type FhirProviderId =
34
+ /**
35
+ * Single FHIR provider ID */
36
+ string
37
+ /**
38
+ * Multiple FHIR provider IDs */
39
+ | string[];
40
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * input_data: {
5
+ * "patient_last_name": "Johnson",
6
+ * "patient_first_name": "Mary",
7
+ * "diagnosis_code": "M79.3",
8
+ * "encounter_date": "2024-01-15"
9
+ * }
10
+ * }
11
+ */
12
+ export interface ExecuteWorkflowRequest {
13
+ /** Input data for workflow execution */
14
+ input_data: Record<string, unknown>;
15
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,40 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * verbose: true,
5
+ * name: "Updated Patient Data Mapping Workflow",
6
+ * workflow_instructions: "Given diagnosis data, find the patient and create condition record",
7
+ * sample_data: {
8
+ * "patient_last_name": "Smith",
9
+ * "patient_first_name": "John",
10
+ * "diagnosis_code": "E11"
11
+ * },
12
+ * fhir_provider_id: "550e8400-e29b-41d4-a716-446655440000"
13
+ * }
14
+ */
15
+ export interface UpdateWorkflowRequest {
16
+ /** If true, includes full workflow implementation details in workflow_details field */
17
+ verbose?: boolean;
18
+ /** Human-readable name for the workflow */
19
+ name: string;
20
+ /** Natural language instructions that define the workflow logic */
21
+ workflow_instructions: string;
22
+ /** Sample data to use for workflow graph generation */
23
+ sample_data: Record<string, unknown>;
24
+ /** FHIR provider ID(s) - must be valid UUID(s) from existing FHIR providers */
25
+ fhir_provider_id: UpdateWorkflowRequest.FhirProviderId;
26
+ /** Enable dynamic lang2fhir calls instead of pre-populated templates */
27
+ dynamic_generation?: boolean;
28
+ }
29
+ export declare namespace UpdateWorkflowRequest {
30
+ /**
31
+ * FHIR provider ID(s) - must be valid UUID(s) from existing FHIR providers
32
+ */
33
+ type FhirProviderId =
34
+ /**
35
+ * Single FHIR provider ID */
36
+ string
37
+ /**
38
+ * Multiple FHIR provider IDs */
39
+ | string[];
40
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * verbose: true
5
+ * }
6
+ */
7
+ export interface WorkflowsGetRequest {
8
+ /** If true, includes full workflow implementation details in workflow_details field */
9
+ verbose?: boolean;
10
+ }