wip
This commit is contained in:
parent
5f2bbea6de
commit
69ba41bd8d
|
@ -133,13 +133,17 @@ export const endpoints = {
|
||||||
required: ['username', 'password'],
|
required: ['username', 'password'],
|
||||||
},
|
},
|
||||||
res: {
|
res: {
|
||||||
$ref: 'https://misskey-hub.net/api/schemas/User',
|
allOf: [{
|
||||||
|
$ref: 'https://misskey-hub.net/api/schemas/MeDetailed',
|
||||||
|
}, {
|
||||||
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
token: {
|
token: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
required: ['token'],
|
required: ['token'],
|
||||||
|
}],
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
|
@ -265,4 +269,25 @@ export const endpoints = {
|
||||||
res: undefined,
|
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; };
|
} as const satisfies { [x: string]: IEndpointMeta; };
|
||||||
|
|
Loading…
Reference in a new issue