Update endpoints.ts

This commit is contained in:
syuilo 2023-05-26 17:11:22 +09:00
parent b4cfa412b0
commit 54b6b79559

View file

@ -66,7 +66,7 @@ export const endpoints = {
required: ['url', 'memo', 'place', 'priority', 'ratio', 'expiresAt', 'startsAt', 'imageUrl'], required: ['url', 'memo', 'place', 'priority', 'ratio', 'expiresAt', 'startsAt', 'imageUrl'],
}, },
res: undefined, res: undefined,
}] }],
}, },
'admin/ad/delete': { 'admin/ad/delete': {
tags: ['admin'], tags: ['admin'],
@ -362,7 +362,7 @@ export const endpoints = {
oneOf: [ oneOf: [
{ $ref: 'https://misskey-hub.net/api/schemas/Id' }, { $ref: 'https://misskey-hub.net/api/schemas/Id' },
{ type: 'null' }, { type: 'null' },
] ],
}, },
userHost: { type: ['string', 'null'] }, userHost: { type: ['string', 'null'] },
md5: { type: 'string', format: 'md5', examples: '1bc29b36f623ba82aaf6724fd3b16718' }, md5: { type: 'string', format: 'md5', examples: '1bc29b36f623ba82aaf6724fd3b16718' },
@ -400,7 +400,7 @@ export const endpoints = {
oneOf: [ oneOf: [
{ $ref: 'https://misskey-hub.net/api/schemas/Id' }, { $ref: 'https://misskey-hub.net/api/schemas/Id' },
{ type: 'null' }, { type: 'null' },
] ],
}, },
isSensitive: { type: 'boolean' }, isSensitive: { type: 'boolean' },
isLink: { type: 'boolean' }, isLink: { type: 'boolean' },
@ -413,7 +413,7 @@ export const endpoints = {
}, { }, {
type: 'null', type: 'null',
}], }],
} },
}, },
required: [ required: [
'id', 'id',
@ -540,7 +540,7 @@ export const endpoints = {
id: { $ref: 'https://misskey-hub.net/api/schemas/Id' }, id: { $ref: 'https://misskey-hub.net/api/schemas/Id' },
}, },
required: ['id'], required: ['id'],
} },
}], }],
}, },
'admin/emoji/delete-bulk': { 'admin/emoji/delete-bulk': {
@ -655,7 +655,7 @@ export const endpoints = {
items: { items: {
$ref: 'https://misskey-hub.net/api/schemas/EmojiDetailed', $ref: 'https://misskey-hub.net/api/schemas/EmojiDetailed',
}, },
} },
}], }],
}, },
'admin/emoji/remove-aliases-bulk': { 'admin/emoji/remove-aliases-bulk': {