@nativesquare/soma 0.8.0 → 0.9.0

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 (325) hide show
  1. package/dist/client/index.d.ts +7 -128
  2. package/dist/client/index.d.ts.map +1 -1
  3. package/dist/client/index.js +31 -112
  4. package/dist/client/index.js.map +1 -1
  5. package/dist/component/_generated/api.d.ts +80 -4
  6. package/dist/component/_generated/api.d.ts.map +1 -1
  7. package/dist/component/_generated/api.js.map +1 -1
  8. package/dist/component/_generated/component.d.ts +135 -261
  9. package/dist/component/_generated/component.d.ts.map +1 -1
  10. package/dist/component/garmin/private.d.ts +475 -0
  11. package/dist/component/garmin/private.d.ts.map +1 -0
  12. package/dist/component/garmin/private.js +1614 -0
  13. package/dist/component/garmin/private.js.map +1 -0
  14. package/dist/component/garmin/public.d.ts +155 -0
  15. package/dist/component/garmin/public.d.ts.map +1 -0
  16. package/dist/component/garmin/public.js +787 -0
  17. package/dist/component/garmin/public.js.map +1 -0
  18. package/dist/component/garmin/schemas/activity.d.ts +94 -0
  19. package/dist/component/garmin/schemas/activity.d.ts.map +1 -0
  20. package/dist/component/garmin/schemas/activity.js +27 -0
  21. package/dist/component/garmin/schemas/activity.js.map +1 -0
  22. package/dist/component/garmin/schemas/activityDetails.d.ts +146 -0
  23. package/dist/component/garmin/schemas/activityDetails.d.ts.map +1 -0
  24. package/dist/component/garmin/schemas/activityDetails.js +27 -0
  25. package/dist/component/garmin/schemas/activityDetails.js.map +1 -0
  26. package/dist/component/garmin/schemas/bloodPressure.d.ts +38 -0
  27. package/dist/component/garmin/schemas/bloodPressure.d.ts.map +1 -0
  28. package/dist/component/garmin/schemas/bloodPressure.js +27 -0
  29. package/dist/component/garmin/schemas/bloodPressure.js.map +1 -0
  30. package/dist/component/garmin/schemas/bodyCompositions.d.ts +42 -0
  31. package/dist/component/garmin/schemas/bodyCompositions.d.ts.map +1 -0
  32. package/dist/component/garmin/schemas/bodyCompositions.js +27 -0
  33. package/dist/component/garmin/schemas/bodyCompositions.js.map +1 -0
  34. package/dist/component/garmin/schemas/dailies.d.ts +98 -0
  35. package/dist/component/garmin/schemas/dailies.d.ts.map +1 -0
  36. package/dist/component/garmin/schemas/dailies.js +27 -0
  37. package/dist/component/garmin/schemas/dailies.js.map +1 -0
  38. package/dist/component/garmin/schemas/epochs.d.ts +54 -0
  39. package/dist/component/garmin/schemas/epochs.d.ts.map +1 -0
  40. package/dist/component/garmin/schemas/epochs.js +27 -0
  41. package/dist/component/garmin/schemas/epochs.js.map +1 -0
  42. package/dist/component/garmin/schemas/healthSnapshot.d.ts +48 -0
  43. package/dist/component/garmin/schemas/healthSnapshot.d.ts.map +1 -0
  44. package/dist/component/garmin/schemas/healthSnapshot.js +27 -0
  45. package/dist/component/garmin/schemas/healthSnapshot.js.map +1 -0
  46. package/dist/component/garmin/schemas/hrvSummary.d.ts +40 -0
  47. package/dist/component/garmin/schemas/hrvSummary.d.ts.map +1 -0
  48. package/dist/component/garmin/schemas/hrvSummary.js +27 -0
  49. package/dist/component/garmin/schemas/hrvSummary.js.map +1 -0
  50. package/dist/component/garmin/schemas/manuallyUpdatedActivities.d.ts +94 -0
  51. package/dist/component/garmin/schemas/manuallyUpdatedActivities.d.ts.map +1 -0
  52. package/dist/component/garmin/schemas/manuallyUpdatedActivities.js +27 -0
  53. package/dist/component/garmin/schemas/manuallyUpdatedActivities.js.map +1 -0
  54. package/dist/component/garmin/schemas/menstrualCycleTracking.d.ts +100 -0
  55. package/dist/component/garmin/schemas/menstrualCycleTracking.d.ts.map +1 -0
  56. package/dist/component/garmin/schemas/menstrualCycleTracking.js +28 -0
  57. package/dist/component/garmin/schemas/menstrualCycleTracking.js.map +1 -0
  58. package/dist/component/garmin/schemas/moveIQ.d.ts +40 -0
  59. package/dist/component/garmin/schemas/moveIQ.d.ts.map +1 -0
  60. package/dist/component/garmin/schemas/moveIQ.js +27 -0
  61. package/dist/component/garmin/schemas/moveIQ.js.map +1 -0
  62. package/dist/component/garmin/schemas/pulseOx.d.ts +38 -0
  63. package/dist/component/garmin/schemas/pulseOx.d.ts.map +1 -0
  64. package/dist/component/garmin/schemas/pulseOx.js +28 -0
  65. package/dist/component/garmin/schemas/pulseOx.js.map +1 -0
  66. package/dist/component/garmin/schemas/respiration.d.ts +34 -0
  67. package/dist/component/garmin/schemas/respiration.d.ts.map +1 -0
  68. package/dist/component/garmin/schemas/respiration.js +28 -0
  69. package/dist/component/garmin/schemas/respiration.js.map +1 -0
  70. package/dist/component/garmin/schemas/skinTemperature.d.ts +36 -0
  71. package/dist/component/garmin/schemas/skinTemperature.d.ts.map +1 -0
  72. package/dist/component/garmin/schemas/skinTemperature.js +28 -0
  73. package/dist/component/garmin/schemas/skinTemperature.js.map +1 -0
  74. package/dist/component/garmin/schemas/sleeps.d.ts +88 -0
  75. package/dist/component/garmin/schemas/sleeps.d.ts.map +1 -0
  76. package/dist/component/garmin/schemas/sleeps.js +27 -0
  77. package/dist/component/garmin/schemas/sleeps.js.map +1 -0
  78. package/dist/component/garmin/schemas/stress.d.ts +70 -0
  79. package/dist/component/garmin/schemas/stress.d.ts.map +1 -0
  80. package/dist/component/garmin/schemas/stress.js +28 -0
  81. package/dist/component/garmin/schemas/stress.js.map +1 -0
  82. package/dist/component/garmin/schemas/userMetrics.d.ts +36 -0
  83. package/dist/component/garmin/schemas/userMetrics.d.ts.map +1 -0
  84. package/dist/component/garmin/schemas/userMetrics.js +28 -0
  85. package/dist/component/garmin/schemas/userMetrics.js.map +1 -0
  86. package/dist/component/garmin/transform/activity.d.ts +13 -0
  87. package/dist/component/garmin/transform/activity.d.ts.map +1 -0
  88. package/dist/component/garmin/transform/activity.js +111 -0
  89. package/dist/component/garmin/transform/activity.js.map +1 -0
  90. package/dist/component/garmin/transform/activityDetails.d.ts +13 -0
  91. package/dist/component/garmin/transform/activityDetails.d.ts.map +1 -0
  92. package/dist/component/garmin/transform/activityDetails.js +173 -0
  93. package/dist/component/garmin/transform/activityDetails.js.map +1 -0
  94. package/dist/component/garmin/transform/bloodPressure.d.ts +12 -0
  95. package/dist/component/garmin/transform/bloodPressure.d.ts.map +1 -0
  96. package/dist/component/garmin/transform/bloodPressure.js +33 -0
  97. package/dist/component/garmin/transform/bloodPressure.js.map +1 -0
  98. package/dist/component/garmin/transform/bodyCompositions.d.ts +12 -0
  99. package/dist/component/garmin/transform/bodyCompositions.d.ts.map +1 -0
  100. package/dist/component/garmin/transform/bodyCompositions.js +42 -0
  101. package/dist/component/garmin/transform/bodyCompositions.js.map +1 -0
  102. package/dist/component/garmin/transform/dailies.d.ts +12 -0
  103. package/dist/component/garmin/transform/dailies.d.ts.map +1 -0
  104. package/dist/component/garmin/transform/dailies.js +132 -0
  105. package/dist/component/garmin/transform/dailies.js.map +1 -0
  106. package/dist/component/garmin/transform/epochs.d.ts +13 -0
  107. package/dist/component/garmin/transform/epochs.d.ts.map +1 -0
  108. package/dist/component/garmin/transform/epochs.js +76 -0
  109. package/dist/component/garmin/transform/epochs.js.map +1 -0
  110. package/dist/component/garmin/transform/healthSnapshot.d.ts +12 -0
  111. package/dist/component/garmin/transform/healthSnapshot.d.ts.map +1 -0
  112. package/dist/component/garmin/transform/healthSnapshot.js +111 -0
  113. package/dist/component/garmin/transform/healthSnapshot.js.map +1 -0
  114. package/dist/component/garmin/transform/hrvSummary.d.ts +12 -0
  115. package/dist/component/garmin/transform/hrvSummary.d.ts.map +1 -0
  116. package/dist/component/garmin/transform/hrvSummary.js +45 -0
  117. package/dist/component/garmin/transform/hrvSummary.js.map +1 -0
  118. package/dist/component/garmin/transform/manuallyUpdatedActivities.d.ts +11 -0
  119. package/dist/component/garmin/transform/manuallyUpdatedActivities.d.ts.map +1 -0
  120. package/dist/component/garmin/transform/manuallyUpdatedActivities.js +20 -0
  121. package/dist/component/garmin/transform/manuallyUpdatedActivities.js.map +1 -0
  122. package/dist/component/garmin/transform/menstrualCycleTracking.d.ts +10 -0
  123. package/dist/component/garmin/transform/menstrualCycleTracking.d.ts.map +1 -0
  124. package/dist/component/garmin/transform/menstrualCycleTracking.js +43 -0
  125. package/dist/component/garmin/transform/menstrualCycleTracking.js.map +1 -0
  126. package/dist/component/garmin/transform/moveIQ.d.ts +17 -0
  127. package/dist/component/garmin/transform/moveIQ.d.ts.map +1 -0
  128. package/dist/component/garmin/transform/moveIQ.js +41 -0
  129. package/dist/component/garmin/transform/moveIQ.js.map +1 -0
  130. package/dist/component/garmin/transform/pulseOx.d.ts +12 -0
  131. package/dist/component/garmin/transform/pulseOx.d.ts.map +1 -0
  132. package/dist/component/garmin/transform/pulseOx.js +46 -0
  133. package/dist/component/garmin/transform/pulseOx.js.map +1 -0
  134. package/dist/component/garmin/transform/respiration.d.ts +12 -0
  135. package/dist/component/garmin/transform/respiration.d.ts.map +1 -0
  136. package/dist/component/garmin/transform/respiration.js +54 -0
  137. package/dist/component/garmin/transform/respiration.js.map +1 -0
  138. package/dist/component/garmin/transform/skinTemperature.d.ts +12 -0
  139. package/dist/component/garmin/transform/skinTemperature.d.ts.map +1 -0
  140. package/dist/component/garmin/transform/skinTemperature.js +38 -0
  141. package/dist/component/garmin/transform/skinTemperature.js.map +1 -0
  142. package/dist/component/garmin/transform/sleeps.d.ts +55 -0
  143. package/dist/component/garmin/transform/sleeps.d.ts.map +1 -0
  144. package/dist/component/garmin/transform/sleeps.js +120 -0
  145. package/dist/component/garmin/transform/sleeps.js.map +1 -0
  146. package/dist/component/garmin/transform/stress.d.ts +12 -0
  147. package/dist/component/garmin/transform/stress.d.ts.map +1 -0
  148. package/dist/component/garmin/transform/stress.js +56 -0
  149. package/dist/component/garmin/transform/stress.js.map +1 -0
  150. package/dist/component/garmin/transform/userMetrics.d.ts +12 -0
  151. package/dist/component/garmin/transform/userMetrics.d.ts.map +1 -0
  152. package/dist/component/garmin/transform/userMetrics.js +48 -0
  153. package/dist/component/garmin/transform/userMetrics.js.map +1 -0
  154. package/dist/component/garmin/types/garmin.d.ts +21 -0
  155. package/dist/component/garmin/types/garmin.d.ts.map +1 -0
  156. package/dist/component/garmin/types/garmin.js +6 -0
  157. package/dist/component/garmin/types/garmin.js.map +1 -0
  158. package/dist/component/garmin/types/zod/zod.gen.d.ts +1319 -0
  159. package/dist/component/garmin/types/zod/zod.gen.d.ts.map +1 -0
  160. package/dist/component/garmin/types/zod/zod.gen.js +784 -0
  161. package/dist/component/garmin/types/zod/zod.gen.js.map +1 -0
  162. package/dist/component/garmin/webhooks.d.ts +141 -0
  163. package/dist/component/garmin/webhooks.d.ts.map +1 -0
  164. package/dist/component/garmin/webhooks.js +766 -0
  165. package/dist/component/garmin/webhooks.js.map +1 -0
  166. package/dist/component/private.d.ts +4 -4
  167. package/dist/component/public.d.ts +333 -333
  168. package/dist/component/schema.d.ts +133 -133
  169. package/dist/component/strava/private.d.ts +30 -0
  170. package/dist/component/strava/private.d.ts.map +1 -0
  171. package/dist/component/strava/private.js +71 -0
  172. package/dist/component/strava/private.js.map +1 -0
  173. package/dist/component/{strava.d.ts → strava/public.d.ts} +3 -31
  174. package/dist/component/strava/public.d.ts.map +1 -0
  175. package/dist/component/{strava.js → strava/public.js} +22 -101
  176. package/dist/component/strava/public.js.map +1 -0
  177. package/dist/component/validators/activity.d.ts +6 -0
  178. package/dist/component/validators/activity.d.ts.map +1 -1
  179. package/dist/component/validators/activity.js.map +1 -1
  180. package/dist/component/validators/body.d.ts +20 -14
  181. package/dist/component/validators/body.d.ts.map +1 -1
  182. package/dist/component/validators/body.js.map +1 -1
  183. package/dist/component/validators/daily.d.ts +6 -0
  184. package/dist/component/validators/daily.d.ts.map +1 -1
  185. package/dist/component/validators/daily.js.map +1 -1
  186. package/dist/component/validators/enums.d.ts +1 -1
  187. package/dist/component/validators/menstruation.d.ts +5 -0
  188. package/dist/component/validators/menstruation.d.ts.map +1 -1
  189. package/dist/component/validators/menstruation.js.map +1 -1
  190. package/dist/garmin/client.js.map +1 -1
  191. package/dist/garmin/index.d.ts +0 -2
  192. package/dist/garmin/index.d.ts.map +1 -1
  193. package/dist/garmin/index.js +0 -1
  194. package/dist/garmin/index.js.map +1 -1
  195. package/dist/garmin/sync.d.ts.map +1 -1
  196. package/dist/garmin/sync.js +3 -2
  197. package/dist/garmin/sync.js.map +1 -1
  198. package/dist/garmin/types.d.ts +1 -1
  199. package/dist/garmin/types.d.ts.map +1 -1
  200. package/dist/validators.d.ts +31 -28
  201. package/dist/validators.d.ts.map +1 -1
  202. package/dist/validators.js +2 -2
  203. package/dist/validators.js.map +1 -1
  204. package/package.json +4 -7
  205. package/src/client/index.ts +41 -172
  206. package/src/component/_generated/api.ts +96 -4
  207. package/src/component/_generated/component.ts +252 -284
  208. package/src/{garmin → component/garmin}/auth.ts +8 -1
  209. package/src/component/garmin/client.ts +39 -0
  210. package/src/component/garmin/private.ts +1798 -0
  211. package/src/component/garmin/public.ts +938 -0
  212. package/src/component/garmin/schemas/activity.ts +40 -0
  213. package/src/component/garmin/schemas/activityDetails.ts +45 -0
  214. package/src/component/garmin/schemas/bloodPressure.ts +38 -0
  215. package/src/component/garmin/schemas/bodyCompositions.ts +38 -0
  216. package/src/component/garmin/schemas/dailies.ts +38 -0
  217. package/src/component/garmin/schemas/epochs.ts +38 -0
  218. package/src/component/garmin/schemas/healthSnapshot.ts +38 -0
  219. package/src/component/garmin/schemas/hrvSummary.ts +38 -0
  220. package/src/component/garmin/schemas/manuallyUpdatedActivities.ts +49 -0
  221. package/src/component/garmin/schemas/menstrualCycleTracking.ts +39 -0
  222. package/src/component/garmin/schemas/moveIQ.ts +38 -0
  223. package/src/component/garmin/schemas/pulseOx.ts +39 -0
  224. package/src/component/garmin/schemas/respiration.ts +39 -0
  225. package/src/component/garmin/schemas/skinTemperature.ts +39 -0
  226. package/src/component/garmin/schemas/sleeps.ts +38 -0
  227. package/src/component/garmin/schemas/stress.ts +43 -0
  228. package/src/component/garmin/schemas/userMetrics.ts +39 -0
  229. package/src/component/garmin/transform/activity.ts +143 -0
  230. package/src/component/garmin/transform/activityDetails.ts +236 -0
  231. package/src/{garmin → component/garmin/transform}/bloodPressure.ts +39 -41
  232. package/src/component/garmin/transform/bodyCompositions.ts +51 -0
  233. package/src/component/garmin/transform/dailies.ts +179 -0
  234. package/src/component/garmin/transform/epochs.ts +94 -0
  235. package/src/component/garmin/transform/healthSnapshot.ts +152 -0
  236. package/src/component/garmin/transform/hrvSummary.ts +56 -0
  237. package/src/component/garmin/transform/manuallyUpdatedActivities.ts +27 -0
  238. package/src/{garmin/maps/activity-type.ts → component/garmin/transform/maps/activityType.ts} +116 -116
  239. package/src/{garmin/maps/sleep-level.ts → component/garmin/transform/maps/sleepLevel.ts} +22 -22
  240. package/src/component/garmin/transform/menstrualCycleTracking.ts +48 -0
  241. package/src/component/garmin/transform/moveIQ.ts +48 -0
  242. package/src/{garmin → component/garmin/transform}/plannedWorkout.ts +328 -333
  243. package/src/component/garmin/transform/pulseOx.ts +64 -0
  244. package/src/component/garmin/transform/respiration.ts +73 -0
  245. package/src/component/garmin/transform/skinTemperature.ts +44 -0
  246. package/src/component/garmin/transform/sleeps.ts +159 -0
  247. package/src/component/garmin/transform/stress.ts +78 -0
  248. package/src/component/garmin/transform/userMetrics.ts +56 -0
  249. package/src/component/garmin/types/specs/training-api-workouts.json +699 -0
  250. package/src/component/garmin/types/trainingApiWorkouts/client/client.gen.ts +290 -0
  251. package/src/component/garmin/types/trainingApiWorkouts/client/index.ts +25 -0
  252. package/src/component/garmin/types/trainingApiWorkouts/client/types.gen.ts +214 -0
  253. package/src/component/garmin/types/trainingApiWorkouts/client/utils.gen.ts +316 -0
  254. package/src/component/garmin/types/trainingApiWorkouts/client.gen.ts +16 -0
  255. package/src/component/garmin/types/trainingApiWorkouts/core/auth.gen.ts +41 -0
  256. package/src/component/garmin/types/trainingApiWorkouts/core/bodySerializer.gen.ts +82 -0
  257. package/src/component/garmin/types/trainingApiWorkouts/core/params.gen.ts +169 -0
  258. package/src/component/garmin/types/trainingApiWorkouts/core/pathSerializer.gen.ts +171 -0
  259. package/src/component/garmin/types/trainingApiWorkouts/core/queryKeySerializer.gen.ts +117 -0
  260. package/src/component/garmin/types/trainingApiWorkouts/core/serverSentEvents.gen.ts +243 -0
  261. package/src/component/garmin/types/trainingApiWorkouts/core/types.gen.ts +104 -0
  262. package/src/component/garmin/types/trainingApiWorkouts/core/utils.gen.ts +140 -0
  263. package/src/component/garmin/types/trainingApiWorkouts/index.ts +4 -0
  264. package/src/component/garmin/types/trainingApiWorkouts/sdk.gen.ts +126 -0
  265. package/src/component/garmin/types/trainingApiWorkouts/types.gen.ts +387 -0
  266. package/src/component/garmin/types/trainingApiWorkouts/zod.gen.ts +423 -0
  267. package/src/component/garmin/types/wellnessApi/client/client.gen.ts +290 -0
  268. package/src/component/garmin/types/wellnessApi/client/index.ts +25 -0
  269. package/src/component/garmin/types/wellnessApi/client/types.gen.ts +214 -0
  270. package/src/component/garmin/types/wellnessApi/client/utils.gen.ts +316 -0
  271. package/src/component/garmin/types/wellnessApi/client.gen.ts +16 -0
  272. package/src/component/garmin/types/wellnessApi/core/auth.gen.ts +41 -0
  273. package/src/component/garmin/types/wellnessApi/core/bodySerializer.gen.ts +82 -0
  274. package/src/component/garmin/types/wellnessApi/core/params.gen.ts +169 -0
  275. package/src/component/garmin/types/wellnessApi/core/pathSerializer.gen.ts +171 -0
  276. package/src/component/garmin/types/wellnessApi/core/queryKeySerializer.gen.ts +117 -0
  277. package/src/component/garmin/types/wellnessApi/core/serverSentEvents.gen.ts +243 -0
  278. package/src/component/garmin/types/wellnessApi/core/types.gen.ts +104 -0
  279. package/src/component/garmin/types/wellnessApi/core/utils.gen.ts +140 -0
  280. package/src/component/garmin/types/wellnessApi/index.ts +4 -0
  281. package/src/component/garmin/types/wellnessApi/sdk.gen.ts +207 -0
  282. package/src/component/garmin/types/wellnessApi/types.gen.ts +2942 -0
  283. package/src/component/garmin/types/wellnessApi/zod.gen.ts +878 -0
  284. package/src/component/garmin/utils.ts +25 -0
  285. package/src/component/garmin/webhooks.ts +852 -0
  286. package/src/component/strava/private.ts +89 -0
  287. package/src/component/{strava.ts → strava/public.ts} +341 -404
  288. package/src/component/validators/activity.ts +5 -0
  289. package/src/component/validators/body.ts +5 -0
  290. package/src/component/validators/daily.ts +5 -0
  291. package/src/component/validators/menstruation.ts +5 -1
  292. package/src/component/validators/plannedWorkout.ts +5 -0
  293. package/src/validators.ts +12 -2
  294. package/dist/component/garmin.d.ts +0 -366
  295. package/dist/component/garmin.d.ts.map +0 -1
  296. package/dist/component/garmin.js +0 -1481
  297. package/dist/component/garmin.js.map +0 -1
  298. package/dist/component/strava.d.ts.map +0 -1
  299. package/dist/component/strava.js.map +0 -1
  300. package/dist/garmin/activity.d.ts +0 -92
  301. package/dist/garmin/activity.d.ts.map +0 -1
  302. package/dist/garmin/activity.js +0 -201
  303. package/dist/garmin/activity.js.map +0 -1
  304. package/src/component/garmin.ts +0 -1722
  305. package/src/garmin/activity.test.ts +0 -170
  306. package/src/garmin/activity.ts +0 -265
  307. package/src/garmin/auth.test.ts +0 -103
  308. package/src/garmin/body.ts +0 -59
  309. package/src/garmin/client.ts +0 -886
  310. package/src/garmin/daily.ts +0 -215
  311. package/src/garmin/hrv.ts +0 -57
  312. package/src/garmin/index.ts +0 -145
  313. package/src/garmin/maps/activity-type.test.ts +0 -78
  314. package/src/garmin/menstruation.ts +0 -44
  315. package/src/garmin/pulseOx.ts +0 -45
  316. package/src/garmin/respiration.ts +0 -55
  317. package/src/garmin/skinTemp.ts +0 -42
  318. package/src/garmin/sleep.test.ts +0 -109
  319. package/src/garmin/sleep.ts +0 -176
  320. package/src/garmin/stressDetails.ts +0 -71
  321. package/src/garmin/sync.ts +0 -566
  322. package/src/garmin/types.ts +0 -268
  323. package/src/garmin/userMetrics.ts +0 -50
  324. package/src/garmin/wellness-api.d.ts +0 -5637
  325. /package/src/{garmin/spec → component/garmin/types/specs}/wellness-api.json +0 -0
@@ -0,0 +1,2942 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+
3
+ export type ClientOptions = {
4
+ baseUrl: 'https://apis.garmin.com/wellness-api' | (string & {});
5
+ };
6
+
7
+ export type ErrorBody = {
8
+ errorMessage?: string;
9
+ };
10
+
11
+ export type ClientUserMetrics = {
12
+ userId?: string;
13
+ summaryId?: string;
14
+ calendarDate?: string;
15
+ vo2Max?: number;
16
+ vo2MaxCycling?: number;
17
+ fitnessAge?: number;
18
+ enhanced?: boolean;
19
+ };
20
+
21
+ export type ClientConsumerPermissions = {
22
+ userId?: string;
23
+ summaryId?: string;
24
+ permissions?: Array<string>;
25
+ /**
26
+ * Unix Epoch Timestamp
27
+ */
28
+ changeTimeInSeconds?: number;
29
+ };
30
+
31
+ export type ClientUserId = {
32
+ userId?: string;
33
+ };
34
+
35
+ export type BodyBatteryActivityEvent = {
36
+ /**
37
+ * Event type such as sleep,activity,recovery,nap and stress
38
+ */
39
+ eventType?: string;
40
+ /**
41
+ * Unix Epoch Timestamp
42
+ */
43
+ eventStartTimeInSeconds?: number;
44
+ eventStartTimeOffsetInSeconds?: number;
45
+ durationInSeconds?: number;
46
+ bodyBatteryImpact?: number;
47
+ activityName?: string;
48
+ activityType?: string;
49
+ activityId?: number;
50
+ };
51
+
52
+ export type BodyBatteryDynamicFeedbackEvent = {
53
+ /**
54
+ * Unix Epoch Timestamp
55
+ */
56
+ eventStartTimeInSeconds?: number;
57
+ bodyBatteryLevel?: string;
58
+ };
59
+
60
+ export type ClientStress = {
61
+ userId?: string;
62
+ summaryId?: string;
63
+ /**
64
+ * Unix Epoch Timestamp
65
+ */
66
+ startTimeInSeconds?: number;
67
+ startTimeOffsetInSeconds?: number;
68
+ durationInSeconds?: number;
69
+ calendarDate?: string;
70
+ maxStressLevel?: number;
71
+ averageStressLevel?: number;
72
+ timeOffsetStressLevelValues?: {
73
+ [key: string]: number;
74
+ };
75
+ timeOffsetBodyBatteryValues?: {
76
+ [key: string]: number;
77
+ };
78
+ bodyBatteryDynamicFeedbackEvent?: BodyBatteryDynamicFeedbackEvent;
79
+ bodyBatteryActivityEvents?: Array<BodyBatteryActivityEvent>;
80
+ };
81
+
82
+ export type ClientSolar = {
83
+ userId?: string;
84
+ summaryId?: string;
85
+ calendarDate?: string;
86
+ deviceId?: string;
87
+ deviceTypeName?: string;
88
+ timeOffsetInSeconds?: number;
89
+ readings?: Array<ClientSolarReading>;
90
+ };
91
+
92
+ export type ClientSolarReading = {
93
+ measurementTimeInSeconds?: number;
94
+ solarIntensity?: number;
95
+ };
96
+
97
+ export type ClientNaps = {
98
+ /**
99
+ * Unix Epoch Timestamp
100
+ */
101
+ napStartTimeInSeconds?: number;
102
+ napOffsetInSeconds?: number;
103
+ napDurationInSeconds?: number;
104
+ napValidation?: string;
105
+ };
106
+
107
+ export type ClientSleep = {
108
+ userId?: string;
109
+ summaryId?: string;
110
+ calendarDate?: string;
111
+ durationInSeconds?: number;
112
+ totalNapDurationInSeconds?: number;
113
+ /**
114
+ * Unix Epoch Timestamp
115
+ */
116
+ startTimeInSeconds?: number;
117
+ startTimeOffsetInSeconds?: number;
118
+ unmeasurableSleepInSeconds?: number;
119
+ deepSleepDurationInSeconds?: number;
120
+ lightSleepDurationInSeconds?: number;
121
+ remSleepInSeconds?: number;
122
+ awakeDurationInSeconds?: number;
123
+ sleepLevelsMap?: {
124
+ [key: string]: Array<TimeRange>;
125
+ };
126
+ validation?: string;
127
+ timeOffsetSleepSpo2?: {
128
+ [key: string]: number;
129
+ };
130
+ timeOffsetSleepRespiration?: {
131
+ [key: string]: number;
132
+ };
133
+ overallSleepScore?: ClientSleepScoreItem;
134
+ sleepScores?: {
135
+ [key: string]: ClientSleepScoreItem;
136
+ };
137
+ naps?: Array<ClientNaps>;
138
+ };
139
+
140
+ export type ClientSleepScoreItem = {
141
+ value?: number;
142
+ qualifierKey?: string;
143
+ };
144
+
145
+ export type TimeRange = {
146
+ /**
147
+ * Unix Epoch Timestamp
148
+ */
149
+ startTimeInSeconds?: number;
150
+ /**
151
+ * Unix Epoch Timestamp
152
+ */
153
+ endTimeInSeconds?: number;
154
+ };
155
+
156
+ export type ClientSkinTemp = {
157
+ userId?: string;
158
+ summaryId?: string;
159
+ calendarDate?: string;
160
+ avgDeviationCelsius?: number;
161
+ durationInSeconds?: number;
162
+ /**
163
+ * Unix epoch timestamp
164
+ */
165
+ startTimeInSeconds?: number;
166
+ startTimeOffsetInSeconds?: number;
167
+ };
168
+
169
+ export type ClientRespiration = {
170
+ userId?: string;
171
+ summaryId?: string;
172
+ /**
173
+ * Unix Epoch Timestamp
174
+ */
175
+ startTimeInSeconds?: number;
176
+ durationInSeconds?: number;
177
+ startTimeOffsetInSeconds?: number;
178
+ timeOffsetEpochToBreaths?: {
179
+ [key: string]: number;
180
+ };
181
+ };
182
+
183
+ export type ClientDailySpo2Acclimation = {
184
+ userId?: string;
185
+ summaryId?: string;
186
+ calendarDate?: string;
187
+ /**
188
+ * Unix Epoch Timestamp
189
+ */
190
+ startTimeInSeconds?: number;
191
+ durationInSeconds?: number;
192
+ startTimeOffsetInSeconds?: number;
193
+ timeOffsetSpo2Values?: {
194
+ [key: string]: number;
195
+ };
196
+ onDemand?: boolean;
197
+ };
198
+
199
+ export type ClientAutoActivityMoveIq = {
200
+ userId?: string;
201
+ summaryId?: string;
202
+ deviceName?: string;
203
+ calendarDate?: string;
204
+ /**
205
+ * Unix Epoch Timestamp
206
+ */
207
+ startTimeInSeconds?: number;
208
+ durationInSeconds?: number;
209
+ activityType?: string;
210
+ activitySubType?: string;
211
+ offsetInSeconds?: number;
212
+ };
213
+
214
+ export type ClientBloodGlucose = {
215
+ valueInMilligramsPerDeciliter?: number;
216
+ logType?: string;
217
+ reportTimestampInSeconds?: number;
218
+ };
219
+
220
+ export type ClientPregnancySnapshot = {
221
+ title?: string;
222
+ originalDueDate?: string;
223
+ dueDate?: string;
224
+ pregnancyCycleStartDate?: string;
225
+ deliveryDate?: string;
226
+ numOfBabies?: string;
227
+ hasExperiencedLoss?: boolean;
228
+ lossReportTimestampInSeconds?: number;
229
+ endDate?: string;
230
+ stopTracking?: boolean;
231
+ stopTrackingTimestampInSeconds?: number;
232
+ weightGoalUserInput?: ClientWeightGoalUserInput;
233
+ bloodGlucoseList?: Array<ClientBloodGlucose>;
234
+ };
235
+
236
+ export type ClientSummarizedMenstrualCycle = {
237
+ userId?: string;
238
+ summaryId?: string;
239
+ periodStartDate?: string;
240
+ dayInCycle?: number;
241
+ periodLength?: number;
242
+ /**
243
+ * @deprecated
244
+ */
245
+ currentPhase?: number;
246
+ currentPhaseType?: string;
247
+ lengthOfCurrentPhase?: number;
248
+ daysUntilNextPhase?: number;
249
+ fertileWindowStart?: number;
250
+ lengthOfFertileWindow?: number;
251
+ predictedCycleLength?: number;
252
+ isPredictedCycle?: boolean;
253
+ cycleLength?: number;
254
+ lastUpdatedTimeInSeconds?: number;
255
+ hasSpecifiedCycleLength?: boolean;
256
+ hasSpecifiedPeriodLength?: boolean;
257
+ pregnancySnapshot?: ClientPregnancySnapshot;
258
+ };
259
+
260
+ export type ClientWeightGoalUserInput = {
261
+ heightInCentimeters?: number;
262
+ weightInGrams?: number;
263
+ };
264
+
265
+ export type ClientActivity = {
266
+ userId?: string;
267
+ summaryId?: string;
268
+ activityId?: number;
269
+ activityName?: string;
270
+ activityDescription?: string;
271
+ isParent?: boolean;
272
+ parentSummaryId?: string;
273
+ durationInSeconds?: number;
274
+ /**
275
+ * Unix Epoch Timestamp
276
+ */
277
+ startTimeInSeconds?: number;
278
+ startTimeOffsetInSeconds?: number;
279
+ activityType?: string;
280
+ averageBikeCadenceInRoundsPerMinute?: number;
281
+ averageHeartRateInBeatsPerMinute?: number;
282
+ averageRunCadenceInStepsPerMinute?: number;
283
+ averagePushCadenceInPushesPerMinute?: number;
284
+ averageSpeedInMetersPerSecond?: number;
285
+ averageSwimCadenceInStrokesPerMinute?: number;
286
+ averagePaceInMinutesPerKilometer?: number;
287
+ activeKilocalories?: number;
288
+ deviceName?: string;
289
+ distanceInMeters?: number;
290
+ maxBikeCadenceInRoundsPerMinute?: number;
291
+ maxHeartRateInBeatsPerMinute?: number;
292
+ maxPaceInMinutesPerKilometer?: number;
293
+ maxRunCadenceInStepsPerMinute?: number;
294
+ maxPushCadenceInPushesPerMinute?: number;
295
+ maxSpeedInMetersPerSecond?: number;
296
+ numberOfActiveLengths?: number;
297
+ startingLatitudeInDegree?: number;
298
+ startingLongitudeInDegree?: number;
299
+ steps?: number;
300
+ pushes?: number;
301
+ totalElevationGainInMeters?: number;
302
+ totalElevationLossInMeters?: number;
303
+ manual?: boolean;
304
+ isWebUpload?: boolean;
305
+ };
306
+
307
+ export type ClientHrvSummary = {
308
+ userId?: string;
309
+ summaryId?: string;
310
+ calendarDate?: string;
311
+ lastNightAvg?: number;
312
+ lastNight5MinHigh?: number;
313
+ startTimeOffsetInSeconds?: number;
314
+ durationInSeconds?: number;
315
+ /**
316
+ * Unix Epoch Timestamp
317
+ */
318
+ startTimeInSeconds?: number;
319
+ hrvValues?: {
320
+ [key: string]: number;
321
+ };
322
+ };
323
+
324
+ export type ClientHealthSnapshot = {
325
+ userId?: string;
326
+ summaryId?: string;
327
+ calendarDate?: string;
328
+ /**
329
+ * Unix Epoch Timestamp
330
+ */
331
+ startTimeInSeconds?: number;
332
+ durationInSeconds?: number;
333
+ startTimeOffsetInSeconds?: number;
334
+ summaries?: Array<HealthSnapshotSummary>;
335
+ };
336
+
337
+ export type HealthSnapshotSummary = {
338
+ summaryType?: string;
339
+ minValue?: number;
340
+ maxValue?: number;
341
+ avgValue?: number;
342
+ epochSummaries?: {
343
+ [key: string]: number;
344
+ };
345
+ };
346
+
347
+ export type ClientEpoch = {
348
+ userId?: string;
349
+ summaryId?: string;
350
+ activityType?: string;
351
+ activeKilocalories?: number;
352
+ steps?: number;
353
+ pushes?: number;
354
+ distanceInMeters?: number;
355
+ pushDistanceInMeters?: number;
356
+ durationInSeconds?: number;
357
+ activeTimeInSeconds?: number;
358
+ /**
359
+ * Unix Epoch Timestamp
360
+ */
361
+ startTimeInSeconds?: number;
362
+ startTimeOffsetInSeconds?: number;
363
+ met?: number;
364
+ intensity?: string;
365
+ meanMotionIntensity?: number;
366
+ maxMotionIntensity?: number;
367
+ };
368
+
369
+ export type ClientDaily = {
370
+ userId?: string;
371
+ summaryId?: string;
372
+ calendarDate?: string;
373
+ activityType?: string;
374
+ activeKilocalories?: number;
375
+ bmrKilocalories?: number;
376
+ steps?: number;
377
+ pushes?: number;
378
+ distanceInMeters?: number;
379
+ pushDistanceInMeters?: number;
380
+ durationInSeconds?: number;
381
+ activeTimeInSeconds?: number;
382
+ /**
383
+ * Unix Epoch Timestamp
384
+ */
385
+ startTimeInSeconds?: number;
386
+ startTimeOffsetInSeconds?: number;
387
+ moderateIntensityDurationInSeconds?: number;
388
+ vigorousIntensityDurationInSeconds?: number;
389
+ floorsClimbed?: number;
390
+ minHeartRateInBeatsPerMinute?: number;
391
+ maxHeartRateInBeatsPerMinute?: number;
392
+ averageHeartRateInBeatsPerMinute?: number;
393
+ restingHeartRateInBeatsPerMinute?: number;
394
+ timeOffsetHeartRateSamples?: {
395
+ [key: string]: number;
396
+ };
397
+ source?: string;
398
+ stepsGoal?: number;
399
+ pushesGoal?: number;
400
+ intensityDurationGoalInSeconds?: number;
401
+ floorsClimbedGoal?: number;
402
+ averageStressLevel?: number;
403
+ maxStressLevel?: number;
404
+ stressDurationInSeconds?: number;
405
+ restStressDurationInSeconds?: number;
406
+ activityStressDurationInSeconds?: number;
407
+ lowStressDurationInSeconds?: number;
408
+ mediumStressDurationInSeconds?: number;
409
+ highStressDurationInSeconds?: number;
410
+ stressQualifier?: string;
411
+ bodyBatteryChargedValue?: number;
412
+ bodyBatteryDrainedValue?: number;
413
+ };
414
+
415
+ export type ClientBodyComp = {
416
+ userId?: string;
417
+ summaryId?: string;
418
+ muscleMassInGrams?: number;
419
+ boneMassInGrams?: number;
420
+ bodyWaterInPercent?: number;
421
+ bodyFatInPercent?: number;
422
+ bodyMassIndex?: number;
423
+ weightInGrams?: number;
424
+ measurementTimeInSeconds?: number;
425
+ measurementTimeOffsetInSeconds?: number;
426
+ };
427
+
428
+ export type ClientBloodPressure = {
429
+ userId?: string;
430
+ summaryId?: string;
431
+ systolic?: number;
432
+ diastolic?: number;
433
+ pulse?: number;
434
+ sourceType?: string;
435
+ measurementTimeInSeconds?: number;
436
+ measurementTimeOffsetInSeconds?: number;
437
+ };
438
+
439
+ export type ClientActivityDetail = {
440
+ userId?: string;
441
+ summaryId?: string;
442
+ activityId?: number;
443
+ summary?: ClientActivity;
444
+ samples?: Array<Sample>;
445
+ laps?: Array<ClientLap>;
446
+ };
447
+
448
+ export type ClientLap = {
449
+ /**
450
+ * Unix Epoch Timestamp
451
+ */
452
+ startTimeInSeconds?: number;
453
+ };
454
+
455
+ export type Sample = {
456
+ /**
457
+ * Unix Epoch Timestamp
458
+ */
459
+ startTimeInSeconds?: number;
460
+ latitudeInDegree?: number;
461
+ longitudeInDegree?: number;
462
+ elevationInMeters?: number;
463
+ airTemperatureCelcius?: number;
464
+ heartRate?: number;
465
+ speedMetersPerSecond?: number;
466
+ stepsPerMinute?: number;
467
+ totalDistanceInMeters?: number;
468
+ powerInWatts?: number;
469
+ bikeCadenceInRPM?: number;
470
+ swimCadenceInStrokesPerMinute?: number;
471
+ wheelChairCadenceInPushesPerMinute?: number;
472
+ timerDurationInSeconds?: number;
473
+ clockDurationInSeconds?: number;
474
+ movingDurationInSeconds?: number;
475
+ };
476
+
477
+ export type ServiceFailure = {
478
+ errorType?: string;
479
+ message?: string;
480
+ errorMessage?: string;
481
+ errorId?: string;
482
+ };
483
+
484
+ export type ClientSummarizedMenstrualCycleWritable = {
485
+ userId?: string;
486
+ summaryId?: string;
487
+ periodStartDate?: string;
488
+ dayInCycle?: number;
489
+ periodLength?: number;
490
+ /**
491
+ * @deprecated
492
+ */
493
+ currentPhase?: number;
494
+ currentPhaseType?: string;
495
+ lengthOfCurrentPhase?: number;
496
+ daysUntilNextPhase?: number;
497
+ fertileWindowStart?: number;
498
+ lengthOfFertileWindow?: number;
499
+ predictedCycleLength?: number;
500
+ isPredictedCycle?: boolean;
501
+ cycleLength?: number;
502
+ lastUpdatedTimeInSeconds?: number;
503
+ hasSpecifiedCycleLength?: boolean;
504
+ hasSpecifiedPeriodLength?: boolean;
505
+ pregnancySnapshot?: ClientPregnancySnapshot;
506
+ predictedCycle?: boolean;
507
+ };
508
+
509
+ export type GetUserMetricsData = {
510
+ body?: never;
511
+ path?: never;
512
+ query?: {
513
+ /**
514
+ * A UTC timestamp representing the beginning of the time range to search.
515
+ * If this parameter is used it must be paired with uploadEndTimeInSeconds only.
516
+ *
517
+ */
518
+ uploadStartTimeInSeconds?: string;
519
+ /**
520
+ * A UTC timestamp representing the end of the time range to search.
521
+ * If this parameter is used it must be paired with uploadStartTimeInSeconds only.
522
+ *
523
+ */
524
+ uploadEndTimeInSeconds?: string;
525
+ /**
526
+ * Pull token required for OAuth2 integrations
527
+ */
528
+ token?: string;
529
+ };
530
+ url: '/rest/userMetrics';
531
+ };
532
+
533
+ export type GetUserMetricsErrors = {
534
+ /**
535
+ * Bad Request
536
+ */
537
+ 400: ErrorBody;
538
+ /**
539
+ * Unauthorized
540
+ */
541
+ 401: ErrorBody;
542
+ /**
543
+ * Forbidden
544
+ */
545
+ 403: ErrorBody;
546
+ /**
547
+ * Not Found
548
+ */
549
+ 404: ErrorBody;
550
+ /**
551
+ * Method Not Allowed
552
+ */
553
+ 405: ErrorBody;
554
+ /**
555
+ * Gone
556
+ */
557
+ 410: ErrorBody;
558
+ /**
559
+ * Precondition Failed
560
+ */
561
+ 412: ErrorBody;
562
+ /**
563
+ * Internal Server Error
564
+ */
565
+ 500: ErrorBody;
566
+ };
567
+
568
+ export type GetUserMetricsError = GetUserMetricsErrors[keyof GetUserMetricsErrors];
569
+
570
+ export type GetUserMetricsResponses = {
571
+ /**
572
+ * OK
573
+ */
574
+ 200: Array<ClientUserMetrics>;
575
+ };
576
+
577
+ export type GetUserMetricsResponse = GetUserMetricsResponses[keyof GetUserMetricsResponses];
578
+
579
+ export type GetUserPermissionsData = {
580
+ body?: never;
581
+ path?: never;
582
+ query?: never;
583
+ url: '/rest/user/permissions';
584
+ };
585
+
586
+ export type GetUserPermissionsErrors = {
587
+ /**
588
+ * Bad Request
589
+ */
590
+ 400: ErrorBody;
591
+ /**
592
+ * Unauthorized
593
+ */
594
+ 401: ErrorBody;
595
+ /**
596
+ * Forbidden
597
+ */
598
+ 403: ErrorBody;
599
+ /**
600
+ * Not Found
601
+ */
602
+ 404: ErrorBody;
603
+ /**
604
+ * Method Not Allowed
605
+ */
606
+ 405: ErrorBody;
607
+ /**
608
+ * Gone
609
+ */
610
+ 410: ErrorBody;
611
+ /**
612
+ * Precondition Failed
613
+ */
614
+ 412: ErrorBody;
615
+ /**
616
+ * Internal Server Error
617
+ */
618
+ 500: ErrorBody;
619
+ };
620
+
621
+ export type GetUserPermissionsError = GetUserPermissionsErrors[keyof GetUserPermissionsErrors];
622
+
623
+ export type GetUserPermissionsResponses = {
624
+ /**
625
+ * OK
626
+ */
627
+ 200: ClientConsumerPermissions;
628
+ };
629
+
630
+ export type GetUserPermissionsResponse = GetUserPermissionsResponses[keyof GetUserPermissionsResponses];
631
+
632
+ export type UserIdData = {
633
+ body?: never;
634
+ path?: never;
635
+ query?: never;
636
+ url: '/rest/user/id';
637
+ };
638
+
639
+ export type UserIdErrors = {
640
+ /**
641
+ * Bad Request
642
+ */
643
+ 400: ErrorBody;
644
+ /**
645
+ * Unauthorized
646
+ */
647
+ 401: ErrorBody;
648
+ /**
649
+ * Forbidden
650
+ */
651
+ 403: ErrorBody;
652
+ /**
653
+ * Not Found
654
+ */
655
+ 404: ErrorBody;
656
+ /**
657
+ * Method Not Allowed
658
+ */
659
+ 405: ErrorBody;
660
+ /**
661
+ * Gone
662
+ */
663
+ 410: ErrorBody;
664
+ /**
665
+ * Precondition Failed
666
+ */
667
+ 412: ErrorBody;
668
+ /**
669
+ * Internal Server Error
670
+ */
671
+ 500: ErrorBody;
672
+ };
673
+
674
+ export type UserIdError = UserIdErrors[keyof UserIdErrors];
675
+
676
+ export type UserIdResponses = {
677
+ /**
678
+ * OK
679
+ */
680
+ 200: ClientUserId;
681
+ };
682
+
683
+ export type UserIdResponse = UserIdResponses[keyof UserIdResponses];
684
+
685
+ export type GetStressDetailsData = {
686
+ body?: never;
687
+ path?: never;
688
+ query?: {
689
+ /**
690
+ * A UTC timestamp representing the beginning of the time range to search.
691
+ * If this parameter is used it must be paired with uploadEndTimeInSeconds only.
692
+ *
693
+ */
694
+ uploadStartTimeInSeconds?: string;
695
+ /**
696
+ * A UTC timestamp representing the end of the time range to search.
697
+ * If this parameter is used it must be paired with uploadStartTimeInSeconds only.
698
+ *
699
+ */
700
+ uploadEndTimeInSeconds?: string;
701
+ /**
702
+ * Pull token required for OAuth2 integrations
703
+ */
704
+ token?: string;
705
+ };
706
+ url: '/rest/stressDetails';
707
+ };
708
+
709
+ export type GetStressDetailsErrors = {
710
+ /**
711
+ * Bad Request
712
+ */
713
+ 400: ErrorBody;
714
+ /**
715
+ * Unauthorized
716
+ */
717
+ 401: ErrorBody;
718
+ /**
719
+ * Forbidden
720
+ */
721
+ 403: ErrorBody;
722
+ /**
723
+ * Not Found
724
+ */
725
+ 404: ErrorBody;
726
+ /**
727
+ * Method Not Allowed
728
+ */
729
+ 405: ErrorBody;
730
+ /**
731
+ * Gone
732
+ */
733
+ 410: ErrorBody;
734
+ /**
735
+ * Precondition Failed
736
+ */
737
+ 412: ErrorBody;
738
+ /**
739
+ * Internal Server Error
740
+ */
741
+ 500: ErrorBody;
742
+ };
743
+
744
+ export type GetStressDetailsError = GetStressDetailsErrors[keyof GetStressDetailsErrors];
745
+
746
+ export type GetStressDetailsResponses = {
747
+ /**
748
+ * OK
749
+ */
750
+ 200: Array<ClientStress>;
751
+ };
752
+
753
+ export type GetStressDetailsResponse = GetStressDetailsResponses[keyof GetStressDetailsResponses];
754
+
755
+ export type GetSolarData = {
756
+ body?: never;
757
+ path?: never;
758
+ query?: {
759
+ /**
760
+ * A UTC timestamp representing the beginning of the time range to search.
761
+ * If this parameter is used it must be paired with uploadEndTimeInSeconds only.
762
+ *
763
+ */
764
+ uploadStartTimeInSeconds?: string;
765
+ /**
766
+ * A UTC timestamp representing the end of the time range to search.
767
+ * If this parameter is used it must be paired with uploadStartTimeInSeconds only.
768
+ *
769
+ */
770
+ uploadEndTimeInSeconds?: string;
771
+ /**
772
+ * Pull token required for OAuth2 integrations
773
+ */
774
+ token?: string;
775
+ };
776
+ url: '/rest/solarIntensity';
777
+ };
778
+
779
+ export type GetSolarErrors = {
780
+ /**
781
+ * Bad Request
782
+ */
783
+ 400: ErrorBody;
784
+ /**
785
+ * Unauthorized
786
+ */
787
+ 401: ErrorBody;
788
+ /**
789
+ * Forbidden
790
+ */
791
+ 403: ErrorBody;
792
+ /**
793
+ * Not Found
794
+ */
795
+ 404: ErrorBody;
796
+ /**
797
+ * Method Not Allowed
798
+ */
799
+ 405: ErrorBody;
800
+ /**
801
+ * Gone
802
+ */
803
+ 410: ErrorBody;
804
+ /**
805
+ * Precondition Failed
806
+ */
807
+ 412: ErrorBody;
808
+ /**
809
+ * Internal Server Error
810
+ */
811
+ 500: ErrorBody;
812
+ };
813
+
814
+ export type GetSolarError = GetSolarErrors[keyof GetSolarErrors];
815
+
816
+ export type GetSolarResponses = {
817
+ /**
818
+ * OK
819
+ */
820
+ 200: Array<ClientSolar>;
821
+ };
822
+
823
+ export type GetSolarResponse = GetSolarResponses[keyof GetSolarResponses];
824
+
825
+ export type GetSleepsData = {
826
+ body?: never;
827
+ path?: never;
828
+ query?: {
829
+ /**
830
+ * A UTC timestamp representing the beginning of the time range to search.
831
+ * If this parameter is used it must be paired with uploadEndTimeInSeconds only.
832
+ *
833
+ */
834
+ uploadStartTimeInSeconds?: string;
835
+ /**
836
+ * A UTC timestamp representing the end of the time range to search.
837
+ * If this parameter is used it must be paired with uploadStartTimeInSeconds only.
838
+ *
839
+ */
840
+ uploadEndTimeInSeconds?: string;
841
+ /**
842
+ * Pull token required for OAuth2 integrations
843
+ */
844
+ token?: string;
845
+ };
846
+ url: '/rest/sleeps';
847
+ };
848
+
849
+ export type GetSleepsErrors = {
850
+ /**
851
+ * Bad Request
852
+ */
853
+ 400: ErrorBody;
854
+ /**
855
+ * Unauthorized
856
+ */
857
+ 401: ErrorBody;
858
+ /**
859
+ * Forbidden
860
+ */
861
+ 403: ErrorBody;
862
+ /**
863
+ * Not Found
864
+ */
865
+ 404: ErrorBody;
866
+ /**
867
+ * Method Not Allowed
868
+ */
869
+ 405: ErrorBody;
870
+ /**
871
+ * Gone
872
+ */
873
+ 410: ErrorBody;
874
+ /**
875
+ * Precondition Failed
876
+ */
877
+ 412: ErrorBody;
878
+ /**
879
+ * Internal Server Error
880
+ */
881
+ 500: ErrorBody;
882
+ };
883
+
884
+ export type GetSleepsError = GetSleepsErrors[keyof GetSleepsErrors];
885
+
886
+ export type GetSleepsResponses = {
887
+ /**
888
+ * OK
889
+ */
890
+ 200: Array<ClientSleep>;
891
+ };
892
+
893
+ export type GetSleepsResponse = GetSleepsResponses[keyof GetSleepsResponses];
894
+
895
+ export type GetSkinTempData = {
896
+ body?: never;
897
+ path?: never;
898
+ query?: {
899
+ /**
900
+ * A UTC timestamp representing the beginning of the time range to search.
901
+ * If this parameter is used it must be paired with uploadEndTimeInSeconds only.
902
+ *
903
+ */
904
+ uploadStartTimeInSeconds?: string;
905
+ /**
906
+ * A UTC timestamp representing the end of the time range to search.
907
+ * If this parameter is used it must be paired with uploadStartTimeInSeconds only.
908
+ *
909
+ */
910
+ uploadEndTimeInSeconds?: string;
911
+ /**
912
+ * Pull token required for OAuth2 integrations
913
+ */
914
+ token?: string;
915
+ };
916
+ url: '/rest/skinTemp';
917
+ };
918
+
919
+ export type GetSkinTempErrors = {
920
+ /**
921
+ * Bad Request
922
+ */
923
+ 400: ErrorBody;
924
+ /**
925
+ * Unauthorized
926
+ */
927
+ 401: ErrorBody;
928
+ /**
929
+ * Forbidden
930
+ */
931
+ 403: ErrorBody;
932
+ /**
933
+ * Not Found
934
+ */
935
+ 404: ErrorBody;
936
+ /**
937
+ * Method Not Allowed
938
+ */
939
+ 405: ErrorBody;
940
+ /**
941
+ * Gone
942
+ */
943
+ 410: ErrorBody;
944
+ /**
945
+ * Precondition Failed
946
+ */
947
+ 412: ErrorBody;
948
+ /**
949
+ * Internal Server Error
950
+ */
951
+ 500: ErrorBody;
952
+ };
953
+
954
+ export type GetSkinTempError = GetSkinTempErrors[keyof GetSkinTempErrors];
955
+
956
+ export type GetSkinTempResponses = {
957
+ /**
958
+ * OK
959
+ */
960
+ 200: Array<ClientSkinTemp>;
961
+ };
962
+
963
+ export type GetSkinTempResponse = GetSkinTempResponses[keyof GetSkinTempResponses];
964
+
965
+ export type GetRespirationData = {
966
+ body?: never;
967
+ path?: never;
968
+ query?: {
969
+ /**
970
+ * A UTC timestamp representing the beginning of the time range to search.
971
+ * If this parameter is used it must be paired with uploadEndTimeInSeconds only.
972
+ *
973
+ */
974
+ uploadStartTimeInSeconds?: string;
975
+ /**
976
+ * A UTC timestamp representing the end of the time range to search.
977
+ * If this parameter is used it must be paired with uploadStartTimeInSeconds only.
978
+ *
979
+ */
980
+ uploadEndTimeInSeconds?: string;
981
+ /**
982
+ * Pull token required for OAuth2 integrations
983
+ */
984
+ token?: string;
985
+ };
986
+ url: '/rest/respiration';
987
+ };
988
+
989
+ export type GetRespirationErrors = {
990
+ /**
991
+ * Bad Request
992
+ */
993
+ 400: ErrorBody;
994
+ /**
995
+ * Unauthorized
996
+ */
997
+ 401: ErrorBody;
998
+ /**
999
+ * Forbidden
1000
+ */
1001
+ 403: ErrorBody;
1002
+ /**
1003
+ * Not Found
1004
+ */
1005
+ 404: ErrorBody;
1006
+ /**
1007
+ * Method Not Allowed
1008
+ */
1009
+ 405: ErrorBody;
1010
+ /**
1011
+ * Gone
1012
+ */
1013
+ 410: ErrorBody;
1014
+ /**
1015
+ * Precondition Failed
1016
+ */
1017
+ 412: ErrorBody;
1018
+ /**
1019
+ * Internal Server Error
1020
+ */
1021
+ 500: ErrorBody;
1022
+ };
1023
+
1024
+ export type GetRespirationError = GetRespirationErrors[keyof GetRespirationErrors];
1025
+
1026
+ export type GetRespirationResponses = {
1027
+ /**
1028
+ * OK
1029
+ */
1030
+ 200: Array<ClientRespiration>;
1031
+ };
1032
+
1033
+ export type GetRespirationResponse = GetRespirationResponses[keyof GetRespirationResponses];
1034
+
1035
+ export type GetPulseoxData = {
1036
+ body?: never;
1037
+ path?: never;
1038
+ query?: {
1039
+ /**
1040
+ * A UTC timestamp representing the beginning of the time range to search.
1041
+ * If this parameter is used it must be paired with uploadEndTimeInSeconds only.
1042
+ *
1043
+ */
1044
+ uploadStartTimeInSeconds?: string;
1045
+ /**
1046
+ * A UTC timestamp representing the end of the time range to search.
1047
+ * If this parameter is used it must be paired with uploadStartTimeInSeconds only.
1048
+ *
1049
+ */
1050
+ uploadEndTimeInSeconds?: string;
1051
+ /**
1052
+ * Pull token required for OAuth2 integrations
1053
+ */
1054
+ token?: string;
1055
+ };
1056
+ url: '/rest/pulseOx';
1057
+ };
1058
+
1059
+ export type GetPulseoxErrors = {
1060
+ /**
1061
+ * Bad Request
1062
+ */
1063
+ 400: ErrorBody;
1064
+ /**
1065
+ * Unauthorized
1066
+ */
1067
+ 401: ErrorBody;
1068
+ /**
1069
+ * Forbidden
1070
+ */
1071
+ 403: ErrorBody;
1072
+ /**
1073
+ * Not Found
1074
+ */
1075
+ 404: ErrorBody;
1076
+ /**
1077
+ * Method Not Allowed
1078
+ */
1079
+ 405: ErrorBody;
1080
+ /**
1081
+ * Gone
1082
+ */
1083
+ 410: ErrorBody;
1084
+ /**
1085
+ * Precondition Failed
1086
+ */
1087
+ 412: ErrorBody;
1088
+ /**
1089
+ * Internal Server Error
1090
+ */
1091
+ 500: ErrorBody;
1092
+ };
1093
+
1094
+ export type GetPulseoxError = GetPulseoxErrors[keyof GetPulseoxErrors];
1095
+
1096
+ export type GetPulseoxResponses = {
1097
+ /**
1098
+ * OK
1099
+ */
1100
+ 200: Array<ClientDailySpo2Acclimation>;
1101
+ };
1102
+
1103
+ export type GetPulseoxResponse = GetPulseoxResponses[keyof GetPulseoxResponses];
1104
+
1105
+ export type GetMoveIqData = {
1106
+ body?: never;
1107
+ path?: never;
1108
+ query?: {
1109
+ /**
1110
+ * A UTC timestamp representing the beginning of the time range to search.
1111
+ * If this parameter is used it must be paired with uploadEndTimeInSeconds only.
1112
+ *
1113
+ */
1114
+ uploadStartTimeInSeconds?: string;
1115
+ /**
1116
+ * A UTC timestamp representing the end of the time range to search.
1117
+ * If this parameter is used it must be paired with uploadStartTimeInSeconds only.
1118
+ *
1119
+ */
1120
+ uploadEndTimeInSeconds?: string;
1121
+ /**
1122
+ * Pull token required for OAuth2 integrations
1123
+ */
1124
+ token?: string;
1125
+ };
1126
+ url: '/rest/moveiq';
1127
+ };
1128
+
1129
+ export type GetMoveIqErrors = {
1130
+ /**
1131
+ * Bad Request
1132
+ */
1133
+ 400: ErrorBody;
1134
+ /**
1135
+ * Unauthorized
1136
+ */
1137
+ 401: ErrorBody;
1138
+ /**
1139
+ * Forbidden
1140
+ */
1141
+ 403: ErrorBody;
1142
+ /**
1143
+ * Not Found
1144
+ */
1145
+ 404: ErrorBody;
1146
+ /**
1147
+ * Method Not Allowed
1148
+ */
1149
+ 405: ErrorBody;
1150
+ /**
1151
+ * Gone
1152
+ */
1153
+ 410: ErrorBody;
1154
+ /**
1155
+ * Precondition Failed
1156
+ */
1157
+ 412: ErrorBody;
1158
+ /**
1159
+ * Internal Server Error
1160
+ */
1161
+ 500: ErrorBody;
1162
+ };
1163
+
1164
+ export type GetMoveIqError = GetMoveIqErrors[keyof GetMoveIqErrors];
1165
+
1166
+ export type GetMoveIqResponses = {
1167
+ /**
1168
+ * OK
1169
+ */
1170
+ 200: Array<ClientAutoActivityMoveIq>;
1171
+ };
1172
+
1173
+ export type GetMoveIqResponse = GetMoveIqResponses[keyof GetMoveIqResponses];
1174
+
1175
+ export type GetMctData = {
1176
+ body?: never;
1177
+ path?: never;
1178
+ query?: {
1179
+ /**
1180
+ * A UTC timestamp representing the beginning of the time range to search.
1181
+ * If this parameter is used it must be paired with uploadEndTimeInSeconds only.
1182
+ *
1183
+ */
1184
+ uploadStartTimeInSeconds?: string;
1185
+ /**
1186
+ * A UTC timestamp representing the end of the time range to search.
1187
+ * If this parameter is used it must be paired with uploadStartTimeInSeconds only.
1188
+ *
1189
+ */
1190
+ uploadEndTimeInSeconds?: string;
1191
+ /**
1192
+ * Pull token required for OAuth2 integrations
1193
+ */
1194
+ token?: string;
1195
+ };
1196
+ url: '/rest/mct';
1197
+ };
1198
+
1199
+ export type GetMctErrors = {
1200
+ /**
1201
+ * Bad Request
1202
+ */
1203
+ 400: ErrorBody;
1204
+ /**
1205
+ * Unauthorized
1206
+ */
1207
+ 401: ErrorBody;
1208
+ /**
1209
+ * Forbidden
1210
+ */
1211
+ 403: ErrorBody;
1212
+ /**
1213
+ * Not Found
1214
+ */
1215
+ 404: ErrorBody;
1216
+ /**
1217
+ * Method Not Allowed
1218
+ */
1219
+ 405: ErrorBody;
1220
+ /**
1221
+ * Gone
1222
+ */
1223
+ 410: ErrorBody;
1224
+ /**
1225
+ * Precondition Failed
1226
+ */
1227
+ 412: ErrorBody;
1228
+ /**
1229
+ * Internal Server Error
1230
+ */
1231
+ 500: ErrorBody;
1232
+ };
1233
+
1234
+ export type GetMctError = GetMctErrors[keyof GetMctErrors];
1235
+
1236
+ export type GetMctResponses = {
1237
+ /**
1238
+ * OK
1239
+ */
1240
+ 200: Array<ClientSummarizedMenstrualCycle>;
1241
+ };
1242
+
1243
+ export type GetMctResponse = GetMctResponses[keyof GetMctResponses];
1244
+
1245
+ export type GetManuallyUpdatedActivitiesData = {
1246
+ body?: never;
1247
+ path?: never;
1248
+ query?: {
1249
+ /**
1250
+ * A UTC timestamp representing the beginning of the time range to search.
1251
+ * If this parameter is used it must be paired with uploadEndTimeInSeconds only.
1252
+ *
1253
+ */
1254
+ uploadStartTimeInSeconds?: string;
1255
+ /**
1256
+ * A UTC timestamp representing the end of the time range to search.
1257
+ * If this parameter is used it must be paired with uploadStartTimeInSeconds only.
1258
+ *
1259
+ */
1260
+ uploadEndTimeInSeconds?: string;
1261
+ /**
1262
+ * Pull token required for OAuth2 integrations
1263
+ */
1264
+ token?: string;
1265
+ };
1266
+ url: '/rest/manuallyUpdatedActivities';
1267
+ };
1268
+
1269
+ export type GetManuallyUpdatedActivitiesErrors = {
1270
+ /**
1271
+ * Bad Request
1272
+ */
1273
+ 400: ErrorBody;
1274
+ /**
1275
+ * Unauthorized
1276
+ */
1277
+ 401: ErrorBody;
1278
+ /**
1279
+ * Forbidden
1280
+ */
1281
+ 403: ErrorBody;
1282
+ /**
1283
+ * Not Found
1284
+ */
1285
+ 404: ErrorBody;
1286
+ /**
1287
+ * Method Not Allowed
1288
+ */
1289
+ 405: ErrorBody;
1290
+ /**
1291
+ * Gone
1292
+ */
1293
+ 410: ErrorBody;
1294
+ /**
1295
+ * Precondition Failed
1296
+ */
1297
+ 412: ErrorBody;
1298
+ /**
1299
+ * Internal Server Error
1300
+ */
1301
+ 500: ErrorBody;
1302
+ };
1303
+
1304
+ export type GetManuallyUpdatedActivitiesError = GetManuallyUpdatedActivitiesErrors[keyof GetManuallyUpdatedActivitiesErrors];
1305
+
1306
+ export type GetManuallyUpdatedActivitiesResponses = {
1307
+ /**
1308
+ * OK
1309
+ */
1310
+ 200: Array<ClientActivity>;
1311
+ };
1312
+
1313
+ export type GetManuallyUpdatedActivitiesResponse = GetManuallyUpdatedActivitiesResponses[keyof GetManuallyUpdatedActivitiesResponses];
1314
+
1315
+ export type GetHrvData = {
1316
+ body?: never;
1317
+ path?: never;
1318
+ query?: {
1319
+ /**
1320
+ * A UTC timestamp representing the beginning of the time range to search.
1321
+ * If this parameter is used it must be paired with uploadEndTimeInSeconds only.
1322
+ *
1323
+ */
1324
+ uploadStartTimeInSeconds?: string;
1325
+ /**
1326
+ * A UTC timestamp representing the end of the time range to search.
1327
+ * If this parameter is used it must be paired with uploadStartTimeInSeconds only.
1328
+ *
1329
+ */
1330
+ uploadEndTimeInSeconds?: string;
1331
+ /**
1332
+ * Pull token required for OAuth2 integrations
1333
+ */
1334
+ token?: string;
1335
+ };
1336
+ url: '/rest/hrv';
1337
+ };
1338
+
1339
+ export type GetHrvErrors = {
1340
+ /**
1341
+ * Bad Request
1342
+ */
1343
+ 400: ErrorBody;
1344
+ /**
1345
+ * Unauthorized
1346
+ */
1347
+ 401: ErrorBody;
1348
+ /**
1349
+ * Forbidden
1350
+ */
1351
+ 403: ErrorBody;
1352
+ /**
1353
+ * Not Found
1354
+ */
1355
+ 404: ErrorBody;
1356
+ /**
1357
+ * Method Not Allowed
1358
+ */
1359
+ 405: ErrorBody;
1360
+ /**
1361
+ * Gone
1362
+ */
1363
+ 410: ErrorBody;
1364
+ /**
1365
+ * Precondition Failed
1366
+ */
1367
+ 412: ErrorBody;
1368
+ /**
1369
+ * Internal Server Error
1370
+ */
1371
+ 500: ErrorBody;
1372
+ };
1373
+
1374
+ export type GetHrvError = GetHrvErrors[keyof GetHrvErrors];
1375
+
1376
+ export type GetHrvResponses = {
1377
+ /**
1378
+ * OK
1379
+ */
1380
+ 200: Array<ClientHrvSummary>;
1381
+ };
1382
+
1383
+ export type GetHrvResponse = GetHrvResponses[keyof GetHrvResponses];
1384
+
1385
+ export type GetHealthsnapshotData = {
1386
+ body?: never;
1387
+ path?: never;
1388
+ query?: {
1389
+ /**
1390
+ * A UTC timestamp representing the beginning of the time range to search.
1391
+ * If this parameter is used it must be paired with uploadEndTimeInSeconds only.
1392
+ *
1393
+ */
1394
+ uploadStartTimeInSeconds?: string;
1395
+ /**
1396
+ * A UTC timestamp representing the end of the time range to search.
1397
+ * If this parameter is used it must be paired with uploadStartTimeInSeconds only.
1398
+ *
1399
+ */
1400
+ uploadEndTimeInSeconds?: string;
1401
+ /**
1402
+ * Pull token required for OAuth2 integrations
1403
+ */
1404
+ token?: string;
1405
+ };
1406
+ url: '/rest/healthSnapshot';
1407
+ };
1408
+
1409
+ export type GetHealthsnapshotErrors = {
1410
+ /**
1411
+ * Bad Request
1412
+ */
1413
+ 400: ErrorBody;
1414
+ /**
1415
+ * Unauthorized
1416
+ */
1417
+ 401: ErrorBody;
1418
+ /**
1419
+ * Forbidden
1420
+ */
1421
+ 403: ErrorBody;
1422
+ /**
1423
+ * Not Found
1424
+ */
1425
+ 404: ErrorBody;
1426
+ /**
1427
+ * Method Not Allowed
1428
+ */
1429
+ 405: ErrorBody;
1430
+ /**
1431
+ * Gone
1432
+ */
1433
+ 410: ErrorBody;
1434
+ /**
1435
+ * Precondition Failed
1436
+ */
1437
+ 412: ErrorBody;
1438
+ /**
1439
+ * Internal Server Error
1440
+ */
1441
+ 500: ErrorBody;
1442
+ };
1443
+
1444
+ export type GetHealthsnapshotError = GetHealthsnapshotErrors[keyof GetHealthsnapshotErrors];
1445
+
1446
+ export type GetHealthsnapshotResponses = {
1447
+ /**
1448
+ * OK
1449
+ */
1450
+ 200: Array<ClientHealthSnapshot>;
1451
+ };
1452
+
1453
+ export type GetHealthsnapshotResponse = GetHealthsnapshotResponses[keyof GetHealthsnapshotResponses];
1454
+
1455
+ export type GetEpochsData = {
1456
+ body?: never;
1457
+ path?: never;
1458
+ query?: {
1459
+ /**
1460
+ * A UTC timestamp representing the beginning of the time range to search.
1461
+ * If this parameter is used it must be paired with uploadEndTimeInSeconds only.
1462
+ *
1463
+ */
1464
+ uploadStartTimeInSeconds?: string;
1465
+ /**
1466
+ * A UTC timestamp representing the end of the time range to search.
1467
+ * If this parameter is used it must be paired with uploadStartTimeInSeconds only.
1468
+ *
1469
+ */
1470
+ uploadEndTimeInSeconds?: string;
1471
+ /**
1472
+ * Pull token required for OAuth2 integrations
1473
+ */
1474
+ token?: string;
1475
+ };
1476
+ url: '/rest/epochs';
1477
+ };
1478
+
1479
+ export type GetEpochsErrors = {
1480
+ /**
1481
+ * Bad Request
1482
+ */
1483
+ 400: ErrorBody;
1484
+ /**
1485
+ * Unauthorized
1486
+ */
1487
+ 401: ErrorBody;
1488
+ /**
1489
+ * Forbidden
1490
+ */
1491
+ 403: ErrorBody;
1492
+ /**
1493
+ * Not Found
1494
+ */
1495
+ 404: ErrorBody;
1496
+ /**
1497
+ * Method Not Allowed
1498
+ */
1499
+ 405: ErrorBody;
1500
+ /**
1501
+ * Gone
1502
+ */
1503
+ 410: ErrorBody;
1504
+ /**
1505
+ * Precondition Failed
1506
+ */
1507
+ 412: ErrorBody;
1508
+ /**
1509
+ * Internal Server Error
1510
+ */
1511
+ 500: ErrorBody;
1512
+ };
1513
+
1514
+ export type GetEpochsError = GetEpochsErrors[keyof GetEpochsErrors];
1515
+
1516
+ export type GetEpochsResponses = {
1517
+ /**
1518
+ * OK
1519
+ */
1520
+ 200: Array<ClientEpoch>;
1521
+ };
1522
+
1523
+ export type GetEpochsResponse = GetEpochsResponses[keyof GetEpochsResponses];
1524
+
1525
+ export type GetDailiesData = {
1526
+ body?: never;
1527
+ path?: never;
1528
+ query?: {
1529
+ /**
1530
+ * A UTC timestamp representing the beginning of the time range to search.
1531
+ * If this parameter is used it must be paired with uploadEndTimeInSeconds only.
1532
+ *
1533
+ */
1534
+ uploadStartTimeInSeconds?: string;
1535
+ /**
1536
+ * A UTC timestamp representing the end of the time range to search.
1537
+ * If this parameter is used it must be paired with uploadStartTimeInSeconds only.
1538
+ *
1539
+ */
1540
+ uploadEndTimeInSeconds?: string;
1541
+ /**
1542
+ * Pull token required for OAuth2 integrations
1543
+ */
1544
+ token?: string;
1545
+ };
1546
+ url: '/rest/dailies';
1547
+ };
1548
+
1549
+ export type GetDailiesErrors = {
1550
+ /**
1551
+ * Bad Request
1552
+ */
1553
+ 400: ErrorBody;
1554
+ /**
1555
+ * Unauthorized
1556
+ */
1557
+ 401: ErrorBody;
1558
+ /**
1559
+ * Forbidden
1560
+ */
1561
+ 403: ErrorBody;
1562
+ /**
1563
+ * Not Found
1564
+ */
1565
+ 404: ErrorBody;
1566
+ /**
1567
+ * Method Not Allowed
1568
+ */
1569
+ 405: ErrorBody;
1570
+ /**
1571
+ * Gone
1572
+ */
1573
+ 410: ErrorBody;
1574
+ /**
1575
+ * Precondition Failed
1576
+ */
1577
+ 412: ErrorBody;
1578
+ /**
1579
+ * Internal Server Error
1580
+ */
1581
+ 500: ErrorBody;
1582
+ };
1583
+
1584
+ export type GetDailiesError = GetDailiesErrors[keyof GetDailiesErrors];
1585
+
1586
+ export type GetDailiesResponses = {
1587
+ /**
1588
+ * OK
1589
+ */
1590
+ 200: Array<ClientDaily>;
1591
+ };
1592
+
1593
+ export type GetDailiesResponse = GetDailiesResponses[keyof GetDailiesResponses];
1594
+
1595
+ export type GetBodyCompsData = {
1596
+ body?: never;
1597
+ path?: never;
1598
+ query?: {
1599
+ /**
1600
+ * A UTC timestamp representing the beginning of the time range to search.
1601
+ * If this parameter is used it must be paired with uploadEndTimeInSeconds only.
1602
+ *
1603
+ */
1604
+ uploadStartTimeInSeconds?: string;
1605
+ /**
1606
+ * A UTC timestamp representing the end of the time range to search.
1607
+ * If this parameter is used it must be paired with uploadStartTimeInSeconds only.
1608
+ *
1609
+ */
1610
+ uploadEndTimeInSeconds?: string;
1611
+ /**
1612
+ * Pull token required for OAuth2 integrations
1613
+ */
1614
+ token?: string;
1615
+ };
1616
+ url: '/rest/bodyComps';
1617
+ };
1618
+
1619
+ export type GetBodyCompsErrors = {
1620
+ /**
1621
+ * Bad Request
1622
+ */
1623
+ 400: ErrorBody;
1624
+ /**
1625
+ * Unauthorized
1626
+ */
1627
+ 401: ErrorBody;
1628
+ /**
1629
+ * Forbidden
1630
+ */
1631
+ 403: ErrorBody;
1632
+ /**
1633
+ * Not Found
1634
+ */
1635
+ 404: ErrorBody;
1636
+ /**
1637
+ * Method Not Allowed
1638
+ */
1639
+ 405: ErrorBody;
1640
+ /**
1641
+ * Gone
1642
+ */
1643
+ 410: ErrorBody;
1644
+ /**
1645
+ * Precondition Failed
1646
+ */
1647
+ 412: ErrorBody;
1648
+ /**
1649
+ * Internal Server Error
1650
+ */
1651
+ 500: ErrorBody;
1652
+ };
1653
+
1654
+ export type GetBodyCompsError = GetBodyCompsErrors[keyof GetBodyCompsErrors];
1655
+
1656
+ export type GetBodyCompsResponses = {
1657
+ /**
1658
+ * OK
1659
+ */
1660
+ 200: Array<ClientBodyComp>;
1661
+ };
1662
+
1663
+ export type GetBodyCompsResponse = GetBodyCompsResponses[keyof GetBodyCompsResponses];
1664
+
1665
+ export type GetBloodPressuresData = {
1666
+ body?: never;
1667
+ path?: never;
1668
+ query?: {
1669
+ /**
1670
+ * A UTC timestamp representing the beginning of the time range to search.
1671
+ * If this parameter is used it must be paired with uploadEndTimeInSeconds only.
1672
+ *
1673
+ */
1674
+ uploadStartTimeInSeconds?: string;
1675
+ /**
1676
+ * A UTC timestamp representing the end of the time range to search.
1677
+ * If this parameter is used it must be paired with uploadStartTimeInSeconds only.
1678
+ *
1679
+ */
1680
+ uploadEndTimeInSeconds?: string;
1681
+ /**
1682
+ * Pull token required for OAuth2 integrations
1683
+ */
1684
+ token?: string;
1685
+ };
1686
+ url: '/rest/bloodPressures';
1687
+ };
1688
+
1689
+ export type GetBloodPressuresErrors = {
1690
+ /**
1691
+ * Bad Request
1692
+ */
1693
+ 400: ErrorBody;
1694
+ /**
1695
+ * Unauthorized
1696
+ */
1697
+ 401: ErrorBody;
1698
+ /**
1699
+ * Forbidden
1700
+ */
1701
+ 403: ErrorBody;
1702
+ /**
1703
+ * Not Found
1704
+ */
1705
+ 404: ErrorBody;
1706
+ /**
1707
+ * Method Not Allowed
1708
+ */
1709
+ 405: ErrorBody;
1710
+ /**
1711
+ * Gone
1712
+ */
1713
+ 410: ErrorBody;
1714
+ /**
1715
+ * Precondition Failed
1716
+ */
1717
+ 412: ErrorBody;
1718
+ /**
1719
+ * Internal Server Error
1720
+ */
1721
+ 500: ErrorBody;
1722
+ };
1723
+
1724
+ export type GetBloodPressuresError = GetBloodPressuresErrors[keyof GetBloodPressuresErrors];
1725
+
1726
+ export type GetBloodPressuresResponses = {
1727
+ /**
1728
+ * OK
1729
+ */
1730
+ 200: Array<ClientBloodPressure>;
1731
+ };
1732
+
1733
+ export type GetBloodPressuresResponse = GetBloodPressuresResponses[keyof GetBloodPressuresResponses];
1734
+
1735
+ export type GetBackfillUserMetricsData = {
1736
+ body?: never;
1737
+ path?: never;
1738
+ query?: {
1739
+ /**
1740
+ * A UTC timestamp representing the beginning of the time range to search. This is a required parameter.
1741
+ */
1742
+ summaryStartTimeInSeconds?: string;
1743
+ /**
1744
+ * A UTC timestamp representing the end of the time range to search. This is a required parameter.
1745
+ */
1746
+ summaryEndTimeInSeconds?: string;
1747
+ };
1748
+ url: '/rest/backfill/userMetrics';
1749
+ };
1750
+
1751
+ export type GetBackfillUserMetricsErrors = {
1752
+ /**
1753
+ * Bad Request
1754
+ */
1755
+ 400: ErrorBody;
1756
+ /**
1757
+ * Unauthorized
1758
+ */
1759
+ 401: ErrorBody;
1760
+ /**
1761
+ * Forbidden
1762
+ */
1763
+ 403: ErrorBody;
1764
+ /**
1765
+ * Not Found
1766
+ */
1767
+ 404: ErrorBody;
1768
+ /**
1769
+ * Method Not Allowed
1770
+ */
1771
+ 405: ErrorBody;
1772
+ /**
1773
+ * Gone
1774
+ */
1775
+ 410: ErrorBody;
1776
+ /**
1777
+ * Precondition Failed
1778
+ */
1779
+ 412: ErrorBody;
1780
+ /**
1781
+ * Internal Server Error
1782
+ */
1783
+ 500: ErrorBody;
1784
+ };
1785
+
1786
+ export type GetBackfillUserMetricsError = GetBackfillUserMetricsErrors[keyof GetBackfillUserMetricsErrors];
1787
+
1788
+ export type GetBackfillUserMetricsResponses = {
1789
+ /**
1790
+ * Accepted
1791
+ */
1792
+ 202: unknown;
1793
+ };
1794
+
1795
+ export type GetBackfillStressDetailsData = {
1796
+ body?: never;
1797
+ path?: never;
1798
+ query?: {
1799
+ /**
1800
+ * A UTC timestamp representing the beginning of the time range to search. This is a required parameter.
1801
+ */
1802
+ summaryStartTimeInSeconds?: string;
1803
+ /**
1804
+ * A UTC timestamp representing the end of the time range to search. This is a required parameter.
1805
+ */
1806
+ summaryEndTimeInSeconds?: string;
1807
+ };
1808
+ url: '/rest/backfill/stressDetails';
1809
+ };
1810
+
1811
+ export type GetBackfillStressDetailsErrors = {
1812
+ /**
1813
+ * Bad Request
1814
+ */
1815
+ 400: ErrorBody;
1816
+ /**
1817
+ * Unauthorized
1818
+ */
1819
+ 401: ErrorBody;
1820
+ /**
1821
+ * Forbidden
1822
+ */
1823
+ 403: ErrorBody;
1824
+ /**
1825
+ * Not Found
1826
+ */
1827
+ 404: ErrorBody;
1828
+ /**
1829
+ * Method Not Allowed
1830
+ */
1831
+ 405: ErrorBody;
1832
+ /**
1833
+ * Gone
1834
+ */
1835
+ 410: ErrorBody;
1836
+ /**
1837
+ * Precondition Failed
1838
+ */
1839
+ 412: ErrorBody;
1840
+ /**
1841
+ * Internal Server Error
1842
+ */
1843
+ 500: ErrorBody;
1844
+ };
1845
+
1846
+ export type GetBackfillStressDetailsError = GetBackfillStressDetailsErrors[keyof GetBackfillStressDetailsErrors];
1847
+
1848
+ export type GetBackfillStressDetailsResponses = {
1849
+ /**
1850
+ * Accepted
1851
+ */
1852
+ 202: unknown;
1853
+ };
1854
+
1855
+ export type GetBackfillSleepsData = {
1856
+ body?: never;
1857
+ path?: never;
1858
+ query?: {
1859
+ /**
1860
+ * A UTC timestamp representing the beginning of the time range to search. This is a required parameter.
1861
+ */
1862
+ summaryStartTimeInSeconds?: string;
1863
+ /**
1864
+ * A UTC timestamp representing the end of the time range to search. This is a required parameter.
1865
+ */
1866
+ summaryEndTimeInSeconds?: string;
1867
+ };
1868
+ url: '/rest/backfill/sleeps';
1869
+ };
1870
+
1871
+ export type GetBackfillSleepsErrors = {
1872
+ /**
1873
+ * Bad Request
1874
+ */
1875
+ 400: ErrorBody;
1876
+ /**
1877
+ * Unauthorized
1878
+ */
1879
+ 401: ErrorBody;
1880
+ /**
1881
+ * Forbidden
1882
+ */
1883
+ 403: ErrorBody;
1884
+ /**
1885
+ * Not Found
1886
+ */
1887
+ 404: ErrorBody;
1888
+ /**
1889
+ * Method Not Allowed
1890
+ */
1891
+ 405: ErrorBody;
1892
+ /**
1893
+ * Gone
1894
+ */
1895
+ 410: ErrorBody;
1896
+ /**
1897
+ * Precondition Failed
1898
+ */
1899
+ 412: ErrorBody;
1900
+ /**
1901
+ * Internal Server Error
1902
+ */
1903
+ 500: ErrorBody;
1904
+ };
1905
+
1906
+ export type GetBackfillSleepsError = GetBackfillSleepsErrors[keyof GetBackfillSleepsErrors];
1907
+
1908
+ export type GetBackfillSleepsResponses = {
1909
+ /**
1910
+ * Accepted
1911
+ */
1912
+ 202: unknown;
1913
+ };
1914
+
1915
+ export type GetBackfillSkinTempData = {
1916
+ body?: never;
1917
+ path?: never;
1918
+ query?: {
1919
+ /**
1920
+ * A UTC timestamp representing the beginning of the time range to search. This is a required parameter.
1921
+ */
1922
+ summaryStartTimeInSeconds?: string;
1923
+ /**
1924
+ * A UTC timestamp representing the end of the time range to search. This is a required parameter.
1925
+ */
1926
+ summaryEndTimeInSeconds?: string;
1927
+ };
1928
+ url: '/rest/backfill/skinTemp';
1929
+ };
1930
+
1931
+ export type GetBackfillSkinTempErrors = {
1932
+ /**
1933
+ * Bad Request
1934
+ */
1935
+ 400: ErrorBody;
1936
+ /**
1937
+ * Unauthorized
1938
+ */
1939
+ 401: ErrorBody;
1940
+ /**
1941
+ * Forbidden
1942
+ */
1943
+ 403: ErrorBody;
1944
+ /**
1945
+ * Not Found
1946
+ */
1947
+ 404: ErrorBody;
1948
+ /**
1949
+ * Method Not Allowed
1950
+ */
1951
+ 405: ErrorBody;
1952
+ /**
1953
+ * Gone
1954
+ */
1955
+ 410: ErrorBody;
1956
+ /**
1957
+ * Precondition Failed
1958
+ */
1959
+ 412: ErrorBody;
1960
+ /**
1961
+ * Internal Server Error
1962
+ */
1963
+ 500: ErrorBody;
1964
+ };
1965
+
1966
+ export type GetBackfillSkinTempError = GetBackfillSkinTempErrors[keyof GetBackfillSkinTempErrors];
1967
+
1968
+ export type GetBackfillSkinTempResponses = {
1969
+ /**
1970
+ * Accepted
1971
+ */
1972
+ 202: unknown;
1973
+ };
1974
+
1975
+ export type GetBackfillRespirationEpochData = {
1976
+ body?: never;
1977
+ path?: never;
1978
+ query?: {
1979
+ /**
1980
+ * A UTC timestamp representing the beginning of the time range to search. This is a required parameter.
1981
+ */
1982
+ summaryStartTimeInSeconds?: string;
1983
+ /**
1984
+ * A UTC timestamp representing the end of the time range to search. This is a required parameter.
1985
+ */
1986
+ summaryEndTimeInSeconds?: string;
1987
+ };
1988
+ url: '/rest/backfill/respiration';
1989
+ };
1990
+
1991
+ export type GetBackfillRespirationEpochErrors = {
1992
+ /**
1993
+ * Bad Request
1994
+ */
1995
+ 400: ErrorBody;
1996
+ /**
1997
+ * Unauthorized
1998
+ */
1999
+ 401: ErrorBody;
2000
+ /**
2001
+ * Forbidden
2002
+ */
2003
+ 403: ErrorBody;
2004
+ /**
2005
+ * Not Found
2006
+ */
2007
+ 404: ErrorBody;
2008
+ /**
2009
+ * Method Not Allowed
2010
+ */
2011
+ 405: ErrorBody;
2012
+ /**
2013
+ * Gone
2014
+ */
2015
+ 410: ErrorBody;
2016
+ /**
2017
+ * Precondition Failed
2018
+ */
2019
+ 412: ErrorBody;
2020
+ /**
2021
+ * Internal Server Error
2022
+ */
2023
+ 500: ErrorBody;
2024
+ };
2025
+
2026
+ export type GetBackfillRespirationEpochError = GetBackfillRespirationEpochErrors[keyof GetBackfillRespirationEpochErrors];
2027
+
2028
+ export type GetBackfillRespirationEpochResponses = {
2029
+ /**
2030
+ * Accepted
2031
+ */
2032
+ 202: unknown;
2033
+ };
2034
+
2035
+ export type GetBackfillPulseoxData = {
2036
+ body?: never;
2037
+ path?: never;
2038
+ query?: {
2039
+ /**
2040
+ * A UTC timestamp representing the beginning of the time range to search. This is a required parameter.
2041
+ */
2042
+ summaryStartTimeInSeconds?: string;
2043
+ /**
2044
+ * A UTC timestamp representing the end of the time range to search. This is a required parameter.
2045
+ */
2046
+ summaryEndTimeInSeconds?: string;
2047
+ };
2048
+ url: '/rest/backfill/pulseOx';
2049
+ };
2050
+
2051
+ export type GetBackfillPulseoxErrors = {
2052
+ /**
2053
+ * Bad Request
2054
+ */
2055
+ 400: ErrorBody;
2056
+ /**
2057
+ * Unauthorized
2058
+ */
2059
+ 401: ErrorBody;
2060
+ /**
2061
+ * Forbidden
2062
+ */
2063
+ 403: ErrorBody;
2064
+ /**
2065
+ * Not Found
2066
+ */
2067
+ 404: ErrorBody;
2068
+ /**
2069
+ * Method Not Allowed
2070
+ */
2071
+ 405: ErrorBody;
2072
+ /**
2073
+ * Gone
2074
+ */
2075
+ 410: ErrorBody;
2076
+ /**
2077
+ * Precondition Failed
2078
+ */
2079
+ 412: ErrorBody;
2080
+ /**
2081
+ * Internal Server Error
2082
+ */
2083
+ 500: ErrorBody;
2084
+ };
2085
+
2086
+ export type GetBackfillPulseoxError = GetBackfillPulseoxErrors[keyof GetBackfillPulseoxErrors];
2087
+
2088
+ export type GetBackfillPulseoxResponses = {
2089
+ /**
2090
+ * Accepted
2091
+ */
2092
+ 202: unknown;
2093
+ };
2094
+
2095
+ export type GetBackfillAutoActivityMoveiqData = {
2096
+ body?: never;
2097
+ path?: never;
2098
+ query?: {
2099
+ /**
2100
+ * A UTC timestamp representing the beginning of the time range to search. This is a required parameter.
2101
+ */
2102
+ summaryStartTimeInSeconds?: string;
2103
+ /**
2104
+ * A UTC timestamp representing the end of the time range to search. This is a required parameter.
2105
+ */
2106
+ summaryEndTimeInSeconds?: string;
2107
+ };
2108
+ url: '/rest/backfill/moveiq';
2109
+ };
2110
+
2111
+ export type GetBackfillAutoActivityMoveiqErrors = {
2112
+ /**
2113
+ * Bad Request
2114
+ */
2115
+ 400: ErrorBody;
2116
+ /**
2117
+ * Unauthorized
2118
+ */
2119
+ 401: ErrorBody;
2120
+ /**
2121
+ * Forbidden
2122
+ */
2123
+ 403: ErrorBody;
2124
+ /**
2125
+ * Not Found
2126
+ */
2127
+ 404: ErrorBody;
2128
+ /**
2129
+ * Method Not Allowed
2130
+ */
2131
+ 405: ErrorBody;
2132
+ /**
2133
+ * Gone
2134
+ */
2135
+ 410: ErrorBody;
2136
+ /**
2137
+ * Precondition Failed
2138
+ */
2139
+ 412: ErrorBody;
2140
+ /**
2141
+ * Internal Server Error
2142
+ */
2143
+ 500: ErrorBody;
2144
+ };
2145
+
2146
+ export type GetBackfillAutoActivityMoveiqError = GetBackfillAutoActivityMoveiqErrors[keyof GetBackfillAutoActivityMoveiqErrors];
2147
+
2148
+ export type GetBackfillAutoActivityMoveiqResponses = {
2149
+ /**
2150
+ * Accepted
2151
+ */
2152
+ 202: unknown;
2153
+ };
2154
+
2155
+ export type GetBackfillMctData = {
2156
+ body?: never;
2157
+ path?: never;
2158
+ query?: {
2159
+ /**
2160
+ * A UTC timestamp representing the beginning of the time range to search. This is a required parameter.
2161
+ */
2162
+ summaryStartTimeInSeconds?: string;
2163
+ /**
2164
+ * A UTC timestamp representing the end of the time range to search. This is a required parameter.
2165
+ */
2166
+ summaryEndTimeInSeconds?: string;
2167
+ };
2168
+ url: '/rest/backfill/mct';
2169
+ };
2170
+
2171
+ export type GetBackfillMctErrors = {
2172
+ /**
2173
+ * Bad Request
2174
+ */
2175
+ 400: ErrorBody;
2176
+ /**
2177
+ * Unauthorized
2178
+ */
2179
+ 401: ErrorBody;
2180
+ /**
2181
+ * Forbidden
2182
+ */
2183
+ 403: ErrorBody;
2184
+ /**
2185
+ * Not Found
2186
+ */
2187
+ 404: ErrorBody;
2188
+ /**
2189
+ * Method Not Allowed
2190
+ */
2191
+ 405: ErrorBody;
2192
+ /**
2193
+ * Gone
2194
+ */
2195
+ 410: ErrorBody;
2196
+ /**
2197
+ * Precondition Failed
2198
+ */
2199
+ 412: ErrorBody;
2200
+ /**
2201
+ * Internal Server Error
2202
+ */
2203
+ 500: ErrorBody;
2204
+ };
2205
+
2206
+ export type GetBackfillMctError = GetBackfillMctErrors[keyof GetBackfillMctErrors];
2207
+
2208
+ export type GetBackfillMctResponses = {
2209
+ /**
2210
+ * Accepted
2211
+ */
2212
+ 202: unknown;
2213
+ };
2214
+
2215
+ export type GetBackfillHrvData = {
2216
+ body?: never;
2217
+ path?: never;
2218
+ query?: {
2219
+ /**
2220
+ * A UTC timestamp representing the beginning of the time range to search. This is a required parameter.
2221
+ */
2222
+ summaryStartTimeInSeconds?: string;
2223
+ /**
2224
+ * A UTC timestamp representing the end of the time range to search. This is a required parameter.
2225
+ */
2226
+ summaryEndTimeInSeconds?: string;
2227
+ };
2228
+ url: '/rest/backfill/hrv';
2229
+ };
2230
+
2231
+ export type GetBackfillHrvErrors = {
2232
+ /**
2233
+ * Bad Request
2234
+ */
2235
+ 400: ErrorBody;
2236
+ /**
2237
+ * Unauthorized
2238
+ */
2239
+ 401: ErrorBody;
2240
+ /**
2241
+ * Forbidden
2242
+ */
2243
+ 403: ErrorBody;
2244
+ /**
2245
+ * Not Found
2246
+ */
2247
+ 404: ErrorBody;
2248
+ /**
2249
+ * Method Not Allowed
2250
+ */
2251
+ 405: ErrorBody;
2252
+ /**
2253
+ * Gone
2254
+ */
2255
+ 410: ErrorBody;
2256
+ /**
2257
+ * Precondition Failed
2258
+ */
2259
+ 412: ErrorBody;
2260
+ /**
2261
+ * Internal Server Error
2262
+ */
2263
+ 500: ErrorBody;
2264
+ };
2265
+
2266
+ export type GetBackfillHrvError = GetBackfillHrvErrors[keyof GetBackfillHrvErrors];
2267
+
2268
+ export type GetBackfillHrvResponses = {
2269
+ /**
2270
+ * Accepted
2271
+ */
2272
+ 202: unknown;
2273
+ };
2274
+
2275
+ export type GetBackfillHealthSnapshotData = {
2276
+ body?: never;
2277
+ path?: never;
2278
+ query?: {
2279
+ /**
2280
+ * A UTC timestamp representing the beginning of the time range to search. This is a required parameter.
2281
+ */
2282
+ summaryStartTimeInSeconds?: string;
2283
+ /**
2284
+ * A UTC timestamp representing the end of the time range to search. This is a required parameter.
2285
+ */
2286
+ summaryEndTimeInSeconds?: string;
2287
+ };
2288
+ url: '/rest/backfill/healthSnapshot';
2289
+ };
2290
+
2291
+ export type GetBackfillHealthSnapshotErrors = {
2292
+ /**
2293
+ * Bad Request
2294
+ */
2295
+ 400: ErrorBody;
2296
+ /**
2297
+ * Unauthorized
2298
+ */
2299
+ 401: ErrorBody;
2300
+ /**
2301
+ * Forbidden
2302
+ */
2303
+ 403: ErrorBody;
2304
+ /**
2305
+ * Not Found
2306
+ */
2307
+ 404: ErrorBody;
2308
+ /**
2309
+ * Method Not Allowed
2310
+ */
2311
+ 405: ErrorBody;
2312
+ /**
2313
+ * Gone
2314
+ */
2315
+ 410: ErrorBody;
2316
+ /**
2317
+ * Precondition Failed
2318
+ */
2319
+ 412: ErrorBody;
2320
+ /**
2321
+ * Internal Server Error
2322
+ */
2323
+ 500: ErrorBody;
2324
+ };
2325
+
2326
+ export type GetBackfillHealthSnapshotError = GetBackfillHealthSnapshotErrors[keyof GetBackfillHealthSnapshotErrors];
2327
+
2328
+ export type GetBackfillHealthSnapshotResponses = {
2329
+ /**
2330
+ * Accepted
2331
+ */
2332
+ 202: unknown;
2333
+ };
2334
+
2335
+ export type GetBackfillEpochsData = {
2336
+ body?: never;
2337
+ path?: never;
2338
+ query?: {
2339
+ /**
2340
+ * A UTC timestamp representing the beginning of the time range to search. This is a required parameter.
2341
+ */
2342
+ summaryStartTimeInSeconds?: string;
2343
+ /**
2344
+ * A UTC timestamp representing the end of the time range to search. This is a required parameter.
2345
+ */
2346
+ summaryEndTimeInSeconds?: string;
2347
+ };
2348
+ url: '/rest/backfill/epochs';
2349
+ };
2350
+
2351
+ export type GetBackfillEpochsErrors = {
2352
+ /**
2353
+ * Bad Request
2354
+ */
2355
+ 400: ErrorBody;
2356
+ /**
2357
+ * Unauthorized
2358
+ */
2359
+ 401: ErrorBody;
2360
+ /**
2361
+ * Forbidden
2362
+ */
2363
+ 403: ErrorBody;
2364
+ /**
2365
+ * Not Found
2366
+ */
2367
+ 404: ErrorBody;
2368
+ /**
2369
+ * Method Not Allowed
2370
+ */
2371
+ 405: ErrorBody;
2372
+ /**
2373
+ * Gone
2374
+ */
2375
+ 410: ErrorBody;
2376
+ /**
2377
+ * Precondition Failed
2378
+ */
2379
+ 412: ErrorBody;
2380
+ /**
2381
+ * Internal Server Error
2382
+ */
2383
+ 500: ErrorBody;
2384
+ };
2385
+
2386
+ export type GetBackfillEpochsError = GetBackfillEpochsErrors[keyof GetBackfillEpochsErrors];
2387
+
2388
+ export type GetBackfillEpochsResponses = {
2389
+ /**
2390
+ * Accepted
2391
+ */
2392
+ 202: unknown;
2393
+ };
2394
+
2395
+ export type GetBackfillDailiesData = {
2396
+ body?: never;
2397
+ path?: never;
2398
+ query?: {
2399
+ /**
2400
+ * A UTC timestamp representing the beginning of the time range to search. This is a required parameter.
2401
+ */
2402
+ summaryStartTimeInSeconds?: string;
2403
+ /**
2404
+ * A UTC timestamp representing the end of the time range to search. This is a required parameter.
2405
+ */
2406
+ summaryEndTimeInSeconds?: string;
2407
+ };
2408
+ url: '/rest/backfill/dailies';
2409
+ };
2410
+
2411
+ export type GetBackfillDailiesErrors = {
2412
+ /**
2413
+ * Bad Request
2414
+ */
2415
+ 400: ErrorBody;
2416
+ /**
2417
+ * Unauthorized
2418
+ */
2419
+ 401: ErrorBody;
2420
+ /**
2421
+ * Forbidden
2422
+ */
2423
+ 403: ErrorBody;
2424
+ /**
2425
+ * Not Found
2426
+ */
2427
+ 404: ErrorBody;
2428
+ /**
2429
+ * Method Not Allowed
2430
+ */
2431
+ 405: ErrorBody;
2432
+ /**
2433
+ * Gone
2434
+ */
2435
+ 410: ErrorBody;
2436
+ /**
2437
+ * Precondition Failed
2438
+ */
2439
+ 412: ErrorBody;
2440
+ /**
2441
+ * Internal Server Error
2442
+ */
2443
+ 500: ErrorBody;
2444
+ };
2445
+
2446
+ export type GetBackfillDailiesError = GetBackfillDailiesErrors[keyof GetBackfillDailiesErrors];
2447
+
2448
+ export type GetBackfillDailiesResponses = {
2449
+ /**
2450
+ * Accepted
2451
+ */
2452
+ 202: unknown;
2453
+ };
2454
+
2455
+ export type GetBackfillBodycompsData = {
2456
+ body?: never;
2457
+ path?: never;
2458
+ query?: {
2459
+ /**
2460
+ * A UTC timestamp representing the beginning of the time range to search. This is a required parameter.
2461
+ */
2462
+ summaryStartTimeInSeconds?: string;
2463
+ /**
2464
+ * A UTC timestamp representing the end of the time range to search. This is a required parameter.
2465
+ */
2466
+ summaryEndTimeInSeconds?: string;
2467
+ };
2468
+ url: '/rest/backfill/bodyComps';
2469
+ };
2470
+
2471
+ export type GetBackfillBodycompsErrors = {
2472
+ /**
2473
+ * Bad Request
2474
+ */
2475
+ 400: ErrorBody;
2476
+ /**
2477
+ * Unauthorized
2478
+ */
2479
+ 401: ErrorBody;
2480
+ /**
2481
+ * Forbidden
2482
+ */
2483
+ 403: ErrorBody;
2484
+ /**
2485
+ * Not Found
2486
+ */
2487
+ 404: ErrorBody;
2488
+ /**
2489
+ * Method Not Allowed
2490
+ */
2491
+ 405: ErrorBody;
2492
+ /**
2493
+ * Gone
2494
+ */
2495
+ 410: ErrorBody;
2496
+ /**
2497
+ * Precondition Failed
2498
+ */
2499
+ 412: ErrorBody;
2500
+ /**
2501
+ * Internal Server Error
2502
+ */
2503
+ 500: ErrorBody;
2504
+ };
2505
+
2506
+ export type GetBackfillBodycompsError = GetBackfillBodycompsErrors[keyof GetBackfillBodycompsErrors];
2507
+
2508
+ export type GetBackfillBodycompsResponses = {
2509
+ /**
2510
+ * Accepted
2511
+ */
2512
+ 202: unknown;
2513
+ };
2514
+
2515
+ export type GetBackfillBloodPressuresData = {
2516
+ body?: never;
2517
+ path?: never;
2518
+ query?: {
2519
+ /**
2520
+ * A UTC timestamp representing the beginning of the time range to search. This is a required parameter.
2521
+ */
2522
+ summaryStartTimeInSeconds?: string;
2523
+ /**
2524
+ * A UTC timestamp representing the end of the time range to search. This is a required parameter.
2525
+ */
2526
+ summaryEndTimeInSeconds?: string;
2527
+ };
2528
+ url: '/rest/backfill/bloodPressures';
2529
+ };
2530
+
2531
+ export type GetBackfillBloodPressuresErrors = {
2532
+ /**
2533
+ * Bad Request
2534
+ */
2535
+ 400: ErrorBody;
2536
+ /**
2537
+ * Unauthorized
2538
+ */
2539
+ 401: ErrorBody;
2540
+ /**
2541
+ * Forbidden
2542
+ */
2543
+ 403: ErrorBody;
2544
+ /**
2545
+ * Not Found
2546
+ */
2547
+ 404: ErrorBody;
2548
+ /**
2549
+ * Method Not Allowed
2550
+ */
2551
+ 405: ErrorBody;
2552
+ /**
2553
+ * Gone
2554
+ */
2555
+ 410: ErrorBody;
2556
+ /**
2557
+ * Precondition Failed
2558
+ */
2559
+ 412: ErrorBody;
2560
+ /**
2561
+ * Internal Server Error
2562
+ */
2563
+ 500: ErrorBody;
2564
+ };
2565
+
2566
+ export type GetBackfillBloodPressuresError = GetBackfillBloodPressuresErrors[keyof GetBackfillBloodPressuresErrors];
2567
+
2568
+ export type GetBackfillBloodPressuresResponses = {
2569
+ /**
2570
+ * Accepted
2571
+ */
2572
+ 202: unknown;
2573
+ };
2574
+
2575
+ export type GetBackfillActivityDetailsData = {
2576
+ body?: never;
2577
+ path?: never;
2578
+ query?: {
2579
+ /**
2580
+ * A UTC timestamp representing the beginning of the time range to search. This is a required parameter.
2581
+ */
2582
+ summaryStartTimeInSeconds?: string;
2583
+ /**
2584
+ * A UTC timestamp representing the end of the time range to search. This is a required parameter.
2585
+ */
2586
+ summaryEndTimeInSeconds?: string;
2587
+ };
2588
+ url: '/rest/backfill/activityDetails';
2589
+ };
2590
+
2591
+ export type GetBackfillActivityDetailsErrors = {
2592
+ /**
2593
+ * Bad Request
2594
+ */
2595
+ 400: ErrorBody;
2596
+ /**
2597
+ * Unauthorized
2598
+ */
2599
+ 401: ErrorBody;
2600
+ /**
2601
+ * Forbidden
2602
+ */
2603
+ 403: ErrorBody;
2604
+ /**
2605
+ * Not Found
2606
+ */
2607
+ 404: ErrorBody;
2608
+ /**
2609
+ * Method Not Allowed
2610
+ */
2611
+ 405: ErrorBody;
2612
+ /**
2613
+ * Gone
2614
+ */
2615
+ 410: ErrorBody;
2616
+ /**
2617
+ * Precondition Failed
2618
+ */
2619
+ 412: ErrorBody;
2620
+ /**
2621
+ * Internal Server Error
2622
+ */
2623
+ 500: ErrorBody;
2624
+ };
2625
+
2626
+ export type GetBackfillActivityDetailsError = GetBackfillActivityDetailsErrors[keyof GetBackfillActivityDetailsErrors];
2627
+
2628
+ export type GetBackfillActivityDetailsResponses = {
2629
+ /**
2630
+ * Accepted
2631
+ */
2632
+ 202: unknown;
2633
+ };
2634
+
2635
+ export type GetBackfillActivitiesData = {
2636
+ body?: never;
2637
+ path?: never;
2638
+ query?: {
2639
+ /**
2640
+ * A UTC timestamp representing the beginning of the time range to search. This is a required parameter.
2641
+ */
2642
+ summaryStartTimeInSeconds?: string;
2643
+ /**
2644
+ * A UTC timestamp representing the end of the time range to search. This is a required parameter.
2645
+ */
2646
+ summaryEndTimeInSeconds?: string;
2647
+ };
2648
+ url: '/rest/backfill/activities';
2649
+ };
2650
+
2651
+ export type GetBackfillActivitiesErrors = {
2652
+ /**
2653
+ * Bad Request
2654
+ */
2655
+ 400: ErrorBody;
2656
+ /**
2657
+ * Unauthorized
2658
+ */
2659
+ 401: ErrorBody;
2660
+ /**
2661
+ * Forbidden
2662
+ */
2663
+ 403: ErrorBody;
2664
+ /**
2665
+ * Not Found
2666
+ */
2667
+ 404: ErrorBody;
2668
+ /**
2669
+ * Method Not Allowed
2670
+ */
2671
+ 405: ErrorBody;
2672
+ /**
2673
+ * Gone
2674
+ */
2675
+ 410: ErrorBody;
2676
+ /**
2677
+ * Precondition Failed
2678
+ */
2679
+ 412: ErrorBody;
2680
+ /**
2681
+ * Internal Server Error
2682
+ */
2683
+ 500: ErrorBody;
2684
+ };
2685
+
2686
+ export type GetBackfillActivitiesError = GetBackfillActivitiesErrors[keyof GetBackfillActivitiesErrors];
2687
+
2688
+ export type GetBackfillActivitiesResponses = {
2689
+ /**
2690
+ * Accepted
2691
+ */
2692
+ 202: unknown;
2693
+ };
2694
+
2695
+ export type GetActivityFileData = {
2696
+ body?: never;
2697
+ path?: never;
2698
+ query?: {
2699
+ id?: string;
2700
+ token?: string;
2701
+ };
2702
+ url: '/rest/activityFile';
2703
+ };
2704
+
2705
+ export type GetActivityFileErrors = {
2706
+ /**
2707
+ * Bad Request
2708
+ */
2709
+ 400: ErrorBody;
2710
+ /**
2711
+ * Unauthorized
2712
+ */
2713
+ 401: ErrorBody;
2714
+ /**
2715
+ * Forbidden
2716
+ */
2717
+ 403: ErrorBody;
2718
+ /**
2719
+ * Not Found
2720
+ */
2721
+ 404: ErrorBody;
2722
+ /**
2723
+ * Method Not Allowed
2724
+ */
2725
+ 405: ErrorBody;
2726
+ /**
2727
+ * Gone
2728
+ */
2729
+ 410: ErrorBody;
2730
+ /**
2731
+ * Precondition Failed
2732
+ */
2733
+ 412: ErrorBody;
2734
+ /**
2735
+ * Internal Server Error
2736
+ */
2737
+ 500: ErrorBody;
2738
+ };
2739
+
2740
+ export type GetActivityFileError = GetActivityFileErrors[keyof GetActivityFileErrors];
2741
+
2742
+ export type GetActivityFileResponses = {
2743
+ /**
2744
+ * OK
2745
+ */
2746
+ 200: Blob | File;
2747
+ };
2748
+
2749
+ export type GetActivityFileResponse = GetActivityFileResponses[keyof GetActivityFileResponses];
2750
+
2751
+ export type ActivityDetailsData = {
2752
+ body?: never;
2753
+ path?: never;
2754
+ query?: {
2755
+ /**
2756
+ * A UTC timestamp representing the beginning of the time range to search.
2757
+ * If this parameter is used it must be paired with uploadEndTimeInSeconds only.
2758
+ *
2759
+ */
2760
+ uploadStartTimeInSeconds?: string;
2761
+ /**
2762
+ * A UTC timestamp representing the end of the time range to search.
2763
+ * If this parameter is used it must be paired with uploadStartTimeInSeconds only.
2764
+ *
2765
+ */
2766
+ uploadEndTimeInSeconds?: string;
2767
+ /**
2768
+ * Pull token required for OAuth2 integrations
2769
+ */
2770
+ token?: string;
2771
+ };
2772
+ url: '/rest/activityDetails';
2773
+ };
2774
+
2775
+ export type ActivityDetailsErrors = {
2776
+ /**
2777
+ * Bad Request
2778
+ */
2779
+ 400: ErrorBody;
2780
+ /**
2781
+ * Unauthorized
2782
+ */
2783
+ 401: ErrorBody;
2784
+ /**
2785
+ * Forbidden
2786
+ */
2787
+ 403: ErrorBody;
2788
+ /**
2789
+ * Not Found
2790
+ */
2791
+ 404: ErrorBody;
2792
+ /**
2793
+ * Method Not Allowed
2794
+ */
2795
+ 405: ErrorBody;
2796
+ /**
2797
+ * Gone
2798
+ */
2799
+ 410: ErrorBody;
2800
+ /**
2801
+ * Precondition Failed
2802
+ */
2803
+ 412: ErrorBody;
2804
+ /**
2805
+ * Internal Server Error
2806
+ */
2807
+ 500: ErrorBody;
2808
+ };
2809
+
2810
+ export type ActivityDetailsError = ActivityDetailsErrors[keyof ActivityDetailsErrors];
2811
+
2812
+ export type ActivityDetailsResponses = {
2813
+ /**
2814
+ * OK
2815
+ */
2816
+ 200: Array<ClientActivityDetail>;
2817
+ };
2818
+
2819
+ export type ActivityDetailsResponse = ActivityDetailsResponses[keyof ActivityDetailsResponses];
2820
+
2821
+ export type GetActivitiesData = {
2822
+ body?: never;
2823
+ path?: never;
2824
+ query?: {
2825
+ /**
2826
+ * A UTC timestamp representing the beginning of the time range to search.
2827
+ * If this parameter is used it must be paired with uploadEndTimeInSeconds only.
2828
+ *
2829
+ */
2830
+ uploadStartTimeInSeconds?: string;
2831
+ /**
2832
+ * A UTC timestamp representing the end of the time range to search.
2833
+ * If this parameter is used it must be paired with uploadStartTimeInSeconds only.
2834
+ *
2835
+ */
2836
+ uploadEndTimeInSeconds?: string;
2837
+ /**
2838
+ * Pull token required for OAuth2 integrations
2839
+ */
2840
+ token?: string;
2841
+ };
2842
+ url: '/rest/activities';
2843
+ };
2844
+
2845
+ export type GetActivitiesErrors = {
2846
+ /**
2847
+ * Bad Request
2848
+ */
2849
+ 400: ErrorBody;
2850
+ /**
2851
+ * Unauthorized
2852
+ */
2853
+ 401: ErrorBody;
2854
+ /**
2855
+ * Forbidden
2856
+ */
2857
+ 403: ErrorBody;
2858
+ /**
2859
+ * Not Found
2860
+ */
2861
+ 404: ErrorBody;
2862
+ /**
2863
+ * Method Not Allowed
2864
+ */
2865
+ 405: ErrorBody;
2866
+ /**
2867
+ * Gone
2868
+ */
2869
+ 410: ErrorBody;
2870
+ /**
2871
+ * Precondition Failed
2872
+ */
2873
+ 412: ErrorBody;
2874
+ /**
2875
+ * Internal Server Error
2876
+ */
2877
+ 500: ErrorBody;
2878
+ };
2879
+
2880
+ export type GetActivitiesError = GetActivitiesErrors[keyof GetActivitiesErrors];
2881
+
2882
+ export type GetActivitiesResponses = {
2883
+ /**
2884
+ * OK
2885
+ */
2886
+ 200: Array<ClientActivity>;
2887
+ };
2888
+
2889
+ export type GetActivitiesResponse = GetActivitiesResponses[keyof GetActivitiesResponses];
2890
+
2891
+ export type DeregData = {
2892
+ body?: never;
2893
+ path?: never;
2894
+ query?: never;
2895
+ url: '/rest/user/registration';
2896
+ };
2897
+
2898
+ export type DeregErrors = {
2899
+ /**
2900
+ * Bad Request
2901
+ */
2902
+ 400: ErrorBody;
2903
+ /**
2904
+ * Unauthorized
2905
+ */
2906
+ 401: ErrorBody;
2907
+ /**
2908
+ * Forbidden
2909
+ */
2910
+ 403: ErrorBody;
2911
+ /**
2912
+ * Not Found
2913
+ */
2914
+ 404: ErrorBody;
2915
+ /**
2916
+ * Method Not Allowed
2917
+ */
2918
+ 405: ErrorBody;
2919
+ /**
2920
+ * Gone
2921
+ */
2922
+ 410: ErrorBody;
2923
+ /**
2924
+ * Precondition Failed
2925
+ */
2926
+ 412: ErrorBody;
2927
+ /**
2928
+ * Internal Server Error
2929
+ */
2930
+ 500: ErrorBody;
2931
+ };
2932
+
2933
+ export type DeregError = DeregErrors[keyof DeregErrors];
2934
+
2935
+ export type DeregResponses = {
2936
+ /**
2937
+ * No Content
2938
+ */
2939
+ 204: void;
2940
+ };
2941
+
2942
+ export type DeregResponse = DeregResponses[keyof DeregResponses];