Skip to main content

Gcp/health

@swamp/gcp/healthv2026.05.27.2· 6d agoMODELS
01README

Google Cloud health infrastructure models

02Release Notes
  • Updated: subscribers_subscriptions
03Models4
subscribers.tsv2026.05.26.1

Global Arguments

ArgumentTypeDescription
endpointAuthorization?objectRequired. Input only. Provides a client-provided secret that will be sent with each notification to the subscriber endpoint using the "Authorization" header. The value must include the authorization scheme, e.g., "Bearer " or "Basic ", as it will be used as the full Authorization header value. This secret is used by the API to test the endpoint during `CreateSubscriber` and `UpdateSubscriber` calls, and will be sent in the `Authorization` header for all subsequent webhook notifications to this endpoint.
endpointUri?stringRequired. The full HTTPS URI where update notifications will be sent. The URI must be a valid URL and use HTTPS as the scheme. This endpoint will be verified during CreateSubscriber and UpdateSubscriber calls. See RPC documentation for verification details.
subscriberConfigs?arrayRequired. See [Google Health API data types](https://developers.google.com/health/data-types) for the list of supported data types. Values should be in kebab-case.
createTime?stringOutput only. The time at which the subscriber was created.
name?stringIdentifier. The resource name of the Subscriber. Format: projects/{project}/subscribers/{subscriber} The {project} ID is a Google Cloud Project ID or Project Number. The {subscriber} ID is user-settable (4-36 characters, matching /[a-z]([a-z0-9-]{2,34}[a-z0-9])/) if provided during creation, or system-generated otherwise (e.g., a UUID). Example (User-settable subscriber ID): projects/my-project/subscribers/my-sub-123 Example (System-generated subscriber ID): projects/my-project/subscribers/a1b2c3d4-e5f6-7890-1234-567890abcdef
state?enumOutput only. The state of the subscriber.
updateTime?stringOutput only. The time at which the subscriber was last updated.
subscriberId?stringOptional. 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])/.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn create(waitForReady?: boolean)
Create a subscribers
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after creation (default: true)
fn get(identifier: string)
Get a subscribers
ArgumentTypeDescription
identifierstringThe name of the subscribers
fn update(waitForReady?: boolean)
Update subscribers attributes
ArgumentTypeDescription
waitForReady?booleanWait for the resource to reach a ready state after update (default: true)
fn delete(identifier: string)
Delete the subscribers
ArgumentTypeDescription
identifierstringThe name of the subscribers
fn sync()
Sync subscribers state from GCP
fn list(pageSize?: number, maxPages?: number)
List subscribers resources
ArgumentTypeDescription
pageSize?numberOptional. The maximum number of subscribers to return. The service may return fewer than this value. If unspecified, at most 50 subscribers will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
maxPages?numberMaximum number of pages to fetch (default: 10)
subscribers_subscriptions.tsv2026.05.27.2

Global Arguments

ArgumentTypeDescription
dataTypes?arrayOptional. 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".
user?stringImmutable. The resource name of the user for whom this subscription is active. Format: `users/{user}` where `{user}` is the public `healthUserId` as returned by the `GetIdentity` action in the profile PAPI (see `google.devicesandservices.health.v4main.HealthProfileService.GetIdentity`).
name?stringIdentifier. The resource name of the Subscription. Format: `projects/{project}/subscribers/{subscriber}/subscriptions/{subscription}` Example: `projects/my-project/subscribers/my-subscriber-123/subscriptions/my-subscription-456` The {project} ID is mandatory (6-30 characters, matching /a-z{6,30}/) The {subscriber} ID is user-settable (4-36 characters, matching /[a-z]([a-z0-9-]{2,34}[a-z0-9])/) if provided during creation, or system-generated otherwise. The {subscription} ID is user-settable (4-36 chars, matching /[a-z]([a-z0-9-]{2,34}[a-z0-9])/) or system-generated otherwise.
subscriptionId?stringOptional. The {subscription_id} is user-settable (4-36 chars, matching /[a-z]([a-z0-9-]{2,34}[a-z0-9])/) or system-generated otherwise. If provided, the ID must be unique within the parent subscriber.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn create()
Create a subscriptions
fn get(identifier: string)
Get a subscriptions
ArgumentTypeDescription
identifierstringThe name of the subscriptions
fn update()
Update subscriptions attributes
fn delete(identifier: string)
Delete the subscriptions
ArgumentTypeDescription
identifierstringThe name of the subscriptions
fn sync()
Sync subscriptions state from GCP
fn list(filter?: string, pageSize?: number, maxPages?: number)
List subscriptions resources
ArgumentTypeDescription
filter?stringOptional. 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")
pageSize?numberOptional. 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.
maxPages?numberMaximum number of pages to fetch (default: 10)
users_datatypes_datapoints.tsv2026.05.27.1

Global Arguments

ArgumentTypeDescription
activeEnergyBurned?objectDay of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
activeMinutes?objectRequired. Number of whole minutes spent in activity.
activeZoneMinutes?objectRequired. Number of Active Zone Minutes earned in the given time interval. Note: active_zone_minutes equals to 1 for low intensity (fat burn) zones or 2 for high intensity zones (cardio, peak).
activityLevel?objectRequired. Activity level type in the given time interval.
altitude?objectRequired. Altitude gain in millimeters over the observed interval.
basalEnergyBurned?objectDay of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
bloodGlucose?objectRequired. Blood glucose level concentration in mg/dL.
bodyFat?objectRequired. Body fat percentage, in range [0, 100].
coreBodyTemperature?objectOptional. The unique identifier of the core body temperature measurement.
dailyHeartRateVariability?objectOptional. A user's average heart rate variability calculated using the root mean square of successive differences (RMSSD) in times between heartbeats.
dailyHeartRateZones?objectDay of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
dailyOxygenSaturation?objectRequired. The average value of the oxygen saturation samples during the sleep.
dailyRespiratoryRate?objectRequired. The average number of breaths taken per minute.
dailyRestingHeartRate?objectRequired. The resting heart rate value in beats per minute.
dailySleepTemperatureDerivations?objectOptional. The user's baseline skin temperature. It is the median of the user's nightly skin temperature over the past 30 days.
dailyVo2Max?objectOptional. Represents the user's cardio fitness level based on their VO2 max.
dataSource?objectOutput only. The Google OAuth 2.0 client ID of the web application or service that recorded the data. This is the client ID used during the Google OAuth flow to obtain user credentials. This field is system-populated when the data is uploaded from Google Web API.
distance?objectDay of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
electrocardiogram?objectOptional. Average heart rate recorded during ECG reading in beats per minute.
exercise?objectOptional. Duration excluding pauses.
floors?objectRequired. Number of floors in the recorded interval
food?objectRequired. The access level of the food.
foodMeasurementUnit?objectRequired. The display name of the food measurement unit (e.g., "gram", "piece").
heartRate?objectRequired. The heart rate value in beats per minute.
heartRateVariability?objectOptional. The root mean square of successive differences between normal heartbeats. This is a measure of heart rate variability used by Google Health.
height?objectRequired. Height of the user in millimeters.
hydrationLog?objectRequired. Value representing the volume in milliliters.
irregularRhythmNotification?objectDay of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
name?stringIdentifier. 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.
nutritionLog?objectRequired. Value representing the energy in kilocalories.
oxygenSaturation?objectRequired. The oxygen saturation percentage. Valid values are from 0 to 100.
respiratoryRateSleepSummary?objectRequired. Average breaths per minute.
runVo2Max?objectRequired. Run VO2 max value in ml/kg/min.
sedentaryPeriod?objectDay of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
sleep?objectOutput only. Creation time of this sleep observation.
steps?objectRequired. Number of steps in the recorded interval.
swimLengthsData?objectDay of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
timeInHeartRateZone?objectRequired. Heart rate zone type.
vo2Max?objectOptional. The method used to measure the VO2 max value.
weight?objectOptional. Standard free-form notes captured at manual logging.
parent?stringThe parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456)
fn create()
Create a dataPoints
fn get(identifier: string)
Get a dataPoints
ArgumentTypeDescription
identifierstringThe name of the dataPoints
fn update()
Update dataPoints attributes
fn sync()
Sync dataPoints state from GCP
fn list(filter?: string, pageSize?: number, maxPages?: number)
List dataPoints resources
ArgumentTypeDescription
filter?stringOptional. Filter expression following https://google.aip.dev/160. A time range (either physical or civil) can be specified. The supported filter fields are: - Interval start time: - Pattern: `{interval_data_type}.interval.start_time` - Supported comparison operators: `>=`, `<` - Timestamp literal expected in RFC-3339 format - Supported logical operators: `AND` - Example: - `steps.interval.start_time >= "2023-11-24T00:00:00Z" AND steps.interval.start_time < "2023-11-25T00:00:00Z"` - `distance.interval.start_time >= "2024-08-14T12:34:56Z"` - Interval civil start time: - Pattern: `{interval_data_type}.interval.civil_start_time` - Supported comparison operators: `>=`, `<` - Date with optional time literal expected in ISO 8601 `YYYY-MM-DD[THH:mm:ss]` format - Supported logical operators: `AND` - Example: - `steps.interval.civil_start_time >= "2023-11-24" AND steps.interval.civil_start_time < "2023-11-25"` - `distance.interval.civil_start_time >= "2024-08-14T12:34:56"` - Sample observation physical time: - Pattern: `{sample_data_type}.sample_time.physical_time` - Supported comparison operators: `>=`, `<` - Timestamp literal expected in RFC-3339 format - Supported logical operators: `AND` - Example: - `weight.sample_time.physical_time >= "2023-11-24T00:00:00Z" AND weight.sample_time.physical_time < "2023-11-25T00:00:00Z"` - `weight.sample_time.physical_time >= "2024-08-14T12:34:56Z"` - Sample observation civil time: - Pattern: `{sample_data_type}.sample_time.civil_time` - Supported comparison operators: `>=`, `<` - Date with optional time literal expected in ISO 8601 `YYYY-MM-DD[THH:mm:ss]` format - Supported logical operators: `AND` - Example: - `weight.sample_time.civil_time >= "2023-11-24" AND weight.sample_time.civil_time < "2023-11-25"` - `weight.sample_time.civil_time >= "2024-08-14T12:34:56"` - Daily summary date: - Pattern: `{daily_summary_data_type}.date` - Supported comparison operators: `>=`, `<` - Date literal expected in ISO 8601 `YYYY-MM-DD` format - Supported logical operators: `AND` - Example: - `daily_heart_rate_variability.date < "2024-08-15"` - Session civil start time (**Excluding Sleep and ECG**): - Pattern: `{session_data_type}.interval.civil_start_time` - Supported comparison operators: `>=`, `<` - Date with optional time literal expected in ISO 8601 `YYYY-MM-DD[THH:mm:ss]` format - Supported logical operators: `AND` - Example: - `exercise.interval.civil_start_time >= "2023-11-24" AND exercise.interval.civil_start_time < "2023-11-25"` - `exercise.interval.civil_start_time >= "2024-08-14T12:34:56"` - Session start time (**ECG specific**): - Pattern: `electrocardiogram.interval.start_time` - Supported comparison operators: `>=` - Timestamp literal expected in RFC-3339 format - Example: - `electrocardiogram.interval.start_time >= "2024-08-14T12:34:56Z"` - Note: Only filtering by start time is supported for ECG. Filtering by end time (e.g., `electrocardiogram.interval.end_time`) is not supported. - Session end time (**Sleep specific**): - Pattern: `sleep.interval.end_time` - Supported comparison operators: `>=`, `<` - Timestamp literal expected in RFC-3339 format - Supported logical operators: `AND`, `OR` - Example: - `sleep.interval.end_time >= "2023-11-24T00:00:00Z" AND sleep.interval.end_time < "2023-11-25T00:00:00Z"` - Session civil end time (**Sleep specific**): - Pattern: `sleep.interval.civil_end_time` - Supported comparison operators: `>=`, `<` - Date with optional time literal expected in ISO 8601 `YYYY-MM-DD[THH:mm:ss]` format - Supported logical operators: `AND`, `OR` - Example: - `sleep.interval.civil_end_time >= "2023-11-24" AND sleep.interval.civil_end_time < "2023-11-25"` Data points in the response will be ordered by the interval start time in descending order.
pageSize?numberOptional. The maximum number of data points to return. If unspecified, at most 1440 data points will be returned. The maximum page size is 10000; values above that will be truncated accordingly. For `exercise` and `sleep` the default page size is 25. The maximum page size for `exercise` and `sleep` is 25.
maxPages?numberMaximum number of pages to fetch (default: 10)
fn batch_delete(names?: any)
batch delete
ArgumentTypeDescription
names?any
fn daily_roll_up(dataSourceFamily?: any, pageSize?: any, pageToken?: any, range?: any, windowSizeDays?: any)
daily roll up
ArgumentTypeDescription
dataSourceFamily?any
pageSize?any
pageToken?any
range?any
windowSizeDays?any
fn export_exercise_tcx()
export exercise tcx
fn reconcile()
reconcile
fn roll_up(dataSourceFamily?: any, pageSize?: any, pageToken?: any, range?: any, windowSizeDays?: any)
roll up
ArgumentTypeDescription
dataSourceFamily?any
pageSize?any
pageToken?any
range?any
windowSizeDays?any
users_paireddevices.tsv2026.05.27.1

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
parent?stringThe parent resource name (e.g., projects/my-project/locations/us-central1, organizations/123, folders/456)
fn get(identifier: string)
Get a pairedDevices
ArgumentTypeDescription
identifierstringThe name of the pairedDevices
fn sync()
Sync pairedDevices state from GCP
fn list(pageSize?: number, maxPages?: number)
List pairedDevices resources
ArgumentTypeDescription
pageSize?numberOptional. The maximum number of devices to return. The service may return fewer than this value. If unspecified, at most 5 devices will be returned. The maximum value is 100. values above 100 will be coerced to 100.
maxPages?numberMaximum number of pages to fetch (default: 10)
04Previous Versions19
2026.05.27.1May 27, 2026
  • Added: subscribers_subscriptions, users_paireddevices
  • Updated: users_datatypes_datapoints

Modified 1 models

2026.05.26.1May 26, 2026
  • Added: subscribers
  • Updated: users_datatypes_datapoints

Added 1, removed 1 models

2026.05.25.1May 25, 2026
  • Updated: users_datatypes_datapoints

Added 1, removed 1 models

2026.05.24.1May 24, 2026
  • Updated: subscribers, users_datatypes_datapoints
2026.05.21.2May 21, 2026
  • Updated: subscribers, users_datatypes_datapoints
2026.05.21.1May 21, 2026
2026.05.20.1May 20, 2026
  • Added: subscribers
  • Updated: users_datatypes_datapoints

Added 1, removed 1 models

2026.05.19.2May 19, 2026

Added 1, removed 1 models

2026.05.19.1May 19, 2026
2026.05.18.2May 18, 2026
2026.05.15.1May 15, 2026
  • Updated: subscribers
2026.05.02.1May 2, 2026
  • Updated: users_datatypes_datapoints
2026.04.23.1Apr 23, 2026
2026.04.15.1Apr 15, 2026
  • Added: subscribers
  • Updated: users_datatypes_datapoints

Added 1, removed 1 models

2026.04.07.1Apr 7, 2026
  • Updated: users_datatypes_datapoints
2026.04.04.1Apr 4, 2026
  • Updated: users_datatypes_datapoints
2026.04.03.3Apr 3, 2026
  • Updated: users_datatypes_datapoints
2026.04.03.1Apr 3, 2026
  • Updated: users_datatypes_datapoints
2026.04.02.2Apr 2, 2026
05Stats
A
100 / 100
Downloads
0
Archive size
147.5 KB
Verified by Swamp
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
06Platforms
07Labels