@absolutejs/absolute 0.19.0-beta.498 → 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.
- package/dist/ai/client/index.js +7 -3
- package/dist/ai/client/index.js.map +3 -3
- package/dist/ai/index.js +330 -61
- package/dist/ai/index.js.map +6 -6
- package/dist/ai-client/angular/ai/index.js +10 -6
- package/dist/ai-client/react/ai/index.js +6 -2
- package/dist/ai-client/vue/ai/index.js +6 -2
- package/dist/angular/ai/index.js +11 -7
- package/dist/angular/ai/index.js.map +4 -4
- package/dist/react/ai/index.js +7 -3
- package/dist/react/ai/index.js.map +3 -3
- package/dist/src/ai/client/ragClient.d.ts +3 -3
- package/dist/src/ai/index.d.ts +2 -2
- package/dist/src/ai/rag/index.d.ts +2 -2
- package/dist/src/ai/rag/sync.d.ts +6 -1
- package/dist/src/ai/rag/types.d.ts +1 -1
- package/dist/src/angular/ai/rag-client.service.d.ts +3 -3
- package/dist/src/react/ai/useRAG.d.ts +8 -0
- package/dist/src/react/ai/useRAGIndexAdmin.d.ts +8 -0
- package/dist/src/svelte/ai/createRAG.d.ts +8 -0
- package/dist/src/svelte/ai/createRAGIndexAdmin.d.ts +8 -0
- package/dist/src/vue/ai/useRAG.d.ts +46 -0
- package/dist/src/vue/ai/useRAGIndexAdmin.d.ts +36 -0
- package/dist/src/vue/ai/useRAGOps.d.ts +10 -0
- package/dist/svelte/ai/index.js +7 -3
- package/dist/svelte/ai/index.js.map +3 -3
- package/dist/types/ai.d.ts +44 -2
- package/dist/vue/ai/index.js +7 -3
- package/dist/vue/ai/index.js.map +3 -3
- package/package.json +1 -1
|
@@ -94,16 +94,24 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
94
94
|
syncAllSources: () => Promise<{
|
|
95
95
|
ok: true;
|
|
96
96
|
source: import("../..").RAGSyncSourceRecord;
|
|
97
|
+
partial?: boolean;
|
|
97
98
|
} | {
|
|
98
99
|
ok: true;
|
|
99
100
|
sources: import("../..").RAGSyncSourceRecord[];
|
|
101
|
+
partial?: boolean;
|
|
102
|
+
failedSourceIds?: string[];
|
|
103
|
+
errorsBySource?: Record<string, string>;
|
|
100
104
|
}>;
|
|
101
105
|
syncSource: (id: string) => Promise<{
|
|
102
106
|
ok: true;
|
|
103
107
|
source: import("../..").RAGSyncSourceRecord;
|
|
108
|
+
partial?: boolean;
|
|
104
109
|
} | {
|
|
105
110
|
ok: true;
|
|
106
111
|
sources: import("../..").RAGSyncSourceRecord[];
|
|
112
|
+
partial?: boolean;
|
|
113
|
+
failedSourceIds?: string[];
|
|
114
|
+
errorsBySource?: Record<string, string>;
|
|
107
115
|
}>;
|
|
108
116
|
syncSources: import("../..").RAGSyncResponse | null;
|
|
109
117
|
};
|
|
@@ -32,16 +32,24 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
32
32
|
syncAllSources: () => Promise<{
|
|
33
33
|
ok: true;
|
|
34
34
|
source: import("../..").RAGSyncSourceRecord;
|
|
35
|
+
partial?: boolean;
|
|
35
36
|
} | {
|
|
36
37
|
ok: true;
|
|
37
38
|
sources: import("../..").RAGSyncSourceRecord[];
|
|
39
|
+
partial?: boolean;
|
|
40
|
+
failedSourceIds?: string[];
|
|
41
|
+
errorsBySource?: Record<string, string>;
|
|
38
42
|
}>;
|
|
39
43
|
syncSource: (id: string) => Promise<{
|
|
40
44
|
ok: true;
|
|
41
45
|
source: import("../..").RAGSyncSourceRecord;
|
|
46
|
+
partial?: boolean;
|
|
42
47
|
} | {
|
|
43
48
|
ok: true;
|
|
44
49
|
sources: import("../..").RAGSyncSourceRecord[];
|
|
50
|
+
partial?: boolean;
|
|
51
|
+
failedSourceIds?: string[];
|
|
52
|
+
errorsBySource?: Record<string, string>;
|
|
45
53
|
}>;
|
|
46
54
|
syncSources: RAGSyncResponse | null;
|
|
47
55
|
};
|
|
@@ -94,16 +94,24 @@ export declare const createRAG: (path: string, options?: CreateRAGOptions) => {
|
|
|
94
94
|
syncAllSources: () => Promise<{
|
|
95
95
|
ok: true;
|
|
96
96
|
source: import("../..").RAGSyncSourceRecord;
|
|
97
|
+
partial?: boolean;
|
|
97
98
|
} | {
|
|
98
99
|
ok: true;
|
|
99
100
|
sources: import("../..").RAGSyncSourceRecord[];
|
|
101
|
+
partial?: boolean;
|
|
102
|
+
failedSourceIds?: string[];
|
|
103
|
+
errorsBySource?: Record<string, string>;
|
|
100
104
|
}>;
|
|
101
105
|
syncSource: (id: string) => Promise<{
|
|
102
106
|
ok: true;
|
|
103
107
|
source: import("../..").RAGSyncSourceRecord;
|
|
108
|
+
partial?: boolean;
|
|
104
109
|
} | {
|
|
105
110
|
ok: true;
|
|
106
111
|
sources: import("../..").RAGSyncSourceRecord[];
|
|
112
|
+
partial?: boolean;
|
|
113
|
+
failedSourceIds?: string[];
|
|
114
|
+
errorsBySource?: Record<string, string>;
|
|
107
115
|
}>;
|
|
108
116
|
syncSources: import("svelte/store").Writable<import("../..").RAGSyncResponse | null>;
|
|
109
117
|
};
|
|
@@ -32,16 +32,24 @@ export declare const createRAGIndexAdmin: (path: string) => {
|
|
|
32
32
|
syncAllSources: () => Promise<{
|
|
33
33
|
ok: true;
|
|
34
34
|
source: import("../..").RAGSyncSourceRecord;
|
|
35
|
+
partial?: boolean;
|
|
35
36
|
} | {
|
|
36
37
|
ok: true;
|
|
37
38
|
sources: import("../..").RAGSyncSourceRecord[];
|
|
39
|
+
partial?: boolean;
|
|
40
|
+
failedSourceIds?: string[];
|
|
41
|
+
errorsBySource?: Record<string, string>;
|
|
38
42
|
}>;
|
|
39
43
|
syncSource: (id: string) => Promise<{
|
|
40
44
|
ok: true;
|
|
41
45
|
source: import("../..").RAGSyncSourceRecord;
|
|
46
|
+
partial?: boolean;
|
|
42
47
|
} | {
|
|
43
48
|
ok: true;
|
|
44
49
|
sources: import("../..").RAGSyncSourceRecord[];
|
|
50
|
+
partial?: boolean;
|
|
51
|
+
failedSourceIds?: string[];
|
|
52
|
+
errorsBySource?: Record<string, string>;
|
|
45
53
|
}>;
|
|
46
54
|
syncSources: import("svelte/store").Writable<RAGSyncResponse | null>;
|
|
47
55
|
};
|
|
@@ -624,16 +624,24 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
624
624
|
syncAllSources: () => Promise<{
|
|
625
625
|
ok: true;
|
|
626
626
|
source: import("../..").RAGSyncSourceRecord;
|
|
627
|
+
partial?: boolean;
|
|
627
628
|
} | {
|
|
628
629
|
ok: true;
|
|
629
630
|
sources: import("../..").RAGSyncSourceRecord[];
|
|
631
|
+
partial?: boolean;
|
|
632
|
+
failedSourceIds?: string[];
|
|
633
|
+
errorsBySource?: Record<string, string>;
|
|
630
634
|
}>;
|
|
631
635
|
syncSource: (id: string) => Promise<{
|
|
632
636
|
ok: true;
|
|
633
637
|
source: import("../..").RAGSyncSourceRecord;
|
|
638
|
+
partial?: boolean;
|
|
634
639
|
} | {
|
|
635
640
|
ok: true;
|
|
636
641
|
sources: import("../..").RAGSyncSourceRecord[];
|
|
642
|
+
partial?: boolean;
|
|
643
|
+
failedSourceIds?: string[];
|
|
644
|
+
errorsBySource?: Record<string, string>;
|
|
637
645
|
}>;
|
|
638
646
|
syncSources: import("vue").Ref<{
|
|
639
647
|
ok: true;
|
|
@@ -644,13 +652,19 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
644
652
|
status: import("../..").RAGSyncSourceStatus;
|
|
645
653
|
description?: string | undefined;
|
|
646
654
|
target?: string | undefined;
|
|
655
|
+
lastStartedAt?: number | undefined;
|
|
647
656
|
lastSyncedAt?: number | undefined;
|
|
648
657
|
lastSyncDurationMs?: number | undefined;
|
|
649
658
|
lastError?: string | undefined;
|
|
659
|
+
lastSuccessfulSyncAt?: number | undefined;
|
|
660
|
+
consecutiveFailures?: number | undefined;
|
|
661
|
+
retryAttempts?: number | undefined;
|
|
662
|
+
nextRetryAt?: number | undefined;
|
|
650
663
|
documentCount?: number | undefined;
|
|
651
664
|
chunkCount?: number | undefined;
|
|
652
665
|
metadata?: Record<string, unknown> | undefined;
|
|
653
666
|
};
|
|
667
|
+
partial?: boolean | undefined;
|
|
654
668
|
} | {
|
|
655
669
|
ok: true;
|
|
656
670
|
sources: {
|
|
@@ -660,13 +674,21 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
660
674
|
status: import("../..").RAGSyncSourceStatus;
|
|
661
675
|
description?: string | undefined;
|
|
662
676
|
target?: string | undefined;
|
|
677
|
+
lastStartedAt?: number | undefined;
|
|
663
678
|
lastSyncedAt?: number | undefined;
|
|
664
679
|
lastSyncDurationMs?: number | undefined;
|
|
665
680
|
lastError?: string | undefined;
|
|
681
|
+
lastSuccessfulSyncAt?: number | undefined;
|
|
682
|
+
consecutiveFailures?: number | undefined;
|
|
683
|
+
retryAttempts?: number | undefined;
|
|
684
|
+
nextRetryAt?: number | undefined;
|
|
666
685
|
documentCount?: number | undefined;
|
|
667
686
|
chunkCount?: number | undefined;
|
|
668
687
|
metadata?: Record<string, unknown> | undefined;
|
|
669
688
|
}[];
|
|
689
|
+
partial?: boolean | undefined;
|
|
690
|
+
failedSourceIds?: string[] | undefined;
|
|
691
|
+
errorsBySource?: Record<string, string> | undefined;
|
|
670
692
|
} | {
|
|
671
693
|
ok: false;
|
|
672
694
|
error: string;
|
|
@@ -679,13 +701,19 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
679
701
|
status: import("../..").RAGSyncSourceStatus;
|
|
680
702
|
description?: string | undefined;
|
|
681
703
|
target?: string | undefined;
|
|
704
|
+
lastStartedAt?: number | undefined;
|
|
682
705
|
lastSyncedAt?: number | undefined;
|
|
683
706
|
lastSyncDurationMs?: number | undefined;
|
|
684
707
|
lastError?: string | undefined;
|
|
708
|
+
lastSuccessfulSyncAt?: number | undefined;
|
|
709
|
+
consecutiveFailures?: number | undefined;
|
|
710
|
+
retryAttempts?: number | undefined;
|
|
711
|
+
nextRetryAt?: number | undefined;
|
|
685
712
|
documentCount?: number | undefined;
|
|
686
713
|
chunkCount?: number | undefined;
|
|
687
714
|
metadata?: Record<string, unknown> | undefined;
|
|
688
715
|
};
|
|
716
|
+
partial?: boolean | undefined;
|
|
689
717
|
} | {
|
|
690
718
|
ok: true;
|
|
691
719
|
sources: {
|
|
@@ -695,13 +723,21 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
695
723
|
status: import("../..").RAGSyncSourceStatus;
|
|
696
724
|
description?: string | undefined;
|
|
697
725
|
target?: string | undefined;
|
|
726
|
+
lastStartedAt?: number | undefined;
|
|
698
727
|
lastSyncedAt?: number | undefined;
|
|
699
728
|
lastSyncDurationMs?: number | undefined;
|
|
700
729
|
lastError?: string | undefined;
|
|
730
|
+
lastSuccessfulSyncAt?: number | undefined;
|
|
731
|
+
consecutiveFailures?: number | undefined;
|
|
732
|
+
retryAttempts?: number | undefined;
|
|
733
|
+
nextRetryAt?: number | undefined;
|
|
701
734
|
documentCount?: number | undefined;
|
|
702
735
|
chunkCount?: number | undefined;
|
|
703
736
|
metadata?: Record<string, unknown> | undefined;
|
|
704
737
|
}[];
|
|
738
|
+
partial?: boolean | undefined;
|
|
739
|
+
failedSourceIds?: string[] | undefined;
|
|
740
|
+
errorsBySource?: Record<string, string> | undefined;
|
|
705
741
|
} | {
|
|
706
742
|
ok: false;
|
|
707
743
|
error: string;
|
|
@@ -817,9 +853,14 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
817
853
|
status: import("../..").RAGSyncSourceStatus;
|
|
818
854
|
description?: string | undefined;
|
|
819
855
|
target?: string | undefined;
|
|
856
|
+
lastStartedAt?: number | undefined;
|
|
820
857
|
lastSyncedAt?: number | undefined;
|
|
821
858
|
lastSyncDurationMs?: number | undefined;
|
|
822
859
|
lastError?: string | undefined;
|
|
860
|
+
lastSuccessfulSyncAt?: number | undefined;
|
|
861
|
+
consecutiveFailures?: number | undefined;
|
|
862
|
+
retryAttempts?: number | undefined;
|
|
863
|
+
nextRetryAt?: number | undefined;
|
|
823
864
|
documentCount?: number | undefined;
|
|
824
865
|
chunkCount?: number | undefined;
|
|
825
866
|
metadata?: Record<string, unknown> | undefined;
|
|
@@ -830,9 +871,14 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
830
871
|
status: import("../..").RAGSyncSourceStatus;
|
|
831
872
|
description?: string | undefined;
|
|
832
873
|
target?: string | undefined;
|
|
874
|
+
lastStartedAt?: number | undefined;
|
|
833
875
|
lastSyncedAt?: number | undefined;
|
|
834
876
|
lastSyncDurationMs?: number | undefined;
|
|
835
877
|
lastError?: string | undefined;
|
|
878
|
+
lastSuccessfulSyncAt?: number | undefined;
|
|
879
|
+
consecutiveFailures?: number | undefined;
|
|
880
|
+
retryAttempts?: number | undefined;
|
|
881
|
+
nextRetryAt?: number | undefined;
|
|
836
882
|
documentCount?: number | undefined;
|
|
837
883
|
chunkCount?: number | undefined;
|
|
838
884
|
metadata?: Record<string, unknown> | undefined;
|
|
@@ -210,16 +210,24 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
210
210
|
syncAllSources: () => Promise<{
|
|
211
211
|
ok: true;
|
|
212
212
|
source: import("../..").RAGSyncSourceRecord;
|
|
213
|
+
partial?: boolean;
|
|
213
214
|
} | {
|
|
214
215
|
ok: true;
|
|
215
216
|
sources: import("../..").RAGSyncSourceRecord[];
|
|
217
|
+
partial?: boolean;
|
|
218
|
+
failedSourceIds?: string[];
|
|
219
|
+
errorsBySource?: Record<string, string>;
|
|
216
220
|
}>;
|
|
217
221
|
syncSource: (id: string) => Promise<{
|
|
218
222
|
ok: true;
|
|
219
223
|
source: import("../..").RAGSyncSourceRecord;
|
|
224
|
+
partial?: boolean;
|
|
220
225
|
} | {
|
|
221
226
|
ok: true;
|
|
222
227
|
sources: import("../..").RAGSyncSourceRecord[];
|
|
228
|
+
partial?: boolean;
|
|
229
|
+
failedSourceIds?: string[];
|
|
230
|
+
errorsBySource?: Record<string, string>;
|
|
223
231
|
}>;
|
|
224
232
|
syncSources: import("vue").Ref<{
|
|
225
233
|
ok: true;
|
|
@@ -230,13 +238,19 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
230
238
|
status: import("../..").RAGSyncSourceStatus;
|
|
231
239
|
description?: string | undefined;
|
|
232
240
|
target?: string | undefined;
|
|
241
|
+
lastStartedAt?: number | undefined;
|
|
233
242
|
lastSyncedAt?: number | undefined;
|
|
234
243
|
lastSyncDurationMs?: number | undefined;
|
|
235
244
|
lastError?: string | undefined;
|
|
245
|
+
lastSuccessfulSyncAt?: number | undefined;
|
|
246
|
+
consecutiveFailures?: number | undefined;
|
|
247
|
+
retryAttempts?: number | undefined;
|
|
248
|
+
nextRetryAt?: number | undefined;
|
|
236
249
|
documentCount?: number | undefined;
|
|
237
250
|
chunkCount?: number | undefined;
|
|
238
251
|
metadata?: Record<string, unknown> | undefined;
|
|
239
252
|
};
|
|
253
|
+
partial?: boolean | undefined;
|
|
240
254
|
} | {
|
|
241
255
|
ok: true;
|
|
242
256
|
sources: {
|
|
@@ -246,13 +260,21 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
246
260
|
status: import("../..").RAGSyncSourceStatus;
|
|
247
261
|
description?: string | undefined;
|
|
248
262
|
target?: string | undefined;
|
|
263
|
+
lastStartedAt?: number | undefined;
|
|
249
264
|
lastSyncedAt?: number | undefined;
|
|
250
265
|
lastSyncDurationMs?: number | undefined;
|
|
251
266
|
lastError?: string | undefined;
|
|
267
|
+
lastSuccessfulSyncAt?: number | undefined;
|
|
268
|
+
consecutiveFailures?: number | undefined;
|
|
269
|
+
retryAttempts?: number | undefined;
|
|
270
|
+
nextRetryAt?: number | undefined;
|
|
252
271
|
documentCount?: number | undefined;
|
|
253
272
|
chunkCount?: number | undefined;
|
|
254
273
|
metadata?: Record<string, unknown> | undefined;
|
|
255
274
|
}[];
|
|
275
|
+
partial?: boolean | undefined;
|
|
276
|
+
failedSourceIds?: string[] | undefined;
|
|
277
|
+
errorsBySource?: Record<string, string> | undefined;
|
|
256
278
|
} | {
|
|
257
279
|
ok: false;
|
|
258
280
|
error: string;
|
|
@@ -265,13 +287,19 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
265
287
|
status: import("../..").RAGSyncSourceStatus;
|
|
266
288
|
description?: string | undefined;
|
|
267
289
|
target?: string | undefined;
|
|
290
|
+
lastStartedAt?: number | undefined;
|
|
268
291
|
lastSyncedAt?: number | undefined;
|
|
269
292
|
lastSyncDurationMs?: number | undefined;
|
|
270
293
|
lastError?: string | undefined;
|
|
294
|
+
lastSuccessfulSyncAt?: number | undefined;
|
|
295
|
+
consecutiveFailures?: number | undefined;
|
|
296
|
+
retryAttempts?: number | undefined;
|
|
297
|
+
nextRetryAt?: number | undefined;
|
|
271
298
|
documentCount?: number | undefined;
|
|
272
299
|
chunkCount?: number | undefined;
|
|
273
300
|
metadata?: Record<string, unknown> | undefined;
|
|
274
301
|
};
|
|
302
|
+
partial?: boolean | undefined;
|
|
275
303
|
} | {
|
|
276
304
|
ok: true;
|
|
277
305
|
sources: {
|
|
@@ -281,13 +309,21 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
281
309
|
status: import("../..").RAGSyncSourceStatus;
|
|
282
310
|
description?: string | undefined;
|
|
283
311
|
target?: string | undefined;
|
|
312
|
+
lastStartedAt?: number | undefined;
|
|
284
313
|
lastSyncedAt?: number | undefined;
|
|
285
314
|
lastSyncDurationMs?: number | undefined;
|
|
286
315
|
lastError?: string | undefined;
|
|
316
|
+
lastSuccessfulSyncAt?: number | undefined;
|
|
317
|
+
consecutiveFailures?: number | undefined;
|
|
318
|
+
retryAttempts?: number | undefined;
|
|
319
|
+
nextRetryAt?: number | undefined;
|
|
287
320
|
documentCount?: number | undefined;
|
|
288
321
|
chunkCount?: number | undefined;
|
|
289
322
|
metadata?: Record<string, unknown> | undefined;
|
|
290
323
|
}[];
|
|
324
|
+
partial?: boolean | undefined;
|
|
325
|
+
failedSourceIds?: string[] | undefined;
|
|
326
|
+
errorsBySource?: Record<string, string> | undefined;
|
|
291
327
|
} | {
|
|
292
328
|
ok: false;
|
|
293
329
|
error: string;
|
|
@@ -83,9 +83,14 @@ export declare const useRAGOps: (path: string, autoLoad?: boolean) => {
|
|
|
83
83
|
status: import("../..").RAGSyncSourceStatus;
|
|
84
84
|
description?: string | undefined;
|
|
85
85
|
target?: string | undefined;
|
|
86
|
+
lastStartedAt?: number | undefined;
|
|
86
87
|
lastSyncedAt?: number | undefined;
|
|
87
88
|
lastSyncDurationMs?: number | undefined;
|
|
88
89
|
lastError?: string | undefined;
|
|
90
|
+
lastSuccessfulSyncAt?: number | undefined;
|
|
91
|
+
consecutiveFailures?: number | undefined;
|
|
92
|
+
retryAttempts?: number | undefined;
|
|
93
|
+
nextRetryAt?: number | undefined;
|
|
89
94
|
documentCount?: number | undefined;
|
|
90
95
|
chunkCount?: number | undefined;
|
|
91
96
|
metadata?: Record<string, unknown> | undefined;
|
|
@@ -96,9 +101,14 @@ export declare const useRAGOps: (path: string, autoLoad?: boolean) => {
|
|
|
96
101
|
status: import("../..").RAGSyncSourceStatus;
|
|
97
102
|
description?: string | undefined;
|
|
98
103
|
target?: string | undefined;
|
|
104
|
+
lastStartedAt?: number | undefined;
|
|
99
105
|
lastSyncedAt?: number | undefined;
|
|
100
106
|
lastSyncDurationMs?: number | undefined;
|
|
101
107
|
lastError?: string | undefined;
|
|
108
|
+
lastSuccessfulSyncAt?: number | undefined;
|
|
109
|
+
consecutiveFailures?: number | undefined;
|
|
110
|
+
retryAttempts?: number | undefined;
|
|
111
|
+
nextRetryAt?: number | undefined;
|
|
102
112
|
documentCount?: number | undefined;
|
|
103
113
|
chunkCount?: number | undefined;
|
|
104
114
|
metadata?: Record<string, unknown> | undefined;
|
package/dist/svelte/ai/index.js
CHANGED
|
@@ -953,8 +953,10 @@ var createRAGClient = (options) => {
|
|
|
953
953
|
}
|
|
954
954
|
return parseJson(response);
|
|
955
955
|
},
|
|
956
|
-
async syncAllSources() {
|
|
956
|
+
async syncAllSources(options2) {
|
|
957
957
|
const response = await fetchImpl(`${basePath}/sync`, {
|
|
958
|
+
body: options2?.background === true ? JSON.stringify({ background: true }) : undefined,
|
|
959
|
+
headers: options2?.background === true ? jsonHeaders : undefined,
|
|
958
960
|
method: "POST"
|
|
959
961
|
});
|
|
960
962
|
if (!response.ok) {
|
|
@@ -965,8 +967,10 @@ var createRAGClient = (options) => {
|
|
|
965
967
|
}
|
|
966
968
|
return parseJson(response);
|
|
967
969
|
},
|
|
968
|
-
async syncSource(id) {
|
|
970
|
+
async syncSource(id, options2) {
|
|
969
971
|
const response = await fetchImpl(`${basePath}/sync/${encodeURIComponent(id)}`, {
|
|
972
|
+
body: options2?.background === true ? JSON.stringify({ background: true }) : undefined,
|
|
973
|
+
headers: options2?.background === true ? jsonHeaders : undefined,
|
|
970
974
|
method: "POST"
|
|
971
975
|
});
|
|
972
976
|
if (!response.ok) {
|
|
@@ -2505,5 +2509,5 @@ export {
|
|
|
2505
2509
|
createAIStream
|
|
2506
2510
|
};
|
|
2507
2511
|
|
|
2508
|
-
//# debugId=
|
|
2512
|
+
//# debugId=5EFDB7E0593FB6EB64756E2164756E21
|
|
2509
2513
|
//# sourceMappingURL=index.js.map
|