Pydantic schemas for admin OAuth grant responses and lists.
# Source: https://github.com/jentic/jentic-one | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""OAuth grant response schemas for the admin web layer."""
from __future__ import annotations
from datetime import datetime
from pydantic import BaseModel, Field
from jentic_one.shared.web import openapi_examples as ex
class OAuthGrantAdminResponse(BaseModel):
"""One consent→agent grant in the admin cross-view."""
id: str = Field(description="Grant ID (ksuid, `ocg_` prefix).", examples=[ex.OAUTH_GRANT_ID])
oauth_client_id: str = Field(
description="The client's public client_id — the same identifier stamped "
"on tokens minted under this grant.",
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key