mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-20 13:25:09 +01:00
52 lines
939 B
TypeScript
52 lines
939 B
TypeScript
|
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',
|
||
|
},
|
||
|
title: {
|
||
|
type: 'string',
|
||
|
optional: false, nullable: false,
|
||
|
},
|
||
|
name: {
|
||
|
type: 'string',
|
||
|
optional: false, nullable: false,
|
||
|
},
|
||
|
summary: {
|
||
|
type: 'string',
|
||
|
optional: false, nullable: true,
|
||
|
},
|
||
|
content: {
|
||
|
type: 'array',
|
||
|
optional: false, nullable: false,
|
||
|
},
|
||
|
variables: {
|
||
|
type: 'array',
|
||
|
optional: false, nullable: false,
|
||
|
},
|
||
|
userId: {
|
||
|
type: 'string',
|
||
|
optional: false, nullable: false,
|
||
|
format: 'id',
|
||
|
},
|
||
|
user: {
|
||
|
type: 'object',
|
||
|
ref: 'UserLite',
|
||
|
optional: false, nullable: false,
|
||
|
},
|
||
|
},
|
||
|
} as const;
|