@absolutejs/absolute 0.19.0-beta.497 → 0.19.0-beta.499

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { Elysia } from 'elysia';
2
- import type { AIMessage, RAGEvaluationResponse, RAGBackendsResponse, RAGDocumentChunksResponse, RAGDocumentsResponse, RAGChatPluginConfig, RAGMutationResponse, RAGOperationsResponse, RAGSource } from '../../../types/ai';
2
+ import type { AIMessage, RAGEvaluationResponse, RAGBackendsResponse, RAGDocumentChunksResponse, RAGDocumentsResponse, RAGChatPluginConfig, RAGMutationResponse, RAGOperationsResponse, RAGSyncResponse, RAGSource } from '../../../types/ai';
3
3
  export declare const ragChat: (config: RAGChatPluginConfig) => Elysia<"", {
4
4
  decorator: {};
5
5
  store: {};
@@ -167,6 +167,61 @@ export declare const ragChat: (config: RAGChatPluginConfig) => Elysia<"", {
167
167
  };
168
168
  };
169
169
  };
170
+ } & {
171
+ [x: string]: {
172
+ sync: {
173
+ get: {
174
+ body: unknown;
175
+ params: {};
176
+ query: unknown;
177
+ headers: unknown;
178
+ response: {
179
+ 200: Response | RAGSyncResponse;
180
+ };
181
+ };
182
+ };
183
+ };
184
+ } & {
185
+ [x: string]: {
186
+ sync: {
187
+ post: {
188
+ body: unknown;
189
+ params: {};
190
+ query: unknown;
191
+ headers: unknown;
192
+ response: {
193
+ 200: Response | RAGSyncResponse;
194
+ };
195
+ };
196
+ };
197
+ };
198
+ } & ({
199
+ [x: string]: {
200
+ sync: {
201
+ ":id": {
202
+ post: {
203
+ body: unknown;
204
+ params: {
205
+ id: string;
206
+ } & {};
207
+ query: unknown;
208
+ headers: unknown;
209
+ response: {
210
+ 200: Response | RAGSyncResponse;
211
+ 422: {
212
+ type: "validation";
213
+ on: string;
214
+ summary?: string;
215
+ message?: string;
216
+ found?: unknown;
217
+ property?: string;
218
+ expected?: string;
219
+ };
220
+ };
221
+ };
222
+ };
223
+ };
224
+ };
170
225
  } & {
171
226
  [x: string]: {
172
227
  ingest: {
@@ -186,7 +241,7 @@ export declare const ragChat: (config: RAGChatPluginConfig) => Elysia<"", {
186
241
  };
187
242
  };
188
243
  };
189
- } & ({
244
+ } & {
190
245
  [x: string]: {
191
246
  index: {
192
247
  delete: {
@@ -274,7 +329,7 @@ export declare const ragChat: (config: RAGChatPluginConfig) => Elysia<"", {
274
329
  };
275
330
  };
276
331
  };
277
- } & {
332
+ } & ({
278
333
  [x: string]: {
279
334
  reseed: {
280
335
  post: {
@@ -288,7 +343,7 @@ export declare const ragChat: (config: RAGChatPluginConfig) => Elysia<"", {
288
343
  };
289
344
  };
290
345
  };
291
- } & ({
346
+ } & {
292
347
  [x: string]: {
293
348
  reset: {
294
349
  post: {
@@ -9,6 +9,7 @@ export { anthropicOCR, geminiOCR, ollamaOCR, ollamaTranscriber, openaiCompatible
9
9
  export { buildRAGUpsertInputFromDirectory, buildRAGUpsertInputFromDocuments, buildRAGUpsertInputFromUploads, createBuiltinArchiveExpander, createEmailExtractor, createEPUBExtractor, createLegacyDocumentExtractor, createRAGPDFOCRExtractor, createRAGArchiveExpander, createRAGArchiveFileExtractor, createOfficeDocumentExtractor, createPDFFileExtractor, createRAGFileExtractor, createRAGImageOCRExtractor, createRAGMediaFileExtractor, createRAGMediaTranscriber, createRAGOCRProvider, createTextFileExtractor, loadRAGDocumentFromURL, loadRAGDocumentUpload, loadRAGDocumentsFromUploads, buildRAGUpsertInputFromURLs, loadRAGDocumentFile, loadRAGDocumentsFromDirectory, loadRAGDocumentsFromURLs, prepareRAGDirectoryDocuments, prepareRAGDocument, prepareRAGDocumentFile, prepareRAGDocuments } from './ingestion';
10
10
  export { buildRAGAnswerWorkflowState, buildRAGCitations, buildRAGCitationReferenceMap, buildRAGGroundedAnswer, buildRAGGroundingReferences, buildRAGSourceGroups, buildRAGSourceSummaries, buildRAGStreamProgress as buildRAGTransportProgress, getLatestAssistantMessage, getLatestRAGSources, resolveRAGStreamStage } from './presentation';
11
11
  export { buildRAGEvaluationLeaderboard, buildRAGEvaluationResponse, compareRAGRetrievalStrategies, compareRAGRerankers, createRAGEvaluationSuite, evaluateRAGCollection, executeDryRunRAGEvaluation, runRAGEvaluationSuite, summarizeRAGEvaluationCase, summarizeRAGRerankerComparison } from './quality';
12
+ export { createRAGDirectorySyncSource, createRAGFileSyncStateStore, createRAGSyncManager, createRAGSyncScheduler, createRAGUrlSyncSource } from './sync';
12
13
  export type { RAGStreamProgress as RAGTransportProgress, RAGStreamProgressState as RAGTransportProgressState } from './presentation';
13
14
  export { createRAGCollection, ingestDocuments, ingestRAGDocuments, searchDocuments } from './collection';
14
15
  export { createInMemoryRAGStore } from './adapters/inMemory';
@@ -18,5 +19,5 @@ export { createRAGVector, normalizeVector, querySimilarity } from './adapters/ut
18
19
  export type { GeminiEmbeddingsConfig, OllamaEmbeddingsConfig, OpenAICompatibleEmbeddingsConfig, OpenAIEmbeddingsConfig } from './embeddingProviders';
19
20
  export type { AnthropicOCRConfig, GeminiOCRConfig, OllamaOCRConfig, OllamaTranscriptionConfig, OpenAICompatibleOCRConfig, OpenAICompatibleTranscriptionConfig, OpenAIOCRConfig, OpenAITranscriptionConfig } from './extractorProviders';
20
21
  export type { NativeSQLiteRAGStoreOptions, SQLiteRAGStoreOptions } from './adapters/sqlite';
21
- export type { AIHTMXRenderConfig, RAGAnswerWorkflowState, RAGBackendCapabilities, RAGCitation, RAGCitationReferenceMap, RAGGroundedAnswer, RAGGroundedAnswerPart, RAGGroundingReference, RAGChunkingOptions, RAGChunkingStrategy, RAGDocumentChunk, RAGDocumentChunkPreview, RAGArchiveEntry, RAGArchiveExpander, RAGArchiveExpansionResult, RAGExtractedFileDocument, RAGFileExtractionInput, RAGFileExtractor, RAGPDFOCRExtractorOptions, RAGDocumentFileInput, RAGDirectoryIngestInput, RAGDocumentIngestInput, RAGDocumentUploadIngestInput, RAGDocumentUploadInput, RAGDocumentUrlIngestInput, RAGDocumentUrlInput, RAGEmbeddingFunction, RAGEmbeddingInput, RAGEmbeddingProvider, RAGEmbeddingProviderLike, RAGBackendDescriptor, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGEvaluationCase, RAGEvaluationCaseResult, RAGEvaluationLeaderboardEntry, RAGEvaluationInput, RAGEvaluationResponse, RAGEvaluationSummary, RAGEvaluationSuite, RAGEvaluationSuiteRun, RAGRetrievalCandidate, RAGRetrievalComparison, RAGRetrievalComparisonEntry, RAGRetrievalComparisonSummary, RAGHTMXConfig, RAGHTMXWorkflowRenderConfig, RAGIngestDocument, RAGIngestResponse, RAGIndexedDocument, RAGHybridFusionMode, RAGHybridRetrievalMode, RAGHybridSearchOptions, RAGMediaTranscriber, RAGMediaTranscriptSegment, RAGMediaTranscriptionResult, RAGMutationResponse, RAGLexicalQueryInput, RAGOCRProvider, RAGOCRResult, RAGQueryInput, RAGQueryResult, RAGQueryTransformInput, RAGQueryTransformProvider, RAGQueryTransformProviderLike, RAGQueryTransformResult, RAGQueryTransformer, RAGPreparedDocument, RAGReranker, RAGRerankerCandidate, RAGRerankerComparison, RAGRerankerComparisonEntry, RAGRerankerComparisonSummary, RAGRerankerInput, RAGRerankerProvider, RAGRerankerProviderLike, RAGSearchRequest, RAGSource, RAGSourceGroup, RAGSourceSummary, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution } from './types';
22
+ export type { AIHTMXRenderConfig, RAGAnswerWorkflowState, RAGBackendCapabilities, RAGCitation, RAGCitationReferenceMap, RAGGroundedAnswer, RAGGroundedAnswerPart, RAGGroundingReference, RAGChunkingOptions, RAGChunkingStrategy, RAGDocumentChunk, RAGDocumentChunkPreview, RAGArchiveEntry, RAGArchiveExpander, RAGArchiveExpansionResult, RAGExtractedFileDocument, RAGFileExtractionInput, RAGFileExtractor, RAGPDFOCRExtractorOptions, RAGDocumentFileInput, RAGDirectoryIngestInput, RAGDocumentIngestInput, RAGDocumentUploadIngestInput, RAGDocumentUploadInput, RAGDocumentUrlIngestInput, RAGDocumentUrlInput, RAGEmbeddingFunction, RAGEmbeddingInput, RAGEmbeddingProvider, RAGEmbeddingProviderLike, RAGBackendDescriptor, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGEvaluationCase, RAGEvaluationCaseResult, RAGEvaluationLeaderboardEntry, RAGEvaluationInput, RAGEvaluationResponse, RAGEvaluationSummary, RAGEvaluationSuite, RAGEvaluationSuiteRun, RAGRetrievalCandidate, RAGRetrievalComparison, RAGRetrievalComparisonEntry, RAGRetrievalComparisonSummary, RAGHTMXConfig, RAGHTMXWorkflowRenderConfig, RAGIngestDocument, RAGIngestResponse, RAGIndexedDocument, RAGHybridFusionMode, RAGHybridRetrievalMode, RAGHybridSearchOptions, RAGMediaTranscriber, RAGMediaTranscriptSegment, RAGMediaTranscriptionResult, RAGMutationResponse, RAGLexicalQueryInput, RAGOCRProvider, RAGOCRResult, RAGQueryInput, RAGQueryResult, RAGQueryTransformInput, RAGQueryTransformProvider, RAGQueryTransformProviderLike, RAGQueryTransformResult, RAGQueryTransformer, RAGPreparedDocument, RAGReranker, RAGRerankerCandidate, RAGRerankerComparison, RAGRerankerComparisonEntry, RAGRerankerComparisonSummary, RAGRerankerInput, RAGRerankerProvider, RAGRerankerProviderLike, RAGSearchRequest, RAGSyncManager, RAGSyncSchedule, RAGSyncScheduler, RAGSyncResponse, RAGSyncRunOptions, RAGSyncStateStore, RAGSyncSourceContext, RAGSyncSourceDefinition, RAGSyncSourceRecord, RAGSyncSourceRunResult, RAGDirectorySyncSourceOptions, RAGUrlSyncSourceOptions, RAGSource, RAGSourceGroup, RAGSourceSummary, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution } from './types';
22
23
  export type { RAGPostgresNativeDiagnostics } from '../../../types/ai';
@@ -0,0 +1,9 @@
1
+ import type { CreateRAGSyncManagerOptions, RAGDirectorySyncSourceOptions, RAGSyncSchedule, RAGSyncScheduler, RAGSyncStateStore, RAGSyncManager, RAGSyncSourceDefinition, RAGUrlSyncSourceOptions } from '../../../types/ai';
2
+ export declare const createRAGDirectorySyncSource: (options: RAGDirectorySyncSourceOptions) => RAGSyncSourceDefinition;
3
+ export declare const createRAGUrlSyncSource: (options: RAGUrlSyncSourceOptions) => RAGSyncSourceDefinition;
4
+ export declare const createRAGSyncManager: (options: CreateRAGSyncManagerOptions) => RAGSyncManager;
5
+ export declare const createRAGFileSyncStateStore: (path: string) => RAGSyncStateStore;
6
+ export declare const createRAGSyncScheduler: (input: {
7
+ manager: RAGSyncManager;
8
+ schedules: RAGSyncSchedule[];
9
+ }) => RAGSyncScheduler;
@@ -1,5 +1,5 @@
1
1
  import type { RAGDocumentChunk, RAGQueryInput, RAGQueryResult, RAGUpsertInput } from '../../../types/ai';
2
- export type { AIHTMXRenderConfig, RAGAnswerWorkflowState, RAGBackendCapabilities, RAGCitation, RAGCitationReferenceMap, RAGGroundedAnswer, RAGGroundedAnswerPart, RAGGroundingReference, RAGChunkingOptions, RAGChunkingStrategy, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGHTMXConfig, RAGHybridFusionMode, RAGHybridRetrievalMode, RAGHybridSearchOptions, RAGDocumentChunk, RAGDocumentChunkPreview, RAGArchiveEntry, RAGArchiveExpander, RAGArchiveExpansionResult, RAGExtractedFileDocument, RAGFileExtractionInput, RAGFileExtractor, RAGPDFOCRExtractorOptions, RAGDirectoryIngestInput, RAGDocumentFileInput, RAGDocumentIngestInput, RAGDocumentUploadIngestInput, RAGDocumentUploadInput, RAGEmbeddingFunction, RAGEmbeddingInput, RAGEmbeddingProvider, RAGEmbeddingProviderLike, RAGBackendDescriptor, RAGHTMXWorkflowRenderConfig, RAGIngestDocument, RAGIndexedDocument, RAGMediaTranscriber, RAGMediaTranscriptSegment, RAGMediaTranscriptionResult, RAGLexicalQueryInput, RAGDocumentUrlInput, RAGDocumentUrlIngestInput, RAGOCRProvider, RAGOCRResult, RAGPreparedDocument, RAGSource, RAGSourceGroup, RAGSourceSummary, RAGIngestResponse, RAGMutationResponse, RAGPostgresNativeDiagnostics, RAGQueryInput, RAGQueryResult, RAGQueryTransformInput, RAGQueryTransformProvider, RAGQueryTransformProviderLike, RAGQueryTransformResult, RAGQueryTransformer, RAGSearchRequest, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGStreamStage, RAGEvaluationCase, RAGEvaluationCaseResult, RAGEvaluationLeaderboardEntry, RAGEvaluationInput, RAGEvaluationResponse, RAGEvaluationSummary, RAGEvaluationSuite, RAGEvaluationSuiteRun, RAGRetrievalCandidate, RAGRetrievalComparison, RAGRetrievalComparisonEntry, RAGRetrievalComparisonSummary, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution } from '../../../types/ai';
2
+ export type { AIHTMXRenderConfig, RAGAnswerWorkflowState, RAGBackendCapabilities, RAGCitation, RAGCitationReferenceMap, RAGGroundedAnswer, RAGGroundedAnswerPart, RAGGroundingReference, RAGChunkingOptions, RAGChunkingStrategy, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGHTMXConfig, RAGHybridFusionMode, RAGHybridRetrievalMode, RAGHybridSearchOptions, RAGDocumentChunk, RAGDocumentChunkPreview, RAGArchiveEntry, RAGArchiveExpander, RAGArchiveExpansionResult, RAGExtractedFileDocument, RAGFileExtractionInput, RAGFileExtractor, RAGPDFOCRExtractorOptions, RAGDirectoryIngestInput, RAGDirectorySyncSourceOptions, RAGDocumentFileInput, RAGDocumentIngestInput, RAGDocumentUploadIngestInput, RAGDocumentUploadInput, RAGEmbeddingFunction, RAGEmbeddingInput, RAGEmbeddingProvider, RAGEmbeddingProviderLike, RAGBackendDescriptor, RAGHTMXWorkflowRenderConfig, RAGIngestDocument, RAGIndexedDocument, RAGMediaTranscriber, RAGMediaTranscriptSegment, RAGMediaTranscriptionResult, RAGLexicalQueryInput, RAGDocumentUrlInput, RAGDocumentUrlIngestInput, RAGOCRProvider, RAGOCRResult, RAGPreparedDocument, RAGSource, RAGSourceGroup, RAGSourceSummary, RAGIngestResponse, RAGMutationResponse, RAGPostgresNativeDiagnostics, RAGQueryInput, RAGQueryResult, RAGQueryTransformInput, RAGQueryTransformProvider, RAGQueryTransformProviderLike, RAGQueryTransformResult, RAGQueryTransformer, RAGSearchRequest, RAGSyncManager, RAGSyncRunOptions, RAGSyncSchedule, RAGSyncScheduler, RAGSyncResponse, RAGSyncStateStore, RAGSyncSourceContext, RAGSyncSourceDefinition, RAGSyncSourceRecord, RAGSyncSourceRunResult, RAGUrlSyncSourceOptions, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGStreamStage, RAGEvaluationCase, RAGEvaluationCaseResult, RAGEvaluationLeaderboardEntry, RAGEvaluationInput, RAGEvaluationResponse, RAGEvaluationSummary, RAGEvaluationSuite, RAGEvaluationSuiteRun, RAGRetrievalCandidate, RAGRetrievalComparison, RAGRetrievalComparisonEntry, RAGRetrievalComparisonSummary, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution } from '../../../types/ai';
3
3
  export type InternalRAGStoredChunk = RAGDocumentChunk & {
4
4
  vector: number[];
5
5
  sourceId: string;
@@ -1,4 +1,4 @@
1
- import type { RAGEvaluationInput, RAGDocumentChunk, RAGDocumentIngestInput, RAGDocumentUploadIngestInput, RAGDocumentUrlIngestInput, RAGSearchRequest } from '../../../types/ai';
1
+ import type { RAGEvaluationInput, RAGDocumentChunk, RAGDocumentIngestInput, RAGDocumentUploadIngestInput, RAGDocumentUrlIngestInput, RAGSearchRequest, RAGSyncRunOptions } from '../../../types/ai';
2
2
  export declare class RAGClientService {
3
3
  private clients;
4
4
  private client;
@@ -10,6 +10,9 @@ export declare class RAGClientService {
10
10
  evaluate(path: string, input: RAGEvaluationInput): Promise<import("../..").RAGEvaluationResponse>;
11
11
  status(path: string): Promise<import("../..").RAGStatusResponse>;
12
12
  ops(path: string): Promise<import("../..").RAGOperationsResponse>;
13
+ syncSources(path: string): Promise<import("../..").RAGSyncResponse>;
14
+ syncAllSources(path: string, options?: RAGSyncRunOptions): Promise<import("../..").RAGSyncResponse>;
15
+ syncSource(path: string, id: string, options?: RAGSyncRunOptions): Promise<import("../..").RAGSyncResponse>;
13
16
  documents(path: string, kind?: string): Promise<import("../..").RAGDocumentsResponse>;
14
17
  documentChunks(path: string, id: string): Promise<import("../..").RAGDocumentChunksResponse>;
15
18
  createDocument(path: string, input: RAGDocumentIngestInput['documents'][number]): Promise<import("../..").RAGMutationResponse>;
@@ -90,6 +90,30 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
90
90
  reseed: () => Promise<import("../..").RAGMutationResponse>;
91
91
  reset: () => Promise<import("../..").RAGMutationResponse>;
92
92
  resetState: () => void;
93
+ loadSyncSources: () => Promise<import("../..").RAGSyncResponse>;
94
+ syncAllSources: () => Promise<{
95
+ ok: true;
96
+ source: import("../..").RAGSyncSourceRecord;
97
+ partial?: boolean;
98
+ } | {
99
+ ok: true;
100
+ sources: import("../..").RAGSyncSourceRecord[];
101
+ partial?: boolean;
102
+ failedSourceIds?: string[];
103
+ errorsBySource?: Record<string, string>;
104
+ }>;
105
+ syncSource: (id: string) => Promise<{
106
+ ok: true;
107
+ source: import("../..").RAGSyncSourceRecord;
108
+ partial?: boolean;
109
+ } | {
110
+ ok: true;
111
+ sources: import("../..").RAGSyncSourceRecord[];
112
+ partial?: boolean;
113
+ failedSourceIds?: string[];
114
+ errorsBySource?: Record<string, string>;
115
+ }>;
116
+ syncSources: import("../..").RAGSyncResponse | null;
93
117
  };
94
118
  ingest: {
95
119
  clearIndex: () => Promise<void>;
@@ -120,6 +144,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
120
144
  refresh: () => Promise<import("../..").RAGOperationsResponse>;
121
145
  reset: () => void;
122
146
  status: import("../..").RAGVectorStoreStatus | undefined;
147
+ syncSources: import("../..").RAGSyncSourceRecord[];
123
148
  };
124
149
  search: {
125
150
  error: string | null;
@@ -1,4 +1,4 @@
1
- import type { RAGBackendsResponse, RAGMutationResponse } from '../../../types/ai';
1
+ import type { RAGBackendsResponse, RAGMutationResponse, RAGSyncResponse } from '../../../types/ai';
2
2
  export declare const useRAGIndexAdmin: (path: string) => {
3
3
  backends: RAGBackendsResponse | null;
4
4
  clearIndex: () => Promise<{
@@ -28,5 +28,29 @@ export declare const useRAGIndexAdmin: (path: string) => {
28
28
  reseed: () => Promise<RAGMutationResponse>;
29
29
  reset: () => Promise<RAGMutationResponse>;
30
30
  resetState: () => void;
31
+ loadSyncSources: () => Promise<RAGSyncResponse>;
32
+ syncAllSources: () => Promise<{
33
+ ok: true;
34
+ source: import("../..").RAGSyncSourceRecord;
35
+ partial?: boolean;
36
+ } | {
37
+ ok: true;
38
+ sources: import("../..").RAGSyncSourceRecord[];
39
+ partial?: boolean;
40
+ failedSourceIds?: string[];
41
+ errorsBySource?: Record<string, string>;
42
+ }>;
43
+ syncSource: (id: string) => Promise<{
44
+ ok: true;
45
+ source: import("../..").RAGSyncSourceRecord;
46
+ partial?: boolean;
47
+ } | {
48
+ ok: true;
49
+ sources: import("../..").RAGSyncSourceRecord[];
50
+ partial?: boolean;
51
+ failedSourceIds?: string[];
52
+ errorsBySource?: Record<string, string>;
53
+ }>;
54
+ syncSources: RAGSyncResponse | null;
31
55
  };
32
56
  export type UseRAGIndexAdminResult = ReturnType<typeof useRAGIndexAdmin>;
@@ -1,4 +1,4 @@
1
- import type { RAGAdminActionRecord, RAGAdminJobRecord, RAGAdminCapabilities, RAGBackendCapabilities, RAGCorpusHealth, RAGDocumentSummary, RAGExtractorReadiness, RAGIngestJobRecord, RAGOperationsResponse, RAGVectorStoreStatus } from '../../../types/ai';
1
+ import type { RAGAdminActionRecord, RAGAdminJobRecord, RAGAdminCapabilities, RAGBackendCapabilities, RAGCorpusHealth, RAGDocumentSummary, RAGExtractorReadiness, RAGIngestJobRecord, RAGOperationsResponse, RAGSyncSourceRecord, RAGVectorStoreStatus } from '../../../types/ai';
2
2
  export declare const useRAGOps: (path: string, autoLoad?: boolean) => {
3
3
  admin: RAGAdminCapabilities | undefined;
4
4
  adminActions: RAGAdminActionRecord[];
@@ -14,5 +14,6 @@ export declare const useRAGOps: (path: string, autoLoad?: boolean) => {
14
14
  refresh: () => Promise<RAGOperationsResponse>;
15
15
  reset: () => void;
16
16
  status: RAGVectorStoreStatus | undefined;
17
+ syncSources: RAGSyncSourceRecord[];
17
18
  };
18
19
  export type UseRAGOpsResult = ReturnType<typeof useRAGOps>;
@@ -85,11 +85,35 @@ export declare const createRAG: (path: string, options?: CreateRAGOptions) => {
85
85
  isLoading: import("svelte/store").Writable<boolean>;
86
86
  lastMutation: import("svelte/store").Writable<import("../..").RAGMutationResponse | null>;
87
87
  loadBackends: () => Promise<import("../..").RAGBackendsResponse>;
88
+ loadSyncSources: () => Promise<import("../..").RAGSyncResponse>;
88
89
  reindexDocument: (id: string) => Promise<import("../..").RAGMutationResponse>;
89
90
  reindexSource: (source: string) => Promise<import("../..").RAGMutationResponse>;
90
91
  reseed: () => Promise<import("../..").RAGMutationResponse>;
91
92
  reset: () => Promise<import("../..").RAGMutationResponse>;
92
93
  resetState: () => void;
94
+ syncAllSources: () => Promise<{
95
+ ok: true;
96
+ source: import("../..").RAGSyncSourceRecord;
97
+ partial?: boolean;
98
+ } | {
99
+ ok: true;
100
+ sources: import("../..").RAGSyncSourceRecord[];
101
+ partial?: boolean;
102
+ failedSourceIds?: string[];
103
+ errorsBySource?: Record<string, string>;
104
+ }>;
105
+ syncSource: (id: string) => Promise<{
106
+ ok: true;
107
+ source: import("../..").RAGSyncSourceRecord;
108
+ partial?: boolean;
109
+ } | {
110
+ ok: true;
111
+ sources: import("../..").RAGSyncSourceRecord[];
112
+ partial?: boolean;
113
+ failedSourceIds?: string[];
114
+ errorsBySource?: Record<string, string>;
115
+ }>;
116
+ syncSources: import("svelte/store").Writable<import("../..").RAGSyncResponse | null>;
93
117
  };
94
118
  ingest: {
95
119
  clearIndex: () => Promise<{
@@ -122,6 +146,7 @@ export declare const createRAG: (path: string, options?: CreateRAGOptions) => {
122
146
  refresh: () => Promise<import("../..").RAGOperationsResponse>;
123
147
  reset: () => void;
124
148
  status: import("svelte/store").Writable<import("../..").RAGVectorStoreStatus | undefined>;
149
+ syncSources: import("svelte/store").Writable<import("../..").RAGSyncSourceRecord[]>;
125
150
  };
126
151
  search: {
127
152
  error: import("svelte/store").Writable<string | null>;
@@ -1,4 +1,4 @@
1
- import type { RAGBackendsResponse, RAGChunkingStrategy, RAGContentFormat, RAGMutationResponse } from '../../../types/ai';
1
+ import type { RAGBackendsResponse, RAGChunkingStrategy, RAGContentFormat, RAGMutationResponse, RAGSyncResponse } from '../../../types/ai';
2
2
  export declare const createRAGIndexAdmin: (path: string) => {
3
3
  backends: import("svelte/store").Writable<RAGBackendsResponse | null>;
4
4
  clearIndex: () => Promise<{
@@ -23,10 +23,34 @@ export declare const createRAGIndexAdmin: (path: string) => {
23
23
  isLoading: import("svelte/store").Writable<boolean>;
24
24
  lastMutation: import("svelte/store").Writable<RAGMutationResponse | null>;
25
25
  loadBackends: () => Promise<RAGBackendsResponse>;
26
+ loadSyncSources: () => Promise<RAGSyncResponse>;
26
27
  reindexDocument: (id: string) => Promise<RAGMutationResponse>;
27
28
  reindexSource: (source: string) => Promise<RAGMutationResponse>;
28
29
  reseed: () => Promise<RAGMutationResponse>;
29
30
  reset: () => Promise<RAGMutationResponse>;
30
31
  resetState: () => void;
32
+ syncAllSources: () => Promise<{
33
+ ok: true;
34
+ source: import("../..").RAGSyncSourceRecord;
35
+ partial?: boolean;
36
+ } | {
37
+ ok: true;
38
+ sources: import("../..").RAGSyncSourceRecord[];
39
+ partial?: boolean;
40
+ failedSourceIds?: string[];
41
+ errorsBySource?: Record<string, string>;
42
+ }>;
43
+ syncSource: (id: string) => Promise<{
44
+ ok: true;
45
+ source: import("../..").RAGSyncSourceRecord;
46
+ partial?: boolean;
47
+ } | {
48
+ ok: true;
49
+ sources: import("../..").RAGSyncSourceRecord[];
50
+ partial?: boolean;
51
+ failedSourceIds?: string[];
52
+ errorsBySource?: Record<string, string>;
53
+ }>;
54
+ syncSources: import("svelte/store").Writable<RAGSyncResponse | null>;
31
55
  };
32
56
  export type CreateRAGIndexAdminResult = ReturnType<typeof createRAGIndexAdmin>;
@@ -1,4 +1,4 @@
1
- import type { RAGAdminActionRecord, RAGAdminJobRecord, RAGAdminCapabilities, RAGBackendCapabilities, RAGCorpusHealth, RAGDocumentSummary, RAGExtractorReadiness, RAGIngestJobRecord, RAGOperationsResponse, RAGVectorStoreStatus } from '../../../types/ai';
1
+ import type { RAGAdminActionRecord, RAGAdminJobRecord, RAGAdminCapabilities, RAGBackendCapabilities, RAGCorpusHealth, RAGDocumentSummary, RAGExtractorReadiness, RAGIngestJobRecord, RAGOperationsResponse, RAGSyncSourceRecord, RAGVectorStoreStatus } from '../../../types/ai';
2
2
  export declare const createRAGOps: (path: string, autoLoad?: boolean) => {
3
3
  admin: import("svelte/store").Writable<RAGAdminCapabilities | undefined>;
4
4
  adminActions: import("svelte/store").Writable<RAGAdminActionRecord[]>;
@@ -14,5 +14,6 @@ export declare const createRAGOps: (path: string, autoLoad?: boolean) => {
14
14
  refresh: () => Promise<RAGOperationsResponse>;
15
15
  reset: () => void;
16
16
  status: import("svelte/store").Writable<RAGVectorStoreStatus | undefined>;
17
+ syncSources: import("svelte/store").Writable<RAGSyncSourceRecord[]>;
17
18
  };
18
19
  export type CreateRAGOpsResult = ReturnType<typeof createRAGOps>;
@@ -615,11 +615,133 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
615
615
  } | undefined;
616
616
  } | null>;
617
617
  loadBackends: () => Promise<import("../..").RAGBackendsResponse>;
618
+ loadSyncSources: () => Promise<import("../..").RAGSyncResponse>;
618
619
  reindexDocument: (id: string) => Promise<import("../..").RAGMutationResponse>;
619
620
  reindexSource: (source: string) => Promise<import("../..").RAGMutationResponse>;
620
621
  reseed: () => Promise<import("../..").RAGMutationResponse>;
621
622
  reset: () => Promise<import("../..").RAGMutationResponse>;
622
623
  resetState: () => void;
624
+ syncAllSources: () => Promise<{
625
+ ok: true;
626
+ source: import("../..").RAGSyncSourceRecord;
627
+ partial?: boolean;
628
+ } | {
629
+ ok: true;
630
+ sources: import("../..").RAGSyncSourceRecord[];
631
+ partial?: boolean;
632
+ failedSourceIds?: string[];
633
+ errorsBySource?: Record<string, string>;
634
+ }>;
635
+ syncSource: (id: string) => Promise<{
636
+ ok: true;
637
+ source: import("../..").RAGSyncSourceRecord;
638
+ partial?: boolean;
639
+ } | {
640
+ ok: true;
641
+ sources: import("../..").RAGSyncSourceRecord[];
642
+ partial?: boolean;
643
+ failedSourceIds?: string[];
644
+ errorsBySource?: Record<string, string>;
645
+ }>;
646
+ syncSources: import("vue").Ref<{
647
+ ok: true;
648
+ source: {
649
+ id: string;
650
+ label: string;
651
+ kind: "directory" | "url" | "storage" | "email" | "custom";
652
+ status: import("../..").RAGSyncSourceStatus;
653
+ description?: string | undefined;
654
+ target?: string | undefined;
655
+ lastStartedAt?: number | undefined;
656
+ lastSyncedAt?: number | undefined;
657
+ lastSyncDurationMs?: number | undefined;
658
+ lastError?: string | undefined;
659
+ lastSuccessfulSyncAt?: number | undefined;
660
+ consecutiveFailures?: number | undefined;
661
+ retryAttempts?: number | undefined;
662
+ nextRetryAt?: number | undefined;
663
+ documentCount?: number | undefined;
664
+ chunkCount?: number | undefined;
665
+ metadata?: Record<string, unknown> | undefined;
666
+ };
667
+ partial?: boolean | undefined;
668
+ } | {
669
+ ok: true;
670
+ sources: {
671
+ id: string;
672
+ label: string;
673
+ kind: "directory" | "url" | "storage" | "email" | "custom";
674
+ status: import("../..").RAGSyncSourceStatus;
675
+ description?: string | undefined;
676
+ target?: string | undefined;
677
+ lastStartedAt?: number | undefined;
678
+ lastSyncedAt?: number | undefined;
679
+ lastSyncDurationMs?: number | undefined;
680
+ lastError?: string | undefined;
681
+ lastSuccessfulSyncAt?: number | undefined;
682
+ consecutiveFailures?: number | undefined;
683
+ retryAttempts?: number | undefined;
684
+ nextRetryAt?: number | undefined;
685
+ documentCount?: number | undefined;
686
+ chunkCount?: number | undefined;
687
+ metadata?: Record<string, unknown> | undefined;
688
+ }[];
689
+ partial?: boolean | undefined;
690
+ failedSourceIds?: string[] | undefined;
691
+ errorsBySource?: Record<string, string> | undefined;
692
+ } | {
693
+ ok: false;
694
+ error: string;
695
+ } | null, import("../..").RAGSyncResponse | {
696
+ ok: true;
697
+ source: {
698
+ id: string;
699
+ label: string;
700
+ kind: "directory" | "url" | "storage" | "email" | "custom";
701
+ status: import("../..").RAGSyncSourceStatus;
702
+ description?: string | undefined;
703
+ target?: string | undefined;
704
+ lastStartedAt?: number | undefined;
705
+ lastSyncedAt?: number | undefined;
706
+ lastSyncDurationMs?: number | undefined;
707
+ lastError?: string | undefined;
708
+ lastSuccessfulSyncAt?: number | undefined;
709
+ consecutiveFailures?: number | undefined;
710
+ retryAttempts?: number | undefined;
711
+ nextRetryAt?: number | undefined;
712
+ documentCount?: number | undefined;
713
+ chunkCount?: number | undefined;
714
+ metadata?: Record<string, unknown> | undefined;
715
+ };
716
+ partial?: boolean | undefined;
717
+ } | {
718
+ ok: true;
719
+ sources: {
720
+ id: string;
721
+ label: string;
722
+ kind: "directory" | "url" | "storage" | "email" | "custom";
723
+ status: import("../..").RAGSyncSourceStatus;
724
+ description?: string | undefined;
725
+ target?: string | undefined;
726
+ lastStartedAt?: number | undefined;
727
+ lastSyncedAt?: number | undefined;
728
+ lastSyncDurationMs?: number | undefined;
729
+ lastError?: string | undefined;
730
+ lastSuccessfulSyncAt?: number | undefined;
731
+ consecutiveFailures?: number | undefined;
732
+ retryAttempts?: number | undefined;
733
+ nextRetryAt?: number | undefined;
734
+ documentCount?: number | undefined;
735
+ chunkCount?: number | undefined;
736
+ metadata?: Record<string, unknown> | undefined;
737
+ }[];
738
+ partial?: boolean | undefined;
739
+ failedSourceIds?: string[] | undefined;
740
+ errorsBySource?: Record<string, string> | undefined;
741
+ } | {
742
+ ok: false;
743
+ error: string;
744
+ } | null>;
623
745
  };
624
746
  ingest: {
625
747
  clearIndex: () => Promise<{
@@ -651,26 +773,28 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
651
773
  admin: import("vue").Ref<import("../..").RAGAdminCapabilities | undefined, import("../..").RAGAdminCapabilities | undefined>;
652
774
  adminActions: import("vue").Ref<{
653
775
  id: string;
654
- action: "clear_index" | "create_document" | "delete_document" | "reindex_document" | "reindex_source" | "reseed" | "reset";
776
+ action: "clear_index" | "create_document" | "delete_document" | "reindex_document" | "reindex_source" | "sync_all_sources" | "sync_source" | "reseed" | "reset";
655
777
  status: "completed" | "failed";
656
778
  startedAt: number;
657
779
  finishedAt?: number | undefined;
658
780
  elapsedMs?: number | undefined;
659
781
  documentId?: string | undefined;
782
+ target?: string | undefined;
660
783
  error?: string | undefined;
661
784
  }[], import("../..").RAGAdminActionRecord[] | {
662
785
  id: string;
663
- action: "clear_index" | "create_document" | "delete_document" | "reindex_document" | "reindex_source" | "reseed" | "reset";
786
+ action: "clear_index" | "create_document" | "delete_document" | "reindex_document" | "reindex_source" | "sync_all_sources" | "sync_source" | "reseed" | "reset";
664
787
  status: "completed" | "failed";
665
788
  startedAt: number;
666
789
  finishedAt?: number | undefined;
667
790
  elapsedMs?: number | undefined;
668
791
  documentId?: string | undefined;
792
+ target?: string | undefined;
669
793
  error?: string | undefined;
670
794
  }[]>;
671
795
  adminJobs: import("vue").Ref<{
672
796
  id: string;
673
- action: "clear_index" | "create_document" | "delete_document" | "reindex_document" | "reindex_source" | "reseed" | "reset";
797
+ action: "clear_index" | "create_document" | "delete_document" | "reindex_document" | "reindex_source" | "sync_all_sources" | "sync_source" | "reseed" | "reset";
674
798
  status: import("../..").RAGAdminJobStatus;
675
799
  startedAt: number;
676
800
  finishedAt?: number | undefined;
@@ -679,7 +803,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
679
803
  error?: string | undefined;
680
804
  }[], import("../..").RAGAdminJobRecord[] | {
681
805
  id: string;
682
- action: "clear_index" | "create_document" | "delete_document" | "reindex_document" | "reindex_source" | "reseed" | "reset";
806
+ action: "clear_index" | "create_document" | "delete_document" | "reindex_document" | "reindex_source" | "sync_all_sources" | "sync_source" | "reseed" | "reset";
683
807
  status: import("../..").RAGAdminJobStatus;
684
808
  startedAt: number;
685
809
  finishedAt?: number | undefined;
@@ -722,6 +846,43 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
722
846
  refresh: () => Promise<import("../..").RAGOperationsResponse>;
723
847
  reset: () => void;
724
848
  status: import("vue").Ref<import("../..").RAGVectorStoreStatus | undefined, import("../..").RAGVectorStoreStatus | undefined>;
849
+ syncSources: import("vue").Ref<{
850
+ id: string;
851
+ label: string;
852
+ kind: "directory" | "url" | "storage" | "email" | "custom";
853
+ status: import("../..").RAGSyncSourceStatus;
854
+ description?: string | undefined;
855
+ target?: string | undefined;
856
+ lastStartedAt?: number | undefined;
857
+ lastSyncedAt?: number | undefined;
858
+ lastSyncDurationMs?: number | undefined;
859
+ lastError?: string | undefined;
860
+ lastSuccessfulSyncAt?: number | undefined;
861
+ consecutiveFailures?: number | undefined;
862
+ retryAttempts?: number | undefined;
863
+ nextRetryAt?: number | undefined;
864
+ documentCount?: number | undefined;
865
+ chunkCount?: number | undefined;
866
+ metadata?: Record<string, unknown> | undefined;
867
+ }[], import("../..").RAGSyncSourceRecord[] | {
868
+ id: string;
869
+ label: string;
870
+ kind: "directory" | "url" | "storage" | "email" | "custom";
871
+ status: import("../..").RAGSyncSourceStatus;
872
+ description?: string | undefined;
873
+ target?: string | undefined;
874
+ lastStartedAt?: number | undefined;
875
+ lastSyncedAt?: number | undefined;
876
+ lastSyncDurationMs?: number | undefined;
877
+ lastError?: string | undefined;
878
+ lastSuccessfulSyncAt?: number | undefined;
879
+ consecutiveFailures?: number | undefined;
880
+ retryAttempts?: number | undefined;
881
+ nextRetryAt?: number | undefined;
882
+ documentCount?: number | undefined;
883
+ chunkCount?: number | undefined;
884
+ metadata?: Record<string, unknown> | undefined;
885
+ }[]>;
725
886
  };
726
887
  search: {
727
888
  error: import("vue").Ref<string | null, string | null>;