mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Add stash-box credentials validation (#2173)
This commit is contained in:
@@ -11,3 +11,10 @@ query Directory($path: String) {
|
||||
directories
|
||||
}
|
||||
}
|
||||
|
||||
query ValidateStashBox($input: StashBoxInput!) {
|
||||
validateStashBoxCredentials(input: $input) {
|
||||
valid
|
||||
status
|
||||
}
|
||||
}
|
||||
|
||||
@@ -136,6 +136,7 @@ type Query {
|
||||
"Desired collation locale. Determines the order of the directory result. eg. 'en-US', 'pt-BR', ..."
|
||||
locale: String = "en"
|
||||
): Directory!
|
||||
validateStashBoxCredentials(input: StashBoxInput!): StashBoxValidationResult!
|
||||
|
||||
# System status
|
||||
systemStatus: SystemStatus!
|
||||
|
||||
@@ -391,3 +391,8 @@ type StashConfig {
|
||||
input GenerateAPIKeyInput {
|
||||
clear: Boolean
|
||||
}
|
||||
|
||||
type StashBoxValidationResult {
|
||||
valid: Boolean!
|
||||
status: String!
|
||||
}
|
||||
|
||||
@@ -156,3 +156,9 @@ query FindSceneByID($id: ID!) {
|
||||
mutation SubmitFingerprint($input: FingerprintSubmission!) {
|
||||
submitFingerprint(input: $input)
|
||||
}
|
||||
|
||||
query Me {
|
||||
me {
|
||||
name
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user