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