Update endpoints.ts
This commit is contained in:
parent
b4cfa412b0
commit
54b6b79559
1 changed files with 36 additions and 36 deletions
|
@ -2,18 +2,18 @@ import { IEndpointMeta } from './endpoints.types';
|
||||||
import { localUsernameSchema, passwordSchema } from './schemas/user';
|
import { localUsernameSchema, passwordSchema } from './schemas/user';
|
||||||
|
|
||||||
export const endpoints = {
|
export const endpoints = {
|
||||||
'admin/accounts/create': {
|
'admin/accounts/create': {
|
||||||
tags: ['admin'],
|
tags: ['admin'],
|
||||||
defines: [{
|
defines: [{
|
||||||
req: {
|
req: {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
username: localUsernameSchema,
|
username: localUsernameSchema,
|
||||||
password: passwordSchema,
|
password: passwordSchema,
|
||||||
},
|
},
|
||||||
required: ['username', 'password'],
|
required: ['username', 'password'],
|
||||||
},
|
},
|
||||||
res: {
|
res: {
|
||||||
allOf: [{
|
allOf: [{
|
||||||
$ref: 'https://misskey-hub.net/api/schemas/MeDetailed',
|
$ref: 'https://misskey-hub.net/api/schemas/MeDetailed',
|
||||||
}, {
|
}, {
|
||||||
|
@ -25,25 +25,25 @@ export const endpoints = {
|
||||||
},
|
},
|
||||||
required: ['token'],
|
required: ['token'],
|
||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
'admin/accounts/delete': {
|
'admin/accounts/delete': {
|
||||||
tags: ['admin'],
|
tags: ['admin'],
|
||||||
|
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
requireAdmin: true,
|
requireAdmin: true,
|
||||||
defines: [{
|
defines: [{
|
||||||
req: {
|
req: {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
userId: { type: 'string', format: 'misskey:id' },
|
userId: { type: 'string', format: 'misskey:id' },
|
||||||
},
|
},
|
||||||
required: ['userId'],
|
required: ['userId'],
|
||||||
},
|
},
|
||||||
res: undefined,
|
res: undefined,
|
||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
'admin/ad/create': {
|
'admin/ad/create': {
|
||||||
tags: ['admin'],
|
tags: ['admin'],
|
||||||
|
|
||||||
|
@ -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': {
|
||||||
|
|
Loading…
Reference in a new issue