const data = await ctx.modules.friends.sendRequest({
  // Request body
});
SourceNamePublic
Sourcesend_requestYes

Request

export interface Request {
  userToken: string;
  targetUserId: string;
}

Response

export interface Response {
  friendRequest: FriendRequest;
}
export interface FriendRequest {
  id: string;
  senderUserId: string;
  targetUserId: string;
  createdAt: string;
  declinedAt: null | string;
  acceptedAt: null | string;
}