feat: initial commit

This commit is contained in:
l.weber 2025-12-05 12:20:05 +01:00
commit a161b86c9a
705 changed files with 288162 additions and 0 deletions

View file

@ -0,0 +1,45 @@
// Package gotosocial contains terms for the GoToSocial namespace.
package gotosocial
import (
_ "embed"
)
//go:embed context.jsonld
var ContextDocument []byte
// IRI is the remote context IRI.
const IRI = "https://gotosocial.org/ns"
// Namespace is the IRI prefix used for terms defined in this namespace.
const Namespace = IRI + "#"
const (
// Always is an IRI, either as a string or as an object with an
// id property.
Always = Namespace + "always"
// ApprovalRequired is an IRI, either as a string or as an object with an
// id property.
ApprovalRequired = Namespace + "approvalRequired"
// ApprovedBy is an IRI, either as a string or as an object with an
// id property.
ApprovedBy = Namespace + "approvedBy"
// CanAnnounce is an IRI, either as a string or as an object with an
// id property.
CanAnnounce = Namespace + "canAnnounce"
// CanLike is an IRI, either as a string or as an object with an
// id property.
CanLike = Namespace + "canLike"
// CanReply is an IRI, either as a string or as an object with an
// id property.
CanReply = Namespace + "canReply"
// InteractionPolicy is an IRI, either as a string or as an object with an
// id property.
InteractionPolicy = Namespace + "interactionPolicy"
// TypeAnnounceApproval is a possible value for the type property.
TypeAnnounceApproval = Namespace + "AnnounceApproval"
// TypeLikeApproval is a possible value for the type property.
TypeLikeApproval = Namespace + "LikeApproval"
// TypeReplyApproval is a possible value for the type property.
TypeReplyApproval = Namespace + "ReplyApproval"
)

View file

@ -0,0 +1,36 @@
{
"@context": {
"gts": "https://gotosocial.org/ns#",
"LikeApproval": "gts:LikeApproval",
"ReplyApproval": "gts:ReplyApproval",
"AnnounceApproval": "gts:AnnounceApproval",
"interactionPolicy": {
"@id": "gts:interactionPolicy",
"@type": "@id"
},
"canLike": {
"@id": "gts:canLike",
"@type": "@id"
},
"canReply": {
"@id": "gts:canReply",
"@type": "@id"
},
"canAnnounce": {
"@id": "gts:canAnnounce",
"@type": "@id"
},
"always": {
"@id": "gts:always",
"@type": "@id"
},
"approvalRequired": {
"@id": "gts:approvalRequired",
"@type": "@id"
},
"approvedBy": {
"@id": "gts:approvedBy",
"@type": "@id"
}
}
}