Skip to content

Commit

Permalink
Update lexicons fetched from 80ada8f committed 2024-08-28T23:03:35Z (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX committed Aug 30, 2024
1 parent 79ae777 commit d634814
Show file tree
Hide file tree
Showing 36 changed files with 623 additions and 28 deletions.
6 changes: 6 additions & 0 deletions docs/source/aliases_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
'models.AppBskyActorPutPreferences': 'atproto_client.models.app.bsky.actor.put_preferences',
'models.AppBskyActorSearchActors': 'atproto_client.models.app.bsky.actor.search_actors',
'models.AppBskyActorSearchActorsTypeahead': 'atproto_client.models.app.bsky.actor.search_actors_typeahead',
'models.AppBskyEmbedDefs': 'atproto_client.models.app.bsky.embed.defs',
'models.AppBskyEmbedExternal': 'atproto_client.models.app.bsky.embed.external',
'models.AppBskyEmbedImages': 'atproto_client.models.app.bsky.embed.images',
'models.AppBskyEmbedRecord': 'atproto_client.models.app.bsky.embed.record',
'models.AppBskyEmbedRecordWithMedia': 'atproto_client.models.app.bsky.embed.record_with_media',
'models.AppBskyEmbedVideo': 'atproto_client.models.app.bsky.embed.video',
'models.AppBskyFeedDefs': 'atproto_client.models.app.bsky.feed.defs',
'models.AppBskyFeedDescribeFeedGenerator': 'atproto_client.models.app.bsky.feed.describe_feed_generator',
'models.AppBskyFeedGenerator': 'atproto_client.models.app.bsky.feed.generator',
Expand Down Expand Up @@ -79,6 +81,10 @@
'models.AppBskyUnspeccedGetTaggedSuggestions': 'atproto_client.models.app.bsky.unspecced.get_tagged_suggestions',
'models.AppBskyUnspeccedSearchActorsSkeleton': 'atproto_client.models.app.bsky.unspecced.search_actors_skeleton',
'models.AppBskyUnspeccedSearchPostsSkeleton': 'atproto_client.models.app.bsky.unspecced.search_posts_skeleton',
'models.AppBskyVideoDefs': 'atproto_client.models.app.bsky.video.defs',
'models.AppBskyVideoGetJobStatus': 'atproto_client.models.app.bsky.video.get_job_status',
'models.AppBskyVideoGetUploadLimits': 'atproto_client.models.app.bsky.video.get_upload_limits',
'models.AppBskyVideoUploadVideo': 'atproto_client.models.app.bsky.video.upload_video',
'models.ChatBskyActorDeclaration': 'atproto_client.models.chat.bsky.actor.declaration',
'models.ChatBskyActorDefs': 'atproto_client.models.chat.bsky.actor.defs',
'models.ChatBskyActorDeleteAccount': 'atproto_client.models.chat.bsky.actor.delete_account',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
app.bsky.embed.defs
==========================================

.. automodule:: atproto_client.models.app.bsky.embed.defs
:members:
:undoc-members:
:show-inheritance:
2 changes: 2 additions & 0 deletions docs/source/atproto/atproto_client.models.app.bsky.embed.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ Submodules
.. toctree::
:maxdepth: 4

atproto_client.models.app.bsky.embed.defs
atproto_client.models.app.bsky.embed.external
atproto_client.models.app.bsky.embed.images
atproto_client.models.app.bsky.embed.record
atproto_client.models.app.bsky.embed.record_with_media
atproto_client.models.app.bsky.embed.video
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
app.bsky.embed.video
===========================================

.. automodule:: atproto_client.models.app.bsky.embed.video
:members:
:undoc-members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/source/atproto/atproto_client.models.app.bsky.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ Subpackages
atproto_client.models.app.bsky.notification
atproto_client.models.app.bsky.richtext
atproto_client.models.app.bsky.unspecced
atproto_client.models.app.bsky.video
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
app.bsky.video.defs
==========================================

.. automodule:: atproto_client.models.app.bsky.video.defs
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
app.bsky.video.get\_job\_status
======================================================

.. automodule:: atproto_client.models.app.bsky.video.get_job_status
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
app.bsky.video.get\_upload\_limits
=========================================================

.. automodule:: atproto_client.models.app.bsky.video.get_upload_limits
:members:
:undoc-members:
:show-inheritance:
18 changes: 18 additions & 0 deletions docs/source/atproto/atproto_client.models.app.bsky.video.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
app.bsky.video
=====================================

.. automodule:: atproto_client.models.app.bsky.video
:members:
:undoc-members:
:show-inheritance:

Submodules
----------

.. toctree::
:maxdepth: 4

atproto_client.models.app.bsky.video.defs
atproto_client.models.app.bsky.video.get_job_status
atproto_client.models.app.bsky.video.get_upload_limits
atproto_client.models.app.bsky.video.upload_video
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
app.bsky.video.upload\_video
===================================================

.. automodule:: atproto_client.models.app.bsky.video.upload_video
:members:
:undoc-members:
:show-inheritance:
15 changes: 15 additions & 0 deletions lexicons/app.bsky.embed.defs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"lexicon": 1,
"id": "app.bsky.embed.defs",
"defs": {
"aspectRatio": {
"type": "object",
"description": "width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.",
"required": ["width", "height"],
"properties": {
"width": { "type": "integer", "minimum": 1 },
"height": { "type": "integer", "minimum": 1 }
}
}
}
}
19 changes: 8 additions & 11 deletions lexicons/app.bsky.embed.images.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,10 @@
"type": "string",
"description": "Alt text description of the image, for accessibility."
},
"aspectRatio": { "type": "ref", "ref": "#aspectRatio" }
}
},
"aspectRatio": {
"type": "object",
"description": "width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.",
"required": ["width", "height"],
"properties": {
"width": { "type": "integer", "minimum": 1 },
"height": { "type": "integer", "minimum": 1 }
"aspectRatio": {
"type": "ref",
"ref": "app.bsky.embed.defs#aspectRatio"
}
}
},
"view": {
Expand Down Expand Up @@ -68,7 +62,10 @@
"type": "string",
"description": "Alt text description of the image, for accessibility."
},
"aspectRatio": { "type": "ref", "ref": "#aspectRatio" }
"aspectRatio": {
"type": "ref",
"ref": "app.bsky.embed.defs#aspectRatio"
}
}
}
}
Expand Down
1 change: 1 addition & 0 deletions lexicons/app.bsky.embed.record.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"type": "union",
"refs": [
"app.bsky.embed.images#view",
"app.bsky.embed.video#view",
"app.bsky.embed.external#view",
"app.bsky.embed.record#view",
"app.bsky.embed.recordWithMedia#view"
Expand Down
12 changes: 10 additions & 2 deletions lexicons/app.bsky.embed.recordWithMedia.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
},
"media": {
"type": "union",
"refs": ["app.bsky.embed.images", "app.bsky.embed.external"]
"refs": [
"app.bsky.embed.images",
"app.bsky.embed.video",
"app.bsky.embed.external"
]
}
}
},
Expand All @@ -27,7 +31,11 @@
},
"media": {
"type": "union",
"refs": ["app.bsky.embed.images#view", "app.bsky.embed.external#view"]
"refs": [
"app.bsky.embed.images#view",
"app.bsky.embed.video#view",
"app.bsky.embed.external#view"
]
}
}
}
Expand Down
66 changes: 66 additions & 0 deletions lexicons/app.bsky.embed.video.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"lexicon": 1,
"id": "app.bsky.embed.video",
"description": "A video embedded in a Bluesky record (eg, a post).",
"defs": {
"main": {
"type": "object",
"required": ["video"],
"properties": {
"video": {
"type": "blob",
"accept": ["video/mp4"],
"maxSize": 50000000
},
"captions": {
"type": "array",
"items": { "type": "ref", "ref": "#caption" },
"maxLength": 20
},
"alt": {
"type": "string",
"description": "Alt text description of the video, for accessibility.",
"maxGraphemes": 1000,
"maxLength": 10000
},
"aspectRatio": {
"type": "ref",
"ref": "app.bsky.embed.defs#aspectRatio"
}
}
},
"caption": {
"type": "object",
"required": ["lang", "file"],
"properties": {
"lang": {
"type": "string",
"format": "language"
},
"file": {
"type": "blob",
"accept": ["text/vtt"],
"maxSize": 20000
}
}
},
"view": {
"type": "object",
"required": ["cid", "playlist"],
"properties": {
"cid": { "type": "string", "format": "cid" },
"playlist": { "type": "string", "format": "uri" },
"thumbnail": { "type": "string", "format": "uri" },
"alt": {
"type": "string",
"maxGraphemes": 1000,
"maxLength": 10000
},
"aspectRatio": {
"type": "ref",
"ref": "app.bsky.embed.defs#aspectRatio"
}
}
}
}
}
1 change: 1 addition & 0 deletions lexicons/app.bsky.feed.defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"type": "union",
"refs": [
"app.bsky.embed.images#view",
"app.bsky.embed.video#view",
"app.bsky.embed.external#view",
"app.bsky.embed.record#view",
"app.bsky.embed.recordWithMedia#view"
Expand Down
1 change: 1 addition & 0 deletions lexicons/app.bsky.feed.post.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"type": "union",
"refs": [
"app.bsky.embed.images",
"app.bsky.embed.video",
"app.bsky.embed.external",
"app.bsky.embed.record",
"app.bsky.embed.recordWithMedia"
Expand Down
28 changes: 28 additions & 0 deletions lexicons/app.bsky.video.defs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"lexicon": 1,
"id": "app.bsky.video.defs",
"defs": {
"jobStatus": {
"type": "object",
"required": ["jobId", "did", "state"],
"properties": {
"jobId": { "type": "string" },
"did": { "type": "string", "format": "did" },
"state": {
"type": "string",
"description": "The state of the video processing job. All values not listed as a known value indicate that the job is in process.",
"knownValues": ["JOB_STATE_COMPLETED", "JOB_STATE_FAILED"]
},
"progress": {
"type": "integer",
"minimum": 0,
"maximum": 100,
"description": "Progress within the current processing state."
},
"blob": { "type": "blob" },
"error": { "type": "string" },
"message": { "type": "string" }
}
}
}
}
32 changes: 32 additions & 0 deletions lexicons/app.bsky.video.getJobStatus.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"lexicon": 1,
"id": "app.bsky.video.getJobStatus",
"defs": {
"main": {
"type": "query",
"description": "Get status details for a video processing job.",
"parameters": {
"type": "params",
"required": ["jobId"],
"properties": {
"jobId": {
"type": "string"
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["jobStatus"],
"properties": {
"jobStatus": {
"type": "ref",
"ref": "app.bsky.video.defs#jobStatus"
}
}
}
}
}
}
}
24 changes: 24 additions & 0 deletions lexicons/app.bsky.video.getUploadLimits.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"lexicon": 1,
"id": "app.bsky.video.getUploadLimits",
"defs": {
"main": {
"type": "query",
"description": "Get video upload limits for the authenticated user.",
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["canUpload"],
"properties": {
"canUpload": { "type": "boolean" },
"remainingDailyVideos": { "type": "integer" },
"remainingDailyBytes": { "type": "integer" },
"message": { "type": "string" },
"error": { "type": "string" }
}
}
}
}
}
}
26 changes: 26 additions & 0 deletions lexicons/app.bsky.video.uploadVideo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"lexicon": 1,
"id": "app.bsky.video.uploadVideo",
"defs": {
"main": {
"type": "procedure",
"description": "Upload a video to be processed then stored on the PDS.",
"input": {
"encoding": "video/mp4"
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["jobStatus"],
"properties": {
"jobStatus": {
"type": "ref",
"ref": "app.bsky.video.defs#jobStatus"
}
}
}
}
}
}
}
Loading

0 comments on commit d634814

Please sign in to comment.