baseball-engine / backend /docs /openapi.json
github-actions[bot]
Automated Deploy: a36ad9fbaf2a4b4a2efb7feea50aa69986cf59d3
e980186
Raw History Blame Contribute Delete
327 kB
{ "openapi": "3.1.0", "info": { "title": "Cognivision Baseball API", "version": "0.1.0" }, "paths": { "/v1/auth/register": { "post": { "tags": [ "auth" ], "summary": "Register", "operationId": "register_v1_auth_register_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterIn" } } }, "required": true }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthOut" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/auth/login": { "post": { "tags": [ "auth" ], "summary": "Login", "operationId": "login_v1_auth_login_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginIn" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthOut" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/auth/social": { "post": { "tags": [ "auth" ], "summary": "Social", "operationId": "social_v1_auth_social_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SocialIn" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SocialAuthOut" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/auth/refresh": { "post": { "tags": [ "auth" ], "summary": "Refresh", "operationId": "refresh_v1_auth_refresh_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefreshIn" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TokensOut" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/auth/logout": { "post": { "tags": [ "auth" ], "summary": "Logout", "operationId": "logout_v1_auth_logout_post", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefreshIn" } } } }, "responses": { "204": { "description": "Successful Response" }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/auth/password/forgot": { "post": { "tags": [ "auth" ], "summary": "Forgot Password", "operationId": "forgot_password_v1_auth_password_forgot_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ForgotPasswordIn" } } }, "required": true }, "responses": { "202": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/auth/password/reset": { "post": { "tags": [ "auth" ], "summary": "Reset Password", "operationId": "reset_password_v1_auth_password_reset_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ResetPasswordIn" } } }, "required": true }, "responses": { "204": { "description": "Successful Response" }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/me": { "get": { "tags": [ "accounts" ], "summary": "Get Me", "operationId": "get_me_v1_me_get", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MeOut" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } }, "patch": { "tags": [ "accounts" ], "summary": "Update Me", "operationId": "update_me_v1_me_patch", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/MeUpdate" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserBody" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } }, "delete": { "tags": [ "accounts" ], "summary": "Delete Me", "operationId": "delete_me_v1_me_delete", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "204": { "description": "Successful Response" }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/teams": { "post": { "tags": [ "teams" ], "summary": "Save Team", "operationId": "save_team_v1_teams_post", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TeamCreate" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TeamResponse" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/teams/lookup": { "get": { "tags": [ "teams" ], "summary": "Lookup Team", "operationId": "lookup_team_v1_teams_lookup_get", "parameters": [ { "name": "code", "in": "query", "required": true, "schema": { "type": "string", "minLength": 1, "maxLength": 32, "title": "Code" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TeamSummaryResponse" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/teams/{code}/join": { "post": { "tags": [ "teams" ], "summary": "Join Team", "operationId": "join_team_v1_teams__code__join_post", "parameters": [ { "name": "code", "in": "path", "required": true, "schema": { "type": "string", "title": "Code" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TeamResponse" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/me/team": { "delete": { "tags": [ "teams" ], "summary": "Leave Team", "operationId": "leave_team_v1_me_team_delete", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "204": { "description": "Successful Response" }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/uploads": { "post": { "tags": [ "uploads" ], "summary": "Create Upload", "operationId": "create_upload_v1_uploads_post", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UploadIn" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UploadOut" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/sessions": { "post": { "tags": [ "sessions" ], "summary": "Create Session", "operationId": "create_session_v1_sessions_post", "parameters": [ { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string", "maxLength": 128 }, { "type": "null" } ], "title": "Idempotency-Key" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/app__modules__sessions__schemas__SessionIn" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SessionEnvelope" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } }, "get": { "tags": [ "sessions" ], "summary": "List Sessions", "operationId": "list_sessions_v1_sessions_get", "parameters": [ { "name": "mode", "in": "query", "required": false, "schema": { "anyOf": [ { "enum": [ "h", "p" ], "type": "string" }, { "type": "null" } ], "title": "Mode" } }, { "name": "self", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Self" } }, { "name": "athlete_name", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string", "maxLength": 80 }, { "type": "null" } ], "title": "Athlete Name" } }, { "name": "since", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Since" } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 200, "minimum": 1, "default": 50, "title": "Limit" } }, { "name": "cursor", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cursor" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_SessionSummary_" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/sessions/{session_id}": { "get": { "tags": [ "sessions" ], "summary": "Get Session", "operationId": "get_session_v1_sessions__session_id__get", "parameters": [ { "name": "session_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Session Id" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SessionEnvelope" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } }, "delete": { "tags": [ "sessions" ], "summary": "Delete Session", "operationId": "delete_session_v1_sessions__session_id__delete", "parameters": [ { "name": "session_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Session Id" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "204": { "description": "Successful Response" }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/sessions/{session_id}/swing-report": { "post": { "tags": [ "swing reports" ], "summary": "Create Swing Report", "operationId": "create_swing_report_v1_sessions__session_id__swing_report_post", "parameters": [ { "name": "session_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Session Id" } }, { "name": "queue", "in": "query", "required": false, "schema": { "type": "boolean", "default": true, "title": "Queue" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SwingAnalysisPayload" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SwingReport" } } } }, "202": { "description": "Queued (the default): the report is built in the background", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportQueued" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/sessions/{session_id}/pitch-report/retry-coaching": { "post": { "tags": [ "pitch reports" ], "summary": "Retry Pitch Coaching", "operationId": "retry_pitch_coaching_v1_sessions__session_id__pitch_report_retry_coaching_post", "parameters": [ { "name": "session_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Session Id" } }, { "name": "refresh", "in": "query", "required": false, "schema": { "type": "boolean", "default": false, "title": "Refresh" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PitchReport" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/sessions/{session_id}/pitch-report": { "post": { "tags": [ "pitch reports" ], "summary": "Create Pitch Report", "operationId": "create_pitch_report_v1_sessions__session_id__pitch_report_post", "parameters": [ { "name": "session_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Session Id" } }, { "name": "queue", "in": "query", "required": false, "schema": { "type": "boolean", "default": true, "title": "Queue" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PitchPayload" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "anyOf": [ { "$ref": "#/components/schemas/PitchReport" }, { "$ref": "#/components/schemas/SwingReport" } ], "title": "Response Create Pitch Report V1 Sessions Session Id Pitch Report Post" } } } }, "202": { "description": "Queued (the default): the report is built in the background", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReportQueued" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/drill-logs": { "post": { "tags": [ "drills" ], "summary": "Create Drill Log", "operationId": "create_drill_log_v1_drill_logs_post", "parameters": [ { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string", "maxLength": 128 }, { "type": "null" } ], "title": "Idempotency-Key" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DrillLogIn" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DrillLogEnvelope" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } }, "get": { "tags": [ "drills" ], "summary": "List Drill Logs", "operationId": "list_drill_logs_v1_drill_logs_get", "parameters": [ { "name": "from", "in": "query", "required": true, "schema": { "type": "string", "format": "date", "title": "From" } }, { "name": "to", "in": "query", "required": true, "schema": { "type": "string", "format": "date", "title": "To" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Items_DrillLogOut_" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/sessions/{session_id}/review": { "post": { "tags": [ "reviews" ], "summary": "Submit Review", "operationId": "submit_review_v1_sessions__session_id__review_post", "parameters": [ { "name": "session_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Session Id" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReviewSubmit" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReviewSubmitted" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/coach/roster": { "get": { "tags": [ "coach" ], "summary": "Roster", "operationId": "roster_v1_coach_roster_get", "parameters": [ { "name": "group_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Group Id" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Items_RosterItem_" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/coach/players/{player_id}/sessions": { "get": { "tags": [ "coach" ], "summary": "Player Sessions", "operationId": "player_sessions_v1_coach_players__player_id__sessions_get", "parameters": [ { "name": "player_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Player Id" } }, { "name": "mode", "in": "query", "required": false, "schema": { "anyOf": [ { "enum": [ "h", "p" ], "type": "string" }, { "type": "null" } ], "title": "Mode" } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 200, "minimum": 1, "default": 50, "title": "Limit" } }, { "name": "cursor", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cursor" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_SessionSummary_" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/coach/queue": { "get": { "tags": [ "coach" ], "summary": "Queue", "operationId": "queue_v1_coach_queue_get", "parameters": [ { "name": "since", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Since" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/QueueResponse" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/devices": { "post": { "tags": [ "devices" ], "summary": "Register Device", "operationId": "register_device_v1_devices_post", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DeviceCreate" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DeviceResponse" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/devices/{push_token}": { "delete": { "tags": [ "devices" ], "summary": "Remove Device", "operationId": "remove_device_v1_devices__push_token__delete", "parameters": [ { "name": "push_token", "in": "path", "required": true, "schema": { "type": "string", "title": "Push Token" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "204": { "description": "Successful Response" }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/me/entitlement": { "get": { "tags": [ "billing" ], "summary": "Get Entitlement", "operationId": "get_entitlement_v1_me_entitlement_get", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Entitlement" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/billing/receipts": { "post": { "tags": [ "billing" ], "summary": "Submit Receipt", "operationId": "submit_receipt_v1_billing_receipts_post", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReceiptIn" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReceiptOut" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/billing/webhooks/apple": { "post": { "tags": [ "billing" ], "summary": "Apple Webhook", "operationId": "apple_webhook_v1_billing_webhooks_apple_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AppleWebhookIn" } } }, "required": true }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WebhookAck" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/billing/webhooks/google": { "post": { "tags": [ "billing" ], "summary": "Google Webhook", "operationId": "google_webhook_v1_billing_webhooks_google_post", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PubSubPushIn" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WebhookAck" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/catalog/metrics": { "get": { "tags": [ "catalog" ], "summary": "Catalog Metrics", "operationId": "catalog_metrics_v1_catalog_metrics_get", "parameters": [ { "name": "mode", "in": "query", "required": false, "schema": { "enum": [ "h", "p" ], "type": "string", "default": "h", "title": "Mode" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CatalogOut" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/admin/api-logs": { "get": { "tags": [ "API logs" ], "summary": "List Logs", "operationId": "list_logs_v1_admin_api_logs_get", "parameters": [ { "name": "request_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string", "maxLength": 128 }, { "type": "null" } ], "title": "Request Id" } }, { "name": "session_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Session Id" } }, { "name": "analysis_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string", "maxLength": 256 }, { "type": "null" } ], "title": "Analysis Id" } }, { "name": "account_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Account Id" } }, { "name": "status_code", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "integer", "maximum": 599, "minimum": 100 }, { "type": "null" } ], "title": "Status Code" } }, { "name": "method", "in": "query", "required": false, "schema": { "anyOf": [ { "enum": [ "GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS" ], "type": "string" }, { "type": "null" } ], "title": "Method" } }, { "name": "route", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string", "maxLength": 512 }, { "type": "null" } ], "title": "Route" } }, { "name": "since", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Since" } }, { "name": "until", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Until" } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 200, "minimum": 1, "default": 50, "title": "Limit" } }, { "name": "cursor", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cursor" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_AuditLogSummary_" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/admin/api-logs/{log_id}": { "get": { "tags": [ "API logs" ], "summary": "Get Log", "operationId": "get_log_v1_admin_api_logs__log_id__get", "parameters": [ { "name": "log_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Log Id" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuditLogDetail" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/me/settings": { "get": { "tags": [ "settings" ], "summary": "Read Settings", "operationId": "read_settings_v1_me_settings_get", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SettingsEnvelope" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } }, "patch": { "tags": [ "settings" ], "summary": "Update Settings", "operationId": "update_settings_v1_me_settings_patch", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SettingsPatch" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SettingsEnvelope" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/me/consent": { "post": { "tags": [ "settings" ], "summary": "Accept Consent", "operationId": "accept_consent_v1_me_consent_post", "parameters": [ { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string", "maxLength": 128 }, { "type": "null" } ], "title": "Idempotency-Key" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConsentIn" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": {} } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } }, "delete": { "tags": [ "settings" ], "summary": "Withdraw Consent", "operationId": "withdraw_consent_v1_me_consent_delete", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "204": { "description": "Successful Response" }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/me/exports": { "post": { "tags": [ "settings" ], "summary": "Request Export", "operationId": "request_export_v1_me_exports_post", "parameters": [ { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string", "maxLength": 128 }, { "type": "null" } ], "title": "Idempotency-Key" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExportIn" } } } }, "responses": { "202": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExportEnvelope" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/notifications": { "get": { "tags": [ "notifications" ], "summary": "List Notifications", "operationId": "list_notifications_v1_notifications_get", "parameters": [ { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 200, "minimum": 1, "default": 50, "title": "Limit" } }, { "name": "cursor", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cursor" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_NotificationOut_" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/notifications/unread-count": { "get": { "tags": [ "notifications" ], "summary": "Unread Count", "operationId": "unread_count_v1_notifications_unread_count_get", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UnreadCount" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/notifications/read-all": { "post": { "tags": [ "notifications" ], "summary": "Read All", "operationId": "read_all_v1_notifications_read_all_post", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "content": { "application/json": { "schema": { "anyOf": [ { "$ref": "#/components/schemas/ReadAllIn" }, { "type": "null" } ], "title": "Body" } } } }, "responses": { "204": { "description": "Successful Response" }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/notifications/{notification_id}/read": { "post": { "tags": [ "notifications" ], "summary": "Read One", "operationId": "read_one_v1_notifications__notification_id__read_post", "parameters": [ { "name": "notification_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Notification Id" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "204": { "description": "Successful Response" }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/threads": { "get": { "tags": [ "threads" ], "summary": "List Threads", "operationId": "list_threads_v1_threads_get", "parameters": [ { "name": "mode", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string", "pattern": "^[hp]$" }, { "type": "null" } ], "title": "Mode" } }, { "name": "player_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Player Id" } }, { "name": "unread", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Unread" } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 200, "minimum": 1, "default": 50, "title": "Limit" } }, { "name": "cursor", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cursor" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_ThreadOut_" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/threads/{thread_id}": { "get": { "tags": [ "threads" ], "summary": "Get Thread", "operationId": "get_thread_v1_threads__thread_id__get", "parameters": [ { "name": "thread_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Thread Id" } }, { "name": "message_cursor", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Message Cursor" } }, { "name": "message_limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 100, "minimum": 1, "default": 50, "title": "Message Limit" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ThreadEnvelope" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/sessions/{session_id}/thread": { "get": { "tags": [ "threads" ], "summary": "Session Thread", "operationId": "session_thread_v1_sessions__session_id__thread_get", "parameters": [ { "name": "session_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Session Id" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ThreadEnvelope" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/threads/{thread_id}/read": { "post": { "tags": [ "threads" ], "summary": "Mark Read", "operationId": "mark_read_v1_threads__thread_id__read_post", "parameters": [ { "name": "thread_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Thread Id" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ReadIn" } } } }, "responses": { "204": { "description": "Successful Response" }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/threads/{thread_id}/messages": { "post": { "tags": [ "threads" ], "summary": "Send Message", "operationId": "send_message_v1_threads__thread_id__messages_post", "parameters": [ { "name": "thread_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Thread Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Idempotency-Key" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "oneOf": [ { "$ref": "#/components/schemas/TextIn" }, { "$ref": "#/components/schemas/VoiceIn" }, { "$ref": "#/components/schemas/ImageIn" }, { "$ref": "#/components/schemas/VideoIn" }, { "$ref": "#/components/schemas/app__modules__threads__schemas__SessionIn" } ], "discriminator": { "propertyName": "kind", "mapping": { "text": "#/components/schemas/TextIn", "voice": "#/components/schemas/VoiceIn", "image": "#/components/schemas/ImageIn", "video": "#/components/schemas/VideoIn", "session": "#/components/schemas/app__modules__threads__schemas__SessionIn" } }, "title": "Body" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SendResult" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/coach/players/{player_id}/thread": { "post": { "tags": [ "threads" ], "summary": "Ensure Thread", "operationId": "ensure_thread_v1_coach_players__player_id__thread_post", "parameters": [ { "name": "player_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Player Id" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EnsureThreadIn" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ThreadEnvelope" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/players/{player_id}/goals": { "get": { "tags": [ "goals" ], "summary": "Get Goal", "operationId": "get_goal_v1_players__player_id__goals_get", "parameters": [ { "name": "player_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Player Id" } }, { "name": "mode", "in": "query", "required": true, "schema": { "enum": [ "h", "p" ], "type": "string", "title": "Mode" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GoalEnvelope" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/players/{player_id}/goals/{mode}": { "put": { "tags": [ "goals" ], "summary": "Put Goal", "operationId": "put_goal_v1_players__player_id__goals__mode__put", "parameters": [ { "name": "player_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Player Id" } }, { "name": "mode", "in": "path", "required": true, "schema": { "enum": [ "h", "p" ], "type": "string", "title": "Mode" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GoalIn" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GoalEnvelope" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/players/{player_id}/goals/history": { "get": { "tags": [ "goals" ], "summary": "Goal History", "operationId": "goal_history_v1_players__player_id__goals_history_get", "parameters": [ { "name": "player_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Player Id" } }, { "name": "mode", "in": "query", "required": true, "schema": { "enum": [ "h", "p" ], "type": "string", "title": "Mode" } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 200, "minimum": 1, "default": 50, "title": "Limit" } }, { "name": "cursor", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cursor" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_GoalHistoryOut_" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/me/milestones": { "get": { "tags": [ "goals" ], "summary": "Milestones", "operationId": "milestones_v1_me_milestones_get", "parameters": [ { "name": "mode", "in": "query", "required": true, "schema": { "enum": [ "h", "p" ], "type": "string", "title": "Mode" } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 200, "minimum": 1, "default": 50, "title": "Limit" } }, { "name": "cursor", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cursor" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_MilestoneOut_" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/drill-assignments": { "get": { "tags": [ "assignments" ], "summary": "List Assignments", "operationId": "list_assignments_v1_drill_assignments_get", "parameters": [ { "name": "mode", "in": "query", "required": true, "schema": { "enum": [ "h", "p" ], "type": "string", "title": "Mode" } }, { "name": "player_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Player Id" } }, { "name": "status", "in": "query", "required": false, "schema": { "enum": [ "open", "completed", "all" ], "type": "string", "default": "all", "title": "Status" } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 200, "minimum": 1, "default": 50, "title": "Limit" } }, { "name": "cursor", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cursor" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_AssignmentOut_" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/coach/players/{player_id}/drill-assignments": { "post": { "tags": [ "assignments" ], "summary": "Assign Drill", "operationId": "assign_drill_v1_coach_players__player_id__drill_assignments_post", "parameters": [ { "name": "player_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Player Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string", "maxLength": 128 }, { "type": "null" } ], "title": "Idempotency-Key" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssignIn" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssignmentEnvelope" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/drill-assignments/{assignment_id}/sets": { "post": { "tags": [ "assignments" ], "summary": "Log Set", "operationId": "log_set_v1_drill_assignments__assignment_id__sets_post", "parameters": [ { "name": "assignment_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Assignment Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string", "maxLength": 128 }, { "type": "null" } ], "title": "Idempotency-Key" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SetIn" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SetResult" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/me/arm-care": { "get": { "tags": [ "arm-care" ], "summary": "Get Arm Care", "operationId": "get_arm_care_v1_me_arm_care_get", "parameters": [ { "name": "from", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string", "format": "date" }, { "type": "null" } ], "title": "From" } }, { "name": "to", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string", "format": "date" }, { "type": "null" } ], "title": "To" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ArmCareEnvelope" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/me/arm-care/outings": { "post": { "tags": [ "arm-care" ], "summary": "Add Outing", "operationId": "add_outing_v1_me_arm_care_outings_post", "parameters": [ { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string", "maxLength": 128 }, { "type": "null" } ], "title": "Idempotency-Key" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OutingIn" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/OutingResult" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/me/arm-care/feel": { "put": { "tags": [ "arm-care" ], "summary": "Set Feel", "operationId": "set_feel_v1_me_arm_care_feel_put", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FeelIn" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FeelOut" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/me/coach-access": { "get": { "tags": [ "academy_staff" ], "summary": "Get Coach Access", "operationId": "get_coach_access_v1_me_coach_access_get", "parameters": [ { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CoachAccessBody" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } }, "post": { "tags": [ "academy_staff" ], "summary": "Apply For Coach Access", "operationId": "apply_for_coach_access_v1_me_coach_access_post", "parameters": [ { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string", "maxLength": 128 }, { "type": "null" } ], "title": "Idempotency-Key" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CoachAccessCreate" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CoachAccessBody" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/academy/coaches": { "get": { "tags": [ "academy_staff" ], "summary": "List Coaches", "operationId": "list_coaches_v1_academy_coaches_get", "parameters": [ { "name": "status", "in": "query", "required": false, "schema": { "anyOf": [ { "enum": [ "active", "paused", "removed", "all" ], "type": "string" }, { "type": "null" } ], "title": "Status" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_CoachOut_" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/academy/coaches/{coach_id}": { "get": { "tags": [ "academy_staff" ], "summary": "Get Coach", "operationId": "get_coach_v1_academy_coaches__coach_id__get", "parameters": [ { "name": "coach_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Coach Id" } }, { "name": "activity_from", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string", "format": "date" }, { "type": "null" } ], "title": "Activity From" } }, { "name": "activity_to", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string", "format": "date" }, { "type": "null" } ], "title": "Activity To" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CoachBody" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } }, "patch": { "tags": [ "academy_staff" ], "summary": "Update Coach", "operationId": "update_coach_v1_academy_coaches__coach_id__patch", "parameters": [ { "name": "coach_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Coach Id" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CoachUpdate" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CoachBody" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } }, "delete": { "tags": [ "academy_staff" ], "summary": "Remove Coach", "operationId": "remove_coach_v1_academy_coaches__coach_id__delete", "parameters": [ { "name": "coach_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Coach Id" } }, { "name": "reassign_to", "in": "query", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Reassign To" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "204": { "description": "Successful Response" }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/academy/coach-requests": { "get": { "tags": [ "academy_staff" ], "summary": "List Requests", "operationId": "list_requests_v1_academy_coach_requests_get", "parameters": [ { "name": "status", "in": "query", "required": false, "schema": { "enum": [ "pending", "approved", "declined", "all" ], "type": "string", "default": "all", "title": "Status" } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 200, "minimum": 1, "default": 50, "title": "Limit" } }, { "name": "cursor", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cursor" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RequestPage" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/academy/coach-requests/{request_id}/decision": { "post": { "tags": [ "academy_staff" ], "summary": "Decide Request", "operationId": "decide_request_v1_academy_coach_requests__request_id__decision_post", "parameters": [ { "name": "request_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Request Id" } }, { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string", "maxLength": 128 }, { "type": "null" } ], "title": "Idempotency-Key" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DecisionIn" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DecisionOut" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/academy/staff-codes": { "get": { "tags": [ "academy_staff" ], "summary": "List Codes", "operationId": "list_codes_v1_academy_staff_codes_get", "parameters": [ { "name": "status", "in": "query", "required": false, "schema": { "enum": [ "active", "expired", "revoked", "all" ], "type": "string", "default": "all", "title": "Status" } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 200, "minimum": 1, "default": 50, "title": "Limit" } }, { "name": "cursor", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cursor" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_StaffCodeOut_" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } }, "post": { "tags": [ "academy_staff" ], "summary": "Create Code", "operationId": "create_code_v1_academy_staff_codes_post", "parameters": [ { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string", "maxLength": 128 }, { "type": "null" } ], "title": "Idempotency-Key" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StaffCodeCreate" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/StaffCodeBody" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/academy/staff-codes/{code}": { "delete": { "tags": [ "academy_staff" ], "summary": "Revoke Code", "operationId": "revoke_code_v1_academy_staff_codes__code__delete", "parameters": [ { "name": "code", "in": "path", "required": true, "schema": { "type": "string", "title": "Code" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "204": { "description": "Successful Response" }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/academy/groups": { "get": { "tags": [ "academy_org" ], "summary": "List Groups", "operationId": "list_groups_v1_academy_groups_get", "parameters": [ { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 200, "minimum": 1, "default": 50, "title": "Limit" } }, { "name": "cursor", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cursor" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_GroupOut_" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } }, "post": { "tags": [ "academy_org" ], "summary": "Create Group", "operationId": "create_group_v1_academy_groups_post", "parameters": [ { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string", "maxLength": 128 }, { "type": "null" } ], "title": "Idempotency-Key" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GroupIn" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/GroupEnvelope" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/coach/players/{player_id}/note": { "get": { "tags": [ "academy_org" ], "summary": "Get Note", "operationId": "get_note_v1_coach_players__player_id__note_get", "parameters": [ { "name": "player_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Player Id" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NoteEnvelope" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } }, "put": { "tags": [ "academy_org" ], "summary": "Save Note", "operationId": "save_note_v1_coach_players__player_id__note_put", "parameters": [ { "name": "player_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid", "title": "Player Id" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NoteIn" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/NoteEnvelope" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/academy/members": { "get": { "tags": [ "academy_org" ], "summary": "Members", "operationId": "members_v1_academy_members_get", "parameters": [ { "name": "q", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string", "maxLength": 100 }, { "type": "null" } ], "title": "Q" } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 200, "minimum": 1, "default": 50, "title": "Limit" } }, { "name": "cursor", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cursor" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_MemberOut_" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/coach/roster/players": { "post": { "tags": [ "academy_org" ], "summary": "Add Roster Players", "operationId": "add_roster_players_v1_coach_roster_players_post", "parameters": [ { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string", "maxLength": 128 }, { "type": "null" } ], "title": "Idempotency-Key" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RosterAddIn" } } } }, "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RosterAddOut" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/academy/library": { "get": { "tags": [ "academy_org" ], "summary": "Library", "operationId": "library_v1_academy_library_get", "parameters": [ { "name": "mode", "in": "query", "required": false, "schema": { "anyOf": [ { "enum": [ "h", "p" ], "type": "string" }, { "type": "null" } ], "title": "Mode" } }, { "name": "fault_tag", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string", "maxLength": 64 }, { "type": "null" } ], "title": "Fault Tag" } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 200, "minimum": 1, "default": 50, "title": "Limit" } }, { "name": "cursor", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cursor" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Page_LibraryDrillOut_" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } }, "post": { "tags": [ "academy_org" ], "summary": "Publish Drill", "operationId": "publish_drill_v1_academy_library_post", "parameters": [ { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string", "maxLength": 128 }, { "type": "null" } ], "title": "Idempotency-Key" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LibraryDrillIn" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LibraryEnvelope" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/academy/dashboard": { "get": { "tags": [ "reporting" ], "summary": "Dashboard", "operationId": "dashboard_v1_academy_dashboard_get", "parameters": [ { "name": "month", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Month" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/DashboardResponse" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/academy/earnings": { "get": { "tags": [ "reporting" ], "summary": "Earnings", "operationId": "earnings_v1_academy_earnings_get", "parameters": [ { "name": "month", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Month" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EarningsResponse" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/academy/corp": { "get": { "tags": [ "reporting" ], "summary": "Corporate", "operationId": "corporate_v1_academy_corp_get", "parameters": [ { "name": "month", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Month" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CorporateResponse" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/academy/consent": { "get": { "tags": [ "reporting" ], "summary": "Consent", "operationId": "consent_v1_academy_consent_get", "parameters": [ { "name": "group_id", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Group Id" } }, { "name": "limit", "in": "query", "required": false, "schema": { "type": "integer", "maximum": 200, "minimum": 1, "default": 50, "title": "Limit" } }, { "name": "cursor", "in": "query", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Cursor" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "responses": { "200": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConsentPage" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } }, "/v1/academy/consent/export": { "post": { "tags": [ "reporting" ], "summary": "Export Consent", "operationId": "export_consent_v1_academy_consent_export_post", "parameters": [ { "name": "idempotency-key", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string", "maxLength": 128 }, { "type": "null" } ], "title": "Idempotency-Key" } }, { "name": "authorization", "in": "header", "required": false, "schema": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Authorization" } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ConsentExportRequest" } } } }, "responses": { "201": { "description": "Successful Response", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ExportResponse" } } } }, "400": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } }, "default": { "description": "Error", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorResponse" } } } } } } } }, "components": { "schemas": { "AcademyOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "name": { "type": "string", "title": "Name" }, "role": { "type": "string", "title": "Role" }, "status": { "type": "string", "title": "Status" }, "sees_all": { "type": "boolean", "title": "Sees All" }, "group_ids": { "items": { "type": "string", "format": "uuid" }, "type": "array", "title": "Group Ids" }, "permissions": { "additionalProperties": { "type": "boolean" }, "type": "object", "title": "Permissions" } }, "type": "object", "required": [ "id", "name", "role", "status", "sees_all", "group_ids", "permissions" ], "title": "AcademyOut" }, "ActivityOut": { "properties": { "reviews": { "type": "integer", "title": "Reviews" }, "avg_reply_hours": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Avg Reply Hours" }, "players": { "type": "integer", "title": "Players" }, "drills_set": { "type": "integer", "title": "Drills Set" }, "period_start": { "type": "string", "format": "date", "title": "Period Start" }, "period_end": { "type": "string", "format": "date", "title": "Period End" } }, "type": "object", "required": [ "reviews", "avg_reply_hours", "players", "drills_set", "period_start", "period_end" ], "title": "ActivityOut" }, "AppleWebhookIn": { "properties": { "signedPayload": { "type": "string", "maxLength": 200000, "title": "Signedpayload" } }, "type": "object", "required": [ "signedPayload" ], "title": "AppleWebhookIn" }, "ArmCareEnvelope": { "properties": { "arm_care": { "$ref": "#/components/schemas/ArmCareOut" } }, "type": "object", "required": [ "arm_care" ], "title": "ArmCareEnvelope" }, "ArmCareOut": { "properties": { "outings": { "items": { "$ref": "#/components/schemas/OutingOut" }, "type": "array", "title": "Outings" }, "feel": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Feel" }, "feel_recorded_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Feel Recorded At" }, "daily_max": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Daily Max" }, "innings_last_12_months": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Innings Last 12 Months" }, "innings_limit": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Innings Limit" }, "rest_status": { "type": "string", "title": "Rest Status", "default": "unknown" }, "next_eligible_date": { "anyOf": [ { "type": "string", "format": "date" }, { "type": "null" } ], "title": "Next Eligible Date" }, "rule_version": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Rule Version" }, "unavailable_reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Unavailable Reason", "default": "Age-specific policy and innings source not configured" } }, "type": "object", "required": [ "outings", "feel", "feel_recorded_at" ], "title": "ArmCareOut" }, "AssignIn": { "properties": { "mode": { "type": "string", "enum": [ "h", "p" ], "title": "Mode" }, "drill_source": { "type": "string", "enum": [ "catalog", "library" ], "title": "Drill Source" }, "drill_id": { "type": "string", "maxLength": 40, "minLength": 1, "title": "Drill Id" }, "due_date": { "type": "string", "format": "date", "title": "Due Date" }, "source_session_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Source Session Id" } }, "additionalProperties": false, "type": "object", "required": [ "mode", "drill_source", "drill_id", "due_date" ], "title": "AssignIn" }, "AssignmentEnvelope": { "properties": { "assignment": { "$ref": "#/components/schemas/AssignmentOut" } }, "type": "object", "required": [ "assignment" ], "title": "AssignmentEnvelope" }, "AssignmentOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "player_id": { "type": "string", "format": "uuid", "title": "Player Id" }, "mode": { "type": "string", "title": "Mode" }, "drill_id": { "type": "string", "title": "Drill Id" }, "drill_source": { "type": "string", "title": "Drill Source" }, "name": { "type": "string", "title": "Name" }, "fixes": { "type": "string", "title": "Fixes" }, "sets": { "type": "integer", "title": "Sets" }, "reps": { "type": "integer", "title": "Reps" }, "due": { "type": "string", "title": "Due" }, "due_date": { "type": "string", "format": "date", "title": "Due Date" }, "assigned_by": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Assigned By" }, "assigned_by_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Assigned By Id" }, "done": { "type": "integer", "title": "Done" }, "session_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Session Id" }, "assigned_at": { "type": "string", "format": "date-time", "title": "Assigned At" }, "media": { "anyOf": [ { "$ref": "#/components/schemas/MediaRef" }, { "type": "null" } ] } }, "type": "object", "required": [ "id", "player_id", "mode", "drill_id", "drill_source", "name", "fixes", "sets", "reps", "due", "due_date", "assigned_by", "assigned_by_id", "done", "session_id", "assigned_at", "media" ], "title": "AssignmentOut" }, "AthleteIn": { "properties": { "name": { "type": "string", "maxLength": 80, "minLength": 2, "title": "Name" }, "age": { "type": "integer", "maximum": 70.0, "minimum": 5.0, "title": "Age" }, "height_cm": { "type": "number", "maximum": 230.0, "minimum": 90.0, "title": "Height Cm" }, "weight_kg": { "type": "number", "maximum": 200.0, "minimum": 20.0, "title": "Weight Kg" }, "bats": { "type": "string", "enum": [ "L", "R", "S" ], "title": "Bats" }, "throws": { "type": "string", "enum": [ "L", "R" ], "title": "Throws" }, "level": { "type": "string", "enum": [ "youth", "high_school", "college", "adult" ], "title": "Level" } }, "additionalProperties": false, "type": "object", "required": [ "name", "age", "height_cm", "weight_kg", "bats", "throws", "level" ], "title": "AthleteIn" }, "AuditLogDetail": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" }, "started_at": { "type": "string", "format": "date-time", "title": "Started At" }, "request_id": { "type": "string", "title": "Request Id" }, "method": { "type": "string", "title": "Method" }, "path": { "type": "string", "title": "Path" }, "route": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Route" }, "status_code": { "type": "integer", "title": "Status Code" }, "duration_ms": { "type": "number", "title": "Duration Ms" }, "account_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Account Id" }, "session_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Session Id" }, "analysis_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Analysis Id" }, "analysis_revision": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Analysis Revision" }, "error_code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Error Code" }, "exception_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Exception Type" }, "response_complete": { "type": "boolean", "title": "Response Complete" }, "service_version": { "type": "string", "title": "Service Version" }, "request_headers": { "additionalProperties": true, "type": "object", "title": "Request Headers" }, "query_params": { "additionalProperties": true, "type": "object", "title": "Query Params" }, "request_payload": { "additionalProperties": true, "type": "object", "title": "Request Payload" }, "response_headers": { "additionalProperties": true, "type": "object", "title": "Response Headers" }, "response_payload": { "additionalProperties": true, "type": "object", "title": "Response Payload" } }, "type": "object", "required": [ "id", "created_at", "started_at", "request_id", "method", "path", "route", "status_code", "duration_ms", "account_id", "session_id", "analysis_id", "analysis_revision", "error_code", "exception_type", "response_complete", "service_version", "request_headers", "query_params", "request_payload", "response_headers", "response_payload" ], "title": "AuditLogDetail" }, "AuditLogSummary": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" }, "started_at": { "type": "string", "format": "date-time", "title": "Started At" }, "request_id": { "type": "string", "title": "Request Id" }, "method": { "type": "string", "title": "Method" }, "path": { "type": "string", "title": "Path" }, "route": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Route" }, "status_code": { "type": "integer", "title": "Status Code" }, "duration_ms": { "type": "number", "title": "Duration Ms" }, "account_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Account Id" }, "session_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Session Id" }, "analysis_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Analysis Id" }, "analysis_revision": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Analysis Revision" }, "error_code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Error Code" }, "exception_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Exception Type" }, "response_complete": { "type": "boolean", "title": "Response Complete" }, "service_version": { "type": "string", "title": "Service Version" } }, "type": "object", "required": [ "id", "created_at", "started_at", "request_id", "method", "path", "route", "status_code", "duration_ms", "account_id", "session_id", "analysis_id", "analysis_revision", "error_code", "exception_type", "response_complete", "service_version" ], "title": "AuditLogSummary" }, "AuthOut": { "properties": { "user": { "$ref": "#/components/schemas/UserOut" }, "tokens": { "$ref": "#/components/schemas/TokensOut" } }, "type": "object", "required": [ "user", "tokens" ], "title": "AuthOut" }, "BenchmarkOut": { "additionalProperties": false, "properties": { "benchmark_id": { "title": "Benchmark Id", "type": "string" }, "version": { "title": "Version", "type": "string" }, "population": { "title": "Population", "type": "string" }, "on_target": { "$ref": "#/components/schemas/Interval" }, "satisfactory": { "$ref": "#/components/schemas/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" }, "CapabilitiesOut": { "properties": { "player": { "type": "boolean", "title": "Player" }, "coach": { "type": "boolean", "title": "Coach" }, "academy_admin": { "type": "boolean", "title": "Academy Admin" }, "corporate_view": { "type": "boolean", "title": "Corporate View" } }, "type": "object", "required": [ "player", "coach", "academy_admin", "corporate_view" ], "title": "CapabilitiesOut" }, "Card": { "properties": { "kind": { "type": "string", "enum": [ "positive", "review", "limitation" ], "title": "Kind" }, "observation": { "type": "string", "maxLength": 500, "minLength": 1, "title": "Observation" }, "why_it_matters": { "type": "string", "maxLength": 500, "minLength": 1, "title": "Why It Matters" }, "next_step": { "type": "string", "maxLength": 500, "minLength": 1, "title": "Next Step" }, "check": { "type": "string", "maxLength": 500, "minLength": 1, "title": "Check" }, "evidence_ids": { "items": { "type": "string" }, "type": "array", "maxItems": 8, "minItems": 1, "title": "Evidence Ids" }, "provisional": { "type": "boolean", "const": true, "title": "Provisional", "default": true } }, "additionalProperties": false, "type": "object", "required": [ "kind", "observation", "why_it_matters", "next_step", "check", "evidence_ids" ], "title": "Card" }, "Cards": { "properties": { "g": { "type": "integer", "title": "G" }, "y": { "type": "integer", "title": "Y" }, "r": { "type": "integer", "title": "R" } }, "type": "object", "required": [ "g", "y", "r" ], "title": "Cards" }, "CatalogOut": { "properties": { "groups": { "items": { "$ref": "#/components/schemas/app__modules__catalog__schemas__GroupOut" }, "type": "array", "title": "Groups" }, "metrics": { "items": { "$ref": "#/components/schemas/MetricOut" }, "type": "array", "title": "Metrics" }, "drills": { "items": { "$ref": "#/components/schemas/DrillOut" }, "type": "array", "title": "Drills" } }, "type": "object", "required": [ "groups", "metrics", "drills" ], "title": "CatalogOut" }, "ClockEvidence": { "properties": { "kind": { "type": "string", "enum": [ "unknown", "unretimed", "constant_slowdown", "explicit" ], "title": "Kind" }, "source": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Source" }, "physical_time_available": { "type": "boolean", "title": "Physical Time Available" }, "median_playback_fps": { "anyOf": [ { "type": "number", "exclusiveMinimum": 0.0 }, { "type": "null" } ], "title": "Median Playback Fps" }, "median_capture_fps": { "anyOf": [ { "type": "number", "exclusiveMinimum": 0.0 }, { "type": "null" } ], "title": "Median Capture Fps" }, "minimum_capture_interval_ms": { "anyOf": [ { "type": "number", "exclusiveMinimum": 0.0 }, { "type": "null" } ], "title": "Minimum Capture Interval Ms" }, "maximum_capture_interval_ms": { "anyOf": [ { "type": "number", "exclusiveMinimum": 0.0 }, { "type": "null" } ], "title": "Maximum Capture Interval Ms" }, "reasons": { "items": { "type": "string" }, "type": "array", "title": "Reasons" } }, "additionalProperties": false, "type": "object", "required": [ "kind", "source", "physical_time_available", "median_playback_fps", "median_capture_fps", "minimum_capture_interval_ms", "maximum_capture_interval_ms", "reasons" ], "title": "ClockEvidence" }, "CoachAccessBody": { "properties": { "coach_access": { "$ref": "#/components/schemas/CoachAccessOut" } }, "type": "object", "required": [ "coach_access" ], "title": "CoachAccessBody" }, "CoachAccessCreate": { "properties": { "code": { "type": "string", "maxLength": 64, "minLength": 6, "title": "Code" } }, "additionalProperties": false, "type": "object", "required": [ "code" ], "title": "CoachAccessCreate" }, "CoachAccessOut": { "properties": { "status": { "type": "string", "enum": [ "none", "pending", "approved", "declined" ], "title": "Status" }, "code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Code" }, "sent_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Sent At" } }, "type": "object", "required": [ "status", "code", "sent_at" ], "title": "CoachAccessOut" }, "CoachActivity": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "name": { "type": "string", "title": "Name" }, "coaches": { "type": "string", "title": "Coaches" }, "reviews": { "type": "integer", "title": "Reviews" } }, "type": "object", "required": [ "id", "name", "coaches", "reviews" ], "title": "CoachActivity" }, "CoachBody": { "properties": { "coach": { "$ref": "#/components/schemas/CoachOut" } }, "type": "object", "required": [ "coach" ], "title": "CoachBody" }, "CoachOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "name": { "type": "string", "title": "Name" }, "coaches": { "type": "string", "title": "Coaches" }, "joined": { "type": "string", "format": "date-time", "title": "Joined" }, "joined_with": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Joined With" }, "role": { "type": "string", "enum": [ "admin", "coach", "assistant" ], "title": "Role" }, "is_me": { "type": "boolean", "title": "Is Me" }, "sees_all": { "type": "boolean", "title": "Sees All" }, "group_ids": { "items": { "type": "string", "format": "uuid" }, "type": "array", "title": "Group Ids" }, "permissions": { "anyOf": [ { "additionalProperties": { "type": "boolean" }, "type": "object" }, { "type": "null" } ], "title": "Permissions" }, "activity": { "anyOf": [ { "$ref": "#/components/schemas/ActivityOut" }, { "type": "null" } ] }, "status": { "type": "string", "enum": [ "active", "paused", "removed" ], "title": "Status" }, "version": { "type": "integer", "title": "Version" } }, "type": "object", "required": [ "id", "name", "coaches", "joined", "joined_with", "role", "is_me", "sees_all", "group_ids", "permissions", "activity", "status", "version" ], "title": "CoachOut" }, "CoachUpdate": { "properties": { "role": { "anyOf": [ { "type": "string", "enum": [ "admin", "coach", "assistant" ] }, { "type": "null" } ], "title": "Role" }, "sees_all": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Sees All" }, "group_ids": { "anyOf": [ { "items": { "type": "string", "format": "uuid" }, "type": "array" }, { "type": "null" } ], "title": "Group Ids" }, "permissions": { "anyOf": [ { "$ref": "#/components/schemas/PermissionsIn" }, { "type": "null" } ] }, "status": { "anyOf": [ { "type": "string", "enum": [ "active", "paused" ] }, { "type": "null" } ], "title": "Status" }, "expected_version": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Expected Version" } }, "additionalProperties": false, "type": "object", "title": "CoachUpdate" }, "Coaching": { "properties": { "status": { "type": "string", "enum": [ "generated", "unavailable" ], "title": "Status" }, "summary": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Summary" }, "cards": { "items": { "$ref": "#/components/schemas/Card" }, "type": "array", "title": "Cards" }, "reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Reason" }, "evidence_mode": { "type": "string", "const": "ml_measurements_and_motion", "title": "Evidence Mode", "default": "ml_measurements_and_motion" }, "review_status": { "type": "string", "enum": [ "automated_evidence_check", "not_generated" ], "title": "Review Status", "default": "not_generated" } }, "additionalProperties": false, "type": "object", "required": [ "status" ], "title": "Coaching" }, "ConsentExportRequest": { "properties": { "format": { "type": "string", "const": "csv", "title": "Format", "default": "csv" }, "group_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Group Id" } }, "additionalProperties": false, "type": "object", "title": "ConsentExportRequest" }, "ConsentIn": { "properties": { "version": { "type": "string", "maxLength": 16, "minLength": 1, "title": "Version" }, "accepted": { "type": "boolean", "const": true, "title": "Accepted" } }, "additionalProperties": false, "type": "object", "required": [ "version", "accepted" ], "title": "ConsentIn" }, "ConsentItem": { "properties": { "player_id": { "type": "string", "format": "uuid", "title": "Player Id" }, "name": { "type": "string", "title": "Name" }, "group": { "type": "string", "title": "Group" }, "group_ids": { "items": { "type": "string", "format": "uuid" }, "type": "array", "title": "Group Ids" }, "note": { "type": "string", "title": "Note" }, "version": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Version" }, "accepted_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Accepted At" }, "withdrawn_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Withdrawn At" }, "help_improve_ai": { "type": "boolean", "title": "Help Improve Ai" } }, "type": "object", "required": [ "player_id", "name", "group", "group_ids", "note", "version", "accepted_at", "withdrawn_at", "help_improve_ai" ], "title": "ConsentItem" }, "ConsentPage": { "properties": { "items": { "items": { "$ref": "#/components/schemas/ConsentItem" }, "type": "array", "title": "Items" }, "next_cursor": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Next Cursor" }, "accepted": { "type": "integer", "title": "Accepted" }, "ai_opt_in": { "type": "integer", "title": "Ai Opt In" } }, "type": "object", "required": [ "items", "accepted", "ai_opt_in" ], "title": "ConsentPage" }, "CorpFix": { "properties": { "metric_id": { "type": "string", "title": "Metric Id" }, "label": { "type": "string", "title": "Label" }, "mode": { "type": "string", "enum": [ "h", "p" ], "title": "Mode" }, "affected_pct": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Affected Pct" } }, "type": "object", "required": [ "metric_id", "label", "mode", "affected_pct" ], "title": "CorpFix" }, "CorpKpis": { "properties": { "locations_live": { "type": "integer", "title": "Locations Live" }, "active_players": { "type": "integer", "title": "Active Players" }, "analyses": { "type": "integer", "title": "Analyses" }, "improving_pct": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Improving Pct" } }, "type": "object", "required": [ "locations_live", "active_players", "analyses", "improving_pct" ], "title": "CorpKpis" }, "CorpLocation": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "name": { "type": "string", "title": "Name" }, "active_players": { "type": "integer", "title": "Active Players" }, "improving_pct": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Improving Pct" } }, "type": "object", "required": [ "id", "name", "active_players", "improving_pct" ], "title": "CorpLocation" }, "Corporate": { "properties": { "month": { "type": "string", "title": "Month" }, "as_of": { "type": "string", "format": "date-time", "title": "As Of" }, "kpis": { "$ref": "#/components/schemas/CorpKpis" }, "locations": { "items": { "$ref": "#/components/schemas/CorpLocation" }, "type": "array", "title": "Locations" }, "fixes": { "items": { "$ref": "#/components/schemas/CorpFix" }, "type": "array", "title": "Fixes" } }, "type": "object", "required": [ "month", "as_of", "kpis", "locations", "fixes" ], "title": "Corporate" }, "CorporateResponse": { "properties": { "corporate": { "$ref": "#/components/schemas/Corporate" } }, "type": "object", "required": [ "corporate" ], "title": "CorporateResponse" }, "Curve": { "properties": { "curve_id": { "type": "string", "enum": [ "front_knee_flexion", "throwing_elbow_flexion", "torso_inclination", "hip_shoulder_separation", "pelvis_heading", "shoulder_heading" ], "title": "Curve Id" }, "unit": { "type": "string", "const": "deg", "title": "Unit", "default": "deg" }, "samples": { "items": { "$ref": "#/components/schemas/Sample" }, "type": "array", "maxItems": 240, "title": "Samples" }, "usable_frame_count": { "type": "integer", "minimum": 0.0, "title": "Usable Frame Count" }, "total_frame_count": { "type": "integer", "exclusiveMinimum": 0.0, "title": "Total Frame Count" }, "reasons": { "items": { "type": "string" }, "type": "array", "title": "Reasons" } }, "additionalProperties": false, "type": "object", "required": [ "curve_id", "samples", "usable_frame_count", "total_frame_count", "reasons" ], "title": "Curve" }, "Dashboard": { "properties": { "month": { "type": "string", "title": "Month" }, "currency": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Currency" }, "earnings_minor": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Earnings Minor" }, "paying_players": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Paying Players" }, "per_player_minor": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Per Player Minor" }, "active_players": { "type": "integer", "title": "Active Players" }, "new_this_month": { "type": "integer", "title": "New This Month" }, "improving_pct": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Improving Pct" }, "analyses_this_week": { "type": "integer", "title": "Analyses This Week" }, "avg_review_hours": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Avg Review Hours" }, "cards": { "$ref": "#/components/schemas/Cards" }, "coaches": { "items": { "$ref": "#/components/schemas/CoachActivity" }, "type": "array", "title": "Coaches" }, "pending_requests": { "type": "integer", "title": "Pending Requests" }, "not_filmed_7d": { "type": "integer", "title": "Not Filmed 7D" }, "earnings_bars": { "items": { "$ref": "#/components/schemas/EarningsBar" }, "type": "array", "title": "Earnings Bars", "default": [] }, "unavailable_reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Unavailable Reason" }, "as_of": { "type": "string", "format": "date-time", "title": "As Of" } }, "type": "object", "required": [ "month", "active_players", "new_this_month", "improving_pct", "analyses_this_week", "avg_review_hours", "cards", "coaches", "pending_requests", "not_filmed_7d", "as_of" ], "title": "Dashboard" }, "DashboardResponse": { "properties": { "dashboard": { "$ref": "#/components/schemas/Dashboard" } }, "type": "object", "required": [ "dashboard" ], "title": "DashboardResponse" }, "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" }, "DecisionIn": { "properties": { "decision": { "type": "string", "enum": [ "approve", "decline" ], "title": "Decision" }, "role": { "anyOf": [ { "type": "string", "enum": [ "coach", "assistant" ] }, { "type": "null" } ], "title": "Role" }, "sees_all": { "type": "boolean", "title": "Sees All", "default": false }, "group_ids": { "items": { "type": "string", "format": "uuid" }, "type": "array", "title": "Group Ids" } }, "additionalProperties": false, "type": "object", "required": [ "decision" ], "title": "DecisionIn" }, "DecisionOut": { "properties": { "request": { "$ref": "#/components/schemas/RequestOut" }, "coach": { "anyOf": [ { "$ref": "#/components/schemas/CoachOut" }, { "type": "null" } ] } }, "type": "object", "required": [ "request", "coach" ], "title": "DecisionOut" }, "DeliveryEvidence": { "properties": { "version": { "type": "string", "const": "pitch-evidence-1.0", "title": "Version", "default": "pitch-evidence-1.0" }, "source_frame_count": { "type": "integer", "exclusiveMinimum": 1.0, "title": "Source Frame Count" }, "start_frame": { "type": "integer", "minimum": 0.0, "title": "Start Frame" }, "end_frame": { "type": "integer", "minimum": 0.0, "title": "End Frame" }, "clock": { "$ref": "#/components/schemas/ClockEvidence" }, "curves": { "items": { "$ref": "#/components/schemas/Curve" }, "type": "array", "maxItems": 6, "title": "Curves" }, "phases": { "items": { "$ref": "#/components/schemas/Phase" }, "type": "array", "maxItems": 4, "title": "Phases" }, "sequencing": { "$ref": "#/components/schemas/Sequencing" }, "consistency": { "type": "string", "const": "not_assessable_single_delivery", "title": "Consistency", "default": "not_assessable_single_delivery" }, "accuracy_status": { "type": "string", "const": "not_validated_for_this_recording", "title": "Accuracy Status", "default": "not_validated_for_this_recording" } }, "additionalProperties": false, "type": "object", "required": [ "source_frame_count", "start_frame", "end_frame", "clock", "curves", "phases", "sequencing" ], "title": "DeliveryEvidence" }, "DeviceCreate": { "properties": { "platform": { "type": "string", "enum": [ "ios", "android" ], "title": "Platform" }, "push_token": { "type": "string", "maxLength": 4096, "minLength": 1, "title": "Push Token" } }, "additionalProperties": false, "type": "object", "required": [ "platform", "push_token" ], "title": "DeviceCreate" }, "DeviceOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "platform": { "type": "string", "title": "Platform" }, "push_token": { "type": "string", "title": "Push Token" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" } }, "type": "object", "required": [ "id", "platform", "push_token", "created_at" ], "title": "DeviceOut" }, "DeviceResponse": { "properties": { "device": { "$ref": "#/components/schemas/DeviceOut" } }, "type": "object", "required": [ "device" ], "title": "DeviceResponse" }, "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" }, "DrillLogEnvelope": { "properties": { "log": { "$ref": "#/components/schemas/DrillLogOut" } }, "type": "object", "required": [ "log" ], "title": "DrillLogEnvelope" }, "DrillLogIn": { "properties": { "session_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Session Id" }, "drill_id": { "type": "string", "maxLength": 16, "minLength": 1, "title": "Drill Id" }, "reps": { "type": "integer", "maximum": 8.0, "minimum": 1.0, "title": "Reps" }, "day": { "type": "string", "format": "date", "title": "Day" } }, "additionalProperties": false, "type": "object", "required": [ "drill_id", "reps", "day" ], "title": "DrillLogIn" }, "DrillLogOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "session_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Session Id" }, "drill_id": { "type": "string", "title": "Drill Id" }, "assignment_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Assignment Id" }, "reps": { "type": "integer", "title": "Reps" }, "day": { "type": "string", "format": "date", "title": "Day" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" } }, "type": "object", "required": [ "id", "session_id", "drill_id", "assignment_id", "reps", "day", "created_at" ], "title": "DrillLogOut" }, "DrillOut": { "properties": { "drill_id": { "type": "string", "title": "Drill Id" }, "name": { "type": "string", "title": "Name" }, "how": { "type": "string", "title": "How" }, "cue": { "type": "string", "title": "Cue" }, "reps": { "type": "string", "title": "Reps" } }, "type": "object", "required": [ "drill_id", "name", "how", "cue", "reps" ], "title": "DrillOut" }, "Earnings": { "properties": { "month": { "type": "string", "title": "Month" }, "currency": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Currency" }, "month_minor": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Month Minor" }, "players": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Players" }, "per_player_minor": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Per Player Minor" }, "ytd_minor": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Ytd Minor" }, "projected_minor": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Projected Minor" }, "as_of": { "type": "string", "format": "date-time", "title": "As Of" }, "payouts": { "items": { "$ref": "#/components/schemas/Payout" }, "type": "array", "title": "Payouts", "default": [] }, "next_cursor": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Next Cursor" }, "unavailable_reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Unavailable Reason" } }, "type": "object", "required": [ "month", "as_of" ], "title": "Earnings" }, "EarningsBar": { "properties": { "month": { "type": "string", "title": "Month" }, "amount_minor": { "type": "integer", "title": "Amount Minor" } }, "type": "object", "required": [ "month", "amount_minor" ], "title": "EarningsBar" }, "EarningsResponse": { "properties": { "earnings": { "$ref": "#/components/schemas/Earnings" } }, "type": "object", "required": [ "earnings" ], "title": "EarningsResponse" }, "EnsureThreadIn": { "properties": { "mode": { "type": "string", "enum": [ "h", "p" ], "title": "Mode" } }, "additionalProperties": false, "type": "object", "required": [ "mode" ], "title": "EnsureThreadIn" }, "Entitlement": { "properties": { "plan": { "type": "string", "title": "Plan" }, "weekly_limit": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Weekly Limit" }, "used_this_week": { "type": "integer", "title": "Used This Week" }, "left": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Left" }, "window_days": { "type": "integer", "title": "Window Days" } }, "type": "object", "required": [ "plan", "weekly_limit", "used_this_week", "left", "window_days" ], "title": "Entitlement" }, "ExportEnvelope": { "properties": { "export": { "$ref": "#/components/schemas/app__modules__settings__schemas__ExportOut" } }, "type": "object", "required": [ "export" ], "title": "ExportEnvelope" }, "ExportIn": { "properties": { "scope": { "type": "string", "const": "videos", "title": "Scope" } }, "additionalProperties": false, "type": "object", "required": [ "scope" ], "title": "ExportIn" }, "ExportResponse": { "properties": { "export": { "$ref": "#/components/schemas/app__modules__reporting__schemas__ExportOut" } }, "type": "object", "required": [ "export" ], "title": "ExportResponse" }, "FeelIn": { "properties": { "feel": { "type": "string", "enum": [ "sore", "tight", "good" ], "title": "Feel" } }, "additionalProperties": false, "type": "object", "required": [ "feel" ], "title": "FeelIn" }, "FeelOut": { "properties": { "feel": { "type": "string", "title": "Feel" }, "recorded_at": { "type": "string", "format": "date-time", "title": "Recorded At" } }, "type": "object", "required": [ "feel", "recorded_at" ], "title": "FeelOut" }, "Finding": { "properties": { "metric_id": { "type": "string", "title": "Metric Id" }, "name": { "type": "string", "title": "Name" }, "verdict": { "type": "string", "enum": [ "agree", "change", "later" ], "title": "Verdict" } }, "type": "object", "required": [ "metric_id", "name", "verdict" ], "title": "Finding" }, "FocusArea": { "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": [ "balance_load", "stride", "power_move", "contact_follow_through" ], "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": { "$ref": "#/components/schemas/Drill" }, "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": "FocusArea", "type": "object" }, "FocusSummary": { "properties": { "metric_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Metric Id" }, "display_name": { "type": "string", "title": "Display Name" }, "drill_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Drill Id" } }, "type": "object", "required": [ "metric_id", "display_name", "drill_id" ], "title": "FocusSummary" }, "ForgotPasswordIn": { "properties": { "email": { "type": "string", "maxLength": 254, "title": "Email" } }, "additionalProperties": false, "type": "object", "required": [ "email" ], "title": "ForgotPasswordIn" }, "GoalEnvelope": { "properties": { "goal": { "anyOf": [ { "$ref": "#/components/schemas/GoalOut" }, { "type": "null" } ] } }, "type": "object", "required": [ "goal" ], "title": "GoalEnvelope" }, "GoalHistoryOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "text": { "type": "string", "title": "Text" }, "range": { "type": "string", "title": "Range" }, "met": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Met" }, "outcome": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Outcome" }, "start_at": { "type": "string", "format": "date-time", "title": "Start At" }, "end_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "End At" }, "evaluated_session_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Evaluated Session Id" } }, "type": "object", "required": [ "id", "text", "range", "met", "outcome", "start_at", "end_at", "evaluated_session_id" ], "title": "GoalHistoryOut" }, "GoalIn": { "properties": { "type": { "type": "string", "enum": [ "groups", "param", "score" ], "title": "Type" }, "target": { "anyOf": [ { "type": "integer" }, { "type": "number" } ], "title": "Target" }, "metric_id": { "anyOf": [ { "type": "string", "maxLength": 64 }, { "type": "null" } ], "title": "Metric Id" }, "due": { "type": "string", "enum": [ "1 week", "2 weeks", "End of month" ], "title": "Due" }, "weekly": { "$ref": "#/components/schemas/WeeklyIn" }, "note": { "type": "string", "maxLength": 160, "title": "Note", "default": "" }, "expected_version": { "anyOf": [ { "type": "integer", "minimum": 0.0 }, { "type": "null" } ], "title": "Expected Version" } }, "additionalProperties": false, "type": "object", "required": [ "type", "target", "due", "weekly" ], "title": "GoalIn" }, "GoalOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "player_id": { "type": "string", "format": "uuid", "title": "Player Id" }, "mode": { "type": "string", "title": "Mode" }, "type": { "type": "string", "title": "Type" }, "target": { "anyOf": [ { "type": "integer" }, { "type": "number" } ], "title": "Target" }, "metric_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Metric Id" }, "metric_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Metric Name" }, "due": { "type": "string", "title": "Due" }, "due_at": { "type": "string", "format": "date-time", "title": "Due At" }, "set_at": { "type": "string", "format": "date-time", "title": "Set At" }, "set_by": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Set By" }, "set_by_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Set By Id" }, "note": { "type": "string", "title": "Note" }, "weekly": { "$ref": "#/components/schemas/WeeklyOut" }, "version": { "type": "integer", "title": "Version" } }, "type": "object", "required": [ "id", "player_id", "mode", "type", "target", "metric_id", "metric_name", "due", "due_at", "set_at", "set_by", "set_by_id", "note", "weekly", "version" ], "title": "GoalOut" }, "GroupEnvelope": { "properties": { "group": { "$ref": "#/components/schemas/app__modules__academy_org__schemas__GroupOut" } }, "type": "object", "required": [ "group" ], "title": "GroupEnvelope" }, "GroupIn": { "properties": { "name": { "type": "string", "maxLength": 80, "minLength": 1, "title": "Name" }, "focus": { "type": "string", "enum": [ "Hitting", "Pitching", "Both" ], "title": "Focus" }, "coach_ids": { "items": { "type": "string", "format": "uuid" }, "type": "array", "maxItems": 200, "title": "Coach Ids" }, "player_ids": { "items": { "type": "string", "format": "uuid" }, "type": "array", "maxItems": 1000, "title": "Player Ids" } }, "additionalProperties": false, "type": "object", "required": [ "name", "focus" ], "title": "GroupIn" }, "GroupReport": { "additionalProperties": false, "properties": { "group": { "enum": [ "balance_load", "stride", "power_move", "contact_follow_through" ], "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": [ { "enum": [ "measurement_unavailable", "no_benchmark", "no_measurements_available", "measurements_unavailable", "no_rated_measurements", "implausible_value", "not_comparable_for_drill" ], "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": "GroupReport", "type": "object" }, "ImageIn": { "properties": { "kind": { "type": "string", "const": "image", "title": "Kind" }, "upload_id": { "type": "string", "format": "uuid", "title": "Upload Id" } }, "additionalProperties": false, "type": "object", "required": [ "kind", "upload_id" ], "title": "ImageIn" }, "ImageMessageOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "author_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Author Id" }, "from": { "type": "string", "enum": [ "player", "coach" ], "title": "From" }, "at": { "type": "string", "format": "date-time", "title": "At" }, "kind": { "type": "string", "const": "image", "title": "Kind", "default": "image" }, "media": { "anyOf": [ { "$ref": "#/components/schemas/MediaRef" }, { "type": "null" } ] } }, "type": "object", "required": [ "id", "author_id", "from", "at", "media" ], "title": "ImageMessageOut" }, "Interval": { "additionalProperties": false, "properties": { "lower": { "title": "Lower", "type": "number" }, "upper": { "title": "Upper", "type": "number" } }, "required": [ "lower", "upper" ], "title": "Interval", "type": "object" }, "Items_DrillLogOut_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/DrillLogOut" }, "type": "array", "title": "Items" } }, "type": "object", "required": [ "items" ], "title": "Items[DrillLogOut]" }, "Items_RosterItem_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/RosterItem" }, "type": "array", "title": "Items" } }, "type": "object", "required": [ "items" ], "title": "Items[RosterItem]" }, "LastByMode": { "properties": { "h": { "anyOf": [ { "$ref": "#/components/schemas/LastSession" }, { "type": "null" } ] }, "p": { "anyOf": [ { "$ref": "#/components/schemas/LastSession" }, { "type": "null" } ] } }, "type": "object", "title": "LastByMode" }, "LastSession": { "properties": { "session_id": { "type": "string", "format": "uuid", "title": "Session Id" }, "overall_score": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Overall Score" }, "delta": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Delta" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" }, "focus_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Focus Name" } }, "type": "object", "required": [ "session_id", "overall_score", "delta", "created_at", "focus_name" ], "title": "LastSession" }, "LibraryDrillIn": { "properties": { "upload_id": { "type": "string", "format": "uuid", "title": "Upload Id" }, "name": { "type": "string", "maxLength": 120, "minLength": 1, "title": "Name" }, "mode": { "type": "string", "enum": [ "h", "p" ], "title": "Mode" }, "fault_tags": { "items": { "type": "string", "maxLength": 64, "minLength": 1 }, "type": "array", "maxItems": 10, "minItems": 1, "title": "Fault Tags" }, "fixes": { "type": "string", "maxLength": 500, "title": "Fixes", "default": "" } }, "additionalProperties": false, "type": "object", "required": [ "upload_id", "name", "mode", "fault_tags" ], "title": "LibraryDrillIn" }, "LibraryDrillOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "name": { "type": "string", "title": "Name" }, "fixes": { "type": "string", "title": "Fixes" }, "fault_tags": { "items": { "type": "string" }, "type": "array", "title": "Fault Tags" }, "by": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "By" }, "author_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Author Id" }, "mode": { "type": "string", "enum": [ "h", "p" ], "title": "Mode" }, "media": { "anyOf": [ { "$ref": "#/components/schemas/MediaRef" }, { "type": "null" } ] }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" } }, "type": "object", "required": [ "id", "name", "fixes", "fault_tags", "by", "author_id", "mode", "media", "created_at" ], "title": "LibraryDrillOut" }, "LibraryEnvelope": { "properties": { "drill": { "$ref": "#/components/schemas/LibraryDrillOut" } }, "type": "object", "required": [ "drill" ], "title": "LibraryEnvelope" }, "Limitation": { "additionalProperties": false, "properties": { "code": { "title": "Code", "type": "string" }, "text": { "title": "Text", "type": "string" } }, "required": [ "code", "text" ], "title": "Limitation", "type": "object" }, "LoginIn": { "properties": { "email": { "type": "string", "maxLength": 254, "minLength": 1, "title": "Email" }, "password": { "type": "string", "maxLength": 128, "minLength": 1, "title": "Password" } }, "additionalProperties": false, "type": "object", "required": [ "email", "password" ], "title": "LoginIn" }, "MarksIn": { "properties": { "contact_frame": { "type": "integer", "minimum": 0.0, "title": "Contact Frame" }, "contact_offset": { "type": "integer", "title": "Contact Offset" }, "contact_source": { "type": "string", "enum": [ "detected", "suggested", "manual" ], "title": "Contact Source" }, "stride_start_frame": { "type": "integer", "minimum": 0.0, "title": "Stride Start Frame" }, "stride_end_frame": { "type": "integer", "minimum": 0.0, "title": "Stride End Frame" }, "pitcher_direction": { "anyOf": [ { "$ref": "#/components/schemas/PitcherDirection" }, { "type": "null" } ] } }, "additionalProperties": false, "type": "object", "required": [ "contact_frame", "contact_offset", "contact_source", "stride_start_frame", "stride_end_frame" ], "title": "MarksIn" }, "MeOut": { "properties": { "user": { "$ref": "#/components/schemas/UserOut" }, "team": { "anyOf": [ { "$ref": "#/components/schemas/TeamOut" }, { "type": "null" } ] }, "entitlement": { "$ref": "#/components/schemas/Entitlement" }, "academy": { "anyOf": [ { "$ref": "#/components/schemas/AcademyOut" }, { "type": "null" } ] }, "coach_access": { "$ref": "#/components/schemas/CoachAccessOut" }, "capabilities": { "$ref": "#/components/schemas/CapabilitiesOut" } }, "type": "object", "required": [ "user", "team", "entitlement", "coach_access", "capabilities" ], "title": "MeOut" }, "MeUpdate": { "properties": { "role": { "anyOf": [ { "type": "string", "enum": [ "player", "coach" ] }, { "type": "null" } ], "title": "Role" }, "focus": { "anyOf": [ { "type": "string", "enum": [ "h", "p", "both" ] }, { "type": "null" } ], "title": "Focus" }, "unit": { "anyOf": [ { "type": "string", "enum": [ "imperial", "metric" ] }, { "type": "null" } ], "title": "Unit" }, "private_videos": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Private Videos" }, "profile": { "anyOf": [ { "$ref": "#/components/schemas/ProfileUpdate" }, { "type": "null" } ] } }, "additionalProperties": false, "type": "object", "title": "MeUpdate", "description": "Partial update: only the fields sent are changed. Profile nulls clear a value; top-level nulls are rejected." }, "MeasurementReport": { "additionalProperties": false, "properties": { "metric_id": { "title": "Metric Id", "type": "string" }, "display_name": { "title": "Display Name", "type": "string" }, "group": { "enum": [ "balance_load", "stride", "power_move", "contact_follow_through" ], "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": [ { "enum": [ "measurement_unavailable", "no_benchmark", "no_measurements_available", "measurements_unavailable", "no_rated_measurements", "implausible_value", "not_comparable_for_drill" ], "type": "string" }, { "type": "null" } ], "title": "Not Rated Reason" }, "benchmark": { "anyOf": [ { "$ref": "#/components/schemas/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": "#/components/schemas/Limitation" }, "title": "Limitations", "type": "array" }, "value_interval": { "anyOf": [ { "$ref": "#/components/schemas/Interval" }, { "type": "null" } ], "default": null }, "score_interval": { "anyOf": [ { "$ref": "#/components/schemas/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": "MeasurementReport", "type": "object" }, "MediaOut": { "properties": { "video_url": { "type": "string", "title": "Video Url" }, "thumbnail_url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Thumbnail Url" }, "expires_at": { "type": "string", "format": "date-time", "title": "Expires At" } }, "type": "object", "required": [ "video_url", "thumbnail_url", "expires_at" ], "title": "MediaOut" }, "MediaRef": { "properties": { "upload_id": { "type": "string", "format": "uuid", "title": "Upload Id" }, "url": { "type": "string", "title": "Url" }, "expires_at": { "type": "string", "format": "date-time", "title": "Expires At" }, "seconds": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Seconds" } }, "type": "object", "required": [ "upload_id", "url", "expires_at" ], "title": "MediaRef", "description": "A short-lived authorised read URL for stored media. Refetch the owning resource when it expires." }, "MemberOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "name": { "type": "string", "title": "Name" }, "focus": { "type": "string", "title": "Focus" }, "level": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Level" }, "group_ids": { "items": { "type": "string", "format": "uuid" }, "type": "array", "title": "Group Ids" } }, "type": "object", "required": [ "id", "name", "focus", "level", "group_ids" ], "title": "MemberOut" }, "MetricOut": { "properties": { "metric_id": { "type": "string", "title": "Metric Id" }, "display_name": { "type": "string", "title": "Display Name" }, "group": { "type": "string", "title": "Group" }, "unit": { "type": "string", "title": "Unit" }, "what_it_means": { "type": "string", "title": "What It Means" } }, "type": "object", "required": [ "metric_id", "display_name", "group", "unit", "what_it_means" ], "title": "MetricOut" }, "MilestoneOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "icon": { "type": "string", "title": "Icon" }, "tone": { "type": "string", "title": "Tone" }, "title": { "type": "string", "title": "Title" }, "when": { "type": "string", "title": "When" }, "occurred_at": { "type": "string", "format": "date-time", "title": "Occurred At" }, "source_goal_id": { "type": "string", "format": "uuid", "title": "Source Goal Id" } }, "type": "object", "required": [ "id", "icon", "tone", "title", "when", "occurred_at", "source_goal_id" ], "title": "MilestoneOut" }, "NoteEnvelope": { "properties": { "note": { "$ref": "#/components/schemas/NoteOut" } }, "type": "object", "required": [ "note" ], "title": "NoteEnvelope" }, "NoteIn": { "properties": { "text": { "type": "string", "maxLength": 4000, "title": "Text" }, "expected_version": { "anyOf": [ { "type": "integer", "minimum": 0.0 }, { "type": "null" } ], "title": "Expected Version" } }, "additionalProperties": false, "type": "object", "required": [ "text" ], "title": "NoteIn" }, "NoteOut": { "properties": { "player_id": { "type": "string", "format": "uuid", "title": "Player Id" }, "text": { "type": "string", "title": "Text" }, "updated_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Updated At" }, "version": { "type": "integer", "title": "Version" } }, "type": "object", "required": [ "player_id", "text", "updated_at", "version" ], "title": "NoteOut" }, "NotificationOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "kind": { "type": "string", "title": "Kind" }, "title": { "type": "string", "title": "Title" }, "body": { "type": "string", "title": "Body" }, "at": { "type": "string", "format": "date-time", "title": "At" }, "read": { "type": "boolean", "title": "Read" }, "target": { "additionalProperties": { "type": "string" }, "type": "object", "title": "Target" } }, "type": "object", "required": [ "id", "kind", "title", "body", "at", "read", "target" ], "title": "NotificationOut" }, "OutingIn": { "properties": { "pitches": { "type": "integer", "maximum": 200.0, "minimum": 1.0, "title": "Pitches" }, "local_date": { "anyOf": [ { "type": "string", "format": "date" }, { "type": "null" } ], "title": "Local Date" } }, "additionalProperties": false, "type": "object", "required": [ "pitches" ], "title": "OutingIn" }, "OutingOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "date": { "type": "string", "format": "date-time", "title": "Date" }, "local_date": { "type": "string", "format": "date", "title": "Local Date" }, "label": { "type": "string", "title": "Label" }, "pitches": { "type": "integer", "title": "Pitches" }, "rest": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Rest" }, "rest_days": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Rest Days" } }, "type": "object", "required": [ "id", "date", "local_date", "label", "pitches" ], "title": "OutingOut" }, "OutingResult": { "properties": { "outing": { "$ref": "#/components/schemas/OutingOut" }, "arm_care": { "$ref": "#/components/schemas/ArmCareOut" } }, "type": "object", "required": [ "outing", "arm_care" ], "title": "OutingResult" }, "Overview": { "additionalProperties": false, "properties": { "headline": { "title": "Headline", "type": "string" } }, "required": [ "headline" ], "title": "Overview", "type": "object" }, "Page_AssignmentOut_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/AssignmentOut" }, "type": "array", "title": "Items" }, "next_cursor": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Next Cursor" } }, "type": "object", "required": [ "items" ], "title": "Page[AssignmentOut]" }, "Page_AuditLogSummary_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/AuditLogSummary" }, "type": "array", "title": "Items" }, "next_cursor": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Next Cursor" } }, "type": "object", "required": [ "items" ], "title": "Page[AuditLogSummary]" }, "Page_CoachOut_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/CoachOut" }, "type": "array", "title": "Items" }, "next_cursor": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Next Cursor" } }, "type": "object", "required": [ "items" ], "title": "Page[CoachOut]" }, "Page_GoalHistoryOut_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/GoalHistoryOut" }, "type": "array", "title": "Items" }, "next_cursor": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Next Cursor" } }, "type": "object", "required": [ "items" ], "title": "Page[GoalHistoryOut]" }, "Page_GroupOut_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/app__modules__academy_org__schemas__GroupOut" }, "type": "array", "title": "Items" }, "next_cursor": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Next Cursor" } }, "type": "object", "required": [ "items" ], "title": "Page[GroupOut]" }, "Page_LibraryDrillOut_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/LibraryDrillOut" }, "type": "array", "title": "Items" }, "next_cursor": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Next Cursor" } }, "type": "object", "required": [ "items" ], "title": "Page[LibraryDrillOut]" }, "Page_MemberOut_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/MemberOut" }, "type": "array", "title": "Items" }, "next_cursor": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Next Cursor" } }, "type": "object", "required": [ "items" ], "title": "Page[MemberOut]" }, "Page_MilestoneOut_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/MilestoneOut" }, "type": "array", "title": "Items" }, "next_cursor": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Next Cursor" } }, "type": "object", "required": [ "items" ], "title": "Page[MilestoneOut]" }, "Page_NotificationOut_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/NotificationOut" }, "type": "array", "title": "Items" }, "next_cursor": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Next Cursor" } }, "type": "object", "required": [ "items" ], "title": "Page[NotificationOut]" }, "Page_SessionSummary_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/SessionSummary" }, "type": "array", "title": "Items" }, "next_cursor": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Next Cursor" } }, "type": "object", "required": [ "items" ], "title": "Page[SessionSummary]" }, "Page_StaffCodeOut_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/StaffCodeOut" }, "type": "array", "title": "Items" }, "next_cursor": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Next Cursor" } }, "type": "object", "required": [ "items" ], "title": "Page[StaffCodeOut]" }, "Page_ThreadOut_": { "properties": { "items": { "items": { "$ref": "#/components/schemas/ThreadOut" }, "type": "array", "title": "Items" }, "next_cursor": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Next Cursor" } }, "type": "object", "required": [ "items" ], "title": "Page[ThreadOut]" }, "Payout": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "scheduled_for": { "type": "string", "title": "Scheduled For" }, "amount_minor": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Amount Minor" }, "status": { "type": "string", "enum": [ "scheduled", "paid", "failed", "cancelled" ], "title": "Status" }, "paid_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Paid At" } }, "type": "object", "required": [ "id", "scheduled_for", "amount_minor", "status", "paid_at" ], "title": "Payout" }, "PermissionsIn": { "properties": { "review": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Review" }, "drills": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Drills" }, "goals": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Goals" }, "library": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Library" }, "earnings": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Earnings" } }, "additionalProperties": false, "type": "object", "title": "PermissionsIn" }, "Phase": { "properties": { "phase": { "type": "string", "enum": [ "setup_to_lift", "move_to_plant", "plant_to_release", "recorded_finish" ], "title": "Phase" }, "start_frame": { "type": "integer", "minimum": 0.0, "title": "Start Frame" }, "end_frame": { "type": "integer", "minimum": 0.0, "title": "End Frame" }, "duration_ms": { "anyOf": [ { "type": "number", "minimum": 0.0 }, { "type": "null" } ], "title": "Duration Ms" }, "motion": { "items": { "$ref": "#/components/schemas/PhaseMotion" }, "type": "array", "title": "Motion" } }, "additionalProperties": false, "type": "object", "required": [ "phase", "start_frame", "end_frame", "duration_ms", "motion" ], "title": "Phase" }, "PhaseMotion": { "properties": { "curve_id": { "type": "string", "enum": [ "front_knee_flexion", "throwing_elbow_flexion", "torso_inclination", "hip_shoulder_separation", "pelvis_heading", "shoulder_heading" ], "title": "Curve Id" }, "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": { "type": "integer", "minimum": 0.0, "title": "Usable Frame Count" }, "reasons": { "items": { "type": "string" }, "type": "array", "title": "Reasons" } }, "additionalProperties": false, "type": "object", "required": [ "curve_id", "start_value", "end_value", "minimum", "maximum", "change", "usable_frame_count", "reasons" ], "title": "PhaseMotion" }, "PitchAthleteIn": { "properties": { "name": { "type": "string", "maxLength": 80, "minLength": 2, "title": "Name", "default": "Pitching athlete" }, "age": { "anyOf": [ { "type": "integer", "maximum": 70.0, "minimum": 5.0 }, { "type": "null" } ], "title": "Age" }, "height_cm": { "anyOf": [ { "type": "number", "maximum": 230.0, "minimum": 90.0 }, { "type": "null" } ], "title": "Height Cm" }, "weight_kg": { "anyOf": [ { "type": "number", "maximum": 200.0, "minimum": 20.0 }, { "type": "null" } ], "title": "Weight Kg" }, "bats": { "anyOf": [ { "type": "string", "enum": [ "L", "R", "S" ] }, { "type": "null" } ], "title": "Bats" }, "throws": { "anyOf": [ { "type": "string", "enum": [ "L", "R" ] }, { "type": "null" } ], "title": "Throws" }, "level": { "anyOf": [ { "type": "string", "enum": [ "youth", "high_school", "college", "adult" ] }, { "type": "null" } ], "title": "Level" } }, "additionalProperties": false, "type": "object", "title": "PitchAthleteIn" }, "PitchFocus": { "properties": { "kind": { "type": "string", "enum": [ "fix", "maintain", "general" ], "title": "Kind" }, "is_tentative": { "type": "boolean", "title": "Is Tentative" }, "metric_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Metric Id" }, "group": { "anyOf": [ { "type": "string", "enum": [ "gather", "stride_plant", "rotation_release", "release_finish" ] }, { "type": "null" } ], "title": "Group" }, "display_name": { "type": "string", "title": "Display Name" }, "rating": { "type": "string", "enum": [ "on_target", "satisfactory", "off_target", "not_rated" ], "title": "Rating" }, "rating_label": { "type": "string", "title": "Rating Label" }, "coach_message": { "type": "string", "title": "Coach Message" }, "practice_feel": { "type": "string", "title": "Practice Feel" }, "drill": { "anyOf": [ { "$ref": "#/components/schemas/Drill" }, { "type": "null" } ] }, "evidence_metric_ids": { "items": { "type": "string" }, "type": "array", "title": "Evidence Metric Ids" } }, "additionalProperties": false, "type": "object", "required": [ "kind", "is_tentative", "metric_id", "group", "display_name", "rating", "rating_label", "coach_message", "practice_feel", "drill", "evidence_metric_ids" ], "title": "PitchFocus" }, "PitchGroupReport": { "properties": { "group": { "type": "string", "enum": [ "gather", "stride_plant", "rotation_release", "release_finish" ], "title": "Group" }, "display_name": { "type": "string", "title": "Display Name" }, "score": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Score" }, "score_is_tentative": { "type": "boolean", "title": "Score Is Tentative" }, "rating": { "type": "string", "enum": [ "on_target", "satisfactory", "off_target", "not_rated" ], "title": "Rating" }, "rating_label": { "type": "string", "title": "Rating Label" }, "not_rated_reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Not Rated Reason" }, "summary": { "type": "string", "title": "Summary" }, "metric_ids": { "items": { "type": "string" }, "type": "array", "title": "Metric Ids" } }, "additionalProperties": false, "type": "object", "required": [ "group", "display_name", "score", "score_is_tentative", "rating", "rating_label", "not_rated_reason", "summary", "metric_ids" ], "title": "PitchGroupReport" }, "PitchMarksIn": { "properties": { "leg_lift_frame": { "anyOf": [ { "type": "integer", "minimum": 0.0 }, { "type": "null" } ], "title": "Leg Lift Frame" }, "foot_strike_frame": { "anyOf": [ { "type": "integer", "minimum": 0.0 }, { "type": "null" } ], "title": "Foot Strike Frame" }, "release_frame": { "anyOf": [ { "type": "integer", "minimum": 0.0 }, { "type": "null" } ], "title": "Release Frame" } }, "additionalProperties": false, "type": "object", "title": "PitchMarksIn" }, "PitchMeasurementReport": { "properties": { "metric_id": { "type": "string", "title": "Metric Id" }, "display_name": { "type": "string", "title": "Display Name" }, "group": { "type": "string", "enum": [ "gather", "stride_plant", "rotation_release", "release_finish" ], "title": "Group" }, "status": { "type": "string", "enum": [ "available", "limited", "unavailable" ], "title": "Status" }, "value": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Value" }, "unit": { "type": "string", "title": "Unit" }, "display_value": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Display Value" }, "score": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Score" }, "rating": { "type": "string", "enum": [ "on_target", "satisfactory", "off_target", "not_rated" ], "title": "Rating" }, "rating_label": { "type": "string", "title": "Rating Label" }, "rating_is_tentative": { "type": "boolean", "title": "Rating Is Tentative" }, "not_rated_reason": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Not Rated Reason" }, "benchmark": { "anyOf": [ { "$ref": "#/components/schemas/BenchmarkOut" }, { "type": "null" } ] }, "what_it_means": { "type": "string", "title": "What It Means" }, "result_text": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Result Text" }, "coach_tip": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Coach Tip" }, "limitations": { "items": { "$ref": "#/components/schemas/Limitation" }, "type": "array", "title": "Limitations" }, "value_interval": { "anyOf": [ { "$ref": "#/components/schemas/Interval" }, { "type": "null" } ] }, "score_interval": { "anyOf": [ { "$ref": "#/components/schemas/Interval" }, { "type": "null" } ] } }, "additionalProperties": false, "type": "object", "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" }, "PitchReport": { "properties": { "schema_version": { "type": "string", "const": "1.0", "title": "Schema Version" }, "analysis_id": { "type": "string", "title": "Analysis Id" }, "analysis_revision": { "type": "integer", "title": "Analysis Revision" }, "overall_score": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Overall Score" }, "overall_score_is_tentative": { "type": "boolean", "title": "Overall Score Is Tentative" }, "overview": { "$ref": "#/components/schemas/Overview" }, "groups": { "items": { "$ref": "#/components/schemas/PitchGroupReport" }, "type": "array", "title": "Groups" }, "focus_area": { "anyOf": [ { "$ref": "#/components/schemas/PitchFocus" }, { "type": "null" } ] }, "measurements": { "items": { "$ref": "#/components/schemas/PitchMeasurementReport" }, "type": "array", "title": "Measurements" }, "data_quality": { "items": { "$ref": "#/components/schemas/DataQualityNote" }, "type": "array", "title": "Data Quality" }, "meta": { "$ref": "#/components/schemas/ReportMeta" }, "discipline": { "type": "string", "const": "pitching", "title": "Discipline" }, "delivery_evidence": { "anyOf": [ { "$ref": "#/components/schemas/DeliveryEvidence" }, { "type": "null" } ] }, "drill_evaluation": { "anyOf": [ { "additionalProperties": true, "type": "object" }, { "type": "null" } ], "title": "Drill Evaluation" }, "coaching": { "anyOf": [ { "$ref": "#/components/schemas/Coaching" }, { "type": "null" } ] }, "visual_evidence": { "type": "null", "title": "Visual Evidence" } }, "additionalProperties": false, "type": "object", "required": [ "schema_version", "analysis_id", "analysis_revision", "overall_score", "overall_score_is_tentative", "overview", "groups", "focus_area", "measurements", "data_quality", "meta", "discipline" ], "title": "PitchReport" }, "PitcherDirection": { "properties": { "from": { "prefixItems": [ { "type": "number", "maximum": 1.0, "minimum": 0.0 }, { "type": "number", "maximum": 1.0, "minimum": 0.0 } ], "type": "array", "maxItems": 2, "minItems": 2, "title": "From" }, "to": { "prefixItems": [ { "type": "number", "maximum": 1.0, "minimum": 0.0 }, { "type": "number", "maximum": 1.0, "minimum": 0.0 } ], "type": "array", "maxItems": 2, "minItems": 2, "title": "To" } }, "additionalProperties": false, "type": "object", "required": [ "from", "to" ], "title": "PitcherDirection" }, "PreviousOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "overall_score": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Overall Score" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" } }, "type": "object", "required": [ "id", "overall_score", "created_at" ], "title": "PreviousOut" }, "ProfileOut": { "properties": { "name": { "type": "string", "title": "Name" }, "age": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Age" }, "height_cm": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Height Cm" }, "weight_kg": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Weight Kg" }, "bats": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Bats" }, "throws": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Throws" }, "level": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Level" } }, "type": "object", "required": [ "name", "age", "height_cm", "weight_kg", "bats", "throws", "level" ], "title": "ProfileOut" }, "ProfileUpdate": { "properties": { "name": { "anyOf": [ { "type": "string", "maxLength": 80 }, { "type": "null" } ], "title": "Name" }, "age": { "anyOf": [ { "type": "integer", "maximum": 70.0, "minimum": 5.0 }, { "type": "null" } ], "title": "Age" }, "height_cm": { "anyOf": [ { "type": "number", "maximum": 230.0, "minimum": 90.0 }, { "type": "null" } ], "title": "Height Cm" }, "weight_kg": { "anyOf": [ { "type": "number", "maximum": 200.0, "minimum": 20.0 }, { "type": "null" } ], "title": "Weight Kg" }, "bats": { "anyOf": [ { "type": "string", "enum": [ "L", "R", "S" ] }, { "type": "null" } ], "title": "Bats" }, "throws": { "anyOf": [ { "type": "string", "enum": [ "L", "R" ] }, { "type": "null" } ], "title": "Throws" }, "level": { "anyOf": [ { "type": "string", "enum": [ "youth", "high_school", "college", "adult" ] }, { "type": "null" } ], "title": "Level" } }, "additionalProperties": false, "type": "object", "title": "ProfileUpdate" }, "PubSubMessage": { "properties": { "data": { "type": "string", "maxLength": 100000, "title": "Data", "default": "" } }, "type": "object", "title": "PubSubMessage" }, "PubSubPushIn": { "properties": { "message": { "$ref": "#/components/schemas/PubSubMessage" } }, "type": "object", "required": [ "message" ], "title": "PubSubPushIn" }, "QueueItem": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "owner_id": { "type": "string", "format": "uuid", "title": "Owner Id" }, "mode": { "type": "string", "title": "Mode" }, "is_self": { "type": "boolean", "title": "Is Self" }, "athlete_name": { "type": "string", "title": "Athlete Name" }, "status": { "type": "string", "title": "Status" }, "overall_score": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Overall Score" }, "overall_score_is_tentative": { "type": "boolean", "title": "Overall Score Is Tentative" }, "focus": { "anyOf": [ { "$ref": "#/components/schemas/FocusSummary" }, { "type": "null" } ] }, "review": { "anyOf": [ { "$ref": "#/components/schemas/ReviewSummary" }, { "type": "null" } ] }, "thumbnail_url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Thumbnail Url" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" }, "owner_name": { "type": "string", "title": "Owner Name" } }, "type": "object", "required": [ "id", "owner_id", "mode", "is_self", "athlete_name", "status", "overall_score", "overall_score_is_tentative", "focus", "review", "thumbnail_url", "created_at", "owner_name" ], "title": "QueueItem" }, "QueueResponse": { "properties": { "open": { "items": { "$ref": "#/components/schemas/QueueItem" }, "type": "array", "title": "Open" }, "reviewed_today": { "items": { "$ref": "#/components/schemas/QueueItem" }, "type": "array", "title": "Reviewed Today" } }, "type": "object", "required": [ "open", "reviewed_today" ], "title": "QueueResponse" }, "ReadAllIn": { "properties": { "through": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Through" } }, "additionalProperties": false, "type": "object", "title": "ReadAllIn" }, "ReadIn": { "properties": { "last_message_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Last Message Id" } }, "additionalProperties": false, "type": "object", "title": "ReadIn" }, "ReceiptIn": { "properties": { "platform": { "type": "string", "enum": [ "ios", "android" ], "title": "Platform" }, "product_id": { "type": "string", "maxLength": 64, "minLength": 1, "title": "Product Id" }, "signed_transaction": { "anyOf": [ { "type": "string", "maxLength": 32000 }, { "type": "null" } ], "title": "Signed Transaction" }, "purchase_token": { "anyOf": [ { "type": "string", "maxLength": 4096 }, { "type": "null" } ], "title": "Purchase Token" } }, "additionalProperties": false, "type": "object", "required": [ "platform", "product_id" ], "title": "ReceiptIn" }, "ReceiptOut": { "properties": { "entitlement": { "$ref": "#/components/schemas/Entitlement" } }, "type": "object", "required": [ "entitlement" ], "title": "ReceiptOut" }, "RecentByMode": { "properties": { "h": { "items": { "type": "integer" }, "type": "array", "title": "H", "default": [] }, "p": { "items": { "type": "integer" }, "type": "array", "title": "P", "default": [] } }, "type": "object", "title": "RecentByMode" }, "RefreshIn": { "properties": { "refresh_token": { "type": "string", "maxLength": 256, "minLength": 1, "title": "Refresh Token" } }, "additionalProperties": false, "type": "object", "required": [ "refresh_token" ], "title": "RefreshIn" }, "RegisterIn": { "properties": { "email": { "type": "string", "maxLength": 254, "title": "Email" }, "password": { "type": "string", "maxLength": 128, "minLength": 8, "title": "Password" }, "role": { "type": "string", "enum": [ "player", "coach" ], "title": "Role" } }, "additionalProperties": false, "type": "object", "required": [ "email", "password", "role" ], "title": "RegisterIn" }, "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" }, "ReportQueued": { "properties": { "session_id": { "type": "string", "format": "uuid", "title": "Session Id" }, "status": { "type": "string", "title": "Status" } }, "type": "object", "required": [ "session_id", "status" ], "title": "ReportQueued" }, "RequestOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "user_id": { "type": "string", "format": "uuid", "title": "User Id" }, "name": { "type": "string", "title": "Name" }, "code": { "type": "string", "title": "Code" }, "at": { "type": "string", "format": "date-time", "title": "At" }, "also_player": { "type": "boolean", "title": "Also Player" }, "status": { "type": "string", "enum": [ "pending", "approved", "declined" ], "title": "Status" } }, "type": "object", "required": [ "id", "user_id", "name", "code", "at", "also_player", "status" ], "title": "RequestOut" }, "RequestPage": { "properties": { "items": { "items": { "$ref": "#/components/schemas/RequestOut" }, "type": "array", "title": "Items" }, "next_cursor": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Next Cursor" }, "total_pending": { "type": "integer", "title": "Total Pending" } }, "type": "object", "required": [ "items", "total_pending" ], "title": "RequestPage" }, "ResetPasswordIn": { "properties": { "token": { "type": "string", "maxLength": 256, "minLength": 1, "title": "Token" }, "password": { "type": "string", "maxLength": 128, "minLength": 8, "title": "Password" } }, "additionalProperties": false, "type": "object", "required": [ "token", "password" ], "title": "ResetPasswordIn" }, "ReviewMessageOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "author_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Author Id" }, "from": { "type": "string", "enum": [ "player", "coach" ], "title": "From" }, "at": { "type": "string", "format": "date-time", "title": "At" }, "kind": { "type": "string", "const": "review", "title": "Kind", "default": "review" }, "cue": { "type": "string", "title": "Cue" }, "voice_seconds": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Voice Seconds" }, "audio": { "anyOf": [ { "$ref": "#/components/schemas/MediaRef" }, { "type": "null" } ] }, "findings": { "items": { "$ref": "#/components/schemas/Finding" }, "type": "array", "title": "Findings" }, "drill_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Drill Id" }, "drill_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Drill Name" }, "assignment_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Assignment Id" } }, "type": "object", "required": [ "id", "author_id", "from", "at", "cue", "voice_seconds", "audio", "findings", "drill_id", "drill_name" ], "title": "ReviewMessageOut" }, "ReviewOut": { "properties": { "coach_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Coach Id" }, "coach_name": { "type": "string", "title": "Coach Name" }, "cue": { "type": "string", "title": "Cue" }, "drill_id": { "type": "string", "title": "Drill Id" }, "verdicts": { "additionalProperties": { "type": "string" }, "type": "object", "title": "Verdicts" }, "at": { "type": "string", "format": "date-time", "title": "At" }, "voice_note": { "anyOf": [ { "$ref": "#/components/schemas/MediaRef" }, { "type": "null" } ] } }, "type": "object", "required": [ "coach_id", "coach_name", "cue", "drill_id", "verdicts", "at" ], "title": "ReviewOut", "description": "The review shape every endpoint returns (GET /sessions/{id} and POST /sessions/{id}/review)." }, "ReviewSubmit": { "properties": { "cue": { "type": "string", "maxLength": 200, "minLength": 1, "title": "Cue" }, "drill_id": { "type": "string", "maxLength": 16, "minLength": 1, "title": "Drill Id" }, "verdicts": { "additionalProperties": { "type": "string", "enum": [ "agree", "change", "later" ] }, "type": "object", "title": "Verdicts", "default": {} }, "voice_note_upload_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Voice Note Upload Id" }, "voice_note_seconds": { "anyOf": [ { "type": "number", "maximum": 120.0, "exclusiveMinimum": 0.0 }, { "type": "null" } ], "title": "Voice Note Seconds" } }, "additionalProperties": false, "type": "object", "required": [ "cue", "drill_id" ], "title": "ReviewSubmit", "description": "Voice fields: omitted keeps the prior attachment, explicit null removes it (see model_fields_set)." }, "ReviewSubmitted": { "properties": { "review": { "$ref": "#/components/schemas/ReviewOut" }, "thread_id": { "type": "string", "format": "uuid", "title": "Thread Id" } }, "type": "object", "required": [ "review", "thread_id" ], "title": "ReviewSubmitted" }, "ReviewSummary": { "properties": { "coach_name": { "type": "string", "title": "Coach Name" }, "at": { "type": "string", "format": "date-time", "title": "At" } }, "type": "object", "required": [ "coach_name", "at" ], "title": "ReviewSummary" }, "RosterAddIn": { "properties": { "player_ids": { "items": { "type": "string", "format": "uuid" }, "type": "array", "maxItems": 100, "minItems": 1, "title": "Player Ids" }, "group_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Group Id" } }, "additionalProperties": false, "type": "object", "required": [ "player_ids" ], "title": "RosterAddIn" }, "RosterAddOut": { "properties": { "added_player_ids": { "items": { "type": "string", "format": "uuid" }, "type": "array", "title": "Added Player Ids" }, "already_present_player_ids": { "items": { "type": "string", "format": "uuid" }, "type": "array", "title": "Already Present Player Ids" } }, "type": "object", "required": [ "added_player_ids", "already_present_player_ids" ], "title": "RosterAddOut" }, "RosterItem": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "name": { "type": "string", "title": "Name" }, "email": { "type": "string", "title": "Email" }, "focus": { "type": "string", "title": "Focus" }, "level": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Level" }, "group_ids": { "items": { "type": "string", "format": "uuid" }, "type": "array", "title": "Group Ids", "default": [] }, "pending_count": { "type": "integer", "title": "Pending Count" }, "last": { "$ref": "#/components/schemas/LastByMode" }, "recent": { "$ref": "#/components/schemas/RecentByMode" } }, "type": "object", "required": [ "id", "name", "email", "focus", "level", "pending_count", "last", "recent" ], "title": "RosterItem", "description": "A player as the coach sees them. Never carries body data (age, height, weight)." }, "Sample": { "properties": { "frame": { "type": "integer", "minimum": 0.0, "title": "Frame" }, "value": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Value" } }, "additionalProperties": false, "type": "object", "required": [ "frame", "value" ], "title": "Sample" }, "SendResult": { "properties": { "message": { "oneOf": [ { "$ref": "#/components/schemas/TextMessageOut" }, { "$ref": "#/components/schemas/VoiceMessageOut" }, { "$ref": "#/components/schemas/ImageMessageOut" }, { "$ref": "#/components/schemas/VideoMessageOut" }, { "$ref": "#/components/schemas/SessionMessageOut" }, { "$ref": "#/components/schemas/ReviewMessageOut" } ], "title": "Message", "discriminator": { "propertyName": "kind", "mapping": { "image": "#/components/schemas/ImageMessageOut", "review": "#/components/schemas/ReviewMessageOut", "session": "#/components/schemas/SessionMessageOut", "text": "#/components/schemas/TextMessageOut", "video": "#/components/schemas/VideoMessageOut", "voice": "#/components/schemas/VoiceMessageOut" } } }, "thread_status": { "type": "string", "enum": [ "waiting_for_coach", "reviewed" ], "title": "Thread Status" }, "updated_at": { "type": "string", "format": "date-time", "title": "Updated At" } }, "type": "object", "required": [ "message", "thread_status", "updated_at" ], "title": "SendResult" }, "Sequencing": { "properties": { "status": { "type": "string", "enum": [ "provisional", "unavailable" ], "title": "Status" }, "pelvis_peak_frame_interval": { "anyOf": [ { "items": { "type": "integer" }, "type": "array", "maxItems": 2, "minItems": 2 }, { "type": "null" } ], "title": "Pelvis Peak Frame Interval" }, "shoulder_peak_frame_interval": { "anyOf": [ { "items": { "type": "integer" }, "type": "array", "maxItems": 2, "minItems": 2 }, { "type": "null" } ], "title": "Shoulder Peak Frame Interval" }, "order": { "type": "string", "enum": [ "pelvis_then_shoulders", "shoulders_then_pelvis", "unresolved" ], "title": "Order" }, "reasons": { "items": { "type": "string" }, "type": "array", "title": "Reasons" } }, "additionalProperties": false, "type": "object", "required": [ "status", "order", "reasons" ], "title": "Sequencing" }, "SessionEnvelope": { "properties": { "session": { "$ref": "#/components/schemas/SessionOut" } }, "type": "object", "required": [ "session" ], "title": "SessionEnvelope" }, "SessionMessageOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "author_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Author Id" }, "from": { "type": "string", "enum": [ "player", "coach" ], "title": "From" }, "at": { "type": "string", "format": "date-time", "title": "At" }, "kind": { "type": "string", "const": "session", "title": "Kind", "default": "session" }, "session_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Session Id" }, "label": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Label" }, "score": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Score" } }, "type": "object", "required": [ "id", "author_id", "from", "at", "session_id", "label", "score" ], "title": "SessionMessageOut" }, "SessionOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "owner_id": { "type": "string", "format": "uuid", "title": "Owner Id" }, "is_self": { "type": "boolean", "title": "Is Self" }, "mode": { "type": "string", "title": "Mode" }, "status": { "type": "string", "title": "Status" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" }, "analyzed_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Analyzed At" }, "athlete": { "additionalProperties": true, "type": "object", "title": "Athlete" }, "duration_sec": { "type": "number", "title": "Duration Sec" }, "fps": { "type": "integer", "title": "Fps" }, "marks": { "additionalProperties": true, "type": "object", "title": "Marks" }, "report": { "anyOf": [ { "$ref": "#/components/schemas/SwingReport" }, { "$ref": "#/components/schemas/PitchReport" }, { "type": "null" } ], "description": "Null while status is pending" }, "report_error": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Report Error" }, "review": { "anyOf": [ { "$ref": "#/components/schemas/ReviewOut" }, { "type": "null" } ] }, "media": { "$ref": "#/components/schemas/MediaOut" }, "previous": { "anyOf": [ { "$ref": "#/components/schemas/PreviousOut" }, { "type": "null" } ] }, "ordinal": { "type": "integer", "title": "Ordinal" } }, "type": "object", "required": [ "id", "owner_id", "is_self", "mode", "status", "created_at", "analyzed_at", "athlete", "duration_sec", "fps", "marks", "report", "review", "media", "previous", "ordinal" ], "title": "SessionOut" }, "SessionSummary": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "owner_id": { "type": "string", "format": "uuid", "title": "Owner Id" }, "mode": { "type": "string", "title": "Mode" }, "is_self": { "type": "boolean", "title": "Is Self" }, "athlete_name": { "type": "string", "title": "Athlete Name" }, "status": { "type": "string", "title": "Status" }, "overall_score": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Overall Score" }, "overall_score_is_tentative": { "type": "boolean", "title": "Overall Score Is Tentative" }, "focus": { "anyOf": [ { "$ref": "#/components/schemas/FocusSummary" }, { "type": "null" } ] }, "review": { "anyOf": [ { "$ref": "#/components/schemas/ReviewSummary" }, { "type": "null" } ] }, "thumbnail_url": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Thumbnail Url" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" } }, "type": "object", "required": [ "id", "owner_id", "mode", "is_self", "athlete_name", "status", "overall_score", "overall_score_is_tentative", "focus", "review", "thumbnail_url", "created_at" ], "title": "SessionSummary" }, "SetIn": { "properties": { "set_number": { "type": "integer", "minimum": 1.0, "title": "Set Number" }, "reps_done": { "type": "integer", "minimum": 1.0, "title": "Reps Done" }, "day": { "type": "string", "format": "date", "title": "Day" } }, "additionalProperties": false, "type": "object", "required": [ "set_number", "reps_done", "day" ], "title": "SetIn" }, "SetLogOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "set_number": { "type": "integer", "title": "Set Number" }, "reps_done": { "type": "integer", "title": "Reps Done" }, "day": { "type": "string", "format": "date", "title": "Day" } }, "type": "object", "required": [ "id", "set_number", "reps_done", "day" ], "title": "SetLogOut" }, "SetResult": { "properties": { "assignment": { "$ref": "#/components/schemas/AssignmentOut" }, "set_log": { "$ref": "#/components/schemas/SetLogOut" } }, "type": "object", "required": [ "assignment", "set_log" ], "title": "SetResult" }, "SettingsEnvelope": { "properties": { "settings": { "$ref": "#/components/schemas/SettingsOut" } }, "type": "object", "required": [ "settings" ], "title": "SettingsEnvelope" }, "SettingsOut": { "properties": { "coach_can_see_sessions": { "type": "boolean", "title": "Coach Can See Sessions" }, "share_with_parent": { "type": "boolean", "title": "Share With Parent" }, "parent_email": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Parent Email" }, "auto_monthly_report": { "type": "boolean", "title": "Auto Monthly Report" }, "private_links": { "type": "boolean", "title": "Private Links" }, "clips_as_examples": { "type": "boolean", "title": "Clips As Examples" }, "help_improve_ai": { "type": "boolean", "title": "Help Improve Ai" }, "notify_results": { "type": "boolean", "title": "Notify Results" }, "notify_coach": { "type": "boolean", "title": "Notify Coach" }, "notify_drills": { "type": "boolean", "title": "Notify Drills" }, "notify_weekly": { "type": "boolean", "title": "Notify Weekly" }, "consented_at": { "anyOf": [ { "type": "string", "format": "date-time" }, { "type": "null" } ], "title": "Consented At" }, "consent_version": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Consent Version" }, "skip_filming_guide": { "type": "boolean", "title": "Skip Filming Guide" }, "version": { "type": "integer", "title": "Version" } }, "type": "object", "required": [ "coach_can_see_sessions", "share_with_parent", "parent_email", "auto_monthly_report", "private_links", "clips_as_examples", "help_improve_ai", "notify_results", "notify_coach", "notify_drills", "notify_weekly", "consented_at", "consent_version", "skip_filming_guide", "version" ], "title": "SettingsOut" }, "SettingsPatch": { "properties": { "coach_can_see_sessions": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Coach Can See Sessions" }, "share_with_parent": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Share With Parent" }, "parent_email": { "anyOf": [ { "type": "string", "maxLength": 254 }, { "type": "null" } ], "title": "Parent Email" }, "auto_monthly_report": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Auto Monthly Report" }, "private_links": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Private Links" }, "clips_as_examples": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Clips As Examples" }, "help_improve_ai": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Help Improve Ai" }, "notify_results": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Notify Results" }, "notify_coach": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Notify Coach" }, "notify_drills": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Notify Drills" }, "notify_weekly": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Notify Weekly" }, "skip_filming_guide": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Skip Filming Guide" }, "expected_version": { "anyOf": [ { "type": "integer", "minimum": 1.0 }, { "type": "null" } ], "title": "Expected Version" } }, "additionalProperties": false, "type": "object", "title": "SettingsPatch" }, "SocialAuthOut": { "properties": { "user": { "$ref": "#/components/schemas/UserOut" }, "tokens": { "$ref": "#/components/schemas/TokensOut" }, "is_new": { "type": "boolean", "title": "Is New" } }, "type": "object", "required": [ "user", "tokens", "is_new" ], "title": "SocialAuthOut" }, "SocialIn": { "properties": { "provider": { "type": "string", "enum": [ "apple", "google" ], "title": "Provider" }, "id_token": { "type": "string", "maxLength": 8192, "minLength": 1, "title": "Id Token" }, "role": { "type": "string", "enum": [ "player", "coach" ], "title": "Role", "default": "player" } }, "additionalProperties": false, "type": "object", "required": [ "provider", "id_token" ], "title": "SocialIn" }, "StaffCodeBody": { "properties": { "staff_code": { "$ref": "#/components/schemas/StaffCodeOut" } }, "type": "object", "required": [ "staff_code" ], "title": "StaffCodeBody" }, "StaffCodeCreate": { "properties": { "role": { "type": "string", "enum": [ "coach", "assistant" ], "title": "Role" }, "expires_days": { "type": "integer", "enum": [ 1, 7, 30 ], "title": "Expires Days" }, "max_uses": { "type": "integer", "enum": [ 1, 5, 20 ], "title": "Max Uses" }, "approval": { "type": "string", "enum": [ "admin", "auto" ], "title": "Approval" } }, "additionalProperties": false, "type": "object", "required": [ "role", "expires_days", "max_uses", "approval" ], "title": "StaffCodeCreate" }, "StaffCodeOut": { "properties": { "code": { "type": "string", "title": "Code" }, "role": { "type": "string", "enum": [ "coach", "assistant" ], "title": "Role" }, "expires": { "type": "string", "format": "date-time", "title": "Expires" }, "uses": { "type": "integer", "title": "Uses" }, "max_uses": { "type": "integer", "title": "Max Uses" }, "approval": { "type": "string", "enum": [ "admin", "auto" ], "title": "Approval" }, "status": { "type": "string", "enum": [ "active", "expired", "revoked" ], "title": "Status" } }, "type": "object", "required": [ "code", "role", "expires", "uses", "max_uses", "approval", "status" ], "title": "StaffCodeOut" }, "SwingReport": { "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": "#/components/schemas/Overview" }, "groups": { "items": { "$ref": "#/components/schemas/GroupReport" }, "title": "Groups", "type": "array" }, "focus_area": { "anyOf": [ { "$ref": "#/components/schemas/FocusArea" }, { "type": "null" } ] }, "measurements": { "items": { "$ref": "#/components/schemas/MeasurementReport" }, "title": "Measurements", "type": "array" }, "data_quality": { "items": { "$ref": "#/components/schemas/DataQualityNote" }, "title": "Data Quality", "type": "array" }, "meta": { "$ref": "#/components/schemas/ReportMeta" } }, "required": [ "schema_version", "analysis_id", "analysis_revision", "overall_score", "overall_score_is_tentative", "overview", "groups", "focus_area", "measurements", "data_quality", "meta" ], "title": "SwingReport", "type": "object" }, "TeamCreate": { "properties": { "name": { "type": "string", "maxLength": 60, "minLength": 2, "title": "Name" }, "coach_name": { "type": "string", "maxLength": 60, "minLength": 2, "title": "Coach Name" }, "coaching": { "type": "string", "enum": [ "h", "p", "both" ], "title": "Coaching" } }, "additionalProperties": false, "type": "object", "required": [ "name", "coach_name", "coaching" ], "title": "TeamCreate" }, "TeamOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "code": { "type": "string", "title": "Code" }, "name": { "type": "string", "title": "Name" }, "coach_id": { "type": "string", "format": "uuid", "title": "Coach Id" }, "coach_name": { "type": "string", "title": "Coach Name" }, "coaching": { "type": "string", "title": "Coaching" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" } }, "type": "object", "required": [ "id", "code", "name", "coach_id", "coach_name", "coaching", "created_at" ], "title": "TeamOut", "description": "The team shape every endpoint returns (GET /me, team create, lookup and join)." }, "TeamResponse": { "properties": { "team": { "$ref": "#/components/schemas/TeamOut" } }, "type": "object", "required": [ "team" ], "title": "TeamResponse" }, "TeamSummaryOut": { "properties": { "code": { "type": "string", "title": "Code" }, "name": { "type": "string", "title": "Name" }, "coach_name": { "type": "string", "title": "Coach Name" }, "coaching": { "type": "string", "title": "Coaching" } }, "type": "object", "required": [ "code", "name", "coach_name", "coaching" ], "title": "TeamSummaryOut", "description": "What a player sees before joining: no ids." }, "TeamSummaryResponse": { "properties": { "team": { "$ref": "#/components/schemas/TeamSummaryOut" } }, "type": "object", "required": [ "team" ], "title": "TeamSummaryResponse" }, "TextIn": { "properties": { "kind": { "type": "string", "const": "text", "title": "Kind" }, "text": { "type": "string", "maxLength": 500, "minLength": 1, "title": "Text" } }, "additionalProperties": false, "type": "object", "required": [ "kind", "text" ], "title": "TextIn" }, "TextMessageOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "author_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Author Id" }, "from": { "type": "string", "enum": [ "player", "coach" ], "title": "From" }, "at": { "type": "string", "format": "date-time", "title": "At" }, "kind": { "type": "string", "const": "text", "title": "Kind", "default": "text" }, "text": { "type": "string", "title": "Text" } }, "type": "object", "required": [ "id", "author_id", "from", "at", "text" ], "title": "TextMessageOut" }, "ThreadEnvelope": { "properties": { "thread": { "$ref": "#/components/schemas/ThreadOut" } }, "type": "object", "required": [ "thread" ], "title": "ThreadEnvelope" }, "ThreadOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "mode": { "type": "string", "enum": [ "h", "p" ], "title": "Mode" }, "session_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Session Id" }, "session_label": { "type": "string", "title": "Session Label" }, "score": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Score" }, "tone": { "type": "string", "enum": [ "g", "y", "r" ], "title": "Tone" }, "coach_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Coach Id" }, "coach_name": { "type": "string", "title": "Coach Name" }, "player_id": { "type": "string", "format": "uuid", "title": "Player Id" }, "player_name": { "type": "string", "title": "Player Name" }, "status": { "type": "string", "enum": [ "waiting_for_coach", "reviewed" ], "title": "Status" }, "unread_for_player": { "type": "boolean", "title": "Unread For Player" }, "unread_for_coach": { "type": "boolean", "title": "Unread For Coach" }, "updated_at": { "type": "string", "format": "date-time", "title": "Updated At" }, "messages": { "items": { "oneOf": [ { "$ref": "#/components/schemas/TextMessageOut" }, { "$ref": "#/components/schemas/VoiceMessageOut" }, { "$ref": "#/components/schemas/ImageMessageOut" }, { "$ref": "#/components/schemas/VideoMessageOut" }, { "$ref": "#/components/schemas/SessionMessageOut" }, { "$ref": "#/components/schemas/ReviewMessageOut" } ], "discriminator": { "propertyName": "kind", "mapping": { "image": "#/components/schemas/ImageMessageOut", "review": "#/components/schemas/ReviewMessageOut", "session": "#/components/schemas/SessionMessageOut", "text": "#/components/schemas/TextMessageOut", "video": "#/components/schemas/VideoMessageOut", "voice": "#/components/schemas/VoiceMessageOut" } } }, "type": "array", "title": "Messages" }, "next_message_cursor": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Next Message Cursor" } }, "type": "object", "required": [ "id", "mode", "session_id", "session_label", "score", "tone", "coach_id", "coach_name", "player_id", "player_name", "status", "unread_for_player", "unread_for_coach", "updated_at", "messages" ], "title": "ThreadOut" }, "TokensOut": { "properties": { "access_token": { "type": "string", "title": "Access Token" }, "refresh_token": { "type": "string", "title": "Refresh Token" }, "expires_in": { "type": "integer", "title": "Expires In" } }, "type": "object", "required": [ "access_token", "refresh_token", "expires_in" ], "title": "TokensOut" }, "UnreadCount": { "properties": { "count": { "type": "integer", "minimum": 0.0, "title": "Count" } }, "type": "object", "required": [ "count" ], "title": "UnreadCount" }, "UploadIn": { "properties": { "kind": { "type": "string", "enum": [ "video", "thumbnail", "audio", "drill_video", "image" ], "title": "Kind" }, "content_type": { "type": "string", "maxLength": 40, "minLength": 1, "title": "Content Type" }, "size_bytes": { "type": "integer", "exclusiveMinimum": 0.0, "title": "Size Bytes" }, "duration_sec": { "anyOf": [ { "type": "number", "exclusiveMinimum": 0.0 }, { "type": "null" } ], "title": "Duration Sec" } }, "additionalProperties": false, "type": "object", "required": [ "kind", "content_type", "size_bytes" ], "title": "UploadIn" }, "UploadOut": { "properties": { "upload_id": { "type": "string", "format": "uuid", "title": "Upload Id" }, "url": { "type": "string", "title": "Url" }, "headers": { "additionalProperties": { "type": "string" }, "type": "object", "title": "Headers" }, "expires_at": { "type": "string", "format": "date-time", "title": "Expires At" } }, "type": "object", "required": [ "upload_id", "url", "headers", "expires_at" ], "title": "UploadOut" }, "UserBody": { "properties": { "user": { "$ref": "#/components/schemas/UserOut" } }, "type": "object", "required": [ "user" ], "title": "UserBody" }, "UserOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "email": { "type": "string", "title": "Email" }, "role": { "type": "string", "title": "Role" }, "focus": { "type": "string", "title": "Focus" }, "profile": { "$ref": "#/components/schemas/ProfileOut" }, "unit": { "type": "string", "title": "Unit" }, "private_videos": { "type": "boolean", "title": "Private Videos" }, "team_code": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Team Code" }, "created_at": { "type": "string", "format": "date-time", "title": "Created At" } }, "type": "object", "required": [ "id", "email", "role", "focus", "profile", "unit", "private_videos", "team_code", "created_at" ], "title": "UserOut" }, "VideoIn": { "properties": { "kind": { "type": "string", "const": "video", "title": "Kind" }, "upload_id": { "type": "string", "format": "uuid", "title": "Upload Id" }, "seconds": { "type": "number", "maximum": 60.0, "exclusiveMinimum": 0.0, "title": "Seconds" } }, "additionalProperties": false, "type": "object", "required": [ "kind", "upload_id", "seconds" ], "title": "VideoIn" }, "VideoMessageOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "author_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Author Id" }, "from": { "type": "string", "enum": [ "player", "coach" ], "title": "From" }, "at": { "type": "string", "format": "date-time", "title": "At" }, "kind": { "type": "string", "const": "video", "title": "Kind", "default": "video" }, "seconds": { "type": "number", "title": "Seconds" }, "media": { "anyOf": [ { "$ref": "#/components/schemas/MediaRef" }, { "type": "null" } ] } }, "type": "object", "required": [ "id", "author_id", "from", "at", "seconds", "media" ], "title": "VideoMessageOut" }, "VoiceIn": { "properties": { "kind": { "type": "string", "const": "voice", "title": "Kind" }, "upload_id": { "type": "string", "format": "uuid", "title": "Upload Id" }, "seconds": { "type": "number", "maximum": 120.0, "exclusiveMinimum": 0.0, "title": "Seconds" } }, "additionalProperties": false, "type": "object", "required": [ "kind", "upload_id", "seconds" ], "title": "VoiceIn" }, "VoiceMessageOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "author_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Author Id" }, "from": { "type": "string", "enum": [ "player", "coach" ], "title": "From" }, "at": { "type": "string", "format": "date-time", "title": "At" }, "kind": { "type": "string", "const": "voice", "title": "Kind", "default": "voice" }, "seconds": { "type": "number", "title": "Seconds" }, "audio": { "anyOf": [ { "$ref": "#/components/schemas/MediaRef" }, { "type": "null" } ] } }, "type": "object", "required": [ "id", "author_id", "from", "at", "seconds", "audio" ], "title": "VoiceMessageOut" }, "WebhookAck": { "properties": {}, "type": "object", "title": "WebhookAck" }, "WeeklyIn": { "properties": { "practice_days": { "type": "integer", "maximum": 7.0, "minimum": 1.0, "title": "Practice Days" }, "drill_sets": { "type": "integer", "maximum": 30.0, "minimum": 1.0, "title": "Drill Sets" } }, "additionalProperties": false, "type": "object", "required": [ "practice_days", "drill_sets" ], "title": "WeeklyIn" }, "WeeklyOut": { "properties": { "practice_days": { "type": "integer", "title": "Practice Days" }, "drill_sets": { "type": "integer", "title": "Drill Sets" } }, "type": "object", "required": [ "practice_days", "drill_sets" ], "title": "WeeklyOut" }, "app__modules__academy_org__schemas__GroupOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "name": { "type": "string", "title": "Name" }, "focus": { "type": "string", "enum": [ "Hitting", "Pitching", "Both" ], "title": "Focus" }, "players": { "type": "integer", "title": "Players" }, "player_ids": { "items": { "type": "string", "format": "uuid" }, "type": "array", "title": "Player Ids" }, "coaches": { "items": { "type": "string" }, "type": "array", "title": "Coaches" }, "coach_ids": { "items": { "type": "string", "format": "uuid" }, "type": "array", "title": "Coach Ids" } }, "type": "object", "required": [ "id", "name", "focus", "players", "player_ids", "coaches", "coach_ids" ], "title": "GroupOut" }, "app__modules__catalog__schemas__GroupOut": { "properties": { "group": { "type": "string", "title": "Group" }, "display_name": { "type": "string", "title": "Display Name" } }, "type": "object", "required": [ "group", "display_name" ], "title": "GroupOut" }, "app__modules__reporting__schemas__ExportOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "status": { "type": "string", "title": "Status" }, "url": { "type": "string", "title": "Url" }, "expires_at": { "type": "string", "format": "date-time", "title": "Expires At" }, "filename": { "type": "string", "title": "Filename" } }, "type": "object", "required": [ "id", "status", "url", "expires_at", "filename" ], "title": "ExportOut" }, "app__modules__sessions__schemas__SessionIn": { "properties": { "video_upload_id": { "type": "string", "format": "uuid", "title": "Video Upload Id" }, "thumbnail_upload_id": { "anyOf": [ { "type": "string", "format": "uuid" }, { "type": "null" } ], "title": "Thumbnail Upload Id" }, "mode": { "type": "string", "enum": [ "h", "p" ], "title": "Mode" }, "is_self": { "type": "boolean", "title": "Is Self" }, "athlete": { "anyOf": [ { "$ref": "#/components/schemas/AthleteIn" }, { "$ref": "#/components/schemas/PitchAthleteIn" }, { "type": "null" } ], "title": "Athlete" }, "duration_sec": { "type": "number", "exclusiveMinimum": 0.0, "title": "Duration Sec" }, "fps": { "type": "integer", "maximum": 240.0, "minimum": 1.0, "title": "Fps" }, "frame_count": { "anyOf": [ { "type": "integer", "exclusiveMinimum": 1.0 }, { "type": "null" } ], "title": "Frame Count" }, "marks": { "anyOf": [ { "$ref": "#/components/schemas/MarksIn" }, { "$ref": "#/components/schemas/PitchMarksIn" } ], "title": "Marks" } }, "additionalProperties": false, "type": "object", "required": [ "video_upload_id", "mode", "is_self", "duration_sec", "fps", "marks" ], "title": "SessionIn" }, "app__modules__settings__schemas__ExportOut": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, "status": { "type": "string", "title": "Status" }, "requested_at": { "type": "string", "format": "date-time", "title": "Requested At" }, "delivery": { "type": "string", "const": "account_email", "title": "Delivery", "default": "account_email" } }, "type": "object", "required": [ "id", "status", "requested_at" ], "title": "ExportOut" }, "app__modules__threads__schemas__SessionIn": { "properties": { "kind": { "type": "string", "const": "session", "title": "Kind" }, "session_id": { "type": "string", "format": "uuid", "title": "Session Id" } }, "additionalProperties": false, "type": "object", "required": [ "kind", "session_id" ], "title": "SessionIn" }, "ErrorResponse": { "type": "object", "required": [ "error" ], "properties": { "error": { "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "examples": [ "VALIDATION", "NOT_FOUND", "PLAN_LIMIT" ] }, "message": { "type": "string", "description": "Safe to show in the app" }, "fields": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Field path -> problem, for validation errors" } } } } }, "ApprovedBenchmark": { "additionalProperties": false, "properties": { "benchmark_id": { "minLength": 1, "pattern": "\\S", "title": "Benchmark Id", "type": "string" }, "version": { "minLength": 1, "pattern": "\\S", "title": "Version", "type": "string" }, "kind": { "const": "reference_interval", "title": "Kind", "type": "string" }, "lower": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Lower" }, "upper": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Upper" }, "unit": { "enum": [ "deg", "cm" ], "title": "Unit", "type": "string" }, "source_reference": { "minLength": 1, "pattern": "\\S", "title": "Source Reference", "type": "string" } }, "required": [ "benchmark_id", "version", "kind", "lower", "upper", "unit", "source_reference" ], "title": "ApprovedBenchmark", "type": "object" }, "Athlete": { "additionalProperties": false, "properties": { "athlete_id": { "minLength": 1, "pattern": "\\S", "title": "Athlete Id", "type": "string" }, "batting_hand": { "anyOf": [ { "enum": [ "left", "right" ], "type": "string" }, { "type": "null" } ], "title": "Batting Hand" }, "lead_foot": { "anyOf": [ { "enum": [ "left", "right" ], "type": "string" }, { "type": "null" } ], "title": "Lead Foot" }, "age_years": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "type": "null" } ], "title": "Age Years" }, "height_cm": { "anyOf": [ { "exclusiveMinimum": 0, "type": "number" }, { "type": "null" } ], "title": "Height Cm" } }, "required": [ "athlete_id", "batting_hand", "lead_foot", "age_years", "height_cm" ], "title": "Athlete", "type": "object" }, "Events": { "additionalProperties": false, "properties": { "stride_start": { "$ref": "#/components/schemas/SwingEvent" }, "front_foot_down": { "$ref": "#/components/schemas/SwingEvent" }, "contact": { "$ref": "#/components/schemas/SwingEvent" }, "follow_through": { "anyOf": [ { "$ref": "#/components/schemas/SwingEvent" }, { "type": "null" } ], "default": null } }, "required": [ "stride_start", "front_foot_down", "contact" ], "title": "Events", "type": "object" }, "Measurement": { "additionalProperties": false, "properties": { "metric_id": { "enum": [ "hip_shoulder_separation_at_foot_down", "stride_relative_length", "hip_shoulder_separation_at_contact", "torso_inclination_at_stride_start", "hip_shoulder_separation_at_stride_start", "pelvis_rotation_to_contact", "lead_knee_extension_to_contact", "torso_inclination_at_contact", "shoulder_rotation_after_contact" ], "title": "Metric Id", "type": "string" }, "group": { "enum": [ "balance_load", "stride", "power_move", "contact_follow_through" ], "title": "Group", "type": "string" }, "value": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Value" }, "unit": { "enum": [ "deg", "cm" ], "title": "Unit", "type": "string" }, "event_id": { "anyOf": [ { "enum": [ "stride_start", "front_foot_down", "contact", "follow_through" ], "type": "string" }, { "type": "null" } ], "default": null, "title": "Event Id" }, "start_event_id": { "anyOf": [ { "enum": [ "stride_start", "front_foot_down", "contact", "follow_through" ], "type": "string" }, { "type": "null" } ], "default": null, "title": "Start Event Id" }, "end_event_id": { "anyOf": [ { "enum": [ "stride_start", "front_foot_down", "contact", "follow_through" ], "type": "string" }, { "type": "null" } ], "default": null, "title": "End Event Id" }, "reference": { "enum": [ "signed_horizontal_shoulder_minus_hip_heading", "lead_ankle_displacement_relative_to_rear_ankle", "torso_angle_from_vertical", "absolute_net_horizontal_rotation", "change_in_3d_lead_knee_angle" ], "title": "Reference", "type": "string" }, "status": { "enum": [ "available", "limited", "unavailable" ], "title": "Status", "type": "string" }, "confidence": { "anyOf": [ { "maximum": 1, "minimum": 0, "type": "number" }, { "type": "null" } ], "title": "Confidence" }, "uses_interpolated_input": { "title": "Uses Interpolated Input", "type": "boolean" }, "reasons": { "items": { "enum": [ "contact_not_verified", "contact_not_applicable", "event_not_detected", "event_timing_uncertain", "required_event_unavailable", "required_event_limited", "lead_foot_unknown", "required_landmarks_unusable", "ground_plane_unknown", "scale_is_model_estimated", "scale_unknown", "excessive_interpolation", "occlusion_unresolved", "temporal_inconsistency", "capture_time_unknown", "follow_through_not_recorded", "model_accuracy_unvalidated" ], "type": "string" }, "title": "Reasons", "type": "array" }, "benchmark": { "anyOf": [ { "$ref": "#/components/schemas/ApprovedBenchmark" }, { "type": "null" } ] }, "value_interval": { "anyOf": [ { "$ref": "#/components/schemas/ValueInterval" }, { "type": "null" } ], "default": null } }, "required": [ "metric_id", "group", "value", "unit", "reference", "status", "confidence", "uses_interpolated_input", "reasons", "benchmark" ], "title": "Measurement", "type": "object" }, "SwingAnalysisPayload": { "additionalProperties": false, "properties": { "schema_version": { "enum": [ "1.0", "1.1" ], "title": "Schema Version", "type": "string" }, "analysis_id": { "minLength": 1, "pattern": "\\S", "title": "Analysis Id", "type": "string" }, "analysis_revision": { "minimum": 1, "title": "Analysis Revision", "type": "integer" }, "swing_id": { "minLength": 1, "pattern": "\\S", "title": "Swing Id", "type": "string" }, "status": { "const": "completed", "title": "Status", "type": "string" }, "athlete": { "$ref": "#/components/schemas/Athlete" }, "context": { "$ref": "#/components/schemas/SwingContext" }, "measurement_definitions_version": { "enum": [ "1.0", "1.1" ], "title": "Measurement Definitions Version", "type": "string" }, "events": { "$ref": "#/components/schemas/Events" }, "measurements": { "items": { "$ref": "#/components/schemas/Measurement" }, "minItems": 1, "title": "Measurements", "type": "array" } }, "required": [ "schema_version", "analysis_id", "analysis_revision", "swing_id", "status", "athlete", "context", "measurement_definitions_version", "events", "measurements" ], "title": "SwingAnalysisPayload", "type": "object" }, "SwingContext": { "additionalProperties": false, "properties": { "sport": { "const": "baseball", "title": "Sport", "type": "string" }, "practice_type": { "enum": [ "tee", "front_toss", "side_toss", "pitching_machine", "live_pitching", "game", "dry_swing", "walk_through", "unknown" ], "title": "Practice Type", "type": "string" } }, "required": [ "sport", "practice_type" ], "title": "SwingContext", "type": "object" }, "SwingEvent": { "additionalProperties": false, "properties": { "status": { "enum": [ "available", "limited", "unavailable" ], "title": "Status", "type": "string" }, "video_time_s": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Video Time S" }, "capture_time_s": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Capture Time S" }, "source": { "anyOf": [ { "enum": [ "manual_review", "pose_estimated", "bat_ball_detector", "derived_from_contact" ], "type": "string" }, { "type": "null" } ], "title": "Source" }, "reasons": { "items": { "enum": [ "contact_not_verified", "contact_not_applicable", "event_not_detected", "event_timing_uncertain", "required_event_unavailable", "required_event_limited", "lead_foot_unknown", "required_landmarks_unusable", "ground_plane_unknown", "scale_is_model_estimated", "scale_unknown", "excessive_interpolation", "occlusion_unresolved", "temporal_inconsistency", "capture_time_unknown", "follow_through_not_recorded", "model_accuracy_unvalidated" ], "type": "string" }, "title": "Reasons", "type": "array" }, "source_frame_index": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "type": "null" } ], "default": null, "title": "Source Frame Index" } }, "required": [ "status", "video_time_s", "capture_time_s", "source" ], "title": "SwingEvent", "type": "object" }, "ValueInterval": { "additionalProperties": false, "properties": { "lower": { "title": "Lower", "type": "number" }, "upper": { "title": "Upper", "type": "number" }, "source": { "const": "adjacent_event_frames", "title": "Source", "type": "string" } }, "required": [ "lower", "upper", "source" ], "title": "ValueInterval", "type": "object" }, "PitchPayload_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" }, "PitchPayload_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": "#/components/schemas/PitchPayload_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" }, "PitchPayload_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": "#/components/schemas/PitchPayload_ClockEvidence" }, "curves": { "items": { "$ref": "#/components/schemas/PitchPayload_Curve" }, "maxItems": 6, "title": "Curves", "type": "array" }, "phases": { "items": { "$ref": "#/components/schemas/PitchPayload_Phase" }, "maxItems": 4, "title": "Phases", "type": "array" }, "sequencing": { "$ref": "#/components/schemas/PitchPayload_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" }, "PitchPayload_Event": { "additionalProperties": false, "properties": { "status": { "enum": [ "limited", "unavailable" ], "title": "Status", "type": "string" }, "video_time_s": { "anyOf": [ { "minimum": 0, "type": "number" }, { "type": "null" } ], "title": "Video Time S" }, "capture_time_s": { "anyOf": [ { "minimum": 0, "type": "number" }, { "type": "null" } ], "title": "Capture Time S" }, "source_frame_index": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "type": "null" } ], "title": "Source Frame Index" }, "source": { "anyOf": [ { "enum": [ "manual_review", "derived_from_release" ], "type": "string" }, { "type": "null" } ], "title": "Source" }, "reasons": { "items": { "enum": [ "event_not_marked", "event_not_applicable", "event_timing_uncertain", "required_event_unavailable", "required_landmarks_unusable", "ground_plane_unknown", "camera_stability_unverified", "scale_unknown", "scale_is_model_estimated", "capture_time_unknown", "timing_resolution_insufficient", "follow_through_not_recorded", "model_accuracy_unvalidated", "temporal_inconsistency", "throwing_hand_unknown", "event_angle_unstable", "angle_sensitivity_unresolved" ], "type": "string" }, "minItems": 1, "title": "Reasons", "type": "array" } }, "required": [ "status", "video_time_s", "capture_time_s", "source_frame_index", "source", "reasons" ], "title": "Event", "type": "object" }, "PitchPayload_Events": { "additionalProperties": false, "properties": { "leg_lift": { "$ref": "#/components/schemas/PitchPayload_Event" }, "foot_strike": { "$ref": "#/components/schemas/PitchPayload_Event" }, "release": { "$ref": "#/components/schemas/PitchPayload_Event" }, "early_follow_through": { "$ref": "#/components/schemas/PitchPayload_Event" } }, "required": [ "leg_lift", "foot_strike", "release", "early_follow_through" ], "title": "Events", "type": "object" }, "PitchPayload_Measurement": { "additionalProperties": false, "properties": { "metric_id": { "title": "Metric Id", "type": "string" }, "group": { "enum": [ "gather", "stride_plant", "rotation_release", "release_finish" ], "title": "Group", "type": "string" }, "unit": { "enum": [ "deg", "cm", "ms" ], "title": "Unit", "type": "string" }, "reference": { "title": "Reference", "type": "string" }, "event_ids": { "items": { "enum": [ "leg_lift", "foot_strike", "release", "early_follow_through" ], "type": "string" }, "title": "Event Ids", "type": "array" }, "value": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "title": "Value" }, "status": { "enum": [ "limited", "unavailable" ], "title": "Status", "type": "string" }, "confidence": { "default": null, "title": "Confidence", "type": "null" }, "reasons": { "items": { "enum": [ "event_not_marked", "event_not_applicable", "event_timing_uncertain", "required_event_unavailable", "required_landmarks_unusable", "ground_plane_unknown", "camera_stability_unverified", "scale_unknown", "scale_is_model_estimated", "capture_time_unknown", "timing_resolution_insufficient", "follow_through_not_recorded", "model_accuracy_unvalidated", "temporal_inconsistency", "throwing_hand_unknown", "event_angle_unstable", "angle_sensitivity_unresolved" ], "type": "string" }, "minItems": 1, "title": "Reasons", "type": "array" }, "uses_interpolated_input": { "title": "Uses Interpolated Input", "type": "boolean" }, "value_interval": { "anyOf": [ { "$ref": "#/components/schemas/PitchPayload_ValueInterval" }, { "type": "null" } ], "default": null }, "benchmark": { "default": null, "title": "Benchmark", "type": "null" } }, "required": [ "metric_id", "group", "unit", "reference", "event_ids", "value", "status", "reasons", "uses_interpolated_input" ], "title": "Measurement", "type": "object" }, "PitchPayload_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": "#/components/schemas/PitchPayload_PhaseMotion" }, "title": "Motion", "type": "array" } }, "required": [ "phase", "start_frame", "end_frame", "duration_ms", "motion" ], "title": "Phase", "type": "object" }, "PitchPayload_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" }, "PitchPayload_PitchAthlete": { "additionalProperties": false, "properties": { "athlete_id": { "maxLength": 180, "minLength": 1, "pattern": "\\S", "title": "Athlete Id", "type": "string" }, "throwing_hand": { "anyOf": [ { "enum": [ "left", "right" ], "type": "string" }, { "type": "null" } ], "default": null, "title": "Throwing Hand" }, "lead_foot": { "anyOf": [ { "enum": [ "left", "right" ], "type": "string" }, { "type": "null" } ], "default": null, "title": "Lead Foot" }, "age_years": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "type": "null" } ], "default": null, "title": "Age Years" }, "height_cm": { "anyOf": [ { "exclusiveMinimum": 0, "type": "number" }, { "type": "null" } ], "default": null, "title": "Height Cm" } }, "required": [ "athlete_id" ], "title": "PitchAthlete", "type": "object" }, "PitchPayload_PitchContext": { "additionalProperties": false, "properties": { "sport": { "const": "baseball", "default": "baseball", "title": "Sport", "type": "string" }, "practice_type": { "default": "unknown", "enum": [ "bullpen", "flat_ground", "live_bp", "game", "dry_delivery", "unknown" ], "title": "Practice Type", "type": "string" }, "drill_type": { "default": "unknown", "enum": [ "standard", "step_back", "rocker", "other", "unknown" ], "title": "Drill Type", "type": "string" }, "pitch_type": { "default": "unknown", "enum": [ "fastball", "breaking_ball", "changeup", "other", "unknown" ], "title": "Pitch Type", "type": "string" }, "ball_type": { "default": "unknown", "enum": [ "baseball", "training_ball", "none", "unknown" ], "title": "Ball Type", "type": "string" } }, "title": "PitchContext", "type": "object" }, "PitchPayload_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" }, "PitchPayload_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" }, "PitchPayload_ValueInterval": { "additionalProperties": false, "properties": { "lower": { "title": "Lower", "type": "number" }, "upper": { "title": "Upper", "type": "number" }, "source": { "const": "adjacent_event_frames", "default": "adjacent_event_frames", "title": "Source", "type": "string" } }, "required": [ "lower", "upper" ], "title": "ValueInterval", "type": "object" }, "PitchPayload": { "additionalProperties": false, "properties": { "schema_version": { "const": "pitch-1.1", "default": "pitch-1.1", "title": "Schema Version", "type": "string" }, "measurement_definitions_version": { "const": "pitch-1.1", "default": "pitch-1.1", "title": "Measurement Definitions Version", "type": "string" }, "discipline": { "const": "pitching", "default": "pitching", "title": "Discipline", "type": "string" }, "analysis_id": { "minLength": 1, "title": "Analysis Id", "type": "string" }, "analysis_revision": { "minimum": 1, "title": "Analysis Revision", "type": "integer" }, "pitch_id": { "minLength": 1, "title": "Pitch Id", "type": "string" }, "status": { "const": "completed", "default": "completed", "title": "Status", "type": "string" }, "athlete": { "$ref": "#/components/schemas/PitchPayload_PitchAthlete" }, "context": { "$ref": "#/components/schemas/PitchPayload_PitchContext" }, "events": { "$ref": "#/components/schemas/PitchPayload_Events" }, "measurements": { "items": { "$ref": "#/components/schemas/PitchPayload_Measurement" }, "title": "Measurements", "type": "array" }, "delivery_evidence": { "anyOf": [ { "$ref": "#/components/schemas/PitchPayload_DeliveryEvidence" }, { "type": "null" } ], "default": null }, "visual_evidence": { "default": null, "title": "Visual Evidence", "type": "null" } }, "required": [ "analysis_id", "analysis_revision", "pitch_id", "athlete", "context", "events", "measurements" ], "title": "PitchPayload", "type": "object" } } } }
{
"openapi": "3.1.0",
"info": {
"title": "Cognivision Baseball API",
"version": "0.1.0"
},
"paths": {
"/v1/auth/register": {
"post": {
"tags": [
"auth"
],
"summary": "Register",
"operationId": "register_v1_auth_register_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RegisterIn"
}
}
},
"required": true
},
"responses": {
"201": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AuthOut"
}
}
}
},
"400": {
"description": "Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"default": {
"description": "Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
}
}
},
"/v1/auth/login": {
"post": {
"tags": [
"auth"
],
"summary": "Login",
"operationId": "login_v1_auth_login_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LoginIn"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AuthOut"
}
}
}
},
"400": {
"description": "Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"default": {
"description": "Error",
"content": {
"application/json": {