Skip to content

ActivityPlug API / @activityplug/core / assertPublicOperationName

Function: assertPublicOperationName()

assertPublicOperationName(name): asserts name is "auth.oauth.revoke" | "auth.tokenInjection" | "instance.oauthMetadata" | "instance.peers" | "media.get" | "media.upload" | "media.update" | "media.delete" | "social.follow" | "social.block" | "social.mute" | "social.favourite" | "social.bookmark" | "social.boost" | "social.reaction" | "capabilities" | "instance.get" | "instance.detect" | "account.get" | "account.lookup" | "account.posts" | "account.followers" | "account.following" | "account.relationships" | "account.updateProfile" | "viewer" | "auth.registerClient" | "auth.oauth.authorizationUrl" | "auth.oauth.callback" | "auth.oauth.exchangeCode" | "auth.oauth.refresh" | "auth.verifyCredentials" | "auth.emailChallenge.start" | "auth.emailChallenge.verify" | "auth.passkey.start" | "auth.passkey.finish" | "post.get" | "post.create" | "post.update" | "post.delete" | "post.history" | "post.context" | "post.quotes" | "post.translate" | "timeline.home" | "timeline.public" | "timeline.local" | "timeline.hashtag" | "timeline.list" | "search" | "media.ingestUrl" | "poll.get" | "poll.vote" | "social.unfollow" | "social.unblock" | "social.unmute" | "social.unfavourite" | "social.unbookmark" | "social.unboost" | "social.unreaction" | "notification.list" | "notification.groups" | "notification.unreadCount" | "notification.dismiss" | "notification.clear" | "followRequest.list" | "followRequest.accept" | "followRequest.reject" | "list.list" | "list.get" | "list.create" | "list.update" | "list.delete" | "list.accounts" | "list.addAccount" | "list.removeAccount" | "filter.list" | "filter.get" | "filter.create" | "filter.update" | "filter.delete" | "scheduledPost.list" | "scheduledPost.get" | "scheduledPost.create" | "scheduledPost.update" | "scheduledPost.delete" | "bookmarkFolder.list" | "bookmarkFolder.create" | "bookmarkFolder.update" | "bookmarkFolder.delete" | "bookmarkFolder.addPost" | "bookmarkFolder.removePost" | "stream.timeline" | "stream.notifications" | "stream.conversations"

Defined in: packages/core/src/adapters/operations.ts:251

Parameters

name

string

Returns

asserts name is "auth.oauth.revoke" | "auth.tokenInjection" | "instance.oauthMetadata" | "instance.peers" | "media.get" | "media.upload" | "media.update" | "media.delete" | "social.follow" | "social.block" | "social.mute" | "social.favourite" | "social.bookmark" | "social.boost" | "social.reaction" | "capabilities" | "instance.get" | "instance.detect" | "account.get" | "account.lookup" | "account.posts" | "account.followers" | "account.following" | "account.relationships" | "account.updateProfile" | "viewer" | "auth.registerClient" | "auth.oauth.authorizationUrl" | "auth.oauth.callback" | "auth.oauth.exchangeCode" | "auth.oauth.refresh" | "auth.verifyCredentials" | "auth.emailChallenge.start" | "auth.emailChallenge.verify" | "auth.passkey.start" | "auth.passkey.finish" | "post.get" | "post.create" | "post.update" | "post.delete" | "post.history" | "post.context" | "post.quotes" | "post.translate" | "timeline.home" | "timeline.public" | "timeline.local" | "timeline.hashtag" | "timeline.list" | "search" | "media.ingestUrl" | "poll.get" | "poll.vote" | "social.unfollow" | "social.unblock" | "social.unmute" | "social.unfavourite" | "social.unbookmark" | "social.unboost" | "social.unreaction" | "notification.list" | "notification.groups" | "notification.unreadCount" | "notification.dismiss" | "notification.clear" | "followRequest.list" | "followRequest.accept" | "followRequest.reject" | "list.list" | "list.get" | "list.create" | "list.update" | "list.delete" | "list.accounts" | "list.addAccount" | "list.removeAccount" | "filter.list" | "filter.get" | "filter.create" | "filter.update" | "filter.delete" | "scheduledPost.list" | "scheduledPost.get" | "scheduledPost.create" | "scheduledPost.update" | "scheduledPost.delete" | "bookmarkFolder.list" | "bookmarkFolder.create" | "bookmarkFolder.update" | "bookmarkFolder.delete" | "bookmarkFolder.addPost" | "bookmarkFolder.removePost" | "stream.timeline" | "stream.notifications" | "stream.conversations"