tools.ozone.setting.upsertOption

Create or update setting option

class atproto_client.models.tools.ozone.setting.upsert_option.Data

Bases: DataModelBase

Input data model for tools.ozone.setting.upsertOption.

field description: str | None = None

Description.

Constraints:
  • max_length = 2000

field key: Nsid [Required]

Key.

field manager_role: models.ToolsOzoneTeamDefs.RoleModerator | models.ToolsOzoneTeamDefs.RoleTriage | models.ToolsOzoneTeamDefs.RoleVerifier | models.ToolsOzoneTeamDefs.RoleAdmin | str | None = None

Manager role.

field scope: Literal['instance', 'personal'] | str [Required]

Scope.

field value: UnknownInputType [Required]

Value.

Constraints:
  • __module__ = atproto_client.models.unknown_union

  • __firstlineno__ = 72

  • __doc__ = Annotation for lexicon unknown fields: any registered record type, else DotDict. Record types are looked up in the runtime registry rather than in a union fixed at import time, so a record defined by a package generated from custom lexicons is decoded to its own model.

  • __get_pydantic_core_schema__ = <bound method UnknownRecordFallback.__get_pydantic_core_schema__ of <class ‘atproto_client.models.unknown_union.UnknownRecordFallback’>>

  • __static_attributes__ = ()

  • __dict__ = {‘__module__’: ‘atproto_client.models.unknown_union’, ‘__firstlineno__’: 72, ‘__doc__’: ‘Annotation for lexicon unknown fields: any registered record type, else DotDict.nnRecord types are looked up in the runtime registry rather than in a union fixed at import time,nso a record defined by a package generated from custom lexicons is decoded to its own model.n’, ‘__get_pydantic_core_schema__’: <classmethod(<function UnknownRecordFallback.__get_pydantic_core_schema__ at 0x786e5ef30d60>)>, ‘__static_attributes__’: (), ‘__dict__’: <attribute ‘__dict__’ of ‘UnknownRecordFallback’ objects>, ‘__weakref__’: <attribute ‘__weakref__’ of ‘UnknownRecordFallback’ objects>}

  • __weakref__ = <attribute ‘__weakref__’ of ‘UnknownRecordFallback’ objects>

class atproto_client.models.tools.ozone.setting.upsert_option.DataDict

Bases: TypedDict

key: Nsid

Key.

scope: Literal['instance', 'personal'] | str

Scope.

value: Annotated[Any, UnknownRecordFallback]

Value.

description: NotRequired[str | None]

Description.

manager_role: NotRequired[Literal['tools.ozone.team.defs#roleModerator'] | Literal['tools.ozone.team.defs#roleTriage'] | Literal['tools.ozone.team.defs#roleVerifier'] | Literal['tools.ozone.team.defs#roleAdmin'] | str | None]

Manager role.

class atproto_client.models.tools.ozone.setting.upsert_option.Response

Bases: ResponseModelBase

Output data model for tools.ozone.setting.upsertOption.

field option: models.ToolsOzoneSettingDefs.Option [Required]

Option.