@fluidframework/container-runtime 2.0.0-rc.2.0.1 → 2.0.0-rc.3.0.0

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 (554) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/api-report/container-runtime.api.md +471 -52
  3. package/dist/batchTracker.d.ts +1 -1
  4. package/dist/batchTracker.d.ts.map +1 -1
  5. package/dist/batchTracker.js +4 -4
  6. package/dist/batchTracker.js.map +1 -1
  7. package/dist/blobManager.d.ts +33 -30
  8. package/dist/blobManager.d.ts.map +1 -1
  9. package/dist/blobManager.js +82 -107
  10. package/dist/blobManager.js.map +1 -1
  11. package/dist/channelCollection.d.ts +27 -22
  12. package/dist/channelCollection.d.ts.map +1 -1
  13. package/dist/channelCollection.js +189 -165
  14. package/dist/channelCollection.js.map +1 -1
  15. package/dist/connectionTelemetry.d.ts +3 -3
  16. package/dist/connectionTelemetry.d.ts.map +1 -1
  17. package/dist/connectionTelemetry.js +17 -17
  18. package/dist/connectionTelemetry.js.map +1 -1
  19. package/dist/containerHandleContext.d.ts.map +1 -1
  20. package/dist/containerHandleContext.js +2 -2
  21. package/dist/containerHandleContext.js.map +1 -1
  22. package/dist/containerRuntime.d.ts +42 -39
  23. package/dist/containerRuntime.d.ts.map +1 -1
  24. package/dist/containerRuntime.js +425 -292
  25. package/dist/containerRuntime.js.map +1 -1
  26. package/dist/dataStore.d.ts +1 -1
  27. package/dist/dataStore.d.ts.map +1 -1
  28. package/dist/dataStore.js +8 -8
  29. package/dist/dataStore.js.map +1 -1
  30. package/dist/dataStoreContext.d.ts +58 -19
  31. package/dist/dataStoreContext.d.ts.map +1 -1
  32. package/dist/dataStoreContext.js +171 -114
  33. package/dist/dataStoreContext.js.map +1 -1
  34. package/dist/dataStoreContexts.d.ts +1 -0
  35. package/dist/dataStoreContexts.d.ts.map +1 -1
  36. package/dist/dataStoreContexts.js +12 -11
  37. package/dist/dataStoreContexts.js.map +1 -1
  38. package/dist/dataStoreRegistry.d.ts +5 -1
  39. package/dist/dataStoreRegistry.d.ts.map +1 -1
  40. package/dist/dataStoreRegistry.js +4 -4
  41. package/dist/dataStoreRegistry.js.map +1 -1
  42. package/dist/deltaManagerSummarizerProxy.d.ts +1 -1
  43. package/dist/deltaManagerSummarizerProxy.d.ts.map +1 -1
  44. package/dist/deltaManagerSummarizerProxy.js.map +1 -1
  45. package/dist/deltaScheduler.d.ts +1 -1
  46. package/dist/deltaScheduler.d.ts.map +1 -1
  47. package/dist/deltaScheduler.js +6 -6
  48. package/dist/deltaScheduler.js.map +1 -1
  49. package/dist/error.d.ts +1 -1
  50. package/dist/error.d.ts.map +1 -1
  51. package/dist/error.js +4 -4
  52. package/dist/error.js.map +1 -1
  53. package/dist/gc/garbageCollection.d.ts +3 -2
  54. package/dist/gc/garbageCollection.d.ts.map +1 -1
  55. package/dist/gc/garbageCollection.js +23 -23
  56. package/dist/gc/garbageCollection.js.map +1 -1
  57. package/dist/gc/gcConfigs.d.ts +2 -2
  58. package/dist/gc/gcConfigs.d.ts.map +1 -1
  59. package/dist/gc/gcConfigs.js +4 -5
  60. package/dist/gc/gcConfigs.js.map +1 -1
  61. package/dist/gc/gcDefinitions.d.ts +4 -5
  62. package/dist/gc/gcDefinitions.d.ts.map +1 -1
  63. package/dist/gc/gcDefinitions.js.map +1 -1
  64. package/dist/gc/gcHelpers.d.ts +5 -1
  65. package/dist/gc/gcHelpers.d.ts.map +1 -1
  66. package/dist/gc/gcHelpers.js +21 -12
  67. package/dist/gc/gcHelpers.js.map +1 -1
  68. package/dist/gc/gcSummaryStateTracker.d.ts +2 -2
  69. package/dist/gc/gcSummaryStateTracker.d.ts.map +1 -1
  70. package/dist/gc/gcSummaryStateTracker.js +11 -11
  71. package/dist/gc/gcSummaryStateTracker.js.map +1 -1
  72. package/dist/gc/gcTelemetry.d.ts +2 -1
  73. package/dist/gc/gcTelemetry.d.ts.map +1 -1
  74. package/dist/gc/gcTelemetry.js +11 -9
  75. package/dist/gc/gcTelemetry.js.map +1 -1
  76. package/dist/gc/gcUnreferencedStateTracker.d.ts.map +1 -1
  77. package/dist/gc/gcUnreferencedStateTracker.js +6 -6
  78. package/dist/gc/gcUnreferencedStateTracker.js.map +1 -1
  79. package/dist/gc/index.d.ts +1 -1
  80. package/dist/gc/index.d.ts.map +1 -1
  81. package/dist/gc/index.js +2 -1
  82. package/dist/gc/index.js.map +1 -1
  83. package/dist/index.d.ts +5 -2
  84. package/dist/index.d.ts.map +1 -1
  85. package/dist/index.js +12 -2
  86. package/dist/index.js.map +1 -1
  87. package/dist/legacy.d.ts +91 -0
  88. package/dist/messageTypes.d.ts +11 -5
  89. package/dist/messageTypes.d.ts.map +1 -1
  90. package/dist/messageTypes.js +4 -0
  91. package/dist/messageTypes.js.map +1 -1
  92. package/dist/opLifecycle/batchManager.d.ts.map +1 -1
  93. package/dist/opLifecycle/batchManager.js.map +1 -1
  94. package/dist/opLifecycle/definitions.d.ts +2 -20
  95. package/dist/opLifecycle/definitions.d.ts.map +1 -1
  96. package/dist/opLifecycle/definitions.js.map +1 -1
  97. package/dist/opLifecycle/index.d.ts +3 -3
  98. package/dist/opLifecycle/index.d.ts.map +1 -1
  99. package/dist/opLifecycle/index.js +3 -1
  100. package/dist/opLifecycle/index.js.map +1 -1
  101. package/dist/opLifecycle/opCompressor.d.ts.map +1 -1
  102. package/dist/opLifecycle/opCompressor.js +5 -6
  103. package/dist/opLifecycle/opCompressor.js.map +1 -1
  104. package/dist/opLifecycle/opDecompressor.d.ts +15 -4
  105. package/dist/opLifecycle/opDecompressor.d.ts.map +1 -1
  106. package/dist/opLifecycle/opDecompressor.js +62 -63
  107. package/dist/opLifecycle/opDecompressor.js.map +1 -1
  108. package/dist/opLifecycle/opGroupingManager.d.ts +2 -1
  109. package/dist/opLifecycle/opGroupingManager.d.ts.map +1 -1
  110. package/dist/opLifecycle/opGroupingManager.js +14 -16
  111. package/dist/opLifecycle/opGroupingManager.js.map +1 -1
  112. package/dist/opLifecycle/opSplitter.d.ts +12 -4
  113. package/dist/opLifecycle/opSplitter.d.ts.map +1 -1
  114. package/dist/opLifecycle/opSplitter.js +63 -53
  115. package/dist/opLifecycle/opSplitter.js.map +1 -1
  116. package/dist/opLifecycle/outbox.d.ts +2 -1
  117. package/dist/opLifecycle/outbox.d.ts.map +1 -1
  118. package/dist/opLifecycle/outbox.js +30 -29
  119. package/dist/opLifecycle/outbox.js.map +1 -1
  120. package/dist/opLifecycle/remoteMessageProcessor.d.ts +8 -0
  121. package/dist/opLifecycle/remoteMessageProcessor.d.ts.map +1 -1
  122. package/dist/opLifecycle/remoteMessageProcessor.js +36 -32
  123. package/dist/opLifecycle/remoteMessageProcessor.js.map +1 -1
  124. package/dist/packageVersion.d.ts +1 -1
  125. package/dist/packageVersion.js +1 -1
  126. package/dist/packageVersion.js.map +1 -1
  127. package/dist/pendingStateManager.d.ts +1 -1
  128. package/dist/pendingStateManager.d.ts.map +1 -1
  129. package/dist/pendingStateManager.js +18 -18
  130. package/dist/pendingStateManager.js.map +1 -1
  131. package/dist/public.d.ts +12 -0
  132. package/dist/scheduleManager.d.ts +1 -1
  133. package/dist/scheduleManager.d.ts.map +1 -1
  134. package/dist/scheduleManager.js +28 -24
  135. package/dist/scheduleManager.js.map +1 -1
  136. package/dist/storageServiceWithAttachBlobs.d.ts +2 -2
  137. package/dist/storageServiceWithAttachBlobs.d.ts.map +1 -1
  138. package/dist/storageServiceWithAttachBlobs.js +2 -2
  139. package/dist/storageServiceWithAttachBlobs.js.map +1 -1
  140. package/dist/summary/documentSchema.d.ts +209 -0
  141. package/dist/summary/documentSchema.d.ts.map +1 -0
  142. package/dist/summary/documentSchema.js +390 -0
  143. package/dist/summary/documentSchema.js.map +1 -0
  144. package/dist/summary/index.d.ts +2 -1
  145. package/dist/summary/index.d.ts.map +1 -1
  146. package/dist/summary/index.js +4 -1
  147. package/dist/summary/index.js.map +1 -1
  148. package/dist/summary/orderedClientElection.d.ts +2 -2
  149. package/dist/summary/orderedClientElection.d.ts.map +1 -1
  150. package/dist/summary/orderedClientElection.js +12 -7
  151. package/dist/summary/orderedClientElection.js.map +1 -1
  152. package/dist/summary/runWhileConnectedCoordinator.d.ts +1 -1
  153. package/dist/summary/runWhileConnectedCoordinator.d.ts.map +1 -1
  154. package/dist/summary/runWhileConnectedCoordinator.js +3 -3
  155. package/dist/summary/runWhileConnectedCoordinator.js.map +1 -1
  156. package/dist/summary/runningSummarizer.d.ts +3 -3
  157. package/dist/summary/runningSummarizer.d.ts.map +1 -1
  158. package/dist/summary/runningSummarizer.js +16 -16
  159. package/dist/summary/runningSummarizer.js.map +1 -1
  160. package/dist/summary/summarizer.d.ts +3 -2
  161. package/dist/summary/summarizer.d.ts.map +1 -1
  162. package/dist/summary/summarizer.js +13 -13
  163. package/dist/summary/summarizer.js.map +1 -1
  164. package/dist/summary/summarizerClientElection.d.ts +2 -2
  165. package/dist/summary/summarizerClientElection.d.ts.map +1 -1
  166. package/dist/summary/summarizerClientElection.js.map +1 -1
  167. package/dist/summary/summarizerHeuristics.d.ts +1 -1
  168. package/dist/summary/summarizerHeuristics.d.ts.map +1 -1
  169. package/dist/summary/summarizerHeuristics.js +2 -2
  170. package/dist/summary/summarizerHeuristics.js.map +1 -1
  171. package/dist/summary/summarizerNode/summarizerNode.d.ts +3 -2
  172. package/dist/summary/summarizerNode/summarizerNode.d.ts.map +1 -1
  173. package/dist/summary/summarizerNode/summarizerNode.js +28 -28
  174. package/dist/summary/summarizerNode/summarizerNode.js.map +1 -1
  175. package/dist/summary/summarizerNode/summarizerNodeUtils.d.ts +2 -1
  176. package/dist/summary/summarizerNode/summarizerNodeUtils.d.ts.map +1 -1
  177. package/dist/summary/summarizerNode/summarizerNodeUtils.js +3 -3
  178. package/dist/summary/summarizerNode/summarizerNodeUtils.js.map +1 -1
  179. package/dist/summary/summarizerNode/summarizerNodeWithGc.d.ts +2 -1
  180. package/dist/summary/summarizerNode/summarizerNodeWithGc.d.ts.map +1 -1
  181. package/dist/summary/summarizerNode/summarizerNodeWithGc.js +14 -14
  182. package/dist/summary/summarizerNode/summarizerNodeWithGc.js.map +1 -1
  183. package/dist/summary/summarizerTypes.d.ts +5 -3
  184. package/dist/summary/summarizerTypes.d.ts.map +1 -1
  185. package/dist/summary/summarizerTypes.js.map +1 -1
  186. package/dist/summary/summaryCollection.d.ts +2 -2
  187. package/dist/summary/summaryCollection.d.ts.map +1 -1
  188. package/dist/summary/summaryCollection.js +7 -7
  189. package/dist/summary/summaryCollection.js.map +1 -1
  190. package/dist/summary/summaryFormat.d.ts +6 -17
  191. package/dist/summary/summaryFormat.d.ts.map +1 -1
  192. package/dist/summary/summaryFormat.js +8 -8
  193. package/dist/summary/summaryFormat.js.map +1 -1
  194. package/dist/summary/summaryGenerator.d.ts +4 -3
  195. package/dist/summary/summaryGenerator.d.ts.map +1 -1
  196. package/dist/summary/summaryGenerator.js +17 -17
  197. package/dist/summary/summaryGenerator.js.map +1 -1
  198. package/dist/summary/summaryManager.d.ts +1 -1
  199. package/dist/summary/summaryManager.d.ts.map +1 -1
  200. package/dist/summary/summaryManager.js +15 -14
  201. package/dist/summary/summaryManager.js.map +1 -1
  202. package/internal.d.ts +11 -0
  203. package/legacy.d.ts +11 -0
  204. package/lib/batchTracker.d.ts +1 -1
  205. package/lib/batchTracker.d.ts.map +1 -1
  206. package/lib/batchTracker.js +2 -2
  207. package/lib/batchTracker.js.map +1 -1
  208. package/lib/blobManager.d.ts +33 -30
  209. package/lib/blobManager.d.ts.map +1 -1
  210. package/lib/blobManager.js +48 -73
  211. package/lib/blobManager.js.map +1 -1
  212. package/lib/channelCollection.d.ts +27 -22
  213. package/lib/channelCollection.d.ts.map +1 -1
  214. package/lib/channelCollection.js +132 -108
  215. package/lib/channelCollection.js.map +1 -1
  216. package/lib/connectionTelemetry.d.ts +3 -3
  217. package/lib/connectionTelemetry.d.ts.map +1 -1
  218. package/lib/connectionTelemetry.js +3 -3
  219. package/lib/connectionTelemetry.js.map +1 -1
  220. package/lib/containerHandleContext.d.ts.map +1 -1
  221. package/lib/containerHandleContext.js +1 -1
  222. package/lib/containerHandleContext.js.map +1 -1
  223. package/lib/containerRuntime.d.ts +42 -39
  224. package/lib/containerRuntime.d.ts.map +1 -1
  225. package/lib/containerRuntime.js +276 -141
  226. package/lib/containerRuntime.js.map +1 -1
  227. package/lib/dataStore.d.ts +1 -1
  228. package/lib/dataStore.d.ts.map +1 -1
  229. package/lib/dataStore.js +3 -3
  230. package/lib/dataStore.js.map +1 -1
  231. package/lib/dataStoreContext.d.ts +58 -19
  232. package/lib/dataStoreContext.d.ts.map +1 -1
  233. package/lib/dataStoreContext.js +110 -53
  234. package/lib/dataStoreContext.js.map +1 -1
  235. package/lib/dataStoreContexts.d.ts +1 -0
  236. package/lib/dataStoreContexts.d.ts.map +1 -1
  237. package/lib/dataStoreContexts.js +3 -2
  238. package/lib/dataStoreContexts.js.map +1 -1
  239. package/lib/dataStoreRegistry.d.ts +5 -1
  240. package/lib/dataStoreRegistry.d.ts.map +1 -1
  241. package/lib/dataStoreRegistry.js +1 -1
  242. package/lib/dataStoreRegistry.js.map +1 -1
  243. package/lib/deltaManagerSummarizerProxy.d.ts +1 -1
  244. package/lib/deltaManagerSummarizerProxy.d.ts.map +1 -1
  245. package/lib/deltaManagerSummarizerProxy.js.map +1 -1
  246. package/lib/deltaScheduler.d.ts +1 -1
  247. package/lib/deltaScheduler.d.ts.map +1 -1
  248. package/lib/deltaScheduler.js +1 -1
  249. package/lib/deltaScheduler.js.map +1 -1
  250. package/lib/error.d.ts +1 -1
  251. package/lib/error.d.ts.map +1 -1
  252. package/lib/error.js +2 -2
  253. package/lib/error.js.map +1 -1
  254. package/lib/gc/garbageCollection.d.ts +3 -2
  255. package/lib/gc/garbageCollection.d.ts.map +1 -1
  256. package/lib/gc/garbageCollection.js +8 -8
  257. package/lib/gc/garbageCollection.js.map +1 -1
  258. package/lib/gc/gcConfigs.d.ts +2 -2
  259. package/lib/gc/gcConfigs.d.ts.map +1 -1
  260. package/lib/gc/gcConfigs.js +4 -5
  261. package/lib/gc/gcConfigs.js.map +1 -1
  262. package/lib/gc/gcDefinitions.d.ts +4 -5
  263. package/lib/gc/gcDefinitions.d.ts.map +1 -1
  264. package/lib/gc/gcDefinitions.js.map +1 -1
  265. package/lib/gc/gcHelpers.d.ts +5 -1
  266. package/lib/gc/gcHelpers.d.ts.map +1 -1
  267. package/lib/gc/gcHelpers.js +10 -2
  268. package/lib/gc/gcHelpers.js.map +1 -1
  269. package/lib/gc/gcSummaryStateTracker.d.ts +2 -2
  270. package/lib/gc/gcSummaryStateTracker.d.ts.map +1 -1
  271. package/lib/gc/gcSummaryStateTracker.js +2 -2
  272. package/lib/gc/gcSummaryStateTracker.js.map +1 -1
  273. package/lib/gc/gcTelemetry.d.ts +2 -1
  274. package/lib/gc/gcTelemetry.d.ts.map +1 -1
  275. package/lib/gc/gcTelemetry.js +4 -2
  276. package/lib/gc/gcTelemetry.js.map +1 -1
  277. package/lib/gc/gcUnreferencedStateTracker.d.ts.map +1 -1
  278. package/lib/gc/gcUnreferencedStateTracker.js +2 -2
  279. package/lib/gc/gcUnreferencedStateTracker.js.map +1 -1
  280. package/lib/gc/index.d.ts +1 -1
  281. package/lib/gc/index.d.ts.map +1 -1
  282. package/lib/gc/index.js +1 -1
  283. package/lib/gc/index.js.map +1 -1
  284. package/lib/index.d.ts +5 -2
  285. package/lib/index.d.ts.map +1 -1
  286. package/lib/index.js +5 -2
  287. package/lib/index.js.map +1 -1
  288. package/lib/legacy.d.ts +91 -0
  289. package/lib/messageTypes.d.ts +11 -5
  290. package/lib/messageTypes.d.ts.map +1 -1
  291. package/lib/messageTypes.js +4 -0
  292. package/lib/messageTypes.js.map +1 -1
  293. package/lib/opLifecycle/batchManager.d.ts.map +1 -1
  294. package/lib/opLifecycle/batchManager.js.map +1 -1
  295. package/lib/opLifecycle/definitions.d.ts +2 -20
  296. package/lib/opLifecycle/definitions.d.ts.map +1 -1
  297. package/lib/opLifecycle/definitions.js.map +1 -1
  298. package/lib/opLifecycle/index.d.ts +3 -3
  299. package/lib/opLifecycle/index.d.ts.map +1 -1
  300. package/lib/opLifecycle/index.js +2 -2
  301. package/lib/opLifecycle/index.js.map +1 -1
  302. package/lib/opLifecycle/opCompressor.d.ts.map +1 -1
  303. package/lib/opLifecycle/opCompressor.js +2 -3
  304. package/lib/opLifecycle/opCompressor.js.map +1 -1
  305. package/lib/opLifecycle/opDecompressor.d.ts +15 -4
  306. package/lib/opLifecycle/opDecompressor.d.ts.map +1 -1
  307. package/lib/opLifecycle/opDecompressor.js +61 -62
  308. package/lib/opLifecycle/opDecompressor.js.map +1 -1
  309. package/lib/opLifecycle/opGroupingManager.d.ts +2 -1
  310. package/lib/opLifecycle/opGroupingManager.d.ts.map +1 -1
  311. package/lib/opLifecycle/opGroupingManager.js +9 -12
  312. package/lib/opLifecycle/opGroupingManager.js.map +1 -1
  313. package/lib/opLifecycle/opSplitter.d.ts +12 -4
  314. package/lib/opLifecycle/opSplitter.d.ts.map +1 -1
  315. package/lib/opLifecycle/opSplitter.js +47 -38
  316. package/lib/opLifecycle/opSplitter.js.map +1 -1
  317. package/lib/opLifecycle/outbox.d.ts +2 -1
  318. package/lib/opLifecycle/outbox.d.ts.map +1 -1
  319. package/lib/opLifecycle/outbox.js +19 -18
  320. package/lib/opLifecycle/outbox.js.map +1 -1
  321. package/lib/opLifecycle/remoteMessageProcessor.d.ts +8 -0
  322. package/lib/opLifecycle/remoteMessageProcessor.d.ts.map +1 -1
  323. package/lib/opLifecycle/remoteMessageProcessor.js +36 -32
  324. package/lib/opLifecycle/remoteMessageProcessor.js.map +1 -1
  325. package/lib/packageVersion.d.ts +1 -1
  326. package/lib/packageVersion.js +1 -1
  327. package/lib/packageVersion.js.map +1 -1
  328. package/lib/pendingStateManager.d.ts +1 -1
  329. package/lib/pendingStateManager.d.ts.map +1 -1
  330. package/lib/pendingStateManager.js +2 -2
  331. package/lib/pendingStateManager.js.map +1 -1
  332. package/lib/public.d.ts +12 -0
  333. package/lib/scheduleManager.d.ts +1 -1
  334. package/lib/scheduleManager.d.ts.map +1 -1
  335. package/lib/scheduleManager.js +7 -3
  336. package/lib/scheduleManager.js.map +1 -1
  337. package/lib/storageServiceWithAttachBlobs.d.ts +2 -2
  338. package/lib/storageServiceWithAttachBlobs.d.ts.map +1 -1
  339. package/lib/storageServiceWithAttachBlobs.js +1 -1
  340. package/lib/storageServiceWithAttachBlobs.js.map +1 -1
  341. package/lib/summary/documentSchema.d.ts +209 -0
  342. package/lib/summary/documentSchema.d.ts.map +1 -0
  343. package/lib/summary/documentSchema.js +386 -0
  344. package/lib/summary/documentSchema.js.map +1 -0
  345. package/lib/summary/index.d.ts +2 -1
  346. package/lib/summary/index.d.ts.map +1 -1
  347. package/lib/summary/index.js +1 -0
  348. package/lib/summary/index.js.map +1 -1
  349. package/lib/summary/orderedClientElection.d.ts +2 -2
  350. package/lib/summary/orderedClientElection.d.ts.map +1 -1
  351. package/lib/summary/orderedClientElection.js +7 -2
  352. package/lib/summary/orderedClientElection.js.map +1 -1
  353. package/lib/summary/runWhileConnectedCoordinator.d.ts +1 -1
  354. package/lib/summary/runWhileConnectedCoordinator.d.ts.map +1 -1
  355. package/lib/summary/runWhileConnectedCoordinator.js +1 -1
  356. package/lib/summary/runWhileConnectedCoordinator.js.map +1 -1
  357. package/lib/summary/runningSummarizer.d.ts +3 -3
  358. package/lib/summary/runningSummarizer.d.ts.map +1 -1
  359. package/lib/summary/runningSummarizer.js +3 -3
  360. package/lib/summary/runningSummarizer.js.map +1 -1
  361. package/lib/summary/summarizer.d.ts +3 -2
  362. package/lib/summary/summarizer.d.ts.map +1 -1
  363. package/lib/summary/summarizer.js +3 -3
  364. package/lib/summary/summarizer.js.map +1 -1
  365. package/lib/summary/summarizerClientElection.d.ts +2 -2
  366. package/lib/summary/summarizerClientElection.d.ts.map +1 -1
  367. package/lib/summary/summarizerClientElection.js.map +1 -1
  368. package/lib/summary/summarizerHeuristics.d.ts +1 -1
  369. package/lib/summary/summarizerHeuristics.d.ts.map +1 -1
  370. package/lib/summary/summarizerHeuristics.js +1 -1
  371. package/lib/summary/summarizerHeuristics.js.map +1 -1
  372. package/lib/summary/summarizerNode/summarizerNode.d.ts +3 -2
  373. package/lib/summary/summarizerNode/summarizerNode.d.ts.map +1 -1
  374. package/lib/summary/summarizerNode/summarizerNode.js +5 -5
  375. package/lib/summary/summarizerNode/summarizerNode.js.map +1 -1
  376. package/lib/summary/summarizerNode/summarizerNodeUtils.d.ts +2 -1
  377. package/lib/summary/summarizerNode/summarizerNodeUtils.d.ts.map +1 -1
  378. package/lib/summary/summarizerNode/summarizerNodeUtils.js +1 -1
  379. package/lib/summary/summarizerNode/summarizerNodeUtils.js.map +1 -1
  380. package/lib/summary/summarizerNode/summarizerNodeWithGc.d.ts +2 -1
  381. package/lib/summary/summarizerNode/summarizerNodeWithGc.d.ts.map +1 -1
  382. package/lib/summary/summarizerNode/summarizerNodeWithGc.js +3 -3
  383. package/lib/summary/summarizerNode/summarizerNodeWithGc.js.map +1 -1
  384. package/lib/summary/summarizerTypes.d.ts +5 -3
  385. package/lib/summary/summarizerTypes.d.ts.map +1 -1
  386. package/lib/summary/summarizerTypes.js.map +1 -1
  387. package/lib/summary/summaryCollection.d.ts +2 -2
  388. package/lib/summary/summaryCollection.d.ts.map +1 -1
  389. package/lib/summary/summaryCollection.js +1 -1
  390. package/lib/summary/summaryCollection.js.map +1 -1
  391. package/lib/summary/summaryFormat.d.ts +6 -17
  392. package/lib/summary/summaryFormat.d.ts.map +1 -1
  393. package/lib/summary/summaryFormat.js +3 -3
  394. package/lib/summary/summaryFormat.js.map +1 -1
  395. package/lib/summary/summaryGenerator.d.ts +4 -3
  396. package/lib/summary/summaryGenerator.d.ts.map +1 -1
  397. package/lib/summary/summaryGenerator.js +4 -4
  398. package/lib/summary/summaryGenerator.js.map +1 -1
  399. package/lib/summary/summaryManager.d.ts +1 -1
  400. package/lib/summary/summaryManager.d.ts.map +1 -1
  401. package/lib/summary/summaryManager.js +9 -8
  402. package/lib/summary/summaryManager.js.map +1 -1
  403. package/package.json +57 -65
  404. package/src/batchTracker.ts +4 -3
  405. package/src/blobManager.ts +100 -77
  406. package/src/channelCollection.ts +223 -167
  407. package/src/connectionTelemetry.ts +12 -12
  408. package/src/containerHandleContext.ts +3 -2
  409. package/src/containerRuntime.ts +481 -277
  410. package/src/dataStore.ts +9 -4
  411. package/src/dataStoreContext.ts +201 -97
  412. package/src/dataStoreContexts.ts +5 -2
  413. package/src/dataStoreRegistry.ts +3 -2
  414. package/src/deltaManagerSummarizerProxy.ts +1 -1
  415. package/src/deltaScheduler.ts +2 -1
  416. package/src/error.ts +2 -2
  417. package/src/gc/garbageCollection.ts +21 -20
  418. package/src/gc/gcConfigs.ts +15 -18
  419. package/src/gc/gcDefinitions.ts +6 -8
  420. package/src/gc/gcHelpers.ts +22 -5
  421. package/src/gc/gcSummaryStateTracker.ts +7 -5
  422. package/src/gc/gcTelemetry.ts +13 -7
  423. package/src/gc/gcUnreferencedStateTracker.ts +3 -2
  424. package/src/gc/index.ts +1 -0
  425. package/src/index.ts +22 -1
  426. package/src/messageTypes.ts +20 -6
  427. package/src/opLifecycle/README.md +89 -0
  428. package/src/opLifecycle/batchManager.ts +1 -0
  429. package/src/opLifecycle/definitions.ts +3 -21
  430. package/src/opLifecycle/index.ts +3 -9
  431. package/src/opLifecycle/opCompressor.ts +6 -5
  432. package/src/opLifecycle/opDecompressor.ts +90 -100
  433. package/src/opLifecycle/opGroupingManager.ts +12 -14
  434. package/src/opLifecycle/opSplitter.ts +76 -48
  435. package/src/opLifecycle/outbox.ts +30 -38
  436. package/src/opLifecycle/remoteMessageProcessor.ts +43 -55
  437. package/src/packageVersion.ts +1 -1
  438. package/src/pendingStateManager.ts +6 -6
  439. package/src/scheduleManager.ts +10 -8
  440. package/src/storageServiceWithAttachBlobs.ts +2 -2
  441. package/src/summary/documentSchema.ts +631 -0
  442. package/src/summary/index.ts +10 -1
  443. package/src/summary/orderedClientElection.ts +7 -7
  444. package/src/summary/runWhileConnectedCoordinator.ts +3 -2
  445. package/src/summary/runningSummarizer.ts +22 -20
  446. package/src/summary/summarizer.ts +17 -15
  447. package/src/summary/summarizerClientElection.ts +3 -2
  448. package/src/summary/summarizerHeuristics.ts +4 -2
  449. package/src/summary/summarizerNode/summarizerNode.ts +20 -18
  450. package/src/summary/summarizerNode/summarizerNodeUtils.ts +3 -2
  451. package/src/summary/summarizerNode/summarizerNodeWithGc.ts +16 -8
  452. package/src/summary/summarizerTypes.ts +7 -3
  453. package/src/summary/summaryCollection.ts +3 -3
  454. package/src/summary/summaryFormat.ts +14 -26
  455. package/src/summary/summaryGenerator.ts +12 -15
  456. package/src/summary/summaryManager.ts +16 -13
  457. package/api-extractor-cjs.json +0 -8
  458. package/dist/container-runtime-alpha.d.ts +0 -1753
  459. package/dist/container-runtime-beta.d.ts +0 -268
  460. package/dist/container-runtime-public.d.ts +0 -268
  461. package/dist/container-runtime-untrimmed.d.ts +0 -1893
  462. package/lib/container-runtime-alpha.d.ts +0 -1753
  463. package/lib/container-runtime-beta.d.ts +0 -268
  464. package/lib/container-runtime-public.d.ts +0 -268
  465. package/lib/container-runtime-untrimmed.d.ts +0 -1893
  466. package/lib/test/batchTracker.spec.js +0 -88
  467. package/lib/test/batchTracker.spec.js.map +0 -1
  468. package/lib/test/blobManager.spec.js +0 -835
  469. package/lib/test/blobManager.spec.js.map +0 -1
  470. package/lib/test/channelCollection.spec.js +0 -141
  471. package/lib/test/channelCollection.spec.js.map +0 -1
  472. package/lib/test/containerRuntime.spec.js +0 -1748
  473. package/lib/test/containerRuntime.spec.js.map +0 -1
  474. package/lib/test/dataStoreContext.spec.js +0 -801
  475. package/lib/test/dataStoreContext.spec.js.map +0 -1
  476. package/lib/test/dataStoreCreation.spec.js +0 -312
  477. package/lib/test/dataStoreCreation.spec.js.map +0 -1
  478. package/lib/test/dataStoreRegistry.spec.js +0 -26
  479. package/lib/test/dataStoreRegistry.spec.js.map +0 -1
  480. package/lib/test/fuzz/fuzzUtils.js +0 -66
  481. package/lib/test/fuzz/fuzzUtils.js.map +0 -1
  482. package/lib/test/fuzz/summarizer.fuzz.spec.js +0 -31
  483. package/lib/test/fuzz/summarizer.fuzz.spec.js.map +0 -1
  484. package/lib/test/fuzz/summarizerFuzzMocks.js +0 -162
  485. package/lib/test/fuzz/summarizerFuzzMocks.js.map +0 -1
  486. package/lib/test/fuzz/summarizerFuzzSuite.js +0 -106
  487. package/lib/test/fuzz/summarizerFuzzSuite.js.map +0 -1
  488. package/lib/test/gc/garbageCollection.spec.js +0 -1465
  489. package/lib/test/gc/garbageCollection.spec.js.map +0 -1
  490. package/lib/test/gc/gcConfigs.spec.js +0 -690
  491. package/lib/test/gc/gcConfigs.spec.js.map +0 -1
  492. package/lib/test/gc/gcHelpers.spec.js +0 -110
  493. package/lib/test/gc/gcHelpers.spec.js.map +0 -1
  494. package/lib/test/gc/gcReferenceGraphAlgorithm.spec.js +0 -68
  495. package/lib/test/gc/gcReferenceGraphAlgorithm.spec.js.map +0 -1
  496. package/lib/test/gc/gcStats.spec.js +0 -391
  497. package/lib/test/gc/gcStats.spec.js.map +0 -1
  498. package/lib/test/gc/gcSummaryStateTracker.spec.js +0 -228
  499. package/lib/test/gc/gcSummaryStateTracker.spec.js.map +0 -1
  500. package/lib/test/gc/gcTelemetry.spec.js +0 -530
  501. package/lib/test/gc/gcTelemetry.spec.js.map +0 -1
  502. package/lib/test/gc/gcUnitTestHelpers.js +0 -29
  503. package/lib/test/gc/gcUnitTestHelpers.js.map +0 -1
  504. package/lib/test/gc/gcUnreferencedStateTracker.spec.js +0 -192
  505. package/lib/test/gc/gcUnreferencedStateTracker.spec.js.map +0 -1
  506. package/lib/test/getPendingBlobs.spec.js +0 -193
  507. package/lib/test/getPendingBlobs.spec.js.map +0 -1
  508. package/lib/test/hardwareStats.spec.js +0 -93
  509. package/lib/test/hardwareStats.spec.js.map +0 -1
  510. package/lib/test/index.js +0 -6
  511. package/lib/test/index.js.map +0 -1
  512. package/lib/test/opLifecycle/OpGroupingManager.spec.js +0 -225
  513. package/lib/test/opLifecycle/OpGroupingManager.spec.js.map +0 -1
  514. package/lib/test/opLifecycle/batchManager.spec.js +0 -189
  515. package/lib/test/opLifecycle/batchManager.spec.js.map +0 -1
  516. package/lib/test/opLifecycle/opCompressor.spec.js +0 -74
  517. package/lib/test/opLifecycle/opCompressor.spec.js.map +0 -1
  518. package/lib/test/opLifecycle/opDecompressor.spec.js +0 -218
  519. package/lib/test/opLifecycle/opDecompressor.spec.js.map +0 -1
  520. package/lib/test/opLifecycle/opSplitter.spec.js +0 -272
  521. package/lib/test/opLifecycle/opSplitter.spec.js.map +0 -1
  522. package/lib/test/opLifecycle/outbox.spec.js +0 -675
  523. package/lib/test/opLifecycle/outbox.spec.js.map +0 -1
  524. package/lib/test/opLifecycle/remoteMessageProcessor.spec.js +0 -196
  525. package/lib/test/opLifecycle/remoteMessageProcessor.spec.js.map +0 -1
  526. package/lib/test/pendingStateManager.spec.js +0 -329
  527. package/lib/test/pendingStateManager.spec.js.map +0 -1
  528. package/lib/test/scheduleManager.spec.js +0 -270
  529. package/lib/test/scheduleManager.spec.js.map +0 -1
  530. package/lib/test/summarizerNode.spec.js +0 -326
  531. package/lib/test/summarizerNode.spec.js.map +0 -1
  532. package/lib/test/summarizerNodeWithGc.spec.js +0 -318
  533. package/lib/test/summarizerNodeWithGc.spec.js.map +0 -1
  534. package/lib/test/summary/orderedClientElection.spec.js +0 -535
  535. package/lib/test/summary/orderedClientElection.spec.js.map +0 -1
  536. package/lib/test/summary/runningSummarizer.spec.js +0 -1349
  537. package/lib/test/summary/runningSummarizer.spec.js.map +0 -1
  538. package/lib/test/summary/summarizer.spec.js +0 -29
  539. package/lib/test/summary/summarizer.spec.js.map +0 -1
  540. package/lib/test/summary/summarizerClientElection.spec.js +0 -436
  541. package/lib/test/summary/summarizerClientElection.spec.js.map +0 -1
  542. package/lib/test/summary/summarizerHeuristics.spec.js +0 -289
  543. package/lib/test/summary/summarizerHeuristics.spec.js.map +0 -1
  544. package/lib/test/summary/summaryCollection.spec.js +0 -200
  545. package/lib/test/summary/summaryCollection.spec.js.map +0 -1
  546. package/lib/test/summary/summaryManager.spec.js +0 -430
  547. package/lib/test/summary/summaryManager.spec.js.map +0 -1
  548. package/lib/test/summary/testQuorumClients.js +0 -34
  549. package/lib/test/summary/testQuorumClients.js.map +0 -1
  550. package/lib/test/throttler.spec.js +0 -175
  551. package/lib/test/throttler.spec.js.map +0 -1
  552. package/lib/test/types/validateContainerRuntimePrevious.generated.js +0 -180
  553. package/lib/test/types/validateContainerRuntimePrevious.generated.js.map +0 -1
  554. /package/{dist → lib}/tsdoc-metadata.json +0 -0
@@ -4,57 +4,66 @@
4
4
 
5
5
  ```ts
6
6
 
7
+ import { AliasResult } from '@fluidframework/runtime-definitions/internal';
7
8
  import { AttachState } from '@fluidframework/container-definitions';
8
- import { ContainerWarning } from '@fluidframework/container-definitions';
9
- import { CreateChildSummarizerNodeParam } from '@fluidframework/runtime-definitions';
10
- import { FluidDataStoreRegistryEntry } from '@fluidframework/runtime-definitions';
9
+ import { ContainerWarning } from '@fluidframework/container-definitions/internal';
10
+ import { CreateChildSummarizerNodeFn } from '@fluidframework/runtime-definitions/internal';
11
+ import { CreateChildSummarizerNodeParam } from '@fluidframework/runtime-definitions/internal';
12
+ import { FluidDataStoreRegistryEntry } from '@fluidframework/runtime-definitions/internal';
11
13
  import { FluidObject } from '@fluidframework/core-interfaces';
12
- import { FlushMode } from '@fluidframework/runtime-definitions';
14
+ import { FlushMode } from '@fluidframework/runtime-definitions/internal';
13
15
  import { IAudience } from '@fluidframework/container-definitions';
14
16
  import { IClientDetails } from '@fluidframework/protocol-definitions';
15
- import { IContainerContext } from '@fluidframework/container-definitions';
16
- import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
17
- import { IContainerRuntimeEvents } from '@fluidframework/container-runtime-definitions';
17
+ import { IContainerContext } from '@fluidframework/container-definitions/internal';
18
+ import { IContainerRuntime } from '@fluidframework/container-runtime-definitions/internal';
19
+ import { IContainerRuntimeBase } from '@fluidframework/runtime-definitions/internal';
20
+ import { IContainerRuntimeEvents } from '@fluidframework/container-runtime-definitions/internal';
18
21
  import { ICriticalContainerError } from '@fluidframework/container-definitions';
19
- import { IDataStore } from '@fluidframework/runtime-definitions';
22
+ import { IDataStore } from '@fluidframework/runtime-definitions/internal';
20
23
  import { IDeltaManager } from '@fluidframework/container-definitions';
21
24
  import { IDisposable } from '@fluidframework/core-interfaces';
22
25
  import { IDocumentMessage } from '@fluidframework/protocol-definitions';
23
- import { IDocumentStorageService } from '@fluidframework/driver-definitions';
24
- import { IEnvelope } from '@fluidframework/runtime-definitions';
26
+ import { IDocumentStorageService } from '@fluidframework/driver-definitions/internal';
27
+ import { IEnvelope } from '@fluidframework/runtime-definitions/internal';
25
28
  import { IEvent } from '@fluidframework/core-interfaces';
26
29
  import { IEventProvider } from '@fluidframework/core-interfaces';
27
- import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions';
28
- import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions';
29
- import { IFluidDataStoreContextDetached } from '@fluidframework/runtime-definitions';
30
- import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions';
31
- import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
30
+ import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions/internal';
31
+ import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions/internal';
32
+ import { IFluidDataStoreContextDetached } from '@fluidframework/runtime-definitions/internal';
33
+ import { IFluidDataStoreFactory } from '@fluidframework/runtime-definitions/internal';
34
+ import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions/internal';
32
35
  import { IFluidHandle } from '@fluidframework/core-interfaces';
33
36
  import { IFluidHandleContext } from '@fluidframework/core-interfaces';
37
+ import { IFluidParentContext } from '@fluidframework/runtime-definitions/internal';
34
38
  import { IGarbageCollectionData } from '@fluidframework/runtime-definitions';
35
- import { IGetPendingLocalStateProps } from '@fluidframework/container-definitions';
39
+ import { IGarbageCollectionDetailsBase } from '@fluidframework/runtime-definitions/internal';
40
+ import { IGetPendingLocalStateProps } from '@fluidframework/container-definitions/internal';
36
41
  import type { IIdCompressor } from '@fluidframework/id-compressor';
37
- import type { IIdCompressorCore } from '@fluidframework/id-compressor';
42
+ import type { IIdCompressorCore } from '@fluidframework/id-compressor/internal';
43
+ import { IInboundSignalMessage } from '@fluidframework/runtime-definitions';
38
44
  import { IProvideFluidHandleContext } from '@fluidframework/core-interfaces';
39
45
  import { IQuorumClients } from '@fluidframework/protocol-definitions';
40
46
  import { IRequest } from '@fluidframework/core-interfaces';
41
47
  import { IResponse } from '@fluidframework/core-interfaces';
42
- import { IRuntime } from '@fluidframework/container-definitions';
48
+ import { IRuntime } from '@fluidframework/container-definitions/internal';
43
49
  import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
44
50
  import { ISignalMessage } from '@fluidframework/protocol-definitions';
45
51
  import { ISnapshotTree } from '@fluidframework/protocol-definitions';
46
- import { ISummarizerNodeWithGC } from '@fluidframework/runtime-definitions';
52
+ import { ISummarizeResult } from '@fluidframework/runtime-definitions/internal';
53
+ import { ISummarizerNodeWithGC } from '@fluidframework/runtime-definitions/internal';
47
54
  import { ISummaryAck } from '@fluidframework/protocol-definitions';
48
55
  import { ISummaryContent } from '@fluidframework/protocol-definitions';
49
56
  import { ISummaryNack } from '@fluidframework/protocol-definitions';
50
57
  import { ISummaryStats } from '@fluidframework/runtime-definitions';
51
58
  import { ISummaryTree } from '@fluidframework/protocol-definitions';
52
59
  import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
60
+ import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
53
61
  import { ITelemetryContext } from '@fluidframework/runtime-definitions';
54
62
  import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
55
63
  import { MessageType } from '@fluidframework/protocol-definitions';
56
- import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions';
57
- import { SummarizeInternalFn } from '@fluidframework/runtime-definitions';
64
+ import { MonitoringContext } from '@fluidframework/telemetry-utils/internal';
65
+ import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions/internal';
66
+ import { SummarizeInternalFn } from '@fluidframework/runtime-definitions/internal';
58
67
  import { TypedEventEmitter } from '@fluid-internal/client-utils';
59
68
 
60
69
  // @internal
@@ -66,9 +75,96 @@ export const AllowInactiveRequestHeaderKey = "allowInactive";
66
75
  // @alpha
67
76
  export const AllowTombstoneRequestHeaderKey = "allowTombstone";
68
77
 
78
+ // @internal
79
+ export class ChannelCollection implements IFluidDataStoreChannel, IDisposable {
80
+ constructor(baseSnapshot: ISnapshotTree | undefined, parentContext: IFluidParentContext, baseLogger: ITelemetryBaseLogger, gcNodeUpdated: (nodePath: string, reason: "Loaded" | "Changed", timestampMs?: number, packagePath?: readonly string[], request?: IRequest, headerData?: RuntimeHeaderData) => void, isDataStoreDeleted: (nodePath: string) => boolean, aliasMap: Map<string, string>, provideEntryPoint: (runtime: ChannelCollection) => Promise<FluidObject>);
81
+ // (undocumented)
82
+ get aliases(): ReadonlyMap<string, string>;
83
+ // (undocumented)
84
+ protected applyStashedChannelChannelOp(envelope: IEnvelope): Promise<unknown>;
85
+ // (undocumented)
86
+ applyStashedOp(content: unknown): Promise<unknown>;
87
+ // (undocumented)
88
+ readonly attachOpFiredForDataStore: Set<string>;
89
+ // (undocumented)
90
+ protected readonly baseSnapshot: ISnapshotTree | undefined;
91
+ // (undocumented)
92
+ readonly containerLoadStats: {
93
+ readonly containerLoadDataStoreCount: number;
94
+ readonly referencedDataStoreCount: number;
95
+ };
96
+ // (undocumented)
97
+ protected readonly contexts: DataStoreContexts;
98
+ // (undocumented)
99
+ protected createContext<T extends LocalFluidDataStoreContext>(id: string, pkg: Readonly<string[]>, contextCtor: new (props: ILocalDetachedFluidDataStoreContextProps) => T, createProps?: any, loadingGroupId?: string): T;
100
+ // (undocumented)
101
+ createDataStoreContext(pkg: Readonly<string[]>, props?: any, loadingGroupId?: string): IFluidDataStoreContextInternal;
102
+ protected createDataStoreId(): string;
103
+ // (undocumented)
104
+ createDetachedDataStore(pkg: Readonly<string[]>, loadingGroupId?: string): IFluidDataStoreContextDetached;
105
+ // (undocumented)
106
+ deleteChild(dataStoreId: string): void;
107
+ deleteSweepReadyNodes(sweepReadyDataStoreRoutes: readonly string[]): readonly string[];
108
+ // (undocumented)
109
+ readonly dispose: () => void;
110
+ // (undocumented)
111
+ get disposed(): boolean;
112
+ // (undocumented)
113
+ readonly entryPoint: IFluidHandle<FluidObject>;
114
+ getAttachSummary(telemetryContext?: ITelemetryContext): ISummaryTreeWithStats;
115
+ // (undocumented)
116
+ getDataStore(id: string, requestHeaderData: RuntimeHeaderData): Promise<IFluidDataStoreContextInternal>;
117
+ getDataStoreIfAvailable(id: string, requestHeaderData: RuntimeHeaderData): Promise<IFluidDataStoreContextInternal | undefined>;
118
+ getDataStorePackagePath(nodePath: string): Promise<readonly string[] | undefined>;
119
+ getGCData(fullGC?: boolean): Promise<IGarbageCollectionData>;
120
+ getGCNodeType(nodePath: string): GCNodeType | undefined;
121
+ // (undocumented)
122
+ internalId(maybeAlias: string): string;
123
+ makeVisibleAndAttachGraph(): void;
124
+ // (undocumented)
125
+ protected readonly mc: MonitoringContext;
126
+ // (undocumented)
127
+ readonly parentContext: IFluidParentContext;
128
+ // (undocumented)
129
+ get pendingAliases(): Map<string, Promise<AliasResult>>;
130
+ // (undocumented)
131
+ process(message: ISequencedDocumentMessage, local: boolean, localMessageMetadata: unknown, addedOutboundReference?: (fromNodePath: string, toNodePath: string) => void): void;
132
+ // (undocumented)
133
+ processAliasMessageCore(internalId: string, alias: string): boolean;
134
+ // (undocumented)
135
+ protected processChannelOp(address: string, message: ISequencedDocumentMessage, local: boolean, localMessageMetadata: unknown): void;
136
+ // (undocumented)
137
+ processSignal(messageArg: IInboundSignalMessage, local: boolean): void;
138
+ // (undocumented)
139
+ request(request: IRequest): Promise<IResponse>;
140
+ // (undocumented)
141
+ reSubmit(type: string, content: any, localOpMetadata: unknown): void;
142
+ // (undocumented)
143
+ protected reSubmitChannelOp(type: string, content: any, localOpMetadata: unknown): void;
144
+ // (undocumented)
145
+ rollback(type: string, content: any, localOpMetadata: unknown): void;
146
+ // (undocumented)
147
+ setAttachState(attachState: AttachState.Attaching | AttachState.Attached): void;
148
+ // (undocumented)
149
+ setConnectionState(connected: boolean, clientId?: string): void;
150
+ // (undocumented)
151
+ get size(): number;
152
+ // (undocumented)
153
+ protected submitAttachChannelOp(localContext: LocalFluidDataStoreContext): void;
154
+ // (undocumented)
155
+ summarize(fullTree: boolean, trackState: boolean, telemetryContext?: ITelemetryContext): Promise<ISummaryTreeWithStats>;
156
+ updateStateBeforeGC(): Promise<void>;
157
+ updateTombstonedRoutes(tombstonedRoutes: readonly string[]): void;
158
+ updateUsedRoutes(usedRoutes: readonly string[]): void;
159
+ // (undocumented)
160
+ waitIfPendingAlias(maybeAlias: string): Promise<AliasResult>;
161
+ // (undocumented)
162
+ protected wrapContextForInnerChannel(id: string): IFluidParentContext;
163
+ }
164
+
69
165
  // @internal (undocumented)
70
- export class ChannelCollectionFactory implements IFluidDataStoreFactory {
71
- constructor(registryEntries: NamedFluidDataStoreRegistryEntries, provideEntryPoint: (runtime: IFluidDataStoreChannel) => Promise<FluidObject>);
166
+ export class ChannelCollectionFactory<T extends ChannelCollection = ChannelCollection> implements IFluidDataStoreFactory {
167
+ constructor(registryEntries: NamedFluidDataStoreRegistryEntries, provideEntryPoint: (runtime: IFluidDataStoreChannel) => Promise<FluidObject>, ctor: (...args: ConstructorParameters<typeof ChannelCollection>) => T);
72
168
  // (undocumented)
73
169
  get IFluidDataStoreFactory(): this;
74
170
  // (undocumented)
@@ -102,6 +198,7 @@ export enum ContainerMessageType {
102
198
  BlobAttach = "blobAttach",
103
199
  // (undocumented)
104
200
  ChunkedOp = "chunkedOp",
201
+ DocumentSchemaChange = "schema",
105
202
  // (undocumented)
106
203
  FluidDataStoreOp = "component",
107
204
  GC = "GC",
@@ -112,7 +209,7 @@ export enum ContainerMessageType {
112
209
 
113
210
  // @alpha
114
211
  export class ContainerRuntime extends TypedEventEmitter<IContainerRuntimeEvents & ISummarizerEvents> implements IContainerRuntime, IRuntime, ISummarizerRuntime, ISummarizerInternalsProvider, IProvideFluidHandleContext {
115
- protected constructor(context: IContainerContext, registry: IFluidDataStoreRegistry, metadata: IContainerRuntimeMetadata | undefined, electedSummarizerData: ISerializedElection | undefined, chunks: [string, string[]][], dataStoreAliasMap: [string, string][], runtimeOptions: Readonly<Required<IContainerRuntimeOptions>>, containerScope: FluidObject, logger: ITelemetryLoggerExt, existing: boolean, blobManagerSnapshot: IBlobManagerLoadInfo, _storage: IDocumentStorageService, createIdCompressor: () => Promise<IIdCompressor & IIdCompressorCore>, idCompressorMode: IdCompressorMode, provideEntryPoint: (containerRuntime: IContainerRuntime) => Promise<FluidObject>, requestHandler?: ((request: IRequest, runtime: IContainerRuntime) => Promise<IResponse>) | undefined, summaryConfiguration?: ISummaryConfiguration);
212
+ protected constructor(context: IContainerContext, registry: IFluidDataStoreRegistry, metadata: IContainerRuntimeMetadata | undefined, electedSummarizerData: ISerializedElection | undefined, chunks: [string, string[]][], dataStoreAliasMap: [string, string][], runtimeOptions: Readonly<Required<IContainerRuntimeOptions>>, containerScope: FluidObject, logger: ITelemetryLoggerExt, existing: boolean, blobManagerSnapshot: IBlobManagerLoadInfo, _storage: IDocumentStorageService, createIdCompressor: () => Promise<IIdCompressor & IIdCompressorCore>, documentsSchemaController: DocumentsSchemaController, featureGatesForTelemetry: Record<string, boolean | number | undefined>, provideEntryPoint: (containerRuntime: IContainerRuntime) => Promise<FluidObject>, requestHandler?: ((request: IRequest, runtime: IContainerRuntime) => Promise<IResponse>) | undefined, summaryConfiguration?: ISummaryConfiguration);
116
213
  // (undocumented)
117
214
  protected addContainerStateToSummary(summaryTree: ISummaryTreeWithStats, fullTree: boolean, trackState: boolean, telemetryContext?: ITelemetryContext): void;
118
215
  addedGCOutboundReference(srcHandle: {
@@ -133,7 +230,6 @@ export class ContainerRuntime extends TypedEventEmitter<IContainerRuntimeEvents
133
230
  runSweep?: boolean;
134
231
  fullGC?: boolean;
135
232
  }, telemetryContext?: ITelemetryContext): Promise<IGCStats | undefined>;
136
- protected compressorLoadInitiated: boolean;
137
233
  // (undocumented)
138
234
  get connected(): boolean;
139
235
  // (undocumented)
@@ -148,8 +244,6 @@ export class ContainerRuntime extends TypedEventEmitter<IContainerRuntimeEvents
148
244
  // (undocumented)
149
245
  deleteChildSummarizerNode(id: string): void;
150
246
  deleteSweepReadyNodes(sweepReadyRoutes: readonly string[]): readonly string[];
151
- // @deprecated (undocumented)
152
- deleteUnusedNodes(unusedRoutes: readonly string[]): string[];
153
247
  readonly deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;
154
248
  // (undocumented)
155
249
  dispose(error?: Error): void;
@@ -158,6 +252,14 @@ export class ContainerRuntime extends TypedEventEmitter<IContainerRuntimeEvents
158
252
  // (undocumented)
159
253
  readonly disposeFn: (error?: ICriticalContainerError) => void;
160
254
  // (undocumented)
255
+ get documentSchema(): {
256
+ explicitSchemaControl?: true | undefined;
257
+ compressionLz4?: true | undefined;
258
+ idCompressorMode?: IdCompressorMode;
259
+ opGroupingEnabled?: true | undefined;
260
+ disallowedVersions?: string[] | undefined;
261
+ };
262
+ // (undocumented)
161
263
  enqueueSummarize(options: IEnqueueSummarizeOptions): EnqueueSummarizeResult;
162
264
  ensureNoDataModelChanges<T>(callback: () => T): T;
163
265
  // (undocumented)
@@ -191,10 +293,13 @@ export class ContainerRuntime extends TypedEventEmitter<IContainerRuntimeEvents
191
293
  }>;
192
294
  get idCompressor(): (IIdCompressor & IIdCompressorCore) | undefined;
193
295
  // (undocumented)
296
+ get idCompressorMode(): IdCompressorMode;
297
+ // (undocumented)
194
298
  get IFluidDataStoreRegistry(): IFluidDataStoreRegistry;
195
299
  // (undocumented)
196
300
  get IFluidHandleContext(): IFluidHandleContext;
197
301
  get isDirty(): boolean;
302
+ protected _loadIdCompressor: Promise<void> | undefined;
198
303
  static loadRuntime(params: {
199
304
  context: IContainerContext;
200
305
  registryEntries: NamedFluidDataStoreRegistryEntries;
@@ -212,6 +317,8 @@ export class ContainerRuntime extends TypedEventEmitter<IContainerRuntimeEvents
212
317
  // (undocumented)
213
318
  notifyOpReplay(message: ISequencedDocumentMessage): Promise<void>;
214
319
  // (undocumented)
320
+ onSchemaChange(schema: IDocumentSchemaCurrent): void;
321
+ // (undocumented)
215
322
  readonly options: Record<string | number, any>;
216
323
  orderSequentially<T>(callback: () => T): T;
217
324
  // (undocumented)
@@ -225,12 +332,14 @@ export class ContainerRuntime extends TypedEventEmitter<IContainerRuntimeEvents
225
332
  // (undocumented)
226
333
  setAttachState(attachState: AttachState.Attaching | AttachState.Attached): void;
227
334
  // (undocumented)
335
+ setChannelDirty(address: string): void;
336
+ // (undocumented)
228
337
  setConnectionState(connected: boolean, clientId?: string): void;
229
338
  // (undocumented)
230
339
  get storage(): IDocumentStorageService;
231
340
  // (undocumented)
232
341
  submitMessage(type: ContainerMessageType.FluidDataStoreOp | ContainerMessageType.Alias | ContainerMessageType.Attach, contents: any, localOpMetadata?: unknown): void;
233
- submitSignal(type: string, content: any, targetClientId?: string): void;
342
+ submitSignal(type: string, content: unknown, targetClientId?: string): void;
234
343
  submitSummary(options: ISubmitSummaryOptions): Promise<SubmitSummaryResult>;
235
344
  summarize(options: {
236
345
  fullTree?: boolean;
@@ -245,7 +354,6 @@ export class ContainerRuntime extends TypedEventEmitter<IContainerRuntimeEvents
245
354
  get summarizerClientId(): string | undefined;
246
355
  updateStateBeforeGC(): Promise<void>;
247
356
  updateTombstonedRoutes(tombstonedRoutes: readonly string[]): void;
248
- updateUnusedRoutes(unusedRoutes: readonly string[]): void;
249
357
  updateUsedRoutes(usedRoutes: readonly string[]): void;
250
358
  // (undocumented)
251
359
  uploadBlob(blob: ArrayBufferLike, signal?: AbortSignal): Promise<IFluidHandle<ArrayBufferLike>>;
@@ -258,11 +366,61 @@ export interface ContainerRuntimeMessage {
258
366
  type: ContainerMessageType;
259
367
  }
260
368
 
369
+ // @alpha
370
+ export const currentDocumentVersionSchema = 1;
371
+
372
+ // @internal (undocumented)
373
+ export class DataStoreContexts implements Iterable<[string, FluidDataStoreContext]>, IDisposable {
374
+ // (undocumented)
375
+ [Symbol.iterator](): Iterator<[string, FluidDataStoreContext]>;
376
+ constructor(baseLogger: ITelemetryBaseLogger);
377
+ addBoundOrRemoted(context: FluidDataStoreContext): void;
378
+ addUnbound(context: LocalFluidDataStoreContext): void;
379
+ bind(id: string): void;
380
+ // (undocumented)
381
+ delete(id: string): boolean;
382
+ // (undocumented)
383
+ readonly dispose: () => void;
384
+ // (undocumented)
385
+ get disposed(): boolean;
386
+ // (undocumented)
387
+ get(id: string): FluidDataStoreContext | undefined;
388
+ getBoundOrRemoted(id: string, wait: boolean): Promise<FluidDataStoreContext | undefined>;
389
+ getUnbound(id: string): LocalFluidDataStoreContext | undefined;
390
+ // (undocumented)
391
+ has(id: string): boolean;
392
+ // (undocumented)
393
+ isNotBound(id: string): boolean;
394
+ // (undocumented)
395
+ notBoundLength(): number;
396
+ // (undocumented)
397
+ get size(): number;
398
+ }
399
+
261
400
  // @alpha (undocumented)
262
401
  export const DefaultSummaryConfiguration: ISummaryConfiguration;
263
402
 
264
403
  // @internal
265
- export function detectOutboundReferences(envelope: IEnvelope, addedOutboundReference: (fromNodePath: string, toNodePath: string) => void): void;
404
+ export function detectOutboundReferences(address: string, contents: unknown, addedOutboundReference: (fromNodePath: string, toNodePath: string) => void): void;
405
+
406
+ // @alpha (undocumented)
407
+ export const disabledCompressionConfig: ICompressionRuntimeOptions;
408
+
409
+ // @alpha
410
+ export type DocumentSchemaValueType = string | string[] | true | number | undefined;
411
+
412
+ // @alpha
413
+ export class DocumentsSchemaController {
414
+ constructor(existing: boolean, documentMetadataSchema: IDocumentSchema | undefined, features: IDocumentSchemaFeatures, onSchemaChange: (schema: IDocumentSchemaCurrent) => void);
415
+ maybeSendSchemaMessage(): IDocumentSchemaChangeMessage | undefined;
416
+ // (undocumented)
417
+ onDisconnect(): void;
418
+ processDocumentSchemaOp(content: IDocumentSchemaChangeMessage, local: boolean, sequenceNumber: number): boolean;
419
+ // (undocumented)
420
+ sessionSchema: IDocumentSchemaCurrent;
421
+ // (undocumented)
422
+ summarizeDocumentSchema(refSeq: number): IDocumentSchemaCurrent | undefined;
423
+ }
266
424
 
267
425
  // @alpha (undocumented)
268
426
  export type EnqueueSummarizeResult = (ISummarizeResults & {
@@ -275,6 +433,145 @@ export type EnqueueSummarizeResult = (ISummarizeResults & {
275
433
  readonly overridden?: undefined;
276
434
  };
277
435
 
436
+ // @internal
437
+ export abstract class FluidDataStoreContext extends TypedEventEmitter<IFluidDataStoreContextEvents> implements IFluidDataStoreContextInternal, IFluidParentContext, IDisposable {
438
+ constructor(props: IFluidDataStoreContextProps, existing: boolean, isLocalDataStore: boolean, makeLocallyVisibleFn: () => void);
439
+ // @deprecated (undocumented)
440
+ addedGCOutboundReference(srcHandle: IFluidHandle, outboundHandle: IFluidHandle): void;
441
+ addedGCOutboundRoute(fromPath: string, toPath: string): void;
442
+ // (undocumented)
443
+ applyStashedOp(contents: any): Promise<unknown>;
444
+ // (undocumented)
445
+ get attachState(): AttachState;
446
+ // (undocumented)
447
+ protected _attachState: AttachState;
448
+ // (undocumented)
449
+ get baseSnapshot(): ISnapshotTree | undefined;
450
+ // (undocumented)
451
+ protected _baseSnapshot: ISnapshotTree | undefined;
452
+ // (undocumented)
453
+ protected bindRuntime(channel: IFluidDataStoreChannel, existing: boolean): Promise<void>;
454
+ // (undocumented)
455
+ protected channel: IFluidDataStoreChannel | undefined;
456
+ // (undocumented)
457
+ protected channelP: Promise<IFluidDataStoreChannel> | undefined;
458
+ // (undocumented)
459
+ get clientDetails(): IClientDetails;
460
+ // (undocumented)
461
+ get clientId(): string | undefined;
462
+ // (undocumented)
463
+ protected completeBindingRuntime(channel: IFluidDataStoreChannel): void;
464
+ // (undocumented)
465
+ get connected(): boolean;
466
+ // (undocumented)
467
+ get containerRuntime(): IContainerRuntimeBase;
468
+ delete(): void;
469
+ // (undocumented)
470
+ deleteChildSummarizerNode(id: string): void;
471
+ protected deleted: boolean;
472
+ // (undocumented)
473
+ get deltaManager(): IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;
474
+ // (undocumented)
475
+ protected detachedRuntimeCreation: boolean;
476
+ // (undocumented)
477
+ dispose(): void;
478
+ // (undocumented)
479
+ get disposed(): boolean;
480
+ // (undocumented)
481
+ ensureNoDataModelChanges<T>(callback: () => T): T;
482
+ // (undocumented)
483
+ protected factoryFromPackagePath(): Promise<IFluidDataStoreFactory>;
484
+ readonly gcThrowOnTombstoneUsage: boolean;
485
+ // (undocumented)
486
+ readonly gcTombstoneEnforcementAllowed: boolean;
487
+ // (undocumented)
488
+ getAbsoluteUrl(relativeUrl: string): Promise<string | undefined>;
489
+ abstract getAttachData(includeGCData: boolean, telemetryContext?: ITelemetryContext): {
490
+ attachSummary: ISummaryTreeWithStats;
491
+ type: string;
492
+ };
493
+ // (undocumented)
494
+ getAudience(): IAudience;
495
+ // @deprecated (undocumented)
496
+ getBaseGCDetails(): Promise<IGarbageCollectionDetailsBase>;
497
+ // (undocumented)
498
+ getCreateChildSummarizerNodeFn(id: string, createParam: CreateChildSummarizerNodeParam): (summarizeInternal: SummarizeInternalFn, getGCDataFn: (fullGC?: boolean) => Promise<IGarbageCollectionData>) => ISummarizerNodeWithGC;
499
+ getGCData(fullGC?: boolean): Promise<IGarbageCollectionData>;
500
+ // (undocumented)
501
+ abstract getInitialSnapshotDetails(): Promise<ISnapshotDetails>;
502
+ // (undocumented)
503
+ getQuorum(): IQuorumClients;
504
+ // (undocumented)
505
+ readonly id: string;
506
+ // (undocumented)
507
+ get idCompressor(): IIdCompressor | undefined;
508
+ protected identifyLocalChangeInSummarizer(eventName: string, type?: string): void;
509
+ // (undocumented)
510
+ get IFluidDataStoreRegistry(): IFluidDataStoreRegistry | undefined;
511
+ // (undocumented)
512
+ get IFluidHandleContext(): IFluidHandleContext;
513
+ protected isInMemoryRoot(): boolean;
514
+ // (undocumented)
515
+ get isLoaded(): boolean;
516
+ // (undocumented)
517
+ readonly isLocalDataStore: boolean;
518
+ isRoot(aliasedDataStores?: Set<string>): Promise<boolean>;
519
+ // (undocumented)
520
+ readonly loadingGroupId: string | undefined;
521
+ // (undocumented)
522
+ get logger(): ITelemetryBaseLogger;
523
+ makeLocallyVisible(): void;
524
+ // (undocumented)
525
+ protected readonly mc: MonitoringContext;
526
+ // (undocumented)
527
+ get options(): Record<string | number, any>;
528
+ // (undocumented)
529
+ get packagePath(): readonly string[];
530
+ // (undocumented)
531
+ protected pending: ISequencedDocumentMessage[] | undefined;
532
+ // (undocumented)
533
+ protected pkg?: readonly string[];
534
+ // (undocumented)
535
+ process(message: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown): void;
536
+ // (undocumented)
537
+ protected processPendingOps(channel: IFluidDataStoreChannel): void;
538
+ // (undocumented)
539
+ processSignal(message: IInboundSignalMessage, local: boolean): void;
540
+ // (undocumented)
541
+ realize(): Promise<IFluidDataStoreChannel>;
542
+ // (undocumented)
543
+ protected registry: IFluidDataStoreRegistry | undefined;
544
+ // @deprecated (undocumented)
545
+ request(request: IRequest): Promise<IResponse>;
546
+ // (undocumented)
547
+ reSubmit(type: string, contents: any, localOpMetadata: unknown): void;
548
+ // (undocumented)
549
+ rollback(type: string, contents: any, localOpMetadata: unknown): void;
550
+ // (undocumented)
551
+ readonly scope: FluidObject;
552
+ // (undocumented)
553
+ abstract setAttachState(attachState: AttachState.Attaching | AttachState.Attached): void;
554
+ setChannelDirty(address: string): void;
555
+ setConnectionState(connected: boolean, clientId?: string): void;
556
+ // @deprecated (undocumented)
557
+ setInMemoryRoot(): void;
558
+ // (undocumented)
559
+ setTombstone(tombstone: boolean): void;
560
+ // (undocumented)
561
+ readonly storage: IDocumentStorageService;
562
+ // (undocumented)
563
+ submitMessage(type: string, content: any, localOpMetadata: unknown): void;
564
+ submitSignal(type: string, content: unknown, targetClientId?: string): void;
565
+ summarize(fullTree?: boolean, trackState?: boolean, telemetryContext?: ITelemetryContext): Promise<ISummarizeResult>;
566
+ // (undocumented)
567
+ protected readonly summarizerNode: ISummarizerNodeWithGC;
568
+ // (undocumented)
569
+ get tombstoned(): boolean;
570
+ updateUsedRoutes(usedRoutes: string[]): void;
571
+ // (undocumented)
572
+ uploadBlob(blob: ArrayBufferLike, signal?: AbortSignal): Promise<IFluidHandle<ArrayBufferLike>>;
573
+ }
574
+
278
575
  // @internal (undocumented)
279
576
  export class FluidDataStoreRegistry implements IFluidDataStoreRegistry {
280
577
  constructor(namedEntries: NamedFluidDataStoreRegistryEntries);
@@ -371,8 +668,6 @@ export interface IChunkedOp {
371
668
  // (undocumented)
372
669
  originalMetadata?: Record<string, unknown>;
373
670
  // (undocumented)
374
- originalType: MessageType | ContainerMessageType;
375
- // (undocumented)
376
671
  totalChunks: number;
377
672
  }
378
673
 
@@ -410,8 +705,11 @@ export interface IContainerRuntimeMessageCompatDetails {
410
705
  // @alpha (undocumented)
411
706
  export interface IContainerRuntimeMetadata extends ICreateContainerMetadata, IGCMetadata {
412
707
  readonly disableIsolatedChannels?: true;
413
- readonly idCompressorMode?: IdCompressorMode;
414
- readonly message: ISummaryMetadataMessage | undefined;
708
+ // (undocumented)
709
+ readonly documentSchema?: IDocumentSchema;
710
+ readonly lastMessage?: ISummaryMetadataMessage;
711
+ // @deprecated (undocumented)
712
+ readonly message?: ISummaryMetadataMessage;
415
713
  // (undocumented)
416
714
  readonly summaryFormatVersion: 1;
417
715
  readonly summaryNumber?: number;
@@ -425,6 +723,7 @@ export interface IContainerRuntimeOptions {
425
723
  readonly enableGroupedBatching?: boolean;
426
724
  readonly enableOpReentryCheck?: boolean;
427
725
  readonly enableRuntimeIdCompressor?: IdCompressorMode;
726
+ readonly explicitSchemaControl?: boolean;
428
727
  readonly flushMode?: FlushMode;
429
728
  // (undocumented)
430
729
  readonly gcOptions?: IGCRuntimeOptions;
@@ -441,7 +740,42 @@ export interface ICreateContainerMetadata {
441
740
  }
442
741
 
443
742
  // @alpha
444
- export type IdCompressorMode = "on" | "delayed" | "off";
743
+ export type IdCompressorMode = "on" | "delayed" | undefined;
744
+
745
+ // @alpha
746
+ export interface IDocumentSchema {
747
+ // (undocumented)
748
+ refSeq: number;
749
+ // (undocumented)
750
+ runtime: Record<string, DocumentSchemaValueType>;
751
+ // (undocumented)
752
+ version: number;
753
+ }
754
+
755
+ // @alpha
756
+ export type IDocumentSchemaChangeMessage = IDocumentSchema;
757
+
758
+ // @alpha
759
+ export type IDocumentSchemaCurrent = {
760
+ version: 1;
761
+ refSeq: number;
762
+ runtime: {
763
+ [P in keyof IDocumentSchemaFeatures]?: IDocumentSchemaFeatures[P] extends boolean ? true : IDocumentSchemaFeatures[P];
764
+ };
765
+ };
766
+
767
+ // @alpha
768
+ export interface IDocumentSchemaFeatures {
769
+ // (undocumented)
770
+ compressionLz4: boolean;
771
+ disallowedVersions: string[];
772
+ // (undocumented)
773
+ explicitSchemaControl: boolean;
774
+ // (undocumented)
775
+ idCompressorMode: IdCompressorMode;
776
+ // (undocumented)
777
+ opGroupingEnabled: boolean;
778
+ }
445
779
 
446
780
  // @alpha
447
781
  export interface IEnqueueSummarizeOptions extends IOnDemandSummarizeOptions {
@@ -449,6 +783,45 @@ export interface IEnqueueSummarizeOptions extends IOnDemandSummarizeOptions {
449
783
  readonly override?: boolean;
450
784
  }
451
785
 
786
+ // @internal (undocumented)
787
+ export interface IFluidDataStoreContextEvents extends IEvent {
788
+ // (undocumented)
789
+ (event: "attaching" | "attached", listener: () => void): any;
790
+ }
791
+
792
+ // @internal
793
+ export interface IFluidDataStoreContextInternal extends IFluidDataStoreContext {
794
+ // (undocumented)
795
+ getAttachData(includeGCData: boolean, telemetryContext?: ITelemetryContext): {
796
+ attachSummary: ISummaryTreeWithStats;
797
+ type: string;
798
+ };
799
+ // (undocumented)
800
+ getInitialSnapshotDetails(): Promise<ISnapshotDetails>;
801
+ // (undocumented)
802
+ isRoot(): Promise<boolean>;
803
+ // (undocumented)
804
+ realize(): Promise<IFluidDataStoreChannel>;
805
+ }
806
+
807
+ // @internal
808
+ export interface IFluidDataStoreContextProps {
809
+ // (undocumented)
810
+ readonly createSummarizerNodeFn: CreateChildSummarizerNodeFn;
811
+ // (undocumented)
812
+ readonly id: string;
813
+ // (undocumented)
814
+ readonly loadingGroupId?: string;
815
+ // (undocumented)
816
+ readonly parentContext: IFluidParentContext;
817
+ // (undocumented)
818
+ readonly pkg?: Readonly<string[]>;
819
+ // (undocumented)
820
+ readonly scope: FluidObject;
821
+ // (undocumented)
822
+ readonly storage: IDocumentStorageService;
823
+ }
824
+
452
825
  // @alpha
453
826
  export interface IGCMetadata {
454
827
  readonly gcFeature?: GCVersion;
@@ -494,6 +867,24 @@ export interface IGenerateSummaryTreeResult extends Omit<IBaseSummarizeResult, "
494
867
  readonly summaryTree: ISummaryTree;
495
868
  }
496
869
 
870
+ // @internal
871
+ export interface ILocalDetachedFluidDataStoreContextProps extends ILocalFluidDataStoreContextProps {
872
+ // (undocumented)
873
+ readonly channelToDataStoreFn: (channel: IFluidDataStoreChannel) => IDataStore;
874
+ }
875
+
876
+ // @internal
877
+ export interface ILocalFluidDataStoreContextProps extends IFluidDataStoreContextProps {
878
+ // @deprecated (undocumented)
879
+ readonly createProps?: any;
880
+ // (undocumented)
881
+ readonly makeLocallyVisibleFn: () => void;
882
+ // (undocumented)
883
+ readonly pkg: Readonly<string[]> | undefined;
884
+ // (undocumented)
885
+ readonly snapshotTree: ISnapshotTree | undefined;
886
+ }
887
+
497
888
  // @alpha
498
889
  export interface IMarkPhaseStats {
499
890
  attachmentBlobCount: number;
@@ -545,6 +936,18 @@ export interface ISerializedElection {
545
936
  readonly electionSequenceNumber: number;
546
937
  }
547
938
 
939
+ // @internal (undocumented)
940
+ export interface ISnapshotDetails {
941
+ // (undocumented)
942
+ isRootDataStore: boolean;
943
+ // (undocumented)
944
+ pkg: readonly string[];
945
+ // (undocumented)
946
+ sequenceNumber?: number;
947
+ // (undocumented)
948
+ snapshot?: ISnapshotTree;
949
+ }
950
+
548
951
  // @internal @deprecated (undocumented)
549
952
  export function isRuntimeMessage(message: ISequencedDocumentMessage): boolean;
550
953
 
@@ -749,6 +1152,28 @@ export interface IUploadSummaryResult extends Omit<IGenerateSummaryTreeResult, "
749
1152
  readonly uploadDuration: number;
750
1153
  }
751
1154
 
1155
+ // @internal
1156
+ export class LocalFluidDataStoreContext extends LocalFluidDataStoreContextBase {
1157
+ constructor(props: ILocalFluidDataStoreContextProps);
1158
+ }
1159
+
1160
+ // @internal
1161
+ export class LocalFluidDataStoreContextBase extends FluidDataStoreContext {
1162
+ constructor(props: ILocalFluidDataStoreContextProps);
1163
+ // @deprecated (undocumented)
1164
+ readonly createProps?: any;
1165
+ delete(): void;
1166
+ // (undocumented)
1167
+ getAttachData(includeGCData: boolean, telemetryContext?: ITelemetryContext): {
1168
+ attachSummary: ISummaryTreeWithStats;
1169
+ type: string;
1170
+ };
1171
+ // (undocumented)
1172
+ getInitialSnapshotDetails(): Promise<ISnapshotDetails>;
1173
+ // (undocumented)
1174
+ setAttachState(attachState: AttachState.Attaching | AttachState.Attached): void;
1175
+ }
1176
+
752
1177
  // @internal
753
1178
  export const neverCancelledSummaryToken: ISummaryCancellationToken;
754
1179
 
@@ -764,27 +1189,21 @@ export interface RecentlyAddedContainerRuntimeMessageDetails {
764
1189
  }
765
1190
 
766
1191
  // @internal
767
- export enum RuntimeHeaders {
768
- viaHandle = "viaHandle",
769
- wait = "wait"
770
- }
771
-
772
- // @internal @deprecated (undocumented)
773
- export enum RuntimeMessage {
1192
+ export interface RuntimeHeaderData {
774
1193
  // (undocumented)
775
- Alias = "alias",
776
- // (undocumented)
777
- Attach = "attach",
778
- // (undocumented)
779
- BlobAttach = "blobAttach",
780
- // (undocumented)
781
- ChunkedOp = "chunkedOp",
1194
+ allowInactive?: boolean;
782
1195
  // (undocumented)
783
- FluidDataStoreOp = "component",
1196
+ allowTombstone?: boolean;
784
1197
  // (undocumented)
785
- Operation = "op",
1198
+ viaHandle?: boolean;
786
1199
  // (undocumented)
787
- Rejoin = "rejoin"
1200
+ wait?: boolean;
1201
+ }
1202
+
1203
+ // @internal
1204
+ export enum RuntimeHeaders {
1205
+ viaHandle = "viaHandle",
1206
+ wait = "wait"
788
1207
  }
789
1208
 
790
1209
  // @alpha