This commit is contained in:
tamaina 2023-06-04 17:51:14 +00:00
parent 80bd84932c
commit 6bd7a0d0aa

View file

@ -2524,29 +2524,29 @@ export const endpoints = {
}, },
'blocking/delete': { 'blocking/delete': {
tags: ['account'], tags: ['account'],
limit: { limit: {
duration: ms('1hour'), duration: ms('1hour'),
max: 100, max: 100,
}, },
requireCredential: true, requireCredential: true,
kind: 'write:blocks', kind: 'write:blocks',
errors: { errors: {
noSuchUser: { noSuchUser: {
message: 'No such user.', message: 'No such user.',
code: 'NO_SUCH_USER', code: 'NO_SUCH_USER',
id: '8621d8bf-c358-4303-a066-5ea78610eb3f', id: '8621d8bf-c358-4303-a066-5ea78610eb3f',
}, },
blockeeIsYourself: { blockeeIsYourself: {
message: 'Blockee is yourself.', message: 'Blockee is yourself.',
code: 'BLOCKEE_IS_YOURSELF', code: 'BLOCKEE_IS_YOURSELF',
id: '06f6fac6-524b-473c-a354-e97a40ae6eac', id: '06f6fac6-524b-473c-a354-e97a40ae6eac',
}, },
notBlocking: { notBlocking: {
message: 'You are not blocking that user.', message: 'You are not blocking that user.',
code: 'NOT_BLOCKING', code: 'NOT_BLOCKING',
@ -2569,9 +2569,9 @@ export const endpoints = {
}, },
'blocking/list': { 'blocking/list': {
tags: ['account'], tags: ['account'],
requireCredential: true, requireCredential: true,
kind: 'read:blocks', kind: 'read:blocks',
defines: [{ defines: [{
@ -2597,13 +2597,13 @@ export const endpoints = {
//#region channels //#region channels
'channels/create': { 'channels/create': {
tags: ['channels'], tags: ['channels'],
requireCredential: true, requireCredential: true,
prohibitMoved: true, prohibitMoved: true,
kind: 'write:channels', kind: 'write:channels',
limit: { limit: {
duration: ms('1hour'), duration: ms('1hour'),
max: 10, max: 10,
@ -2645,13 +2645,13 @@ export const endpoints = {
}, },
'channels/favorite': { 'channels/favorite': {
tags: ['channels'], tags: ['channels'],
requireCredential: true, requireCredential: true,
prohibitMoved: true, prohibitMoved: true,
kind: 'write:channels', kind: 'write:channels',
errors: { errors: {
noSuchChannel: { noSuchChannel: {
message: 'No such channel.', message: 'No such channel.',
@ -2673,7 +2673,7 @@ export const endpoints = {
}, },
'channels/featured': { 'channels/featured': {
tags: ['channels'], tags: ['channels'],
requireCredential: false, requireCredential: false,
defines: [{ defines: [{
@ -2688,13 +2688,13 @@ export const endpoints = {
}, },
'channels/follow': { 'channels/follow': {
tags: ['channels'], tags: ['channels'],
requireCredential: true, requireCredential: true,
prohibitMoved: true, prohibitMoved: true,
kind: 'write:channels', kind: 'write:channels',
errors: { errors: {
noSuchChannel: { noSuchChannel: {
message: 'No such channel.', message: 'No such channel.',
@ -2716,11 +2716,11 @@ export const endpoints = {
}, },
'channels/followed': { 'channels/followed': {
tags: ['channels', 'account'], tags: ['channels', 'account'],
requireCredential: true, requireCredential: true,
kind: 'read:channels', kind: 'read:channels',
defines: [{ defines: [{
req: { req: {
type: 'object', type: 'object',
@ -2741,11 +2741,11 @@ export const endpoints = {
}, },
'channels/my-favorites': { 'channels/my-favorites': {
tags: ['channels', 'account'], tags: ['channels', 'account'],
requireCredential: true, requireCredential: true,
kind: 'read:channels', kind: 'read:channels',
defines: [{ defines: [{
req: undefined, req: undefined,
res: { res: {
@ -2758,9 +2758,9 @@ export const endpoints = {
}, },
'channels/owned': { 'channels/owned': {
tags: ['channels', 'account'], tags: ['channels', 'account'],
requireCredential: true, requireCredential: true,
kind: 'read:channels', kind: 'read:channels',
defines: [{ defines: [{
@ -2783,7 +2783,7 @@ export const endpoints = {
}, },
'channels/search': { 'channels/search': {
tags: ['channels'], tags: ['channels'],
requireCredential: false, requireCredential: false,
defines: [{ defines: [{
@ -2808,7 +2808,7 @@ export const endpoints = {
}, },
'channels/show': { 'channels/show': {
tags: ['channels'], tags: ['channels'],
requireCredential: false, requireCredential: false,
errors: { errors: {
@ -2834,7 +2834,7 @@ export const endpoints = {
}, },
'channels/timeline': { 'channels/timeline': {
tags: ['notes', 'channels'], tags: ['notes', 'channels'],
requireCredential: false, requireCredential: false,
errors: { errors: {
@ -2868,13 +2868,13 @@ export const endpoints = {
}, },
'channels/unfavorite': { 'channels/unfavorite': {
tags: ['channels'], tags: ['channels'],
requireCredential: true, requireCredential: true,
prohibitMoved: true, prohibitMoved: true,
kind: 'write:channels', kind: 'write:channels',
errors: { errors: {
noSuchChannel: { noSuchChannel: {
message: 'No such channel.', message: 'No such channel.',
@ -2882,7 +2882,7 @@ export const endpoints = {
id: '353c68dd-131a-476c-aa99-88a345e83668', id: '353c68dd-131a-476c-aa99-88a345e83668',
}, },
}, },
defines: [{ defines: [{
req: { req: {
type: 'object', type: 'object',
@ -2896,13 +2896,13 @@ export const endpoints = {
}, },
'channels/unfollow': { 'channels/unfollow': {
tags: ['channels'], tags: ['channels'],
requireCredential: true, requireCredential: true,
prohibitMoved: true, prohibitMoved: true,
kind: 'write:channels', kind: 'write:channels',
errors: { errors: {
noSuchChannel: { noSuchChannel: {
message: 'No such channel.', message: 'No such channel.',
@ -2924,24 +2924,24 @@ export const endpoints = {
}, },
'channels/update': { 'channels/update': {
tags: ['channels'], tags: ['channels'],
requireCredential: true, requireCredential: true,
kind: 'write:channels', kind: 'write:channels',
errors: { errors: {
noSuchChannel: { noSuchChannel: {
message: 'No such channel.', message: 'No such channel.',
code: 'NO_SUCH_CHANNEL', code: 'NO_SUCH_CHANNEL',
id: 'f9c5467f-d492-4c3c-9a8d-a70dacc86512', id: 'f9c5467f-d492-4c3c-9a8d-a70dacc86512',
}, },
accessDenied: { accessDenied: {
message: 'You do not have edit privilege of the channel.', message: 'You do not have edit privilege of the channel.',
code: 'ACCESS_DENIED', code: 'ACCESS_DENIED',
id: '1fb7cb09-d46a-4fdf-b8df-057788cce513', id: '1fb7cb09-d46a-4fdf-b8df-057788cce513',
}, },
noSuchFile: { noSuchFile: {
message: 'No such file.', message: 'No such file.',
code: 'NO_SUCH_FILE', code: 'NO_SUCH_FILE',