2023-07-27 08:31:52 +03:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2022-01-18 15:27:10 +02:00
|
|
|
export const packedPageSchema = {
|
|
|
|
type: 'object',
|
|
|
|
properties: {
|
|
|
|
id: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
format: 'id',
|
|
|
|
example: 'xxxxxxxxxx',
|
|
|
|
},
|
|
|
|
createdAt: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
format: 'date-time',
|
|
|
|
},
|
|
|
|
updatedAt: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
format: 'date-time',
|
|
|
|
},
|
2023-11-21 04:13:56 +02:00
|
|
|
userId: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
format: 'id',
|
|
|
|
},
|
|
|
|
user: {
|
|
|
|
type: 'object',
|
|
|
|
ref: 'UserLite',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
|
|
|
content: {
|
|
|
|
type: 'array',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
items: {
|
|
|
|
type: 'object',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
variables: {
|
|
|
|
type: 'array',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
items: {
|
|
|
|
type: 'object',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
|
|
|
},
|
2022-01-18 15:27:10 +02:00
|
|
|
title: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
|
|
|
name: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
|
|
|
summary: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: true,
|
|
|
|
},
|
2023-11-21 04:13:56 +02:00
|
|
|
hideTitleWhenPinned: {
|
|
|
|
type: 'boolean',
|
2022-01-18 15:27:10 +02:00
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
2023-11-21 04:13:56 +02:00
|
|
|
alignCenter: {
|
|
|
|
type: 'boolean',
|
2022-01-18 15:27:10 +02:00
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
2023-11-21 04:13:56 +02:00
|
|
|
font: {
|
2022-01-18 15:27:10 +02:00
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
2023-11-21 04:13:56 +02:00
|
|
|
script: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
|
|
|
eyeCatchingImageId: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: true,
|
|
|
|
},
|
|
|
|
eyeCatchingImage: {
|
2022-01-18 15:27:10 +02:00
|
|
|
type: 'object',
|
2023-11-21 04:13:56 +02:00
|
|
|
optional: false, nullable: true,
|
|
|
|
ref: 'DriveFile',
|
|
|
|
},
|
|
|
|
attachedFiles: {
|
|
|
|
type: 'array',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
items: {
|
|
|
|
type: 'object',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
ref: 'DriveFile',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
likedCount: {
|
|
|
|
type: 'number',
|
2022-01-18 15:27:10 +02:00
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
2023-11-21 04:13:56 +02:00
|
|
|
isLiked: {
|
|
|
|
type: 'boolean',
|
|
|
|
optional: true, nullable: false,
|
|
|
|
},
|
2022-01-18 15:27:10 +02:00
|
|
|
},
|
|
|
|
} as const;
|