@fluidframework/container-runtime 2.0.0-dev-rc.2.0.0.245554 → 2.0.0-dev-rc.3.0.0.250606

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 (459) hide show
  1. package/api-report/container-runtime.api.md +81 -27
  2. package/dist/batchTracker.d.ts +1 -1
  3. package/dist/batchTracker.d.ts.map +1 -1
  4. package/dist/batchTracker.js +2 -2
  5. package/dist/batchTracker.js.map +1 -1
  6. package/dist/blobManager.d.ts +3 -3
  7. package/dist/blobManager.d.ts.map +1 -1
  8. package/dist/blobManager.js +3 -3
  9. package/dist/blobManager.js.map +1 -1
  10. package/dist/channelCollection.d.ts +6 -5
  11. package/dist/channelCollection.d.ts.map +1 -1
  12. package/dist/channelCollection.js +57 -19
  13. package/dist/channelCollection.js.map +1 -1
  14. package/dist/connectionTelemetry.d.ts +2 -2
  15. package/dist/connectionTelemetry.d.ts.map +1 -1
  16. package/dist/connectionTelemetry.js +3 -3
  17. package/dist/connectionTelemetry.js.map +1 -1
  18. package/dist/container-runtime-alpha.d.ts +205 -12
  19. package/dist/container-runtime-beta.d.ts +16 -3
  20. package/dist/container-runtime-public.d.ts +16 -3
  21. package/dist/container-runtime-untrimmed.d.ts +207 -26
  22. package/dist/containerHandleContext.d.ts.map +1 -1
  23. package/dist/containerHandleContext.js.map +1 -1
  24. package/dist/containerRuntime.d.ts +32 -26
  25. package/dist/containerRuntime.d.ts.map +1 -1
  26. package/dist/containerRuntime.js +235 -133
  27. package/dist/containerRuntime.js.map +1 -1
  28. package/dist/dataStore.d.ts +1 -1
  29. package/dist/dataStore.d.ts.map +1 -1
  30. package/dist/dataStore.js +2 -2
  31. package/dist/dataStore.js.map +1 -1
  32. package/dist/dataStoreContext.d.ts +4 -4
  33. package/dist/dataStoreContext.d.ts.map +1 -1
  34. package/dist/dataStoreContext.js +18 -18
  35. package/dist/dataStoreContext.js.map +1 -1
  36. package/dist/dataStoreContexts.d.ts.map +1 -1
  37. package/dist/dataStoreContexts.js.map +1 -1
  38. package/dist/dataStoreRegistry.d.ts +4 -0
  39. package/dist/dataStoreRegistry.d.ts.map +1 -1
  40. package/dist/dataStoreRegistry.js +2 -2
  41. package/dist/dataStoreRegistry.js.map +1 -1
  42. package/dist/deltaScheduler.d.ts +1 -1
  43. package/dist/deltaScheduler.d.ts.map +1 -1
  44. package/dist/deltaScheduler.js +1 -1
  45. package/dist/deltaScheduler.js.map +1 -1
  46. package/dist/gc/garbageCollection.d.ts +1 -1
  47. package/dist/gc/garbageCollection.d.ts.map +1 -1
  48. package/dist/gc/garbageCollection.js +1 -1
  49. package/dist/gc/garbageCollection.js.map +1 -1
  50. package/dist/gc/gcConfigs.d.ts +1 -1
  51. package/dist/gc/gcConfigs.d.ts.map +1 -1
  52. package/dist/gc/gcConfigs.js.map +1 -1
  53. package/dist/gc/gcDefinitions.d.ts +1 -1
  54. package/dist/gc/gcDefinitions.d.ts.map +1 -1
  55. package/dist/gc/gcDefinitions.js.map +1 -1
  56. package/dist/gc/gcHelpers.d.ts.map +1 -1
  57. package/dist/gc/gcHelpers.js.map +1 -1
  58. package/dist/gc/gcSummaryStateTracker.d.ts +1 -1
  59. package/dist/gc/gcSummaryStateTracker.d.ts.map +1 -1
  60. package/dist/gc/gcSummaryStateTracker.js.map +1 -1
  61. package/dist/gc/gcTelemetry.d.ts +1 -1
  62. package/dist/gc/gcTelemetry.d.ts.map +1 -1
  63. package/dist/gc/gcTelemetry.js.map +1 -1
  64. package/dist/index.d.ts +2 -2
  65. package/dist/index.d.ts.map +1 -1
  66. package/dist/index.js +4 -2
  67. package/dist/index.js.map +1 -1
  68. package/dist/messageTypes.d.ts +11 -5
  69. package/dist/messageTypes.d.ts.map +1 -1
  70. package/dist/messageTypes.js +4 -0
  71. package/dist/messageTypes.js.map +1 -1
  72. package/dist/opLifecycle/definitions.d.ts +1 -19
  73. package/dist/opLifecycle/definitions.d.ts.map +1 -1
  74. package/dist/opLifecycle/definitions.js.map +1 -1
  75. package/dist/opLifecycle/index.d.ts +3 -3
  76. package/dist/opLifecycle/index.d.ts.map +1 -1
  77. package/dist/opLifecycle/index.js +3 -1
  78. package/dist/opLifecycle/index.js.map +1 -1
  79. package/dist/opLifecycle/opCompressor.d.ts.map +1 -1
  80. package/dist/opLifecycle/opCompressor.js +2 -3
  81. package/dist/opLifecycle/opCompressor.js.map +1 -1
  82. package/dist/opLifecycle/opDecompressor.d.ts +15 -4
  83. package/dist/opLifecycle/opDecompressor.d.ts.map +1 -1
  84. package/dist/opLifecycle/opDecompressor.js +60 -61
  85. package/dist/opLifecycle/opDecompressor.js.map +1 -1
  86. package/dist/opLifecycle/opGroupingManager.d.ts +2 -1
  87. package/dist/opLifecycle/opGroupingManager.d.ts.map +1 -1
  88. package/dist/opLifecycle/opGroupingManager.js +9 -11
  89. package/dist/opLifecycle/opGroupingManager.js.map +1 -1
  90. package/dist/opLifecycle/opSplitter.d.ts +11 -3
  91. package/dist/opLifecycle/opSplitter.d.ts.map +1 -1
  92. package/dist/opLifecycle/opSplitter.js +48 -38
  93. package/dist/opLifecycle/opSplitter.js.map +1 -1
  94. package/dist/opLifecycle/outbox.d.ts.map +1 -1
  95. package/dist/opLifecycle/outbox.js +18 -17
  96. package/dist/opLifecycle/outbox.js.map +1 -1
  97. package/dist/opLifecycle/remoteMessageProcessor.d.ts +8 -0
  98. package/dist/opLifecycle/remoteMessageProcessor.d.ts.map +1 -1
  99. package/dist/opLifecycle/remoteMessageProcessor.js +36 -32
  100. package/dist/opLifecycle/remoteMessageProcessor.js.map +1 -1
  101. package/dist/packageVersion.d.ts +1 -1
  102. package/dist/packageVersion.js +1 -1
  103. package/dist/packageVersion.js.map +1 -1
  104. package/dist/pendingStateManager.d.ts +1 -1
  105. package/dist/pendingStateManager.d.ts.map +1 -1
  106. package/dist/pendingStateManager.js.map +1 -1
  107. package/dist/scheduleManager.d.ts +1 -1
  108. package/dist/scheduleManager.d.ts.map +1 -1
  109. package/dist/scheduleManager.js +6 -2
  110. package/dist/scheduleManager.js.map +1 -1
  111. package/dist/summary/documentSchema.d.ts +178 -0
  112. package/dist/summary/documentSchema.d.ts.map +1 -0
  113. package/dist/summary/documentSchema.js +345 -0
  114. package/dist/summary/documentSchema.js.map +1 -0
  115. package/dist/summary/index.d.ts +2 -1
  116. package/dist/summary/index.d.ts.map +1 -1
  117. package/dist/summary/index.js +4 -1
  118. package/dist/summary/index.js.map +1 -1
  119. package/dist/summary/orderedClientElection.d.ts +2 -2
  120. package/dist/summary/orderedClientElection.d.ts.map +1 -1
  121. package/dist/summary/orderedClientElection.js +7 -2
  122. package/dist/summary/orderedClientElection.js.map +1 -1
  123. package/dist/summary/runWhileConnectedCoordinator.d.ts +1 -1
  124. package/dist/summary/runWhileConnectedCoordinator.d.ts.map +1 -1
  125. package/dist/summary/runWhileConnectedCoordinator.js.map +1 -1
  126. package/dist/summary/runningSummarizer.d.ts +2 -2
  127. package/dist/summary/runningSummarizer.d.ts.map +1 -1
  128. package/dist/summary/runningSummarizer.js +2 -2
  129. package/dist/summary/runningSummarizer.js.map +1 -1
  130. package/dist/summary/summarizer.d.ts +2 -2
  131. package/dist/summary/summarizer.d.ts.map +1 -1
  132. package/dist/summary/summarizer.js +2 -2
  133. package/dist/summary/summarizer.js.map +1 -1
  134. package/dist/summary/summarizerClientElection.d.ts +2 -2
  135. package/dist/summary/summarizerClientElection.d.ts.map +1 -1
  136. package/dist/summary/summarizerClientElection.js.map +1 -1
  137. package/dist/summary/summarizerHeuristics.d.ts +1 -1
  138. package/dist/summary/summarizerHeuristics.d.ts.map +1 -1
  139. package/dist/summary/summarizerHeuristics.js.map +1 -1
  140. package/dist/summary/summarizerNode/summarizerNode.d.ts +2 -2
  141. package/dist/summary/summarizerNode/summarizerNode.d.ts.map +1 -1
  142. package/dist/summary/summarizerNode/summarizerNode.js +3 -3
  143. package/dist/summary/summarizerNode/summarizerNode.js.map +1 -1
  144. package/dist/summary/summarizerNode/summarizerNodeUtils.d.ts +1 -1
  145. package/dist/summary/summarizerNode/summarizerNodeUtils.d.ts.map +1 -1
  146. package/dist/summary/summarizerNode/summarizerNodeUtils.js.map +1 -1
  147. package/dist/summary/summarizerNode/summarizerNodeWithGc.d.ts +1 -1
  148. package/dist/summary/summarizerNode/summarizerNodeWithGc.d.ts.map +1 -1
  149. package/dist/summary/summarizerNode/summarizerNodeWithGc.js +1 -1
  150. package/dist/summary/summarizerNode/summarizerNodeWithGc.js.map +1 -1
  151. package/dist/summary/summarizerTypes.d.ts +3 -3
  152. package/dist/summary/summarizerTypes.d.ts.map +1 -1
  153. package/dist/summary/summarizerTypes.js.map +1 -1
  154. package/dist/summary/summaryCollection.d.ts +2 -2
  155. package/dist/summary/summaryCollection.d.ts.map +1 -1
  156. package/dist/summary/summaryCollection.js +1 -1
  157. package/dist/summary/summaryCollection.js.map +1 -1
  158. package/dist/summary/summaryFormat.d.ts +5 -16
  159. package/dist/summary/summaryFormat.d.ts.map +1 -1
  160. package/dist/summary/summaryFormat.js.map +1 -1
  161. package/dist/summary/summaryGenerator.d.ts +2 -2
  162. package/dist/summary/summaryGenerator.d.ts.map +1 -1
  163. package/dist/summary/summaryGenerator.js +2 -2
  164. package/dist/summary/summaryGenerator.js.map +1 -1
  165. package/dist/summary/summaryManager.d.ts +1 -1
  166. package/dist/summary/summaryManager.d.ts.map +1 -1
  167. package/dist/summary/summaryManager.js +2 -2
  168. package/dist/summary/summaryManager.js.map +1 -1
  169. package/lib/batchTracker.d.ts +1 -1
  170. package/lib/batchTracker.d.ts.map +1 -1
  171. package/lib/batchTracker.js +2 -2
  172. package/lib/batchTracker.js.map +1 -1
  173. package/lib/blobManager.d.ts +3 -3
  174. package/lib/blobManager.d.ts.map +1 -1
  175. package/lib/blobManager.js +5 -5
  176. package/lib/blobManager.js.map +1 -1
  177. package/lib/channelCollection.d.ts +6 -5
  178. package/lib/channelCollection.d.ts.map +1 -1
  179. package/lib/channelCollection.js +59 -21
  180. package/lib/channelCollection.js.map +1 -1
  181. package/lib/connectionTelemetry.d.ts +2 -2
  182. package/lib/connectionTelemetry.d.ts.map +1 -1
  183. package/lib/connectionTelemetry.js +3 -3
  184. package/lib/connectionTelemetry.js.map +1 -1
  185. package/lib/container-runtime-alpha.d.ts +205 -12
  186. package/lib/container-runtime-beta.d.ts +16 -3
  187. package/lib/container-runtime-public.d.ts +16 -3
  188. package/lib/container-runtime-untrimmed.d.ts +207 -26
  189. package/lib/containerHandleContext.d.ts.map +1 -1
  190. package/lib/containerHandleContext.js.map +1 -1
  191. package/lib/containerRuntime.d.ts +32 -26
  192. package/lib/containerRuntime.d.ts.map +1 -1
  193. package/lib/containerRuntime.js +197 -95
  194. package/lib/containerRuntime.js.map +1 -1
  195. package/lib/dataStore.d.ts +1 -1
  196. package/lib/dataStore.d.ts.map +1 -1
  197. package/lib/dataStore.js +2 -2
  198. package/lib/dataStore.js.map +1 -1
  199. package/lib/dataStoreContext.d.ts +4 -4
  200. package/lib/dataStoreContext.d.ts.map +1 -1
  201. package/lib/dataStoreContext.js +3 -3
  202. package/lib/dataStoreContext.js.map +1 -1
  203. package/lib/dataStoreContexts.d.ts.map +1 -1
  204. package/lib/dataStoreContexts.js.map +1 -1
  205. package/lib/dataStoreRegistry.d.ts +4 -0
  206. package/lib/dataStoreRegistry.d.ts.map +1 -1
  207. package/lib/dataStoreRegistry.js.map +1 -1
  208. package/lib/deltaScheduler.d.ts +1 -1
  209. package/lib/deltaScheduler.d.ts.map +1 -1
  210. package/lib/deltaScheduler.js +1 -1
  211. package/lib/deltaScheduler.js.map +1 -1
  212. package/lib/gc/garbageCollection.d.ts +1 -1
  213. package/lib/gc/garbageCollection.d.ts.map +1 -1
  214. package/lib/gc/garbageCollection.js +3 -3
  215. package/lib/gc/garbageCollection.js.map +1 -1
  216. package/lib/gc/gcConfigs.d.ts +1 -1
  217. package/lib/gc/gcConfigs.d.ts.map +1 -1
  218. package/lib/gc/gcConfigs.js +1 -1
  219. package/lib/gc/gcConfigs.js.map +1 -1
  220. package/lib/gc/gcDefinitions.d.ts +1 -1
  221. package/lib/gc/gcDefinitions.d.ts.map +1 -1
  222. package/lib/gc/gcDefinitions.js.map +1 -1
  223. package/lib/gc/gcHelpers.d.ts.map +1 -1
  224. package/lib/gc/gcHelpers.js.map +1 -1
  225. package/lib/gc/gcSummaryStateTracker.d.ts +1 -1
  226. package/lib/gc/gcSummaryStateTracker.d.ts.map +1 -1
  227. package/lib/gc/gcSummaryStateTracker.js +1 -1
  228. package/lib/gc/gcSummaryStateTracker.js.map +1 -1
  229. package/lib/gc/gcTelemetry.d.ts +1 -1
  230. package/lib/gc/gcTelemetry.d.ts.map +1 -1
  231. package/lib/gc/gcTelemetry.js +1 -1
  232. package/lib/gc/gcTelemetry.js.map +1 -1
  233. package/lib/index.d.ts +2 -2
  234. package/lib/index.d.ts.map +1 -1
  235. package/lib/index.js +2 -2
  236. package/lib/index.js.map +1 -1
  237. package/lib/messageTypes.d.ts +11 -5
  238. package/lib/messageTypes.d.ts.map +1 -1
  239. package/lib/messageTypes.js +4 -0
  240. package/lib/messageTypes.js.map +1 -1
  241. package/lib/opLifecycle/definitions.d.ts +1 -19
  242. package/lib/opLifecycle/definitions.d.ts.map +1 -1
  243. package/lib/opLifecycle/definitions.js.map +1 -1
  244. package/lib/opLifecycle/index.d.ts +3 -3
  245. package/lib/opLifecycle/index.d.ts.map +1 -1
  246. package/lib/opLifecycle/index.js +2 -2
  247. package/lib/opLifecycle/index.js.map +1 -1
  248. package/lib/opLifecycle/opCompressor.d.ts.map +1 -1
  249. package/lib/opLifecycle/opCompressor.js +2 -3
  250. package/lib/opLifecycle/opCompressor.js.map +1 -1
  251. package/lib/opLifecycle/opDecompressor.d.ts +15 -4
  252. package/lib/opLifecycle/opDecompressor.d.ts.map +1 -1
  253. package/lib/opLifecycle/opDecompressor.js +60 -61
  254. package/lib/opLifecycle/opDecompressor.js.map +1 -1
  255. package/lib/opLifecycle/opGroupingManager.d.ts +2 -1
  256. package/lib/opLifecycle/opGroupingManager.d.ts.map +1 -1
  257. package/lib/opLifecycle/opGroupingManager.js +7 -10
  258. package/lib/opLifecycle/opGroupingManager.js.map +1 -1
  259. package/lib/opLifecycle/opSplitter.d.ts +11 -3
  260. package/lib/opLifecycle/opSplitter.d.ts.map +1 -1
  261. package/lib/opLifecycle/opSplitter.js +46 -37
  262. package/lib/opLifecycle/opSplitter.js.map +1 -1
  263. package/lib/opLifecycle/outbox.d.ts.map +1 -1
  264. package/lib/opLifecycle/outbox.js +18 -17
  265. package/lib/opLifecycle/outbox.js.map +1 -1
  266. package/lib/opLifecycle/remoteMessageProcessor.d.ts +8 -0
  267. package/lib/opLifecycle/remoteMessageProcessor.d.ts.map +1 -1
  268. package/lib/opLifecycle/remoteMessageProcessor.js +36 -32
  269. package/lib/opLifecycle/remoteMessageProcessor.js.map +1 -1
  270. package/lib/packageVersion.d.ts +1 -1
  271. package/lib/packageVersion.js +1 -1
  272. package/lib/packageVersion.js.map +1 -1
  273. package/lib/pendingStateManager.d.ts +1 -1
  274. package/lib/pendingStateManager.d.ts.map +1 -1
  275. package/lib/pendingStateManager.js.map +1 -1
  276. package/lib/scheduleManager.d.ts +1 -1
  277. package/lib/scheduleManager.d.ts.map +1 -1
  278. package/lib/scheduleManager.js +6 -2
  279. package/lib/scheduleManager.js.map +1 -1
  280. package/lib/summary/documentSchema.d.ts +178 -0
  281. package/lib/summary/documentSchema.d.ts.map +1 -0
  282. package/lib/summary/documentSchema.js +341 -0
  283. package/lib/summary/documentSchema.js.map +1 -0
  284. package/lib/summary/index.d.ts +2 -1
  285. package/lib/summary/index.d.ts.map +1 -1
  286. package/lib/summary/index.js +1 -0
  287. package/lib/summary/index.js.map +1 -1
  288. package/lib/summary/orderedClientElection.d.ts +2 -2
  289. package/lib/summary/orderedClientElection.d.ts.map +1 -1
  290. package/lib/summary/orderedClientElection.js +7 -2
  291. package/lib/summary/orderedClientElection.js.map +1 -1
  292. package/lib/summary/runWhileConnectedCoordinator.d.ts +1 -1
  293. package/lib/summary/runWhileConnectedCoordinator.d.ts.map +1 -1
  294. package/lib/summary/runWhileConnectedCoordinator.js.map +1 -1
  295. package/lib/summary/runningSummarizer.d.ts +2 -2
  296. package/lib/summary/runningSummarizer.d.ts.map +1 -1
  297. package/lib/summary/runningSummarizer.js +3 -3
  298. package/lib/summary/runningSummarizer.js.map +1 -1
  299. package/lib/summary/summarizer.d.ts +2 -2
  300. package/lib/summary/summarizer.d.ts.map +1 -1
  301. package/lib/summary/summarizer.js +3 -3
  302. package/lib/summary/summarizer.js.map +1 -1
  303. package/lib/summary/summarizerClientElection.d.ts +2 -2
  304. package/lib/summary/summarizerClientElection.d.ts.map +1 -1
  305. package/lib/summary/summarizerClientElection.js.map +1 -1
  306. package/lib/summary/summarizerHeuristics.d.ts +1 -1
  307. package/lib/summary/summarizerHeuristics.d.ts.map +1 -1
  308. package/lib/summary/summarizerHeuristics.js.map +1 -1
  309. package/lib/summary/summarizerNode/summarizerNode.d.ts +2 -2
  310. package/lib/summary/summarizerNode/summarizerNode.d.ts.map +1 -1
  311. package/lib/summary/summarizerNode/summarizerNode.js +4 -4
  312. package/lib/summary/summarizerNode/summarizerNode.js.map +1 -1
  313. package/lib/summary/summarizerNode/summarizerNodeUtils.d.ts +1 -1
  314. package/lib/summary/summarizerNode/summarizerNodeUtils.d.ts.map +1 -1
  315. package/lib/summary/summarizerNode/summarizerNodeUtils.js.map +1 -1
  316. package/lib/summary/summarizerNode/summarizerNodeWithGc.d.ts +1 -1
  317. package/lib/summary/summarizerNode/summarizerNodeWithGc.d.ts.map +1 -1
  318. package/lib/summary/summarizerNode/summarizerNodeWithGc.js +1 -1
  319. package/lib/summary/summarizerNode/summarizerNodeWithGc.js.map +1 -1
  320. package/lib/summary/summarizerTypes.d.ts +3 -3
  321. package/lib/summary/summarizerTypes.d.ts.map +1 -1
  322. package/lib/summary/summarizerTypes.js.map +1 -1
  323. package/lib/summary/summaryCollection.d.ts +2 -2
  324. package/lib/summary/summaryCollection.d.ts.map +1 -1
  325. package/lib/summary/summaryCollection.js +1 -1
  326. package/lib/summary/summaryCollection.js.map +1 -1
  327. package/lib/summary/summaryFormat.d.ts +5 -16
  328. package/lib/summary/summaryFormat.d.ts.map +1 -1
  329. package/lib/summary/summaryFormat.js +1 -1
  330. package/lib/summary/summaryFormat.js.map +1 -1
  331. package/lib/summary/summaryGenerator.d.ts +2 -2
  332. package/lib/summary/summaryGenerator.d.ts.map +1 -1
  333. package/lib/summary/summaryGenerator.js +3 -3
  334. package/lib/summary/summaryGenerator.js.map +1 -1
  335. package/lib/summary/summaryManager.d.ts +1 -1
  336. package/lib/summary/summaryManager.d.ts.map +1 -1
  337. package/lib/summary/summaryManager.js +2 -2
  338. package/lib/summary/summaryManager.js.map +1 -1
  339. package/lib/test/blobManager.spec.js +3 -3
  340. package/lib/test/blobManager.spec.js.map +1 -1
  341. package/lib/test/containerRuntime.spec.js +6 -4
  342. package/lib/test/containerRuntime.spec.js.map +1 -1
  343. package/lib/test/dataStoreContext.spec.js +4 -4
  344. package/lib/test/dataStoreContext.spec.js.map +1 -1
  345. package/lib/test/dataStoreCreation.spec.js +1 -1
  346. package/lib/test/dataStoreCreation.spec.js.map +1 -1
  347. package/lib/test/dataStoreRegistry.spec.js.map +1 -1
  348. package/lib/test/documentSchema.spec.js +282 -0
  349. package/lib/test/documentSchema.spec.js.map +1 -0
  350. package/lib/test/fuzz/fuzzUtils.js +11 -7
  351. package/lib/test/fuzz/fuzzUtils.js.map +1 -1
  352. package/lib/test/fuzz/summarizer.fuzz.spec.js +9 -7
  353. package/lib/test/fuzz/summarizer.fuzz.spec.js.map +1 -1
  354. package/lib/test/fuzz/summarizerFuzzMocks.js +43 -25
  355. package/lib/test/fuzz/summarizerFuzzMocks.js.map +1 -1
  356. package/lib/test/fuzz/summarizerFuzzSuite.js +7 -4
  357. package/lib/test/fuzz/summarizerFuzzSuite.js.map +1 -1
  358. package/lib/test/gc/garbageCollection.spec.js +5 -5
  359. package/lib/test/gc/garbageCollection.spec.js.map +1 -1
  360. package/lib/test/gc/gcConfigs.spec.js +2 -2
  361. package/lib/test/gc/gcConfigs.spec.js.map +1 -1
  362. package/lib/test/gc/gcHelpers.spec.js.map +1 -1
  363. package/lib/test/gc/gcStats.spec.js +2 -2
  364. package/lib/test/gc/gcStats.spec.js.map +1 -1
  365. package/lib/test/gc/gcSummaryStateTracker.spec.js +1 -1
  366. package/lib/test/gc/gcSummaryStateTracker.spec.js.map +1 -1
  367. package/lib/test/gc/gcTelemetry.spec.js +3 -3
  368. package/lib/test/gc/gcTelemetry.spec.js.map +1 -1
  369. package/lib/test/gc/gcUnreferencedStateTracker.spec.js +1 -1
  370. package/lib/test/gc/gcUnreferencedStateTracker.spec.js.map +1 -1
  371. package/lib/test/getPendingBlobs.spec.js +1 -1
  372. package/lib/test/getPendingBlobs.spec.js.map +1 -1
  373. package/lib/test/hardwareStats.spec.js +1 -1
  374. package/lib/test/hardwareStats.spec.js.map +1 -1
  375. package/lib/test/opLifecycle/OpGroupingManager.spec.js +95 -118
  376. package/lib/test/opLifecycle/OpGroupingManager.spec.js.map +1 -1
  377. package/lib/test/opLifecycle/batchManager.spec.js +1 -1
  378. package/lib/test/opLifecycle/batchManager.spec.js.map +1 -1
  379. package/lib/test/opLifecycle/opCompressor.spec.js +0 -1
  380. package/lib/test/opLifecycle/opCompressor.spec.js.map +1 -1
  381. package/lib/test/opLifecycle/opDecompressor.spec.js +60 -55
  382. package/lib/test/opLifecycle/opDecompressor.spec.js.map +1 -1
  383. package/lib/test/opLifecycle/opSplitter.spec.js +56 -41
  384. package/lib/test/opLifecycle/opSplitter.spec.js.map +1 -1
  385. package/lib/test/opLifecycle/outbox.spec.js +118 -10
  386. package/lib/test/opLifecycle/outbox.spec.js.map +1 -1
  387. package/lib/test/opLifecycle/remoteMessageProcessor.spec.js +115 -91
  388. package/lib/test/opLifecycle/remoteMessageProcessor.spec.js.map +1 -1
  389. package/lib/test/pendingStateManager.spec.js +1 -1
  390. package/lib/test/pendingStateManager.spec.js.map +1 -1
  391. package/lib/test/scheduleManager.spec.js +1 -1
  392. package/lib/test/scheduleManager.spec.js.map +1 -1
  393. package/lib/test/summarizerNode.spec.js +1 -1
  394. package/lib/test/summarizerNode.spec.js.map +1 -1
  395. package/lib/test/summarizerNodeWithGc.spec.js +1 -1
  396. package/lib/test/summarizerNodeWithGc.spec.js.map +1 -1
  397. package/lib/test/summary/runningSummarizer.spec.js +4 -4
  398. package/lib/test/summary/runningSummarizer.spec.js.map +1 -1
  399. package/lib/test/summary/summarizer.spec.js.map +1 -1
  400. package/lib/test/summary/summarizerClientElection.spec.js +2 -2
  401. package/lib/test/summary/summarizerClientElection.spec.js.map +1 -1
  402. package/lib/test/summary/summarizerHeuristics.spec.js +1 -1
  403. package/lib/test/summary/summarizerHeuristics.spec.js.map +1 -1
  404. package/lib/test/summary/summaryCollection.spec.js +1 -1
  405. package/lib/test/summary/summaryCollection.spec.js.map +1 -1
  406. package/lib/test/summary/summaryManager.spec.js +3 -3
  407. package/lib/test/summary/summaryManager.spec.js.map +1 -1
  408. package/lib/test/throttler.spec.js +1 -1
  409. package/lib/test/throttler.spec.js.map +1 -1
  410. package/lib/test/types/validateContainerRuntimePrevious.generated.js +6 -4
  411. package/lib/test/types/validateContainerRuntimePrevious.generated.js.map +1 -1
  412. package/package.json +35 -21
  413. package/src/batchTracker.ts +3 -3
  414. package/src/blobManager.ts +15 -15
  415. package/src/channelCollection.ts +90 -44
  416. package/src/connectionTelemetry.ts +10 -10
  417. package/src/containerHandleContext.ts +1 -1
  418. package/src/containerRuntime.ts +375 -213
  419. package/src/dataStore.ts +2 -2
  420. package/src/dataStoreContext.ts +19 -19
  421. package/src/dataStoreContexts.ts +2 -2
  422. package/src/dataStoreRegistry.ts +2 -1
  423. package/src/deltaScheduler.ts +1 -1
  424. package/src/gc/garbageCollection.ts +12 -12
  425. package/src/gc/gcConfigs.ts +11 -11
  426. package/src/gc/gcDefinitions.ts +2 -2
  427. package/src/gc/gcHelpers.ts +2 -2
  428. package/src/gc/gcSummaryStateTracker.ts +4 -4
  429. package/src/gc/gcTelemetry.ts +6 -6
  430. package/src/index.ts +8 -1
  431. package/src/messageTypes.ts +18 -5
  432. package/src/opLifecycle/README.md +89 -0
  433. package/src/opLifecycle/definitions.ts +1 -20
  434. package/src/opLifecycle/index.ts +3 -9
  435. package/src/opLifecycle/opCompressor.ts +4 -5
  436. package/src/opLifecycle/opDecompressor.ts +83 -100
  437. package/src/opLifecycle/opGroupingManager.ts +9 -12
  438. package/src/opLifecycle/opSplitter.ts +73 -47
  439. package/src/opLifecycle/outbox.ts +26 -37
  440. package/src/opLifecycle/remoteMessageProcessor.ts +41 -55
  441. package/src/packageVersion.ts +1 -1
  442. package/src/pendingStateManager.ts +2 -2
  443. package/src/scheduleManager.ts +8 -7
  444. package/src/summary/documentSchema.ts +553 -0
  445. package/src/summary/index.ts +10 -1
  446. package/src/summary/orderedClientElection.ts +7 -5
  447. package/src/summary/runWhileConnectedCoordinator.ts +1 -1
  448. package/src/summary/runningSummarizer.ts +19 -19
  449. package/src/summary/summarizer.ts +14 -14
  450. package/src/summary/summarizerClientElection.ts +2 -2
  451. package/src/summary/summarizerHeuristics.ts +2 -2
  452. package/src/summary/summarizerNode/summarizerNode.ts +15 -15
  453. package/src/summary/summarizerNode/summarizerNodeUtils.ts +1 -1
  454. package/src/summary/summarizerNode/summarizerNodeWithGc.ts +4 -4
  455. package/src/summary/summarizerTypes.ts +3 -3
  456. package/src/summary/summaryCollection.ts +3 -3
  457. package/src/summary/summaryFormat.ts +8 -19
  458. package/src/summary/summaryGenerator.ts +10 -10
  459. package/src/summary/summaryManager.ts +4 -4
@@ -20,7 +20,6 @@ import { IDocumentMessage } from '@fluidframework/protocol-definitions';
20
20
  import { IDocumentStorageService } from '@fluidframework/driver-definitions';
21
21
  import { IEnvelope } from '@fluidframework/runtime-definitions';
22
22
  import { IEvent } from '@fluidframework/core-interfaces';
23
- import { IEvent as IEvent_2 } from '@fluidframework/common-definitions';
24
23
  import { IEventProvider } from '@fluidframework/core-interfaces';
25
24
  import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions';
26
25
  import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions';
@@ -100,6 +99,10 @@ export declare enum ContainerMessageType {
100
99
  * See the [IdCompressor README](./id-compressor/README.md) for more details.
101
100
  */
102
101
  IdAllocation = "idAllocation",
102
+ /**
103
+ * An op that changes document schema
104
+ */
105
+ DocumentSchemaChange = "schema",
103
106
  /**
104
107
  * Garbage collection specific op. This is sent by the summarizer client when GC runs. It's used to synchronize GC
105
108
  * state across all clients.
@@ -120,7 +123,7 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
120
123
  readonly logger: ITelemetryLoggerExt;
121
124
  private readonly _storage;
122
125
  private readonly createIdCompressor;
123
- private readonly idCompressorMode;
126
+ private readonly documentsSchemaController;
124
127
  private readonly requestHandler?;
125
128
  private readonly summaryConfiguration;
126
129
  /**
@@ -170,9 +173,16 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
170
173
  get IFluidDataStoreRegistry(): IFluidDataStoreRegistry;
171
174
  private readonly _getAttachState;
172
175
  get attachState(): AttachState;
176
+ get documentSchema(): {
177
+ explicitSchemaControl?: true | undefined;
178
+ compressionLz4?: true | undefined;
179
+ idCompressorMode?: IdCompressorMode;
180
+ opGroupingEnabled?: true | undefined;
181
+ };
173
182
  private _idCompressor;
174
183
  private pendingIdCompressorOps;
175
184
  private readonly skipSavedCompressorOps;
185
+ get idCompressorMode(): IdCompressorMode;
176
186
  /**
177
187
  * See IContainerRuntimeBase.idCompressor() for details.
178
188
  */
@@ -181,7 +191,7 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
181
191
  * True if we have ID compressor loading in-flight (async operation). Useful only for
182
192
  * this.idCompressorMode === "delayed" mode
183
193
  */
184
- protected compressorLoadInitiated: boolean;
194
+ protected _loadIdCompressor: Promise<void> | undefined;
185
195
  /**
186
196
  * See IContainerRuntimeBase.generateDocumentUniqueId() for details.
187
197
  */
@@ -312,7 +322,8 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
312
322
  */
313
323
  private readonly snapshotCacheForLoadingGroupIds;
314
324
  /***/
315
- 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);
325
+ 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);
326
+ onSchemaChange(schema: IDocumentSchemaCurrent): void;
316
327
  getCreateChildSummarizerNodeFn(id: string, createParam: CreateChildSummarizerNodeParam): (summarizeInternal: SummarizeInternalFn, getGCDataFn: (fullGC?: boolean) => Promise<IGarbageCollectionData>) => ISummarizerNodeWithGC;
317
328
  deleteChildSummarizerNode(id: string): void;
318
329
  makeLocallyVisible(): void;
@@ -370,6 +381,7 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
370
381
  */
371
382
  private parseLocalOpContent;
372
383
  private applyStashedOp;
384
+ private loadIdCompressor;
373
385
  setConnectionState(connected: boolean, clientId?: string): void;
374
386
  private setConnectionStateCore;
375
387
  notifyOpReplay(message: ISequencedDocumentMessage): Promise<void>;
@@ -623,6 +635,15 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
623
635
 
624
636
  /* Excluded from this release type: ContainerRuntimeMessage */
625
637
 
638
+ /**
639
+ * Current version known properties that define document schema
640
+ * This must be bumped whenever the format of document schema or protocol for changing the current document schema changes.
641
+ * Ex: adding a new configuration property (under IDocumentSchema.runtime) does not require changing this version.
642
+ * Ex: Changing the 'document schema acceptance' mechanism from convert-and-swap to one requiring consensus does require changing this version.
643
+ * @alpha
644
+ */
645
+ export declare const currentDocumentVersionSchema = 1;
646
+
626
647
  /* Excluded from this release type: DataStoreContexts */
627
648
 
628
649
  /**
@@ -632,6 +653,102 @@ export declare const DefaultSummaryConfiguration: ISummaryConfiguration;
632
653
 
633
654
  /* Excluded from this release type: detectOutboundReferences */
634
655
 
656
+ /** @alpha */
657
+ export declare const disabledCompressionConfig: ICompressionRuntimeOptions;
658
+
659
+ /**
660
+ * Descripe allowed type for properties in document schema.
661
+ * Please note that for all property types we should use undefined to indicate that particular capability is off.
662
+ * Using false, or some string value (like "off") will result in clients who do not understand that property failing, whereas
663
+ * we want them to continue to collaborate alongside clients who support that capability, but such capability is shipping dark for now.
664
+ * @alpha
665
+ */
666
+ export declare type DocumentSchemaValueType = string | true | number | undefined;
667
+
668
+ /**
669
+ * Controller of document schema.
670
+ *
671
+ * Recommended pre-reading: https://github.com/microsoft/FluidFramework/blob/main/packages/dds/SchemaVersioning.md
672
+ *
673
+ * This class manages current document schema and transitions between document schemas.
674
+ * At the moment, it only focuses on subset of document schema, specifically - how FluidFramework runtime serializes data
675
+ * (summary and op format), features & capabilities that a version of runtime has to support and understand in
676
+ * order to collaborate on a document.
677
+ * New features that modify document format have to be included in document schema definition.
678
+ * Usage of such features could only happen after document schema has been updated to reflect such feature.
679
+ *
680
+ * This formality allows clients that do not understand such features to fail right away when they observe
681
+ * document schema listing capabilities that such client does not understand.
682
+ * Old clients will fail in predictable way. This allows us to
683
+ * 1) Immediately see such issues and adjust if features are enabled too early, before changes have been saturated.
684
+ * 2) There is no way to get to 100% saturation with new code. Even if we have 99.99% saturation, there are
685
+ * still 0.01% of clients who will fail. Failing early and predictably ensures they have no chance to limp along
686
+ * and potentially corrupt the document. This is especially true for summarizer client, who could simply "undo"
687
+ * changes it does not understands.
688
+ *
689
+ * It's important to note how it overlaps with feature gates and safe velocity.
690
+ * If new feature was in use, that resulted in a number of documents referencing such feature in document schema.
691
+ * But, developers (through code deployment or feature gates) could disable usage of such features.
692
+ * That will stop a process of further document schema changes (for documents that were not using such feature).
693
+ * And documents that already list such capability in their schema will continue to do so. Later ensures that old
694
+ * clients who do not understand such feature will continue to fail to open such documents, as such documents very
695
+ * likely contain data in a new format.
696
+ *
697
+ * Users of this class need to use DocumentsSchemaController.sessionSchema to determine what features can be used.
698
+ *
699
+ * There are two modes this class can operate:
700
+ * 1) Legacy mode. In such mode it does not issue any ops to change document schema. Any changes happen implicitly,
701
+ * right away, and new features are available right away
702
+ * 2) Non-legacy mode. In such mode any changes to schema require an op roundtrip. This class will manage such transitions.
703
+ * However code should assume that any new features that were not enabled in a given document will not be available
704
+ * for a given session. That's because this session may never send any ops (including read-only documents). Or it may
705
+ * fail to convert schema.
706
+ * This class promises eventual movement forward. I.e. if new feature is allowed (let's say - through feature gates),
707
+ * then eventually all documents that are modified will have that feature reflected in their schema. It could require
708
+ * multiple reloads / new sessions to get there (depends on if code reacts to schema changes right away, or only consults
709
+ * schema on document load).
710
+ *
711
+ * How schemas are changed (in non-legacy mode):
712
+ * If a client needs to change a schema, it will attempt to do so as part of normal ops sending process.
713
+ * Changes happen in CAS (Compare-and-swap) fashion, i.e. client tells current schema and schema it wants to change to.
714
+ * When a number of clients race to change a schema, then only one of them will win, all others will fail because they will
715
+ * reference old schema that is no longer in effect.
716
+ * Clients can retry, but current implementation is simply - they will not (and will rely on next session / reload to do
717
+ * recalc and decide if schema needs to be changed or not).
718
+ *
719
+ * @alpha
720
+ */
721
+ export declare class DocumentsSchemaController {
722
+ private readonly onSchemaChange;
723
+ private explicitSchemaControl;
724
+ private sendOp;
725
+ private documentSchema;
726
+ private readonly desiredSchema;
727
+ private futureSchema;
728
+ sessionSchema: IDocumentSchemaCurrent;
729
+ /**
730
+ * Constructs DocumentsSchemaController that controls current schema and processes around it, including changes in schema.
731
+ * @param explicitSchemaControl - Tells if schema changes are done implicitly (without ops - legacy behavior), or go through formal schema change ops process.
732
+ * @param existing - Is the document existing document, or a new doc.
733
+ * @param documentMetadataSchema - current document's schema, if present.
734
+ * @param compressionAlgorithm - desired compression algorith to use
735
+ * @param idCompressorModeArg - desired ID compressor mode to use
736
+ * @param opGroupingEnabled - true if it's desired to use op grouping.
737
+ */
738
+ constructor(existing: boolean, documentMetadataSchema: IDocumentSchema | undefined, features: IDocumentSchemaFeatures, onSchemaChange: (schema: IDocumentSchemaCurrent) => void);
739
+ summarizeDocumentSchema(refSeq: number): IDocumentSchemaCurrent | undefined;
740
+ onMessageSent(send: (content: IDocumentSchemaChangeMessage) => void): void;
741
+ /**
742
+ * Process document schema change message
743
+ * @param content - content of the message
744
+ * @param local - whether op is local
745
+ * @param sequenceNumber - sequence number of the op
746
+ * @returns - true if schema was accepted, otherwise false (rejected due to failed CAS)
747
+ */
748
+ processDocumentSchemaOp(content: IDocumentSchemaChangeMessage, local: boolean, sequenceNumber: number): boolean;
749
+ onDisconnect(): void;
750
+ }
751
+
635
752
  /**
636
753
  * @alpha
637
754
  */
@@ -820,16 +937,17 @@ export declare interface IConnectableRuntime {
820
937
  */
821
938
  export declare interface IContainerRuntimeMetadata extends ICreateContainerMetadata, IGCMetadata {
822
939
  readonly summaryFormatVersion: 1;
940
+ /** @deprecated - used by old (prior to 2.0 RC3) runtimes */
941
+ readonly message?: ISummaryMetadataMessage;
823
942
  /** The last message processed at the time of summary. Only primitive property types are added to the summary. */
824
- readonly message: ISummaryMetadataMessage | undefined;
943
+ readonly lastMessage?: ISummaryMetadataMessage;
825
944
  /** True if channels are not isolated in .channels subtrees, otherwise isolated. */
826
945
  readonly disableIsolatedChannels?: true;
827
946
  /** The summary number for a container's summary. Incremented on summaries throughout its lifetime. */
828
947
  readonly summaryNumber?: number;
829
948
  /** GUID to identify a document in telemetry */
830
949
  readonly telemetryDocumentId?: string;
831
- /** True if the runtime IdCompressor is enabled */
832
- readonly idCompressorMode?: IdCompressorMode;
950
+ readonly documentSchema?: IDocumentSchema;
833
951
  }
834
952
 
835
953
  /**
@@ -863,7 +981,7 @@ export declare interface IContainerRuntimeOptions {
863
981
  * If specified, when in FlushMode.TurnBased, if the size of the ops between JS turns exceeds this value,
864
982
  * an error will be thrown and the container will close.
865
983
  *
866
- * If unspecified, the limit is 950 * 1024.
984
+ * If unspecified, the limit is 700Kb.
867
985
  *
868
986
  * 'Infinity' will disable any limit.
869
987
  *
@@ -910,6 +1028,14 @@ export declare interface IContainerRuntimeOptions {
910
1028
  * @experimental Not ready for use.
911
1029
  */
912
1030
  readonly enableGroupedBatching?: boolean;
1031
+ /**
1032
+ * When this property is set to true, it requires runtime to control is document schema properly through ops
1033
+ * The benefit of this mode is that clients who do not understand schema will fail in predictable way, with predictable message,
1034
+ * and will not attempt to limp along, which could cause data corruptions and crashes in random places.
1035
+ * When this property is not set (or set to false), runtime operates in legacy mode, where new features (modifying document schema)
1036
+ * are engaged as they become available, without giving legacy clients any chance to fail predictably.
1037
+ */
1038
+ readonly explicitSchemaControl?: boolean;
913
1039
  }
914
1040
 
915
1041
  /**
@@ -929,12 +1055,81 @@ export declare interface ICreateContainerMetadata {
929
1055
  * "delayed" - ID compressor bundle is loaded only on establishing of first delta connection, i.e. it does not impact boot of cotnainer.
930
1056
  * In such mode IContainerRuntime.idCompressor is not made available (unless previous sessions of same document had it "On").
931
1057
  * The only thing that is available is IContainerRuntime.generateDocumentUniqueId() that provides opportunistically short IDs.
932
- * "off" - ID compressor is not laoded (unless it is "on" due to previous session for same document having it "on").
1058
+ * undefined - ID compressor is not loaded.
933
1059
  * While IContainerRuntime.generateDocumentUniqueId() is available, it will produce long IDs that are do not compress well.
934
1060
  *
935
1061
  * @alpha
936
1062
  */
937
- export declare type IdCompressorMode = "on" | "delayed" | "off";
1063
+ export declare type IdCompressorMode = "on" | "delayed" | undefined;
1064
+
1065
+ /**
1066
+ * Document schema information.
1067
+ * Describes overall shape of document schema, including unknown (to this version) properties.
1068
+ *
1069
+ * Used by runtime to make a call if it can understand document schema.
1070
+ * If it can't, it should not continue with document and immediately fail, preventing random (cryptic) failures
1071
+ * down the road and potentially corrupting documents.
1072
+ * For now this structure and appropriate interpretation / behavior is focused only on runtime features.
1073
+ * In the future that could be interpolated to more areas, including DDSs used, and even possibly - application
1074
+ * schema.
1075
+ *
1076
+ * Runtime will ignore any properties at the root that it does not understand (i.e. IDocumentSchema.app), but will
1077
+ * stop (and fail session) on any unknown properties within "runtime" sub-tree.
1078
+ *
1079
+ * In most cases values preserved in the document will not dictate if such features should be enabled in a given session.
1080
+ * I.e. if compression is mentioned in document schema, this means that runtime version that opens such document must know
1081
+ * how to interpret such ops, but does not need to actually use compression itself. That said, some options could be
1082
+ * sticky, i.e. influence feature selection for all runtimes opening a document. ID compression is one such example.
1083
+ * Currently there is no mechanism to remove feature from this property bag, i.e. once compression was used, even if it's
1084
+ * disabled (through feature gate or code deployment), all existing documents that used compression will continue to fail
1085
+ * if opened by clients who do not support compression.
1086
+ *
1087
+ * For now we are limiting it to just plain properties, and only really simple types, but that can be changed in the future.
1088
+ *
1089
+ * @alpha
1090
+ */
1091
+ export declare interface IDocumentSchema {
1092
+ version: number;
1093
+ refSeq: number;
1094
+ runtime: Record<string, DocumentSchemaValueType>;
1095
+ }
1096
+
1097
+ /**
1098
+ * Content of the type=ContainerMessageType.DocumentSchemaChange ops.
1099
+ * The meaning of refSeq field is different in such messages (compared to other usages of IDocumentSchemaCurrent)
1100
+ * ContainerMessageType.DocumentSchemaChange messages use CAS (Compare-and-swap) semantics, and convey
1101
+ * regSeq of last known schema change (known to a client proposing schema change).
1102
+ * @see ContainerRuntimeDocumentSchemaMessage
1103
+ * @alpha
1104
+ */
1105
+ export declare type IDocumentSchemaChangeMessage = IDocumentSchema;
1106
+
1107
+ /**
1108
+ * Current document schema.
1109
+ * @alpha
1110
+ */
1111
+ export declare type IDocumentSchemaCurrent = {
1112
+ version: 1;
1113
+ refSeq: number;
1114
+ runtime: {
1115
+ [P in keyof IDocumentSchemaFeatures]?: IDocumentSchemaFeatures[P] extends boolean ? true : IDocumentSchemaFeatures[P];
1116
+ };
1117
+ };
1118
+
1119
+ /**
1120
+ * Settings that this session would like to have, based on options and feature gates.
1121
+ *
1122
+ * WARNING: This type is used to infer IDocumentSchemaCurrent type!
1123
+ * Any changes here (including renaming of properties) are potentially changing document format and should be considered carefully!
1124
+ *
1125
+ * @alpha
1126
+ */
1127
+ export declare interface IDocumentSchemaFeatures {
1128
+ explicitSchemaControl: boolean;
1129
+ compressionLz4: boolean;
1130
+ idCompressorMode: IdCompressorMode;
1131
+ opGroupingEnabled: boolean;
1132
+ }
938
1133
 
939
1134
  /**
940
1135
  * Options to use when enqueueing a summarize attempt.
@@ -1564,8 +1759,6 @@ export declare type OpActionEventName = MessageType.Summarize | MessageType.Summ
1564
1759
 
1565
1760
  /* Excluded from this release type: RuntimeHeaders */
1566
1761
 
1567
- /* Excluded from this release type: RuntimeMessage */
1568
-
1569
1762
  /**
1570
1763
  * The data in summarizer result when submit summary stage fails.
1571
1764
  * @alpha
@@ -20,7 +20,6 @@ import { IDocumentMessage } from '@fluidframework/protocol-definitions';
20
20
  import { IDocumentStorageService } from '@fluidframework/driver-definitions';
21
21
  import { IEnvelope } from '@fluidframework/runtime-definitions';
22
22
  import { IEvent } from '@fluidframework/core-interfaces';
23
- import { IEvent as IEvent_2 } from '@fluidframework/common-definitions';
24
23
  import { IEventProvider } from '@fluidframework/core-interfaces';
25
24
  import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions';
26
25
  import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions';
@@ -89,12 +88,20 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
89
88
 
90
89
  /* Excluded from this release type: CreateChildSummarizerNodeParam */
91
90
 
91
+ /* Excluded from this release type: currentDocumentVersionSchema */
92
+
92
93
  /* Excluded from this release type: DataStoreContexts */
93
94
 
94
95
  /* Excluded from this release type: DefaultSummaryConfiguration */
95
96
 
96
97
  /* Excluded from this release type: detectOutboundReferences */
97
98
 
99
+ /* Excluded from this release type: disabledCompressionConfig */
100
+
101
+ /* Excluded from this release type: DocumentSchemaValueType */
102
+
103
+ /* Excluded from this release type: DocumentsSchemaController */
104
+
98
105
  /* Excluded from this release type: EnqueueSummarizeResult */
99
106
 
100
107
  /* Excluded from this release type: FluidDataStoreContext */
@@ -153,6 +160,14 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
153
160
 
154
161
  /* Excluded from this release type: IdCompressorMode */
155
162
 
163
+ /* Excluded from this release type: IDocumentSchema */
164
+
165
+ /* Excluded from this release type: IDocumentSchemaChangeMessage */
166
+
167
+ /* Excluded from this release type: IDocumentSchemaCurrent */
168
+
169
+ /* Excluded from this release type: IDocumentSchemaFeatures */
170
+
156
171
  /* Excluded from this release type: IDocumentStorageService */
157
172
 
158
173
  /* Excluded from this release type: IEnqueueSummarizeOptions */
@@ -289,8 +304,6 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
289
304
 
290
305
  /* Excluded from this release type: RuntimeHeaders */
291
306
 
292
- /* Excluded from this release type: RuntimeMessage */
293
-
294
307
  /* Excluded from this release type: SubmitSummaryFailureData */
295
308
 
296
309
  /* Excluded from this release type: SubmitSummaryResult */
@@ -20,7 +20,6 @@ import { IDocumentMessage } from '@fluidframework/protocol-definitions';
20
20
  import { IDocumentStorageService } from '@fluidframework/driver-definitions';
21
21
  import { IEnvelope } from '@fluidframework/runtime-definitions';
22
22
  import { IEvent } from '@fluidframework/core-interfaces';
23
- import { IEvent as IEvent_2 } from '@fluidframework/common-definitions';
24
23
  import { IEventProvider } from '@fluidframework/core-interfaces';
25
24
  import { IFluidDataStoreChannel } from '@fluidframework/runtime-definitions';
26
25
  import { IFluidDataStoreContext } from '@fluidframework/runtime-definitions';
@@ -89,12 +88,20 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
89
88
 
90
89
  /* Excluded from this release type: CreateChildSummarizerNodeParam */
91
90
 
91
+ /* Excluded from this release type: currentDocumentVersionSchema */
92
+
92
93
  /* Excluded from this release type: DataStoreContexts */
93
94
 
94
95
  /* Excluded from this release type: DefaultSummaryConfiguration */
95
96
 
96
97
  /* Excluded from this release type: detectOutboundReferences */
97
98
 
99
+ /* Excluded from this release type: disabledCompressionConfig */
100
+
101
+ /* Excluded from this release type: DocumentSchemaValueType */
102
+
103
+ /* Excluded from this release type: DocumentsSchemaController */
104
+
98
105
  /* Excluded from this release type: EnqueueSummarizeResult */
99
106
 
100
107
  /* Excluded from this release type: FluidDataStoreContext */
@@ -153,6 +160,14 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
153
160
 
154
161
  /* Excluded from this release type: IdCompressorMode */
155
162
 
163
+ /* Excluded from this release type: IDocumentSchema */
164
+
165
+ /* Excluded from this release type: IDocumentSchemaChangeMessage */
166
+
167
+ /* Excluded from this release type: IDocumentSchemaCurrent */
168
+
169
+ /* Excluded from this release type: IDocumentSchemaFeatures */
170
+
156
171
  /* Excluded from this release type: IDocumentStorageService */
157
172
 
158
173
  /* Excluded from this release type: IEnqueueSummarizeOptions */
@@ -289,8 +304,6 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
289
304
 
290
305
  /* Excluded from this release type: RuntimeHeaders */
291
306
 
292
- /* Excluded from this release type: RuntimeMessage */
293
-
294
307
  /* Excluded from this release type: SubmitSummaryFailureData */
295
308
 
296
309
  /* Excluded from this release type: SubmitSummaryResult */