Add optional photo providers, layout studio and scoped integrations

This commit is contained in:
Pigway
2026-10-08 23:18:11 +08:00
parent 3643fae86a
commit 69a0841868
38 changed files with 2843 additions and 41 deletions
+93 -3
View File
@@ -11,7 +11,6 @@
},
"driver": {
"type": "string",
"const": "kokonna",
"title": "Driver",
"default": "kokonna"
},
@@ -374,6 +373,9 @@
{
"$ref": "#/components/schemas/PhotoSourceContent"
},
{
"$ref": "#/components/schemas/ProviderContent"
},
{
"$ref": "#/components/schemas/FutureContent"
}
@@ -387,6 +389,7 @@
"image_url": "#/components/schemas/URLContent",
"markdown": "#/components/schemas/FutureContent",
"photo_source": "#/components/schemas/PhotoSourceContent",
"provider": "#/components/schemas/ProviderContent",
"template": "#/components/schemas/TemplateContent"
}
}
@@ -673,6 +676,17 @@
},
"OperationResult": {
"properties": {
"cover_id": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Cover Id"
},
"photo_attempts": {
"items": {
"additionalProperties": {
@@ -841,7 +855,10 @@
"type": "string",
"enum": [
"local",
"webdav"
"webdav",
"google-drive",
"alipan",
"baidu"
],
"title": "Kind"
},
@@ -899,6 +916,41 @@
],
"title": "Orientation"
},
"minimum_sharpness": {
"type": "number",
"maximum": 10000.0,
"minimum": 0.0,
"title": "Minimum Sharpness",
"default": 0
},
"minimum_brightness": {
"type": "number",
"maximum": 255.0,
"minimum": 0.0,
"title": "Minimum Brightness",
"default": 0
},
"maximum_brightness": {
"type": "number",
"maximum": 255.0,
"minimum": 0.0,
"title": "Maximum Brightness",
"default": 255
},
"avoid_duplicates": {
"type": "boolean",
"title": "Avoid Duplicates",
"default": false
},
"people_space": {
"type": "string",
"enum": [
"shared",
"personal"
],
"title": "People Space",
"default": "shared"
},
"people_filter": {
"type": "boolean",
"title": "People Filter",
@@ -955,7 +1007,10 @@
"type": "string",
"enum": [
"local",
"webdav"
"webdav",
"google-drive",
"alipan",
"baidu"
],
"title": "Kind"
},
@@ -1013,6 +1068,41 @@
],
"title": "Orientation"
},
"minimum_sharpness": {
"type": "number",
"maximum": 10000.0,
"minimum": 0.0,
"title": "Minimum Sharpness",
"default": 0
},
"minimum_brightness": {
"type": "number",
"maximum": 255.0,
"minimum": 0.0,
"title": "Minimum Brightness",
"default": 0
},
"maximum_brightness": {
"type": "number",
"maximum": 255.0,
"minimum": 0.0,
"title": "Maximum Brightness",
"default": 255
},
"avoid_duplicates": {
"type": "boolean",
"title": "Avoid Duplicates",
"default": false
},
"people_space": {
"type": "string",
"enum": [
"shared",
"personal"
],
"title": "People Space",
"default": "shared"
},
"people_filter": {
"type": "boolean",
"title": "People Filter",