a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm
101
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: pull latest Bluesky lexicons

Mary 4f592528 ef3363e4

+965 -8
+7
.changeset/sweet-actors-rhyme.md
··· 1 + --- 2 + '@atcute/bluesky': patch 3 + '@atcute/ozone': patch 4 + '@atcute/client': patch 5 + --- 6 + 7 + pull latest Bluesky lexicons
+1 -1
lexicons/README.md
··· 1 - https://github.com/bluesky-social/atproto/tree/620b10954af90f53e1692c3fd7451c675f1e9956/lexicons 1 + https://github.com/bluesky-social/atproto/tree/3fcd221111afb961b237fe2e0537907ff2e69f45/lexicons
+36
lexicons/app/bsky/graph/verification.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.graph.verification", 4 + "defs": { 5 + "main": { 6 + "type": "record", 7 + "description": "Record declaring a verification relationship between two accounts. Verifications are only considered valid by an app if issued by an account the app considers trusted.", 8 + "key": "tid", 9 + "record": { 10 + "type": "object", 11 + "required": ["subject", "handle", "displayName", "createdAt"], 12 + "properties": { 13 + "subject": { 14 + "description": "DID of the subject the verification applies to.", 15 + "type": "string", 16 + "format": "did" 17 + }, 18 + "handle": { 19 + "description": "Handle of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current handle matches the one at the time of verifying.", 20 + "type": "string", 21 + "format": "handle" 22 + }, 23 + "displayName": { 24 + "description": "Display name of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current displayName matches the one at the time of verifying.", 25 + "type": "string" 26 + }, 27 + "createdAt": { 28 + "description": "Date of when the verification was created.", 29 + "type": "string", 30 + "format": "datetime" 31 + } 32 + } 33 + } 34 + } 35 + } 36 + }
+40
lexicons/app/bsky/unspecced/defs.json
··· 32 32 "description": { "type": "string" }, 33 33 "link": { "type": "string" } 34 34 } 35 + }, 36 + "skeletonTrend": { 37 + "type": "object", 38 + "required": ["topic", "displayName", "link", "startedAt", "postCount", "dids"], 39 + "properties": { 40 + "topic": { "type": "string" }, 41 + "displayName": { "type": "string" }, 42 + "link": { "type": "string" }, 43 + "startedAt": { "type": "string", "format": "datetime" }, 44 + "postCount": { "type": "integer" }, 45 + "status": { "type": "string", "knownValues": ["hot"] }, 46 + "category": { "type": "string" }, 47 + "dids": { 48 + "type": "array", 49 + "items": { 50 + "type": "string", 51 + "format": "did" 52 + } 53 + } 54 + } 55 + }, 56 + "trendView": { 57 + "type": "object", 58 + "required": ["topic", "displayName", "link", "startedAt", "postCount", "actors"], 59 + "properties": { 60 + "topic": { "type": "string" }, 61 + "displayName": { "type": "string" }, 62 + "link": { "type": "string" }, 63 + "startedAt": { "type": "string", "format": "datetime" }, 64 + "postCount": { "type": "integer" }, 65 + "status": { "type": "string", "knownValues": ["hot"] }, 66 + "category": { "type": "string" }, 67 + "actors": { 68 + "type": "array", 69 + "items": { 70 + "type": "ref", 71 + "ref": "app.bsky.actor.defs#profileViewBasic" 72 + } 73 + } 74 + } 35 75 } 36 76 } 37 77 }
+37
lexicons/app/bsky/unspecced/getSuggestedFeeds.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.unspecced.getSuggestedFeeds", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "Get a list of suggested feeds", 8 + "parameters": { 9 + "type": "params", 10 + "properties": { 11 + "limit": { 12 + "type": "integer", 13 + "minimum": 1, 14 + "maximum": 25, 15 + "default": 10 16 + } 17 + } 18 + }, 19 + "output": { 20 + "encoding": "application/json", 21 + "schema": { 22 + "type": "object", 23 + "required": ["feeds"], 24 + "properties": { 25 + "feeds": { 26 + "type": "array", 27 + "items": { 28 + "type": "ref", 29 + "ref": "app.bsky.feed.defs#generatorView" 30 + } 31 + } 32 + } 33 + } 34 + } 35 + } 36 + } 37 + }
+42
lexicons/app/bsky/unspecced/getSuggestedFeedsSkeleton.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.unspecced.getSuggestedFeedsSkeleton", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "Get a skeleton of suggested feeds. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedFeeds", 8 + "parameters": { 9 + "type": "params", 10 + "properties": { 11 + "viewer": { 12 + "type": "string", 13 + "format": "did", 14 + "description": "DID of the account making the request (not included for public/unauthenticated queries)." 15 + }, 16 + "limit": { 17 + "type": "integer", 18 + "minimum": 1, 19 + "maximum": 25, 20 + "default": 10 21 + } 22 + } 23 + }, 24 + "output": { 25 + "encoding": "application/json", 26 + "schema": { 27 + "type": "object", 28 + "required": ["feeds"], 29 + "properties": { 30 + "feeds": { 31 + "type": "array", 32 + "items": { 33 + "type": "string", 34 + "format": "at-uri" 35 + } 36 + } 37 + } 38 + } 39 + } 40 + } 41 + } 42 + }
+37
lexicons/app/bsky/unspecced/getSuggestedStarterPacks.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.unspecced.getSuggestedStarterPacks", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "Get a list of suggested starterpacks", 8 + "parameters": { 9 + "type": "params", 10 + "properties": { 11 + "limit": { 12 + "type": "integer", 13 + "minimum": 1, 14 + "maximum": 25, 15 + "default": 10 16 + } 17 + } 18 + }, 19 + "output": { 20 + "encoding": "application/json", 21 + "schema": { 22 + "type": "object", 23 + "required": ["starterPacks"], 24 + "properties": { 25 + "starterPacks": { 26 + "type": "array", 27 + "items": { 28 + "type": "ref", 29 + "ref": "app.bsky.graph.defs#starterPackView" 30 + } 31 + } 32 + } 33 + } 34 + } 35 + } 36 + } 37 + }
+42
lexicons/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.unspecced.getSuggestedStarterPacksSkeleton", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "Get a skeleton of suggested starterpacks. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedStarterpacks", 8 + "parameters": { 9 + "type": "params", 10 + "properties": { 11 + "viewer": { 12 + "type": "string", 13 + "format": "did", 14 + "description": "DID of the account making the request (not included for public/unauthenticated queries)." 15 + }, 16 + "limit": { 17 + "type": "integer", 18 + "minimum": 1, 19 + "maximum": 25, 20 + "default": 10 21 + } 22 + } 23 + }, 24 + "output": { 25 + "encoding": "application/json", 26 + "schema": { 27 + "type": "object", 28 + "required": ["starterPacks"], 29 + "properties": { 30 + "starterPacks": { 31 + "type": "array", 32 + "items": { 33 + "type": "string", 34 + "format": "at-uri" 35 + } 36 + } 37 + } 38 + } 39 + } 40 + } 41 + } 42 + }
+41
lexicons/app/bsky/unspecced/getSuggestedUsers.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.unspecced.getSuggestedUsers", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "Get a list of suggested users", 8 + "parameters": { 9 + "type": "params", 10 + "properties": { 11 + "category": { 12 + "type": "string", 13 + "description": "Category of users to get suggestions for." 14 + }, 15 + "limit": { 16 + "type": "integer", 17 + "minimum": 1, 18 + "maximum": 50, 19 + "default": 25 20 + } 21 + } 22 + }, 23 + "output": { 24 + "encoding": "application/json", 25 + "schema": { 26 + "type": "object", 27 + "required": ["actors"], 28 + "properties": { 29 + "actors": { 30 + "type": "array", 31 + "items": { 32 + "type": "ref", 33 + "ref": "app.bsky.actor.defs#profileView" 34 + } 35 + } 36 + } 37 + } 38 + } 39 + } 40 + } 41 + }
+46
lexicons/app/bsky/unspecced/getSuggestedUsersSkeleton.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.unspecced.getSuggestedUsersSkeleton", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "Get a skeleton of suggested users. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsers", 8 + "parameters": { 9 + "type": "params", 10 + "properties": { 11 + "viewer": { 12 + "type": "string", 13 + "format": "did", 14 + "description": "DID of the account making the request (not included for public/unauthenticated queries)." 15 + }, 16 + "category": { 17 + "type": "string", 18 + "description": "Category of users to get suggestions for." 19 + }, 20 + "limit": { 21 + "type": "integer", 22 + "minimum": 1, 23 + "maximum": 50, 24 + "default": 25 25 + } 26 + } 27 + }, 28 + "output": { 29 + "encoding": "application/json", 30 + "schema": { 31 + "type": "object", 32 + "required": ["dids"], 33 + "properties": { 34 + "dids": { 35 + "type": "array", 36 + "items": { 37 + "type": "string", 38 + "format": "did" 39 + } 40 + } 41 + } 42 + } 43 + } 44 + } 45 + } 46 + }
+37
lexicons/app/bsky/unspecced/getTrends.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.unspecced.getTrends", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "Get the current trends on the network", 8 + "parameters": { 9 + "type": "params", 10 + "properties": { 11 + "limit": { 12 + "type": "integer", 13 + "minimum": 1, 14 + "maximum": 25, 15 + "default": 10 16 + } 17 + } 18 + }, 19 + "output": { 20 + "encoding": "application/json", 21 + "schema": { 22 + "type": "object", 23 + "required": ["trends"], 24 + "properties": { 25 + "trends": { 26 + "type": "array", 27 + "items": { 28 + "type": "ref", 29 + "ref": "app.bsky.unspecced.defs#trendView" 30 + } 31 + } 32 + } 33 + } 34 + } 35 + } 36 + } 37 + }
+42
lexicons/app/bsky/unspecced/getTrendsSkeleton.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.unspecced.getTrendsSkeleton", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "Get the skeleton of trends on the network. Intended to be called and then hydrated through app.bsky.unspecced.getTrends", 8 + "parameters": { 9 + "type": "params", 10 + "properties": { 11 + "viewer": { 12 + "type": "string", 13 + "format": "did", 14 + "description": "DID of the account making the request (not included for public/unauthenticated queries)." 15 + }, 16 + "limit": { 17 + "type": "integer", 18 + "minimum": 1, 19 + "maximum": 25, 20 + "default": 10 21 + } 22 + } 23 + }, 24 + "output": { 25 + "encoding": "application/json", 26 + "schema": { 27 + "type": "object", 28 + "required": ["trends"], 29 + "properties": { 30 + "trends": { 31 + "type": "array", 32 + "items": { 33 + "type": "ref", 34 + "ref": "app.bsky.unspecced.defs#skeletonTrend" 35 + } 36 + } 37 + } 38 + } 39 + } 40 + } 41 + } 42 + }
+1 -1
lexicons/chat/bsky/convo/addReaction.json
··· 16 16 "value": { 17 17 "type": "string", 18 18 "minLength": 1, 19 - "maxLength": 32, 19 + "maxLength": 64, 20 20 "minGraphemes": 1, 21 21 "maxGraphemes": 1 22 22 }
+6 -1
lexicons/chat/bsky/convo/defs.json
··· 53 53 }, 54 54 "reactions": { 55 55 "type": "array", 56 + "description": "Reactions to this message, in ascending order of creation time.", 56 57 "items": { "type": "ref", "ref": "#reactionView" } 57 58 }, 58 59 "sender": { "type": "ref", "ref": "#messageViewSender" }, ··· 115 116 }, 116 117 "lastMessage": { 117 118 "type": "union", 118 - "refs": ["#messageView", "#deletedMessageView", "#messageAndReactionView"] 119 + "refs": ["#messageView", "#deletedMessageView"] 120 + }, 121 + "lastReaction": { 122 + "type": "union", 123 + "refs": ["#messageAndReactionView"] 119 124 }, 120 125 "muted": { "type": "boolean" }, 121 126 "status": {
+1 -1
lexicons/chat/bsky/convo/removeReaction.json
··· 16 16 "value": { 17 17 "type": "string", 18 18 "minLength": 1, 19 - "maxLength": 32, 19 + "maxLength": 64, 20 20 "minGraphemes": 1, 21 21 "maxGraphemes": 1 22 22 }
+25
lexicons/com/atproto/admin/updateAccountSigningKey.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "com.atproto.admin.updateAccountSigningKey", 4 + "defs": { 5 + "main": { 6 + "type": "procedure", 7 + "description": "Administrative action to update an account's signing key in their Did document.", 8 + "input": { 9 + "encoding": "application/json", 10 + "schema": { 11 + "type": "object", 12 + "required": ["did", "signingKey"], 13 + "properties": { 14 + "did": { "type": "string", "format": "did" }, 15 + "signingKey": { 16 + "type": "string", 17 + "format": "did", 18 + "description": "Did-key formatted public key" 19 + } 20 + } 21 + } 22 + } 23 + } 24 + } 25 + }
+10
lexicons/com/atproto/sync/defs.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "com.atproto.sync.defs", 4 + "defs": { 5 + "hostStatus": { 6 + "type": "string", 7 + "knownValues": ["active", "idle", "offline", "throttled", "banned"] 8 + } 9 + } 10 + }
+43
lexicons/com/atproto/sync/getHostStatus.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "com.atproto.sync.getHostStatus", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "Returns information about a specified upstream host, as consumed by the server. Implemented by relays.", 8 + "parameters": { 9 + "type": "params", 10 + "required": ["hostname"], 11 + "properties": { 12 + "hostname": { 13 + "type": "string", 14 + "description": "Hostname of the host (eg, PDS or relay) being queried." 15 + } 16 + } 17 + }, 18 + "output": { 19 + "encoding": "application/json", 20 + "schema": { 21 + "type": "object", 22 + "required": ["hostname"], 23 + "properties": { 24 + "hostname": { "type": "string" }, 25 + "seq": { 26 + "type": "integer", 27 + "description": "Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor)." 28 + }, 29 + "accountCount": { 30 + "type": "integer", 31 + "description": "Number of accounts on the server which are associated with the upstream host. Note that the upstream may actually have more accounts." 32 + }, 33 + "status": { 34 + "type": "ref", 35 + "ref": "com.atproto.sync.defs#hostStatus" 36 + } 37 + } 38 + } 39 + }, 40 + "errors": [{ "name": "HostNotFound" }] 41 + } 42 + } 43 + }
+56
lexicons/com/atproto/sync/listHosts.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "com.atproto.sync.listHosts", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "Enumerates upstream hosts (eg, PDS or relay instances) that this service consumes from. Implemented by relays.", 8 + "parameters": { 9 + "type": "params", 10 + "properties": { 11 + "limit": { 12 + "type": "integer", 13 + "minimum": 1, 14 + "maximum": 1000, 15 + "default": 200 16 + }, 17 + "cursor": { "type": "string" } 18 + } 19 + }, 20 + "output": { 21 + "encoding": "application/json", 22 + "schema": { 23 + "type": "object", 24 + "required": ["hosts"], 25 + "properties": { 26 + "cursor": { "type": "string" }, 27 + "hosts": { 28 + "type": "array", 29 + "items": { "type": "ref", "ref": "#host" }, 30 + "description": "Sort order is not formally specified. Recommended order is by time host was first seen by the server, with oldest first." 31 + } 32 + } 33 + } 34 + } 35 + }, 36 + "host": { 37 + "type": "object", 38 + "required": ["hostname"], 39 + "properties": { 40 + "hostname": { 41 + "type": "string", 42 + "description": "hostname of server; not a URL (no scheme)" 43 + }, 44 + "seq": { 45 + "type": "integer", 46 + "description": "Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor)." 47 + }, 48 + "accountCount": { "type": "integer" }, 49 + "status": { 50 + "type": "ref", 51 + "ref": "com.atproto.sync.defs#hostStatus" 52 + } 53 + } 54 + } 55 + } 56 + }
+2 -1
lexicons/com/atproto/sync/requestCrawl.json
··· 17 17 } 18 18 } 19 19 } 20 - } 20 + }, 21 + "errors": [{ "name": "HostBanned" }] 21 22 } 22 23 } 23 24 }
+30
lexicons/tools/ozone/moderation/defs.json
··· 181 181 } 182 182 } 183 183 }, 184 + "subjectView": { 185 + "description": "Detailed view of a subject. For record subjects, the author's repo and profile will be returned.", 186 + "type": "object", 187 + "required": ["type", "subject"], 188 + "properties": { 189 + "type": { 190 + "type": "ref", 191 + "ref": "com.atproto.moderation.defs#subjectType" 192 + }, 193 + "subject": { 194 + "type": "string" 195 + }, 196 + "status": { 197 + "type": "ref", 198 + "ref": "#subjectStatusView" 199 + }, 200 + "repo": { 201 + "type": "ref", 202 + "ref": "#repoViewDetail" 203 + }, 204 + "profile": { 205 + "type": "union", 206 + "refs": [] 207 + }, 208 + "record": { 209 + "type": "ref", 210 + "ref": "#recordViewDetail" 211 + } 212 + } 213 + }, 184 214 "accountStats": { 185 215 "description": "Statistics about a particular account subject", 186 216 "type": "object",
+40
lexicons/tools/ozone/moderation/getSubjects.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "tools.ozone.moderation.getSubjects", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "Get details about subjects.", 8 + "parameters": { 9 + "type": "params", 10 + "required": ["subjects"], 11 + "properties": { 12 + "subjects": { 13 + "type": "array", 14 + "maxLength": 100, 15 + "minLength": 1, 16 + "items": { 17 + "type": "string" 18 + } 19 + } 20 + } 21 + }, 22 + "output": { 23 + "encoding": "application/json", 24 + "schema": { 25 + "type": "object", 26 + "required": ["subjects"], 27 + "properties": { 28 + "subjects": { 29 + "type": "array", 30 + "items": { 31 + "type": "ref", 32 + "ref": "tools.ozone.moderation.defs#subjectView" 33 + } 34 + } 35 + } 36 + } 37 + } 38 + } 39 + } 40 + }
+81
packages/core/client/lib/lexicons.ts
··· 316 316 type Output = undefined; 317 317 } 318 318 319 + /** Administrative action to update an account's signing key in their Did document. */ 320 + export declare namespace ComAtprotoAdminUpdateAccountSigningKey { 321 + interface Params {} 322 + interface Input { 323 + did: At.Did; 324 + /** Did-key formatted public key */ 325 + signingKey: At.Did; 326 + } 327 + type Output = undefined; 328 + } 329 + 319 330 /** Update the service-specific admin status of a subject (account, record, or blob). */ 320 331 export declare namespace ComAtprotoAdminUpdateSubjectStatus { 321 332 interface Params {} ··· 1336 1347 } 1337 1348 } 1338 1349 1350 + export declare namespace ComAtprotoSyncDefs { 1351 + type HostStatus = 'active' | 'banned' | 'idle' | 'offline' | 'throttled' | (string & {}); 1352 + } 1353 + 1339 1354 /** Get a blob associated with a given account. Returns the full blob as originally uploaded. Does not require auth; implemented by PDS. */ 1340 1355 export declare namespace ComAtprotoSyncGetBlob { 1341 1356 interface Params { ··· 1401 1416 } 1402 1417 interface Errors { 1403 1418 HeadNotFound: {}; 1419 + } 1420 + } 1421 + 1422 + /** Returns information about a specified upstream host, as consumed by the server. Implemented by relays. */ 1423 + export declare namespace ComAtprotoSyncGetHostStatus { 1424 + interface Params { 1425 + /** Hostname of the host (eg, PDS or relay) being queried. */ 1426 + hostname: string; 1427 + } 1428 + type Input = undefined; 1429 + interface Output { 1430 + hostname: string; 1431 + /** Number of accounts on the server which are associated with the upstream host. Note that the upstream may actually have more accounts. */ 1432 + accountCount?: number; 1433 + /** Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor). */ 1434 + seq?: number; 1435 + status?: ComAtprotoSyncDefs.HostStatus; 1436 + } 1437 + interface Errors { 1438 + HostNotFound: {}; 1404 1439 } 1405 1440 } 1406 1441 ··· 1516 1551 } 1517 1552 } 1518 1553 1554 + /** Enumerates upstream hosts (eg, PDS or relay instances) that this service consumes from. Implemented by relays. */ 1555 + export declare namespace ComAtprotoSyncListHosts { 1556 + interface Params { 1557 + cursor?: string; 1558 + /** 1559 + * Minimum: 1 \ 1560 + * Maximum: 1000 1561 + * @default 200 1562 + */ 1563 + limit?: number; 1564 + } 1565 + type Input = undefined; 1566 + interface Output { 1567 + /** Sort order is not formally specified. Recommended order is by time host was first seen by the server, with oldest first. */ 1568 + hosts: Host[]; 1569 + cursor?: string; 1570 + } 1571 + interface Host { 1572 + [Brand.Type]?: 'com.atproto.sync.listHosts#host'; 1573 + /** hostname of server; not a URL (no scheme) */ 1574 + hostname: string; 1575 + accountCount?: number; 1576 + /** Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor). */ 1577 + seq?: number; 1578 + status?: ComAtprotoSyncDefs.HostStatus; 1579 + } 1580 + } 1581 + 1519 1582 /** Enumerates all the DID, rev, and commit CID for all repos hosted by this service. Does not require auth; implemented by PDS and Relay. */ 1520 1583 export declare namespace ComAtprotoSyncListRepos { 1521 1584 interface Params { ··· 1593 1656 hostname: string; 1594 1657 } 1595 1658 type Output = undefined; 1659 + interface Errors { 1660 + HostBanned: {}; 1661 + } 1596 1662 } 1597 1663 1598 1664 export declare namespace ComAtprotoSyncSubscribeRepos { ··· 1887 1953 output: ComAtprotoSyncGetHead.Output; 1888 1954 response: { json: ComAtprotoSyncGetHead.Output }; 1889 1955 }; 1956 + 'com.atproto.sync.getHostStatus': { 1957 + params: ComAtprotoSyncGetHostStatus.Params; 1958 + /** @deprecated */ 1959 + output: ComAtprotoSyncGetHostStatus.Output; 1960 + response: { json: ComAtprotoSyncGetHostStatus.Output }; 1961 + }; 1890 1962 'com.atproto.sync.getLatestCommit': { 1891 1963 params: ComAtprotoSyncGetLatestCommit.Params; 1892 1964 /** @deprecated */ ··· 1916 1988 /** @deprecated */ 1917 1989 output: ComAtprotoSyncListBlobs.Output; 1918 1990 response: { json: ComAtprotoSyncListBlobs.Output }; 1991 + }; 1992 + 'com.atproto.sync.listHosts': { 1993 + params: ComAtprotoSyncListHosts.Params; 1994 + /** @deprecated */ 1995 + output: ComAtprotoSyncListHosts.Output; 1996 + response: { json: ComAtprotoSyncListHosts.Output }; 1919 1997 }; 1920 1998 'com.atproto.sync.listRepos': { 1921 1999 params: ComAtprotoSyncListRepos.Params; ··· 1969 2047 }; 1970 2048 'com.atproto.admin.updateAccountPassword': { 1971 2049 input: ComAtprotoAdminUpdateAccountPassword.Input; 2050 + }; 2051 + 'com.atproto.admin.updateAccountSigningKey': { 2052 + input: ComAtprotoAdminUpdateAccountSigningKey.Input; 1972 2053 }; 1973 2054 'com.atproto.admin.updateSubjectStatus': { 1974 2055 input: ComAtprotoAdminUpdateSubjectStatus.Input;
+231 -3
packages/definitions/bluesky/lib/lexicons.ts
··· 1905 1905 type Output = undefined; 1906 1906 } 1907 1907 1908 + namespace AppBskyGraphVerification { 1909 + /** Record declaring a verification relationship between two accounts. Verifications are only considered valid by an app if issued by an account the app considers trusted. */ 1910 + interface Record { 1911 + $type: 'app.bsky.graph.verification'; 1912 + /** Date of when the verification was created. */ 1913 + createdAt: string; 1914 + /** Display name of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current displayName matches the one at the time of verifying. */ 1915 + displayName: string; 1916 + /** Handle of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current handle matches the one at the time of verifying. */ 1917 + handle: At.Handle; 1918 + /** DID of the subject the verification applies to. */ 1919 + subject: At.Did; 1920 + } 1921 + } 1922 + 1908 1923 namespace AppBskyLabelerDefs { 1909 1924 interface LabelerPolicies { 1910 1925 [Brand.Type]?: 'app.bsky.labeler.defs#labelerPolicies'; ··· 2116 2131 [Brand.Type]?: 'app.bsky.unspecced.defs#skeletonSearchStarterPack'; 2117 2132 uri: At.ResourceUri; 2118 2133 } 2134 + interface SkeletonTrend { 2135 + [Brand.Type]?: 'app.bsky.unspecced.defs#skeletonTrend'; 2136 + dids: At.Did[]; 2137 + displayName: string; 2138 + link: string; 2139 + postCount: number; 2140 + startedAt: string; 2141 + topic: string; 2142 + category?: string; 2143 + status?: 'hot' | (string & {}); 2144 + } 2119 2145 interface TrendingTopic { 2120 2146 [Brand.Type]?: 'app.bsky.unspecced.defs#trendingTopic'; 2121 2147 link: string; ··· 2123 2149 description?: string; 2124 2150 displayName?: string; 2125 2151 } 2152 + interface TrendView { 2153 + [Brand.Type]?: 'app.bsky.unspecced.defs#trendView'; 2154 + actors: AppBskyActorDefs.ProfileViewBasic[]; 2155 + displayName: string; 2156 + link: string; 2157 + postCount: number; 2158 + startedAt: string; 2159 + topic: string; 2160 + category?: string; 2161 + status?: 'hot' | (string & {}); 2162 + } 2126 2163 } 2127 2164 2128 2165 /** Get miscellaneous runtime configuration. */ ··· 2153 2190 } 2154 2191 } 2155 2192 2193 + /** Get a list of suggested feeds */ 2194 + namespace AppBskyUnspeccedGetSuggestedFeeds { 2195 + interface Params { 2196 + /** 2197 + * Minimum: 1 \ 2198 + * Maximum: 25 2199 + * @default 10 2200 + */ 2201 + limit?: number; 2202 + } 2203 + type Input = undefined; 2204 + interface Output { 2205 + feeds: AppBskyFeedDefs.GeneratorView[]; 2206 + } 2207 + } 2208 + 2209 + /** Get a skeleton of suggested feeds. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedFeeds */ 2210 + namespace AppBskyUnspeccedGetSuggestedFeedsSkeleton { 2211 + interface Params { 2212 + /** 2213 + * Minimum: 1 \ 2214 + * Maximum: 25 2215 + * @default 10 2216 + */ 2217 + limit?: number; 2218 + /** DID of the account making the request (not included for public/unauthenticated queries). */ 2219 + viewer?: At.Did; 2220 + } 2221 + type Input = undefined; 2222 + interface Output { 2223 + feeds: At.ResourceUri[]; 2224 + } 2225 + } 2226 + 2227 + /** Get a list of suggested starterpacks */ 2228 + namespace AppBskyUnspeccedGetSuggestedStarterPacks { 2229 + interface Params { 2230 + /** 2231 + * Minimum: 1 \ 2232 + * Maximum: 25 2233 + * @default 10 2234 + */ 2235 + limit?: number; 2236 + } 2237 + type Input = undefined; 2238 + interface Output { 2239 + starterPacks: AppBskyGraphDefs.StarterPackView[]; 2240 + } 2241 + } 2242 + 2243 + /** Get a skeleton of suggested starterpacks. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedStarterpacks */ 2244 + namespace AppBskyUnspeccedGetSuggestedStarterPacksSkeleton { 2245 + interface Params { 2246 + /** 2247 + * Minimum: 1 \ 2248 + * Maximum: 25 2249 + * @default 10 2250 + */ 2251 + limit?: number; 2252 + /** DID of the account making the request (not included for public/unauthenticated queries). */ 2253 + viewer?: At.Did; 2254 + } 2255 + type Input = undefined; 2256 + interface Output { 2257 + starterPacks: At.ResourceUri[]; 2258 + } 2259 + } 2260 + 2261 + /** Get a list of suggested users */ 2262 + namespace AppBskyUnspeccedGetSuggestedUsers { 2263 + interface Params { 2264 + /** Category of users to get suggestions for. */ 2265 + category?: string; 2266 + /** 2267 + * Minimum: 1 \ 2268 + * Maximum: 50 2269 + * @default 25 2270 + */ 2271 + limit?: number; 2272 + } 2273 + type Input = undefined; 2274 + interface Output { 2275 + actors: AppBskyActorDefs.ProfileView[]; 2276 + } 2277 + } 2278 + 2279 + /** Get a skeleton of suggested users. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsers */ 2280 + namespace AppBskyUnspeccedGetSuggestedUsersSkeleton { 2281 + interface Params { 2282 + /** Category of users to get suggestions for. */ 2283 + category?: string; 2284 + /** 2285 + * Minimum: 1 \ 2286 + * Maximum: 50 2287 + * @default 25 2288 + */ 2289 + limit?: number; 2290 + /** DID of the account making the request (not included for public/unauthenticated queries). */ 2291 + viewer?: At.Did; 2292 + } 2293 + type Input = undefined; 2294 + interface Output { 2295 + dids: At.Did[]; 2296 + } 2297 + } 2298 + 2156 2299 /** Get a skeleton of suggested actors. Intended to be called and then hydrated through app.bsky.actor.getSuggestions */ 2157 2300 namespace AppBskyUnspeccedGetSuggestionsSkeleton { 2158 2301 interface Params { ··· 2212 2355 } 2213 2356 } 2214 2357 2358 + /** Get the current trends on the network */ 2359 + namespace AppBskyUnspeccedGetTrends { 2360 + interface Params { 2361 + /** 2362 + * Minimum: 1 \ 2363 + * Maximum: 25 2364 + * @default 10 2365 + */ 2366 + limit?: number; 2367 + } 2368 + type Input = undefined; 2369 + interface Output { 2370 + trends: AppBskyUnspeccedDefs.TrendView[]; 2371 + } 2372 + } 2373 + 2374 + /** Get the skeleton of trends on the network. Intended to be called and then hydrated through app.bsky.unspecced.getTrends */ 2375 + namespace AppBskyUnspeccedGetTrendsSkeleton { 2376 + interface Params { 2377 + /** 2378 + * Minimum: 1 \ 2379 + * Maximum: 25 2380 + * @default 10 2381 + */ 2382 + limit?: number; 2383 + /** DID of the account making the request (not included for public/unauthenticated queries). */ 2384 + viewer?: At.Did; 2385 + } 2386 + type Input = undefined; 2387 + interface Output { 2388 + trends: AppBskyUnspeccedDefs.SkeletonTrend[]; 2389 + } 2390 + } 2391 + 2215 2392 /** Backend Actors (profile) search, returns only skeleton. */ 2216 2393 namespace AppBskyUnspeccedSearchActorsSkeleton { 2217 2394 interface Params { ··· 2433 2610 messageId: string; 2434 2611 /** 2435 2612 * Minimum string length: 1 \ 2436 - * Maximum string length: 32 \ 2613 + * Maximum string length: 64 \ 2437 2614 * Maximum grapheme length: 1 2438 2615 */ 2439 2616 value: string; ··· 2456 2633 muted: boolean; 2457 2634 rev: string; 2458 2635 unreadCount: number; 2459 - lastMessage?: Brand.Union<DeletedMessageView | MessageAndReactionView | MessageView>; 2636 + lastMessage?: Brand.Union<DeletedMessageView | MessageView>; 2637 + lastReaction?: Brand.Union<MessageAndReactionView>; 2460 2638 status?: 'accepted' | 'request' | (string & {}); 2461 2639 } 2462 2640 interface DeletedMessageView { ··· 2559 2737 embed?: Brand.Union<AppBskyEmbedRecord.View>; 2560 2738 /** Annotations of text (mentions, URLs, hashtags, etc) */ 2561 2739 facets?: AppBskyRichtextFacet.Main[]; 2740 + /** Reactions to this message, in ascending order of creation time. */ 2562 2741 reactions?: ReactionView[]; 2563 2742 } 2564 2743 interface MessageViewSender { ··· 2714 2893 messageId: string; 2715 2894 /** 2716 2895 * Minimum string length: 1 \ 2717 - * Maximum string length: 32 \ 2896 + * Maximum string length: 64 \ 2718 2897 * Maximum grapheme length: 1 2719 2898 */ 2720 2899 value: string; ··· 2844 3023 'app.bsky.graph.listblock': AppBskyGraphListblock.Record; 2845 3024 'app.bsky.graph.listitem': AppBskyGraphListitem.Record; 2846 3025 'app.bsky.graph.starterpack': AppBskyGraphStarterpack.Record; 3026 + 'app.bsky.graph.verification': AppBskyGraphVerification.Record; 2847 3027 'app.bsky.labeler.service': AppBskyLabelerService.Record; 2848 3028 'chat.bsky.actor.declaration': ChatBskyActorDeclaration.Record; 2849 3029 } ··· 3104 3284 output: AppBskyUnspeccedGetPopularFeedGenerators.Output; 3105 3285 response: { json: AppBskyUnspeccedGetPopularFeedGenerators.Output }; 3106 3286 }; 3287 + 'app.bsky.unspecced.getSuggestedFeeds': { 3288 + params: AppBskyUnspeccedGetSuggestedFeeds.Params; 3289 + /** @deprecated */ 3290 + output: AppBskyUnspeccedGetSuggestedFeeds.Output; 3291 + response: { json: AppBskyUnspeccedGetSuggestedFeeds.Output }; 3292 + }; 3293 + 'app.bsky.unspecced.getSuggestedFeedsSkeleton': { 3294 + params: AppBskyUnspeccedGetSuggestedFeedsSkeleton.Params; 3295 + /** @deprecated */ 3296 + output: AppBskyUnspeccedGetSuggestedFeedsSkeleton.Output; 3297 + response: { json: AppBskyUnspeccedGetSuggestedFeedsSkeleton.Output }; 3298 + }; 3299 + 'app.bsky.unspecced.getSuggestedStarterPacks': { 3300 + params: AppBskyUnspeccedGetSuggestedStarterPacks.Params; 3301 + /** @deprecated */ 3302 + output: AppBskyUnspeccedGetSuggestedStarterPacks.Output; 3303 + response: { json: AppBskyUnspeccedGetSuggestedStarterPacks.Output }; 3304 + }; 3305 + 'app.bsky.unspecced.getSuggestedStarterPacksSkeleton': { 3306 + params: AppBskyUnspeccedGetSuggestedStarterPacksSkeleton.Params; 3307 + /** @deprecated */ 3308 + output: AppBskyUnspeccedGetSuggestedStarterPacksSkeleton.Output; 3309 + response: { json: AppBskyUnspeccedGetSuggestedStarterPacksSkeleton.Output }; 3310 + }; 3311 + 'app.bsky.unspecced.getSuggestedUsers': { 3312 + params: AppBskyUnspeccedGetSuggestedUsers.Params; 3313 + /** @deprecated */ 3314 + output: AppBskyUnspeccedGetSuggestedUsers.Output; 3315 + response: { json: AppBskyUnspeccedGetSuggestedUsers.Output }; 3316 + }; 3317 + 'app.bsky.unspecced.getSuggestedUsersSkeleton': { 3318 + params: AppBskyUnspeccedGetSuggestedUsersSkeleton.Params; 3319 + /** @deprecated */ 3320 + output: AppBskyUnspeccedGetSuggestedUsersSkeleton.Output; 3321 + response: { json: AppBskyUnspeccedGetSuggestedUsersSkeleton.Output }; 3322 + }; 3107 3323 'app.bsky.unspecced.getSuggestionsSkeleton': { 3108 3324 params: AppBskyUnspeccedGetSuggestionsSkeleton.Params; 3109 3325 /** @deprecated */ ··· 3120 3336 /** @deprecated */ 3121 3337 output: AppBskyUnspeccedGetTrendingTopics.Output; 3122 3338 response: { json: AppBskyUnspeccedGetTrendingTopics.Output }; 3339 + }; 3340 + 'app.bsky.unspecced.getTrends': { 3341 + params: AppBskyUnspeccedGetTrends.Params; 3342 + /** @deprecated */ 3343 + output: AppBskyUnspeccedGetTrends.Output; 3344 + response: { json: AppBskyUnspeccedGetTrends.Output }; 3345 + }; 3346 + 'app.bsky.unspecced.getTrendsSkeleton': { 3347 + params: AppBskyUnspeccedGetTrendsSkeleton.Params; 3348 + /** @deprecated */ 3349 + output: AppBskyUnspeccedGetTrendsSkeleton.Output; 3350 + response: { json: AppBskyUnspeccedGetTrendsSkeleton.Output }; 3123 3351 }; 3124 3352 'app.bsky.unspecced.searchActorsSkeleton': { 3125 3353 params: AppBskyUnspeccedSearchActorsSkeleton.Params;
+31
packages/definitions/ozone/lib/lexicons.ts
··· 509 509 tags?: string[]; 510 510 takendown?: boolean; 511 511 } 512 + /** Detailed view of a subject. For record subjects, the author's repo and profile will be returned. */ 513 + interface SubjectView { 514 + [Brand.Type]?: 'tools.ozone.moderation.defs#subjectView'; 515 + subject: string; 516 + type: ComAtprotoModerationDefs.SubjectType; 517 + profile?: Brand.Union<>; 518 + record?: RecordViewDetail; 519 + repo?: RepoViewDetail; 520 + status?: SubjectStatusView; 521 + } 512 522 interface VideoDetails { 513 523 [Brand.Type]?: 'tools.ozone.moderation.defs#videoDetails'; 514 524 height: number; ··· 623 633 repos: Brand.Union< 624 634 ToolsOzoneModerationDefs.RepoViewDetail | ToolsOzoneModerationDefs.RepoViewNotFound 625 635 >[]; 636 + } 637 + } 638 + 639 + /** Get details about subjects. */ 640 + namespace ToolsOzoneModerationGetSubjects { 641 + interface Params { 642 + /** 643 + * Minimum array length: 1 \ 644 + * Maximum array length: 100 645 + */ 646 + subjects: string[]; 647 + } 648 + type Input = undefined; 649 + interface Output { 650 + subjects: ToolsOzoneModerationDefs.SubjectView[]; 626 651 } 627 652 } 628 653 ··· 1238 1263 /** @deprecated */ 1239 1264 output: ToolsOzoneModerationGetRepos.Output; 1240 1265 response: { json: ToolsOzoneModerationGetRepos.Output }; 1266 + }; 1267 + 'tools.ozone.moderation.getSubjects': { 1268 + params: ToolsOzoneModerationGetSubjects.Params; 1269 + /** @deprecated */ 1270 + output: ToolsOzoneModerationGetSubjects.Output; 1271 + response: { json: ToolsOzoneModerationGetSubjects.Output }; 1241 1272 }; 1242 1273 'tools.ozone.moderation.queryEvents': { 1243 1274 params: ToolsOzoneModerationQueryEvents.Params;