check in lexicons
This commit is contained in:
@@ -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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"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 conversations"
|
||||
},
|
||||
"verification": {
|
||||
"type": "ref",
|
||||
"ref": "app.bsky.actor.defs#verificationState"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "chat.bsky.actor.deleteAccount",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "chat.bsky.actor.exportAccountData",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"output": {
|
||||
"encoding": "application/jsonl"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "chat.bsky.convo.acceptConvo",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"input": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["convoId"],
|
||||
"properties": {
|
||||
"convoId": { "type": "string" }
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"rev": {
|
||||
"description": "Rev when the convo was accepted. If not present, the convo was already accepted.",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "chat.bsky.convo.addReaction",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"description": "Adds an emoji reaction to a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in a single reaction.",
|
||||
"input": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["convoId", "messageId", "value"],
|
||||
"properties": {
|
||||
"convoId": { "type": "string" },
|
||||
"messageId": { "type": "string" },
|
||||
"value": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 64,
|
||||
"minGraphemes": 1,
|
||||
"maxGraphemes": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["message"],
|
||||
"properties": {
|
||||
"message": {
|
||||
"type": "ref",
|
||||
"ref": "chat.bsky.convo.defs#messageView"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{
|
||||
"name": "ReactionMessageDeleted",
|
||||
"description": "Indicates that the message has been deleted and reactions can no longer be added/removed."
|
||||
},
|
||||
{
|
||||
"name": "ReactionLimitReached",
|
||||
"description": "Indicates that the message has the maximum number of reactions allowed for a single user, and the requested reaction wasn't yet present. If it was already present, the request will not fail since it is idempotent."
|
||||
},
|
||||
{
|
||||
"name": "ReactionInvalidValue",
|
||||
"description": "Indicates the value for the reaction is not acceptable. In general, this means it is not an emoji."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,236 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "chat.bsky.convo.defs",
|
||||
"defs": {
|
||||
"messageRef": {
|
||||
"type": "object",
|
||||
"required": ["did", "messageId", "convoId"],
|
||||
"properties": {
|
||||
"did": { "type": "string", "format": "did" },
|
||||
"convoId": { "type": "string" },
|
||||
"messageId": { "type": "string" }
|
||||
}
|
||||
},
|
||||
"messageInput": {
|
||||
"type": "object",
|
||||
"required": ["text"],
|
||||
"properties": {
|
||||
"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#view"]
|
||||
},
|
||||
"reactions": {
|
||||
"type": "array",
|
||||
"description": "Reactions to this message, in ascending order of creation time.",
|
||||
"items": { "type": "ref", "ref": "#reactionView" }
|
||||
},
|
||||
"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" }
|
||||
}
|
||||
},
|
||||
"reactionView": {
|
||||
"type": "object",
|
||||
"required": ["value", "sender", "createdAt"],
|
||||
"properties": {
|
||||
"value": { "type": "string" },
|
||||
"sender": { "type": "ref", "ref": "#reactionViewSender" },
|
||||
"createdAt": { "type": "string", "format": "datetime" }
|
||||
}
|
||||
},
|
||||
"reactionViewSender": {
|
||||
"type": "object",
|
||||
"required": ["did"],
|
||||
"properties": {
|
||||
"did": { "type": "string", "format": "did" }
|
||||
}
|
||||
},
|
||||
"messageAndReactionView": {
|
||||
"type": "object",
|
||||
"required": ["message", "reaction"],
|
||||
"properties": {
|
||||
"message": { "type": "ref", "ref": "#messageView" },
|
||||
"reaction": { "type": "ref", "ref": "#reactionView" }
|
||||
}
|
||||
},
|
||||
"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"]
|
||||
},
|
||||
"lastReaction": {
|
||||
"type": "union",
|
||||
"refs": ["#messageAndReactionView"]
|
||||
},
|
||||
"muted": { "type": "boolean" },
|
||||
"status": {
|
||||
"type": "string",
|
||||
"knownValues": ["request", "accepted"]
|
||||
},
|
||||
"unreadCount": { "type": "integer" }
|
||||
}
|
||||
},
|
||||
"logBeginConvo": {
|
||||
"type": "object",
|
||||
"required": ["rev", "convoId"],
|
||||
"properties": {
|
||||
"rev": { "type": "string" },
|
||||
"convoId": { "type": "string" }
|
||||
}
|
||||
},
|
||||
"logAcceptConvo": {
|
||||
"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" }
|
||||
}
|
||||
},
|
||||
"logMuteConvo": {
|
||||
"type": "object",
|
||||
"required": ["rev", "convoId"],
|
||||
"properties": {
|
||||
"rev": { "type": "string" },
|
||||
"convoId": { "type": "string" }
|
||||
}
|
||||
},
|
||||
"logUnmuteConvo": {
|
||||
"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"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"logReadMessage": {
|
||||
"type": "object",
|
||||
"required": ["rev", "convoId", "message"],
|
||||
"properties": {
|
||||
"rev": { "type": "string" },
|
||||
"convoId": { "type": "string" },
|
||||
"message": {
|
||||
"type": "union",
|
||||
"refs": ["#messageView", "#deletedMessageView"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"logAddReaction": {
|
||||
"type": "object",
|
||||
"required": ["rev", "convoId", "message", "reaction"],
|
||||
"properties": {
|
||||
"rev": { "type": "string" },
|
||||
"convoId": { "type": "string" },
|
||||
"message": {
|
||||
"type": "union",
|
||||
"refs": ["#messageView", "#deletedMessageView"]
|
||||
},
|
||||
"reaction": { "type": "ref", "ref": "#reactionView" }
|
||||
}
|
||||
},
|
||||
"logRemoveReaction": {
|
||||
"type": "object",
|
||||
"required": ["rev", "convoId", "message", "reaction"],
|
||||
"properties": {
|
||||
"rev": { "type": "string" },
|
||||
"convoId": { "type": "string" },
|
||||
"message": {
|
||||
"type": "union",
|
||||
"refs": ["#messageView", "#deletedMessageView"]
|
||||
},
|
||||
"reaction": { "type": "ref", "ref": "#reactionView" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "chat.bsky.convo.getConvoAvailability",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"description": "Get whether the requester and the other members can chat. If an existing convo is found for these members, it is returned.",
|
||||
"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": ["canChat"],
|
||||
"properties": {
|
||||
"canChat": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"convo": {
|
||||
"type": "ref",
|
||||
"ref": "chat.bsky.convo.defs#convoView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"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#logAcceptConvo",
|
||||
"chat.bsky.convo.defs#logLeaveConvo",
|
||||
"chat.bsky.convo.defs#logMuteConvo",
|
||||
"chat.bsky.convo.defs#logUnmuteConvo",
|
||||
"chat.bsky.convo.defs#logCreateMessage",
|
||||
"chat.bsky.convo.defs#logDeleteMessage",
|
||||
"chat.bsky.convo.defs#logReadMessage",
|
||||
"chat.bsky.convo.defs#logAddReaction",
|
||||
"chat.bsky.convo.defs#logRemoveReaction"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "chat.bsky.convo.getMessages",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"required": ["convoId"],
|
||||
"properties": {
|
||||
"convoId": { "type": "string" },
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" }
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["messages"],
|
||||
"properties": {
|
||||
"cursor": { "type": "string" },
|
||||
"messages": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "union",
|
||||
"refs": [
|
||||
"chat.bsky.convo.defs#messageView",
|
||||
"chat.bsky.convo.defs#deletedMessageView"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "chat.bsky.convo.leaveConvo",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"input": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["convoId"],
|
||||
"properties": {
|
||||
"convoId": { "type": "string" }
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["convoId", "rev"],
|
||||
"properties": {
|
||||
"convoId": { "type": "string" },
|
||||
"rev": { "type": "string" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "chat.bsky.convo.listConvos",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"properties": {
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 100,
|
||||
"default": 50
|
||||
},
|
||||
"cursor": { "type": "string" },
|
||||
"readState": {
|
||||
"type": "string",
|
||||
"knownValues": ["unread"]
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"knownValues": ["request", "accepted"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["convos"],
|
||||
"properties": {
|
||||
"cursor": { "type": "string" },
|
||||
"convos": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "chat.bsky.convo.defs#convoView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "chat.bsky.convo.muteConvo",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"input": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "chat.bsky.convo.removeReaction",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"description": "Removes an emoji reaction from a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in that reaction not being present, even if it already wasn't.",
|
||||
"input": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["convoId", "messageId", "value"],
|
||||
"properties": {
|
||||
"convoId": { "type": "string" },
|
||||
"messageId": { "type": "string" },
|
||||
"value": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 64,
|
||||
"minGraphemes": 1,
|
||||
"maxGraphemes": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["message"],
|
||||
"properties": {
|
||||
"message": {
|
||||
"type": "ref",
|
||||
"ref": "chat.bsky.convo.defs#messageView"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"errors": [
|
||||
{
|
||||
"name": "ReactionMessageDeleted",
|
||||
"description": "Indicates that the message has been deleted and reactions can no longer be added/removed."
|
||||
},
|
||||
{
|
||||
"name": "ReactionInvalidValue",
|
||||
"description": "Indicates the value for the reaction is not acceptable. In general, this means it is not an emoji."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "chat.bsky.convo.sendMessage",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"input": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["convoId", "message"],
|
||||
"properties": {
|
||||
"convoId": { "type": "string" },
|
||||
"message": {
|
||||
"type": "ref",
|
||||
"ref": "chat.bsky.convo.defs#messageInput"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "ref",
|
||||
"ref": "chat.bsky.convo.defs#messageView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "chat.bsky.convo.sendMessageBatch",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"input": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["items"],
|
||||
"properties": {
|
||||
"items": {
|
||||
"type": "array",
|
||||
"maxLength": 100,
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "#batchItem"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["items"],
|
||||
"properties": {
|
||||
"items": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "ref",
|
||||
"ref": "chat.bsky.convo.defs#messageView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"batchItem": {
|
||||
"type": "object",
|
||||
"required": ["convoId", "message"],
|
||||
"properties": {
|
||||
"convoId": { "type": "string" },
|
||||
"message": {
|
||||
"type": "ref",
|
||||
"ref": "chat.bsky.convo.defs#messageInput"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "chat.bsky.convo.unmuteConvo",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"input": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "chat.bsky.convo.updateAllRead",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"input": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "string",
|
||||
"knownValues": ["request", "accepted"]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["updatedCount"],
|
||||
"properties": {
|
||||
"updatedCount": {
|
||||
"description": "The count of updated convos.",
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "chat.bsky.convo.updateRead",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"input": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["convoId"],
|
||||
"properties": {
|
||||
"convoId": { "type": "string" },
|
||||
"messageId": { "type": "string" }
|
||||
}
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["convo"],
|
||||
"properties": {
|
||||
"convo": {
|
||||
"type": "ref",
|
||||
"ref": "chat.bsky.convo.defs#convoView"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "chat.bsky.moderation.getActorMetadata",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"required": ["actor"],
|
||||
"properties": {
|
||||
"actor": { "type": "string", "format": "did" }
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["day", "month", "all"],
|
||||
"properties": {
|
||||
"day": { "type": "ref", "ref": "#metadata" },
|
||||
"month": { "type": "ref", "ref": "#metadata" },
|
||||
"all": { "type": "ref", "ref": "#metadata" }
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"metadata": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"messagesSent",
|
||||
"messagesReceived",
|
||||
"convos",
|
||||
"convosStarted"
|
||||
],
|
||||
"properties": {
|
||||
"messagesSent": { "type": "integer" },
|
||||
"messagesReceived": { "type": "integer" },
|
||||
"convos": { "type": "integer" },
|
||||
"convosStarted": { "type": "integer" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "chat.bsky.moderation.getMessageContext",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "query",
|
||||
"parameters": {
|
||||
"type": "params",
|
||||
"required": ["messageId"],
|
||||
"properties": {
|
||||
"convoId": {
|
||||
"type": "string",
|
||||
"description": "Conversation that the message is from. NOTE: this field will eventually be required."
|
||||
},
|
||||
"messageId": { "type": "string" },
|
||||
"before": { "type": "integer", "default": 5 },
|
||||
"after": { "type": "integer", "default": 5 }
|
||||
}
|
||||
},
|
||||
"output": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["messages"],
|
||||
"properties": {
|
||||
"messages": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "union",
|
||||
"refs": [
|
||||
"chat.bsky.convo.defs#messageView",
|
||||
"chat.bsky.convo.defs#deletedMessageView"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"lexicon": 1,
|
||||
"id": "chat.bsky.moderation.updateActorAccess",
|
||||
"defs": {
|
||||
"main": {
|
||||
"type": "procedure",
|
||||
"input": {
|
||||
"encoding": "application/json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["actor", "allowAccess"],
|
||||
"properties": {
|
||||
"actor": { "type": "string", "format": "did" },
|
||||
"allowAccess": { "type": "boolean" },
|
||||
"ref": { "type": "string" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user