A community based topic aggregation platform built on atproto

Ensuring DID community references, simplifying error handling

+4 -4
internal/atproto/lexicon/social/coves/actor/blockUser.json
···
"type": "string",
"format": "cid",
"description": "CID of the created block record"
}
}
}
···
{
"name": "SubjectNotFound",
"description": "Subject user not found"
-
},
-
{
-
"name": "AlreadyBlocked",
-
"description": "User is already blocked"
}
]
}
···
"type": "string",
"format": "cid",
"description": "CID of the created block record"
+
},
+
"existing": {
+
"type": "boolean",
+
"description": "True if user was already blocked"
}
}
}
···
{
"name": "SubjectNotFound",
"description": "Subject user not found"
}
]
}
+2 -2
internal/atproto/lexicon/social/coves/actor/membership.json
···
"properties": {
"community": {
"type": "string",
-
"format": "at-uri",
-
"description": "AT-URI of the community (DID-based)"
},
"reputation": {
"type": "integer",
···
"properties": {
"community": {
"type": "string",
+
"format": "at-identifier",
+
"description": "DID or handle of the community"
},
"reputation": {
"type": "integer",
+4 -4
internal/atproto/lexicon/social/coves/actor/saveItem.json
···
"type": "string",
"format": "cid",
"description": "CID of the created saved record"
}
}
}
···
{
"name": "SubjectNotFound",
"description": "The post or comment to save was not found"
-
},
-
{
-
"name": "AlreadySaved",
-
"description": "Item is already saved"
}
]
}
···
"type": "string",
"format": "cid",
"description": "CID of the created saved record"
+
},
+
"existing": {
+
"type": "boolean",
+
"description": "True if item was already saved"
}
}
}
···
{
"name": "SubjectNotFound",
"description": "The post or comment to save was not found"
}
]
}
+2 -2
internal/atproto/lexicon/social/coves/actor/subscription.json
···
"properties": {
"community": {
"type": "string",
-
"format": "at-uri",
-
"description": "AT-URI of the community (DID-based)"
},
"createdAt": {
"type": "string",
···
"properties": {
"community": {
"type": "string",
+
"format": "at-identifier",
+
"description": "DID or handle of the community"
},
"createdAt": {
"type": "string",
+1 -1
internal/atproto/lexicon/social/coves/community/search.json
···
"type": "integer",
"minimum": 1,
"maximum": 100,
-
"default": 25
},
"cursor": {
"type": "string"
···
"type": "integer",
"minimum": 1,
"maximum": 100,
+
"default": 50
},
"cursor": {
"type": "string"
+4 -4
internal/atproto/lexicon/social/coves/community/subscribe.json
···
"type": "string",
"format": "cid",
"description": "CID of the created subscription record"
}
}
}
···
{
"name": "CommunityNotFound",
"description": "Community not found"
-
},
-
{
-
"name": "AlreadySubscribed",
-
"description": "Already subscribed to this community"
},
{
"name": "Blocked",
···
"type": "string",
"format": "cid",
"description": "CID of the created subscription record"
+
},
+
"existing": {
+
"type": "boolean",
+
"description": "True if item was already subscribed"
}
}
}
···
{
"name": "CommunityNotFound",
"description": "Community not found"
},
{
"name": "Blocked",
+2 -2
internal/atproto/lexicon/social/coves/moderation/ban.json
···
"properties": {
"community": {
"type": "string",
-
"format": "at-uri",
-
"description": "AT-URI of the community"
},
"subject": {
"type": "string",
···
"properties": {
"community": {
"type": "string",
+
"format": "at-identifier",
+
"description": "DID or handle of the community"
},
"subject": {
"type": "string",
+2 -2
internal/atproto/lexicon/social/coves/moderation/banUser.json
···
"properties": {
"community": {
"type": "string",
-
"format": "at-uri",
-
"description": "AT-URI of the community"
},
"subject": {
"type": "string",
···
"properties": {
"community": {
"type": "string",
+
"format": "at-identifier",
+
"description": "DID or handle of the community"
},
"subject": {
"type": "string",
+2 -2
internal/atproto/lexicon/social/coves/moderation/getBanStatus.json
···
"properties": {
"community": {
"type": "string",
-
"format": "at-uri",
-
"description": "AT-URI of the community"
},
"subject": {
"type": "string",
···
"properties": {
"community": {
"type": "string",
+
"format": "at-identifier",
+
"description": "DID or handle of the community"
},
"subject": {
"type": "string",
+2 -2
internal/atproto/lexicon/social/coves/moderation/listBans.json
···
"properties": {
"community": {
"type": "string",
-
"format": "at-uri",
-
"description": "AT-URI of the community"
},
"status": {
"type": "string",
···
"properties": {
"community": {
"type": "string",
+
"format": "at-identifier",
+
"description": "DID or handle of the community"
},
"status": {
"type": "string",
+2 -2
internal/atproto/lexicon/social/coves/moderation/ruleProposal.json
···
"properties": {
"community": {
"type": "string",
-
"format": "at-uri",
-
"description": "AT-URI of the community"
},
"proposalType": {
"type": "string",
···
"properties": {
"community": {
"type": "string",
+
"format": "at-identifier",
+
"description": "DID or handle of the community"
},
"proposalType": {
"type": "string",
+2 -2
internal/atproto/lexicon/social/coves/moderation/unbanUser.json
···
"properties": {
"community": {
"type": "string",
-
"format": "at-uri",
-
"description": "AT-URI of the community"
},
"subject": {
"type": "string",
···
"properties": {
"community": {
"type": "string",
+
"format": "at-identifier",
+
"description": "DID or handle of the community"
},
"subject": {
"type": "string",
+2 -2
internal/atproto/lexicon/social/coves/post/article.json
···
"properties": {
"community": {
"type": "string",
-
"format": "at-uri",
-
"description": "AT-URI of the community this was posted to"
},
"title": {
"type": "string",
···
"properties": {
"community": {
"type": "string",
+
"format": "at-identifier",
+
"description": "DID or handle of the community this was posted to"
},
"title": {
"type": "string",
+2 -2
internal/atproto/lexicon/social/coves/post/create.json
···
"encoding": "application/json",
"schema": {
"type": "object",
-
"required": ["community", "type"],
"properties": {
"community": {
"type": "string",
···
"text": {
"type": "string",
"maxGraphemes": 10000,
-
"maxLength": 100000,
"description": "Post body text"
},
"textMarkup": {
···
"encoding": "application/json",
"schema": {
"type": "object",
+
"required": ["community", "type", "title"],
"properties": {
"community": {
"type": "string",
···
"text": {
"type": "string",
"maxGraphemes": 10000,
+
"maxLength": 40000,
"description": "Post body text"
},
"textMarkup": {
+1 -1
internal/atproto/lexicon/social/coves/post/getFeed.json
···
"type": "integer",
"minimum": 1,
"maximum": 100,
-
"default": 25
},
"cursor": {
"type": "string"
···
"type": "integer",
"minimum": 1,
"maximum": 100,
+
"default": 15
},
"cursor": {
"type": "string"
+2 -2
internal/atproto/lexicon/social/coves/post/image.json
···
"properties": {
"community": {
"type": "string",
-
"format": "at-uri",
-
"description": "AT-URI of the community this was posted to"
},
"title": {
"type": "string",
···
"properties": {
"community": {
"type": "string",
+
"format": "at-identifier",
+
"description": "DID or handle of the community this was posted to"
},
"title": {
"type": "string",
+2 -2
internal/atproto/lexicon/social/coves/post/microblog.json
···
"properties": {
"community": {
"type": "string",
-
"format": "at-uri",
-
"description": "AT-URI of the community this was posted to"
},
"content": {
"type": "string",
···
"properties": {
"community": {
"type": "string",
+
"format": "at-identifier",
+
"description": "DID or handle of the community this was posted to"
},
"content": {
"type": "string",
+1 -1
internal/atproto/lexicon/social/coves/post/search.json
···
"type": "integer",
"minimum": 1,
"maximum": 100,
-
"default": 25
},
"cursor": {
"type": "string"
···
"type": "integer",
"minimum": 1,
"maximum": 100,
+
"default": 50
},
"cursor": {
"type": "string"
+2 -2
internal/atproto/lexicon/social/coves/post/text.json
···
"properties": {
"community": {
"type": "string",
-
"format": "at-uri",
-
"description": "AT-URI of the community this was posted to"
},
"title": {
"type": "string",
···
"properties": {
"community": {
"type": "string",
+
"format": "at-identifier",
+
"description": "DID or handle of the community this was posted to"
},
"title": {
"type": "string",
+2 -2
internal/atproto/lexicon/social/coves/post/video.json
···
"properties": {
"community": {
"type": "string",
-
"format": "at-uri",
-
"description": "AT-URI of the community this was posted to"
},
"title": {
"type": "string",
···
"properties": {
"community": {
"type": "string",
+
"format": "at-identifier",
+
"description": "DID or handle of the community this was posted to"
},
"title": {
"type": "string",