AccountProfiles

Effective profile and private follow-list commands.

Functions

Link copied to clipboard
suspend fun follow(commandId: CommandId, follow: Follow): OperationResult

Atomically add or replace one private follow-list entry.

Link copied to clipboard
suspend fun follows(): List<Follow>

Return this account's latest authenticated private follow list.

Link copied to clipboard
suspend fun get(publicKey: PublicKey = account.publicKey): Profile

Return one effective authenticated/local profile.

Link copied to clipboard
suspend fun getMany(publicKeys: List<PublicKey>): List<Profile>

Resolve effective authenticated/local profiles for exact keys in input order.

Link copied to clipboard
fun observe(publicKey: PublicKey = account.publicKey): Flow<Profile>

Observe one effective profile after every durable account change.

Link copied to clipboard
fun observeFollows(): Flow<List<Follow>>

Observe this account's latest authenticated private follow list.

Link copied to clipboard
fun observeMany(publicKeys: List<PublicKey>): Flow<List<Profile>>

Observe exact effective profiles in the same order as publicKeys.

Link copied to clipboard
fun observePage(limit: Int = 50, offset: Int = 0): Flow<List<Profile>>

Observe one stable bounded effective-profile page.

Link copied to clipboard
suspend fun page(limit: Int = 50, offset: Int = 0): List<Profile>

Return one stable bounded profile page.

Link copied to clipboard
suspend fun replaceFollows(commandId: CommandId, follows: List<Follow>): OperationResult

Publish a complete private follow-list replacement.

Link copied to clipboard
suspend fun search(query: String, limit: Int = 50): List<Profile>

Search effective profiles by key, authenticated metadata, or local label.

Link copied to clipboard
suspend fun unfollow(commandId: CommandId, publicKey: PublicKey): OperationResult

Atomically remove one public key from the private follow list.

Link copied to clipboard
suspend fun update(commandId: CommandId, patch: ProfilePatch): OperationResult

Merge and publish a private profile patch.