2022-01-18 14:27:10 +01:00
|
|
|
export const packedDriveFileSchema = {
|
2023-01-13 05:40:33 +01:00
|
|
|
type: "object",
|
2022-01-18 14:27:10 +01:00
|
|
|
properties: {
|
|
|
|
id: {
|
2023-01-13 05:40:33 +01:00
|
|
|
type: "string",
|
|
|
|
optional: false,
|
|
|
|
nullable: false,
|
|
|
|
format: "id",
|
|
|
|
example: "xxxxxxxxxx",
|
2022-01-18 14:27:10 +01:00
|
|
|
},
|
|
|
|
createdAt: {
|
2023-01-13 05:40:33 +01:00
|
|
|
type: "string",
|
|
|
|
optional: false,
|
|
|
|
nullable: false,
|
|
|
|
format: "date-time",
|
2022-01-18 14:27:10 +01:00
|
|
|
},
|
|
|
|
name: {
|
2023-01-13 05:40:33 +01:00
|
|
|
type: "string",
|
|
|
|
optional: false,
|
|
|
|
nullable: false,
|
|
|
|
example: "lenna.jpg",
|
2022-01-18 14:27:10 +01:00
|
|
|
},
|
|
|
|
type: {
|
2023-01-13 05:40:33 +01:00
|
|
|
type: "string",
|
|
|
|
optional: false,
|
|
|
|
nullable: false,
|
|
|
|
example: "image/jpeg",
|
2022-01-18 14:27:10 +01:00
|
|
|
},
|
|
|
|
md5: {
|
2023-01-13 05:40:33 +01:00
|
|
|
type: "string",
|
|
|
|
optional: false,
|
|
|
|
nullable: false,
|
|
|
|
format: "md5",
|
|
|
|
example: "15eca7fba0480996e2245f5185bf39f2",
|
2022-01-18 14:27:10 +01:00
|
|
|
},
|
|
|
|
size: {
|
2023-01-13 05:40:33 +01:00
|
|
|
type: "number",
|
|
|
|
optional: false,
|
|
|
|
nullable: false,
|
2022-01-18 14:27:10 +01:00
|
|
|
example: 51469,
|
|
|
|
},
|
|
|
|
isSensitive: {
|
2023-01-13 05:40:33 +01:00
|
|
|
type: "boolean",
|
|
|
|
optional: false,
|
|
|
|
nullable: false,
|
2022-01-18 14:27:10 +01:00
|
|
|
},
|
|
|
|
blurhash: {
|
2023-01-13 05:40:33 +01:00
|
|
|
type: "string",
|
|
|
|
optional: false,
|
|
|
|
nullable: true,
|
2022-01-18 14:27:10 +01:00
|
|
|
},
|
|
|
|
properties: {
|
2023-01-13 05:40:33 +01:00
|
|
|
type: "object",
|
|
|
|
optional: false,
|
|
|
|
nullable: false,
|
2022-01-18 14:27:10 +01:00
|
|
|
properties: {
|
|
|
|
width: {
|
2023-01-13 05:40:33 +01:00
|
|
|
type: "number",
|
|
|
|
optional: true,
|
|
|
|
nullable: false,
|
2022-01-18 14:27:10 +01:00
|
|
|
example: 1280,
|
|
|
|
},
|
|
|
|
height: {
|
2023-01-13 05:40:33 +01:00
|
|
|
type: "number",
|
|
|
|
optional: true,
|
|
|
|
nullable: false,
|
2022-01-18 14:27:10 +01:00
|
|
|
example: 720,
|
|
|
|
},
|
|
|
|
orientation: {
|
2023-01-13 05:40:33 +01:00
|
|
|
type: "number",
|
|
|
|
optional: true,
|
|
|
|
nullable: false,
|
2022-01-18 14:27:10 +01:00
|
|
|
example: 8,
|
|
|
|
},
|
|
|
|
avgColor: {
|
2023-01-13 05:40:33 +01:00
|
|
|
type: "string",
|
|
|
|
optional: true,
|
|
|
|
nullable: false,
|
|
|
|
example: "rgb(40,65,87)",
|
2022-01-18 14:27:10 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
url: {
|
2023-01-13 05:40:33 +01:00
|
|
|
type: "string",
|
|
|
|
optional: false,
|
|
|
|
nullable: true,
|
|
|
|
format: "url",
|
2022-01-18 14:27:10 +01:00
|
|
|
},
|
|
|
|
thumbnailUrl: {
|
2023-01-13 05:40:33 +01:00
|
|
|
type: "string",
|
|
|
|
optional: false,
|
|
|
|
nullable: true,
|
|
|
|
format: "url",
|
2022-01-18 14:27:10 +01:00
|
|
|
},
|
|
|
|
comment: {
|
2023-01-13 05:40:33 +01:00
|
|
|
type: "string",
|
|
|
|
optional: false,
|
|
|
|
nullable: true,
|
2022-01-18 14:27:10 +01:00
|
|
|
},
|
|
|
|
folderId: {
|
2023-01-13 05:40:33 +01:00
|
|
|
type: "string",
|
|
|
|
optional: false,
|
|
|
|
nullable: true,
|
|
|
|
format: "id",
|
|
|
|
example: "xxxxxxxxxx",
|
2022-01-18 14:27:10 +01:00
|
|
|
},
|
|
|
|
folder: {
|
2023-01-13 05:40:33 +01:00
|
|
|
type: "object",
|
|
|
|
optional: true,
|
|
|
|
nullable: true,
|
|
|
|
ref: "DriveFolder",
|
2022-01-18 14:27:10 +01:00
|
|
|
},
|
|
|
|
userId: {
|
2023-01-13 05:40:33 +01:00
|
|
|
type: "string",
|
|
|
|
optional: false,
|
|
|
|
nullable: true,
|
|
|
|
format: "id",
|
|
|
|
example: "xxxxxxxxxx",
|
2022-01-18 14:27:10 +01:00
|
|
|
},
|
|
|
|
user: {
|
2023-01-13 05:40:33 +01:00
|
|
|
type: "object",
|
|
|
|
optional: true,
|
|
|
|
nullable: true,
|
|
|
|
ref: "UserLite",
|
2022-01-18 14:27:10 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|