@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,878 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+
3
+ import * as z from 'zod';
4
+
5
+ export const zErrorBody = z.object({
6
+ errorMessage: z.string().optional()
7
+ });
8
+
9
+ export const zClientUserMetrics = z.object({
10
+ userId: z.string().optional(),
11
+ summaryId: z.string().optional(),
12
+ calendarDate: z.string().optional(),
13
+ vo2Max: z.number().optional(),
14
+ vo2MaxCycling: z.number().optional(),
15
+ fitnessAge: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
16
+ enhanced: z.boolean().optional()
17
+ });
18
+
19
+ export const zClientConsumerPermissions = z.object({
20
+ userId: z.string().optional(),
21
+ summaryId: z.string().optional(),
22
+ permissions: z.array(z.string()).optional(),
23
+ changeTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional()
24
+ });
25
+
26
+ export const zClientUserId = z.object({
27
+ userId: z.string().optional()
28
+ });
29
+
30
+ export const zBodyBatteryActivityEvent = z.object({
31
+ eventType: z.string().optional(),
32
+ eventStartTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
33
+ eventStartTimeOffsetInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
34
+ durationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
35
+ bodyBatteryImpact: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
36
+ activityName: z.string().optional(),
37
+ activityType: z.string().optional(),
38
+ activityId: z.coerce.bigint().min(BigInt('-9223372036854775808'), { error: 'Invalid value: Expected int64 to be >= -9223372036854775808' }).max(BigInt('9223372036854775807'), { error: 'Invalid value: Expected int64 to be <= 9223372036854775807' }).optional()
39
+ });
40
+
41
+ export const zBodyBatteryDynamicFeedbackEvent = z.object({
42
+ eventStartTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
43
+ bodyBatteryLevel: z.string().optional()
44
+ });
45
+
46
+ export const zClientStress = z.object({
47
+ userId: z.string().optional(),
48
+ summaryId: z.string().optional(),
49
+ startTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
50
+ startTimeOffsetInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
51
+ durationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
52
+ calendarDate: z.string().optional(),
53
+ maxStressLevel: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
54
+ averageStressLevel: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
55
+ timeOffsetStressLevelValues: z.record(z.string(), z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' })).optional(),
56
+ timeOffsetBodyBatteryValues: z.record(z.string(), z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' })).optional(),
57
+ bodyBatteryDynamicFeedbackEvent: zBodyBatteryDynamicFeedbackEvent.optional(),
58
+ bodyBatteryActivityEvents: z.array(zBodyBatteryActivityEvent).optional()
59
+ });
60
+
61
+ export const zClientSolarReading = z.object({
62
+ measurementTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
63
+ solarIntensity: z.number().optional()
64
+ });
65
+
66
+ export const zClientSolar = z.object({
67
+ userId: z.string().optional(),
68
+ summaryId: z.string().optional(),
69
+ calendarDate: z.string().optional(),
70
+ deviceId: z.string().optional(),
71
+ deviceTypeName: z.string().optional(),
72
+ timeOffsetInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
73
+ readings: z.array(zClientSolarReading).optional()
74
+ });
75
+
76
+ export const zClientNaps = z.object({
77
+ napStartTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
78
+ napOffsetInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
79
+ napDurationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
80
+ napValidation: z.string().optional()
81
+ });
82
+
83
+ export const zClientSleepScoreItem = z.object({
84
+ value: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
85
+ qualifierKey: z.string().optional()
86
+ });
87
+
88
+ export const zTimeRange = z.object({
89
+ startTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
90
+ endTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional()
91
+ });
92
+
93
+ export const zClientSleep = z.object({
94
+ userId: z.string().optional(),
95
+ summaryId: z.string().optional(),
96
+ calendarDate: z.string().optional(),
97
+ durationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
98
+ totalNapDurationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
99
+ startTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
100
+ startTimeOffsetInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
101
+ unmeasurableSleepInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
102
+ deepSleepDurationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
103
+ lightSleepDurationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
104
+ remSleepInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
105
+ awakeDurationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
106
+ sleepLevelsMap: z.record(z.string(), z.array(zTimeRange)).optional(),
107
+ validation: z.string().optional(),
108
+ timeOffsetSleepSpo2: z.record(z.string(), z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' })).optional(),
109
+ timeOffsetSleepRespiration: z.record(z.string(), z.number()).optional(),
110
+ overallSleepScore: zClientSleepScoreItem.optional(),
111
+ sleepScores: z.record(z.string(), zClientSleepScoreItem).optional(),
112
+ naps: z.array(zClientNaps).optional()
113
+ });
114
+
115
+ export const zClientSkinTemp = z.object({
116
+ userId: z.string().optional(),
117
+ summaryId: z.string().optional(),
118
+ calendarDate: z.string().optional(),
119
+ avgDeviationCelsius: z.number().optional(),
120
+ durationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
121
+ startTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
122
+ startTimeOffsetInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional()
123
+ });
124
+
125
+ export const zClientRespiration = z.object({
126
+ userId: z.string().optional(),
127
+ summaryId: z.string().optional(),
128
+ startTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
129
+ durationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
130
+ startTimeOffsetInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
131
+ timeOffsetEpochToBreaths: z.record(z.string(), z.number()).optional()
132
+ });
133
+
134
+ export const zClientDailySpo2Acclimation = z.object({
135
+ userId: z.string().optional(),
136
+ summaryId: z.string().optional(),
137
+ calendarDate: z.string().optional(),
138
+ startTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
139
+ durationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
140
+ startTimeOffsetInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
141
+ timeOffsetSpo2Values: z.record(z.string(), z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' })).optional(),
142
+ onDemand: z.boolean().optional()
143
+ });
144
+
145
+ export const zClientAutoActivityMoveIq = z.object({
146
+ userId: z.string().optional(),
147
+ summaryId: z.string().optional(),
148
+ deviceName: z.string().optional(),
149
+ calendarDate: z.string().optional(),
150
+ startTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
151
+ durationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
152
+ activityType: z.string().optional(),
153
+ activitySubType: z.string().optional(),
154
+ offsetInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional()
155
+ });
156
+
157
+ export const zClientBloodGlucose = z.object({
158
+ valueInMilligramsPerDeciliter: z.number().optional(),
159
+ logType: z.string().optional(),
160
+ reportTimestampInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional()
161
+ });
162
+
163
+ export const zClientWeightGoalUserInput = z.object({
164
+ heightInCentimeters: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
165
+ weightInGrams: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional()
166
+ });
167
+
168
+ export const zClientPregnancySnapshot = z.object({
169
+ title: z.string().optional(),
170
+ originalDueDate: z.string().optional(),
171
+ dueDate: z.string().optional(),
172
+ pregnancyCycleStartDate: z.string().optional(),
173
+ deliveryDate: z.string().optional(),
174
+ numOfBabies: z.string().optional(),
175
+ hasExperiencedLoss: z.boolean().optional(),
176
+ lossReportTimestampInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
177
+ endDate: z.string().optional(),
178
+ stopTracking: z.boolean().optional(),
179
+ stopTrackingTimestampInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
180
+ weightGoalUserInput: zClientWeightGoalUserInput.optional(),
181
+ bloodGlucoseList: z.array(zClientBloodGlucose).optional()
182
+ });
183
+
184
+ export const zClientSummarizedMenstrualCycle = z.object({
185
+ userId: z.string().optional(),
186
+ summaryId: z.string().optional(),
187
+ periodStartDate: z.string().optional(),
188
+ dayInCycle: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
189
+ periodLength: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
190
+ currentPhase: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
191
+ currentPhaseType: z.string().optional(),
192
+ lengthOfCurrentPhase: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
193
+ daysUntilNextPhase: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
194
+ fertileWindowStart: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
195
+ lengthOfFertileWindow: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
196
+ predictedCycleLength: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
197
+ isPredictedCycle: z.boolean().optional(),
198
+ cycleLength: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
199
+ lastUpdatedTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
200
+ hasSpecifiedCycleLength: z.boolean().optional(),
201
+ hasSpecifiedPeriodLength: z.boolean().optional(),
202
+ pregnancySnapshot: zClientPregnancySnapshot.optional()
203
+ });
204
+
205
+ export const zClientActivity = z.object({
206
+ userId: z.string().optional(),
207
+ summaryId: z.string().optional(),
208
+ activityId: z.coerce.bigint().min(BigInt('-9223372036854775808'), { error: 'Invalid value: Expected int64 to be >= -9223372036854775808' }).max(BigInt('9223372036854775807'), { error: 'Invalid value: Expected int64 to be <= 9223372036854775807' }).optional(),
209
+ activityName: z.string().optional(),
210
+ activityDescription: z.string().optional(),
211
+ isParent: z.boolean().optional(),
212
+ parentSummaryId: z.string().optional(),
213
+ durationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
214
+ startTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
215
+ startTimeOffsetInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
216
+ activityType: z.string().optional(),
217
+ averageBikeCadenceInRoundsPerMinute: z.number().optional(),
218
+ averageHeartRateInBeatsPerMinute: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
219
+ averageRunCadenceInStepsPerMinute: z.number().optional(),
220
+ averagePushCadenceInPushesPerMinute: z.number().optional(),
221
+ averageSpeedInMetersPerSecond: z.number().optional(),
222
+ averageSwimCadenceInStrokesPerMinute: z.number().optional(),
223
+ averagePaceInMinutesPerKilometer: z.number().optional(),
224
+ activeKilocalories: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
225
+ deviceName: z.string().optional(),
226
+ distanceInMeters: z.number().optional(),
227
+ maxBikeCadenceInRoundsPerMinute: z.number().optional(),
228
+ maxHeartRateInBeatsPerMinute: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
229
+ maxPaceInMinutesPerKilometer: z.number().optional(),
230
+ maxRunCadenceInStepsPerMinute: z.number().optional(),
231
+ maxPushCadenceInPushesPerMinute: z.number().optional(),
232
+ maxSpeedInMetersPerSecond: z.number().optional(),
233
+ numberOfActiveLengths: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
234
+ startingLatitudeInDegree: z.number().optional(),
235
+ startingLongitudeInDegree: z.number().optional(),
236
+ steps: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
237
+ pushes: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
238
+ totalElevationGainInMeters: z.number().optional(),
239
+ totalElevationLossInMeters: z.number().optional(),
240
+ manual: z.boolean().optional(),
241
+ isWebUpload: z.boolean().optional()
242
+ });
243
+
244
+ export const zClientHrvSummary = z.object({
245
+ userId: z.string().optional(),
246
+ summaryId: z.string().optional(),
247
+ calendarDate: z.string().optional(),
248
+ lastNightAvg: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
249
+ lastNight5MinHigh: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
250
+ startTimeOffsetInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
251
+ durationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
252
+ startTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
253
+ hrvValues: z.record(z.string(), z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' })).optional()
254
+ });
255
+
256
+ export const zHealthSnapshotSummary = z.object({
257
+ summaryType: z.string().optional(),
258
+ minValue: z.number().optional(),
259
+ maxValue: z.number().optional(),
260
+ avgValue: z.number().optional(),
261
+ epochSummaries: z.record(z.string(), z.number()).optional()
262
+ });
263
+
264
+ export const zClientHealthSnapshot = z.object({
265
+ userId: z.string().optional(),
266
+ summaryId: z.string().optional(),
267
+ calendarDate: z.string().optional(),
268
+ startTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
269
+ durationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
270
+ startTimeOffsetInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
271
+ summaries: z.array(zHealthSnapshotSummary).optional()
272
+ });
273
+
274
+ export const zClientEpoch = z.object({
275
+ userId: z.string().optional(),
276
+ summaryId: z.string().optional(),
277
+ activityType: z.string().optional(),
278
+ activeKilocalories: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
279
+ steps: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
280
+ pushes: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
281
+ distanceInMeters: z.number().optional(),
282
+ pushDistanceInMeters: z.number().optional(),
283
+ durationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
284
+ activeTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
285
+ startTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
286
+ startTimeOffsetInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
287
+ met: z.number().optional(),
288
+ intensity: z.string().optional(),
289
+ meanMotionIntensity: z.number().optional(),
290
+ maxMotionIntensity: z.number().optional()
291
+ });
292
+
293
+ export const zClientDaily = z.object({
294
+ userId: z.string().optional(),
295
+ summaryId: z.string().optional(),
296
+ calendarDate: z.string().optional(),
297
+ activityType: z.string().optional(),
298
+ activeKilocalories: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
299
+ bmrKilocalories: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
300
+ steps: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
301
+ pushes: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
302
+ distanceInMeters: z.number().optional(),
303
+ pushDistanceInMeters: z.number().optional(),
304
+ durationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
305
+ activeTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
306
+ startTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
307
+ startTimeOffsetInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
308
+ moderateIntensityDurationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
309
+ vigorousIntensityDurationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
310
+ floorsClimbed: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
311
+ minHeartRateInBeatsPerMinute: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
312
+ maxHeartRateInBeatsPerMinute: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
313
+ averageHeartRateInBeatsPerMinute: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
314
+ restingHeartRateInBeatsPerMinute: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
315
+ timeOffsetHeartRateSamples: z.record(z.string(), z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' })).optional(),
316
+ source: z.string().optional(),
317
+ stepsGoal: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
318
+ pushesGoal: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
319
+ intensityDurationGoalInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
320
+ floorsClimbedGoal: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
321
+ averageStressLevel: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
322
+ maxStressLevel: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
323
+ stressDurationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
324
+ restStressDurationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
325
+ activityStressDurationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
326
+ lowStressDurationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
327
+ mediumStressDurationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
328
+ highStressDurationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
329
+ stressQualifier: z.string().optional(),
330
+ bodyBatteryChargedValue: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
331
+ bodyBatteryDrainedValue: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional()
332
+ });
333
+
334
+ export const zClientBodyComp = z.object({
335
+ userId: z.string().optional(),
336
+ summaryId: z.string().optional(),
337
+ muscleMassInGrams: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
338
+ boneMassInGrams: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
339
+ bodyWaterInPercent: z.number().optional(),
340
+ bodyFatInPercent: z.number().optional(),
341
+ bodyMassIndex: z.number().optional(),
342
+ weightInGrams: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
343
+ measurementTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
344
+ measurementTimeOffsetInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional()
345
+ });
346
+
347
+ export const zClientBloodPressure = z.object({
348
+ userId: z.string().optional(),
349
+ summaryId: z.string().optional(),
350
+ systolic: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
351
+ diastolic: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
352
+ pulse: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
353
+ sourceType: z.string().optional(),
354
+ measurementTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
355
+ measurementTimeOffsetInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional()
356
+ });
357
+
358
+ export const zClientLap = z.object({
359
+ startTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional()
360
+ });
361
+
362
+ export const zSample = z.object({
363
+ startTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
364
+ latitudeInDegree: z.number().optional(),
365
+ longitudeInDegree: z.number().optional(),
366
+ elevationInMeters: z.number().optional(),
367
+ airTemperatureCelcius: z.number().optional(),
368
+ heartRate: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
369
+ speedMetersPerSecond: z.number().optional(),
370
+ stepsPerMinute: z.number().optional(),
371
+ totalDistanceInMeters: z.number().optional(),
372
+ powerInWatts: z.number().optional(),
373
+ bikeCadenceInRPM: z.number().optional(),
374
+ swimCadenceInStrokesPerMinute: z.number().optional(),
375
+ wheelChairCadenceInPushesPerMinute: z.number().optional(),
376
+ timerDurationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
377
+ clockDurationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
378
+ movingDurationInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional()
379
+ });
380
+
381
+ export const zClientActivityDetail = z.object({
382
+ userId: z.string().optional(),
383
+ summaryId: z.string().optional(),
384
+ activityId: z.coerce.bigint().min(BigInt('-9223372036854775808'), { error: 'Invalid value: Expected int64 to be >= -9223372036854775808' }).max(BigInt('9223372036854775807'), { error: 'Invalid value: Expected int64 to be <= 9223372036854775807' }).optional(),
385
+ summary: zClientActivity.optional(),
386
+ samples: z.array(zSample).optional(),
387
+ laps: z.array(zClientLap).optional()
388
+ });
389
+
390
+ export const zServiceFailure = z.object({
391
+ errorType: z.string().optional(),
392
+ message: z.string().optional(),
393
+ errorMessage: z.string().optional(),
394
+ errorId: z.string().optional()
395
+ });
396
+
397
+ export const zClientSummarizedMenstrualCycleWritable = z.object({
398
+ userId: z.string().optional(),
399
+ summaryId: z.string().optional(),
400
+ periodStartDate: z.string().optional(),
401
+ dayInCycle: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
402
+ periodLength: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
403
+ currentPhase: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
404
+ currentPhaseType: z.string().optional(),
405
+ lengthOfCurrentPhase: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
406
+ daysUntilNextPhase: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
407
+ fertileWindowStart: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
408
+ lengthOfFertileWindow: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
409
+ predictedCycleLength: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
410
+ isPredictedCycle: z.boolean().optional(),
411
+ cycleLength: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
412
+ lastUpdatedTimeInSeconds: z.int().min(-2147483648, { error: 'Invalid value: Expected int32 to be >= -2147483648' }).max(2147483647, { error: 'Invalid value: Expected int32 to be <= 2147483647' }).optional(),
413
+ hasSpecifiedCycleLength: z.boolean().optional(),
414
+ hasSpecifiedPeriodLength: z.boolean().optional(),
415
+ pregnancySnapshot: zClientPregnancySnapshot.optional(),
416
+ predictedCycle: z.boolean().optional()
417
+ });
418
+
419
+ export const zGetUserMetricsData = z.object({
420
+ body: z.never().optional(),
421
+ path: z.never().optional(),
422
+ query: z.object({
423
+ uploadStartTimeInSeconds: z.string().optional(),
424
+ uploadEndTimeInSeconds: z.string().optional(),
425
+ token: z.string().optional()
426
+ }).optional()
427
+ });
428
+
429
+ /**
430
+ * OK
431
+ */
432
+ export const zGetUserMetricsResponse = z.array(zClientUserMetrics);
433
+
434
+ export const zGetUserPermissionsData = z.object({
435
+ body: z.never().optional(),
436
+ path: z.never().optional(),
437
+ query: z.never().optional()
438
+ });
439
+
440
+ /**
441
+ * OK
442
+ */
443
+ export const zGetUserPermissionsResponse = zClientConsumerPermissions;
444
+
445
+ export const zUserIdData = z.object({
446
+ body: z.never().optional(),
447
+ path: z.never().optional(),
448
+ query: z.never().optional()
449
+ });
450
+
451
+ /**
452
+ * OK
453
+ */
454
+ export const zUserIdResponse = zClientUserId;
455
+
456
+ export const zGetStressDetailsData = z.object({
457
+ body: z.never().optional(),
458
+ path: z.never().optional(),
459
+ query: z.object({
460
+ uploadStartTimeInSeconds: z.string().optional(),
461
+ uploadEndTimeInSeconds: z.string().optional(),
462
+ token: z.string().optional()
463
+ }).optional()
464
+ });
465
+
466
+ /**
467
+ * OK
468
+ */
469
+ export const zGetStressDetailsResponse = z.array(zClientStress);
470
+
471
+ export const zGetSolarData = z.object({
472
+ body: z.never().optional(),
473
+ path: z.never().optional(),
474
+ query: z.object({
475
+ uploadStartTimeInSeconds: z.string().optional(),
476
+ uploadEndTimeInSeconds: z.string().optional(),
477
+ token: z.string().optional()
478
+ }).optional()
479
+ });
480
+
481
+ /**
482
+ * OK
483
+ */
484
+ export const zGetSolarResponse = z.array(zClientSolar);
485
+
486
+ export const zGetSleepsData = z.object({
487
+ body: z.never().optional(),
488
+ path: z.never().optional(),
489
+ query: z.object({
490
+ uploadStartTimeInSeconds: z.string().optional(),
491
+ uploadEndTimeInSeconds: z.string().optional(),
492
+ token: z.string().optional()
493
+ }).optional()
494
+ });
495
+
496
+ /**
497
+ * OK
498
+ */
499
+ export const zGetSleepsResponse = z.array(zClientSleep);
500
+
501
+ export const zGetSkinTempData = z.object({
502
+ body: z.never().optional(),
503
+ path: z.never().optional(),
504
+ query: z.object({
505
+ uploadStartTimeInSeconds: z.string().optional(),
506
+ uploadEndTimeInSeconds: z.string().optional(),
507
+ token: z.string().optional()
508
+ }).optional()
509
+ });
510
+
511
+ /**
512
+ * OK
513
+ */
514
+ export const zGetSkinTempResponse = z.array(zClientSkinTemp);
515
+
516
+ export const zGetRespirationData = z.object({
517
+ body: z.never().optional(),
518
+ path: z.never().optional(),
519
+ query: z.object({
520
+ uploadStartTimeInSeconds: z.string().optional(),
521
+ uploadEndTimeInSeconds: z.string().optional(),
522
+ token: z.string().optional()
523
+ }).optional()
524
+ });
525
+
526
+ /**
527
+ * OK
528
+ */
529
+ export const zGetRespirationResponse = z.array(zClientRespiration);
530
+
531
+ export const zGetPulseoxData = z.object({
532
+ body: z.never().optional(),
533
+ path: z.never().optional(),
534
+ query: z.object({
535
+ uploadStartTimeInSeconds: z.string().optional(),
536
+ uploadEndTimeInSeconds: z.string().optional(),
537
+ token: z.string().optional()
538
+ }).optional()
539
+ });
540
+
541
+ /**
542
+ * OK
543
+ */
544
+ export const zGetPulseoxResponse = z.array(zClientDailySpo2Acclimation);
545
+
546
+ export const zGetMoveIqData = z.object({
547
+ body: z.never().optional(),
548
+ path: z.never().optional(),
549
+ query: z.object({
550
+ uploadStartTimeInSeconds: z.string().optional(),
551
+ uploadEndTimeInSeconds: z.string().optional(),
552
+ token: z.string().optional()
553
+ }).optional()
554
+ });
555
+
556
+ /**
557
+ * OK
558
+ */
559
+ export const zGetMoveIqResponse = z.array(zClientAutoActivityMoveIq);
560
+
561
+ export const zGetMctData = z.object({
562
+ body: z.never().optional(),
563
+ path: z.never().optional(),
564
+ query: z.object({
565
+ uploadStartTimeInSeconds: z.string().optional(),
566
+ uploadEndTimeInSeconds: z.string().optional(),
567
+ token: z.string().optional()
568
+ }).optional()
569
+ });
570
+
571
+ /**
572
+ * OK
573
+ */
574
+ export const zGetMctResponse = z.array(zClientSummarizedMenstrualCycle);
575
+
576
+ export const zGetManuallyUpdatedActivitiesData = z.object({
577
+ body: z.never().optional(),
578
+ path: z.never().optional(),
579
+ query: z.object({
580
+ uploadStartTimeInSeconds: z.string().optional(),
581
+ uploadEndTimeInSeconds: z.string().optional(),
582
+ token: z.string().optional()
583
+ }).optional()
584
+ });
585
+
586
+ /**
587
+ * OK
588
+ */
589
+ export const zGetManuallyUpdatedActivitiesResponse = z.array(zClientActivity);
590
+
591
+ export const zGetHrvData = z.object({
592
+ body: z.never().optional(),
593
+ path: z.never().optional(),
594
+ query: z.object({
595
+ uploadStartTimeInSeconds: z.string().optional(),
596
+ uploadEndTimeInSeconds: z.string().optional(),
597
+ token: z.string().optional()
598
+ }).optional()
599
+ });
600
+
601
+ /**
602
+ * OK
603
+ */
604
+ export const zGetHrvResponse = z.array(zClientHrvSummary);
605
+
606
+ export const zGetHealthsnapshotData = z.object({
607
+ body: z.never().optional(),
608
+ path: z.never().optional(),
609
+ query: z.object({
610
+ uploadStartTimeInSeconds: z.string().optional(),
611
+ uploadEndTimeInSeconds: z.string().optional(),
612
+ token: z.string().optional()
613
+ }).optional()
614
+ });
615
+
616
+ /**
617
+ * OK
618
+ */
619
+ export const zGetHealthsnapshotResponse = z.array(zClientHealthSnapshot);
620
+
621
+ export const zGetEpochsData = z.object({
622
+ body: z.never().optional(),
623
+ path: z.never().optional(),
624
+ query: z.object({
625
+ uploadStartTimeInSeconds: z.string().optional(),
626
+ uploadEndTimeInSeconds: z.string().optional(),
627
+ token: z.string().optional()
628
+ }).optional()
629
+ });
630
+
631
+ /**
632
+ * OK
633
+ */
634
+ export const zGetEpochsResponse = z.array(zClientEpoch);
635
+
636
+ export const zGetDailiesData = z.object({
637
+ body: z.never().optional(),
638
+ path: z.never().optional(),
639
+ query: z.object({
640
+ uploadStartTimeInSeconds: z.string().optional(),
641
+ uploadEndTimeInSeconds: z.string().optional(),
642
+ token: z.string().optional()
643
+ }).optional()
644
+ });
645
+
646
+ /**
647
+ * OK
648
+ */
649
+ export const zGetDailiesResponse = z.array(zClientDaily);
650
+
651
+ export const zGetBodyCompsData = z.object({
652
+ body: z.never().optional(),
653
+ path: z.never().optional(),
654
+ query: z.object({
655
+ uploadStartTimeInSeconds: z.string().optional(),
656
+ uploadEndTimeInSeconds: z.string().optional(),
657
+ token: z.string().optional()
658
+ }).optional()
659
+ });
660
+
661
+ /**
662
+ * OK
663
+ */
664
+ export const zGetBodyCompsResponse = z.array(zClientBodyComp);
665
+
666
+ export const zGetBloodPressuresData = z.object({
667
+ body: z.never().optional(),
668
+ path: z.never().optional(),
669
+ query: z.object({
670
+ uploadStartTimeInSeconds: z.string().optional(),
671
+ uploadEndTimeInSeconds: z.string().optional(),
672
+ token: z.string().optional()
673
+ }).optional()
674
+ });
675
+
676
+ /**
677
+ * OK
678
+ */
679
+ export const zGetBloodPressuresResponse = z.array(zClientBloodPressure);
680
+
681
+ export const zGetBackfillUserMetricsData = z.object({
682
+ body: z.never().optional(),
683
+ path: z.never().optional(),
684
+ query: z.object({
685
+ summaryStartTimeInSeconds: z.string().optional(),
686
+ summaryEndTimeInSeconds: z.string().optional()
687
+ }).optional()
688
+ });
689
+
690
+ export const zGetBackfillStressDetailsData = z.object({
691
+ body: z.never().optional(),
692
+ path: z.never().optional(),
693
+ query: z.object({
694
+ summaryStartTimeInSeconds: z.string().optional(),
695
+ summaryEndTimeInSeconds: z.string().optional()
696
+ }).optional()
697
+ });
698
+
699
+ export const zGetBackfillSleepsData = z.object({
700
+ body: z.never().optional(),
701
+ path: z.never().optional(),
702
+ query: z.object({
703
+ summaryStartTimeInSeconds: z.string().optional(),
704
+ summaryEndTimeInSeconds: z.string().optional()
705
+ }).optional()
706
+ });
707
+
708
+ export const zGetBackfillSkinTempData = z.object({
709
+ body: z.never().optional(),
710
+ path: z.never().optional(),
711
+ query: z.object({
712
+ summaryStartTimeInSeconds: z.string().optional(),
713
+ summaryEndTimeInSeconds: z.string().optional()
714
+ }).optional()
715
+ });
716
+
717
+ export const zGetBackfillRespirationEpochData = z.object({
718
+ body: z.never().optional(),
719
+ path: z.never().optional(),
720
+ query: z.object({
721
+ summaryStartTimeInSeconds: z.string().optional(),
722
+ summaryEndTimeInSeconds: z.string().optional()
723
+ }).optional()
724
+ });
725
+
726
+ export const zGetBackfillPulseoxData = z.object({
727
+ body: z.never().optional(),
728
+ path: z.never().optional(),
729
+ query: z.object({
730
+ summaryStartTimeInSeconds: z.string().optional(),
731
+ summaryEndTimeInSeconds: z.string().optional()
732
+ }).optional()
733
+ });
734
+
735
+ export const zGetBackfillAutoActivityMoveiqData = z.object({
736
+ body: z.never().optional(),
737
+ path: z.never().optional(),
738
+ query: z.object({
739
+ summaryStartTimeInSeconds: z.string().optional(),
740
+ summaryEndTimeInSeconds: z.string().optional()
741
+ }).optional()
742
+ });
743
+
744
+ export const zGetBackfillMctData = z.object({
745
+ body: z.never().optional(),
746
+ path: z.never().optional(),
747
+ query: z.object({
748
+ summaryStartTimeInSeconds: z.string().optional(),
749
+ summaryEndTimeInSeconds: z.string().optional()
750
+ }).optional()
751
+ });
752
+
753
+ export const zGetBackfillHrvData = z.object({
754
+ body: z.never().optional(),
755
+ path: z.never().optional(),
756
+ query: z.object({
757
+ summaryStartTimeInSeconds: z.string().optional(),
758
+ summaryEndTimeInSeconds: z.string().optional()
759
+ }).optional()
760
+ });
761
+
762
+ export const zGetBackfillHealthSnapshotData = z.object({
763
+ body: z.never().optional(),
764
+ path: z.never().optional(),
765
+ query: z.object({
766
+ summaryStartTimeInSeconds: z.string().optional(),
767
+ summaryEndTimeInSeconds: z.string().optional()
768
+ }).optional()
769
+ });
770
+
771
+ export const zGetBackfillEpochsData = z.object({
772
+ body: z.never().optional(),
773
+ path: z.never().optional(),
774
+ query: z.object({
775
+ summaryStartTimeInSeconds: z.string().optional(),
776
+ summaryEndTimeInSeconds: z.string().optional()
777
+ }).optional()
778
+ });
779
+
780
+ export const zGetBackfillDailiesData = z.object({
781
+ body: z.never().optional(),
782
+ path: z.never().optional(),
783
+ query: z.object({
784
+ summaryStartTimeInSeconds: z.string().optional(),
785
+ summaryEndTimeInSeconds: z.string().optional()
786
+ }).optional()
787
+ });
788
+
789
+ export const zGetBackfillBodycompsData = z.object({
790
+ body: z.never().optional(),
791
+ path: z.never().optional(),
792
+ query: z.object({
793
+ summaryStartTimeInSeconds: z.string().optional(),
794
+ summaryEndTimeInSeconds: z.string().optional()
795
+ }).optional()
796
+ });
797
+
798
+ export const zGetBackfillBloodPressuresData = z.object({
799
+ body: z.never().optional(),
800
+ path: z.never().optional(),
801
+ query: z.object({
802
+ summaryStartTimeInSeconds: z.string().optional(),
803
+ summaryEndTimeInSeconds: z.string().optional()
804
+ }).optional()
805
+ });
806
+
807
+ export const zGetBackfillActivityDetailsData = z.object({
808
+ body: z.never().optional(),
809
+ path: z.never().optional(),
810
+ query: z.object({
811
+ summaryStartTimeInSeconds: z.string().optional(),
812
+ summaryEndTimeInSeconds: z.string().optional()
813
+ }).optional()
814
+ });
815
+
816
+ export const zGetBackfillActivitiesData = z.object({
817
+ body: z.never().optional(),
818
+ path: z.never().optional(),
819
+ query: z.object({
820
+ summaryStartTimeInSeconds: z.string().optional(),
821
+ summaryEndTimeInSeconds: z.string().optional()
822
+ }).optional()
823
+ });
824
+
825
+ export const zGetActivityFileData = z.object({
826
+ body: z.never().optional(),
827
+ path: z.never().optional(),
828
+ query: z.object({
829
+ id: z.string().optional(),
830
+ token: z.string().optional()
831
+ }).optional()
832
+ });
833
+
834
+ /**
835
+ * OK
836
+ */
837
+ export const zGetActivityFileResponse = z.string();
838
+
839
+ export const zActivityDetailsData = z.object({
840
+ body: z.never().optional(),
841
+ path: z.never().optional(),
842
+ query: z.object({
843
+ uploadStartTimeInSeconds: z.string().optional(),
844
+ uploadEndTimeInSeconds: z.string().optional(),
845
+ token: z.string().optional()
846
+ }).optional()
847
+ });
848
+
849
+ /**
850
+ * OK
851
+ */
852
+ export const zActivityDetailsResponse = z.array(zClientActivityDetail);
853
+
854
+ export const zGetActivitiesData = z.object({
855
+ body: z.never().optional(),
856
+ path: z.never().optional(),
857
+ query: z.object({
858
+ uploadStartTimeInSeconds: z.string().optional(),
859
+ uploadEndTimeInSeconds: z.string().optional(),
860
+ token: z.string().optional()
861
+ }).optional()
862
+ });
863
+
864
+ /**
865
+ * OK
866
+ */
867
+ export const zGetActivitiesResponse = z.array(zClientActivity);
868
+
869
+ export const zDeregData = z.object({
870
+ body: z.never().optional(),
871
+ path: z.never().optional(),
872
+ query: z.never().optional()
873
+ });
874
+
875
+ /**
876
+ * No Content
877
+ */
878
+ export const zDeregResponse = z.void();