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 af7d391 committed 2024-06-25T01:04:33Z #349

Merged
merged 1 commit into from
Jun 27, 2024
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
4 changes: 4 additions & 0 deletions docs/source/aliases_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
'models.AppBskyGraphBlock': 'atproto_client.models.app.bsky.graph.block',
'models.AppBskyGraphDefs': 'atproto_client.models.app.bsky.graph.defs',
'models.AppBskyGraphFollow': 'atproto_client.models.app.bsky.graph.follow',
'models.AppBskyGraphGetActorStarterPacks': 'atproto_client.models.app.bsky.graph.get_actor_starter_packs',
'models.AppBskyGraphGetBlocks': 'atproto_client.models.app.bsky.graph.get_blocks',
'models.AppBskyGraphGetFollowers': 'atproto_client.models.app.bsky.graph.get_followers',
'models.AppBskyGraphGetFollows': 'atproto_client.models.app.bsky.graph.get_follows',
Expand All @@ -48,13 +49,16 @@
'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.AppBskyGraphGetStarterPack': 'atproto_client.models.app.bsky.graph.get_starter_pack',
'models.AppBskyGraphGetStarterPacks': 'atproto_client.models.app.bsky.graph.get_starter_packs',
'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',
'models.AppBskyGraphListitem': 'atproto_client.models.app.bsky.graph.listitem',
'models.AppBskyGraphMuteActor': 'atproto_client.models.app.bsky.graph.mute_actor',
'models.AppBskyGraphMuteActorList': 'atproto_client.models.app.bsky.graph.mute_actor_list',
'models.AppBskyGraphMuteThread': 'atproto_client.models.app.bsky.graph.mute_thread',
'models.AppBskyGraphStarterpack': 'atproto_client.models.app.bsky.graph.starterpack',
'models.AppBskyGraphUnmuteActor': 'atproto_client.models.app.bsky.graph.unmute_actor',
'models.AppBskyGraphUnmuteActorList': 'atproto_client.models.app.bsky.graph.unmute_actor_list',
'models.AppBskyGraphUnmuteThread': 'atproto_client.models.app.bsky.graph.unmute_thread',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
app.bsky.graph.get\_actor\_starter\_packs
================================================================

.. automodule:: atproto_client.models.app.bsky.graph.get_actor_starter_packs
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
app.bsky.graph.get\_starter\_pack
========================================================

.. automodule:: atproto_client.models.app.bsky.graph.get_starter_pack
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
app.bsky.graph.get\_starter\_packs
=========================================================

.. automodule:: atproto_client.models.app.bsky.graph.get_starter_packs
:members:
:undoc-members:
:show-inheritance:
4 changes: 4 additions & 0 deletions docs/source/atproto/atproto_client.models.app.bsky.graph.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Submodules
atproto_client.models.app.bsky.graph.block
atproto_client.models.app.bsky.graph.defs
atproto_client.models.app.bsky.graph.follow
atproto_client.models.app.bsky.graph.get_actor_starter_packs
atproto_client.models.app.bsky.graph.get_blocks
atproto_client.models.app.bsky.graph.get_followers
atproto_client.models.app.bsky.graph.get_follows
Expand All @@ -25,13 +26,16 @@ Submodules
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_starter_pack
atproto_client.models.app.bsky.graph.get_starter_packs
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
atproto_client.models.app.bsky.graph.listitem
atproto_client.models.app.bsky.graph.mute_actor
atproto_client.models.app.bsky.graph.mute_actor_list
atproto_client.models.app.bsky.graph.mute_thread
atproto_client.models.app.bsky.graph.starterpack
atproto_client.models.app.bsky.graph.unmute_actor
atproto_client.models.app.bsky.graph.unmute_actor_list
atproto_client.models.app.bsky.graph.unmute_thread
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
app.bsky.graph.starterpack
=================================================

.. automodule:: atproto_client.models.app.bsky.graph.starterpack
:members:
:undoc-members:
:show-inheritance:
10 changes: 9 additions & 1 deletion lexicons/app.bsky.actor.defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"labels": {
"type": "array",
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
}
},
"createdAt": { "type": "string", "format": "datetime" }
}
},
"profileView": {
Expand All @@ -47,6 +48,7 @@
"ref": "#profileAssociated"
},
"indexedAt": { "type": "string", "format": "datetime" },
"createdAt": { "type": "string", "format": "datetime" },
"viewer": { "type": "ref", "ref": "#viewerState" },
"labels": {
"type": "array",
Expand Down Expand Up @@ -79,7 +81,12 @@
"type": "ref",
"ref": "#profileAssociated"
},
"joinedViaStarterPack": {
"type": "ref",
"ref": "app.bsky.graph.defs#starterPackViewBasic"
},
"indexedAt": { "type": "string", "format": "datetime" },
"createdAt": { "type": "string", "format": "datetime" },
"viewer": { "type": "ref", "ref": "#viewerState" },
"labels": {
"type": "array",
Expand All @@ -92,6 +99,7 @@
"properties": {
"lists": { "type": "integer" },
"feedgens": { "type": "integer" },
"starterPacks": { "type": "integer" },
"labeler": { "type": "boolean" },
"chat": { "type": "ref", "ref": "#profileAssociatedChat" }
}
Expand Down
7 changes: 6 additions & 1 deletion lexicons/app.bsky.actor.profile.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@
"type": "union",
"description": "Self-label values, specific to the Bluesky application, on the overall account.",
"refs": ["com.atproto.label.defs#selfLabels"]
}
},
"joinedViaStarterPack": {
"type": "ref",
"ref": "com.atproto.repo.strongRef"
},
"createdAt": { "type": "string", "format": "datetime" }
}
}
}
Expand Down
61 changes: 60 additions & 1 deletion lexicons/app.bsky.graph.defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"name": { "type": "string", "maxLength": 64, "minLength": 1 },
"purpose": { "type": "ref", "ref": "#listPurpose" },
"avatar": { "type": "string", "format": "uri" },
"listItemCount": { "type": "integer", "minimum": 0 },
"labels": {
"type": "array",
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
Expand Down Expand Up @@ -38,6 +39,7 @@
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" }
},
"avatar": { "type": "string", "format": "uri" },
"listItemCount": { "type": "integer", "minimum": 0 },
"labels": {
"type": "array",
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
Expand All @@ -54,11 +56,64 @@
"subject": { "type": "ref", "ref": "app.bsky.actor.defs#profileView" }
}
},
"starterPackView": {
"type": "object",
"required": ["uri", "cid", "record", "creator", "indexedAt"],
"properties": {
"uri": { "type": "string", "format": "at-uri" },
"cid": { "type": "string", "format": "cid" },
"record": { "type": "unknown" },
"creator": {
"type": "ref",
"ref": "app.bsky.actor.defs#profileViewBasic"
},
"list": { "type": "ref", "ref": "#listViewBasic" },
"listItemsSample": {
"type": "array",
"maxLength": 12,
"items": { "type": "ref", "ref": "#listItemView" }
},
"feeds": {
"type": "array",
"maxLength": 3,
"items": { "type": "ref", "ref": "app.bsky.feed.defs#generatorView" }
},
"joinedWeekCount": { "type": "integer", "minimum": 0 },
"joinedAllTimeCount": { "type": "integer", "minimum": 0 },
"labels": {
"type": "array",
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
},
"indexedAt": { "type": "string", "format": "datetime" }
}
},
"starterPackViewBasic": {
"type": "object",
"required": ["uri", "cid", "record", "creator", "indexedAt"],
"properties": {
"uri": { "type": "string", "format": "at-uri" },
"cid": { "type": "string", "format": "cid" },
"record": { "type": "unknown" },
"creator": {
"type": "ref",
"ref": "app.bsky.actor.defs#profileViewBasic"
},
"listItemCount": { "type": "integer", "minimum": 0 },
"joinedWeekCount": { "type": "integer", "minimum": 0 },
"joinedAllTimeCount": { "type": "integer", "minimum": 0 },
"labels": {
"type": "array",
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" }
},
"indexedAt": { "type": "string", "format": "datetime" }
}
},
"listPurpose": {
"type": "string",
"knownValues": [
"app.bsky.graph.defs#modlist",
"app.bsky.graph.defs#curatelist"
"app.bsky.graph.defs#curatelist",
"app.bsky.graph.defs#referencelist"
]
},
"modlist": {
Expand All @@ -69,6 +124,10 @@
"type": "token",
"description": "A list of actors used for curation purposes such as list feeds or interaction gating."
},
"referencelist": {
"type": "token",
"description": "A list of actors used for only for reference purposes such as within a starter pack."
},
"listViewerState": {
"type": "object",
"properties": {
Expand Down
41 changes: 41 additions & 0 deletions lexicons/app.bsky.graph.getActorStarterPacks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"lexicon": 1,
"id": "app.bsky.graph.getActorStarterPacks",
"defs": {
"main": {
"type": "query",
"description": "Get a list of starter packs created by the actor.",
"parameters": {
"type": "params",
"required": ["actor"],
"properties": {
"actor": { "type": "string", "format": "at-identifier" },
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"cursor": { "type": "string" }
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["starterPacks"],
"properties": {
"cursor": { "type": "string" },
"starterPacks": {
"type": "array",
"items": {
"type": "ref",
"ref": "app.bsky.graph.defs#starterPackViewBasic"
}
}
}
}
}
}
}
}
34 changes: 34 additions & 0 deletions lexicons/app.bsky.graph.getStarterPack.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"lexicon": 1,
"id": "app.bsky.graph.getStarterPack",
"defs": {
"main": {
"type": "query",
"description": "Gets a view of a starter pack.",
"parameters": {
"type": "params",
"required": ["starterPack"],
"properties": {
"starterPack": {
"type": "string",
"format": "at-uri",
"description": "Reference (AT-URI) of the starter pack record."
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["starterPack"],
"properties": {
"starterPack": {
"type": "ref",
"ref": "app.bsky.graph.defs#starterPackView"
}
}
}
}
}
}
}
37 changes: 37 additions & 0 deletions lexicons/app.bsky.graph.getStarterPacks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"lexicon": 1,
"id": "app.bsky.graph.getStarterPacks",
"defs": {
"main": {
"type": "query",
"description": "Get views for a list of starter packs.",
"parameters": {
"type": "params",
"required": ["uris"],
"properties": {
"uris": {
"type": "array",
"items": { "type": "string", "format": "at-uri" },
"maxLength": 25
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["starterPacks"],
"properties": {
"starterPacks": {
"type": "array",
"items": {
"type": "ref",
"ref": "app.bsky.graph.defs#starterPackViewBasic"
}
}
}
}
}
}
}
}
51 changes: 51 additions & 0 deletions lexicons/app.bsky.graph.starterpack.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"lexicon": 1,
"id": "app.bsky.graph.starterpack",
"defs": {
"main": {
"type": "record",
"description": "Record defining a starter pack of actors and feeds for new users.",
"key": "tid",
"record": {
"type": "object",
"required": ["name", "list", "createdAt"],
"properties": {
"name": {
"type": "string",
"maxGraphemes": 50,
"maxLength": 500,
"minLength": 1,
"description": "Display name for starter pack; can not be empty."
},
"description": {
"type": "string",
"maxGraphemes": 300,
"maxLength": 3000
},
"descriptionFacets": {
"type": "array",
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" }
},
"list": {
"type": "string",
"format": "at-uri",
"description": "Reference (AT-URI) to the list record."
},
"feeds": {
"type": "array",
"maxLength": 3,
"items": { "type": "ref", "ref": "#feedItem" }
},
"createdAt": { "type": "string", "format": "datetime" }
}
}
},
"feedItem": {
"type": "object",
"required": ["uri"],
"properties": {
"uri": { "type": "string", "format": "at-uri" }
}
}
}
}
Loading
Loading