@tryvital/vital-node 3.1.7 → 3.1.9

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 (365) hide show
  1. package/api/errors/index.d.ts +1 -1
  2. package/api/errors/index.js +1 -1
  3. package/api/resources/activity/client/Client.d.ts +4 -4
  4. package/api/resources/activity/client/Client.js +6 -6
  5. package/api/resources/activity/client/requests/ActivityGetRawRequest.d.ts +1 -1
  6. package/api/resources/activity/client/requests/ActivityGetRequest.d.ts +1 -1
  7. package/api/resources/body/client/Client.d.ts +4 -4
  8. package/api/resources/body/client/Client.js +6 -6
  9. package/api/resources/body/client/requests/BodyGetRawRequest.d.ts +1 -1
  10. package/api/resources/body/client/requests/BodyGetRequest.d.ts +1 -1
  11. package/api/resources/devices/client/Client.d.ts +1 -1
  12. package/api/resources/devices/client/Client.js +2 -2
  13. package/api/resources/insurance/client/Client.d.ts +6 -1
  14. package/api/resources/insurance/client/Client.js +8 -3
  15. package/api/resources/insurance/client/requests/InsuranceSearchDiagnosisRequest.d.ts +1 -1
  16. package/api/resources/insurance/client/requests/PayorSearchRequest.d.ts +6 -0
  17. package/api/resources/introspect/client/Client.d.ts +2 -6
  18. package/api/resources/introspect/client/Client.js +4 -8
  19. package/api/resources/introspect/client/requests/IntrospectGetUserHistoricalPullsRequest.d.ts +1 -3
  20. package/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.d.ts +1 -3
  21. package/api/resources/labTests/client/Client.d.ts +70 -1
  22. package/api/resources/labTests/client/Client.js +122 -33
  23. package/api/resources/labTests/client/requests/AppointmentBookingRequest.d.ts +6 -0
  24. package/api/resources/labTests/client/requests/AppointmentCancelRequest.d.ts +6 -0
  25. package/api/resources/labTests/client/requests/AppointmentRescheduleRequest.d.ts +6 -0
  26. package/api/resources/labTests/client/requests/CreateLabTestRequest.d.ts +11 -0
  27. package/api/resources/labTests/client/requests/LabTestsGetAreaInfoRequest.d.ts +6 -0
  28. package/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.d.ts +4 -0
  29. package/api/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +12 -0
  30. package/api/resources/link/client/Client.d.ts +71 -0
  31. package/api/resources/link/client/Client.js +138 -14
  32. package/api/resources/link/client/requests/BeginLinkTokenRequest.d.ts +7 -0
  33. package/api/resources/link/client/requests/CompletePasswordProviderMfaBody.d.ts +13 -0
  34. package/api/resources/link/client/requests/CompletePasswordProviderMfaBody.js +5 -0
  35. package/api/resources/link/client/requests/DemoConnectionCreationPayload.d.ts +7 -0
  36. package/api/resources/link/client/requests/EmailAuthLink.d.ts +8 -0
  37. package/api/resources/link/client/requests/EmailProviderAuthLink.d.ts +6 -0
  38. package/api/resources/link/client/requests/IndividualProviderData.d.ts +9 -1
  39. package/api/resources/link/client/requests/LinkCodeCreateRequest.d.ts +6 -0
  40. package/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.d.ts +4 -0
  41. package/api/resources/link/client/requests/LinkTokenBase.d.ts +6 -0
  42. package/api/resources/link/client/requests/LinkTokenExchange.d.ts +6 -0
  43. package/api/resources/link/client/requests/ManualConnectionData.d.ts +6 -0
  44. package/api/resources/link/client/requests/PasswordAuthLink.d.ts +9 -0
  45. package/api/resources/link/client/requests/index.d.ts +1 -0
  46. package/api/resources/meal/client/Client.d.ts +2 -2
  47. package/api/resources/meal/client/Client.js +3 -3
  48. package/api/resources/meal/client/requests/MealGetRequest.d.ts +1 -1
  49. package/api/resources/profile/client/Client.d.ts +6 -0
  50. package/api/resources/profile/client/Client.js +8 -2
  51. package/api/resources/profile/client/requests/ProfileGetRawRequest.d.ts +4 -0
  52. package/api/resources/profile/client/requests/ProfileGetRequest.d.ts +4 -0
  53. package/api/resources/providers/client/Client.js +1 -1
  54. package/api/resources/sleep/client/Client.d.ts +7 -7
  55. package/api/resources/sleep/client/Client.js +11 -11
  56. package/api/resources/sleep/client/requests/SleepGetRawRequest.d.ts +1 -1
  57. package/api/resources/sleep/client/requests/SleepGetRequest.d.ts +1 -1
  58. package/api/resources/sleep/client/requests/SleepGetStreamRequest.d.ts +1 -1
  59. package/api/resources/team/client/Client.d.ts +5 -2
  60. package/api/resources/team/client/Client.js +12 -9
  61. package/api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.d.ts +1 -1
  62. package/api/resources/testkit/client/Client.js +2 -2
  63. package/api/resources/user/client/Client.d.ts +34 -2
  64. package/api/resources/user/client/Client.js +46 -14
  65. package/api/resources/user/client/requests/UserCreateBody.d.ts +7 -1
  66. package/api/resources/user/client/requests/UserGetAllRequest.d.ts +4 -0
  67. package/api/resources/user/client/requests/UserPatchBody.d.ts +1 -1
  68. package/api/resources/user/client/requests/UserRefreshRequest.d.ts +4 -0
  69. package/api/resources/user/client/requests/UserUndoDeleteRequest.d.ts +4 -0
  70. package/api/resources/vitals/client/Client.d.ts +100 -100
  71. package/api/resources/vitals/client/Client.js +150 -150
  72. package/api/resources/vitals/client/requests/VitalsBloodOxygenGroupedRequest.d.ts +1 -1
  73. package/api/resources/vitals/client/requests/VitalsBloodOxygenRequest.d.ts +1 -1
  74. package/api/resources/vitals/client/requests/VitalsBloodPressureGroupedRequest.d.ts +1 -1
  75. package/api/resources/vitals/client/requests/VitalsBloodPressureRequest.d.ts +1 -1
  76. package/api/resources/vitals/client/requests/VitalsBodyFatGroupedRequest.d.ts +1 -1
  77. package/api/resources/vitals/client/requests/VitalsBodyFatRequest.d.ts +1 -1
  78. package/api/resources/vitals/client/requests/VitalsBodyWeightGroupedRequest.d.ts +1 -1
  79. package/api/resources/vitals/client/requests/VitalsBodyWeightRequest.d.ts +1 -1
  80. package/api/resources/vitals/client/requests/VitalsCaffeineGroupedRequest.d.ts +1 -1
  81. package/api/resources/vitals/client/requests/VitalsCaffeineRequest.d.ts +1 -1
  82. package/api/resources/vitals/client/requests/VitalsCaloriesActiveGroupedRequest.d.ts +1 -1
  83. package/api/resources/vitals/client/requests/VitalsCaloriesActiveRequest.d.ts +1 -1
  84. package/api/resources/vitals/client/requests/VitalsCaloriesBasalGroupedRequest.d.ts +1 -1
  85. package/api/resources/vitals/client/requests/VitalsCaloriesBasalRequest.d.ts +1 -1
  86. package/api/resources/vitals/client/requests/VitalsCholesterolGroupedRequest.d.ts +1 -1
  87. package/api/resources/vitals/client/requests/VitalsCholesterolHdlRequest.d.ts +1 -1
  88. package/api/resources/vitals/client/requests/VitalsCholesterolLdlRequest.d.ts +1 -1
  89. package/api/resources/vitals/client/requests/VitalsCholesterolRequest.d.ts +1 -1
  90. package/api/resources/vitals/client/requests/VitalsCholesterolTotalRequest.d.ts +1 -1
  91. package/api/resources/vitals/client/requests/VitalsCholesterolTriglyceridesRequest.d.ts +1 -1
  92. package/api/resources/vitals/client/requests/VitalsDistanceGroupedRequest.d.ts +1 -1
  93. package/api/resources/vitals/client/requests/VitalsDistanceRequest.d.ts +1 -1
  94. package/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageGroupedRequest.d.ts +1 -1
  95. package/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.d.ts +1 -1
  96. package/api/resources/vitals/client/requests/VitalsFloorsClimbedGroupedRequest.d.ts +1 -1
  97. package/api/resources/vitals/client/requests/VitalsFloorsClimbedRequest.d.ts +1 -1
  98. package/api/resources/vitals/client/requests/VitalsGlucoseGroupedRequest.d.ts +1 -1
  99. package/api/resources/vitals/client/requests/VitalsGlucoseRequest.d.ts +1 -1
  100. package/api/resources/vitals/client/requests/VitalsHeartrateGroupedRequest.d.ts +1 -1
  101. package/api/resources/vitals/client/requests/VitalsHeartrateRequest.d.ts +1 -1
  102. package/api/resources/vitals/client/requests/VitalsHrvGroupedRequest.d.ts +1 -1
  103. package/api/resources/vitals/client/requests/VitalsHrvRequest.d.ts +1 -1
  104. package/api/resources/vitals/client/requests/VitalsHypnogramGroupedRequest.d.ts +1 -1
  105. package/api/resources/vitals/client/requests/VitalsHypnogramRequest.d.ts +1 -1
  106. package/api/resources/vitals/client/requests/VitalsIgeGroupedRequest.d.ts +1 -1
  107. package/api/resources/vitals/client/requests/VitalsIgeRequest.d.ts +1 -1
  108. package/api/resources/vitals/client/requests/VitalsIggGroupedRequest.d.ts +1 -1
  109. package/api/resources/vitals/client/requests/VitalsIggRequest.d.ts +1 -1
  110. package/api/resources/vitals/client/requests/VitalsMindfulnessMinutesGroupedRequest.d.ts +1 -1
  111. package/api/resources/vitals/client/requests/VitalsMindfulnessMinutesRequest.d.ts +1 -1
  112. package/api/resources/vitals/client/requests/VitalsRespiratoryRateGroupedRequest.d.ts +1 -1
  113. package/api/resources/vitals/client/requests/VitalsRespiratoryRateRequest.d.ts +1 -1
  114. package/api/resources/vitals/client/requests/VitalsStepsGroupedRequest.d.ts +1 -1
  115. package/api/resources/vitals/client/requests/VitalsStepsRequest.d.ts +1 -1
  116. package/api/resources/vitals/client/requests/VitalsStressLevelGroupedRequest.d.ts +1 -1
  117. package/api/resources/vitals/client/requests/VitalsStressLevelRequest.d.ts +1 -1
  118. package/api/resources/vitals/client/requests/VitalsVo2MaxGroupedRequest.d.ts +1 -1
  119. package/api/resources/vitals/client/requests/VitalsVo2MaxRequest.d.ts +1 -1
  120. package/api/resources/vitals/client/requests/VitalsWaterGroupedRequest.d.ts +1 -1
  121. package/api/resources/vitals/client/requests/VitalsWaterRequest.d.ts +1 -1
  122. package/api/resources/workouts/client/Client.d.ts +5 -5
  123. package/api/resources/workouts/client/Client.js +8 -8
  124. package/api/resources/workouts/client/requests/WorkoutsGetRawRequest.d.ts +1 -1
  125. package/api/resources/workouts/client/requests/WorkoutsGetRequest.d.ts +1 -1
  126. package/api/types/AppointmentType.d.ts +3 -0
  127. package/api/types/ClientFacingCaloriesActiveTimeseries.d.ts +1 -0
  128. package/api/types/ClientFacingCaloriesBasalTimeseries.d.ts +1 -0
  129. package/api/types/ClientFacingDistanceTimeseries.d.ts +1 -0
  130. package/api/types/ClientFacingFloorsClimbedTimeseries.d.ts +1 -0
  131. package/api/types/ClientFacingStepsTimeseries.d.ts +1 -0
  132. package/api/types/ClientFacingUser.d.ts +1 -1
  133. package/api/types/ConnectionStatus.d.ts +3 -2
  134. package/api/types/ConnectionStatusState.d.ts +2 -1
  135. package/api/types/ConnectionStatusState.js +1 -0
  136. package/api/types/EmailProviders.d.ts +3 -0
  137. package/api/types/PasswordProviders.d.ts +2 -1
  138. package/api/types/PasswordProviders.js +1 -0
  139. package/api/types/ProfileInDb.d.ts +1 -1
  140. package/api/types/ProviderLinkResponse.d.ts +5 -3
  141. package/api/types/ProviderLinkResponseState.d.ts +2 -1
  142. package/api/types/ProviderLinkResponseState.js +1 -0
  143. package/api/types/ProviderMfaRequest.d.ts +8 -0
  144. package/api/types/ProviderMfaRequest.js +5 -0
  145. package/api/types/ProviderMfaRequestMethod.d.ts +8 -0
  146. package/api/types/ProviderMfaRequestMethod.js +10 -0
  147. package/api/types/Providers.d.ts +2 -1
  148. package/api/types/Providers.js +1 -0
  149. package/api/types/UserRefreshErrorResponse.d.ts +1 -1
  150. package/api/types/UserRefreshSuccessResponse.d.ts +1 -1
  151. package/api/types/index.d.ts +2 -0
  152. package/api/types/index.js +2 -0
  153. package/dist/api/errors/index.d.ts +1 -1
  154. package/dist/api/errors/index.js +1 -1
  155. package/dist/api/resources/activity/client/Client.d.ts +4 -4
  156. package/dist/api/resources/activity/client/Client.js +6 -6
  157. package/dist/api/resources/activity/client/requests/ActivityGetRawRequest.d.ts +1 -1
  158. package/dist/api/resources/activity/client/requests/ActivityGetRequest.d.ts +1 -1
  159. package/dist/api/resources/body/client/Client.d.ts +4 -4
  160. package/dist/api/resources/body/client/Client.js +6 -6
  161. package/dist/api/resources/body/client/requests/BodyGetRawRequest.d.ts +1 -1
  162. package/dist/api/resources/body/client/requests/BodyGetRequest.d.ts +1 -1
  163. package/dist/api/resources/devices/client/Client.d.ts +1 -1
  164. package/dist/api/resources/devices/client/Client.js +2 -2
  165. package/dist/api/resources/insurance/client/Client.d.ts +6 -1
  166. package/dist/api/resources/insurance/client/Client.js +8 -3
  167. package/dist/api/resources/insurance/client/requests/InsuranceSearchDiagnosisRequest.d.ts +1 -1
  168. package/dist/api/resources/insurance/client/requests/PayorSearchRequest.d.ts +6 -0
  169. package/dist/api/resources/introspect/client/Client.d.ts +2 -6
  170. package/dist/api/resources/introspect/client/Client.js +4 -8
  171. package/dist/api/resources/introspect/client/requests/IntrospectGetUserHistoricalPullsRequest.d.ts +1 -3
  172. package/dist/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.d.ts +1 -3
  173. package/dist/api/resources/labTests/client/Client.d.ts +70 -1
  174. package/dist/api/resources/labTests/client/Client.js +122 -33
  175. package/dist/api/resources/labTests/client/requests/AppointmentBookingRequest.d.ts +6 -0
  176. package/dist/api/resources/labTests/client/requests/AppointmentCancelRequest.d.ts +6 -0
  177. package/dist/api/resources/labTests/client/requests/AppointmentRescheduleRequest.d.ts +6 -0
  178. package/dist/api/resources/labTests/client/requests/CreateLabTestRequest.d.ts +11 -0
  179. package/dist/api/resources/labTests/client/requests/LabTestsGetAreaInfoRequest.d.ts +6 -0
  180. package/dist/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.d.ts +4 -0
  181. package/dist/api/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +12 -0
  182. package/dist/api/resources/link/client/Client.d.ts +71 -0
  183. package/dist/api/resources/link/client/Client.js +138 -14
  184. package/dist/api/resources/link/client/requests/BeginLinkTokenRequest.d.ts +7 -0
  185. package/dist/api/resources/link/client/requests/CompletePasswordProviderMfaBody.d.ts +13 -0
  186. package/dist/api/resources/link/client/requests/CompletePasswordProviderMfaBody.js +5 -0
  187. package/dist/api/resources/link/client/requests/DemoConnectionCreationPayload.d.ts +7 -0
  188. package/dist/api/resources/link/client/requests/EmailAuthLink.d.ts +8 -0
  189. package/dist/api/resources/link/client/requests/EmailProviderAuthLink.d.ts +6 -0
  190. package/dist/api/resources/link/client/requests/IndividualProviderData.d.ts +9 -1
  191. package/dist/api/resources/link/client/requests/LinkCodeCreateRequest.d.ts +6 -0
  192. package/dist/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.d.ts +4 -0
  193. package/dist/api/resources/link/client/requests/LinkTokenBase.d.ts +6 -0
  194. package/dist/api/resources/link/client/requests/LinkTokenExchange.d.ts +6 -0
  195. package/dist/api/resources/link/client/requests/ManualConnectionData.d.ts +6 -0
  196. package/dist/api/resources/link/client/requests/PasswordAuthLink.d.ts +9 -0
  197. package/dist/api/resources/link/client/requests/index.d.ts +1 -0
  198. package/dist/api/resources/meal/client/Client.d.ts +2 -2
  199. package/dist/api/resources/meal/client/Client.js +3 -3
  200. package/dist/api/resources/meal/client/requests/MealGetRequest.d.ts +1 -1
  201. package/dist/api/resources/profile/client/Client.d.ts +6 -0
  202. package/dist/api/resources/profile/client/Client.js +8 -2
  203. package/dist/api/resources/profile/client/requests/ProfileGetRawRequest.d.ts +4 -0
  204. package/dist/api/resources/profile/client/requests/ProfileGetRequest.d.ts +4 -0
  205. package/dist/api/resources/providers/client/Client.js +1 -1
  206. package/dist/api/resources/sleep/client/Client.d.ts +7 -7
  207. package/dist/api/resources/sleep/client/Client.js +11 -11
  208. package/dist/api/resources/sleep/client/requests/SleepGetRawRequest.d.ts +1 -1
  209. package/dist/api/resources/sleep/client/requests/SleepGetRequest.d.ts +1 -1
  210. package/dist/api/resources/sleep/client/requests/SleepGetStreamRequest.d.ts +1 -1
  211. package/dist/api/resources/team/client/Client.d.ts +5 -2
  212. package/dist/api/resources/team/client/Client.js +12 -9
  213. package/dist/api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.d.ts +1 -1
  214. package/dist/api/resources/testkit/client/Client.js +2 -2
  215. package/dist/api/resources/user/client/Client.d.ts +34 -2
  216. package/dist/api/resources/user/client/Client.js +46 -14
  217. package/dist/api/resources/user/client/requests/UserCreateBody.d.ts +7 -1
  218. package/dist/api/resources/user/client/requests/UserGetAllRequest.d.ts +4 -0
  219. package/dist/api/resources/user/client/requests/UserPatchBody.d.ts +1 -1
  220. package/dist/api/resources/user/client/requests/UserRefreshRequest.d.ts +4 -0
  221. package/dist/api/resources/user/client/requests/UserUndoDeleteRequest.d.ts +4 -0
  222. package/dist/api/resources/vitals/client/Client.d.ts +100 -100
  223. package/dist/api/resources/vitals/client/Client.js +150 -150
  224. package/dist/api/resources/vitals/client/requests/VitalsBloodOxygenGroupedRequest.d.ts +1 -1
  225. package/dist/api/resources/vitals/client/requests/VitalsBloodOxygenRequest.d.ts +1 -1
  226. package/dist/api/resources/vitals/client/requests/VitalsBloodPressureGroupedRequest.d.ts +1 -1
  227. package/dist/api/resources/vitals/client/requests/VitalsBloodPressureRequest.d.ts +1 -1
  228. package/dist/api/resources/vitals/client/requests/VitalsBodyFatGroupedRequest.d.ts +1 -1
  229. package/dist/api/resources/vitals/client/requests/VitalsBodyFatRequest.d.ts +1 -1
  230. package/dist/api/resources/vitals/client/requests/VitalsBodyWeightGroupedRequest.d.ts +1 -1
  231. package/dist/api/resources/vitals/client/requests/VitalsBodyWeightRequest.d.ts +1 -1
  232. package/dist/api/resources/vitals/client/requests/VitalsCaffeineGroupedRequest.d.ts +1 -1
  233. package/dist/api/resources/vitals/client/requests/VitalsCaffeineRequest.d.ts +1 -1
  234. package/dist/api/resources/vitals/client/requests/VitalsCaloriesActiveGroupedRequest.d.ts +1 -1
  235. package/dist/api/resources/vitals/client/requests/VitalsCaloriesActiveRequest.d.ts +1 -1
  236. package/dist/api/resources/vitals/client/requests/VitalsCaloriesBasalGroupedRequest.d.ts +1 -1
  237. package/dist/api/resources/vitals/client/requests/VitalsCaloriesBasalRequest.d.ts +1 -1
  238. package/dist/api/resources/vitals/client/requests/VitalsCholesterolGroupedRequest.d.ts +1 -1
  239. package/dist/api/resources/vitals/client/requests/VitalsCholesterolHdlRequest.d.ts +1 -1
  240. package/dist/api/resources/vitals/client/requests/VitalsCholesterolLdlRequest.d.ts +1 -1
  241. package/dist/api/resources/vitals/client/requests/VitalsCholesterolRequest.d.ts +1 -1
  242. package/dist/api/resources/vitals/client/requests/VitalsCholesterolTotalRequest.d.ts +1 -1
  243. package/dist/api/resources/vitals/client/requests/VitalsCholesterolTriglyceridesRequest.d.ts +1 -1
  244. package/dist/api/resources/vitals/client/requests/VitalsDistanceGroupedRequest.d.ts +1 -1
  245. package/dist/api/resources/vitals/client/requests/VitalsDistanceRequest.d.ts +1 -1
  246. package/dist/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageGroupedRequest.d.ts +1 -1
  247. package/dist/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.d.ts +1 -1
  248. package/dist/api/resources/vitals/client/requests/VitalsFloorsClimbedGroupedRequest.d.ts +1 -1
  249. package/dist/api/resources/vitals/client/requests/VitalsFloorsClimbedRequest.d.ts +1 -1
  250. package/dist/api/resources/vitals/client/requests/VitalsGlucoseGroupedRequest.d.ts +1 -1
  251. package/dist/api/resources/vitals/client/requests/VitalsGlucoseRequest.d.ts +1 -1
  252. package/dist/api/resources/vitals/client/requests/VitalsHeartrateGroupedRequest.d.ts +1 -1
  253. package/dist/api/resources/vitals/client/requests/VitalsHeartrateRequest.d.ts +1 -1
  254. package/dist/api/resources/vitals/client/requests/VitalsHrvGroupedRequest.d.ts +1 -1
  255. package/dist/api/resources/vitals/client/requests/VitalsHrvRequest.d.ts +1 -1
  256. package/dist/api/resources/vitals/client/requests/VitalsHypnogramGroupedRequest.d.ts +1 -1
  257. package/dist/api/resources/vitals/client/requests/VitalsHypnogramRequest.d.ts +1 -1
  258. package/dist/api/resources/vitals/client/requests/VitalsIgeGroupedRequest.d.ts +1 -1
  259. package/dist/api/resources/vitals/client/requests/VitalsIgeRequest.d.ts +1 -1
  260. package/dist/api/resources/vitals/client/requests/VitalsIggGroupedRequest.d.ts +1 -1
  261. package/dist/api/resources/vitals/client/requests/VitalsIggRequest.d.ts +1 -1
  262. package/dist/api/resources/vitals/client/requests/VitalsMindfulnessMinutesGroupedRequest.d.ts +1 -1
  263. package/dist/api/resources/vitals/client/requests/VitalsMindfulnessMinutesRequest.d.ts +1 -1
  264. package/dist/api/resources/vitals/client/requests/VitalsRespiratoryRateGroupedRequest.d.ts +1 -1
  265. package/dist/api/resources/vitals/client/requests/VitalsRespiratoryRateRequest.d.ts +1 -1
  266. package/dist/api/resources/vitals/client/requests/VitalsStepsGroupedRequest.d.ts +1 -1
  267. package/dist/api/resources/vitals/client/requests/VitalsStepsRequest.d.ts +1 -1
  268. package/dist/api/resources/vitals/client/requests/VitalsStressLevelGroupedRequest.d.ts +1 -1
  269. package/dist/api/resources/vitals/client/requests/VitalsStressLevelRequest.d.ts +1 -1
  270. package/dist/api/resources/vitals/client/requests/VitalsVo2MaxGroupedRequest.d.ts +1 -1
  271. package/dist/api/resources/vitals/client/requests/VitalsVo2MaxRequest.d.ts +1 -1
  272. package/dist/api/resources/vitals/client/requests/VitalsWaterGroupedRequest.d.ts +1 -1
  273. package/dist/api/resources/vitals/client/requests/VitalsWaterRequest.d.ts +1 -1
  274. package/dist/api/resources/workouts/client/Client.d.ts +5 -5
  275. package/dist/api/resources/workouts/client/Client.js +8 -8
  276. package/dist/api/resources/workouts/client/requests/WorkoutsGetRawRequest.d.ts +1 -1
  277. package/dist/api/resources/workouts/client/requests/WorkoutsGetRequest.d.ts +1 -1
  278. package/dist/api/types/AppointmentType.d.ts +3 -0
  279. package/dist/api/types/ClientFacingCaloriesActiveTimeseries.d.ts +1 -0
  280. package/dist/api/types/ClientFacingCaloriesBasalTimeseries.d.ts +1 -0
  281. package/dist/api/types/ClientFacingDistanceTimeseries.d.ts +1 -0
  282. package/dist/api/types/ClientFacingFloorsClimbedTimeseries.d.ts +1 -0
  283. package/dist/api/types/ClientFacingStepsTimeseries.d.ts +1 -0
  284. package/dist/api/types/ClientFacingUser.d.ts +1 -1
  285. package/dist/api/types/ConnectionStatus.d.ts +3 -2
  286. package/dist/api/types/ConnectionStatusState.d.ts +2 -1
  287. package/dist/api/types/ConnectionStatusState.js +1 -0
  288. package/dist/api/types/EmailProviders.d.ts +3 -0
  289. package/dist/api/types/PasswordProviders.d.ts +2 -1
  290. package/dist/api/types/PasswordProviders.js +1 -0
  291. package/dist/api/types/ProfileInDb.d.ts +1 -1
  292. package/dist/api/types/ProviderLinkResponse.d.ts +5 -3
  293. package/dist/api/types/ProviderLinkResponseState.d.ts +2 -1
  294. package/dist/api/types/ProviderLinkResponseState.js +1 -0
  295. package/dist/api/types/ProviderMfaRequest.d.ts +8 -0
  296. package/dist/api/types/ProviderMfaRequest.js +5 -0
  297. package/dist/api/types/ProviderMfaRequestMethod.d.ts +8 -0
  298. package/dist/api/types/ProviderMfaRequestMethod.js +10 -0
  299. package/dist/api/types/Providers.d.ts +2 -1
  300. package/dist/api/types/Providers.js +1 -0
  301. package/dist/api/types/UserRefreshErrorResponse.d.ts +1 -1
  302. package/dist/api/types/UserRefreshSuccessResponse.d.ts +1 -1
  303. package/dist/api/types/index.d.ts +2 -0
  304. package/dist/api/types/index.js +2 -0
  305. package/dist/serialization/resources/link/client/requests/CompletePasswordProviderMfaBody.d.ts +12 -0
  306. package/dist/serialization/resources/link/client/requests/CompletePasswordProviderMfaBody.js +33 -0
  307. package/dist/serialization/resources/link/client/requests/IndividualProviderData.d.ts +3 -1
  308. package/dist/serialization/resources/link/client/requests/IndividualProviderData.js +2 -0
  309. package/dist/serialization/resources/link/client/requests/index.d.ts +1 -0
  310. package/dist/serialization/resources/link/client/requests/index.js +3 -1
  311. package/dist/serialization/types/ConnectionStatus.d.ts +4 -2
  312. package/dist/serialization/types/ConnectionStatus.js +4 -2
  313. package/dist/serialization/types/ConnectionStatusState.d.ts +1 -1
  314. package/dist/serialization/types/ConnectionStatusState.js +1 -1
  315. package/dist/serialization/types/PasswordProviders.d.ts +1 -1
  316. package/dist/serialization/types/PasswordProviders.js +1 -0
  317. package/dist/serialization/types/ProfileInDb.d.ts +1 -1
  318. package/dist/serialization/types/ProfileInDb.js +1 -1
  319. package/dist/serialization/types/ProviderLinkResponse.d.ts +7 -4
  320. package/dist/serialization/types/ProviderLinkResponse.js +7 -4
  321. package/dist/serialization/types/ProviderLinkResponseState.d.ts +1 -1
  322. package/dist/serialization/types/ProviderLinkResponseState.js +1 -1
  323. package/dist/serialization/types/ProviderMfaRequest.d.ts +14 -0
  324. package/dist/serialization/types/ProviderMfaRequest.js +35 -0
  325. package/dist/serialization/types/ProviderMfaRequestMethod.d.ts +10 -0
  326. package/dist/serialization/types/ProviderMfaRequestMethod.js +31 -0
  327. package/dist/serialization/types/Providers.d.ts +1 -1
  328. package/dist/serialization/types/Providers.js +1 -0
  329. package/dist/serialization/types/UserRefreshErrorResponse.d.ts +1 -1
  330. package/dist/serialization/types/UserRefreshErrorResponse.js +1 -1
  331. package/dist/serialization/types/UserRefreshSuccessResponse.d.ts +1 -1
  332. package/dist/serialization/types/UserRefreshSuccessResponse.js +1 -1
  333. package/dist/serialization/types/index.d.ts +2 -0
  334. package/dist/serialization/types/index.js +2 -0
  335. package/package.json +1 -1
  336. package/serialization/resources/link/client/requests/CompletePasswordProviderMfaBody.d.ts +12 -0
  337. package/serialization/resources/link/client/requests/CompletePasswordProviderMfaBody.js +33 -0
  338. package/serialization/resources/link/client/requests/IndividualProviderData.d.ts +3 -1
  339. package/serialization/resources/link/client/requests/IndividualProviderData.js +2 -0
  340. package/serialization/resources/link/client/requests/index.d.ts +1 -0
  341. package/serialization/resources/link/client/requests/index.js +3 -1
  342. package/serialization/types/ConnectionStatus.d.ts +4 -2
  343. package/serialization/types/ConnectionStatus.js +4 -2
  344. package/serialization/types/ConnectionStatusState.d.ts +1 -1
  345. package/serialization/types/ConnectionStatusState.js +1 -1
  346. package/serialization/types/PasswordProviders.d.ts +1 -1
  347. package/serialization/types/PasswordProviders.js +1 -0
  348. package/serialization/types/ProfileInDb.d.ts +1 -1
  349. package/serialization/types/ProfileInDb.js +1 -1
  350. package/serialization/types/ProviderLinkResponse.d.ts +7 -4
  351. package/serialization/types/ProviderLinkResponse.js +7 -4
  352. package/serialization/types/ProviderLinkResponseState.d.ts +1 -1
  353. package/serialization/types/ProviderLinkResponseState.js +1 -1
  354. package/serialization/types/ProviderMfaRequest.d.ts +14 -0
  355. package/serialization/types/ProviderMfaRequest.js +35 -0
  356. package/serialization/types/ProviderMfaRequestMethod.d.ts +10 -0
  357. package/serialization/types/ProviderMfaRequestMethod.js +31 -0
  358. package/serialization/types/Providers.d.ts +1 -1
  359. package/serialization/types/Providers.js +1 -0
  360. package/serialization/types/UserRefreshErrorResponse.d.ts +1 -1
  361. package/serialization/types/UserRefreshErrorResponse.js +1 -1
  362. package/serialization/types/UserRefreshSuccessResponse.d.ts +1 -1
  363. package/serialization/types/UserRefreshSuccessResponse.js +1 -1
  364. package/serialization/types/index.d.ts +2 -0
  365. package/serialization/types/index.js +2 -0
@@ -1,11 +1,19 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Vital from "../../../..";
5
+ /**
6
+ * @example
7
+ * {
8
+ * username: "username",
9
+ * password: "password"
10
+ * }
11
+ */
4
12
  export interface IndividualProviderData {
5
- vitalLinkClientRegion?: string;
6
13
  vitalLinkToken?: string;
7
14
  /** Username for provider */
8
15
  username: string;
9
16
  /** Password for provider */
10
17
  password: string;
18
+ region?: Vital.Region;
11
19
  }
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * userId: "user_id"
8
+ * }
9
+ */
4
10
  export interface LinkCodeCreateRequest {
5
11
  userId: string;
6
12
  expiresAt?: Date;
@@ -1,6 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
4
8
  export interface LinkGenerateOauthLinkRequest {
5
9
  vitalLinkToken?: string;
6
10
  }
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * token: "token"
8
+ * }
9
+ */
4
10
  export interface LinkTokenBase {
5
11
  token: string;
6
12
  isUsed?: boolean;
@@ -2,6 +2,12 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vital from "../../../..";
5
+ /**
6
+ * @example
7
+ * {
8
+ * userId: "user_id"
9
+ * }
10
+ */
5
11
  export interface LinkTokenExchange {
6
12
  /** User id returned by vital create user request. This id should be stored in your database against the user and used for all interactions with the vital api. */
7
13
  userId: string;
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {
7
+ * userId: "user_id"
8
+ * }
9
+ */
4
10
  export interface ManualConnectionData {
5
11
  userId: string;
6
12
  providerId?: string;
@@ -2,6 +2,15 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vital from "../../../..";
5
+ /**
6
+ * @example
7
+ * {
8
+ * username: "username",
9
+ * password: "password",
10
+ * provider: Vital.Providers.Oura,
11
+ * authType: Vital.AuthType.Password
12
+ * }
13
+ */
5
14
  export interface PasswordAuthLink {
6
15
  vitalLinkToken?: string;
7
16
  username: string;
@@ -7,6 +7,7 @@ export { EmailAuthLink } from "./EmailAuthLink";
7
7
  export { PasswordAuthLink } from "./PasswordAuthLink";
8
8
  export { LinkGenerateOauthLinkRequest } from "./LinkGenerateOauthLinkRequest";
9
9
  export { IndividualProviderData } from "./IndividualProviderData";
10
+ export { CompletePasswordProviderMfaBody } from "./CompletePasswordProviderMfaBody";
10
11
  export { EmailProviderAuthLink } from "./EmailProviderAuthLink";
11
12
  export { LinkGetAllProvidersRequest } from "./LinkGetAllProvidersRequest";
12
13
  export { ManualConnectionData } from "./ManualConnectionData";
@@ -22,8 +22,8 @@ export declare class Meal {
22
22
  * @throws {@link Vital.UnprocessableEntityError}
23
23
  *
24
24
  * @example
25
- * await vital.meal.get("user-id", {
26
- * startDate: "start-date"
25
+ * await vital.meal.get("user_id", {
26
+ * startDate: "start_date"
27
27
  * })
28
28
  */
29
29
  get(userId: string, request: Vital.MealGetRequest, requestOptions?: Meal.RequestOptions): Promise<Vital.ClientFacingMealResponse>;
@@ -54,8 +54,8 @@ class Meal {
54
54
  * @throws {@link Vital.UnprocessableEntityError}
55
55
  *
56
56
  * @example
57
- * await vital.meal.get("user-id", {
58
- * startDate: "start-date"
57
+ * await vital.meal.get("user_id", {
58
+ * startDate: "start_date"
59
59
  * })
60
60
  */
61
61
  get(userId, request, requestOptions) {
@@ -73,7 +73,7 @@ class Meal {
73
73
  const _response = yield core.fetcher({
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/meal/${userId}`),
75
75
  method: "GET",
76
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
77
77
  contentType: "application/json",
78
78
  queryParameters: _queryParams,
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * startDate: "start-date"
7
+ * startDate: "start_date"
8
8
  * }
9
9
  */
10
10
  export interface MealGetRequest {
@@ -20,11 +20,17 @@ export declare class Profile {
20
20
  /**
21
21
  * Get Daily profile for user_id
22
22
  * @throws {@link Vital.UnprocessableEntityError}
23
+ *
24
+ * @example
25
+ * await vital.profile.get("user_id")
23
26
  */
24
27
  get(userId: string, request?: Vital.ProfileGetRequest, requestOptions?: Profile.RequestOptions): Promise<Vital.ClientFacingProfile>;
25
28
  /**
26
29
  * Get Daily profile for user_id
27
30
  * @throws {@link Vital.UnprocessableEntityError}
31
+ *
32
+ * @example
33
+ * await vital.profile.getRaw("user_id")
28
34
  */
29
35
  getRaw(userId: string, request?: Vital.ProfileGetRawRequest, requestOptions?: Profile.RequestOptions): Promise<Vital.RawProfile>;
30
36
  protected _getCustomAuthorizationHeaders(): Promise<{
@@ -52,6 +52,9 @@ class Profile {
52
52
  /**
53
53
  * Get Daily profile for user_id
54
54
  * @throws {@link Vital.UnprocessableEntityError}
55
+ *
56
+ * @example
57
+ * await vital.profile.get("user_id")
55
58
  */
56
59
  get(userId, request = {}, requestOptions) {
57
60
  var _a;
@@ -64,7 +67,7 @@ class Profile {
64
67
  const _response = yield core.fetcher({
65
68
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/profile/${userId}`),
66
69
  method: "GET",
67
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
70
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
71
  contentType: "application/json",
69
72
  queryParameters: _queryParams,
70
73
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -112,6 +115,9 @@ class Profile {
112
115
  /**
113
116
  * Get Daily profile for user_id
114
117
  * @throws {@link Vital.UnprocessableEntityError}
118
+ *
119
+ * @example
120
+ * await vital.profile.getRaw("user_id")
115
121
  */
116
122
  getRaw(userId, request = {}, requestOptions) {
117
123
  var _a;
@@ -124,7 +130,7 @@ class Profile {
124
130
  const _response = yield core.fetcher({
125
131
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/profile/${userId}/raw`),
126
132
  method: "GET",
127
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
133
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
128
134
  contentType: "application/json",
129
135
  queryParameters: _queryParams,
130
136
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,6 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
4
8
  export interface ProfileGetRawRequest {
5
9
  /**
6
10
  * Provider oura/strava etc
@@ -1,6 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
4
8
  export interface ProfileGetRequest {
5
9
  /**
6
10
  * Provider oura/strava etc
@@ -60,7 +60,7 @@ class Providers {
60
60
  const _response = yield core.fetcher({
61
61
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/providers"),
62
62
  method: "GET",
63
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
63
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
64
64
  contentType: "application/json",
65
65
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
66
66
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -22,8 +22,8 @@ export declare class Sleep {
22
22
  * @throws {@link Vital.UnprocessableEntityError}
23
23
  *
24
24
  * @example
25
- * await vital.sleep.get("user-id", {
26
- * startDate: "start-date"
25
+ * await vital.sleep.get("user_id", {
26
+ * startDate: "start_date"
27
27
  * })
28
28
  */
29
29
  get(userId: string, request: Vital.SleepGetRequest, requestOptions?: Sleep.RequestOptions): Promise<Vital.ClientSleepResponse>;
@@ -32,8 +32,8 @@ export declare class Sleep {
32
32
  * @throws {@link Vital.UnprocessableEntityError}
33
33
  *
34
34
  * @example
35
- * await vital.sleep.getStream("user-id", {
36
- * startDate: "start-date"
35
+ * await vital.sleep.getStream("user_id", {
36
+ * startDate: "start_date"
37
37
  * })
38
38
  */
39
39
  getStream(userId: string, request: Vital.SleepGetStreamRequest, requestOptions?: Sleep.RequestOptions): Promise<Vital.ClientSleepResponse>;
@@ -42,8 +42,8 @@ export declare class Sleep {
42
42
  * @throws {@link Vital.UnprocessableEntityError}
43
43
  *
44
44
  * @example
45
- * await vital.sleep.getRaw("user-id", {
46
- * startDate: "start-date"
45
+ * await vital.sleep.getRaw("user_id", {
46
+ * startDate: "start_date"
47
47
  * })
48
48
  */
49
49
  getRaw(userId: string, request: Vital.SleepGetRawRequest, requestOptions?: Sleep.RequestOptions): Promise<Vital.RawSleep>;
@@ -52,7 +52,7 @@ export declare class Sleep {
52
52
  * @throws {@link Vital.UnprocessableEntityError}
53
53
  *
54
54
  * @example
55
- * await vital.sleep.getStreamBySleepId("sleep-id")
55
+ * await vital.sleep.getStreamBySleepId("sleep_id")
56
56
  */
57
57
  getStreamBySleepId(sleepId: string, requestOptions?: Sleep.RequestOptions): Promise<Vital.ClientFacingSleepStream>;
58
58
  protected _getCustomAuthorizationHeaders(): Promise<{
@@ -54,8 +54,8 @@ class Sleep {
54
54
  * @throws {@link Vital.UnprocessableEntityError}
55
55
  *
56
56
  * @example
57
- * await vital.sleep.get("user-id", {
58
- * startDate: "start-date"
57
+ * await vital.sleep.get("user_id", {
58
+ * startDate: "start_date"
59
59
  * })
60
60
  */
61
61
  get(userId, request, requestOptions) {
@@ -73,7 +73,7 @@ class Sleep {
73
73
  const _response = yield core.fetcher({
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/sleep/${userId}`),
75
75
  method: "GET",
76
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
77
77
  contentType: "application/json",
78
78
  queryParameters: _queryParams,
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -123,8 +123,8 @@ class Sleep {
123
123
  * @throws {@link Vital.UnprocessableEntityError}
124
124
  *
125
125
  * @example
126
- * await vital.sleep.getStream("user-id", {
127
- * startDate: "start-date"
126
+ * await vital.sleep.getStream("user_id", {
127
+ * startDate: "start_date"
128
128
  * })
129
129
  */
130
130
  getStream(userId, request, requestOptions) {
@@ -142,7 +142,7 @@ class Sleep {
142
142
  const _response = yield core.fetcher({
143
143
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/sleep/${userId}/stream`),
144
144
  method: "GET",
145
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
145
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
146
146
  contentType: "application/json",
147
147
  queryParameters: _queryParams,
148
148
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -192,8 +192,8 @@ class Sleep {
192
192
  * @throws {@link Vital.UnprocessableEntityError}
193
193
  *
194
194
  * @example
195
- * await vital.sleep.getRaw("user-id", {
196
- * startDate: "start-date"
195
+ * await vital.sleep.getRaw("user_id", {
196
+ * startDate: "start_date"
197
197
  * })
198
198
  */
199
199
  getRaw(userId, request, requestOptions) {
@@ -211,7 +211,7 @@ class Sleep {
211
211
  const _response = yield core.fetcher({
212
212
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/sleep/${userId}/raw`),
213
213
  method: "GET",
214
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
214
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
215
215
  contentType: "application/json",
216
216
  queryParameters: _queryParams,
217
217
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -261,7 +261,7 @@ class Sleep {
261
261
  * @throws {@link Vital.UnprocessableEntityError}
262
262
  *
263
263
  * @example
264
- * await vital.sleep.getStreamBySleepId("sleep-id")
264
+ * await vital.sleep.getStreamBySleepId("sleep_id")
265
265
  */
266
266
  getStreamBySleepId(sleepId, requestOptions) {
267
267
  var _a;
@@ -269,7 +269,7 @@ class Sleep {
269
269
  const _response = yield core.fetcher({
270
270
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/sleep/${sleepId}/stream`),
271
271
  method: "GET",
272
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
272
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
273
273
  contentType: "application/json",
274
274
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
275
275
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * startDate: "start-date"
7
+ * startDate: "start_date"
8
8
  * }
9
9
  */
10
10
  export interface SleepGetRawRequest {
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * startDate: "start-date"
7
+ * startDate: "start_date"
8
8
  * }
9
9
  */
10
10
  export interface SleepGetRequest {
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * startDate: "start-date"
7
+ * startDate: "start_date"
8
8
  * }
9
9
  */
10
10
  export interface SleepGetStreamRequest {
@@ -28,6 +28,9 @@ export declare class Team {
28
28
  /**
29
29
  * Get team.
30
30
  * @throws {@link Vital.UnprocessableEntityError}
31
+ *
32
+ * @example
33
+ * await vital.team.get("team_id")
31
34
  */
32
35
  get(teamId: string, requestOptions?: Team.RequestOptions): Promise<Vital.ClientFacingTeam>;
33
36
  /**
@@ -53,7 +56,7 @@ export declare class Team {
53
56
  *
54
57
  * @example
55
58
  * await vital.team.updateSourcePriorities({
56
- * teamId: "team-id"
59
+ * teamId: "team_id"
57
60
  * })
58
61
  */
59
62
  updateSourcePriorities(request: Vital.TeamUpdateSourcePrioritiesRequest, requestOptions?: Team.RequestOptions): Promise<Record<string, unknown>[]>;
@@ -61,7 +64,7 @@ export declare class Team {
61
64
  * @throws {@link Vital.UnprocessableEntityError}
62
65
  *
63
66
  * @example
64
- * await vital.team.getPhysicians("team-id")
67
+ * await vital.team.getPhysicians("team_id")
65
68
  */
66
69
  getPhysicians(teamId: string, requestOptions?: Team.RequestOptions): Promise<Vital.ClientFacingPhysician[]>;
67
70
  protected _getCustomAuthorizationHeaders(): Promise<{
@@ -63,7 +63,7 @@ class Team {
63
63
  const _response = yield core.fetcher({
64
64
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/team/link/config"),
65
65
  method: "GET",
66
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
66
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
67
67
  contentType: "application/json",
68
68
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
69
69
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -110,6 +110,9 @@ class Team {
110
110
  /**
111
111
  * Get team.
112
112
  * @throws {@link Vital.UnprocessableEntityError}
113
+ *
114
+ * @example
115
+ * await vital.team.get("team_id")
113
116
  */
114
117
  get(teamId, requestOptions) {
115
118
  var _a;
@@ -117,7 +120,7 @@ class Team {
117
120
  const _response = yield core.fetcher({
118
121
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/team/${teamId}`),
119
122
  method: "GET",
120
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
123
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
121
124
  contentType: "application/json",
122
125
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
123
126
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -179,7 +182,7 @@ class Team {
179
182
  const _response = yield core.fetcher({
180
183
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/team/users/search"),
181
184
  method: "GET",
182
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
185
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
183
186
  contentType: "application/json",
184
187
  queryParameters: _queryParams,
185
188
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -230,7 +233,7 @@ class Team {
230
233
  const _response = yield core.fetcher({
231
234
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/team/svix/url"),
232
235
  method: "GET",
233
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
236
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
234
237
  contentType: "application/json",
235
238
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
236
239
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -282,7 +285,7 @@ class Team {
282
285
  const _response = yield core.fetcher({
283
286
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/team/source/priorities"),
284
287
  method: "GET",
285
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
288
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
286
289
  contentType: "application/json",
287
290
  queryParameters: _queryParams,
288
291
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -333,7 +336,7 @@ class Team {
333
336
  *
334
337
  * @example
335
338
  * await vital.team.updateSourcePriorities({
336
- * teamId: "team-id"
339
+ * teamId: "team_id"
337
340
  * })
338
341
  */
339
342
  updateSourcePriorities(request, requestOptions) {
@@ -345,7 +348,7 @@ class Team {
345
348
  const _response = yield core.fetcher({
346
349
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/team/source/priorities"),
347
350
  method: "PATCH",
348
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
351
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
349
352
  contentType: "application/json",
350
353
  queryParameters: _queryParams,
351
354
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -394,7 +397,7 @@ class Team {
394
397
  * @throws {@link Vital.UnprocessableEntityError}
395
398
  *
396
399
  * @example
397
- * await vital.team.getPhysicians("team-id")
400
+ * await vital.team.getPhysicians("team_id")
398
401
  */
399
402
  getPhysicians(teamId, requestOptions) {
400
403
  var _a;
@@ -402,7 +405,7 @@ class Team {
402
405
  const _response = yield core.fetcher({
403
406
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/team/${teamId}/physicians`),
404
407
  method: "GET",
405
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
408
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
406
409
  contentType: "application/json",
407
410
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
408
411
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * teamId: "team-id"
7
+ * teamId: "team_id"
8
8
  * }
9
9
  */
10
10
  export interface TeamUpdateSourcePrioritiesRequest {
@@ -58,7 +58,7 @@ class Testkit {
58
58
  const _response = yield core.fetcher({
59
59
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/testkit/register"),
60
60
  method: "POST",
61
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
61
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
62
62
  contentType: "application/json",
63
63
  body: yield serializers.RegisterTestkitRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
64
64
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -113,7 +113,7 @@ class Testkit {
113
113
  const _response = yield core.fetcher({
114
114
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/testkit"),
115
115
  method: "POST",
116
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
116
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
117
117
  contentType: "application/json",
118
118
  body: yield serializers.CreateRegistrableTestkitOrderRequest.jsonOrThrow(request, {
119
119
  unrecognizedObjectKeys: "strip",