@fluidframework/container-runtime 2.0.0-rc.2.0.2 → 2.0.0-rc.3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/api-report/container-runtime.api.md +471 -52
- package/dist/batchTracker.d.ts +1 -1
- package/dist/batchTracker.d.ts.map +1 -1
- package/dist/batchTracker.js +4 -4
- package/dist/batchTracker.js.map +1 -1
- package/dist/blobManager.d.ts +33 -30
- package/dist/blobManager.d.ts.map +1 -1
- package/dist/blobManager.js +82 -107
- package/dist/blobManager.js.map +1 -1
- package/dist/channelCollection.d.ts +27 -22
- package/dist/channelCollection.d.ts.map +1 -1
- package/dist/channelCollection.js +155 -165
- package/dist/channelCollection.js.map +1 -1
- package/dist/connectionTelemetry.d.ts +3 -3
- package/dist/connectionTelemetry.d.ts.map +1 -1
- package/dist/connectionTelemetry.js +17 -17
- package/dist/connectionTelemetry.js.map +1 -1
- package/dist/containerHandleContext.d.ts.map +1 -1
- package/dist/containerHandleContext.js +2 -2
- package/dist/containerHandleContext.js.map +1 -1
- package/dist/containerRuntime.d.ts +42 -39
- package/dist/containerRuntime.d.ts.map +1 -1
- package/dist/containerRuntime.js +425 -292
- package/dist/containerRuntime.js.map +1 -1
- package/dist/dataStore.d.ts +1 -1
- package/dist/dataStore.d.ts.map +1 -1
- package/dist/dataStore.js +8 -8
- package/dist/dataStore.js.map +1 -1
- package/dist/dataStoreContext.d.ts +58 -19
- package/dist/dataStoreContext.d.ts.map +1 -1
- package/dist/dataStoreContext.js +169 -114
- package/dist/dataStoreContext.js.map +1 -1
- package/dist/dataStoreContexts.d.ts +1 -0
- package/dist/dataStoreContexts.d.ts.map +1 -1
- package/dist/dataStoreContexts.js +12 -11
- package/dist/dataStoreContexts.js.map +1 -1
- package/dist/dataStoreRegistry.d.ts +5 -1
- package/dist/dataStoreRegistry.d.ts.map +1 -1
- package/dist/dataStoreRegistry.js +4 -4
- package/dist/dataStoreRegistry.js.map +1 -1
- package/dist/deltaManagerSummarizerProxy.d.ts +1 -1
- package/dist/deltaManagerSummarizerProxy.d.ts.map +1 -1
- package/dist/deltaManagerSummarizerProxy.js.map +1 -1
- package/dist/deltaScheduler.d.ts +1 -1
- package/dist/deltaScheduler.d.ts.map +1 -1
- package/dist/deltaScheduler.js +6 -6
- package/dist/deltaScheduler.js.map +1 -1
- package/dist/error.d.ts +1 -1
- package/dist/error.d.ts.map +1 -1
- package/dist/error.js +4 -4
- package/dist/error.js.map +1 -1
- package/dist/gc/garbageCollection.d.ts +3 -2
- package/dist/gc/garbageCollection.d.ts.map +1 -1
- package/dist/gc/garbageCollection.js +23 -23
- package/dist/gc/garbageCollection.js.map +1 -1
- package/dist/gc/gcConfigs.d.ts +2 -2
- package/dist/gc/gcConfigs.d.ts.map +1 -1
- package/dist/gc/gcConfigs.js +4 -5
- package/dist/gc/gcConfigs.js.map +1 -1
- package/dist/gc/gcDefinitions.d.ts +4 -5
- package/dist/gc/gcDefinitions.d.ts.map +1 -1
- package/dist/gc/gcDefinitions.js.map +1 -1
- package/dist/gc/gcHelpers.d.ts +5 -1
- package/dist/gc/gcHelpers.d.ts.map +1 -1
- package/dist/gc/gcHelpers.js +21 -12
- package/dist/gc/gcHelpers.js.map +1 -1
- package/dist/gc/gcSummaryStateTracker.d.ts +2 -2
- package/dist/gc/gcSummaryStateTracker.d.ts.map +1 -1
- package/dist/gc/gcSummaryStateTracker.js +11 -11
- package/dist/gc/gcSummaryStateTracker.js.map +1 -1
- package/dist/gc/gcTelemetry.d.ts +2 -1
- package/dist/gc/gcTelemetry.d.ts.map +1 -1
- package/dist/gc/gcTelemetry.js +11 -9
- package/dist/gc/gcTelemetry.js.map +1 -1
- package/dist/gc/gcUnreferencedStateTracker.d.ts.map +1 -1
- package/dist/gc/gcUnreferencedStateTracker.js +6 -6
- package/dist/gc/gcUnreferencedStateTracker.js.map +1 -1
- package/dist/gc/index.d.ts +1 -1
- package/dist/gc/index.d.ts.map +1 -1
- package/dist/gc/index.js +2 -1
- package/dist/gc/index.js.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/dist/legacy.d.ts +91 -0
- package/dist/messageTypes.d.ts +11 -5
- package/dist/messageTypes.d.ts.map +1 -1
- package/dist/messageTypes.js +4 -0
- package/dist/messageTypes.js.map +1 -1
- package/dist/opLifecycle/batchManager.d.ts.map +1 -1
- package/dist/opLifecycle/batchManager.js.map +1 -1
- package/dist/opLifecycle/definitions.d.ts +2 -20
- package/dist/opLifecycle/definitions.d.ts.map +1 -1
- package/dist/opLifecycle/definitions.js.map +1 -1
- package/dist/opLifecycle/index.d.ts +3 -3
- package/dist/opLifecycle/index.d.ts.map +1 -1
- package/dist/opLifecycle/index.js +3 -1
- package/dist/opLifecycle/index.js.map +1 -1
- package/dist/opLifecycle/opCompressor.d.ts.map +1 -1
- package/dist/opLifecycle/opCompressor.js +5 -6
- package/dist/opLifecycle/opCompressor.js.map +1 -1
- package/dist/opLifecycle/opDecompressor.d.ts +15 -4
- package/dist/opLifecycle/opDecompressor.d.ts.map +1 -1
- package/dist/opLifecycle/opDecompressor.js +62 -63
- package/dist/opLifecycle/opDecompressor.js.map +1 -1
- package/dist/opLifecycle/opGroupingManager.d.ts +2 -1
- package/dist/opLifecycle/opGroupingManager.d.ts.map +1 -1
- package/dist/opLifecycle/opGroupingManager.js +14 -16
- package/dist/opLifecycle/opGroupingManager.js.map +1 -1
- package/dist/opLifecycle/opSplitter.d.ts +12 -4
- package/dist/opLifecycle/opSplitter.d.ts.map +1 -1
- package/dist/opLifecycle/opSplitter.js +63 -53
- package/dist/opLifecycle/opSplitter.js.map +1 -1
- package/dist/opLifecycle/outbox.d.ts +2 -1
- package/dist/opLifecycle/outbox.d.ts.map +1 -1
- package/dist/opLifecycle/outbox.js +30 -29
- package/dist/opLifecycle/outbox.js.map +1 -1
- package/dist/opLifecycle/remoteMessageProcessor.d.ts +8 -0
- package/dist/opLifecycle/remoteMessageProcessor.d.ts.map +1 -1
- package/dist/opLifecycle/remoteMessageProcessor.js +36 -32
- package/dist/opLifecycle/remoteMessageProcessor.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/pendingStateManager.d.ts +1 -1
- package/dist/pendingStateManager.d.ts.map +1 -1
- package/dist/pendingStateManager.js +18 -18
- package/dist/pendingStateManager.js.map +1 -1
- package/dist/public.d.ts +12 -0
- package/dist/scheduleManager.d.ts +1 -1
- package/dist/scheduleManager.d.ts.map +1 -1
- package/dist/scheduleManager.js +28 -24
- package/dist/scheduleManager.js.map +1 -1
- package/dist/storageServiceWithAttachBlobs.d.ts +2 -2
- package/dist/storageServiceWithAttachBlobs.d.ts.map +1 -1
- package/dist/storageServiceWithAttachBlobs.js +2 -2
- package/dist/storageServiceWithAttachBlobs.js.map +1 -1
- package/dist/summary/documentSchema.d.ts +209 -0
- package/dist/summary/documentSchema.d.ts.map +1 -0
- package/dist/summary/documentSchema.js +390 -0
- package/dist/summary/documentSchema.js.map +1 -0
- package/dist/summary/index.d.ts +2 -1
- package/dist/summary/index.d.ts.map +1 -1
- package/dist/summary/index.js +4 -1
- package/dist/summary/index.js.map +1 -1
- package/dist/summary/orderedClientElection.d.ts +2 -2
- package/dist/summary/orderedClientElection.d.ts.map +1 -1
- package/dist/summary/orderedClientElection.js +12 -7
- package/dist/summary/orderedClientElection.js.map +1 -1
- package/dist/summary/runWhileConnectedCoordinator.d.ts +1 -1
- package/dist/summary/runWhileConnectedCoordinator.d.ts.map +1 -1
- package/dist/summary/runWhileConnectedCoordinator.js +3 -3
- package/dist/summary/runWhileConnectedCoordinator.js.map +1 -1
- package/dist/summary/runningSummarizer.d.ts +3 -3
- package/dist/summary/runningSummarizer.d.ts.map +1 -1
- package/dist/summary/runningSummarizer.js +16 -16
- package/dist/summary/runningSummarizer.js.map +1 -1
- package/dist/summary/summarizer.d.ts +3 -2
- package/dist/summary/summarizer.d.ts.map +1 -1
- package/dist/summary/summarizer.js +13 -13
- package/dist/summary/summarizer.js.map +1 -1
- package/dist/summary/summarizerClientElection.d.ts +2 -2
- package/dist/summary/summarizerClientElection.d.ts.map +1 -1
- package/dist/summary/summarizerClientElection.js.map +1 -1
- package/dist/summary/summarizerHeuristics.d.ts +1 -1
- package/dist/summary/summarizerHeuristics.d.ts.map +1 -1
- package/dist/summary/summarizerHeuristics.js +2 -2
- package/dist/summary/summarizerHeuristics.js.map +1 -1
- package/dist/summary/summarizerNode/summarizerNode.d.ts +3 -2
- package/dist/summary/summarizerNode/summarizerNode.d.ts.map +1 -1
- package/dist/summary/summarizerNode/summarizerNode.js +28 -28
- package/dist/summary/summarizerNode/summarizerNode.js.map +1 -1
- package/dist/summary/summarizerNode/summarizerNodeUtils.d.ts +2 -1
- package/dist/summary/summarizerNode/summarizerNodeUtils.d.ts.map +1 -1
- package/dist/summary/summarizerNode/summarizerNodeUtils.js +3 -3
- package/dist/summary/summarizerNode/summarizerNodeUtils.js.map +1 -1
- package/dist/summary/summarizerNode/summarizerNodeWithGc.d.ts +2 -1
- package/dist/summary/summarizerNode/summarizerNodeWithGc.d.ts.map +1 -1
- package/dist/summary/summarizerNode/summarizerNodeWithGc.js +14 -14
- package/dist/summary/summarizerNode/summarizerNodeWithGc.js.map +1 -1
- package/dist/summary/summarizerTypes.d.ts +5 -3
- package/dist/summary/summarizerTypes.d.ts.map +1 -1
- package/dist/summary/summarizerTypes.js.map +1 -1
- package/dist/summary/summaryCollection.d.ts +2 -2
- package/dist/summary/summaryCollection.d.ts.map +1 -1
- package/dist/summary/summaryCollection.js +7 -7
- package/dist/summary/summaryCollection.js.map +1 -1
- package/dist/summary/summaryFormat.d.ts +6 -17
- package/dist/summary/summaryFormat.d.ts.map +1 -1
- package/dist/summary/summaryFormat.js +8 -8
- package/dist/summary/summaryFormat.js.map +1 -1
- package/dist/summary/summaryGenerator.d.ts +4 -3
- package/dist/summary/summaryGenerator.d.ts.map +1 -1
- package/dist/summary/summaryGenerator.js +17 -17
- package/dist/summary/summaryGenerator.js.map +1 -1
- package/dist/summary/summaryManager.d.ts +1 -1
- package/dist/summary/summaryManager.d.ts.map +1 -1
- package/dist/summary/summaryManager.js +15 -14
- package/dist/summary/summaryManager.js.map +1 -1
- package/internal.d.ts +11 -0
- package/legacy.d.ts +11 -0
- package/lib/batchTracker.d.ts +1 -1
- package/lib/batchTracker.d.ts.map +1 -1
- package/lib/batchTracker.js +2 -2
- package/lib/batchTracker.js.map +1 -1
- package/lib/blobManager.d.ts +33 -30
- package/lib/blobManager.d.ts.map +1 -1
- package/lib/blobManager.js +48 -73
- package/lib/blobManager.js.map +1 -1
- package/lib/channelCollection.d.ts +27 -22
- package/lib/channelCollection.d.ts.map +1 -1
- package/lib/channelCollection.js +96 -106
- package/lib/channelCollection.js.map +1 -1
- package/lib/connectionTelemetry.d.ts +3 -3
- package/lib/connectionTelemetry.d.ts.map +1 -1
- package/lib/connectionTelemetry.js +3 -3
- package/lib/connectionTelemetry.js.map +1 -1
- package/lib/containerHandleContext.d.ts.map +1 -1
- package/lib/containerHandleContext.js +1 -1
- package/lib/containerHandleContext.js.map +1 -1
- package/lib/containerRuntime.d.ts +42 -39
- package/lib/containerRuntime.d.ts.map +1 -1
- package/lib/containerRuntime.js +276 -141
- package/lib/containerRuntime.js.map +1 -1
- package/lib/dataStore.d.ts +1 -1
- package/lib/dataStore.d.ts.map +1 -1
- package/lib/dataStore.js +3 -3
- package/lib/dataStore.js.map +1 -1
- package/lib/dataStoreContext.d.ts +58 -19
- package/lib/dataStoreContext.d.ts.map +1 -1
- package/lib/dataStoreContext.js +107 -52
- package/lib/dataStoreContext.js.map +1 -1
- package/lib/dataStoreContexts.d.ts +1 -0
- package/lib/dataStoreContexts.d.ts.map +1 -1
- package/lib/dataStoreContexts.js +3 -2
- package/lib/dataStoreContexts.js.map +1 -1
- package/lib/dataStoreRegistry.d.ts +5 -1
- package/lib/dataStoreRegistry.d.ts.map +1 -1
- package/lib/dataStoreRegistry.js +1 -1
- package/lib/dataStoreRegistry.js.map +1 -1
- package/lib/deltaManagerSummarizerProxy.d.ts +1 -1
- package/lib/deltaManagerSummarizerProxy.d.ts.map +1 -1
- package/lib/deltaManagerSummarizerProxy.js.map +1 -1
- package/lib/deltaScheduler.d.ts +1 -1
- package/lib/deltaScheduler.d.ts.map +1 -1
- package/lib/deltaScheduler.js +1 -1
- package/lib/deltaScheduler.js.map +1 -1
- package/lib/error.d.ts +1 -1
- package/lib/error.d.ts.map +1 -1
- package/lib/error.js +2 -2
- package/lib/error.js.map +1 -1
- package/lib/gc/garbageCollection.d.ts +3 -2
- package/lib/gc/garbageCollection.d.ts.map +1 -1
- package/lib/gc/garbageCollection.js +8 -8
- package/lib/gc/garbageCollection.js.map +1 -1
- package/lib/gc/gcConfigs.d.ts +2 -2
- package/lib/gc/gcConfigs.d.ts.map +1 -1
- package/lib/gc/gcConfigs.js +4 -5
- package/lib/gc/gcConfigs.js.map +1 -1
- package/lib/gc/gcDefinitions.d.ts +4 -5
- package/lib/gc/gcDefinitions.d.ts.map +1 -1
- package/lib/gc/gcDefinitions.js.map +1 -1
- package/lib/gc/gcHelpers.d.ts +5 -1
- package/lib/gc/gcHelpers.d.ts.map +1 -1
- package/lib/gc/gcHelpers.js +10 -2
- package/lib/gc/gcHelpers.js.map +1 -1
- package/lib/gc/gcSummaryStateTracker.d.ts +2 -2
- package/lib/gc/gcSummaryStateTracker.d.ts.map +1 -1
- package/lib/gc/gcSummaryStateTracker.js +2 -2
- package/lib/gc/gcSummaryStateTracker.js.map +1 -1
- package/lib/gc/gcTelemetry.d.ts +2 -1
- package/lib/gc/gcTelemetry.d.ts.map +1 -1
- package/lib/gc/gcTelemetry.js +4 -2
- package/lib/gc/gcTelemetry.js.map +1 -1
- package/lib/gc/gcUnreferencedStateTracker.d.ts.map +1 -1
- package/lib/gc/gcUnreferencedStateTracker.js +2 -2
- package/lib/gc/gcUnreferencedStateTracker.js.map +1 -1
- package/lib/gc/index.d.ts +1 -1
- package/lib/gc/index.d.ts.map +1 -1
- package/lib/gc/index.js +1 -1
- package/lib/gc/index.js.map +1 -1
- package/lib/index.d.ts +5 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -2
- package/lib/index.js.map +1 -1
- package/lib/legacy.d.ts +91 -0
- package/lib/messageTypes.d.ts +11 -5
- package/lib/messageTypes.d.ts.map +1 -1
- package/lib/messageTypes.js +4 -0
- package/lib/messageTypes.js.map +1 -1
- package/lib/opLifecycle/batchManager.d.ts.map +1 -1
- package/lib/opLifecycle/batchManager.js.map +1 -1
- package/lib/opLifecycle/definitions.d.ts +2 -20
- package/lib/opLifecycle/definitions.d.ts.map +1 -1
- package/lib/opLifecycle/definitions.js.map +1 -1
- package/lib/opLifecycle/index.d.ts +3 -3
- package/lib/opLifecycle/index.d.ts.map +1 -1
- package/lib/opLifecycle/index.js +2 -2
- package/lib/opLifecycle/index.js.map +1 -1
- package/lib/opLifecycle/opCompressor.d.ts.map +1 -1
- package/lib/opLifecycle/opCompressor.js +2 -3
- package/lib/opLifecycle/opCompressor.js.map +1 -1
- package/lib/opLifecycle/opDecompressor.d.ts +15 -4
- package/lib/opLifecycle/opDecompressor.d.ts.map +1 -1
- package/lib/opLifecycle/opDecompressor.js +61 -62
- package/lib/opLifecycle/opDecompressor.js.map +1 -1
- package/lib/opLifecycle/opGroupingManager.d.ts +2 -1
- package/lib/opLifecycle/opGroupingManager.d.ts.map +1 -1
- package/lib/opLifecycle/opGroupingManager.js +9 -12
- package/lib/opLifecycle/opGroupingManager.js.map +1 -1
- package/lib/opLifecycle/opSplitter.d.ts +12 -4
- package/lib/opLifecycle/opSplitter.d.ts.map +1 -1
- package/lib/opLifecycle/opSplitter.js +47 -38
- package/lib/opLifecycle/opSplitter.js.map +1 -1
- package/lib/opLifecycle/outbox.d.ts +2 -1
- package/lib/opLifecycle/outbox.d.ts.map +1 -1
- package/lib/opLifecycle/outbox.js +19 -18
- package/lib/opLifecycle/outbox.js.map +1 -1
- package/lib/opLifecycle/remoteMessageProcessor.d.ts +8 -0
- package/lib/opLifecycle/remoteMessageProcessor.d.ts.map +1 -1
- package/lib/opLifecycle/remoteMessageProcessor.js +36 -32
- package/lib/opLifecycle/remoteMessageProcessor.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/pendingStateManager.d.ts +1 -1
- package/lib/pendingStateManager.d.ts.map +1 -1
- package/lib/pendingStateManager.js +2 -2
- package/lib/pendingStateManager.js.map +1 -1
- package/lib/public.d.ts +12 -0
- package/lib/scheduleManager.d.ts +1 -1
- package/lib/scheduleManager.d.ts.map +1 -1
- package/lib/scheduleManager.js +7 -3
- package/lib/scheduleManager.js.map +1 -1
- package/lib/storageServiceWithAttachBlobs.d.ts +2 -2
- package/lib/storageServiceWithAttachBlobs.d.ts.map +1 -1
- package/lib/storageServiceWithAttachBlobs.js +1 -1
- package/lib/storageServiceWithAttachBlobs.js.map +1 -1
- package/lib/summary/documentSchema.d.ts +209 -0
- package/lib/summary/documentSchema.d.ts.map +1 -0
- package/lib/summary/documentSchema.js +386 -0
- package/lib/summary/documentSchema.js.map +1 -0
- package/lib/summary/index.d.ts +2 -1
- package/lib/summary/index.d.ts.map +1 -1
- package/lib/summary/index.js +1 -0
- package/lib/summary/index.js.map +1 -1
- package/lib/summary/orderedClientElection.d.ts +2 -2
- package/lib/summary/orderedClientElection.d.ts.map +1 -1
- package/lib/summary/orderedClientElection.js +7 -2
- package/lib/summary/orderedClientElection.js.map +1 -1
- package/lib/summary/runWhileConnectedCoordinator.d.ts +1 -1
- package/lib/summary/runWhileConnectedCoordinator.d.ts.map +1 -1
- package/lib/summary/runWhileConnectedCoordinator.js +1 -1
- package/lib/summary/runWhileConnectedCoordinator.js.map +1 -1
- package/lib/summary/runningSummarizer.d.ts +3 -3
- package/lib/summary/runningSummarizer.d.ts.map +1 -1
- package/lib/summary/runningSummarizer.js +3 -3
- package/lib/summary/runningSummarizer.js.map +1 -1
- package/lib/summary/summarizer.d.ts +3 -2
- package/lib/summary/summarizer.d.ts.map +1 -1
- package/lib/summary/summarizer.js +3 -3
- package/lib/summary/summarizer.js.map +1 -1
- package/lib/summary/summarizerClientElection.d.ts +2 -2
- package/lib/summary/summarizerClientElection.d.ts.map +1 -1
- package/lib/summary/summarizerClientElection.js.map +1 -1
- package/lib/summary/summarizerHeuristics.d.ts +1 -1
- package/lib/summary/summarizerHeuristics.d.ts.map +1 -1
- package/lib/summary/summarizerHeuristics.js +1 -1
- package/lib/summary/summarizerHeuristics.js.map +1 -1
- package/lib/summary/summarizerNode/summarizerNode.d.ts +3 -2
- package/lib/summary/summarizerNode/summarizerNode.d.ts.map +1 -1
- package/lib/summary/summarizerNode/summarizerNode.js +5 -5
- package/lib/summary/summarizerNode/summarizerNode.js.map +1 -1
- package/lib/summary/summarizerNode/summarizerNodeUtils.d.ts +2 -1
- package/lib/summary/summarizerNode/summarizerNodeUtils.d.ts.map +1 -1
- package/lib/summary/summarizerNode/summarizerNodeUtils.js +1 -1
- package/lib/summary/summarizerNode/summarizerNodeUtils.js.map +1 -1
- package/lib/summary/summarizerNode/summarizerNodeWithGc.d.ts +2 -1
- package/lib/summary/summarizerNode/summarizerNodeWithGc.d.ts.map +1 -1
- package/lib/summary/summarizerNode/summarizerNodeWithGc.js +3 -3
- package/lib/summary/summarizerNode/summarizerNodeWithGc.js.map +1 -1
- package/lib/summary/summarizerTypes.d.ts +5 -3
- package/lib/summary/summarizerTypes.d.ts.map +1 -1
- package/lib/summary/summarizerTypes.js.map +1 -1
- package/lib/summary/summaryCollection.d.ts +2 -2
- package/lib/summary/summaryCollection.d.ts.map +1 -1
- package/lib/summary/summaryCollection.js +1 -1
- package/lib/summary/summaryCollection.js.map +1 -1
- package/lib/summary/summaryFormat.d.ts +6 -17
- package/lib/summary/summaryFormat.d.ts.map +1 -1
- package/lib/summary/summaryFormat.js +3 -3
- package/lib/summary/summaryFormat.js.map +1 -1
- package/lib/summary/summaryGenerator.d.ts +4 -3
- package/lib/summary/summaryGenerator.d.ts.map +1 -1
- package/lib/summary/summaryGenerator.js +4 -4
- package/lib/summary/summaryGenerator.js.map +1 -1
- package/lib/summary/summaryManager.d.ts +1 -1
- package/lib/summary/summaryManager.d.ts.map +1 -1
- package/lib/summary/summaryManager.js +9 -8
- package/lib/summary/summaryManager.js.map +1 -1
- package/package.json +57 -65
- package/src/batchTracker.ts +4 -3
- package/src/blobManager.ts +100 -77
- package/src/channelCollection.ts +180 -165
- package/src/connectionTelemetry.ts +12 -12
- package/src/containerHandleContext.ts +3 -2
- package/src/containerRuntime.ts +481 -277
- package/src/dataStore.ts +9 -4
- package/src/dataStoreContext.ts +195 -93
- package/src/dataStoreContexts.ts +5 -2
- package/src/dataStoreRegistry.ts +3 -2
- package/src/deltaManagerSummarizerProxy.ts +1 -1
- package/src/deltaScheduler.ts +2 -1
- package/src/error.ts +2 -2
- package/src/gc/garbageCollection.ts +21 -20
- package/src/gc/gcConfigs.ts +15 -18
- package/src/gc/gcDefinitions.ts +6 -8
- package/src/gc/gcHelpers.ts +22 -5
- package/src/gc/gcSummaryStateTracker.ts +7 -5
- package/src/gc/gcTelemetry.ts +13 -7
- package/src/gc/gcUnreferencedStateTracker.ts +3 -2
- package/src/gc/index.ts +1 -0
- package/src/index.ts +22 -1
- package/src/messageTypes.ts +20 -6
- package/src/opLifecycle/README.md +89 -0
- package/src/opLifecycle/batchManager.ts +1 -0
- package/src/opLifecycle/definitions.ts +3 -21
- package/src/opLifecycle/index.ts +3 -9
- package/src/opLifecycle/opCompressor.ts +6 -5
- package/src/opLifecycle/opDecompressor.ts +90 -100
- package/src/opLifecycle/opGroupingManager.ts +12 -14
- package/src/opLifecycle/opSplitter.ts +76 -48
- package/src/opLifecycle/outbox.ts +30 -38
- package/src/opLifecycle/remoteMessageProcessor.ts +43 -55
- package/src/packageVersion.ts +1 -1
- package/src/pendingStateManager.ts +6 -6
- package/src/scheduleManager.ts +10 -8
- package/src/storageServiceWithAttachBlobs.ts +2 -2
- package/src/summary/documentSchema.ts +631 -0
- package/src/summary/index.ts +10 -1
- package/src/summary/orderedClientElection.ts +7 -7
- package/src/summary/runWhileConnectedCoordinator.ts +3 -2
- package/src/summary/runningSummarizer.ts +22 -20
- package/src/summary/summarizer.ts +17 -15
- package/src/summary/summarizerClientElection.ts +3 -2
- package/src/summary/summarizerHeuristics.ts +4 -2
- package/src/summary/summarizerNode/summarizerNode.ts +20 -18
- package/src/summary/summarizerNode/summarizerNodeUtils.ts +3 -2
- package/src/summary/summarizerNode/summarizerNodeWithGc.ts +16 -8
- package/src/summary/summarizerTypes.ts +7 -3
- package/src/summary/summaryCollection.ts +3 -3
- package/src/summary/summaryFormat.ts +14 -26
- package/src/summary/summaryGenerator.ts +12 -15
- package/src/summary/summaryManager.ts +16 -13
- package/api-extractor-cjs.json +0 -8
- package/dist/container-runtime-alpha.d.ts +0 -1753
- package/dist/container-runtime-beta.d.ts +0 -268
- package/dist/container-runtime-public.d.ts +0 -268
- package/dist/container-runtime-untrimmed.d.ts +0 -1893
- package/lib/container-runtime-alpha.d.ts +0 -1753
- package/lib/container-runtime-beta.d.ts +0 -268
- package/lib/container-runtime-public.d.ts +0 -268
- package/lib/container-runtime-untrimmed.d.ts +0 -1893
- package/lib/test/batchTracker.spec.js +0 -88
- package/lib/test/batchTracker.spec.js.map +0 -1
- package/lib/test/blobManager.spec.js +0 -835
- package/lib/test/blobManager.spec.js.map +0 -1
- package/lib/test/channelCollection.spec.js +0 -141
- package/lib/test/channelCollection.spec.js.map +0 -1
- package/lib/test/containerRuntime.spec.js +0 -1748
- package/lib/test/containerRuntime.spec.js.map +0 -1
- package/lib/test/dataStoreContext.spec.js +0 -801
- package/lib/test/dataStoreContext.spec.js.map +0 -1
- package/lib/test/dataStoreCreation.spec.js +0 -312
- package/lib/test/dataStoreCreation.spec.js.map +0 -1
- package/lib/test/dataStoreRegistry.spec.js +0 -26
- package/lib/test/dataStoreRegistry.spec.js.map +0 -1
- package/lib/test/fuzz/fuzzUtils.js +0 -66
- package/lib/test/fuzz/fuzzUtils.js.map +0 -1
- package/lib/test/fuzz/summarizer.fuzz.spec.js +0 -31
- package/lib/test/fuzz/summarizer.fuzz.spec.js.map +0 -1
- package/lib/test/fuzz/summarizerFuzzMocks.js +0 -162
- package/lib/test/fuzz/summarizerFuzzMocks.js.map +0 -1
- package/lib/test/fuzz/summarizerFuzzSuite.js +0 -106
- package/lib/test/fuzz/summarizerFuzzSuite.js.map +0 -1
- package/lib/test/gc/garbageCollection.spec.js +0 -1465
- package/lib/test/gc/garbageCollection.spec.js.map +0 -1
- package/lib/test/gc/gcConfigs.spec.js +0 -690
- package/lib/test/gc/gcConfigs.spec.js.map +0 -1
- package/lib/test/gc/gcHelpers.spec.js +0 -110
- package/lib/test/gc/gcHelpers.spec.js.map +0 -1
- package/lib/test/gc/gcReferenceGraphAlgorithm.spec.js +0 -68
- package/lib/test/gc/gcReferenceGraphAlgorithm.spec.js.map +0 -1
- package/lib/test/gc/gcStats.spec.js +0 -391
- package/lib/test/gc/gcStats.spec.js.map +0 -1
- package/lib/test/gc/gcSummaryStateTracker.spec.js +0 -228
- package/lib/test/gc/gcSummaryStateTracker.spec.js.map +0 -1
- package/lib/test/gc/gcTelemetry.spec.js +0 -530
- package/lib/test/gc/gcTelemetry.spec.js.map +0 -1
- package/lib/test/gc/gcUnitTestHelpers.js +0 -29
- package/lib/test/gc/gcUnitTestHelpers.js.map +0 -1
- package/lib/test/gc/gcUnreferencedStateTracker.spec.js +0 -192
- package/lib/test/gc/gcUnreferencedStateTracker.spec.js.map +0 -1
- package/lib/test/getPendingBlobs.spec.js +0 -193
- package/lib/test/getPendingBlobs.spec.js.map +0 -1
- package/lib/test/hardwareStats.spec.js +0 -93
- package/lib/test/hardwareStats.spec.js.map +0 -1
- package/lib/test/index.js +0 -6
- package/lib/test/index.js.map +0 -1
- package/lib/test/opLifecycle/OpGroupingManager.spec.js +0 -225
- package/lib/test/opLifecycle/OpGroupingManager.spec.js.map +0 -1
- package/lib/test/opLifecycle/batchManager.spec.js +0 -189
- package/lib/test/opLifecycle/batchManager.spec.js.map +0 -1
- package/lib/test/opLifecycle/opCompressor.spec.js +0 -74
- package/lib/test/opLifecycle/opCompressor.spec.js.map +0 -1
- package/lib/test/opLifecycle/opDecompressor.spec.js +0 -218
- package/lib/test/opLifecycle/opDecompressor.spec.js.map +0 -1
- package/lib/test/opLifecycle/opSplitter.spec.js +0 -272
- package/lib/test/opLifecycle/opSplitter.spec.js.map +0 -1
- package/lib/test/opLifecycle/outbox.spec.js +0 -675
- package/lib/test/opLifecycle/outbox.spec.js.map +0 -1
- package/lib/test/opLifecycle/remoteMessageProcessor.spec.js +0 -196
- package/lib/test/opLifecycle/remoteMessageProcessor.spec.js.map +0 -1
- package/lib/test/pendingStateManager.spec.js +0 -329
- package/lib/test/pendingStateManager.spec.js.map +0 -1
- package/lib/test/scheduleManager.spec.js +0 -270
- package/lib/test/scheduleManager.spec.js.map +0 -1
- package/lib/test/summarizerNode.spec.js +0 -326
- package/lib/test/summarizerNode.spec.js.map +0 -1
- package/lib/test/summarizerNodeWithGc.spec.js +0 -318
- package/lib/test/summarizerNodeWithGc.spec.js.map +0 -1
- package/lib/test/summary/orderedClientElection.spec.js +0 -535
- package/lib/test/summary/orderedClientElection.spec.js.map +0 -1
- package/lib/test/summary/runningSummarizer.spec.js +0 -1349
- package/lib/test/summary/runningSummarizer.spec.js.map +0 -1
- package/lib/test/summary/summarizer.spec.js +0 -29
- package/lib/test/summary/summarizer.spec.js.map +0 -1
- package/lib/test/summary/summarizerClientElection.spec.js +0 -436
- package/lib/test/summary/summarizerClientElection.spec.js.map +0 -1
- package/lib/test/summary/summarizerHeuristics.spec.js +0 -289
- package/lib/test/summary/summarizerHeuristics.spec.js.map +0 -1
- package/lib/test/summary/summaryCollection.spec.js +0 -200
- package/lib/test/summary/summaryCollection.spec.js.map +0 -1
- package/lib/test/summary/summaryManager.spec.js +0 -430
- package/lib/test/summary/summaryManager.spec.js.map +0 -1
- package/lib/test/summary/testQuorumClients.js +0 -34
- package/lib/test/summary/testQuorumClients.js.map +0 -1
- package/lib/test/throttler.spec.js +0 -175
- package/lib/test/throttler.spec.js.map +0 -1
- package/lib/test/types/validateContainerRuntimePrevious.generated.js +0 -180
- package/lib/test/types/validateContainerRuntimePrevious.generated.js.map +0 -1
- /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 {
|
|
10
|
-
import {
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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 {
|
|
57
|
-
import {
|
|
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>,
|
|
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:
|
|
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(
|
|
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
|
-
|
|
414
|
-
readonly
|
|
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" |
|
|
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
|
|
768
|
-
viaHandle = "viaHandle",
|
|
769
|
-
wait = "wait"
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
// @internal @deprecated (undocumented)
|
|
773
|
-
export enum RuntimeMessage {
|
|
1192
|
+
export interface RuntimeHeaderData {
|
|
774
1193
|
// (undocumented)
|
|
775
|
-
|
|
776
|
-
// (undocumented)
|
|
777
|
-
Attach = "attach",
|
|
778
|
-
// (undocumented)
|
|
779
|
-
BlobAttach = "blobAttach",
|
|
780
|
-
// (undocumented)
|
|
781
|
-
ChunkedOp = "chunkedOp",
|
|
1194
|
+
allowInactive?: boolean;
|
|
782
1195
|
// (undocumented)
|
|
783
|
-
|
|
1196
|
+
allowTombstone?: boolean;
|
|
784
1197
|
// (undocumented)
|
|
785
|
-
|
|
1198
|
+
viaHandle?: boolean;
|
|
786
1199
|
// (undocumented)
|
|
787
|
-
|
|
1200
|
+
wait?: boolean;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
// @internal
|
|
1204
|
+
export enum RuntimeHeaders {
|
|
1205
|
+
viaHandle = "viaHandle",
|
|
1206
|
+
wait = "wait"
|
|
788
1207
|
}
|
|
789
1208
|
|
|
790
1209
|
// @alpha
|