saferx-pharma-sdk 1.4.3 → 2.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 (541) hide show
  1. package/README.md +31 -0
  2. package/dist/client.d.ts +47 -0
  3. package/dist/client.js +166 -0
  4. package/package.json +11 -85
  5. package/src/client.ts +117 -0
  6. package/dist/cjs/BaseClient.d.ts +0 -39
  7. package/dist/cjs/BaseClient.js +0 -62
  8. package/dist/cjs/Client.d.ts +0 -29
  9. package/dist/cjs/Client.js +0 -88
  10. package/dist/cjs/api/errors/BadRequestError.d.ts +0 -5
  11. package/dist/cjs/api/errors/BadRequestError.js +0 -54
  12. package/dist/cjs/api/errors/ForbiddenError.d.ts +0 -5
  13. package/dist/cjs/api/errors/ForbiddenError.js +0 -54
  14. package/dist/cjs/api/errors/InternalServerError.d.ts +0 -5
  15. package/dist/cjs/api/errors/InternalServerError.js +0 -54
  16. package/dist/cjs/api/errors/TooManyRequestsError.d.ts +0 -5
  17. package/dist/cjs/api/errors/TooManyRequestsError.js +0 -54
  18. package/dist/cjs/api/errors/UnauthorizedError.d.ts +0 -6
  19. package/dist/cjs/api/errors/UnauthorizedError.js +0 -54
  20. package/dist/cjs/api/errors/index.d.ts +0 -5
  21. package/dist/cjs/api/errors/index.js +0 -21
  22. package/dist/cjs/api/index.d.ts +0 -3
  23. package/dist/cjs/api/index.js +0 -19
  24. package/dist/cjs/api/resources/developers/client/Client.d.ts +0 -56
  25. package/dist/cjs/api/resources/developers/client/Client.js +0 -186
  26. package/dist/cjs/api/resources/developers/client/index.d.ts +0 -1
  27. package/dist/cjs/api/resources/developers/client/index.js +0 -17
  28. package/dist/cjs/api/resources/developers/client/requests/CreateFreeKeyDevelopersRequest.d.ts +0 -10
  29. package/dist/cjs/api/resources/developers/client/requests/CreateFreeKeyDevelopersRequest.js +0 -3
  30. package/dist/cjs/api/resources/developers/client/requests/VerifyFreeKeyDevelopersRequest.d.ts +0 -13
  31. package/dist/cjs/api/resources/developers/client/requests/VerifyFreeKeyDevelopersRequest.js +0 -3
  32. package/dist/cjs/api/resources/developers/client/requests/index.d.ts +0 -2
  33. package/dist/cjs/api/resources/developers/client/requests/index.js +0 -2
  34. package/dist/cjs/api/resources/developers/exports.d.ts +0 -2
  35. package/dist/cjs/api/resources/developers/exports.js +0 -21
  36. package/dist/cjs/api/resources/developers/index.d.ts +0 -2
  37. package/dist/cjs/api/resources/developers/index.js +0 -18
  38. package/dist/cjs/api/resources/developers/types/CreateFreeKeyDevelopersResponse.d.ts +0 -18
  39. package/dist/cjs/api/resources/developers/types/CreateFreeKeyDevelopersResponse.js +0 -3
  40. package/dist/cjs/api/resources/developers/types/VerifyFreeKeyDevelopersResponse.d.ts +0 -12
  41. package/dist/cjs/api/resources/developers/types/VerifyFreeKeyDevelopersResponse.js +0 -3
  42. package/dist/cjs/api/resources/developers/types/index.d.ts +0 -2
  43. package/dist/cjs/api/resources/developers/types/index.js +0 -18
  44. package/dist/cjs/api/resources/drugSafety/client/Client.d.ts +0 -132
  45. package/dist/cjs/api/resources/drugSafety/client/Client.js +0 -290
  46. package/dist/cjs/api/resources/drugSafety/client/index.d.ts +0 -1
  47. package/dist/cjs/api/resources/drugSafety/client/index.js +0 -17
  48. package/dist/cjs/api/resources/drugSafety/client/requests/DrugSafetyCheckRequest.d.ts +0 -98
  49. package/dist/cjs/api/resources/drugSafety/client/requests/DrugSafetyCheckRequest.js +0 -15
  50. package/dist/cjs/api/resources/drugSafety/client/requests/index.d.ts +0 -1
  51. package/dist/cjs/api/resources/drugSafety/client/requests/index.js +0 -5
  52. package/dist/cjs/api/resources/drugSafety/exports.d.ts +0 -2
  53. package/dist/cjs/api/resources/drugSafety/exports.js +0 -21
  54. package/dist/cjs/api/resources/drugSafety/index.d.ts +0 -2
  55. package/dist/cjs/api/resources/drugSafety/index.js +0 -18
  56. package/dist/cjs/api/resources/drugSafety/types/GetDrugSafetyHealthResponse.d.ts +0 -14
  57. package/dist/cjs/api/resources/drugSafety/types/GetDrugSafetyHealthResponse.js +0 -11
  58. package/dist/cjs/api/resources/drugSafety/types/index.d.ts +0 -1
  59. package/dist/cjs/api/resources/drugSafety/types/index.js +0 -17
  60. package/dist/cjs/api/resources/index.d.ts +0 -6
  61. package/dist/cjs/api/resources/index.js +0 -45
  62. package/dist/cjs/api/types/AdverseEffect.d.ts +0 -43
  63. package/dist/cjs/api/types/AdverseEffect.js +0 -3
  64. package/dist/cjs/api/types/Alert.d.ts +0 -70
  65. package/dist/cjs/api/types/Alert.js +0 -41
  66. package/dist/cjs/api/types/AllergyCrossReactivityReference.d.ts +0 -16
  67. package/dist/cjs/api/types/AllergyCrossReactivityReference.js +0 -3
  68. package/dist/cjs/api/types/AllergyData.d.ts +0 -24
  69. package/dist/cjs/api/types/AllergyData.js +0 -11
  70. package/dist/cjs/api/types/AllergyFamilyReference.d.ts +0 -10
  71. package/dist/cjs/api/types/AllergyFamilyReference.js +0 -3
  72. package/dist/cjs/api/types/AllergyInputEntry.d.ts +0 -10
  73. package/dist/cjs/api/types/AllergyInputEntry.js +0 -3
  74. package/dist/cjs/api/types/AllergyProductFamilyReference.d.ts +0 -9
  75. package/dist/cjs/api/types/AllergyProductFamilyReference.js +0 -3
  76. package/dist/cjs/api/types/AllergySummary.d.ts +0 -14
  77. package/dist/cjs/api/types/AllergySummary.js +0 -3
  78. package/dist/cjs/api/types/AllergyWarning.d.ts +0 -30
  79. package/dist/cjs/api/types/AllergyWarning.js +0 -11
  80. package/dist/cjs/api/types/BadRequestErrorBody.d.ts +0 -3
  81. package/dist/cjs/api/types/BadRequestErrorBody.js +0 -3
  82. package/dist/cjs/api/types/BlackBoxWarning.d.ts +0 -15
  83. package/dist/cjs/api/types/BlackBoxWarning.js +0 -3
  84. package/dist/cjs/api/types/BlockedResponse.d.ts +0 -9
  85. package/dist/cjs/api/types/BlockedResponse.js +0 -3
  86. package/dist/cjs/api/types/ClinicalAlert.d.ts +0 -56
  87. package/dist/cjs/api/types/ClinicalAlert.js +0 -3
  88. package/dist/cjs/api/types/ClinicalConcern.d.ts +0 -15
  89. package/dist/cjs/api/types/ClinicalConcern.js +0 -3
  90. package/dist/cjs/api/types/ClinicalContextApplied.d.ts +0 -10
  91. package/dist/cjs/api/types/ClinicalContextApplied.js +0 -3
  92. package/dist/cjs/api/types/ClinicalData.d.ts +0 -17
  93. package/dist/cjs/api/types/ClinicalData.js +0 -3
  94. package/dist/cjs/api/types/Condition.d.ts +0 -22
  95. package/dist/cjs/api/types/Condition.js +0 -25
  96. package/dist/cjs/api/types/DailyLimit.d.ts +0 -20
  97. package/dist/cjs/api/types/DailyLimit.js +0 -13
  98. package/dist/cjs/api/types/DomainCode.d.ts +0 -20
  99. package/dist/cjs/api/types/DomainCode.js +0 -23
  100. package/dist/cjs/api/types/DoseClassification.d.ts +0 -40
  101. package/dist/cjs/api/types/DoseClassification.js +0 -22
  102. package/dist/cjs/api/types/DoseComponent.d.ts +0 -30
  103. package/dist/cjs/api/types/DoseComponent.js +0 -12
  104. package/dist/cjs/api/types/DosingData.d.ts +0 -63
  105. package/dist/cjs/api/types/DosingData.js +0 -18
  106. package/dist/cjs/api/types/DrugClinicalData.d.ts +0 -7
  107. package/dist/cjs/api/types/DrugClinicalData.js +0 -3
  108. package/dist/cjs/api/types/DrugSafetyCheckResponse.d.ts +0 -29
  109. package/dist/cjs/api/types/DrugSafetyCheckResponse.js +0 -11
  110. package/dist/cjs/api/types/ErrorResponse.d.ts +0 -29
  111. package/dist/cjs/api/types/ErrorResponse.js +0 -3
  112. package/dist/cjs/api/types/FoodConflict.d.ts +0 -21
  113. package/dist/cjs/api/types/FoodConflict.js +0 -3
  114. package/dist/cjs/api/types/FoodData.d.ts +0 -11
  115. package/dist/cjs/api/types/FoodData.js +0 -3
  116. package/dist/cjs/api/types/ForbiddenErrorBody.d.ts +0 -4
  117. package/dist/cjs/api/types/ForbiddenErrorBody.js +0 -3
  118. package/dist/cjs/api/types/IdentityMatch.d.ts +0 -13
  119. package/dist/cjs/api/types/IdentityMatch.js +0 -3
  120. package/dist/cjs/api/types/IntelligenceClinicalProfile.d.ts +0 -24
  121. package/dist/cjs/api/types/IntelligenceClinicalProfile.js +0 -13
  122. package/dist/cjs/api/types/IntelligenceContext.d.ts +0 -17
  123. package/dist/cjs/api/types/IntelligenceContext.js +0 -3
  124. package/dist/cjs/api/types/IntelligenceProcessorError.d.ts +0 -4
  125. package/dist/cjs/api/types/IntelligenceProcessorError.js +0 -3
  126. package/dist/cjs/api/types/IntelligenceResult.d.ts +0 -16
  127. package/dist/cjs/api/types/IntelligenceResult.js +0 -3
  128. package/dist/cjs/api/types/IntelligenceSynthesis.d.ts +0 -6
  129. package/dist/cjs/api/types/IntelligenceSynthesis.js +0 -3
  130. package/dist/cjs/api/types/Interaction.d.ts +0 -59
  131. package/dist/cjs/api/types/Interaction.js +0 -14
  132. package/dist/cjs/api/types/InteractionSummary.d.ts +0 -13
  133. package/dist/cjs/api/types/InteractionSummary.js +0 -3
  134. package/dist/cjs/api/types/InteractionsData.d.ts +0 -11
  135. package/dist/cjs/api/types/InteractionsData.js +0 -3
  136. package/dist/cjs/api/types/InternalServerErrorBody.d.ts +0 -3
  137. package/dist/cjs/api/types/InternalServerErrorBody.js +0 -3
  138. package/dist/cjs/api/types/MealTiming.d.ts +0 -26
  139. package/dist/cjs/api/types/MealTiming.js +0 -3
  140. package/dist/cjs/api/types/MedicationHistoryItem.d.ts +0 -22
  141. package/dist/cjs/api/types/MedicationHistoryItem.js +0 -15
  142. package/dist/cjs/api/types/Meta.d.ts +0 -29
  143. package/dist/cjs/api/types/Meta.js +0 -14
  144. package/dist/cjs/api/types/MetadataResponse.d.ts +0 -93
  145. package/dist/cjs/api/types/MetadataResponse.js +0 -17
  146. package/dist/cjs/api/types/Monitoring.d.ts +0 -22
  147. package/dist/cjs/api/types/Monitoring.js +0 -3
  148. package/dist/cjs/api/types/PatientProfile.d.ts +0 -43
  149. package/dist/cjs/api/types/PatientProfile.js +0 -20
  150. package/dist/cjs/api/types/Population.d.ts +0 -16
  151. package/dist/cjs/api/types/Population.js +0 -19
  152. package/dist/cjs/api/types/PopulationMonitoring.d.ts +0 -26
  153. package/dist/cjs/api/types/PopulationMonitoring.js +0 -3
  154. package/dist/cjs/api/types/QuotaMeta.d.ts +0 -11
  155. package/dist/cjs/api/types/QuotaMeta.js +0 -3
  156. package/dist/cjs/api/types/RateLimitResponse.d.ts +0 -37
  157. package/dist/cjs/api/types/RateLimitResponse.js +0 -13
  158. package/dist/cjs/api/types/ReferenceDose.d.ts +0 -11
  159. package/dist/cjs/api/types/ReferenceDose.js +0 -3
  160. package/dist/cjs/api/types/ReproductiveSafetyData.d.ts +0 -58
  161. package/dist/cjs/api/types/ReproductiveSafetyData.js +0 -3
  162. package/dist/cjs/api/types/ReproductiveWarning.d.ts +0 -13
  163. package/dist/cjs/api/types/ReproductiveWarning.js +0 -3
  164. package/dist/cjs/api/types/ResolvedDrug.d.ts +0 -70
  165. package/dist/cjs/api/types/ResolvedDrug.js +0 -3
  166. package/dist/cjs/api/types/SafetyData.d.ts +0 -23
  167. package/dist/cjs/api/types/SafetyData.js +0 -3
  168. package/dist/cjs/api/types/SideEffectsData.d.ts +0 -38
  169. package/dist/cjs/api/types/SideEffectsData.js +0 -18
  170. package/dist/cjs/api/types/TooManyRequestsErrorBody.d.ts +0 -3
  171. package/dist/cjs/api/types/TooManyRequestsErrorBody.js +0 -3
  172. package/dist/cjs/api/types/index.d.ts +0 -55
  173. package/dist/cjs/api/types/index.js +0 -71
  174. package/dist/cjs/auth/HeaderAuthProvider.d.ts +0 -20
  175. package/dist/cjs/auth/HeaderAuthProvider.js +0 -80
  176. package/dist/cjs/auth/index.d.ts +0 -1
  177. package/dist/cjs/auth/index.js +0 -5
  178. package/dist/cjs/core/auth/AuthProvider.d.ts +0 -7
  179. package/dist/cjs/core/auth/AuthProvider.js +0 -2
  180. package/dist/cjs/core/auth/AuthRequest.d.ts +0 -9
  181. package/dist/cjs/core/auth/AuthRequest.js +0 -2
  182. package/dist/cjs/core/auth/BasicAuth.d.ts +0 -8
  183. package/dist/cjs/core/auth/BasicAuth.js +0 -27
  184. package/dist/cjs/core/auth/BearerToken.d.ts +0 -7
  185. package/dist/cjs/core/auth/BearerToken.js +0 -16
  186. package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +0 -5
  187. package/dist/cjs/core/auth/NoOpAuthProvider.js +0 -9
  188. package/dist/cjs/core/auth/index.d.ts +0 -5
  189. package/dist/cjs/core/auth/index.js +0 -9
  190. package/dist/cjs/core/base64.d.ts +0 -2
  191. package/dist/cjs/core/base64.js +0 -26
  192. package/dist/cjs/core/exports.d.ts +0 -1
  193. package/dist/cjs/core/exports.js +0 -17
  194. package/dist/cjs/core/fetcher/APIResponse.d.ts +0 -20
  195. package/dist/cjs/core/fetcher/APIResponse.js +0 -2
  196. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +0 -19
  197. package/dist/cjs/core/fetcher/BinaryResponse.js +0 -17
  198. package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +0 -13
  199. package/dist/cjs/core/fetcher/EndpointMetadata.js +0 -2
  200. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +0 -12
  201. package/dist/cjs/core/fetcher/EndpointSupplier.js +0 -22
  202. package/dist/cjs/core/fetcher/Fetcher.d.ts +0 -48
  203. package/dist/cjs/core/fetcher/Fetcher.js +0 -322
  204. package/dist/cjs/core/fetcher/Headers.d.ts +0 -2
  205. package/dist/cjs/core/fetcher/Headers.js +0 -84
  206. package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +0 -58
  207. package/dist/cjs/core/fetcher/HttpResponsePromise.js +0 -103
  208. package/dist/cjs/core/fetcher/RawResponse.d.ts +0 -29
  209. package/dist/cjs/core/fetcher/RawResponse.js +0 -44
  210. package/dist/cjs/core/fetcher/Supplier.d.ts +0 -4
  211. package/dist/cjs/core/fetcher/Supplier.js +0 -22
  212. package/dist/cjs/core/fetcher/createRequestUrl.d.ts +0 -1
  213. package/dist/cjs/core/fetcher/createRequestUrl.js +0 -8
  214. package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +0 -1
  215. package/dist/cjs/core/fetcher/getErrorResponseBody.js +0 -45
  216. package/dist/cjs/core/fetcher/getFetchFn.d.ts +0 -1
  217. package/dist/cjs/core/fetcher/getFetchFn.js +0 -17
  218. package/dist/cjs/core/fetcher/getHeader.d.ts +0 -1
  219. package/dist/cjs/core/fetcher/getHeader.js +0 -11
  220. package/dist/cjs/core/fetcher/getRequestBody.d.ts +0 -7
  221. package/dist/cjs/core/fetcher/getRequestBody.js +0 -27
  222. package/dist/cjs/core/fetcher/getResponseBody.d.ts +0 -1
  223. package/dist/cjs/core/fetcher/getResponseBody.js +0 -69
  224. package/dist/cjs/core/fetcher/index.d.ts +0 -13
  225. package/dist/cjs/core/fetcher/index.js +0 -19
  226. package/dist/cjs/core/fetcher/makePassthroughRequest.d.ts +0 -49
  227. package/dist/cjs/core/fetcher/makePassthroughRequest.js +0 -135
  228. package/dist/cjs/core/fetcher/makeRequest.d.ts +0 -6
  229. package/dist/cjs/core/fetcher/makeRequest.js +0 -61
  230. package/dist/cjs/core/fetcher/requestWithRetries.d.ts +0 -1
  231. package/dist/cjs/core/fetcher/requestWithRetries.js +0 -67
  232. package/dist/cjs/core/fetcher/signals.d.ts +0 -5
  233. package/dist/cjs/core/fetcher/signals.js +0 -24
  234. package/dist/cjs/core/headers.d.ts +0 -2
  235. package/dist/cjs/core/headers.js +0 -31
  236. package/dist/cjs/core/index.d.ts +0 -6
  237. package/dist/cjs/core/index.js +0 -45
  238. package/dist/cjs/core/json.d.ts +0 -15
  239. package/dist/cjs/core/json.js +0 -24
  240. package/dist/cjs/core/logging/exports.d.ts +0 -18
  241. package/dist/cjs/core/logging/exports.js +0 -45
  242. package/dist/cjs/core/logging/index.d.ts +0 -1
  243. package/dist/cjs/core/logging/index.js +0 -17
  244. package/dist/cjs/core/logging/logger.d.ts +0 -126
  245. package/dist/cjs/core/logging/logger.js +0 -144
  246. package/dist/cjs/core/runtime/index.d.ts +0 -1
  247. package/dist/cjs/core/runtime/index.js +0 -5
  248. package/dist/cjs/core/runtime/runtime.d.ts +0 -9
  249. package/dist/cjs/core/runtime/runtime.js +0 -104
  250. package/dist/cjs/core/url/encodePathParam.d.ts +0 -1
  251. package/dist/cjs/core/url/encodePathParam.js +0 -21
  252. package/dist/cjs/core/url/index.d.ts +0 -3
  253. package/dist/cjs/core/url/index.js +0 -9
  254. package/dist/cjs/core/url/join.d.ts +0 -1
  255. package/dist/cjs/core/url/join.js +0 -68
  256. package/dist/cjs/core/url/qs.d.ts +0 -6
  257. package/dist/cjs/core/url/qs.js +0 -64
  258. package/dist/cjs/environments.d.ts +0 -4
  259. package/dist/cjs/environments.js +0 -7
  260. package/dist/cjs/errors/SafeRxError.d.ts +0 -12
  261. package/dist/cjs/errors/SafeRxError.js +0 -32
  262. package/dist/cjs/errors/SafeRxTimeoutError.d.ts +0 -3
  263. package/dist/cjs/errors/SafeRxTimeoutError.js +0 -15
  264. package/dist/cjs/errors/handleNonStatusCodeError.d.ts +0 -2
  265. package/dist/cjs/errors/handleNonStatusCodeError.js +0 -65
  266. package/dist/cjs/errors/index.d.ts +0 -2
  267. package/dist/cjs/errors/index.js +0 -7
  268. package/dist/cjs/exports.d.ts +0 -1
  269. package/dist/cjs/exports.js +0 -17
  270. package/dist/cjs/index.d.ts +0 -6
  271. package/dist/cjs/index.js +0 -48
  272. package/dist/cjs/version.d.ts +0 -1
  273. package/dist/cjs/version.js +0 -4
  274. package/dist/esm/BaseClient.d.mts +0 -39
  275. package/dist/esm/BaseClient.mjs +0 -25
  276. package/dist/esm/Client.d.mts +0 -29
  277. package/dist/esm/Client.mjs +0 -51
  278. package/dist/esm/api/errors/BadRequestError.d.mts +0 -5
  279. package/dist/esm/api/errors/BadRequestError.mjs +0 -17
  280. package/dist/esm/api/errors/ForbiddenError.d.mts +0 -5
  281. package/dist/esm/api/errors/ForbiddenError.mjs +0 -17
  282. package/dist/esm/api/errors/InternalServerError.d.mts +0 -5
  283. package/dist/esm/api/errors/InternalServerError.mjs +0 -17
  284. package/dist/esm/api/errors/TooManyRequestsError.d.mts +0 -5
  285. package/dist/esm/api/errors/TooManyRequestsError.mjs +0 -17
  286. package/dist/esm/api/errors/UnauthorizedError.d.mts +0 -6
  287. package/dist/esm/api/errors/UnauthorizedError.mjs +0 -17
  288. package/dist/esm/api/errors/index.d.mts +0 -5
  289. package/dist/esm/api/errors/index.mjs +0 -5
  290. package/dist/esm/api/index.d.mts +0 -3
  291. package/dist/esm/api/index.mjs +0 -3
  292. package/dist/esm/api/resources/developers/client/Client.d.mts +0 -56
  293. package/dist/esm/api/resources/developers/client/Client.mjs +0 -149
  294. package/dist/esm/api/resources/developers/client/index.d.mts +0 -1
  295. package/dist/esm/api/resources/developers/client/index.mjs +0 -1
  296. package/dist/esm/api/resources/developers/client/requests/CreateFreeKeyDevelopersRequest.d.mts +0 -10
  297. package/dist/esm/api/resources/developers/client/requests/CreateFreeKeyDevelopersRequest.mjs +0 -2
  298. package/dist/esm/api/resources/developers/client/requests/VerifyFreeKeyDevelopersRequest.d.mts +0 -13
  299. package/dist/esm/api/resources/developers/client/requests/VerifyFreeKeyDevelopersRequest.mjs +0 -2
  300. package/dist/esm/api/resources/developers/client/requests/index.d.mts +0 -2
  301. package/dist/esm/api/resources/developers/client/requests/index.mjs +0 -1
  302. package/dist/esm/api/resources/developers/exports.d.mts +0 -2
  303. package/dist/esm/api/resources/developers/exports.mjs +0 -3
  304. package/dist/esm/api/resources/developers/index.d.mts +0 -2
  305. package/dist/esm/api/resources/developers/index.mjs +0 -2
  306. package/dist/esm/api/resources/developers/types/CreateFreeKeyDevelopersResponse.d.mts +0 -18
  307. package/dist/esm/api/resources/developers/types/CreateFreeKeyDevelopersResponse.mjs +0 -2
  308. package/dist/esm/api/resources/developers/types/VerifyFreeKeyDevelopersResponse.d.mts +0 -12
  309. package/dist/esm/api/resources/developers/types/VerifyFreeKeyDevelopersResponse.mjs +0 -2
  310. package/dist/esm/api/resources/developers/types/index.d.mts +0 -2
  311. package/dist/esm/api/resources/developers/types/index.mjs +0 -2
  312. package/dist/esm/api/resources/drugSafety/client/Client.d.mts +0 -132
  313. package/dist/esm/api/resources/drugSafety/client/Client.mjs +0 -253
  314. package/dist/esm/api/resources/drugSafety/client/index.d.mts +0 -1
  315. package/dist/esm/api/resources/drugSafety/client/index.mjs +0 -1
  316. package/dist/esm/api/resources/drugSafety/client/requests/DrugSafetyCheckRequest.d.mts +0 -98
  317. package/dist/esm/api/resources/drugSafety/client/requests/DrugSafetyCheckRequest.mjs +0 -12
  318. package/dist/esm/api/resources/drugSafety/client/requests/index.d.mts +0 -1
  319. package/dist/esm/api/resources/drugSafety/client/requests/index.mjs +0 -1
  320. package/dist/esm/api/resources/drugSafety/exports.d.mts +0 -2
  321. package/dist/esm/api/resources/drugSafety/exports.mjs +0 -3
  322. package/dist/esm/api/resources/drugSafety/index.d.mts +0 -2
  323. package/dist/esm/api/resources/drugSafety/index.mjs +0 -2
  324. package/dist/esm/api/resources/drugSafety/types/GetDrugSafetyHealthResponse.d.mts +0 -14
  325. package/dist/esm/api/resources/drugSafety/types/GetDrugSafetyHealthResponse.mjs +0 -8
  326. package/dist/esm/api/resources/drugSafety/types/index.d.mts +0 -1
  327. package/dist/esm/api/resources/drugSafety/types/index.mjs +0 -1
  328. package/dist/esm/api/resources/index.d.mts +0 -6
  329. package/dist/esm/api/resources/index.mjs +0 -6
  330. package/dist/esm/api/types/AdverseEffect.d.mts +0 -43
  331. package/dist/esm/api/types/AdverseEffect.mjs +0 -2
  332. package/dist/esm/api/types/Alert.d.mts +0 -70
  333. package/dist/esm/api/types/Alert.mjs +0 -38
  334. package/dist/esm/api/types/AllergyCrossReactivityReference.d.mts +0 -16
  335. package/dist/esm/api/types/AllergyCrossReactivityReference.mjs +0 -2
  336. package/dist/esm/api/types/AllergyData.d.mts +0 -24
  337. package/dist/esm/api/types/AllergyData.mjs +0 -8
  338. package/dist/esm/api/types/AllergyFamilyReference.d.mts +0 -10
  339. package/dist/esm/api/types/AllergyFamilyReference.mjs +0 -2
  340. package/dist/esm/api/types/AllergyInputEntry.d.mts +0 -10
  341. package/dist/esm/api/types/AllergyInputEntry.mjs +0 -2
  342. package/dist/esm/api/types/AllergyProductFamilyReference.d.mts +0 -9
  343. package/dist/esm/api/types/AllergyProductFamilyReference.mjs +0 -2
  344. package/dist/esm/api/types/AllergySummary.d.mts +0 -14
  345. package/dist/esm/api/types/AllergySummary.mjs +0 -2
  346. package/dist/esm/api/types/AllergyWarning.d.mts +0 -30
  347. package/dist/esm/api/types/AllergyWarning.mjs +0 -8
  348. package/dist/esm/api/types/BadRequestErrorBody.d.mts +0 -3
  349. package/dist/esm/api/types/BadRequestErrorBody.mjs +0 -2
  350. package/dist/esm/api/types/BlackBoxWarning.d.mts +0 -15
  351. package/dist/esm/api/types/BlackBoxWarning.mjs +0 -2
  352. package/dist/esm/api/types/BlockedResponse.d.mts +0 -9
  353. package/dist/esm/api/types/BlockedResponse.mjs +0 -2
  354. package/dist/esm/api/types/ClinicalAlert.d.mts +0 -56
  355. package/dist/esm/api/types/ClinicalAlert.mjs +0 -2
  356. package/dist/esm/api/types/ClinicalConcern.d.mts +0 -15
  357. package/dist/esm/api/types/ClinicalConcern.mjs +0 -2
  358. package/dist/esm/api/types/ClinicalContextApplied.d.mts +0 -10
  359. package/dist/esm/api/types/ClinicalContextApplied.mjs +0 -2
  360. package/dist/esm/api/types/ClinicalData.d.mts +0 -17
  361. package/dist/esm/api/types/ClinicalData.mjs +0 -2
  362. package/dist/esm/api/types/Condition.d.mts +0 -22
  363. package/dist/esm/api/types/Condition.mjs +0 -22
  364. package/dist/esm/api/types/DailyLimit.d.mts +0 -20
  365. package/dist/esm/api/types/DailyLimit.mjs +0 -10
  366. package/dist/esm/api/types/DomainCode.d.mts +0 -20
  367. package/dist/esm/api/types/DomainCode.mjs +0 -20
  368. package/dist/esm/api/types/DoseClassification.d.mts +0 -40
  369. package/dist/esm/api/types/DoseClassification.mjs +0 -19
  370. package/dist/esm/api/types/DoseComponent.d.mts +0 -30
  371. package/dist/esm/api/types/DoseComponent.mjs +0 -9
  372. package/dist/esm/api/types/DosingData.d.mts +0 -63
  373. package/dist/esm/api/types/DosingData.mjs +0 -15
  374. package/dist/esm/api/types/DrugClinicalData.d.mts +0 -7
  375. package/dist/esm/api/types/DrugClinicalData.mjs +0 -2
  376. package/dist/esm/api/types/DrugSafetyCheckResponse.d.mts +0 -29
  377. package/dist/esm/api/types/DrugSafetyCheckResponse.mjs +0 -8
  378. package/dist/esm/api/types/ErrorResponse.d.mts +0 -29
  379. package/dist/esm/api/types/ErrorResponse.mjs +0 -2
  380. package/dist/esm/api/types/FoodConflict.d.mts +0 -21
  381. package/dist/esm/api/types/FoodConflict.mjs +0 -2
  382. package/dist/esm/api/types/FoodData.d.mts +0 -11
  383. package/dist/esm/api/types/FoodData.mjs +0 -2
  384. package/dist/esm/api/types/ForbiddenErrorBody.d.mts +0 -4
  385. package/dist/esm/api/types/ForbiddenErrorBody.mjs +0 -2
  386. package/dist/esm/api/types/IdentityMatch.d.mts +0 -13
  387. package/dist/esm/api/types/IdentityMatch.mjs +0 -2
  388. package/dist/esm/api/types/IntelligenceClinicalProfile.d.mts +0 -24
  389. package/dist/esm/api/types/IntelligenceClinicalProfile.mjs +0 -10
  390. package/dist/esm/api/types/IntelligenceContext.d.mts +0 -17
  391. package/dist/esm/api/types/IntelligenceContext.mjs +0 -2
  392. package/dist/esm/api/types/IntelligenceProcessorError.d.mts +0 -4
  393. package/dist/esm/api/types/IntelligenceProcessorError.mjs +0 -2
  394. package/dist/esm/api/types/IntelligenceResult.d.mts +0 -16
  395. package/dist/esm/api/types/IntelligenceResult.mjs +0 -2
  396. package/dist/esm/api/types/IntelligenceSynthesis.d.mts +0 -6
  397. package/dist/esm/api/types/IntelligenceSynthesis.mjs +0 -2
  398. package/dist/esm/api/types/Interaction.d.mts +0 -59
  399. package/dist/esm/api/types/Interaction.mjs +0 -11
  400. package/dist/esm/api/types/InteractionSummary.d.mts +0 -13
  401. package/dist/esm/api/types/InteractionSummary.mjs +0 -2
  402. package/dist/esm/api/types/InteractionsData.d.mts +0 -11
  403. package/dist/esm/api/types/InteractionsData.mjs +0 -2
  404. package/dist/esm/api/types/InternalServerErrorBody.d.mts +0 -3
  405. package/dist/esm/api/types/InternalServerErrorBody.mjs +0 -2
  406. package/dist/esm/api/types/MealTiming.d.mts +0 -26
  407. package/dist/esm/api/types/MealTiming.mjs +0 -2
  408. package/dist/esm/api/types/MedicationHistoryItem.d.mts +0 -22
  409. package/dist/esm/api/types/MedicationHistoryItem.mjs +0 -12
  410. package/dist/esm/api/types/Meta.d.mts +0 -29
  411. package/dist/esm/api/types/Meta.mjs +0 -11
  412. package/dist/esm/api/types/MetadataResponse.d.mts +0 -93
  413. package/dist/esm/api/types/MetadataResponse.mjs +0 -14
  414. package/dist/esm/api/types/Monitoring.d.mts +0 -22
  415. package/dist/esm/api/types/Monitoring.mjs +0 -2
  416. package/dist/esm/api/types/PatientProfile.d.mts +0 -43
  417. package/dist/esm/api/types/PatientProfile.mjs +0 -17
  418. package/dist/esm/api/types/Population.d.mts +0 -16
  419. package/dist/esm/api/types/Population.mjs +0 -16
  420. package/dist/esm/api/types/PopulationMonitoring.d.mts +0 -26
  421. package/dist/esm/api/types/PopulationMonitoring.mjs +0 -2
  422. package/dist/esm/api/types/QuotaMeta.d.mts +0 -11
  423. package/dist/esm/api/types/QuotaMeta.mjs +0 -2
  424. package/dist/esm/api/types/RateLimitResponse.d.mts +0 -37
  425. package/dist/esm/api/types/RateLimitResponse.mjs +0 -10
  426. package/dist/esm/api/types/ReferenceDose.d.mts +0 -11
  427. package/dist/esm/api/types/ReferenceDose.mjs +0 -2
  428. package/dist/esm/api/types/ReproductiveSafetyData.d.mts +0 -58
  429. package/dist/esm/api/types/ReproductiveSafetyData.mjs +0 -2
  430. package/dist/esm/api/types/ReproductiveWarning.d.mts +0 -13
  431. package/dist/esm/api/types/ReproductiveWarning.mjs +0 -2
  432. package/dist/esm/api/types/ResolvedDrug.d.mts +0 -70
  433. package/dist/esm/api/types/ResolvedDrug.mjs +0 -2
  434. package/dist/esm/api/types/SafetyData.d.mts +0 -23
  435. package/dist/esm/api/types/SafetyData.mjs +0 -2
  436. package/dist/esm/api/types/SideEffectsData.d.mts +0 -38
  437. package/dist/esm/api/types/SideEffectsData.mjs +0 -15
  438. package/dist/esm/api/types/TooManyRequestsErrorBody.d.mts +0 -3
  439. package/dist/esm/api/types/TooManyRequestsErrorBody.mjs +0 -2
  440. package/dist/esm/api/types/index.d.mts +0 -55
  441. package/dist/esm/api/types/index.mjs +0 -55
  442. package/dist/esm/auth/HeaderAuthProvider.d.mts +0 -20
  443. package/dist/esm/auth/HeaderAuthProvider.mjs +0 -43
  444. package/dist/esm/auth/index.d.mts +0 -1
  445. package/dist/esm/auth/index.mjs +0 -1
  446. package/dist/esm/core/auth/AuthProvider.d.mts +0 -7
  447. package/dist/esm/core/auth/AuthProvider.mjs +0 -1
  448. package/dist/esm/core/auth/AuthRequest.d.mts +0 -9
  449. package/dist/esm/core/auth/AuthRequest.mjs +0 -1
  450. package/dist/esm/core/auth/BasicAuth.d.mts +0 -8
  451. package/dist/esm/core/auth/BasicAuth.mjs +0 -24
  452. package/dist/esm/core/auth/BearerToken.d.mts +0 -7
  453. package/dist/esm/core/auth/BearerToken.mjs +0 -13
  454. package/dist/esm/core/auth/NoOpAuthProvider.d.mts +0 -5
  455. package/dist/esm/core/auth/NoOpAuthProvider.mjs +0 -5
  456. package/dist/esm/core/auth/index.d.mts +0 -5
  457. package/dist/esm/core/auth/index.mjs +0 -3
  458. package/dist/esm/core/base64.d.mts +0 -2
  459. package/dist/esm/core/base64.mjs +0 -22
  460. package/dist/esm/core/exports.d.mts +0 -1
  461. package/dist/esm/core/exports.mjs +0 -1
  462. package/dist/esm/core/fetcher/APIResponse.d.mts +0 -20
  463. package/dist/esm/core/fetcher/APIResponse.mjs +0 -1
  464. package/dist/esm/core/fetcher/BinaryResponse.d.mts +0 -19
  465. package/dist/esm/core/fetcher/BinaryResponse.mjs +0 -14
  466. package/dist/esm/core/fetcher/EndpointMetadata.d.mts +0 -13
  467. package/dist/esm/core/fetcher/EndpointMetadata.mjs +0 -1
  468. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +0 -12
  469. package/dist/esm/core/fetcher/EndpointSupplier.mjs +0 -19
  470. package/dist/esm/core/fetcher/Fetcher.d.mts +0 -48
  471. package/dist/esm/core/fetcher/Fetcher.mjs +0 -318
  472. package/dist/esm/core/fetcher/Headers.d.mts +0 -2
  473. package/dist/esm/core/fetcher/Headers.mjs +0 -82
  474. package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +0 -58
  475. package/dist/esm/core/fetcher/HttpResponsePromise.mjs +0 -99
  476. package/dist/esm/core/fetcher/RawResponse.d.mts +0 -29
  477. package/dist/esm/core/fetcher/RawResponse.mjs +0 -40
  478. package/dist/esm/core/fetcher/Supplier.d.mts +0 -4
  479. package/dist/esm/core/fetcher/Supplier.mjs +0 -19
  480. package/dist/esm/core/fetcher/createRequestUrl.d.mts +0 -1
  481. package/dist/esm/core/fetcher/createRequestUrl.mjs +0 -5
  482. package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +0 -1
  483. package/dist/esm/core/fetcher/getErrorResponseBody.mjs +0 -42
  484. package/dist/esm/core/fetcher/getFetchFn.d.mts +0 -1
  485. package/dist/esm/core/fetcher/getFetchFn.mjs +0 -14
  486. package/dist/esm/core/fetcher/getHeader.d.mts +0 -1
  487. package/dist/esm/core/fetcher/getHeader.mjs +0 -8
  488. package/dist/esm/core/fetcher/getRequestBody.d.mts +0 -7
  489. package/dist/esm/core/fetcher/getRequestBody.mjs +0 -24
  490. package/dist/esm/core/fetcher/getResponseBody.d.mts +0 -1
  491. package/dist/esm/core/fetcher/getResponseBody.mjs +0 -66
  492. package/dist/esm/core/fetcher/index.d.mts +0 -13
  493. package/dist/esm/core/fetcher/index.mjs +0 -7
  494. package/dist/esm/core/fetcher/makePassthroughRequest.d.mts +0 -49
  495. package/dist/esm/core/fetcher/makePassthroughRequest.mjs +0 -132
  496. package/dist/esm/core/fetcher/makeRequest.d.mts +0 -6
  497. package/dist/esm/core/fetcher/makeRequest.mjs +0 -55
  498. package/dist/esm/core/fetcher/requestWithRetries.d.mts +0 -1
  499. package/dist/esm/core/fetcher/requestWithRetries.mjs +0 -64
  500. package/dist/esm/core/fetcher/signals.d.mts +0 -5
  501. package/dist/esm/core/fetcher/signals.mjs +0 -20
  502. package/dist/esm/core/headers.d.mts +0 -2
  503. package/dist/esm/core/headers.mjs +0 -27
  504. package/dist/esm/core/index.d.mts +0 -6
  505. package/dist/esm/core/index.mjs +0 -6
  506. package/dist/esm/core/json.d.mts +0 -15
  507. package/dist/esm/core/json.mjs +0 -19
  508. package/dist/esm/core/logging/exports.d.mts +0 -18
  509. package/dist/esm/core/logging/exports.mjs +0 -9
  510. package/dist/esm/core/logging/index.d.mts +0 -1
  511. package/dist/esm/core/logging/index.mjs +0 -1
  512. package/dist/esm/core/logging/logger.d.mts +0 -126
  513. package/dist/esm/core/logging/logger.mjs +0 -138
  514. package/dist/esm/core/runtime/index.d.mts +0 -1
  515. package/dist/esm/core/runtime/index.mjs +0 -1
  516. package/dist/esm/core/runtime/runtime.d.mts +0 -9
  517. package/dist/esm/core/runtime/runtime.mjs +0 -101
  518. package/dist/esm/core/url/encodePathParam.d.mts +0 -1
  519. package/dist/esm/core/url/encodePathParam.mjs +0 -18
  520. package/dist/esm/core/url/index.d.mts +0 -3
  521. package/dist/esm/core/url/index.mjs +0 -3
  522. package/dist/esm/core/url/join.d.mts +0 -1
  523. package/dist/esm/core/url/join.mjs +0 -65
  524. package/dist/esm/core/url/qs.d.mts +0 -6
  525. package/dist/esm/core/url/qs.mjs +0 -61
  526. package/dist/esm/environments.d.mts +0 -4
  527. package/dist/esm/environments.mjs +0 -4
  528. package/dist/esm/errors/SafeRxError.d.mts +0 -12
  529. package/dist/esm/errors/SafeRxError.mjs +0 -28
  530. package/dist/esm/errors/SafeRxTimeoutError.d.mts +0 -3
  531. package/dist/esm/errors/SafeRxTimeoutError.mjs +0 -11
  532. package/dist/esm/errors/handleNonStatusCodeError.d.mts +0 -2
  533. package/dist/esm/errors/handleNonStatusCodeError.mjs +0 -29
  534. package/dist/esm/errors/index.d.mts +0 -2
  535. package/dist/esm/errors/index.mjs +0 -2
  536. package/dist/esm/exports.d.mts +0 -1
  537. package/dist/esm/exports.mjs +0 -1
  538. package/dist/esm/index.d.mts +0 -6
  539. package/dist/esm/index.mjs +0 -5
  540. package/dist/esm/version.d.mts +0 -1
  541. package/dist/esm/version.mjs +0 -1
@@ -1,10 +0,0 @@
1
- import type * as SafeRx from "../index.mjs";
2
- export interface AllergyFamilyReference {
3
- family_id?: string | undefined;
4
- name_en?: string | undefined;
5
- name_ar?: (string | null) | undefined;
6
- description_en?: (string | null) | undefined;
7
- description_ar?: (string | null) | undefined;
8
- clinical_significance?: (string | null) | undefined;
9
- cross_reactivity?: SafeRx.AllergyCrossReactivityReference[] | undefined;
10
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,10 +0,0 @@
1
- /**
2
- * Caller-provided allergy entry that could not be fully resolved or needs review.
3
- */
4
- export interface AllergyInputEntry {
5
- raw_input?: string | undefined;
6
- source_label?: string | undefined;
7
- family_id?: (string | null) | undefined;
8
- source_sfrx_id?: (string | null) | undefined;
9
- normalization_status?: (string | null) | undefined;
10
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,9 +0,0 @@
1
- import type * as SafeRx from "../index.mjs";
2
- export interface AllergyProductFamilyReference {
3
- tradename_en?: string | undefined;
4
- generic_en?: string | undefined;
5
- dosage_form_en?: string | undefined;
6
- route_type?: (string | null) | undefined;
7
- has_allergy_data?: boolean | undefined;
8
- families?: SafeRx.AllergyFamilyReference[] | undefined;
9
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,14 +0,0 @@
1
- export interface AllergySummary {
2
- check_mode?: string | undefined;
3
- products_checked?: number | undefined;
4
- patient_allergies_count?: number | undefined;
5
- resolved_patient_allergies_count?: number | undefined;
6
- resolved_family_count?: number | undefined;
7
- needs_review_count?: number | undefined;
8
- unresolved_patient_allergies_count?: number | undefined;
9
- direct_warnings?: number | undefined;
10
- cross_reactivity_warnings?: number | undefined;
11
- total_warnings?: number | undefined;
12
- contraindicated_count?: number | undefined;
13
- missing_products_count?: number | undefined;
14
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,30 +0,0 @@
1
- export interface AllergyWarning {
2
- sfrx_id?: string | undefined;
3
- drug_name?: string | undefined;
4
- generic_en?: string | undefined;
5
- dosage_form_en?: string | undefined;
6
- warning_type?: AllergyWarning.WarningType | undefined;
7
- allergen_family?: string | undefined;
8
- allergen_family_name_en?: string | undefined;
9
- patient_allergy?: string | undefined;
10
- patient_allergy_raw_input?: string | undefined;
11
- severity?: number | undefined;
12
- severity_label?: string | undefined;
13
- severity_label_ar?: string | undefined;
14
- frequency_category?: (number | null) | undefined;
15
- frequency_label?: (string | null) | undefined;
16
- frequency_min_pct?: (number | null) | undefined;
17
- frequency_max_pct?: (number | null) | undefined;
18
- mechanism_en?: (string | null) | undefined;
19
- mechanism_ar?: (string | null) | undefined;
20
- clinical_note_en?: (string | null) | undefined;
21
- clinical_note_ar?: (string | null) | undefined;
22
- evidence_level?: (string | null) | undefined;
23
- }
24
- export declare namespace AllergyWarning {
25
- const WarningType: {
26
- readonly Direct: "direct";
27
- readonly CrossReactivity: "cross_reactivity";
28
- };
29
- type WarningType = (typeof WarningType)[keyof typeof WarningType];
30
- }
@@ -1,8 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export var AllergyWarning;
3
- (function (AllergyWarning) {
4
- AllergyWarning.WarningType = {
5
- Direct: "direct",
6
- CrossReactivity: "cross_reactivity",
7
- };
8
- })(AllergyWarning || (AllergyWarning = {}));
@@ -1,3 +0,0 @@
1
- export interface BadRequestErrorBody {
2
- error?: string | undefined;
3
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,15 +0,0 @@
1
- export interface BlackBoxWarning {
2
- /** Full BBW text in English */
3
- warning_text?: string | undefined;
4
- /** Full BBW text in Arabic */
5
- warning_text_ar?: string | undefined;
6
- /**
7
- * BBW category tags (e.g., DEATH_RISK, BLEEDING_RISK, CARDIAC_RISK,
8
- * HEPATOTOXICITY, SUICIDALITY, TERATOGENIC)
9
- */
10
- categories?: string[] | undefined;
11
- /** Whether this BBW includes a mortality risk */
12
- has_death_warning?: boolean | undefined;
13
- /** Source of the BBW data */
14
- source?: string | undefined;
15
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,9 +0,0 @@
1
- /**
2
- * Response when access is temporarily suspended
3
- */
4
- export interface BlockedResponse {
5
- error?: string | undefined;
6
- reason?: string | undefined;
7
- message?: string | undefined;
8
- support?: string | undefined;
9
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,56 +0,0 @@
1
- /**
2
- * Clinical safety alert from cross-drug analysis
3
- */
4
- export interface ClinicalAlert {
5
- /** sfrx_id of the drug involved */
6
- drug_id?: string | undefined;
7
- /** Drug name (English) */
8
- drug?: string | undefined;
9
- /** Drug name (Arabic) */
10
- drug_ar?: string | undefined;
11
- /** Condition name (for condition alerts) */
12
- condition?: string | undefined;
13
- /** Condition name in Arabic */
14
- condition_ar?: string | undefined;
15
- /** Population name (for population alerts) */
16
- population?: string | undefined;
17
- /** Population name in Arabic */
18
- population_ar?: string | undefined;
19
- /** Alert severity */
20
- severity?: number | undefined;
21
- /** Severity label (English) */
22
- severity_label?: string | undefined;
23
- /** Severity label (Arabic) */
24
- severity_label_ar?: string | undefined;
25
- /** Whether the drug is contraindicated for this population/condition */
26
- contraindicated?: boolean | undefined;
27
- /** Whether dose adjustment is needed */
28
- requires_dose_adjustment?: boolean | undefined;
29
- /** Matched dose-adjustment instruction from the population band, when available. */
30
- dose_adjustment?: (string | null) | undefined;
31
- /** Matched dosing recommendation in English, when available. */
32
- dose_recommendation?: (string | null) | undefined;
33
- /** Matched dosing recommendation in Arabic, when available. */
34
- dose_recommendation_ar?: (string | null) | undefined;
35
- /** Matched renal/hepatic/pediatric context, including the selected band or grade when available. */
36
- matched_context?: Record<string, unknown> | undefined;
37
- /** Whether additional monitoring is needed */
38
- monitoring_required?: boolean | undefined;
39
- /** Clinical rationale (English) */
40
- reason?: string | undefined;
41
- /** Clinical rationale (Arabic) */
42
- reason_ar?: string | undefined;
43
- /** Data source */
44
- source?: string | undefined;
45
- /** Additional clinical notes */
46
- special_notes?: ClinicalAlert.SpecialNotes | undefined;
47
- }
48
- export declare namespace ClinicalAlert {
49
- /**
50
- * Additional clinical notes
51
- */
52
- interface SpecialNotes {
53
- /** Whether this drug is flagged as high-risk for elderly patients */
54
- geriatric_high_risk?: boolean | undefined;
55
- }
56
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,15 +0,0 @@
1
- /**
2
- * Clinical concern for a specific population or condition
3
- */
4
- export interface ClinicalConcern {
5
- /** Drug name */
6
- name?: string | undefined;
7
- /** Concern severity (1=minor, 5=contraindicated) */
8
- severity?: number | undefined;
9
- /** Human-readable severity label */
10
- severity_name?: string | undefined;
11
- /** Clinical rationale */
12
- reason?: string | undefined;
13
- /** Data source */
14
- source?: string | undefined;
15
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,10 +0,0 @@
1
- export interface ClinicalContextApplied {
2
- /** Condition keys applied to clinical filtering. */
3
- conditions?: string[] | undefined;
4
- /** Population keys applied to clinical filtering after adding inferred populations. */
5
- populations?: string[] | undefined;
6
- /** Population keys explicitly supplied by the caller. */
7
- requested_populations?: string[] | undefined;
8
- /** Population keys inferred from patient values such as `crcl`, `child_pugh`, or `age`. */
9
- inferred_populations?: string[] | undefined;
10
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,17 +0,0 @@
1
- import type * as SafeRx from "../index.mjs";
2
- /**
3
- * Clinical safety considerations combining per-drug population/condition
4
- * data with cross-drug clinical alerts. Without `patient_profile`, the
5
- * API returns product-wide clinical signals; with `patient_profile`, alert
6
- * lists are narrowed to the supplied populations and conditions.
7
- */
8
- export interface ClinicalData {
9
- /** Per-drug clinical data keyed by sfrx_id */
10
- drug_specific?: Record<string, SafeRx.DrugClinicalData> | undefined;
11
- /** Condition-related alerts. Narrowed to `patient_profile.conditions` when supplied; otherwise product-wide condition signals may be returned. */
12
- condition_alerts?: SafeRx.ClinicalAlert[] | undefined;
13
- /** Population-related alerts. Narrowed to `patient_profile.populations` when supplied; otherwise product-wide population signals may be returned. */
14
- population_alerts?: SafeRx.ClinicalAlert[] | undefined;
15
- /** Patient context actually applied to clinical-dose matching, including inferred populations from age, renal, or hepatic values. */
16
- context_applied?: SafeRx.ClinicalContextApplied | undefined;
17
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,22 +0,0 @@
1
- /**
2
- * Patient comorbidity. Used by the `clinical` domain to identify
3
- * drugs that are contraindicated or require caution for patients
4
- * with these conditions.
5
- */
6
- export declare const Condition: {
7
- readonly Arrhythmia: "arrhythmia";
8
- readonly Asthma: "asthma";
9
- readonly Bph: "bph";
10
- readonly Coronary: "coronary";
11
- readonly Depression: "depression";
12
- readonly Diabetes: "diabetes";
13
- readonly Epilepsy: "epilepsy";
14
- readonly GiBleeding: "gi_bleeding";
15
- readonly Glaucoma: "glaucoma";
16
- readonly HeartFailure: "heart_failure";
17
- readonly Hypertension: "hypertension";
18
- readonly Hyperthyroidism: "hyperthyroidism";
19
- readonly Hypothyroidism: "hypothyroidism";
20
- readonly Parkinsons: "parkinsons";
21
- };
22
- export type Condition = (typeof Condition)[keyof typeof Condition];
@@ -1,22 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- /**
3
- * Patient comorbidity. Used by the `clinical` domain to identify
4
- * drugs that are contraindicated or require caution for patients
5
- * with these conditions.
6
- */
7
- export const Condition = {
8
- Arrhythmia: "arrhythmia",
9
- Asthma: "asthma",
10
- Bph: "bph",
11
- Coronary: "coronary",
12
- Depression: "depression",
13
- Diabetes: "diabetes",
14
- Epilepsy: "epilepsy",
15
- GiBleeding: "gi_bleeding",
16
- Glaucoma: "glaucoma",
17
- HeartFailure: "heart_failure",
18
- Hypertension: "hypertension",
19
- Hyperthyroidism: "hyperthyroidism",
20
- Hypothyroidism: "hypothyroidism",
21
- Parkinsons: "parkinsons",
22
- };
@@ -1,20 +0,0 @@
1
- /**
2
- * Regulatory maximum daily dose data
3
- */
4
- export interface DailyLimit {
5
- /** Maximum daily dose in milligrams */
6
- value_mg?: number | undefined;
7
- /** Confidence level of the dose calculation */
8
- confidence?: DailyLimit.Confidence | undefined;
9
- /** Administration route */
10
- route?: string | undefined;
11
- }
12
- export declare namespace DailyLimit {
13
- /** Confidence level of the dose calculation */
14
- const Confidence: {
15
- readonly High: "high";
16
- readonly Medium: "medium";
17
- readonly Low: "low";
18
- };
19
- type Confidence = (typeof Confidence)[keyof typeof Confidence];
20
- }
@@ -1,10 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export var DailyLimit;
3
- (function (DailyLimit) {
4
- /** Confidence level of the dose calculation */
5
- DailyLimit.Confidence = {
6
- High: "high",
7
- Medium: "medium",
8
- Low: "low",
9
- };
10
- })(DailyLimit || (DailyLimit = {}));
@@ -1,20 +0,0 @@
1
- /**
2
- * Safety domain identifier.
3
- * - `ae` — Adverse effects, Black Box Warnings, monitoring parameters
4
- * - `ddi` — Drug-drug interactions (requires 2+ drugs)
5
- * - `pllr` — Pregnancy & lactation risk ratings
6
- * - `food` — Meal timing & food-drug conflicts
7
- * - `clinical` — Population & condition safety. Without patient context, returns product-wide clinical signals; with `patient_profile`, alerts are narrowed to supplied populations and conditions.
8
- * - `dose` — Dose limits and daily-dose references from the unified dosing data path
9
- * - `allergy` — Patient allergy matching plus direct and cross-reactivity warnings
10
- */
11
- export declare const DomainCode: {
12
- readonly Ae: "ae";
13
- readonly Ddi: "ddi";
14
- readonly Pllr: "pllr";
15
- readonly Food: "food";
16
- readonly Clinical: "clinical";
17
- readonly Dose: "dose";
18
- readonly Allergy: "allergy";
19
- };
20
- export type DomainCode = (typeof DomainCode)[keyof typeof DomainCode];
@@ -1,20 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- /**
3
- * Safety domain identifier.
4
- * - `ae` — Adverse effects, Black Box Warnings, monitoring parameters
5
- * - `ddi` — Drug-drug interactions (requires 2+ drugs)
6
- * - `pllr` — Pregnancy & lactation risk ratings
7
- * - `food` — Meal timing & food-drug conflicts
8
- * - `clinical` — Population & condition safety. Without patient context, returns product-wide clinical signals; with `patient_profile`, alerts are narrowed to supplied populations and conditions.
9
- * - `dose` — Dose limits and daily-dose references from the unified dosing data path
10
- * - `allergy` — Patient allergy matching plus direct and cross-reactivity warnings
11
- */
12
- export const DomainCode = {
13
- Ae: "ae",
14
- Ddi: "ddi",
15
- Pllr: "pllr",
16
- Food: "food",
17
- Clinical: "clinical",
18
- Dose: "dose",
19
- Allergy: "allergy",
20
- };
@@ -1,40 +0,0 @@
1
- /**
2
- * WHO DDD-based dose-response classification.
3
- * Type A reactions are dose-dependent and predictable.
4
- * Type B reactions are idiosyncratic and unpredictable.
5
- */
6
- export interface DoseClassification {
7
- /**
8
- * Primary reaction type.
9
- * - `A` — Dose-dependent (augmented). Predictable from pharmacology.
10
- * - `B` — Idiosyncratic (bizarre). Unpredictable, not dose-related.
11
- */
12
- reaction_type?: DoseClassification.ReactionType | undefined;
13
- /** Classification rationale */
14
- basis?: string | undefined;
15
- /** Whether any idiosyncratic (Type B) reactions exist */
16
- has_idiosyncratic?: boolean | undefined;
17
- /** List of known idiosyncratic effects */
18
- idiosyncratic_effects?: string[] | undefined;
19
- /** Confidence in the classification */
20
- confidence?: DoseClassification.Confidence | undefined;
21
- }
22
- export declare namespace DoseClassification {
23
- /**
24
- * Primary reaction type.
25
- * - `A` — Dose-dependent (augmented). Predictable from pharmacology.
26
- * - `B` — Idiosyncratic (bizarre). Unpredictable, not dose-related.
27
- */
28
- const ReactionType: {
29
- readonly A: "A";
30
- readonly B: "B";
31
- };
32
- type ReactionType = (typeof ReactionType)[keyof typeof ReactionType];
33
- /** Confidence in the classification */
34
- const Confidence: {
35
- readonly High: "high";
36
- readonly Medium: "medium";
37
- readonly Low: "low";
38
- };
39
- type Confidence = (typeof Confidence)[keyof typeof Confidence];
40
- }
@@ -1,19 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export var DoseClassification;
3
- (function (DoseClassification) {
4
- /**
5
- * Primary reaction type.
6
- * - `A` — Dose-dependent (augmented). Predictable from pharmacology.
7
- * - `B` — Idiosyncratic (bizarre). Unpredictable, not dose-related.
8
- */
9
- DoseClassification.ReactionType = {
10
- A: "A",
11
- B: "B",
12
- };
13
- /** Confidence in the classification */
14
- DoseClassification.Confidence = {
15
- High: "high",
16
- Medium: "medium",
17
- Low: "low",
18
- };
19
- })(DoseClassification || (DoseClassification = {}));
@@ -1,30 +0,0 @@
1
- /**
2
- * Per-ingredient dose data for combination drugs
3
- */
4
- export interface DoseComponent {
5
- /** Maximum daily dose for this ingredient in mg */
6
- value_mg?: number | undefined;
7
- original_value?: number | undefined;
8
- original_unit?: string | undefined;
9
- route?: string | undefined;
10
- confidence?: DoseComponent.Confidence | undefined;
11
- confidence_reason?: string | undefined;
12
- /** Typical daily dose range */
13
- usual_range?: string | undefined;
14
- max_single_dose_mg?: number | undefined;
15
- /** Whether dosing is weight-based */
16
- weight_based?: boolean | undefined;
17
- /** Weight-based dosing if applicable */
18
- weight_dose?: string | undefined;
19
- /** Whether max dose varies by indication */
20
- indication_specific?: boolean | undefined;
21
- indication_note?: string | undefined;
22
- }
23
- export declare namespace DoseComponent {
24
- const Confidence: {
25
- readonly High: "high";
26
- readonly Medium: "medium";
27
- readonly Low: "low";
28
- };
29
- type Confidence = (typeof Confidence)[keyof typeof Confidence];
30
- }
@@ -1,9 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export var DoseComponent;
3
- (function (DoseComponent) {
4
- DoseComponent.Confidence = {
5
- High: "high",
6
- Medium: "medium",
7
- Low: "low",
8
- };
9
- })(DoseComponent || (DoseComponent = {}));
@@ -1,63 +0,0 @@
1
- import type * as SafeRx from "../index.mjs";
2
- /**
3
- * Dose limits and daily-dose reference data from the unified dosing path.
4
- * Includes standard dose summaries, dose limits, daily-limit data when
5
- * available, and caveats for products where calculation needs pharmacist review.
6
- */
7
- export interface DosingData {
8
- /**
9
- * Data quality tier.
10
- * - `1` - Full reference and regulatory daily-limit data available
11
- * - `2` - Regulatory daily-limit data only
12
- */
13
- tier?: number | undefined;
14
- /** Maximum safe units (tablets, capsules) per day */
15
- max_units_per_day?: (number | null) | undefined;
16
- /** Maximum safe volume per day for liquid forms */
17
- max_ml_per_day?: (number | null) | undefined;
18
- /** Unit type (tablets, capsules, ml, etc.) */
19
- unit_label?: string | undefined;
20
- /** Whether dose calculation has caveats requiring attention */
21
- flagged?: boolean | undefined;
22
- /** Reason if dose calculation was skipped (e.g., topical, inhaled) */
23
- skip_reason?: (string | null) | undefined;
24
- /** Important caveat about the dose calculation */
25
- caveat?: (string | null) | undefined;
26
- /** WHO DDD reference dose data */
27
- reference_dose?: (SafeRx.ReferenceDose | null) | undefined;
28
- /** Regulatory maximum daily dose data */
29
- daily_limit?: (SafeRx.DailyLimit | null) | undefined;
30
- /** Standard-dose summary when available, including route, frequency, and verification flags. */
31
- standard_dose?: (Record<string, unknown> | null) | undefined;
32
- /** Dose-limit records used by the unified dosing path. */
33
- dose_limits?: Record<string, unknown>[] | undefined;
34
- /** Clinician/patient display summary for dose limits and caveats, when available. */
35
- display_summary?: (Record<string, unknown> | null) | undefined;
36
- /** Calculation uncertainty or review requirement, when available. */
37
- dose_uncertainty?: (Record<string, unknown> | null) | undefined;
38
- /** Display-safe monitoring instructions linked to the dose record, when available. */
39
- monitoring_display?: (Record<string, unknown> | null) | undefined;
40
- /** Per-ingredient dose data for combination drugs */
41
- components?: ((SafeRx.DoseComponent | null)[] | null) | undefined;
42
- /**
43
- * Data source for this dose calculation.
44
- * - `reference_standard` — reference dose data only
45
- * - `regulatory_label` — regulatory daily-limit data only
46
- * - `dual_source` — reference and regulatory daily-limit data available
47
- */
48
- source?: DosingData.Source | undefined;
49
- }
50
- export declare namespace DosingData {
51
- /**
52
- * Data source for this dose calculation.
53
- * - `reference_standard` — reference dose data only
54
- * - `regulatory_label` — regulatory daily-limit data only
55
- * - `dual_source` — reference and regulatory daily-limit data available
56
- */
57
- const Source: {
58
- readonly ReferenceStandard: "reference_standard";
59
- readonly RegulatoryLabel: "regulatory_label";
60
- readonly DualSource: "dual_source";
61
- };
62
- type Source = (typeof Source)[keyof typeof Source];
63
- }
@@ -1,15 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export var DosingData;
3
- (function (DosingData) {
4
- /**
5
- * Data source for this dose calculation.
6
- * - `reference_standard` — reference dose data only
7
- * - `regulatory_label` — regulatory daily-limit data only
8
- * - `dual_source` — reference and regulatory daily-limit data available
9
- */
10
- DosingData.Source = {
11
- ReferenceStandard: "reference_standard",
12
- RegulatoryLabel: "regulatory_label",
13
- DualSource: "dual_source",
14
- };
15
- })(DosingData || (DosingData = {}));
@@ -1,7 +0,0 @@
1
- import type * as SafeRx from "../index.mjs";
2
- export interface DrugClinicalData {
3
- /** Population-specific data keyed by population name */
4
- populations?: Record<string, SafeRx.ClinicalConcern> | undefined;
5
- /** Condition-specific data keyed by condition name */
6
- conditions?: Record<string, SafeRx.ClinicalConcern> | undefined;
7
- }
@@ -1,2 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export {};
@@ -1,29 +0,0 @@
1
- import type * as SafeRx from "../index.mjs";
2
- export interface DrugSafetyCheckResponse {
3
- /** Always `"success"` for 200 responses */
4
- status: DrugSafetyCheckResponse.Status;
5
- /** Successfully resolved drugs with full product details */
6
- drugs: SafeRx.ResolvedDrug[];
7
- /**
8
- * Drug names that could not be resolved to a SafeRx product.
9
- * These are not errors — they simply did not match any product
10
- * with sufficient confidence.
11
- */
12
- unresolved: string[];
13
- safety: SafeRx.SafetyData;
14
- /**
15
- * High-severity safety issues bubbled up from all domains, sorted
16
- * by severity (CRITICAL first). Use this array for quick triage —
17
- * it contains the most actionable items from the full safety data.
18
- */
19
- alerts: SafeRx.Alert[];
20
- meta: SafeRx.Meta;
21
- intelligence?: SafeRx.IntelligenceResult | undefined;
22
- }
23
- export declare namespace DrugSafetyCheckResponse {
24
- /** Always `"success"` for 200 responses */
25
- const Status: {
26
- readonly Success: "success";
27
- };
28
- type Status = (typeof Status)[keyof typeof Status];
29
- }
@@ -1,8 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export var DrugSafetyCheckResponse;
3
- (function (DrugSafetyCheckResponse) {
4
- /** Always `"success"` for 200 responses */
5
- DrugSafetyCheckResponse.Status = {
6
- Success: "success",
7
- };
8
- })(DrugSafetyCheckResponse || (DrugSafetyCheckResponse = {}));