phenoml 17.7.0 → 17.9.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 (467) 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 +6 -0
  4. package/dist/cjs/Client.js +20 -10
  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.js +1 -1
  8. package/dist/cjs/api/resources/agent/errors/ForbiddenError.js +1 -1
  9. package/dist/cjs/api/resources/agent/errors/GatewayTimeoutError.js +1 -1
  10. package/dist/cjs/api/resources/agent/errors/InternalServerError.js +1 -1
  11. package/dist/cjs/api/resources/agent/errors/NotFoundError.js +1 -1
  12. package/dist/cjs/api/resources/agent/errors/UnauthorizedError.js +1 -1
  13. package/dist/cjs/api/resources/agent/resources/chat/client/Client.js +3 -2
  14. package/dist/cjs/api/resources/agent/resources/prompts/client/Client.js +4 -3
  15. package/dist/cjs/api/resources/authtoken/client/Client.js +2 -1
  16. package/dist/cjs/api/resources/authtoken/errors/BadRequestError.js +1 -1
  17. package/dist/cjs/api/resources/authtoken/errors/InternalServerError.js +1 -1
  18. package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.js +1 -1
  19. package/dist/cjs/api/resources/cohort/client/Client.js +2 -1
  20. package/dist/cjs/api/resources/cohort/errors/BadRequestError.js +1 -1
  21. package/dist/cjs/api/resources/cohort/errors/InternalServerError.js +1 -1
  22. package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.js +1 -1
  23. package/dist/cjs/api/resources/construe/client/Client.js +2 -1
  24. package/dist/cjs/api/resources/construe/errors/BadRequestError.js +1 -1
  25. package/dist/cjs/api/resources/construe/errors/ConflictError.js +1 -1
  26. package/dist/cjs/api/resources/construe/errors/FailedDependencyError.js +1 -1
  27. package/dist/cjs/api/resources/construe/errors/ForbiddenError.js +1 -1
  28. package/dist/cjs/api/resources/construe/errors/GatewayTimeoutError.js +1 -1
  29. package/dist/cjs/api/resources/construe/errors/InternalServerError.js +1 -1
  30. package/dist/cjs/api/resources/construe/errors/NotFoundError.js +1 -1
  31. package/dist/cjs/api/resources/construe/errors/NotImplementedError.js +1 -1
  32. package/dist/cjs/api/resources/construe/errors/ServiceUnavailableError.js +1 -1
  33. package/dist/cjs/api/resources/construe/errors/UnauthorizedError.js +1 -1
  34. package/dist/cjs/api/resources/construe/resources/codeSystems/client/Client.js +2 -1
  35. package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.ts +1 -1
  36. package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/ExportRequest.d.ts +1 -1
  37. package/dist/cjs/api/resources/construe/resources/codeSystems/client/requests/FindRequest.d.ts +1 -1
  38. package/dist/cjs/api/resources/construe/resources/codes/client/Client.d.ts +47 -0
  39. package/dist/cjs/api/resources/construe/resources/codes/client/Client.js +97 -1
  40. package/dist/cjs/api/resources/construe/resources/codes/client/requests/CodesListRequest.d.ts +1 -1
  41. package/dist/cjs/api/resources/construe/resources/codes/client/requests/ExtractRequest.d.ts +12 -0
  42. package/dist/cjs/api/resources/construe/resources/codes/client/requests/LookupRequest.d.ts +1 -1
  43. package/dist/cjs/api/resources/construe/resources/codes/client/requests/PhenoCrRequest.d.ts +16 -0
  44. package/dist/cjs/api/resources/construe/resources/codes/client/requests/SearchSemanticRequest.d.ts +1 -1
  45. package/dist/cjs/api/resources/construe/resources/codes/client/requests/SearchTextRequest.d.ts +1 -1
  46. package/dist/cjs/api/resources/construe/resources/codes/client/requests/index.d.ts +1 -0
  47. package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.d.ts +11 -8
  48. package/dist/cjs/api/resources/construe/types/PhenocrExtractRequestSystem.d.ts +6 -0
  49. package/dist/cjs/api/resources/construe/types/PhenocrExtractRequestSystem.js +3 -0
  50. package/dist/cjs/api/resources/construe/types/index.d.ts +1 -0
  51. package/dist/cjs/api/resources/construe/types/index.js +1 -0
  52. package/dist/cjs/api/resources/fhir/client/Client.js +5 -4
  53. package/dist/cjs/api/resources/fhir2Omop/client/Client.js +2 -1
  54. package/dist/cjs/api/resources/fhir2Omop/errors/BadRequestError.js +1 -1
  55. package/dist/cjs/api/resources/fhir2Omop/errors/InternalServerError.js +1 -1
  56. package/dist/cjs/api/resources/fhir2Omop/errors/ServiceUnavailableError.js +1 -1
  57. package/dist/cjs/api/resources/fhir2Omop/errors/UnauthorizedError.js +1 -1
  58. package/dist/cjs/api/resources/fhir2Omop/types/CareSiteRow.d.ts +8 -0
  59. package/dist/cjs/api/resources/fhir2Omop/types/CareSiteRow.js +3 -0
  60. package/dist/cjs/api/resources/fhir2Omop/types/ConditionOccurrenceRow.d.ts +1 -0
  61. package/dist/cjs/api/resources/fhir2Omop/types/DeathRow.d.ts +9 -0
  62. package/dist/cjs/api/resources/fhir2Omop/types/DeathRow.js +3 -0
  63. package/dist/cjs/api/resources/fhir2Omop/types/DrugExposureRow.d.ts +1 -0
  64. package/dist/cjs/api/resources/fhir2Omop/types/LocationRow.d.ts +14 -0
  65. package/dist/cjs/api/resources/fhir2Omop/types/LocationRow.js +3 -0
  66. package/dist/cjs/api/resources/fhir2Omop/types/MeasurementRow.d.ts +1 -0
  67. package/dist/cjs/api/resources/fhir2Omop/types/ObservationPeriodRow.d.ts +7 -0
  68. package/dist/cjs/api/resources/fhir2Omop/types/ObservationPeriodRow.js +3 -0
  69. package/dist/cjs/api/resources/fhir2Omop/types/ObservationRow.d.ts +1 -0
  70. package/dist/cjs/api/resources/fhir2Omop/types/OmopTables.d.ts +5 -0
  71. package/dist/cjs/api/resources/fhir2Omop/types/PersonRow.d.ts +1 -0
  72. package/dist/cjs/api/resources/fhir2Omop/types/ProcedureOccurrenceRow.d.ts +1 -0
  73. package/dist/cjs/api/resources/fhir2Omop/types/ProviderRow.d.ts +15 -0
  74. package/dist/cjs/api/resources/fhir2Omop/types/ProviderRow.js +3 -0
  75. package/dist/cjs/api/resources/fhir2Omop/types/VisitOccurrenceRow.d.ts +2 -0
  76. package/dist/cjs/api/resources/fhir2Omop/types/index.d.ts +5 -0
  77. package/dist/cjs/api/resources/fhir2Omop/types/index.js +5 -0
  78. package/dist/cjs/api/resources/fhirProvider/client/Client.js +2 -1
  79. package/dist/cjs/api/resources/fhirProvider/errors/BadRequestError.js +1 -1
  80. package/dist/cjs/api/resources/fhirProvider/errors/ForbiddenError.js +1 -1
  81. package/dist/cjs/api/resources/fhirProvider/errors/InternalServerError.js +1 -1
  82. package/dist/cjs/api/resources/fhirProvider/errors/NotFoundError.js +1 -1
  83. package/dist/cjs/api/resources/fhirProvider/errors/UnauthorizedError.js +1 -1
  84. package/dist/cjs/api/resources/fhirProvider/resources/authConfig/client/Client.js +4 -3
  85. package/dist/cjs/api/resources/implementationGuides/client/Client.d.ts +12 -0
  86. package/dist/cjs/api/resources/implementationGuides/client/Client.js +16 -0
  87. package/dist/cjs/api/resources/implementationGuides/client/index.d.ts +1 -0
  88. package/dist/cjs/api/resources/implementationGuides/client/index.js +2 -0
  89. package/dist/cjs/api/resources/implementationGuides/errors/BadRequestError.d.ts +5 -0
  90. package/dist/cjs/api/resources/implementationGuides/errors/BadRequestError.js +54 -0
  91. package/dist/cjs/api/resources/implementationGuides/errors/ForbiddenError.d.ts +5 -0
  92. package/dist/cjs/api/resources/implementationGuides/errors/ForbiddenError.js +54 -0
  93. package/dist/cjs/api/resources/implementationGuides/errors/InternalServerError.d.ts +5 -0
  94. package/dist/cjs/api/resources/implementationGuides/errors/InternalServerError.js +54 -0
  95. package/dist/cjs/api/resources/implementationGuides/errors/NotFoundError.d.ts +5 -0
  96. package/dist/cjs/api/resources/implementationGuides/errors/NotFoundError.js +54 -0
  97. package/dist/cjs/api/resources/implementationGuides/errors/UnauthorizedError.d.ts +5 -0
  98. package/dist/cjs/api/resources/implementationGuides/errors/UnauthorizedError.js +54 -0
  99. package/dist/cjs/api/resources/implementationGuides/errors/index.d.ts +5 -0
  100. package/dist/cjs/api/resources/implementationGuides/errors/index.js +21 -0
  101. package/dist/cjs/api/resources/implementationGuides/exports.d.ts +3 -0
  102. package/dist/cjs/api/resources/implementationGuides/exports.js +22 -0
  103. package/dist/cjs/api/resources/implementationGuides/index.d.ts +4 -0
  104. package/dist/cjs/api/resources/implementationGuides/index.js +20 -0
  105. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/Client.d.ts +91 -0
  106. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/Client.js +316 -0
  107. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/index.d.ts +1 -0
  108. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/index.js +17 -0
  109. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/requests/UpdateImplementationGuideRequest.d.ts +8 -0
  110. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/requests/UpdateImplementationGuideRequest.js +3 -0
  111. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/requests/index.d.ts +1 -0
  112. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/client/requests/index.js +2 -0
  113. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/exports.d.ts +2 -0
  114. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/exports.js +21 -0
  115. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/index.d.ts +1 -0
  116. package/dist/cjs/api/resources/implementationGuides/resources/implementationGuides/index.js +17 -0
  117. package/dist/cjs/api/resources/implementationGuides/resources/index.d.ts +2 -0
  118. package/dist/cjs/api/resources/implementationGuides/resources/index.js +41 -0
  119. package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideDetail.d.ts +5 -0
  120. package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideDetail.js +3 -0
  121. package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideListResponse.d.ts +4 -0
  122. package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideListResponse.js +3 -0
  123. package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideSummary.d.ts +15 -0
  124. package/dist/cjs/api/resources/implementationGuides/types/ImplementationGuideSummary.js +3 -0
  125. package/dist/cjs/api/resources/implementationGuides/types/index.d.ts +3 -0
  126. package/dist/cjs/api/resources/implementationGuides/types/index.js +19 -0
  127. package/dist/cjs/api/resources/index.d.ts +2 -0
  128. package/dist/cjs/api/resources/index.js +3 -1
  129. package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +8 -0
  130. package/dist/cjs/api/resources/lang2Fhir/client/Client.js +15 -6
  131. package/dist/cjs/api/resources/lang2Fhir/client/requests/index.d.ts +0 -1
  132. package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.js +1 -1
  133. package/dist/cjs/api/resources/lang2Fhir/errors/ClientClosedRequestError.js +1 -1
  134. package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.js +1 -1
  135. package/dist/cjs/api/resources/lang2Fhir/errors/GatewayTimeoutError.js +1 -1
  136. package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.js +1 -1
  137. package/dist/cjs/api/resources/lang2Fhir/errors/NotFoundError.js +1 -1
  138. package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.js +1 -1
  139. package/dist/cjs/api/resources/lang2Fhir/errors/UnprocessableEntityError.js +1 -1
  140. package/dist/cjs/api/resources/lang2Fhir/types/CreateMultiResponse.d.ts +2 -0
  141. package/dist/cjs/api/resources/lang2Fhir/{client/requests → types}/ProfileUploadRequest.d.ts +2 -10
  142. package/dist/cjs/api/resources/lang2Fhir/types/ProfileUploadRequest.js +3 -0
  143. package/dist/cjs/api/resources/lang2Fhir/types/index.d.ts +1 -0
  144. package/dist/cjs/api/resources/lang2Fhir/types/index.js +1 -0
  145. package/dist/cjs/api/resources/profiles/client/Client.d.ts +12 -0
  146. package/dist/cjs/api/resources/profiles/client/Client.js +16 -0
  147. package/dist/cjs/api/resources/profiles/client/index.d.ts +1 -0
  148. package/dist/cjs/api/resources/profiles/client/index.js +2 -0
  149. package/dist/cjs/api/resources/profiles/errors/BadRequestError.d.ts +5 -0
  150. package/dist/cjs/api/resources/profiles/errors/BadRequestError.js +54 -0
  151. package/dist/cjs/api/resources/profiles/errors/ForbiddenError.d.ts +5 -0
  152. package/dist/cjs/api/resources/profiles/errors/ForbiddenError.js +54 -0
  153. package/dist/cjs/api/resources/profiles/errors/InternalServerError.d.ts +5 -0
  154. package/dist/cjs/api/resources/profiles/errors/InternalServerError.js +54 -0
  155. package/dist/cjs/api/resources/profiles/errors/NotFoundError.d.ts +5 -0
  156. package/dist/cjs/api/resources/profiles/errors/NotFoundError.js +54 -0
  157. package/dist/cjs/api/resources/profiles/errors/UnauthorizedError.d.ts +5 -0
  158. package/dist/cjs/api/resources/profiles/errors/UnauthorizedError.js +54 -0
  159. package/dist/cjs/api/resources/profiles/errors/index.d.ts +5 -0
  160. package/dist/cjs/api/resources/profiles/errors/index.js +21 -0
  161. package/dist/cjs/api/resources/profiles/exports.d.ts +3 -0
  162. package/dist/cjs/api/resources/profiles/exports.js +22 -0
  163. package/dist/cjs/api/resources/profiles/index.d.ts +4 -0
  164. package/dist/cjs/api/resources/profiles/index.js +20 -0
  165. package/dist/cjs/api/resources/profiles/resources/index.d.ts +2 -0
  166. package/dist/cjs/api/resources/profiles/resources/index.js +41 -0
  167. package/dist/cjs/api/resources/profiles/resources/profiles/client/Client.d.ts +127 -0
  168. package/dist/cjs/api/resources/profiles/resources/profiles/client/Client.js +397 -0
  169. package/dist/cjs/api/resources/profiles/resources/profiles/client/index.d.ts +1 -0
  170. package/dist/cjs/api/resources/profiles/resources/profiles/client/index.js +17 -0
  171. package/dist/cjs/api/resources/profiles/resources/profiles/client/requests/ListRequest.d.ts +10 -0
  172. package/dist/cjs/api/resources/profiles/resources/profiles/client/requests/ListRequest.js +3 -0
  173. package/dist/cjs/api/resources/profiles/resources/profiles/client/requests/index.d.ts +1 -0
  174. package/dist/cjs/api/resources/profiles/resources/profiles/client/requests/index.js +2 -0
  175. package/dist/cjs/api/resources/profiles/resources/profiles/exports.d.ts +2 -0
  176. package/dist/cjs/api/resources/profiles/resources/profiles/exports.js +21 -0
  177. package/dist/cjs/api/resources/profiles/resources/profiles/index.d.ts +1 -0
  178. package/dist/cjs/api/resources/profiles/resources/profiles/index.js +17 -0
  179. package/dist/cjs/api/resources/profiles/types/FhirResource.d.ts +4 -0
  180. package/dist/cjs/api/resources/profiles/types/FhirResource.js +3 -0
  181. package/dist/cjs/api/resources/profiles/types/ProfileGetResponse.d.ts +5 -0
  182. package/dist/cjs/api/resources/profiles/types/ProfileGetResponse.js +3 -0
  183. package/dist/cjs/api/resources/profiles/types/ProfileListResponse.d.ts +4 -0
  184. package/dist/cjs/api/resources/profiles/types/ProfileListResponse.js +3 -0
  185. package/dist/cjs/api/resources/profiles/types/ProfileSummary.d.ts +26 -0
  186. package/dist/cjs/api/resources/profiles/types/ProfileSummary.js +12 -0
  187. package/dist/cjs/api/resources/profiles/types/ProfileUploadRequest.d.ts +7 -0
  188. package/dist/cjs/api/resources/profiles/types/ProfileUploadRequest.js +3 -0
  189. package/dist/cjs/api/resources/profiles/types/index.d.ts +5 -0
  190. package/dist/cjs/api/resources/profiles/types/index.js +21 -0
  191. package/dist/cjs/api/resources/summary/client/Client.js +2 -1
  192. package/dist/cjs/api/resources/summary/errors/BadRequestError.js +1 -1
  193. package/dist/cjs/api/resources/summary/errors/ForbiddenError.js +1 -1
  194. package/dist/cjs/api/resources/summary/errors/InternalServerError.js +1 -1
  195. package/dist/cjs/api/resources/summary/errors/NotFoundError.js +1 -1
  196. package/dist/cjs/api/resources/summary/errors/UnauthorizedError.js +1 -1
  197. package/dist/cjs/api/resources/summary/resources/templates/client/Client.js +3 -2
  198. package/dist/cjs/api/resources/tools/client/Client.js +5 -4
  199. package/dist/cjs/api/resources/tools/errors/BadRequestError.js +1 -1
  200. package/dist/cjs/api/resources/tools/errors/ForbiddenError.js +1 -1
  201. package/dist/cjs/api/resources/tools/errors/InternalServerError.js +1 -1
  202. package/dist/cjs/api/resources/tools/errors/NotFoundError.js +1 -1
  203. package/dist/cjs/api/resources/tools/errors/UnauthorizedError.js +1 -1
  204. package/dist/cjs/api/resources/tools/resources/mcpServers/client/Client.js +2 -1
  205. package/dist/cjs/api/resources/voice/errors/BadGatewayError.js +1 -1
  206. package/dist/cjs/api/resources/voice/errors/BadRequestError.js +1 -1
  207. package/dist/cjs/api/resources/voice/errors/ContentTooLargeError.js +1 -1
  208. package/dist/cjs/api/resources/voice/errors/GatewayTimeoutError.js +1 -1
  209. package/dist/cjs/api/resources/voice/errors/PaymentRequiredError.js +1 -1
  210. package/dist/cjs/api/resources/voice/errors/ServiceUnavailableError.js +1 -1
  211. package/dist/cjs/api/resources/voice/errors/UnauthorizedError.js +1 -1
  212. package/dist/cjs/api/resources/workflows/client/Client.js +4 -3
  213. package/dist/cjs/api/resources/workflows/errors/BadRequestError.js +1 -1
  214. package/dist/cjs/api/resources/workflows/errors/ForbiddenError.js +1 -1
  215. package/dist/cjs/api/resources/workflows/errors/GatewayTimeoutError.js +1 -1
  216. package/dist/cjs/api/resources/workflows/errors/InternalServerError.js +1 -1
  217. package/dist/cjs/api/resources/workflows/errors/NotFoundError.js +1 -1
  218. package/dist/cjs/api/resources/workflows/errors/UnauthorizedError.js +1 -1
  219. package/dist/cjs/core/file/file.js +3 -0
  220. package/dist/cjs/core/requestBody.d.ts +12 -0
  221. package/dist/cjs/core/requestBody.js +26 -0
  222. package/dist/cjs/core/stream/Stream.d.ts +45 -1
  223. package/dist/cjs/core/stream/Stream.js +323 -84
  224. package/dist/cjs/core/stream/index.d.ts +1 -0
  225. package/dist/cjs/core/url/qs.js +2 -2
  226. package/dist/cjs/errors/phenomlError.d.ts +1 -0
  227. package/dist/cjs/errors/phenomlError.js +5 -1
  228. package/dist/cjs/errors/phenomlTimeoutError.d.ts +2 -2
  229. package/dist/cjs/errors/phenomlTimeoutError.js +40 -6
  230. package/dist/cjs/version.d.ts +1 -1
  231. package/dist/cjs/version.js +1 -1
  232. package/dist/esm/BaseClient.d.mts +12 -0
  233. package/dist/esm/BaseClient.mjs +2 -2
  234. package/dist/esm/Client.d.mts +6 -0
  235. package/dist/esm/Client.mjs +10 -0
  236. package/dist/esm/api/resources/agent/client/Client.mjs +4 -3
  237. package/dist/esm/api/resources/agent/errors/BadRequestError.mjs +1 -1
  238. package/dist/esm/api/resources/agent/errors/ConflictError.mjs +1 -1
  239. package/dist/esm/api/resources/agent/errors/ForbiddenError.mjs +1 -1
  240. package/dist/esm/api/resources/agent/errors/GatewayTimeoutError.mjs +1 -1
  241. package/dist/esm/api/resources/agent/errors/InternalServerError.mjs +1 -1
  242. package/dist/esm/api/resources/agent/errors/NotFoundError.mjs +1 -1
  243. package/dist/esm/api/resources/agent/errors/UnauthorizedError.mjs +1 -1
  244. package/dist/esm/api/resources/agent/resources/chat/client/Client.mjs +3 -2
  245. package/dist/esm/api/resources/agent/resources/prompts/client/Client.mjs +4 -3
  246. package/dist/esm/api/resources/authtoken/client/Client.mjs +2 -1
  247. package/dist/esm/api/resources/authtoken/errors/BadRequestError.mjs +1 -1
  248. package/dist/esm/api/resources/authtoken/errors/InternalServerError.mjs +1 -1
  249. package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.mjs +1 -1
  250. package/dist/esm/api/resources/cohort/client/Client.mjs +2 -1
  251. package/dist/esm/api/resources/cohort/errors/BadRequestError.mjs +1 -1
  252. package/dist/esm/api/resources/cohort/errors/InternalServerError.mjs +1 -1
  253. package/dist/esm/api/resources/cohort/errors/UnauthorizedError.mjs +1 -1
  254. package/dist/esm/api/resources/construe/client/Client.mjs +2 -1
  255. package/dist/esm/api/resources/construe/errors/BadRequestError.mjs +1 -1
  256. package/dist/esm/api/resources/construe/errors/ConflictError.mjs +1 -1
  257. package/dist/esm/api/resources/construe/errors/FailedDependencyError.mjs +1 -1
  258. package/dist/esm/api/resources/construe/errors/ForbiddenError.mjs +1 -1
  259. package/dist/esm/api/resources/construe/errors/GatewayTimeoutError.mjs +1 -1
  260. package/dist/esm/api/resources/construe/errors/InternalServerError.mjs +1 -1
  261. package/dist/esm/api/resources/construe/errors/NotFoundError.mjs +1 -1
  262. package/dist/esm/api/resources/construe/errors/NotImplementedError.mjs +1 -1
  263. package/dist/esm/api/resources/construe/errors/ServiceUnavailableError.mjs +1 -1
  264. package/dist/esm/api/resources/construe/errors/UnauthorizedError.mjs +1 -1
  265. package/dist/esm/api/resources/construe/resources/codeSystems/client/Client.mjs +2 -1
  266. package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/DeleteRequest.d.mts +1 -1
  267. package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/ExportRequest.d.mts +1 -1
  268. package/dist/esm/api/resources/construe/resources/codeSystems/client/requests/FindRequest.d.mts +1 -1
  269. package/dist/esm/api/resources/construe/resources/codes/client/Client.d.mts +47 -0
  270. package/dist/esm/api/resources/construe/resources/codes/client/Client.mjs +97 -1
  271. package/dist/esm/api/resources/construe/resources/codes/client/requests/CodesListRequest.d.mts +1 -1
  272. package/dist/esm/api/resources/construe/resources/codes/client/requests/ExtractRequest.d.mts +12 -0
  273. package/dist/esm/api/resources/construe/resources/codes/client/requests/LookupRequest.d.mts +1 -1
  274. package/dist/esm/api/resources/construe/resources/codes/client/requests/PhenoCrRequest.d.mts +16 -0
  275. package/dist/esm/api/resources/construe/resources/codes/client/requests/SearchSemanticRequest.d.mts +1 -1
  276. package/dist/esm/api/resources/construe/resources/codes/client/requests/SearchTextRequest.d.mts +1 -1
  277. package/dist/esm/api/resources/construe/resources/codes/client/requests/index.d.mts +1 -0
  278. package/dist/esm/api/resources/construe/types/ExtractRequestSystem.d.mts +11 -8
  279. package/dist/esm/api/resources/construe/types/PhenocrExtractRequestSystem.d.mts +6 -0
  280. package/dist/esm/api/resources/construe/types/PhenocrExtractRequestSystem.mjs +2 -0
  281. package/dist/esm/api/resources/construe/types/index.d.mts +1 -0
  282. package/dist/esm/api/resources/construe/types/index.mjs +1 -0
  283. package/dist/esm/api/resources/fhir/client/Client.mjs +5 -4
  284. package/dist/esm/api/resources/fhir2Omop/client/Client.mjs +2 -1
  285. package/dist/esm/api/resources/fhir2Omop/errors/BadRequestError.mjs +1 -1
  286. package/dist/esm/api/resources/fhir2Omop/errors/InternalServerError.mjs +1 -1
  287. package/dist/esm/api/resources/fhir2Omop/errors/ServiceUnavailableError.mjs +1 -1
  288. package/dist/esm/api/resources/fhir2Omop/errors/UnauthorizedError.mjs +1 -1
  289. package/dist/esm/api/resources/fhir2Omop/types/CareSiteRow.d.mts +8 -0
  290. package/dist/esm/api/resources/fhir2Omop/types/CareSiteRow.mjs +2 -0
  291. package/dist/esm/api/resources/fhir2Omop/types/ConditionOccurrenceRow.d.mts +1 -0
  292. package/dist/esm/api/resources/fhir2Omop/types/DeathRow.d.mts +9 -0
  293. package/dist/esm/api/resources/fhir2Omop/types/DeathRow.mjs +2 -0
  294. package/dist/esm/api/resources/fhir2Omop/types/DrugExposureRow.d.mts +1 -0
  295. package/dist/esm/api/resources/fhir2Omop/types/LocationRow.d.mts +14 -0
  296. package/dist/esm/api/resources/fhir2Omop/types/LocationRow.mjs +2 -0
  297. package/dist/esm/api/resources/fhir2Omop/types/MeasurementRow.d.mts +1 -0
  298. package/dist/esm/api/resources/fhir2Omop/types/ObservationPeriodRow.d.mts +7 -0
  299. package/dist/esm/api/resources/fhir2Omop/types/ObservationPeriodRow.mjs +2 -0
  300. package/dist/esm/api/resources/fhir2Omop/types/ObservationRow.d.mts +1 -0
  301. package/dist/esm/api/resources/fhir2Omop/types/OmopTables.d.mts +5 -0
  302. package/dist/esm/api/resources/fhir2Omop/types/PersonRow.d.mts +1 -0
  303. package/dist/esm/api/resources/fhir2Omop/types/ProcedureOccurrenceRow.d.mts +1 -0
  304. package/dist/esm/api/resources/fhir2Omop/types/ProviderRow.d.mts +15 -0
  305. package/dist/esm/api/resources/fhir2Omop/types/ProviderRow.mjs +2 -0
  306. package/dist/esm/api/resources/fhir2Omop/types/VisitOccurrenceRow.d.mts +2 -0
  307. package/dist/esm/api/resources/fhir2Omop/types/index.d.mts +5 -0
  308. package/dist/esm/api/resources/fhir2Omop/types/index.mjs +5 -0
  309. package/dist/esm/api/resources/fhirProvider/client/Client.mjs +2 -1
  310. package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.mjs +1 -1
  311. package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.mjs +1 -1
  312. package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.mjs +1 -1
  313. package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.mjs +1 -1
  314. package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.mjs +1 -1
  315. package/dist/esm/api/resources/fhirProvider/resources/authConfig/client/Client.mjs +4 -3
  316. package/dist/esm/api/resources/implementationGuides/client/Client.d.mts +12 -0
  317. package/dist/esm/api/resources/implementationGuides/client/Client.mjs +12 -0
  318. package/dist/esm/api/resources/implementationGuides/client/index.d.mts +1 -0
  319. package/dist/esm/api/resources/implementationGuides/client/index.mjs +1 -0
  320. package/dist/esm/api/resources/implementationGuides/errors/BadRequestError.d.mts +5 -0
  321. package/dist/esm/api/resources/implementationGuides/errors/BadRequestError.mjs +17 -0
  322. package/dist/esm/api/resources/implementationGuides/errors/ForbiddenError.d.mts +5 -0
  323. package/dist/esm/api/resources/implementationGuides/errors/ForbiddenError.mjs +17 -0
  324. package/dist/esm/api/resources/implementationGuides/errors/InternalServerError.d.mts +5 -0
  325. package/dist/esm/api/resources/implementationGuides/errors/InternalServerError.mjs +17 -0
  326. package/dist/esm/api/resources/implementationGuides/errors/NotFoundError.d.mts +5 -0
  327. package/dist/esm/api/resources/implementationGuides/errors/NotFoundError.mjs +17 -0
  328. package/dist/esm/api/resources/implementationGuides/errors/UnauthorizedError.d.mts +5 -0
  329. package/dist/esm/api/resources/implementationGuides/errors/UnauthorizedError.mjs +17 -0
  330. package/dist/esm/api/resources/implementationGuides/errors/index.d.mts +5 -0
  331. package/dist/esm/api/resources/implementationGuides/errors/index.mjs +5 -0
  332. package/dist/esm/api/resources/implementationGuides/exports.d.mts +3 -0
  333. package/dist/esm/api/resources/implementationGuides/exports.mjs +4 -0
  334. package/dist/esm/api/resources/implementationGuides/index.d.mts +4 -0
  335. package/dist/esm/api/resources/implementationGuides/index.mjs +4 -0
  336. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/Client.d.mts +91 -0
  337. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/Client.mjs +279 -0
  338. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/index.d.mts +1 -0
  339. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/index.mjs +1 -0
  340. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/requests/UpdateImplementationGuideRequest.d.mts +8 -0
  341. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/requests/UpdateImplementationGuideRequest.mjs +2 -0
  342. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/requests/index.d.mts +1 -0
  343. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/client/requests/index.mjs +1 -0
  344. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/exports.d.mts +2 -0
  345. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/exports.mjs +3 -0
  346. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/index.d.mts +1 -0
  347. package/dist/esm/api/resources/implementationGuides/resources/implementationGuides/index.mjs +1 -0
  348. package/dist/esm/api/resources/implementationGuides/resources/index.d.mts +2 -0
  349. package/dist/esm/api/resources/implementationGuides/resources/index.mjs +2 -0
  350. package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideDetail.d.mts +5 -0
  351. package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideDetail.mjs +2 -0
  352. package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideListResponse.d.mts +4 -0
  353. package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideListResponse.mjs +2 -0
  354. package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideSummary.d.mts +15 -0
  355. package/dist/esm/api/resources/implementationGuides/types/ImplementationGuideSummary.mjs +2 -0
  356. package/dist/esm/api/resources/implementationGuides/types/index.d.mts +3 -0
  357. package/dist/esm/api/resources/implementationGuides/types/index.mjs +3 -0
  358. package/dist/esm/api/resources/index.d.mts +2 -0
  359. package/dist/esm/api/resources/index.mjs +2 -0
  360. package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +8 -0
  361. package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +15 -6
  362. package/dist/esm/api/resources/lang2Fhir/client/requests/index.d.mts +0 -1
  363. package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.mjs +1 -1
  364. package/dist/esm/api/resources/lang2Fhir/errors/ClientClosedRequestError.mjs +1 -1
  365. package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.mjs +1 -1
  366. package/dist/esm/api/resources/lang2Fhir/errors/GatewayTimeoutError.mjs +1 -1
  367. package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.mjs +1 -1
  368. package/dist/esm/api/resources/lang2Fhir/errors/NotFoundError.mjs +1 -1
  369. package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.mjs +1 -1
  370. package/dist/esm/api/resources/lang2Fhir/errors/UnprocessableEntityError.mjs +1 -1
  371. package/dist/esm/api/resources/lang2Fhir/types/CreateMultiResponse.d.mts +2 -0
  372. package/dist/esm/api/resources/lang2Fhir/{client/requests → types}/ProfileUploadRequest.d.mts +2 -10
  373. package/dist/esm/api/resources/lang2Fhir/types/ProfileUploadRequest.mjs +2 -0
  374. package/dist/esm/api/resources/lang2Fhir/types/index.d.mts +1 -0
  375. package/dist/esm/api/resources/lang2Fhir/types/index.mjs +1 -0
  376. package/dist/esm/api/resources/profiles/client/Client.d.mts +12 -0
  377. package/dist/esm/api/resources/profiles/client/Client.mjs +12 -0
  378. package/dist/esm/api/resources/profiles/client/index.d.mts +1 -0
  379. package/dist/esm/api/resources/profiles/client/index.mjs +1 -0
  380. package/dist/esm/api/resources/profiles/errors/BadRequestError.d.mts +5 -0
  381. package/dist/esm/api/resources/profiles/errors/BadRequestError.mjs +17 -0
  382. package/dist/esm/api/resources/profiles/errors/ForbiddenError.d.mts +5 -0
  383. package/dist/esm/api/resources/profiles/errors/ForbiddenError.mjs +17 -0
  384. package/dist/esm/api/resources/profiles/errors/InternalServerError.d.mts +5 -0
  385. package/dist/esm/api/resources/profiles/errors/InternalServerError.mjs +17 -0
  386. package/dist/esm/api/resources/profiles/errors/NotFoundError.d.mts +5 -0
  387. package/dist/esm/api/resources/profiles/errors/NotFoundError.mjs +17 -0
  388. package/dist/esm/api/resources/profiles/errors/UnauthorizedError.d.mts +5 -0
  389. package/dist/esm/api/resources/profiles/errors/UnauthorizedError.mjs +17 -0
  390. package/dist/esm/api/resources/profiles/errors/index.d.mts +5 -0
  391. package/dist/esm/api/resources/profiles/errors/index.mjs +5 -0
  392. package/dist/esm/api/resources/profiles/exports.d.mts +3 -0
  393. package/dist/esm/api/resources/profiles/exports.mjs +4 -0
  394. package/dist/esm/api/resources/profiles/index.d.mts +4 -0
  395. package/dist/esm/api/resources/profiles/index.mjs +4 -0
  396. package/dist/esm/api/resources/profiles/resources/index.d.mts +2 -0
  397. package/dist/esm/api/resources/profiles/resources/index.mjs +2 -0
  398. package/dist/esm/api/resources/profiles/resources/profiles/client/Client.d.mts +127 -0
  399. package/dist/esm/api/resources/profiles/resources/profiles/client/Client.mjs +360 -0
  400. package/dist/esm/api/resources/profiles/resources/profiles/client/index.d.mts +1 -0
  401. package/dist/esm/api/resources/profiles/resources/profiles/client/index.mjs +1 -0
  402. package/dist/esm/api/resources/profiles/resources/profiles/client/requests/ListRequest.d.mts +10 -0
  403. package/dist/esm/api/resources/profiles/resources/profiles/client/requests/ListRequest.mjs +2 -0
  404. package/dist/esm/api/resources/profiles/resources/profiles/client/requests/index.d.mts +1 -0
  405. package/dist/esm/api/resources/profiles/resources/profiles/client/requests/index.mjs +1 -0
  406. package/dist/esm/api/resources/profiles/resources/profiles/exports.d.mts +2 -0
  407. package/dist/esm/api/resources/profiles/resources/profiles/exports.mjs +3 -0
  408. package/dist/esm/api/resources/profiles/resources/profiles/index.d.mts +1 -0
  409. package/dist/esm/api/resources/profiles/resources/profiles/index.mjs +1 -0
  410. package/dist/esm/api/resources/profiles/types/FhirResource.d.mts +4 -0
  411. package/dist/esm/api/resources/profiles/types/FhirResource.mjs +2 -0
  412. package/dist/esm/api/resources/profiles/types/ProfileGetResponse.d.mts +5 -0
  413. package/dist/esm/api/resources/profiles/types/ProfileGetResponse.mjs +2 -0
  414. package/dist/esm/api/resources/profiles/types/ProfileListResponse.d.mts +4 -0
  415. package/dist/esm/api/resources/profiles/types/ProfileListResponse.mjs +2 -0
  416. package/dist/esm/api/resources/profiles/types/ProfileSummary.d.mts +26 -0
  417. package/dist/esm/api/resources/profiles/types/ProfileSummary.mjs +9 -0
  418. package/dist/esm/api/resources/profiles/types/ProfileUploadRequest.d.mts +7 -0
  419. package/dist/esm/api/resources/profiles/types/ProfileUploadRequest.mjs +2 -0
  420. package/dist/esm/api/resources/profiles/types/index.d.mts +5 -0
  421. package/dist/esm/api/resources/profiles/types/index.mjs +5 -0
  422. package/dist/esm/api/resources/summary/client/Client.mjs +2 -1
  423. package/dist/esm/api/resources/summary/errors/BadRequestError.mjs +1 -1
  424. package/dist/esm/api/resources/summary/errors/ForbiddenError.mjs +1 -1
  425. package/dist/esm/api/resources/summary/errors/InternalServerError.mjs +1 -1
  426. package/dist/esm/api/resources/summary/errors/NotFoundError.mjs +1 -1
  427. package/dist/esm/api/resources/summary/errors/UnauthorizedError.mjs +1 -1
  428. package/dist/esm/api/resources/summary/resources/templates/client/Client.mjs +3 -2
  429. package/dist/esm/api/resources/tools/client/Client.mjs +5 -4
  430. package/dist/esm/api/resources/tools/errors/BadRequestError.mjs +1 -1
  431. package/dist/esm/api/resources/tools/errors/ForbiddenError.mjs +1 -1
  432. package/dist/esm/api/resources/tools/errors/InternalServerError.mjs +1 -1
  433. package/dist/esm/api/resources/tools/errors/NotFoundError.mjs +1 -1
  434. package/dist/esm/api/resources/tools/errors/UnauthorizedError.mjs +1 -1
  435. package/dist/esm/api/resources/tools/resources/mcpServers/client/Client.mjs +2 -1
  436. package/dist/esm/api/resources/voice/errors/BadGatewayError.mjs +1 -1
  437. package/dist/esm/api/resources/voice/errors/BadRequestError.mjs +1 -1
  438. package/dist/esm/api/resources/voice/errors/ContentTooLargeError.mjs +1 -1
  439. package/dist/esm/api/resources/voice/errors/GatewayTimeoutError.mjs +1 -1
  440. package/dist/esm/api/resources/voice/errors/PaymentRequiredError.mjs +1 -1
  441. package/dist/esm/api/resources/voice/errors/ServiceUnavailableError.mjs +1 -1
  442. package/dist/esm/api/resources/voice/errors/UnauthorizedError.mjs +1 -1
  443. package/dist/esm/api/resources/workflows/client/Client.mjs +4 -3
  444. package/dist/esm/api/resources/workflows/errors/BadRequestError.mjs +1 -1
  445. package/dist/esm/api/resources/workflows/errors/ForbiddenError.mjs +1 -1
  446. package/dist/esm/api/resources/workflows/errors/GatewayTimeoutError.mjs +1 -1
  447. package/dist/esm/api/resources/workflows/errors/InternalServerError.mjs +1 -1
  448. package/dist/esm/api/resources/workflows/errors/NotFoundError.mjs +1 -1
  449. package/dist/esm/api/resources/workflows/errors/UnauthorizedError.mjs +1 -1
  450. package/dist/esm/core/file/file.mjs +3 -0
  451. package/dist/esm/core/requestBody.d.mts +12 -0
  452. package/dist/esm/core/requestBody.mjs +23 -0
  453. package/dist/esm/core/stream/Stream.d.mts +45 -1
  454. package/dist/esm/core/stream/Stream.mjs +323 -84
  455. package/dist/esm/core/stream/index.d.mts +1 -0
  456. package/dist/esm/core/url/qs.mjs +2 -2
  457. package/dist/esm/errors/phenomlError.d.mts +1 -0
  458. package/dist/esm/errors/phenomlError.mjs +5 -1
  459. package/dist/esm/errors/phenomlTimeoutError.d.mts +2 -2
  460. package/dist/esm/errors/phenomlTimeoutError.mjs +7 -6
  461. package/dist/esm/version.d.mts +1 -1
  462. package/dist/esm/version.mjs +1 -1
  463. package/openapi/openapi.json +1224 -150
  464. package/package.json +23 -1
  465. package/reference.md +772 -71
  466. /package/dist/cjs/api/resources/{lang2Fhir/client/requests/ProfileUploadRequest.js → construe/resources/codes/client/requests/PhenoCrRequest.js} +0 -0
  467. /package/dist/esm/api/resources/{lang2Fhir/client/requests/ProfileUploadRequest.mjs → construe/resources/codes/client/requests/PhenoCrRequest.mjs} +0 -0
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * url: "http://phenoml.com/fhir/StructureDefinition/custom-patient|1.0.0"
5
+ * }
6
+ */
7
+ export interface ListRequest {
8
+ /** Filter by canonical URL. Accepts the FHIR pinned form `url|version` (split on the last `|`); the bare form matches the current version. */
9
+ url?: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type { ListRequest } from "./ListRequest.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export { ProfilesClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ProfilesClient = void 0;
19
+ var Client_js_1 = require("./client/Client.js");
20
+ Object.defineProperty(exports, "ProfilesClient", { enumerable: true, get: function () { return Client_js_1.ProfilesClient; } });
21
+ __exportStar(require("./client/index.js"), exports);
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -0,0 +1,4 @@
1
+ /**
2
+ * A FHIR resource (schema depends on resource type)
3
+ */
4
+ export type FhirResource = Record<string, unknown>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import type * as phenoml from "../../../index.js";
2
+ export interface ProfileGetResponse extends phenoml.profiles.ProfileSummary {
3
+ /** The full FHIR StructureDefinition JSON. */
4
+ structure_definition?: phenoml.profiles.FhirResource | undefined;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import type * as phenoml from "../../../index.js";
2
+ export interface ProfileListResponse {
3
+ profiles?: phenoml.profiles.ProfileSummary[] | undefined;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,26 @@
1
+ export interface ProfileSummary {
2
+ /** The lowercase StructureDefinition id, used as the profile's lookup key. */
3
+ id?: string | undefined;
4
+ /** The profile's origin. Listings currently return only custom (uploaded) profiles, so this is always "custom" today; built-in (US Core / R4 base) profiles would be surfaced via an opt-in parameter in a future release, not by changing the default behavior. */
5
+ source?: ProfileSummary.Source | undefined;
6
+ /** The FHIR resource type from the StructureDefinition. */
7
+ resource_type?: string | undefined;
8
+ /** The canonical URL from the StructureDefinition. */
9
+ url?: string | undefined;
10
+ /** The version from the StructureDefinition.version field. */
11
+ version?: string | undefined;
12
+ /** The base FHIR version the StructureDefinition targets. */
13
+ fhir_version?: string | undefined;
14
+ /** The implementation guide the profile belongs to. */
15
+ implementation_guide?: string | undefined;
16
+ created_at?: string | undefined;
17
+ updated_at?: string | undefined;
18
+ }
19
+ export declare namespace ProfileSummary {
20
+ /** The profile's origin. Listings currently return only custom (uploaded) profiles, so this is always "custom" today; built-in (US Core / R4 base) profiles would be surfaced via an opt-in parameter in a future release, not by changing the default behavior. */
21
+ const Source: {
22
+ readonly Custom: "custom";
23
+ readonly Builtin: "builtin";
24
+ };
25
+ type Source = (typeof Source)[keyof typeof Source];
26
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ProfileSummary = void 0;
5
+ var ProfileSummary;
6
+ (function (ProfileSummary) {
7
+ /** The profile's origin. Listings currently return only custom (uploaded) profiles, so this is always "custom" today; built-in (US Core / R4 base) profiles would be surfaced via an opt-in parameter in a future release, not by changing the default behavior. */
8
+ ProfileSummary.Source = {
9
+ Custom: "custom",
10
+ Builtin: "builtin",
11
+ };
12
+ })(ProfileSummary || (exports.ProfileSummary = ProfileSummary = {}));
@@ -0,0 +1,7 @@
1
+ import type * as phenoml from "../../../index.js";
2
+ export interface ProfileUploadRequest {
3
+ /** A FHIR StructureDefinition as a JSON object. Must include url, type, and a snapshot with elements. All metadata (version, resource type, id) is derived from the StructureDefinition itself. The lowercase id becomes the profile's lookup key; when omitted, it is derived from the final path segment of the canonical url. */
4
+ structure_definition: phenoml.profiles.FhirResource;
5
+ /** Implementation Guide name to group this profile under. On create, defaults to "custom" if omitted; on update, omitting it preserves the profile's current guide. Cannot be "us_core" (reserved). Use this to organize custom profiles into named IGs that can be referenced when calling create/multi or document/multi endpoints. */
6
+ implementation_guide?: string | undefined;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export * from "./FhirResource.js";
2
+ export * from "./ProfileGetResponse.js";
3
+ export * from "./ProfileListResponse.js";
4
+ export * from "./ProfileSummary.js";
5
+ export * from "./ProfileUploadRequest.js";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./FhirResource.js"), exports);
18
+ __exportStar(require("./ProfileGetResponse.js"), exports);
19
+ __exportStar(require("./ProfileListResponse.js"), exports);
20
+ __exportStar(require("./ProfileSummary.js"), exports);
21
+ __exportStar(require("./ProfileUploadRequest.js"), exports);
@@ -47,6 +47,7 @@ exports.SummaryClient = void 0;
47
47
  const BaseClient_js_1 = require("../../../../BaseClient.js");
48
48
  const headers_js_1 = require("../../../../core/headers.js");
49
49
  const core = __importStar(require("../../../../core/index.js"));
50
+ const requestBody_js_1 = require("../../../../core/requestBody.js");
50
51
  const environments = __importStar(require("../../../../environments.js"));
51
52
  const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
52
53
  const errors = __importStar(require("../../../../errors/index.js"));
@@ -162,7 +163,7 @@ class SummaryClient {
162
163
  contentType: "application/json",
163
164
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
164
165
  requestType: "json",
165
- body: request,
166
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
166
167
  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,
167
168
  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,
168
169
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -48,7 +48,7 @@ class BadRequestError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "BadRequestError";
52
52
  }
53
53
  }
54
54
  exports.BadRequestError = BadRequestError;
@@ -48,7 +48,7 @@ class ForbiddenError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "ForbiddenError";
52
52
  }
53
53
  }
54
54
  exports.ForbiddenError = ForbiddenError;
@@ -48,7 +48,7 @@ class InternalServerError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "InternalServerError";
52
52
  }
53
53
  }
54
54
  exports.InternalServerError = InternalServerError;
@@ -48,7 +48,7 @@ class NotFoundError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "NotFoundError";
52
52
  }
53
53
  }
54
54
  exports.NotFoundError = NotFoundError;
@@ -48,7 +48,7 @@ class UnauthorizedError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "UnauthorizedError";
52
52
  }
53
53
  }
54
54
  exports.UnauthorizedError = UnauthorizedError;
@@ -47,6 +47,7 @@ exports.TemplatesClient = void 0;
47
47
  const BaseClient_js_1 = require("../../../../../../BaseClient.js");
48
48
  const headers_js_1 = require("../../../../../../core/headers.js");
49
49
  const core = __importStar(require("../../../../../../core/index.js"));
50
+ const requestBody_js_1 = require("../../../../../../core/requestBody.js");
50
51
  const environments = __importStar(require("../../../../../../environments.js"));
51
52
  const handleNonStatusCodeError_js_1 = require("../../../../../../errors/handleNonStatusCodeError.js");
52
53
  const errors = __importStar(require("../../../../../../errors/index.js"));
@@ -141,7 +142,7 @@ class TemplatesClient {
141
142
  contentType: "application/json",
142
143
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
143
144
  requestType: "json",
144
- body: request,
145
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
145
146
  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,
146
147
  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,
147
148
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -266,7 +267,7 @@ class TemplatesClient {
266
267
  contentType: "application/json",
267
268
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
268
269
  requestType: "json",
269
- body: request,
270
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
270
271
  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,
271
272
  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,
272
273
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -58,6 +58,7 @@ exports.ToolsClient = void 0;
58
58
  const BaseClient_js_1 = require("../../../../BaseClient.js");
59
59
  const headers_js_1 = require("../../../../core/headers.js");
60
60
  const core = __importStar(require("../../../../core/index.js"));
61
+ const requestBody_js_1 = require("../../../../core/requestBody.js");
61
62
  const environments = __importStar(require("../../../../environments.js"));
62
63
  const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
63
64
  const errors = __importStar(require("../../../../errors/index.js"));
@@ -115,7 +116,7 @@ class ToolsClient {
115
116
  contentType: "application/json",
116
117
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
117
118
  requestType: "json",
118
- body: _body,
119
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
119
120
  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,
120
121
  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,
121
122
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -192,7 +193,7 @@ class ToolsClient {
192
193
  contentType: "application/json",
193
194
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
194
195
  requestType: "json",
195
- body: _body,
196
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
196
197
  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,
197
198
  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,
198
199
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -265,7 +266,7 @@ class ToolsClient {
265
266
  contentType: "application/json",
266
267
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
267
268
  requestType: "json",
268
- body: _body,
269
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
269
270
  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,
270
271
  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,
271
272
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -337,7 +338,7 @@ class ToolsClient {
337
338
  contentType: "application/json",
338
339
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
339
340
  requestType: "json",
340
- body: _body,
341
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
341
342
  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,
342
343
  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,
343
344
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -48,7 +48,7 @@ class BadRequestError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "BadRequestError";
52
52
  }
53
53
  }
54
54
  exports.BadRequestError = BadRequestError;
@@ -48,7 +48,7 @@ class ForbiddenError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "ForbiddenError";
52
52
  }
53
53
  }
54
54
  exports.ForbiddenError = ForbiddenError;
@@ -48,7 +48,7 @@ class InternalServerError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "InternalServerError";
52
52
  }
53
53
  }
54
54
  exports.InternalServerError = InternalServerError;
@@ -48,7 +48,7 @@ class NotFoundError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "NotFoundError";
52
52
  }
53
53
  }
54
54
  exports.NotFoundError = NotFoundError;
@@ -48,7 +48,7 @@ class UnauthorizedError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "UnauthorizedError";
52
52
  }
53
53
  }
54
54
  exports.UnauthorizedError = UnauthorizedError;
@@ -47,6 +47,7 @@ exports.McpServersClient = void 0;
47
47
  const BaseClient_js_1 = require("../../../../../../BaseClient.js");
48
48
  const headers_js_1 = require("../../../../../../core/headers.js");
49
49
  const core = __importStar(require("../../../../../../core/index.js"));
50
+ const requestBody_js_1 = require("../../../../../../core/requestBody.js");
50
51
  const environments = __importStar(require("../../../../../../environments.js"));
51
52
  const handleNonStatusCodeError_js_1 = require("../../../../../../errors/handleNonStatusCodeError.js");
52
53
  const errors = __importStar(require("../../../../../../errors/index.js"));
@@ -90,7 +91,7 @@ class McpServersClient {
90
91
  contentType: "application/json",
91
92
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
92
93
  requestType: "json",
93
- body: request,
94
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
94
95
  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,
95
96
  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,
96
97
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -48,7 +48,7 @@ class BadGatewayError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "BadGatewayError";
52
52
  }
53
53
  }
54
54
  exports.BadGatewayError = BadGatewayError;
@@ -48,7 +48,7 @@ class BadRequestError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "BadRequestError";
52
52
  }
53
53
  }
54
54
  exports.BadRequestError = BadRequestError;
@@ -48,7 +48,7 @@ class ContentTooLargeError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "ContentTooLargeError";
52
52
  }
53
53
  }
54
54
  exports.ContentTooLargeError = ContentTooLargeError;
@@ -48,7 +48,7 @@ class GatewayTimeoutError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "GatewayTimeoutError";
52
52
  }
53
53
  }
54
54
  exports.GatewayTimeoutError = GatewayTimeoutError;
@@ -48,7 +48,7 @@ class PaymentRequiredError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "PaymentRequiredError";
52
52
  }
53
53
  }
54
54
  exports.PaymentRequiredError = PaymentRequiredError;
@@ -48,7 +48,7 @@ class ServiceUnavailableError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "ServiceUnavailableError";
52
52
  }
53
53
  }
54
54
  exports.ServiceUnavailableError = ServiceUnavailableError;
@@ -48,7 +48,7 @@ class UnauthorizedError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "UnauthorizedError";
52
52
  }
53
53
  }
54
54
  exports.UnauthorizedError = UnauthorizedError;
@@ -58,6 +58,7 @@ exports.WorkflowsClient = void 0;
58
58
  const BaseClient_js_1 = require("../../../../BaseClient.js");
59
59
  const headers_js_1 = require("../../../../core/headers.js");
60
60
  const core = __importStar(require("../../../../core/index.js"));
61
+ const requestBody_js_1 = require("../../../../core/requestBody.js");
61
62
  const environments = __importStar(require("../../../../environments.js"));
62
63
  const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
63
64
  const errors = __importStar(require("../../../../errors/index.js"));
@@ -181,7 +182,7 @@ class WorkflowsClient {
181
182
  .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
182
183
  .build(),
183
184
  requestType: "json",
184
- body: _body,
185
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
185
186
  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,
186
187
  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,
187
188
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -337,7 +338,7 @@ class WorkflowsClient {
337
338
  .mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
338
339
  .build(),
339
340
  requestType: "json",
340
- body: _body,
341
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
341
342
  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,
342
343
  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,
343
344
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -481,7 +482,7 @@ class WorkflowsClient {
481
482
  contentType: "application/json",
482
483
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
483
484
  requestType: "json",
484
- body: request,
485
+ body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
485
486
  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,
486
487
  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,
487
488
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -48,7 +48,7 @@ class BadRequestError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "BadRequestError";
52
52
  }
53
53
  }
54
54
  exports.BadRequestError = BadRequestError;
@@ -48,7 +48,7 @@ class ForbiddenError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "ForbiddenError";
52
52
  }
53
53
  }
54
54
  exports.ForbiddenError = ForbiddenError;
@@ -48,7 +48,7 @@ class GatewayTimeoutError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "GatewayTimeoutError";
52
52
  }
53
53
  }
54
54
  exports.GatewayTimeoutError = GatewayTimeoutError;
@@ -48,7 +48,7 @@ class InternalServerError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "InternalServerError";
52
52
  }
53
53
  }
54
54
  exports.InternalServerError = InternalServerError;
@@ -48,7 +48,7 @@ class NotFoundError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "NotFoundError";
52
52
  }
53
53
  }
54
54
  exports.NotFoundError = NotFoundError;
@@ -48,7 +48,7 @@ class UnauthorizedError extends errors.phenomlError {
48
48
  if (Error.captureStackTrace) {
49
49
  Error.captureStackTrace(this, this.constructor);
50
50
  }
51
- this.name = this.constructor.name;
51
+ this.name = "UnauthorizedError";
52
52
  }
53
53
  }
54
54
  exports.UnauthorizedError = UnauthorizedError;
@@ -78,6 +78,9 @@ function toMultipartDataPart(file) {
78
78
  function getFileWithMetadata(file_1) {
79
79
  return __awaiter(this, arguments, void 0, function* (file, { noSniffFileSize } = {}) {
80
80
  var _a, _b, _c, _d, _e;
81
+ if (file == null) {
82
+ throw new Error(`Expected file to be a Blob, Buffer, ReadableStream, or an object with a "path" or "data" property, but received ${file === null ? "null" : "undefined"}.`);
83
+ }
81
84
  if (isFileLike(file)) {
82
85
  return getFileWithMetadata({
83
86
  data: file,
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Spreads caller-supplied `additionalBodyParameters` (from `requestOptions.additionalBodyParameters`)
3
+ * on top of the request body. Caller-supplied properties win over the endpoint body. When no
4
+ * additional body parameters are provided, the original body is returned unchanged so serialization
5
+ * is unaffected.
6
+ *
7
+ * The merge only applies to plain-object (JSON object) bodies. When the body is `null`/`undefined`
8
+ * the additional parameters become the body; when the body is an array or a primitive JSON value it
9
+ * is returned unchanged, since object properties cannot be spread into it. This mirrors the Python
10
+ * SDK, which only merges additional body parameters into mapping bodies.
11
+ */
12
+ export declare function mergeAdditionalBodyParameters(body: unknown, additionalBodyParameters: Record<string, unknown> | undefined): unknown;