Docs

Common types

Common types

Common types for TypeSafe API SDK.

typesafe_sdk.JSONValue

module-attribute

JSONValue = TypeAliasType(
    "JSONValue",
    "str | int | float | bool | Sequence[JSONValue | None] | Mapping[str, JSONValue | None]",
)

A JSON-like value. May be nested and contain None.

typesafe_sdk.JSONContent

module-attribute

JSONContent = TypeAliasType(
    "JSONContent",
    "str | Mapping[str, JSONValue | None] | Sequence[JSONValue | None]",
)

Either a plain string or a mapping/sequence of JSONValue entries.