Manually approves followers (#146)

* update go-fed

* update go-fed

* manuallyapprovesfollowers

* serialize manuallyApprovesFollowers
This commit is contained in:
tobi 2021-08-23 12:46:05 +02:00 committed by GitHub
commit 071eca20ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 931 additions and 308 deletions

View file

@ -0,0 +1,53 @@
// Code generated by astool. DO NOT EDIT.
package vocab
import "net/url"
// Indicates that the actor manually approves Follow activities and that an
// automatic Accept should not be expected.
type ActivityStreamsManuallyApprovesFollowersProperty interface {
// Clear ensures no value of this property is set. Calling
// IsXMLSchemaBoolean afterwards will return false.
Clear()
// Get returns the value of this property. When IsXMLSchemaBoolean returns
// false, Get will return any arbitrary value.
Get() bool
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return any arbitrary value.
GetIRI() *url.URL
// HasAny returns true if the value or IRI is set.
HasAny() bool
// IsIRI returns true if this property is an IRI.
IsIRI() bool
// IsXMLSchemaBoolean returns true if this property is set and not an IRI.
IsXMLSchemaBoolean() bool
// JSONLDContext returns the JSONLD URIs required in the context string
// for this property and the specific values that are set. The value
// in the map is the alias used to import the property's value or
// values.
JSONLDContext() map[string]string
// KindIndex computes an arbitrary value for indexing this kind of value.
// This is a leaky API detail only for folks looking to replace the
// go-fed implementation. Applications should not use this method.
KindIndex() int
// LessThan compares two instances of this property with an arbitrary but
// stable comparison. Applications should not use this because it is
// only meant to help alternative implementations to go-fed to be able
// to normalize nonfunctional properties.
LessThan(o ActivityStreamsManuallyApprovesFollowersProperty) bool
// Name returns the name of this property: "manuallyApprovesFollowers".
Name() string
// Serialize converts this into an interface representation suitable for
// marshalling into a text or binary format. Applications should not
// need this function as most typical use cases serialize types
// instead of individual properties. It is exposed for alternatives to
// go-fed implementations to use.
Serialize() (interface{}, error)
// Set sets the value of this property. Calling IsXMLSchemaBoolean
// afterwards will return true.
Set(v bool)
// SetIRI sets the value of this property. Calling IsIRI afterwards will
// return true.
SetIRI(v *url.URL)
}

View file

@ -14,15 +14,15 @@ import "net/url"
// "https://www.w3.org/ns/activitystreams",
// "https://forgefed.peers.community/ns"
// ],
// "attributedTo": "https://example.dev/bob",
// "context": "https://example.dev/alice/myrepo",
// "attributedTo": "https://example.org/bob",
// "context": "https://example.org/alice/myrepo",
// "created": "2019-07-11T12:34:56Z",
// "description": {
// "content": "It's about time people can install on their computers!",
// "mediaType": "text/plain"
// },
// "hash": "109ec9a09c7df7fec775d2ba0b9d466e5643ec8c",
// "id": "https://example.dev/alice/myrepo/commits/109ec9a09c7df7fec775d2ba0b9d466e5643ec8c",
// "id": "https://example.org/alice/myrepo/commits/109ec9a09c7df7fec775d2ba0b9d466e5643ec8c",
// "summary": "Add an installation script, fixes issue #89",
// "type": "Commit"
// }

View file

@ -13,8 +13,8 @@ import "net/url"
// "https://www.w3.org/ns/activitystreams",
// "https://forgefed.peers.community/ns"
// ],
// "context": "https://example.dev/luke/myrepo",
// "id": "https://example.dev/luke/myrepo/branches/master",
// "context": "https://example.org/luke/myrepo",
// "id": "https://example.org/luke/myrepo/branches/master",
// "name": "master",
// "ref": "refs/heads/master",
// "type": "Branch"

View file

@ -73,6 +73,10 @@ type ActivityStreamsApplication interface {
// GetActivityStreamsLocation returns the "location" property if it
// exists, and nil otherwise.
GetActivityStreamsLocation() ActivityStreamsLocationProperty
// GetActivityStreamsManuallyApprovesFollowers returns the
// "manuallyApprovesFollowers" property if it exists, and nil
// otherwise.
GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty
// GetActivityStreamsMediaType returns the "mediaType" property if it
// exists, and nil otherwise.
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
@ -212,6 +216,9 @@ type ActivityStreamsApplication interface {
SetActivityStreamsLikes(i ActivityStreamsLikesProperty)
// SetActivityStreamsLocation sets the "location" property.
SetActivityStreamsLocation(i ActivityStreamsLocationProperty)
// SetActivityStreamsManuallyApprovesFollowers sets the
// "manuallyApprovesFollowers" property.
SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty)
// SetActivityStreamsMediaType sets the "mediaType" property.
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
// SetActivityStreamsName sets the "name" property.

View file

@ -73,6 +73,10 @@ type ActivityStreamsGroup interface {
// GetActivityStreamsLocation returns the "location" property if it
// exists, and nil otherwise.
GetActivityStreamsLocation() ActivityStreamsLocationProperty
// GetActivityStreamsManuallyApprovesFollowers returns the
// "manuallyApprovesFollowers" property if it exists, and nil
// otherwise.
GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty
// GetActivityStreamsMediaType returns the "mediaType" property if it
// exists, and nil otherwise.
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
@ -211,6 +215,9 @@ type ActivityStreamsGroup interface {
SetActivityStreamsLikes(i ActivityStreamsLikesProperty)
// SetActivityStreamsLocation sets the "location" property.
SetActivityStreamsLocation(i ActivityStreamsLocationProperty)
// SetActivityStreamsManuallyApprovesFollowers sets the
// "manuallyApprovesFollowers" property.
SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty)
// SetActivityStreamsMediaType sets the "mediaType" property.
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
// SetActivityStreamsName sets the "name" property.

View file

@ -73,6 +73,10 @@ type ActivityStreamsOrganization interface {
// GetActivityStreamsLocation returns the "location" property if it
// exists, and nil otherwise.
GetActivityStreamsLocation() ActivityStreamsLocationProperty
// GetActivityStreamsManuallyApprovesFollowers returns the
// "manuallyApprovesFollowers" property if it exists, and nil
// otherwise.
GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty
// GetActivityStreamsMediaType returns the "mediaType" property if it
// exists, and nil otherwise.
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
@ -212,6 +216,9 @@ type ActivityStreamsOrganization interface {
SetActivityStreamsLikes(i ActivityStreamsLikesProperty)
// SetActivityStreamsLocation sets the "location" property.
SetActivityStreamsLocation(i ActivityStreamsLocationProperty)
// SetActivityStreamsManuallyApprovesFollowers sets the
// "manuallyApprovesFollowers" property.
SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty)
// SetActivityStreamsMediaType sets the "mediaType" property.
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
// SetActivityStreamsName sets the "name" property.

View file

@ -73,6 +73,10 @@ type ActivityStreamsPerson interface {
// GetActivityStreamsLocation returns the "location" property if it
// exists, and nil otherwise.
GetActivityStreamsLocation() ActivityStreamsLocationProperty
// GetActivityStreamsManuallyApprovesFollowers returns the
// "manuallyApprovesFollowers" property if it exists, and nil
// otherwise.
GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty
// GetActivityStreamsMediaType returns the "mediaType" property if it
// exists, and nil otherwise.
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
@ -211,6 +215,9 @@ type ActivityStreamsPerson interface {
SetActivityStreamsLikes(i ActivityStreamsLikesProperty)
// SetActivityStreamsLocation sets the "location" property.
SetActivityStreamsLocation(i ActivityStreamsLocationProperty)
// SetActivityStreamsManuallyApprovesFollowers sets the
// "manuallyApprovesFollowers" property.
SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty)
// SetActivityStreamsMediaType sets the "mediaType" property.
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
// SetActivityStreamsName sets the "name" property.

View file

@ -73,6 +73,10 @@ type ActivityStreamsService interface {
// GetActivityStreamsLocation returns the "location" property if it
// exists, and nil otherwise.
GetActivityStreamsLocation() ActivityStreamsLocationProperty
// GetActivityStreamsManuallyApprovesFollowers returns the
// "manuallyApprovesFollowers" property if it exists, and nil
// otherwise.
GetActivityStreamsManuallyApprovesFollowers() ActivityStreamsManuallyApprovesFollowersProperty
// GetActivityStreamsMediaType returns the "mediaType" property if it
// exists, and nil otherwise.
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
@ -212,6 +216,9 @@ type ActivityStreamsService interface {
SetActivityStreamsLikes(i ActivityStreamsLikesProperty)
// SetActivityStreamsLocation sets the "location" property.
SetActivityStreamsLocation(i ActivityStreamsLocationProperty)
// SetActivityStreamsManuallyApprovesFollowers sets the
// "manuallyApprovesFollowers" property.
SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty)
// SetActivityStreamsMediaType sets the "mediaType" property.
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
// SetActivityStreamsName sets the "name" property.

View file

@ -11,8 +11,8 @@ package vocab
// "https://www.w3.org/ns/activitystreams",
// "https://forgefed.peers.community/ns"
// ],
// "context": "https://example.dev/luke/myrepo",
// "id": "https://example.dev/luke/myrepo/branches/master",
// "context": "https://example.org/luke/myrepo",
// "id": "https://example.org/luke/myrepo/branches/master",
// "name": "master",
// "ref": "refs/heads/master",
// "type": "Branch"

View file

@ -13,17 +13,17 @@ package vocab
// "https://www.w3.org/ns/activitystreams",
// "https://forgefed.peers.community/ns"
// ],
// "attributedTo": "https://example.dev/bob",
// "attributedTo": "https://example.org/bob",
// "committed": "2019-07-26T23:45:01Z",
// "committedBy": "https://example.dev/alice",
// "context": "https://example.dev/alice/myrepo",
// "committedBy": "https://example.org/alice",
// "context": "https://example.org/alice/myrepo",
// "created": "2019-07-11T12:34:56Z",
// "description": {
// "content": "It's about time people can install on their computers!",
// "mediaType": "text/plain"
// },
// "hash": "109ec9a09c7df7fec775d2ba0b9d466e5643ec8c",
// "id": "https://example.dev/alice/myrepo/commits/109ec9a09c7df7fec775d2ba0b9d466e5643ec8c",
// "id": "https://example.org/alice/myrepo/commits/109ec9a09c7df7fec775d2ba0b9d466e5643ec8c",
// "summary": "Add an installation script, fixes issue #89",
// "type": "Commit"
// }

View file

@ -9,17 +9,17 @@ package vocab
// "https://www.w3.org/ns/activitystreams",
// "https://forgefed.peers.community/ns"
// ],
// "actor": "https://example.dev/aviva",
// "context": "https://example.dev/aviva/myproject",
// "id": "https://example.dev/aviva/outbox/reBGo",
// "actor": "https://example.org/aviva",
// "context": "https://example.org/aviva/myproject",
// "id": "https://example.org/aviva/outbox/reBGo",
// "object": {
// "items": [
// {
// "attributedTo": "https://example.dev/aviva",
// "context": "https://example.dev/aviva/myproject",
// "attributedTo": "https://example.org/aviva",
// "context": "https://example.org/aviva/myproject",
// "created": "2019-11-03T13:43:59Z",
// "hash": "d96596230322716bd6f87a232a648ca9822a1c20",
// "id": "https://example.dev/aviva/myproject/commits/d96596230322716bd6f87a232a648ca9822a1c20",
// "id": "https://example.org/aviva/myproject/commits/d96596230322716bd6f87a232a648ca9822a1c20",
// "summary": "Provide hints in sign-up form fields",
// "type": "Commit"
// }
@ -29,12 +29,12 @@ package vocab
// },
// "summary": "\u003cp\u003eAviva pushed a commit to
// myproject\u003c/p\u003e",
// "target": "https://example.dev/aviva/myproject/branches/master",
// "target": "https://example.org/aviva/myproject/branches/master",
// "to": [
// "https://example.dev/aviva/followers",
// "https://example.dev/aviva/myproject",
// "https://example.dev/aviva/myproject/team",
// "https://example.dev/aviva/myproject/followers"
// "https://example.org/aviva/followers",
// "https://example.org/aviva/myproject",
// "https://example.org/aviva/myproject/team",
// "https://example.org/aviva/myproject/followers"
// ],
// "type": "Push"
// }

View file

@ -11,12 +11,12 @@ package vocab
// "https://www.w3.org/ns/activitystreams",
// "https://forgefed.peers.community/ns"
// ],
// "assignedTo": "https://example.dev/alice",
// "attributedTo": "https://dev.community/bob",
// "assignedTo": "https://example.org/alice",
// "attributedTo": "https://example.com/bob",
// "content": "\u003cp\u003ePlease fix.
// \u003ci\u003eEverything\u003c/i\u003e is broken!\u003c/p\u003e",
// "context": "https://example.dev/alice/myrepo",
// "id": "https://example.dev/alice/myrepo/issues/42",
// "context": "https://example.org/alice/myrepo",
// "id": "https://example.org/alice/myrepo/issues/42",
// "isResolved": false,
// "mediaType": "text/html",
// "source": {

View file

@ -12,12 +12,12 @@ package vocab
// "https://www.w3.org/ns/activitystreams",
// "https://forgefed.peers.community/ns"
// ],
// "attributedTo": "https://example.dev/alice",
// "id": "https://example.dev/ticket-deps/2342593",
// "object": "https://dev.community/bob/coolproj/issues/85",
// "attributedTo": "https://example.org/alice",
// "id": "https://example.org/ticket-deps/2342593",
// "object": "https://example.com/bob/coolproj/issues/85",
// "published": "2019-07-11T12:34:56Z",
// "relationship": "dependsOn",
// "subject": "https://example.dev/alice/myproj/issues/42",
// "subject": "https://example.org/alice/myproj/issues/42",
// "summary": "Alice's ticket depends on Bob's ticket",
// "type": [
// "Relationship",