Buckets:

download
raw
888 Bytes
from pydantic import BaseModel, Field
from typing import Optional, Dict, Any
class StandardHeaders(BaseModel):
"""Standard request headers for internal tracking."""
request_id: str = Field(..., alias="X-Request-ID")
org_id: Optional[str] = Field(None, alias="X-Org-ID")
user_id: Optional[str] = Field(None, alias="X-User-ID")
class ErrorDetail(BaseModel):
"""Standardized error detail structure."""
code: str
message: str
details: Optional[Dict[str, Any]] = None
class ErrorResponse(BaseModel):
"""Standardized API error response."""
success: bool = False
request_id: Optional[str] = None
error: ErrorDetail
class HealthCheckResponse(BaseModel):
"""Standard health check response."""
status: str = "healthy"
version: str
service: Optional[str] = None
components: Dict[str, str] = Field(default_factory=dict)

Xet Storage Details

Size:
888 Bytes
·
Xet hash:
a50d969a03ef379d90c0361eb0cc8a46f03d79299ab2131d1a06da6eeb7ec1ef

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