Component evidence

Tokens (surrealdb/types.py)

surrealdb.py · src/surrealdb/types.py · python · Apache-2.0
auth

Defines core types for SurrealDB values and authentication tokens.

Source preview first 800 characters · full source over MCP
# Source: https://github.com/surrealdb/surrealdb.py | 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.
"""
Type definitions for SurrealDB values.

This module defines the Value type, which represents all possible values
that can be returned from SurrealDB queries, including standard JSON types,
bytes, and SurrealDB-specific types. It also defines Tokens for signin/signup
responses (access and refresh tokens).
"""

from dataclasses import dataclass
from datetime import date, time
from decimal import Decimal
from typing import Any
from uuid import UUID

from surrealdb.data.types.big_decimal import BigDecimal
from surrealdb.data.types.datetime import Datetime
from surrealdb.data.types.du

... (truncated -- full source via MCP)