{"openapi":"3.1.0","info":{"title":"Koralyze API","version":"0.1.0"},"paths":{"/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/me":{"get":{"tags":["auth"],"summary":"Get Me","operationId":"get_me_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeRead"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/auth/password":{"post":{"tags":["auth"],"summary":"Change Password","operationId":"change_password_auth_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordChange"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/jobs/claim":{"post":{"tags":["jobs"],"summary":"Claim Job","description":"Atomically claim the oldest queued job for this agent.\nReturns the job dict on success; 204 if no jobs are queued.\n\nwith_for_update(skip_locked=True) keeps two agents from claiming the same\njob: the second skips a row the first has locked.\n\nA match's run goes only to an agent that says it can cut and join videos\n(`?joins=true`): one that cannot would fail it. `kind` in the answer is\n\"match\" for a run and \"video\" for any other job.","operationId":"claim_job_jobs_claim_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"joins","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Joins"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/status":{"post":{"tags":["jobs"],"summary":"Agent Update Status","description":"VideoAgent calls this to push status updates to the backend DB.","operationId":"agent_update_status_jobs__job_id__status_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStatusUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["jobs"],"summary":"Get Job Status","operationId":"get_job_status_jobs__job_id__status_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/results":{"post":{"tags":["jobs"],"summary":"Upload Job Results","description":"VideoAgent uploads positions.csv after post-processing is complete.\n\nStreamed into storage, never read whole: a full match's tracking can be hundreds of MB.","operationId":"upload_job_results_jobs__job_id__results_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_job_results_jobs__job_id__results_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["jobs"],"summary":"Get Job Results","description":"The agent's positions.csv: a redirect to a signed link, valid for an hour.","operationId":"get_job_results_jobs__job_id__results_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/download":{"get":{"tags":["jobs"],"summary":"Download Job Video","description":"The video, for the VideoAgent: a redirect to a signed link, wherever the agent runs.\n\nIts HTTP library drops the agent's token when the link is on another host, and the link needs none.","operationId":"download_job_video_jobs__job_id__download_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/":{"get":{"tags":["jobs"],"summary":"List Jobs","operationId":"list_jobs_jobs__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/JobListItem"},"type":"array","title":"Response List Jobs Jobs  Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/jobs/{job_id}/files":{"get":{"tags":["jobs"],"summary":"Get Job Files","description":"What a job has to load: its data files and, when there is one, its video.","operationId":"get_job_files_jobs__job_id__files_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobFilesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/match":{"put":{"tags":["jobs"],"summary":"Set Match","description":"Link a job to a match, or move it to another one. A job always belongs to a match: null is\nrefused. A match's run stays with its match: without its link it would be a job no agent can\nprocess, and its match's credit paid for it.","operationId":"set_match_jobs__job_id__match_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobMatchUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobListItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/name":{"put":{"tags":["jobs"],"summary":"Rename Job","description":"Change the job's clip name. Only the name shown changes: the agent never reads it.","operationId":"rename_job_jobs__job_id__name_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRename"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobListItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/files/{kind}/link":{"get":{"tags":["jobs"],"summary":"Get Job File Link","description":"A link to one of the job's data files, valid for an hour.\n\nThe browser fetches the file from it without its login: a fetch that followed a redirect\nto storage would carry the login header there.","operationId":"get_job_file_link_jobs__job_id__files__kind__link_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobFileLink"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/video":{"get":{"tags":["jobs"],"summary":"Get Job Video","description":"A job's video: a redirect to a signed link, valid for 12 hours, where the player seeks\nby byte ranges. Authorised by a video token in the query string, because a <video> element\ncannot send an Authorization header.","operationId":"get_job_video_jobs__job_id__video_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}":{"delete":{"tags":["jobs"],"summary":"Delete Job","operationId":"delete_job_jobs__job_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/uploads":{"post":{"tags":["jobs"],"summary":"Start Upload","description":"Step 1: check the job and its files, create the job as `uploading`, and open a multipart\nupload per file. Answers the piece size and the number of pieces of each file.","operationId":"start_upload_jobs_uploads_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadStart"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadStarted"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/jobs/{job_id}/uploads/parts":{"post":{"tags":["jobs"],"summary":"Piece Links","description":"Step 2: signed links for pieces of one file, at most 100 at a time, valid for 6 hours.\nThe browser PUTs each piece to its link and keeps the ETag storage answers with.","operationId":"piece_links_jobs__job_id__uploads_parts_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartLinks"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/uploads/complete":{"post":{"tags":["jobs"],"summary":"Complete Upload","description":"Step 3: join each file's pieces, check that each has the size announced, and hand the job\non: `finished` for CSV files. A video for the agent whose upload started before videos moved\nto matches is still `queued`.","operationId":"complete_upload_jobs__job_id__uploads_complete_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadComplete"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadDone"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/plan":{"get":{"tags":["match videos"],"summary":"Run Plan","description":"The run's plan: each video once, with a fresh signed link valid for 6 hours, the stretches\nto cut from them in match order, and the video to make.","operationId":"run_plan_jobs__job_id__plan_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/video/start":{"post":{"tags":["match videos"],"summary":"Start Joined Video","description":"Step 1: open the upload of the joined video. An upload left open by an earlier try is dropped.","operationId":"start_joined_video_jobs__job_id__video_start_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JoinedStart"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JoinedStarted"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/video/parts":{"post":{"tags":["match videos"],"summary":"Joined Video Piece Links","description":"Step 2: signed links for pieces of the joined video, at most 100 at a time.","operationId":"joined_video_piece_links_jobs__job_id__video_parts_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PiecesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartLinks"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}/video/complete":{"post":{"tags":["match videos"],"summary":"Complete Joined Video","description":"Step 3: join the pieces into `match.mp4` and check its size.","operationId":"complete_joined_video_jobs__job_id__video_complete_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PiecesSent"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/token":{"post":{"tags":["agents"],"summary":"Get Agent Token","description":"Exchange client_id + client_secret for a short-lived agent bearer token.","operationId":"get_agent_token_agents_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/":{"get":{"tags":["agents"],"summary":"List Connectors","operationId":"list_connectors_agents__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ConnectorListItem"},"type":"array","title":"Response List Connectors Agents  Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["agents"],"summary":"Create Connector","description":"Create a new agent connector. The client_secret is returned once and never stored.","operationId":"create_connector_agents__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConnectorRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/agents/{client_id}":{"delete":{"tags":["agents"],"summary":"Revoke Connector","operationId":"revoke_connector_agents__client_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organisations/":{"get":{"tags":["organisations"],"summary":"List Organisations","description":"Koralyze's own first, then the others by name.","operationId":"list_organisations_organisations__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/app__organisations__schemas__OrganisationRead"},"type":"array","title":"Response List Organisations Organisations  Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["organisations"],"summary":"Create Organisation","description":"A new organisation starts on a trial.","operationId":"create_organisation_organisations__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganisationCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__organisations__schemas__OrganisationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/organisations/{organisation_id}":{"put":{"tags":["organisations"],"summary":"Update Organisation","operationId":"update_organisation_organisations__organisation_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"organisation_id","in":"path","required":true,"schema":{"type":"integer","title":"Organisation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganisationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__organisations__schemas__OrganisationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organisations/{organisation_id}/users":{"get":{"tags":["organisations"],"summary":"List Logins","operationId":"list_logins_organisations__organisation_id__users_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"organisation_id","in":"path","required":true,"schema":{"type":"integer","title":"Organisation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LoginRead"},"title":"Response List Logins Organisations  Organisation Id  Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["organisations"],"summary":"Create Login","description":"A login with a temporary password, which the person can change themselves.","operationId":"create_login_organisations__organisation_id__users_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"organisation_id","in":"path","required":true,"schema":{"type":"integer","title":"Organisation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organisations/{organisation_id}/users/{user_id}":{"put":{"tags":["organisations"],"summary":"Update Login","description":"Deactivate or reactivate, reset the password, make or unmake a platform owner.","operationId":"update_login_organisations__organisation_id__users__user_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"organisation_id","in":"path","required":true,"schema":{"type":"integer","title":"Organisation Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/teams/":{"get":{"tags":["teams"],"summary":"List Teams","operationId":"list_teams_teams__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TeamRead"},"type":"array","title":"Response List Teams Teams  Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["teams"],"summary":"Create Team","operationId":"create_team_teams__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/teams/{team_id}":{"get":{"tags":["teams"],"summary":"Get Team","operationId":"get_team_teams__team_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamWithRoster"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["teams"],"summary":"Update Team","operationId":"update_team_teams__team_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["teams"],"summary":"Delete Team","operationId":"delete_team_teams__team_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/teams/{team_id}/roster":{"get":{"tags":["teams"],"summary":"List Roster","description":"The squad on a date. scope=all also lists former and upcoming members.","operationId":"list_roster_teams__team_id__roster_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"As Of"}},{"name":"scope","in":"query","required":false,"schema":{"enum":["current","all"],"type":"string","default":"current","title":"Scope"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SquadEntry"},"title":"Response List Roster Teams  Team Id  Roster Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/teams/{team_id}/players":{"post":{"tags":["teams"],"summary":"Add Member","description":"Add a new person, or an existing one (player_id), to the squad.","operationId":"add_member_teams__team_id__players_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquadEntry"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/players/":{"get":{"tags":["players"],"summary":"Search Players","description":"People in the tenant whose name contains q, with their teams.","operationId":"search_players_players__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PlayerSearchResult"},"title":"Response Search Players Players  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/players/{player_id}":{"put":{"tags":["players"],"summary":"Rename Player","operationId":"rename_player_players__player_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"player_id","in":"path","required":true,"schema":{"type":"integer","title":"Player Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlayerRename"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlayerRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/memberships/{membership_id}":{"put":{"tags":["memberships"],"summary":"Update Membership","description":"Change only the fields present in the body. A field sent as null is cleared.","operationId":"update_membership_memberships__membership_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"membership_id","in":"path","required":true,"schema":{"type":"integer","title":"Membership Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SquadEntry"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["memberships"],"summary":"Delete Membership","description":"For entries added by mistake. To record that a player left, set end_date instead.","operationId":"delete_membership_memberships__membership_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"membership_id","in":"path","required":true,"schema":{"type":"integer","title":"Membership Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/matches/":{"get":{"tags":["matches"],"summary":"List Matches","operationId":"list_matches_matches__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/MatchRead"},"type":"array","title":"Response List Matches Matches  Get"}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["matches"],"summary":"Create Match","operationId":"create_match_matches__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/matches/{match_id}":{"get":{"tags":["matches"],"summary":"Get Match","operationId":"get_match_matches__match_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["matches"],"summary":"Update Match","description":"Change only the fields present in the body. A field sent as null is cleared.","operationId":"update_match_matches__match_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["matches"],"summary":"Delete Match","operationId":"delete_match_matches__match_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/matches/{match_id}/lineup":{"get":{"tags":["lineups"],"summary":"Get Lineup","description":"Both sides of a match: who played, what changed, and who of each team can still be picked.","operationId":"get_lineup_matches__match_id__lineup_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}},{"name":"as_of","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"As Of"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchLineup"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["lineups"],"summary":"Add To Lineup","description":"Add a starter: a new person, or an existing one (player_id), optionally in a slot.","operationId":"add_to_lineup_matches__match_id__lineup_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineupAdd"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineupEntryRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/matches/{match_id}/lineup/{team_id}/starters":{"post":{"tags":["lineups"],"summary":"Add Starters","description":"Add several of the squad as starters, all or none: the side the page guesses from the squad.\nEach starts from their squad number; the position sent is the place they are put in.","operationId":"add_starters_matches__match_id__lineup__team_id__starters_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartersAdd"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LineupEntryRead"},"title":"Response Add Starters Matches  Match Id  Lineup  Team Id  Starters Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/matches/{match_id}/lineup/{team_id}":{"put":{"tags":["lineups"],"summary":"Set Formation","description":"Set one team's formation for the match, or clear it with null. `places` moves the side's\nstarters to their places in the new shape, in the same change.","operationId":"set_formation_matches__match_id__lineup__team_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}},{"name":"team_id","in":"path","required":true,"schema":{"type":"integer","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/matches/{match_id}/substitutions":{"post":{"tags":["lineups"],"summary":"Add Substitution","description":"A player off and a substitute on, at a minute. The substitute is added to the lineup here.","operationId":"add_substitution_matches__match_id__substitutions_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubstitutionAdd"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineupChangeRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/matches/{match_id}/position-changes":{"post":{"tags":["lineups"],"summary":"Add Position Change","description":"Players on the pitch taking other places at a minute, with nobody coming on or off.","operationId":"add_position_change_matches__match_id__position_changes_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PositionChangeAdd"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineupChangeRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lineup-entries/{entry_id}":{"put":{"tags":["lineups"],"summary":"Update Entry","description":"Change only the fields present in the body. null clears the number, the position or the slot.\n\nA starter sent to a slot another starter holds swaps places with them: each takes the\nother's slot and position, and then the position sent, if any, applies.","operationId":"update_entry_lineup_entries__entry_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineupEntryUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineupEntryRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["lineups"],"summary":"Remove Entry","description":"Take a player out of the lineup. The squad is not touched. Taking out a substitute undoes\nthe substitution that brought them on; a player taken off for one cannot be taken out first.","operationId":"remove_entry_lineup_entries__entry_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"entry_id","in":"path","required":true,"schema":{"type":"integer","title":"Entry Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/lineup-changes/{change_id}":{"delete":{"tags":["lineups"],"summary":"Remove Change","description":"Undo a change. Undoing a substitution takes the substitute out of the lineup.","operationId":"remove_change_lineup_changes__change_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"integer","title":"Change Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/matches/{match_id}/jobs":{"get":{"tags":["jobs"],"summary":"List Match Jobs","description":"The caller's own jobs linked to this match, newest first.","operationId":"list_match_jobs_matches__match_id__jobs_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/JobListItem"},"title":"Response List Match Jobs Matches  Match Id  Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/matches/{match_id}/videos":{"get":{"tags":["match videos"],"summary":"List Videos","description":"The videos, in the order they are joined, each with its marks; the period the footage begins\nin; the latest run; what a press of \"Process match\" may do next; and the match's credit. Open to\neveryone in the organisation.","operationId":"list_videos_matches__match_id__videos_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchVideosRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["match videos"],"summary":"Start Video","description":"Step 1: check the video, record it as `uploading` after the match's others, and open its\nmultipart upload. Answers the piece size and the number of pieces. With no marks, all of it is\nplay.","operationId":"start_video_matches__match_id__videos_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoStart"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoStarted"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/matches/{match_id}/videos/{video_id}/parts":{"post":{"tags":["match videos"],"summary":"Video Piece Links","description":"Step 2: signed links for pieces of the video, at most 100 at a time, valid for 6 hours.","operationId":"video_piece_links_matches__match_id__videos__video_id__parts_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}},{"name":"video_id","in":"path","required":true,"schema":{"type":"integer","title":"Video Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PiecesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartLinks"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/matches/{match_id}/videos/{video_id}/complete":{"post":{"tags":["match videos"],"summary":"Complete Video","description":"Step 3: join the pieces, check the size, and the video is `ready`.","operationId":"complete_video_matches__match_id__videos__video_id__complete_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}},{"name":"video_id","in":"path","required":true,"schema":{"type":"integer","title":"Video Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PiecesSent"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/matches/{match_id}/videos/{video_id}/link":{"get":{"tags":["match videos"],"summary":"Video Link","description":"A signed link to play the video, valid for 12 hours: the page marks it from there after a\nreload, or on another computer.","operationId":"video_link_matches__match_id__videos__video_id__link_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}},{"name":"video_id","in":"path","required":true,"schema":{"type":"integer","title":"Video Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoLink"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/matches/{match_id}/videos/order":{"put":{"tags":["match videos"],"summary":"Order Videos","description":"Set the order the videos are joined in: every one of the match's videos, once.","operationId":"order_videos_matches__match_id__videos_order_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoOrder"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"integer"},"title":"Response Order Videos Matches  Match Id  Videos Order Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/matches/{match_id}/videos/{video_id}/marks":{"put":{"tags":["match videos"],"summary":"Save Marks","description":"Replace the video's marks, checked with the match's other videos. Allowed while it uploads.\nA run already made keeps its own copy of the play it was made with.","operationId":"save_marks_matches__match_id__videos__video_id__marks_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}},{"name":"video_id","in":"path","required":true,"schema":{"type":"integer","title":"Video Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarksIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/matches/{match_id}/videos/{video_id}/duration":{"put":{"tags":["match videos"],"summary":"Set Duration","description":"The video's length, as the browser playing it read it: for a video added where it could not\nbe read, or one stored before lengths were.","operationId":"set_duration_matches__match_id__videos__video_id__duration_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}},{"name":"video_id","in":"path","required":true,"schema":{"type":"integer","title":"Video Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DurationIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VideoRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/matches/{match_id}/first-period":{"put":{"tags":["match videos"],"summary":"Set First Period","description":"The period the footage begins in: the 1st half unless it starts later, such as a video of\nthe 2nd half alone.","operationId":"set_first_period_matches__match_id__first_period_put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirstPeriod"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirstPeriod"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/matches/{match_id}/videos/{video_id}":{"delete":{"tags":["match videos"],"summary":"Delete Video","description":"Remove the video, its marks and its file, and abandon an unfinished upload. Refused while\na run of the match is queued or being processed: the agent may still be fetching it.","operationId":"delete_video_matches__match_id__videos__video_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}},{"name":"video_id","in":"path","required":true,"schema":{"type":"integer","title":"Video Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/matches/{match_id}/process":{"post":{"tags":["match videos"],"summary":"Process Match","description":"Check the match, then queue one run of all its marked videos. The organisation's row and\nthe match's stay locked from the checks to the commit: two presses at once make one run, and\ntwo of the organisation's matches pressed at once cannot both spend its last credit.","operationId":"process_match_matches__match_id__process_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/catalog/status":{"get":{"tags":["catalog"],"summary":"Catalog Status","description":"Whether the person asking can find matches online, and what is left of the key they would\nuse. Makes no request to the provider.","operationId":"catalog_status_catalog_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogStatus"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/catalog/teams":{"get":{"tags":["catalog"],"summary":"Search Teams","description":"Teams of the provider whose name contains every word of the text that has three characters or more.","operationId":"search_teams_catalog_teams_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","maxLength":100,"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CatalogTeamRead"},"title":"Response Search Teams Catalog Teams Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/catalog/teams/{team_id}/seasons":{"get":{"tags":["catalog"],"summary":"Team Seasons","description":"The seasons the provider has for a team, newest first. A season is named by the year it starts in.","operationId":"team_seasons_catalog_teams__team_id__seasons_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","pattern":"^\\d{1,12}$","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"integer"},"title":"Response Team Seasons Catalog Teams  Team Id  Seasons Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/catalog/fixtures":{"get":{"tags":["catalog"],"summary":"List Fixtures","description":"Every meeting of two teams, newest first; or one team's matches in a season, in date order.","operationId":"list_fixtures_catalog_fixtures_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"team","in":"query","required":true,"schema":{"type":"string","pattern":"^\\d{1,12}$","title":"Team"}},{"name":"opponent","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^\\d{1,12}$"},{"type":"null"}],"title":"Opponent"}},{"name":"season","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":2200,"minimum":1800},{"type":"null"}],"title":"Season"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CatalogFixtureRead"},"title":"Response List Fixtures Catalog Fixtures Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/catalog/fixtures/{fixture_id}":{"get":{"tags":["catalog"],"summary":"Fixture Preview","description":"One fixture with both lineups, for the confirmation before an import.","operationId":"fixture_preview_catalog_fixtures__fixture_id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"fixture_id","in":"path","required":true,"schema":{"type":"string","pattern":"^\\d{1,12}$","title":"Fixture Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FixturePreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/catalog/keys":{"get":{"tags":["catalog"],"summary":"List Keys","description":"A row per organisation, Koralyze's own first, then the others by name.","operationId":"list_keys_catalog_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeysList"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/catalog/keys/{organisation_id}":{"put":{"tags":["catalog"],"summary":"Set Key","description":"Store this key for the organisation, in place of the one there, once the provider accepts it.","operationId":"set_key_catalog_keys__organisation_id__put","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"organisation_id","in":"path","required":true,"schema":{"type":"integer","title":"Organisation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRow"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["catalog"],"summary":"Delete Key","description":"Forget the organisation's stored key. Koralyze's own then falls back to the settings' key.","operationId":"delete_key_catalog_keys__organisation_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"organisation_id","in":"path","required":true,"schema":{"type":"integer","title":"Organisation Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/matches/import":{"post":{"tags":["catalog"],"summary":"Import Match","description":"Import a provider's match with its teams, players and lineups.\n\n201 when the match was created, 200 when the fixture had already been imported here.","operationId":"import_match_matches_import_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/credits":{"get":{"tags":["credits"],"summary":"My Credits","description":"The organisation's credits, shared by everyone in it.","operationId":"my_credits_credits_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditSummary"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/matches/{match_id}/credit":{"get":{"tags":["credits"],"summary":"Match Credit","operationId":"match_credit_matches__match_id__credit_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"match_id","in":"path","required":true,"schema":{"type":"integer","title":"Match Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchCredit"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organisations/{organisation_id}/credits":{"get":{"tags":["credits"],"summary":"Organisation Credits","operationId":"organisation_credits_organisations__organisation_id__credits_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"organisation_id","in":"path","required":true,"schema":{"type":"integer","title":"Organisation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganisationCredits"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organisations/{organisation_id}/credits/grants":{"post":{"tags":["credits"],"summary":"Add Grant","description":"Credits for an organisation: a plan, a quarter's unlock, a Match Pass, a pilot or an adjustment.","operationId":"add_grant_organisations__organisation_id__credits_grants_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"organisation_id","in":"path","required":true,"schema":{"type":"integer","title":"Organisation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganisationCredits"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organisations/{organisation_id}/credits/grants/{grant_id}":{"delete":{"tags":["credits"],"summary":"Remove Grant","description":"Take back a grant given by mistake. Only one no match has spent from, refunded ones aside.","operationId":"remove_grant_organisations__organisation_id__credits_grants__grant_id__delete","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"organisation_id","in":"path","required":true,"schema":{"type":"integer","title":"Organisation Id"}},{"name":"grant_id","in":"path","required":true,"schema":{"type":"integer","title":"Grant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganisationCredits"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/organisations/{organisation_id}/credits/spends/{spend_id}/refund":{"post":{"tags":["credits"],"summary":"Refund Spend","description":"Give a match's credit back, for example when its processing failed. The match is then\nunspent: its next press of \"Process match\" spends a credit again.","operationId":"refund_spend_organisations__organisation_id__credits_spends__spend_id__refund_post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"organisation_id","in":"path","required":true,"schema":{"type":"integer","title":"Organisation Id"}},{"name":"spend_id","in":"path","required":true,"schema":{"type":"integer","title":"Spend Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganisationCredits"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AgentStatusUpdate":{"properties":{"status":{"type":"string","title":"Status"},"progress":{"type":"number","title":"Progress","default":0},"fps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Fps"},"resolution":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Resolution"},"frames_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Frames Count"}},"type":"object","required":["status"],"title":"AgentStatusUpdate"},"AgentTokenRequest":{"properties":{"client_id":{"type":"string","title":"Client Id"},"client_secret":{"type":"string","title":"Client Secret"}},"type":"object","required":["client_id","client_secret"],"title":"AgentTokenRequest"},"AgentTokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"},"expires_in":{"type":"integer","title":"Expires In"}},"type":"object","required":["access_token","expires_in"],"title":"AgentTokenResponse"},"Body_upload_job_results_jobs__job_id__results_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_job_results_jobs__job_id__results_post"},"CatalogFixtureRead":{"properties":{"id":{"type":"string","title":"Id"},"kickoff_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kickoff At"},"status":{"type":"string","title":"Status"},"season":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Season"},"competition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Competition"},"round":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Round"},"venue":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue"},"home":{"$ref":"#/components/schemas/FixtureTeamRead"},"away":{"$ref":"#/components/schemas/FixtureTeamRead"},"home_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Home Score"},"away_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Away Score"},"imported_match_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Imported Match Id"}},"type":"object","required":["id","status","home","away"],"title":"CatalogFixtureRead"},"CatalogLineupRead":{"properties":{"team":{"$ref":"#/components/schemas/FixtureTeamRead"},"formation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Formation"},"starters":{"items":{"$ref":"#/components/schemas/CatalogPlayerRead"},"type":"array","title":"Starters","default":[]},"bench":{"items":{"$ref":"#/components/schemas/CatalogPlayerRead"},"type":"array","title":"Bench","default":[]}},"type":"object","required":["team"],"title":"CatalogLineupRead"},"CatalogPlayerRead":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"name":{"type":"string","title":"Name"},"number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number"},"position":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position"}},"type":"object","required":["name"],"title":"CatalogPlayerRead"},"CatalogStatus":{"properties":{"available":{"type":"boolean","title":"Available"},"requests_left":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requests Left"},"requests_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requests Limit"}},"type":"object","required":["available"],"title":"CatalogStatus","description":"Whether the person asking has a key to search with, and what the provider last said about\nthat key's allowance for the day."},"CatalogTeamRead":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"national":{"type":"boolean","title":"National","default":false}},"type":"object","required":["id","name"],"title":"CatalogTeamRead"},"ConnectorCreateResponse":{"properties":{"client_id":{"type":"string","title":"Client Id"},"client_secret":{"type":"string","title":"Client Secret"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["client_id","client_secret","name","created_at"],"title":"ConnectorCreateResponse"},"ConnectorListItem":{"properties":{"client_id":{"type":"string","title":"Client Id"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["client_id","name","created_at","last_seen_at","is_active"],"title":"ConnectorListItem"},"CreateConnectorRequest":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"CreateConnectorRequest"},"CreditRead":{"properties":{"spent":{"type":"boolean","title":"Spent"},"available":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Available"},"refusal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refusal"}},"type":"object","required":["spent"],"title":"CreditRead","description":"The match's credit, as a press of \"Process match\" finds it."},"CreditSummary":{"properties":{"unlimited":{"type":"boolean","title":"Unlimited"},"available":{"type":"integer","title":"Available"},"monthly_cap":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Monthly Cap"},"used_this_month":{"type":"integer","title":"Used This Month"},"next_expiry":{"anyOf":[{"$ref":"#/components/schemas/Expiry"},{"type":"null"}]}},"type":"object","required":["unlimited","available","used_this_month"],"title":"CreditSummary","description":"What an organisation has to spend, as everyone in it sees it."},"DurationIn":{"properties":{"duration_ms":{"type":"integer","maximum":86400000.0,"exclusiveMinimum":0.0,"title":"Duration Ms"}},"type":"object","required":["duration_ms"],"title":"DurationIn"},"Expiry":{"properties":{"amount":{"type":"integer","title":"Amount"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["amount","expires_at"],"title":"Expiry"},"FileIn":{"properties":{"role":{"type":"string","title":"Role"},"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"size":{"type":"integer","minimum":0.0,"title":"Size"}},"type":"object","required":["role","name","size"],"title":"FileIn"},"FilePlan":{"properties":{"role":{"type":"string","title":"Role"},"part_size":{"type":"integer","title":"Part Size"},"parts":{"type":"integer","title":"Parts"}},"type":"object","required":["role","part_size","parts"],"title":"FilePlan"},"FileSent":{"properties":{"role":{"type":"string","title":"Role"},"parts":{"items":{"$ref":"#/components/schemas/PieceSent"},"type":"array","title":"Parts"}},"type":"object","required":["role","parts"],"title":"FileSent"},"FirstPeriod":{"properties":{"period":{"type":"integer","maximum":4.0,"minimum":1.0,"title":"Period"}},"type":"object","required":["period"],"title":"FirstPeriod"},"FixturePreview":{"properties":{"fixture":{"$ref":"#/components/schemas/CatalogFixtureRead"},"lineups":{"items":{"$ref":"#/components/schemas/CatalogLineupRead"},"type":"array","title":"Lineups","default":[]}},"type":"object","required":["fixture"],"title":"FixturePreview","description":"One fixture with the lineups the provider has for it: what the confirmation shows."},"FixtureTeamRead":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","name"],"title":"FixtureTeamRead"},"FormationRead":{"properties":{"team_id":{"type":"integer","title":"Team Id"},"formation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Formation"}},"type":"object","required":["team_id"],"title":"FormationRead"},"FormationUpdate":{"properties":{"formation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Formation"},"places":{"items":{"$ref":"#/components/schemas/PlaceIn"},"type":"array","maxItems":11,"title":"Places","default":[]}},"type":"object","required":["formation"],"title":"FormationUpdate"},"GrantCreate":{"properties":{"amount":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Amount"},"source":{"type":"string","enum":["plan","quarterly","match_pass","pilot","adjustment"],"title":"Source"},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["amount","source"],"title":"GrantCreate"},"GrantRead":{"properties":{"id":{"type":"integer","title":"Id"},"amount":{"type":"integer","title":"Amount"},"used":{"type":"integer","title":"Used"},"source":{"type":"string","enum":["plan","quarterly","match_pass","pilot","adjustment"],"title":"Source"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"expired":{"type":"boolean","title":"Expired"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","amount","used","source","expired","created_at"],"title":"GrantRead"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ImportRequest":{"properties":{"fixture_id":{"type":"string","pattern":"^\\d{1,12}$","title":"Fixture Id"},"as_of":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"As Of"}},"type":"object","required":["fixture_id"],"title":"ImportRequest"},"ImportResult":{"properties":{"match":{"$ref":"#/components/schemas/MatchRead"},"created":{"type":"boolean","title":"Created"},"lineups_imported":{"type":"boolean","title":"Lineups Imported"}},"type":"object","required":["match","created","lineups_imported"],"title":"ImportResult"},"JobFile":{"properties":{"kind":{"type":"string","title":"Kind"},"name":{"type":"string","title":"Name"}},"type":"object","required":["kind","name"],"title":"JobFile"},"JobFileLink":{"properties":{"url":{"type":"string","title":"Url"},"name":{"type":"string","title":"Name"}},"type":"object","required":["url","name"],"title":"JobFileLink","description":"A signed link to one of a job's files, and the name it was uploaded under."},"JobFilesResponse":{"properties":{"source":{"type":"string","title":"Source"},"format":{"type":"string","title":"Format"},"fps":{"type":"integer","title":"Fps"},"files":{"items":{"$ref":"#/components/schemas/JobFile"},"type":"array","title":"Files"},"video":{"anyOf":[{"$ref":"#/components/schemas/JobVideo"},{"type":"null"}]},"match":{"anyOf":[{"$ref":"#/components/schemas/JobMatchSummary"},{"type":"null"}]}},"type":"object","required":["source","format","fps","files"],"title":"JobFilesResponse"},"JobListItem":{"properties":{"job_id":{"type":"string","title":"Job Id"},"clip_name":{"type":"string","title":"Clip Name"},"status":{"type":"string","title":"Status"},"source":{"type":"string","title":"Source","default":"pipeline"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"match":{"anyOf":[{"$ref":"#/components/schemas/JobMatchSummary"},{"type":"null"}]},"run":{"type":"boolean","title":"Run","default":false}},"type":"object","required":["job_id","clip_name","status","created_at"],"title":"JobListItem"},"JobMatchSummary":{"properties":{"id":{"type":"integer","title":"Id"},"home_team_name":{"type":"string","title":"Home Team Name"},"away_team_name":{"type":"string","title":"Away Team Name"},"kickoff_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kickoff At"}},"type":"object","required":["id","home_team_name","away_team_name"],"title":"JobMatchSummary","description":"The match a job belongs to, as far as a list of jobs needs it."},"JobMatchUpdate":{"properties":{"match_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Match Id"}},"type":"object","required":["match_id"],"title":"JobMatchUpdate"},"JobRename":{"properties":{"clip_name":{"type":"string","maxLength":200,"minLength":1,"title":"Clip Name"}},"type":"object","required":["clip_name"],"title":"JobRename"},"JobStatusResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"},"progress":{"type":"integer","title":"Progress"},"clip_name":{"type":"string","title":"Clip Name"},"fps":{"type":"integer","title":"Fps"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"match":{"anyOf":[{"$ref":"#/components/schemas/JobMatchSummary"},{"type":"null"}]}},"type":"object","required":["job_id","status","progress","clip_name","fps","created_at"],"title":"JobStatusResponse"},"JobVideo":{"properties":{"name":{"type":"string","title":"Name"},"token":{"type":"string","title":"Token"}},"type":"object","required":["name","token"],"title":"JobVideo"},"JoinedStart":{"properties":{"size":{"type":"integer","maximum":53687091200.0,"exclusiveMinimum":0.0,"title":"Size"}},"type":"object","required":["size"],"title":"JoinedStart"},"JoinedStarted":{"properties":{"part_size":{"type":"integer","title":"Part Size"},"parts":{"type":"integer","title":"Parts"}},"type":"object","required":["part_size","parts"],"title":"JoinedStarted"},"KeyIn":{"properties":{"key":{"type":"string","maxLength":200,"minLength":1,"title":"Key"}},"type":"object","required":["key"],"title":"KeyIn","description":"A key typed or pasted on the Connectors page, cleaned before its length is checked."},"KeyRow":{"properties":{"organisation_id":{"type":"integer","title":"Organisation Id"},"organisation_name":{"type":"string","title":"Organisation Name"},"organisation_status":{"type":"string","title":"Organisation Status"},"source":{"type":"string","enum":["own","settings","unreadable","none"],"title":"Source"},"hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hint"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"requests_left":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requests Left"},"requests_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Requests Limit"}},"type":"object","required":["organisation_id","organisation_name","organisation_status","source"],"title":"KeyRow","description":"An organisation's football data key, as far as it is shown: never the key itself.\n\nsource: own (stored for the organisation), settings (Koralyze's, from API_FOOTBALL_KEY),\nunreadable (stored, but SECRET_KEY has changed since) or none."},"KeysList":{"properties":{"koralyze_has_key":{"type":"boolean","title":"Koralyze Has Key"},"organisations":{"items":{"$ref":"#/components/schemas/KeyRow"},"type":"array","title":"Organisations"}},"type":"object","required":["koralyze_has_key","organisations"],"title":"KeysList"},"LineupAdd":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"player_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Player Id"},"jersey_number":{"anyOf":[{"type":"integer","maximum":999.0,"minimum":0.0},{"type":"null"}],"title":"Jersey Number"},"position":{"anyOf":[{"type":"string","enum":["GK","DF","CB","LB","RB","LWB","RWB","MF","DM","CM","AM","LM","RM","FW","LW","RW","ST"]},{"type":"null"}],"title":"Position"},"as_of":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"As Of"},"team_id":{"type":"integer","title":"Team Id"},"slot":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":0.0},{"type":"null"}],"title":"Slot"}},"type":"object","required":["team_id"],"title":"LineupAdd","description":"A starter. A substitute is added with the substitution that brings them on."},"LineupCandidate":{"properties":{"player_id":{"type":"integer","title":"Player Id"},"name":{"type":"string","title":"Name"},"jersey_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Jersey Number"},"position":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position"},"in_squad":{"type":"boolean","title":"In Squad"},"starter":{"type":"boolean","title":"Starter","default":false}},"type":"object","required":["player_id","name","in_squad"],"title":"LineupCandidate","description":"A player of the team who is not in the match yet, with the number and position they would start from."},"LineupChangeRead":{"properties":{"id":{"type":"integer","title":"Id"},"minute":{"type":"integer","title":"Minute"},"off_entry_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Off Entry Id"},"on_entry_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"On Entry Id"},"moves":{"items":{"$ref":"#/components/schemas/LineupMoveRead"},"type":"array","title":"Moves","default":[]}},"type":"object","required":["id","minute"],"title":"LineupChangeRead","description":"A substitution (off and on both set) or a change of positions (neither), at a minute."},"LineupEntryRead":{"properties":{"id":{"type":"integer","title":"Id"},"team_id":{"type":"integer","title":"Team Id"},"player_id":{"type":"integer","title":"Player Id"},"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"},"jersey_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Jersey Number"},"position":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position"},"slot":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Slot"},"added_to_squad":{"type":"boolean","title":"Added To Squad","default":false}},"type":"object","required":["id","team_id","player_id","name","role"],"title":"LineupEntryRead","description":"One player who played in the match, with that day's number and position."},"LineupEntryUpdate":{"properties":{"jersey_number":{"anyOf":[{"type":"integer","maximum":999.0,"minimum":0.0},{"type":"null"}],"title":"Jersey Number"},"position":{"anyOf":[{"type":"string","enum":["GK","DF","CB","LB","RB","LWB","RWB","MF","DM","CM","AM","LM","RM","FW","LW","RW","ST"]},{"type":"null"}],"title":"Position"},"slot":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":0.0},{"type":"null"}],"title":"Slot"}},"type":"object","title":"LineupEntryUpdate","description":"Only the fields sent change. null clears the number, the position or the slot."},"LineupMoveRead":{"properties":{"entry_id":{"type":"integer","title":"Entry Id"},"slot":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Slot"},"position":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position"}},"type":"object","required":["entry_id"],"title":"LineupMoveRead"},"LineupSide":{"properties":{"team_id":{"type":"integer","title":"Team Id"},"team_name":{"type":"string","title":"Team Name"},"formation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Formation"},"entries":{"items":{"$ref":"#/components/schemas/LineupEntryRead"},"type":"array","title":"Entries","default":[]},"changes":{"items":{"$ref":"#/components/schemas/LineupChangeRead"},"type":"array","title":"Changes","default":[]},"available":{"items":{"$ref":"#/components/schemas/LineupCandidate"},"type":"array","title":"Available","default":[]}},"type":"object","required":["team_id","team_name"],"title":"LineupSide"},"LoginCreate":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","minLength":8,"title":"Password"},"is_superadmin":{"type":"boolean","title":"Is Superadmin","default":false}},"type":"object","required":["email","password"],"title":"LoginCreate"},"LoginRead":{"properties":{"id":{"type":"integer","title":"Id"},"email":{"type":"string","title":"Email"},"is_active":{"type":"boolean","title":"Is Active"},"is_superadmin":{"type":"boolean","title":"Is Superadmin"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","email","is_active","is_superadmin","created_at"],"title":"LoginRead"},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"LoginUpdate":{"properties":{"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"password":{"anyOf":[{"type":"string","minLength":8},{"type":"null"}],"title":"Password"},"is_superadmin":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Superadmin"}},"type":"object","title":"LoginUpdate"},"MarkIn":{"properties":{"at_ms":{"type":"integer","minimum":0.0,"title":"At Ms"},"kind":{"type":"string","enum":["start","pause","end"],"title":"Kind"}},"type":"object","required":["at_ms","kind"],"title":"MarkIn"},"MarkRead":{"properties":{"at_ms":{"type":"integer","minimum":0.0,"title":"At Ms"},"kind":{"type":"string","enum":["start","pause","end"],"title":"Kind"}},"type":"object","required":["at_ms","kind"],"title":"MarkRead"},"MarksIn":{"properties":{"marks":{"items":{"$ref":"#/components/schemas/MarkIn"},"type":"array","maxItems":200,"title":"Marks"}},"type":"object","required":["marks"],"title":"MarksIn"},"MatchCreate":{"properties":{"home_team_id":{"type":"integer","title":"Home Team Id"},"away_team_id":{"type":"integer","title":"Away Team Id"},"kickoff_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Kickoff At"},"venue":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Venue"},"competition":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Competition"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"home_score":{"anyOf":[{"type":"integer","maximum":99.0,"minimum":0.0},{"type":"null"}],"title":"Home Score"},"away_score":{"anyOf":[{"type":"integer","maximum":99.0,"minimum":0.0},{"type":"null"}],"title":"Away Score"},"minutes_per_half":{"anyOf":[{"type":"integer","maximum":45.0,"minimum":20.0},{"type":"null"}],"title":"Minutes Per Half"}},"type":"object","required":["home_team_id","away_team_id"],"title":"MatchCreate"},"MatchCredit":{"properties":{"spent":{"type":"boolean","title":"Spent"},"seconds_used":{"type":"number","title":"Seconds Used"}},"type":"object","required":["spent","seconds_used"],"title":"MatchCredit","description":"A match's credit, and the play its latest run processed."},"MatchLineup":{"properties":{"as_of":{"type":"string","format":"date","title":"As Of"},"home":{"$ref":"#/components/schemas/LineupSide"},"away":{"$ref":"#/components/schemas/LineupSide"}},"type":"object","required":["as_of","home","away"],"title":"MatchLineup"},"MatchRead":{"properties":{"id":{"type":"integer","title":"Id"},"home_team":{"$ref":"#/components/schemas/TeamRead"},"away_team":{"$ref":"#/components/schemas/TeamRead"},"kickoff_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kickoff At"},"venue":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Venue"},"competition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Competition"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"home_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Home Score"},"away_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Away Score"},"minutes_per_half":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minutes Per Half"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","home_team","away_team","created_at"],"title":"MatchRead"},"MatchUpdate":{"properties":{"home_team_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Home Team Id"},"away_team_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Away Team Id"},"kickoff_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Kickoff At"},"venue":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Venue"},"competition":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Competition"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"home_score":{"anyOf":[{"type":"integer","maximum":99.0,"minimum":0.0},{"type":"null"}],"title":"Home Score"},"away_score":{"anyOf":[{"type":"integer","maximum":99.0,"minimum":0.0},{"type":"null"}],"title":"Away Score"},"minutes_per_half":{"anyOf":[{"type":"integer","maximum":45.0,"minimum":20.0},{"type":"null"}],"title":"Minutes Per Half"}},"type":"object","title":"MatchUpdate"},"MatchVideosRead":{"properties":{"first_period":{"type":"integer","title":"First Period"},"videos":{"items":{"$ref":"#/components/schemas/VideoRead"},"type":"array","title":"Videos"},"latest_run":{"anyOf":[{"$ref":"#/components/schemas/RunRead"},{"type":"null"}]},"next_run":{"type":"string","enum":["first","admin_only"],"title":"Next Run"},"credit":{"$ref":"#/components/schemas/CreditRead"}},"type":"object","required":["first_period","videos","next_run","credit"],"title":"MatchVideosRead"},"MeRead":{"properties":{"email":{"type":"string","title":"Email"},"is_superadmin":{"type":"boolean","title":"Is Superadmin"},"organisation":{"$ref":"#/components/schemas/app__auth__router__OrganisationRead"},"home_organisation_id":{"type":"integer","title":"Home Organisation Id"},"read_only":{"type":"boolean","title":"Read Only"},"can_process_videos":{"type":"boolean","title":"Can Process Videos"},"unlimited_credits":{"type":"boolean","title":"Unlimited Credits"},"credits_available":{"type":"integer","title":"Credits Available"}},"type":"object","required":["email","is_superadmin","organisation","home_organisation_id","read_only","can_process_videos","unlimited_credits","credits_available"],"title":"MeRead"},"MemberCreate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"player_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Player Id"},"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"},"jersey_number":{"anyOf":[{"type":"integer","maximum":999.0,"minimum":0.0},{"type":"null"}],"title":"Jersey Number"},"position":{"anyOf":[{"type":"string","enum":["GK","DF","CB","LB","RB","LWB","RWB","MF","DM","CM","AM","LM","RM","FW","LW","RW","ST"]},{"type":"null"}],"title":"Position"},"starter":{"type":"boolean","title":"Starter","default":false}},"type":"object","title":"MemberCreate"},"MembershipUpdate":{"properties":{"start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"},"jersey_number":{"anyOf":[{"type":"integer","maximum":999.0,"minimum":0.0},{"type":"null"}],"title":"Jersey Number"},"position":{"anyOf":[{"type":"string","enum":["GK","DF","CB","LB","RB","LWB","RWB","MF","DM","CM","AM","LM","RM","FW","LW","RW","ST"]},{"type":"null"}],"title":"Position"},"starter":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Starter"}},"type":"object","title":"MembershipUpdate"},"OrganisationCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"OrganisationCreate"},"OrganisationCredits":{"properties":{"summary":{"$ref":"#/components/schemas/CreditSummary"},"grants":{"items":{"$ref":"#/components/schemas/GrantRead"},"type":"array","title":"Grants"},"spends":{"items":{"$ref":"#/components/schemas/SpendRead"},"type":"array","title":"Spends"}},"type":"object","required":["summary","grants","spends"],"title":"OrganisationCredits","description":"An organisation's ledger, for a platform owner."},"OrganisationUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"status":{"anyOf":[{"type":"string","enum":["trial","active","inactive"]},{"type":"null"}],"title":"Status"},"monthly_match_cap":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":0.0},{"type":"null"}],"title":"Monthly Match Cap"}},"type":"object","title":"OrganisationUpdate"},"PartLink":{"properties":{"number":{"type":"integer","title":"Number"},"url":{"type":"string","title":"Url"}},"type":"object","required":["number","url"],"title":"PartLink"},"PartLinks":{"properties":{"parts":{"items":{"$ref":"#/components/schemas/PartLink"},"type":"array","title":"Parts"}},"type":"object","required":["parts"],"title":"PartLinks"},"PartsRequest":{"properties":{"role":{"type":"string","title":"Role"},"numbers":{"items":{"type":"integer"},"type":"array","maxItems":100,"minItems":1,"title":"Numbers"}},"type":"object","required":["role","numbers"],"title":"PartsRequest"},"PasswordChange":{"properties":{"current_password":{"type":"string","title":"Current Password"},"new_password":{"type":"string","minLength":8,"title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"PasswordChange"},"PieceSent":{"properties":{"number":{"type":"integer","title":"Number"},"etag":{"type":"string","title":"Etag"}},"type":"object","required":["number","etag"],"title":"PieceSent"},"PiecesRequest":{"properties":{"numbers":{"items":{"type":"integer"},"type":"array","maxItems":100,"minItems":1,"title":"Numbers"}},"type":"object","required":["numbers"],"title":"PiecesRequest"},"PiecesSent":{"properties":{"parts":{"items":{"$ref":"#/components/schemas/PieceSent"},"type":"array","title":"Parts"}},"type":"object","required":["parts"],"title":"PiecesSent"},"PlaceIn":{"properties":{"entry_id":{"type":"integer","title":"Entry Id"},"slot":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":0.0},{"type":"null"}],"title":"Slot"},"position":{"anyOf":[{"type":"string","enum":["GK","DF","CB","LB","RB","LWB","RWB","MF","DM","CM","AM","LM","RM","FW","LW","RW","ST"]},{"type":"null"}],"title":"Position"}},"type":"object","required":["entry_id"],"title":"PlaceIn"},"PlayerMembershipSummary":{"properties":{"team_id":{"type":"integer","title":"Team Id"},"team_name":{"type":"string","title":"Team Name"},"start_date":{"type":"string","format":"date","title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"}},"type":"object","required":["team_id","team_name","start_date"],"title":"PlayerMembershipSummary"},"PlayerRead":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","name","created_at"],"title":"PlayerRead"},"PlayerRename":{"properties":{"name":{"type":"string","maxLength":200,"title":"Name"}},"type":"object","required":["name"],"title":"PlayerRename"},"PlayerSearchResult":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"memberships":{"items":{"$ref":"#/components/schemas/PlayerMembershipSummary"},"type":"array","title":"Memberships","default":[]}},"type":"object","required":["id","name"],"title":"PlayerSearchResult"},"PositionChangeAdd":{"properties":{"team_id":{"type":"integer","title":"Team Id"},"minute":{"type":"integer","maximum":150.0,"minimum":0.0,"title":"Minute"},"moves":{"items":{"$ref":"#/components/schemas/PlaceIn"},"type":"array","maxItems":11,"minItems":1,"title":"Moves"}},"type":"object","required":["team_id","minute","moves"],"title":"PositionChangeAdd","description":"Players on the pitch taking other places, with no substitution."},"RefundCreate":{"properties":{"note":{"type":"string","maxLength":500,"minLength":1,"title":"Note"}},"type":"object","required":["note"],"title":"RefundCreate"},"RunRead":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["job_id","status"],"title":"RunRead"},"SpendRead":{"properties":{"id":{"type":"integer","title":"Id"},"match_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Match Id"},"match_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Label"},"grant_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Grant Id"},"spent_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spent By"},"spent_at":{"type":"string","format":"date-time","title":"Spent At"},"seconds_used":{"type":"number","title":"Seconds Used"},"refunded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Refunded At"},"refund_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refund Note"}},"type":"object","required":["id","spent_at","seconds_used"],"title":"SpendRead"},"SquadEntry":{"properties":{"membership_id":{"type":"integer","title":"Membership Id"},"player_id":{"type":"integer","title":"Player Id"},"name":{"type":"string","title":"Name"},"jersey_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Jersey Number"},"position":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position"},"starter":{"type":"boolean","title":"Starter","default":false},"start_date":{"type":"string","format":"date","title":"Start Date"},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date"},"status":{"type":"string","title":"Status"}},"type":"object","required":["membership_id","player_id","name","start_date","status"],"title":"SquadEntry","description":"One spell of one player at a team, with its status on the date asked about."},"StarterPick":{"properties":{"player_id":{"type":"integer","title":"Player Id"},"slot":{"anyOf":[{"type":"integer","maximum":10.0,"minimum":0.0},{"type":"null"}],"title":"Slot"},"position":{"anyOf":[{"type":"string","enum":["GK","DF","CB","LB","RB","LWB","RWB","MF","DM","CM","AM","LM","RM","FW","LW","RW","ST"]},{"type":"null"}],"title":"Position"}},"type":"object","required":["player_id"],"title":"StarterPick","description":"A player of the squad, and the place and position they start in."},"StartersAdd":{"properties":{"players":{"items":{"$ref":"#/components/schemas/StarterPick"},"type":"array","maxItems":11,"minItems":1,"title":"Players"},"as_of":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"As Of"}},"type":"object","required":["players"],"title":"StartersAdd","description":"Several starters of one side at once: the guess the page makes from the squad."},"SubstitutionAdd":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"player_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Player Id"},"jersey_number":{"anyOf":[{"type":"integer","maximum":999.0,"minimum":0.0},{"type":"null"}],"title":"Jersey Number"},"position":{"anyOf":[{"type":"string","enum":["GK","DF","CB","LB","RB","LWB","RWB","MF","DM","CM","AM","LM","RM","FW","LW","RW","ST"]},{"type":"null"}],"title":"Position"},"as_of":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"As Of"},"team_id":{"type":"integer","title":"Team Id"},"minute":{"type":"integer","maximum":150.0,"minimum":0.0,"title":"Minute"},"off_entry_id":{"type":"integer","title":"Off Entry Id"},"moved_entry_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Moved Entry Id"}},"type":"object","required":["team_id","minute","off_entry_id"],"title":"SubstitutionAdd","description":"A player off, and who came on for them. The substitute takes the place of the player who\nwent off, unless moved_entry_id names a teammate who moved into it: the substitute then\ntakes that teammate's place."},"TeamCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"TeamCreate"},"TeamRead":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["name","id","created_at"],"title":"TeamRead"},"TeamUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"}},"type":"object","title":"TeamUpdate"},"TeamWithRoster":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"id":{"type":"integer","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"roster":{"items":{"$ref":"#/components/schemas/SquadEntry"},"type":"array","title":"Roster","default":[]}},"type":"object","required":["name","id","created_at"],"title":"TeamWithRoster"},"UploadComplete":{"properties":{"files":{"items":{"$ref":"#/components/schemas/FileSent"},"type":"array","title":"Files"}},"type":"object","required":["files"],"title":"UploadComplete"},"UploadDone":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["job_id","status"],"title":"UploadDone"},"UploadStart":{"properties":{"kind":{"type":"string","enum":["video","data"],"title":"Kind"},"match_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Match Id"},"format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format"},"fps":{"anyOf":[{"type":"integer","maximum":240.0,"minimum":1.0},{"type":"null"}],"title":"Fps"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"files":{"items":{"$ref":"#/components/schemas/FileIn"},"type":"array","maxItems":7,"title":"Files"}},"type":"object","required":["kind","files"],"title":"UploadStart"},"UploadStarted":{"properties":{"job_id":{"type":"string","title":"Job Id"},"files":{"items":{"$ref":"#/components/schemas/FilePlan"},"type":"array","title":"Files"}},"type":"object","required":["job_id","files"],"title":"UploadStarted"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VideoLink":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"VideoLink"},"VideoOrder":{"properties":{"video_ids":{"items":{"type":"integer"},"type":"array","maxItems":100,"minItems":1,"title":"Video Ids"}},"type":"object","required":["video_ids"],"title":"VideoOrder"},"VideoRead":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"size":{"type":"integer","title":"Size"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"},"marks":{"items":{"$ref":"#/components/schemas/MarkRead"},"type":"array","title":"Marks"}},"type":"object","required":["id","name","size","status","created_at","marks"],"title":"VideoRead"},"VideoStart":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"size":{"type":"integer","minimum":0.0,"title":"Size"},"duration_ms":{"anyOf":[{"type":"integer","maximum":86400000.0,"exclusiveMinimum":0.0},{"type":"null"}],"title":"Duration Ms"}},"type":"object","required":["name","size"],"title":"VideoStart"},"VideoStarted":{"properties":{"video_id":{"type":"integer","title":"Video Id"},"part_size":{"type":"integer","title":"Part Size"},"parts":{"type":"integer","title":"Parts"}},"type":"object","required":["video_id","part_size","parts"],"title":"VideoStarted"},"app__auth__router__OrganisationRead":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"}},"type":"object","required":["id","name","status"],"title":"OrganisationRead"},"app__organisations__schemas__OrganisationRead":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","enum":["trial","active","inactive"],"title":"Status"},"user_count":{"type":"integer","title":"User Count"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"monthly_match_cap":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Monthly Match Cap"}},"type":"object","required":["id","name","status","user_count","created_at"],"title":"OrganisationRead"}},"securitySchemes":{"OAuth2PasswordBearer":{"type":"oauth2","flows":{"password":{"scopes":{},"tokenUrl":"token"}}}}}}