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