API: Regenerate swagger.json

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-11-23 14:18:25 +01:00
parent 3495493933
commit 762901346e
2 changed files with 8 additions and 23 deletions

View File

@@ -880,6 +880,9 @@
"archive": {
"type": "boolean"
},
"batchEdit": {
"type": "boolean"
},
"calendar": {
"type": "boolean"
},
@@ -4872,26 +4875,6 @@
"on-index"
],
"type": "string",
"x-enum-comments": {
"RunAlways": "Run manually, on-schedule, on-demand, and on-index.",
"RunAuto": "Automatically decide when to run based on model type and configuration.",
"RunManual": "Only run manually e.g. with the \"vision run\" command.",
"RunNever": "Never run the model.",
"RunNewlyIndexed": "Run manually amd for newly-indexed pictures.",
"RunOnDemand": "Run manually, for newly-indexed pictures, and on configured schedule.",
"RunOnIndex": "Run manually and on-index.",
"RunOnSchedule": "Run manually and on-schedule."
},
"x-enum-descriptions": [
"Automatically decide when to run based on model type and configuration.",
"Never run the model.",
"Only run manually e.g. with the \"vision run\" command.",
"Run manually, on-schedule, on-demand, and on-index.",
"Run manually amd for newly-indexed pictures.",
"Run manually, for newly-indexed pictures, and on configured schedule.",
"Run manually and on-schedule.",
"Run manually and on-index."
],
"x-enum-varnames": [
"RunAuto",
"RunNever",

View File

@@ -11,6 +11,8 @@ import (
type GrantType string
// Standard authentication grant types.
//
//nolint:gosec // grant type identifiers are not secrets
const (
GrantUndefined GrantType = ""
GrantCLI GrantType = "cli"
@@ -22,9 +24,9 @@ const (
GrantShareToken GrantType = "share_token"
GrantRefreshToken GrantType = "refresh_token"
GrantAuthorizationCode GrantType = "authorization_code"
GrantJwtBearer GrantType = "urn:ietf:params:oauth:grant-type:jwt-bearer" // #nosec G101 grant type identifier, not a secret
GrantSamlBearer GrantType = "urn:ietf:params:oauth:grant-type:saml2-bearer" // #nosec G101 grant type identifier, not a secret
GrantTokenExchange GrantType = "urn:ietf:params:oauth:grant-type:token-exchange" // #nosec G101 grant type identifier, not a secret
GrantJwtBearer GrantType = "urn:ietf:params:oauth:grant-type:jwt-bearer"
GrantSamlBearer GrantType = "urn:ietf:params:oauth:grant-type:saml2-bearer"
GrantTokenExchange GrantType = "urn:ietf:params:oauth:grant-type:token-exchange"
)
// Grant casts a string to a normalized grant type.