addedOutput schema / properties / plans / items / properties / definition / anyOf
Added value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "activity": {
+ "enum": [
+ "running",
+ "cycling",
+ "walking",
+ "strength",
+ "functional_strength",
+ "hiit",
+ "swimming",
+ "hiking",
+ "rowing",
+ "elliptical",
+ "stair_climbing",
+ "cross_training",
+ "core_training",
+ "mixed_cardio",
+ "dance",
+ "yoga",
+ "pilates",
+ "jump_rope",
+ "kickboxing",
+ "wheelchair_run",
+ "wheelchair_walk",
+ "other"
+ ],
+ "type": "string"
+ },
+ "blocks": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "iterations": {
+ "maximum": 30,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "steps": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "purpose": {
+ "enum": [
+ "work",
+ "recovery"
+ ],
+ "type": "string"
+ },
+ "step": {
+ "additionalProperties": false,
+ "properties": {
+ "alert": {
+ "description": "At most one alert per step (an Apple Watch limit). Prefer this over heart_rate_bpm.",
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "heart_rate_range",
+ "type": "string"
+ },
+ "max_bpm": {
+ "maximum": 240,
+ "minimum": 30,
+ "type": "integer"
+ },
+ "min_bpm": {
+ "maximum": 240,
+ "minimum": 30,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "min_bpm",
+ "max_bpm"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "heart_rate_zone",
+ "type": "string"
+ },
+ "zone": {
+ "description": "The heart-rate zone configured on the user's Apple Watch (1-5)",
+ "maximum": 5,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "zone"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Pace window in seconds per km or mile, e.g. 5:00-5:30/km = fastest_seconds 300, slowest_seconds 330, per km",
+ "properties": {
+ "fastest_seconds": {
+ "maximum": 1800,
+ "minimum": 120,
+ "type": "integer"
+ },
+ "kind": {
+ "const": "pace_range",
+ "type": "string"
+ },
+ "metric": {
+ "description": "current (default) = instantaneous value; average = average over the step",
+ "enum": [
+ "current",
+ "average"
+ ],
+ "type": "string"
+ },
+ "per": {
+ "enum": [
+ "km",
+ "mi"
+ ],
+ "type": "string"
+ },
+ "slowest_seconds": {
+ "maximum": 1800,
+ "minimum": 120,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "fastest_seconds",
+ "slowest_seconds",
+ "per"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "A single target pace in seconds per km or mile instead of a window",
+ "properties": {
+ "kind": {
+ "const": "pace_threshold",
+ "type": "string"
+ },
+ "metric": {
+ "description": "current (default) = instantaneous value; average = average over the step",
+ "enum": [
+ "current",
+ "average"
+ ],
+ "type": "string"
+ },
+ "per": {
+ "enum": [
+ "km",
+ "mi"
+ ],
+ "type": "string"
+ },
+ "seconds": {
+ "maximum": 1800,
+ "minimum": 120,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "seconds",
+ "per"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "speed_range",
+ "type": "string"
+ },
+ "max": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "metric": {
+ "description": "current (default) = instantaneous value; average = average over the step",
+ "enum": [
+ "current",
+ "average"
+ ],
+ "type": "string"
+ },
+ "min": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "unit": {
+ "enum": [
+ "kph",
+ "mph"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "min",
+ "max",
+ "unit"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "speed_threshold",
+ "type": "string"
+ },
+ "metric": {
+ "description": "current (default) = instantaneous value; average = average over the step",
+ "enum": [
+ "current",
+ "average"
+ ],
+ "type": "string"
+ },
+ "unit": {
+ "enum": [
+ "kph",
+ "mph"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "kind",
+ "value",
+ "unit"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Steps per minute when running, revolutions per minute when cycling",
+ "properties": {
+ "kind": {
+ "const": "cadence_range",
+ "type": "string"
+ },
+ "max": {
+ "maximum": 250,
+ "minimum": 20,
+ "type": "integer"
+ },
+ "min": {
+ "maximum": 250,
+ "minimum": 20,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "min",
+ "max"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "cadence_threshold",
+ "type": "string"
+ },
+ "value": {
+ "maximum": 250,
+ "minimum": 20,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "power_range",
+ "type": "string"
+ },
+ "max_watts": {
+ "maximum": 2500,
+ "minimum": 10,
+ "type": "integer"
+ },
+ "metric": {
+ "description": "current (default) = instantaneous value; average = average over the step",
+ "enum": [
+ "current",
+ "average"
+ ],
+ "type": "string"
+ },
+ "min_watts": {
+ "maximum": 2500,
+ "minimum": 10,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "min_watts",
+ "max_watts"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "power_threshold",
+ "type": "string"
+ },
+ "metric": {
+ "description": "current (default) = instantaneous value; average = average over the step",
+ "enum": [
+ "current",
+ "average"
+ ],
+ "type": "string"
+ },
+ "watts": {
+ "maximum": 2500,
+ "minimum": 10,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "watts"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "power_zone",
+ "type": "string"
+ },
+ "zone": {
+ "description": "The power zone configured on the user's Apple Watch (1-5), cycling only",
+ "maximum": 5,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "zone"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "goal": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "open",
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "time",
+ "type": "string"
+ },
+ "seconds": {
+ "maximum": 21600,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "seconds"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "distance",
+ "type": "string"
+ },
+ "meters": {
+ "maximum": 100000,
+ "minimum": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "kind",
+ "meters"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "pool_distance_with_time",
+ "type": "string"
+ },
+ "meters": {
+ "maximum": 100000,
+ "minimum": 1,
+ "type": "number"
+ },
+ "seconds": {
+ "maximum": 21600,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "meters",
+ "seconds"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "heart_rate_bpm": {
+ "additionalProperties": false,
+ "description": "Legacy heart-rate window; same as alert heart_rate_range. Do not send both.",
+ "properties": {
+ "max": {
+ "maximum": 240,
+ "minimum": 30,
+ "type": "integer"
+ },
+ "min": {
+ "maximum": 240,
+ "minimum": 30,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "min",
+ "max"
+ ],
+ "type": "object"
+ },
+ "name": {
+ "maxLength": 60,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "goal"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "purpose",
+ "step"
+ ],
+ "type": "object"
+ },
+ "maxItems": 20,
+ "minItems": 1,
+ "type": "array"
+ }
+ },
+ "required": [
+ "iterations",
+ "steps"
+ ],
+ "type": "object"
+ },
+ "maxItems": 20,
+ "minItems": 1,
+ "type": "array"
+ },
+ "cooldown": {
+ "additionalProperties": false,
+ "properties": {
+ "alert": {
+ "description": "At most one alert per step (an Apple Watch limit). Prefer this over heart_rate_bpm.",
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "heart_rate_range",
+ "type": "string"
+ },
+ "max_bpm": {
+ "maximum": 240,
+ "minimum": 30,
+ "type": "integer"
+ },
+ "min_bpm": {
+ "maximum": 240,
+ "minimum": 30,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "min_bpm",
+ "max_bpm"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "heart_rate_zone",
+ "type": "string"
+ },
+ "zone": {
+ "description": "The heart-rate zone configured on the user's Apple Watch (1-5)",
+ "maximum": 5,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "zone"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Pace window in seconds per km or mile, e.g. 5:00-5:30/km = fastest_seconds 300, slowest_seconds 330, per km",
+ "properties": {
+ "fastest_seconds": {
+ "maximum": 1800,
+ "minimum": 120,
+ "type": "integer"
+ },
+ "kind": {
+ "const": "pace_range",
+ "type": "string"
+ },
+ "metric": {
+ "description": "current (default) = instantaneous value; average = average over the step",
+ "enum": [
+ "current",
+ "average"
+ ],
+ "type": "string"
+ },
+ "per": {
+ "enum": [
+ "km",
+ "mi"
+ ],
+ "type": "string"
+ },
+ "slowest_seconds": {
+ "maximum": 1800,
+ "minimum": 120,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "fastest_seconds",
+ "slowest_seconds",
+ "per"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "A single target pace in seconds per km or mile instead of a window",
+ "properties": {
+ "kind": {
+ "const": "pace_threshold",
+ "type": "string"
+ },
+ "metric": {
+ "description": "current (default) = instantaneous value; average = average over the step",
+ "enum": [
+ "current",
+ "average"
+ ],
+ "type": "string"
+ },
+ "per": {
+ "enum": [
+ "km",
+ "mi"
+ ],
+ "type": "string"
+ },
+ "seconds": {
+ "maximum": 1800,
+ "minimum": 120,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "seconds",
+ "per"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "speed_range",
+ "type": "string"
+ },
+ "max": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "metric": {
+ "description": "current (default) = instantaneous value; average = average over the step",
+ "enum": [
+ "current",
+ "average"
+ ],
+ "type": "string"
+ },
+ "min": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "unit": {
+ "enum": [
+ "kph",
+ "mph"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "min",
+ "max",
+ "unit"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "speed_threshold",
+ "type": "string"
+ },
+ "metric": {
+ "description": "current (default) = instantaneous value; average = average over the step",
+ "enum": [
+ "current",
+ "average"
+ ],
+ "type": "string"
+ },
+ "unit": {
+ "enum": [
+ "kph",
+ "mph"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "kind",
+ "value",
+ "unit"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Steps per minute when running, revolutions per minute when cycling",
+ "properties": {
+ "kind": {
+ "const": "cadence_range",
+ "type": "string"
+ },
+ "max": {
+ "maximum": 250,
+ "minimum": 20,
+ "type": "integer"
+ },
+ "min": {
+ "maximum": 250,
+ "minimum": 20,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "min",
+ "max"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "cadence_threshold",
+ "type": "string"
+ },
+ "value": {
+ "maximum": 250,
+ "minimum": 20,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "power_range",
+ "type": "string"
+ },
+ "max_watts": {
+ "maximum": 2500,
+ "minimum": 10,
+ "type": "integer"
+ },
+ "metric": {
+ "description": "current (default) = instantaneous value; average = average over the step",
+ "enum": [
+ "current",
+ "average"
+ ],
+ "type": "string"
+ },
+ "min_watts": {
+ "maximum": 2500,
+ "minimum": 10,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "min_watts",
+ "max_watts"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "power_threshold",
+ "type": "string"
+ },
+ "metric": {
+ "description": "current (default) = instantaneous value; average = average over the step",
+ "enum": [
+ "current",
+ "average"
+ ],
+ "type": "string"
+ },
+ "watts": {
+ "maximum": 2500,
+ "minimum": 10,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "watts"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "power_zone",
+ "type": "string"
+ },
+ "zone": {
+ "description": "The power zone configured on the user's Apple Watch (1-5), cycling only",
+ "maximum": 5,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "zone"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "goal": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "open",
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "time",
+ "type": "string"
+ },
+ "seconds": {
+ "maximum": 21600,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "seconds"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "distance",
+ "type": "string"
+ },
+ "meters": {
+ "maximum": 100000,
+ "minimum": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "kind",
+ "meters"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "pool_distance_with_time",
+ "type": "string"
+ },
+ "meters": {
+ "maximum": 100000,
+ "minimum": 1,
+ "type": "number"
+ },
+ "seconds": {
+ "maximum": 21600,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "meters",
+ "seconds"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "heart_rate_bpm": {
+ "additionalProperties": false,
+ "description": "Legacy heart-rate window; same as alert heart_rate_range. Do not send both.",
+ "properties": {
+ "max": {
+ "maximum": 240,
+ "minimum": 30,
+ "type": "integer"
+ },
+ "min": {
+ "maximum": 240,
+ "minimum": 30,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "min",
+ "max"
+ ],
+ "type": "object"
+ },
+ "name": {
+ "maxLength": 60,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "goal"
+ ],
+ "type": "object"
+ },
+ "distance_unit": {
+ "description": "Swimming only: the unit of the user's pool. Use yd for a yard pool (e.g. 25 yd = pool_length_m 22.86). Goal values stay in meters (yards x 0.9144); the app converts them back so the Watch shows yards and does not reconfigure the workout. Omitted: inferred as yd when pool_length_m is a whole number of yards, else m.",
+ "enum": [
+ "m",
+ "yd"
+ ],
+ "type": "string"
+ },
+ "location": {
+ "enum": [
+ "indoor",
+ "outdoor"
+ ],
+ "type": "string"
+ },
+ "pool_length_m": {
+ "description": "Pool length for swimming, in meters. Shown for review; configure this length on Apple Watch when starting (WorkoutKit does not set it).",
+ "exclusiveMinimum": 0,
+ "maximum": 150,
+ "type": "number"
+ },
+ "title": {
+ "maxLength": 60,
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "custom",
+ "description": "Omit or 'custom': warmup, repeatable blocks, cooldown",
+ "type": "string"
+ },
+ "warmup": {
+ "additionalProperties": false,
+ "properties": {
+ "alert": {
+ "description": "At most one alert per step (an Apple Watch limit). Prefer this over heart_rate_bpm.",
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "heart_rate_range",
+ "type": "string"
+ },
+ "max_bpm": {
+ "maximum": 240,
+ "minimum": 30,
+ "type": "integer"
+ },
+ "min_bpm": {
+ "maximum": 240,
+ "minimum": 30,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "min_bpm",
+ "max_bpm"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "heart_rate_zone",
+ "type": "string"
+ },
+ "zone": {
+ "description": "The heart-rate zone configured on the user's Apple Watch (1-5)",
+ "maximum": 5,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "zone"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Pace window in seconds per km or mile, e.g. 5:00-5:30/km = fastest_seconds 300, slowest_seconds 330, per km",
+ "properties": {
+ "fastest_seconds": {
+ "maximum": 1800,
+ "minimum": 120,
+ "type": "integer"
+ },
+ "kind": {
+ "const": "pace_range",
+ "type": "string"
+ },
+ "metric": {
+ "description": "current (default) = instantaneous value; average = average over the step",
+ "enum": [
+ "current",
+ "average"
+ ],
+ "type": "string"
+ },
+ "per": {
+ "enum": [
+ "km",
+ "mi"
+ ],
+ "type": "string"
+ },
+ "slowest_seconds": {
+ "maximum": 1800,
+ "minimum": 120,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "fastest_seconds",
+ "slowest_seconds",
+ "per"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "A single target pace in seconds per km or mile instead of a window",
+ "properties": {
+ "kind": {
+ "const": "pace_threshold",
+ "type": "string"
+ },
+ "metric": {
+ "description": "current (default) = instantaneous value; average = average over the step",
+ "enum": [
+ "current",
+ "average"
+ ],
+ "type": "string"
+ },
+ "per": {
+ "enum": [
+ "km",
+ "mi"
+ ],
+ "type": "string"
+ },
+ "seconds": {
+ "maximum": 1800,
+ "minimum": 120,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "seconds",
+ "per"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "speed_range",
+ "type": "string"
+ },
+ "max": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "metric": {
+ "description": "current (default) = instantaneous value; average = average over the step",
+ "enum": [
+ "current",
+ "average"
+ ],
+ "type": "string"
+ },
+ "min": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "unit": {
+ "enum": [
+ "kph",
+ "mph"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "min",
+ "max",
+ "unit"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "speed_threshold",
+ "type": "string"
+ },
+ "metric": {
+ "description": "current (default) = instantaneous value; average = average over the step",
+ "enum": [
+ "current",
+ "average"
+ ],
+ "type": "string"
+ },
+ "unit": {
+ "enum": [
+ "kph",
+ "mph"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "kind",
+ "value",
+ "unit"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Steps per minute when running, revolutions per minute when cycling",
+ "properties": {
+ "kind": {
+ "const": "cadence_range",
+ "type": "string"
+ },
+ "max": {
+ "maximum": 250,
+ "minimum": 20,
+ "type": "integer"
+ },
+ "min": {
+ "maximum": 250,
+ "minimum": 20,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "min",
+ "max"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "cadence_threshold",
+ "type": "string"
+ },
+ "value": {
+ "maximum": 250,
+ "minimum": 20,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "value"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "power_range",
+ "type": "string"
+ },
+ "max_watts": {
+ "maximum": 2500,
+ "minimum": 10,
+ "type": "integer"
+ },
+ "metric": {
+ "description": "current (default) = instantaneous value; average = average over the step",
+ "enum": [
+ "current",
+ "average"
+ ],
+ "type": "string"
+ },
+ "min_watts": {
+ "maximum": 2500,
+ "minimum": 10,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "min_watts",
+ "max_watts"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "power_threshold",
+ "type": "string"
+ },
+ "metric": {
+ "description": "current (default) = instantaneous value; average = average over the step",
+ "enum": [
+ "current",
+ "average"
+ ],
+ "type": "string"
+ },
+ "watts": {
+ "maximum": 2500,
+ "minimum": 10,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "watts"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "power_zone",
+ "type": "string"
+ },
+ "zone": {
+ "description": "The power zone configured on the user's Apple Watch (1-5), cycling only",
+ "maximum": 5,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "zone"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "goal": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "open",
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "time",
+ "type": "string"
+ },
+ "seconds": {
+ "maximum": 21600,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "seconds"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "distance",
+ "type": "string"
+ },
+ "meters": {
+ "maximum": 100000,
+ "minimum": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "kind",
+ "meters"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "pool_distance_with_time",
+ "type": "string"
+ },
+ "meters": {
+ "maximum": 100000,
+ "minimum": 1,
+ "type": "number"
+ },
+ "seconds": {
+ "maximum": 21600,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "meters",
+ "seconds"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "heart_rate_bpm": {
+ "additionalProperties": false,
+ "description": "Legacy heart-rate window; same as alert heart_rate_range. Do not send both.",
+ "properties": {
+ "max": {
+ "maximum": 240,
+ "minimum": 30,
+ "type": "integer"
+ },
+ "min": {
+ "maximum": 240,
+ "minimum": 30,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "min",
+ "max"
+ ],
+ "type": "object"
+ },
+ "name": {
+ "maxLength": 60,
+ "minLength": 1,
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "goal"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "title",
+ "activity",
+ "location",
+ "blocks"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Pace workout: cover meters in seconds; the Watch shows whether the user is ahead of or behind that even pace",
+ "properties": {
+ "activity": {
+ "enum": [
+ "running",
+ "cycling",
+ "wheelchair_run"
+ ],
+ "type": "string"
+ },
+ "location": {
+ "enum": [
+ "indoor",
+ "outdoor"
+ ],
+ "type": "string"
+ },
+ "meters": {
+ "maximum": 100000,
+ "minimum": 100,
+ "type": "number"
+ },
+ "seconds": {
+ "maximum": 21600,
+ "minimum": 60,
+ "type": "integer"
+ },
+ "title": {
+ "maxLength": 60,
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "pacer",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "title",
+ "activity",
+ "location",
+ "meters",
+ "seconds"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "One goal for the whole workout. The only way to set an active-calorie goal (energy).",
+ "properties": {
+ "activity": {
+ "enum": [
+ "running",
+ "cycling",
+ "walking",
+ "strength",
+ "functional_strength",
+ "hiit",
+ "swimming",
+ "hiking",
+ "rowing",
+ "elliptical",
+ "stair_climbing",
+ "cross_training",
+ "core_training",
+ "mixed_cardio",
+ "dance",
+ "yoga",
+ "pilates",
+ "jump_rope",
+ "kickboxing",
+ "wheelchair_run",
+ "wheelchair_walk",
+ "other"
+ ],
+ "type": "string"
+ },
+ "goal": {
+ "oneOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "open",
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "time",
+ "type": "string"
+ },
+ "seconds": {
+ "maximum": 21600,
+ "minimum": 1,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "seconds"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "distance",
+ "type": "string"
+ },
+ "meters": {
+ "maximum": 100000,
+ "minimum": 1,
+ "type": "number"
+ }
+ },
+ "required": [
+ "kind",
+ "meters"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kilocalories": {
+ "maximum": 5000,
+ "minimum": 10,
+ "type": "integer"
+ },
+ "kind": {
+ "const": "energy",
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "kilocalories"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "location": {
+ "enum": [
+ "indoor",
+ "outdoor"
+ ],
+ "type": "string"
+ },
+ "title": {
+ "maxLength": 60,
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "single_goal",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "title",
+ "activity",
+ "location",
+ "goal"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "description": "Triathlon/duathlon: the Watch switches sport leg by leg (swim-bike-run, run-bike-run...). No per-leg goals.",
+ "properties": {
+ "legs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "activity": {
+ "enum": [
+ "swimming",
+ "cycling",
+ "running"
+ ],
+ "type": "string"
+ },
+ "location": {
+ "description": "swimming: indoor = pool, outdoor = open water",
+ "enum": [
+ "indoor",
+ "outdoor"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "activity",
+ "location"
+ ],
+ "type": "object"
+ },
+ "maxItems": 10,
+ "minItems": 2,
+ "type": "array"
+ },
+ "title": {
+ "maxLength": 60,
+ "minLength": 1,
+ "type": "string"
+ },
+ "type": {
+ "const": "multisport",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "title",
+ "legs"
+ ],
+ "type": "object"
+ }
+]
removedOutput schema / properties / plans / items / properties / definition / properties
Removed value: -{
- "activity": {
- "enum": [
- "running",
- "cycling",
- "walking",
- "strength",
- "functional_strength",
- "hiit",
- "swimming"
- ],
- "type": "string"
- },
- "blocks": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "iterations": {
- "maximum": 30,
- "minimum": 1,
- "type": "integer"
- },
- "steps": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "purpose": {
- "enum": [
- "work",
- "recovery"
- ],
- "type": "string"
- },
- "step": {
- "additionalProperties": false,
- "properties": {
- "goal": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "const": "open",
- "type": "string"
- }
- },
- "required": [
- "kind"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "const": "time",
- "type": "string"
- },
- "seconds": {
- "maximum": 21600,
- "minimum": 1,
- "type": "integer"
- }
- },
- "required": [
- "kind",
- "seconds"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "const": "distance",
- "type": "string"
- },
- "meters": {
- "maximum": 100000,
- "minimum": 1,
- "type": "number"
- }
- },
- "required": [
- "kind",
- "meters"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "const": "pool_distance_with_time",
- "type": "string"
- },
- "meters": {
- "maximum": 100000,
- "minimum": 1,
- "type": "number"
- },
- "seconds": {
- "maximum": 21600,
- "minimum": 1,
- "type": "integer"
- }
- },
- "required": [
- "kind",
- "meters",
- "seconds"
- ],
- "type": "object"
- }
- ]
- },
- "heart_rate_bpm": {
- "additionalProperties": false,
- "properties": {
- "max": {
- "maximum": 240,
- "minimum": 30,
- "type": "integer"
- },
- "min": {
- "maximum": 240,
- "minimum": 30,
- "type": "integer"
- }
- },
- "required": [
- "min",
- "max"
- ],
- "type": "object"
- },
- "name": {
- "maxLength": 60,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "name",
- "goal"
- ],
- "type": "object"
- }
- },
- "required": [
- "purpose",
- "step"
- ],
- "type": "object"
- },
- "maxItems": 20,
- "minItems": 1,
- "type": "array"
- }
- },
- "required": [
- "iterations",
- "steps"
- ],
- "type": "object"
- },
- "maxItems": 20,
- "minItems": 1,
- "type": "array"
- },
- "cooldown": {
- "additionalProperties": false,
- "properties": {
- "goal": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "const": "open",
- "type": "string"
- }
- },
- "required": [
- "kind"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "const": "time",
- "type": "string"
- },
- "seconds": {
- "maximum": 21600,
- "minimum": 1,
- "type": "integer"
- }
- },
- "required": [
- "kind",
- "seconds"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "const": "distance",
- "type": "string"
- },
- "meters": {
- "maximum": 100000,
- "minimum": 1,
- "type": "number"
- }
- },
- "required": [
- "kind",
- "meters"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "const": "pool_distance_with_time",
- "type": "string"
- },
- "meters": {
- "maximum": 100000,
- "minimum": 1,
- "type": "number"
- },
- "seconds": {
- "maximum": 21600,
- "minimum": 1,
- "type": "integer"
- }
- },
- "required": [
- "kind",
- "meters",
- "seconds"
- ],
- "type": "object"
- }
- ]
- },
- "heart_rate_bpm": {
- "additionalProperties": false,
- "properties": {
- "max": {
- "maximum": 240,
- "minimum": 30,
- "type": "integer"
- },
- "min": {
- "maximum": 240,
- "minimum": 30,
- "type": "integer"
- }
- },
- "required": [
- "min",
- "max"
- ],
- "type": "object"
- },
- "name": {
- "maxLength": 60,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "name",
- "goal"
- ],
- "type": "object"
- },
- "distance_unit": {
- "description": "Swimming only: the unit of the user's pool. Use yd for a yard pool (e.g. 25 yd = pool_length_m 22.86). Goal values stay in meters (yards x 0.9144); the app converts them back so the Watch shows yards and does not reconfigure the workout. Omitted: inferred as yd when pool_length_m is a whole number of yards, else m.",
- "enum": [
- "m",
- "yd"
- ],
- "type": "string"
- },
- "location": {
- "enum": [
- "indoor",
- "outdoor"
- ],
- "type": "string"
- },
- "pool_length_m": {
- "description": "Pool length for swimming, in meters. Shown for review; configure this length on Apple Watch when starting (WorkoutKit does not set it).",
- "exclusiveMinimum": 0,
- "maximum": 150,
- "type": "number"
- },
- "title": {
- "maxLength": 60,
- "minLength": 1,
- "type": "string"
- },
- "warmup": {
- "additionalProperties": false,
- "properties": {
- "goal": {
- "oneOf": [
- {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "const": "open",
- "type": "string"
- }
- },
- "required": [
- "kind"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "const": "time",
- "type": "string"
- },
- "seconds": {
- "maximum": 21600,
- "minimum": 1,
- "type": "integer"
- }
- },
- "required": [
- "kind",
- "seconds"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "const": "distance",
- "type": "string"
- },
- "meters": {
- "maximum": 100000,
- "minimum": 1,
- "type": "number"
- }
- },
- "required": [
- "kind",
- "meters"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "const": "pool_distance_with_time",
- "type": "string"
- },
- "meters": {
- "maximum": 100000,
- "minimum": 1,
- "type": "number"
- },
- "seconds": {
- "maximum": 21600,
- "minimum": 1,
- "type": "integer"
- }
- },
- "required": [
- "kind",
- "meters",
- "seconds"
- ],
- "type": "object"
- }
- ]
- },
- "heart_rate_bpm": {
- "additionalProperties": false,
- "properties": {
- "max": {
- "maximum": 240,
- "minimum": 30,
- "type": "integer"
- },
- "min": {
- "maximum": 240,
- "minimum": 30,
- "type": "integer"
- }
- },
- "required": [
- "min",
- "max"
- ],
- "type": "object"
- },
- "name": {
- "maxLength": 60,
- "minLength": 1,
- "type": "string"
- }
- },
- "required": [
- "name",
- "goal"
- ],
- "type": "object"
- }
-}