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: [
{
format: E.ClaimFormat.FINGERPRINT,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.CONTAINS,
path: ['summary']
},
{
format: E.ClaimFormat.FINGERPRINT,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.CONTAINS,
path: ['attachment', 'value']
},
{
format: E.ClaimFormat.FINGERPRINT,
encoding: E.EntityEncodingFormat.PLAIN,
relation: E.ClaimRelation.CONTAINS,
path: ['content']
}

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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