@sanity/embeddings-index-ui
4.0.194.0.20
dist/index.d.ts~
dist/index.d.tsModified+10−10
Index: package/dist/index.d.ts
===================================================================
--- package/dist/index.d.ts
+++ package/dist/index.d.ts
@@ -26,39 +26,39 @@
*/
embeddingsIndex?: true | EmbeddingsIndexConfig;
}
}
-declare const embeddingsIndexDashboard: import("sanity").Plugin<void>;
-declare const embeddingsIndexReferenceInput: import("sanity").Plugin<void | EmbeddingsIndexConfig>;
-interface NamedIndex {
+export declare const embeddingsIndexDashboard: import("sanity").Plugin<void>;
+export declare const embeddingsIndexReferenceInput: import("sanity").Plugin<void | EmbeddingsIndexConfig>;
+export interface NamedIndex {
indexName: string;
dataset: string;
project: string;
projection: string;
filter: string;
}
-interface IndexState extends NamedIndex {
+export interface IndexState extends NamedIndex {
status: string;
startDocumentCount: number;
remainingDocumentCount: number;
failedDocumentCount: number;
}
-interface QueryResult {
+export interface QueryResult {
score: number;
value: {
documentId: string;
type: string;
};
}
-interface QueryConfig {
+export interface QueryConfig {
query: string;
indexName: string;
maxResults?: number;
filter?: {
type?: string | string[];
};
}
-declare function queryIndex(queryConfig: QueryConfig, client: SanityClient): Promise<QueryResult[]>;
-declare function getIndexes(client: SanityClient): Promise<IndexState[]>;
-declare function deleteIndex(indexName: string, client: SanityClient): Promise<IndexState>;
-export { IndexState, NamedIndex, QueryConfig, QueryResult, deleteIndex, embeddingsIndexDashboard, embeddingsIndexReferenceInput, getIndexes, queryIndex };
+export declare function queryIndex(queryConfig: QueryConfig, client: SanityClient): Promise<QueryResult[]>;
+export declare function getIndexes(client: SanityClient): Promise<IndexState[]>;
+export declare function deleteIndex(indexName: string, client: SanityClient): Promise<IndexState>;
+export {};
//# sourceMappingURL=index.d.ts.map
\ No newline at end of file