class cmd_FILE_WRITE_Schema(UnknownCheckedSchema): path = fields.String(required=True) offset = fields.Int(missing=0, validate=validate.Range(min=0)) content = fields.Base64Bytes(required=True)
class cmd_EVENT_Schema(Schema): event = fields.String(required=True) sender = fields.Base64Bytes(required=True)
class cmd_IDENTITY_LOAD_Schema(UnknownCheckedSchema): id = fields.String(required=True) key = fields.Base64Bytes(required=True) password = fields.String(missing=None)
class HandshakeAnswerSchema(UnknownCheckedSchema): handshake = fields.String(required=True, validate=lambda x: x == 'answer') identity = fields.String(required=True) answer = fields.Base64Bytes(required=True)
class cmd_UPDATE_Schema(UnknownCheckedSchema): id = fields.String(required=True) version = fields.Int(validate=lambda n: n > 1) trust_seed = fields.String(required=True) blob = fields.Base64Bytes(required=True)
class cmd_CREATE_Schema(UnknownCheckedSchema): id = fields.String(missing=None, validate=lambda n: 0 < len(n) <= 32) blob = fields.Base64Bytes(missing=to_jsonb64(b''))
class cmd_UPDATE_Schema(UnknownCheckedSchema): version = fields.Int(validate=lambda n: n > 0) blob = fields.Base64Bytes(required=True)
class cmd_NEW_Schema(UnknownCheckedSchema): recipient = fields.String(required=True) body = fields.Base64Bytes(required=True)