summaryrefslogtreecommitdiff
path: root/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_json_resolver.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2025-04-24 11:20:03 +0200
committerLibravatar GitHub <noreply@github.com>2025-04-24 11:20:03 +0200
commit68ed7aba25e294bf36a4ce0f77e3e6f3fcb4c963 (patch)
tree1441e696d3cdd45596db75df46aeb88f2201a371 /vendor/codeberg.org/superseriousbusiness/activity/streams/gen_json_resolver.go
parent[docs] Mention where to run the command to grant CREATE permissions (#4050) (diff)
downloadgotosocial-68ed7aba25e294bf36a4ce0f77e3e6f3fcb4c963.tar.xz
[chore] Update `activity` to v1.14.0 (#4038)
Diffstat (limited to 'vendor/codeberg.org/superseriousbusiness/activity/streams/gen_json_resolver.go')
-rw-r--r--vendor/codeberg.org/superseriousbusiness/activity/streams/gen_json_resolver.go91
1 files changed, 91 insertions, 0 deletions
diff --git a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_json_resolver.go b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_json_resolver.go
index fc30ea78d..ca0191faf 100644
--- a/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_json_resolver.go
+++ b/vendor/codeberg.org/superseriousbusiness/activity/streams/gen_json_resolver.go
@@ -43,6 +43,10 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) {
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.GoToSocialAnnounceApproval) error:
// Do nothing, this callback has a correct signature.
+ case func(context.Context, vocab.GoToSocialAnnounceAuthorization) error:
+ // Do nothing, this callback has a correct signature.
+ case func(context.Context, vocab.GoToSocialAnnounceRequest) error:
+ // Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsApplication) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsArrive) error:
@@ -59,6 +63,8 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) {
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.GoToSocialCanLike) error:
// Do nothing, this callback has a correct signature.
+ case func(context.Context, vocab.GoToSocialCanQuote) error:
+ // Do nothing, this callback has a correct signature.
case func(context.Context, vocab.GoToSocialCanReply) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsCollection) error:
@@ -109,6 +115,10 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) {
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.GoToSocialLikeApproval) error:
// Do nothing, this callback has a correct signature.
+ case func(context.Context, vocab.GoToSocialLikeAuthorization) error:
+ // Do nothing, this callback has a correct signature.
+ case func(context.Context, vocab.GoToSocialLikeRequest) error:
+ // Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsLink) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsListen) error:
@@ -153,6 +163,10 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, error) {
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.GoToSocialReplyApproval) error:
// Do nothing, this callback has a correct signature.
+ case func(context.Context, vocab.GoToSocialReplyAuthorization) error:
+ // Do nothing, this callback has a correct signature.
+ case func(context.Context, vocab.GoToSocialReplyRequest) error:
+ // Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsService) error:
// Do nothing, this callback has a correct signature.
case func(context.Context, vocab.ActivityStreamsTentativeAccept) error:
@@ -354,6 +368,28 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{})
}
}
return ErrNoCallbackMatch
+ } else if typeString == GoToSocialAlias+"AnnounceAuthorization" {
+ v, err := mgr.DeserializeAnnounceAuthorizationGoToSocial()(m, aliasMap)
+ if err != nil {
+ return err
+ }
+ for _, i := range this.callbacks {
+ if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceAuthorization) error); ok {
+ return fn(ctx, v)
+ }
+ }
+ return ErrNoCallbackMatch
+ } else if typeString == GoToSocialAlias+"AnnounceRequest" {
+ v, err := mgr.DeserializeAnnounceRequestGoToSocial()(m, aliasMap)
+ if err != nil {
+ return err
+ }
+ for _, i := range this.callbacks {
+ if fn, ok := i.(func(context.Context, vocab.GoToSocialAnnounceRequest) error); ok {
+ return fn(ctx, v)
+ }
+ }
+ return ErrNoCallbackMatch
} else if typeString == ActivityStreamsAlias+"Application" {
v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap)
if err != nil {
@@ -442,6 +478,17 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{})
}
}
return ErrNoCallbackMatch
+ } else if typeString == GoToSocialAlias+"CanQuote" {
+ v, err := mgr.DeserializeCanQuoteGoToSocial()(m, aliasMap)
+ if err != nil {
+ return err
+ }
+ for _, i := range this.callbacks {
+ if fn, ok := i.(func(context.Context, vocab.GoToSocialCanQuote) error); ok {
+ return fn(ctx, v)
+ }
+ }
+ return ErrNoCallbackMatch
} else if typeString == GoToSocialAlias+"CanReply" {
v, err := mgr.DeserializeCanReplyGoToSocial()(m, aliasMap)
if err != nil {
@@ -717,6 +764,28 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{})
}
}
return ErrNoCallbackMatch
+ } else if typeString == GoToSocialAlias+"LikeAuthorization" {
+ v, err := mgr.DeserializeLikeAuthorizationGoToSocial()(m, aliasMap)
+ if err != nil {
+ return err
+ }
+ for _, i := range this.callbacks {
+ if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeAuthorization) error); ok {
+ return fn(ctx, v)
+ }
+ }
+ return ErrNoCallbackMatch
+ } else if typeString == GoToSocialAlias+"LikeRequest" {
+ v, err := mgr.DeserializeLikeRequestGoToSocial()(m, aliasMap)
+ if err != nil {
+ return err
+ }
+ for _, i := range this.callbacks {
+ if fn, ok := i.(func(context.Context, vocab.GoToSocialLikeRequest) error); ok {
+ return fn(ctx, v)
+ }
+ }
+ return ErrNoCallbackMatch
} else if typeString == ActivityStreamsAlias+"Link" {
v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap)
if err != nil {
@@ -959,6 +1028,28 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{})
}
}
return ErrNoCallbackMatch
+ } else if typeString == GoToSocialAlias+"ReplyAuthorization" {
+ v, err := mgr.DeserializeReplyAuthorizationGoToSocial()(m, aliasMap)
+ if err != nil {
+ return err
+ }
+ for _, i := range this.callbacks {
+ if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyAuthorization) error); ok {
+ return fn(ctx, v)
+ }
+ }
+ return ErrNoCallbackMatch
+ } else if typeString == GoToSocialAlias+"ReplyRequest" {
+ v, err := mgr.DeserializeReplyRequestGoToSocial()(m, aliasMap)
+ if err != nil {
+ return err
+ }
+ for _, i := range this.callbacks {
+ if fn, ok := i.(func(context.Context, vocab.GoToSocialReplyRequest) error); ok {
+ return fn(ctx, v)
+ }
+ }
+ return ErrNoCallbackMatch
} else if typeString == ActivityStreamsAlias+"Service" {
v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap)
if err != nil {