mirror of
https://git.joinfirefish.org/firefish/firefish.git
synced 2024-05-19 03:11:11 +02:00
74 lines
1.2 KiB
TypeScript
74 lines
1.2 KiB
TypeScript
export const packedChannelSchema = {
|
|
type: "object",
|
|
properties: {
|
|
id: {
|
|
type: "string",
|
|
optional: false,
|
|
nullable: false,
|
|
format: "id",
|
|
example: "xxxxxxxxxx",
|
|
},
|
|
createdAt: {
|
|
type: "string",
|
|
optional: false,
|
|
nullable: false,
|
|
format: "date-time",
|
|
},
|
|
lastNotedAt: {
|
|
type: "string",
|
|
optional: false,
|
|
nullable: true,
|
|
format: "date-time",
|
|
},
|
|
name: {
|
|
type: "string",
|
|
optional: false,
|
|
nullable: false,
|
|
},
|
|
description: {
|
|
type: "string",
|
|
nullable: true,
|
|
optional: false,
|
|
},
|
|
bannerUrl: {
|
|
type: "string",
|
|
format: "url",
|
|
nullable: true,
|
|
optional: false,
|
|
},
|
|
bannerId: {
|
|
type: "string",
|
|
optional: false,
|
|
nullable: true,
|
|
format: "id",
|
|
example: "xxxxxxxxxx",
|
|
},
|
|
notesCount: {
|
|
type: "number",
|
|
nullable: false,
|
|
optional: false,
|
|
},
|
|
usersCount: {
|
|
type: "number",
|
|
nullable: false,
|
|
optional: false,
|
|
},
|
|
isFollowing: {
|
|
type: "boolean",
|
|
optional: true,
|
|
nullable: false,
|
|
},
|
|
userId: {
|
|
type: "string",
|
|
nullable: true,
|
|
optional: false,
|
|
format: "id",
|
|
},
|
|
hasUnreadNote: {
|
|
type: "boolean",
|
|
optional: true,
|
|
nullable: false,
|
|
},
|
|
},
|
|
} as const;
|