01a815f8a7
* fix(backend): missing `visibility` param in packing flash * fix(frontend): use `visibility` value got from API * enhance(frontend): change preview appearance of private Play * Update CHANGELOG.md
61 lines
1.1 KiB
TypeScript
61 lines
1.1 KiB
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
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',
|
|
},
|
|
userId: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
format: 'id',
|
|
},
|
|
user: {
|
|
type: 'object',
|
|
ref: 'UserLite',
|
|
optional: false, nullable: false,
|
|
},
|
|
title: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
},
|
|
summary: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
},
|
|
script: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
},
|
|
visibility: {
|
|
type: 'string',
|
|
optional: false, nullable: false,
|
|
enum: ['private', 'public'],
|
|
},
|
|
likedCount: {
|
|
type: 'number',
|
|
optional: false, nullable: true,
|
|
},
|
|
isLiked: {
|
|
type: 'boolean',
|
|
optional: true, nullable: false,
|
|
},
|
|
},
|
|
} as const;
|