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

lex: update bsky schemas to have actual record refs, not 'unknown' #2860

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
3 changes: 2 additions & 1 deletion lexicons/app/bsky/embed/record.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"ref": "app.bsky.actor.defs#profileViewBasic"
},
"value": {
"type": "unknown",
"type": "ref",
"ref": "app.bsky.feed.post",
"description": "The record data itself."
},
"labels": {
Expand Down
10 changes: 8 additions & 2 deletions lexicons/app/bsky/feed/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
"type": "ref",
"ref": "app.bsky.actor.defs#profileViewBasic"
},
"record": { "type": "unknown" },
"record": {
"type": "ref",
"ref": "app.bsky.feed.post"
},
"embed": {
"type": "union",
"refs": [
Expand Down Expand Up @@ -203,7 +206,10 @@
"properties": {
"uri": { "type": "string", "format": "at-uri" },
"cid": { "type": "string", "format": "cid" },
"record": { "type": "unknown" },
"record": {
"type": "ref",
"ref": "app.bsky.feed.threadgate"
},
"lists": {
"type": "array",
"items": { "type": "ref", "ref": "app.bsky.graph.defs#listViewBasic" }
Expand Down
10 changes: 8 additions & 2 deletions lexicons/app/bsky/graph/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@
"properties": {
"uri": { "type": "string", "format": "at-uri" },
"cid": { "type": "string", "format": "cid" },
"record": { "type": "unknown" },
"record": {
"type": "ref",
"ref": "app.bsky.graph.starterpack"
},
"creator": {
"type": "ref",
"ref": "app.bsky.actor.defs#profileViewBasic"
Expand Down Expand Up @@ -93,7 +96,10 @@
"properties": {
"uri": { "type": "string", "format": "at-uri" },
"cid": { "type": "string", "format": "cid" },
"record": { "type": "unknown" },
"record": {
"type": "ref",
"ref": "app.bsky.graph.starterpack"
},
"creator": {
"type": "ref",
"ref": "app.bsky.actor.defs#profileViewBasic"
Expand Down
10 changes: 9 additions & 1 deletion lexicons/app/bsky/notification/listNotifications.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,15 @@
]
},
"reasonSubject": { "type": "string", "format": "at-uri" },
"record": { "type": "unknown" },
"record": {
"type": "union",
"refs": [
"app.bsky.feed.post",
"app.bsky.feed.like",
"app.bsky.graph.follow",
"app.bsky.graph.starterpack"
]
},
"isRead": { "type": "boolean" },
"indexedAt": { "type": "string", "format": "datetime" },
"labels": {
Expand Down