@delali/narsil 0.3.1-next.154 → 0.3.1-next.156
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 +1 -0
- package/dist/adapters/filesystem.mjs +2 -2
- package/dist/adapters/gcs.mjs +2 -2
- package/dist/adapters/indexeddb.mjs +1 -1
- package/dist/adapters/s3.mjs +2 -2
- package/dist/{analysis-change-4GCRVRBW.mjs → analysis-change-5BQOQ4BF.mjs} +35 -28
- package/dist/{react-native/chunks/analysis-change-entry-TNLUC6IZ.mjs → analysis-change-entry-TXX6JSMX.mjs} +1 -1
- package/dist/archive-history-E4R73RWD.mjs +29 -0
- package/dist/browser/{analysis-change-IXWPXXJJ.mjs → analysis-change-435CUEPZ.mjs} +32 -12
- package/dist/{analysis-change-entry-KYGSXW4K.mjs → browser/analysis-change-entry-HZXKPPGV.mjs} +1 -1
- package/dist/browser/archive-history-4IP5XQZY.mjs +29 -0
- package/dist/browser/{chunk-4PD752F6.mjs → chunk-23XRXIBW.mjs} +1 -1
- package/dist/browser/{chunk-J433A7P3.mjs → chunk-2CFI5VVV.mjs} +5 -5
- package/dist/{react-native/chunks/chunk-3XKMRNRE.mjs → browser/chunk-2TI4SSUP.mjs} +27 -10
- package/dist/browser/chunk-3SSRJMFN.mjs +100 -0
- package/dist/browser/{chunk-2SHAKW2Z.mjs → chunk-3V7DNNZL.mjs} +515 -733
- package/dist/browser/{chunk-C4KS2QNF.mjs → chunk-4NGKC4H4.mjs} +9 -9
- package/dist/browser/{chunk-XRV72TJD.mjs → chunk-6LWDPLTB.mjs} +2 -2
- package/dist/browser/chunk-7IGKGWSQ.mjs +79 -0
- package/dist/browser/{chunk-VCOYGVP7.mjs → chunk-7U3WVJUP.mjs} +3 -3
- package/dist/browser/chunk-ATEBYXP6.mjs +10 -0
- package/dist/browser/chunk-BHFQATSC.mjs +432 -0
- package/dist/browser/chunk-CRE3G7F3.mjs +1007 -0
- package/dist/browser/{chunk-QXTPSX2H.mjs → chunk-EA63E3D2.mjs} +7 -7
- package/dist/{react-native/chunks/chunk-DCKMICOB.mjs → browser/chunk-EXQZGUQH.mjs} +1 -1
- package/dist/browser/{chunk-ML6HY7T7.mjs → chunk-G64Q6OJF.mjs} +1 -1
- package/dist/browser/chunk-GPPOG6PT.mjs +9 -0
- package/dist/browser/{chunk-EUNBNLKM.mjs → chunk-IZXVW2ZJ.mjs} +5 -5
- package/dist/browser/{chunk-G7LUMBSG.mjs → chunk-K4Q6KX3R.mjs} +30 -20
- package/dist/browser/{chunk-H6QFBMVE.mjs → chunk-KZWSX6BH.mjs} +3 -3
- package/dist/browser/chunk-M3MQE2X7.mjs +151 -0
- package/dist/browser/chunk-MGI4BCXC.mjs +63 -0
- package/dist/browser/chunk-MOG4OVDK.mjs +51 -0
- package/dist/browser/{chunk-W5X2UFWQ.mjs → chunk-NLWTBAGB.mjs} +12 -3
- package/dist/browser/{chunk-AYY6PIKL.mjs → chunk-NQAME3RK.mjs} +2 -2
- package/dist/browser/{chunk-7MEYN7V6.mjs → chunk-NXQG7DRA.mjs} +29 -14
- package/dist/browser/chunk-OEDCEZXJ.mjs +92 -0
- package/dist/{chunk-KUZKUONM.mjs → browser/chunk-SRMZXJSL.mjs} +1 -0
- package/dist/browser/chunk-SSTPBZZX.mjs +1106 -0
- package/dist/browser/{chunk-7TTWXUH6.mjs → chunk-STOWQFT3.mjs} +3 -2
- package/dist/browser/{chunk-26A5JFT2.mjs → chunk-TK63WFXK.mjs} +2 -1
- package/dist/browser/{chunk-SJB6VIZG.mjs → chunk-U3JOQGWX.mjs} +1 -1
- package/dist/browser/{chunk-AJ4HHOVT.mjs → chunk-U4YDIBUT.mjs} +4 -4
- package/dist/browser/{chunk-2FX6ROWR.mjs → chunk-VLJQW4J6.mjs} +2986 -2986
- package/dist/{react-native/chunks/chunk-3O57C2ZO.mjs → browser/chunk-WI4MR75E.mjs} +2 -2
- package/dist/browser/{chunk-3U3QR5YP.mjs → chunk-WN464PTL.mjs} +2 -2
- package/dist/browser/{chunk-U2E3HMYW.mjs → chunk-XAWNZ4G2.mjs} +11 -11
- package/dist/browser/{cold-module-VTUGDYNY.mjs → cold-module-2EHCIV4K.mjs} +20 -18
- package/dist/browser/durability-config-TIYKW6XX.mjs +89 -0
- package/dist/browser/{durability-wiring-GL4A7KDV.mjs → durability-wiring-A7BVG2DW.mjs} +50 -153
- package/dist/browser/engine-hooks-E4UD67JD.mjs +17 -0
- package/dist/browser/geo-index-HHWGMNIS.mjs +1386 -0
- package/dist/browser/import-DXYB6756.mjs +19 -0
- package/dist/browser/{methods-LMUTS7OI.mjs → methods-KTQCSIN4.mjs} +3 -3
- package/dist/browser/{module-M4JNBV6V.mjs → module-NIYMEA5R.mjs} +16 -14
- package/dist/browser/{module-EC3FYW7N.mjs → module-TCT66FWA.mjs} +10 -9
- package/dist/browser/operations-OJ3BXS55.mjs +5 -0
- package/dist/browser/{phrase-module-NPYUVX75.mjs → phrase-module-HAT3TLZN.mjs} +2 -2
- package/dist/browser/{pool-WCGDZHJP.mjs → pool-3JLET5RO.mjs} +1 -1
- package/dist/browser/restore-hooks-YPN4ZFCY.mjs +114 -0
- package/dist/browser/restore-queue-G3RQGL3Y.mjs +55 -0
- package/dist/browser/{retention-6QMRS5VK.mjs → retention-ZWVMNC3Q.mjs} +18 -15
- package/dist/browser/{runtime-3EW2AGB6.mjs → runtime-OTAGEFQW.mjs} +1 -1
- package/dist/browser/{snapshot-DN3CRVUQ.mjs → snapshot-VEQNIE6C.mjs} +71 -36
- package/dist/browser/start-BM442C6R.mjs +25 -0
- package/dist/browser/{write-WAWAFGKQ.mjs → write-2EVMZWDE.mjs} +16 -14
- package/dist/{capabilities-B3Brs1Rc.d.ts → capabilities-Da4ywVVl.d.ts} +35 -3
- package/dist/{chunk-K4B7OH65.mjs → chunk-25KDNIZZ.mjs} +2 -2
- package/dist/{chunk-O43Z4MS6.mjs → chunk-2NE7VCYE.mjs} +2 -2
- package/dist/chunk-2UV4QBHW.mjs +1092 -0
- package/dist/{chunk-3Y3J4V2R.mjs → chunk-3C7MTCCI.mjs} +1 -1
- package/dist/{chunk-TRISKD4Q.mjs → chunk-3HYC4JRF.mjs} +2 -2
- package/dist/{chunk-HVYICDY3.mjs → chunk-3OH67G7R.mjs} +1 -1
- package/dist/{chunk-PFKM7VNZ.mjs → chunk-46KY2PJD.mjs} +30 -11
- package/dist/{chunk-IJU7LL7D.mjs → chunk-4KKXNJM6.mjs} +5 -5
- package/dist/{chunk-IQ4R2I6N.mjs → chunk-5FLRXF73.mjs} +5 -1
- package/dist/{chunk-BPSKLCS7.mjs → chunk-5VV4R6P7.mjs} +3017 -3017
- package/dist/chunk-5YNRKI2C.mjs +81 -0
- package/dist/chunk-6HTGOXIK.mjs +875 -0
- package/dist/{chunk-7HCZWC7B.mjs → chunk-6I6AYAXS.mjs} +50 -8
- package/dist/{chunk-C6ASEFZI.mjs → chunk-6OEGXLBX.mjs} +1 -1
- package/dist/{chunk-DVWYODEB.mjs → chunk-6RC4K46J.mjs} +2 -2
- package/dist/chunk-7GFE3PEY.mjs +40 -0
- package/dist/{chunk-QKZHLADX.mjs → chunk-7LXHHCXZ.mjs} +28 -19
- package/dist/{chunk-JUKYYXSP.mjs → chunk-7V5IUP2T.mjs} +1 -31
- package/dist/{react-native/chunks/chunk-7GWPJDOA.mjs → chunk-A4L7YTKX.mjs} +53 -90
- package/dist/{chunk-Z3TNWCI5.mjs → chunk-BU4SAIC4.mjs} +3 -3
- package/dist/chunk-BWZ3P4MU.mjs +20 -0
- package/dist/{chunk-OKX2BBNW.mjs → chunk-CITFCZKF.mjs} +5 -4
- package/dist/{chunk-4HWZV5MK.mjs → chunk-CSLGFPFQ.mjs} +5 -5
- package/dist/chunk-DP5C7YFQ.mjs +543 -0
- package/dist/{chunk-RVKFI3A2.mjs → chunk-DWEPMFJE.mjs} +11 -8
- package/dist/{chunk-LSM2YTKM.mjs → chunk-EFBDHH5P.mjs} +87 -144
- package/dist/{chunk-NZMAXR2S.mjs → chunk-FAKFUDZZ.mjs} +121 -11
- package/dist/chunk-FB6463IN.mjs +1499 -0
- package/dist/{chunk-REL7LFLR.mjs → chunk-FCJ553HS.mjs} +3 -3
- package/dist/{chunk-MMEMEUOO.mjs → chunk-FJKKCV4D.mjs} +2 -2
- package/dist/{chunk-K7KLL263.mjs → chunk-FNGAM5B7.mjs} +14 -13
- package/dist/{chunk-DMQPFLGI.mjs → chunk-FRBFVQFN.mjs} +6 -5
- package/dist/{chunk-IBNLW3AV.mjs → chunk-FYOVBEMM.mjs} +20 -6
- package/dist/chunk-G6HRSGOU.mjs +74 -0
- package/dist/{chunk-USR7FQRZ.mjs → chunk-GH4WQ22V.mjs} +2 -2
- package/dist/chunk-GQPTDQCL.mjs +54 -0
- package/dist/{chunk-VREK3MYG.mjs → chunk-HFPMMRQT.mjs} +3 -3
- package/dist/{chunk-MLHNSAPK.mjs → chunk-HHBUCIUY.mjs} +3 -3
- package/dist/{chunk-YROWNOMH.mjs → chunk-HJJI72X7.mjs} +1 -1
- package/dist/{chunk-ECX4SGX6.mjs → chunk-I2KPOLOZ.mjs} +9 -9
- package/dist/{chunk-TV2L3BN7.mjs → chunk-I53G4JAU.mjs} +266 -265
- package/dist/{chunk-3A5KI24C.mjs → chunk-I54T6CQP.mjs} +1 -1
- package/dist/{chunk-NTZOXVUZ.mjs → chunk-I5B7RXU7.mjs} +93 -24
- package/dist/{chunk-YBJDOA2T.mjs → chunk-INJYO3BU.mjs} +1 -1
- package/dist/{react-native/chunks/chunk-KWRW5U65.mjs → chunk-J4IJTTEX.mjs} +1 -1
- package/dist/{chunk-X6NSJYQ3.mjs → chunk-JDJBQLRO.mjs} +13 -13
- package/dist/{chunk-MMBEANB2.mjs → chunk-JWRUUCWD.mjs} +3 -3
- package/dist/{chunk-AO2FAYIZ.mjs → chunk-K4ZIGL2O.mjs} +1 -1
- package/dist/{chunk-JFNKIBDT.mjs → chunk-K5QFDYST.mjs} +2 -2
- package/dist/{chunk-C73JLU4E.mjs → chunk-KF4EXSM4.mjs} +2 -2
- package/dist/{chunk-WCBA2LVZ.mjs → chunk-KHKIRS5D.mjs} +1 -1
- package/dist/{chunk-7QUGDVFC.mjs → chunk-KJ3RTZDJ.mjs} +1 -1
- package/dist/{chunk-HVKXNBFL.mjs → chunk-KKQC526K.mjs} +20 -12
- package/dist/chunk-KP7TYHWT.mjs +92 -0
- package/dist/{chunk-VMXSVVXG.mjs → chunk-L6V6BST3.mjs} +9 -22
- package/dist/{chunk-URPCYQVJ.mjs → chunk-LHKOSI2J.mjs} +1 -1
- package/dist/chunk-LNGE7SLY.mjs +151 -0
- package/dist/{react-native/chunks/chunk-CUNGPR5R.mjs → chunk-MP7ABPTD.mjs} +1 -0
- package/dist/{chunk-5KGYQT6W.mjs → chunk-MQOJIO5B.mjs} +26 -9
- package/dist/{chunk-Q3TCTQCC.mjs → chunk-NF4DT3IH.mjs} +1 -1
- package/dist/{chunk-3OFU3NJT.mjs → chunk-OIJ64LGT.mjs} +1 -1
- package/dist/chunk-ORN5BLL7.mjs +11 -0
- package/dist/{chunk-HWEDFLB7.mjs → chunk-P5ZI2P2W.mjs} +126 -1701
- package/dist/{chunk-466PYR4P.mjs → chunk-PWC4VB3Q.mjs} +2 -2
- package/dist/{chunk-B7S6YEBP.mjs → chunk-QJVOLKU6.mjs} +12 -3
- package/dist/{chunk-KCUIFVVW.mjs → chunk-QOW2JPUI.mjs} +9 -9
- package/dist/chunk-RDXO6JST.mjs +63 -0
- package/dist/chunk-RLOES5SX.mjs +31 -0
- package/dist/{chunk-YPUEV6ZC.mjs → chunk-RVGRFOGN.mjs} +1 -1
- package/dist/{chunk-JCLTESFN.mjs → chunk-RZWWB2XR.mjs} +1 -1
- package/dist/chunk-S5LN746F.mjs +10 -0
- package/dist/chunk-SA5LOGO3.mjs +470 -0
- package/dist/chunk-SQJWAIF4.mjs +12 -0
- package/dist/{chunk-YTJCGKM4.mjs → chunk-TBC3XUL2.mjs} +29 -6
- package/dist/chunk-TDIK6NTV.mjs +10 -0
- package/dist/chunk-TGS5UXBE.mjs +216 -0
- package/dist/{chunk-CP5RRPJR.mjs → chunk-TQXHPFWT.mjs} +1 -1
- package/dist/{chunk-7NTMUDC5.mjs → chunk-TZ3355VS.mjs} +5 -5
- package/dist/{chunk-Q7MS6P2J.mjs → chunk-TZTRKM33.mjs} +2 -2
- package/dist/{chunk-4UMZ7KQL.mjs → chunk-U55XJEIG.mjs} +2 -1
- package/dist/{chunk-S2N75OTN.mjs → chunk-UHICS3JI.mjs} +1 -1
- package/dist/{chunk-5FUOVJKG.mjs → chunk-VTTRFF2C.mjs} +32 -19
- package/dist/{chunk-62G63NMH.mjs → chunk-WX4LAO6M.mjs} +4 -4
- package/dist/{chunk-LTUGDMV4.mjs → chunk-WZ7YV54N.mjs} +1 -1
- package/dist/chunk-XAXKV65G.mjs +72 -0
- package/dist/chunk-XXHN7J46.mjs +101 -0
- package/dist/{chunk-PGVPE7GJ.mjs → chunk-YEKL4JBK.mjs} +1 -1
- package/dist/chunk-YTWZVGCB.mjs +382 -0
- package/dist/chunk-Z2KAFCRT.mjs +30 -0
- package/dist/{chunk-LKUE5GXS.mjs → chunk-ZKP7G7TV.mjs} +2 -2
- package/dist/{client-Df76GNKm.d.ts → client-DRv7UVeY.d.ts} +123 -11
- package/dist/client.d.ts +9 -8
- package/dist/client.mjs +65 -3
- package/dist/{cold-module-YLWMTTZG.mjs → cold-module-6MO2XJF2.mjs} +45 -39
- package/dist/{config-B8DP2VwR.d.ts → config-CoSig5Ox.d.ts} +22 -3
- package/dist/{config-05G_hy-1.d.ts → config-DMwffLKn.d.ts} +20 -5
- package/dist/direct-executor-FTMYY3TI.mjs +34 -0
- package/dist/distribution/coordinator/etcd.d.ts +2 -2
- package/dist/distribution/coordinator/etcd.mjs +3 -3
- package/dist/distribution/coordinator/in-memory.d.ts +2 -2
- package/dist/distribution/coordinator/in-memory.mjs +2 -2
- 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 +6799 -5939
- package/dist/durability-config-GE4U7MCZ.mjs +89 -0
- package/dist/{durability-wiring-RHLXDIVF.mjs → durability-wiring-VIF5MOSY.mjs} +82 -179
- package/dist/embeddings/openai.mjs +2 -2
- package/dist/{sync-uXR7MmM7.d.ts → engine-CFxPYqEk.d.ts} +702 -2
- package/dist/engine-hooks-EGUGNZYE.mjs +54 -0
- package/dist/geo-index-MRH5JMIR.mjs +1387 -0
- package/dist/import-XKDPJQDP.mjs +56 -0
- package/dist/{index-nRqDM6uS.d.ts → index-C4AmUnl1.d.ts} +1 -1
- package/dist/index.browser.mjs +9 -7
- package/dist/index.d.ts +134 -9
- package/dist/index.mjs +33 -26
- package/dist/index.react-native.mjs +20 -17
- package/dist/invalidation/filesystem.mjs +2 -2
- package/dist/{long-query-thread-EMYTGSJP.mjs → long-query-thread-YA4IAYSY.mjs} +34 -28
- package/dist/{methods-ABM5ELBR.mjs → methods-7IOINERF.mjs} +3 -3
- package/dist/{module-MG7JMV2U.mjs → module-FQ4JWNQJ.mjs} +41 -34
- package/dist/{module-3OMJZUFT.mjs → module-N55W4Q5C.mjs} +14 -14
- package/dist/operations-G5EP6JPX.mjs +5 -0
- package/dist/{paged-partition-archive-UOLHOEZJ.mjs → paged-partition-archive-PXW5XAYU.mjs} +48 -38
- package/dist/partial-words.mjs +11 -9
- package/dist/pattern.mjs +6 -5
- package/dist/persistence/durability/checkpoint-worker.d.ts +8 -1
- package/dist/persistence/durability/checkpoint-worker.mjs +44 -35
- package/dist/{phrase-module-O3MDRQXP.mjs → phrase-module-XW5MKWP5.mjs} +4 -3
- package/dist/{pool-CQXYPFLG.mjs → pool-Y4A46T36.mjs} +1 -1
- package/dist/query-suggestions/merge-worker.d.ts +55 -0
- package/dist/query-suggestions/merge-worker.mjs +88 -0
- package/dist/query-suggestions-CBYkrQ5T.d.ts +311 -0
- package/dist/query-suggestions.browser.mjs +247 -0
- package/dist/query-suggestions.d.ts +20 -0
- package/dist/query-suggestions.mjs +69 -0
- package/dist/react-native/chunks/{analysis-change-EAYO3Y6Q.mjs → analysis-change-LT5QBQ3H.mjs} +43 -22
- package/dist/{browser/analysis-change-entry-FCSHFQSS.mjs → react-native/chunks/analysis-change-entry-SCVWK6OU.mjs} +1 -1
- package/dist/react-native/chunks/archive-history-MJKUQLSU.mjs +29 -0
- package/dist/{chunk-ZIFJXCKA.mjs → react-native/chunks/chunk-2PRHILX3.mjs} +54 -20
- package/dist/react-native/chunks/{chunk-VQSKZ3EZ.mjs → chunk-3JWDECAZ.mjs} +8 -8
- package/dist/{chunk-R6A773WK.mjs → react-native/chunks/chunk-3WI35N75.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-75VWIY35.mjs → chunk-4DII3ZSM.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-NKIZX26F.mjs → chunk-4J74WHQM.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-UWDNZDWK.mjs → chunk-4JYO3JD2.mjs} +6 -6
- package/dist/react-native/chunks/chunk-5CQX3XXV.mjs +17 -0
- package/dist/react-native/chunks/chunk-6VBXNFLE.mjs +9 -0
- package/dist/react-native/chunks/{chunk-SJWDBRNP.mjs → chunk-6WA3C3DV.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-OQQVRWZ2.mjs → chunk-C5G6TJ7A.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-RVAEBN74.mjs → chunk-CKNRFDTZ.mjs} +1 -1
- package/dist/react-native/chunks/chunk-DIYDOIM4.mjs +10 -0
- package/dist/react-native/chunks/{chunk-O32RB3BL.mjs → chunk-DNXOMPAQ.mjs} +4 -4
- package/dist/react-native/chunks/{chunk-YBEW6YTR.mjs → chunk-DVDX4SDR.mjs} +2 -2
- package/dist/react-native/chunks/chunk-DXRSEWA2.mjs +12 -0
- package/dist/{browser/chunk-MYITLCHT.mjs → react-native/chunks/chunk-DZ7H7D2C.mjs} +1 -0
- package/dist/react-native/chunks/{chunk-PPEPTUVV.mjs → chunk-EJ33LCHV.mjs} +29 -6
- package/dist/react-native/chunks/{chunk-RYMDHGL4.mjs → chunk-ENLMYKSX.mjs} +3045 -3075
- package/dist/react-native/chunks/chunk-FHPW7P2O.mjs +40 -0
- package/dist/react-native/chunks/{chunk-JV6VQY2S.mjs → chunk-FTZHMRD2.mjs} +2 -1
- package/dist/react-native/chunks/{chunk-YHKZSLOC.mjs → chunk-G43IPIDG.mjs} +5 -5
- package/dist/react-native/chunks/{chunk-AUT7PMA4.mjs → chunk-GXX3DQXP.mjs} +8 -22
- package/dist/react-native/chunks/chunk-H3MDVPBO.mjs +151 -0
- package/dist/react-native/chunks/{chunk-DH3TVWWK.mjs → chunk-IYNT75CE.mjs} +12 -3
- package/dist/react-native/chunks/chunk-KV46CT4D.mjs +1007 -0
- package/dist/{browser/chunk-ZPTA75ZC.mjs → react-native/chunks/chunk-LZSLNSUN.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-63YSZOXB.mjs → chunk-MIP4SOR6.mjs} +1480 -826
- package/dist/react-native/chunks/{chunk-ZBSWRSBG.mjs → chunk-MJDQU5MW.mjs} +1 -1
- package/dist/react-native/chunks/{chunk-GFYFQLJD.mjs → chunk-MUWD2H2S.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-IOY2SM2P.mjs → chunk-MVXELMJX.mjs} +1 -1
- package/dist/{browser/chunk-TTD27VXX.mjs → react-native/chunks/chunk-NB3LP33V.mjs} +27 -10
- package/dist/react-native/chunks/{chunk-I5PGWQJF.mjs → chunk-PDRWWPKV.mjs} +33 -24
- package/dist/react-native/chunks/chunk-PJHAB5ZY.mjs +79 -0
- package/dist/react-native/chunks/{chunk-2CGSQM4O.mjs → chunk-POPDAGH6.mjs} +13 -13
- package/dist/react-native/chunks/{chunk-NP7DD4G5.mjs → chunk-QUKQNI3H.mjs} +5 -5
- package/dist/react-native/chunks/{chunk-EH5CFV6Z.mjs → chunk-RDWG33MM.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-JX2RIAXH.mjs → chunk-SK2PWYDH.mjs} +5 -5
- package/dist/react-native/chunks/{chunk-ZYDKJXQJ.mjs → chunk-SUPXRTMD.mjs} +1 -1
- package/dist/react-native/chunks/chunk-TP6KCKER.mjs +63 -0
- package/dist/react-native/chunks/{chunk-JPAJWO6D.mjs → chunk-U4KSKA4Z.mjs} +1 -1
- package/dist/react-native/chunks/chunk-UQ4OAXKU.mjs +1106 -0
- package/dist/react-native/chunks/{chunk-VVFYOADG.mjs → chunk-VWUDIOT6.mjs} +6 -6
- package/dist/{browser/chunk-SIR3LMTV.mjs → react-native/chunks/chunk-WBYQRHDY.mjs} +2 -2
- package/dist/react-native/chunks/{chunk-C2H2QQFW.mjs → chunk-YH7QY657.mjs} +3 -3
- package/dist/react-native/chunks/{chunk-NCJS3WIY.mjs → chunk-YZW4CHM6.mjs} +51 -12
- package/dist/react-native/chunks/chunk-ZLWVW734.mjs +100 -0
- package/dist/react-native/chunks/chunk-ZXZFN7FI.mjs +432 -0
- package/dist/react-native/chunks/chunk-ZZT7CEN7.mjs +92 -0
- package/dist/react-native/chunks/{cold-module-TJL6AFAD.mjs → cold-module-KVZYUGRY.mjs} +31 -28
- package/dist/react-native/chunks/durability-config-QXVZEO7T.mjs +89 -0
- package/dist/react-native/chunks/{durability-wiring-RRDYJLLM.mjs → durability-wiring-34OYO32E.mjs} +60 -162
- package/dist/react-native/chunks/engine-hooks-M7JV46NH.mjs +30 -0
- package/dist/react-native/chunks/geo-index-PX3BIHAH.mjs +1387 -0
- package/dist/react-native/chunks/gzip.react-native-HLEPDKZ3.mjs +3 -0
- package/dist/react-native/chunks/import-H6AQREWI.mjs +32 -0
- package/dist/react-native/chunks/{methods-X6F36SJE.mjs → methods-6W5U4C3H.mjs} +3 -3
- package/dist/react-native/chunks/module-LBZPGOWH.mjs +36 -0
- package/dist/react-native/chunks/{module-S4DKSWMF.mjs → module-TTEVPRCW.mjs} +14 -13
- package/dist/react-native/chunks/operations-GNRMD6EX.mjs +5 -0
- package/dist/react-native/chunks/{phrase-module-JZ37TB7N.mjs → phrase-module-QK22HSQ2.mjs} +2 -2
- package/dist/react-native/chunks/{pool-RTGXJXPU.mjs → pool-JR3NJCAF.mjs} +1 -1
- package/dist/react-native/chunks/restore-hooks-IBGIY3DR.mjs +127 -0
- package/dist/react-native/chunks/restore-queue-ZZX54AH7.mjs +55 -0
- package/dist/react-native/chunks/{retention-PPCTP2VY.mjs → retention-EW4TTDFB.mjs} +29 -25
- package/dist/react-native/chunks/{runtime-KUATOLYB.mjs → runtime-R5E3TB3J.mjs} +1 -1
- package/dist/react-native/chunks/{snapshot-ZBIEOZTZ.mjs → snapshot-REYVIN3X.mjs} +80 -44
- package/dist/react-native/chunks/start-BQK6KN3R.mjs +38 -0
- package/dist/react-native/chunks/{write-2W4FTX7J.mjs → write-FQAYCZF5.mjs} +27 -24
- package/dist/react-native/partial-words.mjs +11 -9
- package/dist/react-native/pattern.mjs +4 -4
- package/dist/react-native/query-suggestions.mjs +260 -0
- package/dist/react-native/sync.mjs +78 -15
- package/dist/react-native/synonyms.mjs +95 -27
- package/dist/react.d.ts +11 -11
- package/dist/react.mjs +1 -0
- package/dist/{rerank-IZOB6NII.mjs → rerank-MQ37IYRV.mjs} +4 -4
- package/dist/rerankers/http.mjs +2 -2
- package/dist/restore-hooks-CDERDEF4.mjs +153 -0
- package/dist/restore-queue-7NNSTROA.mjs +55 -0
- package/dist/retention-QSVBBNRM.mjs +66 -0
- package/dist/{runtime-UZOC3NPY.mjs → runtime-COIUORCN.mjs} +5 -5
- package/dist/{schema-DDauvDOv.d.ts → schema-Jwt928nJ.d.ts} +1 -1
- package/dist/server.d.ts +108 -12
- package/dist/server.mjs +303 -50
- package/dist/{snapshot-NFX2EYN2.mjs → snapshot-RH4NSKIZ.mjs} +98 -61
- package/dist/start-MCKCOGIW.mjs +66 -0
- package/dist/sync/filesystem.d.ts +4 -4
- package/dist/sync/filesystem.mjs +6 -6
- package/dist/sync/indexeddb.d.ts +4 -4
- package/dist/sync/indexeddb.mjs +2 -2
- package/dist/sync.browser.mjs +74 -11
- package/dist/sync.d.ts +5 -5
- package/dist/sync.mjs +78 -16
- package/dist/synonyms.mjs +9 -8
- package/dist/{tasks-BShx8pdK.d.ts → tasks-qrJojgST.d.ts} +13 -5
- package/dist/thread-O4SBJJJS.mjs +50 -0
- package/dist/{types-SnO7_tAI.d.ts → types-BZCGjfLn.d.ts} +2 -3
- package/dist/vector/search-worker.d.ts +1 -1
- package/dist/vector/search-worker.mjs +8 -8
- package/dist/workers/entry.mjs +19 -8
- package/dist/{write-FGB62BHQ.mjs → write-3FK7NG3Y.mjs} +40 -33
- package/openapi.json +798 -7
- package/package.json +32 -8
- package/dist/browser/import-YI5GNB4H.mjs +0 -17
- package/dist/browser/operations-WVYLF72Q.mjs +0 -5
- package/dist/browser/restore-queue-TYIGDL5L.mjs +0 -41
- package/dist/chunk-37IVJLP6.mjs +0 -44
- package/dist/chunk-DJHHF2L5.mjs +0 -17
- package/dist/direct-executor-FI5GJHWX.mjs +0 -29
- package/dist/engine-DYu-e0oR.d.ts +0 -674
- package/dist/import-SRBNC6TE.mjs +0 -49
- package/dist/operations-PGOAY2KS.mjs +0 -5
- package/dist/react-native/chunks/chunk-TJMSKBEM.mjs +0 -25
- package/dist/react-native/chunks/gzip.react-native-DNB5YNFA.mjs +0 -3
- package/dist/react-native/chunks/import-JYBMEJPQ.mjs +0 -29
- package/dist/react-native/chunks/module-QT5HZAY4.mjs +0 -33
- package/dist/react-native/chunks/operations-RYKTSZQA.mjs +0 -5
- package/dist/react-native/chunks/restore-queue-ZBVIKJWI.mjs +0 -41
- package/dist/restore-queue-COI2GSSK.mjs +0 -41
- package/dist/retention-55WA7GPU.mjs +0 -58
- package/dist/thread-P2G2FWM2.mjs +0 -44
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
import { isGroup } from './chunk-GQPTDQCL.mjs';
|
|
2
|
+
import { MAX_MIN_PEOPLE, MIN_MIN_PEOPLE, DEFAULT_MIN_PEOPLE, MAX_MIN_RESULTS, MIN_MIN_RESULTS, DEFAULT_MIN_RESULTS, MAX_RETENTION_DAYS, MIN_RETENTION_DAYS, DEFAULT_RETENTION_DAYS, MAX_MAX_PHRASES_PER_DAY, DEFAULT_MAX_PHRASES_PER_DAY, MAX_MAX_PHRASES_PER_PERSON, DEFAULT_MAX_PHRASES_PER_PERSON, MAX_MAX_PEOPLE_PER_DAY, DEFAULT_MAX_PEOPLE_PER_DAY, MAX_MAX_GROUPS, DEFAULT_MAX_GROUPS, MAX_MAX_LENGTH, DEFAULT_MAX_LENGTH, DEFAULT_MIN_LETTERS, MAX_MAX_WORDS, DEFAULT_MAX_WORDS, DEFAULT_MAX_DIGITS, MAX_MAX_MERGE_PHRASES, DEFAULT_MAX_MERGE_PHRASES, MAX_MERGE_MEMORY_BYTES, MIN_MERGE_MEMORY_BYTES, DEFAULT_MERGE_MEMORY_BYTES, MAX_SAVE_INTERVAL_MS, MIN_SAVE_INTERVAL_MS, DEFAULT_SAVE_INTERVAL_MS, MAX_RESULT_CHECKS_PER_SECOND, DEFAULT_RESULT_CHECKS_PER_SECOND, MAX_SCHEDULE_LENGTH, SCHEDULE_LOOKAHEAD_DAYS, DEFAULT_TIME_ZONE, DEFAULT_SCHEDULE, MAX_FIELDS, SCHEDULE_OFF, MAX_SETTING_BYTES, MAX_SOURCE_INDEX_NAME_LENGTH, MAX_PERSON_PAIRS_PER_DAY, MAX_FILE_PEOPLE_PER_DAY, MAX_MERGE_PEOPLE, DAY_MS } from './chunk-5YNRKI2C.mjs';
|
|
3
|
+
import { flattenSchema } from './chunk-BU4SAIC4.mjs';
|
|
4
|
+
import { NarsilError, ErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
5
|
+
import { encode } from '@msgpack/msgpack';
|
|
6
|
+
|
|
7
|
+
// src/query-suggestions/schedule.ts
|
|
8
|
+
var FIELD_RANGES = [
|
|
9
|
+
{ min: 0, max: 59 },
|
|
10
|
+
{ min: 0, max: 23 },
|
|
11
|
+
{ min: 1, max: 31 },
|
|
12
|
+
{ min: 1, max: 12 },
|
|
13
|
+
{ min: 0, max: 6 }
|
|
14
|
+
];
|
|
15
|
+
var NUMBER = /^\d{1,2}$/;
|
|
16
|
+
function parseNumber(text, range) {
|
|
17
|
+
if (!NUMBER.test(text)) return null;
|
|
18
|
+
const value = Number(text);
|
|
19
|
+
return value >= range.min && value <= range.max ? value : null;
|
|
20
|
+
}
|
|
21
|
+
function parseField(text, range) {
|
|
22
|
+
const allowed = new Array(range.max + 1).fill(false);
|
|
23
|
+
for (const part of text.split(",")) {
|
|
24
|
+
const [base, stepText, ...extra] = part.split("/");
|
|
25
|
+
if (base === void 0 || extra.length > 0) return null;
|
|
26
|
+
let step = 1;
|
|
27
|
+
if (stepText !== void 0) {
|
|
28
|
+
if (!NUMBER.test(stepText) || Number(stepText) < 1) return null;
|
|
29
|
+
step = Number(stepText);
|
|
30
|
+
}
|
|
31
|
+
let start;
|
|
32
|
+
let end;
|
|
33
|
+
if (base === "*") {
|
|
34
|
+
start = range.min;
|
|
35
|
+
end = range.max;
|
|
36
|
+
} else {
|
|
37
|
+
const bounds = base.split("-");
|
|
38
|
+
if (bounds.length > 2) return null;
|
|
39
|
+
const first = parseNumber(bounds[0] ?? "", range);
|
|
40
|
+
if (first === null) return null;
|
|
41
|
+
start = first;
|
|
42
|
+
if (bounds.length === 2) {
|
|
43
|
+
const last = parseNumber(bounds[1] ?? "", range);
|
|
44
|
+
if (last === null || last < first) return null;
|
|
45
|
+
end = last;
|
|
46
|
+
} else end = stepText === void 0 ? first : range.max;
|
|
47
|
+
}
|
|
48
|
+
for (let value = start; value <= end; value += step) allowed[value] = true;
|
|
49
|
+
}
|
|
50
|
+
return allowed;
|
|
51
|
+
}
|
|
52
|
+
function parseSchedule(expression) {
|
|
53
|
+
if (expression.length > MAX_SCHEDULE_LENGTH) return null;
|
|
54
|
+
const fields = expression.trim().split(/\s+/);
|
|
55
|
+
if (fields.length !== FIELD_RANGES.length) return null;
|
|
56
|
+
const parsed = [];
|
|
57
|
+
for (let i = 0; i < fields.length; i++) {
|
|
58
|
+
const field = parseField(fields[i] ?? "", FIELD_RANGES[i]);
|
|
59
|
+
if (field === null) return null;
|
|
60
|
+
parsed.push(field);
|
|
61
|
+
}
|
|
62
|
+
const [minutes, hours, daysOfMonth, months, daysOfWeek] = parsed;
|
|
63
|
+
return {
|
|
64
|
+
minutes,
|
|
65
|
+
hours,
|
|
66
|
+
daysOfMonth,
|
|
67
|
+
months,
|
|
68
|
+
daysOfWeek,
|
|
69
|
+
dayOfMonthAny: fields[2] === "*",
|
|
70
|
+
dayOfWeekAny: fields[4] === "*"
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
var formatters = /* @__PURE__ */ new Map();
|
|
74
|
+
function formatterOf(timeZone) {
|
|
75
|
+
let formatter = formatters.get(timeZone);
|
|
76
|
+
if (formatter === void 0) {
|
|
77
|
+
formatter = new Intl.DateTimeFormat("en-US", {
|
|
78
|
+
timeZone,
|
|
79
|
+
hourCycle: "h23",
|
|
80
|
+
year: "numeric",
|
|
81
|
+
month: "numeric",
|
|
82
|
+
day: "numeric",
|
|
83
|
+
hour: "numeric",
|
|
84
|
+
minute: "numeric"
|
|
85
|
+
});
|
|
86
|
+
formatters.set(timeZone, formatter);
|
|
87
|
+
}
|
|
88
|
+
return formatter;
|
|
89
|
+
}
|
|
90
|
+
function wallTimeAt(instant, timeZone) {
|
|
91
|
+
const parts = {};
|
|
92
|
+
for (const part of formatterOf(timeZone).formatToParts(instant)) {
|
|
93
|
+
if (part.type !== "literal") parts[part.type] = Number(part.value);
|
|
94
|
+
}
|
|
95
|
+
return { year: parts.year, month: parts.month, day: parts.day, hour: parts.hour, minute: parts.minute };
|
|
96
|
+
}
|
|
97
|
+
function wallAsUtc(wall) {
|
|
98
|
+
return Date.UTC(wall.year, wall.month - 1, wall.day, wall.hour, wall.minute);
|
|
99
|
+
}
|
|
100
|
+
function instantOf(wall, timeZone) {
|
|
101
|
+
const target = wallAsUtc(wall);
|
|
102
|
+
let guess = target;
|
|
103
|
+
for (let attempt = 0; attempt < 3; attempt++) {
|
|
104
|
+
const offset = wallAsUtc(wallTimeAt(guess, timeZone)) - guess;
|
|
105
|
+
guess = target - offset;
|
|
106
|
+
}
|
|
107
|
+
const landed = wallTimeAt(guess, timeZone);
|
|
108
|
+
return wallAsUtc(landed) === target ? guess : null;
|
|
109
|
+
}
|
|
110
|
+
function dayMatches(schedule, dayStartUtc) {
|
|
111
|
+
const date = new Date(dayStartUtc);
|
|
112
|
+
if (!schedule.months[date.getUTCMonth() + 1]) return false;
|
|
113
|
+
const monthDay = schedule.daysOfMonth[date.getUTCDate()] === true;
|
|
114
|
+
const weekDay = schedule.daysOfWeek[date.getUTCDay()] === true;
|
|
115
|
+
if (!schedule.dayOfMonthAny && !schedule.dayOfWeekAny) return monthDay || weekDay;
|
|
116
|
+
return monthDay && weekDay;
|
|
117
|
+
}
|
|
118
|
+
function matchesOfDay(schedule, dayStartUtc, timeZone) {
|
|
119
|
+
const date = new Date(dayStartUtc);
|
|
120
|
+
const instants = [];
|
|
121
|
+
for (let hour = 0; hour < 24; hour++) {
|
|
122
|
+
if (!schedule.hours[hour]) continue;
|
|
123
|
+
for (let minute = 0; minute < 60; minute++) {
|
|
124
|
+
if (!schedule.minutes[minute]) continue;
|
|
125
|
+
const wall = { year: date.getUTCFullYear(), month: date.getUTCMonth() + 1, day: date.getUTCDate(), hour, minute };
|
|
126
|
+
const instant = instantOf(wall, timeZone);
|
|
127
|
+
if (instant !== null) instants.push(instant);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return instants;
|
|
131
|
+
}
|
|
132
|
+
function localDayStart(instant, timeZone) {
|
|
133
|
+
const wall = wallTimeAt(instant, timeZone);
|
|
134
|
+
return Date.UTC(wall.year, wall.month - 1, wall.day);
|
|
135
|
+
}
|
|
136
|
+
function nextMatchAfter(schedule, timeZone, after) {
|
|
137
|
+
const firstDay = localDayStart(after, timeZone);
|
|
138
|
+
for (let day = 0; day <= SCHEDULE_LOOKAHEAD_DAYS; day++) {
|
|
139
|
+
const dayStart = firstDay + day * DAY_MS;
|
|
140
|
+
if (!dayMatches(schedule, dayStart)) continue;
|
|
141
|
+
for (const instant of matchesOfDay(schedule, dayStart, timeZone)) {
|
|
142
|
+
if (instant > after) return instant;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
return null;
|
|
146
|
+
}
|
|
147
|
+
function latestMatchAtOrBefore(schedule, timeZone, at) {
|
|
148
|
+
const firstDay = localDayStart(at, timeZone);
|
|
149
|
+
for (let day = 0; day <= SCHEDULE_LOOKAHEAD_DAYS; day++) {
|
|
150
|
+
const dayStart = firstDay - day * DAY_MS;
|
|
151
|
+
if (!dayMatches(schedule, dayStart)) continue;
|
|
152
|
+
const instants = matchesOfDay(schedule, dayStart, timeZone);
|
|
153
|
+
for (let i = instants.length - 1; i >= 0; i--) {
|
|
154
|
+
if (instants[i] <= at) return instants[i];
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
return null;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// src/query-suggestions/setting.ts
|
|
161
|
+
var RANGES = [
|
|
162
|
+
{
|
|
163
|
+
key: "minPeople",
|
|
164
|
+
wire: "min_people",
|
|
165
|
+
fallback: DEFAULT_MIN_PEOPLE,
|
|
166
|
+
min: MIN_MIN_PEOPLE,
|
|
167
|
+
max: MAX_MIN_PEOPLE
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
key: "minResults",
|
|
171
|
+
wire: "min_results",
|
|
172
|
+
fallback: DEFAULT_MIN_RESULTS,
|
|
173
|
+
min: MIN_MIN_RESULTS,
|
|
174
|
+
max: MAX_MIN_RESULTS
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
key: "retentionDays",
|
|
178
|
+
wire: "retention_days",
|
|
179
|
+
fallback: DEFAULT_RETENTION_DAYS,
|
|
180
|
+
min: MIN_RETENTION_DAYS,
|
|
181
|
+
max: MAX_RETENTION_DAYS
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
key: "maxPhrasesPerDay",
|
|
185
|
+
wire: "max_phrases_per_day",
|
|
186
|
+
fallback: DEFAULT_MAX_PHRASES_PER_DAY,
|
|
187
|
+
min: 1,
|
|
188
|
+
max: MAX_MAX_PHRASES_PER_DAY
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
key: "maxPhrasesPerPerson",
|
|
192
|
+
wire: "max_phrases_per_person",
|
|
193
|
+
fallback: DEFAULT_MAX_PHRASES_PER_PERSON,
|
|
194
|
+
min: 1,
|
|
195
|
+
max: MAX_MAX_PHRASES_PER_PERSON
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
key: "maxPeoplePerDay",
|
|
199
|
+
wire: "max_people_per_day",
|
|
200
|
+
fallback: DEFAULT_MAX_PEOPLE_PER_DAY,
|
|
201
|
+
min: 1,
|
|
202
|
+
max: MAX_MAX_PEOPLE_PER_DAY
|
|
203
|
+
},
|
|
204
|
+
{ key: "maxGroups", wire: "max_groups", fallback: DEFAULT_MAX_GROUPS, min: 1, max: MAX_MAX_GROUPS },
|
|
205
|
+
{ key: "maxLength", wire: "max_length", fallback: DEFAULT_MAX_LENGTH, min: 1, max: MAX_MAX_LENGTH },
|
|
206
|
+
{ key: "minLetters", wire: "min_letters", fallback: DEFAULT_MIN_LETTERS, min: 1, max: "maxLength" },
|
|
207
|
+
{ key: "maxWords", wire: "max_words", fallback: DEFAULT_MAX_WORDS, min: 1, max: MAX_MAX_WORDS },
|
|
208
|
+
{ key: "maxDigits", wire: "max_digits", fallback: DEFAULT_MAX_DIGITS, min: 0, max: "maxLength" },
|
|
209
|
+
{
|
|
210
|
+
key: "maxMergePhrases",
|
|
211
|
+
wire: "max_merge_phrases",
|
|
212
|
+
fallback: DEFAULT_MAX_MERGE_PHRASES,
|
|
213
|
+
min: 1,
|
|
214
|
+
max: MAX_MAX_MERGE_PHRASES
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
key: "mergeMemoryBytes",
|
|
218
|
+
wire: "merge_memory_bytes",
|
|
219
|
+
fallback: DEFAULT_MERGE_MEMORY_BYTES,
|
|
220
|
+
min: MIN_MERGE_MEMORY_BYTES,
|
|
221
|
+
max: MAX_MERGE_MEMORY_BYTES
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
key: "saveIntervalMs",
|
|
225
|
+
wire: "save_interval_ms",
|
|
226
|
+
fallback: DEFAULT_SAVE_INTERVAL_MS,
|
|
227
|
+
min: MIN_SAVE_INTERVAL_MS,
|
|
228
|
+
max: MAX_SAVE_INTERVAL_MS
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
key: "resultChecksPerSecond",
|
|
232
|
+
wire: "result_checks_per_second",
|
|
233
|
+
fallback: DEFAULT_RESULT_CHECKS_PER_SECOND,
|
|
234
|
+
min: 1,
|
|
235
|
+
max: MAX_RESULT_CHECKS_PER_SECOND
|
|
236
|
+
}
|
|
237
|
+
];
|
|
238
|
+
var SETTING_KEYS = /* @__PURE__ */ new Set(["enabled", "fields", "schedule", "timeZone", ...RANGES.map((range) => range.key)]);
|
|
239
|
+
function invalidSetting(message, details = {}) {
|
|
240
|
+
throw new NarsilError(ErrorCodes.CONFIG_INVALID, message, details);
|
|
241
|
+
}
|
|
242
|
+
function isWholeNumber(value) {
|
|
243
|
+
return typeof value === "number" && Number.isSafeInteger(value);
|
|
244
|
+
}
|
|
245
|
+
function knowsTimeZone(timeZone) {
|
|
246
|
+
try {
|
|
247
|
+
new Intl.DateTimeFormat("en-US", { timeZone });
|
|
248
|
+
return true;
|
|
249
|
+
} catch {
|
|
250
|
+
return false;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
function resolveSetting(setting) {
|
|
254
|
+
const resolved = {
|
|
255
|
+
enabled: setting.enabled,
|
|
256
|
+
fields: [...setting.fields],
|
|
257
|
+
schedule: setting.schedule ?? DEFAULT_SCHEDULE,
|
|
258
|
+
timeZone: setting.timeZone ?? DEFAULT_TIME_ZONE
|
|
259
|
+
};
|
|
260
|
+
for (const range of RANGES) resolved[range.key] = setting[range.key] ?? range.fallback;
|
|
261
|
+
return resolved;
|
|
262
|
+
}
|
|
263
|
+
function requireProducts(resolved) {
|
|
264
|
+
if (resolved.maxPeoplePerDay * resolved.maxPhrasesPerPerson > MAX_PERSON_PAIRS_PER_DAY) {
|
|
265
|
+
invalidSetting(`maxPeoplePerDay times maxPhrasesPerPerson must stay at or below ${MAX_PERSON_PAIRS_PER_DAY}`);
|
|
266
|
+
}
|
|
267
|
+
if (resolved.maxPhrasesPerDay * resolved.minPeople > MAX_FILE_PEOPLE_PER_DAY) {
|
|
268
|
+
invalidSetting(`maxPhrasesPerDay times minPeople must stay at or below ${MAX_FILE_PEOPLE_PER_DAY}`);
|
|
269
|
+
}
|
|
270
|
+
if (resolved.maxMergePhrases * resolved.minPeople > MAX_MERGE_PEOPLE) {
|
|
271
|
+
invalidSetting(`maxMergePhrases times minPeople must stay at or below ${MAX_MERGE_PEOPLE}`);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
function validateSetting(raw) {
|
|
275
|
+
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) {
|
|
276
|
+
invalidSetting("The query suggestions setting must be an object");
|
|
277
|
+
}
|
|
278
|
+
const input = raw;
|
|
279
|
+
for (const key of Object.keys(input)) {
|
|
280
|
+
if (!SETTING_KEYS.has(key)) invalidSetting(`The query suggestions setting holds an unknown key "${key}"`, { key });
|
|
281
|
+
}
|
|
282
|
+
if (typeof input.enabled !== "boolean") invalidSetting('The query suggestions setting needs a boolean "enabled"');
|
|
283
|
+
const fields = input.fields;
|
|
284
|
+
if (!Array.isArray(fields) || fields.length === 0 || fields.length > MAX_FIELDS) {
|
|
285
|
+
invalidSetting(`The query suggestions setting needs from 1 to ${MAX_FIELDS} fields`);
|
|
286
|
+
}
|
|
287
|
+
const seen = /* @__PURE__ */ new Set();
|
|
288
|
+
for (const field of fields) {
|
|
289
|
+
if (typeof field !== "string" || field.length === 0 || seen.has(field)) {
|
|
290
|
+
invalidSetting("Each field of the query suggestions setting must be a distinct, non-empty path");
|
|
291
|
+
}
|
|
292
|
+
seen.add(field);
|
|
293
|
+
}
|
|
294
|
+
const setting = { enabled: input.enabled, fields: [...seen] };
|
|
295
|
+
for (const range of RANGES) {
|
|
296
|
+
const value = input[range.key];
|
|
297
|
+
if (value === void 0) continue;
|
|
298
|
+
if (!isWholeNumber(value)) invalidSetting(`${range.key} must be a whole number`, { key: range.key });
|
|
299
|
+
setting[range.key] = value;
|
|
300
|
+
}
|
|
301
|
+
const resolved = resolveSetting(setting);
|
|
302
|
+
for (const range of RANGES) {
|
|
303
|
+
const value = resolved[range.key];
|
|
304
|
+
const max = typeof range.max === "number" ? range.max : resolved[range.max];
|
|
305
|
+
if (value < range.min || value > max) {
|
|
306
|
+
invalidSetting(`${range.key} must be from ${range.min} to ${max}`, { key: range.key, value });
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
requireProducts(resolved);
|
|
310
|
+
if (input.schedule !== void 0) {
|
|
311
|
+
if (typeof input.schedule !== "string") invalidSetting("schedule must be a string");
|
|
312
|
+
if (input.schedule !== SCHEDULE_OFF && parseSchedule(input.schedule) === null) {
|
|
313
|
+
invalidSetting('schedule must be "off" or a cron expression of five fields', { schedule: input.schedule });
|
|
314
|
+
}
|
|
315
|
+
setting.schedule = input.schedule;
|
|
316
|
+
}
|
|
317
|
+
if (input.timeZone !== void 0) {
|
|
318
|
+
if (typeof input.timeZone !== "string" || !knowsTimeZone(input.timeZone)) {
|
|
319
|
+
invalidSetting("timeZone must name an IANA time zone", { timeZone: String(input.timeZone) });
|
|
320
|
+
}
|
|
321
|
+
setting.timeZone = input.timeZone;
|
|
322
|
+
}
|
|
323
|
+
if (encode(settingToWire(setting)).byteLength > MAX_SETTING_BYTES) {
|
|
324
|
+
invalidSetting(`The query suggestions setting must encode to at most ${MAX_SETTING_BYTES} bytes`);
|
|
325
|
+
}
|
|
326
|
+
return setting;
|
|
327
|
+
}
|
|
328
|
+
function requireFieldsInSchema(setting, schema) {
|
|
329
|
+
const flat = flattenSchema(schema);
|
|
330
|
+
for (const field of setting.fields) {
|
|
331
|
+
const type = flat[field];
|
|
332
|
+
if (type !== "string" && type !== "string[]") {
|
|
333
|
+
invalidSetting(`Field "${field}" must be a string or string[] field of the schema`, { field });
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
function settingToWire(setting) {
|
|
338
|
+
const wire = { enabled: setting.enabled, fields: [...setting.fields] };
|
|
339
|
+
for (const range of RANGES) {
|
|
340
|
+
const value = setting[range.key];
|
|
341
|
+
if (value !== void 0) wire[range.wire] = value;
|
|
342
|
+
}
|
|
343
|
+
if (setting.schedule !== void 0) wire.schedule = setting.schedule;
|
|
344
|
+
if (setting.timeZone !== void 0) wire.time_zone = setting.timeZone;
|
|
345
|
+
return wire;
|
|
346
|
+
}
|
|
347
|
+
function settingFromWire(raw) {
|
|
348
|
+
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) {
|
|
349
|
+
invalidSetting("The stored query suggestions setting is not a map");
|
|
350
|
+
}
|
|
351
|
+
const wire = raw;
|
|
352
|
+
const camel = {};
|
|
353
|
+
const byWire = new Map([
|
|
354
|
+
["enabled", "enabled"],
|
|
355
|
+
["fields", "fields"],
|
|
356
|
+
["schedule", "schedule"],
|
|
357
|
+
["time_zone", "timeZone"],
|
|
358
|
+
...RANGES.map((range) => [range.wire, range.key])
|
|
359
|
+
]);
|
|
360
|
+
for (const [key, value] of Object.entries(wire)) {
|
|
361
|
+
const camelKey = byWire.get(key);
|
|
362
|
+
if (camelKey === void 0) invalidSetting(`The stored query suggestions setting holds an unknown key "${key}"`);
|
|
363
|
+
camel[camelKey] = value;
|
|
364
|
+
}
|
|
365
|
+
return validateSetting(camel);
|
|
366
|
+
}
|
|
367
|
+
function validateSource(raw) {
|
|
368
|
+
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) {
|
|
369
|
+
invalidSetting("The suggestions index marker must be a map");
|
|
370
|
+
}
|
|
371
|
+
const { index, group, ...rest } = raw;
|
|
372
|
+
if (Object.keys(rest).length > 0) invalidSetting("The suggestions index marker holds an unknown key");
|
|
373
|
+
if (typeof index !== "string" || index.length === 0 || index.length > MAX_SOURCE_INDEX_NAME_LENGTH) {
|
|
374
|
+
invalidSetting("The suggestions index marker needs the name of its source index");
|
|
375
|
+
}
|
|
376
|
+
if (!isGroup(group)) {
|
|
377
|
+
invalidSetting("The suggestions index marker needs a valid group");
|
|
378
|
+
}
|
|
379
|
+
return { index, group };
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export { invalidSetting, latestMatchAtOrBefore, nextMatchAfter, parseSchedule, requireFieldsInSchema, resolveSetting, settingFromWire, settingToWire, validateSetting, validateSource };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { installSuggestionHooks } from './chunk-RDXO6JST.mjs';
|
|
2
|
+
import { attachedRuntimeOf, attachRuntime } from './chunk-S5LN746F.mjs';
|
|
3
|
+
import { keyBytesOf, QuerySuggestionsRuntime, createLocalHost } from './chunk-2UV4QBHW.mjs';
|
|
4
|
+
|
|
5
|
+
// src/query-suggestions/start.ts
|
|
6
|
+
var starting = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
async function startRuntime(core, engine, config) {
|
|
8
|
+
const keySetting = config?.querySuggestions?.key;
|
|
9
|
+
const key = keySetting === void 0 ? null : keyBytesOf(keySetting);
|
|
10
|
+
const runtime = new QuerySuggestionsRuntime(createLocalHost(core, engine, config), key);
|
|
11
|
+
attachRuntime(core, runtime);
|
|
12
|
+
installSuggestionHooks(core);
|
|
13
|
+
await runtime.start();
|
|
14
|
+
return runtime;
|
|
15
|
+
}
|
|
16
|
+
function localRuntimeOf(core, engine, config) {
|
|
17
|
+
const attached = attachedRuntimeOf(core);
|
|
18
|
+
if (attached !== void 0) return Promise.resolve(attached);
|
|
19
|
+
const pending = starting.get(core);
|
|
20
|
+
if (pending !== void 0) return pending;
|
|
21
|
+
const started = startRuntime(core, engine, config);
|
|
22
|
+
starting.set(core, started);
|
|
23
|
+
void started.then(
|
|
24
|
+
() => starting.delete(core),
|
|
25
|
+
() => starting.delete(core)
|
|
26
|
+
);
|
|
27
|
+
return started;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { localRuntimeOf };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { sendError, RELAY_STREAM_CHUNKS_IN_FLIGHT } from './chunk-
|
|
2
|
-
import { ServerErrorCodes } from './chunk-
|
|
1
|
+
import { sendError, RELAY_STREAM_CHUNKS_IN_FLIGHT } from './chunk-FAKFUDZZ.mjs';
|
|
2
|
+
import { ServerErrorCodes } from './chunk-MP7ABPTD.mjs';
|
|
3
3
|
import { rm } from 'fs/promises';
|
|
4
4
|
import path from 'path';
|
|
5
5
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { P as PartitionConfig, B as BM25Params, A as AnyDocument, a as InsertOptions, W as WriteOptions } from './schema-
|
|
2
|
-
import { V as VectorMaintenanceResult, B as BatchResult, L as ListParams, l as ListResult, I as IndexInfo,
|
|
1
|
+
import { P as PartitionConfig, B as BM25Params, A as AnyDocument, a as InsertOptions, W as WriteOptions } from './schema-Jwt928nJ.js';
|
|
2
|
+
import { e as SnapshotOptions, V as VectorMaintenanceResult, B as BatchResult, L as ListParams, l as ListResult, I as IndexInfo, p as IndexStats, P as PartitionStatsResult, Q as QueryParams, h as QueryResult, o as PreflightResult, m as SuggestParams, n as SuggestResult, f as SyncSetting } from './engine-CFxPYqEk.js';
|
|
3
3
|
import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
|
|
4
|
-
import { f as TaskRecord, a as ChangeAnalysisBody, M as MemoryStatsResponse, R as RestoreBackupBody, c as ImportResult, H as HttpIndexConfig, d as TaskListQuery, T as TaskListPage } from './tasks-
|
|
5
|
-
import { B as BackupListing } from './config-
|
|
4
|
+
import { f as TaskRecord, a as ChangeAnalysisBody, M as MemoryStatsResponse, m as CreateBackupBody, R as RestoreBackupBody, c as ImportResult, H as HttpIndexConfig, d as TaskListQuery, T as TaskListPage } from './tasks-qrJojgST.js';
|
|
5
|
+
import { B as BackupListing } from './config-DMwffLKn.js';
|
|
6
|
+
import { d as QuerySuggestionsSetting, e as QuerySuggestionsStatus, f as RecordQueryResult, c as QuerySuggestionsPreview, M as ManualQuerySuggestion } from './query-suggestions-CBYkrQ5T.js';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* This is the `fetch` implementation the client sends every request through.
|
|
@@ -162,11 +163,12 @@ interface AdminOperations {
|
|
|
162
163
|
*
|
|
163
164
|
* @param indexName - This names the index to stream.
|
|
164
165
|
* @param options - This sets the signal, the deadline, and the headers for
|
|
165
|
-
* this request.
|
|
166
|
+
* this request. Set `queryHistory` to add the index's popular query
|
|
167
|
+
* history, which holds raw searches, to the archive.
|
|
166
168
|
* @returns The stream holds the archive's bytes in the order that the server
|
|
167
169
|
* sends them.
|
|
168
170
|
*/
|
|
169
|
-
snapshot(indexName: string, options?: RequestOptions): Promise<ReadableStream<Uint8Array>>;
|
|
171
|
+
snapshot(indexName: string, options?: RequestOptions & SnapshotOptions): Promise<ReadableStream<Uint8Array>>;
|
|
170
172
|
/**
|
|
171
173
|
* Uploads a snapshot archive and replaces the named index with the
|
|
172
174
|
* archive's contents. The method also accepts the single `.nrsl` file that
|
|
@@ -352,7 +354,7 @@ interface AdminOperations {
|
|
|
352
354
|
* this request.
|
|
353
355
|
* @returns The record is the task to follow, and it ends with any failure of
|
|
354
356
|
* the change, such as `ANALYSIS_CHANGE_REPLACED` when a later change replaces
|
|
355
|
-
* this one.
|
|
357
|
+
* this one or when a restore of the index is in flight.
|
|
356
358
|
*/
|
|
357
359
|
changeAnalysis(indexName: string, change: ChangeAnalysisBody, options?: RequestOptions): Promise<TaskRecord>;
|
|
358
360
|
/**
|
|
@@ -383,12 +385,13 @@ interface BackupOperations {
|
|
|
383
385
|
* @param indexName - This names the index to back up.
|
|
384
386
|
* @param backupName - This names the backup, with 1 to 128 letters, digits, `.`, `_`, and `-`, starting with a
|
|
385
387
|
* letter or a digit.
|
|
386
|
-
* @param options - This sets the signal, the deadline, and the headers for this request.
|
|
388
|
+
* @param options - This sets the signal, the deadline, and the headers for this request. Set `queryHistory` to add
|
|
389
|
+
* every node's popular query suggestion history of the index, which holds raw searches, to the backup.
|
|
387
390
|
* @returns The record is the task to follow.
|
|
388
391
|
* @throws A `NarsilError` with `CLUSTER_OPERATION_UNSUPPORTED` from a server that fronts a single engine. The task
|
|
389
392
|
* reports `BACKUP_ALREADY_EXISTS` or `BACKUP_DURABILITY_REQUIRED` in its `error`.
|
|
390
393
|
*/
|
|
391
|
-
createBackup(indexName: string, backupName: string, options?: RequestOptions): Promise<TaskRecord>;
|
|
394
|
+
createBackup(indexName: string, backupName: string, options?: RequestOptions & Pick<CreateBackupBody, 'queryHistory'>): Promise<TaskRecord>;
|
|
392
395
|
/**
|
|
393
396
|
* Lists the backups under the cluster's key prefix, in name order.
|
|
394
397
|
*
|
|
@@ -786,6 +789,115 @@ interface IndexOperations {
|
|
|
786
789
|
close(indexName: string, options?: RequestOptions): Promise<void>;
|
|
787
790
|
}
|
|
788
791
|
|
|
792
|
+
/**
|
|
793
|
+
* These methods count searches and manage the popular query suggestions of an
|
|
794
|
+
* index on a server, as `querySuggestions(engine)` does on an engine.
|
|
795
|
+
*
|
|
796
|
+
* @public
|
|
797
|
+
*/
|
|
798
|
+
interface QuerySuggestionOperations {
|
|
799
|
+
/**
|
|
800
|
+
* Replaces the popular query suggestions setting of an index. Turning the
|
|
801
|
+
* feature off deletes the search history of the index on the server and
|
|
802
|
+
* keeps its suggestions indexes.
|
|
803
|
+
*
|
|
804
|
+
* @param indexName - The server replaces the setting of this index.
|
|
805
|
+
* @param setting - This is the new setting, whose omitted limits take their defaults.
|
|
806
|
+
* @param options - This sets the signal, the deadline, and the headers for
|
|
807
|
+
* this request.
|
|
808
|
+
* @throws A `NarsilError` with `CONFIG_INVALID` when the setting breaks a
|
|
809
|
+
* limit, names a field the schema lacks, or turns the feature on for an index
|
|
810
|
+
* with device sync on or for a server without a key.
|
|
811
|
+
*/
|
|
812
|
+
updateQuerySuggestions(indexName: string, setting: QuerySuggestionsSetting, options?: RequestOptions): Promise<void>;
|
|
813
|
+
/**
|
|
814
|
+
* Reads the setting, the last build, the next scheduled build, and the
|
|
815
|
+
* suggestions indexes of an index.
|
|
816
|
+
*
|
|
817
|
+
* @param indexName - The server reports on this index.
|
|
818
|
+
* @param options - This sets the signal, the deadline, and the headers for
|
|
819
|
+
* this request.
|
|
820
|
+
* @returns The status of the index.
|
|
821
|
+
*/
|
|
822
|
+
querySuggestionsStatus(indexName: string, options?: RequestOptions): Promise<QuerySuggestionsStatus>;
|
|
823
|
+
/**
|
|
824
|
+
* Counts one search that a person followed with a click. The server takes
|
|
825
|
+
* the person and the group from its `identify` function, so this request
|
|
826
|
+
* carries the search alone.
|
|
827
|
+
*
|
|
828
|
+
* @param indexName - The index that the person searched.
|
|
829
|
+
* @param query - The search, which the server normalises before it counts it.
|
|
830
|
+
* @param options - This sets the signal, the deadline, and the headers for
|
|
831
|
+
* this request, such as the credentials that `identify` reads.
|
|
832
|
+
* @returns Whether the server counted the search, and why not where it didn't.
|
|
833
|
+
* @throws A `NarsilError` with `QUERY_SUGGESTIONS_NOT_ENABLED` when the index
|
|
834
|
+
* has the feature off or the server has no `identify` function.
|
|
835
|
+
*/
|
|
836
|
+
recordQuery(indexName: string, query: string, options?: RequestOptions): Promise<RecordQueryResult>;
|
|
837
|
+
/**
|
|
838
|
+
* Starts a build of the suggestions of an index. Follow the returned record
|
|
839
|
+
* with {@link TaskOperations.waitForTask}, whose `build` field reports the
|
|
840
|
+
* build once it ends.
|
|
841
|
+
*
|
|
842
|
+
* @param indexName - The server builds the suggestions of this index.
|
|
843
|
+
* @param options - This sets the signal, the deadline, and the headers for
|
|
844
|
+
* this request.
|
|
845
|
+
* @returns The record of the task that runs the build.
|
|
846
|
+
*/
|
|
847
|
+
buildQuerySuggestions(indexName: string, options?: RequestOptions): Promise<TaskRecord>;
|
|
848
|
+
/**
|
|
849
|
+
* Lists the phrases that enough people searched for, before the result
|
|
850
|
+
* checks of a build run.
|
|
851
|
+
*
|
|
852
|
+
* @param indexName - The source index.
|
|
853
|
+
* @param limit - The most phrases to list, from 1 to 1,000. Defaults to 100.
|
|
854
|
+
* @param options - This sets the signal, the deadline, and the headers for
|
|
855
|
+
* this request.
|
|
856
|
+
* @returns The phrases, most counted first.
|
|
857
|
+
*/
|
|
858
|
+
previewQuerySuggestions(indexName: string, limit?: number, options?: RequestOptions): Promise<QuerySuggestionsPreview>;
|
|
859
|
+
/**
|
|
860
|
+
* Reads the ban list of an index.
|
|
861
|
+
*
|
|
862
|
+
* @param indexName - The source index.
|
|
863
|
+
* @param options - This sets the signal, the deadline, and the headers for
|
|
864
|
+
* this request.
|
|
865
|
+
* @returns The banned phrases in their normal form.
|
|
866
|
+
*/
|
|
867
|
+
readQueryBans(indexName: string, options?: RequestOptions): Promise<string[]>;
|
|
868
|
+
/**
|
|
869
|
+
* Replaces the ban list of an index, and removes each newly banned phrase
|
|
870
|
+
* from every suggestions index of the index before it answers.
|
|
871
|
+
*
|
|
872
|
+
* @param indexName - The source index.
|
|
873
|
+
* @param bans - At most 1,000 phrases, which the server normalises.
|
|
874
|
+
* @param options - This sets the signal, the deadline, and the headers for
|
|
875
|
+
* this request.
|
|
876
|
+
* @returns The stored ban list.
|
|
877
|
+
*/
|
|
878
|
+
replaceQueryBans(indexName: string, bans: string[], options?: RequestOptions): Promise<string[]>;
|
|
879
|
+
/**
|
|
880
|
+
* Bans a phrase and removes it from every suggestions index of an index.
|
|
881
|
+
*
|
|
882
|
+
* @param indexName - The source index.
|
|
883
|
+
* @param query - The phrase, which the server normalises.
|
|
884
|
+
* @param options - This sets the signal, the deadline, and the headers for
|
|
885
|
+
* this request.
|
|
886
|
+
* @returns The number of suggestions indexes that held the phrase.
|
|
887
|
+
*/
|
|
888
|
+
removeQuery(indexName: string, query: string, options?: RequestOptions): Promise<number>;
|
|
889
|
+
/**
|
|
890
|
+
* Adds a suggestion by hand, which a build leaves in place.
|
|
891
|
+
*
|
|
892
|
+
* @param indexName - The source index.
|
|
893
|
+
* @param suggestion - The group, the phrase, and its count.
|
|
894
|
+
* @param options - This sets the signal, the deadline, and the headers for
|
|
895
|
+
* this request.
|
|
896
|
+
* @returns The name of the suggestions index that holds the phrase.
|
|
897
|
+
*/
|
|
898
|
+
addManualSuggestion(indexName: string, suggestion: ManualQuerySuggestion, options?: RequestOptions): Promise<string>;
|
|
899
|
+
}
|
|
900
|
+
|
|
789
901
|
/**
|
|
790
902
|
* These methods search an index over HTTP.
|
|
791
903
|
*
|
|
@@ -1113,7 +1225,7 @@ interface TaskOperations {
|
|
|
1113
1225
|
*
|
|
1114
1226
|
* @public
|
|
1115
1227
|
*/
|
|
1116
|
-
interface NarsilClient extends IndexOperations, DocumentOperations, BulkOperations, SearchOperations, TaskOperations, AdminOperations, BackupOperations, ServerOperations, SyncSettingOperations {
|
|
1228
|
+
interface NarsilClient extends IndexOperations, DocumentOperations, BulkOperations, SearchOperations, TaskOperations, AdminOperations, BackupOperations, ServerOperations, SyncSettingOperations, QuerySuggestionOperations {
|
|
1117
1229
|
}
|
|
1118
1230
|
/**
|
|
1119
1231
|
* Builds a client for one Narsil server, or for a list of them that it moves
|
|
@@ -1134,4 +1246,4 @@ interface NarsilClient extends IndexOperations, DocumentOperations, BulkOperatio
|
|
|
1134
1246
|
*/
|
|
1135
1247
|
declare function createNarsilClient(options: NarsilClientOptions): NarsilClient;
|
|
1136
1248
|
|
|
1137
|
-
export { type AdminOperations as A, type BackupOperations as B, type DocumentOperations as D, type FetchFunction as F, type ImportSource as I, type NarsilClient as N, type PutResult as P, type RequestOptions as R, type SearchOperations as S, type TaskOperations as T, type WaitForTaskOptions as W, type BulkOperations as a, type IndexOperations as b, type NarsilClientOptions as c, type ServerOperations as d, type ServerVersion as e, type SyncSettingOperations as f, type SyncSnapshotDownload as g, type SyncSnapshotResume as h, createNarsilClient as i };
|
|
1249
|
+
export { type AdminOperations as A, type BackupOperations as B, type DocumentOperations as D, type FetchFunction as F, type ImportSource as I, type NarsilClient as N, type PutResult as P, type QuerySuggestionOperations as Q, type RequestOptions as R, type SearchOperations as S, type TaskOperations as T, type WaitForTaskOptions as W, type BulkOperations as a, type IndexOperations as b, type NarsilClientOptions as c, type ServerOperations as d, type ServerVersion as e, type SyncSettingOperations as f, type SyncSnapshotDownload as g, type SyncSnapshotResume as h, createNarsilClient as i };
|
package/dist/client.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export { B as BackupListing, a as BackupSummary, D as DamagedBackup } 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, e as SyncSetting, i as isNarsilError } from './
|
|
3
|
-
export { A as ASYNC_IMPORT_CAPABILITY, B as BM25_TUNING_CAPABILITY, C as CHANGE_ANALYSIS_CAPABILITY, D as DOCUMENT_EXPORT_CAPABILITY, E as ErrorEnvelope, I as INDEX_LIFECYCLE_CAPABILITY, R as REBUILD_ANALYSIS_CAPABILITY, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-
|
|
4
|
-
export { B as BackupListResponse, C as CapabilitiesResponse, a as ChangeAnalysisBody, b as CreateIndexEmbedding, E as ErrorDetail, H as HttpIndexConfig, I as ImportError, c as ImportResult, M as MemoryStatsResponse, R as RestoreBackupBody, T as TaskListPage, d as TaskListQuery, e as TaskProgress, f as TaskRecord, g as TaskStatus, h as TaskStepProgress, i as TaskType } from './tasks-
|
|
5
|
-
export {
|
|
6
|
-
|
|
1
|
+
export { B as BackupListing, a as BackupSummary, D as DamagedBackup } from './config-DMwffLKn.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, e as SnapshotOptions, f as SyncSetting, i as isNarsilError } from './engine-CFxPYqEk.js';
|
|
3
|
+
export { A as ASYNC_IMPORT_CAPABILITY, B as BM25_TUNING_CAPABILITY, C as CHANGE_ANALYSIS_CAPABILITY, D as DOCUMENT_EXPORT_CAPABILITY, E as ErrorEnvelope, I as INDEX_LIFECYCLE_CAPABILITY, R as REBUILD_ANALYSIS_CAPABILITY, S as SERVER_CAPABILITIES, a as SYNONYMS_CAPABILITY, T as TASK_CANCEL_CAPABILITY, b as TASK_FILTER_CAPABILITY } from './capabilities-Da4ywVVl.js';
|
|
4
|
+
export { B as BackupListResponse, C as CapabilitiesResponse, a as ChangeAnalysisBody, b as CreateIndexEmbedding, E as ErrorDetail, H as HttpIndexConfig, I as ImportError, c as ImportResult, M as MemoryStatsResponse, R as RestoreBackupBody, T as TaskListPage, d as TaskListQuery, e as TaskProgress, f as TaskRecord, g as TaskStatus, h as TaskStepProgress, i as TaskType } from './tasks-qrJojgST.js';
|
|
5
|
+
export { M as ManualQuerySuggestion, Q as QuerySuggestionPreviewEntry, a as QuerySuggestionsBuild, b as QuerySuggestionsBuildTrigger, c as QuerySuggestionsPreview, d as QuerySuggestionsSetting, e as QuerySuggestionsStatus, R as RecordQueryOutcome, f as RecordQueryResult } from './query-suggestions-CBYkrQ5T.js';
|
|
6
|
+
export { A as AdminOperations, B as BackupOperations, a as BulkOperations, D as DocumentOperations, F as FetchFunction, I as ImportSource, b as IndexOperations, N as NarsilClient, c as NarsilClientOptions, P as PutResult, Q as QuerySuggestionOperations, R as RequestOptions, S as SearchOperations, d as ServerOperations, e as ServerVersion, f as SyncSettingOperations, g as SyncSnapshotDownload, h as SyncSnapshotResume, T as TaskOperations, W as WaitForTaskOptions, i as createNarsilClient } from './client-DRv7UVeY.js';
|
|
7
|
+
import './config-CoSig5Ox.js';
|
|
7
8
|
import './adapters-pljAqmrC.js';
|
|
8
|
-
import './schema-
|
|
9
|
+
import './schema-Jwt928nJ.js';
|
|
9
10
|
import './synonyms-CpOAHPa-.js';
|
|
10
|
-
import './index-
|
|
11
|
+
import './index-C4AmUnl1.js';
|
|
11
12
|
import './types-DvncmvuQ.js';
|