phenoml 17.5.0 → 17.8.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 (563) hide show
  1. package/dist/cjs/BaseClient.d.ts +12 -0
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +9 -0
  4. package/dist/cjs/Client.js +23 -8
  5. package/dist/cjs/api/resources/agent/client/Client.js +4 -3
  6. package/dist/cjs/api/resources/agent/errors/BadRequestError.js +1 -1
  7. package/dist/cjs/api/resources/agent/errors/ConflictError.d.ts +5 -0
  8. package/dist/cjs/api/resources/agent/errors/ConflictError.js +54 -0
  9. package/dist/cjs/api/resources/agent/errors/ForbiddenError.js +1 -1
  10. package/dist/cjs/api/resources/agent/errors/GatewayTimeoutError.js +1 -1
  11. package/dist/cjs/api/resources/agent/errors/InternalServerError.js +1 -1
  12. package/dist/cjs/api/resources/agent/errors/NotFoundError.js +1 -1
  13. package/dist/cjs/api/resources/agent/errors/UnauthorizedError.js +1 -1
  14. package/dist/cjs/api/resources/agent/errors/index.d.ts +1 -0
  15. package/dist/cjs/api/resources/agent/errors/index.js +1 -0
  16. package/dist/cjs/api/resources/agent/resources/chat/client/Client.d.ts +1 -0
  17. package/dist/cjs/api/resources/agent/resources/chat/client/Client.js +8 -2
  18. package/dist/cjs/api/resources/agent/resources/chat/client/requests/AgentChatRequest.d.ts +1 -1
  19. package/dist/cjs/api/resources/agent/resources/chat/client/requests/AgentStreamChatRequest.d.ts +1 -1
  20. package/dist/cjs/api/resources/agent/resources/prompts/client/Client.js +4 -3
  21. package/dist/cjs/api/resources/authtoken/client/Client.js +2 -1
  22. package/dist/cjs/api/resources/authtoken/errors/BadRequestError.js +1 -1
  23. package/dist/cjs/api/resources/authtoken/errors/InternalServerError.js +1 -1
  24. package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.js +1 -1
  25. package/dist/cjs/api/resources/cohort/client/Client.js +2 -1
  26. package/dist/cjs/api/resources/cohort/errors/BadRequestError.js +1 -1
  27. package/dist/cjs/api/resources/cohort/errors/InternalServerError.js +1 -1
  28. package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.js +1 -1
  29. package/dist/cjs/api/resources/construe/client/Client.js +2 -1
  30. package/dist/cjs/api/resources/construe/errors/BadRequestError.js +1 -1
  31. package/dist/cjs/api/resources/construe/errors/ConflictError.js +1 -1
  32. package/dist/cjs/api/resources/construe/errors/FailedDependencyError.js +1 -1
  33. package/dist/cjs/api/resources/construe/errors/ForbiddenError.js +1 -1
  34. package/dist/cjs/api/resources/construe/errors/GatewayTimeoutError.js +1 -1
  35. package/dist/cjs/api/resources/construe/errors/InternalServerError.js +1 -1
  36. package/dist/cjs/api/resources/construe/errors/NotFoundError.js +1 -1
  37. package/dist/cjs/api/resources/construe/errors/NotImplementedError.js +1 -1
  38. package/dist/cjs/api/resources/construe/errors/ServiceUnavailableError.js +1 -1
  39. package/dist/cjs/api/resources/construe/errors/UnauthorizedError.js +1 -1
  40. package/dist/cjs/api/resources/construe/resources/codeSystems/client/Client.js +2 -1
  41. package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.ts +1 -1
  42. package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/ExportRequest.d.ts +1 -1
  43. package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/FindRequest.d.ts +1 -1
  44. package/dist/cjs/api/resources/construe/resources/codes/client/Client.d.ts +15 -0
  45. package/dist/cjs/api/resources/construe/resources/codes/client/Client.js +17 -1
  46. package/dist/cjs/api/resources/construe/resources/codes/client/requests/CodesListRequest.d.ts +1 -1
  47. package/dist/cjs/api/resources/construe/resources/codes/client/requests/ExtractRequest.d.ts +12 -0
  48. package/dist/cjs/api/resources/construe/resources/codes/client/requests/LookupRequest.d.ts +1 -1
  49. package/dist/cjs/api/resources/construe/resources/codes/client/requests/SearchSemanticRequest.d.ts +1 -1
  50. package/dist/cjs/api/resources/construe/resources/codes/client/requests/SearchTextRequest.d.ts +1 -1
  51. package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.d.ts +11 -8
  52. package/dist/cjs/api/resources/fhir/client/Client.js +5 -4
  53. package/dist/cjs/api/resources/fhir2Omop/client/Client.d.ts +26 -0
  54. package/dist/cjs/api/resources/fhir2Omop/client/Client.js +28 -1
  55. package/dist/cjs/api/resources/fhir2Omop/client/requests/CreateOmopRequest.d.ts +6 -3
  56. package/dist/cjs/api/resources/fhir2Omop/errors/BadRequestError.js +1 -1
  57. package/dist/cjs/api/resources/fhir2Omop/errors/InternalServerError.js +1 -1
  58. package/dist/cjs/api/resources/fhir2Omop/errors/ServiceUnavailableError.js +1 -1
  59. package/dist/cjs/api/resources/fhir2Omop/errors/UnauthorizedError.js +1 -1
  60. package/dist/cjs/api/resources/fhir2Omop/types/CareSiteRow.d.ts +8 -0
  61. package/dist/cjs/api/resources/fhir2Omop/types/ConditionOccurrenceRow.d.ts +1 -0
  62. package/dist/cjs/api/resources/fhir2Omop/types/CreateOmopResponse.d.ts +6 -1
  63. package/dist/cjs/api/resources/fhir2Omop/types/DeathRow.d.ts +9 -0
  64. package/dist/cjs/api/resources/fhir2Omop/types/DeathRow.js +3 -0
  65. package/dist/cjs/api/resources/fhir2Omop/types/DrugExposureRow.d.ts +1 -0
  66. package/dist/cjs/api/resources/fhir2Omop/types/LocationRow.d.ts +14 -0
  67. package/dist/cjs/api/resources/fhir2Omop/types/LocationRow.js +3 -0
  68. package/dist/cjs/api/resources/fhir2Omop/types/MeasurementRow.d.ts +1 -0
  69. package/dist/cjs/api/resources/fhir2Omop/types/ObservationPeriodRow.d.ts +7 -0
  70. package/dist/cjs/api/resources/fhir2Omop/types/ObservationPeriodRow.js +3 -0
  71. package/dist/cjs/api/resources/fhir2Omop/types/ObservationRow.d.ts +1 -0
  72. package/dist/cjs/api/resources/fhir2Omop/types/OmopTables.d.ts +5 -0
  73. package/dist/cjs/api/resources/fhir2Omop/types/PersonRow.d.ts +1 -0
  74. package/dist/cjs/api/resources/fhir2Omop/types/ProcedureOccurrenceRow.d.ts +1 -0
  75. package/dist/cjs/api/resources/fhir2Omop/types/ProviderRow.d.ts +15 -0
  76. package/dist/cjs/api/resources/fhir2Omop/types/ProviderRow.js +3 -0
  77. package/dist/cjs/api/resources/fhir2Omop/types/VisitOccurrenceRow.d.ts +2 -0
  78. package/dist/cjs/api/resources/fhir2Omop/types/index.d.ts +5 -0
  79. package/dist/cjs/api/resources/fhir2Omop/types/index.js +5 -0
  80. package/dist/cjs/api/resources/fhirProvider/client/Client.js +2 -1
  81. package/dist/cjs/api/resources/fhirProvider/errors/BadRequestError.js +1 -1
  82. package/dist/cjs/api/resources/fhirProvider/errors/ForbiddenError.js +1 -1
  83. package/dist/cjs/api/resources/fhirProvider/errors/InternalServerError.js +1 -1
  84. package/dist/cjs/api/resources/fhirProvider/errors/NotFoundError.js +1 -1
  85. package/dist/cjs/api/resources/fhirProvider/errors/UnauthorizedError.js +1 -1
  86. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/Client.js +4 -3
  87. package/dist/cjs/api/resources/implementationGuides/client/Client.d.ts +12 -0
  88. package/dist/cjs/api/resources/implementationGuides/client/Client.js +16 -0
  89. package/dist/cjs/api/resources/implementationGuides/client/index.d.ts +1 -0
  90. package/dist/cjs/api/resources/implementationGuides/client/index.js +2 -0
  91. package/dist/cjs/api/resources/implementationGuides/errors/BadRequestError.d.ts +5 -0
  92. package/dist/cjs/api/resources/implementationGuides/errors/BadRequestError.js +54 -0
  93. package/dist/cjs/api/resources/implementationGuides/errors/ForbiddenError.d.ts +5 -0
  94. package/dist/cjs/api/resources/implementationGuides/errors/ForbiddenError.js +54 -0
  95. package/dist/cjs/api/resources/implementationGuides/errors/InternalServerError.d.ts +5 -0
  96. package/dist/cjs/api/resources/implementationGuides/errors/InternalServerError.js +54 -0
  97. package/dist/cjs/api/resources/implementationGuides/errors/NotFoundError.d.ts +5 -0
  98. package/dist/cjs/api/resources/implementationGuides/errors/NotFoundError.js +54 -0
  99. package/dist/cjs/api/resources/implementationGuides/errors/UnauthorizedError.d.ts +5 -0
  100. package/dist/cjs/api/resources/implementationGuides/errors/UnauthorizedError.js +54 -0
  101. package/dist/cjs/api/resources/implementationGuides/errors/index.d.ts +5 -0
  102. package/dist/cjs/api/resources/implementationGuides/errors/index.js +21 -0
  103. package/dist/cjs/api/resources/implementationGuides/exports.d.ts +3 -0
  104. package/dist/cjs/api/resources/implementationGuides/exports.js +22 -0
  105. package/dist/cjs/api/resources/implementationGuides/index.d.ts +4 -0
  106. package/dist/cjs/api/resources/implementationGuides/index.js +20 -0
  107. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/Client.d.ts +91 -0
  108. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/Client.js +316 -0
  109. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/index.d.ts +1 -0
  110. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/index.js +17 -0
  111. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/requests/UpdateImplementationGuideRequest.d.ts +8 -0
  112. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/requests/UpdateImplementationGuideRequest.js +3 -0
  113. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/requests/index.d.ts +1 -0
  114. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/requests/index.js +2 -0
  115. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/exports.d.ts +2 -0
  116. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/exports.js +21 -0
  117. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/index.d.ts +1 -0
  118. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/index.js +17 -0
  119. package/dist/cjs/api/resources/implementationGuides/resources/index.d.ts +2 -0
  120. package/dist/cjs/api/resources/implementationGuides/resources/index.js +41 -0
  121. package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideDetail.d.ts +5 -0
  122. package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideDetail.js +3 -0
  123. package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideListResponse.d.ts +4 -0
  124. package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideListResponse.js +3 -0
  125. package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideSummary.d.ts +15 -0
  126. package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideSummary.js +3 -0
  127. package/dist/cjs/api/resources/implementationGuides/types/index.d.ts +3 -0
  128. package/dist/cjs/api/resources/implementationGuides/types/index.js +19 -0
  129. package/dist/cjs/api/resources/index.d.ts +3 -0
  130. package/dist/cjs/api/resources/index.js +4 -1
  131. package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +8 -0
  132. package/dist/cjs/api/resources/lang2Fhir/client/Client.js +15 -6
  133. package/dist/cjs/api/resources/lang2Fhir/client/requests/index.d.ts +0 -1
  134. package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.js +1 -1
  135. package/dist/cjs/api/resources/lang2Fhir/errors/ClientClosedRequestError.js +1 -1
  136. package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.js +1 -1
  137. package/dist/cjs/api/resources/lang2Fhir/errors/GatewayTimeoutError.js +1 -1
  138. package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.js +1 -1
  139. package/dist/cjs/api/resources/lang2Fhir/errors/NotFoundError.js +1 -1
  140. package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.js +1 -1
  141. package/dist/cjs/api/resources/lang2Fhir/errors/UnprocessableEntityError.js +1 -1
  142. package/dist/cjs/api/resources/lang2Fhir/types/CreateMultiResponse.d.ts +2 -0
  143. package/dist/cjs/api/resources/lang2Fhir/{client/requests → types}/ProfileUploadRequest.d.ts +2 -10
  144. package/dist/cjs/api/resources/lang2Fhir/types/ProfileUploadRequest.js +3 -0
  145. package/dist/cjs/api/resources/lang2Fhir/types/index.d.ts +1 -0
  146. package/dist/cjs/api/resources/lang2Fhir/types/index.js +1 -0
  147. package/dist/cjs/api/resources/profiles/client/Client.d.ts +12 -0
  148. package/dist/cjs/api/resources/profiles/client/Client.js +16 -0
  149. package/dist/cjs/api/resources/profiles/client/index.d.ts +1 -0
  150. package/dist/cjs/api/resources/profiles/client/index.js +2 -0
  151. package/dist/cjs/api/resources/profiles/errors/BadRequestError.d.ts +5 -0
  152. package/dist/cjs/api/resources/profiles/errors/BadRequestError.js +54 -0
  153. package/dist/cjs/api/resources/profiles/errors/ForbiddenError.d.ts +5 -0
  154. package/dist/cjs/api/resources/profiles/errors/ForbiddenError.js +54 -0
  155. package/dist/cjs/api/resources/profiles/errors/InternalServerError.d.ts +5 -0
  156. package/dist/cjs/api/resources/profiles/errors/InternalServerError.js +54 -0
  157. package/dist/cjs/api/resources/profiles/errors/NotFoundError.d.ts +5 -0
  158. package/dist/cjs/api/resources/profiles/errors/NotFoundError.js +54 -0
  159. package/dist/cjs/api/resources/profiles/errors/UnauthorizedError.d.ts +5 -0
  160. package/dist/cjs/api/resources/profiles/errors/UnauthorizedError.js +54 -0
  161. package/dist/cjs/api/resources/profiles/errors/index.d.ts +5 -0
  162. package/dist/cjs/api/resources/profiles/errors/index.js +21 -0
  163. package/dist/cjs/api/resources/profiles/exports.d.ts +3 -0
  164. package/dist/cjs/api/resources/profiles/exports.js +22 -0
  165. package/dist/cjs/api/resources/profiles/index.d.ts +4 -0
  166. package/dist/cjs/api/resources/profiles/index.js +20 -0
  167. package/dist/cjs/api/resources/profiles/resources/index.d.ts +2 -0
  168. package/dist/cjs/api/resources/profiles/resources/index.js +41 -0
  169. package/dist/cjs/api/resources/profiles/resources/profiles/client/Client.d.ts +127 -0
  170. package/dist/cjs/api/resources/profiles/resources/profiles/client/Client.js +397 -0
  171. package/dist/cjs/api/resources/profiles/resources/profiles/client/index.d.ts +1 -0
  172. package/dist/cjs/api/resources/profiles/resources/profiles/client/index.js +17 -0
  173. package/dist/cjs/api/resources/profiles/resources/profiles/client/requests/ListRequest.d.ts +10 -0
  174. package/dist/cjs/api/resources/profiles/resources/profiles/client/requests/ListRequest.js +3 -0
  175. package/dist/cjs/api/resources/profiles/resources/profiles/client/requests/index.d.ts +1 -0
  176. package/dist/cjs/api/resources/profiles/resources/profiles/client/requests/index.js +2 -0
  177. package/dist/cjs/api/resources/profiles/resources/profiles/exports.d.ts +2 -0
  178. package/dist/cjs/api/resources/profiles/resources/profiles/exports.js +21 -0
  179. package/dist/cjs/api/resources/profiles/resources/profiles/index.d.ts +1 -0
  180. package/dist/cjs/api/resources/profiles/resources/profiles/index.js +17 -0
  181. package/dist/cjs/api/resources/profiles/types/FhirResource.d.ts +4 -0
  182. package/dist/cjs/api/resources/profiles/types/FhirResource.js +3 -0
  183. package/dist/cjs/api/resources/profiles/types/ProfileGetResponse.d.ts +5 -0
  184. package/dist/cjs/api/resources/profiles/types/ProfileGetResponse.js +3 -0
  185. package/dist/cjs/api/resources/profiles/types/ProfileListResponse.d.ts +4 -0
  186. package/dist/cjs/api/resources/profiles/types/ProfileListResponse.js +3 -0
  187. package/dist/cjs/api/resources/profiles/types/ProfileSummary.d.ts +26 -0
  188. package/dist/cjs/api/resources/profiles/types/ProfileSummary.js +12 -0
  189. package/dist/cjs/api/resources/profiles/types/ProfileUploadRequest.d.ts +7 -0
  190. package/dist/cjs/api/resources/profiles/types/ProfileUploadRequest.js +3 -0
  191. package/dist/cjs/api/resources/profiles/types/index.d.ts +5 -0
  192. package/dist/cjs/api/resources/profiles/types/index.js +21 -0
  193. package/dist/cjs/api/resources/summary/client/Client.js +2 -1
  194. package/dist/cjs/api/resources/summary/errors/BadRequestError.js +1 -1
  195. package/dist/cjs/api/resources/summary/errors/ForbiddenError.js +1 -1
  196. package/dist/cjs/api/resources/summary/errors/InternalServerError.js +1 -1
  197. package/dist/cjs/api/resources/summary/errors/NotFoundError.js +1 -1
  198. package/dist/cjs/api/resources/summary/errors/UnauthorizedError.js +1 -1
  199. package/dist/cjs/api/resources/summary/resources/templates/client/Client.js +3 -2
  200. package/dist/cjs/api/resources/tools/client/Client.js +5 -4
  201. package/dist/cjs/api/resources/tools/errors/BadRequestError.js +1 -1
  202. package/dist/cjs/api/resources/tools/errors/ForbiddenError.js +1 -1
  203. package/dist/cjs/api/resources/tools/errors/InternalServerError.js +1 -1
  204. package/dist/cjs/api/resources/tools/errors/NotFoundError.js +1 -1
  205. package/dist/cjs/api/resources/tools/errors/UnauthorizedError.js +1 -1
  206. package/dist/cjs/api/resources/tools/resources/mcpServers/client/Client.js +2 -1
  207. package/dist/cjs/api/resources/voice/client/Client.d.ts +12 -0
  208. package/dist/cjs/api/resources/voice/client/Client.js +16 -0
  209. package/dist/cjs/api/resources/voice/client/index.d.ts +1 -0
  210. package/dist/cjs/api/resources/voice/client/index.js +2 -0
  211. package/dist/cjs/api/resources/voice/errors/BadGatewayError.d.ts +5 -0
  212. package/dist/cjs/api/resources/voice/errors/BadGatewayError.js +54 -0
  213. package/dist/cjs/api/resources/voice/errors/BadRequestError.d.ts +5 -0
  214. package/dist/cjs/api/resources/voice/errors/BadRequestError.js +54 -0
  215. package/dist/cjs/api/resources/voice/errors/ContentTooLargeError.d.ts +5 -0
  216. package/dist/cjs/api/resources/voice/errors/ContentTooLargeError.js +54 -0
  217. package/dist/cjs/api/resources/voice/errors/GatewayTimeoutError.d.ts +5 -0
  218. package/dist/cjs/api/resources/voice/errors/GatewayTimeoutError.js +54 -0
  219. package/dist/cjs/api/resources/voice/errors/PaymentRequiredError.d.ts +5 -0
  220. package/dist/cjs/api/resources/voice/errors/PaymentRequiredError.js +54 -0
  221. package/dist/cjs/api/resources/voice/errors/ServiceUnavailableError.d.ts +5 -0
  222. package/dist/cjs/api/resources/voice/errors/ServiceUnavailableError.js +54 -0
  223. package/dist/cjs/api/resources/voice/errors/UnauthorizedError.d.ts +5 -0
  224. package/dist/cjs/api/resources/voice/errors/UnauthorizedError.js +54 -0
  225. package/dist/cjs/api/resources/voice/errors/index.d.ts +7 -0
  226. package/dist/cjs/api/resources/voice/errors/index.js +23 -0
  227. package/dist/cjs/api/resources/voice/exports.d.ts +3 -0
  228. package/dist/cjs/api/resources/voice/exports.js +22 -0
  229. package/dist/cjs/api/resources/voice/index.d.ts +4 -0
  230. package/dist/cjs/api/resources/voice/index.js +20 -0
  231. package/dist/cjs/api/resources/voice/resources/index.d.ts +2 -0
  232. package/dist/cjs/api/resources/voice/resources/index.js +41 -0
  233. package/dist/cjs/api/resources/voice/resources/voice/client/Client.d.ts +41 -0
  234. package/dist/cjs/api/resources/voice/resources/voice/client/Client.js +146 -0
  235. package/dist/cjs/api/resources/voice/resources/voice/client/index.d.ts +1 -0
  236. package/dist/cjs/api/resources/voice/resources/voice/client/index.js +17 -0
  237. package/dist/cjs/api/resources/voice/resources/voice/client/requests/TranscribeRequest.d.ts +4 -0
  238. package/dist/cjs/api/resources/voice/resources/voice/client/requests/TranscribeRequest.js +3 -0
  239. package/dist/cjs/api/resources/voice/resources/voice/client/requests/index.d.ts +1 -0
  240. package/dist/cjs/api/resources/voice/resources/voice/client/requests/index.js +2 -0
  241. package/dist/cjs/api/resources/voice/resources/voice/exports.d.ts +2 -0
  242. package/dist/cjs/api/resources/voice/resources/voice/exports.js +21 -0
  243. package/dist/cjs/api/resources/voice/resources/voice/index.d.ts +1 -0
  244. package/dist/cjs/api/resources/voice/resources/voice/index.js +17 -0
  245. package/dist/cjs/api/resources/voice/types/TranscribeResponse.d.ts +4 -0
  246. package/dist/cjs/api/resources/voice/types/TranscribeResponse.js +3 -0
  247. package/dist/cjs/api/resources/voice/types/index.d.ts +1 -0
  248. package/dist/cjs/api/resources/voice/types/index.js +17 -0
  249. package/dist/cjs/api/resources/workflows/client/Client.js +4 -3
  250. package/dist/cjs/api/resources/workflows/errors/BadRequestError.js +1 -1
  251. package/dist/cjs/api/resources/workflows/errors/ForbiddenError.js +1 -1
  252. package/dist/cjs/api/resources/workflows/errors/GatewayTimeoutError.js +1 -1
  253. package/dist/cjs/api/resources/workflows/errors/InternalServerError.js +1 -1
  254. package/dist/cjs/api/resources/workflows/errors/NotFoundError.js +1 -1
  255. package/dist/cjs/api/resources/workflows/errors/UnauthorizedError.js +1 -1
  256. package/dist/cjs/core/exports.d.ts +1 -0
  257. package/dist/cjs/core/exports.js +1 -0
  258. package/dist/cjs/core/file/exports.d.ts +1 -0
  259. package/dist/cjs/core/file/exports.js +2 -0
  260. package/dist/cjs/core/file/file.d.ts +10 -0
  261. package/dist/cjs/core/file/file.js +225 -0
  262. package/dist/cjs/core/file/index.d.ts +2 -0
  263. package/dist/cjs/core/file/index.js +18 -0
  264. package/dist/cjs/core/file/types.d.ts +66 -0
  265. package/dist/cjs/core/file/types.js +2 -0
  266. package/dist/cjs/core/index.d.ts +1 -0
  267. package/dist/cjs/core/index.js +2 -1
  268. package/dist/cjs/core/requestBody.d.ts +12 -0
  269. package/dist/cjs/core/requestBody.js +26 -0
  270. package/dist/cjs/core/stream/Stream.d.ts +45 -1
  271. package/dist/cjs/core/stream/Stream.js +323 -84
  272. package/dist/cjs/core/stream/index.d.ts +1 -0
  273. package/dist/cjs/core/url/qs.js +2 -2
  274. package/dist/cjs/errors/phenomlError.d.ts +1 -0
  275. package/dist/cjs/errors/phenomlError.js +5 -1
  276. package/dist/cjs/errors/phenomlTimeoutError.d.ts +2 -2
  277. package/dist/cjs/errors/phenomlTimeoutError.js +40 -6
  278. package/dist/cjs/version.d.ts +1 -1
  279. package/dist/cjs/version.js +1 -1
  280. package/dist/esm/BaseClient.d.mts +12 -0
  281. package/dist/esm/BaseClient.mjs +2 -2
  282. package/dist/esm/Client.d.mts +9 -0
  283. package/dist/esm/Client.mjs +15 -0
  284. package/dist/esm/api/resources/agent/client/Client.mjs +4 -3
  285. package/dist/esm/api/resources/agent/errors/BadRequestError.mjs +1 -1
  286. package/dist/esm/api/resources/agent/errors/ConflictError.d.mts +5 -0
  287. package/dist/esm/api/resources/agent/errors/ConflictError.mjs +17 -0
  288. package/dist/esm/api/resources/agent/errors/ForbiddenError.mjs +1 -1
  289. package/dist/esm/api/resources/agent/errors/GatewayTimeoutError.mjs +1 -1
  290. package/dist/esm/api/resources/agent/errors/InternalServerError.mjs +1 -1
  291. package/dist/esm/api/resources/agent/errors/NotFoundError.mjs +1 -1
  292. package/dist/esm/api/resources/agent/errors/UnauthorizedError.mjs +1 -1
  293. package/dist/esm/api/resources/agent/errors/index.d.mts +1 -0
  294. package/dist/esm/api/resources/agent/errors/index.mjs +1 -0
  295. package/dist/esm/api/resources/agent/resources/chat/client/Client.d.mts +1 -0
  296. package/dist/esm/api/resources/agent/resources/chat/client/Client.mjs +8 -2
  297. package/dist/esm/api/resources/agent/resources/chat/client/requests/AgentChatRequest.d.mts +1 -1
  298. package/dist/esm/api/resources/agent/resources/chat/client/requests/AgentStreamChatRequest.d.mts +1 -1
  299. package/dist/esm/api/resources/agent/resources/prompts/client/Client.mjs +4 -3
  300. package/dist/esm/api/resources/authtoken/client/Client.mjs +2 -1
  301. package/dist/esm/api/resources/authtoken/errors/BadRequestError.mjs +1 -1
  302. package/dist/esm/api/resources/authtoken/errors/InternalServerError.mjs +1 -1
  303. package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.mjs +1 -1
  304. package/dist/esm/api/resources/cohort/client/Client.mjs +2 -1
  305. package/dist/esm/api/resources/cohort/errors/BadRequestError.mjs +1 -1
  306. package/dist/esm/api/resources/cohort/errors/InternalServerError.mjs +1 -1
  307. package/dist/esm/api/resources/cohort/errors/UnauthorizedError.mjs +1 -1
  308. package/dist/esm/api/resources/construe/client/Client.mjs +2 -1
  309. package/dist/esm/api/resources/construe/errors/BadRequestError.mjs +1 -1
  310. package/dist/esm/api/resources/construe/errors/ConflictError.mjs +1 -1
  311. package/dist/esm/api/resources/construe/errors/FailedDependencyError.mjs +1 -1
  312. package/dist/esm/api/resources/construe/errors/ForbiddenError.mjs +1 -1
  313. package/dist/esm/api/resources/construe/errors/GatewayTimeoutError.mjs +1 -1
  314. package/dist/esm/api/resources/construe/errors/InternalServerError.mjs +1 -1
  315. package/dist/esm/api/resources/construe/errors/NotFoundError.mjs +1 -1
  316. package/dist/esm/api/resources/construe/errors/NotImplementedError.mjs +1 -1
  317. package/dist/esm/api/resources/construe/errors/ServiceUnavailableError.mjs +1 -1
  318. package/dist/esm/api/resources/construe/errors/UnauthorizedError.mjs +1 -1
  319. package/dist/esm/api/resources/construe/resources/codeSystems/client/Client.mjs +2 -1
  320. package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.mts +1 -1
  321. package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/ExportRequest.d.mts +1 -1
  322. package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/FindRequest.d.mts +1 -1
  323. package/dist/esm/api/resources/construe/resources/codes/client/Client.d.mts +15 -0
  324. package/dist/esm/api/resources/construe/resources/codes/client/Client.mjs +17 -1
  325. package/dist/esm/api/resources/construe/resources/codes/client/requests/CodesListRequest.d.mts +1 -1
  326. package/dist/esm/api/resources/construe/resources/codes/client/requests/ExtractRequest.d.mts +12 -0
  327. package/dist/esm/api/resources/construe/resources/codes/client/requests/LookupRequest.d.mts +1 -1
  328. package/dist/esm/api/resources/construe/resources/codes/client/requests/SearchSemanticRequest.d.mts +1 -1
  329. package/dist/esm/api/resources/construe/resources/codes/client/requests/SearchTextRequest.d.mts +1 -1
  330. package/dist/esm/api/resources/construe/types/ExtractRequestSystem.d.mts +11 -8
  331. package/dist/esm/api/resources/fhir/client/Client.mjs +5 -4
  332. package/dist/esm/api/resources/fhir2Omop/client/Client.d.mts +26 -0
  333. package/dist/esm/api/resources/fhir2Omop/client/Client.mjs +28 -1
  334. package/dist/esm/api/resources/fhir2Omop/client/requests/CreateOmopRequest.d.mts +6 -3
  335. package/dist/esm/api/resources/fhir2Omop/errors/BadRequestError.mjs +1 -1
  336. package/dist/esm/api/resources/fhir2Omop/errors/InternalServerError.mjs +1 -1
  337. package/dist/esm/api/resources/fhir2Omop/errors/ServiceUnavailableError.mjs +1 -1
  338. package/dist/esm/api/resources/fhir2Omop/errors/UnauthorizedError.mjs +1 -1
  339. package/dist/esm/api/resources/fhir2Omop/types/CareSiteRow.d.mts +8 -0
  340. package/dist/esm/api/resources/fhir2Omop/types/ConditionOccurrenceRow.d.mts +1 -0
  341. package/dist/esm/api/resources/fhir2Omop/types/CreateOmopResponse.d.mts +6 -1
  342. package/dist/esm/api/resources/fhir2Omop/types/DeathRow.d.mts +9 -0
  343. package/dist/esm/api/resources/fhir2Omop/types/DeathRow.mjs +2 -0
  344. package/dist/esm/api/resources/fhir2Omop/types/DrugExposureRow.d.mts +1 -0
  345. package/dist/esm/api/resources/fhir2Omop/types/LocationRow.d.mts +14 -0
  346. package/dist/esm/api/resources/fhir2Omop/types/LocationRow.mjs +2 -0
  347. package/dist/esm/api/resources/fhir2Omop/types/MeasurementRow.d.mts +1 -0
  348. package/dist/esm/api/resources/fhir2Omop/types/ObservationPeriodRow.d.mts +7 -0
  349. package/dist/esm/api/resources/fhir2Omop/types/ObservationPeriodRow.mjs +2 -0
  350. package/dist/esm/api/resources/fhir2Omop/types/ObservationRow.d.mts +1 -0
  351. package/dist/esm/api/resources/fhir2Omop/types/OmopTables.d.mts +5 -0
  352. package/dist/esm/api/resources/fhir2Omop/types/PersonRow.d.mts +1 -0
  353. package/dist/esm/api/resources/fhir2Omop/types/ProcedureOccurrenceRow.d.mts +1 -0
  354. package/dist/esm/api/resources/fhir2Omop/types/ProviderRow.d.mts +15 -0
  355. package/dist/esm/api/resources/fhir2Omop/types/ProviderRow.mjs +2 -0
  356. package/dist/esm/api/resources/fhir2Omop/types/VisitOccurrenceRow.d.mts +2 -0
  357. package/dist/esm/api/resources/fhir2Omop/types/index.d.mts +5 -0
  358. package/dist/esm/api/resources/fhir2Omop/types/index.mjs +5 -0
  359. package/dist/esm/api/resources/fhirProvider/client/Client.mjs +2 -1
  360. package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.mjs +1 -1
  361. package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.mjs +1 -1
  362. package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.mjs +1 -1
  363. package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.mjs +1 -1
  364. package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.mjs +1 -1
  365. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/Client.mjs +4 -3
  366. package/dist/esm/api/resources/implementationGuides/client/Client.d.mts +12 -0
  367. package/dist/esm/api/resources/implementationGuides/client/Client.mjs +12 -0
  368. package/dist/esm/api/resources/implementationGuides/client/index.d.mts +1 -0
  369. package/dist/esm/api/resources/implementationGuides/client/index.mjs +1 -0
  370. package/dist/esm/api/resources/implementationGuides/errors/BadRequestError.d.mts +5 -0
  371. package/dist/esm/api/resources/implementationGuides/errors/BadRequestError.mjs +17 -0
  372. package/dist/esm/api/resources/implementationGuides/errors/ForbiddenError.d.mts +5 -0
  373. package/dist/esm/api/resources/implementationGuides/errors/ForbiddenError.mjs +17 -0
  374. package/dist/esm/api/resources/implementationGuides/errors/InternalServerError.d.mts +5 -0
  375. package/dist/esm/api/resources/implementationGuides/errors/InternalServerError.mjs +17 -0
  376. package/dist/esm/api/resources/implementationGuides/errors/NotFoundError.d.mts +5 -0
  377. package/dist/esm/api/resources/implementationGuides/errors/NotFoundError.mjs +17 -0
  378. package/dist/esm/api/resources/implementationGuides/errors/UnauthorizedError.d.mts +5 -0
  379. package/dist/esm/api/resources/implementationGuides/errors/UnauthorizedError.mjs +17 -0
  380. package/dist/esm/api/resources/implementationGuides/errors/index.d.mts +5 -0
  381. package/dist/esm/api/resources/implementationGuides/errors/index.mjs +5 -0
  382. package/dist/esm/api/resources/implementationGuides/exports.d.mts +3 -0
  383. package/dist/esm/api/resources/implementationGuides/exports.mjs +4 -0
  384. package/dist/esm/api/resources/implementationGuides/index.d.mts +4 -0
  385. package/dist/esm/api/resources/implementationGuides/index.mjs +4 -0
  386. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/Client.d.mts +91 -0
  387. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/Client.mjs +279 -0
  388. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/index.d.mts +1 -0
  389. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/index.mjs +1 -0
  390. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/requests/UpdateImplementationGuideRequest.d.mts +8 -0
  391. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/requests/UpdateImplementationGuideRequest.mjs +2 -0
  392. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/requests/index.d.mts +1 -0
  393. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/requests/index.mjs +1 -0
  394. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/exports.d.mts +2 -0
  395. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/exports.mjs +3 -0
  396. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/index.d.mts +1 -0
  397. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/index.mjs +1 -0
  398. package/dist/esm/api/resources/implementationGuides/resources/index.d.mts +2 -0
  399. package/dist/esm/api/resources/implementationGuides/resources/index.mjs +2 -0
  400. package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideDetail.d.mts +5 -0
  401. package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideDetail.mjs +2 -0
  402. package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideListResponse.d.mts +4 -0
  403. package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideListResponse.mjs +2 -0
  404. package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideSummary.d.mts +15 -0
  405. package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideSummary.mjs +2 -0
  406. package/dist/esm/api/resources/implementationGuides/types/index.d.mts +3 -0
  407. package/dist/esm/api/resources/implementationGuides/types/index.mjs +3 -0
  408. package/dist/esm/api/resources/index.d.mts +3 -0
  409. package/dist/esm/api/resources/index.mjs +3 -0
  410. package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +8 -0
  411. package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +15 -6
  412. package/dist/esm/api/resources/lang2Fhir/client/requests/index.d.mts +0 -1
  413. package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.mjs +1 -1
  414. package/dist/esm/api/resources/lang2Fhir/errors/ClientClosedRequestError.mjs +1 -1
  415. package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.mjs +1 -1
  416. package/dist/esm/api/resources/lang2Fhir/errors/GatewayTimeoutError.mjs +1 -1
  417. package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.mjs +1 -1
  418. package/dist/esm/api/resources/lang2Fhir/errors/NotFoundError.mjs +1 -1
  419. package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.mjs +1 -1
  420. package/dist/esm/api/resources/lang2Fhir/errors/UnprocessableEntityError.mjs +1 -1
  421. package/dist/esm/api/resources/lang2Fhir/types/CreateMultiResponse.d.mts +2 -0
  422. package/dist/esm/api/resources/lang2Fhir/{client/requests → types}/ProfileUploadRequest.d.mts +2 -10
  423. package/dist/esm/api/resources/lang2Fhir/types/ProfileUploadRequest.mjs +2 -0
  424. package/dist/esm/api/resources/lang2Fhir/types/index.d.mts +1 -0
  425. package/dist/esm/api/resources/lang2Fhir/types/index.mjs +1 -0
  426. package/dist/esm/api/resources/profiles/client/Client.d.mts +12 -0
  427. package/dist/esm/api/resources/profiles/client/Client.mjs +12 -0
  428. package/dist/esm/api/resources/profiles/client/index.d.mts +1 -0
  429. package/dist/esm/api/resources/profiles/client/index.mjs +1 -0
  430. package/dist/esm/api/resources/profiles/errors/BadRequestError.d.mts +5 -0
  431. package/dist/esm/api/resources/profiles/errors/BadRequestError.mjs +17 -0
  432. package/dist/esm/api/resources/profiles/errors/ForbiddenError.d.mts +5 -0
  433. package/dist/esm/api/resources/profiles/errors/ForbiddenError.mjs +17 -0
  434. package/dist/esm/api/resources/profiles/errors/InternalServerError.d.mts +5 -0
  435. package/dist/esm/api/resources/profiles/errors/InternalServerError.mjs +17 -0
  436. package/dist/esm/api/resources/profiles/errors/NotFoundError.d.mts +5 -0
  437. package/dist/esm/api/resources/profiles/errors/NotFoundError.mjs +17 -0
  438. package/dist/esm/api/resources/profiles/errors/UnauthorizedError.d.mts +5 -0
  439. package/dist/esm/api/resources/profiles/errors/UnauthorizedError.mjs +17 -0
  440. package/dist/esm/api/resources/profiles/errors/index.d.mts +5 -0
  441. package/dist/esm/api/resources/profiles/errors/index.mjs +5 -0
  442. package/dist/esm/api/resources/profiles/exports.d.mts +3 -0
  443. package/dist/esm/api/resources/profiles/exports.mjs +4 -0
  444. package/dist/esm/api/resources/profiles/index.d.mts +4 -0
  445. package/dist/esm/api/resources/profiles/index.mjs +4 -0
  446. package/dist/esm/api/resources/profiles/resources/index.d.mts +2 -0
  447. package/dist/esm/api/resources/profiles/resources/index.mjs +2 -0
  448. package/dist/esm/api/resources/profiles/resources/profiles/client/Client.d.mts +127 -0
  449. package/dist/esm/api/resources/profiles/resources/profiles/client/Client.mjs +360 -0
  450. package/dist/esm/api/resources/profiles/resources/profiles/client/index.d.mts +1 -0
  451. package/dist/esm/api/resources/profiles/resources/profiles/client/index.mjs +1 -0
  452. package/dist/esm/api/resources/profiles/resources/profiles/client/requests/ListRequest.d.mts +10 -0
  453. package/dist/esm/api/resources/profiles/resources/profiles/client/requests/ListRequest.mjs +2 -0
  454. package/dist/esm/api/resources/profiles/resources/profiles/client/requests/index.d.mts +1 -0
  455. package/dist/esm/api/resources/profiles/resources/profiles/client/requests/index.mjs +1 -0
  456. package/dist/esm/api/resources/profiles/resources/profiles/exports.d.mts +2 -0
  457. package/dist/esm/api/resources/profiles/resources/profiles/exports.mjs +3 -0
  458. package/dist/esm/api/resources/profiles/resources/profiles/index.d.mts +1 -0
  459. package/dist/esm/api/resources/profiles/resources/profiles/index.mjs +1 -0
  460. package/dist/esm/api/resources/profiles/types/FhirResource.d.mts +4 -0
  461. package/dist/esm/api/resources/profiles/types/FhirResource.mjs +2 -0
  462. package/dist/esm/api/resources/profiles/types/ProfileGetResponse.d.mts +5 -0
  463. package/dist/esm/api/resources/profiles/types/ProfileGetResponse.mjs +2 -0
  464. package/dist/esm/api/resources/profiles/types/ProfileListResponse.d.mts +4 -0
  465. package/dist/esm/api/resources/profiles/types/ProfileListResponse.mjs +2 -0
  466. package/dist/esm/api/resources/profiles/types/ProfileSummary.d.mts +26 -0
  467. package/dist/esm/api/resources/profiles/types/ProfileSummary.mjs +9 -0
  468. package/dist/esm/api/resources/profiles/types/ProfileUploadRequest.d.mts +7 -0
  469. package/dist/esm/api/resources/profiles/types/ProfileUploadRequest.mjs +2 -0
  470. package/dist/esm/api/resources/profiles/types/index.d.mts +5 -0
  471. package/dist/esm/api/resources/profiles/types/index.mjs +5 -0
  472. package/dist/esm/api/resources/summary/client/Client.mjs +2 -1
  473. package/dist/esm/api/resources/summary/errors/BadRequestError.mjs +1 -1
  474. package/dist/esm/api/resources/summary/errors/ForbiddenError.mjs +1 -1
  475. package/dist/esm/api/resources/summary/errors/InternalServerError.mjs +1 -1
  476. package/dist/esm/api/resources/summary/errors/NotFoundError.mjs +1 -1
  477. package/dist/esm/api/resources/summary/errors/UnauthorizedError.mjs +1 -1
  478. package/dist/esm/api/resources/summary/resources/templates/client/Client.mjs +3 -2
  479. package/dist/esm/api/resources/tools/client/Client.mjs +5 -4
  480. package/dist/esm/api/resources/tools/errors/BadRequestError.mjs +1 -1
  481. package/dist/esm/api/resources/tools/errors/ForbiddenError.mjs +1 -1
  482. package/dist/esm/api/resources/tools/errors/InternalServerError.mjs +1 -1
  483. package/dist/esm/api/resources/tools/errors/NotFoundError.mjs +1 -1
  484. package/dist/esm/api/resources/tools/errors/UnauthorizedError.mjs +1 -1
  485. package/dist/esm/api/resources/tools/resources/mcpServers/client/Client.mjs +2 -1
  486. package/dist/esm/api/resources/voice/client/Client.d.mts +12 -0
  487. package/dist/esm/api/resources/voice/client/Client.mjs +12 -0
  488. package/dist/esm/api/resources/voice/client/index.d.mts +1 -0
  489. package/dist/esm/api/resources/voice/client/index.mjs +1 -0
  490. package/dist/esm/api/resources/voice/errors/BadGatewayError.d.mts +5 -0
  491. package/dist/esm/api/resources/voice/errors/BadGatewayError.mjs +17 -0
  492. package/dist/esm/api/resources/voice/errors/BadRequestError.d.mts +5 -0
  493. package/dist/esm/api/resources/voice/errors/BadRequestError.mjs +17 -0
  494. package/dist/esm/api/resources/voice/errors/ContentTooLargeError.d.mts +5 -0
  495. package/dist/esm/api/resources/voice/errors/ContentTooLargeError.mjs +17 -0
  496. package/dist/esm/api/resources/voice/errors/GatewayTimeoutError.d.mts +5 -0
  497. package/dist/esm/api/resources/voice/errors/GatewayTimeoutError.mjs +17 -0
  498. package/dist/esm/api/resources/voice/errors/PaymentRequiredError.d.mts +5 -0
  499. package/dist/esm/api/resources/voice/errors/PaymentRequiredError.mjs +17 -0
  500. package/dist/esm/api/resources/voice/errors/ServiceUnavailableError.d.mts +5 -0
  501. package/dist/esm/api/resources/voice/errors/ServiceUnavailableError.mjs +17 -0
  502. package/dist/esm/api/resources/voice/errors/UnauthorizedError.d.mts +5 -0
  503. package/dist/esm/api/resources/voice/errors/UnauthorizedError.mjs +17 -0
  504. package/dist/esm/api/resources/voice/errors/index.d.mts +7 -0
  505. package/dist/esm/api/resources/voice/errors/index.mjs +7 -0
  506. package/dist/esm/api/resources/voice/exports.d.mts +3 -0
  507. package/dist/esm/api/resources/voice/exports.mjs +4 -0
  508. package/dist/esm/api/resources/voice/index.d.mts +4 -0
  509. package/dist/esm/api/resources/voice/index.mjs +4 -0
  510. package/dist/esm/api/resources/voice/resources/index.d.mts +2 -0
  511. package/dist/esm/api/resources/voice/resources/index.mjs +2 -0
  512. package/dist/esm/api/resources/voice/resources/voice/client/Client.d.mts +41 -0
  513. package/dist/esm/api/resources/voice/resources/voice/client/Client.mjs +109 -0
  514. package/dist/esm/api/resources/voice/resources/voice/client/index.d.mts +1 -0
  515. package/dist/esm/api/resources/voice/resources/voice/client/index.mjs +1 -0
  516. package/dist/esm/api/resources/voice/resources/voice/client/requests/TranscribeRequest.d.mts +4 -0
  517. package/dist/esm/api/resources/voice/resources/voice/client/requests/TranscribeRequest.mjs +2 -0
  518. package/dist/esm/api/resources/voice/resources/voice/client/requests/index.d.mts +1 -0
  519. package/dist/esm/api/resources/voice/resources/voice/client/requests/index.mjs +1 -0
  520. package/dist/esm/api/resources/voice/resources/voice/exports.d.mts +2 -0
  521. package/dist/esm/api/resources/voice/resources/voice/exports.mjs +3 -0
  522. package/dist/esm/api/resources/voice/resources/voice/index.d.mts +1 -0
  523. package/dist/esm/api/resources/voice/resources/voice/index.mjs +1 -0
  524. package/dist/esm/api/resources/voice/types/TranscribeResponse.d.mts +4 -0
  525. package/dist/esm/api/resources/voice/types/TranscribeResponse.mjs +2 -0
  526. package/dist/esm/api/resources/voice/types/index.d.mts +1 -0
  527. package/dist/esm/api/resources/voice/types/index.mjs +1 -0
  528. package/dist/esm/api/resources/workflows/client/Client.mjs +4 -3
  529. package/dist/esm/api/resources/workflows/errors/BadRequestError.mjs +1 -1
  530. package/dist/esm/api/resources/workflows/errors/ForbiddenError.mjs +1 -1
  531. package/dist/esm/api/resources/workflows/errors/GatewayTimeoutError.mjs +1 -1
  532. package/dist/esm/api/resources/workflows/errors/InternalServerError.mjs +1 -1
  533. package/dist/esm/api/resources/workflows/errors/NotFoundError.mjs +1 -1
  534. package/dist/esm/api/resources/workflows/errors/UnauthorizedError.mjs +1 -1
  535. package/dist/esm/core/exports.d.mts +1 -0
  536. package/dist/esm/core/exports.mjs +1 -0
  537. package/dist/esm/core/file/exports.d.mts +1 -0
  538. package/dist/esm/core/file/exports.mjs +1 -0
  539. package/dist/esm/core/file/file.d.mts +10 -0
  540. package/dist/esm/core/file/file.mjs +188 -0
  541. package/dist/esm/core/file/index.d.mts +2 -0
  542. package/dist/esm/core/file/index.mjs +2 -0
  543. package/dist/esm/core/file/types.d.mts +66 -0
  544. package/dist/esm/core/file/types.mjs +1 -0
  545. package/dist/esm/core/index.d.mts +1 -0
  546. package/dist/esm/core/index.mjs +1 -0
  547. package/dist/esm/core/requestBody.d.mts +12 -0
  548. package/dist/esm/core/requestBody.mjs +23 -0
  549. package/dist/esm/core/stream/Stream.d.mts +45 -1
  550. package/dist/esm/core/stream/Stream.mjs +323 -84
  551. package/dist/esm/core/stream/index.d.mts +1 -0
  552. package/dist/esm/core/url/qs.mjs +2 -2
  553. package/dist/esm/errors/phenomlError.d.mts +1 -0
  554. package/dist/esm/errors/phenomlError.mjs +5 -1
  555. package/dist/esm/errors/phenomlTimeoutError.d.mts +2 -2
  556. package/dist/esm/errors/phenomlTimeoutError.mjs +7 -6
  557. package/dist/esm/version.d.mts +1 -1
  558. package/dist/esm/version.mjs +1 -1
  559. package/openapi/openapi.json +1300 -228
  560. package/package.json +34 -1
  561. package/reference.md +652 -1
  562. /package/dist/cjs/api/resources/{lang2Fhir/client/requests/ProfileUploadRequest.js → fhir2Omop/types/CareSiteRow.js} +0 -0
  563. /package/dist/esm/api/resources/{lang2Fhir/client/requests/ProfileUploadRequest.mjs → fhir2Omop/types/CareSiteRow.mjs} +0 -0
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
12
12
  import { mergeHeaders } from "../../../../core/headers.mjs";
13
13
  import * as core from "../../../../core/index.mjs";
14
+ import { mergeAdditionalBodyParameters } from "../../../../core/requestBody.mjs";
14
15
  import * as environments from "../../../../environments.mjs";
15
16
  import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
16
17
  import * as errors from "../../../../errors/index.mjs";
@@ -126,7 +127,7 @@ export class SummaryClient {
126
127
  contentType: "application/json",
127
128
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
128
129
  requestType: "json",
129
- body: request,
130
+ body: mergeAdditionalBodyParameters(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
130
131
  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,
131
132
  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,
132
133
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -12,6 +12,6 @@ export class BadRequestError extends errors.phenomlError {
12
12
  if (Error.captureStackTrace) {
13
13
  Error.captureStackTrace(this, this.constructor);
14
14
  }
15
- this.name = this.constructor.name;
15
+ this.name = "BadRequestError";
16
16
  }
17
17
  }
@@ -12,6 +12,6 @@ export class ForbiddenError extends errors.phenomlError {
12
12
  if (Error.captureStackTrace) {
13
13
  Error.captureStackTrace(this, this.constructor);
14
14
  }
15
- this.name = this.constructor.name;
15
+ this.name = "ForbiddenError";
16
16
  }
17
17
  }
@@ -12,6 +12,6 @@ export class InternalServerError extends errors.phenomlError {
12
12
  if (Error.captureStackTrace) {
13
13
  Error.captureStackTrace(this, this.constructor);
14
14
  }
15
- this.name = this.constructor.name;
15
+ this.name = "InternalServerError";
16
16
  }
17
17
  }
@@ -12,6 +12,6 @@ export class NotFoundError extends errors.phenomlError {
12
12
  if (Error.captureStackTrace) {
13
13
  Error.captureStackTrace(this, this.constructor);
14
14
  }
15
- this.name = this.constructor.name;
15
+ this.name = "NotFoundError";
16
16
  }
17
17
  }
@@ -12,6 +12,6 @@ export class UnauthorizedError extends errors.phenomlError {
12
12
  if (Error.captureStackTrace) {
13
13
  Error.captureStackTrace(this, this.constructor);
14
14
  }
15
- this.name = this.constructor.name;
15
+ this.name = "UnauthorizedError";
16
16
  }
17
17
  }
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
12
12
  import { mergeHeaders } from "../../../../../../core/headers.mjs";
13
13
  import * as core from "../../../../../../core/index.mjs";
14
+ import { mergeAdditionalBodyParameters } from "../../../../../../core/requestBody.mjs";
14
15
  import * as environments from "../../../../../../environments.mjs";
15
16
  import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
16
17
  import * as errors from "../../../../../../errors/index.mjs";
@@ -105,7 +106,7 @@ export class TemplatesClient {
105
106
  contentType: "application/json",
106
107
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
107
108
  requestType: "json",
108
- body: request,
109
+ body: mergeAdditionalBodyParameters(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
109
110
  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,
110
111
  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,
111
112
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -230,7 +231,7 @@ export class TemplatesClient {
230
231
  contentType: "application/json",
231
232
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
232
233
  requestType: "json",
233
- body: request,
234
+ body: mergeAdditionalBodyParameters(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
234
235
  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,
235
236
  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,
236
237
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -22,6 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
23
23
  import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
24
24
  import * as core from "../../../../core/index.mjs";
25
+ import { mergeAdditionalBodyParameters } from "../../../../core/requestBody.mjs";
25
26
  import * as environments from "../../../../environments.mjs";
26
27
  import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
27
28
  import * as errors from "../../../../errors/index.mjs";
@@ -79,7 +80,7 @@ export class ToolsClient {
79
80
  contentType: "application/json",
80
81
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
81
82
  requestType: "json",
82
- body: _body,
83
+ body: mergeAdditionalBodyParameters(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
83
84
  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,
84
85
  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,
85
86
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -156,7 +157,7 @@ export class ToolsClient {
156
157
  contentType: "application/json",
157
158
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
158
159
  requestType: "json",
159
- body: _body,
160
+ body: mergeAdditionalBodyParameters(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
160
161
  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,
161
162
  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,
162
163
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -229,7 +230,7 @@ export class ToolsClient {
229
230
  contentType: "application/json",
230
231
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
231
232
  requestType: "json",
232
- body: _body,
233
+ body: mergeAdditionalBodyParameters(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
233
234
  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,
234
235
  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,
235
236
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -301,7 +302,7 @@ export class ToolsClient {
301
302
  contentType: "application/json",
302
303
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
303
304
  requestType: "json",
304
- body: _body,
305
+ body: mergeAdditionalBodyParameters(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
305
306
  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,
306
307
  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,
307
308
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -12,6 +12,6 @@ export class BadRequestError extends errors.phenomlError {
12
12
  if (Error.captureStackTrace) {
13
13
  Error.captureStackTrace(this, this.constructor);
14
14
  }
15
- this.name = this.constructor.name;
15
+ this.name = "BadRequestError";
16
16
  }
17
17
  }
@@ -12,6 +12,6 @@ export class ForbiddenError extends errors.phenomlError {
12
12
  if (Error.captureStackTrace) {
13
13
  Error.captureStackTrace(this, this.constructor);
14
14
  }
15
- this.name = this.constructor.name;
15
+ this.name = "ForbiddenError";
16
16
  }
17
17
  }
@@ -12,6 +12,6 @@ export class InternalServerError extends errors.phenomlError {
12
12
  if (Error.captureStackTrace) {
13
13
  Error.captureStackTrace(this, this.constructor);
14
14
  }
15
- this.name = this.constructor.name;
15
+ this.name = "InternalServerError";
16
16
  }
17
17
  }
@@ -12,6 +12,6 @@ export class NotFoundError extends errors.phenomlError {
12
12
  if (Error.captureStackTrace) {
13
13
  Error.captureStackTrace(this, this.constructor);
14
14
  }
15
- this.name = this.constructor.name;
15
+ this.name = "NotFoundError";
16
16
  }
17
17
  }
@@ -12,6 +12,6 @@ export class UnauthorizedError extends errors.phenomlError {
12
12
  if (Error.captureStackTrace) {
13
13
  Error.captureStackTrace(this, this.constructor);
14
14
  }
15
- this.name = this.constructor.name;
15
+ this.name = "UnauthorizedError";
16
16
  }
17
17
  }
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
12
12
  import { mergeHeaders } from "../../../../../../core/headers.mjs";
13
13
  import * as core from "../../../../../../core/index.mjs";
14
+ import { mergeAdditionalBodyParameters } from "../../../../../../core/requestBody.mjs";
14
15
  import * as environments from "../../../../../../environments.mjs";
15
16
  import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
16
17
  import * as errors from "../../../../../../errors/index.mjs";
@@ -54,7 +55,7 @@ export class McpServersClient {
54
55
  contentType: "application/json",
55
56
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
56
57
  requestType: "json",
57
- body: request,
58
+ body: mergeAdditionalBodyParameters(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
58
59
  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,
59
60
  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,
60
61
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -0,0 +1,12 @@
1
+ import type { BaseClientOptions } from "../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
3
+ import { VoiceClient as VoiceClient_ } from "../resources/voice/client/Client.mjs";
4
+ export declare namespace VoiceClient {
5
+ type Options = BaseClientOptions;
6
+ }
7
+ export declare class VoiceClient {
8
+ protected readonly _options: NormalizedClientOptionsWithAuth<VoiceClient.Options>;
9
+ protected _voice: VoiceClient_ | undefined;
10
+ constructor(options?: VoiceClient.Options);
11
+ get voice(): VoiceClient_;
12
+ }
@@ -0,0 +1,12 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
3
+ import { VoiceClient as VoiceClient_ } from "../resources/voice/client/Client.mjs";
4
+ export class VoiceClient {
5
+ constructor(options = {}) {
6
+ this._options = normalizeClientOptionsWithAuth(options);
7
+ }
8
+ get voice() {
9
+ var _a;
10
+ return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new VoiceClient_(this._options)));
11
+ }
12
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import type * as core from "../../../../core/index.mjs";
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ export declare class BadGatewayError extends errors.phenomlError {
4
+ constructor(body?: unknown, rawResponse?: core.RawResponse);
5
+ }
@@ -0,0 +1,17 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ export class BadGatewayError extends errors.phenomlError {
4
+ constructor(body, rawResponse) {
5
+ super({
6
+ message: "BadGatewayError",
7
+ statusCode: 502,
8
+ body: body,
9
+ rawResponse: rawResponse,
10
+ });
11
+ Object.setPrototypeOf(this, new.target.prototype);
12
+ if (Error.captureStackTrace) {
13
+ Error.captureStackTrace(this, this.constructor);
14
+ }
15
+ this.name = "BadGatewayError";
16
+ }
17
+ }
@@ -0,0 +1,5 @@
1
+ import type * as core from "../../../../core/index.mjs";
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ export declare class BadRequestError extends errors.phenomlError {
4
+ constructor(body?: unknown, rawResponse?: core.RawResponse);
5
+ }
@@ -0,0 +1,17 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ export class BadRequestError extends errors.phenomlError {
4
+ constructor(body, rawResponse) {
5
+ super({
6
+ message: "BadRequestError",
7
+ statusCode: 400,
8
+ body: body,
9
+ rawResponse: rawResponse,
10
+ });
11
+ Object.setPrototypeOf(this, new.target.prototype);
12
+ if (Error.captureStackTrace) {
13
+ Error.captureStackTrace(this, this.constructor);
14
+ }
15
+ this.name = "BadRequestError";
16
+ }
17
+ }
@@ -0,0 +1,5 @@
1
+ import type * as core from "../../../../core/index.mjs";
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ export declare class ContentTooLargeError extends errors.phenomlError {
4
+ constructor(body?: unknown, rawResponse?: core.RawResponse);
5
+ }
@@ -0,0 +1,17 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ export class ContentTooLargeError extends errors.phenomlError {
4
+ constructor(body, rawResponse) {
5
+ super({
6
+ message: "ContentTooLargeError",
7
+ statusCode: 413,
8
+ body: body,
9
+ rawResponse: rawResponse,
10
+ });
11
+ Object.setPrototypeOf(this, new.target.prototype);
12
+ if (Error.captureStackTrace) {
13
+ Error.captureStackTrace(this, this.constructor);
14
+ }
15
+ this.name = "ContentTooLargeError";
16
+ }
17
+ }
@@ -0,0 +1,5 @@
1
+ import type * as core from "../../../../core/index.mjs";
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ export declare class GatewayTimeoutError extends errors.phenomlError {
4
+ constructor(body?: unknown, rawResponse?: core.RawResponse);
5
+ }
@@ -0,0 +1,17 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ export class GatewayTimeoutError extends errors.phenomlError {
4
+ constructor(body, rawResponse) {
5
+ super({
6
+ message: "GatewayTimeoutError",
7
+ statusCode: 504,
8
+ body: body,
9
+ rawResponse: rawResponse,
10
+ });
11
+ Object.setPrototypeOf(this, new.target.prototype);
12
+ if (Error.captureStackTrace) {
13
+ Error.captureStackTrace(this, this.constructor);
14
+ }
15
+ this.name = "GatewayTimeoutError";
16
+ }
17
+ }
@@ -0,0 +1,5 @@
1
+ import type * as core from "../../../../core/index.mjs";
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ export declare class PaymentRequiredError extends errors.phenomlError {
4
+ constructor(body?: unknown, rawResponse?: core.RawResponse);
5
+ }
@@ -0,0 +1,17 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ export class PaymentRequiredError extends errors.phenomlError {
4
+ constructor(body, rawResponse) {
5
+ super({
6
+ message: "PaymentRequiredError",
7
+ statusCode: 402,
8
+ body: body,
9
+ rawResponse: rawResponse,
10
+ });
11
+ Object.setPrototypeOf(this, new.target.prototype);
12
+ if (Error.captureStackTrace) {
13
+ Error.captureStackTrace(this, this.constructor);
14
+ }
15
+ this.name = "PaymentRequiredError";
16
+ }
17
+ }
@@ -0,0 +1,5 @@
1
+ import type * as core from "../../../../core/index.mjs";
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ export declare class ServiceUnavailableError extends errors.phenomlError {
4
+ constructor(body?: unknown, rawResponse?: core.RawResponse);
5
+ }
@@ -0,0 +1,17 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ export class ServiceUnavailableError extends errors.phenomlError {
4
+ constructor(body, rawResponse) {
5
+ super({
6
+ message: "ServiceUnavailableError",
7
+ statusCode: 503,
8
+ body: body,
9
+ rawResponse: rawResponse,
10
+ });
11
+ Object.setPrototypeOf(this, new.target.prototype);
12
+ if (Error.captureStackTrace) {
13
+ Error.captureStackTrace(this, this.constructor);
14
+ }
15
+ this.name = "ServiceUnavailableError";
16
+ }
17
+ }
@@ -0,0 +1,5 @@
1
+ import type * as core from "../../../../core/index.mjs";
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ export declare class UnauthorizedError extends errors.phenomlError {
4
+ constructor(body?: unknown, rawResponse?: core.RawResponse);
5
+ }
@@ -0,0 +1,17 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as errors from "../../../../errors/index.mjs";
3
+ export class UnauthorizedError extends errors.phenomlError {
4
+ constructor(body, rawResponse) {
5
+ super({
6
+ message: "UnauthorizedError",
7
+ statusCode: 401,
8
+ body: body,
9
+ rawResponse: rawResponse,
10
+ });
11
+ Object.setPrototypeOf(this, new.target.prototype);
12
+ if (Error.captureStackTrace) {
13
+ Error.captureStackTrace(this, this.constructor);
14
+ }
15
+ this.name = "UnauthorizedError";
16
+ }
17
+ }
@@ -0,0 +1,7 @@
1
+ export * from "./BadGatewayError.mjs";
2
+ export * from "./BadRequestError.mjs";
3
+ export * from "./ContentTooLargeError.mjs";
4
+ export * from "./GatewayTimeoutError.mjs";
5
+ export * from "./PaymentRequiredError.mjs";
6
+ export * from "./ServiceUnavailableError.mjs";
7
+ export * from "./UnauthorizedError.mjs";
@@ -0,0 +1,7 @@
1
+ export * from "./BadGatewayError.mjs";
2
+ export * from "./BadRequestError.mjs";
3
+ export * from "./ContentTooLargeError.mjs";
4
+ export * from "./GatewayTimeoutError.mjs";
5
+ export * from "./PaymentRequiredError.mjs";
6
+ export * from "./ServiceUnavailableError.mjs";
7
+ export * from "./UnauthorizedError.mjs";
@@ -0,0 +1,3 @@
1
+ export { VoiceClient } from "./client/Client.mjs";
2
+ export * from "./client/index.mjs";
3
+ export * from "./resources/index.mjs";
@@ -0,0 +1,4 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export { VoiceClient } from "./client/Client.mjs";
3
+ export * from "./client/index.mjs";
4
+ export * from "./resources/index.mjs";
@@ -0,0 +1,4 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./errors/index.mjs";
3
+ export * from "./resources/index.mjs";
4
+ export * from "./types/index.mjs";
@@ -0,0 +1,4 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./errors/index.mjs";
3
+ export * from "./resources/index.mjs";
4
+ export * from "./types/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./voice/client/requests/index.mjs";
2
+ export * as voice from "./voice/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./voice/client/requests/index.mjs";
2
+ export * as voice from "./voice/index.mjs";
@@ -0,0 +1,41 @@
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 VoiceClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ /**
11
+ * Speech-to-text transcription of audio recordings.
12
+ */
13
+ export declare class VoiceClient {
14
+ protected readonly _options: NormalizedClientOptionsWithAuth<VoiceClient.Options>;
15
+ constructor(options?: VoiceClient.Options);
16
+ /**
17
+ * Transcribes an uploaded audio recording and returns the transcript.
18
+ * Send the raw audio bytes as the request body; the audio format is
19
+ * detected automatically (WAV, FLAC, MP3, OGG/WebM Opus).
20
+ *
21
+ * Supports up to ~5 minutes of audio per request. This limit is on audio
22
+ * duration regardless of file size or format, so a compressed recording
23
+ * within the size limit can still be rejected for being too long. Pair the
24
+ * transcript with a downstream text step (e.g. `POST /lang2fhir/create`)
25
+ * to turn it into a FHIR resource.
26
+ *
27
+ * @param {core.file.Uploadable} uploadable
28
+ * @param {phenoml.voice.TranscribeRequest} request
29
+ * @param {VoiceClient.RequestOptions} requestOptions - Request-specific configuration.
30
+ *
31
+ * @throws {@link phenoml.voice.BadRequestError}
32
+ * @throws {@link phenoml.voice.UnauthorizedError}
33
+ * @throws {@link phenoml.voice.PaymentRequiredError}
34
+ * @throws {@link phenoml.voice.ContentTooLargeError}
35
+ * @throws {@link phenoml.voice.BadGatewayError}
36
+ * @throws {@link phenoml.voice.ServiceUnavailableError}
37
+ * @throws {@link phenoml.voice.GatewayTimeoutError}
38
+ */
39
+ transcribe(uploadable: core.file.Uploadable, request: phenoml.voice.TranscribeRequest, requestOptions?: VoiceClient.RequestOptions): core.HttpResponsePromise<phenoml.voice.TranscribeResponse>;
40
+ private __transcribe;
41
+ }
@@ -0,0 +1,109 @@
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
+ * Speech-to-text transcription of audio recordings.
20
+ */
21
+ export class VoiceClient {
22
+ constructor(options = {}) {
23
+ this._options = normalizeClientOptionsWithAuth(options);
24
+ }
25
+ /**
26
+ * Transcribes an uploaded audio recording and returns the transcript.
27
+ * Send the raw audio bytes as the request body; the audio format is
28
+ * detected automatically (WAV, FLAC, MP3, OGG/WebM Opus).
29
+ *
30
+ * Supports up to ~5 minutes of audio per request. This limit is on audio
31
+ * duration regardless of file size or format, so a compressed recording
32
+ * within the size limit can still be rejected for being too long. Pair the
33
+ * transcript with a downstream text step (e.g. `POST /lang2fhir/create`)
34
+ * to turn it into a FHIR resource.
35
+ *
36
+ * @param {core.file.Uploadable} uploadable
37
+ * @param {phenoml.voice.TranscribeRequest} request
38
+ * @param {VoiceClient.RequestOptions} requestOptions - Request-specific configuration.
39
+ *
40
+ * @throws {@link phenoml.voice.BadRequestError}
41
+ * @throws {@link phenoml.voice.UnauthorizedError}
42
+ * @throws {@link phenoml.voice.PaymentRequiredError}
43
+ * @throws {@link phenoml.voice.ContentTooLargeError}
44
+ * @throws {@link phenoml.voice.BadGatewayError}
45
+ * @throws {@link phenoml.voice.ServiceUnavailableError}
46
+ * @throws {@link phenoml.voice.GatewayTimeoutError}
47
+ */
48
+ transcribe(uploadable, request, requestOptions) {
49
+ return core.HttpResponsePromise.fromPromise(this.__transcribe(uploadable, request, requestOptions));
50
+ }
51
+ __transcribe(uploadable, request, requestOptions) {
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
54
+ const _queryParams = {
55
+ language: request.language,
56
+ };
57
+ const _binaryUploadRequest = yield core.file.toBinaryUploadRequest(uploadable);
58
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
59
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, _binaryUploadRequest.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
60
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
61
+ 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, "transcribe"),
62
+ method: "POST",
63
+ headers: _headers,
64
+ contentType: "application/octet-stream",
65
+ queryString: core.url
66
+ .queryBuilder()
67
+ .addMany(_queryParams)
68
+ .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
69
+ .build(),
70
+ requestType: "bytes",
71
+ duplex: "half",
72
+ body: _binaryUploadRequest.body,
73
+ 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,
74
+ 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,
75
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
76
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
77
+ logging: this._options.logging,
78
+ });
79
+ if (_response.ok) {
80
+ return { data: _response.body, rawResponse: _response.rawResponse };
81
+ }
82
+ if (_response.error.reason === "status-code") {
83
+ switch (_response.error.statusCode) {
84
+ case 400:
85
+ throw new phenoml.voice.BadRequestError(_response.error.body, _response.rawResponse);
86
+ case 401:
87
+ throw new phenoml.voice.UnauthorizedError(_response.error.body, _response.rawResponse);
88
+ case 402:
89
+ throw new phenoml.voice.PaymentRequiredError(_response.error.body, _response.rawResponse);
90
+ case 413:
91
+ throw new phenoml.voice.ContentTooLargeError(_response.error.body, _response.rawResponse);
92
+ case 502:
93
+ throw new phenoml.voice.BadGatewayError(_response.error.body, _response.rawResponse);
94
+ case 503:
95
+ throw new phenoml.voice.ServiceUnavailableError(_response.error.body, _response.rawResponse);
96
+ case 504:
97
+ throw new phenoml.voice.GatewayTimeoutError(_response.error.body, _response.rawResponse);
98
+ default:
99
+ throw new errors.phenomlError({
100
+ statusCode: _response.error.statusCode,
101
+ body: _response.error.body,
102
+ rawResponse: _response.rawResponse,
103
+ });
104
+ }
105
+ }
106
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/transcribe");
107
+ });
108
+ }
109
+ }
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";