diff --git a/src/app_service/common/types.nim b/src/app_service/common/types.nim index 6ca65a8dff..9336e195bf 100644 --- a/src/app_service/common/types.nim +++ b/src/app_service/common/types.nim @@ -1,3 +1,5 @@ +import "json_serialization" + type ContentType* {.pure.} = enum NewMessagesMarker = -3 @@ -92,6 +94,8 @@ type TokenType* {.pure.} = enum Unknown = 4, ENS = 5 +TokenType.configureJsonSerialization(EnumAsNumber) + type RequestToJoinState* {.pure.} = enum None = 0 InProgress