format
This commit is contained in:
parent
726fdb9e93
commit
535e778033
1 changed files with 48 additions and 46 deletions
|
@ -4244,7 +4244,7 @@ export const endpoints = {
|
||||||
$ref: 'https://misskey-hub.net/api/schemas/Following',
|
$ref: 'https://misskey-hub.net/api/schemas/Following',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}]
|
}],
|
||||||
},
|
},
|
||||||
'federation/followings': {
|
'federation/followings': {
|
||||||
tags: ['federation'],
|
tags: ['federation'],
|
||||||
|
@ -4268,7 +4268,7 @@ export const endpoints = {
|
||||||
$ref: 'https://misskey-hub.net/api/schemas/Following',
|
$ref: 'https://misskey-hub.net/api/schemas/Following',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}]
|
}],
|
||||||
},
|
},
|
||||||
'federation/instances': {
|
'federation/instances': {
|
||||||
tags: ['federation'],
|
tags: ['federation'],
|
||||||
|
@ -4449,7 +4449,7 @@ export const endpoints = {
|
||||||
res: {
|
res: {
|
||||||
$ref: 'https://misskey-hub.net/api/schemas/Flash',
|
$ref: 'https://misskey-hub.net/api/schemas/Flash',
|
||||||
},
|
},
|
||||||
}]
|
}],
|
||||||
},
|
},
|
||||||
'flash/delete': {
|
'flash/delete': {
|
||||||
tags: ['flashs'],
|
tags: ['flashs'],
|
||||||
|
@ -4535,13 +4535,13 @@ export const endpoints = {
|
||||||
required: ['flashId'],
|
required: ['flashId'],
|
||||||
},
|
},
|
||||||
res: undefined,
|
res: undefined,
|
||||||
}]
|
}],
|
||||||
},
|
},
|
||||||
'flash/my-likes': {
|
'flash/my-likes': {
|
||||||
tags: ['account', 'flash'],
|
tags: ['account', 'flash'],
|
||||||
|
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
|
|
||||||
kind: 'read:flash-likes',
|
kind: 'read:flash-likes',
|
||||||
|
|
||||||
defines: [{
|
defines: [{
|
||||||
|
@ -4573,11 +4573,11 @@ export const endpoints = {
|
||||||
},
|
},
|
||||||
'flash/my': {
|
'flash/my': {
|
||||||
tags: ['account', 'flash'],
|
tags: ['account', 'flash'],
|
||||||
|
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
|
|
||||||
kind: 'read:flash',
|
kind: 'read:flash',
|
||||||
|
|
||||||
defines: [{
|
defines: [{
|
||||||
req: {
|
req: {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
|
@ -4598,9 +4598,9 @@ export const endpoints = {
|
||||||
},
|
},
|
||||||
'flash/show': {
|
'flash/show': {
|
||||||
tags: ['flashs'],
|
tags: ['flashs'],
|
||||||
|
|
||||||
requireCredential: false,
|
requireCredential: false,
|
||||||
|
|
||||||
errors: {
|
errors: {
|
||||||
noSuchFlash: {
|
noSuchFlash: {
|
||||||
message: 'No such flash.',
|
message: 'No such flash.',
|
||||||
|
@ -4620,24 +4620,24 @@ export const endpoints = {
|
||||||
res: {
|
res: {
|
||||||
$ref: 'https://misskey-hub.net/api/schemas/Flash',
|
$ref: 'https://misskey-hub.net/api/schemas/Flash',
|
||||||
},
|
},
|
||||||
}]
|
}],
|
||||||
},
|
},
|
||||||
'flash/unlike': {
|
'flash/unlike': {
|
||||||
tags: ['flash'],
|
tags: ['flash'],
|
||||||
|
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
|
|
||||||
prohibitMoved: true,
|
prohibitMoved: true,
|
||||||
|
|
||||||
kind: 'write:flash-likes',
|
kind: 'write:flash-likes',
|
||||||
|
|
||||||
errors: {
|
errors: {
|
||||||
noSuchFlash: {
|
noSuchFlash: {
|
||||||
message: 'No such flash.',
|
message: 'No such flash.',
|
||||||
code: 'NO_SUCH_FLASH',
|
code: 'NO_SUCH_FLASH',
|
||||||
id: 'afe8424a-a69e-432d-a5f2-2f0740c62410',
|
id: 'afe8424a-a69e-432d-a5f2-2f0740c62410',
|
||||||
},
|
},
|
||||||
|
|
||||||
notLiked: {
|
notLiked: {
|
||||||
message: 'You have not liked that flash.',
|
message: 'You have not liked that flash.',
|
||||||
code: 'NOT_LIKED',
|
code: 'NOT_LIKED',
|
||||||
|
@ -4654,29 +4654,29 @@ export const endpoints = {
|
||||||
required: ['flashId'],
|
required: ['flashId'],
|
||||||
},
|
},
|
||||||
res: undefined,
|
res: undefined,
|
||||||
}]
|
}],
|
||||||
},
|
},
|
||||||
'flash/update': {
|
'flash/update': {
|
||||||
tags: ['flash'],
|
tags: ['flash'],
|
||||||
|
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
|
|
||||||
prohibitMoved: true,
|
prohibitMoved: true,
|
||||||
|
|
||||||
kind: 'write:flash',
|
kind: 'write:flash',
|
||||||
|
|
||||||
limit: {
|
limit: {
|
||||||
duration: ms('1hour'),
|
duration: ms('1hour'),
|
||||||
max: 300,
|
max: 300,
|
||||||
},
|
},
|
||||||
|
|
||||||
errors: {
|
errors: {
|
||||||
noSuchFlash: {
|
noSuchFlash: {
|
||||||
message: 'No such flash.',
|
message: 'No such flash.',
|
||||||
code: 'NO_SUCH_FLASH',
|
code: 'NO_SUCH_FLASH',
|
||||||
id: '611e13d2-309e-419a-a5e4-e0422da39b02',
|
id: '611e13d2-309e-419a-a5e4-e0422da39b02',
|
||||||
},
|
},
|
||||||
|
|
||||||
accessDenied: {
|
accessDenied: {
|
||||||
message: 'Access denied.',
|
message: 'Access denied.',
|
||||||
code: 'ACCESS_DENIED',
|
code: 'ACCESS_DENIED',
|
||||||
|
@ -4692,25 +4692,27 @@ export const endpoints = {
|
||||||
title: { type: 'string' },
|
title: { type: 'string' },
|
||||||
summary: { type: 'string' },
|
summary: { type: 'string' },
|
||||||
script: { type: 'string' },
|
script: { type: 'string' },
|
||||||
permissions: { type: 'array', items: {
|
permissions: {
|
||||||
type: 'string',
|
type: 'array', items: {
|
||||||
} },
|
type: 'string',
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
required: ['flashId', 'title', 'summary', 'script', 'permissions'],
|
required: ['flashId', 'title', 'summary', 'script', 'permissions'],
|
||||||
},
|
},
|
||||||
res: undefined,
|
res: undefined,
|
||||||
}]
|
}],
|
||||||
},
|
},
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
//#region following
|
//#region following
|
||||||
'following/requests/accept': {
|
'following/requests/accept': {
|
||||||
tags: ['following', 'account'],
|
tags: ['following', 'account'],
|
||||||
|
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
|
|
||||||
kind: 'write:following',
|
kind: 'write:following',
|
||||||
|
|
||||||
errors: {
|
errors: {
|
||||||
noSuchUser: {
|
noSuchUser: {
|
||||||
message: 'No such user.',
|
message: 'No such user.',
|
||||||
|
@ -4733,22 +4735,22 @@ export const endpoints = {
|
||||||
required: ['userId'],
|
required: ['userId'],
|
||||||
},
|
},
|
||||||
res: undefined,
|
res: undefined,
|
||||||
}]
|
}],
|
||||||
},
|
},
|
||||||
'following/requests/cancel': {
|
'following/requests/cancel': {
|
||||||
tags: ['following', 'account'],
|
tags: ['following', 'account'],
|
||||||
|
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
|
|
||||||
kind: 'write:following',
|
kind: 'write:following',
|
||||||
|
|
||||||
errors: {
|
errors: {
|
||||||
noSuchUser: {
|
noSuchUser: {
|
||||||
message: 'No such user.',
|
message: 'No such user.',
|
||||||
code: 'NO_SUCH_USER',
|
code: 'NO_SUCH_USER',
|
||||||
id: '4e68c551-fc4c-4e46-bb41-7d4a37bf9dab',
|
id: '4e68c551-fc4c-4e46-bb41-7d4a37bf9dab',
|
||||||
},
|
},
|
||||||
|
|
||||||
followRequestNotFound: {
|
followRequestNotFound: {
|
||||||
message: 'Follow request not found.',
|
message: 'Follow request not found.',
|
||||||
code: 'FOLLOW_REQUEST_NOT_FOUND',
|
code: 'FOLLOW_REQUEST_NOT_FOUND',
|
||||||
|
@ -4766,14 +4768,14 @@ export const endpoints = {
|
||||||
},
|
},
|
||||||
res: {
|
res: {
|
||||||
$ref: 'https://misskey-hub.net/api/schemas/UserLite',
|
$ref: 'https://misskey-hub.net/api/schemas/UserLite',
|
||||||
}
|
},
|
||||||
}]
|
}],
|
||||||
},
|
},
|
||||||
'following/requests/list': {
|
'following/requests/list': {
|
||||||
tags: ['following', 'account'],
|
tags: ['following', 'account'],
|
||||||
|
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
|
|
||||||
kind: 'read:following',
|
kind: 'read:following',
|
||||||
|
|
||||||
defines: [{
|
defines: [{
|
||||||
|
@ -4791,16 +4793,16 @@ export const endpoints = {
|
||||||
items: {
|
items: {
|
||||||
$ref: 'https://misskey-hub.net/api/schemas/FollowRequest',
|
$ref: 'https://misskey-hub.net/api/schemas/FollowRequest',
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
}]
|
}],
|
||||||
},
|
},
|
||||||
'following/requests/reject': {
|
'following/requests/reject': {
|
||||||
tags: ['following', 'account'],
|
tags: ['following', 'account'],
|
||||||
|
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
|
|
||||||
kind: 'write:following',
|
kind: 'write:following',
|
||||||
|
|
||||||
errors: {
|
errors: {
|
||||||
noSuchUser: {
|
noSuchUser: {
|
||||||
message: 'No such user.',
|
message: 'No such user.',
|
||||||
|
@ -4818,7 +4820,7 @@ export const endpoints = {
|
||||||
required: ['userId'],
|
required: ['userId'],
|
||||||
},
|
},
|
||||||
res: undefined,
|
res: undefined,
|
||||||
}]
|
}],
|
||||||
},
|
},
|
||||||
//#endregion
|
//#endregion
|
||||||
} as const satisfies { [x: string]: IEndpointMeta; };
|
} as const satisfies { [x: string]: IEndpointMeta; };
|
||||||
|
|
Loading…
Reference in a new issue