Skip to content

common_browser.schemas.data.state

Protected, explicit browser storage snapshots.

Classes

StorageSnapshot

Bases: BaseModel

A versioned storage product, not proof of login or a complete profile.

Normal serialization masks the body. export explicitly reveals a fresh dictionary for an authorized store or a newly created browser context.

Fields and properties declared here; inherited members belong to the bases above.

engine

engine: str

features

Read-only property.

features: frozenset[str]

Declared storage features; neither sessionStorage nor a full profile.

includes_indexed_db

includes_indexed_db: bool = False

origins

Read-only property.

origins: tuple[str, ...]

Storage origins, excluding the separately scoped cookie domains.

payload

payload: SecretStr = Field(repr=False)

sdk_version

sdk_version: str | None = None

version

version: Literal[1] = 1

export

def export() -> dict[str, Any]

from_storage

@classmethod
def from_storage(data: dict[str, Any], *, engine: str, sdk_version: str | None = None, includes_indexed_db: bool = False) -> StorageSnapshot