2023-07-27 07:31:52 +02:00
|
|
|
/*
|
2024-02-13 16:50:11 +01:00
|
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
2023-07-27 07:31:52 +02:00
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2022-01-18 14:27:10 +01:00
|
|
|
export const packedDriveFolderSchema = {
|
|
|
|
type: 'object',
|
|
|
|
properties: {
|
|
|
|
id: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
format: 'id',
|
|
|
|
example: 'xxxxxxxxxx',
|
|
|
|
},
|
|
|
|
createdAt: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
format: 'date-time',
|
|
|
|
},
|
|
|
|
name: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: false,
|
|
|
|
},
|
2023-11-21 03:13:56 +01:00
|
|
|
parentId: {
|
|
|
|
type: 'string',
|
|
|
|
optional: false, nullable: true,
|
|
|
|
format: 'id',
|
|
|
|
example: 'xxxxxxxxxx',
|
|
|
|
},
|
2022-01-18 14:27:10 +01:00
|
|
|
foldersCount: {
|
|
|
|
type: 'number',
|
|
|
|
optional: true, nullable: false,
|
|
|
|
},
|
|
|
|
filesCount: {
|
|
|
|
type: 'number',
|
|
|
|
optional: true, nullable: false,
|
|
|
|
},
|
|
|
|
parent: {
|
|
|
|
type: 'object',
|
|
|
|
optional: true, nullable: true,
|
|
|
|
ref: 'DriveFolder',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|