2022-01-18 22:27:10 +09:00
|
|
|
export const packedClipSchema = {
|
|
|
|
type: 'object',
|
|
|
|
properties: {
|
|
|
|
id: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
format: 'id',
|
|
|
|
example: 'xxxxxxxxxx',
|
|
|
|
},
|
|
|
|
createdAt: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
format: 'date-time',
|
|
|
|
},
|
2023-03-16 17:24:49 +09:00
|
|
|
lastClippedAt: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: true,
|
|
|
|
format: 'date-time',
|
|
|
|
},
|
2022-01-18 22:27:10 +09:00
|
|
|
userId: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
format: 'id',
|
|
|
|
},
|
|
|
|
user: {
|
|
|
|
type: 'object',
|
|
|
|
ref: 'UserLite',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
|
|
|
name: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
|
|
|
description: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: true,
|
|
|
|
},
|
|
|
|
isPublic: {
|
|
|
|
type: 'boolean',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
2023-03-16 17:24:49 +09:00
|
|
|
isFavorited: {
|
|
|
|
type: 'boolean',
|
|
|
|
optional: true, nullable: false,
|
|
|
|
},
|
|
|
|
favoritedCount: {
|
|
|
|
type: 'number',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
2022-01-18 22:27:10 +09:00
|
|
|
},
|
|
|
|
} as const;
|