use full profile in suggested users response ()

* use full profile in suggested users response

* Codegen

* Changeset

---------

Co-authored-by: Eric Bailey <git@esb.lol>
This commit is contained in:
Hailey 2025-04-07 18:30:10 -07:00 committed by GitHub
parent 01f2bd13eb
commit 8b7bf7e8f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 19 additions and 13 deletions
.changeset
lexicons/app/bsky/unspecced
packages
api/src/client
lexicons.ts
types/app/bsky/unspecced
bsky/src
api/app/bsky/unspecced
lexicon
lexicons.ts
types/app/bsky/unspecced
ozone/src/lexicon
lexicons.ts
types/app/bsky/unspecced
pds/src/lexicon
lexicons.ts
types/app/bsky/unspecced

@ -0,0 +1,6 @@
---
"@atproto/bsky": patch
"@atproto/api": patch
---
Return `ProfileView` from `getSuggestedUsers` unspecced endpoint

@ -30,7 +30,7 @@
"type": "array",
"items": {
"type": "ref",
"ref": "app.bsky.actor.defs#profileViewBasic"
"ref": "app.bsky.actor.defs#profileView"
}
}
}

@ -10078,7 +10078,7 @@ export const schemaDict = {
type: 'array',
items: {
type: 'ref',
ref: 'lex:app.bsky.actor.defs#profileViewBasic',
ref: 'lex:app.bsky.actor.defs#profileView',
},
},
},

@ -25,7 +25,7 @@ export interface QueryParams {
export type InputSchema = undefined
export interface OutputSchema {
actors: AppBskyActorDefs.ProfileViewBasic[]
actors: AppBskyActorDefs.ProfileView[]
}
export interface CallOptions {

@ -84,12 +84,12 @@ const hydration = async (
if (params.viewer) {
pairs.set(params.viewer, dids)
}
const [profileBasicState, bidirectionalBlocks] = await Promise.all([
ctx.hydrator.hydrateProfilesBasic(dids, params.hydrateCtx),
const [profilesState, bidirectionalBlocks] = await Promise.all([
ctx.hydrator.hydrateProfiles(dids, params.hydrateCtx),
ctx.hydrator.hydrateBidirectionalBlocks(pairs),
])
return mergeManyStates(profileBasicState, { bidirectionalBlocks })
return mergeManyStates(profilesState, { bidirectionalBlocks })
}
const noBlocksOrFollows = (
@ -115,7 +115,7 @@ const presentation = (
const { ctx, skeleton, hydration } = input
return {
actors: mapDefined(skeleton.dids, (did) =>
ctx.views.profileBasic(did, hydration),
ctx.views.profile(did, hydration),
),
}
}

@ -10078,7 +10078,7 @@ export const schemaDict = {
type: 'array',
items: {
type: 'ref',
ref: 'lex:app.bsky.actor.defs#profileViewBasic',
ref: 'lex:app.bsky.actor.defs#profileView',
},
},
},

@ -26,7 +26,7 @@ export interface QueryParams {
export type InputSchema = undefined
export interface OutputSchema {
actors: AppBskyActorDefs.ProfileViewBasic[]
actors: AppBskyActorDefs.ProfileView[]
}
export type HandlerInput = undefined

@ -10078,7 +10078,7 @@ export const schemaDict = {
type: 'array',
items: {
type: 'ref',
ref: 'lex:app.bsky.actor.defs#profileViewBasic',
ref: 'lex:app.bsky.actor.defs#profileView',
},
},
},

@ -26,7 +26,7 @@ export interface QueryParams {
export type InputSchema = undefined
export interface OutputSchema {
actors: AppBskyActorDefs.ProfileViewBasic[]
actors: AppBskyActorDefs.ProfileView[]
}
export type HandlerInput = undefined

@ -10078,7 +10078,7 @@ export const schemaDict = {
type: 'array',
items: {
type: 'ref',
ref: 'lex:app.bsky.actor.defs#profileViewBasic',
ref: 'lex:app.bsky.actor.defs#profileView',
},
},
},

@ -26,7 +26,7 @@ export interface QueryParams {
export type InputSchema = undefined
export interface OutputSchema {
actors: AppBskyActorDefs.ProfileViewBasic[]
actors: AppBskyActorDefs.ProfileView[]
}
export type HandlerInput = undefined