Shield external portal jumps (keep EXTERNAL_* for later), serve /nav from static build, and proxy /book + /community to vertical Next apps with Caddy notes. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
542 B
Python
20 lines
542 B
Python
from __future__ import annotations
|
|
|
|
from typing import Any
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class TrackEvent(BaseModel):
|
|
name: str = Field(..., min_length=1, max_length=64)
|
|
page: str | None = Field(default=None, max_length=64)
|
|
label: str | None = Field(default=None, max_length=120)
|
|
props: dict[str, Any] | None = None
|
|
ts: float | None = None
|
|
|
|
|
|
class TrackBatchBody(BaseModel):
|
|
events: list[TrackEvent] = Field(..., min_length=1, max_length=50)
|
|
openid: str | None = None
|
|
client: str | None = "miniapp"
|