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(bluesky): pull latest Bluesky lexicons

Mary 4cc8c509 700d7dc4

+211 -9
+5
.changeset/heavy-apples-work.md
··· 1 + --- 2 + '@atcute/bluesky': patch 3 + --- 4 + 5 + pull latest Bluesky lexicons
+1 -1
packages/definitions/bluesky/lexicons/README.md
··· 3 3 this directory contains lexicon documents pulled from the following sources: 4 4 5 5 - https://github.com/bluesky-social/atproto.git 6 - - commit: c1a10e19926b9df668b52c2d5289f0f78d355237 6 + - commit: 95e377504a440a25de8d1a8e07357e890a061861
+3 -3
packages/definitions/bluesky/lexicons/app/bsky/draft/defs.json
··· 84 84 "properties": { 85 85 "text": { 86 86 "type": "string", 87 - "maxLength": 3000, 88 - "maxGraphemes": 300, 89 - "description": "The primary post content." 87 + "maxLength": 10000, 88 + "maxGraphemes": 1000, 89 + "description": "The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts." 90 90 }, 91 91 "labels": { 92 92 "type": "union",
+45
packages/definitions/bluesky/lexicons/app/bsky/unspecced/getSuggestedOnboardingUsers.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.unspecced.getSuggestedOnboardingUsers", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "Get a list of suggested users for onboarding", 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 + "recId": { 37 + "type": "string", 38 + "description": "Snowflake for this recommendation, use when submitting recommendation events." 39 + } 40 + } 41 + } 42 + } 43 + } 44 + } 45 + }
+50
packages/definitions/bluesky/lexicons/app/bsky/unspecced/getSuggestedOnboardingUsersSkeleton.json
··· 1 + { 2 + "lexicon": 1, 3 + "id": "app.bsky.unspecced.getSuggestedOnboardingUsersSkeleton", 4 + "defs": { 5 + "main": { 6 + "type": "query", 7 + "description": "Get a skeleton of suggested users for onboarding. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedOnboardingUsers", 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 + "recId": { 42 + "type": "string", 43 + "description": "Snowflake for this recommendation, use when submitting recommendation events." 44 + } 45 + } 46 + } 47 + } 48 + } 49 + } 50 + }
+2
packages/definitions/bluesky/lib/lexicons/index.ts
··· 118 118 export * as AppBskyUnspeccedGetPostThreadV2 from './types/app/bsky/unspecced/getPostThreadV2.ts'; 119 119 export * as AppBskyUnspeccedGetSuggestedFeeds from './types/app/bsky/unspecced/getSuggestedFeeds.ts'; 120 120 export * as AppBskyUnspeccedGetSuggestedFeedsSkeleton from './types/app/bsky/unspecced/getSuggestedFeedsSkeleton.ts'; 121 + export * as AppBskyUnspeccedGetSuggestedOnboardingUsers from './types/app/bsky/unspecced/getSuggestedOnboardingUsers.ts'; 122 + export * as AppBskyUnspeccedGetSuggestedOnboardingUsersSkeleton from './types/app/bsky/unspecced/getSuggestedOnboardingUsersSkeleton.ts'; 121 123 export * as AppBskyUnspeccedGetSuggestedStarterPacks from './types/app/bsky/unspecced/getSuggestedStarterPacks.ts'; 122 124 export * as AppBskyUnspeccedGetSuggestedStarterPacksSkeleton from './types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.ts'; 123 125 export * as AppBskyUnspeccedGetSuggestedUsers from './types/app/bsky/unspecced/getSuggestedUsers.ts';
+5 -5
packages/definitions/bluesky/lib/lexicons/types/app/bsky/draft/defs.ts
··· 183 183 return /*#__PURE__*/ v.optional(/*#__PURE__*/ v.variant([ComAtprotoLabelDefs.selfLabelsSchema])); 184 184 }, 185 185 /** 186 - * The primary post content. 187 - * @maxLength 3000 188 - * @maxGraphemes 300 186 + * The primary post content. It has a higher limit than post contents to allow storing a larger text that can later be refined into smaller posts. 187 + * @maxLength 10000 188 + * @maxGraphemes 1000 189 189 */ 190 190 text: /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.string(), [ 191 - /*#__PURE__*/ v.stringLength(0, 3000), 192 - /*#__PURE__*/ v.stringGraphemes(0, 300), 191 + /*#__PURE__*/ v.stringLength(0, 10000), 192 + /*#__PURE__*/ v.stringGraphemes(0, 1000), 193 193 ]), 194 194 }); 195 195 const _draftViewSchema = /*#__PURE__*/ v.object({
+50
packages/definitions/bluesky/lib/lexicons/types/app/bsky/unspecced/getSuggestedOnboardingUsers.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + import * as AppBskyActorDefs from '../actor/defs.ts'; 6 + 7 + const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.getSuggestedOnboardingUsers', { 8 + params: /*#__PURE__*/ v.object({ 9 + /** 10 + * Category of users to get suggestions for. 11 + */ 12 + category: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 13 + /** 14 + * @minimum 1 15 + * @maximum 50 16 + * @default 25 17 + */ 18 + limit: /*#__PURE__*/ v.optional( 19 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 50)]), 20 + 25, 21 + ), 22 + }), 23 + output: { 24 + type: 'lex', 25 + schema: /*#__PURE__*/ v.object({ 26 + get actors() { 27 + return /*#__PURE__*/ v.array(AppBskyActorDefs.profileViewSchema); 28 + }, 29 + /** 30 + * Snowflake for this recommendation, use when submitting recommendation events. 31 + */ 32 + recId: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 33 + }), 34 + }, 35 + }); 36 + 37 + type main$schematype = typeof _mainSchema; 38 + 39 + export interface mainSchema extends main$schematype {} 40 + 41 + export const mainSchema = _mainSchema as mainSchema; 42 + 43 + export interface $params extends v.InferInput<mainSchema['params']> {} 44 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 45 + 46 + declare module '@atcute/lexicons/ambient' { 47 + interface XRPCQueries { 48 + 'app.bsky.unspecced.getSuggestedOnboardingUsers': mainSchema; 49 + } 50 + }
+50
packages/definitions/bluesky/lib/lexicons/types/app/bsky/unspecced/getSuggestedOnboardingUsersSkeleton.ts
··· 1 + import type {} from '@atcute/lexicons'; 2 + import type {} from '@atcute/lexicons/ambient'; 3 + import * as v from '@atcute/lexicons/validations'; 4 + 5 + const _mainSchema = /*#__PURE__*/ v.query('app.bsky.unspecced.getSuggestedOnboardingUsersSkeleton', { 6 + params: /*#__PURE__*/ v.object({ 7 + /** 8 + * Category of users to get suggestions for. 9 + */ 10 + category: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 11 + /** 12 + * @minimum 1 13 + * @maximum 50 14 + * @default 25 15 + */ 16 + limit: /*#__PURE__*/ v.optional( 17 + /*#__PURE__*/ v.constrain(/*#__PURE__*/ v.integer(), [/*#__PURE__*/ v.integerRange(1, 50)]), 18 + 25, 19 + ), 20 + /** 21 + * DID of the account making the request (not included for public/unauthenticated queries). 22 + */ 23 + viewer: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.didString()), 24 + }), 25 + output: { 26 + type: 'lex', 27 + schema: /*#__PURE__*/ v.object({ 28 + dids: /*#__PURE__*/ v.array(/*#__PURE__*/ v.didString()), 29 + /** 30 + * Snowflake for this recommendation, use when submitting recommendation events. 31 + */ 32 + recId: /*#__PURE__*/ v.optional(/*#__PURE__*/ v.string()), 33 + }), 34 + }, 35 + }); 36 + 37 + type main$schematype = typeof _mainSchema; 38 + 39 + export interface mainSchema extends main$schematype {} 40 + 41 + export const mainSchema = _mainSchema as mainSchema; 42 + 43 + export interface $params extends v.InferInput<mainSchema['params']> {} 44 + export interface $output extends v.InferXRPCBodyInput<mainSchema['output']> {} 45 + 46 + declare module '@atcute/lexicons/ambient' { 47 + interface XRPCQueries { 48 + 'app.bsky.unspecced.getSuggestedOnboardingUsersSkeleton': mainSchema; 49 + } 50 + }