fe938bf8e6
Signed-off-by: mattyatea <mattyacocacora0@gmail.com>
181 lines
3.3 KiB
TypeScript
181 lines
3.3 KiB
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
export const packedEmojiSimpleSchema = {
|
|
type: 'object',
|
|
properties: {
|
|
aliases: {
|
|
type: 'array',
|
|
optional: false, nullable: false,
|
|
items: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
format: 'id',
|
|
},
|
|
},
|
|
name: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
},
|
|
category: {
|
|
type: 'string',
|
|
optional: false, nullable: true,
|
|
},
|
|
url: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
},
|
|
isSensitive: {
|
|
type: 'boolean',
|
|
optional: true, nullable: false,
|
|
},
|
|
roleIdsThatCanBeUsedThisEmojiAsReaction: {
|
|
type: 'array',
|
|
optional: true, nullable: false,
|
|
items: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
format: 'id',
|
|
},
|
|
},
|
|
},
|
|
} as const;
|
|
export const packedEmojiDraftSimpleSchema = {
|
|
type: 'object',
|
|
properties: {
|
|
aliases: {
|
|
type: 'array',
|
|
optional: false, nullable: false,
|
|
items: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
format: 'id',
|
|
},
|
|
},
|
|
name: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
},
|
|
category: {
|
|
type: 'string',
|
|
optional: false, nullable: true,
|
|
},
|
|
url: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
},
|
|
isSensitive: {
|
|
type: 'boolean',
|
|
optional: true, nullable: false,
|
|
},
|
|
},
|
|
} as const;
|
|
|
|
export const packedEmojiDetailedSchema = {
|
|
type: 'object',
|
|
properties: {
|
|
id: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
format: 'id',
|
|
},
|
|
aliases: {
|
|
type: 'array',
|
|
optional: false, nullable: false,
|
|
items: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
format: 'id',
|
|
},
|
|
},
|
|
name: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
},
|
|
category: {
|
|
type: 'string',
|
|
optional: false, nullable: true,
|
|
},
|
|
host: {
|
|
type: 'string',
|
|
optional: false, nullable: true,
|
|
description: 'The local host is represented with `null`.',
|
|
},
|
|
url: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
},
|
|
license: {
|
|
type: 'string',
|
|
optional: false, nullable: true,
|
|
},
|
|
isSensitive: {
|
|
type: 'boolean',
|
|
optional: false, nullable: false,
|
|
},
|
|
localOnly: {
|
|
type: 'boolean',
|
|
optional: false, nullable: false,
|
|
},
|
|
roleIdsThatCanBeUsedThisEmojiAsReaction: {
|
|
type: 'array',
|
|
optional: false, nullable: false,
|
|
items: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
format: 'id',
|
|
},
|
|
},
|
|
},
|
|
} as const;
|
|
|
|
export const packedEmojiDraftDetailedSchema = {
|
|
type: 'object',
|
|
properties: {
|
|
id: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
format: 'id',
|
|
},
|
|
aliases: {
|
|
type: 'array',
|
|
optional: false, nullable: false,
|
|
items: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
format: 'id',
|
|
},
|
|
},
|
|
name: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
},
|
|
category: {
|
|
type: 'string',
|
|
optional: false, nullable: true,
|
|
},
|
|
url: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
},
|
|
license: {
|
|
type: 'string',
|
|
optional: false, nullable: true,
|
|
},
|
|
isSensitive: {
|
|
type: 'boolean',
|
|
optional: false, nullable: false,
|
|
},
|
|
localOnly: {
|
|
type: 'boolean',
|
|
optional: false, nullable: false,
|
|
},
|
|
fileId: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
},
|
|
},
|
|
} as const;
|