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 e88a976a 7fb31d32

+104 -122
+5
.changeset/lemon-dancers-serve.md
··· 1 + --- 2 + '@atcute/bluesky': patch 3 + --- 4 + 5 + pull latest Bluesky lexicons
+1 -1
lexdocs/bluesky/README.md
··· 1 - https://github.com/bluesky-social/atproto/tree/f6d5a467e71fb54996754cce7747b1e98a34442b/lexicons/ 1 + https://github.com/bluesky-social/atproto/tree/a5cd018bd5f237221902ab1b6956b46233c92187/lexicons/
+42
lexdocs/bluesky/app/bsky/unspecced/defs.json
··· 72 72 } 73 73 } 74 74 } 75 + }, 76 + "threadItemPost": { 77 + "type": "object", 78 + "required": ["post", "moreParents", "moreReplies", "opThread", "hiddenByThreadgate", "mutedByViewer"], 79 + "properties": { 80 + "post": { "type": "ref", "ref": "app.bsky.feed.defs#postView" }, 81 + "moreParents": { 82 + "type": "boolean", 83 + "description": "This post has more parents that were not present in the response. This is just a boolean, without the number of parents." 84 + }, 85 + "moreReplies": { 86 + "type": "integer", 87 + "description": "This post has more replies that were not present in the response. This is a numeric value, which is best-effort and might not be accurate." 88 + }, 89 + "opThread": { 90 + "type": "boolean", 91 + "description": "This post is part of a contiguous thread by the OP from the thread root. Many different OP threads can happen in the same thread." 92 + }, 93 + "hiddenByThreadgate": { 94 + "type": "boolean", 95 + "description": "The threadgate created by the author indicates this post as a reply to be hidden for everyone consuming the thread." 96 + }, 97 + "mutedByViewer": { 98 + "type": "boolean", 99 + "description": "This is by an account muted by the viewer requesting it." 100 + } 101 + } 102 + }, 103 + "threadItemNoUnauthenticated": { 104 + "type": "object", 105 + "properties": {} 106 + }, 107 + "threadItemNotFound": { 108 + "type": "object", 109 + "properties": {} 110 + }, 111 + "threadItemBlocked": { 112 + "type": "object", 113 + "required": ["author"], 114 + "properties": { 115 + "author": { "type": "ref", "ref": "app.bsky.feed.defs#blockedAuthor" } 116 + } 75 117 } 76 118 } 77 119 }
+2 -17
lexdocs/bluesky/app/bsky/unspecced/getPostThreadHiddenV2.json
··· 29 29 "properties": { 30 30 "thread": { 31 31 "type": "array", 32 - "description": "A flat list of thread hidden items. The depth of each item is indicated by the depth property inside the item.", 32 + "description": "A flat list of hidden thread items. The depth of each item is indicated by the depth property inside the item.", 33 33 "items": { 34 34 "type": "ref", 35 35 "ref": "#threadHiddenItem" ··· 53 53 }, 54 54 "value": { 55 55 "type": "union", 56 - "refs": ["#threadHiddenItemPost"] 57 - } 58 - } 59 - }, 60 - "threadHiddenItemPost": { 61 - "type": "object", 62 - "required": ["post", "hiddenByThreadgate", "mutedByViewer"], 63 - "properties": { 64 - "post": { "type": "ref", "ref": "app.bsky.feed.defs#postView" }, 65 - "hiddenByThreadgate": { 66 - "type": "boolean", 67 - "description": "The threadgate created by the author indicates this post as a reply to be hidden for everyone consuming the thread." 68 - }, 69 - "mutedByViewer": { 70 - "type": "boolean", 71 - "description": "This is by an account muted by the viewer requesting it." 56 + "refs": ["app.bsky.unspecced.defs#threadItemPost"] 72 57 } 73 58 } 74 59 }
+4 -38
lexdocs/bluesky/app/bsky/unspecced/getPostThreadV2.json
··· 87 87 "value": { 88 88 "type": "union", 89 89 "refs": [ 90 - "#threadItemPost", 91 - "#threadItemNoUnauthenticated", 92 - "#threadItemNotFound", 93 - "#threadItemBlocked" 90 + "app.bsky.unspecced.defs#threadItemPost", 91 + "app.bsky.unspecced.defs#threadItemNoUnauthenticated", 92 + "app.bsky.unspecced.defs#threadItemNotFound", 93 + "app.bsky.unspecced.defs#threadItemBlocked" 94 94 ] 95 95 } 96 - } 97 - }, 98 - "threadItemPost": { 99 - "type": "object", 100 - "required": ["post", "moreParents", "moreReplies", "opThread"], 101 - "properties": { 102 - "post": { "type": "ref", "ref": "app.bsky.feed.defs#postView" }, 103 - "moreParents": { 104 - "type": "boolean", 105 - "description": "This post has more parents that were not present in the response. This is just a boolean, without the number of parents." 106 - }, 107 - "moreReplies": { 108 - "type": "integer", 109 - "description": "This post has more replies that were not present in the response. This is a numeric value, which is best-effort and might not be accurate." 110 - }, 111 - "opThread": { 112 - "type": "boolean", 113 - "description": "This post is part of a contiguous thread by the OP from the thread root. Many different OP threads can happen in the same thread." 114 - } 115 - } 116 - }, 117 - "threadItemNoUnauthenticated": { 118 - "type": "object", 119 - "properties": {} 120 - }, 121 - "threadItemNotFound": { 122 - "type": "object", 123 - "properties": {} 124 - }, 125 - "threadItemBlocked": { 126 - "type": "object", 127 - "required": ["author"], 128 - "properties": { 129 - "author": { "type": "ref", "ref": "app.bsky.feed.defs#blockedAuthor" } 130 96 } 131 97 } 132 98 }
+43
packages/definitions/bluesky/lib/lexicons/types/app/bsky/unspecced/defs.ts
··· 1 1 import type {} from '@atcute/lexicons'; 2 2 import * as v from '@atcute/lexicons/validations'; 3 3 import * as AppBskyActorDefs from '../actor/defs.js'; 4 + import * as AppBskyFeedDefs from '../feed/defs.js'; 4 5 5 6 const _skeletonSearchActorSchema = /*#__PURE__*/ v.object({ 6 7 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#skeletonSearchActor')), ··· 27 28 status: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string<'hot' | (string & {})>()), 28 29 topic: /*#__PURE__*/ v.string(), 29 30 }); 31 + const _threadItemBlockedSchema = /*#__PURE__*/ v.object({ 32 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#threadItemBlocked')), 33 + get author() { 34 + return AppBskyFeedDefs.blockedAuthorSchema; 35 + }, 36 + }); 37 + const _threadItemNoUnauthenticatedSchema = /*#__PURE__*/ v.object({ 38 + $type: /*#__PURE__*/ v.optional( 39 + /*#__PURE__*/ v.literal('app.bsky.unspecced.defs#threadItemNoUnauthenticated'), 40 + ), 41 + }); 42 + const _threadItemNotFoundSchema = /*#__PURE__*/ v.object({ 43 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#threadItemNotFound')), 44 + }); 45 + const _threadItemPostSchema = /*#__PURE__*/ v.object({ 46 + $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#threadItemPost')), 47 + hiddenByThreadgate: /*#__PURE__*/ v.boolean(), 48 + moreParents: /*#__PURE__*/ v.boolean(), 49 + moreReplies: /*#__PURE__*/ v.integer(), 50 + mutedByViewer: /*#__PURE__*/ v.boolean(), 51 + opThread: /*#__PURE__*/ v.boolean(), 52 + get post() { 53 + return AppBskyFeedDefs.postViewSchema; 54 + }, 55 + }); 30 56 const _trendViewSchema = /*#__PURE__*/ v.object({ 31 57 $type: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.literal('app.bsky.unspecced.defs#trendView')), 32 58 get actors() { ··· 52 78 type skeletonSearchPost$schematype = typeof _skeletonSearchPostSchema; 53 79 type skeletonSearchStarterPack$schematype = typeof _skeletonSearchStarterPackSchema; 54 80 type skeletonTrend$schematype = typeof _skeletonTrendSchema; 81 + type threadItemBlocked$schematype = typeof _threadItemBlockedSchema; 82 + type threadItemNoUnauthenticated$schematype = typeof _threadItemNoUnauthenticatedSchema; 83 + type threadItemNotFound$schematype = typeof _threadItemNotFoundSchema; 84 + type threadItemPost$schematype = typeof _threadItemPostSchema; 55 85 type trendView$schematype = typeof _trendViewSchema; 56 86 type trendingTopic$schematype = typeof _trendingTopicSchema; 57 87 ··· 59 89 export interface skeletonSearchPostSchema extends skeletonSearchPost$schematype {} 60 90 export interface skeletonSearchStarterPackSchema extends skeletonSearchStarterPack$schematype {} 61 91 export interface skeletonTrendSchema extends skeletonTrend$schematype {} 92 + export interface threadItemBlockedSchema extends threadItemBlocked$schematype {} 93 + export interface threadItemNoUnauthenticatedSchema extends threadItemNoUnauthenticated$schematype {} 94 + export interface threadItemNotFoundSchema extends threadItemNotFound$schematype {} 95 + export interface threadItemPostSchema extends threadItemPost$schematype {} 62 96 export interface trendViewSchema extends trendView$schematype {} 63 97 export interface trendingTopicSchema extends trendingTopic$schematype {} 64 98 ··· 67 101 export const skeletonSearchStarterPackSchema = 68 102 _skeletonSearchStarterPackSchema as skeletonSearchStarterPackSchema; 69 103 export const skeletonTrendSchema = _skeletonTrendSchema as skeletonTrendSchema; 104 + export const threadItemBlockedSchema = _threadItemBlockedSchema as threadItemBlockedSchema; 105 + export const threadItemNoUnauthenticatedSchema = 106 + _threadItemNoUnauthenticatedSchema as threadItemNoUnauthenticatedSchema; 107 + export const threadItemNotFoundSchema = _threadItemNotFoundSchema as threadItemNotFoundSchema; 108 + export const threadItemPostSchema = _threadItemPostSchema as threadItemPostSchema; 70 109 export const trendViewSchema = _trendViewSchema as trendViewSchema; 71 110 export const trendingTopicSchema = _trendingTopicSchema as trendingTopicSchema; 72 111 ··· 74 113 export interface SkeletonSearchPost extends v.InferInput<typeof skeletonSearchPostSchema> {} 75 114 export interface SkeletonSearchStarterPack extends v.InferInput<typeof skeletonSearchStarterPackSchema> {} 76 115 export interface SkeletonTrend extends v.InferInput<typeof skeletonTrendSchema> {} 116 + export interface ThreadItemBlocked extends v.InferInput<typeof threadItemBlockedSchema> {} 117 + export interface ThreadItemNoUnauthenticated extends v.InferInput<typeof threadItemNoUnauthenticatedSchema> {} 118 + export interface ThreadItemNotFound extends v.InferInput<typeof threadItemNotFoundSchema> {} 119 + export interface ThreadItemPost extends v.InferInput<typeof threadItemPostSchema> {} 77 120 export interface TrendView extends v.InferInput<typeof trendViewSchema> {} 78 121 export interface TrendingTopic extends v.InferInput<typeof trendingTopicSchema> {}
+2 -16
packages/definitions/bluesky/lib/lexicons/types/app/bsky/unspecced/getPostThreadHiddenV2.ts
··· 1 1 import type {} from '@atcute/lexicons'; 2 2 import * as v from '@atcute/lexicons/validations'; 3 3 import type {} from '@atcute/lexicons/ambient'; 4 - import * as AppBskyFeedDefs from '../feed/defs.js'; 4 + import * as AppBskyUnspeccedDefs from './defs.js'; 5 5 6 6 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.getPostThreadHiddenV2', { 7 7 params: /*#__PURE__*/ v.object({ ··· 24 24 depth: /*#__PURE__*/ v.integer(), 25 25 uri: /*#__PURE__*/ v.resourceUriString(), 26 26 get value() { 27 - return /*#__PURE__*/ v.variant([threadHiddenItemPostSchema]); 28 - }, 29 - }); 30 - const _threadHiddenItemPostSchema = /*#__PURE__*/ v.object({ 31 - $type: /*#__PURE__*/ v.optional( 32 - /*#__PURE__*/ v.literal('app.bsky.unspecced.getPostThreadHiddenV2#threadHiddenItemPost'), 33 - ), 34 - hiddenByThreadgate: /*#__PURE__*/ v.boolean(), 35 - mutedByViewer: /*#__PURE__*/ v.boolean(), 36 - get post() { 37 - return AppBskyFeedDefs.postViewSchema; 27 + return /*#__PURE__*/ v.variant([AppBskyUnspeccedDefs.threadItemPostSchema]); 38 28 }, 39 29 }); 40 30 41 31 type main$schematype = typeof _mainSchema; 42 32 type threadHiddenItem$schematype = typeof _threadHiddenItemSchema; 43 - type threadHiddenItemPost$schematype = typeof _threadHiddenItemPostSchema; 44 33 45 34 export interface mainSchema extends main$schematype {} 46 35 export interface threadHiddenItemSchema extends threadHiddenItem$schematype {} 47 - export interface threadHiddenItemPostSchema extends threadHiddenItemPost$schematype {} 48 36 49 37 export const mainSchema = _mainSchema as mainSchema; 50 38 export const threadHiddenItemSchema = _threadHiddenItemSchema as threadHiddenItemSchema; 51 - export const threadHiddenItemPostSchema = _threadHiddenItemPostSchema as threadHiddenItemPostSchema; 52 39 53 40 export interface ThreadHiddenItem extends v.InferInput<typeof threadHiddenItemSchema> {} 54 - export interface ThreadHiddenItemPost extends v.InferInput<typeof threadHiddenItemPostSchema> {} 55 41 56 42 export interface $params extends v.InferInput<mainSchema['params']> {} 57 43 export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}
+5 -50
packages/definitions/bluesky/lib/lexicons/types/app/bsky/unspecced/getPostThreadV2.ts
··· 2 2 import * as v from '@atcute/lexicons/validations'; 3 3 import type {} from '@atcute/lexicons/ambient'; 4 4 import * as AppBskyFeedDefs from '../feed/defs.js'; 5 + import * as AppBskyUnspeccedDefs from './defs.js'; 5 6 6 7 const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.getPostThreadV2', { 7 8 params: /*#__PURE__*/ v.object({ ··· 40 41 uri: /*#__PURE__*/ v.resourceUriString(), 41 42 get value() { 42 43 return /*#__PURE__*/ v.variant([ 43 - threadItemBlockedSchema, 44 - threadItemNoUnauthenticatedSchema, 45 - threadItemNotFoundSchema, 46 - threadItemPostSchema, 44 + AppBskyUnspeccedDefs.threadItemBlockedSchema, 45 + AppBskyUnspeccedDefs.threadItemNoUnauthenticatedSchema, 46 + AppBskyUnspeccedDefs.threadItemNotFoundSchema, 47 + AppBskyUnspeccedDefs.threadItemPostSchema, 47 48 ]); 48 49 }, 49 50 }); 50 - const _threadItemBlockedSchema = /*#__PURE__*/ v.object({ 51 - $type: /*#__PURE__*/ v.optional( 52 - /*#__PURE__*/ v.literal('app.bsky.unspecced.getPostThreadV2#threadItemBlocked'), 53 - ), 54 - get author() { 55 - return AppBskyFeedDefs.blockedAuthorSchema; 56 - }, 57 - }); 58 - const _threadItemNoUnauthenticatedSchema = /*#__PURE__*/ v.object({ 59 - $type: /*#__PURE__*/ v.optional( 60 - /*#__PURE__*/ v.literal('app.bsky.unspecced.getPostThreadV2#threadItemNoUnauthenticated'), 61 - ), 62 - }); 63 - const _threadItemNotFoundSchema = /*#__PURE__*/ v.object({ 64 - $type: /*#__PURE__*/ v.optional( 65 - /*#__PURE__*/ v.literal('app.bsky.unspecced.getPostThreadV2#threadItemNotFound'), 66 - ), 67 - }); 68 - const _threadItemPostSchema = /*#__PURE__*/ v.object({ 69 - $type: /*#__PURE__*/ v.optional( 70 - /*#__PURE__*/ v.literal('app.bsky.unspecced.getPostThreadV2#threadItemPost'), 71 - ), 72 - moreParents: /*#__PURE__*/ v.boolean(), 73 - moreReplies: /*#__PURE__*/ v.integer(), 74 - opThread: /*#__PURE__*/ v.boolean(), 75 - get post() { 76 - return AppBskyFeedDefs.postViewSchema; 77 - }, 78 - }); 79 51 80 52 type main$schematype = typeof _mainSchema; 81 53 type threadItem$schematype = typeof _threadItemSchema; 82 - type threadItemBlocked$schematype = typeof _threadItemBlockedSchema; 83 - type threadItemNoUnauthenticated$schematype = typeof _threadItemNoUnauthenticatedSchema; 84 - type threadItemNotFound$schematype = typeof _threadItemNotFoundSchema; 85 - type threadItemPost$schematype = typeof _threadItemPostSchema; 86 54 87 55 export interface mainSchema extends main$schematype {} 88 56 export interface threadItemSchema extends threadItem$schematype {} 89 - export interface threadItemBlockedSchema extends threadItemBlocked$schematype {} 90 - export interface threadItemNoUnauthenticatedSchema extends threadItemNoUnauthenticated$schematype {} 91 - export interface threadItemNotFoundSchema extends threadItemNotFound$schematype {} 92 - export interface threadItemPostSchema extends threadItemPost$schematype {} 93 57 94 58 export const mainSchema = _mainSchema as mainSchema; 95 59 export const threadItemSchema = _threadItemSchema as threadItemSchema; 96 - export const threadItemBlockedSchema = _threadItemBlockedSchema as threadItemBlockedSchema; 97 - export const threadItemNoUnauthenticatedSchema = 98 - _threadItemNoUnauthenticatedSchema as threadItemNoUnauthenticatedSchema; 99 - export const threadItemNotFoundSchema = _threadItemNotFoundSchema as threadItemNotFoundSchema; 100 - export const threadItemPostSchema = _threadItemPostSchema as threadItemPostSchema; 101 60 102 61 export interface ThreadItem extends v.InferInput<typeof threadItemSchema> {} 103 - export interface ThreadItemBlocked extends v.InferInput<typeof threadItemBlockedSchema> {} 104 - export interface ThreadItemNoUnauthenticated extends v.InferInput<typeof threadItemNoUnauthenticatedSchema> {} 105 - export interface ThreadItemNotFound extends v.InferInput<typeof threadItemNotFoundSchema> {} 106 - export interface ThreadItemPost extends v.InferInput<typeof threadItemPostSchema> {} 107 62 108 63 export interface $params extends v.InferInput<mainSchema['params']> {} 109 64 export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {}