feat: Add EntityEncodingFormat to claim defs

This commit is contained in:
Yarmo Mackenbach 2023-03-12 21:44:32 +01:00
parent 650c389ae2
commit 166d8d5cf3
21 changed files with 28 additions and 7 deletions

View file

@ -46,16 +46,19 @@ const processURI = (uri) => {
claim: [ claim: [
{ {
format: E.ClaimFormat.FINGERPRINT, format: E.ClaimFormat.FINGERPRINT,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.CONTAINS, relation: E.ClaimRelation.CONTAINS,
path: ['summary'] path: ['summary']
}, },
{ {
format: E.ClaimFormat.FINGERPRINT, format: E.ClaimFormat.FINGERPRINT,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.CONTAINS, relation: E.ClaimRelation.CONTAINS,
path: ['attachment', 'value'] path: ['attachment', 'value']
}, },
{ {
format: E.ClaimFormat.FINGERPRINT, format: E.ClaimFormat.FINGERPRINT,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.CONTAINS, relation: E.ClaimRelation.CONTAINS,
path: ['content'] path: ['content']
} }

View file

@ -48,6 +48,7 @@ const processURI = (uri) => {
}, },
claim: [{ claim: [{
format: E.ClaimFormat.URI, format: E.ClaimFormat.URI,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.CONTAINS, relation: E.ClaimRelation.CONTAINS,
path: ['user', 'bio_raw'] path: ['user', 'bio_raw']
}] }]

View file

@ -47,6 +47,7 @@ const processURI = (uri) => {
}, },
claim: [{ claim: [{
format: E.ClaimFormat.URI, format: E.ClaimFormat.URI,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.CONTAINS, relation: E.ClaimRelation.CONTAINS,
path: ['records', 'txt'] path: ['records', 'txt']
}] }]

View file

@ -48,6 +48,7 @@ const processURI = (uri) => {
}, },
claim: [{ claim: [{
format: E.ClaimFormat.URI, format: E.ClaimFormat.URI,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.CONTAINS, relation: E.ClaimRelation.CONTAINS,
path: ['body_markdown'] path: ['body_markdown']
}] }]

View file

@ -48,6 +48,7 @@ const processURI = (uri) => {
}, },
claim: [{ claim: [{
format: E.ClaimFormat.URI, format: E.ClaimFormat.URI,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.EQUALS, relation: E.ClaimRelation.EQUALS,
path: ['description'] path: ['description']
}] }]

View file

@ -48,6 +48,7 @@ const processURI = (uri) => {
}, },
claim: [{ claim: [{
format: E.ClaimFormat.URI, format: E.ClaimFormat.URI,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.EQUALS, relation: E.ClaimRelation.EQUALS,
path: ['description'] path: ['description']
}] }]

View file

@ -48,6 +48,7 @@ const processURI = (uri) => {
}, },
claim: [{ claim: [{
format: E.ClaimFormat.URI, format: E.ClaimFormat.URI,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.CONTAINS, relation: E.ClaimRelation.CONTAINS,
path: ['files', 'openpgp.md', 'content'] path: ['files', 'openpgp.md', 'content']
}] }]

View file

@ -48,6 +48,7 @@ const processURI = (uri) => {
}, },
claim: [{ claim: [{
format: E.ClaimFormat.URI, format: E.ClaimFormat.URI,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.EQUALS, relation: E.ClaimRelation.EQUALS,
path: ['description'] path: ['description']
}] }]

View file

@ -48,6 +48,7 @@ const processURI = (uri) => {
}, },
claim: [{ claim: [{
format: E.ClaimFormat.URI, format: E.ClaimFormat.URI,
encoding: E.EntityEncodingFormat.HTML,
relation: E.ClaimRelation.CONTAINS, relation: E.ClaimRelation.CONTAINS,
path: ['about'] path: ['about']
}] }]

View file

@ -48,6 +48,7 @@ const processURI = (uri) => {
}, },
claim: [{ claim: [{
format: E.ClaimFormat.URI, format: E.ClaimFormat.URI,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.CONTAINS, relation: E.ClaimRelation.CONTAINS,
path: [] path: []
}] }]

View file

@ -48,6 +48,7 @@ const processURI = (uri) => {
}, },
claim: [{ claim: [{
format: E.ClaimFormat.FINGERPRINT, format: E.ClaimFormat.FINGERPRINT,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.CONTAINS, relation: E.ClaimRelation.CONTAINS,
path: ['them', 'public_keys', 'primary', 'key_fingerprint'] path: ['them', 'public_keys', 'primary', 'key_fingerprint']
}] }]

View file

@ -48,6 +48,7 @@ const processURI = (uri) => {
}, },
claim: [{ claim: [{
format: E.ClaimFormat.URI, format: E.ClaimFormat.URI,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.CONTAINS, relation: E.ClaimRelation.CONTAINS,
path: ['statements', 'content'] path: ['statements', 'content']
}] }]

View file

@ -48,6 +48,7 @@ const processURI = (uri) => {
}, },
claim: [{ claim: [{
format: E.ClaimFormat.FINGERPRINT, format: E.ClaimFormat.FINGERPRINT,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.CONTAINS, relation: E.ClaimRelation.CONTAINS,
path: ['profile', 'links'] path: ['profile', 'links']
}] }]

View file

@ -48,6 +48,7 @@ const processURI = (uri) => {
}, },
claim: [{ claim: [{
format: E.ClaimFormat.URI, format: E.ClaimFormat.URI,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.CONTAINS, relation: E.ClaimRelation.CONTAINS,
path: ['about'] path: ['about']
}] }]

View file

@ -64,6 +64,7 @@ const processURI = (uri) => {
}, },
claim: [{ claim: [{
format: E.ClaimFormat.URI, format: E.ClaimFormat.URI,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.CONTAINS, relation: E.ClaimRelation.CONTAINS,
path: ['content', 'body'] path: ['content', 'body']
}] }]

View file

@ -48,6 +48,7 @@ const processURI = (uri) => {
}, },
claim: [{ claim: [{
format: E.ClaimFormat.FINGERPRINT, format: E.ClaimFormat.FINGERPRINT,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.CONTAINS, relation: E.ClaimRelation.CONTAINS,
path: ['socialHandles', 'url'] path: ['socialHandles', 'url']
}] }]

View file

@ -48,6 +48,7 @@ const processURI = (uri) => {
}, },
claim: [{ claim: [{
format: E.ClaimFormat.URI, format: E.ClaimFormat.URI,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.CONTAINS, relation: E.ClaimRelation.CONTAINS,
path: ['data', 'children', 'data', 'selftext'] path: ['data', 'children', 'data', 'selftext']
}] }]

View file

@ -50,6 +50,7 @@ const processURI = (uri) => {
}, },
claim: [{ claim: [{
format: E.ClaimFormat.URI, format: E.ClaimFormat.URI,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.CONTAINS, relation: E.ClaimRelation.CONTAINS,
path: ['items', 'about_me'] path: ['items', 'about_me']
}] }]

View file

@ -48,6 +48,7 @@ const processURI = (uri) => {
}, },
claim: [{ claim: [{
format: E.ClaimFormat.URI, format: E.ClaimFormat.URI,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.EQUALS, relation: E.ClaimRelation.EQUALS,
path: ['text'] path: ['text']
}] }]

View file

@ -49,6 +49,7 @@ const processURI = (uri) => {
}, },
claim: [{ claim: [{
format: E.ClaimFormat.URI, format: E.ClaimFormat.URI,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.CONTAINS, relation: E.ClaimRelation.CONTAINS,
path: ['html'] path: ['html']
}] }]

View file

@ -45,13 +45,12 @@ const processURI = (uri) => {
} }
} }
}, },
claim: [ claim: [{
{
format: E.ClaimFormat.URI, format: E.ClaimFormat.URI,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.CONTAINS, relation: E.ClaimRelation.CONTAINS,
path: [] path: []
} }]
]
} }
} }