2023-07-27 08:31:52 +03:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2023-02-17 08:06:52 +02:00
|
|
|
export const packedFlashSchema = {
|
|
|
|
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: {
|
2023-02-17 08:06:52 +02:00
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
2023-11-21 04:13:56 +02:00
|
|
|
format: 'id',
|
2023-02-17 08:06:52 +02:00
|
|
|
},
|
2023-11-21 04:13:56 +02:00
|
|
|
user: {
|
|
|
|
type: 'object',
|
|
|
|
ref: 'UserLite',
|
2023-02-17 08:06:52 +02:00
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
2023-11-21 04:13:56 +02:00
|
|
|
title: {
|
2023-02-17 08:06:52 +02:00
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
2023-11-21 04:13:56 +02:00
|
|
|
summary: {
|
2023-02-17 08:06:52 +02:00
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
2023-11-21 04:13:56 +02:00
|
|
|
script: {
|
|
|
|
type: 'string',
|
2023-02-17 08:06:52 +02:00
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
|
|
|
likedCount: {
|
|
|
|
type: 'number',
|
|
|
|
optional: false, nullable: true,
|
|
|
|
},
|
|
|
|
isLiked: {
|
|
|
|
type: 'boolean',
|
|
|
|
optional: true, nullable: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|