@googleapis/health 2.0.0 → 3.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/v4.ts CHANGED
@@ -113,6 +113,7 @@ export namespace health_v4 {
113
113
  export class Health {
114
114
  context: APIRequestContext;
115
115
  projects: Resource$Projects;
116
+ shl: Resource$Shl;
116
117
  users: Resource$Users;
117
118
 
118
119
  constructor(options: GlobalOptions, google?: GoogleConfigurable) {
@@ -122,6 +123,7 @@ export namespace health_v4 {
122
123
  };
123
124
 
124
125
  this.projects = new Resource$Projects(this.context);
126
+ this.shl = new Resource$Shl(this.context);
125
127
  this.users = new Resource$Users(this.context);
126
128
  }
127
129
  }
@@ -755,7 +757,7 @@ export namespace health_v4 {
755
757
  */
756
758
  export interface Schema$DailyRollUpDataPointsRequest {
757
759
  /**
758
- * 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 - `users/me/dataSourceFamilies/google-wearables` - tracker devices - `users/me/dataSourceFamilies/google-sources` - Google first party sources
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.
759
761
  */
760
762
  dataSourceFamily?: string | null;
761
763
  /**
@@ -947,13 +949,25 @@ export namespace health_v4 {
947
949
  */
948
950
  irregularRhythmNotification?: Schema$IrregularRhythmNotification;
949
951
  /**
950
- * Identifier. Data point name, only supported for the subset of identifiable data types. For the majority of the data types, individual data points do not need to be identified and this field would be empty. Format: `users/{user\}/dataTypes/{data_type\}/dataPoints/{data_point\}` Example: `users/abcd1234/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The `{user\}` ID is a system-generated identifier, as described in Identity.health_user_id. The `{data_type\}` ID corresponds to the kebab-case version of the field names in the DataPoint data union field, e.g. `total-calories` for the `total_calories` field. The `{data_point\}` ID can be client-provided or system-generated. If client-provided, it must be a string of 4-63 characters, containing only lowercase letters, numbers, and hyphens.
952
+ * Optional. Data for points in the `menstrual-period` interval data type collection.
953
+ */
954
+ menstrualPeriod?: Schema$MenstrualPeriod;
955
+ /**
956
+ * Optional. Data for points in the `moods` sample data type collection.
957
+ */
958
+ moods?: Schema$Moods;
959
+ /**
960
+ * Identifier. Data point name, only supported for the subset of identifiable data types. For the majority of the data types, individual data points do not need to be identified and this field would be empty. Format: `users/{user\}/dataTypes/{data_type\}/dataPoints/{data_point\}` Example: `users/abcd1234/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The `{user\}` ID is a system-generated identifier, as described in Identity.health_user_id. The `{data_type\}` ID corresponds to the kebab-case version of the field names in the DataPoint data union field, e.g. `heart-rate` for the `heart_rate` field. The `{data_point\}` ID can be client-provided or system-generated. If client-provided, it must be a string of 4-63 characters, containing only lowercase letters, numbers, and hyphens.
951
961
  */
952
962
  name?: string | null;
953
963
  /**
954
964
  * Optional. Data for points in the `nutrition-log` session data type collection.
955
965
  */
956
966
  nutritionLog?: Schema$NutritionLog;
967
+ /**
968
+ * Optional. Data for points in the `ovulation-test` sample data type collection.
969
+ */
970
+ ovulationTest?: Schema$OvulationTest;
957
971
  /**
958
972
  * Optional. Data for points in the `oxygen-saturation` sample data type collection.
959
973
  */
@@ -982,6 +996,10 @@ export namespace health_v4 {
982
996
  * Optional. Data for points in the `swim-lengths-data` interval data type collection.
983
997
  */
984
998
  swimLengthsData?: Schema$SwimLengthsData;
999
+ /**
1000
+ * Optional. Data for points in the `symptoms` sample data type collection.
1001
+ */
1002
+ symptoms?: Schema$Symptoms;
985
1003
  /**
986
1004
  * Optional. Data for points in the `time-in-heart-rate-zone` interval data type collection.
987
1005
  */
@@ -1155,7 +1173,7 @@ export namespace health_v4 {
1155
1173
  */
1156
1174
  export interface Schema$Empty {}
1157
1175
  /**
1158
- * Authorization mechanism for a subscriber endpoint. For all requests sent by the Webhooks service, the JSON payload is cryptographically signed. The signature is delivered in the `X-HEALTHAPI-SIGNATURE` HTTP header. This is an ECDSA (NIST P256) signature of the JSON payload. Clients must verify this signature using Google Health API's public key to confirm the payload was sent by the Health API.
1176
+ * Authorization mechanism for a subscriber endpoint. For all requests sent by the Webhooks service, the JSON payload is cryptographically signed. The signature is delivered in the `GOOGLE-HEALTH-API-SIGNATURE` HTTP header. This is an ECDSA (NIST P256) signature of the JSON payload. Clients must verify this signature using Google Health API's public key to confirm the payload was sent by the Health API.
1159
1177
  */
1160
1178
  export interface Schema$EndpointAuthorization {
1161
1179
  /**
@@ -1172,7 +1190,7 @@ export namespace health_v4 {
1172
1190
  */
1173
1191
  export interface Schema$EnergyQuantity {
1174
1192
  /**
1175
- * Required. Value representing the energy in kilocalories.
1193
+ * Required. The energy value in kilocalories.
1176
1194
  */
1177
1195
  kcal?: number | null;
1178
1196
  /**
@@ -1206,7 +1224,7 @@ export namespace health_v4 {
1206
1224
  */
1207
1225
  createTime?: string | null;
1208
1226
  /**
1209
- * Required. Exercise display name.
1227
+ * Required. The localized, human-readable name of the exercise. For all exercise types other than `OTHER`, the system ignores client input and overrides this field with a generated name based on `exercise_type` (e.g., "Walking" for `WALKING`). If `exercise_type` is `OTHER`, this field can contain the user's custom, free-form display name.
1210
1228
  */
1211
1229
  displayName?: string | null;
1212
1230
  /**
@@ -1419,6 +1437,15 @@ export namespace health_v4 {
1419
1437
  */
1420
1438
  name?: string | null;
1421
1439
  }
1440
+ /**
1441
+ * Represents a user in the Google Health API. It matches the parent resource of collections owned by the user. Clients currently do not need to interact with this resource directly.
1442
+ */
1443
+ export interface Schema$GoogleDevicesandservicesHealthV4User {
1444
+ /**
1445
+ * Identifier. The resource name of the user. The `{user\}` ID is a system-generated identifier, as described in Identity.health_user_id. Format: `users/{user\}`
1446
+ */
1447
+ name?: string | null;
1448
+ }
1422
1449
  /**
1423
1450
  * Log message for a webhook notification sent by the Google Health API to a subscriber's endpoint. Includes the HTTP response received from the endpoint.
1424
1451
  */
@@ -1556,6 +1583,23 @@ export namespace health_v4 {
1556
1583
  */
1557
1584
  sampleTime?: Schema$ObservationSampleTime;
1558
1585
  }
1586
+ /**
1587
+ * Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; \} service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); \} Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); \} Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.
1588
+ */
1589
+ export interface Schema$HttpBody {
1590
+ /**
1591
+ * The HTTP Content-Type header value specifying the content type of the body.
1592
+ */
1593
+ contentType?: string | null;
1594
+ /**
1595
+ * The HTTP request/response body as raw binary.
1596
+ */
1597
+ data?: string | null;
1598
+ /**
1599
+ * Application specific response metadata. Must be set in the first response for streaming APIs.
1600
+ */
1601
+ extensions?: Array<{[key: string]: any}> | null;
1602
+ }
1559
1603
  /**
1560
1604
  * Represents an HTTP header.
1561
1605
  */
@@ -1736,6 +1780,23 @@ export namespace health_v4 {
1736
1780
  */
1737
1781
  subscriptions?: Schema$Subscription[];
1738
1782
  }
1783
+ /**
1784
+ * Represents the POST body contained in a GetShlManifestRequest This message is nested to represent that See https://build.fhir.org/ig/HL7/smart-health-cards-and-links/links-specification.html#smart-health-link-manifest-request
1785
+ */
1786
+ export interface Schema$ManifestParams {
1787
+ /**
1788
+ * Optional. Integer upper bound on the length of embedded payloads
1789
+ */
1790
+ embeddedLengthMax?: number | null;
1791
+ /**
1792
+ * Optional.
1793
+ */
1794
+ passcode?: string | null;
1795
+ /**
1796
+ * Required. A string describing the recipient (e.g.,the name of an organization or person) suitable for display to the Receiving User
1797
+ */
1798
+ recipient?: string | null;
1799
+ }
1739
1800
  /**
1740
1801
  * Software as Medical Device (SaMD) metadata. Used to construct the Unique Device Identifier (UDI).
1741
1802
  */
@@ -1761,6 +1822,19 @@ export namespace health_v4 {
1761
1822
  */
1762
1823
  serviceVersion?: string | null;
1763
1824
  }
1825
+ /**
1826
+ * Menstrual period record.
1827
+ */
1828
+ export interface Schema$MenstrualPeriod {
1829
+ /**
1830
+ * Required. Observed interval.
1831
+ */
1832
+ interval?: Schema$ObservationTimeInterval;
1833
+ /**
1834
+ * Optional. Standard free-form notes captured at manual logging.
1835
+ */
1836
+ notes?: string | null;
1837
+ }
1764
1838
  /**
1765
1839
  * Summary metrics for an exercise.
1766
1840
  */
@@ -1839,16 +1913,33 @@ export namespace health_v4 {
1839
1913
  */
1840
1914
  avgVerticalRatio?: number | null;
1841
1915
  }
1916
+ /**
1917
+ * Moods record.
1918
+ */
1919
+ export interface Schema$Moods {
1920
+ /**
1921
+ * Required. The moods logged.
1922
+ */
1923
+ moods?: string[] | null;
1924
+ /**
1925
+ * Required. The time at which moods were measured.
1926
+ */
1927
+ sampleTime?: Schema$ObservationSampleTime;
1928
+ /**
1929
+ * Optional. The valences.
1930
+ */
1931
+ valences?: string[] | null;
1932
+ }
1842
1933
  /**
1843
1934
  * Represents the quantity of a nutrient.
1844
1935
  */
1845
1936
  export interface Schema$NutrientQuantity {
1846
1937
  /**
1847
- * Required. Value representing the nutrient.
1938
+ * Required. The nutrient type.
1848
1939
  */
1849
1940
  nutrient?: string | null;
1850
1941
  /**
1851
- * Required. Value representing the quantity of the nutrient.
1942
+ * Required. The quantity of the nutrient, measured in grams.
1852
1943
  */
1853
1944
  quantity?: Schema$WeightQuantity;
1854
1945
  }
@@ -1866,47 +1957,47 @@ export namespace health_v4 {
1866
1957
  quantity?: Schema$WeightQuantityRollup;
1867
1958
  }
1868
1959
  /**
1869
- * Holds information about a user logged food. There are two ways of creating a nutrition log based on the food type: 1. Identified food: Using the food field, which is a reference to a Food resource. In this case fields `nutrients`, `energy`, `energy_from_fat`, `total_carbohydrate`, `total_fat`, `food_display_name` will be populated based on the referenced food. 2. Anonymous food: Using the `food_display_name` field and setting the `nutrients`, `energy`, `energy_from_fat`, `total_carbohydrate`, `total_fat` fields manually. The identified food is preferred over the anonymous food. Nutrition logs created from anonymous food are not be editable.
1960
+ * Holds information about food logged by a user. There are two ways of creating a nutrition log based on the food type: 1. Identified food: Using the food field, which is a reference to a Food resource. In this case fields `nutrients`, `energy`, `energy_from_fat`, `total_carbohydrate`, `total_fat`, `food_display_name` will be populated based on the referenced food. 2. Anonymous food: Using the `food_display_name` field and setting the `nutrients`, `energy`, `energy_from_fat`, `total_carbohydrate`, `total_fat` fields manually. The identified food is preferred over the anonymous food. Nutrition logs created from anonymous food are not editable.
1870
1961
  */
1871
1962
  export interface Schema$NutritionLog {
1872
1963
  /**
1873
- * Optional. Value representing the energy of the nutrition log. For nutrition logs created from an identified food, this field will be populated based on the referenced food. For anonymous food, this field will be populated manually.
1964
+ * Optional. The total energy of the food, measured in kilocalories (`kcal`).
1874
1965
  */
1875
1966
  energy?: Schema$EnergyQuantity;
1876
1967
  /**
1877
- * Optional. Value representing the energy from fat of the nutrition log. For nutrition logs created from an identified food, this field will be populated based on the referenced food. For anonymous food, this field will be populated manually.
1968
+ * Optional. The energy from fat, measured in kilocalories (`kcal`).
1878
1969
  */
1879
1970
  energyFromFat?: Schema$EnergyQuantity;
1880
1971
  /**
1881
- * Required. Represents the food ID.
1972
+ * Optional. The resource name of the Food item. Required when creating a nutrition log from an identified food. For anonymous food logs, use the `food_display_name` field instead.
1882
1973
  */
1883
1974
  food?: string | null;
1884
1975
  /**
1885
- * Value representing the display name of the food. For nutrition logs created from an identified food, this field will be populated based on the referenced food. For anonymous food, this field will be populated manually.
1976
+ * The display name of the food. For identified food logs, this is populated automatically from the referenced food.
1886
1977
  */
1887
1978
  foodDisplayName?: string | null;
1888
1979
  /**
1889
- * Required. Observed interval.
1980
+ * Required. The time window when the food was logged.
1890
1981
  */
1891
1982
  interval?: Schema$SessionTimeInterval;
1892
1983
  /**
1893
- * Optional. Value representing the meal type of the nutrition log.
1984
+ * Optional. The meal category. One of `BREAKFAST`, `LUNCH`, `DINNER`, or `SNACK`.
1894
1985
  */
1895
1986
  mealType?: string | null;
1896
1987
  /**
1897
- * Optional. Value representing the nutrients of the nutrition log.
1988
+ * Optional. An array of individual nutrient values for the nutrition log.
1898
1989
  */
1899
1990
  nutrients?: Schema$NutrientQuantity[];
1900
1991
  /**
1901
- * Optional. Value representing the nutrition log serving.
1992
+ * Optional. The serving information for the logged food.
1902
1993
  */
1903
1994
  serving?: Schema$Serving;
1904
1995
  /**
1905
- * Optional. Value representing the total carbohydrate of the nutrition log. For nutrition logs created from an identified food, this field will be populated based on the referenced food. For anonymous food, this field will be populated manually.
1996
+ * Optional. The total carbohydrate content, measured in grams.
1906
1997
  */
1907
1998
  totalCarbohydrate?: Schema$WeightQuantity;
1908
1999
  /**
1909
- * Optional. Value representing the total fat of the nutrition log. For nutrition logs created from an identified food, this field will be populated based on the referenced food. For anonymous food, this field will be populated manually.
2000
+ * Optional. The total fat content, measured in grams.
1910
2001
  */
1911
2002
  totalFat?: Schema$WeightQuantity;
1912
2003
  }
@@ -2027,6 +2118,19 @@ export namespace health_v4 {
2027
2118
  */
2028
2119
  startUtcOffset?: string | null;
2029
2120
  }
2121
+ /**
2122
+ * Ovulation test record.
2123
+ */
2124
+ export interface Schema$OvulationTest {
2125
+ /**
2126
+ * Required. The result of the ovulation test.
2127
+ */
2128
+ result?: string | null;
2129
+ /**
2130
+ * Required. The time at which ovulation test was measured.
2131
+ */
2132
+ sampleTime?: Schema$ObservationSampleTime;
2133
+ }
2030
2134
  /**
2031
2135
  * Captures the user's instantaneous oxygen saturation percentage (SpO2).
2032
2136
  */
@@ -2192,7 +2296,7 @@ export namespace health_v4 {
2192
2296
  */
2193
2297
  dailyVo2Max?: Schema$DailyVO2Max;
2194
2298
  /**
2195
- * Identifier. Data point name, only supported for the subset of identifiable data types. For the majority of the data types, individual data points do not need to be identified and this field would be empty. Format: `users/{user\}/dataTypes/{data_type\}/dataPoints/{data_point\}` Example: `users/abcd1234/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The `{user\}` ID is a system-generated identifier, as described in Identity.health_user_id. The `{data_type\}` ID corresponds to the kebab-case version of the field names in the DataPoint data union field, e.g. `total-calories` for the `total_calories` field. The `{data_point\}` ID can be client-provided or system-generated. If client-provided, it must be a string of 4-63 characters, containing only lowercase letters, numbers, and hyphens.
2299
+ * Identifier. Data point name, only supported for the subset of identifiable data types. For the majority of the data types, individual data points do not need to be identified and this field would be empty. Format: `users/{user\}/dataTypes/{data_type\}/dataPoints/{data_point\}` Example: `users/abcd1234/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The `{user\}` ID is a system-generated identifier, as described in Identity.health_user_id. The `{data_type\}` ID corresponds to the kebab-case version of the field names in the DataPoint data union field, e.g. `heart-rate` for the `heart_rate` field. The `{data_point\}` ID can be client-provided or system-generated. If client-provided, it must be a string of 4-63 characters, containing only lowercase letters, numbers, and hyphens.
2196
2300
  */
2197
2301
  dataPointName?: string | null;
2198
2302
  /**
@@ -2425,7 +2529,7 @@ export namespace health_v4 {
2425
2529
  */
2426
2530
  export interface Schema$RollUpDataPointsRequest {
2427
2531
  /**
2428
- * 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 - `users/me/dataSourceFamilies/google-wearables` - tracker devices - `users/me/dataSourceFamilies/google-sources` - Google first party sources
2532
+ * 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.
2429
2533
  */
2430
2534
  dataSourceFamily?: string | null;
2431
2535
  /**
@@ -2441,7 +2545,7 @@ export namespace health_v4 {
2441
2545
  */
2442
2546
  range?: Schema$Interval;
2443
2547
  /**
2444
- * Required. The size of the time window to group data points into before applying the aggregation functions.
2548
+ * Required. The size of the time window to group data points into before applying the aggregation functions. Must be at least 1 second.
2445
2549
  */
2446
2550
  windowSize?: string | null;
2447
2551
  }
@@ -2511,7 +2615,7 @@ export namespace health_v4 {
2511
2615
  */
2512
2616
  export interface Schema$Serving {
2513
2617
  /**
2514
- * Optional. Amount of food consumed, fractional values are supported.
2618
+ * Optional. The number of servings.
2515
2619
  */
2516
2620
  amount?: number | null;
2517
2621
  /**
@@ -2561,7 +2665,7 @@ export namespace health_v4 {
2561
2665
  */
2562
2666
  autoStrideEnabled?: boolean | null;
2563
2667
  /**
2564
- * Optional. The measurement unit defined in the user's account settings. Updates to this field are currently not supported.
2668
+ * Optional. The measurement unit defined in the user's account settings.
2565
2669
  */
2566
2670
  distanceUnit?: string | null;
2567
2671
  /**
@@ -2630,13 +2734,17 @@ export namespace health_v4 {
2630
2734
  */
2631
2735
  interval?: Schema$SessionTimeInterval;
2632
2736
  /**
2633
- * Optional. Sleep metadata: processing, main, manually edited, stages status.
2737
+ * Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and `stages_status`.
2634
2738
  */
2635
2739
  metadata?: Schema$SleepMetadata;
2636
2740
  /**
2637
2741
  * Optional. “Out of bed” segments that can overlap with sleep stages.
2638
2742
  */
2639
2743
  outOfBedSegments?: Schema$OutOfBedSegment[];
2744
+ /**
2745
+ * Output only. List of short awake segments (under a set threshold) that are part of the sleep session. These can overlap with sleep stages.
2746
+ */
2747
+ shortAwakenings?: Schema$SleepStage[];
2640
2748
  /**
2641
2749
  * Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.
2642
2750
  */
@@ -2662,6 +2770,10 @@ export namespace health_v4 {
2662
2770
  * Optional. Sleep identifier relevant in the context of the data source.
2663
2771
  */
2664
2772
  externalId?: string | null;
2773
+ /**
2774
+ * Output only. `main_sleep`: the longest sleep session with stages within one day. If no sleep session has stages, then the longest sleep is the `main_sleep`. If there are multiple days of sleep in the response, there is one `main_sleep` per day.
2775
+ */
2776
+ mainSleep?: boolean | null;
2665
2777
  /**
2666
2778
  * Output only. Some sleeps autodetected by algorithms can be manually edited by users.
2667
2779
  */
@@ -2671,7 +2783,7 @@ export namespace health_v4 {
2671
2783
  */
2672
2784
  nap?: boolean | null;
2673
2785
  /**
2674
- * Output only. Sleep and sleep stages algorithms finished processing.
2786
+ * Output only. Sleep and sleep stages algorithms finished processing. A `true` value indicates whether all data processing for the session is complete. A `false` value means sleep period is detected but sleep stages is still processing.
2675
2787
  */
2676
2788
  processed?: boolean | null;
2677
2789
  /**
@@ -2881,7 +2993,7 @@ export namespace health_v4 {
2881
2993
  */
2882
2994
  export interface Schema$Subscription {
2883
2995
  /**
2884
- * Optional. Data types subscribed to. A subscriber will only receive notifications for data types that are declared here. A subscription can only subscribe to the data types of the subscriber. Supported data types are: "altitude", "distance", "floors", "sleep", "steps", "weight".
2996
+ * Optional. Data types subscribed to. A subscriber will only receive notifications for data types that are declared here. A subscription can only subscribe to the data types of the subscriber. The values should be in the format "users/{health_user_id\}/dataTypes/{data_type\}" where `{data_type\}` is one of "altitude", "distance", "floors", "sleep", "steps", "weight".
2885
2997
  */
2886
2998
  dataTypes?: string[] | null;
2887
2999
  /**
@@ -2919,6 +3031,19 @@ export namespace health_v4 {
2919
3031
  */
2920
3032
  strokeCountSum?: string | null;
2921
3033
  }
3034
+ /**
3035
+ * Symptoms logged by the user.
3036
+ */
3037
+ export interface Schema$Symptoms {
3038
+ /**
3039
+ * Required. Time when the symptoms were logged.
3040
+ */
3041
+ sampleTime?: Schema$ObservationSampleTime;
3042
+ /**
3043
+ * Required. List of symptoms experienced.
3044
+ */
3045
+ symptoms?: string[] | null;
3046
+ }
2922
3047
  /**
2923
3048
  * Time in heart rate zone record. It's an interval spent in specific heart rate zone.
2924
3049
  */
@@ -3010,7 +3135,7 @@ export namespace health_v4 {
3010
3135
  version?: string | null;
3011
3136
  }
3012
3137
  /**
3013
- * Represents the result of the rollup of the user's total calories.
3138
+ * Represents the result of the rollup of the user's total calories. Note: Queries for the `total-calories` data type must include a time interval filter (such as `total_calories.interval.start_time` or `total_calories.interval.civil_start_time`). The maximum range is 14 days. Example filter query: `total_calories.interval.start_time \>= "2026-04-20T00:00:00Z" AND total_calories.interval.start_time < "2026-04-21T00:00:00Z"`
3014
3139
  */
3015
3140
  export interface Schema$TotalCaloriesRollupValue {
3016
3141
  /**
@@ -3083,7 +3208,7 @@ export namespace health_v4 {
3083
3208
  */
3084
3209
  export interface Schema$WeightQuantity {
3085
3210
  /**
3086
- * Required. Value representing the weight in grams.
3211
+ * Required. The weight value in grams.
3087
3212
  */
3088
3213
  grams?: number | null;
3089
3214
  /**
@@ -3164,7 +3289,7 @@ export namespace health_v4 {
3164
3289
  *
3165
3290
  * // Do the magic
3166
3291
  * const res = await health.projects.subscribers.create({
3167
- * // Required. The parent resource where this subscriber will be created. Format: projects/{project\} Example: projects/my-project-123
3292
+ * // Required. The parent resource where this subscriber will be created. Format: projects/{project_number\} Example: projects/1234567890
3168
3293
  * parent: 'projects/my-project',
3169
3294
  * // Optional. The ID to use for the subscriber, which will become the final component of the subscriber's resource name. This value should be 4-36 characters, and valid characters are /[a-z]([a-z0-9-]{2,34\}[a-z0-9])/.
3170
3295
  * subscriberId: 'placeholder-value',
@@ -3237,8 +3362,7 @@ export namespace health_v4 {
3237
3362
  | BodyResponseCallback<Schema$Operation>
3238
3363
  | BodyResponseCallback<Readable>,
3239
3364
  callback?:
3240
- | BodyResponseCallback<Schema$Operation>
3241
- | BodyResponseCallback<Readable>
3365
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
3242
3366
  ):
3243
3367
  | void
3244
3368
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -3380,8 +3504,7 @@ export namespace health_v4 {
3380
3504
  | BodyResponseCallback<Schema$Operation>
3381
3505
  | BodyResponseCallback<Readable>,
3382
3506
  callback?:
3383
- | BodyResponseCallback<Schema$Operation>
3384
- | BodyResponseCallback<Readable>
3507
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
3385
3508
  ):
3386
3509
  | void
3387
3510
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -3502,8 +3625,7 @@ export namespace health_v4 {
3502
3625
  list(
3503
3626
  params: Params$Resource$Projects$Subscribers$List,
3504
3627
  options:
3505
- | MethodOptions
3506
- | BodyResponseCallback<Schema$ListSubscribersResponse>,
3628
+ MethodOptions | BodyResponseCallback<Schema$ListSubscribersResponse>,
3507
3629
  callback: BodyResponseCallback<Schema$ListSubscribersResponse>
3508
3630
  ): void;
3509
3631
  list(
@@ -3679,8 +3801,7 @@ export namespace health_v4 {
3679
3801
  | BodyResponseCallback<Schema$Operation>
3680
3802
  | BodyResponseCallback<Readable>,
3681
3803
  callback?:
3682
- | BodyResponseCallback<Schema$Operation>
3683
- | BodyResponseCallback<Readable>
3804
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
3684
3805
  ):
3685
3806
  | void
3686
3807
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -3728,7 +3849,7 @@ export namespace health_v4 {
3728
3849
 
3729
3850
  export interface Params$Resource$Projects$Subscribers$Create extends StandardParameters {
3730
3851
  /**
3731
- * Required. The parent resource where this subscriber will be created. Format: projects/{project\} Example: projects/my-project-123
3852
+ * Required. The parent resource where this subscriber will be created. Format: projects/{project_number\} Example: projects/1234567890
3732
3853
  */
3733
3854
  parent?: string;
3734
3855
  /**
@@ -4024,8 +4145,7 @@ export namespace health_v4 {
4024
4145
  | BodyResponseCallback<Schema$Empty>
4025
4146
  | BodyResponseCallback<Readable>,
4026
4147
  callback?:
4027
- | BodyResponseCallback<Schema$Empty>
4028
- | BodyResponseCallback<Readable>
4148
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
4029
4149
  ):
4030
4150
  | void
4031
4151
  | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
@@ -4102,7 +4222,7 @@ export namespace health_v4 {
4102
4222
  *
4103
4223
  * // Do the magic
4104
4224
  * const res = await health.projects.subscribers.subscriptions.list({
4105
- * // Optional. A filter to apply to the list of subscriptions. The filter syntax is described in https://google.aip.dev/160. The filter can be applied to the following fields: - `user` - `data_type` The `user` identifier (e.g., `user1` in `users/user1`) refers to the public `healthUserId` Example: user = "users/user1" Example: user = "users/user1" OR user = "users/user2" Example: user = "users/user1" AND (data_type = "sleep" OR data_type = "weight")
4225
+ * // Optional. A filter to apply to the list of subscriptions. The filter syntax is described in https://google.aip.dev/160. The filter can be applied to the following fields: - `user` - `data_type` The `user` identifier (e.g., `user1` in `users/user1`) refers to the public `health_user_id` Example: user = "users/user1" Example: user = "users/user1" OR user = "users/user2" Example: user = "users/user1" AND (data_type = "sleep" OR data_type = "weight")
4106
4226
  * filter: 'placeholder-value',
4107
4227
  * // Optional. The maximum number of subscriptions to return. The service may return fewer than this value. If unspecified, at most 50 subscriptions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
4108
4228
  * pageSize: 'placeholder-value',
@@ -4148,8 +4268,7 @@ export namespace health_v4 {
4148
4268
  list(
4149
4269
  params: Params$Resource$Projects$Subscribers$Subscriptions$List,
4150
4270
  options:
4151
- | MethodOptions
4152
- | BodyResponseCallback<Schema$ListSubscriptionsResponse>,
4271
+ MethodOptions | BodyResponseCallback<Schema$ListSubscriptionsResponse>,
4153
4272
  callback: BodyResponseCallback<Schema$ListSubscriptionsResponse>
4154
4273
  ): void;
4155
4274
  list(
@@ -4391,7 +4510,7 @@ export namespace health_v4 {
4391
4510
  }
4392
4511
  export interface Params$Resource$Projects$Subscribers$Subscriptions$List extends StandardParameters {
4393
4512
  /**
4394
- * Optional. A filter to apply to the list of subscriptions. The filter syntax is described in https://google.aip.dev/160. The filter can be applied to the following fields: - `user` - `data_type` The `user` identifier (e.g., `user1` in `users/user1`) refers to the public `healthUserId` Example: user = "users/user1" Example: user = "users/user1" OR user = "users/user2" Example: user = "users/user1" AND (data_type = "sleep" OR data_type = "weight")
4513
+ * Optional. A filter to apply to the list of subscriptions. The filter syntax is described in https://google.aip.dev/160. The filter can be applied to the following fields: - `user` - `data_type` The `user` identifier (e.g., `user1` in `users/user1`) refers to the public `health_user_id` Example: user = "users/user1" Example: user = "users/user1" OR user = "users/user2" Example: user = "users/user1" AND (data_type = "sleep" OR data_type = "weight")
4395
4514
  */
4396
4515
  filter?: string;
4397
4516
  /**
@@ -4423,6 +4542,340 @@ export namespace health_v4 {
4423
4542
  requestBody?: Schema$Subscription;
4424
4543
  }
4425
4544
 
4545
+ export class Resource$Shl {
4546
+ context: APIRequestContext;
4547
+ m: Resource$Shl$M;
4548
+ r: Resource$Shl$R;
4549
+ constructor(context: APIRequestContext) {
4550
+ this.context = context;
4551
+ this.m = new Resource$Shl$M(this.context);
4552
+ this.r = new Resource$Shl$R(this.context);
4553
+ }
4554
+ }
4555
+
4556
+ export class Resource$Shl$M {
4557
+ context: APIRequestContext;
4558
+ constructor(context: APIRequestContext) {
4559
+ this.context = context;
4560
+ }
4561
+
4562
+ /**
4563
+ * Forward a manifest request for a given SHL
4564
+ * @example
4565
+ * ```js
4566
+ * // Before running the sample:
4567
+ * // - Enable the API at:
4568
+ * // https://console.developers.google.com/apis/api/health.googleapis.com
4569
+ * // - Login into gcloud by running:
4570
+ * // ```sh
4571
+ * // $ gcloud auth application-default login
4572
+ * // ```
4573
+ * // - Install the npm module by running:
4574
+ * // ```sh
4575
+ * // $ npm install googleapis
4576
+ * // ```
4577
+ *
4578
+ * const {google} = require('googleapis');
4579
+ * const health = google.health('v4');
4580
+ *
4581
+ * async function main() {
4582
+ * const auth = new google.auth.GoogleAuth({
4583
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4584
+ * scopes: [],
4585
+ * });
4586
+ *
4587
+ * // Acquire an auth client, and bind it to all future calls
4588
+ * const authClient = await auth.getClient();
4589
+ * google.options({auth: authClient});
4590
+ *
4591
+ * // Do the magic
4592
+ * const res = await health.shl.m.getShlManifest({
4593
+ * // Required. External ID mapping to a ShlSharedLinkCapabilityToken object See https://docs.google.com/document/d/1Pch20pxJHRbsaMxp0EYgs3ZU0Gu7QTUznk8LhvbQvfY/edit?tab=t.0#heading=h.17wg41voij6q
4594
+ * externalShlId: 'placeholder-value',
4595
+ *
4596
+ * // Request body metadata
4597
+ * requestBody: {
4598
+ * // request body parameters
4599
+ * // {
4600
+ * // "embeddedLengthMax": 0,
4601
+ * // "passcode": "my_passcode",
4602
+ * // "recipient": "my_recipient"
4603
+ * // }
4604
+ * },
4605
+ * });
4606
+ * console.log(res.data);
4607
+ *
4608
+ * // Example response
4609
+ * // {
4610
+ * // "contentType": "my_contentType",
4611
+ * // "data": "my_data",
4612
+ * // "extensions": []
4613
+ * // }
4614
+ * }
4615
+ *
4616
+ * main().catch(e => {
4617
+ * console.error(e);
4618
+ * throw e;
4619
+ * });
4620
+ *
4621
+ * ```
4622
+ *
4623
+ * @param params - Parameters for request
4624
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4625
+ * @param callback - Optional callback that handles the response.
4626
+ * @returns A promise if used with async/await, or void if used with a callback.
4627
+ */
4628
+ getShlManifest(
4629
+ params: Params$Resource$Shl$M$Getshlmanifest,
4630
+ options: StreamMethodOptions
4631
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4632
+ getShlManifest(
4633
+ params?: Params$Resource$Shl$M$Getshlmanifest,
4634
+ options?: MethodOptions
4635
+ ): Promise<GaxiosResponseWithHTTP2<Schema$HttpBody>>;
4636
+ getShlManifest(
4637
+ params: Params$Resource$Shl$M$Getshlmanifest,
4638
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4639
+ callback: BodyResponseCallback<Readable>
4640
+ ): void;
4641
+ getShlManifest(
4642
+ params: Params$Resource$Shl$M$Getshlmanifest,
4643
+ options: MethodOptions | BodyResponseCallback<Schema$HttpBody>,
4644
+ callback: BodyResponseCallback<Schema$HttpBody>
4645
+ ): void;
4646
+ getShlManifest(
4647
+ params: Params$Resource$Shl$M$Getshlmanifest,
4648
+ callback: BodyResponseCallback<Schema$HttpBody>
4649
+ ): void;
4650
+ getShlManifest(callback: BodyResponseCallback<Schema$HttpBody>): void;
4651
+ getShlManifest(
4652
+ paramsOrCallback?:
4653
+ | Params$Resource$Shl$M$Getshlmanifest
4654
+ | BodyResponseCallback<Schema$HttpBody>
4655
+ | BodyResponseCallback<Readable>,
4656
+ optionsOrCallback?:
4657
+ | MethodOptions
4658
+ | StreamMethodOptions
4659
+ | BodyResponseCallback<Schema$HttpBody>
4660
+ | BodyResponseCallback<Readable>,
4661
+ callback?:
4662
+ BodyResponseCallback<Schema$HttpBody> | BodyResponseCallback<Readable>
4663
+ ):
4664
+ | void
4665
+ | Promise<GaxiosResponseWithHTTP2<Schema$HttpBody>>
4666
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4667
+ let params = (paramsOrCallback ||
4668
+ {}) as Params$Resource$Shl$M$Getshlmanifest;
4669
+ let options = (optionsOrCallback || {}) as MethodOptions;
4670
+
4671
+ if (typeof paramsOrCallback === 'function') {
4672
+ callback = paramsOrCallback;
4673
+ params = {} as Params$Resource$Shl$M$Getshlmanifest;
4674
+ options = {};
4675
+ }
4676
+
4677
+ if (typeof optionsOrCallback === 'function') {
4678
+ callback = optionsOrCallback;
4679
+ options = {};
4680
+ }
4681
+
4682
+ const rootUrl = options.rootUrl || 'https://health.googleapis.com/';
4683
+ const parameters = {
4684
+ options: Object.assign(
4685
+ {
4686
+ url: (rootUrl + '/v4/shl/m/{externalShlId}').replace(
4687
+ /([^:]\/)\/+/g,
4688
+ '$1'
4689
+ ),
4690
+ method: 'POST',
4691
+ apiVersion: '',
4692
+ },
4693
+ options
4694
+ ),
4695
+ params,
4696
+ requiredParams: ['externalShlId'],
4697
+ pathParams: ['externalShlId'],
4698
+ context: this.context,
4699
+ };
4700
+ if (callback) {
4701
+ createAPIRequest<Schema$HttpBody>(
4702
+ parameters,
4703
+ callback as BodyResponseCallback<unknown>
4704
+ );
4705
+ } else {
4706
+ return createAPIRequest<Schema$HttpBody>(parameters);
4707
+ }
4708
+ }
4709
+ }
4710
+
4711
+ export interface Params$Resource$Shl$M$Getshlmanifest extends StandardParameters {
4712
+ /**
4713
+ * Required. External ID mapping to a ShlSharedLinkCapabilityToken object See https://docs.google.com/document/d/1Pch20pxJHRbsaMxp0EYgs3ZU0Gu7QTUznk8LhvbQvfY/edit?tab=t.0#heading=h.17wg41voij6q
4714
+ */
4715
+ externalShlId?: string;
4716
+
4717
+ /**
4718
+ * Request body metadata
4719
+ */
4720
+ requestBody?: Schema$ManifestParams;
4721
+ }
4722
+
4723
+ export class Resource$Shl$R {
4724
+ context: APIRequestContext;
4725
+ constructor(context: APIRequestContext) {
4726
+ this.context = context;
4727
+ }
4728
+
4729
+ /**
4730
+ * Forward a resource request for a given SHL
4731
+ * @example
4732
+ * ```js
4733
+ * // Before running the sample:
4734
+ * // - Enable the API at:
4735
+ * // https://console.developers.google.com/apis/api/health.googleapis.com
4736
+ * // - Login into gcloud by running:
4737
+ * // ```sh
4738
+ * // $ gcloud auth application-default login
4739
+ * // ```
4740
+ * // - Install the npm module by running:
4741
+ * // ```sh
4742
+ * // $ npm install googleapis
4743
+ * // ```
4744
+ *
4745
+ * const {google} = require('googleapis');
4746
+ * const health = google.health('v4');
4747
+ *
4748
+ * async function main() {
4749
+ * const auth = new google.auth.GoogleAuth({
4750
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
4751
+ * scopes: [],
4752
+ * });
4753
+ *
4754
+ * // Acquire an auth client, and bind it to all future calls
4755
+ * const authClient = await auth.getClient();
4756
+ * google.options({auth: authClient});
4757
+ *
4758
+ * // Do the magic
4759
+ * const res = await health.shl.r.get({
4760
+ * // Required. External ID mapping to a ShlSharedLinkCapabilityToken object See https://docs.google.com/document/d/1Pch20pxJHRbsaMxp0EYgs3ZU0Gu7QTUznk8LhvbQvfY/edit?tab=t.0#heading=h.17wg41voij6q
4761
+ * externalShlId: 'placeholder-value',
4762
+ * // Required. Encoded, encrypted message containing resource access details
4763
+ * resourceToken: 'placeholder-value',
4764
+ * });
4765
+ * console.log(res.data);
4766
+ *
4767
+ * // Example response
4768
+ * // {
4769
+ * // "contentType": "my_contentType",
4770
+ * // "data": "my_data",
4771
+ * // "extensions": []
4772
+ * // }
4773
+ * }
4774
+ *
4775
+ * main().catch(e => {
4776
+ * console.error(e);
4777
+ * throw e;
4778
+ * });
4779
+ *
4780
+ * ```
4781
+ *
4782
+ * @param params - Parameters for request
4783
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
4784
+ * @param callback - Optional callback that handles the response.
4785
+ * @returns A promise if used with async/await, or void if used with a callback.
4786
+ */
4787
+ get(
4788
+ params: Params$Resource$Shl$R$Get,
4789
+ options: StreamMethodOptions
4790
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
4791
+ get(
4792
+ params?: Params$Resource$Shl$R$Get,
4793
+ options?: MethodOptions
4794
+ ): Promise<GaxiosResponseWithHTTP2<Schema$HttpBody>>;
4795
+ get(
4796
+ params: Params$Resource$Shl$R$Get,
4797
+ options: StreamMethodOptions | BodyResponseCallback<Readable>,
4798
+ callback: BodyResponseCallback<Readable>
4799
+ ): void;
4800
+ get(
4801
+ params: Params$Resource$Shl$R$Get,
4802
+ options: MethodOptions | BodyResponseCallback<Schema$HttpBody>,
4803
+ callback: BodyResponseCallback<Schema$HttpBody>
4804
+ ): void;
4805
+ get(
4806
+ params: Params$Resource$Shl$R$Get,
4807
+ callback: BodyResponseCallback<Schema$HttpBody>
4808
+ ): void;
4809
+ get(callback: BodyResponseCallback<Schema$HttpBody>): void;
4810
+ get(
4811
+ paramsOrCallback?:
4812
+ | Params$Resource$Shl$R$Get
4813
+ | BodyResponseCallback<Schema$HttpBody>
4814
+ | BodyResponseCallback<Readable>,
4815
+ optionsOrCallback?:
4816
+ | MethodOptions
4817
+ | StreamMethodOptions
4818
+ | BodyResponseCallback<Schema$HttpBody>
4819
+ | BodyResponseCallback<Readable>,
4820
+ callback?:
4821
+ BodyResponseCallback<Schema$HttpBody> | BodyResponseCallback<Readable>
4822
+ ):
4823
+ | void
4824
+ | Promise<GaxiosResponseWithHTTP2<Schema$HttpBody>>
4825
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
4826
+ let params = (paramsOrCallback || {}) as Params$Resource$Shl$R$Get;
4827
+ let options = (optionsOrCallback || {}) as MethodOptions;
4828
+
4829
+ if (typeof paramsOrCallback === 'function') {
4830
+ callback = paramsOrCallback;
4831
+ params = {} as Params$Resource$Shl$R$Get;
4832
+ options = {};
4833
+ }
4834
+
4835
+ if (typeof optionsOrCallback === 'function') {
4836
+ callback = optionsOrCallback;
4837
+ options = {};
4838
+ }
4839
+
4840
+ const rootUrl = options.rootUrl || 'https://health.googleapis.com/';
4841
+ const parameters = {
4842
+ options: Object.assign(
4843
+ {
4844
+ url: (
4845
+ rootUrl + '/v4/shl/r/{externalShlId}/{resourceToken}'
4846
+ ).replace(/([^:]\/)\/+/g, '$1'),
4847
+ method: 'GET',
4848
+ apiVersion: '',
4849
+ },
4850
+ options
4851
+ ),
4852
+ params,
4853
+ requiredParams: ['externalShlId', 'resourceToken'],
4854
+ pathParams: ['externalShlId', 'resourceToken'],
4855
+ context: this.context,
4856
+ };
4857
+ if (callback) {
4858
+ createAPIRequest<Schema$HttpBody>(
4859
+ parameters,
4860
+ callback as BodyResponseCallback<unknown>
4861
+ );
4862
+ } else {
4863
+ return createAPIRequest<Schema$HttpBody>(parameters);
4864
+ }
4865
+ }
4866
+ }
4867
+
4868
+ export interface Params$Resource$Shl$R$Get extends StandardParameters {
4869
+ /**
4870
+ * Required. External ID mapping to a ShlSharedLinkCapabilityToken object See https://docs.google.com/document/d/1Pch20pxJHRbsaMxp0EYgs3ZU0Gu7QTUznk8LhvbQvfY/edit?tab=t.0#heading=h.17wg41voij6q
4871
+ */
4872
+ externalShlId?: string;
4873
+ /**
4874
+ * Required. Encoded, encrypted message containing resource access details
4875
+ */
4876
+ resourceToken?: string;
4877
+ }
4878
+
4426
4879
  export class Resource$Users {
4427
4880
  context: APIRequestContext;
4428
4881
  dataTypes: Resource$Users$Datatypes;
@@ -4457,7 +4910,9 @@ export namespace health_v4 {
4457
4910
  * // Scopes can be specified either as an array or as a single, space-delimited string.
4458
4911
  * scopes: [
4459
4912
  * 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly',
4913
+ * 'https://www.googleapis.com/auth/googlehealth.ecg.readonly',
4460
4914
  * 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly',
4915
+ * 'https://www.googleapis.com/auth/googlehealth.irn.readonly',
4461
4916
  * 'https://www.googleapis.com/auth/googlehealth.profile.readonly',
4462
4917
  * 'https://www.googleapis.com/auth/googlehealth.settings.readonly',
4463
4918
  * 'https://www.googleapis.com/auth/googlehealth.sleep.readonly',
@@ -4529,8 +4984,7 @@ export namespace health_v4 {
4529
4984
  | BodyResponseCallback<Schema$Identity>
4530
4985
  | BodyResponseCallback<Readable>,
4531
4986
  callback?:
4532
- | BodyResponseCallback<Schema$Identity>
4533
- | BodyResponseCallback<Readable>
4987
+ BodyResponseCallback<Schema$Identity> | BodyResponseCallback<Readable>
4534
4988
  ):
4535
4989
  | void
4536
4990
  | Promise<GaxiosResponseWithHTTP2<Schema$Identity>>
@@ -4666,8 +5120,7 @@ export namespace health_v4 {
4666
5120
  | BodyResponseCallback<Schema$IrnProfile>
4667
5121
  | BodyResponseCallback<Readable>,
4668
5122
  callback?:
4669
- | BodyResponseCallback<Schema$IrnProfile>
4670
- | BodyResponseCallback<Readable>
5123
+ BodyResponseCallback<Schema$IrnProfile> | BodyResponseCallback<Readable>
4671
5124
  ):
4672
5125
  | void
4673
5126
  | Promise<GaxiosResponseWithHTTP2<Schema$IrnProfile>>
@@ -4806,8 +5259,7 @@ export namespace health_v4 {
4806
5259
  | BodyResponseCallback<Schema$Profile>
4807
5260
  | BodyResponseCallback<Readable>,
4808
5261
  callback?:
4809
- | BodyResponseCallback<Schema$Profile>
4810
- | BodyResponseCallback<Readable>
5262
+ BodyResponseCallback<Schema$Profile> | BodyResponseCallback<Readable>
4811
5263
  ):
4812
5264
  | void
4813
5265
  | Promise<GaxiosResponseWithHTTP2<Schema$Profile>>
@@ -4953,8 +5405,7 @@ export namespace health_v4 {
4953
5405
  | BodyResponseCallback<Schema$Settings>
4954
5406
  | BodyResponseCallback<Readable>,
4955
5407
  callback?:
4956
- | BodyResponseCallback<Schema$Settings>
4957
- | BodyResponseCallback<Readable>
5408
+ BodyResponseCallback<Schema$Settings> | BodyResponseCallback<Readable>
4958
5409
  ):
4959
5410
  | void
4960
5411
  | Promise<GaxiosResponseWithHTTP2<Schema$Settings>>
@@ -5021,7 +5472,7 @@ export namespace health_v4 {
5021
5472
  * async function main() {
5022
5473
  * const auth = new google.auth.GoogleAuth({
5023
5474
  * // Scopes can be specified either as an array or as a single, space-delimited string.
5024
- * scopes: [],
5475
+ * scopes: ['https://www.googleapis.com/auth/googlehealth.profile.writeonly'],
5025
5476
  * });
5026
5477
  *
5027
5478
  * // Acquire an auth client, and bind it to all future calls
@@ -5109,8 +5560,7 @@ export namespace health_v4 {
5109
5560
  | BodyResponseCallback<Schema$Profile>
5110
5561
  | BodyResponseCallback<Readable>,
5111
5562
  callback?:
5112
- | BodyResponseCallback<Schema$Profile>
5113
- | BodyResponseCallback<Readable>
5563
+ BodyResponseCallback<Schema$Profile> | BodyResponseCallback<Readable>
5114
5564
  ):
5115
5565
  | void
5116
5566
  | Promise<GaxiosResponseWithHTTP2<Schema$Profile>>
@@ -5177,7 +5627,7 @@ export namespace health_v4 {
5177
5627
  * async function main() {
5178
5628
  * const auth = new google.auth.GoogleAuth({
5179
5629
  * // Scopes can be specified either as an array or as a single, space-delimited string.
5180
- * scopes: [],
5630
+ * scopes: ['https://www.googleapis.com/auth/googlehealth.settings.writeonly'],
5181
5631
  * });
5182
5632
  *
5183
5633
  * // Acquire an auth client, and bind it to all future calls
@@ -5281,8 +5731,7 @@ export namespace health_v4 {
5281
5731
  | BodyResponseCallback<Schema$Settings>
5282
5732
  | BodyResponseCallback<Readable>,
5283
5733
  callback?:
5284
- | BodyResponseCallback<Schema$Settings>
5285
- | BodyResponseCallback<Readable>
5734
+ BodyResponseCallback<Schema$Settings> | BodyResponseCallback<Readable>
5286
5735
  ):
5287
5736
  | void
5288
5737
  | Promise<GaxiosResponseWithHTTP2<Schema$Settings>>
@@ -5420,7 +5869,16 @@ export namespace health_v4 {
5420
5869
  * async function main() {
5421
5870
  * const auth = new google.auth.GoogleAuth({
5422
5871
  * // Scopes can be specified either as an array or as a single, space-delimited string.
5423
- * scopes: [],
5872
+ * scopes: [
5873
+ * 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly',
5874
+ * 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly',
5875
+ * 'https://www.googleapis.com/auth/googlehealth.location.writeonly',
5876
+ * 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly',
5877
+ * 'https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly',
5878
+ * 'https://www.googleapis.com/auth/googlehealth.nutrition.writeonly',
5879
+ * 'https://www.googleapis.com/auth/googlehealth.reproductive_health.writeonly',
5880
+ * 'https://www.googleapis.com/auth/googlehealth.sleep.writeonly',
5881
+ * ],
5424
5882
  * });
5425
5883
  *
5426
5884
  * // Acquire an auth client, and bind it to all future calls
@@ -5498,8 +5956,7 @@ export namespace health_v4 {
5498
5956
  | BodyResponseCallback<Schema$Operation>
5499
5957
  | BodyResponseCallback<Readable>,
5500
5958
  callback?:
5501
- | BodyResponseCallback<Schema$Operation>
5502
- | BodyResponseCallback<Readable>
5959
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5503
5960
  ):
5504
5961
  | void
5505
5962
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -5569,7 +6026,16 @@ export namespace health_v4 {
5569
6026
  * async function main() {
5570
6027
  * const auth = new google.auth.GoogleAuth({
5571
6028
  * // Scopes can be specified either as an array or as a single, space-delimited string.
5572
- * scopes: [],
6029
+ * scopes: [
6030
+ * 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly',
6031
+ * 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly',
6032
+ * 'https://www.googleapis.com/auth/googlehealth.location.writeonly',
6033
+ * 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly',
6034
+ * 'https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly',
6035
+ * 'https://www.googleapis.com/auth/googlehealth.nutrition.writeonly',
6036
+ * 'https://www.googleapis.com/auth/googlehealth.reproductive_health.writeonly',
6037
+ * 'https://www.googleapis.com/auth/googlehealth.sleep.writeonly',
6038
+ * ],
5573
6039
  * });
5574
6040
  *
5575
6041
  * // Acquire an auth client, and bind it to all future calls
@@ -5613,8 +6079,11 @@ export namespace health_v4 {
5613
6079
  * // "height": {},
5614
6080
  * // "hydrationLog": {},
5615
6081
  * // "irregularRhythmNotification": {},
6082
+ * // "menstrualPeriod": {},
6083
+ * // "moods": {},
5616
6084
  * // "name": "my_name",
5617
6085
  * // "nutritionLog": {},
6086
+ * // "ovulationTest": {},
5618
6087
  * // "oxygenSaturation": {},
5619
6088
  * // "respiratoryRateSleepSummary": {},
5620
6089
  * // "runVo2Max": {},
@@ -5622,6 +6091,7 @@ export namespace health_v4 {
5622
6091
  * // "sleep": {},
5623
6092
  * // "steps": {},
5624
6093
  * // "swimLengthsData": {},
6094
+ * // "symptoms": {},
5625
6095
  * // "timeInHeartRateZone": {},
5626
6096
  * // "vo2Max": {},
5627
6097
  * // "weight": {}
@@ -5686,8 +6156,7 @@ export namespace health_v4 {
5686
6156
  | BodyResponseCallback<Schema$Operation>
5687
6157
  | BodyResponseCallback<Readable>,
5688
6158
  callback?:
5689
- | BodyResponseCallback<Schema$Operation>
5690
- | BodyResponseCallback<Readable>
6159
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5691
6160
  ):
5692
6161
  | void
5693
6162
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -5970,8 +6439,7 @@ export namespace health_v4 {
5970
6439
  exportExerciseTcx(
5971
6440
  params: Params$Resource$Users$Datatypes$Datapoints$Exportexercisetcx,
5972
6441
  options:
5973
- | MethodOptions
5974
- | BodyResponseCallback<Schema$ExportExerciseTcxResponse>,
6442
+ MethodOptions | BodyResponseCallback<Schema$ExportExerciseTcxResponse>,
5975
6443
  callback: BodyResponseCallback<Schema$ExportExerciseTcxResponse>
5976
6444
  ): void;
5977
6445
  exportExerciseTcx(
@@ -6113,8 +6581,11 @@ export namespace health_v4 {
6113
6581
  * // "height": {},
6114
6582
  * // "hydrationLog": {},
6115
6583
  * // "irregularRhythmNotification": {},
6584
+ * // "menstrualPeriod": {},
6585
+ * // "moods": {},
6116
6586
  * // "name": "my_name",
6117
6587
  * // "nutritionLog": {},
6588
+ * // "ovulationTest": {},
6118
6589
  * // "oxygenSaturation": {},
6119
6590
  * // "respiratoryRateSleepSummary": {},
6120
6591
  * // "runVo2Max": {},
@@ -6122,6 +6593,7 @@ export namespace health_v4 {
6122
6593
  * // "sleep": {},
6123
6594
  * // "steps": {},
6124
6595
  * // "swimLengthsData": {},
6596
+ * // "symptoms": {},
6125
6597
  * // "timeInHeartRateZone": {},
6126
6598
  * // "vo2Max": {},
6127
6599
  * // "weight": {}
@@ -6174,8 +6646,7 @@ export namespace health_v4 {
6174
6646
  | BodyResponseCallback<Schema$DataPoint>
6175
6647
  | BodyResponseCallback<Readable>,
6176
6648
  callback?:
6177
- | BodyResponseCallback<Schema$DataPoint>
6178
- | BodyResponseCallback<Readable>
6649
+ BodyResponseCallback<Schema$DataPoint> | BodyResponseCallback<Readable>
6179
6650
  ):
6180
6651
  | void
6181
6652
  | Promise<GaxiosResponseWithHTTP2<Schema$DataPoint>>
@@ -6302,8 +6773,7 @@ export namespace health_v4 {
6302
6773
  list(
6303
6774
  params: Params$Resource$Users$Datatypes$Datapoints$List,
6304
6775
  options:
6305
- | MethodOptions
6306
- | BodyResponseCallback<Schema$ListDataPointsResponse>,
6776
+ MethodOptions | BodyResponseCallback<Schema$ListDataPointsResponse>,
6307
6777
  callback: BodyResponseCallback<Schema$ListDataPointsResponse>
6308
6778
  ): void;
6309
6779
  list(
@@ -6393,7 +6863,16 @@ export namespace health_v4 {
6393
6863
  * async function main() {
6394
6864
  * const auth = new google.auth.GoogleAuth({
6395
6865
  * // Scopes can be specified either as an array or as a single, space-delimited string.
6396
- * scopes: [],
6866
+ * scopes: [
6867
+ * 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly',
6868
+ * 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly',
6869
+ * 'https://www.googleapis.com/auth/googlehealth.location.writeonly',
6870
+ * 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly',
6871
+ * 'https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly',
6872
+ * 'https://www.googleapis.com/auth/googlehealth.nutrition.writeonly',
6873
+ * 'https://www.googleapis.com/auth/googlehealth.reproductive_health.writeonly',
6874
+ * 'https://www.googleapis.com/auth/googlehealth.sleep.writeonly',
6875
+ * ],
6397
6876
  * });
6398
6877
  *
6399
6878
  * // Acquire an auth client, and bind it to all future calls
@@ -6402,7 +6881,7 @@ export namespace health_v4 {
6402
6881
  *
6403
6882
  * // Do the magic
6404
6883
  * const res = await health.users.dataTypes.dataPoints.patch({
6405
- * // Identifier. Data point name, only supported for the subset of identifiable data types. For the majority of the data types, individual data points do not need to be identified and this field would be empty. Format: `users/{user\}/dataTypes/{data_type\}/dataPoints/{data_point\}` Example: `users/abcd1234/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The `{user\}` ID is a system-generated identifier, as described in Identity.health_user_id. The `{data_type\}` ID corresponds to the kebab-case version of the field names in the DataPoint data union field, e.g. `total-calories` for the `total_calories` field. The `{data_point\}` ID can be client-provided or system-generated. If client-provided, it must be a string of 4-63 characters, containing only lowercase letters, numbers, and hyphens.
6884
+ * // Identifier. Data point name, only supported for the subset of identifiable data types. For the majority of the data types, individual data points do not need to be identified and this field would be empty. Format: `users/{user\}/dataTypes/{data_type\}/dataPoints/{data_point\}` Example: `users/abcd1234/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The `{user\}` ID is a system-generated identifier, as described in Identity.health_user_id. The `{data_type\}` ID corresponds to the kebab-case version of the field names in the DataPoint data union field, e.g. `heart-rate` for the `heart_rate` field. The `{data_point\}` ID can be client-provided or system-generated. If client-provided, it must be a string of 4-63 characters, containing only lowercase letters, numbers, and hyphens.
6406
6885
  * name: 'users/my-user/dataTypes/my-dataType/dataPoints/my-dataPoint',
6407
6886
  *
6408
6887
  * // Request body metadata
@@ -6437,8 +6916,11 @@ export namespace health_v4 {
6437
6916
  * // "height": {},
6438
6917
  * // "hydrationLog": {},
6439
6918
  * // "irregularRhythmNotification": {},
6919
+ * // "menstrualPeriod": {},
6920
+ * // "moods": {},
6440
6921
  * // "name": "my_name",
6441
6922
  * // "nutritionLog": {},
6923
+ * // "ovulationTest": {},
6442
6924
  * // "oxygenSaturation": {},
6443
6925
  * // "respiratoryRateSleepSummary": {},
6444
6926
  * // "runVo2Max": {},
@@ -6446,6 +6928,7 @@ export namespace health_v4 {
6446
6928
  * // "sleep": {},
6447
6929
  * // "steps": {},
6448
6930
  * // "swimLengthsData": {},
6931
+ * // "symptoms": {},
6449
6932
  * // "timeInHeartRateZone": {},
6450
6933
  * // "vo2Max": {},
6451
6934
  * // "weight": {}
@@ -6510,8 +6993,7 @@ export namespace health_v4 {
6510
6993
  | BodyResponseCallback<Schema$Operation>
6511
6994
  | BodyResponseCallback<Readable>,
6512
6995
  callback?:
6513
- | BodyResponseCallback<Schema$Operation>
6514
- | BodyResponseCallback<Readable>
6996
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
6515
6997
  ):
6516
6998
  | void
6517
6999
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -6580,9 +7062,17 @@ export namespace health_v4 {
6580
7062
  * // Scopes can be specified either as an array or as a single, space-delimited string.
6581
7063
  * scopes: [
6582
7064
  * 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly',
7065
+ * 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly',
6583
7066
  * 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly',
7067
+ * 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly',
6584
7068
  * 'https://www.googleapis.com/auth/googlehealth.location.readonly',
7069
+ * 'https://www.googleapis.com/auth/googlehealth.location.writeonly',
7070
+ * 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly',
7071
+ * 'https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly',
7072
+ * 'https://www.googleapis.com/auth/googlehealth.nutrition.writeonly',
7073
+ * 'https://www.googleapis.com/auth/googlehealth.reproductive_health.writeonly',
6585
7074
  * 'https://www.googleapis.com/auth/googlehealth.sleep.readonly',
7075
+ * 'https://www.googleapis.com/auth/googlehealth.sleep.writeonly',
6586
7076
  * ],
6587
7077
  * });
6588
7078
  *
@@ -6592,7 +7082,7 @@ export namespace health_v4 {
6592
7082
  *
6593
7083
  * // Do the magic
6594
7084
  * const res = await health.users.dataTypes.dataPoints.reconcile({
6595
- * // 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\}` The supported values are: - `users/me/dataSourceFamilies/all-sources` - default value - `users/me/dataSourceFamilies/google-wearables` - tracker devices - `users/me/dataSourceFamilies/google-sources` - Google first party sources
7085
+ * // 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.
6596
7086
  * dataSourceFamily: 'placeholder-value',
6597
7087
  * // 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.
6598
7088
  * filter: 'placeholder-value',
@@ -6799,8 +7289,7 @@ export namespace health_v4 {
6799
7289
  rollUp(
6800
7290
  params: Params$Resource$Users$Datatypes$Datapoints$Rollup,
6801
7291
  options:
6802
- | MethodOptions
6803
- | BodyResponseCallback<Schema$RollUpDataPointsResponse>,
7292
+ MethodOptions | BodyResponseCallback<Schema$RollUpDataPointsResponse>,
6804
7293
  callback: BodyResponseCallback<Schema$RollUpDataPointsResponse>
6805
7294
  ): void;
6806
7295
  rollUp(
@@ -6940,7 +7429,7 @@ export namespace health_v4 {
6940
7429
  }
6941
7430
  export interface Params$Resource$Users$Datatypes$Datapoints$Patch extends StandardParameters {
6942
7431
  /**
6943
- * Identifier. Data point name, only supported for the subset of identifiable data types. For the majority of the data types, individual data points do not need to be identified and this field would be empty. Format: `users/{user\}/dataTypes/{data_type\}/dataPoints/{data_point\}` Example: `users/abcd1234/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The `{user\}` ID is a system-generated identifier, as described in Identity.health_user_id. The `{data_type\}` ID corresponds to the kebab-case version of the field names in the DataPoint data union field, e.g. `total-calories` for the `total_calories` field. The `{data_point\}` ID can be client-provided or system-generated. If client-provided, it must be a string of 4-63 characters, containing only lowercase letters, numbers, and hyphens.
7432
+ * Identifier. Data point name, only supported for the subset of identifiable data types. For the majority of the data types, individual data points do not need to be identified and this field would be empty. Format: `users/{user\}/dataTypes/{data_type\}/dataPoints/{data_point\}` Example: `users/abcd1234/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef` The `{user\}` ID is a system-generated identifier, as described in Identity.health_user_id. The `{data_type\}` ID corresponds to the kebab-case version of the field names in the DataPoint data union field, e.g. `heart-rate` for the `heart_rate` field. The `{data_point\}` ID can be client-provided or system-generated. If client-provided, it must be a string of 4-63 characters, containing only lowercase letters, numbers, and hyphens.
6944
7433
  */
6945
7434
  name?: string;
6946
7435
 
@@ -6951,7 +7440,7 @@ export namespace health_v4 {
6951
7440
  }
6952
7441
  export interface Params$Resource$Users$Datatypes$Datapoints$Reconcile extends StandardParameters {
6953
7442
  /**
6954
- * 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\}` The supported values are: - `users/me/dataSourceFamilies/all-sources` - default value - `users/me/dataSourceFamilies/google-wearables` - tracker devices - `users/me/dataSourceFamilies/google-sources` - Google first party sources
7443
+ * 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.
6955
7444
  */
6956
7445
  dataSourceFamily?: string;
6957
7446
  /**
@@ -7205,8 +7694,7 @@ export namespace health_v4 {
7205
7694
  list(
7206
7695
  params: Params$Resource$Users$Paireddevices$List,
7207
7696
  options:
7208
- | MethodOptions
7209
- | BodyResponseCallback<Schema$ListPairedDevicesResponse>,
7697
+ MethodOptions | BodyResponseCallback<Schema$ListPairedDevicesResponse>,
7210
7698
  callback: BodyResponseCallback<Schema$ListPairedDevicesResponse>
7211
7699
  ): void;
7212
7700
  list(