phenoml 0.0.3 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (908) hide show
  1. package/dist/cjs/BaseClient.d.ts +27 -0
  2. package/dist/cjs/{api/resources/agent/client/requests/AgentUpdateRequest.js → BaseClient.js} +1 -3
  3. package/dist/cjs/Client.d.ts +13 -25
  4. package/dist/cjs/Client.js +23 -10
  5. package/dist/cjs/api/index.d.ts +1 -0
  6. package/dist/cjs/api/index.js +1 -0
  7. package/dist/cjs/api/resources/agent/client/Client.d.ts +20 -30
  8. package/dist/cjs/api/resources/agent/client/Client.js +48 -36
  9. package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.d.ts +0 -6
  10. package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.js +1 -3
  11. package/dist/cjs/api/resources/agent/client/requests/AgentGetChatMessagesRequest.d.ts +4 -4
  12. package/dist/cjs/api/resources/agent/client/requests/AgentGetChatMessagesRequest.js +1 -3
  13. package/dist/cjs/api/resources/agent/client/requests/AgentListRequest.d.ts +4 -4
  14. package/dist/cjs/api/resources/agent/client/requests/AgentListRequest.js +1 -3
  15. package/dist/cjs/api/resources/agent/client/requests/index.d.ts +0 -2
  16. package/dist/cjs/api/resources/agent/errors/BadRequestError.d.ts +0 -3
  17. package/dist/cjs/api/resources/agent/errors/BadRequestError.js +1 -3
  18. package/dist/cjs/api/resources/agent/errors/ForbiddenError.d.ts +0 -3
  19. package/dist/cjs/api/resources/agent/errors/ForbiddenError.js +1 -3
  20. package/dist/cjs/api/resources/agent/errors/InternalServerError.d.ts +0 -3
  21. package/dist/cjs/api/resources/agent/errors/InternalServerError.js +1 -3
  22. package/dist/cjs/api/resources/agent/errors/NotFoundError.d.ts +0 -3
  23. package/dist/cjs/api/resources/agent/errors/NotFoundError.js +1 -3
  24. package/dist/cjs/api/resources/agent/errors/UnauthorizedError.d.ts +0 -3
  25. package/dist/cjs/api/resources/agent/errors/UnauthorizedError.js +1 -3
  26. package/dist/cjs/api/resources/agent/resources/prompts/client/Client.d.ts +5 -25
  27. package/dist/cjs/api/resources/agent/resources/prompts/client/Client.js +28 -26
  28. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.d.ts +0 -3
  29. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.js +1 -3
  30. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.d.ts +0 -3
  31. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.js +1 -3
  32. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.d.ts +0 -3
  33. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.js +1 -3
  34. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsListResponse.d.ts +0 -3
  35. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsListResponse.js +1 -3
  36. package/dist/cjs/api/resources/agent/types/AgentChatResponse.d.ts +0 -3
  37. package/dist/cjs/api/resources/agent/types/AgentChatResponse.js +1 -3
  38. package/dist/cjs/api/resources/agent/types/AgentCreateRequest.d.ts +28 -0
  39. package/dist/cjs/api/resources/agent/{client/requests → types}/AgentCreateRequest.js +1 -3
  40. package/dist/cjs/api/resources/agent/types/AgentDeleteResponse.d.ts +0 -3
  41. package/dist/cjs/api/resources/agent/types/AgentDeleteResponse.js +1 -3
  42. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.ts +1 -4
  43. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestOrder.js +1 -3
  44. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesResponse.d.ts +0 -3
  45. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesResponse.js +1 -3
  46. package/dist/cjs/api/resources/agent/types/AgentListResponse.d.ts +0 -3
  47. package/dist/cjs/api/resources/agent/types/AgentListResponse.js +1 -3
  48. package/dist/cjs/api/resources/agent/types/AgentPromptsResponse.d.ts +0 -3
  49. package/dist/cjs/api/resources/agent/types/AgentPromptsResponse.js +1 -3
  50. package/dist/cjs/api/resources/agent/types/AgentResponse.d.ts +0 -3
  51. package/dist/cjs/api/resources/agent/types/AgentResponse.js +1 -3
  52. package/dist/cjs/api/resources/agent/types/AgentTemplate.d.ts +14 -7
  53. package/dist/cjs/api/resources/agent/types/AgentTemplate.js +1 -3
  54. package/dist/cjs/api/resources/agent/types/ChatMessageTemplate.d.ts +0 -3
  55. package/dist/cjs/api/resources/agent/types/ChatMessageTemplate.js +1 -3
  56. package/dist/cjs/api/resources/agent/types/ChatSessionTemplate.d.ts +0 -3
  57. package/dist/cjs/api/resources/agent/types/ChatSessionTemplate.js +1 -3
  58. package/dist/cjs/api/resources/agent/types/JsonPatch.d.ts +0 -3
  59. package/dist/cjs/api/resources/agent/types/JsonPatch.js +1 -3
  60. package/dist/cjs/api/resources/agent/types/JsonPatchOperation.d.ts +3 -7
  61. package/dist/cjs/api/resources/agent/types/JsonPatchOperation.js +2 -3
  62. package/dist/cjs/api/resources/agent/types/PromptTemplate.d.ts +0 -3
  63. package/dist/cjs/api/resources/agent/types/PromptTemplate.js +1 -3
  64. package/dist/cjs/api/resources/agent/types/SuccessResponse.d.ts +0 -3
  65. package/dist/cjs/api/resources/agent/types/SuccessResponse.js +1 -3
  66. package/dist/cjs/api/resources/agent/types/index.d.ts +1 -4
  67. package/dist/cjs/api/resources/agent/types/index.js +1 -4
  68. package/dist/cjs/api/resources/authtoken/client/Client.d.ts +3 -14
  69. package/dist/cjs/api/resources/authtoken/client/Client.js +2 -4
  70. package/dist/cjs/api/resources/authtoken/errors/BadRequestError.d.ts +0 -3
  71. package/dist/cjs/api/resources/authtoken/errors/BadRequestError.js +1 -3
  72. package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.d.ts +0 -3
  73. package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.js +1 -3
  74. package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.d.ts +2 -2
  75. package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.js +1 -1
  76. package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.d.ts +0 -3
  77. package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.js +1 -3
  78. package/dist/cjs/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.d.ts +0 -3
  79. package/dist/cjs/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.js +1 -3
  80. package/dist/cjs/api/resources/authtoken/types/BadRequestErrorBody.d.ts +0 -3
  81. package/dist/cjs/api/resources/authtoken/types/BadRequestErrorBody.js +1 -3
  82. package/dist/cjs/api/resources/authtoken/types/UnauthorizedErrorBody.d.ts +0 -3
  83. package/dist/cjs/api/resources/authtoken/types/UnauthorizedErrorBody.js +1 -3
  84. package/dist/cjs/api/resources/cohort/client/Client.d.ts +5 -25
  85. package/dist/cjs/api/resources/cohort/client/Client.js +10 -8
  86. package/dist/cjs/api/resources/cohort/client/requests/CohortRequest.d.ts +0 -3
  87. package/dist/cjs/api/resources/cohort/client/requests/CohortRequest.js +1 -3
  88. package/dist/cjs/api/resources/cohort/errors/BadRequestError.d.ts +0 -3
  89. package/dist/cjs/api/resources/cohort/errors/BadRequestError.js +1 -3
  90. package/dist/cjs/api/resources/cohort/errors/InternalServerError.d.ts +0 -3
  91. package/dist/cjs/api/resources/cohort/errors/InternalServerError.js +1 -3
  92. package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.d.ts +0 -3
  93. package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.js +1 -3
  94. package/dist/cjs/api/resources/cohort/types/CohortResponse.d.ts +0 -3
  95. package/dist/cjs/api/resources/cohort/types/CohortResponse.js +1 -3
  96. package/dist/cjs/api/resources/cohort/types/SearchConcept.d.ts +0 -3
  97. package/dist/cjs/api/resources/cohort/types/SearchConcept.js +1 -3
  98. package/dist/cjs/api/resources/construe/client/Client.d.ts +5 -25
  99. package/dist/cjs/api/resources/construe/client/Client.js +16 -14
  100. package/dist/cjs/api/resources/construe/client/requests/ConstrueCohortRequest.d.ts +0 -3
  101. package/dist/cjs/api/resources/construe/client/requests/ConstrueCohortRequest.js +1 -3
  102. package/dist/cjs/api/resources/construe/client/requests/ExtractRequest.d.ts +0 -3
  103. package/dist/cjs/api/resources/construe/client/requests/ExtractRequest.js +1 -3
  104. package/dist/cjs/api/resources/construe/client/requests/UploadRequest.d.ts +2 -7
  105. package/dist/cjs/api/resources/construe/client/requests/UploadRequest.js +2 -3
  106. package/dist/cjs/api/resources/construe/errors/BadRequestError.d.ts +0 -3
  107. package/dist/cjs/api/resources/construe/errors/BadRequestError.js +1 -3
  108. package/dist/cjs/api/resources/construe/errors/ConflictError.d.ts +0 -3
  109. package/dist/cjs/api/resources/construe/errors/ConflictError.js +1 -3
  110. package/dist/cjs/api/resources/construe/errors/FailedDependencyError.d.ts +0 -3
  111. package/dist/cjs/api/resources/construe/errors/FailedDependencyError.js +1 -3
  112. package/dist/cjs/api/resources/construe/errors/InternalServerError.d.ts +0 -3
  113. package/dist/cjs/api/resources/construe/errors/InternalServerError.js +1 -3
  114. package/dist/cjs/api/resources/construe/errors/UnauthorizedError.d.ts +0 -3
  115. package/dist/cjs/api/resources/construe/errors/UnauthorizedError.js +1 -3
  116. package/dist/cjs/api/resources/construe/types/BadRequestErrorBody.d.ts +0 -3
  117. package/dist/cjs/api/resources/construe/types/BadRequestErrorBody.js +1 -3
  118. package/dist/cjs/api/resources/construe/types/ConstrueCohortResponse.d.ts +0 -3
  119. package/dist/cjs/api/resources/construe/types/ConstrueCohortResponse.js +1 -3
  120. package/dist/cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.ts +0 -3
  121. package/dist/cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.js +1 -3
  122. package/dist/cjs/api/resources/construe/types/ExtractCodesResult.d.ts +0 -3
  123. package/dist/cjs/api/resources/construe/types/ExtractCodesResult.js +1 -3
  124. package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.d.ts +1 -4
  125. package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.js +1 -3
  126. package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.d.ts +0 -3
  127. package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.js +1 -3
  128. package/dist/cjs/api/resources/construe/types/ExtractedCodeResult.d.ts +0 -3
  129. package/dist/cjs/api/resources/construe/types/ExtractedCodeResult.js +1 -3
  130. package/dist/cjs/api/resources/construe/types/InternalServerErrorBody.d.ts +0 -3
  131. package/dist/cjs/api/resources/construe/types/InternalServerErrorBody.js +1 -3
  132. package/dist/cjs/api/resources/construe/types/UnauthorizedErrorBody.d.ts +0 -3
  133. package/dist/cjs/api/resources/construe/types/UnauthorizedErrorBody.js +1 -3
  134. package/dist/cjs/api/resources/fhir/client/Client.d.ts +294 -0
  135. package/dist/cjs/api/resources/fhir/client/Client.js +693 -0
  136. package/dist/cjs/api/resources/fhir/client/index.d.ts +2 -0
  137. package/dist/cjs/api/resources/fhir/client/index.js +17 -0
  138. package/dist/cjs/api/resources/fhir/client/requests/FhirCreateRequest.d.ts +25 -0
  139. package/dist/cjs/api/resources/{agent/types/AgentFhirConfig.js → fhir/client/requests/FhirCreateRequest.js} +1 -3
  140. package/dist/cjs/api/resources/fhir/client/requests/FhirDeleteRequest.d.ts +10 -0
  141. package/dist/cjs/api/resources/{agent/types/AgentProvider.js → fhir/client/requests/FhirDeleteRequest.js} +1 -3
  142. package/dist/cjs/api/resources/fhir/client/requests/FhirExecuteBundleRequest.d.ts +44 -0
  143. package/dist/cjs/api/resources/fhir/client/requests/FhirExecuteBundleRequest.js +3 -0
  144. package/dist/cjs/api/resources/fhir/client/requests/FhirPatchRequest.d.ts +66 -0
  145. package/dist/cjs/api/resources/fhir/client/requests/FhirPatchRequest.js +3 -0
  146. package/dist/cjs/api/resources/fhir/client/requests/FhirSearchRequest.d.ts +23 -0
  147. package/dist/cjs/api/resources/fhir/client/requests/FhirSearchRequest.js +3 -0
  148. package/dist/cjs/api/resources/fhir/client/requests/FhirUpsertRequest.d.ts +27 -0
  149. package/dist/cjs/api/resources/fhir/client/requests/FhirUpsertRequest.js +3 -0
  150. package/dist/cjs/api/resources/fhir/client/requests/index.d.ts +6 -0
  151. package/dist/cjs/api/resources/fhir/client/requests/index.js +2 -0
  152. package/dist/cjs/api/resources/fhir/errors/BadRequestError.d.ts +5 -0
  153. package/dist/cjs/api/resources/fhir/errors/BadRequestError.js +50 -0
  154. package/dist/cjs/api/resources/fhir/errors/InternalServerError.d.ts +5 -0
  155. package/dist/cjs/api/resources/fhir/errors/InternalServerError.js +50 -0
  156. package/dist/cjs/api/resources/fhir/errors/NotFoundError.d.ts +5 -0
  157. package/dist/cjs/api/resources/fhir/errors/NotFoundError.js +50 -0
  158. package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.d.ts +5 -0
  159. package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.js +50 -0
  160. package/dist/cjs/api/resources/fhir/errors/index.d.ts +4 -0
  161. package/dist/cjs/api/resources/fhir/errors/index.js +20 -0
  162. package/dist/cjs/api/resources/fhir/index.d.ts +3 -0
  163. package/dist/cjs/api/resources/fhir/index.js +19 -0
  164. package/dist/cjs/api/resources/fhir/types/ErrorResponse.d.ts +11 -0
  165. package/dist/cjs/api/resources/fhir/types/ErrorResponse.js +3 -0
  166. package/dist/cjs/api/resources/fhir/types/FhirBundle.d.ts +54 -0
  167. package/dist/cjs/api/resources/fhir/types/FhirBundle.js +23 -0
  168. package/dist/cjs/api/resources/fhir/types/FhirPatchRequestBodyItem.d.ts +22 -0
  169. package/dist/cjs/api/resources/fhir/types/FhirPatchRequestBodyItem.js +16 -0
  170. package/dist/cjs/api/resources/fhir/types/FhirResource.d.ts +24 -0
  171. package/dist/cjs/api/resources/fhir/types/FhirResource.js +3 -0
  172. package/dist/cjs/api/resources/fhir/types/FhirSearchResponse.d.ts +2 -0
  173. package/dist/cjs/api/resources/fhir/types/FhirSearchResponse.js +3 -0
  174. package/dist/cjs/api/resources/fhir/types/index.d.ts +5 -0
  175. package/dist/cjs/api/resources/fhir/types/index.js +21 -0
  176. package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +141 -0
  177. package/dist/cjs/api/resources/fhirProvider/client/Client.js +594 -0
  178. package/dist/cjs/api/resources/fhirProvider/client/index.d.ts +2 -0
  179. package/dist/cjs/api/resources/fhirProvider/client/index.js +17 -0
  180. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.d.ts +17 -0
  181. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.js +3 -0
  182. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.d.ts +27 -0
  183. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.js +3 -0
  184. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.d.ts +10 -0
  185. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.js +3 -0
  186. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.d.ts +10 -0
  187. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.js +3 -0
  188. package/dist/cjs/api/resources/fhirProvider/client/requests/index.d.ts +4 -0
  189. package/dist/cjs/api/resources/fhirProvider/client/requests/index.js +2 -0
  190. package/dist/cjs/api/resources/fhirProvider/errors/BadRequestError.d.ts +5 -0
  191. package/dist/cjs/api/resources/fhirProvider/errors/BadRequestError.js +50 -0
  192. package/dist/cjs/api/resources/fhirProvider/errors/ForbiddenError.d.ts +5 -0
  193. package/dist/cjs/api/resources/fhirProvider/errors/ForbiddenError.js +50 -0
  194. package/dist/cjs/api/resources/fhirProvider/errors/InternalServerError.d.ts +5 -0
  195. package/dist/cjs/api/resources/fhirProvider/errors/InternalServerError.js +50 -0
  196. package/dist/cjs/api/resources/fhirProvider/errors/NotFoundError.d.ts +5 -0
  197. package/dist/cjs/api/resources/fhirProvider/errors/NotFoundError.js +50 -0
  198. package/dist/cjs/api/resources/fhirProvider/errors/UnauthorizedError.d.ts +5 -0
  199. package/dist/cjs/api/resources/fhirProvider/errors/UnauthorizedError.js +50 -0
  200. package/dist/cjs/api/resources/fhirProvider/errors/index.d.ts +5 -0
  201. package/dist/cjs/api/resources/fhirProvider/errors/index.js +21 -0
  202. package/dist/cjs/api/resources/fhirProvider/index.d.ts +3 -0
  203. package/dist/cjs/api/resources/fhirProvider/index.js +19 -0
  204. package/dist/cjs/api/resources/fhirProvider/types/AuthMethod.d.ts +9 -0
  205. package/dist/cjs/api/resources/fhirProvider/types/AuthMethod.js +12 -0
  206. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderAuthConfig.d.ts +19 -0
  207. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderAuthConfig.js +3 -0
  208. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.ts +4 -0
  209. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderDeleteResponse.js +3 -0
  210. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderListResponse.d.ts +6 -0
  211. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderListResponse.js +3 -0
  212. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.d.ts +6 -0
  213. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.js +3 -0
  214. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderResponse.d.ts +6 -0
  215. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderResponse.js +3 -0
  216. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.d.ts +6 -0
  217. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.js +3 -0
  218. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderTemplate.d.ts +22 -0
  219. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderTemplate.js +3 -0
  220. package/dist/cjs/api/resources/fhirProvider/types/FhirQueryResponse.d.ts +16 -0
  221. package/dist/cjs/api/resources/fhirProvider/types/FhirQueryResponse.js +3 -0
  222. package/dist/cjs/api/resources/fhirProvider/types/JsonWebKey.d.ts +17 -0
  223. package/dist/cjs/api/resources/fhirProvider/types/JsonWebKey.js +3 -0
  224. package/dist/cjs/api/resources/fhirProvider/types/Provider.d.ts +12 -0
  225. package/dist/cjs/api/resources/fhirProvider/types/Provider.js +15 -0
  226. package/dist/cjs/api/resources/fhirProvider/types/ServiceAccountKey.d.ts +16 -0
  227. package/dist/cjs/api/resources/fhirProvider/types/ServiceAccountKey.js +3 -0
  228. package/dist/cjs/api/resources/fhirProvider/types/SmartConfiguration.d.ts +15 -0
  229. package/dist/cjs/api/resources/fhirProvider/types/SmartConfiguration.js +3 -0
  230. package/dist/cjs/api/resources/fhirProvider/types/index.d.ts +13 -0
  231. package/dist/cjs/api/resources/fhirProvider/types/index.js +29 -0
  232. package/dist/cjs/api/resources/index.d.ts +3 -0
  233. package/dist/cjs/api/resources/index.js +4 -1
  234. package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +5 -25
  235. package/dist/cjs/api/resources/lang2Fhir/client/Client.js +19 -17
  236. package/dist/cjs/api/resources/lang2Fhir/client/requests/CreateRequest.d.ts +2 -7
  237. package/dist/cjs/api/resources/lang2Fhir/client/requests/CreateRequest.js +2 -3
  238. package/dist/cjs/api/resources/lang2Fhir/client/requests/DocumentRequest.d.ts +4 -11
  239. package/dist/cjs/api/resources/lang2Fhir/client/requests/DocumentRequest.js +3 -3
  240. package/dist/cjs/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.d.ts +0 -3
  241. package/dist/cjs/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.js +1 -3
  242. package/dist/cjs/api/resources/lang2Fhir/client/requests/SearchRequest.d.ts +0 -3
  243. package/dist/cjs/api/resources/lang2Fhir/client/requests/SearchRequest.js +1 -3
  244. package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.d.ts +0 -3
  245. package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.js +1 -3
  246. package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.d.ts +0 -3
  247. package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.js +1 -3
  248. package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.d.ts +0 -3
  249. package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.js +1 -3
  250. package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.d.ts +0 -3
  251. package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.js +1 -3
  252. package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.d.ts +0 -3
  253. package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.js +1 -3
  254. package/dist/cjs/api/resources/lang2Fhir/types/FhirResource.d.ts +0 -3
  255. package/dist/cjs/api/resources/lang2Fhir/types/FhirResource.js +1 -3
  256. package/dist/cjs/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.ts +0 -3
  257. package/dist/cjs/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.js +1 -3
  258. package/dist/cjs/api/resources/lang2Fhir/types/SearchResponse.d.ts +0 -3
  259. package/dist/cjs/api/resources/lang2Fhir/types/SearchResponse.js +1 -3
  260. package/dist/cjs/api/resources/tools/client/Client.d.ts +6 -26
  261. package/dist/cjs/api/resources/tools/client/Client.js +17 -15
  262. package/dist/cjs/api/resources/tools/client/requests/CohortRequest.d.ts +3 -20
  263. package/dist/cjs/api/resources/tools/client/requests/CohortRequest.js +1 -13
  264. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.ts +4 -21
  265. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.js +2 -9
  266. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.ts +2 -19
  267. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.js +1 -13
  268. package/dist/cjs/api/resources/tools/errors/BadRequestError.d.ts +0 -3
  269. package/dist/cjs/api/resources/tools/errors/BadRequestError.js +1 -3
  270. package/dist/cjs/api/resources/tools/errors/FailedDependencyError.d.ts +0 -3
  271. package/dist/cjs/api/resources/tools/errors/FailedDependencyError.js +1 -3
  272. package/dist/cjs/api/resources/tools/errors/ForbiddenError.d.ts +0 -3
  273. package/dist/cjs/api/resources/tools/errors/ForbiddenError.js +1 -3
  274. package/dist/cjs/api/resources/tools/errors/InternalServerError.d.ts +0 -3
  275. package/dist/cjs/api/resources/tools/errors/InternalServerError.js +1 -3
  276. package/dist/cjs/api/resources/tools/errors/UnauthorizedError.d.ts +0 -3
  277. package/dist/cjs/api/resources/tools/errors/UnauthorizedError.js +1 -3
  278. package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.d.ts +5 -25
  279. package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.js +19 -17
  280. package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.d.ts +0 -3
  281. package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.js +1 -3
  282. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.ts +5 -25
  283. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +19 -17
  284. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.ts +0 -3
  285. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.js +1 -3
  286. package/dist/cjs/api/resources/tools/types/CohortResponse.d.ts +0 -3
  287. package/dist/cjs/api/resources/tools/types/CohortResponse.js +1 -3
  288. package/dist/cjs/api/resources/tools/types/Lang2FhirAndCreateResponse.d.ts +0 -3
  289. package/dist/cjs/api/resources/tools/types/Lang2FhirAndCreateResponse.js +1 -3
  290. package/dist/cjs/api/resources/tools/types/Lang2FhirAndSearchResponse.d.ts +0 -3
  291. package/dist/cjs/api/resources/tools/types/Lang2FhirAndSearchResponse.js +1 -3
  292. package/dist/cjs/api/resources/tools/types/McpServerResponse.d.ts +0 -3
  293. package/dist/cjs/api/resources/tools/types/McpServerResponse.js +1 -3
  294. package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.d.ts +0 -3
  295. package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.js +1 -3
  296. package/dist/cjs/api/resources/tools/types/McpServerToolResponse.d.ts +0 -3
  297. package/dist/cjs/api/resources/tools/types/McpServerToolResponse.js +1 -3
  298. package/dist/cjs/api/resources/tools/types/SearchConcept.d.ts +0 -3
  299. package/dist/cjs/api/resources/tools/types/SearchConcept.js +1 -3
  300. package/dist/cjs/api/resources/tools/types/index.d.ts +0 -1
  301. package/dist/cjs/api/resources/tools/types/index.js +0 -1
  302. package/dist/cjs/api/resources/workflows/client/Client.d.ts +43 -0
  303. package/dist/cjs/api/resources/workflows/client/Client.js +222 -0
  304. package/dist/cjs/api/resources/workflows/client/index.d.ts +1 -0
  305. package/dist/cjs/api/resources/workflows/client/index.js +2 -0
  306. package/dist/cjs/api/resources/workflows/errors/BadRequestError.d.ts +5 -0
  307. package/dist/cjs/api/resources/workflows/errors/BadRequestError.js +50 -0
  308. package/dist/cjs/api/resources/workflows/errors/ForbiddenError.d.ts +5 -0
  309. package/dist/cjs/api/resources/workflows/errors/ForbiddenError.js +50 -0
  310. package/dist/cjs/api/resources/workflows/errors/InternalServerError.d.ts +5 -0
  311. package/dist/cjs/api/resources/workflows/errors/InternalServerError.js +50 -0
  312. package/dist/cjs/api/resources/workflows/errors/NotFoundError.d.ts +5 -0
  313. package/dist/cjs/api/resources/workflows/errors/NotFoundError.js +50 -0
  314. package/dist/cjs/api/resources/workflows/errors/UnauthorizedError.d.ts +5 -0
  315. package/dist/cjs/api/resources/workflows/errors/UnauthorizedError.js +50 -0
  316. package/dist/cjs/api/resources/workflows/errors/index.d.ts +5 -0
  317. package/dist/cjs/api/resources/workflows/errors/index.js +21 -0
  318. package/dist/cjs/api/resources/workflows/index.d.ts +4 -0
  319. package/dist/cjs/api/resources/workflows/index.js +20 -0
  320. package/dist/cjs/api/resources/workflows/resources/index.d.ts +4 -0
  321. package/dist/cjs/api/resources/workflows/resources/index.js +43 -0
  322. package/dist/cjs/api/resources/workflows/resources/mcpServer/client/Client.d.ts +50 -0
  323. package/dist/cjs/api/resources/workflows/resources/mcpServer/client/Client.js +268 -0
  324. package/dist/cjs/api/resources/workflows/resources/mcpServer/client/index.d.ts +1 -0
  325. package/dist/cjs/api/resources/workflows/resources/mcpServer/client/index.js +2 -0
  326. package/dist/cjs/api/resources/workflows/resources/mcpServer/index.d.ts +2 -0
  327. package/dist/cjs/api/resources/workflows/resources/mcpServer/index.js +18 -0
  328. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/index.d.ts +1 -0
  329. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/index.js +37 -0
  330. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.d.ts +49 -0
  331. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.js +265 -0
  332. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/index.d.ts +1 -0
  333. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/client/index.js +2 -0
  334. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/index.d.ts +1 -0
  335. package/dist/cjs/api/resources/workflows/resources/mcpServer/resources/tools/index.js +17 -0
  336. package/dist/cjs/api/resources/workflows/resources/workflows/client/Client.d.ts +145 -0
  337. package/dist/cjs/api/resources/workflows/resources/workflows/client/Client.js +569 -0
  338. package/dist/cjs/api/resources/workflows/resources/workflows/client/index.d.ts +2 -0
  339. package/dist/cjs/api/resources/workflows/resources/workflows/client/index.js +17 -0
  340. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/CreateWorkflowRequest.d.ts +40 -0
  341. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/CreateWorkflowRequest.js +3 -0
  342. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/ExecuteWorkflowRequest.d.ts +15 -0
  343. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/ExecuteWorkflowRequest.js +3 -0
  344. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/UpdateWorkflowRequest.d.ts +40 -0
  345. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/UpdateWorkflowRequest.js +3 -0
  346. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/WorkflowsGetRequest.d.ts +10 -0
  347. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/WorkflowsGetRequest.js +3 -0
  348. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/WorkflowsListRequest.d.ts +10 -0
  349. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/WorkflowsListRequest.js +3 -0
  350. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/index.d.ts +5 -0
  351. package/dist/cjs/api/resources/workflows/resources/workflows/client/requests/index.js +2 -0
  352. package/dist/cjs/api/resources/workflows/resources/workflows/index.d.ts +2 -0
  353. package/dist/cjs/api/resources/workflows/resources/workflows/index.js +18 -0
  354. package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsDeleteResponse.d.ts +4 -0
  355. package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsDeleteResponse.js +3 -0
  356. package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsGetResponse.d.ts +7 -0
  357. package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsGetResponse.js +3 -0
  358. package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsUpdateResponse.d.ts +9 -0
  359. package/dist/cjs/api/resources/workflows/resources/workflows/types/WorkflowsUpdateResponse.js +3 -0
  360. package/dist/cjs/api/resources/workflows/resources/workflows/types/index.d.ts +3 -0
  361. package/dist/cjs/api/resources/workflows/resources/workflows/types/index.js +19 -0
  362. package/dist/cjs/api/resources/workflows/types/CreateWorkflowResponse.d.ts +13 -0
  363. package/dist/cjs/api/resources/workflows/types/CreateWorkflowResponse.js +3 -0
  364. package/dist/cjs/api/resources/workflows/types/DecisionNodeDefinition.d.ts +8 -0
  365. package/dist/cjs/api/resources/workflows/types/DecisionNodeDefinition.js +3 -0
  366. package/dist/cjs/api/resources/workflows/types/ExecuteWorkflowResponse.d.ts +13 -0
  367. package/dist/cjs/api/resources/workflows/types/ExecuteWorkflowResponse.js +3 -0
  368. package/dist/cjs/api/resources/workflows/types/Lang2FhirCreateDefinition.d.ts +10 -0
  369. package/dist/cjs/api/resources/workflows/types/Lang2FhirCreateDefinition.js +3 -0
  370. package/dist/cjs/api/resources/workflows/types/Lang2FhirSearchDefinition.d.ts +12 -0
  371. package/dist/cjs/api/resources/workflows/types/Lang2FhirSearchDefinition.js +3 -0
  372. package/dist/cjs/api/resources/workflows/types/ListWorkflowsResponse.d.ts +11 -0
  373. package/dist/cjs/api/resources/workflows/types/ListWorkflowsResponse.js +3 -0
  374. package/dist/cjs/api/resources/workflows/types/StepOperation.d.ts +7 -0
  375. package/dist/cjs/api/resources/workflows/types/StepOperation.js +3 -0
  376. package/dist/cjs/api/resources/workflows/types/SubWorkflowDefinition.d.ts +8 -0
  377. package/dist/cjs/api/resources/workflows/types/SubWorkflowDefinition.js +3 -0
  378. package/dist/cjs/api/resources/workflows/types/WorkflowConfig.d.ts +6 -0
  379. package/dist/cjs/api/resources/workflows/types/WorkflowConfig.js +3 -0
  380. package/dist/cjs/api/resources/workflows/types/WorkflowDefinition.d.ts +19 -0
  381. package/dist/cjs/api/resources/workflows/types/WorkflowDefinition.js +3 -0
  382. package/dist/cjs/api/resources/workflows/types/WorkflowGraph.d.ts +5 -0
  383. package/dist/cjs/api/resources/workflows/types/WorkflowGraph.js +3 -0
  384. package/dist/cjs/api/resources/workflows/types/WorkflowResponse.d.ts +28 -0
  385. package/dist/cjs/api/resources/workflows/types/WorkflowResponse.js +3 -0
  386. package/dist/cjs/api/resources/workflows/types/WorkflowStep.d.ts +28 -0
  387. package/dist/cjs/api/resources/workflows/types/WorkflowStep.js +14 -0
  388. package/dist/cjs/api/resources/workflows/types/WorkflowStepSummary.d.ts +25 -0
  389. package/dist/cjs/api/resources/workflows/types/WorkflowStepSummary.js +14 -0
  390. package/dist/cjs/api/resources/workflows/types/index.d.ts +14 -0
  391. package/dist/cjs/api/resources/workflows/types/index.js +30 -0
  392. package/dist/cjs/api/types/CohortResponse.d.ts +1 -0
  393. package/dist/cjs/api/types/CohortResponse.js +3 -0
  394. package/dist/cjs/api/types/Lang2FhirAndCreateResponse.d.ts +1 -0
  395. package/dist/cjs/api/types/Lang2FhirAndCreateResponse.js +3 -0
  396. package/dist/cjs/api/types/Lang2FhirAndSearchResponse.d.ts +1 -0
  397. package/dist/cjs/api/types/Lang2FhirAndSearchResponse.js +3 -0
  398. package/dist/cjs/api/types/McpServerResponse.d.ts +1 -0
  399. package/dist/cjs/api/types/McpServerResponse.js +3 -0
  400. package/dist/cjs/api/types/McpServerToolCallResponse.d.ts +1 -0
  401. package/dist/cjs/api/types/McpServerToolCallResponse.js +3 -0
  402. package/dist/cjs/api/types/McpServerToolResponse.d.ts +1 -0
  403. package/dist/cjs/api/types/McpServerToolResponse.js +3 -0
  404. package/dist/cjs/api/types/SearchConcept.d.ts +1 -0
  405. package/dist/cjs/api/types/SearchConcept.js +3 -0
  406. package/dist/cjs/api/types/index.d.ts +7 -0
  407. package/dist/cjs/api/types/index.js +23 -0
  408. package/dist/cjs/core/auth/AuthProvider.d.ts +1 -1
  409. package/dist/cjs/core/auth/BasicAuth.js +2 -1
  410. package/dist/cjs/core/auth/index.d.ts +2 -2
  411. package/dist/cjs/core/fetcher/APIResponse.d.ts +1 -1
  412. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +1 -1
  413. package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
  414. package/dist/cjs/core/fetcher/EndpointMetadata.js +2 -0
  415. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
  416. package/dist/cjs/core/fetcher/EndpointSupplier.js +22 -0
  417. package/dist/cjs/core/fetcher/Fetcher.d.ts +5 -3
  418. package/dist/cjs/core/fetcher/Fetcher.js +3 -2
  419. package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +1 -1
  420. package/dist/cjs/core/fetcher/index.d.ts +2 -0
  421. package/dist/cjs/core/fetcher/index.js +3 -1
  422. package/dist/cjs/core/fetcher/requestWithRetries.js +44 -8
  423. package/dist/cjs/core/headers.d.ts +2 -3
  424. package/dist/cjs/environments.d.ts +0 -3
  425. package/dist/cjs/environments.js +1 -3
  426. package/dist/cjs/errors/phenomlError.d.ts +0 -3
  427. package/dist/cjs/errors/phenomlError.js +1 -3
  428. package/dist/cjs/errors/phenomlTimeoutError.d.ts +0 -3
  429. package/dist/cjs/errors/phenomlTimeoutError.js +1 -3
  430. package/dist/cjs/version.d.ts +1 -1
  431. package/dist/cjs/version.js +1 -1
  432. package/dist/esm/BaseClient.d.mts +27 -0
  433. package/dist/esm/BaseClient.mjs +3 -0
  434. package/dist/esm/Client.d.mts +13 -25
  435. package/dist/esm/Client.mjs +20 -6
  436. package/dist/esm/WrapperClient.mjs +1 -0
  437. package/dist/esm/api/index.d.mts +1 -0
  438. package/dist/esm/api/index.mjs +1 -0
  439. package/dist/esm/api/resources/agent/client/Client.d.mts +20 -30
  440. package/dist/esm/api/resources/agent/client/Client.mjs +48 -36
  441. package/dist/esm/api/resources/agent/client/index.mjs +1 -0
  442. package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.d.mts +0 -6
  443. package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.mjs +1 -3
  444. package/dist/esm/api/resources/agent/client/requests/AgentGetChatMessagesRequest.d.mts +4 -4
  445. package/dist/esm/api/resources/agent/client/requests/AgentGetChatMessagesRequest.mjs +2 -4
  446. package/dist/esm/api/resources/agent/client/requests/AgentListRequest.d.mts +4 -4
  447. package/dist/esm/api/resources/agent/client/requests/AgentListRequest.mjs +1 -3
  448. package/dist/esm/api/resources/agent/client/requests/index.d.mts +0 -2
  449. package/dist/esm/api/resources/agent/client/requests/index.mjs +3 -1
  450. package/dist/esm/api/resources/agent/errors/BadRequestError.d.mts +0 -3
  451. package/dist/esm/api/resources/agent/errors/BadRequestError.mjs +2 -3
  452. package/dist/esm/api/resources/agent/errors/ForbiddenError.d.mts +0 -3
  453. package/dist/esm/api/resources/agent/errors/ForbiddenError.mjs +2 -3
  454. package/dist/esm/api/resources/agent/errors/InternalServerError.d.mts +0 -3
  455. package/dist/esm/api/resources/agent/errors/InternalServerError.mjs +2 -3
  456. package/dist/esm/api/resources/agent/errors/NotFoundError.d.mts +0 -3
  457. package/dist/esm/api/resources/agent/errors/NotFoundError.mjs +2 -3
  458. package/dist/esm/api/resources/agent/errors/UnauthorizedError.d.mts +0 -3
  459. package/dist/esm/api/resources/agent/errors/UnauthorizedError.mjs +2 -3
  460. package/dist/esm/api/resources/agent/resources/prompts/client/Client.d.mts +5 -25
  461. package/dist/esm/api/resources/agent/resources/prompts/client/Client.mjs +28 -26
  462. package/dist/esm/api/resources/agent/resources/prompts/client/index.mjs +1 -0
  463. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.d.mts +0 -3
  464. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.mjs +1 -3
  465. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.d.mts +0 -3
  466. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.mjs +1 -3
  467. package/dist/esm/api/resources/agent/resources/prompts/client/requests/index.mjs +2 -1
  468. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.d.mts +0 -3
  469. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.mjs +1 -3
  470. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsListResponse.d.mts +0 -3
  471. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsListResponse.mjs +2 -4
  472. package/dist/esm/api/resources/agent/types/AgentChatResponse.d.mts +0 -3
  473. package/dist/esm/api/resources/agent/types/AgentChatResponse.mjs +1 -3
  474. package/dist/esm/api/resources/agent/types/AgentCreateRequest.d.mts +28 -0
  475. package/dist/esm/api/resources/agent/types/AgentCreateRequest.mjs +2 -0
  476. package/dist/esm/api/resources/agent/types/AgentDeleteResponse.d.mts +0 -3
  477. package/dist/esm/api/resources/agent/types/AgentDeleteResponse.mjs +1 -3
  478. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.mts +1 -4
  479. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestOrder.mjs +1 -3
  480. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesResponse.d.mts +0 -3
  481. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesResponse.mjs +2 -4
  482. package/dist/esm/api/resources/agent/types/AgentListResponse.d.mts +0 -3
  483. package/dist/esm/api/resources/agent/types/AgentListResponse.mjs +2 -4
  484. package/dist/esm/api/resources/agent/types/AgentPromptsResponse.d.mts +0 -3
  485. package/dist/esm/api/resources/agent/types/AgentPromptsResponse.mjs +2 -4
  486. package/dist/esm/api/resources/agent/types/AgentResponse.d.mts +0 -3
  487. package/dist/esm/api/resources/agent/types/AgentResponse.mjs +2 -4
  488. package/dist/esm/api/resources/agent/types/AgentTemplate.d.mts +14 -7
  489. package/dist/esm/api/resources/agent/types/AgentTemplate.mjs +1 -3
  490. package/dist/esm/api/resources/agent/types/ChatMessageTemplate.d.mts +0 -3
  491. package/dist/esm/api/resources/agent/types/ChatMessageTemplate.mjs +1 -3
  492. package/dist/esm/api/resources/agent/types/ChatSessionTemplate.d.mts +0 -3
  493. package/dist/esm/api/resources/agent/types/ChatSessionTemplate.mjs +1 -3
  494. package/dist/esm/api/resources/agent/types/JsonPatch.d.mts +0 -3
  495. package/dist/esm/api/resources/agent/types/JsonPatch.mjs +2 -4
  496. package/dist/esm/api/resources/agent/types/JsonPatchOperation.d.mts +3 -7
  497. package/dist/esm/api/resources/agent/types/JsonPatchOperation.mjs +2 -3
  498. package/dist/esm/api/resources/agent/types/PromptTemplate.d.mts +0 -3
  499. package/dist/esm/api/resources/agent/types/PromptTemplate.mjs +1 -3
  500. package/dist/esm/api/resources/agent/types/SuccessResponse.d.mts +0 -3
  501. package/dist/esm/api/resources/agent/types/SuccessResponse.mjs +1 -3
  502. package/dist/esm/api/resources/agent/types/index.d.mts +1 -4
  503. package/dist/esm/api/resources/agent/types/index.mjs +1 -4
  504. package/dist/esm/api/resources/authtoken/client/Client.d.mts +3 -14
  505. package/dist/esm/api/resources/authtoken/client/Client.mjs +4 -4
  506. package/dist/esm/api/resources/authtoken/errors/BadRequestError.d.mts +0 -3
  507. package/dist/esm/api/resources/authtoken/errors/BadRequestError.mjs +2 -3
  508. package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.d.mts +0 -3
  509. package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.mjs +2 -3
  510. package/dist/esm/api/resources/authtoken/resources/auth/client/Client.d.mts +2 -2
  511. package/dist/esm/api/resources/authtoken/resources/auth/client/Client.mjs +1 -1
  512. package/dist/esm/api/resources/authtoken/resources/auth/client/index.mjs +1 -0
  513. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.d.mts +0 -3
  514. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.mjs +1 -3
  515. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/index.mjs +1 -1
  516. package/dist/esm/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.d.mts +0 -3
  517. package/dist/esm/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.mjs +1 -3
  518. package/dist/esm/api/resources/authtoken/types/BadRequestErrorBody.d.mts +0 -3
  519. package/dist/esm/api/resources/authtoken/types/BadRequestErrorBody.mjs +1 -3
  520. package/dist/esm/api/resources/authtoken/types/UnauthorizedErrorBody.d.mts +0 -3
  521. package/dist/esm/api/resources/authtoken/types/UnauthorizedErrorBody.mjs +1 -3
  522. package/dist/esm/api/resources/cohort/client/Client.d.mts +5 -25
  523. package/dist/esm/api/resources/cohort/client/Client.mjs +10 -8
  524. package/dist/esm/api/resources/cohort/client/index.mjs +1 -0
  525. package/dist/esm/api/resources/cohort/client/requests/CohortRequest.d.mts +0 -3
  526. package/dist/esm/api/resources/cohort/client/requests/CohortRequest.mjs +1 -3
  527. package/dist/esm/api/resources/cohort/client/requests/index.mjs +1 -1
  528. package/dist/esm/api/resources/cohort/errors/BadRequestError.d.mts +0 -3
  529. package/dist/esm/api/resources/cohort/errors/BadRequestError.mjs +2 -3
  530. package/dist/esm/api/resources/cohort/errors/InternalServerError.d.mts +0 -3
  531. package/dist/esm/api/resources/cohort/errors/InternalServerError.mjs +2 -3
  532. package/dist/esm/api/resources/cohort/errors/UnauthorizedError.d.mts +0 -3
  533. package/dist/esm/api/resources/cohort/errors/UnauthorizedError.mjs +2 -3
  534. package/dist/esm/api/resources/cohort/types/CohortResponse.d.mts +0 -3
  535. package/dist/esm/api/resources/cohort/types/CohortResponse.mjs +2 -4
  536. package/dist/esm/api/resources/cohort/types/SearchConcept.d.mts +0 -3
  537. package/dist/esm/api/resources/cohort/types/SearchConcept.mjs +1 -3
  538. package/dist/esm/api/resources/construe/client/Client.d.mts +5 -25
  539. package/dist/esm/api/resources/construe/client/Client.mjs +16 -14
  540. package/dist/esm/api/resources/construe/client/index.mjs +1 -0
  541. package/dist/esm/api/resources/construe/client/requests/ConstrueCohortRequest.d.mts +0 -3
  542. package/dist/esm/api/resources/construe/client/requests/ConstrueCohortRequest.mjs +1 -3
  543. package/dist/esm/api/resources/construe/client/requests/ExtractRequest.d.mts +0 -3
  544. package/dist/esm/api/resources/construe/client/requests/ExtractRequest.mjs +2 -4
  545. package/dist/esm/api/resources/construe/client/requests/UploadRequest.d.mts +2 -7
  546. package/dist/esm/api/resources/construe/client/requests/UploadRequest.mjs +2 -3
  547. package/dist/esm/api/resources/construe/client/requests/index.mjs +3 -1
  548. package/dist/esm/api/resources/construe/errors/BadRequestError.d.mts +0 -3
  549. package/dist/esm/api/resources/construe/errors/BadRequestError.mjs +2 -3
  550. package/dist/esm/api/resources/construe/errors/ConflictError.d.mts +0 -3
  551. package/dist/esm/api/resources/construe/errors/ConflictError.mjs +2 -3
  552. package/dist/esm/api/resources/construe/errors/FailedDependencyError.d.mts +0 -3
  553. package/dist/esm/api/resources/construe/errors/FailedDependencyError.mjs +2 -3
  554. package/dist/esm/api/resources/construe/errors/InternalServerError.d.mts +0 -3
  555. package/dist/esm/api/resources/construe/errors/InternalServerError.mjs +2 -3
  556. package/dist/esm/api/resources/construe/errors/UnauthorizedError.d.mts +0 -3
  557. package/dist/esm/api/resources/construe/errors/UnauthorizedError.mjs +2 -3
  558. package/dist/esm/api/resources/construe/types/BadRequestErrorBody.d.mts +0 -3
  559. package/dist/esm/api/resources/construe/types/BadRequestErrorBody.mjs +1 -3
  560. package/dist/esm/api/resources/construe/types/ConstrueCohortResponse.d.mts +0 -3
  561. package/dist/esm/api/resources/construe/types/ConstrueCohortResponse.mjs +1 -3
  562. package/dist/esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.mts +0 -3
  563. package/dist/esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.mjs +1 -3
  564. package/dist/esm/api/resources/construe/types/ExtractCodesResult.d.mts +0 -3
  565. package/dist/esm/api/resources/construe/types/ExtractCodesResult.mjs +2 -4
  566. package/dist/esm/api/resources/construe/types/ExtractRequestConfig.d.mts +1 -4
  567. package/dist/esm/api/resources/construe/types/ExtractRequestConfig.mjs +1 -3
  568. package/dist/esm/api/resources/construe/types/ExtractRequestSystem.d.mts +0 -3
  569. package/dist/esm/api/resources/construe/types/ExtractRequestSystem.mjs +1 -3
  570. package/dist/esm/api/resources/construe/types/ExtractedCodeResult.d.mts +0 -3
  571. package/dist/esm/api/resources/construe/types/ExtractedCodeResult.mjs +1 -3
  572. package/dist/esm/api/resources/construe/types/InternalServerErrorBody.d.mts +0 -3
  573. package/dist/esm/api/resources/construe/types/InternalServerErrorBody.mjs +1 -3
  574. package/dist/esm/api/resources/construe/types/UnauthorizedErrorBody.d.mts +0 -3
  575. package/dist/esm/api/resources/construe/types/UnauthorizedErrorBody.mjs +1 -3
  576. package/dist/esm/api/resources/fhir/client/Client.d.mts +294 -0
  577. package/dist/esm/api/resources/fhir/client/Client.mjs +656 -0
  578. package/dist/esm/api/resources/fhir/client/index.d.mts +2 -0
  579. package/dist/esm/api/resources/fhir/client/index.mjs +2 -0
  580. package/dist/esm/api/resources/fhir/client/requests/FhirCreateRequest.d.mts +25 -0
  581. package/dist/esm/api/resources/fhir/client/requests/FhirCreateRequest.mjs +2 -0
  582. package/dist/esm/api/resources/fhir/client/requests/FhirDeleteRequest.d.mts +10 -0
  583. package/dist/esm/api/resources/fhir/client/requests/FhirDeleteRequest.mjs +2 -0
  584. package/dist/esm/api/resources/fhir/client/requests/FhirExecuteBundleRequest.d.mts +44 -0
  585. package/dist/esm/api/resources/fhir/client/requests/FhirExecuteBundleRequest.mjs +2 -0
  586. package/dist/esm/api/resources/fhir/client/requests/FhirPatchRequest.d.mts +66 -0
  587. package/dist/esm/api/resources/fhir/client/requests/FhirPatchRequest.mjs +2 -0
  588. package/dist/esm/api/resources/fhir/client/requests/FhirSearchRequest.d.mts +23 -0
  589. package/dist/esm/api/resources/fhir/client/requests/FhirSearchRequest.mjs +2 -0
  590. package/dist/esm/api/resources/fhir/client/requests/FhirUpsertRequest.d.mts +27 -0
  591. package/dist/esm/api/resources/fhir/client/requests/FhirUpsertRequest.mjs +2 -0
  592. package/dist/esm/api/resources/fhir/client/requests/index.d.mts +6 -0
  593. package/dist/esm/api/resources/fhir/client/requests/index.mjs +6 -0
  594. package/dist/esm/api/resources/fhir/errors/BadRequestError.d.mts +5 -0
  595. package/dist/esm/api/resources/fhir/errors/BadRequestError.mjs +14 -0
  596. package/dist/esm/api/resources/fhir/errors/InternalServerError.d.mts +5 -0
  597. package/dist/esm/api/resources/fhir/errors/InternalServerError.mjs +14 -0
  598. package/dist/esm/api/resources/fhir/errors/NotFoundError.d.mts +5 -0
  599. package/dist/esm/api/resources/fhir/errors/NotFoundError.mjs +14 -0
  600. package/dist/esm/api/resources/fhir/errors/UnauthorizedError.d.mts +5 -0
  601. package/dist/esm/api/resources/fhir/errors/UnauthorizedError.mjs +14 -0
  602. package/dist/esm/api/resources/fhir/errors/index.d.mts +4 -0
  603. package/dist/esm/api/resources/fhir/errors/index.mjs +4 -0
  604. package/dist/esm/api/resources/fhir/index.d.mts +3 -0
  605. package/dist/esm/api/resources/fhir/index.mjs +3 -0
  606. package/dist/esm/api/resources/fhir/types/ErrorResponse.d.mts +11 -0
  607. package/dist/esm/api/resources/fhir/types/ErrorResponse.mjs +2 -0
  608. package/dist/esm/api/resources/fhir/types/FhirBundle.d.mts +54 -0
  609. package/dist/esm/api/resources/fhir/types/FhirBundle.mjs +20 -0
  610. package/dist/esm/api/resources/fhir/types/FhirPatchRequestBodyItem.d.mts +22 -0
  611. package/dist/esm/api/resources/fhir/types/FhirPatchRequestBodyItem.mjs +13 -0
  612. package/dist/esm/api/resources/fhir/types/FhirResource.d.mts +24 -0
  613. package/dist/esm/api/resources/fhir/types/FhirResource.mjs +2 -0
  614. package/dist/esm/api/resources/fhir/types/FhirSearchResponse.d.mts +2 -0
  615. package/dist/esm/api/resources/fhir/types/FhirSearchResponse.mjs +2 -0
  616. package/dist/esm/api/resources/fhir/types/index.d.mts +5 -0
  617. package/dist/esm/api/resources/fhir/types/index.mjs +5 -0
  618. package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +141 -0
  619. package/dist/esm/api/resources/fhirProvider/client/Client.mjs +557 -0
  620. package/dist/esm/api/resources/fhirProvider/client/index.d.mts +2 -0
  621. package/dist/esm/api/resources/fhirProvider/client/index.mjs +2 -0
  622. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.d.mts +17 -0
  623. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.mjs +2 -0
  624. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.d.mts +27 -0
  625. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.mjs +2 -0
  626. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.d.mts +10 -0
  627. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.mjs +2 -0
  628. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.d.mts +10 -0
  629. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.mjs +2 -0
  630. package/dist/esm/api/resources/fhirProvider/client/requests/index.d.mts +4 -0
  631. package/dist/esm/api/resources/fhirProvider/client/requests/index.mjs +4 -0
  632. package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.d.mts +5 -0
  633. package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.mjs +14 -0
  634. package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.d.mts +5 -0
  635. package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.mjs +14 -0
  636. package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.d.mts +5 -0
  637. package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.mjs +14 -0
  638. package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.d.mts +5 -0
  639. package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.mjs +14 -0
  640. package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.d.mts +5 -0
  641. package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.mjs +14 -0
  642. package/dist/esm/api/resources/fhirProvider/errors/index.d.mts +5 -0
  643. package/dist/esm/api/resources/fhirProvider/errors/index.mjs +5 -0
  644. package/dist/esm/api/resources/fhirProvider/index.d.mts +3 -0
  645. package/dist/esm/api/resources/fhirProvider/index.mjs +3 -0
  646. package/dist/esm/api/resources/fhirProvider/types/AuthMethod.d.mts +9 -0
  647. package/dist/esm/api/resources/fhirProvider/types/AuthMethod.mjs +9 -0
  648. package/dist/esm/api/resources/fhirProvider/types/FhirProviderAuthConfig.d.mts +19 -0
  649. package/dist/esm/api/resources/fhirProvider/types/FhirProviderAuthConfig.mjs +2 -0
  650. package/dist/esm/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.mts +4 -0
  651. package/dist/esm/api/resources/fhirProvider/types/FhirProviderDeleteResponse.mjs +2 -0
  652. package/dist/esm/api/resources/fhirProvider/types/FhirProviderListResponse.d.mts +6 -0
  653. package/dist/esm/api/resources/fhirProvider/types/FhirProviderListResponse.mjs +2 -0
  654. package/dist/esm/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.d.mts +6 -0
  655. package/dist/esm/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.mjs +2 -0
  656. package/dist/esm/api/resources/fhirProvider/types/FhirProviderResponse.d.mts +6 -0
  657. package/dist/esm/api/resources/fhirProvider/types/FhirProviderResponse.mjs +2 -0
  658. package/dist/esm/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.d.mts +6 -0
  659. package/dist/esm/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.mjs +2 -0
  660. package/dist/esm/api/resources/fhirProvider/types/FhirProviderTemplate.d.mts +22 -0
  661. package/dist/esm/api/resources/fhirProvider/types/FhirProviderTemplate.mjs +2 -0
  662. package/dist/esm/api/resources/fhirProvider/types/FhirQueryResponse.d.mts +16 -0
  663. package/dist/esm/api/resources/fhirProvider/types/FhirQueryResponse.mjs +2 -0
  664. package/dist/esm/api/resources/fhirProvider/types/JsonWebKey.d.mts +17 -0
  665. package/dist/esm/api/resources/fhirProvider/types/JsonWebKey.mjs +2 -0
  666. package/dist/esm/api/resources/fhirProvider/types/Provider.d.mts +12 -0
  667. package/dist/esm/api/resources/fhirProvider/types/Provider.mjs +12 -0
  668. package/dist/esm/api/resources/fhirProvider/types/ServiceAccountKey.d.mts +16 -0
  669. package/dist/esm/api/resources/fhirProvider/types/ServiceAccountKey.mjs +2 -0
  670. package/dist/esm/api/resources/fhirProvider/types/SmartConfiguration.d.mts +15 -0
  671. package/dist/esm/api/resources/fhirProvider/types/SmartConfiguration.mjs +2 -0
  672. package/dist/esm/api/resources/fhirProvider/types/index.d.mts +13 -0
  673. package/dist/esm/api/resources/fhirProvider/types/index.mjs +13 -0
  674. package/dist/esm/api/resources/index.d.mts +3 -0
  675. package/dist/esm/api/resources/index.mjs +3 -0
  676. package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +5 -25
  677. package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +19 -17
  678. package/dist/esm/api/resources/lang2Fhir/client/index.mjs +1 -0
  679. package/dist/esm/api/resources/lang2Fhir/client/requests/CreateRequest.d.mts +2 -7
  680. package/dist/esm/api/resources/lang2Fhir/client/requests/CreateRequest.mjs +2 -3
  681. package/dist/esm/api/resources/lang2Fhir/client/requests/DocumentRequest.d.mts +4 -11
  682. package/dist/esm/api/resources/lang2Fhir/client/requests/DocumentRequest.mjs +3 -3
  683. package/dist/esm/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.d.mts +0 -3
  684. package/dist/esm/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.mjs +1 -3
  685. package/dist/esm/api/resources/lang2Fhir/client/requests/SearchRequest.d.mts +0 -3
  686. package/dist/esm/api/resources/lang2Fhir/client/requests/SearchRequest.mjs +1 -3
  687. package/dist/esm/api/resources/lang2Fhir/client/requests/index.mjs +4 -1
  688. package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.d.mts +0 -3
  689. package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.mjs +2 -3
  690. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.d.mts +0 -3
  691. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.mjs +2 -3
  692. package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.d.mts +0 -3
  693. package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.mjs +2 -3
  694. package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.d.mts +0 -3
  695. package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.mjs +2 -3
  696. package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.d.mts +0 -3
  697. package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.mjs +2 -3
  698. package/dist/esm/api/resources/lang2Fhir/types/FhirResource.d.mts +0 -3
  699. package/dist/esm/api/resources/lang2Fhir/types/FhirResource.mjs +1 -3
  700. package/dist/esm/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.mts +0 -3
  701. package/dist/esm/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.mjs +1 -3
  702. package/dist/esm/api/resources/lang2Fhir/types/SearchResponse.d.mts +0 -3
  703. package/dist/esm/api/resources/lang2Fhir/types/SearchResponse.mjs +1 -3
  704. package/dist/esm/api/resources/tools/client/Client.d.mts +6 -26
  705. package/dist/esm/api/resources/tools/client/Client.mjs +17 -15
  706. package/dist/esm/api/resources/tools/client/index.mjs +1 -0
  707. package/dist/esm/api/resources/tools/client/requests/CohortRequest.d.mts +3 -20
  708. package/dist/esm/api/resources/tools/client/requests/CohortRequest.mjs +2 -12
  709. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.mts +4 -21
  710. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.mjs +2 -9
  711. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.mts +2 -19
  712. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.mjs +2 -12
  713. package/dist/esm/api/resources/tools/client/requests/index.mjs +3 -1
  714. package/dist/esm/api/resources/tools/errors/BadRequestError.d.mts +0 -3
  715. package/dist/esm/api/resources/tools/errors/BadRequestError.mjs +2 -3
  716. package/dist/esm/api/resources/tools/errors/FailedDependencyError.d.mts +0 -3
  717. package/dist/esm/api/resources/tools/errors/FailedDependencyError.mjs +2 -3
  718. package/dist/esm/api/resources/tools/errors/ForbiddenError.d.mts +0 -3
  719. package/dist/esm/api/resources/tools/errors/ForbiddenError.mjs +2 -3
  720. package/dist/esm/api/resources/tools/errors/InternalServerError.d.mts +0 -3
  721. package/dist/esm/api/resources/tools/errors/InternalServerError.mjs +2 -3
  722. package/dist/esm/api/resources/tools/errors/UnauthorizedError.d.mts +0 -3
  723. package/dist/esm/api/resources/tools/errors/UnauthorizedError.mjs +2 -3
  724. package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.d.mts +5 -25
  725. package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.mjs +19 -17
  726. package/dist/esm/api/resources/tools/resources/mcpServer/client/index.mjs +1 -0
  727. package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.d.mts +0 -3
  728. package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.mjs +1 -3
  729. package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/index.mjs +1 -1
  730. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.mts +5 -25
  731. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +19 -17
  732. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.mjs +1 -0
  733. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.mts +0 -3
  734. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.mjs +1 -3
  735. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.mjs +1 -1
  736. package/dist/esm/api/resources/tools/types/CohortResponse.d.mts +0 -3
  737. package/dist/esm/api/resources/tools/types/CohortResponse.mjs +2 -4
  738. package/dist/esm/api/resources/tools/types/Lang2FhirAndCreateResponse.d.mts +0 -3
  739. package/dist/esm/api/resources/tools/types/Lang2FhirAndCreateResponse.mjs +1 -3
  740. package/dist/esm/api/resources/tools/types/Lang2FhirAndSearchResponse.d.mts +0 -3
  741. package/dist/esm/api/resources/tools/types/Lang2FhirAndSearchResponse.mjs +1 -3
  742. package/dist/esm/api/resources/tools/types/McpServerResponse.d.mts +0 -3
  743. package/dist/esm/api/resources/tools/types/McpServerResponse.mjs +1 -3
  744. package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.d.mts +0 -3
  745. package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.mjs +1 -3
  746. package/dist/esm/api/resources/tools/types/McpServerToolResponse.d.mts +0 -3
  747. package/dist/esm/api/resources/tools/types/McpServerToolResponse.mjs +1 -3
  748. package/dist/esm/api/resources/tools/types/SearchConcept.d.mts +0 -3
  749. package/dist/esm/api/resources/tools/types/SearchConcept.mjs +1 -3
  750. package/dist/esm/api/resources/tools/types/index.d.mts +0 -1
  751. package/dist/esm/api/resources/tools/types/index.mjs +0 -1
  752. package/dist/esm/api/resources/workflows/client/Client.d.mts +43 -0
  753. package/dist/esm/api/resources/workflows/client/Client.mjs +185 -0
  754. package/dist/esm/api/resources/workflows/client/index.d.mts +1 -0
  755. package/dist/esm/api/resources/workflows/client/index.mjs +1 -0
  756. package/dist/esm/api/resources/workflows/errors/BadRequestError.d.mts +5 -0
  757. package/dist/esm/api/resources/workflows/errors/BadRequestError.mjs +14 -0
  758. package/dist/esm/api/resources/workflows/errors/ForbiddenError.d.mts +5 -0
  759. package/dist/esm/api/resources/workflows/errors/ForbiddenError.mjs +14 -0
  760. package/dist/esm/api/resources/workflows/errors/InternalServerError.d.mts +5 -0
  761. package/dist/esm/api/resources/workflows/errors/InternalServerError.mjs +14 -0
  762. package/dist/esm/api/resources/workflows/errors/NotFoundError.d.mts +5 -0
  763. package/dist/esm/api/resources/workflows/errors/NotFoundError.mjs +14 -0
  764. package/dist/esm/api/resources/workflows/errors/UnauthorizedError.d.mts +5 -0
  765. package/dist/esm/api/resources/workflows/errors/UnauthorizedError.mjs +14 -0
  766. package/dist/esm/api/resources/workflows/errors/index.d.mts +5 -0
  767. package/dist/esm/api/resources/workflows/errors/index.mjs +5 -0
  768. package/dist/esm/api/resources/workflows/index.d.mts +4 -0
  769. package/dist/esm/api/resources/workflows/index.mjs +4 -0
  770. package/dist/esm/api/resources/workflows/resources/index.d.mts +4 -0
  771. package/dist/esm/api/resources/workflows/resources/index.mjs +4 -0
  772. package/dist/esm/api/resources/workflows/resources/mcpServer/client/Client.d.mts +50 -0
  773. package/dist/esm/api/resources/workflows/resources/mcpServer/client/Client.mjs +231 -0
  774. package/dist/esm/api/resources/workflows/resources/mcpServer/client/index.d.mts +1 -0
  775. package/dist/esm/api/resources/workflows/resources/mcpServer/client/index.mjs +1 -0
  776. package/dist/esm/api/resources/workflows/resources/mcpServer/index.d.mts +2 -0
  777. package/dist/esm/api/resources/workflows/resources/mcpServer/index.mjs +2 -0
  778. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/index.d.mts +1 -0
  779. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/index.mjs +1 -0
  780. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.d.mts +49 -0
  781. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/Client.mjs +228 -0
  782. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/index.d.mts +1 -0
  783. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/client/index.mjs +1 -0
  784. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/index.d.mts +1 -0
  785. package/dist/esm/api/resources/workflows/resources/mcpServer/resources/tools/index.mjs +1 -0
  786. package/dist/esm/api/resources/workflows/resources/workflows/client/Client.d.mts +145 -0
  787. package/dist/esm/api/resources/workflows/resources/workflows/client/Client.mjs +532 -0
  788. package/dist/esm/api/resources/workflows/resources/workflows/client/index.d.mts +2 -0
  789. package/dist/esm/api/resources/workflows/resources/workflows/client/index.mjs +2 -0
  790. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/CreateWorkflowRequest.d.mts +40 -0
  791. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/CreateWorkflowRequest.mjs +2 -0
  792. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/ExecuteWorkflowRequest.d.mts +15 -0
  793. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/ExecuteWorkflowRequest.mjs +2 -0
  794. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/UpdateWorkflowRequest.d.mts +40 -0
  795. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/UpdateWorkflowRequest.mjs +2 -0
  796. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/WorkflowsGetRequest.d.mts +10 -0
  797. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/WorkflowsGetRequest.mjs +2 -0
  798. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/WorkflowsListRequest.d.mts +10 -0
  799. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/WorkflowsListRequest.mjs +2 -0
  800. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/index.d.mts +5 -0
  801. package/dist/esm/api/resources/workflows/resources/workflows/client/requests/index.mjs +5 -0
  802. package/dist/esm/api/resources/workflows/resources/workflows/index.d.mts +2 -0
  803. package/dist/esm/api/resources/workflows/resources/workflows/index.mjs +2 -0
  804. package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsDeleteResponse.d.mts +4 -0
  805. package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsDeleteResponse.mjs +2 -0
  806. package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsGetResponse.d.mts +7 -0
  807. package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsGetResponse.mjs +2 -0
  808. package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsUpdateResponse.d.mts +9 -0
  809. package/dist/esm/api/resources/workflows/resources/workflows/types/WorkflowsUpdateResponse.mjs +2 -0
  810. package/dist/esm/api/resources/workflows/resources/workflows/types/index.d.mts +3 -0
  811. package/dist/esm/api/resources/workflows/resources/workflows/types/index.mjs +3 -0
  812. package/dist/esm/api/resources/workflows/types/CreateWorkflowResponse.d.mts +13 -0
  813. package/dist/esm/api/resources/workflows/types/CreateWorkflowResponse.mjs +2 -0
  814. package/dist/esm/api/resources/workflows/types/DecisionNodeDefinition.d.mts +8 -0
  815. package/dist/esm/api/resources/workflows/types/DecisionNodeDefinition.mjs +2 -0
  816. package/dist/esm/api/resources/workflows/types/ExecuteWorkflowResponse.d.mts +13 -0
  817. package/dist/esm/api/resources/workflows/types/ExecuteWorkflowResponse.mjs +2 -0
  818. package/dist/esm/api/resources/workflows/types/Lang2FhirCreateDefinition.d.mts +10 -0
  819. package/dist/esm/api/resources/workflows/types/Lang2FhirCreateDefinition.mjs +2 -0
  820. package/dist/esm/api/resources/workflows/types/Lang2FhirSearchDefinition.d.mts +12 -0
  821. package/dist/esm/api/resources/workflows/types/Lang2FhirSearchDefinition.mjs +2 -0
  822. package/dist/esm/api/resources/workflows/types/ListWorkflowsResponse.d.mts +11 -0
  823. package/dist/esm/api/resources/workflows/types/ListWorkflowsResponse.mjs +2 -0
  824. package/dist/esm/api/resources/workflows/types/StepOperation.d.mts +7 -0
  825. package/dist/esm/api/resources/workflows/types/StepOperation.mjs +2 -0
  826. package/dist/esm/api/resources/workflows/types/SubWorkflowDefinition.d.mts +8 -0
  827. package/dist/esm/api/resources/workflows/types/SubWorkflowDefinition.mjs +2 -0
  828. package/dist/esm/api/resources/workflows/types/WorkflowConfig.d.mts +6 -0
  829. package/dist/esm/api/resources/workflows/types/WorkflowConfig.mjs +2 -0
  830. package/dist/esm/api/resources/workflows/types/WorkflowDefinition.d.mts +19 -0
  831. package/dist/esm/api/resources/workflows/types/WorkflowDefinition.mjs +2 -0
  832. package/dist/esm/api/resources/workflows/types/WorkflowGraph.d.mts +5 -0
  833. package/dist/esm/api/resources/workflows/types/WorkflowGraph.mjs +2 -0
  834. package/dist/esm/api/resources/workflows/types/WorkflowResponse.d.mts +28 -0
  835. package/dist/esm/api/resources/workflows/types/WorkflowResponse.mjs +2 -0
  836. package/dist/esm/api/resources/workflows/types/WorkflowStep.d.mts +28 -0
  837. package/dist/esm/api/resources/workflows/types/WorkflowStep.mjs +12 -0
  838. package/dist/esm/api/resources/workflows/types/WorkflowStepSummary.d.mts +25 -0
  839. package/dist/esm/api/resources/workflows/types/WorkflowStepSummary.mjs +11 -0
  840. package/dist/esm/api/resources/workflows/types/index.d.mts +14 -0
  841. package/dist/esm/api/resources/workflows/types/index.mjs +14 -0
  842. package/dist/esm/api/types/CohortResponse.d.mts +1 -0
  843. package/dist/esm/api/types/CohortResponse.mjs +2 -0
  844. package/dist/esm/api/types/Lang2FhirAndCreateResponse.d.mts +1 -0
  845. package/dist/esm/api/types/Lang2FhirAndCreateResponse.mjs +2 -0
  846. package/dist/esm/api/types/Lang2FhirAndSearchResponse.d.mts +1 -0
  847. package/dist/esm/api/types/Lang2FhirAndSearchResponse.mjs +2 -0
  848. package/dist/esm/api/types/McpServerResponse.d.mts +1 -0
  849. package/dist/esm/api/types/McpServerResponse.mjs +2 -0
  850. package/dist/esm/api/types/McpServerToolCallResponse.d.mts +1 -0
  851. package/dist/esm/api/types/McpServerToolCallResponse.mjs +2 -0
  852. package/dist/esm/api/types/McpServerToolResponse.d.mts +1 -0
  853. package/dist/esm/api/types/McpServerToolResponse.mjs +2 -0
  854. package/dist/esm/api/types/SearchConcept.d.mts +1 -0
  855. package/dist/esm/api/types/SearchConcept.mjs +2 -0
  856. package/dist/esm/api/types/index.d.mts +7 -0
  857. package/dist/esm/api/types/index.mjs +7 -0
  858. package/dist/esm/core/auth/AuthProvider.d.mts +1 -1
  859. package/dist/esm/core/auth/BasicAuth.mjs +2 -1
  860. package/dist/esm/core/auth/index.d.mts +2 -2
  861. package/dist/esm/core/fetcher/APIResponse.d.mts +1 -1
  862. package/dist/esm/core/fetcher/BinaryResponse.d.mts +1 -1
  863. package/dist/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
  864. package/dist/esm/core/fetcher/EndpointMetadata.mjs +1 -0
  865. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
  866. package/dist/esm/core/fetcher/EndpointSupplier.mjs +20 -0
  867. package/dist/esm/core/fetcher/Fetcher.d.mts +5 -3
  868. package/dist/esm/core/fetcher/Fetcher.mjs +3 -2
  869. package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +1 -1
  870. package/dist/esm/core/fetcher/index.d.mts +2 -0
  871. package/dist/esm/core/fetcher/index.mjs +1 -0
  872. package/dist/esm/core/fetcher/requestWithRetries.mjs +44 -8
  873. package/dist/esm/core/headers.d.mts +2 -3
  874. package/dist/esm/environments.d.mts +0 -3
  875. package/dist/esm/environments.mjs +1 -3
  876. package/dist/esm/errors/phenomlError.d.mts +0 -3
  877. package/dist/esm/errors/phenomlError.mjs +2 -3
  878. package/dist/esm/errors/phenomlTimeoutError.d.mts +0 -3
  879. package/dist/esm/errors/phenomlTimeoutError.mjs +1 -3
  880. package/dist/esm/version.d.mts +1 -1
  881. package/dist/esm/version.mjs +1 -1
  882. package/package.json +2 -3
  883. package/reference.md +2183 -146
  884. package/LICENSE +0 -21
  885. package/dist/cjs/api/resources/agent/client/requests/AgentCreateRequest.d.ts +0 -29
  886. package/dist/cjs/api/resources/agent/client/requests/AgentUpdateRequest.d.ts +0 -25
  887. package/dist/cjs/api/resources/agent/types/AgentFhirConfig.d.ts +0 -12
  888. package/dist/cjs/api/resources/agent/types/AgentProvider.d.ts +0 -11
  889. package/dist/cjs/api/resources/agent/types/ChatFhirClientConfig.d.ts +0 -12
  890. package/dist/cjs/api/resources/agent/types/ChatFhirClientConfig.js +0 -5
  891. package/dist/cjs/api/resources/agent/types/ProviderType.d.ts +0 -13
  892. package/dist/cjs/api/resources/agent/types/ProviderType.js +0 -12
  893. package/dist/cjs/api/resources/tools/types/FhirClientConfig.d.ts +0 -12
  894. package/dist/cjs/api/resources/tools/types/FhirClientConfig.js +0 -5
  895. package/dist/esm/api/resources/agent/client/requests/AgentCreateRequest.d.mts +0 -29
  896. package/dist/esm/api/resources/agent/client/requests/AgentCreateRequest.mjs +0 -4
  897. package/dist/esm/api/resources/agent/client/requests/AgentUpdateRequest.d.mts +0 -25
  898. package/dist/esm/api/resources/agent/client/requests/AgentUpdateRequest.mjs +0 -4
  899. package/dist/esm/api/resources/agent/types/AgentFhirConfig.d.mts +0 -12
  900. package/dist/esm/api/resources/agent/types/AgentFhirConfig.mjs +0 -4
  901. package/dist/esm/api/resources/agent/types/AgentProvider.d.mts +0 -11
  902. package/dist/esm/api/resources/agent/types/AgentProvider.mjs +0 -4
  903. package/dist/esm/api/resources/agent/types/ChatFhirClientConfig.d.mts +0 -12
  904. package/dist/esm/api/resources/agent/types/ChatFhirClientConfig.mjs +0 -4
  905. package/dist/esm/api/resources/agent/types/ProviderType.d.mts +0 -13
  906. package/dist/esm/api/resources/agent/types/ProviderType.mjs +0 -9
  907. package/dist/esm/api/resources/tools/types/FhirClientConfig.d.mts +0 -12
  908. package/dist/esm/api/resources/tools/types/FhirClientConfig.mjs +0 -4
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  export interface SuccessResponse {
5
2
  success?: boolean;
6
3
  message?: string;
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,17 +2,14 @@ export * from "./AgentListResponse.js";
2
2
  export * from "./AgentDeleteResponse.js";
3
3
  export * from "./AgentGetChatMessagesRequestOrder.js";
4
4
  export * from "./AgentGetChatMessagesResponse.js";
5
+ export * from "./AgentCreateRequest.js";
5
6
  export * from "./AgentTemplate.js";
6
7
  export * from "./AgentResponse.js";
7
8
  export * from "./AgentChatResponse.js";
8
9
  export * from "./PromptTemplate.js";
9
10
  export * from "./AgentPromptsResponse.js";
10
- export * from "./AgentFhirConfig.js";
11
- export * from "./ChatFhirClientConfig.js";
12
11
  export * from "./ChatMessageTemplate.js";
13
12
  export * from "./ChatSessionTemplate.js";
14
13
  export * from "./SuccessResponse.js";
15
14
  export * from "./JsonPatch.js";
16
15
  export * from "./JsonPatchOperation.js";
17
- export * from "./ProviderType.js";
18
- export * from "./AgentProvider.js";
@@ -18,17 +18,14 @@ __exportStar(require("./AgentListResponse.js"), exports);
18
18
  __exportStar(require("./AgentDeleteResponse.js"), exports);
19
19
  __exportStar(require("./AgentGetChatMessagesRequestOrder.js"), exports);
20
20
  __exportStar(require("./AgentGetChatMessagesResponse.js"), exports);
21
+ __exportStar(require("./AgentCreateRequest.js"), exports);
21
22
  __exportStar(require("./AgentTemplate.js"), exports);
22
23
  __exportStar(require("./AgentResponse.js"), exports);
23
24
  __exportStar(require("./AgentChatResponse.js"), exports);
24
25
  __exportStar(require("./PromptTemplate.js"), exports);
25
26
  __exportStar(require("./AgentPromptsResponse.js"), exports);
26
- __exportStar(require("./AgentFhirConfig.js"), exports);
27
- __exportStar(require("./ChatFhirClientConfig.js"), exports);
28
27
  __exportStar(require("./ChatMessageTemplate.js"), exports);
29
28
  __exportStar(require("./ChatSessionTemplate.js"), exports);
30
29
  __exportStar(require("./SuccessResponse.js"), exports);
31
30
  __exportStar(require("./JsonPatch.js"), exports);
32
31
  __exportStar(require("./JsonPatchOperation.js"), exports);
33
- __exportStar(require("./ProviderType.js"), exports);
34
- __exportStar(require("./AgentProvider.js"), exports);
@@ -1,23 +1,12 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as environments from "../../../../environments.js";
5
- import * as core from "../../../../core/index.js";
1
+ import type { BaseClientOptions } from "../../../../BaseClient.js";
6
2
  import { Auth } from "../resources/auth/client/Client.js";
7
3
  export declare namespace Authtoken {
8
- interface Options {
9
- environment?: core.Supplier<environments.phenomlEnvironment | string>;
10
- /** Specify a custom URL to connect the client to. */
11
- baseUrl?: core.Supplier<string>;
12
- token: core.Supplier<core.BearerToken>;
13
- /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
15
- fetcher?: core.FetchFunction;
4
+ interface Options extends BaseClientOptions {
16
5
  }
17
6
  }
18
7
  export declare class Authtoken {
19
8
  protected readonly _options: Authtoken.Options;
20
9
  protected _auth: Auth | undefined;
21
- constructor(_options: Authtoken.Options);
10
+ constructor(_options?: Authtoken.Options);
22
11
  get auth(): Auth;
23
12
  }
@@ -1,12 +1,10 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
6
4
  exports.Authtoken = void 0;
7
5
  const Client_js_1 = require("../resources/auth/client/Client.js");
8
6
  class Authtoken {
9
- constructor(_options) {
7
+ constructor(_options = {}) {
10
8
  this._options = _options;
11
9
  }
12
10
  get auth() {
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as errors from "../../../../errors/index.js";
5
2
  import * as core from "../../../../core/index.js";
6
3
  export declare class BadRequestError extends errors.phenomlError {
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
4
  if (k2 === undefined) k2 = k;
7
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as errors from "../../../../errors/index.js";
5
2
  import * as core from "../../../../core/index.js";
6
3
  export declare class UnauthorizedError extends errors.phenomlError {
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
4
  if (k2 === undefined) k2 = k;
7
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -10,7 +10,7 @@ export declare namespace Auth {
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  /** Additional headers to include in requests. */
13
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
13
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
14
14
  fetcher?: core.FetchFunction;
15
15
  }
16
16
  interface RequestOptions {
@@ -23,7 +23,7 @@ export declare namespace Auth {
23
23
  /** Additional query string parameters to include in the request. */
24
24
  queryParams?: Record<string, unknown>;
25
25
  /** Additional headers to include in the request. */
26
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
27
  }
28
28
  }
29
29
  export declare class Auth {
@@ -133,7 +133,7 @@ class Auth {
133
133
  }
134
134
  const basicAuthHeader = core.BasicAuth.toAuthorizationHeader({
135
135
  username: request.username,
136
- password: request.password
136
+ password: request.password,
137
137
  });
138
138
  if (!basicAuthHeader) {
139
139
  throw new Error("Failed to create basic auth header from username/password");
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  /**
5
2
  * @example
6
3
  * {
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  export interface AuthGenerateTokenResponse {
5
2
  /** JWT token to be used for subsequent authenticated requests */
6
3
  token: string;
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  export interface BadRequestErrorBody {
5
2
  code?: number;
6
3
  message?: string;
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  export interface UnauthorizedErrorBody {
5
2
  code?: number;
6
3
  message?: string;
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,35 +1,15 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as environments from "../../../../environments.js";
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
5
2
  import * as core from "../../../../core/index.js";
6
3
  import * as phenoml from "../../../index.js";
7
4
  export declare namespace Cohort {
8
- interface Options {
9
- environment?: core.Supplier<environments.phenomlEnvironment | string>;
10
- /** Specify a custom URL to connect the client to. */
11
- baseUrl?: core.Supplier<string>;
12
- token: core.Supplier<core.BearerToken>;
13
- /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
15
- fetcher?: core.FetchFunction;
5
+ interface Options extends BaseClientOptions {
16
6
  }
17
- interface RequestOptions {
18
- /** The maximum time to wait for a response in seconds. */
19
- timeoutInSeconds?: number;
20
- /** The number of times to retry the request. Defaults to 2. */
21
- maxRetries?: number;
22
- /** A hook to abort the request. */
23
- abortSignal?: AbortSignal;
24
- /** Additional query string parameters to include in the request. */
25
- queryParams?: Record<string, unknown>;
26
- /** Additional headers to include in the request. */
27
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
7
+ interface RequestOptions extends BaseRequestOptions {
28
8
  }
29
9
  }
30
10
  export declare class Cohort {
31
11
  protected readonly _options: Cohort.Options;
32
- constructor(_options: Cohort.Options);
12
+ constructor(_options?: Cohort.Options);
33
13
  /**
34
14
  * Converts natural language text into structured FHIR search queries for patient cohort analysis
35
15
  *
@@ -47,5 +27,5 @@ export declare class Cohort {
47
27
  */
48
28
  analyze(request: phenoml.cohort.CohortRequest, requestOptions?: Cohort.RequestOptions): core.HttpResponsePromise<phenoml.cohort.CohortResponse>;
49
29
  private __analyze;
50
- protected _getAuthorizationHeader(): Promise<string>;
30
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
51
31
  }
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
4
  if (k2 === undefined) k2 = k;
7
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -52,7 +50,7 @@ const phenoml = __importStar(require("../../../index.js"));
52
50
  const headers_js_1 = require("../../../../core/headers.js");
53
51
  const errors = __importStar(require("../../../../errors/index.js"));
54
52
  class Cohort {
55
- constructor(_options) {
53
+ constructor(_options = {}) {
56
54
  this._options = _options;
57
55
  }
58
56
  /**
@@ -75,7 +73,7 @@ class Cohort {
75
73
  }
76
74
  __analyze(request, requestOptions) {
77
75
  return __awaiter(this, void 0, void 0, function* () {
78
- var _a, _b, _c, _d;
76
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
79
77
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
80
78
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
81
79
  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, "cohort"),
@@ -85,8 +83,8 @@ class Cohort {
85
83
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
86
84
  requestType: "json",
87
85
  body: request,
88
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
89
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
86
+ 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,
87
+ 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,
90
88
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
91
89
  });
92
90
  if (_response.ok) {
@@ -127,7 +125,11 @@ class Cohort {
127
125
  }
128
126
  _getAuthorizationHeader() {
129
127
  return __awaiter(this, void 0, void 0, function* () {
130
- return `Bearer ${yield core.Supplier.get(this._options.token)}`;
128
+ const bearer = yield core.Supplier.get(this._options.token);
129
+ if (bearer != null) {
130
+ return `Bearer ${bearer}`;
131
+ }
132
+ return undefined;
131
133
  });
132
134
  }
133
135
  }
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  /**
5
2
  * @example
6
3
  * {
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as errors from "../../../../errors/index.js";
5
2
  import * as core from "../../../../core/index.js";
6
3
  export declare class BadRequestError extends errors.phenomlError {
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
4
  if (k2 === undefined) k2 = k;
7
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as errors from "../../../../errors/index.js";
5
2
  import * as core from "../../../../core/index.js";
6
3
  export declare class InternalServerError extends errors.phenomlError {
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
4
  if (k2 === undefined) k2 = k;
7
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as errors from "../../../../errors/index.js";
5
2
  import * as core from "../../../../core/index.js";
6
3
  export declare class UnauthorizedError extends errors.phenomlError {
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
4
  if (k2 === undefined) k2 = k;
7
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as phenoml from "../../../index.js";
5
2
  export interface CohortResponse {
6
3
  /** Whether the cohort analysis was successful */
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  export interface SearchConcept {
5
2
  /** The FHIR resource type for this search concept */
6
3
  resource_type?: string;
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,35 +1,15 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as environments from "../../../../environments.js";
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
5
2
  import * as core from "../../../../core/index.js";
6
3
  import * as phenoml from "../../../index.js";
7
4
  export declare namespace Construe {
8
- interface Options {
9
- environment?: core.Supplier<environments.phenomlEnvironment | string>;
10
- /** Specify a custom URL to connect the client to. */
11
- baseUrl?: core.Supplier<string>;
12
- token: core.Supplier<core.BearerToken>;
13
- /** Additional headers to include in requests. */
14
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
15
- fetcher?: core.FetchFunction;
5
+ interface Options extends BaseClientOptions {
16
6
  }
17
- interface RequestOptions {
18
- /** The maximum time to wait for a response in seconds. */
19
- timeoutInSeconds?: number;
20
- /** The number of times to retry the request. Defaults to 2. */
21
- maxRetries?: number;
22
- /** A hook to abort the request. */
23
- abortSignal?: AbortSignal;
24
- /** Additional query string parameters to include in the request. */
25
- queryParams?: Record<string, unknown>;
26
- /** Additional headers to include in the request. */
27
- headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
7
+ interface RequestOptions extends BaseRequestOptions {
28
8
  }
29
9
  }
30
10
  export declare class Construe {
31
11
  protected readonly _options: Construe.Options;
32
- constructor(_options: Construe.Options);
12
+ constructor(_options?: Construe.Options);
33
13
  /**
34
14
  * Upload a custom medical code system with codes and descriptions for use in code extraction.
35
15
  * Upon upload, construe generates embeddings for all of the codes in the code system and stores them in the vector database so you can
@@ -90,5 +70,5 @@ export declare class Construe {
90
70
  */
91
71
  cohort(request: phenoml.construe.ConstrueCohortRequest, requestOptions?: Construe.RequestOptions): core.HttpResponsePromise<phenoml.construe.ConstrueCohortResponse>;
92
72
  private __cohort;
93
- protected _getAuthorizationHeader(): Promise<string>;
73
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
94
74
  }
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
4
  if (k2 === undefined) k2 = k;
7
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -52,7 +50,7 @@ const phenoml = __importStar(require("../../../index.js"));
52
50
  const headers_js_1 = require("../../../../core/headers.js");
53
51
  const errors = __importStar(require("../../../../errors/index.js"));
54
52
  class Construe {
55
- constructor(_options) {
53
+ constructor(_options = {}) {
56
54
  this._options = _options;
57
55
  }
58
56
  /**
@@ -82,7 +80,7 @@ class Construe {
82
80
  }
83
81
  __uploadCodeSystem(request, requestOptions) {
84
82
  return __awaiter(this, void 0, void 0, function* () {
85
- var _a, _b, _c, _d;
83
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
86
84
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
87
85
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
88
86
  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, "construe/upload"),
@@ -92,8 +90,8 @@ class Construe {
92
90
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
93
91
  requestType: "json",
94
92
  body: request,
95
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
96
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
93
+ 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,
94
+ 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,
97
95
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
98
96
  });
99
97
  if (_response.ok) {
@@ -160,7 +158,7 @@ class Construe {
160
158
  }
161
159
  __extractCodes(request, requestOptions) {
162
160
  return __awaiter(this, void 0, void 0, function* () {
163
- var _a, _b, _c, _d;
161
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
164
162
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
165
163
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
166
164
  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, "construe/extract"),
@@ -170,8 +168,8 @@ class Construe {
170
168
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
171
169
  requestType: "json",
172
170
  body: request,
173
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
174
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
171
+ 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,
172
+ 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,
175
173
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
176
174
  });
177
175
  if (_response.ok) {
@@ -233,7 +231,7 @@ class Construe {
233
231
  }
234
232
  __cohort(request, requestOptions) {
235
233
  return __awaiter(this, void 0, void 0, function* () {
236
- var _a, _b, _c, _d;
234
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
237
235
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
238
236
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
239
237
  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, "construe/cohort"),
@@ -243,8 +241,8 @@ class Construe {
243
241
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
244
242
  requestType: "json",
245
243
  body: request,
246
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
247
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
244
+ 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,
245
+ 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,
248
246
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
249
247
  });
250
248
  if (_response.ok) {
@@ -288,7 +286,11 @@ class Construe {
288
286
  }
289
287
  _getAuthorizationHeader() {
290
288
  return __awaiter(this, void 0, void 0, function* () {
291
- return `Bearer ${yield core.Supplier.get(this._options.token)}`;
289
+ const bearer = yield core.Supplier.get(this._options.token);
290
+ if (bearer != null) {
291
+ return `Bearer ${bearer}`;
292
+ }
293
+ return undefined;
292
294
  });
293
295
  }
294
296
  }
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  /**
5
2
  * @example
6
3
  * {
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as phenoml from "../../../../index.js";
5
2
  /**
6
3
  * @example
@@ -1,5 +1,3 @@
1
1
  "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
2
+ // This file was auto-generated by Fern from our API Definition.
5
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  /**
5
2
  * @example
6
3
  * {
@@ -29,12 +26,10 @@ export interface UploadRequest {
29
26
  defn_col?: string;
30
27
  }
31
28
  export declare namespace UploadRequest {
32
- /**
33
- * Format of the uploaded file
34
- */
35
- type Format = "json" | "csv";
29
+ /** Format of the uploaded file */
36
30
  const Format: {
37
31
  readonly Json: "json";
38
32
  readonly Csv: "csv";
39
33
  };
34
+ type Format = (typeof Format)[keyof typeof Format];
40
35
  }