phenoml 9.2.0 → 10.0.1

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 (503) hide show
  1. package/README.md +6 -7
  2. package/dist/cjs/BaseClient.d.ts +13 -4
  3. package/dist/cjs/BaseClient.js +59 -0
  4. package/dist/cjs/Client.d.ts +34 -34
  5. package/dist/cjs/Client.js +13 -54
  6. package/dist/cjs/api/resources/agent/client/Client.d.ts +26 -27
  7. package/dist/cjs/api/resources/agent/client/Client.js +56 -185
  8. package/dist/cjs/api/resources/agent/errors/BadRequestError.js +5 -1
  9. package/dist/cjs/api/resources/agent/errors/ForbiddenError.js +5 -1
  10. package/dist/cjs/api/resources/agent/errors/InternalServerError.js +5 -1
  11. package/dist/cjs/api/resources/agent/errors/NotFoundError.js +5 -1
  12. package/dist/cjs/api/resources/agent/errors/UnauthorizedError.js +5 -1
  13. package/dist/cjs/api/resources/agent/exports.d.ts +3 -0
  14. package/dist/cjs/api/resources/agent/exports.js +22 -0
  15. package/dist/cjs/api/resources/agent/resources/prompts/client/Client.d.ts +20 -21
  16. package/dist/cjs/api/resources/agent/resources/prompts/client/Client.js +35 -129
  17. package/dist/cjs/api/resources/agent/resources/prompts/exports.d.ts +2 -0
  18. package/dist/cjs/api/resources/agent/resources/prompts/exports.js +21 -0
  19. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.d.ts +2 -2
  20. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsListResponse.d.ts +3 -3
  21. package/dist/cjs/api/resources/agent/types/AgentChatResponse.d.ts +4 -4
  22. package/dist/cjs/api/resources/agent/types/AgentChatStreamEvent.d.ts +8 -8
  23. package/dist/cjs/api/resources/agent/types/AgentCreateRequest.d.ts +4 -4
  24. package/dist/cjs/api/resources/agent/types/AgentDeleteResponse.d.ts +2 -2
  25. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesResponse.d.ts +3 -3
  26. package/dist/cjs/api/resources/agent/types/AgentListResponse.d.ts +3 -3
  27. package/dist/cjs/api/resources/agent/types/AgentPromptsResponse.d.ts +3 -3
  28. package/dist/cjs/api/resources/agent/types/AgentResponse.d.ts +3 -3
  29. package/dist/cjs/api/resources/agent/types/AgentTemplate.d.ts +8 -8
  30. package/dist/cjs/api/resources/agent/types/ChatMessageTemplate.d.ts +10 -10
  31. package/dist/cjs/api/resources/agent/types/ChatSessionTemplate.d.ts +9 -9
  32. package/dist/cjs/api/resources/agent/types/JsonPatchOperation.d.ts +2 -2
  33. package/dist/cjs/api/resources/agent/types/PromptTemplate.d.ts +6 -6
  34. package/dist/cjs/api/resources/agent/types/SuccessResponse.d.ts +2 -2
  35. package/dist/cjs/api/resources/authtoken/client/Client.d.ts +9 -9
  36. package/dist/cjs/api/resources/authtoken/client/Client.js +7 -6
  37. package/dist/cjs/api/resources/authtoken/errors/BadRequestError.js +5 -1
  38. package/dist/cjs/api/resources/authtoken/errors/InternalServerError.d.ts +5 -0
  39. package/dist/cjs/api/resources/authtoken/errors/InternalServerError.js +54 -0
  40. package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.js +5 -1
  41. package/dist/cjs/api/resources/authtoken/errors/index.d.ts +1 -0
  42. package/dist/cjs/api/resources/authtoken/errors/index.js +1 -0
  43. package/dist/cjs/api/resources/authtoken/exports.d.ts +3 -0
  44. package/dist/cjs/api/resources/authtoken/exports.js +22 -0
  45. package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.d.ts +28 -30
  46. package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.js +76 -43
  47. package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/ClientCredentialsRequest.d.ts +12 -0
  48. package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/ClientCredentialsRequest.js +3 -0
  49. package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/index.d.ts +1 -0
  50. package/dist/cjs/api/resources/authtoken/resources/auth/exports.d.ts +2 -0
  51. package/dist/cjs/api/resources/authtoken/resources/auth/exports.js +21 -0
  52. package/dist/cjs/api/resources/authtoken/types/BadRequestErrorBody.d.ts +3 -3
  53. package/dist/cjs/api/resources/authtoken/types/OAuthError.d.ts +19 -0
  54. package/dist/cjs/api/resources/authtoken/types/OAuthError.js +14 -0
  55. package/dist/cjs/api/resources/authtoken/types/TokenResponse.d.ts +8 -0
  56. package/dist/cjs/api/resources/authtoken/types/TokenResponse.js +3 -0
  57. package/dist/cjs/api/resources/authtoken/types/UnauthorizedErrorBody.d.ts +3 -3
  58. package/dist/cjs/api/resources/authtoken/types/index.d.ts +2 -0
  59. package/dist/cjs/api/resources/authtoken/types/index.js +2 -0
  60. package/dist/cjs/api/resources/cohort/client/Client.d.ts +8 -9
  61. package/dist/cjs/api/resources/cohort/client/Client.js +11 -27
  62. package/dist/cjs/api/resources/cohort/errors/BadRequestError.js +5 -1
  63. package/dist/cjs/api/resources/cohort/errors/InternalServerError.js +5 -1
  64. package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.js +5 -1
  65. package/dist/cjs/api/resources/cohort/exports.d.ts +2 -0
  66. package/dist/cjs/api/resources/cohort/exports.js +21 -0
  67. package/dist/cjs/api/resources/cohort/types/CohortResponse.d.ts +3 -3
  68. package/dist/cjs/api/resources/cohort/types/SearchConcept.d.ts +4 -4
  69. package/dist/cjs/api/resources/construe/client/Client.d.ts +28 -29
  70. package/dist/cjs/api/resources/construe/client/Client.js +78 -239
  71. package/dist/cjs/api/resources/construe/client/requests/index.d.ts +1 -1
  72. package/dist/cjs/api/resources/construe/client/requests/index.js +3 -0
  73. package/dist/cjs/api/resources/construe/errors/BadRequestError.js +5 -1
  74. package/dist/cjs/api/resources/construe/errors/ConflictError.js +5 -1
  75. package/dist/cjs/api/resources/construe/errors/FailedDependencyError.js +5 -1
  76. package/dist/cjs/api/resources/construe/errors/ForbiddenError.js +5 -1
  77. package/dist/cjs/api/resources/construe/errors/GatewayTimeoutError.js +5 -1
  78. package/dist/cjs/api/resources/construe/errors/InternalServerError.js +5 -1
  79. package/dist/cjs/api/resources/construe/errors/NotFoundError.js +5 -1
  80. package/dist/cjs/api/resources/construe/errors/NotImplementedError.js +5 -1
  81. package/dist/cjs/api/resources/construe/errors/ServiceUnavailableError.js +5 -1
  82. package/dist/cjs/api/resources/construe/errors/UnauthorizedError.js +5 -1
  83. package/dist/cjs/api/resources/construe/exports.d.ts +2 -0
  84. package/dist/cjs/api/resources/construe/exports.js +21 -0
  85. package/dist/cjs/api/resources/construe/types/CodeResponse.d.ts +1 -1
  86. package/dist/cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.ts +3 -3
  87. package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.d.ts +8 -8
  88. package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.d.ts +2 -2
  89. package/dist/cjs/api/resources/construe/types/ExtractedCodeResult.d.ts +3 -3
  90. package/dist/cjs/api/resources/construe/types/GetCodeResponse.d.ts +1 -1
  91. package/dist/cjs/api/resources/construe/types/ListCodesResponse.d.ts +1 -1
  92. package/dist/cjs/api/resources/fhir/client/Client.d.ts +18 -19
  93. package/dist/cjs/api/resources/fhir/client/Client.js +46 -134
  94. package/dist/cjs/api/resources/fhir/client/requests/FhirSearchRequest.d.ts +0 -6
  95. package/dist/cjs/api/resources/fhir/errors/BadGatewayError.js +5 -1
  96. package/dist/cjs/api/resources/fhir/errors/BadRequestError.js +5 -1
  97. package/dist/cjs/api/resources/fhir/errors/InternalServerError.js +5 -1
  98. package/dist/cjs/api/resources/fhir/errors/NotFoundError.js +5 -1
  99. package/dist/cjs/api/resources/fhir/errors/UnauthorizedError.js +5 -1
  100. package/dist/cjs/api/resources/fhir/exports.d.ts +2 -0
  101. package/dist/cjs/api/resources/fhir/exports.js +21 -0
  102. package/dist/cjs/api/resources/fhir/types/ErrorResponse.d.ts +2 -2
  103. package/dist/cjs/api/resources/fhir/types/FhirBundle.d.ts +8 -8
  104. package/dist/cjs/api/resources/fhir/types/FhirPatchRequestBodyItem.d.ts +2 -2
  105. package/dist/cjs/api/resources/fhir/types/FhirResource.d.ts +5 -5
  106. package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +20 -21
  107. package/dist/cjs/api/resources/fhirProvider/client/Client.js +35 -129
  108. package/dist/cjs/api/resources/fhirProvider/errors/BadRequestError.js +5 -1
  109. package/dist/cjs/api/resources/fhirProvider/errors/ForbiddenError.js +5 -1
  110. package/dist/cjs/api/resources/fhirProvider/errors/InternalServerError.js +5 -1
  111. package/dist/cjs/api/resources/fhirProvider/errors/NotFoundError.js +5 -1
  112. package/dist/cjs/api/resources/fhirProvider/errors/UnauthorizedError.js +5 -1
  113. package/dist/cjs/api/resources/fhirProvider/exports.d.ts +2 -0
  114. package/dist/cjs/api/resources/fhirProvider/exports.js +21 -0
  115. package/dist/cjs/api/resources/fhirProvider/types/ClientSecretAuth.d.ts +2 -2
  116. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderAuthConfig.d.ts +12 -12
  117. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.ts +2 -2
  118. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderListResponse.d.ts +3 -3
  119. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.d.ts +3 -3
  120. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderResponse.d.ts +3 -3
  121. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderSandboxInfo.d.ts +4 -4
  122. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderTemplate.d.ts +8 -8
  123. package/dist/cjs/api/resources/fhirProvider/types/FhirQueryResponse.d.ts +4 -4
  124. package/dist/cjs/api/resources/fhirProvider/types/JsonWebKey.d.ts +6 -6
  125. package/dist/cjs/api/resources/fhirProvider/types/JwtAuth.d.ts +3 -3
  126. package/dist/cjs/api/resources/fhirProvider/types/OnBehalfOfAuth.d.ts +2 -2
  127. package/dist/cjs/api/resources/fhirProvider/types/ServiceAccountMetadata.d.ts +4 -4
  128. package/dist/cjs/api/resources/fhirProvider/types/SmartConfiguration.d.ts +5 -5
  129. package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +18 -19
  130. package/dist/cjs/api/resources/lang2Fhir/client/Client.js +31 -112
  131. package/dist/cjs/api/resources/lang2Fhir/client/requests/index.d.ts +1 -1
  132. package/dist/cjs/api/resources/lang2Fhir/client/requests/index.js +3 -0
  133. package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.js +5 -1
  134. package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.js +5 -1
  135. package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.js +5 -1
  136. package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.js +5 -1
  137. package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.js +5 -1
  138. package/dist/cjs/api/resources/lang2Fhir/errors/UnprocessableEntityError.js +5 -1
  139. package/dist/cjs/api/resources/lang2Fhir/exports.d.ts +2 -0
  140. package/dist/cjs/api/resources/lang2Fhir/exports.js +21 -0
  141. package/dist/cjs/api/resources/lang2Fhir/types/CreateMultiResponse.d.ts +15 -15
  142. package/dist/cjs/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.ts +4 -4
  143. package/dist/cjs/api/resources/lang2Fhir/types/SearchResponse.d.ts +2 -2
  144. package/dist/cjs/api/resources/summary/client/Client.d.ts +18 -19
  145. package/dist/cjs/api/resources/summary/client/Client.js +31 -112
  146. package/dist/cjs/api/resources/summary/client/requests/index.d.ts +1 -1
  147. package/dist/cjs/api/resources/summary/client/requests/index.js +3 -0
  148. package/dist/cjs/api/resources/summary/errors/BadRequestError.js +5 -1
  149. package/dist/cjs/api/resources/summary/errors/ForbiddenError.js +5 -1
  150. package/dist/cjs/api/resources/summary/errors/InternalServerError.js +5 -1
  151. package/dist/cjs/api/resources/summary/errors/NotFoundError.js +5 -1
  152. package/dist/cjs/api/resources/summary/errors/UnauthorizedError.js +5 -1
  153. package/dist/cjs/api/resources/summary/exports.d.ts +2 -0
  154. package/dist/cjs/api/resources/summary/exports.js +21 -0
  155. package/dist/cjs/api/resources/summary/types/CreateSummaryResponse.d.ts +4 -4
  156. package/dist/cjs/api/resources/summary/types/CreateSummaryTemplateResponse.d.ts +4 -4
  157. package/dist/cjs/api/resources/summary/types/ErrorResponse.d.ts +2 -2
  158. package/dist/cjs/api/resources/summary/types/FhirBundle.d.ts +1 -1
  159. package/dist/cjs/api/resources/summary/types/SummaryDeleteTemplateResponse.d.ts +2 -2
  160. package/dist/cjs/api/resources/summary/types/SummaryGetTemplateResponse.d.ts +2 -2
  161. package/dist/cjs/api/resources/summary/types/SummaryListTemplatesResponse.d.ts +2 -2
  162. package/dist/cjs/api/resources/summary/types/SummaryTemplate.d.ts +9 -9
  163. package/dist/cjs/api/resources/summary/types/SummaryUpdateTemplateResponse.d.ts +3 -3
  164. package/dist/cjs/api/resources/tools/client/Client.d.ts +17 -18
  165. package/dist/cjs/api/resources/tools/client/Client.js +32 -91
  166. package/dist/cjs/api/resources/tools/client/requests/index.d.ts +1 -1
  167. package/dist/cjs/api/resources/tools/client/requests/index.js +3 -0
  168. package/dist/cjs/api/resources/tools/errors/BadRequestError.js +5 -1
  169. package/dist/cjs/api/resources/tools/errors/FailedDependencyError.js +5 -1
  170. package/dist/cjs/api/resources/tools/errors/ForbiddenError.js +5 -1
  171. package/dist/cjs/api/resources/tools/errors/InternalServerError.js +5 -1
  172. package/dist/cjs/api/resources/tools/errors/UnauthorizedError.js +5 -1
  173. package/dist/cjs/api/resources/tools/exports.d.ts +3 -0
  174. package/dist/cjs/api/resources/tools/exports.js +22 -0
  175. package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.d.ts +17 -18
  176. package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.js +24 -79
  177. package/dist/cjs/api/resources/tools/resources/mcpServer/exports.d.ts +3 -0
  178. package/dist/cjs/api/resources/tools/resources/mcpServer/exports.js +22 -0
  179. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.ts +14 -15
  180. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +23 -78
  181. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/exports.d.ts +2 -0
  182. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/exports.js +21 -0
  183. package/dist/cjs/api/resources/tools/types/CohortResponse.d.ts +5 -5
  184. package/dist/cjs/api/resources/tools/types/Lang2FhirAndCreateMultiResponse.d.ts +10 -10
  185. package/dist/cjs/api/resources/tools/types/Lang2FhirAndCreateResponse.d.ts +4 -4
  186. package/dist/cjs/api/resources/tools/types/Lang2FhirAndSearchResponse.d.ts +5 -5
  187. package/dist/cjs/api/resources/tools/types/McpServerResponse.d.ts +7 -7
  188. package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.d.ts +4 -4
  189. package/dist/cjs/api/resources/tools/types/McpServerToolResponse.d.ts +9 -9
  190. package/dist/cjs/api/resources/tools/types/SearchConcept.d.ts +4 -4
  191. package/dist/cjs/api/resources/workflows/client/Client.d.ts +18 -19
  192. package/dist/cjs/api/resources/workflows/client/Client.js +43 -128
  193. package/dist/cjs/api/resources/workflows/errors/BadRequestError.js +5 -1
  194. package/dist/cjs/api/resources/workflows/errors/ForbiddenError.js +5 -1
  195. package/dist/cjs/api/resources/workflows/errors/InternalServerError.js +5 -1
  196. package/dist/cjs/api/resources/workflows/errors/NotFoundError.js +5 -1
  197. package/dist/cjs/api/resources/workflows/errors/UnauthorizedError.js +5 -1
  198. package/dist/cjs/api/resources/workflows/exports.d.ts +2 -0
  199. package/dist/cjs/api/resources/workflows/exports.js +21 -0
  200. package/dist/cjs/api/resources/workflows/types/CreateWorkflowResponse.d.ts +5 -5
  201. package/dist/cjs/api/resources/workflows/types/DecisionNodeDefinition.d.ts +3 -3
  202. package/dist/cjs/api/resources/workflows/types/ExecuteWorkflowResponse.d.ts +4 -4
  203. package/dist/cjs/api/resources/workflows/types/Lang2FhirCreateDefinition.d.ts +4 -4
  204. package/dist/cjs/api/resources/workflows/types/Lang2FhirSearchDefinition.d.ts +5 -5
  205. package/dist/cjs/api/resources/workflows/types/ListWorkflowsResponse.d.ts +4 -4
  206. package/dist/cjs/api/resources/workflows/types/StepOperation.d.ts +4 -4
  207. package/dist/cjs/api/resources/workflows/types/SubWorkflowDefinition.d.ts +3 -3
  208. package/dist/cjs/api/resources/workflows/types/WorkflowConfig.d.ts +2 -2
  209. package/dist/cjs/api/resources/workflows/types/WorkflowDefinition.d.ts +8 -8
  210. package/dist/cjs/api/resources/workflows/types/WorkflowGraph.d.ts +1 -1
  211. package/dist/cjs/api/resources/workflows/types/WorkflowResponse.d.ts +9 -9
  212. package/dist/cjs/api/resources/workflows/types/WorkflowStep.d.ts +8 -8
  213. package/dist/cjs/api/resources/workflows/types/WorkflowStepSummary.d.ts +5 -5
  214. package/dist/cjs/api/resources/workflows/types/WorkflowsDeleteResponse.d.ts +2 -2
  215. package/dist/cjs/api/resources/workflows/types/WorkflowsGetResponse.d.ts +3 -3
  216. package/dist/cjs/api/resources/workflows/types/WorkflowsUpdateResponse.d.ts +4 -4
  217. package/dist/cjs/auth/OAuthAuthProvider.d.ts +45 -0
  218. package/dist/cjs/auth/OAuthAuthProvider.js +190 -0
  219. package/dist/cjs/auth/index.d.ts +1 -0
  220. package/dist/cjs/auth/index.js +5 -0
  221. package/dist/cjs/core/auth/AuthProvider.d.ts +4 -1
  222. package/dist/cjs/core/auth/BearerToken.d.ts +3 -1
  223. package/dist/cjs/core/auth/BearerToken.js +7 -6
  224. package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +5 -0
  225. package/dist/cjs/core/auth/NoOpAuthProvider.js +9 -0
  226. package/dist/cjs/core/auth/index.d.ts +1 -0
  227. package/dist/cjs/core/auth/index.js +3 -1
  228. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +6 -7
  229. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +2 -2
  230. package/dist/cjs/core/fetcher/Fetcher.d.ts +6 -3
  231. package/dist/cjs/core/fetcher/Fetcher.js +10 -3
  232. package/dist/cjs/core/fetcher/getResponseBody.js +18 -4
  233. package/dist/cjs/core/fetcher/makeRequest.d.ts +6 -1
  234. package/dist/cjs/core/fetcher/makeRequest.js +30 -9
  235. package/dist/cjs/core/fetcher/signals.d.ts +1 -1
  236. package/dist/cjs/core/headers.d.ts +2 -2
  237. package/dist/cjs/core/runtime/runtime.js +17 -15
  238. package/dist/cjs/core/stream/Stream.d.ts +9 -0
  239. package/dist/cjs/core/stream/Stream.js +100 -5
  240. package/dist/cjs/errors/handleNonStatusCodeError.d.ts +2 -0
  241. package/dist/cjs/errors/handleNonStatusCodeError.js +65 -0
  242. package/dist/cjs/errors/phenomlError.js +5 -1
  243. package/dist/cjs/errors/phenomlTimeoutError.js +5 -1
  244. package/dist/cjs/index.d.ts +4 -2
  245. package/dist/cjs/index.js +9 -5
  246. package/dist/cjs/version.d.ts +1 -1
  247. package/dist/cjs/version.js +1 -1
  248. package/dist/esm/BaseClient.d.mts +13 -4
  249. package/dist/esm/BaseClient.mjs +24 -1
  250. package/dist/esm/Client.d.mts +34 -34
  251. package/dist/esm/Client.mjs +23 -31
  252. package/dist/esm/api/resources/agent/client/Client.d.mts +26 -27
  253. package/dist/esm/api/resources/agent/client/Client.mjs +55 -184
  254. package/dist/esm/api/resources/agent/errors/BadRequestError.mjs +5 -1
  255. package/dist/esm/api/resources/agent/errors/ForbiddenError.mjs +5 -1
  256. package/dist/esm/api/resources/agent/errors/InternalServerError.mjs +5 -1
  257. package/dist/esm/api/resources/agent/errors/NotFoundError.mjs +5 -1
  258. package/dist/esm/api/resources/agent/errors/UnauthorizedError.mjs +5 -1
  259. package/dist/esm/api/resources/agent/exports.d.mts +3 -0
  260. package/dist/esm/api/resources/agent/exports.mjs +4 -0
  261. package/dist/esm/api/resources/agent/resources/prompts/client/Client.d.mts +20 -21
  262. package/dist/esm/api/resources/agent/resources/prompts/client/Client.mjs +34 -128
  263. package/dist/esm/api/resources/agent/resources/prompts/exports.d.mts +2 -0
  264. package/dist/esm/api/resources/agent/resources/prompts/exports.mjs +3 -0
  265. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.d.mts +2 -2
  266. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsListResponse.d.mts +3 -3
  267. package/dist/esm/api/resources/agent/types/AgentChatResponse.d.mts +4 -4
  268. package/dist/esm/api/resources/agent/types/AgentChatStreamEvent.d.mts +8 -8
  269. package/dist/esm/api/resources/agent/types/AgentCreateRequest.d.mts +4 -4
  270. package/dist/esm/api/resources/agent/types/AgentDeleteResponse.d.mts +2 -2
  271. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesResponse.d.mts +3 -3
  272. package/dist/esm/api/resources/agent/types/AgentListResponse.d.mts +3 -3
  273. package/dist/esm/api/resources/agent/types/AgentPromptsResponse.d.mts +3 -3
  274. package/dist/esm/api/resources/agent/types/AgentResponse.d.mts +3 -3
  275. package/dist/esm/api/resources/agent/types/AgentTemplate.d.mts +8 -8
  276. package/dist/esm/api/resources/agent/types/ChatMessageTemplate.d.mts +10 -10
  277. package/dist/esm/api/resources/agent/types/ChatSessionTemplate.d.mts +9 -9
  278. package/dist/esm/api/resources/agent/types/JsonPatchOperation.d.mts +2 -2
  279. package/dist/esm/api/resources/agent/types/PromptTemplate.d.mts +6 -6
  280. package/dist/esm/api/resources/agent/types/SuccessResponse.d.mts +2 -2
  281. package/dist/esm/api/resources/authtoken/client/Client.d.mts +9 -9
  282. package/dist/esm/api/resources/authtoken/client/Client.mjs +6 -5
  283. package/dist/esm/api/resources/authtoken/errors/BadRequestError.mjs +5 -1
  284. package/dist/esm/api/resources/authtoken/errors/InternalServerError.d.mts +5 -0
  285. package/dist/esm/api/resources/authtoken/errors/InternalServerError.mjs +17 -0
  286. package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.mjs +5 -1
  287. package/dist/esm/api/resources/authtoken/errors/index.d.mts +1 -0
  288. package/dist/esm/api/resources/authtoken/errors/index.mjs +1 -0
  289. package/dist/esm/api/resources/authtoken/exports.d.mts +3 -0
  290. package/dist/esm/api/resources/authtoken/exports.mjs +4 -0
  291. package/dist/esm/api/resources/authtoken/resources/auth/client/Client.d.mts +28 -30
  292. package/dist/esm/api/resources/authtoken/resources/auth/client/Client.mjs +74 -41
  293. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/ClientCredentialsRequest.d.mts +12 -0
  294. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/ClientCredentialsRequest.mjs +2 -0
  295. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/index.d.mts +1 -0
  296. package/dist/esm/api/resources/authtoken/resources/auth/exports.d.mts +2 -0
  297. package/dist/esm/api/resources/authtoken/resources/auth/exports.mjs +3 -0
  298. package/dist/esm/api/resources/authtoken/types/BadRequestErrorBody.d.mts +3 -3
  299. package/dist/esm/api/resources/authtoken/types/OAuthError.d.mts +19 -0
  300. package/dist/esm/api/resources/authtoken/types/OAuthError.mjs +11 -0
  301. package/dist/esm/api/resources/authtoken/types/TokenResponse.d.mts +8 -0
  302. package/dist/esm/api/resources/authtoken/types/TokenResponse.mjs +2 -0
  303. package/dist/esm/api/resources/authtoken/types/UnauthorizedErrorBody.d.mts +3 -3
  304. package/dist/esm/api/resources/authtoken/types/index.d.mts +2 -0
  305. package/dist/esm/api/resources/authtoken/types/index.mjs +2 -0
  306. package/dist/esm/api/resources/cohort/client/Client.d.mts +8 -9
  307. package/dist/esm/api/resources/cohort/client/Client.mjs +10 -26
  308. package/dist/esm/api/resources/cohort/errors/BadRequestError.mjs +5 -1
  309. package/dist/esm/api/resources/cohort/errors/InternalServerError.mjs +5 -1
  310. package/dist/esm/api/resources/cohort/errors/UnauthorizedError.mjs +5 -1
  311. package/dist/esm/api/resources/cohort/exports.d.mts +2 -0
  312. package/dist/esm/api/resources/cohort/exports.mjs +3 -0
  313. package/dist/esm/api/resources/cohort/types/CohortResponse.d.mts +3 -3
  314. package/dist/esm/api/resources/cohort/types/SearchConcept.d.mts +4 -4
  315. package/dist/esm/api/resources/construe/client/Client.d.mts +28 -29
  316. package/dist/esm/api/resources/construe/client/Client.mjs +77 -238
  317. package/dist/esm/api/resources/construe/client/requests/index.d.mts +1 -1
  318. package/dist/esm/api/resources/construe/client/requests/index.mjs +1 -1
  319. package/dist/esm/api/resources/construe/errors/BadRequestError.mjs +5 -1
  320. package/dist/esm/api/resources/construe/errors/ConflictError.mjs +5 -1
  321. package/dist/esm/api/resources/construe/errors/FailedDependencyError.mjs +5 -1
  322. package/dist/esm/api/resources/construe/errors/ForbiddenError.mjs +5 -1
  323. package/dist/esm/api/resources/construe/errors/GatewayTimeoutError.mjs +5 -1
  324. package/dist/esm/api/resources/construe/errors/InternalServerError.mjs +5 -1
  325. package/dist/esm/api/resources/construe/errors/NotFoundError.mjs +5 -1
  326. package/dist/esm/api/resources/construe/errors/NotImplementedError.mjs +5 -1
  327. package/dist/esm/api/resources/construe/errors/ServiceUnavailableError.mjs +5 -1
  328. package/dist/esm/api/resources/construe/errors/UnauthorizedError.mjs +5 -1
  329. package/dist/esm/api/resources/construe/exports.d.mts +2 -0
  330. package/dist/esm/api/resources/construe/exports.mjs +3 -0
  331. package/dist/esm/api/resources/construe/types/CodeResponse.d.mts +1 -1
  332. package/dist/esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.mts +3 -3
  333. package/dist/esm/api/resources/construe/types/ExtractRequestConfig.d.mts +8 -8
  334. package/dist/esm/api/resources/construe/types/ExtractRequestSystem.d.mts +2 -2
  335. package/dist/esm/api/resources/construe/types/ExtractedCodeResult.d.mts +3 -3
  336. package/dist/esm/api/resources/construe/types/GetCodeResponse.d.mts +1 -1
  337. package/dist/esm/api/resources/construe/types/ListCodesResponse.d.mts +1 -1
  338. package/dist/esm/api/resources/fhir/client/Client.d.mts +18 -19
  339. package/dist/esm/api/resources/fhir/client/Client.mjs +44 -132
  340. package/dist/esm/api/resources/fhir/client/requests/FhirSearchRequest.d.mts +0 -6
  341. package/dist/esm/api/resources/fhir/errors/BadGatewayError.mjs +5 -1
  342. package/dist/esm/api/resources/fhir/errors/BadRequestError.mjs +5 -1
  343. package/dist/esm/api/resources/fhir/errors/InternalServerError.mjs +5 -1
  344. package/dist/esm/api/resources/fhir/errors/NotFoundError.mjs +5 -1
  345. package/dist/esm/api/resources/fhir/errors/UnauthorizedError.mjs +5 -1
  346. package/dist/esm/api/resources/fhir/exports.d.mts +2 -0
  347. package/dist/esm/api/resources/fhir/exports.mjs +3 -0
  348. package/dist/esm/api/resources/fhir/types/ErrorResponse.d.mts +2 -2
  349. package/dist/esm/api/resources/fhir/types/FhirBundle.d.mts +8 -8
  350. package/dist/esm/api/resources/fhir/types/FhirPatchRequestBodyItem.d.mts +2 -2
  351. package/dist/esm/api/resources/fhir/types/FhirResource.d.mts +5 -5
  352. package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +20 -21
  353. package/dist/esm/api/resources/fhirProvider/client/Client.mjs +34 -128
  354. package/dist/esm/api/resources/fhirProvider/errors/BadRequestError.mjs +5 -1
  355. package/dist/esm/api/resources/fhirProvider/errors/ForbiddenError.mjs +5 -1
  356. package/dist/esm/api/resources/fhirProvider/errors/InternalServerError.mjs +5 -1
  357. package/dist/esm/api/resources/fhirProvider/errors/NotFoundError.mjs +5 -1
  358. package/dist/esm/api/resources/fhirProvider/errors/UnauthorizedError.mjs +5 -1
  359. package/dist/esm/api/resources/fhirProvider/exports.d.mts +2 -0
  360. package/dist/esm/api/resources/fhirProvider/exports.mjs +3 -0
  361. package/dist/esm/api/resources/fhirProvider/types/ClientSecretAuth.d.mts +2 -2
  362. package/dist/esm/api/resources/fhirProvider/types/FhirProviderAuthConfig.d.mts +12 -12
  363. package/dist/esm/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.mts +2 -2
  364. package/dist/esm/api/resources/fhirProvider/types/FhirProviderListResponse.d.mts +3 -3
  365. package/dist/esm/api/resources/fhirProvider/types/FhirProviderRemoveAuthConfigResponse.d.mts +3 -3
  366. package/dist/esm/api/resources/fhirProvider/types/FhirProviderResponse.d.mts +3 -3
  367. package/dist/esm/api/resources/fhirProvider/types/FhirProviderSandboxInfo.d.mts +4 -4
  368. package/dist/esm/api/resources/fhirProvider/types/FhirProviderTemplate.d.mts +8 -8
  369. package/dist/esm/api/resources/fhirProvider/types/FhirQueryResponse.d.mts +4 -4
  370. package/dist/esm/api/resources/fhirProvider/types/JsonWebKey.d.mts +6 -6
  371. package/dist/esm/api/resources/fhirProvider/types/JwtAuth.d.mts +3 -3
  372. package/dist/esm/api/resources/fhirProvider/types/OnBehalfOfAuth.d.mts +2 -2
  373. package/dist/esm/api/resources/fhirProvider/types/ServiceAccountMetadata.d.mts +4 -4
  374. package/dist/esm/api/resources/fhirProvider/types/SmartConfiguration.d.mts +5 -5
  375. package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +18 -19
  376. package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +30 -111
  377. package/dist/esm/api/resources/lang2Fhir/client/requests/index.d.mts +1 -1
  378. package/dist/esm/api/resources/lang2Fhir/client/requests/index.mjs +1 -1
  379. package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.mjs +5 -1
  380. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.mjs +5 -1
  381. package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.mjs +5 -1
  382. package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.mjs +5 -1
  383. package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.mjs +5 -1
  384. package/dist/esm/api/resources/lang2Fhir/errors/UnprocessableEntityError.mjs +5 -1
  385. package/dist/esm/api/resources/lang2Fhir/exports.d.mts +2 -0
  386. package/dist/esm/api/resources/lang2Fhir/exports.mjs +3 -0
  387. package/dist/esm/api/resources/lang2Fhir/types/CreateMultiResponse.d.mts +15 -15
  388. package/dist/esm/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.mts +4 -4
  389. package/dist/esm/api/resources/lang2Fhir/types/SearchResponse.d.mts +2 -2
  390. package/dist/esm/api/resources/summary/client/Client.d.mts +18 -19
  391. package/dist/esm/api/resources/summary/client/Client.mjs +30 -111
  392. package/dist/esm/api/resources/summary/client/requests/index.d.mts +1 -1
  393. package/dist/esm/api/resources/summary/client/requests/index.mjs +1 -1
  394. package/dist/esm/api/resources/summary/errors/BadRequestError.mjs +5 -1
  395. package/dist/esm/api/resources/summary/errors/ForbiddenError.mjs +5 -1
  396. package/dist/esm/api/resources/summary/errors/InternalServerError.mjs +5 -1
  397. package/dist/esm/api/resources/summary/errors/NotFoundError.mjs +5 -1
  398. package/dist/esm/api/resources/summary/errors/UnauthorizedError.mjs +5 -1
  399. package/dist/esm/api/resources/summary/exports.d.mts +2 -0
  400. package/dist/esm/api/resources/summary/exports.mjs +3 -0
  401. package/dist/esm/api/resources/summary/types/CreateSummaryResponse.d.mts +4 -4
  402. package/dist/esm/api/resources/summary/types/CreateSummaryTemplateResponse.d.mts +4 -4
  403. package/dist/esm/api/resources/summary/types/ErrorResponse.d.mts +2 -2
  404. package/dist/esm/api/resources/summary/types/FhirBundle.d.mts +1 -1
  405. package/dist/esm/api/resources/summary/types/SummaryDeleteTemplateResponse.d.mts +2 -2
  406. package/dist/esm/api/resources/summary/types/SummaryGetTemplateResponse.d.mts +2 -2
  407. package/dist/esm/api/resources/summary/types/SummaryListTemplatesResponse.d.mts +2 -2
  408. package/dist/esm/api/resources/summary/types/SummaryTemplate.d.mts +9 -9
  409. package/dist/esm/api/resources/summary/types/SummaryUpdateTemplateResponse.d.mts +3 -3
  410. package/dist/esm/api/resources/tools/client/Client.d.mts +17 -18
  411. package/dist/esm/api/resources/tools/client/Client.mjs +31 -90
  412. package/dist/esm/api/resources/tools/client/requests/index.d.mts +1 -1
  413. package/dist/esm/api/resources/tools/client/requests/index.mjs +1 -1
  414. package/dist/esm/api/resources/tools/errors/BadRequestError.mjs +5 -1
  415. package/dist/esm/api/resources/tools/errors/FailedDependencyError.mjs +5 -1
  416. package/dist/esm/api/resources/tools/errors/ForbiddenError.mjs +5 -1
  417. package/dist/esm/api/resources/tools/errors/InternalServerError.mjs +5 -1
  418. package/dist/esm/api/resources/tools/errors/UnauthorizedError.mjs +5 -1
  419. package/dist/esm/api/resources/tools/exports.d.mts +3 -0
  420. package/dist/esm/api/resources/tools/exports.mjs +4 -0
  421. package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.d.mts +17 -18
  422. package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.mjs +24 -79
  423. package/dist/esm/api/resources/tools/resources/mcpServer/exports.d.mts +3 -0
  424. package/dist/esm/api/resources/tools/resources/mcpServer/exports.mjs +4 -0
  425. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.mts +14 -15
  426. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +22 -77
  427. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/exports.d.mts +2 -0
  428. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/exports.mjs +3 -0
  429. package/dist/esm/api/resources/tools/types/CohortResponse.d.mts +5 -5
  430. package/dist/esm/api/resources/tools/types/Lang2FhirAndCreateMultiResponse.d.mts +10 -10
  431. package/dist/esm/api/resources/tools/types/Lang2FhirAndCreateResponse.d.mts +4 -4
  432. package/dist/esm/api/resources/tools/types/Lang2FhirAndSearchResponse.d.mts +5 -5
  433. package/dist/esm/api/resources/tools/types/McpServerResponse.d.mts +7 -7
  434. package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.d.mts +4 -4
  435. package/dist/esm/api/resources/tools/types/McpServerToolResponse.d.mts +9 -9
  436. package/dist/esm/api/resources/tools/types/SearchConcept.d.mts +4 -4
  437. package/dist/esm/api/resources/workflows/client/Client.d.mts +18 -19
  438. package/dist/esm/api/resources/workflows/client/Client.mjs +42 -127
  439. package/dist/esm/api/resources/workflows/errors/BadRequestError.mjs +5 -1
  440. package/dist/esm/api/resources/workflows/errors/ForbiddenError.mjs +5 -1
  441. package/dist/esm/api/resources/workflows/errors/InternalServerError.mjs +5 -1
  442. package/dist/esm/api/resources/workflows/errors/NotFoundError.mjs +5 -1
  443. package/dist/esm/api/resources/workflows/errors/UnauthorizedError.mjs +5 -1
  444. package/dist/esm/api/resources/workflows/exports.d.mts +2 -0
  445. package/dist/esm/api/resources/workflows/exports.mjs +3 -0
  446. package/dist/esm/api/resources/workflows/types/CreateWorkflowResponse.d.mts +5 -5
  447. package/dist/esm/api/resources/workflows/types/DecisionNodeDefinition.d.mts +3 -3
  448. package/dist/esm/api/resources/workflows/types/ExecuteWorkflowResponse.d.mts +4 -4
  449. package/dist/esm/api/resources/workflows/types/Lang2FhirCreateDefinition.d.mts +4 -4
  450. package/dist/esm/api/resources/workflows/types/Lang2FhirSearchDefinition.d.mts +5 -5
  451. package/dist/esm/api/resources/workflows/types/ListWorkflowsResponse.d.mts +4 -4
  452. package/dist/esm/api/resources/workflows/types/StepOperation.d.mts +4 -4
  453. package/dist/esm/api/resources/workflows/types/SubWorkflowDefinition.d.mts +3 -3
  454. package/dist/esm/api/resources/workflows/types/WorkflowConfig.d.mts +2 -2
  455. package/dist/esm/api/resources/workflows/types/WorkflowDefinition.d.mts +8 -8
  456. package/dist/esm/api/resources/workflows/types/WorkflowGraph.d.mts +1 -1
  457. package/dist/esm/api/resources/workflows/types/WorkflowResponse.d.mts +9 -9
  458. package/dist/esm/api/resources/workflows/types/WorkflowStep.d.mts +8 -8
  459. package/dist/esm/api/resources/workflows/types/WorkflowStepSummary.d.mts +5 -5
  460. package/dist/esm/api/resources/workflows/types/WorkflowsDeleteResponse.d.mts +2 -2
  461. package/dist/esm/api/resources/workflows/types/WorkflowsGetResponse.d.mts +3 -3
  462. package/dist/esm/api/resources/workflows/types/WorkflowsUpdateResponse.d.mts +4 -4
  463. package/dist/esm/auth/OAuthAuthProvider.d.mts +45 -0
  464. package/dist/esm/auth/OAuthAuthProvider.mjs +152 -0
  465. package/dist/esm/auth/index.d.mts +1 -0
  466. package/dist/esm/auth/index.mjs +1 -0
  467. package/dist/esm/core/auth/AuthProvider.d.mts +4 -1
  468. package/dist/esm/core/auth/BearerToken.d.mts +3 -1
  469. package/dist/esm/core/auth/BearerToken.mjs +7 -6
  470. package/dist/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
  471. package/dist/esm/core/auth/NoOpAuthProvider.mjs +5 -0
  472. package/dist/esm/core/auth/index.d.mts +1 -0
  473. package/dist/esm/core/auth/index.mjs +1 -0
  474. package/dist/esm/core/fetcher/BinaryResponse.d.mts +6 -7
  475. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
  476. package/dist/esm/core/fetcher/Fetcher.d.mts +6 -3
  477. package/dist/esm/core/fetcher/Fetcher.mjs +10 -3
  478. package/dist/esm/core/fetcher/getResponseBody.mjs +18 -4
  479. package/dist/esm/core/fetcher/makeRequest.d.mts +6 -1
  480. package/dist/esm/core/fetcher/makeRequest.mjs +28 -9
  481. package/dist/esm/core/fetcher/signals.d.mts +1 -1
  482. package/dist/esm/core/headers.d.mts +2 -2
  483. package/dist/esm/core/runtime/runtime.mjs +17 -15
  484. package/dist/esm/core/stream/Stream.d.mts +9 -0
  485. package/dist/esm/core/stream/Stream.mjs +100 -5
  486. package/dist/esm/errors/handleNonStatusCodeError.d.mts +2 -0
  487. package/dist/esm/errors/handleNonStatusCodeError.mjs +29 -0
  488. package/dist/esm/errors/phenomlError.mjs +5 -1
  489. package/dist/esm/errors/phenomlTimeoutError.mjs +5 -1
  490. package/dist/esm/index.d.mts +4 -2
  491. package/dist/esm/index.mjs +3 -2
  492. package/dist/esm/version.d.mts +1 -1
  493. package/dist/esm/version.mjs +1 -1
  494. package/package.json +162 -5
  495. package/reference.md +141 -74
  496. package/dist/cjs/WrapperClient.d.ts +0 -21
  497. package/dist/cjs/WrapperClient.js +0 -111
  498. package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +0 -4
  499. package/dist/cjs/core/fetcher/ResponseWithBody.js +0 -6
  500. package/dist/esm/WrapperClient.d.mts +0 -21
  501. package/dist/esm/WrapperClient.mjs +0 -75
  502. package/dist/esm/core/fetcher/ResponseWithBody.d.mts +0 -4
  503. package/dist/esm/core/fetcher/ResponseWithBody.mjs +0 -3
package/README.md CHANGED
@@ -20,14 +20,13 @@ A full reference for this library is available [here](https://github.com/phenoml
20
20
  Instantiate and use the client with the following:
21
21
 
22
22
  ```typescript
23
- import { PhenoMLClient } from "phenoml";
24
-
25
- const client = new PhenoMLClient({
26
- username: "your_username",
27
- password: "your_password",
28
- baseUrl: "https://your-phenoml-instance.com"
29
- });
23
+ import { phenomlClient } from "phenoml";
30
24
 
25
+ const client = new phenomlClient({
26
+ clientId: "YOUR_CLIENT_ID",
27
+ clientSecret: "YOUR_CLIENT_SECRET",
28
+ baseUrl: "https://yourinstance.app.pheno.ml",
29
+ });
31
30
 
32
31
  await client.agent.create({
33
32
  name: "name",
@@ -1,10 +1,10 @@
1
- import type * as core from "./core/index.js";
1
+ import { OAuthAuthProvider } from "./auth/OAuthAuthProvider.js";
2
+ import * as core from "./core/index.js";
2
3
  import type * as environments from "./environments.js";
3
- export interface BaseClientOptions {
4
+ export type BaseClientOptions = {
4
5
  environment?: core.Supplier<environments.phenomlEnvironment | string>;
5
6
  /** Specify a custom URL to connect the client to. */
6
7
  baseUrl?: core.Supplier<string>;
7
- token: core.Supplier<core.BearerToken>;
8
8
  /** Additional headers to include in requests. */
9
9
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
10
10
  /** The default maximum time to wait for a response in seconds. */
@@ -16,7 +16,7 @@ export interface BaseClientOptions {
16
16
  fetcher?: core.FetchFunction;
17
17
  /** Configure logging for the client. */
18
18
  logging?: core.logging.LogConfig | core.logging.Logger;
19
- }
19
+ } & OAuthAuthProvider.AuthOptions;
20
20
  export interface BaseRequestOptions {
21
21
  /** The maximum time to wait for a response in seconds. */
22
22
  timeoutInSeconds?: number;
@@ -29,3 +29,12 @@ export interface BaseRequestOptions {
29
29
  /** Additional headers to include in the request. */
30
30
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
31
31
  }
32
+ export type NormalizedClientOptions<T extends BaseClientOptions = BaseClientOptions> = T & {
33
+ logging: core.logging.Logger;
34
+ authProvider?: core.AuthProvider;
35
+ };
36
+ export type NormalizedClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions> = NormalizedClientOptions<T> & {
37
+ authProvider: core.AuthProvider;
38
+ };
39
+ export declare function normalizeClientOptions<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptions<T>;
40
+ export declare function normalizeClientOptionsWithAuth<T extends BaseClientOptions = BaseClientOptions>(options: T): NormalizedClientOptionsWithAuth<T>;
@@ -1,3 +1,62 @@
1
1
  "use strict";
2
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
3
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.normalizeClientOptions = normalizeClientOptions;
38
+ exports.normalizeClientOptionsWithAuth = normalizeClientOptionsWithAuth;
39
+ const OAuthAuthProvider_js_1 = require("./auth/OAuthAuthProvider.js");
40
+ const headers_js_1 = require("./core/headers.js");
41
+ const core = __importStar(require("./core/index.js"));
42
+ function normalizeClientOptions(options) {
43
+ const headers = (0, headers_js_1.mergeHeaders)({
44
+ "X-Fern-Language": "JavaScript",
45
+ "X-Fern-SDK-Name": "phenoml",
46
+ "X-Fern-SDK-Version": "10.0.1",
47
+ "User-Agent": "phenoml/10.0.1",
48
+ "X-Fern-Runtime": core.RUNTIME.type,
49
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
50
+ }, options === null || options === void 0 ? void 0 : options.headers);
51
+ return Object.assign(Object.assign({}, options), { logging: core.logging.createLogger(options === null || options === void 0 ? void 0 : options.logging), headers });
52
+ }
53
+ function normalizeClientOptionsWithAuth(options) {
54
+ var _a;
55
+ const normalized = normalizeClientOptions(options);
56
+ const normalizedWithNoOpAuthProvider = withNoOpAuthProvider(normalized);
57
+ (_a = normalized.authProvider) !== null && _a !== void 0 ? _a : (normalized.authProvider = OAuthAuthProvider_js_1.OAuthAuthProvider.createInstance(normalizedWithNoOpAuthProvider));
58
+ return normalized;
59
+ }
60
+ function withNoOpAuthProvider(options) {
61
+ return Object.assign(Object.assign({}, options), { authProvider: new core.NoOpAuthProvider() });
62
+ }
@@ -1,41 +1,41 @@
1
- import { Agent } from "./api/resources/agent/client/Client.js";
2
- import { Authtoken } from "./api/resources/authtoken/client/Client.js";
3
- import { Cohort } from "./api/resources/cohort/client/Client.js";
4
- import { Construe } from "./api/resources/construe/client/Client.js";
5
- import { Fhir } from "./api/resources/fhir/client/Client.js";
6
- import { FhirProvider } from "./api/resources/fhirProvider/client/Client.js";
7
- import { Lang2Fhir } from "./api/resources/lang2Fhir/client/Client.js";
8
- import { Summary } from "./api/resources/summary/client/Client.js";
9
- import { Tools } from "./api/resources/tools/client/Client.js";
10
- import { Workflows } from "./api/resources/workflows/client/Client.js";
1
+ import { AgentClient } from "./api/resources/agent/client/Client.js";
2
+ import { AuthtokenClient } from "./api/resources/authtoken/client/Client.js";
3
+ import { CohortClient } from "./api/resources/cohort/client/Client.js";
4
+ import { ConstrueClient } from "./api/resources/construe/client/Client.js";
5
+ import { FhirClient } from "./api/resources/fhir/client/Client.js";
6
+ import { FhirProviderClient } from "./api/resources/fhirProvider/client/Client.js";
7
+ import { Lang2FhirClient } from "./api/resources/lang2Fhir/client/Client.js";
8
+ import { SummaryClient } from "./api/resources/summary/client/Client.js";
9
+ import { ToolsClient } from "./api/resources/tools/client/Client.js";
10
+ import { WorkflowsClient } from "./api/resources/workflows/client/Client.js";
11
11
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
12
+ import { type NormalizedClientOptionsWithAuth } from "./BaseClient.js";
12
13
  export declare namespace phenomlClient {
13
- interface Options extends BaseClientOptions {
14
- }
14
+ type Options = BaseClientOptions;
15
15
  interface RequestOptions extends BaseRequestOptions {
16
16
  }
17
17
  }
18
18
  export declare class phenomlClient {
19
- protected readonly _options: phenomlClient.Options;
20
- protected _agent: Agent | undefined;
21
- protected _authtoken: Authtoken | undefined;
22
- protected _cohort: Cohort | undefined;
23
- protected _construe: Construe | undefined;
24
- protected _fhir: Fhir | undefined;
25
- protected _fhirProvider: FhirProvider | undefined;
26
- protected _lang2Fhir: Lang2Fhir | undefined;
27
- protected _summary: Summary | undefined;
28
- protected _tools: Tools | undefined;
29
- protected _workflows: Workflows | undefined;
30
- constructor(_options: phenomlClient.Options);
31
- get agent(): Agent;
32
- get authtoken(): Authtoken;
33
- get cohort(): Cohort;
34
- get construe(): Construe;
35
- get fhir(): Fhir;
36
- get fhirProvider(): FhirProvider;
37
- get lang2Fhir(): Lang2Fhir;
38
- get summary(): Summary;
39
- get tools(): Tools;
40
- get workflows(): Workflows;
19
+ protected readonly _options: NormalizedClientOptionsWithAuth<phenomlClient.Options>;
20
+ protected _agent: AgentClient | undefined;
21
+ protected _authtoken: AuthtokenClient | undefined;
22
+ protected _cohort: CohortClient | undefined;
23
+ protected _construe: ConstrueClient | undefined;
24
+ protected _fhir: FhirClient | undefined;
25
+ protected _fhirProvider: FhirProviderClient | undefined;
26
+ protected _lang2Fhir: Lang2FhirClient | undefined;
27
+ protected _summary: SummaryClient | undefined;
28
+ protected _tools: ToolsClient | undefined;
29
+ protected _workflows: WorkflowsClient | undefined;
30
+ constructor(options?: phenomlClient.Options);
31
+ get agent(): AgentClient;
32
+ get authtoken(): AuthtokenClient;
33
+ get cohort(): CohortClient;
34
+ get construe(): ConstrueClient;
35
+ get fhir(): FhirClient;
36
+ get fhirProvider(): FhirProviderClient;
37
+ get lang2Fhir(): Lang2FhirClient;
38
+ get summary(): SummaryClient;
39
+ get tools(): ToolsClient;
40
+ get workflows(): WorkflowsClient;
41
41
  }
@@ -1,38 +1,5 @@
1
1
  "use strict";
2
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
18
- });
19
- var __importStar = (this && this.__importStar) || (function () {
20
- var ownKeys = function(o) {
21
- ownKeys = Object.getOwnPropertyNames || function (o) {
22
- var ar = [];
23
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
- return ar;
25
- };
26
- return ownKeys(o);
27
- };
28
- return function (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
- __setModuleDefault(result, mod);
33
- return result;
34
- };
35
- })();
36
3
  Object.defineProperty(exports, "__esModule", { value: true });
37
4
  exports.phenomlClient = void 0;
38
5
  const Client_js_1 = require("./api/resources/agent/client/Client.js");
@@ -45,58 +12,50 @@ const Client_js_7 = require("./api/resources/lang2Fhir/client/Client.js");
45
12
  const Client_js_8 = require("./api/resources/summary/client/Client.js");
46
13
  const Client_js_9 = require("./api/resources/tools/client/Client.js");
47
14
  const Client_js_10 = require("./api/resources/workflows/client/Client.js");
48
- const headers_js_1 = require("./core/headers.js");
49
- const core = __importStar(require("./core/index.js"));
15
+ const BaseClient_js_1 = require("./BaseClient.js");
50
16
  class phenomlClient {
51
- constructor(_options) {
52
- this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: (0, headers_js_1.mergeHeaders)({
53
- "X-Fern-Language": "JavaScript",
54
- "X-Fern-SDK-Name": "phenoml",
55
- "X-Fern-SDK-Version": "9.2.0",
56
- "User-Agent": "phenoml/9.2.0",
57
- "X-Fern-Runtime": core.RUNTIME.type,
58
- "X-Fern-Runtime-Version": core.RUNTIME.version,
59
- }, _options === null || _options === void 0 ? void 0 : _options.headers) });
17
+ constructor(options = {}) {
18
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
60
19
  }
61
20
  get agent() {
62
21
  var _a;
63
- return ((_a = this._agent) !== null && _a !== void 0 ? _a : (this._agent = new Client_js_1.Agent(this._options)));
22
+ return ((_a = this._agent) !== null && _a !== void 0 ? _a : (this._agent = new Client_js_1.AgentClient(this._options)));
64
23
  }
65
24
  get authtoken() {
66
25
  var _a;
67
- return ((_a = this._authtoken) !== null && _a !== void 0 ? _a : (this._authtoken = new Client_js_2.Authtoken(this._options)));
26
+ return ((_a = this._authtoken) !== null && _a !== void 0 ? _a : (this._authtoken = new Client_js_2.AuthtokenClient(this._options)));
68
27
  }
69
28
  get cohort() {
70
29
  var _a;
71
- return ((_a = this._cohort) !== null && _a !== void 0 ? _a : (this._cohort = new Client_js_3.Cohort(this._options)));
30
+ return ((_a = this._cohort) !== null && _a !== void 0 ? _a : (this._cohort = new Client_js_3.CohortClient(this._options)));
72
31
  }
73
32
  get construe() {
74
33
  var _a;
75
- return ((_a = this._construe) !== null && _a !== void 0 ? _a : (this._construe = new Client_js_4.Construe(this._options)));
34
+ return ((_a = this._construe) !== null && _a !== void 0 ? _a : (this._construe = new Client_js_4.ConstrueClient(this._options)));
76
35
  }
77
36
  get fhir() {
78
37
  var _a;
79
- return ((_a = this._fhir) !== null && _a !== void 0 ? _a : (this._fhir = new Client_js_5.Fhir(this._options)));
38
+ return ((_a = this._fhir) !== null && _a !== void 0 ? _a : (this._fhir = new Client_js_5.FhirClient(this._options)));
80
39
  }
81
40
  get fhirProvider() {
82
41
  var _a;
83
- return ((_a = this._fhirProvider) !== null && _a !== void 0 ? _a : (this._fhirProvider = new Client_js_6.FhirProvider(this._options)));
42
+ return ((_a = this._fhirProvider) !== null && _a !== void 0 ? _a : (this._fhirProvider = new Client_js_6.FhirProviderClient(this._options)));
84
43
  }
85
44
  get lang2Fhir() {
86
45
  var _a;
87
- return ((_a = this._lang2Fhir) !== null && _a !== void 0 ? _a : (this._lang2Fhir = new Client_js_7.Lang2Fhir(this._options)));
46
+ return ((_a = this._lang2Fhir) !== null && _a !== void 0 ? _a : (this._lang2Fhir = new Client_js_7.Lang2FhirClient(this._options)));
88
47
  }
89
48
  get summary() {
90
49
  var _a;
91
- return ((_a = this._summary) !== null && _a !== void 0 ? _a : (this._summary = new Client_js_8.Summary(this._options)));
50
+ return ((_a = this._summary) !== null && _a !== void 0 ? _a : (this._summary = new Client_js_8.SummaryClient(this._options)));
92
51
  }
93
52
  get tools() {
94
53
  var _a;
95
- return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_js_9.Tools(this._options)));
54
+ return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_js_9.ToolsClient(this._options)));
96
55
  }
97
56
  get workflows() {
98
57
  var _a;
99
- return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Client_js_10.Workflows(this._options)));
58
+ return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Client_js_10.WorkflowsClient(this._options)));
100
59
  }
101
60
  }
102
61
  exports.phenomlClient = phenomlClient;
@@ -1,23 +1,23 @@
1
1
  import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
2
3
  import * as core from "../../../../core/index.js";
3
4
  import * as phenoml from "../../../index.js";
4
- import { Prompts } from "../resources/prompts/client/Client.js";
5
- export declare namespace Agent {
6
- interface Options extends BaseClientOptions {
7
- }
5
+ import { PromptsClient } from "../resources/prompts/client/Client.js";
6
+ export declare namespace AgentClient {
7
+ type Options = BaseClientOptions;
8
8
  interface RequestOptions extends BaseRequestOptions {
9
9
  }
10
10
  }
11
- export declare class Agent {
12
- protected readonly _options: Agent.Options;
13
- protected _prompts: Prompts | undefined;
14
- constructor(_options: Agent.Options);
15
- get prompts(): Prompts;
11
+ export declare class AgentClient {
12
+ protected readonly _options: NormalizedClientOptionsWithAuth<AgentClient.Options>;
13
+ protected _prompts: PromptsClient | undefined;
14
+ constructor(options?: AgentClient.Options);
15
+ get prompts(): PromptsClient;
16
16
  /**
17
17
  * Creates a new PhenoAgent with specified configuration
18
18
  *
19
19
  * @param {phenoml.agent.AgentCreateRequest} request
20
- * @param {Agent.RequestOptions} requestOptions - Request-specific configuration.
20
+ * @param {AgentClient.RequestOptions} requestOptions - Request-specific configuration.
21
21
  *
22
22
  * @throws {@link phenoml.agent.BadRequestError}
23
23
  * @throws {@link phenoml.agent.UnauthorizedError}
@@ -31,13 +31,13 @@ export declare class Agent {
31
31
  * provider: "provider"
32
32
  * })
33
33
  */
34
- create(request: phenoml.agent.AgentCreateRequest, requestOptions?: Agent.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentResponse>;
34
+ create(request: phenoml.agent.AgentCreateRequest, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentResponse>;
35
35
  private __create;
36
36
  /**
37
37
  * Retrieves a list of PhenoAgents belonging to the authenticated user
38
38
  *
39
39
  * @param {phenoml.agent.AgentListRequest} request
40
- * @param {Agent.RequestOptions} requestOptions - Request-specific configuration.
40
+ * @param {AgentClient.RequestOptions} requestOptions - Request-specific configuration.
41
41
  *
42
42
  * @throws {@link phenoml.agent.UnauthorizedError}
43
43
  * @throws {@link phenoml.agent.ForbiddenError}
@@ -48,13 +48,13 @@ export declare class Agent {
48
48
  * tags: "tags"
49
49
  * })
50
50
  */
51
- list(request?: phenoml.agent.AgentListRequest, requestOptions?: Agent.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentListResponse>;
51
+ list(request?: phenoml.agent.AgentListRequest, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentListResponse>;
52
52
  private __list;
53
53
  /**
54
54
  * Retrieves a specific agent by its ID
55
55
  *
56
56
  * @param {string} id - Agent ID
57
- * @param {Agent.RequestOptions} requestOptions - Request-specific configuration.
57
+ * @param {AgentClient.RequestOptions} requestOptions - Request-specific configuration.
58
58
  *
59
59
  * @throws {@link phenoml.agent.UnauthorizedError}
60
60
  * @throws {@link phenoml.agent.ForbiddenError}
@@ -64,14 +64,14 @@ export declare class Agent {
64
64
  * @example
65
65
  * await client.agent.get("id")
66
66
  */
67
- get(id: string, requestOptions?: Agent.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentResponse>;
67
+ get(id: string, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentResponse>;
68
68
  private __get;
69
69
  /**
70
70
  * Updates an existing agent's configuration
71
71
  *
72
72
  * @param {string} id - Agent ID
73
73
  * @param {phenoml.agent.AgentCreateRequest} request
74
- * @param {Agent.RequestOptions} requestOptions - Request-specific configuration.
74
+ * @param {AgentClient.RequestOptions} requestOptions - Request-specific configuration.
75
75
  *
76
76
  * @throws {@link phenoml.agent.BadRequestError}
77
77
  * @throws {@link phenoml.agent.UnauthorizedError}
@@ -86,13 +86,13 @@ export declare class Agent {
86
86
  * provider: "provider"
87
87
  * })
88
88
  */
89
- update(id: string, request: phenoml.agent.AgentCreateRequest, requestOptions?: Agent.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentResponse>;
89
+ update(id: string, request: phenoml.agent.AgentCreateRequest, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentResponse>;
90
90
  private __update;
91
91
  /**
92
92
  * Deletes an existing agent
93
93
  *
94
94
  * @param {string} id - Agent ID
95
- * @param {Agent.RequestOptions} requestOptions - Request-specific configuration.
95
+ * @param {AgentClient.RequestOptions} requestOptions - Request-specific configuration.
96
96
  *
97
97
  * @throws {@link phenoml.agent.UnauthorizedError}
98
98
  * @throws {@link phenoml.agent.ForbiddenError}
@@ -102,14 +102,14 @@ export declare class Agent {
102
102
  * @example
103
103
  * await client.agent.delete("id")
104
104
  */
105
- delete(id: string, requestOptions?: Agent.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentDeleteResponse>;
105
+ delete(id: string, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentDeleteResponse>;
106
106
  private __delete;
107
107
  /**
108
108
  * Patches an existing agent's configuration
109
109
  *
110
110
  * @param {string} id - Agent ID
111
111
  * @param {phenoml.agent.JsonPatch} request
112
- * @param {Agent.RequestOptions} requestOptions - Request-specific configuration.
112
+ * @param {AgentClient.RequestOptions} requestOptions - Request-specific configuration.
113
113
  *
114
114
  * @throws {@link phenoml.agent.BadRequestError}
115
115
  * @throws {@link phenoml.agent.UnauthorizedError}
@@ -131,13 +131,13 @@ export declare class Agent {
131
131
  * path: "/description"
132
132
  * }])
133
133
  */
134
- patch(id: string, request: phenoml.agent.JsonPatch, requestOptions?: Agent.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentResponse>;
134
+ patch(id: string, request: phenoml.agent.JsonPatch, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentResponse>;
135
135
  private __patch;
136
136
  /**
137
137
  * Send a message to an agent and receive a JSON response.
138
138
  *
139
139
  * @param {phenoml.agent.AgentChatRequest} request
140
- * @param {Agent.RequestOptions} requestOptions - Request-specific configuration.
140
+ * @param {AgentClient.RequestOptions} requestOptions - Request-specific configuration.
141
141
  *
142
142
  * @throws {@link phenoml.agent.BadRequestError}
143
143
  * @throws {@link phenoml.agent.UnauthorizedError}
@@ -152,20 +152,20 @@ export declare class Agent {
152
152
  * agent_id: "agent-123"
153
153
  * })
154
154
  */
155
- chat(request: phenoml.agent.AgentChatRequest, requestOptions?: Agent.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentChatResponse>;
155
+ chat(request: phenoml.agent.AgentChatRequest, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentChatResponse>;
156
156
  private __chat;
157
157
  /**
158
158
  * Send a message to an agent and receive the response as a Server-Sent Events
159
159
  * (SSE) stream. Events include message_start, content_delta, tool_use,
160
160
  * tool_result, message_end, and error.
161
161
  */
162
- streamChat(request: phenoml.agent.AgentStreamChatRequest, requestOptions?: Agent.RequestOptions): core.HttpResponsePromise<core.Stream<phenoml.agent.AgentChatStreamEvent>>;
162
+ streamChat(request: phenoml.agent.AgentStreamChatRequest, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<core.Stream<phenoml.agent.AgentChatStreamEvent>>;
163
163
  private __streamChat;
164
164
  /**
165
165
  * Retrieves a list of chat messages for a given chat session
166
166
  *
167
167
  * @param {phenoml.agent.AgentGetChatMessagesRequest} request
168
- * @param {Agent.RequestOptions} requestOptions - Request-specific configuration.
168
+ * @param {AgentClient.RequestOptions} requestOptions - Request-specific configuration.
169
169
  *
170
170
  * @throws {@link phenoml.agent.UnauthorizedError}
171
171
  * @throws {@link phenoml.agent.ForbiddenError}
@@ -179,7 +179,6 @@ export declare class Agent {
179
179
  * order: "asc"
180
180
  * })
181
181
  */
182
- getChatMessages(request: phenoml.agent.AgentGetChatMessagesRequest, requestOptions?: Agent.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentGetChatMessagesResponse>;
182
+ getChatMessages(request: phenoml.agent.AgentGetChatMessagesRequest, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentGetChatMessagesResponse>;
183
183
  private __getChatMessages;
184
- protected _getAuthorizationHeader(): Promise<string>;
185
184
  }