class VlobListVersionsRepSchema(BaseRepSchema): versions = fields.Map( fields.Integer(required=True), fields.Tuple(fields.DateTime(required=True), DeviceIDField(required=True)), required=True, )
class RealmStartReencryptionMaintenanceReqSchema(BaseReqSchema): realm_id = fields.UUID(required=True) encryption_revision = fields.Integer(required=True) timestamp = fields.DateTime(required=True) per_participant_message = fields.Map(UserIDField(), fields.Bytes(required=True), required=True)
class UserSchema(UnknownCheckedSchema): user_id = fields.String(required=True) is_admin = fields.Boolean(required=True) created_on = fields.DateTime(required=True) certified_user = fields.Bytes(required=True) user_certifier = fields.DeviceID(allow_none=True) devices = fields.Map(fields.DeviceName(), fields.Nested(DeviceSchema), required=True)
class VlobPollChangesRepSchema(BaseRepSchema): changes = fields.Map(fields.UUID(), fields.Integer(required=True), required=True) current_checkpoint = fields.Integer(required=True)
class UserGetRepSchema(BaseRepSchema, UserSchema): trustchain = fields.Map(fields.DeviceID(), fields.Nested(DeviceSchema), required=True)