{"openapi":"3.1.0","info":{"title":"Foilo Hub","version":"0.1.0","description":"Tooling for trading card game sellers."},"paths":{"/health":{"get":{"operationId":"getHealth","summary":"Liveness probe","tags":["system"],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/ready":{"get":{"operationId":"getReady","summary":"Readiness probe, including database reachability","tags":["system"],"responses":{"200":{"description":"Readiness of the service and its backing stores","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Readiness"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/me":{"get":{"operationId":"getApiMe","summary":"The authenticated user","description":"Returns the account behind the current session.","tags":["account"],"security":[{"sessionCookie":[]}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrentUser"}}}},"401":{"description":"Authentication required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Unexpected server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"CurrentUser":{"type":"object","required":["id","email","name"],"properties":{"id":{"type":"string"},"email":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"Error":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},"Health":{"type":"object","required":["status"],"properties":{"status":{"type":"string","const":"ok"}}},"Readiness":{"type":"object","required":["status","database"],"properties":{"status":{"type":"string","const":"ready"},"database":{"type":"boolean","description":"Whether the database answered a ping"}},"description":"Readiness of the service and its backing stores"}},"securitySchemes":{"sessionCookie":{"type":"apiKey","in":"cookie","name":"better-auth.session_token"}}}}