@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,2 +1,2 @@
1
- export * from "./BadRequestError";
2
1
  export * from "./UnprocessableEntityError";
2
+ export * from "./BadRequestError";
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./BadRequestError"), exports);
18
17
  __exportStar(require("./UnprocessableEntityError"), exports);
18
+ __exportStar(require("./BadRequestError"), exports);
@@ -22,8 +22,8 @@ export declare class Activity {
22
22
  * @throws {@link Vital.UnprocessableEntityError}
23
23
  *
24
24
  * @example
25
- * await vital.activity.get("user-id", {
26
- * startDate: "start-date"
25
+ * await vital.activity.get("user_id", {
26
+ * startDate: "start_date"
27
27
  * })
28
28
  */
29
29
  get(userId: string, request: Vital.ActivityGetRequest, requestOptions?: Activity.RequestOptions): Promise<Vital.ClientActivityResponse>;
@@ -32,8 +32,8 @@ export declare class Activity {
32
32
  * @throws {@link Vital.UnprocessableEntityError}
33
33
  *
34
34
  * @example
35
- * await vital.activity.getRaw("user-id", {
36
- * startDate: "start-date"
35
+ * await vital.activity.getRaw("user_id", {
36
+ * startDate: "start_date"
37
37
  * })
38
38
  */
39
39
  getRaw(userId: string, request: Vital.ActivityGetRawRequest, requestOptions?: Activity.RequestOptions): Promise<Vital.RawActivity>;
@@ -54,8 +54,8 @@ class Activity {
54
54
  * @throws {@link Vital.UnprocessableEntityError}
55
55
  *
56
56
  * @example
57
- * await vital.activity.get("user-id", {
58
- * startDate: "start-date"
57
+ * await vital.activity.get("user_id", {
58
+ * startDate: "start_date"
59
59
  * })
60
60
  */
61
61
  get(userId, request, requestOptions) {
@@ -73,7 +73,7 @@ class Activity {
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/activity/${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 Activity {
123
123
  * @throws {@link Vital.UnprocessableEntityError}
124
124
  *
125
125
  * @example
126
- * await vital.activity.getRaw("user-id", {
127
- * startDate: "start-date"
126
+ * await vital.activity.getRaw("user_id", {
127
+ * startDate: "start_date"
128
128
  * })
129
129
  */
130
130
  getRaw(userId, request, requestOptions) {
@@ -142,7 +142,7 @@ class Activity {
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/activity/${userId}/raw`),
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,
@@ -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 ActivityGetRawRequest {
@@ -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 ActivityGetRequest {
@@ -22,8 +22,8 @@ export declare class Body {
22
22
  * @throws {@link Vital.UnprocessableEntityError}
23
23
  *
24
24
  * @example
25
- * await vital.body.get("user-id", {
26
- * startDate: "start-date"
25
+ * await vital.body.get("user_id", {
26
+ * startDate: "start_date"
27
27
  * })
28
28
  */
29
29
  get(userId: string, request: Vital.BodyGetRequest, requestOptions?: Body.RequestOptions): Promise<Vital.ClientBodyResponse>;
@@ -32,8 +32,8 @@ export declare class Body {
32
32
  * @throws {@link Vital.UnprocessableEntityError}
33
33
  *
34
34
  * @example
35
- * await vital.body.getRaw("user-id", {
36
- * startDate: "start-date"
35
+ * await vital.body.getRaw("user_id", {
36
+ * startDate: "start_date"
37
37
  * })
38
38
  */
39
39
  getRaw(userId: string, request: Vital.BodyGetRawRequest, requestOptions?: Body.RequestOptions): Promise<Vital.RawBody>;
@@ -54,8 +54,8 @@ class Body {
54
54
  * @throws {@link Vital.UnprocessableEntityError}
55
55
  *
56
56
  * @example
57
- * await vital.body.get("user-id", {
58
- * startDate: "start-date"
57
+ * await vital.body.get("user_id", {
58
+ * startDate: "start_date"
59
59
  * })
60
60
  */
61
61
  get(userId, request, requestOptions) {
@@ -73,7 +73,7 @@ class Body {
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/body/${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 Body {
123
123
  * @throws {@link Vital.UnprocessableEntityError}
124
124
  *
125
125
  * @example
126
- * await vital.body.getRaw("user-id", {
127
- * startDate: "start-date"
126
+ * await vital.body.getRaw("user_id", {
127
+ * startDate: "start_date"
128
128
  * })
129
129
  */
130
130
  getRaw(userId, request, requestOptions) {
@@ -142,7 +142,7 @@ class Body {
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/body/${userId}/raw`),
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,
@@ -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 BodyGetRawRequest {
@@ -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 BodyGetRequest {
@@ -22,7 +22,7 @@ export declare class Devices {
22
22
  * @throws {@link Vital.UnprocessableEntityError}
23
23
  *
24
24
  * @example
25
- * await vital.devices.getRaw("user-id")
25
+ * await vital.devices.getRaw("user_id")
26
26
  */
27
27
  getRaw(userId: string, request?: Vital.DevicesGetRawRequest, requestOptions?: Devices.RequestOptions): Promise<Vital.RawDevices>;
28
28
  protected _getCustomAuthorizationHeaders(): Promise<{
@@ -54,7 +54,7 @@ class Devices {
54
54
  * @throws {@link Vital.UnprocessableEntityError}
55
55
  *
56
56
  * @example
57
- * await vital.devices.getRaw("user-id")
57
+ * await vital.devices.getRaw("user_id")
58
58
  */
59
59
  getRaw(userId, request = {}, requestOptions) {
60
60
  var _a;
@@ -67,7 +67,7 @@ class Devices {
67
67
  const _response = yield core.fetcher({
68
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/devices/${userId}/raw`),
69
69
  method: "GET",
70
- 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())),
71
71
  contentType: "application/json",
72
72
  queryParameters: _queryParams,
73
73
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -19,6 +19,11 @@ export declare class Insurance {
19
19
  constructor(_options: Insurance.Options);
20
20
  /**
21
21
  * @throws {@link Vital.UnprocessableEntityError}
22
+ *
23
+ * @example
24
+ * await vital.insurance.searchPayorInfo({
25
+ * insuranceName: "insurance_name"
26
+ * })
22
27
  */
23
28
  searchPayorInfo(request: Vital.PayorSearchRequest, requestOptions?: Insurance.RequestOptions): Promise<Vital.ClientFacingPayorSearchResponse[]>;
24
29
  /**
@@ -26,7 +31,7 @@ export declare class Insurance {
26
31
  *
27
32
  * @example
28
33
  * await vital.insurance.searchDiagnosis({
29
- * diagnosisQuery: "diagnosis-query"
34
+ * diagnosisQuery: "diagnosis_query"
30
35
  * })
31
36
  */
32
37
  searchDiagnosis(request: Vital.InsuranceSearchDiagnosisRequest, requestOptions?: Insurance.RequestOptions): Promise<Vital.ClientFacingDiagnosisInformation[]>;
@@ -51,6 +51,11 @@ class Insurance {
51
51
  }
52
52
  /**
53
53
  * @throws {@link Vital.UnprocessableEntityError}
54
+ *
55
+ * @example
56
+ * await vital.insurance.searchPayorInfo({
57
+ * insuranceName: "insurance_name"
58
+ * })
54
59
  */
55
60
  searchPayorInfo(request, requestOptions) {
56
61
  var _a;
@@ -58,7 +63,7 @@ class Insurance {
58
63
  const _response = yield core.fetcher({
59
64
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/payor"),
60
65
  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())),
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 }, (yield this._getCustomAuthorizationHeaders())),
62
67
  contentType: "application/json",
63
68
  body: yield serializers.PayorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
64
69
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -108,7 +113,7 @@ class Insurance {
108
113
  *
109
114
  * @example
110
115
  * await vital.insurance.searchDiagnosis({
111
- * diagnosisQuery: "diagnosis-query"
116
+ * diagnosisQuery: "diagnosis_query"
112
117
  * })
113
118
  */
114
119
  searchDiagnosis(request, requestOptions) {
@@ -120,7 +125,7 @@ class Insurance {
120
125
  const _response = yield core.fetcher({
121
126
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/diagnosis"),
122
127
  method: "GET",
123
- 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())),
128
+ 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())),
124
129
  contentType: "application/json",
125
130
  queryParameters: _queryParams,
126
131
  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
- * diagnosisQuery: "diagnosis-query"
7
+ * diagnosisQuery: "diagnosis_query"
8
8
  * }
9
9
  */
10
10
  export interface InsuranceSearchDiagnosisRequest {
@@ -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
+ * insuranceName: "insurance_name"
8
+ * }
9
+ */
4
10
  export interface PayorSearchRequest {
5
11
  insuranceName: string;
6
12
  insuranceState?: string;
@@ -21,18 +21,14 @@ export declare class Introspect {
21
21
  * @throws {@link Vital.UnprocessableEntityError}
22
22
  *
23
23
  * @example
24
- * await vital.introspect.getUserResources({
25
- * provider: Vital.Providers.Oura
26
- * })
24
+ * await vital.introspect.getUserResources()
27
25
  */
28
26
  getUserResources(request?: Vital.IntrospectGetUserResourcesRequest, requestOptions?: Introspect.RequestOptions): Promise<Vital.UserResourcesResponse>;
29
27
  /**
30
28
  * @throws {@link Vital.UnprocessableEntityError}
31
29
  *
32
30
  * @example
33
- * await vital.introspect.getUserHistoricalPulls({
34
- * provider: Vital.Providers.Oura
35
- * })
31
+ * await vital.introspect.getUserHistoricalPulls()
36
32
  */
37
33
  getUserHistoricalPulls(request?: Vital.IntrospectGetUserHistoricalPullsRequest, requestOptions?: Introspect.RequestOptions): Promise<Vital.UserHistoricalPullsResponse>;
38
34
  protected _getCustomAuthorizationHeaders(): Promise<{
@@ -53,9 +53,7 @@ class Introspect {
53
53
  * @throws {@link Vital.UnprocessableEntityError}
54
54
  *
55
55
  * @example
56
- * await vital.introspect.getUserResources({
57
- * provider: Vital.Providers.Oura
58
- * })
56
+ * await vital.introspect.getUserResources()
59
57
  */
60
58
  getUserResources(request = {}, requestOptions) {
61
59
  var _a;
@@ -77,7 +75,7 @@ class Introspect {
77
75
  const _response = yield core.fetcher({
78
76
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/resources"),
79
77
  method: "GET",
80
- 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())),
78
+ 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())),
81
79
  contentType: "application/json",
82
80
  queryParameters: _queryParams,
83
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -126,9 +124,7 @@ class Introspect {
126
124
  * @throws {@link Vital.UnprocessableEntityError}
127
125
  *
128
126
  * @example
129
- * await vital.introspect.getUserHistoricalPulls({
130
- * provider: Vital.Providers.Oura
131
- * })
127
+ * await vital.introspect.getUserHistoricalPulls()
132
128
  */
133
129
  getUserHistoricalPulls(request = {}, requestOptions) {
134
130
  var _a;
@@ -150,7 +146,7 @@ class Introspect {
150
146
  const _response = yield core.fetcher({
151
147
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/historical_pull"),
152
148
  method: "GET",
153
- 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())),
149
+ 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())),
154
150
  contentType: "application/json",
155
151
  queryParameters: _queryParams,
156
152
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -4,9 +4,7 @@
4
4
  import * as Vital from "../../../..";
5
5
  /**
6
6
  * @example
7
- * {
8
- * provider: Vital.Providers.Oura
9
- * }
7
+ * {}
10
8
  */
11
9
  export interface IntrospectGetUserHistoricalPullsRequest {
12
10
  userId?: string;
@@ -4,9 +4,7 @@
4
4
  import * as Vital from "../../../..";
5
5
  /**
6
6
  * @example
7
- * {
8
- * provider: Vital.Providers.Oura
9
- * }
7
+ * {}
10
8
  */
11
9
  export interface IntrospectGetUserResourcesRequest {
12
10
  userId?: string;
@@ -28,6 +28,16 @@ export declare class LabTests {
28
28
  get(requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest[]>;
29
29
  /**
30
30
  * @throws {@link Vital.UnprocessableEntityError}
31
+ *
32
+ * @example
33
+ * await vital.labTests.create({
34
+ * markerIds: [1],
35
+ * labId: 1,
36
+ * name: "name",
37
+ * method: Vital.LabTestCollectionMethod.Testkit,
38
+ * sampleType: Vital.LabTestSampleType.DriedBloodSpot,
39
+ * description: "description"
40
+ * })
31
41
  */
32
42
  create(request: Vital.CreateLabTestRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest>;
33
43
  /**
@@ -42,12 +52,15 @@ export declare class LabTests {
42
52
  * @throws {@link Vital.UnprocessableEntityError}
43
53
  *
44
54
  * @example
45
- * await vital.labTests.getMarkersForLabTest("lab-test-id")
55
+ * await vital.labTests.getMarkersForLabTest("lab_test_id")
46
56
  */
47
57
  getMarkersForLabTest(labTestId: string, request?: Vital.LabTestsGetMarkersForLabTestRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetMarkersResponse>;
48
58
  /**
49
59
  * GET a specific marker for the given lab and provider_id
50
60
  * @throws {@link Vital.UnprocessableEntityError}
61
+ *
62
+ * @example
63
+ * await vital.labTests.getMarkersByLabAndProviderId("provider_id", 1)
51
64
  */
52
65
  getMarkersByLabAndProviderId(providerId: string, labId: number, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingMarker>;
53
66
  /**
@@ -60,32 +73,69 @@ export declare class LabTests {
60
73
  /**
61
74
  * GET all the lab tests the team has access to.
62
75
  * @throws {@link Vital.UnprocessableEntityError}
76
+ *
77
+ * @example
78
+ * await vital.labTests.getById("lab_test_id")
63
79
  */
64
80
  getById(labTestId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest>;
65
81
  /**
66
82
  * Return the available time slots to book an appointment with a phlebotomist
67
83
  * for the given address and order.
68
84
  * @throws {@link Vital.UnprocessableEntityError}
85
+ *
86
+ * @example
87
+ * await vital.labTests.getPhlebotomyAppointmentAvailability({
88
+ * firstLine: "first_line",
89
+ * city: "city",
90
+ * state: "state",
91
+ * zipCode: "zip_code"
92
+ * })
69
93
  */
70
94
  getPhlebotomyAppointmentAvailability(request: Vital.UsAddress, requestOptions?: LabTests.RequestOptions): Promise<Vital.AppointmentAvailabilitySlots>;
71
95
  /**
72
96
  * Book an at-home phlebotomy appointment.
73
97
  * @throws {@link Vital.UnprocessableEntityError}
98
+ *
99
+ * @example
100
+ * await vital.labTests.bookPhlebotomyAppointment("order_id", {
101
+ * bookingKey: "booking_key"
102
+ * })
74
103
  */
75
104
  bookPhlebotomyAppointment(orderId: string, request: Vital.AppointmentBookingRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointment>;
76
105
  /**
77
106
  * Request an at-home phlebotomy appointment.
78
107
  * @throws {@link Vital.UnprocessableEntityError}
108
+ *
109
+ * @example
110
+ * await vital.labTests.requestPhlebotomyAppointment("order_id", {
111
+ * address: {
112
+ * firstLine: "first_line",
113
+ * city: "city",
114
+ * state: "state",
115
+ * zipCode: "zip_code"
116
+ * },
117
+ * provider: Vital.AppointmentProvider.Getlabs
118
+ * })
79
119
  */
80
120
  requestPhlebotomyAppointment(orderId: string, request: Vital.RequestAppointmentRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointment>;
81
121
  /**
82
122
  * Reschedule a previously booked at-home phlebotomy appointment.
83
123
  * @throws {@link Vital.UnprocessableEntityError}
124
+ *
125
+ * @example
126
+ * await vital.labTests.reschedulePhlebotomyAppointment("order_id", {
127
+ * bookingKey: "booking_key"
128
+ * })
84
129
  */
85
130
  reschedulePhlebotomyAppointment(orderId: string, request: Vital.AppointmentRescheduleRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointment>;
86
131
  /**
87
132
  * Cancel a previously booked at-home phlebotomy appointment.
88
133
  * @throws {@link Vital.UnprocessableEntityError}
134
+ *
135
+ * @example
136
+ * await vital.labTests.cancelPhlebotomyAppointment("order_id", {
137
+ * cancellationReasonId: "cancellation_reason_id"
138
+ * })
89
139
  */
90
140
  cancelPhlebotomyAppointment(orderId: string, request: Vital.AppointmentCancelRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointment>;
91
141
  /**
@@ -98,6 +148,9 @@ export declare class LabTests {
98
148
  /**
99
149
  * Get the appointment associated with an order.
100
150
  * @throws {@link Vital.UnprocessableEntityError}
151
+ *
152
+ * @example
153
+ * await vital.labTests.getPhlebotomyAppointment("order_id")
101
154
  */
102
155
  getPhlebotomyAppointment(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointment>;
103
156
  /**
@@ -107,25 +160,38 @@ export declare class LabTests {
107
160
  *
108
161
  * - Whether a given zip code is served by our Phlebotomy network.
109
162
  * @throws {@link Vital.UnprocessableEntityError}
163
+ *
164
+ * @example
165
+ * await vital.labTests.getAreaInfo({
166
+ * zipCode: "zip_code"
167
+ * })
110
168
  */
111
169
  getAreaInfo(request: Vital.LabTestsGetAreaInfoRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.AreaInfo>;
112
170
  /**
113
171
  * This endpoint returns the lab results for the order.
172
+ * @throws {@link Vital.UnprocessableEntityError}
114
173
  */
115
174
  getResultPdf(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<stream.Readable>;
116
175
  /**
117
176
  * Return metadata related to order results, such as lab metadata,
118
177
  * provider and sample dates.
119
178
  * @throws {@link Vital.UnprocessableEntityError}
179
+ *
180
+ * @example
181
+ * await vital.labTests.getResultMetadata("order_id")
120
182
  */
121
183
  getResultMetadata(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.LabResultsMetadata>;
122
184
  /**
123
185
  * Return both metadata and raw json test data
124
186
  * @throws {@link Vital.UnprocessableEntityError}
187
+ *
188
+ * @example
189
+ * await vital.labTests.getResultRaw("order_id")
125
190
  */
126
191
  getResultRaw(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.LabResultsRaw>;
127
192
  /**
128
193
  * GET requisition pdf for an order
194
+ * @throws {@link Vital.UnprocessableEntityError}
129
195
  */
130
196
  getOrderRequistionPdf(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<stream.Readable>;
131
197
  /**
@@ -146,6 +212,9 @@ export declare class LabTests {
146
212
  /**
147
213
  * Get available test kits.
148
214
  * @throws {@link Vital.UnprocessableEntityError}
215
+ *
216
+ * @example
217
+ * await vital.labTests.simulateOrderProcess("order_id")
149
218
  */
150
219
  simulateOrderProcess(orderId: string, request?: Vital.LabTestsSimulateOrderProcessRequest, requestOptions?: LabTests.RequestOptions): Promise<unknown>;
151
220
  /**