1
- from typing import List , Optional , Any , Dict , Union
1
+ from typing import Any , Dict , List , Optional , Union
2
2
3
- from aleph_message .models import AlephMessage , BaseMessage , ItemHash , ChainRef
3
+ from aleph_message .models import AlephMessage , BaseMessage , ChainRef , ItemHash
4
4
from pydantic import BaseModel , Field
5
5
6
6
@@ -23,16 +23,25 @@ class Post(BaseMessage):
23
23
A post is a type of message that can be updated. Over the get_posts API
24
24
we get the latest version of a post.
25
25
"""
26
+
26
27
hash : ItemHash = Field (description = "Hash of the content (sha256 by default)" )
27
- original_item_hash : ItemHash = Field (description = "Hash of the original content (sha256 by default)" )
28
+ original_item_hash : ItemHash = Field (
29
+ description = "Hash of the original content (sha256 by default)"
30
+ )
28
31
original_signature : Optional [str ] = Field (
29
32
description = "Cryptographic signature of the original message by the sender"
30
33
)
31
- original_type : str = Field (description = "The original, user-generated 'content-type' of the POST message" )
32
- content : Dict [str , Any ] = Field (description = "The content.content of the POST message" )
34
+ original_type : str = Field (
35
+ description = "The original, user-generated 'content-type' of the POST message"
36
+ )
37
+ content : Dict [str , Any ] = Field (
38
+ description = "The content.content of the POST message"
39
+ )
33
40
type : str = Field (description = "The content.type of the POST message" )
34
41
address : str = Field (description = "The address of the sender of the POST message" )
35
- ref : Optional [Union [str , ChainRef ]] = Field (description = "Other message referenced by this one" )
42
+ ref : Optional [Union [str , ChainRef ]] = Field (
43
+ description = "Other message referenced by this one"
44
+ )
36
45
37
46
38
47
class PostsResponse (PaginationResponse ):
0 commit comments