External module "src/rest/user"
Functions
Const connectUserIdentityForUser
- connectUserIdentityForUser(tokenUserId: string, userId: string, service: string, url: string): Promise<object>
-
Parameters
-
tokenUserId: string
-
userId: string
-
service: string
-
url: string
Returns Promise<object>
Const createAccessTokenForUser
- createAccessTokenForUser(tokenUserId: string, userId: string, accessToken: KeyValue, locals: Locals): Promise<void>
-
Parameters
-
tokenUserId: string
-
userId: string
-
-
Returns Promise<void>
Const createUserIdentityForUser
- createUserIdentityForUser(tokenUserId: string, userId: string, body: KeyValue): Promise<object>
-
Parameters
-
tokenUserId: string
-
userId: string
-
Returns Promise<object>
Const deleteAccessTokenForUser
- deleteAccessTokenForUser(tokenUserId: string, userId: string, accessTokenId: string, locals: Locals): Promise<void>
-
Parameters
-
tokenUserId: string
-
userId: string
-
accessTokenId: string
-
Returns Promise<void>
Const deleteIdentityForUser
- deleteIdentityForUser(tokenUserId: string, userId: string, identityId: string, locals: Locals): Promise<void>
-
Parameters
-
tokenUserId: string
-
userId: string
-
identityId: string
-
Returns Promise<void>
Const deleteSessionForUser
- deleteSessionForUser(tokenUserId: string, userId: string, sessionId: string, locals: Locals): Promise<void>
-
Parameters
-
tokenUserId: string
-
userId: string
-
sessionId: string
-
Returns Promise<void>
Const deleteUserForUser
- deleteUserForUser(tokenUserId: string, updateUserId: string, locals: Locals): Promise<void>
-
Parameters
-
tokenUserId: string
-
updateUserId: string
-
Returns Promise<void>
Const disable2FAForUser
- disable2FAForUser(tokenUserId: string, userId: string): Promise<void>
-
Parameters
-
tokenUserId: string
-
userId: string
Returns Promise<void>
Const enable2FAForUser
- enable2FAForUser(tokenUserId: string, userId: string): Promise<object>
-
Parameters
-
tokenUserId: string
-
userId: string
Returns Promise<object>
Const getAllDataForUser
- getAllDataForUser(tokenUserId: string, userId: string): Promise<object>
-
Parameters
-
tokenUserId: string
-
userId: string
Returns Promise<object>
Const getBackupCodesForUser
- getBackupCodesForUser(tokenUserId: string, userId: string): Promise<any>
-
Parameters
-
tokenUserId: string
-
userId: string
Returns Promise<any>
Const getMembershipsForUser
- getMembershipsForUser(tokenUserId: string, dataUserId: string, query: KeyValue): Promise<object>
-
Parameters
-
tokenUserId: string
-
dataUserId: string
-
Returns Promise<object>
Const getRecentEventsForUser
- getRecentEventsForUser(tokenUserId: string, dataUserId: string, query: KeyValue): Promise<object>
-
Parameters
-
tokenUserId: string
-
dataUserId: string
-
Returns Promise<object>
Const getUserAccessTokenForUser
- getUserAccessTokenForUser(tokenUserId: string, userId: string, accessTokenId: string): Promise<AccessToken>
-
Parameters
-
tokenUserId: string
-
userId: string
-
accessTokenId: string
Const getUserAccessTokensForUser
- getUserAccessTokensForUser(tokenUserId: string, userId: string, query: KeyValue): Promise<object>
-
Parameters
-
tokenUserId: string
-
userId: string
-
Returns Promise<object>
Const getUserFromId
- getUserFromId(userId: string, tokenUserId: string): Promise<User>
-
Parameters
-
userId: string
-
tokenUserId: string
Returns Promise<User>
Const getUserIdentitiesForUser
- getUserIdentitiesForUser(tokenUserId: string, userId: string, query: KeyValue): Promise<object>
-
Parameters
-
tokenUserId: string
-
userId: string
-
Returns Promise<object>
Const getUserIdentityForUser
- getUserIdentityForUser(tokenUserId: string, userId: string, identityId: string): Promise<Identity>
-
Parameters
-
tokenUserId: string
-
userId: string
-
identityId: string
Returns Promise<Identity>
Const getUserSessionForUser
- getUserSessionForUser(tokenUserId: string, userId: string, sessionId: string): Promise<Session>
-
Parameters
-
tokenUserId: string
-
userId: string
-
sessionId: string
Returns Promise<Session>
Const getUserSessionsForUser
- getUserSessionsForUser(tokenUserId: string, userId: string, query: KeyValue): Promise<object>
-
Parameters
-
tokenUserId: string
-
userId: string
-
Returns Promise<object>
Const regenerateBackupCodesForUser
- regenerateBackupCodesForUser(tokenUserId: string, userId: string): Promise<any>
-
Parameters
-
tokenUserId: string
-
userId: string
Returns Promise<any>
Const updateAccessTokenForUser
- updateAccessTokenForUser(tokenUserId: string, userId: string, accessTokenId: string, data: KeyValue, locals: Locals): Promise<void>
-
Parameters
-
tokenUserId: string
-
userId: string
-
accessTokenId: string
-
-
Returns Promise<void>
Const updatePasswordForUser
- updatePasswordForUser(tokenUserId: string, updateUserId: string, oldPassword: string, newPassword: string, locals: Locals): Promise<void>
-
Parameters
-
tokenUserId: string
-
updateUserId: string
-
oldPassword: string
-
newPassword: string
-
Returns Promise<void>
Const updateUserForUser
- updateUserForUser(tokenUserId: string, updateUserId: string, data: User, locals: Locals): Promise<void>
-
Parameters
-
tokenUserId: string
-
updateUserId: string
-
-
Returns Promise<void>
Const verify2FAForUser
- verify2FAForUser(tokenUserId: string, userId: string, verificationCode: number): Promise<void>
-
Parameters
-
tokenUserId: string
-
userId: string
-
verificationCode: number
Returns Promise<void>