문서

공통 타입

TypeSafe API SDK의 공통 타입입니다.

typesafe_sdk.JSONValue

module-attribute

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

JSON 같은 값입니다. 중첩될 수 있고 None을 포함할 수 있습니다.

typesafe_sdk.JSONContent

module-attribute

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

일반 문자열이거나 JSONValue 항목의 매핑/시퀀스입니다.