Add more OAuth scopes to current routes

This commit is contained in:
Jesse Wierzbinski 2024-03-13 17:03:05 -10:00
parent 9ec3d96f9d
commit f02344fa0d
No known key found for this signature in database
20 changed files with 20 additions and 0 deletions

View file

@ -16,6 +16,7 @@ export const meta = applyConfig({
route: "/accounts/:id/block",
auth: {
required: true,
oauthPermissions: ["write:blocks"],
},
});

View file

@ -16,6 +16,7 @@ export const meta = applyConfig({
route: "/accounts/:id/follow",
auth: {
required: true,
oauthPermissions: ["write:follows"],
},
});

View file

@ -13,6 +13,7 @@ export const meta = applyConfig({
route: "/accounts/:id/followers",
auth: {
required: false,
oauthPermissions: [],
},
});

View file

@ -13,6 +13,7 @@ export const meta = applyConfig({
route: "/accounts/:id/following",
auth: {
required: false,
oauthPermissions: [],
},
});

View file

@ -13,6 +13,7 @@ export const meta = applyConfig({
route: "/accounts/:id",
auth: {
required: true,
oauthPermissions: [],
},
});

View file

@ -16,6 +16,7 @@ export const meta = applyConfig({
route: "/accounts/:id/mute",
auth: {
required: true,
oauthPermissions: ["write:mutes"],
},
});

View file

@ -16,6 +16,7 @@ export const meta = applyConfig({
route: "/accounts/:id/note",
auth: {
required: true,
oauthPermissions: ["write:accounts"],
},
});

View file

@ -16,6 +16,7 @@ export const meta = applyConfig({
route: "/accounts/:id/pin",
auth: {
required: true,
oauthPermissions: ["write:accounts"],
},
});

View file

@ -16,6 +16,7 @@ export const meta = applyConfig({
route: "/accounts/:id/remove_from_followers",
auth: {
required: true,
oauthPermissions: ["write:follows"],
},
});

View file

@ -14,6 +14,7 @@ export const meta = applyConfig({
route: "/accounts/:id/statuses",
auth: {
required: false,
oauthPermissions: ["read:statuses"],
},
});

View file

@ -16,6 +16,7 @@ export const meta = applyConfig({
route: "/accounts/:id/unblock",
auth: {
required: true,
oauthPermissions: ["write:blocks"],
},
});

View file

@ -16,6 +16,7 @@ export const meta = applyConfig({
route: "/accounts/:id/unfollow",
auth: {
required: true,
oauthPermissions: ["write:follows"],
},
});

View file

@ -16,6 +16,7 @@ export const meta = applyConfig({
route: "/accounts/:id/unmute",
auth: {
required: true,
oauthPermissions: ["write:mutes"],
},
});

View file

@ -16,6 +16,7 @@ export const meta = applyConfig({
route: "/accounts/:id/unpin",
auth: {
required: true,
oauthPermissions: ["write:accounts"],
},
});

View file

@ -12,6 +12,7 @@ export const meta = applyConfig({
},
auth: {
required: true,
oauthPermissions: ["read:follows"],
},
});

View file

@ -14,6 +14,7 @@ export const meta = applyConfig({
},
auth: {
required: false,
oauthPermissions: ["write:accounts"],
},
});

View file

@ -15,6 +15,7 @@ export const meta = applyConfig({
},
auth: {
required: true,
oauthPermissions: ["read:follows"],
},
});

View file

@ -12,6 +12,7 @@ export const meta = applyConfig({
},
auth: {
required: true,
oauthPermissions: ["read:accounts"],
},
});

View file

@ -23,6 +23,7 @@ export const meta = applyConfig({
},
auth: {
required: true,
oauthPermissions: ["write:accounts"],
},
});

View file

@ -11,6 +11,7 @@ export const meta = applyConfig({
},
auth: {
required: true,
oauthPermissions: ["read:accounts"],
},
});