Référence de l'API

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

bash
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

query

images

Recherche des images. Laissez la requête vide pour tout lister. Utilisez text:<keyword> pour la recherche sémantique par IA.

bash
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 }
  }
}
query

imageCount

Compte les images correspondant à une requête.

bash
query GetImageCount($query: String!) {
  imageCount(query: $query)
}
query

imageSearchStatus

Récupère l'état actuel d'indexation de la recherche sémantique par IA.

bash
query GetImageSearchStatus {
  imageSearchStatus {
    enabled indexed total isIndexing isDownloading downloadProgress
  }
}
mutation

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.

bash
mutation EnableImageSearch {
  enableImageSearch
}
mutation

disableImageSearch

Désactive la recherche sémantique d'images par IA et libère les ressources.

bash
mutation DisableImageSearch {
  disableImageSearch
}
mutation

cancelImageModelDownload

Annule le téléchargement en cours du modèle d'IA.

bash
mutation CancelImageModelDownload {
  cancelImageModelDownload
}
mutation

startImageIndex

Démarre l'indexation des images pour la recherche par IA. Passez force=true pour tout réindexer.

bash
mutation StartImageIndex($force: Boolean) {
  startImageIndex(force: $force)
}
mutation

cancelImageIndex

Annule le processus d'indexation en cours.

bash
mutation CancelImageIndex {
  cancelImageIndex
}