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: [
|
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']
|
||||||
}
|
}
|
||||||
|
|
|
@ -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']
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -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']
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -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']
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -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']
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -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']
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -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']
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -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']
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -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']
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -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: []
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -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']
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -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']
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -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']
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -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']
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -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']
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -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']
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -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']
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -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']
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -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']
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -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']
|
||||||
}]
|
}]
|
||||||
|
|
|
@ -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: []
|
||||||
}
|
}]
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue