go-lextwt-encoding/lextwt.avpr
2025-03-26 18:49:42 -06:00

237 lines
11 KiB
Plaintext

{
"namespace": "social.yarn.lextwt",
"protocol": "Twtxt",
"doc": "Protocol Twtxt",
"messages": {
}
"types": [
{
"type": "record",
"name": "registry",
"fields": [
{
"name":"twts",
"type":{
"type":"array",
"items": {
"type": "record",
"name": "twt",
"fields": [
{
"name": "nick",
"type": "string"
},
{
"name": "uri",
"type": "string"
},
{
"name": "created",
"type": "long",
"logicalType": "timestamp-millis"
},
{
"name": "createdZone",
"type": "string"
},
{
"name": "createdOffset",
"type": "int"
},
{
"name": "msg",
"type": {
"type": "array",
"items": {
"name": "elem",
"type": [
"null",
"string",
{
"type": "record",
"name": "linesep",
"fields": []
},
{
"type": "record",
"name": "comment",
"fields": [
{
"name": "comment",
"type": "string"
},
{
"name": "key",
"type": "string"
},
{
"name": "value",
"type": "string"
}
]
},
{
"type": "record",
"name": "mention",
"fields": [
{
"name": "name",
"type": "string"
},
{
"name": "domain",
"type": "string"
},
{
"name": "target",
"type": "string"
}
]
},
{
"type": "record",
"name": "bangmention",
"fields": [
{
"name": "name",
"type": "string"
},
{
"name": "target",
"type": "string"
}
]
},
{
"type": "record",
"name": "hashtag",
"fields": [
{
"name": "tag",
"type": "string"
},
{
"name": "target",
"type": "string"
}
]
},
{
"type": "record",
"name": "subject",
"fields": [
{
"name": "subject",
"type": "string"
},
{
"name": "tag",
"type": "string"
},
{
"name": "target",
"type": "string"
}
]
},
{
"type": "record",
"name": "link",
"fields": [
{
"name": "linkType",
"type": "int",
"logicalType": "int8"
},
{
"name": "text",
"type": "string"
},
{
"name": "target",
"type": "string"
},
{
"name": "title",
"type": "string"
}
]
},
{
"type": "record",
"name": "code",
"fields": [
{
"name": "code",
"type": "string"
},
{
"name": "codetype",
"type": "int",
"logicalType": "int8"
}
]
}
]
}
}
}
]
}
}
},
{
"name": "preamble",
"type": {
"type":"array",
"items": "social.yarn.lextwt.comment"
}
}
]
},
{
"type": "record",
"name": "feed",
"fields": [
{
"name": "twter",
"type": {
"type": "record",
"name": "twter",
"fields": [
{
"name": "nick",
"type": "string"
},
{
"name": "uri",
"type": "string"
}
]
}
},
{
"name": "preamble",
"type": {
"type":"array",
"items": "social.yarn.lextwt.comment"
}
},
{
"name": "twts",
"type": "social.yarn.lextwt.twts"
}
]
}
],
}