@maxim_mazurok/gapi.client.health-v4 0.1.20260708 → 0.1.20260709

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +129 -16
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://health.googleapis.com/$discovery/rest?version=v4
12
- // Revision: 20260708
12
+ // Revision: 20260709
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -618,7 +618,7 @@ declare namespace gapi.client {
618
618
  secretSet?: boolean;
619
619
  }
620
620
  interface EnergyQuantity {
621
- /** Required. Value representing the energy in kilocalories. */
621
+ /** Required. The energy value in kilocalories. */
622
622
  kcal?: number;
623
623
  /** Optional. Value representing the user provided unit. */
624
624
  userProvidedUnit?:
@@ -1031,6 +1031,14 @@ declare namespace gapi.client {
1031
1031
  /** Required. The time at which the height was recorded. */
1032
1032
  sampleTime?: ObservationSampleTime;
1033
1033
  }
1034
+ interface HttpBody {
1035
+ /** The HTTP Content-Type header value specifying the content type of the body. */
1036
+ contentType?: string;
1037
+ /** The HTTP request/response body as raw binary. */
1038
+ data?: string;
1039
+ /** Application specific response metadata. Must be set in the first response for streaming APIs. */
1040
+ extensions?: {[P in string]: any}[];
1041
+ }
1034
1042
  interface HttpHeader {
1035
1043
  /** The HTTP header key. It is case insensitive. */
1036
1044
  key?: string;
@@ -1115,6 +1123,14 @@ declare namespace gapi.client {
1115
1123
  /** The subscriptions from the specified subscriber. */
1116
1124
  subscriptions?: Subscription[];
1117
1125
  }
1126
+ interface ManifestParams {
1127
+ /** Optional. Integer upper bound on the length of embedded payloads */
1128
+ embeddedLengthMax?: number;
1129
+ /** Optional. */
1130
+ passcode?: string;
1131
+ /** Required. A string describing the recipient (e.g.,the name of an organization or person) suitable for display to the Receiving User */
1132
+ recipient?: string;
1133
+ }
1118
1134
  interface MedicalDeviceInfo {
1119
1135
  /** Output only. The algorithm version used by the feature. */
1120
1136
  algorithmVersion?: string;
@@ -1166,7 +1182,7 @@ declare namespace gapi.client {
1166
1182
  avgVerticalRatio?: number;
1167
1183
  }
1168
1184
  interface NutrientQuantity {
1169
- /** Required. Value representing the nutrient. */
1185
+ /** Required. The nutrient type. */
1170
1186
  nutrient?:
1171
1187
  | 'NUTRIENT_UNSPECIFIED'
1172
1188
  | 'BIOTIN'
@@ -1208,7 +1224,7 @@ declare namespace gapi.client {
1208
1224
  | 'VITAMIN_K'
1209
1225
  | 'ZINC'
1210
1226
  | 'FOLATE';
1211
- /** Required. Value representing the quantity of the nutrient. */
1227
+ /** Required. The quantity of the nutrient, measured in grams. */
1212
1228
  quantity?: WeightQuantity;
1213
1229
  }
1214
1230
  interface NutrientQuantityRollup {
@@ -1258,17 +1274,17 @@ declare namespace gapi.client {
1258
1274
  quantity?: WeightQuantityRollup;
1259
1275
  }
1260
1276
  interface NutritionLog {
1261
- /** 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. */
1277
+ /** Optional. The total energy of the food, measured in kilocalories (`kcal`). */
1262
1278
  energy?: EnergyQuantity;
1263
- /** 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. */
1279
+ /** Optional. The energy from fat, measured in kilocalories (`kcal`). */
1264
1280
  energyFromFat?: EnergyQuantity;
1265
- /** Required. Represents the food ID. */
1281
+ /** 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. */
1266
1282
  food?: string;
1267
- /** 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. */
1283
+ /** The display name of the food. For identified food logs, this is populated automatically from the referenced food. */
1268
1284
  foodDisplayName?: string;
1269
- /** Required. Observed interval. */
1285
+ /** Required. The time window when the food was logged. */
1270
1286
  interval?: SessionTimeInterval;
1271
- /** Optional. Value representing the meal type of the nutrition log. */
1287
+ /** Optional. The meal category. One of `BREAKFAST`, `LUNCH`, `DINNER`, or `SNACK`. */
1272
1288
  mealType?:
1273
1289
  | 'MEAL_TYPE_UNSPECIFIED'
1274
1290
  | 'BEFORE_BREAKFAST'
@@ -1280,13 +1296,13 @@ declare namespace gapi.client {
1280
1296
  | 'AFTER_DINNER'
1281
1297
  | 'SNACK'
1282
1298
  | 'ANYTIME';
1283
- /** Optional. Value representing the nutrients of the nutrition log. */
1299
+ /** Optional. An array of individual nutrient values for the nutrition log. */
1284
1300
  nutrients?: NutrientQuantity[];
1285
- /** Optional. Value representing the nutrition log serving. */
1301
+ /** Optional. The serving information for the logged food. */
1286
1302
  serving?: Serving;
1287
- /** 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. */
1303
+ /** Optional. The total carbohydrate content, measured in grams. */
1288
1304
  totalCarbohydrate?: WeightQuantity;
1289
- /** 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. */
1305
+ /** Optional. The total fat content, measured in grams. */
1290
1306
  totalFat?: WeightQuantity;
1291
1307
  }
1292
1308
  interface NutritionLogRollupValue {
@@ -1578,7 +1594,7 @@ declare namespace gapi.client {
1578
1594
  durationSum?: string;
1579
1595
  }
1580
1596
  interface Serving {
1581
- /** Optional. Amount of food consumed, fractional values are supported. */
1597
+ /** Optional. The number of servings. */
1582
1598
  amount?: number;
1583
1599
  /** Required. Food measurement unit */
1584
1600
  foodMeasurementUnit?: string;
@@ -1954,7 +1970,7 @@ declare namespace gapi.client {
1954
1970
  weightGrams?: number;
1955
1971
  }
1956
1972
  interface WeightQuantity {
1957
- /** Required. Value representing the weight in grams. */
1973
+ /** Required. The weight value in grams. */
1958
1974
  grams?: number;
1959
1975
  /** Optional. Value representing the user provided unit. */
1960
1976
  userProvidedUnit?:
@@ -2363,6 +2379,101 @@ declare namespace gapi.client {
2363
2379
  interface ProjectsResource {
2364
2380
  subscribers: SubscribersResource;
2365
2381
  }
2382
+ interface MResource {
2383
+ /** Forward a manifest request for a given SHL */
2384
+ getShlManifest(request: {
2385
+ /** V1 error format. */
2386
+ '$.xgafv'?: '1' | '2';
2387
+ /** OAuth access token. */
2388
+ access_token?: string;
2389
+ /** Data format for response. */
2390
+ alt?: 'json' | 'media' | 'proto';
2391
+ /** JSONP */
2392
+ callback?: string;
2393
+ /** Required. External ID mapping to a ShlSharedLinkCapabilityToken object See https://docs.google.com/document/d/1Pch20pxJHRbsaMxp0EYgs3ZU0Gu7QTUznk8LhvbQvfY/edit?tab=t.0#heading=h.17wg41voij6q */
2394
+ externalShlId: string;
2395
+ /** Selector specifying which fields to include in a partial response. */
2396
+ fields?: string;
2397
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2398
+ key?: string;
2399
+ /** OAuth 2.0 token for the current user. */
2400
+ oauth_token?: string;
2401
+ /** Returns response with indentations and line breaks. */
2402
+ prettyPrint?: boolean;
2403
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2404
+ quotaUser?: string;
2405
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2406
+ upload_protocol?: string;
2407
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2408
+ uploadType?: string;
2409
+ /** Request body */
2410
+ resource: ManifestParams;
2411
+ }): Request<HttpBody>;
2412
+ getShlManifest(
2413
+ request: {
2414
+ /** V1 error format. */
2415
+ '$.xgafv'?: '1' | '2';
2416
+ /** OAuth access token. */
2417
+ access_token?: string;
2418
+ /** Data format for response. */
2419
+ alt?: 'json' | 'media' | 'proto';
2420
+ /** JSONP */
2421
+ callback?: string;
2422
+ /** Required. External ID mapping to a ShlSharedLinkCapabilityToken object See https://docs.google.com/document/d/1Pch20pxJHRbsaMxp0EYgs3ZU0Gu7QTUznk8LhvbQvfY/edit?tab=t.0#heading=h.17wg41voij6q */
2423
+ externalShlId: string;
2424
+ /** Selector specifying which fields to include in a partial response. */
2425
+ fields?: string;
2426
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2427
+ key?: string;
2428
+ /** OAuth 2.0 token for the current user. */
2429
+ oauth_token?: string;
2430
+ /** Returns response with indentations and line breaks. */
2431
+ prettyPrint?: boolean;
2432
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2433
+ quotaUser?: string;
2434
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2435
+ upload_protocol?: string;
2436
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2437
+ uploadType?: string;
2438
+ },
2439
+ body: ManifestParams,
2440
+ ): Request<HttpBody>;
2441
+ }
2442
+ interface RResource {
2443
+ /** Forward a resource request for a given SHL */
2444
+ get(request?: {
2445
+ /** V1 error format. */
2446
+ '$.xgafv'?: '1' | '2';
2447
+ /** OAuth access token. */
2448
+ access_token?: string;
2449
+ /** Data format for response. */
2450
+ alt?: 'json' | 'media' | 'proto';
2451
+ /** JSONP */
2452
+ callback?: string;
2453
+ /** Required. External ID mapping to a ShlSharedLinkCapabilityToken object See https://docs.google.com/document/d/1Pch20pxJHRbsaMxp0EYgs3ZU0Gu7QTUznk8LhvbQvfY/edit?tab=t.0#heading=h.17wg41voij6q */
2454
+ externalShlId: string;
2455
+ /** Selector specifying which fields to include in a partial response. */
2456
+ fields?: string;
2457
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2458
+ key?: string;
2459
+ /** OAuth 2.0 token for the current user. */
2460
+ oauth_token?: string;
2461
+ /** Returns response with indentations and line breaks. */
2462
+ prettyPrint?: boolean;
2463
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2464
+ quotaUser?: string;
2465
+ /** Required. Encoded, encrypted message containing resource access details */
2466
+ resourceToken: string;
2467
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2468
+ upload_protocol?: string;
2469
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2470
+ uploadType?: string;
2471
+ }): Request<HttpBody>;
2472
+ }
2473
+ interface ShlResource {
2474
+ m: MResource;
2475
+ r: RResource;
2476
+ }
2366
2477
  interface DataPointsResource {
2367
2478
  /** Delete a batch of identifyable data points. */
2368
2479
  batchDelete(request: {
@@ -3081,6 +3192,8 @@ declare namespace gapi.client {
3081
3192
 
3082
3193
  const projects: ProjectsResource;
3083
3194
 
3195
+ const shl: ShlResource;
3196
+
3084
3197
  const users: UsersResource;
3085
3198
  }
3086
3199
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.health-v4",
3
- "version": "0.1.20260708",
3
+ "version": "0.1.20260709",
4
4
  "description": "TypeScript typings for Google Health API v4",
5
5
  "repository": {
6
6
  "type": "git",