@delali/narsil 0.3.1-next.99 → 0.4.1-next.211
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/NOTICE +45 -0
- package/README.md +30 -11
- 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/browser/chunk-4E5APHTM.mjs +1459 -0
- package/dist/browser/chunk-NDYADQ4Y.mjs +23426 -0
- package/dist/browser/chunk-QAOVAYAG.mjs +564 -0
- package/dist/browser/chunk-WC2DEXWU.mjs +29 -0
- package/dist/browser/chunk-YINZFPLT.mjs +1239 -0
- package/dist/browser/chunk-YJHGOJAC.mjs +15 -0
- package/dist/browser/{chunk-Z7QH2XHB.mjs → core-leaf-HWAXCEWX.mjs} +3987 -2103
- package/dist/browser/custom-token-results-R5BIX7SL.mjs +59 -0
- package/dist/browser/digest-leaf-64IPRPZD.mjs +151 -0
- package/dist/browser/durability-config-75NSFCQN.mjs +97 -0
- package/dist/browser/embed-GG6PS3EA.mjs +264 -0
- package/dist/browser/geo-index-GNHY4PUB.mjs +1484 -0
- package/dist/browser/gzip-JF3S6PPT.mjs +31 -0
- package/dist/browser/module-ZZTNG5JZ.mjs +5762 -0
- package/dist/browser/msgpack-leaf-44XNWSSY.mjs +302 -0
- package/dist/browser/optional-reads-XMVPG6HG.mjs +3230 -0
- package/dist/browser/optional-writes-76DWMRQH.mjs +3603 -0
- package/dist/browser/phrase-module-6UGFVW5J.mjs +617 -0
- package/dist/browser/resolve-vector-text-XRR2OVHE.mjs +85 -0
- package/dist/browser/restore-queue-SG5O735W.mjs +196 -0
- package/dist/browser/{runtime-NYE5TB6O.mjs → runtime-OMKE7DF4.mjs} +83 -25
- package/dist/browser/segment-codec-leaf-A427QJUX.mjs +554 -0
- package/dist/browser/segment-merge-leaf-7BZ54JPI.mjs +1636 -0
- package/dist/browser/storage-leaf-5UTR5K7J.mjs +19829 -0
- package/dist/browser/store-leaf-3L33V35P.mjs +2070 -0
- package/dist/browser/suggestions-leaf-UBNDVKBD.mjs +1430 -0
- package/dist/browser/worker-copies-JXSGYR5X.mjs +2951 -0
- package/dist/{capabilities-BTTIs96E.d.ts → capabilities-DMte5K9_.d.ts} +162 -18
- package/dist/chunk-2AFZE7Y3.mjs +72 -0
- package/dist/chunk-2CKDCC65.mjs +47 -0
- package/dist/chunk-3ECIRFS5.mjs +61 -0
- package/dist/chunk-44W3CBNG.mjs +7 -0
- package/dist/chunk-4H4RG2FR.mjs +13 -0
- package/dist/chunk-4PY4JYMY.mjs +11 -0
- package/dist/chunk-4ZPVAHWF.mjs +1289 -0
- package/dist/chunk-5EI5CXO6.mjs +197 -0
- package/dist/chunk-5F5MXWS5.mjs +283 -0
- package/dist/{chunk-OHP7QR33.mjs → chunk-5FLRXF73.mjs} +25 -4
- package/dist/chunk-6FOENO4E.mjs +273 -0
- package/dist/chunk-6GHX35ZM.mjs +108 -0
- package/dist/chunk-6MSZ543Y.mjs +32 -0
- package/dist/chunk-6N6HHBCQ.mjs +4596 -0
- package/dist/{chunk-LXPIXDUJ.mjs → chunk-7P5YWDRQ.mjs} +403 -169
- package/dist/{chunk-TGP5M5R7.mjs → chunk-7T4LAYT4.mjs} +1 -1
- package/dist/{chunk-GGSH6KBQ.mjs → chunk-ASZLNVWW.mjs} +23 -3
- package/dist/chunk-AVBPB3MI.mjs +602 -0
- package/dist/{chunk-UCDF35PU.mjs → chunk-AVGUEEQ3.mjs} +494 -245
- package/dist/chunk-BUMREPLU.mjs +15 -0
- package/dist/chunk-BY6NALRK.mjs +31921 -0
- package/dist/chunk-C4ZMXXTL.mjs +92 -0
- package/dist/{chunk-2WYMG3OZ.mjs → chunk-C74KPRR7.mjs} +274 -19
- package/dist/{chunk-RSRVGAIQ.mjs → chunk-D456ZFPQ.mjs} +3 -2
- package/dist/chunk-DXZ6JDWG.mjs +797 -0
- package/dist/chunk-FJXJZUWF.mjs +209 -0
- package/dist/chunk-FS3HPPSC.mjs +212 -0
- package/dist/chunk-FT4KLZXW.mjs +1164 -0
- package/dist/chunk-GR5GMFJJ.mjs +104 -0
- package/dist/chunk-GXCDWLQI.mjs +193 -0
- package/dist/chunk-GXED6R3Q.mjs +271 -0
- package/dist/chunk-HLPRHOSO.mjs +17 -0
- package/dist/chunk-IL5DRCNU.mjs +3041 -0
- package/dist/{chunk-P36MUFEJ.mjs → chunk-JDDXV6UF.mjs} +2 -1
- package/dist/chunk-K5HSUPYS.mjs +11 -0
- package/dist/chunk-KYIRXTCA.mjs +100 -0
- package/dist/chunk-LFXS6OF7.mjs +289 -0
- package/dist/chunk-LNGE7SLY.mjs +151 -0
- package/dist/chunk-M2Z5WVWW.mjs +194 -0
- package/dist/{chunk-45AVKHMJ.mjs → chunk-M3B7SGJB.mjs} +63 -50
- package/dist/chunk-M3OW2XSP.mjs +40 -0
- package/dist/chunk-MFPSQZ6P.mjs +127 -0
- package/dist/chunk-MRCJBWJZ.mjs +1292 -0
- package/dist/chunk-MSIN4NM3.mjs +25 -0
- package/dist/chunk-MW3CJVGP.mjs +219 -0
- package/dist/chunk-MYM6CAVK.mjs +76 -0
- package/dist/chunk-NJJN4FMM.mjs +84 -0
- package/dist/chunk-NM7I3BM7.mjs +59 -0
- package/dist/chunk-OIJ64LGT.mjs +19 -0
- package/dist/{chunk-K7D4ZTSW.mjs → chunk-P4F4UWLC.mjs} +1 -1
- package/dist/chunk-Q2AP2FSN.mjs +15 -0
- package/dist/chunk-R2PJKSNL.mjs +54 -0
- package/dist/{chunk-HXJBSHXF.mjs → chunk-R724DJSG.mjs} +5056 -2619
- package/dist/chunk-S2POFTLN.mjs +10 -0
- package/dist/chunk-S5QMWECL.mjs +7 -0
- package/dist/chunk-SLAC5PAB.mjs +5008 -0
- package/dist/chunk-T4HMSZCX.mjs +5 -0
- package/dist/chunk-TACP6VK6.mjs +111 -0
- package/dist/chunk-TGPKS2UM.mjs +125 -0
- package/dist/chunk-TKKXPKEO.mjs +979 -0
- package/dist/chunk-V6EUBAIT.mjs +19 -0
- package/dist/chunk-XL56L4IR.mjs +228 -0
- package/dist/chunk-XQIAMDAG.mjs +3076 -0
- package/dist/chunk-YTUZ4R22.mjs +1063 -0
- package/dist/{chunk-KV3AZFT3.mjs → chunk-ZKOQR7EA.mjs} +45 -1
- package/dist/chunk-ZPJFGGGI.mjs +638 -0
- package/dist/chunk-ZXX5GZEX.mjs +17 -0
- package/dist/{client-i9eLJrw5.d.ts → client-BKqtl0_V.d.ts} +442 -22
- package/dist/client.d.ts +11 -10
- package/dist/client.mjs +8 -898
- package/dist/config-Bnl7L-0H.d.ts +608 -0
- package/dist/{config-P__Diiy4.d.ts → config-CJ-jfI0a.d.ts} +119 -9
- package/dist/core-leaf-6JVHEVFB.mjs +8 -0
- package/dist/custom-token-results-NXHBVY7U.mjs +59 -0
- package/dist/digest-leaf-KXBGKYHZ.mjs +1 -0
- package/dist/direct-executor-V3WOYU2Y.mjs +17 -0
- package/dist/distribution/coordinator/etcd.d.ts +63 -7
- package/dist/distribution/coordinator/etcd.mjs +725 -81
- package/dist/distribution/coordinator/in-memory.d.ts +3 -3
- package/dist/distribution/coordinator/in-memory.mjs +65 -10
- package/dist/distribution/transport/grpc.d.ts +2 -2
- package/dist/distribution/transport/grpc.mjs +39 -10
- package/dist/distribution/transport/in-memory.d.ts +2 -2
- package/dist/distribution/transport/in-memory.mjs +9 -6
- package/dist/distribution/transport/tcp.d.ts +2 -2
- package/dist/distribution/transport/tcp.mjs +20 -15
- package/dist/distribution.d.ts +267 -56
- package/dist/distribution.mjs +23156 -11362
- package/dist/durability-config-VWS2K24E.mjs +96 -0
- package/dist/embed-4PHHKGBK.mjs +263 -0
- package/dist/embeddings/openai.d.ts +1 -1
- package/dist/embeddings/openai.mjs +2 -2
- package/dist/{memory-CUEDwr-F.d.ts → engine-qjAxJSKk.d.ts} +2254 -1123
- package/dist/geo-index-2ZMMWWSK.mjs +1484 -0
- package/dist/gzip-2UCZW2MM.mjs +31 -0
- package/dist/{index-lcdGLyJH.d.ts → index-B_vmxpgW.d.ts} +260 -102
- package/dist/index.browser.mjs +4 -4
- package/dist/index.d.ts +2133 -57
- package/dist/index.mjs +16 -32
- package/dist/index.react-native.mjs +12 -0
- package/dist/invalidation/broadcast-channel.d.ts +1 -1
- package/dist/invalidation/filesystem.d.ts +1 -1
- package/dist/invalidation/filesystem.mjs +1 -2
- package/dist/invalidation/noop.d.ts +1 -1
- package/dist/languages/albanian.mjs +1 -1
- package/dist/languages/amharic.mjs +1 -1
- package/dist/languages/arabic.mjs +1 -1
- package/dist/languages/armenian.mjs +1 -1
- package/dist/languages/azerbaijani.mjs +1 -1
- package/dist/languages/bambara.mjs +1 -1
- package/dist/languages/basque.mjs +1 -1
- package/dist/languages/belarusian.mjs +1 -1
- package/dist/languages/bengali.mjs +1 -1
- package/dist/languages/bosnian.mjs +1 -1
- package/dist/languages/breton.mjs +1 -1
- package/dist/languages/bulgarian.mjs +1 -1
- package/dist/languages/burmese.mjs +1 -1
- package/dist/languages/catalan.mjs +1 -1
- package/dist/languages/chinese.mjs +1 -1
- package/dist/languages/croatian.mjs +1 -1
- package/dist/languages/czech.mjs +1 -1
- package/dist/languages/dagbani.mjs +1 -1
- package/dist/languages/danish.mjs +1 -1
- package/dist/languages/dutch.mjs +1 -1
- package/dist/languages/english.mjs +1 -1
- package/dist/languages/esperanto.mjs +1 -1
- package/dist/languages/estonian.mjs +1 -1
- package/dist/languages/ewe.mjs +1 -1
- package/dist/languages/faroese.mjs +1 -1
- package/dist/languages/fijian.mjs +1 -1
- package/dist/languages/finnish.mjs +1 -1
- package/dist/languages/french.mjs +1 -1
- package/dist/languages/ga.mjs +1 -1
- package/dist/languages/galician.mjs +1 -1
- package/dist/languages/georgian.mjs +1 -1
- package/dist/languages/german.mjs +1 -1
- package/dist/languages/greek.mjs +1 -1
- package/dist/languages/guarani.mjs +1 -1
- package/dist/languages/gujarati.mjs +1 -1
- package/dist/languages/haitian-creole.mjs +1 -1
- package/dist/languages/hausa.mjs +1 -1
- package/dist/languages/hawaiian.mjs +1 -1
- package/dist/languages/hebrew.mjs +1 -1
- package/dist/languages/hindi.mjs +1 -1
- package/dist/languages/hungarian.mjs +1 -1
- package/dist/languages/icelandic.mjs +1 -1
- package/dist/languages/igbo.mjs +1 -1
- package/dist/languages/indonesian.mjs +1 -1
- package/dist/languages/irish.mjs +1 -1
- package/dist/languages/italian.mjs +1 -1
- package/dist/languages/japanese.mjs +1 -1
- package/dist/languages/kannada.mjs +1 -1
- package/dist/languages/kazakh.mjs +1 -1
- package/dist/languages/khmer.mjs +1 -1
- package/dist/languages/kinyarwanda.mjs +1 -1
- package/dist/languages/kirundi.mjs +1 -1
- package/dist/languages/korean.mjs +1 -1
- package/dist/languages/kurmanji.mjs +1 -1
- package/dist/languages/kyrgyz.mjs +1 -1
- package/dist/languages/lao.mjs +1 -1
- package/dist/languages/latin.mjs +1 -1
- package/dist/languages/latvian.mjs +1 -1
- package/dist/languages/lingala.mjs +1 -1
- package/dist/languages/lithuanian.mjs +1 -1
- package/dist/languages/luxembourgish.mjs +1 -1
- package/dist/languages/macedonian.mjs +1 -1
- package/dist/languages/malagasy.mjs +1 -1
- package/dist/languages/malay.mjs +1 -1
- package/dist/languages/malayalam.mjs +1 -1
- package/dist/languages/maltese.mjs +1 -1
- package/dist/languages/maori.mjs +1 -1
- package/dist/languages/marathi.mjs +1 -1
- package/dist/languages/nepali.mjs +1 -1
- package/dist/languages/norwegian.mjs +1 -1
- package/dist/languages/oromo.mjs +1 -1
- package/dist/languages/persian.mjs +1 -1
- package/dist/languages/polish.mjs +1 -1
- package/dist/languages/portuguese.mjs +1 -1
- package/dist/languages/punjabi.mjs +1 -1
- package/dist/languages/romanian.mjs +1 -1
- package/dist/languages/russian.mjs +1 -1
- package/dist/languages/samoan.mjs +1 -1
- package/dist/languages/sanskrit.mjs +1 -1
- package/dist/languages/scottish-gaelic.mjs +1 -1
- package/dist/languages/serbian.mjs +1 -1
- package/dist/languages/shona.mjs +1 -1
- package/dist/languages/sinhala.mjs +1 -1
- package/dist/languages/slovak.mjs +1 -1
- package/dist/languages/slovenian.mjs +1 -1
- package/dist/languages/sorani.mjs +1 -1
- package/dist/languages/spanish.mjs +1 -1
- package/dist/languages/swahili.mjs +1 -1
- package/dist/languages/swedish.mjs +1 -1
- package/dist/languages/tagalog.mjs +1 -1
- package/dist/languages/tamil.mjs +1 -1
- package/dist/languages/tatar.mjs +1 -1
- package/dist/languages/telugu.mjs +1 -1
- package/dist/languages/thai.mjs +1 -1
- package/dist/languages/tibetan.mjs +1 -1
- package/dist/languages/tigrinya.mjs +1 -1
- package/dist/languages/tongan.mjs +1 -1
- package/dist/languages/turkish.mjs +1 -1
- package/dist/languages/twi.mjs +1 -1
- package/dist/languages/ukrainian.mjs +1 -1
- package/dist/languages/urdu.mjs +1 -1
- package/dist/languages/vietnamese.mjs +1 -1
- package/dist/languages/welsh.mjs +1 -1
- package/dist/languages/wolof.mjs +1 -1
- package/dist/languages/xhosa.mjs +1 -1
- package/dist/languages/yoruba.mjs +1 -1
- package/dist/languages/zulu.mjs +1 -1
- package/dist/long-query-thread-UCRK7MSI.mjs +154 -0
- package/dist/module-5ZSLUQII.mjs +3729 -0
- package/dist/msgpack-leaf-H5ZYW7S7.mjs +9 -0
- package/dist/optional-reads-5HFMF2QZ.mjs +3373 -0
- package/dist/optional-writes-4UOQKETU.mjs +247 -0
- package/dist/paged-partition-archive-BBRLZCIF.mjs +253 -0
- package/dist/partial-words.browser.mjs +1650 -0
- package/dist/partial-words.mjs +17 -11
- package/dist/{chunk-ASY5PHYI.mjs → pattern.browser.mjs} +253 -311
- package/dist/pattern.mjs +6 -7
- package/dist/persistence/durability/checkpoint-worker.d.ts +93 -25
- package/dist/persistence/durability/checkpoint-worker.mjs +51 -41
- package/dist/phrase-module-EFESWOCR.mjs +635 -0
- package/dist/query-actions-HMJUVWGT.mjs +119 -0
- package/dist/query-suggestions/merge-worker.d.ts +55 -0
- package/dist/query-suggestions/merge-worker.mjs +53 -0
- package/dist/query-suggestions-CBYkrQ5T.d.ts +311 -0
- package/dist/query-suggestions.browser.mjs +47 -0
- package/dist/query-suggestions.d.ts +20 -0
- package/dist/query-suggestions.mjs +19 -0
- package/dist/react-native/chunks/chunk-3OEFSHVV.mjs +970 -0
- package/dist/{browser/chunk-RELZRJNR.mjs → react-native/chunks/chunk-43R4GCM7.mjs} +49 -50
- package/dist/react-native/chunks/chunk-AKRYHAVG.mjs +6729 -0
- package/dist/react-native/chunks/chunk-CW2ZFXSE.mjs +14 -0
- package/dist/react-native/chunks/chunk-G3WCDTOF.mjs +29640 -0
- package/dist/react-native/chunks/chunk-GXXHHA2T.mjs +212 -0
- package/dist/react-native/chunks/chunk-H3MDVPBO.mjs +151 -0
- package/dist/react-native/chunks/chunk-HQEVQEDJ.mjs +52 -0
- package/dist/react-native/chunks/chunk-HRDMIQ63.mjs +131 -0
- package/dist/react-native/chunks/chunk-HTBY4GON.mjs +565 -0
- package/dist/react-native/chunks/chunk-LX62Y4B5.mjs +61 -0
- package/dist/react-native/chunks/chunk-MRH36RN3.mjs +902 -0
- package/dist/react-native/chunks/chunk-Q32DDFKX.mjs +19 -0
- package/dist/react-native/chunks/chunk-UE4ANHSX.mjs +127 -0
- package/dist/react-native/chunks/chunk-UNZPWLVL.mjs +1063 -0
- package/dist/react-native/chunks/chunk-UO44MA5M.mjs +232 -0
- package/dist/react-native/chunks/chunk-UYKIV2KT.mjs +42 -0
- package/dist/react-native/chunks/chunk-VUJCSQG5.mjs +11 -0
- package/dist/react-native/chunks/chunk-WVHF4ZAK.mjs +802 -0
- package/dist/react-native/chunks/chunk-ZUJCUPVS.mjs +54 -0
- package/dist/react-native/chunks/core-leaf-S2KNBWDY.mjs +7 -0
- package/dist/react-native/chunks/custom-token-results-3OZEMRE7.mjs +59 -0
- package/dist/react-native/chunks/digest-leaf-X6OIFDIU.mjs +1 -0
- package/dist/react-native/chunks/durability-config-FCSD4MXY.mjs +96 -0
- package/dist/react-native/chunks/embed-HA2I7RCF.mjs +263 -0
- package/dist/react-native/chunks/geo-index-QEYKEVPH.mjs +1484 -0
- package/dist/react-native/chunks/gzip.react-native-CVM4NQG2.mjs +12 -0
- package/dist/react-native/chunks/module-FMBX75GP.mjs +5209 -0
- package/dist/react-native/chunks/msgpack-leaf-JMNGSTRW.mjs +7 -0
- package/dist/react-native/chunks/optional-reads-AFPO2FEB.mjs +3364 -0
- package/dist/react-native/chunks/optional-writes-XOH25XZI.mjs +296 -0
- package/dist/react-native/chunks/phrase-module-IGYBK7XH.mjs +636 -0
- package/dist/react-native/chunks/replace-IMZUVUOE.mjs +57 -0
- package/dist/react-native/chunks/resolve-vector-text-GE2CRJKI.mjs +84 -0
- package/dist/react-native/chunks/restore-queue-LLNMYB4Z.mjs +187 -0
- package/dist/react-native/chunks/runtime-UOHD2XUJ.mjs +615 -0
- package/dist/react-native/chunks/segment-codec-leaf-VR6O5GLC.mjs +13 -0
- package/dist/react-native/chunks/segment-merge-leaf-LLMWU4EW.mjs +14 -0
- package/dist/react-native/chunks/storage-leaf-JD7PIDO4.mjs +19633 -0
- package/dist/react-native/chunks/store-leaf-4UVCMYGN.mjs +15 -0
- package/dist/react-native/chunks/suggestions-leaf-J5VT5RHY.mjs +1321 -0
- package/dist/react-native/chunks/worker-copies-ZYHY7FKJ.mjs +2831 -0
- package/dist/react-native/partial-words.mjs +1658 -0
- package/dist/react-native/pattern.mjs +2570 -0
- package/dist/react-native/query-suggestions.mjs +55 -0
- package/dist/react-native/sync.mjs +2759 -0
- package/dist/react-native/synonyms.mjs +676 -0
- package/dist/react.d.ts +12 -8
- package/dist/react.mjs +45 -1
- package/dist/{rerank-NWTKK636.mjs → rerank-RI2PMNOD.mjs} +22 -12
- package/dist/rerankers/http.d.ts +1 -1
- package/dist/rerankers/http.mjs +2 -2
- package/dist/resolve-vector-text-OD4J3WHF.mjs +3 -0
- package/dist/restore-queue-PCKWDAKQ.mjs +192 -0
- package/dist/runtime-USQYKN3I.mjs +615 -0
- package/dist/{schema-4W_7tk1f.d.ts → schema-CzG9OUw5.d.ts} +70 -30
- package/dist/segment-codec-leaf-QJM7I6QG.mjs +18 -0
- package/dist/segment-merge-leaf-4BJGIJHY.mjs +18 -0
- package/dist/server.d.ts +348 -22
- package/dist/server.mjs +2211 -327
- package/dist/storage-leaf-GRRRI7UV.mjs +5962 -0
- package/dist/store-leaf-6VMMSVBE.mjs +20 -0
- package/dist/stored-values-BWIMpiT_.d.ts +25 -0
- package/dist/suggestions-leaf-4KPTMPTL.mjs +54 -0
- package/dist/sync/filesystem.d.ts +30 -0
- package/dist/sync/filesystem.mjs +288 -0
- package/dist/sync/indexeddb.browser.mjs +287 -0
- package/dist/sync/indexeddb.d.ts +30 -0
- package/dist/sync/indexeddb.mjs +242 -0
- package/dist/sync.browser.mjs +1271 -0
- package/dist/sync.d.ts +23 -0
- package/dist/sync.mjs +2712 -0
- package/dist/synonyms.browser.mjs +658 -0
- package/dist/synonyms.mjs +17 -7
- package/dist/tasks-65b6t6lk.d.ts +782 -0
- package/dist/thread-UJ3W5LVI.mjs +31 -0
- package/dist/{types-B3b68nfF.d.ts → types-Ck97nB3D.d.ts} +1 -1
- package/dist/types-CpCg-Gq-.d.ts +227 -0
- package/dist/{types-Cb9kiY5P.d.ts → types-DvncmvuQ.d.ts} +12 -1
- package/dist/vector/search-worker.d.ts +10 -2
- package/dist/vector/search-worker.mjs +11 -11
- package/dist/worker-copies-YSXZXIGC.mjs +2232 -0
- package/dist/workers/entry.mjs +75 -15
- package/openapi.json +6840 -0
- package/package.json +404 -19
- package/dist/browser/chunk-CN4I4FZU.mjs +0 -602
- package/dist/browser/chunk-HOZW3PKP.mjs +0 -9
- package/dist/browser/chunk-JPTQZWJQ.mjs +0 -10
- package/dist/browser/chunk-LD55ZGU3.mjs +0 -347
- package/dist/browser/chunk-NAFT3K6X.mjs +0 -24546
- package/dist/browser/chunk-NNG3EEB6.mjs +0 -2728
- package/dist/browser/chunk-QWES44AW.mjs +0 -473
- package/dist/browser/durability-wiring-PY3L7DES.mjs +0 -3679
- package/dist/browser/module-PDXYHT75.mjs +0 -2822
- package/dist/browser/release-76MXRPGV.mjs +0 -33
- package/dist/browser/restore-queue-DVIYJ7RU.mjs +0 -35
- package/dist/browser/snapshot-J57MZK6L.mjs +0 -1207
- package/dist/browser/write-L7FAQA47.mjs +0 -208
- package/dist/chunk-37CD3OKS.mjs +0 -87
- package/dist/chunk-5XNIRLFC.mjs +0 -96
- package/dist/chunk-7X5JST5L.mjs +0 -114
- package/dist/chunk-AV4IJKD2.mjs +0 -35
- package/dist/chunk-AY3AQ3UH.mjs +0 -73
- package/dist/chunk-BKB3XTMI.mjs +0 -707
- package/dist/chunk-C7SLA6CM.mjs +0 -19
- package/dist/chunk-COVCQ73F.mjs +0 -587
- package/dist/chunk-DJHHF2L5.mjs +0 -17
- package/dist/chunk-E74YLAIG.mjs +0 -24
- package/dist/chunk-FMWRCP2C.mjs +0 -57
- package/dist/chunk-GES7U2PM.mjs +0 -68
- package/dist/chunk-HJSN7UYG.mjs +0 -10
- package/dist/chunk-JFRNNBOM.mjs +0 -35
- package/dist/chunk-K25LZA54.mjs +0 -8484
- package/dist/chunk-KEHK2O6P.mjs +0 -13
- package/dist/chunk-KOKM4PQN.mjs +0 -52
- package/dist/chunk-KZ3NX2P7.mjs +0 -21
- package/dist/chunk-L3L5YFXC.mjs +0 -614
- package/dist/chunk-L5ORED7V.mjs +0 -25
- package/dist/chunk-LH4NZNJJ.mjs +0 -1731
- package/dist/chunk-LU2CE5AE.mjs +0 -507
- package/dist/chunk-LXWDQLTW.mjs +0 -30
- package/dist/chunk-MHOSCQCQ.mjs +0 -948
- package/dist/chunk-NKRBEGJZ.mjs +0 -1705
- package/dist/chunk-NTRMFARG.mjs +0 -462
- package/dist/chunk-NW4XDSP2.mjs +0 -212
- package/dist/chunk-OOEXLUGR.mjs +0 -117
- package/dist/chunk-ORBLD3EL.mjs +0 -6
- package/dist/chunk-OWNZYMRE.mjs +0 -3591
- package/dist/chunk-PPY2GSIB.mjs +0 -44
- package/dist/chunk-QY7GC2MW.mjs +0 -33
- package/dist/chunk-R6A773WK.mjs +0 -226
- package/dist/chunk-R6PR4WYZ.mjs +0 -68
- package/dist/chunk-R7EEKAJE.mjs +0 -593
- package/dist/chunk-RONEOEON.mjs +0 -426
- package/dist/chunk-VWULPWRJ.mjs +0 -7469
- package/dist/chunk-WCJKUGHB.mjs +0 -262
- package/dist/chunk-WQBCBKY3.mjs +0 -8
- package/dist/chunk-X5CV2E2B.mjs +0 -1
- package/dist/chunk-YA7XLE2R.mjs +0 -1256
- package/dist/chunk-YTJCGKM4.mjs +0 -56
- package/dist/chunk-ZG477IPV.mjs +0 -526
- package/dist/chunk-ZYNAMIYX.mjs +0 -113
- package/dist/config-BGB_fDtq.d.ts +0 -237
- package/dist/direct-executor-CXZ66ACP.mjs +0 -22
- package/dist/durability-wiring-QTHOGFMZ.mjs +0 -3229
- package/dist/engine-BGCEm9E_.d.ts +0 -577
- package/dist/module-3NONKBZX.mjs +0 -1860
- package/dist/release-BH3DKW3T.mjs +0 -33
- package/dist/restore-queue-JPRBUYII.mjs +0 -35
- package/dist/runtime-ZKYZFJJC.mjs +0 -177
- package/dist/snapshot-HOGXNO5W.mjs +0 -793
- package/dist/tasks-HG3rlxx6.d.ts +0 -302
- package/dist/thread-B657LQXK.mjs +0 -692
- package/dist/write-XLIGTXBU.mjs +0 -238
|
@@ -1,6 +1,50 @@
|
|
|
1
|
-
import { E as EmbeddingAdapter } from './adapters-
|
|
1
|
+
import { E as EmbeddingAdapter } from './adapters-pljAqmrC.js';
|
|
2
2
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* The BM25 parameters of one text field, which override the same parameters at
|
|
6
|
+
* the level that names the field.
|
|
7
|
+
*
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
interface BM25FieldParams {
|
|
11
|
+
/** This saturates term frequency in this field. It takes a number from 0 to 1,000. */
|
|
12
|
+
k1?: number;
|
|
13
|
+
/** This normalises by the length of this field. It takes a number from 0 to 1. */
|
|
14
|
+
b?: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* BM25 tuning for an index or for one search.
|
|
18
|
+
*
|
|
19
|
+
* Both parameters default to the values the literature settles on, so change
|
|
20
|
+
* them only once you have measured relevance on your own corpus. For each
|
|
21
|
+
* field, the engine takes the first value that is set among the search's value
|
|
22
|
+
* for the field, the search's value, the index's value for the field, the
|
|
23
|
+
* index's value, and the default.
|
|
24
|
+
*
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
interface BM25Params {
|
|
28
|
+
/**
|
|
29
|
+
* This saturates term frequency, so a higher value lets a repeated term
|
|
30
|
+
* keep raising a score. It defaults to 1.2, and any value that is not a
|
|
31
|
+
* number from 0 to 1,000 fails with `CONFIG_INVALID`.
|
|
32
|
+
*/
|
|
33
|
+
k1?: number;
|
|
34
|
+
/**
|
|
35
|
+
* This normalises by field length, from 0 for none to 1 for full. It
|
|
36
|
+
* defaults to 0.75, and any value that is not a number from 0 to 1 fails
|
|
37
|
+
* with `CONFIG_INVALID`.
|
|
38
|
+
*/
|
|
39
|
+
b?: number;
|
|
40
|
+
/**
|
|
41
|
+
* These parameters apply to the text fields that this map holds. A name that
|
|
42
|
+
* is not a text field that the schema declares fails with `CONFIG_INVALID`
|
|
43
|
+
* on an index and with `SEARCH_INVALID_FIELD` on a search.
|
|
44
|
+
*/
|
|
45
|
+
fields?: Record<string, BM25FieldParams>;
|
|
46
|
+
}
|
|
47
|
+
|
|
4
48
|
/**
|
|
5
49
|
* A document as the engine stores it: any set of fields, with an optional `id`.
|
|
6
50
|
*
|
|
@@ -142,8 +186,11 @@ interface VectorIndexConfig {
|
|
|
142
186
|
filterThreshold?: number;
|
|
143
187
|
/** These settings shape the graph: neighbours per node, build-time exploration, and the metric that ranks results. */
|
|
144
188
|
hnswConfig?: {
|
|
189
|
+
/** The graph keeps this many neighbours per node. */
|
|
145
190
|
m?: number;
|
|
191
|
+
/** The engine explores this many candidates as it builds the graph. */
|
|
146
192
|
efConstruction?: number;
|
|
193
|
+
/** This metric ranks the results. */
|
|
147
194
|
metric?: 'cosine' | 'dotProduct' | 'euclidean';
|
|
148
195
|
};
|
|
149
196
|
/** The engine codes the promoted vectors in this mode. When this is unset, it picks the mode by the field's dimension. Set `none` to rank by the vectors alone. */
|
|
@@ -190,19 +237,30 @@ interface IndexConfig {
|
|
|
190
237
|
partitions?: PartitionConfig;
|
|
191
238
|
/** A query scores this way unless it asks for another mode. */
|
|
192
239
|
defaultScoring?: ScoringMode;
|
|
193
|
-
/**
|
|
240
|
+
/**
|
|
241
|
+
* These parameters tune BM25 for this index and for each of its text fields.
|
|
242
|
+
* A search can override them with {@link QueryParams.bm25}, and
|
|
243
|
+
* {@link BM25Operations.updateBM25} replaces them on a live index.
|
|
244
|
+
*/
|
|
194
245
|
bm25?: BM25Params;
|
|
195
246
|
/** This replaces the language's stop words, either inline or by the name a stop word list registered under. */
|
|
196
247
|
stopWords?: StopWordOverride | string;
|
|
197
248
|
/** This replaces the language's tokeniser, either inline or by the name a tokeniser registered under. */
|
|
198
249
|
tokenizer?: CustomTokenizer | string;
|
|
199
250
|
/**
|
|
200
|
-
* Setting this records term positions in each posting, which
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
*
|
|
251
|
+
* Setting this records term positions in each posting, which phrase search
|
|
252
|
+
* compares. An index that opts out stores less, and the engine refuses a
|
|
253
|
+
* phrase on it with `SEARCH_INVALID_PHRASE`. Highlighting works either way,
|
|
254
|
+
* because the engine's highlighter analyses the stored text again.
|
|
204
255
|
*/
|
|
205
256
|
trackPositions?: boolean;
|
|
257
|
+
/**
|
|
258
|
+
* Setting this to `'disk'` lets the index answer from segment files that the
|
|
259
|
+
* engine reads by position, so its keyword index and documents can outgrow
|
|
260
|
+
* the node's memory once a checkpoint covers them. The default is `'memory'`,
|
|
261
|
+
* and `'disk'` raises `CONFIG_INVALID` without filesystem durability.
|
|
262
|
+
*/
|
|
263
|
+
textStorage?: 'memory' | 'disk';
|
|
206
264
|
/** These settings control when vector fields move to an HNSW graph, and how that graph is built. */
|
|
207
265
|
vectorPromotion?: VectorIndexConfig;
|
|
208
266
|
/**
|
|
@@ -244,28 +302,6 @@ interface IndexConfig {
|
|
|
244
302
|
*/
|
|
245
303
|
synonyms?: SynonymRule[];
|
|
246
304
|
}
|
|
247
|
-
/**
|
|
248
|
-
* BM25 tuning for an index.
|
|
249
|
-
*
|
|
250
|
-
* Both parameters default to the values the literature settles on, so change
|
|
251
|
-
* them only once you have measured relevance on your own corpus.
|
|
252
|
-
*
|
|
253
|
-
* @public
|
|
254
|
-
*/
|
|
255
|
-
interface BM25Params {
|
|
256
|
-
/**
|
|
257
|
-
* This saturates term frequency, so a higher value lets a repeated term
|
|
258
|
-
* keep raising a score. It defaults to 1.2, and it must be a finite number
|
|
259
|
-
* at or above 0 or index creation fails with `CONFIG_INVALID`.
|
|
260
|
-
*/
|
|
261
|
-
k1?: number;
|
|
262
|
-
/**
|
|
263
|
-
* This normalises by field length, from 0 for none to 1 for full. It
|
|
264
|
-
* defaults to 0.75, and it must lie between 0 and 1 or index creation
|
|
265
|
-
* fails with `CONFIG_INVALID`.
|
|
266
|
-
*/
|
|
267
|
-
b?: number;
|
|
268
|
-
}
|
|
269
305
|
/**
|
|
270
306
|
* A tokeniser you supply, which replaces the language module's own.
|
|
271
307
|
*
|
|
@@ -281,7 +317,11 @@ interface CustomTokenizer {
|
|
|
281
317
|
* @param text - The raw field value, before any stemming or stop word removal.
|
|
282
318
|
* @returns Each token with its ordinal position in the field, which the
|
|
283
319
|
* engine writes into postings when `trackPositions` is on, and which a
|
|
284
|
-
* prefix query reads to find the last typed word.
|
|
320
|
+
* prefix query reads to find the last typed word. Each token must be a
|
|
321
|
+
* string and each position a whole number from 0 to 4,294,967,295. The
|
|
322
|
+
* engine refuses any other result, with `DOC_VALIDATION_FAILED` for a
|
|
323
|
+
* document, which it then stores nothing from, and with `CONFIG_INVALID`
|
|
324
|
+
* for a query.
|
|
285
325
|
*/
|
|
286
326
|
tokenize(text: string): Array<{
|
|
287
327
|
token: string;
|
|
@@ -356,4 +396,4 @@ interface InsertOptions extends WriteOptions {
|
|
|
356
396
|
skipClone?: boolean;
|
|
357
397
|
}
|
|
358
398
|
|
|
359
|
-
export type { AnyDocument as A, BM25Params as B, CustomTokenizer as C, EmbeddingFieldConfig as E,
|
|
399
|
+
export type { AnyDocument as A, BM25Params as B, CustomTokenizer as C, EmbeddingFieldConfig as E, FieldType as F, IndexConfig as I, PartitionConfig as P, SchemaDefinition as S, TextFieldOption as T, VectorIndexConfig as V, WriteOptions as W, InsertOptions as a, VectorQuantizationMode as b, BM25FieldParams as c, ScoringMode as d, StopWordOverride as e, FieldOptionChain as f, VectorStorageMode as g };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, rewriteSpillOf, textRebuildTargetOf } from './chunk-MFPSQZ6P.mjs';
|
|
2
|
+
export { bindSegmentCodecHost, createEncodedDocumentSource, createSharedFrozenSegment, decodeEveryStoredDocument, decodeMapWithoutFields, decodeStoredDocument, encodeDocumentTableData, endOfValue, reconstructSchemaFromMetadata, storedDocumentsOf, topLevelMapKeys } from './chunk-BY6NALRK.mjs';
|
|
3
|
+
import './chunk-2CKDCC65.mjs';
|
|
4
|
+
import './chunk-2AFZE7Y3.mjs';
|
|
5
|
+
import './chunk-GXCDWLQI.mjs';
|
|
6
|
+
import './chunk-BUMREPLU.mjs';
|
|
7
|
+
import './chunk-7T4LAYT4.mjs';
|
|
8
|
+
import './chunk-IL5DRCNU.mjs';
|
|
9
|
+
import './chunk-7P5YWDRQ.mjs';
|
|
10
|
+
import './chunk-U2BKYEC7.mjs';
|
|
11
|
+
import './chunk-FJXJZUWF.mjs';
|
|
12
|
+
import './chunk-5EI5CXO6.mjs';
|
|
13
|
+
import './chunk-3ECIRFS5.mjs';
|
|
14
|
+
import './chunk-ASZLNVWW.mjs';
|
|
15
|
+
import './chunk-ZXX5GZEX.mjs';
|
|
16
|
+
import './chunk-4PY4JYMY.mjs';
|
|
17
|
+
import './chunk-ZKOQR7EA.mjs';
|
|
18
|
+
import './chunk-TGPKS2UM.mjs';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { deserializePartition, serializePartition } from './chunk-FS3HPPSC.mjs';
|
|
2
|
+
export { alreadyPresentOnWorker, bindSegmentMergeHost, buildSegmentPayloads, createRequestId, eligibleIndexNames, fieldIndexRemapOf, freezeEncodedSegmentShared, freezeSegmentShared, holdsADiscardedField, isDeterministicFailure, isValidWorkerResponse, mergeFieldIndexes, mergePostings, mergeSegmentContents, mergeSourceSpellings, mergeSourceSurfaces, mergedPartialSpellings, reportIneligible, segmentArraysOf, selectionKeeps, shareSegmentArrays, toError, workerIneligibility } from './chunk-BY6NALRK.mjs';
|
|
3
|
+
import './chunk-2CKDCC65.mjs';
|
|
4
|
+
import './chunk-2AFZE7Y3.mjs';
|
|
5
|
+
import './chunk-GXCDWLQI.mjs';
|
|
6
|
+
import './chunk-BUMREPLU.mjs';
|
|
7
|
+
import './chunk-7T4LAYT4.mjs';
|
|
8
|
+
import './chunk-IL5DRCNU.mjs';
|
|
9
|
+
import './chunk-7P5YWDRQ.mjs';
|
|
10
|
+
import './chunk-U2BKYEC7.mjs';
|
|
11
|
+
import './chunk-FJXJZUWF.mjs';
|
|
12
|
+
import './chunk-5EI5CXO6.mjs';
|
|
13
|
+
import './chunk-3ECIRFS5.mjs';
|
|
14
|
+
import './chunk-ASZLNVWW.mjs';
|
|
15
|
+
import './chunk-ZXX5GZEX.mjs';
|
|
16
|
+
import './chunk-4PY4JYMY.mjs';
|
|
17
|
+
import './chunk-ZKOQR7EA.mjs';
|
|
18
|
+
import './chunk-TGPKS2UM.mjs';
|
package/dist/server.d.ts
CHANGED
|
@@ -1,16 +1,330 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { d as
|
|
6
|
-
export {
|
|
7
|
-
import './
|
|
8
|
-
import './
|
|
1
|
+
import { G as GroupResult, H as Hit, Q as QueryParams, v as GroupConfig, t as QueryResult, p as SyncSetting, g as ChangesSetting, L as ListParams, w as SuggestParams, x as IndexStats, y as ListResult, z as PreflightResult, A as SuggestResult, q as SyncStatus, h as ChangesStatus, s as Narsil } from './engine-qjAxJSKk.js';
|
|
2
|
+
export { j as ClientErrorCode, k as ClientErrorCodes, E as ErrorCode, l as ErrorCodes, N as NarsilError, m as NarsilErrorCode, S as ServerErrorCode, n as ServerErrorCodes, r as isNarsilError } from './engine-qjAxJSKk.js';
|
|
3
|
+
import { E as ErrorEnvelope, c as ServerOptions, N as NarsilServer } from './capabilities-DMte5K9_.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, Q as QueryIdentity, R as REBUILD_ANALYSIS_CAPABILITY, e as RequestContext, f as RequestDenial, g as RequestGrant, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, h as ServerChangesOptions, i as ServerLimits, j as ServerQuerySuggestionsOptions, k as ServerSyncOptions, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-DMte5K9_.js';
|
|
5
|
+
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-65b6t6lk.js';
|
|
6
|
+
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-65b6t6lk.js';
|
|
7
|
+
import { d as QuerySuggestionsSetting, M as ManualQuerySuggestion, e as QuerySuggestionsStatus, f as RecordQueryResult, c as QuerySuggestionsPreview, a as QuerySuggestionsBuild } from './query-suggestions-CBYkrQ5T.js';
|
|
8
|
+
import { c as ClusterHealth } from './config-Bnl7L-0H.js';
|
|
9
|
+
import { S as SchemaDefinition, P as PartitionConfig, V as VectorIndexConfig, B as BM25Params, F as FieldType } from './schema-CzG9OUw5.js';
|
|
10
|
+
import './adapters-pljAqmrC.js';
|
|
9
11
|
import './synonyms-CpOAHPa-.js';
|
|
10
|
-
import './
|
|
11
|
-
import './config-
|
|
12
|
-
import './
|
|
13
|
-
|
|
12
|
+
import './index-B_vmxpgW.js';
|
|
13
|
+
import './config-CJ-jfI0a.js';
|
|
14
|
+
import './types-DvncmvuQ.js';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The body of `POST /indexes/{name}/query-suggestions/record`. The server
|
|
18
|
+
* takes the person and the group from its `identify` function, so the body
|
|
19
|
+
* carries the search alone.
|
|
20
|
+
*
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
interface RecordQueryBody {
|
|
24
|
+
/** The search that the person followed with a click. */
|
|
25
|
+
query: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* The query string of `GET /indexes/{name}/query-suggestions/preview`.
|
|
29
|
+
*
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
interface QuerySuggestionsPreviewQuery {
|
|
33
|
+
/** The most phrases to list, from 1 to 1,000, and 100 by default. */
|
|
34
|
+
limit?: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The body of `GET` and of `PUT /indexes/{name}/query-suggestions/bans`.
|
|
38
|
+
*
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
41
|
+
interface QueryBansBody {
|
|
42
|
+
/** The banned phrases, at most 1,000, which the engine normalises. */
|
|
43
|
+
bans: string[];
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The body of `POST /indexes/{name}/query-suggestions/remove`.
|
|
47
|
+
*
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
interface RemoveQueryBody {
|
|
51
|
+
/** The phrase to ban and to remove from every suggestions index of the index. */
|
|
52
|
+
query: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The answer of `POST /indexes/{name}/query-suggestions/remove`.
|
|
56
|
+
*
|
|
57
|
+
* @public
|
|
58
|
+
*/
|
|
59
|
+
interface RemoveQueryResponse {
|
|
60
|
+
/** The number of suggestions indexes that held the phrase. */
|
|
61
|
+
suggestionIndexes: number;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The answer of `POST /indexes/{name}/query-suggestions/manual`.
|
|
65
|
+
*
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
interface ManualSuggestionResponse {
|
|
69
|
+
/** The suggestions index that holds the phrase. */
|
|
70
|
+
indexName: string;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The query string of `GET /indexes/{name}/snapshot`.
|
|
74
|
+
*
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
interface SnapshotQuery {
|
|
78
|
+
/** Under `true`, the archive also holds the index's search history. */
|
|
79
|
+
queryHistory?: 'true' | 'false';
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Everything `POST /indexes/{name}/search` accepts, which is {@link QueryParams}
|
|
84
|
+
* with a `group` that holds no reducer, because a function cannot cross JSON.
|
|
85
|
+
*
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
type HttpQueryParams = Omit<QueryParams, 'group'> & {
|
|
89
|
+
/** These settings collapse the hits into groups by field value. */
|
|
90
|
+
group?: Omit<GroupConfig, 'reduce'>;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* One group of hits as the server sends it, which is {@link GroupResult} with
|
|
94
|
+
* no reducer output, because the server refuses a query with a reducer.
|
|
95
|
+
*
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
type HttpGroupResult = Omit<GroupResult, 'hits' | 'reduced' | 'reducerError'> & {
|
|
99
|
+
/** These hits retain the scores of the group's ranking. */
|
|
100
|
+
hits: HttpHit[];
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* A relevance score in an HTTP response, with exact strings for non-finite values.
|
|
104
|
+
*
|
|
105
|
+
* @public
|
|
106
|
+
*/
|
|
107
|
+
type HttpScore = number | 'NaN' | 'Infinity' | '-Infinity';
|
|
108
|
+
/**
|
|
109
|
+
* A search hit whose score uses the HTTP representation of {@link HttpScore}.
|
|
110
|
+
*
|
|
111
|
+
* @public
|
|
112
|
+
*/
|
|
113
|
+
type HttpHit = Omit<Hit, 'score'> & {
|
|
114
|
+
/** The client decodes this value to a numeric score, or leaves it absent when the search returns no score. */
|
|
115
|
+
score?: HttpScore;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* The body of `POST /indexes/{name}/search`.
|
|
119
|
+
*
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
type HttpQueryResult = Omit<QueryResult, 'hits' | 'groups'> & {
|
|
123
|
+
/** These hits follow the search's ranking, with scores encoded for HTTP. */
|
|
124
|
+
hits: HttpHit[];
|
|
125
|
+
/** These groups arrive when the query asked for grouping. */
|
|
126
|
+
groups?: HttpGroupResult[];
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* The settings of a new index as `POST /indexes` reads them, which is
|
|
130
|
+
* {@link HttpIndexConfig} with each field type spelled out.
|
|
131
|
+
*
|
|
132
|
+
* @public
|
|
133
|
+
*/
|
|
134
|
+
type HttpIndexBody = Omit<HttpIndexConfig, 'schema' | 'partitions' | 'vectorPromotion'> & {
|
|
135
|
+
/** This layout gives each value as either a field type or a nested schema. */
|
|
136
|
+
schema: SchemaDefinition;
|
|
137
|
+
/** These settings control how the index splits documents across partitions as it grows. */
|
|
138
|
+
partitions?: PartitionConfig;
|
|
139
|
+
/** These settings control when vector fields move to an HNSW graph, and how that graph is built. */
|
|
140
|
+
vectorPromotion?: VectorIndexConfig;
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* The body of `POST /indexes`, which is {@link CreateIndexRequest} with the
|
|
144
|
+
* settings of {@link HttpIndexBody}.
|
|
145
|
+
*
|
|
146
|
+
* @public
|
|
147
|
+
*/
|
|
148
|
+
type HttpCreateIndexBody = Omit<CreateIndexRequest, 'config'> & {
|
|
149
|
+
/** This carries the schema and settings, in the subset JSON can express. */
|
|
150
|
+
config: HttpIndexBody;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* The query string of `DELETE /indexes/{name}/documents/{id}`.
|
|
154
|
+
*
|
|
155
|
+
* @public
|
|
156
|
+
*/
|
|
157
|
+
interface RemoveDocumentQuery {
|
|
158
|
+
/** Under `true`, the server answers only once every worker copy has applied the removal. */
|
|
159
|
+
wait?: 'true' | 'false';
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* The query string of `POST /indexes/{name}/documents/_import`.
|
|
163
|
+
*
|
|
164
|
+
* @public
|
|
165
|
+
*/
|
|
166
|
+
interface ImportDocumentsQuery {
|
|
167
|
+
/** Under `true`, the server starts a task and answers 202 with its record. */
|
|
168
|
+
async?: 'true' | 'false';
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Every named type that a route of the HTTP server sends or takes as JSON,
|
|
172
|
+
* under the name that the published OpenAPI file gives its schema.
|
|
173
|
+
*
|
|
174
|
+
* @public
|
|
175
|
+
*/
|
|
176
|
+
interface HttpWireTypes {
|
|
177
|
+
/** The body of `POST /indexes/{name}/documents/_batch`, which gives the action to perform. */
|
|
178
|
+
BatchBody: BatchBody;
|
|
179
|
+
/** The body of `POST /indexes/{name}/bm25`. */
|
|
180
|
+
BM25Params: BM25Params;
|
|
181
|
+
/** The body of `PUT /indexes/{name}/sync`. */
|
|
182
|
+
SyncSetting: SyncSetting;
|
|
183
|
+
/** The body of `PUT /indexes/{name}/changes`. */
|
|
184
|
+
ChangesSetting: ChangesSetting;
|
|
185
|
+
/** The body of `POST /indexes/{name}/_change-analysis`. */
|
|
186
|
+
ChangeAnalysisBody: ChangeAnalysisBody;
|
|
187
|
+
/** The body of `POST /indexes/{name}/backups`. */
|
|
188
|
+
CreateBackupBody: CreateBackupBody;
|
|
189
|
+
/** The body of `POST /indexes`. */
|
|
190
|
+
HttpCreateIndexBody: HttpCreateIndexBody;
|
|
191
|
+
/** The body of a request that writes one document with a known id. */
|
|
192
|
+
DocumentBody: DocumentBody;
|
|
193
|
+
/** Every value that a field of an index schema accepts. */
|
|
194
|
+
FieldType: FieldType;
|
|
195
|
+
/** The query string of `POST /indexes/{name}/documents/_import`. */
|
|
196
|
+
ImportDocumentsQuery: ImportDocumentsQuery;
|
|
197
|
+
/** The body of `POST /indexes/{name}/documents`. */
|
|
198
|
+
InsertBody: InsertBody;
|
|
199
|
+
/** The body of `POST /indexes/{name}/documents/_list`. */
|
|
200
|
+
ListParams: ListParams;
|
|
201
|
+
/** The body of `POST /indexes/{name}/documents/_multi-get`. */
|
|
202
|
+
MultiGetBody: MultiGetBody;
|
|
203
|
+
/** The body of `POST /indexes/{name}/partition-config`. */
|
|
204
|
+
PartitionConfig: PartitionConfig;
|
|
205
|
+
/** The body of `POST /indexes/{name}/search` and of `POST /indexes/{name}/search/preflight`. */
|
|
206
|
+
HttpQueryParams: HttpQueryParams;
|
|
207
|
+
/** The body of `POST /indexes/{name}/_rebalance`. */
|
|
208
|
+
RebalanceBody: RebalanceBody;
|
|
209
|
+
/** The query string of `DELETE /indexes/{name}/documents/{id}`. */
|
|
210
|
+
RemoveDocumentQuery: RemoveDocumentQuery;
|
|
211
|
+
/** The body of `PUT /indexes/{name}/replication-factor`. */
|
|
212
|
+
ReplicationFactorBody: ReplicationFactorBody;
|
|
213
|
+
/** The body of `POST /backups/{backup}/_restore`. */
|
|
214
|
+
RestoreBackupBody: RestoreBackupBody;
|
|
215
|
+
/** The body of `POST /indexes/{name}/suggest`. */
|
|
216
|
+
SuggestParams: SuggestParams;
|
|
217
|
+
/** The query string of `GET /tasks`. */
|
|
218
|
+
TaskListQuery: TaskListQuery;
|
|
219
|
+
/** The body of `POST /indexes/{name}/vectors/_compact` and of `POST /indexes/{name}/vectors/_optimize`. */
|
|
220
|
+
VectorFieldBody: VectorFieldBody;
|
|
221
|
+
/** The body of `GET` and of `POST /indexes/{name}/synonyms`. */
|
|
222
|
+
SynonymSetBody: SynonymSetBody;
|
|
223
|
+
/** The body of `PUT /indexes/{name}/query-suggestions`. */
|
|
224
|
+
QuerySuggestionsSetting: QuerySuggestionsSetting;
|
|
225
|
+
/** The body of `POST /indexes/{name}/query-suggestions/record`. */
|
|
226
|
+
RecordQueryBody: RecordQueryBody;
|
|
227
|
+
/** The query string of `GET /indexes/{name}/query-suggestions/preview`. */
|
|
228
|
+
QuerySuggestionsPreviewQuery: QuerySuggestionsPreviewQuery;
|
|
229
|
+
/** The body of `GET` and of `PUT /indexes/{name}/query-suggestions/bans`. */
|
|
230
|
+
QueryBansBody: QueryBansBody;
|
|
231
|
+
/** The body of `POST /indexes/{name}/query-suggestions/remove`. */
|
|
232
|
+
RemoveQueryBody: RemoveQueryBody;
|
|
233
|
+
/** The body of `POST /indexes/{name}/query-suggestions/manual`. */
|
|
234
|
+
ManualQuerySuggestion: ManualQuerySuggestion;
|
|
235
|
+
/** The query string of `GET /indexes/{name}/snapshot`. */
|
|
236
|
+
SnapshotQuery: SnapshotQuery;
|
|
237
|
+
/** The body of `GET /indexes/{name}/query-suggestions`. */
|
|
238
|
+
QuerySuggestionsStatus: QuerySuggestionsStatus;
|
|
239
|
+
/** The body of `POST /indexes/{name}/query-suggestions/record`. */
|
|
240
|
+
RecordQueryResult: RecordQueryResult;
|
|
241
|
+
/** The body of `GET /indexes/{name}/query-suggestions/preview`. */
|
|
242
|
+
QuerySuggestionsPreview: QuerySuggestionsPreview;
|
|
243
|
+
/** The body of `POST /indexes/{name}/query-suggestions/remove`. */
|
|
244
|
+
RemoveQueryResponse: RemoveQueryResponse;
|
|
245
|
+
/** The body of `POST /indexes/{name}/query-suggestions/manual`. */
|
|
246
|
+
ManualSuggestionResponse: ManualSuggestionResponse;
|
|
247
|
+
/** The body of `GET /backups`. */
|
|
248
|
+
BackupListResponse: BackupListResponse;
|
|
249
|
+
/** The body of `POST /indexes/{name}/documents/_batch`. */
|
|
250
|
+
BatchResponse: BatchResponse;
|
|
251
|
+
/** The body of `GET /capabilities`. */
|
|
252
|
+
CapabilitiesResponse: CapabilitiesResponse;
|
|
253
|
+
/** The body of `GET /indexes/{name}/cluster`. */
|
|
254
|
+
ClusterAllocationResponse: ClusterAllocationResponse;
|
|
255
|
+
/** The body of `GET /cluster/health`. */
|
|
256
|
+
ClusterHealth: ClusterHealth;
|
|
257
|
+
/** The body of `GET /cluster`. */
|
|
258
|
+
ClusterTopologyResponse: ClusterTopologyResponse;
|
|
259
|
+
/** The body of `GET /indexes/{name}/count`. */
|
|
260
|
+
DocumentCountResponse: DocumentCountResponse;
|
|
261
|
+
/** The body of `GET /indexes/{name}/documents/{id}/_exists`. */
|
|
262
|
+
DocumentExistsResponse: DocumentExistsResponse;
|
|
263
|
+
/** The body of `POST /indexes/{name}/documents` and of `PATCH /indexes/{name}/documents/{id}`. */
|
|
264
|
+
DocumentIdResponse: DocumentIdResponse;
|
|
265
|
+
/** The body of `PUT /indexes/{name}/documents/{id}`. */
|
|
266
|
+
DocumentPutResponse: DocumentPutResponse;
|
|
267
|
+
/** The body of `DELETE /indexes/{name}/documents/{id}`. */
|
|
268
|
+
DocumentRemovedResponse: DocumentRemovedResponse;
|
|
269
|
+
/** The body of `GET /indexes/{name}/documents/{id}`. */
|
|
270
|
+
DocumentResponse: DocumentResponse;
|
|
271
|
+
/** The body of every failed response. */
|
|
272
|
+
ErrorEnvelope: ErrorEnvelope;
|
|
273
|
+
/** The body of `POST /indexes/{name}/search`. */
|
|
274
|
+
HttpQueryResult: HttpQueryResult;
|
|
275
|
+
/** The body of `POST /indexes/{name}/documents/_import` when the server finishes the import inside the request. */
|
|
276
|
+
ImportResult: ImportResult;
|
|
277
|
+
/** The body of `POST /indexes/{name}/_clear`. */
|
|
278
|
+
IndexClearedResponse: IndexClearedResponse;
|
|
279
|
+
/** The body of `POST /indexes`. */
|
|
280
|
+
IndexCreatedResponse: IndexCreatedResponse;
|
|
281
|
+
/** The body of `DELETE /indexes/{name}`. */
|
|
282
|
+
IndexDroppedResponse: IndexDroppedResponse;
|
|
283
|
+
/** The body of `GET /indexes`. */
|
|
284
|
+
IndexListResponse: IndexListResponse;
|
|
285
|
+
/** The body of `GET /indexes/{name}/partitions`. */
|
|
286
|
+
IndexPartitionsResponse: IndexPartitionsResponse;
|
|
287
|
+
/** The body of `POST /indexes/{name}/_open` and of `POST /indexes/{name}/_close`. */
|
|
288
|
+
IndexStateResponse: IndexStateResponse;
|
|
289
|
+
/** The body of `GET /indexes/{name}/stats`. */
|
|
290
|
+
IndexStats: IndexStats;
|
|
291
|
+
/** The body of `GET /livez`. */
|
|
292
|
+
LivenessResponse: LivenessResponse;
|
|
293
|
+
/** The body of `POST /indexes/{name}/documents/_list`. */
|
|
294
|
+
ListResult: ListResult;
|
|
295
|
+
/** The body of `GET /stats/memory`. */
|
|
296
|
+
MemoryStatsResponse: MemoryStatsResponse;
|
|
297
|
+
/** The body of `POST /indexes/{name}/documents/_multi-get`. */
|
|
298
|
+
MultiGetResponse: MultiGetResponse;
|
|
299
|
+
/** The body of a request that the server finishes with nothing further to report. */
|
|
300
|
+
OkResponse: OkResponse;
|
|
301
|
+
/** The body of `POST /indexes/{name}/search/preflight`. */
|
|
302
|
+
PreflightResult: PreflightResult;
|
|
303
|
+
/** The body of `GET /readyz` and of `GET /health`. */
|
|
304
|
+
ReadinessResponse: ReadinessResponse;
|
|
305
|
+
/** The body of `PUT /indexes/{name}/replication-factor`. */
|
|
306
|
+
ReplicationFactorResponse: ReplicationFactorResponse;
|
|
307
|
+
/** The body of `POST /indexes/{name}/suggest`. */
|
|
308
|
+
SuggestResult: SuggestResult;
|
|
309
|
+
/** The body of `GET /indexes/{name}/sync`. */
|
|
310
|
+
SyncStatus: SyncStatus;
|
|
311
|
+
/** The body of `GET /indexes/{name}/changes`. */
|
|
312
|
+
ChangesStatus: ChangesStatus;
|
|
313
|
+
/** The body of `GET /tasks`. */
|
|
314
|
+
TaskListPage: TaskListPage;
|
|
315
|
+
/** The body of every route that starts a task, and of `GET /tasks/{id}`. */
|
|
316
|
+
TaskRecord: TaskRecord;
|
|
317
|
+
/** The body of `GET /indexes/{name}/vector-maintenance`. */
|
|
318
|
+
VectorMaintenanceResponse: VectorMaintenanceResponse;
|
|
319
|
+
/** The body of `GET /version`. */
|
|
320
|
+
VersionResponse: VersionResponse;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* The name of one schema in the published OpenAPI file.
|
|
324
|
+
*
|
|
325
|
+
* @public
|
|
326
|
+
*/
|
|
327
|
+
type HttpWireTypeName = keyof HttpWireTypes;
|
|
14
328
|
|
|
15
329
|
/**
|
|
16
330
|
* What a running task reports back while it works, and how it learns that a
|
|
@@ -27,12 +341,24 @@ interface TaskContext {
|
|
|
27
341
|
* @param progress - The counters as they stand now.
|
|
28
342
|
*/
|
|
29
343
|
reportProgress(progress: TaskProgress): void;
|
|
344
|
+
/**
|
|
345
|
+
* Records how many of its steps the work has finished, which `GET /tasks/{id}` then reports.
|
|
346
|
+
*
|
|
347
|
+
* @param steps - The steps finished and the steps in total.
|
|
348
|
+
*/
|
|
349
|
+
reportSteps(steps: TaskStepProgress): void;
|
|
30
350
|
/**
|
|
31
351
|
* Records what the work produced, which the finished task then carries.
|
|
32
352
|
*
|
|
33
353
|
* @param result - What the work produced.
|
|
34
354
|
*/
|
|
35
355
|
reportResult(result: ImportResult): void;
|
|
356
|
+
/**
|
|
357
|
+
* Records the build that a `querySuggestionsBuild` task ran, which the finished task then carries.
|
|
358
|
+
*
|
|
359
|
+
* @param build - The build once it ends.
|
|
360
|
+
*/
|
|
361
|
+
reportBuild(build: QuerySuggestionsBuild): void;
|
|
36
362
|
}
|
|
37
363
|
/**
|
|
38
364
|
* The work one task runs.
|
|
@@ -45,6 +371,15 @@ interface TaskContext {
|
|
|
45
371
|
*/
|
|
46
372
|
type TaskOperation = (ctx: TaskContext) => Promise<void>;
|
|
47
373
|
|
|
374
|
+
/** Maps a {@link NarsilError} code to an HTTP status. Unknown or cluster-only
|
|
375
|
+
* codes fall through to 500 so an internal fault never leaks as a client error.
|
|
376
|
+
*
|
|
377
|
+
* @param code - The code a {@link NarsilError} carried.
|
|
378
|
+
* @returns The status the server answers with.
|
|
379
|
+
*
|
|
380
|
+
* @public */
|
|
381
|
+
declare function httpStatusForNarsilError(code: string): number;
|
|
382
|
+
|
|
48
383
|
/**
|
|
49
384
|
* Wraps a Narsil engine in an HTTP server. The caller builds and owns the engine
|
|
50
385
|
* (durability, embedding, workers) and hands the live instance in; the server
|
|
@@ -68,15 +403,6 @@ type TaskOperation = (ctx: TaskContext) => Promise<void>;
|
|
|
68
403
|
*/
|
|
69
404
|
declare function createServer(engine: Narsil, options?: ServerOptions): NarsilServer;
|
|
70
405
|
|
|
71
|
-
/** Maps a {@link NarsilError} code to an HTTP status. Unknown or cluster-only
|
|
72
|
-
* codes fall through to 500 so an internal fault never leaks as a client error.
|
|
73
|
-
*
|
|
74
|
-
* @param code - The code a {@link NarsilError} carried.
|
|
75
|
-
* @returns The status the server answers with.
|
|
76
|
-
*
|
|
77
|
-
* @public */
|
|
78
|
-
declare function httpStatusForNarsilError(code: string): number;
|
|
79
|
-
|
|
80
406
|
/**
|
|
81
407
|
* Default {@link TaskStore}: an in-process map, lost on restart and not shared
|
|
82
408
|
* across instances. It caps how many records it keeps and evicts the oldest
|
|
@@ -125,4 +451,4 @@ declare class InMemoryTaskStore implements TaskStore {
|
|
|
125
451
|
private prune;
|
|
126
452
|
}
|
|
127
453
|
|
|
128
|
-
export { ImportResult, InMemoryTaskStore, NarsilServer, ServerOptions, type TaskContext, type TaskOperation, TaskProgress, TaskRecord, TaskStore, createServer, httpStatusForNarsilError };
|
|
454
|
+
export { BackupListResponse, BatchBody, BatchResponse, CapabilitiesResponse, ClusterAllocationResponse, ClusterTopologyResponse, CreateBackupBody, CreateIndexRequest, DocumentBody, DocumentCountResponse, DocumentExistsResponse, DocumentIdResponse, DocumentPutResponse, DocumentRemovedResponse, DocumentResponse, ErrorEnvelope, type HttpCreateIndexBody, type HttpGroupResult, type HttpHit, type HttpIndexBody, HttpIndexConfig, type HttpQueryParams, type HttpQueryResult, type HttpScore, type HttpWireTypeName, type HttpWireTypes, type ImportDocumentsQuery, ImportResult, InMemoryTaskStore, IndexClearedResponse, IndexCreatedResponse, IndexDroppedResponse, IndexListResponse, IndexPartitionsResponse, IndexStateResponse, InsertBody, LivenessResponse, type ManualSuggestionResponse, MemoryStatsResponse, MultiGetBody, MultiGetResponse, NarsilServer, OkResponse, type QueryBansBody, type QuerySuggestionsPreviewQuery, ReadinessResponse, RebalanceBody, type RecordQueryBody, type RemoveDocumentQuery, type RemoveQueryBody, type RemoveQueryResponse, ReplicationFactorBody, ReplicationFactorResponse, RestoreBackupBody, ServerOptions, type SnapshotQuery, SynonymSetBody, type TaskContext, TaskListPage, TaskListQuery, type TaskOperation, TaskProgress, TaskRecord, TaskStepProgress, TaskStore, VectorFieldBody, VectorMaintenanceResponse, VersionResponse, createServer, httpStatusForNarsilError };
|