Skip to content

Commit

Permalink
Update lexicons fetched from 8d9b1f7 committed 2023-12-01T20:28:54Z
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX committed Dec 2, 2023
1 parent 1e1829e commit 3d2d6d8
Show file tree
Hide file tree
Showing 157 changed files with 1,485 additions and 1,408 deletions.
28 changes: 10 additions & 18 deletions atproto/xrpc_client/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
from atproto.xrpc_client.models.app.bsky.notification import register_push as AppBskyNotificationRegisterPush
from atproto.xrpc_client.models.app.bsky.notification import update_seen as AppBskyNotificationUpdateSeen
from atproto.xrpc_client.models.app.bsky.richtext import facet as AppBskyRichtextFacet
from atproto.xrpc_client.models.app.bsky.unspecced import apply_labels as AppBskyUnspeccedApplyLabels
from atproto.xrpc_client.models.app.bsky.unspecced import defs as AppBskyUnspeccedDefs
from atproto.xrpc_client.models.app.bsky.unspecced import get_popular as AppBskyUnspeccedGetPopular
from atproto.xrpc_client.models.app.bsky.unspecced import (
Expand All @@ -71,25 +70,20 @@
from atproto.xrpc_client.models.com.atproto.admin import defs as ComAtprotoAdminDefs
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 emit_moderation_event as ComAtprotoAdminEmitModerationEvent
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_moderation_event as ComAtprotoAdminGetModerationEvent
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 query_moderation_events as ComAtprotoAdminQueryModerationEvents
from atproto.xrpc_client.models.com.atproto.admin import (
resolve_moderation_reports as ComAtprotoAdminResolveModerationReports,
)
from atproto.xrpc_client.models.com.atproto.admin import (
reverse_moderation_action as ComAtprotoAdminReverseModerationAction,
query_moderation_statuses as ComAtprotoAdminQueryModerationStatuses,
)
from atproto.xrpc_client.models.com.atproto.admin import search_repos as ComAtprotoAdminSearchRepos
from atproto.xrpc_client.models.com.atproto.admin import send_email as ComAtprotoAdminSendEmail
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
Expand Down Expand Up @@ -147,6 +141,7 @@
from atproto.xrpc_client.models.com.atproto.sync import notify_of_update as ComAtprotoSyncNotifyOfUpdate
from atproto.xrpc_client.models.com.atproto.sync import request_crawl as ComAtprotoSyncRequestCrawl
from atproto.xrpc_client.models.com.atproto.sync import subscribe_repos as ComAtprotoSyncSubscribeRepos
from atproto.xrpc_client.models.com.atproto.temp import fetch_labels as ComAtprotoTempFetchLabels
from atproto.xrpc_client.models.models_loader import load_models
from atproto.xrpc_client.models.utils import (
create_strong_ref,
Expand Down Expand Up @@ -217,7 +212,6 @@ class _Ids:
AppBskyNotificationRegisterPush: str = 'app.bsky.notification.registerPush'
AppBskyNotificationUpdateSeen: str = 'app.bsky.notification.updateSeen'
AppBskyRichtextFacet: str = 'app.bsky.richtext.facet'
AppBskyUnspeccedApplyLabels: str = 'app.bsky.unspecced.applyLabels'
AppBskyUnspeccedDefs: str = 'app.bsky.unspecced.defs'
AppBskyUnspeccedGetPopular: str = 'app.bsky.unspecced.getPopular'
AppBskyUnspeccedGetPopularFeedGenerators: str = 'app.bsky.unspecced.getPopularFeedGenerators'
Expand All @@ -227,21 +221,18 @@ class _Ids:
ComAtprotoAdminDefs: str = 'com.atproto.admin.defs'
ComAtprotoAdminDisableAccountInvites: str = 'com.atproto.admin.disableAccountInvites'
ComAtprotoAdminDisableInviteCodes: str = 'com.atproto.admin.disableInviteCodes'
ComAtprotoAdminEmitModerationEvent: str = 'com.atproto.admin.emitModerationEvent'
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'
ComAtprotoAdminGetModerationEvent: str = 'com.atproto.admin.getModerationEvent'
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'
ComAtprotoAdminQueryModerationEvents: str = 'com.atproto.admin.queryModerationEvents'
ComAtprotoAdminQueryModerationStatuses: str = 'com.atproto.admin.queryModerationStatuses'
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'
Expand Down Expand Up @@ -295,6 +286,7 @@ class _Ids:
ComAtprotoSyncNotifyOfUpdate: str = 'com.atproto.sync.notifyOfUpdate'
ComAtprotoSyncRequestCrawl: str = 'com.atproto.sync.requestCrawl'
ComAtprotoSyncSubscribeRepos: str = 'com.atproto.sync.subscribeRepos'
ComAtprotoTempFetchLabels: str = 'com.atproto.temp.fetchLabels'


ids = _Ids()
Expand Down
4 changes: 2 additions & 2 deletions atproto/xrpc_client/models/app/bsky/actor/defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class PersonalDetailsPref(base.ModelBase):

"""Definition model for :obj:`app.bsky.actor.defs`."""

birth_date: t.Optional[str] = Field(default=None, alias='birthDate') #: The birth date of the owner of the account.
birth_date: t.Optional[str] = Field(default=None, alias='birthDate') #: The birth date of account owner.

py_type: te.Literal['app.bsky.actor.defs#personalDetailsPref'] = Field(
default='app.bsky.actor.defs#personalDetailsPref', alias='$type', frozen=True
Expand Down Expand Up @@ -180,7 +180,7 @@ class ThreadViewPref(base.ModelBase):
prioritize_followed_users: t.Optional[bool] = Field(
default=None, alias='prioritizeFollowedUsers'
) #: Show followed users at the top of all replies.
sort: t.Optional[str] = None #: Sorting mode.
sort: t.Optional[str] = None #: Sorting mode for threads.

py_type: te.Literal['app.bsky.actor.defs#threadViewPref'] = Field(
default='app.bsky.actor.defs#threadViewPref', alias='$type', frozen=True
Expand Down
4 changes: 2 additions & 2 deletions atproto/xrpc_client/models/app/bsky/actor/search_actors.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Params(base.ParamsModelBase):
limit: t.Optional[int] = Field(default=25, ge=1, le=100) #: Limit.
q: t.Optional[
str
] = None #: search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
] = None #: Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
term: t.Optional[str] = None #: DEPRECATED: use 'q' instead.


Expand All @@ -32,7 +32,7 @@ class ParamsDict(te.TypedDict):
limit: te.NotRequired[t.Optional[int]] #: Limit.
q: te.NotRequired[
t.Optional[str]
] #: search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
] #: Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
term: te.NotRequired[t.Optional[str]] #: DEPRECATED: use 'q' instead.


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ class Params(base.ParamsModelBase):
"""Parameters model for :obj:`app.bsky.actor.searchActorsTypeahead`."""

limit: t.Optional[int] = Field(default=10, ge=1, le=100) #: Limit.
q: t.Optional[str] = None #: search query prefix; not a full query string.
q: t.Optional[str] = None #: Search query prefix; not a full query string.
term: t.Optional[str] = None #: DEPRECATED: use 'q' instead.


class ParamsDict(te.TypedDict):
limit: te.NotRequired[t.Optional[int]] #: Limit.
q: te.NotRequired[t.Optional[str]] #: search query prefix; not a full query string.
q: te.NotRequired[t.Optional[str]] #: Search query prefix; not a full query string.
term: te.NotRequired[t.Optional[str]] #: DEPRECATED: use 'q' instead.


Expand Down
13 changes: 1 addition & 12 deletions atproto/xrpc_client/models/app/bsky/feed/defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class ViewerState(base.ModelBase):
"""Definition model for :obj:`app.bsky.feed.defs`."""

like: t.Optional[str] = None #: Like.
reply_disabled: t.Optional[bool] = Field(default=None, alias='replyDisabled') #: Reply disabled.
repost: t.Optional[str] = None #: Repost.

py_type: te.Literal['app.bsky.feed.defs#viewerState'] = Field(
Expand Down Expand Up @@ -140,7 +141,6 @@ class ThreadViewPost(base.ModelBase):
]
]
] = None #: Replies.
viewer: t.Optional['models.AppBskyFeedDefs.ViewerThreadState'] = None #: Viewer.

py_type: te.Literal['app.bsky.feed.defs#threadViewPost'] = Field(
default='app.bsky.feed.defs#threadViewPost', alias='$type', frozen=True
Expand Down Expand Up @@ -184,17 +184,6 @@ class BlockedAuthor(base.ModelBase):
)


class ViewerThreadState(base.ModelBase):

"""Definition model for :obj:`app.bsky.feed.defs`."""

can_reply: t.Optional[bool] = Field(default=None, alias='canReply') #: Can reply.

py_type: te.Literal['app.bsky.feed.defs#viewerThreadState'] = Field(
default='app.bsky.feed.defs#viewerThreadState', alias='$type', frozen=True
)


class GeneratorView(base.ModelBase):

"""Definition model for :obj:`app.bsky.feed.defs`."""
Expand Down
10 changes: 5 additions & 5 deletions atproto/xrpc_client/models/app/bsky/feed/search_posts.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ class Params(base.ParamsModelBase):

"""Parameters model for :obj:`app.bsky.feed.searchPosts`."""

q: str #: search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
q: str #: Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
cursor: t.Optional[
str
] = None #: optional pagination mechanism; may not necessarily allow scrolling through entire result set.
] = None #: Optional pagination mechanism; may not necessarily allow scrolling through entire result set.
limit: t.Optional[int] = Field(default=25, ge=1, le=100) #: Limit.


class ParamsDict(te.TypedDict):
q: str #: search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
q: str #: Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
cursor: te.NotRequired[
t.Optional[str]
] #: optional pagination mechanism; may not necessarily allow scrolling through entire result set.
] #: Optional pagination mechanism; may not necessarily allow scrolling through entire result set.
limit: te.NotRequired[t.Optional[int]] #: Limit.


Expand All @@ -42,4 +42,4 @@ class Response(base.ResponseModelBase):
cursor: t.Optional[str] = None #: Cursor.
hits_total: t.Optional[int] = Field(
default=None, alias='hitsTotal'
) #: count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits.
) #: Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits.
5 changes: 3 additions & 2 deletions atproto/xrpc_client/models/app/bsky/graph/defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class ListItemView(base.ModelBase):
"""Definition model for :obj:`app.bsky.graph.defs`."""

subject: 'models.AppBskyActorDefs.ProfileView' #: Subject.
uri: str #: Uri.

py_type: te.Literal['app.bsky.graph.defs#listItemView'] = Field(
default='app.bsky.graph.defs#listItemView', alias='$type', frozen=True
Expand All @@ -69,11 +70,11 @@ class ListItemView(base.ModelBase):

Modlist = te.Literal[
'app.bsky.graph.defs#modlist'
] #: A list of actors to apply an aggregate moderation action (mute/block) on
] #: A list of actors to apply an aggregate moderation action (mute/block) on.

Curatelist = te.Literal[
'app.bsky.graph.defs#curatelist'
] #: A list of actors used for curation purposes such as list feeds or interaction gating
] #: A list of actors used for curation purposes such as list feeds or interaction gating.


class ListViewerState(base.ModelBase):
Expand Down
25 changes: 0 additions & 25 deletions atproto/xrpc_client/models/app/bsky/unspecced/apply_labels.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ class Params(base.ParamsModelBase):

"""Parameters model for :obj:`app.bsky.unspecced.searchActorsSkeleton`."""

q: str #: search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. For typeahead search, only simple term match is supported, not full syntax.
q: str #: Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. For typeahead search, only simple term match is supported, not full syntax.
cursor: t.Optional[
str
] = None #: optional pagination mechanism; may not necessarily allow scrolling through entire result set.
] = None #: Optional pagination mechanism; may not necessarily allow scrolling through entire result set.
limit: t.Optional[int] = Field(default=25, ge=1, le=100) #: Limit.
typeahead: t.Optional[bool] = None #: if true, acts as fast/simple 'typeahead' query.
typeahead: t.Optional[bool] = None #: If true, acts as fast/simple 'typeahead' query.


class ParamsDict(te.TypedDict):
q: str #: search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. For typeahead search, only simple term match is supported, not full syntax.
q: str #: Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. For typeahead search, only simple term match is supported, not full syntax.
cursor: te.NotRequired[
t.Optional[str]
] #: optional pagination mechanism; may not necessarily allow scrolling through entire result set.
] #: Optional pagination mechanism; may not necessarily allow scrolling through entire result set.
limit: te.NotRequired[t.Optional[int]] #: Limit.
typeahead: te.NotRequired[t.Optional[bool]] #: if true, acts as fast/simple 'typeahead' query.
typeahead: te.NotRequired[t.Optional[bool]] #: If true, acts as fast/simple 'typeahead' query.


class Response(base.ResponseModelBase):
Expand All @@ -44,4 +44,4 @@ class Response(base.ResponseModelBase):
cursor: t.Optional[str] = None #: Cursor.
hits_total: t.Optional[int] = Field(
default=None, alias='hitsTotal'
) #: count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits.
) #: Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits.
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ class Params(base.ParamsModelBase):

"""Parameters model for :obj:`app.bsky.unspecced.searchPostsSkeleton`."""

q: str #: search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
q: str #: Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
cursor: t.Optional[
str
] = None #: optional pagination mechanism; may not necessarily allow scrolling through entire result set.
] = None #: Optional pagination mechanism; may not necessarily allow scrolling through entire result set.
limit: t.Optional[int] = Field(default=25, ge=1, le=100) #: Limit.


class ParamsDict(te.TypedDict):
q: str #: search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
q: str #: Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
cursor: te.NotRequired[
t.Optional[str]
] #: optional pagination mechanism; may not necessarily allow scrolling through entire result set.
] #: Optional pagination mechanism; may not necessarily allow scrolling through entire result set.
limit: te.NotRequired[t.Optional[int]] #: Limit.


Expand All @@ -42,4 +42,4 @@ class Response(base.ResponseModelBase):
cursor: t.Optional[str] = None #: Cursor.
hits_total: t.Optional[int] = Field(
default=None, alias='hitsTotal'
) #: count of search hits. optional, may be rounded/truncated, and may not be possible to paginate through all hits.
) #: Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits.
Loading

0 comments on commit 3d2d6d8

Please sign in to comment.