@googleapis/health 6.0.0 → 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 +14 -0
- package/build/index.js +0 -1
- package/build/index.js.map +1 -1
- 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/index.ts +0 -1
- package/package.json +1 -1
- package/tsconfig.build.json +10 -0
- package/v4.ts +49 -33
- package/v4beta.ts +173 -33
package/build/v4beta.d.ts
CHANGED
|
@@ -81,7 +81,7 @@ export declare namespace health_v4beta {
|
|
|
81
81
|
*/
|
|
82
82
|
interval?: Schema$ObservationTimeInterval;
|
|
83
83
|
/**
|
|
84
|
-
* Required. Energy burned during an activity, measured in kilocalories.
|
|
84
|
+
* Required. Energy burned during an activity, measured in kilocalories. Must be in the range `[0, 1000000]`.
|
|
85
85
|
*/
|
|
86
86
|
kcal?: number | null;
|
|
87
87
|
}
|
|
@@ -253,7 +253,7 @@ export declare namespace health_v4beta {
|
|
|
253
253
|
*/
|
|
254
254
|
export interface Schema$Altitude {
|
|
255
255
|
/**
|
|
256
|
-
* Required. Altitude gain in millimeters over the observed interval.
|
|
256
|
+
* Required. Altitude gain in millimeters over the observed interval. Must be in the range `[-1000000000, 1000000000]`.
|
|
257
257
|
*/
|
|
258
258
|
gainMillimeters?: string | null;
|
|
259
259
|
/**
|
|
@@ -314,7 +314,7 @@ export declare namespace health_v4beta {
|
|
|
314
314
|
*/
|
|
315
315
|
export interface Schema$BloodGlucose {
|
|
316
316
|
/**
|
|
317
|
-
* Required. Blood glucose level concentration in mg/dL.
|
|
317
|
+
* Required. Blood glucose level concentration in mg/dL. Must be in the range `[0, 900]`.
|
|
318
318
|
*/
|
|
319
319
|
bloodGlucoseMilligramsPerDeciliter?: number | null;
|
|
320
320
|
/**
|
|
@@ -356,7 +356,7 @@ export declare namespace health_v4beta {
|
|
|
356
356
|
*/
|
|
357
357
|
export interface Schema$BodyFat {
|
|
358
358
|
/**
|
|
359
|
-
* Required. Body fat percentage
|
|
359
|
+
* Required. Body fat percentage. Must be in the range `[0, 100]`.
|
|
360
360
|
*/
|
|
361
361
|
percentage?: number | null;
|
|
362
362
|
/**
|
|
@@ -438,7 +438,7 @@ export declare namespace health_v4beta {
|
|
|
438
438
|
*/
|
|
439
439
|
sampleTime?: Schema$ObservationSampleTime;
|
|
440
440
|
/**
|
|
441
|
-
* Required. The core body temperature in Celsius.
|
|
441
|
+
* Required. The core body temperature in Celsius. Must be in the range `[0, 100]`.
|
|
442
442
|
*/
|
|
443
443
|
temperatureCelsius?: number | null;
|
|
444
444
|
}
|
|
@@ -532,7 +532,7 @@ export declare namespace health_v4beta {
|
|
|
532
532
|
*/
|
|
533
533
|
export interface Schema$DailyOxygenSaturation {
|
|
534
534
|
/**
|
|
535
|
-
* Required. The average value of the oxygen saturation samples during the sleep.
|
|
535
|
+
* Required. The average value of the oxygen saturation samples during the sleep. Must be in the range `[0, 100]`.
|
|
536
536
|
*/
|
|
537
537
|
averagePercentage?: number | null;
|
|
538
538
|
/**
|
|
@@ -540,7 +540,7 @@ export declare namespace health_v4beta {
|
|
|
540
540
|
*/
|
|
541
541
|
date?: Schema$Date;
|
|
542
542
|
/**
|
|
543
|
-
* Required. The lower bound of the confidence interval of oxygen saturation samples during sleep.
|
|
543
|
+
* Required. The lower bound of the confidence interval of oxygen saturation samples during sleep. Must be in the range `[0, 100]`.
|
|
544
544
|
*/
|
|
545
545
|
lowerBoundPercentage?: number | null;
|
|
546
546
|
/**
|
|
@@ -548,7 +548,7 @@ export declare namespace health_v4beta {
|
|
|
548
548
|
*/
|
|
549
549
|
standardDeviationPercentage?: number | null;
|
|
550
550
|
/**
|
|
551
|
-
* Required. The upper bound of the confidence interval of oxygen saturation samples during sleep.
|
|
551
|
+
* Required. The upper bound of the confidence interval of oxygen saturation samples during sleep. Must be in the range `[0, 100]`.
|
|
552
552
|
*/
|
|
553
553
|
upperBoundPercentage?: number | null;
|
|
554
554
|
}
|
|
@@ -675,6 +675,10 @@ export declare namespace health_v4beta {
|
|
|
675
675
|
* 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.
|
|
676
676
|
*/
|
|
677
677
|
sedentaryPeriod?: Schema$SedentaryPeriodRollupValue;
|
|
678
|
+
/**
|
|
679
|
+
* Returned by default when rolling up data points from the `skin-temperature` data type.
|
|
680
|
+
*/
|
|
681
|
+
skinTemperature?: Schema$SkinTemperatureRollupValue;
|
|
678
682
|
/**
|
|
679
683
|
* Returned by default when rolling up data points from the `steps` data type, or when requested explicitly using the `steps` rollup type identifier.
|
|
680
684
|
*/
|
|
@@ -701,7 +705,7 @@ export declare namespace health_v4beta {
|
|
|
701
705
|
*/
|
|
702
706
|
export interface Schema$DailyRollUpDataPointsRequest {
|
|
703
707
|
/**
|
|
704
|
-
* 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.
|
|
708
|
+
* 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.
|
|
705
709
|
*/
|
|
706
710
|
dataSourceFamily?: string | null;
|
|
707
711
|
/**
|
|
@@ -768,7 +772,7 @@ export declare namespace health_v4beta {
|
|
|
768
772
|
*/
|
|
769
773
|
estimated?: boolean | null;
|
|
770
774
|
/**
|
|
771
|
-
* Required. Daily VO2 max value measured as in ml consumed oxygen / kg of body weight / min.
|
|
775
|
+
* Required. Daily VO2 max value measured as in ml consumed oxygen / kg of body weight / min. Must be in the range `[0, 100]`.
|
|
772
776
|
*/
|
|
773
777
|
vo2Max?: number | null;
|
|
774
778
|
/**
|
|
@@ -928,6 +932,14 @@ export declare namespace health_v4beta {
|
|
|
928
932
|
* Optional. Data for points in the `sedentary-period` interval data type collection.
|
|
929
933
|
*/
|
|
930
934
|
sedentaryPeriod?: Schema$SedentaryPeriod;
|
|
935
|
+
/**
|
|
936
|
+
* Optional. Data for points in the `skin-temperature` sample data type collection.
|
|
937
|
+
*/
|
|
938
|
+
skinTemperature?: Schema$SkinTemperature;
|
|
939
|
+
/**
|
|
940
|
+
* Optional. Data for points in the `skin-temperature-sensors` sample data type collection.
|
|
941
|
+
*/
|
|
942
|
+
skinTemperatureSensors?: Schema$SkinTemperatureSensors;
|
|
931
943
|
/**
|
|
932
944
|
* Optional. Data for points in the `sleep` session data type collection.
|
|
933
945
|
*/
|
|
@@ -1062,7 +1074,7 @@ export declare namespace health_v4beta {
|
|
|
1062
1074
|
*/
|
|
1063
1075
|
interval?: Schema$ObservationTimeInterval;
|
|
1064
1076
|
/**
|
|
1065
|
-
* Required. Distance in millimeters over the observed interval.
|
|
1077
|
+
* Required. Distance in millimeters over the observed interval. Must be in the range `[0, 1000000000]`.
|
|
1066
1078
|
*/
|
|
1067
1079
|
millimeters?: string | null;
|
|
1068
1080
|
}
|
|
@@ -1135,7 +1147,7 @@ export declare namespace health_v4beta {
|
|
|
1135
1147
|
*/
|
|
1136
1148
|
export interface Schema$EnergyQuantity {
|
|
1137
1149
|
/**
|
|
1138
|
-
* Required. The energy value in kilocalories.
|
|
1150
|
+
* Required. The energy value in kilocalories. Must be in the range `[0, 100000]`.
|
|
1139
1151
|
*/
|
|
1140
1152
|
kcal?: number | null;
|
|
1141
1153
|
/**
|
|
@@ -1253,7 +1265,7 @@ export declare namespace health_v4beta {
|
|
|
1253
1265
|
*/
|
|
1254
1266
|
export interface Schema$Floors {
|
|
1255
1267
|
/**
|
|
1256
|
-
* Required. Number of floors in the recorded interval
|
|
1268
|
+
* Required. Number of floors in the recorded interval. Must be in the range `[0, 1000000]`.
|
|
1257
1269
|
*/
|
|
1258
1270
|
count?: string | null;
|
|
1259
1271
|
/**
|
|
@@ -1453,7 +1465,7 @@ export declare namespace health_v4beta {
|
|
|
1453
1465
|
*/
|
|
1454
1466
|
export interface Schema$HeartRate {
|
|
1455
1467
|
/**
|
|
1456
|
-
* Required. The heart rate value in beats per minute.
|
|
1468
|
+
* Required. The heart rate value in beats per minute. Must be in the range `[1, 300]`.
|
|
1457
1469
|
*/
|
|
1458
1470
|
beatsPerMinute?: string | null;
|
|
1459
1471
|
/**
|
|
@@ -1500,11 +1512,11 @@ export declare namespace health_v4beta {
|
|
|
1500
1512
|
*/
|
|
1501
1513
|
export interface Schema$HeartRateVariability {
|
|
1502
1514
|
/**
|
|
1503
|
-
* Optional.
|
|
1515
|
+
* Optional. Additional information about the heart rate variability measurement.
|
|
1504
1516
|
*/
|
|
1505
1517
|
metadata?: Schema$HeartRateVariabilityMetadata;
|
|
1506
1518
|
/**
|
|
1507
|
-
* Optional. The root mean square of successive differences between normal heartbeats. This is a measure of heart rate variability used by Google Health.
|
|
1519
|
+
* 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]`.
|
|
1508
1520
|
*/
|
|
1509
1521
|
rootMeanSquareOfSuccessiveDifferencesMilliseconds?: number | null;
|
|
1510
1522
|
/**
|
|
@@ -1564,7 +1576,7 @@ export declare namespace health_v4beta {
|
|
|
1564
1576
|
*/
|
|
1565
1577
|
export interface Schema$Height {
|
|
1566
1578
|
/**
|
|
1567
|
-
* Required. Height of the user in millimeters.
|
|
1579
|
+
* Required. Height of the user in millimeters. Must be in the range `[0, 3000]`.
|
|
1568
1580
|
*/
|
|
1569
1581
|
heightMillimeters?: string | null;
|
|
1570
1582
|
/**
|
|
@@ -2131,7 +2143,7 @@ export declare namespace health_v4beta {
|
|
|
2131
2143
|
*/
|
|
2132
2144
|
export interface Schema$OxygenSaturation {
|
|
2133
2145
|
/**
|
|
2134
|
-
* Required. The oxygen saturation percentage.
|
|
2146
|
+
* Required. The oxygen saturation percentage. Must be in the range `[0, 100]`.
|
|
2135
2147
|
*/
|
|
2136
2148
|
percentage?: number | null;
|
|
2137
2149
|
/**
|
|
@@ -2197,7 +2209,7 @@ export declare namespace health_v4beta {
|
|
|
2197
2209
|
*/
|
|
2198
2210
|
membershipStartDate?: Schema$Date;
|
|
2199
2211
|
/**
|
|
2200
|
-
* 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.
|
|
2212
|
+
* 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.
|
|
2201
2213
|
*/
|
|
2202
2214
|
name?: string | null;
|
|
2203
2215
|
/**
|
|
@@ -2342,6 +2354,14 @@ export declare namespace health_v4beta {
|
|
|
2342
2354
|
* Data for points in the `sedentary-period` interval data type collection.
|
|
2343
2355
|
*/
|
|
2344
2356
|
sedentaryPeriod?: Schema$SedentaryPeriod;
|
|
2357
|
+
/**
|
|
2358
|
+
* Data for points in the `skin-temperature` sample data type collection.
|
|
2359
|
+
*/
|
|
2360
|
+
skinTemperature?: Schema$SkinTemperature;
|
|
2361
|
+
/**
|
|
2362
|
+
* Data for points in the `skin-temperature-sensors` sample data type collection.
|
|
2363
|
+
*/
|
|
2364
|
+
skinTemperatureSensors?: Schema$SkinTemperatureSensors;
|
|
2345
2365
|
/**
|
|
2346
2366
|
* Data for points in the `sleep` session data type collection.
|
|
2347
2367
|
*/
|
|
@@ -2494,6 +2514,10 @@ export declare namespace health_v4beta {
|
|
|
2494
2514
|
* 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.
|
|
2495
2515
|
*/
|
|
2496
2516
|
sedentaryPeriod?: Schema$SedentaryPeriodRollupValue;
|
|
2517
|
+
/**
|
|
2518
|
+
* Returned by default when rolling up data points from the `skin-temperature` data type.
|
|
2519
|
+
*/
|
|
2520
|
+
skinTemperature?: Schema$SkinTemperatureRollupValue;
|
|
2497
2521
|
/**
|
|
2498
2522
|
* Start time of the window this value aggregates over
|
|
2499
2523
|
*/
|
|
@@ -2524,7 +2548,7 @@ export declare namespace health_v4beta {
|
|
|
2524
2548
|
*/
|
|
2525
2549
|
export interface Schema$RollUpDataPointsRequest {
|
|
2526
2550
|
/**
|
|
2527
|
-
* 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.
|
|
2551
|
+
* 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.
|
|
2528
2552
|
*/
|
|
2529
2553
|
dataSourceFamily?: string | null;
|
|
2530
2554
|
/**
|
|
@@ -2562,7 +2586,7 @@ export declare namespace health_v4beta {
|
|
|
2562
2586
|
*/
|
|
2563
2587
|
export interface Schema$RunVO2Max {
|
|
2564
2588
|
/**
|
|
2565
|
-
* Required. Run VO2 max value in ml/kg/min.
|
|
2589
|
+
* Required. Run VO2 max value in ml/kg/min. Must be in the range `[0, 100]`.
|
|
2566
2590
|
*/
|
|
2567
2591
|
runVo2Max?: number | null;
|
|
2568
2592
|
/**
|
|
@@ -2605,6 +2629,36 @@ export declare namespace health_v4beta {
|
|
|
2605
2629
|
*/
|
|
2606
2630
|
durationSum?: string | null;
|
|
2607
2631
|
}
|
|
2632
|
+
/**
|
|
2633
|
+
* Individual sensor reading and metadata.
|
|
2634
|
+
*/
|
|
2635
|
+
export interface Schema$SensorData {
|
|
2636
|
+
/**
|
|
2637
|
+
* Optional. Metadata for the sensor reading.
|
|
2638
|
+
*/
|
|
2639
|
+
metadata?: Schema$SensorMetadata;
|
|
2640
|
+
/**
|
|
2641
|
+
* Required. The temperature reading in Celsius.
|
|
2642
|
+
*/
|
|
2643
|
+
temperatureCelsius?: number | null;
|
|
2644
|
+
}
|
|
2645
|
+
/**
|
|
2646
|
+
* Metadata for the sensor measurement.
|
|
2647
|
+
*/
|
|
2648
|
+
export interface Schema$SensorMetadata {
|
|
2649
|
+
/**
|
|
2650
|
+
* Optional. The location of the sensor measurement.
|
|
2651
|
+
*/
|
|
2652
|
+
measurementLocation?: string | null;
|
|
2653
|
+
/**
|
|
2654
|
+
* Optional. The motion state of the sensor measurement.
|
|
2655
|
+
*/
|
|
2656
|
+
measurementState?: string | null;
|
|
2657
|
+
/**
|
|
2658
|
+
* Optional. The type of the sensor.
|
|
2659
|
+
*/
|
|
2660
|
+
sensorType?: string | null;
|
|
2661
|
+
}
|
|
2608
2662
|
/**
|
|
2609
2663
|
* Represents different properties and information about the serving of a specific food.
|
|
2610
2664
|
*/
|
|
@@ -2680,7 +2734,7 @@ export declare namespace health_v4beta {
|
|
|
2680
2734
|
*/
|
|
2681
2735
|
languageLocale?: string | null;
|
|
2682
2736
|
/**
|
|
2683
|
-
* 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.
|
|
2737
|
+
* 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.
|
|
2684
2738
|
*/
|
|
2685
2739
|
name?: string | null;
|
|
2686
2740
|
/**
|
|
@@ -2716,6 +2770,70 @@ export declare namespace health_v4beta {
|
|
|
2716
2770
|
*/
|
|
2717
2771
|
weightUnit?: string | null;
|
|
2718
2772
|
}
|
|
2773
|
+
/**
|
|
2774
|
+
* ////////////////////////////////////////////////////////////////////////// SkinTemperature ////////////////////////////////////////////////////////////////////////// Skin temperature measurement.
|
|
2775
|
+
*/
|
|
2776
|
+
export interface Schema$SkinTemperature {
|
|
2777
|
+
/**
|
|
2778
|
+
* Required. The baseline skin temperature in Celsius. Must be in the range `[0, 100]`.
|
|
2779
|
+
*/
|
|
2780
|
+
baselineTemperatureCelsius?: number | null;
|
|
2781
|
+
/**
|
|
2782
|
+
* Optional. Metadata for the skin temperature measurement.
|
|
2783
|
+
*/
|
|
2784
|
+
metadata?: Schema$SkinTemperatureMetadata;
|
|
2785
|
+
/**
|
|
2786
|
+
* Required. The time at which skin temperature was measured.
|
|
2787
|
+
*/
|
|
2788
|
+
sampleTime?: Schema$ObservationSampleTime;
|
|
2789
|
+
/**
|
|
2790
|
+
* Required. The skin temperature in Celsius. Must be in the range `[0, 100]`.
|
|
2791
|
+
*/
|
|
2792
|
+
temperatureCelsius?: number | null;
|
|
2793
|
+
}
|
|
2794
|
+
/**
|
|
2795
|
+
* Metadata for the skin temperature measurement.
|
|
2796
|
+
*/
|
|
2797
|
+
export interface Schema$SkinTemperatureMetadata {
|
|
2798
|
+
/**
|
|
2799
|
+
* Optional. The location of the skin temperature measurement.
|
|
2800
|
+
*/
|
|
2801
|
+
measurementLocation?: string | null;
|
|
2802
|
+
/**
|
|
2803
|
+
* Optional. The motion state of the skin temperature measurement.
|
|
2804
|
+
*/
|
|
2805
|
+
measurementState?: string | null;
|
|
2806
|
+
}
|
|
2807
|
+
/**
|
|
2808
|
+
* Represents the result of the rollup of the skin temperature data type.
|
|
2809
|
+
*/
|
|
2810
|
+
export interface Schema$SkinTemperatureRollupValue {
|
|
2811
|
+
/**
|
|
2812
|
+
* Average skin temperature in Celsius.
|
|
2813
|
+
*/
|
|
2814
|
+
temperatureCelsiusAvg?: number | null;
|
|
2815
|
+
/**
|
|
2816
|
+
* Maximum skin temperature in Celsius.
|
|
2817
|
+
*/
|
|
2818
|
+
temperatureCelsiusMax?: number | null;
|
|
2819
|
+
/**
|
|
2820
|
+
* Minimum skin temperature in Celsius.
|
|
2821
|
+
*/
|
|
2822
|
+
temperatureCelsiusMin?: number | null;
|
|
2823
|
+
}
|
|
2824
|
+
/**
|
|
2825
|
+
* Skin temperature sensor data containing multi-sensor readings.
|
|
2826
|
+
*/
|
|
2827
|
+
export interface Schema$SkinTemperatureSensors {
|
|
2828
|
+
/**
|
|
2829
|
+
* Required. The observation sample time.
|
|
2830
|
+
*/
|
|
2831
|
+
sampleTime?: Schema$ObservationSampleTime;
|
|
2832
|
+
/**
|
|
2833
|
+
* Required. Repeated sensor data readings for this sample.
|
|
2834
|
+
*/
|
|
2835
|
+
sensorData?: Schema$SensorData[];
|
|
2836
|
+
}
|
|
2719
2837
|
/**
|
|
2720
2838
|
* A sleep session possibly including stages.
|
|
2721
2839
|
*/
|
|
@@ -2922,7 +3040,7 @@ export declare namespace health_v4beta {
|
|
|
2922
3040
|
*/
|
|
2923
3041
|
export interface Schema$Steps {
|
|
2924
3042
|
/**
|
|
2925
|
-
* Required. Number of steps in the recorded interval.
|
|
3043
|
+
* Required. Number of steps in the recorded interval. Must be in the range `[0, 1000000]`.
|
|
2926
3044
|
*/
|
|
2927
3045
|
count?: string | null;
|
|
2928
3046
|
/**
|
|
@@ -3153,7 +3271,7 @@ export declare namespace health_v4beta {
|
|
|
3153
3271
|
*/
|
|
3154
3272
|
sampleTime?: Schema$ObservationSampleTime;
|
|
3155
3273
|
/**
|
|
3156
|
-
* Required. VO2 max value measured as in ml consumed oxygen / kg of body weight / min.
|
|
3274
|
+
* Required. VO2 max value measured as in ml consumed oxygen / kg of body weight / min. Must be in the range `[0, 100]`.
|
|
3157
3275
|
*/
|
|
3158
3276
|
vo2Max?: number | null;
|
|
3159
3277
|
}
|
|
@@ -3162,7 +3280,7 @@ export declare namespace health_v4beta {
|
|
|
3162
3280
|
*/
|
|
3163
3281
|
export interface Schema$VolumeQuantity {
|
|
3164
3282
|
/**
|
|
3165
|
-
* Required. Value representing the volume in milliliters.
|
|
3283
|
+
* Required. Value representing the volume in milliliters. Must be in the range `[0, 100000]`.
|
|
3166
3284
|
*/
|
|
3167
3285
|
milliliters?: number | null;
|
|
3168
3286
|
/**
|
|
@@ -3196,7 +3314,7 @@ export declare namespace health_v4beta {
|
|
|
3196
3314
|
*/
|
|
3197
3315
|
sampleTime?: Schema$ObservationSampleTime;
|
|
3198
3316
|
/**
|
|
3199
|
-
* Required. Weight of a user in grams.
|
|
3317
|
+
* Required. Weight of a user in grams. Must be in the range `[0, 1000000]`.
|
|
3200
3318
|
*/
|
|
3201
3319
|
weightGrams?: number | null;
|
|
3202
3320
|
}
|
|
@@ -3205,7 +3323,7 @@ export declare namespace health_v4beta {
|
|
|
3205
3323
|
*/
|
|
3206
3324
|
export interface Schema$WeightQuantity {
|
|
3207
3325
|
/**
|
|
3208
|
-
* Required. The weight value in grams.
|
|
3326
|
+
* Required. The weight value in grams. Must be in the range `[0, 100000]`.
|
|
3209
3327
|
*/
|
|
3210
3328
|
grams?: number | null;
|
|
3211
3329
|
/**
|
|
@@ -4395,7 +4513,7 @@ export declare namespace health_v4beta {
|
|
|
4395
4513
|
*
|
|
4396
4514
|
* // Do the magic
|
|
4397
4515
|
* const res = await health.users.updateProfile({
|
|
4398
|
-
* // 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.
|
|
4516
|
+
* // 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.
|
|
4399
4517
|
* name: 'users/my-user/profile',
|
|
4400
4518
|
* // Optional. The list of fields to be updated.
|
|
4401
4519
|
* updateMask: 'placeholder-value',
|
|
@@ -4477,7 +4595,7 @@ export declare namespace health_v4beta {
|
|
|
4477
4595
|
*
|
|
4478
4596
|
* // Do the magic
|
|
4479
4597
|
* const res = await health.users.updateSettings({
|
|
4480
|
-
* // 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.
|
|
4598
|
+
* // 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.
|
|
4481
4599
|
* name: 'users/my-user/settings',
|
|
4482
4600
|
* // Optional. The list of fields to be updated.
|
|
4483
4601
|
* updateMask: 'placeholder-value',
|
|
@@ -4571,7 +4689,7 @@ export declare namespace health_v4beta {
|
|
|
4571
4689
|
}
|
|
4572
4690
|
export interface Params$Resource$Users$Updateprofile extends StandardParameters {
|
|
4573
4691
|
/**
|
|
4574
|
-
* 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.
|
|
4692
|
+
* 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.
|
|
4575
4693
|
*/
|
|
4576
4694
|
name?: string;
|
|
4577
4695
|
/**
|
|
@@ -4585,7 +4703,7 @@ export declare namespace health_v4beta {
|
|
|
4585
4703
|
}
|
|
4586
4704
|
export interface Params$Resource$Users$Updatesettings extends StandardParameters {
|
|
4587
4705
|
/**
|
|
4588
|
-
* 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.
|
|
4706
|
+
* 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.
|
|
4589
4707
|
*/
|
|
4590
4708
|
name?: string;
|
|
4591
4709
|
/**
|
|
@@ -4768,6 +4886,8 @@ export declare namespace health_v4beta {
|
|
|
4768
4886
|
* // "respiratoryRateSleepSummary": {},
|
|
4769
4887
|
* // "runVo2Max": {},
|
|
4770
4888
|
* // "sedentaryPeriod": {},
|
|
4889
|
+
* // "skinTemperature": {},
|
|
4890
|
+
* // "skinTemperatureSensors": {},
|
|
4771
4891
|
* // "sleep": {},
|
|
4772
4892
|
* // "steps": {},
|
|
4773
4893
|
* // "swimLengthsData": {},
|
|
@@ -4833,8 +4953,10 @@ export declare namespace health_v4beta {
|
|
|
4833
4953
|
* scopes: [
|
|
4834
4954
|
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly',
|
|
4835
4955
|
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly',
|
|
4956
|
+
* 'https://www.googleapis.com/auth/googlehealth.ecg.readonly',
|
|
4836
4957
|
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly',
|
|
4837
4958
|
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly',
|
|
4959
|
+
* 'https://www.googleapis.com/auth/googlehealth.irn.readonly',
|
|
4838
4960
|
* 'https://www.googleapis.com/auth/googlehealth.location.readonly',
|
|
4839
4961
|
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.readonly',
|
|
4840
4962
|
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly',
|
|
@@ -4985,8 +5107,10 @@ export declare namespace health_v4beta {
|
|
|
4985
5107
|
* scopes: [
|
|
4986
5108
|
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly',
|
|
4987
5109
|
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly',
|
|
5110
|
+
* 'https://www.googleapis.com/auth/googlehealth.ecg.readonly',
|
|
4988
5111
|
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly',
|
|
4989
5112
|
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly',
|
|
5113
|
+
* 'https://www.googleapis.com/auth/googlehealth.irn.readonly',
|
|
4990
5114
|
* 'https://www.googleapis.com/auth/googlehealth.location.readonly',
|
|
4991
5115
|
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.readonly',
|
|
4992
5116
|
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly',
|
|
@@ -5050,6 +5174,8 @@ export declare namespace health_v4beta {
|
|
|
5050
5174
|
* // "respiratoryRateSleepSummary": {},
|
|
5051
5175
|
* // "runVo2Max": {},
|
|
5052
5176
|
* // "sedentaryPeriod": {},
|
|
5177
|
+
* // "skinTemperature": {},
|
|
5178
|
+
* // "skinTemperatureSensors": {},
|
|
5053
5179
|
* // "sleep": {},
|
|
5054
5180
|
* // "steps": {},
|
|
5055
5181
|
* // "swimLengthsData": {},
|
|
@@ -5103,8 +5229,10 @@ export declare namespace health_v4beta {
|
|
|
5103
5229
|
* scopes: [
|
|
5104
5230
|
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly',
|
|
5105
5231
|
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly',
|
|
5232
|
+
* 'https://www.googleapis.com/auth/googlehealth.ecg.readonly',
|
|
5106
5233
|
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly',
|
|
5107
5234
|
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly',
|
|
5235
|
+
* 'https://www.googleapis.com/auth/googlehealth.irn.readonly',
|
|
5108
5236
|
* 'https://www.googleapis.com/auth/googlehealth.location.readonly',
|
|
5109
5237
|
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.readonly',
|
|
5110
5238
|
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly',
|
|
@@ -5124,6 +5252,8 @@ export declare namespace health_v4beta {
|
|
|
5124
5252
|
*
|
|
5125
5253
|
* // Do the magic
|
|
5126
5254
|
* const res = await health.users.dataTypes.dataPoints.list({
|
|
5255
|
+
* // 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.
|
|
5256
|
+
* dataSourceFamily: 'placeholder-value',
|
|
5127
5257
|
* // 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.
|
|
5128
5258
|
* filter: 'placeholder-value',
|
|
5129
5259
|
* // 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.
|
|
@@ -5243,6 +5373,8 @@ export declare namespace health_v4beta {
|
|
|
5243
5373
|
* // "respiratoryRateSleepSummary": {},
|
|
5244
5374
|
* // "runVo2Max": {},
|
|
5245
5375
|
* // "sedentaryPeriod": {},
|
|
5376
|
+
* // "skinTemperature": {},
|
|
5377
|
+
* // "skinTemperatureSensors": {},
|
|
5246
5378
|
* // "sleep": {},
|
|
5247
5379
|
* // "steps": {},
|
|
5248
5380
|
* // "swimLengthsData": {},
|
|
@@ -5308,8 +5440,10 @@ export declare namespace health_v4beta {
|
|
|
5308
5440
|
* scopes: [
|
|
5309
5441
|
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly',
|
|
5310
5442
|
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly',
|
|
5443
|
+
* 'https://www.googleapis.com/auth/googlehealth.ecg.readonly',
|
|
5311
5444
|
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly',
|
|
5312
5445
|
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly',
|
|
5446
|
+
* 'https://www.googleapis.com/auth/googlehealth.irn.readonly',
|
|
5313
5447
|
* 'https://www.googleapis.com/auth/googlehealth.location.readonly',
|
|
5314
5448
|
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.readonly',
|
|
5315
5449
|
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly',
|
|
@@ -5329,7 +5463,7 @@ export declare namespace health_v4beta {
|
|
|
5329
5463
|
*
|
|
5330
5464
|
* // Do the magic
|
|
5331
5465
|
* const res = await health.users.dataTypes.dataPoints.reconcile({
|
|
5332
|
-
* // 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.
|
|
5466
|
+
* // 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.
|
|
5333
5467
|
* dataSourceFamily: 'placeholder-value',
|
|
5334
5468
|
* // 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.
|
|
5335
5469
|
* filter: 'placeholder-value',
|
|
@@ -5392,8 +5526,10 @@ export declare namespace health_v4beta {
|
|
|
5392
5526
|
* scopes: [
|
|
5393
5527
|
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly',
|
|
5394
5528
|
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly',
|
|
5529
|
+
* 'https://www.googleapis.com/auth/googlehealth.ecg.readonly',
|
|
5395
5530
|
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly',
|
|
5396
5531
|
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly',
|
|
5532
|
+
* 'https://www.googleapis.com/auth/googlehealth.irn.readonly',
|
|
5397
5533
|
* 'https://www.googleapis.com/auth/googlehealth.location.readonly',
|
|
5398
5534
|
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.readonly',
|
|
5399
5535
|
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly',
|
|
@@ -5503,6 +5639,10 @@ export declare namespace health_v4beta {
|
|
|
5503
5639
|
name?: string;
|
|
5504
5640
|
}
|
|
5505
5641
|
export interface Params$Resource$Users$Datatypes$Datapoints$List extends StandardParameters {
|
|
5642
|
+
/**
|
|
5643
|
+
* 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.
|
|
5644
|
+
*/
|
|
5645
|
+
dataSourceFamily?: string;
|
|
5506
5646
|
/**
|
|
5507
5647
|
* 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.
|
|
5508
5648
|
*/
|
|
@@ -5532,7 +5672,7 @@ export declare namespace health_v4beta {
|
|
|
5532
5672
|
}
|
|
5533
5673
|
export interface Params$Resource$Users$Datatypes$Datapoints$Reconcile extends StandardParameters {
|
|
5534
5674
|
/**
|
|
5535
|
-
* 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.
|
|
5675
|
+
* 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.
|
|
5536
5676
|
*/
|
|
5537
5677
|
dataSourceFamily?: string;
|
|
5538
5678
|
/**
|