{"openapi":"3.1.0","info":{"title":"Laudanza","description":"Backend de gestión y publicación del cancionero Laudanza","version":"0.1.0"},"paths":{"/api/health":{"get":{"summary":"Health","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/healthz":{"get":{"summary":"Healthz","description":"Liveness + DB ping for orchestrators.","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/register":{"post":{"tags":["auth"],"summary":"Register","operationId":"register_api_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/UserPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/verify-email":{"post":{"tags":["auth"],"summary":"Verify Email","operationId":"verify_email_api_auth_verify_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyEmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_api_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/LoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/totp":{"post":{"tags":["auth"],"summary":"Login Totp","operationId":"login_totp_api_auth_totp_post","parameters":[{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpCodeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/forgot-password":{"post":{"tags":["auth"],"summary":"Forgot Password","description":"Anti-enumeration: always returns 202, regardless of whether the email exists.","operationId":"forgot_password_api_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/reset-password":{"post":{"tags":["auth"],"summary":"Reset Password","operationId":"reset_password_api_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/me":{"get":{"tags":["auth"],"summary":"Deprecated. Use GET /api/me.","description":"Backwards-compatible alias of /api/me. Adds a Deprecation header.","operationId":"legacy_me_api_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPublic"}}}}},"deprecated":true}},"/api/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","operationId":"logout_api_auth_logout_post","parameters":[{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/providers":{"get":{"tags":["auth"],"summary":"Auth Providers","description":"Which social sign-in providers the operator has configured (public).","operationId":"auth_providers_api_auth_providers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Response Auth Providers Api Auth Providers Get"}}}}}}},"/api/auth/google":{"get":{"tags":["auth"],"summary":"Google Start","operationId":"google_start_api_auth_google_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/google/callback":{"get":{"tags":["auth"],"summary":"Google Callback","operationId":"google_callback_api_auth_google_callback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/google/native":{"post":{"tags":["auth"],"summary":"Google Native","description":"Sign in with an ID token from the native Android Google Sign-In flow.\n\nThe WebView can't run the redirect OAuth flow (Google blocks embedded\nuser-agents), so the app obtains an ID token natively and posts it here.","operationId":"google_native_api_auth_google_native_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleNativeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/editable":{"post":{"tags":["me"],"summary":"Editable","description":"POST so a large cancionero's song ids fit (no URL length limit); it\nchanges nothing.","operationId":"editable_api_me_editable_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditableQuery"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Editable Api Me Editable Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me":{"get":{"tags":["me"],"summary":"Me","operationId":"me_api_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["me"],"summary":"Update Me","operationId":"update_me_api_me_patch","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["me"],"summary":"Delete Me","description":"Soft-delete the calling user's account.\n\nThe user's row sticks around (so songs/cancioneros they own retain\na foreign key — content isn't lost) but `status` flips to\n`deleted`, all live sessions are invalidated, and the session\ncookie is cleared on the response. Subsequent logins are refused\nin `verify_password_login` because that check requires\n`status == active`.\n\nHard deletion / re-parenting of owned content is a separate, more\ncareful flow we haven't built yet.","operationId":"delete_me_api_me_delete","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/change-password":{"post":{"tags":["me"],"summary":"Change Password","operationId":"change_password_api_me_change_password_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordChangeRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/2fa/enable":{"post":{"tags":["me"],"summary":"Enable 2Fa","description":"Begin 2FA setup. Generates a secret and stores it encrypted (not yet activated).\n\nThe client receives `otpauth_uri` to render a QR code and the raw secret\nfor manual entry. The flow is finalized via /confirm with the first valid code.","operationId":"enable_2fa_api_me_2fa_enable_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpEnableResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/2fa/confirm":{"post":{"tags":["me"],"summary":"Confirm 2Fa","operationId":"confirm_2fa_api_me_2fa_confirm_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpCodeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpConfirmResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/2fa/disable":{"post":{"tags":["me"],"summary":"Disable 2Fa","operationId":"disable_2fa_api_me_2fa_disable_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpDisableRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/2fa/recovery-codes":{"post":{"tags":["me"],"summary":"Regenerate Recovery Codes","operationId":"regenerate_recovery_codes_api_me_2fa_recovery_codes_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpCodeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotpConfirmResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/incoming-invitations":{"get":{"tags":["me"],"summary":"List Incoming Invitations","description":"Pending (not yet accepted) shares for the current user.","operationId":"list_incoming_invitations_api_me_incoming_invitations_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CollectionShareView"},"title":"Response List Incoming Invitations Api Me Incoming Invitations Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/incoming-invitations/{share_id}/accept":{"post":{"tags":["me"],"summary":"Accept Invitation","operationId":"accept_invitation_api_me_incoming_invitations__share_id__accept_post","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionShareView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/incoming-invitations/{share_id}/reject":{"post":{"tags":["me"],"summary":"Reject Invitation","operationId":"reject_invitation_api_me_incoming_invitations__share_id__reject_post","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/incoming-transfers":{"get":{"tags":["me"],"summary":"List Incoming Transfers","operationId":"list_incoming_transfers_api_me_incoming_transfers_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/TransferRequestView"},"title":"Response List Incoming Transfers Api Me Incoming Transfers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users":{"get":{"tags":["admin-users"],"summary":"List Users","operationId":"list_users_api_admin_users_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserPublic"},"title":"Response List Users Api Admin Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-users"],"summary":"Create User","operationId":"create_user_api_admin_users_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/stats":{"get":{"tags":["admin-users"],"summary":"List Users With Stats","operationId":"list_users_with_stats_api_admin_users_stats_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserStats"},"title":"Response List Users With Stats Api Admin Users Stats Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{user_id}":{"patch":{"tags":["admin-users"],"summary":"Update User","operationId":"update_user_api_admin_users__user_id__patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-users"],"summary":"Delete User","operationId":"delete_user_api_admin_users__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{user_id}/password":{"post":{"tags":["admin-users"],"summary":"Reset Password","operationId":"reset_password_api_admin_users__user_id__password_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordReset"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/uploads":{"post":{"tags":["uploads"],"summary":"Upload File","operationId":"upload_file_api_uploads_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file_api_uploads_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/imports/url":{"post":{"tags":["imports"],"summary":"Import Song From Url","operationId":"import_song_from_url_api_imports_url_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UrlImportRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/imports/text":{"post":{"tags":["imports"],"summary":"Import Song From Text","description":"Import from raw pasted text — useful for sources that block scraping\n(Ultimate Guitar, etc.) where the user has to copy from the browser.\n\nInline ``[ch]X[/ch]`` tags from tab sites are stripped, then the text\nis run through the same chord-detector + song-builder pipeline that\npowers PDF/DOCX imports.","operationId":"import_song_from_text_api_imports_text_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextImportRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/imports/score":{"post":{"tags":["imports"],"summary":"Import Song From Score","description":"Create a song from its sheet music (MusicXML/MXL, MEI or ABC): the\nlyrics, chords, title, author, key and metre read off the score, with\nthe score itself attached. The song starts as a draft to review.","operationId":"import_song_from_score_api_imports_score_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_song_from_score_api_imports_score_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/export-worship":{"get":{"tags":["interop"],"summary":"Export Song Worship","operationId":"export_song_worship_api_songs__song_id__export_worship_get","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"format","in":"query","required":true,"schema":{"type":"string","title":"Format"}},{"name":"chords","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Chords"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{collection_id}/export-worship":{"get":{"tags":["interop"],"summary":"Export Collection Worship","operationId":"export_collection_worship_api_collections__collection_id__export_worship_get","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"format","in":"query","required":true,"schema":{"type":"string","title":"Format"}},{"name":"chords","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Chords"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/jobs":{"get":{"tags":["jobs"],"summary":"List Jobs","operationId":"list_jobs_api_jobs_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/JobStatus"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IngestionJobSummary"},"title":"Response List Jobs Api Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/jobs/{job_id}":{"get":{"tags":["jobs"],"summary":"Get Job","operationId":"get_job_api_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestionJobDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["jobs"],"summary":"Delete Job","operationId":"delete_job_api_jobs__job_id__delete","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/jobs/{job_id}/duplicates":{"get":{"tags":["jobs"],"summary":"Find Duplicates","description":"Match each detected song against existing Song rows by either\nnormalized title, a short fingerprint of the opening lyric lines,\nword-token Jaccard, or — when a target cancionero is provided —\nthe same code already used in that cancionero.","operationId":"find_duplicates_api_jobs__job_id__duplicates_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"collection_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Collection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DuplicateMatch"},"title":"Response Find Duplicates Api Jobs  Job Id  Duplicates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/jobs/{job_id}/match":{"get":{"tags":["jobs"],"summary":"Manual Match","description":"Pair a detected song with an existing one the reviewer picked by\nhand, when the finder missed it (another title, lyrics too changed).","operationId":"manual_match_api_jobs__job_id__match_get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"detected_index","in":"query","required":true,"schema":{"type":"integer","minimum":0,"title":"Detected Index"}},{"name":"song_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateMatch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/jobs/{job_id}/retry":{"post":{"tags":["jobs"],"summary":"Retry Job","operationId":"retry_job_api_jobs__job_id__retry_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestionJobSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/jobs/{job_id}/confirm":{"post":{"tags":["jobs"],"summary":"Confirm Job","operationId":"confirm_job_api_jobs__job_id__confirm_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobConfirmWithCollection"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SongDetail"},"title":"Response Confirm Job Api Jobs  Job Id  Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/source-files/{source_file_id}/file":{"get":{"tags":["source_files"],"summary":"Get Source File","operationId":"get_source_file_api_source_files__source_file_id__file_get","parameters":[{"name":"source_file_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Source File Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs":{"get":{"tags":["songs"],"summary":"List Songs","operationId":"list_songs_api_songs_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SongStatus"},{"type":"null"}],"title":"Status"}},{"name":"exclude_status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/SongStatus"},{"type":"null"}],"title":"Exclude Status"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["title","recent"],"type":"string","default":"title","title":"Sort"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"default":500,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SongSummary"},"title":"Response List Songs Api Songs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["songs"],"summary":"Create Song","operationId":"create_song_api_songs_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/duplicates":{"get":{"tags":["songs"],"summary":"Find Song Duplicates","description":"Scan all songs and return groups that look like duplicates of\neach other (same piece imported twice under different titles, e.g.).\n\nUses the same metric the JobReview duplicate-finder uses\n(``min(SequenceMatcher.ratio, word-set Jaccard)`` with autojunk\ndisabled), plus cheap pre-filters (normalized title, opening\nfingerprint, Jaccard >= ``JACCARD_PRE_FILTER``) so the all-vs-all\nscan stays tractable for a few hundred songs.","operationId":"find_song_duplicates_api_songs_duplicates_get","parameters":[{"name":"min_similarity","in":"query","required":false,"schema":{"type":"number","maximum":1.0,"minimum":0.0,"default":0.65,"title":"Min Similarity"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SongDuplicateGroup"},"title":"Response Find Song Duplicates Api Songs Duplicates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/duplicates/ignore":{"delete":{"tags":["songs"],"summary":"Unignore Duplicate Pair","description":"Undo a previous 'Son distintas' decision so the pair can show\nup in the duplicate-finder again.","operationId":"unignore_duplicate_pair_api_songs_duplicates_ignore_delete","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IgnorePairPayload"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["songs"],"summary":"Ignore Duplicate Pair","description":"Mark two songs as 'intentionally different' so the duplicate\nscanner stops surfacing them as a match. Direction-agnostic.","operationId":"ignore_duplicate_pair_api_songs_duplicates_ignore_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IgnorePairPayload"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/duplicates/resolve":{"post":{"tags":["songs"],"summary":"Resolve Duplicate Pair","description":"Delete one song from a duplicate group. Optionally, before\ndeleting, prepend its title + aliases to the kept song's aliases —\nuseful when the lyrics matched but the titles diverged and you\nwant the kept song to be findable by either name.\n\nCancionero memberships (SongInCollection rows) of the deleted song\nare migrated to the kept song: each pre-existing entry of the kept\nsong in a given collection is preserved as-is; otherwise the loser's\nentry is rewired to point at the kept song.","operationId":"resolve_duplicate_pair_api_songs_duplicates_resolve_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MergeDeletePayload"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}":{"get":{"tags":["songs"],"summary":"Get Song","description":"Return the canonical song. When `?collection=<id>` points at a\ncancionero the user can access, swap in the lyric `SongVariant`\nthat cancionero picked (if any). The rest of the payload —\ntitle, key, codes, etc. — stays canonical.","operationId":"get_song_api_songs__song_id__get","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"collection","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Collection"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["songs"],"summary":"Update Song","operationId":"update_song_api_songs__song_id__patch","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["songs"],"summary":"Delete Song","operationId":"delete_song_api_songs__song_id__delete","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/share":{"post":{"tags":["songs"],"summary":"Toggle Song Share","description":"Mint / refresh / clear a temporary public share token for a song or one\nof its variants. Readable with no auth at GET /song/<token>. Only the owner\n(of the song, or of the variant) may share. Disabling clears the token,\nbreaking any URL already in the wild.","operationId":"toggle_song_share_api_songs__song_id__share_post","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongShareRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongShareResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/publish":{"post":{"tags":["songs"],"summary":"Publish Song","operationId":"publish_song_api_songs__song_id__publish_post","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/unpublish":{"post":{"tags":["songs"],"summary":"Unpublish Song","operationId":"unpublish_song_api_songs__song_id__unpublish_post","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/import-handwritten-chords":{"post":{"tags":["songs"],"summary":"Import Handwritten Chords","description":"Use Claude vision to extract handwritten chord positions from a\nscanned page (image or PDF) and propose them over the song's\nexisting lyrics. Does NOT persist any changes.","operationId":"import_handwritten_chords_api_songs__song_id__import_handwritten_chords_post","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_import_handwritten_chords_api_songs__song_id__import_handwritten_chords_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposedChordImport"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/variants":{"get":{"tags":["song-variants"],"summary":"List Variants","description":"Return the user's own variants, the canonical-owner's variants\n(the song owner always sees their own) and every variant that's\nbeen explicitly published. Other users' private variants stay\nhidden.","operationId":"list_variants_api_songs__song_id__variants_get","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SongVariantSummary"},"title":"Response List Variants Api Songs  Song Id  Variants Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["song-variants"],"summary":"Create Variant","operationId":"create_variant_api_songs__song_id__variants_post","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongVariantCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongVariantDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/variants/{variant_id}":{"get":{"tags":["song-variants"],"summary":"Get Variant","operationId":"get_variant_api_songs__song_id__variants__variant_id__get","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"variant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Variant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongVariantDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["song-variants"],"summary":"Update Variant","operationId":"update_variant_api_songs__song_id__variants__variant_id__patch","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"variant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Variant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongVariantUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongVariantDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["song-variants"],"summary":"Delete Variant","operationId":"delete_variant_api_songs__song_id__variants__variant_id__delete","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"variant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Variant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/variants/{variant_id}/publish":{"post":{"tags":["song-variants"],"summary":"Publish Variant","description":"Expose this variant to every user who can see the song.","operationId":"publish_variant_api_songs__song_id__variants__variant_id__publish_post","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"variant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Variant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongVariantDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["song-variants"],"summary":"Unpublish Variant","description":"Take this variant back to private. Allowed for the variant's\ncreator AND for the song owner (the latter can prune unwanted\npublic variants on their own songs).","operationId":"unpublish_variant_api_songs__song_id__variants__variant_id__publish_delete","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"variant_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Variant Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongVariantDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/edit-grants":{"get":{"tags":["song-edit-grants"],"summary":"List Grants","operationId":"list_grants_api_songs__song_id__edit_grants_get","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SongEditGrantView"},"title":"Response List Grants Api Songs  Song Id  Edit Grants Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["song-edit-grants"],"summary":"Create Grant","operationId":"create_grant_api_songs__song_id__edit_grants_post","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongEditGrantCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongEditGrantView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/edit-grants/{user_id}":{"delete":{"tags":["song-edit-grants"],"summary":"Revoke Grant","operationId":"revoke_grant_api_songs__song_id__edit_grants__user_id__delete","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/song-edit-grants":{"get":{"tags":["me-edit-grants"],"summary":"List My Editable Songs","operationId":"list_my_editable_songs_api_me_song_edit_grants_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MyEditableSongRef"},"title":"Response List My Editable Songs Api Me Song Edit Grants Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/catalog-shares":{"get":{"tags":["catalog-shares"],"summary":"List Outgoing","description":"Active shares I (the caller) have granted to other users.","operationId":"list_outgoing_api_me_catalog_shares_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CatalogShareView"},"title":"Response List Outgoing Api Me Catalog Shares Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["catalog-shares"],"summary":"Create Outgoing","description":"Grant ALL my songs (current and future) to the user with this email.","operationId":"create_outgoing_api_me_catalog_shares_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogShareCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogShareView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/catalog-shares/{share_id}":{"delete":{"tags":["catalog-shares"],"summary":"Revoke Outgoing","description":"Revoke a share I previously granted.","operationId":"revoke_outgoing_api_me_catalog_shares__share_id__delete","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/incoming-catalog-shares":{"get":{"tags":["catalog-shares"],"summary":"List Incoming","description":"Active shares others have granted to me.","operationId":"list_incoming_api_me_incoming_catalog_shares_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IncomingCatalogShareView"},"title":"Response List Incoming Api Me Incoming Catalog Shares Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/library-shares":{"get":{"tags":["library-shares"],"summary":"List Outgoing","description":"Active library shares I (the caller) have granted to other users.","operationId":"list_outgoing_api_me_library_shares_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LibraryShareView"},"title":"Response List Outgoing Api Me Library Shares Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["library-shares"],"summary":"Create Outgoing","description":"Grant my WHOLE library (songs, cancioneros, programs — current and\nfuture) to the user with this email.","operationId":"create_outgoing_api_me_library_shares_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryShareCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryShareView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/library-shares/{share_id}":{"patch":{"tags":["library-shares"],"summary":"Update Outgoing","description":"Change the level (view/edit) of a share I granted.","operationId":"update_outgoing_api_me_library_shares__share_id__patch","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryShareUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryShareView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["library-shares"],"summary":"Revoke Outgoing","description":"Revoke a library share I previously granted.","operationId":"revoke_outgoing_api_me_library_shares__share_id__delete","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Share Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/incoming-library-shares":{"get":{"tags":["library-shares"],"summary":"List Incoming","description":"Active library shares others have granted to me.","operationId":"list_incoming_api_me_incoming_library_shares_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IncomingLibraryShareView"},"title":"Response List Incoming Api Me Incoming Library Shares Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/dashboard":{"get":{"tags":["dashboard"],"summary":"Get Dashboard","operationId":"get_dashboard_api_me_dashboard_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Dashboard"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/suggestions":{"post":{"tags":["song-suggestions"],"summary":"Create Suggestion","operationId":"create_suggestion_api_songs__song_id__suggestions_post","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongSuggestionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongSuggestionView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["song-suggestions"],"summary":"List Suggestions","description":"Owner of the song sees every suggestion on it. Anyone else sees\nonly their own.","operationId":"list_suggestions_api_songs__song_id__suggestions_get","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SongSuggestionView"},"title":"Response List Suggestions Api Songs  Song Id  Suggestions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/suggestions/{sid}/accept":{"post":{"tags":["song-suggestions"],"summary":"Accept Suggestion","operationId":"accept_suggestion_api_songs__song_id__suggestions__sid__accept_post","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"sid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sid"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongSuggestionReview"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongSuggestionView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/suggestions/{sid}/reject":{"post":{"tags":["song-suggestions"],"summary":"Reject Suggestion","operationId":"reject_suggestion_api_songs__song_id__suggestions__sid__reject_post","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"sid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Sid"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongSuggestionReview"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongSuggestionView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/incoming-suggestions":{"get":{"tags":["song-suggestions"],"summary":"Incoming Suggestions","description":"All pending suggestions on songs I own.","operationId":"incoming_suggestions_api_me_incoming_suggestions_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SongSuggestionView"},"title":"Response Incoming Suggestions Api Me Incoming Suggestions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/media-links":{"get":{"tags":["media-links"],"summary":"List Groups","operationId":"list_groups_api_me_media_links_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"enum":["pending","auto","none"],"type":"string","default":"pending","title":"State"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GroupView"},"title":"Response List Groups Api Me Media Links Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/media-links/candidates/{candidate_id}/accept":{"post":{"tags":["media-links"],"summary":"Accept","operationId":"accept_api_me_media_links_candidates__candidate_id__accept_post","parameters":[{"name":"candidate_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Candidate Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/media-links/dismiss":{"post":{"tags":["media-links"],"summary":"Dismiss","operationId":"dismiss_api_me_media_links_dismiss_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupRef"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/media-links/confirm":{"post":{"tags":["media-links"],"summary":"Confirm","operationId":"confirm_api_me_media_links_confirm_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupRef"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/media-links/lookup":{"post":{"tags":["media-links"],"summary":"Lookup","description":"Plain search for the song editor: nothing is stored.","operationId":"lookup_api_me_media_links_lookup_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HitView"},"title":"Response Lookup Api Me Media Links Lookup Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/media-links/search":{"post":{"tags":["media-links"],"summary":"Search Again","description":"Search with the owner's own words. The pending candidates (which\nthe owner found wrong) are replaced by the new hits, unranked by\ntitle: the query may well be different from the title on purpose.","operationId":"search_again_api_me_media_links_search_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/media-links/link":{"post":{"tags":["media-links"],"summary":"Link Url","description":"The owner found the recording elsewhere: link this URL.","operationId":"link_url_api_me_media_links_link_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkBody"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/transfer":{"post":{"tags":["song-transfers"],"summary":"Create Transfer","operationId":"create_transfer_api_songs__song_id__transfer_post","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongTransferCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongTransferView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/transfer/{trid}":{"delete":{"tags":["song-transfers"],"summary":"Cancel Transfer","operationId":"cancel_transfer_api_songs__song_id__transfer__trid__delete","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"trid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Trid"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/incoming-song-transfers":{"get":{"tags":["song-transfers"],"summary":"List Incoming","operationId":"list_incoming_api_me_incoming_song_transfers_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SongTransferView"},"title":"Response List Incoming Api Me Incoming Song Transfers Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/incoming-song-transfers/{trid}/accept":{"post":{"tags":["song-transfers"],"summary":"Accept One","operationId":"accept_one_api_me_incoming_song_transfers__trid__accept_post","parameters":[{"name":"trid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Trid"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongTransferView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/incoming-song-transfers/{trid}/reject":{"post":{"tags":["song-transfers"],"summary":"Reject One","operationId":"reject_one_api_me_incoming_song_transfers__trid__reject_post","parameters":[{"name":"trid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Trid"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongTransferView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/incoming-song-transfers/bulk":{"post":{"tags":["song-transfers"],"summary":"Bulk Decide","operationId":"bulk_decide_api_me_incoming_song_transfers_bulk_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongTransferBulkAction"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongTransferBulkResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{collection_id}/transfer-songs":{"post":{"tags":["song-transfers"],"summary":"Transfer All My Songs In Collection","description":"For every song *I own* inside this cancionero, create a\nSongTransferRequest to the recipient. Songs I don't own are\nsilently skipped — the result counters tell the UI which buckets\nthey fell into so the user knows what happened.\n\nLike the per-song endpoint, the cancionero owner doesn't have to\nown the songs inside; we only transfer the ones with\n`owner_id == me`.","operationId":"transfer_all_my_songs_in_collection_api_collections__collection_id__transfer_songs_post","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionTransferAllSongs"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionTransferAllResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/history":{"get":{"tags":["song-history"],"summary":"List History","operationId":"list_history_api_songs__song_id__history_get","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SongHistorySummary"},"title":"Response List History Api Songs  Song Id  History Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/history/{version}":{"get":{"tags":["song-history"],"summary":"Get History Entry","operationId":"get_history_entry_api_songs__song_id__history__version__get","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongHistoryDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/history/{version}/revert":{"post":{"tags":["song-history"],"summary":"Revert To Version","operationId":"revert_to_version_api_songs__song_id__history__version__revert_post","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongHistorySummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/scores":{"get":{"tags":["song-scores"],"summary":"List Scores","operationId":"list_scores_api_songs__song_id__scores_get","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScoreView"},"title":"Response List Scores Api Songs  Song Id  Scores Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["song-scores"],"summary":"Create Score","description":"Attach a score: an uploaded file (MusicXML/MXL/ABC/PDF/image) or ABC\nnotation typed in the editor.","operationId":"create_score_api_songs__song_id__scores_post","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_score_api_songs__song_id__scores_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScoreView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/scores/{score_id}":{"patch":{"tags":["song-scores"],"summary":"Update Score","operationId":"update_score_api_songs__song_id__scores__score_id__patch","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"score_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Score Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScoreUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScoreView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["song-scores"],"summary":"Delete Score","operationId":"delete_score_api_songs__song_id__scores__score_id__delete","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"score_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Score Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/scores/{score_id}/content":{"put":{"tags":["song-scores"],"summary":"Replace Score Content","description":"Swap a score's file (e.g. after editing it in MuseScore or\nmei-friend), keeping its name, position and variant. The kind follows\nthe new file, so a MusicXML may come back as MEI.","operationId":"replace_score_content_api_songs__song_id__scores__score_id__content_put","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"score_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Score Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_replace_score_content_api_songs__song_id__scores__score_id__content_put"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScoreView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/scores/{score_id}/lyrics":{"get":{"tags":["song-scores"],"summary":"Read Score Lyrics","description":"The score's lyrics and chords laid out as song sections. Nothing is\nsaved: the editor shows them and the user saves the song as usual.","operationId":"read_score_lyrics_api_songs__song_id__scores__score_id__lyrics_get","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"score_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Score Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScoreLyrics"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/songs/{song_id}/scores/reorder":{"post":{"tags":["song-scores"],"summary":"Reorder Scores","operationId":"reorder_scores_api_songs__song_id__scores_reorder_post","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScoreOrder"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections":{"get":{"tags":["collections"],"summary":"List Collections","operationId":"list_collections_api_collections_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CollectionPublic"},"title":"Response List Collections Api Collections Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["collections"],"summary":"Create Collection","operationId":"create_collection_api_collections_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/reorder":{"post":{"tags":["collections"],"summary":"Reorder Collections","operationId":"reorder_collections_api_collections_reorder_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{collection_id}":{"get":{"tags":["collections"],"summary":"Get Collection","operationId":"get_collection_api_collections__collection_id__get","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["collections"],"summary":"Update Collection","operationId":"update_collection_api_collections__collection_id__patch","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["collections"],"summary":"Delete Collection","operationId":"delete_collection_api_collections__collection_id__delete","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{collection_id}/songs":{"post":{"tags":["collections"],"summary":"Add Song To Collection","operationId":"add_song_to_collection_api_collections__collection_id__songs_post","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongInCollectionAdd"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionEntry"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{collection_id}/entries/{entry_id}":{"patch":{"tags":["collections"],"summary":"Update Entry","operationId":"update_entry_api_collections__collection_id__entries__entry_id__patch","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entry Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongInCollectionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionEntry"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["collections"],"summary":"Remove Song From Collection","operationId":"remove_song_from_collection_api_collections__collection_id__entries__entry_id__delete","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"entry_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Entry Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{collection_id}/fork":{"post":{"tags":["collections"],"summary":"Fork Collection","description":"Create a private copy of a cancionero in the caller's account.\n\nAllowed with ``cap_copy`` (public cancioneros grant it to everyone).\nSee ``copy_collection_into`` for how songs are copied. No link to the\noriginal is kept; programs are not copied.","operationId":"fork_collection_api_collections__collection_id__fork_post","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{collection_id}/export.docx":{"get":{"tags":["collections"],"summary":"Export Collection Docx","description":"Stream a .docx with one section per song. Honors the cancionero's\nchord_notation; columns and lyrics_only are per-request overrides\n(the user can re-export with a different layout without changing the\ncancionero's defaults).","operationId":"export_collection_docx_api_collections__collection_id__export_docx_get","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"columns","in":"query","required":false,"schema":{"type":"integer","maximum":3,"minimum":1,"default":1,"title":"Columns"}},{"name":"lyrics_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Lyrics Only"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{collection_id}/songs/by-code/{code}":{"get":{"tags":["collections"],"summary":"Find By Code","operationId":"find_by_code_api_collections__collection_id__songs_by_code__code__get","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongSummary"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{collection_id}/share":{"post":{"tags":["collections"],"summary":"Toggle Collection Share","operationId":"toggle_collection_share_api_collections__collection_id__share_post","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionShareRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionShareResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{collection_id}/shares":{"get":{"tags":["collection-shares"],"summary":"List Shares","operationId":"list_shares_api_collections__collection_id__shares_get","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CollectionShareView"},"title":"Response List Shares Api Collections  Collection Id  Shares Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["collection-shares"],"summary":"Create Share","operationId":"create_share_api_collections__collection_id__shares_post","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionShareCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionShareView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{collection_id}/shares/{user_id}":{"patch":{"tags":["collection-shares"],"summary":"Update Share","operationId":"update_share_api_collections__collection_id__shares__user_id__patch","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionShareUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionShareView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["collection-shares"],"summary":"Delete Share","operationId":"delete_share_api_collections__collection_id__shares__user_id__delete","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{collection_id}/snapshot":{"post":{"tags":["collection-snapshots"],"summary":"Create Snapshot","operationId":"create_snapshot_api_collections__collection_id__snapshot_post","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnapshotView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["collection-snapshots"],"summary":"Latest Snapshot","operationId":"latest_snapshot_api_collections__collection_id__snapshot_get","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SnapshotView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{collection_id}/print-data":{"get":{"tags":["collection-snapshots"],"summary":"Print Data","description":"Live, one-shot rendering payload for the cancionero — same\nshape as a snapshot but never persisted. Used by the print view\nto grab every song's content (canonical or variant) in a single\nrequest without burning a snapshot row each time the user hits\nCmd+P. Requires `cap_view_songs` on the cancionero.","operationId":"print_data_api_collections__collection_id__print_data_get","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{collection_id}/snapshot/download":{"get":{"tags":["collection-snapshots"],"summary":"Download Latest Snapshot","operationId":"download_latest_snapshot_api_collections__collection_id__snapshot_download_get","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/s/{snapshot_token}":{"get":{"tags":["collection-snapshots"],"summary":"Serve Anonymous Snapshot","operationId":"serve_anonymous_snapshot_s__snapshot_token__get","parameters":[{"name":"snapshot_token","in":"path","required":true,"schema":{"type":"string","title":"Snapshot Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/import-snapshot":{"post":{"tags":["collection-snapshots"],"summary":"Import Snapshot","description":"Materialize a snapshot JSON as a new (private) collection owned by the user.","operationId":"import_snapshot_api_collections_import_snapshot_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportSnapshotRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionPublic"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/anonymous/load-snapshot":{"post":{"tags":["collection-snapshots"],"summary":"Anonymous Load Snapshot","description":"Echo back a validated, normalized snapshot JSON. No persistence.","operationId":"anonymous_load_snapshot_api_anonymous_load_snapshot_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportSnapshotRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{collection_id}/transfer":{"post":{"tags":["collection-transfers"],"summary":"Request Transfer","operationId":"request_transfer_api_collections__collection_id__transfer_post","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferRequestCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferRequestView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{collection_id}/transfer/{request_id}/accept":{"post":{"tags":["collection-transfers"],"summary":"Accept Transfer","operationId":"accept_transfer_api_collections__collection_id__transfer__request_id__accept_post","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferRequestView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{collection_id}/transfer/{request_id}/reject":{"post":{"tags":["collection-transfers"],"summary":"Reject Transfer","operationId":"reject_transfer_api_collections__collection_id__transfer__request_id__reject_post","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Request Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferRequestView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{collection_id}/songs/{song_id}/comments":{"get":{"tags":["song-comments"],"summary":"List Comments","operationId":"list_comments_api_collections__collection_id__songs__song_id__comments_get","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"resolved","in":"query","required":false,"schema":{"enum":["true","false","all"],"type":"string","default":"false","title":"Resolved"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CommentView"},"title":"Response List Comments Api Collections  Collection Id  Songs  Song Id  Comments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["song-comments"],"summary":"Create Comment","operationId":"create_comment_api_collections__collection_id__songs__song_id__comments_post","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{collection_id}/songs/{song_id}/comments/{comment_id}":{"patch":{"tags":["song-comments"],"summary":"Update Comment","operationId":"update_comment_api_collections__collection_id__songs__song_id__comments__comment_id__patch","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Comment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["song-comments"],"summary":"Delete Comment","operationId":"delete_comment_api_collections__collection_id__songs__song_id__comments__comment_id__delete","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Comment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{collection_id}/songs/{song_id}/comments/{comment_id}/resolve":{"post":{"tags":["song-comments"],"summary":"Resolve Comment","operationId":"resolve_comment_api_collections__collection_id__songs__song_id__comments__comment_id__resolve_post","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Comment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collections/{collection_id}/songs/{song_id}/comments/{comment_id}/unresolve":{"post":{"tags":["song-comments"],"summary":"Unresolve Comment","operationId":"unresolve_comment_api_collections__collection_id__songs__song_id__comments__comment_id__unresolve_post","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Comment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/programs":{"get":{"tags":["programs"],"summary":"List Programs","operationId":"list_programs_api_programs_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProgramSummary"},"title":"Response List Programs Api Programs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["programs"],"summary":"Create Program","operationId":"create_program_api_programs_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgramCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgramDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/programs/{program_id}":{"get":{"tags":["programs"],"summary":"Get Program","operationId":"get_program_api_programs__program_id__get","parameters":[{"name":"program_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Program Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgramDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["programs"],"summary":"Update Program","operationId":"update_program_api_programs__program_id__patch","parameters":[{"name":"program_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Program Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgramUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgramDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["programs"],"summary":"Delete Program","operationId":"delete_program_api_programs__program_id__delete","parameters":[{"name":"program_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Program Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/programs/{program_id}/export.docx":{"get":{"tags":["programs"],"summary":"Export Program Docx","description":"Stream a .docx of the program: cover + index + one entry per\nsong. Honors per-entry transpose_semitones and capo_override, plus\nthe cancionero's chord_notation.","operationId":"export_program_docx_api_programs__program_id__export_docx_get","parameters":[{"name":"program_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Program Id"}},{"name":"columns","in":"query","required":false,"schema":{"type":"integer","maximum":3,"minimum":1,"default":1,"title":"Columns"}},{"name":"lyrics_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Lyrics Only"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/programs/{program_id}/export-worship":{"get":{"tags":["programs"],"summary":"Export Program Worship","description":"ZIP of OpenLyrics/OpenSong files for a program, in setlist order.\nHonors each entry's transposition when chords are included.","operationId":"export_program_worship_api_programs__program_id__export_worship_get","parameters":[{"name":"program_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Program Id"}},{"name":"format","in":"query","required":true,"schema":{"type":"string","title":"Format"}},{"name":"chords","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Chords"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/programs/{program_id}/share":{"post":{"tags":["programs"],"summary":"Toggle Share","description":"Mint, refresh, or clear the program's public share token.\n\nAllowed to whoever may manage the program (its owner, an 'edit'\nlibrary grantee, or a sharer with `cap_manage_programs`) — not just the\ncancionero's owner, and free programs too. When enabled, the program\nbecomes readable at GET /p/<token> with no auth (published songs only);\nwe serve the SPA there with X-Robots-Tag: noindex so search engines\nwon't index it. Disabling clears both the token and the expiration,\nbreaking any URL already in the wild.","operationId":"toggle_share_api_programs__program_id__share_post","parameters":[{"name":"program_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Program Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgramShareRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgramShareResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/catalog/regenerate":{"post":{"tags":["catalog"],"summary":"Regenerate Catalog Gone","operationId":"regenerate_catalog_gone_api_catalog_regenerate_post","responses":{"410":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/catalog/version":{"get":{"tags":["catalog"],"summary":"Current Public Version","operationId":"current_public_version_api_catalog_version_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CatalogVersionResponse"},{"type":"null"}],"title":"Response Current Public Version Api Catalog Version Get"}}}}}}},"/catalog/latest.json":{"get":{"tags":["catalog"],"summary":"Latest Catalog Gone","operationId":"latest_catalog_gone_catalog_latest_json_get","responses":{"410":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/catalog/songs-v{version}.json":{"get":{"tags":["catalog"],"summary":"Get Catalog Version Gone","operationId":"get_catalog_version_gone_catalog_songs_v_version__json_get","parameters":[{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"responses":{"410":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/catalog/public.json":{"get":{"tags":["catalog"],"summary":"Get Public Catalog","description":"v2 public catalog snapshot. Regenerated by admins via\n`POST /api/admin/catalog/regenerate-public`.","operationId":"get_public_catalog_catalog_public_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/public/songs":{"get":{"tags":["public"],"summary":"Public Songs","operationId":"public_songs_public_songs_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SongSummary"},"title":"Response Public Songs Public Songs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/songs/{song_id}":{"get":{"tags":["public"],"summary":"Public Song Detail","operationId":"public_song_detail_public_songs__song_id__get","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SongDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/collections":{"get":{"tags":["public"],"summary":"Public Collections","operationId":"public_collections_public_collections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CollectionPublic"},"type":"array","title":"Response Public Collections Public Collections Get"}}}}}}},"/public/collections/{collection_id}":{"get":{"tags":["public"],"summary":"Public Collection Detail","operationId":"public_collection_detail_public_collections__collection_id__get","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CollectionDetail"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/songs/{song_id}/make-public":{"post":{"tags":["admin-catalog"],"summary":"Make Song Public","operationId":"make_song_public_api_admin_songs__song_id__make_public_post","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-catalog"],"summary":"Revoke Song Public","operationId":"revoke_song_public_api_admin_songs__song_id__make_public_delete","parameters":[{"name":"song_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Song Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/collections/{collection_id}/make-public":{"post":{"tags":["admin-catalog"],"summary":"Make Collection Public","operationId":"make_collection_public_api_admin_collections__collection_id__make_public_post","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-catalog"],"summary":"Revoke Collection Public","operationId":"revoke_collection_public_api_admin_collections__collection_id__make_public_delete","parameters":[{"name":"collection_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Collection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/catalog/regenerate-public":{"post":{"tags":["admin-catalog"],"summary":"Regenerate Public","operationId":"regenerate_public_api_admin_catalog_regenerate_public_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCatalogVersionView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/catalog/version":{"get":{"tags":["admin-catalog"],"summary":"Get Catalog Version","operationId":"get_catalog_version_api_admin_catalog_version_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCatalogVersionView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/ads/config":{"get":{"tags":["admin-ads"],"summary":"Get Config","operationId":"get_config_api_admin_ads_config_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdConfigView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin-ads"],"summary":"Update Config","operationId":"update_config_api_admin_ads_config_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdConfigUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdConfigView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/ads":{"get":{"tags":["admin-ads"],"summary":"List Ads","operationId":"list_ads_api_admin_ads_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdView"},"title":"Response List Ads Api Admin Ads Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin-ads"],"summary":"Create Ad","operationId":"create_ad_api_admin_ads_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/ads/{ad_id}":{"patch":{"tags":["admin-ads"],"summary":"Update Ad","operationId":"update_ad_api_admin_ads__ad_id__patch","parameters":[{"name":"ad_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ad Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdView"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin-ads"],"summary":"Delete Ad","operationId":"delete_ad_api_admin_ads__ad_id__delete","parameters":[{"name":"ad_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Ad Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ads/banner":{"get":{"tags":["ads"],"summary":"Get Banner","operationId":"get_banner_api_ads_banner_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/BannerCustom"},{"$ref":"#/components/schemas/BannerAdsense"},{"$ref":"#/components/schemas/BannerMedianet"},{"$ref":"#/components/schemas/BannerNone"}],"title":"Response Get Banner Api Ads Banner Get"}}}}}}},"/api/me/api-tokens":{"get":{"tags":["api-tokens"],"summary":"List Tokens","operationId":"list_tokens_api_me_api_tokens_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiTokenList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["api-tokens"],"summary":"Create Token","operationId":"create_token_api_me_api_tokens_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiTokenCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiTokenCreated"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/api-tokens/{token_id}":{"delete":{"tags":["api-tokens"],"summary":"Revoke Token","operationId":"revoke_token_api_me_api_tokens__token_id__delete","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Token Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-laudanza-internal","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-Internal"}},{"name":"x-laudanza-user","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Laudanza-User"}},{"name":"session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AdConfigUpdate":{"properties":{"custom_pct":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Custom Pct","default":0},"adsense_pct":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Adsense Pct","default":0},"adsense_client":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adsense Client"},"adsense_slot":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adsense Slot"},"medianet_pct":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Medianet Pct","default":0},"medianet_cid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medianet Cid"},"medianet_crid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medianet Crid"}},"type":"object","title":"AdConfigUpdate"},"AdConfigView":{"properties":{"custom_pct":{"type":"integer","title":"Custom Pct","default":0},"adsense_pct":{"type":"integer","title":"Adsense Pct","default":0},"adsense_client":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adsense Client"},"adsense_slot":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adsense Slot"},"medianet_pct":{"type":"integer","title":"Medianet Pct","default":0},"medianet_cid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medianet Cid"},"medianet_crid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Medianet Crid"}},"type":"object","title":"AdConfigView"},"AdCreate":{"properties":{"title":{"type":"string","maxLength":200,"title":"Title"},"image_url":{"type":"string","maxLength":2000,"title":"Image Url"},"images":{"items":{"$ref":"#/components/schemas/AdImage"},"type":"array","maxItems":10,"title":"Images"},"link_url":{"type":"string","maxLength":2000,"title":"Link Url"},"alt_text":{"type":"string","maxLength":300,"title":"Alt Text","default":""},"weight":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Weight","default":1},"is_active":{"type":"boolean","title":"Is Active","default":true},"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"}},"type":"object","required":["title","image_url","link_url"],"title":"AdCreate"},"AdImage":{"properties":{"url":{"type":"string","maxLength":2000,"title":"Url"},"width":{"type":"integer","maximum":4000.0,"minimum":1.0,"title":"Width"},"height":{"type":"integer","maximum":4000.0,"minimum":1.0,"title":"Height"}},"type":"object","required":["url","width","height"],"title":"AdImage","description":"A size variant of a custom ad image."},"AdUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"image_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Image Url"},"images":{"anyOf":[{"items":{"$ref":"#/components/schemas/AdImage"},"type":"array","maxItems":10},{"type":"null"}],"title":"Images"},"link_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Link Url"},"alt_text":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Alt Text"},"weight":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Weight"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"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"}},"type":"object","title":"AdUpdate"},"AdView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"image_url":{"type":"string","title":"Image Url"},"images":{"items":{"$ref":"#/components/schemas/AdImage"},"type":"array","title":"Images","default":[]},"link_url":{"type":"string","title":"Link Url"},"alt_text":{"type":"string","title":"Alt Text"},"weight":{"type":"integer","title":"Weight"},"is_active":{"type":"boolean","title":"Is Active"},"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"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","title","image_url","link_url","alt_text","weight","is_active","starts_at","ends_at","created_at"],"title":"AdView"},"AdminUserUpdate":{"properties":{"role":{"anyOf":[{"$ref":"#/components/schemas/UserRole"},{"type":"null"}]},"status":{"anyOf":[{"$ref":"#/components/schemas/UserStatus"},{"type":"null"}]},"display_name":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Display Name"},"is_premium":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Premium"}},"type":"object","title":"AdminUserUpdate"},"ApiTokenCreate":{"properties":{"name":{"type":"string","maxLength":64,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"ApiTokenCreate"},"ApiTokenCreated":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"hint":{"type":"string","title":"Hint"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"token":{"type":"string","title":"Token"}},"type":"object","required":["id","name","hint","created_at","last_used_at","token"],"title":"ApiTokenCreated"},"ApiTokenList":{"properties":{"tokens":{"items":{"$ref":"#/components/schemas/ApiTokenView"},"type":"array","title":"Tokens"},"mcp_url":{"type":"string","title":"Mcp Url"},"is_premium":{"type":"boolean","title":"Is Premium"},"writes_today":{"type":"integer","title":"Writes Today"},"daily_write_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Daily Write Limit"}},"type":"object","required":["tokens","mcp_url","is_premium","writes_today","daily_write_limit"],"title":"ApiTokenList"},"ApiTokenView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"hint":{"type":"string","title":"Hint"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"}},"type":"object","required":["id","name","hint","created_at","last_used_at"],"title":"ApiTokenView"},"BannerAdsense":{"properties":{"provider":{"type":"string","const":"adsense","title":"Provider","default":"adsense"},"client":{"type":"string","title":"Client"},"slot":{"type":"string","title":"Slot"}},"type":"object","required":["client","slot"],"title":"BannerAdsense"},"BannerCustom":{"properties":{"provider":{"type":"string","const":"custom","title":"Provider","default":"custom"},"image_url":{"type":"string","title":"Image Url"},"images":{"items":{"$ref":"#/components/schemas/AdImage"},"type":"array","title":"Images","default":[]},"link_url":{"type":"string","title":"Link Url"},"alt_text":{"type":"string","title":"Alt Text"}},"type":"object","required":["image_url","link_url","alt_text"],"title":"BannerCustom"},"BannerMedianet":{"properties":{"provider":{"type":"string","const":"medianet","title":"Provider","default":"medianet"},"cid":{"type":"string","title":"Cid"},"crid":{"type":"string","title":"Crid"}},"type":"object","required":["cid","crid"],"title":"BannerMedianet"},"BannerNone":{"properties":{"provider":{"type":"string","const":"none","title":"Provider","default":"none"}},"type":"object","title":"BannerNone"},"Body_create_score_api_songs__song_id__scores_post":{"properties":{"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"variant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Variant Id"},"abc":{"anyOf":[{"type":"string","maxLength":200000},{"type":"null"}],"title":"Abc"},"file":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"File"}},"type":"object","required":["name"],"title":"Body_create_score_api_songs__song_id__scores_post"},"Body_import_handwritten_chords_api_songs__song_id__import_handwritten_chords_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_import_handwritten_chords_api_songs__song_id__import_handwritten_chords_post"},"Body_import_song_from_score_api_imports_score_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_import_song_from_score_api_imports_score_post"},"Body_replace_score_content_api_songs__song_id__scores__score_id__content_put":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_replace_score_content_api_songs__song_id__scores__score_id__content_put"},"Body_upload_file_api_uploads_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_file_api_uploads_post"},"CandidateView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"url":{"type":"string","title":"Url"},"title":{"type":"string","title":"Title"},"artist":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artist"},"duration_s":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration S"},"score":{"type":"number","title":"Score"},"status":{"type":"string","title":"Status"}},"type":"object","required":["id","url","title","artist","duration_s","score","status"],"title":"CandidateView"},"CapabilitySet":{"properties":{"cap_view_songs":{"type":"boolean","title":"Cap View Songs","default":true},"cap_view_programs":{"type":"boolean","title":"Cap View Programs","default":true},"cap_add_songs":{"type":"boolean","title":"Cap Add Songs","default":false},"cap_remove_songs":{"type":"boolean","title":"Cap Remove Songs","default":false},"cap_edit_song_meta":{"type":"boolean","title":"Cap Edit Song Meta","default":false},"cap_manage_programs":{"type":"boolean","title":"Cap Manage Programs","default":false},"cap_edit_collection":{"type":"boolean","title":"Cap Edit Collection","default":false},"cap_comment":{"type":"boolean","title":"Cap Comment","default":false},"cap_view_history":{"type":"boolean","title":"Cap View History","default":false},"cap_invite":{"type":"boolean","title":"Cap Invite","default":false},"cap_revoke_own":{"type":"boolean","title":"Cap Revoke Own","default":false},"cap_copy":{"type":"boolean","title":"Cap Copy","default":true}},"type":"object","title":"CapabilitySet","description":"The 12 booleans. cap_view_songs must always be true."},"CatalogShareCreate":{"properties":{"grantee_email":{"type":"string","format":"email","title":"Grantee Email"},"level":{"type":"string","enum":["edit","suggest"],"title":"Level","default":"edit"}},"type":"object","required":["grantee_email"],"title":"CatalogShareCreate"},"CatalogShareView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"owner_id":{"type":"string","format":"uuid","title":"Owner Id"},"grantee_id":{"type":"string","format":"uuid","title":"Grantee Id"},"grantee_email":{"type":"string","title":"Grantee Email"},"grantee_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grantee Display Name"},"level":{"type":"string","enum":["edit","suggest"],"title":"Level"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","owner_id","grantee_id","grantee_email","grantee_display_name","level","created_at"],"title":"CatalogShareView","description":"Outgoing-share view (what I've shared with others)."},"CatalogVersionResponse":{"properties":{"version":{"type":"integer","title":"Version"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"song_count":{"type":"integer","title":"Song Count"},"sha256":{"type":"string","title":"Sha256"}},"type":"object","required":["version","generated_at","song_count","sha256"],"title":"CatalogVersionResponse"},"ChordInLine":{"properties":{"chord":{"type":"string","title":"Chord"},"barre":{"type":"integer","title":"Barre","default":0},"position":{"type":"integer","title":"Position"}},"type":"object","required":["chord","position"],"title":"ChordInLine"},"ChordNotation":{"type":"string","enum":["anglo","latin"],"title":"ChordNotation","description":"How chord names are rendered for this cancionero.\n\nInternal storage and computation always use anglo. Only the display\nin the cancionero's views (detail, print, snapshot) is affected."},"CollectionCreate":{"properties":{"slug":{"type":"string","maxLength":64,"minLength":2,"pattern":"^[a-z0-9][a-z0-9\\-]{0,62}[a-z0-9]$","title":"Slug"},"name":{"type":"string","maxLength":256,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"chord_notation":{"$ref":"#/components/schemas/ChordNotation","default":"anglo"},"print_single_column":{"type":"boolean","title":"Print Single Column","default":false},"font_family":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Font Family"},"default_alignment":{"type":"string","enum":["left","center"],"title":"Default Alignment","default":"left"}},"type":"object","required":["slug","name"],"title":"CollectionCreate"},"CollectionDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"chord_notation":{"$ref":"#/components/schemas/ChordNotation"},"print_single_column":{"type":"boolean","title":"Print Single Column"},"font_family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Font Family"},"default_alignment":{"type":"string","enum":["left","center"],"title":"Default Alignment","default":"left"},"is_public":{"type":"boolean","title":"Is Public","default":false},"made_public_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Made Public At"},"is_mine":{"type":"boolean","title":"Is Mine","default":false},"share_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Token"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"song_count":{"type":"integer","title":"Song Count","default":0},"entries":{"items":{"$ref":"#/components/schemas/CollectionEntry"},"type":"array","title":"Entries"},"share_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Share Expires At"},"can_copy":{"type":"boolean","title":"Can Copy","default":false}},"type":"object","required":["id","slug","name","description","chord_notation","print_single_column","created_at","updated_at"],"title":"CollectionDetail"},"CollectionEntry":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"key_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Override"},"capo_override":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Capo Override"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"},"title_alias":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title Alias"},"rhythm_marks":{"items":{"$ref":"#/components/schemas/RhythmMark"},"type":"array","title":"Rhythm Marks"},"song":{"$ref":"#/components/schemas/SongSummary"},"variant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Variant Id"},"variant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Variant Name"}},"type":"object","required":["id","code","song"],"title":"CollectionEntry","description":"A song listed inside a collection: includes the local code + summary.\n\nThe `id` is the SongInCollection row UUID and identifies the\nmembership row, not the song. A cancionero may surface the same\nsong under several codes (different entries with the same\n`song.id`), so every API call that mutates a membership now\naddresses it by this `id` instead of `(collection_id, song_id)`."},"CollectionPublic":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"chord_notation":{"$ref":"#/components/schemas/ChordNotation"},"print_single_column":{"type":"boolean","title":"Print Single Column"},"font_family":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Font Family"},"default_alignment":{"type":"string","enum":["left","center"],"title":"Default Alignment","default":"left"},"is_public":{"type":"boolean","title":"Is Public","default":false},"made_public_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Made Public At"},"is_mine":{"type":"boolean","title":"Is Mine","default":false},"share_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Token"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"song_count":{"type":"integer","title":"Song Count","default":0}},"type":"object","required":["id","slug","name","description","chord_notation","print_single_column","created_at","updated_at"],"title":"CollectionPublic"},"CollectionShareCreate":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"capabilities":{"$ref":"#/components/schemas/CapabilitySet"},"role":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Role"}},"type":"object","required":["email","capabilities"],"title":"CollectionShareCreate"},"CollectionShareRequest":{"properties":{"enable":{"type":"boolean","title":"Enable"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["enable"],"title":"CollectionShareRequest"},"CollectionShareResponse":{"properties":{"share_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Token"},"share_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Share Expires At"}},"type":"object","required":["share_token","share_expires_at"],"title":"CollectionShareResponse"},"CollectionShareUpdate":{"properties":{"capabilities":{"$ref":"#/components/schemas/CapabilitySet"}},"type":"object","required":["capabilities"],"title":"CollectionShareUpdate"},"CollectionShareView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"collection_id":{"type":"string","format":"uuid","title":"Collection Id"},"collection_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Collection Name"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"user_email":{"type":"string","title":"User Email"},"user_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Display Name"},"invited_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Invited By"},"invited_at":{"type":"string","format":"date-time","title":"Invited At"},"accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted At"},"pending_registration":{"type":"boolean","title":"Pending Registration","default":false},"cap_view_songs":{"type":"boolean","title":"Cap View Songs"},"cap_view_programs":{"type":"boolean","title":"Cap View Programs"},"cap_add_songs":{"type":"boolean","title":"Cap Add Songs"},"cap_remove_songs":{"type":"boolean","title":"Cap Remove Songs"},"cap_edit_song_meta":{"type":"boolean","title":"Cap Edit Song Meta"},"cap_manage_programs":{"type":"boolean","title":"Cap Manage Programs"},"cap_edit_collection":{"type":"boolean","title":"Cap Edit Collection"},"cap_comment":{"type":"boolean","title":"Cap Comment"},"cap_view_history":{"type":"boolean","title":"Cap View History"},"cap_invite":{"type":"boolean","title":"Cap Invite"},"cap_revoke_own":{"type":"boolean","title":"Cap Revoke Own"},"cap_copy":{"type":"boolean","title":"Cap Copy"}},"type":"object","required":["id","collection_id","user_id","user_email","user_display_name","invited_by","invited_at","accepted_at","cap_view_songs","cap_view_programs","cap_add_songs","cap_remove_songs","cap_edit_song_meta","cap_manage_programs","cap_edit_collection","cap_comment","cap_view_history","cap_invite","cap_revoke_own","cap_copy"],"title":"CollectionShareView"},"CollectionTransferAllResult":{"properties":{"requested":{"type":"integer","title":"Requested","default":0},"already_pending":{"type":"integer","title":"Already Pending","default":0},"not_owned":{"type":"integer","title":"Not Owned","default":0},"same_user":{"type":"integer","title":"Same User","default":0},"shared_with_other_collections":{"type":"integer","title":"Shared With Other Collections","default":0}},"type":"object","title":"CollectionTransferAllResult"},"CollectionTransferAllSongs":{"properties":{"to_email":{"type":"string","format":"email","title":"To Email"}},"type":"object","required":["to_email"],"title":"CollectionTransferAllSongs"},"CollectionUpdate":{"properties":{"slug":{"anyOf":[{"type":"string","maxLength":64,"minLength":2,"pattern":"^[a-z0-9][a-z0-9\\-]{0,62}[a-z0-9]$"},{"type":"null"}],"title":"Slug"},"name":{"anyOf":[{"type":"string","maxLength":256,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"chord_notation":{"anyOf":[{"$ref":"#/components/schemas/ChordNotation"},{"type":"null"}]},"print_single_column":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Print Single Column"},"font_family":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Font Family"},"default_alignment":{"anyOf":[{"type":"string","enum":["left","center"]},{"type":"null"}],"title":"Default Alignment"}},"type":"object","title":"CollectionUpdate"},"CommentCreate":{"properties":{"body":{"type":"string","maxLength":5000,"minLength":1,"title":"Body"},"anchor_line":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Anchor Line"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"}},"type":"object","required":["body"],"title":"CommentCreate"},"CommentUpdate":{"properties":{"body":{"type":"string","maxLength":5000,"minLength":1,"title":"Body"}},"type":"object","required":["body"],"title":"CommentUpdate"},"CommentView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"collection_id":{"type":"string","format":"uuid","title":"Collection Id"},"song_id":{"type":"string","format":"uuid","title":"Song Id"},"author_id":{"type":"string","format":"uuid","title":"Author Id"},"author_email":{"type":"string","title":"Author Email"},"author_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Display Name"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"body":{"type":"string","title":"Body"},"anchor_line":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Anchor Line"},"resolved":{"type":"boolean","title":"Resolved"},"resolved_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Resolved By"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"deleted":{"type":"boolean","title":"Deleted"}},"type":"object","required":["id","collection_id","song_id","author_id","author_email","author_display_name","parent_id","body","anchor_line","resolved","resolved_by","resolved_at","created_at","updated_at","deleted"],"title":"CommentView"},"Dashboard":{"properties":{"counts":{"$ref":"#/components/schemas/DashboardCounts"},"pending":{"$ref":"#/components/schemas/DashboardPending"},"recent_songs":{"items":{"$ref":"#/components/schemas/DashboardSongRef"},"type":"array","title":"Recent Songs"},"recent_collections":{"items":{"$ref":"#/components/schemas/DashboardCollectionRef"},"type":"array","title":"Recent Collections"},"upcoming_programs":{"items":{"$ref":"#/components/schemas/DashboardProgramRef"},"type":"array","title":"Upcoming Programs"}},"type":"object","required":["counts","pending","recent_songs","recent_collections","upcoming_programs"],"title":"Dashboard"},"DashboardCollectionRef":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","slug","updated_at"],"title":"DashboardCollectionRef"},"DashboardCounts":{"properties":{"songs":{"type":"integer","title":"Songs","default":0},"collections":{"type":"integer","title":"Collections","default":0},"programs":{"type":"integer","title":"Programs","default":0}},"type":"object","title":"DashboardCounts"},"DashboardPending":{"properties":{"invitations":{"type":"integer","title":"Invitations","default":0},"collection_transfers":{"type":"integer","title":"Collection Transfers","default":0},"jobs":{"type":"integer","title":"Jobs","default":0},"suggestions":{"type":"integer","title":"Suggestions","default":0},"song_transfers":{"type":"integer","title":"Song Transfers","default":0},"media_links":{"type":"integer","title":"Media Links","default":0}},"type":"object","title":"DashboardPending","description":"One number per kind of \"needs your action\" item. The frontend\nuses them to render quick chips that link to the matching review\nsurface, so we don't need to ship the full list of items here."},"DashboardProgramRef":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"occasion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Occasion"},"event_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Event Date"},"collection_id":{"type":"string","format":"uuid","title":"Collection Id"}},"type":"object","required":["id","title","occasion","event_date","collection_id"],"title":"DashboardProgramRef"},"DashboardSongRef":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","title","updated_at"],"title":"DashboardSongRef"},"DuplicateMatch":{"properties":{"detected_index":{"type":"integer","title":"Detected Index"},"detected_title":{"type":"string","title":"Detected Title"},"existing_song_id":{"type":"string","format":"uuid","title":"Existing Song Id"},"existing_song_title":{"type":"string","title":"Existing Song Title"},"existing_song_lyric_preview":{"type":"string","title":"Existing Song Lyric Preview"},"match_type":{"type":"string","title":"Match Type"},"lyric_similarity":{"type":"number","title":"Lyric Similarity"},"changed_fields":{"items":{"type":"string"},"type":"array","title":"Changed Fields","default":[]},"import_has_chords":{"type":"boolean","title":"Import Has Chords","default":true}},"type":"object","required":["detected_index","detected_title","existing_song_id","existing_song_title","existing_song_lyric_preview","match_type","lyric_similarity"],"title":"DuplicateMatch"},"EditableQuery":{"properties":{"collection":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Collection"},"program":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Program"},"songs":{"items":{"type":"string"},"type":"array","title":"Songs"}},"type":"object","title":"EditableQuery"},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","maxLength":320,"minLength":1,"title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"GoogleNativeRequest":{"properties":{"id_token":{"type":"string","maxLength":8192,"minLength":1,"title":"Id Token"}},"type":"object","required":["id_token"],"title":"GoogleNativeRequest"},"GroupRef":{"properties":{"song_id":{"type":"string","format":"uuid","title":"Song Id"},"provider":{"type":"string","enum":["youtube","spotify"],"title":"Provider"}},"type":"object","required":["song_id","provider"],"title":"GroupRef"},"GroupView":{"properties":{"song_id":{"type":"string","format":"uuid","title":"Song Id"},"song_title":{"type":"string","title":"Song Title"},"song_author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Song Author"},"provider":{"type":"string","enum":["youtube","spotify"],"title":"Provider"},"state":{"type":"string","enum":["pending","auto","none"],"title":"State"},"candidates":{"items":{"$ref":"#/components/schemas/CandidateView"},"type":"array","title":"Candidates"}},"type":"object","required":["song_id","song_title","song_author","provider","state","candidates"],"title":"GroupView"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HitView":{"properties":{"url":{"type":"string","title":"Url"},"title":{"type":"string","title":"Title"},"artist":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artist"},"duration_s":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration S"}},"type":"object","required":["url","title","artist","duration_s"],"title":"HitView"},"IgnorePairPayload":{"properties":{"song_a_id":{"type":"string","format":"uuid","title":"Song A Id"},"song_b_id":{"type":"string","format":"uuid","title":"Song B Id"}},"type":"object","required":["song_a_id","song_b_id"],"title":"IgnorePairPayload"},"ImportSnapshotRequest":{"properties":{"source":{"type":"string","enum":["upload","gdrive_link"],"title":"Source"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"gdrive_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gdrive Url"}},"type":"object","required":["source"],"title":"ImportSnapshotRequest"},"IncomingCatalogShareView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"owner_id":{"type":"string","format":"uuid","title":"Owner Id"},"owner_email":{"type":"string","title":"Owner Email"},"owner_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Display Name"},"level":{"type":"string","enum":["edit","suggest"],"title":"Level"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","owner_id","owner_email","owner_display_name","level","created_at"],"title":"IncomingCatalogShareView","description":"Incoming-share view (what others have shared with me)."},"IncomingLibraryShareView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"owner_id":{"type":"string","format":"uuid","title":"Owner Id"},"owner_email":{"type":"string","title":"Owner Email"},"owner_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Display Name"},"level":{"type":"string","enum":["view","edit"],"title":"Level"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","owner_id","owner_email","owner_display_name","level","created_at"],"title":"IncomingLibraryShareView","description":"Incoming-share view (what others have shared with me)."},"IngestionJobDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"source_file_id":{"type":"string","format":"uuid","title":"Source File Id"},"status":{"$ref":"#/components/schemas/JobStatus"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"song_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Song Count"},"raw_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Text"},"detected_songs":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Detected Songs"}},"type":"object","required":["id","source_file_id","status","error","created_at","started_at","completed_at","raw_text","detected_songs"],"title":"IngestionJobDetail"},"IngestionJobSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"source_file_id":{"type":"string","format":"uuid","title":"Source File Id"},"status":{"$ref":"#/components/schemas/JobStatus"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"song_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Song Count"}},"type":"object","required":["id","source_file_id","status","error","created_at","started_at","completed_at"],"title":"IngestionJobSummary"},"JobConfirmWithCollection":{"properties":{"songs":{"items":{"$ref":"#/components/schemas/SongCreate"},"type":"array","title":"Songs"},"collection_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Collection Id"},"collection_mode":{"type":"string","enum":["add","replace"],"title":"Collection Mode","default":"add"},"handled_indices":{"items":{"type":"integer"},"type":"array","title":"Handled Indices","default":[]},"finish":{"type":"boolean","title":"Finish","default":true}},"type":"object","required":["songs"],"title":"JobConfirmWithCollection","description":"Confirm payload with an optional Collection association.\n\nWhen ``collection_id`` is provided, every newly-created song is\nadded to that cancionero with its provided ``source_code`` (or the\none detected during ingestion). Pass ``existing_song_id`` on a song\nentry to skip creating it and instead attach the *existing* song\nto the collection — useful when re-importing a cancionero we\nalready have most of.\n\n``collection_mode`` controls what happens to the cancionero's\ncurrent contents:\n  - ``\"add\"`` (default): the cancionero's existing entries are\n    preserved; the new songs are inserted alongside, skipping any\n    song that was already there.\n  - ``\"replace\"``: the cancionero's current entries are wiped\n    before inserting the imported songs."},"JobStatus":{"type":"string","enum":["pending","extracting","parsing","awaiting_review","completed","failed"],"title":"JobStatus"},"LibraryShareCreate":{"properties":{"grantee_email":{"type":"string","format":"email","title":"Grantee Email"},"level":{"type":"string","enum":["view","edit"],"title":"Level","default":"view"}},"type":"object","required":["grantee_email"],"title":"LibraryShareCreate"},"LibraryShareUpdate":{"properties":{"level":{"type":"string","enum":["view","edit"],"title":"Level"}},"type":"object","required":["level"],"title":"LibraryShareUpdate"},"LibraryShareView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"owner_id":{"type":"string","format":"uuid","title":"Owner Id"},"grantee_id":{"type":"string","format":"uuid","title":"Grantee Id"},"grantee_email":{"type":"string","title":"Grantee Email"},"grantee_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grantee Display Name"},"level":{"type":"string","enum":["view","edit"],"title":"Level"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","owner_id","grantee_id","grantee_email","grantee_display_name","level","created_at"],"title":"LibraryShareView","description":"Outgoing-share view (what I've shared with others)."},"LinkBody":{"properties":{"song_id":{"type":"string","format":"uuid","title":"Song Id"},"provider":{"type":"string","enum":["youtube","spotify"],"title":"Provider"},"url":{"type":"string","maxLength":1024,"minLength":10,"title":"Url"}},"type":"object","required":["song_id","provider","url"],"title":"LinkBody"},"LoginRequest":{"properties":{"email":{"type":"string","maxLength":320,"minLength":1,"title":"Email"},"password":{"type":"string","maxLength":256,"minLength":1,"title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"LoginResponse":{"properties":{"user":{"anyOf":[{"$ref":"#/components/schemas/UserPublic"},{"type":"null"}]},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"next":{"anyOf":[{"type":"string","enum":["totp","verify_email"]},{"type":"null"}],"title":"Next"}},"type":"object","title":"LoginResponse"},"LookupBody":{"properties":{"provider":{"type":"string","enum":["youtube","spotify"],"title":"Provider"},"query":{"type":"string","maxLength":200,"minLength":1,"title":"Query"}},"type":"object","required":["provider","query"],"title":"LookupBody"},"LyricLine":{"properties":{"text":{"type":"string","title":"Text"},"chords":{"items":{"$ref":"#/components/schemas/ChordInLine"},"type":"array","title":"Chords"},"bold":{"type":"boolean","title":"Bold","default":false}},"type":"object","required":["text"],"title":"LyricLine"},"MediaLink":{"properties":{"url":{"type":"string","maxLength":1024,"title":"Url"},"label":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Label"}},"type":"object","required":["url"],"title":"MediaLink"},"MergeDeletePayload":{"properties":{"keep_id":{"type":"string","format":"uuid","title":"Keep Id"},"delete_id":{"type":"string","format":"uuid","title":"Delete Id"},"keep_as_alias":{"type":"boolean","title":"Keep As Alias","default":false},"adopt_loser_title":{"type":"boolean","title":"Adopt Loser Title","default":false}},"type":"object","required":["keep_id","delete_id"],"title":"MergeDeletePayload"},"MyEditableSongRef":{"properties":{"song_id":{"type":"string","format":"uuid","title":"Song Id"},"song_title":{"type":"string","title":"Song Title"},"owner_email":{"type":"string","title":"Owner Email"},"granted_at":{"type":"string","format":"date-time","title":"Granted At"}},"type":"object","required":["song_id","song_title","owner_email","granted_at"],"title":"MyEditableSongRef","description":"Lightweight view for /api/me/song-edit-grants."},"PasswordChangeRequest":{"properties":{"current_password":{"type":"string","maxLength":256,"minLength":1,"title":"Current Password"},"new_password":{"type":"string","maxLength":256,"minLength":8,"title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"PasswordChangeRequest"},"PasswordReset":{"properties":{"password":{"type":"string","maxLength":256,"minLength":8,"title":"Password"}},"type":"object","required":["password"],"title":"PasswordReset"},"ProgramCreate":{"properties":{"collection_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Collection Id"},"title":{"type":"string","maxLength":256,"minLength":1,"title":"Title"},"occasion":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Occasion"},"event_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Event Date"},"notes":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Notes"},"entries":{"items":{"$ref":"#/components/schemas/ProgramEntryInput"},"type":"array","title":"Entries"}},"type":"object","required":["title"],"title":"ProgramCreate"},"ProgramDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"collection_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Collection Id"},"collection_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Collection Name"},"title":{"type":"string","title":"Title"},"occasion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Occasion"},"event_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Event Date"},"share_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Token"},"song_titles":{"items":{"type":"string"},"type":"array","title":"Song Titles","default":[]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"entries":{"items":{"$ref":"#/components/schemas/ProgramEntryDetail"},"type":"array","title":"Entries"},"share_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Share Expires At"},"can_manage":{"type":"boolean","title":"Can Manage","default":false}},"type":"object","required":["id","title","occasion","event_date","created_at","updated_at","notes"],"title":"ProgramDetail"},"ProgramEntryDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"transpose_semitones":{"type":"integer","title":"Transpose Semitones"},"capo_override":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Capo Override"},"print_order":{"type":"integer","title":"Print Order"},"song":{"$ref":"#/components/schemas/SongSummary"},"entry_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Entry Id"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"title_alias":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title Alias"},"collection_key_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Collection Key Override"},"collection_capo_override":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Collection Capo Override"},"variant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Variant Id"}},"type":"object","required":["id","transpose_semitones","capo_override","print_order","song"],"title":"ProgramEntryDetail"},"ProgramEntryInput":{"properties":{"song_id":{"type":"string","format":"uuid","title":"Song Id"},"entry_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Entry Id"},"label":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Label"},"transpose_semitones":{"type":"integer","maximum":12.0,"minimum":-12.0,"title":"Transpose Semitones","default":0},"capo_override":{"anyOf":[{"type":"integer","maximum":12.0,"minimum":0.0},{"type":"null"}],"title":"Capo Override"},"print_order":{"type":"integer","minimum":0.0,"title":"Print Order"}},"type":"object","required":["song_id","print_order"],"title":"ProgramEntryInput"},"ProgramShareRequest":{"properties":{"enable":{"type":"boolean","title":"Enable"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["enable"],"title":"ProgramShareRequest"},"ProgramShareResponse":{"properties":{"share_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Token"},"share_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Share Expires At"}},"type":"object","required":["share_token","share_expires_at"],"title":"ProgramShareResponse"},"ProgramSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"collection_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Collection Id"},"collection_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Collection Name"},"title":{"type":"string","title":"Title"},"occasion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Occasion"},"event_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Event Date"},"share_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Token"},"song_titles":{"items":{"type":"string"},"type":"array","title":"Song Titles","default":[]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","title","occasion","event_date","created_at","updated_at"],"title":"ProgramSummary"},"ProgramUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":256,"minLength":1},{"type":"null"}],"title":"Title"},"occasion":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Occasion"},"event_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Event Date"},"notes":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Notes"},"entries":{"anyOf":[{"items":{"$ref":"#/components/schemas/ProgramEntryInput"},"type":"array"},{"type":"null"}],"title":"Entries"}},"type":"object","title":"ProgramUpdate"},"ProposedChordImport":{"properties":{"sections":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Sections"},"matched_lines":{"type":"integer","title":"Matched Lines"},"total_lines":{"type":"integer","title":"Total Lines"}},"type":"object","required":["sections","matched_lines","total_lines"],"title":"ProposedChordImport","description":"Response of the handwritten-chord import endpoint. Returns the\nproposed sections WITHOUT touching the database — the client shows\nthe diff and the user confirms by saving the song normally."},"PublicCatalogVersionView":{"properties":{"version":{"type":"integer","title":"Version"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"song_count":{"type":"integer","title":"Song Count"},"sha256":{"type":"string","title":"Sha256"}},"type":"object","required":["version","generated_at","song_count","sha256"],"title":"PublicCatalogVersionView"},"RegisterRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":256,"minLength":8,"title":"Password"},"display_name":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Display Name"}},"type":"object","required":["email","password"],"title":"RegisterRequest"},"ReorderRequest":{"properties":{"collection_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Collection Ids"}},"type":"object","required":["collection_ids"],"title":"ReorderRequest","description":"The caller's cancioneros in their desired order. Position in the\nlist becomes each cancionero's personal sort position *for this user*.\nAny id the user can't access is ignored, so the front end can safely\nsend whatever it's showing."},"ResetPasswordRequest":{"properties":{"token":{"type":"string","maxLength":256,"minLength":1,"title":"Token"},"new_password":{"type":"string","maxLength":256,"minLength":8,"title":"New Password"}},"type":"object","required":["token","new_password"],"title":"ResetPasswordRequest"},"RhythmMark":{"properties":{"label":{"type":"string","maxLength":80,"minLength":1,"title":"Label"},"from_line":{"type":"integer","minimum":0.0,"title":"From Line","default":0}},"type":"object","required":["label"],"title":"RhythmMark","description":"A rhythm annotation on a song *within a cancionero*. Applies\nfrom ``from_line`` (a 0-based index into the song's flat lyric-line\nlist) until the next mark in the list."},"ScoreLyrics":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"copyright":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Copyright"},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key"},"time_signature":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Signature"},"sections":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Sections"},"lyric_lines":{"type":"integer","title":"Lyric Lines","default":0},"chords":{"type":"integer","title":"Chords","default":0}},"type":"object","title":"ScoreLyrics","description":"Lyrics and chords read off a score: a draft for the song editor."},"ScoreOrder":{"properties":{"score_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Score Ids"}},"type":"object","required":["score_ids"],"title":"ScoreOrder"},"ScoreUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Name"},"abc":{"anyOf":[{"type":"string","maxLength":200000},{"type":"null"}],"title":"Abc"},"variant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Variant Id"},"clear_variant":{"type":"boolean","title":"Clear Variant","default":false}},"type":"object","title":"ScoreUpdate"},"ScoreView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"mime":{"type":"string","title":"Mime"},"size":{"type":"integer","title":"Size"},"variant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Variant Id"},"url":{"type":"string","title":"Url"},"can_edit":{"type":"boolean","title":"Can Edit","default":false}},"type":"object","required":["id","name","kind","mime","size","variant_id","url"],"title":"ScoreView"},"SearchBody":{"properties":{"song_id":{"type":"string","format":"uuid","title":"Song Id"},"provider":{"type":"string","enum":["youtube","spotify"],"title":"Provider"},"query":{"type":"string","maxLength":200,"minLength":1,"title":"Query"}},"type":"object","required":["song_id","provider","query"],"title":"SearchBody"},"SnapshotView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"collection_id":{"type":"string","format":"uuid","title":"Collection Id"},"version":{"type":"integer","title":"Version"},"snapshot_token":{"type":"string","title":"Snapshot Token"},"generated_at":{"type":"string","format":"date-time","title":"Generated At"},"invalidated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Invalidated At"},"google_drive_file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Google Drive File Id"}},"type":"object","required":["id","collection_id","version","snapshot_token","generated_at","invalidated_at","google_drive_file_id"],"title":"SnapshotView"},"SongCodeRef":{"properties":{"collection_id":{"type":"string","format":"uuid","title":"Collection Id"},"collection_slug":{"type":"string","title":"Collection Slug"},"collection_name":{"type":"string","title":"Collection Name"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"key_override":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Override"},"capo_override":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Capo Override"},"title_alias":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title Alias"},"rhythm_marks":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Rhythm Marks","default":[]}},"type":"object","required":["collection_id","collection_slug","collection_name"],"title":"SongCodeRef","description":"Code in a specific collection (used in song detail responses)."},"SongCreate":{"properties":{"title":{"type":"string","maxLength":512,"minLength":1,"title":"Title"},"aliases":{"items":{"type":"string"},"type":"array","title":"Aliases"},"author":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Author"},"key_base":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Key Base"},"capo":{"type":"integer","maximum":12.0,"minimum":0.0,"title":"Capo","default":0},"time_signature":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Time Signature"},"tempo":{"anyOf":[{"type":"string","enum":["lento","moderato","allegro"]},{"type":"null"}],"title":"Tempo"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"copyright":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Copyright"},"ccli":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Ccli"},"sections":{"items":{"$ref":"#/components/schemas/SongSection"},"type":"array","title":"Sections"},"source_page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Page"},"source_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Code"},"existing_song_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Existing Song Id"},"reimport_action":{"type":"string","enum":["create","link","update","variant","skip"],"title":"Reimport Action","default":"create"},"force_replace_sections":{"type":"boolean","title":"Force Replace Sections","default":false},"detected_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Detected Index"}},"type":"object","required":["title"],"title":"SongCreate"},"SongDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"aliases":{"items":{"type":"string"},"type":"array","title":"Aliases"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"key_base":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Base"},"capo":{"type":"integer","title":"Capo"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"status":{"$ref":"#/components/schemas/SongStatus"},"is_public":{"type":"boolean","title":"Is Public","default":false},"made_public_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Made Public At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"songbooks":{"items":{"type":"string"},"type":"array","title":"Songbooks"},"time_signature":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Time Signature"},"tempo":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tempo"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"copyright":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Copyright"},"ccli":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ccli"},"media_links":{"items":{"$ref":"#/components/schemas/MediaLink"},"type":"array","title":"Media Links"},"sections":{"items":{"$ref":"#/components/schemas/SongSection"},"type":"array","title":"Sections"},"codes":{"items":{"$ref":"#/components/schemas/SongCodeRef"},"type":"array","title":"Codes"},"scores":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Scores"},"source_file_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source File Id"},"source_page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Page"},"version":{"type":"integer","title":"Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"viewer_role":{"type":"string","title":"Viewer Role","default":"viewer"},"share_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Token"},"share_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Share Expires At"}},"type":"object","required":["id","title","author","key_base","capo","tags","status","updated_at","time_signature","tempo","notes","sections","version","created_at"],"title":"SongDetail"},"SongDuplicateGroup":{"properties":{"songs":{"items":{"$ref":"#/components/schemas/SongInDuplicateGroup"},"type":"array","title":"Songs"},"similarity":{"type":"number","title":"Similarity"},"match_type":{"type":"string","title":"Match Type"},"same_title":{"type":"boolean","title":"Same Title","default":false},"ignored_pairs":{"items":{"prefixItems":[{"type":"string"},{"type":"string"}],"type":"array","maxItems":2,"minItems":2},"type":"array","title":"Ignored Pairs","default":[]}},"type":"object","required":["songs","similarity","match_type"],"title":"SongDuplicateGroup","description":"Group of songs in the DB that look like the same piece."},"SongEditGrantCreate":{"properties":{"grantee_email":{"type":"string","format":"email","title":"Grantee Email"}},"type":"object","required":["grantee_email"],"title":"SongEditGrantCreate"},"SongEditGrantView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"song_id":{"type":"string","format":"uuid","title":"Song Id"},"owner_id":{"type":"string","format":"uuid","title":"Owner Id"},"grantee_id":{"type":"string","format":"uuid","title":"Grantee Id"},"grantee_email":{"type":"string","title":"Grantee Email"},"grantee_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grantee Display Name"},"granted_at":{"type":"string","format":"date-time","title":"Granted At"},"granted_by":{"type":"string","format":"uuid","title":"Granted By"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"}},"type":"object","required":["id","song_id","owner_id","grantee_id","grantee_email","grantee_display_name","granted_at","granted_by","revoked_at"],"title":"SongEditGrantView"},"SongHistoryDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"song_id":{"type":"string","format":"uuid","title":"Song Id"},"version":{"type":"integer","title":"Version"},"changed_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Changed By"},"changed_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Changed By Email"},"changed_at":{"type":"string","format":"date-time","title":"Changed At"},"fields_changed":{"items":{"type":"string"},"type":"array","title":"Fields Changed"},"change_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Summary"},"snapshot":{"additionalProperties":true,"type":"object","title":"Snapshot"}},"type":"object","required":["id","song_id","version","changed_by","changed_by_email","changed_at","fields_changed","change_summary","snapshot"],"title":"SongHistoryDetail"},"SongHistorySummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"song_id":{"type":"string","format":"uuid","title":"Song Id"},"version":{"type":"integer","title":"Version"},"changed_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Changed By"},"changed_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Changed By Email"},"changed_at":{"type":"string","format":"date-time","title":"Changed At"},"fields_changed":{"items":{"type":"string"},"type":"array","title":"Fields Changed"},"change_summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Change Summary"}},"type":"object","required":["id","song_id","version","changed_by","changed_by_email","changed_at","fields_changed","change_summary"],"title":"SongHistorySummary"},"SongInCollectionAdd":{"properties":{"song_id":{"type":"string","format":"uuid","title":"Song Id"},"code":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9ÑÁÉÍÓÚÜñáéíóúü\\- ]{1,16}$"},{"type":"null"}],"title":"Code"},"key_override":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Key Override"},"capo_override":{"anyOf":[{"type":"integer","maximum":12.0,"minimum":0.0},{"type":"null"}],"title":"Capo Override"},"category":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Category"},"title_alias":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Title Alias"},"rhythm_marks":{"anyOf":[{"items":{"$ref":"#/components/schemas/RhythmMark"},"type":"array"},{"type":"null"}],"title":"Rhythm Marks"},"variant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Variant Id"}},"type":"object","required":["song_id"],"title":"SongInCollectionAdd"},"SongInCollectionUpdate":{"properties":{"code":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9ÑÁÉÍÓÚÜñáéíóúü\\- ]{1,16}$"},{"type":"null"}],"title":"Code"},"key_override":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Key Override"},"capo_override":{"anyOf":[{"type":"integer","maximum":12.0,"minimum":0.0},{"type":"null"}],"title":"Capo Override"},"category":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Category"},"title_alias":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Title Alias"},"rhythm_marks":{"anyOf":[{"items":{"$ref":"#/components/schemas/RhythmMark"},"type":"array"},{"type":"null"}],"title":"Rhythm Marks"},"variant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Variant Id"}},"type":"object","title":"SongInCollectionUpdate"},"SongInDuplicateGroup":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"aliases":{"items":{"type":"string"},"type":"array","title":"Aliases"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"key_base":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Base"},"capo":{"type":"integer","title":"Capo"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"status":{"$ref":"#/components/schemas/SongStatus"},"is_public":{"type":"boolean","title":"Is Public","default":false},"made_public_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Made Public At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"songbooks":{"items":{"type":"string"},"type":"array","title":"Songbooks"},"codes":{"items":{"$ref":"#/components/schemas/SongCodeRef"},"type":"array","title":"Codes","default":[]}},"type":"object","required":["id","title","author","key_base","capo","tags","status","updated_at"],"title":"SongInDuplicateGroup","description":"A song appearing in a duplicate group, enriched with the codes\nit currently has in each cancionero it belongs to."},"SongSection":{"properties":{"type":{"type":"string","enum":["intro","verse","chorus","bridge","outro","interlude"],"title":"Type"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"lines":{"items":{"$ref":"#/components/schemas/LyricLine"},"type":"array","title":"Lines"}},"type":"object","required":["type"],"title":"SongSection"},"SongShareRequest":{"properties":{"enable":{"type":"boolean","title":"Enable"},"variant_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Variant Id"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["enable"],"title":"SongShareRequest"},"SongShareResponse":{"properties":{"share_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Token"},"share_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Share Expires At"}},"type":"object","required":["share_token","share_expires_at"],"title":"SongShareResponse"},"SongStatus":{"type":"string","enum":["draft","active","published","archived"],"title":"SongStatus"},"SongSuggestionCreate":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"sections":{"items":{"$ref":"#/components/schemas/SongSection"},"type":"array","title":"Sections"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"}},"type":"object","required":["sections"],"title":"SongSuggestionCreate"},"SongSuggestionReview":{"properties":{"review_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Note"}},"type":"object","title":"SongSuggestionReview"},"SongSuggestionView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"song_id":{"type":"string","format":"uuid","title":"Song Id"},"song_title":{"type":"string","title":"Song Title"},"proposed_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Proposed By"},"proposer_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposer Email"},"proposer_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposer Display Name"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"sections":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Sections"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"status":{"type":"string","enum":["pending","accepted","rejected"],"title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewed At"},"reviewed_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reviewed By"},"review_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Note"}},"type":"object","required":["id","song_id","song_title","proposed_by","proposer_email","proposer_display_name","title","summary","status","created_at","reviewed_at","reviewed_by","review_note"],"title":"SongSuggestionView"},"SongSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"title":{"type":"string","title":"Title"},"aliases":{"items":{"type":"string"},"type":"array","title":"Aliases"},"author":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author"},"key_base":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Base"},"capo":{"type":"integer","title":"Capo"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"status":{"$ref":"#/components/schemas/SongStatus"},"is_public":{"type":"boolean","title":"Is Public","default":false},"made_public_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Made Public At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"songbooks":{"items":{"type":"string"},"type":"array","title":"Songbooks"}},"type":"object","required":["id","title","author","key_base","capo","tags","status","updated_at"],"title":"SongSummary"},"SongTransferBulkAction":{"properties":{"ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Ids"},"action":{"type":"string","enum":["accept","reject"],"title":"Action"}},"type":"object","required":["ids","action"],"title":"SongTransferBulkAction"},"SongTransferBulkResult":{"properties":{"accepted":{"type":"integer","title":"Accepted","default":0},"rejected":{"type":"integer","title":"Rejected","default":0},"skipped":{"type":"integer","title":"Skipped","default":0}},"type":"object","title":"SongTransferBulkResult"},"SongTransferCreate":{"properties":{"to_email":{"type":"string","format":"email","title":"To Email"}},"type":"object","required":["to_email"],"title":"SongTransferCreate"},"SongTransferView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"song_id":{"type":"string","format":"uuid","title":"Song Id"},"song_title":{"type":"string","title":"Song Title"},"from_user_id":{"type":"string","format":"uuid","title":"From User Id"},"from_email":{"type":"string","title":"From Email"},"from_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Display Name"},"to_user_id":{"type":"string","format":"uuid","title":"To User Id"},"requested_at":{"type":"string","format":"date-time","title":"Requested At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"status":{"type":"string","enum":["pending","accepted","rejected","cancelled","expired"],"title":"Status"}},"type":"object","required":["id","song_id","song_title","from_user_id","from_email","from_display_name","to_user_id","requested_at","expires_at","status"],"title":"SongTransferView"},"SongUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":512,"minLength":1},{"type":"null"}],"title":"Title"},"aliases":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Aliases"},"author":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Author"},"key_base":{"anyOf":[{"type":"string","maxLength":8,"minLength":1},{"type":"null"}],"title":"Key Base"},"capo":{"anyOf":[{"type":"integer","maximum":12.0,"minimum":0.0},{"type":"null"}],"title":"Capo"},"time_signature":{"anyOf":[{"type":"string","maxLength":8},{"type":"null"}],"title":"Time Signature"},"tempo":{"anyOf":[{"type":"string","enum":["lento","moderato","allegro"]},{"type":"null"}],"title":"Tempo"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"copyright":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Copyright"},"ccli":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Ccli"},"media_links":{"anyOf":[{"items":{"$ref":"#/components/schemas/MediaLink"},"type":"array"},{"type":"null"}],"title":"Media Links"},"sections":{"anyOf":[{"items":{"$ref":"#/components/schemas/SongSection"},"type":"array"},{"type":"null"}],"title":"Sections"},"status":{"anyOf":[{"$ref":"#/components/schemas/SongStatus"},{"type":"null"}]},"change_summary":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Change Summary"}},"type":"object","title":"SongUpdate"},"SongVariantCreate":{"properties":{"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name"},"sections":{"items":{"$ref":"#/components/schemas/SongSection"},"type":"array","title":"Sections"}},"type":"object","required":["name"],"title":"SongVariantCreate","description":"Caller-supplied data for POST /api/songs/:song_id/variants."},"SongVariantDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"song_id":{"type":"string","format":"uuid","title":"Song Id"},"owner_id":{"type":"string","format":"uuid","title":"Owner Id"},"name":{"type":"string","title":"Name"},"version":{"type":"integer","title":"Version"},"is_published":{"type":"boolean","title":"Is Published","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"sections":{"items":{"$ref":"#/components/schemas/SongSection"},"type":"array","title":"Sections"},"share_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Token"},"share_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Share Expires At"}},"type":"object","required":["id","song_id","owner_id","name","version","created_at","updated_at"],"title":"SongVariantDetail","description":"Full variant: includes its sections."},"SongVariantSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"song_id":{"type":"string","format":"uuid","title":"Song Id"},"owner_id":{"type":"string","format":"uuid","title":"Owner Id"},"name":{"type":"string","title":"Name"},"version":{"type":"integer","title":"Version"},"is_published":{"type":"boolean","title":"Is Published","default":false},"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","owner_id","name","version","created_at","updated_at"],"title":"SongVariantSummary","description":"Inline summary used inside listings (no sections payload)."},"SongVariantUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Name"},"sections":{"anyOf":[{"items":{"$ref":"#/components/schemas/SongSection"},"type":"array"},{"type":"null"}],"title":"Sections"}},"type":"object","title":"SongVariantUpdate","description":"Caller-supplied data for PATCH /api/songs/:song_id/variants/:id."},"TextImportRequest":{"properties":{"title":{"type":"string","maxLength":512,"minLength":1,"title":"Title"},"author":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Author"},"text":{"type":"string","minLength":1,"title":"Text","description":"Raw chord-over-lyric text. Whitespace must be preserved as monospace alignment between chord rows and lyric rows."}},"type":"object","required":["title","text"],"title":"TextImportRequest"},"TotpCodeRequest":{"properties":{"code":{"type":"string","maxLength":12,"minLength":6,"title":"Code"}},"type":"object","required":["code"],"title":"TotpCodeRequest"},"TotpConfirmResponse":{"properties":{"recovery_codes":{"items":{"type":"string"},"type":"array","title":"Recovery Codes"}},"type":"object","required":["recovery_codes"],"title":"TotpConfirmResponse"},"TotpDisableRequest":{"properties":{"code":{"type":"string","maxLength":12,"minLength":6,"title":"Code"}},"type":"object","required":["code"],"title":"TotpDisableRequest"},"TotpEnableResponse":{"properties":{"otpauth_uri":{"type":"string","title":"Otpauth Uri"},"secret":{"type":"string","title":"Secret"}},"type":"object","required":["otpauth_uri","secret"],"title":"TotpEnableResponse"},"TransferRequestCreate":{"properties":{"to_email":{"type":"string","format":"email","title":"To Email"}},"type":"object","required":["to_email"],"title":"TransferRequestCreate"},"TransferRequestView":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"collection_id":{"type":"string","format":"uuid","title":"Collection Id"},"from_user_id":{"type":"string","format":"uuid","title":"From User Id"},"to_user_id":{"type":"string","format":"uuid","title":"To User Id"},"requested_at":{"type":"string","format":"date-time","title":"Requested At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted At"},"rejected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Rejected At"}},"type":"object","required":["id","collection_id","from_user_id","to_user_id","requested_at","expires_at","accepted_at","rejected_at"],"title":"TransferRequestView"},"UploadResponse":{"properties":{"source_file_id":{"type":"string","format":"uuid","title":"Source File Id"},"job_id":{"type":"string","format":"uuid","title":"Job Id"}},"type":"object","required":["source_file_id","job_id"],"title":"UploadResponse"},"UrlImportRequest":{"properties":{"url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Url","description":"Public URL of the song to import"}},"type":"object","required":["url"],"title":"UrlImportRequest"},"UserCreate":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":256,"minLength":8,"title":"Password"},"display_name":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Display Name"},"role":{"$ref":"#/components/schemas/UserRole","default":"user"}},"type":"object","required":["email","password"],"title":"UserCreate","description":"Admin-driven user creation (skips email verification)."},"UserPublic":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"role":{"$ref":"#/components/schemas/UserRole"},"status":{"$ref":"#/components/schemas/UserStatus"},"totp_enabled":{"type":"boolean","title":"Totp Enabled"},"email_verified":{"type":"boolean","title":"Email Verified"},"chord_notation_pref":{"type":"string","enum":["anglo","latin"],"title":"Chord Notation Pref","default":"anglo"},"locale":{"anyOf":[{"type":"string","enum":["es","en"]},{"type":"null"}],"title":"Locale"},"is_premium":{"type":"boolean","title":"Is Premium","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login At"}},"type":"object","required":["id","email","display_name","avatar_url","role","status","totp_enabled","email_verified","created_at","last_login_at"],"title":"UserPublic"},"UserRole":{"type":"string","enum":["admin","user","editor"],"title":"UserRole"},"UserStats":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"role":{"$ref":"#/components/schemas/UserRole"},"status":{"$ref":"#/components/schemas/UserStatus"},"totp_enabled":{"type":"boolean","title":"Totp Enabled"},"email_verified":{"type":"boolean","title":"Email Verified"},"chord_notation_pref":{"type":"string","enum":["anglo","latin"],"title":"Chord Notation Pref","default":"anglo"},"locale":{"anyOf":[{"type":"string","enum":["es","en"]},{"type":"null"}],"title":"Locale"},"is_premium":{"type":"boolean","title":"Is Premium","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_login_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Login At"},"songs_count":{"type":"integer","title":"Songs Count","default":0},"collections_count":{"type":"integer","title":"Collections Count","default":0},"programs_count":{"type":"integer","title":"Programs Count","default":0},"jobs_count":{"type":"integer","title":"Jobs Count","default":0},"source_files_count":{"type":"integer","title":"Source Files Count","default":0},"source_files_bytes":{"type":"integer","title":"Source Files Bytes","default":0},"last_active_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Active At"}},"type":"object","required":["id","email","display_name","avatar_url","role","status","totp_enabled","email_verified","created_at","last_login_at"],"title":"UserStats","description":"User row enriched with per-owner content + storage counts.\n\nCounts are computed with grouped subqueries so the listing\nstays a single round-trip even for many users."},"UserStatus":{"type":"string","enum":["active","suspended","deleted"],"title":"UserStatus"},"UserUpdate":{"properties":{"display_name":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Display Name"},"avatar_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Avatar Url"},"chord_notation_pref":{"anyOf":[{"type":"string","enum":["anglo","latin"]},{"type":"null"}],"title":"Chord Notation Pref"},"locale":{"anyOf":[{"type":"string","enum":["es","en"]},{"type":"null"}],"title":"Locale"}},"type":"object","title":"UserUpdate"},"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"},"VerifyEmailRequest":{"properties":{"token":{"type":"string","maxLength":256,"minLength":1,"title":"Token"}},"type":"object","required":["token"],"title":"VerifyEmailRequest"}}}}