-
-
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.
Update lexicons fetched from 3ad0519 committed 2024-06-18T22:47:20Z (#…
…347)
- Loading branch information
Showing
22 changed files
with
634 additions
and
0 deletions.
There are no files selected for viewing
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
7 changes: 7 additions & 0 deletions
7
docs/source/atproto/atproto_client.models.tools.ozone.team.add_member.rst
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 @@ | ||
tools.ozone.team.add\_member | ||
=================================================== | ||
|
||
.. automodule:: atproto_client.models.tools.ozone.team.add_member | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
7 changes: 7 additions & 0 deletions
7
docs/source/atproto/atproto_client.models.tools.ozone.team.defs.rst
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 @@ | ||
tools.ozone.team.defs | ||
============================================ | ||
|
||
.. automodule:: atproto_client.models.tools.ozone.team.defs | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
7 changes: 7 additions & 0 deletions
7
docs/source/atproto/atproto_client.models.tools.ozone.team.delete_member.rst
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 @@ | ||
tools.ozone.team.delete\_member | ||
====================================================== | ||
|
||
.. automodule:: atproto_client.models.tools.ozone.team.delete_member | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
7 changes: 7 additions & 0 deletions
7
docs/source/atproto/atproto_client.models.tools.ozone.team.list_members.rst
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 @@ | ||
tools.ozone.team.list\_members | ||
===================================================== | ||
|
||
.. automodule:: atproto_client.models.tools.ozone.team.list_members | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
19 changes: 19 additions & 0 deletions
19
docs/source/atproto/atproto_client.models.tools.ozone.team.rst
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,19 @@ | ||
tools.ozone.team | ||
======================================= | ||
|
||
.. automodule:: atproto_client.models.tools.ozone.team | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Submodules | ||
---------- | ||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
atproto_client.models.tools.ozone.team.add_member | ||
atproto_client.models.tools.ozone.team.defs | ||
atproto_client.models.tools.ozone.team.delete_member | ||
atproto_client.models.tools.ozone.team.list_members | ||
atproto_client.models.tools.ozone.team.update_member |
7 changes: 7 additions & 0 deletions
7
docs/source/atproto/atproto_client.models.tools.ozone.team.update_member.rst
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 @@ | ||
tools.ozone.team.update\_member | ||
====================================================== | ||
|
||
.. automodule:: atproto_client.models.tools.ozone.team.update_member | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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,41 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "tools.ozone.team.addMember", | ||
"defs": { | ||
"main": { | ||
"type": "procedure", | ||
"description": "Add a member to the ozone team. Requires admin role.", | ||
"input": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["did", "role"], | ||
"properties": { | ||
"did": { "type": "string", "format": "did" }, | ||
"role": { | ||
"type": "string", | ||
"knownValues": [ | ||
"tools.ozone.team.defs#roleAdmin", | ||
"tools.ozone.team.defs#roleModerator", | ||
"tools.ozone.team.defs#roleTriage" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "ref", | ||
"ref": "tools.ozone.team.defs#member" | ||
} | ||
}, | ||
"errors": [ | ||
{ | ||
"name": "MemberAlreadyExists", | ||
"description": "Member already exists in the team." | ||
} | ||
] | ||
} | ||
} | ||
} |
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 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "tools.ozone.team.defs", | ||
"defs": { | ||
"member": { | ||
"type": "object", | ||
"required": ["did", "role"], | ||
"properties": { | ||
"did": { "type": "string", "format": "did" }, | ||
"disabled": { "type": "boolean" }, | ||
"profile": { | ||
"type": "ref", | ||
"ref": "app.bsky.actor.defs#profileViewDetailed" | ||
}, | ||
"createdAt": { "type": "string", "format": "datetime" }, | ||
"updatedAt": { "type": "string", "format": "datetime" }, | ||
"lastUpdatedBy": { "type": "string" }, | ||
"role": { | ||
"type": "string", | ||
"knownValues": ["#roleAdmin", "#roleModerator", "#roleTriage"] | ||
} | ||
} | ||
}, | ||
"roleAdmin": { | ||
"type": "token", | ||
"description": "Admin role. Highest level of access, can perform all actions." | ||
}, | ||
"roleModerator": { | ||
"type": "token", | ||
"description": "Moderator role. Can perform most actions." | ||
}, | ||
"roleTriage": { | ||
"type": "token", | ||
"description": "Triage role. Mostly intended for monitoring and escalating issues." | ||
} | ||
} | ||
} |
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,30 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "tools.ozone.team.deleteMember", | ||
"defs": { | ||
"main": { | ||
"type": "procedure", | ||
"description": "Delete a member from ozone team. Requires admin role.", | ||
"input": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["did"], | ||
"properties": { | ||
"did": { "type": "string", "format": "did" } | ||
} | ||
} | ||
}, | ||
"errors": [ | ||
{ | ||
"name": "MemberNotFound", | ||
"description": "The member being deleted does not exist" | ||
}, | ||
{ | ||
"name": "CannotDeleteSelf", | ||
"description": "You can not delete yourself from the team" | ||
} | ||
] | ||
} | ||
} | ||
} |
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,39 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "tools.ozone.team.listMembers", | ||
"defs": { | ||
"main": { | ||
"type": "query", | ||
"description": "List all members with access to the ozone service.", | ||
"parameters": { | ||
"type": "params", | ||
"properties": { | ||
"limit": { | ||
"type": "integer", | ||
"minimum": 1, | ||
"maximum": 100, | ||
"default": 50 | ||
}, | ||
"cursor": { "type": "string" } | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["members"], | ||
"properties": { | ||
"cursor": { "type": "string" }, | ||
"members": { | ||
"type": "array", | ||
"items": { | ||
"type": "ref", | ||
"ref": "tools.ozone.team.defs#member" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,42 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "tools.ozone.team.updateMember", | ||
"defs": { | ||
"main": { | ||
"type": "procedure", | ||
"description": "Update a member in the ozone service. Requires admin role.", | ||
"input": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["did"], | ||
"properties": { | ||
"did": { "type": "string", "format": "did" }, | ||
"disabled": { "type": "boolean" }, | ||
"role": { | ||
"type": "string", | ||
"knownValues": [ | ||
"tools.ozone.team.defs#roleAdmin", | ||
"tools.ozone.team.defs#roleModerator", | ||
"tools.ozone.team.defs#roleTriage" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "ref", | ||
"ref": "tools.ozone.team.defs#member" | ||
} | ||
}, | ||
"errors": [ | ||
{ | ||
"name": "MemberNotFound", | ||
"description": "The member being updated does not exist in the team" | ||
} | ||
] | ||
} | ||
} | ||
} |
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,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. | ||
################################################################## | ||
|
22 changes: 22 additions & 0 deletions
22
packages/atproto_client/models/tools/ozone/team/add_member.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,22 @@ | ||
################################################################## | ||
# 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.team.addMember`.""" | ||
|
||
did: str #: Did. | ||
role: str #: Role. | ||
|
||
|
||
class DataDict(t.TypedDict): | ||
did: str #: Did. | ||
role: str #: Role. |
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,41 @@ | ||
################################################################## | ||
# 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 | ||
|
||
if t.TYPE_CHECKING: | ||
from atproto_client import models | ||
from atproto_client.models import base | ||
|
||
|
||
class Member(base.ModelBase): | ||
"""Definition model for :obj:`tools.ozone.team.defs`.""" | ||
|
||
did: str #: Did. | ||
role: str #: Role. | ||
created_at: t.Optional[str] = None #: Created at. | ||
disabled: t.Optional[bool] = None #: Disabled. | ||
last_updated_by: t.Optional[str] = None #: Last updated by. | ||
profile: t.Optional['models.AppBskyActorDefs.ProfileViewDetailed'] = None #: Profile. | ||
updated_at: t.Optional[str] = None #: Updated at. | ||
|
||
py_type: t.Literal['tools.ozone.team.defs#member'] = Field( | ||
default='tools.ozone.team.defs#member', alias='$type', frozen=True | ||
) | ||
|
||
|
||
RoleAdmin = t.Literal[ | ||
'tools.ozone.team.defs#roleAdmin' | ||
] #: Admin role. Highest level of access, can perform all actions. | ||
|
||
RoleModerator = t.Literal['tools.ozone.team.defs#roleModerator'] #: Moderator role. Can perform most actions. | ||
|
||
RoleTriage = t.Literal[ | ||
'tools.ozone.team.defs#roleTriage' | ||
] #: Triage role. Mostly intended for monitoring and escalating issues. |
20 changes: 20 additions & 0 deletions
20
packages/atproto_client/models/tools/ozone/team/delete_member.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,20 @@ | ||
################################################################## | ||
# 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.team.deleteMember`.""" | ||
|
||
did: str #: Did. | ||
|
||
|
||
class DataDict(t.TypedDict): | ||
did: str #: Did. |
Oops, something went wrong.