Buckets:

download
raw
936 Bytes
# SPDX-License-Identifier: MIT
"""Common schema with data validation."""
from typing import Literal
from pydantic import BaseModel
class UserCredential(BaseModel):
"""Represents an authentication user credential with metadata.
Attributes:
access_token: JWT access token string.
expired_in: Access token expiration time, second.
refresh_token: Token used to refresh access.
"""
access_token: str
expired_in: int = 7200
refresh_token: str
class CurrentUser(BaseModel):
"""Minimal user identity information for authenticated requests.
Attributes:
user_id: Unique identifier of the authenticated user.
"""
user_id: int
class SortItem(BaseModel):
"""Single field sorting specification.
Attributes:
field: Name of the field to sort by
order: Sort direction ('asc' or 'desc')
"""
field: str
order: Literal["asc", "desc"]

Xet Storage Details

Size:
936 Bytes
·
Xet hash:
3e53964c234ee831f1a708b47214497e0ff5f62b6c85e1e636044aab663f340d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.