படங்கள்
அம்ச ஆதரவிற்கு app.capabilities-ஐயும் அனுமதிக்கு app.access மற்றும் host அனுமதிகளையும் சரிபார்க்கவும். எடுத்துக்காட்டுகள் செயற்கை மதிப்புகளைப் பயன்படுத்துகின்றன; அழைப்பதற்கு முன் பாதைகள், ID-கள், உள்ளீடுகள் மற்றும் வடிப்பான்களை மாற்றவும்.
வகை வரையறைகள்
type Subscription {
imageModelsUpdated: ImageModelsUpdate!
}
type Mutation {
cancelImageIndex: Boolean!
cancelImageModelDownload: Boolean!
disableImageSearch: Boolean!
enableImageSearch: Boolean!
importImageSearchModel: Boolean!
startImageIndex(force: Boolean): Boolean!
}
type Query {
imageCount(query: String!): Int!
imageSearchStatus: ImageSearchStatus!
images(query: String!, offset: Int!, limit: Int!, sortBy: ImageSortBy!): [Image!]!
}
enum DataType {
DEFAULT
AUDIO
VIDEO
IMAGE
SMS
CONTACT
NOTE
FEED_ENTRY
CALL
PACKAGE
FILE
APP_FILE
DOC
}
type Image implements MediaItem {
id: ID!
title: String!
path: String!
size: Long!
width: Int!
height: Int!
rotation: Int!
bucketId: ID!
createdAt: Instant!
updatedAt: Instant!
takenAt: Instant
isFavorite: Boolean!
tags: [Tag!]!
}
type ImageModelsUpdate {
version: Long!
status: ImageSearchStatusType!
downloadProgress: Int!
errorMessage: String!
modelSize: Long!
modelDir: String!
isIndexing: Boolean!
totalImages: Int!
indexedImages: Int!
}
type ImageSearchStatus {
status: ImageSearchStatusType!
downloadProgress: Int!
errorMessage: String!
modelSize: Long!
modelDir: String!
isIndexing: Boolean!
totalImages: Int!
indexedImages: Int!
}
enum ImageSearchStatusType {
UNAVAILABLE
DOWNLOADING
LOADING
READY
ERROR
}
enum ImageSortBy {
UPDATED_AT_ASC
UPDATED_AT_DESC
SIZE_ASC
SIZE_DESC
NAME_ASC
NAME_DESC
TAKEN_AT_DESC
}
scalar Instant
scalar Long
interface MediaItem {
id: ID!
title: String!
path: String!
size: Long!
bucketId: ID!
createdAt: Instant!
updatedAt: Instant!
}
type Tag {
id: ID!
name: String!
type: DataType!
count: Int!
}செயல்பாடுகள்
imageModelsUpdated
படத் தேடல் மாதிரியின் பதிவிறக்கம் அல்லது கிடைக்கும் நிலைப் புதுப்பிப்புகளைப் பெறவும்.
subscription imageModelsUpdated {
imageModelsUpdated { version status downloadProgress errorMessage modelSize modelDir isIndexing totalImages }
}cancelImageIndex
இயங்கும் அட்டவணைப்படுத்தல் செயல்முறையை ரத்துசெய்யவும்.
mutation cancelImageIndex {
cancelImageIndex
}cancelImageModelDownload
நடந்துகொண்டிருக்கும் AI மாதிரிப் பதிவிறக்கத்தை ரத்துசெய்யவும்.
mutation cancelImageModelDownload {
cancelImageModelDownload
}disableImageSearch
AI பொருள் சார்ந்த படத் தேடலை முடக்கி வளங்களை விடுவிக்கவும்.
mutation disableImageSearch {
disableImageSearch
}enableImageSearch
AI பொருள் சார்ந்த படத் தேடலை இயக்கவும். சாதனத்தில் மாதிரி இல்லாவிட்டால் பதிவிறக்கப்படும்.
mutation enableImageSearch {
enableImageSearch
}importImageSearchModel
ஏற்கெனவே பதிவேற்றப்பட்ட முழுப் படத் தேடல் மாதிரித் தொகுப்பைச் சரிபார்த்து செயல்படுத்தவும்.
mutation importImageSearchModel {
importImageSearchModel
}startImageIndex
AI தேடலுக்குப் பட அட்டவணைப்படுத்தலைத் தொடங்கவும். அனைத்தையும் மீண்டும் அட்டவணைப்படுத்த force=true வழங்கவும்.
# `force` re-scans images that already have an embedding.
mutation startImageIndex($force: Boolean) {
startImageIndex(force: $force)
}imageCount
வினவலுக்குப் பொருந்தும் படங்களை எண்ணவும்.
query imageCount($query: String!) {
imageCount(query: $query)
}imageSearchStatus
தற்போதைய AI பொருள் சார்ந்த தேடலின் அட்டவணைப்படுத்தல் நிலையைப் பெறவும்.
query imageSearchStatus {
imageSearchStatus { status downloadProgress errorMessage modelSize modelDir isIndexing totalImages indexedImages }
}images
படப் பட்டியலில் வடிப்பான், பக்கப் பிரிவு மற்றும் வரிசைப்படுத்தலுடன் தேடவும்.
query images($query: String!, $offset: Int!, $limit: Int!, $sortBy: ImageSortBy!) {
images(query: $query, offset: $offset, limit: $limit, sortBy: $sortBy) { id title path size width height rotation bucketId }
}