schemas added

main
Uriel Fanelli 2025-05-11 12:36:10 +02:00
parent b6735ee54d
commit 8b1fd3445a
21 changed files with 433 additions and 0 deletions

15
priv/accept.json Normal file
View File

@ -0,0 +1,15 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "ActivityPub Accept/Reject",
"type": "object",
"required": ["@context", "type", "id", "actor", "object"],
"properties": {
"@context": { "type": "string" },
"type": { "type": "string", "enum": ["Accept", "Reject"] },
"id": { "type": "string" },
"actor": { "type": "string" },
"object": { "type": "object" }
},
"additionalProperties": true
}

23
priv/activity.json Normal file
View File

@ -0,0 +1,23 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "ActivityPub Activity",
"type": "object",
"required": ["@context", "type", "id", "actor", "object"],
"properties": {
"@context": { "type": "string" },
"type": { "type": "string" },
"id": { "type": "string" },
"actor": { "type": "string" },
"object": { "type": ["string", "object"] },
"to": {
"type": "array",
"items": { "type": "string" }
},
"cc": {
"type": "array",
"items": { "type": "string" }
}
},
"additionalProperties": true
}

15
priv/announce.json Normal file
View File

@ -0,0 +1,15 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "ActivityPub Like/Announce",
"type": "object",
"required": ["@context", "type", "id", "actor", "object"],
"properties": {
"@context": { "type": "string" },
"type": { "type": "string", "enum": ["Like", "Announce"] },
"id": { "type": "string" },
"actor": { "type": "string" },
"object": { "type": "string" }
},
"additionalProperties": true
}

28
priv/article.json Normal file
View File

@ -0,0 +1,28 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "ActivityPub Article",
"type": "object",
"required": ["@context", "type", "id", "attributedTo", "content"],
"properties": {
"@context": { "type": "string" },
"type": { "type": "string", "enum": ["Article"] },
"id": { "type": "string" },
"attributedTo": { "type": "string" },
"content": { "type": "string" },
"name": { "type": "string" },
"summary": { "type": "string" },
"published": { "type": "string" },
"updated": { "type": "string" },
"to": {
"type": "array",
"items": { "type": "string" }
},
"cc": {
"type": "array",
"items": { "type": "string" }
},
"inReplyTo": { "type": "string" }
},
"additionalProperties": true
}

22
priv/audio.json Normal file
View File

@ -0,0 +1,22 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "ActivityPub Audio",
"type": "object",
"required": ["type", "id", "url"],
"properties": {
"type": { "type": "string", "enum": ["Audio"] },
"id": { "type": "string" },
"url": { "type": "string" },
"mediaType": { "type": "string" },
"name": { "type": "string" },
"summary": { "type": "string" },
"duration": { "type": "string" },
"attributedTo": { "type": "string" },
"published": { "type": "string" },
"updated": { "type": "string" },
"to": { "type": "array", "items": { "type": "string" } },
"cc": { "type": "array", "items": { "type": "string" } }
},
"additionalProperties": true
}

23
priv/community.json Normal file
View File

@ -0,0 +1,23 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "ActivityPub Community",
"type": "object",
"required": ["@context", "type", "id", "name"],
"properties": {
"@context": { "type": "string" },
"type": { "type": "string", "enum": ["Community"] },
"id": { "type": "string" },
"name": { "type": "string" },
"summary": { "type": "string" },
"published": { "type": "string" },
"updated": { "type": "string" },
"icon": { "type": "object" },
"url": { "type": "string" },
"inbox": { "type": "string" },
"outbox": { "type": "string" },
"preferredUsername": { "type": "string" },
"attributedTo": { "type": "string" }
},
"additionalProperties": true
}

15
priv/create.json Normal file
View File

@ -0,0 +1,15 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "ActivityPub Create",
"type": "object",
"required": ["@context", "type", "id", "actor", "object"],
"properties": {
"@context": { "type": "string" },
"type": { "type": "string", "enum": ["Create"] },
"id": { "type": "string" },
"actor": { "type": "string" },
"object": { "type": "object" }
},
"additionalProperties": true
}

15
priv/delete.json Normal file
View File

@ -0,0 +1,15 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "ActivityPub Delete",
"type": "object",
"required": ["@context", "type", "id", "actor", "object"],
"properties": {
"@context": { "type": "string" },
"type": { "type": "string", "enum": ["Delete"] },
"id": { "type": "string" },
"actor": { "type": "string" },
"object": { "type": ["object", "string"] }
},
"additionalProperties": true
}

29
priv/event.json Normal file
View File

@ -0,0 +1,29 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "ActivityPub Event",
"type": "object",
"required": ["@context", "type", "id", "attributedTo", "name", "startTime"],
"properties": {
"@context": { "type": "string" },
"type": { "type": "string", "enum": ["Event"] },
"id": { "type": "string" },
"attributedTo": { "type": "string" },
"name": { "type": "string" },
"startTime": { "type": "string" },
"endTime": { "type": "string" },
"content": { "type": "string" },
"summary": { "type": "string" },
"published": { "type": "string" },
"updated": { "type": "string" },
"to": {
"type": "array",
"items": { "type": "string" }
},
"cc": {
"type": "array",
"items": { "type": "string" }
}
},
"additionalProperties": true
}

14
priv/follow.json Normal file
View File

@ -0,0 +1,14 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "ActivityPub Follow",
"type": "object",
"required": ["@context", "type", "id", "actor", "object"],
"properties": {
"@context": { "type": "string" },
"type": { "type": "string", "enum": ["Follow"] },
"id": { "type": "string" },
"actor": { "type": "string" },
"object": { "type": "string" }
},
"additionalProperties": true
}

23
priv/group.json Normal file
View File

@ -0,0 +1,23 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "ActivityPub Group",
"type": "object",
"required": ["@context", "type", "id", "name"],
"properties": {
"@context": { "type": "string" },
"type": { "type": "string", "enum": ["Group"] },
"id": { "type": "string" },
"name": { "type": "string" },
"summary": { "type": "string" },
"published": { "type": "string" },
"updated": { "type": "string" },
"icon": { "type": "object" },
"url": { "type": "string" },
"inbox": { "type": "string" },
"outbox": { "type": "string" },
"preferredUsername": { "type": "string" },
"attributedTo": { "type": "string" }
},
"additionalProperties": true
}

19
priv/image.json Normal file
View File

@ -0,0 +1,19 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "ActivityPub Image",
"type": "object",
"required": ["type", "id", "url"],
"properties": {
"type": { "type": "string", "enum": ["Image"] },
"id": { "type": "string" },
"url": { "type": "string" },
"mediaType": { "type": "string" },
"name": { "type": "string" },
"summary": { "type": "string" },
"height": { "type": "integer" },
"width": { "type": "integer" },
"attributedTo": { "type": "string" }
},
"additionalProperties": true
}

15
priv/like.json Normal file
View File

@ -0,0 +1,15 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "ActivityPub Like/Announce",
"type": "object",
"required": ["@context", "type", "id", "actor", "object"],
"properties": {
"@context": { "type": "string" },
"type": { "type": "string", "enum": ["Like", "Announce"] },
"id": { "type": "string" },
"actor": { "type": "string" },
"object": { "type": "string" }
},
"additionalProperties": true
}

27
priv/page.json Normal file
View File

@ -0,0 +1,27 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "ActivityPub Page",
"type": "object",
"required": ["@context", "type", "id", "attributedTo", "content"],
"properties": {
"@context": { "type": "string" },
"type": { "type": "string", "enum": ["Page"] },
"id": { "type": "string" },
"attributedTo": { "type": "string" },
"content": { "type": "string" },
"to": {
"type": "array",
"items": { "type": "string" }
},
"cc": {
"type": "array",
"items": { "type": "string" }
},
"inReplyTo": { "type": "string" },
"published": { "type": "string" },
"updated": { "type": "string" },
"summary": { "type": "string" }
},
"additionalProperties": true
}

16
priv/person.json Normal file
View File

@ -0,0 +1,16 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "ActivityPub Person",
"type": "object",
"required": ["@context", "type", "id"],
"properties": {
"@context": { "type": "string" },
"type": { "type": "string", "enum": ["Person"] },
"id": { "type": "string" },
"preferredUsername": { "type": "string" },
"inbox": { "type": "string" },
"outbox": { "type": "string" }
},
"additionalProperties": true
}

24
priv/post.json Normal file
View File

@ -0,0 +1,24 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "ActivityPub Post",
"type": "object",
"required": ["@context", "type", "id", "attributedTo", "content"],
"properties": {
"@context": { "type": "string" },
"type": { "type": "string", "enum": ["Post"] },
"id": { "type": "string" },
"attributedTo": { "type": "string" },
"content": { "type": "string" },
"name": { "type": "string" },
"published": { "type": "string" },
"updated": { "type": "string" },
"to": { "type": "array", "items": { "type": "string" } },
"cc": { "type": "array", "items": { "type": "string" } },
"inReplyTo": { "type": "string" },
"url": { "type": "string" },
"summary": { "type": "string" },
"community": { "type": "string" }
},
"additionalProperties": true
}

36
priv/question.json Normal file
View File

@ -0,0 +1,36 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "ActivityPub Question",
"type": "object",
"required": ["@context", "type", "id", "attributedTo", "content"],
"properties": {
"@context": { "type": "string" },
"type": { "type": "string", "enum": ["Question"] },
"id": { "type": "string" },
"attributedTo": { "type": "string" },
"content": { "type": "string" },
"to": {
"type": "array",
"items": { "type": "string" }
},
"cc": {
"type": "array",
"items": { "type": "string" }
},
"inReplyTo": { "type": "string" },
"published": { "type": "string" },
"updated": { "type": "string" },
"summary": { "type": "string" },
"oneOf": {
"type": "array",
"items": { "type": "string" }
},
"anyOf": {
"type": "array",
"items": { "type": "string" }
},
"closed": { "type": ["string", "boolean"] }
},
"additionalProperties": true
}

15
priv/reject.json Normal file
View File

@ -0,0 +1,15 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "ActivityPub Accept/Reject",
"type": "object",
"required": ["@context", "type", "id", "actor", "object"],
"properties": {
"@context": { "type": "string" },
"type": { "type": "string", "enum": ["Accept", "Reject"] },
"id": { "type": "string" },
"actor": { "type": "string" },
"object": { "type": "object" }
},
"additionalProperties": true
}

15
priv/undo.json Normal file
View File

@ -0,0 +1,15 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "ActivityPub Undo",
"type": "object",
"required": ["@context", "type", "id", "actor", "object"],
"properties": {
"@context": { "type": "string" },
"type": { "type": "string", "enum": ["Undo"] },
"id": { "type": "string" },
"actor": { "type": "string" },
"object": { "type": ["object", "string"] }
},
"additionalProperties": true
}

15
priv/update.json Normal file
View File

@ -0,0 +1,15 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "ActivityPub Update",
"type": "object",
"required": ["@context", "type", "id", "actor", "object"],
"properties": {
"@context": { "type": "string" },
"type": { "type": "string", "enum": ["Update"] },
"id": { "type": "string" },
"actor": { "type": "string" },
"object": { "type": "object" }
},
"additionalProperties": true
}

29
priv/video.json Normal file
View File

@ -0,0 +1,29 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "ActivityPub Video",
"type": "object",
"required": ["@context", "type", "id", "attributedTo", "content"],
"properties": {
"@context": { "type": "string" },
"type": { "type": "string", "enum": ["Video"] },
"id": { "type": "string" },
"attributedTo": { "type": "string" },
"content": { "type": "string" },
"name": { "type": "string" },
"summary": { "type": "string" },
"published": { "type": "string" },
"updated": { "type": "string" },
"duration": { "type": "string" },
"url": { "type": "string" },
"to": {
"type": "array",
"items": { "type": "string" }
},
"cc": {
"type": "array",
"items": { "type": "string" }
}
},
"additionalProperties": true
}