-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
423 additions
and
0 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
packages/atproto_client/models/tools/ozone/moderation/get_records.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
################################################################## | ||
# THIS IS THE AUTO-GENERATED CODE. DON'T EDIT IT BY HANDS! | ||
# Copyright (C) 2024 Ilya (Marshal) <https://github.com/MarshalX>. | ||
# This file is part of Python atproto SDK. Licenced under MIT. | ||
################################################################## | ||
|
||
|
||
import typing as t | ||
|
||
import typing_extensions as te | ||
from pydantic import Field | ||
|
||
if t.TYPE_CHECKING: | ||
from atproto_client import models | ||
from atproto_client.models import base | ||
|
||
|
||
class Params(base.ParamsModelBase): | ||
"""Parameters model for :obj:`tools.ozone.moderation.getRecords`.""" | ||
|
||
uris: t.List[str] = Field(max_length=100) #: Uris. | ||
|
||
|
||
class ParamsDict(t.TypedDict): | ||
uris: t.List[str] #: Uris. | ||
|
||
|
||
class Response(base.ResponseModelBase): | ||
"""Output data model for :obj:`tools.ozone.moderation.getRecords`.""" | ||
|
||
records: t.List[ | ||
te.Annotated[ | ||
t.Union[ | ||
'models.ToolsOzoneModerationDefs.RecordViewDetail', 'models.ToolsOzoneModerationDefs.RecordViewNotFound' | ||
], | ||
Field(discriminator='py_type'), | ||
] | ||
] #: Records. |
38 changes: 38 additions & 0 deletions
38
packages/atproto_client/models/tools/ozone/moderation/get_repos.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
################################################################## | ||
# THIS IS THE AUTO-GENERATED CODE. DON'T EDIT IT BY HANDS! | ||
# Copyright (C) 2024 Ilya (Marshal) <https://github.com/MarshalX>. | ||
# This file is part of Python atproto SDK. Licenced under MIT. | ||
################################################################## | ||
|
||
|
||
import typing as t | ||
|
||
import typing_extensions as te | ||
from pydantic import Field | ||
|
||
if t.TYPE_CHECKING: | ||
from atproto_client import models | ||
from atproto_client.models import base | ||
|
||
|
||
class Params(base.ParamsModelBase): | ||
"""Parameters model for :obj:`tools.ozone.moderation.getRepos`.""" | ||
|
||
dids: t.List[str] = Field(max_length=100) #: Dids. | ||
|
||
|
||
class ParamsDict(t.TypedDict): | ||
dids: t.List[str] #: Dids. | ||
|
||
|
||
class Response(base.ResponseModelBase): | ||
"""Output data model for :obj:`tools.ozone.moderation.getRepos`.""" | ||
|
||
repos: t.List[ | ||
te.Annotated[ | ||
t.Union[ | ||
'models.ToolsOzoneModerationDefs.RepoViewDetail', 'models.ToolsOzoneModerationDefs.RepoViewNotFound' | ||
], | ||
Field(discriminator='py_type'), | ||
] | ||
] #: Repos. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
################################################################## | ||
# THIS IS THE AUTO-GENERATED CODE. DON'T EDIT IT BY HANDS! | ||
# Copyright (C) 2024 Ilya (Marshal) <https://github.com/MarshalX>. | ||
# This file is part of Python atproto SDK. Licenced under MIT. | ||
################################################################## | ||
|
24 changes: 24 additions & 0 deletions
24
packages/atproto_client/models/tools/ozone/set/add_values.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
################################################################## | ||
# THIS IS THE AUTO-GENERATED CODE. DON'T EDIT IT BY HANDS! | ||
# Copyright (C) 2024 Ilya (Marshal) <https://github.com/MarshalX>. | ||
# This file is part of Python atproto SDK. Licenced under MIT. | ||
################################################################## | ||
|
||
|
||
import typing as t | ||
|
||
from pydantic import Field | ||
|
||
from atproto_client.models import base | ||
|
||
|
||
class Data(base.DataModelBase): | ||
"""Input data model for :obj:`tools.ozone.set.addValues`.""" | ||
|
||
name: str #: Name of the set to add values to. | ||
values: t.List[str] = Field(min_length=1, max_length=1000) #: Array of string values to add to the set. | ||
|
||
|
||
class DataDict(t.TypedDict): | ||
name: str #: Name of the set to add values to. | ||
values: t.List[str] #: Array of string values to add to the set. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
################################################################## | ||
# THIS IS THE AUTO-GENERATED CODE. DON'T EDIT IT BY HANDS! | ||
# Copyright (C) 2024 Ilya (Marshal) <https://github.com/MarshalX>. | ||
# This file is part of Python atproto SDK. Licenced under MIT. | ||
################################################################## | ||
|
||
|
||
import typing as t | ||
|
||
from pydantic import Field | ||
|
||
from atproto_client.models import base | ||
|
||
|
||
class Set(base.ModelBase): | ||
"""Definition model for :obj:`tools.ozone.set.defs`.""" | ||
|
||
name: str = Field(min_length=3, max_length=128) #: Name. | ||
description: t.Optional[str] = Field(default=None, max_length=10240) #: Description. | ||
|
||
py_type: t.Literal['tools.ozone.set.defs#set'] = Field( | ||
default='tools.ozone.set.defs#set', alias='$type', frozen=True | ||
) | ||
|
||
|
||
class SetView(base.ModelBase): | ||
"""Definition model for :obj:`tools.ozone.set.defs`.""" | ||
|
||
created_at: str #: Created at. | ||
name: str = Field(min_length=3, max_length=128) #: Name. | ||
set_size: int #: Set size. | ||
updated_at: str #: Updated at. | ||
description: t.Optional[str] = Field(default=None, max_length=10240) #: Description. | ||
|
||
py_type: t.Literal['tools.ozone.set.defs#setView'] = Field( | ||
default='tools.ozone.set.defs#setView', alias='$type', frozen=True | ||
) |
24 changes: 24 additions & 0 deletions
24
packages/atproto_client/models/tools/ozone/set/delete_set.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
################################################################## | ||
# THIS IS THE AUTO-GENERATED CODE. DON'T EDIT IT BY HANDS! | ||
# Copyright (C) 2024 Ilya (Marshal) <https://github.com/MarshalX>. | ||
# This file is part of Python atproto SDK. Licenced under MIT. | ||
################################################################## | ||
|
||
|
||
import typing as t | ||
|
||
from atproto_client.models import base | ||
|
||
|
||
class Data(base.DataModelBase): | ||
"""Input data model for :obj:`tools.ozone.set.deleteSet`.""" | ||
|
||
name: str #: Name of the set to delete. | ||
|
||
|
||
class DataDict(t.TypedDict): | ||
name: str #: Name of the set to delete. | ||
|
||
|
||
class Response(base.ResponseModelBase): | ||
"""Output data model for :obj:`tools.ozone.set.deleteSet`.""" |
24 changes: 24 additions & 0 deletions
24
packages/atproto_client/models/tools/ozone/set/delete_values.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
################################################################## | ||
# THIS IS THE AUTO-GENERATED CODE. DON'T EDIT IT BY HANDS! | ||
# Copyright (C) 2024 Ilya (Marshal) <https://github.com/MarshalX>. | ||
# This file is part of Python atproto SDK. Licenced under MIT. | ||
################################################################## | ||
|
||
|
||
import typing as t | ||
|
||
from pydantic import Field | ||
|
||
from atproto_client.models import base | ||
|
||
|
||
class Data(base.DataModelBase): | ||
"""Input data model for :obj:`tools.ozone.set.deleteValues`.""" | ||
|
||
name: str #: Name of the set to delete values from. | ||
values: t.List[str] = Field(min_length=1) #: Array of string values to delete from the set. | ||
|
||
|
||
class DataDict(t.TypedDict): | ||
name: str #: Name of the set to delete values from. | ||
values: t.List[str] #: Array of string values to delete from the set. |
37 changes: 37 additions & 0 deletions
37
packages/atproto_client/models/tools/ozone/set/get_values.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
################################################################## | ||
# THIS IS THE AUTO-GENERATED CODE. DON'T EDIT IT BY HANDS! | ||
# Copyright (C) 2024 Ilya (Marshal) <https://github.com/MarshalX>. | ||
# This file is part of Python atproto SDK. Licenced under MIT. | ||
################################################################## | ||
|
||
|
||
import typing as t | ||
|
||
import typing_extensions as te | ||
from pydantic import Field | ||
|
||
if t.TYPE_CHECKING: | ||
from atproto_client import models | ||
from atproto_client.models import base | ||
|
||
|
||
class Params(base.ParamsModelBase): | ||
"""Parameters model for :obj:`tools.ozone.set.getValues`.""" | ||
|
||
name: str #: Name. | ||
cursor: t.Optional[str] = None #: Cursor. | ||
limit: t.Optional[int] = Field(default=100, ge=1, le=1000) #: Limit. | ||
|
||
|
||
class ParamsDict(t.TypedDict): | ||
name: str #: Name. | ||
cursor: te.NotRequired[t.Optional[str]] #: Cursor. | ||
limit: te.NotRequired[t.Optional[int]] #: Limit. | ||
|
||
|
||
class Response(base.ResponseModelBase): | ||
"""Output data model for :obj:`tools.ozone.set.getValues`.""" | ||
|
||
set: 'models.ToolsOzoneSetDefs.SetView' #: Set. | ||
values: t.List[str] #: Values. | ||
cursor: t.Optional[str] = None #: Cursor. |
48 changes: 48 additions & 0 deletions
48
packages/atproto_client/models/tools/ozone/set/query_sets.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
################################################################## | ||
# THIS IS THE AUTO-GENERATED CODE. DON'T EDIT IT BY HANDS! | ||
# Copyright (C) 2024 Ilya (Marshal) <https://github.com/MarshalX>. | ||
# This file is part of Python atproto SDK. Licenced under MIT. | ||
################################################################## | ||
|
||
|
||
import typing as t | ||
|
||
import typing_extensions as te | ||
from pydantic import Field | ||
|
||
if t.TYPE_CHECKING: | ||
from atproto_client import models | ||
from atproto_client.models import base | ||
|
||
|
||
class Params(base.ParamsModelBase): | ||
"""Parameters model for :obj:`tools.ozone.set.querySets`.""" | ||
|
||
cursor: t.Optional[str] = None #: Cursor. | ||
limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit. | ||
name_prefix: t.Optional[str] = None #: Name prefix. | ||
sort_by: t.Optional[ | ||
t.Union[t.Literal['name'], t.Literal['createdAt'], t.Literal['updatedAt']] | ||
] = 'name' #: Sort by. | ||
sort_direction: t.Optional[ | ||
t.Union[t.Literal['asc'], t.Literal['desc']] | ||
] = 'asc' #: Defaults to ascending order of name field. | ||
|
||
|
||
class ParamsDict(t.TypedDict): | ||
cursor: te.NotRequired[t.Optional[str]] #: Cursor. | ||
limit: te.NotRequired[t.Optional[int]] #: Limit. | ||
name_prefix: te.NotRequired[t.Optional[str]] #: Name prefix. | ||
sort_by: te.NotRequired[ | ||
t.Optional[t.Union[t.Literal['name'], t.Literal['createdAt'], t.Literal['updatedAt']]] | ||
] #: Sort by. | ||
sort_direction: te.NotRequired[ | ||
t.Optional[t.Union[t.Literal['asc'], t.Literal['desc']]] | ||
] #: Defaults to ascending order of name field. | ||
|
||
|
||
class Response(base.ResponseModelBase): | ||
"""Output data model for :obj:`tools.ozone.set.querySets`.""" | ||
|
||
sets: t.List['models.ToolsOzoneSetDefs.SetView'] #: Sets. | ||
cursor: t.Optional[str] = None #: Cursor. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
################################################################## | ||
# THIS IS THE AUTO-GENERATED CODE. DON'T EDIT IT BY HANDS! | ||
# Copyright (C) 2024 Ilya (Marshal) <https://github.com/MarshalX>. | ||
# This file is part of Python atproto SDK. Licenced under MIT. | ||
################################################################## | ||
|
||
|
6 changes: 6 additions & 0 deletions
6
packages/atproto_client/models/tools/ozone/signature/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
################################################################## | ||
# THIS IS THE AUTO-GENERATED CODE. DON'T EDIT IT BY HANDS! | ||
# Copyright (C) 2024 Ilya (Marshal) <https://github.com/MarshalX>. | ||
# This file is part of Python atproto SDK. Licenced under MIT. | ||
################################################################## | ||
|
23 changes: 23 additions & 0 deletions
23
packages/atproto_client/models/tools/ozone/signature/defs.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
################################################################## | ||
# THIS IS THE AUTO-GENERATED CODE. DON'T EDIT IT BY HANDS! | ||
# Copyright (C) 2024 Ilya (Marshal) <https://github.com/MarshalX>. | ||
# This file is part of Python atproto SDK. Licenced under MIT. | ||
################################################################## | ||
|
||
|
||
import typing as t | ||
|
||
from pydantic import Field | ||
|
||
from atproto_client.models import base | ||
|
||
|
||
class SigDetail(base.ModelBase): | ||
"""Definition model for :obj:`tools.ozone.signature.defs`.""" | ||
|
||
property: str #: Property. | ||
value: str #: Value. | ||
|
||
py_type: t.Literal['tools.ozone.signature.defs#sigDetail'] = Field( | ||
default='tools.ozone.signature.defs#sigDetail', alias='$type', frozen=True | ||
) |
28 changes: 28 additions & 0 deletions
28
packages/atproto_client/models/tools/ozone/signature/find_correlation.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
################################################################## | ||
# THIS IS THE AUTO-GENERATED CODE. DON'T EDIT IT BY HANDS! | ||
# Copyright (C) 2024 Ilya (Marshal) <https://github.com/MarshalX>. | ||
# This file is part of Python atproto SDK. Licenced under MIT. | ||
################################################################## | ||
|
||
|
||
import typing as t | ||
|
||
if t.TYPE_CHECKING: | ||
from atproto_client import models | ||
from atproto_client.models import base | ||
|
||
|
||
class Params(base.ParamsModelBase): | ||
"""Parameters model for :obj:`tools.ozone.signature.findCorrelation`.""" | ||
|
||
dids: t.List[str] #: Dids. | ||
|
||
|
||
class ParamsDict(t.TypedDict): | ||
dids: t.List[str] #: Dids. | ||
|
||
|
||
class Response(base.ResponseModelBase): | ||
"""Output data model for :obj:`tools.ozone.signature.findCorrelation`.""" | ||
|
||
details: t.List['models.ToolsOzoneSignatureDefs.SigDetail'] #: Details. |
Oops, something went wrong.