diff --git "a/backend/docs/openapi.json" "b/backend/docs/openapi.json" --- "a/backend/docs/openapi.json" +++ "b/backend/docs/openapi.json" @@ -915,7 +915,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SessionIn" + "$ref": "#/components/schemas/app__modules__sessions__schemas__SessionIn" } } } @@ -1520,7 +1520,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ReviewCreate" + "$ref": "#/components/schemas/ReviewSubmit" } } } @@ -1531,7 +1531,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ReviewResponse" + "$ref": "#/components/schemas/ReviewSubmitted" } } } @@ -1567,6 +1567,23 @@ "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", @@ -2579,325 +2596,9186 @@ } } } - } - }, - "components": { - "schemas": { - "AppleWebhookIn": { - "properties": { - "signedPayload": { - "type": "string", - "maxLength": 200000, - "title": "Signedpayload" + }, + "/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" + } } - }, - "type": "object", - "required": [ - "signedPayload" ], - "title": "AppleWebhookIn" - }, - "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" + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SettingsEnvelope" + } + } + } }, - "throws": { - "type": "string", - "enum": [ - "L", - "R" - ], - "title": "Throws" + "400": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - "level": { - "type": "string", - "enum": [ - "youth", - "high_school", - "college", - "adult" - ], - "title": "Level" + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } } - }, - "additionalProperties": false, - "type": "object", - "required": [ - "name", - "age", - "height_cm", - "weight_kg", - "bats", - "throws", - "level" - ], - "title": "AthleteIn" + } }, - "AuthOut": { - "properties": { - "user": { - "$ref": "#/components/schemas/UserOut" - }, - "tokens": { - "$ref": "#/components/schemas/TokensOut" + "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" + } } - }, - "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" + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SettingsPatch" + } + } } }, - "required": [ - "benchmark_id", - "version", - "population", - "on_target", - "satisfactory", - "unit", - "source_reference" - ], - "title": "BenchmarkOut", - "type": "object" - }, - "CatalogOut": { - "properties": { - "groups": { - "items": { - "$ref": "#/components/schemas/GroupOut" - }, - "type": "array", - "title": "Groups" + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SettingsEnvelope" + } + } + } }, - "metrics": { - "items": { - "$ref": "#/components/schemas/MetricOut" - }, - "type": "array", - "title": "Metrics" + "400": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - "drills": { - "items": { - "$ref": "#/components/schemas/DrillOut" + "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/app__modules__threads__schemas__SessionIn" + } + ], + "discriminator": { + "propertyName": "kind", + "mapping": { + "text": "#/components/schemas/TextIn", + "voice": "#/components/schemas/VoiceIn", + "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" + }, + "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" + }, + "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" + }, + "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" + }, + "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" + }, + "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" + ], + "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" + }, + "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" + ], + "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" + } + }, + "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" + }, + "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": [ - "groups", - "metrics", - "drills" + "id", + "overall_score", + "created_at" ], - "title": "CatalogOut" + "title": "PreviousOut" }, - "DataQualityNote": { - "additionalProperties": false, + "ProfileOut": { "properties": { - "code": { - "title": "Code", - "type": "string" + "name": { + "type": "string", + "title": "Name" }, - "severity": { - "enum": [ - "info", - "warning" + "age": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "null" + } ], - "title": "Severity", - "type": "string" + "title": "Age" }, - "text": { - "title": "Text", - "type": "string" + "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": [ - "code", - "severity", - "text" + "name", + "age", + "height_cm", + "weight_kg", + "bats", + "throws", + "level" ], - "title": "DataQualityNote", - "type": "object" + "title": "ProfileOut" }, - "DeviceCreate": { + "ProfileUpdate": { "properties": { - "platform": { - "type": "string", - "enum": [ - "ios", - "android" + "name": { + "anyOf": [ + { + "type": "string", + "maxLength": 80 + }, + { + "type": "null" + } ], - "title": "Platform" + "title": "Name" }, - "push_token": { + "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": 4096, - "minLength": 1, - "title": "Push Token" + "maxLength": 100000, + "title": "Data", + "default": "" + } + }, + "type": "object", + "title": "PubSubMessage" + }, + "PubSubPushIn": { + "properties": { + "message": { + "$ref": "#/components/schemas/PubSubMessage" } }, - "additionalProperties": false, "type": "object", "required": [ - "platform", - "push_token" + "message" ], - "title": "DeviceCreate" + "title": "PubSubPushIn" }, - "DeviceOut": { + "QueueItem": { "properties": { "id": { "type": "string", "format": "uuid", "title": "Id" }, - "platform": { + "owner_id": { "type": "string", - "title": "Platform" + "format": "uuid", + "title": "Owner Id" }, - "push_token": { + "mode": { "type": "string", - "title": "Push Token" + "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", - "platform", - "push_token", - "created_at" - ], - "title": "DeviceOut" - }, - "DeviceResponse": { - "properties": { - "device": { - "$ref": "#/components/schemas/DeviceOut" - } - }, - "type": "object", - "required": [ - "device" + "owner_id", + "mode", + "is_self", + "athlete_name", + "status", + "overall_score", + "overall_score_is_tentative", + "focus", + "review", + "thumbnail_url", + "created_at", + "owner_name" ], - "title": "DeviceResponse" + "title": "QueueItem" }, - "Drill": { - "additionalProperties": false, + "QueueResponse": { "properties": { - "drill_id": { - "title": "Drill Id", - "type": "string" - }, - "name": { - "title": "Name", - "type": "string" - }, - "how": { - "title": "How", - "type": "string" - }, - "cue": { - "title": "Cue", - "type": "string" + "open": { + "items": { + "$ref": "#/components/schemas/QueueItem" + }, + "type": "array", + "title": "Open" }, - "reps": { - "title": "Reps", - "type": "string" + "reviewed_today": { + "items": { + "$ref": "#/components/schemas/QueueItem" + }, + "type": "array", + "title": "Reviewed Today" } }, + "type": "object", "required": [ - "drill_id", - "name", - "how", - "cue", - "reps" + "open", + "reviewed_today" ], - "title": "Drill", - "type": "object" + "title": "QueueResponse" }, - "DrillLogEnvelope": { + "ReadAllIn": { "properties": { - "log": { - "$ref": "#/components/schemas/DrillLogOut" + "through": { + "anyOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ], + "title": "Through" } }, + "additionalProperties": false, "type": "object", - "required": [ - "log" - ], - "title": "DrillLogEnvelope" + "title": "ReadAllIn" }, - "DrillLogIn": { + "ReadIn": { "properties": { - "session_id": { + "last_message_id": { "anyOf": [ { "type": "string", @@ -2907,243 +11785,294 @@ "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" + "title": "Last Message Id" } }, "additionalProperties": false, "type": "object", - "required": [ - "drill_id", - "reps", - "day" - ], - "title": "DrillLogIn" + "title": "ReadIn" }, - "DrillLogOut": { + "ReceiptIn": { "properties": { - "id": { + "platform": { "type": "string", - "format": "uuid", - "title": "Id" + "enum": [ + "ios", + "android" + ], + "title": "Platform" }, - "session_id": { + "product_id": { + "type": "string", + "maxLength": 64, + "minLength": 1, + "title": "Product Id" + }, + "signed_transaction": { "anyOf": [ { "type": "string", - "format": "uuid" + "maxLength": 32000 }, { "type": "null" } ], - "title": "Session Id" - }, - "drill_id": { - "type": "string", - "title": "Drill Id" - }, - "reps": { - "type": "integer", - "title": "Reps" - }, - "day": { - "type": "string", - "format": "date", - "title": "Day" + "title": "Signed Transaction" }, - "created_at": { - "type": "string", - "format": "date-time", - "title": "Created At" + "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": [ - "id", - "session_id", - "drill_id", - "reps", - "day", - "created_at" + "entitlement" ], - "title": "DrillLogOut" + "title": "ReceiptOut" }, - "DrillOut": { + "RecentByMode": { "properties": { - "drill_id": { - "type": "string", - "title": "Drill Id" + "h": { + "items": { + "type": "integer" + }, + "type": "array", + "title": "H", + "default": [] }, - "name": { + "p": { + "items": { + "type": "integer" + }, + "type": "array", + "title": "P", + "default": [] + } + }, + "type": "object", + "title": "RecentByMode" + }, + "RefreshIn": { + "properties": { + "refresh_token": { "type": "string", - "title": "Name" - }, - "how": { + "maxLength": 256, + "minLength": 1, + "title": "Refresh Token" + } + }, + "additionalProperties": false, + "type": "object", + "required": [ + "refresh_token" + ], + "title": "RefreshIn" + }, + "RegisterIn": { + "properties": { + "email": { "type": "string", - "title": "How" + "maxLength": 254, + "title": "Email" }, - "cue": { + "password": { "type": "string", - "title": "Cue" + "maxLength": 128, + "minLength": 8, + "title": "Password" }, - "reps": { + "role": { "type": "string", - "title": "Reps" + "enum": [ + "player", + "coach" + ], + "title": "Role" } }, + "additionalProperties": false, "type": "object", "required": [ - "drill_id", - "name", - "how", - "cue", - "reps" + "email", + "password", + "role" ], - "title": "DrillOut" + "title": "RegisterIn" }, - "Entitlement": { + "ReportMeta": { + "additionalProperties": false, "properties": { - "plan": { - "type": "string", - "title": "Plan" + "generated_at": { + "title": "Generated At", + "type": "string" }, - "weekly_limit": { + "request_id": { "anyOf": [ { - "type": "integer" + "type": "string" }, { "type": "null" } ], - "title": "Weekly Limit" + "title": "Request Id" }, - "used_this_week": { - "type": "integer", - "title": "Used This Week" + "text_source": { + "enum": [ + "llm", + "rules", + "mixed" + ], + "title": "Text Source", + "type": "string" }, - "left": { + "model": { "anyOf": [ { - "type": "integer" + "type": "string" }, { "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" - }, - "FocusArea": { - "additionalProperties": false, - "properties": { - "metric_id": { - "title": "Metric Id", - "type": "string" + "title": "Model" }, - "group": { - "enum": [ - "balance_load", - "stride", - "power_move", - "contact_follow_through" - ], - "title": "Group", + "prompt_version": { + "title": "Prompt Version", "type": "string" }, - "display_name": { - "title": "Display Name", - "type": "string" + "cache_hit": { + "title": "Cache Hit", + "type": "boolean" }, - "rating": { - "enum": [ - "on_target", - "satisfactory", - "off_target", - "not_rated" + "fallback_reason": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } ], - "title": "Rating", - "type": "string" + "title": "Fallback Reason" }, - "rating_label": { - "title": "Rating Label", + "input_schema_version": { + "title": "Input Schema Version", "type": "string" }, - "coach_message": { - "title": "Coach Message", + "measurement_definitions_version": { + "title": "Measurement Definitions Version", "type": "string" }, - "practice_feel": { - "title": "Practice Feel", + "benchmark_registry_version": { + "title": "Benchmark Registry Version", "type": "string" }, - "drill": { - "$ref": "#/components/schemas/Drill" - }, - "evidence_metric_ids": { - "items": { - "type": "string" - }, - "title": "Evidence Metric Ids", - "type": "array" + "coaching_rules_version": { + "title": "Coaching Rules Version", + "type": "string" } }, "required": [ - "metric_id", - "group", - "display_name", - "rating", - "rating_label", - "coach_message", - "practice_feel", - "drill", - "evidence_metric_ids" + "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": "FocusArea", + "title": "ReportMeta", "type": "object" }, - "FocusSummary": { + "RequestOut": { "properties": { - "metric_id": { + "id": { "type": "string", - "title": "Metric Id" + "format": "uuid", + "title": "Id" }, - "display_name": { + "user_id": { "type": "string", - "title": "Display Name" + "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" }, - "drill_id": { + "next_cursor": { "anyOf": [ { "type": "string" @@ -3152,202 +12081,205 @@ "type": "null" } ], - "title": "Drill Id" + "title": "Next Cursor" + }, + "total_pending": { + "type": "integer", + "title": "Total Pending" } }, "type": "object", "required": [ - "metric_id", - "display_name", - "drill_id" + "items", + "total_pending" ], - "title": "FocusSummary" + "title": "RequestPage" }, - "ForgotPasswordIn": { + "ResetPasswordIn": { "properties": { - "email": { + "token": { "type": "string", - "maxLength": 254, - "title": "Email" + "maxLength": 256, + "minLength": 1, + "title": "Token" + }, + "password": { + "type": "string", + "maxLength": 128, + "minLength": 8, + "title": "Password" } }, "additionalProperties": false, "type": "object", "required": [ - "email" + "token", + "password" ], - "title": "ForgotPasswordIn" + "title": "ResetPasswordIn" }, - "GroupOut": { + "ReviewMessageOut": { "properties": { - "group": { + "id": { "type": "string", - "title": "Group" + "format": "uuid", + "title": "Id" }, - "display_name": { + "author_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Author Id" + }, + "from": { "type": "string", - "title": "Display Name" - } - }, - "type": "object", - "required": [ - "group", - "display_name" - ], - "title": "GroupOut" - }, - "GroupReport": { - "additionalProperties": false, - "properties": { - "group": { "enum": [ - "balance_load", - "stride", - "power_move", - "contact_follow_through" + "player", + "coach" ], - "title": "Group", - "type": "string" + "title": "From" }, - "display_name": { - "title": "Display Name", - "type": "string" + "at": { + "type": "string", + "format": "date-time", + "title": "At" }, - "score": { + "kind": { + "type": "string", + "const": "review", + "title": "Kind", + "default": "review" + }, + "cue": { + "type": "string", + "title": "Cue" + }, + "voice_seconds": { "anyOf": [ { - "type": "integer" + "type": "number" }, { "type": "null" } ], - "title": "Score" + "title": "Voice Seconds" }, - "rating": { - "enum": [ - "on_target", - "satisfactory", - "off_target", - "not_rated" - ], - "title": "Rating", - "type": "string" + "audio": { + "anyOf": [ + { + "$ref": "#/components/schemas/MediaRef" + }, + { + "type": "null" + } + ] }, - "rating_label": { - "title": "Rating Label", - "type": "string" + "findings": { + "items": { + "$ref": "#/components/schemas/Finding" + }, + "type": "array", + "title": "Findings" }, - "not_rated_reason": { + "drill_id": { "anyOf": [ { - "enum": [ - "measurement_unavailable", - "no_benchmark", - "no_measurements_available", - "measurements_unavailable", - "no_rated_measurements" - ], "type": "string" }, { "type": "null" } ], - "title": "Not Rated Reason" - }, - "summary": { - "title": "Summary", - "type": "string" + "title": "Drill Id" }, - "metric_ids": { - "items": { - "type": "string" - }, - "title": "Metric Ids", - "type": "array" - } - }, - "required": [ - "group", - "display_name", - "score", - "rating", - "rating_label", - "not_rated_reason", - "summary", - "metric_ids" - ], - "title": "GroupReport", - "type": "object" - }, - "Interval": { - "additionalProperties": false, - "properties": { - "lower": { - "title": "Lower", - "type": "number" + "drill_name": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "title": "Drill Name" }, - "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" + "assignment_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } + ], + "title": "Assignment Id" } }, "type": "object", "required": [ - "items" + "id", + "author_id", + "from", + "at", + "cue", + "voice_seconds", + "audio", + "findings", + "drill_id", + "drill_name" ], - "title": "Items[RosterItem]" + "title": "ReviewMessageOut" }, - "LastByMode": { + "ReviewOut": { "properties": { - "h": { + "coach_id": { "anyOf": [ { - "$ref": "#/components/schemas/LastSession" + "type": "string", + "format": "uuid" }, { "type": "null" } - ] + ], + "title": "Coach Id" }, - "p": { + "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/LastSession" + "$ref": "#/components/schemas/MediaRef" }, { "type": "null" @@ -3356,435 +12288,566 @@ } }, "type": "object", - "title": "LastByMode" + "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)." }, - "LastSession": { + "ReviewSubmit": { "properties": { - "session_id": { + "cue": { "type": "string", - "format": "uuid", - "title": "Session Id" + "maxLength": 200, + "minLength": 1, + "title": "Cue" }, - "overall_score": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "title": "Overall Score" + "drill_id": { + "type": "string", + "maxLength": 16, + "minLength": 1, + "title": "Drill Id" }, - "delta": { + "verdicts": { + "additionalProperties": { + "type": "string", + "enum": [ + "agree", + "change", + "later" + ] + }, + "type": "object", + "title": "Verdicts", + "default": {} + }, + "voice_note_upload_id": { "anyOf": [ { - "type": "integer" + "type": "string", + "format": "uuid" }, { "type": "null" } ], - "title": "Delta" - }, - "created_at": { - "type": "string", - "format": "date-time", - "title": "Created At" + "title": "Voice Note Upload Id" }, - "focus_name": { + "voice_note_seconds": { "anyOf": [ { - "type": "string" + "type": "number", + "maximum": 120.0, + "exclusiveMinimum": 0.0 }, { "type": "null" } ], - "title": "Focus Name" + "title": "Voice Note Seconds" } }, + "additionalProperties": false, "type": "object", "required": [ - "session_id", - "overall_score", - "delta", - "created_at", - "focus_name" + "cue", + "drill_id" ], - "title": "LastSession" + "title": "ReviewSubmit", + "description": "Voice fields: omitted keeps the prior attachment, explicit null removes it (see model_fields_set)." }, - "Limitation": { - "additionalProperties": false, + "ReviewSubmitted": { "properties": { - "code": { - "title": "Code", - "type": "string" + "review": { + "$ref": "#/components/schemas/ReviewOut" }, - "text": { - "title": "Text", - "type": "string" + "thread_id": { + "type": "string", + "format": "uuid", + "title": "Thread Id" } }, + "type": "object", "required": [ - "code", - "text" + "review", + "thread_id" ], - "title": "Limitation", - "type": "object" + "title": "ReviewSubmitted" }, - "LoginIn": { + "ReviewSummary": { "properties": { - "email": { + "coach_name": { "type": "string", - "maxLength": 254, - "minLength": 1, - "title": "Email" + "title": "Coach Name" }, - "password": { + "at": { "type": "string", - "maxLength": 128, - "minLength": 1, - "title": "Password" + "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": [ - "email", - "password" + "player_ids" ], - "title": "LoginIn" + "title": "RosterAddIn" }, - "MarksIn": { + "RosterAddOut": { "properties": { - "contact_frame": { - "type": "integer", - "minimum": 0.0, - "title": "Contact Frame" + "added_player_ids": { + "items": { + "type": "string", + "format": "uuid" + }, + "type": "array", + "title": "Added Player Ids" }, - "contact_offset": { - "type": "integer", - "title": "Contact Offset" + "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" }, - "contact_source": { + "name": { "type": "string", - "enum": [ - "detected", - "suggested", - "manual" - ], - "title": "Contact Source" + "title": "Name" }, - "stride_start_frame": { - "type": "integer", - "minimum": 0.0, - "title": "Stride Start Frame" + "email": { + "type": "string", + "title": "Email" }, - "stride_end_frame": { - "type": "integer", - "minimum": 0.0, - "title": "Stride End Frame" + "focus": { + "type": "string", + "title": "Focus" }, - "pitcher_direction": { + "level": { "anyOf": [ { - "$ref": "#/components/schemas/PitcherDirection" + "type": "string" }, { "type": "null" } ], - "default": 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" } }, - "additionalProperties": false, "type": "object", "required": [ - "contact_frame", - "contact_offset", - "contact_source", - "stride_start_frame", - "stride_end_frame" + "id", + "name", + "email", + "focus", + "level", + "pending_count", + "last", + "recent" ], - "title": "MarksIn" + "title": "RosterItem", + "description": "A player as the coach sees them. Never carries body data (age, height, weight)." }, - "MeOut": { + "SendResult": { "properties": { - "user": { - "$ref": "#/components/schemas/UserOut" - }, - "team": { - "anyOf": [ + "message": { + "oneOf": [ { - "$ref": "#/components/schemas/TeamOut" + "$ref": "#/components/schemas/TextMessageOut" }, { - "type": "null" + "$ref": "#/components/schemas/VoiceMessageOut" + }, + { + "$ref": "#/components/schemas/SessionMessageOut" + }, + { + "$ref": "#/components/schemas/ReviewMessageOut" } - ] + ], + "title": "Message", + "discriminator": { + "propertyName": "kind", + "mapping": { + "review": "#/components/schemas/ReviewMessageOut", + "session": "#/components/schemas/SessionMessageOut", + "text": "#/components/schemas/TextMessageOut", + "voice": "#/components/schemas/VoiceMessageOut" + } + } }, - "entitlement": { - "$ref": "#/components/schemas/Entitlement" + "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" + }, + "SessionEnvelope": { + "properties": { + "session": { + "$ref": "#/components/schemas/SessionOut" } }, "type": "object", "required": [ - "user", - "team", - "entitlement" + "session" ], - "title": "MeOut" + "title": "SessionEnvelope" }, - "MeUpdate": { + "SessionMessageOut": { "properties": { - "role": { + "id": { + "type": "string", + "format": "uuid", + "title": "Id" + }, + "author_id": { "anyOf": [ { "type": "string", - "enum": [ - "player", - "coach" - ] + "format": "uuid" }, { "type": "null" } ], - "title": "Role" + "title": "Author Id" }, - "focus": { - "anyOf": [ - { - "type": "string", - "enum": [ - "h", - "p", - "both" - ] - }, - { - "type": "null" - } + "from": { + "type": "string", + "enum": [ + "player", + "coach" ], - "title": "Focus" + "title": "From" }, - "unit": { + "at": { + "type": "string", + "format": "date-time", + "title": "At" + }, + "kind": { + "type": "string", + "const": "session", + "title": "Kind", + "default": "session" + }, + "session_id": { "anyOf": [ { "type": "string", - "enum": [ - "imperial", - "metric" - ] + "format": "uuid" }, { "type": "null" } ], - "title": "Unit" + "title": "Session Id" }, - "private_videos": { + "label": { "anyOf": [ { - "type": "boolean" + "type": "string" }, { "type": "null" } ], - "title": "Private Videos" + "title": "Label" }, - "profile": { + "score": { "anyOf": [ { - "$ref": "#/components/schemas/ProfileUpdate" + "type": "integer" }, { "type": "null" } - ] + ], + "title": "Score" } }, - "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." + "required": [ + "id", + "author_id", + "from", + "at", + "session_id", + "label", + "score" + ], + "title": "SessionMessageOut" }, - "MeasurementReport": { - "additionalProperties": false, + "SessionOut": { "properties": { - "metric_id": { - "title": "Metric Id", - "type": "string" + "id": { + "type": "string", + "format": "uuid", + "title": "Id" }, - "display_name": { - "title": "Display Name", - "type": "string" + "owner_id": { + "type": "string", + "format": "uuid", + "title": "Owner Id" }, - "group": { - "enum": [ - "balance_load", - "stride", - "power_move", - "contact_follow_through" - ], - "title": "Group", - "type": "string" + "is_self": { + "type": "boolean", + "title": "Is Self" + }, + "mode": { + "type": "string", + "title": "Mode" }, "status": { - "enum": [ - "available", - "limited", - "unavailable" - ], - "title": "Status", - "type": "string" + "type": "string", + "title": "Status" }, - "value": { + "created_at": { + "type": "string", + "format": "date-time", + "title": "Created At" + }, + "analyzed_at": { "anyOf": [ { - "type": "number" + "type": "string", + "format": "date-time" }, { "type": "null" } ], - "title": "Value" + "title": "Analyzed At" }, - "unit": { - "title": "Unit", - "type": "string" + "athlete": { + "additionalProperties": true, + "type": "object", + "title": "Athlete" }, - "display_value": { + "duration_sec": { + "type": "number", + "title": "Duration Sec" + }, + "fps": { + "type": "integer", + "title": "Fps" + }, + "marks": { + "additionalProperties": true, + "type": "object", + "title": "Marks" + }, + "report": { "anyOf": [ { - "type": "string" + "$ref": "#/components/schemas/SwingReport" }, { "type": "null" } ], - "title": "Display Value" + "description": "Null while status is pending" }, - "score": { + "review": { "anyOf": [ { - "type": "integer" + "$ref": "#/components/schemas/ReviewOut" }, { "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" + "media": { + "$ref": "#/components/schemas/MediaOut" }, - "not_rated_reason": { + "previous": { "anyOf": [ { - "enum": [ - "measurement_unavailable", - "no_benchmark", - "no_measurements_available", - "measurements_unavailable", - "no_rated_measurements" - ], - "type": "string" + "$ref": "#/components/schemas/PreviousOut" }, { "type": "null" } - ], - "title": "Not Rated Reason" + ] }, - "benchmark": { + "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": [ { - "$ref": "#/components/schemas/BenchmarkOut" + "type": "integer" }, { "type": "null" } - ] + ], + "title": "Overall Score" }, - "what_it_means": { - "title": "What It Means", - "type": "string" + "overall_score_is_tentative": { + "type": "boolean", + "title": "Overall Score Is Tentative" }, - "result_text": { + "focus": { "anyOf": [ { - "type": "string" + "$ref": "#/components/schemas/FocusSummary" }, { "type": "null" } - ], - "title": "Result Text" + ] }, - "coach_tip": { + "review": { "anyOf": [ { - "type": "string" + "$ref": "#/components/schemas/ReviewSummary" }, { "type": "null" } - ], - "title": "Coach Tip" - }, - "limitations": { - "items": { - "$ref": "#/components/schemas/Limitation" - }, - "title": "Limitations", - "type": "array" - } - }, - "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": [ @@ -3797,213 +12860,180 @@ ], "title": "Thumbnail Url" }, - "expires_at": { + "created_at": { "type": "string", "format": "date-time", - "title": "Expires At" + "title": "Created At" } }, "type": "object", "required": [ - "video_url", + "id", + "owner_id", + "mode", + "is_self", + "athlete_name", + "status", + "overall_score", + "overall_score_is_tentative", + "focus", + "review", "thumbnail_url", - "expires_at" + "created_at" ], - "title": "MediaOut" + "title": "SessionSummary" }, - "MetricOut": { + "SetIn": { "properties": { - "metric_id": { - "type": "string", - "title": "Metric Id" - }, - "display_name": { - "type": "string", - "title": "Display Name" - }, - "group": { - "type": "string", - "title": "Group" + "set_number": { + "type": "integer", + "minimum": 1.0, + "title": "Set Number" }, - "unit": { - "type": "string", - "title": "Unit" + "reps_done": { + "type": "integer", + "minimum": 1.0, + "title": "Reps Done" }, - "what_it_means": { + "day": { "type": "string", - "title": "What It Means" + "format": "date", + "title": "Day" } }, - "type": "object", - "required": [ - "metric_id", - "display_name", - "group", - "unit", - "what_it_means" - ], - "title": "MetricOut" - }, - "Overview": { "additionalProperties": false, - "properties": { - "headline": { - "title": "Headline", - "type": "string" - } - }, + "type": "object", "required": [ - "headline" + "set_number", + "reps_done", + "day" ], - "title": "Overview", - "type": "object" + "title": "SetIn" }, - "Page_SessionSummary_": { + "SetLogOut": { "properties": { - "items": { - "items": { - "$ref": "#/components/schemas/SessionSummary" - }, - "type": "array", - "title": "Items" + "id": { + "type": "string", + "format": "uuid", + "title": "Id" }, - "next_cursor": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Next Cursor" + "set_number": { + "type": "integer", + "title": "Set Number" + }, + "reps_done": { + "type": "integer", + "title": "Reps Done" + }, + "day": { + "type": "string", + "format": "date", + "title": "Day" } }, "type": "object", "required": [ - "items" + "id", + "set_number", + "reps_done", + "day" ], - "title": "Page[SessionSummary]" + "title": "SetLogOut" }, - "PitcherDirection": { + "SetResult": { "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" + "assignment": { + "$ref": "#/components/schemas/AssignmentOut" }, - "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" + "set_log": { + "$ref": "#/components/schemas/SetLogOut" } }, - "additionalProperties": false, "type": "object", "required": [ - "from", - "to" + "assignment", + "set_log" ], - "title": "PitcherDirection" + "title": "SetResult" }, - "PreviousOut": { + "SettingsEnvelope": { "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" + "settings": { + "$ref": "#/components/schemas/SettingsOut" } }, "type": "object", "required": [ - "id", - "overall_score", - "created_at" + "settings" ], - "title": "PreviousOut" + "title": "SettingsEnvelope" }, - "ProfileOut": { + "SettingsOut": { "properties": { - "name": { - "type": "string", - "title": "Name" + "coach_can_see_sessions": { + "type": "boolean", + "title": "Coach Can See Sessions" }, - "age": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ], - "title": "Age" + "share_with_parent": { + "type": "boolean", + "title": "Share With Parent" }, - "height_cm": { + "parent_email": { "anyOf": [ { - "type": "number" + "type": "string" }, { "type": "null" } ], - "title": "Height Cm" + "title": "Parent Email" }, - "weight_kg": { + "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": "number" + "type": "string", + "format": "date-time" }, { "type": "null" } ], - "title": "Weight Kg" + "title": "Consented At" }, - "bats": { + "consent_version": { "anyOf": [ { "type": "string" @@ -4012,575 +13042,493 @@ "type": "null" } ], - "title": "Bats" + "title": "Consent Version" }, - "throws": { + "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": "string" + "type": "boolean" }, { "type": "null" } ], - "title": "Throws" + "title": "Coach Can See Sessions" }, - "level": { + "share_with_parent": { "anyOf": [ { - "type": "string" + "type": "boolean" }, { "type": "null" } ], - "title": "Level" - } - }, - "type": "object", - "required": [ - "name", - "age", - "height_cm", - "weight_kg", - "bats", - "throws", - "level" - ], - "title": "ProfileOut" - }, - "ProfileUpdate": { - "properties": { - "name": { + "title": "Share With Parent" + }, + "parent_email": { "anyOf": [ { "type": "string", - "maxLength": 80 + "maxLength": 254 }, { "type": "null" } ], - "title": "Name" + "title": "Parent Email" }, - "age": { + "auto_monthly_report": { "anyOf": [ { - "type": "integer", - "maximum": 70.0, - "minimum": 5.0 + "type": "boolean" }, { "type": "null" } ], - "title": "Age" + "title": "Auto Monthly Report" }, - "height_cm": { + "private_links": { "anyOf": [ { - "type": "number", - "maximum": 230.0, - "minimum": 90.0 + "type": "boolean" }, { "type": "null" } ], - "title": "Height Cm" + "title": "Private Links" }, - "weight_kg": { + "clips_as_examples": { "anyOf": [ { - "type": "number", - "maximum": 200.0, - "minimum": 20.0 + "type": "boolean" }, { "type": "null" } ], - "title": "Weight Kg" + "title": "Clips As Examples" }, - "bats": { + "help_improve_ai": { "anyOf": [ { - "type": "string", - "enum": [ - "L", - "R", - "S" - ] + "type": "boolean" }, { "type": "null" } ], - "title": "Bats" + "title": "Help Improve Ai" }, - "throws": { + "notify_results": { "anyOf": [ { - "type": "string", - "enum": [ - "L", - "R" - ] + "type": "boolean" }, { "type": "null" } ], - "title": "Throws" + "title": "Notify Results" }, - "level": { + "notify_coach": { "anyOf": [ { - "type": "string", - "enum": [ - "youth", - "high_school", - "college", - "adult" - ] + "type": "boolean" }, { "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" + "title": "Notify Coach" }, - "overall_score": { + "notify_drills": { "anyOf": [ { - "type": "integer" + "type": "boolean" }, { "type": "null" } ], - "title": "Overall Score" + "title": "Notify Drills" }, - "focus": { + "notify_weekly": { "anyOf": [ { - "$ref": "#/components/schemas/FocusSummary" + "type": "boolean" }, { "type": "null" } - ] + ], + "title": "Notify Weekly" }, - "review": { + "skip_filming_guide": { "anyOf": [ { - "$ref": "#/components/schemas/ReviewSummary" + "type": "boolean" }, { "type": "null" } - ] + ], + "title": "Skip Filming Guide" }, - "thumbnail_url": { + "expected_version": { "anyOf": [ { - "type": "string" + "type": "integer", + "minimum": 1.0 }, { "type": "null" } ], - "title": "Thumbnail Url" - }, - "created_at": { - "type": "string", - "format": "date-time", - "title": "Created At" - }, - "owner_name": { - "type": "string", - "title": "Owner Name" + "title": "Expected Version" } }, + "additionalProperties": false, "type": "object", - "required": [ - "id", - "owner_id", - "mode", - "is_self", - "athlete_name", - "status", - "overall_score", - "focus", - "review", - "thumbnail_url", - "created_at", - "owner_name" - ], - "title": "QueueItem" + "title": "SettingsPatch" }, - "QueueResponse": { + "SocialAuthOut": { "properties": { - "open": { - "items": { - "$ref": "#/components/schemas/QueueItem" - }, - "type": "array", - "title": "Open" + "user": { + "$ref": "#/components/schemas/UserOut" }, - "reviewed_today": { - "items": { - "$ref": "#/components/schemas/QueueItem" - }, - "type": "array", - "title": "Reviewed Today" + "tokens": { + "$ref": "#/components/schemas/TokensOut" + }, + "is_new": { + "type": "boolean", + "title": "Is New" } }, "type": "object", "required": [ - "open", - "reviewed_today" + "user", + "tokens", + "is_new" ], - "title": "QueueResponse" + "title": "SocialAuthOut" }, - "ReceiptIn": { + "SocialIn": { "properties": { - "platform": { + "provider": { "type": "string", "enum": [ - "ios", - "android" + "apple", + "google" ], - "title": "Platform" + "title": "Provider" }, - "product_id": { + "id_token": { "type": "string", - "maxLength": 64, + "maxLength": 8192, "minLength": 1, - "title": "Product Id" - }, - "signed_transaction": { - "anyOf": [ - { - "type": "string", - "maxLength": 32000 - }, - { - "type": "null" - } - ], - "title": "Signed Transaction" + "title": "Id Token" }, - "purchase_token": { - "anyOf": [ - { - "type": "string", - "maxLength": 4096 - }, - { - "type": "null" - } + "role": { + "type": "string", + "enum": [ + "player", + "coach" ], - "title": "Purchase Token" + "title": "Role", + "default": "player" } }, "additionalProperties": false, "type": "object", "required": [ - "platform", - "product_id" + "provider", + "id_token" ], - "title": "ReceiptIn" + "title": "SocialIn" }, - "ReceiptOut": { + "StaffCodeBody": { "properties": { - "entitlement": { - "$ref": "#/components/schemas/Entitlement" + "staff_code": { + "$ref": "#/components/schemas/StaffCodeOut" } }, "type": "object", "required": [ - "entitlement" + "staff_code" ], - "title": "ReceiptOut" + "title": "StaffCodeBody" }, - "RecentByMode": { + "StaffCodeCreate": { "properties": { - "h": { - "items": { - "type": "integer" - }, - "type": "array", - "title": "H", - "default": [] + "role": { + "type": "string", + "enum": [ + "coach", + "assistant" + ], + "title": "Role" }, - "p": { - "items": { - "type": "integer" - }, - "type": "array", - "title": "P", - "default": [] - } - }, - "type": "object", - "title": "RecentByMode" - }, - "RefreshIn": { - "properties": { - "refresh_token": { + "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", - "maxLength": 256, - "minLength": 1, - "title": "Refresh Token" + "enum": [ + "admin", + "auto" + ], + "title": "Approval" } }, "additionalProperties": false, "type": "object", "required": [ - "refresh_token" + "role", + "expires_days", + "max_uses", + "approval" ], - "title": "RefreshIn" + "title": "StaffCodeCreate" }, - "RegisterIn": { + "StaffCodeOut": { "properties": { - "email": { - "type": "string", - "maxLength": 254, - "title": "Email" - }, - "password": { + "code": { "type": "string", - "maxLength": 128, - "minLength": 8, - "title": "Password" + "title": "Code" }, "role": { "type": "string", "enum": [ - "player", - "coach" + "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" } }, - "additionalProperties": false, "type": "object", "required": [ - "email", - "password", - "role" + "code", + "role", + "expires", + "uses", + "max_uses", + "approval", + "status" ], - "title": "RegisterIn" + "title": "StaffCodeOut" }, - "ReportMeta": { + "SwingReport": { "additionalProperties": false, "properties": { - "generated_at": { - "title": "Generated At", + "schema_version": { + "const": "1.0", + "title": "Schema Version", "type": "string" }, - "request_id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Request Id" - }, - "text_source": { - "enum": [ - "llm", - "rules", - "mixed" - ], - "title": "Text Source", + "analysis_id": { + "title": "Analysis Id", "type": "string" }, - "model": { + "analysis_revision": { + "title": "Analysis Revision", + "type": "integer" + }, + "overall_score": { "anyOf": [ { - "type": "string" + "type": "integer" }, { "type": "null" } ], - "title": "Model" - }, - "prompt_version": { - "title": "Prompt Version", - "type": "string" + "title": "Overall Score" }, - "cache_hit": { - "title": "Cache Hit", + "overall_score_is_tentative": { + "title": "Overall Score Is Tentative", "type": "boolean" }, - "fallback_reason": { + "overview": { + "$ref": "#/components/schemas/Overview" + }, + "groups": { + "items": { + "$ref": "#/components/schemas/GroupReport" + }, + "title": "Groups", + "type": "array" + }, + "focus_area": { "anyOf": [ { - "type": "string" + "$ref": "#/components/schemas/FocusArea" }, { "type": "null" } - ], - "title": "Fallback Reason" - }, - "input_schema_version": { - "title": "Input Schema Version", - "type": "string" + ] }, - "measurement_definitions_version": { - "title": "Measurement Definitions Version", - "type": "string" + "measurements": { + "items": { + "$ref": "#/components/schemas/MeasurementReport" + }, + "title": "Measurements", + "type": "array" }, - "benchmark_registry_version": { - "title": "Benchmark Registry Version", - "type": "string" + "data_quality": { + "items": { + "$ref": "#/components/schemas/DataQualityNote" + }, + "title": "Data Quality", + "type": "array" }, - "coaching_rules_version": { - "title": "Coaching Rules Version", - "type": "string" + "meta": { + "$ref": "#/components/schemas/ReportMeta" } }, "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" + "schema_version", + "analysis_id", + "analysis_revision", + "overall_score", + "overall_score_is_tentative", + "overview", + "groups", + "focus_area", + "measurements", + "data_quality", + "meta" ], - "title": "ReportMeta", + "title": "SwingReport", "type": "object" }, - "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" - }, - "ReviewCreate": { + "TeamCreate": { "properties": { - "cue": { - "type": "string", - "maxLength": 200, - "minLength": 1, - "title": "Cue" - }, - "drill_id": { + "name": { "type": "string", - "maxLength": 16, - "minLength": 1, - "title": "Drill Id" - }, - "verdicts": { - "additionalProperties": { - "type": "string", - "enum": [ - "agree", - "change", - "later" - ] - }, - "type": "object", - "title": "Verdicts", - "default": {} + "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": [ - "cue", - "drill_id" + "name", + "coach_name", + "coaching" ], - "title": "ReviewCreate" + "title": "TeamCreate" }, - "ReviewOut": { + "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", @@ -4590,145 +13538,112 @@ "type": "string", "title": "Coach Name" }, - "cue": { - "type": "string", - "title": "Cue" - }, - "drill_id": { + "coaching": { "type": "string", - "title": "Drill Id" - }, - "verdicts": { - "additionalProperties": { - "type": "string" - }, - "type": "object", - "title": "Verdicts" + "title": "Coaching" }, - "at": { + "created_at": { "type": "string", "format": "date-time", - "title": "At" + "title": "Created At" } }, "type": "object", "required": [ + "id", + "code", + "name", "coach_id", "coach_name", - "cue", - "drill_id", - "verdicts", - "at" + "coaching", + "created_at" ], - "title": "ReviewOut", - "description": "The review shape every endpoint returns (GET /sessions/{id} and POST /sessions/{id}/review)." + "title": "TeamOut", + "description": "The team shape every endpoint returns (GET /me, team create, lookup and join)." }, - "ReviewResponse": { + "TeamResponse": { "properties": { - "review": { - "$ref": "#/components/schemas/ReviewOut" + "team": { + "$ref": "#/components/schemas/TeamOut" } }, "type": "object", "required": [ - "review" + "team" ], - "title": "ReviewResponse" + "title": "TeamResponse" }, - "ReviewSummary": { + "TeamSummaryOut": { "properties": { + "code": { + "type": "string", + "title": "Code" + }, + "name": { + "type": "string", + "title": "Name" + }, "coach_name": { "type": "string", "title": "Coach Name" }, - "at": { + "coaching": { "type": "string", - "format": "date-time", - "title": "At" + "title": "Coaching" } }, "type": "object", "required": [ + "code", + "name", "coach_name", - "at" + "coaching" ], - "title": "ReviewSummary" + "title": "TeamSummaryOut", + "description": "What a player sees before joining: no ids." }, - "RosterItem": { + "TeamSummaryResponse": { "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" - }, - "pending_count": { - "type": "integer", - "title": "Pending Count" - }, - "last": { - "$ref": "#/components/schemas/LastByMode" - }, - "recent": { - "$ref": "#/components/schemas/RecentByMode" + "team": { + "$ref": "#/components/schemas/TeamSummaryOut" } }, "type": "object", "required": [ - "id", - "name", - "email", - "focus", - "level", - "pending_count", - "last", - "recent" + "team" ], - "title": "RosterItem", - "description": "A player as the coach sees them. Never carries body data (age, height, weight)." + "title": "TeamSummaryResponse" }, - "SessionEnvelope": { + "TextIn": { "properties": { - "session": { - "$ref": "#/components/schemas/SessionOut" + "kind": { + "type": "string", + "const": "text", + "title": "Kind" + }, + "text": { + "type": "string", + "maxLength": 500, + "minLength": 1, + "title": "Text" } }, + "additionalProperties": false, "type": "object", "required": [ - "session" + "kind", + "text" ], - "title": "SessionEnvelope" + "title": "TextIn" }, - "SessionIn": { + "TextMessageOut": { "properties": { - "video_upload_id": { + "id": { "type": "string", "format": "uuid", - "title": "Video Upload Id" + "title": "Id" }, - "thumbnail_upload_id": { + "author_id": { "anyOf": [ { "type": "string", @@ -4738,236 +13653,370 @@ "type": "null" } ], - "title": "Thumbnail Upload Id" + "title": "Author Id" }, - "mode": { + "from": { "type": "string", "enum": [ - "h", - "p" + "player", + "coach" ], - "title": "Mode" - }, - "is_self": { - "type": "boolean", - "title": "Is Self" - }, - "athlete": { - "anyOf": [ - { - "$ref": "#/components/schemas/AthleteIn" - }, - { - "type": "null" - } - ] + "title": "From" }, - "duration_sec": { - "type": "number", - "exclusiveMinimum": 0.0, - "title": "Duration Sec" + "at": { + "type": "string", + "format": "date-time", + "title": "At" }, - "fps": { - "type": "integer", - "maximum": 240.0, - "minimum": 1.0, - "title": "Fps" + "kind": { + "type": "string", + "const": "text", + "title": "Kind", + "default": "text" }, - "marks": { - "$ref": "#/components/schemas/MarksIn" + "text": { + "type": "string", + "title": "Text" } }, - "additionalProperties": false, "type": "object", "required": [ - "video_upload_id", - "mode", - "is_self", - "duration_sec", - "fps", - "marks" + "id", + "author_id", + "from", + "at", + "text" ], - "title": "SessionIn" + "title": "TextMessageOut" }, - "SessionOut": { + "ThreadEnvelope": { + "properties": { + "thread": { + "$ref": "#/components/schemas/ThreadOut" + } + }, + "type": "object", + "required": [ + "thread" + ], + "title": "ThreadEnvelope" + }, + "ThreadOut": { "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" + "enum": [ + "h", + "p" + ], + "title": "Mode" }, - "analyzed_at": { + "session_id": { "anyOf": [ { "type": "string", - "format": "date-time" + "format": "uuid" }, { "type": "null" } ], - "title": "Analyzed At" - }, - "athlete": { - "additionalProperties": true, - "type": "object", - "title": "Athlete" - }, - "duration_sec": { - "type": "number", - "title": "Duration Sec" - }, - "fps": { - "type": "integer", - "title": "Fps" + "title": "Session Id" }, - "marks": { - "additionalProperties": true, - "type": "object", - "title": "Marks" + "session_label": { + "type": "string", + "title": "Session Label" }, - "report": { + "score": { "anyOf": [ { - "$ref": "#/components/schemas/SwingReport" + "type": "integer" }, { "type": "null" } ], - "description": "Null while status is pending" + "title": "Score" }, - "review": { + "tone": { + "type": "string", + "enum": [ + "g", + "y", + "r" + ], + "title": "Tone" + }, + "coach_id": { "anyOf": [ { - "$ref": "#/components/schemas/ReviewOut" + "type": "string", + "format": "uuid" }, { "type": "null" } - ] + ], + "title": "Coach Id" }, - "media": { - "$ref": "#/components/schemas/MediaOut" + "coach_name": { + "type": "string", + "title": "Coach Name" }, - "previous": { + "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/SessionMessageOut" + }, + { + "$ref": "#/components/schemas/ReviewMessageOut" + } + ], + "discriminator": { + "propertyName": "kind", + "mapping": { + "review": "#/components/schemas/ReviewMessageOut", + "session": "#/components/schemas/SessionMessageOut", + "text": "#/components/schemas/TextMessageOut", + "voice": "#/components/schemas/VoiceMessageOut" + } + } + }, + "type": "array", + "title": "Messages" + }, + "next_message_cursor": { "anyOf": [ { - "$ref": "#/components/schemas/PreviousOut" + "type": "string" }, { "type": "null" } - ] - }, - "ordinal": { - "type": "integer", - "title": "Ordinal" + ], + "title": "Next Message Cursor" } }, "type": "object", "required": [ "id", - "owner_id", - "is_self", "mode", + "session_id", + "session_label", + "score", + "tone", + "coach_id", + "coach_name", + "player_id", + "player_name", "status", - "created_at", - "analyzed_at", - "athlete", - "duration_sec", - "fps", - "marks", - "report", - "review", - "media", - "previous", - "ordinal" + "unread_for_player", + "unread_for_coach", + "updated_at", + "messages" ], - "title": "SessionOut" + "title": "ThreadOut" }, - "SessionSummary": { + "TokensOut": { "properties": { - "id": { + "access_token": { "type": "string", - "format": "uuid", - "title": "Id" + "title": "Access Token" }, - "owner_id": { + "refresh_token": { "type": "string", - "format": "uuid", - "title": "Owner Id" + "title": "Refresh Token" }, - "mode": { + "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", - "title": "Mode" - }, - "is_self": { - "type": "boolean", - "title": "Is Self" + "enum": [ + "video", + "thumbnail", + "audio", + "drill_video" + ], + "title": "Kind" }, - "athlete_name": { + "content_type": { "type": "string", - "title": "Athlete Name" + "maxLength": 40, + "minLength": 1, + "title": "Content Type" }, - "status": { - "type": "string", - "title": "Status" + "size_bytes": { + "type": "integer", + "exclusiveMinimum": 0.0, + "title": "Size Bytes" }, - "overall_score": { + "duration_sec": { "anyOf": [ { - "type": "integer" + "type": "number", + "exclusiveMinimum": 0.0 }, { "type": "null" } ], - "title": "Overall Score" + "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": { - "anyOf": [ - { - "$ref": "#/components/schemas/FocusSummary" - }, - { - "type": "null" - } - ] + "type": "string", + "title": "Focus" }, - "review": { - "anyOf": [ - { - "$ref": "#/components/schemas/ReviewSummary" - }, - { - "type": "null" - } - ] + "profile": { + "$ref": "#/components/schemas/ProfileOut" }, - "thumbnail_url": { + "unit": { + "type": "string", + "title": "Unit" + }, + "private_videos": { + "type": "boolean", + "title": "Private Videos" + }, + "team_code": { "anyOf": [ { "type": "string" @@ -4976,7 +14025,7 @@ "type": "null" } ], - "title": "Thumbnail Url" + "title": "Team Code" }, "created_at": { "type": "string", @@ -4987,463 +14036,387 @@ "type": "object", "required": [ "id", - "owner_id", - "mode", - "is_self", - "athlete_name", - "status", - "overall_score", + "email", + "role", "focus", - "review", - "thumbnail_url", + "profile", + "unit", + "private_videos", + "team_code", "created_at" ], - "title": "SessionSummary" - }, - "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" + "title": "UserOut" }, - "SocialIn": { + "VoiceIn": { "properties": { - "provider": { + "kind": { "type": "string", - "enum": [ - "apple", - "google" - ], - "title": "Provider" + "const": "voice", + "title": "Kind" }, - "id_token": { + "upload_id": { "type": "string", - "maxLength": 8192, - "minLength": 1, - "title": "Id Token" + "format": "uuid", + "title": "Upload Id" }, - "role": { - "type": "string", - "enum": [ - "player", - "coach" - ], - "title": "Role", - "default": "player" + "seconds": { + "type": "number", + "maximum": 120.0, + "exclusiveMinimum": 0.0, + "title": "Seconds" } }, "additionalProperties": false, "type": "object", "required": [ - "provider", - "id_token" + "kind", + "upload_id", + "seconds" ], - "title": "SocialIn" + "title": "VoiceIn" }, - "SwingReport": { - "additionalProperties": false, + "VoiceMessageOut": { "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" + "id": { + "type": "string", + "format": "uuid", + "title": "Id" }, - "overall_score": { + "author_id": { "anyOf": [ { - "type": "integer" + "type": "string", + "format": "uuid" }, { "type": "null" } ], - "title": "Overall Score" + "title": "Author Id" }, - "overview": { - "$ref": "#/components/schemas/Overview" + "from": { + "type": "string", + "enum": [ + "player", + "coach" + ], + "title": "From" }, - "groups": { - "items": { - "$ref": "#/components/schemas/GroupReport" - }, - "title": "Groups", - "type": "array" + "at": { + "type": "string", + "format": "date-time", + "title": "At" }, - "focus_area": { + "kind": { + "type": "string", + "const": "voice", + "title": "Kind", + "default": "voice" + }, + "seconds": { + "type": "number", + "title": "Seconds" + }, + "audio": { "anyOf": [ { - "$ref": "#/components/schemas/FocusArea" + "$ref": "#/components/schemas/MediaRef" }, { "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" } }, + "type": "object", "required": [ - "schema_version", - "analysis_id", - "analysis_revision", - "overall_score", - "overview", - "groups", - "focus_area", - "measurements", - "data_quality", - "meta" + "id", + "author_id", + "from", + "at", + "seconds", + "audio" ], - "title": "SwingReport", - "type": "object" + "title": "VoiceMessageOut" }, - "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, + "WebhookAck": { + "properties": {}, "type": "object", - "required": [ - "name", - "coach_name", - "coaching" - ], - "title": "TeamCreate" + "title": "WebhookAck" }, - "TeamOut": { + "WeeklyIn": { "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" + "practice_days": { + "type": "integer", + "maximum": 7.0, + "minimum": 1.0, + "title": "Practice Days" }, - "created_at": { - "type": "string", - "format": "date-time", - "title": "Created At" + "drill_sets": { + "type": "integer", + "maximum": 30.0, + "minimum": 1.0, + "title": "Drill Sets" } }, + "additionalProperties": false, "type": "object", "required": [ - "id", - "code", - "name", - "coach_id", - "coach_name", - "coaching", - "created_at" + "practice_days", + "drill_sets" ], - "title": "TeamOut", - "description": "The team shape every endpoint returns (GET /me, team create, lookup and join)." + "title": "WeeklyIn" }, - "TeamResponse": { + "WeeklyOut": { "properties": { - "team": { - "$ref": "#/components/schemas/TeamOut" + "practice_days": { + "type": "integer", + "title": "Practice Days" + }, + "drill_sets": { + "type": "integer", + "title": "Drill Sets" } }, "type": "object", "required": [ - "team" + "practice_days", + "drill_sets" ], - "title": "TeamResponse" + "title": "WeeklyOut" }, - "TeamSummaryOut": { + "app__modules__academy_org__schemas__GroupOut": { "properties": { - "code": { + "id": { "type": "string", - "title": "Code" + "format": "uuid", + "title": "Id" }, "name": { "type": "string", "title": "Name" }, - "coach_name": { + "focus": { "type": "string", - "title": "Coach Name" + "enum": [ + "Hitting", + "Pitching", + "Both" + ], + "title": "Focus" }, - "coaching": { - "type": "string", - "title": "Coaching" + "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": [ - "code", + "id", "name", - "coach_name", - "coaching" + "focus", + "players", + "player_ids", + "coaches", + "coach_ids" ], - "title": "TeamSummaryOut", - "description": "What a player sees before joining: no ids." + "title": "GroupOut" }, - "TeamSummaryResponse": { + "app__modules__catalog__schemas__GroupOut": { "properties": { - "team": { - "$ref": "#/components/schemas/TeamSummaryOut" + "group": { + "type": "string", + "title": "Group" + }, + "display_name": { + "type": "string", + "title": "Display Name" } }, "type": "object", "required": [ - "team" + "group", + "display_name" ], - "title": "TeamSummaryResponse" + "title": "GroupOut" }, - "TokensOut": { + "app__modules__reporting__schemas__ExportOut": { "properties": { - "access_token": { + "id": { "type": "string", - "title": "Access Token" + "format": "uuid", + "title": "Id" }, - "refresh_token": { + "status": { "type": "string", - "title": "Refresh Token" + "title": "Status" }, - "expires_in": { - "type": "integer", - "title": "Expires In" + "url": { + "type": "string", + "title": "Url" + }, + "expires_at": { + "type": "string", + "format": "date-time", + "title": "Expires At" + }, + "filename": { + "type": "string", + "title": "Filename" } }, "type": "object", "required": [ - "access_token", - "refresh_token", - "expires_in" + "id", + "status", + "url", + "expires_at", + "filename" ], - "title": "TokensOut" + "title": "ExportOut" }, - "UploadIn": { + "app__modules__sessions__schemas__SessionIn": { "properties": { - "kind": { + "video_upload_id": { "type": "string", - "enum": [ - "video", - "thumbnail" + "format": "uuid", + "title": "Video Upload Id" + }, + "thumbnail_upload_id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "null" + } ], - "title": "Kind" + "title": "Thumbnail Upload Id" }, - "content_type": { + "mode": { "type": "string", - "maxLength": 40, - "minLength": 1, - "title": "Content Type" + "enum": [ + "h", + "p" + ], + "title": "Mode" }, - "size_bytes": { - "type": "integer", - "exclusiveMinimum": 0.0, - "title": "Size Bytes" + "is_self": { + "type": "boolean", + "title": "Is Self" }, - "duration_sec": { + "athlete": { "anyOf": [ { - "type": "number", - "exclusiveMinimum": 0.0 + "$ref": "#/components/schemas/AthleteIn" }, { "type": "null" } - ], + ] + }, + "duration_sec": { + "type": "number", + "exclusiveMinimum": 0.0, "title": "Duration Sec" + }, + "fps": { + "type": "integer", + "maximum": 240.0, + "minimum": 1.0, + "title": "Fps" + }, + "marks": { + "$ref": "#/components/schemas/MarksIn" } }, "additionalProperties": false, "type": "object", "required": [ - "kind", - "content_type", - "size_bytes" + "video_upload_id", + "mode", + "is_self", + "duration_sec", + "fps", + "marks" ], - "title": "UploadIn" + "title": "SessionIn" }, - "UploadOut": { + "app__modules__settings__schemas__ExportOut": { "properties": { - "upload_id": { + "id": { "type": "string", "format": "uuid", - "title": "Upload Id" + "title": "Id" }, - "url": { + "status": { "type": "string", - "title": "Url" - }, - "headers": { - "additionalProperties": { - "type": "string" - }, - "type": "object", - "title": "Headers" + "title": "Status" }, - "expires_at": { + "requested_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" + "title": "Requested At" + }, + "delivery": { + "type": "string", + "const": "account_email", + "title": "Delivery", + "default": "account_email" } }, "type": "object", "required": [ - "user" + "id", + "status", + "requested_at" ], - "title": "UserBody" + "title": "ExportOut" }, - "UserOut": { + "app__modules__threads__schemas__SessionIn": { "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": { + "kind": { "type": "string", - "title": "Unit" - }, - "private_videos": { - "type": "boolean", - "title": "Private Videos" - }, - "team_code": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Team Code" + "const": "session", + "title": "Kind" }, - "created_at": { + "session_id": { "type": "string", - "format": "date-time", - "title": "Created At" + "format": "uuid", + "title": "Session Id" } }, + "additionalProperties": false, "type": "object", "required": [ - "id", - "email", - "role", - "focus", - "profile", - "unit", - "private_videos", - "team_code", - "created_at" + "kind", + "session_id" ], - "title": "UserOut" - }, - "WebhookAck": { - "properties": {}, - "type": "object", - "title": "WebhookAck" + "title": "SessionIn" }, "ErrorResponse": { "type": "object", @@ -5497,861 +14470,510 @@ "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" - } - }, - "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" - ], - "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" - ], - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "title": "Event Id" - }, - "start_event_id": { - "anyOf": [ - { - "enum": [ - "stride_start", - "front_foot_down", - "contact" - ], - "type": "string" - }, - { - "type": "null" - } - ], - "default": null, - "title": "Start Event Id" - }, - "end_event_id": { - "anyOf": [ - { - "enum": [ - "stride_start", - "front_foot_down", - "contact" - ], - "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" - ], - "title": "Reference", - "type": "string" - }, - "status": { - "enum": [ - "available", - "limited", - "unavailable" - ], - "title": "Status", + "const": "reference_interval", + "title": "Kind", "type": "string" }, - "confidence": { + "lower": { "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" - ], - "type": "string" - }, - "title": "Reasons", - "type": "array" + "title": "Lower" }, - "benchmark": { + "upper": { "anyOf": [ { - "$ref": "#/components/schemas/ApprovedBenchmark" + "type": "number" }, { "type": "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": { - "const": "1.0", - "title": "Schema Version", - "type": "string" + ], + "title": "Upper" }, - "analysis_id": { - "minLength": 1, - "pattern": "\\S", - "title": "Analysis Id", + "unit": { + "enum": [ + "deg", + "cm" + ], + "title": "Unit", "type": "string" }, - "analysis_revision": { - "minimum": 1, - "title": "Analysis Revision", - "type": "integer" - }, - "swing_id": { + "source_reference": { "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": { - "const": "1.0", - "title": "Measurement Definitions Version", + "title": "Source Reference", "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" + "benchmark_id", + "version", + "kind", + "lower", + "upper", + "unit", + "source_reference" ], - "title": "SwingAnalysisPayload", + "title": "ApprovedBenchmark", "type": "object" }, - "SwingContext": { + "Athlete": { "additionalProperties": false, "properties": { - "sport": { - "const": "baseball", - "title": "Sport", + "athlete_id": { + "minLength": 1, + "pattern": "\\S", + "title": "Athlete Id", "type": "string" }, - "practice_type": { - "enum": [ - "tee", - "front_toss", - "side_toss", - "pitching_machine", - "live_pitching", - "game", - "dry_swing", - "unknown" - ], - "title": "Practice Type", - "type": "string" - } - }, - "required": [ - "sport", - "practice_type" - ], - "title": "SwingContext", - "type": "object" - }, - "SwingEvent": { - "additionalProperties": false, - "properties": { - "status": { - "enum": [ - "available", - "limited", - "unavailable" + "batting_hand": { + "anyOf": [ + { + "enum": [ + "left", + "right" + ], + "type": "string" + }, + { + "type": "null" + } ], - "title": "Status", - "type": "string" + "title": "Batting Hand" }, - "video_time_s": { + "lead_foot": { "anyOf": [ { - "type": "number" + "enum": [ + "left", + "right" + ], + "type": "string" }, { "type": "null" } ], - "title": "Video Time S" + "title": "Lead Foot" }, - "capture_time_s": { + "age_years": { "anyOf": [ { - "type": "number" + "minimum": 0, + "type": "integer" }, { "type": "null" } ], - "title": "Capture Time S" + "title": "Age Years" }, - "source": { + "height_cm": { "anyOf": [ { - "enum": [ - "manual_review", - "pose_estimated", - "bat_ball_detector" - ], - "type": "string" + "exclusiveMinimum": 0, + "type": "number" }, { "type": "null" } ], - "title": "Source" + "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" }, - "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" - ], - "type": "string" - }, - "title": "Reasons", - "type": "array" + "front_foot_down": { + "$ref": "#/components/schemas/SwingEvent" + }, + "contact": { + "$ref": "#/components/schemas/SwingEvent" } }, "required": [ - "status", - "video_time_s", - "capture_time_s", - "source" + "stride_start", + "front_foot_down", + "contact" ], - "title": "SwingEvent", + "title": "Events", "type": "object" }, - "AuditLogSummary": { + "Measurement": { + "additionalProperties": false, "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" + "metric_id": { + "enum": [ + "hip_shoulder_separation_at_foot_down", + "stride_relative_length", + "hip_shoulder_separation_at_contact" + ], + "title": "Metric Id", + "type": "string" }, - "path": { - "type": "string", - "title": "Path" + "group": { + "enum": [ + "balance_load", + "stride", + "power_move", + "contact_follow_through" + ], + "title": "Group", + "type": "string" }, - "route": { + "value": { "anyOf": [ { - "type": "string" + "type": "number" }, { "type": "null" } ], - "title": "Route" - }, - "status_code": { - "type": "integer", - "title": "Status Code" + "title": "Value" }, - "duration_ms": { - "type": "number", - "title": "Duration Ms" + "unit": { + "enum": [ + "deg", + "cm" + ], + "title": "Unit", + "type": "string" }, - "account_id": { + "event_id": { "anyOf": [ { - "type": "string", - "format": "uuid" + "enum": [ + "stride_start", + "front_foot_down", + "contact" + ], + "type": "string" }, { "type": "null" } ], - "title": "Account Id" + "default": null, + "title": "Event Id" }, - "session_id": { + "start_event_id": { "anyOf": [ { - "type": "string", - "format": "uuid" + "enum": [ + "stride_start", + "front_foot_down", + "contact" + ], + "type": "string" }, { "type": "null" } ], - "title": "Session Id" + "default": null, + "title": "Start Event Id" }, - "analysis_id": { + "end_event_id": { "anyOf": [ { + "enum": [ + "stride_start", + "front_foot_down", + "contact" + ], "type": "string" }, { "type": "null" } ], - "title": "Analysis Id" + "default": null, + "title": "End Event Id" }, - "analysis_revision": { - "anyOf": [ - { - "type": "integer" - }, - { - "type": "null" - } + "reference": { + "enum": [ + "signed_horizontal_shoulder_minus_hip_heading", + "lead_ankle_displacement_relative_to_rear_ankle" ], - "title": "Analysis Revision" + "title": "Reference", + "type": "string" }, - "error_code": { + "status": { + "enum": [ + "available", + "limited", + "unavailable" + ], + "title": "Status", + "type": "string" + }, + "confidence": { "anyOf": [ { - "type": "string" + "maximum": 1, + "minimum": 0, + "type": "number" }, { "type": "null" } ], - "title": "Error Code" + "title": "Confidence" }, - "exception_type": { + "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" + ], + "type": "string" + }, + "title": "Reasons", + "type": "array" + }, + "benchmark": { "anyOf": [ { - "type": "string" + "$ref": "#/components/schemas/ApprovedBenchmark" }, { "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" + "metric_id", + "group", + "value", + "unit", + "reference", + "status", + "confidence", + "uses_interpolated_input", + "reasons", + "benchmark" ], - "title": "AuditLogSummary" + "title": "Measurement", + "type": "object" }, - "AuditLogDetail": { + "SwingAnalysisPayload": { + "additionalProperties": false, "properties": { - "id": { - "type": "string", - "format": "uuid", - "title": "Id" - }, - "created_at": { - "type": "string", - "format": "date-time", - "title": "Created At" + "schema_version": { + "const": "1.0", + "title": "Schema Version", + "type": "string" }, - "started_at": { - "type": "string", - "format": "date-time", - "title": "Started At" + "analysis_id": { + "minLength": 1, + "pattern": "\\S", + "title": "Analysis Id", + "type": "string" }, - "request_id": { - "type": "string", - "title": "Request Id" + "analysis_revision": { + "minimum": 1, + "title": "Analysis Revision", + "type": "integer" }, - "method": { - "type": "string", - "title": "Method" + "swing_id": { + "minLength": 1, + "pattern": "\\S", + "title": "Swing Id", + "type": "string" }, - "path": { - "type": "string", - "title": "Path" + "status": { + "const": "completed", + "title": "Status", + "type": "string" }, - "route": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Route" + "athlete": { + "$ref": "#/components/schemas/Athlete" }, - "status_code": { - "type": "integer", - "title": "Status Code" + "context": { + "$ref": "#/components/schemas/SwingContext" }, - "duration_ms": { - "type": "number", - "title": "Duration Ms" + "measurement_definitions_version": { + "const": "1.0", + "title": "Measurement Definitions Version", + "type": "string" }, - "account_id": { - "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } - ], - "title": "Account Id" + "events": { + "$ref": "#/components/schemas/Events" }, - "session_id": { - "anyOf": [ - { - "type": "string", - "format": "uuid" - }, - { - "type": "null" - } - ], - "title": "Session Id" + "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" }, - "analysis_id": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } + "practice_type": { + "enum": [ + "tee", + "front_toss", + "side_toss", + "pitching_machine", + "live_pitching", + "game", + "dry_swing", + "unknown" ], - "title": "Analysis Id" + "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" }, - "analysis_revision": { + "video_time_s": { "anyOf": [ { - "type": "integer" + "type": "number" }, { "type": "null" } ], - "title": "Analysis Revision" + "title": "Video Time S" }, - "error_code": { + "capture_time_s": { "anyOf": [ { - "type": "string" + "type": "number" }, { "type": "null" } ], - "title": "Error Code" + "title": "Capture Time S" }, - "exception_type": { + "source": { "anyOf": [ { + "enum": [ + "manual_review", + "pose_estimated", + "bat_ball_detector" + ], "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" + "title": "Source" }, - "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" - }, - "Page_AuditLogSummary_": { - "properties": { - "items": { + "reasons": { "items": { - "$ref": "#/components/schemas/AuditLogSummary" + "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" + ], + "type": "string" }, - "type": "array", - "title": "Items" - }, - "next_cursor": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "title": "Next Cursor" + "title": "Reasons", + "type": "array" } }, - "type": "object", "required": [ - "items" + "status", + "video_time_s", + "capture_time_s", + "source" ], - "title": "Page[AuditLogSummary]" + "title": "SwingEvent", + "type": "object" } } } -} +} \ No newline at end of file