@tryvital/vital-node 3.1.69 → 3.1.71

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 (1802) hide show
  1. package/Client.d.ts +9 -2
  2. package/Client.js +6 -1
  3. package/api/errors/BadRequestError.d.ts +1 -1
  4. package/api/errors/BadRequestError.js +1 -1
  5. package/api/errors/UnprocessableEntityError.d.ts +2 -2
  6. package/api/errors/UnprocessableEntityError.js +1 -1
  7. package/api/resources/activity/client/Client.d.ts +20 -6
  8. package/api/resources/activity/client/Client.js +28 -14
  9. package/api/resources/activity/client/requests/index.d.ts +2 -2
  10. package/api/resources/aggregate/client/Client.d.ts +57 -0
  11. package/api/resources/aggregate/client/Client.js +136 -0
  12. package/api/resources/aggregate/client/index.d.ts +1 -0
  13. package/api/resources/aggregate/client/index.js +17 -0
  14. package/api/resources/aggregate/client/requests/Query.d.ts +32 -0
  15. package/api/resources/aggregate/client/requests/Query.js +5 -0
  16. package/api/resources/aggregate/client/requests/index.d.ts +1 -0
  17. package/api/resources/aggregate/client/requests/index.js +2 -0
  18. package/api/resources/aggregate/index.d.ts +2 -0
  19. package/api/resources/aggregate/index.js +18 -0
  20. package/api/resources/aggregate/types/QueryTimeframe.d.ts +5 -0
  21. package/api/resources/aggregate/types/QueryTimeframe.js +5 -0
  22. package/api/resources/aggregate/types/index.d.ts +1 -0
  23. package/api/resources/aggregate/types/index.js +17 -0
  24. package/api/resources/body/client/Client.d.ts +20 -6
  25. package/api/resources/body/client/Client.js +28 -14
  26. package/api/resources/body/client/requests/index.d.ts +2 -2
  27. package/api/resources/devices/client/Client.d.ts +14 -5
  28. package/api/resources/devices/client/Client.js +16 -9
  29. package/api/resources/devices/client/requests/index.d.ts +1 -1
  30. package/api/resources/index.d.ts +3 -0
  31. package/api/resources/index.js +4 -1
  32. package/api/resources/insurance/client/Client.d.ts +16 -6
  33. package/api/resources/insurance/client/Client.js +23 -13
  34. package/api/resources/insurance/client/requests/index.d.ts +2 -2
  35. package/api/resources/introspect/client/Client.d.ts +16 -6
  36. package/api/resources/introspect/client/Client.js +22 -12
  37. package/api/resources/introspect/client/requests/IntrospectGetUserHistoricalPullsRequest.d.ts +1 -1
  38. package/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.d.ts +1 -1
  39. package/api/resources/introspect/client/requests/index.d.ts +2 -2
  40. package/api/resources/labTests/client/Client.d.ts +149 -25
  41. package/api/resources/labTests/client/Client.js +301 -128
  42. package/api/resources/labTests/client/requests/CreateLabTestRequest.d.ts +1 -1
  43. package/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +26 -2
  44. package/api/resources/labTests/client/requests/LabTestsGetAreaInfoRequest.d.ts +1 -1
  45. package/api/resources/labTests/client/requests/LabTestsGetLabelsPdfRequest.d.ts +7 -0
  46. package/api/resources/labTests/client/requests/LabTestsGetMarkersRequest.d.ts +1 -0
  47. package/api/resources/labTests/client/requests/LabTestsGetOrderPscInfoRequest.d.ts +1 -1
  48. package/api/resources/labTests/client/requests/LabTestsGetOrdersRequest.d.ts +1 -1
  49. package/api/resources/labTests/client/requests/LabTestsGetPscInfoRequest.d.ts +1 -1
  50. package/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.d.ts +1 -1
  51. package/api/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +1 -1
  52. package/api/resources/labTests/client/requests/index.d.ts +14 -14
  53. package/api/resources/link/client/Client.d.ts +81 -18
  54. package/api/resources/link/client/Client.js +162 -79
  55. package/api/resources/link/client/requests/BeginLinkTokenRequest.d.ts +1 -1
  56. package/api/resources/link/client/requests/DemoConnectionCreationPayload.d.ts +1 -1
  57. package/api/resources/link/client/requests/EmailAuthLink.d.ts +1 -1
  58. package/api/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -1
  59. package/api/resources/link/client/requests/IndividualProviderData.d.ts +1 -1
  60. package/api/resources/link/client/requests/LinkTokenExchange.d.ts +1 -1
  61. package/api/resources/link/client/requests/PasswordAuthLink.d.ts +1 -1
  62. package/api/resources/link/client/requests/index.d.ts +14 -14
  63. package/api/resources/meal/client/Client.d.ts +14 -5
  64. package/api/resources/meal/client/Client.js +16 -9
  65. package/api/resources/meal/client/requests/index.d.ts +1 -1
  66. package/api/resources/menstrualCycle/client/Client.d.ts +13 -5
  67. package/api/resources/menstrualCycle/client/Client.js +15 -9
  68. package/api/resources/menstrualCycle/client/requests/index.d.ts +1 -1
  69. package/api/resources/profile/client/Client.d.ts +20 -6
  70. package/api/resources/profile/client/Client.js +28 -14
  71. package/api/resources/profile/client/requests/index.d.ts +2 -2
  72. package/api/resources/providers/client/Client.d.ts +13 -5
  73. package/api/resources/providers/client/Client.js +14 -8
  74. package/api/resources/providers/client/requests/index.d.ts +1 -1
  75. package/api/resources/sleep/client/Client.d.ts +31 -8
  76. package/api/resources/sleep/client/Client.js +51 -24
  77. package/api/resources/sleep/client/requests/index.d.ts +3 -3
  78. package/api/resources/team/client/Client.d.ts +41 -10
  79. package/api/resources/team/client/Client.js +72 -31
  80. package/api/resources/team/client/requests/index.d.ts +3 -3
  81. package/api/resources/testkit/client/Client.d.ts +51 -4
  82. package/api/resources/testkit/client/Client.js +59 -12
  83. package/api/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +17 -1
  84. package/api/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +23 -1
  85. package/api/resources/testkit/client/requests/index.d.ts +2 -2
  86. package/api/resources/user/client/Client.d.ts +82 -20
  87. package/api/resources/user/client/Client.js +172 -82
  88. package/api/resources/user/client/requests/CreateInsuranceRequest.d.ts +1 -1
  89. package/api/resources/user/client/requests/UserCreateBody.d.ts +8 -0
  90. package/api/resources/user/client/requests/UserInfoCreateRequest.d.ts +1 -1
  91. package/api/resources/user/client/requests/UserPatchBody.d.ts +8 -0
  92. package/api/resources/user/client/requests/index.d.ts +7 -7
  93. package/api/resources/vitals/client/Client.d.ts +288 -60
  94. package/api/resources/vitals/client/Client.js +620 -284
  95. package/api/resources/vitals/client/requests/index.d.ts +56 -56
  96. package/api/resources/workouts/client/Client.d.ts +24 -7
  97. package/api/resources/workouts/client/Client.js +38 -19
  98. package/api/resources/workouts/client/requests/index.d.ts +2 -2
  99. package/api/types/ActivitySelector.d.ts +7 -0
  100. package/api/types/ActivitySelector.js +5 -0
  101. package/api/types/ActivitySelectorActivity.d.ts +24 -0
  102. package/api/types/ActivitySelectorActivity.js +26 -0
  103. package/api/types/ActivityV2InDb.d.ts +1 -1
  104. package/api/types/AddOnOrder.d.ts +7 -0
  105. package/api/types/AddOnOrder.js +5 -0
  106. package/api/types/AoE.d.ts +1 -1
  107. package/api/types/AppointmentAvailabilitySlots.d.ts +1 -1
  108. package/api/types/AreaInfo.d.ts +1 -1
  109. package/api/types/BiomarkerResult.d.ts +3 -2
  110. package/api/types/BodyV2InDb.d.ts +1 -1
  111. package/api/types/CervicalMucusEntry.d.ts +1 -1
  112. package/api/types/ClientActivityResponse.d.ts +1 -1
  113. package/api/types/ClientBodyResponse.d.ts +1 -1
  114. package/api/types/ClientFacingActivity.d.ts +14 -2
  115. package/api/types/ClientFacingApiKey.d.ts +2 -2
  116. package/api/types/ClientFacingAppointment.d.ts +5 -3
  117. package/api/types/ClientFacingAppointmentEvent.d.ts +2 -2
  118. package/api/types/ClientFacingAtHomePhlebotomyOrder.d.ts +2 -2
  119. package/api/types/ClientFacingAtHomePhlebotomyOrderDetails.d.ts +1 -1
  120. package/api/types/ClientFacingBloodOxygenTimeseries.d.ts +4 -1
  121. package/api/types/ClientFacingBloodPressureTimeseries.d.ts +4 -1
  122. package/api/types/ClientFacingBody.d.ts +4 -2
  123. package/api/types/ClientFacingBodyFatTimeseries.d.ts +4 -1
  124. package/api/types/ClientFacingBodyTemperatureDeltaSample.d.ts +8 -4
  125. package/api/types/ClientFacingBodyTemperatureSample.d.ts +8 -4
  126. package/api/types/ClientFacingBodyWeightTimeseries.d.ts +4 -1
  127. package/api/types/ClientFacingCaffeineTimeseries.d.ts +6 -3
  128. package/api/types/ClientFacingCaloriesActiveTimeseries.d.ts +6 -3
  129. package/api/types/ClientFacingCaloriesBasalTimeseries.d.ts +4 -1
  130. package/api/types/ClientFacingCarbohydratesSample.d.ts +6 -3
  131. package/api/types/ClientFacingCholesterolTimeseries.d.ts +4 -1
  132. package/api/types/ClientFacingDistanceTimeseries.d.ts +6 -3
  133. package/api/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +2 -0
  134. package/api/types/ClientFacingFloorsClimbedTimeseries.d.ts +4 -1
  135. package/api/types/ClientFacingFood.d.ts +1 -1
  136. package/api/types/ClientFacingGlucoseTimeseries.d.ts +4 -1
  137. package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.d.ts +3 -1
  138. package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.d.ts +3 -1
  139. package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample.d.ts +3 -1
  140. package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample.d.ts +3 -1
  141. package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingNoteSample.d.ts +3 -1
  142. package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample.d.ts +3 -1
  143. package/api/types/ClientFacingHeartRate.d.ts +4 -0
  144. package/api/types/ClientFacingHeartRateTimeseries.d.ts +4 -1
  145. package/api/types/ClientFacingHrvTimeseries.d.ts +4 -1
  146. package/api/types/ClientFacingHypnogramTimeseries.d.ts +6 -3
  147. package/api/types/ClientFacingIgeTimeseries.d.ts +4 -1
  148. package/api/types/ClientFacingIggTimeseries.d.ts +4 -1
  149. package/api/types/ClientFacingInsulinInjectionSample.d.ts +6 -4
  150. package/api/types/ClientFacingInsurance.d.ts +1 -1
  151. package/api/types/ClientFacingLab.d.ts +1 -1
  152. package/api/types/ClientFacingLabLocation.d.ts +1 -1
  153. package/api/types/ClientFacingLabTest.d.ts +5 -1
  154. package/api/types/ClientFacingMarker.d.ts +2 -1
  155. package/api/types/ClientFacingMarkerComplete.d.ts +2 -1
  156. package/api/types/ClientFacingMealResponse.d.ts +1 -1
  157. package/api/types/ClientFacingMindfulnessMinutesTimeseries.d.ts +6 -3
  158. package/api/types/ClientFacingNoteSample.d.ts +8 -4
  159. package/api/types/ClientFacingOrder.d.ts +11 -3
  160. package/api/types/ClientFacingOrderDetails.d.ts +1 -1
  161. package/api/types/ClientFacingOrderEvent.d.ts +2 -2
  162. package/api/types/ClientFacingPatientDetailsCompatible.d.ts +1 -1
  163. package/api/types/ClientFacingPayorSearchResponse.d.ts +1 -1
  164. package/api/types/ClientFacingProfile.d.ts +1 -1
  165. package/api/types/ClientFacingProviderDetailed.d.ts +2 -1
  166. package/api/types/ClientFacingProviderWithStatus.d.ts +1 -1
  167. package/api/types/ClientFacingRespiratoryRateTimeseries.d.ts +4 -1
  168. package/api/types/ClientFacingResult.d.ts +1 -1
  169. package/api/types/ClientFacingShipment.d.ts +7 -0
  170. package/api/types/ClientFacingSleep.d.ts +16 -4
  171. package/api/types/ClientFacingSleepStream.d.ts +1 -1
  172. package/api/types/ClientFacingSource.d.ts +1 -0
  173. package/api/types/ClientFacingStepsTimeseries.d.ts +6 -3
  174. package/api/types/ClientFacingStream.d.ts +2 -1
  175. package/api/types/ClientFacingStressLevelTimeseries.d.ts +4 -1
  176. package/api/types/ClientFacingTeam.d.ts +1 -1
  177. package/api/types/ClientFacingTestKitOrderDetails.d.ts +1 -1
  178. package/api/types/ClientFacingTestkitOrder.d.ts +4 -3
  179. package/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.d.ts +1 -1
  180. package/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.d.ts +1 -1
  181. package/api/types/ClientFacingTimeseriesGroupClientFacingCarbohydratesSample.d.ts +1 -1
  182. package/api/types/ClientFacingTimeseriesGroupClientFacingInsulinInjectionSample.d.ts +1 -1
  183. package/api/types/ClientFacingTimeseriesGroupClientFacingNoteSample.d.ts +1 -1
  184. package/api/types/ClientFacingTimeseriesGroupClientFacingWorkoutDurationSample.d.ts +1 -1
  185. package/api/types/ClientFacingUser.d.ts +9 -2
  186. package/api/types/ClientFacingVo2MaxTimeseries.d.ts +6 -3
  187. package/api/types/ClientFacingWalkInOrderDetails.d.ts +1 -1
  188. package/api/types/ClientFacingWalkInTestOrder.d.ts +2 -2
  189. package/api/types/ClientFacingWaterTimeseries.d.ts +4 -1
  190. package/api/types/ClientFacingWorkout.d.ts +22 -3
  191. package/api/types/ClientFacingWorkoutDurationSample.d.ts +8 -4
  192. package/api/types/ClientSleepResponse.d.ts +1 -1
  193. package/api/types/ClientWorkoutResponse.d.ts +1 -1
  194. package/api/types/CompanyDetails.d.ts +1 -1
  195. package/api/types/ConnectedSourceClientFacing.d.ts +2 -2
  196. package/api/types/ConnectionStatus.d.ts +1 -1
  197. package/api/types/Consent.d.ts +1 -1
  198. package/api/types/ContraceptiveEntry.d.ts +1 -1
  199. package/api/types/DaySlots.d.ts +1 -1
  200. package/api/types/DetectedDeviationEntry.d.ts +1 -1
  201. package/api/types/DeviceV2InDb.d.ts +1 -1
  202. package/api/types/EventDestinationPreferences.d.ts +1 -1
  203. package/api/types/FallbackBirthDate.d.ts +1 -1
  204. package/api/types/FallbackTimeZone.d.ts +1 -1
  205. package/api/types/Fats.d.ts +6 -0
  206. package/api/types/GetMarkersResponse.d.ts +1 -1
  207. package/api/types/GetOrdersResponse.d.ts +1 -1
  208. package/api/types/GroupedBloodOxygen.d.ts +1 -1
  209. package/api/types/GroupedBloodOxygenResponse.d.ts +3 -1
  210. package/api/types/GroupedBloodPressure.d.ts +1 -1
  211. package/api/types/GroupedBloodPressureResponse.d.ts +3 -1
  212. package/api/types/GroupedBodyFat.d.ts +1 -1
  213. package/api/types/GroupedBodyFatResponse.d.ts +3 -1
  214. package/api/types/GroupedBodyWeight.d.ts +1 -1
  215. package/api/types/GroupedBodyWeightResponse.d.ts +3 -1
  216. package/api/types/GroupedCaffeine.d.ts +1 -1
  217. package/api/types/GroupedCaffeineResponse.d.ts +3 -1
  218. package/api/types/GroupedCaloriesActive.d.ts +1 -1
  219. package/api/types/GroupedCaloriesActiveResponse.d.ts +3 -1
  220. package/api/types/GroupedCaloriesBasal.d.ts +1 -1
  221. package/api/types/GroupedCaloriesBasalResponse.d.ts +3 -1
  222. package/api/types/GroupedCholesterol.d.ts +1 -1
  223. package/api/types/GroupedCholesterolResponse.d.ts +3 -1
  224. package/api/types/GroupedDistance.d.ts +1 -1
  225. package/api/types/GroupedDistanceResponse.d.ts +3 -1
  226. package/api/types/GroupedElectrocardiogramVoltage.d.ts +1 -1
  227. package/api/types/GroupedElectrocardiogramVoltageResponse.d.ts +3 -1
  228. package/api/types/GroupedFloorsClimbed.d.ts +1 -1
  229. package/api/types/GroupedFloorsClimbedResponse.d.ts +3 -1
  230. package/api/types/GroupedGlucose.d.ts +1 -1
  231. package/api/types/GroupedGlucoseResponse.d.ts +3 -1
  232. package/api/types/GroupedHeartRate.d.ts +1 -1
  233. package/api/types/GroupedHeartRateResponse.d.ts +3 -1
  234. package/api/types/GroupedHrv.d.ts +1 -1
  235. package/api/types/GroupedHrvResponse.d.ts +3 -1
  236. package/api/types/GroupedHypnogram.d.ts +1 -1
  237. package/api/types/GroupedHypnogramResponse.d.ts +3 -1
  238. package/api/types/GroupedIge.d.ts +1 -1
  239. package/api/types/GroupedIgeResponse.d.ts +3 -1
  240. package/api/types/GroupedIgg.d.ts +1 -1
  241. package/api/types/GroupedIggResponse.d.ts +3 -1
  242. package/api/types/GroupedMindfulnessMinutes.d.ts +1 -1
  243. package/api/types/GroupedMindfulnessMinutesResponse.d.ts +3 -1
  244. package/api/types/GroupedRespiratoryRate.d.ts +1 -1
  245. package/api/types/GroupedRespiratoryRateResponse.d.ts +3 -1
  246. package/api/types/GroupedSteps.d.ts +1 -1
  247. package/api/types/GroupedStepsResponse.d.ts +3 -1
  248. package/api/types/GroupedStressLevel.d.ts +1 -1
  249. package/api/types/GroupedStressLevelResponse.d.ts +3 -1
  250. package/api/types/GroupedVo2Max.d.ts +1 -1
  251. package/api/types/GroupedVo2MaxResponse.d.ts +3 -1
  252. package/api/types/GroupedWater.d.ts +1 -1
  253. package/api/types/GroupedWaterResponse.d.ts +3 -1
  254. package/api/types/HealthInsuranceCreateRequest.d.ts +8 -1
  255. package/api/types/HealthInsuranceCreateRequestBackImage.d.ts +1 -1
  256. package/api/types/HealthInsuranceCreateRequestFrontImage.d.ts +1 -1
  257. package/api/types/HealthInsuranceCreateRequestPatientSignatureImage.d.ts +1 -1
  258. package/api/types/HistoricalPullTimeline.d.ts +3 -3
  259. package/api/types/HomePregnancyTestEntry.d.ts +1 -1
  260. package/api/types/HomeProgesteroneTestEntry.d.ts +1 -1
  261. package/api/types/HttpValidationError.d.ts +1 -1
  262. package/api/types/LabResultsRaw.d.ts +1 -1
  263. package/api/types/LabResultsRawResults.d.ts +1 -1
  264. package/api/types/LastAttempt.d.ts +2 -2
  265. package/api/types/Macros.d.ts +9 -1
  266. package/api/types/MealInDbBaseClientFacingSource.d.ts +5 -4
  267. package/api/types/MenstrualCycle.d.ts +1 -1
  268. package/api/types/MenstrualCycleResponse.d.ts +1 -1
  269. package/api/types/MenstrualFlowEntry.d.ts +1 -1
  270. package/api/types/MetricsResult.d.ts +1 -1
  271. package/api/types/Micros.d.ts +3 -0
  272. package/api/types/Minerals.d.ts +44 -0
  273. package/api/types/Minerals.js +46 -0
  274. package/api/types/OrderSetRequest.d.ts +8 -0
  275. package/api/types/OrderSetRequest.js +5 -0
  276. package/api/types/OvulationTestEntry.d.ts +1 -1
  277. package/api/types/PaginatedUsersResponse.d.ts +1 -1
  278. package/api/types/PatientDetails.d.ts +1 -1
  279. package/api/types/Period.d.ts +8 -0
  280. package/api/types/Period.js +5 -0
  281. package/api/types/PeriodUnit.d.ts +12 -0
  282. package/api/types/PeriodUnit.js +14 -0
  283. package/api/types/PersonDetailsOutput.d.ts +1 -1
  284. package/api/types/PhlebotomyAreaInfo.d.ts +1 -1
  285. package/api/types/PhlebotomyProviderInfo.d.ts +1 -1
  286. package/api/types/PhysicianCreateRequest.d.ts +1 -1
  287. package/api/types/PhysicianCreateRequestSignatureImage.d.ts +1 -1
  288. package/api/types/Placeholder.d.ts +6 -0
  289. package/api/types/Placeholder.js +5 -0
  290. package/api/types/PostOrderResponse.d.ts +1 -1
  291. package/api/types/ProfileInDb.d.ts +1 -1
  292. package/api/types/ProviderLinkResponse.d.ts +1 -1
  293. package/api/types/ProviderMfaRequest.d.ts +1 -1
  294. package/api/types/Providers.d.ts +2 -1
  295. package/api/types/Providers.js +1 -0
  296. package/api/types/PscAreaInfo.d.ts +1 -1
  297. package/api/types/PscInfo.d.ts +1 -1
  298. package/api/types/QueryConfig.d.ts +8 -0
  299. package/api/types/QueryConfig.js +5 -0
  300. package/api/types/QueryConfigProviderPriorityOverridesItem.d.ts +5 -0
  301. package/api/types/QueryConfigProviderPriorityOverridesItem.js +5 -0
  302. package/api/types/QueryConfigWeekStartsOn.d.ts +8 -0
  303. package/api/types/QueryConfigWeekStartsOn.js +10 -0
  304. package/api/types/QueryInstruction.d.ts +11 -0
  305. package/api/types/QueryInstruction.js +5 -0
  306. package/api/types/QueryInstructionPartitionBy.d.ts +5 -0
  307. package/api/types/QueryInstructionPartitionBy.js +5 -0
  308. package/api/types/QueryInstructionSelect.d.ts +5 -0
  309. package/api/types/QueryInstructionSelect.js +5 -0
  310. package/api/types/Question.d.ts +1 -1
  311. package/api/types/RawActivity.d.ts +1 -1
  312. package/api/types/RawBody.d.ts +1 -1
  313. package/api/types/RawDevices.d.ts +1 -1
  314. package/api/types/RawProfile.d.ts +1 -1
  315. package/api/types/RawSleep.d.ts +1 -1
  316. package/api/types/RawWorkout.d.ts +1 -1
  317. package/api/types/Reducer.d.ts +7 -0
  318. package/api/types/Reducer.js +5 -0
  319. package/api/types/ReducerFunction.d.ts +15 -0
  320. package/api/types/ReducerFunction.js +17 -0
  321. package/api/types/RelativeTimeframe.d.ts +9 -0
  322. package/api/types/RelativeTimeframe.js +5 -0
  323. package/api/types/ResourceAvailability.d.ts +1 -1
  324. package/api/types/ScopeRequirementsGrants.d.ts +1 -1
  325. package/api/types/SingleHistoricalPullStatistics.d.ts +3 -3
  326. package/api/types/SingleProviderHistoricalPullResponse.d.ts +1 -1
  327. package/api/types/SingleResourceStatistics.d.ts +3 -3
  328. package/api/types/SingleUserHistoricalPullResponse.d.ts +1 -1
  329. package/api/types/SingleUserResourceResponse.d.ts +1 -1
  330. package/api/types/SleepSelector.d.ts +7 -0
  331. package/api/types/SleepSelector.js +5 -0
  332. package/api/types/SleepSelectorSleep.d.ts +30 -0
  333. package/api/types/SleepSelectorSleep.js +32 -0
  334. package/api/types/SleepV2InDb.d.ts +1 -1
  335. package/api/types/Source.d.ts +1 -1
  336. package/api/types/SourceLink.d.ts +1 -1
  337. package/api/types/Swizzling.d.ts +36 -0
  338. package/api/types/Swizzling.js +5 -0
  339. package/api/types/SwizzlingBinGranularity.d.ts +11 -0
  340. package/api/types/SwizzlingBinGranularity.js +13 -0
  341. package/api/types/TeamConfig.d.ts +1 -1
  342. package/api/types/TimeSlot.d.ts +3 -3
  343. package/api/types/TimeseriesMetricPoint.d.ts +1 -1
  344. package/api/types/TraceElements.d.ts +12 -0
  345. package/api/types/TraceElements.js +14 -0
  346. package/api/types/UsAddress.d.ts +1 -0
  347. package/api/types/UserHistoricalPullsResponse.d.ts +2 -1
  348. package/api/types/UserInfo.d.ts +1 -1
  349. package/api/types/UserResourcesResponse.d.ts +2 -1
  350. package/api/types/ValidationError.d.ts +1 -1
  351. package/api/types/VitalCoreSchemasDbSchemasLabTestHealthInsurancePersonDetails.d.ts +1 -1
  352. package/api/types/VitalCoreSchemasDbSchemasLabTestInsurancePersonDetails.d.ts +1 -1
  353. package/api/types/Vitamins.d.ts +19 -0
  354. package/api/types/Vitamins.js +21 -0
  355. package/api/types/WorkoutV2InDb.d.ts +1 -1
  356. package/api/types/index.d.ts +23 -0
  357. package/api/types/index.js +23 -0
  358. package/core/fetcher/Fetcher.d.ts +5 -1
  359. package/core/fetcher/Fetcher.js +29 -94
  360. package/core/fetcher/createRequestUrl.d.ts +1 -0
  361. package/core/fetcher/createRequestUrl.js +13 -0
  362. package/core/fetcher/getFetchFn.d.ts +4 -0
  363. package/core/fetcher/getFetchFn.js +59 -0
  364. package/core/fetcher/getRequestBody.d.ts +7 -0
  365. package/core/fetcher/getRequestBody.js +23 -0
  366. package/core/fetcher/getResponseBody.d.ts +1 -0
  367. package/core/fetcher/getResponseBody.js +52 -0
  368. package/core/fetcher/makeRequest.d.ts +1 -0
  369. package/core/fetcher/makeRequest.js +42 -0
  370. package/core/fetcher/requestWithRetries.d.ts +1 -0
  371. package/core/fetcher/requestWithRetries.js +32 -0
  372. package/core/fetcher/signals.d.ts +12 -0
  373. package/core/fetcher/signals.js +37 -0
  374. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
  375. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
  376. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
  377. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
  378. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
  379. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
  380. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
  381. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
  382. package/core/runtime/runtime.d.ts +2 -1
  383. package/core/runtime/runtime.js +12 -1
  384. package/core/schemas/Schema.d.ts +7 -4
  385. package/core/schemas/builders/lazy/lazy.d.ts +2 -2
  386. package/core/schemas/builders/lazy/lazy.js +8 -19
  387. package/core/schemas/builders/lazy/lazyObject.js +1 -10
  388. package/core/schemas/builders/list/list.js +31 -44
  389. package/core/schemas/builders/object/object.js +90 -111
  390. package/core/schemas/builders/object/types.d.ts +2 -2
  391. package/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
  392. package/core/schemas/builders/record/record.js +49 -60
  393. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
  394. package/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
  395. package/core/schemas/builders/set/set.js +6 -15
  396. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
  397. package/core/schemas/builders/union/union.js +51 -62
  398. package/core/schemas/utils/maybeSkipValidation.js +3 -12
  399. package/dist/Client.d.ts +9 -2
  400. package/dist/Client.js +6 -1
  401. package/dist/api/errors/BadRequestError.d.ts +1 -1
  402. package/dist/api/errors/BadRequestError.js +1 -1
  403. package/dist/api/errors/UnprocessableEntityError.d.ts +2 -2
  404. package/dist/api/errors/UnprocessableEntityError.js +1 -1
  405. package/dist/api/resources/activity/client/Client.d.ts +20 -6
  406. package/dist/api/resources/activity/client/Client.js +28 -14
  407. package/dist/api/resources/activity/client/requests/index.d.ts +2 -2
  408. package/dist/api/resources/aggregate/client/Client.d.ts +57 -0
  409. package/dist/api/resources/aggregate/client/Client.js +136 -0
  410. package/dist/api/resources/aggregate/client/index.d.ts +1 -0
  411. package/dist/api/resources/aggregate/client/index.js +17 -0
  412. package/dist/api/resources/aggregate/client/requests/Query.d.ts +32 -0
  413. package/dist/api/resources/aggregate/client/requests/Query.js +5 -0
  414. package/dist/api/resources/aggregate/client/requests/index.d.ts +1 -0
  415. package/dist/api/resources/aggregate/client/requests/index.js +2 -0
  416. package/dist/api/resources/aggregate/index.d.ts +2 -0
  417. package/dist/api/resources/aggregate/index.js +18 -0
  418. package/dist/api/resources/aggregate/types/QueryTimeframe.d.ts +5 -0
  419. package/dist/api/resources/aggregate/types/QueryTimeframe.js +5 -0
  420. package/dist/api/resources/aggregate/types/index.d.ts +1 -0
  421. package/dist/api/resources/aggregate/types/index.js +17 -0
  422. package/dist/api/resources/body/client/Client.d.ts +20 -6
  423. package/dist/api/resources/body/client/Client.js +28 -14
  424. package/dist/api/resources/body/client/requests/index.d.ts +2 -2
  425. package/dist/api/resources/devices/client/Client.d.ts +14 -5
  426. package/dist/api/resources/devices/client/Client.js +16 -9
  427. package/dist/api/resources/devices/client/requests/index.d.ts +1 -1
  428. package/dist/api/resources/index.d.ts +3 -0
  429. package/dist/api/resources/index.js +4 -1
  430. package/dist/api/resources/insurance/client/Client.d.ts +16 -6
  431. package/dist/api/resources/insurance/client/Client.js +23 -13
  432. package/dist/api/resources/insurance/client/requests/index.d.ts +2 -2
  433. package/dist/api/resources/introspect/client/Client.d.ts +16 -6
  434. package/dist/api/resources/introspect/client/Client.js +22 -12
  435. package/dist/api/resources/introspect/client/requests/IntrospectGetUserHistoricalPullsRequest.d.ts +1 -1
  436. package/dist/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.d.ts +1 -1
  437. package/dist/api/resources/introspect/client/requests/index.d.ts +2 -2
  438. package/dist/api/resources/labTests/client/Client.d.ts +149 -25
  439. package/dist/api/resources/labTests/client/Client.js +301 -128
  440. package/dist/api/resources/labTests/client/requests/CreateLabTestRequest.d.ts +1 -1
  441. package/dist/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +26 -2
  442. package/dist/api/resources/labTests/client/requests/LabTestsGetAreaInfoRequest.d.ts +1 -1
  443. package/dist/api/resources/labTests/client/requests/LabTestsGetLabelsPdfRequest.d.ts +7 -0
  444. package/dist/api/resources/labTests/client/requests/LabTestsGetMarkersRequest.d.ts +1 -0
  445. package/dist/api/resources/labTests/client/requests/LabTestsGetOrderPscInfoRequest.d.ts +1 -1
  446. package/dist/api/resources/labTests/client/requests/LabTestsGetOrdersRequest.d.ts +1 -1
  447. package/dist/api/resources/labTests/client/requests/LabTestsGetPscInfoRequest.d.ts +1 -1
  448. package/dist/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.d.ts +1 -1
  449. package/dist/api/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +1 -1
  450. package/dist/api/resources/labTests/client/requests/index.d.ts +14 -14
  451. package/dist/api/resources/link/client/Client.d.ts +81 -18
  452. package/dist/api/resources/link/client/Client.js +162 -79
  453. package/dist/api/resources/link/client/requests/BeginLinkTokenRequest.d.ts +1 -1
  454. package/dist/api/resources/link/client/requests/DemoConnectionCreationPayload.d.ts +1 -1
  455. package/dist/api/resources/link/client/requests/EmailAuthLink.d.ts +1 -1
  456. package/dist/api/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -1
  457. package/dist/api/resources/link/client/requests/IndividualProviderData.d.ts +1 -1
  458. package/dist/api/resources/link/client/requests/LinkTokenExchange.d.ts +1 -1
  459. package/dist/api/resources/link/client/requests/PasswordAuthLink.d.ts +1 -1
  460. package/dist/api/resources/link/client/requests/index.d.ts +14 -14
  461. package/dist/api/resources/meal/client/Client.d.ts +14 -5
  462. package/dist/api/resources/meal/client/Client.js +16 -9
  463. package/dist/api/resources/meal/client/requests/index.d.ts +1 -1
  464. package/dist/api/resources/menstrualCycle/client/Client.d.ts +13 -5
  465. package/dist/api/resources/menstrualCycle/client/Client.js +15 -9
  466. package/dist/api/resources/menstrualCycle/client/requests/index.d.ts +1 -1
  467. package/dist/api/resources/profile/client/Client.d.ts +20 -6
  468. package/dist/api/resources/profile/client/Client.js +28 -14
  469. package/dist/api/resources/profile/client/requests/index.d.ts +2 -2
  470. package/dist/api/resources/providers/client/Client.d.ts +13 -5
  471. package/dist/api/resources/providers/client/Client.js +14 -8
  472. package/dist/api/resources/providers/client/requests/index.d.ts +1 -1
  473. package/dist/api/resources/sleep/client/Client.d.ts +31 -8
  474. package/dist/api/resources/sleep/client/Client.js +51 -24
  475. package/dist/api/resources/sleep/client/requests/index.d.ts +3 -3
  476. package/dist/api/resources/team/client/Client.d.ts +41 -10
  477. package/dist/api/resources/team/client/Client.js +72 -31
  478. package/dist/api/resources/team/client/requests/index.d.ts +3 -3
  479. package/dist/api/resources/testkit/client/Client.d.ts +51 -4
  480. package/dist/api/resources/testkit/client/Client.js +59 -12
  481. package/dist/api/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +17 -1
  482. package/dist/api/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +23 -1
  483. package/dist/api/resources/testkit/client/requests/index.d.ts +2 -2
  484. package/dist/api/resources/user/client/Client.d.ts +82 -20
  485. package/dist/api/resources/user/client/Client.js +172 -82
  486. package/dist/api/resources/user/client/requests/CreateInsuranceRequest.d.ts +1 -1
  487. package/dist/api/resources/user/client/requests/UserCreateBody.d.ts +8 -0
  488. package/dist/api/resources/user/client/requests/UserInfoCreateRequest.d.ts +1 -1
  489. package/dist/api/resources/user/client/requests/UserPatchBody.d.ts +8 -0
  490. package/dist/api/resources/user/client/requests/index.d.ts +7 -7
  491. package/dist/api/resources/vitals/client/Client.d.ts +288 -60
  492. package/dist/api/resources/vitals/client/Client.js +620 -284
  493. package/dist/api/resources/vitals/client/requests/index.d.ts +56 -56
  494. package/dist/api/resources/workouts/client/Client.d.ts +24 -7
  495. package/dist/api/resources/workouts/client/Client.js +38 -19
  496. package/dist/api/resources/workouts/client/requests/index.d.ts +2 -2
  497. package/dist/api/types/ActivitySelector.d.ts +7 -0
  498. package/dist/api/types/ActivitySelector.js +5 -0
  499. package/dist/api/types/ActivitySelectorActivity.d.ts +24 -0
  500. package/dist/api/types/ActivitySelectorActivity.js +26 -0
  501. package/dist/api/types/ActivityV2InDb.d.ts +1 -1
  502. package/dist/api/types/AddOnOrder.d.ts +7 -0
  503. package/dist/api/types/AddOnOrder.js +5 -0
  504. package/dist/api/types/AoE.d.ts +1 -1
  505. package/dist/api/types/AppointmentAvailabilitySlots.d.ts +1 -1
  506. package/dist/api/types/AreaInfo.d.ts +1 -1
  507. package/dist/api/types/BiomarkerResult.d.ts +3 -2
  508. package/dist/api/types/BodyV2InDb.d.ts +1 -1
  509. package/dist/api/types/CervicalMucusEntry.d.ts +1 -1
  510. package/dist/api/types/ClientActivityResponse.d.ts +1 -1
  511. package/dist/api/types/ClientBodyResponse.d.ts +1 -1
  512. package/dist/api/types/ClientFacingActivity.d.ts +14 -2
  513. package/dist/api/types/ClientFacingApiKey.d.ts +2 -2
  514. package/dist/api/types/ClientFacingAppointment.d.ts +5 -3
  515. package/dist/api/types/ClientFacingAppointmentEvent.d.ts +2 -2
  516. package/dist/api/types/ClientFacingAtHomePhlebotomyOrder.d.ts +2 -2
  517. package/dist/api/types/ClientFacingAtHomePhlebotomyOrderDetails.d.ts +1 -1
  518. package/dist/api/types/ClientFacingBloodOxygenTimeseries.d.ts +4 -1
  519. package/dist/api/types/ClientFacingBloodPressureTimeseries.d.ts +4 -1
  520. package/dist/api/types/ClientFacingBody.d.ts +4 -2
  521. package/dist/api/types/ClientFacingBodyFatTimeseries.d.ts +4 -1
  522. package/dist/api/types/ClientFacingBodyTemperatureDeltaSample.d.ts +8 -4
  523. package/dist/api/types/ClientFacingBodyTemperatureSample.d.ts +8 -4
  524. package/dist/api/types/ClientFacingBodyWeightTimeseries.d.ts +4 -1
  525. package/dist/api/types/ClientFacingCaffeineTimeseries.d.ts +6 -3
  526. package/dist/api/types/ClientFacingCaloriesActiveTimeseries.d.ts +6 -3
  527. package/dist/api/types/ClientFacingCaloriesBasalTimeseries.d.ts +4 -1
  528. package/dist/api/types/ClientFacingCarbohydratesSample.d.ts +6 -3
  529. package/dist/api/types/ClientFacingCholesterolTimeseries.d.ts +4 -1
  530. package/dist/api/types/ClientFacingDistanceTimeseries.d.ts +6 -3
  531. package/dist/api/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +2 -0
  532. package/dist/api/types/ClientFacingFloorsClimbedTimeseries.d.ts +4 -1
  533. package/dist/api/types/ClientFacingFood.d.ts +1 -1
  534. package/dist/api/types/ClientFacingGlucoseTimeseries.d.ts +4 -1
  535. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.d.ts +3 -1
  536. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.d.ts +3 -1
  537. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample.d.ts +3 -1
  538. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample.d.ts +3 -1
  539. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingNoteSample.d.ts +3 -1
  540. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample.d.ts +3 -1
  541. package/dist/api/types/ClientFacingHeartRate.d.ts +4 -0
  542. package/dist/api/types/ClientFacingHeartRateTimeseries.d.ts +4 -1
  543. package/dist/api/types/ClientFacingHrvTimeseries.d.ts +4 -1
  544. package/dist/api/types/ClientFacingHypnogramTimeseries.d.ts +6 -3
  545. package/dist/api/types/ClientFacingIgeTimeseries.d.ts +4 -1
  546. package/dist/api/types/ClientFacingIggTimeseries.d.ts +4 -1
  547. package/dist/api/types/ClientFacingInsulinInjectionSample.d.ts +6 -4
  548. package/dist/api/types/ClientFacingInsurance.d.ts +1 -1
  549. package/dist/api/types/ClientFacingLab.d.ts +1 -1
  550. package/dist/api/types/ClientFacingLabLocation.d.ts +1 -1
  551. package/dist/api/types/ClientFacingLabTest.d.ts +5 -1
  552. package/dist/api/types/ClientFacingMarker.d.ts +2 -1
  553. package/dist/api/types/ClientFacingMarkerComplete.d.ts +2 -1
  554. package/dist/api/types/ClientFacingMealResponse.d.ts +1 -1
  555. package/dist/api/types/ClientFacingMindfulnessMinutesTimeseries.d.ts +6 -3
  556. package/dist/api/types/ClientFacingNoteSample.d.ts +8 -4
  557. package/dist/api/types/ClientFacingOrder.d.ts +11 -3
  558. package/dist/api/types/ClientFacingOrderDetails.d.ts +1 -1
  559. package/dist/api/types/ClientFacingOrderEvent.d.ts +2 -2
  560. package/dist/api/types/ClientFacingPatientDetailsCompatible.d.ts +1 -1
  561. package/dist/api/types/ClientFacingPayorSearchResponse.d.ts +1 -1
  562. package/dist/api/types/ClientFacingProfile.d.ts +1 -1
  563. package/dist/api/types/ClientFacingProviderDetailed.d.ts +2 -1
  564. package/dist/api/types/ClientFacingProviderWithStatus.d.ts +1 -1
  565. package/dist/api/types/ClientFacingRespiratoryRateTimeseries.d.ts +4 -1
  566. package/dist/api/types/ClientFacingResult.d.ts +1 -1
  567. package/dist/api/types/ClientFacingShipment.d.ts +7 -0
  568. package/dist/api/types/ClientFacingSleep.d.ts +16 -4
  569. package/dist/api/types/ClientFacingSleepStream.d.ts +1 -1
  570. package/dist/api/types/ClientFacingSource.d.ts +1 -0
  571. package/dist/api/types/ClientFacingStepsTimeseries.d.ts +6 -3
  572. package/dist/api/types/ClientFacingStream.d.ts +2 -1
  573. package/dist/api/types/ClientFacingStressLevelTimeseries.d.ts +4 -1
  574. package/dist/api/types/ClientFacingTeam.d.ts +1 -1
  575. package/dist/api/types/ClientFacingTestKitOrderDetails.d.ts +1 -1
  576. package/dist/api/types/ClientFacingTestkitOrder.d.ts +4 -3
  577. package/dist/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.d.ts +1 -1
  578. package/dist/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.d.ts +1 -1
  579. package/dist/api/types/ClientFacingTimeseriesGroupClientFacingCarbohydratesSample.d.ts +1 -1
  580. package/dist/api/types/ClientFacingTimeseriesGroupClientFacingInsulinInjectionSample.d.ts +1 -1
  581. package/dist/api/types/ClientFacingTimeseriesGroupClientFacingNoteSample.d.ts +1 -1
  582. package/dist/api/types/ClientFacingTimeseriesGroupClientFacingWorkoutDurationSample.d.ts +1 -1
  583. package/dist/api/types/ClientFacingUser.d.ts +9 -2
  584. package/dist/api/types/ClientFacingVo2MaxTimeseries.d.ts +6 -3
  585. package/dist/api/types/ClientFacingWalkInOrderDetails.d.ts +1 -1
  586. package/dist/api/types/ClientFacingWalkInTestOrder.d.ts +2 -2
  587. package/dist/api/types/ClientFacingWaterTimeseries.d.ts +4 -1
  588. package/dist/api/types/ClientFacingWorkout.d.ts +22 -3
  589. package/dist/api/types/ClientFacingWorkoutDurationSample.d.ts +8 -4
  590. package/dist/api/types/ClientSleepResponse.d.ts +1 -1
  591. package/dist/api/types/ClientWorkoutResponse.d.ts +1 -1
  592. package/dist/api/types/CompanyDetails.d.ts +1 -1
  593. package/dist/api/types/ConnectedSourceClientFacing.d.ts +2 -2
  594. package/dist/api/types/ConnectionStatus.d.ts +1 -1
  595. package/dist/api/types/Consent.d.ts +1 -1
  596. package/dist/api/types/ContraceptiveEntry.d.ts +1 -1
  597. package/dist/api/types/DaySlots.d.ts +1 -1
  598. package/dist/api/types/DetectedDeviationEntry.d.ts +1 -1
  599. package/dist/api/types/DeviceV2InDb.d.ts +1 -1
  600. package/dist/api/types/EventDestinationPreferences.d.ts +1 -1
  601. package/dist/api/types/FallbackBirthDate.d.ts +1 -1
  602. package/dist/api/types/FallbackTimeZone.d.ts +1 -1
  603. package/dist/api/types/Fats.d.ts +6 -0
  604. package/dist/api/types/GetMarkersResponse.d.ts +1 -1
  605. package/dist/api/types/GetOrdersResponse.d.ts +1 -1
  606. package/dist/api/types/GroupedBloodOxygen.d.ts +1 -1
  607. package/dist/api/types/GroupedBloodOxygenResponse.d.ts +3 -1
  608. package/dist/api/types/GroupedBloodPressure.d.ts +1 -1
  609. package/dist/api/types/GroupedBloodPressureResponse.d.ts +3 -1
  610. package/dist/api/types/GroupedBodyFat.d.ts +1 -1
  611. package/dist/api/types/GroupedBodyFatResponse.d.ts +3 -1
  612. package/dist/api/types/GroupedBodyWeight.d.ts +1 -1
  613. package/dist/api/types/GroupedBodyWeightResponse.d.ts +3 -1
  614. package/dist/api/types/GroupedCaffeine.d.ts +1 -1
  615. package/dist/api/types/GroupedCaffeineResponse.d.ts +3 -1
  616. package/dist/api/types/GroupedCaloriesActive.d.ts +1 -1
  617. package/dist/api/types/GroupedCaloriesActiveResponse.d.ts +3 -1
  618. package/dist/api/types/GroupedCaloriesBasal.d.ts +1 -1
  619. package/dist/api/types/GroupedCaloriesBasalResponse.d.ts +3 -1
  620. package/dist/api/types/GroupedCholesterol.d.ts +1 -1
  621. package/dist/api/types/GroupedCholesterolResponse.d.ts +3 -1
  622. package/dist/api/types/GroupedDistance.d.ts +1 -1
  623. package/dist/api/types/GroupedDistanceResponse.d.ts +3 -1
  624. package/dist/api/types/GroupedElectrocardiogramVoltage.d.ts +1 -1
  625. package/dist/api/types/GroupedElectrocardiogramVoltageResponse.d.ts +3 -1
  626. package/dist/api/types/GroupedFloorsClimbed.d.ts +1 -1
  627. package/dist/api/types/GroupedFloorsClimbedResponse.d.ts +3 -1
  628. package/dist/api/types/GroupedGlucose.d.ts +1 -1
  629. package/dist/api/types/GroupedGlucoseResponse.d.ts +3 -1
  630. package/dist/api/types/GroupedHeartRate.d.ts +1 -1
  631. package/dist/api/types/GroupedHeartRateResponse.d.ts +3 -1
  632. package/dist/api/types/GroupedHrv.d.ts +1 -1
  633. package/dist/api/types/GroupedHrvResponse.d.ts +3 -1
  634. package/dist/api/types/GroupedHypnogram.d.ts +1 -1
  635. package/dist/api/types/GroupedHypnogramResponse.d.ts +3 -1
  636. package/dist/api/types/GroupedIge.d.ts +1 -1
  637. package/dist/api/types/GroupedIgeResponse.d.ts +3 -1
  638. package/dist/api/types/GroupedIgg.d.ts +1 -1
  639. package/dist/api/types/GroupedIggResponse.d.ts +3 -1
  640. package/dist/api/types/GroupedMindfulnessMinutes.d.ts +1 -1
  641. package/dist/api/types/GroupedMindfulnessMinutesResponse.d.ts +3 -1
  642. package/dist/api/types/GroupedRespiratoryRate.d.ts +1 -1
  643. package/dist/api/types/GroupedRespiratoryRateResponse.d.ts +3 -1
  644. package/dist/api/types/GroupedSteps.d.ts +1 -1
  645. package/dist/api/types/GroupedStepsResponse.d.ts +3 -1
  646. package/dist/api/types/GroupedStressLevel.d.ts +1 -1
  647. package/dist/api/types/GroupedStressLevelResponse.d.ts +3 -1
  648. package/dist/api/types/GroupedVo2Max.d.ts +1 -1
  649. package/dist/api/types/GroupedVo2MaxResponse.d.ts +3 -1
  650. package/dist/api/types/GroupedWater.d.ts +1 -1
  651. package/dist/api/types/GroupedWaterResponse.d.ts +3 -1
  652. package/dist/api/types/HealthInsuranceCreateRequest.d.ts +8 -1
  653. package/dist/api/types/HealthInsuranceCreateRequestBackImage.d.ts +1 -1
  654. package/dist/api/types/HealthInsuranceCreateRequestFrontImage.d.ts +1 -1
  655. package/dist/api/types/HealthInsuranceCreateRequestPatientSignatureImage.d.ts +1 -1
  656. package/dist/api/types/HistoricalPullTimeline.d.ts +3 -3
  657. package/dist/api/types/HomePregnancyTestEntry.d.ts +1 -1
  658. package/dist/api/types/HomeProgesteroneTestEntry.d.ts +1 -1
  659. package/dist/api/types/HttpValidationError.d.ts +1 -1
  660. package/dist/api/types/LabResultsRaw.d.ts +1 -1
  661. package/dist/api/types/LabResultsRawResults.d.ts +1 -1
  662. package/dist/api/types/LastAttempt.d.ts +2 -2
  663. package/dist/api/types/Macros.d.ts +9 -1
  664. package/dist/api/types/MealInDbBaseClientFacingSource.d.ts +5 -4
  665. package/dist/api/types/MenstrualCycle.d.ts +1 -1
  666. package/dist/api/types/MenstrualCycleResponse.d.ts +1 -1
  667. package/dist/api/types/MenstrualFlowEntry.d.ts +1 -1
  668. package/dist/api/types/MetricsResult.d.ts +1 -1
  669. package/dist/api/types/Micros.d.ts +3 -0
  670. package/dist/api/types/Minerals.d.ts +44 -0
  671. package/dist/api/types/Minerals.js +46 -0
  672. package/dist/api/types/OrderSetRequest.d.ts +8 -0
  673. package/dist/api/types/OrderSetRequest.js +5 -0
  674. package/dist/api/types/OvulationTestEntry.d.ts +1 -1
  675. package/dist/api/types/PaginatedUsersResponse.d.ts +1 -1
  676. package/dist/api/types/PatientDetails.d.ts +1 -1
  677. package/dist/api/types/Period.d.ts +8 -0
  678. package/dist/api/types/Period.js +5 -0
  679. package/dist/api/types/PeriodUnit.d.ts +12 -0
  680. package/dist/api/types/PeriodUnit.js +14 -0
  681. package/dist/api/types/PersonDetailsOutput.d.ts +1 -1
  682. package/dist/api/types/PhlebotomyAreaInfo.d.ts +1 -1
  683. package/dist/api/types/PhlebotomyProviderInfo.d.ts +1 -1
  684. package/dist/api/types/PhysicianCreateRequest.d.ts +1 -1
  685. package/dist/api/types/PhysicianCreateRequestSignatureImage.d.ts +1 -1
  686. package/dist/api/types/Placeholder.d.ts +6 -0
  687. package/dist/api/types/Placeholder.js +5 -0
  688. package/dist/api/types/PostOrderResponse.d.ts +1 -1
  689. package/dist/api/types/ProfileInDb.d.ts +1 -1
  690. package/dist/api/types/ProviderLinkResponse.d.ts +1 -1
  691. package/dist/api/types/ProviderMfaRequest.d.ts +1 -1
  692. package/dist/api/types/Providers.d.ts +2 -1
  693. package/dist/api/types/Providers.js +1 -0
  694. package/dist/api/types/PscAreaInfo.d.ts +1 -1
  695. package/dist/api/types/PscInfo.d.ts +1 -1
  696. package/dist/api/types/QueryConfig.d.ts +8 -0
  697. package/dist/api/types/QueryConfig.js +5 -0
  698. package/dist/api/types/QueryConfigProviderPriorityOverridesItem.d.ts +5 -0
  699. package/dist/api/types/QueryConfigProviderPriorityOverridesItem.js +5 -0
  700. package/dist/api/types/QueryConfigWeekStartsOn.d.ts +8 -0
  701. package/dist/api/types/QueryConfigWeekStartsOn.js +10 -0
  702. package/dist/api/types/QueryInstruction.d.ts +11 -0
  703. package/dist/api/types/QueryInstruction.js +5 -0
  704. package/dist/api/types/QueryInstructionPartitionBy.d.ts +5 -0
  705. package/dist/api/types/QueryInstructionPartitionBy.js +5 -0
  706. package/dist/api/types/QueryInstructionSelect.d.ts +5 -0
  707. package/dist/api/types/QueryInstructionSelect.js +5 -0
  708. package/dist/api/types/Question.d.ts +1 -1
  709. package/dist/api/types/RawActivity.d.ts +1 -1
  710. package/dist/api/types/RawBody.d.ts +1 -1
  711. package/dist/api/types/RawDevices.d.ts +1 -1
  712. package/dist/api/types/RawProfile.d.ts +1 -1
  713. package/dist/api/types/RawSleep.d.ts +1 -1
  714. package/dist/api/types/RawWorkout.d.ts +1 -1
  715. package/dist/api/types/Reducer.d.ts +7 -0
  716. package/dist/api/types/Reducer.js +5 -0
  717. package/dist/api/types/ReducerFunction.d.ts +15 -0
  718. package/dist/api/types/ReducerFunction.js +17 -0
  719. package/dist/api/types/RelativeTimeframe.d.ts +9 -0
  720. package/dist/api/types/RelativeTimeframe.js +5 -0
  721. package/dist/api/types/ResourceAvailability.d.ts +1 -1
  722. package/dist/api/types/ScopeRequirementsGrants.d.ts +1 -1
  723. package/dist/api/types/SingleHistoricalPullStatistics.d.ts +3 -3
  724. package/dist/api/types/SingleProviderHistoricalPullResponse.d.ts +1 -1
  725. package/dist/api/types/SingleResourceStatistics.d.ts +3 -3
  726. package/dist/api/types/SingleUserHistoricalPullResponse.d.ts +1 -1
  727. package/dist/api/types/SingleUserResourceResponse.d.ts +1 -1
  728. package/dist/api/types/SleepSelector.d.ts +7 -0
  729. package/dist/api/types/SleepSelector.js +5 -0
  730. package/dist/api/types/SleepSelectorSleep.d.ts +30 -0
  731. package/dist/api/types/SleepSelectorSleep.js +32 -0
  732. package/dist/api/types/SleepV2InDb.d.ts +1 -1
  733. package/dist/api/types/Source.d.ts +1 -1
  734. package/dist/api/types/SourceLink.d.ts +1 -1
  735. package/dist/api/types/Swizzling.d.ts +36 -0
  736. package/dist/api/types/Swizzling.js +5 -0
  737. package/dist/api/types/SwizzlingBinGranularity.d.ts +11 -0
  738. package/dist/api/types/SwizzlingBinGranularity.js +13 -0
  739. package/dist/api/types/TeamConfig.d.ts +1 -1
  740. package/dist/api/types/TimeSlot.d.ts +3 -3
  741. package/dist/api/types/TimeseriesMetricPoint.d.ts +1 -1
  742. package/dist/api/types/TraceElements.d.ts +12 -0
  743. package/dist/api/types/TraceElements.js +14 -0
  744. package/dist/api/types/UsAddress.d.ts +1 -0
  745. package/dist/api/types/UserHistoricalPullsResponse.d.ts +2 -1
  746. package/dist/api/types/UserInfo.d.ts +1 -1
  747. package/dist/api/types/UserResourcesResponse.d.ts +2 -1
  748. package/dist/api/types/ValidationError.d.ts +1 -1
  749. package/dist/api/types/VitalCoreSchemasDbSchemasLabTestHealthInsurancePersonDetails.d.ts +1 -1
  750. package/dist/api/types/VitalCoreSchemasDbSchemasLabTestInsurancePersonDetails.d.ts +1 -1
  751. package/dist/api/types/Vitamins.d.ts +19 -0
  752. package/dist/api/types/Vitamins.js +21 -0
  753. package/dist/api/types/WorkoutV2InDb.d.ts +1 -1
  754. package/dist/api/types/index.d.ts +23 -0
  755. package/dist/api/types/index.js +23 -0
  756. package/dist/core/fetcher/Fetcher.d.ts +5 -1
  757. package/dist/core/fetcher/Fetcher.js +29 -94
  758. package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
  759. package/dist/core/fetcher/createRequestUrl.js +13 -0
  760. package/dist/core/fetcher/getFetchFn.d.ts +4 -0
  761. package/dist/core/fetcher/getFetchFn.js +59 -0
  762. package/dist/core/fetcher/getRequestBody.d.ts +7 -0
  763. package/dist/core/fetcher/getRequestBody.js +23 -0
  764. package/dist/core/fetcher/getResponseBody.d.ts +1 -0
  765. package/dist/core/fetcher/getResponseBody.js +52 -0
  766. package/dist/core/fetcher/makeRequest.d.ts +1 -0
  767. package/dist/core/fetcher/makeRequest.js +42 -0
  768. package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
  769. package/dist/core/fetcher/requestWithRetries.js +32 -0
  770. package/dist/core/fetcher/signals.d.ts +12 -0
  771. package/dist/core/fetcher/signals.js +37 -0
  772. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
  773. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
  774. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
  775. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
  776. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
  777. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
  778. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
  779. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
  780. package/dist/core/runtime/runtime.d.ts +2 -1
  781. package/dist/core/runtime/runtime.js +12 -1
  782. package/dist/core/schemas/Schema.d.ts +7 -4
  783. package/dist/core/schemas/builders/lazy/lazy.d.ts +2 -2
  784. package/dist/core/schemas/builders/lazy/lazy.js +8 -19
  785. package/dist/core/schemas/builders/lazy/lazyObject.js +1 -10
  786. package/dist/core/schemas/builders/list/list.js +31 -44
  787. package/dist/core/schemas/builders/object/object.js +90 -111
  788. package/dist/core/schemas/builders/object/types.d.ts +2 -2
  789. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
  790. package/dist/core/schemas/builders/record/record.js +49 -60
  791. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
  792. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
  793. package/dist/core/schemas/builders/set/set.js +6 -15
  794. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
  795. package/dist/core/schemas/builders/union/union.js +51 -62
  796. package/dist/core/schemas/utils/maybeSkipValidation.js +3 -12
  797. package/dist/serialization/resources/aggregate/client/index.d.ts +1 -0
  798. package/dist/serialization/resources/aggregate/client/index.js +17 -0
  799. package/dist/serialization/resources/aggregate/client/requests/Query.d.ts +17 -0
  800. package/dist/serialization/resources/aggregate/client/requests/Query.js +38 -0
  801. package/dist/serialization/resources/aggregate/client/requests/index.d.ts +1 -0
  802. package/dist/serialization/resources/aggregate/client/requests/index.js +5 -0
  803. package/dist/serialization/resources/aggregate/index.d.ts +2 -0
  804. package/dist/serialization/resources/aggregate/index.js +18 -0
  805. package/dist/serialization/resources/aggregate/types/QueryTimeframe.d.ts +12 -0
  806. package/dist/serialization/resources/aggregate/types/QueryTimeframe.js +33 -0
  807. package/dist/serialization/resources/aggregate/types/index.d.ts +1 -0
  808. package/dist/serialization/resources/aggregate/types/index.js +17 -0
  809. package/dist/serialization/resources/index.d.ts +3 -0
  810. package/dist/serialization/resources/index.js +4 -1
  811. package/dist/serialization/resources/insurance/client/requests/PayorSearchRequest.d.ts +2 -2
  812. package/dist/serialization/resources/insurance/client/searchDiagnosis.d.ts +2 -2
  813. package/dist/serialization/resources/insurance/client/searchPayorInfo.d.ts +2 -2
  814. package/dist/serialization/resources/labTests/client/get.d.ts +2 -2
  815. package/dist/serialization/resources/labTests/client/getLabs.d.ts +2 -2
  816. package/dist/serialization/resources/labTests/client/getPhlebotomyAppointmentCancellationReason.d.ts +2 -2
  817. package/dist/serialization/resources/labTests/client/requests/AppointmentBookingRequest.d.ts +2 -2
  818. package/dist/serialization/resources/labTests/client/requests/AppointmentCancelRequest.d.ts +2 -2
  819. package/dist/serialization/resources/labTests/client/requests/AppointmentRescheduleRequest.d.ts +2 -2
  820. package/dist/serialization/resources/labTests/client/requests/CreateLabTestRequest.d.ts +2 -2
  821. package/dist/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +7 -3
  822. package/dist/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.js +5 -1
  823. package/dist/serialization/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +2 -2
  824. package/dist/serialization/resources/labTests/types/LabTestsGetOrdersRequestOrderDirection.d.ts +2 -2
  825. package/dist/serialization/resources/labTests/types/LabTestsGetOrdersRequestOrderKey.d.ts +2 -2
  826. package/dist/serialization/resources/link/client/connectManualProvider.d.ts +1 -1
  827. package/dist/serialization/resources/link/client/getAllProviders.d.ts +2 -2
  828. package/dist/serialization/resources/link/client/isTokenValid.d.ts +1 -1
  829. package/dist/serialization/resources/link/client/requests/BeginLinkTokenRequest.d.ts +2 -2
  830. package/dist/serialization/resources/link/client/requests/CompletePasswordProviderMfaBody.d.ts +2 -2
  831. package/dist/serialization/resources/link/client/requests/DemoConnectionCreationPayload.d.ts +2 -2
  832. package/dist/serialization/resources/link/client/requests/EmailAuthLink.d.ts +2 -2
  833. package/dist/serialization/resources/link/client/requests/EmailProviderAuthLink.d.ts +2 -2
  834. package/dist/serialization/resources/link/client/requests/IndividualProviderData.d.ts +2 -2
  835. package/dist/serialization/resources/link/client/requests/LinkTokenBase.d.ts +2 -2
  836. package/dist/serialization/resources/link/client/requests/LinkTokenExchange.d.ts +2 -2
  837. package/dist/serialization/resources/link/client/requests/ManualConnectionData.d.ts +2 -2
  838. package/dist/serialization/resources/link/client/requests/PasswordAuthLink.d.ts +2 -2
  839. package/dist/serialization/resources/link/client/startConnect.d.ts +1 -1
  840. package/dist/serialization/resources/link/client/tokenState.d.ts +1 -1
  841. package/dist/serialization/resources/providers/client/getAll.d.ts +2 -2
  842. package/dist/serialization/resources/team/client/getLinkConfig.d.ts +1 -1
  843. package/dist/serialization/resources/team/client/getPhysicians.d.ts +2 -2
  844. package/dist/serialization/resources/team/client/getSourcePriorities.d.ts +1 -1
  845. package/dist/serialization/resources/team/client/getSvixUrl.d.ts +1 -1
  846. package/dist/serialization/resources/team/client/getUserById.d.ts +2 -2
  847. package/dist/serialization/resources/team/client/updateSourcePriorities.d.ts +1 -1
  848. package/dist/serialization/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +2 -2
  849. package/dist/serialization/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +2 -2
  850. package/dist/serialization/resources/user/client/getConnectedProviders.d.ts +2 -2
  851. package/dist/serialization/resources/user/client/requests/CreateInsuranceRequest.d.ts +2 -2
  852. package/dist/serialization/resources/user/client/requests/UserCreateBody.d.ts +2 -2
  853. package/dist/serialization/resources/user/client/requests/UserInfoCreateRequest.d.ts +2 -2
  854. package/dist/serialization/resources/user/client/requests/UserPatchBody.d.ts +2 -2
  855. package/dist/serialization/resources/vitals/client/bloodOxygen.d.ts +2 -2
  856. package/dist/serialization/resources/vitals/client/bloodPressure.d.ts +2 -2
  857. package/dist/serialization/resources/vitals/client/bodyFat.d.ts +2 -2
  858. package/dist/serialization/resources/vitals/client/bodyWeight.d.ts +2 -2
  859. package/dist/serialization/resources/vitals/client/caffeine.d.ts +2 -2
  860. package/dist/serialization/resources/vitals/client/caloriesActive.d.ts +2 -2
  861. package/dist/serialization/resources/vitals/client/caloriesBasal.d.ts +2 -2
  862. package/dist/serialization/resources/vitals/client/cholesterol.d.ts +2 -2
  863. package/dist/serialization/resources/vitals/client/cholesterolHdl.d.ts +2 -2
  864. package/dist/serialization/resources/vitals/client/cholesterolLdl.d.ts +2 -2
  865. package/dist/serialization/resources/vitals/client/cholesterolTotal.d.ts +2 -2
  866. package/dist/serialization/resources/vitals/client/cholesterolTriglycerides.d.ts +2 -2
  867. package/dist/serialization/resources/vitals/client/distance.d.ts +2 -2
  868. package/dist/serialization/resources/vitals/client/electrocardiogramVoltage.d.ts +2 -2
  869. package/dist/serialization/resources/vitals/client/floorsClimbed.d.ts +2 -2
  870. package/dist/serialization/resources/vitals/client/glucose.d.ts +2 -2
  871. package/dist/serialization/resources/vitals/client/heartrate.d.ts +2 -2
  872. package/dist/serialization/resources/vitals/client/hrv.d.ts +2 -2
  873. package/dist/serialization/resources/vitals/client/hypnogram.d.ts +2 -2
  874. package/dist/serialization/resources/vitals/client/ige.d.ts +2 -2
  875. package/dist/serialization/resources/vitals/client/igg.d.ts +2 -2
  876. package/dist/serialization/resources/vitals/client/mindfulnessMinutes.d.ts +2 -2
  877. package/dist/serialization/resources/vitals/client/respiratoryRate.d.ts +2 -2
  878. package/dist/serialization/resources/vitals/client/steps.d.ts +2 -2
  879. package/dist/serialization/resources/vitals/client/stressLevel.d.ts +2 -2
  880. package/dist/serialization/resources/vitals/client/vo2Max.d.ts +2 -2
  881. package/dist/serialization/resources/vitals/client/water.d.ts +2 -2
  882. package/dist/serialization/types/ActivitySelector.d.ts +13 -0
  883. package/dist/serialization/types/ActivitySelector.js +34 -0
  884. package/dist/serialization/types/ActivitySelectorActivity.d.ts +10 -0
  885. package/dist/serialization/types/ActivitySelectorActivity.js +50 -0
  886. package/dist/serialization/types/ActivityV2InDb.d.ts +2 -2
  887. package/dist/serialization/types/AddOnOrder.d.ts +13 -0
  888. package/dist/serialization/types/AddOnOrder.js +34 -0
  889. package/dist/serialization/types/Address.d.ts +2 -2
  890. package/dist/serialization/types/AllowedRadius.d.ts +2 -2
  891. package/dist/serialization/types/Answer.d.ts +2 -2
  892. package/dist/serialization/types/AoE.d.ts +2 -2
  893. package/dist/serialization/types/AoEAnswer.d.ts +2 -2
  894. package/dist/serialization/types/AppointmentAvailabilitySlots.d.ts +2 -2
  895. package/dist/serialization/types/AppointmentEventStatus.d.ts +2 -2
  896. package/dist/serialization/types/AppointmentProvider.d.ts +2 -2
  897. package/dist/serialization/types/AppointmentServiceType.d.ts +2 -2
  898. package/dist/serialization/types/AppointmentStatus.d.ts +2 -2
  899. package/dist/serialization/types/AppointmentType.d.ts +2 -2
  900. package/dist/serialization/types/AreaInfo.d.ts +2 -2
  901. package/dist/serialization/types/AttemptStatus.d.ts +2 -2
  902. package/dist/serialization/types/AuthType.d.ts +2 -2
  903. package/dist/serialization/types/Availability.d.ts +2 -2
  904. package/dist/serialization/types/BasalBodyTemperatureEntry.d.ts +2 -2
  905. package/dist/serialization/types/Billing.d.ts +2 -2
  906. package/dist/serialization/types/BiomarkerResult.d.ts +3 -2
  907. package/dist/serialization/types/BiomarkerResult.js +2 -1
  908. package/dist/serialization/types/BodyV2InDb.d.ts +2 -2
  909. package/dist/serialization/types/CervicalMucusEntry.d.ts +2 -2
  910. package/dist/serialization/types/CervicalMucusEntryQuality.d.ts +2 -2
  911. package/dist/serialization/types/ClientActivityResponse.d.ts +2 -2
  912. package/dist/serialization/types/ClientBodyResponse.d.ts +2 -2
  913. package/dist/serialization/types/ClientFacingActivity.d.ts +2 -2
  914. package/dist/serialization/types/ClientFacingActivity.js +1 -1
  915. package/dist/serialization/types/ClientFacingApiKey.d.ts +2 -2
  916. package/dist/serialization/types/ClientFacingApiKey.js +2 -2
  917. package/dist/serialization/types/ClientFacingAppointment.d.ts +2 -2
  918. package/dist/serialization/types/ClientFacingAppointment.js +2 -2
  919. package/dist/serialization/types/ClientFacingAppointmentCancellationReason.d.ts +2 -2
  920. package/dist/serialization/types/ClientFacingAppointmentEvent.d.ts +2 -2
  921. package/dist/serialization/types/ClientFacingAppointmentEvent.js +1 -1
  922. package/dist/serialization/types/ClientFacingAtHomePhlebotomyOrder.d.ts +2 -2
  923. package/dist/serialization/types/ClientFacingAtHomePhlebotomyOrder.js +2 -2
  924. package/dist/serialization/types/ClientFacingAtHomePhlebotomyOrderDetails.d.ts +2 -2
  925. package/dist/serialization/types/ClientFacingBloodOxygenTimeseries.d.ts +2 -2
  926. package/dist/serialization/types/ClientFacingBloodOxygenTimeseries.js +1 -1
  927. package/dist/serialization/types/ClientFacingBloodPressureTimeseries.d.ts +2 -2
  928. package/dist/serialization/types/ClientFacingBloodPressureTimeseries.js +1 -1
  929. package/dist/serialization/types/ClientFacingBody.d.ts +2 -2
  930. package/dist/serialization/types/ClientFacingBody.js +1 -1
  931. package/dist/serialization/types/ClientFacingBodyFatTimeseries.d.ts +2 -2
  932. package/dist/serialization/types/ClientFacingBodyFatTimeseries.js +1 -1
  933. package/dist/serialization/types/ClientFacingBodyTemperatureDeltaSample.d.ts +2 -2
  934. package/dist/serialization/types/ClientFacingBodyTemperatureDeltaSample.js +3 -3
  935. package/dist/serialization/types/ClientFacingBodyTemperatureDeltaSampleSensorLocation.d.ts +2 -2
  936. package/dist/serialization/types/ClientFacingBodyTemperatureSample.d.ts +2 -2
  937. package/dist/serialization/types/ClientFacingBodyTemperatureSample.js +3 -3
  938. package/dist/serialization/types/ClientFacingBodyTemperatureSampleSensorLocation.d.ts +2 -2
  939. package/dist/serialization/types/ClientFacingBodyWeightTimeseries.d.ts +2 -2
  940. package/dist/serialization/types/ClientFacingBodyWeightTimeseries.js +1 -1
  941. package/dist/serialization/types/ClientFacingCaffeineTimeseries.d.ts +2 -2
  942. package/dist/serialization/types/ClientFacingCaffeineTimeseries.js +3 -3
  943. package/dist/serialization/types/ClientFacingCaloriesActiveTimeseries.d.ts +2 -2
  944. package/dist/serialization/types/ClientFacingCaloriesActiveTimeseries.js +3 -3
  945. package/dist/serialization/types/ClientFacingCaloriesBasalTimeseries.d.ts +2 -2
  946. package/dist/serialization/types/ClientFacingCaloriesBasalTimeseries.js +1 -1
  947. package/dist/serialization/types/ClientFacingCarbohydratesSample.d.ts +2 -2
  948. package/dist/serialization/types/ClientFacingCarbohydratesSample.js +3 -3
  949. package/dist/serialization/types/ClientFacingCholesterolTimeseries.d.ts +2 -2
  950. package/dist/serialization/types/ClientFacingCholesterolTimeseries.js +1 -1
  951. package/dist/serialization/types/ClientFacingDiagnosisInformation.d.ts +2 -2
  952. package/dist/serialization/types/ClientFacingDistanceTimeseries.d.ts +2 -2
  953. package/dist/serialization/types/ClientFacingDistanceTimeseries.js +3 -3
  954. package/dist/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +2 -2
  955. package/dist/serialization/types/ClientFacingFloorsClimbedTimeseries.d.ts +2 -2
  956. package/dist/serialization/types/ClientFacingFloorsClimbedTimeseries.js +1 -1
  957. package/dist/serialization/types/ClientFacingFood.d.ts +2 -2
  958. package/dist/serialization/types/ClientFacingGlucoseTimeseries.d.ts +2 -2
  959. package/dist/serialization/types/ClientFacingGlucoseTimeseries.js +1 -1
  960. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.d.ts +2 -2
  961. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.d.ts +2 -2
  962. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample.d.ts +2 -2
  963. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample.d.ts +2 -2
  964. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingNoteSample.d.ts +2 -2
  965. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample.d.ts +2 -2
  966. package/dist/serialization/types/ClientFacingHeartRate.d.ts +2 -2
  967. package/dist/serialization/types/ClientFacingHeartRateTimeseries.d.ts +2 -2
  968. package/dist/serialization/types/ClientFacingHeartRateTimeseries.js +1 -1
  969. package/dist/serialization/types/ClientFacingHrvTimeseries.d.ts +2 -2
  970. package/dist/serialization/types/ClientFacingHrvTimeseries.js +1 -1
  971. package/dist/serialization/types/ClientFacingHypnogramTimeseries.d.ts +2 -2
  972. package/dist/serialization/types/ClientFacingHypnogramTimeseries.js +3 -3
  973. package/dist/serialization/types/ClientFacingIgeTimeseries.d.ts +2 -2
  974. package/dist/serialization/types/ClientFacingIgeTimeseries.js +1 -1
  975. package/dist/serialization/types/ClientFacingIggTimeseries.d.ts +2 -2
  976. package/dist/serialization/types/ClientFacingIggTimeseries.js +1 -1
  977. package/dist/serialization/types/ClientFacingInsulinInjectionSample.d.ts +2 -2
  978. package/dist/serialization/types/ClientFacingInsulinInjectionSample.js +3 -3
  979. package/dist/serialization/types/ClientFacingInsulinInjectionSampleType.d.ts +2 -2
  980. package/dist/serialization/types/ClientFacingInsurance.d.ts +2 -2
  981. package/dist/serialization/types/ClientFacingLab.d.ts +2 -2
  982. package/dist/serialization/types/ClientFacingLabLocation.d.ts +2 -2
  983. package/dist/serialization/types/ClientFacingLabTest.d.ts +3 -2
  984. package/dist/serialization/types/ClientFacingLabTest.js +1 -0
  985. package/dist/serialization/types/ClientFacingLabs.d.ts +2 -2
  986. package/dist/serialization/types/ClientFacingLoinc.d.ts +2 -2
  987. package/dist/serialization/types/ClientFacingMarker.d.ts +3 -2
  988. package/dist/serialization/types/ClientFacingMarker.js +1 -0
  989. package/dist/serialization/types/ClientFacingMarkerComplete.d.ts +3 -2
  990. package/dist/serialization/types/ClientFacingMarkerComplete.js +1 -0
  991. package/dist/serialization/types/ClientFacingMealResponse.d.ts +2 -2
  992. package/dist/serialization/types/ClientFacingMindfulnessMinutesTimeseries.d.ts +2 -2
  993. package/dist/serialization/types/ClientFacingMindfulnessMinutesTimeseries.js +3 -3
  994. package/dist/serialization/types/ClientFacingNoteSample.d.ts +2 -2
  995. package/dist/serialization/types/ClientFacingNoteSample.js +3 -3
  996. package/dist/serialization/types/ClientFacingNoteSampleTagsItem.d.ts +2 -2
  997. package/dist/serialization/types/ClientFacingOrder.d.ts +2 -2
  998. package/dist/serialization/types/ClientFacingOrder.js +2 -2
  999. package/dist/serialization/types/ClientFacingOrderDetails.d.ts +2 -2
  1000. package/dist/serialization/types/ClientFacingOrderEvent.d.ts +2 -2
  1001. package/dist/serialization/types/ClientFacingOrderEvent.js +1 -1
  1002. package/dist/serialization/types/ClientFacingPatientDetailsCompatible.d.ts +2 -2
  1003. package/dist/serialization/types/ClientFacingPatientDetailsCompatible.js +1 -1
  1004. package/dist/serialization/types/ClientFacingPayorSearchResponse.d.ts +2 -2
  1005. package/dist/serialization/types/ClientFacingPhysician.d.ts +2 -2
  1006. package/dist/serialization/types/ClientFacingProfile.d.ts +2 -2
  1007. package/dist/serialization/types/ClientFacingProvider.d.ts +2 -2
  1008. package/dist/serialization/types/ClientFacingProviderDetailed.d.ts +2 -2
  1009. package/dist/serialization/types/ClientFacingProviderWithStatus.d.ts +2 -2
  1010. package/dist/serialization/types/ClientFacingResource.d.ts +2 -2
  1011. package/dist/serialization/types/ClientFacingRespiratoryRateTimeseries.d.ts +2 -2
  1012. package/dist/serialization/types/ClientFacingRespiratoryRateTimeseries.js +1 -1
  1013. package/dist/serialization/types/ClientFacingResult.d.ts +2 -2
  1014. package/dist/serialization/types/ClientFacingSampleGroupingKeys.d.ts +2 -2
  1015. package/dist/serialization/types/ClientFacingShipment.d.ts +2 -2
  1016. package/dist/serialization/types/ClientFacingSleep.d.ts +2 -2
  1017. package/dist/serialization/types/ClientFacingSleep.js +3 -3
  1018. package/dist/serialization/types/ClientFacingSleepStream.d.ts +2 -2
  1019. package/dist/serialization/types/ClientFacingSource.d.ts +2 -2
  1020. package/dist/serialization/types/ClientFacingSport.d.ts +2 -2
  1021. package/dist/serialization/types/ClientFacingStepsTimeseries.d.ts +2 -2
  1022. package/dist/serialization/types/ClientFacingStepsTimeseries.js +3 -3
  1023. package/dist/serialization/types/ClientFacingStream.d.ts +2 -2
  1024. package/dist/serialization/types/ClientFacingStreamAltitude.d.ts +2 -2
  1025. package/dist/serialization/types/ClientFacingStreamCadence.d.ts +2 -2
  1026. package/dist/serialization/types/ClientFacingStreamDistance.d.ts +2 -2
  1027. package/dist/serialization/types/ClientFacingStreamHeartrate.d.ts +2 -2
  1028. package/dist/serialization/types/ClientFacingStreamLat.d.ts +2 -2
  1029. package/dist/serialization/types/ClientFacingStreamLng.d.ts +2 -2
  1030. package/dist/serialization/types/ClientFacingStreamPower.d.ts +2 -2
  1031. package/dist/serialization/types/ClientFacingStreamResistance.d.ts +2 -2
  1032. package/dist/serialization/types/ClientFacingStreamTemperature.d.ts +2 -2
  1033. package/dist/serialization/types/ClientFacingStreamVelocitySmooth.d.ts +2 -2
  1034. package/dist/serialization/types/ClientFacingStressLevelTimeseries.d.ts +2 -2
  1035. package/dist/serialization/types/ClientFacingStressLevelTimeseries.js +1 -1
  1036. package/dist/serialization/types/ClientFacingTeam.d.ts +2 -2
  1037. package/dist/serialization/types/ClientFacingTestKitOrderDetails.d.ts +2 -2
  1038. package/dist/serialization/types/ClientFacingTestkitOrder.d.ts +2 -2
  1039. package/dist/serialization/types/ClientFacingTestkitOrder.js +2 -2
  1040. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.d.ts +2 -2
  1041. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.d.ts +2 -2
  1042. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingCarbohydratesSample.d.ts +2 -2
  1043. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingInsulinInjectionSample.d.ts +2 -2
  1044. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingNoteSample.d.ts +2 -2
  1045. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingWorkoutDurationSample.d.ts +2 -2
  1046. package/dist/serialization/types/ClientFacingUser.d.ts +2 -2
  1047. package/dist/serialization/types/ClientFacingUser.js +1 -1
  1048. package/dist/serialization/types/ClientFacingUserKey.d.ts +2 -2
  1049. package/dist/serialization/types/ClientFacingVo2MaxTimeseries.d.ts +2 -2
  1050. package/dist/serialization/types/ClientFacingVo2MaxTimeseries.js +3 -3
  1051. package/dist/serialization/types/ClientFacingWalkInOrderDetails.d.ts +2 -2
  1052. package/dist/serialization/types/ClientFacingWalkInTestOrder.d.ts +2 -2
  1053. package/dist/serialization/types/ClientFacingWalkInTestOrder.js +2 -2
  1054. package/dist/serialization/types/ClientFacingWaterTimeseries.d.ts +2 -2
  1055. package/dist/serialization/types/ClientFacingWaterTimeseries.js +1 -1
  1056. package/dist/serialization/types/ClientFacingWorkout.d.ts +2 -2
  1057. package/dist/serialization/types/ClientFacingWorkout.js +2 -2
  1058. package/dist/serialization/types/ClientFacingWorkoutDurationSample.d.ts +2 -2
  1059. package/dist/serialization/types/ClientFacingWorkoutDurationSample.js +3 -3
  1060. package/dist/serialization/types/ClientFacingWorkoutDurationSampleIntensity.d.ts +2 -2
  1061. package/dist/serialization/types/ClientSleepResponse.d.ts +2 -2
  1062. package/dist/serialization/types/ClientUserIdConflict.d.ts +2 -2
  1063. package/dist/serialization/types/ClientWorkoutResponse.d.ts +2 -2
  1064. package/dist/serialization/types/CompanyDetails.d.ts +2 -2
  1065. package/dist/serialization/types/ConnectedSourceClientFacing.d.ts +2 -2
  1066. package/dist/serialization/types/ConnectedSourceClientFacing.js +1 -1
  1067. package/dist/serialization/types/ConnectionStatus.d.ts +2 -2
  1068. package/dist/serialization/types/ConnectionStatusState.d.ts +2 -2
  1069. package/dist/serialization/types/Consent.d.ts +2 -2
  1070. package/dist/serialization/types/ConsentType.d.ts +2 -2
  1071. package/dist/serialization/types/ContraceptiveEntry.d.ts +2 -2
  1072. package/dist/serialization/types/ContraceptiveEntryType.d.ts +2 -2
  1073. package/dist/serialization/types/DaySlots.d.ts +2 -2
  1074. package/dist/serialization/types/DelegatedFlowType.d.ts +2 -2
  1075. package/dist/serialization/types/DemoConnectionStatus.d.ts +2 -2
  1076. package/dist/serialization/types/DemoProviders.d.ts +2 -2
  1077. package/dist/serialization/types/DetectedDeviationEntry.d.ts +2 -2
  1078. package/dist/serialization/types/DetectedDeviationEntryDeviation.d.ts +2 -2
  1079. package/dist/serialization/types/DeviceV2InDb.d.ts +2 -2
  1080. package/dist/serialization/types/EmailProviders.d.ts +2 -2
  1081. package/dist/serialization/types/Energy.d.ts +2 -2
  1082. package/dist/serialization/types/EventDestinationPreferences.d.ts +2 -2
  1083. package/dist/serialization/types/EventDestinationPreferencesEnabledItem.d.ts +2 -2
  1084. package/dist/serialization/types/EventDestinationPreferencesPreferred.d.ts +2 -2
  1085. package/dist/serialization/types/FallbackBirthDate.d.ts +2 -2
  1086. package/dist/serialization/types/FallbackBirthDate.js +1 -1
  1087. package/dist/serialization/types/FallbackTimeZone.d.ts +2 -2
  1088. package/dist/serialization/types/FallbackTimeZone.js +1 -1
  1089. package/dist/serialization/types/Fats.d.ts +2 -2
  1090. package/dist/serialization/types/Gender.d.ts +2 -2
  1091. package/dist/serialization/types/GetMarkersResponse.d.ts +2 -2
  1092. package/dist/serialization/types/GetOrdersResponse.d.ts +2 -2
  1093. package/dist/serialization/types/GroupedBloodOxygen.d.ts +2 -2
  1094. package/dist/serialization/types/GroupedBloodOxygenResponse.d.ts +2 -2
  1095. package/dist/serialization/types/GroupedBloodPressure.d.ts +2 -2
  1096. package/dist/serialization/types/GroupedBloodPressureResponse.d.ts +2 -2
  1097. package/dist/serialization/types/GroupedBodyFat.d.ts +2 -2
  1098. package/dist/serialization/types/GroupedBodyFatResponse.d.ts +2 -2
  1099. package/dist/serialization/types/GroupedBodyWeight.d.ts +2 -2
  1100. package/dist/serialization/types/GroupedBodyWeightResponse.d.ts +2 -2
  1101. package/dist/serialization/types/GroupedCaffeine.d.ts +2 -2
  1102. package/dist/serialization/types/GroupedCaffeineResponse.d.ts +2 -2
  1103. package/dist/serialization/types/GroupedCaloriesActive.d.ts +2 -2
  1104. package/dist/serialization/types/GroupedCaloriesActiveResponse.d.ts +2 -2
  1105. package/dist/serialization/types/GroupedCaloriesBasal.d.ts +2 -2
  1106. package/dist/serialization/types/GroupedCaloriesBasalResponse.d.ts +2 -2
  1107. package/dist/serialization/types/GroupedCholesterol.d.ts +2 -2
  1108. package/dist/serialization/types/GroupedCholesterolResponse.d.ts +2 -2
  1109. package/dist/serialization/types/GroupedDistance.d.ts +2 -2
  1110. package/dist/serialization/types/GroupedDistanceResponse.d.ts +2 -2
  1111. package/dist/serialization/types/GroupedElectrocardiogramVoltage.d.ts +2 -2
  1112. package/dist/serialization/types/GroupedElectrocardiogramVoltageResponse.d.ts +2 -2
  1113. package/dist/serialization/types/GroupedFloorsClimbed.d.ts +2 -2
  1114. package/dist/serialization/types/GroupedFloorsClimbedResponse.d.ts +2 -2
  1115. package/dist/serialization/types/GroupedGlucose.d.ts +2 -2
  1116. package/dist/serialization/types/GroupedGlucoseResponse.d.ts +2 -2
  1117. package/dist/serialization/types/GroupedHeartRate.d.ts +2 -2
  1118. package/dist/serialization/types/GroupedHeartRateResponse.d.ts +2 -2
  1119. package/dist/serialization/types/GroupedHrv.d.ts +2 -2
  1120. package/dist/serialization/types/GroupedHrvResponse.d.ts +2 -2
  1121. package/dist/serialization/types/GroupedHypnogram.d.ts +2 -2
  1122. package/dist/serialization/types/GroupedHypnogramResponse.d.ts +2 -2
  1123. package/dist/serialization/types/GroupedIge.d.ts +2 -2
  1124. package/dist/serialization/types/GroupedIgeResponse.d.ts +2 -2
  1125. package/dist/serialization/types/GroupedIgg.d.ts +2 -2
  1126. package/dist/serialization/types/GroupedIggResponse.d.ts +2 -2
  1127. package/dist/serialization/types/GroupedMindfulnessMinutes.d.ts +2 -2
  1128. package/dist/serialization/types/GroupedMindfulnessMinutesResponse.d.ts +2 -2
  1129. package/dist/serialization/types/GroupedRespiratoryRate.d.ts +2 -2
  1130. package/dist/serialization/types/GroupedRespiratoryRateResponse.d.ts +2 -2
  1131. package/dist/serialization/types/GroupedSteps.d.ts +2 -2
  1132. package/dist/serialization/types/GroupedStepsResponse.d.ts +2 -2
  1133. package/dist/serialization/types/GroupedStressLevel.d.ts +2 -2
  1134. package/dist/serialization/types/GroupedStressLevelResponse.d.ts +2 -2
  1135. package/dist/serialization/types/GroupedVo2Max.d.ts +2 -2
  1136. package/dist/serialization/types/GroupedVo2MaxResponse.d.ts +2 -2
  1137. package/dist/serialization/types/GroupedWater.d.ts +2 -2
  1138. package/dist/serialization/types/GroupedWaterResponse.d.ts +2 -2
  1139. package/dist/serialization/types/HealthInsuranceCreateRequest.d.ts +2 -2
  1140. package/dist/serialization/types/HealthInsuranceCreateRequestBackImage.d.ts +2 -2
  1141. package/dist/serialization/types/HealthInsuranceCreateRequestFrontImage.d.ts +2 -2
  1142. package/dist/serialization/types/HealthInsuranceCreateRequestPatientSignatureImage.d.ts +2 -2
  1143. package/dist/serialization/types/HistoricalPullStatus.d.ts +2 -2
  1144. package/dist/serialization/types/HistoricalPullTimeline.d.ts +2 -2
  1145. package/dist/serialization/types/HistoricalPullTimeline.js +3 -3
  1146. package/dist/serialization/types/HomePregnancyTestEntry.d.ts +2 -2
  1147. package/dist/serialization/types/HomePregnancyTestEntryTestResult.d.ts +2 -2
  1148. package/dist/serialization/types/HomeProgesteroneTestEntry.d.ts +2 -2
  1149. package/dist/serialization/types/HomeProgesteroneTestEntryTestResult.d.ts +2 -2
  1150. package/dist/serialization/types/HttpValidationError.d.ts +2 -2
  1151. package/dist/serialization/types/IntermenstrualBleedingEntry.d.ts +2 -2
  1152. package/dist/serialization/types/Jpeg.d.ts +2 -2
  1153. package/dist/serialization/types/LabLocationMetadata.d.ts +2 -2
  1154. package/dist/serialization/types/LabResultsMetadata.d.ts +2 -2
  1155. package/dist/serialization/types/LabResultsRaw.d.ts +2 -2
  1156. package/dist/serialization/types/LabResultsRawResults.d.ts +2 -2
  1157. package/dist/serialization/types/LabTestCollectionMethod.d.ts +2 -2
  1158. package/dist/serialization/types/LabTestSampleType.d.ts +2 -2
  1159. package/dist/serialization/types/LabTestStatus.d.ts +2 -2
  1160. package/dist/serialization/types/Labs.d.ts +2 -2
  1161. package/dist/serialization/types/LastAttempt.d.ts +2 -2
  1162. package/dist/serialization/types/LastAttempt.js +1 -1
  1163. package/dist/serialization/types/LibreConfig.d.ts +2 -2
  1164. package/dist/serialization/types/LinkTokenExchangeResponse.d.ts +2 -2
  1165. package/dist/serialization/types/LngLat.d.ts +2 -2
  1166. package/dist/serialization/types/Macros.d.ts +3 -2
  1167. package/dist/serialization/types/Macros.js +1 -0
  1168. package/dist/serialization/types/ManualProviders.d.ts +2 -2
  1169. package/dist/serialization/types/MarkerType.d.ts +2 -2
  1170. package/dist/serialization/types/MealInDbBaseClientFacingSource.d.ts +3 -2
  1171. package/dist/serialization/types/MealInDbBaseClientFacingSource.js +4 -3
  1172. package/dist/serialization/types/MenstrualCycle.d.ts +2 -2
  1173. package/dist/serialization/types/MenstrualCycleResponse.d.ts +2 -2
  1174. package/dist/serialization/types/MenstrualFlowEntry.d.ts +2 -2
  1175. package/dist/serialization/types/MenstrualFlowEntryFlow.d.ts +2 -2
  1176. package/dist/serialization/types/MetricsResult.d.ts +2 -2
  1177. package/dist/serialization/types/Micros.d.ts +2 -2
  1178. package/dist/serialization/types/Minerals.d.ts +10 -0
  1179. package/dist/serialization/types/Minerals.js +70 -0
  1180. package/dist/serialization/types/OAuthProviders.d.ts +2 -2
  1181. package/dist/serialization/types/OrderSetRequest.d.ts +14 -0
  1182. package/dist/serialization/types/OrderSetRequest.js +35 -0
  1183. package/dist/serialization/types/OrderStatus.d.ts +2 -2
  1184. package/dist/serialization/types/OrderTopLevelStatus.d.ts +2 -2
  1185. package/dist/serialization/types/OvulationTestEntry.d.ts +2 -2
  1186. package/dist/serialization/types/OvulationTestEntryTestResult.d.ts +2 -2
  1187. package/dist/serialization/types/PaginatedUsersResponse.d.ts +2 -2
  1188. package/dist/serialization/types/PasswordProviders.d.ts +2 -2
  1189. package/dist/serialization/types/PatientAddressCompatible.d.ts +2 -2
  1190. package/dist/serialization/types/PatientDetails.d.ts +2 -2
  1191. package/dist/serialization/types/Period.d.ts +14 -0
  1192. package/dist/serialization/types/Period.js +35 -0
  1193. package/dist/serialization/types/PeriodUnit.d.ts +10 -0
  1194. package/dist/serialization/types/PeriodUnit.js +31 -0
  1195. package/dist/serialization/types/PersonDetailsOutput.d.ts +2 -2
  1196. package/dist/serialization/types/PhlebotomyAreaInfo.d.ts +2 -2
  1197. package/dist/serialization/types/PhlebotomyProviderInfo.d.ts +2 -2
  1198. package/dist/serialization/types/PhysicianCreateRequest.d.ts +2 -2
  1199. package/dist/serialization/types/PhysicianCreateRequestBase.d.ts +2 -2
  1200. package/dist/serialization/types/PhysicianCreateRequestSignatureImage.d.ts +2 -2
  1201. package/dist/serialization/types/Placeholder.d.ts +12 -0
  1202. package/dist/serialization/types/Placeholder.js +33 -0
  1203. package/dist/serialization/types/Png.d.ts +2 -2
  1204. package/dist/serialization/types/PostOrderResponse.d.ts +2 -2
  1205. package/dist/serialization/types/ProfileInDb.d.ts +2 -2
  1206. package/dist/serialization/types/ProviderLinkResponse.d.ts +2 -2
  1207. package/dist/serialization/types/ProviderLinkResponseState.d.ts +2 -2
  1208. package/dist/serialization/types/ProviderMfaRequest.d.ts +2 -2
  1209. package/dist/serialization/types/ProviderMfaRequestMethod.d.ts +2 -2
  1210. package/dist/serialization/types/Providers.d.ts +3 -3
  1211. package/dist/serialization/types/Providers.js +1 -0
  1212. package/dist/serialization/types/PscAreaInfo.d.ts +2 -2
  1213. package/dist/serialization/types/PscAreaInfoDetails.d.ts +2 -2
  1214. package/dist/serialization/types/PscInfo.d.ts +2 -2
  1215. package/dist/serialization/types/QueryConfig.d.ts +15 -0
  1216. package/dist/serialization/types/QueryConfig.js +36 -0
  1217. package/dist/serialization/types/QueryConfigProviderPriorityOverridesItem.d.ts +12 -0
  1218. package/dist/serialization/types/QueryConfigProviderPriorityOverridesItem.js +33 -0
  1219. package/dist/serialization/types/QueryConfigWeekStartsOn.d.ts +10 -0
  1220. package/dist/serialization/types/QueryConfigWeekStartsOn.js +31 -0
  1221. package/dist/serialization/types/QueryInstruction.d.ts +20 -0
  1222. package/dist/serialization/types/QueryInstruction.js +41 -0
  1223. package/dist/serialization/types/QueryInstructionPartitionBy.d.ts +12 -0
  1224. package/dist/serialization/types/QueryInstructionPartitionBy.js +33 -0
  1225. package/dist/serialization/types/QueryInstructionSelect.d.ts +12 -0
  1226. package/dist/serialization/types/QueryInstructionSelect.js +33 -0
  1227. package/dist/serialization/types/Question.d.ts +2 -2
  1228. package/dist/serialization/types/QuestionType.d.ts +2 -2
  1229. package/dist/serialization/types/RawActivity.d.ts +2 -2
  1230. package/dist/serialization/types/RawBody.d.ts +2 -2
  1231. package/dist/serialization/types/RawDevices.d.ts +2 -2
  1232. package/dist/serialization/types/RawProfile.d.ts +2 -2
  1233. package/dist/serialization/types/RawSleep.d.ts +2 -2
  1234. package/dist/serialization/types/RawWorkout.d.ts +2 -2
  1235. package/dist/serialization/types/Reducer.d.ts +13 -0
  1236. package/dist/serialization/types/Reducer.js +34 -0
  1237. package/dist/serialization/types/ReducerFunction.d.ts +10 -0
  1238. package/dist/serialization/types/ReducerFunction.js +31 -0
  1239. package/dist/serialization/types/Region.d.ts +2 -2
  1240. package/dist/serialization/types/RelativeTimeframe.d.ts +15 -0
  1241. package/dist/serialization/types/RelativeTimeframe.js +36 -0
  1242. package/dist/serialization/types/ResourceAvailability.d.ts +2 -2
  1243. package/dist/serialization/types/ResponsibleRelationship.d.ts +2 -2
  1244. package/dist/serialization/types/ResultType.d.ts +2 -2
  1245. package/dist/serialization/types/ScopeRequirementsGrants.d.ts +2 -2
  1246. package/dist/serialization/types/ScopeRequirementsStr.d.ts +2 -2
  1247. package/dist/serialization/types/SexualActivityEntry.d.ts +2 -2
  1248. package/dist/serialization/types/ShippingAddress.d.ts +2 -2
  1249. package/dist/serialization/types/SingleHistoricalPullStatistics.d.ts +2 -2
  1250. package/dist/serialization/types/SingleHistoricalPullStatistics.js +2 -2
  1251. package/dist/serialization/types/SingleProviderHistoricalPullResponse.d.ts +2 -2
  1252. package/dist/serialization/types/SingleResourceStatistics.d.ts +2 -2
  1253. package/dist/serialization/types/SingleResourceStatistics.js +2 -2
  1254. package/dist/serialization/types/SingleUserHistoricalPullResponse.d.ts +2 -2
  1255. package/dist/serialization/types/SingleUserResourceResponse.d.ts +2 -2
  1256. package/dist/serialization/types/SleepSelector.d.ts +13 -0
  1257. package/dist/serialization/types/SleepSelector.js +34 -0
  1258. package/dist/serialization/types/SleepSelectorSleep.d.ts +10 -0
  1259. package/dist/serialization/types/SleepSelectorSleep.js +56 -0
  1260. package/dist/serialization/types/SleepSummaryState.d.ts +2 -2
  1261. package/dist/serialization/types/SleepV2InDb.d.ts +2 -2
  1262. package/dist/serialization/types/Source.d.ts +2 -2
  1263. package/dist/serialization/types/SourceAuthType.d.ts +2 -2
  1264. package/dist/serialization/types/SourceLink.d.ts +2 -2
  1265. package/dist/serialization/types/SourceType.d.ts +2 -2
  1266. package/dist/serialization/types/Swizzling.d.ts +16 -0
  1267. package/dist/serialization/types/Swizzling.js +37 -0
  1268. package/dist/serialization/types/SwizzlingBinGranularity.d.ts +10 -0
  1269. package/dist/serialization/types/SwizzlingBinGranularity.js +31 -0
  1270. package/dist/serialization/types/TeamConfig.d.ts +2 -2
  1271. package/dist/serialization/types/TimeSlot.d.ts +2 -2
  1272. package/dist/serialization/types/TimeSlot.js +3 -3
  1273. package/dist/serialization/types/TimeseriesMetricPoint.d.ts +2 -2
  1274. package/dist/serialization/types/TimeseriesMetricPoint.js +1 -1
  1275. package/dist/serialization/types/TimeseriesResource.d.ts +2 -2
  1276. package/dist/serialization/types/TraceElements.d.ts +10 -0
  1277. package/dist/serialization/types/TraceElements.js +31 -0
  1278. package/dist/serialization/types/UsAddress.d.ts +2 -2
  1279. package/dist/serialization/types/UserHistoricalPullsResponse.d.ts +2 -2
  1280. package/dist/serialization/types/UserInfo.d.ts +2 -2
  1281. package/dist/serialization/types/UserRefreshErrorResponse.d.ts +2 -2
  1282. package/dist/serialization/types/UserRefreshSuccessResponse.d.ts +2 -2
  1283. package/dist/serialization/types/UserResourcesResponse.d.ts +2 -2
  1284. package/dist/serialization/types/UserSignInTokenResponse.d.ts +2 -2
  1285. package/dist/serialization/types/UserSuccessResponse.d.ts +2 -2
  1286. package/dist/serialization/types/ValidationError.d.ts +2 -2
  1287. package/dist/serialization/types/ValidationErrorLocItem.d.ts +2 -2
  1288. package/dist/serialization/types/VitalCoreSchemasDbSchemasLabTestHealthInsurancePersonDetails.d.ts +2 -2
  1289. package/dist/serialization/types/VitalCoreSchemasDbSchemasLabTestInsurancePersonDetails.d.ts +2 -2
  1290. package/dist/serialization/types/VitalTokenCreatedResponse.d.ts +2 -2
  1291. package/dist/serialization/types/Vitamins.d.ts +10 -0
  1292. package/dist/serialization/types/Vitamins.js +45 -0
  1293. package/dist/serialization/types/WorkoutV2InDb.d.ts +2 -2
  1294. package/dist/serialization/types/index.d.ts +23 -0
  1295. package/dist/serialization/types/index.js +23 -0
  1296. package/dist/version.d.ts +1 -0
  1297. package/dist/version.js +4 -0
  1298. package/jest.config.js +2 -2
  1299. package/package.json +20 -8
  1300. package/reference.md +8883 -0
  1301. package/serialization/resources/aggregate/client/index.d.ts +1 -0
  1302. package/serialization/resources/aggregate/client/index.js +17 -0
  1303. package/serialization/resources/aggregate/client/requests/Query.d.ts +17 -0
  1304. package/serialization/resources/aggregate/client/requests/Query.js +38 -0
  1305. package/serialization/resources/aggregate/client/requests/index.d.ts +1 -0
  1306. package/serialization/resources/aggregate/client/requests/index.js +5 -0
  1307. package/serialization/resources/aggregate/index.d.ts +2 -0
  1308. package/serialization/resources/aggregate/index.js +18 -0
  1309. package/serialization/resources/aggregate/types/QueryTimeframe.d.ts +12 -0
  1310. package/serialization/resources/aggregate/types/QueryTimeframe.js +33 -0
  1311. package/serialization/resources/aggregate/types/index.d.ts +1 -0
  1312. package/serialization/resources/aggregate/types/index.js +17 -0
  1313. package/serialization/resources/index.d.ts +3 -0
  1314. package/serialization/resources/index.js +4 -1
  1315. package/serialization/resources/insurance/client/requests/PayorSearchRequest.d.ts +2 -2
  1316. package/serialization/resources/insurance/client/searchDiagnosis.d.ts +2 -2
  1317. package/serialization/resources/insurance/client/searchPayorInfo.d.ts +2 -2
  1318. package/serialization/resources/labTests/client/get.d.ts +2 -2
  1319. package/serialization/resources/labTests/client/getLabs.d.ts +2 -2
  1320. package/serialization/resources/labTests/client/getPhlebotomyAppointmentCancellationReason.d.ts +2 -2
  1321. package/serialization/resources/labTests/client/requests/AppointmentBookingRequest.d.ts +2 -2
  1322. package/serialization/resources/labTests/client/requests/AppointmentCancelRequest.d.ts +2 -2
  1323. package/serialization/resources/labTests/client/requests/AppointmentRescheduleRequest.d.ts +2 -2
  1324. package/serialization/resources/labTests/client/requests/CreateLabTestRequest.d.ts +2 -2
  1325. package/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +7 -3
  1326. package/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.js +5 -1
  1327. package/serialization/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +2 -2
  1328. package/serialization/resources/labTests/types/LabTestsGetOrdersRequestOrderDirection.d.ts +2 -2
  1329. package/serialization/resources/labTests/types/LabTestsGetOrdersRequestOrderKey.d.ts +2 -2
  1330. package/serialization/resources/link/client/connectManualProvider.d.ts +1 -1
  1331. package/serialization/resources/link/client/getAllProviders.d.ts +2 -2
  1332. package/serialization/resources/link/client/isTokenValid.d.ts +1 -1
  1333. package/serialization/resources/link/client/requests/BeginLinkTokenRequest.d.ts +2 -2
  1334. package/serialization/resources/link/client/requests/CompletePasswordProviderMfaBody.d.ts +2 -2
  1335. package/serialization/resources/link/client/requests/DemoConnectionCreationPayload.d.ts +2 -2
  1336. package/serialization/resources/link/client/requests/EmailAuthLink.d.ts +2 -2
  1337. package/serialization/resources/link/client/requests/EmailProviderAuthLink.d.ts +2 -2
  1338. package/serialization/resources/link/client/requests/IndividualProviderData.d.ts +2 -2
  1339. package/serialization/resources/link/client/requests/LinkTokenBase.d.ts +2 -2
  1340. package/serialization/resources/link/client/requests/LinkTokenExchange.d.ts +2 -2
  1341. package/serialization/resources/link/client/requests/ManualConnectionData.d.ts +2 -2
  1342. package/serialization/resources/link/client/requests/PasswordAuthLink.d.ts +2 -2
  1343. package/serialization/resources/link/client/startConnect.d.ts +1 -1
  1344. package/serialization/resources/link/client/tokenState.d.ts +1 -1
  1345. package/serialization/resources/providers/client/getAll.d.ts +2 -2
  1346. package/serialization/resources/team/client/getLinkConfig.d.ts +1 -1
  1347. package/serialization/resources/team/client/getPhysicians.d.ts +2 -2
  1348. package/serialization/resources/team/client/getSourcePriorities.d.ts +1 -1
  1349. package/serialization/resources/team/client/getSvixUrl.d.ts +1 -1
  1350. package/serialization/resources/team/client/getUserById.d.ts +2 -2
  1351. package/serialization/resources/team/client/updateSourcePriorities.d.ts +1 -1
  1352. package/serialization/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +2 -2
  1353. package/serialization/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +2 -2
  1354. package/serialization/resources/user/client/getConnectedProviders.d.ts +2 -2
  1355. package/serialization/resources/user/client/requests/CreateInsuranceRequest.d.ts +2 -2
  1356. package/serialization/resources/user/client/requests/UserCreateBody.d.ts +2 -2
  1357. package/serialization/resources/user/client/requests/UserInfoCreateRequest.d.ts +2 -2
  1358. package/serialization/resources/user/client/requests/UserPatchBody.d.ts +2 -2
  1359. package/serialization/resources/vitals/client/bloodOxygen.d.ts +2 -2
  1360. package/serialization/resources/vitals/client/bloodPressure.d.ts +2 -2
  1361. package/serialization/resources/vitals/client/bodyFat.d.ts +2 -2
  1362. package/serialization/resources/vitals/client/bodyWeight.d.ts +2 -2
  1363. package/serialization/resources/vitals/client/caffeine.d.ts +2 -2
  1364. package/serialization/resources/vitals/client/caloriesActive.d.ts +2 -2
  1365. package/serialization/resources/vitals/client/caloriesBasal.d.ts +2 -2
  1366. package/serialization/resources/vitals/client/cholesterol.d.ts +2 -2
  1367. package/serialization/resources/vitals/client/cholesterolHdl.d.ts +2 -2
  1368. package/serialization/resources/vitals/client/cholesterolLdl.d.ts +2 -2
  1369. package/serialization/resources/vitals/client/cholesterolTotal.d.ts +2 -2
  1370. package/serialization/resources/vitals/client/cholesterolTriglycerides.d.ts +2 -2
  1371. package/serialization/resources/vitals/client/distance.d.ts +2 -2
  1372. package/serialization/resources/vitals/client/electrocardiogramVoltage.d.ts +2 -2
  1373. package/serialization/resources/vitals/client/floorsClimbed.d.ts +2 -2
  1374. package/serialization/resources/vitals/client/glucose.d.ts +2 -2
  1375. package/serialization/resources/vitals/client/heartrate.d.ts +2 -2
  1376. package/serialization/resources/vitals/client/hrv.d.ts +2 -2
  1377. package/serialization/resources/vitals/client/hypnogram.d.ts +2 -2
  1378. package/serialization/resources/vitals/client/ige.d.ts +2 -2
  1379. package/serialization/resources/vitals/client/igg.d.ts +2 -2
  1380. package/serialization/resources/vitals/client/mindfulnessMinutes.d.ts +2 -2
  1381. package/serialization/resources/vitals/client/respiratoryRate.d.ts +2 -2
  1382. package/serialization/resources/vitals/client/steps.d.ts +2 -2
  1383. package/serialization/resources/vitals/client/stressLevel.d.ts +2 -2
  1384. package/serialization/resources/vitals/client/vo2Max.d.ts +2 -2
  1385. package/serialization/resources/vitals/client/water.d.ts +2 -2
  1386. package/serialization/types/ActivitySelector.d.ts +13 -0
  1387. package/serialization/types/ActivitySelector.js +34 -0
  1388. package/serialization/types/ActivitySelectorActivity.d.ts +10 -0
  1389. package/serialization/types/ActivitySelectorActivity.js +50 -0
  1390. package/serialization/types/ActivityV2InDb.d.ts +2 -2
  1391. package/serialization/types/AddOnOrder.d.ts +13 -0
  1392. package/serialization/types/AddOnOrder.js +34 -0
  1393. package/serialization/types/Address.d.ts +2 -2
  1394. package/serialization/types/AllowedRadius.d.ts +2 -2
  1395. package/serialization/types/Answer.d.ts +2 -2
  1396. package/serialization/types/AoE.d.ts +2 -2
  1397. package/serialization/types/AoEAnswer.d.ts +2 -2
  1398. package/serialization/types/AppointmentAvailabilitySlots.d.ts +2 -2
  1399. package/serialization/types/AppointmentEventStatus.d.ts +2 -2
  1400. package/serialization/types/AppointmentProvider.d.ts +2 -2
  1401. package/serialization/types/AppointmentServiceType.d.ts +2 -2
  1402. package/serialization/types/AppointmentStatus.d.ts +2 -2
  1403. package/serialization/types/AppointmentType.d.ts +2 -2
  1404. package/serialization/types/AreaInfo.d.ts +2 -2
  1405. package/serialization/types/AttemptStatus.d.ts +2 -2
  1406. package/serialization/types/AuthType.d.ts +2 -2
  1407. package/serialization/types/Availability.d.ts +2 -2
  1408. package/serialization/types/BasalBodyTemperatureEntry.d.ts +2 -2
  1409. package/serialization/types/Billing.d.ts +2 -2
  1410. package/serialization/types/BiomarkerResult.d.ts +3 -2
  1411. package/serialization/types/BiomarkerResult.js +2 -1
  1412. package/serialization/types/BodyV2InDb.d.ts +2 -2
  1413. package/serialization/types/CervicalMucusEntry.d.ts +2 -2
  1414. package/serialization/types/CervicalMucusEntryQuality.d.ts +2 -2
  1415. package/serialization/types/ClientActivityResponse.d.ts +2 -2
  1416. package/serialization/types/ClientBodyResponse.d.ts +2 -2
  1417. package/serialization/types/ClientFacingActivity.d.ts +2 -2
  1418. package/serialization/types/ClientFacingActivity.js +1 -1
  1419. package/serialization/types/ClientFacingApiKey.d.ts +2 -2
  1420. package/serialization/types/ClientFacingApiKey.js +2 -2
  1421. package/serialization/types/ClientFacingAppointment.d.ts +2 -2
  1422. package/serialization/types/ClientFacingAppointment.js +2 -2
  1423. package/serialization/types/ClientFacingAppointmentCancellationReason.d.ts +2 -2
  1424. package/serialization/types/ClientFacingAppointmentEvent.d.ts +2 -2
  1425. package/serialization/types/ClientFacingAppointmentEvent.js +1 -1
  1426. package/serialization/types/ClientFacingAtHomePhlebotomyOrder.d.ts +2 -2
  1427. package/serialization/types/ClientFacingAtHomePhlebotomyOrder.js +2 -2
  1428. package/serialization/types/ClientFacingAtHomePhlebotomyOrderDetails.d.ts +2 -2
  1429. package/serialization/types/ClientFacingBloodOxygenTimeseries.d.ts +2 -2
  1430. package/serialization/types/ClientFacingBloodOxygenTimeseries.js +1 -1
  1431. package/serialization/types/ClientFacingBloodPressureTimeseries.d.ts +2 -2
  1432. package/serialization/types/ClientFacingBloodPressureTimeseries.js +1 -1
  1433. package/serialization/types/ClientFacingBody.d.ts +2 -2
  1434. package/serialization/types/ClientFacingBody.js +1 -1
  1435. package/serialization/types/ClientFacingBodyFatTimeseries.d.ts +2 -2
  1436. package/serialization/types/ClientFacingBodyFatTimeseries.js +1 -1
  1437. package/serialization/types/ClientFacingBodyTemperatureDeltaSample.d.ts +2 -2
  1438. package/serialization/types/ClientFacingBodyTemperatureDeltaSample.js +3 -3
  1439. package/serialization/types/ClientFacingBodyTemperatureDeltaSampleSensorLocation.d.ts +2 -2
  1440. package/serialization/types/ClientFacingBodyTemperatureSample.d.ts +2 -2
  1441. package/serialization/types/ClientFacingBodyTemperatureSample.js +3 -3
  1442. package/serialization/types/ClientFacingBodyTemperatureSampleSensorLocation.d.ts +2 -2
  1443. package/serialization/types/ClientFacingBodyWeightTimeseries.d.ts +2 -2
  1444. package/serialization/types/ClientFacingBodyWeightTimeseries.js +1 -1
  1445. package/serialization/types/ClientFacingCaffeineTimeseries.d.ts +2 -2
  1446. package/serialization/types/ClientFacingCaffeineTimeseries.js +3 -3
  1447. package/serialization/types/ClientFacingCaloriesActiveTimeseries.d.ts +2 -2
  1448. package/serialization/types/ClientFacingCaloriesActiveTimeseries.js +3 -3
  1449. package/serialization/types/ClientFacingCaloriesBasalTimeseries.d.ts +2 -2
  1450. package/serialization/types/ClientFacingCaloriesBasalTimeseries.js +1 -1
  1451. package/serialization/types/ClientFacingCarbohydratesSample.d.ts +2 -2
  1452. package/serialization/types/ClientFacingCarbohydratesSample.js +3 -3
  1453. package/serialization/types/ClientFacingCholesterolTimeseries.d.ts +2 -2
  1454. package/serialization/types/ClientFacingCholesterolTimeseries.js +1 -1
  1455. package/serialization/types/ClientFacingDiagnosisInformation.d.ts +2 -2
  1456. package/serialization/types/ClientFacingDistanceTimeseries.d.ts +2 -2
  1457. package/serialization/types/ClientFacingDistanceTimeseries.js +3 -3
  1458. package/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +2 -2
  1459. package/serialization/types/ClientFacingFloorsClimbedTimeseries.d.ts +2 -2
  1460. package/serialization/types/ClientFacingFloorsClimbedTimeseries.js +1 -1
  1461. package/serialization/types/ClientFacingFood.d.ts +2 -2
  1462. package/serialization/types/ClientFacingGlucoseTimeseries.d.ts +2 -2
  1463. package/serialization/types/ClientFacingGlucoseTimeseries.js +1 -1
  1464. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.d.ts +2 -2
  1465. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.d.ts +2 -2
  1466. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample.d.ts +2 -2
  1467. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample.d.ts +2 -2
  1468. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingNoteSample.d.ts +2 -2
  1469. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample.d.ts +2 -2
  1470. package/serialization/types/ClientFacingHeartRate.d.ts +2 -2
  1471. package/serialization/types/ClientFacingHeartRateTimeseries.d.ts +2 -2
  1472. package/serialization/types/ClientFacingHeartRateTimeseries.js +1 -1
  1473. package/serialization/types/ClientFacingHrvTimeseries.d.ts +2 -2
  1474. package/serialization/types/ClientFacingHrvTimeseries.js +1 -1
  1475. package/serialization/types/ClientFacingHypnogramTimeseries.d.ts +2 -2
  1476. package/serialization/types/ClientFacingHypnogramTimeseries.js +3 -3
  1477. package/serialization/types/ClientFacingIgeTimeseries.d.ts +2 -2
  1478. package/serialization/types/ClientFacingIgeTimeseries.js +1 -1
  1479. package/serialization/types/ClientFacingIggTimeseries.d.ts +2 -2
  1480. package/serialization/types/ClientFacingIggTimeseries.js +1 -1
  1481. package/serialization/types/ClientFacingInsulinInjectionSample.d.ts +2 -2
  1482. package/serialization/types/ClientFacingInsulinInjectionSample.js +3 -3
  1483. package/serialization/types/ClientFacingInsulinInjectionSampleType.d.ts +2 -2
  1484. package/serialization/types/ClientFacingInsurance.d.ts +2 -2
  1485. package/serialization/types/ClientFacingLab.d.ts +2 -2
  1486. package/serialization/types/ClientFacingLabLocation.d.ts +2 -2
  1487. package/serialization/types/ClientFacingLabTest.d.ts +3 -2
  1488. package/serialization/types/ClientFacingLabTest.js +1 -0
  1489. package/serialization/types/ClientFacingLabs.d.ts +2 -2
  1490. package/serialization/types/ClientFacingLoinc.d.ts +2 -2
  1491. package/serialization/types/ClientFacingMarker.d.ts +3 -2
  1492. package/serialization/types/ClientFacingMarker.js +1 -0
  1493. package/serialization/types/ClientFacingMarkerComplete.d.ts +3 -2
  1494. package/serialization/types/ClientFacingMarkerComplete.js +1 -0
  1495. package/serialization/types/ClientFacingMealResponse.d.ts +2 -2
  1496. package/serialization/types/ClientFacingMindfulnessMinutesTimeseries.d.ts +2 -2
  1497. package/serialization/types/ClientFacingMindfulnessMinutesTimeseries.js +3 -3
  1498. package/serialization/types/ClientFacingNoteSample.d.ts +2 -2
  1499. package/serialization/types/ClientFacingNoteSample.js +3 -3
  1500. package/serialization/types/ClientFacingNoteSampleTagsItem.d.ts +2 -2
  1501. package/serialization/types/ClientFacingOrder.d.ts +2 -2
  1502. package/serialization/types/ClientFacingOrder.js +2 -2
  1503. package/serialization/types/ClientFacingOrderDetails.d.ts +2 -2
  1504. package/serialization/types/ClientFacingOrderEvent.d.ts +2 -2
  1505. package/serialization/types/ClientFacingOrderEvent.js +1 -1
  1506. package/serialization/types/ClientFacingPatientDetailsCompatible.d.ts +2 -2
  1507. package/serialization/types/ClientFacingPatientDetailsCompatible.js +1 -1
  1508. package/serialization/types/ClientFacingPayorSearchResponse.d.ts +2 -2
  1509. package/serialization/types/ClientFacingPhysician.d.ts +2 -2
  1510. package/serialization/types/ClientFacingProfile.d.ts +2 -2
  1511. package/serialization/types/ClientFacingProvider.d.ts +2 -2
  1512. package/serialization/types/ClientFacingProviderDetailed.d.ts +2 -2
  1513. package/serialization/types/ClientFacingProviderWithStatus.d.ts +2 -2
  1514. package/serialization/types/ClientFacingResource.d.ts +2 -2
  1515. package/serialization/types/ClientFacingRespiratoryRateTimeseries.d.ts +2 -2
  1516. package/serialization/types/ClientFacingRespiratoryRateTimeseries.js +1 -1
  1517. package/serialization/types/ClientFacingResult.d.ts +2 -2
  1518. package/serialization/types/ClientFacingSampleGroupingKeys.d.ts +2 -2
  1519. package/serialization/types/ClientFacingShipment.d.ts +2 -2
  1520. package/serialization/types/ClientFacingSleep.d.ts +2 -2
  1521. package/serialization/types/ClientFacingSleep.js +3 -3
  1522. package/serialization/types/ClientFacingSleepStream.d.ts +2 -2
  1523. package/serialization/types/ClientFacingSource.d.ts +2 -2
  1524. package/serialization/types/ClientFacingSport.d.ts +2 -2
  1525. package/serialization/types/ClientFacingStepsTimeseries.d.ts +2 -2
  1526. package/serialization/types/ClientFacingStepsTimeseries.js +3 -3
  1527. package/serialization/types/ClientFacingStream.d.ts +2 -2
  1528. package/serialization/types/ClientFacingStreamAltitude.d.ts +2 -2
  1529. package/serialization/types/ClientFacingStreamCadence.d.ts +2 -2
  1530. package/serialization/types/ClientFacingStreamDistance.d.ts +2 -2
  1531. package/serialization/types/ClientFacingStreamHeartrate.d.ts +2 -2
  1532. package/serialization/types/ClientFacingStreamLat.d.ts +2 -2
  1533. package/serialization/types/ClientFacingStreamLng.d.ts +2 -2
  1534. package/serialization/types/ClientFacingStreamPower.d.ts +2 -2
  1535. package/serialization/types/ClientFacingStreamResistance.d.ts +2 -2
  1536. package/serialization/types/ClientFacingStreamTemperature.d.ts +2 -2
  1537. package/serialization/types/ClientFacingStreamVelocitySmooth.d.ts +2 -2
  1538. package/serialization/types/ClientFacingStressLevelTimeseries.d.ts +2 -2
  1539. package/serialization/types/ClientFacingStressLevelTimeseries.js +1 -1
  1540. package/serialization/types/ClientFacingTeam.d.ts +2 -2
  1541. package/serialization/types/ClientFacingTestKitOrderDetails.d.ts +2 -2
  1542. package/serialization/types/ClientFacingTestkitOrder.d.ts +2 -2
  1543. package/serialization/types/ClientFacingTestkitOrder.js +2 -2
  1544. package/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.d.ts +2 -2
  1545. package/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.d.ts +2 -2
  1546. package/serialization/types/ClientFacingTimeseriesGroupClientFacingCarbohydratesSample.d.ts +2 -2
  1547. package/serialization/types/ClientFacingTimeseriesGroupClientFacingInsulinInjectionSample.d.ts +2 -2
  1548. package/serialization/types/ClientFacingTimeseriesGroupClientFacingNoteSample.d.ts +2 -2
  1549. package/serialization/types/ClientFacingTimeseriesGroupClientFacingWorkoutDurationSample.d.ts +2 -2
  1550. package/serialization/types/ClientFacingUser.d.ts +2 -2
  1551. package/serialization/types/ClientFacingUser.js +1 -1
  1552. package/serialization/types/ClientFacingUserKey.d.ts +2 -2
  1553. package/serialization/types/ClientFacingVo2MaxTimeseries.d.ts +2 -2
  1554. package/serialization/types/ClientFacingVo2MaxTimeseries.js +3 -3
  1555. package/serialization/types/ClientFacingWalkInOrderDetails.d.ts +2 -2
  1556. package/serialization/types/ClientFacingWalkInTestOrder.d.ts +2 -2
  1557. package/serialization/types/ClientFacingWalkInTestOrder.js +2 -2
  1558. package/serialization/types/ClientFacingWaterTimeseries.d.ts +2 -2
  1559. package/serialization/types/ClientFacingWaterTimeseries.js +1 -1
  1560. package/serialization/types/ClientFacingWorkout.d.ts +2 -2
  1561. package/serialization/types/ClientFacingWorkout.js +2 -2
  1562. package/serialization/types/ClientFacingWorkoutDurationSample.d.ts +2 -2
  1563. package/serialization/types/ClientFacingWorkoutDurationSample.js +3 -3
  1564. package/serialization/types/ClientFacingWorkoutDurationSampleIntensity.d.ts +2 -2
  1565. package/serialization/types/ClientSleepResponse.d.ts +2 -2
  1566. package/serialization/types/ClientUserIdConflict.d.ts +2 -2
  1567. package/serialization/types/ClientWorkoutResponse.d.ts +2 -2
  1568. package/serialization/types/CompanyDetails.d.ts +2 -2
  1569. package/serialization/types/ConnectedSourceClientFacing.d.ts +2 -2
  1570. package/serialization/types/ConnectedSourceClientFacing.js +1 -1
  1571. package/serialization/types/ConnectionStatus.d.ts +2 -2
  1572. package/serialization/types/ConnectionStatusState.d.ts +2 -2
  1573. package/serialization/types/Consent.d.ts +2 -2
  1574. package/serialization/types/ConsentType.d.ts +2 -2
  1575. package/serialization/types/ContraceptiveEntry.d.ts +2 -2
  1576. package/serialization/types/ContraceptiveEntryType.d.ts +2 -2
  1577. package/serialization/types/DaySlots.d.ts +2 -2
  1578. package/serialization/types/DelegatedFlowType.d.ts +2 -2
  1579. package/serialization/types/DemoConnectionStatus.d.ts +2 -2
  1580. package/serialization/types/DemoProviders.d.ts +2 -2
  1581. package/serialization/types/DetectedDeviationEntry.d.ts +2 -2
  1582. package/serialization/types/DetectedDeviationEntryDeviation.d.ts +2 -2
  1583. package/serialization/types/DeviceV2InDb.d.ts +2 -2
  1584. package/serialization/types/EmailProviders.d.ts +2 -2
  1585. package/serialization/types/Energy.d.ts +2 -2
  1586. package/serialization/types/EventDestinationPreferences.d.ts +2 -2
  1587. package/serialization/types/EventDestinationPreferencesEnabledItem.d.ts +2 -2
  1588. package/serialization/types/EventDestinationPreferencesPreferred.d.ts +2 -2
  1589. package/serialization/types/FallbackBirthDate.d.ts +2 -2
  1590. package/serialization/types/FallbackBirthDate.js +1 -1
  1591. package/serialization/types/FallbackTimeZone.d.ts +2 -2
  1592. package/serialization/types/FallbackTimeZone.js +1 -1
  1593. package/serialization/types/Fats.d.ts +2 -2
  1594. package/serialization/types/Gender.d.ts +2 -2
  1595. package/serialization/types/GetMarkersResponse.d.ts +2 -2
  1596. package/serialization/types/GetOrdersResponse.d.ts +2 -2
  1597. package/serialization/types/GroupedBloodOxygen.d.ts +2 -2
  1598. package/serialization/types/GroupedBloodOxygenResponse.d.ts +2 -2
  1599. package/serialization/types/GroupedBloodPressure.d.ts +2 -2
  1600. package/serialization/types/GroupedBloodPressureResponse.d.ts +2 -2
  1601. package/serialization/types/GroupedBodyFat.d.ts +2 -2
  1602. package/serialization/types/GroupedBodyFatResponse.d.ts +2 -2
  1603. package/serialization/types/GroupedBodyWeight.d.ts +2 -2
  1604. package/serialization/types/GroupedBodyWeightResponse.d.ts +2 -2
  1605. package/serialization/types/GroupedCaffeine.d.ts +2 -2
  1606. package/serialization/types/GroupedCaffeineResponse.d.ts +2 -2
  1607. package/serialization/types/GroupedCaloriesActive.d.ts +2 -2
  1608. package/serialization/types/GroupedCaloriesActiveResponse.d.ts +2 -2
  1609. package/serialization/types/GroupedCaloriesBasal.d.ts +2 -2
  1610. package/serialization/types/GroupedCaloriesBasalResponse.d.ts +2 -2
  1611. package/serialization/types/GroupedCholesterol.d.ts +2 -2
  1612. package/serialization/types/GroupedCholesterolResponse.d.ts +2 -2
  1613. package/serialization/types/GroupedDistance.d.ts +2 -2
  1614. package/serialization/types/GroupedDistanceResponse.d.ts +2 -2
  1615. package/serialization/types/GroupedElectrocardiogramVoltage.d.ts +2 -2
  1616. package/serialization/types/GroupedElectrocardiogramVoltageResponse.d.ts +2 -2
  1617. package/serialization/types/GroupedFloorsClimbed.d.ts +2 -2
  1618. package/serialization/types/GroupedFloorsClimbedResponse.d.ts +2 -2
  1619. package/serialization/types/GroupedGlucose.d.ts +2 -2
  1620. package/serialization/types/GroupedGlucoseResponse.d.ts +2 -2
  1621. package/serialization/types/GroupedHeartRate.d.ts +2 -2
  1622. package/serialization/types/GroupedHeartRateResponse.d.ts +2 -2
  1623. package/serialization/types/GroupedHrv.d.ts +2 -2
  1624. package/serialization/types/GroupedHrvResponse.d.ts +2 -2
  1625. package/serialization/types/GroupedHypnogram.d.ts +2 -2
  1626. package/serialization/types/GroupedHypnogramResponse.d.ts +2 -2
  1627. package/serialization/types/GroupedIge.d.ts +2 -2
  1628. package/serialization/types/GroupedIgeResponse.d.ts +2 -2
  1629. package/serialization/types/GroupedIgg.d.ts +2 -2
  1630. package/serialization/types/GroupedIggResponse.d.ts +2 -2
  1631. package/serialization/types/GroupedMindfulnessMinutes.d.ts +2 -2
  1632. package/serialization/types/GroupedMindfulnessMinutesResponse.d.ts +2 -2
  1633. package/serialization/types/GroupedRespiratoryRate.d.ts +2 -2
  1634. package/serialization/types/GroupedRespiratoryRateResponse.d.ts +2 -2
  1635. package/serialization/types/GroupedSteps.d.ts +2 -2
  1636. package/serialization/types/GroupedStepsResponse.d.ts +2 -2
  1637. package/serialization/types/GroupedStressLevel.d.ts +2 -2
  1638. package/serialization/types/GroupedStressLevelResponse.d.ts +2 -2
  1639. package/serialization/types/GroupedVo2Max.d.ts +2 -2
  1640. package/serialization/types/GroupedVo2MaxResponse.d.ts +2 -2
  1641. package/serialization/types/GroupedWater.d.ts +2 -2
  1642. package/serialization/types/GroupedWaterResponse.d.ts +2 -2
  1643. package/serialization/types/HealthInsuranceCreateRequest.d.ts +2 -2
  1644. package/serialization/types/HealthInsuranceCreateRequestBackImage.d.ts +2 -2
  1645. package/serialization/types/HealthInsuranceCreateRequestFrontImage.d.ts +2 -2
  1646. package/serialization/types/HealthInsuranceCreateRequestPatientSignatureImage.d.ts +2 -2
  1647. package/serialization/types/HistoricalPullStatus.d.ts +2 -2
  1648. package/serialization/types/HistoricalPullTimeline.d.ts +2 -2
  1649. package/serialization/types/HistoricalPullTimeline.js +3 -3
  1650. package/serialization/types/HomePregnancyTestEntry.d.ts +2 -2
  1651. package/serialization/types/HomePregnancyTestEntryTestResult.d.ts +2 -2
  1652. package/serialization/types/HomeProgesteroneTestEntry.d.ts +2 -2
  1653. package/serialization/types/HomeProgesteroneTestEntryTestResult.d.ts +2 -2
  1654. package/serialization/types/HttpValidationError.d.ts +2 -2
  1655. package/serialization/types/IntermenstrualBleedingEntry.d.ts +2 -2
  1656. package/serialization/types/Jpeg.d.ts +2 -2
  1657. package/serialization/types/LabLocationMetadata.d.ts +2 -2
  1658. package/serialization/types/LabResultsMetadata.d.ts +2 -2
  1659. package/serialization/types/LabResultsRaw.d.ts +2 -2
  1660. package/serialization/types/LabResultsRawResults.d.ts +2 -2
  1661. package/serialization/types/LabTestCollectionMethod.d.ts +2 -2
  1662. package/serialization/types/LabTestSampleType.d.ts +2 -2
  1663. package/serialization/types/LabTestStatus.d.ts +2 -2
  1664. package/serialization/types/Labs.d.ts +2 -2
  1665. package/serialization/types/LastAttempt.d.ts +2 -2
  1666. package/serialization/types/LastAttempt.js +1 -1
  1667. package/serialization/types/LibreConfig.d.ts +2 -2
  1668. package/serialization/types/LinkTokenExchangeResponse.d.ts +2 -2
  1669. package/serialization/types/LngLat.d.ts +2 -2
  1670. package/serialization/types/Macros.d.ts +3 -2
  1671. package/serialization/types/Macros.js +1 -0
  1672. package/serialization/types/ManualProviders.d.ts +2 -2
  1673. package/serialization/types/MarkerType.d.ts +2 -2
  1674. package/serialization/types/MealInDbBaseClientFacingSource.d.ts +3 -2
  1675. package/serialization/types/MealInDbBaseClientFacingSource.js +4 -3
  1676. package/serialization/types/MenstrualCycle.d.ts +2 -2
  1677. package/serialization/types/MenstrualCycleResponse.d.ts +2 -2
  1678. package/serialization/types/MenstrualFlowEntry.d.ts +2 -2
  1679. package/serialization/types/MenstrualFlowEntryFlow.d.ts +2 -2
  1680. package/serialization/types/MetricsResult.d.ts +2 -2
  1681. package/serialization/types/Micros.d.ts +2 -2
  1682. package/serialization/types/Minerals.d.ts +10 -0
  1683. package/serialization/types/Minerals.js +70 -0
  1684. package/serialization/types/OAuthProviders.d.ts +2 -2
  1685. package/serialization/types/OrderSetRequest.d.ts +14 -0
  1686. package/serialization/types/OrderSetRequest.js +35 -0
  1687. package/serialization/types/OrderStatus.d.ts +2 -2
  1688. package/serialization/types/OrderTopLevelStatus.d.ts +2 -2
  1689. package/serialization/types/OvulationTestEntry.d.ts +2 -2
  1690. package/serialization/types/OvulationTestEntryTestResult.d.ts +2 -2
  1691. package/serialization/types/PaginatedUsersResponse.d.ts +2 -2
  1692. package/serialization/types/PasswordProviders.d.ts +2 -2
  1693. package/serialization/types/PatientAddressCompatible.d.ts +2 -2
  1694. package/serialization/types/PatientDetails.d.ts +2 -2
  1695. package/serialization/types/Period.d.ts +14 -0
  1696. package/serialization/types/Period.js +35 -0
  1697. package/serialization/types/PeriodUnit.d.ts +10 -0
  1698. package/serialization/types/PeriodUnit.js +31 -0
  1699. package/serialization/types/PersonDetailsOutput.d.ts +2 -2
  1700. package/serialization/types/PhlebotomyAreaInfo.d.ts +2 -2
  1701. package/serialization/types/PhlebotomyProviderInfo.d.ts +2 -2
  1702. package/serialization/types/PhysicianCreateRequest.d.ts +2 -2
  1703. package/serialization/types/PhysicianCreateRequestBase.d.ts +2 -2
  1704. package/serialization/types/PhysicianCreateRequestSignatureImage.d.ts +2 -2
  1705. package/serialization/types/Placeholder.d.ts +12 -0
  1706. package/serialization/types/Placeholder.js +33 -0
  1707. package/serialization/types/Png.d.ts +2 -2
  1708. package/serialization/types/PostOrderResponse.d.ts +2 -2
  1709. package/serialization/types/ProfileInDb.d.ts +2 -2
  1710. package/serialization/types/ProviderLinkResponse.d.ts +2 -2
  1711. package/serialization/types/ProviderLinkResponseState.d.ts +2 -2
  1712. package/serialization/types/ProviderMfaRequest.d.ts +2 -2
  1713. package/serialization/types/ProviderMfaRequestMethod.d.ts +2 -2
  1714. package/serialization/types/Providers.d.ts +3 -3
  1715. package/serialization/types/Providers.js +1 -0
  1716. package/serialization/types/PscAreaInfo.d.ts +2 -2
  1717. package/serialization/types/PscAreaInfoDetails.d.ts +2 -2
  1718. package/serialization/types/PscInfo.d.ts +2 -2
  1719. package/serialization/types/QueryConfig.d.ts +15 -0
  1720. package/serialization/types/QueryConfig.js +36 -0
  1721. package/serialization/types/QueryConfigProviderPriorityOverridesItem.d.ts +12 -0
  1722. package/serialization/types/QueryConfigProviderPriorityOverridesItem.js +33 -0
  1723. package/serialization/types/QueryConfigWeekStartsOn.d.ts +10 -0
  1724. package/serialization/types/QueryConfigWeekStartsOn.js +31 -0
  1725. package/serialization/types/QueryInstruction.d.ts +20 -0
  1726. package/serialization/types/QueryInstruction.js +41 -0
  1727. package/serialization/types/QueryInstructionPartitionBy.d.ts +12 -0
  1728. package/serialization/types/QueryInstructionPartitionBy.js +33 -0
  1729. package/serialization/types/QueryInstructionSelect.d.ts +12 -0
  1730. package/serialization/types/QueryInstructionSelect.js +33 -0
  1731. package/serialization/types/Question.d.ts +2 -2
  1732. package/serialization/types/QuestionType.d.ts +2 -2
  1733. package/serialization/types/RawActivity.d.ts +2 -2
  1734. package/serialization/types/RawBody.d.ts +2 -2
  1735. package/serialization/types/RawDevices.d.ts +2 -2
  1736. package/serialization/types/RawProfile.d.ts +2 -2
  1737. package/serialization/types/RawSleep.d.ts +2 -2
  1738. package/serialization/types/RawWorkout.d.ts +2 -2
  1739. package/serialization/types/Reducer.d.ts +13 -0
  1740. package/serialization/types/Reducer.js +34 -0
  1741. package/serialization/types/ReducerFunction.d.ts +10 -0
  1742. package/serialization/types/ReducerFunction.js +31 -0
  1743. package/serialization/types/Region.d.ts +2 -2
  1744. package/serialization/types/RelativeTimeframe.d.ts +15 -0
  1745. package/serialization/types/RelativeTimeframe.js +36 -0
  1746. package/serialization/types/ResourceAvailability.d.ts +2 -2
  1747. package/serialization/types/ResponsibleRelationship.d.ts +2 -2
  1748. package/serialization/types/ResultType.d.ts +2 -2
  1749. package/serialization/types/ScopeRequirementsGrants.d.ts +2 -2
  1750. package/serialization/types/ScopeRequirementsStr.d.ts +2 -2
  1751. package/serialization/types/SexualActivityEntry.d.ts +2 -2
  1752. package/serialization/types/ShippingAddress.d.ts +2 -2
  1753. package/serialization/types/SingleHistoricalPullStatistics.d.ts +2 -2
  1754. package/serialization/types/SingleHistoricalPullStatistics.js +2 -2
  1755. package/serialization/types/SingleProviderHistoricalPullResponse.d.ts +2 -2
  1756. package/serialization/types/SingleResourceStatistics.d.ts +2 -2
  1757. package/serialization/types/SingleResourceStatistics.js +2 -2
  1758. package/serialization/types/SingleUserHistoricalPullResponse.d.ts +2 -2
  1759. package/serialization/types/SingleUserResourceResponse.d.ts +2 -2
  1760. package/serialization/types/SleepSelector.d.ts +13 -0
  1761. package/serialization/types/SleepSelector.js +34 -0
  1762. package/serialization/types/SleepSelectorSleep.d.ts +10 -0
  1763. package/serialization/types/SleepSelectorSleep.js +56 -0
  1764. package/serialization/types/SleepSummaryState.d.ts +2 -2
  1765. package/serialization/types/SleepV2InDb.d.ts +2 -2
  1766. package/serialization/types/Source.d.ts +2 -2
  1767. package/serialization/types/SourceAuthType.d.ts +2 -2
  1768. package/serialization/types/SourceLink.d.ts +2 -2
  1769. package/serialization/types/SourceType.d.ts +2 -2
  1770. package/serialization/types/Swizzling.d.ts +16 -0
  1771. package/serialization/types/Swizzling.js +37 -0
  1772. package/serialization/types/SwizzlingBinGranularity.d.ts +10 -0
  1773. package/serialization/types/SwizzlingBinGranularity.js +31 -0
  1774. package/serialization/types/TeamConfig.d.ts +2 -2
  1775. package/serialization/types/TimeSlot.d.ts +2 -2
  1776. package/serialization/types/TimeSlot.js +3 -3
  1777. package/serialization/types/TimeseriesMetricPoint.d.ts +2 -2
  1778. package/serialization/types/TimeseriesMetricPoint.js +1 -1
  1779. package/serialization/types/TimeseriesResource.d.ts +2 -2
  1780. package/serialization/types/TraceElements.d.ts +10 -0
  1781. package/serialization/types/TraceElements.js +31 -0
  1782. package/serialization/types/UsAddress.d.ts +2 -2
  1783. package/serialization/types/UserHistoricalPullsResponse.d.ts +2 -2
  1784. package/serialization/types/UserInfo.d.ts +2 -2
  1785. package/serialization/types/UserRefreshErrorResponse.d.ts +2 -2
  1786. package/serialization/types/UserRefreshSuccessResponse.d.ts +2 -2
  1787. package/serialization/types/UserResourcesResponse.d.ts +2 -2
  1788. package/serialization/types/UserSignInTokenResponse.d.ts +2 -2
  1789. package/serialization/types/UserSuccessResponse.d.ts +2 -2
  1790. package/serialization/types/ValidationError.d.ts +2 -2
  1791. package/serialization/types/ValidationErrorLocItem.d.ts +2 -2
  1792. package/serialization/types/VitalCoreSchemasDbSchemasLabTestHealthInsurancePersonDetails.d.ts +2 -2
  1793. package/serialization/types/VitalCoreSchemasDbSchemasLabTestInsurancePersonDetails.d.ts +2 -2
  1794. package/serialization/types/VitalTokenCreatedResponse.d.ts +2 -2
  1795. package/serialization/types/Vitamins.d.ts +10 -0
  1796. package/serialization/types/Vitamins.js +45 -0
  1797. package/serialization/types/WorkoutV2InDb.d.ts +2 -2
  1798. package/serialization/types/index.d.ts +23 -0
  1799. package/serialization/types/index.js +23 -0
  1800. package/version.d.ts +1 -0
  1801. package/version.js +4 -0
  1802. package/tests/client.test.ts +0 -11
@@ -41,19 +41,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
41
41
  exports.Vitals = void 0;
42
42
  const environments = __importStar(require("../../../../environments"));
43
43
  const core = __importStar(require("../../../../core"));
44
- const Vital = __importStar(require("../../.."));
44
+ const Vital = __importStar(require("../../../index"));
45
45
  const url_join_1 = __importDefault(require("url-join"));
46
- const serializers = __importStar(require("../../../../serialization"));
47
- const errors = __importStar(require("../../../../errors"));
46
+ const serializers = __importStar(require("../../../../serialization/index"));
47
+ const errors = __importStar(require("../../../../errors/index"));
48
48
  class Vitals {
49
- constructor(_options) {
49
+ constructor(_options = {}) {
50
50
  this._options = _options;
51
51
  }
52
52
  /**
53
+ * @param {string} userId
54
+ * @param {Vital.VitalsWorkoutDurationGroupedRequest} request
55
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
56
+ *
53
57
  * @throws {@link Vital.UnprocessableEntityError}
54
58
  *
55
59
  * @example
56
- * await vital.vitals.workoutDurationGrouped("user_id", {
60
+ * await client.vitals.workoutDurationGrouped("user_id", {
57
61
  * startDate: "start_date"
58
62
  * })
59
63
  */
@@ -76,16 +80,18 @@ class Vitals {
76
80
  _queryParams["end_date"] = endDate;
77
81
  }
78
82
  const _response = yield core.fetcher({
79
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/workout_duration/grouped`),
83
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/workout_duration/grouped`),
80
84
  method: "GET",
81
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
85
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
86
  contentType: "application/json",
83
87
  queryParameters: _queryParams,
88
+ requestType: "json",
84
89
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
85
90
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
91
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
86
92
  });
87
93
  if (_response.ok) {
88
- return yield serializers.ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample.parseOrThrow(_response.body, {
94
+ return serializers.ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample.parseOrThrow(_response.body, {
89
95
  unrecognizedObjectKeys: "passthrough",
90
96
  allowUnrecognizedUnionMembers: true,
91
97
  allowUnrecognizedEnumValues: true,
@@ -95,7 +101,7 @@ class Vitals {
95
101
  if (_response.error.reason === "status-code") {
96
102
  switch (_response.error.statusCode) {
97
103
  case 422:
98
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
104
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
99
105
  unrecognizedObjectKeys: "passthrough",
100
106
  allowUnrecognizedUnionMembers: true,
101
107
  allowUnrecognizedEnumValues: true,
@@ -124,10 +130,14 @@ class Vitals {
124
130
  });
125
131
  }
126
132
  /**
133
+ * @param {string} userId
134
+ * @param {Vital.VitalsVo2MaxGroupedRequest} request
135
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
136
+ *
127
137
  * @throws {@link Vital.UnprocessableEntityError}
128
138
  *
129
139
  * @example
130
- * await vital.vitals.vo2MaxGrouped("user_id", {
140
+ * await client.vitals.vo2MaxGrouped("user_id", {
131
141
  * startDate: "start_date"
132
142
  * })
133
143
  */
@@ -150,16 +160,18 @@ class Vitals {
150
160
  _queryParams["end_date"] = endDate;
151
161
  }
152
162
  const _response = yield core.fetcher({
153
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/vo2_max/grouped`),
163
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/vo2_max/grouped`),
154
164
  method: "GET",
155
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
165
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
156
166
  contentType: "application/json",
157
167
  queryParameters: _queryParams,
168
+ requestType: "json",
158
169
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
159
170
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
171
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
160
172
  });
161
173
  if (_response.ok) {
162
- return yield serializers.GroupedVo2MaxResponse.parseOrThrow(_response.body, {
174
+ return serializers.GroupedVo2MaxResponse.parseOrThrow(_response.body, {
163
175
  unrecognizedObjectKeys: "passthrough",
164
176
  allowUnrecognizedUnionMembers: true,
165
177
  allowUnrecognizedEnumValues: true,
@@ -169,7 +181,7 @@ class Vitals {
169
181
  if (_response.error.reason === "status-code") {
170
182
  switch (_response.error.statusCode) {
171
183
  case 422:
172
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
184
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
173
185
  unrecognizedObjectKeys: "passthrough",
174
186
  allowUnrecognizedUnionMembers: true,
175
187
  allowUnrecognizedEnumValues: true,
@@ -198,10 +210,14 @@ class Vitals {
198
210
  });
199
211
  }
200
212
  /**
213
+ * @param {string} userId
214
+ * @param {Vital.VitalsStressLevelGroupedRequest} request
215
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
216
+ *
201
217
  * @throws {@link Vital.UnprocessableEntityError}
202
218
  *
203
219
  * @example
204
- * await vital.vitals.stressLevelGrouped("user_id", {
220
+ * await client.vitals.stressLevelGrouped("user_id", {
205
221
  * startDate: "start_date"
206
222
  * })
207
223
  */
@@ -224,16 +240,18 @@ class Vitals {
224
240
  _queryParams["end_date"] = endDate;
225
241
  }
226
242
  const _response = yield core.fetcher({
227
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/stress_level/grouped`),
243
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/stress_level/grouped`),
228
244
  method: "GET",
229
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
245
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
230
246
  contentType: "application/json",
231
247
  queryParameters: _queryParams,
248
+ requestType: "json",
232
249
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
233
250
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
251
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
234
252
  });
235
253
  if (_response.ok) {
236
- return yield serializers.GroupedStressLevelResponse.parseOrThrow(_response.body, {
254
+ return serializers.GroupedStressLevelResponse.parseOrThrow(_response.body, {
237
255
  unrecognizedObjectKeys: "passthrough",
238
256
  allowUnrecognizedUnionMembers: true,
239
257
  allowUnrecognizedEnumValues: true,
@@ -243,7 +261,7 @@ class Vitals {
243
261
  if (_response.error.reason === "status-code") {
244
262
  switch (_response.error.statusCode) {
245
263
  case 422:
246
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
264
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
247
265
  unrecognizedObjectKeys: "passthrough",
248
266
  allowUnrecognizedUnionMembers: true,
249
267
  allowUnrecognizedEnumValues: true,
@@ -272,10 +290,14 @@ class Vitals {
272
290
  });
273
291
  }
274
292
  /**
293
+ * @param {string} userId
294
+ * @param {Vital.VitalsMindfulnessMinutesGroupedRequest} request
295
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
296
+ *
275
297
  * @throws {@link Vital.UnprocessableEntityError}
276
298
  *
277
299
  * @example
278
- * await vital.vitals.mindfulnessMinutesGrouped("user_id", {
300
+ * await client.vitals.mindfulnessMinutesGrouped("user_id", {
279
301
  * startDate: "start_date"
280
302
  * })
281
303
  */
@@ -298,16 +320,18 @@ class Vitals {
298
320
  _queryParams["end_date"] = endDate;
299
321
  }
300
322
  const _response = yield core.fetcher({
301
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/mindfulness_minutes/grouped`),
323
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/mindfulness_minutes/grouped`),
302
324
  method: "GET",
303
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
325
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
304
326
  contentType: "application/json",
305
327
  queryParameters: _queryParams,
328
+ requestType: "json",
306
329
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
307
330
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
331
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
308
332
  });
309
333
  if (_response.ok) {
310
- return yield serializers.GroupedMindfulnessMinutesResponse.parseOrThrow(_response.body, {
334
+ return serializers.GroupedMindfulnessMinutesResponse.parseOrThrow(_response.body, {
311
335
  unrecognizedObjectKeys: "passthrough",
312
336
  allowUnrecognizedUnionMembers: true,
313
337
  allowUnrecognizedEnumValues: true,
@@ -317,7 +341,7 @@ class Vitals {
317
341
  if (_response.error.reason === "status-code") {
318
342
  switch (_response.error.statusCode) {
319
343
  case 422:
320
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
344
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
321
345
  unrecognizedObjectKeys: "passthrough",
322
346
  allowUnrecognizedUnionMembers: true,
323
347
  allowUnrecognizedEnumValues: true,
@@ -346,10 +370,14 @@ class Vitals {
346
370
  });
347
371
  }
348
372
  /**
373
+ * @param {string} userId
374
+ * @param {Vital.VitalsCaffeineGroupedRequest} request
375
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
376
+ *
349
377
  * @throws {@link Vital.UnprocessableEntityError}
350
378
  *
351
379
  * @example
352
- * await vital.vitals.caffeineGrouped("user_id", {
380
+ * await client.vitals.caffeineGrouped("user_id", {
353
381
  * startDate: "start_date"
354
382
  * })
355
383
  */
@@ -372,16 +400,18 @@ class Vitals {
372
400
  _queryParams["end_date"] = endDate;
373
401
  }
374
402
  const _response = yield core.fetcher({
375
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/caffeine/grouped`),
403
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/caffeine/grouped`),
376
404
  method: "GET",
377
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
405
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
378
406
  contentType: "application/json",
379
407
  queryParameters: _queryParams,
408
+ requestType: "json",
380
409
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
381
410
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
411
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
382
412
  });
383
413
  if (_response.ok) {
384
- return yield serializers.GroupedCaffeineResponse.parseOrThrow(_response.body, {
414
+ return serializers.GroupedCaffeineResponse.parseOrThrow(_response.body, {
385
415
  unrecognizedObjectKeys: "passthrough",
386
416
  allowUnrecognizedUnionMembers: true,
387
417
  allowUnrecognizedEnumValues: true,
@@ -391,7 +421,7 @@ class Vitals {
391
421
  if (_response.error.reason === "status-code") {
392
422
  switch (_response.error.statusCode) {
393
423
  case 422:
394
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
424
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
395
425
  unrecognizedObjectKeys: "passthrough",
396
426
  allowUnrecognizedUnionMembers: true,
397
427
  allowUnrecognizedEnumValues: true,
@@ -420,10 +450,14 @@ class Vitals {
420
450
  });
421
451
  }
422
452
  /**
453
+ * @param {string} userId
454
+ * @param {Vital.VitalsWaterGroupedRequest} request
455
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
456
+ *
423
457
  * @throws {@link Vital.UnprocessableEntityError}
424
458
  *
425
459
  * @example
426
- * await vital.vitals.waterGrouped("user_id", {
460
+ * await client.vitals.waterGrouped("user_id", {
427
461
  * startDate: "start_date"
428
462
  * })
429
463
  */
@@ -446,16 +480,18 @@ class Vitals {
446
480
  _queryParams["end_date"] = endDate;
447
481
  }
448
482
  const _response = yield core.fetcher({
449
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/water/grouped`),
483
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/water/grouped`),
450
484
  method: "GET",
451
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
485
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
452
486
  contentType: "application/json",
453
487
  queryParameters: _queryParams,
488
+ requestType: "json",
454
489
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
455
490
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
491
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
456
492
  });
457
493
  if (_response.ok) {
458
- return yield serializers.GroupedWaterResponse.parseOrThrow(_response.body, {
494
+ return serializers.GroupedWaterResponse.parseOrThrow(_response.body, {
459
495
  unrecognizedObjectKeys: "passthrough",
460
496
  allowUnrecognizedUnionMembers: true,
461
497
  allowUnrecognizedEnumValues: true,
@@ -465,7 +501,7 @@ class Vitals {
465
501
  if (_response.error.reason === "status-code") {
466
502
  switch (_response.error.statusCode) {
467
503
  case 422:
468
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
504
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
469
505
  unrecognizedObjectKeys: "passthrough",
470
506
  allowUnrecognizedUnionMembers: true,
471
507
  allowUnrecognizedEnumValues: true,
@@ -494,10 +530,14 @@ class Vitals {
494
530
  });
495
531
  }
496
532
  /**
533
+ * @param {string} userId
534
+ * @param {Vital.VitalsStepsGroupedRequest} request
535
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
536
+ *
497
537
  * @throws {@link Vital.UnprocessableEntityError}
498
538
  *
499
539
  * @example
500
- * await vital.vitals.stepsGrouped("user_id", {
540
+ * await client.vitals.stepsGrouped("user_id", {
501
541
  * startDate: "start_date"
502
542
  * })
503
543
  */
@@ -520,16 +560,18 @@ class Vitals {
520
560
  _queryParams["end_date"] = endDate;
521
561
  }
522
562
  const _response = yield core.fetcher({
523
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/steps/grouped`),
563
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/steps/grouped`),
524
564
  method: "GET",
525
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
565
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
526
566
  contentType: "application/json",
527
567
  queryParameters: _queryParams,
568
+ requestType: "json",
528
569
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
529
570
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
571
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
530
572
  });
531
573
  if (_response.ok) {
532
- return yield serializers.GroupedStepsResponse.parseOrThrow(_response.body, {
574
+ return serializers.GroupedStepsResponse.parseOrThrow(_response.body, {
533
575
  unrecognizedObjectKeys: "passthrough",
534
576
  allowUnrecognizedUnionMembers: true,
535
577
  allowUnrecognizedEnumValues: true,
@@ -539,7 +581,7 @@ class Vitals {
539
581
  if (_response.error.reason === "status-code") {
540
582
  switch (_response.error.statusCode) {
541
583
  case 422:
542
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
584
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
543
585
  unrecognizedObjectKeys: "passthrough",
544
586
  allowUnrecognizedUnionMembers: true,
545
587
  allowUnrecognizedEnumValues: true,
@@ -568,10 +610,14 @@ class Vitals {
568
610
  });
569
611
  }
570
612
  /**
613
+ * @param {string} userId
614
+ * @param {Vital.VitalsFloorsClimbedGroupedRequest} request
615
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
616
+ *
571
617
  * @throws {@link Vital.UnprocessableEntityError}
572
618
  *
573
619
  * @example
574
- * await vital.vitals.floorsClimbedGrouped("user_id", {
620
+ * await client.vitals.floorsClimbedGrouped("user_id", {
575
621
  * startDate: "start_date"
576
622
  * })
577
623
  */
@@ -594,16 +640,18 @@ class Vitals {
594
640
  _queryParams["end_date"] = endDate;
595
641
  }
596
642
  const _response = yield core.fetcher({
597
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/floors_climbed/grouped`),
643
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/floors_climbed/grouped`),
598
644
  method: "GET",
599
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
645
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
600
646
  contentType: "application/json",
601
647
  queryParameters: _queryParams,
648
+ requestType: "json",
602
649
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
603
650
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
651
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
604
652
  });
605
653
  if (_response.ok) {
606
- return yield serializers.GroupedFloorsClimbedResponse.parseOrThrow(_response.body, {
654
+ return serializers.GroupedFloorsClimbedResponse.parseOrThrow(_response.body, {
607
655
  unrecognizedObjectKeys: "passthrough",
608
656
  allowUnrecognizedUnionMembers: true,
609
657
  allowUnrecognizedEnumValues: true,
@@ -613,7 +661,7 @@ class Vitals {
613
661
  if (_response.error.reason === "status-code") {
614
662
  switch (_response.error.statusCode) {
615
663
  case 422:
616
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
664
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
617
665
  unrecognizedObjectKeys: "passthrough",
618
666
  allowUnrecognizedUnionMembers: true,
619
667
  allowUnrecognizedEnumValues: true,
@@ -642,10 +690,14 @@ class Vitals {
642
690
  });
643
691
  }
644
692
  /**
693
+ * @param {string} userId
694
+ * @param {Vital.VitalsDistanceGroupedRequest} request
695
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
696
+ *
645
697
  * @throws {@link Vital.UnprocessableEntityError}
646
698
  *
647
699
  * @example
648
- * await vital.vitals.distanceGrouped("user_id", {
700
+ * await client.vitals.distanceGrouped("user_id", {
649
701
  * startDate: "start_date"
650
702
  * })
651
703
  */
@@ -668,16 +720,18 @@ class Vitals {
668
720
  _queryParams["end_date"] = endDate;
669
721
  }
670
722
  const _response = yield core.fetcher({
671
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/distance/grouped`),
723
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/distance/grouped`),
672
724
  method: "GET",
673
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
725
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
674
726
  contentType: "application/json",
675
727
  queryParameters: _queryParams,
728
+ requestType: "json",
676
729
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
677
730
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
731
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
678
732
  });
679
733
  if (_response.ok) {
680
- return yield serializers.GroupedDistanceResponse.parseOrThrow(_response.body, {
734
+ return serializers.GroupedDistanceResponse.parseOrThrow(_response.body, {
681
735
  unrecognizedObjectKeys: "passthrough",
682
736
  allowUnrecognizedUnionMembers: true,
683
737
  allowUnrecognizedEnumValues: true,
@@ -687,7 +741,7 @@ class Vitals {
687
741
  if (_response.error.reason === "status-code") {
688
742
  switch (_response.error.statusCode) {
689
743
  case 422:
690
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
744
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
691
745
  unrecognizedObjectKeys: "passthrough",
692
746
  allowUnrecognizedUnionMembers: true,
693
747
  allowUnrecognizedEnumValues: true,
@@ -716,10 +770,14 @@ class Vitals {
716
770
  });
717
771
  }
718
772
  /**
773
+ * @param {string} userId
774
+ * @param {Vital.VitalsCaloriesBasalGroupedRequest} request
775
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
776
+ *
719
777
  * @throws {@link Vital.UnprocessableEntityError}
720
778
  *
721
779
  * @example
722
- * await vital.vitals.caloriesBasalGrouped("user_id", {
780
+ * await client.vitals.caloriesBasalGrouped("user_id", {
723
781
  * startDate: "start_date"
724
782
  * })
725
783
  */
@@ -742,16 +800,18 @@ class Vitals {
742
800
  _queryParams["end_date"] = endDate;
743
801
  }
744
802
  const _response = yield core.fetcher({
745
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/calories_basal/grouped`),
803
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/calories_basal/grouped`),
746
804
  method: "GET",
747
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
805
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
748
806
  contentType: "application/json",
749
807
  queryParameters: _queryParams,
808
+ requestType: "json",
750
809
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
751
810
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
811
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
752
812
  });
753
813
  if (_response.ok) {
754
- return yield serializers.GroupedCaloriesBasalResponse.parseOrThrow(_response.body, {
814
+ return serializers.GroupedCaloriesBasalResponse.parseOrThrow(_response.body, {
755
815
  unrecognizedObjectKeys: "passthrough",
756
816
  allowUnrecognizedUnionMembers: true,
757
817
  allowUnrecognizedEnumValues: true,
@@ -761,7 +821,7 @@ class Vitals {
761
821
  if (_response.error.reason === "status-code") {
762
822
  switch (_response.error.statusCode) {
763
823
  case 422:
764
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
824
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
765
825
  unrecognizedObjectKeys: "passthrough",
766
826
  allowUnrecognizedUnionMembers: true,
767
827
  allowUnrecognizedEnumValues: true,
@@ -790,10 +850,14 @@ class Vitals {
790
850
  });
791
851
  }
792
852
  /**
853
+ * @param {string} userId
854
+ * @param {Vital.VitalsCaloriesActiveGroupedRequest} request
855
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
856
+ *
793
857
  * @throws {@link Vital.UnprocessableEntityError}
794
858
  *
795
859
  * @example
796
- * await vital.vitals.caloriesActiveGrouped("user_id", {
860
+ * await client.vitals.caloriesActiveGrouped("user_id", {
797
861
  * startDate: "start_date"
798
862
  * })
799
863
  */
@@ -816,16 +880,18 @@ class Vitals {
816
880
  _queryParams["end_date"] = endDate;
817
881
  }
818
882
  const _response = yield core.fetcher({
819
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/calories_active/grouped`),
883
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/calories_active/grouped`),
820
884
  method: "GET",
821
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
885
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
822
886
  contentType: "application/json",
823
887
  queryParameters: _queryParams,
888
+ requestType: "json",
824
889
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
825
890
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
891
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
826
892
  });
827
893
  if (_response.ok) {
828
- return yield serializers.GroupedCaloriesActiveResponse.parseOrThrow(_response.body, {
894
+ return serializers.GroupedCaloriesActiveResponse.parseOrThrow(_response.body, {
829
895
  unrecognizedObjectKeys: "passthrough",
830
896
  allowUnrecognizedUnionMembers: true,
831
897
  allowUnrecognizedEnumValues: true,
@@ -835,7 +901,7 @@ class Vitals {
835
901
  if (_response.error.reason === "status-code") {
836
902
  switch (_response.error.statusCode) {
837
903
  case 422:
838
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
904
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
839
905
  unrecognizedObjectKeys: "passthrough",
840
906
  allowUnrecognizedUnionMembers: true,
841
907
  allowUnrecognizedEnumValues: true,
@@ -864,10 +930,14 @@ class Vitals {
864
930
  });
865
931
  }
866
932
  /**
933
+ * @param {string} userId
934
+ * @param {Vital.VitalsRespiratoryRateGroupedRequest} request
935
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
936
+ *
867
937
  * @throws {@link Vital.UnprocessableEntityError}
868
938
  *
869
939
  * @example
870
- * await vital.vitals.respiratoryRateGrouped("user_id", {
940
+ * await client.vitals.respiratoryRateGrouped("user_id", {
871
941
  * startDate: "start_date"
872
942
  * })
873
943
  */
@@ -890,16 +960,18 @@ class Vitals {
890
960
  _queryParams["end_date"] = endDate;
891
961
  }
892
962
  const _response = yield core.fetcher({
893
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/respiratory_rate/grouped`),
963
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/respiratory_rate/grouped`),
894
964
  method: "GET",
895
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
965
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
896
966
  contentType: "application/json",
897
967
  queryParameters: _queryParams,
968
+ requestType: "json",
898
969
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
899
970
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
971
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
900
972
  });
901
973
  if (_response.ok) {
902
- return yield serializers.GroupedRespiratoryRateResponse.parseOrThrow(_response.body, {
974
+ return serializers.GroupedRespiratoryRateResponse.parseOrThrow(_response.body, {
903
975
  unrecognizedObjectKeys: "passthrough",
904
976
  allowUnrecognizedUnionMembers: true,
905
977
  allowUnrecognizedEnumValues: true,
@@ -909,7 +981,7 @@ class Vitals {
909
981
  if (_response.error.reason === "status-code") {
910
982
  switch (_response.error.statusCode) {
911
983
  case 422:
912
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
984
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
913
985
  unrecognizedObjectKeys: "passthrough",
914
986
  allowUnrecognizedUnionMembers: true,
915
987
  allowUnrecognizedEnumValues: true,
@@ -938,10 +1010,14 @@ class Vitals {
938
1010
  });
939
1011
  }
940
1012
  /**
1013
+ * @param {string} userId
1014
+ * @param {Vital.VitalsNoteGroupedRequest} request
1015
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
1016
+ *
941
1017
  * @throws {@link Vital.UnprocessableEntityError}
942
1018
  *
943
1019
  * @example
944
- * await vital.vitals.noteGrouped("user_id", {
1020
+ * await client.vitals.noteGrouped("user_id", {
945
1021
  * startDate: "start_date"
946
1022
  * })
947
1023
  */
@@ -964,16 +1040,18 @@ class Vitals {
964
1040
  _queryParams["end_date"] = endDate;
965
1041
  }
966
1042
  const _response = yield core.fetcher({
967
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/note/grouped`),
1043
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/note/grouped`),
968
1044
  method: "GET",
969
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1045
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
970
1046
  contentType: "application/json",
971
1047
  queryParameters: _queryParams,
1048
+ requestType: "json",
972
1049
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
973
1050
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1051
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
974
1052
  });
975
1053
  if (_response.ok) {
976
- return yield serializers.ClientFacingGroupedTimeseriesResponseClientFacingNoteSample.parseOrThrow(_response.body, {
1054
+ return serializers.ClientFacingGroupedTimeseriesResponseClientFacingNoteSample.parseOrThrow(_response.body, {
977
1055
  unrecognizedObjectKeys: "passthrough",
978
1056
  allowUnrecognizedUnionMembers: true,
979
1057
  allowUnrecognizedEnumValues: true,
@@ -983,7 +1061,7 @@ class Vitals {
983
1061
  if (_response.error.reason === "status-code") {
984
1062
  switch (_response.error.statusCode) {
985
1063
  case 422:
986
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1064
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
987
1065
  unrecognizedObjectKeys: "passthrough",
988
1066
  allowUnrecognizedUnionMembers: true,
989
1067
  allowUnrecognizedEnumValues: true,
@@ -1012,10 +1090,14 @@ class Vitals {
1012
1090
  });
1013
1091
  }
1014
1092
  /**
1093
+ * @param {string} userId
1094
+ * @param {Vital.VitalsInsulinInjectionGroupedRequest} request
1095
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
1096
+ *
1015
1097
  * @throws {@link Vital.UnprocessableEntityError}
1016
1098
  *
1017
1099
  * @example
1018
- * await vital.vitals.insulinInjectionGrouped("user_id", {
1100
+ * await client.vitals.insulinInjectionGrouped("user_id", {
1019
1101
  * startDate: "start_date"
1020
1102
  * })
1021
1103
  */
@@ -1038,16 +1120,18 @@ class Vitals {
1038
1120
  _queryParams["end_date"] = endDate;
1039
1121
  }
1040
1122
  const _response = yield core.fetcher({
1041
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/insulin_injection/grouped`),
1123
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/insulin_injection/grouped`),
1042
1124
  method: "GET",
1043
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1125
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1044
1126
  contentType: "application/json",
1045
1127
  queryParameters: _queryParams,
1128
+ requestType: "json",
1046
1129
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1047
1130
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1131
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1048
1132
  });
1049
1133
  if (_response.ok) {
1050
- return yield serializers.ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample.parseOrThrow(_response.body, {
1134
+ return serializers.ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample.parseOrThrow(_response.body, {
1051
1135
  unrecognizedObjectKeys: "passthrough",
1052
1136
  allowUnrecognizedUnionMembers: true,
1053
1137
  allowUnrecognizedEnumValues: true,
@@ -1057,7 +1141,7 @@ class Vitals {
1057
1141
  if (_response.error.reason === "status-code") {
1058
1142
  switch (_response.error.statusCode) {
1059
1143
  case 422:
1060
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1144
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1061
1145
  unrecognizedObjectKeys: "passthrough",
1062
1146
  allowUnrecognizedUnionMembers: true,
1063
1147
  allowUnrecognizedEnumValues: true,
@@ -1086,10 +1170,14 @@ class Vitals {
1086
1170
  });
1087
1171
  }
1088
1172
  /**
1173
+ * @param {string} userId
1174
+ * @param {Vital.VitalsIgeGroupedRequest} request
1175
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
1176
+ *
1089
1177
  * @throws {@link Vital.UnprocessableEntityError}
1090
1178
  *
1091
1179
  * @example
1092
- * await vital.vitals.igeGrouped("user_id", {
1180
+ * await client.vitals.igeGrouped("user_id", {
1093
1181
  * startDate: "start_date"
1094
1182
  * })
1095
1183
  */
@@ -1112,16 +1200,18 @@ class Vitals {
1112
1200
  _queryParams["end_date"] = endDate;
1113
1201
  }
1114
1202
  const _response = yield core.fetcher({
1115
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/ige/grouped`),
1203
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/ige/grouped`),
1116
1204
  method: "GET",
1117
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1205
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1118
1206
  contentType: "application/json",
1119
1207
  queryParameters: _queryParams,
1208
+ requestType: "json",
1120
1209
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1121
1210
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1211
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1122
1212
  });
1123
1213
  if (_response.ok) {
1124
- return yield serializers.GroupedIgeResponse.parseOrThrow(_response.body, {
1214
+ return serializers.GroupedIgeResponse.parseOrThrow(_response.body, {
1125
1215
  unrecognizedObjectKeys: "passthrough",
1126
1216
  allowUnrecognizedUnionMembers: true,
1127
1217
  allowUnrecognizedEnumValues: true,
@@ -1131,7 +1221,7 @@ class Vitals {
1131
1221
  if (_response.error.reason === "status-code") {
1132
1222
  switch (_response.error.statusCode) {
1133
1223
  case 422:
1134
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1224
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1135
1225
  unrecognizedObjectKeys: "passthrough",
1136
1226
  allowUnrecognizedUnionMembers: true,
1137
1227
  allowUnrecognizedEnumValues: true,
@@ -1160,10 +1250,14 @@ class Vitals {
1160
1250
  });
1161
1251
  }
1162
1252
  /**
1253
+ * @param {string} userId
1254
+ * @param {Vital.VitalsIggGroupedRequest} request
1255
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
1256
+ *
1163
1257
  * @throws {@link Vital.UnprocessableEntityError}
1164
1258
  *
1165
1259
  * @example
1166
- * await vital.vitals.iggGrouped("user_id", {
1260
+ * await client.vitals.iggGrouped("user_id", {
1167
1261
  * startDate: "start_date"
1168
1262
  * })
1169
1263
  */
@@ -1186,16 +1280,18 @@ class Vitals {
1186
1280
  _queryParams["end_date"] = endDate;
1187
1281
  }
1188
1282
  const _response = yield core.fetcher({
1189
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/igg/grouped`),
1283
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/igg/grouped`),
1190
1284
  method: "GET",
1191
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1285
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1192
1286
  contentType: "application/json",
1193
1287
  queryParameters: _queryParams,
1288
+ requestType: "json",
1194
1289
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1195
1290
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1291
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1196
1292
  });
1197
1293
  if (_response.ok) {
1198
- return yield serializers.GroupedIggResponse.parseOrThrow(_response.body, {
1294
+ return serializers.GroupedIggResponse.parseOrThrow(_response.body, {
1199
1295
  unrecognizedObjectKeys: "passthrough",
1200
1296
  allowUnrecognizedUnionMembers: true,
1201
1297
  allowUnrecognizedEnumValues: true,
@@ -1205,7 +1301,7 @@ class Vitals {
1205
1301
  if (_response.error.reason === "status-code") {
1206
1302
  switch (_response.error.statusCode) {
1207
1303
  case 422:
1208
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1304
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1209
1305
  unrecognizedObjectKeys: "passthrough",
1210
1306
  allowUnrecognizedUnionMembers: true,
1211
1307
  allowUnrecognizedEnumValues: true,
@@ -1234,10 +1330,14 @@ class Vitals {
1234
1330
  });
1235
1331
  }
1236
1332
  /**
1333
+ * @param {string} userId
1334
+ * @param {Vital.VitalsHypnogramGroupedRequest} request
1335
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
1336
+ *
1237
1337
  * @throws {@link Vital.UnprocessableEntityError}
1238
1338
  *
1239
1339
  * @example
1240
- * await vital.vitals.hypnogramGrouped("user_id", {
1340
+ * await client.vitals.hypnogramGrouped("user_id", {
1241
1341
  * startDate: "start_date"
1242
1342
  * })
1243
1343
  */
@@ -1260,16 +1360,18 @@ class Vitals {
1260
1360
  _queryParams["end_date"] = endDate;
1261
1361
  }
1262
1362
  const _response = yield core.fetcher({
1263
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/hypnogram/grouped`),
1363
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/hypnogram/grouped`),
1264
1364
  method: "GET",
1265
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1365
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1266
1366
  contentType: "application/json",
1267
1367
  queryParameters: _queryParams,
1368
+ requestType: "json",
1268
1369
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1269
1370
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1371
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1270
1372
  });
1271
1373
  if (_response.ok) {
1272
- return yield serializers.GroupedHypnogramResponse.parseOrThrow(_response.body, {
1374
+ return serializers.GroupedHypnogramResponse.parseOrThrow(_response.body, {
1273
1375
  unrecognizedObjectKeys: "passthrough",
1274
1376
  allowUnrecognizedUnionMembers: true,
1275
1377
  allowUnrecognizedEnumValues: true,
@@ -1279,7 +1381,7 @@ class Vitals {
1279
1381
  if (_response.error.reason === "status-code") {
1280
1382
  switch (_response.error.statusCode) {
1281
1383
  case 422:
1282
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1384
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1283
1385
  unrecognizedObjectKeys: "passthrough",
1284
1386
  allowUnrecognizedUnionMembers: true,
1285
1387
  allowUnrecognizedEnumValues: true,
@@ -1308,10 +1410,14 @@ class Vitals {
1308
1410
  });
1309
1411
  }
1310
1412
  /**
1413
+ * @param {string} userId
1414
+ * @param {Vital.VitalsHrvGroupedRequest} request
1415
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
1416
+ *
1311
1417
  * @throws {@link Vital.UnprocessableEntityError}
1312
1418
  *
1313
1419
  * @example
1314
- * await vital.vitals.hrvGrouped("user_id", {
1420
+ * await client.vitals.hrvGrouped("user_id", {
1315
1421
  * startDate: "start_date"
1316
1422
  * })
1317
1423
  */
@@ -1334,16 +1440,18 @@ class Vitals {
1334
1440
  _queryParams["end_date"] = endDate;
1335
1441
  }
1336
1442
  const _response = yield core.fetcher({
1337
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/hrv/grouped`),
1443
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/hrv/grouped`),
1338
1444
  method: "GET",
1339
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1445
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1340
1446
  contentType: "application/json",
1341
1447
  queryParameters: _queryParams,
1448
+ requestType: "json",
1342
1449
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1343
1450
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1451
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1344
1452
  });
1345
1453
  if (_response.ok) {
1346
- return yield serializers.GroupedHrvResponse.parseOrThrow(_response.body, {
1454
+ return serializers.GroupedHrvResponse.parseOrThrow(_response.body, {
1347
1455
  unrecognizedObjectKeys: "passthrough",
1348
1456
  allowUnrecognizedUnionMembers: true,
1349
1457
  allowUnrecognizedEnumValues: true,
@@ -1353,7 +1461,7 @@ class Vitals {
1353
1461
  if (_response.error.reason === "status-code") {
1354
1462
  switch (_response.error.statusCode) {
1355
1463
  case 422:
1356
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1464
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1357
1465
  unrecognizedObjectKeys: "passthrough",
1358
1466
  allowUnrecognizedUnionMembers: true,
1359
1467
  allowUnrecognizedEnumValues: true,
@@ -1382,10 +1490,14 @@ class Vitals {
1382
1490
  });
1383
1491
  }
1384
1492
  /**
1493
+ * @param {string} userId
1494
+ * @param {Vital.VitalsHeartrateGroupedRequest} request
1495
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
1496
+ *
1385
1497
  * @throws {@link Vital.UnprocessableEntityError}
1386
1498
  *
1387
1499
  * @example
1388
- * await vital.vitals.heartrateGrouped("user_id", {
1500
+ * await client.vitals.heartrateGrouped("user_id", {
1389
1501
  * startDate: "start_date"
1390
1502
  * })
1391
1503
  */
@@ -1408,16 +1520,18 @@ class Vitals {
1408
1520
  _queryParams["end_date"] = endDate;
1409
1521
  }
1410
1522
  const _response = yield core.fetcher({
1411
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/heartrate/grouped`),
1523
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/heartrate/grouped`),
1412
1524
  method: "GET",
1413
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1525
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1414
1526
  contentType: "application/json",
1415
1527
  queryParameters: _queryParams,
1528
+ requestType: "json",
1416
1529
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1417
1530
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1531
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1418
1532
  });
1419
1533
  if (_response.ok) {
1420
- return yield serializers.GroupedHeartRateResponse.parseOrThrow(_response.body, {
1534
+ return serializers.GroupedHeartRateResponse.parseOrThrow(_response.body, {
1421
1535
  unrecognizedObjectKeys: "passthrough",
1422
1536
  allowUnrecognizedUnionMembers: true,
1423
1537
  allowUnrecognizedEnumValues: true,
@@ -1427,7 +1541,7 @@ class Vitals {
1427
1541
  if (_response.error.reason === "status-code") {
1428
1542
  switch (_response.error.statusCode) {
1429
1543
  case 422:
1430
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1544
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1431
1545
  unrecognizedObjectKeys: "passthrough",
1432
1546
  allowUnrecognizedUnionMembers: true,
1433
1547
  allowUnrecognizedEnumValues: true,
@@ -1456,10 +1570,14 @@ class Vitals {
1456
1570
  });
1457
1571
  }
1458
1572
  /**
1573
+ * @param {string} userId
1574
+ * @param {Vital.VitalsGlucoseGroupedRequest} request
1575
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
1576
+ *
1459
1577
  * @throws {@link Vital.UnprocessableEntityError}
1460
1578
  *
1461
1579
  * @example
1462
- * await vital.vitals.glucoseGrouped("user_id", {
1580
+ * await client.vitals.glucoseGrouped("user_id", {
1463
1581
  * startDate: "start_date"
1464
1582
  * })
1465
1583
  */
@@ -1482,16 +1600,18 @@ class Vitals {
1482
1600
  _queryParams["end_date"] = endDate;
1483
1601
  }
1484
1602
  const _response = yield core.fetcher({
1485
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/glucose/grouped`),
1603
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/glucose/grouped`),
1486
1604
  method: "GET",
1487
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1605
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1488
1606
  contentType: "application/json",
1489
1607
  queryParameters: _queryParams,
1608
+ requestType: "json",
1490
1609
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1491
1610
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1611
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1492
1612
  });
1493
1613
  if (_response.ok) {
1494
- return yield serializers.GroupedGlucoseResponse.parseOrThrow(_response.body, {
1614
+ return serializers.GroupedGlucoseResponse.parseOrThrow(_response.body, {
1495
1615
  unrecognizedObjectKeys: "passthrough",
1496
1616
  allowUnrecognizedUnionMembers: true,
1497
1617
  allowUnrecognizedEnumValues: true,
@@ -1501,7 +1621,7 @@ class Vitals {
1501
1621
  if (_response.error.reason === "status-code") {
1502
1622
  switch (_response.error.statusCode) {
1503
1623
  case 422:
1504
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1624
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1505
1625
  unrecognizedObjectKeys: "passthrough",
1506
1626
  allowUnrecognizedUnionMembers: true,
1507
1627
  allowUnrecognizedEnumValues: true,
@@ -1530,10 +1650,14 @@ class Vitals {
1530
1650
  });
1531
1651
  }
1532
1652
  /**
1653
+ * @param {string} userId
1654
+ * @param {Vital.VitalsCholesterolGroupedRequest} request
1655
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
1656
+ *
1533
1657
  * @throws {@link Vital.UnprocessableEntityError}
1534
1658
  *
1535
1659
  * @example
1536
- * await vital.vitals.cholesterolGrouped("user_id", {
1660
+ * await client.vitals.cholesterolGrouped("user_id", {
1537
1661
  * startDate: "start_date"
1538
1662
  * })
1539
1663
  */
@@ -1556,16 +1680,18 @@ class Vitals {
1556
1680
  _queryParams["end_date"] = endDate;
1557
1681
  }
1558
1682
  const _response = yield core.fetcher({
1559
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/cholesterol/grouped`),
1683
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/cholesterol/grouped`),
1560
1684
  method: "GET",
1561
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1685
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1562
1686
  contentType: "application/json",
1563
1687
  queryParameters: _queryParams,
1688
+ requestType: "json",
1564
1689
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1565
1690
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1691
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1566
1692
  });
1567
1693
  if (_response.ok) {
1568
- return yield serializers.GroupedCholesterolResponse.parseOrThrow(_response.body, {
1694
+ return serializers.GroupedCholesterolResponse.parseOrThrow(_response.body, {
1569
1695
  unrecognizedObjectKeys: "passthrough",
1570
1696
  allowUnrecognizedUnionMembers: true,
1571
1697
  allowUnrecognizedEnumValues: true,
@@ -1575,7 +1701,7 @@ class Vitals {
1575
1701
  if (_response.error.reason === "status-code") {
1576
1702
  switch (_response.error.statusCode) {
1577
1703
  case 422:
1578
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1704
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1579
1705
  unrecognizedObjectKeys: "passthrough",
1580
1706
  allowUnrecognizedUnionMembers: true,
1581
1707
  allowUnrecognizedEnumValues: true,
@@ -1604,10 +1730,14 @@ class Vitals {
1604
1730
  });
1605
1731
  }
1606
1732
  /**
1733
+ * @param {string} userId
1734
+ * @param {Vital.VitalsCarbohydratesGroupedRequest} request
1735
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
1736
+ *
1607
1737
  * @throws {@link Vital.UnprocessableEntityError}
1608
1738
  *
1609
1739
  * @example
1610
- * await vital.vitals.carbohydratesGrouped("user_id", {
1740
+ * await client.vitals.carbohydratesGrouped("user_id", {
1611
1741
  * startDate: "start_date"
1612
1742
  * })
1613
1743
  */
@@ -1630,16 +1760,18 @@ class Vitals {
1630
1760
  _queryParams["end_date"] = endDate;
1631
1761
  }
1632
1762
  const _response = yield core.fetcher({
1633
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/carbohydrates/grouped`),
1763
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/carbohydrates/grouped`),
1634
1764
  method: "GET",
1635
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1765
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1636
1766
  contentType: "application/json",
1637
1767
  queryParameters: _queryParams,
1768
+ requestType: "json",
1638
1769
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1639
1770
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1771
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1640
1772
  });
1641
1773
  if (_response.ok) {
1642
- return yield serializers.ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample.parseOrThrow(_response.body, {
1774
+ return serializers.ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample.parseOrThrow(_response.body, {
1643
1775
  unrecognizedObjectKeys: "passthrough",
1644
1776
  allowUnrecognizedUnionMembers: true,
1645
1777
  allowUnrecognizedEnumValues: true,
@@ -1649,7 +1781,7 @@ class Vitals {
1649
1781
  if (_response.error.reason === "status-code") {
1650
1782
  switch (_response.error.statusCode) {
1651
1783
  case 422:
1652
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1784
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1653
1785
  unrecognizedObjectKeys: "passthrough",
1654
1786
  allowUnrecognizedUnionMembers: true,
1655
1787
  allowUnrecognizedEnumValues: true,
@@ -1678,10 +1810,14 @@ class Vitals {
1678
1810
  });
1679
1811
  }
1680
1812
  /**
1813
+ * @param {string} userId
1814
+ * @param {Vital.VitalsBodyTemperatureDeltaGroupedRequest} request
1815
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
1816
+ *
1681
1817
  * @throws {@link Vital.UnprocessableEntityError}
1682
1818
  *
1683
1819
  * @example
1684
- * await vital.vitals.bodyTemperatureDeltaGrouped("user_id", {
1820
+ * await client.vitals.bodyTemperatureDeltaGrouped("user_id", {
1685
1821
  * startDate: "start_date"
1686
1822
  * })
1687
1823
  */
@@ -1704,16 +1840,18 @@ class Vitals {
1704
1840
  _queryParams["end_date"] = endDate;
1705
1841
  }
1706
1842
  const _response = yield core.fetcher({
1707
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/body_temperature_delta/grouped`),
1843
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/body_temperature_delta/grouped`),
1708
1844
  method: "GET",
1709
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1845
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1710
1846
  contentType: "application/json",
1711
1847
  queryParameters: _queryParams,
1848
+ requestType: "json",
1712
1849
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1713
1850
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1851
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1714
1852
  });
1715
1853
  if (_response.ok) {
1716
- return yield serializers.ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.parseOrThrow(_response.body, {
1854
+ return serializers.ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.parseOrThrow(_response.body, {
1717
1855
  unrecognizedObjectKeys: "passthrough",
1718
1856
  allowUnrecognizedUnionMembers: true,
1719
1857
  allowUnrecognizedEnumValues: true,
@@ -1723,7 +1861,7 @@ class Vitals {
1723
1861
  if (_response.error.reason === "status-code") {
1724
1862
  switch (_response.error.statusCode) {
1725
1863
  case 422:
1726
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1864
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1727
1865
  unrecognizedObjectKeys: "passthrough",
1728
1866
  allowUnrecognizedUnionMembers: true,
1729
1867
  allowUnrecognizedEnumValues: true,
@@ -1752,10 +1890,14 @@ class Vitals {
1752
1890
  });
1753
1891
  }
1754
1892
  /**
1893
+ * @param {string} userId
1894
+ * @param {Vital.VitalsBodyTemperatureGroupedRequest} request
1895
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
1896
+ *
1755
1897
  * @throws {@link Vital.UnprocessableEntityError}
1756
1898
  *
1757
1899
  * @example
1758
- * await vital.vitals.bodyTemperatureGrouped("user_id", {
1900
+ * await client.vitals.bodyTemperatureGrouped("user_id", {
1759
1901
  * startDate: "start_date"
1760
1902
  * })
1761
1903
  */
@@ -1778,16 +1920,18 @@ class Vitals {
1778
1920
  _queryParams["end_date"] = endDate;
1779
1921
  }
1780
1922
  const _response = yield core.fetcher({
1781
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/body_temperature/grouped`),
1923
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/body_temperature/grouped`),
1782
1924
  method: "GET",
1783
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1925
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1784
1926
  contentType: "application/json",
1785
1927
  queryParameters: _queryParams,
1928
+ requestType: "json",
1786
1929
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1787
1930
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1931
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1788
1932
  });
1789
1933
  if (_response.ok) {
1790
- return yield serializers.ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.parseOrThrow(_response.body, {
1934
+ return serializers.ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.parseOrThrow(_response.body, {
1791
1935
  unrecognizedObjectKeys: "passthrough",
1792
1936
  allowUnrecognizedUnionMembers: true,
1793
1937
  allowUnrecognizedEnumValues: true,
@@ -1797,7 +1941,7 @@ class Vitals {
1797
1941
  if (_response.error.reason === "status-code") {
1798
1942
  switch (_response.error.statusCode) {
1799
1943
  case 422:
1800
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1944
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1801
1945
  unrecognizedObjectKeys: "passthrough",
1802
1946
  allowUnrecognizedUnionMembers: true,
1803
1947
  allowUnrecognizedEnumValues: true,
@@ -1826,10 +1970,14 @@ class Vitals {
1826
1970
  });
1827
1971
  }
1828
1972
  /**
1973
+ * @param {string} userId
1974
+ * @param {Vital.VitalsBodyWeightGroupedRequest} request
1975
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
1976
+ *
1829
1977
  * @throws {@link Vital.UnprocessableEntityError}
1830
1978
  *
1831
1979
  * @example
1832
- * await vital.vitals.bodyWeightGrouped("user_id", {
1980
+ * await client.vitals.bodyWeightGrouped("user_id", {
1833
1981
  * startDate: "start_date"
1834
1982
  * })
1835
1983
  */
@@ -1852,16 +2000,18 @@ class Vitals {
1852
2000
  _queryParams["end_date"] = endDate;
1853
2001
  }
1854
2002
  const _response = yield core.fetcher({
1855
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/body_weight/grouped`),
2003
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/body_weight/grouped`),
1856
2004
  method: "GET",
1857
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2005
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1858
2006
  contentType: "application/json",
1859
2007
  queryParameters: _queryParams,
2008
+ requestType: "json",
1860
2009
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1861
2010
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
2011
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1862
2012
  });
1863
2013
  if (_response.ok) {
1864
- return yield serializers.GroupedBodyWeightResponse.parseOrThrow(_response.body, {
2014
+ return serializers.GroupedBodyWeightResponse.parseOrThrow(_response.body, {
1865
2015
  unrecognizedObjectKeys: "passthrough",
1866
2016
  allowUnrecognizedUnionMembers: true,
1867
2017
  allowUnrecognizedEnumValues: true,
@@ -1871,7 +2021,7 @@ class Vitals {
1871
2021
  if (_response.error.reason === "status-code") {
1872
2022
  switch (_response.error.statusCode) {
1873
2023
  case 422:
1874
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2024
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1875
2025
  unrecognizedObjectKeys: "passthrough",
1876
2026
  allowUnrecognizedUnionMembers: true,
1877
2027
  allowUnrecognizedEnumValues: true,
@@ -1900,10 +2050,14 @@ class Vitals {
1900
2050
  });
1901
2051
  }
1902
2052
  /**
2053
+ * @param {string} userId
2054
+ * @param {Vital.VitalsBodyFatGroupedRequest} request
2055
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
2056
+ *
1903
2057
  * @throws {@link Vital.UnprocessableEntityError}
1904
2058
  *
1905
2059
  * @example
1906
- * await vital.vitals.bodyFatGrouped("user_id", {
2060
+ * await client.vitals.bodyFatGrouped("user_id", {
1907
2061
  * startDate: "start_date"
1908
2062
  * })
1909
2063
  */
@@ -1926,16 +2080,18 @@ class Vitals {
1926
2080
  _queryParams["end_date"] = endDate;
1927
2081
  }
1928
2082
  const _response = yield core.fetcher({
1929
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/body_fat/grouped`),
2083
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/body_fat/grouped`),
1930
2084
  method: "GET",
1931
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2085
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1932
2086
  contentType: "application/json",
1933
2087
  queryParameters: _queryParams,
2088
+ requestType: "json",
1934
2089
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1935
2090
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
2091
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1936
2092
  });
1937
2093
  if (_response.ok) {
1938
- return yield serializers.GroupedBodyFatResponse.parseOrThrow(_response.body, {
2094
+ return serializers.GroupedBodyFatResponse.parseOrThrow(_response.body, {
1939
2095
  unrecognizedObjectKeys: "passthrough",
1940
2096
  allowUnrecognizedUnionMembers: true,
1941
2097
  allowUnrecognizedEnumValues: true,
@@ -1945,7 +2101,7 @@ class Vitals {
1945
2101
  if (_response.error.reason === "status-code") {
1946
2102
  switch (_response.error.statusCode) {
1947
2103
  case 422:
1948
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2104
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1949
2105
  unrecognizedObjectKeys: "passthrough",
1950
2106
  allowUnrecognizedUnionMembers: true,
1951
2107
  allowUnrecognizedEnumValues: true,
@@ -1974,10 +2130,14 @@ class Vitals {
1974
2130
  });
1975
2131
  }
1976
2132
  /**
2133
+ * @param {string} userId
2134
+ * @param {Vital.VitalsBloodOxygenGroupedRequest} request
2135
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
2136
+ *
1977
2137
  * @throws {@link Vital.UnprocessableEntityError}
1978
2138
  *
1979
2139
  * @example
1980
- * await vital.vitals.bloodOxygenGrouped("user_id", {
2140
+ * await client.vitals.bloodOxygenGrouped("user_id", {
1981
2141
  * startDate: "start_date"
1982
2142
  * })
1983
2143
  */
@@ -2000,16 +2160,18 @@ class Vitals {
2000
2160
  _queryParams["end_date"] = endDate;
2001
2161
  }
2002
2162
  const _response = yield core.fetcher({
2003
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/blood_oxygen/grouped`),
2163
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/blood_oxygen/grouped`),
2004
2164
  method: "GET",
2005
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2165
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2006
2166
  contentType: "application/json",
2007
2167
  queryParameters: _queryParams,
2168
+ requestType: "json",
2008
2169
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
2009
2170
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
2171
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2010
2172
  });
2011
2173
  if (_response.ok) {
2012
- return yield serializers.GroupedBloodOxygenResponse.parseOrThrow(_response.body, {
2174
+ return serializers.GroupedBloodOxygenResponse.parseOrThrow(_response.body, {
2013
2175
  unrecognizedObjectKeys: "passthrough",
2014
2176
  allowUnrecognizedUnionMembers: true,
2015
2177
  allowUnrecognizedEnumValues: true,
@@ -2019,7 +2181,7 @@ class Vitals {
2019
2181
  if (_response.error.reason === "status-code") {
2020
2182
  switch (_response.error.statusCode) {
2021
2183
  case 422:
2022
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2184
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2023
2185
  unrecognizedObjectKeys: "passthrough",
2024
2186
  allowUnrecognizedUnionMembers: true,
2025
2187
  allowUnrecognizedEnumValues: true,
@@ -2048,10 +2210,14 @@ class Vitals {
2048
2210
  });
2049
2211
  }
2050
2212
  /**
2213
+ * @param {string} userId
2214
+ * @param {Vital.VitalsElectrocardiogramVoltageGroupedRequest} request
2215
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
2216
+ *
2051
2217
  * @throws {@link Vital.UnprocessableEntityError}
2052
2218
  *
2053
2219
  * @example
2054
- * await vital.vitals.electrocardiogramVoltageGrouped("user_id", {
2220
+ * await client.vitals.electrocardiogramVoltageGrouped("user_id", {
2055
2221
  * startDate: "start_date"
2056
2222
  * })
2057
2223
  */
@@ -2074,16 +2240,18 @@ class Vitals {
2074
2240
  _queryParams["end_date"] = endDate;
2075
2241
  }
2076
2242
  const _response = yield core.fetcher({
2077
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/electrocardiogram_voltage/grouped`),
2243
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/electrocardiogram_voltage/grouped`),
2078
2244
  method: "GET",
2079
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2245
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2080
2246
  contentType: "application/json",
2081
2247
  queryParameters: _queryParams,
2248
+ requestType: "json",
2082
2249
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
2083
2250
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
2251
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2084
2252
  });
2085
2253
  if (_response.ok) {
2086
- return yield serializers.GroupedElectrocardiogramVoltageResponse.parseOrThrow(_response.body, {
2254
+ return serializers.GroupedElectrocardiogramVoltageResponse.parseOrThrow(_response.body, {
2087
2255
  unrecognizedObjectKeys: "passthrough",
2088
2256
  allowUnrecognizedUnionMembers: true,
2089
2257
  allowUnrecognizedEnumValues: true,
@@ -2093,7 +2261,7 @@ class Vitals {
2093
2261
  if (_response.error.reason === "status-code") {
2094
2262
  switch (_response.error.statusCode) {
2095
2263
  case 422:
2096
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2264
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2097
2265
  unrecognizedObjectKeys: "passthrough",
2098
2266
  allowUnrecognizedUnionMembers: true,
2099
2267
  allowUnrecognizedEnumValues: true,
@@ -2122,10 +2290,14 @@ class Vitals {
2122
2290
  });
2123
2291
  }
2124
2292
  /**
2293
+ * @param {string} userId
2294
+ * @param {Vital.VitalsBloodPressureGroupedRequest} request
2295
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
2296
+ *
2125
2297
  * @throws {@link Vital.UnprocessableEntityError}
2126
2298
  *
2127
2299
  * @example
2128
- * await vital.vitals.bloodPressureGrouped("user_id", {
2300
+ * await client.vitals.bloodPressureGrouped("user_id", {
2129
2301
  * startDate: "start_date"
2130
2302
  * })
2131
2303
  */
@@ -2148,16 +2320,18 @@ class Vitals {
2148
2320
  _queryParams["end_date"] = endDate;
2149
2321
  }
2150
2322
  const _response = yield core.fetcher({
2151
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/blood_pressure/grouped`),
2323
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/blood_pressure/grouped`),
2152
2324
  method: "GET",
2153
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2325
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2154
2326
  contentType: "application/json",
2155
2327
  queryParameters: _queryParams,
2328
+ requestType: "json",
2156
2329
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
2157
2330
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
2331
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2158
2332
  });
2159
2333
  if (_response.ok) {
2160
- return yield serializers.GroupedBloodPressureResponse.parseOrThrow(_response.body, {
2334
+ return serializers.GroupedBloodPressureResponse.parseOrThrow(_response.body, {
2161
2335
  unrecognizedObjectKeys: "passthrough",
2162
2336
  allowUnrecognizedUnionMembers: true,
2163
2337
  allowUnrecognizedEnumValues: true,
@@ -2167,7 +2341,7 @@ class Vitals {
2167
2341
  if (_response.error.reason === "status-code") {
2168
2342
  switch (_response.error.statusCode) {
2169
2343
  case 422:
2170
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2344
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2171
2345
  unrecognizedObjectKeys: "passthrough",
2172
2346
  allowUnrecognizedUnionMembers: true,
2173
2347
  allowUnrecognizedEnumValues: true,
@@ -2196,10 +2370,14 @@ class Vitals {
2196
2370
  });
2197
2371
  }
2198
2372
  /**
2373
+ * @param {string} userId
2374
+ * @param {Vital.VitalsVo2MaxRequest} request
2375
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
2376
+ *
2199
2377
  * @throws {@link Vital.UnprocessableEntityError}
2200
2378
  *
2201
2379
  * @example
2202
- * await vital.vitals.vo2Max("user_id", {
2380
+ * await client.vitals.vo2Max("user_id", {
2203
2381
  * startDate: "start_date"
2204
2382
  * })
2205
2383
  */
@@ -2216,16 +2394,18 @@ class Vitals {
2216
2394
  _queryParams["end_date"] = endDate;
2217
2395
  }
2218
2396
  const _response = yield core.fetcher({
2219
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/vo2_max`),
2397
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/vo2_max`),
2220
2398
  method: "GET",
2221
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2399
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2222
2400
  contentType: "application/json",
2223
2401
  queryParameters: _queryParams,
2402
+ requestType: "json",
2224
2403
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
2225
2404
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
2405
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2226
2406
  });
2227
2407
  if (_response.ok) {
2228
- return yield serializers.vitals.vo2Max.Response.parseOrThrow(_response.body, {
2408
+ return serializers.vitals.vo2Max.Response.parseOrThrow(_response.body, {
2229
2409
  unrecognizedObjectKeys: "passthrough",
2230
2410
  allowUnrecognizedUnionMembers: true,
2231
2411
  allowUnrecognizedEnumValues: true,
@@ -2235,7 +2415,7 @@ class Vitals {
2235
2415
  if (_response.error.reason === "status-code") {
2236
2416
  switch (_response.error.statusCode) {
2237
2417
  case 422:
2238
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2418
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2239
2419
  unrecognizedObjectKeys: "passthrough",
2240
2420
  allowUnrecognizedUnionMembers: true,
2241
2421
  allowUnrecognizedEnumValues: true,
@@ -2264,10 +2444,14 @@ class Vitals {
2264
2444
  });
2265
2445
  }
2266
2446
  /**
2447
+ * @param {string} userId
2448
+ * @param {Vital.VitalsStressLevelRequest} request
2449
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
2450
+ *
2267
2451
  * @throws {@link Vital.UnprocessableEntityError}
2268
2452
  *
2269
2453
  * @example
2270
- * await vital.vitals.stressLevel("user_id", {
2454
+ * await client.vitals.stressLevel("user_id", {
2271
2455
  * startDate: "start_date"
2272
2456
  * })
2273
2457
  */
@@ -2284,16 +2468,18 @@ class Vitals {
2284
2468
  _queryParams["end_date"] = endDate;
2285
2469
  }
2286
2470
  const _response = yield core.fetcher({
2287
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/stress_level`),
2471
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/stress_level`),
2288
2472
  method: "GET",
2289
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2473
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2290
2474
  contentType: "application/json",
2291
2475
  queryParameters: _queryParams,
2476
+ requestType: "json",
2292
2477
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
2293
2478
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
2479
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2294
2480
  });
2295
2481
  if (_response.ok) {
2296
- return yield serializers.vitals.stressLevel.Response.parseOrThrow(_response.body, {
2482
+ return serializers.vitals.stressLevel.Response.parseOrThrow(_response.body, {
2297
2483
  unrecognizedObjectKeys: "passthrough",
2298
2484
  allowUnrecognizedUnionMembers: true,
2299
2485
  allowUnrecognizedEnumValues: true,
@@ -2303,7 +2489,7 @@ class Vitals {
2303
2489
  if (_response.error.reason === "status-code") {
2304
2490
  switch (_response.error.statusCode) {
2305
2491
  case 422:
2306
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2492
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2307
2493
  unrecognizedObjectKeys: "passthrough",
2308
2494
  allowUnrecognizedUnionMembers: true,
2309
2495
  allowUnrecognizedEnumValues: true,
@@ -2332,10 +2518,14 @@ class Vitals {
2332
2518
  });
2333
2519
  }
2334
2520
  /**
2521
+ * @param {string} userId
2522
+ * @param {Vital.VitalsMindfulnessMinutesRequest} request
2523
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
2524
+ *
2335
2525
  * @throws {@link Vital.UnprocessableEntityError}
2336
2526
  *
2337
2527
  * @example
2338
- * await vital.vitals.mindfulnessMinutes("user_id", {
2528
+ * await client.vitals.mindfulnessMinutes("user_id", {
2339
2529
  * startDate: "start_date"
2340
2530
  * })
2341
2531
  */
@@ -2352,16 +2542,18 @@ class Vitals {
2352
2542
  _queryParams["end_date"] = endDate;
2353
2543
  }
2354
2544
  const _response = yield core.fetcher({
2355
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/mindfulness_minutes`),
2545
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/mindfulness_minutes`),
2356
2546
  method: "GET",
2357
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2547
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2358
2548
  contentType: "application/json",
2359
2549
  queryParameters: _queryParams,
2550
+ requestType: "json",
2360
2551
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
2361
2552
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
2553
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2362
2554
  });
2363
2555
  if (_response.ok) {
2364
- return yield serializers.vitals.mindfulnessMinutes.Response.parseOrThrow(_response.body, {
2556
+ return serializers.vitals.mindfulnessMinutes.Response.parseOrThrow(_response.body, {
2365
2557
  unrecognizedObjectKeys: "passthrough",
2366
2558
  allowUnrecognizedUnionMembers: true,
2367
2559
  allowUnrecognizedEnumValues: true,
@@ -2371,7 +2563,7 @@ class Vitals {
2371
2563
  if (_response.error.reason === "status-code") {
2372
2564
  switch (_response.error.statusCode) {
2373
2565
  case 422:
2374
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2566
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2375
2567
  unrecognizedObjectKeys: "passthrough",
2376
2568
  allowUnrecognizedUnionMembers: true,
2377
2569
  allowUnrecognizedEnumValues: true,
@@ -2400,10 +2592,14 @@ class Vitals {
2400
2592
  });
2401
2593
  }
2402
2594
  /**
2595
+ * @param {string} userId
2596
+ * @param {Vital.VitalsCaffeineRequest} request
2597
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
2598
+ *
2403
2599
  * @throws {@link Vital.UnprocessableEntityError}
2404
2600
  *
2405
2601
  * @example
2406
- * await vital.vitals.caffeine("user_id", {
2602
+ * await client.vitals.caffeine("user_id", {
2407
2603
  * startDate: "start_date"
2408
2604
  * })
2409
2605
  */
@@ -2420,16 +2616,18 @@ class Vitals {
2420
2616
  _queryParams["end_date"] = endDate;
2421
2617
  }
2422
2618
  const _response = yield core.fetcher({
2423
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/caffeine`),
2619
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/caffeine`),
2424
2620
  method: "GET",
2425
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2621
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2426
2622
  contentType: "application/json",
2427
2623
  queryParameters: _queryParams,
2624
+ requestType: "json",
2428
2625
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
2429
2626
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
2627
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2430
2628
  });
2431
2629
  if (_response.ok) {
2432
- return yield serializers.vitals.caffeine.Response.parseOrThrow(_response.body, {
2630
+ return serializers.vitals.caffeine.Response.parseOrThrow(_response.body, {
2433
2631
  unrecognizedObjectKeys: "passthrough",
2434
2632
  allowUnrecognizedUnionMembers: true,
2435
2633
  allowUnrecognizedEnumValues: true,
@@ -2439,7 +2637,7 @@ class Vitals {
2439
2637
  if (_response.error.reason === "status-code") {
2440
2638
  switch (_response.error.statusCode) {
2441
2639
  case 422:
2442
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2640
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2443
2641
  unrecognizedObjectKeys: "passthrough",
2444
2642
  allowUnrecognizedUnionMembers: true,
2445
2643
  allowUnrecognizedEnumValues: true,
@@ -2468,10 +2666,14 @@ class Vitals {
2468
2666
  });
2469
2667
  }
2470
2668
  /**
2669
+ * @param {string} userId
2670
+ * @param {Vital.VitalsWaterRequest} request
2671
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
2672
+ *
2471
2673
  * @throws {@link Vital.UnprocessableEntityError}
2472
2674
  *
2473
2675
  * @example
2474
- * await vital.vitals.water("user_id", {
2676
+ * await client.vitals.water("user_id", {
2475
2677
  * startDate: "start_date"
2476
2678
  * })
2477
2679
  */
@@ -2488,16 +2690,18 @@ class Vitals {
2488
2690
  _queryParams["end_date"] = endDate;
2489
2691
  }
2490
2692
  const _response = yield core.fetcher({
2491
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/water`),
2693
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/water`),
2492
2694
  method: "GET",
2493
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2695
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2494
2696
  contentType: "application/json",
2495
2697
  queryParameters: _queryParams,
2698
+ requestType: "json",
2496
2699
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
2497
2700
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
2701
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2498
2702
  });
2499
2703
  if (_response.ok) {
2500
- return yield serializers.vitals.water.Response.parseOrThrow(_response.body, {
2704
+ return serializers.vitals.water.Response.parseOrThrow(_response.body, {
2501
2705
  unrecognizedObjectKeys: "passthrough",
2502
2706
  allowUnrecognizedUnionMembers: true,
2503
2707
  allowUnrecognizedEnumValues: true,
@@ -2507,7 +2711,7 @@ class Vitals {
2507
2711
  if (_response.error.reason === "status-code") {
2508
2712
  switch (_response.error.statusCode) {
2509
2713
  case 422:
2510
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2714
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2511
2715
  unrecognizedObjectKeys: "passthrough",
2512
2716
  allowUnrecognizedUnionMembers: true,
2513
2717
  allowUnrecognizedEnumValues: true,
@@ -2536,10 +2740,14 @@ class Vitals {
2536
2740
  });
2537
2741
  }
2538
2742
  /**
2743
+ * @param {string} userId
2744
+ * @param {Vital.VitalsStepsRequest} request
2745
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
2746
+ *
2539
2747
  * @throws {@link Vital.UnprocessableEntityError}
2540
2748
  *
2541
2749
  * @example
2542
- * await vital.vitals.steps("user_id", {
2750
+ * await client.vitals.steps("user_id", {
2543
2751
  * startDate: "start_date"
2544
2752
  * })
2545
2753
  */
@@ -2556,16 +2764,18 @@ class Vitals {
2556
2764
  _queryParams["end_date"] = endDate;
2557
2765
  }
2558
2766
  const _response = yield core.fetcher({
2559
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/steps`),
2767
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/steps`),
2560
2768
  method: "GET",
2561
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2769
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2562
2770
  contentType: "application/json",
2563
2771
  queryParameters: _queryParams,
2772
+ requestType: "json",
2564
2773
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
2565
2774
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
2775
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2566
2776
  });
2567
2777
  if (_response.ok) {
2568
- return yield serializers.vitals.steps.Response.parseOrThrow(_response.body, {
2778
+ return serializers.vitals.steps.Response.parseOrThrow(_response.body, {
2569
2779
  unrecognizedObjectKeys: "passthrough",
2570
2780
  allowUnrecognizedUnionMembers: true,
2571
2781
  allowUnrecognizedEnumValues: true,
@@ -2575,7 +2785,7 @@ class Vitals {
2575
2785
  if (_response.error.reason === "status-code") {
2576
2786
  switch (_response.error.statusCode) {
2577
2787
  case 422:
2578
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2788
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2579
2789
  unrecognizedObjectKeys: "passthrough",
2580
2790
  allowUnrecognizedUnionMembers: true,
2581
2791
  allowUnrecognizedEnumValues: true,
@@ -2604,10 +2814,14 @@ class Vitals {
2604
2814
  });
2605
2815
  }
2606
2816
  /**
2817
+ * @param {string} userId
2818
+ * @param {Vital.VitalsFloorsClimbedRequest} request
2819
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
2820
+ *
2607
2821
  * @throws {@link Vital.UnprocessableEntityError}
2608
2822
  *
2609
2823
  * @example
2610
- * await vital.vitals.floorsClimbed("user_id", {
2824
+ * await client.vitals.floorsClimbed("user_id", {
2611
2825
  * startDate: "start_date"
2612
2826
  * })
2613
2827
  */
@@ -2624,16 +2838,18 @@ class Vitals {
2624
2838
  _queryParams["end_date"] = endDate;
2625
2839
  }
2626
2840
  const _response = yield core.fetcher({
2627
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/floors_climbed`),
2841
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/floors_climbed`),
2628
2842
  method: "GET",
2629
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2843
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2630
2844
  contentType: "application/json",
2631
2845
  queryParameters: _queryParams,
2846
+ requestType: "json",
2632
2847
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
2633
2848
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
2849
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2634
2850
  });
2635
2851
  if (_response.ok) {
2636
- return yield serializers.vitals.floorsClimbed.Response.parseOrThrow(_response.body, {
2852
+ return serializers.vitals.floorsClimbed.Response.parseOrThrow(_response.body, {
2637
2853
  unrecognizedObjectKeys: "passthrough",
2638
2854
  allowUnrecognizedUnionMembers: true,
2639
2855
  allowUnrecognizedEnumValues: true,
@@ -2643,7 +2859,7 @@ class Vitals {
2643
2859
  if (_response.error.reason === "status-code") {
2644
2860
  switch (_response.error.statusCode) {
2645
2861
  case 422:
2646
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2862
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2647
2863
  unrecognizedObjectKeys: "passthrough",
2648
2864
  allowUnrecognizedUnionMembers: true,
2649
2865
  allowUnrecognizedEnumValues: true,
@@ -2672,10 +2888,14 @@ class Vitals {
2672
2888
  });
2673
2889
  }
2674
2890
  /**
2891
+ * @param {string} userId
2892
+ * @param {Vital.VitalsDistanceRequest} request
2893
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
2894
+ *
2675
2895
  * @throws {@link Vital.UnprocessableEntityError}
2676
2896
  *
2677
2897
  * @example
2678
- * await vital.vitals.distance("user_id", {
2898
+ * await client.vitals.distance("user_id", {
2679
2899
  * startDate: "start_date"
2680
2900
  * })
2681
2901
  */
@@ -2692,16 +2912,18 @@ class Vitals {
2692
2912
  _queryParams["end_date"] = endDate;
2693
2913
  }
2694
2914
  const _response = yield core.fetcher({
2695
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/distance`),
2915
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/distance`),
2696
2916
  method: "GET",
2697
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2917
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2698
2918
  contentType: "application/json",
2699
2919
  queryParameters: _queryParams,
2920
+ requestType: "json",
2700
2921
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
2701
2922
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
2923
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2702
2924
  });
2703
2925
  if (_response.ok) {
2704
- return yield serializers.vitals.distance.Response.parseOrThrow(_response.body, {
2926
+ return serializers.vitals.distance.Response.parseOrThrow(_response.body, {
2705
2927
  unrecognizedObjectKeys: "passthrough",
2706
2928
  allowUnrecognizedUnionMembers: true,
2707
2929
  allowUnrecognizedEnumValues: true,
@@ -2711,7 +2933,7 @@ class Vitals {
2711
2933
  if (_response.error.reason === "status-code") {
2712
2934
  switch (_response.error.statusCode) {
2713
2935
  case 422:
2714
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2936
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2715
2937
  unrecognizedObjectKeys: "passthrough",
2716
2938
  allowUnrecognizedUnionMembers: true,
2717
2939
  allowUnrecognizedEnumValues: true,
@@ -2740,10 +2962,14 @@ class Vitals {
2740
2962
  });
2741
2963
  }
2742
2964
  /**
2965
+ * @param {string} userId
2966
+ * @param {Vital.VitalsCaloriesBasalRequest} request
2967
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
2968
+ *
2743
2969
  * @throws {@link Vital.UnprocessableEntityError}
2744
2970
  *
2745
2971
  * @example
2746
- * await vital.vitals.caloriesBasal("user_id", {
2972
+ * await client.vitals.caloriesBasal("user_id", {
2747
2973
  * startDate: "start_date"
2748
2974
  * })
2749
2975
  */
@@ -2760,16 +2986,18 @@ class Vitals {
2760
2986
  _queryParams["end_date"] = endDate;
2761
2987
  }
2762
2988
  const _response = yield core.fetcher({
2763
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/calories_basal`),
2989
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/calories_basal`),
2764
2990
  method: "GET",
2765
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2991
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2766
2992
  contentType: "application/json",
2767
2993
  queryParameters: _queryParams,
2994
+ requestType: "json",
2768
2995
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
2769
2996
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
2997
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2770
2998
  });
2771
2999
  if (_response.ok) {
2772
- return yield serializers.vitals.caloriesBasal.Response.parseOrThrow(_response.body, {
3000
+ return serializers.vitals.caloriesBasal.Response.parseOrThrow(_response.body, {
2773
3001
  unrecognizedObjectKeys: "passthrough",
2774
3002
  allowUnrecognizedUnionMembers: true,
2775
3003
  allowUnrecognizedEnumValues: true,
@@ -2779,7 +3007,7 @@ class Vitals {
2779
3007
  if (_response.error.reason === "status-code") {
2780
3008
  switch (_response.error.statusCode) {
2781
3009
  case 422:
2782
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3010
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2783
3011
  unrecognizedObjectKeys: "passthrough",
2784
3012
  allowUnrecognizedUnionMembers: true,
2785
3013
  allowUnrecognizedEnumValues: true,
@@ -2808,10 +3036,14 @@ class Vitals {
2808
3036
  });
2809
3037
  }
2810
3038
  /**
3039
+ * @param {string} userId
3040
+ * @param {Vital.VitalsCaloriesActiveRequest} request
3041
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
3042
+ *
2811
3043
  * @throws {@link Vital.UnprocessableEntityError}
2812
3044
  *
2813
3045
  * @example
2814
- * await vital.vitals.caloriesActive("user_id", {
3046
+ * await client.vitals.caloriesActive("user_id", {
2815
3047
  * startDate: "start_date"
2816
3048
  * })
2817
3049
  */
@@ -2828,16 +3060,18 @@ class Vitals {
2828
3060
  _queryParams["end_date"] = endDate;
2829
3061
  }
2830
3062
  const _response = yield core.fetcher({
2831
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/calories_active`),
3063
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/calories_active`),
2832
3064
  method: "GET",
2833
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3065
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2834
3066
  contentType: "application/json",
2835
3067
  queryParameters: _queryParams,
3068
+ requestType: "json",
2836
3069
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
2837
3070
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
3071
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2838
3072
  });
2839
3073
  if (_response.ok) {
2840
- return yield serializers.vitals.caloriesActive.Response.parseOrThrow(_response.body, {
3074
+ return serializers.vitals.caloriesActive.Response.parseOrThrow(_response.body, {
2841
3075
  unrecognizedObjectKeys: "passthrough",
2842
3076
  allowUnrecognizedUnionMembers: true,
2843
3077
  allowUnrecognizedEnumValues: true,
@@ -2847,7 +3081,7 @@ class Vitals {
2847
3081
  if (_response.error.reason === "status-code") {
2848
3082
  switch (_response.error.statusCode) {
2849
3083
  case 422:
2850
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3084
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2851
3085
  unrecognizedObjectKeys: "passthrough",
2852
3086
  allowUnrecognizedUnionMembers: true,
2853
3087
  allowUnrecognizedEnumValues: true,
@@ -2876,10 +3110,14 @@ class Vitals {
2876
3110
  });
2877
3111
  }
2878
3112
  /**
3113
+ * @param {string} userId
3114
+ * @param {Vital.VitalsRespiratoryRateRequest} request
3115
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
3116
+ *
2879
3117
  * @throws {@link Vital.UnprocessableEntityError}
2880
3118
  *
2881
3119
  * @example
2882
- * await vital.vitals.respiratoryRate("user_id", {
3120
+ * await client.vitals.respiratoryRate("user_id", {
2883
3121
  * startDate: "start_date"
2884
3122
  * })
2885
3123
  */
@@ -2896,16 +3134,18 @@ class Vitals {
2896
3134
  _queryParams["end_date"] = endDate;
2897
3135
  }
2898
3136
  const _response = yield core.fetcher({
2899
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/respiratory_rate`),
3137
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/respiratory_rate`),
2900
3138
  method: "GET",
2901
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3139
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2902
3140
  contentType: "application/json",
2903
3141
  queryParameters: _queryParams,
3142
+ requestType: "json",
2904
3143
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
2905
3144
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
3145
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2906
3146
  });
2907
3147
  if (_response.ok) {
2908
- return yield serializers.vitals.respiratoryRate.Response.parseOrThrow(_response.body, {
3148
+ return serializers.vitals.respiratoryRate.Response.parseOrThrow(_response.body, {
2909
3149
  unrecognizedObjectKeys: "passthrough",
2910
3150
  allowUnrecognizedUnionMembers: true,
2911
3151
  allowUnrecognizedEnumValues: true,
@@ -2915,7 +3155,7 @@ class Vitals {
2915
3155
  if (_response.error.reason === "status-code") {
2916
3156
  switch (_response.error.statusCode) {
2917
3157
  case 422:
2918
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3158
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2919
3159
  unrecognizedObjectKeys: "passthrough",
2920
3160
  allowUnrecognizedUnionMembers: true,
2921
3161
  allowUnrecognizedEnumValues: true,
@@ -2944,10 +3184,14 @@ class Vitals {
2944
3184
  });
2945
3185
  }
2946
3186
  /**
3187
+ * @param {string} userId
3188
+ * @param {Vital.VitalsIgeRequest} request
3189
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
3190
+ *
2947
3191
  * @throws {@link Vital.UnprocessableEntityError}
2948
3192
  *
2949
3193
  * @example
2950
- * await vital.vitals.ige("user_id", {
3194
+ * await client.vitals.ige("user_id", {
2951
3195
  * startDate: "start_date"
2952
3196
  * })
2953
3197
  */
@@ -2964,16 +3208,18 @@ class Vitals {
2964
3208
  _queryParams["end_date"] = endDate;
2965
3209
  }
2966
3210
  const _response = yield core.fetcher({
2967
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/ige`),
3211
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/ige`),
2968
3212
  method: "GET",
2969
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3213
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2970
3214
  contentType: "application/json",
2971
3215
  queryParameters: _queryParams,
3216
+ requestType: "json",
2972
3217
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
2973
3218
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
3219
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2974
3220
  });
2975
3221
  if (_response.ok) {
2976
- return yield serializers.vitals.ige.Response.parseOrThrow(_response.body, {
3222
+ return serializers.vitals.ige.Response.parseOrThrow(_response.body, {
2977
3223
  unrecognizedObjectKeys: "passthrough",
2978
3224
  allowUnrecognizedUnionMembers: true,
2979
3225
  allowUnrecognizedEnumValues: true,
@@ -2983,7 +3229,7 @@ class Vitals {
2983
3229
  if (_response.error.reason === "status-code") {
2984
3230
  switch (_response.error.statusCode) {
2985
3231
  case 422:
2986
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3232
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2987
3233
  unrecognizedObjectKeys: "passthrough",
2988
3234
  allowUnrecognizedUnionMembers: true,
2989
3235
  allowUnrecognizedEnumValues: true,
@@ -3012,10 +3258,14 @@ class Vitals {
3012
3258
  });
3013
3259
  }
3014
3260
  /**
3261
+ * @param {string} userId
3262
+ * @param {Vital.VitalsIggRequest} request
3263
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
3264
+ *
3015
3265
  * @throws {@link Vital.UnprocessableEntityError}
3016
3266
  *
3017
3267
  * @example
3018
- * await vital.vitals.igg("user_id", {
3268
+ * await client.vitals.igg("user_id", {
3019
3269
  * startDate: "start_date"
3020
3270
  * })
3021
3271
  */
@@ -3032,16 +3282,18 @@ class Vitals {
3032
3282
  _queryParams["end_date"] = endDate;
3033
3283
  }
3034
3284
  const _response = yield core.fetcher({
3035
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/igg`),
3285
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/igg`),
3036
3286
  method: "GET",
3037
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3287
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3038
3288
  contentType: "application/json",
3039
3289
  queryParameters: _queryParams,
3290
+ requestType: "json",
3040
3291
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
3041
3292
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
3293
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
3042
3294
  });
3043
3295
  if (_response.ok) {
3044
- return yield serializers.vitals.igg.Response.parseOrThrow(_response.body, {
3296
+ return serializers.vitals.igg.Response.parseOrThrow(_response.body, {
3045
3297
  unrecognizedObjectKeys: "passthrough",
3046
3298
  allowUnrecognizedUnionMembers: true,
3047
3299
  allowUnrecognizedEnumValues: true,
@@ -3051,7 +3303,7 @@ class Vitals {
3051
3303
  if (_response.error.reason === "status-code") {
3052
3304
  switch (_response.error.statusCode) {
3053
3305
  case 422:
3054
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3306
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3055
3307
  unrecognizedObjectKeys: "passthrough",
3056
3308
  allowUnrecognizedUnionMembers: true,
3057
3309
  allowUnrecognizedEnumValues: true,
@@ -3080,10 +3332,14 @@ class Vitals {
3080
3332
  });
3081
3333
  }
3082
3334
  /**
3335
+ * @param {string} userId
3336
+ * @param {Vital.VitalsHypnogramRequest} request
3337
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
3338
+ *
3083
3339
  * @throws {@link Vital.UnprocessableEntityError}
3084
3340
  *
3085
3341
  * @example
3086
- * await vital.vitals.hypnogram("user_id", {
3342
+ * await client.vitals.hypnogram("user_id", {
3087
3343
  * startDate: "start_date"
3088
3344
  * })
3089
3345
  */
@@ -3100,16 +3356,18 @@ class Vitals {
3100
3356
  _queryParams["end_date"] = endDate;
3101
3357
  }
3102
3358
  const _response = yield core.fetcher({
3103
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/hypnogram`),
3359
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/hypnogram`),
3104
3360
  method: "GET",
3105
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3361
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3106
3362
  contentType: "application/json",
3107
3363
  queryParameters: _queryParams,
3364
+ requestType: "json",
3108
3365
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
3109
3366
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
3367
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
3110
3368
  });
3111
3369
  if (_response.ok) {
3112
- return yield serializers.vitals.hypnogram.Response.parseOrThrow(_response.body, {
3370
+ return serializers.vitals.hypnogram.Response.parseOrThrow(_response.body, {
3113
3371
  unrecognizedObjectKeys: "passthrough",
3114
3372
  allowUnrecognizedUnionMembers: true,
3115
3373
  allowUnrecognizedEnumValues: true,
@@ -3119,7 +3377,7 @@ class Vitals {
3119
3377
  if (_response.error.reason === "status-code") {
3120
3378
  switch (_response.error.statusCode) {
3121
3379
  case 422:
3122
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3380
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3123
3381
  unrecognizedObjectKeys: "passthrough",
3124
3382
  allowUnrecognizedUnionMembers: true,
3125
3383
  allowUnrecognizedEnumValues: true,
@@ -3148,10 +3406,14 @@ class Vitals {
3148
3406
  });
3149
3407
  }
3150
3408
  /**
3409
+ * @param {string} userId
3410
+ * @param {Vital.VitalsHrvRequest} request
3411
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
3412
+ *
3151
3413
  * @throws {@link Vital.UnprocessableEntityError}
3152
3414
  *
3153
3415
  * @example
3154
- * await vital.vitals.hrv("user_id", {
3416
+ * await client.vitals.hrv("user_id", {
3155
3417
  * startDate: "start_date"
3156
3418
  * })
3157
3419
  */
@@ -3168,16 +3430,18 @@ class Vitals {
3168
3430
  _queryParams["end_date"] = endDate;
3169
3431
  }
3170
3432
  const _response = yield core.fetcher({
3171
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/hrv`),
3433
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/hrv`),
3172
3434
  method: "GET",
3173
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3435
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3174
3436
  contentType: "application/json",
3175
3437
  queryParameters: _queryParams,
3438
+ requestType: "json",
3176
3439
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
3177
3440
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
3441
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
3178
3442
  });
3179
3443
  if (_response.ok) {
3180
- return yield serializers.vitals.hrv.Response.parseOrThrow(_response.body, {
3444
+ return serializers.vitals.hrv.Response.parseOrThrow(_response.body, {
3181
3445
  unrecognizedObjectKeys: "passthrough",
3182
3446
  allowUnrecognizedUnionMembers: true,
3183
3447
  allowUnrecognizedEnumValues: true,
@@ -3187,7 +3451,7 @@ class Vitals {
3187
3451
  if (_response.error.reason === "status-code") {
3188
3452
  switch (_response.error.statusCode) {
3189
3453
  case 422:
3190
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3454
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3191
3455
  unrecognizedObjectKeys: "passthrough",
3192
3456
  allowUnrecognizedUnionMembers: true,
3193
3457
  allowUnrecognizedEnumValues: true,
@@ -3216,10 +3480,14 @@ class Vitals {
3216
3480
  });
3217
3481
  }
3218
3482
  /**
3483
+ * @param {string} userId
3484
+ * @param {Vital.VitalsHeartrateRequest} request
3485
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
3486
+ *
3219
3487
  * @throws {@link Vital.UnprocessableEntityError}
3220
3488
  *
3221
3489
  * @example
3222
- * await vital.vitals.heartrate("user_id", {
3490
+ * await client.vitals.heartrate("user_id", {
3223
3491
  * startDate: "start_date"
3224
3492
  * })
3225
3493
  */
@@ -3236,16 +3504,18 @@ class Vitals {
3236
3504
  _queryParams["end_date"] = endDate;
3237
3505
  }
3238
3506
  const _response = yield core.fetcher({
3239
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/heartrate`),
3507
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/heartrate`),
3240
3508
  method: "GET",
3241
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3509
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3242
3510
  contentType: "application/json",
3243
3511
  queryParameters: _queryParams,
3512
+ requestType: "json",
3244
3513
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
3245
3514
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
3515
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
3246
3516
  });
3247
3517
  if (_response.ok) {
3248
- return yield serializers.vitals.heartrate.Response.parseOrThrow(_response.body, {
3518
+ return serializers.vitals.heartrate.Response.parseOrThrow(_response.body, {
3249
3519
  unrecognizedObjectKeys: "passthrough",
3250
3520
  allowUnrecognizedUnionMembers: true,
3251
3521
  allowUnrecognizedEnumValues: true,
@@ -3255,7 +3525,7 @@ class Vitals {
3255
3525
  if (_response.error.reason === "status-code") {
3256
3526
  switch (_response.error.statusCode) {
3257
3527
  case 422:
3258
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3528
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3259
3529
  unrecognizedObjectKeys: "passthrough",
3260
3530
  allowUnrecognizedUnionMembers: true,
3261
3531
  allowUnrecognizedEnumValues: true,
@@ -3284,10 +3554,14 @@ class Vitals {
3284
3554
  });
3285
3555
  }
3286
3556
  /**
3557
+ * @param {string} userId
3558
+ * @param {Vital.VitalsGlucoseRequest} request
3559
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
3560
+ *
3287
3561
  * @throws {@link Vital.UnprocessableEntityError}
3288
3562
  *
3289
3563
  * @example
3290
- * await vital.vitals.glucose("user_id", {
3564
+ * await client.vitals.glucose("user_id", {
3291
3565
  * startDate: "start_date"
3292
3566
  * })
3293
3567
  */
@@ -3304,16 +3578,18 @@ class Vitals {
3304
3578
  _queryParams["end_date"] = endDate;
3305
3579
  }
3306
3580
  const _response = yield core.fetcher({
3307
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/glucose`),
3581
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/glucose`),
3308
3582
  method: "GET",
3309
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3583
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3310
3584
  contentType: "application/json",
3311
3585
  queryParameters: _queryParams,
3586
+ requestType: "json",
3312
3587
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
3313
3588
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
3589
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
3314
3590
  });
3315
3591
  if (_response.ok) {
3316
- return yield serializers.vitals.glucose.Response.parseOrThrow(_response.body, {
3592
+ return serializers.vitals.glucose.Response.parseOrThrow(_response.body, {
3317
3593
  unrecognizedObjectKeys: "passthrough",
3318
3594
  allowUnrecognizedUnionMembers: true,
3319
3595
  allowUnrecognizedEnumValues: true,
@@ -3323,7 +3599,7 @@ class Vitals {
3323
3599
  if (_response.error.reason === "status-code") {
3324
3600
  switch (_response.error.statusCode) {
3325
3601
  case 422:
3326
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3602
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3327
3603
  unrecognizedObjectKeys: "passthrough",
3328
3604
  allowUnrecognizedUnionMembers: true,
3329
3605
  allowUnrecognizedEnumValues: true,
@@ -3352,10 +3628,14 @@ class Vitals {
3352
3628
  });
3353
3629
  }
3354
3630
  /**
3631
+ * @param {string} userId
3632
+ * @param {Vital.VitalsCholesterolTriglyceridesRequest} request
3633
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
3634
+ *
3355
3635
  * @throws {@link Vital.UnprocessableEntityError}
3356
3636
  *
3357
3637
  * @example
3358
- * await vital.vitals.cholesterolTriglycerides("user_id", {
3638
+ * await client.vitals.cholesterolTriglycerides("user_id", {
3359
3639
  * startDate: "start_date"
3360
3640
  * })
3361
3641
  */
@@ -3372,16 +3652,18 @@ class Vitals {
3372
3652
  _queryParams["end_date"] = endDate;
3373
3653
  }
3374
3654
  const _response = yield core.fetcher({
3375
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/cholesterol/triglycerides`),
3655
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/cholesterol/triglycerides`),
3376
3656
  method: "GET",
3377
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3657
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3378
3658
  contentType: "application/json",
3379
3659
  queryParameters: _queryParams,
3660
+ requestType: "json",
3380
3661
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
3381
3662
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
3663
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
3382
3664
  });
3383
3665
  if (_response.ok) {
3384
- return yield serializers.vitals.cholesterolTriglycerides.Response.parseOrThrow(_response.body, {
3666
+ return serializers.vitals.cholesterolTriglycerides.Response.parseOrThrow(_response.body, {
3385
3667
  unrecognizedObjectKeys: "passthrough",
3386
3668
  allowUnrecognizedUnionMembers: true,
3387
3669
  allowUnrecognizedEnumValues: true,
@@ -3391,7 +3673,7 @@ class Vitals {
3391
3673
  if (_response.error.reason === "status-code") {
3392
3674
  switch (_response.error.statusCode) {
3393
3675
  case 422:
3394
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3676
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3395
3677
  unrecognizedObjectKeys: "passthrough",
3396
3678
  allowUnrecognizedUnionMembers: true,
3397
3679
  allowUnrecognizedEnumValues: true,
@@ -3420,10 +3702,14 @@ class Vitals {
3420
3702
  });
3421
3703
  }
3422
3704
  /**
3705
+ * @param {string} userId
3706
+ * @param {Vital.VitalsCholesterolTotalRequest} request
3707
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
3708
+ *
3423
3709
  * @throws {@link Vital.UnprocessableEntityError}
3424
3710
  *
3425
3711
  * @example
3426
- * await vital.vitals.cholesterolTotal("user_id", {
3712
+ * await client.vitals.cholesterolTotal("user_id", {
3427
3713
  * startDate: "start_date"
3428
3714
  * })
3429
3715
  */
@@ -3440,16 +3726,18 @@ class Vitals {
3440
3726
  _queryParams["end_date"] = endDate;
3441
3727
  }
3442
3728
  const _response = yield core.fetcher({
3443
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/cholesterol/total`),
3729
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/cholesterol/total`),
3444
3730
  method: "GET",
3445
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3731
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3446
3732
  contentType: "application/json",
3447
3733
  queryParameters: _queryParams,
3734
+ requestType: "json",
3448
3735
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
3449
3736
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
3737
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
3450
3738
  });
3451
3739
  if (_response.ok) {
3452
- return yield serializers.vitals.cholesterolTotal.Response.parseOrThrow(_response.body, {
3740
+ return serializers.vitals.cholesterolTotal.Response.parseOrThrow(_response.body, {
3453
3741
  unrecognizedObjectKeys: "passthrough",
3454
3742
  allowUnrecognizedUnionMembers: true,
3455
3743
  allowUnrecognizedEnumValues: true,
@@ -3459,7 +3747,7 @@ class Vitals {
3459
3747
  if (_response.error.reason === "status-code") {
3460
3748
  switch (_response.error.statusCode) {
3461
3749
  case 422:
3462
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3750
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3463
3751
  unrecognizedObjectKeys: "passthrough",
3464
3752
  allowUnrecognizedUnionMembers: true,
3465
3753
  allowUnrecognizedEnumValues: true,
@@ -3488,10 +3776,14 @@ class Vitals {
3488
3776
  });
3489
3777
  }
3490
3778
  /**
3779
+ * @param {string} userId
3780
+ * @param {Vital.VitalsCholesterolLdlRequest} request
3781
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
3782
+ *
3491
3783
  * @throws {@link Vital.UnprocessableEntityError}
3492
3784
  *
3493
3785
  * @example
3494
- * await vital.vitals.cholesterolLdl("user_id", {
3786
+ * await client.vitals.cholesterolLdl("user_id", {
3495
3787
  * startDate: "start_date"
3496
3788
  * })
3497
3789
  */
@@ -3508,16 +3800,18 @@ class Vitals {
3508
3800
  _queryParams["end_date"] = endDate;
3509
3801
  }
3510
3802
  const _response = yield core.fetcher({
3511
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/cholesterol/ldl`),
3803
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/cholesterol/ldl`),
3512
3804
  method: "GET",
3513
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3805
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3514
3806
  contentType: "application/json",
3515
3807
  queryParameters: _queryParams,
3808
+ requestType: "json",
3516
3809
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
3517
3810
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
3811
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
3518
3812
  });
3519
3813
  if (_response.ok) {
3520
- return yield serializers.vitals.cholesterolLdl.Response.parseOrThrow(_response.body, {
3814
+ return serializers.vitals.cholesterolLdl.Response.parseOrThrow(_response.body, {
3521
3815
  unrecognizedObjectKeys: "passthrough",
3522
3816
  allowUnrecognizedUnionMembers: true,
3523
3817
  allowUnrecognizedEnumValues: true,
@@ -3527,7 +3821,7 @@ class Vitals {
3527
3821
  if (_response.error.reason === "status-code") {
3528
3822
  switch (_response.error.statusCode) {
3529
3823
  case 422:
3530
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3824
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3531
3825
  unrecognizedObjectKeys: "passthrough",
3532
3826
  allowUnrecognizedUnionMembers: true,
3533
3827
  allowUnrecognizedEnumValues: true,
@@ -3556,10 +3850,14 @@ class Vitals {
3556
3850
  });
3557
3851
  }
3558
3852
  /**
3853
+ * @param {string} userId
3854
+ * @param {Vital.VitalsCholesterolHdlRequest} request
3855
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
3856
+ *
3559
3857
  * @throws {@link Vital.UnprocessableEntityError}
3560
3858
  *
3561
3859
  * @example
3562
- * await vital.vitals.cholesterolHdl("user_id", {
3860
+ * await client.vitals.cholesterolHdl("user_id", {
3563
3861
  * startDate: "start_date"
3564
3862
  * })
3565
3863
  */
@@ -3576,16 +3874,18 @@ class Vitals {
3576
3874
  _queryParams["end_date"] = endDate;
3577
3875
  }
3578
3876
  const _response = yield core.fetcher({
3579
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/cholesterol/hdl`),
3877
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/cholesterol/hdl`),
3580
3878
  method: "GET",
3581
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3879
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3582
3880
  contentType: "application/json",
3583
3881
  queryParameters: _queryParams,
3882
+ requestType: "json",
3584
3883
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
3585
3884
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
3885
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
3586
3886
  });
3587
3887
  if (_response.ok) {
3588
- return yield serializers.vitals.cholesterolHdl.Response.parseOrThrow(_response.body, {
3888
+ return serializers.vitals.cholesterolHdl.Response.parseOrThrow(_response.body, {
3589
3889
  unrecognizedObjectKeys: "passthrough",
3590
3890
  allowUnrecognizedUnionMembers: true,
3591
3891
  allowUnrecognizedEnumValues: true,
@@ -3595,7 +3895,7 @@ class Vitals {
3595
3895
  if (_response.error.reason === "status-code") {
3596
3896
  switch (_response.error.statusCode) {
3597
3897
  case 422:
3598
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3898
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3599
3899
  unrecognizedObjectKeys: "passthrough",
3600
3900
  allowUnrecognizedUnionMembers: true,
3601
3901
  allowUnrecognizedEnumValues: true,
@@ -3624,10 +3924,14 @@ class Vitals {
3624
3924
  });
3625
3925
  }
3626
3926
  /**
3927
+ * @param {string} userId
3928
+ * @param {Vital.VitalsCholesterolRequest} request
3929
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
3930
+ *
3627
3931
  * @throws {@link Vital.UnprocessableEntityError}
3628
3932
  *
3629
3933
  * @example
3630
- * await vital.vitals.cholesterol("user_id", {
3934
+ * await client.vitals.cholesterol("user_id", {
3631
3935
  * startDate: "start_date"
3632
3936
  * })
3633
3937
  */
@@ -3644,16 +3948,18 @@ class Vitals {
3644
3948
  _queryParams["end_date"] = endDate;
3645
3949
  }
3646
3950
  const _response = yield core.fetcher({
3647
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/cholesterol`),
3951
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/cholesterol`),
3648
3952
  method: "GET",
3649
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3953
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3650
3954
  contentType: "application/json",
3651
3955
  queryParameters: _queryParams,
3956
+ requestType: "json",
3652
3957
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
3653
3958
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
3959
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
3654
3960
  });
3655
3961
  if (_response.ok) {
3656
- return yield serializers.vitals.cholesterol.Response.parseOrThrow(_response.body, {
3962
+ return serializers.vitals.cholesterol.Response.parseOrThrow(_response.body, {
3657
3963
  unrecognizedObjectKeys: "passthrough",
3658
3964
  allowUnrecognizedUnionMembers: true,
3659
3965
  allowUnrecognizedEnumValues: true,
@@ -3663,7 +3969,7 @@ class Vitals {
3663
3969
  if (_response.error.reason === "status-code") {
3664
3970
  switch (_response.error.statusCode) {
3665
3971
  case 422:
3666
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3972
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3667
3973
  unrecognizedObjectKeys: "passthrough",
3668
3974
  allowUnrecognizedUnionMembers: true,
3669
3975
  allowUnrecognizedEnumValues: true,
@@ -3692,10 +3998,14 @@ class Vitals {
3692
3998
  });
3693
3999
  }
3694
4000
  /**
4001
+ * @param {string} userId
4002
+ * @param {Vital.VitalsBodyWeightRequest} request
4003
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
4004
+ *
3695
4005
  * @throws {@link Vital.UnprocessableEntityError}
3696
4006
  *
3697
4007
  * @example
3698
- * await vital.vitals.bodyWeight("user_id", {
4008
+ * await client.vitals.bodyWeight("user_id", {
3699
4009
  * startDate: "start_date"
3700
4010
  * })
3701
4011
  */
@@ -3712,16 +4022,18 @@ class Vitals {
3712
4022
  _queryParams["end_date"] = endDate;
3713
4023
  }
3714
4024
  const _response = yield core.fetcher({
3715
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/body_weight`),
4025
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/body_weight`),
3716
4026
  method: "GET",
3717
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
4027
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3718
4028
  contentType: "application/json",
3719
4029
  queryParameters: _queryParams,
4030
+ requestType: "json",
3720
4031
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
3721
4032
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
4033
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
3722
4034
  });
3723
4035
  if (_response.ok) {
3724
- return yield serializers.vitals.bodyWeight.Response.parseOrThrow(_response.body, {
4036
+ return serializers.vitals.bodyWeight.Response.parseOrThrow(_response.body, {
3725
4037
  unrecognizedObjectKeys: "passthrough",
3726
4038
  allowUnrecognizedUnionMembers: true,
3727
4039
  allowUnrecognizedEnumValues: true,
@@ -3731,7 +4043,7 @@ class Vitals {
3731
4043
  if (_response.error.reason === "status-code") {
3732
4044
  switch (_response.error.statusCode) {
3733
4045
  case 422:
3734
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
4046
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3735
4047
  unrecognizedObjectKeys: "passthrough",
3736
4048
  allowUnrecognizedUnionMembers: true,
3737
4049
  allowUnrecognizedEnumValues: true,
@@ -3760,10 +4072,14 @@ class Vitals {
3760
4072
  });
3761
4073
  }
3762
4074
  /**
4075
+ * @param {string} userId
4076
+ * @param {Vital.VitalsBodyFatRequest} request
4077
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
4078
+ *
3763
4079
  * @throws {@link Vital.UnprocessableEntityError}
3764
4080
  *
3765
4081
  * @example
3766
- * await vital.vitals.bodyFat("user_id", {
4082
+ * await client.vitals.bodyFat("user_id", {
3767
4083
  * startDate: "start_date"
3768
4084
  * })
3769
4085
  */
@@ -3780,16 +4096,18 @@ class Vitals {
3780
4096
  _queryParams["end_date"] = endDate;
3781
4097
  }
3782
4098
  const _response = yield core.fetcher({
3783
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/body_fat`),
4099
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/body_fat`),
3784
4100
  method: "GET",
3785
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
4101
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3786
4102
  contentType: "application/json",
3787
4103
  queryParameters: _queryParams,
4104
+ requestType: "json",
3788
4105
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
3789
4106
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
4107
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
3790
4108
  });
3791
4109
  if (_response.ok) {
3792
- return yield serializers.vitals.bodyFat.Response.parseOrThrow(_response.body, {
4110
+ return serializers.vitals.bodyFat.Response.parseOrThrow(_response.body, {
3793
4111
  unrecognizedObjectKeys: "passthrough",
3794
4112
  allowUnrecognizedUnionMembers: true,
3795
4113
  allowUnrecognizedEnumValues: true,
@@ -3799,7 +4117,7 @@ class Vitals {
3799
4117
  if (_response.error.reason === "status-code") {
3800
4118
  switch (_response.error.statusCode) {
3801
4119
  case 422:
3802
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
4120
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3803
4121
  unrecognizedObjectKeys: "passthrough",
3804
4122
  allowUnrecognizedUnionMembers: true,
3805
4123
  allowUnrecognizedEnumValues: true,
@@ -3828,10 +4146,14 @@ class Vitals {
3828
4146
  });
3829
4147
  }
3830
4148
  /**
4149
+ * @param {string} userId
4150
+ * @param {Vital.VitalsBloodOxygenRequest} request
4151
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
4152
+ *
3831
4153
  * @throws {@link Vital.UnprocessableEntityError}
3832
4154
  *
3833
4155
  * @example
3834
- * await vital.vitals.bloodOxygen("user_id", {
4156
+ * await client.vitals.bloodOxygen("user_id", {
3835
4157
  * startDate: "start_date"
3836
4158
  * })
3837
4159
  */
@@ -3848,16 +4170,18 @@ class Vitals {
3848
4170
  _queryParams["end_date"] = endDate;
3849
4171
  }
3850
4172
  const _response = yield core.fetcher({
3851
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/blood_oxygen`),
4173
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/blood_oxygen`),
3852
4174
  method: "GET",
3853
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
4175
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3854
4176
  contentType: "application/json",
3855
4177
  queryParameters: _queryParams,
4178
+ requestType: "json",
3856
4179
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
3857
4180
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
4181
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
3858
4182
  });
3859
4183
  if (_response.ok) {
3860
- return yield serializers.vitals.bloodOxygen.Response.parseOrThrow(_response.body, {
4184
+ return serializers.vitals.bloodOxygen.Response.parseOrThrow(_response.body, {
3861
4185
  unrecognizedObjectKeys: "passthrough",
3862
4186
  allowUnrecognizedUnionMembers: true,
3863
4187
  allowUnrecognizedEnumValues: true,
@@ -3867,7 +4191,7 @@ class Vitals {
3867
4191
  if (_response.error.reason === "status-code") {
3868
4192
  switch (_response.error.statusCode) {
3869
4193
  case 422:
3870
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
4194
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3871
4195
  unrecognizedObjectKeys: "passthrough",
3872
4196
  allowUnrecognizedUnionMembers: true,
3873
4197
  allowUnrecognizedEnumValues: true,
@@ -3896,10 +4220,14 @@ class Vitals {
3896
4220
  });
3897
4221
  }
3898
4222
  /**
4223
+ * @param {string} userId
4224
+ * @param {Vital.VitalsElectrocardiogramVoltageRequest} request
4225
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
4226
+ *
3899
4227
  * @throws {@link Vital.UnprocessableEntityError}
3900
4228
  *
3901
4229
  * @example
3902
- * await vital.vitals.electrocardiogramVoltage("user_id", {
4230
+ * await client.vitals.electrocardiogramVoltage("user_id", {
3903
4231
  * startDate: "start_date"
3904
4232
  * })
3905
4233
  */
@@ -3916,16 +4244,18 @@ class Vitals {
3916
4244
  _queryParams["end_date"] = endDate;
3917
4245
  }
3918
4246
  const _response = yield core.fetcher({
3919
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/electrocardiogram_voltage`),
4247
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/electrocardiogram_voltage`),
3920
4248
  method: "GET",
3921
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
4249
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3922
4250
  contentType: "application/json",
3923
4251
  queryParameters: _queryParams,
4252
+ requestType: "json",
3924
4253
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
3925
4254
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
4255
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
3926
4256
  });
3927
4257
  if (_response.ok) {
3928
- return yield serializers.vitals.electrocardiogramVoltage.Response.parseOrThrow(_response.body, {
4258
+ return serializers.vitals.electrocardiogramVoltage.Response.parseOrThrow(_response.body, {
3929
4259
  unrecognizedObjectKeys: "passthrough",
3930
4260
  allowUnrecognizedUnionMembers: true,
3931
4261
  allowUnrecognizedEnumValues: true,
@@ -3935,7 +4265,7 @@ class Vitals {
3935
4265
  if (_response.error.reason === "status-code") {
3936
4266
  switch (_response.error.statusCode) {
3937
4267
  case 422:
3938
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
4268
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
3939
4269
  unrecognizedObjectKeys: "passthrough",
3940
4270
  allowUnrecognizedUnionMembers: true,
3941
4271
  allowUnrecognizedEnumValues: true,
@@ -3964,10 +4294,14 @@ class Vitals {
3964
4294
  });
3965
4295
  }
3966
4296
  /**
4297
+ * @param {string} userId
4298
+ * @param {Vital.VitalsBloodPressureRequest} request
4299
+ * @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
4300
+ *
3967
4301
  * @throws {@link Vital.UnprocessableEntityError}
3968
4302
  *
3969
4303
  * @example
3970
- * await vital.vitals.bloodPressure("user_id", {
4304
+ * await client.vitals.bloodPressure("user_id", {
3971
4305
  * startDate: "start_date"
3972
4306
  * })
3973
4307
  */
@@ -3984,16 +4318,18 @@ class Vitals {
3984
4318
  _queryParams["end_date"] = endDate;
3985
4319
  }
3986
4320
  const _response = yield core.fetcher({
3987
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/blood_pressure`),
4321
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/blood_pressure`),
3988
4322
  method: "GET",
3989
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
4323
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
3990
4324
  contentType: "application/json",
3991
4325
  queryParameters: _queryParams,
4326
+ requestType: "json",
3992
4327
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
3993
4328
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
4329
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
3994
4330
  });
3995
4331
  if (_response.ok) {
3996
- return yield serializers.vitals.bloodPressure.Response.parseOrThrow(_response.body, {
4332
+ return serializers.vitals.bloodPressure.Response.parseOrThrow(_response.body, {
3997
4333
  unrecognizedObjectKeys: "passthrough",
3998
4334
  allowUnrecognizedUnionMembers: true,
3999
4335
  allowUnrecognizedEnumValues: true,
@@ -4003,7 +4339,7 @@ class Vitals {
4003
4339
  if (_response.error.reason === "status-code") {
4004
4340
  switch (_response.error.statusCode) {
4005
4341
  case 422:
4006
- throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
4342
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
4007
4343
  unrecognizedObjectKeys: "passthrough",
4008
4344
  allowUnrecognizedUnionMembers: true,
4009
4345
  allowUnrecognizedEnumValues: true,