core/CoreInteractionService Service
File: src/services/core/CoreInteractionService.ts
Overview
Exports
- FollowResult - interface export
- BlockResult - interface export
- MuteResult - interface export
- UserRelationship - interface export
- CoreInteractionServiceError - interface export
- BasicUser - interface export
- FollowRequestUser - interface export
- PaginatedUsers - interface export
- CoreInteractionService - class export
- coreInteractionService - const export
Classes
CoreInteractionService
No description available.
Methods:
getInstancetoggleFollowcatchacceptFollowRequestrejectFollowRequesttoggleBlocktoggleMutegetUserRelationshipsgetFollowRequestsgetFollowersgetFollowinggetCurrentUserProfileIdcreateError
Properties:
instanceconstantsMAX_RELATIONSHIP_BATCH_SIZEMAX_PAGINATION_LIMITserviceprofileIdvalidationpreventionCorestatusdatafollowingpendingverificationsupabaseSecuritysettingscheckfailedrequiresApprovalinsertionfollower_idfollowing_idcreated_atviolationserrorblockedblocker_idblocked_user_idmutedmuter_idmuted_user_idmute_typeprocessingemptylimitsIDssanitizedUserIdsrelationshipsfalsefollowedByfollowRequestPendinghandlingblocksmutestrueUIpaginationnumberrequestshasMorenextCursorsecureLimitquerydomainascendingmoreresultsactualRequeststransformedRequestsidusernamedisplay_nameavatar_urlis_localrequested_atundefinedlimitactualFollowersusersactualFollowingMETHODSIDlookupsmessagesecureDetailsdetails
Interfaces
FollowResult
No description available.
typescript
interface FollowResult {
following: boolean
pending?: boolean // For follow requests
}BlockResult
No description available.
typescript
interface BlockResult {
blocked: boolean
}MuteResult
No description available.
typescript
interface MuteResult {
muted: boolean
}UserRelationship
No description available.
typescript
interface UserRelationship {
following: boolean
followedBy: boolean
followRequestPending: boolean
blocked: boolean
muted: boolean
}CoreInteractionServiceError
No description available.
typescript
interface CoreInteractionServiceError {
code: string
message: string
details?: any
}BasicUser
No description available.
typescript
interface BasicUser {
id: string
username: string
display_name: string
avatar_url?: string
is_local: boolean
domain?: string
}FollowRequestUser
No description available.
typescript
interface FollowRequestUser {
requested_at: string
}PaginatedUsers
No description available.
typescript
interface PaginatedUsers {
users: BasicUser[]
hasMore: boolean
nextCursor?: string
}Source Code Insights
File Size: 26209 characters Lines of Code: 787 Imports: 3
Usage Example
typescript
import { FollowResult, BlockResult, MuteResult, UserRelationship, CoreInteractionServiceError, BasicUser, FollowRequestUser, PaginatedUsers, CoreInteractionService, coreInteractionService } from '@/services/core/CoreInteractionService'
// Example usage
// Use the exported functionalityThis documentation was automatically generated from the source code.
