phenoml 16.0.0 → 17.0.0

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 (421) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/agent/client/Client.d.ts +3 -59
  3. package/dist/cjs/api/resources/agent/client/Client.js +7 -232
  4. package/dist/cjs/api/resources/agent/client/requests/index.d.ts +0 -3
  5. package/dist/cjs/api/resources/{fhir/errors/InternalServerError.d.ts → agent/errors/GatewayTimeoutError.d.ts} +1 -1
  6. package/dist/cjs/api/resources/{fhir/errors/BadGatewayError.js → agent/errors/GatewayTimeoutError.js} +5 -5
  7. package/dist/cjs/api/resources/agent/errors/index.d.ts +1 -0
  8. package/dist/cjs/api/resources/agent/errors/index.js +1 -0
  9. package/dist/cjs/api/resources/agent/resources/chat/client/Client.d.ts +79 -0
  10. package/dist/cjs/api/resources/agent/resources/chat/client/Client.js +305 -0
  11. package/dist/cjs/api/resources/agent/{client/requests/GetChatMessagesRequest.d.ts → resources/chat/client/requests/ListMessagesRequest.d.ts} +4 -4
  12. package/dist/cjs/api/resources/agent/resources/chat/client/requests/index.d.ts +3 -0
  13. package/dist/cjs/api/resources/agent/resources/chat/exports.d.ts +2 -0
  14. package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → agent/resources/chat}/exports.js +2 -2
  15. package/dist/cjs/api/resources/agent/resources/chat/index.d.ts +2 -0
  16. package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/index.js +1 -1
  17. package/dist/cjs/api/resources/agent/resources/chat/types/ListMessagesRequestOrder.d.ts +5 -0
  18. package/dist/cjs/api/resources/agent/{types/GetChatMessagesRequestOrder.js → resources/chat/types/ListMessagesRequestOrder.js} +2 -2
  19. package/dist/cjs/api/resources/agent/resources/chat/types/ListMessagesRequestRole.d.ts +7 -0
  20. package/dist/cjs/api/resources/agent/{types/GetChatMessagesRequestRole.js → resources/chat/types/ListMessagesRequestRole.js} +2 -2
  21. package/dist/cjs/api/resources/agent/{types/GetChatMessagesResponse.d.ts → resources/chat/types/ListMessagesResponse.d.ts} +2 -2
  22. package/dist/cjs/api/resources/agent/resources/chat/types/index.d.ts +3 -0
  23. package/dist/cjs/api/resources/agent/resources/chat/types/index.js +19 -0
  24. package/dist/cjs/api/resources/agent/resources/index.d.ts +3 -0
  25. package/dist/cjs/api/resources/agent/resources/index.js +4 -1
  26. package/dist/cjs/api/resources/agent/types/index.d.ts +0 -3
  27. package/dist/cjs/api/resources/agent/types/index.js +0 -3
  28. package/dist/cjs/api/resources/construe/client/Client.d.ts +6 -330
  29. package/dist/cjs/api/resources/construe/client/Client.js +8 -838
  30. package/dist/cjs/api/resources/construe/client/requests/index.d.ts +0 -9
  31. package/dist/cjs/api/resources/construe/client/requests/index.js +0 -3
  32. package/dist/cjs/api/resources/construe/exports.d.ts +1 -0
  33. package/dist/cjs/api/resources/construe/exports.js +1 -0
  34. package/dist/cjs/api/resources/construe/index.d.ts +1 -0
  35. package/dist/cjs/api/resources/construe/index.js +1 -0
  36. package/dist/cjs/api/resources/construe/resources/codeSystems/client/Client.d.ts +135 -0
  37. package/dist/cjs/api/resources/construe/resources/codeSystems/client/Client.js +433 -0
  38. package/dist/cjs/api/resources/construe/resources/codeSystems/client/index.d.ts +1 -0
  39. package/dist/cjs/api/resources/construe/resources/codeSystems/client/index.js +17 -0
  40. package/dist/{esm/api/resources/construe/client/requests/ExportCodeSystemRequest.d.mts → cjs/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.ts} +1 -1
  41. package/dist/cjs/api/resources/construe/{client/requests/DeleteCodeSystemRequest.d.ts → resources/codeSystems/client/requests/ExportRequest.d.ts} +1 -1
  42. package/dist/cjs/api/resources/construe/{client/requests/GetCodeSystemRequest.d.ts → resources/codeSystems/client/requests/FindRequest.d.ts} +1 -1
  43. package/dist/cjs/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.d.ts +1 -1
  44. package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/index.d.ts +4 -0
  45. package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/index.js +5 -0
  46. package/dist/cjs/api/resources/construe/resources/codeSystems/exports.d.ts +2 -0
  47. package/dist/cjs/api/resources/{tools/resources/mcpServer → construe/resources/codeSystems}/exports.js +2 -3
  48. package/dist/cjs/api/resources/construe/resources/codeSystems/index.d.ts +2 -0
  49. package/dist/cjs/api/resources/construe/resources/codeSystems/index.js +18 -0
  50. package/dist/{esm/api/resources/construe/types/UploadCodeSystemResponse.d.mts → cjs/api/resources/construe/resources/codeSystems/types/UploadResponse.d.ts} +1 -1
  51. package/dist/cjs/api/resources/construe/resources/codeSystems/types/index.d.ts +1 -0
  52. package/dist/cjs/api/resources/construe/resources/codeSystems/types/index.js +17 -0
  53. package/dist/cjs/api/resources/construe/resources/codes/client/Client.d.ts +227 -0
  54. package/dist/cjs/api/resources/construe/resources/codes/client/Client.js +528 -0
  55. package/dist/cjs/api/resources/construe/resources/codes/client/index.d.ts +1 -0
  56. package/dist/cjs/api/resources/construe/resources/codes/client/index.js +17 -0
  57. package/dist/cjs/api/resources/construe/{client/requests/ListCodesRequest.d.ts → resources/codes/client/requests/CodesListRequest.d.ts} +1 -1
  58. package/dist/cjs/api/resources/construe/{client → resources/codes/client}/requests/ExtractRequest.d.ts +1 -1
  59. package/dist/{esm/api/resources/construe/client/requests/GetCodeRequest.d.mts → cjs/api/resources/construe/resources/codes/client/requests/LookupRequest.d.ts} +1 -1
  60. package/dist/cjs/api/resources/construe/resources/codes/client/requests/index.d.ts +5 -0
  61. package/dist/cjs/api/resources/construe/resources/codes/exports.d.ts +2 -0
  62. package/dist/cjs/api/resources/construe/resources/codes/exports.js +21 -0
  63. package/dist/cjs/api/resources/construe/resources/index.d.ts +5 -0
  64. package/dist/cjs/api/resources/construe/resources/index.js +44 -0
  65. package/dist/cjs/api/resources/construe/types/index.d.ts +0 -1
  66. package/dist/cjs/api/resources/construe/types/index.js +0 -1
  67. package/dist/cjs/api/resources/fhir/client/Client.d.ts +50 -75
  68. package/dist/cjs/api/resources/fhir/client/Client.js +75 -205
  69. package/dist/cjs/api/resources/fhir/client/requests/CreateRequest.d.ts +2 -3
  70. package/dist/cjs/api/resources/fhir/client/requests/ExecuteBundleRequest.d.ts +19 -16
  71. package/dist/cjs/api/resources/fhir/client/requests/SearchRequest.d.ts +0 -8
  72. package/dist/cjs/api/resources/fhir/client/requests/UpsertRequest.d.ts +3 -4
  73. package/dist/cjs/api/resources/fhir/index.d.ts +0 -1
  74. package/dist/cjs/api/resources/fhir/index.js +0 -1
  75. package/dist/cjs/api/resources/fhir/types/index.d.ts +0 -4
  76. package/dist/cjs/api/resources/fhir/types/index.js +0 -4
  77. package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +3 -74
  78. package/dist/cjs/api/resources/fhirProvider/client/Client.js +5 -221
  79. package/dist/cjs/api/resources/fhirProvider/client/requests/index.d.ts +0 -2
  80. package/dist/cjs/api/resources/fhirProvider/exports.d.ts +1 -0
  81. package/dist/cjs/api/resources/fhirProvider/exports.js +1 -0
  82. package/dist/cjs/api/resources/fhirProvider/index.d.ts +1 -0
  83. package/dist/cjs/api/resources/fhirProvider/index.js +1 -0
  84. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/Client.d.ts +90 -0
  85. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/Client.js +280 -0
  86. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/index.d.ts +1 -0
  87. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/index.js +17 -0
  88. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/requests/index.d.ts +2 -0
  89. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/requests/index.js +2 -0
  90. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/exports.d.ts +2 -0
  91. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/exports.js +21 -0
  92. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/index.d.ts +2 -0
  93. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/index.js +18 -0
  94. package/dist/cjs/api/resources/fhirProvider/{types/RemoveAuthConfigResponse.d.ts → resources/authConfig/types/RemoveResponse.d.ts} +2 -2
  95. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/types/index.d.ts +1 -0
  96. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/types/index.js +17 -0
  97. package/dist/cjs/api/resources/fhirProvider/resources/index.d.ts +3 -0
  98. package/dist/cjs/api/resources/{tools/resources/mcpServer → fhirProvider}/resources/index.js +7 -2
  99. package/dist/cjs/api/resources/fhirProvider/types/index.d.ts +0 -1
  100. package/dist/cjs/api/resources/fhirProvider/types/index.js +0 -1
  101. package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +11 -1
  102. package/dist/cjs/api/resources/lang2Fhir/client/Client.js +33 -3
  103. package/dist/cjs/api/resources/{fhir/errors/ServiceUnavailableError.d.ts → lang2Fhir/errors/ClientClosedRequestError.d.ts} +1 -1
  104. package/dist/cjs/api/resources/lang2Fhir/errors/ClientClosedRequestError.js +54 -0
  105. package/dist/cjs/api/resources/{fhir/errors/UnauthorizedError.d.ts → lang2Fhir/errors/GatewayTimeoutError.d.ts} +1 -1
  106. package/dist/cjs/api/resources/{fhir/errors/InternalServerError.js → lang2Fhir/errors/GatewayTimeoutError.js} +5 -5
  107. package/dist/cjs/api/resources/lang2Fhir/errors/index.d.ts +3 -1
  108. package/dist/cjs/api/resources/lang2Fhir/errors/index.js +3 -1
  109. package/dist/cjs/api/resources/summary/resources/templates/client/Client.d.ts +7 -4
  110. package/dist/cjs/api/resources/summary/resources/templates/client/Client.js +6 -12
  111. package/dist/{esm/api/resources/summary/resources/templates/types/TemplatesDeleteResponse.d.mts → cjs/api/resources/summary/resources/templates/types/DeleteResponse.d.ts} +1 -1
  112. package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesGetResponse.d.ts → GetResponse.d.ts} +1 -1
  113. package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesListResponse.d.ts → ListResponse.d.ts} +1 -1
  114. package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesUpdateResponse.d.ts → UpdateResponse.d.ts} +1 -1
  115. package/dist/cjs/api/resources/summary/resources/templates/types/index.d.ts +4 -4
  116. package/dist/cjs/api/resources/summary/resources/templates/types/index.js +4 -4
  117. package/dist/cjs/api/resources/tools/client/Client.d.ts +6 -6
  118. package/dist/cjs/api/resources/tools/client/Client.js +8 -12
  119. package/dist/cjs/api/resources/{fhir/errors/BadRequestError.d.ts → tools/errors/NotFoundError.d.ts} +1 -1
  120. package/dist/cjs/api/resources/{fhir/errors/BadRequestError.js → tools/errors/NotFoundError.js} +5 -5
  121. package/dist/cjs/api/resources/tools/errors/index.d.ts +1 -1
  122. package/dist/cjs/api/resources/tools/errors/index.js +1 -1
  123. package/dist/cjs/api/resources/tools/resources/index.d.ts +3 -2
  124. package/dist/cjs/api/resources/tools/resources/index.js +4 -3
  125. package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.d.ts +21 -19
  126. package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.js +20 -16
  127. package/dist/cjs/api/resources/tools/resources/mcpServers/client/index.d.ts +1 -0
  128. package/dist/cjs/api/resources/tools/resources/mcpServers/client/index.js +17 -0
  129. package/dist/cjs/api/resources/tools/resources/mcpServers/client/requests/index.js +2 -0
  130. package/dist/cjs/api/resources/tools/resources/mcpServers/exports.d.ts +2 -0
  131. package/dist/cjs/api/resources/tools/resources/mcpServers/exports.js +21 -0
  132. package/dist/cjs/api/resources/tools/resources/mcpServers/index.d.ts +1 -0
  133. package/dist/cjs/api/resources/tools/resources/mcpServers/index.js +17 -0
  134. package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.d.ts +19 -17
  135. package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.js +22 -16
  136. package/dist/cjs/api/resources/tools/resources/mcpTools/client/index.js +2 -0
  137. package/dist/cjs/api/resources/tools/resources/mcpTools/exports.d.ts +2 -0
  138. package/dist/cjs/api/resources/tools/resources/mcpTools/exports.js +21 -0
  139. package/dist/cjs/api/resources/tools/resources/mcpTools/index.d.ts +1 -0
  140. package/dist/cjs/api/resources/tools/resources/mcpTools/index.js +17 -0
  141. package/dist/cjs/api/resources/workflows/client/Client.d.ts +3 -0
  142. package/dist/cjs/api/resources/workflows/client/Client.js +9 -0
  143. package/dist/cjs/version.d.ts +1 -1
  144. package/dist/cjs/version.js +1 -1
  145. package/dist/esm/BaseClient.mjs +2 -2
  146. package/dist/esm/api/resources/agent/client/Client.d.mts +3 -59
  147. package/dist/esm/api/resources/agent/client/Client.mjs +6 -231
  148. package/dist/esm/api/resources/agent/client/requests/index.d.mts +0 -3
  149. package/dist/esm/api/resources/{fhir/errors/InternalServerError.d.mts → agent/errors/GatewayTimeoutError.d.mts} +1 -1
  150. package/dist/esm/api/resources/{fhir/errors/InternalServerError.mjs → agent/errors/GatewayTimeoutError.mjs} +3 -3
  151. package/dist/esm/api/resources/agent/errors/index.d.mts +1 -0
  152. package/dist/esm/api/resources/agent/errors/index.mjs +1 -0
  153. package/dist/esm/api/resources/agent/resources/chat/client/Client.d.mts +79 -0
  154. package/dist/esm/api/resources/agent/resources/chat/client/Client.mjs +268 -0
  155. package/dist/esm/api/resources/agent/{client/requests/GetChatMessagesRequest.d.mts → resources/chat/client/requests/ListMessagesRequest.d.mts} +4 -4
  156. package/dist/esm/api/resources/agent/resources/chat/client/requests/index.d.mts +3 -0
  157. package/dist/esm/api/resources/agent/resources/chat/exports.d.mts +2 -0
  158. package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → agent/resources/chat}/exports.mjs +1 -1
  159. package/dist/esm/api/resources/agent/resources/chat/index.d.mts +2 -0
  160. package/dist/esm/api/resources/agent/resources/chat/index.mjs +2 -0
  161. package/dist/esm/api/resources/agent/resources/chat/types/ListMessagesRequestOrder.d.mts +5 -0
  162. package/dist/esm/api/resources/agent/{types/GetChatMessagesRequestOrder.mjs → resources/chat/types/ListMessagesRequestOrder.mjs} +1 -1
  163. package/dist/esm/api/resources/agent/resources/chat/types/ListMessagesRequestRole.d.mts +7 -0
  164. package/dist/esm/api/resources/agent/{types/GetChatMessagesRequestRole.mjs → resources/chat/types/ListMessagesRequestRole.mjs} +1 -1
  165. package/dist/esm/api/resources/agent/{types/GetChatMessagesResponse.d.mts → resources/chat/types/ListMessagesResponse.d.mts} +2 -2
  166. package/dist/esm/api/resources/agent/resources/chat/types/index.d.mts +3 -0
  167. package/dist/esm/api/resources/agent/resources/chat/types/index.mjs +3 -0
  168. package/dist/esm/api/resources/agent/resources/index.d.mts +3 -0
  169. package/dist/esm/api/resources/agent/resources/index.mjs +3 -0
  170. package/dist/esm/api/resources/agent/types/index.d.mts +0 -3
  171. package/dist/esm/api/resources/agent/types/index.mjs +0 -3
  172. package/dist/esm/api/resources/construe/client/Client.d.mts +6 -330
  173. package/dist/esm/api/resources/construe/client/Client.mjs +8 -838
  174. package/dist/esm/api/resources/construe/client/requests/index.d.mts +0 -9
  175. package/dist/esm/api/resources/construe/client/requests/index.mjs +1 -1
  176. package/dist/esm/api/resources/construe/exports.d.mts +1 -0
  177. package/dist/esm/api/resources/construe/exports.mjs +1 -0
  178. package/dist/esm/api/resources/construe/index.d.mts +1 -0
  179. package/dist/esm/api/resources/construe/index.mjs +1 -0
  180. package/dist/esm/api/resources/construe/resources/codeSystems/client/Client.d.mts +135 -0
  181. package/dist/esm/api/resources/construe/resources/codeSystems/client/Client.mjs +396 -0
  182. package/dist/esm/api/resources/construe/resources/codeSystems/client/index.d.mts +1 -0
  183. package/dist/esm/api/resources/construe/resources/codeSystems/client/index.mjs +1 -0
  184. package/dist/{cjs/api/resources/construe/client/requests/ExportCodeSystemRequest.d.ts → esm/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.mts} +1 -1
  185. package/dist/esm/api/resources/construe/{client/requests/DeleteCodeSystemRequest.d.mts → resources/codeSystems/client/requests/ExportRequest.d.mts} +1 -1
  186. package/dist/esm/api/resources/construe/{client/requests/GetCodeSystemRequest.d.mts → resources/codeSystems/client/requests/FindRequest.d.mts} +1 -1
  187. package/dist/esm/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.d.mts +1 -1
  188. package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/index.d.mts +4 -0
  189. package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/index.mjs +1 -0
  190. package/dist/esm/api/resources/construe/resources/codeSystems/exports.d.mts +2 -0
  191. package/dist/esm/api/resources/{tools/resources/mcpServer → construe/resources/codeSystems}/exports.mjs +1 -2
  192. package/dist/esm/api/resources/construe/resources/codeSystems/index.d.mts +2 -0
  193. package/dist/esm/api/resources/construe/resources/codeSystems/index.mjs +2 -0
  194. package/dist/{cjs/api/resources/construe/types/UploadCodeSystemResponse.d.ts → esm/api/resources/construe/resources/codeSystems/types/UploadResponse.d.mts} +1 -1
  195. package/dist/esm/api/resources/construe/resources/codeSystems/types/index.d.mts +1 -0
  196. package/dist/esm/api/resources/construe/resources/codeSystems/types/index.mjs +1 -0
  197. package/dist/esm/api/resources/construe/resources/codes/client/Client.d.mts +227 -0
  198. package/dist/esm/api/resources/construe/resources/codes/client/Client.mjs +491 -0
  199. package/dist/esm/api/resources/construe/resources/codes/client/index.d.mts +1 -0
  200. package/dist/esm/api/resources/construe/resources/codes/client/index.mjs +1 -0
  201. package/dist/esm/api/resources/construe/{client/requests/ListCodesRequest.d.mts → resources/codes/client/requests/CodesListRequest.d.mts} +1 -1
  202. package/dist/esm/api/resources/construe/{client → resources/codes/client}/requests/ExtractRequest.d.mts +1 -1
  203. package/dist/{cjs/api/resources/construe/client/requests/GetCodeRequest.d.ts → esm/api/resources/construe/resources/codes/client/requests/LookupRequest.d.mts} +1 -1
  204. package/dist/esm/api/resources/construe/resources/codes/client/requests/index.d.mts +5 -0
  205. package/dist/esm/api/resources/construe/resources/codes/exports.d.mts +2 -0
  206. package/dist/esm/api/resources/construe/resources/codes/exports.mjs +3 -0
  207. package/dist/esm/api/resources/construe/resources/index.d.mts +5 -0
  208. package/dist/esm/api/resources/construe/resources/index.mjs +5 -0
  209. package/dist/esm/api/resources/construe/types/index.d.mts +0 -1
  210. package/dist/esm/api/resources/construe/types/index.mjs +0 -1
  211. package/dist/esm/api/resources/fhir/client/Client.d.mts +50 -75
  212. package/dist/esm/api/resources/fhir/client/Client.mjs +75 -205
  213. package/dist/esm/api/resources/fhir/client/requests/CreateRequest.d.mts +2 -3
  214. package/dist/esm/api/resources/fhir/client/requests/ExecuteBundleRequest.d.mts +19 -16
  215. package/dist/esm/api/resources/fhir/client/requests/SearchRequest.d.mts +0 -8
  216. package/dist/esm/api/resources/fhir/client/requests/UpsertRequest.d.mts +3 -4
  217. package/dist/esm/api/resources/fhir/index.d.mts +0 -1
  218. package/dist/esm/api/resources/fhir/index.mjs +0 -1
  219. package/dist/esm/api/resources/fhir/types/index.d.mts +0 -4
  220. package/dist/esm/api/resources/fhir/types/index.mjs +0 -4
  221. package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +3 -74
  222. package/dist/esm/api/resources/fhirProvider/client/Client.mjs +5 -221
  223. package/dist/esm/api/resources/fhirProvider/client/requests/index.d.mts +0 -2
  224. package/dist/esm/api/resources/fhirProvider/exports.d.mts +1 -0
  225. package/dist/esm/api/resources/fhirProvider/exports.mjs +1 -0
  226. package/dist/esm/api/resources/fhirProvider/index.d.mts +1 -0
  227. package/dist/esm/api/resources/fhirProvider/index.mjs +1 -0
  228. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/Client.d.mts +90 -0
  229. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/Client.mjs +243 -0
  230. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/index.d.mts +1 -0
  231. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/index.mjs +1 -0
  232. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/requests/index.d.mts +2 -0
  233. package/dist/esm/api/resources/fhirProvider/resources/authConfig/exports.d.mts +2 -0
  234. package/dist/esm/api/resources/fhirProvider/resources/authConfig/exports.mjs +3 -0
  235. package/dist/esm/api/resources/fhirProvider/resources/authConfig/index.d.mts +2 -0
  236. package/dist/esm/api/resources/fhirProvider/resources/authConfig/index.mjs +2 -0
  237. package/dist/esm/api/resources/fhirProvider/{types/RemoveAuthConfigResponse.d.mts → resources/authConfig/types/RemoveResponse.d.mts} +2 -2
  238. package/dist/esm/api/resources/fhirProvider/resources/authConfig/types/index.d.mts +1 -0
  239. package/dist/esm/api/resources/fhirProvider/resources/authConfig/types/index.mjs +1 -0
  240. package/dist/esm/api/resources/fhirProvider/resources/index.d.mts +3 -0
  241. package/dist/esm/api/resources/fhirProvider/resources/index.mjs +3 -0
  242. package/dist/esm/api/resources/fhirProvider/types/index.d.mts +0 -1
  243. package/dist/esm/api/resources/fhirProvider/types/index.mjs +0 -1
  244. package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +11 -1
  245. package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +33 -3
  246. package/dist/esm/api/resources/{fhir/errors/ServiceUnavailableError.d.mts → lang2Fhir/errors/ClientClosedRequestError.d.mts} +1 -1
  247. package/dist/esm/api/resources/lang2Fhir/errors/ClientClosedRequestError.mjs +17 -0
  248. package/dist/esm/api/resources/{fhir/errors/UnauthorizedError.d.mts → lang2Fhir/errors/GatewayTimeoutError.d.mts} +1 -1
  249. package/dist/esm/api/resources/{fhir/errors/BadGatewayError.mjs → lang2Fhir/errors/GatewayTimeoutError.mjs} +3 -3
  250. package/dist/esm/api/resources/lang2Fhir/errors/index.d.mts +3 -1
  251. package/dist/esm/api/resources/lang2Fhir/errors/index.mjs +3 -1
  252. package/dist/esm/api/resources/summary/resources/templates/client/Client.d.mts +7 -4
  253. package/dist/esm/api/resources/summary/resources/templates/client/Client.mjs +6 -12
  254. package/dist/{cjs/api/resources/summary/resources/templates/types/TemplatesDeleteResponse.d.ts → esm/api/resources/summary/resources/templates/types/DeleteResponse.d.mts} +1 -1
  255. package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesGetResponse.d.mts → GetResponse.d.mts} +1 -1
  256. package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesListResponse.d.mts → ListResponse.d.mts} +1 -1
  257. package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesUpdateResponse.d.mts → UpdateResponse.d.mts} +1 -1
  258. package/dist/esm/api/resources/summary/resources/templates/types/index.d.mts +4 -4
  259. package/dist/esm/api/resources/summary/resources/templates/types/index.mjs +4 -4
  260. package/dist/esm/api/resources/tools/client/Client.d.mts +6 -6
  261. package/dist/esm/api/resources/tools/client/Client.mjs +8 -12
  262. package/dist/esm/api/resources/{fhir/errors/BadRequestError.d.mts → tools/errors/NotFoundError.d.mts} +1 -1
  263. package/dist/esm/api/resources/{fhir/errors/BadRequestError.mjs → tools/errors/NotFoundError.mjs} +3 -3
  264. package/dist/esm/api/resources/tools/errors/index.d.mts +1 -1
  265. package/dist/esm/api/resources/tools/errors/index.mjs +1 -1
  266. package/dist/esm/api/resources/tools/resources/index.d.mts +3 -2
  267. package/dist/esm/api/resources/tools/resources/index.mjs +3 -2
  268. package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.d.mts +21 -19
  269. package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/Client.mjs +18 -14
  270. package/dist/esm/api/resources/tools/resources/mcpServers/client/index.d.mts +1 -0
  271. package/dist/esm/api/resources/tools/resources/mcpServers/client/index.mjs +1 -0
  272. package/dist/esm/api/resources/tools/resources/mcpServers/client/requests/index.mjs +1 -0
  273. package/dist/esm/api/resources/tools/resources/mcpServers/exports.d.mts +2 -0
  274. package/dist/esm/api/resources/tools/resources/mcpServers/exports.mjs +3 -0
  275. package/dist/esm/api/resources/tools/resources/mcpServers/index.d.mts +1 -0
  276. package/dist/esm/api/resources/tools/resources/mcpServers/index.mjs +1 -0
  277. package/dist/esm/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.d.mts +19 -17
  278. package/dist/esm/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/Client.mjs +20 -14
  279. package/dist/esm/api/resources/tools/resources/mcpTools/client/index.d.mts +1 -0
  280. package/dist/esm/api/resources/tools/resources/mcpTools/client/index.mjs +1 -0
  281. package/dist/esm/api/resources/tools/resources/mcpTools/exports.d.mts +2 -0
  282. package/dist/esm/api/resources/tools/resources/mcpTools/exports.mjs +3 -0
  283. package/dist/esm/api/resources/tools/resources/mcpTools/index.d.mts +1 -0
  284. package/dist/esm/api/resources/tools/resources/mcpTools/index.mjs +1 -0
  285. package/dist/esm/api/resources/workflows/client/Client.d.mts +3 -0
  286. package/dist/esm/api/resources/workflows/client/Client.mjs +9 -0
  287. package/dist/esm/version.d.mts +1 -1
  288. package/dist/esm/version.mjs +1 -1
  289. package/openapi/openapi.json +353 -660
  290. package/package.json +57 -13
  291. package/reference.md +235 -211
  292. package/dist/cjs/api/resources/agent/types/GetChatMessagesRequestOrder.d.ts +0 -5
  293. package/dist/cjs/api/resources/agent/types/GetChatMessagesRequestRole.d.ts +0 -7
  294. package/dist/cjs/api/resources/fhir/errors/BadGatewayError.d.ts +0 -6
  295. package/dist/cjs/api/resources/fhir/errors/ServiceUnavailableError.js +0 -54
  296. package/dist/cjs/api/resources/fhir/errors/TooManyRequestsError.d.ts +0 -6
  297. package/dist/cjs/api/resources/fhir/errors/TooManyRequestsError.js +0 -54
  298. package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.js +0 -54
  299. package/dist/cjs/api/resources/fhir/errors/index.d.ts +0 -7
  300. package/dist/cjs/api/resources/fhir/errors/index.js +0 -23
  301. package/dist/cjs/api/resources/fhir/types/ErrorResponse.d.ts +0 -11
  302. package/dist/cjs/api/resources/fhir/types/FhirBundle.d.ts +0 -54
  303. package/dist/cjs/api/resources/fhir/types/FhirBundle.js +0 -23
  304. package/dist/cjs/api/resources/fhir/types/FhirResource.d.ts +0 -24
  305. package/dist/cjs/api/resources/fhir/types/SearchResponse.d.ts +0 -2
  306. package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.d.ts +0 -5
  307. package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.js +0 -54
  308. package/dist/cjs/api/resources/summary/resources/templates/types/TemplatesGetResponse.js +0 -3
  309. package/dist/cjs/api/resources/summary/resources/templates/types/TemplatesListResponse.js +0 -3
  310. package/dist/cjs/api/resources/summary/resources/templates/types/TemplatesUpdateResponse.js +0 -3
  311. package/dist/cjs/api/resources/tools/errors/FailedDependencyError.d.ts +0 -5
  312. package/dist/cjs/api/resources/tools/errors/FailedDependencyError.js +0 -54
  313. package/dist/cjs/api/resources/tools/resources/mcpServer/exports.d.ts +0 -3
  314. package/dist/cjs/api/resources/tools/resources/mcpServer/index.d.ts +0 -2
  315. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.d.ts +0 -1
  316. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/exports.d.ts +0 -2
  317. package/dist/esm/api/resources/agent/types/GetChatMessagesRequestOrder.d.mts +0 -5
  318. package/dist/esm/api/resources/agent/types/GetChatMessagesRequestRole.d.mts +0 -7
  319. package/dist/esm/api/resources/fhir/errors/BadGatewayError.d.mts +0 -6
  320. package/dist/esm/api/resources/fhir/errors/ServiceUnavailableError.mjs +0 -17
  321. package/dist/esm/api/resources/fhir/errors/TooManyRequestsError.d.mts +0 -6
  322. package/dist/esm/api/resources/fhir/errors/TooManyRequestsError.mjs +0 -17
  323. package/dist/esm/api/resources/fhir/errors/UnauthorizedError.mjs +0 -17
  324. package/dist/esm/api/resources/fhir/errors/index.d.mts +0 -7
  325. package/dist/esm/api/resources/fhir/errors/index.mjs +0 -7
  326. package/dist/esm/api/resources/fhir/types/ErrorResponse.d.mts +0 -11
  327. package/dist/esm/api/resources/fhir/types/FhirBundle.d.mts +0 -54
  328. package/dist/esm/api/resources/fhir/types/FhirBundle.mjs +0 -20
  329. package/dist/esm/api/resources/fhir/types/FhirResource.d.mts +0 -24
  330. package/dist/esm/api/resources/fhir/types/SearchResponse.d.mts +0 -2
  331. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.d.mts +0 -5
  332. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.mjs +0 -17
  333. package/dist/esm/api/resources/summary/resources/templates/types/TemplatesGetResponse.mjs +0 -2
  334. package/dist/esm/api/resources/summary/resources/templates/types/TemplatesListResponse.mjs +0 -2
  335. package/dist/esm/api/resources/summary/resources/templates/types/TemplatesUpdateResponse.mjs +0 -2
  336. package/dist/esm/api/resources/tools/errors/FailedDependencyError.d.mts +0 -5
  337. package/dist/esm/api/resources/tools/errors/FailedDependencyError.mjs +0 -17
  338. package/dist/esm/api/resources/tools/resources/mcpServer/exports.d.mts +0 -3
  339. package/dist/esm/api/resources/tools/resources/mcpServer/index.d.mts +0 -2
  340. package/dist/esm/api/resources/tools/resources/mcpServer/index.mjs +0 -2
  341. package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.d.mts +0 -1
  342. package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.mjs +0 -1
  343. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/exports.d.mts +0 -2
  344. /package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.d.ts +0 -0
  345. /package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.js +0 -0
  346. /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.d.ts +0 -0
  347. /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.js +0 -0
  348. /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.d.ts +0 -0
  349. /package/dist/cjs/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.js +0 -0
  350. /package/dist/cjs/api/resources/agent/{client/requests/GetChatMessagesRequest.js → resources/chat/client/requests/ListMessagesRequest.js} +0 -0
  351. /package/dist/cjs/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/requests/index.js +0 -0
  352. /package/dist/cjs/api/resources/agent/{types/GetChatMessagesResponse.js → resources/chat/types/ListMessagesResponse.js} +0 -0
  353. /package/dist/cjs/api/resources/construe/{client/requests/DeleteCodeSystemRequest.js → resources/codeSystems/client/requests/DeleteRequest.js} +0 -0
  354. /package/dist/cjs/api/resources/construe/{client/requests/ExportCodeSystemRequest.js → resources/codeSystems/client/requests/ExportRequest.js} +0 -0
  355. /package/dist/cjs/api/resources/construe/{client/requests/ExtractRequest.js → resources/codeSystems/client/requests/FindRequest.js} +0 -0
  356. /package/dist/cjs/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.js +0 -0
  357. /package/dist/cjs/api/resources/construe/{client/requests/GetCodeRequest.js → resources/codeSystems/types/UploadResponse.js} +0 -0
  358. /package/dist/cjs/api/resources/construe/{client/requests/GetCodeSystemRequest.js → resources/codes/client/requests/CodesListRequest.js} +0 -0
  359. /package/dist/cjs/api/resources/construe/{client/requests/ListCodesRequest.js → resources/codes/client/requests/ExtractRequest.js} +0 -0
  360. /package/dist/cjs/api/resources/construe/{client/requests/SearchSemanticRequest.js → resources/codes/client/requests/LookupRequest.js} +0 -0
  361. /package/dist/cjs/api/resources/construe/{client → resources/codes/client}/requests/SearchSemanticRequest.d.ts +0 -0
  362. /package/dist/cjs/api/resources/construe/{client/requests/SearchTextRequest.js → resources/codes/client/requests/SearchSemanticRequest.js} +0 -0
  363. /package/dist/cjs/api/resources/construe/{client → resources/codes/client}/requests/SearchTextRequest.d.ts +0 -0
  364. /package/dist/cjs/api/resources/construe/{types/UploadCodeSystemResponse.js → resources/codes/client/requests/SearchTextRequest.js} +0 -0
  365. /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools/client → construe/resources/codes/client/requests}/index.js +0 -0
  366. /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.d.ts +0 -0
  367. /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.js +0 -0
  368. /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.d.ts +0 -0
  369. /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.js +0 -0
  370. /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.d.ts +0 -0
  371. /package/dist/cjs/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.js +0 -0
  372. /package/dist/cjs/api/resources/{fhir/types/ErrorResponse.js → fhirProvider/resources/authConfig/types/RemoveResponse.js} +0 -0
  373. /package/dist/cjs/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.d.ts +0 -0
  374. /package/dist/cjs/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.js +0 -0
  375. /package/dist/cjs/api/resources/{fhir/types/FhirResource.js → summary/resources/templates/types/DeleteResponse.js} +0 -0
  376. /package/dist/cjs/api/resources/{fhir/types/SearchResponse.js → summary/resources/templates/types/GetResponse.js} +0 -0
  377. /package/dist/cjs/api/resources/{fhirProvider/types/RemoveAuthConfigResponse.js → summary/resources/templates/types/ListResponse.js} +0 -0
  378. /package/dist/cjs/api/resources/summary/resources/templates/types/{TemplatesDeleteResponse.js → UpdateResponse.js} +0 -0
  379. /package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.d.ts +0 -0
  380. /package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.js +0 -0
  381. /package/dist/cjs/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/index.d.ts +0 -0
  382. /package/dist/cjs/api/resources/tools/resources/{mcpServer/resources/tools → mcpTools}/client/index.d.ts +0 -0
  383. /package/dist/esm/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.d.mts +0 -0
  384. /package/dist/esm/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/index.mjs +0 -0
  385. /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.d.mts +0 -0
  386. /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentChatRequest.mjs +0 -0
  387. /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.d.mts +0 -0
  388. /package/dist/esm/api/resources/agent/{client → resources/chat/client}/requests/AgentStreamChatRequest.mjs +0 -0
  389. /package/dist/esm/api/resources/agent/{client/requests/GetChatMessagesRequest.mjs → resources/chat/client/requests/ListMessagesRequest.mjs} +0 -0
  390. /package/dist/esm/api/resources/{tools/resources/mcpServer → agent/resources/chat}/client/requests/index.mjs +0 -0
  391. /package/dist/esm/api/resources/agent/{types/GetChatMessagesResponse.mjs → resources/chat/types/ListMessagesResponse.mjs} +0 -0
  392. /package/dist/esm/api/resources/construe/{client/requests/DeleteCodeSystemRequest.mjs → resources/codeSystems/client/requests/DeleteRequest.mjs} +0 -0
  393. /package/dist/esm/api/resources/construe/{client/requests/ExportCodeSystemRequest.mjs → resources/codeSystems/client/requests/ExportRequest.mjs} +0 -0
  394. /package/dist/esm/api/resources/construe/{client/requests/ExtractRequest.mjs → resources/codeSystems/client/requests/FindRequest.mjs} +0 -0
  395. /package/dist/esm/api/resources/construe/{client → resources/codeSystems/client}/requests/UploadRequest.mjs +0 -0
  396. /package/dist/esm/api/resources/construe/{client/requests/GetCodeRequest.mjs → resources/codeSystems/types/UploadResponse.mjs} +0 -0
  397. /package/dist/esm/api/resources/construe/{client/requests/GetCodeSystemRequest.mjs → resources/codes/client/requests/CodesListRequest.mjs} +0 -0
  398. /package/dist/esm/api/resources/construe/{client/requests/ListCodesRequest.mjs → resources/codes/client/requests/ExtractRequest.mjs} +0 -0
  399. /package/dist/esm/api/resources/construe/{client/requests/SearchSemanticRequest.mjs → resources/codes/client/requests/LookupRequest.mjs} +0 -0
  400. /package/dist/esm/api/resources/construe/{client → resources/codes/client}/requests/SearchSemanticRequest.d.mts +0 -0
  401. /package/dist/esm/api/resources/construe/{client/requests/SearchTextRequest.mjs → resources/codes/client/requests/SearchSemanticRequest.mjs} +0 -0
  402. /package/dist/esm/api/resources/construe/{client → resources/codes/client}/requests/SearchTextRequest.d.mts +0 -0
  403. /package/dist/esm/api/resources/construe/{types/UploadCodeSystemResponse.mjs → resources/codes/client/requests/SearchTextRequest.mjs} +0 -0
  404. /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools/client → construe/resources/codes/client/requests}/index.mjs +0 -0
  405. /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.d.mts +0 -0
  406. /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → construe/resources/codes}/index.mjs +0 -0
  407. /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.d.mts +0 -0
  408. /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderRemoveAuthConfigRequest.mjs +0 -0
  409. /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.d.mts +0 -0
  410. /package/dist/esm/api/resources/fhirProvider/{client → resources/authConfig/client}/requests/FhirProviderSetActiveAuthConfigRequest.mjs +0 -0
  411. /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools/client/index.d.mts → fhirProvider/resources/authConfig/client/requests/index.mjs} +0 -0
  412. /package/dist/esm/api/resources/{fhir/types/ErrorResponse.mjs → fhirProvider/resources/authConfig/types/RemoveResponse.mjs} +0 -0
  413. /package/dist/esm/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.d.mts +0 -0
  414. /package/dist/esm/api/resources/{fhir → lang2Fhir}/errors/NotFoundError.mjs +0 -0
  415. /package/dist/esm/api/resources/{fhir/types/FhirResource.mjs → summary/resources/templates/types/DeleteResponse.mjs} +0 -0
  416. /package/dist/esm/api/resources/{fhir/types/SearchResponse.mjs → summary/resources/templates/types/GetResponse.mjs} +0 -0
  417. /package/dist/esm/api/resources/{fhirProvider/types/RemoveAuthConfigResponse.mjs → summary/resources/templates/types/ListResponse.mjs} +0 -0
  418. /package/dist/esm/api/resources/summary/resources/templates/types/{TemplatesDeleteResponse.mjs → UpdateResponse.mjs} +0 -0
  419. /package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.d.mts +0 -0
  420. /package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/McpServerCreateRequest.mjs +0 -0
  421. /package/dist/esm/api/resources/tools/resources/{mcpServer → mcpServers}/client/requests/index.d.mts +0 -0
@@ -1,10 +1 @@
1
- export type { DeleteCodeSystemRequest } from "./DeleteCodeSystemRequest.mjs";
2
- export type { ExportCodeSystemRequest } from "./ExportCodeSystemRequest.mjs";
3
- export type { ExtractRequest } from "./ExtractRequest.mjs";
4
1
  export type { FeedbackRequest } from "./FeedbackRequest.mjs";
5
- export type { GetCodeRequest } from "./GetCodeRequest.mjs";
6
- export type { GetCodeSystemRequest } from "./GetCodeSystemRequest.mjs";
7
- export type { ListCodesRequest } from "./ListCodesRequest.mjs";
8
- export type { SearchSemanticRequest } from "./SearchSemanticRequest.mjs";
9
- export type { SearchTextRequest } from "./SearchTextRequest.mjs";
10
- export { UploadRequest } from "./UploadRequest.mjs";
@@ -1 +1 @@
1
- export { UploadRequest } from "./UploadRequest.mjs";
1
+ export {};
@@ -1,2 +1,3 @@
1
1
  export { ConstrueClient } from "./client/Client.mjs";
2
2
  export * from "./client/index.mjs";
3
+ export * from "./resources/index.mjs";
@@ -1,3 +1,4 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  export { ConstrueClient } from "./client/Client.mjs";
3
3
  export * from "./client/index.mjs";
4
+ export * from "./resources/index.mjs";
@@ -1,3 +1,4 @@
1
1
  export * from "./client/index.mjs";
2
2
  export * from "./errors/index.mjs";
3
+ export * from "./resources/index.mjs";
3
4
  export * from "./types/index.mjs";
@@ -1,3 +1,4 @@
1
1
  export * from "./client/index.mjs";
2
2
  export * from "./errors/index.mjs";
3
+ export * from "./resources/index.mjs";
3
4
  export * from "./types/index.mjs";
@@ -0,0 +1,135 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
3
+ import * as core from "../../../../../../core/index.mjs";
4
+ import * as phenoml from "../../../../../index.mjs";
5
+ export declare namespace CodeSystemsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ /**
11
+ * Manage custom medical code systems used by the extractor.
12
+ */
13
+ export declare class CodeSystemsClient {
14
+ protected readonly _options: NormalizedClientOptionsWithAuth<CodeSystemsClient.Options>;
15
+ constructor(options?: CodeSystemsClient.Options);
16
+ /**
17
+ * Upload a custom medical code system with codes and descriptions for use in code extraction. Requires a paid plan.
18
+ * Returns 202 immediately; embedding generation runs asynchronously. Poll
19
+ * GET /construe/codes/systems/{codesystem}?version={version} to check when status
20
+ * transitions from "processing" to "ready" or "failed".
21
+ *
22
+ * @param {phenoml.construe.UploadRequest} request
23
+ * @param {CodeSystemsClient.RequestOptions} requestOptions - Request-specific configuration.
24
+ *
25
+ * @throws {@link phenoml.construe.BadRequestError}
26
+ * @throws {@link phenoml.construe.UnauthorizedError}
27
+ * @throws {@link phenoml.construe.ForbiddenError}
28
+ * @throws {@link phenoml.construe.ConflictError}
29
+ * @throws {@link phenoml.construe.FailedDependencyError}
30
+ * @throws {@link phenoml.construe.InternalServerError}
31
+ *
32
+ * @example
33
+ * await client.construe.codeSystems.upload({
34
+ * name: "CUSTOM_CODES",
35
+ * version: "1.0",
36
+ * format: "json",
37
+ * codes: [{
38
+ * code: "X001",
39
+ * description: "Example custom code 1"
40
+ * }, {
41
+ * code: "X002",
42
+ * description: "Example custom code 2"
43
+ * }]
44
+ * })
45
+ *
46
+ * @example
47
+ * await client.construe.codeSystems.upload({
48
+ * name: "CUSTOM_CODES",
49
+ * version: "1.0",
50
+ * format: "csv",
51
+ * file: "Y29kZSxkZXNjcmlwdGlvbgpYMDAxLEV4YW1wbGUgY3VzdG9tIGNvZGUgMQo=",
52
+ * code_col: "code",
53
+ * desc_col: "description"
54
+ * })
55
+ */
56
+ upload(request: phenoml.construe.UploadRequest, requestOptions?: CodeSystemsClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.UploadResponse>;
57
+ private __upload;
58
+ /**
59
+ * Returns the terminology server's catalog of available code systems, including both built-in standard terminologies and custom uploaded systems.
60
+ *
61
+ * @param {CodeSystemsClient.RequestOptions} requestOptions - Request-specific configuration.
62
+ *
63
+ * @throws {@link phenoml.construe.UnauthorizedError}
64
+ * @throws {@link phenoml.construe.InternalServerError}
65
+ *
66
+ * @example
67
+ * await client.construe.codeSystems.list()
68
+ */
69
+ list(requestOptions?: CodeSystemsClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.ListCodeSystemsResponse>;
70
+ private __list;
71
+ /**
72
+ * Returns full metadata for a single code system, including timestamps and builtin status.
73
+ *
74
+ * @param {string} codesystem - Code system name (e.g., "ICD-10-CM", "SNOMED_CT_US_LITE")
75
+ * @param {phenoml.construe.FindRequest} request
76
+ * @param {CodeSystemsClient.RequestOptions} requestOptions - Request-specific configuration.
77
+ *
78
+ * @throws {@link phenoml.construe.BadRequestError}
79
+ * @throws {@link phenoml.construe.UnauthorizedError}
80
+ * @throws {@link phenoml.construe.NotFoundError}
81
+ * @throws {@link phenoml.construe.InternalServerError}
82
+ *
83
+ * @example
84
+ * await client.construe.codeSystems.find("ICD-10-CM", {
85
+ * version: "2025"
86
+ * })
87
+ */
88
+ find(codesystem: string, request?: phenoml.construe.FindRequest, requestOptions?: CodeSystemsClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.GetCodeSystemDetailResponse>;
89
+ private __find;
90
+ /**
91
+ * Deletes a custom (non-builtin) code system and all its codes. Builtin systems cannot be deleted.
92
+ * Only available on dedicated instances. Large systems may take up to a minute to delete.
93
+ *
94
+ * @param {string} codesystem - Code system name
95
+ * @param {phenoml.construe.DeleteRequest} request
96
+ * @param {CodeSystemsClient.RequestOptions} requestOptions - Request-specific configuration.
97
+ *
98
+ * @throws {@link phenoml.construe.BadRequestError}
99
+ * @throws {@link phenoml.construe.UnauthorizedError}
100
+ * @throws {@link phenoml.construe.ForbiddenError}
101
+ * @throws {@link phenoml.construe.NotFoundError}
102
+ * @throws {@link phenoml.construe.InternalServerError}
103
+ *
104
+ * @example
105
+ * await client.construe.codeSystems.delete("CUSTOM_CODES", {
106
+ * version: "version"
107
+ * })
108
+ */
109
+ delete(codesystem: string, request?: phenoml.construe.DeleteRequest, requestOptions?: CodeSystemsClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.DeleteCodeSystemResponse>;
110
+ private __delete;
111
+ /**
112
+ * Exports a custom (non-builtin) code system as a JSON file compatible with the upload format.
113
+ * The exported file can be re-uploaded directly via POST /construe/upload with format "json".
114
+ * Only available on dedicated instances. Builtin systems cannot be exported.
115
+ *
116
+ * @param {string} codesystem - Code system name
117
+ * @param {phenoml.construe.ExportRequest} request
118
+ * @param {CodeSystemsClient.RequestOptions} requestOptions - Request-specific configuration.
119
+ *
120
+ * @throws {@link phenoml.construe.BadRequestError}
121
+ * @throws {@link phenoml.construe.UnauthorizedError}
122
+ * @throws {@link phenoml.construe.ForbiddenError}
123
+ * @throws {@link phenoml.construe.NotFoundError}
124
+ * @throws {@link phenoml.construe.ConflictError}
125
+ * @throws {@link phenoml.construe.FailedDependencyError}
126
+ * @throws {@link phenoml.construe.InternalServerError}
127
+ *
128
+ * @example
129
+ * await client.construe.codeSystems.export("CUSTOM_CODES", {
130
+ * version: "version"
131
+ * })
132
+ */
133
+ export(codesystem: string, request?: phenoml.construe.ExportRequest, requestOptions?: CodeSystemsClient.RequestOptions): core.HttpResponsePromise<phenoml.construe.ExportCodeSystemResponse>;
134
+ private __export;
135
+ }
@@ -0,0 +1,396 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
12
+ import { mergeHeaders } from "../../../../../../core/headers.mjs";
13
+ import * as core from "../../../../../../core/index.mjs";
14
+ import * as environments from "../../../../../../environments.mjs";
15
+ import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
16
+ import * as errors from "../../../../../../errors/index.mjs";
17
+ import * as phenoml from "../../../../../index.mjs";
18
+ /**
19
+ * Manage custom medical code systems used by the extractor.
20
+ */
21
+ export class CodeSystemsClient {
22
+ constructor(options = {}) {
23
+ this._options = normalizeClientOptionsWithAuth(options);
24
+ }
25
+ /**
26
+ * Upload a custom medical code system with codes and descriptions for use in code extraction. Requires a paid plan.
27
+ * Returns 202 immediately; embedding generation runs asynchronously. Poll
28
+ * GET /construe/codes/systems/{codesystem}?version={version} to check when status
29
+ * transitions from "processing" to "ready" or "failed".
30
+ *
31
+ * @param {phenoml.construe.UploadRequest} request
32
+ * @param {CodeSystemsClient.RequestOptions} requestOptions - Request-specific configuration.
33
+ *
34
+ * @throws {@link phenoml.construe.BadRequestError}
35
+ * @throws {@link phenoml.construe.UnauthorizedError}
36
+ * @throws {@link phenoml.construe.ForbiddenError}
37
+ * @throws {@link phenoml.construe.ConflictError}
38
+ * @throws {@link phenoml.construe.FailedDependencyError}
39
+ * @throws {@link phenoml.construe.InternalServerError}
40
+ *
41
+ * @example
42
+ * await client.construe.codeSystems.upload({
43
+ * name: "CUSTOM_CODES",
44
+ * version: "1.0",
45
+ * format: "json",
46
+ * codes: [{
47
+ * code: "X001",
48
+ * description: "Example custom code 1"
49
+ * }, {
50
+ * code: "X002",
51
+ * description: "Example custom code 2"
52
+ * }]
53
+ * })
54
+ *
55
+ * @example
56
+ * await client.construe.codeSystems.upload({
57
+ * name: "CUSTOM_CODES",
58
+ * version: "1.0",
59
+ * format: "csv",
60
+ * file: "Y29kZSxkZXNjcmlwdGlvbgpYMDAxLEV4YW1wbGUgY3VzdG9tIGNvZGUgMQo=",
61
+ * code_col: "code",
62
+ * desc_col: "description"
63
+ * })
64
+ */
65
+ upload(request, requestOptions) {
66
+ return core.HttpResponsePromise.fromPromise(this.__upload(request, requestOptions));
67
+ }
68
+ __upload(request, requestOptions) {
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
71
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
72
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
73
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
74
+ 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"),
75
+ method: "POST",
76
+ headers: _headers,
77
+ contentType: "application/json",
78
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
79
+ requestType: "json",
80
+ body: request,
81
+ 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,
82
+ 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,
83
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
84
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
85
+ logging: this._options.logging,
86
+ });
87
+ if (_response.ok) {
88
+ return { data: _response.body, rawResponse: _response.rawResponse };
89
+ }
90
+ if (_response.error.reason === "status-code") {
91
+ switch (_response.error.statusCode) {
92
+ case 400:
93
+ throw new phenoml.construe.BadRequestError(_response.error.body, _response.rawResponse);
94
+ case 401:
95
+ throw new phenoml.construe.UnauthorizedError(_response.error.body, _response.rawResponse);
96
+ case 403:
97
+ throw new phenoml.construe.ForbiddenError(_response.error.body, _response.rawResponse);
98
+ case 409:
99
+ throw new phenoml.construe.ConflictError(_response.error.body, _response.rawResponse);
100
+ case 424:
101
+ throw new phenoml.construe.FailedDependencyError(_response.error.body, _response.rawResponse);
102
+ case 500:
103
+ throw new phenoml.construe.InternalServerError(_response.error.body, _response.rawResponse);
104
+ default:
105
+ throw new errors.phenomlError({
106
+ statusCode: _response.error.statusCode,
107
+ body: _response.error.body,
108
+ rawResponse: _response.rawResponse,
109
+ });
110
+ }
111
+ }
112
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/construe/upload");
113
+ });
114
+ }
115
+ /**
116
+ * Returns the terminology server's catalog of available code systems, including both built-in standard terminologies and custom uploaded systems.
117
+ *
118
+ * @param {CodeSystemsClient.RequestOptions} requestOptions - Request-specific configuration.
119
+ *
120
+ * @throws {@link phenoml.construe.UnauthorizedError}
121
+ * @throws {@link phenoml.construe.InternalServerError}
122
+ *
123
+ * @example
124
+ * await client.construe.codeSystems.list()
125
+ */
126
+ list(requestOptions) {
127
+ return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
128
+ }
129
+ __list(requestOptions) {
130
+ return __awaiter(this, void 0, void 0, function* () {
131
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
132
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
133
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
134
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
135
+ 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/codes/systems"),
136
+ method: "GET",
137
+ headers: _headers,
138
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
139
+ 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,
140
+ 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,
141
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
142
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
143
+ logging: this._options.logging,
144
+ });
145
+ if (_response.ok) {
146
+ return {
147
+ data: _response.body,
148
+ rawResponse: _response.rawResponse,
149
+ };
150
+ }
151
+ if (_response.error.reason === "status-code") {
152
+ switch (_response.error.statusCode) {
153
+ case 401:
154
+ throw new phenoml.construe.UnauthorizedError(_response.error.body, _response.rawResponse);
155
+ case 500:
156
+ throw new phenoml.construe.InternalServerError(_response.error.body, _response.rawResponse);
157
+ default:
158
+ throw new errors.phenomlError({
159
+ statusCode: _response.error.statusCode,
160
+ body: _response.error.body,
161
+ rawResponse: _response.rawResponse,
162
+ });
163
+ }
164
+ }
165
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/construe/codes/systems");
166
+ });
167
+ }
168
+ /**
169
+ * Returns full metadata for a single code system, including timestamps and builtin status.
170
+ *
171
+ * @param {string} codesystem - Code system name (e.g., "ICD-10-CM", "SNOMED_CT_US_LITE")
172
+ * @param {phenoml.construe.FindRequest} request
173
+ * @param {CodeSystemsClient.RequestOptions} requestOptions - Request-specific configuration.
174
+ *
175
+ * @throws {@link phenoml.construe.BadRequestError}
176
+ * @throws {@link phenoml.construe.UnauthorizedError}
177
+ * @throws {@link phenoml.construe.NotFoundError}
178
+ * @throws {@link phenoml.construe.InternalServerError}
179
+ *
180
+ * @example
181
+ * await client.construe.codeSystems.find("ICD-10-CM", {
182
+ * version: "2025"
183
+ * })
184
+ */
185
+ find(codesystem, request = {}, requestOptions) {
186
+ return core.HttpResponsePromise.fromPromise(this.__find(codesystem, request, requestOptions));
187
+ }
188
+ __find(codesystem_1) {
189
+ return __awaiter(this, arguments, void 0, function* (codesystem, request = {}, requestOptions) {
190
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
191
+ const { version } = request;
192
+ const _queryParams = {
193
+ version,
194
+ };
195
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
196
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
197
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
198
+ 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/codes/systems/${core.url.encodePathParam(codesystem)}`),
199
+ method: "GET",
200
+ headers: _headers,
201
+ queryString: core.url
202
+ .queryBuilder()
203
+ .addMany(_queryParams)
204
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
205
+ .build(),
206
+ 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,
207
+ 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,
208
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
209
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
210
+ logging: this._options.logging,
211
+ });
212
+ if (_response.ok) {
213
+ return {
214
+ data: _response.body,
215
+ rawResponse: _response.rawResponse,
216
+ };
217
+ }
218
+ if (_response.error.reason === "status-code") {
219
+ switch (_response.error.statusCode) {
220
+ case 400:
221
+ throw new phenoml.construe.BadRequestError(_response.error.body, _response.rawResponse);
222
+ case 401:
223
+ throw new phenoml.construe.UnauthorizedError(_response.error.body, _response.rawResponse);
224
+ case 404:
225
+ throw new phenoml.construe.NotFoundError(_response.error.body, _response.rawResponse);
226
+ case 500:
227
+ throw new phenoml.construe.InternalServerError(_response.error.body, _response.rawResponse);
228
+ default:
229
+ throw new errors.phenomlError({
230
+ statusCode: _response.error.statusCode,
231
+ body: _response.error.body,
232
+ rawResponse: _response.rawResponse,
233
+ });
234
+ }
235
+ }
236
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/construe/codes/systems/{codesystem}");
237
+ });
238
+ }
239
+ /**
240
+ * Deletes a custom (non-builtin) code system and all its codes. Builtin systems cannot be deleted.
241
+ * Only available on dedicated instances. Large systems may take up to a minute to delete.
242
+ *
243
+ * @param {string} codesystem - Code system name
244
+ * @param {phenoml.construe.DeleteRequest} request
245
+ * @param {CodeSystemsClient.RequestOptions} requestOptions - Request-specific configuration.
246
+ *
247
+ * @throws {@link phenoml.construe.BadRequestError}
248
+ * @throws {@link phenoml.construe.UnauthorizedError}
249
+ * @throws {@link phenoml.construe.ForbiddenError}
250
+ * @throws {@link phenoml.construe.NotFoundError}
251
+ * @throws {@link phenoml.construe.InternalServerError}
252
+ *
253
+ * @example
254
+ * await client.construe.codeSystems.delete("CUSTOM_CODES", {
255
+ * version: "version"
256
+ * })
257
+ */
258
+ delete(codesystem, request = {}, requestOptions) {
259
+ return core.HttpResponsePromise.fromPromise(this.__delete(codesystem, request, requestOptions));
260
+ }
261
+ __delete(codesystem_1) {
262
+ return __awaiter(this, arguments, void 0, function* (codesystem, request = {}, requestOptions) {
263
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
264
+ const { version } = request;
265
+ const _queryParams = {
266
+ version,
267
+ };
268
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
269
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
270
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
271
+ 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/codes/systems/${core.url.encodePathParam(codesystem)}`),
272
+ method: "DELETE",
273
+ headers: _headers,
274
+ queryString: core.url
275
+ .queryBuilder()
276
+ .addMany(_queryParams)
277
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
278
+ .build(),
279
+ 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,
280
+ 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,
281
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
282
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
283
+ logging: this._options.logging,
284
+ });
285
+ if (_response.ok) {
286
+ return {
287
+ data: _response.body,
288
+ rawResponse: _response.rawResponse,
289
+ };
290
+ }
291
+ if (_response.error.reason === "status-code") {
292
+ switch (_response.error.statusCode) {
293
+ case 400:
294
+ throw new phenoml.construe.BadRequestError(_response.error.body, _response.rawResponse);
295
+ case 401:
296
+ throw new phenoml.construe.UnauthorizedError(_response.error.body, _response.rawResponse);
297
+ case 403:
298
+ throw new phenoml.construe.ForbiddenError(_response.error.body, _response.rawResponse);
299
+ case 404:
300
+ throw new phenoml.construe.NotFoundError(_response.error.body, _response.rawResponse);
301
+ case 500:
302
+ throw new phenoml.construe.InternalServerError(_response.error.body, _response.rawResponse);
303
+ default:
304
+ throw new errors.phenomlError({
305
+ statusCode: _response.error.statusCode,
306
+ body: _response.error.body,
307
+ rawResponse: _response.rawResponse,
308
+ });
309
+ }
310
+ }
311
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/construe/codes/systems/{codesystem}");
312
+ });
313
+ }
314
+ /**
315
+ * Exports a custom (non-builtin) code system as a JSON file compatible with the upload format.
316
+ * The exported file can be re-uploaded directly via POST /construe/upload with format "json".
317
+ * Only available on dedicated instances. Builtin systems cannot be exported.
318
+ *
319
+ * @param {string} codesystem - Code system name
320
+ * @param {phenoml.construe.ExportRequest} request
321
+ * @param {CodeSystemsClient.RequestOptions} requestOptions - Request-specific configuration.
322
+ *
323
+ * @throws {@link phenoml.construe.BadRequestError}
324
+ * @throws {@link phenoml.construe.UnauthorizedError}
325
+ * @throws {@link phenoml.construe.ForbiddenError}
326
+ * @throws {@link phenoml.construe.NotFoundError}
327
+ * @throws {@link phenoml.construe.ConflictError}
328
+ * @throws {@link phenoml.construe.FailedDependencyError}
329
+ * @throws {@link phenoml.construe.InternalServerError}
330
+ *
331
+ * @example
332
+ * await client.construe.codeSystems.export("CUSTOM_CODES", {
333
+ * version: "version"
334
+ * })
335
+ */
336
+ export(codesystem, request = {}, requestOptions) {
337
+ return core.HttpResponsePromise.fromPromise(this.__export(codesystem, request, requestOptions));
338
+ }
339
+ __export(codesystem_1) {
340
+ return __awaiter(this, arguments, void 0, function* (codesystem, request = {}, requestOptions) {
341
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
342
+ const { version } = request;
343
+ const _queryParams = {
344
+ version,
345
+ };
346
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
347
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
348
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
349
+ 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/codes/systems/${core.url.encodePathParam(codesystem)}/export`),
350
+ method: "GET",
351
+ headers: _headers,
352
+ queryString: core.url
353
+ .queryBuilder()
354
+ .addMany(_queryParams)
355
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
356
+ .build(),
357
+ 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,
358
+ 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,
359
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
360
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
361
+ logging: this._options.logging,
362
+ });
363
+ if (_response.ok) {
364
+ return {
365
+ data: _response.body,
366
+ rawResponse: _response.rawResponse,
367
+ };
368
+ }
369
+ if (_response.error.reason === "status-code") {
370
+ switch (_response.error.statusCode) {
371
+ case 400:
372
+ throw new phenoml.construe.BadRequestError(_response.error.body, _response.rawResponse);
373
+ case 401:
374
+ throw new phenoml.construe.UnauthorizedError(_response.error.body, _response.rawResponse);
375
+ case 403:
376
+ throw new phenoml.construe.ForbiddenError(_response.error.body, _response.rawResponse);
377
+ case 404:
378
+ throw new phenoml.construe.NotFoundError(_response.error.body, _response.rawResponse);
379
+ case 409:
380
+ throw new phenoml.construe.ConflictError(_response.error.body, _response.rawResponse);
381
+ case 424:
382
+ throw new phenoml.construe.FailedDependencyError(_response.error.body, _response.rawResponse);
383
+ case 500:
384
+ throw new phenoml.construe.InternalServerError(_response.error.body, _response.rawResponse);
385
+ default:
386
+ throw new errors.phenomlError({
387
+ statusCode: _response.error.statusCode,
388
+ body: _response.error.body,
389
+ rawResponse: _response.rawResponse,
390
+ });
391
+ }
392
+ }
393
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/construe/codes/systems/{codesystem}/export");
394
+ });
395
+ }
396
+ }
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -4,7 +4,7 @@
4
4
  * version: "version"
5
5
  * }
6
6
  */
7
- export interface ExportCodeSystemRequest {
7
+ export interface DeleteRequest {
8
8
  /** Specific version of the code system. Required if multiple versions exist. */
9
9
  version?: string;
10
10
  }
@@ -4,7 +4,7 @@
4
4
  * version: "version"
5
5
  * }
6
6
  */
7
- export interface DeleteCodeSystemRequest {
7
+ export interface ExportRequest {
8
8
  /** Specific version of the code system. Required if multiple versions exist. */
9
9
  version?: string;
10
10
  }
@@ -4,7 +4,7 @@
4
4
  * version: "2025"
5
5
  * }
6
6
  */
7
- export interface GetCodeSystemRequest {
7
+ export interface FindRequest {
8
8
  /** Specific version of the code system. Required if multiple versions exist. */
9
9
  version?: string;
10
10
  }
@@ -1,4 +1,4 @@
1
- import type * as phenoml from "../../../../index.mjs";
1
+ import type * as phenoml from "../../../../../../index.mjs";
2
2
  /**
3
3
  * @example
4
4
  * {
@@ -0,0 +1,4 @@
1
+ export type { DeleteRequest } from "./DeleteRequest.mjs";
2
+ export type { ExportRequest } from "./ExportRequest.mjs";
3
+ export type { FindRequest } from "./FindRequest.mjs";
4
+ export { UploadRequest } from "./UploadRequest.mjs";
@@ -0,0 +1 @@
1
+ export { UploadRequest } from "./UploadRequest.mjs";
@@ -0,0 +1,2 @@
1
+ export { CodeSystemsClient } from "./client/Client.mjs";
2
+ export * from "./client/index.mjs";
@@ -1,4 +1,3 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export { McpServerClient } from "./client/Client.mjs";
2
+ export { CodeSystemsClient } from "./client/Client.mjs";
3
3
  export * from "./client/index.mjs";
4
- export * from "./resources/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";