Skip to content

Commit

Permalink
Update lexicons fetched from 8994d36 committed 2024-01-25T20:16:30Z (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX authored Jan 26, 2024
1 parent eef2f19 commit c767190
Show file tree
Hide file tree
Showing 42 changed files with 1,145 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docs/source/aliases_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
'models.AppBskyGraphGetListMutes': 'atproto_client.models.app.bsky.graph.get_list_mutes',
'models.AppBskyGraphGetLists': 'atproto_client.models.app.bsky.graph.get_lists',
'models.AppBskyGraphGetMutes': 'atproto_client.models.app.bsky.graph.get_mutes',
'models.AppBskyGraphGetRelationships': 'atproto_client.models.app.bsky.graph.get_relationships',
'models.AppBskyGraphGetSuggestedFollowsByActor': 'atproto_client.models.app.bsky.graph.get_suggested_follows_by_actor',
'models.AppBskyGraphList': 'atproto_client.models.app.bsky.graph.list',
'models.AppBskyGraphListblock': 'atproto_client.models.app.bsky.graph.listblock',
Expand All @@ -60,11 +61,14 @@
'models.AppBskyRichtextFacet': 'atproto_client.models.app.bsky.richtext.facet',
'models.AppBskyUnspeccedDefs': 'atproto_client.models.app.bsky.unspecced.defs',
'models.AppBskyUnspeccedGetPopularFeedGenerators': 'atproto_client.models.app.bsky.unspecced.get_popular_feed_generators',
'models.AppBskyUnspeccedGetTaggedSuggestions': 'atproto_client.models.app.bsky.unspecced.get_tagged_suggestions',
'models.AppBskyUnspeccedGetTimelineSkeleton': 'atproto_client.models.app.bsky.unspecced.get_timeline_skeleton',
'models.AppBskyUnspeccedSearchActorsSkeleton': 'atproto_client.models.app.bsky.unspecced.search_actors_skeleton',
'models.AppBskyUnspeccedSearchPostsSkeleton': 'atproto_client.models.app.bsky.unspecced.search_posts_skeleton',
'models.ComAtprotoAdminCreateCommunicationTemplate': 'atproto_client.models.com.atproto.admin.create_communication_template',
'models.ComAtprotoAdminDefs': 'atproto_client.models.com.atproto.admin.defs',
'models.ComAtprotoAdminDeleteAccount': 'atproto_client.models.com.atproto.admin.delete_account',
'models.ComAtprotoAdminDeleteCommunicationTemplate': 'atproto_client.models.com.atproto.admin.delete_communication_template',
'models.ComAtprotoAdminDisableAccountInvites': 'atproto_client.models.com.atproto.admin.disable_account_invites',
'models.ComAtprotoAdminDisableInviteCodes': 'atproto_client.models.com.atproto.admin.disable_invite_codes',
'models.ComAtprotoAdminEmitModerationEvent': 'atproto_client.models.com.atproto.admin.emit_moderation_event',
Expand All @@ -76,12 +80,14 @@
'models.ComAtprotoAdminGetRecord': 'atproto_client.models.com.atproto.admin.get_record',
'models.ComAtprotoAdminGetRepo': 'atproto_client.models.com.atproto.admin.get_repo',
'models.ComAtprotoAdminGetSubjectStatus': 'atproto_client.models.com.atproto.admin.get_subject_status',
'models.ComAtprotoAdminListCommunicationTemplates': 'atproto_client.models.com.atproto.admin.list_communication_templates',
'models.ComAtprotoAdminQueryModerationEvents': 'atproto_client.models.com.atproto.admin.query_moderation_events',
'models.ComAtprotoAdminQueryModerationStatuses': 'atproto_client.models.com.atproto.admin.query_moderation_statuses',
'models.ComAtprotoAdminSearchRepos': 'atproto_client.models.com.atproto.admin.search_repos',
'models.ComAtprotoAdminSendEmail': 'atproto_client.models.com.atproto.admin.send_email',
'models.ComAtprotoAdminUpdateAccountEmail': 'atproto_client.models.com.atproto.admin.update_account_email',
'models.ComAtprotoAdminUpdateAccountHandle': 'atproto_client.models.com.atproto.admin.update_account_handle',
'models.ComAtprotoAdminUpdateCommunicationTemplate': 'atproto_client.models.com.atproto.admin.update_communication_template',
'models.ComAtprotoAdminUpdateSubjectStatus': 'atproto_client.models.com.atproto.admin.update_subject_status',
'models.ComAtprotoIdentityResolveHandle': 'atproto_client.models.com.atproto.identity.resolve_handle',
'models.ComAtprotoIdentityUpdateHandle': 'atproto_client.models.com.atproto.identity.update_handle',
Expand Down Expand Up @@ -133,8 +139,10 @@
'models.ComAtprotoSyncNotifyOfUpdate': 'atproto_client.models.com.atproto.sync.notify_of_update',
'models.ComAtprotoSyncRequestCrawl': 'atproto_client.models.com.atproto.sync.request_crawl',
'models.ComAtprotoSyncSubscribeRepos': 'atproto_client.models.com.atproto.sync.subscribe_repos',
'models.ComAtprotoTempCheckSignupQueue': 'atproto_client.models.com.atproto.temp.check_signup_queue',
'models.ComAtprotoTempFetchLabels': 'atproto_client.models.com.atproto.temp.fetch_labels',
'models.ComAtprotoTempImportRepo': 'atproto_client.models.com.atproto.temp.import_repo',
'models.ComAtprotoTempPushBlob': 'atproto_client.models.com.atproto.temp.push_blob',
'models.ComAtprotoTempRequestPhoneVerification': 'atproto_client.models.com.atproto.temp.request_phone_verification',
'models.ComAtprotoTempTransferAccount': 'atproto_client.models.com.atproto.temp.transfer_account',
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
app.bsky.graph.get\_relationships
========================================================

.. automodule:: atproto_client.models.app.bsky.graph.get_relationships
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Submodules
atproto_client.models.app.bsky.graph.get_list_mutes
atproto_client.models.app.bsky.graph.get_lists
atproto_client.models.app.bsky.graph.get_mutes
atproto_client.models.app.bsky.graph.get_relationships
atproto_client.models.app.bsky.graph.get_suggested_follows_by_actor
atproto_client.models.app.bsky.graph.list
atproto_client.models.app.bsky.graph.listblock
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
app.bsky.unspecced.get\_tagged\_suggestions
==================================================================

.. automodule:: atproto_client.models.app.bsky.unspecced.get_tagged_suggestions
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Submodules

atproto_client.models.app.bsky.unspecced.defs
atproto_client.models.app.bsky.unspecced.get_popular_feed_generators
atproto_client.models.app.bsky.unspecced.get_tagged_suggestions
atproto_client.models.app.bsky.unspecced.get_timeline_skeleton
atproto_client.models.app.bsky.unspecced.search_actors_skeleton
atproto_client.models.app.bsky.unspecced.search_posts_skeleton
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
com.atproto.admin.create\_communication\_template
========================================================================

.. automodule:: atproto_client.models.com.atproto.admin.create_communication_template
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
com.atproto.admin.delete\_communication\_template
========================================================================

.. automodule:: atproto_client.models.com.atproto.admin.delete_communication_template
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
com.atproto.admin.list\_communication\_templates
=======================================================================

.. automodule:: atproto_client.models.com.atproto.admin.list_communication_templates
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ Submodules
.. toctree::
:maxdepth: 4

atproto_client.models.com.atproto.admin.create_communication_template
atproto_client.models.com.atproto.admin.defs
atproto_client.models.com.atproto.admin.delete_account
atproto_client.models.com.atproto.admin.delete_communication_template
atproto_client.models.com.atproto.admin.disable_account_invites
atproto_client.models.com.atproto.admin.disable_invite_codes
atproto_client.models.com.atproto.admin.emit_moderation_event
Expand All @@ -25,10 +27,12 @@ Submodules
atproto_client.models.com.atproto.admin.get_record
atproto_client.models.com.atproto.admin.get_repo
atproto_client.models.com.atproto.admin.get_subject_status
atproto_client.models.com.atproto.admin.list_communication_templates
atproto_client.models.com.atproto.admin.query_moderation_events
atproto_client.models.com.atproto.admin.query_moderation_statuses
atproto_client.models.com.atproto.admin.search_repos
atproto_client.models.com.atproto.admin.send_email
atproto_client.models.com.atproto.admin.update_account_email
atproto_client.models.com.atproto.admin.update_account_handle
atproto_client.models.com.atproto.admin.update_communication_template
atproto_client.models.com.atproto.admin.update_subject_status
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
com.atproto.admin.update\_communication\_template
========================================================================

.. automodule:: atproto_client.models.com.atproto.admin.update_communication_template
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
com.atproto.temp.check\_signup\_queue
============================================================

.. automodule:: atproto_client.models.com.atproto.temp.check_signup_queue
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
com.atproto.temp.request\_phone\_verification
====================================================================

.. automodule:: atproto_client.models.com.atproto.temp.request_phone_verification
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ Submodules
.. toctree::
:maxdepth: 4

atproto_client.models.com.atproto.temp.check_signup_queue
atproto_client.models.com.atproto.temp.fetch_labels
atproto_client.models.com.atproto.temp.import_repo
atproto_client.models.com.atproto.temp.push_blob
atproto_client.models.com.atproto.temp.request_phone_verification
atproto_client.models.com.atproto.temp.transfer_account
15 changes: 14 additions & 1 deletion lexicons/app.bsky.actor.defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@
"#savedFeedsPref",
"#personalDetailsPref",
"#feedViewPref",
"#threadViewPref"
"#threadViewPref",
"#interestsPref"
]
}
},
Expand Down Expand Up @@ -199,6 +200,18 @@
"description": "Show followed users at the top of all replies."
}
}
},
"interestsPref": {
"type": "object",
"required": ["tags"],
"properties": {
"tags": {
"type": "array",
"maxLength": 100,
"items": { "type": "string", "maxLength": 640, "maxGraphemes": 64 },
"description": "A list of tags which describe the account owner's interests gathered during onboarding."
}
}
}
}
}
27 changes: 27 additions & 0 deletions lexicons/app.bsky.graph.defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,33 @@
"muted": { "type": "boolean" },
"blocked": { "type": "string", "format": "at-uri" }
}
},
"notFoundActor": {
"type": "object",
"description": "indicates that a handle or DID could not be resolved",
"required": ["actor", "notFound"],
"properties": {
"actor": { "type": "string", "format": "at-identifier" },
"notFound": { "type": "boolean", "const": true }
}
},
"relationship": {
"type": "object",
"description": "lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object)",
"required": ["did"],
"properties": {
"did": { "type": "string", "format": "did" },
"following": {
"type": "string",
"format": "at-uri",
"description": "if the actor follows this DID, this is the AT-URI of the follow record"
},
"followedBy": {
"type": "string",
"format": "at-uri",
"description": "if the actor is followed by this DID, contains the AT-URI of the follow record"
}
}
}
}
}
51 changes: 51 additions & 0 deletions lexicons/app.bsky.graph.getRelationships.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"lexicon": 1,
"id": "app.bsky.graph.getRelationships",
"defs": {
"main": {
"type": "query",
"description": "Enumerates public relationships between one account, and a list of other accounts",
"parameters": {
"type": "params",
"required": ["actor"],
"properties": {
"actor": { "type": "string", "format": "at-identifier" },
"others": {
"type": "array",
"maxLength": 30,
"items": {
"type": "string",
"format": "at-identifier"
}
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["relationships"],
"properties": {
"actor": { "type": "string", "format": "did" },
"relationships": {
"type": "array",
"items": {
"type": "union",
"refs": [
"app.bsky.graph.defs#relationship",
"app.bsky.graph.defs#notFoundActor"
]
}
}
}
}
},
"errors": [
{
"name": "ActorNotFound",
"description": "the primary actor at-identifier could not be resolved"
}
]
}
}
}
42 changes: 42 additions & 0 deletions lexicons/app.bsky.unspecced.getTaggedSuggestions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"lexicon": 1,
"id": "app.bsky.unspecced.getTaggedSuggestions",
"defs": {
"main": {
"type": "query",
"description": "Get a list of suggestions (feeds and users) tagged with categories",
"parameters": {
"type": "params",
"properties": {}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["suggestions"],
"properties": {
"suggestions": {
"type": "array",
"items": {
"type": "ref",
"ref": "#suggestion"
}
}
}
}
}
},
"suggestion": {
"type": "object",
"required": ["tag", "subjectType", "subject"],
"properties": {
"tag": { "type": "string" },
"subjectType": {
"type": "string",
"knownValues": ["actor", "feed"]
},
"subject": { "type": "string", "format": "uri" }
}
}
}
}
43 changes: 43 additions & 0 deletions lexicons/com.atproto.admin.createCommunicationTemplate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"lexicon": 1,
"id": "com.atproto.admin.createCommunicationTemplate",
"defs": {
"main": {
"type": "procedure",
"description": "Administrative action to create a new, re-usable communication (email for now) template.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["subject", "contentMarkdown", "name"],
"properties": {
"name": {
"type": "string",
"description": "Name of the template."
},
"contentMarkdown": {
"type": "string",
"description": "Content of the template, markdown supported, can contain variable placeholders."
},
"subject": {
"type": "string",
"description": "Subject of the message, used in emails."
},
"createdBy": {
"type": "string",
"format": "did",
"description": "DID of the user who is creating the template."
}
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "ref",
"ref": "com.atproto.admin.defs#communicationTemplateView"
}
}
}
}
}
Loading

0 comments on commit c767190

Please sign in to comment.