phenoml 0.0.4 → 0.0.7

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 (747) hide show
  1. package/dist/cjs/BaseClient.d.ts +27 -0
  2. package/dist/cjs/BaseClient.js +3 -0
  3. package/dist/cjs/Client.d.ts +6 -24
  4. package/dist/cjs/Client.js +8 -5
  5. package/dist/cjs/api/resources/agent/client/Client.d.ts +11 -25
  6. package/dist/cjs/api/resources/agent/client/Client.js +33 -29
  7. package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.d.ts +0 -3
  8. package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.js +1 -3
  9. package/dist/cjs/api/resources/agent/client/requests/AgentGetChatMessagesRequest.d.ts +4 -4
  10. package/dist/cjs/api/resources/agent/client/requests/AgentGetChatMessagesRequest.js +1 -3
  11. package/dist/cjs/api/resources/agent/client/requests/AgentListRequest.d.ts +4 -4
  12. package/dist/cjs/api/resources/agent/client/requests/AgentListRequest.js +1 -3
  13. package/dist/cjs/api/resources/agent/errors/BadRequestError.d.ts +0 -3
  14. package/dist/cjs/api/resources/agent/errors/BadRequestError.js +1 -3
  15. package/dist/cjs/api/resources/agent/errors/ForbiddenError.d.ts +0 -3
  16. package/dist/cjs/api/resources/agent/errors/ForbiddenError.js +1 -3
  17. package/dist/cjs/api/resources/agent/errors/InternalServerError.d.ts +0 -3
  18. package/dist/cjs/api/resources/agent/errors/InternalServerError.js +1 -3
  19. package/dist/cjs/api/resources/agent/errors/NotFoundError.d.ts +0 -3
  20. package/dist/cjs/api/resources/agent/errors/NotFoundError.js +1 -3
  21. package/dist/cjs/api/resources/agent/errors/UnauthorizedError.d.ts +0 -3
  22. package/dist/cjs/api/resources/agent/errors/UnauthorizedError.js +1 -3
  23. package/dist/cjs/api/resources/agent/resources/prompts/client/Client.d.ts +3 -23
  24. package/dist/cjs/api/resources/agent/resources/prompts/client/Client.js +22 -24
  25. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.d.ts +0 -3
  26. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.js +1 -3
  27. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.d.ts +0 -3
  28. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.js +1 -3
  29. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.d.ts +0 -3
  30. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.js +1 -3
  31. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsListResponse.d.ts +0 -3
  32. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsListResponse.js +1 -3
  33. package/dist/cjs/api/resources/agent/types/AgentChatResponse.d.ts +0 -3
  34. package/dist/cjs/api/resources/agent/types/AgentChatResponse.js +1 -3
  35. package/dist/cjs/api/resources/agent/types/AgentCreateRequest.d.ts +0 -3
  36. package/dist/cjs/api/resources/agent/types/AgentCreateRequest.js +1 -3
  37. package/dist/cjs/api/resources/agent/types/AgentDeleteResponse.d.ts +0 -3
  38. package/dist/cjs/api/resources/agent/types/AgentDeleteResponse.js +1 -3
  39. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.ts +1 -4
  40. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestOrder.js +1 -3
  41. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesResponse.d.ts +0 -3
  42. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesResponse.js +1 -3
  43. package/dist/cjs/api/resources/agent/types/AgentListResponse.d.ts +0 -3
  44. package/dist/cjs/api/resources/agent/types/AgentListResponse.js +1 -3
  45. package/dist/cjs/api/resources/agent/types/AgentPromptsResponse.d.ts +0 -3
  46. package/dist/cjs/api/resources/agent/types/AgentPromptsResponse.js +1 -3
  47. package/dist/cjs/api/resources/agent/types/AgentResponse.d.ts +0 -3
  48. package/dist/cjs/api/resources/agent/types/AgentResponse.js +1 -3
  49. package/dist/cjs/api/resources/agent/types/AgentTemplate.d.ts +0 -3
  50. package/dist/cjs/api/resources/agent/types/AgentTemplate.js +1 -3
  51. package/dist/cjs/api/resources/agent/types/ChatMessageTemplate.d.ts +0 -3
  52. package/dist/cjs/api/resources/agent/types/ChatMessageTemplate.js +1 -3
  53. package/dist/cjs/api/resources/agent/types/ChatSessionTemplate.d.ts +0 -3
  54. package/dist/cjs/api/resources/agent/types/ChatSessionTemplate.js +1 -3
  55. package/dist/cjs/api/resources/agent/types/JsonPatch.d.ts +0 -3
  56. package/dist/cjs/api/resources/agent/types/JsonPatch.js +1 -3
  57. package/dist/cjs/api/resources/agent/types/JsonPatchOperation.d.ts +3 -7
  58. package/dist/cjs/api/resources/agent/types/JsonPatchOperation.js +2 -3
  59. package/dist/cjs/api/resources/agent/types/PromptTemplate.d.ts +0 -3
  60. package/dist/cjs/api/resources/agent/types/PromptTemplate.js +1 -3
  61. package/dist/cjs/api/resources/agent/types/SuccessResponse.d.ts +0 -3
  62. package/dist/cjs/api/resources/agent/types/SuccessResponse.js +1 -3
  63. package/dist/cjs/api/resources/authtoken/client/Client.d.ts +2 -13
  64. package/dist/cjs/api/resources/authtoken/client/Client.js +1 -3
  65. package/dist/cjs/api/resources/authtoken/errors/BadRequestError.d.ts +0 -3
  66. package/dist/cjs/api/resources/authtoken/errors/BadRequestError.js +1 -3
  67. package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.d.ts +0 -3
  68. package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.js +1 -3
  69. package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.d.ts +0 -3
  70. package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.js +1 -3
  71. package/dist/cjs/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.d.ts +0 -3
  72. package/dist/cjs/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.js +1 -3
  73. package/dist/cjs/api/resources/authtoken/types/BadRequestErrorBody.d.ts +0 -3
  74. package/dist/cjs/api/resources/authtoken/types/BadRequestErrorBody.js +1 -3
  75. package/dist/cjs/api/resources/authtoken/types/UnauthorizedErrorBody.d.ts +0 -3
  76. package/dist/cjs/api/resources/authtoken/types/UnauthorizedErrorBody.js +1 -3
  77. package/dist/cjs/api/resources/cohort/client/Client.d.ts +3 -23
  78. package/dist/cjs/api/resources/cohort/client/Client.js +4 -6
  79. package/dist/cjs/api/resources/cohort/client/requests/CohortRequest.d.ts +0 -3
  80. package/dist/cjs/api/resources/cohort/client/requests/CohortRequest.js +1 -3
  81. package/dist/cjs/api/resources/cohort/errors/BadRequestError.d.ts +0 -3
  82. package/dist/cjs/api/resources/cohort/errors/BadRequestError.js +1 -3
  83. package/dist/cjs/api/resources/cohort/errors/InternalServerError.d.ts +0 -3
  84. package/dist/cjs/api/resources/cohort/errors/InternalServerError.js +1 -3
  85. package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.d.ts +0 -3
  86. package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.js +1 -3
  87. package/dist/cjs/api/resources/cohort/types/CohortResponse.d.ts +0 -3
  88. package/dist/cjs/api/resources/cohort/types/CohortResponse.js +1 -3
  89. package/dist/cjs/api/resources/cohort/types/SearchConcept.d.ts +0 -3
  90. package/dist/cjs/api/resources/cohort/types/SearchConcept.js +1 -3
  91. package/dist/cjs/api/resources/construe/client/Client.d.ts +3 -23
  92. package/dist/cjs/api/resources/construe/client/Client.js +10 -12
  93. package/dist/cjs/api/resources/construe/client/requests/ConstrueCohortRequest.d.ts +0 -3
  94. package/dist/cjs/api/resources/construe/client/requests/ConstrueCohortRequest.js +1 -3
  95. package/dist/cjs/api/resources/construe/client/requests/ExtractRequest.d.ts +0 -3
  96. package/dist/cjs/api/resources/construe/client/requests/ExtractRequest.js +1 -3
  97. package/dist/cjs/api/resources/construe/client/requests/UploadRequest.d.ts +2 -7
  98. package/dist/cjs/api/resources/construe/client/requests/UploadRequest.js +2 -3
  99. package/dist/cjs/api/resources/construe/errors/BadRequestError.d.ts +0 -3
  100. package/dist/cjs/api/resources/construe/errors/BadRequestError.js +1 -3
  101. package/dist/cjs/api/resources/construe/errors/ConflictError.d.ts +0 -3
  102. package/dist/cjs/api/resources/construe/errors/ConflictError.js +1 -3
  103. package/dist/cjs/api/resources/construe/errors/FailedDependencyError.d.ts +0 -3
  104. package/dist/cjs/api/resources/construe/errors/FailedDependencyError.js +1 -3
  105. package/dist/cjs/api/resources/construe/errors/InternalServerError.d.ts +0 -3
  106. package/dist/cjs/api/resources/construe/errors/InternalServerError.js +1 -3
  107. package/dist/cjs/api/resources/construe/errors/UnauthorizedError.d.ts +0 -3
  108. package/dist/cjs/api/resources/construe/errors/UnauthorizedError.js +1 -3
  109. package/dist/cjs/api/resources/construe/types/BadRequestErrorBody.d.ts +0 -3
  110. package/dist/cjs/api/resources/construe/types/BadRequestErrorBody.js +1 -3
  111. package/dist/cjs/api/resources/construe/types/ConstrueCohortResponse.d.ts +0 -3
  112. package/dist/cjs/api/resources/construe/types/ConstrueCohortResponse.js +1 -3
  113. package/dist/cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.ts +0 -3
  114. package/dist/cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.js +1 -3
  115. package/dist/cjs/api/resources/construe/types/ExtractCodesResult.d.ts +0 -3
  116. package/dist/cjs/api/resources/construe/types/ExtractCodesResult.js +1 -3
  117. package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.d.ts +1 -4
  118. package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.js +1 -3
  119. package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.d.ts +0 -3
  120. package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.js +1 -3
  121. package/dist/cjs/api/resources/construe/types/ExtractedCodeResult.d.ts +0 -3
  122. package/dist/cjs/api/resources/construe/types/ExtractedCodeResult.js +1 -3
  123. package/dist/cjs/api/resources/construe/types/InternalServerErrorBody.d.ts +0 -3
  124. package/dist/cjs/api/resources/construe/types/InternalServerErrorBody.js +1 -3
  125. package/dist/cjs/api/resources/construe/types/UnauthorizedErrorBody.d.ts +0 -3
  126. package/dist/cjs/api/resources/construe/types/UnauthorizedErrorBody.js +1 -3
  127. package/dist/cjs/api/resources/fhir/client/Client.d.ts +26 -25
  128. package/dist/cjs/api/resources/fhir/client/Client.js +42 -23
  129. package/dist/cjs/api/resources/fhir/client/requests/FhirCreateRequest.d.ts +11 -4
  130. package/dist/cjs/api/resources/fhir/client/requests/FhirCreateRequest.js +1 -3
  131. package/dist/cjs/api/resources/fhir/client/requests/FhirDeleteRequest.d.ts +0 -3
  132. package/dist/cjs/api/resources/fhir/client/requests/FhirDeleteRequest.js +1 -3
  133. package/dist/cjs/api/resources/fhir/client/requests/FhirExecuteBundleRequest.d.ts +0 -3
  134. package/dist/cjs/api/resources/fhir/client/requests/FhirExecuteBundleRequest.js +1 -3
  135. package/dist/cjs/api/resources/fhir/client/requests/FhirPatchRequest.d.ts +0 -3
  136. package/dist/cjs/api/resources/fhir/client/requests/FhirPatchRequest.js +1 -3
  137. package/dist/cjs/api/resources/fhir/client/requests/FhirSearchRequest.d.ts +0 -3
  138. package/dist/cjs/api/resources/fhir/client/requests/FhirSearchRequest.js +1 -3
  139. package/dist/cjs/api/resources/fhir/client/requests/FhirUpsertRequest.d.ts +12 -4
  140. package/dist/cjs/api/resources/fhir/client/requests/FhirUpsertRequest.js +1 -3
  141. package/dist/cjs/api/resources/fhir/errors/BadRequestError.d.ts +0 -3
  142. package/dist/cjs/api/resources/fhir/errors/BadRequestError.js +1 -3
  143. package/dist/cjs/api/resources/fhir/errors/InternalServerError.d.ts +0 -3
  144. package/dist/cjs/api/resources/fhir/errors/InternalServerError.js +1 -3
  145. package/dist/cjs/api/resources/fhir/errors/NotFoundError.d.ts +0 -3
  146. package/dist/cjs/api/resources/fhir/errors/NotFoundError.js +1 -3
  147. package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.d.ts +0 -3
  148. package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.js +1 -3
  149. package/dist/cjs/api/resources/fhir/types/ErrorResponse.d.ts +0 -3
  150. package/dist/cjs/api/resources/fhir/types/ErrorResponse.js +1 -3
  151. package/dist/cjs/api/resources/fhir/types/FhirBundle.d.ts +1 -4
  152. package/dist/cjs/api/resources/fhir/types/FhirBundle.js +1 -3
  153. package/dist/cjs/api/resources/fhir/types/FhirPatchRequestBodyItem.d.ts +3 -7
  154. package/dist/cjs/api/resources/fhir/types/FhirPatchRequestBodyItem.js +2 -3
  155. package/dist/cjs/api/resources/fhir/types/FhirResource.d.ts +0 -3
  156. package/dist/cjs/api/resources/fhir/types/FhirResource.js +1 -3
  157. package/dist/cjs/api/resources/fhir/types/FhirSearchResponse.d.ts +0 -3
  158. package/dist/cjs/api/resources/fhir/types/FhirSearchResponse.js +1 -3
  159. package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +3 -23
  160. package/dist/cjs/api/resources/fhirProvider/client/Client.js +22 -24
  161. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.d.ts +0 -3
  162. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.js +1 -3
  163. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.d.ts +0 -3
  164. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.js +1 -3
  165. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.d.ts +0 -3
  166. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.js +1 -3
  167. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.d.ts +0 -3
  168. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.js +1 -3
  169. package/dist/cjs/api/resources/fhirProvider/errors/BadRequestError.d.ts +0 -3
  170. package/dist/cjs/api/resources/fhirProvider/errors/BadRequestError.js +1 -3
  171. package/dist/cjs/api/resources/fhirProvider/errors/ForbiddenError.d.ts +0 -3
  172. package/dist/cjs/api/resources/fhirProvider/errors/ForbiddenError.js +1 -3
  173. package/dist/cjs/api/resources/fhirProvider/errors/InternalServerError.d.ts +0 -3
  174. package/dist/cjs/api/resources/fhirProvider/errors/InternalServerError.js +1 -3
  175. package/dist/cjs/api/resources/fhirProvider/errors/NotFoundError.d.ts +0 -3
  176. package/dist/cjs/api/resources/fhirProvider/errors/NotFoundError.js +1 -3
  177. package/dist/cjs/api/resources/fhirProvider/errors/UnauthorizedError.d.ts +0 -3
  178. package/dist/cjs/api/resources/fhirProvider/errors/UnauthorizedError.js +1 -3
  179. package/dist/cjs/api/resources/fhirProvider/types/AuthMethod.d.ts +2 -7
  180. package/dist/cjs/api/resources/fhirProvider/types/AuthMethod.js +2 -3
  181. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderAuthConfig.d.ts +0 -3
  182. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderAuthConfig.js +1 -3
  183. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.ts +0 -3
  184. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderDeleteResponse.js +1 -3
  185. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderListResponse.d.ts +0 -3
  186. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderListResponse.js +1 -3
  187. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.d.ts +0 -3
  188. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.js +1 -3
  189. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderResponse.d.ts +0 -3
  190. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderResponse.js +1 -3
  191. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.d.ts +0 -3
  192. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.js +1 -3
  193. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderTemplate.d.ts +0 -3
  194. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderTemplate.js +1 -3
  195. package/dist/cjs/api/resources/fhirProvider/types/FhirQueryResponse.d.ts +0 -3
  196. package/dist/cjs/api/resources/fhirProvider/types/FhirQueryResponse.js +1 -3
  197. package/dist/cjs/api/resources/fhirProvider/types/JsonWebKey.d.ts +0 -3
  198. package/dist/cjs/api/resources/fhirProvider/types/JsonWebKey.js +1 -3
  199. package/dist/cjs/api/resources/fhirProvider/types/Provider.d.ts +2 -7
  200. package/dist/cjs/api/resources/fhirProvider/types/Provider.js +2 -3
  201. package/dist/cjs/api/resources/fhirProvider/types/ServiceAccountKey.d.ts +0 -3
  202. package/dist/cjs/api/resources/fhirProvider/types/ServiceAccountKey.js +1 -3
  203. package/dist/cjs/api/resources/fhirProvider/types/SmartConfiguration.d.ts +0 -3
  204. package/dist/cjs/api/resources/fhirProvider/types/SmartConfiguration.js +1 -3
  205. package/dist/cjs/api/resources/index.d.ts +1 -0
  206. package/dist/cjs/api/resources/index.js +2 -1
  207. package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +3 -23
  208. package/dist/cjs/api/resources/lang2Fhir/client/Client.js +13 -15
  209. package/dist/cjs/api/resources/lang2Fhir/client/requests/CreateRequest.d.ts +2 -7
  210. package/dist/cjs/api/resources/lang2Fhir/client/requests/CreateRequest.js +2 -3
  211. package/dist/cjs/api/resources/lang2Fhir/client/requests/DocumentRequest.d.ts +4 -11
  212. package/dist/cjs/api/resources/lang2Fhir/client/requests/DocumentRequest.js +3 -3
  213. package/dist/cjs/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.d.ts +0 -3
  214. package/dist/cjs/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.js +1 -3
  215. package/dist/cjs/api/resources/lang2Fhir/client/requests/SearchRequest.d.ts +0 -3
  216. package/dist/cjs/api/resources/lang2Fhir/client/requests/SearchRequest.js +1 -3
  217. package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.d.ts +0 -3
  218. package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.js +1 -3
  219. package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.d.ts +0 -3
  220. package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.js +1 -3
  221. package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.d.ts +0 -3
  222. package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.js +1 -3
  223. package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.d.ts +0 -3
  224. package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.js +1 -3
  225. package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.d.ts +0 -3
  226. package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.js +1 -3
  227. package/dist/cjs/api/resources/lang2Fhir/types/FhirResource.d.ts +0 -3
  228. package/dist/cjs/api/resources/lang2Fhir/types/FhirResource.js +1 -3
  229. package/dist/cjs/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.ts +0 -3
  230. package/dist/cjs/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.js +1 -3
  231. package/dist/cjs/api/resources/lang2Fhir/types/SearchResponse.d.ts +0 -3
  232. package/dist/cjs/api/resources/lang2Fhir/types/SearchResponse.js +1 -3
  233. package/dist/cjs/api/resources/tools/client/Client.d.ts +3 -23
  234. package/dist/cjs/api/resources/tools/client/Client.js +10 -12
  235. package/dist/cjs/api/resources/tools/client/requests/CohortRequest.d.ts +0 -3
  236. package/dist/cjs/api/resources/tools/client/requests/CohortRequest.js +1 -3
  237. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.ts +2 -7
  238. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.js +2 -3
  239. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.ts +0 -3
  240. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.js +1 -3
  241. package/dist/cjs/api/resources/tools/errors/BadRequestError.d.ts +0 -3
  242. package/dist/cjs/api/resources/tools/errors/BadRequestError.js +1 -3
  243. package/dist/cjs/api/resources/tools/errors/FailedDependencyError.d.ts +0 -3
  244. package/dist/cjs/api/resources/tools/errors/FailedDependencyError.js +1 -3
  245. package/dist/cjs/api/resources/tools/errors/ForbiddenError.d.ts +0 -3
  246. package/dist/cjs/api/resources/tools/errors/ForbiddenError.js +1 -3
  247. package/dist/cjs/api/resources/tools/errors/InternalServerError.d.ts +0 -3
  248. package/dist/cjs/api/resources/tools/errors/InternalServerError.js +1 -3
  249. package/dist/cjs/api/resources/tools/errors/UnauthorizedError.d.ts +0 -3
  250. package/dist/cjs/api/resources/tools/errors/UnauthorizedError.js +1 -3
  251. package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.d.ts +3 -23
  252. package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.js +13 -15
  253. package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.d.ts +0 -3
  254. package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.js +1 -3
  255. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.ts +3 -23
  256. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +13 -15
  257. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.ts +0 -3
  258. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.js +1 -3
  259. package/dist/cjs/api/resources/tools/types/CohortResponse.d.ts +0 -3
  260. package/dist/cjs/api/resources/tools/types/CohortResponse.js +1 -3
  261. package/dist/cjs/api/resources/tools/types/Lang2FhirAndCreateResponse.d.ts +0 -3
  262. package/dist/cjs/api/resources/tools/types/Lang2FhirAndCreateResponse.js +1 -3
  263. package/dist/cjs/api/resources/tools/types/Lang2FhirAndSearchResponse.d.ts +0 -3
  264. package/dist/cjs/api/resources/tools/types/Lang2FhirAndSearchResponse.js +1 -3
  265. package/dist/cjs/api/resources/tools/types/McpServerResponse.d.ts +0 -3
  266. package/dist/cjs/api/resources/tools/types/McpServerResponse.js +1 -3
  267. package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.d.ts +0 -3
  268. package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.js +1 -3
  269. package/dist/cjs/api/resources/tools/types/McpServerToolResponse.d.ts +0 -3
  270. package/dist/cjs/api/resources/tools/types/McpServerToolResponse.js +1 -3
  271. package/dist/cjs/api/resources/tools/types/SearchConcept.d.ts +0 -3
  272. package/dist/cjs/api/resources/tools/types/SearchConcept.js +1 -3
  273. package/dist/cjs/api/resources/workflows/client/Client.d.ts +145 -0
  274. package/dist/cjs/api/resources/workflows/client/Client.js +569 -0
  275. package/dist/cjs/api/resources/workflows/client/index.d.ts +2 -0
  276. package/dist/cjs/api/resources/workflows/client/index.js +17 -0
  277. package/dist/cjs/api/resources/workflows/client/requests/CreateWorkflowRequest.d.ts +40 -0
  278. package/dist/cjs/api/resources/workflows/client/requests/CreateWorkflowRequest.js +3 -0
  279. package/dist/cjs/api/resources/workflows/client/requests/ExecuteWorkflowRequest.d.ts +15 -0
  280. package/dist/cjs/api/resources/workflows/client/requests/ExecuteWorkflowRequest.js +3 -0
  281. package/dist/cjs/api/resources/workflows/client/requests/UpdateWorkflowRequest.d.ts +40 -0
  282. package/dist/cjs/api/resources/workflows/client/requests/UpdateWorkflowRequest.js +3 -0
  283. package/dist/cjs/api/resources/workflows/client/requests/WorkflowsGetRequest.d.ts +10 -0
  284. package/dist/cjs/api/resources/workflows/client/requests/WorkflowsGetRequest.js +3 -0
  285. package/dist/cjs/api/resources/workflows/client/requests/WorkflowsListRequest.d.ts +10 -0
  286. package/dist/cjs/api/resources/workflows/client/requests/WorkflowsListRequest.js +3 -0
  287. package/dist/cjs/api/resources/workflows/client/requests/index.d.ts +5 -0
  288. package/dist/cjs/api/resources/workflows/client/requests/index.js +2 -0
  289. package/dist/cjs/api/resources/workflows/errors/BadRequestError.d.ts +5 -0
  290. package/dist/cjs/api/resources/workflows/errors/BadRequestError.js +50 -0
  291. package/dist/cjs/api/resources/workflows/errors/ForbiddenError.d.ts +5 -0
  292. package/dist/cjs/api/resources/workflows/errors/ForbiddenError.js +50 -0
  293. package/dist/cjs/api/resources/workflows/errors/InternalServerError.d.ts +5 -0
  294. package/dist/cjs/api/resources/workflows/errors/InternalServerError.js +50 -0
  295. package/dist/cjs/api/resources/workflows/errors/NotFoundError.d.ts +5 -0
  296. package/dist/cjs/api/resources/workflows/errors/NotFoundError.js +50 -0
  297. package/dist/cjs/api/resources/workflows/errors/UnauthorizedError.d.ts +5 -0
  298. package/dist/cjs/api/resources/workflows/errors/UnauthorizedError.js +50 -0
  299. package/dist/cjs/api/resources/workflows/errors/index.d.ts +5 -0
  300. package/dist/cjs/api/resources/workflows/errors/index.js +21 -0
  301. package/dist/cjs/api/resources/workflows/index.d.ts +3 -0
  302. package/dist/cjs/api/resources/workflows/index.js +19 -0
  303. package/dist/cjs/api/resources/workflows/types/CreateWorkflowResponse.d.ts +13 -0
  304. package/dist/cjs/api/resources/workflows/types/CreateWorkflowResponse.js +3 -0
  305. package/dist/cjs/api/resources/workflows/types/DecisionNodeDefinition.d.ts +8 -0
  306. package/dist/cjs/api/resources/workflows/types/DecisionNodeDefinition.js +3 -0
  307. package/dist/cjs/api/resources/workflows/types/ExecuteWorkflowResponse.d.ts +13 -0
  308. package/dist/cjs/api/resources/workflows/types/ExecuteWorkflowResponse.js +3 -0
  309. package/dist/cjs/api/resources/workflows/types/Lang2FhirCreateDefinition.d.ts +10 -0
  310. package/dist/cjs/api/resources/workflows/types/Lang2FhirCreateDefinition.js +3 -0
  311. package/dist/cjs/api/resources/workflows/types/Lang2FhirSearchDefinition.d.ts +12 -0
  312. package/dist/cjs/api/resources/workflows/types/Lang2FhirSearchDefinition.js +3 -0
  313. package/dist/cjs/api/resources/workflows/types/ListWorkflowsResponse.d.ts +11 -0
  314. package/dist/cjs/api/resources/workflows/types/ListWorkflowsResponse.js +3 -0
  315. package/dist/cjs/api/resources/workflows/types/StepOperation.d.ts +7 -0
  316. package/dist/cjs/api/resources/workflows/types/StepOperation.js +3 -0
  317. package/dist/cjs/api/resources/workflows/types/SubWorkflowDefinition.d.ts +8 -0
  318. package/dist/cjs/api/resources/workflows/types/SubWorkflowDefinition.js +3 -0
  319. package/dist/cjs/api/resources/workflows/types/WorkflowConfig.d.ts +6 -0
  320. package/dist/cjs/api/resources/workflows/types/WorkflowConfig.js +3 -0
  321. package/dist/cjs/api/resources/workflows/types/WorkflowDefinition.d.ts +19 -0
  322. package/dist/cjs/api/resources/workflows/types/WorkflowDefinition.js +3 -0
  323. package/dist/cjs/api/resources/workflows/types/WorkflowGraph.d.ts +5 -0
  324. package/dist/cjs/api/resources/workflows/types/WorkflowGraph.js +3 -0
  325. package/dist/cjs/api/resources/workflows/types/WorkflowResponse.d.ts +28 -0
  326. package/dist/cjs/api/resources/workflows/types/WorkflowResponse.js +3 -0
  327. package/dist/cjs/api/resources/workflows/types/WorkflowStep.d.ts +28 -0
  328. package/dist/cjs/api/resources/workflows/types/WorkflowStep.js +14 -0
  329. package/dist/cjs/api/resources/workflows/types/WorkflowStepSummary.d.ts +25 -0
  330. package/dist/cjs/api/resources/workflows/types/WorkflowStepSummary.js +14 -0
  331. package/dist/cjs/api/resources/workflows/types/WorkflowsDeleteResponse.d.ts +4 -0
  332. package/dist/cjs/api/resources/workflows/types/WorkflowsDeleteResponse.js +3 -0
  333. package/dist/cjs/api/resources/workflows/types/WorkflowsGetResponse.d.ts +7 -0
  334. package/dist/cjs/api/resources/workflows/types/WorkflowsGetResponse.js +3 -0
  335. package/dist/cjs/api/resources/workflows/types/WorkflowsUpdateResponse.d.ts +9 -0
  336. package/dist/cjs/api/resources/workflows/types/WorkflowsUpdateResponse.js +3 -0
  337. package/dist/cjs/api/resources/workflows/types/index.d.ts +17 -0
  338. package/dist/cjs/api/resources/workflows/types/index.js +33 -0
  339. package/dist/cjs/core/auth/AuthProvider.d.ts +1 -1
  340. package/dist/cjs/core/auth/BasicAuth.js +2 -1
  341. package/dist/cjs/core/auth/index.d.ts +2 -2
  342. package/dist/cjs/core/fetcher/APIResponse.d.ts +1 -1
  343. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +1 -1
  344. package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
  345. package/dist/cjs/core/fetcher/EndpointMetadata.js +2 -0
  346. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
  347. package/dist/cjs/core/fetcher/EndpointSupplier.js +22 -0
  348. package/dist/cjs/core/fetcher/Fetcher.d.ts +5 -3
  349. package/dist/cjs/core/fetcher/Fetcher.js +3 -2
  350. package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +1 -1
  351. package/dist/cjs/core/fetcher/index.d.ts +2 -0
  352. package/dist/cjs/core/fetcher/index.js +3 -1
  353. package/dist/cjs/core/headers.d.ts +2 -3
  354. package/dist/cjs/environments.d.ts +0 -3
  355. package/dist/cjs/environments.js +1 -3
  356. package/dist/cjs/errors/phenomlError.d.ts +0 -3
  357. package/dist/cjs/errors/phenomlError.js +1 -3
  358. package/dist/cjs/errors/phenomlTimeoutError.d.ts +0 -3
  359. package/dist/cjs/errors/phenomlTimeoutError.js +1 -3
  360. package/dist/cjs/version.d.ts +1 -1
  361. package/dist/cjs/version.js +1 -1
  362. package/dist/esm/BaseClient.d.mts +27 -0
  363. package/dist/esm/BaseClient.mjs +3 -0
  364. package/dist/esm/Client.d.mts +6 -24
  365. package/dist/esm/Client.mjs +9 -5
  366. package/dist/esm/WrapperClient.mjs +1 -0
  367. package/dist/esm/api/resources/agent/client/Client.d.mts +11 -25
  368. package/dist/esm/api/resources/agent/client/Client.mjs +33 -29
  369. package/dist/esm/api/resources/agent/client/index.mjs +1 -0
  370. package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.d.mts +0 -3
  371. package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.mjs +1 -3
  372. package/dist/esm/api/resources/agent/client/requests/AgentGetChatMessagesRequest.d.mts +4 -4
  373. package/dist/esm/api/resources/agent/client/requests/AgentGetChatMessagesRequest.mjs +2 -4
  374. package/dist/esm/api/resources/agent/client/requests/AgentListRequest.d.mts +4 -4
  375. package/dist/esm/api/resources/agent/client/requests/AgentListRequest.mjs +1 -3
  376. package/dist/esm/api/resources/agent/client/requests/index.mjs +3 -1
  377. package/dist/esm/api/resources/agent/errors/BadRequestError.d.mts +0 -3
  378. package/dist/esm/api/resources/agent/errors/BadRequestError.mjs +2 -3
  379. package/dist/esm/api/resources/agent/errors/ForbiddenError.d.mts +0 -3
  380. package/dist/esm/api/resources/agent/errors/ForbiddenError.mjs +2 -3
  381. package/dist/esm/api/resources/agent/errors/InternalServerError.d.mts +0 -3
  382. package/dist/esm/api/resources/agent/errors/InternalServerError.mjs +2 -3
  383. package/dist/esm/api/resources/agent/errors/NotFoundError.d.mts +0 -3
  384. package/dist/esm/api/resources/agent/errors/NotFoundError.mjs +2 -3
  385. package/dist/esm/api/resources/agent/errors/UnauthorizedError.d.mts +0 -3
  386. package/dist/esm/api/resources/agent/errors/UnauthorizedError.mjs +2 -3
  387. package/dist/esm/api/resources/agent/resources/prompts/client/Client.d.mts +3 -23
  388. package/dist/esm/api/resources/agent/resources/prompts/client/Client.mjs +22 -24
  389. package/dist/esm/api/resources/agent/resources/prompts/client/index.mjs +1 -0
  390. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.d.mts +0 -3
  391. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.mjs +1 -3
  392. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.d.mts +0 -3
  393. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.mjs +1 -3
  394. package/dist/esm/api/resources/agent/resources/prompts/client/requests/index.mjs +2 -1
  395. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.d.mts +0 -3
  396. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.mjs +1 -3
  397. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsListResponse.d.mts +0 -3
  398. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsListResponse.mjs +2 -4
  399. package/dist/esm/api/resources/agent/types/AgentChatResponse.d.mts +0 -3
  400. package/dist/esm/api/resources/agent/types/AgentChatResponse.mjs +1 -3
  401. package/dist/esm/api/resources/agent/types/AgentCreateRequest.d.mts +0 -3
  402. package/dist/esm/api/resources/agent/types/AgentCreateRequest.mjs +1 -3
  403. package/dist/esm/api/resources/agent/types/AgentDeleteResponse.d.mts +0 -3
  404. package/dist/esm/api/resources/agent/types/AgentDeleteResponse.mjs +1 -3
  405. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.mts +1 -4
  406. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestOrder.mjs +1 -3
  407. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesResponse.d.mts +0 -3
  408. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesResponse.mjs +2 -4
  409. package/dist/esm/api/resources/agent/types/AgentListResponse.d.mts +0 -3
  410. package/dist/esm/api/resources/agent/types/AgentListResponse.mjs +2 -4
  411. package/dist/esm/api/resources/agent/types/AgentPromptsResponse.d.mts +0 -3
  412. package/dist/esm/api/resources/agent/types/AgentPromptsResponse.mjs +2 -4
  413. package/dist/esm/api/resources/agent/types/AgentResponse.d.mts +0 -3
  414. package/dist/esm/api/resources/agent/types/AgentResponse.mjs +2 -4
  415. package/dist/esm/api/resources/agent/types/AgentTemplate.d.mts +0 -3
  416. package/dist/esm/api/resources/agent/types/AgentTemplate.mjs +1 -3
  417. package/dist/esm/api/resources/agent/types/ChatMessageTemplate.d.mts +0 -3
  418. package/dist/esm/api/resources/agent/types/ChatMessageTemplate.mjs +1 -3
  419. package/dist/esm/api/resources/agent/types/ChatSessionTemplate.d.mts +0 -3
  420. package/dist/esm/api/resources/agent/types/ChatSessionTemplate.mjs +1 -3
  421. package/dist/esm/api/resources/agent/types/JsonPatch.d.mts +0 -3
  422. package/dist/esm/api/resources/agent/types/JsonPatch.mjs +2 -4
  423. package/dist/esm/api/resources/agent/types/JsonPatchOperation.d.mts +3 -7
  424. package/dist/esm/api/resources/agent/types/JsonPatchOperation.mjs +2 -3
  425. package/dist/esm/api/resources/agent/types/PromptTemplate.d.mts +0 -3
  426. package/dist/esm/api/resources/agent/types/PromptTemplate.mjs +1 -3
  427. package/dist/esm/api/resources/agent/types/SuccessResponse.d.mts +0 -3
  428. package/dist/esm/api/resources/agent/types/SuccessResponse.mjs +1 -3
  429. package/dist/esm/api/resources/authtoken/client/Client.d.mts +2 -13
  430. package/dist/esm/api/resources/authtoken/client/Client.mjs +3 -3
  431. package/dist/esm/api/resources/authtoken/errors/BadRequestError.d.mts +0 -3
  432. package/dist/esm/api/resources/authtoken/errors/BadRequestError.mjs +2 -3
  433. package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.d.mts +0 -3
  434. package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.mjs +2 -3
  435. package/dist/esm/api/resources/authtoken/resources/auth/client/index.mjs +1 -0
  436. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.d.mts +0 -3
  437. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.mjs +1 -3
  438. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/index.mjs +1 -1
  439. package/dist/esm/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.d.mts +0 -3
  440. package/dist/esm/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.mjs +1 -3
  441. package/dist/esm/api/resources/authtoken/types/BadRequestErrorBody.d.mts +0 -3
  442. package/dist/esm/api/resources/authtoken/types/BadRequestErrorBody.mjs +1 -3
  443. package/dist/esm/api/resources/authtoken/types/UnauthorizedErrorBody.d.mts +0 -3
  444. package/dist/esm/api/resources/authtoken/types/UnauthorizedErrorBody.mjs +1 -3
  445. package/dist/esm/api/resources/cohort/client/Client.d.mts +3 -23
  446. package/dist/esm/api/resources/cohort/client/Client.mjs +4 -6
  447. package/dist/esm/api/resources/cohort/client/index.mjs +1 -0
  448. package/dist/esm/api/resources/cohort/client/requests/CohortRequest.d.mts +0 -3
  449. package/dist/esm/api/resources/cohort/client/requests/CohortRequest.mjs +1 -3
  450. package/dist/esm/api/resources/cohort/client/requests/index.mjs +1 -1
  451. package/dist/esm/api/resources/cohort/errors/BadRequestError.d.mts +0 -3
  452. package/dist/esm/api/resources/cohort/errors/BadRequestError.mjs +2 -3
  453. package/dist/esm/api/resources/cohort/errors/InternalServerError.d.mts +0 -3
  454. package/dist/esm/api/resources/cohort/errors/InternalServerError.mjs +2 -3
  455. package/dist/esm/api/resources/cohort/errors/UnauthorizedError.d.mts +0 -3
  456. package/dist/esm/api/resources/cohort/errors/UnauthorizedError.mjs +2 -3
  457. package/dist/esm/api/resources/cohort/types/CohortResponse.d.mts +0 -3
  458. package/dist/esm/api/resources/cohort/types/CohortResponse.mjs +2 -4
  459. package/dist/esm/api/resources/cohort/types/SearchConcept.d.mts +0 -3
  460. package/dist/esm/api/resources/cohort/types/SearchConcept.mjs +1 -3
  461. package/dist/esm/api/resources/construe/client/Client.d.mts +3 -23
  462. package/dist/esm/api/resources/construe/client/Client.mjs +10 -12
  463. package/dist/esm/api/resources/construe/client/index.mjs +1 -0
  464. package/dist/esm/api/resources/construe/client/requests/ConstrueCohortRequest.d.mts +0 -3
  465. package/dist/esm/api/resources/construe/client/requests/ConstrueCohortRequest.mjs +1 -3
  466. package/dist/esm/api/resources/construe/client/requests/ExtractRequest.d.mts +0 -3
  467. package/dist/esm/api/resources/construe/client/requests/ExtractRequest.mjs +2 -4
  468. package/dist/esm/api/resources/construe/client/requests/UploadRequest.d.mts +2 -7
  469. package/dist/esm/api/resources/construe/client/requests/UploadRequest.mjs +2 -3
  470. package/dist/esm/api/resources/construe/client/requests/index.mjs +3 -1
  471. package/dist/esm/api/resources/construe/errors/BadRequestError.d.mts +0 -3
  472. package/dist/esm/api/resources/construe/errors/BadRequestError.mjs +2 -3
  473. package/dist/esm/api/resources/construe/errors/ConflictError.d.mts +0 -3
  474. package/dist/esm/api/resources/construe/errors/ConflictError.mjs +2 -3
  475. package/dist/esm/api/resources/construe/errors/FailedDependencyError.d.mts +0 -3
  476. package/dist/esm/api/resources/construe/errors/FailedDependencyError.mjs +2 -3
  477. package/dist/esm/api/resources/construe/errors/InternalServerError.d.mts +0 -3
  478. package/dist/esm/api/resources/construe/errors/InternalServerError.mjs +2 -3
  479. package/dist/esm/api/resources/construe/errors/UnauthorizedError.d.mts +0 -3
  480. package/dist/esm/api/resources/construe/errors/UnauthorizedError.mjs +2 -3
  481. package/dist/esm/api/resources/construe/types/BadRequestErrorBody.d.mts +0 -3
  482. package/dist/esm/api/resources/construe/types/BadRequestErrorBody.mjs +1 -3
  483. package/dist/esm/api/resources/construe/types/ConstrueCohortResponse.d.mts +0 -3
  484. package/dist/esm/api/resources/construe/types/ConstrueCohortResponse.mjs +1 -3
  485. package/dist/esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.mts +0 -3
  486. package/dist/esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.mjs +1 -3
  487. package/dist/esm/api/resources/construe/types/ExtractCodesResult.d.mts +0 -3
  488. package/dist/esm/api/resources/construe/types/ExtractCodesResult.mjs +2 -4
  489. package/dist/esm/api/resources/construe/types/ExtractRequestConfig.d.mts +1 -4
  490. package/dist/esm/api/resources/construe/types/ExtractRequestConfig.mjs +1 -3
  491. package/dist/esm/api/resources/construe/types/ExtractRequestSystem.d.mts +0 -3
  492. package/dist/esm/api/resources/construe/types/ExtractRequestSystem.mjs +1 -3
  493. package/dist/esm/api/resources/construe/types/ExtractedCodeResult.d.mts +0 -3
  494. package/dist/esm/api/resources/construe/types/ExtractedCodeResult.mjs +1 -3
  495. package/dist/esm/api/resources/construe/types/InternalServerErrorBody.d.mts +0 -3
  496. package/dist/esm/api/resources/construe/types/InternalServerErrorBody.mjs +1 -3
  497. package/dist/esm/api/resources/construe/types/UnauthorizedErrorBody.d.mts +0 -3
  498. package/dist/esm/api/resources/construe/types/UnauthorizedErrorBody.mjs +1 -3
  499. package/dist/esm/api/resources/fhir/client/Client.d.mts +26 -25
  500. package/dist/esm/api/resources/fhir/client/Client.mjs +42 -23
  501. package/dist/esm/api/resources/fhir/client/index.mjs +1 -0
  502. package/dist/esm/api/resources/fhir/client/requests/FhirCreateRequest.d.mts +11 -4
  503. package/dist/esm/api/resources/fhir/client/requests/FhirCreateRequest.mjs +2 -4
  504. package/dist/esm/api/resources/fhir/client/requests/FhirDeleteRequest.d.mts +0 -3
  505. package/dist/esm/api/resources/fhir/client/requests/FhirDeleteRequest.mjs +1 -3
  506. package/dist/esm/api/resources/fhir/client/requests/FhirExecuteBundleRequest.d.mts +0 -3
  507. package/dist/esm/api/resources/fhir/client/requests/FhirExecuteBundleRequest.mjs +2 -4
  508. package/dist/esm/api/resources/fhir/client/requests/FhirPatchRequest.d.mts +0 -3
  509. package/dist/esm/api/resources/fhir/client/requests/FhirPatchRequest.mjs +2 -4
  510. package/dist/esm/api/resources/fhir/client/requests/FhirSearchRequest.d.mts +0 -3
  511. package/dist/esm/api/resources/fhir/client/requests/FhirSearchRequest.mjs +1 -3
  512. package/dist/esm/api/resources/fhir/client/requests/FhirUpsertRequest.d.mts +12 -4
  513. package/dist/esm/api/resources/fhir/client/requests/FhirUpsertRequest.mjs +2 -4
  514. package/dist/esm/api/resources/fhir/client/requests/index.mjs +6 -1
  515. package/dist/esm/api/resources/fhir/errors/BadRequestError.d.mts +0 -3
  516. package/dist/esm/api/resources/fhir/errors/BadRequestError.mjs +2 -3
  517. package/dist/esm/api/resources/fhir/errors/InternalServerError.d.mts +0 -3
  518. package/dist/esm/api/resources/fhir/errors/InternalServerError.mjs +2 -3
  519. package/dist/esm/api/resources/fhir/errors/NotFoundError.d.mts +0 -3
  520. package/dist/esm/api/resources/fhir/errors/NotFoundError.mjs +2 -3
  521. package/dist/esm/api/resources/fhir/errors/UnauthorizedError.d.mts +0 -3
  522. package/dist/esm/api/resources/fhir/errors/UnauthorizedError.mjs +2 -3
  523. package/dist/esm/api/resources/fhir/types/ErrorResponse.d.mts +0 -3
  524. package/dist/esm/api/resources/fhir/types/ErrorResponse.mjs +1 -3
  525. package/dist/esm/api/resources/fhir/types/FhirBundle.d.mts +1 -4
  526. package/dist/esm/api/resources/fhir/types/FhirBundle.mjs +1 -3
  527. package/dist/esm/api/resources/fhir/types/FhirPatchRequestBodyItem.d.mts +3 -7
  528. package/dist/esm/api/resources/fhir/types/FhirPatchRequestBodyItem.mjs +2 -3
  529. package/dist/esm/api/resources/fhir/types/FhirResource.d.mts +0 -3
  530. package/dist/esm/api/resources/fhir/types/FhirResource.mjs +1 -3
  531. package/dist/esm/api/resources/fhir/types/FhirSearchResponse.d.mts +0 -3
  532. package/dist/esm/api/resources/fhir/types/FhirSearchResponse.mjs +2 -4
  533. package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +3 -23
  534. package/dist/esm/api/resources/fhirProvider/client/Client.mjs +22 -24
  535. package/dist/esm/api/resources/fhirProvider/client/index.mjs +1 -0
  536. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.d.mts +0 -3
  537. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.mjs +2 -4
  538. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.d.mts +0 -3
  539. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.mjs +2 -4
  540. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.d.mts +0 -3
  541. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderRemoveAuthConfigRequest.mjs +1 -3
  542. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.d.mts +0 -3
  543. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderSetActiveAuthConfigRequest.mjs +1 -3
  544. package/dist/esm/api/resources/fhirProvider/client/requests/index.mjs +4 -1
  545. package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.d.mts +0 -3
  546. package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.mjs +2 -3
  547. package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.d.mts +0 -3
  548. package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.mjs +2 -3
  549. package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.d.mts +0 -3
  550. package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.mjs +2 -3
  551. package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.d.mts +0 -3
  552. package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.mjs +2 -3
  553. package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.d.mts +0 -3
  554. package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.mjs +2 -3
  555. package/dist/esm/api/resources/fhirProvider/types/AuthMethod.d.mts +2 -7
  556. package/dist/esm/api/resources/fhirProvider/types/AuthMethod.mjs +2 -3
  557. package/dist/esm/api/resources/fhirProvider/types/FhirProviderAuthConfig.d.mts +0 -3
  558. package/dist/esm/api/resources/fhirProvider/types/FhirProviderAuthConfig.mjs +2 -4
  559. package/dist/esm/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.mts +0 -3
  560. package/dist/esm/api/resources/fhirProvider/types/FhirProviderDeleteResponse.mjs +1 -3
  561. package/dist/esm/api/resources/fhirProvider/types/FhirProviderListResponse.d.mts +0 -3
  562. package/dist/esm/api/resources/fhirProvider/types/FhirProviderListResponse.mjs +2 -4
  563. package/dist/esm/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.d.mts +0 -3
  564. package/dist/esm/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.mjs +2 -4
  565. package/dist/esm/api/resources/fhirProvider/types/FhirProviderResponse.d.mts +0 -3
  566. package/dist/esm/api/resources/fhirProvider/types/FhirProviderResponse.mjs +2 -4
  567. package/dist/esm/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.d.mts +0 -3
  568. package/dist/esm/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.mjs +2 -4
  569. package/dist/esm/api/resources/fhirProvider/types/FhirProviderTemplate.d.mts +0 -3
  570. package/dist/esm/api/resources/fhirProvider/types/FhirProviderTemplate.mjs +2 -4
  571. package/dist/esm/api/resources/fhirProvider/types/FhirQueryResponse.d.mts +0 -3
  572. package/dist/esm/api/resources/fhirProvider/types/FhirQueryResponse.mjs +1 -3
  573. package/dist/esm/api/resources/fhirProvider/types/JsonWebKey.d.mts +0 -3
  574. package/dist/esm/api/resources/fhirProvider/types/JsonWebKey.mjs +1 -3
  575. package/dist/esm/api/resources/fhirProvider/types/Provider.d.mts +2 -7
  576. package/dist/esm/api/resources/fhirProvider/types/Provider.mjs +2 -3
  577. package/dist/esm/api/resources/fhirProvider/types/ServiceAccountKey.d.mts +0 -3
  578. package/dist/esm/api/resources/fhirProvider/types/ServiceAccountKey.mjs +1 -3
  579. package/dist/esm/api/resources/fhirProvider/types/SmartConfiguration.d.mts +0 -3
  580. package/dist/esm/api/resources/fhirProvider/types/SmartConfiguration.mjs +1 -3
  581. package/dist/esm/api/resources/index.d.mts +1 -0
  582. package/dist/esm/api/resources/index.mjs +1 -0
  583. package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +3 -23
  584. package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +13 -15
  585. package/dist/esm/api/resources/lang2Fhir/client/index.mjs +1 -0
  586. package/dist/esm/api/resources/lang2Fhir/client/requests/CreateRequest.d.mts +2 -7
  587. package/dist/esm/api/resources/lang2Fhir/client/requests/CreateRequest.mjs +2 -3
  588. package/dist/esm/api/resources/lang2Fhir/client/requests/DocumentRequest.d.mts +4 -11
  589. package/dist/esm/api/resources/lang2Fhir/client/requests/DocumentRequest.mjs +3 -3
  590. package/dist/esm/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.d.mts +0 -3
  591. package/dist/esm/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.mjs +1 -3
  592. package/dist/esm/api/resources/lang2Fhir/client/requests/SearchRequest.d.mts +0 -3
  593. package/dist/esm/api/resources/lang2Fhir/client/requests/SearchRequest.mjs +1 -3
  594. package/dist/esm/api/resources/lang2Fhir/client/requests/index.mjs +4 -1
  595. package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.d.mts +0 -3
  596. package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.mjs +2 -3
  597. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.d.mts +0 -3
  598. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.mjs +2 -3
  599. package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.d.mts +0 -3
  600. package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.mjs +2 -3
  601. package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.d.mts +0 -3
  602. package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.mjs +2 -3
  603. package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.d.mts +0 -3
  604. package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.mjs +2 -3
  605. package/dist/esm/api/resources/lang2Fhir/types/FhirResource.d.mts +0 -3
  606. package/dist/esm/api/resources/lang2Fhir/types/FhirResource.mjs +1 -3
  607. package/dist/esm/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.mts +0 -3
  608. package/dist/esm/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.mjs +1 -3
  609. package/dist/esm/api/resources/lang2Fhir/types/SearchResponse.d.mts +0 -3
  610. package/dist/esm/api/resources/lang2Fhir/types/SearchResponse.mjs +1 -3
  611. package/dist/esm/api/resources/tools/client/Client.d.mts +3 -23
  612. package/dist/esm/api/resources/tools/client/Client.mjs +10 -12
  613. package/dist/esm/api/resources/tools/client/index.mjs +1 -0
  614. package/dist/esm/api/resources/tools/client/requests/CohortRequest.d.mts +0 -3
  615. package/dist/esm/api/resources/tools/client/requests/CohortRequest.mjs +1 -3
  616. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.mts +2 -7
  617. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.mjs +2 -3
  618. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.mts +0 -3
  619. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.mjs +1 -3
  620. package/dist/esm/api/resources/tools/client/requests/index.mjs +3 -1
  621. package/dist/esm/api/resources/tools/errors/BadRequestError.d.mts +0 -3
  622. package/dist/esm/api/resources/tools/errors/BadRequestError.mjs +2 -3
  623. package/dist/esm/api/resources/tools/errors/FailedDependencyError.d.mts +0 -3
  624. package/dist/esm/api/resources/tools/errors/FailedDependencyError.mjs +2 -3
  625. package/dist/esm/api/resources/tools/errors/ForbiddenError.d.mts +0 -3
  626. package/dist/esm/api/resources/tools/errors/ForbiddenError.mjs +2 -3
  627. package/dist/esm/api/resources/tools/errors/InternalServerError.d.mts +0 -3
  628. package/dist/esm/api/resources/tools/errors/InternalServerError.mjs +2 -3
  629. package/dist/esm/api/resources/tools/errors/UnauthorizedError.d.mts +0 -3
  630. package/dist/esm/api/resources/tools/errors/UnauthorizedError.mjs +2 -3
  631. package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.d.mts +3 -23
  632. package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.mjs +13 -15
  633. package/dist/esm/api/resources/tools/resources/mcpServer/client/index.mjs +1 -0
  634. package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.d.mts +0 -3
  635. package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.mjs +1 -3
  636. package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/index.mjs +1 -1
  637. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.mts +3 -23
  638. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +13 -15
  639. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.mjs +1 -0
  640. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.mts +0 -3
  641. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.mjs +1 -3
  642. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.mjs +1 -1
  643. package/dist/esm/api/resources/tools/types/CohortResponse.d.mts +0 -3
  644. package/dist/esm/api/resources/tools/types/CohortResponse.mjs +2 -4
  645. package/dist/esm/api/resources/tools/types/Lang2FhirAndCreateResponse.d.mts +0 -3
  646. package/dist/esm/api/resources/tools/types/Lang2FhirAndCreateResponse.mjs +1 -3
  647. package/dist/esm/api/resources/tools/types/Lang2FhirAndSearchResponse.d.mts +0 -3
  648. package/dist/esm/api/resources/tools/types/Lang2FhirAndSearchResponse.mjs +1 -3
  649. package/dist/esm/api/resources/tools/types/McpServerResponse.d.mts +0 -3
  650. package/dist/esm/api/resources/tools/types/McpServerResponse.mjs +1 -3
  651. package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.d.mts +0 -3
  652. package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.mjs +1 -3
  653. package/dist/esm/api/resources/tools/types/McpServerToolResponse.d.mts +0 -3
  654. package/dist/esm/api/resources/tools/types/McpServerToolResponse.mjs +1 -3
  655. package/dist/esm/api/resources/tools/types/SearchConcept.d.mts +0 -3
  656. package/dist/esm/api/resources/tools/types/SearchConcept.mjs +1 -3
  657. package/dist/esm/api/resources/workflows/client/Client.d.mts +145 -0
  658. package/dist/esm/api/resources/workflows/client/Client.mjs +532 -0
  659. package/dist/esm/api/resources/workflows/client/index.d.mts +2 -0
  660. package/dist/esm/api/resources/workflows/client/index.mjs +2 -0
  661. package/dist/esm/api/resources/workflows/client/requests/CreateWorkflowRequest.d.mts +40 -0
  662. package/dist/esm/api/resources/workflows/client/requests/CreateWorkflowRequest.mjs +2 -0
  663. package/dist/esm/api/resources/workflows/client/requests/ExecuteWorkflowRequest.d.mts +15 -0
  664. package/dist/esm/api/resources/workflows/client/requests/ExecuteWorkflowRequest.mjs +2 -0
  665. package/dist/esm/api/resources/workflows/client/requests/UpdateWorkflowRequest.d.mts +40 -0
  666. package/dist/esm/api/resources/workflows/client/requests/UpdateWorkflowRequest.mjs +2 -0
  667. package/dist/esm/api/resources/workflows/client/requests/WorkflowsGetRequest.d.mts +10 -0
  668. package/dist/esm/api/resources/workflows/client/requests/WorkflowsGetRequest.mjs +2 -0
  669. package/dist/esm/api/resources/workflows/client/requests/WorkflowsListRequest.d.mts +10 -0
  670. package/dist/esm/api/resources/workflows/client/requests/WorkflowsListRequest.mjs +2 -0
  671. package/dist/esm/api/resources/workflows/client/requests/index.d.mts +5 -0
  672. package/dist/esm/api/resources/workflows/client/requests/index.mjs +5 -0
  673. package/dist/esm/api/resources/workflows/errors/BadRequestError.d.mts +5 -0
  674. package/dist/esm/api/resources/workflows/errors/BadRequestError.mjs +14 -0
  675. package/dist/esm/api/resources/workflows/errors/ForbiddenError.d.mts +5 -0
  676. package/dist/esm/api/resources/workflows/errors/ForbiddenError.mjs +14 -0
  677. package/dist/esm/api/resources/workflows/errors/InternalServerError.d.mts +5 -0
  678. package/dist/esm/api/resources/workflows/errors/InternalServerError.mjs +14 -0
  679. package/dist/esm/api/resources/workflows/errors/NotFoundError.d.mts +5 -0
  680. package/dist/esm/api/resources/workflows/errors/NotFoundError.mjs +14 -0
  681. package/dist/esm/api/resources/workflows/errors/UnauthorizedError.d.mts +5 -0
  682. package/dist/esm/api/resources/workflows/errors/UnauthorizedError.mjs +14 -0
  683. package/dist/esm/api/resources/workflows/errors/index.d.mts +5 -0
  684. package/dist/esm/api/resources/workflows/errors/index.mjs +5 -0
  685. package/dist/esm/api/resources/workflows/index.d.mts +3 -0
  686. package/dist/esm/api/resources/workflows/index.mjs +3 -0
  687. package/dist/esm/api/resources/workflows/types/CreateWorkflowResponse.d.mts +13 -0
  688. package/dist/esm/api/resources/workflows/types/CreateWorkflowResponse.mjs +2 -0
  689. package/dist/esm/api/resources/workflows/types/DecisionNodeDefinition.d.mts +8 -0
  690. package/dist/esm/api/resources/workflows/types/DecisionNodeDefinition.mjs +2 -0
  691. package/dist/esm/api/resources/workflows/types/ExecuteWorkflowResponse.d.mts +13 -0
  692. package/dist/esm/api/resources/workflows/types/ExecuteWorkflowResponse.mjs +2 -0
  693. package/dist/esm/api/resources/workflows/types/Lang2FhirCreateDefinition.d.mts +10 -0
  694. package/dist/esm/api/resources/workflows/types/Lang2FhirCreateDefinition.mjs +2 -0
  695. package/dist/esm/api/resources/workflows/types/Lang2FhirSearchDefinition.d.mts +12 -0
  696. package/dist/esm/api/resources/workflows/types/Lang2FhirSearchDefinition.mjs +2 -0
  697. package/dist/esm/api/resources/workflows/types/ListWorkflowsResponse.d.mts +11 -0
  698. package/dist/esm/api/resources/workflows/types/ListWorkflowsResponse.mjs +2 -0
  699. package/dist/esm/api/resources/workflows/types/StepOperation.d.mts +7 -0
  700. package/dist/esm/api/resources/workflows/types/StepOperation.mjs +2 -0
  701. package/dist/esm/api/resources/workflows/types/SubWorkflowDefinition.d.mts +8 -0
  702. package/dist/esm/api/resources/workflows/types/SubWorkflowDefinition.mjs +2 -0
  703. package/dist/esm/api/resources/workflows/types/WorkflowConfig.d.mts +6 -0
  704. package/dist/esm/api/resources/workflows/types/WorkflowConfig.mjs +2 -0
  705. package/dist/esm/api/resources/workflows/types/WorkflowDefinition.d.mts +19 -0
  706. package/dist/esm/api/resources/workflows/types/WorkflowDefinition.mjs +2 -0
  707. package/dist/esm/api/resources/workflows/types/WorkflowGraph.d.mts +5 -0
  708. package/dist/esm/api/resources/workflows/types/WorkflowGraph.mjs +2 -0
  709. package/dist/esm/api/resources/workflows/types/WorkflowResponse.d.mts +28 -0
  710. package/dist/esm/api/resources/workflows/types/WorkflowResponse.mjs +2 -0
  711. package/dist/esm/api/resources/workflows/types/WorkflowStep.d.mts +28 -0
  712. package/dist/esm/api/resources/workflows/types/WorkflowStep.mjs +12 -0
  713. package/dist/esm/api/resources/workflows/types/WorkflowStepSummary.d.mts +25 -0
  714. package/dist/esm/api/resources/workflows/types/WorkflowStepSummary.mjs +11 -0
  715. package/dist/esm/api/resources/workflows/types/WorkflowsDeleteResponse.d.mts +4 -0
  716. package/dist/esm/api/resources/workflows/types/WorkflowsDeleteResponse.mjs +2 -0
  717. package/dist/esm/api/resources/workflows/types/WorkflowsGetResponse.d.mts +7 -0
  718. package/dist/esm/api/resources/workflows/types/WorkflowsGetResponse.mjs +2 -0
  719. package/dist/esm/api/resources/workflows/types/WorkflowsUpdateResponse.d.mts +9 -0
  720. package/dist/esm/api/resources/workflows/types/WorkflowsUpdateResponse.mjs +2 -0
  721. package/dist/esm/api/resources/workflows/types/index.d.mts +17 -0
  722. package/dist/esm/api/resources/workflows/types/index.mjs +17 -0
  723. package/dist/esm/core/auth/AuthProvider.d.mts +1 -1
  724. package/dist/esm/core/auth/BasicAuth.mjs +2 -1
  725. package/dist/esm/core/auth/index.d.mts +2 -2
  726. package/dist/esm/core/fetcher/APIResponse.d.mts +1 -1
  727. package/dist/esm/core/fetcher/BinaryResponse.d.mts +1 -1
  728. package/dist/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
  729. package/dist/esm/core/fetcher/EndpointMetadata.mjs +1 -0
  730. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
  731. package/dist/esm/core/fetcher/EndpointSupplier.mjs +20 -0
  732. package/dist/esm/core/fetcher/Fetcher.d.mts +5 -3
  733. package/dist/esm/core/fetcher/Fetcher.mjs +3 -2
  734. package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +1 -1
  735. package/dist/esm/core/fetcher/index.d.mts +2 -0
  736. package/dist/esm/core/fetcher/index.mjs +1 -0
  737. package/dist/esm/core/headers.d.mts +2 -3
  738. package/dist/esm/environments.d.mts +0 -3
  739. package/dist/esm/environments.mjs +1 -3
  740. package/dist/esm/errors/phenomlError.d.mts +0 -3
  741. package/dist/esm/errors/phenomlError.mjs +2 -3
  742. package/dist/esm/errors/phenomlTimeoutError.d.mts +0 -3
  743. package/dist/esm/errors/phenomlTimeoutError.mjs +1 -3
  744. package/dist/esm/version.d.mts +1 -1
  745. package/dist/esm/version.mjs +1 -1
  746. package/package.json +2 -2
  747. package/reference.md +458 -1
@@ -0,0 +1,28 @@
1
+ import * as phenoml from "../../../index.js";
2
+ /**
3
+ * Simplified workflow representation without implementation details
4
+ */
5
+ export interface WorkflowResponse {
6
+ /** Unique identifier for the workflow */
7
+ id?: string;
8
+ /** ID of the user who created the workflow */
9
+ user_id?: string;
10
+ /** Human-readable name for the workflow */
11
+ name?: string;
12
+ /** Natural language instructions that define the workflow logic */
13
+ workflow_instructions?: string;
14
+ /** Sample data used for workflow graph generation */
15
+ sample_data?: Record<string, unknown>;
16
+ config?: phenoml.workflows.WorkflowConfig;
17
+ graph?: WorkflowResponse.Graph;
18
+ /** Timestamp when the workflow was created */
19
+ created_at?: string;
20
+ /** Timestamp when the workflow was last updated */
21
+ updated_at?: string;
22
+ }
23
+ export declare namespace WorkflowResponse {
24
+ interface Graph {
25
+ /** Simplified list of workflow steps without operation details */
26
+ steps?: phenoml.workflows.WorkflowStepSummary[];
27
+ }
28
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,28 @@
1
+ import * as phenoml from "../../../index.js";
2
+ export interface WorkflowStep {
3
+ /** Unique identifier for the step */
4
+ id?: string;
5
+ /** Human-readable name for the step */
6
+ name?: string;
7
+ /** Detailed description of what the step does */
8
+ description?: string;
9
+ /** Type of operation this step performs */
10
+ type?: WorkflowStep.Type;
11
+ operation?: phenoml.workflows.StepOperation;
12
+ /** Selected FHIR provider ID for this step */
13
+ provider_id?: string;
14
+ /** IDs of steps this step depends on */
15
+ dependencies?: string[];
16
+ /** Whether to use dynamic lang2fhir generation for this step */
17
+ dynamic_generation?: boolean;
18
+ }
19
+ export declare namespace WorkflowStep {
20
+ /** Type of operation this step performs */
21
+ const Type: {
22
+ readonly Search: "search";
23
+ readonly Create: "create";
24
+ readonly Workflow: "workflow";
25
+ readonly DecisionNode: "decision_node";
26
+ };
27
+ type Type = (typeof Type)[keyof typeof Type];
28
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.WorkflowStep = void 0;
5
+ var WorkflowStep;
6
+ (function (WorkflowStep) {
7
+ /** Type of operation this step performs */
8
+ WorkflowStep.Type = {
9
+ Search: "search",
10
+ Create: "create",
11
+ Workflow: "workflow",
12
+ DecisionNode: "decision_node",
13
+ };
14
+ })(WorkflowStep || (exports.WorkflowStep = WorkflowStep = {}));
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Simplified workflow step without implementation details
3
+ */
4
+ export interface WorkflowStepSummary {
5
+ /** Unique identifier for the step */
6
+ id?: string;
7
+ /** Human-readable name for the step */
8
+ name?: string;
9
+ /** Detailed description of what the step does */
10
+ description?: string;
11
+ /** Type of operation this step performs */
12
+ type?: WorkflowStepSummary.Type;
13
+ /** Selected FHIR provider ID for this step */
14
+ provider_id?: string;
15
+ }
16
+ export declare namespace WorkflowStepSummary {
17
+ /** Type of operation this step performs */
18
+ const Type: {
19
+ readonly Search: "search";
20
+ readonly Create: "create";
21
+ readonly Workflow: "workflow";
22
+ readonly DecisionNode: "decision_node";
23
+ };
24
+ type Type = (typeof Type)[keyof typeof Type];
25
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.WorkflowStepSummary = void 0;
5
+ var WorkflowStepSummary;
6
+ (function (WorkflowStepSummary) {
7
+ /** Type of operation this step performs */
8
+ WorkflowStepSummary.Type = {
9
+ Search: "search",
10
+ Create: "create",
11
+ Workflow: "workflow",
12
+ DecisionNode: "decision_node",
13
+ };
14
+ })(WorkflowStepSummary || (exports.WorkflowStepSummary = WorkflowStepSummary = {}));
@@ -0,0 +1,4 @@
1
+ export interface WorkflowsDeleteResponse {
2
+ success?: boolean;
3
+ message?: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import * as phenoml from "../../../index.js";
2
+ export interface WorkflowsGetResponse {
3
+ success?: boolean;
4
+ workflow?: phenoml.workflows.WorkflowResponse;
5
+ /** Only included when verbose=true - contains full implementation details */
6
+ workflow_details?: phenoml.workflows.WorkflowDefinition;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import * as phenoml from "../../../index.js";
2
+ export interface WorkflowsUpdateResponse {
3
+ success?: boolean;
4
+ message?: string;
5
+ /** Simplified workflow response with only essential step information */
6
+ workflow?: phenoml.workflows.WorkflowResponse;
7
+ /** Only included when verbose=true - contains full implementation details */
8
+ workflow_details?: phenoml.workflows.WorkflowDefinition;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ export * from "./WorkflowsGetResponse.js";
2
+ export * from "./WorkflowsUpdateResponse.js";
3
+ export * from "./WorkflowsDeleteResponse.js";
4
+ export * from "./CreateWorkflowResponse.js";
5
+ export * from "./ExecuteWorkflowResponse.js";
6
+ export * from "./ListWorkflowsResponse.js";
7
+ export * from "./WorkflowResponse.js";
8
+ export * from "./WorkflowStepSummary.js";
9
+ export * from "./WorkflowDefinition.js";
10
+ export * from "./WorkflowConfig.js";
11
+ export * from "./WorkflowGraph.js";
12
+ export * from "./WorkflowStep.js";
13
+ export * from "./StepOperation.js";
14
+ export * from "./Lang2FhirSearchDefinition.js";
15
+ export * from "./Lang2FhirCreateDefinition.js";
16
+ export * from "./SubWorkflowDefinition.js";
17
+ export * from "./DecisionNodeDefinition.js";
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./WorkflowsGetResponse.js"), exports);
18
+ __exportStar(require("./WorkflowsUpdateResponse.js"), exports);
19
+ __exportStar(require("./WorkflowsDeleteResponse.js"), exports);
20
+ __exportStar(require("./CreateWorkflowResponse.js"), exports);
21
+ __exportStar(require("./ExecuteWorkflowResponse.js"), exports);
22
+ __exportStar(require("./ListWorkflowsResponse.js"), exports);
23
+ __exportStar(require("./WorkflowResponse.js"), exports);
24
+ __exportStar(require("./WorkflowStepSummary.js"), exports);
25
+ __exportStar(require("./WorkflowDefinition.js"), exports);
26
+ __exportStar(require("./WorkflowConfig.js"), exports);
27
+ __exportStar(require("./WorkflowGraph.js"), exports);
28
+ __exportStar(require("./WorkflowStep.js"), exports);
29
+ __exportStar(require("./StepOperation.js"), exports);
30
+ __exportStar(require("./Lang2FhirSearchDefinition.js"), exports);
31
+ __exportStar(require("./Lang2FhirCreateDefinition.js"), exports);
32
+ __exportStar(require("./SubWorkflowDefinition.js"), exports);
33
+ __exportStar(require("./DecisionNodeDefinition.js"), exports);
@@ -1,4 +1,4 @@
1
- import { AuthRequest } from "./AuthRequest.js";
1
+ import type { AuthRequest } from "./AuthRequest.js";
2
2
  export interface AuthProvider {
3
3
  getAuthRequest(): Promise<AuthRequest>;
4
4
  }
@@ -14,7 +14,8 @@ exports.BasicAuth = {
14
14
  fromAuthorizationHeader: (header) => {
15
15
  const credentials = header.replace(BASIC_AUTH_HEADER_PREFIX, "");
16
16
  const decoded = (0, base64_js_1.base64Decode)(credentials);
17
- const [username, password] = decoded.split(":", 2);
17
+ const [username, ...passwordParts] = decoded.split(":");
18
+ const password = passwordParts.length > 0 ? passwordParts.join(":") : undefined;
18
19
  if (username == null || password == null) {
19
20
  throw new Error("Invalid basic auth");
20
21
  }
@@ -1,4 +1,4 @@
1
- export { AuthProvider } from "./AuthProvider.js";
2
- export { type AuthRequest } from "./AuthRequest.js";
1
+ export type { AuthProvider } from "./AuthProvider.js";
2
+ export type { AuthRequest } from "./AuthRequest.js";
3
3
  export { BasicAuth } from "./BasicAuth.js";
4
4
  export { BearerToken } from "./BearerToken.js";
@@ -1,4 +1,4 @@
1
- import { RawResponse } from "./RawResponse.js";
1
+ import type { RawResponse } from "./RawResponse.js";
2
2
  /**
3
3
  * The response of an API call.
4
4
  * It is a successful response or a failed response.
@@ -1,4 +1,4 @@
1
- import { ResponseWithBody } from "./ResponseWithBody.js";
1
+ import type { ResponseWithBody } from "./ResponseWithBody.js";
2
2
  export type BinaryResponse = {
3
3
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
4
4
  bodyUsed: boolean;
@@ -0,0 +1,13 @@
1
+ export type SecuritySchemeKey = string;
2
+ /**
3
+ * A collection of security schemes, where the key is the name of the security scheme and the value is the list of scopes required for that scheme.
4
+ * All schemes in the collection must be satisfied for authentication to be successful.
5
+ */
6
+ export type SecuritySchemeCollection = Record<SecuritySchemeKey, AuthScope[]>;
7
+ export type AuthScope = string;
8
+ export type EndpointMetadata = {
9
+ /**
10
+ * An array of security scheme collections. Each collection represents an alternative way to authenticate.
11
+ */
12
+ security?: SecuritySchemeCollection[];
13
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import type { EndpointMetadata } from "./EndpointMetadata.js";
2
+ import { Supplier } from "./Supplier.js";
3
+ type EndpointSupplierFn<T> = (arg: {
4
+ endpointMetadata: EndpointMetadata;
5
+ }) => T | Promise<T>;
6
+ export type EndpointSupplier<T> = Supplier<T> | EndpointSupplierFn<T>;
7
+ export declare const EndpointSupplier: {
8
+ get: <T>(supplier: EndpointSupplier<T>, arg: {
9
+ endpointMetadata: EndpointMetadata;
10
+ }) => Promise<T>;
11
+ };
12
+ export {};
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.EndpointSupplier = void 0;
13
+ exports.EndpointSupplier = {
14
+ get: (supplier, arg) => __awaiter(void 0, void 0, void 0, function* () {
15
+ if (typeof supplier === "function") {
16
+ return supplier(arg);
17
+ }
18
+ else {
19
+ return supplier;
20
+ }
21
+ }),
22
+ };
@@ -1,12 +1,13 @@
1
- import { APIResponse } from "./APIResponse.js";
2
- import { Supplier } from "./Supplier.js";
1
+ import type { APIResponse } from "./APIResponse.js";
2
+ import type { EndpointMetadata } from "./EndpointMetadata.js";
3
+ import { EndpointSupplier } from "./EndpointSupplier.js";
3
4
  export type FetchFunction = <R = unknown>(args: Fetcher.Args) => Promise<APIResponse<R, Fetcher.Error>>;
4
5
  export declare namespace Fetcher {
5
6
  interface Args {
6
7
  url: string;
7
8
  method: string;
8
9
  contentType?: string;
9
- headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
10
+ headers?: Record<string, string | EndpointSupplier<string | null | undefined> | null | undefined>;
10
11
  queryParameters?: Record<string, unknown>;
11
12
  body?: unknown;
12
13
  timeoutMs?: number;
@@ -16,6 +17,7 @@ export declare namespace Fetcher {
16
17
  requestType?: "json" | "file" | "bytes";
17
18
  responseType?: "json" | "blob" | "sse" | "streaming" | "text" | "arrayBuffer" | "binary-response";
18
19
  duplex?: "half";
20
+ endpointMetadata?: EndpointMetadata;
19
21
  }
20
22
  type Error = FailedStatusCodeError | NonJsonError | TimeoutError | UnknownError;
21
23
  interface FailedStatusCodeError {
@@ -13,6 +13,7 @@ exports.fetcher = void 0;
13
13
  exports.fetcherImpl = fetcherImpl;
14
14
  const json_js_1 = require("../json.js");
15
15
  const createRequestUrl_js_1 = require("./createRequestUrl.js");
16
+ const EndpointSupplier_js_1 = require("./EndpointSupplier.js");
16
17
  const getErrorResponseBody_js_1 = require("./getErrorResponseBody.js");
17
18
  const getFetchFn_js_1 = require("./getFetchFn.js");
18
19
  const getRequestBody_js_1 = require("./getRequestBody.js");
@@ -20,9 +21,9 @@ const getResponseBody_js_1 = require("./getResponseBody.js");
20
21
  const makeRequest_js_1 = require("./makeRequest.js");
21
22
  const RawResponse_js_1 = require("./RawResponse.js");
22
23
  const requestWithRetries_js_1 = require("./requestWithRetries.js");
23
- const Supplier_js_1 = require("./Supplier.js");
24
24
  function getHeaders(args) {
25
25
  return __awaiter(this, void 0, void 0, function* () {
26
+ var _a;
26
27
  const newHeaders = {};
27
28
  if (args.body !== undefined && args.contentType != null) {
28
29
  newHeaders["Content-Type"] = args.contentType;
@@ -31,7 +32,7 @@ function getHeaders(args) {
31
32
  return newHeaders;
32
33
  }
33
34
  for (const [key, value] of Object.entries(args.headers)) {
34
- const result = yield Supplier_js_1.Supplier.get(value);
35
+ const result = yield EndpointSupplier_js_1.EndpointSupplier.get(value, { endpointMetadata: (_a = args.endpointMetadata) !== null && _a !== void 0 ? _a : {} });
35
36
  if (typeof result === "string") {
36
37
  newHeaders[key] = result;
37
38
  continue;
@@ -1,4 +1,4 @@
1
- import { WithRawResponse } from "./RawResponse.js";
1
+ import type { WithRawResponse } from "./RawResponse.js";
2
2
  /**
3
3
  * A promise that returns the parsed response and lets you retrieve the raw response too.
4
4
  */
@@ -1,5 +1,7 @@
1
1
  export type { APIResponse } from "./APIResponse.js";
2
2
  export type { BinaryResponse } from "./BinaryResponse.js";
3
+ export type { EndpointMetadata } from "./EndpointMetadata.js";
4
+ export { EndpointSupplier } from "./EndpointSupplier.js";
3
5
  export type { Fetcher, FetchFunction } from "./Fetcher.js";
4
6
  export { fetcher } from "./Fetcher.js";
5
7
  export { getHeader } from "./getHeader.js";
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Supplier = exports.unknownRawResponse = exports.toRawResponse = exports.abortRawResponse = exports.HttpResponsePromise = exports.getHeader = exports.fetcher = void 0;
3
+ exports.Supplier = exports.unknownRawResponse = exports.toRawResponse = exports.abortRawResponse = exports.HttpResponsePromise = exports.getHeader = exports.fetcher = exports.EndpointSupplier = void 0;
4
+ var EndpointSupplier_js_1 = require("./EndpointSupplier.js");
5
+ Object.defineProperty(exports, "EndpointSupplier", { enumerable: true, get: function () { return EndpointSupplier_js_1.EndpointSupplier; } });
4
6
  var Fetcher_js_1 = require("./Fetcher.js");
5
7
  Object.defineProperty(exports, "fetcher", { enumerable: true, get: function () { return Fetcher_js_1.fetcher; } });
6
8
  var getHeader_js_1 = require("./getHeader.js");
@@ -1,3 +1,2 @@
1
- import * as core from "./index.js";
2
- export declare function mergeHeaders(...headersArray: (Record<string, string | core.Supplier<string | null | undefined> | null | undefined> | null | undefined)[]): Record<string, string | core.Supplier<string | null | undefined>>;
3
- export declare function mergeOnlyDefinedHeaders(...headersArray: (Record<string, string | core.Supplier<string | null | undefined> | null | undefined> | null | undefined)[]): Record<string, string | core.Supplier<string | null | undefined>>;
1
+ export declare function mergeHeaders<THeaderValue>(...headersArray: (Record<string, THeaderValue> | null | undefined)[]): Record<string, string | THeaderValue>;
2
+ export declare function mergeOnlyDefinedHeaders<THeaderValue>(...headersArray: (Record<string, THeaderValue> | null | undefined)[]): Record<string, THeaderValue>;
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  export declare const phenomlEnvironment: {
5
2
  readonly Default: "https://experiment.app.pheno.ml";
6
3
  };
@@ -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
  Object.defineProperty(exports, "__esModule", { value: true });
6
4
  exports.phenomlEnvironment = void 0;
7
5
  exports.phenomlEnvironment = {
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  import * as core from "../core/index.js";
5
2
  export declare class phenomlError extends Error {
6
3
  readonly statusCode?: number;
@@ -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
  Object.defineProperty(exports, "__esModule", { value: true });
6
4
  exports.phenomlError = void 0;
7
5
  const json_js_1 = require("../core/json.js");
@@ -1,6 +1,3 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
1
  export declare class phenomlTimeoutError extends Error {
5
2
  constructor(message: string);
6
3
  }
@@ -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
  Object.defineProperty(exports, "__esModule", { value: true });
6
4
  exports.phenomlTimeoutError = void 0;
7
5
  class phenomlTimeoutError extends Error {
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.4";
1
+ export declare const SDK_VERSION = "0.0.7";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.0.4";
4
+ exports.SDK_VERSION = "0.0.7";
@@ -0,0 +1,27 @@
1
+ import * as environments from "./environments.mjs";
2
+ import * as core from "./core/index.mjs";
3
+ export interface BaseClientOptions {
4
+ environment?: core.Supplier<environments.phenomlEnvironment | string>;
5
+ /** Specify a custom URL to connect the client to. */
6
+ baseUrl?: core.Supplier<string>;
7
+ token?: core.Supplier<core.BearerToken | undefined>;
8
+ /** Additional headers to include in requests. */
9
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
10
+ /** The default maximum time to wait for a response in seconds. */
11
+ timeoutInSeconds?: number;
12
+ /** The default number of times to retry the request. Defaults to 2. */
13
+ maxRetries?: number;
14
+ fetcher?: core.FetchFunction;
15
+ }
16
+ export interface BaseRequestOptions {
17
+ /** The maximum time to wait for a response in seconds. */
18
+ timeoutInSeconds?: number;
19
+ /** The number of times to retry the request. Defaults to 2. */
20
+ maxRetries?: number;
21
+ /** A hook to abort the request. */
22
+ abortSignal?: AbortSignal;
23
+ /** Additional query string parameters to include in the request. */
24
+ queryParams?: Record<string, unknown>;
25
+ /** Additional headers to include in the request. */
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
+ }
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as environments from "./environments.mjs";
3
+ import * as core from "./core/index.mjs";
@@ -1,8 +1,4 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as environments from "./environments.mjs";
5
- import * as core from "./core/index.mjs";
1
+ import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
6
2
  import { Agent } from "./api/resources/agent/client/Client.mjs";
7
3
  import { Authtoken } from "./api/resources/authtoken/client/Client.mjs";
8
4
  import { Cohort } from "./api/resources/cohort/client/Client.mjs";
@@ -11,27 +7,11 @@ import { Fhir } from "./api/resources/fhir/client/Client.mjs";
11
7
  import { FhirProvider } from "./api/resources/fhirProvider/client/Client.mjs";
12
8
  import { Lang2Fhir } from "./api/resources/lang2Fhir/client/Client.mjs";
13
9
  import { Tools } from "./api/resources/tools/client/Client.mjs";
10
+ import { Workflows } from "./api/resources/workflows/client/Client.mjs";
14
11
  export declare namespace phenomlClient {
15
- interface Options {
16
- environment?: core.Supplier<environments.phenomlEnvironment | string>;
17
- /** Specify a custom URL to connect the client to. */
18
- baseUrl?: core.Supplier<string>;
19
- token?: core.Supplier<core.BearerToken | undefined>;
20
- /** Additional headers to include in requests. */
21
- headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
22
- fetcher?: core.FetchFunction;
12
+ interface Options extends BaseClientOptions {
23
13
  }
24
- interface RequestOptions {
25
- /** The maximum time to wait for a response in seconds. */
26
- timeoutInSeconds?: number;
27
- /** The number of times to retry the request. Defaults to 2. */
28
- maxRetries?: number;
29
- /** A hook to abort the request. */
30
- abortSignal?: AbortSignal;
31
- /** Additional query string parameters to include in the request. */
32
- queryParams?: Record<string, unknown>;
33
- /** Additional headers to include in the request. */
34
- headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
14
+ interface RequestOptions extends BaseRequestOptions {
35
15
  }
36
16
  }
37
17
  export declare class phenomlClient {
@@ -44,6 +24,7 @@ export declare class phenomlClient {
44
24
  protected _fhirProvider: FhirProvider | undefined;
45
25
  protected _lang2Fhir: Lang2Fhir | undefined;
46
26
  protected _tools: Tools | undefined;
27
+ protected _workflows: Workflows | undefined;
47
28
  constructor(_options?: phenomlClient.Options);
48
29
  get agent(): Agent;
49
30
  get authtoken(): Authtoken;
@@ -53,4 +34,5 @@ export declare class phenomlClient {
53
34
  get fhirProvider(): FhirProvider;
54
35
  get lang2Fhir(): Lang2Fhir;
55
36
  get tools(): Tools;
37
+ get workflows(): Workflows;
56
38
  }
@@ -1,8 +1,7 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
1
+ // This file was auto-generated by Fern from our API Definition.
4
2
  import * as core from "./core/index.mjs";
5
3
  import { mergeHeaders } from "./core/headers.mjs";
4
+ import * as environments from "./environments.mjs";
6
5
  import { Agent } from "./api/resources/agent/client/Client.mjs";
7
6
  import { Authtoken } from "./api/resources/authtoken/client/Client.mjs";
8
7
  import { Cohort } from "./api/resources/cohort/client/Client.mjs";
@@ -11,13 +10,14 @@ import { Fhir } from "./api/resources/fhir/client/Client.mjs";
11
10
  import { FhirProvider } from "./api/resources/fhirProvider/client/Client.mjs";
12
11
  import { Lang2Fhir } from "./api/resources/lang2Fhir/client/Client.mjs";
13
12
  import { Tools } from "./api/resources/tools/client/Client.mjs";
13
+ import { Workflows } from "./api/resources/workflows/client/Client.mjs";
14
14
  export class phenomlClient {
15
15
  constructor(_options = {}) {
16
16
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
17
17
  "X-Fern-Language": "JavaScript",
18
18
  "X-Fern-SDK-Name": "phenoml",
19
- "X-Fern-SDK-Version": "0.0.4",
20
- "User-Agent": "phenoml/0.0.4",
19
+ "X-Fern-SDK-Version": "0.0.7",
20
+ "User-Agent": "phenoml/0.0.7",
21
21
  "X-Fern-Runtime": core.RUNTIME.type,
22
22
  "X-Fern-Runtime-Version": core.RUNTIME.version,
23
23
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -54,4 +54,8 @@ export class phenomlClient {
54
54
  var _a;
55
55
  return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Tools(this._options)));
56
56
  }
57
+ get workflows() {
58
+ var _a;
59
+ return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Workflows(this._options)));
60
+ }
57
61
  }
@@ -12,6 +12,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
12
12
  });
13
13
  };
14
14
  import * as environments from "./environments.mjs";
15
+ import * as core from "./core/index.mjs";
15
16
  import { phenomlClient } from "./Client.mjs";
16
17
  import { Auth } from "./api/resources/authtoken/resources/auth/client/Client.mjs";
17
18
  // Create a token supplier that generates tokens on-demand