{"openapi":"3.1.0","info":{"title":"Soli Deo API","version":"0.0.1"},"paths":{"/health":{"get":{"tags":["meta"],"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Health Get"}}}}}}},"/v1/auth/register":{"post":{"tags":["auth"],"summary":"Register","operationId":"register_v1_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenPair"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenPair"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/refresh":{"post":{"tags":["auth"],"summary":"Refresh","operationId":"refresh_v1_auth_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenPair"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","operationId":"logout_v1_auth_logout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/password-reset/request":{"post":{"tags":["auth"],"summary":"Request Password Reset","description":"Email a reset link if the address has an account (always 204 — no leak).","operationId":"request_password_reset_v1_auth_password_reset_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/password-reset/confirm":{"post":{"tags":["auth"],"summary":"Confirm Password Reset","operationId":"confirm_password_reset_v1_auth_password_reset_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetConfirm"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/oauth/providers":{"get":{"tags":["auth"],"summary":"Oauth Providers","description":"Which social logins are configured — the web shows a button per entry.","operationId":"oauth_providers_v1_auth_oauth_providers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response Oauth Providers V1 Auth Oauth Providers Get"}}}}}}},"/v1/auth/oauth/{provider}":{"get":{"tags":["auth"],"summary":"Oauth Start","operationId":"oauth_start_v1_auth_oauth__provider__get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/oauth/{provider}/callback":{"get":{"tags":["auth"],"summary":"Oauth Callback","description":"Provider → us. Validate, resolve the profile, mint our own tokens, and\nhand them to the SPA via the URL fragment (never sent to the server).","operationId":"oauth_callback_v1_auth_oauth__provider__callback_get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/me":{"get":{"tags":["auth"],"summary":"Me","operationId":"me_v1_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["auth"],"summary":"Delete Me","description":"Permanently delete the signed-in user's account and personal data\n(GDPR right to erasure). Blocks if they are the last owner of a shared org.","operationId":"delete_me_v1_auth_me_delete","responses":{"204":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["auth"],"summary":"Update Me","description":"Update the signed-in user's own profile: the UI locale (so a chosen\nlanguage follows the account across devices) and how far they've read\nWhat's new (so the bell announces each release once).","operationId":"update_me_v1_auth_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/auth/me/export":{"get":{"tags":["auth"],"summary":"Export Me","description":"Everything we hold about the signed-in user, as JSON (GDPR portability).","operationId":"export_me_v1_auth_me_export_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Export Me V1 Auth Me Export Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/orgs":{"get":{"tags":["organizations"],"summary":"My Organizations","operationId":"my_organizations_v1_orgs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/OrgWithRole"},"type":"array","title":"Response My Organizations V1 Orgs Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["organizations"],"summary":"Create Org","operationId":"create_org_v1_orgs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgWithRole"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/orgs/{org_id}":{"patch":{"tags":["organizations"],"summary":"Update Organization","operationId":"update_organization_v1_orgs__org_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgWithRole"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/members":{"get":{"tags":["members"],"summary":"List Members","operationId":"list_members_v1_members_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MemberRead"},"title":"Response List Members V1 Members Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/members/{user_id}":{"patch":{"tags":["members"],"summary":"Update Member","operationId":"update_member_v1_members__user_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["members"],"summary":"Remove Member","operationId":"remove_member_v1_members__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/invitations":{"post":{"tags":["invitations"],"summary":"Create Invitation","operationId":"create_invitation_v1_invitations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["invitations"],"summary":"List Invitations","operationId":"list_invitations_v1_invitations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvitationRead"},"title":"Response List Invitations V1 Invitations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/invitations/{invitation_id}":{"delete":{"tags":["invitations"],"summary":"Revoke Invitation","operationId":"revoke_invitation_v1_invitations__invitation_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"invitation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invitation Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/invitations/token/{token}":{"get":{"tags":["invitations"],"summary":"Preview Invitation","operationId":"preview_invitation_v1_invitations_token__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationPreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/invitations/token/{token}/dead":{"post":{"tags":["invitations"],"summary":"Report Dead Link","operationId":"report_dead_link_v1_invitations_token__token__dead_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeadLinkReport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/invitations/token/{token}/accept":{"post":{"tags":["invitations"],"summary":"Accept Invitation","operationId":"accept_invitation_v1_invitations_token__token__accept_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgWithRole"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/songs/{song_id}/files":{"get":{"tags":["song-files"],"summary":"List Files","operationId":"list_files_v1_songs__song_id__files_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongFiles"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["song-files"],"summary":"Upload File","operationId":"upload_file_v1_songs__song_id__files_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"X-File-Name","in":"header","required":false,"schema":{"type":"string","default":"file","title":"X-File-Name"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongFileRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/songs/{song_id}/files/{file_id}/link":{"get":{"tags":["song-files"],"summary":"File Link","operationId":"file_link_v1_songs__song_id__files__file_id__link_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}},{"name":"download","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Download"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileLink"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/songs/{song_id}/files/{file_id}":{"delete":{"tags":["song-files"],"summary":"Delete File","operationId":"delete_file_v1_songs__song_id__files__file_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"File Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/song-files/local":{"get":{"tags":["song-files"],"summary":"Local File","description":"Development only: the local store's stand-in for an R2 link.","operationId":"local_file_v1_song_files_local_get","parameters":[{"name":"key","in":"query","required":true,"schema":{"type":"string","title":"Key"}},{"name":"t","in":"query","required":true,"schema":{"type":"string","title":"T"}},{"name":"inline","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Inline"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/songs":{"get":{"tags":["songs"],"summary":"List Songs","description":"A page of the org's songs — lighter rows (no `body`) + a total, so large\nlibraries paginate. The viewer fetches the full song by id.\n\n`q` matches title/artist/alternate title/subtitle, and the total counts the\nmatches, not the org — the client pages through search results.","operationId":"list_songs_v1_songs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["songs"],"summary":"Create Song","operationId":"create_song_v1_songs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/songs/matches":{"get":{"tags":["songs"],"summary":"Song Matches","description":"\"Already in Selida\" — songs the one being started may already be: this\nchurch's own, and the shared library's. `q` is the title as it's typed, or\na pasted chart, searched by its first sung lines; a fragment or a typo is\nfine. Own songs are flagged so the client offers \"open\", not \"copy\".","operationId":"song_matches_v1_songs_matches_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":4000,"title":"Q"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SongMatch"},"title":"Response Song Matches V1 Songs Matches Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/songs/artists":{"get":{"tags":["songs"],"summary":"Song Artists","description":"Artists already used in this org — powers the free-text autocomplete.","operationId":"song_artists_v1_songs_artists_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response Song Artists V1 Songs Artists Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/songs/library":{"get":{"tags":["songs"],"summary":"Song Library","operationId":"song_library_v1_songs_library_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"source","in":"query","required":false,"schema":{"enum":["all","official","church"],"type":"string","default":"all","title":"Source"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/songs/library/{song_id}":{"get":{"tags":["songs"],"summary":"Library Song","description":"A library song, whole and read-only — what a church looks at before it\nadds the song. 404 for anything not in the library, so it can't be used\nto read another church's private songs.","operationId":"library_song_v1_songs_library__song_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibrarySongRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/songs/{song_id}/official":{"post":{"tags":["songs"],"summary":"Set Song Official","description":"Curate Selida's standard library. Admin-only, and scoped to the caller's\nown organization (see SongService.set_official).","operationId":"set_song_official_v1_songs__song_id__official_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"official","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Official"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/songs/{song_id}/publish":{"post":{"tags":["songs"],"summary":"Publish Song","operationId":"publish_song_v1_songs__song_id__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/songs/{song_id}/unpublish":{"post":{"tags":["songs"],"summary":"Unpublish Song","operationId":"unpublish_song_v1_songs__song_id__unpublish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/songs/{song_id}/fork":{"post":{"tags":["songs"],"summary":"Fork Song","operationId":"fork_song_v1_songs__song_id__fork_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/songs/review":{"post":{"tags":["songs"],"summary":"Review Song","description":"Selida proof-reads a chart — the one in front of the writer, not the one\non disk.\n\nThis takes the text in the request rather than a song id on purpose. Loading\nthe saved song meant reviewing whatever was there before the current edit:\nyou fixed a chord, asked, and got told about the version you had just\nreplaced. It also locks the feature out of the new-song dialog, which is\nexactly where a chart gets pasted in from somewhere else.\n\nNothing is read from or written to the song, so there is no song to scope\nto; the guards that matter are auth, the daily allowance, and the length cap.\n\nOn demand, never on save: it costs a message, and the checks worth running\non every keystroke are the ones the client already does for free.","operationId":"review_song_v1_songs_review_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongReviewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongReview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/songs/web":{"post":{"tags":["songs"],"summary":"Find On The Web","description":"\"Selida, find it for me\": pages on chord sites that may hold the song,\neach with its chart lifted out verbatim, best guess first. The person picks\none — the first page is right only about half the time — and checks it\nbefore saving; nothing is stored here.\n\nCosts one message of the assistant's daily allowance when it finds\nsomething; a few empty searches a day are free.","operationId":"find_on_the_web_v1_songs_web_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebSearchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebSearchResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/songs/{song_id}/translations":{"get":{"tags":["songs"],"summary":"Song Translations","operationId":"song_translations_v1_songs__song_id__translations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TranslationRead"},"title":"Response Song Translations V1 Songs  Song Id  Translations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["songs"],"summary":"Link Translation","operationId":"link_translation_v1_songs__song_id__translations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkTranslationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TranslationRead"},"title":"Response Link Translation V1 Songs  Song Id  Translations Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["songs"],"summary":"Unlink Translation","operationId":"unlink_translation_v1_songs__song_id__translations_delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/songs/{song_id}/upstream":{"get":{"tags":["songs"],"summary":"Song Upstream","description":"The original's update waiting for this copy, or null when there is none.","operationId":"song_upstream_v1_songs__song_id__upstream_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UpstreamRead"},{"type":"null"}],"title":"Response Song Upstream V1 Songs  Song Id  Upstream Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/songs/{song_id}/upstream/pull":{"post":{"tags":["songs"],"summary":"Pull Upstream","operationId":"pull_upstream_v1_songs__song_id__upstream_pull_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/songs/{song_id}/upstream/keep":{"post":{"tags":["songs"],"summary":"Keep Own Copy","operationId":"keep_own_copy_v1_songs__song_id__upstream_keep_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/songs/{song_id}/arrangements":{"get":{"tags":["songs"],"summary":"List Arrangements","operationId":"list_arrangements_v1_songs__song_id__arrangements_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArrangementRead"},"title":"Response List Arrangements V1 Songs  Song Id  Arrangements Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["songs"],"summary":"Create Arrangement","operationId":"create_arrangement_v1_songs__song_id__arrangements_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArrangementCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArrangementRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/songs/{song_id}/arrangements/{arrangement_id}":{"patch":{"tags":["songs"],"summary":"Update Arrangement","operationId":"update_arrangement_v1_songs__song_id__arrangements__arrangement_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"arrangement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Arrangement Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArrangementUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArrangementRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["songs"],"summary":"Delete Arrangement","operationId":"delete_arrangement_v1_songs__song_id__arrangements__arrangement_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"arrangement_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Arrangement Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/songs/{song_id}/setlists":{"get":{"tags":["songs"],"summary":"Song Setlist Use","operationId":"song_setlist_use_v1_songs__song_id__setlists_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongSetlistUse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/songs/{song_id}":{"get":{"tags":["songs"],"summary":"Get Song","operationId":"get_song_v1_songs__song_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["songs"],"summary":"Update Song","operationId":"update_song_v1_songs__song_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["songs"],"summary":"Delete Song","operationId":"delete_song_v1_songs__song_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/events":{"get":{"tags":["events"],"summary":"List Events","description":"Events in the range, including dates of repeating series that nobody\nhas opened yet (`virtual: true` — open them via the series endpoint).","operationId":"list_events_v1_events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"To"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventRead"},"title":"Response List Events V1 Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["events"],"summary":"Create Event","operationId":"create_event_v1_events_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/events/series/{series_id}/occurrences":{"post":{"tags":["events"],"summary":"Open Occurrence","description":"The event for one date of a repeating series, created the first time\nanyone opens it. Open to every member: it changes nothing anyone can see —\nthe date was already on the calendar — it only gives it a row to hang a\nsetlist and a team on.","operationId":"open_occurrence_v1_events_series__series_id__occurrences_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"series_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Series Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OccurrenceOpen"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/events/{event_id}":{"get":{"tags":["events"],"summary":"Get Event","operationId":"get_event_v1_events__event_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["events"],"summary":"Update Event","description":"Edit one event, or (scope=following) it and every later date of its\nseries — the only scope that may change the series' `rrule`.","operationId":"update_event_v1_events__event_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"scope","in":"query","required":false,"schema":{"enum":["this","following"],"type":"string","default":"this","title":"Scope"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["events"],"summary":"Delete Event","description":"Delete one event, it and every later date of its series\n(scope=following), or the whole series (scope=series; ?series=true is the\nolder spelling of the same).","operationId":"delete_event_v1_events__event_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"enum":["this","following","series"],"type":"string"},{"type":"null"}],"title":"Scope"}},{"name":"series","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Series"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/events/{event_id}/live/state":{"post":{"tags":["events"],"summary":"Set Live State","description":"Publish the current song index AND claim the lead (takeover). The driver\nis the authenticated caller; followers get pushed the new state.","operationId":"set_live_state_v1_events__event_id__live_state_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveState"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveState"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["events"],"summary":"Get Live State","operationId":"get_live_state_v1_events__event_id__live_state_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LiveState"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/events/{event_id}/live/stream":{"get":{"tags":["events"],"summary":"Live Stream","description":"SSE stream of the current song index. Consume from the web with\nfetch()+ReadableStream (EventSource can't send the auth header).","operationId":"live_stream_v1_events__event_id__live_stream_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/events/{event_id}/songs":{"get":{"tags":["events"],"summary":"List Setlist","operationId":"list_setlist_v1_events__event_id__songs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventSongRead"},"title":"Response List Setlist V1 Events  Event Id  Songs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["events"],"summary":"Add Setlist Song","operationId":"add_setlist_song_v1_events__event_id__songs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventSongCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventSongRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/events/{event_id}/songs/order":{"put":{"tags":["events"],"summary":"Reorder Setlist","operationId":"reorder_setlist_v1_events__event_id__songs_order_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventSongReorder"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EventSongRead"},"title":"Response Reorder Setlist V1 Events  Event Id  Songs Order Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/events/{event_id}/songs/{item_id}":{"patch":{"tags":["events"],"summary":"Update Setlist Song","operationId":"update_setlist_song_v1_events__event_id__songs__item_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventSongUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventSongRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["events"],"summary":"Remove Setlist Song","operationId":"remove_setlist_song_v1_events__event_id__songs__item_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"item_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Item Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/events/{event_id}/setlist/sources":{"get":{"tags":["events"],"summary":"Setlist Sources","description":"Events near this one that have a set, nearest first — and of those, the\nones before it first: the set is usually built at the rehearsal before.","operationId":"setlist_sources_v1_events__event_id__setlist_sources_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SetlistSource"},"title":"Response Setlist Sources V1 Events  Event Id  Setlist Sources Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/events/{event_id}/setlist/copy":{"post":{"tags":["events"],"summary":"Copy Setlist","description":"Fill this event's set from another of this church's events: songs,\norder, keys, leaders, versions and notes. 409 `setlist_empty` if the other\nevent has no songs; 400 for the event itself.","operationId":"copy_setlist_v1_events__event_id__setlist_copy_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetlistCopy"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetlistCopyResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/events/{event_id}/setlist/share":{"post":{"tags":["events"],"summary":"Share Setlist","description":"\"Setlist is ready\": send the set to everyone in the church (in-app and\nemail, per each person's preferences). Everyone, not only people assigned\nto the event: assignments are switched off while they're reworked, and the\nwhole band needs the set before Sunday.","operationId":"share_setlist_v1_events__event_id__setlist_share_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetlistShareResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/events/{event_id}/assignments":{"get":{"tags":["events"],"summary":"List Assignments","operationId":"list_assignments_v1_events__event_id__assignments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AssignmentRead"},"title":"Response List Assignments V1 Events  Event Id  Assignments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["events"],"summary":"Add Assignment","operationId":"add_assignment_v1_events__event_id__assignments_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignmentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignmentRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/events/{event_id}/assignments/{assignment_id}":{"patch":{"tags":["events"],"summary":"Update Assignment","operationId":"update_assignment_v1_events__event_id__assignments__assignment_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"assignment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Assignment Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignmentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignmentRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["events"],"summary":"Remove Assignment","operationId":"remove_assignment_v1_events__event_id__assignments__assignment_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"assignment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Assignment Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/events/{event_id}/availability":{"get":{"tags":["events"],"summary":"Event Availability","operationId":"event_availability_v1_events__event_id__availability_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MemberAvailability"},"title":"Response Event Availability V1 Events  Event Id  Availability Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/events/{event_id}/availability/me":{"put":{"tags":["events"],"summary":"Set My Availability","description":"A member flags whether they can make this event (self-service).","operationId":"set_my_availability_v1_events__event_id__availability_me_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetAvailability"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/events/{event_id}/playlist-link":{"post":{"tags":["events"],"summary":"Playlist Link","description":"The short link behind the event page's QR code. Open to every member:\nit hands out only what the page already shows them — the setlist's\nYouTube links — and the same link every time.","operationId":"playlist_link_v1_events__event_id__playlist_link_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaylistLink"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/playlists/{token}":{"get":{"tags":["events"],"summary":"Public Playlist","description":"What a short playlist link opens, for anyone holding it — a phone\ncamera isn't signed in. The YouTube links only, in setlist order. A code\nthat matches nothing (or a setlist with no recordings) is a 404, and\nmisses are throttled per IP so codes can't be walked.","operationId":"public_playlist_v1_playlists__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPlaylist"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/activity":{"get":{"tags":["activity"],"summary":"List Activity","operationId":"list_activity_v1_activity_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ActivityRead"},"title":"Response List Activity V1 Activity Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/analytics/songs":{"get":{"tags":["analytics"],"summary":"Song Usage","operationId":"song_usage_v1_analytics_songs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SongUsageRead"},"title":"Response Song Usage V1 Analytics Songs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/analytics/summary":{"get":{"tags":["analytics"],"summary":"Summary","operationId":"summary_v1_analytics_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/analytics/usage-over-time":{"get":{"tags":["analytics"],"summary":"Usage Over Time","operationId":"usage_over_time_v1_analytics_usage_over_time_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UsagePoint"},"title":"Response Usage Over Time V1 Analytics Usage Over Time Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/analytics/by-key":{"get":{"tags":["analytics"],"summary":"Usage By Key","operationId":"usage_by_key_v1_analytics_by_key_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/KeyCount"},"title":"Response Usage By Key V1 Analytics By Key Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/repertoire":{"get":{"tags":["repertoire"],"summary":"Read Repertoire","description":"Every song of the church with where it stands — learning, new, sung\noften, not sung lately… — all read off the setlists. Nothing to set.","operationId":"read_repertoire_v1_repertoire_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepertoireRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notes":{"get":{"tags":["notes"],"summary":"List Notes","operationId":"list_notes_v1_notes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"target_type","in":"query","required":true,"schema":{"$ref":"#/components/schemas/NoteTargetType"}},{"name":"target_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Target Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NoteRead"},"title":"Response List Notes V1 Notes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["notes"],"summary":"Create Note","operationId":"create_note_v1_notes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notes/setlist/{event_id}":{"get":{"tags":["notes"],"summary":"List Setlist Notes","description":"The notes on every song of an event's setlist, for the setlist and the\nstage — one request instead of one per song.","operationId":"list_setlist_notes_v1_notes_setlist__event_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NoteRead"},"title":"Response List Setlist Notes V1 Notes Setlist  Event Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notes/{note_id}":{"patch":{"tags":["notes"],"summary":"Update Note","operationId":"update_note_v1_notes__note_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["notes"],"summary":"Delete Note","operationId":"delete_note_v1_notes__note_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/preferences":{"get":{"tags":["notifications"],"summary":"Get Preferences","operationId":"get_preferences_v1_notifications_preferences_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PreferenceRead"},"type":"array","title":"Response Get Preferences V1 Notifications Preferences Get"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["notifications"],"summary":"Update Preferences","operationId":"update_preferences_v1_notifications_preferences_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferencesUpdate"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/notifications":{"get":{"tags":["notifications"],"summary":"List Notifications","operationId":"list_notifications_v1_notifications_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"unread_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unread Only"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/notifications/read-all":{"post":{"tags":["notifications"],"summary":"Mark All Read","operationId":"mark_all_read_v1_notifications_read_all_post","responses":{"204":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]}},"/v1/notifications/{notification_id}/read":{"post":{"tags":["notifications"],"summary":"Mark Read","operationId":"mark_read_v1_notifications__notification_id__read_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Notification Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/teams":{"get":{"tags":["teams"],"summary":"List Teams","operationId":"list_teams_v1_teams_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TeamRead"},"title":"Response List Teams V1 Teams Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["teams"],"summary":"Create Team","operationId":"create_team_v1_teams_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamCreate"}}}},"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"}}}}}}},"/v1/teams/{team_id}":{"patch":{"tags":["teams"],"summary":"Rename Team","operationId":"rename_team_v1_teams__team_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Team Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-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_v1_teams__team_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Team Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/teams/{team_id}/members":{"post":{"tags":["teams"],"summary":"Add Team Member","operationId":"add_team_member_v1_teams__team_id__members_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Team Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberAdd"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/teams/{team_id}/members/{user_id}":{"delete":{"tags":["teams"],"summary":"Remove Team Member","operationId":"remove_team_member_v1_teams__team_id__members__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Team Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/availability/blocks":{"get":{"tags":["availability"],"summary":"My Blocks","operationId":"my_blocks_v1_availability_blocks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BlockRead"},"title":"Response My Blocks V1 Availability Blocks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["availability"],"summary":"Create Block","operationId":"create_block_v1_availability_blocks_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/availability/blocks/{block_id}":{"delete":{"tags":["availability"],"summary":"Delete Block","operationId":"delete_block_v1_availability_blocks__block_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"block_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Block Id"}},{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing":{"get":{"tags":["billing"],"summary":"Billing Status","operationId":"billing_status_v1_billing_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/checkout":{"post":{"tags":["billing"],"summary":"Create Checkout","operationId":"create_checkout_v1_billing_checkout_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/portal":{"post":{"tags":["billing"],"summary":"Create Portal","operationId":"create_portal_v1_billing_portal_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/billing/webhook":{"post":{"tags":["billing"],"summary":"Stripe Webhook","description":"Stripe → us. Public, but authenticated by the signature (verified in the\nservice against the webhook secret). Keeps the org's plan/status in sync.","operationId":"stripe_webhook_v1_billing_webhook_post","parameters":[{"name":"Stripe-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"boolean"},"title":"Response Stripe Webhook V1 Billing Webhook Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/assistant":{"get":{"tags":["assistant"],"summary":"Assistant Status","operationId":"assistant_status_v1_assistant_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssistantStatus"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/assistant/chat":{"post":{"tags":["assistant"],"summary":"Assistant Chat","operationId":"assistant_chat_v1_assistant_chat_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatReply"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/admin/moderation":{"get":{"tags":["admin"],"summary":"List Flags","operationId":"list_flags_v1_admin_moderation_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"include_reviewed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Reviewed"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModerationList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/moderation/{flag_id}/resolve":{"post":{"tags":["admin"],"summary":"Resolve Flag","operationId":"resolve_flag_v1_admin_moderation__flag_id__resolve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"flag_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Flag Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModerationFlagRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/active-teams":{"get":{"tags":["admin"],"summary":"Active Teams","operationId":"active_teams_v1_admin_active_teams_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActiveTeams"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/admin/users":{"get":{"tags":["admin"],"summary":"Search Users","operationId":"search_users_v1_admin_users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminUserRow"},"title":"Response Search Users V1 Admin Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/view-as":{"get":{"tags":["admin"],"summary":"View As Log","operationId":"view_as_log_v1_admin_view_as_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ViewAsSession"},"type":"array","title":"Response View As Log V1 Admin View As Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["admin"],"summary":"Start View As","operationId":"start_view_as_v1_admin_view_as_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ViewAsRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ViewAsStarted"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/v1/admin/view-as/{session_id}/end":{"post":{"tags":["admin"],"summary":"End View As","description":"Close a view-as session; its token stops working at once. Called with\nthe admin's OWN token — the view-as token can't write, this included.","operationId":"end_view_as_v1_admin_view_as__session_id__end_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/feedback":{"post":{"tags":["feedback"],"summary":"Send Feedback","operationId":"send_feedback_v1_feedback_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"X-Organization-Id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Organization-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/feedback":{"get":{"tags":["admin"],"summary":"List Feedback","operationId":"list_feedback_v1_admin_feedback_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"include_reviewed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Reviewed"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/admin/feedback/{feedback_id}/resolve":{"post":{"tags":["admin"],"summary":"Resolve Feedback","operationId":"resolve_feedback_v1_admin_feedback__feedback_id__resolve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"feedback_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Feedback Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/client-errors":{"post":{"tags":["meta"],"summary":"Report Client Error","operationId":"report_client_error_v1_client_errors_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientError"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ActiveChurch":{"properties":{"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"members":{"type":"integer","title":"Members"},"active_7d":{"type":"integer","title":"Active 7D"},"active_28d":{"type":"integer","title":"Active 28D"}},"type":"object","required":["organization_id","name","members","active_7d","active_28d"],"title":"ActiveChurch"},"ActiveTeams":{"properties":{"teams_3plus":{"type":"integer","title":"Teams 3Plus"},"teams_2plus":{"type":"integer","title":"Teams 2Plus"},"weeks":{"items":{"$ref":"#/components/schemas/ActiveTeamsWeek"},"type":"array","title":"Weeks"},"churches":{"items":{"$ref":"#/components/schemas/ActiveChurch"},"type":"array","title":"Churches"}},"type":"object","required":["teams_3plus","teams_2plus","weeks","churches"],"title":"ActiveTeams","description":"The roadmap number: churches with 3+ active members this week."},"ActiveTeamsWeek":{"properties":{"weeks_ago":{"type":"integer","title":"Weeks Ago"},"week_ending":{"type":"string","format":"date","title":"Week Ending"},"teams_3plus":{"type":"integer","title":"Teams 3Plus"},"teams_2plus":{"type":"integer","title":"Teams 2Plus"}},"type":"object","required":["weeks_ago","week_ending","teams_3plus","teams_2plus"],"title":"ActiveTeamsWeek"},"ActivityRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"verb":{"type":"string","title":"Verb"},"summary":{"type":"string","title":"Summary"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"actor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","verb","summary","title","actor_name","created_at"],"title":"ActivityRead"},"AdminUserRow":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"type":"string","title":"Name"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"is_admin":{"type":"boolean","title":"Is Admin","default":false}},"type":"object","required":["id","email","name","is_active","created_at"],"title":"AdminUserRow"},"AnalyticsSummary":{"properties":{"total_songs":{"type":"integer","title":"Total Songs"},"total_events":{"type":"integer","title":"Total Events"},"songs_used":{"type":"integer","title":"Songs Used"},"songs_unused":{"type":"integer","title":"Songs Unused"},"top_song":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Top Song"}},"type":"object","required":["total_songs","total_events","songs_used","songs_unused","top_song"],"title":"AnalyticsSummary"},"ArrangementBlock":{"properties":{"kind":{"type":"string","const":"block","title":"Kind","default":"block"},"label":{"type":"string","maxLength":80,"title":"Label","default":""},"key":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Key"},"text":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Text"},"times":{"type":"integer","maximum":16.0,"minimum":1.0,"title":"Times","default":1},"note":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Note"}},"type":"object","title":"ArrangementBlock"},"ArrangementCreate":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"items":{"items":{"oneOf":[{"$ref":"#/components/schemas/ArrangementBlock"},{"$ref":"#/components/schemas/ArrangementCue"}],"discriminator":{"propertyName":"kind","mapping":{"block":"#/components/schemas/ArrangementBlock","cue":"#/components/schemas/ArrangementCue"}}},"type":"array","maxItems":64,"minItems":1,"title":"Items"}},"type":"object","required":["name","items"],"title":"ArrangementCreate"},"ArrangementCue":{"properties":{"kind":{"type":"string","const":"cue","title":"Kind"},"label":{"type":"string","maxLength":40,"minLength":1,"title":"Label"},"times":{"type":"integer","maximum":16.0,"minimum":1.0,"title":"Times","default":1},"note":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Note"}},"type":"object","required":["kind","label"],"title":"ArrangementCue"},"ArrangementRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"song_id":{"type":"string","format":"uuid","title":"Song Id"},"name":{"type":"string","title":"Name"},"items":{"items":{"oneOf":[{"$ref":"#/components/schemas/ArrangementBlock"},{"$ref":"#/components/schemas/ArrangementCue"}],"discriminator":{"propertyName":"kind","mapping":{"block":"#/components/schemas/ArrangementBlock","cue":"#/components/schemas/ArrangementCue"}}},"type":"array","title":"Items"},"created_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","song_id","name","items","created_by","created_at","updated_at"],"title":"ArrangementRead"},"ArrangementUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Name"},"items":{"anyOf":[{"items":{"oneOf":[{"$ref":"#/components/schemas/ArrangementBlock"},{"$ref":"#/components/schemas/ArrangementCue"}],"discriminator":{"propertyName":"kind","mapping":{"block":"#/components/schemas/ArrangementBlock","cue":"#/components/schemas/ArrangementCue"}}},"type":"array","maxItems":64,"minItems":1},{"type":"null"}],"title":"Items"}},"type":"object","title":"ArrangementUpdate"},"AssignmentCreate":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"position":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Position"}},"type":"object","required":["user_id"],"title":"AssignmentCreate"},"AssignmentRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"position":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position"},"status":{"$ref":"#/components/schemas/AssignmentStatus"},"user":{"$ref":"#/components/schemas/UserSummary"}},"type":"object","required":["id","position","status","user"],"title":"AssignmentRead"},"AssignmentStatus":{"type":"string","enum":["invited","accepted","declined"],"title":"AssignmentStatus"},"AssignmentUpdate":{"properties":{"position":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Position"},"status":{"anyOf":[{"$ref":"#/components/schemas/AssignmentStatus"},{"type":"null"}]}},"type":"object","title":"AssignmentUpdate"},"AssistantStatus":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"daily_limit":{"type":"integer","title":"Daily Limit"},"used_today":{"type":"integer","title":"Used Today"},"remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Remaining"}},"type":"object","required":["enabled","daily_limit","used_today","remaining"],"title":"AssistantStatus"},"BillingStatus":{"properties":{"plan":{"type":"string","title":"Plan"},"status":{"type":"string","title":"Status"},"current_period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Current Period End"},"billing_enabled":{"type":"boolean","title":"Billing Enabled"}},"type":"object","required":["plan","status","current_period_end","billing_enabled"],"title":"BillingStatus"},"BlockCreate":{"properties":{"start_date":{"type":"string","format":"date","title":"Start Date"},"end_date":{"type":"string","format":"date","title":"End Date"},"note":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Note"}},"type":"object","required":["start_date","end_date"],"title":"BlockCreate"},"BlockRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"start_date":{"type":"string","format":"date","title":"Start Date"},"end_date":{"type":"string","format":"date","title":"End Date"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["id","start_date","end_date","note"],"title":"BlockRead"},"ChatMessage":{"properties":{"role":{"type":"string","title":"Role"},"content":{"type":"string","title":"Content"}},"type":"object","required":["role","content"],"title":"ChatMessage"},"ChatReply":{"properties":{"reply":{"type":"string","title":"Reply"}},"type":"object","required":["reply"],"title":"ChatReply"},"ChatRequest":{"properties":{"messages":{"items":{"$ref":"#/components/schemas/ChatMessage"},"type":"array","title":"Messages"}},"type":"object","title":"ChatRequest"},"CheckoutResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"CheckoutResponse"},"ClientError":{"properties":{"message":{"type":"string","maxLength":2000,"title":"Message","default":""},"kind":{"type":"string","maxLength":80,"title":"Kind","default":"Error"},"stack":{"type":"string","maxLength":8000,"title":"Stack","default":""},"page":{"type":"string","maxLength":500,"title":"Page","default":""},"app_version":{"type":"string","maxLength":32,"title":"App Version","default":""},"locale":{"type":"string","maxLength":8,"title":"Locale","default":""}},"type":"object","title":"ClientError"},"DeadLinkReport":{"properties":{"notified":{"type":"boolean","title":"Notified"}},"type":"object","required":["notified"],"title":"DeadLinkReport"},"EventCreate":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"type":{"$ref":"#/components/schemas/EventType","default":"service"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"},"format":{"$ref":"#/components/schemas/EventFormat","default":"offline"},"location":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Location"},"status":{"$ref":"#/components/schemas/EventStatus","default":"scheduled"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"rrule":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Rrule"},"repeat":{"type":"string","enum":["none","daily","weekly","monthly"],"title":"Repeat","default":"none"},"repeat_until":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Repeat Until"}},"type":"object","required":["title","starts_at"],"title":"EventCreate"},"EventFormat":{"type":"string","enum":["offline","online"],"title":"EventFormat"},"EventRead":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"type":{"$ref":"#/components/schemas/EventType","default":"service"},"starts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Starts At"},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"},"format":{"$ref":"#/components/schemas/EventFormat","default":"offline"},"location":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Location"},"status":{"$ref":"#/components/schemas/EventStatus","default":"scheduled"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"created_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"},"series_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Series Id"},"original_starts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Original Starts At"},"rrule":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rrule"},"virtual":{"type":"boolean","title":"Virtual","default":false},"setlist_shared_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Setlist Shared At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["title","starts_at","id","organization_id","created_by","series_id","created_at","updated_at"],"title":"EventRead"},"EventSongCreate":{"properties":{"song_id":{"type":"string","format":"uuid","title":"Song Id"},"key_override":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Key Override"},"arrangement_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Arrangement Id"},"leader_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Leader Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["song_id"],"title":"EventSongCreate"},"EventSongRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"order":{"type":"integer","title":"Order"},"key_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Override"},"leader_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Leader Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"song":{"$ref":"#/components/schemas/SongSummary"},"arrangement":{"anyOf":[{"$ref":"#/components/schemas/ArrangementRead"},{"type":"null"}]}},"type":"object","required":["id","order","key_override","leader_id","notes","song"],"title":"EventSongRead"},"EventSongReorder":{"properties":{"item_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Item Ids"}},"type":"object","required":["item_ids"],"title":"EventSongReorder"},"EventSongUpdate":{"properties":{"key_override":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Key Override"},"arrangement_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Arrangement Id"},"leader_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Leader Id"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Order"}},"type":"object","title":"EventSongUpdate"},"EventStatus":{"type":"string","enum":["draft","scheduled","live","done"],"title":"EventStatus"},"EventType":{"type":"string","enum":["service","rehearsal","meeting","other"],"title":"EventType"},"EventUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Title"},"type":{"anyOf":[{"$ref":"#/components/schemas/EventType"},{"type":"null"}]},"starts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Starts At"},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"},"format":{"anyOf":[{"$ref":"#/components/schemas/EventFormat"},{"type":"null"}]},"location":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Location"},"status":{"anyOf":[{"$ref":"#/components/schemas/EventStatus"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"rrule":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Rrule"}},"type":"object","title":"EventUpdate"},"FeedbackCreate":{"properties":{"kind":{"type":"string","enum":["bug","idea","other"],"title":"Kind","default":"other"},"message":{"type":"string","maxLength":5000,"minLength":3,"title":"Message"},"page":{"type":"string","maxLength":255,"title":"Page","default":""},"locale":{"type":"string","maxLength":8,"title":"Locale","default":""},"app_version":{"type":"string","maxLength":32,"title":"App Version","default":""}},"type":"object","required":["message"],"title":"FeedbackCreate"},"FeedbackList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FeedbackRead"},"type":"array","title":"Items"},"open_count":{"type":"integer","title":"Open Count"}},"type":"object","required":["items","open_count"],"title":"FeedbackList"},"FeedbackRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"email":{"type":"string","title":"Email"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"message":{"type":"string","title":"Message"},"page":{"type":"string","title":"Page"},"locale":{"type":"string","title":"Locale"},"user_agent":{"type":"string","title":"User Agent"},"app_version":{"type":"string","title":"App Version"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","user_id","organization_id","email","name","kind","message","page","locale","user_agent","app_version","status","created_at"],"title":"FeedbackRead"},"FileLink":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"FileLink"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InvitationCreate":{"properties":{"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"role":{"$ref":"#/components/schemas/MemberRole","default":"member"}},"type":"object","title":"InvitationCreate"},"InvitationPreview":{"properties":{"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"organization_name":{"type":"string","title":"Organization Name"},"role":{"$ref":"#/components/schemas/MemberRole"},"inviter_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Inviter Name"},"status":{"$ref":"#/components/schemas/InvitationStatus"},"valid":{"type":"boolean","title":"Valid"},"expired":{"type":"boolean","title":"Expired","default":false},"reusable":{"type":"boolean","title":"Reusable","default":true}},"type":"object","required":["organization_id","organization_name","role","inviter_name","status","valid"],"title":"InvitationPreview"},"InvitationRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"role":{"$ref":"#/components/schemas/MemberRole"},"status":{"$ref":"#/components/schemas/InvitationStatus"},"token":{"type":"string","title":"Token"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","email","role","status","token","expires_at","created_at"],"title":"InvitationRead"},"InvitationStatus":{"type":"string","enum":["pending","accepted","revoked"],"title":"InvitationStatus"},"KeyCount":{"properties":{"key":{"type":"string","title":"Key"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["key","count"],"title":"KeyCount"},"LibraryItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"title":{"type":"string","title":"Title"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"artist":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artist"},"alt_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alt Title"},"language":{"$ref":"#/components/schemas/SongLanguage"},"original_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Key"},"tempo":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tempo"},"tags":{"additionalProperties":true,"type":"object","title":"Tags"},"youtube_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Youtube Url"},"chord_notation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chord Notation"},"visibility":{"$ref":"#/components/schemas/SongVisibility"},"official":{"type":"boolean","title":"Official","default":false},"forked_from":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Forked From"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"match_line":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Line"},"shared_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shared By"},"copy_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Copy Id"},"added_by":{"type":"integer","title":"Added By","default":0}},"type":"object","required":["id","organization_id","title","subtitle","artist","alt_title","language","original_key","tempo","tags","youtube_url","chord_notation","visibility","forked_from","created_at","updated_at"],"title":"LibraryItem","description":"A library row. Same light shape as any list row (no `body` — 100+ shared\nsongs would otherwise ship every set of lyrics on every open) plus who\nshared it."},"LibraryPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/LibraryItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"LibraryPage"},"LibrarySongRead":{"properties":{"title":{"type":"string","maxLength":255,"minLength":1,"title":"Title"},"chord_notation":{"anyOf":[{"type":"string","enum":["german","english"]},{"type":"null"}],"title":"Chord Notation"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"artist":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Artist"},"alt_title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Alt Title"},"language":{"$ref":"#/components/schemas/SongLanguage","default":"en"},"original_key":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Original Key"},"tempo":{"anyOf":[{"type":"integer","maximum":320.0,"minimum":20.0},{"type":"null"}],"title":"Tempo"},"body":{"type":"string","title":"Body","default":""},"tags":{"additionalProperties":true,"type":"object","title":"Tags"},"youtube_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Youtube Url"},"visibility":{"$ref":"#/components/schemas/SongVisibility","default":"org"},"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"forked_from":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Forked From"},"official":{"type":"boolean","title":"Official","default":false},"shared_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shared By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"content_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Content Updated At"},"is_own":{"type":"boolean","title":"Is Own","default":false},"copy_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Copy Id"},"translations":{"items":{"$ref":"#/components/schemas/TranslationRead"},"type":"array","title":"Translations","default":[]},"added_by":{"type":"integer","title":"Added By","default":0}},"type":"object","required":["title","id","organization_id","forked_from","created_at","updated_at"],"title":"LibrarySongRead","description":"A library song opened before it is added: the whole chart, read-only,\nso a church sees what it is taking instead of buying a cat in a bag."},"LinkTranslationRequest":{"properties":{"other_song_id":{"type":"string","format":"uuid","title":"Other Song Id"}},"type":"object","required":["other_song_id"],"title":"LinkTranslationRequest"},"LiveState":{"properties":{"index":{"type":"integer","minimum":0.0,"title":"Index"},"driver_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Driver Id"},"driver_name":{"type":"string","title":"Driver Name","default":""}},"type":"object","required":["index"],"title":"LiveState","description":"Current song index in a live service + who's driving. On POST only\n`index` is read; the driver is taken from the authenticated caller."},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"MemberAvailability":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["user_id","name","status"],"title":"MemberAvailability"},"MemberRead":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"role":{"$ref":"#/components/schemas/MemberRole"},"status":{"$ref":"#/components/schemas/MembershipStatus"},"instruments":{"items":{"type":"string"},"type":"array","title":"Instruments","default":[]}},"type":"object","required":["user_id","name","email","avatar_url","role","status"],"title":"MemberRead"},"MemberRole":{"type":"string","enum":["owner","leader","member","viewer"],"title":"MemberRole","description":"Fixed role set for Phase 1, stored on the membership. Full data-driven\nRBAC (roles/permissions tables) is a later phase; the migration path is to\nmap this column onto a Role FK without touching call sites."},"MemberUpdate":{"properties":{"role":{"anyOf":[{"$ref":"#/components/schemas/MemberRole"},{"type":"null"}]},"instruments":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Instruments"}},"type":"object","title":"MemberUpdate"},"MembershipStatus":{"type":"string","enum":["active","invited","suspended"],"title":"MembershipStatus"},"ModerationFlagRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"song_id":{"type":"string","format":"uuid","title":"Song Id"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"title":{"type":"string","title":"Title"},"reason":{"type":"string","title":"Reason"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","song_id","organization_id","user_id","title","reason","status","created_at"],"title":"ModerationFlagRead"},"ModerationList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ModerationFlagRead"},"type":"array","title":"Items"},"open_count":{"type":"integer","title":"Open Count"}},"type":"object","required":["items","open_count"],"title":"ModerationList"},"NoteCreate":{"properties":{"target_type":{"$ref":"#/components/schemas/NoteTargetType"},"target_id":{"type":"string","format":"uuid","title":"Target Id"},"scope":{"$ref":"#/components/schemas/NoteScope","default":"shared"},"body":{"type":"string","maxLength":4000,"minLength":1,"title":"Body"}},"type":"object","required":["target_type","target_id","body"],"title":"NoteCreate"},"NoteRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"target_type":{"$ref":"#/components/schemas/NoteTargetType"},"target_id":{"type":"string","format":"uuid","title":"Target Id"},"scope":{"$ref":"#/components/schemas/NoteScope"},"body":{"type":"string","title":"Body"},"author_id":{"type":"string","format":"uuid","title":"Author Id"},"author_name":{"type":"string","title":"Author Name"},"is_mine":{"type":"boolean","title":"Is Mine"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","target_type","target_id","scope","body","author_id","author_name","is_mine","created_at","updated_at"],"title":"NoteRead"},"NoteScope":{"type":"string","enum":["shared","personal"],"title":"NoteScope"},"NoteTargetType":{"type":"string","enum":["song","event","event_song"],"title":"NoteTargetType","description":"What a note is attached to. Polymorphic (target_type, target_id) — same\nshape as the activity feed, so new targets are one enum value, no new table."},"NoteUpdate":{"properties":{"body":{"type":"string","maxLength":4000,"minLength":1,"title":"Body"}},"type":"object","required":["body"],"title":"NoteUpdate"},"NotificationList":{"properties":{"items":{"items":{"$ref":"#/components/schemas/NotificationRead"},"type":"array","title":"Items"},"unread":{"type":"integer","title":"Unread"}},"type":"object","required":["items","unread"],"title":"NotificationList"},"NotificationRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","title":"Type"},"params":{"additionalProperties":true,"type":"object","title":"Params"},"link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link"},"summary":{"type":"string","title":"Summary"},"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","type","params","link","summary","read_at","created_at"],"title":"NotificationRead"},"OccurrenceOpen":{"properties":{"starts_at":{"type":"string","format":"date-time","title":"Starts At"}},"type":"object","required":["starts_at"],"title":"OccurrenceOpen","description":"Which date of a series to open (its original, rule-given start)."},"OrgCreate":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"slug":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Slug"},"default_language":{"type":"string","maxLength":8,"title":"Default Language","default":"en"},"timezone":{"type":"string","maxLength":64,"title":"Timezone","default":"UTC"},"chord_notation":{"anyOf":[{"type":"string","enum":["german","english"]},{"type":"null"}],"title":"Chord Notation"}},"type":"object","required":["name"],"title":"OrgCreate"},"OrgRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"default_language":{"type":"string","title":"Default Language"},"timezone":{"type":"string","title":"Timezone"},"chord_notation":{"type":"string","title":"Chord Notation"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","slug","default_language","timezone","chord_notation","created_at"],"title":"OrgRead"},"OrgUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"default_language":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Default Language"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"chord_notation":{"anyOf":[{"type":"string","enum":["german","english"]},{"type":"null"}],"title":"Chord Notation"}},"type":"object","title":"OrgUpdate"},"OrgWithRole":{"properties":{"organization":{"$ref":"#/components/schemas/OrgRead"},"role":{"$ref":"#/components/schemas/MemberRole"},"status":{"$ref":"#/components/schemas/MembershipStatus"},"permissions":{"items":{"type":"string"},"type":"array","title":"Permissions","default":[]}},"type":"object","required":["organization","role","status"],"title":"OrgWithRole"},"PasswordResetConfirm":{"properties":{"token":{"type":"string","title":"Token"},"password":{"type":"string","maxLength":128,"minLength":8,"title":"Password"}},"type":"object","required":["token","password"],"title":"PasswordResetConfirm"},"PasswordResetRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"PasswordResetRequest"},"PlaylistLink":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"PlaylistLink","description":"The code in an event's short playlist link: selida.app/p/<token>."},"PortalResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"PortalResponse"},"PreferenceRead":{"properties":{"type":{"type":"string","title":"Type"},"in_app":{"type":"boolean","title":"In App"},"email":{"type":"boolean","title":"Email"}},"type":"object","required":["type","in_app","email"],"title":"PreferenceRead"},"PreferencesUpdate":{"properties":{"preferences":{"items":{"$ref":"#/components/schemas/PreferenceRead"},"type":"array","title":"Preferences"}},"type":"object","required":["preferences"],"title":"PreferencesUpdate"},"PublicPlaylist":{"properties":{"urls":{"items":{"type":"string"},"type":"array","title":"Urls"}},"type":"object","required":["urls"],"title":"PublicPlaylist","description":"What the short link opens, for anyone holding it: the setlist's YouTube\nlinks in order — no title, church or people."},"RefreshRequest":{"properties":{"refresh_token":{"type":"string","title":"Refresh Token"}},"type":"object","required":["refresh_token"],"title":"RefreshRequest"},"RegisterRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":128,"minLength":8,"title":"Password"},"name":{"type":"string","maxLength":200,"title":"Name","default":""}},"type":"object","required":["email","password"],"title":"RegisterRequest"},"RepertoireRead":{"properties":{"songs":{"items":{"$ref":"#/components/schemas/RepertoireSong"},"type":"array","title":"Songs"}},"type":"object","required":["songs"],"title":"RepertoireRead"},"RepertoireSong":{"properties":{"song_id":{"type":"string","format":"uuid","title":"Song Id"},"title":{"type":"string","title":"Title"},"artist":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artist"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"original_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Key"},"language":{"type":"string","title":"Language"},"tempo":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tempo"},"state":{"type":"string","enum":["learning","new","often","regular","resting","unsung"],"title":"State"},"first_sung_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Sung At"},"last_sung_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Sung At"},"next_planned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Planned At"},"times_sung":{"type":"integer","title":"Times Sung"},"sung_90d":{"type":"integer","title":"Sung 90D"},"sung_recently":{"type":"integer","title":"Sung Recently"},"overplayed":{"type":"boolean","title":"Overplayed"},"rehearsed":{"type":"integer","title":"Rehearsed"}},"type":"object","required":["song_id","title","artist","subtitle","original_key","language","tempo","state","first_sung_at","last_sung_at","next_planned_at","times_sung","sung_90d","sung_recently","overplayed","rehearsed"],"title":"RepertoireSong","description":"One of the church's songs, with what its setlist history says."},"ReviewFinding":{"properties":{"kind":{"type":"string","title":"Kind"},"severity":{"type":"string","enum":["warn","info"],"title":"Severity"},"message":{"type":"string","title":"Message"},"quote":{"type":"string","title":"Quote","default":""}},"type":"object","required":["kind","severity","message"],"title":"ReviewFinding"},"SetAvailability":{"properties":{"available":{"type":"boolean","title":"Available"}},"type":"object","required":["available"],"title":"SetAvailability"},"SetlistCopy":{"properties":{"from_event_id":{"type":"string","format":"uuid","title":"From Event Id"},"mode":{"type":"string","enum":["replace","append"],"title":"Mode","default":"replace"}},"type":"object","required":["from_event_id"],"title":"SetlistCopy","description":"Take another event's set into this one (\"Take the set from…\")."},"SetlistCopyResult":{"properties":{"added":{"type":"integer","title":"Added"},"skipped":{"type":"integer","title":"Skipped"}},"type":"object","required":["added","skipped"],"title":"SetlistCopyResult"},"SetlistShareResult":{"properties":{"sent_to":{"type":"integer","title":"Sent To"},"setlist_shared_at":{"type":"string","format":"date-time","title":"Setlist Shared At"}},"type":"object","required":["sent_to","setlist_shared_at"],"title":"SetlistShareResult","description":"What \"Send to the team\" did: how many people it reached, and when."},"SetlistSource":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"type":{"$ref":"#/components/schemas/EventType"},"starts_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Starts At"},"song_count":{"type":"integer","title":"Song Count"},"songs":{"items":{"type":"string"},"type":"array","title":"Songs"}},"type":"object","required":["id","title","type","starts_at","song_count","songs"],"title":"SetlistSource","description":"A nearby event with a set, offered as a place to take the set from."},"SongCreate":{"properties":{"title":{"type":"string","maxLength":255,"minLength":1,"title":"Title"},"chord_notation":{"anyOf":[{"type":"string","enum":["german","english"]},{"type":"null"}],"title":"Chord Notation"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"artist":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Artist"},"alt_title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Alt Title"},"language":{"$ref":"#/components/schemas/SongLanguage","default":"en"},"original_key":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Original Key"},"tempo":{"anyOf":[{"type":"integer","maximum":320.0,"minimum":20.0},{"type":"null"}],"title":"Tempo"},"body":{"type":"string","title":"Body","default":""},"tags":{"additionalProperties":true,"type":"object","title":"Tags"},"youtube_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Youtube Url"},"visibility":{"$ref":"#/components/schemas/SongVisibility","default":"org"}},"type":"object","required":["title"],"title":"SongCreate"},"SongFileRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"size":{"type":"integer","title":"Size"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","kind","size","created_at"],"title":"SongFileRead"},"SongFiles":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"can_manage":{"type":"boolean","title":"Can Manage"},"used":{"type":"integer","title":"Used"},"limit":{"type":"integer","title":"Limit"},"file_limit":{"type":"integer","title":"File Limit"},"files":{"items":{"$ref":"#/components/schemas/SongFileRead"},"type":"array","title":"Files"}},"type":"object","required":["enabled","can_manage","used","limit","file_limit","files"],"title":"SongFiles"},"SongLanguage":{"type":"string","enum":["uk","ru","en","pl","es"],"title":"SongLanguage"},"SongListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"title":{"type":"string","title":"Title"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"artist":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artist"},"alt_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alt Title"},"language":{"$ref":"#/components/schemas/SongLanguage"},"original_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Key"},"tempo":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tempo"},"tags":{"additionalProperties":true,"type":"object","title":"Tags"},"youtube_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Youtube Url"},"chord_notation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chord Notation"},"visibility":{"$ref":"#/components/schemas/SongVisibility"},"official":{"type":"boolean","title":"Official","default":false},"forked_from":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Forked From"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"match_line":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Match Line"}},"type":"object","required":["id","organization_id","title","subtitle","artist","alt_title","language","original_key","tempo","tags","youtube_url","chord_notation","visibility","forked_from","created_at","updated_at"],"title":"SongListItem","description":"Lighter row for the library list — everything except the (potentially\nlarge) chord/lyrics `body`, which the viewer fetches per-song."},"SongMatch":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"artist":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artist"},"alt_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alt Title"},"language":{"$ref":"#/components/schemas/SongLanguage"},"original_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Key"},"official":{"type":"boolean","title":"Official","default":false},"is_own":{"type":"boolean","title":"Is Own","default":false},"shared_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shared By"},"line":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Line"}},"type":"object","required":["id","title","artist","alt_title","language","original_key"],"title":"SongMatch","description":"A song the one being started may already be (\"Already in Selida\")."},"SongPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SongListItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"SongPage"},"SongRead":{"properties":{"title":{"type":"string","maxLength":255,"minLength":1,"title":"Title"},"chord_notation":{"anyOf":[{"type":"string","enum":["german","english"]},{"type":"null"}],"title":"Chord Notation"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"artist":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Artist"},"alt_title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Alt Title"},"language":{"$ref":"#/components/schemas/SongLanguage","default":"en"},"original_key":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Original Key"},"tempo":{"anyOf":[{"type":"integer","maximum":320.0,"minimum":20.0},{"type":"null"}],"title":"Tempo"},"body":{"type":"string","title":"Body","default":""},"tags":{"additionalProperties":true,"type":"object","title":"Tags"},"youtube_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Youtube Url"},"visibility":{"$ref":"#/components/schemas/SongVisibility","default":"org"},"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"forked_from":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Forked From"},"official":{"type":"boolean","title":"Official","default":false},"shared_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shared By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"content_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Content Updated At"}},"type":"object","required":["title","id","organization_id","forked_from","created_at","updated_at"],"title":"SongRead"},"SongReview":{"properties":{"checked":{"type":"boolean","title":"Checked"},"findings":{"items":{"$ref":"#/components/schemas/ReviewFinding"},"type":"array","title":"Findings","default":[]}},"type":"object","required":["checked"],"title":"SongReview","description":"Empty `findings` with `checked=True` means Selida read it and it's fine;\n`checked=False` means she never got to look (AI off, or upstream trouble),\nwhich must not read to the user as a clean bill of health."},"SongReviewRequest":{"properties":{"title":{"type":"string","maxLength":255,"title":"Title","default":""},"original_key":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Original Key"},"body":{"type":"string","maxLength":20000,"title":"Body","default":""},"locale":{"type":"string","enum":["en","ru","uk","pl","es"],"title":"Locale","default":"en"}},"type":"object","title":"SongReviewRequest","description":"The chart as it stands in the editor. Sent rather than read from the\ndatabase so unsaved edits are what gets looked at — reviewing the stored\ncopy told people about the version they had just replaced."},"SongSetlistUse":{"properties":{"total":{"type":"integer","title":"Total"},"upcoming":{"type":"integer","title":"Upcoming"}},"type":"object","required":["total","upcoming"],"title":"SongSetlistUse","description":"How many setlists hold a song — said before it is deleted, since\ndeleting it takes it out of every one of them."},"SongSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"artist":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artist"},"original_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Key"},"language":{"type":"string","title":"Language"},"chord_notation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chord Notation"},"youtube_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Youtube Url"}},"type":"object","required":["id","title","subtitle","artist","original_key","language","chord_notation","youtube_url"],"title":"SongSummary"},"SongUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Title"},"chord_notation":{"anyOf":[{"type":"string","enum":["german","english"]},{"type":"null"}],"title":"Chord Notation"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"artist":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Artist"},"alt_title":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Alt Title"},"language":{"anyOf":[{"$ref":"#/components/schemas/SongLanguage"},{"type":"null"}]},"original_key":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Original Key"},"tempo":{"anyOf":[{"type":"integer","maximum":320.0,"minimum":20.0},{"type":"null"}],"title":"Tempo"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"tags":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Tags"},"youtube_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Youtube Url"},"visibility":{"anyOf":[{"$ref":"#/components/schemas/SongVisibility"},{"type":"null"}]},"base_content_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Base Content Updated At"}},"type":"object","title":"SongUpdate"},"SongUsageRead":{"properties":{"song_id":{"type":"string","format":"uuid","title":"Song Id"},"title":{"type":"string","title":"Title"},"original_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Key"},"language":{"type":"string","title":"Language"},"times_used":{"type":"integer","title":"Times Used"},"last_used":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used"}},"type":"object","required":["song_id","title","original_key","language","times_used","last_used"],"title":"SongUsageRead"},"SongVisibility":{"type":"string","enum":["private","org","public"],"title":"SongVisibility"},"TeamCreate":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"TeamCreate"},"TeamMemberAdd":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"}},"type":"object","required":["user_id"],"title":"TeamMemberAdd"},"TeamMemberRead":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"name":{"type":"string","title":"Name"},"instruments":{"items":{"type":"string"},"type":"array","title":"Instruments","default":[]}},"type":"object","required":["user_id","name"],"title":"TeamMemberRead"},"TeamRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"members":{"items":{"$ref":"#/components/schemas/TeamMemberRead"},"type":"array","title":"Members"}},"type":"object","required":["id","name","members"],"title":"TeamRead"},"TeamUpdate":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"TeamUpdate"},"TokenPair":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"}},"type":"object","required":["access_token","refresh_token"],"title":"TokenPair"},"TranslationRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"language":{"$ref":"#/components/schemas/SongLanguage"},"original_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Key"}},"type":"object","required":["id","title","language","original_key"],"title":"TranslationRead"},"UpstreamRead":{"properties":{"original":{"$ref":"#/components/schemas/UpstreamSong"},"local_changes":{"type":"boolean","title":"Local Changes"}},"type":"object","required":["original","local_changes"],"title":"UpstreamRead","description":"An update waiting for a church's copy of a library song."},"UpstreamSong":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"subtitle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subtitle"},"artist":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artist"},"alt_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alt Title"},"language":{"$ref":"#/components/schemas/SongLanguage"},"original_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Key"},"tempo":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tempo"},"body":{"type":"string","title":"Body"},"youtube_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Youtube Url"},"chord_notation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chord Notation"},"content_updated_at":{"type":"string","format":"date-time","title":"Content Updated At"}},"type":"object","required":["id","title","subtitle","artist","alt_title","language","original_key","tempo","body","youtube_url","chord_notation","content_updated_at"],"title":"UpstreamSong","description":"What a library original says now — the side of the diff a church is\noffered."},"UsagePoint":{"properties":{"period":{"type":"string","title":"Period"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["period","count"],"title":"UsagePoint"},"UserRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","format":"email","title":"Email"},"name":{"type":"string","title":"Name"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"locale":{"type":"string","title":"Locale"},"is_active":{"type":"boolean","title":"Is Active"},"email_verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Email Verified At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"seen_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seen Version"},"is_admin":{"type":"boolean","title":"Is Admin","default":false},"viewing_as":{"anyOf":[{"$ref":"#/components/schemas/ViewingAs"},{"type":"null"}]}},"type":"object","required":["id","email","name","avatar_url","locale","is_active","email_verified_at","created_at"],"title":"UserRead"},"UserSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"}},"type":"object","required":["id","name","email","avatar_url"],"title":"UserSummary"},"UserUpdate":{"properties":{"locale":{"anyOf":[{"type":"string","enum":["en","ru","uk","pl","es"]},{"type":"null"}],"title":"Locale"},"seen_version":{"anyOf":[{"type":"string","pattern":"^\\d{1,4}\\.\\d{1,4}\\.\\d{1,4}$"},{"type":"null"}],"title":"Seen Version"}},"type":"object","title":"UserUpdate","description":"A partial update of your own profile: send only what changes."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"ViewAsRequest":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"reason":{"type":"string","maxLength":300,"title":"Reason","default":""}},"type":"object","required":["user_id"],"title":"ViewAsRequest"},"ViewAsSession":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"actor_email":{"type":"string","title":"Actor Email"},"target_id":{"type":"string","format":"uuid","title":"Target Id"},"target_email":{"type":"string","title":"Target Email"},"reason":{"type":"string","title":"Reason"},"ip":{"type":"string","title":"Ip"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"ended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ended At"}},"type":"object","required":["id","actor_email","target_id","target_email","reason","ip","created_at","expires_at","ended_at"],"title":"ViewAsSession"},"ViewAsStarted":{"properties":{"session":{"$ref":"#/components/schemas/ViewAsSession"},"access_token":{"type":"string","title":"Access Token"}},"type":"object","required":["session","access_token"],"title":"ViewAsStarted"},"ViewingAs":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id"},"actor_email":{"type":"string","title":"Actor Email"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["session_id","actor_email","expires_at"],"title":"ViewingAs","description":"On `/auth/me` while a superadmin views Selida as this user: who is\nreally looking, and until when (see domains/impersonation)."},"WebCandidate":{"properties":{"url":{"type":"string","title":"Url"},"host":{"type":"string","title":"Host"},"title":{"type":"string","title":"Title"},"preview":{"items":{"type":"string"},"type":"array","title":"Preview"},"sung_lines":{"type":"integer","title":"Sung Lines"},"chord_lines":{"type":"integer","title":"Chord Lines"},"chart":{"type":"string","title":"Chart"}},"type":"object","required":["url","host","title","preview","sung_lines","chord_lines","chart"],"title":"WebCandidate","description":"One page that may hold the song — the chart lifted out of it verbatim."},"WebSearchRequest":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"artist":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Artist"},"language":{"anyOf":[{"$ref":"#/components/schemas/SongLanguage"},{"type":"null"}]}},"type":"object","required":["title"],"title":"WebSearchRequest","description":"\"Find it on the web\": the song as the person knows it."},"WebSearchResult":{"properties":{"candidates":{"items":{"$ref":"#/components/schemas/WebCandidate"},"type":"array","title":"Candidates"}},"type":"object","required":["candidates"],"title":"WebSearchResult"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}