mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
API: Regenerate swagger.json
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -880,6 +880,9 @@
|
|||||||
"archive": {
|
"archive": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
"batchEdit": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"calendar": {
|
"calendar": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
@@ -4872,26 +4875,6 @@
|
|||||||
"on-index"
|
"on-index"
|
||||||
],
|
],
|
||||||
"type": "string",
|
"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": [
|
"x-enum-varnames": [
|
||||||
"RunAuto",
|
"RunAuto",
|
||||||
"RunNever",
|
"RunNever",
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ import (
|
|||||||
type GrantType string
|
type GrantType string
|
||||||
|
|
||||||
// Standard authentication grant types.
|
// Standard authentication grant types.
|
||||||
|
//
|
||||||
|
//nolint:gosec // grant type identifiers are not secrets
|
||||||
const (
|
const (
|
||||||
GrantUndefined GrantType = ""
|
GrantUndefined GrantType = ""
|
||||||
GrantCLI GrantType = "cli"
|
GrantCLI GrantType = "cli"
|
||||||
@@ -22,9 +24,9 @@ const (
|
|||||||
GrantShareToken GrantType = "share_token"
|
GrantShareToken GrantType = "share_token"
|
||||||
GrantRefreshToken GrantType = "refresh_token"
|
GrantRefreshToken GrantType = "refresh_token"
|
||||||
GrantAuthorizationCode GrantType = "authorization_code"
|
GrantAuthorizationCode GrantType = "authorization_code"
|
||||||
GrantJwtBearer GrantType = "urn:ietf:params:oauth:grant-type:jwt-bearer" // #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" // #nosec G101 grant type identifier, not a secret
|
GrantSamlBearer GrantType = "urn:ietf:params:oauth:grant-type:saml2-bearer"
|
||||||
GrantTokenExchange GrantType = "urn:ietf:params:oauth:grant-type:token-exchange" // #nosec G101 grant type identifier, not a secret
|
GrantTokenExchange GrantType = "urn:ietf:params:oauth:grant-type:token-exchange"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Grant casts a string to a normalized grant type.
|
// Grant casts a string to a normalized grant type.
|
||||||
|
|||||||
Reference in New Issue
Block a user