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'],
|
required: ['username', 'password'],
|
||||||
},
|
},
|
||||||
res: {
|
res: {
|
||||||
$ref: 'https://misskey-hub.net/api/schemas/User',
|
allOf: [{
|
||||||
properties: {
|
$ref: 'https://misskey-hub.net/api/schemas/MeDetailed',
|
||||||
token: {
|
}, {
|
||||||
type: 'string',
|
type: 'object',
|
||||||
},
|
properties: {
|
||||||
},
|
token: {
|
||||||
required: ['token'],
|
type: 'string',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
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