phenoml 14.0.0 → 16.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (343) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/agent/client/Client.d.ts +5 -5
  3. package/dist/cjs/api/resources/agent/client/Client.js +2 -2
  4. package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.d.ts +1 -1
  5. package/dist/cjs/api/resources/agent/client/requests/AgentStreamChatRequest.d.ts +1 -1
  6. package/dist/cjs/api/resources/agent/client/requests/{AgentGetChatMessagesRequest.d.ts → GetChatMessagesRequest.d.ts} +3 -3
  7. package/dist/{esm/api/resources/agent/client/requests/AgentListRequest.d.mts → cjs/api/resources/agent/client/requests/ListRequest.d.ts} +1 -1
  8. package/dist/cjs/api/resources/agent/client/requests/index.d.ts +2 -2
  9. package/dist/cjs/api/resources/agent/types/{AgentDeleteResponse.d.ts → DeleteResponse.d.ts} +1 -1
  10. package/dist/cjs/api/resources/agent/types/GetChatMessagesRequestOrder.d.ts +5 -0
  11. package/dist/cjs/api/resources/agent/types/{AgentGetChatMessagesRequestOrder.js → GetChatMessagesRequestOrder.js} +2 -2
  12. package/dist/cjs/api/resources/agent/types/GetChatMessagesRequestRole.d.ts +7 -0
  13. package/dist/cjs/api/resources/agent/types/{AgentGetChatMessagesRequestRole.js → GetChatMessagesRequestRole.js} +2 -2
  14. package/dist/cjs/api/resources/agent/types/{AgentGetChatMessagesResponse.d.ts → GetChatMessagesResponse.d.ts} +1 -1
  15. package/dist/cjs/api/resources/agent/types/{AgentListResponse.d.ts → ListResponse.d.ts} +1 -1
  16. package/dist/cjs/api/resources/agent/types/index.d.ts +5 -5
  17. package/dist/cjs/api/resources/agent/types/index.js +5 -5
  18. package/dist/cjs/api/resources/authtoken/client/Client.d.ts +26 -4
  19. package/dist/cjs/api/resources/authtoken/client/Client.js +109 -4
  20. package/dist/cjs/api/resources/authtoken/client/index.d.ts +1 -1
  21. package/dist/cjs/api/resources/authtoken/client/index.js +15 -0
  22. package/dist/cjs/api/resources/authtoken/exports.d.ts +0 -1
  23. package/dist/cjs/api/resources/authtoken/exports.js +0 -1
  24. package/dist/cjs/api/resources/authtoken/index.d.ts +0 -1
  25. package/dist/cjs/api/resources/authtoken/index.js +0 -1
  26. package/dist/cjs/api/resources/construe/client/Client.d.ts +35 -35
  27. package/dist/cjs/api/resources/construe/client/Client.js +43 -43
  28. package/dist/cjs/api/resources/construe/client/requests/{DeleteConstrueCodesSystemsCodesystemRequest.d.ts → DeleteCodeSystemRequest.d.ts} +1 -1
  29. package/dist/{esm/api/resources/construe/client/requests/DeleteConstrueCodesSystemsCodesystemRequest.d.mts → cjs/api/resources/construe/client/requests/ExportCodeSystemRequest.d.ts} +1 -1
  30. package/dist/{esm/api/resources/construe/client/requests/GetConstrueCodesCodesystemCodeIdRequest.d.mts → cjs/api/resources/construe/client/requests/GetCodeRequest.d.ts} +1 -1
  31. package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesSystemsCodesystemRequest.d.ts → GetCodeSystemRequest.d.ts} +1 -1
  32. package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesCodesystemRequest.d.ts → ListCodesRequest.d.ts} +1 -1
  33. package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesCodesystemSearchSemanticRequest.d.ts → SearchSemanticRequest.d.ts} +1 -1
  34. package/dist/{esm/api/resources/construe/client/requests/GetConstrueCodesCodesystemSearchTextRequest.d.mts → cjs/api/resources/construe/client/requests/SearchTextRequest.d.ts} +1 -1
  35. package/dist/cjs/api/resources/construe/client/requests/index.d.ts +7 -7
  36. package/dist/{esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.mts → cjs/api/resources/construe/types/UploadCodeSystemResponse.d.ts} +1 -1
  37. package/dist/cjs/api/resources/construe/types/index.d.ts +1 -1
  38. package/dist/cjs/api/resources/construe/types/index.js +1 -1
  39. package/dist/cjs/api/resources/fhir/client/Client.d.ts +12 -12
  40. package/dist/cjs/api/resources/fhir/client/Client.js +6 -6
  41. package/dist/cjs/api/resources/fhir/client/requests/{FhirCreateRequest.d.ts → CreateRequest.d.ts} +1 -1
  42. package/dist/{esm/api/resources/fhir/client/requests/FhirDeleteRequest.d.mts → cjs/api/resources/fhir/client/requests/DeleteRequest.d.ts} +1 -1
  43. package/dist/cjs/api/resources/fhir/client/requests/{FhirExecuteBundleRequest.d.ts → ExecuteBundleRequest.d.ts} +1 -1
  44. package/dist/cjs/api/resources/fhir/client/requests/{FhirPatchRequest.d.ts → PatchRequest.d.ts} +2 -2
  45. package/dist/cjs/api/resources/fhir/client/requests/{FhirSearchRequest.d.ts → SearchRequest.d.ts} +1 -1
  46. package/dist/cjs/api/resources/fhir/client/requests/{FhirUpsertRequest.d.ts → UpsertRequest.d.ts} +1 -1
  47. package/dist/cjs/api/resources/fhir/client/requests/index.d.ts +6 -6
  48. package/dist/cjs/api/resources/fhir/types/{FhirPatchRequestBodyItem.d.ts → PatchRequestBodyItem.d.ts} +3 -3
  49. package/dist/cjs/api/resources/fhir/types/{FhirPatchRequestBodyItem.js → PatchRequestBodyItem.js} +5 -5
  50. package/dist/cjs/api/resources/fhir/types/SearchResponse.d.ts +2 -0
  51. package/dist/cjs/api/resources/fhir/types/index.d.ts +2 -2
  52. package/dist/cjs/api/resources/fhir/types/index.js +2 -2
  53. package/dist/cjs/api/resources/fhirProvider/client/Client.d.ts +2 -2
  54. package/dist/cjs/api/resources/fhirProvider/client/Client.js +1 -4
  55. package/dist/{esm/api/resources/agent/types/AgentDeleteResponse.d.mts → cjs/api/resources/fhirProvider/types/DeleteResponse.d.ts} +1 -1
  56. package/dist/cjs/api/resources/fhirProvider/types/{FhirProviderRemoveAuthConfigResponse.d.ts → RemoveAuthConfigResponse.d.ts} +1 -1
  57. package/dist/cjs/api/resources/fhirProvider/types/index.d.ts +2 -2
  58. package/dist/cjs/api/resources/fhirProvider/types/index.js +2 -2
  59. package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +4 -4
  60. package/dist/cjs/api/resources/lang2Fhir/client/Client.js +4 -4
  61. package/dist/cjs/api/resources/lang2Fhir/types/{Lang2FhirUploadProfileResponse.d.ts → UploadProfileResponse.d.ts} +1 -1
  62. package/dist/cjs/api/resources/lang2Fhir/types/index.d.ts +1 -1
  63. package/dist/cjs/api/resources/lang2Fhir/types/index.js +1 -1
  64. package/dist/cjs/api/resources/summary/client/Client.d.ts +3 -88
  65. package/dist/cjs/api/resources/summary/client/Client.js +4 -309
  66. package/dist/cjs/api/resources/summary/client/requests/index.d.ts +0 -2
  67. package/dist/cjs/api/resources/summary/exports.d.ts +1 -0
  68. package/dist/cjs/api/resources/summary/exports.js +1 -0
  69. package/dist/cjs/api/resources/summary/index.d.ts +1 -0
  70. package/dist/cjs/api/resources/summary/index.js +1 -0
  71. package/dist/cjs/api/resources/summary/resources/index.d.ts +3 -0
  72. package/dist/cjs/api/resources/{authtoken → summary}/resources/index.js +4 -3
  73. package/dist/cjs/api/resources/summary/resources/templates/client/Client.d.ts +101 -0
  74. package/dist/cjs/api/resources/summary/resources/templates/client/Client.js +366 -0
  75. package/dist/cjs/api/resources/summary/resources/templates/client/requests/index.d.ts +2 -0
  76. package/dist/cjs/api/resources/summary/resources/templates/exports.d.ts +2 -0
  77. package/dist/cjs/api/resources/{authtoken/resources/auth → summary/resources/templates}/exports.js +2 -2
  78. package/dist/cjs/api/resources/{authtoken/resources/auth → summary/resources/templates}/index.d.ts +1 -0
  79. package/dist/cjs/api/resources/{authtoken/resources/auth → summary/resources/templates}/index.js +1 -0
  80. package/dist/cjs/api/resources/{workflows/types/WorkflowsDeleteResponse.d.ts → summary/resources/templates/types/TemplatesDeleteResponse.d.ts} +1 -1
  81. package/dist/cjs/api/resources/summary/{types/SummaryGetTemplateResponse.d.ts → resources/templates/types/TemplatesGetResponse.d.ts} +2 -2
  82. package/dist/cjs/api/resources/summary/{types/SummaryListTemplatesResponse.d.ts → resources/templates/types/TemplatesListResponse.d.ts} +2 -2
  83. package/dist/cjs/api/resources/summary/{types/SummaryUpdateTemplateResponse.d.ts → resources/templates/types/TemplatesUpdateResponse.d.ts} +2 -2
  84. package/dist/cjs/api/resources/summary/resources/templates/types/index.d.ts +4 -0
  85. package/dist/cjs/api/resources/summary/resources/templates/types/index.js +20 -0
  86. package/dist/cjs/api/resources/summary/types/index.d.ts +0 -4
  87. package/dist/cjs/api/resources/summary/types/index.js +0 -4
  88. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.d.ts +0 -1
  89. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.js +0 -4
  90. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.ts +0 -21
  91. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +0 -68
  92. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/index.d.ts +1 -1
  93. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/index.js +0 -15
  94. package/dist/cjs/api/resources/tools/types/index.d.ts +0 -1
  95. package/dist/cjs/api/resources/tools/types/index.js +0 -1
  96. package/dist/cjs/api/resources/workflows/client/Client.d.ts +7 -6
  97. package/dist/cjs/api/resources/workflows/client/Client.js +8 -14
  98. package/dist/{esm/api/resources/workflows/client/requests/WorkflowsGetRequest.d.mts → cjs/api/resources/workflows/client/requests/GetRequest.d.ts} +1 -1
  99. package/dist/cjs/api/resources/workflows/client/requests/{WorkflowsGetRequest.d.ts → ListRequest.d.ts} +1 -1
  100. package/dist/cjs/api/resources/workflows/client/requests/index.d.ts +2 -2
  101. package/dist/cjs/api/resources/workflows/errors/GatewayTimeoutError.d.ts +5 -0
  102. package/dist/cjs/api/resources/workflows/errors/GatewayTimeoutError.js +54 -0
  103. package/dist/cjs/api/resources/workflows/errors/index.d.ts +1 -0
  104. package/dist/cjs/api/resources/workflows/errors/index.js +1 -0
  105. package/dist/{esm/api/resources/workflows/types/WorkflowsDeleteResponse.d.mts → cjs/api/resources/workflows/types/DeleteResponse.d.ts} +1 -1
  106. package/dist/cjs/api/resources/workflows/types/{WorkflowsGetResponse.d.ts → GetResponse.d.ts} +1 -1
  107. package/dist/cjs/api/resources/workflows/types/{WorkflowsUpdateResponse.d.ts → UpdateResponse.d.ts} +1 -1
  108. package/dist/cjs/api/resources/workflows/types/index.d.ts +3 -3
  109. package/dist/cjs/api/resources/workflows/types/index.js +3 -3
  110. package/dist/cjs/auth/OAuthAuthProvider.js +2 -2
  111. package/dist/cjs/version.d.ts +1 -1
  112. package/dist/cjs/version.js +1 -1
  113. package/dist/esm/BaseClient.mjs +2 -2
  114. package/dist/esm/api/resources/agent/client/Client.d.mts +5 -5
  115. package/dist/esm/api/resources/agent/client/Client.mjs +2 -2
  116. package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.d.mts +1 -1
  117. package/dist/esm/api/resources/agent/client/requests/AgentStreamChatRequest.d.mts +1 -1
  118. package/dist/esm/api/resources/agent/client/requests/{AgentGetChatMessagesRequest.d.mts → GetChatMessagesRequest.d.mts} +3 -3
  119. package/dist/{cjs/api/resources/agent/client/requests/AgentListRequest.d.ts → esm/api/resources/agent/client/requests/ListRequest.d.mts} +1 -1
  120. package/dist/esm/api/resources/agent/client/requests/index.d.mts +2 -2
  121. package/dist/esm/api/resources/agent/types/DeleteResponse.d.mts +4 -0
  122. package/dist/esm/api/resources/agent/types/GetChatMessagesRequestOrder.d.mts +5 -0
  123. package/dist/esm/api/resources/agent/types/{AgentGetChatMessagesRequestOrder.mjs → GetChatMessagesRequestOrder.mjs} +1 -1
  124. package/dist/esm/api/resources/agent/types/GetChatMessagesRequestRole.d.mts +7 -0
  125. package/dist/esm/api/resources/agent/types/{AgentGetChatMessagesRequestRole.mjs → GetChatMessagesRequestRole.mjs} +1 -1
  126. package/dist/esm/api/resources/agent/types/{AgentGetChatMessagesResponse.d.mts → GetChatMessagesResponse.d.mts} +1 -1
  127. package/dist/esm/api/resources/agent/types/{AgentListResponse.d.mts → ListResponse.d.mts} +1 -1
  128. package/dist/esm/api/resources/agent/types/index.d.mts +5 -5
  129. package/dist/esm/api/resources/agent/types/index.mjs +5 -5
  130. package/dist/esm/api/resources/authtoken/client/Client.d.mts +26 -4
  131. package/dist/esm/api/resources/authtoken/client/Client.mjs +76 -4
  132. package/dist/esm/api/resources/authtoken/client/index.d.mts +1 -1
  133. package/dist/esm/api/resources/authtoken/client/index.mjs +1 -1
  134. package/dist/esm/api/resources/authtoken/exports.d.mts +0 -1
  135. package/dist/esm/api/resources/authtoken/exports.mjs +0 -1
  136. package/dist/esm/api/resources/authtoken/index.d.mts +0 -1
  137. package/dist/esm/api/resources/authtoken/index.mjs +0 -1
  138. package/dist/esm/api/resources/construe/client/Client.d.mts +35 -35
  139. package/dist/esm/api/resources/construe/client/Client.mjs +43 -43
  140. package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesSystemsCodesystemExportRequest.d.mts → DeleteCodeSystemRequest.d.mts} +1 -1
  141. package/dist/{cjs/api/resources/construe/client/requests/GetConstrueCodesSystemsCodesystemExportRequest.d.ts → esm/api/resources/construe/client/requests/ExportCodeSystemRequest.d.mts} +1 -1
  142. package/dist/{cjs/api/resources/construe/client/requests/GetConstrueCodesCodesystemCodeIdRequest.d.ts → esm/api/resources/construe/client/requests/GetCodeRequest.d.mts} +1 -1
  143. package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesSystemsCodesystemRequest.d.mts → GetCodeSystemRequest.d.mts} +1 -1
  144. package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesCodesystemRequest.d.mts → ListCodesRequest.d.mts} +1 -1
  145. package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesCodesystemSearchSemanticRequest.d.mts → SearchSemanticRequest.d.mts} +1 -1
  146. package/dist/{cjs/api/resources/construe/client/requests/GetConstrueCodesCodesystemSearchTextRequest.d.ts → esm/api/resources/construe/client/requests/SearchTextRequest.d.mts} +1 -1
  147. package/dist/esm/api/resources/construe/client/requests/index.d.mts +7 -7
  148. package/dist/{cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.ts → esm/api/resources/construe/types/UploadCodeSystemResponse.d.mts} +1 -1
  149. package/dist/esm/api/resources/construe/types/index.d.mts +1 -1
  150. package/dist/esm/api/resources/construe/types/index.mjs +1 -1
  151. package/dist/esm/api/resources/fhir/client/Client.d.mts +12 -12
  152. package/dist/esm/api/resources/fhir/client/Client.mjs +6 -6
  153. package/dist/esm/api/resources/fhir/client/requests/{FhirCreateRequest.d.mts → CreateRequest.d.mts} +1 -1
  154. package/dist/{cjs/api/resources/fhir/client/requests/FhirDeleteRequest.d.ts → esm/api/resources/fhir/client/requests/DeleteRequest.d.mts} +1 -1
  155. package/dist/esm/api/resources/fhir/client/requests/{FhirExecuteBundleRequest.d.mts → ExecuteBundleRequest.d.mts} +1 -1
  156. package/dist/esm/api/resources/fhir/client/requests/{FhirPatchRequest.d.mts → PatchRequest.d.mts} +2 -2
  157. package/dist/esm/api/resources/fhir/client/requests/{FhirSearchRequest.d.mts → SearchRequest.d.mts} +1 -1
  158. package/dist/esm/api/resources/fhir/client/requests/{FhirUpsertRequest.d.mts → UpsertRequest.d.mts} +1 -1
  159. package/dist/esm/api/resources/fhir/client/requests/index.d.mts +6 -6
  160. package/dist/esm/api/resources/fhir/types/{FhirPatchRequestBodyItem.d.mts → PatchRequestBodyItem.d.mts} +3 -3
  161. package/dist/esm/api/resources/fhir/types/{FhirPatchRequestBodyItem.mjs → PatchRequestBodyItem.mjs} +4 -4
  162. package/dist/esm/api/resources/fhir/types/SearchResponse.d.mts +2 -0
  163. package/dist/esm/api/resources/fhir/types/index.d.mts +2 -2
  164. package/dist/esm/api/resources/fhir/types/index.mjs +2 -2
  165. package/dist/esm/api/resources/fhirProvider/client/Client.d.mts +2 -2
  166. package/dist/esm/api/resources/fhirProvider/client/Client.mjs +1 -4
  167. package/dist/esm/api/resources/fhirProvider/types/DeleteResponse.d.mts +4 -0
  168. package/dist/esm/api/resources/fhirProvider/types/{FhirProviderRemoveAuthConfigResponse.d.mts → RemoveAuthConfigResponse.d.mts} +1 -1
  169. package/dist/esm/api/resources/fhirProvider/types/index.d.mts +2 -2
  170. package/dist/esm/api/resources/fhirProvider/types/index.mjs +2 -2
  171. package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +4 -4
  172. package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +4 -4
  173. package/dist/esm/api/resources/lang2Fhir/types/{Lang2FhirUploadProfileResponse.d.mts → UploadProfileResponse.d.mts} +1 -1
  174. package/dist/esm/api/resources/lang2Fhir/types/index.d.mts +1 -1
  175. package/dist/esm/api/resources/lang2Fhir/types/index.mjs +1 -1
  176. package/dist/esm/api/resources/summary/client/Client.d.mts +3 -88
  177. package/dist/esm/api/resources/summary/client/Client.mjs +4 -309
  178. package/dist/esm/api/resources/summary/client/requests/index.d.mts +0 -2
  179. package/dist/esm/api/resources/summary/exports.d.mts +1 -0
  180. package/dist/esm/api/resources/summary/exports.mjs +1 -0
  181. package/dist/esm/api/resources/summary/index.d.mts +1 -0
  182. package/dist/esm/api/resources/summary/index.mjs +1 -0
  183. package/dist/esm/api/resources/summary/resources/index.d.mts +3 -0
  184. package/dist/esm/api/resources/summary/resources/index.mjs +3 -0
  185. package/dist/esm/api/resources/summary/resources/templates/client/Client.d.mts +101 -0
  186. package/dist/esm/api/resources/summary/resources/templates/client/Client.mjs +329 -0
  187. package/dist/esm/api/resources/summary/resources/templates/client/requests/index.d.mts +2 -0
  188. package/dist/esm/api/resources/summary/resources/templates/exports.d.mts +2 -0
  189. package/dist/esm/api/resources/{authtoken/resources/auth → summary/resources/templates}/exports.mjs +1 -1
  190. package/dist/esm/api/resources/{authtoken/resources/auth → summary/resources/templates}/index.d.mts +1 -0
  191. package/dist/esm/api/resources/{authtoken/resources/auth → summary/resources/templates}/index.mjs +1 -0
  192. package/dist/esm/api/resources/summary/resources/templates/types/TemplatesDeleteResponse.d.mts +4 -0
  193. package/dist/esm/api/resources/summary/resources/templates/types/TemplatesGetResponse.d.mts +5 -0
  194. package/dist/esm/api/resources/summary/{types/SummaryListTemplatesResponse.d.mts → resources/templates/types/TemplatesListResponse.d.mts} +2 -2
  195. package/dist/esm/api/resources/summary/{types/SummaryUpdateTemplateResponse.d.mts → resources/templates/types/TemplatesUpdateResponse.d.mts} +2 -2
  196. package/dist/esm/api/resources/summary/resources/templates/types/index.d.mts +4 -0
  197. package/dist/esm/api/resources/summary/resources/templates/types/index.mjs +4 -0
  198. package/dist/esm/api/resources/summary/types/index.d.mts +0 -4
  199. package/dist/esm/api/resources/summary/types/index.mjs +0 -4
  200. package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.d.mts +0 -1
  201. package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.mjs +0 -1
  202. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.mts +0 -21
  203. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +0 -68
  204. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.d.mts +1 -1
  205. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.mjs +1 -1
  206. package/dist/esm/api/resources/tools/types/index.d.mts +0 -1
  207. package/dist/esm/api/resources/tools/types/index.mjs +0 -1
  208. package/dist/esm/api/resources/workflows/client/Client.d.mts +7 -6
  209. package/dist/esm/api/resources/workflows/client/Client.mjs +8 -14
  210. package/dist/{cjs/api/resources/workflows/client/requests/WorkflowsListRequest.d.ts → esm/api/resources/workflows/client/requests/GetRequest.d.mts} +1 -1
  211. package/dist/esm/api/resources/workflows/client/requests/{WorkflowsListRequest.d.mts → ListRequest.d.mts} +1 -1
  212. package/dist/esm/api/resources/workflows/client/requests/index.d.mts +2 -2
  213. package/dist/esm/api/resources/workflows/errors/GatewayTimeoutError.d.mts +5 -0
  214. package/dist/esm/api/resources/workflows/errors/GatewayTimeoutError.mjs +17 -0
  215. package/dist/esm/api/resources/workflows/errors/index.d.mts +1 -0
  216. package/dist/esm/api/resources/workflows/errors/index.mjs +1 -0
  217. package/dist/esm/api/resources/workflows/types/DeleteResponse.d.mts +4 -0
  218. package/dist/esm/api/resources/workflows/types/{WorkflowsGetResponse.d.mts → GetResponse.d.mts} +1 -1
  219. package/dist/esm/api/resources/workflows/types/{WorkflowsUpdateResponse.d.mts → UpdateResponse.d.mts} +1 -1
  220. package/dist/esm/api/resources/workflows/types/index.d.mts +3 -3
  221. package/dist/esm/api/resources/workflows/types/index.mjs +3 -3
  222. package/dist/esm/auth/OAuthAuthProvider.mjs +2 -2
  223. package/dist/esm/version.d.mts +1 -1
  224. package/dist/esm/version.mjs +1 -1
  225. package/openapi/openapi.json +11397 -0
  226. package/package.json +14 -12
  227. package/reference.md +140 -214
  228. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.ts +0 -5
  229. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestRole.d.ts +0 -7
  230. package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.d.ts +0 -34
  231. package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.js +0 -121
  232. package/dist/cjs/api/resources/authtoken/resources/auth/exports.d.ts +0 -2
  233. package/dist/cjs/api/resources/authtoken/resources/index.d.ts +0 -2
  234. package/dist/cjs/api/resources/fhir/types/FhirSearchResponse.d.ts +0 -2
  235. package/dist/cjs/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.ts +0 -4
  236. package/dist/cjs/api/resources/summary/types/SummaryDeleteTemplateResponse.d.ts +0 -4
  237. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.ts +0 -12
  238. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.d.ts +0 -1
  239. package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.d.ts +0 -10
  240. package/dist/cjs/api/resources/workflows/types/WorkflowsGetResponse.js +0 -3
  241. package/dist/cjs/api/resources/workflows/types/WorkflowsUpdateResponse.js +0 -3
  242. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.mts +0 -5
  243. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestRole.d.mts +0 -7
  244. package/dist/esm/api/resources/authtoken/resources/auth/client/Client.d.mts +0 -34
  245. package/dist/esm/api/resources/authtoken/resources/auth/client/Client.mjs +0 -84
  246. package/dist/esm/api/resources/authtoken/resources/auth/exports.d.mts +0 -2
  247. package/dist/esm/api/resources/authtoken/resources/index.d.mts +0 -2
  248. package/dist/esm/api/resources/authtoken/resources/index.mjs +0 -2
  249. package/dist/esm/api/resources/fhir/types/FhirSearchResponse.d.mts +0 -2
  250. package/dist/esm/api/resources/fhirProvider/types/FhirProviderDeleteResponse.d.mts +0 -4
  251. package/dist/esm/api/resources/summary/types/SummaryDeleteTemplateResponse.d.mts +0 -4
  252. package/dist/esm/api/resources/summary/types/SummaryGetTemplateResponse.d.mts +0 -5
  253. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.mts +0 -12
  254. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.d.mts +0 -1
  255. package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.d.mts +0 -10
  256. package/dist/esm/api/resources/workflows/types/WorkflowsGetResponse.mjs +0 -2
  257. package/dist/esm/api/resources/workflows/types/WorkflowsUpdateResponse.mjs +0 -2
  258. /package/dist/cjs/api/resources/agent/client/requests/{AgentGetChatMessagesRequest.js → GetChatMessagesRequest.js} +0 -0
  259. /package/dist/cjs/api/resources/agent/client/requests/{AgentListRequest.js → ListRequest.js} +0 -0
  260. /package/dist/cjs/api/resources/agent/types/{AgentDeleteResponse.js → DeleteResponse.js} +0 -0
  261. /package/dist/cjs/api/resources/agent/types/{AgentGetChatMessagesResponse.js → GetChatMessagesResponse.js} +0 -0
  262. /package/dist/cjs/api/resources/agent/types/{AgentListResponse.js → ListResponse.js} +0 -0
  263. /package/dist/cjs/api/resources/authtoken/{resources/auth/client → client}/requests/ClientCredentialsRequest.d.ts +0 -0
  264. /package/dist/cjs/api/resources/authtoken/{resources/auth/client → client}/requests/ClientCredentialsRequest.js +0 -0
  265. /package/dist/cjs/api/resources/authtoken/{resources/auth/client → client}/requests/index.d.ts +0 -0
  266. /package/dist/cjs/api/resources/authtoken/{resources/auth/client → client}/requests/index.js +0 -0
  267. /package/dist/cjs/api/resources/construe/client/requests/{DeleteConstrueCodesSystemsCodesystemRequest.js → DeleteCodeSystemRequest.js} +0 -0
  268. /package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesCodesystemCodeIdRequest.js → ExportCodeSystemRequest.js} +0 -0
  269. /package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesCodesystemRequest.js → GetCodeRequest.js} +0 -0
  270. /package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesCodesystemSearchSemanticRequest.js → GetCodeSystemRequest.js} +0 -0
  271. /package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesCodesystemSearchTextRequest.js → ListCodesRequest.js} +0 -0
  272. /package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesSystemsCodesystemExportRequest.js → SearchSemanticRequest.js} +0 -0
  273. /package/dist/cjs/api/resources/construe/client/requests/{GetConstrueCodesSystemsCodesystemRequest.js → SearchTextRequest.js} +0 -0
  274. /package/dist/cjs/api/resources/construe/types/{ConstrueUploadCodeSystemResponse.js → UploadCodeSystemResponse.js} +0 -0
  275. /package/dist/cjs/api/resources/fhir/client/requests/{FhirCreateRequest.js → CreateRequest.js} +0 -0
  276. /package/dist/cjs/api/resources/fhir/client/requests/{FhirDeleteRequest.js → DeleteRequest.js} +0 -0
  277. /package/dist/cjs/api/resources/fhir/client/requests/{FhirExecuteBundleRequest.js → ExecuteBundleRequest.js} +0 -0
  278. /package/dist/cjs/api/resources/fhir/client/requests/{FhirPatchRequest.js → PatchRequest.js} +0 -0
  279. /package/dist/cjs/api/resources/fhir/client/requests/{FhirSearchRequest.js → SearchRequest.js} +0 -0
  280. /package/dist/cjs/api/resources/fhir/client/requests/{FhirUpsertRequest.js → UpsertRequest.js} +0 -0
  281. /package/dist/cjs/api/resources/fhir/types/{FhirSearchResponse.js → SearchResponse.js} +0 -0
  282. /package/dist/cjs/api/resources/fhirProvider/types/{FhirProviderDeleteResponse.js → DeleteResponse.js} +0 -0
  283. /package/dist/cjs/api/resources/fhirProvider/types/{FhirProviderRemoveAuthConfigResponse.js → RemoveAuthConfigResponse.js} +0 -0
  284. /package/dist/cjs/api/resources/lang2Fhir/types/{Lang2FhirUploadProfileResponse.js → UploadProfileResponse.js} +0 -0
  285. /package/dist/cjs/api/resources/{authtoken/resources/auth → summary/resources/templates}/client/index.d.ts +0 -0
  286. /package/dist/cjs/api/resources/{authtoken/resources/auth → summary/resources/templates}/client/index.js +0 -0
  287. /package/dist/cjs/api/resources/summary/{client → resources/templates/client}/requests/CreateSummaryTemplateRequest.d.ts +0 -0
  288. /package/dist/cjs/api/resources/summary/{client → resources/templates/client}/requests/CreateSummaryTemplateRequest.js +0 -0
  289. /package/dist/cjs/api/resources/summary/{client → resources/templates/client}/requests/UpdateSummaryTemplateRequest.d.ts +0 -0
  290. /package/dist/cjs/api/resources/summary/{client → resources/templates/client}/requests/UpdateSummaryTemplateRequest.js +0 -0
  291. /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools → summary/resources/templates}/client/requests/index.js +0 -0
  292. /package/dist/cjs/api/resources/summary/{types/SummaryDeleteTemplateResponse.js → resources/templates/types/TemplatesDeleteResponse.js} +0 -0
  293. /package/dist/cjs/api/resources/summary/{types/SummaryGetTemplateResponse.js → resources/templates/types/TemplatesGetResponse.js} +0 -0
  294. /package/dist/cjs/api/resources/summary/{types/SummaryListTemplatesResponse.js → resources/templates/types/TemplatesListResponse.js} +0 -0
  295. /package/dist/cjs/api/resources/summary/{types/SummaryUpdateTemplateResponse.js → resources/templates/types/TemplatesUpdateResponse.js} +0 -0
  296. /package/dist/cjs/api/resources/{tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.js → workflows/client/requests/GetRequest.js} +0 -0
  297. /package/dist/cjs/api/resources/{tools/types/McpServerToolCallResponse.js → workflows/client/requests/ListRequest.js} +0 -0
  298. /package/dist/cjs/api/resources/workflows/{client/requests/WorkflowsGetRequest.js → types/DeleteResponse.js} +0 -0
  299. /package/dist/cjs/api/resources/workflows/{client/requests/WorkflowsListRequest.js → types/GetResponse.js} +0 -0
  300. /package/dist/cjs/api/resources/workflows/types/{WorkflowsDeleteResponse.js → UpdateResponse.js} +0 -0
  301. /package/dist/esm/api/resources/agent/client/requests/{AgentGetChatMessagesRequest.mjs → GetChatMessagesRequest.mjs} +0 -0
  302. /package/dist/esm/api/resources/agent/client/requests/{AgentListRequest.mjs → ListRequest.mjs} +0 -0
  303. /package/dist/esm/api/resources/agent/types/{AgentDeleteResponse.mjs → DeleteResponse.mjs} +0 -0
  304. /package/dist/esm/api/resources/agent/types/{AgentGetChatMessagesResponse.mjs → GetChatMessagesResponse.mjs} +0 -0
  305. /package/dist/esm/api/resources/agent/types/{AgentListResponse.mjs → ListResponse.mjs} +0 -0
  306. /package/dist/esm/api/resources/authtoken/{resources/auth/client → client}/requests/ClientCredentialsRequest.d.mts +0 -0
  307. /package/dist/esm/api/resources/authtoken/{resources/auth/client → client}/requests/ClientCredentialsRequest.mjs +0 -0
  308. /package/dist/esm/api/resources/authtoken/{resources/auth/client → client}/requests/index.d.mts +0 -0
  309. /package/dist/esm/api/resources/authtoken/{resources/auth/client → client}/requests/index.mjs +0 -0
  310. /package/dist/esm/api/resources/construe/client/requests/{DeleteConstrueCodesSystemsCodesystemRequest.mjs → DeleteCodeSystemRequest.mjs} +0 -0
  311. /package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesCodesystemCodeIdRequest.mjs → ExportCodeSystemRequest.mjs} +0 -0
  312. /package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesCodesystemRequest.mjs → GetCodeRequest.mjs} +0 -0
  313. /package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesCodesystemSearchSemanticRequest.mjs → GetCodeSystemRequest.mjs} +0 -0
  314. /package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesCodesystemSearchTextRequest.mjs → ListCodesRequest.mjs} +0 -0
  315. /package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesSystemsCodesystemExportRequest.mjs → SearchSemanticRequest.mjs} +0 -0
  316. /package/dist/esm/api/resources/construe/client/requests/{GetConstrueCodesSystemsCodesystemRequest.mjs → SearchTextRequest.mjs} +0 -0
  317. /package/dist/esm/api/resources/construe/types/{ConstrueUploadCodeSystemResponse.mjs → UploadCodeSystemResponse.mjs} +0 -0
  318. /package/dist/esm/api/resources/fhir/client/requests/{FhirCreateRequest.mjs → CreateRequest.mjs} +0 -0
  319. /package/dist/esm/api/resources/fhir/client/requests/{FhirDeleteRequest.mjs → DeleteRequest.mjs} +0 -0
  320. /package/dist/esm/api/resources/fhir/client/requests/{FhirExecuteBundleRequest.mjs → ExecuteBundleRequest.mjs} +0 -0
  321. /package/dist/esm/api/resources/fhir/client/requests/{FhirPatchRequest.mjs → PatchRequest.mjs} +0 -0
  322. /package/dist/esm/api/resources/fhir/client/requests/{FhirSearchRequest.mjs → SearchRequest.mjs} +0 -0
  323. /package/dist/esm/api/resources/fhir/client/requests/{FhirUpsertRequest.mjs → UpsertRequest.mjs} +0 -0
  324. /package/dist/esm/api/resources/fhir/types/{FhirSearchResponse.mjs → SearchResponse.mjs} +0 -0
  325. /package/dist/esm/api/resources/fhirProvider/types/{FhirProviderDeleteResponse.mjs → DeleteResponse.mjs} +0 -0
  326. /package/dist/esm/api/resources/fhirProvider/types/{FhirProviderRemoveAuthConfigResponse.mjs → RemoveAuthConfigResponse.mjs} +0 -0
  327. /package/dist/esm/api/resources/lang2Fhir/types/{Lang2FhirUploadProfileResponse.mjs → UploadProfileResponse.mjs} +0 -0
  328. /package/dist/esm/api/resources/{authtoken/resources/auth → summary/resources/templates}/client/index.d.mts +0 -0
  329. /package/dist/esm/api/resources/{authtoken/resources/auth → summary/resources/templates}/client/index.mjs +0 -0
  330. /package/dist/esm/api/resources/summary/{client → resources/templates/client}/requests/CreateSummaryTemplateRequest.d.mts +0 -0
  331. /package/dist/esm/api/resources/summary/{client → resources/templates/client}/requests/CreateSummaryTemplateRequest.mjs +0 -0
  332. /package/dist/esm/api/resources/summary/{client → resources/templates/client}/requests/UpdateSummaryTemplateRequest.d.mts +0 -0
  333. /package/dist/esm/api/resources/summary/{client → resources/templates/client}/requests/UpdateSummaryTemplateRequest.mjs +0 -0
  334. /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools → summary/resources/templates}/client/requests/index.mjs +0 -0
  335. /package/dist/esm/api/resources/summary/{types/SummaryDeleteTemplateResponse.mjs → resources/templates/types/TemplatesDeleteResponse.mjs} +0 -0
  336. /package/dist/esm/api/resources/summary/{types/SummaryGetTemplateResponse.mjs → resources/templates/types/TemplatesGetResponse.mjs} +0 -0
  337. /package/dist/esm/api/resources/summary/{types/SummaryListTemplatesResponse.mjs → resources/templates/types/TemplatesListResponse.mjs} +0 -0
  338. /package/dist/esm/api/resources/summary/{types/SummaryUpdateTemplateResponse.mjs → resources/templates/types/TemplatesUpdateResponse.mjs} +0 -0
  339. /package/dist/esm/api/resources/{tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.mjs → workflows/client/requests/GetRequest.mjs} +0 -0
  340. /package/dist/esm/api/resources/{tools/types/McpServerToolCallResponse.mjs → workflows/client/requests/ListRequest.mjs} +0 -0
  341. /package/dist/esm/api/resources/workflows/{client/requests/WorkflowsGetRequest.mjs → types/DeleteResponse.mjs} +0 -0
  342. /package/dist/esm/api/resources/workflows/{client/requests/WorkflowsListRequest.mjs → types/GetResponse.mjs} +0 -0
  343. /package/dist/esm/api/resources/workflows/types/{WorkflowsDeleteResponse.mjs → UpdateResponse.mjs} +0 -0
@@ -13,7 +13,7 @@ export declare class WorkflowsClient {
13
13
  /**
14
14
  * Retrieves all workflow definitions for the authenticated user
15
15
  *
16
- * @param {phenoml.workflows.WorkflowsListRequest} request
16
+ * @param {phenoml.workflows.ListRequest} request
17
17
  * @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
18
18
  *
19
19
  * @throws {@link phenoml.workflows.UnauthorizedError}
@@ -25,7 +25,7 @@ export declare class WorkflowsClient {
25
25
  * verbose: true
26
26
  * })
27
27
  */
28
- list(request?: phenoml.workflows.WorkflowsListRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<phenoml.workflows.ListWorkflowsResponse>;
28
+ list(request?: phenoml.workflows.ListRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<phenoml.workflows.ListWorkflowsResponse>;
29
29
  private __list;
30
30
  /**
31
31
  * Creates a new workflow definition with graph generation from workflow instructions
@@ -58,7 +58,7 @@ export declare class WorkflowsClient {
58
58
  * Retrieves a workflow definition by its ID
59
59
  *
60
60
  * @param {string} id - ID of the workflow to retrieve
61
- * @param {phenoml.workflows.WorkflowsGetRequest} request
61
+ * @param {phenoml.workflows.GetRequest} request
62
62
  * @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
63
63
  *
64
64
  * @throws {@link phenoml.workflows.UnauthorizedError}
@@ -71,7 +71,7 @@ export declare class WorkflowsClient {
71
71
  * verbose: true
72
72
  * })
73
73
  */
74
- get(id: string, request?: phenoml.workflows.WorkflowsGetRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<phenoml.workflows.WorkflowsGetResponse>;
74
+ get(id: string, request?: phenoml.workflows.GetRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<phenoml.workflows.GetResponse>;
75
75
  private __get;
76
76
  /**
77
77
  * Updates an existing workflow definition
@@ -100,7 +100,7 @@ export declare class WorkflowsClient {
100
100
  * fhir_provider_id: "550e8400-e29b-41d4-a716-446655440000"
101
101
  * })
102
102
  */
103
- update(id: string, request: phenoml.workflows.UpdateWorkflowRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<phenoml.workflows.WorkflowsUpdateResponse>;
103
+ update(id: string, request: phenoml.workflows.UpdateWorkflowRequest, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<phenoml.workflows.UpdateResponse>;
104
104
  private __update;
105
105
  /**
106
106
  * Deletes a workflow definition by its ID
@@ -116,7 +116,7 @@ export declare class WorkflowsClient {
116
116
  * @example
117
117
  * await client.workflows.delete("id")
118
118
  */
119
- delete(id: string, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<phenoml.workflows.WorkflowsDeleteResponse>;
119
+ delete(id: string, requestOptions?: WorkflowsClient.RequestOptions): core.HttpResponsePromise<phenoml.workflows.DeleteResponse>;
120
120
  private __delete;
121
121
  /**
122
122
  * Executes a workflow with provided input data and returns results
@@ -130,6 +130,7 @@ export declare class WorkflowsClient {
130
130
  * @throws {@link phenoml.workflows.ForbiddenError}
131
131
  * @throws {@link phenoml.workflows.NotFoundError}
132
132
  * @throws {@link phenoml.workflows.InternalServerError}
133
+ * @throws {@link phenoml.workflows.GatewayTimeoutError}
133
134
  *
134
135
  * @example
135
136
  * await client.workflows.execute("7a8b9c0d-1234-5678-abcd-ef9876543210", {
@@ -69,7 +69,7 @@ class WorkflowsClient {
69
69
  /**
70
70
  * Retrieves all workflow definitions for the authenticated user
71
71
  *
72
- * @param {phenoml.workflows.WorkflowsListRequest} request
72
+ * @param {phenoml.workflows.ListRequest} request
73
73
  * @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
74
74
  *
75
75
  * @throws {@link phenoml.workflows.UnauthorizedError}
@@ -219,7 +219,7 @@ class WorkflowsClient {
219
219
  * Retrieves a workflow definition by its ID
220
220
  *
221
221
  * @param {string} id - ID of the workflow to retrieve
222
- * @param {phenoml.workflows.WorkflowsGetRequest} request
222
+ * @param {phenoml.workflows.GetRequest} request
223
223
  * @param {WorkflowsClient.RequestOptions} requestOptions - Request-specific configuration.
224
224
  *
225
225
  * @throws {@link phenoml.workflows.UnauthorizedError}
@@ -260,10 +260,7 @@ class WorkflowsClient {
260
260
  logging: this._options.logging,
261
261
  });
262
262
  if (_response.ok) {
263
- return {
264
- data: _response.body,
265
- rawResponse: _response.rawResponse,
266
- };
263
+ return { data: _response.body, rawResponse: _response.rawResponse };
267
264
  }
268
265
  if (_response.error.reason === "status-code") {
269
266
  switch (_response.error.statusCode) {
@@ -344,10 +341,7 @@ class WorkflowsClient {
344
341
  logging: this._options.logging,
345
342
  });
346
343
  if (_response.ok) {
347
- return {
348
- data: _response.body,
349
- rawResponse: _response.rawResponse,
350
- };
344
+ return { data: _response.body, rawResponse: _response.rawResponse };
351
345
  }
352
346
  if (_response.error.reason === "status-code") {
353
347
  switch (_response.error.statusCode) {
@@ -406,10 +400,7 @@ class WorkflowsClient {
406
400
  logging: this._options.logging,
407
401
  });
408
402
  if (_response.ok) {
409
- return {
410
- data: _response.body,
411
- rawResponse: _response.rawResponse,
412
- };
403
+ return { data: _response.body, rawResponse: _response.rawResponse };
413
404
  }
414
405
  if (_response.error.reason === "status-code") {
415
406
  switch (_response.error.statusCode) {
@@ -444,6 +435,7 @@ class WorkflowsClient {
444
435
  * @throws {@link phenoml.workflows.ForbiddenError}
445
436
  * @throws {@link phenoml.workflows.NotFoundError}
446
437
  * @throws {@link phenoml.workflows.InternalServerError}
438
+ * @throws {@link phenoml.workflows.GatewayTimeoutError}
447
439
  *
448
440
  * @example
449
441
  * await client.workflows.execute("7a8b9c0d-1234-5678-abcd-ef9876543210", {
@@ -505,6 +497,8 @@ class WorkflowsClient {
505
497
  throw new phenoml.workflows.NotFoundError(_response.error.body, _response.rawResponse);
506
498
  case 500:
507
499
  throw new phenoml.workflows.InternalServerError(_response.error.body, _response.rawResponse);
500
+ case 504:
501
+ throw new phenoml.workflows.GatewayTimeoutError(_response.error.body, _response.rawResponse);
508
502
  default:
509
503
  throw new errors.phenomlError({
510
504
  statusCode: _response.error.statusCode,
@@ -4,7 +4,7 @@
4
4
  * verbose: true
5
5
  * }
6
6
  */
7
- export interface WorkflowsGetRequest {
7
+ export interface GetRequest {
8
8
  /** If true, includes full workflow implementation details in workflow_details field */
9
9
  verbose?: boolean;
10
10
  }
@@ -4,7 +4,7 @@
4
4
  * verbose: true
5
5
  * }
6
6
  */
7
- export interface WorkflowsGetRequest {
7
+ export interface ListRequest {
8
8
  /** If true, includes full workflow implementation details in workflow_details field */
9
9
  verbose?: boolean;
10
10
  }
@@ -1,5 +1,5 @@
1
1
  export type { CreateWorkflowRequest } from "./CreateWorkflowRequest.js";
2
2
  export type { ExecuteWorkflowRequest } from "./ExecuteWorkflowRequest.js";
3
+ export type { GetRequest } from "./GetRequest.js";
4
+ export type { ListRequest } from "./ListRequest.js";
3
5
  export type { UpdateWorkflowRequest } from "./UpdateWorkflowRequest.js";
4
- export type { WorkflowsGetRequest } from "./WorkflowsGetRequest.js";
5
- export type { WorkflowsListRequest } from "./WorkflowsListRequest.js";
@@ -0,0 +1,5 @@
1
+ import type * as core from "../../../../core/index.js";
2
+ import * as errors from "../../../../errors/index.js";
3
+ export declare class GatewayTimeoutError extends errors.phenomlError {
4
+ constructor(body?: unknown, rawResponse?: core.RawResponse);
5
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __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
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.GatewayTimeoutError = void 0;
38
+ const errors = __importStar(require("../../../../errors/index.js"));
39
+ class GatewayTimeoutError extends errors.phenomlError {
40
+ constructor(body, rawResponse) {
41
+ super({
42
+ message: "GatewayTimeoutError",
43
+ statusCode: 504,
44
+ body: body,
45
+ rawResponse: rawResponse,
46
+ });
47
+ Object.setPrototypeOf(this, new.target.prototype);
48
+ if (Error.captureStackTrace) {
49
+ Error.captureStackTrace(this, this.constructor);
50
+ }
51
+ this.name = this.constructor.name;
52
+ }
53
+ }
54
+ exports.GatewayTimeoutError = GatewayTimeoutError;
@@ -1,5 +1,6 @@
1
1
  export * from "./BadRequestError.js";
2
2
  export * from "./ForbiddenError.js";
3
+ export * from "./GatewayTimeoutError.js";
3
4
  export * from "./InternalServerError.js";
4
5
  export * from "./NotFoundError.js";
5
6
  export * from "./UnauthorizedError.js";
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./BadRequestError.js"), exports);
18
18
  __exportStar(require("./ForbiddenError.js"), exports);
19
+ __exportStar(require("./GatewayTimeoutError.js"), exports);
19
20
  __exportStar(require("./InternalServerError.js"), exports);
20
21
  __exportStar(require("./NotFoundError.js"), exports);
21
22
  __exportStar(require("./UnauthorizedError.js"), exports);
@@ -1,4 +1,4 @@
1
- export interface WorkflowsDeleteResponse {
1
+ export interface DeleteResponse {
2
2
  success?: boolean | undefined;
3
3
  message?: string | undefined;
4
4
  }
@@ -1,5 +1,5 @@
1
1
  import type * as phenoml from "../../../index.js";
2
- export interface WorkflowsGetResponse {
2
+ export interface GetResponse {
3
3
  success?: boolean | undefined;
4
4
  workflow?: phenoml.workflows.WorkflowResponse | undefined;
5
5
  /** Only included when verbose=true - contains full implementation details */
@@ -1,5 +1,5 @@
1
1
  import type * as phenoml from "../../../index.js";
2
- export interface WorkflowsUpdateResponse {
2
+ export interface UpdateResponse {
3
3
  success?: boolean | undefined;
4
4
  message?: string | undefined;
5
5
  /** Simplified workflow response with only essential step information */
@@ -1,17 +1,17 @@
1
1
  export * from "./CreateWorkflowResponse.js";
2
2
  export * from "./DecisionNodeDefinition.js";
3
+ export * from "./DeleteResponse.js";
3
4
  export * from "./ExecuteWorkflowResponse.js";
5
+ export * from "./GetResponse.js";
4
6
  export * from "./Lang2FhirCreateDefinition.js";
5
7
  export * from "./Lang2FhirSearchDefinition.js";
6
8
  export * from "./ListWorkflowsResponse.js";
7
9
  export * from "./StepOperation.js";
8
10
  export * from "./SubWorkflowDefinition.js";
11
+ export * from "./UpdateResponse.js";
9
12
  export * from "./WorkflowConfig.js";
10
13
  export * from "./WorkflowDefinition.js";
11
14
  export * from "./WorkflowGraph.js";
12
15
  export * from "./WorkflowResponse.js";
13
16
  export * from "./WorkflowStep.js";
14
17
  export * from "./WorkflowStepSummary.js";
15
- export * from "./WorkflowsDeleteResponse.js";
16
- export * from "./WorkflowsGetResponse.js";
17
- export * from "./WorkflowsUpdateResponse.js";
@@ -16,18 +16,18 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./CreateWorkflowResponse.js"), exports);
18
18
  __exportStar(require("./DecisionNodeDefinition.js"), exports);
19
+ __exportStar(require("./DeleteResponse.js"), exports);
19
20
  __exportStar(require("./ExecuteWorkflowResponse.js"), exports);
21
+ __exportStar(require("./GetResponse.js"), exports);
20
22
  __exportStar(require("./Lang2FhirCreateDefinition.js"), exports);
21
23
  __exportStar(require("./Lang2FhirSearchDefinition.js"), exports);
22
24
  __exportStar(require("./ListWorkflowsResponse.js"), exports);
23
25
  __exportStar(require("./StepOperation.js"), exports);
24
26
  __exportStar(require("./SubWorkflowDefinition.js"), exports);
27
+ __exportStar(require("./UpdateResponse.js"), exports);
25
28
  __exportStar(require("./WorkflowConfig.js"), exports);
26
29
  __exportStar(require("./WorkflowDefinition.js"), exports);
27
30
  __exportStar(require("./WorkflowGraph.js"), exports);
28
31
  __exportStar(require("./WorkflowResponse.js"), exports);
29
32
  __exportStar(require("./WorkflowStep.js"), exports);
30
33
  __exportStar(require("./WorkflowStepSummary.js"), exports);
31
- __exportStar(require("./WorkflowsDeleteResponse.js"), exports);
32
- __exportStar(require("./WorkflowsGetResponse.js"), exports);
33
- __exportStar(require("./WorkflowsUpdateResponse.js"), exports);
@@ -44,7 +44,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
44
44
  };
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
46
  exports.OAuthTokenOverrideAuthProvider = exports.OAuthAuthProvider = void 0;
47
- const Client_js_1 = require("../api/resources/authtoken/resources/auth/client/Client.js");
47
+ const Client_js_1 = require("../api/resources/authtoken/client/Client.js");
48
48
  const core = __importStar(require("../core/index.js"));
49
49
  const errors = __importStar(require("../errors/index.js"));
50
50
  const CLIENT_ID_PARAM = "clientId";
@@ -59,7 +59,7 @@ const BUFFER_IN_MINUTES = 2;
59
59
  class OAuthAuthProvider {
60
60
  constructor(options) {
61
61
  this.options = options;
62
- this.authClient = new Client_js_1.AuthClient(options);
62
+ this.authClient = new Client_js_1.AuthtokenClient(options);
63
63
  this.expiresAt = new Date();
64
64
  }
65
65
  static canCreate(options) {
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "14.0.0";
1
+ export declare const SDK_VERSION = "16.0.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "14.0.0";
4
+ exports.SDK_VERSION = "16.0.0";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "phenoml",
9
- "X-Fern-SDK-Version": "14.0.0",
10
- "User-Agent": "phenoml/14.0.0",
9
+ "X-Fern-SDK-Version": "16.0.0",
10
+ "User-Agent": "phenoml/16.0.0",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -38,7 +38,7 @@ export declare class AgentClient {
38
38
  /**
39
39
  * Retrieves a list of PhenoAgents belonging to the authenticated user
40
40
  *
41
- * @param {phenoml.agent.AgentListRequest} request
41
+ * @param {phenoml.agent.ListRequest} request
42
42
  * @param {AgentClient.RequestOptions} requestOptions - Request-specific configuration.
43
43
  *
44
44
  * @throws {@link phenoml.agent.UnauthorizedError}
@@ -50,7 +50,7 @@ export declare class AgentClient {
50
50
  * tags: "tags"
51
51
  * })
52
52
  */
53
- list(request?: phenoml.agent.AgentListRequest, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentListResponse>;
53
+ list(request?: phenoml.agent.ListRequest, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.ListResponse>;
54
54
  private __list;
55
55
  /**
56
56
  * Retrieves a specific agent by its ID
@@ -106,7 +106,7 @@ export declare class AgentClient {
106
106
  * @example
107
107
  * await client.agent.delete("id")
108
108
  */
109
- delete(id: string, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentDeleteResponse>;
109
+ delete(id: string, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.DeleteResponse>;
110
110
  private __delete;
111
111
  /**
112
112
  * Patches an existing agent's configuration
@@ -176,7 +176,7 @@ export declare class AgentClient {
176
176
  /**
177
177
  * Retrieves a list of chat messages for a given chat session
178
178
  *
179
- * @param {phenoml.agent.AgentGetChatMessagesRequest} request
179
+ * @param {phenoml.agent.GetChatMessagesRequest} request
180
180
  * @param {AgentClient.RequestOptions} requestOptions - Request-specific configuration.
181
181
  *
182
182
  * @throws {@link phenoml.agent.UnauthorizedError}
@@ -191,6 +191,6 @@ export declare class AgentClient {
191
191
  * order: "asc"
192
192
  * })
193
193
  */
194
- getChatMessages(request: phenoml.agent.AgentGetChatMessagesRequest, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.AgentGetChatMessagesResponse>;
194
+ getChatMessages(request: phenoml.agent.GetChatMessagesRequest, requestOptions?: AgentClient.RequestOptions): core.HttpResponsePromise<phenoml.agent.GetChatMessagesResponse>;
195
195
  private __getChatMessages;
196
196
  }
@@ -104,7 +104,7 @@ export class AgentClient {
104
104
  /**
105
105
  * Retrieves a list of PhenoAgents belonging to the authenticated user
106
106
  *
107
- * @param {phenoml.agent.AgentListRequest} request
107
+ * @param {phenoml.agent.ListRequest} request
108
108
  * @param {AgentClient.RequestOptions} requestOptions - Request-specific configuration.
109
109
  *
110
110
  * @throws {@link phenoml.agent.UnauthorizedError}
@@ -570,7 +570,7 @@ export class AgentClient {
570
570
  /**
571
571
  * Retrieves a list of chat messages for a given chat session
572
572
  *
573
- * @param {phenoml.agent.AgentGetChatMessagesRequest} request
573
+ * @param {phenoml.agent.GetChatMessagesRequest} request
574
574
  * @param {AgentClient.RequestOptions} requestOptions - Request-specific configuration.
575
575
  *
576
576
  * @throws {@link phenoml.agent.UnauthorizedError}
@@ -37,6 +37,6 @@ export interface AgentChatRequest {
37
37
  session_id?: string;
38
38
  /** The ID of the agent to chat with */
39
39
  agent_id: string;
40
- /** Enable enhanced reasoning capabilities, will increase latency but will also improve response quality and reliability. */
40
+ /** Enable enhanced reasoning capabilities. Increases latency but improves response quality and reliability. */
41
41
  enhanced_reasoning?: boolean;
42
42
  }
@@ -27,6 +27,6 @@ export interface AgentStreamChatRequest {
27
27
  session_id?: string;
28
28
  /** The ID of the agent to chat with */
29
29
  agent_id: string;
30
- /** Enable enhanced reasoning capabilities, will increase latency but will also improve response quality and reliability. */
30
+ /** Enable enhanced reasoning capabilities. Increases latency but improves response quality and reliability. */
31
31
  enhanced_reasoning?: boolean;
32
32
  }
@@ -8,7 +8,7 @@ import type * as phenoml from "../../../../index.mjs";
8
8
  * order: "asc"
9
9
  * }
10
10
  */
11
- export interface AgentGetChatMessagesRequest {
11
+ export interface GetChatMessagesRequest {
12
12
  /** Chat session ID */
13
13
  chat_session_id: string;
14
14
  /** Number of messages to return */
@@ -23,7 +23,7 @@ export interface AgentGetChatMessagesRequest {
23
23
  * - `model` - Function/tool call requests from the model
24
24
  * - `function` - Function/tool call results
25
25
  */
26
- role?: phenoml.agent.AgentGetChatMessagesRequestRole;
26
+ role?: phenoml.agent.GetChatMessagesRequestRole;
27
27
  /** Order of messages */
28
- order?: phenoml.agent.AgentGetChatMessagesRequestOrder;
28
+ order?: phenoml.agent.GetChatMessagesRequestOrder;
29
29
  }
@@ -4,7 +4,7 @@
4
4
  * tags: "tags"
5
5
  * }
6
6
  */
7
- export interface AgentListRequest {
7
+ export interface ListRequest {
8
8
  /** Filter by tags */
9
9
  tags?: string;
10
10
  }
@@ -1,4 +1,4 @@
1
1
  export type { AgentChatRequest } from "./AgentChatRequest.mjs";
2
- export type { AgentGetChatMessagesRequest } from "./AgentGetChatMessagesRequest.mjs";
3
- export type { AgentListRequest } from "./AgentListRequest.mjs";
4
2
  export type { AgentStreamChatRequest } from "./AgentStreamChatRequest.mjs";
3
+ export type { GetChatMessagesRequest } from "./GetChatMessagesRequest.mjs";
4
+ export type { ListRequest } from "./ListRequest.mjs";
@@ -0,0 +1,4 @@
1
+ export interface DeleteResponse {
2
+ success?: boolean | undefined;
3
+ message?: string | undefined;
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare const GetChatMessagesRequestOrder: {
2
+ readonly Asc: "asc";
3
+ readonly Desc: "desc";
4
+ };
5
+ export type GetChatMessagesRequestOrder = (typeof GetChatMessagesRequestOrder)[keyof typeof GetChatMessagesRequestOrder];
@@ -1,5 +1,5 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export const AgentGetChatMessagesRequestOrder = {
2
+ export const GetChatMessagesRequestOrder = {
3
3
  Asc: "asc",
4
4
  Desc: "desc",
5
5
  };
@@ -0,0 +1,7 @@
1
+ export declare const GetChatMessagesRequestRole: {
2
+ readonly User: "user";
3
+ readonly Assistant: "assistant";
4
+ readonly Model: "model";
5
+ readonly Function: "function";
6
+ };
7
+ export type GetChatMessagesRequestRole = (typeof GetChatMessagesRequestRole)[keyof typeof GetChatMessagesRequestRole];
@@ -1,5 +1,5 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export const AgentGetChatMessagesRequestRole = {
2
+ export const GetChatMessagesRequestRole = {
3
3
  User: "user",
4
4
  Assistant: "assistant",
5
5
  Model: "model",
@@ -1,5 +1,5 @@
1
1
  import type * as phenoml from "../../../index.mjs";
2
- export interface AgentGetChatMessagesResponse {
2
+ export interface GetChatMessagesResponse {
3
3
  messages?: phenoml.agent.ChatMessageTemplate[] | undefined;
4
4
  total?: number | undefined;
5
5
  session_id?: string | undefined;
@@ -1,5 +1,5 @@
1
1
  import type * as phenoml from "../../../index.mjs";
2
- export interface AgentListResponse {
2
+ export interface ListResponse {
3
3
  success?: boolean | undefined;
4
4
  message?: string | undefined;
5
5
  agents?: phenoml.agent.AgentTemplate[] | undefined;
@@ -1,17 +1,17 @@
1
1
  export * from "./AgentChatResponse.mjs";
2
2
  export * from "./AgentChatStreamEvent.mjs";
3
3
  export * from "./AgentCreateRequest.mjs";
4
- export * from "./AgentDeleteResponse.mjs";
5
- export * from "./AgentGetChatMessagesRequestOrder.mjs";
6
- export * from "./AgentGetChatMessagesRequestRole.mjs";
7
- export * from "./AgentGetChatMessagesResponse.mjs";
8
- export * from "./AgentListResponse.mjs";
9
4
  export * from "./AgentPromptsResponse.mjs";
10
5
  export * from "./AgentResponse.mjs";
11
6
  export * from "./AgentTemplate.mjs";
12
7
  export * from "./ChatMessageTemplate.mjs";
13
8
  export * from "./ChatSessionTemplate.mjs";
9
+ export * from "./DeleteResponse.mjs";
10
+ export * from "./GetChatMessagesRequestOrder.mjs";
11
+ export * from "./GetChatMessagesRequestRole.mjs";
12
+ export * from "./GetChatMessagesResponse.mjs";
14
13
  export * from "./JsonPatch.mjs";
15
14
  export * from "./JsonPatchOperation.mjs";
15
+ export * from "./ListResponse.mjs";
16
16
  export * from "./PromptTemplate.mjs";
17
17
  export * from "./SuccessResponse.mjs";
@@ -1,17 +1,17 @@
1
1
  export * from "./AgentChatResponse.mjs";
2
2
  export * from "./AgentChatStreamEvent.mjs";
3
3
  export * from "./AgentCreateRequest.mjs";
4
- export * from "./AgentDeleteResponse.mjs";
5
- export * from "./AgentGetChatMessagesRequestOrder.mjs";
6
- export * from "./AgentGetChatMessagesRequestRole.mjs";
7
- export * from "./AgentGetChatMessagesResponse.mjs";
8
- export * from "./AgentListResponse.mjs";
9
4
  export * from "./AgentPromptsResponse.mjs";
10
5
  export * from "./AgentResponse.mjs";
11
6
  export * from "./AgentTemplate.mjs";
12
7
  export * from "./ChatMessageTemplate.mjs";
13
8
  export * from "./ChatSessionTemplate.mjs";
9
+ export * from "./DeleteResponse.mjs";
10
+ export * from "./GetChatMessagesRequestOrder.mjs";
11
+ export * from "./GetChatMessagesRequestRole.mjs";
12
+ export * from "./GetChatMessagesResponse.mjs";
14
13
  export * from "./JsonPatch.mjs";
15
14
  export * from "./JsonPatchOperation.mjs";
15
+ export * from "./ListResponse.mjs";
16
16
  export * from "./PromptTemplate.mjs";
17
17
  export * from "./SuccessResponse.mjs";
@@ -1,12 +1,34 @@
1
- import type { BaseClientOptions } from "../../../../BaseClient.mjs";
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
2
2
  import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
3
- import { AuthClient } from "../resources/auth/client/Client.mjs";
3
+ import * as core from "../../../../core/index.mjs";
4
+ import * as phenoml from "../../../index.mjs";
4
5
  export declare namespace AuthtokenClient {
5
6
  type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
6
9
  }
7
10
  export declare class AuthtokenClient {
8
11
  protected readonly _options: NormalizedClientOptionsWithAuth<AuthtokenClient.Options>;
9
- protected _auth: AuthClient | undefined;
10
12
  constructor(options?: AuthtokenClient.Options);
11
- get auth(): AuthClient;
13
+ /**
14
+ * OAuth 2.0 client credentials token endpoint (RFC 6749 §4.4).
15
+ * Accepts client_id and client_secret in the request body (JSON or
16
+ * form-encoded) or via Basic Auth header (RFC 6749 §2.3.1), and
17
+ * returns an access token with expiration information.
18
+ *
19
+ * @param {phenoml.authtoken.ClientCredentialsRequest} request
20
+ * @param {AuthtokenClient.RequestOptions} requestOptions - Request-specific configuration.
21
+ *
22
+ * @throws {@link phenoml.authtoken.BadRequestError}
23
+ * @throws {@link phenoml.authtoken.UnauthorizedError}
24
+ * @throws {@link phenoml.authtoken.InternalServerError}
25
+ *
26
+ * @example
27
+ * await client.authtoken.getToken({
28
+ * client_id: "your_client_id",
29
+ * client_secret: "your_client_secret"
30
+ * })
31
+ */
32
+ getToken(request?: phenoml.authtoken.ClientCredentialsRequest, requestOptions?: AuthtokenClient.RequestOptions): core.HttpResponsePromise<phenoml.authtoken.TokenResponse>;
33
+ private __getToken;
12
34
  }