Files
docs/mcp/py-jwt/modules/jwtlib.models.mongo.json
Vishesh 'ironeagle' Bangotra b3b1c3404b feat: collect py-jwt wiki; register wiki kind; refresh lib and mcp artifacts
Adds the py-jwt wiki to the hub alongside lib and mcp and picks up
the regenerated flat lib reference and standardized MCP modules.
2026-09-16 20:08:15 +05:30

64 lines
2.9 KiB
JSON

{
"module": "jwtlib.models.mongo",
"content": {
"path": "jwtlib.models.mongo",
"docstring": "# Summary\n\nPersistence-layer user model for MongoDB.\n\nThis module defines the internal database representation of a user.\nIt is used exclusively by the repository and persistence layers and\nmust never be exposed directly to consumers.\n\nPublic-facing user data is provided via dedicated projection models.",
"objects": {
"ActiveStateMixin": {
"name": "ActiveStateMixin",
"kind": "class",
"path": "jwtlib.models.mongo.ActiveStateMixin",
"signature": null,
"docstring": "Mixin for entities with an active status flag.\n\nAttributes:\n is_active (bool):\n Indicates whether the account is active and allowed to\n authenticate.",
"members": {
"is_active": {
"name": "is_active",
"kind": "attribute",
"path": "jwtlib.models.mongo.ActiveStateMixin.is_active",
"signature": null,
"docstring": null
}
}
},
"IdentityMixin": {
"name": "IdentityMixin",
"kind": "class",
"path": "jwtlib.models.mongo.IdentityMixin",
"signature": null,
"docstring": "Mixin for entities with a username and email.\n\nAttributes:\n username (str):\n Unique username used for authentication and display.\n email (Optional[EmailStr]):\n Primary email address associated with the account.",
"members": {
"username": {
"name": "username",
"kind": "attribute",
"path": "jwtlib.models.mongo.IdentityMixin.username",
"signature": null,
"docstring": null
},
"email": {
"name": "email",
"kind": "attribute",
"path": "jwtlib.models.mongo.IdentityMixin.email",
"signature": null,
"docstring": null
}
}
},
"User": {
"name": "User",
"kind": "class",
"path": "jwtlib.models.mongo.User",
"signature": null,
"docstring": "Internal user persistence model.\n\nAttributes:\n hashed_password (str):\n Secure hash of the user's password.\n\nNotes:\n **Responsibilities:**\n\n - Represents a user record as stored in the database. Includes\n sensitive fields and is strictly confined to the persistence\n layer.\n\n **Guarantees:**\n\n - This model MUST NOT be returned from authentication APIs.\n Consumers should use `PublicUser` instead. Password verification\n is handled by the repository layer.",
"members": {
"hashed_password": {
"name": "hashed_password",
"kind": "attribute",
"path": "jwtlib.models.mongo.User.hashed_password",
"signature": null,
"docstring": null
}
}
}
}
}
}