parent
6b897e562a
commit
952789cc1e
|
@ -226,7 +226,7 @@
|
||||||
"tslint": "5.15.0",
|
"tslint": "5.15.0",
|
||||||
"tslint-sonarts": "1.9.0",
|
"tslint-sonarts": "1.9.0",
|
||||||
"typeorm": "0.2.16-rc.1",
|
"typeorm": "0.2.16-rc.1",
|
||||||
"typescript": "3.3.3333",
|
"typescript": "3.5.2",
|
||||||
"typescript-eslint-parser": "22.0.0",
|
"typescript-eslint-parser": "22.0.0",
|
||||||
"uglify-es": "3.3.9",
|
"uglify-es": "3.3.9",
|
||||||
"ulid": "2.3.0",
|
"ulid": "2.3.0",
|
||||||
|
|
|
@ -1,17 +1,3 @@
|
||||||
export const types = {
|
|
||||||
boolean: 'boolean' as 'boolean',
|
|
||||||
string: 'string' as 'string',
|
|
||||||
number: 'number' as 'number',
|
|
||||||
array: 'array' as 'array',
|
|
||||||
object: 'object' as 'object',
|
|
||||||
any: 'any' as 'any',
|
|
||||||
};
|
|
||||||
|
|
||||||
export const bool = {
|
|
||||||
true: true as true,
|
|
||||||
false: false as false,
|
|
||||||
};
|
|
||||||
|
|
||||||
export type Schema = {
|
export type Schema = {
|
||||||
type: 'boolean' | 'number' | 'string' | 'array' | 'object' | 'any';
|
type: 'boolean' | 'number' | 'string' | 'array' | 'object' | 'any';
|
||||||
nullable: boolean;
|
nullable: boolean;
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { EntityRepository, Repository } from 'typeorm';
|
||||||
import { App } from '../entities/app';
|
import { App } from '../entities/app';
|
||||||
import { AccessTokens } from '..';
|
import { AccessTokens } from '..';
|
||||||
import { ensure } from '../../prelude/ensure';
|
import { ensure } from '../../prelude/ensure';
|
||||||
import { types, bool, SchemaType } from '../../misc/schema';
|
import { SchemaType } from '../../misc/schema';
|
||||||
|
|
||||||
export type PackedApp = SchemaType<typeof packedAppSchema>;
|
export type PackedApp = SchemaType<typeof packedAppSchema>;
|
||||||
|
|
||||||
|
@ -42,37 +42,37 @@ export class AppRepository extends Repository<App> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const packedAppSchema = {
|
export const packedAppSchema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
id: {
|
id: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
description: 'The unique identifier for this Note.',
|
description: 'The unique identifier for this Note.',
|
||||||
example: 'xxxxxxxxxx',
|
example: 'xxxxxxxxxx',
|
||||||
},
|
},
|
||||||
name: {
|
name: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'アプリケーションの名前'
|
description: 'アプリケーションの名前'
|
||||||
},
|
},
|
||||||
callbackUrl: {
|
callbackUrl: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.true,
|
optional: false as const, nullable: true as const,
|
||||||
description: 'コールバックするURL'
|
description: 'コールバックするURL'
|
||||||
},
|
},
|
||||||
permission: {
|
permission: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.true, nullable: bool.false,
|
optional: true as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
secret: {
|
secret: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.true, nullable: bool.false,
|
optional: true as const, nullable: false as const,
|
||||||
description: 'アプリケーションのシークレットキー'
|
description: 'アプリケーションのシークレットキー'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { Users } from '..';
|
||||||
import { Blocking } from '../entities/blocking';
|
import { Blocking } from '../entities/blocking';
|
||||||
import { ensure } from '../../prelude/ensure';
|
import { ensure } from '../../prelude/ensure';
|
||||||
import { awaitAll } from '../../prelude/await-all';
|
import { awaitAll } from '../../prelude/await-all';
|
||||||
import { SchemaType, types, bool } from '../../misc/schema';
|
import { SchemaType } from '../../misc/schema';
|
||||||
|
|
||||||
export type PackedBlocking = SchemaType<typeof packedBlockingSchema>;
|
export type PackedBlocking = SchemaType<typeof packedBlockingSchema>;
|
||||||
|
|
||||||
|
@ -34,30 +34,30 @@ export class BlockingRepository extends Repository<Blocking> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const packedBlockingSchema = {
|
export const packedBlockingSchema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
id: {
|
id: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
description: 'The unique identifier for this blocking.',
|
description: 'The unique identifier for this blocking.',
|
||||||
example: 'xxxxxxxxxx',
|
example: 'xxxxxxxxxx',
|
||||||
},
|
},
|
||||||
createdAt: {
|
createdAt: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
description: 'The date that the blocking was created.'
|
description: 'The date that the blocking was created.'
|
||||||
},
|
},
|
||||||
blockeeId: {
|
blockeeId: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
},
|
},
|
||||||
blockee: {
|
blockee: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'User',
|
ref: 'User',
|
||||||
description: 'The blockee.'
|
description: 'The blockee.'
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { User } from '../entities/user';
|
||||||
import { toPuny } from '../../misc/convert-host';
|
import { toPuny } from '../../misc/convert-host';
|
||||||
import { ensure } from '../../prelude/ensure';
|
import { ensure } from '../../prelude/ensure';
|
||||||
import { awaitAll } from '../../prelude/await-all';
|
import { awaitAll } from '../../prelude/await-all';
|
||||||
import { types, bool, SchemaType } from '../../misc/schema';
|
import { SchemaType } from '../../misc/schema';
|
||||||
|
|
||||||
export type PackedDriveFile = SchemaType<typeof packedDriveFileSchema>;
|
export type PackedDriveFile = SchemaType<typeof packedDriveFileSchema>;
|
||||||
|
|
||||||
|
@ -114,63 +114,63 @@ export class DriveFileRepository extends Repository<DriveFile> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const packedDriveFileSchema = {
|
export const packedDriveFileSchema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
id: {
|
id: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
description: 'The unique identifier for this Drive file.',
|
description: 'The unique identifier for this Drive file.',
|
||||||
example: 'xxxxxxxxxx',
|
example: 'xxxxxxxxxx',
|
||||||
},
|
},
|
||||||
createdAt: {
|
createdAt: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
description: 'The date that the Drive file was created on Misskey.'
|
description: 'The date that the Drive file was created on Misskey.'
|
||||||
},
|
},
|
||||||
name: {
|
name: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'The file name with extension.',
|
description: 'The file name with extension.',
|
||||||
example: 'lenna.jpg'
|
example: 'lenna.jpg'
|
||||||
},
|
},
|
||||||
type: {
|
type: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'The MIME type of this Drive file.',
|
description: 'The MIME type of this Drive file.',
|
||||||
example: 'image/jpeg'
|
example: 'image/jpeg'
|
||||||
},
|
},
|
||||||
md5: {
|
md5: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'md5',
|
format: 'md5',
|
||||||
description: 'The MD5 hash of this Drive file.',
|
description: 'The MD5 hash of this Drive file.',
|
||||||
example: '15eca7fba0480996e2245f5185bf39f2'
|
example: '15eca7fba0480996e2245f5185bf39f2'
|
||||||
},
|
},
|
||||||
size: {
|
size: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'The size of this Drive file. (bytes)',
|
description: 'The size of this Drive file. (bytes)',
|
||||||
example: 51469
|
example: 51469
|
||||||
},
|
},
|
||||||
url: {
|
url: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.true,
|
optional: false as const, nullable: true as const,
|
||||||
format: 'url',
|
format: 'url',
|
||||||
description: 'The URL of this Drive file.',
|
description: 'The URL of this Drive file.',
|
||||||
},
|
},
|
||||||
folderId: {
|
folderId: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.true,
|
optional: false as const, nullable: true as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
description: 'The parent folder ID of this Drive file.',
|
description: 'The parent folder ID of this Drive file.',
|
||||||
example: 'xxxxxxxxxx',
|
example: 'xxxxxxxxxx',
|
||||||
},
|
},
|
||||||
isSensitive: {
|
isSensitive: {
|
||||||
type: types.boolean,
|
type: 'boolean' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'Whether this Drive file is sensitive.',
|
description: 'Whether this Drive file is sensitive.',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { DriveFolders, DriveFiles } from '..';
|
||||||
import { DriveFolder } from '../entities/drive-folder';
|
import { DriveFolder } from '../entities/drive-folder';
|
||||||
import { ensure } from '../../prelude/ensure';
|
import { ensure } from '../../prelude/ensure';
|
||||||
import { awaitAll } from '../../prelude/await-all';
|
import { awaitAll } from '../../prelude/await-all';
|
||||||
import { SchemaType, types, bool } from '../../misc/schema';
|
import { SchemaType } from '../../misc/schema';
|
||||||
|
|
||||||
export type PackedDriveFolder = SchemaType<typeof packedDriveFolderSchema>;
|
export type PackedDriveFolder = SchemaType<typeof packedDriveFolderSchema>;
|
||||||
|
|
||||||
|
@ -53,47 +53,47 @@ export class DriveFolderRepository extends Repository<DriveFolder> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const packedDriveFolderSchema = {
|
export const packedDriveFolderSchema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
id: {
|
id: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
description: 'The unique identifier for this Drive folder.',
|
description: 'The unique identifier for this Drive folder.',
|
||||||
example: 'xxxxxxxxxx',
|
example: 'xxxxxxxxxx',
|
||||||
},
|
},
|
||||||
createdAt: {
|
createdAt: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
description: 'The date that the Drive folder was created.'
|
description: 'The date that the Drive folder was created.'
|
||||||
},
|
},
|
||||||
name: {
|
name: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'The folder name.',
|
description: 'The folder name.',
|
||||||
},
|
},
|
||||||
foldersCount: {
|
foldersCount: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.true, nullable: bool.false,
|
optional: true as const, nullable: false as const,
|
||||||
description: 'The count of child folders.',
|
description: 'The count of child folders.',
|
||||||
},
|
},
|
||||||
filesCount: {
|
filesCount: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.true, nullable: bool.false,
|
optional: true as const, nullable: false as const,
|
||||||
description: 'The count of child files.',
|
description: 'The count of child files.',
|
||||||
},
|
},
|
||||||
parentId: {
|
parentId: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.true,
|
optional: false as const, nullable: true as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
description: 'The parent folder ID of this folder.',
|
description: 'The parent folder ID of this folder.',
|
||||||
example: 'xxxxxxxxxx',
|
example: 'xxxxxxxxxx',
|
||||||
},
|
},
|
||||||
parent: {
|
parent: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.true, nullable: bool.true,
|
optional: true as const, nullable: true as const,
|
||||||
ref: 'DriveFolder'
|
ref: 'DriveFolder'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { Users } from '..';
|
||||||
import { Following } from '../entities/following';
|
import { Following } from '../entities/following';
|
||||||
import { ensure } from '../../prelude/ensure';
|
import { ensure } from '../../prelude/ensure';
|
||||||
import { awaitAll } from '../../prelude/await-all';
|
import { awaitAll } from '../../prelude/await-all';
|
||||||
import { SchemaType, types, bool } from '../../misc/schema';
|
import { SchemaType } from '../../misc/schema';
|
||||||
|
|
||||||
type LocalFollowerFollowing = Following & {
|
type LocalFollowerFollowing = Following & {
|
||||||
followerHost: null;
|
followerHost: null;
|
||||||
|
@ -88,41 +88,41 @@ export class FollowingRepository extends Repository<Following> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const packedFollowingSchema = {
|
export const packedFollowingSchema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
id: {
|
id: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
description: 'The unique identifier for this following.',
|
description: 'The unique identifier for this following.',
|
||||||
example: 'xxxxxxxxxx',
|
example: 'xxxxxxxxxx',
|
||||||
},
|
},
|
||||||
createdAt: {
|
createdAt: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
description: 'The date that the following was created.'
|
description: 'The date that the following was created.'
|
||||||
},
|
},
|
||||||
followeeId: {
|
followeeId: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
},
|
},
|
||||||
followee: {
|
followee: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.true, nullable: bool.false,
|
optional: true as const, nullable: false as const,
|
||||||
ref: 'User',
|
ref: 'User',
|
||||||
description: 'The followee.'
|
description: 'The followee.'
|
||||||
},
|
},
|
||||||
followerId: {
|
followerId: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
},
|
},
|
||||||
follower: {
|
follower: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.true, nullable: bool.false,
|
optional: true as const, nullable: false as const,
|
||||||
ref: 'User',
|
ref: 'User',
|
||||||
description: 'The follower.'
|
description: 'The follower.'
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { EntityRepository, Repository } from 'typeorm';
|
import { EntityRepository, Repository } from 'typeorm';
|
||||||
import { Hashtag } from '../entities/hashtag';
|
import { Hashtag } from '../entities/hashtag';
|
||||||
import { SchemaType, types, bool } from '../../misc/schema';
|
import { SchemaType } from '../../misc/schema';
|
||||||
|
|
||||||
export type PackedHashtag = SchemaType<typeof packedHashtagSchema>;
|
export type PackedHashtag = SchemaType<typeof packedHashtagSchema>;
|
||||||
|
|
||||||
|
@ -28,43 +28,43 @@ export class HashtagRepository extends Repository<Hashtag> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const packedHashtagSchema = {
|
export const packedHashtagSchema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
tag: {
|
tag: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'The hashtag name. No # prefixed.',
|
description: 'The hashtag name. No # prefixed.',
|
||||||
example: 'misskey',
|
example: 'misskey',
|
||||||
},
|
},
|
||||||
mentionedUsersCount: {
|
mentionedUsersCount: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'Number of all users using this hashtag.'
|
description: 'Number of all users using this hashtag.'
|
||||||
},
|
},
|
||||||
mentionedLocalUsersCount: {
|
mentionedLocalUsersCount: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'Number of local users using this hashtag.'
|
description: 'Number of local users using this hashtag.'
|
||||||
},
|
},
|
||||||
mentionedRemoteUsersCount: {
|
mentionedRemoteUsersCount: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'Number of remote users using this hashtag.'
|
description: 'Number of remote users using this hashtag.'
|
||||||
},
|
},
|
||||||
attachedUsersCount: {
|
attachedUsersCount: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'Number of all users who attached this hashtag to profile.'
|
description: 'Number of all users who attached this hashtag to profile.'
|
||||||
},
|
},
|
||||||
attachedLocalUsersCount: {
|
attachedLocalUsersCount: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'Number of local users who attached this hashtag to profile.'
|
description: 'Number of local users who attached this hashtag to profile.'
|
||||||
},
|
},
|
||||||
attachedRemoteUsersCount: {
|
attachedRemoteUsersCount: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'Number of remote users who attached this hashtag to profile.'
|
description: 'Number of remote users who attached this hashtag to profile.'
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { EntityRepository, Repository } from 'typeorm';
|
||||||
import { MessagingMessage } from '../entities/messaging-message';
|
import { MessagingMessage } from '../entities/messaging-message';
|
||||||
import { Users, DriveFiles, UserGroups } from '..';
|
import { Users, DriveFiles, UserGroups } from '..';
|
||||||
import { ensure } from '../../prelude/ensure';
|
import { ensure } from '../../prelude/ensure';
|
||||||
import { types, bool, SchemaType } from '../../misc/schema';
|
import { SchemaType } from '../../misc/schema';
|
||||||
|
|
||||||
export type PackedMessagingMessage = SchemaType<typeof packedMessagingMessageSchema>;
|
export type PackedMessagingMessage = SchemaType<typeof packedMessagingMessageSchema>;
|
||||||
|
|
||||||
|
@ -46,76 +46,76 @@ export class MessagingMessageRepository extends Repository<MessagingMessage> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const packedMessagingMessageSchema = {
|
export const packedMessagingMessageSchema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
id: {
|
id: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
description: 'The unique identifier for this MessagingMessage.',
|
description: 'The unique identifier for this MessagingMessage.',
|
||||||
example: 'xxxxxxxxxx',
|
example: 'xxxxxxxxxx',
|
||||||
},
|
},
|
||||||
createdAt: {
|
createdAt: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
description: 'The date that the MessagingMessage was created.'
|
description: 'The date that the MessagingMessage was created.'
|
||||||
},
|
},
|
||||||
userId: {
|
userId: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
},
|
},
|
||||||
user: {
|
user: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
ref: 'User',
|
ref: 'User',
|
||||||
optional: bool.true, nullable: bool.false,
|
optional: true as const, nullable: false as const,
|
||||||
},
|
},
|
||||||
text: {
|
text: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.true,
|
optional: false as const, nullable: true as const,
|
||||||
},
|
},
|
||||||
fileId: {
|
fileId: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.true, nullable: bool.true,
|
optional: true as const, nullable: true as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
},
|
},
|
||||||
file: {
|
file: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.true, nullable: bool.true,
|
optional: true as const, nullable: true as const,
|
||||||
ref: 'DriveFile',
|
ref: 'DriveFile',
|
||||||
},
|
},
|
||||||
recipientId: {
|
recipientId: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.true,
|
optional: false as const, nullable: true as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
},
|
},
|
||||||
recipient: {
|
recipient: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.true, nullable: bool.true,
|
optional: true as const, nullable: true as const,
|
||||||
ref: 'User'
|
ref: 'User'
|
||||||
},
|
},
|
||||||
groupId: {
|
groupId: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.true,
|
optional: false as const, nullable: true as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
},
|
},
|
||||||
group: {
|
group: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.true, nullable: bool.true,
|
optional: true as const, nullable: true as const,
|
||||||
ref: 'UserGroup'
|
ref: 'UserGroup'
|
||||||
},
|
},
|
||||||
isRead: {
|
isRead: {
|
||||||
type: types.boolean,
|
type: 'boolean' as const,
|
||||||
optional: bool.true, nullable: bool.false,
|
optional: true as const, nullable: false as const,
|
||||||
},
|
},
|
||||||
reads: {
|
reads: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.true, nullable: bool.false,
|
optional: true as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id'
|
format: 'id'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { Users } from '..';
|
||||||
import { Muting } from '../entities/muting';
|
import { Muting } from '../entities/muting';
|
||||||
import { ensure } from '../../prelude/ensure';
|
import { ensure } from '../../prelude/ensure';
|
||||||
import { awaitAll } from '../../prelude/await-all';
|
import { awaitAll } from '../../prelude/await-all';
|
||||||
import { types, bool, SchemaType } from '../../misc/schema';
|
import { SchemaType } from '../../misc/schema';
|
||||||
|
|
||||||
export type PackedMuting = SchemaType<typeof packedMutingSchema>;
|
export type PackedMuting = SchemaType<typeof packedMutingSchema>;
|
||||||
|
|
||||||
|
@ -34,30 +34,30 @@ export class MutingRepository extends Repository<Muting> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const packedMutingSchema = {
|
export const packedMutingSchema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
id: {
|
id: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
description: 'The unique identifier for this muting.',
|
description: 'The unique identifier for this muting.',
|
||||||
example: 'xxxxxxxxxx',
|
example: 'xxxxxxxxxx',
|
||||||
},
|
},
|
||||||
createdAt: {
|
createdAt: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
description: 'The date that the muting was created.'
|
description: 'The date that the muting was created.'
|
||||||
},
|
},
|
||||||
muteeId: {
|
muteeId: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
},
|
},
|
||||||
mutee: {
|
mutee: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'User',
|
ref: 'User',
|
||||||
description: 'The mutee.'
|
description: 'The mutee.'
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,7 +2,6 @@ import { EntityRepository, Repository } from 'typeorm';
|
||||||
import { NoteFavorite } from '../entities/note-favorite';
|
import { NoteFavorite } from '../entities/note-favorite';
|
||||||
import { Notes } from '..';
|
import { Notes } from '..';
|
||||||
import { ensure } from '../../prelude/ensure';
|
import { ensure } from '../../prelude/ensure';
|
||||||
import { types, bool } from '../../misc/schema';
|
|
||||||
|
|
||||||
@EntityRepository(NoteFavorite)
|
@EntityRepository(NoteFavorite)
|
||||||
export class NoteFavoriteRepository extends Repository<NoteFavorite> {
|
export class NoteFavoriteRepository extends Repository<NoteFavorite> {
|
||||||
|
@ -29,30 +28,30 @@ export class NoteFavoriteRepository extends Repository<NoteFavorite> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const packedNoteFavoriteSchema = {
|
export const packedNoteFavoriteSchema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
id: {
|
id: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
description: 'The unique identifier for this favorite.',
|
description: 'The unique identifier for this favorite.',
|
||||||
example: 'xxxxxxxxxx',
|
example: 'xxxxxxxxxx',
|
||||||
},
|
},
|
||||||
createdAt: {
|
createdAt: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
description: 'The date that the favorite was created.'
|
description: 'The date that the favorite was created.'
|
||||||
},
|
},
|
||||||
note: {
|
note: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Note',
|
ref: 'Note',
|
||||||
},
|
},
|
||||||
noteId: {
|
noteId: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { EntityRepository, Repository } from 'typeorm';
|
||||||
import { NoteReaction } from '../entities/note-reaction';
|
import { NoteReaction } from '../entities/note-reaction';
|
||||||
import { Users } from '..';
|
import { Users } from '..';
|
||||||
import { ensure } from '../../prelude/ensure';
|
import { ensure } from '../../prelude/ensure';
|
||||||
import { types, bool, SchemaType } from '../../misc/schema';
|
import { SchemaType } from '../../misc/schema';
|
||||||
|
|
||||||
export type PackedNoteReaction = SchemaType<typeof packedNoteReactionSchema>;
|
export type PackedNoteReaction = SchemaType<typeof packedNoteReactionSchema>;
|
||||||
|
|
||||||
|
@ -24,31 +24,31 @@ export class NoteReactionRepository extends Repository<NoteReaction> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const packedNoteReactionSchema = {
|
export const packedNoteReactionSchema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
id: {
|
id: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
description: 'The unique identifier for this reaction.',
|
description: 'The unique identifier for this reaction.',
|
||||||
example: 'xxxxxxxxxx',
|
example: 'xxxxxxxxxx',
|
||||||
},
|
},
|
||||||
createdAt: {
|
createdAt: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
description: 'The date that the reaction was created.'
|
description: 'The date that the reaction was created.'
|
||||||
},
|
},
|
||||||
user: {
|
user: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'User',
|
ref: 'User',
|
||||||
description: 'User who performed this reaction.'
|
description: 'User who performed this reaction.'
|
||||||
},
|
},
|
||||||
type: {
|
type: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'The reaction type.'
|
description: 'The reaction type.'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { unique, concat } from '../../prelude/array';
|
||||||
import { nyaize } from '../../misc/nyaize';
|
import { nyaize } from '../../misc/nyaize';
|
||||||
import { Emojis, Users, Apps, PollVotes, DriveFiles, NoteReactions, Followings, Polls } from '..';
|
import { Emojis, Users, Apps, PollVotes, DriveFiles, NoteReactions, Followings, Polls } from '..';
|
||||||
import { ensure } from '../../prelude/ensure';
|
import { ensure } from '../../prelude/ensure';
|
||||||
import { SchemaType, types, bool } from '../../misc/schema';
|
import { SchemaType } from '../../misc/schema';
|
||||||
import { awaitAll } from '../../prelude/await-all';
|
import { awaitAll } from '../../prelude/await-all';
|
||||||
|
|
||||||
export type PackedNote = SchemaType<typeof packedNoteSchema>;
|
export type PackedNote = SchemaType<typeof packedNoteSchema>;
|
||||||
|
@ -218,125 +218,125 @@ export class NoteRepository extends Repository<Note> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const packedNoteSchema = {
|
export const packedNoteSchema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
id: {
|
id: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
description: 'The unique identifier for this Note.',
|
description: 'The unique identifier for this Note.',
|
||||||
example: 'xxxxxxxxxx',
|
example: 'xxxxxxxxxx',
|
||||||
},
|
},
|
||||||
createdAt: {
|
createdAt: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
description: 'The date that the Note was created on Misskey.'
|
description: 'The date that the Note was created on Misskey.'
|
||||||
},
|
},
|
||||||
text: {
|
text: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.true,
|
optional: false as const, nullable: true as const,
|
||||||
},
|
},
|
||||||
cw: {
|
cw: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.true, nullable: bool.true,
|
optional: true as const, nullable: true as const,
|
||||||
},
|
},
|
||||||
userId: {
|
userId: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
},
|
},
|
||||||
user: {
|
user: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
ref: 'User',
|
ref: 'User',
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
},
|
},
|
||||||
replyId: {
|
replyId: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.true, nullable: bool.true,
|
optional: true as const, nullable: true as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
example: 'xxxxxxxxxx',
|
example: 'xxxxxxxxxx',
|
||||||
},
|
},
|
||||||
renoteId: {
|
renoteId: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.true, nullable: bool.true,
|
optional: true as const, nullable: true as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
example: 'xxxxxxxxxx',
|
example: 'xxxxxxxxxx',
|
||||||
},
|
},
|
||||||
reply: {
|
reply: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.true, nullable: bool.true,
|
optional: true as const, nullable: true as const,
|
||||||
ref: 'Note'
|
ref: 'Note'
|
||||||
},
|
},
|
||||||
renote: {
|
renote: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.true, nullable: bool.true,
|
optional: true as const, nullable: true as const,
|
||||||
ref: 'Note'
|
ref: 'Note'
|
||||||
},
|
},
|
||||||
viaMobile: {
|
viaMobile: {
|
||||||
type: types.boolean,
|
type: 'boolean' as const,
|
||||||
optional: bool.true, nullable: bool.false,
|
optional: true as const, nullable: false as const,
|
||||||
},
|
},
|
||||||
isHidden: {
|
isHidden: {
|
||||||
type: types.boolean,
|
type: 'boolean' as const,
|
||||||
optional: bool.true, nullable: bool.false,
|
optional: true as const, nullable: false as const,
|
||||||
},
|
},
|
||||||
visibility: {
|
visibility: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
},
|
},
|
||||||
mentions: {
|
mentions: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.true, nullable: bool.false,
|
optional: true as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id'
|
format: 'id'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
visibleUserIds: {
|
visibleUserIds: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.true, nullable: bool.false,
|
optional: true as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id'
|
format: 'id'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fileIds: {
|
fileIds: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.true, nullable: bool.false,
|
optional: true as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id'
|
format: 'id'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
files: {
|
files: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.true, nullable: bool.false,
|
optional: true as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'DriveFile'
|
ref: 'DriveFile'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
tags: {
|
tags: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.true, nullable: bool.false,
|
optional: true as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
poll: {
|
poll: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.true, nullable: bool.true,
|
optional: true as const, nullable: true as const,
|
||||||
},
|
},
|
||||||
geo: {
|
geo: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.true, nullable: bool.true,
|
optional: true as const, nullable: true as const,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { Users, Notes } from '..';
|
||||||
import { Notification } from '../entities/notification';
|
import { Notification } from '../entities/notification';
|
||||||
import { ensure } from '../../prelude/ensure';
|
import { ensure } from '../../prelude/ensure';
|
||||||
import { awaitAll } from '../../prelude/await-all';
|
import { awaitAll } from '../../prelude/await-all';
|
||||||
import { types, bool, SchemaType } from '../../misc/schema';
|
import { SchemaType } from '../../misc/schema';
|
||||||
|
|
||||||
export type PackedNotification = SchemaType<typeof packedNotificationSchema>;
|
export type PackedNotification = SchemaType<typeof packedNotificationSchema>;
|
||||||
|
|
||||||
|
@ -51,37 +51,37 @@ export class NotificationRepository extends Repository<Notification> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const packedNotificationSchema = {
|
export const packedNotificationSchema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
id: {
|
id: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
description: 'The unique identifier for this notification.',
|
description: 'The unique identifier for this notification.',
|
||||||
example: 'xxxxxxxxxx',
|
example: 'xxxxxxxxxx',
|
||||||
},
|
},
|
||||||
createdAt: {
|
createdAt: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
description: 'The date that the notification was created.'
|
description: 'The date that the notification was created.'
|
||||||
},
|
},
|
||||||
type: {
|
type: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
enum: ['follow', 'receiveFollowRequest', 'mention', 'reply', 'renote', 'quote', 'reaction', 'pollVote'],
|
enum: ['follow', 'receiveFollowRequest', 'mention', 'reply', 'renote', 'quote', 'reaction', 'pollVote'],
|
||||||
description: 'The type of the notification.'
|
description: 'The type of the notification.'
|
||||||
},
|
},
|
||||||
userId: {
|
userId: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.true, nullable: bool.true,
|
optional: true as const, nullable: true as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
},
|
},
|
||||||
user: {
|
user: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
ref: 'User',
|
ref: 'User',
|
||||||
optional: bool.true, nullable: bool.true,
|
optional: true as const, nullable: true as const,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { EntityRepository, Repository } from 'typeorm';
|
import { EntityRepository, Repository } from 'typeorm';
|
||||||
import { Page } from '../entities/page';
|
import { Page } from '../entities/page';
|
||||||
import { SchemaType, types, bool } from '../../misc/schema';
|
import { SchemaType } from '../../misc/schema';
|
||||||
import { Users, DriveFiles, PageLikes } from '..';
|
import { Users, DriveFiles, PageLikes } from '..';
|
||||||
import { awaitAll } from '../../prelude/await-all';
|
import { awaitAll } from '../../prelude/await-all';
|
||||||
import { DriveFile } from '../entities/drive-file';
|
import { DriveFile } from '../entities/drive-file';
|
||||||
|
@ -89,54 +89,54 @@ export class PageRepository extends Repository<Page> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const packedPageSchema = {
|
export const packedPageSchema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
id: {
|
id: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
example: 'xxxxxxxxxx',
|
example: 'xxxxxxxxxx',
|
||||||
},
|
},
|
||||||
createdAt: {
|
createdAt: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
},
|
},
|
||||||
updatedAt: {
|
updatedAt: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
},
|
},
|
||||||
title: {
|
title: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
},
|
},
|
||||||
name: {
|
name: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
},
|
},
|
||||||
summary: {
|
summary: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.true,
|
optional: false as const, nullable: true as const,
|
||||||
},
|
},
|
||||||
content: {
|
content: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
},
|
},
|
||||||
variables: {
|
variables: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
},
|
},
|
||||||
userId: {
|
userId: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
},
|
},
|
||||||
user: {
|
user: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
ref: 'User',
|
ref: 'User',
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { EntityRepository, Repository } from 'typeorm';
|
||||||
import { UserGroup } from '../entities/user-group';
|
import { UserGroup } from '../entities/user-group';
|
||||||
import { ensure } from '../../prelude/ensure';
|
import { ensure } from '../../prelude/ensure';
|
||||||
import { UserGroupJoinings } from '..';
|
import { UserGroupJoinings } from '..';
|
||||||
import { bool, types, SchemaType } from '../../misc/schema';
|
import { SchemaType } from '../../misc/schema';
|
||||||
|
|
||||||
export type PackedUserGroup = SchemaType<typeof packedUserGroupSchema>;
|
export type PackedUserGroup = SchemaType<typeof packedUserGroupSchema>;
|
||||||
|
|
||||||
|
@ -28,38 +28,38 @@ export class UserGroupRepository extends Repository<UserGroup> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const packedUserGroupSchema = {
|
export const packedUserGroupSchema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
id: {
|
id: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
description: 'The unique identifier for this UserGroup.',
|
description: 'The unique identifier for this UserGroup.',
|
||||||
example: 'xxxxxxxxxx',
|
example: 'xxxxxxxxxx',
|
||||||
},
|
},
|
||||||
createdAt: {
|
createdAt: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
description: 'The date that the UserGroup was created.'
|
description: 'The date that the UserGroup was created.'
|
||||||
},
|
},
|
||||||
name: {
|
name: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'The name of the UserGroup.'
|
description: 'The name of the UserGroup.'
|
||||||
},
|
},
|
||||||
ownerId: {
|
ownerId: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
nullable: bool.false, optional: bool.false,
|
nullable: false as const, optional: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
},
|
},
|
||||||
userIds: {
|
userIds: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
nullable: bool.false, optional: bool.true,
|
nullable: false as const, optional: true as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
nullable: bool.false, optional: bool.false,
|
nullable: false as const, optional: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { EntityRepository, Repository } from 'typeorm';
|
||||||
import { UserList } from '../entities/user-list';
|
import { UserList } from '../entities/user-list';
|
||||||
import { ensure } from '../../prelude/ensure';
|
import { ensure } from '../../prelude/ensure';
|
||||||
import { UserListJoinings } from '..';
|
import { UserListJoinings } from '..';
|
||||||
import { bool, types, SchemaType } from '../../misc/schema';
|
import { SchemaType } from '../../misc/schema';
|
||||||
|
|
||||||
export type PackedUserList = SchemaType<typeof packedUserListSchema>;
|
export type PackedUserList = SchemaType<typeof packedUserListSchema>;
|
||||||
|
|
||||||
|
@ -27,33 +27,33 @@ export class UserListRepository extends Repository<UserList> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const packedUserListSchema = {
|
export const packedUserListSchema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
id: {
|
id: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
description: 'The unique identifier for this UserList.',
|
description: 'The unique identifier for this UserList.',
|
||||||
example: 'xxxxxxxxxx',
|
example: 'xxxxxxxxxx',
|
||||||
},
|
},
|
||||||
createdAt: {
|
createdAt: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
description: 'The date that the UserList was created.'
|
description: 'The date that the UserList was created.'
|
||||||
},
|
},
|
||||||
name: {
|
name: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'The name of the UserList.'
|
description: 'The name of the UserList.'
|
||||||
},
|
},
|
||||||
userIds: {
|
userIds: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
nullable: bool.false, optional: bool.true,
|
nullable: false as const, optional: true as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
nullable: bool.false, optional: bool.false,
|
nullable: false as const, optional: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { User, ILocalUser, IRemoteUser } from '../entities/user';
|
||||||
import { Emojis, Notes, NoteUnreads, FollowRequests, Notifications, MessagingMessages, UserNotePinings, Followings, Blockings, Mutings, UserProfiles, UserGroupJoinings } from '..';
|
import { Emojis, Notes, NoteUnreads, FollowRequests, Notifications, MessagingMessages, UserNotePinings, Followings, Blockings, Mutings, UserProfiles, UserGroupJoinings } from '..';
|
||||||
import { ensure } from '../../prelude/ensure';
|
import { ensure } from '../../prelude/ensure';
|
||||||
import config from '../../config';
|
import config from '../../config';
|
||||||
import { SchemaType, bool, types } from '../../misc/schema';
|
import { SchemaType } from '../../misc/schema';
|
||||||
import { awaitAll } from '../../prelude/await-all';
|
import { awaitAll } from '../../prelude/await-all';
|
||||||
|
|
||||||
export type PackedUser = SchemaType<typeof packedUserSchema>;
|
export type PackedUser = SchemaType<typeof packedUserSchema>;
|
||||||
|
@ -243,150 +243,150 @@ export class UserRepository extends Repository<User> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const packedUserSchema = {
|
export const packedUserSchema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
nullable: bool.false, optional: bool.false,
|
nullable: false as const, optional: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
id: {
|
id: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
nullable: bool.false, optional: bool.false,
|
nullable: false as const, optional: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
description: 'The unique identifier for this User.',
|
description: 'The unique identifier for this User.',
|
||||||
example: 'xxxxxxxxxx',
|
example: 'xxxxxxxxxx',
|
||||||
},
|
},
|
||||||
username: {
|
username: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
nullable: bool.false, optional: bool.false,
|
nullable: false as const, optional: false as const,
|
||||||
description: 'The screen name, handle, or alias that this user identifies themselves with.',
|
description: 'The screen name, handle, or alias that this user identifies themselves with.',
|
||||||
example: 'ai'
|
example: 'ai'
|
||||||
},
|
},
|
||||||
name: {
|
name: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
nullable: bool.true, optional: bool.false,
|
nullable: true as const, optional: false as const,
|
||||||
description: 'The name of the user, as they’ve defined it.',
|
description: 'The name of the user, as they’ve defined it.',
|
||||||
example: '藍'
|
example: '藍'
|
||||||
},
|
},
|
||||||
url: {
|
url: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
format: 'url',
|
format: 'url',
|
||||||
nullable: bool.true, optional: bool.true,
|
nullable: true as const, optional: true as const,
|
||||||
},
|
},
|
||||||
avatarUrl: {
|
avatarUrl: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
format: 'url',
|
format: 'url',
|
||||||
nullable: bool.true, optional: bool.false,
|
nullable: true as const, optional: false as const,
|
||||||
},
|
},
|
||||||
avatarColor: {
|
avatarColor: {
|
||||||
type: types.any,
|
type: 'any' as const,
|
||||||
nullable: bool.true, optional: bool.false,
|
nullable: true as const, optional: false as const,
|
||||||
},
|
},
|
||||||
bannerUrl: {
|
bannerUrl: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
format: 'url',
|
format: 'url',
|
||||||
nullable: bool.true, optional: bool.true,
|
nullable: true as const, optional: true as const,
|
||||||
},
|
},
|
||||||
bannerColor: {
|
bannerColor: {
|
||||||
type: types.any,
|
type: 'any' as const,
|
||||||
nullable: bool.true, optional: bool.true,
|
nullable: true as const, optional: true as const,
|
||||||
},
|
},
|
||||||
emojis: {
|
emojis: {
|
||||||
type: types.any,
|
type: 'any' as const,
|
||||||
nullable: bool.true, optional: bool.false,
|
nullable: true as const, optional: false as const,
|
||||||
},
|
},
|
||||||
host: {
|
host: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
nullable: bool.true, optional: bool.false,
|
nullable: true as const, optional: false as const,
|
||||||
example: 'misskey.example.com'
|
example: 'misskey.example.com'
|
||||||
},
|
},
|
||||||
description: {
|
description: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
nullable: bool.true, optional: bool.true,
|
nullable: true as const, optional: true as const,
|
||||||
description: 'The user-defined UTF-8 string describing their account.',
|
description: 'The user-defined UTF-8 string describing their account.',
|
||||||
example: 'Hi masters, I am Ai!'
|
example: 'Hi masters, I am Ai!'
|
||||||
},
|
},
|
||||||
birthday: {
|
birthday: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
nullable: bool.true, optional: bool.true,
|
nullable: true as const, optional: true as const,
|
||||||
example: '2018-03-12'
|
example: '2018-03-12'
|
||||||
},
|
},
|
||||||
createdAt: {
|
createdAt: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
nullable: bool.false, optional: bool.true,
|
nullable: false as const, optional: true as const,
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
description: 'The date that the user account was created on Misskey.'
|
description: 'The date that the user account was created on Misskey.'
|
||||||
},
|
},
|
||||||
updatedAt: {
|
updatedAt: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
nullable: bool.true, optional: bool.true,
|
nullable: true as const, optional: true as const,
|
||||||
format: 'date-time',
|
format: 'date-time',
|
||||||
},
|
},
|
||||||
location: {
|
location: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
nullable: bool.true, optional: bool.true,
|
nullable: true as const, optional: true as const,
|
||||||
},
|
},
|
||||||
followersCount: {
|
followersCount: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
nullable: bool.false, optional: bool.true,
|
nullable: false as const, optional: true as const,
|
||||||
description: 'The number of followers this account currently has.'
|
description: 'The number of followers this account currently has.'
|
||||||
},
|
},
|
||||||
followingCount: {
|
followingCount: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
nullable: bool.false, optional: bool.true,
|
nullable: false as const, optional: true as const,
|
||||||
description: 'The number of users this account is following.'
|
description: 'The number of users this account is following.'
|
||||||
},
|
},
|
||||||
notesCount: {
|
notesCount: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
nullable: bool.false, optional: bool.true,
|
nullable: false as const, optional: true as const,
|
||||||
description: 'The number of Notes (including renotes) issued by the user.'
|
description: 'The number of Notes (including renotes) issued by the user.'
|
||||||
},
|
},
|
||||||
isBot: {
|
isBot: {
|
||||||
type: types.boolean,
|
type: 'boolean' as const,
|
||||||
nullable: bool.false, optional: bool.true,
|
nullable: false as const, optional: true as const,
|
||||||
description: 'Whether this account is a bot.'
|
description: 'Whether this account is a bot.'
|
||||||
},
|
},
|
||||||
pinnedNoteIds: {
|
pinnedNoteIds: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
nullable: bool.false, optional: bool.true,
|
nullable: false as const, optional: true as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
nullable: bool.false, optional: bool.false,
|
nullable: false as const, optional: false as const,
|
||||||
format: 'id',
|
format: 'id',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
pinnedNotes: {
|
pinnedNotes: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
nullable: bool.false, optional: bool.true,
|
nullable: false as const, optional: true as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
nullable: bool.false, optional: bool.false,
|
nullable: false as const, optional: false as const,
|
||||||
ref: 'Note'
|
ref: 'Note'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
isCat: {
|
isCat: {
|
||||||
type: types.boolean,
|
type: 'boolean' as const,
|
||||||
nullable: bool.false, optional: bool.true,
|
nullable: false as const, optional: true as const,
|
||||||
description: 'Whether this account is a cat.'
|
description: 'Whether this account is a cat.'
|
||||||
},
|
},
|
||||||
isAdmin: {
|
isAdmin: {
|
||||||
type: types.boolean,
|
type: 'boolean' as const,
|
||||||
nullable: bool.false, optional: bool.true,
|
nullable: false as const, optional: true as const,
|
||||||
description: 'Whether this account is the admin.'
|
description: 'Whether this account is the admin.'
|
||||||
},
|
},
|
||||||
isModerator: {
|
isModerator: {
|
||||||
type: types.boolean,
|
type: 'boolean' as const,
|
||||||
nullable: bool.false, optional: bool.true,
|
nullable: false as const, optional: true as const,
|
||||||
description: 'Whether this account is a moderator.'
|
description: 'Whether this account is a moderator.'
|
||||||
},
|
},
|
||||||
isLocked: {
|
isLocked: {
|
||||||
type: types.boolean,
|
type: 'boolean' as const,
|
||||||
nullable: bool.false, optional: bool.true,
|
nullable: false as const, optional: true as const,
|
||||||
},
|
},
|
||||||
hasUnreadSpecifiedNotes: {
|
hasUnreadSpecifiedNotes: {
|
||||||
type: types.boolean,
|
type: 'boolean' as const,
|
||||||
nullable: bool.false, optional: bool.true,
|
nullable: false as const, optional: true as const,
|
||||||
},
|
},
|
||||||
hasUnreadMentions: {
|
hasUnreadMentions: {
|
||||||
type: types.boolean,
|
type: 'boolean' as const,
|
||||||
nullable: bool.false, optional: bool.true,
|
nullable: false as const, optional: true as const,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,7 +4,6 @@ import define from '../../define';
|
||||||
import { Apps } from '../../../../models';
|
import { Apps } from '../../../../models';
|
||||||
import { genId } from '../../../../misc/gen-id';
|
import { genId } from '../../../../misc/gen-id';
|
||||||
import { unique } from '../../../../prelude/array';
|
import { unique } from '../../../../prelude/array';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ['app'],
|
tags: ['app'],
|
||||||
|
@ -53,8 +52,8 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'App',
|
ref: 'App',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,7 +3,6 @@ import { ID } from '../../../../misc/cafy-id';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
import { ApiError } from '../../error';
|
import { ApiError } from '../../error';
|
||||||
import { Apps } from '../../../../models';
|
import { Apps } from '../../../../models';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ['app'],
|
tags: ['app'],
|
||||||
|
@ -15,8 +14,8 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'App',
|
ref: 'App',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ import define from '../../../define';
|
||||||
import { ApiError } from '../../../error';
|
import { ApiError } from '../../../error';
|
||||||
import { Apps, AuthSessions } from '../../../../../models';
|
import { Apps, AuthSessions } from '../../../../../models';
|
||||||
import { genId } from '../../../../../misc/gen-id';
|
import { genId } from '../../../../../misc/gen-id';
|
||||||
import { types, bool } from '../../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ['auth'],
|
tags: ['auth'],
|
||||||
|
@ -28,17 +27,17 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
token: {
|
token: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'セッションのトークン'
|
description: 'セッションのトークン'
|
||||||
},
|
},
|
||||||
url: {
|
url: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
format: 'url',
|
format: 'url',
|
||||||
description: 'セッションのURL'
|
description: 'セッションのURL'
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,7 +3,6 @@ import define from '../../../define';
|
||||||
import { ApiError } from '../../../error';
|
import { ApiError } from '../../../error';
|
||||||
import { Apps, AuthSessions, AccessTokens, Users } from '../../../../../models';
|
import { Apps, AuthSessions, AccessTokens, Users } from '../../../../../models';
|
||||||
import { ensure } from '../../../../../prelude/ensure';
|
import { ensure } from '../../../../../prelude/ensure';
|
||||||
import { types, bool } from '../../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ['auth'],
|
tags: ['auth'],
|
||||||
|
@ -29,18 +28,18 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
accessToken: {
|
accessToken: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'ユーザーのアクセストークン',
|
description: 'ユーザーのアクセストークン',
|
||||||
},
|
},
|
||||||
|
|
||||||
user: {
|
user: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'User',
|
ref: 'User',
|
||||||
description: '認証したユーザー'
|
description: '認証したユーザー'
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,7 +3,6 @@ import { ID } from '../../../../misc/cafy-id';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
import { Blockings } from '../../../../models';
|
import { Blockings } from '../../../../models';
|
||||||
import { makePaginationQuery } from '../../common/make-pagination-query';
|
import { makePaginationQuery } from '../../common/make-pagination-query';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -33,11 +32,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Blocking',
|
ref: 'Blocking',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import define from '../define';
|
import define from '../define';
|
||||||
import { fetchMeta } from '../../../misc/fetch-meta';
|
import { fetchMeta } from '../../../misc/fetch-meta';
|
||||||
import { DriveFiles } from '../../../models';
|
import { DriveFiles } from '../../../models';
|
||||||
import { types, bool } from '../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -16,16 +15,16 @@ export const meta = {
|
||||||
kind: 'read:drive',
|
kind: 'read:drive',
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
capacity: {
|
capacity: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
},
|
},
|
||||||
usage: {
|
usage: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,6 @@ import { ID } from '../../../../misc/cafy-id';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
import { DriveFiles } from '../../../../models';
|
import { DriveFiles } from '../../../../models';
|
||||||
import { makePaginationQuery } from '../../common/make-pagination-query';
|
import { makePaginationQuery } from '../../common/make-pagination-query';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -42,11 +41,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'DriveFile',
|
ref: 'DriveFile',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,7 +3,6 @@ import { ID } from '../../../../../misc/cafy-id';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
import { ApiError } from '../../../error';
|
import { ApiError } from '../../../error';
|
||||||
import { DriveFiles, Notes } from '../../../../../models';
|
import { DriveFiles, Notes } from '../../../../../models';
|
||||||
import { types, bool } from '../../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
stability: 'stable',
|
stability: 'stable',
|
||||||
|
@ -30,11 +29,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Note',
|
ref: 'Note',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import $ from 'cafy';
|
import $ from 'cafy';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
import { DriveFiles } from '../../../../../models';
|
import { DriveFiles } from '../../../../../models';
|
||||||
import { types, bool } from '../../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -25,8 +24,8 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.boolean,
|
type: 'boolean' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@ import define from '../../../define';
|
||||||
import { apiLogger } from '../../../logger';
|
import { apiLogger } from '../../../logger';
|
||||||
import { ApiError } from '../../../error';
|
import { ApiError } from '../../../error';
|
||||||
import { DriveFiles } from '../../../../../models';
|
import { DriveFiles } from '../../../../../models';
|
||||||
import { types, bool } from '../../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -57,8 +56,8 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'DriveFile',
|
ref: 'DriveFile',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import $ from 'cafy';
|
import $ from 'cafy';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
import { DriveFiles } from '../../../../../models';
|
import { DriveFiles } from '../../../../../models';
|
||||||
import { types, bool } from '../../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -24,11 +23,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'DriveFile',
|
ref: 'DriveFile',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,7 +2,6 @@ import $ from 'cafy';
|
||||||
import { ID } from '../../../../../misc/cafy-id';
|
import { ID } from '../../../../../misc/cafy-id';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
import { DriveFiles } from '../../../../../models';
|
import { DriveFiles } from '../../../../../models';
|
||||||
import { types, bool } from '../../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
|
@ -26,11 +25,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'DriveFile',
|
ref: 'DriveFile',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -4,7 +4,6 @@ import define from '../../../define';
|
||||||
import { ApiError } from '../../../error';
|
import { ApiError } from '../../../error';
|
||||||
import { DriveFile } from '../../../../../models/entities/drive-file';
|
import { DriveFile } from '../../../../../models/entities/drive-file';
|
||||||
import { DriveFiles } from '../../../../../models';
|
import { DriveFiles } from '../../../../../models';
|
||||||
import { types, bool } from '../../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
stability: 'stable',
|
stability: 'stable',
|
||||||
|
@ -39,8 +38,8 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'DriveFile',
|
ref: 'DriveFile',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@ import { ID } from '../../../../misc/cafy-id';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
import { DriveFolders } from '../../../../models';
|
import { DriveFolders } from '../../../../models';
|
||||||
import { makePaginationQuery } from '../../common/make-pagination-query';
|
import { makePaginationQuery } from '../../common/make-pagination-query';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -38,11 +37,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'DriveFolder',
|
ref: 'DriveFolder',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,7 +2,6 @@ import $ from 'cafy';
|
||||||
import { ID } from '../../../../../misc/cafy-id';
|
import { ID } from '../../../../../misc/cafy-id';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
import { DriveFolders } from '../../../../../models';
|
import { DriveFolders } from '../../../../../models';
|
||||||
import { types, bool } from '../../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ['drive'],
|
tags: ['drive'],
|
||||||
|
@ -26,11 +25,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'DriveFolder',
|
ref: 'DriveFolder',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,7 +3,6 @@ import { ID } from '../../../../../misc/cafy-id';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
import { ApiError } from '../../../error';
|
import { ApiError } from '../../../error';
|
||||||
import { DriveFolders } from '../../../../../models';
|
import { DriveFolders } from '../../../../../models';
|
||||||
import { types, bool } from '../../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
stability: 'stable',
|
stability: 'stable',
|
||||||
|
@ -30,8 +29,8 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'DriveFolder',
|
ref: 'DriveFolder',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@ import { ID } from '../../../../misc/cafy-id';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
import { DriveFiles } from '../../../../models';
|
import { DriveFiles } from '../../../../models';
|
||||||
import { makePaginationQuery } from '../../common/make-pagination-query';
|
import { makePaginationQuery } from '../../common/make-pagination-query';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ['drive'],
|
tags: ['drive'],
|
||||||
|
@ -32,11 +31,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'DriveFile',
|
ref: 'DriveFile',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import $ from 'cafy';
|
import $ from 'cafy';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
import { Hashtags } from '../../../../models';
|
import { Hashtags } from '../../../../models';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ['hashtags'],
|
tags: ['hashtags'],
|
||||||
|
@ -48,11 +47,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Hashtag',
|
ref: 'Hashtag',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import $ from 'cafy';
|
import $ from 'cafy';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
import { Hashtags } from '../../../../models';
|
import { Hashtags } from '../../../../models';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -38,11 +37,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,6 @@ import $ from 'cafy';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
import { ApiError } from '../../error';
|
import { ApiError } from '../../error';
|
||||||
import { Hashtags } from '../../../../models';
|
import { Hashtags } from '../../../../models';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -24,8 +23,8 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Hashtag',
|
ref: 'Hashtag',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@ import define from '../../define';
|
||||||
import { fetchMeta } from '../../../../misc/fetch-meta';
|
import { fetchMeta } from '../../../../misc/fetch-meta';
|
||||||
import { Notes } from '../../../../models';
|
import { Notes } from '../../../../models';
|
||||||
import { Note } from '../../../../models/entities/note';
|
import { Note } from '../../../../models/entities/note';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
トレンドに載るためには「『直近a分間のユニーク投稿数が今からa分前~今からb分前の間のユニーク投稿数のn倍以上』のハッシュタグの上位5位以内に入る」ことが必要
|
トレンドに載るためには「『直近a分間のユニーク投稿数が今からa分前~今からb分前の間のユニーク投稿数のn倍以上』のハッシュタグの上位5位以内に入る」ことが必要
|
||||||
|
@ -24,27 +23,27 @@ export const meta = {
|
||||||
requireCredential: false,
|
requireCredential: false,
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
tag: {
|
tag: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
},
|
},
|
||||||
chart: {
|
chart: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
usersCount: {
|
usersCount: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import $ from 'cafy';
|
import $ from 'cafy';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
import { Users } from '../../../../models';
|
import { Users } from '../../../../models';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
requireCredential: false,
|
requireCredential: false,
|
||||||
|
@ -48,11 +47,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'User',
|
ref: 'User',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import define from '../define';
|
import define from '../define';
|
||||||
import { Users } from '../../../models';
|
import { Users } from '../../../models';
|
||||||
import { types, bool } from '../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
stability: 'stable',
|
stability: 'stable',
|
||||||
|
@ -16,8 +15,8 @@ export const meta = {
|
||||||
params: {},
|
params: {},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'User',
|
ref: 'User',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,7 +3,6 @@ import { ID } from '../../../../misc/cafy-id';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
import { NoteFavorites } from '../../../../models';
|
import { NoteFavorites } from '../../../../models';
|
||||||
import { makePaginationQuery } from '../../common/make-pagination-query';
|
import { makePaginationQuery } from '../../common/make-pagination-query';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -33,11 +32,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'NoteFavorite',
|
ref: 'NoteFavorite',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -4,7 +4,6 @@ import { readNotification } from '../../common/read-notification';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
import { makePaginationQuery } from '../../common/make-pagination-query';
|
import { makePaginationQuery } from '../../common/make-pagination-query';
|
||||||
import { Notifications, Followings, Mutings } from '../../../../models';
|
import { Notifications, Followings, Mutings } from '../../../../models';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -54,11 +53,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Notification',
|
ref: 'Notification',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,7 +3,6 @@ import define from '../../define';
|
||||||
import { MessagingMessage } from '../../../../models/entities/messaging-message';
|
import { MessagingMessage } from '../../../../models/entities/messaging-message';
|
||||||
import { MessagingMessages, Mutings, UserGroupJoinings } from '../../../../models';
|
import { MessagingMessages, Mutings, UserGroupJoinings } from '../../../../models';
|
||||||
import { Brackets } from 'typeorm';
|
import { Brackets } from 'typeorm';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -30,11 +29,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'MessagingMessage',
|
ref: 'MessagingMessage',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,7 +5,6 @@ import { ApiError } from '../../error';
|
||||||
import { getUser } from '../../common/getters';
|
import { getUser } from '../../common/getters';
|
||||||
import { MessagingMessages, UserGroups, UserGroupJoinings } from '../../../../models';
|
import { MessagingMessages, UserGroups, UserGroupJoinings } from '../../../../models';
|
||||||
import { makePaginationQuery } from '../../common/make-pagination-query';
|
import { makePaginationQuery } from '../../common/make-pagination-query';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
import { Brackets } from 'typeorm';
|
import { Brackets } from 'typeorm';
|
||||||
import { readUserMessagingMessage, readGroupMessagingMessage } from '../../common/read-messaging-message';
|
import { readUserMessagingMessage, readGroupMessagingMessage } from '../../common/read-messaging-message';
|
||||||
|
|
||||||
|
@ -58,11 +57,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'MessagingMessage',
|
ref: 'MessagingMessage',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -9,7 +9,6 @@ import { getUser } from '../../../common/getters';
|
||||||
import { MessagingMessages, DriveFiles, Mutings, UserGroups, UserGroupJoinings } from '../../../../../models';
|
import { MessagingMessages, DriveFiles, Mutings, UserGroups, UserGroupJoinings } from '../../../../../models';
|
||||||
import { MessagingMessage } from '../../../../../models/entities/messaging-message';
|
import { MessagingMessage } from '../../../../../models/entities/messaging-message';
|
||||||
import { genId } from '../../../../../misc/gen-id';
|
import { genId } from '../../../../../misc/gen-id';
|
||||||
import { types, bool } from '../../../../../misc/schema';
|
|
||||||
import { User } from '../../../../../models/entities/user';
|
import { User } from '../../../../../models/entities/user';
|
||||||
import { UserGroup } from '../../../../../models/entities/user-group';
|
import { UserGroup } from '../../../../../models/entities/user-group';
|
||||||
import { Not } from 'typeorm';
|
import { Not } from 'typeorm';
|
||||||
|
@ -53,8 +52,8 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'MessagingMessage',
|
ref: 'MessagingMessage',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ import define from '../define';
|
||||||
import { fetchMeta } from '../../../misc/fetch-meta';
|
import { fetchMeta } from '../../../misc/fetch-meta';
|
||||||
import * as pkg from '../../../../package.json';
|
import * as pkg from '../../../../package.json';
|
||||||
import { Emojis } from '../../../models';
|
import { Emojis } from '../../../models';
|
||||||
import { types, bool } from '../../../misc/schema';
|
|
||||||
import { getConnection } from 'typeorm';
|
import { getConnection } from 'typeorm';
|
||||||
import redis from '../../../db/redis';
|
import redis from '../../../db/redis';
|
||||||
|
|
||||||
|
@ -29,40 +28,40 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
version: {
|
version: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'The version of Misskey of this instance.',
|
description: 'The version of Misskey of this instance.',
|
||||||
example: pkg.version
|
example: pkg.version
|
||||||
},
|
},
|
||||||
name: {
|
name: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'The name of this instance.',
|
description: 'The name of this instance.',
|
||||||
},
|
},
|
||||||
description: {
|
description: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'The description of this instance.',
|
description: 'The description of this instance.',
|
||||||
},
|
},
|
||||||
announcements: {
|
announcements: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
title: {
|
title: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'The title of the announcement.',
|
description: 'The title of the announcement.',
|
||||||
},
|
},
|
||||||
text: {
|
text: {
|
||||||
type: types.string,
|
type: 'string' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'The text of the announcement. (can be HTML)',
|
description: 'The text of the announcement. (can be HTML)',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -70,23 +69,23 @@ export const meta = {
|
||||||
description: 'The announcements of this instance.',
|
description: 'The announcements of this instance.',
|
||||||
},
|
},
|
||||||
disableRegistration: {
|
disableRegistration: {
|
||||||
type: types.boolean,
|
type: 'boolean' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'Whether disabled open registration.',
|
description: 'Whether disabled open registration.',
|
||||||
},
|
},
|
||||||
disableLocalTimeline: {
|
disableLocalTimeline: {
|
||||||
type: types.boolean,
|
type: 'boolean' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'Whether disabled LTL and STL.',
|
description: 'Whether disabled LTL and STL.',
|
||||||
},
|
},
|
||||||
disableGlobalTimeline: {
|
disableGlobalTimeline: {
|
||||||
type: types.boolean,
|
type: 'boolean' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'Whether disabled GTL.',
|
description: 'Whether disabled GTL.',
|
||||||
},
|
},
|
||||||
enableEmojiReaction: {
|
enableEmojiReaction: {
|
||||||
type: types.boolean,
|
type: 'boolean' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'Whether enabled emoji reaction.',
|
description: 'Whether enabled emoji reaction.',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,6 @@ import { ID } from '../../../../misc/cafy-id';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
import { makePaginationQuery } from '../../common/make-pagination-query';
|
import { makePaginationQuery } from '../../common/make-pagination-query';
|
||||||
import { Mutings } from '../../../../models';
|
import { Mutings } from '../../../../models';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -33,11 +32,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Muting',
|
ref: 'Muting',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,7 +3,6 @@ import { ID } from '../../../misc/cafy-id';
|
||||||
import define from '../define';
|
import define from '../define';
|
||||||
import { makePaginationQuery } from '../common/make-pagination-query';
|
import { makePaginationQuery } from '../common/make-pagination-query';
|
||||||
import { Notes } from '../../../models';
|
import { Notes } from '../../../models';
|
||||||
import { types, bool } from '../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -63,11 +62,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Note',
|
ref: 'Note',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -6,7 +6,6 @@ import { generateVisibilityQuery } from '../../common/generate-visibility-query'
|
||||||
import { generateMuteQuery } from '../../common/generate-mute-query';
|
import { generateMuteQuery } from '../../common/generate-mute-query';
|
||||||
import { Brackets } from 'typeorm';
|
import { Brackets } from 'typeorm';
|
||||||
import { Notes } from '../../../../models';
|
import { Notes } from '../../../../models';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -42,11 +41,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Note',
|
ref: 'Note',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,7 +5,6 @@ import { ApiError } from '../../error';
|
||||||
import { getNote } from '../../common/getters';
|
import { getNote } from '../../common/getters';
|
||||||
import { Note } from '../../../../models/entities/note';
|
import { Note } from '../../../../models/entities/note';
|
||||||
import { Notes } from '../../../../models';
|
import { Notes } from '../../../../models';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -38,11 +37,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Note',
|
ref: 'Note',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -10,7 +10,6 @@ import { User } from '../../../../models/entities/user';
|
||||||
import { Users, DriveFiles, Notes } from '../../../../models';
|
import { Users, DriveFiles, Notes } from '../../../../models';
|
||||||
import { DriveFile } from '../../../../models/entities/drive-file';
|
import { DriveFile } from '../../../../models/entities/drive-file';
|
||||||
import { Note } from '../../../../models/entities/note';
|
import { Note } from '../../../../models/entities/note';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
let maxNoteTextLength = 1000;
|
let maxNoteTextLength = 1000;
|
||||||
|
|
||||||
|
@ -175,12 +174,12 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
createdNote: {
|
createdNote: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Note',
|
ref: 'Note',
|
||||||
description: '作成した投稿'
|
description: '作成した投稿'
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,6 @@ import $ from 'cafy';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
import { generateMuteQuery } from '../../common/generate-mute-query';
|
import { generateMuteQuery } from '../../common/generate-mute-query';
|
||||||
import { Notes } from '../../../../models';
|
import { Notes } from '../../../../models';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -25,11 +24,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Note',
|
ref: 'Note',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -7,7 +7,6 @@ import { makePaginationQuery } from '../../common/make-pagination-query';
|
||||||
import { Notes } from '../../../../models';
|
import { Notes } from '../../../../models';
|
||||||
import { generateMuteQuery } from '../../common/generate-mute-query';
|
import { generateMuteQuery } from '../../common/generate-mute-query';
|
||||||
import { activeUsersChart } from '../../../../services/chart';
|
import { activeUsersChart } from '../../../../services/chart';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -47,11 +46,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Note',
|
ref: 'Note',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -9,7 +9,6 @@ import { Brackets } from 'typeorm';
|
||||||
import { generateVisibilityQuery } from '../../common/generate-visibility-query';
|
import { generateVisibilityQuery } from '../../common/generate-visibility-query';
|
||||||
import { generateMuteQuery } from '../../common/generate-mute-query';
|
import { generateMuteQuery } from '../../common/generate-mute-query';
|
||||||
import { activeUsersChart } from '../../../../services/chart';
|
import { activeUsersChart } from '../../../../services/chart';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -90,11 +89,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Note',
|
ref: 'Note',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -9,7 +9,6 @@ import { makePaginationQuery } from '../../common/make-pagination-query';
|
||||||
import { generateVisibilityQuery } from '../../common/generate-visibility-query';
|
import { generateVisibilityQuery } from '../../common/generate-visibility-query';
|
||||||
import { activeUsersChart } from '../../../../services/chart';
|
import { activeUsersChart } from '../../../../services/chart';
|
||||||
import { Brackets } from 'typeorm';
|
import { Brackets } from 'typeorm';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -64,11 +63,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Note',
|
ref: 'Note',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -7,7 +7,6 @@ import { generateVisibilityQuery } from '../../common/generate-visibility-query'
|
||||||
import { generateMuteQuery } from '../../common/generate-mute-query';
|
import { generateMuteQuery } from '../../common/generate-mute-query';
|
||||||
import { makePaginationQuery } from '../../common/make-pagination-query';
|
import { makePaginationQuery } from '../../common/make-pagination-query';
|
||||||
import { Brackets } from 'typeorm';
|
import { Brackets } from 'typeorm';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -44,11 +43,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Note',
|
ref: 'Note',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -4,7 +4,6 @@ import define from '../../define';
|
||||||
import { getNote } from '../../common/getters';
|
import { getNote } from '../../common/getters';
|
||||||
import { ApiError } from '../../error';
|
import { ApiError } from '../../error';
|
||||||
import { NoteReactions } from '../../../../models';
|
import { NoteReactions } from '../../../../models';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -45,11 +44,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'NoteReaction',
|
ref: 'NoteReaction',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -7,7 +7,6 @@ import { generateVisibilityQuery } from '../../common/generate-visibility-query'
|
||||||
import { generateMuteQuery } from '../../common/generate-mute-query';
|
import { generateMuteQuery } from '../../common/generate-mute-query';
|
||||||
import { makePaginationQuery } from '../../common/make-pagination-query';
|
import { makePaginationQuery } from '../../common/make-pagination-query';
|
||||||
import { Notes } from '../../../../models';
|
import { Notes } from '../../../../models';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -43,11 +42,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Note',
|
ref: 'Note',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,7 +5,6 @@ import { Notes } from '../../../../models';
|
||||||
import { makePaginationQuery } from '../../common/make-pagination-query';
|
import { makePaginationQuery } from '../../common/make-pagination-query';
|
||||||
import { generateVisibilityQuery } from '../../common/generate-visibility-query';
|
import { generateVisibilityQuery } from '../../common/generate-visibility-query';
|
||||||
import { generateMuteQuery } from '../../common/generate-mute-query';
|
import { generateMuteQuery } from '../../common/generate-mute-query';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -47,11 +46,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Note',
|
ref: 'Note',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -6,7 +6,6 @@ import { Notes } from '../../../../models';
|
||||||
import { generateMuteQuery } from '../../common/generate-mute-query';
|
import { generateMuteQuery } from '../../common/generate-mute-query';
|
||||||
import { generateVisibilityQuery } from '../../common/generate-visibility-query';
|
import { generateVisibilityQuery } from '../../common/generate-visibility-query';
|
||||||
import { Brackets } from 'typeorm';
|
import { Brackets } from 'typeorm';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -82,11 +81,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Note',
|
ref: 'Note',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -4,7 +4,6 @@ import define from '../../define';
|
||||||
import { ApiError } from '../../error';
|
import { ApiError } from '../../error';
|
||||||
import { Notes } from '../../../../models';
|
import { Notes } from '../../../../models';
|
||||||
import { In } from 'typeorm';
|
import { In } from 'typeorm';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
import { ID } from '../../../../misc/cafy-id';
|
import { ID } from '../../../../misc/cafy-id';
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
|
@ -44,11 +43,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Note',
|
ref: 'Note',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -4,7 +4,6 @@ import define from '../../define';
|
||||||
import { getNote } from '../../common/getters';
|
import { getNote } from '../../common/getters';
|
||||||
import { ApiError } from '../../error';
|
import { ApiError } from '../../error';
|
||||||
import { Notes } from '../../../../models';
|
import { Notes } from '../../../../models';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
stability: 'stable',
|
stability: 'stable',
|
||||||
|
@ -29,8 +28,8 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Note',
|
ref: 'Note',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@ import { generateVisibilityQuery } from '../../common/generate-visibility-query'
|
||||||
import { generateMuteQuery } from '../../common/generate-mute-query';
|
import { generateMuteQuery } from '../../common/generate-mute-query';
|
||||||
import { activeUsersChart } from '../../../../services/chart';
|
import { activeUsersChart } from '../../../../services/chart';
|
||||||
import { Brackets } from 'typeorm';
|
import { Brackets } from 'typeorm';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -89,11 +88,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Note',
|
ref: 'Note',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -6,7 +6,6 @@ import { UserLists, UserListJoinings, Notes } from '../../../../models';
|
||||||
import { makePaginationQuery } from '../../common/make-pagination-query';
|
import { makePaginationQuery } from '../../common/make-pagination-query';
|
||||||
import { generateVisibilityQuery } from '../../common/generate-visibility-query';
|
import { generateVisibilityQuery } from '../../common/generate-visibility-query';
|
||||||
import { activeUsersChart } from '../../../../services/chart';
|
import { activeUsersChart } from '../../../../services/chart';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -95,11 +94,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Note',
|
ref: 'Note',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,7 +2,6 @@ import $ from 'cafy';
|
||||||
import * as ms from 'ms';
|
import * as ms from 'ms';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
import { ID } from '../../../../misc/cafy-id';
|
import { ID } from '../../../../misc/cafy-id';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
import { Pages, DriveFiles } from '../../../../models';
|
import { Pages, DriveFiles } from '../../../../models';
|
||||||
import { genId } from '../../../../misc/gen-id';
|
import { genId } from '../../../../misc/gen-id';
|
||||||
import { Page } from '../../../../models/entities/page';
|
import { Page } from '../../../../models/entities/page';
|
||||||
|
@ -61,8 +60,8 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Page',
|
ref: 'Page',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@ import $ from 'cafy';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
import { ApiError } from '../../error';
|
import { ApiError } from '../../error';
|
||||||
import { Pages, Users } from '../../../../models';
|
import { Pages, Users } from '../../../../models';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
import { ID } from '../../../../misc/cafy-id';
|
import { ID } from '../../../../misc/cafy-id';
|
||||||
import { Page } from '../../../../models/entities/page';
|
import { Page } from '../../../../models/entities/page';
|
||||||
|
|
||||||
|
@ -34,8 +33,8 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Page',
|
ref: 'Page',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import define from '../define';
|
import define from '../define';
|
||||||
import { Users } from '../../../models';
|
import { Users } from '../../../models';
|
||||||
import { types, bool } from '../../../misc/schema';
|
|
||||||
import { fetchMeta } from '../../../misc/fetch-meta';
|
import { fetchMeta } from '../../../misc/fetch-meta';
|
||||||
import parseAcct from '../../../misc/acct/parse';
|
import parseAcct from '../../../misc/acct/parse';
|
||||||
import { User } from '../../../models/entities/user';
|
import { User } from '../../../models/entities/user';
|
||||||
|
@ -14,11 +13,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'User',
|
ref: 'User',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import define from '../define';
|
import define from '../define';
|
||||||
import { Notes, Users } from '../../../models';
|
import { Notes, Users } from '../../../models';
|
||||||
import { federationChart, driveChart } from '../../../services/chart';
|
import { federationChart, driveChart } from '../../../services/chart';
|
||||||
import { bool, types } from '../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
requireCredential: false,
|
requireCredential: false,
|
||||||
|
@ -16,32 +15,32 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
notesCount: {
|
notesCount: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'The count of all (local/remote) notes of this instance.',
|
description: 'The count of all (local/remote) notes of this instance.',
|
||||||
},
|
},
|
||||||
originalNotesCount: {
|
originalNotesCount: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'The count of all local notes of this instance.',
|
description: 'The count of all local notes of this instance.',
|
||||||
},
|
},
|
||||||
usersCount: {
|
usersCount: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'The count of all (local/remote) accounts of this instance.',
|
description: 'The count of all (local/remote) accounts of this instance.',
|
||||||
},
|
},
|
||||||
originalUsersCount: {
|
originalUsersCount: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'The count of all local accounts of this instance.',
|
description: 'The count of all local accounts of this instance.',
|
||||||
},
|
},
|
||||||
instances: {
|
instances: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'The count of federated instances.',
|
description: 'The count of federated instances.',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,6 @@ import $ from 'cafy';
|
||||||
import define from '../define';
|
import define from '../define';
|
||||||
import { Users } from '../../../models';
|
import { Users } from '../../../models';
|
||||||
import { generateMuteQueryForUsers } from '../common/generate-mute-query';
|
import { generateMuteQueryForUsers } from '../common/generate-mute-query';
|
||||||
import { types, bool } from '../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ['users'],
|
tags: ['users'],
|
||||||
|
@ -53,11 +52,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'User',
|
ref: 'User',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,7 +5,6 @@ import { ApiError } from '../../error';
|
||||||
import { Users, Followings } from '../../../../models';
|
import { Users, Followings } from '../../../../models';
|
||||||
import { makePaginationQuery } from '../../common/make-pagination-query';
|
import { makePaginationQuery } from '../../common/make-pagination-query';
|
||||||
import { toPunyNullable } from '../../../../misc/convert-host';
|
import { toPunyNullable } from '../../../../misc/convert-host';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -49,11 +48,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Following',
|
ref: 'Following',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,7 +5,6 @@ import { ApiError } from '../../error';
|
||||||
import { Users, Followings } from '../../../../models';
|
import { Users, Followings } from '../../../../models';
|
||||||
import { makePaginationQuery } from '../../common/make-pagination-query';
|
import { makePaginationQuery } from '../../common/make-pagination-query';
|
||||||
import { toPunyNullable } from '../../../../misc/convert-host';
|
import { toPunyNullable } from '../../../../misc/convert-host';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -49,11 +48,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Following',
|
ref: 'Following',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -6,7 +6,6 @@ import { ApiError } from '../../error';
|
||||||
import { getUser } from '../../common/getters';
|
import { getUser } from '../../common/getters';
|
||||||
import { Not, In, IsNull } from 'typeorm';
|
import { Not, In, IsNull } from 'typeorm';
|
||||||
import { Notes, Users } from '../../../../models';
|
import { Notes, Users } from '../../../../models';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
tags: ['users'],
|
tags: ['users'],
|
||||||
|
@ -29,11 +28,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'User',
|
ref: 'User',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,7 +3,6 @@ import define from '../../../define';
|
||||||
import { UserGroups, UserGroupJoinings } from '../../../../../models';
|
import { UserGroups, UserGroupJoinings } from '../../../../../models';
|
||||||
import { genId } from '../../../../../misc/gen-id';
|
import { genId } from '../../../../../misc/gen-id';
|
||||||
import { UserGroup } from '../../../../../models/entities/user-group';
|
import { UserGroup } from '../../../../../models/entities/user-group';
|
||||||
import { types, bool } from '../../../../../misc/schema';
|
|
||||||
import { UserGroupJoining } from '../../../../../models/entities/user-group-joining';
|
import { UserGroupJoining } from '../../../../../models/entities/user-group-joining';
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
|
@ -25,8 +24,8 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'UserGroup',
|
ref: 'UserGroup',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
import { UserGroups, UserGroupJoinings } from '../../../../../models';
|
import { UserGroups, UserGroupJoinings } from '../../../../../models';
|
||||||
import { types, bool } from '../../../../../misc/schema';
|
|
||||||
import { Not, In } from 'typeorm';
|
import { Not, In } from 'typeorm';
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
|
@ -15,11 +14,11 @@ export const meta = {
|
||||||
kind: 'read:user-groups',
|
kind: 'read:user-groups',
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'UserGroup',
|
ref: 'UserGroup',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
import { UserGroups } from '../../../../../models';
|
import { UserGroups } from '../../../../../models';
|
||||||
import { types, bool } from '../../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -14,11 +13,11 @@ export const meta = {
|
||||||
kind: 'read:user-groups',
|
kind: 'read:user-groups',
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'UserGroup',
|
ref: 'UserGroup',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,7 +3,6 @@ import { ID } from '../../../../../misc/cafy-id';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
import { ApiError } from '../../../error';
|
import { ApiError } from '../../../error';
|
||||||
import { UserGroups, UserGroupJoinings } from '../../../../../models';
|
import { UserGroups, UserGroupJoinings } from '../../../../../models';
|
||||||
import { types, bool } from '../../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -24,8 +23,8 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'UserGroup',
|
ref: 'UserGroup',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@ import define from '../../../define';
|
||||||
import { ApiError } from '../../../error';
|
import { ApiError } from '../../../error';
|
||||||
import { getUser } from '../../../common/getters';
|
import { getUser } from '../../../common/getters';
|
||||||
import { UserGroups, UserGroupJoinings } from '../../../../../models';
|
import { UserGroups, UserGroupJoinings } from '../../../../../models';
|
||||||
import { types, bool } from '../../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -33,8 +32,8 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'UserGroup',
|
ref: 'UserGroup',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@ import { ID } from '../../../../../misc/cafy-id';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
import { ApiError } from '../../../error';
|
import { ApiError } from '../../../error';
|
||||||
import { UserGroups } from '../../../../../models';
|
import { UserGroups } from '../../../../../models';
|
||||||
import { types, bool } from '../../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -36,8 +35,8 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'UserGroup',
|
ref: 'UserGroup',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@ import define from '../../../define';
|
||||||
import { UserLists } from '../../../../../models';
|
import { UserLists } from '../../../../../models';
|
||||||
import { genId } from '../../../../../misc/gen-id';
|
import { genId } from '../../../../../misc/gen-id';
|
||||||
import { UserList } from '../../../../../models/entities/user-list';
|
import { UserList } from '../../../../../models/entities/user-list';
|
||||||
import { types, bool } from '../../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -24,8 +23,8 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'UserList',
|
ref: 'UserList',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
import { UserLists } from '../../../../../models';
|
import { UserLists } from '../../../../../models';
|
||||||
import { types, bool } from '../../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -14,11 +13,11 @@ export const meta = {
|
||||||
kind: 'read:account',
|
kind: 'read:account',
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'UserList',
|
ref: 'UserList',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,7 +3,6 @@ import { ID } from '../../../../../misc/cafy-id';
|
||||||
import define from '../../../define';
|
import define from '../../../define';
|
||||||
import { ApiError } from '../../../error';
|
import { ApiError } from '../../../error';
|
||||||
import { UserLists } from '../../../../../models';
|
import { UserLists } from '../../../../../models';
|
||||||
import { types, bool } from '../../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -24,8 +23,8 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'UserList',
|
ref: 'UserList',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,6 @@ import { generateVisibilityQuery } from '../../common/generate-visibility-query'
|
||||||
import { Notes } from '../../../../models';
|
import { Notes } from '../../../../models';
|
||||||
import { generateMuteQuery } from '../../common/generate-mute-query';
|
import { generateMuteQuery } from '../../common/generate-mute-query';
|
||||||
import { Brackets } from 'typeorm';
|
import { Brackets } from 'typeorm';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -120,11 +119,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'Note',
|
ref: 'Note',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,7 +3,6 @@ import $ from 'cafy';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
import { Users, Followings } from '../../../../models';
|
import { Users, Followings } from '../../../../models';
|
||||||
import { generateMuteQueryForUsers } from '../../common/generate-mute-query';
|
import { generateMuteQueryForUsers } from '../../common/generate-mute-query';
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -29,11 +28,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'User',
|
ref: 'User',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,7 +2,6 @@ import $ from 'cafy';
|
||||||
import define from '../../define';
|
import define from '../../define';
|
||||||
import { Users } from '../../../../models';
|
import { Users } from '../../../../models';
|
||||||
import { User } from '../../../../models/entities/user';
|
import { User } from '../../../../models/entities/user';
|
||||||
import { bool, types } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -55,11 +54,11 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.array,
|
type: 'array' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
items: {
|
items: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'User',
|
ref: 'User',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -6,7 +6,6 @@ import { ApiError } from '../../error';
|
||||||
import { ID } from '../../../../misc/cafy-id';
|
import { ID } from '../../../../misc/cafy-id';
|
||||||
import { Users } from '../../../../models';
|
import { Users } from '../../../../models';
|
||||||
import { In } from 'typeorm';
|
import { In } from 'typeorm';
|
||||||
import { bool, types } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
desc: {
|
desc: {
|
||||||
|
@ -43,8 +42,8 @@ export const meta = {
|
||||||
},
|
},
|
||||||
|
|
||||||
res: {
|
res: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
ref: 'User',
|
ref: 'User',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const logSchema = {
|
export const logSchema = {
|
||||||
/**
|
/**
|
||||||
* アクティブユーザー数
|
* アクティブユーザー数
|
||||||
*/
|
*/
|
||||||
count: {
|
count: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'アクティブユーザー数',
|
description: 'アクティブユーザー数',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -15,17 +13,17 @@ export const logSchema = {
|
||||||
* アクティブユーザーに関するチャート
|
* アクティブユーザーに関するチャート
|
||||||
*/
|
*/
|
||||||
export const schema = {
|
export const schema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
local: {
|
local: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: logSchema
|
properties: logSchema
|
||||||
},
|
},
|
||||||
remote: {
|
remote: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: logSchema
|
properties: logSchema
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
const logSchema = {
|
const logSchema = {
|
||||||
/**
|
/**
|
||||||
* 集計期間時点での、全ドライブファイル数
|
* 集計期間時点での、全ドライブファイル数
|
||||||
*/
|
*/
|
||||||
totalCount: {
|
totalCount: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '集計期間時点での、全ドライブファイル数'
|
description: '集計期間時点での、全ドライブファイル数'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -14,8 +12,8 @@ const logSchema = {
|
||||||
* 集計期間時点での、全ドライブファイルの合計サイズ
|
* 集計期間時点での、全ドライブファイルの合計サイズ
|
||||||
*/
|
*/
|
||||||
totalSize: {
|
totalSize: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '集計期間時点での、全ドライブファイルの合計サイズ'
|
description: '集計期間時点での、全ドライブファイルの合計サイズ'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -23,8 +21,8 @@ const logSchema = {
|
||||||
* 増加したドライブファイル数
|
* 増加したドライブファイル数
|
||||||
*/
|
*/
|
||||||
incCount: {
|
incCount: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '増加したドライブファイル数'
|
description: '増加したドライブファイル数'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -32,8 +30,8 @@ const logSchema = {
|
||||||
* 増加したドライブ使用量
|
* 増加したドライブ使用量
|
||||||
*/
|
*/
|
||||||
incSize: {
|
incSize: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '増加したドライブ使用量'
|
description: '増加したドライブ使用量'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -41,8 +39,8 @@ const logSchema = {
|
||||||
* 減少したドライブファイル数
|
* 減少したドライブファイル数
|
||||||
*/
|
*/
|
||||||
decCount: {
|
decCount: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '減少したドライブファイル数'
|
description: '減少したドライブファイル数'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -50,24 +48,24 @@ const logSchema = {
|
||||||
* 減少したドライブ使用量
|
* 減少したドライブ使用量
|
||||||
*/
|
*/
|
||||||
decSize: {
|
decSize: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '減少したドライブ使用量'
|
description: '減少したドライブ使用量'
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export const schema = {
|
export const schema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
local: {
|
local: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: logSchema
|
properties: logSchema
|
||||||
},
|
},
|
||||||
remote: {
|
remote: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: logSchema
|
properties: logSchema
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,29 +1,27 @@
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* フェデレーションに関するチャート
|
* フェデレーションに関するチャート
|
||||||
*/
|
*/
|
||||||
export const schema = {
|
export const schema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
instance: {
|
instance: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
total: {
|
total: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'インスタンス数の合計'
|
description: 'インスタンス数の合計'
|
||||||
},
|
},
|
||||||
inc: {
|
inc: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '増加インスタンス数'
|
description: '増加インスタンス数'
|
||||||
},
|
},
|
||||||
dec: {
|
dec: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '減少インスタンス数'
|
description: '減少インスタンス数'
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const logSchema = {
|
export const logSchema = {
|
||||||
/**
|
/**
|
||||||
* 投稿された数
|
* 投稿された数
|
||||||
*/
|
*/
|
||||||
count: {
|
count: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '投稿された数',
|
description: '投稿された数',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -15,17 +13,17 @@ export const logSchema = {
|
||||||
* ハッシュタグに関するチャート
|
* ハッシュタグに関するチャート
|
||||||
*/
|
*/
|
||||||
export const schema = {
|
export const schema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
local: {
|
local: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: logSchema
|
properties: logSchema
|
||||||
},
|
},
|
||||||
remote: {
|
remote: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: logSchema
|
properties: logSchema
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,73 +1,71 @@
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* インスタンスごとのチャート
|
* インスタンスごとのチャート
|
||||||
*/
|
*/
|
||||||
export const schema = {
|
export const schema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
requests: {
|
requests: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
failed: {
|
failed: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '失敗したリクエスト数'
|
description: '失敗したリクエスト数'
|
||||||
},
|
},
|
||||||
succeeded: {
|
succeeded: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '成功したリクエスト数'
|
description: '成功したリクエスト数'
|
||||||
},
|
},
|
||||||
received: {
|
received: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '受信したリクエスト数'
|
description: '受信したリクエスト数'
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
notes: {
|
notes: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
total: {
|
total: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '集計期間時点での、全投稿数'
|
description: '集計期間時点での、全投稿数'
|
||||||
},
|
},
|
||||||
inc: {
|
inc: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '増加した投稿数'
|
description: '増加した投稿数'
|
||||||
},
|
},
|
||||||
dec: {
|
dec: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '減少した投稿数'
|
description: '減少した投稿数'
|
||||||
},
|
},
|
||||||
|
|
||||||
diffs: {
|
diffs: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
normal: {
|
normal: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '通常の投稿数の差分'
|
description: '通常の投稿数の差分'
|
||||||
},
|
},
|
||||||
|
|
||||||
reply: {
|
reply: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'リプライの投稿数の差分'
|
description: 'リプライの投稿数の差分'
|
||||||
},
|
},
|
||||||
|
|
||||||
renote: {
|
renote: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'Renoteの投稿数の差分'
|
description: 'Renoteの投稿数の差分'
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -76,103 +74,103 @@ export const schema = {
|
||||||
},
|
},
|
||||||
|
|
||||||
users: {
|
users: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
total: {
|
total: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '集計期間時点での、全ユーザー数'
|
description: '集計期間時点での、全ユーザー数'
|
||||||
},
|
},
|
||||||
inc: {
|
inc: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '増加したユーザー数'
|
description: '増加したユーザー数'
|
||||||
},
|
},
|
||||||
dec: {
|
dec: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '減少したユーザー数'
|
description: '減少したユーザー数'
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
following: {
|
following: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
total: {
|
total: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '集計期間時点での、全フォロー数'
|
description: '集計期間時点での、全フォロー数'
|
||||||
},
|
},
|
||||||
inc: {
|
inc: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '増加したフォロー数'
|
description: '増加したフォロー数'
|
||||||
},
|
},
|
||||||
dec: {
|
dec: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '減少したフォロー数'
|
description: '減少したフォロー数'
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
followers: {
|
followers: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
total: {
|
total: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '集計期間時点での、全フォロワー数'
|
description: '集計期間時点での、全フォロワー数'
|
||||||
},
|
},
|
||||||
inc: {
|
inc: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '増加したフォロワー数'
|
description: '増加したフォロワー数'
|
||||||
},
|
},
|
||||||
dec: {
|
dec: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '減少したフォロワー数'
|
description: '減少したフォロワー数'
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
drive: {
|
drive: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
totalFiles: {
|
totalFiles: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '集計期間時点での、全ドライブファイル数'
|
description: '集計期間時点での、全ドライブファイル数'
|
||||||
},
|
},
|
||||||
totalUsage: {
|
totalUsage: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '集計期間時点での、全ドライブファイルの合計サイズ'
|
description: '集計期間時点での、全ドライブファイルの合計サイズ'
|
||||||
},
|
},
|
||||||
incFiles: {
|
incFiles: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '増加したドライブファイル数'
|
description: '増加したドライブファイル数'
|
||||||
},
|
},
|
||||||
incUsage: {
|
incUsage: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '増加したドライブ使用量'
|
description: '増加したドライブ使用量'
|
||||||
},
|
},
|
||||||
decFiles: {
|
decFiles: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '減少したドライブファイル数'
|
description: '減少したドライブファイル数'
|
||||||
},
|
},
|
||||||
decUsage: {
|
decUsage: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '減少したドライブ使用量'
|
description: '減少したドライブ使用量'
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,35 +1,33 @@
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ネットワークに関するチャート
|
* ネットワークに関するチャート
|
||||||
*/
|
*/
|
||||||
export const schema = {
|
export const schema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
incomingRequests: {
|
incomingRequests: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '受信したリクエスト数'
|
description: '受信したリクエスト数'
|
||||||
},
|
},
|
||||||
outgoingRequests: {
|
outgoingRequests: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '送信したリクエスト数'
|
description: '送信したリクエスト数'
|
||||||
},
|
},
|
||||||
totalTime: {
|
totalTime: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '応答時間の合計' // TIP: (totalTime / incomingRequests) でひとつのリクエストに平均でどれくらいの時間がかかったか知れる
|
description: '応答時間の合計' // TIP: (totalTime / incomingRequests) でひとつのリクエストに平均でどれくらいの時間がかかったか知れる
|
||||||
},
|
},
|
||||||
incomingBytes: {
|
incomingBytes: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '合計受信データ量'
|
description: '合計受信データ量'
|
||||||
},
|
},
|
||||||
outgoingBytes: {
|
outgoingBytes: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '合計送信データ量'
|
description: '合計送信データ量'
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,43 +1,41 @@
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
const logSchema = {
|
const logSchema = {
|
||||||
total: {
|
total: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '集計期間時点での、全投稿数'
|
description: '集計期間時点での、全投稿数'
|
||||||
},
|
},
|
||||||
|
|
||||||
inc: {
|
inc: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '増加した投稿数'
|
description: '増加した投稿数'
|
||||||
},
|
},
|
||||||
|
|
||||||
dec: {
|
dec: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '減少した投稿数'
|
description: '減少した投稿数'
|
||||||
},
|
},
|
||||||
|
|
||||||
diffs: {
|
diffs: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
normal: {
|
normal: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '通常の投稿数の差分'
|
description: '通常の投稿数の差分'
|
||||||
},
|
},
|
||||||
|
|
||||||
reply: {
|
reply: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'リプライの投稿数の差分'
|
description: 'リプライの投稿数の差分'
|
||||||
},
|
},
|
||||||
|
|
||||||
renote: {
|
renote: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'Renoteの投稿数の差分'
|
description: 'Renoteの投稿数の差分'
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -45,17 +43,17 @@ const logSchema = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const schema = {
|
export const schema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
local: {
|
local: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: logSchema
|
properties: logSchema
|
||||||
},
|
},
|
||||||
remote: {
|
remote: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: logSchema
|
properties: logSchema
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,13 @@
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const schema = {
|
export const schema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
/**
|
/**
|
||||||
* 集計期間時点での、全ドライブファイル数
|
* 集計期間時点での、全ドライブファイル数
|
||||||
*/
|
*/
|
||||||
totalCount: {
|
totalCount: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '集計期間時点での、全ドライブファイル数'
|
description: '集計期間時点での、全ドライブファイル数'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -17,8 +15,8 @@ export const schema = {
|
||||||
* 集計期間時点での、全ドライブファイルの合計サイズ
|
* 集計期間時点での、全ドライブファイルの合計サイズ
|
||||||
*/
|
*/
|
||||||
totalSize: {
|
totalSize: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '集計期間時点での、全ドライブファイルの合計サイズ'
|
description: '集計期間時点での、全ドライブファイルの合計サイズ'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -26,8 +24,8 @@ export const schema = {
|
||||||
* 増加したドライブファイル数
|
* 増加したドライブファイル数
|
||||||
*/
|
*/
|
||||||
incCount: {
|
incCount: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '増加したドライブファイル数'
|
description: '増加したドライブファイル数'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -35,8 +33,8 @@ export const schema = {
|
||||||
* 増加したドライブ使用量
|
* 増加したドライブ使用量
|
||||||
*/
|
*/
|
||||||
incSize: {
|
incSize: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '増加したドライブ使用量'
|
description: '増加したドライブ使用量'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -44,8 +42,8 @@ export const schema = {
|
||||||
* 減少したドライブファイル数
|
* 減少したドライブファイル数
|
||||||
*/
|
*/
|
||||||
decCount: {
|
decCount: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '減少したドライブファイル数'
|
description: '減少したドライブファイル数'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -53,8 +51,8 @@ export const schema = {
|
||||||
* 減少したドライブ使用量
|
* 減少したドライブ使用量
|
||||||
*/
|
*/
|
||||||
decSize: {
|
decSize: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '減少したドライブ使用量'
|
description: '減少したドライブ使用量'
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,19 +1,17 @@
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const logSchema = {
|
export const logSchema = {
|
||||||
/**
|
/**
|
||||||
* フォローしている
|
* フォローしている
|
||||||
*/
|
*/
|
||||||
followings: {
|
followings: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
/**
|
/**
|
||||||
* フォローしている合計
|
* フォローしている合計
|
||||||
*/
|
*/
|
||||||
total: {
|
total: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'フォローしている合計',
|
description: 'フォローしている合計',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -21,8 +19,8 @@ export const logSchema = {
|
||||||
* フォローした数
|
* フォローした数
|
||||||
*/
|
*/
|
||||||
inc: {
|
inc: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'フォローした数',
|
description: 'フォローした数',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -30,8 +28,8 @@ export const logSchema = {
|
||||||
* フォロー解除した数
|
* フォロー解除した数
|
||||||
*/
|
*/
|
||||||
dec: {
|
dec: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'フォロー解除した数',
|
description: 'フォロー解除した数',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -41,15 +39,15 @@ export const logSchema = {
|
||||||
* フォローされている
|
* フォローされている
|
||||||
*/
|
*/
|
||||||
followers: {
|
followers: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
/**
|
/**
|
||||||
* フォローされている合計
|
* フォローされている合計
|
||||||
*/
|
*/
|
||||||
total: {
|
total: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'フォローされている合計',
|
description: 'フォローされている合計',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -57,8 +55,8 @@ export const logSchema = {
|
||||||
* フォローされた数
|
* フォローされた数
|
||||||
*/
|
*/
|
||||||
inc: {
|
inc: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'フォローされた数',
|
description: 'フォローされた数',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -66,8 +64,8 @@ export const logSchema = {
|
||||||
* フォロー解除された数
|
* フォロー解除された数
|
||||||
*/
|
*/
|
||||||
dec: {
|
dec: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'フォロー解除された数',
|
description: 'フォロー解除された数',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -75,17 +73,17 @@ export const logSchema = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const schema = {
|
export const schema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
local: {
|
local: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: logSchema
|
properties: logSchema
|
||||||
},
|
},
|
||||||
remote: {
|
remote: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: logSchema
|
properties: logSchema
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,46 +1,44 @@
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const schema = {
|
export const schema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
total: {
|
total: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '集計期間時点での、全投稿数'
|
description: '集計期間時点での、全投稿数'
|
||||||
},
|
},
|
||||||
|
|
||||||
inc: {
|
inc: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '増加した投稿数'
|
description: '増加した投稿数'
|
||||||
},
|
},
|
||||||
|
|
||||||
dec: {
|
dec: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '減少した投稿数'
|
description: '減少した投稿数'
|
||||||
},
|
},
|
||||||
|
|
||||||
diffs: {
|
diffs: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
normal: {
|
normal: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: '通常の投稿数の差分'
|
description: '通常の投稿数の差分'
|
||||||
},
|
},
|
||||||
|
|
||||||
reply: {
|
reply: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'リプライの投稿数の差分'
|
description: 'リプライの投稿数の差分'
|
||||||
},
|
},
|
||||||
|
|
||||||
renote: {
|
renote: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'Renoteの投稿数の差分'
|
description: 'Renoteの投稿数の差分'
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const logSchema = {
|
export const logSchema = {
|
||||||
/**
|
/**
|
||||||
* フォローしている合計
|
* フォローしている合計
|
||||||
*/
|
*/
|
||||||
count: {
|
count: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: 'リアクションされた数',
|
description: 'リアクションされた数',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -15,17 +13,17 @@ export const logSchema = {
|
||||||
* ユーザーごとのリアクションに関するチャート
|
* ユーザーごとのリアクションに関するチャート
|
||||||
*/
|
*/
|
||||||
export const schema = {
|
export const schema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
local: {
|
local: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: logSchema
|
properties: logSchema
|
||||||
},
|
},
|
||||||
remote: {
|
remote: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: logSchema
|
properties: logSchema
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,28 +1,26 @@
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const schema = {
|
export const schema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
foo: {
|
foo: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
total: {
|
total: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: ''
|
description: ''
|
||||||
},
|
},
|
||||||
|
|
||||||
inc: {
|
inc: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: ''
|
description: ''
|
||||||
},
|
},
|
||||||
|
|
||||||
dec: {
|
dec: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: ''
|
description: ''
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const schema = {
|
export const schema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
foo: {
|
foo: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: ''
|
description: ''
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,28 +1,26 @@
|
||||||
import { types, bool } from '../../../../misc/schema';
|
|
||||||
|
|
||||||
export const schema = {
|
export const schema = {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
foo: {
|
foo: {
|
||||||
type: types.object,
|
type: 'object' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
properties: {
|
properties: {
|
||||||
total: {
|
total: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: ''
|
description: ''
|
||||||
},
|
},
|
||||||
|
|
||||||
inc: {
|
inc: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: ''
|
description: ''
|
||||||
},
|
},
|
||||||
|
|
||||||
dec: {
|
dec: {
|
||||||
type: types.number,
|
type: 'number' as const,
|
||||||
optional: bool.false, nullable: bool.false,
|
optional: false as const, nullable: false as const,
|
||||||
description: ''
|
description: ''
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue