8ae9d2eaa8
Resolve #10091
67 lines
1.2 KiB
TypeScript
67 lines
1.2 KiB
TypeScript
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,
|
|
},
|
|
},
|
|
} 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,
|
|
},
|
|
},
|
|
} as const;
|