forked from Mirrors/doipjs
feat: Add EntityEncodingFormat to claim defs
This commit is contained in:
parent
650c389ae2
commit
166d8d5cf3
21 changed files with 28 additions and 7 deletions
|
@ -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']
|
||||
}
|
||||
|
|
|
@ -48,6 +48,7 @@ const processURI = (uri) => {
|
|||
},
|
||||
claim: [{
|
||||
format: E.ClaimFormat.URI,
|
||||
encoding: E.EntityEncodingFormat.PLAIN,
|
||||
relation: E.ClaimRelation.CONTAINS,
|
||||
path: ['user', 'bio_raw']
|
||||
}]
|
||||
|
|
|
@ -47,6 +47,7 @@ const processURI = (uri) => {
|
|||
},
|
||||
claim: [{
|
||||
format: E.ClaimFormat.URI,
|
||||
encoding: E.EntityEncodingFormat.PLAIN,
|
||||
relation: E.ClaimRelation.CONTAINS,
|
||||
path: ['records', 'txt']
|
||||
}]
|
||||
|
|
|
@ -48,6 +48,7 @@ const processURI = (uri) => {
|
|||
},
|
||||
claim: [{
|
||||
format: E.ClaimFormat.URI,
|
||||
encoding: E.EntityEncodingFormat.PLAIN,
|
||||
relation: E.ClaimRelation.CONTAINS,
|
||||
path: ['body_markdown']
|
||||
}]
|
||||
|
|
|
@ -48,6 +48,7 @@ const processURI = (uri) => {
|
|||
},
|
||||
claim: [{
|
||||
format: E.ClaimFormat.URI,
|
||||
encoding: E.EntityEncodingFormat.PLAIN,
|
||||
relation: E.ClaimRelation.EQUALS,
|
||||
path: ['description']
|
||||
}]
|
||||
|
|
|
@ -48,6 +48,7 @@ const processURI = (uri) => {
|
|||
},
|
||||
claim: [{
|
||||
format: E.ClaimFormat.URI,
|
||||
encoding: E.EntityEncodingFormat.PLAIN,
|
||||
relation: E.ClaimRelation.EQUALS,
|
||||
path: ['description']
|
||||
}]
|
||||
|
|
|
@ -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']
|
||||
}]
|
||||
|
|
|
@ -48,6 +48,7 @@ const processURI = (uri) => {
|
|||
},
|
||||
claim: [{
|
||||
format: E.ClaimFormat.URI,
|
||||
encoding: E.EntityEncodingFormat.PLAIN,
|
||||
relation: E.ClaimRelation.EQUALS,
|
||||
path: ['description']
|
||||
}]
|
||||
|
|
|
@ -48,6 +48,7 @@ const processURI = (uri) => {
|
|||
},
|
||||
claim: [{
|
||||
format: E.ClaimFormat.URI,
|
||||
encoding: E.EntityEncodingFormat.HTML,
|
||||
relation: E.ClaimRelation.CONTAINS,
|
||||
path: ['about']
|
||||
}]
|
||||
|
|
|
@ -48,6 +48,7 @@ const processURI = (uri) => {
|
|||
},
|
||||
claim: [{
|
||||
format: E.ClaimFormat.URI,
|
||||
encoding: E.EntityEncodingFormat.PLAIN,
|
||||
relation: E.ClaimRelation.CONTAINS,
|
||||
path: []
|
||||
}]
|
||||
|
|
|
@ -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']
|
||||
}]
|
||||
|
|
|
@ -48,6 +48,7 @@ const processURI = (uri) => {
|
|||
},
|
||||
claim: [{
|
||||
format: E.ClaimFormat.URI,
|
||||
encoding: E.EntityEncodingFormat.PLAIN,
|
||||
relation: E.ClaimRelation.CONTAINS,
|
||||
path: ['statements', 'content']
|
||||
}]
|
||||
|
|
|
@ -48,6 +48,7 @@ const processURI = (uri) => {
|
|||
},
|
||||
claim: [{
|
||||
format: E.ClaimFormat.FINGERPRINT,
|
||||
encoding: E.EntityEncodingFormat.PLAIN,
|
||||
relation: E.ClaimRelation.CONTAINS,
|
||||
path: ['profile', 'links']
|
||||
}]
|
||||
|
|
|
@ -48,6 +48,7 @@ const processURI = (uri) => {
|
|||
},
|
||||
claim: [{
|
||||
format: E.ClaimFormat.URI,
|
||||
encoding: E.EntityEncodingFormat.PLAIN,
|
||||
relation: E.ClaimRelation.CONTAINS,
|
||||
path: ['about']
|
||||
}]
|
||||
|
|
|
@ -64,6 +64,7 @@ const processURI = (uri) => {
|
|||
},
|
||||
claim: [{
|
||||
format: E.ClaimFormat.URI,
|
||||
encoding: E.EntityEncodingFormat.PLAIN,
|
||||
relation: E.ClaimRelation.CONTAINS,
|
||||
path: ['content', 'body']
|
||||
}]
|
||||
|
|
|
@ -48,6 +48,7 @@ const processURI = (uri) => {
|
|||
},
|
||||
claim: [{
|
||||
format: E.ClaimFormat.FINGERPRINT,
|
||||
encoding: E.EntityEncodingFormat.PLAIN,
|
||||
relation: E.ClaimRelation.CONTAINS,
|
||||
path: ['socialHandles', 'url']
|
||||
}]
|
||||
|
|
|
@ -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']
|
||||
}]
|
||||
|
|
|
@ -50,6 +50,7 @@ const processURI = (uri) => {
|
|||
},
|
||||
claim: [{
|
||||
format: E.ClaimFormat.URI,
|
||||
encoding: E.EntityEncodingFormat.PLAIN,
|
||||
relation: E.ClaimRelation.CONTAINS,
|
||||
path: ['items', 'about_me']
|
||||
}]
|
||||
|
|
|
@ -48,6 +48,7 @@ const processURI = (uri) => {
|
|||
},
|
||||
claim: [{
|
||||
format: E.ClaimFormat.URI,
|
||||
encoding: E.EntityEncodingFormat.PLAIN,
|
||||
relation: E.ClaimRelation.EQUALS,
|
||||
path: ['text']
|
||||
}]
|
||||
|
|
|
@ -49,6 +49,7 @@ const processURI = (uri) => {
|
|||
},
|
||||
claim: [{
|
||||
format: E.ClaimFormat.URI,
|
||||
encoding: E.EntityEncodingFormat.PLAIN,
|
||||
relation: E.ClaimRelation.CONTAINS,
|
||||
path: ['html']
|
||||
}]
|
||||
|
|
|
@ -45,13 +45,12 @@ const processURI = (uri) => {
|
|||
}
|
||||
}
|
||||
},
|
||||
claim: [
|
||||
{
|
||||
claim: [{
|
||||
format: E.ClaimFormat.URI,
|
||||
encoding: E.EntityEncodingFormat.PLAIN,
|
||||
relation: E.ClaimRelation.CONTAINS,
|
||||
path: []
|
||||
}
|
||||
]
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue