Pydantic models for auth requests and responses, including profile updates, workspace settings, and user data.
# Source: https://github.com/pocketpaw/pocketpaw | License: MIT | Copyright 2026 PocketPaw Team
# Provided via justclaw.it.com; keep this notice with the code.
"""Auth domain — request/response schemas."""
from __future__ import annotations
from pydantic import BaseModel
class ProfileUpdateRequest(BaseModel):
full_name: str | None = None
avatar: str | None = None
status: str | None = None
class SetWorkspaceRequest(BaseModel):
workspace_id: str
class UserResponse(BaseModel):
id: str
email: str
name: str
image: str
email_verified: bool
active_workspace: str | None
workspaces: list[dict]
model_config = {"from_attributes": True}
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key