@delali/narsil 0.3.1-next.144 → 0.3.1-next.146
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/adapters/filesystem.d.ts +1 -1
- package/dist/adapters/filesystem.mjs +101 -13
- package/dist/adapters/gcs.d.ts +49 -0
- package/dist/adapters/gcs.mjs +213 -0
- package/dist/adapters/indexeddb.d.ts +1 -1
- package/dist/adapters/indexeddb.mjs +2 -7
- package/dist/adapters/memory.d.ts +1 -1
- package/dist/adapters/memory.mjs +5 -0
- package/dist/adapters/s3.d.ts +53 -0
- package/dist/adapters/s3.mjs +263 -0
- package/dist/{adapters-BQFQ4PRz.d.ts → adapters-pljAqmrC.d.ts} +33 -0
- package/dist/analysis-change-ZCJNYBJM.mjs +39 -0
- package/dist/{browser/analysis-change-entry-7HR4LWL3.mjs → analysis-change-entry-YN3ELL6C.mjs} +1 -1
- package/dist/browser/{analysis-change-JPV775LR.mjs → analysis-change-M65AZQQG.mjs} +8 -5
- package/dist/{analysis-change-entry-TZTG4AZB.mjs → browser/analysis-change-entry-H3YIOLXZ.mjs} +1 -1
- package/dist/browser/{chunk-VFYMPCOV.mjs → chunk-2JABMB4S.mjs} +10 -6
- package/dist/{chunk-46NZOPHS.mjs → browser/chunk-4DYLCICG.mjs} +2 -2
- package/dist/browser/{chunk-MZI3TEOW.mjs → chunk-4RD3AFSB.mjs} +1 -1
- package/dist/browser/{chunk-WCFCHIBB.mjs → chunk-5V74FFZE.mjs} +2 -2
- package/dist/{chunk-NN33CZRE.mjs → browser/chunk-6OWX3OP2.mjs} +2 -2
- package/dist/browser/chunk-BRWY3JCN.mjs +678 -0
- package/dist/browser/{chunk-5DB2VDGI.mjs → chunk-BVX2MEHA.mjs} +306 -607
- package/dist/browser/{chunk-KTOK275N.mjs → chunk-D6UFGBF5.mjs} +15 -45
- package/dist/browser/{chunk-D33A5VMU.mjs → chunk-IAXZAVYL.mjs} +25 -66
- package/dist/browser/chunk-JNOAKDUM.mjs +31 -0
- package/dist/browser/{chunk-LVY2LI35.mjs → chunk-KAEVGLYN.mjs} +2 -2
- package/dist/browser/{chunk-3ZBJYAS4.mjs → chunk-LURXVCHG.mjs} +1 -1
- package/dist/browser/chunk-MPK76GVS.mjs +63 -0
- package/dist/browser/{chunk-ZEV26AQ6.mjs → chunk-NVEJJP4R.mjs} +1 -1
- package/dist/browser/{chunk-HKX2G6WH.mjs → chunk-ODQP7P3H.mjs} +455 -66
- package/dist/browser/{chunk-35B42UFM.mjs → chunk-PIS7ZAP7.mjs} +12 -25
- package/dist/browser/{chunk-TCLEOZ4P.mjs → chunk-QMNZFFD3.mjs} +4 -3
- package/dist/browser/{chunk-R4WUDZQV.mjs → chunk-SRL47USS.mjs} +2 -2
- package/dist/browser/chunk-TY7L6OXO.mjs +69 -0
- package/dist/browser/{chunk-MVM33ZUL.mjs → chunk-W643QV3L.mjs} +6 -5
- package/dist/browser/chunk-WXLBZJMT.mjs +25 -0
- package/dist/browser/{chunk-MWUK3DA5.mjs → chunk-XILIT5MT.mjs} +8 -8
- package/dist/browser/{cold-module-MJMKNUYJ.mjs → cold-module-A5S6JFDN.mjs} +20 -20
- package/dist/browser/{durability-wiring-SNOWIT6Z.mjs → durability-wiring-W5AVV3RF.mjs} +120 -80
- package/dist/browser/gzip-5S7ROJFJ.mjs +1 -0
- package/dist/browser/import-PTT63AGK.mjs +12 -0
- package/dist/browser/{module-BUFNZMEU.mjs → module-CEKA7MQH.mjs} +13 -10
- package/dist/browser/module-X5PGOE47.mjs +4288 -0
- package/dist/browser/{phrase-module-HGVBO24W.mjs → phrase-module-CNKMUY4U.mjs} +2 -1
- package/dist/browser/pool-DTYSPBMQ.mjs +296 -0
- package/dist/{restore-queue-FEYAC4SB.mjs → browser/restore-queue-DD4LWZK7.mjs} +2 -2
- package/dist/browser/{runtime-VEUH674B.mjs → runtime-D2ULZGCN.mjs} +3 -2
- package/dist/browser/{snapshot-QXBKHJAG.mjs → snapshot-DQ6A4PQP.mjs} +20 -15
- package/dist/browser/{write-WHFBDWQS.mjs → write-MAGRAIEH.mjs} +14 -11
- package/dist/{capabilities-BCdUwK_L.d.ts → capabilities-BT-HLDC8.d.ts} +3 -3
- package/dist/{chunk-O4LJQI4G.mjs → chunk-2HJWQPR6.mjs} +126 -4
- package/dist/{chunk-Z4HFMYNX.mjs → chunk-3BVGJ4JR.mjs} +36 -13
- package/dist/{chunk-ZPWS2SKJ.mjs → chunk-3HV7M5OJ.mjs} +272 -112
- package/dist/{chunk-UIKN2OTQ.mjs → chunk-3MXV3VHR.mjs} +2 -23
- package/dist/{browser/chunk-CCOAOO73.mjs → chunk-3SBJVQLL.mjs} +2 -2
- package/dist/chunk-3TVDTACC.mjs +104 -0
- package/dist/{chunk-YH5OIL7B.mjs → chunk-5QMHMELB.mjs} +6 -1
- package/dist/{chunk-SBMAWTRG.mjs → chunk-5WB2A3XU.mjs} +84 -15
- package/dist/{chunk-NPNK57CA.mjs → chunk-65WCV5JO.mjs} +1 -1
- package/dist/chunk-6BWLDLS3.mjs +58 -0
- package/dist/{chunk-UUZCQQG2.mjs → chunk-6C5EX2QR.mjs} +3 -3
- package/dist/{chunk-VEFN6X6Q.mjs → chunk-6F6USYII.mjs} +120 -13
- package/dist/{chunk-AST3SHFA.mjs → chunk-7HKWO4BJ.mjs} +7 -7
- package/dist/{chunk-W2COJ5AH.mjs → chunk-7N223GWV.mjs} +2 -2
- package/dist/{chunk-GWOS5DYC.mjs → chunk-ADBS5XRI.mjs} +11 -13
- package/dist/{chunk-TNBIK2LQ.mjs → chunk-AWNHDBKV.mjs} +430 -75
- package/dist/{chunk-ZMBFWQXN.mjs → chunk-B2FTZNNF.mjs} +2 -2
- package/dist/chunk-B7XIOAMK.mjs +100 -0
- package/dist/{chunk-W55X2BYN.mjs → chunk-BEZH7VEH.mjs} +1 -1
- package/dist/{chunk-QSK35UC2.mjs → chunk-BTPGQC6Z.mjs} +3 -11
- package/dist/{chunk-LA4WNDHL.mjs → chunk-CYYSZPVV.mjs} +12 -14
- package/dist/{chunk-SRJBFG2T.mjs → chunk-DOY6EG76.mjs} +6 -7
- package/dist/{chunk-6SNBQESJ.mjs → chunk-F22IOCR2.mjs} +10 -6
- package/dist/{chunk-J6YVB2XM.mjs → chunk-IJPK5PGM.mjs} +1 -1
- package/dist/{chunk-L76W3IZJ.mjs → chunk-IRWP524D.mjs} +1 -1
- package/dist/{chunk-XS2VM7UE.mjs → chunk-IZT3G24Q.mjs} +2 -2
- package/dist/{chunk-NOT5QOHU.mjs → chunk-J7M73VY7.mjs} +1 -1
- package/dist/chunk-K5HSUPYS.mjs +11 -0
- package/dist/chunk-KAKQ74LS.mjs +53 -0
- package/dist/{chunk-ZSWHPKGM.mjs → chunk-KYVRZAYP.mjs} +69 -2
- package/dist/{chunk-NRUXBYPH.mjs → chunk-KZ5GQE4Z.mjs} +5 -5
- package/dist/{browser/chunk-XNWPP5NS.mjs → chunk-KZQIVGW7.mjs} +2 -2
- package/dist/{chunk-KZL72VTC.mjs → chunk-L7TIAYPX.mjs} +11 -10
- package/dist/{chunk-DD2673TX.mjs → chunk-LDGGR7YT.mjs} +4 -81
- package/dist/{chunk-XZ3SRNDJ.mjs → chunk-LJ4ENXOD.mjs} +77 -16
- package/dist/chunk-LQG5G2LY.mjs +39 -0
- package/dist/{chunk-HNHCNTVG.mjs → chunk-MDF6PDIA.mjs} +11 -0
- package/dist/{chunk-74XB2SXI.mjs → chunk-NVTFQFUL.mjs} +16 -2
- package/dist/{chunk-BOJZGUS6.mjs → chunk-NYSONUB7.mjs} +1 -1
- package/dist/{chunk-WJGO5PGV.mjs → chunk-O4KUNDVF.mjs} +31 -17
- package/dist/{chunk-PWIWSUCX.mjs → chunk-POUYICOU.mjs} +1 -1
- package/dist/{chunk-EBIHRL7B.mjs → chunk-Q2UL2TPC.mjs} +1 -1
- package/dist/{chunk-NJJCPFXN.mjs → chunk-QEYF2SQ6.mjs} +2 -2
- package/dist/{chunk-7AUASRE7.mjs → chunk-QN5WVV5K.mjs} +7 -7
- package/dist/{chunk-RIIUZJQ3.mjs → chunk-QYRNLLLI.mjs} +1 -1
- package/dist/chunk-SOUZMPME.mjs +1635 -0
- package/dist/{chunk-C3YDYX6C.mjs → chunk-T4CJDBBE.mjs} +1 -1
- package/dist/{chunk-YLNSJQLX.mjs → chunk-TTCKT2RT.mjs} +5 -5
- package/dist/{chunk-KEIYVZUX.mjs → chunk-U2726TL5.mjs} +5 -5
- package/dist/{chunk-RKAVHNRW.mjs → chunk-U46IZNCW.mjs} +10 -5
- package/dist/{chunk-BRUUBXCB.mjs → chunk-U6NE6RCV.mjs} +10 -38
- package/dist/{chunk-VJEGOELZ.mjs → chunk-VP6XRMWR.mjs} +4 -4
- package/dist/{chunk-IO5F7ZBE.mjs → chunk-VQDZVWN3.mjs} +874 -413
- package/dist/{chunk-IWVEG5CX.mjs → chunk-XIHUI4KB.mjs} +2 -2
- package/dist/{chunk-YHUTF6EA.mjs → chunk-XKPNKR3V.mjs} +17 -47
- package/dist/{chunk-HJJWY6PT.mjs → chunk-YGQOPB2Z.mjs} +1 -1
- package/dist/chunk-YKEHQUSZ.mjs +248 -0
- package/dist/{chunk-GLZHNSGB.mjs → chunk-ZAYWOHVG.mjs} +1 -1
- package/dist/{chunk-ICW45TTU.mjs → chunk-ZEKDO7YX.mjs} +2 -2
- package/dist/chunk-ZXNNR73R.mjs +31 -0
- package/dist/{chunk-VJS4JFBQ.mjs → chunk-ZXX5GZEX.mjs} +3 -1
- package/dist/{chunk-RHKRTYGO.mjs → chunk-ZYKUD5NX.mjs} +9 -7
- package/dist/{client-B12YFALP.d.ts → client-Cn3gNxUU.d.ts} +62 -5
- package/dist/client.d.ts +8 -8
- package/dist/client.mjs +46 -0
- package/dist/{cold-module-4X7WJCFM.mjs → cold-module-2WWGBFJC.mjs} +43 -49
- package/dist/{config-CIG5yDyg.d.ts → config-CfhH1IWQ.d.ts} +150 -3
- package/dist/{config-BhZxIeb1.d.ts → config-aIsy7mcL.d.ts} +63 -3
- package/dist/direct-executor-QLVHMELJ.mjs +24 -0
- package/dist/distribution/coordinator/etcd.d.ts +3 -3
- package/dist/distribution/coordinator/etcd.mjs +1 -1
- package/dist/distribution/coordinator/in-memory.d.ts +3 -3
- package/dist/distribution/transport/grpc.mjs +4 -4
- package/dist/distribution/transport/in-memory.mjs +2 -2
- package/dist/distribution/transport/tcp.mjs +3 -3
- package/dist/distribution.d.ts +8 -8
- package/dist/distribution.mjs +16116 -14537
- package/dist/{durability-wiring-324D2DDD.mjs → durability-wiring-GNWQSZI3.mjs} +142 -109
- package/dist/embeddings/openai.d.ts +1 -1
- package/dist/embeddings/openai.mjs +2 -2
- package/dist/{engine-CtzbHOmG.d.ts → engine-CJRUHXgf.d.ts} +3 -3
- package/dist/gzip-F4HMIEEQ.mjs +1 -0
- package/dist/import-DX55PN4G.mjs +41 -0
- package/dist/{index-DsEurhSl.d.ts → index-MsF7e5hL.d.ts} +2 -2
- package/dist/index.browser.mjs +7 -4
- package/dist/index.d.ts +542 -8
- package/dist/index.mjs +29 -32
- package/dist/index.react-native.mjs +19 -0
- package/dist/invalidation/broadcast-channel.d.ts +1 -1
- package/dist/invalidation/filesystem.d.ts +1 -1
- package/dist/invalidation/filesystem.mjs +1 -1
- package/dist/invalidation/noop.d.ts +1 -1
- package/dist/{long-query-thread-4SW7RWDE.mjs → long-query-thread-SCUE62TO.mjs} +23 -25
- package/dist/{module-DXSJ5LT2.mjs → module-HW6IXUM6.mjs} +603 -112
- package/dist/module-V5K4ZP23.mjs +45 -0
- package/dist/{paged-partition-archive-HFP45PLU.mjs → paged-partition-archive-FDIIWZNR.mjs} +42 -41
- package/dist/partial-words.mjs +7 -9
- package/dist/pattern.mjs +4 -6
- package/dist/persistence/durability/checkpoint-worker.d.ts +2 -2
- package/dist/persistence/durability/checkpoint-worker.mjs +36 -39
- package/dist/{phrase-module-5QHBD2VJ.mjs → phrase-module-OUQIRUQU.mjs} +1 -1
- package/dist/pool-UPV5PVPY.mjs +298 -0
- package/dist/react-native/chunks/analysis-change-HGW3L6NY.mjs +893 -0
- package/dist/react-native/chunks/analysis-change-entry-BNRU6STO.mjs +1 -0
- package/dist/react-native/chunks/chunk-2J2727V4.mjs +495 -0
- package/dist/react-native/chunks/chunk-3CTWSQRW.mjs +1251 -0
- package/dist/react-native/chunks/chunk-5FV4ZEVA.mjs +2619 -0
- package/dist/react-native/chunks/chunk-7VWQLEFV.mjs +642 -0
- package/dist/react-native/chunks/chunk-AAAETEJK.mjs +27 -0
- package/dist/react-native/chunks/chunk-AM7RSBPF.mjs +32 -0
- package/dist/react-native/chunks/chunk-B6OD63Z3.mjs +997 -0
- package/dist/react-native/chunks/chunk-BRNAVOKP.mjs +177 -0
- package/dist/react-native/chunks/chunk-DKJTZ625.mjs +207 -0
- package/dist/react-native/chunks/chunk-FKGG4UOF.mjs +177 -0
- package/dist/{browser/chunk-6RHTAVZX.mjs → react-native/chunks/chunk-GV5KFQ6M.mjs} +38 -15
- package/dist/react-native/chunks/chunk-HURV3ASY.mjs +4416 -0
- package/dist/react-native/chunks/chunk-IO2SMUQD.mjs +10 -0
- package/dist/react-native/chunks/chunk-JV6VQY2S.mjs +17 -0
- package/dist/react-native/chunks/chunk-KUJOBRKS.mjs +217 -0
- package/dist/react-native/chunks/chunk-KWRW5U65.mjs +226 -0
- package/dist/react-native/chunks/chunk-L4M7QJNP.mjs +110 -0
- package/dist/react-native/chunks/chunk-LQ6Q4L5B.mjs +360 -0
- package/dist/react-native/chunks/chunk-LQAKO5QV.mjs +523 -0
- package/dist/react-native/chunks/chunk-LRGWK367.mjs +11 -0
- package/dist/react-native/chunks/chunk-LVIKKAA6.mjs +93 -0
- package/dist/react-native/chunks/chunk-NFGBOI46.mjs +14 -0
- package/dist/react-native/chunks/chunk-NNE4VDMM.mjs +8 -0
- package/dist/react-native/chunks/chunk-PPEPTUVV.mjs +56 -0
- package/dist/react-native/chunks/chunk-PSWKQVVT.mjs +9 -0
- package/dist/{chunk-KGOXHLLZ.mjs → react-native/chunks/chunk-PU55IOG4.mjs} +228 -11
- package/dist/react-native/chunks/chunk-QC4ZRBSX.mjs +270 -0
- package/dist/react-native/chunks/chunk-R4EEMYM6.mjs +21 -0
- package/dist/react-native/chunks/chunk-R4OPUZQ5.mjs +86 -0
- package/dist/react-native/chunks/chunk-SLGIAD6B.mjs +2634 -0
- package/dist/react-native/chunks/chunk-TJMSKBEM.mjs +25 -0
- package/dist/react-native/chunks/chunk-TLYD7IJ2.mjs +23 -0
- package/dist/react-native/chunks/chunk-UFNCLEQM.mjs +73 -0
- package/dist/react-native/chunks/chunk-YH7W556M.mjs +179 -0
- package/dist/react-native/chunks/chunk-YJSMEKRE.mjs +22385 -0
- package/dist/react-native/chunks/chunk-ZCKNBPQ4.mjs +79 -0
- package/dist/react-native/chunks/cold-module-TSFWLYWC.mjs +755 -0
- package/dist/react-native/chunks/durability-wiring-PZR6KOQK.mjs +4509 -0
- package/dist/react-native/chunks/gzip.react-native-7JWCLVOB.mjs +3 -0
- package/dist/react-native/chunks/import-VTODLPLO.mjs +22 -0
- package/dist/{browser/module-BVP4TKZU.mjs → react-native/chunks/module-JBBH6PZH.mjs} +671 -146
- package/dist/react-native/chunks/module-VEK2KCKU.mjs +25 -0
- package/dist/react-native/chunks/phrase-module-76UAPPSG.mjs +329 -0
- package/dist/react-native/chunks/pool-CD4ANYUI.mjs +296 -0
- package/dist/react-native/chunks/release-D7ZTIANM.mjs +33 -0
- package/dist/react-native/chunks/replace-IMZUVUOE.mjs +57 -0
- package/dist/{browser/restore-queue-ONYNYUDE.mjs → react-native/chunks/restore-queue-OI5EH7R3.mjs} +2 -2
- package/dist/react-native/chunks/runtime-3MCDLJAF.mjs +559 -0
- package/dist/react-native/chunks/snapshot-AUZMEV36.mjs +1205 -0
- package/dist/react-native/chunks/write-DDC2QBRJ.mjs +197 -0
- package/dist/{chunk-DQNKVOJ2.mjs → react-native/partial-words.mjs} +13 -228
- package/dist/react-native/pattern.mjs +2442 -0
- package/dist/react-native/synonyms.mjs +460 -0
- package/dist/react.d.ts +11 -11
- package/dist/react.mjs +11 -0
- package/dist/{rerank-KTLC3E6N.mjs → rerank-3W54N6P2.mjs} +4 -4
- package/dist/rerankers/http.d.ts +1 -1
- package/dist/rerankers/http.mjs +2 -2
- package/dist/restore-queue-BQWWNNQI.mjs +41 -0
- package/dist/{runtime-DYV75DCB.mjs → runtime-L2DZYY6N.mjs} +5 -5
- package/dist/{schema-B-Runv0n.d.ts → schema-D33CyXCy.d.ts} +1 -1
- package/dist/server.d.ts +24 -12
- package/dist/server.mjs +159 -38
- package/dist/{snapshot-CGM65VCD.mjs → snapshot-EHXTOTW5.mjs} +47 -50
- package/dist/synonyms.mjs +3 -4
- package/dist/{tasks-CjRJRGTb.d.ts → tasks-C4ElXr4P.d.ts} +59 -7
- package/dist/thread-I7DVHHW7.mjs +31 -0
- package/dist/vector/search-worker.d.ts +2 -2
- package/dist/vector/search-worker.mjs +8 -7
- package/dist/workers/entry.mjs +9 -9
- package/dist/{write-2DZPEQL2.mjs → write-SDJXXQ2G.mjs} +36 -39
- package/openapi.json +349 -2
- package/package.json +108 -8
- package/dist/analysis-change-HQUT2Z3I.mjs +0 -43
- package/dist/browser/import-TLB2A5LJ.mjs +0 -9
- package/dist/chunk-5WYVUPGD.mjs +0 -427
- package/dist/chunk-AV4IJKD2.mjs +0 -35
- package/dist/chunk-GES7U2PM.mjs +0 -68
- package/dist/chunk-N37VMC62.mjs +0 -18
- package/dist/chunk-WNBRW4Q2.mjs +0 -128
- package/dist/chunk-WQBCBKY3.mjs +0 -8
- package/dist/chunk-ZATRDAYU.mjs +0 -160
- package/dist/direct-executor-7XOQ7VQP.mjs +0 -28
- package/dist/import-OOBUW3RR.mjs +0 -44
- package/dist/module-IYPLWHGC.mjs +0 -48
- package/dist/thread-KGNAIKPD.mjs +0 -33
- /package/dist/{chunk-22YPZVMG.mjs → chunk-ZXNQEW43.mjs} +0 -0
package/dist/server.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { G as GroupResult, Q as QueryParams, n as GroupConfig, m as QueryResult, L as ListParams, g as SuggestParams, k as IndexStats, f as ListResult, j as PreflightResult, h as SuggestResult } from './config-
|
|
2
|
-
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, N as NarsilError, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './config-
|
|
3
|
-
import { E as ErrorEnvelope, c as ServerOptions, N as NarsilServer } from './capabilities-
|
|
4
|
-
export { A as ASYNC_IMPORT_CAPABILITY, B as BM25_TUNING_CAPABILITY, C as CHANGE_ANALYSIS_CAPABILITY, d as CorsOptions, D as DOCUMENT_EXPORT_CAPABILITY, I as INDEX_LIFECYCLE_CAPABILITY, O as OnRequestHook, R as REBUILD_ANALYSIS_CAPABILITY, e as RequestContext, f as RequestDenial, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, g as ServerLimits, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-
|
|
5
|
-
import { N as Narsil } from './engine-
|
|
6
|
-
import {
|
|
7
|
-
export {
|
|
8
|
-
import {
|
|
9
|
-
import { S as SchemaDefinition, P as PartitionConfig, V as VectorIndexConfig, B as BM25Params, F as FieldType } from './schema-
|
|
10
|
-
import './adapters-
|
|
1
|
+
import { G as GroupResult, Q as QueryParams, n as GroupConfig, m as QueryResult, L as ListParams, g as SuggestParams, k as IndexStats, f as ListResult, j as PreflightResult, h as SuggestResult } from './config-aIsy7mcL.js';
|
|
2
|
+
export { C as ClientErrorCode, a as ClientErrorCodes, E as ErrorCode, b as ErrorCodes, N as NarsilError, c as NarsilErrorCode, S as ServerErrorCode, d as ServerErrorCodes, i as isNarsilError } from './config-aIsy7mcL.js';
|
|
3
|
+
import { E as ErrorEnvelope, c as ServerOptions, N as NarsilServer } from './capabilities-BT-HLDC8.js';
|
|
4
|
+
export { A as ASYNC_IMPORT_CAPABILITY, B as BM25_TUNING_CAPABILITY, C as CHANGE_ANALYSIS_CAPABILITY, d as CorsOptions, D as DOCUMENT_EXPORT_CAPABILITY, I as INDEX_LIFECYCLE_CAPABILITY, O as OnRequestHook, R as REBUILD_ANALYSIS_CAPABILITY, e as RequestContext, f as RequestDenial, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, g as ServerLimits, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-BT-HLDC8.js';
|
|
5
|
+
import { N as Narsil } from './engine-CJRUHXgf.js';
|
|
6
|
+
import { k as CreateIndexRequest, H as HttpIndexConfig, l as BatchBody, a as ChangeAnalysisBody, m as CreateBackupBody, D as DocumentBody, n as InsertBody, o as MultiGetBody, p as RebalanceBody, q as ReplicationFactorBody, R as RestoreBackupBody, d as TaskListQuery, V as VectorFieldBody, S as SynonymSetBody, B as BackupListResponse, r as BatchResponse, C as CapabilitiesResponse, s as ClusterAllocationResponse, t as ClusterTopologyResponse, u as DocumentCountResponse, v as DocumentExistsResponse, w as DocumentIdResponse, x as DocumentPutResponse, y as DocumentRemovedResponse, z as DocumentResponse, c as ImportResult, A as IndexClearedResponse, F as IndexCreatedResponse, G as IndexDroppedResponse, J as IndexListResponse, K as IndexPartitionsResponse, L as IndexStateResponse, N as LivenessResponse, M as MemoryStatsResponse, O as MultiGetResponse, P as OkResponse, Q as ReadinessResponse, U as ReplicationFactorResponse, T as TaskListPage, f as TaskRecord, W as VectorMaintenanceResponse, X as VersionResponse, e as TaskProgress, h as TaskStepProgress, j as TaskStore } from './tasks-C4ElXr4P.js';
|
|
7
|
+
export { Y as BatchFailure, Z as ClusterMemberReport, _ as ClusterNodeReport, b as CreateIndexEmbedding, E as ErrorDetail, I as ImportError, $ as PartitionAllocationReport, g as TaskStatus, i as TaskType } from './tasks-C4ElXr4P.js';
|
|
8
|
+
import { i as ClusterHealth } from './config-CfhH1IWQ.js';
|
|
9
|
+
import { S as SchemaDefinition, P as PartitionConfig, V as VectorIndexConfig, B as BM25Params, F as FieldType } from './schema-D33CyXCy.js';
|
|
10
|
+
import './adapters-pljAqmrC.js';
|
|
11
11
|
import './synonyms-CpOAHPa-.js';
|
|
12
|
-
import './index-
|
|
12
|
+
import './index-MsF7e5hL.js';
|
|
13
13
|
import './types-DvncmvuQ.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -93,6 +93,8 @@ interface HttpWireTypes {
|
|
|
93
93
|
BM25Params: BM25Params;
|
|
94
94
|
/** The body of `POST /indexes/{name}/_change-analysis`. */
|
|
95
95
|
ChangeAnalysisBody: ChangeAnalysisBody;
|
|
96
|
+
/** The body of `POST /indexes/{name}/backups`. */
|
|
97
|
+
CreateBackupBody: CreateBackupBody;
|
|
96
98
|
/** The body of `POST /indexes`. */
|
|
97
99
|
HttpCreateIndexBody: HttpCreateIndexBody;
|
|
98
100
|
/** The body of a request that writes one document with a known id. */
|
|
@@ -117,6 +119,8 @@ interface HttpWireTypes {
|
|
|
117
119
|
RemoveDocumentQuery: RemoveDocumentQuery;
|
|
118
120
|
/** The body of `PUT /indexes/{name}/replication-factor`. */
|
|
119
121
|
ReplicationFactorBody: ReplicationFactorBody;
|
|
122
|
+
/** The body of `POST /backups/{backup}/_restore`. */
|
|
123
|
+
RestoreBackupBody: RestoreBackupBody;
|
|
120
124
|
/** The body of `POST /indexes/{name}/suggest`. */
|
|
121
125
|
SuggestParams: SuggestParams;
|
|
122
126
|
/** The query string of `GET /tasks`. */
|
|
@@ -125,6 +129,8 @@ interface HttpWireTypes {
|
|
|
125
129
|
VectorFieldBody: VectorFieldBody;
|
|
126
130
|
/** The body of `GET` and of `POST /indexes/{name}/synonyms`. */
|
|
127
131
|
SynonymSetBody: SynonymSetBody;
|
|
132
|
+
/** The body of `GET /backups`. */
|
|
133
|
+
BackupListResponse: BackupListResponse;
|
|
128
134
|
/** The body of `POST /indexes/{name}/documents/_batch`. */
|
|
129
135
|
BatchResponse: BatchResponse;
|
|
130
136
|
/** The body of `GET /capabilities`. */
|
|
@@ -216,6 +222,12 @@ interface TaskContext {
|
|
|
216
222
|
* @param progress - The counters as they stand now.
|
|
217
223
|
*/
|
|
218
224
|
reportProgress(progress: TaskProgress): void;
|
|
225
|
+
/**
|
|
226
|
+
* Records how many of its steps the work has finished, which `GET /tasks/{id}` then reports.
|
|
227
|
+
*
|
|
228
|
+
* @param steps - The steps finished and the steps in total.
|
|
229
|
+
*/
|
|
230
|
+
reportSteps(steps: TaskStepProgress): void;
|
|
219
231
|
/**
|
|
220
232
|
* Records what the work produced, which the finished task then carries.
|
|
221
233
|
*
|
|
@@ -314,4 +326,4 @@ declare class InMemoryTaskStore implements TaskStore {
|
|
|
314
326
|
private prune;
|
|
315
327
|
}
|
|
316
328
|
|
|
317
|
-
export { BatchBody, BatchResponse, CapabilitiesResponse, ClusterAllocationResponse, ClusterTopologyResponse, CreateIndexRequest, DocumentBody, DocumentCountResponse, DocumentExistsResponse, DocumentIdResponse, DocumentPutResponse, DocumentRemovedResponse, DocumentResponse, ErrorEnvelope, type HttpCreateIndexBody, type HttpGroupResult, type HttpIndexBody, HttpIndexConfig, type HttpQueryParams, type HttpQueryResult, type HttpWireTypeName, type HttpWireTypes, type ImportDocumentsQuery, ImportResult, InMemoryTaskStore, IndexClearedResponse, IndexCreatedResponse, IndexDroppedResponse, IndexListResponse, IndexPartitionsResponse, IndexStateResponse, InsertBody, LivenessResponse, MemoryStatsResponse, MultiGetBody, MultiGetResponse, NarsilServer, OkResponse, ReadinessResponse, RebalanceBody, type RemoveDocumentQuery, ReplicationFactorBody, ReplicationFactorResponse, ServerOptions, SynonymSetBody, type TaskContext, TaskListPage, TaskListQuery, type TaskOperation, TaskProgress, TaskRecord, TaskStore, VectorFieldBody, VectorMaintenanceResponse, VersionResponse, createServer, httpStatusForNarsilError };
|
|
329
|
+
export { BackupListResponse, BatchBody, BatchResponse, CapabilitiesResponse, ClusterAllocationResponse, ClusterTopologyResponse, CreateBackupBody, CreateIndexRequest, DocumentBody, DocumentCountResponse, DocumentExistsResponse, DocumentIdResponse, DocumentPutResponse, DocumentRemovedResponse, DocumentResponse, ErrorEnvelope, type HttpCreateIndexBody, type HttpGroupResult, type HttpIndexBody, HttpIndexConfig, type HttpQueryParams, type HttpQueryResult, type HttpWireTypeName, type HttpWireTypes, type ImportDocumentsQuery, ImportResult, InMemoryTaskStore, IndexClearedResponse, IndexCreatedResponse, IndexDroppedResponse, IndexListResponse, IndexPartitionsResponse, IndexStateResponse, InsertBody, LivenessResponse, MemoryStatsResponse, MultiGetBody, MultiGetResponse, NarsilServer, OkResponse, ReadinessResponse, RebalanceBody, type RemoveDocumentQuery, ReplicationFactorBody, ReplicationFactorResponse, RestoreBackupBody, ServerOptions, SynonymSetBody, type TaskContext, TaskListPage, TaskListQuery, type TaskOperation, TaskProgress, TaskRecord, TaskStepProgress, TaskStore, VectorFieldBody, VectorMaintenanceResponse, VersionResponse, createServer, httpStatusForNarsilError };
|
package/dist/server.mjs
CHANGED
|
@@ -1,37 +1,52 @@
|
|
|
1
|
-
import { answerRequest } from './chunk-
|
|
2
|
-
import { DEFAULT_MAX_RETAINED_TASKS, loadUWebSockets, resolveCors, authorizerFor, createSharedGateBuffer, gateSlotOfWorker, createBodyBudgetBuffer, createRouteRunner, corsHeaderReader, createSharedBodyBudget, MAIN_THREAD_GATE_SLOT, createSharedRequestGate, registerServerRoutes, DEFAULT_MAX_CONCURRENT_TASKS, DEFAULT_MAX_TASK_PAGE_SIZE, DEFAULT_MAX_IMPORT_ERRORS, DEFAULT_MAX_FETCH_DOCUMENTS, DEFAULT_MAX_RESULT_WINDOW, DEFAULT_MAX_CONCURRENT_REQUESTS, DEFAULT_IMPORT_BATCH_SIZE, DEFAULT_MAX_LINE_BYTES, DEFAULT_MAX_RESTORE_BYTES, DEFAULT_MAX_IMPORT_BYTES, DEFAULT_MAX_BODY_BYTES, DEFAULT_MAX_RERANK_WINDOW, DEFAULT_MAX_BODY_BYTES_IN_FLIGHT_FRACTION, RUNNING_TASK_TTL_MS, DEFAULT_TASK_PAGE_SIZE, TERMINAL_TASK_TTL_MS, TASK_PROGRESS_WRITE_INTERVAL_MS, serializeNarsilError, createVersionHandler, acceptorOf, MAX_BODY_BYTES_IN_FLIGHT_FRACTION, createDocumentReadHandlers, sendError, respondError, respondJson, sendText, PROMETHEUS_TEXT_CONTENT_TYPE, MAX_INDEX_TOUCH_INTERVAL_MS, INDEX_TOUCH_INTERVALS_PER_IDLE_TIMEOUT, closeEveryThreadAtExit, REQUEST_THREAD_CLOSE_AT_EXIT_MS, clearGateSlot, clearBodyBudgetSlot, createCloseAtExitWords, createDepartureWord, departureConfirmed, parseJson, validateCreateIndex, rejectInvalid, isRemoveOnlyBatch, validateBatch, serializeBatchResult, parseWriteJson, validateDocumentBody, validateSuggest, validateQuery, refuseRegex, withServerRerankWindow, respondAnswer, parseTaskListQuery, parseJsonOptional, validateChangeAnalysis, validateRebalance, badRequest, sendStream, SNAPSHOT_ARCHIVE_CONTENT_TYPE, DOCUMENT_EXPORT_CONTENT_TYPE, parseRefusalOf, IMPORT_FLUSHES_IN_FLIGHT, confirmDeparture, SERVER_CAPABILITIES, toHttpError, MIN_UNBOUNDED_SERVER_LIMIT, MIN_COUNTED_SERVER_LIMIT } from './chunk-
|
|
3
|
-
export { ASYNC_IMPORT_CAPABILITY, BM25_TUNING_CAPABILITY, CHANGE_ANALYSIS_CAPABILITY, DOCUMENT_EXPORT_CAPABILITY, INDEX_LIFECYCLE_CAPABILITY, REBUILD_ANALYSIS_CAPABILITY, SERVER_CAPABILITIES, SYNONYMS_CAPABILITY, TASK_CANCEL_CAPABILITY, TASK_FILTER_CAPABILITY, httpStatusForNarsilError } from './chunk-
|
|
4
|
-
import { rerankOnHost } from './chunk-
|
|
5
|
-
import { writeBlockLookupOf, indexReadsOf,
|
|
6
|
-
import
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
1
|
+
import { answerRequest } from './chunk-B2FTZNNF.mjs';
|
|
2
|
+
import { DEFAULT_MAX_RETAINED_TASKS, loadUWebSockets, resolveCors, authorizerFor, createSharedGateBuffer, gateSlotOfWorker, createBodyBudgetBuffer, createRouteRunner, corsHeaderReader, createSharedBodyBudget, MAIN_THREAD_GATE_SLOT, createSharedRequestGate, registerServerRoutes, DEFAULT_MAX_CONCURRENT_TASKS, DEFAULT_MAX_TASK_PAGE_SIZE, DEFAULT_MAX_IMPORT_ERRORS, DEFAULT_MAX_FETCH_DOCUMENTS, DEFAULT_MAX_RESULT_WINDOW, DEFAULT_MAX_CONCURRENT_REQUESTS, DEFAULT_IMPORT_BATCH_SIZE, DEFAULT_MAX_LINE_BYTES, DEFAULT_MAX_RESTORE_BYTES, DEFAULT_MAX_IMPORT_BYTES, DEFAULT_MAX_BODY_BYTES, DEFAULT_MAX_RERANK_WINDOW, DEFAULT_MAX_BODY_BYTES_IN_FLIGHT_FRACTION, RUNNING_TASK_TTL_MS, DEFAULT_TASK_PAGE_SIZE, TERMINAL_TASK_TTL_MS, TASK_PROGRESS_WRITE_INTERVAL_MS, serializeNarsilError, createVersionHandler, acceptorOf, MAX_BODY_BYTES_IN_FLIGHT_FRACTION, createDocumentReadHandlers, sendError, respondError, respondJson, sendText, PROMETHEUS_TEXT_CONTENT_TYPE, MAX_INDEX_TOUCH_INTERVAL_MS, INDEX_TOUCH_INTERVALS_PER_IDLE_TIMEOUT, closeEveryThreadAtExit, REQUEST_THREAD_CLOSE_AT_EXIT_MS, clearGateSlot, clearBodyBudgetSlot, createCloseAtExitWords, createDepartureWord, departureConfirmed, parseJson, validateCreateIndex, rejectInvalid, isRemoveOnlyBatch, validateBatch, serializeBatchResult, parseWriteJson, validateDocumentBody, validateSuggest, validateQuery, refuseRegex, withServerRerankWindow, respondAnswer, parseTaskListQuery, parseJsonOptional, validateChangeAnalysis, validateRebalance, badRequest, sendStream, SNAPSHOT_ARCHIVE_CONTENT_TYPE, DOCUMENT_EXPORT_CONTENT_TYPE, parseRefusalOf, IMPORT_FLUSHES_IN_FLIGHT, confirmDeparture, SERVER_CAPABILITIES, toHttpError, MIN_UNBOUNDED_SERVER_LIMIT, MIN_COUNTED_SERVER_LIMIT } from './chunk-5WB2A3XU.mjs';
|
|
3
|
+
export { ASYNC_IMPORT_CAPABILITY, BM25_TUNING_CAPABILITY, CHANGE_ANALYSIS_CAPABILITY, DOCUMENT_EXPORT_CAPABILITY, INDEX_LIFECYCLE_CAPABILITY, REBUILD_ANALYSIS_CAPABILITY, SERVER_CAPABILITIES, SYNONYMS_CAPABILITY, TASK_CANCEL_CAPABILITY, TASK_FILTER_CAPABILITY, httpStatusForNarsilError } from './chunk-5WB2A3XU.mjs';
|
|
4
|
+
import { rerankOnHost } from './chunk-YGQOPB2Z.mjs';
|
|
5
|
+
import { writeBlockLookupOf, indexReadsOf, validateBackupName, readRestorePlacement } from './chunk-YKEHQUSZ.mjs';
|
|
6
|
+
import './chunk-LDGGR7YT.mjs';
|
|
7
|
+
import { isRecord, validateIndexName } from './chunk-U6NE6RCV.mjs';
|
|
8
|
+
import './chunk-IRWP524D.mjs';
|
|
9
9
|
import './chunk-DJHHF2L5.mjs';
|
|
10
10
|
import './chunk-JDDXV6UF.mjs';
|
|
11
|
-
import { rerankWindowCapOf, engineCoreOf, providedDocId, resolveVectorText } from './chunk-
|
|
11
|
+
import { rerankWindowCapOf, engineCoreOf, providedDocId, resolveVectorText } from './chunk-VQDZVWN3.mjs';
|
|
12
|
+
import { readMemoryFigures } from './chunk-6F6USYII.mjs';
|
|
13
|
+
import './chunk-O4KUNDVF.mjs';
|
|
14
|
+
import './chunk-3HV7M5OJ.mjs';
|
|
15
|
+
import './chunk-KAKQ74LS.mjs';
|
|
12
16
|
import { MAX_RERANK_WINDOW } from './chunk-HJSN7UYG.mjs';
|
|
13
|
-
import { detectRuntime } from './chunk-
|
|
17
|
+
import { detectRuntime } from './chunk-6BWLDLS3.mjs';
|
|
18
|
+
import './chunk-XIHUI4KB.mjs';
|
|
19
|
+
import './chunk-Q2UL2TPC.mjs';
|
|
20
|
+
import './chunk-3MXV3VHR.mjs';
|
|
14
21
|
import './chunk-EEBCDP36.mjs';
|
|
15
|
-
import './chunk-
|
|
16
|
-
import './chunk-
|
|
17
|
-
import './chunk-EBIHRL7B.mjs';
|
|
18
|
-
import './chunk-74XB2SXI.mjs';
|
|
19
|
-
import './chunk-WQBCBKY3.mjs';
|
|
20
|
-
import './chunk-KGOXHLLZ.mjs';
|
|
21
|
-
import './chunk-U476IXKQ.mjs';
|
|
22
|
-
import './chunk-FQBFZAWG.mjs';
|
|
23
|
-
import './chunk-VJS4JFBQ.mjs';
|
|
24
|
-
import './chunk-ZSWHPKGM.mjs';
|
|
25
|
-
import './chunk-WNBRW4Q2.mjs';
|
|
22
|
+
import './chunk-2HJWQPR6.mjs';
|
|
23
|
+
import './chunk-X5CV2E2B.mjs';
|
|
26
24
|
import './chunk-TGP5M5R7.mjs';
|
|
27
25
|
import './chunk-U2BKYEC7.mjs';
|
|
26
|
+
import './chunk-ZAYWOHVG.mjs';
|
|
27
|
+
import './chunk-QHPYS427.mjs';
|
|
28
|
+
import { startIdleHeapCleanup } from './chunk-QYRNLLLI.mjs';
|
|
29
|
+
import './chunk-ZXNQEW43.mjs';
|
|
30
|
+
import './chunk-KOKM4PQN.mjs';
|
|
31
|
+
import './chunk-NVTFQFUL.mjs';
|
|
32
|
+
import './chunk-LQG5G2LY.mjs';
|
|
33
|
+
import './chunk-BTPGQC6Z.mjs';
|
|
34
|
+
import './chunk-RFBLQLLZ.mjs';
|
|
35
|
+
import './chunk-U46IZNCW.mjs';
|
|
36
|
+
import './chunk-JUKYYXSP.mjs';
|
|
37
|
+
import './chunk-SOUZMPME.mjs';
|
|
38
|
+
import './chunk-FQBFZAWG.mjs';
|
|
39
|
+
import './chunk-65WCV5JO.mjs';
|
|
40
|
+
import './chunk-4UMZ7KQL.mjs';
|
|
41
|
+
import './chunk-ZXX5GZEX.mjs';
|
|
42
|
+
import './chunk-KYVRZAYP.mjs';
|
|
43
|
+
import './chunk-L5ORED7V.mjs';
|
|
44
|
+
import './chunk-3TVDTACC.mjs';
|
|
45
|
+
import './chunk-U476IXKQ.mjs';
|
|
46
|
+
import { NarsilError, ErrorCodes, ServerErrorCodes, isNarsilError } from './chunk-MDF6PDIA.mjs';
|
|
47
|
+
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './chunk-MDF6PDIA.mjs';
|
|
28
48
|
import './chunk-R6A773WK.mjs';
|
|
29
49
|
import './chunk-YTJCGKM4.mjs';
|
|
30
|
-
import { startIdleHeapCleanup } from './chunk-RIIUZJQ3.mjs';
|
|
31
|
-
import './chunk-22YPZVMG.mjs';
|
|
32
|
-
import './chunk-L5ORED7V.mjs';
|
|
33
|
-
import { NarsilError, ErrorCodes, ServerErrorCodes, isNarsilError } from './chunk-HNHCNTVG.mjs';
|
|
34
|
-
export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './chunk-HNHCNTVG.mjs';
|
|
35
50
|
import { randomUUID } from 'crypto';
|
|
36
51
|
import { createReadStream } from 'fs';
|
|
37
52
|
import { MessageChannel } from 'worker_threads';
|
|
@@ -277,14 +292,6 @@ function createAdminHandlers(deps) {
|
|
|
277
292
|
};
|
|
278
293
|
}
|
|
279
294
|
|
|
280
|
-
// src/server/handlers/capabilities.ts
|
|
281
|
-
function createCapabilitiesHandler() {
|
|
282
|
-
function report(ctx) {
|
|
283
|
-
respondJson(ctx, { capabilities: [...SERVER_CAPABILITIES] });
|
|
284
|
-
}
|
|
285
|
-
return { report };
|
|
286
|
-
}
|
|
287
|
-
|
|
288
295
|
// src/server/handlers/cluster.ts
|
|
289
296
|
function requireCluster(deps) {
|
|
290
297
|
if (deps.cluster === void 0) {
|
|
@@ -401,6 +408,113 @@ function createClusterHandlers(deps) {
|
|
|
401
408
|
}
|
|
402
409
|
return { topology, allocation, replicationFactor, health };
|
|
403
410
|
}
|
|
411
|
+
|
|
412
|
+
// src/server/handlers/backups.ts
|
|
413
|
+
function stepsOf(context) {
|
|
414
|
+
return { onProgress: (progress) => context.reportSteps({ done: progress.done, total: progress.total }) };
|
|
415
|
+
}
|
|
416
|
+
function restoreOptionsOf(body) {
|
|
417
|
+
const { indexName } = body;
|
|
418
|
+
if (typeof indexName !== "string") return 'The body must carry the new index name as a string in "indexName"';
|
|
419
|
+
const placement = readRestorePlacement(body);
|
|
420
|
+
return typeof placement === "string" ? placement : { indexName, ...placement };
|
|
421
|
+
}
|
|
422
|
+
function readBody(ctx) {
|
|
423
|
+
const body = parseJson(ctx);
|
|
424
|
+
if (body === void 0) return void 0;
|
|
425
|
+
if (!isRecord(body)) {
|
|
426
|
+
badRequest(ctx.res, "The body must be a JSON object");
|
|
427
|
+
return void 0;
|
|
428
|
+
}
|
|
429
|
+
return body;
|
|
430
|
+
}
|
|
431
|
+
function createBackupHandlers(deps) {
|
|
432
|
+
async function create(ctx) {
|
|
433
|
+
try {
|
|
434
|
+
const cluster = requireCluster(deps);
|
|
435
|
+
const indexName = ctx.params[0] ?? "";
|
|
436
|
+
const body = readBody(ctx);
|
|
437
|
+
if (body === void 0) return;
|
|
438
|
+
if (typeof body.backup !== "string") {
|
|
439
|
+
badRequest(ctx.res, 'The body must carry the backup name as a string in "backup"', { indexName });
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
442
|
+
const backupName = validateBackupName(body.backup);
|
|
443
|
+
const record = await deps.tasks.start(
|
|
444
|
+
"backup",
|
|
445
|
+
indexName,
|
|
446
|
+
async (context) => {
|
|
447
|
+
await cluster.createBackup(indexName, backupName, stepsOf(context));
|
|
448
|
+
},
|
|
449
|
+
void 0,
|
|
450
|
+
backupName
|
|
451
|
+
);
|
|
452
|
+
respondJson(ctx, record, 202);
|
|
453
|
+
} catch (err) {
|
|
454
|
+
respondError(ctx, err);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
async function list(ctx) {
|
|
458
|
+
try {
|
|
459
|
+
const cluster = requireCluster(deps);
|
|
460
|
+
respondJson(ctx, { backups: await cluster.listBackups() });
|
|
461
|
+
} catch (err) {
|
|
462
|
+
respondError(ctx, err);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
async function restore(ctx) {
|
|
466
|
+
try {
|
|
467
|
+
const cluster = requireCluster(deps);
|
|
468
|
+
const backupName = validateBackupName(ctx.params[0]);
|
|
469
|
+
const body = readBody(ctx);
|
|
470
|
+
if (body === void 0) return;
|
|
471
|
+
const options = restoreOptionsOf(body);
|
|
472
|
+
if (typeof options === "string") {
|
|
473
|
+
badRequest(ctx.res, options, { backupName });
|
|
474
|
+
return;
|
|
475
|
+
}
|
|
476
|
+
const record = await deps.tasks.start(
|
|
477
|
+
"backupRestore",
|
|
478
|
+
options.indexName,
|
|
479
|
+
async (context) => {
|
|
480
|
+
await cluster.restoreBackup(backupName, { ...options, ...stepsOf(context) });
|
|
481
|
+
},
|
|
482
|
+
void 0,
|
|
483
|
+
backupName
|
|
484
|
+
);
|
|
485
|
+
respondJson(ctx, record, 202);
|
|
486
|
+
} catch (err) {
|
|
487
|
+
respondError(ctx, err);
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
async function remove(ctx) {
|
|
491
|
+
try {
|
|
492
|
+
const cluster = requireCluster(deps);
|
|
493
|
+
const backupName = validateBackupName(ctx.params[0]);
|
|
494
|
+
const record = await deps.tasks.start(
|
|
495
|
+
"backupDelete",
|
|
496
|
+
"",
|
|
497
|
+
async (context) => {
|
|
498
|
+
await cluster.deleteBackup(backupName, stepsOf(context));
|
|
499
|
+
},
|
|
500
|
+
void 0,
|
|
501
|
+
backupName
|
|
502
|
+
);
|
|
503
|
+
respondJson(ctx, record, 202);
|
|
504
|
+
} catch (err) {
|
|
505
|
+
respondError(ctx, err);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
return { create, list, restore, remove };
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
// src/server/handlers/capabilities.ts
|
|
512
|
+
function createCapabilitiesHandler() {
|
|
513
|
+
function report(ctx) {
|
|
514
|
+
respondJson(ctx, { capabilities: [...SERVER_CAPABILITIES] });
|
|
515
|
+
}
|
|
516
|
+
return { report };
|
|
517
|
+
}
|
|
404
518
|
function importResultOf(result, maxErrors) {
|
|
405
519
|
const errors = result.refused.slice(0, maxErrors);
|
|
406
520
|
return {
|
|
@@ -1523,7 +1637,7 @@ var TaskRegistry = class {
|
|
|
1523
1637
|
* @throws A `NarsilError` with `TOO_MANY_REQUESTS` where this instance
|
|
1524
1638
|
* already drives {@link ServerLimits.maxConcurrentTasks} tasks, because each
|
|
1525
1639
|
* one holds its own working set until it finishes. */
|
|
1526
|
-
async start(type, indexName, op, progress) {
|
|
1640
|
+
async start(type, indexName, op, progress, backupName) {
|
|
1527
1641
|
if (this.maxConcurrent > 0 && this.live.size >= this.maxConcurrent) {
|
|
1528
1642
|
throw new NarsilError(
|
|
1529
1643
|
ServerErrorCodes.TOO_MANY_REQUESTS,
|
|
@@ -1536,6 +1650,7 @@ var TaskRegistry = class {
|
|
|
1536
1650
|
id: randomUUID(),
|
|
1537
1651
|
type,
|
|
1538
1652
|
indexName,
|
|
1653
|
+
...backupName === void 0 ? {} : { backupName },
|
|
1539
1654
|
owner: this.instanceId,
|
|
1540
1655
|
status: "running",
|
|
1541
1656
|
createdAt: now,
|
|
@@ -1624,9 +1739,9 @@ var TaskRegistry = class {
|
|
|
1624
1739
|
return task.writes.catch(() => {
|
|
1625
1740
|
});
|
|
1626
1741
|
}
|
|
1627
|
-
reportProgress(task,
|
|
1742
|
+
reportProgress(task, change) {
|
|
1628
1743
|
if (task.settled) return;
|
|
1629
|
-
task.record = { ...task.record,
|
|
1744
|
+
task.record = { ...task.record, ...change };
|
|
1630
1745
|
const now = Date.now();
|
|
1631
1746
|
if (now - task.lastProgressWriteAt < TASK_PROGRESS_WRITE_INTERVAL_MS) return;
|
|
1632
1747
|
task.lastProgressWriteAt = now;
|
|
@@ -1635,7 +1750,8 @@ var TaskRegistry = class {
|
|
|
1635
1750
|
async drive(task, op) {
|
|
1636
1751
|
const context = {
|
|
1637
1752
|
signal: task.controller.signal,
|
|
1638
|
-
reportProgress: (progress) => this.reportProgress(task, progress),
|
|
1753
|
+
reportProgress: (progress) => this.reportProgress(task, { progress }),
|
|
1754
|
+
reportSteps: (steps) => this.reportProgress(task, { steps }),
|
|
1639
1755
|
reportResult: (result) => {
|
|
1640
1756
|
task.record = { ...task.record, result };
|
|
1641
1757
|
}
|
|
@@ -1709,6 +1825,7 @@ function mainThreadHandlers(deps) {
|
|
|
1709
1825
|
const documentExport = createDocumentExportHandlers(deps);
|
|
1710
1826
|
const health = createHealthHandlers(deps);
|
|
1711
1827
|
const cluster = createClusterHandlers(deps);
|
|
1828
|
+
const backups = createBackupHandlers(deps);
|
|
1712
1829
|
const version = createVersionHandler(deps);
|
|
1713
1830
|
const capabilities = createCapabilitiesHandler();
|
|
1714
1831
|
return {
|
|
@@ -1720,6 +1837,10 @@ function mainThreadHandlers(deps) {
|
|
|
1720
1837
|
clusterAllocation: cluster.allocation,
|
|
1721
1838
|
clusterReplicationFactor: cluster.replicationFactor,
|
|
1722
1839
|
clusterHealth: cluster.health,
|
|
1840
|
+
createBackup: backups.create,
|
|
1841
|
+
listBackups: backups.list,
|
|
1842
|
+
restoreBackup: backups.restore,
|
|
1843
|
+
deleteBackup: backups.remove,
|
|
1723
1844
|
metrics: createMetricsHandler(deps),
|
|
1724
1845
|
memory: admin.memory,
|
|
1725
1846
|
listTasks: admin.listTasks,
|
|
@@ -1,63 +1,60 @@
|
|
|
1
|
-
import { documentsOfPayloadV2 } from './chunk-
|
|
2
|
-
import { buildArchiveFromMemory, archiveStream, memoryCheckpointStore, readSnapshotArchive, writeArchiveFile } from './chunk-
|
|
3
|
-
import { indexMetadataOf, unpackIndexSnapshotEnvelope, loadSegmentedCheckpoint, writeMetadataEnvelope, deserializePayloadV1, SINGLE_NODE_PRIMARY_TERM } from './chunk-YHUTF6EA.mjs';
|
|
4
|
-
import { readVectorFile, readGraphParts } from './chunk-NRUXBYPH.mjs';
|
|
1
|
+
import { documentsOfPayloadV2 } from './chunk-QEYF2SQ6.mjs';
|
|
2
|
+
import { buildArchiveFromMemory, archiveStream, memoryCheckpointStore, readSnapshotArchive, writeArchiveFile } from './chunk-L7TIAYPX.mjs';
|
|
5
3
|
import { createByteReader } from './chunk-CZQ33DLW.mjs';
|
|
6
|
-
import {
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import './chunk-
|
|
4
|
+
import { MAX_SNAPSHOT_ANALYSIS_ATTEMPTS, requireRestoreMemory, earlierSnapshotFootprint, storedBytesOfSegments, archiveFootprint } from './chunk-VP6XRMWR.mjs';
|
|
5
|
+
import { indexMetadataOf, unpackIndexSnapshotEnvelope, loadSegmentedCheckpoint, writeMetadataEnvelope, deserializePayloadV1, SINGLE_NODE_PRIMARY_TERM } from './chunk-XKPNKR3V.mjs';
|
|
6
|
+
import { readVectorFile, readGraphParts } from './chunk-KZ5GQE4Z.mjs';
|
|
7
|
+
import { restoredConfigFields, restoredEmbedding, rejectSnapshot } from './chunk-IRWP524D.mjs';
|
|
8
|
+
import './chunk-ZXNNR73R.mjs';
|
|
9
|
+
import './chunk-7N223GWV.mjs';
|
|
10
|
+
import './chunk-3BVGJ4JR.mjs';
|
|
11
|
+
import { decodeVectorIndexParts, bytesToVectors } from './chunk-ZEKDO7YX.mjs';
|
|
12
|
+
import './chunk-AWNHDBKV.mjs';
|
|
12
13
|
import './chunk-37CD3OKS.mjs';
|
|
13
14
|
import './chunk-DJHHF2L5.mjs';
|
|
14
|
-
import './chunk-
|
|
15
|
+
import './chunk-CYYSZPVV.mjs';
|
|
15
16
|
import './chunk-JDDXV6UF.mjs';
|
|
16
|
-
import { readSegmentFile } from './chunk-
|
|
17
|
-
import
|
|
18
|
-
import './chunk-
|
|
19
|
-
import './chunk-
|
|
20
|
-
import { encodeIndexConfiguration, hasNrslMagic, HEADER_SIZE, readHeader, validateRequiredFieldsInSchema, validateEmbeddingConfig, storedArrayPositionGap, decodeIndexConfiguration, prepareStoredSynonyms, arrayPositionsAreStale, insertDocumentVectors } from './chunk-
|
|
21
|
-
import { validatePatternValueLimit, requireSurfaceFormsForPartialFields } from './chunk-
|
|
22
|
-
import './chunk-
|
|
17
|
+
import { readSegmentFile } from './chunk-QN5WVV5K.mjs';
|
|
18
|
+
import './chunk-U2726TL5.mjs';
|
|
19
|
+
import { manifestKey, encodeSegmentManifest, manifestFileRefs } from './chunk-6C5EX2QR.mjs';
|
|
20
|
+
import './chunk-5QMHMELB.mjs';
|
|
21
|
+
import { encodeIndexConfiguration, hasNrslMagic, HEADER_SIZE, readHeader, validateRequiredFieldsInSchema, validateEmbeddingConfig, storedArrayPositionGap, decodeIndexConfiguration, prepareStoredSynonyms, arrayPositionsAreStale, insertDocumentVectors } from './chunk-VQDZVWN3.mjs';
|
|
22
|
+
import { validatePatternValueLimit, requireSurfaceFormsForPartialFields } from './chunk-6F6USYII.mjs';
|
|
23
|
+
import { decodeEveryStoredDocument } from './chunk-O4KUNDVF.mjs';
|
|
24
|
+
import { ARRAY_POSITION_GAP, isCompositePartition } from './chunk-3HV7M5OJ.mjs';
|
|
25
|
+
import './chunk-KAKQ74LS.mjs';
|
|
23
26
|
import './chunk-HJSN7UYG.mjs';
|
|
24
|
-
import './chunk-
|
|
25
|
-
import './chunk-
|
|
27
|
+
import './chunk-6BWLDLS3.mjs';
|
|
28
|
+
import './chunk-XIHUI4KB.mjs';
|
|
29
|
+
import './chunk-Q2UL2TPC.mjs';
|
|
30
|
+
import './chunk-3MXV3VHR.mjs';
|
|
26
31
|
import './chunk-EEBCDP36.mjs';
|
|
27
|
-
import {
|
|
28
|
-
import { ARRAY_POSITION_GAP, isCompositePartition } from './chunk-ZPWS2SKJ.mjs';
|
|
29
|
-
import './chunk-N37VMC62.mjs';
|
|
30
|
-
import './chunk-ZATRDAYU.mjs';
|
|
31
|
-
import './chunk-EBIHRL7B.mjs';
|
|
32
|
-
import './chunk-KOKM4PQN.mjs';
|
|
33
|
-
import './chunk-QSK35UC2.mjs';
|
|
34
|
-
import './chunk-74XB2SXI.mjs';
|
|
35
|
-
import './chunk-RKAVHNRW.mjs';
|
|
36
|
-
import './chunk-WQBCBKY3.mjs';
|
|
37
|
-
import './chunk-JUKYYXSP.mjs';
|
|
38
|
-
import { parseVectorDimension } from './chunk-DQNKVOJ2.mjs';
|
|
39
|
-
import { raiseEarlierReleaseGraphSetting, validateSchema, validateVectorPromotion, validateVectorStorage, validateTextStorage, flattenSchema } from './chunk-KGOXHLLZ.mjs';
|
|
40
|
-
import { MAX_FILE_BYTES } from './chunk-U476IXKQ.mjs';
|
|
41
|
-
import './chunk-FQBFZAWG.mjs';
|
|
42
|
-
import './chunk-VJS4JFBQ.mjs';
|
|
43
|
-
import './chunk-GES7U2PM.mjs';
|
|
44
|
-
import './chunk-ZSWHPKGM.mjs';
|
|
45
|
-
import { resolveIndexAnalysis } from './chunk-O4LJQI4G.mjs';
|
|
32
|
+
import { getLanguage, resolveIndexAnalysis } from './chunk-2HJWQPR6.mjs';
|
|
46
33
|
import './chunk-X5CV2E2B.mjs';
|
|
47
|
-
import { getLanguage } from './chunk-WNBRW4Q2.mjs';
|
|
48
34
|
import './chunk-TGP5M5R7.mjs';
|
|
49
35
|
import './chunk-U2BKYEC7.mjs';
|
|
50
|
-
import './chunk-
|
|
51
|
-
import './chunk-4UMZ7KQL.mjs';
|
|
52
|
-
import './chunk-R6A773WK.mjs';
|
|
53
|
-
import './chunk-YTJCGKM4.mjs';
|
|
54
|
-
import './chunk-RIIUZJQ3.mjs';
|
|
36
|
+
import { loadVectorCodeFor } from './chunk-ZAYWOHVG.mjs';
|
|
55
37
|
import './chunk-QHPYS427.mjs';
|
|
56
|
-
import
|
|
57
|
-
import './chunk-
|
|
38
|
+
import './chunk-QYRNLLLI.mjs';
|
|
39
|
+
import './chunk-ZXNQEW43.mjs';
|
|
40
|
+
import './chunk-KOKM4PQN.mjs';
|
|
41
|
+
import './chunk-NVTFQFUL.mjs';
|
|
42
|
+
import './chunk-LQG5G2LY.mjs';
|
|
43
|
+
import './chunk-BTPGQC6Z.mjs';
|
|
58
44
|
import './chunk-RFBLQLLZ.mjs';
|
|
45
|
+
import './chunk-U46IZNCW.mjs';
|
|
46
|
+
import './chunk-JUKYYXSP.mjs';
|
|
47
|
+
import { raiseEarlierReleaseGraphSetting, validateSchema, validateVectorPromotion, validateVectorStorage, validateTextStorage, flattenSchema, parseVectorDimension } from './chunk-SOUZMPME.mjs';
|
|
48
|
+
import './chunk-FQBFZAWG.mjs';
|
|
49
|
+
import './chunk-65WCV5JO.mjs';
|
|
50
|
+
import './chunk-4UMZ7KQL.mjs';
|
|
51
|
+
import './chunk-ZXX5GZEX.mjs';
|
|
52
|
+
import './chunk-KYVRZAYP.mjs';
|
|
59
53
|
import './chunk-L5ORED7V.mjs';
|
|
60
|
-
import {
|
|
54
|
+
import { MAX_FILE_BYTES } from './chunk-U476IXKQ.mjs';
|
|
55
|
+
import { NarsilError, ErrorCodes } from './chunk-MDF6PDIA.mjs';
|
|
56
|
+
import './chunk-R6A773WK.mjs';
|
|
57
|
+
import './chunk-YTJCGKM4.mjs';
|
|
61
58
|
import { decode } from '@msgpack/msgpack';
|
|
62
59
|
|
|
63
60
|
// src/persistence/archive/validate.ts
|
|
@@ -85,7 +82,7 @@ async function validateStagedCheckpoint(store, manifest) {
|
|
|
85
82
|
for (const ref of partition.segments) {
|
|
86
83
|
const { directory } = store;
|
|
87
84
|
if (directory !== void 0) {
|
|
88
|
-
const { checkPagedSegmentFully, isPagedSegmentFile } = await import('./module-
|
|
85
|
+
const { checkPagedSegmentFully, isPagedSegmentFile } = await import('./module-V5K4ZP23.mjs');
|
|
89
86
|
if (await isPagedSegmentFile(directory, ref.key)) {
|
|
90
87
|
requireSchemaOfManifest(ref.key, await checkPagedSegmentFully(directory, ref), manifest);
|
|
91
88
|
continue;
|
|
@@ -453,7 +450,7 @@ async function stageArchive(indexName, reader, staging, deps) {
|
|
|
453
450
|
if (manifest === null) missingPart("manifest");
|
|
454
451
|
const { directory } = staging;
|
|
455
452
|
if (keepsTextOnDisk(prepared, staging) && directory !== void 0) {
|
|
456
|
-
const { bytesThatSegmentsHoldInMemory } = await import('./module-
|
|
453
|
+
const { bytesThatSegmentsHoldInMemory } = await import('./module-V5K4ZP23.mjs');
|
|
457
454
|
const replacesIndex = deps.indexRegistry.has(indexName);
|
|
458
455
|
const segmentBytes = await bytesThatSegmentsHoldInMemory(directory, manifest);
|
|
459
456
|
requireRestoreMemory(indexName, archiveFootprint(prepared, manifest, replacesIndex, segmentBytes), replacesIndex);
|
package/dist/synonyms.mjs
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { synonymSearchModule } from './chunk-
|
|
1
|
+
import { synonymSearchModule } from './chunk-2HJWQPR6.mjs';
|
|
2
2
|
import './chunk-X5CV2E2B.mjs';
|
|
3
|
-
import './chunk-WNBRW4Q2.mjs';
|
|
4
3
|
import './chunk-TGP5M5R7.mjs';
|
|
5
4
|
import './chunk-U2BKYEC7.mjs';
|
|
6
|
-
import './chunk-
|
|
5
|
+
import './chunk-65WCV5JO.mjs';
|
|
7
6
|
import './chunk-4UMZ7KQL.mjs';
|
|
7
|
+
import './chunk-MDF6PDIA.mjs';
|
|
8
8
|
import './chunk-R6A773WK.mjs';
|
|
9
9
|
import './chunk-YTJCGKM4.mjs';
|
|
10
|
-
import './chunk-HNHCNTVG.mjs';
|
|
11
10
|
|
|
12
11
|
// src/synonyms/index.ts
|
|
13
12
|
var synonyms = synonymSearchModule;
|
|
@@ -1,8 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as
|
|
1
|
+
import { B as BackupListing, b as ClusterNodeInfo, N as NodeReadiness } from './config-CfhH1IWQ.js';
|
|
2
|
+
import { A as AllocationConstraints, N as NodeRole, d as NodeMemoryReport } from './index-MsF7e5hL.js';
|
|
3
|
+
import { I as IndexInfo, P as PartitionStatsResult, V as VectorMaintenanceResult, M as MemoryStats } from './config-aIsy7mcL.js';
|
|
4
|
+
import { A as AnyDocument, I as InsertOptions, B as BM25Params, W as WriteOptions } from './schema-D33CyXCy.js';
|
|
3
5
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The body of `POST /indexes/{name}/backups`.
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
interface CreateBackupBody {
|
|
13
|
+
/** The backup's name, from 1 to 128 letters, digits, `.`, `_`, and `-`, starting with a letter or a digit. */
|
|
14
|
+
backup: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The body of `POST /backups/{backup}/_restore`.
|
|
18
|
+
*
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
interface RestoreBackupBody {
|
|
22
|
+
/** The restore creates the index under this name, and it fails where the name is taken. */
|
|
23
|
+
indexName: string;
|
|
24
|
+
/** The restored index keeps this many replicas of each partition, or the backup's number when you leave it out. */
|
|
25
|
+
replicationFactor?: number;
|
|
26
|
+
/** The rules that place the restored partitions, or the backup's rules when you leave them out. */
|
|
27
|
+
constraints?: AllocationConstraints;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The body of `GET /backups`.
|
|
31
|
+
*
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
interface BackupListResponse {
|
|
35
|
+
/** One entry per backup in name order: its summary, or its name and a `BACKUP_DAMAGED` error where its manifest can't be read. */
|
|
36
|
+
backups: BackupListing[];
|
|
37
|
+
}
|
|
6
38
|
|
|
7
39
|
/**
|
|
8
40
|
* The body of `POST /indexes`, which the server sends once the index exists.
|
|
@@ -569,7 +601,7 @@ interface MemoryStatsResponse extends MemoryStats {
|
|
|
569
601
|
*
|
|
570
602
|
* @public
|
|
571
603
|
*/
|
|
572
|
-
type TaskType = 'optimizeVectors' | 'rebalance' | 'restore' | 'import' | 'importExport' | 'rebuildAnalysis' | 'changeAnalysis';
|
|
604
|
+
type TaskType = 'optimizeVectors' | 'rebalance' | 'restore' | 'import' | 'importExport' | 'rebuildAnalysis' | 'changeAnalysis' | 'backup' | 'backupRestore' | 'backupDelete';
|
|
573
605
|
/**
|
|
574
606
|
* Where a long-running operation stands.
|
|
575
607
|
*
|
|
@@ -603,6 +635,19 @@ interface TaskProgress {
|
|
|
603
635
|
/** The body holds this many bytes in total. */
|
|
604
636
|
bytesTotal: number;
|
|
605
637
|
}
|
|
638
|
+
/**
|
|
639
|
+
* How far a task that works through a known number of steps has gone.
|
|
640
|
+
*
|
|
641
|
+
* A `backup` and a `backupRestore` task count partitions, and a `backupDelete` task counts the files it removes.
|
|
642
|
+
*
|
|
643
|
+
* @public
|
|
644
|
+
*/
|
|
645
|
+
interface TaskStepProgress {
|
|
646
|
+
/** The task has finished this many steps. */
|
|
647
|
+
done: number;
|
|
648
|
+
/** The task covers this many steps, and 0 until it knows. */
|
|
649
|
+
total: number;
|
|
650
|
+
}
|
|
606
651
|
/**
|
|
607
652
|
* One long-running operation, which the server answers with straight away and
|
|
608
653
|
* you then poll.
|
|
@@ -617,8 +662,13 @@ interface TaskRecord {
|
|
|
617
662
|
id: string;
|
|
618
663
|
/** This says which operation the task runs. */
|
|
619
664
|
type: TaskType;
|
|
620
|
-
/**
|
|
665
|
+
/**
|
|
666
|
+
* The operation runs against this index. A `backupRestore` task names the index it creates, and a `backupDelete`
|
|
667
|
+
* task names none and carries an empty string.
|
|
668
|
+
*/
|
|
621
669
|
indexName: string;
|
|
670
|
+
/** A `backup`, `backupRestore`, or `backupDelete` task works on the backup of this name. */
|
|
671
|
+
backupName?: string;
|
|
622
672
|
/** This says where the operation stands. */
|
|
623
673
|
status: TaskStatus;
|
|
624
674
|
/** Identifier of the server instance running this task; see ServerOptions.instanceId. */
|
|
@@ -634,6 +684,8 @@ interface TaskRecord {
|
|
|
634
684
|
cancelRequestedAt?: number;
|
|
635
685
|
/** How far the work has gone, which an import reports and other task types omit. */
|
|
636
686
|
progress?: TaskProgress;
|
|
687
|
+
/** How many of its steps the work has finished, which a backup, a backup restore, and a backup deletion report. */
|
|
688
|
+
steps?: TaskStepProgress;
|
|
637
689
|
/** What the work produced, which an `import` or `importExport` task reports once it finishes. */
|
|
638
690
|
result?: ImportResult;
|
|
639
691
|
/** This says why the task failed, and a failed task alone carries it. */
|
|
@@ -719,4 +771,4 @@ interface TaskStore {
|
|
|
719
771
|
shutdown?(): Promise<void>;
|
|
720
772
|
}
|
|
721
773
|
|
|
722
|
-
export type {
|
|
774
|
+
export type { PartitionAllocationReport as $, IndexClearedResponse as A, BackupListResponse as B, CapabilitiesResponse as C, DocumentBody as D, ErrorDetail as E, IndexCreatedResponse as F, IndexDroppedResponse as G, HttpIndexConfig as H, ImportError as I, IndexListResponse as J, IndexPartitionsResponse as K, IndexStateResponse as L, MemoryStatsResponse as M, LivenessResponse as N, MultiGetResponse as O, OkResponse as P, ReadinessResponse as Q, RestoreBackupBody as R, SynonymSetBody as S, TaskListPage as T, ReplicationFactorResponse as U, VectorFieldBody as V, VectorMaintenanceResponse as W, VersionResponse as X, BatchFailure as Y, ClusterMemberReport as Z, ClusterNodeReport as _, ChangeAnalysisBody as a, CreateIndexEmbedding as b, ImportResult as c, TaskListQuery as d, TaskProgress as e, TaskRecord as f, TaskStatus as g, TaskStepProgress as h, TaskType as i, TaskStore as j, CreateIndexRequest as k, BatchBody as l, CreateBackupBody as m, InsertBody as n, MultiGetBody as o, RebalanceBody as p, ReplicationFactorBody as q, BatchResponse as r, ClusterAllocationResponse as s, ClusterTopologyResponse as t, DocumentCountResponse as u, DocumentExistsResponse as v, DocumentIdResponse as w, DocumentPutResponse as x, DocumentRemovedResponse as y, DocumentResponse as z };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export { closeRequestThread, searchHandler, serveRequests } from './chunk-TTCKT2RT.mjs';
|
|
2
|
+
import './chunk-KZ3NX2P7.mjs';
|
|
3
|
+
import './chunk-5WB2A3XU.mjs';
|
|
4
|
+
import './chunk-LDGGR7YT.mjs';
|
|
5
|
+
import './chunk-DJHHF2L5.mjs';
|
|
6
|
+
import './chunk-6F6USYII.mjs';
|
|
7
|
+
import './chunk-3HV7M5OJ.mjs';
|
|
8
|
+
import './chunk-KAKQ74LS.mjs';
|
|
9
|
+
import './chunk-HJSN7UYG.mjs';
|
|
10
|
+
import './chunk-XIHUI4KB.mjs';
|
|
11
|
+
import './chunk-Q2UL2TPC.mjs';
|
|
12
|
+
import './chunk-EEBCDP36.mjs';
|
|
13
|
+
import './chunk-X5CV2E2B.mjs';
|
|
14
|
+
import './chunk-QYRNLLLI.mjs';
|
|
15
|
+
import './chunk-ZXNQEW43.mjs';
|
|
16
|
+
import './chunk-NVTFQFUL.mjs';
|
|
17
|
+
import './chunk-LQG5G2LY.mjs';
|
|
18
|
+
import './chunk-BTPGQC6Z.mjs';
|
|
19
|
+
import './chunk-U46IZNCW.mjs';
|
|
20
|
+
import './chunk-JUKYYXSP.mjs';
|
|
21
|
+
import './chunk-SOUZMPME.mjs';
|
|
22
|
+
import './chunk-FQBFZAWG.mjs';
|
|
23
|
+
import './chunk-65WCV5JO.mjs';
|
|
24
|
+
import './chunk-4UMZ7KQL.mjs';
|
|
25
|
+
import './chunk-ZXX5GZEX.mjs';
|
|
26
|
+
import './chunk-KYVRZAYP.mjs';
|
|
27
|
+
import './chunk-L5ORED7V.mjs';
|
|
28
|
+
import './chunk-U476IXKQ.mjs';
|
|
29
|
+
import './chunk-MDF6PDIA.mjs';
|
|
30
|
+
import './chunk-R6A773WK.mjs';
|
|
31
|
+
import './chunk-YTJCGKM4.mjs';
|