Images
Parcourez, recherchez et étiquetez des photos. Prend en charge la recherche par mot-clé et la recherche sémantique par IA avec un modèle sur l'appareil.
Définitions de types
type Image {
id: ID!
title: String! # filename
path: String!
size: Int! # bytes
bucketId: String! # media store bucket
createdAt: String!
updatedAt: String!
takenAt: String # EXIF capture time (nullable)
tags: [Tag!]!
}
type ImageSearchStatus {
enabled: Boolean!
indexed: Int!
total: Int!
isIndexing: Boolean!
isDownloading: Boolean!
downloadProgress: Float! # 0.0–1.0
}
enum FileSortBy {
SIZE_ASC SIZE_DESC
NAME_ASC NAME_DESC
DATE_ADDED_ASC DATE_ADDED_DESC
DATE_MODIFIED_ASC DATE_MODIFIED_DESC
}Opérations
images
Recherche des images. Laissez la requête vide pour tout lister. Utilisez text:<keyword> pour la recherche sémantique par IA.
query GetImages($offset: Int!, $limit: Int!, $query: String!, $sortBy: FileSortBy!) {
images(offset: $offset, limit: $limit, query: $query, sortBy: $sortBy) {
id title path size bucketId createdAt updatedAt takenAt
tags { id name }
}
}imageCount
Compte les images correspondant à une requête.
query GetImageCount($query: String!) {
imageCount(query: $query)
}imageSearchStatus
Récupère l'état actuel d'indexation de la recherche sémantique par IA.
query GetImageSearchStatus {
imageSearchStatus {
enabled indexed total isIndexing isDownloading downloadProgress
}
}enableImageSearch
Active la recherche sémantique d'images par IA. Télécharge le modèle sur l'appareil s'il n'est pas déjà présent.
mutation EnableImageSearch {
enableImageSearch
}disableImageSearch
Désactive la recherche sémantique d'images par IA et libère les ressources.
mutation DisableImageSearch {
disableImageSearch
}cancelImageModelDownload
Annule le téléchargement en cours du modèle d'IA.
mutation CancelImageModelDownload {
cancelImageModelDownload
}startImageIndex
Démarre l'indexation des images pour la recherche par IA. Passez force=true pour tout réindexer.
mutation StartImageIndex($force: Boolean) {
startImageIndex(force: $force)
}cancelImageIndex
Annule le processus d'indexation en cours.
mutation CancelImageIndex {
cancelImageIndex
}