-
Notifications
You must be signed in to change notification settings - Fork 4
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
10 changed files
with
98 additions
and
6 deletions.
There are no files selected for viewing
Submodule atproto
updated
41 files
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
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,9 @@ | ||
# GENERATED CODE - DO NOT MODIFY | ||
"""""" | ||
from __future__ import annotations | ||
import chitose | ||
import typing | ||
|
||
def _search_accounts(call: chitose.xrpc.XrpcCall, email: typing.Optional[str]=None, cursor: typing.Optional[str]=None, limit: typing.Optional[int]=None) -> bytes: | ||
"""Get list of accounts that matches your search query.""" | ||
return call('com.atproto.admin.searchAccounts', [('email', email), ('cursor', cursor), ('limit', limit)], None, {}) |
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
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
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,16 @@ | ||
# GENERATED CODE - DO NOT MODIFY | ||
from __future__ import annotations | ||
from chitose.xrpc import XrpcCall | ||
from chitose.xrpc import XrpcSubscribe | ||
from .get_config import _get_config | ||
|
||
class Server_: | ||
"""We recommend calling methods in this class via the :doc:`chitose.BskyAgent <chitose>` class instead of creating instances of this class directly.""" | ||
|
||
def __init__(self, call: XrpcCall, subscribe: XrpcSubscribe) -> None: | ||
self.call = call | ||
self.subscribe = subscribe | ||
|
||
def get_config(self) -> bytes: | ||
"""Get details about ozone's server configuration.""" | ||
return _get_config(self.call) |
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,27 @@ | ||
# GENERATED CODE - DO NOT MODIFY | ||
"""""" | ||
from __future__ import annotations | ||
import chitose | ||
import typing | ||
|
||
def _get_config(call: chitose.xrpc.XrpcCall) -> bytes: | ||
"""Get details about ozone's server configuration.""" | ||
return call('tools.ozone.server.getConfig', [], None, {}) | ||
|
||
class ServiceConfig(chitose.Object): | ||
"""""" | ||
|
||
def __init__(self, url: typing.Optional[str]=None) -> None: | ||
self.url = url | ||
|
||
def to_dict(self) -> dict[str, typing.Any]: | ||
return {'url': self.url, '$type': 'tools.ozone.server.getConfig#serviceConfig'} | ||
|
||
class ViewerConfig(chitose.Object): | ||
"""""" | ||
|
||
def __init__(self, role: typing.Optional[typing.Literal['tools.ozone.team.defs#roleAdmin', 'tools.ozone.team.defs#roleModerator', 'tools.ozone.team.defs#roleTriage']]=None) -> None: | ||
self.role = role | ||
|
||
def to_dict(self) -> dict[str, typing.Any]: | ||
return {'role': self.role, '$type': 'tools.ozone.server.getConfig#viewerConfig'} |
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
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
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,21 @@ | ||
chitose.tools.ozone.server package | ||
================================== | ||
|
||
Submodules | ||
---------- | ||
|
||
chitose.tools.ozone.server.get\_config module | ||
--------------------------------------------- | ||
|
||
.. automodule:: chitose.tools.ozone.server.get_config | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: chitose.tools.ozone.server | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |