wip
This commit is contained in:
parent
5f2bbea6de
commit
69ba41bd8d
1 changed files with 32 additions and 7 deletions
|
@ -133,13 +133,17 @@ export const endpoints = {
|
|||
required: ['username', 'password'],
|
||||
},
|
||||
res: {
|
||||
$ref: 'https://misskey-hub.net/api/schemas/User',
|
||||
allOf: [{
|
||||
$ref: 'https://misskey-hub.net/api/schemas/MeDetailed',
|
||||
}, {
|
||||
type: 'object',
|
||||
properties: {
|
||||
token: {
|
||||
type: 'string',
|
||||
},
|
||||
},
|
||||
required: ['token'],
|
||||
}],
|
||||
},
|
||||
}],
|
||||
},
|
||||
|
@ -265,4 +269,25 @@ export const endpoints = {
|
|||
res: undefined,
|
||||
}],
|
||||
},
|
||||
"admin/announcements/create": {
|
||||
tags: ['admin'],
|
||||
|
||||
requireCredential: true,
|
||||
requireModerator: true,
|
||||
|
||||
defines: [{
|
||||
req: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
title: { type: 'string', minLength: 1 },
|
||||
text: { type: 'string', minLength: 1 },
|
||||
imageUrl: { type: 'string', nullable: true, minLength: 1 },
|
||||
},
|
||||
required: ['title', 'text', 'imageUrl'],
|
||||
},
|
||||
res: {
|
||||
$ref: 'https://misskey-hub.net/api/schemas/Announcement',
|
||||
}
|
||||
}],
|
||||
},
|
||||
} as const satisfies { [x: string]: IEndpointMeta; };
|
||||
|
|
Loading…
Reference in a new issue