phenoml 0.0.7 → 0.0.9

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 (636) hide show
  1. package/dist/cjs/BaseClient.d.ts +3 -3
  2. package/dist/cjs/Client.d.ts +5 -2
  3. package/dist/cjs/Client.js +14 -9
  4. package/dist/cjs/api/resources/agent/client/Client.d.ts +4 -2
  5. package/dist/cjs/api/resources/agent/client/Client.js +42 -28
  6. package/dist/cjs/api/resources/agent/client/index.d.ts +0 -1
  7. package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.d.ts +12 -0
  8. package/dist/cjs/api/resources/agent/client/requests/AgentGetChatMessagesRequest.d.ts +1 -1
  9. package/dist/cjs/api/resources/agent/client/requests/index.d.ts +3 -3
  10. package/dist/cjs/api/resources/agent/errors/BadRequestError.d.ts +1 -1
  11. package/dist/cjs/api/resources/agent/errors/ForbiddenError.d.ts +1 -1
  12. package/dist/cjs/api/resources/agent/errors/InternalServerError.d.ts +1 -1
  13. package/dist/cjs/api/resources/agent/errors/NotFoundError.d.ts +1 -1
  14. package/dist/cjs/api/resources/agent/errors/UnauthorizedError.d.ts +1 -1
  15. package/dist/cjs/api/resources/agent/errors/index.d.ts +1 -1
  16. package/dist/cjs/api/resources/agent/errors/index.js +1 -1
  17. package/dist/cjs/api/resources/agent/index.d.ts +3 -3
  18. package/dist/cjs/api/resources/agent/index.js +3 -3
  19. package/dist/cjs/api/resources/agent/resources/index.d.ts +1 -1
  20. package/dist/cjs/api/resources/agent/resources/index.js +4 -4
  21. package/dist/cjs/api/resources/agent/resources/prompts/client/Client.d.ts +2 -2
  22. package/dist/cjs/api/resources/agent/resources/prompts/client/Client.js +16 -20
  23. package/dist/cjs/api/resources/agent/resources/prompts/client/index.d.ts +0 -1
  24. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/index.d.ts +2 -2
  25. package/dist/cjs/api/resources/agent/resources/prompts/index.d.ts +1 -1
  26. package/dist/cjs/api/resources/agent/resources/prompts/index.js +1 -1
  27. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsListResponse.d.ts +1 -1
  28. package/dist/cjs/api/resources/agent/resources/prompts/types/index.d.ts +1 -1
  29. package/dist/cjs/api/resources/agent/resources/prompts/types/index.js +1 -1
  30. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesResponse.d.ts +1 -1
  31. package/dist/cjs/api/resources/agent/types/AgentListResponse.d.ts +1 -1
  32. package/dist/cjs/api/resources/agent/types/AgentPromptsResponse.d.ts +1 -1
  33. package/dist/cjs/api/resources/agent/types/AgentResponse.d.ts +1 -1
  34. package/dist/cjs/api/resources/agent/types/JsonPatch.d.ts +1 -1
  35. package/dist/cjs/api/resources/agent/types/index.d.ts +7 -7
  36. package/dist/cjs/api/resources/agent/types/index.js +7 -7
  37. package/dist/cjs/api/resources/authtoken/client/Client.d.ts +1 -1
  38. package/dist/cjs/api/resources/authtoken/client/Client.js +1 -1
  39. package/dist/cjs/api/resources/authtoken/errors/BadRequestError.d.ts +1 -1
  40. package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.d.ts +1 -1
  41. package/dist/cjs/api/resources/authtoken/index.d.ts +2 -2
  42. package/dist/cjs/api/resources/authtoken/index.js +2 -2
  43. package/dist/cjs/api/resources/authtoken/resources/auth/client/index.d.ts +0 -1
  44. package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/index.d.ts +1 -1
  45. package/dist/cjs/api/resources/authtoken/resources/auth/index.d.ts +1 -1
  46. package/dist/cjs/api/resources/authtoken/resources/auth/index.js +1 -1
  47. package/dist/cjs/api/resources/authtoken/resources/index.d.ts +1 -1
  48. package/dist/cjs/api/resources/authtoken/resources/index.js +4 -4
  49. package/dist/cjs/api/resources/cohort/client/Client.d.ts +2 -2
  50. package/dist/cjs/api/resources/cohort/client/Client.js +6 -10
  51. package/dist/cjs/api/resources/cohort/client/index.d.ts +0 -1
  52. package/dist/cjs/api/resources/cohort/client/requests/index.d.ts +1 -1
  53. package/dist/cjs/api/resources/cohort/errors/BadRequestError.d.ts +1 -1
  54. package/dist/cjs/api/resources/cohort/errors/InternalServerError.d.ts +1 -1
  55. package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.d.ts +1 -1
  56. package/dist/cjs/api/resources/cohort/errors/index.d.ts +1 -1
  57. package/dist/cjs/api/resources/cohort/errors/index.js +1 -1
  58. package/dist/cjs/api/resources/cohort/index.d.ts +2 -2
  59. package/dist/cjs/api/resources/cohort/index.js +2 -2
  60. package/dist/cjs/api/resources/cohort/types/CohortResponse.d.ts +1 -1
  61. package/dist/cjs/api/resources/construe/client/Client.d.ts +2 -20
  62. package/dist/cjs/api/resources/construe/client/Client.js +7 -85
  63. package/dist/cjs/api/resources/construe/client/index.d.ts +0 -1
  64. package/dist/cjs/api/resources/construe/client/requests/ExtractRequest.d.ts +1 -1
  65. package/dist/cjs/api/resources/construe/client/requests/index.d.ts +2 -3
  66. package/dist/cjs/api/resources/construe/errors/BadRequestError.d.ts +1 -1
  67. package/dist/cjs/api/resources/construe/errors/ConflictError.d.ts +1 -1
  68. package/dist/cjs/api/resources/construe/errors/FailedDependencyError.d.ts +1 -1
  69. package/dist/cjs/api/resources/construe/errors/InternalServerError.d.ts +1 -1
  70. package/dist/cjs/api/resources/construe/errors/UnauthorizedError.d.ts +1 -1
  71. package/dist/cjs/api/resources/construe/errors/index.d.ts +1 -1
  72. package/dist/cjs/api/resources/construe/errors/index.js +1 -1
  73. package/dist/cjs/api/resources/construe/index.d.ts +2 -2
  74. package/dist/cjs/api/resources/construe/index.js +2 -2
  75. package/dist/cjs/api/resources/construe/types/ExtractCodesResult.d.ts +1 -1
  76. package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.d.ts +28 -2
  77. package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.js +14 -2
  78. package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.d.ts +2 -0
  79. package/dist/cjs/api/resources/construe/types/index.d.ts +2 -6
  80. package/dist/cjs/api/resources/construe/types/index.js +2 -6
  81. package/dist/cjs/api/resources/fhir/client/Client.d.ts +20 -11
  82. package/dist/cjs/api/resources/fhir/client/Client.js +48 -37
  83. package/dist/cjs/api/resources/fhir/client/index.d.ts +0 -1
  84. package/dist/cjs/api/resources/fhir/client/requests/FhirCreateRequest.d.ts +12 -3
  85. package/dist/cjs/api/resources/fhir/client/requests/FhirDeleteRequest.d.ts +11 -2
  86. package/dist/cjs/api/resources/fhir/client/requests/FhirExecuteBundleRequest.d.ts +12 -3
  87. package/dist/cjs/api/resources/fhir/client/requests/FhirPatchRequest.d.ts +18 -6
  88. package/dist/cjs/api/resources/fhir/client/requests/FhirSearchRequest.d.ts +13 -3
  89. package/dist/cjs/api/resources/fhir/client/requests/FhirUpsertRequest.d.ts +12 -3
  90. package/dist/cjs/api/resources/fhir/client/requests/index.d.ts +6 -6
  91. package/dist/cjs/api/resources/fhir/errors/BadRequestError.d.ts +1 -1
  92. package/dist/cjs/api/resources/fhir/errors/InternalServerError.d.ts +1 -1
  93. package/dist/cjs/api/resources/fhir/errors/NotFoundError.d.ts +1 -1
  94. package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.d.ts +1 -1
  95. package/dist/cjs/api/resources/fhir/errors/index.d.ts +2 -2
  96. package/dist/cjs/api/resources/fhir/errors/index.js +2 -2
  97. package/dist/cjs/api/resources/fhir/index.d.ts +2 -2
  98. package/dist/cjs/api/resources/fhir/index.js +2 -2
  99. package/dist/cjs/api/resources/fhir/types/FhirSearchResponse.d.ts +1 -1
  100. package/dist/cjs/api/resources/fhir/types/index.d.ts +3 -3
  101. package/dist/cjs/api/resources/fhir/types/index.js +3 -3
  102. package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +2 -2
  103. package/dist/cjs/api/resources/fhirProvider/client/Client.js +19 -23
  104. package/dist/cjs/api/resources/fhirProvider/client/index.d.ts +0 -1
  105. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.d.ts +3 -2
  106. package/dist/cjs/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.d.ts +3 -2
  107. package/dist/cjs/api/resources/fhirProvider/client/requests/index.d.ts +4 -4
  108. package/dist/cjs/api/resources/fhirProvider/errors/BadRequestError.d.ts +1 -1
  109. package/dist/cjs/api/resources/fhirProvider/errors/ForbiddenError.d.ts +1 -1
  110. package/dist/cjs/api/resources/fhirProvider/errors/InternalServerError.d.ts +1 -1
  111. package/dist/cjs/api/resources/fhirProvider/errors/NotFoundError.d.ts +1 -1
  112. package/dist/cjs/api/resources/fhirProvider/errors/UnauthorizedError.d.ts +1 -1
  113. package/dist/cjs/api/resources/fhirProvider/errors/index.d.ts +1 -1
  114. package/dist/cjs/api/resources/fhirProvider/errors/index.js +1 -1
  115. package/dist/cjs/api/resources/fhirProvider/index.d.ts +2 -2
  116. package/dist/cjs/api/resources/fhirProvider/index.js +2 -2
  117. package/dist/cjs/api/resources/fhirProvider/types/AuthMethod.d.ts +2 -1
  118. package/dist/cjs/api/resources/fhirProvider/types/AuthMethod.js +2 -1
  119. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderAuthConfig.d.ts +1 -1
  120. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderListResponse.d.ts +1 -1
  121. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.d.ts +1 -1
  122. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderResponse.d.ts +1 -1
  123. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.d.ts +1 -1
  124. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderTemplate.d.ts +1 -1
  125. package/dist/cjs/api/resources/fhirProvider/types/Role.d.ts +22 -0
  126. package/dist/cjs/api/resources/fhirProvider/types/Role.js +25 -0
  127. package/dist/cjs/api/resources/fhirProvider/types/index.d.ts +8 -7
  128. package/dist/cjs/api/resources/fhirProvider/types/index.js +8 -7
  129. package/dist/cjs/api/resources/index.d.ts +1 -0
  130. package/dist/cjs/api/resources/index.js +2 -1
  131. package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +2 -2
  132. package/dist/cjs/api/resources/lang2Fhir/client/Client.js +9 -13
  133. package/dist/cjs/api/resources/lang2Fhir/client/index.d.ts +0 -1
  134. package/dist/cjs/api/resources/lang2Fhir/client/requests/index.d.ts +4 -4
  135. package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.d.ts +1 -1
  136. package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.d.ts +1 -1
  137. package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.d.ts +1 -1
  138. package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.d.ts +1 -1
  139. package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.d.ts +1 -1
  140. package/dist/cjs/api/resources/lang2Fhir/errors/index.d.ts +2 -2
  141. package/dist/cjs/api/resources/lang2Fhir/errors/index.js +2 -2
  142. package/dist/cjs/api/resources/lang2Fhir/index.d.ts +2 -2
  143. package/dist/cjs/api/resources/lang2Fhir/index.js +2 -2
  144. package/dist/cjs/api/resources/lang2Fhir/types/index.d.ts +1 -1
  145. package/dist/cjs/api/resources/lang2Fhir/types/index.js +1 -1
  146. package/dist/cjs/api/resources/summary/client/Client.d.ts +125 -0
  147. package/dist/cjs/api/resources/summary/client/Client.js +510 -0
  148. package/dist/cjs/api/resources/summary/client/index.d.ts +1 -0
  149. package/dist/cjs/api/resources/summary/client/index.js +17 -0
  150. package/dist/cjs/api/resources/summary/client/requests/CreateSummaryRequest.d.ts +37 -0
  151. package/dist/cjs/api/resources/summary/client/requests/CreateSummaryRequest.js +16 -0
  152. package/dist/cjs/api/resources/summary/client/requests/CreateSummaryTemplateRequest.d.ts +23 -0
  153. package/dist/cjs/api/resources/summary/client/requests/UpdateSummaryTemplateRequest.d.ts +18 -0
  154. package/dist/cjs/api/resources/summary/client/requests/index.d.ts +3 -0
  155. package/dist/cjs/api/resources/summary/client/requests/index.js +2 -0
  156. package/dist/cjs/api/resources/summary/errors/BadRequestError.d.ts +5 -0
  157. package/dist/cjs/api/resources/summary/errors/BadRequestError.js +50 -0
  158. package/dist/cjs/api/resources/summary/errors/ForbiddenError.d.ts +5 -0
  159. package/dist/cjs/api/resources/summary/errors/ForbiddenError.js +50 -0
  160. package/dist/cjs/api/resources/summary/errors/InternalServerError.d.ts +5 -0
  161. package/dist/cjs/api/resources/summary/errors/InternalServerError.js +50 -0
  162. package/dist/cjs/api/resources/summary/errors/NotFoundError.d.ts +5 -0
  163. package/dist/cjs/api/resources/summary/errors/NotFoundError.js +50 -0
  164. package/dist/cjs/api/resources/summary/errors/UnauthorizedError.d.ts +5 -0
  165. package/dist/cjs/api/resources/summary/errors/UnauthorizedError.js +50 -0
  166. package/dist/cjs/api/resources/summary/errors/index.d.ts +5 -0
  167. package/dist/cjs/api/resources/summary/errors/index.js +21 -0
  168. package/dist/cjs/api/resources/summary/index.d.ts +3 -0
  169. package/dist/cjs/api/resources/summary/index.js +19 -0
  170. package/dist/cjs/api/resources/summary/types/CreateSummaryResponse.d.ts +8 -0
  171. package/dist/cjs/api/resources/summary/types/CreateSummaryTemplateResponse.d.ts +7 -0
  172. package/dist/cjs/api/resources/summary/types/FhirBundle.d.ts +13 -0
  173. package/dist/cjs/api/resources/summary/types/FhirResource.d.ts +6 -0
  174. package/dist/cjs/api/resources/summary/types/FhirResource.js +3 -0
  175. package/dist/cjs/api/resources/summary/types/SummaryDeleteTemplateResponse.d.ts +4 -0
  176. package/dist/cjs/api/resources/summary/types/SummaryDeleteTemplateResponse.js +3 -0
  177. package/dist/cjs/api/resources/summary/types/SummaryGetTemplateResponse.d.ts +5 -0
  178. package/dist/cjs/api/resources/summary/types/SummaryGetTemplateResponse.js +3 -0
  179. package/dist/cjs/api/resources/summary/types/SummaryListTemplatesResponse.d.ts +5 -0
  180. package/dist/cjs/api/resources/summary/types/SummaryListTemplatesResponse.js +3 -0
  181. package/dist/cjs/api/resources/summary/types/SummaryTemplate.d.ts +15 -0
  182. package/dist/cjs/api/resources/summary/types/SummaryTemplate.js +3 -0
  183. package/dist/cjs/api/resources/summary/types/SummaryUpdateTemplateResponse.d.ts +6 -0
  184. package/dist/cjs/api/resources/summary/types/SummaryUpdateTemplateResponse.js +3 -0
  185. package/dist/cjs/api/resources/summary/types/index.d.ts +9 -0
  186. package/dist/cjs/api/resources/summary/types/index.js +25 -0
  187. package/dist/cjs/api/resources/tools/client/Client.d.ts +8 -2
  188. package/dist/cjs/api/resources/tools/client/Client.js +43 -15
  189. package/dist/cjs/api/resources/tools/client/index.d.ts +0 -1
  190. package/dist/cjs/api/resources/tools/client/requests/CohortRequest.d.ts +12 -0
  191. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.ts +12 -0
  192. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.ts +12 -0
  193. package/dist/cjs/api/resources/tools/client/requests/index.d.ts +3 -3
  194. package/dist/cjs/api/resources/tools/errors/BadRequestError.d.ts +1 -1
  195. package/dist/cjs/api/resources/tools/errors/FailedDependencyError.d.ts +1 -1
  196. package/dist/cjs/api/resources/tools/errors/ForbiddenError.d.ts +1 -1
  197. package/dist/cjs/api/resources/tools/errors/InternalServerError.d.ts +1 -1
  198. package/dist/cjs/api/resources/tools/errors/UnauthorizedError.d.ts +1 -1
  199. package/dist/cjs/api/resources/tools/errors/index.d.ts +2 -2
  200. package/dist/cjs/api/resources/tools/errors/index.js +2 -2
  201. package/dist/cjs/api/resources/tools/index.d.ts +2 -2
  202. package/dist/cjs/api/resources/tools/index.js +2 -2
  203. package/dist/cjs/api/resources/tools/resources/index.d.ts +1 -1
  204. package/dist/cjs/api/resources/tools/resources/index.js +4 -4
  205. package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.d.ts +2 -2
  206. package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.js +11 -15
  207. package/dist/cjs/api/resources/tools/resources/mcpServer/client/index.d.ts +0 -1
  208. package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/index.d.ts +1 -1
  209. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.d.ts +1 -1
  210. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.js +4 -4
  211. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.ts +2 -2
  212. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +13 -17
  213. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/index.d.ts +0 -1
  214. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.d.ts +1 -1
  215. package/dist/cjs/api/resources/tools/types/CohortResponse.d.ts +1 -1
  216. package/dist/cjs/api/resources/tools/types/index.d.ts +1 -1
  217. package/dist/cjs/api/resources/tools/types/index.js +1 -1
  218. package/dist/cjs/api/resources/workflows/client/Client.d.ts +2 -2
  219. package/dist/cjs/api/resources/workflows/client/Client.js +19 -23
  220. package/dist/cjs/api/resources/workflows/client/index.d.ts +0 -1
  221. package/dist/cjs/api/resources/workflows/client/requests/index.d.ts +5 -5
  222. package/dist/cjs/api/resources/workflows/errors/BadRequestError.d.ts +1 -1
  223. package/dist/cjs/api/resources/workflows/errors/ForbiddenError.d.ts +1 -1
  224. package/dist/cjs/api/resources/workflows/errors/InternalServerError.d.ts +1 -1
  225. package/dist/cjs/api/resources/workflows/errors/NotFoundError.d.ts +1 -1
  226. package/dist/cjs/api/resources/workflows/errors/UnauthorizedError.d.ts +1 -1
  227. package/dist/cjs/api/resources/workflows/errors/index.d.ts +2 -2
  228. package/dist/cjs/api/resources/workflows/errors/index.js +2 -2
  229. package/dist/cjs/api/resources/workflows/index.d.ts +2 -2
  230. package/dist/cjs/api/resources/workflows/index.js +2 -2
  231. package/dist/cjs/api/resources/workflows/types/CreateWorkflowResponse.d.ts +1 -1
  232. package/dist/cjs/api/resources/workflows/types/ListWorkflowsResponse.d.ts +1 -1
  233. package/dist/cjs/api/resources/workflows/types/StepOperation.d.ts +1 -1
  234. package/dist/cjs/api/resources/workflows/types/WorkflowDefinition.d.ts +1 -1
  235. package/dist/cjs/api/resources/workflows/types/WorkflowGraph.d.ts +1 -1
  236. package/dist/cjs/api/resources/workflows/types/WorkflowResponse.d.ts +1 -1
  237. package/dist/cjs/api/resources/workflows/types/WorkflowStep.d.ts +1 -1
  238. package/dist/cjs/api/resources/workflows/types/WorkflowsGetResponse.d.ts +1 -1
  239. package/dist/cjs/api/resources/workflows/types/WorkflowsUpdateResponse.d.ts +1 -1
  240. package/dist/cjs/api/resources/workflows/types/index.d.ts +11 -11
  241. package/dist/cjs/api/resources/workflows/types/index.js +11 -11
  242. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +1 -1
  243. package/dist/cjs/core/fetcher/Fetcher.js +2 -1
  244. package/dist/cjs/core/fetcher/getErrorResponseBody.js +2 -1
  245. package/dist/cjs/core/fetcher/getResponseBody.js +3 -3
  246. package/dist/cjs/core/fetcher/makeRequest.js +2 -2
  247. package/dist/cjs/core/fetcher/requestWithRetries.js +3 -3
  248. package/dist/cjs/core/index.d.ts +2 -2
  249. package/dist/cjs/core/index.js +2 -2
  250. package/dist/cjs/core/url/encodePathParam.d.ts +1 -0
  251. package/dist/cjs/core/url/encodePathParam.js +21 -0
  252. package/dist/cjs/core/url/index.d.ts +1 -0
  253. package/dist/cjs/core/url/index.js +3 -1
  254. package/dist/cjs/core/url/join.js +3 -3
  255. package/dist/cjs/errors/phenomlError.d.ts +1 -1
  256. package/dist/cjs/errors/phenomlError.js +1 -1
  257. package/dist/cjs/version.d.ts +1 -1
  258. package/dist/cjs/version.js +1 -1
  259. package/dist/esm/BaseClient.d.mts +3 -3
  260. package/dist/esm/BaseClient.mjs +1 -2
  261. package/dist/esm/Client.d.mts +5 -2
  262. package/dist/esm/Client.mjs +10 -6
  263. package/dist/esm/api/resources/agent/client/Client.d.mts +4 -2
  264. package/dist/esm/api/resources/agent/client/Client.mjs +42 -28
  265. package/dist/esm/api/resources/agent/client/index.d.mts +0 -1
  266. package/dist/esm/api/resources/agent/client/index.mjs +0 -1
  267. package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.d.mts +12 -0
  268. package/dist/esm/api/resources/agent/client/requests/AgentGetChatMessagesRequest.d.mts +1 -1
  269. package/dist/esm/api/resources/agent/client/requests/AgentGetChatMessagesRequest.mjs +1 -1
  270. package/dist/esm/api/resources/agent/client/requests/index.d.mts +3 -3
  271. package/dist/esm/api/resources/agent/client/requests/index.mjs +1 -3
  272. package/dist/esm/api/resources/agent/errors/BadRequestError.d.mts +1 -1
  273. package/dist/esm/api/resources/agent/errors/BadRequestError.mjs +0 -1
  274. package/dist/esm/api/resources/agent/errors/ForbiddenError.d.mts +1 -1
  275. package/dist/esm/api/resources/agent/errors/ForbiddenError.mjs +0 -1
  276. package/dist/esm/api/resources/agent/errors/InternalServerError.d.mts +1 -1
  277. package/dist/esm/api/resources/agent/errors/InternalServerError.mjs +0 -1
  278. package/dist/esm/api/resources/agent/errors/NotFoundError.d.mts +1 -1
  279. package/dist/esm/api/resources/agent/errors/NotFoundError.mjs +0 -1
  280. package/dist/esm/api/resources/agent/errors/UnauthorizedError.d.mts +1 -1
  281. package/dist/esm/api/resources/agent/errors/UnauthorizedError.mjs +0 -1
  282. package/dist/esm/api/resources/agent/errors/index.d.mts +1 -1
  283. package/dist/esm/api/resources/agent/errors/index.mjs +1 -1
  284. package/dist/esm/api/resources/agent/index.d.mts +3 -3
  285. package/dist/esm/api/resources/agent/index.mjs +3 -3
  286. package/dist/esm/api/resources/agent/resources/index.d.mts +1 -1
  287. package/dist/esm/api/resources/agent/resources/index.mjs +1 -1
  288. package/dist/esm/api/resources/agent/resources/prompts/client/Client.d.mts +2 -2
  289. package/dist/esm/api/resources/agent/resources/prompts/client/Client.mjs +16 -20
  290. package/dist/esm/api/resources/agent/resources/prompts/client/index.d.mts +0 -1
  291. package/dist/esm/api/resources/agent/resources/prompts/client/index.mjs +0 -1
  292. package/dist/esm/api/resources/agent/resources/prompts/client/requests/index.d.mts +2 -2
  293. package/dist/esm/api/resources/agent/resources/prompts/client/requests/index.mjs +1 -2
  294. package/dist/esm/api/resources/agent/resources/prompts/index.d.mts +1 -1
  295. package/dist/esm/api/resources/agent/resources/prompts/index.mjs +1 -1
  296. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsListResponse.d.mts +1 -1
  297. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsListResponse.mjs +1 -1
  298. package/dist/esm/api/resources/agent/resources/prompts/types/index.d.mts +1 -1
  299. package/dist/esm/api/resources/agent/resources/prompts/types/index.mjs +1 -1
  300. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesResponse.d.mts +1 -1
  301. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesResponse.mjs +1 -1
  302. package/dist/esm/api/resources/agent/types/AgentListResponse.d.mts +1 -1
  303. package/dist/esm/api/resources/agent/types/AgentListResponse.mjs +1 -1
  304. package/dist/esm/api/resources/agent/types/AgentPromptsResponse.d.mts +1 -1
  305. package/dist/esm/api/resources/agent/types/AgentPromptsResponse.mjs +1 -1
  306. package/dist/esm/api/resources/agent/types/AgentResponse.d.mts +1 -1
  307. package/dist/esm/api/resources/agent/types/AgentResponse.mjs +1 -1
  308. package/dist/esm/api/resources/agent/types/JsonPatch.d.mts +1 -1
  309. package/dist/esm/api/resources/agent/types/JsonPatch.mjs +1 -1
  310. package/dist/esm/api/resources/agent/types/index.d.mts +7 -7
  311. package/dist/esm/api/resources/agent/types/index.mjs +7 -7
  312. package/dist/esm/api/resources/authtoken/client/Client.d.mts +1 -1
  313. package/dist/esm/api/resources/authtoken/client/Client.mjs +1 -3
  314. package/dist/esm/api/resources/authtoken/errors/BadRequestError.d.mts +1 -1
  315. package/dist/esm/api/resources/authtoken/errors/BadRequestError.mjs +0 -1
  316. package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.d.mts +1 -1
  317. package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.mjs +0 -1
  318. package/dist/esm/api/resources/authtoken/index.d.mts +2 -2
  319. package/dist/esm/api/resources/authtoken/index.mjs +2 -2
  320. package/dist/esm/api/resources/authtoken/resources/auth/client/index.d.mts +0 -1
  321. package/dist/esm/api/resources/authtoken/resources/auth/client/index.mjs +0 -1
  322. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/index.d.mts +1 -1
  323. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/index.mjs +1 -1
  324. package/dist/esm/api/resources/authtoken/resources/auth/index.d.mts +1 -1
  325. package/dist/esm/api/resources/authtoken/resources/auth/index.mjs +1 -1
  326. package/dist/esm/api/resources/authtoken/resources/index.d.mts +1 -1
  327. package/dist/esm/api/resources/authtoken/resources/index.mjs +1 -1
  328. package/dist/esm/api/resources/cohort/client/Client.d.mts +2 -2
  329. package/dist/esm/api/resources/cohort/client/Client.mjs +6 -10
  330. package/dist/esm/api/resources/cohort/client/index.d.mts +0 -1
  331. package/dist/esm/api/resources/cohort/client/index.mjs +0 -1
  332. package/dist/esm/api/resources/cohort/client/requests/index.d.mts +1 -1
  333. package/dist/esm/api/resources/cohort/client/requests/index.mjs +1 -1
  334. package/dist/esm/api/resources/cohort/errors/BadRequestError.d.mts +1 -1
  335. package/dist/esm/api/resources/cohort/errors/BadRequestError.mjs +0 -1
  336. package/dist/esm/api/resources/cohort/errors/InternalServerError.d.mts +1 -1
  337. package/dist/esm/api/resources/cohort/errors/InternalServerError.mjs +0 -1
  338. package/dist/esm/api/resources/cohort/errors/UnauthorizedError.d.mts +1 -1
  339. package/dist/esm/api/resources/cohort/errors/UnauthorizedError.mjs +0 -1
  340. package/dist/esm/api/resources/cohort/errors/index.d.mts +1 -1
  341. package/dist/esm/api/resources/cohort/errors/index.mjs +1 -1
  342. package/dist/esm/api/resources/cohort/index.d.mts +2 -2
  343. package/dist/esm/api/resources/cohort/index.mjs +2 -2
  344. package/dist/esm/api/resources/cohort/types/CohortResponse.d.mts +1 -1
  345. package/dist/esm/api/resources/cohort/types/CohortResponse.mjs +1 -1
  346. package/dist/esm/api/resources/construe/client/Client.d.mts +2 -20
  347. package/dist/esm/api/resources/construe/client/Client.mjs +7 -85
  348. package/dist/esm/api/resources/construe/client/index.d.mts +0 -1
  349. package/dist/esm/api/resources/construe/client/index.mjs +0 -1
  350. package/dist/esm/api/resources/construe/client/requests/ExtractRequest.d.mts +1 -1
  351. package/dist/esm/api/resources/construe/client/requests/ExtractRequest.mjs +1 -1
  352. package/dist/esm/api/resources/construe/client/requests/index.d.mts +2 -3
  353. package/dist/esm/api/resources/construe/client/requests/index.mjs +1 -3
  354. package/dist/esm/api/resources/construe/errors/BadRequestError.d.mts +1 -1
  355. package/dist/esm/api/resources/construe/errors/BadRequestError.mjs +0 -1
  356. package/dist/esm/api/resources/construe/errors/ConflictError.d.mts +1 -1
  357. package/dist/esm/api/resources/construe/errors/ConflictError.mjs +0 -1
  358. package/dist/esm/api/resources/construe/errors/FailedDependencyError.d.mts +1 -1
  359. package/dist/esm/api/resources/construe/errors/FailedDependencyError.mjs +0 -1
  360. package/dist/esm/api/resources/construe/errors/InternalServerError.d.mts +1 -1
  361. package/dist/esm/api/resources/construe/errors/InternalServerError.mjs +0 -1
  362. package/dist/esm/api/resources/construe/errors/UnauthorizedError.d.mts +1 -1
  363. package/dist/esm/api/resources/construe/errors/UnauthorizedError.mjs +0 -1
  364. package/dist/esm/api/resources/construe/errors/index.d.mts +1 -1
  365. package/dist/esm/api/resources/construe/errors/index.mjs +1 -1
  366. package/dist/esm/api/resources/construe/index.d.mts +2 -2
  367. package/dist/esm/api/resources/construe/index.mjs +2 -2
  368. package/dist/esm/api/resources/construe/types/ExtractCodesResult.d.mts +1 -1
  369. package/dist/esm/api/resources/construe/types/ExtractCodesResult.mjs +1 -1
  370. package/dist/esm/api/resources/construe/types/ExtractRequestConfig.d.mts +28 -2
  371. package/dist/esm/api/resources/construe/types/ExtractRequestConfig.mjs +14 -2
  372. package/dist/esm/api/resources/construe/types/ExtractRequestSystem.d.mts +2 -0
  373. package/dist/esm/api/resources/construe/types/index.d.mts +2 -6
  374. package/dist/esm/api/resources/construe/types/index.mjs +2 -6
  375. package/dist/esm/api/resources/fhir/client/Client.d.mts +20 -11
  376. package/dist/esm/api/resources/fhir/client/Client.mjs +48 -37
  377. package/dist/esm/api/resources/fhir/client/index.d.mts +0 -1
  378. package/dist/esm/api/resources/fhir/client/index.mjs +0 -1
  379. package/dist/esm/api/resources/fhir/client/requests/FhirCreateRequest.d.mts +12 -3
  380. package/dist/esm/api/resources/fhir/client/requests/FhirCreateRequest.mjs +1 -1
  381. package/dist/esm/api/resources/fhir/client/requests/FhirDeleteRequest.d.mts +11 -2
  382. package/dist/esm/api/resources/fhir/client/requests/FhirExecuteBundleRequest.d.mts +12 -3
  383. package/dist/esm/api/resources/fhir/client/requests/FhirExecuteBundleRequest.mjs +1 -1
  384. package/dist/esm/api/resources/fhir/client/requests/FhirPatchRequest.d.mts +18 -6
  385. package/dist/esm/api/resources/fhir/client/requests/FhirPatchRequest.mjs +1 -1
  386. package/dist/esm/api/resources/fhir/client/requests/FhirSearchRequest.d.mts +13 -3
  387. package/dist/esm/api/resources/fhir/client/requests/FhirUpsertRequest.d.mts +12 -3
  388. package/dist/esm/api/resources/fhir/client/requests/FhirUpsertRequest.mjs +1 -1
  389. package/dist/esm/api/resources/fhir/client/requests/index.d.mts +6 -6
  390. package/dist/esm/api/resources/fhir/client/requests/index.mjs +1 -6
  391. package/dist/esm/api/resources/fhir/errors/BadRequestError.d.mts +1 -1
  392. package/dist/esm/api/resources/fhir/errors/BadRequestError.mjs +0 -1
  393. package/dist/esm/api/resources/fhir/errors/InternalServerError.d.mts +1 -1
  394. package/dist/esm/api/resources/fhir/errors/InternalServerError.mjs +0 -1
  395. package/dist/esm/api/resources/fhir/errors/NotFoundError.d.mts +1 -1
  396. package/dist/esm/api/resources/fhir/errors/NotFoundError.mjs +0 -1
  397. package/dist/esm/api/resources/fhir/errors/UnauthorizedError.d.mts +1 -1
  398. package/dist/esm/api/resources/fhir/errors/UnauthorizedError.mjs +0 -1
  399. package/dist/esm/api/resources/fhir/errors/index.d.mts +2 -2
  400. package/dist/esm/api/resources/fhir/errors/index.mjs +2 -2
  401. package/dist/esm/api/resources/fhir/index.d.mts +2 -2
  402. package/dist/esm/api/resources/fhir/index.mjs +2 -2
  403. package/dist/esm/api/resources/fhir/types/FhirSearchResponse.d.mts +1 -1
  404. package/dist/esm/api/resources/fhir/types/FhirSearchResponse.mjs +1 -1
  405. package/dist/esm/api/resources/fhir/types/index.d.mts +3 -3
  406. package/dist/esm/api/resources/fhir/types/index.mjs +3 -3
  407. package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +2 -2
  408. package/dist/esm/api/resources/fhirProvider/client/Client.mjs +19 -23
  409. package/dist/esm/api/resources/fhirProvider/client/index.d.mts +0 -1
  410. package/dist/esm/api/resources/fhirProvider/client/index.mjs +0 -1
  411. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.d.mts +3 -2
  412. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderAddAuthConfigRequest.mjs +1 -1
  413. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.d.mts +3 -2
  414. package/dist/esm/api/resources/fhirProvider/client/requests/FhirProviderCreateRequest.mjs +1 -1
  415. package/dist/esm/api/resources/fhirProvider/client/requests/index.d.mts +4 -4
  416. package/dist/esm/api/resources/fhirProvider/client/requests/index.mjs +1 -4
  417. package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.d.mts +1 -1
  418. package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.mjs +0 -1
  419. package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.d.mts +1 -1
  420. package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.mjs +0 -1
  421. package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.d.mts +1 -1
  422. package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.mjs +0 -1
  423. package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.d.mts +1 -1
  424. package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.mjs +0 -1
  425. package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.d.mts +1 -1
  426. package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.mjs +0 -1
  427. package/dist/esm/api/resources/fhirProvider/errors/index.d.mts +1 -1
  428. package/dist/esm/api/resources/fhirProvider/errors/index.mjs +1 -1
  429. package/dist/esm/api/resources/fhirProvider/index.d.mts +2 -2
  430. package/dist/esm/api/resources/fhirProvider/index.mjs +2 -2
  431. package/dist/esm/api/resources/fhirProvider/types/AuthMethod.d.mts +2 -1
  432. package/dist/esm/api/resources/fhirProvider/types/AuthMethod.mjs +2 -1
  433. package/dist/esm/api/resources/fhirProvider/types/FhirProviderAuthConfig.d.mts +1 -1
  434. package/dist/esm/api/resources/fhirProvider/types/FhirProviderAuthConfig.mjs +1 -1
  435. package/dist/esm/api/resources/fhirProvider/types/FhirProviderListResponse.d.mts +1 -1
  436. package/dist/esm/api/resources/fhirProvider/types/FhirProviderListResponse.mjs +1 -1
  437. package/dist/esm/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.d.mts +1 -1
  438. package/dist/esm/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.mjs +1 -1
  439. package/dist/esm/api/resources/fhirProvider/types/FhirProviderResponse.d.mts +1 -1
  440. package/dist/esm/api/resources/fhirProvider/types/FhirProviderResponse.mjs +1 -1
  441. package/dist/esm/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.d.mts +1 -1
  442. package/dist/esm/api/resources/fhirProvider/types/FhirProviderSetActiveAuthConfigResponse.mjs +1 -1
  443. package/dist/esm/api/resources/fhirProvider/types/FhirProviderTemplate.d.mts +1 -1
  444. package/dist/esm/api/resources/fhirProvider/types/FhirProviderTemplate.mjs +1 -1
  445. package/dist/esm/api/resources/fhirProvider/types/Role.d.mts +22 -0
  446. package/dist/esm/api/resources/fhirProvider/types/Role.mjs +22 -0
  447. package/dist/esm/api/resources/fhirProvider/types/index.d.mts +8 -7
  448. package/dist/esm/api/resources/fhirProvider/types/index.mjs +8 -7
  449. package/dist/esm/api/resources/index.d.mts +1 -0
  450. package/dist/esm/api/resources/index.mjs +1 -0
  451. package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +2 -2
  452. package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +9 -13
  453. package/dist/esm/api/resources/lang2Fhir/client/index.d.mts +0 -1
  454. package/dist/esm/api/resources/lang2Fhir/client/index.mjs +0 -1
  455. package/dist/esm/api/resources/lang2Fhir/client/requests/index.d.mts +4 -4
  456. package/dist/esm/api/resources/lang2Fhir/client/requests/index.mjs +1 -4
  457. package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.d.mts +1 -1
  458. package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.mjs +0 -1
  459. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.d.mts +1 -1
  460. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.mjs +0 -1
  461. package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.d.mts +1 -1
  462. package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.mjs +0 -1
  463. package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.d.mts +1 -1
  464. package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.mjs +0 -1
  465. package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.d.mts +1 -1
  466. package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.mjs +0 -1
  467. package/dist/esm/api/resources/lang2Fhir/errors/index.d.mts +2 -2
  468. package/dist/esm/api/resources/lang2Fhir/errors/index.mjs +2 -2
  469. package/dist/esm/api/resources/lang2Fhir/index.d.mts +2 -2
  470. package/dist/esm/api/resources/lang2Fhir/index.mjs +2 -2
  471. package/dist/esm/api/resources/lang2Fhir/types/index.d.mts +1 -1
  472. package/dist/esm/api/resources/lang2Fhir/types/index.mjs +1 -1
  473. package/dist/esm/api/resources/summary/client/Client.d.mts +125 -0
  474. package/dist/esm/api/resources/summary/client/Client.mjs +473 -0
  475. package/dist/esm/api/resources/summary/client/index.d.mts +1 -0
  476. package/dist/esm/api/resources/summary/client/index.mjs +1 -0
  477. package/dist/esm/api/resources/summary/client/requests/CreateSummaryRequest.d.mts +37 -0
  478. package/dist/esm/api/resources/summary/client/requests/CreateSummaryRequest.mjs +13 -0
  479. package/dist/esm/api/resources/summary/client/requests/CreateSummaryTemplateRequest.d.mts +23 -0
  480. package/dist/esm/api/resources/summary/client/requests/UpdateSummaryTemplateRequest.d.mts +18 -0
  481. package/dist/esm/api/resources/summary/client/requests/index.d.mts +3 -0
  482. package/dist/esm/api/resources/summary/client/requests/index.mjs +1 -0
  483. package/dist/esm/api/resources/summary/errors/BadRequestError.d.mts +5 -0
  484. package/dist/esm/api/resources/summary/errors/BadRequestError.mjs +13 -0
  485. package/dist/esm/api/resources/summary/errors/ForbiddenError.d.mts +5 -0
  486. package/dist/esm/api/resources/summary/errors/ForbiddenError.mjs +13 -0
  487. package/dist/esm/api/resources/summary/errors/InternalServerError.d.mts +5 -0
  488. package/dist/esm/api/resources/summary/errors/InternalServerError.mjs +13 -0
  489. package/dist/esm/api/resources/summary/errors/NotFoundError.d.mts +5 -0
  490. package/dist/esm/api/resources/summary/errors/NotFoundError.mjs +13 -0
  491. package/dist/esm/api/resources/summary/errors/UnauthorizedError.d.mts +5 -0
  492. package/dist/esm/api/resources/summary/errors/UnauthorizedError.mjs +13 -0
  493. package/dist/esm/api/resources/summary/errors/index.d.mts +5 -0
  494. package/dist/esm/api/resources/summary/errors/index.mjs +5 -0
  495. package/dist/esm/api/resources/summary/index.d.mts +3 -0
  496. package/dist/esm/api/resources/summary/index.mjs +3 -0
  497. package/dist/esm/api/resources/summary/types/CreateSummaryResponse.d.mts +8 -0
  498. package/dist/esm/api/resources/summary/types/CreateSummaryTemplateResponse.d.mts +7 -0
  499. package/dist/esm/api/resources/summary/types/FhirBundle.d.mts +13 -0
  500. package/dist/esm/api/resources/summary/types/FhirResource.d.mts +6 -0
  501. package/dist/esm/api/resources/summary/types/FhirResource.mjs +2 -0
  502. package/dist/esm/api/resources/summary/types/SummaryDeleteTemplateResponse.d.mts +4 -0
  503. package/dist/esm/api/resources/summary/types/SummaryDeleteTemplateResponse.mjs +2 -0
  504. package/dist/esm/api/resources/summary/types/SummaryGetTemplateResponse.d.mts +5 -0
  505. package/dist/esm/api/resources/summary/types/SummaryGetTemplateResponse.mjs +2 -0
  506. package/dist/esm/api/resources/summary/types/SummaryListTemplatesResponse.d.mts +5 -0
  507. package/dist/esm/api/resources/summary/types/SummaryListTemplatesResponse.mjs +2 -0
  508. package/dist/esm/api/resources/summary/types/SummaryTemplate.d.mts +15 -0
  509. package/dist/esm/api/resources/summary/types/SummaryTemplate.mjs +2 -0
  510. package/dist/esm/api/resources/summary/types/SummaryUpdateTemplateResponse.d.mts +6 -0
  511. package/dist/esm/api/resources/summary/types/SummaryUpdateTemplateResponse.mjs +2 -0
  512. package/dist/esm/api/resources/summary/types/index.d.mts +9 -0
  513. package/dist/esm/api/resources/summary/types/index.mjs +9 -0
  514. package/dist/esm/api/resources/tools/client/Client.d.mts +8 -2
  515. package/dist/esm/api/resources/tools/client/Client.mjs +43 -15
  516. package/dist/esm/api/resources/tools/client/index.d.mts +0 -1
  517. package/dist/esm/api/resources/tools/client/index.mjs +0 -1
  518. package/dist/esm/api/resources/tools/client/requests/CohortRequest.d.mts +12 -0
  519. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.mts +12 -0
  520. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.mts +12 -0
  521. package/dist/esm/api/resources/tools/client/requests/index.d.mts +3 -3
  522. package/dist/esm/api/resources/tools/client/requests/index.mjs +1 -3
  523. package/dist/esm/api/resources/tools/errors/BadRequestError.d.mts +1 -1
  524. package/dist/esm/api/resources/tools/errors/BadRequestError.mjs +0 -1
  525. package/dist/esm/api/resources/tools/errors/FailedDependencyError.d.mts +1 -1
  526. package/dist/esm/api/resources/tools/errors/FailedDependencyError.mjs +0 -1
  527. package/dist/esm/api/resources/tools/errors/ForbiddenError.d.mts +1 -1
  528. package/dist/esm/api/resources/tools/errors/ForbiddenError.mjs +0 -1
  529. package/dist/esm/api/resources/tools/errors/InternalServerError.d.mts +1 -1
  530. package/dist/esm/api/resources/tools/errors/InternalServerError.mjs +0 -1
  531. package/dist/esm/api/resources/tools/errors/UnauthorizedError.d.mts +1 -1
  532. package/dist/esm/api/resources/tools/errors/UnauthorizedError.mjs +0 -1
  533. package/dist/esm/api/resources/tools/errors/index.d.mts +2 -2
  534. package/dist/esm/api/resources/tools/errors/index.mjs +2 -2
  535. package/dist/esm/api/resources/tools/index.d.mts +2 -2
  536. package/dist/esm/api/resources/tools/index.mjs +2 -2
  537. package/dist/esm/api/resources/tools/resources/index.d.mts +1 -1
  538. package/dist/esm/api/resources/tools/resources/index.mjs +1 -1
  539. package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.d.mts +2 -2
  540. package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.mjs +11 -15
  541. package/dist/esm/api/resources/tools/resources/mcpServer/client/index.d.mts +0 -1
  542. package/dist/esm/api/resources/tools/resources/mcpServer/client/index.mjs +0 -1
  543. package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/index.d.mts +1 -1
  544. package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/index.mjs +1 -1
  545. package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.d.mts +1 -1
  546. package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.mjs +1 -1
  547. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.mts +2 -2
  548. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +13 -17
  549. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.d.mts +0 -1
  550. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.mjs +0 -1
  551. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.d.mts +1 -1
  552. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.mjs +1 -1
  553. package/dist/esm/api/resources/tools/types/CohortResponse.d.mts +1 -1
  554. package/dist/esm/api/resources/tools/types/CohortResponse.mjs +1 -1
  555. package/dist/esm/api/resources/tools/types/index.d.mts +1 -1
  556. package/dist/esm/api/resources/tools/types/index.mjs +1 -1
  557. package/dist/esm/api/resources/workflows/client/Client.d.mts +2 -2
  558. package/dist/esm/api/resources/workflows/client/Client.mjs +19 -23
  559. package/dist/esm/api/resources/workflows/client/index.d.mts +0 -1
  560. package/dist/esm/api/resources/workflows/client/index.mjs +0 -1
  561. package/dist/esm/api/resources/workflows/client/requests/index.d.mts +5 -5
  562. package/dist/esm/api/resources/workflows/client/requests/index.mjs +1 -5
  563. package/dist/esm/api/resources/workflows/errors/BadRequestError.d.mts +1 -1
  564. package/dist/esm/api/resources/workflows/errors/BadRequestError.mjs +0 -1
  565. package/dist/esm/api/resources/workflows/errors/ForbiddenError.d.mts +1 -1
  566. package/dist/esm/api/resources/workflows/errors/ForbiddenError.mjs +0 -1
  567. package/dist/esm/api/resources/workflows/errors/InternalServerError.d.mts +1 -1
  568. package/dist/esm/api/resources/workflows/errors/InternalServerError.mjs +0 -1
  569. package/dist/esm/api/resources/workflows/errors/NotFoundError.d.mts +1 -1
  570. package/dist/esm/api/resources/workflows/errors/NotFoundError.mjs +0 -1
  571. package/dist/esm/api/resources/workflows/errors/UnauthorizedError.d.mts +1 -1
  572. package/dist/esm/api/resources/workflows/errors/UnauthorizedError.mjs +0 -1
  573. package/dist/esm/api/resources/workflows/errors/index.d.mts +2 -2
  574. package/dist/esm/api/resources/workflows/errors/index.mjs +2 -2
  575. package/dist/esm/api/resources/workflows/index.d.mts +2 -2
  576. package/dist/esm/api/resources/workflows/index.mjs +2 -2
  577. package/dist/esm/api/resources/workflows/types/CreateWorkflowResponse.d.mts +1 -1
  578. package/dist/esm/api/resources/workflows/types/CreateWorkflowResponse.mjs +1 -1
  579. package/dist/esm/api/resources/workflows/types/ListWorkflowsResponse.d.mts +1 -1
  580. package/dist/esm/api/resources/workflows/types/ListWorkflowsResponse.mjs +1 -1
  581. package/dist/esm/api/resources/workflows/types/StepOperation.d.mts +1 -1
  582. package/dist/esm/api/resources/workflows/types/StepOperation.mjs +1 -1
  583. package/dist/esm/api/resources/workflows/types/WorkflowDefinition.d.mts +1 -1
  584. package/dist/esm/api/resources/workflows/types/WorkflowDefinition.mjs +1 -1
  585. package/dist/esm/api/resources/workflows/types/WorkflowGraph.d.mts +1 -1
  586. package/dist/esm/api/resources/workflows/types/WorkflowGraph.mjs +1 -1
  587. package/dist/esm/api/resources/workflows/types/WorkflowResponse.d.mts +1 -1
  588. package/dist/esm/api/resources/workflows/types/WorkflowResponse.mjs +1 -1
  589. package/dist/esm/api/resources/workflows/types/WorkflowStep.d.mts +1 -1
  590. package/dist/esm/api/resources/workflows/types/WorkflowStep.mjs +0 -1
  591. package/dist/esm/api/resources/workflows/types/WorkflowsGetResponse.d.mts +1 -1
  592. package/dist/esm/api/resources/workflows/types/WorkflowsGetResponse.mjs +1 -1
  593. package/dist/esm/api/resources/workflows/types/WorkflowsUpdateResponse.d.mts +1 -1
  594. package/dist/esm/api/resources/workflows/types/WorkflowsUpdateResponse.mjs +1 -1
  595. package/dist/esm/api/resources/workflows/types/index.d.mts +11 -11
  596. package/dist/esm/api/resources/workflows/types/index.mjs +11 -11
  597. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +1 -1
  598. package/dist/esm/core/fetcher/EndpointSupplier.mjs +0 -1
  599. package/dist/esm/core/fetcher/Fetcher.mjs +2 -1
  600. package/dist/esm/core/fetcher/getErrorResponseBody.mjs +2 -1
  601. package/dist/esm/core/fetcher/getResponseBody.mjs +3 -3
  602. package/dist/esm/core/fetcher/makeRequest.mjs +2 -2
  603. package/dist/esm/core/fetcher/requestWithRetries.mjs +3 -3
  604. package/dist/esm/core/index.d.mts +2 -2
  605. package/dist/esm/core/index.mjs +2 -2
  606. package/dist/esm/core/url/encodePathParam.d.mts +1 -0
  607. package/dist/esm/core/url/encodePathParam.mjs +18 -0
  608. package/dist/esm/core/url/index.d.mts +1 -0
  609. package/dist/esm/core/url/index.mjs +1 -0
  610. package/dist/esm/core/url/join.mjs +3 -3
  611. package/dist/esm/errors/phenomlError.d.mts +1 -1
  612. package/dist/esm/errors/phenomlError.mjs +1 -2
  613. package/dist/esm/version.d.mts +1 -1
  614. package/dist/esm/version.mjs +1 -1
  615. package/package.json +16 -15
  616. package/reference.md +903 -591
  617. package/dist/cjs/api/resources/construe/client/requests/ConstrueCohortRequest.d.ts +0 -23
  618. package/dist/cjs/api/resources/construe/types/BadRequestErrorBody.d.ts +0 -6
  619. package/dist/cjs/api/resources/construe/types/ConstrueCohortResponse.d.ts +0 -46
  620. package/dist/cjs/api/resources/construe/types/InternalServerErrorBody.d.ts +0 -6
  621. package/dist/cjs/api/resources/construe/types/UnauthorizedErrorBody.d.ts +0 -6
  622. package/dist/esm/api/resources/construe/client/requests/ConstrueCohortRequest.d.mts +0 -23
  623. package/dist/esm/api/resources/construe/types/BadRequestErrorBody.d.mts +0 -6
  624. package/dist/esm/api/resources/construe/types/ConstrueCohortResponse.d.mts +0 -46
  625. package/dist/esm/api/resources/construe/types/InternalServerErrorBody.d.mts +0 -6
  626. package/dist/esm/api/resources/construe/types/UnauthorizedErrorBody.d.mts +0 -6
  627. /package/dist/cjs/api/resources/{construe/client/requests/ConstrueCohortRequest.js → summary/client/requests/CreateSummaryTemplateRequest.js} +0 -0
  628. /package/dist/cjs/api/resources/{construe/types/BadRequestErrorBody.js → summary/client/requests/UpdateSummaryTemplateRequest.js} +0 -0
  629. /package/dist/cjs/api/resources/{construe/types/ConstrueCohortResponse.js → summary/types/CreateSummaryResponse.js} +0 -0
  630. /package/dist/cjs/api/resources/{construe/types/InternalServerErrorBody.js → summary/types/CreateSummaryTemplateResponse.js} +0 -0
  631. /package/dist/cjs/api/resources/{construe/types/UnauthorizedErrorBody.js → summary/types/FhirBundle.js} +0 -0
  632. /package/dist/esm/api/resources/{construe/client/requests/ConstrueCohortRequest.mjs → summary/client/requests/CreateSummaryTemplateRequest.mjs} +0 -0
  633. /package/dist/esm/api/resources/{construe/types/BadRequestErrorBody.mjs → summary/client/requests/UpdateSummaryTemplateRequest.mjs} +0 -0
  634. /package/dist/esm/api/resources/{construe/types/ConstrueCohortResponse.mjs → summary/types/CreateSummaryResponse.mjs} +0 -0
  635. /package/dist/esm/api/resources/{construe/types/InternalServerErrorBody.mjs → summary/types/CreateSummaryTemplateResponse.mjs} +0 -0
  636. /package/dist/esm/api/resources/{construe/types/UnauthorizedErrorBody.mjs → summary/types/FhirBundle.mjs} +0 -0
@@ -1,4 +1,3 @@
1
- import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
2
1
  import { Agent } from "./api/resources/agent/client/Client.mjs";
3
2
  import { Authtoken } from "./api/resources/authtoken/client/Client.mjs";
4
3
  import { Cohort } from "./api/resources/cohort/client/Client.mjs";
@@ -6,8 +5,10 @@ import { Construe } from "./api/resources/construe/client/Client.mjs";
6
5
  import { Fhir } from "./api/resources/fhir/client/Client.mjs";
7
6
  import { FhirProvider } from "./api/resources/fhirProvider/client/Client.mjs";
8
7
  import { Lang2Fhir } from "./api/resources/lang2Fhir/client/Client.mjs";
8
+ import { Summary } from "./api/resources/summary/client/Client.mjs";
9
9
  import { Tools } from "./api/resources/tools/client/Client.mjs";
10
10
  import { Workflows } from "./api/resources/workflows/client/Client.mjs";
11
+ import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
11
12
  export declare namespace phenomlClient {
12
13
  interface Options extends BaseClientOptions {
13
14
  }
@@ -23,9 +24,10 @@ export declare class phenomlClient {
23
24
  protected _fhir: Fhir | undefined;
24
25
  protected _fhirProvider: FhirProvider | undefined;
25
26
  protected _lang2Fhir: Lang2Fhir | undefined;
27
+ protected _summary: Summary | undefined;
26
28
  protected _tools: Tools | undefined;
27
29
  protected _workflows: Workflows | undefined;
28
- constructor(_options?: phenomlClient.Options);
30
+ constructor(_options: phenomlClient.Options);
29
31
  get agent(): Agent;
30
32
  get authtoken(): Authtoken;
31
33
  get cohort(): Cohort;
@@ -33,6 +35,7 @@ export declare class phenomlClient {
33
35
  get fhir(): Fhir;
34
36
  get fhirProvider(): FhirProvider;
35
37
  get lang2Fhir(): Lang2Fhir;
38
+ get summary(): Summary;
36
39
  get tools(): Tools;
37
40
  get workflows(): Workflows;
38
41
  }
@@ -1,7 +1,4 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- import * as core from "./core/index.mjs";
3
- import { mergeHeaders } from "./core/headers.mjs";
4
- import * as environments from "./environments.mjs";
5
2
  import { Agent } from "./api/resources/agent/client/Client.mjs";
6
3
  import { Authtoken } from "./api/resources/authtoken/client/Client.mjs";
7
4
  import { Cohort } from "./api/resources/cohort/client/Client.mjs";
@@ -9,15 +6,18 @@ import { Construe } from "./api/resources/construe/client/Client.mjs";
9
6
  import { Fhir } from "./api/resources/fhir/client/Client.mjs";
10
7
  import { FhirProvider } from "./api/resources/fhirProvider/client/Client.mjs";
11
8
  import { Lang2Fhir } from "./api/resources/lang2Fhir/client/Client.mjs";
9
+ import { Summary } from "./api/resources/summary/client/Client.mjs";
12
10
  import { Tools } from "./api/resources/tools/client/Client.mjs";
13
11
  import { Workflows } from "./api/resources/workflows/client/Client.mjs";
12
+ import { mergeHeaders } from "./core/headers.mjs";
13
+ import * as core from "./core/index.mjs";
14
14
  export class phenomlClient {
15
- constructor(_options = {}) {
15
+ constructor(_options) {
16
16
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
17
17
  "X-Fern-Language": "JavaScript",
18
18
  "X-Fern-SDK-Name": "phenoml",
19
- "X-Fern-SDK-Version": "0.0.7",
20
- "User-Agent": "phenoml/0.0.7",
19
+ "X-Fern-SDK-Version": "0.0.9",
20
+ "User-Agent": "phenoml/AUTO",
21
21
  "X-Fern-Runtime": core.RUNTIME.type,
22
22
  "X-Fern-Runtime-Version": core.RUNTIME.version,
23
23
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -50,6 +50,10 @@ export class phenomlClient {
50
50
  var _a;
51
51
  return ((_a = this._lang2Fhir) !== null && _a !== void 0 ? _a : (this._lang2Fhir = new Lang2Fhir(this._options)));
52
52
  }
53
+ get summary() {
54
+ var _a;
55
+ return ((_a = this._summary) !== null && _a !== void 0 ? _a : (this._summary = new Summary(this._options)));
56
+ }
53
57
  get tools() {
54
58
  var _a;
55
59
  return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Tools(this._options)));
@@ -11,7 +11,7 @@ export declare namespace Agent {
11
11
  export declare class Agent {
12
12
  protected readonly _options: Agent.Options;
13
13
  protected _prompts: Prompts | undefined;
14
- constructor(_options?: Agent.Options);
14
+ constructor(_options: Agent.Options);
15
15
  get prompts(): Prompts;
16
16
  /**
17
17
  * Creates a new PhenoAgent with specified configuration
@@ -147,6 +147,8 @@ export declare class Agent {
147
147
  *
148
148
  * @example
149
149
  * await client.agent.chat({
150
+ * "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
151
+ * "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
150
152
  * message: "What is the patient's current condition?",
151
153
  * agent_id: "agent-123"
152
154
  * })
@@ -173,5 +175,5 @@ export declare class Agent {
173
175
  */
174
176
  getChatMessages(request: phenoml.agent.AgentGetChatMessagesRequest, requestOptions?: Agent.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentGetChatMessagesResponse>;
175
177
  private __getChatMessages;
176
- protected _getAuthorizationHeader(): Promise<string | undefined>;
178
+ protected _getAuthorizationHeader(): Promise<string>;
177
179
  }
@@ -8,14 +8,25 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- import * as environments from "../../../../environments.mjs";
12
- import * as core from "../../../../core/index.mjs";
13
- import * as phenoml from "../../../index.mjs";
11
+ var __rest = (this && this.__rest) || function (s, e) {
12
+ var t = {};
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
+ t[p] = s[p];
15
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
+ t[p[i]] = s[p[i]];
19
+ }
20
+ return t;
21
+ };
14
22
  import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
23
+ import * as core from "../../../../core/index.mjs";
24
+ import * as environments from "../../../../environments.mjs";
15
25
  import * as errors from "../../../../errors/index.mjs";
26
+ import * as phenoml from "../../../index.mjs";
16
27
  import { Prompts } from "../resources/prompts/client/Client.mjs";
17
28
  export class Agent {
18
- constructor(_options = {}) {
29
+ constructor(_options) {
19
30
  this._options = _options;
20
31
  }
21
32
  get prompts() {
@@ -46,7 +57,7 @@ export class Agent {
46
57
  __create(request, requestOptions) {
47
58
  return __awaiter(this, void 0, void 0, function* () {
48
59
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
49
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
60
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
50
61
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
51
62
  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, "agent/create"),
52
63
  method: "POST",
@@ -122,12 +133,12 @@ export class Agent {
122
133
  const { is_active: isActive, tags } = request;
123
134
  const _queryParams = {};
124
135
  if (isActive != null) {
125
- _queryParams["is_active"] = isActive.toString();
136
+ _queryParams.is_active = isActive.toString();
126
137
  }
127
138
  if (tags != null) {
128
- _queryParams["tags"] = tags;
139
+ _queryParams.tags = tags;
129
140
  }
130
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
141
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
131
142
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
132
143
  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, "agent/list"),
133
144
  method: "GET",
@@ -193,9 +204,9 @@ export class Agent {
193
204
  __get(id, requestOptions) {
194
205
  return __awaiter(this, void 0, void 0, function* () {
195
206
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
196
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
207
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
197
208
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
198
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.phenomlEnvironment.Default, `agent/${encodeURIComponent(id)}`),
209
+ 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, `agent/${core.url.encodePathParam(id)}`),
199
210
  method: "GET",
200
211
  headers: _headers,
201
212
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -267,9 +278,9 @@ export class Agent {
267
278
  __update(id, request, requestOptions) {
268
279
  return __awaiter(this, void 0, void 0, function* () {
269
280
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
270
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
281
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
271
282
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
272
- 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, `agent/${encodeURIComponent(id)}`),
283
+ 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, `agent/${core.url.encodePathParam(id)}`),
273
284
  method: "PUT",
274
285
  headers: _headers,
275
286
  contentType: "application/json",
@@ -340,9 +351,9 @@ export class Agent {
340
351
  __delete(id, requestOptions) {
341
352
  return __awaiter(this, void 0, void 0, function* () {
342
353
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
343
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
354
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
344
355
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
345
- 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, `agent/${encodeURIComponent(id)}`),
356
+ 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, `agent/${core.url.encodePathParam(id)}`),
346
357
  method: "DELETE",
347
358
  headers: _headers,
348
359
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -421,9 +432,9 @@ export class Agent {
421
432
  __patch(id, request, requestOptions) {
422
433
  return __awaiter(this, void 0, void 0, function* () {
423
434
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
424
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
435
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
425
436
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
426
- 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, `agent/${encodeURIComponent(id)}`),
437
+ 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, `agent/${core.url.encodePathParam(id)}`),
427
438
  method: "PATCH",
428
439
  headers: _headers,
429
440
  contentType: "application/json+patch",
@@ -487,6 +498,8 @@ export class Agent {
487
498
  *
488
499
  * @example
489
500
  * await client.agent.chat({
501
+ * "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
502
+ * "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
490
503
  * message: "What is the patient's current condition?",
491
504
  * agent_id: "agent-123"
492
505
  * })
@@ -497,7 +510,12 @@ export class Agent {
497
510
  __chat(request, requestOptions) {
498
511
  return __awaiter(this, void 0, void 0, function* () {
499
512
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
500
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
513
+ const { "X-Phenoml-On-Behalf-Of": phenomlOnBehalfOf, "X-Phenoml-Fhir-Provider": phenomlFhirProvider } = request, _body = __rest(request, ["X-Phenoml-On-Behalf-Of", "X-Phenoml-Fhir-Provider"]);
514
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({
515
+ Authorization: yield this._getAuthorizationHeader(),
516
+ "X-Phenoml-On-Behalf-Of": phenomlOnBehalfOf != null ? phenomlOnBehalfOf : undefined,
517
+ "X-Phenoml-Fhir-Provider": phenomlFhirProvider != null ? phenomlFhirProvider : undefined,
518
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
501
519
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
502
520
  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, "agent/chat"),
503
521
  method: "POST",
@@ -505,7 +523,7 @@ export class Agent {
505
523
  contentType: "application/json",
506
524
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
507
525
  requestType: "json",
508
- body: request,
526
+ body: _body,
509
527
  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,
510
528
  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,
511
529
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -574,17 +592,17 @@ export class Agent {
574
592
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
575
593
  const { chat_session_id: chatSessionId, num_messages: numMessages, role, order } = request;
576
594
  const _queryParams = {};
577
- _queryParams["chat_session_id"] = chatSessionId;
595
+ _queryParams.chat_session_id = chatSessionId;
578
596
  if (numMessages != null) {
579
- _queryParams["num_messages"] = numMessages.toString();
597
+ _queryParams.num_messages = numMessages.toString();
580
598
  }
581
599
  if (role != null) {
582
- _queryParams["role"] = role;
600
+ _queryParams.role = role;
583
601
  }
584
602
  if (order != null) {
585
- _queryParams["order"] = order;
603
+ _queryParams.order = order;
586
604
  }
587
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
605
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
588
606
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
589
607
  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, "agent/chat/messages"),
590
608
  method: "GET",
@@ -635,11 +653,7 @@ export class Agent {
635
653
  }
636
654
  _getAuthorizationHeader() {
637
655
  return __awaiter(this, void 0, void 0, function* () {
638
- const bearer = yield core.Supplier.get(this._options.token);
639
- if (bearer != null) {
640
- return `Bearer ${bearer}`;
641
- }
642
- return undefined;
656
+ return `Bearer ${yield core.Supplier.get(this._options.token)}`;
643
657
  });
644
658
  }
645
659
  }
@@ -1,2 +1 @@
1
- export {};
2
1
  export * from "./requests/index.mjs";
@@ -1,2 +1 @@
1
- export {};
2
1
  export * from "./requests/index.mjs";
@@ -1,11 +1,23 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
+ * "X-Phenoml-On-Behalf-Of": "Patient/550e8400-e29b-41d4-a716-446655440000",
5
+ * "X-Phenoml-Fhir-Provider": "550e8400-e29b-41d4-a716-446655440000:eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c...",
4
6
  * message: "What is the patient's current condition?",
5
7
  * agent_id: "agent-123"
6
8
  * }
7
9
  */
8
10
  export interface AgentChatRequest {
11
+ /**
12
+ * Optional header for on-behalf-of authentication. Used when making requests on behalf of another user or entity.
13
+ * Must be in the format: Patient/{uuid} or Practitioner/{uuid}
14
+ */
15
+ "X-Phenoml-On-Behalf-Of"?: string;
16
+ /**
17
+ * Optional header for FHIR provider authentication. Contains credentials in the format {fhir_provider_id}:{oauth2_token}.
18
+ * Multiple FHIR provider integrations can be provided as comma-separated values.
19
+ */
20
+ "X-Phenoml-Fhir-Provider"?: string;
9
21
  /** The message to send to the agent */
10
22
  message: string;
11
23
  /** Optional context for the conversation */
@@ -1,4 +1,4 @@
1
- import * as phenoml from "../../../../index.mjs";
1
+ import type * as phenoml from "../../../../index.mjs";
2
2
  /**
3
3
  * @example
4
4
  * {
@@ -1,2 +1,2 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- import * as phenoml from "../../../../index.mjs";
2
+ export {};
@@ -1,3 +1,3 @@
1
- export { type AgentListRequest } from "./AgentListRequest.mjs";
2
- export { type AgentChatRequest } from "./AgentChatRequest.mjs";
3
- export { type AgentGetChatMessagesRequest } from "./AgentGetChatMessagesRequest.mjs";
1
+ export type { AgentChatRequest } from "./AgentChatRequest.mjs";
2
+ export type { AgentGetChatMessagesRequest } from "./AgentGetChatMessagesRequest.mjs";
3
+ export type { AgentListRequest } from "./AgentListRequest.mjs";
@@ -1,3 +1 @@
1
- export {} from "./AgentListRequest.mjs";
2
- export {} from "./AgentChatRequest.mjs";
3
- export {} from "./AgentGetChatMessagesRequest.mjs";
1
+ export {};
@@ -1,5 +1,5 @@
1
+ import type * as core from "../../../../core/index.mjs";
1
2
  import * as errors from "../../../../errors/index.mjs";
2
- import * as core from "../../../../core/index.mjs";
3
3
  export declare class BadRequestError extends errors.phenomlError {
4
4
  constructor(body?: unknown, rawResponse?: core.RawResponse);
5
5
  }
@@ -1,6 +1,5 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as errors from "../../../../errors/index.mjs";
3
- import * as core from "../../../../core/index.mjs";
4
3
  export class BadRequestError extends errors.phenomlError {
5
4
  constructor(body, rawResponse) {
6
5
  super({
@@ -1,5 +1,5 @@
1
+ import type * as core from "../../../../core/index.mjs";
1
2
  import * as errors from "../../../../errors/index.mjs";
2
- import * as core from "../../../../core/index.mjs";
3
3
  export declare class ForbiddenError extends errors.phenomlError {
4
4
  constructor(body?: unknown, rawResponse?: core.RawResponse);
5
5
  }
@@ -1,6 +1,5 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as errors from "../../../../errors/index.mjs";
3
- import * as core from "../../../../core/index.mjs";
4
3
  export class ForbiddenError extends errors.phenomlError {
5
4
  constructor(body, rawResponse) {
6
5
  super({
@@ -1,5 +1,5 @@
1
+ import type * as core from "../../../../core/index.mjs";
1
2
  import * as errors from "../../../../errors/index.mjs";
2
- import * as core from "../../../../core/index.mjs";
3
3
  export declare class InternalServerError extends errors.phenomlError {
4
4
  constructor(body?: unknown, rawResponse?: core.RawResponse);
5
5
  }
@@ -1,6 +1,5 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as errors from "../../../../errors/index.mjs";
3
- import * as core from "../../../../core/index.mjs";
4
3
  export class InternalServerError extends errors.phenomlError {
5
4
  constructor(body, rawResponse) {
6
5
  super({
@@ -1,5 +1,5 @@
1
+ import type * as core from "../../../../core/index.mjs";
1
2
  import * as errors from "../../../../errors/index.mjs";
2
- import * as core from "../../../../core/index.mjs";
3
3
  export declare class NotFoundError extends errors.phenomlError {
4
4
  constructor(body?: unknown, rawResponse?: core.RawResponse);
5
5
  }
@@ -1,6 +1,5 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as errors from "../../../../errors/index.mjs";
3
- import * as core from "../../../../core/index.mjs";
4
3
  export class NotFoundError extends errors.phenomlError {
5
4
  constructor(body, rawResponse) {
6
5
  super({
@@ -1,5 +1,5 @@
1
+ import type * as core from "../../../../core/index.mjs";
1
2
  import * as errors from "../../../../errors/index.mjs";
2
- import * as core from "../../../../core/index.mjs";
3
3
  export declare class UnauthorizedError extends errors.phenomlError {
4
4
  constructor(body?: unknown, rawResponse?: core.RawResponse);
5
5
  }
@@ -1,6 +1,5 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
2
  import * as errors from "../../../../errors/index.mjs";
3
- import * as core from "../../../../core/index.mjs";
4
3
  export class UnauthorizedError extends errors.phenomlError {
5
4
  constructor(body, rawResponse) {
6
5
  super({
@@ -1,5 +1,5 @@
1
1
  export * from "./BadRequestError.mjs";
2
- export * from "./UnauthorizedError.mjs";
3
2
  export * from "./ForbiddenError.mjs";
4
3
  export * from "./InternalServerError.mjs";
5
4
  export * from "./NotFoundError.mjs";
5
+ export * from "./UnauthorizedError.mjs";
@@ -1,5 +1,5 @@
1
1
  export * from "./BadRequestError.mjs";
2
- export * from "./UnauthorizedError.mjs";
3
2
  export * from "./ForbiddenError.mjs";
4
3
  export * from "./InternalServerError.mjs";
5
4
  export * from "./NotFoundError.mjs";
5
+ export * from "./UnauthorizedError.mjs";
@@ -1,4 +1,4 @@
1
- export * from "./types/index.mjs";
2
- export * from "./resources/index.mjs";
3
- export * from "./errors/index.mjs";
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";
@@ -1,4 +1,4 @@
1
- export * from "./types/index.mjs";
2
- export * from "./resources/index.mjs";
3
- export * from "./errors/index.mjs";
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";
@@ -1,3 +1,3 @@
1
+ export * from "./prompts/client/requests/index.mjs";
1
2
  export * as prompts from "./prompts/index.mjs";
2
3
  export * from "./prompts/types/index.mjs";
3
- export * from "./prompts/client/requests/index.mjs";
@@ -1,3 +1,3 @@
1
+ export * from "./prompts/client/requests/index.mjs";
1
2
  export * as prompts from "./prompts/index.mjs";
2
3
  export * from "./prompts/types/index.mjs";
3
- export * from "./prompts/client/requests/index.mjs";
@@ -9,7 +9,7 @@ export declare namespace Prompts {
9
9
  }
10
10
  export declare class Prompts {
11
11
  protected readonly _options: Prompts.Options;
12
- constructor(_options?: Prompts.Options);
12
+ constructor(_options: Prompts.Options);
13
13
  /**
14
14
  * Creates a new agent prompt
15
15
  *
@@ -137,5 +137,5 @@ export declare class Prompts {
137
137
  */
138
138
  loadDefaults(requestOptions?: Prompts.RequestOptions): core.HttpResponsePromise<phenoml.agent.SuccessResponse>;
139
139
  private __loadDefaults;
140
- protected _getAuthorizationHeader(): Promise<string | undefined>;
140
+ protected _getAuthorizationHeader(): Promise<string>;
141
141
  }
@@ -8,13 +8,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- import * as environments from "../../../../../../environments.mjs";
12
- import * as core from "../../../../../../core/index.mjs";
13
- import * as phenoml from "../../../../../index.mjs";
14
11
  import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
12
+ import * as core from "../../../../../../core/index.mjs";
13
+ import * as environments from "../../../../../../environments.mjs";
15
14
  import * as errors from "../../../../../../errors/index.mjs";
15
+ import * as phenoml from "../../../../../index.mjs";
16
16
  export class Prompts {
17
- constructor(_options = {}) {
17
+ constructor(_options) {
18
18
  this._options = _options;
19
19
  }
20
20
  /**
@@ -41,7 +41,7 @@ export class Prompts {
41
41
  __create(request, requestOptions) {
42
42
  return __awaiter(this, void 0, void 0, function* () {
43
43
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
44
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
44
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
45
45
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
46
46
  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, "agent/prompts"),
47
47
  method: "POST",
@@ -110,7 +110,7 @@ export class Prompts {
110
110
  __list(requestOptions) {
111
111
  return __awaiter(this, void 0, void 0, function* () {
112
112
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
113
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
113
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
114
114
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
115
115
  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, "agent/prompts/list"),
116
116
  method: "GET",
@@ -176,9 +176,9 @@ export class Prompts {
176
176
  __get(id, requestOptions) {
177
177
  return __awaiter(this, void 0, void 0, function* () {
178
178
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
179
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
179
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
180
180
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
181
- 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, `agent/prompts/${encodeURIComponent(id)}`),
181
+ 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, `agent/prompts/${core.url.encodePathParam(id)}`),
182
182
  method: "GET",
183
183
  headers: _headers,
184
184
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -246,9 +246,9 @@ export class Prompts {
246
246
  __update(id_1) {
247
247
  return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
248
248
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
249
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
249
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
250
250
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
251
- 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, `agent/prompts/${encodeURIComponent(id)}`),
251
+ 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, `agent/prompts/${core.url.encodePathParam(id)}`),
252
252
  method: "PUT",
253
253
  headers: _headers,
254
254
  contentType: "application/json",
@@ -319,9 +319,9 @@ export class Prompts {
319
319
  __delete(id, requestOptions) {
320
320
  return __awaiter(this, void 0, void 0, function* () {
321
321
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
322
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
322
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
323
323
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
324
- 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, `agent/prompts/${encodeURIComponent(id)}`),
324
+ 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, `agent/prompts/${core.url.encodePathParam(id)}`),
325
325
  method: "DELETE",
326
326
  headers: _headers,
327
327
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -400,9 +400,9 @@ export class Prompts {
400
400
  __patch(id, request, requestOptions) {
401
401
  return __awaiter(this, void 0, void 0, function* () {
402
402
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
403
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
403
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
404
404
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
405
- 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, `agent/prompts/${encodeURIComponent(id)}`),
405
+ 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, `agent/prompts/${core.url.encodePathParam(id)}`),
406
406
  method: "PATCH",
407
407
  headers: _headers,
408
408
  contentType: "application/json+patch",
@@ -471,7 +471,7 @@ export class Prompts {
471
471
  __loadDefaults(requestOptions) {
472
472
  return __awaiter(this, void 0, void 0, function* () {
473
473
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
474
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
474
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
475
475
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
476
476
  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, "agent/prompts/load-defaults"),
477
477
  method: "POST",
@@ -519,11 +519,7 @@ export class Prompts {
519
519
  }
520
520
  _getAuthorizationHeader() {
521
521
  return __awaiter(this, void 0, void 0, function* () {
522
- const bearer = yield core.Supplier.get(this._options.token);
523
- if (bearer != null) {
524
- return `Bearer ${bearer}`;
525
- }
526
- return undefined;
522
+ return `Bearer ${yield core.Supplier.get(this._options.token)}`;
527
523
  });
528
524
  }
529
525
  }
@@ -1,2 +1 @@
1
- export {};
2
1
  export * from "./requests/index.mjs";
@@ -1,2 +1 @@
1
- export {};
2
1
  export * from "./requests/index.mjs";
@@ -1,2 +1,2 @@
1
- export { type AgentPromptsCreateRequest } from "./AgentPromptsCreateRequest.mjs";
2
- export { type AgentPromptsUpdateRequest } from "./AgentPromptsUpdateRequest.mjs";
1
+ export type { AgentPromptsCreateRequest } from "./AgentPromptsCreateRequest.mjs";
2
+ export type { AgentPromptsUpdateRequest } from "./AgentPromptsUpdateRequest.mjs";
@@ -1,2 +1 @@
1
- export {} from "./AgentPromptsCreateRequest.mjs";
2
- export {} from "./AgentPromptsUpdateRequest.mjs";
1
+ export {};