@tryvital/vital-node 3.1.231 → 3.1.235

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 (409) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.js +2 -2
  3. package/api/resources/body/client/Client.js +2 -2
  4. package/api/resources/devices/client/Client.js +1 -1
  5. package/api/resources/electrocardiogram/client/Client.js +1 -1
  6. package/api/resources/insurance/client/Client.js +3 -3
  7. package/api/resources/introspect/client/Client.js +2 -2
  8. package/api/resources/labTests/client/Client.d.ts +10 -0
  9. package/api/resources/labTests/client/Client.js +141 -37
  10. package/api/resources/link/client/Client.js +19 -19
  11. package/api/resources/link/client/requests/BulkImportConnectionsBody.d.ts +9 -0
  12. package/api/resources/link/client/requests/BulkTriggerHistoricalPullBody.d.ts +9 -0
  13. package/api/resources/link/client/requests/LinkTokenExchange.d.ts +23 -0
  14. package/api/resources/meal/client/Client.js +1 -1
  15. package/api/resources/menstrualCycle/client/Client.js +1 -1
  16. package/api/resources/order/client/Client.js +1 -1
  17. package/api/resources/profile/client/Client.js +2 -2
  18. package/api/resources/providers/client/Client.js +1 -1
  19. package/api/resources/sleep/client/Client.js +4 -4
  20. package/api/resources/sleepCycle/client/Client.js +1 -1
  21. package/api/resources/team/client/Client.js +7 -7
  22. package/api/resources/testkit/client/Client.js +2 -2
  23. package/api/resources/user/client/Client.js +16 -16
  24. package/api/resources/user/client/requests/UserInfoCreateRequest.d.ts +5 -0
  25. package/api/resources/vitals/client/Client.js +75 -75
  26. package/api/resources/workouts/client/Client.js +3 -3
  27. package/api/types/ActivityColumnExpr.d.ts +1 -0
  28. package/api/types/ActivityColumnExprActivity.d.ts +3 -0
  29. package/api/types/AggregateExpr.d.ts +1 -0
  30. package/api/types/AggregateExprFunc.d.ts +3 -0
  31. package/api/types/AllowedRadius.d.ts +3 -0
  32. package/api/types/AppointmentEventStatus.d.ts +3 -0
  33. package/api/types/AppointmentProvider.d.ts +3 -0
  34. package/api/types/AppointmentPscLabs.d.ts +3 -0
  35. package/api/types/AppointmentServiceType.d.ts +3 -0
  36. package/api/types/AppointmentStatus.d.ts +3 -0
  37. package/api/types/AppointmentType.d.ts +3 -0
  38. package/api/types/AttemptStatus.d.ts +3 -0
  39. package/api/types/AuthType.d.ts +3 -0
  40. package/api/types/Availability.d.ts +3 -0
  41. package/api/types/Billing.d.ts +3 -0
  42. package/api/types/BiomarkerResult.d.ts +2 -0
  43. package/api/types/BodyColumnExpr.d.ts +1 -0
  44. package/api/types/BodyColumnExprBody.d.ts +3 -0
  45. package/api/types/BulkOp.d.ts +2 -0
  46. package/api/types/BulkOpStatus.d.ts +3 -0
  47. package/api/types/BulkOpType.d.ts +3 -0
  48. package/api/types/CervicalMucusEntry.d.ts +1 -0
  49. package/api/types/CervicalMucusEntryQuality.d.ts +3 -0
  50. package/api/types/ClientFacingConnectionErrorDetails.d.ts +1 -0
  51. package/api/types/ClientFacingConnectionErrorDetailsErrorType.d.ts +3 -0
  52. package/api/types/ClientFacingElectrocardiogram.d.ts +1 -0
  53. package/api/types/ClientFacingElectrocardiogramSourceType.d.ts +3 -0
  54. package/api/types/ClientFacingHeartRateAlertSample.d.ts +1 -0
  55. package/api/types/ClientFacingHeartRateAlertSampleType.d.ts +3 -0
  56. package/api/types/ClientFacingInsulinInjectionSample.d.ts +1 -1
  57. package/api/types/ClientFacingInsulinInjectionSampleType.d.ts +1 -1
  58. package/api/types/ClientFacingLabs.d.ts +3 -0
  59. package/api/types/ClientFacingMenstrualCycle.d.ts +1 -0
  60. package/api/types/ClientFacingMenstrualCycleSourceType.d.ts +3 -0
  61. package/api/types/ClientFacingPatientDetailsCompatible.d.ts +11 -0
  62. package/api/types/ClientFacingResource.d.ts +3 -0
  63. package/api/types/ClientFacingSleepCycle.d.ts +1 -0
  64. package/api/types/ClientFacingSleepCycleSourceType.d.ts +3 -0
  65. package/api/types/ClientFacingStandHourSample.d.ts +1 -0
  66. package/api/types/ClientFacingStandHourSampleType.d.ts +3 -0
  67. package/api/types/ClinicalInformation.d.ts +9 -0
  68. package/api/types/ClinicalInformation.js +5 -0
  69. package/api/types/ConsentType.d.ts +3 -0
  70. package/api/types/ContraceptiveEntry.d.ts +1 -0
  71. package/api/types/ContraceptiveEntryType.d.ts +3 -0
  72. package/api/types/DelegatedFlowType.d.ts +3 -0
  73. package/api/types/DemoProviders.d.ts +3 -0
  74. package/api/types/DetectedDeviationEntry.d.ts +1 -0
  75. package/api/types/DetectedDeviationEntryDeviation.d.ts +3 -0
  76. package/api/types/EmailProviders.d.ts +3 -0
  77. package/api/types/Ethnicity.d.ts +13 -0
  78. package/api/types/Ethnicity.js +12 -0
  79. package/api/types/EventDestinationPreferences.d.ts +1 -0
  80. package/api/types/EventDestinationPreferencesPreferred.d.ts +3 -0
  81. package/api/types/FailureType.d.ts +3 -0
  82. package/api/types/Gender.d.ts +3 -0
  83. package/api/types/GenderIdentity.d.ts +15 -0
  84. package/api/types/GenderIdentity.js +14 -0
  85. package/api/types/GuarantorDetails.d.ts +2 -0
  86. package/api/types/HistoricalPullStatus.d.ts +3 -0
  87. package/api/types/HomePregnancyTestEntry.d.ts +1 -0
  88. package/api/types/HomePregnancyTestEntryTestResult.d.ts +3 -0
  89. package/api/types/HomeProgesteroneTestEntry.d.ts +1 -0
  90. package/api/types/HomeProgesteroneTestEntryTestResult.d.ts +3 -0
  91. package/api/types/IndexColumnExpr.d.ts +1 -0
  92. package/api/types/IndexColumnExprIndex.d.ts +3 -0
  93. package/api/types/LabResultsRaw.d.ts +1 -0
  94. package/api/types/LabTestCollectionMethod.d.ts +1 -1
  95. package/api/types/LabTestGenerationMethodFilter.d.ts +3 -0
  96. package/api/types/LabTestSampleType.d.ts +1 -1
  97. package/api/types/LabTestStatus.d.ts +3 -0
  98. package/api/types/Labs.d.ts +3 -0
  99. package/api/types/ManualProviders.d.ts +3 -0
  100. package/api/types/MarkerType.d.ts +3 -0
  101. package/api/types/MenstrualFlowEntry.d.ts +1 -0
  102. package/api/types/MenstrualFlowEntryFlow.d.ts +3 -0
  103. package/api/types/Minerals.d.ts +3 -0
  104. package/api/types/OAuthProviders.d.ts +3 -0
  105. package/api/types/OrderStatus.d.ts +3 -0
  106. package/api/types/OrderTopLevelStatus.d.ts +3 -0
  107. package/api/types/OvulationTestEntry.d.ts +1 -0
  108. package/api/types/OvulationTestEntryTestResult.d.ts +3 -0
  109. package/api/types/PasswordProviders.d.ts +3 -0
  110. package/api/types/PatientDetailsWithValidation.d.ts +10 -0
  111. package/api/types/PayorCodeExternalProvider.d.ts +3 -0
  112. package/api/types/PerformingLaboratory.d.ts +10 -0
  113. package/api/types/PerformingLaboratory.js +5 -0
  114. package/api/types/Period.d.ts +1 -0
  115. package/api/types/PeriodUnit.d.ts +3 -0
  116. package/api/types/ProviderConnectionError.d.ts +3 -1
  117. package/api/types/ProviderConnectionErrorErrorType.d.ts +16 -0
  118. package/api/types/ProviderConnectionErrorErrorType.js +15 -0
  119. package/api/types/ProviderLinkResponse.d.ts +1 -0
  120. package/api/types/ProviderLinkResponseState.d.ts +3 -0
  121. package/api/types/ProviderMfaRequest.d.ts +1 -0
  122. package/api/types/ProviderMfaRequestMethod.d.ts +3 -0
  123. package/api/types/Providers.d.ts +3 -0
  124. package/api/types/QuestionType.d.ts +3 -0
  125. package/api/types/Race.d.ts +15 -0
  126. package/api/types/Race.js +14 -0
  127. package/api/types/Region.d.ts +3 -0
  128. package/api/types/ResponsibleRelationship.d.ts +3 -0
  129. package/api/types/ResultType.d.ts +3 -0
  130. package/api/types/SampleData.d.ts +13 -0
  131. package/api/types/SampleData.js +5 -0
  132. package/api/types/SampleDataDateCollected.d.ts +5 -0
  133. package/api/types/SampleDataDateCollected.js +5 -0
  134. package/api/types/SampleDataDateReceived.d.ts +5 -0
  135. package/api/types/SampleDataDateReceived.js +5 -0
  136. package/api/types/SampleDataDateReported.d.ts +5 -0
  137. package/api/types/SampleDataDateReported.js +5 -0
  138. package/api/types/SexualOrientation.d.ts +14 -0
  139. package/api/types/SexualOrientation.js +13 -0
  140. package/api/types/SleepColumnExpr.d.ts +1 -0
  141. package/api/types/SleepColumnExprSleep.d.ts +3 -0
  142. package/api/types/SleepSummaryState.d.ts +3 -0
  143. package/api/types/SleepType.d.ts +3 -0
  144. package/api/types/SourceAuthType.d.ts +3 -0
  145. package/api/types/SourceType.d.ts +3 -0
  146. package/api/types/TimeseriesResource.d.ts +3 -0
  147. package/api/types/TraceElements.d.ts +3 -0
  148. package/api/types/UserInfo.d.ts +5 -0
  149. package/api/types/UtcTimestampWithTimezoneOffset.d.ts +7 -0
  150. package/api/types/UtcTimestampWithTimezoneOffset.js +5 -0
  151. package/api/types/VitalSleepStage.d.ts +3 -0
  152. package/api/types/Vitamins.d.ts +3 -0
  153. package/api/types/WorkoutColumnExpr.d.ts +1 -0
  154. package/api/types/WorkoutColumnExprWorkout.d.ts +3 -0
  155. package/api/types/index.d.ts +12 -0
  156. package/api/types/index.js +12 -0
  157. package/dist/api/resources/activity/client/Client.js +2 -2
  158. package/dist/api/resources/aggregate/client/Client.js +2 -2
  159. package/dist/api/resources/body/client/Client.js +2 -2
  160. package/dist/api/resources/devices/client/Client.js +1 -1
  161. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  162. package/dist/api/resources/insurance/client/Client.js +3 -3
  163. package/dist/api/resources/introspect/client/Client.js +2 -2
  164. package/dist/api/resources/labTests/client/Client.d.ts +10 -0
  165. package/dist/api/resources/labTests/client/Client.js +141 -37
  166. package/dist/api/resources/link/client/Client.js +19 -19
  167. package/dist/api/resources/link/client/requests/BulkImportConnectionsBody.d.ts +9 -0
  168. package/dist/api/resources/link/client/requests/BulkTriggerHistoricalPullBody.d.ts +9 -0
  169. package/dist/api/resources/link/client/requests/LinkTokenExchange.d.ts +23 -0
  170. package/dist/api/resources/meal/client/Client.js +1 -1
  171. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  172. package/dist/api/resources/order/client/Client.js +1 -1
  173. package/dist/api/resources/profile/client/Client.js +2 -2
  174. package/dist/api/resources/providers/client/Client.js +1 -1
  175. package/dist/api/resources/sleep/client/Client.js +4 -4
  176. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  177. package/dist/api/resources/team/client/Client.js +7 -7
  178. package/dist/api/resources/testkit/client/Client.js +2 -2
  179. package/dist/api/resources/user/client/Client.js +16 -16
  180. package/dist/api/resources/user/client/requests/UserInfoCreateRequest.d.ts +5 -0
  181. package/dist/api/resources/vitals/client/Client.js +75 -75
  182. package/dist/api/resources/workouts/client/Client.js +3 -3
  183. package/dist/api/types/ActivityColumnExpr.d.ts +1 -0
  184. package/dist/api/types/ActivityColumnExprActivity.d.ts +3 -0
  185. package/dist/api/types/AggregateExpr.d.ts +1 -0
  186. package/dist/api/types/AggregateExprFunc.d.ts +3 -0
  187. package/dist/api/types/AllowedRadius.d.ts +3 -0
  188. package/dist/api/types/AppointmentEventStatus.d.ts +3 -0
  189. package/dist/api/types/AppointmentProvider.d.ts +3 -0
  190. package/dist/api/types/AppointmentPscLabs.d.ts +3 -0
  191. package/dist/api/types/AppointmentServiceType.d.ts +3 -0
  192. package/dist/api/types/AppointmentStatus.d.ts +3 -0
  193. package/dist/api/types/AppointmentType.d.ts +3 -0
  194. package/dist/api/types/AttemptStatus.d.ts +3 -0
  195. package/dist/api/types/AuthType.d.ts +3 -0
  196. package/dist/api/types/Availability.d.ts +3 -0
  197. package/dist/api/types/Billing.d.ts +3 -0
  198. package/dist/api/types/BiomarkerResult.d.ts +2 -0
  199. package/dist/api/types/BodyColumnExpr.d.ts +1 -0
  200. package/dist/api/types/BodyColumnExprBody.d.ts +3 -0
  201. package/dist/api/types/BulkOp.d.ts +2 -0
  202. package/dist/api/types/BulkOpStatus.d.ts +3 -0
  203. package/dist/api/types/BulkOpType.d.ts +3 -0
  204. package/dist/api/types/CervicalMucusEntry.d.ts +1 -0
  205. package/dist/api/types/CervicalMucusEntryQuality.d.ts +3 -0
  206. package/dist/api/types/ClientFacingConnectionErrorDetails.d.ts +1 -0
  207. package/dist/api/types/ClientFacingConnectionErrorDetailsErrorType.d.ts +3 -0
  208. package/dist/api/types/ClientFacingElectrocardiogram.d.ts +1 -0
  209. package/dist/api/types/ClientFacingElectrocardiogramSourceType.d.ts +3 -0
  210. package/dist/api/types/ClientFacingHeartRateAlertSample.d.ts +1 -0
  211. package/dist/api/types/ClientFacingHeartRateAlertSampleType.d.ts +3 -0
  212. package/dist/api/types/ClientFacingInsulinInjectionSample.d.ts +1 -1
  213. package/dist/api/types/ClientFacingInsulinInjectionSampleType.d.ts +1 -1
  214. package/dist/api/types/ClientFacingLabs.d.ts +3 -0
  215. package/dist/api/types/ClientFacingMenstrualCycle.d.ts +1 -0
  216. package/dist/api/types/ClientFacingMenstrualCycleSourceType.d.ts +3 -0
  217. package/dist/api/types/ClientFacingPatientDetailsCompatible.d.ts +11 -0
  218. package/dist/api/types/ClientFacingResource.d.ts +3 -0
  219. package/dist/api/types/ClientFacingSleepCycle.d.ts +1 -0
  220. package/dist/api/types/ClientFacingSleepCycleSourceType.d.ts +3 -0
  221. package/dist/api/types/ClientFacingStandHourSample.d.ts +1 -0
  222. package/dist/api/types/ClientFacingStandHourSampleType.d.ts +3 -0
  223. package/dist/api/types/ClinicalInformation.d.ts +9 -0
  224. package/dist/api/types/ClinicalInformation.js +5 -0
  225. package/dist/api/types/ConsentType.d.ts +3 -0
  226. package/dist/api/types/ContraceptiveEntry.d.ts +1 -0
  227. package/dist/api/types/ContraceptiveEntryType.d.ts +3 -0
  228. package/dist/api/types/DelegatedFlowType.d.ts +3 -0
  229. package/dist/api/types/DemoProviders.d.ts +3 -0
  230. package/dist/api/types/DetectedDeviationEntry.d.ts +1 -0
  231. package/dist/api/types/DetectedDeviationEntryDeviation.d.ts +3 -0
  232. package/dist/api/types/EmailProviders.d.ts +3 -0
  233. package/dist/api/types/Ethnicity.d.ts +13 -0
  234. package/dist/api/types/Ethnicity.js +12 -0
  235. package/dist/api/types/EventDestinationPreferences.d.ts +1 -0
  236. package/dist/api/types/EventDestinationPreferencesPreferred.d.ts +3 -0
  237. package/dist/api/types/FailureType.d.ts +3 -0
  238. package/dist/api/types/Gender.d.ts +3 -0
  239. package/dist/api/types/GenderIdentity.d.ts +15 -0
  240. package/dist/api/types/GenderIdentity.js +14 -0
  241. package/dist/api/types/GuarantorDetails.d.ts +2 -0
  242. package/dist/api/types/HistoricalPullStatus.d.ts +3 -0
  243. package/dist/api/types/HomePregnancyTestEntry.d.ts +1 -0
  244. package/dist/api/types/HomePregnancyTestEntryTestResult.d.ts +3 -0
  245. package/dist/api/types/HomeProgesteroneTestEntry.d.ts +1 -0
  246. package/dist/api/types/HomeProgesteroneTestEntryTestResult.d.ts +3 -0
  247. package/dist/api/types/IndexColumnExpr.d.ts +1 -0
  248. package/dist/api/types/IndexColumnExprIndex.d.ts +3 -0
  249. package/dist/api/types/LabResultsRaw.d.ts +1 -0
  250. package/dist/api/types/LabTestCollectionMethod.d.ts +1 -1
  251. package/dist/api/types/LabTestGenerationMethodFilter.d.ts +3 -0
  252. package/dist/api/types/LabTestSampleType.d.ts +1 -1
  253. package/dist/api/types/LabTestStatus.d.ts +3 -0
  254. package/dist/api/types/Labs.d.ts +3 -0
  255. package/dist/api/types/ManualProviders.d.ts +3 -0
  256. package/dist/api/types/MarkerType.d.ts +3 -0
  257. package/dist/api/types/MenstrualFlowEntry.d.ts +1 -0
  258. package/dist/api/types/MenstrualFlowEntryFlow.d.ts +3 -0
  259. package/dist/api/types/Minerals.d.ts +3 -0
  260. package/dist/api/types/OAuthProviders.d.ts +3 -0
  261. package/dist/api/types/OrderStatus.d.ts +3 -0
  262. package/dist/api/types/OrderTopLevelStatus.d.ts +3 -0
  263. package/dist/api/types/OvulationTestEntry.d.ts +1 -0
  264. package/dist/api/types/OvulationTestEntryTestResult.d.ts +3 -0
  265. package/dist/api/types/PasswordProviders.d.ts +3 -0
  266. package/dist/api/types/PatientDetailsWithValidation.d.ts +10 -0
  267. package/dist/api/types/PayorCodeExternalProvider.d.ts +3 -0
  268. package/dist/api/types/PerformingLaboratory.d.ts +10 -0
  269. package/dist/api/types/PerformingLaboratory.js +5 -0
  270. package/dist/api/types/Period.d.ts +1 -0
  271. package/dist/api/types/PeriodUnit.d.ts +3 -0
  272. package/dist/api/types/ProviderConnectionError.d.ts +3 -1
  273. package/dist/api/types/ProviderConnectionErrorErrorType.d.ts +16 -0
  274. package/dist/api/types/ProviderConnectionErrorErrorType.js +15 -0
  275. package/dist/api/types/ProviderLinkResponse.d.ts +1 -0
  276. package/dist/api/types/ProviderLinkResponseState.d.ts +3 -0
  277. package/dist/api/types/ProviderMfaRequest.d.ts +1 -0
  278. package/dist/api/types/ProviderMfaRequestMethod.d.ts +3 -0
  279. package/dist/api/types/Providers.d.ts +3 -0
  280. package/dist/api/types/QuestionType.d.ts +3 -0
  281. package/dist/api/types/Race.d.ts +15 -0
  282. package/dist/api/types/Race.js +14 -0
  283. package/dist/api/types/Region.d.ts +3 -0
  284. package/dist/api/types/ResponsibleRelationship.d.ts +3 -0
  285. package/dist/api/types/ResultType.d.ts +3 -0
  286. package/dist/api/types/SampleData.d.ts +13 -0
  287. package/dist/api/types/SampleData.js +5 -0
  288. package/dist/api/types/SampleDataDateCollected.d.ts +5 -0
  289. package/dist/api/types/SampleDataDateCollected.js +5 -0
  290. package/dist/api/types/SampleDataDateReceived.d.ts +5 -0
  291. package/dist/api/types/SampleDataDateReceived.js +5 -0
  292. package/dist/api/types/SampleDataDateReported.d.ts +5 -0
  293. package/dist/api/types/SampleDataDateReported.js +5 -0
  294. package/dist/api/types/SexualOrientation.d.ts +14 -0
  295. package/dist/api/types/SexualOrientation.js +13 -0
  296. package/dist/api/types/SleepColumnExpr.d.ts +1 -0
  297. package/dist/api/types/SleepColumnExprSleep.d.ts +3 -0
  298. package/dist/api/types/SleepSummaryState.d.ts +3 -0
  299. package/dist/api/types/SleepType.d.ts +3 -0
  300. package/dist/api/types/SourceAuthType.d.ts +3 -0
  301. package/dist/api/types/SourceType.d.ts +3 -0
  302. package/dist/api/types/TimeseriesResource.d.ts +3 -0
  303. package/dist/api/types/TraceElements.d.ts +3 -0
  304. package/dist/api/types/UserInfo.d.ts +5 -0
  305. package/dist/api/types/UtcTimestampWithTimezoneOffset.d.ts +7 -0
  306. package/dist/api/types/UtcTimestampWithTimezoneOffset.js +5 -0
  307. package/dist/api/types/VitalSleepStage.d.ts +3 -0
  308. package/dist/api/types/Vitamins.d.ts +3 -0
  309. package/dist/api/types/WorkoutColumnExpr.d.ts +1 -0
  310. package/dist/api/types/WorkoutColumnExprWorkout.d.ts +3 -0
  311. package/dist/api/types/index.d.ts +12 -0
  312. package/dist/api/types/index.js +12 -0
  313. package/dist/serialization/resources/link/client/requests/BulkImportConnectionsBody.d.ts +1 -0
  314. package/dist/serialization/resources/link/client/requests/BulkImportConnectionsBody.js +1 -0
  315. package/dist/serialization/resources/link/client/requests/BulkTriggerHistoricalPullBody.d.ts +1 -0
  316. package/dist/serialization/resources/link/client/requests/BulkTriggerHistoricalPullBody.js +1 -0
  317. package/dist/serialization/resources/user/client/requests/UserInfoCreateRequest.d.ts +10 -0
  318. package/dist/serialization/resources/user/client/requests/UserInfoCreateRequest.js +10 -0
  319. package/dist/serialization/types/BiomarkerResult.d.ts +2 -0
  320. package/dist/serialization/types/BiomarkerResult.js +2 -0
  321. package/dist/serialization/types/ClientFacingPatientDetailsCompatible.d.ts +10 -0
  322. package/dist/serialization/types/ClientFacingPatientDetailsCompatible.js +10 -0
  323. package/dist/serialization/types/ClinicalInformation.d.ts +15 -0
  324. package/dist/serialization/types/ClinicalInformation.js +36 -0
  325. package/dist/serialization/types/Ethnicity.d.ts +10 -0
  326. package/dist/serialization/types/Ethnicity.js +31 -0
  327. package/dist/serialization/types/GenderIdentity.d.ts +10 -0
  328. package/dist/serialization/types/GenderIdentity.js +38 -0
  329. package/dist/serialization/types/GuarantorDetails.d.ts +2 -0
  330. package/dist/serialization/types/GuarantorDetails.js +2 -0
  331. package/dist/serialization/types/LabResultsRaw.d.ts +2 -0
  332. package/dist/serialization/types/LabResultsRaw.js +2 -0
  333. package/dist/serialization/types/PatientDetailsWithValidation.d.ts +10 -0
  334. package/dist/serialization/types/PatientDetailsWithValidation.js +10 -0
  335. package/dist/serialization/types/PerformingLaboratory.d.ts +16 -0
  336. package/dist/serialization/types/PerformingLaboratory.js +37 -0
  337. package/dist/serialization/types/ProviderConnectionError.d.ts +2 -1
  338. package/dist/serialization/types/ProviderConnectionError.js +2 -1
  339. package/dist/serialization/types/ProviderConnectionErrorErrorType.d.ts +10 -0
  340. package/dist/serialization/types/ProviderConnectionErrorErrorType.js +39 -0
  341. package/dist/serialization/types/Race.d.ts +10 -0
  342. package/dist/serialization/types/Race.js +38 -0
  343. package/dist/serialization/types/SampleData.d.ts +23 -0
  344. package/dist/serialization/types/SampleData.js +44 -0
  345. package/dist/serialization/types/SampleDataDateCollected.d.ts +11 -0
  346. package/dist/serialization/types/SampleDataDateCollected.js +32 -0
  347. package/dist/serialization/types/SampleDataDateReceived.d.ts +11 -0
  348. package/dist/serialization/types/SampleDataDateReceived.js +32 -0
  349. package/dist/serialization/types/SampleDataDateReported.d.ts +11 -0
  350. package/dist/serialization/types/SampleDataDateReported.js +32 -0
  351. package/dist/serialization/types/SexualOrientation.d.ts +10 -0
  352. package/dist/serialization/types/SexualOrientation.js +37 -0
  353. package/dist/serialization/types/UserInfo.d.ts +10 -0
  354. package/dist/serialization/types/UserInfo.js +10 -0
  355. package/dist/serialization/types/UtcTimestampWithTimezoneOffset.d.ts +13 -0
  356. package/dist/serialization/types/UtcTimestampWithTimezoneOffset.js +34 -0
  357. package/dist/serialization/types/index.d.ts +12 -0
  358. package/dist/serialization/types/index.js +12 -0
  359. package/dist/version.d.ts +1 -1
  360. package/dist/version.js +1 -1
  361. package/package.json +1 -1
  362. package/serialization/resources/link/client/requests/BulkImportConnectionsBody.d.ts +1 -0
  363. package/serialization/resources/link/client/requests/BulkImportConnectionsBody.js +1 -0
  364. package/serialization/resources/link/client/requests/BulkTriggerHistoricalPullBody.d.ts +1 -0
  365. package/serialization/resources/link/client/requests/BulkTriggerHistoricalPullBody.js +1 -0
  366. package/serialization/resources/user/client/requests/UserInfoCreateRequest.d.ts +10 -0
  367. package/serialization/resources/user/client/requests/UserInfoCreateRequest.js +10 -0
  368. package/serialization/types/BiomarkerResult.d.ts +2 -0
  369. package/serialization/types/BiomarkerResult.js +2 -0
  370. package/serialization/types/ClientFacingPatientDetailsCompatible.d.ts +10 -0
  371. package/serialization/types/ClientFacingPatientDetailsCompatible.js +10 -0
  372. package/serialization/types/ClinicalInformation.d.ts +15 -0
  373. package/serialization/types/ClinicalInformation.js +36 -0
  374. package/serialization/types/Ethnicity.d.ts +10 -0
  375. package/serialization/types/Ethnicity.js +31 -0
  376. package/serialization/types/GenderIdentity.d.ts +10 -0
  377. package/serialization/types/GenderIdentity.js +38 -0
  378. package/serialization/types/GuarantorDetails.d.ts +2 -0
  379. package/serialization/types/GuarantorDetails.js +2 -0
  380. package/serialization/types/LabResultsRaw.d.ts +2 -0
  381. package/serialization/types/LabResultsRaw.js +2 -0
  382. package/serialization/types/PatientDetailsWithValidation.d.ts +10 -0
  383. package/serialization/types/PatientDetailsWithValidation.js +10 -0
  384. package/serialization/types/PerformingLaboratory.d.ts +16 -0
  385. package/serialization/types/PerformingLaboratory.js +37 -0
  386. package/serialization/types/ProviderConnectionError.d.ts +2 -1
  387. package/serialization/types/ProviderConnectionError.js +2 -1
  388. package/serialization/types/ProviderConnectionErrorErrorType.d.ts +10 -0
  389. package/serialization/types/ProviderConnectionErrorErrorType.js +39 -0
  390. package/serialization/types/Race.d.ts +10 -0
  391. package/serialization/types/Race.js +38 -0
  392. package/serialization/types/SampleData.d.ts +23 -0
  393. package/serialization/types/SampleData.js +44 -0
  394. package/serialization/types/SampleDataDateCollected.d.ts +11 -0
  395. package/serialization/types/SampleDataDateCollected.js +32 -0
  396. package/serialization/types/SampleDataDateReceived.d.ts +11 -0
  397. package/serialization/types/SampleDataDateReceived.js +32 -0
  398. package/serialization/types/SampleDataDateReported.d.ts +11 -0
  399. package/serialization/types/SampleDataDateReported.js +32 -0
  400. package/serialization/types/SexualOrientation.d.ts +10 -0
  401. package/serialization/types/SexualOrientation.js +37 -0
  402. package/serialization/types/UserInfo.d.ts +10 -0
  403. package/serialization/types/UserInfo.js +10 -0
  404. package/serialization/types/UtcTimestampWithTimezoneOffset.d.ts +13 -0
  405. package/serialization/types/UtcTimestampWithTimezoneOffset.js +34 -0
  406. package/serialization/types/index.d.ts +12 -0
  407. package/serialization/types/index.js +12 -0
  408. package/version.d.ts +1 -1
  409. package/version.js +1 -1
@@ -3,5 +3,6 @@
3
3
  */
4
4
  import * as Vital from "../index";
5
5
  export interface SleepColumnExpr {
6
+ /** ℹ️ This enum is non-exhaustive. */
6
7
  sleep: Vital.SleepColumnExprSleep;
7
8
  }
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type SleepColumnExprSleep = "session_start" | "session_end" | "state" | "type" | "duration_second" | "stage_asleep_second" | "stage_awake_second" | "stage_light_second" | "stage_rem_second" | "stage_deep_second" | "stage_unknown_second" | "latency_second" | "heart_rate_minimum" | "heart_rate_mean" | "heart_rate_maximum" | "heart_rate_dip" | "heart_rate_resting" | "efficiency" | "hrv_mean_rmssd" | "hrv_mean_sdnn" | "skin_temperature" | "skin_temperature_delta" | "respiratory_rate" | "score" | "source_type" | "source_provider" | "source_app_id" | "time_zone";
5
8
  export declare const SleepColumnExprSleep: {
6
9
  readonly SessionStart: "session_start";
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type SleepSummaryState = "tentative" | "confirmed";
5
8
  export declare const SleepSummaryState: {
6
9
  readonly Tentative: "tentative";
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type SleepType = "long_sleep" | "short_sleep" | "acknowledged_nap" | "unknown";
5
8
  export declare const SleepType: {
6
9
  readonly LongSleep: "long_sleep";
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type SourceAuthType = "oauth" | "team_oauth" | "sdk" | "password" | "email" | "app" | "";
5
8
  export declare const SourceAuthType: {
6
9
  readonly Oauth: "oauth";
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type SourceType = "app" | "ble" | "device" | "lab" | "provider";
5
8
  export declare const SourceType: {
6
9
  readonly App: "app";
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type TimeseriesResource = "calories_active" | "calories_basal" | "distance" | "blood_oxygen" | "blood_pressure" | "body_fat" | "body_weight" | "body_temperature" | "body_temperature_delta" | "cholesterol" | "cholesterol/ldl" | "cholesterol/hdl" | "cholesterol/total" | "cholesterol/triglycerides" | "electrocardiogram_voltage" | "floors_climbed" | "glucose" | "heartrate" | "hrv" | "hypnogram" | "ige" | "igg" | "respiratory_rate" | "steps" | "stress_level" | "vo2_max" | "water" | "caffeine" | "mindfulness_minutes" | "afib_burden" | "heart_rate_alert" | "stand_hour" | "stand_duration" | "sleep_apnea_alert" | "sleep_breathing_disturbance" | "wheelchair_push" | "forced_expiratory_volume_1" | "forced_vital_capacity" | "peak_expiratory_flow_rate" | "inhaler_usage" | "fall" | "uv_exposure" | "daylight_exposure" | "handwashing" | "basal_body_temperature" | "body_mass_index" | "lean_body_mass" | "waist_circumference" | "workout_duration" | "insulin_injection" | "carbohydrates" | "note";
5
8
  export declare const TimeseriesResource: {
6
9
  readonly CaloriesActive: "calories_active";
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type TraceElements = "chromium" | "copper" | "iodine" | "manganese" | "molybdenum" | "selenium";
5
8
  export declare const TraceElements: {
6
9
  readonly Chromium: "chromium";
@@ -10,4 +10,9 @@ export interface UserInfo {
10
10
  gender: string;
11
11
  dob: string;
12
12
  address: Vital.Address;
13
+ medicalProxy?: Vital.GuarantorDetails;
14
+ race?: Vital.Race;
15
+ ethnicity?: Vital.Ethnicity;
16
+ sexualOrientation?: Vital.SexualOrientation;
17
+ genderIdentity?: Vital.GenderIdentity;
13
18
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface UtcTimestampWithTimezoneOffset {
5
+ timestamp: Date;
6
+ timezoneOffset: number;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type VitalSleepStage = number;
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type Vitamins = "vitamin_a" | "vitamin_b1" | "riboflavin" | "niacin" | "pantothenic_acid" | "vitamin_b6" | "biotin" | "vitamin_b12" | "vitamin_c" | "vitamin_d" | "vitamin_e" | "vitamin_k" | "folic_acid";
5
8
  export declare const Vitamins: {
6
9
  readonly VitaminA: "vitamin_a";
@@ -3,5 +3,6 @@
3
3
  */
4
4
  import * as Vital from "../index";
5
5
  export interface WorkoutColumnExpr {
6
+ /** ℹ️ This enum is non-exhaustive. */
6
7
  workout: Vital.WorkoutColumnExprWorkout;
7
8
  }
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type WorkoutColumnExprWorkout = "session_start" | "session_end" | "title" | "sport_name" | "sport_slug" | "duration_active_second" | "heart_rate_mean" | "heart_rate_minimum" | "heart_rate_maximum" | "heart_rate_zone_1" | "heart_rate_zone_2" | "heart_rate_zone_3" | "heart_rate_zone_4" | "heart_rate_zone_5" | "heart_rate_zone_6" | "distance_meter" | "calories" | "elevation_gain_meter" | "elevation_maximum_meter" | "elevation_minimum_meter" | "speed_mean" | "speed_maximum" | "power_source" | "power_mean" | "power_maximum" | "power_weighted_mean" | "steps" | "map_polyline" | "map_summary_polyline" | "source_type" | "source_provider" | "source_app_id" | "source_workout_id" | "time_zone";
5
8
  export declare const WorkoutColumnExprWorkout: {
6
9
  readonly SessionStart: "session_start";
@@ -177,6 +177,7 @@ export * from "./ClientSleepResponse";
177
177
  export * from "./ClientUserIdConflict";
178
178
  export * from "./ClientUserIdConflictResponse";
179
179
  export * from "./ClientWorkoutResponse";
180
+ export * from "./ClinicalInformation";
180
181
  export * from "./CompanyDetails";
181
182
  export * from "./ConnectedSourceClientFacing";
182
183
  export * from "./ConnectionRecipe";
@@ -199,6 +200,7 @@ export * from "./DetectedDeviationEntry";
199
200
  export * from "./DeviceV2InDb";
200
201
  export * from "./EmailProviders";
201
202
  export * from "./Energy";
203
+ export * from "./Ethnicity";
202
204
  export * from "./EventDestinationPreferencesPreferred";
203
205
  export * from "./EventDestinationPreferencesEnabledItem";
204
206
  export * from "./EventDestinationPreferences";
@@ -207,6 +209,7 @@ export * from "./FallbackBirthDate";
207
209
  export * from "./FallbackTimeZone";
208
210
  export * from "./Fats";
209
211
  export * from "./Gender";
212
+ export * from "./GenderIdentity";
210
213
  export * from "./GetMarkersResponse";
211
214
  export * from "./GetOrdersResponse";
212
215
  export * from "./GroupKeyColumnExprGroupKey";
@@ -270,6 +273,7 @@ export * from "./PatientAddressCompatible";
270
273
  export * from "./PatientAddressWithValidation";
271
274
  export * from "./PatientDetailsWithValidation";
272
275
  export * from "./PayorCodeExternalProvider";
276
+ export * from "./PerformingLaboratory";
273
277
  export * from "./PeriodUnit";
274
278
  export * from "./Period";
275
279
  export * from "./PhlebotomyAreaInfo";
@@ -282,6 +286,7 @@ export * from "./Png";
282
286
  export * from "./PostOrderResponse";
283
287
  export * from "./ProfileInDb";
284
288
  export * from "./ProviderConnectionCreated";
289
+ export * from "./ProviderConnectionErrorErrorType";
285
290
  export * from "./ProviderConnectionError";
286
291
  export * from "./ProviderLinkResponseState";
287
292
  export * from "./ProviderLinkResponse";
@@ -295,6 +300,7 @@ export * from "./QueryConfigProviderPriorityOverridesItem";
295
300
  export * from "./QueryConfig";
296
301
  export * from "./Question";
297
302
  export * from "./QuestionType";
303
+ export * from "./Race";
298
304
  export * from "./RawActivity";
299
305
  export * from "./RawBody";
300
306
  export * from "./RawDevices";
@@ -308,9 +314,14 @@ export * from "./ClientFacingResource";
308
314
  export * from "./ResourceAvailability";
309
315
  export * from "./ResponsibleRelationship";
310
316
  export * from "./ResultType";
317
+ export * from "./SampleDataDateCollected";
318
+ export * from "./SampleDataDateReceived";
319
+ export * from "./SampleDataDateReported";
320
+ export * from "./SampleData";
311
321
  export * from "./ScopeRequirementsGrants";
312
322
  export * from "./ScopeRequirementsStr";
313
323
  export * from "./SexualActivityEntry";
324
+ export * from "./SexualOrientation";
314
325
  export * from "./ShippingAddress";
315
326
  export * from "./ShippingAddressWithValidation";
316
327
  export * from "./SingleHistoricalPullStatistics";
@@ -334,6 +345,7 @@ export * from "./TimeseriesMetricPoint";
334
345
  export * from "./TimeseriesResource";
335
346
  export * from "./TraceElements";
336
347
  export * from "./UsAddress";
348
+ export * from "./UtcTimestampWithTimezoneOffset";
337
349
  export * from "./UnrecognizedValueMacroExpr";
338
350
  export * from "./UserHistoricalPullsResponse";
339
351
  export * from "./UserInfo";
@@ -193,6 +193,7 @@ __exportStar(require("./ClientSleepResponse"), exports);
193
193
  __exportStar(require("./ClientUserIdConflict"), exports);
194
194
  __exportStar(require("./ClientUserIdConflictResponse"), exports);
195
195
  __exportStar(require("./ClientWorkoutResponse"), exports);
196
+ __exportStar(require("./ClinicalInformation"), exports);
196
197
  __exportStar(require("./CompanyDetails"), exports);
197
198
  __exportStar(require("./ConnectedSourceClientFacing"), exports);
198
199
  __exportStar(require("./ConnectionRecipe"), exports);
@@ -215,6 +216,7 @@ __exportStar(require("./DetectedDeviationEntry"), exports);
215
216
  __exportStar(require("./DeviceV2InDb"), exports);
216
217
  __exportStar(require("./EmailProviders"), exports);
217
218
  __exportStar(require("./Energy"), exports);
219
+ __exportStar(require("./Ethnicity"), exports);
218
220
  __exportStar(require("./EventDestinationPreferencesPreferred"), exports);
219
221
  __exportStar(require("./EventDestinationPreferencesEnabledItem"), exports);
220
222
  __exportStar(require("./EventDestinationPreferences"), exports);
@@ -223,6 +225,7 @@ __exportStar(require("./FallbackBirthDate"), exports);
223
225
  __exportStar(require("./FallbackTimeZone"), exports);
224
226
  __exportStar(require("./Fats"), exports);
225
227
  __exportStar(require("./Gender"), exports);
228
+ __exportStar(require("./GenderIdentity"), exports);
226
229
  __exportStar(require("./GetMarkersResponse"), exports);
227
230
  __exportStar(require("./GetOrdersResponse"), exports);
228
231
  __exportStar(require("./GroupKeyColumnExprGroupKey"), exports);
@@ -286,6 +289,7 @@ __exportStar(require("./PatientAddressCompatible"), exports);
286
289
  __exportStar(require("./PatientAddressWithValidation"), exports);
287
290
  __exportStar(require("./PatientDetailsWithValidation"), exports);
288
291
  __exportStar(require("./PayorCodeExternalProvider"), exports);
292
+ __exportStar(require("./PerformingLaboratory"), exports);
289
293
  __exportStar(require("./PeriodUnit"), exports);
290
294
  __exportStar(require("./Period"), exports);
291
295
  __exportStar(require("./PhlebotomyAreaInfo"), exports);
@@ -298,6 +302,7 @@ __exportStar(require("./Png"), exports);
298
302
  __exportStar(require("./PostOrderResponse"), exports);
299
303
  __exportStar(require("./ProfileInDb"), exports);
300
304
  __exportStar(require("./ProviderConnectionCreated"), exports);
305
+ __exportStar(require("./ProviderConnectionErrorErrorType"), exports);
301
306
  __exportStar(require("./ProviderConnectionError"), exports);
302
307
  __exportStar(require("./ProviderLinkResponseState"), exports);
303
308
  __exportStar(require("./ProviderLinkResponse"), exports);
@@ -311,6 +316,7 @@ __exportStar(require("./QueryConfigProviderPriorityOverridesItem"), exports);
311
316
  __exportStar(require("./QueryConfig"), exports);
312
317
  __exportStar(require("./Question"), exports);
313
318
  __exportStar(require("./QuestionType"), exports);
319
+ __exportStar(require("./Race"), exports);
314
320
  __exportStar(require("./RawActivity"), exports);
315
321
  __exportStar(require("./RawBody"), exports);
316
322
  __exportStar(require("./RawDevices"), exports);
@@ -324,9 +330,14 @@ __exportStar(require("./ClientFacingResource"), exports);
324
330
  __exportStar(require("./ResourceAvailability"), exports);
325
331
  __exportStar(require("./ResponsibleRelationship"), exports);
326
332
  __exportStar(require("./ResultType"), exports);
333
+ __exportStar(require("./SampleDataDateCollected"), exports);
334
+ __exportStar(require("./SampleDataDateReceived"), exports);
335
+ __exportStar(require("./SampleDataDateReported"), exports);
336
+ __exportStar(require("./SampleData"), exports);
327
337
  __exportStar(require("./ScopeRequirementsGrants"), exports);
328
338
  __exportStar(require("./ScopeRequirementsStr"), exports);
329
339
  __exportStar(require("./SexualActivityEntry"), exports);
340
+ __exportStar(require("./SexualOrientation"), exports);
330
341
  __exportStar(require("./ShippingAddress"), exports);
331
342
  __exportStar(require("./ShippingAddressWithValidation"), exports);
332
343
  __exportStar(require("./SingleHistoricalPullStatistics"), exports);
@@ -350,6 +361,7 @@ __exportStar(require("./TimeseriesMetricPoint"), exports);
350
361
  __exportStar(require("./TimeseriesResource"), exports);
351
362
  __exportStar(require("./TraceElements"), exports);
352
363
  __exportStar(require("./UsAddress"), exports);
364
+ __exportStar(require("./UtcTimestampWithTimezoneOffset"), exports);
353
365
  __exportStar(require("./UnrecognizedValueMacroExpr"), exports);
354
366
  __exportStar(require("./UserHistoricalPullsResponse"), exports);
355
367
  __exportStar(require("./UserInfo"), exports);
@@ -78,7 +78,7 @@ class Activity {
78
78
  const _response = yield core.fetcher({
79
79
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/activity/${encodeURIComponent(userId)}`),
80
80
  method: "GET",
81
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.231", "User-Agent": "@tryvital/vital-node/3.1.231", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  requestType: "json",
@@ -154,7 +154,7 @@ class Activity {
154
154
  const _response = yield core.fetcher({
155
155
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/activity/${encodeURIComponent(userId)}/raw`),
156
156
  method: "GET",
157
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.231", "User-Agent": "@tryvital/vital-node/3.1.231", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
157
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
158
158
  contentType: "application/json",
159
159
  queryParameters: _queryParams,
160
160
  requestType: "json",
@@ -81,7 +81,7 @@ class Aggregate {
81
81
  const _response = yield core.fetcher({
82
82
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `aggregate/v1/user/${encodeURIComponent(userId)}/query`),
83
83
  method: "POST",
84
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.231", "User-Agent": "@tryvital/vital-node/3.1.231", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
84
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  body: serializers.QueryBatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -144,7 +144,7 @@ class Aggregate {
144
144
  const _response = yield core.fetcher({
145
145
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `aggregate/v1/user/${encodeURIComponent(userId)}/continuous_query/${encodeURIComponent(queryIdOrSlug)}/result_table`),
146
146
  method: "GET",
147
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.231", "User-Agent": "@tryvital/vital-node/3.1.231", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
147
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
148
148
  contentType: "application/json",
149
149
  requestType: "json",
150
150
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -78,7 +78,7 @@ class Body {
78
78
  const _response = yield core.fetcher({
79
79
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/body/${encodeURIComponent(userId)}`),
80
80
  method: "GET",
81
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.231", "User-Agent": "@tryvital/vital-node/3.1.231", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  requestType: "json",
@@ -154,7 +154,7 @@ class Body {
154
154
  const _response = yield core.fetcher({
155
155
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/body/${encodeURIComponent(userId)}/raw`),
156
156
  method: "GET",
157
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.231", "User-Agent": "@tryvital/vital-node/3.1.231", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
157
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
158
158
  contentType: "application/json",
159
159
  queryParameters: _queryParams,
160
160
  requestType: "json",
@@ -72,7 +72,7 @@ class Devices {
72
72
  const _response = yield core.fetcher({
73
73
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/devices/${encodeURIComponent(userId)}/raw`),
74
74
  method: "GET",
75
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.231", "User-Agent": "@tryvital/vital-node/3.1.231", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
75
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
76
  contentType: "application/json",
77
77
  queryParameters: _queryParams,
78
78
  requestType: "json",
@@ -78,7 +78,7 @@ class Electrocardiogram {
78
78
  const _response = yield core.fetcher({
79
79
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/electrocardiogram/${encodeURIComponent(userId)}`),
80
80
  method: "GET",
81
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.231", "User-Agent": "@tryvital/vital-node/3.1.231", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  requestType: "json",
@@ -75,7 +75,7 @@ class Insurance {
75
75
  const _response = yield core.fetcher({
76
76
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/payor"),
77
77
  method: "GET",
78
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.231", "User-Agent": "@tryvital/vital-node/3.1.231", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
79
  contentType: "application/json",
80
80
  queryParameters: _queryParams,
81
81
  requestType: "json",
@@ -137,7 +137,7 @@ class Insurance {
137
137
  const _response = yield core.fetcher({
138
138
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/payor"),
139
139
  method: "POST",
140
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.231", "User-Agent": "@tryvital/vital-node/3.1.231", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
140
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
141
141
  contentType: "application/json",
142
142
  requestType: "json",
143
143
  body: serializers.PayorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -204,7 +204,7 @@ class Insurance {
204
204
  const _response = yield core.fetcher({
205
205
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/diagnosis"),
206
206
  method: "GET",
207
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.231", "User-Agent": "@tryvital/vital-node/3.1.231", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
207
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
208
208
  contentType: "application/json",
209
209
  queryParameters: _queryParams,
210
210
  requestType: "json",
@@ -81,7 +81,7 @@ class Introspect {
81
81
  const _response = yield core.fetcher({
82
82
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/resources"),
83
83
  method: "GET",
84
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.231", "User-Agent": "@tryvital/vital-node/3.1.231", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
84
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
85
85
  contentType: "application/json",
86
86
  queryParameters: _queryParams,
87
87
  requestType: "json",
@@ -160,7 +160,7 @@ class Introspect {
160
160
  const _response = yield core.fetcher({
161
161
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/historical_pull"),
162
162
  method: "GET",
163
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.231", "User-Agent": "@tryvital/vital-node/3.1.231", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
163
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.235", "User-Agent": "@tryvital/vital-node/3.1.235", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
164
164
  contentType: "application/json",
165
165
  queryParameters: _queryParams,
166
166
  requestType: "json",
@@ -141,6 +141,11 @@ export declare class LabTests {
141
141
  * await client.labTests.getPaginated()
142
142
  */
143
143
  getPaginated(request?: Vital.LabTestsGetPaginatedRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.LabTestResourcesResponse>;
144
+ /**
145
+ * GET collection instructions for a lab test
146
+ * @throws {@link Vital.UnprocessableEntityError}
147
+ */
148
+ getLabTestCollectionInstructionPdf(labTestId: string, requestOptions?: LabTests.RequestOptions): Promise<stream.Readable>;
144
149
  /**
145
150
  * Return the available time slots to book an appointment with a phlebotomist
146
151
  * for the given address and order.
@@ -395,6 +400,11 @@ export declare class LabTests {
395
400
  * await client.labTests.getPscAppointment("order_id")
396
401
  */
397
402
  getPscAppointment(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointment>;
403
+ /**
404
+ * GET collection instructions for an order
405
+ * @throws {@link Vital.UnprocessableEntityError}
406
+ */
407
+ getOrderCollectionInstructionPdf(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<stream.Readable>;
398
408
  /**
399
409
  * GET requisition pdf for an order
400
410
  * @throws {@link Vital.UnprocessableEntityError}