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