{"agent":"claude","input":"Add API key authentication to this Django REST Framework project and open a pull request. Read config/django/base.py, styleguide_example/api/urls.py, styleguide_example/api/mixins.py, styleguide_example/authentication/urls.py, styleguide_example/authentication/apis.py, styleguide_example/authentication/services.py, styleguide_example/authentication/tests/apis/test_user_login.py, styleguide_example/users/models.py, styleguide_example/users/services.py, styleguide_example/common/models.py, mypy.ini and .github/workflows/django.yml first. Add an api_keys app with an ApiKey model on BaseModel: user, name, unique prefix, hashed_key, nullable expires_at, revoked_at and last_used_at. Generate keys as <prefix>.<secret> with secrets.token_urlsafe, store only make_password of the secret, and return the raw key once from api_key_create. Add api_key_revoke and api_key_authenticate services. Add ApiKeyAuthentication to api/mixins.py reading an Api-Key scheme through get_auth_header and returning None for other schemes, and append it to ApiAuthMixin.authentication_classes. Mount ApiKeyCreateApi, ApiKeyListApi and ApiKeyRevokeApi under auth/api-keys/ with an api-keys namespace, all behind ApiAuthMixin, in the nested InputSerializer style. Add the migration and an admin registration. Write tests covering a key used on me/, a wrong secret, a revoked key, an expired key, the list never showing the hash and last_used_at being set. Run ruff check ., mypy --config mypy.ini styleguide_example/ and pytest and paste the results in the pull request. Do not change the session or JWT flows.","resources":[{"url":"https://github.com/your-org/your-app"}]}