Skip to content

Molecular services

Clara edited this page Feb 25, 2025 · 20 revisions

List of all Molecular Services

an uncomplete list of all services accessible by the moleculer backend

Services

Memory Services

Services modified or created by memory.

public-posts

Service to get Posts from the OpenSearch Instance

External Services

Services not maintained and not modified by memory.

Groups

Name Group Description
auth.account Auth Handles Sign-in and Signup.
pod-outbox User Actions Used to post as a user
jsonld.context
activitypub.outbox Used to directly interact with the outbox of an user
$node
access-description-sets
access-grants
access-needs
access-needs-groups
activitypub
activitypub.activity
activitypub.actor
activitypub.api
activitypub.collection
activitypub.collections-registry
activitypub.follow
activitypub.inbox
activitypub.like
activitypub.object
activitypub.reply
activitypub.side-effects
actors
api
apigateway
app
app-registrations
app.registration
class-descriptions
core
data-grants
jsonld
jsonld.api
jsonld.document-loader
jsonld.parser
keys
keys.container
keys.migration
keys.public-container
ldp
ldp.api
ldp.container
ldp.link-header
ldp.registry
ldp.remote
ldp.resource
memoryapi
nodeinfo
ontologies
pod-activities-watcher
pod-collections
pod-containers
pod-notifications
pod-permissions
pod-resources
pod-wac-groups
public-posts
signature
signature.keypair
signature.proxy
solid-notifications.listener
sparqlEndpoint
timer
translator
triplestore
triplestore.dataset
webacl
webacl.group
webacl.resource
webfinger
webid

Auth

auth.account
Actions
Name description parameters modified
create Creates a new account. Must provide either username or email (uuid: string, username?: string, password: string, email?: string, webId: string) πŸ”΄
attachWebId attaches a WebID to an account (accountUri: string, webId: string) πŸ”΄
verify verify if username and password is correct (username: string, password: string) πŸ”΄
usernameExists check if username exists in the current pod (username: string) πŸ”΄
emailExists check if email exists in the current pod (email: string) πŸ”΄
find searches for accounts that are not tombstones can be everything that is contained by the account πŸ”΄
findByUsername searches for accounts by username (username: string) πŸ”΄
findByWebId searches for accounts by WebID (WebId: string) πŸ”΄
findByEmail searches for accounts by Email (Email: string) πŸ”΄
setPassword updates password of a WebID (webid: string, password: string) πŸ”΄
setNewPassword updates password when the given token is the same as resetPasswordToken (webid: string, password: string, token: string) πŸ”΄
generateResetPasswordToken sets a password reset token for a WebID (webId: string) πŸ”΄
findDatasetByWebId searches account by given WebID or the meta WebID and returns the username (webId: string) πŸ”΄
findSettingsByWebId returns the email and preferredLocale of an account by webId (webId: string) πŸ”΄
updateAccountSettings update email and password. WebID is taken from meta (currentPassword: string, email: string, newPassword: string) πŸ”΄
deleteByWebId completely remove an account from DB (webId: string) πŸ”΄
setTombstone sets all values of an account to undefined except for webId, username and deletedAt (webId: string) πŸ”΄
Methods
Name description parameters modified
isValidUsername Check if a given username is not reserved, a swearword, does not include unwanted characters and does not already exist (ctx, username: string): Promise 🟒
Added slur detection
hashPassword returns a hash for a given password (password: string) => Promise πŸ”΄
comparePassword compares a password to a hash (password: string, hash: string) => Promise πŸ”΄
generateResetPasswordToken returns a random hash () => Promise πŸ”΄

User Actions

pod-outbox

also mentioned in the Activity Pod Docs

Actions
Name description parameters modified
post Posting as the given user (activity, actorUri: string) πŸ”΄

Other

jsonld.context
Actions
Name description parameters modified
get gets a default context () => string[] πŸ”΄
getLocal () => unknown πŸ”΄
merge πŸ”΄
parse πŸ”΄
validate πŸ”΄
activitypub.outbox
Actions
Name description parameters modified
post post to the given collection (collectionUri, username, ... activity) => unknown πŸ”΄
updateCollectionsOptions (dataset: unknown) => void πŸ”΄
Methods
Name description parameters modified
isLocalActor checks if uri starts with baseUri (uri: string) => boolean πŸ”΄
localPost (recipients: unknown, activity: unknown) => { success, failures } πŸ”΄
Queues
  • remotePost