-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f481464
commit be50b0e
Showing
27 changed files
with
2,570 additions
and
100 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "chat.bsky.actor.declaration", | ||
"defs": { | ||
"main": { | ||
"type": "record", | ||
"description": "A declaration of a Bluesky chat account.", | ||
"key": "literal:self", | ||
"record": { | ||
"type": "object", | ||
"required": ["allowIncoming"], | ||
"properties": { | ||
"allowIncoming": { | ||
"type": "string", | ||
"knownValues": ["all", "none", "following"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "chat.bsky.actor.defs", | ||
"defs": { | ||
"profileViewBasic": { | ||
"type": "object", | ||
"required": ["did", "handle"], | ||
"properties": { | ||
"did": { "type": "string", "format": "did" }, | ||
"handle": { "type": "string", "format": "handle" }, | ||
"displayName": { | ||
"type": "string", | ||
"maxGraphemes": 64, | ||
"maxLength": 640 | ||
}, | ||
"avatar": { "type": "string", "format": "uri" }, | ||
"associated": { | ||
"type": "ref", | ||
"ref": "app.bsky.actor.defs#profileAssociated" | ||
}, | ||
"viewer": { "type": "ref", "ref": "app.bsky.actor.defs#viewerState" }, | ||
"labels": { | ||
"type": "array", | ||
"items": { "type": "ref", "ref": "com.atproto.label.defs#label" } | ||
}, | ||
"chatDisabled": { | ||
"type": "boolean", | ||
"description": "Set to true when the actor cannot actively participate in converations" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "chat.bsky.actor.deleteAccount", | ||
"defs": { | ||
"main": { | ||
"type": "procedure", | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"properties": {} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "chat.bsky.actor.exportAccountData", | ||
"defs": { | ||
"main": { | ||
"type": "query", | ||
"output": { | ||
"encoding": "application/jsonl" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "chat.bsky.convo.defs", | ||
"defs": { | ||
"messageRef": { | ||
"type": "object", | ||
"required": ["did", "messageId"], | ||
"properties": { | ||
"did": { "type": "string", "format": "did" }, | ||
"messageId": { "type": "string" } | ||
} | ||
}, | ||
"message": { | ||
"type": "object", | ||
"required": ["text"], | ||
"properties": { | ||
"id": { "type": "string" }, | ||
"text": { | ||
"type": "string", | ||
"maxLength": 10000, | ||
"maxGraphemes": 1000 | ||
}, | ||
"facets": { | ||
"type": "array", | ||
"description": "Annotations of text (mentions, URLs, hashtags, etc)", | ||
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" } | ||
}, | ||
"embed": { | ||
"type": "union", | ||
"refs": ["app.bsky.embed.record"] | ||
} | ||
} | ||
}, | ||
"messageView": { | ||
"type": "object", | ||
"required": ["id", "rev", "text", "sender", "sentAt"], | ||
"properties": { | ||
"id": { "type": "string" }, | ||
"rev": { "type": "string" }, | ||
"text": { | ||
"type": "string", | ||
"maxLength": 10000, | ||
"maxGraphemes": 1000 | ||
}, | ||
"facets": { | ||
"type": "array", | ||
"description": "Annotations of text (mentions, URLs, hashtags, etc)", | ||
"items": { "type": "ref", "ref": "app.bsky.richtext.facet" } | ||
}, | ||
"embed": { | ||
"type": "union", | ||
"refs": ["app.bsky.embed.record"] | ||
}, | ||
"sender": { "type": "ref", "ref": "#messageViewSender" }, | ||
"sentAt": { "type": "string", "format": "datetime" } | ||
} | ||
}, | ||
"deletedMessageView": { | ||
"type": "object", | ||
"required": ["id", "rev", "sender", "sentAt"], | ||
"properties": { | ||
"id": { "type": "string" }, | ||
"rev": { "type": "string" }, | ||
"sender": { "type": "ref", "ref": "#messageViewSender" }, | ||
"sentAt": { "type": "string", "format": "datetime" } | ||
} | ||
}, | ||
"messageViewSender": { | ||
"type": "object", | ||
"required": ["did"], | ||
"properties": { | ||
"did": { "type": "string", "format": "did" } | ||
} | ||
}, | ||
"convoView": { | ||
"type": "object", | ||
"required": ["id", "rev", "members", "muted", "unreadCount"], | ||
"properties": { | ||
"id": { "type": "string" }, | ||
"rev": { "type": "string" }, | ||
"members": { | ||
"type": "array", | ||
"items": { | ||
"type": "ref", | ||
"ref": "chat.bsky.actor.defs#profileViewBasic" | ||
} | ||
}, | ||
"lastMessage": { | ||
"type": "union", | ||
"refs": ["#messageView", "#deletedMessageView"] | ||
}, | ||
"muted": { "type": "boolean" }, | ||
"unreadCount": { "type": "integer" } | ||
} | ||
}, | ||
"logBeginConvo": { | ||
"type": "object", | ||
"required": ["rev", "convoId"], | ||
"properties": { | ||
"rev": { "type": "string" }, | ||
"convoId": { "type": "string" } | ||
} | ||
}, | ||
"logLeaveConvo": { | ||
"type": "object", | ||
"required": ["rev", "convoId"], | ||
"properties": { | ||
"rev": { "type": "string" }, | ||
"convoId": { "type": "string" } | ||
} | ||
}, | ||
"logCreateMessage": { | ||
"type": "object", | ||
"required": ["rev", "convoId", "message"], | ||
"properties": { | ||
"rev": { "type": "string" }, | ||
"convoId": { "type": "string" }, | ||
"message": { | ||
"type": "union", | ||
"refs": ["#messageView", "#deletedMessageView"] | ||
} | ||
} | ||
}, | ||
"logDeleteMessage": { | ||
"type": "object", | ||
"required": ["rev", "convoId", "message"], | ||
"properties": { | ||
"rev": { "type": "string" }, | ||
"convoId": { "type": "string" }, | ||
"message": { | ||
"type": "union", | ||
"refs": ["#messageView", "#deletedMessageView"] | ||
} | ||
} | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
bluesky/lexicons/chat/bsky/convo/deleteMessageForSelf.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "chat.bsky.convo.deleteMessageForSelf", | ||
"defs": { | ||
"main": { | ||
"type": "procedure", | ||
"input": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["convoId", "messageId"], | ||
"properties": { | ||
"convoId": { "type": "string" }, | ||
"messageId": { "type": "string" } | ||
} | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "ref", | ||
"ref": "chat.bsky.convo.defs#deletedMessageView" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "chat.bsky.convo.getConvo", | ||
"defs": { | ||
"main": { | ||
"type": "query", | ||
"parameters": { | ||
"type": "params", | ||
"required": ["convoId"], | ||
"properties": { | ||
"convoId": { "type": "string" } | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["convo"], | ||
"properties": { | ||
"convo": { | ||
"type": "ref", | ||
"ref": "chat.bsky.convo.defs#convoView" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "chat.bsky.convo.getConvoForMembers", | ||
"defs": { | ||
"main": { | ||
"type": "query", | ||
"parameters": { | ||
"type": "params", | ||
"required": ["members"], | ||
"properties": { | ||
"members": { | ||
"type": "array", | ||
"minLength": 1, | ||
"maxLength": 10, | ||
"items": { | ||
"type": "string", | ||
"format": "did" | ||
} | ||
} | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["convo"], | ||
"properties": { | ||
"convo": { | ||
"type": "ref", | ||
"ref": "chat.bsky.convo.defs#convoView" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "chat.bsky.convo.getLog", | ||
"defs": { | ||
"main": { | ||
"type": "query", | ||
"parameters": { | ||
"type": "params", | ||
"required": [], | ||
"properties": { | ||
"cursor": { "type": "string" } | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["logs"], | ||
"properties": { | ||
"cursor": { "type": "string" }, | ||
"logs": { | ||
"type": "array", | ||
"items": { | ||
"type": "union", | ||
"refs": [ | ||
"chat.bsky.convo.defs#logBeginConvo", | ||
"chat.bsky.convo.defs#logLeaveConvo", | ||
"chat.bsky.convo.defs#logCreateMessage", | ||
"chat.bsky.convo.defs#logDeleteMessage" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.