Package-level declarations

Types

Link copied to clipboard
data class AccessTokenDTO(val userId: NonQualifiedUserId, val value: String, val expiresIn: Int, val tokenType: String)

Represents an access token received from an authentication server.

Link copied to clipboard
Link copied to clipboard
internal interface ApiModelMapper

Mapping between the base API model and the versioned API models.

Link copied to clipboard
Link copied to clipboard
typealias AssetId = QualifiedID
Link copied to clipboard
typealias AssetKey = String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class AuthenticationResultDTO(val sessionDTO: SessionDTO, val userDTO: SelfUserDTO)
Link copied to clipboard
data class Cause(val type: String, val domain: String, val domains: List<String> = emptyList(), val path: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
internal data class DeleteAccountRequest(val password: String?)
Link copied to clipboard
data class ErrorResponse(val code: Int, val message: String, val label: String, val cause: Cause? = null)
Link copied to clipboard
data class FederationConflictResponse(val nonFederatingBackends: List<String>)
Link copied to clipboard
data class FederationUnreachableResponse(val unreachableBackends: List<String> = emptyList())
Link copied to clipboard
internal data class GenerateGuestLinkRequest(val password: String?)
Link copied to clipboard
internal data class JoinConversationRequestV0(val code: String, val key: String, val uri: String?)
Link copied to clipboard
internal data class JoinConversationRequestV4(val code: String, val key: String, val uri: String?, val password: String?)
Link copied to clipboard
Link copied to clipboard
data class LegalHoldStatusResponse(val legalHoldStatusDTO: LegalHoldStatusDTO, val clientId: ClientIdDTO?, val lastPreKey: LastPreKeyDTO?)
Link copied to clipboard
Link copied to clipboard
typealias MLSPublicKey = String
Link copied to clipboard
internal data class NewUserDTO(val accentId: Int?, val assets: List<UserAssetDTO>?, val email: String?, val emailCode: String?, val expiresIn: Int?, val invitationCode: String?, val label: String?, val locale: String?, val managedByDTO: ManagedByDTO?, val name: String, val password: String?, val phone: String?, val phoneCode: String?, val ssoID: UserSsoIdDTO?, val newBindingTeamDTO: NewBindingTeamDTO?, val teamCode: String?, val teamID: TeamId?, val uuid: String?)
Link copied to clipboard
typealias NonQualifiedConversationId = String
Link copied to clipboard
typealias NonQualifiedUserId = String
Link copied to clipboard
data class PaginationRequest(val pagingState: String?, val size: Int? = null)
Link copied to clipboard
data class ProxyCredentialsDTO(val username: String?, val password: String?)
Link copied to clipboard
data class PushTokenBody(val senderId: String, val client: String, val token: String, val transport: String)
Link copied to clipboard
data class QualifiedHandle(val domain: String, val handle: String)
Link copied to clipboard
data class QualifiedID(val value: String, val domain: String)
Link copied to clipboard
value class RefreshTokenDTO(val value: String)
Link copied to clipboard
internal object RefreshTokenProperties
Link copied to clipboard
data class SelfUserDTO(val id: UserId, val name: String, val handle: String?, val teamId: TeamId?, val accentId: Int, val assets: List<UserAssetDTO>, val deleted: Boolean?, val email: String?, val expiresAt: String?, val nonQualifiedId: NonQualifiedUserId, val service: ServiceDTO?, val supportedProtocols: List<SupportedProtocolDTO>?, val locale: String, val managedByDTO: ManagedByDTO?, val phone: String?, val ssoID: UserSsoIdDTO?) : UserDTO
Link copied to clipboard
Link copied to clipboard
data class ServiceDetailDTO(val enabled: Boolean, val assets: List<UserAssetDTO>?, val id: String, val provider: String, val name: String, val description: String, val summary: String, val tags: List<String>)
Link copied to clipboard
data class ServiceDetailResponse(val hasMore: Boolean, val services: List<ServiceDetailDTO>)
Link copied to clipboard
data class ServiceDTO(val id: String, val provider: String)
Link copied to clipboard
data class SessionDTO(val userId: QualifiedID, val tokenType: String, val accessToken: String, val refreshToken: String, val cookieLabel: String?)
Link copied to clipboard
typealias SubconversationId = String
Link copied to clipboard
Link copied to clipboard
data class TeamDTO(val creator: String, val icon: String, val name: String, val id: TeamId, val iconKey: String?, val binding: Boolean?)
Link copied to clipboard
typealias TeamId = String
Link copied to clipboard
data class UpdateEmailRequest(val email: String)
Link copied to clipboard
data class UserAssetDTO(val key: String, val size: AssetSizeDTO?, val type: UserAssetTypeDTO)
Link copied to clipboard
Link copied to clipboard
sealed class UserDTO
Link copied to clipboard
typealias UserId = QualifiedID
Link copied to clipboard
data class UserProfileDTO(val id: UserId, val name: String, val handle: String?, val teamId: TeamId?, val accentId: Int, val assets: List<UserAssetDTO>, val deleted: Boolean?, val email: String?, val expiresAt: String?, val nonQualifiedId: NonQualifiedUserId, val service: ServiceDTO?, val supportedProtocols: List<SupportedProtocolDTO>?, val legalHoldStatus: LegalHoldStatusDTO) : UserDTO
Link copied to clipboard
data class UserSsoIdDTO(val scimExternalId: String?, val subject: String?, val tenant: String?)

Functions

Link copied to clipboard
fun List<UserAssetDTO>?.getCompleteAssetOrNull(): <Error class: unknown class>
Link copied to clipboard
fun List<UserAssetDTO>?.getPreviewAssetOrNull(): <Error class: unknown class>
Link copied to clipboard
fun UserProfileDTO.isTeamMember(selfUserTeamId: String?, selfUserDomain: String?): Boolean
Link copied to clipboard
internal fun AccessTokenDTO.toSessionDto(refreshToken: String, qualifiedID: QualifiedID, cookieLabel: String?): SessionDTO