@googleapis/health 2.0.0 → 3.0.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 +11 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v4.d.ts +284 -35
- package/build/v4.js +90 -0
- package/build/v4.js.map +1 -1
- package/package.json +1 -1
- package/v4.ts +467 -75
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
|
}
|
|
@@ -947,7 +949,7 @@ 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. `
|
|
952
|
+
* 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
953
|
*/
|
|
952
954
|
name?: string | null;
|
|
953
955
|
/**
|
|
@@ -1155,7 +1157,7 @@ export namespace health_v4 {
|
|
|
1155
1157
|
*/
|
|
1156
1158
|
export interface Schema$Empty {}
|
|
1157
1159
|
/**
|
|
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 `
|
|
1160
|
+
* 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
1161
|
*/
|
|
1160
1162
|
export interface Schema$EndpointAuthorization {
|
|
1161
1163
|
/**
|
|
@@ -1172,7 +1174,7 @@ export namespace health_v4 {
|
|
|
1172
1174
|
*/
|
|
1173
1175
|
export interface Schema$EnergyQuantity {
|
|
1174
1176
|
/**
|
|
1175
|
-
* Required.
|
|
1177
|
+
* Required. The energy value in kilocalories.
|
|
1176
1178
|
*/
|
|
1177
1179
|
kcal?: number | null;
|
|
1178
1180
|
/**
|
|
@@ -1419,6 +1421,15 @@ export namespace health_v4 {
|
|
|
1419
1421
|
*/
|
|
1420
1422
|
name?: string | null;
|
|
1421
1423
|
}
|
|
1424
|
+
/**
|
|
1425
|
+
* 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.
|
|
1426
|
+
*/
|
|
1427
|
+
export interface Schema$GoogleDevicesandservicesHealthV4User {
|
|
1428
|
+
/**
|
|
1429
|
+
* 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\}`
|
|
1430
|
+
*/
|
|
1431
|
+
name?: string | null;
|
|
1432
|
+
}
|
|
1422
1433
|
/**
|
|
1423
1434
|
* 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
1435
|
*/
|
|
@@ -1556,6 +1567,23 @@ export namespace health_v4 {
|
|
|
1556
1567
|
*/
|
|
1557
1568
|
sampleTime?: Schema$ObservationSampleTime;
|
|
1558
1569
|
}
|
|
1570
|
+
/**
|
|
1571
|
+
* 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.
|
|
1572
|
+
*/
|
|
1573
|
+
export interface Schema$HttpBody {
|
|
1574
|
+
/**
|
|
1575
|
+
* The HTTP Content-Type header value specifying the content type of the body.
|
|
1576
|
+
*/
|
|
1577
|
+
contentType?: string | null;
|
|
1578
|
+
/**
|
|
1579
|
+
* The HTTP request/response body as raw binary.
|
|
1580
|
+
*/
|
|
1581
|
+
data?: string | null;
|
|
1582
|
+
/**
|
|
1583
|
+
* Application specific response metadata. Must be set in the first response for streaming APIs.
|
|
1584
|
+
*/
|
|
1585
|
+
extensions?: Array<{[key: string]: any}> | null;
|
|
1586
|
+
}
|
|
1559
1587
|
/**
|
|
1560
1588
|
* Represents an HTTP header.
|
|
1561
1589
|
*/
|
|
@@ -1736,6 +1764,23 @@ export namespace health_v4 {
|
|
|
1736
1764
|
*/
|
|
1737
1765
|
subscriptions?: Schema$Subscription[];
|
|
1738
1766
|
}
|
|
1767
|
+
/**
|
|
1768
|
+
* 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
|
|
1769
|
+
*/
|
|
1770
|
+
export interface Schema$ManifestParams {
|
|
1771
|
+
/**
|
|
1772
|
+
* Optional. Integer upper bound on the length of embedded payloads
|
|
1773
|
+
*/
|
|
1774
|
+
embeddedLengthMax?: number | null;
|
|
1775
|
+
/**
|
|
1776
|
+
* Optional.
|
|
1777
|
+
*/
|
|
1778
|
+
passcode?: string | null;
|
|
1779
|
+
/**
|
|
1780
|
+
* Required. A string describing the recipient (e.g.,the name of an organization or person) suitable for display to the Receiving User
|
|
1781
|
+
*/
|
|
1782
|
+
recipient?: string | null;
|
|
1783
|
+
}
|
|
1739
1784
|
/**
|
|
1740
1785
|
* Software as Medical Device (SaMD) metadata. Used to construct the Unique Device Identifier (UDI).
|
|
1741
1786
|
*/
|
|
@@ -1844,11 +1889,11 @@ export namespace health_v4 {
|
|
|
1844
1889
|
*/
|
|
1845
1890
|
export interface Schema$NutrientQuantity {
|
|
1846
1891
|
/**
|
|
1847
|
-
* Required.
|
|
1892
|
+
* Required. The nutrient type.
|
|
1848
1893
|
*/
|
|
1849
1894
|
nutrient?: string | null;
|
|
1850
1895
|
/**
|
|
1851
|
-
* Required.
|
|
1896
|
+
* Required. The quantity of the nutrient, measured in grams.
|
|
1852
1897
|
*/
|
|
1853
1898
|
quantity?: Schema$WeightQuantity;
|
|
1854
1899
|
}
|
|
@@ -1866,47 +1911,47 @@ export namespace health_v4 {
|
|
|
1866
1911
|
quantity?: Schema$WeightQuantityRollup;
|
|
1867
1912
|
}
|
|
1868
1913
|
/**
|
|
1869
|
-
* Holds information about a user
|
|
1914
|
+
* 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
1915
|
*/
|
|
1871
1916
|
export interface Schema$NutritionLog {
|
|
1872
1917
|
/**
|
|
1873
|
-
* Optional.
|
|
1918
|
+
* Optional. The total energy of the food, measured in kilocalories (`kcal`).
|
|
1874
1919
|
*/
|
|
1875
1920
|
energy?: Schema$EnergyQuantity;
|
|
1876
1921
|
/**
|
|
1877
|
-
* Optional.
|
|
1922
|
+
* Optional. The energy from fat, measured in kilocalories (`kcal`).
|
|
1878
1923
|
*/
|
|
1879
1924
|
energyFromFat?: Schema$EnergyQuantity;
|
|
1880
1925
|
/**
|
|
1881
|
-
*
|
|
1926
|
+
* 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
1927
|
*/
|
|
1883
1928
|
food?: string | null;
|
|
1884
1929
|
/**
|
|
1885
|
-
*
|
|
1930
|
+
* The display name of the food. For identified food logs, this is populated automatically from the referenced food.
|
|
1886
1931
|
*/
|
|
1887
1932
|
foodDisplayName?: string | null;
|
|
1888
1933
|
/**
|
|
1889
|
-
* Required.
|
|
1934
|
+
* Required. The time window when the food was logged.
|
|
1890
1935
|
*/
|
|
1891
1936
|
interval?: Schema$SessionTimeInterval;
|
|
1892
1937
|
/**
|
|
1893
|
-
* Optional.
|
|
1938
|
+
* Optional. The meal category. One of `BREAKFAST`, `LUNCH`, `DINNER`, or `SNACK`.
|
|
1894
1939
|
*/
|
|
1895
1940
|
mealType?: string | null;
|
|
1896
1941
|
/**
|
|
1897
|
-
* Optional.
|
|
1942
|
+
* Optional. An array of individual nutrient values for the nutrition log.
|
|
1898
1943
|
*/
|
|
1899
1944
|
nutrients?: Schema$NutrientQuantity[];
|
|
1900
1945
|
/**
|
|
1901
|
-
* Optional.
|
|
1946
|
+
* Optional. The serving information for the logged food.
|
|
1902
1947
|
*/
|
|
1903
1948
|
serving?: Schema$Serving;
|
|
1904
1949
|
/**
|
|
1905
|
-
* Optional.
|
|
1950
|
+
* Optional. The total carbohydrate content, measured in grams.
|
|
1906
1951
|
*/
|
|
1907
1952
|
totalCarbohydrate?: Schema$WeightQuantity;
|
|
1908
1953
|
/**
|
|
1909
|
-
* Optional.
|
|
1954
|
+
* Optional. The total fat content, measured in grams.
|
|
1910
1955
|
*/
|
|
1911
1956
|
totalFat?: Schema$WeightQuantity;
|
|
1912
1957
|
}
|
|
@@ -2192,7 +2237,7 @@ export namespace health_v4 {
|
|
|
2192
2237
|
*/
|
|
2193
2238
|
dailyVo2Max?: Schema$DailyVO2Max;
|
|
2194
2239
|
/**
|
|
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. `
|
|
2240
|
+
* 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
2241
|
*/
|
|
2197
2242
|
dataPointName?: string | null;
|
|
2198
2243
|
/**
|
|
@@ -2441,7 +2486,7 @@ export namespace health_v4 {
|
|
|
2441
2486
|
*/
|
|
2442
2487
|
range?: Schema$Interval;
|
|
2443
2488
|
/**
|
|
2444
|
-
* Required. The size of the time window to group data points into before applying the aggregation functions.
|
|
2489
|
+
* Required. The size of the time window to group data points into before applying the aggregation functions. Must be at least 1 second.
|
|
2445
2490
|
*/
|
|
2446
2491
|
windowSize?: string | null;
|
|
2447
2492
|
}
|
|
@@ -2511,7 +2556,7 @@ export namespace health_v4 {
|
|
|
2511
2556
|
*/
|
|
2512
2557
|
export interface Schema$Serving {
|
|
2513
2558
|
/**
|
|
2514
|
-
* Optional.
|
|
2559
|
+
* Optional. The number of servings.
|
|
2515
2560
|
*/
|
|
2516
2561
|
amount?: number | null;
|
|
2517
2562
|
/**
|
|
@@ -2630,7 +2675,7 @@ export namespace health_v4 {
|
|
|
2630
2675
|
*/
|
|
2631
2676
|
interval?: Schema$SessionTimeInterval;
|
|
2632
2677
|
/**
|
|
2633
|
-
* Optional. Sleep metadata:
|
|
2678
|
+
* Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and `stages_status`.
|
|
2634
2679
|
*/
|
|
2635
2680
|
metadata?: Schema$SleepMetadata;
|
|
2636
2681
|
/**
|
|
@@ -2662,6 +2707,10 @@ export namespace health_v4 {
|
|
|
2662
2707
|
* Optional. Sleep identifier relevant in the context of the data source.
|
|
2663
2708
|
*/
|
|
2664
2709
|
externalId?: string | null;
|
|
2710
|
+
/**
|
|
2711
|
+
* 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.
|
|
2712
|
+
*/
|
|
2713
|
+
mainSleep?: boolean | null;
|
|
2665
2714
|
/**
|
|
2666
2715
|
* Output only. Some sleeps autodetected by algorithms can be manually edited by users.
|
|
2667
2716
|
*/
|
|
@@ -2671,7 +2720,7 @@ export namespace health_v4 {
|
|
|
2671
2720
|
*/
|
|
2672
2721
|
nap?: boolean | null;
|
|
2673
2722
|
/**
|
|
2674
|
-
* Output only. Sleep and sleep stages algorithms finished processing.
|
|
2723
|
+
* 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
2724
|
*/
|
|
2676
2725
|
processed?: boolean | null;
|
|
2677
2726
|
/**
|
|
@@ -2881,7 +2930,7 @@ export namespace health_v4 {
|
|
|
2881
2930
|
*/
|
|
2882
2931
|
export interface Schema$Subscription {
|
|
2883
2932
|
/**
|
|
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.
|
|
2933
|
+
* 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
2934
|
*/
|
|
2886
2935
|
dataTypes?: string[] | null;
|
|
2887
2936
|
/**
|
|
@@ -3010,7 +3059,7 @@ export namespace health_v4 {
|
|
|
3010
3059
|
version?: string | null;
|
|
3011
3060
|
}
|
|
3012
3061
|
/**
|
|
3013
|
-
* Represents the result of the rollup of the user's total calories.
|
|
3062
|
+
* 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
3063
|
*/
|
|
3015
3064
|
export interface Schema$TotalCaloriesRollupValue {
|
|
3016
3065
|
/**
|
|
@@ -3083,7 +3132,7 @@ export namespace health_v4 {
|
|
|
3083
3132
|
*/
|
|
3084
3133
|
export interface Schema$WeightQuantity {
|
|
3085
3134
|
/**
|
|
3086
|
-
* Required.
|
|
3135
|
+
* Required. The weight value in grams.
|
|
3087
3136
|
*/
|
|
3088
3137
|
grams?: number | null;
|
|
3089
3138
|
/**
|
|
@@ -3164,7 +3213,7 @@ export namespace health_v4 {
|
|
|
3164
3213
|
*
|
|
3165
3214
|
* // Do the magic
|
|
3166
3215
|
* const res = await health.projects.subscribers.create({
|
|
3167
|
-
* // Required. The parent resource where this subscriber will be created. Format: projects/{
|
|
3216
|
+
* // Required. The parent resource where this subscriber will be created. Format: projects/{project_number\} Example: projects/1234567890
|
|
3168
3217
|
* parent: 'projects/my-project',
|
|
3169
3218
|
* // 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
3219
|
* subscriberId: 'placeholder-value',
|
|
@@ -3237,8 +3286,7 @@ export namespace health_v4 {
|
|
|
3237
3286
|
| BodyResponseCallback<Schema$Operation>
|
|
3238
3287
|
| BodyResponseCallback<Readable>,
|
|
3239
3288
|
callback?:
|
|
3240
|
-
|
|
3241
|
-
| BodyResponseCallback<Readable>
|
|
3289
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
3242
3290
|
):
|
|
3243
3291
|
| void
|
|
3244
3292
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -3380,8 +3428,7 @@ export namespace health_v4 {
|
|
|
3380
3428
|
| BodyResponseCallback<Schema$Operation>
|
|
3381
3429
|
| BodyResponseCallback<Readable>,
|
|
3382
3430
|
callback?:
|
|
3383
|
-
|
|
3384
|
-
| BodyResponseCallback<Readable>
|
|
3431
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
3385
3432
|
):
|
|
3386
3433
|
| void
|
|
3387
3434
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -3502,8 +3549,7 @@ export namespace health_v4 {
|
|
|
3502
3549
|
list(
|
|
3503
3550
|
params: Params$Resource$Projects$Subscribers$List,
|
|
3504
3551
|
options:
|
|
3505
|
-
|
|
|
3506
|
-
| BodyResponseCallback<Schema$ListSubscribersResponse>,
|
|
3552
|
+
MethodOptions | BodyResponseCallback<Schema$ListSubscribersResponse>,
|
|
3507
3553
|
callback: BodyResponseCallback<Schema$ListSubscribersResponse>
|
|
3508
3554
|
): void;
|
|
3509
3555
|
list(
|
|
@@ -3679,8 +3725,7 @@ export namespace health_v4 {
|
|
|
3679
3725
|
| BodyResponseCallback<Schema$Operation>
|
|
3680
3726
|
| BodyResponseCallback<Readable>,
|
|
3681
3727
|
callback?:
|
|
3682
|
-
|
|
3683
|
-
| BodyResponseCallback<Readable>
|
|
3728
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
3684
3729
|
):
|
|
3685
3730
|
| void
|
|
3686
3731
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -3728,7 +3773,7 @@ export namespace health_v4 {
|
|
|
3728
3773
|
|
|
3729
3774
|
export interface Params$Resource$Projects$Subscribers$Create extends StandardParameters {
|
|
3730
3775
|
/**
|
|
3731
|
-
* Required. The parent resource where this subscriber will be created. Format: projects/{
|
|
3776
|
+
* Required. The parent resource where this subscriber will be created. Format: projects/{project_number\} Example: projects/1234567890
|
|
3732
3777
|
*/
|
|
3733
3778
|
parent?: string;
|
|
3734
3779
|
/**
|
|
@@ -4024,8 +4069,7 @@ export namespace health_v4 {
|
|
|
4024
4069
|
| BodyResponseCallback<Schema$Empty>
|
|
4025
4070
|
| BodyResponseCallback<Readable>,
|
|
4026
4071
|
callback?:
|
|
4027
|
-
|
|
4028
|
-
| BodyResponseCallback<Readable>
|
|
4072
|
+
BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
|
|
4029
4073
|
):
|
|
4030
4074
|
| void
|
|
4031
4075
|
| Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
|
|
@@ -4102,7 +4146,7 @@ export namespace health_v4 {
|
|
|
4102
4146
|
*
|
|
4103
4147
|
* // Do the magic
|
|
4104
4148
|
* 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 `
|
|
4149
|
+
* // 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
4150
|
* filter: 'placeholder-value',
|
|
4107
4151
|
* // 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
4152
|
* pageSize: 'placeholder-value',
|
|
@@ -4148,8 +4192,7 @@ export namespace health_v4 {
|
|
|
4148
4192
|
list(
|
|
4149
4193
|
params: Params$Resource$Projects$Subscribers$Subscriptions$List,
|
|
4150
4194
|
options:
|
|
4151
|
-
|
|
|
4152
|
-
| BodyResponseCallback<Schema$ListSubscriptionsResponse>,
|
|
4195
|
+
MethodOptions | BodyResponseCallback<Schema$ListSubscriptionsResponse>,
|
|
4153
4196
|
callback: BodyResponseCallback<Schema$ListSubscriptionsResponse>
|
|
4154
4197
|
): void;
|
|
4155
4198
|
list(
|
|
@@ -4391,7 +4434,7 @@ export namespace health_v4 {
|
|
|
4391
4434
|
}
|
|
4392
4435
|
export interface Params$Resource$Projects$Subscribers$Subscriptions$List extends StandardParameters {
|
|
4393
4436
|
/**
|
|
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 `
|
|
4437
|
+
* 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
4438
|
*/
|
|
4396
4439
|
filter?: string;
|
|
4397
4440
|
/**
|
|
@@ -4423,6 +4466,340 @@ export namespace health_v4 {
|
|
|
4423
4466
|
requestBody?: Schema$Subscription;
|
|
4424
4467
|
}
|
|
4425
4468
|
|
|
4469
|
+
export class Resource$Shl {
|
|
4470
|
+
context: APIRequestContext;
|
|
4471
|
+
m: Resource$Shl$M;
|
|
4472
|
+
r: Resource$Shl$R;
|
|
4473
|
+
constructor(context: APIRequestContext) {
|
|
4474
|
+
this.context = context;
|
|
4475
|
+
this.m = new Resource$Shl$M(this.context);
|
|
4476
|
+
this.r = new Resource$Shl$R(this.context);
|
|
4477
|
+
}
|
|
4478
|
+
}
|
|
4479
|
+
|
|
4480
|
+
export class Resource$Shl$M {
|
|
4481
|
+
context: APIRequestContext;
|
|
4482
|
+
constructor(context: APIRequestContext) {
|
|
4483
|
+
this.context = context;
|
|
4484
|
+
}
|
|
4485
|
+
|
|
4486
|
+
/**
|
|
4487
|
+
* Forward a manifest request for a given SHL
|
|
4488
|
+
* @example
|
|
4489
|
+
* ```js
|
|
4490
|
+
* // Before running the sample:
|
|
4491
|
+
* // - Enable the API at:
|
|
4492
|
+
* // https://console.developers.google.com/apis/api/health.googleapis.com
|
|
4493
|
+
* // - Login into gcloud by running:
|
|
4494
|
+
* // ```sh
|
|
4495
|
+
* // $ gcloud auth application-default login
|
|
4496
|
+
* // ```
|
|
4497
|
+
* // - Install the npm module by running:
|
|
4498
|
+
* // ```sh
|
|
4499
|
+
* // $ npm install googleapis
|
|
4500
|
+
* // ```
|
|
4501
|
+
*
|
|
4502
|
+
* const {google} = require('googleapis');
|
|
4503
|
+
* const health = google.health('v4');
|
|
4504
|
+
*
|
|
4505
|
+
* async function main() {
|
|
4506
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4507
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4508
|
+
* scopes: [],
|
|
4509
|
+
* });
|
|
4510
|
+
*
|
|
4511
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4512
|
+
* const authClient = await auth.getClient();
|
|
4513
|
+
* google.options({auth: authClient});
|
|
4514
|
+
*
|
|
4515
|
+
* // Do the magic
|
|
4516
|
+
* const res = await health.shl.m.getShlManifest({
|
|
4517
|
+
* // Required. External ID mapping to a ShlSharedLinkCapabilityToken object See https://docs.google.com/document/d/1Pch20pxJHRbsaMxp0EYgs3ZU0Gu7QTUznk8LhvbQvfY/edit?tab=t.0#heading=h.17wg41voij6q
|
|
4518
|
+
* externalShlId: 'placeholder-value',
|
|
4519
|
+
*
|
|
4520
|
+
* // Request body metadata
|
|
4521
|
+
* requestBody: {
|
|
4522
|
+
* // request body parameters
|
|
4523
|
+
* // {
|
|
4524
|
+
* // "embeddedLengthMax": 0,
|
|
4525
|
+
* // "passcode": "my_passcode",
|
|
4526
|
+
* // "recipient": "my_recipient"
|
|
4527
|
+
* // }
|
|
4528
|
+
* },
|
|
4529
|
+
* });
|
|
4530
|
+
* console.log(res.data);
|
|
4531
|
+
*
|
|
4532
|
+
* // Example response
|
|
4533
|
+
* // {
|
|
4534
|
+
* // "contentType": "my_contentType",
|
|
4535
|
+
* // "data": "my_data",
|
|
4536
|
+
* // "extensions": []
|
|
4537
|
+
* // }
|
|
4538
|
+
* }
|
|
4539
|
+
*
|
|
4540
|
+
* main().catch(e => {
|
|
4541
|
+
* console.error(e);
|
|
4542
|
+
* throw e;
|
|
4543
|
+
* });
|
|
4544
|
+
*
|
|
4545
|
+
* ```
|
|
4546
|
+
*
|
|
4547
|
+
* @param params - Parameters for request
|
|
4548
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4549
|
+
* @param callback - Optional callback that handles the response.
|
|
4550
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4551
|
+
*/
|
|
4552
|
+
getShlManifest(
|
|
4553
|
+
params: Params$Resource$Shl$M$Getshlmanifest,
|
|
4554
|
+
options: StreamMethodOptions
|
|
4555
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4556
|
+
getShlManifest(
|
|
4557
|
+
params?: Params$Resource$Shl$M$Getshlmanifest,
|
|
4558
|
+
options?: MethodOptions
|
|
4559
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$HttpBody>>;
|
|
4560
|
+
getShlManifest(
|
|
4561
|
+
params: Params$Resource$Shl$M$Getshlmanifest,
|
|
4562
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4563
|
+
callback: BodyResponseCallback<Readable>
|
|
4564
|
+
): void;
|
|
4565
|
+
getShlManifest(
|
|
4566
|
+
params: Params$Resource$Shl$M$Getshlmanifest,
|
|
4567
|
+
options: MethodOptions | BodyResponseCallback<Schema$HttpBody>,
|
|
4568
|
+
callback: BodyResponseCallback<Schema$HttpBody>
|
|
4569
|
+
): void;
|
|
4570
|
+
getShlManifest(
|
|
4571
|
+
params: Params$Resource$Shl$M$Getshlmanifest,
|
|
4572
|
+
callback: BodyResponseCallback<Schema$HttpBody>
|
|
4573
|
+
): void;
|
|
4574
|
+
getShlManifest(callback: BodyResponseCallback<Schema$HttpBody>): void;
|
|
4575
|
+
getShlManifest(
|
|
4576
|
+
paramsOrCallback?:
|
|
4577
|
+
| Params$Resource$Shl$M$Getshlmanifest
|
|
4578
|
+
| BodyResponseCallback<Schema$HttpBody>
|
|
4579
|
+
| BodyResponseCallback<Readable>,
|
|
4580
|
+
optionsOrCallback?:
|
|
4581
|
+
| MethodOptions
|
|
4582
|
+
| StreamMethodOptions
|
|
4583
|
+
| BodyResponseCallback<Schema$HttpBody>
|
|
4584
|
+
| BodyResponseCallback<Readable>,
|
|
4585
|
+
callback?:
|
|
4586
|
+
BodyResponseCallback<Schema$HttpBody> | BodyResponseCallback<Readable>
|
|
4587
|
+
):
|
|
4588
|
+
| void
|
|
4589
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$HttpBody>>
|
|
4590
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
4591
|
+
let params = (paramsOrCallback ||
|
|
4592
|
+
{}) as Params$Resource$Shl$M$Getshlmanifest;
|
|
4593
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4594
|
+
|
|
4595
|
+
if (typeof paramsOrCallback === 'function') {
|
|
4596
|
+
callback = paramsOrCallback;
|
|
4597
|
+
params = {} as Params$Resource$Shl$M$Getshlmanifest;
|
|
4598
|
+
options = {};
|
|
4599
|
+
}
|
|
4600
|
+
|
|
4601
|
+
if (typeof optionsOrCallback === 'function') {
|
|
4602
|
+
callback = optionsOrCallback;
|
|
4603
|
+
options = {};
|
|
4604
|
+
}
|
|
4605
|
+
|
|
4606
|
+
const rootUrl = options.rootUrl || 'https://health.googleapis.com/';
|
|
4607
|
+
const parameters = {
|
|
4608
|
+
options: Object.assign(
|
|
4609
|
+
{
|
|
4610
|
+
url: (rootUrl + '/v4/shl/m/{externalShlId}').replace(
|
|
4611
|
+
/([^:]\/)\/+/g,
|
|
4612
|
+
'$1'
|
|
4613
|
+
),
|
|
4614
|
+
method: 'POST',
|
|
4615
|
+
apiVersion: '',
|
|
4616
|
+
},
|
|
4617
|
+
options
|
|
4618
|
+
),
|
|
4619
|
+
params,
|
|
4620
|
+
requiredParams: ['externalShlId'],
|
|
4621
|
+
pathParams: ['externalShlId'],
|
|
4622
|
+
context: this.context,
|
|
4623
|
+
};
|
|
4624
|
+
if (callback) {
|
|
4625
|
+
createAPIRequest<Schema$HttpBody>(
|
|
4626
|
+
parameters,
|
|
4627
|
+
callback as BodyResponseCallback<unknown>
|
|
4628
|
+
);
|
|
4629
|
+
} else {
|
|
4630
|
+
return createAPIRequest<Schema$HttpBody>(parameters);
|
|
4631
|
+
}
|
|
4632
|
+
}
|
|
4633
|
+
}
|
|
4634
|
+
|
|
4635
|
+
export interface Params$Resource$Shl$M$Getshlmanifest extends StandardParameters {
|
|
4636
|
+
/**
|
|
4637
|
+
* Required. External ID mapping to a ShlSharedLinkCapabilityToken object See https://docs.google.com/document/d/1Pch20pxJHRbsaMxp0EYgs3ZU0Gu7QTUznk8LhvbQvfY/edit?tab=t.0#heading=h.17wg41voij6q
|
|
4638
|
+
*/
|
|
4639
|
+
externalShlId?: string;
|
|
4640
|
+
|
|
4641
|
+
/**
|
|
4642
|
+
* Request body metadata
|
|
4643
|
+
*/
|
|
4644
|
+
requestBody?: Schema$ManifestParams;
|
|
4645
|
+
}
|
|
4646
|
+
|
|
4647
|
+
export class Resource$Shl$R {
|
|
4648
|
+
context: APIRequestContext;
|
|
4649
|
+
constructor(context: APIRequestContext) {
|
|
4650
|
+
this.context = context;
|
|
4651
|
+
}
|
|
4652
|
+
|
|
4653
|
+
/**
|
|
4654
|
+
* Forward a resource request for a given SHL
|
|
4655
|
+
* @example
|
|
4656
|
+
* ```js
|
|
4657
|
+
* // Before running the sample:
|
|
4658
|
+
* // - Enable the API at:
|
|
4659
|
+
* // https://console.developers.google.com/apis/api/health.googleapis.com
|
|
4660
|
+
* // - Login into gcloud by running:
|
|
4661
|
+
* // ```sh
|
|
4662
|
+
* // $ gcloud auth application-default login
|
|
4663
|
+
* // ```
|
|
4664
|
+
* // - Install the npm module by running:
|
|
4665
|
+
* // ```sh
|
|
4666
|
+
* // $ npm install googleapis
|
|
4667
|
+
* // ```
|
|
4668
|
+
*
|
|
4669
|
+
* const {google} = require('googleapis');
|
|
4670
|
+
* const health = google.health('v4');
|
|
4671
|
+
*
|
|
4672
|
+
* async function main() {
|
|
4673
|
+
* const auth = new google.auth.GoogleAuth({
|
|
4674
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4675
|
+
* scopes: [],
|
|
4676
|
+
* });
|
|
4677
|
+
*
|
|
4678
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
4679
|
+
* const authClient = await auth.getClient();
|
|
4680
|
+
* google.options({auth: authClient});
|
|
4681
|
+
*
|
|
4682
|
+
* // Do the magic
|
|
4683
|
+
* const res = await health.shl.r.get({
|
|
4684
|
+
* // Required. External ID mapping to a ShlSharedLinkCapabilityToken object See https://docs.google.com/document/d/1Pch20pxJHRbsaMxp0EYgs3ZU0Gu7QTUznk8LhvbQvfY/edit?tab=t.0#heading=h.17wg41voij6q
|
|
4685
|
+
* externalShlId: 'placeholder-value',
|
|
4686
|
+
* // Required. Encoded, encrypted message containing resource access details
|
|
4687
|
+
* resourceToken: 'placeholder-value',
|
|
4688
|
+
* });
|
|
4689
|
+
* console.log(res.data);
|
|
4690
|
+
*
|
|
4691
|
+
* // Example response
|
|
4692
|
+
* // {
|
|
4693
|
+
* // "contentType": "my_contentType",
|
|
4694
|
+
* // "data": "my_data",
|
|
4695
|
+
* // "extensions": []
|
|
4696
|
+
* // }
|
|
4697
|
+
* }
|
|
4698
|
+
*
|
|
4699
|
+
* main().catch(e => {
|
|
4700
|
+
* console.error(e);
|
|
4701
|
+
* throw e;
|
|
4702
|
+
* });
|
|
4703
|
+
*
|
|
4704
|
+
* ```
|
|
4705
|
+
*
|
|
4706
|
+
* @param params - Parameters for request
|
|
4707
|
+
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
4708
|
+
* @param callback - Optional callback that handles the response.
|
|
4709
|
+
* @returns A promise if used with async/await, or void if used with a callback.
|
|
4710
|
+
*/
|
|
4711
|
+
get(
|
|
4712
|
+
params: Params$Resource$Shl$R$Get,
|
|
4713
|
+
options: StreamMethodOptions
|
|
4714
|
+
): Promise<GaxiosResponseWithHTTP2<Readable>>;
|
|
4715
|
+
get(
|
|
4716
|
+
params?: Params$Resource$Shl$R$Get,
|
|
4717
|
+
options?: MethodOptions
|
|
4718
|
+
): Promise<GaxiosResponseWithHTTP2<Schema$HttpBody>>;
|
|
4719
|
+
get(
|
|
4720
|
+
params: Params$Resource$Shl$R$Get,
|
|
4721
|
+
options: StreamMethodOptions | BodyResponseCallback<Readable>,
|
|
4722
|
+
callback: BodyResponseCallback<Readable>
|
|
4723
|
+
): void;
|
|
4724
|
+
get(
|
|
4725
|
+
params: Params$Resource$Shl$R$Get,
|
|
4726
|
+
options: MethodOptions | BodyResponseCallback<Schema$HttpBody>,
|
|
4727
|
+
callback: BodyResponseCallback<Schema$HttpBody>
|
|
4728
|
+
): void;
|
|
4729
|
+
get(
|
|
4730
|
+
params: Params$Resource$Shl$R$Get,
|
|
4731
|
+
callback: BodyResponseCallback<Schema$HttpBody>
|
|
4732
|
+
): void;
|
|
4733
|
+
get(callback: BodyResponseCallback<Schema$HttpBody>): void;
|
|
4734
|
+
get(
|
|
4735
|
+
paramsOrCallback?:
|
|
4736
|
+
| Params$Resource$Shl$R$Get
|
|
4737
|
+
| BodyResponseCallback<Schema$HttpBody>
|
|
4738
|
+
| BodyResponseCallback<Readable>,
|
|
4739
|
+
optionsOrCallback?:
|
|
4740
|
+
| MethodOptions
|
|
4741
|
+
| StreamMethodOptions
|
|
4742
|
+
| BodyResponseCallback<Schema$HttpBody>
|
|
4743
|
+
| BodyResponseCallback<Readable>,
|
|
4744
|
+
callback?:
|
|
4745
|
+
BodyResponseCallback<Schema$HttpBody> | BodyResponseCallback<Readable>
|
|
4746
|
+
):
|
|
4747
|
+
| void
|
|
4748
|
+
| Promise<GaxiosResponseWithHTTP2<Schema$HttpBody>>
|
|
4749
|
+
| Promise<GaxiosResponseWithHTTP2<Readable>> {
|
|
4750
|
+
let params = (paramsOrCallback || {}) as Params$Resource$Shl$R$Get;
|
|
4751
|
+
let options = (optionsOrCallback || {}) as MethodOptions;
|
|
4752
|
+
|
|
4753
|
+
if (typeof paramsOrCallback === 'function') {
|
|
4754
|
+
callback = paramsOrCallback;
|
|
4755
|
+
params = {} as Params$Resource$Shl$R$Get;
|
|
4756
|
+
options = {};
|
|
4757
|
+
}
|
|
4758
|
+
|
|
4759
|
+
if (typeof optionsOrCallback === 'function') {
|
|
4760
|
+
callback = optionsOrCallback;
|
|
4761
|
+
options = {};
|
|
4762
|
+
}
|
|
4763
|
+
|
|
4764
|
+
const rootUrl = options.rootUrl || 'https://health.googleapis.com/';
|
|
4765
|
+
const parameters = {
|
|
4766
|
+
options: Object.assign(
|
|
4767
|
+
{
|
|
4768
|
+
url: (
|
|
4769
|
+
rootUrl + '/v4/shl/r/{externalShlId}/{resourceToken}'
|
|
4770
|
+
).replace(/([^:]\/)\/+/g, '$1'),
|
|
4771
|
+
method: 'GET',
|
|
4772
|
+
apiVersion: '',
|
|
4773
|
+
},
|
|
4774
|
+
options
|
|
4775
|
+
),
|
|
4776
|
+
params,
|
|
4777
|
+
requiredParams: ['externalShlId', 'resourceToken'],
|
|
4778
|
+
pathParams: ['externalShlId', 'resourceToken'],
|
|
4779
|
+
context: this.context,
|
|
4780
|
+
};
|
|
4781
|
+
if (callback) {
|
|
4782
|
+
createAPIRequest<Schema$HttpBody>(
|
|
4783
|
+
parameters,
|
|
4784
|
+
callback as BodyResponseCallback<unknown>
|
|
4785
|
+
);
|
|
4786
|
+
} else {
|
|
4787
|
+
return createAPIRequest<Schema$HttpBody>(parameters);
|
|
4788
|
+
}
|
|
4789
|
+
}
|
|
4790
|
+
}
|
|
4791
|
+
|
|
4792
|
+
export interface Params$Resource$Shl$R$Get extends StandardParameters {
|
|
4793
|
+
/**
|
|
4794
|
+
* Required. External ID mapping to a ShlSharedLinkCapabilityToken object See https://docs.google.com/document/d/1Pch20pxJHRbsaMxp0EYgs3ZU0Gu7QTUznk8LhvbQvfY/edit?tab=t.0#heading=h.17wg41voij6q
|
|
4795
|
+
*/
|
|
4796
|
+
externalShlId?: string;
|
|
4797
|
+
/**
|
|
4798
|
+
* Required. Encoded, encrypted message containing resource access details
|
|
4799
|
+
*/
|
|
4800
|
+
resourceToken?: string;
|
|
4801
|
+
}
|
|
4802
|
+
|
|
4426
4803
|
export class Resource$Users {
|
|
4427
4804
|
context: APIRequestContext;
|
|
4428
4805
|
dataTypes: Resource$Users$Datatypes;
|
|
@@ -4457,7 +4834,9 @@ export namespace health_v4 {
|
|
|
4457
4834
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4458
4835
|
* scopes: [
|
|
4459
4836
|
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly',
|
|
4837
|
+
* 'https://www.googleapis.com/auth/googlehealth.ecg.readonly',
|
|
4460
4838
|
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.readonly',
|
|
4839
|
+
* 'https://www.googleapis.com/auth/googlehealth.irn.readonly',
|
|
4461
4840
|
* 'https://www.googleapis.com/auth/googlehealth.profile.readonly',
|
|
4462
4841
|
* 'https://www.googleapis.com/auth/googlehealth.settings.readonly',
|
|
4463
4842
|
* 'https://www.googleapis.com/auth/googlehealth.sleep.readonly',
|
|
@@ -4529,8 +4908,7 @@ export namespace health_v4 {
|
|
|
4529
4908
|
| BodyResponseCallback<Schema$Identity>
|
|
4530
4909
|
| BodyResponseCallback<Readable>,
|
|
4531
4910
|
callback?:
|
|
4532
|
-
|
|
4533
|
-
| BodyResponseCallback<Readable>
|
|
4911
|
+
BodyResponseCallback<Schema$Identity> | BodyResponseCallback<Readable>
|
|
4534
4912
|
):
|
|
4535
4913
|
| void
|
|
4536
4914
|
| Promise<GaxiosResponseWithHTTP2<Schema$Identity>>
|
|
@@ -4666,8 +5044,7 @@ export namespace health_v4 {
|
|
|
4666
5044
|
| BodyResponseCallback<Schema$IrnProfile>
|
|
4667
5045
|
| BodyResponseCallback<Readable>,
|
|
4668
5046
|
callback?:
|
|
4669
|
-
|
|
4670
|
-
| BodyResponseCallback<Readable>
|
|
5047
|
+
BodyResponseCallback<Schema$IrnProfile> | BodyResponseCallback<Readable>
|
|
4671
5048
|
):
|
|
4672
5049
|
| void
|
|
4673
5050
|
| Promise<GaxiosResponseWithHTTP2<Schema$IrnProfile>>
|
|
@@ -4806,8 +5183,7 @@ export namespace health_v4 {
|
|
|
4806
5183
|
| BodyResponseCallback<Schema$Profile>
|
|
4807
5184
|
| BodyResponseCallback<Readable>,
|
|
4808
5185
|
callback?:
|
|
4809
|
-
|
|
4810
|
-
| BodyResponseCallback<Readable>
|
|
5186
|
+
BodyResponseCallback<Schema$Profile> | BodyResponseCallback<Readable>
|
|
4811
5187
|
):
|
|
4812
5188
|
| void
|
|
4813
5189
|
| Promise<GaxiosResponseWithHTTP2<Schema$Profile>>
|
|
@@ -4953,8 +5329,7 @@ export namespace health_v4 {
|
|
|
4953
5329
|
| BodyResponseCallback<Schema$Settings>
|
|
4954
5330
|
| BodyResponseCallback<Readable>,
|
|
4955
5331
|
callback?:
|
|
4956
|
-
|
|
4957
|
-
| BodyResponseCallback<Readable>
|
|
5332
|
+
BodyResponseCallback<Schema$Settings> | BodyResponseCallback<Readable>
|
|
4958
5333
|
):
|
|
4959
5334
|
| void
|
|
4960
5335
|
| Promise<GaxiosResponseWithHTTP2<Schema$Settings>>
|
|
@@ -5021,7 +5396,7 @@ export namespace health_v4 {
|
|
|
5021
5396
|
* async function main() {
|
|
5022
5397
|
* const auth = new google.auth.GoogleAuth({
|
|
5023
5398
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5024
|
-
* scopes: [],
|
|
5399
|
+
* scopes: ['https://www.googleapis.com/auth/googlehealth.profile.writeonly'],
|
|
5025
5400
|
* });
|
|
5026
5401
|
*
|
|
5027
5402
|
* // Acquire an auth client, and bind it to all future calls
|
|
@@ -5109,8 +5484,7 @@ export namespace health_v4 {
|
|
|
5109
5484
|
| BodyResponseCallback<Schema$Profile>
|
|
5110
5485
|
| BodyResponseCallback<Readable>,
|
|
5111
5486
|
callback?:
|
|
5112
|
-
|
|
5113
|
-
| BodyResponseCallback<Readable>
|
|
5487
|
+
BodyResponseCallback<Schema$Profile> | BodyResponseCallback<Readable>
|
|
5114
5488
|
):
|
|
5115
5489
|
| void
|
|
5116
5490
|
| Promise<GaxiosResponseWithHTTP2<Schema$Profile>>
|
|
@@ -5177,7 +5551,7 @@ export namespace health_v4 {
|
|
|
5177
5551
|
* async function main() {
|
|
5178
5552
|
* const auth = new google.auth.GoogleAuth({
|
|
5179
5553
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5180
|
-
* scopes: [],
|
|
5554
|
+
* scopes: ['https://www.googleapis.com/auth/googlehealth.settings.writeonly'],
|
|
5181
5555
|
* });
|
|
5182
5556
|
*
|
|
5183
5557
|
* // Acquire an auth client, and bind it to all future calls
|
|
@@ -5281,8 +5655,7 @@ export namespace health_v4 {
|
|
|
5281
5655
|
| BodyResponseCallback<Schema$Settings>
|
|
5282
5656
|
| BodyResponseCallback<Readable>,
|
|
5283
5657
|
callback?:
|
|
5284
|
-
|
|
5285
|
-
| BodyResponseCallback<Readable>
|
|
5658
|
+
BodyResponseCallback<Schema$Settings> | BodyResponseCallback<Readable>
|
|
5286
5659
|
):
|
|
5287
5660
|
| void
|
|
5288
5661
|
| Promise<GaxiosResponseWithHTTP2<Schema$Settings>>
|
|
@@ -5420,7 +5793,16 @@ export namespace health_v4 {
|
|
|
5420
5793
|
* async function main() {
|
|
5421
5794
|
* const auth = new google.auth.GoogleAuth({
|
|
5422
5795
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5423
|
-
* scopes: [
|
|
5796
|
+
* scopes: [
|
|
5797
|
+
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly',
|
|
5798
|
+
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly',
|
|
5799
|
+
* 'https://www.googleapis.com/auth/googlehealth.location.writeonly',
|
|
5800
|
+
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly',
|
|
5801
|
+
* 'https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly',
|
|
5802
|
+
* 'https://www.googleapis.com/auth/googlehealth.nutrition.writeonly',
|
|
5803
|
+
* 'https://www.googleapis.com/auth/googlehealth.reproductive_health.writeonly',
|
|
5804
|
+
* 'https://www.googleapis.com/auth/googlehealth.sleep.writeonly',
|
|
5805
|
+
* ],
|
|
5424
5806
|
* });
|
|
5425
5807
|
*
|
|
5426
5808
|
* // Acquire an auth client, and bind it to all future calls
|
|
@@ -5498,8 +5880,7 @@ export namespace health_v4 {
|
|
|
5498
5880
|
| BodyResponseCallback<Schema$Operation>
|
|
5499
5881
|
| BodyResponseCallback<Readable>,
|
|
5500
5882
|
callback?:
|
|
5501
|
-
|
|
5502
|
-
| BodyResponseCallback<Readable>
|
|
5883
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
5503
5884
|
):
|
|
5504
5885
|
| void
|
|
5505
5886
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -5569,7 +5950,16 @@ export namespace health_v4 {
|
|
|
5569
5950
|
* async function main() {
|
|
5570
5951
|
* const auth = new google.auth.GoogleAuth({
|
|
5571
5952
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5572
|
-
* scopes: [
|
|
5953
|
+
* scopes: [
|
|
5954
|
+
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly',
|
|
5955
|
+
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly',
|
|
5956
|
+
* 'https://www.googleapis.com/auth/googlehealth.location.writeonly',
|
|
5957
|
+
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly',
|
|
5958
|
+
* 'https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly',
|
|
5959
|
+
* 'https://www.googleapis.com/auth/googlehealth.nutrition.writeonly',
|
|
5960
|
+
* 'https://www.googleapis.com/auth/googlehealth.reproductive_health.writeonly',
|
|
5961
|
+
* 'https://www.googleapis.com/auth/googlehealth.sleep.writeonly',
|
|
5962
|
+
* ],
|
|
5573
5963
|
* });
|
|
5574
5964
|
*
|
|
5575
5965
|
* // Acquire an auth client, and bind it to all future calls
|
|
@@ -5686,8 +6076,7 @@ export namespace health_v4 {
|
|
|
5686
6076
|
| BodyResponseCallback<Schema$Operation>
|
|
5687
6077
|
| BodyResponseCallback<Readable>,
|
|
5688
6078
|
callback?:
|
|
5689
|
-
|
|
5690
|
-
| BodyResponseCallback<Readable>
|
|
6079
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
5691
6080
|
):
|
|
5692
6081
|
| void
|
|
5693
6082
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -5970,8 +6359,7 @@ export namespace health_v4 {
|
|
|
5970
6359
|
exportExerciseTcx(
|
|
5971
6360
|
params: Params$Resource$Users$Datatypes$Datapoints$Exportexercisetcx,
|
|
5972
6361
|
options:
|
|
5973
|
-
|
|
|
5974
|
-
| BodyResponseCallback<Schema$ExportExerciseTcxResponse>,
|
|
6362
|
+
MethodOptions | BodyResponseCallback<Schema$ExportExerciseTcxResponse>,
|
|
5975
6363
|
callback: BodyResponseCallback<Schema$ExportExerciseTcxResponse>
|
|
5976
6364
|
): void;
|
|
5977
6365
|
exportExerciseTcx(
|
|
@@ -6174,8 +6562,7 @@ export namespace health_v4 {
|
|
|
6174
6562
|
| BodyResponseCallback<Schema$DataPoint>
|
|
6175
6563
|
| BodyResponseCallback<Readable>,
|
|
6176
6564
|
callback?:
|
|
6177
|
-
|
|
6178
|
-
| BodyResponseCallback<Readable>
|
|
6565
|
+
BodyResponseCallback<Schema$DataPoint> | BodyResponseCallback<Readable>
|
|
6179
6566
|
):
|
|
6180
6567
|
| void
|
|
6181
6568
|
| Promise<GaxiosResponseWithHTTP2<Schema$DataPoint>>
|
|
@@ -6302,8 +6689,7 @@ export namespace health_v4 {
|
|
|
6302
6689
|
list(
|
|
6303
6690
|
params: Params$Resource$Users$Datatypes$Datapoints$List,
|
|
6304
6691
|
options:
|
|
6305
|
-
|
|
|
6306
|
-
| BodyResponseCallback<Schema$ListDataPointsResponse>,
|
|
6692
|
+
MethodOptions | BodyResponseCallback<Schema$ListDataPointsResponse>,
|
|
6307
6693
|
callback: BodyResponseCallback<Schema$ListDataPointsResponse>
|
|
6308
6694
|
): void;
|
|
6309
6695
|
list(
|
|
@@ -6393,7 +6779,16 @@ export namespace health_v4 {
|
|
|
6393
6779
|
* async function main() {
|
|
6394
6780
|
* const auth = new google.auth.GoogleAuth({
|
|
6395
6781
|
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
6396
|
-
* scopes: [
|
|
6782
|
+
* scopes: [
|
|
6783
|
+
* 'https://www.googleapis.com/auth/googlehealth.activity_and_fitness.writeonly',
|
|
6784
|
+
* 'https://www.googleapis.com/auth/googlehealth.health_metrics_and_measurements.writeonly',
|
|
6785
|
+
* 'https://www.googleapis.com/auth/googlehealth.location.writeonly',
|
|
6786
|
+
* 'https://www.googleapis.com/auth/googlehealth.logged_symptoms.writeonly',
|
|
6787
|
+
* 'https://www.googleapis.com/auth/googlehealth.mindfulness.writeonly',
|
|
6788
|
+
* 'https://www.googleapis.com/auth/googlehealth.nutrition.writeonly',
|
|
6789
|
+
* 'https://www.googleapis.com/auth/googlehealth.reproductive_health.writeonly',
|
|
6790
|
+
* 'https://www.googleapis.com/auth/googlehealth.sleep.writeonly',
|
|
6791
|
+
* ],
|
|
6397
6792
|
* });
|
|
6398
6793
|
*
|
|
6399
6794
|
* // Acquire an auth client, and bind it to all future calls
|
|
@@ -6402,7 +6797,7 @@ export namespace health_v4 {
|
|
|
6402
6797
|
*
|
|
6403
6798
|
* // Do the magic
|
|
6404
6799
|
* 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. `
|
|
6800
|
+
* // 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
6801
|
* name: 'users/my-user/dataTypes/my-dataType/dataPoints/my-dataPoint',
|
|
6407
6802
|
*
|
|
6408
6803
|
* // Request body metadata
|
|
@@ -6510,8 +6905,7 @@ export namespace health_v4 {
|
|
|
6510
6905
|
| BodyResponseCallback<Schema$Operation>
|
|
6511
6906
|
| BodyResponseCallback<Readable>,
|
|
6512
6907
|
callback?:
|
|
6513
|
-
|
|
6514
|
-
| BodyResponseCallback<Readable>
|
|
6908
|
+
BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
|
|
6515
6909
|
):
|
|
6516
6910
|
| void
|
|
6517
6911
|
| Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
|
|
@@ -6799,8 +7193,7 @@ export namespace health_v4 {
|
|
|
6799
7193
|
rollUp(
|
|
6800
7194
|
params: Params$Resource$Users$Datatypes$Datapoints$Rollup,
|
|
6801
7195
|
options:
|
|
6802
|
-
|
|
|
6803
|
-
| BodyResponseCallback<Schema$RollUpDataPointsResponse>,
|
|
7196
|
+
MethodOptions | BodyResponseCallback<Schema$RollUpDataPointsResponse>,
|
|
6804
7197
|
callback: BodyResponseCallback<Schema$RollUpDataPointsResponse>
|
|
6805
7198
|
): void;
|
|
6806
7199
|
rollUp(
|
|
@@ -6940,7 +7333,7 @@ export namespace health_v4 {
|
|
|
6940
7333
|
}
|
|
6941
7334
|
export interface Params$Resource$Users$Datatypes$Datapoints$Patch extends StandardParameters {
|
|
6942
7335
|
/**
|
|
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. `
|
|
7336
|
+
* 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
7337
|
*/
|
|
6945
7338
|
name?: string;
|
|
6946
7339
|
|
|
@@ -7205,8 +7598,7 @@ export namespace health_v4 {
|
|
|
7205
7598
|
list(
|
|
7206
7599
|
params: Params$Resource$Users$Paireddevices$List,
|
|
7207
7600
|
options:
|
|
7208
|
-
|
|
|
7209
|
-
| BodyResponseCallback<Schema$ListPairedDevicesResponse>,
|
|
7601
|
+
MethodOptions | BodyResponseCallback<Schema$ListPairedDevicesResponse>,
|
|
7210
7602
|
callback: BodyResponseCallback<Schema$ListPairedDevicesResponse>
|
|
7211
7603
|
): void;
|
|
7212
7604
|
list(
|