2023-07-27 14:31:52 +09:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2023-02-17 15:36:36 +09:00
|
|
|
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,
|
|
|
|
},
|
2023-05-18 18:45:49 +09:00
|
|
|
isSensitive: {
|
|
|
|
type: 'boolean',
|
2023-05-18 20:17:32 +09:00
|
|
|
optional: true, nullable: false,
|
|
|
|
},
|
|
|
|
roleIdsThatCanBeUsedThisEmojiAsReaction: {
|
|
|
|
type: 'array',
|
|
|
|
optional: true, nullable: false,
|
|
|
|
items: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
format: 'id',
|
|
|
|
},
|
2023-05-18 18:45:49 +09:00
|
|
|
},
|
2023-02-17 15:36:36 +09:00
|
|
|
},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export const packedEmojiDetailedSchema = {
|
2022-01-18 22:27:10 +09:00
|
|
|
type: 'object',
|
|
|
|
properties: {
|
|
|
|
id: {
|
|
|
|
type: 'string',
|
2023-02-17 15:36:36 +09:00
|
|
|
optional: false, nullable: false,
|
2022-01-18 22:27:10 +09:00
|
|
|
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',
|
2023-02-17 15:36:36 +09:00
|
|
|
optional: false, nullable: true,
|
2022-04-03 13:57:26 +09:00
|
|
|
description: 'The local host is represented with `null`.',
|
2022-01-18 22:27:10 +09:00
|
|
|
},
|
2023-01-21 20:40:09 +09:00
|
|
|
url: {
|
|
|
|
type: 'string',
|
2023-02-17 15:36:36 +09:00
|
|
|
optional: false, nullable: false,
|
2023-01-21 20:40:09 +09:00
|
|
|
},
|
2023-03-16 15:08:48 +09:00
|
|
|
license: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: true,
|
|
|
|
},
|
2023-05-18 18:45:49 +09:00
|
|
|
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',
|
|
|
|
},
|
|
|
|
},
|
2022-01-18 22:27:10 +09:00
|
|
|
},
|
|
|
|
} as const;
|