@delali/narsil 0.4.6-next.332 → 0.4.6-next.334

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 (131) hide show
  1. package/dist/browser/{chunk-VAPCFSMX.mjs → chunk-3PGIOK7Z.mjs} +16 -1
  2. package/dist/browser/{chunk-VIVG3OXM.mjs → chunk-FBDTHGDR.mjs} +7 -3
  3. package/dist/browser/{chunk-56UNHLAF.mjs → chunk-HIC42RBU.mjs} +1 -1
  4. package/dist/browser/{chunk-DJDBJB2U.mjs → chunk-J343PP7Q.mjs} +85 -28
  5. package/dist/browser/{optional-reads-NQO5DKM4.mjs → optional-reads-4O4CJ7TR.mjs} +1 -1
  6. package/dist/browser/{optional-writes-3HKIVZFU.mjs → optional-writes-OFPF77WY.mjs} +2 -1
  7. package/dist/browser/{runtime-OMKE7DF4.mjs → runtime-AMEB4J2D.mjs} +2 -1
  8. package/dist/browser/{segment-codec-leaf-GXSRX5VT.mjs → segment-codec-leaf-E4YHXUAI.mjs} +7 -2
  9. package/dist/browser/{storage-leaf-72PEG6IP.mjs → storage-leaf-WJMD66YX.mjs} +15 -2
  10. package/dist/{capabilities-DaJKuKlG.d.ts → capabilities-YazdElfW.d.ts} +2 -2
  11. package/dist/{chunk-UAITBI74.mjs → chunk-2QQCR7KF.mjs} +15 -9
  12. package/dist/{chunk-NNRDQYBD.mjs → chunk-4QNWK42S.mjs} +104 -41
  13. package/dist/{chunk-G6P6YTTW.mjs → chunk-5PUNOJC7.mjs} +1 -1
  14. package/dist/chunk-6S5QPDPP.mjs +110 -0
  15. package/dist/{chunk-EY5U4P5V.mjs → chunk-7NMLFP2T.mjs} +17 -2
  16. package/dist/{react-native/chunks/chunk-NUOJ2EAK.mjs → chunk-AKLCYPUY.mjs} +1 -1
  17. package/dist/{chunk-WRDGPEN6.mjs → chunk-B276ZQIH.mjs} +2 -2
  18. package/dist/{chunk-HWIIMLLR.mjs → chunk-B6VO3BCX.mjs} +6 -6
  19. package/dist/{chunk-3GWUUKDJ.mjs → chunk-BVFJ5XAU.mjs} +2 -2
  20. package/dist/{chunk-WCGFMFWK.mjs → chunk-CHGJGKST.mjs} +2 -2
  21. package/dist/{chunk-AQI4DIFA.mjs → chunk-CVCBVUH4.mjs} +2 -2
  22. package/dist/{chunk-CN42TL6V.mjs → chunk-HB3EBTKC.mjs} +5 -5
  23. package/dist/{react-native/chunks/chunk-ALSPAMEE.mjs → chunk-HNE4HNC2.mjs} +2 -2
  24. package/dist/{chunk-RBHEMWN6.mjs → chunk-I255IQTR.mjs} +3 -3
  25. package/dist/{chunk-VIHHCXBO.mjs → chunk-IALJ2X74.mjs} +3 -3
  26. package/dist/{chunk-EDZJNZKV.mjs → chunk-ICEZRKIS.mjs} +1 -1
  27. package/dist/{chunk-JXRMHWQU.mjs → chunk-IVVNKTHC.mjs} +1 -1
  28. package/dist/{chunk-MUBQER6D.mjs → chunk-KHZ6LAFB.mjs} +1 -1
  29. package/dist/{chunk-5SHWA6PE.mjs → chunk-L2GYY6KY.mjs} +1 -1
  30. package/dist/{chunk-4JLHHEBN.mjs → chunk-M5RYB6FE.mjs} +1 -1
  31. package/dist/{chunk-ONDHZ4WW.mjs → chunk-N3DJTTKK.mjs} +2 -2
  32. package/dist/{chunk-JASE2FE6.mjs → chunk-QWYIMVYT.mjs} +2 -2
  33. package/dist/{chunk-GTB2S2VX.mjs → chunk-R5OFJZNI.mjs} +2 -2
  34. package/dist/{chunk-7DW2ITZ3.mjs → chunk-RHFUQ76T.mjs} +1 -1
  35. package/dist/{chunk-FWZ5OK5G.mjs → chunk-SCUYG24W.mjs} +4 -4
  36. package/dist/{chunk-DVFCDOXW.mjs → chunk-TNBOFWDS.mjs} +1 -1
  37. package/dist/{chunk-PM2UOKYB.mjs → chunk-UFDD57KD.mjs} +37 -9
  38. package/dist/{chunk-M2Z5WVWW.mjs → chunk-UGMOBSMD.mjs} +2 -0
  39. package/dist/{chunk-CZHAPGVH.mjs → chunk-UJQ2S5QU.mjs} +80 -78
  40. package/dist/{chunk-43T3P3BE.mjs → chunk-WW3RDS57.mjs} +1 -1
  41. package/dist/{chunk-BOTZ2GSW.mjs → chunk-Z622PLNH.mjs} +25 -14
  42. package/dist/{client-DetSCqP2.d.ts → client-B9YNYYs_.d.ts} +38 -12
  43. package/dist/client.d.ts +8 -8
  44. package/dist/client.mjs +2 -2
  45. package/dist/{config-BB4MRAsB.d.ts → config-DJFXyHMZ.d.ts} +2 -2
  46. package/dist/{config-XEHd4MFx.d.ts → config-DlvP2PSi.d.ts} +2 -2
  47. package/dist/{direct-executor-3C5WFR33.mjs → direct-executor-P2Z7T57F.mjs} +3 -3
  48. package/dist/distribution/coordinator/etcd.d.ts +2 -2
  49. package/dist/distribution/coordinator/etcd.mjs +1 -1
  50. package/dist/distribution/coordinator/in-memory.d.ts +2 -2
  51. package/dist/distribution/transport/grpc.mjs +1 -1
  52. package/dist/distribution/transport/tcp.mjs +1 -1
  53. package/dist/distribution.d.ts +14 -9
  54. package/dist/distribution.mjs +391 -315
  55. package/dist/{engine-DGG_yX0p.d.ts → engine-DP4PrdKM.d.ts} +51 -13
  56. package/dist/{index-fX_FbuRT.d.ts → index-CcivYH_R.d.ts} +1 -1
  57. package/dist/index.browser.mjs +3 -3
  58. package/dist/index.d.ts +6 -6
  59. package/dist/index.mjs +3 -3
  60. package/dist/index.react-native.mjs +3 -3
  61. package/dist/{long-query-thread-C62WK6NI.mjs → long-query-thread-SOJ25FZU.mjs} +13 -13
  62. package/dist/{msgpack-leaf-LIT7TKZW.mjs → msgpack-leaf-LTAJ5QGB.mjs} +2 -2
  63. package/dist/{optional-reads-ESDVS225.mjs → optional-reads-5QWIOFOU.mjs} +1 -1
  64. package/dist/{optional-writes-AGDEVXC4.mjs → optional-writes-GVHTEENI.mjs} +5 -5
  65. package/dist/{paged-partition-archive-EABR3N3F.mjs → paged-partition-archive-XCETVLZW.mjs} +13 -13
  66. package/dist/partial-words.browser.mjs +3 -3
  67. package/dist/partial-words.mjs +3 -3
  68. package/dist/pattern.browser.mjs +2 -2
  69. package/dist/pattern.mjs +2 -2
  70. package/dist/persistence/durability/checkpoint-worker.d.ts +2 -1
  71. package/dist/persistence/durability/checkpoint-worker.mjs +10 -10
  72. package/dist/{query-actions-QH5UQRCY.mjs → query-actions-WKC4SQEZ.mjs} +3 -3
  73. package/dist/query-suggestions/merge-worker.mjs +6 -6
  74. package/dist/query-suggestions.browser.mjs +3 -3
  75. package/dist/query-suggestions.d.ts +2 -2
  76. package/dist/query-suggestions.mjs +4 -4
  77. package/dist/react-native/chunks/{chunk-PTCHRZCP.mjs → chunk-4JY2CZWV.mjs} +3 -3
  78. package/dist/react-native/chunks/{chunk-ESVBC3AT.mjs → chunk-BIORJHQZ.mjs} +1 -1
  79. package/dist/react-native/chunks/{chunk-AOLLV37A.mjs → chunk-CBG4EUYD.mjs} +17 -2
  80. package/dist/react-native/chunks/{chunk-GPMPHDDO.mjs → chunk-FN3HBVNY.mjs} +2 -2
  81. package/dist/{chunk-AWMO3NKJ.mjs → react-native/chunks/chunk-LR6OK725.mjs} +1 -1
  82. package/dist/{chunk-57MN2UAL.mjs → react-native/chunks/chunk-MPNHORPY.mjs} +2 -2
  83. package/dist/react-native/chunks/{chunk-V2H7EDTM.mjs → chunk-QT2G6OMI.mjs} +103 -40
  84. package/dist/react-native/chunks/{chunk-BGRX5SPG.mjs → chunk-QZUFYRFX.mjs} +2 -2
  85. package/dist/react-native/chunks/{chunk-ZF3VSGEI.mjs → chunk-ZSJABTIE.mjs} +1 -1
  86. package/dist/react-native/chunks/{msgpack-leaf-FOUPTT7J.mjs → msgpack-leaf-Q4BPA4G7.mjs} +2 -2
  87. package/dist/react-native/chunks/{optional-reads-TN3PT6M4.mjs → optional-reads-M6F26KFO.mjs} +1 -1
  88. package/dist/react-native/chunks/{optional-writes-F4FJKEZ4.mjs → optional-writes-TCVHZRRM.mjs} +4 -4
  89. package/dist/react-native/chunks/{restore-queue-MLFBOOZP.mjs → restore-queue-RLQ3L223.mjs} +6 -6
  90. package/dist/{runtime-USQYKN3I.mjs → react-native/chunks/runtime-7UKADH3G.mjs} +2 -1
  91. package/dist/react-native/chunks/{segment-codec-leaf-Z3OS3B2K.mjs → segment-codec-leaf-IM6YCP7M.mjs} +4 -4
  92. package/dist/react-native/chunks/{segment-merge-leaf-TNHU77VW.mjs → segment-merge-leaf-32YR2ZTM.mjs} +5 -5
  93. package/dist/react-native/chunks/{storage-leaf-NF733K7B.mjs → storage-leaf-RKI6S6T5.mjs} +23 -10
  94. package/dist/react-native/chunks/{store-leaf-UDKCNQB7.mjs → store-leaf-YQXG6NOD.mjs} +5 -5
  95. package/dist/react-native/chunks/{suggestions-leaf-M6ITOPNM.mjs → suggestions-leaf-Q3ABULFB.mjs} +5 -5
  96. package/dist/react-native/chunks/{worker-copies-GG7CKUBI.mjs → worker-copies-W63KWZZN.mjs} +4 -4
  97. package/dist/react-native/partial-words.mjs +3 -3
  98. package/dist/react-native/pattern.mjs +2 -2
  99. package/dist/react-native/query-suggestions.mjs +3 -3
  100. package/dist/react-native/sync.mjs +12 -7
  101. package/dist/react-native/synonyms.mjs +3 -3
  102. package/dist/react.d.ts +9 -9
  103. package/dist/{rerank-LCMA5PZG.mjs → rerank-OJLSVUYV.mjs} +25 -12
  104. package/dist/{restore-queue-NSA3RWF6.mjs → restore-queue-BYO4AJLZ.mjs} +6 -6
  105. package/dist/{react-native/chunks/runtime-UOHD2XUJ.mjs → runtime-WWFVQOBJ.mjs} +2 -1
  106. package/dist/{schema-CFnQ-WI3.d.ts → schema-CPQUdJTs.d.ts} +6 -0
  107. package/dist/{segment-codec-leaf-DQKKIN4F.mjs → segment-codec-leaf-V52PQEVL.mjs} +4 -4
  108. package/dist/{segment-merge-leaf-67Z6OMRF.mjs → segment-merge-leaf-M3ZLJYDD.mjs} +4 -4
  109. package/dist/server.d.ts +22 -11
  110. package/dist/server.mjs +23 -21
  111. package/dist/{storage-leaf-FUH75D3X.mjs → storage-leaf-YYO4FLHQ.mjs} +22 -22
  112. package/dist/{store-leaf-CKZFFFTX.mjs → store-leaf-KK7VD3P3.mjs} +5 -5
  113. package/dist/{suggestions-leaf-NOSJIRSD.mjs → suggestions-leaf-EJCNU3NM.mjs} +7 -7
  114. package/dist/sync/filesystem.d.ts +3 -3
  115. package/dist/sync/filesystem.mjs +8 -8
  116. package/dist/sync/indexeddb.browser.mjs +1 -1
  117. package/dist/sync/indexeddb.d.ts +3 -3
  118. package/dist/sync/indexeddb.mjs +2 -2
  119. package/dist/sync.browser.mjs +7 -6
  120. package/dist/sync.d.ts +4 -4
  121. package/dist/sync.mjs +12 -7
  122. package/dist/synonyms.browser.mjs +3 -3
  123. package/dist/synonyms.mjs +3 -3
  124. package/dist/{tasks-Bpi5YNZF.d.ts → tasks-4rvZJuoN.d.ts} +8 -4
  125. package/dist/{thread-T5F3HSMC.mjs → thread-6BVFFMP7.mjs} +12 -12
  126. package/dist/{types-DGjk684l.d.ts → types-C3hkFf_3.d.ts} +2 -2
  127. package/dist/vector/search-worker.d.ts +1 -1
  128. package/dist/{worker-copies-TPEHVXPI.mjs → worker-copies-5V5JGCWU.mjs} +6 -6
  129. package/dist/workers/entry.mjs +9 -9
  130. package/openapi.json +58 -2
  131. package/package.json +5 -5
@@ -1,20 +1,20 @@
1
- import { loadVectorField, openColdVectorField, VECTOR_FILE_ENVELOPE_VERSION, GRAPH_PART_ENVELOPE_VERSION } from './chunk-VIHHCXBO.mjs';
2
- import { engineChangeSource, ChangeCursor, createSemaphore, changePositionList, changesNotEnabled, previousDocumentRequired, invalidPositions, changePositionsOf, requireConfigurationShape, RESTORE_ESTIMATE_MARGIN, persistEpochStates, RESTORE_WORST_EXTERNAL_BYTES_PER_VECTOR_DIMENSION, RESTORE_WORST_EXTERNAL_BYTES_PER_VECTOR, RESTORE_WORST_EXTERNAL_BYTES_PER_STORED_BYTE, RESTORE_WORST_HEAP_BYTES_PER_VECTOR_DIMENSION, RESTORE_WORST_HEAP_BYTES_PER_VECTOR, RESTORE_WORST_HEAP_BYTES_PER_STORED_BYTE, RESTORE_FLOOR_EXTERNAL_BYTES_PER_VECTOR_DIMENSION, RESTORE_FLOOR_EXTERNAL_BYTES_PER_VECTOR, RESTORE_FLOOR_EXTERNAL_BYTES_PER_STORED_BYTE, RESTORE_FLOOR_HEAP_BYTES_PER_VECTOR_DIMENSION, RESTORE_FLOOR_HEAP_BYTES_PER_VECTOR, RESTORE_FLOOR_HEAP_BYTES_PER_STORED_BYTE, RESTORE_WORST_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_WORST_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_WORST_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_BYTE, RESTORE_WORST_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_WORST_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_WORST_HEAP_BYTES_PER_EARLIER_SNAPSHOT_BYTE, RESTORE_FLOOR_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_FLOOR_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_FLOOR_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_BYTE, RESTORE_FLOOR_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_FLOOR_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_FLOOR_HEAP_BYTES_PER_EARLIER_SNAPSHOT_BYTE } from './chunk-AQI4DIFA.mjs';
3
- import { restoredConfigFields, restoredEmbedding } from './chunk-M2Z5WVWW.mjs';
4
- import { ENTRIES_MESSAGE_LIMIT_BYTES, FEED_HEAD_RETRY_MS, decodeSegmentManifest, isRecord, isUint32, isSequenceNumber, ARCHIVE_CONFIG_ENTRY, ARCHIVE_MANIFEST_ENTRY, tarEnd, tarEntryHeaders, tarPadding, ARCHIVE_FILE_CHUNK_BYTES } from './chunk-RBHEMWN6.mjs';
5
- import { isPagedSegmentFile, openPagedSegmentScan, countsAsLatestHolder, writeCheckpointSegments, commitCheckpointManifest, readSegmentFile, readCommitMarker, nextMarkerSlot, encodeMarkerSlot, markerSlotOffset, removeUnusedSegmentFiles, readWalSegments, durableRecordMissing, checkpointLastSeqNo, pagedListingOf, residentSectionsOf, filePathOf, partitionContentsOf, checkPagedSegmentFully, openPagedSnapshot, createPagedFrozenSegment, SEGMENT_HEADER_SIZE, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment } from './chunk-HWIIMLLR.mjs';
6
- import { decodeSections, READS_AHEAD_AT_ONCE, readFileRangeLater, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES, READ_AHEAD_CHUNK_BYTES, STABLE_HEAD_ATTEMPTS, directoryCheckpointStore } from './chunk-JASE2FE6.mjs';
7
- import { manifestKey, segmentsPrefix, vectorFileKey, manifestFileRefs, graphPartKey } from './chunk-EDZJNZKV.mjs';
1
+ import { loadVectorField, openColdVectorField, VECTOR_FILE_ENVELOPE_VERSION, GRAPH_PART_ENVELOPE_VERSION } from './chunk-IALJ2X74.mjs';
2
+ import { engineChangeSource, ChangeCursor, createSemaphore, changePositionList, changesNotEnabled, previousDocumentRequired, invalidPositions, changePositionsOf, requireConfigurationShape, RESTORE_ESTIMATE_MARGIN, persistEpochStates, RESTORE_WORST_EXTERNAL_BYTES_PER_VECTOR_DIMENSION, RESTORE_WORST_EXTERNAL_BYTES_PER_VECTOR, RESTORE_WORST_EXTERNAL_BYTES_PER_STORED_BYTE, RESTORE_WORST_HEAP_BYTES_PER_VECTOR_DIMENSION, RESTORE_WORST_HEAP_BYTES_PER_VECTOR, RESTORE_WORST_HEAP_BYTES_PER_STORED_BYTE, RESTORE_FLOOR_EXTERNAL_BYTES_PER_VECTOR_DIMENSION, RESTORE_FLOOR_EXTERNAL_BYTES_PER_VECTOR, RESTORE_FLOOR_EXTERNAL_BYTES_PER_STORED_BYTE, RESTORE_FLOOR_HEAP_BYTES_PER_VECTOR_DIMENSION, RESTORE_FLOOR_HEAP_BYTES_PER_VECTOR, RESTORE_FLOOR_HEAP_BYTES_PER_STORED_BYTE, RESTORE_WORST_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_WORST_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_WORST_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_BYTE, RESTORE_WORST_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_WORST_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_WORST_HEAP_BYTES_PER_EARLIER_SNAPSHOT_BYTE, RESTORE_FLOOR_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_FLOOR_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_FLOOR_EXTERNAL_BYTES_PER_EARLIER_SNAPSHOT_BYTE, RESTORE_FLOOR_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR_DIMENSION, RESTORE_FLOOR_HEAP_BYTES_PER_EARLIER_SNAPSHOT_VECTOR, RESTORE_FLOOR_HEAP_BYTES_PER_EARLIER_SNAPSHOT_BYTE } from './chunk-CVCBVUH4.mjs';
3
+ import { restoredConfigFields, restoredEmbedding } from './chunk-UGMOBSMD.mjs';
4
+ import { ENTRIES_MESSAGE_LIMIT_BYTES, FEED_HEAD_RETRY_MS, decodeSegmentManifest, isRecord, isUint32, isSequenceNumber, ARCHIVE_CONFIG_ENTRY, ARCHIVE_MANIFEST_ENTRY, tarEnd, tarEntryHeaders, tarPadding, ARCHIVE_FILE_CHUNK_BYTES } from './chunk-I255IQTR.mjs';
5
+ import { isPagedSegmentFile, openPagedSegmentScan, countsAsLatestHolder, writeCheckpointSegments, commitCheckpointManifest, readSegmentFile, readCommitMarker, nextMarkerSlot, encodeMarkerSlot, markerSlotOffset, removeUnusedSegmentFiles, readWalSegments, durableRecordMissing, checkpointLastSeqNo, pagedListingOf, residentSectionsOf, filePathOf, partitionContentsOf, checkPagedSegmentFully, openPagedSnapshot, createPagedFrozenSegment, SEGMENT_HEADER_SIZE, KEYWORD_SEGMENT_ENVELOPE_VERSION, decodeKeywordSegment } from './chunk-B6VO3BCX.mjs';
6
+ import { decodeSections, READS_AHEAD_AT_ONCE, readFileRangeLater, SEGMENT_PAGE_BYTES, RECORD_PAGE_BYTES, READ_AHEAD_CHUNK_BYTES, STABLE_HEAD_ATTEMPTS, directoryCheckpointStore } from './chunk-QWYIMVYT.mjs';
7
+ import { manifestKey, segmentsPrefix, vectorFileKey, manifestFileRefs, graphPartKey } from './chunk-ICEZRKIS.mjs';
8
8
  import { encode } from './chunk-S5QMWECL.mjs';
9
- import { setNestedValue, restoreVectorFields } from './chunk-5SHWA6PE.mjs';
10
- import { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, rewriteSpillOf, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, textRebuildTargetOf } from './chunk-AWMO3NKJ.mjs';
9
+ import { setNestedValue, restoreVectorFields } from './chunk-L2GYY6KY.mjs';
10
+ import { DEFAULT_WRITE_AHEAD_QUEUE_MAX_SIZE, rewriteSpillOf, REBALANCE_CHUNK_SIZE, rebuildTextIndexes, textRebuildTargetOf } from './chunk-AKLCYPUY.mjs';
11
11
  import { DEFAULT_VECTOR_METRIC, defaultQuantizationFor, vectorsPerFile, vectorsToBytes, VECTOR_FILE_PAYLOAD_VERSION, decodeVectorFilePayload, isDead, bytesToVectors } from './chunk-R724DJSG.mjs';
12
12
  import { oneSyncChangeAtATime } from './chunk-V6EUBAIT.mjs';
13
- import { openChecksummedEnvelope, HEADER_SIZE, packChecksummedEnvelope, packEnvelopeWithChecksum, checksumOfChunks, readHeader, crc32, engineVersionParts, writeHeader, storedStateToWire, storedStateFromWire } from './chunk-GTB2S2VX.mjs';
14
- import { resolveIndexAnalysis, getLanguage, emitEngineEvent, reconstructSchemaFromMetadata, prepareStoredSynonyms, rulesOfStoredSynonyms, resolvePartialWordAnalysis, oversizedConfigurationPayloadOf, requireEncodedConfigurationWithinSizeLimit, loadSchemaCodeFor, VERSION, DEFAULT_BM25_B, DEFAULT_BM25_K1, decodeEveryStoredDocument, createSharedFrozenSegment, shareSegmentArrays, removeDocumentVectors, prepareDocumentVectors, insertDocumentVectors, noteDocumentChurn, createPartitionIndex, writePartitionDocument, yieldToEventLoop, createPublicationGate, removedSurfaceSpellings, readHeapStatistics, readProcessMemoryUse, prepareConfiguredSynonyms, withOpenIndex, loadGzip, prepareRemovalText, prepareDocumentText, updateDocumentVectors, holdSyncEpochChange, decodeStoredDocument, emitSyncChange, ARRAY_POSITION_GAP } from './chunk-NNRDQYBD.mjs';
13
+ import { openChecksummedEnvelope, HEADER_SIZE, packChecksummedEnvelope, packEnvelopeWithChecksum, checksumOfChunks, readHeader, crc32, engineVersionParts, writeHeader, storedStateToWire, storedStateFromWire } from './chunk-R5OFJZNI.mjs';
14
+ import { resolveIndexAnalysis, getLanguage, emitEngineEvent, reconstructSchemaFromMetadata, prepareStoredSynonyms, rulesOfStoredSynonyms, resolvePartialWordAnalysis, oversizedConfigurationPayloadOf, requireEncodedConfigurationWithinSizeLimit, loadSchemaCodeFor, VERSION, DEFAULT_BM25_B, DEFAULT_BM25_K1, decodeEveryStoredDocument, createSharedFrozenSegment, shareSegmentArrays, removeDocumentVectors, prepareDocumentVectors, insertDocumentVectors, noteDocumentChurn, createPartitionIndex, writePartitionDocument, yieldToEventLoop, createPublicationGate, removedSurfaceSpellings, readHeapStatistics, readProcessMemoryUse, prepareConfiguredSynonyms, withOpenIndex, loadGzip, prepareRemovalText, prepareDocumentText, updateDocumentVectors, holdSyncEpochChange, decodeStoredDocument, emitSyncChange, ARRAY_POSITION_GAP } from './chunk-4QNWK42S.mjs';
15
15
  import { decode } from './chunk-Y7GXGJFZ.mjs';
16
16
  import { isSyncEpoch, newSyncEpoch } from './chunk-BUMREPLU.mjs';
17
- import { extractVectorFieldsFromSchema, flattenSchema, VECTOR_PATTERN, validateDocument, validateDocumentStrict, schemaFieldsOf, parseVectorDimension, requireValidFieldTypes, isQuantizationMode, isStorageMode, MAX_DOCUMENT_NESTING_DEPTH } from './chunk-EY5U4P5V.mjs';
17
+ import { extractVectorFieldsFromSchema, flattenSchema, VECTOR_PATTERN, validateDocument, validateDocumentStrict, schemaFieldsOf, parseVectorDimension, requireValidFieldTypes, isQuantizationMode, isStorageMode, MAX_DOCUMENT_NESTING_DEPTH } from './chunk-7NMLFP2T.mjs';
18
18
  import { turnsAreBudgeted, turnIsSpent, yieldTurn, collectAndReturnPages, countWrite } from './chunk-5EI5CXO6.mjs';
19
19
  import { DEFAULT_MAX_PARTITIONS, ANALYSIS_CHANGE_MEMBERS, EXPORT_CHUNK_BYTES, MAX_PARTITIONS, MAX_EXPORT_LINE_BYTES, IMPORT_BATCH_DOCUMENTS, ANALYSIS_HOLD_APPLY_INTERVAL_MS, MAX_IMPORT_REFUSALS_REPORTED } from './chunk-3ECIRFS5.mjs';
20
20
  import { DEFAULT_COMPACTION_THRESHOLD } from './chunk-S3JHYPH7.mjs';
@@ -3493,6 +3493,9 @@ function metadataFromConfig(indexName, config, partitionCount, documentCount, sa
3493
3493
  if (config.strict !== void 0) {
3494
3494
  metadata.strict = config.strict;
3495
3495
  }
3496
+ if (config.returnVectors !== void 0) {
3497
+ metadata.returnVectors = config.returnVectors;
3498
+ }
3496
3499
  if (config.required !== void 0) {
3497
3500
  metadata.required = config.required;
3498
3501
  }
@@ -3548,6 +3551,7 @@ function metadataConfigOf(entry) {
3548
3551
  ...entry.config.trackPositions !== void 0 ? { trackPositions: entry.config.trackPositions } : {},
3549
3552
  ...entry.config.textStorage !== void 0 ? { textStorage: entry.config.textStorage } : {},
3550
3553
  ...entry.config.strict !== void 0 ? { strict: entry.config.strict } : {},
3554
+ ...entry.config.returnVectors !== void 0 ? { returnVectors: entry.config.returnVectors } : {},
3551
3555
  ...entry.config.required !== void 0 ? { required: entry.config.required } : {},
3552
3556
  ...entry.config.vectorPromotion !== void 0 ? { vectorPromotion: entry.config.vectorPromotion } : {},
3553
3557
  ...entry.config.patternValueLimit !== void 0 ? { patternValueLimit: entry.config.patternValueLimit } : {},
@@ -3832,7 +3836,7 @@ function dropStoredVectorValues(documents, schema) {
3832
3836
  }
3833
3837
  function removeFieldAtPath(fields, fieldPath) {
3834
3838
  if (!fieldPath.includes(".")) {
3835
- delete fields[fieldPath];
3839
+ if (fields[fieldPath] !== null) delete fields[fieldPath];
3836
3840
  return;
3837
3841
  }
3838
3842
  const segments = fieldPath.split(".");
@@ -3844,7 +3848,8 @@ function removeFieldAtPath(fields, fieldPath) {
3844
3848
  }
3845
3849
  current = next;
3846
3850
  }
3847
- delete current[segments[segments.length - 1]];
3851
+ const leaf = segments[segments.length - 1];
3852
+ if (current[leaf] !== null) delete current[leaf];
3848
3853
  }
3849
3854
 
3850
3855
  // src/serialization/payload-v1/partition.ts
@@ -4139,6 +4144,9 @@ function metadataToWire(meta) {
4139
4144
  if (meta.strict !== void 0) {
4140
4145
  wire.strict = meta.strict;
4141
4146
  }
4147
+ if (meta.returnVectors !== void 0) {
4148
+ wire.return_vectors = meta.returnVectors;
4149
+ }
4142
4150
  if (meta.required !== void 0) {
4143
4151
  wire.required = meta.required;
4144
4152
  }
@@ -4265,6 +4273,9 @@ function wireToMetadata(raw) {
4265
4273
  if (typeof raw.strict === "boolean") {
4266
4274
  meta.strict = raw.strict;
4267
4275
  }
4276
+ if (typeof raw.return_vectors === "boolean") {
4277
+ meta.returnVectors = raw.return_vectors;
4278
+ }
4268
4279
  if (Array.isArray(raw.required) && raw.required.every((field) => typeof field === "string")) {
4269
4280
  meta.required = raw.required;
4270
4281
  }
@@ -1,8 +1,8 @@
1
- import { P as PartitionConfig, B as BM25Params, A as AnyDocument, a as InsertOptions, W as WriteOptions } from './schema-CFnQ-WI3.js';
2
- import { o as SnapshotOptions, V as VectorMaintenanceResult, B as BatchResult, L as ListParams, v as ListResult, F as FollowChangesOptions, d as ChangesEvent, a as ChangePosition, h as ChangesStatus, g as ChangesSetting, I as IndexInfo, z as IndexStats, P as PartitionStatsResult, Q as QueryParams, t as QueryResult, y as PreflightResult, w as SuggestParams, x as SuggestResult, q as SyncStatus, p as SyncSetting } from './engine-DGG_yX0p.js';
1
+ import { P as PartitionConfig, B as BM25Params, A as AnyDocument, a as InsertOptions, W as WriteOptions } from './schema-CPQUdJTs.js';
2
+ import { o as SnapshotOptions, V as VectorMaintenanceResult, B as BatchResult, D as DocumentProjection, L as ListParams, v as ListResult, F as FollowChangesOptions, d as ChangesEvent, a as ChangePosition, h as ChangesStatus, g as ChangesSetting, I as IndexInfo, z as IndexStats, P as PartitionStatsResult, Q as QueryParams, t as QueryResult, y as PreflightResult, w as SuggestParams, x as SuggestResult, q as SyncStatus, p as SyncSetting } from './engine-DP4PrdKM.js';
3
3
  import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
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-Bpi5YNZF.js';
5
- import { B as BackupListing } from './config-XEHd4MFx.js';
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-4rvZJuoN.js';
5
+ import { B as BackupListing } from './config-DlvP2PSi.js';
6
6
  import { d as QuerySuggestionsSetting, e as QuerySuggestionsStatus, f as RecordQueryResult, c as QuerySuggestionsPreview, M as ManualQuerySuggestion } from './query-suggestions-CBYkrQ5T.js';
7
7
 
8
8
  /**
@@ -425,6 +425,15 @@ interface BackupOperations {
425
425
  deleteBackup(backupName: string, options?: RequestOptions): Promise<TaskRecord>;
426
426
  }
427
427
 
428
+ /**
429
+ * These options shape one {@link BulkOperations.getMultiple} request.
430
+ *
431
+ * @public
432
+ */
433
+ interface GetMultipleOptions extends RequestOptions {
434
+ /** This chooses how much of each document comes back. Every field apart from the vector fields comes back by default. */
435
+ document?: DocumentProjection;
436
+ }
428
437
  /**
429
438
  * This is a corpus, in whichever form you already hold it.
430
439
  *
@@ -496,13 +505,16 @@ interface BulkOperations {
496
505
  * The result leaves out an id the index does not hold while the call still
497
506
  * succeeds, so compare the size against what you asked for.
498
507
  *
508
+ * Each document comes back without its vector fields unless
509
+ * `options.document` or the index's `returnVectors` setting asks for them.
510
+ *
499
511
  * @param indexName - This names the index holding the documents.
500
512
  * @param docIds - These are the ids to read.
501
- * @param options - This sets the signal, the deadline, and the headers for
502
- * this request.
513
+ * @param options - This chooses which fields come back, and sets the signal,
514
+ * the deadline, and the headers for this request.
503
515
  * @returns The map holds every document found, keyed by id.
504
516
  */
505
- getMultiple(indexName: string, docIds: string[], options?: RequestOptions): Promise<Map<string, AnyDocument>>;
517
+ getMultiple(indexName: string, docIds: string[], options?: GetMultipleOptions): Promise<Map<string, AnyDocument>>;
506
518
  /**
507
519
  * Pages through the stored documents without searching, in document-id order
508
520
  * until the parameters name a sort.
@@ -658,6 +670,19 @@ interface PutResult {
658
670
  /** This is true when the id held nothing before, and false when the write replaced a document. */
659
671
  created: boolean;
660
672
  }
673
+ /**
674
+ * These options shape one {@link DocumentOperations.get} request.
675
+ *
676
+ * @public
677
+ */
678
+ interface GetDocumentOptions extends RequestOptions {
679
+ /**
680
+ * Setting this to true returns the vector fields, and false leaves them out
681
+ * even on an index that sets `returnVectors`. The server leaves them out by
682
+ * default.
683
+ */
684
+ vectors?: boolean;
685
+ }
661
686
  /**
662
687
  * These methods write and read one document at a time over HTTP.
663
688
  *
@@ -686,17 +711,18 @@ interface DocumentOperations {
686
711
  */
687
712
  insert(indexName: string, document: AnyDocument, docId?: string, insertOptions?: InsertOptions, options?: RequestOptions): Promise<string>;
688
713
  /**
689
- * Reads one stored document back.
714
+ * Reads one stored document back, without its vector fields unless
715
+ * `options.vectors` or the index's `returnVectors` setting asks for them.
690
716
  *
691
717
  * @param indexName - This names the index holding the document.
692
718
  * @param docId - This names the document to read.
693
- * @param options - This sets the signal, the deadline, and the headers for
694
- * this request.
719
+ * @param options - This chooses whether the vector fields come back, and sets
720
+ * the signal, the deadline, and the headers for this request.
695
721
  * @returns The stored document comes back, and `undefined` says the index
696
722
  * holds no such id.
697
723
  * @throws A `NarsilError` with `INDEX_NOT_FOUND` for an unknown index.
698
724
  */
699
- get(indexName: string, docId: string, options?: RequestOptions): Promise<AnyDocument | undefined>;
725
+ get(indexName: string, docId: string, options?: GetDocumentOptions): Promise<AnyDocument | undefined>;
700
726
  /**
701
727
  * Reports whether an index holds a document under an id, without returning
702
728
  * the document itself.
@@ -1341,4 +1367,4 @@ interface NarsilClient extends IndexOperations, DocumentOperations, BulkOperatio
1341
1367
  */
1342
1368
  declare function createNarsilClient(options: NarsilClientOptions): NarsilClient;
1343
1369
 
1344
- export { type AdminOperations as A, type BackupOperations as B, type ChangeFeedOptions as C, 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 ChangeSubscription as b, type ChangesClientOperations as c, type IndexOperations as d, type NarsilClientOptions as e, type ServerOperations as f, type ServerVersion as g, type SyncSettingOperations as h, type SyncSnapshotDownload as i, type SyncSnapshotResume as j, createNarsilClient as k };
1370
+ export { type AdminOperations as A, type BackupOperations as B, type ChangeFeedOptions as C, type DocumentOperations as D, type FetchFunction as F, type GetDocumentOptions as G, 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 ChangeSubscription as b, type ChangesClientOperations as c, type GetMultipleOptions as d, type IndexOperations as e, type NarsilClientOptions as f, type ServerOperations as g, type ServerVersion as h, type SyncSettingOperations as i, type SyncSnapshotDownload as j, type SyncSnapshotResume as k, createNarsilClient as l };
package/dist/client.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- export { B as BackupListing, a as BackupSummary, D as DamagedBackup } from './config-XEHd4MFx.js';
2
- export { C as Change, a as ChangePosition, b as ChangeType, c as ChangesBatch, d as ChangesEvent, e as ChangesOperations, f as ChangesResync, g as ChangesSetting, h as ChangesStatus, i as ChangesSubscribed, j as ClientErrorCode, k as ClientErrorCodes, E as ErrorCode, l as ErrorCodes, F as FollowChangesOptions, N as NarsilError, m as NarsilErrorCode, S as ServerErrorCode, n as ServerErrorCodes, o as SnapshotOptions, p as SyncSetting, q as SyncStatus, r as isNarsilError } from './engine-DGG_yX0p.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-DaJKuKlG.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-Bpi5YNZF.js';
1
+ export { B as BackupListing, a as BackupSummary, D as DamagedBackup } from './config-DlvP2PSi.js';
2
+ export { C as Change, a as ChangePosition, b as ChangeType, c as ChangesBatch, d as ChangesEvent, e as ChangesOperations, f as ChangesResync, g as ChangesSetting, h as ChangesStatus, i as ChangesSubscribed, j as ClientErrorCode, k as ClientErrorCodes, E as ErrorCode, l as ErrorCodes, F as FollowChangesOptions, N as NarsilError, m as NarsilErrorCode, S as ServerErrorCode, n as ServerErrorCodes, o as SnapshotOptions, p as SyncSetting, q as SyncStatus, r as isNarsilError } from './engine-DP4PrdKM.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-YazdElfW.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-4rvZJuoN.js';
5
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, C as ChangeFeedOptions, b as ChangeSubscription, c as ChangesClientOperations, D as DocumentOperations, F as FetchFunction, I as ImportSource, d as IndexOperations, N as NarsilClient, e as NarsilClientOptions, P as PutResult, Q as QuerySuggestionOperations, R as RequestOptions, S as SearchOperations, f as ServerOperations, g as ServerVersion, h as SyncSettingOperations, i as SyncSnapshotDownload, j as SyncSnapshotResume, T as TaskOperations, W as WaitForTaskOptions, k as createNarsilClient } from './client-DetSCqP2.js';
7
- import './config-BB4MRAsB.js';
6
+ export { A as AdminOperations, B as BackupOperations, a as BulkOperations, C as ChangeFeedOptions, b as ChangeSubscription, c as ChangesClientOperations, D as DocumentOperations, F as FetchFunction, G as GetDocumentOptions, d as GetMultipleOptions, I as ImportSource, e as IndexOperations, N as NarsilClient, f as NarsilClientOptions, P as PutResult, Q as QuerySuggestionOperations, R as RequestOptions, S as SearchOperations, g as ServerOperations, h as ServerVersion, i as SyncSettingOperations, j as SyncSnapshotDownload, k as SyncSnapshotResume, T as TaskOperations, W as WaitForTaskOptions, l as createNarsilClient } from './client-B9YNYYs_.js';
7
+ import './config-DJFXyHMZ.js';
8
8
  import './adapters-8LcdNB77.js';
9
- import './schema-CFnQ-WI3.js';
9
+ import './schema-CPQUdJTs.js';
10
10
  import './synonyms-CpOAHPa-.js';
11
- import './index-fX_FbuRT.js';
11
+ import './index-CcivYH_R.js';
12
12
  import './types-DvncmvuQ.js';
package/dist/client.mjs CHANGED
@@ -1,5 +1,5 @@
1
- export { createNarsilClient } from './browser/chunk-VIVG3OXM.mjs';
2
- export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './browser/chunk-VAPCFSMX.mjs';
1
+ export { createNarsilClient } from './browser/chunk-FBDTHGDR.mjs';
2
+ export { ClientErrorCodes, ErrorCodes, NarsilError, ServerErrorCodes, isNarsilError } from './browser/chunk-3PGIOK7Z.mjs';
3
3
 
4
4
  // src/server/capabilities.ts
5
5
  var ASYNC_IMPORT_CAPABILITY = "documents.import.async";
@@ -1,6 +1,6 @@
1
1
  import { P as PersistenceAdapter, I as InvalidationAdapter, E as EmbeddingAdapter, R as RerankAdapter } from './adapters-8LcdNB77.js';
2
- import { Q as QueryParams, t as QueryResult, u as NarsilEventHandlers } from './engine-DGG_yX0p.js';
3
- import { I as IndexConfig, A as AnyDocument } from './schema-CFnQ-WI3.js';
2
+ import { Q as QueryParams, t as QueryResult, u as NarsilEventHandlers } from './engine-DP4PrdKM.js';
3
+ import { I as IndexConfig, A as AnyDocument } from './schema-CPQUdJTs.js';
4
4
 
5
5
  /**
6
6
  * Hooks that the engine calls alongside its own work, so that an application
@@ -1,6 +1,6 @@
1
- import { N as NarsilConfig } from './config-BB4MRAsB.js';
1
+ import { N as NarsilConfig } from './config-DJFXyHMZ.js';
2
2
  import { P as PersistenceAdapter } from './adapters-8LcdNB77.js';
3
- import { A as AllocationConstraints, a as AllocationTable, N as NodeRole, b as NodeRegistration, C as ClusterCoordinator, c as NodeCapacity } from './index-fX_FbuRT.js';
3
+ import { A as AllocationConstraints, a as AllocationTable, N as NodeRole, b as NodeRegistration, C as ClusterCoordinator, c as NodeCapacity } from './index-CcivYH_R.js';
4
4
  import { N as NodeTransport } from './types-DvncmvuQ.js';
5
5
 
6
6
  /**
@@ -1,11 +1,11 @@
1
- export { createDirectExecutor } from './chunk-NNRDQYBD.mjs';
1
+ export { createDirectExecutor } from './chunk-4QNWK42S.mjs';
2
2
  import './chunk-2CKDCC65.mjs';
3
3
  import './chunk-BRTABNC7.mjs';
4
4
  import './chunk-Y7GXGJFZ.mjs';
5
5
  import './chunk-BUMREPLU.mjs';
6
6
  import './chunk-7T4LAYT4.mjs';
7
- import './chunk-4JLHHEBN.mjs';
8
- import './chunk-EY5U4P5V.mjs';
7
+ import './chunk-M5RYB6FE.mjs';
8
+ import './chunk-7NMLFP2T.mjs';
9
9
  import './chunk-U2BKYEC7.mjs';
10
10
  import './chunk-PSZEGK6W.mjs';
11
11
  import './chunk-5EI5CXO6.mjs';
@@ -1,5 +1,5 @@
1
- import { C as ClusterCoordinator } from '../../index-fX_FbuRT.js';
2
- import '../../schema-CFnQ-WI3.js';
1
+ import { C as ClusterCoordinator } from '../../index-CcivYH_R.js';
2
+ import '../../schema-CPQUdJTs.js';
3
3
  import '../../adapters-8LcdNB77.js';
4
4
  import '../../synonyms-CpOAHPa-.js';
5
5
 
@@ -1,7 +1,7 @@
1
1
  import { INDEX_METADATA_KEY_PREFIX, indexNameOfMetadataSuffix } from '../../chunk-Q2AP2FSN.mjs';
2
2
  import { MAX_NODE_ID_LENGTH, CONTROLLER_LEASE_KEY, MAX_WATCHERS } from '../../chunk-44W3CBNG.mjs';
3
3
  import { decode } from '../../chunk-Y7GXGJFZ.mjs';
4
- import '../../chunk-EY5U4P5V.mjs';
4
+ import '../../chunk-7NMLFP2T.mjs';
5
5
  import '../../chunk-ZXX5GZEX.mjs';
6
6
  import '../../chunk-4PY4JYMY.mjs';
7
7
  import { NarsilError, ErrorCodes, describeError } from '../../chunk-ZKOQR7EA.mjs';
@@ -1,5 +1,5 @@
1
- import { C as ClusterCoordinator } from '../../index-fX_FbuRT.js';
2
- import '../../schema-CFnQ-WI3.js';
1
+ import { C as ClusterCoordinator } from '../../index-CcivYH_R.js';
2
+ import '../../schema-CPQUdJTs.js';
3
3
  import '../../adapters-8LcdNB77.js';
4
4
  import '../../synonyms-CpOAHPa-.js';
5
5
 
@@ -3,7 +3,7 @@ import { timeoutsOf, replyDeadlineMs } from '../../chunk-OIJ64LGT.mjs';
3
3
  import { MAX_MESSAGE_SIZE_BYTES, GRPC_KEEPALIVE_TIMEOUT_MS, GRPC_KEEPALIVE_TIME_MS, GRPC_ENVELOPE_OVERHEAD_BYTES } from '../../chunk-HZ3OAUTL.mjs';
4
4
  import { TransportError, TransportErrorCodes } from '../../chunk-5FLRXF73.mjs';
5
5
  import '../../chunk-Y7GXGJFZ.mjs';
6
- import '../../chunk-EY5U4P5V.mjs';
6
+ import '../../chunk-7NMLFP2T.mjs';
7
7
  import '../../chunk-ZXX5GZEX.mjs';
8
8
  import '../../chunk-4PY4JYMY.mjs';
9
9
  import { NarsilError, ErrorCodes } from '../../chunk-ZKOQR7EA.mjs';
@@ -3,7 +3,7 @@ import { timeoutsOf, replyDeadlineMs } from '../../chunk-OIJ64LGT.mjs';
3
3
  import { MAX_MESSAGE_SIZE_BYTES, UNADDRESSABLE_TARGET_DETAIL } from '../../chunk-HZ3OAUTL.mjs';
4
4
  import { TransportError, TransportErrorCodes } from '../../chunk-5FLRXF73.mjs';
5
5
  import '../../chunk-Y7GXGJFZ.mjs';
6
- import '../../chunk-EY5U4P5V.mjs';
6
+ import '../../chunk-7NMLFP2T.mjs';
7
7
  import '../../chunk-ZXX5GZEX.mjs';
8
8
  import '../../chunk-4PY4JYMY.mjs';
9
9
  import '../../chunk-ZKOQR7EA.mjs';
@@ -1,13 +1,13 @@
1
- import { c as CreateIndexOptions, C as ClusterNamespace, d as ClusterNodeConfig } from './config-XEHd4MFx.js';
2
- export { B as BackupListing, e as BackupOperationOptions, f as BackupProgress, a as BackupSummary, g as ClusterBackupConfig, h as ClusterControllerConfig, i as ClusterHealth, j as ClusterHealthStatus, k as ClusterMemoryConfig, l as ClusterMetrics, b as ClusterNodeInfo, m as ClusterQueryConfig, n as CommitPointFigure, o as CoordinatorRequestFigure, p as CreateBackupOptions, D as DamagedBackup, I as IndexHealth, N as NodeReadiness, P as PartitionReplicationFigure, R as ReplicaLagFigure, q as ReplicationConfig, r as RestoreBackupOptions, V as VectorRebuildWaitFigure } from './config-XEHd4MFx.js';
1
+ import { c as CreateIndexOptions, C as ClusterNamespace, d as ClusterNodeConfig } from './config-DlvP2PSi.js';
2
+ export { B as BackupListing, e as BackupOperationOptions, f as BackupProgress, a as BackupSummary, g as ClusterBackupConfig, h as ClusterControllerConfig, i as ClusterHealth, j as ClusterHealthStatus, k as ClusterMemoryConfig, l as ClusterMetrics, b as ClusterNodeInfo, m as ClusterQueryConfig, n as CommitPointFigure, o as CoordinatorRequestFigure, p as CreateBackupOptions, D as DamagedBackup, I as IndexHealth, N as NodeReadiness, P as PartitionReplicationFigure, R as ReplicaLagFigure, q as ReplicationConfig, r as RestoreBackupOptions, V as VectorRebuildWaitFigure } from './config-DlvP2PSi.js';
3
3
  import { R as RerankAdapter } from './adapters-8LcdNB77.js';
4
- import { g as ChangesSetting, h as ChangesStatus, F as FollowChangesOptions, d as ChangesEvent, p as SyncSetting, q as SyncStatus, B as BatchResult, L as ListParams, v as ListResult, w as SuggestParams, x as SuggestResult, Q as QueryParams, y as PreflightResult, I as IndexInfo, A as AnalysisChange, z as IndexStats, P as PartitionStatsResult, M as MemoryStats, D as NarsilEventMap, t as QueryResult, s as Narsil } from './engine-DGG_yX0p.js';
5
- import { B as BM25Params, I as IndexConfig, A as AnyDocument, a as InsertOptions } from './schema-CFnQ-WI3.js';
6
- import { c as NodeCapacity, N as NodeRole } from './index-fX_FbuRT.js';
7
- export { A as AllocationConstraints, e as AllocationEvent, a as AllocationTable, C as ClusterCoordinator, E as ExpectedReplicaRegistration, I as IndexMetadataEvent, f as IndexMetadataWatch, g as IndexPartitionBytes, h as NodeEvent, d as NodeMemoryReport, b as NodeRegistration, P as PartitionAssignment, i as PartitionState, R as RegistrationLease, S as SchemaEvent, U as UnassignedReason } from './index-fX_FbuRT.js';
4
+ import { g as ChangesSetting, h as ChangesStatus, F as FollowChangesOptions, d as ChangesEvent, p as SyncSetting, q as SyncStatus, B as BatchResult, L as ListParams, v as ListResult, w as SuggestParams, x as SuggestResult, Q as QueryParams, y as PreflightResult, I as IndexInfo, A as AnalysisChange, z as IndexStats, P as PartitionStatsResult, M as MemoryStats, G as NarsilEventMap, t as QueryResult, H as GetOptions, s as Narsil } from './engine-DP4PrdKM.js';
5
+ import { B as BM25Params, I as IndexConfig, A as AnyDocument, a as InsertOptions } from './schema-CPQUdJTs.js';
6
+ import { c as NodeCapacity, N as NodeRole } from './index-CcivYH_R.js';
7
+ export { A as AllocationConstraints, e as AllocationEvent, a as AllocationTable, C as ClusterCoordinator, E as ExpectedReplicaRegistration, I as IndexMetadataEvent, f as IndexMetadataWatch, g as IndexPartitionBytes, h as NodeEvent, d as NodeMemoryReport, b as NodeRegistration, P as PartitionAssignment, i as PartitionState, R as RegistrationLease, S as SchemaEvent, U as UnassignedReason } from './index-CcivYH_R.js';
8
8
  import { a as SynonymRule } from './synonyms-CpOAHPa-.js';
9
9
  export { L as ListenHandler, N as NodeTransport, R as RespondFn, T as TransportConfig, a as TransportMessage } from './types-DvncmvuQ.js';
10
- import './config-BB4MRAsB.js';
10
+ import './config-DJFXyHMZ.js';
11
11
  import './query-suggestions-CBYkrQ5T.js';
12
12
 
13
13
  /**
@@ -496,10 +496,13 @@ interface ClusterNode extends ClusterNodeSearchSettings, ClusterNodeSyncSettings
496
496
  *
497
497
  * @param indexName - The index holding the document.
498
498
  * @param docId - The document to read.
499
+ * @param options - The shape of the returned document. The read leaves
500
+ * vector fields out unless `document.vectors` is true, an `include` path
501
+ * equals the field's path, or the index sets `returnVectors`.
499
502
  * @returns The document, or `undefined` when the partition holds no
500
503
  * document under this id.
501
504
  */
502
- get(indexName: string, docId: string): Promise<AnyDocument | undefined>;
505
+ get(indexName: string, docId: string, options?: GetOptions): Promise<AnyDocument | undefined>;
503
506
  /**
504
507
  * Reads many documents, grouping the ids by the node that serves each
505
508
  * partition and fetching every group in one round trip.
@@ -509,10 +512,12 @@ interface ClusterNode extends ClusterNodeSearchSettings, ClusterNodeSyncSettings
509
512
  *
510
513
  * @param indexName - The index holding the documents.
511
514
  * @param docIds - The documents to read.
515
+ * @param options - The shape of each returned document, which follows the
516
+ * same rules as {@link ClusterNode.get}.
512
517
  * @returns The documents found, keyed by id; an id nothing is stored under
513
518
  * is absent.
514
519
  */
515
- getMultiple(indexName: string, docIds: string[]): Promise<Map<string, AnyDocument>>;
520
+ getMultiple(indexName: string, docIds: string[], options?: GetOptions): Promise<Map<string, AnyDocument>>;
516
521
  /**
517
522
  * Reports whether a document exists, reading through the same routing as
518
523
  * {@link ClusterNode.get}.