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 26, 2024
1 parent 2bd1d6f commit e3908e2
Show file tree
Hide file tree
Showing 24 changed files with 931 additions and 205 deletions.
609 changes: 508 additions & 101 deletions bluesky/api/bluesky.api

Large diffs are not rendered by default.

59 changes: 58 additions & 1 deletion bluesky/lexicons/app/bsky/actor/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@
"#personalDetailsPref",
"#feedViewPref",
"#threadViewPref",
"#interestsPref"
"#interestsPref",
"#mutedWordsPref",
"#hiddenPostsPref"
]
}
},
Expand Down Expand Up @@ -144,6 +146,9 @@
"type": "string",
"format": "at-uri"
}
},
"timelineIndex": {
"type": "integer"
}
}
},
Expand Down Expand Up @@ -212,6 +217,58 @@
"description": "A list of tags which describe the account owner's interests gathered during onboarding."
}
}
},
"mutedWordTarget": {
"type": "string",
"knownValues": ["content", "tag"],
"maxLength": 640,
"maxGraphemes": 64
},
"mutedWord": {
"type": "object",
"description": "A word that the account owner has muted.",
"required": ["value", "targets"],
"properties": {
"value": {
"type": "string",
"description": "The muted word itself.",
"maxLength": 10000,
"maxGraphemes": 1000
},
"targets": {
"type": "array",
"description": "The intended targets of the muted word.",
"items": {
"type": "ref",
"ref": "app.bsky.actor.defs#mutedWordTarget"
}
}
}
},
"mutedWordsPref": {
"type": "object",
"required": ["items"],
"properties": {
"items": {
"type": "array",
"items": {
"type": "ref",
"ref": "app.bsky.actor.defs#mutedWord"
},
"description": "A list of words the account owner has muted."
}
}
},
"hiddenPostsPref": {
"type": "object",
"required": ["items"],
"properties": {
"items": {
"type": "array",
"items": { "type": "string", "format": "at-uri" },
"description": "A list of URIs of posts the account owner has hidden."
}
}
}
}
}
25 changes: 25 additions & 0 deletions bluesky/lexicons/com/atproto/admin/defs.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@
"suspendUntil": {
"type": "string",
"format": "datetime"
},
"tags": {
"type": "array",
"items": { "type": "string" }
}
}
},
Expand Down Expand Up @@ -587,6 +591,27 @@
}
}
},
"modEventTag": {
"type": "object",
"description": "Add/Remove a tag on a subject",
"required": ["add", "remove"],
"properties": {
"add": {
"type": "array",
"items": { "type": "string" },
"description": "Tags to be added to the subject. If already exists, won't be duplicated."
},
"remove": {
"type": "array",
"items": { "type": "string" },
"description": "Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated."
},
"comment": {
"type": "string",
"description": "Additional comment about added/removed tags."
}
}
},
"communicationTemplateView": {
"type": "object",
"required": [
Expand Down
3 changes: 2 additions & 1 deletion bluesky/lexicons/com/atproto/admin/emitModerationEvent.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"com.atproto.admin.defs#modEventMute",
"com.atproto.admin.defs#modEventReverseTakedown",
"com.atproto.admin.defs#modEventUnmute",
"com.atproto.admin.defs#modEventEmail"
"com.atproto.admin.defs#modEventEmail",
"com.atproto.admin.defs#modEventTag"
]
},
"subject": {
Expand Down
10 changes: 10 additions & 0 deletions bluesky/lexicons/com/atproto/admin/queryModerationEvents.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@
"items": { "type": "string" },
"description": "If specified, only events where all of these labels were removed are returned"
},
"addedTags": {
"type": "array",
"items": { "type": "string" },
"description": "If specified, only events where all of these tags were added are returned"
},
"removedTags": {
"type": "array",
"items": { "type": "string" },
"description": "If specified, only events where all of these tags were removed are returned"
},
"reportTypes": {
"type": "array",
"items": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@
"maximum": 100,
"default": 50
},
"tags": {
"type": "array",
"items": { "type": "string" }
},
"excludeTags": {
"type": "array",
"items": { "type": "string" }
},
"cursor": { "type": "string" }
}
},
Expand Down
21 changes: 21 additions & 0 deletions bluesky/lexicons/com/atproto/admin/updateAccountPassword.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"lexicon": 1,
"id": "com.atproto.admin.updateAccountPassword",
"defs": {
"main": {
"type": "procedure",
"description": "Update the password for a user account as an administrator.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["did", "password"],
"properties": {
"did": { "type": "string", "format": "did" },
"password": { "type": "string" }
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"lexicon": 1,
"id": "com.atproto.identity.getRecommendedDidCredentials",
"defs": {
"main": {
"type": "query",
"description": "Describe the credentials that should be included in the DID doc of an account that is migrating to this service.",
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"properties": {
"rotationKeys": {
"description": "Recommended rotation keys for PLC dids. Should be undefined (or ignored) for did:webs.",
"type": "array",
"items": { "type": "string" }
},
"alsoKnownAs": {
"type": "array",
"items": { "type": "string" }
},
"verificationMethods": { "type": "unknown" },
"services": { "type": "unknown" }
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"lexicon": 1,
"id": "com.atproto.identity.requestPlcOperationSignature",
"defs": {
"main": {
"type": "procedure",
"description": "Request an email with a code to in order to request a signed PLC operation. Requires Auth."
}
}
}
45 changes: 45 additions & 0 deletions bluesky/lexicons/com/atproto/identity/signPlcOperation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"lexicon": 1,
"id": "com.atproto.identity.signPlcOperation",
"defs": {
"main": {
"type": "procedure",
"description": "Signs a PLC operation to update some value(s) in the requesting DID's document.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"properties": {
"token": {
"description": "A token received through com.atproto.identity.requestPlcOperationSignature",
"type": "string"
},
"rotationKeys": {
"type": "array",
"items": { "type": "string" }
},
"alsoKnownAs": {
"type": "array",
"items": { "type": "string" }
},
"verificationMethods": { "type": "unknown" },
"services": { "type": "unknown" }
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["operation"],
"properties": {
"operation": {
"type": "unknown",
"description": "A signed DID PLC operation."
}
}
}
}
}
}
}
20 changes: 20 additions & 0 deletions bluesky/lexicons/com/atproto/identity/submitPlcOperation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"lexicon": 1,
"id": "com.atproto.identity.submitPlcOperation",
"defs": {
"main": {
"type": "procedure",
"description": "Validates a PLC operation to ensure that it doesn't violate a service's constraints or get the identity into a bad state, then submits it to the PLC registry",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["operation"],
"properties": {
"operation": { "type": "unknown" }
}
}
}
}
}
}
13 changes: 13 additions & 0 deletions bluesky/lexicons/com/atproto/repo/importRepo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"lexicon": 1,
"id": "com.atproto.repo.importRepo",
"defs": {
"main": {
"type": "procedure",
"description": "Import a repo in the form of a CAR file. Requires Content-Length HTTP header to be set.",
"input": {
"encoding": "application/vnd.ipld.car"
}
}
}
}
44 changes: 44 additions & 0 deletions bluesky/lexicons/com/atproto/repo/listMissingBlobs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"lexicon": 1,
"id": "com.atproto.repo.listMissingBlobs",
"defs": {
"main": {
"type": "query",
"description": "Returns a list of missing blobs for the requesting account. Intended to be used in the account migration flow.",
"parameters": {
"type": "params",
"properties": {
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 1000,
"default": 500
},
"cursor": { "type": "string" }
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["blobs"],
"properties": {
"cursor": { "type": "string" },
"blobs": {
"type": "array",
"items": { "type": "ref", "ref": "#recordBlob" }
}
}
}
}
},
"recordBlob": {
"type": "object",
"required": ["cid", "recordUri"],
"properties": {
"cid": { "type": "string", "format": "cid" },
"recordUri": { "type": "string", "format": "at-uri" }
}
}
}
}
10 changes: 10 additions & 0 deletions bluesky/lexicons/com/atproto/server/activateAccount.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"lexicon": 1,
"id": "com.atproto.server.activateAccount",
"defs": {
"main": {
"type": "procedure",
"description": "Activates a currently deactivated account. Used to finalize account migration after the account's repo is imported and identity is setup."
}
}
}
38 changes: 38 additions & 0 deletions bluesky/lexicons/com/atproto/server/checkAccountStatus.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"lexicon": 1,
"id": "com.atproto.server.checkAccountStatus",
"defs": {
"main": {
"type": "query",
"description": "Returns the status of an account, especially as pertaining to import or recovery. Can be called many times over the course of an account migration. Requires auth and can only be called pertaining to oneself.",
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"activated",
"validDid",
"repoCommit",
"repoRev",
"repoBlocks",
"indexedRecords",
"privateStateValues",
"expectedBlobs",
"importedBlobs"
],
"properties": {
"activated": { "type": "boolean" },
"validDid": { "type": "boolean" },
"repoCommit": { "type": "string", "format": "cid" },
"repoRev": { "type": "string" },
"repoBlocks": { "type": "integer" },
"indexedRecords": { "type": "integer" },
"privateStateValues": { "type": "integer" },
"expectedBlobs": { "type": "integer" },
"importedBlobs": { "type": "integer" }
}
}
}
}
}
}
Loading

0 comments on commit e3908e2

Please sign in to comment.