{ "$defs": { "BenchmarkOut": { "additionalProperties": false, "properties": { "benchmark_id": { "title": "Benchmark Id", "type": "string" }, "version": { "title": "Version", "type": "string" }, "population": { "title": "Population", "type": "string" }, "on_target": { "$ref": "#/$defs/Interval" }, "satisfactory": { "$ref": "#/$defs/Interval" }, "unit": { "title": "Unit", "type": "string" }, "source_reference": { "title": "Source Reference", "type": "string" } }, "required": [ "benchmark_id", "version", "population", "on_target", "satisfactory", "unit", "source_reference" ], "title": "BenchmarkOut", "type": "object" }, "Card": { "additionalProperties": false, "properties": { "kind": { "enum": [ "positive", "review", "limitation" ], "title": "Kind", "type": "string" }, "observation": { "maxLength": 500, "minLength": 1, "title": "Observation", "type": "string" }, "why_it_matters": { "maxLength": 500, "minLength": 1, "title": "Why It Matters", "type": "string" }, "next_step": { "maxLength": 500, "minLength": 1, "title": "Next Step", "type": "string" }, "check": { "maxLength": 500, "minLength": 1, "title": "Check", "type": "string" }, "evidence_ids": { "items": { "type": "string" }, "maxItems": 8, "minItems": 1, "title": "Evidence Ids", "type": "array" }, "provisional": { "const": true, "default": true, "title": "Provisional", "type": "boolean" } }, "required": [ "kind", "observation", "why_it_matters", "next_step", "check", "evidence_ids" ], "title": "Card", "type": "object" }, "ClockEvidence": { "additionalProperties": false, "properties": { "kind": { "enum": [ "unknown", "unretimed", "constant_slowdown", "explicit" ], "title": "Kind", "type": "string" }, "source": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Source" }, "physical_time_available": { "title": "Physical Time Available", "type": "boolean" }, "median_playback_fps": { "anyOf": [ { "exclusiveMinimum": 0, "type": "number" }, { "type": "null" } ], "title": "Median Playback Fps" }, "median_capture_fps": { "anyOf": [ { "exclusiveMinimum": 0, "type": "number" }, { "type": "null" } ], "title": "Median Capture Fps" }, "minimum_capture_interval_ms": { "anyOf": [ { "exclusiveMinimum": 0, "type": "number" }, { "type": "null" } ], "title": "Minimum Capture Interval Ms" }, "maximum_capture_interval_ms": { "anyOf": [ { "exclusiveMinimum": 0, "type": "number" }, { "type": "null" } ], "title": "Maximum Capture Interval Ms" }, "reasons": { "items": { "type": "string" }, "title": "Reasons", "type": "array" } }, "required": [ "kind", "source", "physical_time_available", "median_playback_fps", "median_capture_fps", "minimum_capture_interval_ms", "maximum_capture_interval_ms", "reasons" ], "title": "ClockEvidence", "type": "object" }, "Coaching": { "additionalProperties": false, "properties": { "status": { "enum": [ "generated", "unavailable" ], "title": "Status", "type": "string" }, "summary": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Summary" }, "cards": { "items": { "$ref": "#/$defs/Card" }, "title": "Cards", "type": "array" }, "reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Reason" }, "evidence_mode": { "const": "ml_measurements_and_motion", "default": "ml_measurements_and_motion", "title": "Evidence Mode", "type": "string" }, "review_status": { "default": "not_generated", "enum": [ "automated_evidence_check", "not_generated" ], "title": "Review Status", "type": "string" } }, "required": [ "status" ], "title": "Coaching", "type": "object" }, "Curve": { "additionalProperties": false, "properties": { "curve_id": { "enum": [ "front_knee_flexion", "throwing_elbow_flexion", "torso_inclination", "hip_shoulder_separation", "pelvis_heading", "shoulder_heading" ], "title": "Curve Id", "type": "string" }, "unit": { "const": "deg", "default": "deg", "title": "Unit", "type": "string" }, "samples": { "items": { "$ref": "#/$defs/Sample" }, "maxItems": 240, "title": "Samples", "type": "array" }, "usable_frame_count": { "minimum": 0, "title": "Usable Frame Count", "type": "integer" }, "total_frame_count": { "exclusiveMinimum": 0, "title": "Total Frame Count", "type": "integer" }, "reasons": { "items": { "type": "string" }, "title": "Reasons", "type": "array" } }, "required": [ "curve_id", "samples", "usable_frame_count", "total_frame_count", "reasons" ], "title": "Curve", "type": "object" }, "DataQualityNote": { "additionalProperties": false, "properties": { "code": { "title": "Code", "type": "string" }, "severity": { "enum": [ "info", "warning" ], "title": "Severity", "type": "string" }, "text": { "title": "Text", "type": "string" } }, "required": [ "code", "severity", "text" ], "title": "DataQualityNote", "type": "object" }, "DeliveryEvidence": { "additionalProperties": false, "properties": { "version": { "const": "pitch-evidence-1.0", "default": "pitch-evidence-1.0", "title": "Version", "type": "string" }, "source_frame_count": { "exclusiveMinimum": 1, "title": "Source Frame Count", "type": "integer" }, "start_frame": { "minimum": 0, "title": "Start Frame", "type": "integer" }, "end_frame": { "minimum": 0, "title": "End Frame", "type": "integer" }, "clock": { "$ref": "#/$defs/ClockEvidence" }, "curves": { "items": { "$ref": "#/$defs/Curve" }, "maxItems": 6, "title": "Curves", "type": "array" }, "phases": { "items": { "$ref": "#/$defs/Phase" }, "maxItems": 4, "title": "Phases", "type": "array" }, "sequencing": { "$ref": "#/$defs/Sequencing" }, "consistency": { "const": "not_assessable_single_delivery", "default": "not_assessable_single_delivery", "title": "Consistency", "type": "string" }, "accuracy_status": { "const": "not_validated_for_this_recording", "default": "not_validated_for_this_recording", "title": "Accuracy Status", "type": "string" } }, "required": [ "source_frame_count", "start_frame", "end_frame", "clock", "curves", "phases", "sequencing" ], "title": "DeliveryEvidence", "type": "object" }, "Drill": { "additionalProperties": false, "properties": { "drill_id": { "title": "Drill Id", "type": "string" }, "name": { "title": "Name", "type": "string" }, "how": { "title": "How", "type": "string" }, "cue": { "title": "Cue", "type": "string" }, "reps": { "title": "Reps", "type": "string" } }, "required": [ "drill_id", "name", "how", "cue", "reps" ], "title": "Drill", "type": "object" }, "Interval": { "additionalProperties": false, "properties": { "lower": { "title": "Lower", "type": "number" }, "upper": { "title": "Upper", "type": "number" } }, "required": [ "lower", "upper" ], "title": "Interval", "type": "object" }, "Limitation": { "additionalProperties": false, "properties": { "code": { "title": "Code", "type": "string" }, "text": { "title": "Text", "type": "string" } }, "required": [ "code", "text" ], "title": "Limitation", "type": "object" }, "Overview": { "additionalProperties": false, "properties": { "headline": { "title": "Headline", "type": "string" } }, "required": [ "headline" ], "title": "Overview", "type": "object" }, "Phase": { "additionalProperties": false, "properties": { "phase": { "enum": [ "setup_to_lift", "move_to_plant", "plant_to_release", "recorded_finish" ], "title": "Phase", "type": "string" }, "start_frame": { "minimum": 0, "title": "Start Frame", "type": "integer" }, "end_frame": { "minimum": 0, "title": "End Frame", "type": "integer" }, "duration_ms": { "anyOf": [ { "minimum": 0, "type": "number" }, { "type": "null" } ], "title": "Duration Ms" }, "motion": { "items": { "$ref": "#/$defs/PhaseMotion" }, "title": "Motion", "type": "array" } }, "required": [ "phase", "start_frame", "end_frame", "duration_ms", "motion" ], "title": "Phase", "type": "object" }, "PhaseMotion": { "additionalProperties": false, "properties": { "curve_id": { "enum": [ "front_knee_flexion", "throwing_elbow_flexion", "torso_inclination", "hip_shoulder_separation", "pelvis_heading", "shoulder_heading" ], "title": "Curve Id", "type": "string" }, "start_value": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Start Value" }, "end_value": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "End Value" }, "minimum": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Minimum" }, "maximum": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Maximum" }, "change": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Change" }, "usable_frame_count": { "minimum": 0, "title": "Usable Frame Count", "type": "integer" }, "reasons": { "items": { "type": "string" }, "title": "Reasons", "type": "array" } }, "required": [ "curve_id", "start_value", "end_value", "minimum", "maximum", "change", "usable_frame_count", "reasons" ], "title": "PhaseMotion", "type": "object" }, "PitchFocus": { "additionalProperties": false, "properties": { "kind": { "enum": [ "fix", "maintain", "general" ], "title": "Kind", "type": "string" }, "is_tentative": { "title": "Is Tentative", "type": "boolean" }, "metric_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Metric Id" }, "group": { "anyOf": [ { "enum": [ "gather", "stride_plant", "rotation_release", "release_finish" ], "type": "string" }, { "type": "null" } ], "title": "Group" }, "display_name": { "title": "Display Name", "type": "string" }, "rating": { "enum": [ "on_target", "satisfactory", "off_target", "not_rated" ], "title": "Rating", "type": "string" }, "rating_label": { "title": "Rating Label", "type": "string" }, "coach_message": { "title": "Coach Message", "type": "string" }, "practice_feel": { "title": "Practice Feel", "type": "string" }, "drill": { "anyOf": [ { "$ref": "#/$defs/Drill" }, { "type": "null" } ] }, "evidence_metric_ids": { "items": { "type": "string" }, "title": "Evidence Metric Ids", "type": "array" } }, "required": [ "kind", "is_tentative", "metric_id", "group", "display_name", "rating", "rating_label", "coach_message", "practice_feel", "drill", "evidence_metric_ids" ], "title": "PitchFocus", "type": "object" }, "PitchGroupReport": { "additionalProperties": false, "properties": { "group": { "enum": [ "gather", "stride_plant", "rotation_release", "release_finish" ], "title": "Group", "type": "string" }, "display_name": { "title": "Display Name", "type": "string" }, "score": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Score" }, "score_is_tentative": { "title": "Score Is Tentative", "type": "boolean" }, "rating": { "enum": [ "on_target", "satisfactory", "off_target", "not_rated" ], "title": "Rating", "type": "string" }, "rating_label": { "title": "Rating Label", "type": "string" }, "not_rated_reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Not Rated Reason" }, "summary": { "title": "Summary", "type": "string" }, "metric_ids": { "items": { "type": "string" }, "title": "Metric Ids", "type": "array" } }, "required": [ "group", "display_name", "score", "score_is_tentative", "rating", "rating_label", "not_rated_reason", "summary", "metric_ids" ], "title": "PitchGroupReport", "type": "object" }, "PitchMeasurementReport": { "additionalProperties": false, "properties": { "metric_id": { "title": "Metric Id", "type": "string" }, "display_name": { "title": "Display Name", "type": "string" }, "group": { "enum": [ "gather", "stride_plant", "rotation_release", "release_finish" ], "title": "Group", "type": "string" }, "status": { "enum": [ "available", "limited", "unavailable" ], "title": "Status", "type": "string" }, "value": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Value" }, "unit": { "title": "Unit", "type": "string" }, "display_value": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Display Value" }, "score": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Score" }, "rating": { "enum": [ "on_target", "satisfactory", "off_target", "not_rated" ], "title": "Rating", "type": "string" }, "rating_label": { "title": "Rating Label", "type": "string" }, "rating_is_tentative": { "title": "Rating Is Tentative", "type": "boolean" }, "not_rated_reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Not Rated Reason" }, "benchmark": { "anyOf": [ { "$ref": "#/$defs/BenchmarkOut" }, { "type": "null" } ] }, "what_it_means": { "title": "What It Means", "type": "string" }, "result_text": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Result Text" }, "coach_tip": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Coach Tip" }, "limitations": { "items": { "$ref": "#/$defs/Limitation" }, "title": "Limitations", "type": "array" }, "value_interval": { "anyOf": [ { "$ref": "#/$defs/Interval" }, { "type": "null" } ], "default": null }, "score_interval": { "anyOf": [ { "$ref": "#/$defs/Interval" }, { "type": "null" } ], "default": null } }, "required": [ "metric_id", "display_name", "group", "status", "value", "unit", "display_value", "score", "rating", "rating_label", "rating_is_tentative", "not_rated_reason", "benchmark", "what_it_means", "result_text", "coach_tip", "limitations" ], "title": "PitchMeasurementReport", "type": "object" }, "ReportMeta": { "additionalProperties": false, "properties": { "generated_at": { "title": "Generated At", "type": "string" }, "request_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Request Id" }, "text_source": { "enum": [ "llm", "rules", "mixed" ], "title": "Text Source", "type": "string" }, "model": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Model" }, "prompt_version": { "title": "Prompt Version", "type": "string" }, "cache_hit": { "title": "Cache Hit", "type": "boolean" }, "fallback_reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Fallback Reason" }, "text_rejections": { "additionalProperties": { "items": { "type": "string" }, "type": "array" }, "title": "Text Rejections", "type": "object" }, "input_schema_version": { "title": "Input Schema Version", "type": "string" }, "measurement_definitions_version": { "title": "Measurement Definitions Version", "type": "string" }, "benchmark_registry_version": { "title": "Benchmark Registry Version", "type": "string" }, "coaching_rules_version": { "title": "Coaching Rules Version", "type": "string" } }, "required": [ "generated_at", "request_id", "text_source", "model", "prompt_version", "cache_hit", "fallback_reason", "input_schema_version", "measurement_definitions_version", "benchmark_registry_version", "coaching_rules_version" ], "title": "ReportMeta", "type": "object" }, "Sample": { "additionalProperties": false, "properties": { "frame": { "minimum": 0, "title": "Frame", "type": "integer" }, "value": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Value" } }, "required": [ "frame", "value" ], "title": "Sample", "type": "object" }, "Sequencing": { "additionalProperties": false, "properties": { "status": { "enum": [ "provisional", "unavailable" ], "title": "Status", "type": "string" }, "pelvis_peak_frame_interval": { "anyOf": [ { "items": { "type": "integer" }, "maxItems": 2, "minItems": 2, "type": "array" }, { "type": "null" } ], "default": null, "title": "Pelvis Peak Frame Interval" }, "shoulder_peak_frame_interval": { "anyOf": [ { "items": { "type": "integer" }, "maxItems": 2, "minItems": 2, "type": "array" }, { "type": "null" } ], "default": null, "title": "Shoulder Peak Frame Interval" }, "order": { "enum": [ "pelvis_then_shoulders", "shoulders_then_pelvis", "unresolved" ], "title": "Order", "type": "string" }, "reasons": { "items": { "type": "string" }, "title": "Reasons", "type": "array" } }, "required": [ "status", "order", "reasons" ], "title": "Sequencing", "type": "object" } }, "additionalProperties": false, "properties": { "schema_version": { "const": "1.0", "title": "Schema Version", "type": "string" }, "analysis_id": { "title": "Analysis Id", "type": "string" }, "analysis_revision": { "title": "Analysis Revision", "type": "integer" }, "overall_score": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Overall Score" }, "overall_score_is_tentative": { "title": "Overall Score Is Tentative", "type": "boolean" }, "overview": { "$ref": "#/$defs/Overview" }, "groups": { "items": { "$ref": "#/$defs/PitchGroupReport" }, "title": "Groups", "type": "array" }, "focus_area": { "anyOf": [ { "$ref": "#/$defs/PitchFocus" }, { "type": "null" } ] }, "measurements": { "items": { "$ref": "#/$defs/PitchMeasurementReport" }, "title": "Measurements", "type": "array" }, "data_quality": { "items": { "$ref": "#/$defs/DataQualityNote" }, "title": "Data Quality", "type": "array" }, "meta": { "$ref": "#/$defs/ReportMeta" }, "discipline": { "const": "pitching", "title": "Discipline", "type": "string" }, "delivery_evidence": { "anyOf": [ { "$ref": "#/$defs/DeliveryEvidence" }, { "type": "null" } ], "default": null }, "drill_evaluation": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "default": null, "title": "Drill Evaluation" }, "coaching": { "anyOf": [ { "$ref": "#/$defs/Coaching" }, { "type": "null" } ], "default": null }, "visual_evidence": { "default": null, "title": "Visual Evidence", "type": "null" } }, "required": [ "schema_version", "analysis_id", "analysis_revision", "overall_score", "overall_score_is_tentative", "overview", "groups", "focus_area", "measurements", "data_quality", "meta", "discipline" ], "title": "PitchReport", "type": "object" }