phenoml 0.0.2

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 (764) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +185 -0
  3. package/dist/cjs/Client.d.ts +50 -0
  4. package/dist/cjs/Client.js +84 -0
  5. package/dist/cjs/WrapperClient.d.ts +21 -0
  6. package/dist/cjs/WrapperClient.js +111 -0
  7. package/dist/cjs/api/index.d.ts +1 -0
  8. package/dist/cjs/api/index.js +17 -0
  9. package/dist/cjs/api/resources/agent/client/Client.d.ts +187 -0
  10. package/dist/cjs/api/resources/agent/client/Client.js +670 -0
  11. package/dist/cjs/api/resources/agent/client/index.d.ts +2 -0
  12. package/dist/cjs/api/resources/agent/client/index.js +17 -0
  13. package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.d.ts +23 -0
  14. package/dist/cjs/api/resources/agent/client/requests/AgentChatRequest.js +5 -0
  15. package/dist/cjs/api/resources/agent/client/requests/AgentCreateRequest.d.ts +29 -0
  16. package/dist/cjs/api/resources/agent/client/requests/AgentCreateRequest.js +5 -0
  17. package/dist/cjs/api/resources/agent/client/requests/AgentGetChatMessagesRequest.d.ts +20 -0
  18. package/dist/cjs/api/resources/agent/client/requests/AgentGetChatMessagesRequest.js +5 -0
  19. package/dist/cjs/api/resources/agent/client/requests/AgentListRequest.d.ts +13 -0
  20. package/dist/cjs/api/resources/agent/client/requests/AgentListRequest.js +5 -0
  21. package/dist/cjs/api/resources/agent/client/requests/AgentUpdateRequest.d.ts +25 -0
  22. package/dist/cjs/api/resources/agent/client/requests/AgentUpdateRequest.js +5 -0
  23. package/dist/cjs/api/resources/agent/client/requests/index.d.ts +5 -0
  24. package/dist/cjs/api/resources/agent/client/requests/index.js +2 -0
  25. package/dist/cjs/api/resources/agent/errors/BadRequestError.d.ts +8 -0
  26. package/dist/cjs/api/resources/agent/errors/BadRequestError.js +52 -0
  27. package/dist/cjs/api/resources/agent/errors/ForbiddenError.d.ts +8 -0
  28. package/dist/cjs/api/resources/agent/errors/ForbiddenError.js +52 -0
  29. package/dist/cjs/api/resources/agent/errors/InternalServerError.d.ts +8 -0
  30. package/dist/cjs/api/resources/agent/errors/InternalServerError.js +52 -0
  31. package/dist/cjs/api/resources/agent/errors/NotFoundError.d.ts +8 -0
  32. package/dist/cjs/api/resources/agent/errors/NotFoundError.js +52 -0
  33. package/dist/cjs/api/resources/agent/errors/UnauthorizedError.d.ts +8 -0
  34. package/dist/cjs/api/resources/agent/errors/UnauthorizedError.js +52 -0
  35. package/dist/cjs/api/resources/agent/errors/index.d.ts +5 -0
  36. package/dist/cjs/api/resources/agent/errors/index.js +21 -0
  37. package/dist/cjs/api/resources/agent/index.d.ts +4 -0
  38. package/dist/cjs/api/resources/agent/index.js +20 -0
  39. package/dist/cjs/api/resources/agent/resources/index.d.ts +3 -0
  40. package/dist/cjs/api/resources/agent/resources/index.js +42 -0
  41. package/dist/cjs/api/resources/agent/resources/prompts/client/Client.d.ts +161 -0
  42. package/dist/cjs/api/resources/agent/resources/prompts/client/Client.js +564 -0
  43. package/dist/cjs/api/resources/agent/resources/prompts/client/index.d.ts +2 -0
  44. package/dist/cjs/api/resources/agent/resources/prompts/client/index.js +17 -0
  45. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.d.ts +25 -0
  46. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.js +5 -0
  47. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.d.ts +21 -0
  48. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.js +5 -0
  49. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/index.d.ts +2 -0
  50. package/dist/cjs/api/resources/agent/resources/prompts/client/requests/index.js +2 -0
  51. package/dist/cjs/api/resources/agent/resources/prompts/index.d.ts +2 -0
  52. package/dist/cjs/api/resources/agent/resources/prompts/index.js +18 -0
  53. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.d.ts +7 -0
  54. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.js +5 -0
  55. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsListResponse.d.ts +9 -0
  56. package/dist/cjs/api/resources/agent/resources/prompts/types/PromptsListResponse.js +5 -0
  57. package/dist/cjs/api/resources/agent/resources/prompts/types/index.d.ts +2 -0
  58. package/dist/cjs/api/resources/agent/resources/prompts/types/index.js +18 -0
  59. package/dist/cjs/api/resources/agent/types/AgentChatResponse.d.ts +12 -0
  60. package/dist/cjs/api/resources/agent/types/AgentChatResponse.js +5 -0
  61. package/dist/cjs/api/resources/agent/types/AgentDeleteResponse.d.ts +7 -0
  62. package/dist/cjs/api/resources/agent/types/AgentDeleteResponse.js +5 -0
  63. package/dist/cjs/api/resources/agent/types/AgentFhirConfig.d.ts +12 -0
  64. package/dist/cjs/api/resources/agent/types/AgentFhirConfig.js +5 -0
  65. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.ts +8 -0
  66. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesRequestOrder.js +10 -0
  67. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesResponse.d.ts +9 -0
  68. package/dist/cjs/api/resources/agent/types/AgentGetChatMessagesResponse.js +5 -0
  69. package/dist/cjs/api/resources/agent/types/AgentListResponse.d.ts +9 -0
  70. package/dist/cjs/api/resources/agent/types/AgentListResponse.js +5 -0
  71. package/dist/cjs/api/resources/agent/types/AgentPromptsResponse.d.ts +9 -0
  72. package/dist/cjs/api/resources/agent/types/AgentPromptsResponse.js +5 -0
  73. package/dist/cjs/api/resources/agent/types/AgentProvider.d.ts +11 -0
  74. package/dist/cjs/api/resources/agent/types/AgentProvider.js +5 -0
  75. package/dist/cjs/api/resources/agent/types/AgentResponse.d.ts +9 -0
  76. package/dist/cjs/api/resources/agent/types/AgentResponse.js +5 -0
  77. package/dist/cjs/api/resources/agent/types/AgentTemplate.d.ts +23 -0
  78. package/dist/cjs/api/resources/agent/types/AgentTemplate.js +5 -0
  79. package/dist/cjs/api/resources/agent/types/ChatFhirClientConfig.d.ts +12 -0
  80. package/dist/cjs/api/resources/agent/types/ChatFhirClientConfig.js +5 -0
  81. package/dist/cjs/api/resources/agent/types/ChatMessageTemplate.d.ts +27 -0
  82. package/dist/cjs/api/resources/agent/types/ChatMessageTemplate.js +5 -0
  83. package/dist/cjs/api/resources/agent/types/ChatSessionTemplate.d.ts +25 -0
  84. package/dist/cjs/api/resources/agent/types/ChatSessionTemplate.js +5 -0
  85. package/dist/cjs/api/resources/agent/types/JsonPatch.d.ts +8 -0
  86. package/dist/cjs/api/resources/agent/types/JsonPatch.js +5 -0
  87. package/dist/cjs/api/resources/agent/types/JsonPatchOperation.d.ts +26 -0
  88. package/dist/cjs/api/resources/agent/types/JsonPatchOperation.js +17 -0
  89. package/dist/cjs/api/resources/agent/types/PromptTemplate.d.ts +19 -0
  90. package/dist/cjs/api/resources/agent/types/PromptTemplate.js +5 -0
  91. package/dist/cjs/api/resources/agent/types/ProviderType.d.ts +13 -0
  92. package/dist/cjs/api/resources/agent/types/ProviderType.js +12 -0
  93. package/dist/cjs/api/resources/agent/types/SuccessResponse.d.ts +7 -0
  94. package/dist/cjs/api/resources/agent/types/SuccessResponse.js +5 -0
  95. package/dist/cjs/api/resources/agent/types/index.d.ts +18 -0
  96. package/dist/cjs/api/resources/agent/types/index.js +34 -0
  97. package/dist/cjs/api/resources/authtoken/client/Client.d.ts +23 -0
  98. package/dist/cjs/api/resources/authtoken/client/Client.js +17 -0
  99. package/dist/cjs/api/resources/authtoken/client/index.d.ts +1 -0
  100. package/dist/cjs/api/resources/authtoken/client/index.js +2 -0
  101. package/dist/cjs/api/resources/authtoken/errors/BadRequestError.d.ts +8 -0
  102. package/dist/cjs/api/resources/authtoken/errors/BadRequestError.js +52 -0
  103. package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.d.ts +8 -0
  104. package/dist/cjs/api/resources/authtoken/errors/UnauthorizedError.js +52 -0
  105. package/dist/cjs/api/resources/authtoken/errors/index.d.ts +2 -0
  106. package/dist/cjs/api/resources/authtoken/errors/index.js +18 -0
  107. package/dist/cjs/api/resources/authtoken/index.d.ts +4 -0
  108. package/dist/cjs/api/resources/authtoken/index.js +20 -0
  109. package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.d.ts +50 -0
  110. package/dist/cjs/api/resources/authtoken/resources/auth/client/Client.js +145 -0
  111. package/dist/cjs/api/resources/authtoken/resources/auth/client/index.d.ts +2 -0
  112. package/dist/cjs/api/resources/authtoken/resources/auth/client/index.js +17 -0
  113. package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.d.ts +16 -0
  114. package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.js +5 -0
  115. package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/index.d.ts +1 -0
  116. package/dist/cjs/api/resources/authtoken/resources/auth/client/requests/index.js +2 -0
  117. package/dist/cjs/api/resources/authtoken/resources/auth/index.d.ts +2 -0
  118. package/dist/cjs/api/resources/authtoken/resources/auth/index.js +18 -0
  119. package/dist/cjs/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.d.ts +7 -0
  120. package/dist/cjs/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.js +5 -0
  121. package/dist/cjs/api/resources/authtoken/resources/auth/types/index.d.ts +1 -0
  122. package/dist/cjs/api/resources/authtoken/resources/auth/types/index.js +17 -0
  123. package/dist/cjs/api/resources/authtoken/resources/index.d.ts +3 -0
  124. package/dist/cjs/api/resources/authtoken/resources/index.js +42 -0
  125. package/dist/cjs/api/resources/authtoken/types/BadRequestErrorBody.d.ts +8 -0
  126. package/dist/cjs/api/resources/authtoken/types/BadRequestErrorBody.js +5 -0
  127. package/dist/cjs/api/resources/authtoken/types/UnauthorizedErrorBody.d.ts +8 -0
  128. package/dist/cjs/api/resources/authtoken/types/UnauthorizedErrorBody.js +5 -0
  129. package/dist/cjs/api/resources/authtoken/types/index.d.ts +2 -0
  130. package/dist/cjs/api/resources/authtoken/types/index.js +18 -0
  131. package/dist/cjs/api/resources/cohort/client/Client.d.ts +51 -0
  132. package/dist/cjs/api/resources/cohort/client/Client.js +134 -0
  133. package/dist/cjs/api/resources/cohort/client/index.d.ts +2 -0
  134. package/dist/cjs/api/resources/cohort/client/index.js +17 -0
  135. package/dist/cjs/api/resources/cohort/client/requests/CohortRequest.d.ts +13 -0
  136. package/dist/cjs/api/resources/cohort/client/requests/CohortRequest.js +5 -0
  137. package/dist/cjs/api/resources/cohort/client/requests/index.d.ts +1 -0
  138. package/dist/cjs/api/resources/cohort/client/requests/index.js +2 -0
  139. package/dist/cjs/api/resources/cohort/errors/BadRequestError.d.ts +8 -0
  140. package/dist/cjs/api/resources/cohort/errors/BadRequestError.js +52 -0
  141. package/dist/cjs/api/resources/cohort/errors/InternalServerError.d.ts +8 -0
  142. package/dist/cjs/api/resources/cohort/errors/InternalServerError.js +52 -0
  143. package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.d.ts +8 -0
  144. package/dist/cjs/api/resources/cohort/errors/UnauthorizedError.js +52 -0
  145. package/dist/cjs/api/resources/cohort/errors/index.d.ts +3 -0
  146. package/dist/cjs/api/resources/cohort/errors/index.js +19 -0
  147. package/dist/cjs/api/resources/cohort/index.d.ts +3 -0
  148. package/dist/cjs/api/resources/cohort/index.js +19 -0
  149. package/dist/cjs/api/resources/cohort/types/CohortResponse.d.ts +12 -0
  150. package/dist/cjs/api/resources/cohort/types/CohortResponse.js +5 -0
  151. package/dist/cjs/api/resources/cohort/types/SearchConcept.d.ts +13 -0
  152. package/dist/cjs/api/resources/cohort/types/SearchConcept.js +5 -0
  153. package/dist/cjs/api/resources/cohort/types/index.d.ts +2 -0
  154. package/dist/cjs/api/resources/cohort/types/index.js +18 -0
  155. package/dist/cjs/api/resources/construe/client/Client.d.ts +94 -0
  156. package/dist/cjs/api/resources/construe/client/Client.js +295 -0
  157. package/dist/cjs/api/resources/construe/client/index.d.ts +2 -0
  158. package/dist/cjs/api/resources/construe/client/index.js +17 -0
  159. package/dist/cjs/api/resources/construe/client/requests/ConstrueCohortRequest.d.ts +26 -0
  160. package/dist/cjs/api/resources/construe/client/requests/ConstrueCohortRequest.js +5 -0
  161. package/dist/cjs/api/resources/construe/client/requests/ExtractRequest.d.ts +16 -0
  162. package/dist/cjs/api/resources/construe/client/requests/ExtractRequest.js +5 -0
  163. package/dist/cjs/api/resources/construe/client/requests/UploadRequest.d.ts +40 -0
  164. package/dist/cjs/api/resources/construe/client/requests/UploadRequest.js +13 -0
  165. package/dist/cjs/api/resources/construe/client/requests/index.d.ts +3 -0
  166. package/dist/cjs/api/resources/construe/client/requests/index.js +2 -0
  167. package/dist/cjs/api/resources/construe/errors/BadRequestError.d.ts +8 -0
  168. package/dist/cjs/api/resources/construe/errors/BadRequestError.js +52 -0
  169. package/dist/cjs/api/resources/construe/errors/ConflictError.d.ts +8 -0
  170. package/dist/cjs/api/resources/construe/errors/ConflictError.js +52 -0
  171. package/dist/cjs/api/resources/construe/errors/FailedDependencyError.d.ts +8 -0
  172. package/dist/cjs/api/resources/construe/errors/FailedDependencyError.js +52 -0
  173. package/dist/cjs/api/resources/construe/errors/InternalServerError.d.ts +8 -0
  174. package/dist/cjs/api/resources/construe/errors/InternalServerError.js +52 -0
  175. package/dist/cjs/api/resources/construe/errors/UnauthorizedError.d.ts +8 -0
  176. package/dist/cjs/api/resources/construe/errors/UnauthorizedError.js +52 -0
  177. package/dist/cjs/api/resources/construe/errors/index.d.ts +5 -0
  178. package/dist/cjs/api/resources/construe/errors/index.js +21 -0
  179. package/dist/cjs/api/resources/construe/index.d.ts +3 -0
  180. package/dist/cjs/api/resources/construe/index.js +19 -0
  181. package/dist/cjs/api/resources/construe/types/BadRequestErrorBody.d.ts +9 -0
  182. package/dist/cjs/api/resources/construe/types/BadRequestErrorBody.js +5 -0
  183. package/dist/cjs/api/resources/construe/types/ConstrueCohortResponse.d.ts +49 -0
  184. package/dist/cjs/api/resources/construe/types/ConstrueCohortResponse.js +5 -0
  185. package/dist/cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.ts +6 -0
  186. package/dist/cjs/api/resources/construe/types/ConstrueUploadCodeSystemResponse.js +5 -0
  187. package/dist/cjs/api/resources/construe/types/ExtractCodesResult.d.ts +8 -0
  188. package/dist/cjs/api/resources/construe/types/ExtractCodesResult.js +5 -0
  189. package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.d.ts +18 -0
  190. package/dist/cjs/api/resources/construe/types/ExtractRequestConfig.js +15 -0
  191. package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.d.ts +21 -0
  192. package/dist/cjs/api/resources/construe/types/ExtractRequestSystem.js +5 -0
  193. package/dist/cjs/api/resources/construe/types/ExtractedCodeResult.d.ts +13 -0
  194. package/dist/cjs/api/resources/construe/types/ExtractedCodeResult.js +5 -0
  195. package/dist/cjs/api/resources/construe/types/InternalServerErrorBody.d.ts +9 -0
  196. package/dist/cjs/api/resources/construe/types/InternalServerErrorBody.js +5 -0
  197. package/dist/cjs/api/resources/construe/types/UnauthorizedErrorBody.d.ts +9 -0
  198. package/dist/cjs/api/resources/construe/types/UnauthorizedErrorBody.js +5 -0
  199. package/dist/cjs/api/resources/construe/types/index.d.ts +9 -0
  200. package/dist/cjs/api/resources/construe/types/index.js +25 -0
  201. package/dist/cjs/api/resources/index.d.ts +6 -0
  202. package/dist/cjs/api/resources/index.js +42 -0
  203. package/dist/cjs/api/resources/lang2Fhir/client/Client.d.ts +111 -0
  204. package/dist/cjs/api/resources/lang2Fhir/client/Client.js +360 -0
  205. package/dist/cjs/api/resources/lang2Fhir/client/index.d.ts +2 -0
  206. package/dist/cjs/api/resources/lang2Fhir/client/index.js +17 -0
  207. package/dist/cjs/api/resources/lang2Fhir/client/requests/CreateRequest.d.ts +43 -0
  208. package/dist/cjs/api/resources/lang2Fhir/client/requests/CreateRequest.js +27 -0
  209. package/dist/cjs/api/resources/lang2Fhir/client/requests/DocumentRequest.d.ts +42 -0
  210. package/dist/cjs/api/resources/lang2Fhir/client/requests/DocumentRequest.js +19 -0
  211. package/dist/cjs/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.d.ts +19 -0
  212. package/dist/cjs/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.js +5 -0
  213. package/dist/cjs/api/resources/lang2Fhir/client/requests/SearchRequest.d.ts +13 -0
  214. package/dist/cjs/api/resources/lang2Fhir/client/requests/SearchRequest.js +5 -0
  215. package/dist/cjs/api/resources/lang2Fhir/client/requests/index.d.ts +4 -0
  216. package/dist/cjs/api/resources/lang2Fhir/client/requests/index.js +2 -0
  217. package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.d.ts +8 -0
  218. package/dist/cjs/api/resources/lang2Fhir/errors/BadRequestError.js +52 -0
  219. package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.d.ts +8 -0
  220. package/dist/cjs/api/resources/lang2Fhir/errors/FailedDependencyError.js +52 -0
  221. package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.d.ts +8 -0
  222. package/dist/cjs/api/resources/lang2Fhir/errors/ForbiddenError.js +52 -0
  223. package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.d.ts +8 -0
  224. package/dist/cjs/api/resources/lang2Fhir/errors/InternalServerError.js +52 -0
  225. package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.d.ts +8 -0
  226. package/dist/cjs/api/resources/lang2Fhir/errors/UnauthorizedError.js +52 -0
  227. package/dist/cjs/api/resources/lang2Fhir/errors/index.d.ts +5 -0
  228. package/dist/cjs/api/resources/lang2Fhir/errors/index.js +21 -0
  229. package/dist/cjs/api/resources/lang2Fhir/index.d.ts +3 -0
  230. package/dist/cjs/api/resources/lang2Fhir/index.js +19 -0
  231. package/dist/cjs/api/resources/lang2Fhir/types/FhirResource.d.ts +7 -0
  232. package/dist/cjs/api/resources/lang2Fhir/types/FhirResource.js +5 -0
  233. package/dist/cjs/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.ts +10 -0
  234. package/dist/cjs/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.js +5 -0
  235. package/dist/cjs/api/resources/lang2Fhir/types/SearchResponse.d.ts +9 -0
  236. package/dist/cjs/api/resources/lang2Fhir/types/SearchResponse.js +5 -0
  237. package/dist/cjs/api/resources/lang2Fhir/types/index.d.ts +3 -0
  238. package/dist/cjs/api/resources/lang2Fhir/types/index.js +19 -0
  239. package/dist/cjs/api/resources/tools/client/Client.d.ts +95 -0
  240. package/dist/cjs/api/resources/tools/client/Client.js +302 -0
  241. package/dist/cjs/api/resources/tools/client/index.d.ts +2 -0
  242. package/dist/cjs/api/resources/tools/client/index.js +17 -0
  243. package/dist/cjs/api/resources/tools/client/requests/CohortRequest.d.ts +30 -0
  244. package/dist/cjs/api/resources/tools/client/requests/CohortRequest.js +15 -0
  245. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.ts +54 -0
  246. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.js +33 -0
  247. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.ts +35 -0
  248. package/dist/cjs/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.js +15 -0
  249. package/dist/cjs/api/resources/tools/client/requests/index.d.ts +3 -0
  250. package/dist/cjs/api/resources/tools/client/requests/index.js +2 -0
  251. package/dist/cjs/api/resources/tools/errors/BadRequestError.d.ts +8 -0
  252. package/dist/cjs/api/resources/tools/errors/BadRequestError.js +52 -0
  253. package/dist/cjs/api/resources/tools/errors/FailedDependencyError.d.ts +8 -0
  254. package/dist/cjs/api/resources/tools/errors/FailedDependencyError.js +52 -0
  255. package/dist/cjs/api/resources/tools/errors/ForbiddenError.d.ts +8 -0
  256. package/dist/cjs/api/resources/tools/errors/ForbiddenError.js +52 -0
  257. package/dist/cjs/api/resources/tools/errors/InternalServerError.d.ts +8 -0
  258. package/dist/cjs/api/resources/tools/errors/InternalServerError.js +52 -0
  259. package/dist/cjs/api/resources/tools/errors/UnauthorizedError.d.ts +8 -0
  260. package/dist/cjs/api/resources/tools/errors/UnauthorizedError.js +52 -0
  261. package/dist/cjs/api/resources/tools/errors/index.d.ts +5 -0
  262. package/dist/cjs/api/resources/tools/errors/index.js +21 -0
  263. package/dist/cjs/api/resources/tools/index.d.ts +4 -0
  264. package/dist/cjs/api/resources/tools/index.js +20 -0
  265. package/dist/cjs/api/resources/tools/resources/index.d.ts +2 -0
  266. package/dist/cjs/api/resources/tools/resources/index.js +41 -0
  267. package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.d.ts +100 -0
  268. package/dist/cjs/api/resources/tools/resources/mcpServer/client/Client.js +337 -0
  269. package/dist/cjs/api/resources/tools/resources/mcpServer/client/index.d.ts +2 -0
  270. package/dist/cjs/api/resources/tools/resources/mcpServer/client/index.js +17 -0
  271. package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.d.ts +16 -0
  272. package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.js +5 -0
  273. package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/index.d.ts +1 -0
  274. package/dist/cjs/api/resources/tools/resources/mcpServer/client/requests/index.js +2 -0
  275. package/dist/cjs/api/resources/tools/resources/mcpServer/index.d.ts +2 -0
  276. package/dist/cjs/api/resources/tools/resources/mcpServer/index.js +18 -0
  277. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.d.ts +2 -0
  278. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/index.js +41 -0
  279. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.ts +100 -0
  280. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/Client.js +338 -0
  281. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/index.d.ts +2 -0
  282. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/index.js +17 -0
  283. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.ts +15 -0
  284. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.js +5 -0
  285. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.d.ts +1 -0
  286. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.js +2 -0
  287. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/index.d.ts +1 -0
  288. package/dist/cjs/api/resources/tools/resources/mcpServer/resources/tools/index.js +17 -0
  289. package/dist/cjs/api/resources/tools/types/CohortResponse.d.ts +16 -0
  290. package/dist/cjs/api/resources/tools/types/CohortResponse.js +5 -0
  291. package/dist/cjs/api/resources/tools/types/FhirClientConfig.d.ts +12 -0
  292. package/dist/cjs/api/resources/tools/types/FhirClientConfig.js +5 -0
  293. package/dist/cjs/api/resources/tools/types/Lang2FhirAndCreateResponse.d.ts +12 -0
  294. package/dist/cjs/api/resources/tools/types/Lang2FhirAndCreateResponse.js +5 -0
  295. package/dist/cjs/api/resources/tools/types/Lang2FhirAndSearchResponse.d.ts +14 -0
  296. package/dist/cjs/api/resources/tools/types/Lang2FhirAndSearchResponse.js +5 -0
  297. package/dist/cjs/api/resources/tools/types/McpServerResponse.d.ts +30 -0
  298. package/dist/cjs/api/resources/tools/types/McpServerResponse.js +5 -0
  299. package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.d.ts +13 -0
  300. package/dist/cjs/api/resources/tools/types/McpServerToolCallResponse.js +5 -0
  301. package/dist/cjs/api/resources/tools/types/McpServerToolResponse.d.ts +34 -0
  302. package/dist/cjs/api/resources/tools/types/McpServerToolResponse.js +5 -0
  303. package/dist/cjs/api/resources/tools/types/SearchConcept.d.ts +16 -0
  304. package/dist/cjs/api/resources/tools/types/SearchConcept.js +5 -0
  305. package/dist/cjs/api/resources/tools/types/index.d.ts +8 -0
  306. package/dist/cjs/api/resources/tools/types/index.js +24 -0
  307. package/dist/cjs/core/auth/AuthProvider.d.ts +4 -0
  308. package/dist/cjs/core/auth/AuthProvider.js +2 -0
  309. package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
  310. package/dist/cjs/core/auth/AuthRequest.js +2 -0
  311. package/dist/cjs/core/auth/BasicAuth.d.ts +8 -0
  312. package/dist/cjs/core/auth/BasicAuth.js +26 -0
  313. package/dist/cjs/core/auth/BearerToken.d.ts +5 -0
  314. package/dist/cjs/core/auth/BearerToken.js +15 -0
  315. package/dist/cjs/core/auth/index.d.ts +4 -0
  316. package/dist/cjs/core/auth/index.js +7 -0
  317. package/dist/cjs/core/base64.d.ts +2 -0
  318. package/dist/cjs/core/base64.js +26 -0
  319. package/dist/cjs/core/fetcher/APIResponse.d.ts +20 -0
  320. package/dist/cjs/core/fetcher/APIResponse.js +2 -0
  321. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +20 -0
  322. package/dist/cjs/core/fetcher/BinaryResponse.js +17 -0
  323. package/dist/cjs/core/fetcher/Fetcher.d.ts +40 -0
  324. package/dist/cjs/core/fetcher/Fetcher.js +120 -0
  325. package/dist/cjs/core/fetcher/Headers.d.ts +2 -0
  326. package/dist/cjs/core/fetcher/Headers.js +84 -0
  327. package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +58 -0
  328. package/dist/cjs/core/fetcher/HttpResponsePromise.js +103 -0
  329. package/dist/cjs/core/fetcher/RawResponse.d.ts +29 -0
  330. package/dist/cjs/core/fetcher/RawResponse.js +44 -0
  331. package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +4 -0
  332. package/dist/cjs/core/fetcher/ResponseWithBody.js +6 -0
  333. package/dist/cjs/core/fetcher/Supplier.d.ts +4 -0
  334. package/dist/cjs/core/fetcher/Supplier.js +22 -0
  335. package/dist/cjs/core/fetcher/createRequestUrl.d.ts +1 -0
  336. package/dist/cjs/core/fetcher/createRequestUrl.js +8 -0
  337. package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +1 -0
  338. package/dist/cjs/core/fetcher/getErrorResponseBody.js +44 -0
  339. package/dist/cjs/core/fetcher/getFetchFn.d.ts +1 -0
  340. package/dist/cjs/core/fetcher/getFetchFn.js +17 -0
  341. package/dist/cjs/core/fetcher/getHeader.d.ts +1 -0
  342. package/dist/cjs/core/fetcher/getHeader.js +11 -0
  343. package/dist/cjs/core/fetcher/getRequestBody.d.ts +7 -0
  344. package/dist/cjs/core/fetcher/getRequestBody.js +23 -0
  345. package/dist/cjs/core/fetcher/getResponseBody.d.ts +1 -0
  346. package/dist/cjs/core/fetcher/getResponseBody.js +55 -0
  347. package/dist/cjs/core/fetcher/index.d.ts +9 -0
  348. package/dist/cjs/core/fetcher/index.js +15 -0
  349. package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -0
  350. package/dist/cjs/core/fetcher/makeRequest.js +42 -0
  351. package/dist/cjs/core/fetcher/requestWithRetries.d.ts +1 -0
  352. package/dist/cjs/core/fetcher/requestWithRetries.js +40 -0
  353. package/dist/cjs/core/fetcher/signals.d.ts +11 -0
  354. package/dist/cjs/core/fetcher/signals.js +36 -0
  355. package/dist/cjs/core/headers.d.ts +3 -0
  356. package/dist/cjs/core/headers.js +29 -0
  357. package/dist/cjs/core/index.d.ts +5 -0
  358. package/dist/cjs/core/index.js +44 -0
  359. package/dist/cjs/core/json.d.ts +15 -0
  360. package/dist/cjs/core/json.js +24 -0
  361. package/dist/cjs/core/runtime/index.d.ts +1 -0
  362. package/dist/cjs/core/runtime/index.js +5 -0
  363. package/dist/cjs/core/runtime/runtime.d.ts +9 -0
  364. package/dist/cjs/core/runtime/runtime.js +102 -0
  365. package/dist/cjs/core/url/index.d.ts +2 -0
  366. package/dist/cjs/core/url/index.js +7 -0
  367. package/dist/cjs/core/url/join.d.ts +1 -0
  368. package/dist/cjs/core/url/join.js +69 -0
  369. package/dist/cjs/core/url/qs.d.ts +6 -0
  370. package/dist/cjs/core/url/qs.js +64 -0
  371. package/dist/cjs/environments.d.ts +7 -0
  372. package/dist/cjs/environments.js +9 -0
  373. package/dist/cjs/errors/index.d.ts +2 -0
  374. package/dist/cjs/errors/index.js +7 -0
  375. package/dist/cjs/errors/phenomlError.d.ts +15 -0
  376. package/dist/cjs/errors/phenomlError.js +30 -0
  377. package/dist/cjs/errors/phenomlTimeoutError.d.ts +6 -0
  378. package/dist/cjs/errors/phenomlTimeoutError.js +13 -0
  379. package/dist/cjs/index.d.ts +4 -0
  380. package/dist/cjs/index.js +44 -0
  381. package/dist/cjs/version.d.ts +1 -0
  382. package/dist/cjs/version.js +4 -0
  383. package/dist/esm/Client.d.mts +50 -0
  384. package/dist/esm/Client.mjs +47 -0
  385. package/dist/esm/WrapperClient.d.mts +21 -0
  386. package/dist/esm/WrapperClient.mjs +74 -0
  387. package/dist/esm/api/index.d.mts +1 -0
  388. package/dist/esm/api/index.mjs +1 -0
  389. package/dist/esm/api/resources/agent/client/Client.d.mts +187 -0
  390. package/dist/esm/api/resources/agent/client/Client.mjs +633 -0
  391. package/dist/esm/api/resources/agent/client/index.d.mts +2 -0
  392. package/dist/esm/api/resources/agent/client/index.mjs +1 -0
  393. package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.d.mts +23 -0
  394. package/dist/esm/api/resources/agent/client/requests/AgentChatRequest.mjs +4 -0
  395. package/dist/esm/api/resources/agent/client/requests/AgentCreateRequest.d.mts +29 -0
  396. package/dist/esm/api/resources/agent/client/requests/AgentCreateRequest.mjs +4 -0
  397. package/dist/esm/api/resources/agent/client/requests/AgentGetChatMessagesRequest.d.mts +20 -0
  398. package/dist/esm/api/resources/agent/client/requests/AgentGetChatMessagesRequest.mjs +4 -0
  399. package/dist/esm/api/resources/agent/client/requests/AgentListRequest.d.mts +13 -0
  400. package/dist/esm/api/resources/agent/client/requests/AgentListRequest.mjs +4 -0
  401. package/dist/esm/api/resources/agent/client/requests/AgentUpdateRequest.d.mts +25 -0
  402. package/dist/esm/api/resources/agent/client/requests/AgentUpdateRequest.mjs +4 -0
  403. package/dist/esm/api/resources/agent/client/requests/index.d.mts +5 -0
  404. package/dist/esm/api/resources/agent/client/requests/index.mjs +1 -0
  405. package/dist/esm/api/resources/agent/errors/BadRequestError.d.mts +8 -0
  406. package/dist/esm/api/resources/agent/errors/BadRequestError.mjs +15 -0
  407. package/dist/esm/api/resources/agent/errors/ForbiddenError.d.mts +8 -0
  408. package/dist/esm/api/resources/agent/errors/ForbiddenError.mjs +15 -0
  409. package/dist/esm/api/resources/agent/errors/InternalServerError.d.mts +8 -0
  410. package/dist/esm/api/resources/agent/errors/InternalServerError.mjs +15 -0
  411. package/dist/esm/api/resources/agent/errors/NotFoundError.d.mts +8 -0
  412. package/dist/esm/api/resources/agent/errors/NotFoundError.mjs +15 -0
  413. package/dist/esm/api/resources/agent/errors/UnauthorizedError.d.mts +8 -0
  414. package/dist/esm/api/resources/agent/errors/UnauthorizedError.mjs +15 -0
  415. package/dist/esm/api/resources/agent/errors/index.d.mts +5 -0
  416. package/dist/esm/api/resources/agent/errors/index.mjs +5 -0
  417. package/dist/esm/api/resources/agent/index.d.mts +4 -0
  418. package/dist/esm/api/resources/agent/index.mjs +4 -0
  419. package/dist/esm/api/resources/agent/resources/index.d.mts +3 -0
  420. package/dist/esm/api/resources/agent/resources/index.mjs +3 -0
  421. package/dist/esm/api/resources/agent/resources/prompts/client/Client.d.mts +161 -0
  422. package/dist/esm/api/resources/agent/resources/prompts/client/Client.mjs +527 -0
  423. package/dist/esm/api/resources/agent/resources/prompts/client/index.d.mts +2 -0
  424. package/dist/esm/api/resources/agent/resources/prompts/client/index.mjs +1 -0
  425. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.d.mts +25 -0
  426. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsCreateRequest.mjs +4 -0
  427. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.d.mts +21 -0
  428. package/dist/esm/api/resources/agent/resources/prompts/client/requests/AgentPromptsUpdateRequest.mjs +4 -0
  429. package/dist/esm/api/resources/agent/resources/prompts/client/requests/index.d.mts +2 -0
  430. package/dist/esm/api/resources/agent/resources/prompts/client/requests/index.mjs +1 -0
  431. package/dist/esm/api/resources/agent/resources/prompts/index.d.mts +2 -0
  432. package/dist/esm/api/resources/agent/resources/prompts/index.mjs +2 -0
  433. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.d.mts +7 -0
  434. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsDeleteResponse.mjs +4 -0
  435. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsListResponse.d.mts +9 -0
  436. package/dist/esm/api/resources/agent/resources/prompts/types/PromptsListResponse.mjs +4 -0
  437. package/dist/esm/api/resources/agent/resources/prompts/types/index.d.mts +2 -0
  438. package/dist/esm/api/resources/agent/resources/prompts/types/index.mjs +2 -0
  439. package/dist/esm/api/resources/agent/types/AgentChatResponse.d.mts +12 -0
  440. package/dist/esm/api/resources/agent/types/AgentChatResponse.mjs +4 -0
  441. package/dist/esm/api/resources/agent/types/AgentDeleteResponse.d.mts +7 -0
  442. package/dist/esm/api/resources/agent/types/AgentDeleteResponse.mjs +4 -0
  443. package/dist/esm/api/resources/agent/types/AgentFhirConfig.d.mts +12 -0
  444. package/dist/esm/api/resources/agent/types/AgentFhirConfig.mjs +4 -0
  445. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestOrder.d.mts +8 -0
  446. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesRequestOrder.mjs +7 -0
  447. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesResponse.d.mts +9 -0
  448. package/dist/esm/api/resources/agent/types/AgentGetChatMessagesResponse.mjs +4 -0
  449. package/dist/esm/api/resources/agent/types/AgentListResponse.d.mts +9 -0
  450. package/dist/esm/api/resources/agent/types/AgentListResponse.mjs +4 -0
  451. package/dist/esm/api/resources/agent/types/AgentPromptsResponse.d.mts +9 -0
  452. package/dist/esm/api/resources/agent/types/AgentPromptsResponse.mjs +4 -0
  453. package/dist/esm/api/resources/agent/types/AgentProvider.d.mts +11 -0
  454. package/dist/esm/api/resources/agent/types/AgentProvider.mjs +4 -0
  455. package/dist/esm/api/resources/agent/types/AgentResponse.d.mts +9 -0
  456. package/dist/esm/api/resources/agent/types/AgentResponse.mjs +4 -0
  457. package/dist/esm/api/resources/agent/types/AgentTemplate.d.mts +23 -0
  458. package/dist/esm/api/resources/agent/types/AgentTemplate.mjs +4 -0
  459. package/dist/esm/api/resources/agent/types/ChatFhirClientConfig.d.mts +12 -0
  460. package/dist/esm/api/resources/agent/types/ChatFhirClientConfig.mjs +4 -0
  461. package/dist/esm/api/resources/agent/types/ChatMessageTemplate.d.mts +27 -0
  462. package/dist/esm/api/resources/agent/types/ChatMessageTemplate.mjs +4 -0
  463. package/dist/esm/api/resources/agent/types/ChatSessionTemplate.d.mts +25 -0
  464. package/dist/esm/api/resources/agent/types/ChatSessionTemplate.mjs +4 -0
  465. package/dist/esm/api/resources/agent/types/JsonPatch.d.mts +8 -0
  466. package/dist/esm/api/resources/agent/types/JsonPatch.mjs +4 -0
  467. package/dist/esm/api/resources/agent/types/JsonPatchOperation.d.mts +26 -0
  468. package/dist/esm/api/resources/agent/types/JsonPatchOperation.mjs +14 -0
  469. package/dist/esm/api/resources/agent/types/PromptTemplate.d.mts +19 -0
  470. package/dist/esm/api/resources/agent/types/PromptTemplate.mjs +4 -0
  471. package/dist/esm/api/resources/agent/types/ProviderType.d.mts +13 -0
  472. package/dist/esm/api/resources/agent/types/ProviderType.mjs +9 -0
  473. package/dist/esm/api/resources/agent/types/SuccessResponse.d.mts +7 -0
  474. package/dist/esm/api/resources/agent/types/SuccessResponse.mjs +4 -0
  475. package/dist/esm/api/resources/agent/types/index.d.mts +18 -0
  476. package/dist/esm/api/resources/agent/types/index.mjs +18 -0
  477. package/dist/esm/api/resources/authtoken/client/Client.d.mts +23 -0
  478. package/dist/esm/api/resources/authtoken/client/Client.mjs +13 -0
  479. package/dist/esm/api/resources/authtoken/client/index.d.mts +1 -0
  480. package/dist/esm/api/resources/authtoken/client/index.mjs +1 -0
  481. package/dist/esm/api/resources/authtoken/errors/BadRequestError.d.mts +8 -0
  482. package/dist/esm/api/resources/authtoken/errors/BadRequestError.mjs +15 -0
  483. package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.d.mts +8 -0
  484. package/dist/esm/api/resources/authtoken/errors/UnauthorizedError.mjs +15 -0
  485. package/dist/esm/api/resources/authtoken/errors/index.d.mts +2 -0
  486. package/dist/esm/api/resources/authtoken/errors/index.mjs +2 -0
  487. package/dist/esm/api/resources/authtoken/index.d.mts +4 -0
  488. package/dist/esm/api/resources/authtoken/index.mjs +4 -0
  489. package/dist/esm/api/resources/authtoken/resources/auth/client/Client.d.mts +50 -0
  490. package/dist/esm/api/resources/authtoken/resources/auth/client/Client.mjs +108 -0
  491. package/dist/esm/api/resources/authtoken/resources/auth/client/index.d.mts +2 -0
  492. package/dist/esm/api/resources/authtoken/resources/auth/client/index.mjs +1 -0
  493. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.d.mts +16 -0
  494. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/AuthGenerateTokenRequest.mjs +4 -0
  495. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/index.d.mts +1 -0
  496. package/dist/esm/api/resources/authtoken/resources/auth/client/requests/index.mjs +1 -0
  497. package/dist/esm/api/resources/authtoken/resources/auth/index.d.mts +2 -0
  498. package/dist/esm/api/resources/authtoken/resources/auth/index.mjs +2 -0
  499. package/dist/esm/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.d.mts +7 -0
  500. package/dist/esm/api/resources/authtoken/resources/auth/types/AuthGenerateTokenResponse.mjs +4 -0
  501. package/dist/esm/api/resources/authtoken/resources/auth/types/index.d.mts +1 -0
  502. package/dist/esm/api/resources/authtoken/resources/auth/types/index.mjs +1 -0
  503. package/dist/esm/api/resources/authtoken/resources/index.d.mts +3 -0
  504. package/dist/esm/api/resources/authtoken/resources/index.mjs +3 -0
  505. package/dist/esm/api/resources/authtoken/types/BadRequestErrorBody.d.mts +8 -0
  506. package/dist/esm/api/resources/authtoken/types/BadRequestErrorBody.mjs +4 -0
  507. package/dist/esm/api/resources/authtoken/types/UnauthorizedErrorBody.d.mts +8 -0
  508. package/dist/esm/api/resources/authtoken/types/UnauthorizedErrorBody.mjs +4 -0
  509. package/dist/esm/api/resources/authtoken/types/index.d.mts +2 -0
  510. package/dist/esm/api/resources/authtoken/types/index.mjs +2 -0
  511. package/dist/esm/api/resources/cohort/client/Client.d.mts +51 -0
  512. package/dist/esm/api/resources/cohort/client/Client.mjs +97 -0
  513. package/dist/esm/api/resources/cohort/client/index.d.mts +2 -0
  514. package/dist/esm/api/resources/cohort/client/index.mjs +1 -0
  515. package/dist/esm/api/resources/cohort/client/requests/CohortRequest.d.mts +13 -0
  516. package/dist/esm/api/resources/cohort/client/requests/CohortRequest.mjs +4 -0
  517. package/dist/esm/api/resources/cohort/client/requests/index.d.mts +1 -0
  518. package/dist/esm/api/resources/cohort/client/requests/index.mjs +1 -0
  519. package/dist/esm/api/resources/cohort/errors/BadRequestError.d.mts +8 -0
  520. package/dist/esm/api/resources/cohort/errors/BadRequestError.mjs +15 -0
  521. package/dist/esm/api/resources/cohort/errors/InternalServerError.d.mts +8 -0
  522. package/dist/esm/api/resources/cohort/errors/InternalServerError.mjs +15 -0
  523. package/dist/esm/api/resources/cohort/errors/UnauthorizedError.d.mts +8 -0
  524. package/dist/esm/api/resources/cohort/errors/UnauthorizedError.mjs +15 -0
  525. package/dist/esm/api/resources/cohort/errors/index.d.mts +3 -0
  526. package/dist/esm/api/resources/cohort/errors/index.mjs +3 -0
  527. package/dist/esm/api/resources/cohort/index.d.mts +3 -0
  528. package/dist/esm/api/resources/cohort/index.mjs +3 -0
  529. package/dist/esm/api/resources/cohort/types/CohortResponse.d.mts +12 -0
  530. package/dist/esm/api/resources/cohort/types/CohortResponse.mjs +4 -0
  531. package/dist/esm/api/resources/cohort/types/SearchConcept.d.mts +13 -0
  532. package/dist/esm/api/resources/cohort/types/SearchConcept.mjs +4 -0
  533. package/dist/esm/api/resources/cohort/types/index.d.mts +2 -0
  534. package/dist/esm/api/resources/cohort/types/index.mjs +2 -0
  535. package/dist/esm/api/resources/construe/client/Client.d.mts +94 -0
  536. package/dist/esm/api/resources/construe/client/Client.mjs +258 -0
  537. package/dist/esm/api/resources/construe/client/index.d.mts +2 -0
  538. package/dist/esm/api/resources/construe/client/index.mjs +1 -0
  539. package/dist/esm/api/resources/construe/client/requests/ConstrueCohortRequest.d.mts +26 -0
  540. package/dist/esm/api/resources/construe/client/requests/ConstrueCohortRequest.mjs +4 -0
  541. package/dist/esm/api/resources/construe/client/requests/ExtractRequest.d.mts +16 -0
  542. package/dist/esm/api/resources/construe/client/requests/ExtractRequest.mjs +4 -0
  543. package/dist/esm/api/resources/construe/client/requests/UploadRequest.d.mts +40 -0
  544. package/dist/esm/api/resources/construe/client/requests/UploadRequest.mjs +10 -0
  545. package/dist/esm/api/resources/construe/client/requests/index.d.mts +3 -0
  546. package/dist/esm/api/resources/construe/client/requests/index.mjs +1 -0
  547. package/dist/esm/api/resources/construe/errors/BadRequestError.d.mts +8 -0
  548. package/dist/esm/api/resources/construe/errors/BadRequestError.mjs +15 -0
  549. package/dist/esm/api/resources/construe/errors/ConflictError.d.mts +8 -0
  550. package/dist/esm/api/resources/construe/errors/ConflictError.mjs +15 -0
  551. package/dist/esm/api/resources/construe/errors/FailedDependencyError.d.mts +8 -0
  552. package/dist/esm/api/resources/construe/errors/FailedDependencyError.mjs +15 -0
  553. package/dist/esm/api/resources/construe/errors/InternalServerError.d.mts +8 -0
  554. package/dist/esm/api/resources/construe/errors/InternalServerError.mjs +15 -0
  555. package/dist/esm/api/resources/construe/errors/UnauthorizedError.d.mts +8 -0
  556. package/dist/esm/api/resources/construe/errors/UnauthorizedError.mjs +15 -0
  557. package/dist/esm/api/resources/construe/errors/index.d.mts +5 -0
  558. package/dist/esm/api/resources/construe/errors/index.mjs +5 -0
  559. package/dist/esm/api/resources/construe/index.d.mts +3 -0
  560. package/dist/esm/api/resources/construe/index.mjs +3 -0
  561. package/dist/esm/api/resources/construe/types/BadRequestErrorBody.d.mts +9 -0
  562. package/dist/esm/api/resources/construe/types/BadRequestErrorBody.mjs +4 -0
  563. package/dist/esm/api/resources/construe/types/ConstrueCohortResponse.d.mts +49 -0
  564. package/dist/esm/api/resources/construe/types/ConstrueCohortResponse.mjs +4 -0
  565. package/dist/esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.d.mts +6 -0
  566. package/dist/esm/api/resources/construe/types/ConstrueUploadCodeSystemResponse.mjs +4 -0
  567. package/dist/esm/api/resources/construe/types/ExtractCodesResult.d.mts +8 -0
  568. package/dist/esm/api/resources/construe/types/ExtractCodesResult.mjs +4 -0
  569. package/dist/esm/api/resources/construe/types/ExtractRequestConfig.d.mts +18 -0
  570. package/dist/esm/api/resources/construe/types/ExtractRequestConfig.mjs +12 -0
  571. package/dist/esm/api/resources/construe/types/ExtractRequestSystem.d.mts +21 -0
  572. package/dist/esm/api/resources/construe/types/ExtractRequestSystem.mjs +4 -0
  573. package/dist/esm/api/resources/construe/types/ExtractedCodeResult.d.mts +13 -0
  574. package/dist/esm/api/resources/construe/types/ExtractedCodeResult.mjs +4 -0
  575. package/dist/esm/api/resources/construe/types/InternalServerErrorBody.d.mts +9 -0
  576. package/dist/esm/api/resources/construe/types/InternalServerErrorBody.mjs +4 -0
  577. package/dist/esm/api/resources/construe/types/UnauthorizedErrorBody.d.mts +9 -0
  578. package/dist/esm/api/resources/construe/types/UnauthorizedErrorBody.mjs +4 -0
  579. package/dist/esm/api/resources/construe/types/index.d.mts +9 -0
  580. package/dist/esm/api/resources/construe/types/index.mjs +9 -0
  581. package/dist/esm/api/resources/index.d.mts +6 -0
  582. package/dist/esm/api/resources/index.mjs +6 -0
  583. package/dist/esm/api/resources/lang2Fhir/client/Client.d.mts +111 -0
  584. package/dist/esm/api/resources/lang2Fhir/client/Client.mjs +323 -0
  585. package/dist/esm/api/resources/lang2Fhir/client/index.d.mts +2 -0
  586. package/dist/esm/api/resources/lang2Fhir/client/index.mjs +1 -0
  587. package/dist/esm/api/resources/lang2Fhir/client/requests/CreateRequest.d.mts +43 -0
  588. package/dist/esm/api/resources/lang2Fhir/client/requests/CreateRequest.mjs +24 -0
  589. package/dist/esm/api/resources/lang2Fhir/client/requests/DocumentRequest.d.mts +42 -0
  590. package/dist/esm/api/resources/lang2Fhir/client/requests/DocumentRequest.mjs +16 -0
  591. package/dist/esm/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.d.mts +19 -0
  592. package/dist/esm/api/resources/lang2Fhir/client/requests/ProfileUploadRequest.mjs +4 -0
  593. package/dist/esm/api/resources/lang2Fhir/client/requests/SearchRequest.d.mts +13 -0
  594. package/dist/esm/api/resources/lang2Fhir/client/requests/SearchRequest.mjs +4 -0
  595. package/dist/esm/api/resources/lang2Fhir/client/requests/index.d.mts +4 -0
  596. package/dist/esm/api/resources/lang2Fhir/client/requests/index.mjs +1 -0
  597. package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.d.mts +8 -0
  598. package/dist/esm/api/resources/lang2Fhir/errors/BadRequestError.mjs +15 -0
  599. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.d.mts +8 -0
  600. package/dist/esm/api/resources/lang2Fhir/errors/FailedDependencyError.mjs +15 -0
  601. package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.d.mts +8 -0
  602. package/dist/esm/api/resources/lang2Fhir/errors/ForbiddenError.mjs +15 -0
  603. package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.d.mts +8 -0
  604. package/dist/esm/api/resources/lang2Fhir/errors/InternalServerError.mjs +15 -0
  605. package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.d.mts +8 -0
  606. package/dist/esm/api/resources/lang2Fhir/errors/UnauthorizedError.mjs +15 -0
  607. package/dist/esm/api/resources/lang2Fhir/errors/index.d.mts +5 -0
  608. package/dist/esm/api/resources/lang2Fhir/errors/index.mjs +5 -0
  609. package/dist/esm/api/resources/lang2Fhir/index.d.mts +3 -0
  610. package/dist/esm/api/resources/lang2Fhir/index.mjs +3 -0
  611. package/dist/esm/api/resources/lang2Fhir/types/FhirResource.d.mts +7 -0
  612. package/dist/esm/api/resources/lang2Fhir/types/FhirResource.mjs +4 -0
  613. package/dist/esm/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.d.mts +10 -0
  614. package/dist/esm/api/resources/lang2Fhir/types/Lang2FhirUploadProfileResponse.mjs +4 -0
  615. package/dist/esm/api/resources/lang2Fhir/types/SearchResponse.d.mts +9 -0
  616. package/dist/esm/api/resources/lang2Fhir/types/SearchResponse.mjs +4 -0
  617. package/dist/esm/api/resources/lang2Fhir/types/index.d.mts +3 -0
  618. package/dist/esm/api/resources/lang2Fhir/types/index.mjs +3 -0
  619. package/dist/esm/api/resources/tools/client/Client.d.mts +95 -0
  620. package/dist/esm/api/resources/tools/client/Client.mjs +265 -0
  621. package/dist/esm/api/resources/tools/client/index.d.mts +2 -0
  622. package/dist/esm/api/resources/tools/client/index.mjs +1 -0
  623. package/dist/esm/api/resources/tools/client/requests/CohortRequest.d.mts +30 -0
  624. package/dist/esm/api/resources/tools/client/requests/CohortRequest.mjs +12 -0
  625. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.d.mts +54 -0
  626. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndCreateRequest.mjs +30 -0
  627. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.d.mts +35 -0
  628. package/dist/esm/api/resources/tools/client/requests/Lang2FhirAndSearchRequest.mjs +12 -0
  629. package/dist/esm/api/resources/tools/client/requests/index.d.mts +3 -0
  630. package/dist/esm/api/resources/tools/client/requests/index.mjs +1 -0
  631. package/dist/esm/api/resources/tools/errors/BadRequestError.d.mts +8 -0
  632. package/dist/esm/api/resources/tools/errors/BadRequestError.mjs +15 -0
  633. package/dist/esm/api/resources/tools/errors/FailedDependencyError.d.mts +8 -0
  634. package/dist/esm/api/resources/tools/errors/FailedDependencyError.mjs +15 -0
  635. package/dist/esm/api/resources/tools/errors/ForbiddenError.d.mts +8 -0
  636. package/dist/esm/api/resources/tools/errors/ForbiddenError.mjs +15 -0
  637. package/dist/esm/api/resources/tools/errors/InternalServerError.d.mts +8 -0
  638. package/dist/esm/api/resources/tools/errors/InternalServerError.mjs +15 -0
  639. package/dist/esm/api/resources/tools/errors/UnauthorizedError.d.mts +8 -0
  640. package/dist/esm/api/resources/tools/errors/UnauthorizedError.mjs +15 -0
  641. package/dist/esm/api/resources/tools/errors/index.d.mts +5 -0
  642. package/dist/esm/api/resources/tools/errors/index.mjs +5 -0
  643. package/dist/esm/api/resources/tools/index.d.mts +4 -0
  644. package/dist/esm/api/resources/tools/index.mjs +4 -0
  645. package/dist/esm/api/resources/tools/resources/index.d.mts +2 -0
  646. package/dist/esm/api/resources/tools/resources/index.mjs +2 -0
  647. package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.d.mts +100 -0
  648. package/dist/esm/api/resources/tools/resources/mcpServer/client/Client.mjs +300 -0
  649. package/dist/esm/api/resources/tools/resources/mcpServer/client/index.d.mts +2 -0
  650. package/dist/esm/api/resources/tools/resources/mcpServer/client/index.mjs +1 -0
  651. package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.d.mts +16 -0
  652. package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/McpServerCreateRequest.mjs +4 -0
  653. package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/index.d.mts +1 -0
  654. package/dist/esm/api/resources/tools/resources/mcpServer/client/requests/index.mjs +1 -0
  655. package/dist/esm/api/resources/tools/resources/mcpServer/index.d.mts +2 -0
  656. package/dist/esm/api/resources/tools/resources/mcpServer/index.mjs +2 -0
  657. package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.d.mts +2 -0
  658. package/dist/esm/api/resources/tools/resources/mcpServer/resources/index.mjs +2 -0
  659. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.d.mts +100 -0
  660. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/Client.mjs +301 -0
  661. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.d.mts +2 -0
  662. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/index.mjs +1 -0
  663. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.d.mts +15 -0
  664. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/McpServerToolCallRequest.mjs +4 -0
  665. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.d.mts +1 -0
  666. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/client/requests/index.mjs +1 -0
  667. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/index.d.mts +1 -0
  668. package/dist/esm/api/resources/tools/resources/mcpServer/resources/tools/index.mjs +1 -0
  669. package/dist/esm/api/resources/tools/types/CohortResponse.d.mts +16 -0
  670. package/dist/esm/api/resources/tools/types/CohortResponse.mjs +4 -0
  671. package/dist/esm/api/resources/tools/types/FhirClientConfig.d.mts +12 -0
  672. package/dist/esm/api/resources/tools/types/FhirClientConfig.mjs +4 -0
  673. package/dist/esm/api/resources/tools/types/Lang2FhirAndCreateResponse.d.mts +12 -0
  674. package/dist/esm/api/resources/tools/types/Lang2FhirAndCreateResponse.mjs +4 -0
  675. package/dist/esm/api/resources/tools/types/Lang2FhirAndSearchResponse.d.mts +14 -0
  676. package/dist/esm/api/resources/tools/types/Lang2FhirAndSearchResponse.mjs +4 -0
  677. package/dist/esm/api/resources/tools/types/McpServerResponse.d.mts +30 -0
  678. package/dist/esm/api/resources/tools/types/McpServerResponse.mjs +4 -0
  679. package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.d.mts +13 -0
  680. package/dist/esm/api/resources/tools/types/McpServerToolCallResponse.mjs +4 -0
  681. package/dist/esm/api/resources/tools/types/McpServerToolResponse.d.mts +34 -0
  682. package/dist/esm/api/resources/tools/types/McpServerToolResponse.mjs +4 -0
  683. package/dist/esm/api/resources/tools/types/SearchConcept.d.mts +16 -0
  684. package/dist/esm/api/resources/tools/types/SearchConcept.mjs +4 -0
  685. package/dist/esm/api/resources/tools/types/index.d.mts +8 -0
  686. package/dist/esm/api/resources/tools/types/index.mjs +8 -0
  687. package/dist/esm/core/auth/AuthProvider.d.mts +4 -0
  688. package/dist/esm/core/auth/AuthProvider.mjs +1 -0
  689. package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
  690. package/dist/esm/core/auth/AuthRequest.mjs +1 -0
  691. package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
  692. package/dist/esm/core/auth/BasicAuth.mjs +23 -0
  693. package/dist/esm/core/auth/BearerToken.d.mts +5 -0
  694. package/dist/esm/core/auth/BearerToken.mjs +12 -0
  695. package/dist/esm/core/auth/index.d.mts +4 -0
  696. package/dist/esm/core/auth/index.mjs +2 -0
  697. package/dist/esm/core/base64.d.mts +2 -0
  698. package/dist/esm/core/base64.mjs +22 -0
  699. package/dist/esm/core/fetcher/APIResponse.d.mts +20 -0
  700. package/dist/esm/core/fetcher/APIResponse.mjs +1 -0
  701. package/dist/esm/core/fetcher/BinaryResponse.d.mts +20 -0
  702. package/dist/esm/core/fetcher/BinaryResponse.mjs +14 -0
  703. package/dist/esm/core/fetcher/Fetcher.d.mts +40 -0
  704. package/dist/esm/core/fetcher/Fetcher.mjs +116 -0
  705. package/dist/esm/core/fetcher/Headers.d.mts +2 -0
  706. package/dist/esm/core/fetcher/Headers.mjs +82 -0
  707. package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +58 -0
  708. package/dist/esm/core/fetcher/HttpResponsePromise.mjs +99 -0
  709. package/dist/esm/core/fetcher/RawResponse.d.mts +29 -0
  710. package/dist/esm/core/fetcher/RawResponse.mjs +40 -0
  711. package/dist/esm/core/fetcher/ResponseWithBody.d.mts +4 -0
  712. package/dist/esm/core/fetcher/ResponseWithBody.mjs +3 -0
  713. package/dist/esm/core/fetcher/Supplier.d.mts +4 -0
  714. package/dist/esm/core/fetcher/Supplier.mjs +19 -0
  715. package/dist/esm/core/fetcher/createRequestUrl.d.mts +1 -0
  716. package/dist/esm/core/fetcher/createRequestUrl.mjs +5 -0
  717. package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +1 -0
  718. package/dist/esm/core/fetcher/getErrorResponseBody.mjs +41 -0
  719. package/dist/esm/core/fetcher/getFetchFn.d.mts +1 -0
  720. package/dist/esm/core/fetcher/getFetchFn.mjs +14 -0
  721. package/dist/esm/core/fetcher/getHeader.d.mts +1 -0
  722. package/dist/esm/core/fetcher/getHeader.mjs +8 -0
  723. package/dist/esm/core/fetcher/getRequestBody.d.mts +7 -0
  724. package/dist/esm/core/fetcher/getRequestBody.mjs +20 -0
  725. package/dist/esm/core/fetcher/getResponseBody.d.mts +1 -0
  726. package/dist/esm/core/fetcher/getResponseBody.mjs +52 -0
  727. package/dist/esm/core/fetcher/index.d.mts +9 -0
  728. package/dist/esm/core/fetcher/index.mjs +5 -0
  729. package/dist/esm/core/fetcher/makeRequest.d.mts +1 -0
  730. package/dist/esm/core/fetcher/makeRequest.mjs +38 -0
  731. package/dist/esm/core/fetcher/requestWithRetries.d.mts +1 -0
  732. package/dist/esm/core/fetcher/requestWithRetries.mjs +37 -0
  733. package/dist/esm/core/fetcher/signals.d.mts +11 -0
  734. package/dist/esm/core/fetcher/signals.mjs +32 -0
  735. package/dist/esm/core/headers.d.mts +3 -0
  736. package/dist/esm/core/headers.mjs +25 -0
  737. package/dist/esm/core/index.d.mts +5 -0
  738. package/dist/esm/core/index.mjs +5 -0
  739. package/dist/esm/core/json.d.mts +15 -0
  740. package/dist/esm/core/json.mjs +19 -0
  741. package/dist/esm/core/runtime/index.d.mts +1 -0
  742. package/dist/esm/core/runtime/index.mjs +1 -0
  743. package/dist/esm/core/runtime/runtime.d.mts +9 -0
  744. package/dist/esm/core/runtime/runtime.mjs +99 -0
  745. package/dist/esm/core/url/index.d.mts +2 -0
  746. package/dist/esm/core/url/index.mjs +2 -0
  747. package/dist/esm/core/url/join.d.mts +1 -0
  748. package/dist/esm/core/url/join.mjs +66 -0
  749. package/dist/esm/core/url/qs.d.mts +6 -0
  750. package/dist/esm/core/url/qs.mjs +61 -0
  751. package/dist/esm/environments.d.mts +7 -0
  752. package/dist/esm/environments.mjs +6 -0
  753. package/dist/esm/errors/index.d.mts +2 -0
  754. package/dist/esm/errors/index.mjs +2 -0
  755. package/dist/esm/errors/phenomlError.d.mts +15 -0
  756. package/dist/esm/errors/phenomlError.mjs +26 -0
  757. package/dist/esm/errors/phenomlTimeoutError.d.mts +6 -0
  758. package/dist/esm/errors/phenomlTimeoutError.mjs +9 -0
  759. package/dist/esm/index.d.mts +4 -0
  760. package/dist/esm/index.mjs +4 -0
  761. package/dist/esm/version.d.mts +1 -0
  762. package/dist/esm/version.mjs +1 -0
  763. package/package.json +65 -0
  764. package/reference.md +2330 -0
@@ -0,0 +1,4 @@
1
+ export type ResponseWithBody = Response & {
2
+ body: ReadableStream<Uint8Array>;
3
+ };
4
+ export declare function isResponseWithBody(response: Response): response is ResponseWithBody;
@@ -0,0 +1,3 @@
1
+ export function isResponseWithBody(response) {
2
+ return response.body != null;
3
+ }
@@ -0,0 +1,4 @@
1
+ export type Supplier<T> = T | Promise<T> | (() => T | Promise<T>);
2
+ export declare const Supplier: {
3
+ get: <T>(supplier: Supplier<T>) => Promise<T>;
4
+ };
@@ -0,0 +1,19 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ export const Supplier = {
11
+ get: (supplier) => __awaiter(void 0, void 0, void 0, function* () {
12
+ if (typeof supplier === "function") {
13
+ return supplier();
14
+ }
15
+ else {
16
+ return supplier;
17
+ }
18
+ }),
19
+ };
@@ -0,0 +1 @@
1
+ export declare function createRequestUrl(baseUrl: string, queryParameters?: Record<string, unknown>): string;
@@ -0,0 +1,5 @@
1
+ import { toQueryString } from "../url/qs.mjs";
2
+ export function createRequestUrl(baseUrl, queryParameters) {
3
+ const queryString = toQueryString(queryParameters, { arrayFormat: "repeat" });
4
+ return queryString ? `${baseUrl}?${queryString}` : baseUrl;
5
+ }
@@ -0,0 +1 @@
1
+ export declare function getErrorResponseBody(response: Response): Promise<unknown>;
@@ -0,0 +1,41 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { fromJson } from "../json.mjs";
11
+ import { getResponseBody } from "./getResponseBody.mjs";
12
+ export function getErrorResponseBody(response) {
13
+ return __awaiter(this, void 0, void 0, function* () {
14
+ var _a, _b, _c;
15
+ let contentType = (_a = response.headers.get("Content-Type")) === null || _a === void 0 ? void 0 : _a.toLowerCase();
16
+ if (contentType == null || contentType.length === 0) {
17
+ return getResponseBody(response);
18
+ }
19
+ if (contentType.indexOf(";") !== -1) {
20
+ contentType = (_c = (_b = contentType.split(";")[0]) === null || _b === void 0 ? void 0 : _b.trim()) !== null && _c !== void 0 ? _c : "";
21
+ }
22
+ switch (contentType) {
23
+ case "application/hal+json":
24
+ case "application/json":
25
+ case "application/ld+json":
26
+ case "application/problem+json":
27
+ case "application/vnd.api+json":
28
+ case "text/json":
29
+ const text = yield response.text();
30
+ return text.length > 0 ? fromJson(text) : undefined;
31
+ default:
32
+ if (contentType.startsWith("application/vnd.") && contentType.endsWith("+json")) {
33
+ const text = yield response.text();
34
+ return text.length > 0 ? fromJson(text) : undefined;
35
+ }
36
+ // Fallback to plain text if content type is not recognized
37
+ // Even if no body is present, the response will be an empty string
38
+ return yield response.text();
39
+ }
40
+ });
41
+ }
@@ -0,0 +1 @@
1
+ export declare function getFetchFn(): Promise<typeof fetch>;
@@ -0,0 +1,14 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ export function getFetchFn() {
11
+ return __awaiter(this, void 0, void 0, function* () {
12
+ return fetch;
13
+ });
14
+ }
@@ -0,0 +1 @@
1
+ export declare function getHeader(headers: Record<string, any>, header: string): string | undefined;
@@ -0,0 +1,8 @@
1
+ export function getHeader(headers, header) {
2
+ for (const [headerKey, headerValue] of Object.entries(headers)) {
3
+ if (headerKey.toLowerCase() === header.toLowerCase()) {
4
+ return headerValue;
5
+ }
6
+ }
7
+ return undefined;
8
+ }
@@ -0,0 +1,7 @@
1
+ export declare namespace GetRequestBody {
2
+ interface Args {
3
+ body: unknown;
4
+ type: "json" | "file" | "bytes" | "other";
5
+ }
6
+ }
7
+ export declare function getRequestBody({ body, type }: GetRequestBody.Args): Promise<BodyInit | undefined>;
@@ -0,0 +1,20 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { toJson } from "../json.mjs";
11
+ export function getRequestBody(_a) {
12
+ return __awaiter(this, arguments, void 0, function* ({ body, type }) {
13
+ if (type.includes("json")) {
14
+ return toJson(body);
15
+ }
16
+ else {
17
+ return body;
18
+ }
19
+ });
20
+ }
@@ -0,0 +1 @@
1
+ export declare function getResponseBody(response: Response, responseType?: string): Promise<unknown>;
@@ -0,0 +1,52 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { getBinaryResponse } from "./BinaryResponse.mjs";
11
+ import { isResponseWithBody } from "./ResponseWithBody.mjs";
12
+ import { fromJson } from "../json.mjs";
13
+ export function getResponseBody(response, responseType) {
14
+ return __awaiter(this, void 0, void 0, function* () {
15
+ if (!isResponseWithBody(response)) {
16
+ return undefined;
17
+ }
18
+ switch (responseType) {
19
+ case "binary-response":
20
+ return getBinaryResponse(response);
21
+ case "blob":
22
+ return yield response.blob();
23
+ case "arrayBuffer":
24
+ return yield response.arrayBuffer();
25
+ case "sse":
26
+ return response.body;
27
+ case "streaming":
28
+ return response.body;
29
+ case "text":
30
+ return yield response.text();
31
+ }
32
+ // if responseType is "json" or not specified, try to parse as JSON
33
+ const text = yield response.text();
34
+ if (text.length > 0) {
35
+ try {
36
+ let responseBody = fromJson(text);
37
+ return responseBody;
38
+ }
39
+ catch (err) {
40
+ return {
41
+ ok: false,
42
+ error: {
43
+ reason: "non-json",
44
+ statusCode: response.status,
45
+ rawBody: text,
46
+ },
47
+ };
48
+ }
49
+ }
50
+ return undefined;
51
+ });
52
+ }
@@ -0,0 +1,9 @@
1
+ export type { APIResponse } from "./APIResponse.mjs";
2
+ export type { BinaryResponse } from "./BinaryResponse.mjs";
3
+ export type { Fetcher, FetchFunction } from "./Fetcher.mjs";
4
+ export { fetcher } from "./Fetcher.mjs";
5
+ export { getHeader } from "./getHeader.mjs";
6
+ export { HttpResponsePromise } from "./HttpResponsePromise.mjs";
7
+ export type { RawResponse, WithRawResponse } from "./RawResponse.mjs";
8
+ export { abortRawResponse, toRawResponse, unknownRawResponse } from "./RawResponse.mjs";
9
+ export { Supplier } from "./Supplier.mjs";
@@ -0,0 +1,5 @@
1
+ export { fetcher } from "./Fetcher.mjs";
2
+ export { getHeader } from "./getHeader.mjs";
3
+ export { HttpResponsePromise } from "./HttpResponsePromise.mjs";
4
+ export { abortRawResponse, toRawResponse, unknownRawResponse } from "./RawResponse.mjs";
5
+ export { Supplier } from "./Supplier.mjs";
@@ -0,0 +1 @@
1
+ export declare const makeRequest: (fetchFn: (url: string, init: RequestInit) => Promise<Response>, url: string, method: string, headers: Record<string, string>, requestBody: BodyInit | undefined, timeoutMs?: number, abortSignal?: AbortSignal, withCredentials?: boolean, duplex?: "half") => Promise<Response>;
@@ -0,0 +1,38 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { anySignal, getTimeoutSignal } from "./signals.mjs";
11
+ export const makeRequest = (fetchFn, url, method, headers, requestBody, timeoutMs, abortSignal, withCredentials, duplex) => __awaiter(void 0, void 0, void 0, function* () {
12
+ const signals = [];
13
+ // Add timeout signal
14
+ let timeoutAbortId = undefined;
15
+ if (timeoutMs != null) {
16
+ const { signal, abortId } = getTimeoutSignal(timeoutMs);
17
+ timeoutAbortId = abortId;
18
+ signals.push(signal);
19
+ }
20
+ // Add arbitrary signal
21
+ if (abortSignal != null) {
22
+ signals.push(abortSignal);
23
+ }
24
+ let newSignals = anySignal(signals);
25
+ const response = yield fetchFn(url, {
26
+ method: method,
27
+ headers,
28
+ body: requestBody,
29
+ signal: newSignals,
30
+ credentials: withCredentials ? "include" : undefined,
31
+ // @ts-ignore
32
+ duplex,
33
+ });
34
+ if (timeoutAbortId != null) {
35
+ clearTimeout(timeoutAbortId);
36
+ }
37
+ return response;
38
+ });
@@ -0,0 +1 @@
1
+ export declare function requestWithRetries(requestFn: () => Promise<Response>, maxRetries?: number): Promise<Response>;
@@ -0,0 +1,37 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ const INITIAL_RETRY_DELAY = 1000; // in milliseconds
11
+ const MAX_RETRY_DELAY = 60000; // in milliseconds
12
+ const DEFAULT_MAX_RETRIES = 2;
13
+ const JITTER_FACTOR = 0.2; // 20% random jitter
14
+ function addJitter(delay) {
15
+ // Generate a random value between -JITTER_FACTOR and +JITTER_FACTOR
16
+ const jitterMultiplier = 1 + (Math.random() * 2 - 1) * JITTER_FACTOR;
17
+ return delay * jitterMultiplier;
18
+ }
19
+ export function requestWithRetries(requestFn_1) {
20
+ return __awaiter(this, arguments, void 0, function* (requestFn, maxRetries = DEFAULT_MAX_RETRIES) {
21
+ let response = yield requestFn();
22
+ for (let i = 0; i < maxRetries; ++i) {
23
+ if ([408, 429].includes(response.status) || response.status >= 500) {
24
+ // Calculate base delay using exponential backoff (in milliseconds)
25
+ const baseDelay = Math.min(INITIAL_RETRY_DELAY * Math.pow(2, i), MAX_RETRY_DELAY);
26
+ // Add jitter to the delay
27
+ const delayWithJitter = addJitter(baseDelay);
28
+ yield new Promise((resolve) => setTimeout(resolve, delayWithJitter));
29
+ response = yield requestFn();
30
+ }
31
+ else {
32
+ break;
33
+ }
34
+ }
35
+ return response;
36
+ });
37
+ }
@@ -0,0 +1,11 @@
1
+ export declare function getTimeoutSignal(timeoutMs: number): {
2
+ signal: AbortSignal;
3
+ abortId: NodeJS.Timeout;
4
+ };
5
+ /**
6
+ * Returns an abort signal that is getting aborted when
7
+ * at least one of the specified abort signals is aborted.
8
+ *
9
+ * Requires at least node.js 18.
10
+ */
11
+ export declare function anySignal(...args: AbortSignal[] | [AbortSignal[]]): AbortSignal;
@@ -0,0 +1,32 @@
1
+ const TIMEOUT = "timeout";
2
+ export function getTimeoutSignal(timeoutMs) {
3
+ const controller = new AbortController();
4
+ const abortId = setTimeout(() => controller.abort(TIMEOUT), timeoutMs);
5
+ return { signal: controller.signal, abortId };
6
+ }
7
+ /**
8
+ * Returns an abort signal that is getting aborted when
9
+ * at least one of the specified abort signals is aborted.
10
+ *
11
+ * Requires at least node.js 18.
12
+ */
13
+ export function anySignal(...args) {
14
+ // Allowing signals to be passed either as array
15
+ // of signals or as multiple arguments.
16
+ const signals = (args.length === 1 && Array.isArray(args[0]) ? args[0] : args);
17
+ const controller = new AbortController();
18
+ for (const signal of signals) {
19
+ if (signal.aborted) {
20
+ // Exiting early if one of the signals
21
+ // is already aborted.
22
+ controller.abort(signal === null || signal === void 0 ? void 0 : signal.reason);
23
+ break;
24
+ }
25
+ // Listening for signals and removing the listeners
26
+ // when at least one symbol is aborted.
27
+ signal.addEventListener("abort", () => controller.abort(signal === null || signal === void 0 ? void 0 : signal.reason), {
28
+ signal: controller.signal,
29
+ });
30
+ }
31
+ return controller.signal;
32
+ }
@@ -0,0 +1,3 @@
1
+ import * as core from "./index.mjs";
2
+ export declare function mergeHeaders(...headersArray: (Record<string, string | core.Supplier<string | undefined> | undefined> | undefined)[]): Record<string, string | core.Supplier<string | undefined>>;
3
+ export declare function mergeOnlyDefinedHeaders(...headersArray: (Record<string, string | core.Supplier<string | undefined> | undefined> | undefined)[]): Record<string, string | core.Supplier<string | undefined>>;
@@ -0,0 +1,25 @@
1
+ export function mergeHeaders(...headersArray) {
2
+ const result = {};
3
+ for (const [key, value] of headersArray
4
+ .filter((headers) => headers != null)
5
+ .flatMap((headers) => Object.entries(headers))) {
6
+ if (value != null) {
7
+ result[key] = value;
8
+ }
9
+ else if (key in result) {
10
+ delete result[key];
11
+ }
12
+ }
13
+ return result;
14
+ }
15
+ export function mergeOnlyDefinedHeaders(...headersArray) {
16
+ const result = {};
17
+ for (const [key, value] of headersArray
18
+ .filter((headers) => headers != null)
19
+ .flatMap((headers) => Object.entries(headers))) {
20
+ if (value != null) {
21
+ result[key] = value;
22
+ }
23
+ }
24
+ return result;
25
+ }
@@ -0,0 +1,5 @@
1
+ export * from "./fetcher/index.mjs";
2
+ export * from "./runtime/index.mjs";
3
+ export * as url from "./url/index.mjs";
4
+ export * from "./auth/index.mjs";
5
+ export * from "./base64.mjs";
@@ -0,0 +1,5 @@
1
+ export * from "./fetcher/index.mjs";
2
+ export * from "./runtime/index.mjs";
3
+ export * as url from "./url/index.mjs";
4
+ export * from "./auth/index.mjs";
5
+ export * from "./base64.mjs";
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Serialize a value to JSON
3
+ * @param value A JavaScript value, usually an object or array, to be converted.
4
+ * @param replacer A function that transforms the results.
5
+ * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
6
+ * @returns JSON string
7
+ */
8
+ export declare const toJson: (value: unknown, replacer?: (this: unknown, key: string, value: unknown) => unknown, space?: string | number) => string;
9
+ /**
10
+ * Parse JSON string to object, array, or other type
11
+ * @param text A valid JSON string.
12
+ * @param reviver A function that transforms the results. This function is called for each member of the object. If a member contains nested objects, the nested objects are transformed before the parent object is.
13
+ * @returns Parsed object, array, or other type
14
+ */
15
+ export declare function fromJson<T = unknown>(text: string, reviver?: (this: unknown, key: string, value: unknown) => unknown): T;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Serialize a value to JSON
3
+ * @param value A JavaScript value, usually an object or array, to be converted.
4
+ * @param replacer A function that transforms the results.
5
+ * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
6
+ * @returns JSON string
7
+ */
8
+ export const toJson = (value, replacer, space) => {
9
+ return JSON.stringify(value, replacer, space);
10
+ };
11
+ /**
12
+ * Parse JSON string to object, array, or other type
13
+ * @param text A valid JSON string.
14
+ * @param reviver A function that transforms the results. This function is called for each member of the object. If a member contains nested objects, the nested objects are transformed before the parent object is.
15
+ * @returns Parsed object, array, or other type
16
+ */
17
+ export function fromJson(text, reviver) {
18
+ return JSON.parse(text, reviver);
19
+ }
@@ -0,0 +1 @@
1
+ export { RUNTIME } from "./runtime.mjs";
@@ -0,0 +1 @@
1
+ export { RUNTIME } from "./runtime.mjs";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * A constant that indicates which environment and version the SDK is running in.
3
+ */
4
+ export declare const RUNTIME: Runtime;
5
+ export interface Runtime {
6
+ type: "browser" | "web-worker" | "deno" | "bun" | "node" | "react-native" | "unknown" | "workerd" | "edge-runtime";
7
+ version?: string;
8
+ parsedVersion?: number;
9
+ }
@@ -0,0 +1,99 @@
1
+ /**
2
+ * A constant that indicates which environment and version the SDK is running in.
3
+ */
4
+ export const RUNTIME = evaluateRuntime();
5
+ function evaluateRuntime() {
6
+ var _a, _b, _c, _d, _e;
7
+ /**
8
+ * A constant that indicates whether the environment the code is running is a Web Browser.
9
+ */
10
+ const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
11
+ if (isBrowser) {
12
+ return {
13
+ type: "browser",
14
+ version: window.navigator.userAgent,
15
+ };
16
+ }
17
+ /**
18
+ * A constant that indicates whether the environment the code is running is Cloudflare.
19
+ * https://developers.cloudflare.com/workers/runtime-apis/web-standards/#navigatoruseragent
20
+ */
21
+ const isCloudflare = typeof globalThis !== "undefined" && ((_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) === "Cloudflare-Workers";
22
+ if (isCloudflare) {
23
+ return {
24
+ type: "workerd",
25
+ };
26
+ }
27
+ /**
28
+ * A constant that indicates whether the environment the code is running is Edge Runtime.
29
+ * https://vercel.com/docs/functions/runtimes/edge-runtime#check-if-you're-running-on-the-edge-runtime
30
+ */
31
+ const isEdgeRuntime = typeof EdgeRuntime === "string";
32
+ if (isEdgeRuntime) {
33
+ return {
34
+ type: "edge-runtime",
35
+ };
36
+ }
37
+ /**
38
+ * A constant that indicates whether the environment the code is running is a Web Worker.
39
+ */
40
+ const isWebWorker = typeof self === "object" &&
41
+ typeof (self === null || self === void 0 ? void 0 : self.importScripts) === "function" &&
42
+ (((_b = self.constructor) === null || _b === void 0 ? void 0 : _b.name) === "DedicatedWorkerGlobalScope" ||
43
+ ((_c = self.constructor) === null || _c === void 0 ? void 0 : _c.name) === "ServiceWorkerGlobalScope" ||
44
+ ((_d = self.constructor) === null || _d === void 0 ? void 0 : _d.name) === "SharedWorkerGlobalScope");
45
+ if (isWebWorker) {
46
+ return {
47
+ type: "web-worker",
48
+ };
49
+ }
50
+ /**
51
+ * A constant that indicates whether the environment the code is running is Deno.
52
+ * FYI Deno spoofs process.versions.node, see https://deno.land/std@0.177.0/node/process.ts?s=versions
53
+ */
54
+ const isDeno = typeof Deno !== "undefined" && typeof Deno.version !== "undefined" && typeof Deno.version.deno !== "undefined";
55
+ if (isDeno) {
56
+ return {
57
+ type: "deno",
58
+ version: Deno.version.deno,
59
+ };
60
+ }
61
+ /**
62
+ * A constant that indicates whether the environment the code is running is Bun.sh.
63
+ */
64
+ const isBun = typeof Bun !== "undefined" && typeof Bun.version !== "undefined";
65
+ if (isBun) {
66
+ return {
67
+ type: "bun",
68
+ version: Bun.version,
69
+ };
70
+ }
71
+ /**
72
+ * A constant that indicates whether the environment the code is running is Node.JS.
73
+ */
74
+ const isNode = typeof process !== "undefined" &&
75
+ "version" in process &&
76
+ !!process.version &&
77
+ "versions" in process &&
78
+ !!((_e = process.versions) === null || _e === void 0 ? void 0 : _e.node);
79
+ if (isNode) {
80
+ return {
81
+ type: "node",
82
+ version: process.versions.node,
83
+ parsedVersion: Number(process.versions.node.split(".")[0]),
84
+ };
85
+ }
86
+ /**
87
+ * A constant that indicates whether the environment the code is running is in React-Native.
88
+ * https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/setUpNavigator.js
89
+ */
90
+ const isReactNative = typeof navigator !== "undefined" && (navigator === null || navigator === void 0 ? void 0 : navigator.product) === "ReactNative";
91
+ if (isReactNative) {
92
+ return {
93
+ type: "react-native",
94
+ };
95
+ }
96
+ return {
97
+ type: "unknown",
98
+ };
99
+ }
@@ -0,0 +1,2 @@
1
+ export { join } from "./join.mjs";
2
+ export { toQueryString } from "./qs.mjs";
@@ -0,0 +1,2 @@
1
+ export { join } from "./join.mjs";
2
+ export { toQueryString } from "./qs.mjs";
@@ -0,0 +1 @@
1
+ export declare function join(base: string, ...segments: string[]): string;
@@ -0,0 +1,66 @@
1
+ export function join(base, ...segments) {
2
+ if (!base) {
3
+ return "";
4
+ }
5
+ if (segments.length === 0) {
6
+ return base;
7
+ }
8
+ if (base.includes("://")) {
9
+ let url;
10
+ try {
11
+ url = new URL(base);
12
+ }
13
+ catch (_a) {
14
+ // Fallback to path joining if URL is malformed
15
+ return joinPath(base, ...segments);
16
+ }
17
+ const lastSegment = segments[segments.length - 1];
18
+ const shouldPreserveTrailingSlash = lastSegment && lastSegment.endsWith("/");
19
+ for (const segment of segments) {
20
+ const cleanSegment = trimSlashes(segment);
21
+ if (cleanSegment) {
22
+ url.pathname = joinPathSegments(url.pathname, cleanSegment);
23
+ }
24
+ }
25
+ if (shouldPreserveTrailingSlash && !url.pathname.endsWith("/")) {
26
+ url.pathname += "/";
27
+ }
28
+ return url.toString();
29
+ }
30
+ return joinPath(base, ...segments);
31
+ }
32
+ function joinPath(base, ...segments) {
33
+ if (segments.length === 0) {
34
+ return base;
35
+ }
36
+ let result = base;
37
+ const lastSegment = segments[segments.length - 1];
38
+ const shouldPreserveTrailingSlash = lastSegment && lastSegment.endsWith("/");
39
+ for (const segment of segments) {
40
+ const cleanSegment = trimSlashes(segment);
41
+ if (cleanSegment) {
42
+ result = joinPathSegments(result, cleanSegment);
43
+ }
44
+ }
45
+ if (shouldPreserveTrailingSlash && !result.endsWith("/")) {
46
+ result += "/";
47
+ }
48
+ return result;
49
+ }
50
+ function joinPathSegments(left, right) {
51
+ if (left.endsWith("/")) {
52
+ return left + right;
53
+ }
54
+ return left + "/" + right;
55
+ }
56
+ function trimSlashes(str) {
57
+ if (!str)
58
+ return str;
59
+ let start = 0;
60
+ let end = str.length;
61
+ if (str.startsWith("/"))
62
+ start = 1;
63
+ if (str.endsWith("/"))
64
+ end = str.length - 1;
65
+ return start === 0 && end === str.length ? str : str.slice(start, end);
66
+ }
@@ -0,0 +1,6 @@
1
+ interface QueryStringOptions {
2
+ arrayFormat?: "indices" | "repeat";
3
+ encode?: boolean;
4
+ }
5
+ export declare function toQueryString(obj: unknown, options?: QueryStringOptions): string;
6
+ export {};