Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lexicons fetched from 772736a committed 2023-11-02T20:16:26Z #182

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions atproto/xrpc_client/client/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class JwtPayload:
iat: int # created at
scope: str
sub: str # DID
aud: t.Optional[str] = None # DID
jti: t.Optional[str] = None # in refresh token only


Expand Down
6 changes: 6 additions & 0 deletions atproto/xrpc_client/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,15 @@
from atproto.xrpc_client.models.com.atproto.admin import disable_account_invites as ComAtprotoAdminDisableAccountInvites
from atproto.xrpc_client.models.com.atproto.admin import disable_invite_codes as ComAtprotoAdminDisableInviteCodes
from atproto.xrpc_client.models.com.atproto.admin import enable_account_invites as ComAtprotoAdminEnableAccountInvites
from atproto.xrpc_client.models.com.atproto.admin import get_account_info as ComAtprotoAdminGetAccountInfo
from atproto.xrpc_client.models.com.atproto.admin import get_invite_codes as ComAtprotoAdminGetInviteCodes
from atproto.xrpc_client.models.com.atproto.admin import get_moderation_action as ComAtprotoAdminGetModerationAction
from atproto.xrpc_client.models.com.atproto.admin import get_moderation_actions as ComAtprotoAdminGetModerationActions
from atproto.xrpc_client.models.com.atproto.admin import get_moderation_report as ComAtprotoAdminGetModerationReport
from atproto.xrpc_client.models.com.atproto.admin import get_moderation_reports as ComAtprotoAdminGetModerationReports
from atproto.xrpc_client.models.com.atproto.admin import get_record as ComAtprotoAdminGetRecord
from atproto.xrpc_client.models.com.atproto.admin import get_repo as ComAtprotoAdminGetRepo
from atproto.xrpc_client.models.com.atproto.admin import get_subject_status as ComAtprotoAdminGetSubjectStatus
from atproto.xrpc_client.models.com.atproto.admin import (
resolve_moderation_reports as ComAtprotoAdminResolveModerationReports,
)
Expand All @@ -90,6 +92,7 @@
from atproto.xrpc_client.models.com.atproto.admin import take_moderation_action as ComAtprotoAdminTakeModerationAction
from atproto.xrpc_client.models.com.atproto.admin import update_account_email as ComAtprotoAdminUpdateAccountEmail
from atproto.xrpc_client.models.com.atproto.admin import update_account_handle as ComAtprotoAdminUpdateAccountHandle
from atproto.xrpc_client.models.com.atproto.admin import update_subject_status as ComAtprotoAdminUpdateSubjectStatus
from atproto.xrpc_client.models.com.atproto.identity import resolve_handle as ComAtprotoIdentityResolveHandle
from atproto.xrpc_client.models.com.atproto.identity import update_handle as ComAtprotoIdentityUpdateHandle
from atproto.xrpc_client.models.com.atproto.label import defs as ComAtprotoLabelDefs
Expand Down Expand Up @@ -225,20 +228,23 @@ class _Ids:
ComAtprotoAdminDisableAccountInvites: str = 'com.atproto.admin.disableAccountInvites'
ComAtprotoAdminDisableInviteCodes: str = 'com.atproto.admin.disableInviteCodes'
ComAtprotoAdminEnableAccountInvites: str = 'com.atproto.admin.enableAccountInvites'
ComAtprotoAdminGetAccountInfo: str = 'com.atproto.admin.getAccountInfo'
ComAtprotoAdminGetInviteCodes: str = 'com.atproto.admin.getInviteCodes'
ComAtprotoAdminGetModerationAction: str = 'com.atproto.admin.getModerationAction'
ComAtprotoAdminGetModerationActions: str = 'com.atproto.admin.getModerationActions'
ComAtprotoAdminGetModerationReport: str = 'com.atproto.admin.getModerationReport'
ComAtprotoAdminGetModerationReports: str = 'com.atproto.admin.getModerationReports'
ComAtprotoAdminGetRecord: str = 'com.atproto.admin.getRecord'
ComAtprotoAdminGetRepo: str = 'com.atproto.admin.getRepo'
ComAtprotoAdminGetSubjectStatus: str = 'com.atproto.admin.getSubjectStatus'
ComAtprotoAdminResolveModerationReports: str = 'com.atproto.admin.resolveModerationReports'
ComAtprotoAdminReverseModerationAction: str = 'com.atproto.admin.reverseModerationAction'
ComAtprotoAdminSearchRepos: str = 'com.atproto.admin.searchRepos'
ComAtprotoAdminSendEmail: str = 'com.atproto.admin.sendEmail'
ComAtprotoAdminTakeModerationAction: str = 'com.atproto.admin.takeModerationAction'
ComAtprotoAdminUpdateAccountEmail: str = 'com.atproto.admin.updateAccountEmail'
ComAtprotoAdminUpdateAccountHandle: str = 'com.atproto.admin.updateAccountHandle'
ComAtprotoAdminUpdateSubjectStatus: str = 'com.atproto.admin.updateSubjectStatus'
ComAtprotoIdentityResolveHandle: str = 'com.atproto.identity.resolveHandle'
ComAtprotoIdentityUpdateHandle: str = 'com.atproto.identity.updateHandle'
ComAtprotoLabelDefs: str = 'com.atproto.label.defs'
Expand Down
3 changes: 3 additions & 0 deletions atproto/xrpc_client/models/app/bsky/actor/defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ class ViewerState(base.ModelBase):

blocked_by: t.Optional[bool] = Field(default=None, alias='blockedBy') #: Blocked by.
blocking: t.Optional[str] = None #: Blocking.
blocking_by_list: t.Optional['models.AppBskyGraphDefs.ListViewBasic'] = Field(
default=None, alias='blockingByList'
) #: Blocking by list.
followed_by: t.Optional[str] = Field(default=None, alias='followedBy') #: Followed by.
following: t.Optional[str] = None #: Following.
muted: t.Optional[bool] = None #: Muted.
Expand Down
45 changes: 45 additions & 0 deletions atproto/xrpc_client/models/com/atproto/admin/defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@
from atproto.xrpc_client.models import base


class StatusAttr(base.ModelBase):

"""Definition model for :obj:`com.atproto.admin.defs`."""

applied: bool #: Applied.
ref: t.Optional[str] = None #: Ref.

py_type: te.Literal['com.atproto.admin.defs#statusAttr'] = Field(
default='com.atproto.admin.defs#statusAttr', alias='$type', frozen=True
)


class ActionView(base.ModelBase):

"""Definition model for :obj:`com.atproto.admin.defs`."""
Expand Down Expand Up @@ -221,6 +233,26 @@ class RepoViewDetail(base.ModelBase):
)


class AccountView(base.ModelBase):

"""Definition model for :obj:`com.atproto.admin.defs`."""

did: str #: Did.
handle: str #: Handle.
indexed_at: str = Field(alias='indexedAt') #: Indexed at.
email: t.Optional[str] = None #: Email.
invite_note: t.Optional[str] = Field(default=None, alias='inviteNote') #: Invite note.
invited_by: t.Optional['models.ComAtprotoServerDefs.InviteCode'] = Field(
default=None, alias='invitedBy'
) #: Invited by.
invites: t.Optional[t.List['models.ComAtprotoServerDefs.InviteCode']] = None #: Invites.
invites_disabled: t.Optional[bool] = Field(default=None, alias='invitesDisabled') #: Invites disabled.

py_type: te.Literal['com.atproto.admin.defs#accountView'] = Field(
default='com.atproto.admin.defs#accountView', alias='$type', frozen=True
)


class RepoViewNotFound(base.ModelBase):

"""Definition model for :obj:`com.atproto.admin.defs`."""
Expand All @@ -243,6 +275,19 @@ class RepoRef(base.ModelBase):
)


class RepoBlobRef(base.ModelBase):

"""Definition model for :obj:`com.atproto.admin.defs`."""

cid: str #: Cid.
did: str #: Did.
record_uri: t.Optional[str] = Field(default=None, alias='recordUri') #: Record uri.

py_type: te.Literal['com.atproto.admin.defs#repoBlobRef'] = Field(
default='com.atproto.admin.defs#repoBlobRef', alias='$type', frozen=True
)


class RecordView(base.ModelBase):

"""Definition model for :obj:`com.atproto.admin.defs`."""
Expand Down
21 changes: 21 additions & 0 deletions atproto/xrpc_client/models/com/atproto/admin/get_account_info.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
##################################################################
# THIS IS THE AUTO-GENERATED CODE. DON'T EDIT IT BY HANDS!
# Copyright (C) 2023 Ilya (Marshal) <https://github.com/MarshalX>.
# This file is part of Python atproto SDK. Licenced under MIT.
##################################################################


import typing_extensions as te

from atproto.xrpc_client.models import base


class Params(base.ParamsModelBase):

"""Parameters model for :obj:`com.atproto.admin.getAccountInfo`."""

did: str #: Did.


class ParamsDict(te.TypedDict):
did: str #: Did.
45 changes: 45 additions & 0 deletions atproto/xrpc_client/models/com/atproto/admin/get_subject_status.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
##################################################################
# THIS IS THE AUTO-GENERATED CODE. DON'T EDIT IT BY HANDS!
# Copyright (C) 2023 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.xrpc_client import models
from atproto.xrpc_client.models import base


class Params(base.ParamsModelBase):

"""Parameters model for :obj:`com.atproto.admin.getSubjectStatus`."""

blob: t.Optional[str] = None #: Blob.
did: t.Optional[str] = None #: Did.
uri: t.Optional[str] = None #: Uri.


class ParamsDict(te.TypedDict):
blob: te.NotRequired[t.Optional[str]] #: Blob.
did: te.NotRequired[t.Optional[str]] #: Did.
uri: te.NotRequired[t.Optional[str]] #: Uri.


class Response(base.ResponseModelBase):

"""Output data model for :obj:`com.atproto.admin.getSubjectStatus`."""

subject: te.Annotated[
t.Union[
'models.ComAtprotoAdminDefs.RepoRef',
'models.ComAtprotoRepoStrongRef.Main',
'models.ComAtprotoAdminDefs.RepoBlobRef',
],
Field(discriminator='py_type'),
] #: Subject.
takedown: t.Optional['models.ComAtprotoAdminDefs.StatusAttr'] = None #: Takedown.
2 changes: 0 additions & 2 deletions atproto/xrpc_client/models/com/atproto/admin/search_repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,13 @@ class Params(base.ParamsModelBase):
"""Parameters model for :obj:`com.atproto.admin.searchRepos`."""

cursor: t.Optional[str] = None #: Cursor.
invited_by: t.Optional[str] = Field(default=None, alias='invitedBy') #: Invited by.
limit: t.Optional[int] = Field(default=50, ge=1, le=100) #: Limit.
q: t.Optional[str] = None #: Q.
term: t.Optional[str] = None #: DEPRECATED: use 'q' instead.


class ParamsDict(te.TypedDict):
cursor: te.NotRequired[t.Optional[str]] #: Cursor.
invited_by: te.NotRequired[t.Optional[str]] #: Invited by.
limit: te.NotRequired[t.Optional[int]] #: Limit.
q: te.NotRequired[t.Optional[str]] #: Q.
term: te.NotRequired[t.Optional[str]] #: DEPRECATED: use 'q' instead.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
##################################################################
# THIS IS THE AUTO-GENERATED CODE. DON'T EDIT IT BY HANDS!
# Copyright (C) 2023 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.xrpc_client import models
from atproto.xrpc_client.models import base


class Data(base.DataModelBase):

"""Input data model for :obj:`com.atproto.admin.updateSubjectStatus`."""

subject: te.Annotated[
t.Union[
'models.ComAtprotoAdminDefs.RepoRef',
'models.ComAtprotoRepoStrongRef.Main',
'models.ComAtprotoAdminDefs.RepoBlobRef',
],
Field(discriminator='py_type'),
] #: Subject.
takedown: t.Optional['models.ComAtprotoAdminDefs.StatusAttr'] = None #: Takedown.


class DataDict(te.TypedDict):
subject: te.Annotated[
t.Union[
'models.ComAtprotoAdminDefs.RepoRef',
'models.ComAtprotoRepoStrongRef.Main',
'models.ComAtprotoAdminDefs.RepoBlobRef',
],
Field(discriminator='py_type'),
] #: Subject.
takedown: te.NotRequired[t.Optional['models.ComAtprotoAdminDefs.StatusAttr']] #: Takedown.


class Response(base.ResponseModelBase):

"""Output data model for :obj:`com.atproto.admin.updateSubjectStatus`."""

subject: te.Annotated[
t.Union[
'models.ComAtprotoAdminDefs.RepoRef',
'models.ComAtprotoRepoStrongRef.Main',
'models.ComAtprotoAdminDefs.RepoBlobRef',
],
Field(discriminator='py_type'),
] #: Subject.
takedown: t.Optional['models.ComAtprotoAdminDefs.StatusAttr'] = None #: Takedown.
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ class Response(base.ResponseModelBase):
t.Union['models.ComAtprotoAdminDefs.RepoRef', 'models.ComAtprotoRepoStrongRef.Main'],
Field(discriminator='py_type'),
] #: Subject.
reason: t.Optional[str] = None #: Reason.
reason: t.Optional[str] = Field(default=None, max_length=20000) #: Reason.
14 changes: 7 additions & 7 deletions atproto/xrpc_client/models/com/atproto/server/create_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,30 @@
from pydantic import Field

if t.TYPE_CHECKING:
from atproto.xrpc_client.models.unknown_type import UnknownType
from atproto.xrpc_client.models.unknown_type import UnknownInputType, UnknownType
from atproto.xrpc_client.models import base


class Data(base.DataModelBase):

"""Input data model for :obj:`com.atproto.server.createAccount`."""

email: str #: Email.
handle: str #: Handle.
password: str #: Password.
did: t.Optional[str] = None #: Did.
email: t.Optional[str] = None #: Email.
invite_code: t.Optional[str] = Field(default=None, alias='inviteCode') #: Invite code.
plc_op: t.Optional[t.Union[str, bytes]] = Field(default=None, alias='plcOp') #: Plc op.
password: t.Optional[str] = None #: Password.
plc_op: t.Optional['UnknownInputType'] = Field(default=None, alias='plcOp') #: Plc op.
recovery_key: t.Optional[str] = Field(default=None, alias='recoveryKey') #: Recovery key.


class DataDict(te.TypedDict):
email: str #: Email.
handle: str #: Handle.
password: str #: Password.
did: te.NotRequired[t.Optional[str]] #: Did.
email: te.NotRequired[t.Optional[str]] #: Email.
invite_code: te.NotRequired[t.Optional[str]] #: Invite code.
plc_op: te.NotRequired[t.Optional[t.Union[str, bytes]]] #: Plc op.
password: te.NotRequired[t.Optional[str]] #: Password.
plc_op: te.NotRequired[t.Optional['UnknownInputType']] #: Plc op.
recovery_key: te.NotRequired[t.Optional[str]] #: Recovery key.


Expand Down
3 changes: 3 additions & 0 deletions atproto/xrpc_client/models/com/atproto/server/get_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

from pydantic import Field

if t.TYPE_CHECKING:
from atproto.xrpc_client.models.unknown_type import UnknownType
from atproto.xrpc_client.models import base


Expand All @@ -18,5 +20,6 @@ class Response(base.ResponseModelBase):

did: str #: Did.
handle: str #: Handle.
did_doc: t.Optional['UnknownType'] = Field(default=None, alias='didDoc') #: Did doc.
email: t.Optional[str] = None #: Email.
email_confirmed: t.Optional[bool] = Field(default=None, alias='emailConfirmed') #: Email confirmed.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,25 @@
##################################################################


import typing as t

import typing_extensions as te
from pydantic import Field

from atproto.xrpc_client.models import base


class Data(base.DataModelBase):

"""Input data model for :obj:`com.atproto.server.reserveSigningKey`."""

did: t.Optional[str] = None #: The did to reserve a new did:key for.


class DataDict(te.TypedDict):
did: te.NotRequired[t.Optional[str]] #: The did to reserve a new did:key for.


class Response(base.ResponseModelBase):

"""Output data model for :obj:`com.atproto.server.reserveSigningKey`."""
Expand Down
Loading