diff --git a/Sources/XXClient/Models/FactType.swift b/Sources/XXClient/Models/FactType.swift
index 96caa0ff9ad7bb1ed326e3621305099eb276fc0a..94c28639ee467d84eebcc546d169b7831313d4c7 100644
--- a/Sources/XXClient/Models/FactType.swift
+++ b/Sources/XXClient/Models/FactType.swift
@@ -1,13 +1,15 @@
 import Foundation
 
 public enum FactType: Equatable {
+  public static let knownTypes: [FactType] = [.username, .email, .phone]
+
   case username
   case email
   case phone
   case other(Int)
+}
 
-  public static let knownTypes: [FactType] = [.username, .email, .phone]
-
+extension FactType: RawRepresentable {
   public init(rawValue: Int) {
     if let known = FactType.knownTypes.first(where: { $0.rawValue == rawValue }) {
       self = known