forked from mirrors/misskey
@@ -1,19 +1,17 @@
|
||||
import { types, bool } from '../../../../misc/schema';
|
||||
|
||||
export const logSchema = {
|
||||
/**
|
||||
* フォローしている
|
||||
*/
|
||||
followings: {
|
||||
type: types.object,
|
||||
optional: bool.false, nullable: bool.false,
|
||||
type: 'object' as const,
|
||||
optional: false as const, nullable: false as const,
|
||||
properties: {
|
||||
/**
|
||||
* フォローしている合計
|
||||
*/
|
||||
total: {
|
||||
type: types.number,
|
||||
optional: bool.false, nullable: bool.false,
|
||||
type: 'number' as const,
|
||||
optional: false as const, nullable: false as const,
|
||||
description: 'フォローしている合計',
|
||||
},
|
||||
|
||||
@@ -21,8 +19,8 @@ export const logSchema = {
|
||||
* フォローした数
|
||||
*/
|
||||
inc: {
|
||||
type: types.number,
|
||||
optional: bool.false, nullable: bool.false,
|
||||
type: 'number' as const,
|
||||
optional: false as const, nullable: false as const,
|
||||
description: 'フォローした数',
|
||||
},
|
||||
|
||||
@@ -30,8 +28,8 @@ export const logSchema = {
|
||||
* フォロー解除した数
|
||||
*/
|
||||
dec: {
|
||||
type: types.number,
|
||||
optional: bool.false, nullable: bool.false,
|
||||
type: 'number' as const,
|
||||
optional: false as const, nullable: false as const,
|
||||
description: 'フォロー解除した数',
|
||||
},
|
||||
}
|
||||
@@ -41,15 +39,15 @@ export const logSchema = {
|
||||
* フォローされている
|
||||
*/
|
||||
followers: {
|
||||
type: types.object,
|
||||
optional: bool.false, nullable: bool.false,
|
||||
type: 'object' as const,
|
||||
optional: false as const, nullable: false as const,
|
||||
properties: {
|
||||
/**
|
||||
* フォローされている合計
|
||||
*/
|
||||
total: {
|
||||
type: types.number,
|
||||
optional: bool.false, nullable: bool.false,
|
||||
type: 'number' as const,
|
||||
optional: false as const, nullable: false as const,
|
||||
description: 'フォローされている合計',
|
||||
},
|
||||
|
||||
@@ -57,8 +55,8 @@ export const logSchema = {
|
||||
* フォローされた数
|
||||
*/
|
||||
inc: {
|
||||
type: types.number,
|
||||
optional: bool.false, nullable: bool.false,
|
||||
type: 'number' as const,
|
||||
optional: false as const, nullable: false as const,
|
||||
description: 'フォローされた数',
|
||||
},
|
||||
|
||||
@@ -66,8 +64,8 @@ export const logSchema = {
|
||||
* フォロー解除された数
|
||||
*/
|
||||
dec: {
|
||||
type: types.number,
|
||||
optional: bool.false, nullable: bool.false,
|
||||
type: 'number' as const,
|
||||
optional: false as const, nullable: false as const,
|
||||
description: 'フォロー解除された数',
|
||||
},
|
||||
}
|
||||
@@ -75,17 +73,17 @@ export const logSchema = {
|
||||
};
|
||||
|
||||
export const schema = {
|
||||
type: types.object,
|
||||
optional: bool.false, nullable: bool.false,
|
||||
type: 'object' as const,
|
||||
optional: false as const, nullable: false as const,
|
||||
properties: {
|
||||
local: {
|
||||
type: types.object,
|
||||
optional: bool.false, nullable: bool.false,
|
||||
type: 'object' as const,
|
||||
optional: false as const, nullable: false as const,
|
||||
properties: logSchema
|
||||
},
|
||||
remote: {
|
||||
type: types.object,
|
||||
optional: bool.false, nullable: bool.false,
|
||||
type: 'object' as const,
|
||||
optional: false as const, nullable: false as const,
|
||||
properties: logSchema
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user