Skip to content

Commit

Permalink
Import newest lexicons.
Browse files Browse the repository at this point in the history
  • Loading branch information
christiandeange committed Feb 10, 2024
1 parent b0e9453 commit 4b25a8b
Show file tree
Hide file tree
Showing 27 changed files with 1,286 additions and 206 deletions.
822 changes: 703 additions & 119 deletions bluesky/api/bluesky.api

Large diffs are not rendered by default.

15 changes: 14 additions & 1 deletion bluesky/lexicons/app/bsky/actor/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@
"#savedFeedsPref",
"#personalDetailsPref",
"#feedViewPref",
"#threadViewPref"
"#threadViewPref",
"#interestsPref"
]
}
},
Expand Down Expand Up @@ -199,6 +200,18 @@
"description": "Show followed users at the top of all replies."
}
}
},
"interestsPref": {
"type": "object",
"required": ["tags"],
"properties": {
"tags": {
"type": "array",
"maxLength": 100,
"items": { "type": "string", "maxLength": 640, "maxGraphemes": 64 },
"description": "A list of tags which describe the account owner's interests gathered during onboarding."
}
}
}
}
}
3 changes: 2 additions & 1 deletion bluesky/lexicons/app/bsky/feed/getAuthorFeed.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"knownValues": [
"posts_with_replies",
"posts_no_replies",
"posts_with_media"
"posts_with_media",
"posts_and_author_threads"
],
"default": "posts_with_replies"
}
Expand Down
27 changes: 27 additions & 0 deletions bluesky/lexicons/app/bsky/graph/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,33 @@
"muted": { "type": "boolean" },
"blocked": { "type": "string", "format": "at-uri" }
}
},
"notFoundActor": {
"type": "object",
"description": "indicates that a handle or DID could not be resolved",
"required": ["actor", "notFound"],
"properties": {
"actor": { "type": "string", "format": "at-identifier" },
"notFound": { "type": "boolean", "const": true }
}
},
"relationship": {
"type": "object",
"description": "lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object)",
"required": ["did"],
"properties": {
"did": { "type": "string", "format": "did" },
"following": {
"type": "string",
"format": "at-uri",
"description": "if the actor follows this DID, this is the AT-URI of the follow record"
},
"followedBy": {
"type": "string",
"format": "at-uri",
"description": "if the actor is followed by this DID, contains the AT-URI of the follow record"
}
}
}
}
}
51 changes: 51 additions & 0 deletions bluesky/lexicons/app/bsky/graph/getRelationships.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"lexicon": 1,
"id": "app.bsky.graph.getRelationships",
"defs": {
"main": {
"type": "query",
"description": "Enumerates public relationships between one account, and a list of other accounts",
"parameters": {
"type": "params",
"required": ["actor"],
"properties": {
"actor": { "type": "string", "format": "at-identifier" },
"others": {
"type": "array",
"maxLength": 30,
"items": {
"type": "string",
"format": "at-identifier"
}
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["relationships"],
"properties": {
"actor": { "type": "string", "format": "did" },
"relationships": {
"type": "array",
"items": {
"type": "union",
"refs": [
"app.bsky.graph.defs#relationship",
"app.bsky.graph.defs#notFoundActor"
]
}
}
}
}
},
"errors": [
{
"name": "ActorNotFound",
"description": "the primary actor at-identifier could not be resolved"
}
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"notifications": {
"type": "array",
"items": { "type": "ref", "ref": "#notification" }
}
},
"seenAt": { "type": "string", "format": "datetime" }
}
}
}
Expand Down
40 changes: 0 additions & 40 deletions bluesky/lexicons/app/bsky/unspecced/getPopular.json

This file was deleted.

42 changes: 42 additions & 0 deletions bluesky/lexicons/app/bsky/unspecced/getTaggedSuggestions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"lexicon": 1,
"id": "app.bsky.unspecced.getTaggedSuggestions",
"defs": {
"main": {
"type": "query",
"description": "Get a list of suggestions (feeds and users) tagged with categories",
"parameters": {
"type": "params",
"properties": {}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["suggestions"],
"properties": {
"suggestions": {
"type": "array",
"items": {
"type": "ref",
"ref": "#suggestion"
}
}
}
}
}
},
"suggestion": {
"type": "object",
"required": ["tag", "subjectType", "subject"],
"properties": {
"tag": { "type": "string" },
"subjectType": {
"type": "string",
"knownValues": ["actor", "feed"]
},
"subject": { "type": "string", "format": "uri" }
}
}
}
}
40 changes: 0 additions & 40 deletions bluesky/lexicons/app/bsky/unspecced/getTimelineSkeleton.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"lexicon": 1,
"id": "com.atproto.admin.createCommunicationTemplate",
"defs": {
"main": {
"type": "procedure",
"description": "Administrative action to create a new, re-usable communication (email for now) template.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["subject", "contentMarkdown", "name"],
"properties": {
"name": {
"type": "string",
"description": "Name of the template."
},
"contentMarkdown": {
"type": "string",
"description": "Content of the template, markdown supported, can contain variable placeholders."
},
"subject": {
"type": "string",
"description": "Subject of the message, used in emails."
},
"createdBy": {
"type": "string",
"format": "did",
"description": "DID of the user who is creating the template."
}
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "ref",
"ref": "com.atproto.admin.defs#communicationTemplateView"
}
}
}
}
}
Loading

0 comments on commit 4b25a8b

Please sign in to comment.