changedOutput schema / properties / rows / items / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "date": {
- "type": "string"
- },
- "end_at": {
- "type": "string"
- },
- "stages_exceed_window": {
- "description": "True when stage seconds add up to more than start_at..end_at, because overlapping sources were summed. Do not report those stage totals as sleep time; use the window.",
- "type": "boolean"
- },
- "stages_json": {
- "type": "string"
- },
- "start_at": {
- "type": "string"
- },
- "uuid": {
- "type": "string"
- }
- },
- "required": [
- "uuid",
- "date",
- "start_at",
- "end_at",
- "stages_json"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "activity": {
- "type": "string"
- },
- "avg_hr": {
- "type": [
- "number",
- "null"
- ]
- },
- "date": {
- "type": "string"
- },
- "distance_m": {
- "type": [
- "number",
- "null"
- ]
- },
- "duration_s": {
- "type": "number"
- },
- "energy_kcal": {
- "type": [
- "number",
- "null"
- ]
- },
- "max_hr": {
- "type": [
- "number",
- "null"
- ]
- },
- "start_at": {
- "type": "string"
- },
- "uuid": {
- "type": "string"
- }
- },
- "required": [
- "uuid",
- "date",
- "start_at",
- "activity",
- "duration_s",
- "energy_kcal",
- "distance_m",
- "avg_hr",
- "max_hr"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "activity": {
- "type": "string"
- },
- "distance_m": {
- "type": [
- "number",
- "null"
- ]
- },
- "distance_workouts": {
- "type": "number"
- },
- "duration_s": {
- "type": "number"
- },
- "hr_zones": {
- "additionalProperties": false,
- "properties": {
- "covered_s": {
- "type": "number"
- },
- "lower_bounds_pct": {
- "items": {
- "type": "number"
- },
- "type": "array"
- },
- "max_hr": {
- "type": [
- "number",
- "null"
- ]
- },
- "max_hr_basis": {
- "enum": [
- "provided",
- "observed_workout_max",
- "unavailable"
- ],
- "type": "string"
- },
- "method": {
- "const": "percent_max_hr",
- "type": "string"
- },
- "missing_s": {
- "type": [
- "number",
- "null"
- ]
- },
- "seconds": {
- "anyOf": [
- {
- "items": {
- "type": "number"
- },
- "type": "array"
- },
- {
- "type": "null"
- }
- ]
- },
- "source_status": {
- "enum": [
- "available",
- "missing",
- "ambiguous"
- ],
- "type": "string"
- }
- },
- "required": [
- "method",
- "max_hr",
- "max_hr_basis",
- "lower_bounds_pct",
- "seconds",
- "covered_s",
- "missing_s",
- "source_status"
- ],
- "type": "object"
- },
- "period": {
- "type": "string"
- },
- "summary_workouts": {
- "type": "number"
- },
- "workouts": {
- "type": "number"
- },
- "zone_workouts": {
- "type": "number"
- }
- },
- "required": [
- "period",
- "activity",
- "workouts",
- "duration_s",
- "distance_m",
- "distance_workouts",
- "hr_zones",
- "zone_workouts",
- "summary_workouts"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "date": {
+ "type": "string"
+ },
+ "end_at": {
+ "type": "string"
+ },
+ "stages_exceed_window": {
+ "description": "True when stage seconds add up to more than start_at..end_at, because overlapping sources were summed. Do not report those stage totals as sleep time; use the window.",
+ "type": "boolean"
+ },
+ "stages_json": {
+ "type": "string"
+ },
+ "start_at": {
+ "type": "string"
+ },
+ "uuid": {
+ "type": "string"
+ },
+ "vitals": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "breathing_disturbances": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "heart_rate_bpm": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "avg": {
+ "type": "number"
+ },
+ "max": {
+ "type": "number"
+ },
+ "min": {
+ "type": "number"
+ },
+ "n": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "min",
+ "avg",
+ "max",
+ "n"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "hrv_sdnn_ms": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "avg": {
+ "type": "number"
+ },
+ "max": {
+ "type": "number"
+ },
+ "min": {
+ "type": "number"
+ },
+ "n": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "min",
+ "avg",
+ "max",
+ "n"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "oxygen_saturation": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "avg": {
+ "type": "number"
+ },
+ "below_90": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "min": {
+ "type": "number"
+ },
+ "n": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "min",
+ "avg",
+ "n",
+ "below_90"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "respiratory_rate": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "avg": {
+ "type": "number"
+ },
+ "max": {
+ "type": "number"
+ },
+ "min": {
+ "type": "number"
+ },
+ "n": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "min",
+ "avg",
+ "max",
+ "n"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "wrist_temperature_c": {
+ "type": [
+ "number",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Readings inside start_at..end_at only, so they never mix with the day. Heart rate in bpm, HRV SDNN in ms, oxygen saturation as a fraction (0.95 = 95%), respiratory rate in breaths/min, wrist temperature in Celsius; n is how many readings. oxygen_saturation.below_90 counts readings under 90%: the watch samples periodically, so never turn it into minutes. Missing keys mean no readings, not zero. null means the night was sent before vitals existed or by a history upload; daily aggregates are the fallback."
+ }
+ },
+ "required": [
+ "uuid",
+ "date",
+ "start_at",
+ "end_at",
+ "stages_json"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "activity": {
+ "type": "string"
+ },
+ "avg_hr": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "date": {
+ "type": "string"
+ },
+ "distance_m": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "duration_s": {
+ "type": "number"
+ },
+ "energy_kcal": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "max_hr": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "start_at": {
+ "type": "string"
+ },
+ "uuid": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "uuid",
+ "date",
+ "start_at",
+ "activity",
+ "duration_s",
+ "energy_kcal",
+ "distance_m",
+ "avg_hr",
+ "max_hr"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "activity": {
+ "type": "string"
+ },
+ "distance_m": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "distance_workouts": {
+ "type": "number"
+ },
+ "duration_s": {
+ "type": "number"
+ },
+ "hr_zones": {
+ "additionalProperties": false,
+ "properties": {
+ "covered_s": {
+ "type": "number"
+ },
+ "lower_bounds_pct": {
+ "items": {
+ "type": "number"
+ },
+ "type": "array"
+ },
+ "max_hr": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "max_hr_basis": {
+ "enum": [
+ "provided",
+ "observed_workout_max",
+ "unavailable"
+ ],
+ "type": "string"
+ },
+ "method": {
+ "const": "percent_max_hr",
+ "type": "string"
+ },
+ "missing_s": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "seconds": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "number"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "source_status": {
+ "enum": [
+ "available",
+ "missing",
+ "ambiguous"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "method",
+ "max_hr",
+ "max_hr_basis",
+ "lower_bounds_pct",
+ "seconds",
+ "covered_s",
+ "missing_s",
+ "source_status"
+ ],
+ "type": "object"
+ },
+ "period": {
+ "type": "string"
+ },
+ "summary_workouts": {
+ "type": "number"
+ },
+ "workouts": {
+ "type": "number"
+ },
+ "zone_workouts": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "period",
+ "activity",
+ "workouts",
+ "duration_s",
+ "distance_m",
+ "distance_workouts",
+ "hr_zones",
+ "zone_workouts",
+ "summary_workouts"
+ ],
+ "type": "object"
+ }
+]