schemas added
parent
b6735ee54d
commit
8b1fd3445a
|
@ -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
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue