[SDK] Add lexicon codegen pipeline (@atproto/lex) (#11346)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-08-13 22:26:12 +03:00
committed by GitHub
parent 97b3978fb8
commit 532681d5c0
304 changed files with 22682 additions and 55 deletions
+58
View File
@@ -0,0 +1,58 @@
{
"id": "app.bsky.video.defs",
"defs": {
"jobStatus": {
"type": "object",
"required": [
"jobId",
"did",
"state"
],
"properties": {
"did": {
"type": "string",
"format": "did"
},
"blob": {
"type": "blob"
},
"error": {
"type": "string"
},
"jobId": {
"type": "string"
},
"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"
]
},
"message": {
"type": "string"
},
"progress": {
"type": "integer",
"maximum": 100,
"minimum": 0,
"description": "Progress within the current processing state."
},
"failureCode": {
"type": "string",
"description": "A machine-readable code for why the video processing job failed.",
"knownValues": [
"validation_failure",
"encoding_failure",
"pds_upload_failure",
"pds_upload_unsupported_blob_size",
"generic_failure"
]
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}
+37
View File
@@ -0,0 +1,37 @@
{
"id": "app.bsky.video.getJobStatus",
"defs": {
"main": {
"type": "query",
"output": {
"schema": {
"type": "object",
"required": [
"jobStatus"
],
"properties": {
"jobStatus": {
"ref": "app.bsky.video.defs#jobStatus",
"type": "ref"
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"jobId"
],
"properties": {
"jobId": {
"type": "string"
}
}
},
"description": "Get status details for a video processing job."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}
@@ -0,0 +1,37 @@
{
"id": "app.bsky.video.getUploadLimits",
"defs": {
"main": {
"type": "query",
"output": {
"schema": {
"type": "object",
"required": [
"canUpload"
],
"properties": {
"error": {
"type": "string"
},
"message": {
"type": "string"
},
"canUpload": {
"type": "boolean"
},
"remainingDailyBytes": {
"type": "integer"
},
"remainingDailyVideos": {
"type": "integer"
}
}
},
"encoding": "application/json"
},
"description": "Get video upload limits for the authenticated user."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}
+29
View File
@@ -0,0 +1,29 @@
{
"id": "app.bsky.video.uploadVideo",
"defs": {
"main": {
"type": "procedure",
"input": {
"encoding": "video/mp4"
},
"output": {
"schema": {
"type": "object",
"required": [
"jobStatus"
],
"properties": {
"jobStatus": {
"ref": "app.bsky.video.defs#jobStatus",
"type": "ref"
}
}
},
"encoding": "application/json"
},
"description": "Upload a video to be processed then stored on the PDS."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}