@googleapis/health 6.0.1 → 6.1.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.
- package/CHANGELOG.md +7 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v4.d.ts +49 -33
- package/build/v4.js.map +1 -1
- package/build/v4beta.d.ts +173 -33
- package/build/v4beta.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.build.json +10 -0
- package/v4.ts +49 -33
- package/v4beta.ts +173 -33
package/v4beta.ts
CHANGED
|
@@ -137,7 +137,7 @@ export namespace health_v4beta {
|
|
|
137
137
|
*/
|
|
138
138
|
interval?: Schema$ObservationTimeInterval;
|
|
139
139
|
/**
|
|
140
|
-
* Required. Energy burned during an activity, measured in kilocalories.
|
|
140
|
+
* Required. Energy burned during an activity, measured in kilocalories. Must be in the range `[0, 1000000]`.
|
|
141
141
|
*/
|
|
142
142
|
kcal?: number | null;
|
|
143
143
|
}
|
|
@@ -309,7 +309,7 @@ export namespace health_v4beta {
|
|
|
309
309
|
*/
|
|
310
310
|
export interface Schema$Altitude {
|
|
311
311
|
/**
|
|
312
|
-
* Required. Altitude gain in millimeters over the observed interval.
|
|
312
|
+
* Required. Altitude gain in millimeters over the observed interval. Must be in the range `[-1000000000, 1000000000]`.
|
|
313
313
|
*/
|
|
314
314
|
gainMillimeters?: string | null;
|
|
315
315
|
/**
|
|
@@ -370,7 +370,7 @@ export namespace health_v4beta {
|
|
|
370
370
|
*/
|
|
371
371
|
export interface Schema$BloodGlucose {
|
|
372
372
|
/**
|
|
373
|
-
* Required. Blood glucose level concentration in mg/dL.
|
|
373
|
+
* Required. Blood glucose level concentration in mg/dL. Must be in the range `[0, 900]`.
|
|
374
374
|
*/
|
|
375
375
|
bloodGlucoseMilligramsPerDeciliter?: number | null;
|
|
376
376
|
/**
|
|
@@ -412,7 +412,7 @@ export namespace health_v4beta {
|
|
|
412
412
|
*/
|
|
413
413
|
export interface Schema$BodyFat {
|
|
414
414
|
/**
|
|
415
|
-
* Required. Body fat percentage
|
|
415
|
+
* Required. Body fat percentage. Must be in the range `[0, 100]`.
|
|
416
416
|
*/
|
|
417
417
|
percentage?: number | null;
|
|
418
418
|
/**
|
|
@@ -494,7 +494,7 @@ export namespace health_v4beta {
|
|
|
494
494
|
*/
|
|
495
495
|
sampleTime?: Schema$ObservationSampleTime;
|
|
496
496
|
/**
|
|
497
|
-
* Required. The core body temperature in Celsius.
|
|
497
|
+
* Required. The core body temperature in Celsius. Must be in the range `[0, 100]`.
|
|
498
498
|
*/
|
|
499
499
|
temperatureCelsius?: number | null;
|
|
500
500
|
}
|
|
@@ -588,7 +588,7 @@ export namespace health_v4beta {
|
|
|
588
588
|
*/
|
|
589
589
|
export interface Schema$DailyOxygenSaturation {
|
|
590
590
|
/**
|
|
591
|
-
* Required. The average value of the oxygen saturation samples during the sleep.
|
|
591
|
+
* Required. The average value of the oxygen saturation samples during the sleep. Must be in the range `[0, 100]`.
|
|
592
592
|
*/
|
|
593
593
|
averagePercentage?: number | null;
|
|
594
594
|
/**
|
|
@@ -596,7 +596,7 @@ export namespace health_v4beta {
|
|
|
596
596
|
*/
|
|
597
597
|
date?: Schema$Date;
|
|
598
598
|
/**
|
|
599
|
-
* Required. The lower bound of the confidence interval of oxygen saturation samples during sleep.
|
|
599
|
+
* Required. The lower bound of the confidence interval of oxygen saturation samples during sleep. Must be in the range `[0, 100]`.
|
|
600
600
|
*/
|
|
601
601
|
lowerBoundPercentage?: number | null;
|
|
602
602
|
/**
|
|
@@ -604,7 +604,7 @@ export namespace health_v4beta {
|
|
|
604
604
|
*/
|
|
605
605
|
standardDeviationPercentage?: number | null;
|
|
606
606
|
/**
|
|
607
|
-
* Required. The upper bound of the confidence interval of oxygen saturation samples during sleep.
|
|
607
|
+
* Required. The upper bound of the confidence interval of oxygen saturation samples during sleep. Must be in the range `[0, 100]`.
|
|
608
608
|
*/
|
|
609
609
|
upperBoundPercentage?: number | null;
|
|
610
610
|
}
|
|
@@ -731,6 +731,10 @@ export namespace health_v4beta {
|
|
|
731
731
|
* Returned by default when rolling up data points from the `sedentary-period` data type, or when requested explicitly using the `sedentary-period` rollup type identifier.
|
|
732
732
|
*/
|
|
733
733
|
sedentaryPeriod?: Schema$SedentaryPeriodRollupValue;
|
|
734
|
+
/**
|
|
735
|
+
* Returned by default when rolling up data points from the `skin-temperature` data type.
|
|
736
|
+
*/
|
|
737
|
+
skinTemperature?: Schema$SkinTemperatureRollupValue;
|
|
734
738
|
/**
|
|
735
739
|
* Returned by default when rolling up data points from the `steps` data type, or when requested explicitly using the `steps` rollup type identifier.
|
|
736
740
|
*/
|
|
@@ -757,7 +761,7 @@ export namespace health_v4beta {
|
|
|
757
761
|
*/
|
|
758
762
|
export interface Schema$DailyRollUpDataPointsRequest {
|
|
759
763
|
/**
|
|
760
|
-
* Optional. The data source family name to roll up. If empty, data points from all available data sources will be rolled up. Format: `users/me/dataSourceFamilies/{data_source_family\}` The supported values are: - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data from all available data sources. - `users/me/dataSourceFamilies/google-wearables` - Includes data from Google and Fitbit tracker devices (such as Fitbit trackers and Pixel Watch). Excludes manually logged data. - `users/me/dataSourceFamilies/google-sources` - Includes first-party Google data, such as data from tracker devices, manually logged data, and Health Connect.
|
|
764
|
+
* Optional. The data source family name to roll up. If empty, data points from all available data sources will be rolled up. Format: `users/me/dataSourceFamilies/{data_source_family\}` The supported values are: - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data from all available data sources. - `users/me/dataSourceFamilies/google-wearables` - Includes data from Google and Fitbit tracker devices (such as Fitbit trackers and Pixel Watch). Excludes manually logged data. - `users/me/dataSourceFamilies/google-sources` - Includes first-party Google data, such as data from tracker devices, manually logged data, and Health Connect. - `users/me/dataSourceFamilies/self-sources` - Includes only the data the calling client wrote through this API, that is, data points whose data source was registered through this API with the same OAuth client ID as the caller. Callers that were only granted write scopes for the requested data type may only read the data they wrote themselves: their requests are implicitly restricted to `self-sources`, and requesting any other data source family fails with `PERMISSION_DENIED`. If no data point matches the requested data source family, the response is an empty list rather than an error.
|
|
761
765
|
*/
|
|
762
766
|
dataSourceFamily?: string | null;
|
|
763
767
|
/**
|
|
@@ -824,7 +828,7 @@ export namespace health_v4beta {
|
|
|
824
828
|
*/
|
|
825
829
|
estimated?: boolean | null;
|
|
826
830
|
/**
|
|
827
|
-
* Required. Daily VO2 max value measured as in ml consumed oxygen / kg of body weight / min.
|
|
831
|
+
* Required. Daily VO2 max value measured as in ml consumed oxygen / kg of body weight / min. Must be in the range `[0, 100]`.
|
|
828
832
|
*/
|
|
829
833
|
vo2Max?: number | null;
|
|
830
834
|
/**
|
|
@@ -984,6 +988,14 @@ export namespace health_v4beta {
|
|
|
984
988
|
* Optional. Data for points in the `sedentary-period` interval data type collection.
|
|
985
989
|
*/
|
|
986
990
|
sedentaryPeriod?: Schema$SedentaryPeriod;
|
|
991
|
+
/**
|
|
992
|
+
* Optional. Data for points in the `skin-temperature` sample data type collection.
|
|
993
|
+
*/
|
|
994
|
+
skinTemperature?: Schema$SkinTemperature;
|
|
995
|
+
/**
|
|
996
|
+
* Optional. Data for points in the `skin-temperature-sensors` sample data type collection.
|
|
997
|
+
*/
|
|
998
|
+
skinTemperatureSensors?: Schema$SkinTemperatureSensors;
|
|
987
999
|
/**
|
|
988
1000
|
* Optional. Data for points in the `sleep` session data type collection.
|
|
989
1001
|
*/
|
|
@@ -1118,7 +1130,7 @@ export namespace health_v4beta {
|
|
|
1118
1130
|
*/
|
|
1119
1131
|
interval?: Schema$ObservationTimeInterval;
|
|
1120
1132
|
/**
|
|
1121
|
-
* Required. Distance in millimeters over the observed interval.
|
|
1133
|
+
* Required. Distance in millimeters over the observed interval. Must be in the range `[0, 1000000000]`.
|
|
1122
1134
|
*/
|
|
1123
1135
|
millimeters?: string | null;
|
|
1124
1136
|
}
|
|
@@ -1190,7 +1202,7 @@ export namespace health_v4beta {
|
|
|
1190
1202
|
*/
|
|
1191
1203
|
export interface Schema$EnergyQuantity {
|
|
1192
1204
|
/**
|
|
1193
|
-
* Required. The energy value in kilocalories.
|
|
1205
|
+
* Required. The energy value in kilocalories. Must be in the range `[0, 100000]`.
|
|
1194
1206
|
*/
|
|
1195
1207
|
kcal?: number | null;
|
|
1196
1208
|
/**
|
|
@@ -1308,7 +1320,7 @@ export namespace health_v4beta {
|
|
|
1308
1320
|
*/
|
|
1309
1321
|
export interface Schema$Floors {
|
|
1310
1322
|
/**
|
|
1311
|
-
* Required. Number of floors in the recorded interval
|
|
1323
|
+
* Required. Number of floors in the recorded interval. Must be in the range `[0, 1000000]`.
|
|
1312
1324
|
*/
|
|
1313
1325
|
count?: string | null;
|
|
1314
1326
|
/**
|
|
@@ -1508,7 +1520,7 @@ export namespace health_v4beta {
|
|
|
1508
1520
|
*/
|
|
1509
1521
|
export interface Schema$HeartRate {
|
|
1510
1522
|
/**
|
|
1511
|
-
* Required. The heart rate value in beats per minute.
|
|
1523
|
+
* Required. The heart rate value in beats per minute. Must be in the range `[1, 300]`.
|
|
1512
1524
|
*/
|
|
1513
1525
|
beatsPerMinute?: string | null;
|
|
1514
1526
|
/**
|
|
@@ -1555,11 +1567,11 @@ export namespace health_v4beta {
|
|
|
1555
1567
|
*/
|
|
1556
1568
|
export interface Schema$HeartRateVariability {
|
|
1557
1569
|
/**
|
|
1558
|
-
* Optional.
|
|
1570
|
+
* Optional. Additional information about the heart rate variability measurement.
|
|
1559
1571
|
*/
|
|
1560
1572
|
metadata?: Schema$HeartRateVariabilityMetadata;
|
|
1561
1573
|
/**
|
|
1562
|
-
* Optional. The root mean square of successive differences between normal heartbeats. This is a measure of heart rate variability used by Google Health.
|
|
1574
|
+
* Optional. The root mean square of successive differences between normal heartbeats. This is a measure of heart rate variability used by Google Health. Must be in the range `[1, 200]`.
|
|
1563
1575
|
*/
|
|
1564
1576
|
rootMeanSquareOfSuccessiveDifferencesMilliseconds?: number | null;
|
|
1565
1577
|
/**
|
|
@@ -1619,7 +1631,7 @@ export namespace health_v4beta {
|
|
|
1619
1631
|
*/
|
|
1620
1632
|
export interface Schema$Height {
|
|
1621
1633
|
/**
|
|
1622
|
-
* Required. Height of the user in millimeters.
|
|
1634
|
+
* Required. Height of the user in millimeters. Must be in the range `[0, 3000]`.
|
|
1623
1635
|
*/
|
|
1624
1636
|
heightMillimeters?: string | null;
|
|
1625
1637
|
/**
|
|
@@ -2180,7 +2192,7 @@ export namespace health_v4beta {
|
|
|
2180
2192
|
*/
|
|
2181
2193
|
export interface Schema$OxygenSaturation {
|
|
2182
2194
|
/**
|
|
2183
|
-
* Required. The oxygen saturation percentage.
|
|
2195
|
+
* Required. The oxygen saturation percentage. Must be in the range `[0, 100]`.
|
|
2184
2196
|
*/
|
|
2185
2197
|
percentage?: number | null;
|
|
2186
2198
|
/**
|
|
@@ -2246,7 +2258,7 @@ export namespace health_v4beta {
|
|
|
2246
2258
|
*/
|
|
2247
2259
|
membershipStartDate?: Schema$Date;
|
|
2248
2260
|
/**
|
|
2249
|
-
* Identifier. The resource name of this Profile resource. Format: `users/{user\}/profile` Example: `users/1234567890/profile` or `users/me/profile` The {user\} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal `me` can also be used to refer to the authenticated user.
|
|
2261
|
+
* Identifier. The resource name of this Profile resource. Format: `users/{user\}/profile` Example: `users/1234567890/profile` or `users/me/profile` The {user\} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal `me` can also be used to refer to the authenticated user. This field is read-only.
|
|
2250
2262
|
*/
|
|
2251
2263
|
name?: string | null;
|
|
2252
2264
|
/**
|
|
@@ -2391,6 +2403,14 @@ export namespace health_v4beta {
|
|
|
2391
2403
|
* Data for points in the `sedentary-period` interval data type collection.
|
|
2392
2404
|
*/
|
|
2393
2405
|
sedentaryPeriod?: Schema$SedentaryPeriod;
|
|
2406
|
+
/**
|
|
2407
|
+
* Data for points in the `skin-temperature` sample data type collection.
|
|
2408
|
+
*/
|
|
2409
|
+
skinTemperature?: Schema$SkinTemperature;
|
|
2410
|
+
/**
|
|
2411
|
+
* Data for points in the `skin-temperature-sensors` sample data type collection.
|
|
2412
|
+
*/
|
|
2413
|
+
skinTemperatureSensors?: Schema$SkinTemperatureSensors;
|
|
2394
2414
|
/**
|
|
2395
2415
|
* Data for points in the `sleep` session data type collection.
|
|
2396
2416
|
*/
|
|
@@ -2543,6 +2563,10 @@ export namespace health_v4beta {
|
|
|
2543
2563
|
* Returned by default when rolling up data points from the `sedentary-period` data type, or when requested explicitly using the `sedentary-period` rollup type identifier.
|
|
2544
2564
|
*/
|
|
2545
2565
|
sedentaryPeriod?: Schema$SedentaryPeriodRollupValue;
|
|
2566
|
+
/**
|
|
2567
|
+
* Returned by default when rolling up data points from the `skin-temperature` data type.
|
|
2568
|
+
*/
|
|
2569
|
+
skinTemperature?: Schema$SkinTemperatureRollupValue;
|
|
2546
2570
|
/**
|
|
2547
2571
|
* Start time of the window this value aggregates over
|
|
2548
2572
|
*/
|
|
@@ -2573,7 +2597,7 @@ export namespace health_v4beta {
|
|
|
2573
2597
|
*/
|
|
2574
2598
|
export interface Schema$RollUpDataPointsRequest {
|
|
2575
2599
|
/**
|
|
2576
|
-
* Optional. The data source family name to roll up. If empty, data points from all available data sources will be rolled up. Format: `users/me/dataSourceFamilies/{data_source_family\}` The supported values are: - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data from all available data sources. - `users/me/dataSourceFamilies/google-wearables` - Includes data from Google and Fitbit tracker devices (such as Fitbit trackers and Pixel Watch). Excludes manually logged data. - `users/me/dataSourceFamilies/google-sources` - Includes first-party Google data, such as data from tracker devices, manually logged data, and Health Connect.
|
|
2600
|
+
* Optional. The data source family name to roll up. If empty, data points from all available data sources will be rolled up. Format: `users/me/dataSourceFamilies/{data_source_family\}` The supported values are: - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data from all available data sources. - `users/me/dataSourceFamilies/google-wearables` - Includes data from Google and Fitbit tracker devices (such as Fitbit trackers and Pixel Watch). Excludes manually logged data. - `users/me/dataSourceFamilies/google-sources` - Includes first-party Google data, such as data from tracker devices, manually logged data, and Health Connect. - `users/me/dataSourceFamilies/self-sources` - Includes only the data the calling client wrote through this API, that is, data points whose data source was registered through this API with the same OAuth client ID as the caller. Callers that were only granted write scopes for the requested data type may only read the data they wrote themselves: their requests are implicitly restricted to `self-sources`, and requesting any other data source family fails with `PERMISSION_DENIED`. If no data point matches the requested data source family, the response is an empty list rather than an error.
|
|
2577
2601
|
*/
|
|
2578
2602
|
dataSourceFamily?: string | null;
|
|
2579
2603
|
/**
|
|
@@ -2611,7 +2635,7 @@ export namespace health_v4beta {
|
|
|
2611
2635
|
*/
|
|
2612
2636
|
export interface Schema$RunVO2Max {
|
|
2613
2637
|
/**
|
|
2614
|
-
* Required. Run VO2 max value in ml/kg/min.
|
|
2638
|
+
* Required. Run VO2 max value in ml/kg/min. Must be in the range `[0, 100]`.
|
|
2615
2639
|
*/
|
|
2616
2640
|
runVo2Max?: number | null;
|
|
2617
2641
|
/**
|
|
@@ -2654,6 +2678,36 @@ export namespace health_v4beta {
|
|
|
2654
2678
|
*/
|
|
2655
2679
|
durationSum?: string | null;
|
|
2656
2680
|
}
|
|
2681
|
+
/**
|
|
2682
|
+
* Individual sensor reading and metadata.
|
|
2683
|
+
*/
|
|
2684
|
+
export interface Schema$SensorData {
|
|
2685
|
+
/**
|
|
2686
|
+
* Optional. Metadata for the sensor reading.
|
|
2687
|
+
*/
|
|
2688
|
+
metadata?: Schema$SensorMetadata;
|
|
2689
|
+
/**
|
|
2690
|
+
* Required. The temperature reading in Celsius.
|
|
2691
|
+
*/
|
|
2692
|
+
temperatureCelsius?: number | null;
|
|
2693
|
+
}
|
|
2694
|
+
/**
|
|
2695
|
+
* Metadata for the sensor measurement.
|
|
2696
|
+
*/
|
|
2697
|
+
export interface Schema$SensorMetadata {
|
|
2698
|
+
/**
|
|
2699
|
+
* Optional. The location of the sensor measurement.
|
|
2700
|
+
*/
|
|
2701
|
+
measurementLocation?: string | null;
|
|
2702
|
+
/**
|
|
2703
|
+
* Optional. The motion state of the sensor measurement.
|
|
2704
|
+
*/
|
|
2705
|
+
measurementState?: string | null;
|
|
2706
|
+
/**
|
|
2707
|
+
* Optional. The type of the sensor.
|
|
2708
|
+
*/
|
|
2709
|
+
sensorType?: string | null;
|
|
2710
|
+
}
|
|
2657
2711
|
/**
|
|
2658
2712
|
* Represents different properties and information about the serving of a specific food.
|
|
2659
2713
|
*/
|
|
@@ -2729,7 +2783,7 @@ export namespace health_v4beta {
|
|
|
2729
2783
|
*/
|
|
2730
2784
|
languageLocale?: string | null;
|
|
2731
2785
|
/**
|
|
2732
|
-
* Identifier. The resource name of this Settings resource. Format: `users/{user\}/settings` Example: `users/1234567890/settings` or `users/me/settings` The {user\} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal `me` can also be used to refer to the authenticated user.
|
|
2786
|
+
* Identifier. The resource name of this Settings resource. Format: `users/{user\}/settings` Example: `users/1234567890/settings` or `users/me/settings` The {user\} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal `me` can also be used to refer to the authenticated user. This field is read-only.
|
|
2733
2787
|
*/
|
|
2734
2788
|
name?: string | null;
|
|
2735
2789
|
/**
|
|
@@ -2765,6 +2819,70 @@ export namespace health_v4beta {
|
|
|
2765
2819
|
*/
|
|
2766
2820
|
weightUnit?: string | null;
|
|
2767
2821
|
}
|
|
2822
|
+
/**
|
|
2823
|
+
* ////////////////////////////////////////////////////////////////////////// SkinTemperature ////////////////////////////////////////////////////////////////////////// Skin temperature measurement.
|
|
2824
|
+
*/
|
|
2825
|
+
export interface Schema$SkinTemperature {
|
|
2826
|
+
/**
|
|
2827
|
+
* Required. The baseline skin temperature in Celsius. Must be in the range `[0, 100]`.
|
|
2828
|
+
*/
|
|
2829
|
+
baselineTemperatureCelsius?: number | null;
|
|
2830
|
+
/**
|
|
2831
|
+
* Optional. Metadata for the skin temperature measurement.
|
|
2832
|
+
*/
|
|
2833
|
+
metadata?: Schema$SkinTemperatureMetadata;
|
|
2834
|
+
/**
|
|
2835
|
+
* Required. The time at which skin temperature was measured.
|
|
2836
|
+
*/
|
|
2837
|
+
sampleTime?: Schema$ObservationSampleTime;
|
|
2838
|
+
/**
|
|
2839
|
+
* Required. The skin temperature in Celsius. Must be in the range `[0, 100]`.
|
|
2840
|
+
*/
|
|
2841
|
+
temperatureCelsius?: number | null;
|
|
2842
|
+
}
|
|
2843
|
+
/**
|
|
2844
|
+
* Metadata for the skin temperature measurement.
|
|
2845
|
+
*/
|
|
2846
|
+
export interface Schema$SkinTemperatureMetadata {
|
|
2847
|
+
/**
|
|
2848
|
+
* Optional. The location of the skin temperature measurement.
|
|
2849
|
+
*/
|
|
2850
|
+
measurementLocation?: string | null;
|
|
2851
|
+
/**
|
|
2852
|
+
* Optional. The motion state of the skin temperature measurement.
|
|
2853
|
+
*/
|
|
2854
|
+
measurementState?: string | null;
|
|
2855
|
+
}
|
|
2856
|
+
/**
|
|
2857
|
+
* Represents the result of the rollup of the skin temperature data type.
|
|
2858
|
+
*/
|
|
2859
|
+
export interface Schema$SkinTemperatureRollupValue {
|
|
2860
|
+
/**
|
|
2861
|
+
* Average skin temperature in Celsius.
|
|
2862
|
+
*/
|
|
2863
|
+
temperatureCelsiusAvg?: number | null;
|
|
2864
|
+
/**
|
|
2865
|
+
* Maximum skin temperature in Celsius.
|
|
2866
|
+
*/
|
|
2867
|
+
temperatureCelsiusMax?: number | null;
|
|
2868
|
+
/**
|
|
2869
|
+
* Minimum skin temperature in Celsius.
|
|
2870
|
+
*/
|
|
2871
|
+
temperatureCelsiusMin?: number | null;
|
|
2872
|
+
}
|
|
2873
|
+
/**
|
|
2874
|
+
* Skin temperature sensor data containing multi-sensor readings.
|
|
2875
|
+
*/
|
|
2876
|
+
export interface Schema$SkinTemperatureSensors {
|
|
2877
|
+
/**
|
|
2878
|
+
* Required. The observation sample time.
|
|
2879
|
+
*/
|
|
2880
|
+
sampleTime?: Schema$ObservationSampleTime;
|
|
2881
|
+
/**
|
|
2882
|
+
* Required. Repeated sensor data readings for this sample.
|
|
2883
|
+
*/
|
|
2884
|
+
sensorData?: Schema$SensorData[];
|
|
2885
|
+
}
|
|
2768
2886
|
/**
|
|
2769
2887
|
* A sleep session possibly including stages.
|
|
2770
2888
|
*/
|
|
@@ -2969,7 +3087,7 @@ export namespace health_v4beta {
|
|
|
2969
3087
|
*/
|
|
2970
3088
|
export interface Schema$Steps {
|
|
2971
3089
|
/**
|
|
2972
|
-
* Required. Number of steps in the recorded interval.
|
|
3090
|
+
* Required. Number of steps in the recorded interval. Must be in the range `[0, 1000000]`.
|
|
2973
3091
|
*/
|
|
2974
3092
|
count?: string | null;
|
|
2975
3093
|
/**
|
|
@@ -3200,7 +3318,7 @@ export namespace health_v4beta {
|
|
|
3200
3318
|
*/
|
|
3201
3319
|
sampleTime?: Schema$ObservationSampleTime;
|
|
3202
3320
|
/**
|
|
3203
|
-
* Required. VO2 max value measured as in ml consumed oxygen / kg of body weight / min.
|
|
3321
|
+
* Required. VO2 max value measured as in ml consumed oxygen / kg of body weight / min. Must be in the range `[0, 100]`.
|
|
3204
3322
|
*/
|
|
3205
3323
|
vo2Max?: number | null;
|
|
3206
3324
|
}
|
|
@@ -3209,7 +3327,7 @@ export namespace health_v4beta {
|
|
|
3209
3327
|
*/
|
|
3210
3328
|
export interface Schema$VolumeQuantity {
|
|
3211
3329
|
/**
|
|
3212
|
-
* Required. Value representing the volume in milliliters.
|
|
3330
|
+
* Required. Value representing the volume in milliliters. Must be in the range `[0, 100000]`.
|
|
3213
3331
|
*/
|
|
3214
3332
|
milliliters?: number | null;
|
|
3215
3333
|
/**
|
|
@@ -3243,7 +3361,7 @@ export namespace health_v4beta {
|
|
|
3243
3361
|
*/
|
|
3244
3362
|
sampleTime?: Schema$ObservationSampleTime;
|
|
3245
3363
|
/**
|
|
3246
|
-
* Required. Weight of a user in grams.
|
|
3364
|
+
* Required. Weight of a user in grams. Must be in the range `[0, 1000000]`.
|
|
3247
3365
|
*/
|
|
3248
3366
|
weightGrams?: number | null;
|
|
3249
3367
|
}
|
|
@@ -3252,7 +3370,7 @@ export namespace health_v4beta {
|
|
|
3252
3370
|
*/
|
|
3253
3371
|
export interface Schema$WeightQuantity {
|
|
3254
3372
|
/**
|
|
3255
|
-
* Required. The weight value in grams.
|
|
3373
|
+
* Required. The weight value in grams. Must be in the range `[0, 100000]`.
|
|
3256
3374
|
*/
|
|
3257
3375
|
grams?: number | null;
|
|
3258
3376
|
/**
|
|
@@ -5528,7 +5646,7 @@ export namespace health_v4beta {
|
|
|
5528
5646
|
*
|
|
5529
5647
|
* // Do the magic
|
|
5530
5648
|
* const res = await health.users.updateProfile({
|
|
5531
|
-
* // Identifier. The resource name of this Profile resource. Format: `users/{user\}/profile` Example: `users/1234567890/profile` or `users/me/profile` The {user\} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal `me` can also be used to refer to the authenticated user.
|
|
5649
|
+
* // Identifier. The resource name of this Profile resource. Format: `users/{user\}/profile` Example: `users/1234567890/profile` or `users/me/profile` The {user\} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal `me` can also be used to refer to the authenticated user. This field is read-only.
|
|
5532
5650
|
* name: 'users/my-user/profile',
|
|
5533
5651
|
* // Optional. The list of fields to be updated.
|
|
5534
5652
|
* updateMask: 'placeholder-value',
|
|
@@ -5683,7 +5801,7 @@ export namespace health_v4beta {
|
|
|
5683
5801
|
*
|
|
5684
5802
|
* // Do the magic
|
|
5685
5803
|
* const res = await health.users.updateSettings({
|
|
5686
|
-
* // Identifier. The resource name of this Settings resource. Format: `users/{user\}/settings` Example: `users/1234567890/settings` or `users/me/settings` The {user\} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal `me` can also be used to refer to the authenticated user.
|
|
5804
|
+
* // Identifier. The resource name of this Settings resource. Format: `users/{user\}/settings` Example: `users/1234567890/settings` or `users/me/settings` The {user\} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal `me` can also be used to refer to the authenticated user. This field is read-only.
|
|
5687
5805
|
* name: 'users/my-user/settings',
|
|
5688
5806
|
* // Optional. The list of fields to be updated.
|
|
5689
5807
|
* updateMask: 'placeholder-value',
|
|
@@ -5850,7 +5968,7 @@ export namespace health_v4beta {
|
|
|
5850
5968
|
}
|
|
5851
5969
|
export interface Params$Resource$Users$Updateprofile extends StandardParameters {
|
|
5852
5970
|
/**
|
|
5853
|
-
* Identifier. The resource name of this Profile resource. Format: `users/{user\}/profile` Example: `users/1234567890/profile` or `users/me/profile` The {user\} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal `me` can also be used to refer to the authenticated user.
|
|
5971
|
+
* Identifier. The resource name of this Profile resource. Format: `users/{user\}/profile` Example: `users/1234567890/profile` or `users/me/profile` The {user\} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal `me` can also be used to refer to the authenticated user. This field is read-only.
|
|
5854
5972
|
*/
|
|
5855
5973
|
name?: string;
|
|
5856
5974
|
/**
|
|
@@ -5865,7 +5983,7 @@ export namespace health_v4beta {
|
|
|
5865
5983
|
}
|
|
5866
5984
|
export interface Params$Resource$Users$Updatesettings extends StandardParameters {
|
|
5867
5985
|
/**
|
|
5868
|
-
* Identifier. The resource name of this Settings resource. Format: `users/{user\}/settings` Example: `users/1234567890/settings` or `users/me/settings` The {user\} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal `me` can also be used to refer to the authenticated user.
|
|
5986
|
+
* Identifier. The resource name of this Settings resource. Format: `users/{user\}/settings` Example: `users/1234567890/settings` or `users/me/settings` The {user\} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal `me` can also be used to refer to the authenticated user. This field is read-only.
|
|
5869
5987
|
*/
|
|
5870
5988
|
name?: string;
|
|
5871
5989
|
/**
|
|
@@ -6133,6 +6251,8 @@ export namespace health_v4beta {
|
|
|
6133
6251
|
* // "respiratoryRateSleepSummary": {},
|
|
6134
6252
|
* // "runVo2Max": {},
|
|
6135
6253
|
* // "sedentaryPeriod": {},
|
|
6254
|
+
* // "skinTemperature": {},
|
|
6255
|
+
* // "skinTemperatureSensors": {},
|
|
6136
6256
|
* // "sleep": {},
|
|
6137
6257
|
* // "steps": {},
|
|
6138
6258
|
* // "swimLengthsData": {},
|
|
@@ -6274,8 +6394,10 @@ export namespace health_v4beta {
|
|
|
6274
6394
|
* scopes: [
|
|
6275
6395
|
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly',
|
|
6276
6396
|
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly',
|
|
6397
|
+
* 'https://www.googleapis.com/auth/googlehealth.ecg.readonly',
|
|
6277
6398
|
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly',
|
|
6278
6399
|
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly',
|
|
6400
|
+
* 'https://www.googleapis.com/auth/googlehealth.irn.readonly',
|
|
6279
6401
|
* 'https://www.googleapis.com/auth/googlehealth.location.readonly',
|
|
6280
6402
|
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.readonly',
|
|
6281
6403
|
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly',
|
|
@@ -6590,8 +6712,10 @@ export namespace health_v4beta {
|
|
|
6590
6712
|
* scopes: [
|
|
6591
6713
|
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly',
|
|
6592
6714
|
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly',
|
|
6715
|
+
* 'https://www.googleapis.com/auth/googlehealth.ecg.readonly',
|
|
6593
6716
|
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly',
|
|
6594
6717
|
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly',
|
|
6718
|
+
* 'https://www.googleapis.com/auth/googlehealth.irn.readonly',
|
|
6595
6719
|
* 'https://www.googleapis.com/auth/googlehealth.location.readonly',
|
|
6596
6720
|
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.readonly',
|
|
6597
6721
|
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly',
|
|
@@ -6655,6 +6779,8 @@ export namespace health_v4beta {
|
|
|
6655
6779
|
* // "respiratoryRateSleepSummary": {},
|
|
6656
6780
|
* // "runVo2Max": {},
|
|
6657
6781
|
* // "sedentaryPeriod": {},
|
|
6782
|
+
* // "skinTemperature": {},
|
|
6783
|
+
* // "skinTemperatureSensors": {},
|
|
6658
6784
|
* // "sleep": {},
|
|
6659
6785
|
* // "steps": {},
|
|
6660
6786
|
* // "swimLengthsData": {},
|
|
@@ -6781,8 +6907,10 @@ export namespace health_v4beta {
|
|
|
6781
6907
|
* scopes: [
|
|
6782
6908
|
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly',
|
|
6783
6909
|
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly',
|
|
6910
|
+
* 'https://www.googleapis.com/auth/googlehealth.ecg.readonly',
|
|
6784
6911
|
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly',
|
|
6785
6912
|
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly',
|
|
6913
|
+
* 'https://www.googleapis.com/auth/googlehealth.irn.readonly',
|
|
6786
6914
|
* 'https://www.googleapis.com/auth/googlehealth.location.readonly',
|
|
6787
6915
|
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.readonly',
|
|
6788
6916
|
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly',
|
|
@@ -6802,6 +6930,8 @@ export namespace health_v4beta {
|
|
|
6802
6930
|
*
|
|
6803
6931
|
* // Do the magic
|
|
6804
6932
|
* const res = await health.users.dataTypes.dataPoints.list({
|
|
6933
|
+
* // Optional. The data source family name to filter by. If empty, data points from all available data sources will be returned. Format: `users/me/dataSourceFamilies/{data_source_family\}` The supported values are: - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data from all available data sources. - `users/me/dataSourceFamilies/google-wearables` - Includes data from Google and Fitbit tracker devices (such as Fitbit trackers and Pixel Watch). Excludes manually logged data. - `users/me/dataSourceFamilies/google-sources` - Includes first-party Google data, such as data from tracker devices, manually logged data, and Health Connect. - `users/me/dataSourceFamilies/self-sources` - Includes only the data the calling client wrote through this API, that is, data points whose data source was registered through this API with the same OAuth client ID as the caller. Callers that were only granted write scopes for the requested data types may only read the data they wrote themselves: their requests are implicitly restricted to `self-sources`, and requesting any other data source family fails with `PERMISSION_DENIED`. If no data point matches the requested data source family, the response is an empty list rather than an error. Filtering by data source family is not supported for the `sleep`, `food` and `food-measurement-unit` data types, because the underlying listing implementation cannot restrict results by data source. Such requests fail with `INVALID_ARGUMENT` when the data source family is set explicitly, and with `PERMISSION_DENIED` when the restriction is only implied by the caller's scopes. For `sleep`, use ReconcileDataPoints instead.
|
|
6934
|
+
* dataSourceFamily: 'placeholder-value',
|
|
6805
6935
|
* // Optional. Filter expression following https://google.aip.dev/160. A time range (either physical or civil) can be specified. The supported filter fields are: - Interval start time: - Pattern: `{interval_data_type\}.interval.start_time` - Supported comparison operators: `\>=`, `<` - Timestamp literal expected in RFC-3339 format - Supported logical operators: `AND` - Example: - `steps.interval.start_time \>= "2023-11-24T00:00:00Z" AND steps.interval.start_time < "2023-11-25T00:00:00Z"` - `distance.interval.start_time \>= "2024-08-14T12:34:56Z"` - Interval civil start time: - Pattern: `{interval_data_type\}.interval.civil_start_time` - Supported comparison operators: `\>=`, `<` - Date with optional time literal expected in ISO 8601 `YYYY-MM-DD[THH:mm:ss]` format - Supported logical operators: `AND` - Example: - `steps.interval.civil_start_time \>= "2023-11-24" AND steps.interval.civil_start_time < "2023-11-25"` - `distance.interval.civil_start_time \>= "2024-08-14T12:34:56"` - Sample observation physical time: - Pattern: `{sample_data_type\}.sample_time.physical_time` - Supported comparison operators: `\>=`, `<` - Timestamp literal expected in RFC-3339 format - Supported logical operators: `AND` - Example: - `weight.sample_time.physical_time \>= "2023-11-24T00:00:00Z" AND weight.sample_time.physical_time < "2023-11-25T00:00:00Z"` - `weight.sample_time.physical_time \>= "2024-08-14T12:34:56Z"` - Sample observation civil time: - Pattern: `{sample_data_type\}.sample_time.civil_time` - Supported comparison operators: `\>=`, `<` - Date with optional time literal expected in ISO 8601 `YYYY-MM-DD[THH:mm:ss]` format - Supported logical operators: `AND` - Example: - `weight.sample_time.civil_time \>= "2023-11-24" AND weight.sample_time.civil_time < "2023-11-25"` - `weight.sample_time.civil_time \>= "2024-08-14T12:34:56"` - Daily summary date: - Pattern: `{daily_summary_data_type\}.date` - Supported comparison operators: `\>=`, `<` - Date literal expected in ISO 8601 `YYYY-MM-DD` format - Supported logical operators: `AND` - Example: - `daily_heart_rate_variability.date < "2024-08-15"` - Session civil start time (**Excluding Sleep and ECG**): - Pattern: `{session_data_type\}.interval.civil_start_time` - Supported comparison operators: `\>=`, `<` - Date with optional time literal expected in ISO 8601 `YYYY-MM-DD[THH:mm:ss]` format - Supported logical operators: `AND` - Example: - `exercise.interval.civil_start_time \>= "2023-11-24" AND exercise.interval.civil_start_time < "2023-11-25"` - `exercise.interval.civil_start_time \>= "2024-08-14T12:34:56"` - Session start time (**ECG specific**): - Pattern: `electrocardiogram.interval.start_time` - Supported comparison operators: `\>=` - Timestamp literal expected in RFC-3339 format - Example: - `electrocardiogram.interval.start_time \>= "2024-08-14T12:34:56Z"` - Note: Only filtering by start time is supported for ECG. Filtering by end time (e.g., `electrocardiogram.interval.end_time`) is not supported. - Session end time (**Sleep specific**): - Pattern: `sleep.interval.end_time` - Supported comparison operators: `\>=`, `<` - Timestamp literal expected in RFC-3339 format - Supported logical operators: `AND`, `OR` - Example: - `sleep.interval.end_time \>= "2023-11-24T00:00:00Z" AND sleep.interval.end_time < "2023-11-25T00:00:00Z"` - Session civil end time (**Sleep specific**): - Pattern: `sleep.interval.civil_end_time` - Supported comparison operators: `\>=`, `<` - Date with optional time literal expected in ISO 8601 `YYYY-MM-DD[THH:mm:ss]` format - Supported logical operators: `AND`, `OR` - Example: - `sleep.interval.civil_end_time \>= "2023-11-24" AND sleep.interval.civil_end_time < "2023-11-25"` Data points in the response will be ordered by the interval start time in descending order.
|
|
6806
6936
|
* filter: 'placeholder-value',
|
|
6807
6937
|
* // Optional. The maximum number of data points to return. If unspecified, at most 1440 data points will be returned. The maximum page size is 10000; values above that will be truncated accordingly. For `exercise` and `sleep` the default page size is 25. The maximum page size for `exercise` and `sleep` is 25.
|
|
@@ -6999,6 +7129,8 @@ export namespace health_v4beta {
|
|
|
6999
7129
|
* // "respiratoryRateSleepSummary": {},
|
|
7000
7130
|
* // "runVo2Max": {},
|
|
7001
7131
|
* // "sedentaryPeriod": {},
|
|
7132
|
+
* // "skinTemperature": {},
|
|
7133
|
+
* // "skinTemperatureSensors": {},
|
|
7002
7134
|
* // "sleep": {},
|
|
7003
7135
|
* // "steps": {},
|
|
7004
7136
|
* // "swimLengthsData": {},
|
|
@@ -7137,8 +7269,10 @@ export namespace health_v4beta {
|
|
|
7137
7269
|
* scopes: [
|
|
7138
7270
|
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly',
|
|
7139
7271
|
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly',
|
|
7272
|
+
* 'https://www.googleapis.com/auth/googlehealth.ecg.readonly',
|
|
7140
7273
|
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly',
|
|
7141
7274
|
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly',
|
|
7275
|
+
* 'https://www.googleapis.com/auth/googlehealth.irn.readonly',
|
|
7142
7276
|
* 'https://www.googleapis.com/auth/googlehealth.location.readonly',
|
|
7143
7277
|
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.readonly',
|
|
7144
7278
|
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly',
|
|
@@ -7158,7 +7292,7 @@ export namespace health_v4beta {
|
|
|
7158
7292
|
*
|
|
7159
7293
|
* // Do the magic
|
|
7160
7294
|
* const res = await health.users.dataTypes.dataPoints.reconcile({
|
|
7161
|
-
* // Optional. The data source family name to reconcile. If empty, data points from all data sources will be reconciled. Format: `users/me/dataSourceFamilies/{data_source_family\}` - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data from all available data sources. - `users/me/dataSourceFamilies/google-wearables` - Includes data from Google and Fitbit tracker devices (such as Fitbit trackers and Pixel Watch). Excludes manually logged data. - `users/me/dataSourceFamilies/google-sources` - Includes first-party Google data, such as data from tracker devices, manually logged data, and Health Connect.
|
|
7295
|
+
* // Optional. The data source family name to reconcile. If empty, data points from all data sources will be reconciled. Format: `users/me/dataSourceFamilies/{data_source_family\}` - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data from all available data sources. - `users/me/dataSourceFamilies/google-wearables` - Includes data from Google and Fitbit tracker devices (such as Fitbit trackers and Pixel Watch). Excludes manually logged data. - `users/me/dataSourceFamilies/google-sources` - Includes first-party Google data, such as data from tracker devices, manually logged data, and Health Connect. - `users/me/dataSourceFamilies/self-sources` - Includes only the data the calling client wrote through this API, that is, data points whose data source was registered through this API with the same OAuth client ID as the caller. Callers that were only granted write scopes for the requested data type may only read the data they wrote themselves: their requests are implicitly restricted to `self-sources`, and requesting any other data source family fails with `PERMISSION_DENIED`. If no data point matches the requested data source family, the response is an empty list rather than an error.
|
|
7162
7296
|
* dataSourceFamily: 'placeholder-value',
|
|
7163
7297
|
* // Optional. Filter expression based on https://aip.dev/160. A time range, either physical or civil, can be specified. See the ListDataPointsRequest.filter for the supported fields and syntax.
|
|
7164
7298
|
* filter: 'placeholder-value',
|
|
@@ -7302,8 +7436,10 @@ export namespace health_v4beta {
|
|
|
7302
7436
|
* scopes: [
|
|
7303
7437
|
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly',
|
|
7304
7438
|
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly',
|
|
7439
|
+
* 'https://www.googleapis.com/auth/googlehealth.ecg.readonly',
|
|
7305
7440
|
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly',
|
|
7306
7441
|
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly',
|
|
7442
|
+
* 'https://www.googleapis.com/auth/googlehealth.irn.readonly',
|
|
7307
7443
|
* 'https://www.googleapis.com/auth/googlehealth.location.readonly',
|
|
7308
7444
|
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.readonly',
|
|
7309
7445
|
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly',
|
|
@@ -7496,6 +7632,10 @@ export namespace health_v4beta {
|
|
|
7496
7632
|
name?: string;
|
|
7497
7633
|
}
|
|
7498
7634
|
export interface Params$Resource$Users$Datatypes$Datapoints$List extends StandardParameters {
|
|
7635
|
+
/**
|
|
7636
|
+
* Optional. The data source family name to filter by. If empty, data points from all available data sources will be returned. Format: `users/me/dataSourceFamilies/{data_source_family\}` The supported values are: - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data from all available data sources. - `users/me/dataSourceFamilies/google-wearables` - Includes data from Google and Fitbit tracker devices (such as Fitbit trackers and Pixel Watch). Excludes manually logged data. - `users/me/dataSourceFamilies/google-sources` - Includes first-party Google data, such as data from tracker devices, manually logged data, and Health Connect. - `users/me/dataSourceFamilies/self-sources` - Includes only the data the calling client wrote through this API, that is, data points whose data source was registered through this API with the same OAuth client ID as the caller. Callers that were only granted write scopes for the requested data types may only read the data they wrote themselves: their requests are implicitly restricted to `self-sources`, and requesting any other data source family fails with `PERMISSION_DENIED`. If no data point matches the requested data source family, the response is an empty list rather than an error. Filtering by data source family is not supported for the `sleep`, `food` and `food-measurement-unit` data types, because the underlying listing implementation cannot restrict results by data source. Such requests fail with `INVALID_ARGUMENT` when the data source family is set explicitly, and with `PERMISSION_DENIED` when the restriction is only implied by the caller's scopes. For `sleep`, use ReconcileDataPoints instead.
|
|
7637
|
+
*/
|
|
7638
|
+
dataSourceFamily?: string;
|
|
7499
7639
|
/**
|
|
7500
7640
|
* Optional. Filter expression following https://google.aip.dev/160. A time range (either physical or civil) can be specified. The supported filter fields are: - Interval start time: - Pattern: `{interval_data_type\}.interval.start_time` - Supported comparison operators: `\>=`, `<` - Timestamp literal expected in RFC-3339 format - Supported logical operators: `AND` - Example: - `steps.interval.start_time \>= "2023-11-24T00:00:00Z" AND steps.interval.start_time < "2023-11-25T00:00:00Z"` - `distance.interval.start_time \>= "2024-08-14T12:34:56Z"` - Interval civil start time: - Pattern: `{interval_data_type\}.interval.civil_start_time` - Supported comparison operators: `\>=`, `<` - Date with optional time literal expected in ISO 8601 `YYYY-MM-DD[THH:mm:ss]` format - Supported logical operators: `AND` - Example: - `steps.interval.civil_start_time \>= "2023-11-24" AND steps.interval.civil_start_time < "2023-11-25"` - `distance.interval.civil_start_time \>= "2024-08-14T12:34:56"` - Sample observation physical time: - Pattern: `{sample_data_type\}.sample_time.physical_time` - Supported comparison operators: `\>=`, `<` - Timestamp literal expected in RFC-3339 format - Supported logical operators: `AND` - Example: - `weight.sample_time.physical_time \>= "2023-11-24T00:00:00Z" AND weight.sample_time.physical_time < "2023-11-25T00:00:00Z"` - `weight.sample_time.physical_time \>= "2024-08-14T12:34:56Z"` - Sample observation civil time: - Pattern: `{sample_data_type\}.sample_time.civil_time` - Supported comparison operators: `\>=`, `<` - Date with optional time literal expected in ISO 8601 `YYYY-MM-DD[THH:mm:ss]` format - Supported logical operators: `AND` - Example: - `weight.sample_time.civil_time \>= "2023-11-24" AND weight.sample_time.civil_time < "2023-11-25"` - `weight.sample_time.civil_time \>= "2024-08-14T12:34:56"` - Daily summary date: - Pattern: `{daily_summary_data_type\}.date` - Supported comparison operators: `\>=`, `<` - Date literal expected in ISO 8601 `YYYY-MM-DD` format - Supported logical operators: `AND` - Example: - `daily_heart_rate_variability.date < "2024-08-15"` - Session civil start time (**Excluding Sleep and ECG**): - Pattern: `{session_data_type\}.interval.civil_start_time` - Supported comparison operators: `\>=`, `<` - Date with optional time literal expected in ISO 8601 `YYYY-MM-DD[THH:mm:ss]` format - Supported logical operators: `AND` - Example: - `exercise.interval.civil_start_time \>= "2023-11-24" AND exercise.interval.civil_start_time < "2023-11-25"` - `exercise.interval.civil_start_time \>= "2024-08-14T12:34:56"` - Session start time (**ECG specific**): - Pattern: `electrocardiogram.interval.start_time` - Supported comparison operators: `\>=` - Timestamp literal expected in RFC-3339 format - Example: - `electrocardiogram.interval.start_time \>= "2024-08-14T12:34:56Z"` - Note: Only filtering by start time is supported for ECG. Filtering by end time (e.g., `electrocardiogram.interval.end_time`) is not supported. - Session end time (**Sleep specific**): - Pattern: `sleep.interval.end_time` - Supported comparison operators: `\>=`, `<` - Timestamp literal expected in RFC-3339 format - Supported logical operators: `AND`, `OR` - Example: - `sleep.interval.end_time \>= "2023-11-24T00:00:00Z" AND sleep.interval.end_time < "2023-11-25T00:00:00Z"` - Session civil end time (**Sleep specific**): - Pattern: `sleep.interval.civil_end_time` - Supported comparison operators: `\>=`, `<` - Date with optional time literal expected in ISO 8601 `YYYY-MM-DD[THH:mm:ss]` format - Supported logical operators: `AND`, `OR` - Example: - `sleep.interval.civil_end_time \>= "2023-11-24" AND sleep.interval.civil_end_time < "2023-11-25"` Data points in the response will be ordered by the interval start time in descending order.
|
|
7501
7641
|
*/
|
|
@@ -7526,7 +7666,7 @@ export namespace health_v4beta {
|
|
|
7526
7666
|
}
|
|
7527
7667
|
export interface Params$Resource$Users$Datatypes$Datapoints$Reconcile extends StandardParameters {
|
|
7528
7668
|
/**
|
|
7529
|
-
* Optional. The data source family name to reconcile. If empty, data points from all data sources will be reconciled. Format: `users/me/dataSourceFamilies/{data_source_family\}` - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data from all available data sources. - `users/me/dataSourceFamilies/google-wearables` - Includes data from Google and Fitbit tracker devices (such as Fitbit trackers and Pixel Watch). Excludes manually logged data. - `users/me/dataSourceFamilies/google-sources` - Includes first-party Google data, such as data from tracker devices, manually logged data, and Health Connect.
|
|
7669
|
+
* Optional. The data source family name to reconcile. If empty, data points from all data sources will be reconciled. Format: `users/me/dataSourceFamilies/{data_source_family\}` - `users/me/dataSourceFamilies/all-sources` - Default value. Includes data from all available data sources. - `users/me/dataSourceFamilies/google-wearables` - Includes data from Google and Fitbit tracker devices (such as Fitbit trackers and Pixel Watch). Excludes manually logged data. - `users/me/dataSourceFamilies/google-sources` - Includes first-party Google data, such as data from tracker devices, manually logged data, and Health Connect. - `users/me/dataSourceFamilies/self-sources` - Includes only the data the calling client wrote through this API, that is, data points whose data source was registered through this API with the same OAuth client ID as the caller. Callers that were only granted write scopes for the requested data type may only read the data they wrote themselves: their requests are implicitly restricted to `self-sources`, and requesting any other data source family fails with `PERMISSION_DENIED`. If no data point matches the requested data source family, the response is an empty list rather than an error.
|
|
7530
7670
|
*/
|
|
7531
7671
|
dataSourceFamily?: string;
|
|
7532
7672
|
/**
|