A repository for storing bot data.
setKeyPairs(keyPairs: CryptoKeyPair[]): Promise<void>
Sets the key pairs of the bot actor.
getKeyPairs(): Promise<CryptoKeyPair[] | undefined>
Gets the key pairs of the bot actor.
addMessage(id: Uuid,activity: Create | Announce,): Promise<void>
Adds a message to the repository.
updateMessage(id: Uuid,updater: (existing: Create | Announce) => ,): Promise<boolean>
Updates a message in the repository.
removeMessage(id: Uuid): Promise<Create
| Announce
| undefined>
Removes a message from the repository.
getMessages(options?: RepositoryGetMessagesOptions): AsyncIterable<Create | Announce>
Gets messages from the repository.
getMessage(id: Uuid): Promise<Create
| Announce
| undefined>
Gets a message from the repository.
Counts the number of messages in the repository.
addFollower(followId: URL,follower: Actor,): Promise<void>
Adds a follower to the repository.
removeFollower(): Promise<Actor | undefined>
Removes a follower from the repository.
hasFollower(followerId: URL): Promise<boolean>
Checks if the repository has a follower.
getFollowers(options?: RepositoryGetFollowersOptions): AsyncIterable<Actor>
Gets followers from the repository.
Counts the number of followers in the repository.
addSentFollow(id: Uuid,follow: Follow,): Promise<void>
Adds a sent follow request to the repository.
removeSentFollow(id: Uuid): Promise<Follow | undefined>
Removes a sent follow request from the repository.
getSentFollow(id: Uuid): Promise<Follow | undefined>
Gets a sent follow request from the repository.
addFollowee(followeeId: URL,follow: Follow,): Promise<void>
Adds a followee to the repository.
removeFollowee(followeeId: URL): Promise<Follow | undefined>
Removes a followee from the repository.
getFollowee(followeeId: URL): Promise<Follow | undefined>
Gets a followee from the repository.