@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.
Files changed (329) hide show
  1. package/NOTICE +45 -0
  2. package/README.md +1 -0
  3. package/dist/adapters/filesystem.mjs +2 -2
  4. package/dist/adapters/gcs.mjs +2 -2
  5. package/dist/adapters/indexeddb.mjs +1 -1
  6. package/dist/adapters/s3.mjs +2 -2
  7. package/dist/{analysis-change-4GCRVRBW.mjs → analysis-change-5BQOQ4BF.mjs} +35 -28
  8. package/dist/{react-native/chunks/analysis-change-entry-TNLUC6IZ.mjs → analysis-change-entry-TXX6JSMX.mjs} +1 -1
  9. package/dist/archive-history-E4R73RWD.mjs +29 -0
  10. package/dist/browser/{analysis-change-IXWPXXJJ.mjs → analysis-change-435CUEPZ.mjs} +32 -12
  11. package/dist/{analysis-change-entry-KYGSXW4K.mjs → browser/analysis-change-entry-HZXKPPGV.mjs} +1 -1
  12. package/dist/browser/archive-history-4IP5XQZY.mjs +29 -0
  13. package/dist/browser/{chunk-4PD752F6.mjs → chunk-23XRXIBW.mjs} +1 -1
  14. package/dist/browser/{chunk-J433A7P3.mjs → chunk-2CFI5VVV.mjs} +5 -5
  15. package/dist/{react-native/chunks/chunk-3XKMRNRE.mjs → browser/chunk-2TI4SSUP.mjs} +27 -10
  16. package/dist/browser/chunk-3SSRJMFN.mjs +100 -0
  17. package/dist/browser/{chunk-2SHAKW2Z.mjs → chunk-3V7DNNZL.mjs} +515 -733
  18. package/dist/browser/{chunk-C4KS2QNF.mjs → chunk-4NGKC4H4.mjs} +9 -9
  19. package/dist/browser/{chunk-XRV72TJD.mjs → chunk-6LWDPLTB.mjs} +2 -2
  20. package/dist/browser/chunk-7IGKGWSQ.mjs +79 -0
  21. package/dist/browser/{chunk-VCOYGVP7.mjs → chunk-7U3WVJUP.mjs} +3 -3
  22. package/dist/browser/chunk-ATEBYXP6.mjs +10 -0
  23. package/dist/browser/chunk-BHFQATSC.mjs +432 -0
  24. package/dist/browser/chunk-CRE3G7F3.mjs +1007 -0
  25. package/dist/browser/{chunk-QXTPSX2H.mjs → chunk-EA63E3D2.mjs} +7 -7
  26. package/dist/{react-native/chunks/chunk-DCKMICOB.mjs → browser/chunk-EXQZGUQH.mjs} +1 -1
  27. package/dist/browser/{chunk-ML6HY7T7.mjs → chunk-G64Q6OJF.mjs} +1 -1
  28. package/dist/browser/chunk-GPPOG6PT.mjs +9 -0
  29. package/dist/browser/{chunk-EUNBNLKM.mjs → chunk-IZXVW2ZJ.mjs} +5 -5
  30. package/dist/browser/{chunk-G7LUMBSG.mjs → chunk-K4Q6KX3R.mjs} +30 -20
  31. package/dist/browser/{chunk-H6QFBMVE.mjs → chunk-KZWSX6BH.mjs} +3 -3
  32. package/dist/browser/chunk-M3MQE2X7.mjs +151 -0
  33. package/dist/browser/chunk-MGI4BCXC.mjs +63 -0
  34. package/dist/browser/chunk-MOG4OVDK.mjs +51 -0
  35. package/dist/browser/{chunk-W5X2UFWQ.mjs → chunk-NLWTBAGB.mjs} +12 -3
  36. package/dist/browser/{chunk-AYY6PIKL.mjs → chunk-NQAME3RK.mjs} +2 -2
  37. package/dist/browser/{chunk-7MEYN7V6.mjs → chunk-NXQG7DRA.mjs} +29 -14
  38. package/dist/browser/chunk-OEDCEZXJ.mjs +92 -0
  39. package/dist/{chunk-KUZKUONM.mjs → browser/chunk-SRMZXJSL.mjs} +1 -0
  40. package/dist/browser/chunk-SSTPBZZX.mjs +1106 -0
  41. package/dist/browser/{chunk-7TTWXUH6.mjs → chunk-STOWQFT3.mjs} +3 -2
  42. package/dist/browser/{chunk-26A5JFT2.mjs → chunk-TK63WFXK.mjs} +2 -1
  43. package/dist/browser/{chunk-SJB6VIZG.mjs → chunk-U3JOQGWX.mjs} +1 -1
  44. package/dist/browser/{chunk-AJ4HHOVT.mjs → chunk-U4YDIBUT.mjs} +4 -4
  45. package/dist/browser/{chunk-2FX6ROWR.mjs → chunk-VLJQW4J6.mjs} +2986 -2986
  46. package/dist/{react-native/chunks/chunk-3O57C2ZO.mjs → browser/chunk-WI4MR75E.mjs} +2 -2
  47. package/dist/browser/{chunk-3U3QR5YP.mjs → chunk-WN464PTL.mjs} +2 -2
  48. package/dist/browser/{chunk-U2E3HMYW.mjs → chunk-XAWNZ4G2.mjs} +11 -11
  49. package/dist/browser/{cold-module-VTUGDYNY.mjs → cold-module-2EHCIV4K.mjs} +20 -18
  50. package/dist/browser/durability-config-TIYKW6XX.mjs +89 -0
  51. package/dist/browser/{durability-wiring-GL4A7KDV.mjs → durability-wiring-A7BVG2DW.mjs} +50 -153
  52. package/dist/browser/engine-hooks-E4UD67JD.mjs +17 -0
  53. package/dist/browser/geo-index-HHWGMNIS.mjs +1386 -0
  54. package/dist/browser/import-DXYB6756.mjs +19 -0
  55. package/dist/browser/{methods-LMUTS7OI.mjs → methods-KTQCSIN4.mjs} +3 -3
  56. package/dist/browser/{module-M4JNBV6V.mjs → module-NIYMEA5R.mjs} +16 -14
  57. package/dist/browser/{module-EC3FYW7N.mjs → module-TCT66FWA.mjs} +10 -9
  58. package/dist/browser/operations-OJ3BXS55.mjs +5 -0
  59. package/dist/browser/{phrase-module-NPYUVX75.mjs → phrase-module-HAT3TLZN.mjs} +2 -2
  60. package/dist/browser/{pool-WCGDZHJP.mjs → pool-3JLET5RO.mjs} +1 -1
  61. package/dist/browser/restore-hooks-YPN4ZFCY.mjs +114 -0
  62. package/dist/browser/restore-queue-G3RQGL3Y.mjs +55 -0
  63. package/dist/browser/{retention-6QMRS5VK.mjs → retention-ZWVMNC3Q.mjs} +18 -15
  64. package/dist/browser/{runtime-3EW2AGB6.mjs → runtime-OTAGEFQW.mjs} +1 -1
  65. package/dist/browser/{snapshot-DN3CRVUQ.mjs → snapshot-VEQNIE6C.mjs} +71 -36
  66. package/dist/browser/start-BM442C6R.mjs +25 -0
  67. package/dist/browser/{write-WAWAFGKQ.mjs → write-2EVMZWDE.mjs} +16 -14
  68. package/dist/{capabilities-B3Brs1Rc.d.ts → capabilities-Da4ywVVl.d.ts} +35 -3
  69. package/dist/{chunk-K4B7OH65.mjs → chunk-25KDNIZZ.mjs} +2 -2
  70. package/dist/{chunk-O43Z4MS6.mjs → chunk-2NE7VCYE.mjs} +2 -2
  71. package/dist/chunk-2UV4QBHW.mjs +1092 -0
  72. package/dist/{chunk-3Y3J4V2R.mjs → chunk-3C7MTCCI.mjs} +1 -1
  73. package/dist/{chunk-TRISKD4Q.mjs → chunk-3HYC4JRF.mjs} +2 -2
  74. package/dist/{chunk-HVYICDY3.mjs → chunk-3OH67G7R.mjs} +1 -1
  75. package/dist/{chunk-PFKM7VNZ.mjs → chunk-46KY2PJD.mjs} +30 -11
  76. package/dist/{chunk-IJU7LL7D.mjs → chunk-4KKXNJM6.mjs} +5 -5
  77. package/dist/{chunk-IQ4R2I6N.mjs → chunk-5FLRXF73.mjs} +5 -1
  78. package/dist/{chunk-BPSKLCS7.mjs → chunk-5VV4R6P7.mjs} +3017 -3017
  79. package/dist/chunk-5YNRKI2C.mjs +81 -0
  80. package/dist/chunk-6HTGOXIK.mjs +875 -0
  81. package/dist/{chunk-7HCZWC7B.mjs → chunk-6I6AYAXS.mjs} +50 -8
  82. package/dist/{chunk-C6ASEFZI.mjs → chunk-6OEGXLBX.mjs} +1 -1
  83. package/dist/{chunk-DVWYODEB.mjs → chunk-6RC4K46J.mjs} +2 -2
  84. package/dist/chunk-7GFE3PEY.mjs +40 -0
  85. package/dist/{chunk-QKZHLADX.mjs → chunk-7LXHHCXZ.mjs} +28 -19
  86. package/dist/{chunk-JUKYYXSP.mjs → chunk-7V5IUP2T.mjs} +1 -31
  87. package/dist/{react-native/chunks/chunk-7GWPJDOA.mjs → chunk-A4L7YTKX.mjs} +53 -90
  88. package/dist/{chunk-Z3TNWCI5.mjs → chunk-BU4SAIC4.mjs} +3 -3
  89. package/dist/chunk-BWZ3P4MU.mjs +20 -0
  90. package/dist/{chunk-OKX2BBNW.mjs → chunk-CITFCZKF.mjs} +5 -4
  91. package/dist/{chunk-4HWZV5MK.mjs → chunk-CSLGFPFQ.mjs} +5 -5
  92. package/dist/chunk-DP5C7YFQ.mjs +543 -0
  93. package/dist/{chunk-RVKFI3A2.mjs → chunk-DWEPMFJE.mjs} +11 -8
  94. package/dist/{chunk-LSM2YTKM.mjs → chunk-EFBDHH5P.mjs} +87 -144
  95. package/dist/{chunk-NZMAXR2S.mjs → chunk-FAKFUDZZ.mjs} +121 -11
  96. package/dist/chunk-FB6463IN.mjs +1499 -0
  97. package/dist/{chunk-REL7LFLR.mjs → chunk-FCJ553HS.mjs} +3 -3
  98. package/dist/{chunk-MMEMEUOO.mjs → chunk-FJKKCV4D.mjs} +2 -2
  99. package/dist/{chunk-K7KLL263.mjs → chunk-FNGAM5B7.mjs} +14 -13
  100. package/dist/{chunk-DMQPFLGI.mjs → chunk-FRBFVQFN.mjs} +6 -5
  101. package/dist/{chunk-IBNLW3AV.mjs → chunk-FYOVBEMM.mjs} +20 -6
  102. package/dist/chunk-G6HRSGOU.mjs +74 -0
  103. package/dist/{chunk-USR7FQRZ.mjs → chunk-GH4WQ22V.mjs} +2 -2
  104. package/dist/chunk-GQPTDQCL.mjs +54 -0
  105. package/dist/{chunk-VREK3MYG.mjs → chunk-HFPMMRQT.mjs} +3 -3
  106. package/dist/{chunk-MLHNSAPK.mjs → chunk-HHBUCIUY.mjs} +3 -3
  107. package/dist/{chunk-YROWNOMH.mjs → chunk-HJJI72X7.mjs} +1 -1
  108. package/dist/{chunk-ECX4SGX6.mjs → chunk-I2KPOLOZ.mjs} +9 -9
  109. package/dist/{chunk-TV2L3BN7.mjs → chunk-I53G4JAU.mjs} +266 -265
  110. package/dist/{chunk-3A5KI24C.mjs → chunk-I54T6CQP.mjs} +1 -1
  111. package/dist/{chunk-NTZOXVUZ.mjs → chunk-I5B7RXU7.mjs} +93 -24
  112. package/dist/{chunk-YBJDOA2T.mjs → chunk-INJYO3BU.mjs} +1 -1
  113. package/dist/{react-native/chunks/chunk-KWRW5U65.mjs → chunk-J4IJTTEX.mjs} +1 -1
  114. package/dist/{chunk-X6NSJYQ3.mjs → chunk-JDJBQLRO.mjs} +13 -13
  115. package/dist/{chunk-MMBEANB2.mjs → chunk-JWRUUCWD.mjs} +3 -3
  116. package/dist/{chunk-AO2FAYIZ.mjs → chunk-K4ZIGL2O.mjs} +1 -1
  117. package/dist/{chunk-JFNKIBDT.mjs → chunk-K5QFDYST.mjs} +2 -2
  118. package/dist/{chunk-C73JLU4E.mjs → chunk-KF4EXSM4.mjs} +2 -2
  119. package/dist/{chunk-WCBA2LVZ.mjs → chunk-KHKIRS5D.mjs} +1 -1
  120. package/dist/{chunk-7QUGDVFC.mjs → chunk-KJ3RTZDJ.mjs} +1 -1
  121. package/dist/{chunk-HVKXNBFL.mjs → chunk-KKQC526K.mjs} +20 -12
  122. package/dist/chunk-KP7TYHWT.mjs +92 -0
  123. package/dist/{chunk-VMXSVVXG.mjs → chunk-L6V6BST3.mjs} +9 -22
  124. package/dist/{chunk-URPCYQVJ.mjs → chunk-LHKOSI2J.mjs} +1 -1
  125. package/dist/chunk-LNGE7SLY.mjs +151 -0
  126. package/dist/{react-native/chunks/chunk-CUNGPR5R.mjs → chunk-MP7ABPTD.mjs} +1 -0
  127. package/dist/{chunk-5KGYQT6W.mjs → chunk-MQOJIO5B.mjs} +26 -9
  128. package/dist/{chunk-Q3TCTQCC.mjs → chunk-NF4DT3IH.mjs} +1 -1
  129. package/dist/{chunk-3OFU3NJT.mjs → chunk-OIJ64LGT.mjs} +1 -1
  130. package/dist/chunk-ORN5BLL7.mjs +11 -0
  131. package/dist/{chunk-HWEDFLB7.mjs → chunk-P5ZI2P2W.mjs} +126 -1701
  132. package/dist/{chunk-466PYR4P.mjs → chunk-PWC4VB3Q.mjs} +2 -2
  133. package/dist/{chunk-B7S6YEBP.mjs → chunk-QJVOLKU6.mjs} +12 -3
  134. package/dist/{chunk-KCUIFVVW.mjs → chunk-QOW2JPUI.mjs} +9 -9
  135. package/dist/chunk-RDXO6JST.mjs +63 -0
  136. package/dist/chunk-RLOES5SX.mjs +31 -0
  137. package/dist/{chunk-YPUEV6ZC.mjs → chunk-RVGRFOGN.mjs} +1 -1
  138. package/dist/{chunk-JCLTESFN.mjs → chunk-RZWWB2XR.mjs} +1 -1
  139. package/dist/chunk-S5LN746F.mjs +10 -0
  140. package/dist/chunk-SA5LOGO3.mjs +470 -0
  141. package/dist/chunk-SQJWAIF4.mjs +12 -0
  142. package/dist/{chunk-YTJCGKM4.mjs → chunk-TBC3XUL2.mjs} +29 -6
  143. package/dist/chunk-TDIK6NTV.mjs +10 -0
  144. package/dist/chunk-TGS5UXBE.mjs +216 -0
  145. package/dist/{chunk-CP5RRPJR.mjs → chunk-TQXHPFWT.mjs} +1 -1
  146. package/dist/{chunk-7NTMUDC5.mjs → chunk-TZ3355VS.mjs} +5 -5
  147. package/dist/{chunk-Q7MS6P2J.mjs → chunk-TZTRKM33.mjs} +2 -2
  148. package/dist/{chunk-4UMZ7KQL.mjs → chunk-U55XJEIG.mjs} +2 -1
  149. package/dist/{chunk-S2N75OTN.mjs → chunk-UHICS3JI.mjs} +1 -1
  150. package/dist/{chunk-5FUOVJKG.mjs → chunk-VTTRFF2C.mjs} +32 -19
  151. package/dist/{chunk-62G63NMH.mjs → chunk-WX4LAO6M.mjs} +4 -4
  152. package/dist/{chunk-LTUGDMV4.mjs → chunk-WZ7YV54N.mjs} +1 -1
  153. package/dist/chunk-XAXKV65G.mjs +72 -0
  154. package/dist/chunk-XXHN7J46.mjs +101 -0
  155. package/dist/{chunk-PGVPE7GJ.mjs → chunk-YEKL4JBK.mjs} +1 -1
  156. package/dist/chunk-YTWZVGCB.mjs +382 -0
  157. package/dist/chunk-Z2KAFCRT.mjs +30 -0
  158. package/dist/{chunk-LKUE5GXS.mjs → chunk-ZKP7G7TV.mjs} +2 -2
  159. package/dist/{client-Df76GNKm.d.ts → client-DRv7UVeY.d.ts} +123 -11
  160. package/dist/client.d.ts +9 -8
  161. package/dist/client.mjs +65 -3
  162. package/dist/{cold-module-YLWMTTZG.mjs → cold-module-6MO2XJF2.mjs} +45 -39
  163. package/dist/{config-B8DP2VwR.d.ts → config-CoSig5Ox.d.ts} +22 -3
  164. package/dist/{config-05G_hy-1.d.ts → config-DMwffLKn.d.ts} +20 -5
  165. package/dist/direct-executor-FTMYY3TI.mjs +34 -0
  166. package/dist/distribution/coordinator/etcd.d.ts +2 -2
  167. package/dist/distribution/coordinator/etcd.mjs +3 -3
  168. package/dist/distribution/coordinator/in-memory.d.ts +2 -2
  169. package/dist/distribution/coordinator/in-memory.mjs +2 -2
  170. package/dist/distribution/transport/grpc.mjs +4 -4
  171. package/dist/distribution/transport/in-memory.mjs +2 -2
  172. package/dist/distribution/transport/tcp.mjs +3 -3
  173. package/dist/distribution.d.ts +8 -8
  174. package/dist/distribution.mjs +6799 -5939
  175. package/dist/durability-config-GE4U7MCZ.mjs +89 -0
  176. package/dist/{durability-wiring-RHLXDIVF.mjs → durability-wiring-VIF5MOSY.mjs} +82 -179
  177. package/dist/embeddings/openai.mjs +2 -2
  178. package/dist/{sync-uXR7MmM7.d.ts → engine-CFxPYqEk.d.ts} +702 -2
  179. package/dist/engine-hooks-EGUGNZYE.mjs +54 -0
  180. package/dist/geo-index-MRH5JMIR.mjs +1387 -0
  181. package/dist/import-XKDPJQDP.mjs +56 -0
  182. package/dist/{index-nRqDM6uS.d.ts → index-C4AmUnl1.d.ts} +1 -1
  183. package/dist/index.browser.mjs +9 -7
  184. package/dist/index.d.ts +134 -9
  185. package/dist/index.mjs +33 -26
  186. package/dist/index.react-native.mjs +20 -17
  187. package/dist/invalidation/filesystem.mjs +2 -2
  188. package/dist/{long-query-thread-EMYTGSJP.mjs → long-query-thread-YA4IAYSY.mjs} +34 -28
  189. package/dist/{methods-ABM5ELBR.mjs → methods-7IOINERF.mjs} +3 -3
  190. package/dist/{module-MG7JMV2U.mjs → module-FQ4JWNQJ.mjs} +41 -34
  191. package/dist/{module-3OMJZUFT.mjs → module-N55W4Q5C.mjs} +14 -14
  192. package/dist/operations-G5EP6JPX.mjs +5 -0
  193. package/dist/{paged-partition-archive-UOLHOEZJ.mjs → paged-partition-archive-PXW5XAYU.mjs} +48 -38
  194. package/dist/partial-words.mjs +11 -9
  195. package/dist/pattern.mjs +6 -5
  196. package/dist/persistence/durability/checkpoint-worker.d.ts +8 -1
  197. package/dist/persistence/durability/checkpoint-worker.mjs +44 -35
  198. package/dist/{phrase-module-O3MDRQXP.mjs → phrase-module-XW5MKWP5.mjs} +4 -3
  199. package/dist/{pool-CQXYPFLG.mjs → pool-Y4A46T36.mjs} +1 -1
  200. package/dist/query-suggestions/merge-worker.d.ts +55 -0
  201. package/dist/query-suggestions/merge-worker.mjs +88 -0
  202. package/dist/query-suggestions-CBYkrQ5T.d.ts +311 -0
  203. package/dist/query-suggestions.browser.mjs +247 -0
  204. package/dist/query-suggestions.d.ts +20 -0
  205. package/dist/query-suggestions.mjs +69 -0
  206. package/dist/react-native/chunks/{analysis-change-EAYO3Y6Q.mjs → analysis-change-LT5QBQ3H.mjs} +43 -22
  207. package/dist/{browser/analysis-change-entry-FCSHFQSS.mjs → react-native/chunks/analysis-change-entry-SCVWK6OU.mjs} +1 -1
  208. package/dist/react-native/chunks/archive-history-MJKUQLSU.mjs +29 -0
  209. package/dist/{chunk-ZIFJXCKA.mjs → react-native/chunks/chunk-2PRHILX3.mjs} +54 -20
  210. package/dist/react-native/chunks/{chunk-VQSKZ3EZ.mjs → chunk-3JWDECAZ.mjs} +8 -8
  211. package/dist/{chunk-R6A773WK.mjs → react-native/chunks/chunk-3WI35N75.mjs} +1 -1
  212. package/dist/react-native/chunks/{chunk-75VWIY35.mjs → chunk-4DII3ZSM.mjs} +1 -1
  213. package/dist/react-native/chunks/{chunk-NKIZX26F.mjs → chunk-4J74WHQM.mjs} +2 -2
  214. package/dist/react-native/chunks/{chunk-UWDNZDWK.mjs → chunk-4JYO3JD2.mjs} +6 -6
  215. package/dist/react-native/chunks/chunk-5CQX3XXV.mjs +17 -0
  216. package/dist/react-native/chunks/chunk-6VBXNFLE.mjs +9 -0
  217. package/dist/react-native/chunks/{chunk-SJWDBRNP.mjs → chunk-6WA3C3DV.mjs} +1 -1
  218. package/dist/react-native/chunks/{chunk-OQQVRWZ2.mjs → chunk-C5G6TJ7A.mjs} +1 -1
  219. package/dist/react-native/chunks/{chunk-RVAEBN74.mjs → chunk-CKNRFDTZ.mjs} +1 -1
  220. package/dist/react-native/chunks/chunk-DIYDOIM4.mjs +10 -0
  221. package/dist/react-native/chunks/{chunk-O32RB3BL.mjs → chunk-DNXOMPAQ.mjs} +4 -4
  222. package/dist/react-native/chunks/{chunk-YBEW6YTR.mjs → chunk-DVDX4SDR.mjs} +2 -2
  223. package/dist/react-native/chunks/chunk-DXRSEWA2.mjs +12 -0
  224. package/dist/{browser/chunk-MYITLCHT.mjs → react-native/chunks/chunk-DZ7H7D2C.mjs} +1 -0
  225. package/dist/react-native/chunks/{chunk-PPEPTUVV.mjs → chunk-EJ33LCHV.mjs} +29 -6
  226. package/dist/react-native/chunks/{chunk-RYMDHGL4.mjs → chunk-ENLMYKSX.mjs} +3045 -3075
  227. package/dist/react-native/chunks/chunk-FHPW7P2O.mjs +40 -0
  228. package/dist/react-native/chunks/{chunk-JV6VQY2S.mjs → chunk-FTZHMRD2.mjs} +2 -1
  229. package/dist/react-native/chunks/{chunk-YHKZSLOC.mjs → chunk-G43IPIDG.mjs} +5 -5
  230. package/dist/react-native/chunks/{chunk-AUT7PMA4.mjs → chunk-GXX3DQXP.mjs} +8 -22
  231. package/dist/react-native/chunks/chunk-H3MDVPBO.mjs +151 -0
  232. package/dist/react-native/chunks/{chunk-DH3TVWWK.mjs → chunk-IYNT75CE.mjs} +12 -3
  233. package/dist/react-native/chunks/chunk-KV46CT4D.mjs +1007 -0
  234. package/dist/{browser/chunk-ZPTA75ZC.mjs → react-native/chunks/chunk-LZSLNSUN.mjs} +1 -1
  235. package/dist/react-native/chunks/{chunk-63YSZOXB.mjs → chunk-MIP4SOR6.mjs} +1480 -826
  236. package/dist/react-native/chunks/{chunk-ZBSWRSBG.mjs → chunk-MJDQU5MW.mjs} +1 -1
  237. package/dist/react-native/chunks/{chunk-GFYFQLJD.mjs → chunk-MUWD2H2S.mjs} +2 -2
  238. package/dist/react-native/chunks/{chunk-IOY2SM2P.mjs → chunk-MVXELMJX.mjs} +1 -1
  239. package/dist/{browser/chunk-TTD27VXX.mjs → react-native/chunks/chunk-NB3LP33V.mjs} +27 -10
  240. package/dist/react-native/chunks/{chunk-I5PGWQJF.mjs → chunk-PDRWWPKV.mjs} +33 -24
  241. package/dist/react-native/chunks/chunk-PJHAB5ZY.mjs +79 -0
  242. package/dist/react-native/chunks/{chunk-2CGSQM4O.mjs → chunk-POPDAGH6.mjs} +13 -13
  243. package/dist/react-native/chunks/{chunk-NP7DD4G5.mjs → chunk-QUKQNI3H.mjs} +5 -5
  244. package/dist/react-native/chunks/{chunk-EH5CFV6Z.mjs → chunk-RDWG33MM.mjs} +2 -2
  245. package/dist/react-native/chunks/{chunk-JX2RIAXH.mjs → chunk-SK2PWYDH.mjs} +5 -5
  246. package/dist/react-native/chunks/{chunk-ZYDKJXQJ.mjs → chunk-SUPXRTMD.mjs} +1 -1
  247. package/dist/react-native/chunks/chunk-TP6KCKER.mjs +63 -0
  248. package/dist/react-native/chunks/{chunk-JPAJWO6D.mjs → chunk-U4KSKA4Z.mjs} +1 -1
  249. package/dist/react-native/chunks/chunk-UQ4OAXKU.mjs +1106 -0
  250. package/dist/react-native/chunks/{chunk-VVFYOADG.mjs → chunk-VWUDIOT6.mjs} +6 -6
  251. package/dist/{browser/chunk-SIR3LMTV.mjs → react-native/chunks/chunk-WBYQRHDY.mjs} +2 -2
  252. package/dist/react-native/chunks/{chunk-C2H2QQFW.mjs → chunk-YH7QY657.mjs} +3 -3
  253. package/dist/react-native/chunks/{chunk-NCJS3WIY.mjs → chunk-YZW4CHM6.mjs} +51 -12
  254. package/dist/react-native/chunks/chunk-ZLWVW734.mjs +100 -0
  255. package/dist/react-native/chunks/chunk-ZXZFN7FI.mjs +432 -0
  256. package/dist/react-native/chunks/chunk-ZZT7CEN7.mjs +92 -0
  257. package/dist/react-native/chunks/{cold-module-TJL6AFAD.mjs → cold-module-KVZYUGRY.mjs} +31 -28
  258. package/dist/react-native/chunks/durability-config-QXVZEO7T.mjs +89 -0
  259. package/dist/react-native/chunks/{durability-wiring-RRDYJLLM.mjs → durability-wiring-34OYO32E.mjs} +60 -162
  260. package/dist/react-native/chunks/engine-hooks-M7JV46NH.mjs +30 -0
  261. package/dist/react-native/chunks/geo-index-PX3BIHAH.mjs +1387 -0
  262. package/dist/react-native/chunks/gzip.react-native-HLEPDKZ3.mjs +3 -0
  263. package/dist/react-native/chunks/import-H6AQREWI.mjs +32 -0
  264. package/dist/react-native/chunks/{methods-X6F36SJE.mjs → methods-6W5U4C3H.mjs} +3 -3
  265. package/dist/react-native/chunks/module-LBZPGOWH.mjs +36 -0
  266. package/dist/react-native/chunks/{module-S4DKSWMF.mjs → module-TTEVPRCW.mjs} +14 -13
  267. package/dist/react-native/chunks/operations-GNRMD6EX.mjs +5 -0
  268. package/dist/react-native/chunks/{phrase-module-JZ37TB7N.mjs → phrase-module-QK22HSQ2.mjs} +2 -2
  269. package/dist/react-native/chunks/{pool-RTGXJXPU.mjs → pool-JR3NJCAF.mjs} +1 -1
  270. package/dist/react-native/chunks/restore-hooks-IBGIY3DR.mjs +127 -0
  271. package/dist/react-native/chunks/restore-queue-ZZX54AH7.mjs +55 -0
  272. package/dist/react-native/chunks/{retention-PPCTP2VY.mjs → retention-EW4TTDFB.mjs} +29 -25
  273. package/dist/react-native/chunks/{runtime-KUATOLYB.mjs → runtime-R5E3TB3J.mjs} +1 -1
  274. package/dist/react-native/chunks/{snapshot-ZBIEOZTZ.mjs → snapshot-REYVIN3X.mjs} +80 -44
  275. package/dist/react-native/chunks/start-BQK6KN3R.mjs +38 -0
  276. package/dist/react-native/chunks/{write-2W4FTX7J.mjs → write-FQAYCZF5.mjs} +27 -24
  277. package/dist/react-native/partial-words.mjs +11 -9
  278. package/dist/react-native/pattern.mjs +4 -4
  279. package/dist/react-native/query-suggestions.mjs +260 -0
  280. package/dist/react-native/sync.mjs +78 -15
  281. package/dist/react-native/synonyms.mjs +95 -27
  282. package/dist/react.d.ts +11 -11
  283. package/dist/react.mjs +1 -0
  284. package/dist/{rerank-IZOB6NII.mjs → rerank-MQ37IYRV.mjs} +4 -4
  285. package/dist/rerankers/http.mjs +2 -2
  286. package/dist/restore-hooks-CDERDEF4.mjs +153 -0
  287. package/dist/restore-queue-7NNSTROA.mjs +55 -0
  288. package/dist/retention-QSVBBNRM.mjs +66 -0
  289. package/dist/{runtime-UZOC3NPY.mjs → runtime-COIUORCN.mjs} +5 -5
  290. package/dist/{schema-DDauvDOv.d.ts → schema-Jwt928nJ.d.ts} +1 -1
  291. package/dist/server.d.ts +108 -12
  292. package/dist/server.mjs +303 -50
  293. package/dist/{snapshot-NFX2EYN2.mjs → snapshot-RH4NSKIZ.mjs} +98 -61
  294. package/dist/start-MCKCOGIW.mjs +66 -0
  295. package/dist/sync/filesystem.d.ts +4 -4
  296. package/dist/sync/filesystem.mjs +6 -6
  297. package/dist/sync/indexeddb.d.ts +4 -4
  298. package/dist/sync/indexeddb.mjs +2 -2
  299. package/dist/sync.browser.mjs +74 -11
  300. package/dist/sync.d.ts +5 -5
  301. package/dist/sync.mjs +78 -16
  302. package/dist/synonyms.mjs +9 -8
  303. package/dist/{tasks-BShx8pdK.d.ts → tasks-qrJojgST.d.ts} +13 -5
  304. package/dist/thread-O4SBJJJS.mjs +50 -0
  305. package/dist/{types-SnO7_tAI.d.ts → types-BZCGjfLn.d.ts} +2 -3
  306. package/dist/vector/search-worker.d.ts +1 -1
  307. package/dist/vector/search-worker.mjs +8 -8
  308. package/dist/workers/entry.mjs +19 -8
  309. package/dist/{write-FGB62BHQ.mjs → write-3FK7NG3Y.mjs} +40 -33
  310. package/openapi.json +798 -7
  311. package/package.json +32 -8
  312. package/dist/browser/import-YI5GNB4H.mjs +0 -17
  313. package/dist/browser/operations-WVYLF72Q.mjs +0 -5
  314. package/dist/browser/restore-queue-TYIGDL5L.mjs +0 -41
  315. package/dist/chunk-37IVJLP6.mjs +0 -44
  316. package/dist/chunk-DJHHF2L5.mjs +0 -17
  317. package/dist/direct-executor-FI5GJHWX.mjs +0 -29
  318. package/dist/engine-DYu-e0oR.d.ts +0 -674
  319. package/dist/import-SRBNC6TE.mjs +0 -49
  320. package/dist/operations-PGOAY2KS.mjs +0 -5
  321. package/dist/react-native/chunks/chunk-TJMSKBEM.mjs +0 -25
  322. package/dist/react-native/chunks/gzip.react-native-DNB5YNFA.mjs +0 -3
  323. package/dist/react-native/chunks/import-JYBMEJPQ.mjs +0 -29
  324. package/dist/react-native/chunks/module-QT5HZAY4.mjs +0 -33
  325. package/dist/react-native/chunks/operations-RYKTSZQA.mjs +0 -5
  326. package/dist/react-native/chunks/restore-queue-ZBVIKJWI.mjs +0 -41
  327. package/dist/restore-queue-COI2GSSK.mjs +0 -41
  328. package/dist/retention-55WA7GPU.mjs +0 -58
  329. package/dist/thread-P2G2FWM2.mjs +0 -44
package/openapi.json CHANGED
@@ -33,6 +33,9 @@
33
33
  },
34
34
  {
35
35
  "name": "Sync"
36
+ },
37
+ {
38
+ "name": "QuerySuggestions"
36
39
  }
37
40
  ],
38
41
  "paths": {
@@ -1616,6 +1619,19 @@
1616
1619
  "schema": {
1617
1620
  "type": "string"
1618
1621
  }
1622
+ },
1623
+ {
1624
+ "name": "queryHistory",
1625
+ "in": "query",
1626
+ "required": false,
1627
+ "description": "Under `true`, the archive also holds the index's search history.",
1628
+ "schema": {
1629
+ "type": "string",
1630
+ "enum": [
1631
+ "true",
1632
+ "false"
1633
+ ]
1634
+ }
1619
1635
  }
1620
1636
  ],
1621
1637
  "responses": {
@@ -2325,14 +2341,384 @@
2325
2341
  }
2326
2342
  }
2327
2343
  }
2328
- },
2329
- "206": {
2330
- "description": "The server answered with the byte range that the request asked for.",
2344
+ },
2345
+ "206": {
2346
+ "description": "The server answered with the byte range that the request asked for.",
2347
+ "content": {
2348
+ "application/x-tar": {
2349
+ "schema": {
2350
+ "type": "string",
2351
+ "format": "binary"
2352
+ }
2353
+ }
2354
+ }
2355
+ },
2356
+ "default": {
2357
+ "$ref": "#/components/responses/Error"
2358
+ }
2359
+ }
2360
+ }
2361
+ },
2362
+ "/indexes/{name}/query-suggestions": {
2363
+ "put": {
2364
+ "operationId": "updateQuerySuggestions",
2365
+ "summary": "Replace the popular query suggestions setting of an index",
2366
+ "tags": [
2367
+ "QuerySuggestions"
2368
+ ],
2369
+ "parameters": [
2370
+ {
2371
+ "name": "name",
2372
+ "in": "path",
2373
+ "required": true,
2374
+ "description": "The name of the index.",
2375
+ "schema": {
2376
+ "type": "string"
2377
+ }
2378
+ }
2379
+ ],
2380
+ "requestBody": {
2381
+ "required": true,
2382
+ "content": {
2383
+ "application/json": {
2384
+ "schema": {
2385
+ "$ref": "#/components/schemas/QuerySuggestionsSetting"
2386
+ }
2387
+ }
2388
+ }
2389
+ },
2390
+ "responses": {
2391
+ "200": {
2392
+ "description": "The server answered the request.",
2393
+ "content": {
2394
+ "application/json": {
2395
+ "schema": {
2396
+ "$ref": "#/components/schemas/OkResponse"
2397
+ }
2398
+ }
2399
+ }
2400
+ },
2401
+ "default": {
2402
+ "$ref": "#/components/responses/Error"
2403
+ }
2404
+ }
2405
+ },
2406
+ "get": {
2407
+ "operationId": "querySuggestionsStatus",
2408
+ "summary": "Report the setting, the last build, and the next build of popular query suggestions",
2409
+ "tags": [
2410
+ "QuerySuggestions"
2411
+ ],
2412
+ "parameters": [
2413
+ {
2414
+ "name": "name",
2415
+ "in": "path",
2416
+ "required": true,
2417
+ "description": "The name of the index.",
2418
+ "schema": {
2419
+ "type": "string"
2420
+ }
2421
+ }
2422
+ ],
2423
+ "responses": {
2424
+ "200": {
2425
+ "description": "The server answered the request.",
2426
+ "content": {
2427
+ "application/json": {
2428
+ "schema": {
2429
+ "$ref": "#/components/schemas/QuerySuggestionsStatus"
2430
+ }
2431
+ }
2432
+ }
2433
+ },
2434
+ "default": {
2435
+ "$ref": "#/components/responses/Error"
2436
+ }
2437
+ }
2438
+ }
2439
+ },
2440
+ "/indexes/{name}/query-suggestions/record": {
2441
+ "post": {
2442
+ "operationId": "recordQuery",
2443
+ "summary": "Count a search that a person followed with a click, for the person that the server identifies",
2444
+ "tags": [
2445
+ "QuerySuggestions"
2446
+ ],
2447
+ "parameters": [
2448
+ {
2449
+ "name": "name",
2450
+ "in": "path",
2451
+ "required": true,
2452
+ "description": "The name of the index.",
2453
+ "schema": {
2454
+ "type": "string"
2455
+ }
2456
+ }
2457
+ ],
2458
+ "requestBody": {
2459
+ "required": true,
2460
+ "content": {
2461
+ "application/json": {
2462
+ "schema": {
2463
+ "$ref": "#/components/schemas/RecordQueryBody"
2464
+ }
2465
+ }
2466
+ }
2467
+ },
2468
+ "responses": {
2469
+ "200": {
2470
+ "description": "The server answered the request.",
2471
+ "content": {
2472
+ "application/json": {
2473
+ "schema": {
2474
+ "$ref": "#/components/schemas/RecordQueryResult"
2475
+ }
2476
+ }
2477
+ }
2478
+ },
2479
+ "default": {
2480
+ "$ref": "#/components/responses/Error"
2481
+ }
2482
+ }
2483
+ }
2484
+ },
2485
+ "/indexes/{name}/query-suggestions/build": {
2486
+ "post": {
2487
+ "operationId": "buildQuerySuggestions",
2488
+ "summary": "Build the popular query suggestions of an index, as a task",
2489
+ "tags": [
2490
+ "QuerySuggestions"
2491
+ ],
2492
+ "parameters": [
2493
+ {
2494
+ "name": "name",
2495
+ "in": "path",
2496
+ "required": true,
2497
+ "description": "The name of the index.",
2498
+ "schema": {
2499
+ "type": "string"
2500
+ }
2501
+ }
2502
+ ],
2503
+ "responses": {
2504
+ "202": {
2505
+ "description": "The server accepted the work and started a task.",
2506
+ "content": {
2507
+ "application/json": {
2508
+ "schema": {
2509
+ "$ref": "#/components/schemas/TaskRecord"
2510
+ }
2511
+ }
2512
+ }
2513
+ },
2514
+ "default": {
2515
+ "$ref": "#/components/responses/Error"
2516
+ }
2517
+ }
2518
+ }
2519
+ },
2520
+ "/indexes/{name}/query-suggestions/preview": {
2521
+ "get": {
2522
+ "operationId": "previewQuerySuggestions",
2523
+ "summary": "List the phrases that the next build would publish",
2524
+ "tags": [
2525
+ "QuerySuggestions"
2526
+ ],
2527
+ "parameters": [
2528
+ {
2529
+ "name": "name",
2530
+ "in": "path",
2531
+ "required": true,
2532
+ "description": "The name of the index.",
2533
+ "schema": {
2534
+ "type": "string"
2535
+ }
2536
+ },
2537
+ {
2538
+ "name": "limit",
2539
+ "in": "query",
2540
+ "required": false,
2541
+ "description": "The most phrases to list, from 1 to 1,000, and 100 by default.",
2542
+ "schema": {
2543
+ "type": "number"
2544
+ }
2545
+ }
2546
+ ],
2547
+ "responses": {
2548
+ "200": {
2549
+ "description": "The server answered the request.",
2550
+ "content": {
2551
+ "application/json": {
2552
+ "schema": {
2553
+ "$ref": "#/components/schemas/QuerySuggestionsPreview"
2554
+ }
2555
+ }
2556
+ }
2557
+ },
2558
+ "default": {
2559
+ "$ref": "#/components/responses/Error"
2560
+ }
2561
+ }
2562
+ }
2563
+ },
2564
+ "/indexes/{name}/query-suggestions/bans": {
2565
+ "get": {
2566
+ "operationId": "readQueryBans",
2567
+ "summary": "Read the ban list of popular query suggestions",
2568
+ "tags": [
2569
+ "QuerySuggestions"
2570
+ ],
2571
+ "parameters": [
2572
+ {
2573
+ "name": "name",
2574
+ "in": "path",
2575
+ "required": true,
2576
+ "description": "The name of the index.",
2577
+ "schema": {
2578
+ "type": "string"
2579
+ }
2580
+ }
2581
+ ],
2582
+ "responses": {
2583
+ "200": {
2584
+ "description": "The server answered the request.",
2585
+ "content": {
2586
+ "application/json": {
2587
+ "schema": {
2588
+ "$ref": "#/components/schemas/QueryBansBody"
2589
+ }
2590
+ }
2591
+ }
2592
+ },
2593
+ "default": {
2594
+ "$ref": "#/components/responses/Error"
2595
+ }
2596
+ }
2597
+ },
2598
+ "put": {
2599
+ "operationId": "replaceQueryBans",
2600
+ "summary": "Replace the ban list, and remove each newly banned phrase from every suggestions index",
2601
+ "tags": [
2602
+ "QuerySuggestions"
2603
+ ],
2604
+ "parameters": [
2605
+ {
2606
+ "name": "name",
2607
+ "in": "path",
2608
+ "required": true,
2609
+ "description": "The name of the index.",
2610
+ "schema": {
2611
+ "type": "string"
2612
+ }
2613
+ }
2614
+ ],
2615
+ "requestBody": {
2616
+ "required": true,
2617
+ "content": {
2618
+ "application/json": {
2619
+ "schema": {
2620
+ "$ref": "#/components/schemas/QueryBansBody"
2621
+ }
2622
+ }
2623
+ }
2624
+ },
2625
+ "responses": {
2626
+ "200": {
2627
+ "description": "The server answered the request.",
2628
+ "content": {
2629
+ "application/json": {
2630
+ "schema": {
2631
+ "$ref": "#/components/schemas/QueryBansBody"
2632
+ }
2633
+ }
2634
+ }
2635
+ },
2636
+ "default": {
2637
+ "$ref": "#/components/responses/Error"
2638
+ }
2639
+ }
2640
+ }
2641
+ },
2642
+ "/indexes/{name}/query-suggestions/remove": {
2643
+ "post": {
2644
+ "operationId": "removeQuery",
2645
+ "summary": "Ban a phrase and remove it from every suggestions index of an index",
2646
+ "tags": [
2647
+ "QuerySuggestions"
2648
+ ],
2649
+ "parameters": [
2650
+ {
2651
+ "name": "name",
2652
+ "in": "path",
2653
+ "required": true,
2654
+ "description": "The name of the index.",
2655
+ "schema": {
2656
+ "type": "string"
2657
+ }
2658
+ }
2659
+ ],
2660
+ "requestBody": {
2661
+ "required": true,
2662
+ "content": {
2663
+ "application/json": {
2664
+ "schema": {
2665
+ "$ref": "#/components/schemas/RemoveQueryBody"
2666
+ }
2667
+ }
2668
+ }
2669
+ },
2670
+ "responses": {
2671
+ "200": {
2672
+ "description": "The server answered the request.",
2673
+ "content": {
2674
+ "application/json": {
2675
+ "schema": {
2676
+ "$ref": "#/components/schemas/RemoveQueryResponse"
2677
+ }
2678
+ }
2679
+ }
2680
+ },
2681
+ "default": {
2682
+ "$ref": "#/components/responses/Error"
2683
+ }
2684
+ }
2685
+ }
2686
+ },
2687
+ "/indexes/{name}/query-suggestions/manual": {
2688
+ "post": {
2689
+ "operationId": "addManualSuggestion",
2690
+ "summary": "Add a suggestion by hand, which a build leaves in place",
2691
+ "tags": [
2692
+ "QuerySuggestions"
2693
+ ],
2694
+ "parameters": [
2695
+ {
2696
+ "name": "name",
2697
+ "in": "path",
2698
+ "required": true,
2699
+ "description": "The name of the index.",
2700
+ "schema": {
2701
+ "type": "string"
2702
+ }
2703
+ }
2704
+ ],
2705
+ "requestBody": {
2706
+ "required": true,
2707
+ "content": {
2708
+ "application/json": {
2709
+ "schema": {
2710
+ "$ref": "#/components/schemas/ManualQuerySuggestion"
2711
+ }
2712
+ }
2713
+ }
2714
+ },
2715
+ "responses": {
2716
+ "200": {
2717
+ "description": "The server answered the request.",
2331
2718
  "content": {
2332
- "application/x-tar": {
2719
+ "application/json": {
2333
2720
  "schema": {
2334
- "type": "string",
2335
- "format": "binary"
2721
+ "$ref": "#/components/schemas/ManualSuggestionResponse"
2336
2722
  }
2337
2723
  }
2338
2724
  }
@@ -2931,6 +3317,10 @@
2931
3317
  "backup": {
2932
3318
  "type": "string",
2933
3319
  "description": "The backup's name, from 1 to 128 letters, digits, `.`, `_`, and `-`, starting with a letter or a digit."
3320
+ },
3321
+ "queryHistory": {
3322
+ "type": "boolean",
3323
+ "description": "Set this to true to add every node's popular query suggestion history of the index to the backup. The history holds the scrambled text of what people searched for, and the backup keeps it after `retentionDays` ends."
2934
3324
  }
2935
3325
  },
2936
3326
  "required": [
@@ -4436,6 +4826,41 @@
4436
4826
  ],
4437
4827
  "description": "The body of `GET /livez`."
4438
4828
  },
4829
+ "ManualQuerySuggestion": {
4830
+ "type": "object",
4831
+ "properties": {
4832
+ "group": {
4833
+ "type": "string",
4834
+ "description": "The group whose suggestions index takes the phrase."
4835
+ },
4836
+ "query": {
4837
+ "type": "string",
4838
+ "description": "The phrase, which the engine normalises."
4839
+ },
4840
+ "count": {
4841
+ "type": "number",
4842
+ "description": "The count that ranks the phrase. Defaults to 0."
4843
+ }
4844
+ },
4845
+ "required": [
4846
+ "group",
4847
+ "query"
4848
+ ],
4849
+ "description": "A suggestion that a caller adds by hand."
4850
+ },
4851
+ "ManualSuggestionResponse": {
4852
+ "type": "object",
4853
+ "properties": {
4854
+ "indexName": {
4855
+ "type": "string",
4856
+ "description": "The suggestions index that holds the phrase."
4857
+ }
4858
+ },
4859
+ "required": [
4860
+ "indexName"
4861
+ ],
4862
+ "description": "The answer of `POST /indexes/{name}/query-suggestions/manual`."
4863
+ },
4439
4864
  "MemoryStatsResponse": {
4440
4865
  "type": "object",
4441
4866
  "properties": {
@@ -4865,6 +5290,22 @@
4865
5290
  ],
4866
5291
  "description": "Snapshot of V8 heap usage as reported by `process.memoryUsage()`, with the limit the heap may grow to. All values are bytes. `null` in environments that do not expose `process.memoryUsage`, such as browsers."
4867
5292
  },
5293
+ "QueryBansBody": {
5294
+ "type": "object",
5295
+ "properties": {
5296
+ "bans": {
5297
+ "type": "array",
5298
+ "items": {
5299
+ "type": "string"
5300
+ },
5301
+ "description": "The banned phrases, at most 1,000, which the engine normalises."
5302
+ }
5303
+ },
5304
+ "required": [
5305
+ "bans"
5306
+ ],
5307
+ "description": "The body of `GET` and of `PUT /indexes/{name}/query-suggestions/bans`."
5308
+ },
4868
5309
  "QueryCoverage": {
4869
5310
  "type": "object",
4870
5311
  "properties": {
@@ -4893,6 +5334,278 @@
4893
5334
  ],
4894
5335
  "description": "How much of an index one search read, which is what you check before you trust a count or a ranking. An embedded engine reads every partition it holds, so `queriedPartitions` matches `totalPartitions` there and the other two stay zero. A search across a cluster may find a node slow or unreachable, which it counts here while still returning the hits the other nodes gave it."
4895
5336
  },
5337
+ "QuerySuggestionPreviewEntry": {
5338
+ "type": "object",
5339
+ "properties": {
5340
+ "group": {
5341
+ "type": "string",
5342
+ "description": "The group whose suggestions index would hold the phrase."
5343
+ },
5344
+ "query": {
5345
+ "type": "string",
5346
+ "description": "The normalised phrase."
5347
+ },
5348
+ "count": {
5349
+ "type": "number",
5350
+ "description": "The number of people whose searches the counts hold."
5351
+ }
5352
+ },
5353
+ "required": [
5354
+ "group",
5355
+ "query",
5356
+ "count"
5357
+ ],
5358
+ "description": "One phrase that a build would publish."
5359
+ },
5360
+ "QuerySuggestionsBuild": {
5361
+ "type": "object",
5362
+ "properties": {
5363
+ "buildId": {
5364
+ "type": "string",
5365
+ "description": "The ID of the build."
5366
+ },
5367
+ "trigger": {
5368
+ "$ref": "#/components/schemas/QuerySuggestionsBuildTrigger",
5369
+ "description": "What started the build."
5370
+ },
5371
+ "status": {
5372
+ "type": "string",
5373
+ "enum": [
5374
+ "running",
5375
+ "failed",
5376
+ "completed",
5377
+ "skipped"
5378
+ ],
5379
+ "description": "Where the build stands."
5380
+ },
5381
+ "startedAt": {
5382
+ "type": "number",
5383
+ "description": "When the build started, in milliseconds since the Unix epoch."
5384
+ },
5385
+ "endedAt": {
5386
+ "anyOf": [
5387
+ {
5388
+ "type": "null"
5389
+ },
5390
+ {
5391
+ "type": "number"
5392
+ }
5393
+ ],
5394
+ "description": "When the build ended, or null while it runs."
5395
+ },
5396
+ "published": {
5397
+ "type": "number",
5398
+ "description": "The phrases that the build added or updated."
5399
+ },
5400
+ "removed": {
5401
+ "type": "number",
5402
+ "description": "The phrases that the build removed."
5403
+ },
5404
+ "discarded": {
5405
+ "type": "number",
5406
+ "description": "The phrases that the build left out because the merge held its limit."
5407
+ },
5408
+ "errorCode": {
5409
+ "anyOf": [
5410
+ {
5411
+ "type": "null"
5412
+ },
5413
+ {
5414
+ "type": "string"
5415
+ }
5416
+ ],
5417
+ "description": "The error code of a failed build, or null."
5418
+ }
5419
+ },
5420
+ "required": [
5421
+ "buildId",
5422
+ "trigger",
5423
+ "status",
5424
+ "startedAt",
5425
+ "endedAt",
5426
+ "published",
5427
+ "removed",
5428
+ "discarded",
5429
+ "errorCode"
5430
+ ],
5431
+ "description": "One build of the suggestions of an index."
5432
+ },
5433
+ "QuerySuggestionsBuildTrigger": {
5434
+ "type": "string",
5435
+ "enum": [
5436
+ "schedule",
5437
+ "missed",
5438
+ "caller"
5439
+ ],
5440
+ "description": "What started a build."
5441
+ },
5442
+ "QuerySuggestionsPreview": {
5443
+ "type": "object",
5444
+ "properties": {
5445
+ "entries": {
5446
+ "type": "array",
5447
+ "items": {
5448
+ "$ref": "#/components/schemas/QuerySuggestionPreviewEntry"
5449
+ },
5450
+ "description": "The phrases, most counted first."
5451
+ },
5452
+ "truncated": {
5453
+ "type": "boolean",
5454
+ "description": "True where the list stops at the limit that the caller passed while more phrases wait to be checked."
5455
+ }
5456
+ },
5457
+ "required": [
5458
+ "entries",
5459
+ "truncated"
5460
+ ],
5461
+ "description": "What the next build would publish: the phrases that enough people searched for, that match enough documents, and that fall in a group the build keeps."
5462
+ },
5463
+ "QuerySuggestionsSetting": {
5464
+ "type": "object",
5465
+ "properties": {
5466
+ "enabled": {
5467
+ "type": "boolean",
5468
+ "description": "Set this to true to count searches for the index and build its suggestions."
5469
+ },
5470
+ "fields": {
5471
+ "type": "array",
5472
+ "items": {
5473
+ "type": "string"
5474
+ },
5475
+ "description": "The `string` and `string[]` fields whose text a phrase must match before the engine publishes it."
5476
+ },
5477
+ "minPeople": {
5478
+ "type": "number",
5479
+ "description": "The number of people, from 2 to 4,096, who must search a phrase before the engine publishes it. Defaults to 4."
5480
+ },
5481
+ "minResults": {
5482
+ "type": "number",
5483
+ "description": "The number of documents, from 1 to 10,000, that a phrase must match with every word. Defaults to 5."
5484
+ },
5485
+ "retentionDays": {
5486
+ "type": "number",
5487
+ "description": "The number of days, from 1 to 365, that the engine keeps the counts of a day. Defaults to 30."
5488
+ },
5489
+ "maxPhrasesPerDay": {
5490
+ "type": "number",
5491
+ "description": "The number of phrases, up to 16,384, that a node counts for the index each day. Defaults to 10,000."
5492
+ },
5493
+ "maxPhrasesPerPerson": {
5494
+ "type": "number",
5495
+ "description": "The number of phrases, up to 1,000, that a node counts for one person each day. Defaults to 100."
5496
+ },
5497
+ "maxPeoplePerDay": {
5498
+ "type": "number",
5499
+ "description": "The number of people, up to 100,000, that a node counts for the index each day. Defaults to 100,000."
5500
+ },
5501
+ "maxGroups": {
5502
+ "type": "number",
5503
+ "description": "The number of groups, up to 1,000, that the index counts. Defaults to 100."
5504
+ },
5505
+ "minLetters": {
5506
+ "type": "number",
5507
+ "description": "The number of letters that a phrase must hold. Defaults to 4."
5508
+ },
5509
+ "maxLength": {
5510
+ "type": "number",
5511
+ "description": "The number of characters, up to 150, that a phrase may hold. Defaults to 100."
5512
+ },
5513
+ "maxWords": {
5514
+ "type": "number",
5515
+ "description": "The number of words, up to 50, that a phrase may hold. Defaults to 8."
5516
+ },
5517
+ "maxDigits": {
5518
+ "type": "number",
5519
+ "description": "The number of digits that a phrase may hold in total. Defaults to 5."
5520
+ },
5521
+ "maxMergePhrases": {
5522
+ "type": "number",
5523
+ "description": "The number of phrases, up to 500,000, that one build merges. Defaults to 100,000."
5524
+ },
5525
+ "mergeMemoryBytes": {
5526
+ "type": "number",
5527
+ "description": "The memory, from 16 MiB to 1 GiB, of the worker that merges the counts. Defaults to 128 MiB."
5528
+ },
5529
+ "saveIntervalMs": {
5530
+ "type": "number",
5531
+ "description": "How often, from 1 second to 1 hour, a node saves the counts of the day. Defaults to 5 minutes."
5532
+ },
5533
+ "resultChecksPerSecond": {
5534
+ "type": "number",
5535
+ "description": "The number of result checks, up to 1,000, that a build runs each second. Defaults to 20."
5536
+ },
5537
+ "schedule": {
5538
+ "type": "string",
5539
+ "description": "A cron expression of five fields, or `off`. Defaults to `0 3 * * *`."
5540
+ },
5541
+ "timeZone": {
5542
+ "type": "string",
5543
+ "description": "The IANA time zone of `schedule`. Defaults to `UTC`."
5544
+ }
5545
+ },
5546
+ "required": [
5547
+ "enabled",
5548
+ "fields"
5549
+ ],
5550
+ "description": "The popular query suggestions setting of one index. Only `enabled` and `fields` are required, and each limit that you leave out takes its default."
5551
+ },
5552
+ "QuerySuggestionsStatus": {
5553
+ "type": "object",
5554
+ "properties": {
5555
+ "indexName": {
5556
+ "type": "string",
5557
+ "description": "The index."
5558
+ },
5559
+ "setting": {
5560
+ "anyOf": [
5561
+ {
5562
+ "type": "null"
5563
+ },
5564
+ {
5565
+ "$ref": "#/components/schemas/QuerySuggestionsSetting"
5566
+ }
5567
+ ],
5568
+ "description": "The setting, or null where nobody set one."
5569
+ },
5570
+ "lastBuild": {
5571
+ "anyOf": [
5572
+ {
5573
+ "type": "null"
5574
+ },
5575
+ {
5576
+ "$ref": "#/components/schemas/QuerySuggestionsBuild"
5577
+ }
5578
+ ],
5579
+ "description": "The last build, or null where none ran."
5580
+ },
5581
+ "nextBuildAt": {
5582
+ "anyOf": [
5583
+ {
5584
+ "type": "null"
5585
+ },
5586
+ {
5587
+ "type": "number"
5588
+ }
5589
+ ],
5590
+ "description": "When the schedule next matches, in milliseconds since the Unix epoch, or null where it is off."
5591
+ },
5592
+ "suggestionIndexes": {
5593
+ "type": "array",
5594
+ "items": {
5595
+ "type": "string"
5596
+ },
5597
+ "description": "The suggestions index of each group that holds one."
5598
+ }
5599
+ },
5600
+ "required": [
5601
+ "indexName",
5602
+ "setting",
5603
+ "lastBuild",
5604
+ "nextBuildAt",
5605
+ "suggestionIndexes"
5606
+ ],
5607
+ "description": "The setting, the last build, and the next scheduled build of one index."
5608
+ },
4896
5609
  "ReadinessResponse": {
4897
5610
  "type": "object",
4898
5611
  "properties": {
@@ -4924,6 +5637,79 @@
4924
5637
  },
4925
5638
  "description": "The body of `POST /indexes/{name}/_rebalance`."
4926
5639
  },
5640
+ "RecordQueryBody": {
5641
+ "type": "object",
5642
+ "properties": {
5643
+ "query": {
5644
+ "type": "string",
5645
+ "description": "The search that the person followed with a click."
5646
+ }
5647
+ },
5648
+ "required": [
5649
+ "query"
5650
+ ],
5651
+ "description": "The body of `POST /indexes/{name}/query-suggestions/record`. The server takes the person and the group from its `identify` function, so the body carries the search alone."
5652
+ },
5653
+ "RecordQueryOutcome": {
5654
+ "type": "string",
5655
+ "enum": [
5656
+ "recorded",
5657
+ "repeat",
5658
+ "invalid",
5659
+ "banned",
5660
+ "person-limit",
5661
+ "phrase-limit",
5662
+ "people-limit",
5663
+ "group-limit",
5664
+ "no-key",
5665
+ "unidentified"
5666
+ ],
5667
+ "description": "Why a node counted no search, or `recorded` where it counted one."
5668
+ },
5669
+ "RecordQueryResult": {
5670
+ "type": "object",
5671
+ "properties": {
5672
+ "recorded": {
5673
+ "type": "boolean",
5674
+ "description": "True where the node counted the search."
5675
+ },
5676
+ "outcome": {
5677
+ "$ref": "#/components/schemas/RecordQueryOutcome",
5678
+ "description": "Why the node counted it or left it out."
5679
+ }
5680
+ },
5681
+ "required": [
5682
+ "recorded",
5683
+ "outcome"
5684
+ ],
5685
+ "description": "What QuerySuggestions.recordQuery did with one search."
5686
+ },
5687
+ "RemoveQueryBody": {
5688
+ "type": "object",
5689
+ "properties": {
5690
+ "query": {
5691
+ "type": "string",
5692
+ "description": "The phrase to ban and to remove from every suggestions index of the index."
5693
+ }
5694
+ },
5695
+ "required": [
5696
+ "query"
5697
+ ],
5698
+ "description": "The body of `POST /indexes/{name}/query-suggestions/remove`."
5699
+ },
5700
+ "RemoveQueryResponse": {
5701
+ "type": "object",
5702
+ "properties": {
5703
+ "suggestionIndexes": {
5704
+ "type": "number",
5705
+ "description": "The number of suggestions indexes that held the phrase."
5706
+ }
5707
+ },
5708
+ "required": [
5709
+ "suggestionIndexes"
5710
+ ],
5711
+ "description": "The answer of `POST /indexes/{name}/query-suggestions/remove`."
5712
+ },
4927
5713
  "ReplicationFactorBody": {
4928
5714
  "type": "object",
4929
5715
  "properties": {
@@ -5429,6 +6215,10 @@
5429
6215
  "$ref": "#/components/schemas/ImportResult",
5430
6216
  "description": "What the work produced, which an `import` or `importExport` task reports once it finishes."
5431
6217
  },
6218
+ "build": {
6219
+ "$ref": "#/components/schemas/QuerySuggestionsBuild",
6220
+ "description": "The build that a `querySuggestionsBuild` task ran, once it ends."
6221
+ },
5432
6222
  "error": {
5433
6223
  "$ref": "#/components/schemas/ErrorDetail",
5434
6224
  "description": "This says why the task failed, and a failed task alone carries it."
@@ -5484,7 +6274,8 @@
5484
6274
  "changeAnalysis",
5485
6275
  "backup",
5486
6276
  "backupRestore",
5487
- "backupDelete"
6277
+ "backupDelete",
6278
+ "querySuggestionsBuild"
5488
6279
  ],
5489
6280
  "description": "Which long-running operation a task record tracks."
5490
6281
  },