@fluidframework/container-runtime 2.0.0-internal.7.2.2 → 2.0.0-internal.7.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/README.md +1 -2
- package/api-extractor-lint.json +13 -0
- package/api-extractor.json +9 -1
- package/api-report/container-runtime.api.md +124 -107
- package/dist/batchTracker.d.ts +1 -0
- package/dist/batchTracker.d.ts.map +1 -1
- package/dist/blobManager.d.ts +4 -4
- package/dist/blobManager.d.ts.map +1 -1
- package/dist/blobManager.js.map +1 -1
- package/dist/connectionTelemetry.js +1 -1
- package/dist/connectionTelemetry.js.map +1 -1
- package/dist/container-runtime-alpha.d.ts +1473 -0
- package/dist/container-runtime-beta.d.ts +300 -0
- package/dist/container-runtime-public.d.ts +300 -0
- package/dist/container-runtime-untrimmed.d.ts +1836 -0
- package/dist/containerRuntime.d.ts +34 -40
- package/dist/containerRuntime.d.ts.map +1 -1
- package/dist/containerRuntime.js +79 -67
- package/dist/containerRuntime.js.map +1 -1
- package/dist/dataStoreRegistry.d.ts +1 -1
- package/dist/dataStoreRegistry.js +1 -1
- package/dist/dataStoreRegistry.js.map +1 -1
- package/dist/dataStores.d.ts +10 -15
- package/dist/dataStores.d.ts.map +1 -1
- package/dist/dataStores.js +77 -40
- package/dist/dataStores.js.map +1 -1
- package/dist/gc/garbageCollection.d.ts +41 -13
- package/dist/gc/garbageCollection.d.ts.map +1 -1
- package/dist/gc/garbageCollection.js +215 -78
- package/dist/gc/garbageCollection.js.map +1 -1
- package/dist/gc/gcConfigs.d.ts.map +1 -1
- package/dist/gc/gcConfigs.js +34 -37
- package/dist/gc/gcConfigs.js.map +1 -1
- package/dist/gc/gcDefinitions.d.ts +121 -46
- package/dist/gc/gcDefinitions.d.ts.map +1 -1
- package/dist/gc/gcDefinitions.js +26 -18
- package/dist/gc/gcDefinitions.js.map +1 -1
- package/dist/gc/gcHelpers.d.ts +18 -25
- package/dist/gc/gcHelpers.d.ts.map +1 -1
- package/dist/gc/gcHelpers.js +29 -45
- package/dist/gc/gcHelpers.js.map +1 -1
- package/dist/gc/gcTelemetry.d.ts +0 -5
- package/dist/gc/gcTelemetry.d.ts.map +1 -1
- package/dist/gc/gcTelemetry.js +14 -42
- package/dist/gc/gcTelemetry.js.map +1 -1
- package/dist/gc/gcUnreferencedStateTracker.d.ts +11 -5
- package/dist/gc/gcUnreferencedStateTracker.d.ts.map +1 -1
- package/dist/gc/gcUnreferencedStateTracker.js +43 -19
- 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 +4 -5
- package/dist/gc/index.js.map +1 -1
- package/dist/index.d.ts +14 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -5
- package/dist/index.js.map +1 -1
- package/dist/messageTypes.d.ts +16 -11
- package/dist/messageTypes.d.ts.map +1 -1
- package/dist/messageTypes.js +6 -1
- package/dist/messageTypes.js.map +1 -1
- package/dist/metadata.d.ts +6 -0
- package/dist/metadata.d.ts.map +1 -1
- package/dist/metadata.js.map +1 -1
- package/dist/opLifecycle/definitions.d.ts +1 -1
- package/dist/opLifecycle/definitions.js.map +1 -1
- package/dist/opLifecycle/opGroupingManager.d.ts.map +1 -1
- package/dist/opLifecycle/opGroupingManager.js +10 -1
- package/dist/opLifecycle/opGroupingManager.js.map +1 -1
- package/dist/opLifecycle/outbox.d.ts +2 -0
- package/dist/opLifecycle/outbox.d.ts.map +1 -1
- package/dist/opLifecycle/outbox.js +21 -0
- package/dist/opLifecycle/outbox.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 +2 -11
- package/dist/pendingStateManager.js.map +1 -1
- package/dist/scheduleManager.d.ts +1 -0
- package/dist/scheduleManager.d.ts.map +1 -1
- package/dist/summary/orderedClientElection.d.ts +1 -1
- package/dist/summary/orderedClientElection.js.map +1 -1
- package/dist/summary/runWhileConnectedCoordinator.d.ts +2 -2
- package/dist/summary/runWhileConnectedCoordinator.js +1 -1
- package/dist/summary/runWhileConnectedCoordinator.js.map +1 -1
- package/dist/summary/summarizer.d.ts +1 -1
- package/dist/summary/summarizer.js +1 -1
- package/dist/summary/summarizer.js.map +1 -1
- package/dist/summary/summarizerTypes.d.ts +30 -30
- package/dist/summary/summarizerTypes.js.map +1 -1
- package/dist/summary/summaryCollection.d.ts +10 -10
- package/dist/summary/summaryCollection.js +1 -1
- package/dist/summary/summaryCollection.js.map +1 -1
- package/dist/summary/summaryFormat.d.ts +3 -3
- package/dist/summary/summaryFormat.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/lib/batchTracker.d.ts +1 -0
- package/lib/batchTracker.d.ts.map +1 -1
- package/lib/blobManager.d.ts +4 -4
- package/lib/blobManager.d.ts.map +1 -1
- package/lib/blobManager.js.map +1 -1
- package/lib/connectionTelemetry.js +1 -1
- package/lib/connectionTelemetry.js.map +1 -1
- package/lib/container-runtime-alpha.d.ts +1473 -0
- package/lib/container-runtime-beta.d.ts +300 -0
- package/lib/container-runtime-public.d.ts +300 -0
- package/lib/container-runtime-untrimmed.d.ts +1836 -0
- package/lib/containerRuntime.d.ts +34 -40
- package/lib/containerRuntime.d.ts.map +1 -1
- package/lib/containerRuntime.js +81 -69
- package/lib/containerRuntime.js.map +1 -1
- package/lib/dataStoreRegistry.d.ts +1 -1
- package/lib/dataStoreRegistry.js +1 -1
- package/lib/dataStoreRegistry.js.map +1 -1
- package/lib/dataStores.d.ts +10 -15
- package/lib/dataStores.d.ts.map +1 -1
- package/lib/dataStores.js +80 -43
- package/lib/dataStores.js.map +1 -1
- package/lib/gc/garbageCollection.d.ts +41 -13
- package/lib/gc/garbageCollection.d.ts.map +1 -1
- package/lib/gc/garbageCollection.js +217 -80
- package/lib/gc/garbageCollection.js.map +1 -1
- package/lib/gc/gcConfigs.d.ts.map +1 -1
- package/lib/gc/gcConfigs.js +37 -40
- package/lib/gc/gcConfigs.js.map +1 -1
- package/lib/gc/gcDefinitions.d.ts +121 -46
- package/lib/gc/gcDefinitions.d.ts.map +1 -1
- package/lib/gc/gcDefinitions.js +25 -17
- package/lib/gc/gcDefinitions.js.map +1 -1
- package/lib/gc/gcHelpers.d.ts +18 -25
- package/lib/gc/gcHelpers.d.ts.map +1 -1
- package/lib/gc/gcHelpers.js +27 -43
- package/lib/gc/gcHelpers.js.map +1 -1
- package/lib/gc/gcTelemetry.d.ts +0 -5
- package/lib/gc/gcTelemetry.d.ts.map +1 -1
- package/lib/gc/gcTelemetry.js +15 -43
- package/lib/gc/gcTelemetry.js.map +1 -1
- package/lib/gc/gcUnreferencedStateTracker.d.ts +11 -5
- package/lib/gc/gcUnreferencedStateTracker.d.ts.map +1 -1
- package/lib/gc/gcUnreferencedStateTracker.js +43 -19
- 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 +14 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +15 -1
- package/lib/index.js.map +1 -1
- package/lib/messageTypes.d.ts +16 -11
- package/lib/messageTypes.d.ts.map +1 -1
- package/lib/messageTypes.js +6 -1
- package/lib/messageTypes.js.map +1 -1
- package/lib/metadata.d.ts +6 -0
- package/lib/metadata.d.ts.map +1 -1
- package/lib/metadata.js.map +1 -1
- package/lib/opLifecycle/definitions.d.ts +1 -1
- package/lib/opLifecycle/definitions.js.map +1 -1
- package/lib/opLifecycle/opGroupingManager.d.ts.map +1 -1
- package/lib/opLifecycle/opGroupingManager.js +10 -1
- package/lib/opLifecycle/opGroupingManager.js.map +1 -1
- package/lib/opLifecycle/outbox.d.ts +2 -0
- package/lib/opLifecycle/outbox.d.ts.map +1 -1
- package/lib/opLifecycle/outbox.js +21 -0
- package/lib/opLifecycle/outbox.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 -11
- package/lib/pendingStateManager.js.map +1 -1
- package/lib/scheduleManager.d.ts +1 -0
- package/lib/scheduleManager.d.ts.map +1 -1
- package/lib/summary/orderedClientElection.d.ts +1 -1
- package/lib/summary/orderedClientElection.js.map +1 -1
- package/lib/summary/runWhileConnectedCoordinator.d.ts +2 -2
- package/lib/summary/runWhileConnectedCoordinator.js +1 -1
- package/lib/summary/runWhileConnectedCoordinator.js.map +1 -1
- package/lib/summary/summarizer.d.ts +1 -1
- package/lib/summary/summarizer.js +1 -1
- package/lib/summary/summarizer.js.map +1 -1
- package/lib/summary/summarizerTypes.d.ts +30 -30
- package/lib/summary/summarizerTypes.js.map +1 -1
- package/lib/summary/summaryCollection.d.ts +10 -10
- package/lib/summary/summaryCollection.js +1 -1
- package/lib/summary/summaryCollection.js.map +1 -1
- package/lib/summary/summaryFormat.d.ts +3 -3
- package/lib/summary/summaryFormat.js.map +1 -1
- package/package.json +56 -29
- package/src/blobManager.ts +5 -5
- package/src/connectionTelemetry.ts +1 -1
- package/src/containerRuntime.ts +113 -90
- package/src/dataStoreRegistry.ts +1 -1
- package/src/dataStores.ts +140 -69
- package/src/gc/garbageCollection.md +14 -15
- package/src/gc/garbageCollection.ts +256 -96
- package/src/gc/gcConfigs.ts +50 -52
- package/src/gc/gcDefinitions.ts +137 -52
- package/src/gc/gcHelpers.ts +31 -52
- package/src/gc/gcTelemetry.ts +16 -57
- package/src/gc/gcUnreferencedStateTracker.ts +61 -22
- package/src/gc/index.ts +6 -4
- package/src/index.ts +19 -1
- package/src/messageTypes.ts +21 -11
- package/src/metadata.ts +7 -0
- package/src/opLifecycle/definitions.ts +1 -1
- package/src/opLifecycle/opGroupingManager.ts +10 -1
- package/src/opLifecycle/outbox.ts +34 -0
- package/src/packageVersion.ts +1 -1
- package/src/pendingStateManager.ts +3 -13
- package/src/summary/orderedClientElection.ts +1 -1
- package/src/summary/runWhileConnectedCoordinator.ts +2 -2
- package/src/summary/summarizer.ts +1 -1
- package/src/summary/summarizerTypes.ts +30 -30
- package/src/summary/summaryCollection.ts +10 -10
- package/src/summary/summaryFormat.ts +3 -3
- package/dist/id-compressor/appendOnlySortedMap.d.ts +0 -124
- package/dist/id-compressor/appendOnlySortedMap.d.ts.map +0 -1
- package/dist/id-compressor/appendOnlySortedMap.js +0 -318
- package/dist/id-compressor/appendOnlySortedMap.js.map +0 -1
- package/dist/id-compressor/finalSpace.d.ts +0 -29
- package/dist/id-compressor/finalSpace.d.ts.map +0 -1
- package/dist/id-compressor/finalSpace.js +0 -62
- package/dist/id-compressor/finalSpace.js.map +0 -1
- package/dist/id-compressor/idCompressor.d.ts +0 -54
- package/dist/id-compressor/idCompressor.d.ts.map +0 -1
- package/dist/id-compressor/idCompressor.js +0 -495
- package/dist/id-compressor/idCompressor.js.map +0 -1
- package/dist/id-compressor/identifiers.d.ts +0 -32
- package/dist/id-compressor/identifiers.d.ts.map +0 -1
- package/dist/id-compressor/identifiers.js +0 -15
- package/dist/id-compressor/identifiers.js.map +0 -1
- package/dist/id-compressor/index.d.ts +0 -13
- package/dist/id-compressor/index.d.ts.map +0 -1
- package/dist/id-compressor/index.js +0 -32
- package/dist/id-compressor/index.js.map +0 -1
- package/dist/id-compressor/persistanceUtilities.d.ts +0 -22
- package/dist/id-compressor/persistanceUtilities.d.ts.map +0 -1
- package/dist/id-compressor/persistanceUtilities.js +0 -43
- package/dist/id-compressor/persistanceUtilities.js.map +0 -1
- package/dist/id-compressor/sessionSpaceNormalizer.d.ts +0 -46
- package/dist/id-compressor/sessionSpaceNormalizer.d.ts.map +0 -1
- package/dist/id-compressor/sessionSpaceNormalizer.js +0 -80
- package/dist/id-compressor/sessionSpaceNormalizer.js.map +0 -1
- package/dist/id-compressor/sessions.d.ts +0 -115
- package/dist/id-compressor/sessions.d.ts.map +0 -1
- package/dist/id-compressor/sessions.js +0 -305
- package/dist/id-compressor/sessions.js.map +0 -1
- package/dist/id-compressor/utilities.d.ts +0 -52
- package/dist/id-compressor/utilities.d.ts.map +0 -1
- package/dist/id-compressor/utilities.js +0 -169
- package/dist/id-compressor/utilities.js.map +0 -1
- package/lib/id-compressor/appendOnlySortedMap.d.ts +0 -124
- package/lib/id-compressor/appendOnlySortedMap.d.ts.map +0 -1
- package/lib/id-compressor/appendOnlySortedMap.js +0 -314
- package/lib/id-compressor/appendOnlySortedMap.js.map +0 -1
- package/lib/id-compressor/finalSpace.d.ts +0 -29
- package/lib/id-compressor/finalSpace.d.ts.map +0 -1
- package/lib/id-compressor/finalSpace.js +0 -58
- package/lib/id-compressor/finalSpace.js.map +0 -1
- package/lib/id-compressor/idCompressor.d.ts +0 -54
- package/lib/id-compressor/idCompressor.d.ts.map +0 -1
- package/lib/id-compressor/idCompressor.js +0 -491
- package/lib/id-compressor/idCompressor.js.map +0 -1
- package/lib/id-compressor/identifiers.d.ts +0 -32
- package/lib/id-compressor/identifiers.d.ts.map +0 -1
- package/lib/id-compressor/identifiers.js +0 -11
- package/lib/id-compressor/identifiers.js.map +0 -1
- package/lib/id-compressor/index.d.ts +0 -13
- package/lib/id-compressor/index.d.ts.map +0 -1
- package/lib/id-compressor/index.js +0 -13
- package/lib/id-compressor/index.js.map +0 -1
- package/lib/id-compressor/persistanceUtilities.d.ts +0 -22
- package/lib/id-compressor/persistanceUtilities.d.ts.map +0 -1
- package/lib/id-compressor/persistanceUtilities.js +0 -34
- package/lib/id-compressor/persistanceUtilities.js.map +0 -1
- package/lib/id-compressor/sessionSpaceNormalizer.d.ts +0 -46
- package/lib/id-compressor/sessionSpaceNormalizer.d.ts.map +0 -1
- package/lib/id-compressor/sessionSpaceNormalizer.js +0 -76
- package/lib/id-compressor/sessionSpaceNormalizer.js.map +0 -1
- package/lib/id-compressor/sessions.d.ts +0 -115
- package/lib/id-compressor/sessions.d.ts.map +0 -1
- package/lib/id-compressor/sessions.js +0 -290
- package/lib/id-compressor/sessions.js.map +0 -1
- package/lib/id-compressor/utilities.d.ts +0 -52
- package/lib/id-compressor/utilities.d.ts.map +0 -1
- package/lib/id-compressor/utilities.js +0 -151
- package/lib/id-compressor/utilities.js.map +0 -1
- package/src/id-compressor/README.md +0 -3
- package/src/id-compressor/appendOnlySortedMap.ts +0 -366
- package/src/id-compressor/finalSpace.ts +0 -67
- package/src/id-compressor/idCompressor.ts +0 -630
- package/src/id-compressor/identifiers.ts +0 -42
- package/src/id-compressor/index.ts +0 -26
- package/src/id-compressor/persistanceUtilities.ts +0 -58
- package/src/id-compressor/sessionSpaceNormalizer.ts +0 -83
- package/src/id-compressor/sessions.ts +0 -405
- package/src/id-compressor/utilities.ts +0 -190
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
+
import { assertIsStableId } from '@fluidframework/id-compressor';
|
|
7
8
|
import { AttachState } from '@fluidframework/container-definitions';
|
|
8
9
|
import { ContainerWarning } from '@fluidframework/container-definitions';
|
|
9
10
|
import { FluidDataStoreRegistryEntry } from '@fluidframework/runtime-definitions';
|
|
10
11
|
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
11
12
|
import { FlushMode } from '@fluidframework/runtime-definitions';
|
|
13
|
+
import { generateStableId } from '@fluidframework/id-compressor';
|
|
12
14
|
import { IAudience } from '@fluidframework/container-definitions';
|
|
13
15
|
import { IClientDetails } from '@fluidframework/protocol-definitions';
|
|
14
16
|
import { IContainerContext } from '@fluidframework/container-definitions';
|
|
@@ -29,8 +31,8 @@ import { IFluidHandleContext } from '@fluidframework/core-interfaces';
|
|
|
29
31
|
import { IFluidRouter } from '@fluidframework/core-interfaces';
|
|
30
32
|
import { IGarbageCollectionData } from '@fluidframework/runtime-definitions';
|
|
31
33
|
import { IGetPendingLocalStateProps } from '@fluidframework/container-definitions';
|
|
32
|
-
import { IIdCompressor } from '@fluidframework/
|
|
33
|
-
import { IIdCompressorCore } from '@fluidframework/
|
|
34
|
+
import type { IIdCompressor } from '@fluidframework/id-compressor';
|
|
35
|
+
import type { IIdCompressorCore } from '@fluidframework/id-compressor';
|
|
34
36
|
import { ILoader } from '@fluidframework/container-definitions';
|
|
35
37
|
import { ILoaderOptions } from '@fluidframework/container-definitions';
|
|
36
38
|
import { IProvideFluidHandleContext } from '@fluidframework/core-interfaces';
|
|
@@ -40,6 +42,7 @@ import { IResponse } from '@fluidframework/core-interfaces';
|
|
|
40
42
|
import { IRuntime } from '@fluidframework/container-definitions';
|
|
41
43
|
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
42
44
|
import { ISignalMessage } from '@fluidframework/protocol-definitions';
|
|
45
|
+
import { isStableId } from '@fluidframework/id-compressor';
|
|
43
46
|
import { ISummaryAck } from '@fluidframework/protocol-definitions';
|
|
44
47
|
import { ISummaryContent } from '@fluidframework/protocol-definitions';
|
|
45
48
|
import { ISummaryNack } from '@fluidframework/protocol-definitions';
|
|
@@ -50,20 +53,18 @@ import { ITelemetryContext } from '@fluidframework/runtime-definitions';
|
|
|
50
53
|
import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
|
|
51
54
|
import { MessageType } from '@fluidframework/protocol-definitions';
|
|
52
55
|
import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions';
|
|
53
|
-
import { StableId } from '@fluidframework/runtime-definitions';
|
|
54
56
|
import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
55
57
|
|
|
56
|
-
// @
|
|
58
|
+
// @internal
|
|
57
59
|
export const agentSchedulerId = "_scheduler";
|
|
58
60
|
|
|
59
|
-
// @
|
|
61
|
+
// @internal
|
|
60
62
|
export const AllowInactiveRequestHeaderKey = "allowInactive";
|
|
61
63
|
|
|
62
|
-
// @
|
|
64
|
+
// @internal
|
|
63
65
|
export const AllowTombstoneRequestHeaderKey = "allowTombstone";
|
|
64
66
|
|
|
65
|
-
|
|
66
|
-
export function assertIsStableId(stableId: string): StableId;
|
|
67
|
+
export { assertIsStableId }
|
|
67
68
|
|
|
68
69
|
// @internal
|
|
69
70
|
export type CompatModeBehavior =
|
|
@@ -72,13 +73,13 @@ export type CompatModeBehavior =
|
|
|
72
73
|
/** Fail processing immediately. (The container will close) */
|
|
73
74
|
| "FailToProcess";
|
|
74
75
|
|
|
75
|
-
// @
|
|
76
|
+
// @alpha
|
|
76
77
|
export enum CompressionAlgorithms {
|
|
77
78
|
// (undocumented)
|
|
78
79
|
lz4 = "lz4"
|
|
79
80
|
}
|
|
80
81
|
|
|
81
|
-
// @
|
|
82
|
+
// @internal (undocumented)
|
|
82
83
|
export enum ContainerMessageType {
|
|
83
84
|
// (undocumented)
|
|
84
85
|
Alias = "alias",
|
|
@@ -90,14 +91,14 @@ export enum ContainerMessageType {
|
|
|
90
91
|
ChunkedOp = "chunkedOp",
|
|
91
92
|
// (undocumented)
|
|
92
93
|
FluidDataStoreOp = "component",
|
|
94
|
+
GC = "GC",
|
|
93
95
|
IdAllocation = "idAllocation",
|
|
94
96
|
// (undocumented)
|
|
95
97
|
Rejoin = "rejoin"
|
|
96
98
|
}
|
|
97
99
|
|
|
98
|
-
// @
|
|
100
|
+
// @alpha
|
|
99
101
|
export class ContainerRuntime extends TypedEventEmitter<IContainerRuntimeEvents & ISummarizerEvents> implements IContainerRuntime, IRuntime, ISummarizerRuntime, ISummarizerInternalsProvider, IProvideFluidHandleContext {
|
|
100
|
-
// @internal
|
|
101
102
|
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, idCompressor: (IIdCompressor & IIdCompressorCore) | undefined, provideEntryPoint: (containerRuntime: IContainerRuntime) => Promise<FluidObject>, requestHandler?: ((request: IRequest, runtime: IContainerRuntime) => Promise<IResponse>) | undefined, summaryConfiguration?: ISummaryConfiguration);
|
|
102
103
|
// (undocumented)
|
|
103
104
|
protected addContainerStateToSummary(summaryTree: ISummaryTreeWithStats, fullTree: boolean, trackState: boolean, telemetryContext?: ITelemetryContext): void;
|
|
@@ -119,16 +120,16 @@ export class ContainerRuntime extends TypedEventEmitter<IContainerRuntimeEvents
|
|
|
119
120
|
get connected(): boolean;
|
|
120
121
|
// (undocumented)
|
|
121
122
|
createDataStore(pkg: string | string[]): Promise<IDataStore>;
|
|
122
|
-
// @
|
|
123
|
+
// @deprecated (undocumented)
|
|
123
124
|
_createDataStoreWithProps(pkg: string | string[], props?: any, id?: string): Promise<IDataStore>;
|
|
124
125
|
// (undocumented)
|
|
125
126
|
createDetachedDataStore(pkg: Readonly<string[]>): IFluidDataStoreContextDetached;
|
|
126
127
|
// (undocumented)
|
|
127
128
|
createDetachedRootDataStore(pkg: Readonly<string[]>, rootDataStoreId: string): IFluidDataStoreContextDetached;
|
|
128
129
|
createSummary(blobRedirectTable?: Map<string, string>, telemetryContext?: ITelemetryContext): ISummaryTree;
|
|
129
|
-
deleteSweepReadyNodes(sweepReadyRoutes: string[]): string[];
|
|
130
|
+
deleteSweepReadyNodes(sweepReadyRoutes: readonly string[]): readonly string[];
|
|
130
131
|
// @deprecated (undocumented)
|
|
131
|
-
deleteUnusedNodes(unusedRoutes: string[]): string[];
|
|
132
|
+
deleteUnusedNodes(unusedRoutes: readonly string[]): string[];
|
|
132
133
|
readonly deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;
|
|
133
134
|
// (undocumented)
|
|
134
135
|
dispose(error?: Error): void;
|
|
@@ -226,9 +227,9 @@ export class ContainerRuntime extends TypedEventEmitter<IContainerRuntimeEvents
|
|
|
226
227
|
summarizeOnDemand(options: IOnDemandSummarizeOptions): ISummarizeResults;
|
|
227
228
|
get summarizerClientId(): string | undefined;
|
|
228
229
|
updateStateBeforeGC(): Promise<void>;
|
|
229
|
-
updateTombstonedRoutes(tombstonedRoutes: string[]): void;
|
|
230
|
-
updateUnusedRoutes(unusedRoutes: string[]): void;
|
|
231
|
-
updateUsedRoutes(usedRoutes: string[]): void;
|
|
230
|
+
updateTombstonedRoutes(tombstonedRoutes: readonly string[]): void;
|
|
231
|
+
updateUnusedRoutes(unusedRoutes: readonly string[]): void;
|
|
232
|
+
updateUsedRoutes(usedRoutes: readonly string[]): void;
|
|
232
233
|
// (undocumented)
|
|
233
234
|
uploadBlob(blob: ArrayBufferLike, signal?: AbortSignal): Promise<IFluidHandle<ArrayBufferLike>>;
|
|
234
235
|
}
|
|
@@ -240,10 +241,10 @@ export interface ContainerRuntimeMessage {
|
|
|
240
241
|
type: ContainerMessageType;
|
|
241
242
|
}
|
|
242
243
|
|
|
243
|
-
// @
|
|
244
|
+
// @internal (undocumented)
|
|
244
245
|
export const DefaultSummaryConfiguration: ISummaryConfiguration;
|
|
245
246
|
|
|
246
|
-
// @
|
|
247
|
+
// @alpha (undocumented)
|
|
247
248
|
export type EnqueueSummarizeResult = (ISummarizeResults & {
|
|
248
249
|
readonly alreadyEnqueued?: undefined;
|
|
249
250
|
}) | (ISummarizeResults & {
|
|
@@ -254,7 +255,7 @@ export type EnqueueSummarizeResult = (ISummarizeResults & {
|
|
|
254
255
|
readonly overridden?: undefined;
|
|
255
256
|
};
|
|
256
257
|
|
|
257
|
-
// @
|
|
258
|
+
// @internal (undocumented)
|
|
258
259
|
export class FluidDataStoreRegistry implements IFluidDataStoreRegistry {
|
|
259
260
|
constructor(namedEntries: NamedFluidDataStoreRegistryEntries);
|
|
260
261
|
// (undocumented)
|
|
@@ -263,13 +264,15 @@ export class FluidDataStoreRegistry implements IFluidDataStoreRegistry {
|
|
|
263
264
|
get IFluidDataStoreRegistry(): this;
|
|
264
265
|
}
|
|
265
266
|
|
|
266
|
-
// @
|
|
267
|
-
export
|
|
268
|
-
|
|
269
|
-
tombstoneGeneration?:
|
|
270
|
-
}
|
|
267
|
+
// @alpha (undocumented)
|
|
268
|
+
export type GCFeatureMatrix = {
|
|
269
|
+
gcGeneration?: number;
|
|
270
|
+
tombstoneGeneration?: undefined;
|
|
271
|
+
} | {
|
|
272
|
+
tombstoneGeneration: number;
|
|
273
|
+
};
|
|
271
274
|
|
|
272
|
-
// @
|
|
275
|
+
// @alpha
|
|
273
276
|
export const GCNodeType: {
|
|
274
277
|
DataStore: string;
|
|
275
278
|
SubDataStore: string;
|
|
@@ -277,16 +280,15 @@ export const GCNodeType: {
|
|
|
277
280
|
Other: string;
|
|
278
281
|
};
|
|
279
282
|
|
|
280
|
-
// @
|
|
283
|
+
// @alpha (undocumented)
|
|
281
284
|
export type GCNodeType = (typeof GCNodeType)[keyof typeof GCNodeType];
|
|
282
285
|
|
|
283
|
-
// @
|
|
286
|
+
// @alpha (undocumented)
|
|
284
287
|
export type GCVersion = number;
|
|
285
288
|
|
|
286
|
-
|
|
287
|
-
export function generateStableId(): StableId;
|
|
289
|
+
export { generateStableId }
|
|
288
290
|
|
|
289
|
-
// @
|
|
291
|
+
// @internal
|
|
290
292
|
export interface IAckedSummary {
|
|
291
293
|
// (undocumented)
|
|
292
294
|
readonly summaryAck: ISummaryAckMessage;
|
|
@@ -294,7 +296,7 @@ export interface IAckedSummary {
|
|
|
294
296
|
readonly summaryOp: ISummaryOpMessage;
|
|
295
297
|
}
|
|
296
298
|
|
|
297
|
-
// @
|
|
299
|
+
// @alpha (undocumented)
|
|
298
300
|
export interface IAckSummaryResult {
|
|
299
301
|
// (undocumented)
|
|
300
302
|
readonly ackNackDuration: number;
|
|
@@ -302,7 +304,7 @@ export interface IAckSummaryResult {
|
|
|
302
304
|
readonly summaryAckOp: ISummaryAckMessage;
|
|
303
305
|
}
|
|
304
306
|
|
|
305
|
-
// @
|
|
307
|
+
// @alpha
|
|
306
308
|
export interface IBaseSummarizeResult {
|
|
307
309
|
readonly error: any;
|
|
308
310
|
// (undocumented)
|
|
@@ -312,7 +314,7 @@ export interface IBaseSummarizeResult {
|
|
|
312
314
|
readonly stage: "base";
|
|
313
315
|
}
|
|
314
316
|
|
|
315
|
-
// @
|
|
317
|
+
// @alpha
|
|
316
318
|
export interface IBlobManagerLoadInfo {
|
|
317
319
|
// (undocumented)
|
|
318
320
|
ids?: string[];
|
|
@@ -320,7 +322,7 @@ export interface IBlobManagerLoadInfo {
|
|
|
320
322
|
redirectTable?: [string, string][];
|
|
321
323
|
}
|
|
322
324
|
|
|
323
|
-
// @
|
|
325
|
+
// @alpha (undocumented)
|
|
324
326
|
export interface IBroadcastSummaryResult {
|
|
325
327
|
// (undocumented)
|
|
326
328
|
readonly broadcastDuration: number;
|
|
@@ -328,19 +330,19 @@ export interface IBroadcastSummaryResult {
|
|
|
328
330
|
readonly summarizeOp: ISummaryOpMessage;
|
|
329
331
|
}
|
|
330
332
|
|
|
331
|
-
// @
|
|
333
|
+
// @internal
|
|
332
334
|
export interface ICancellableSummarizerController extends ISummaryCancellationToken {
|
|
333
335
|
// (undocumented)
|
|
334
336
|
stop(reason: SummarizerStopReason): void;
|
|
335
337
|
}
|
|
336
338
|
|
|
337
|
-
// @
|
|
339
|
+
// @alpha
|
|
338
340
|
export interface ICancellationToken<T> {
|
|
339
341
|
readonly cancelled: boolean;
|
|
340
342
|
readonly waitCancelled: Promise<T>;
|
|
341
343
|
}
|
|
342
344
|
|
|
343
|
-
// @
|
|
345
|
+
// @internal (undocumented)
|
|
344
346
|
export interface IChunkedOp {
|
|
345
347
|
// (undocumented)
|
|
346
348
|
chunkId: number;
|
|
@@ -356,7 +358,7 @@ export interface IChunkedOp {
|
|
|
356
358
|
totalChunks: number;
|
|
357
359
|
}
|
|
358
360
|
|
|
359
|
-
// @
|
|
361
|
+
// @internal
|
|
360
362
|
export interface IClientSummaryWatcher extends IDisposable {
|
|
361
363
|
// (undocumented)
|
|
362
364
|
waitFlushed(): Promise<IAckedSummary | undefined>;
|
|
@@ -364,13 +366,13 @@ export interface IClientSummaryWatcher extends IDisposable {
|
|
|
364
366
|
watchSummary(clientSequenceNumber: number): ISummary;
|
|
365
367
|
}
|
|
366
368
|
|
|
367
|
-
// @
|
|
369
|
+
// @alpha
|
|
368
370
|
export interface ICompressionRuntimeOptions {
|
|
369
371
|
readonly compressionAlgorithm: CompressionAlgorithms;
|
|
370
372
|
readonly minimumBatchSizeInBytes: number;
|
|
371
373
|
}
|
|
372
374
|
|
|
373
|
-
// @
|
|
375
|
+
// @alpha (undocumented)
|
|
374
376
|
export interface IConnectableRuntime {
|
|
375
377
|
// (undocumented)
|
|
376
378
|
readonly clientId: string | undefined;
|
|
@@ -387,7 +389,7 @@ export interface IContainerRuntimeMessageCompatDetails {
|
|
|
387
389
|
behavior: CompatModeBehavior;
|
|
388
390
|
}
|
|
389
391
|
|
|
390
|
-
// @
|
|
392
|
+
// @alpha (undocumented)
|
|
391
393
|
export interface IContainerRuntimeMetadata extends ICreateContainerMetadata, IGCMetadata {
|
|
392
394
|
readonly disableIsolatedChannels?: true;
|
|
393
395
|
readonly idCompressorEnabled?: boolean;
|
|
@@ -398,7 +400,7 @@ export interface IContainerRuntimeMetadata extends ICreateContainerMetadata, IGC
|
|
|
398
400
|
readonly telemetryDocumentId?: string;
|
|
399
401
|
}
|
|
400
402
|
|
|
401
|
-
// @
|
|
403
|
+
// @alpha
|
|
402
404
|
export interface IContainerRuntimeOptions {
|
|
403
405
|
readonly chunkSizeInBytes?: number;
|
|
404
406
|
readonly compressionOptions?: ICompressionRuntimeOptions;
|
|
@@ -414,19 +416,19 @@ export interface IContainerRuntimeOptions {
|
|
|
414
416
|
readonly summaryOptions?: ISummaryRuntimeOptions;
|
|
415
417
|
}
|
|
416
418
|
|
|
417
|
-
// @
|
|
419
|
+
// @alpha (undocumented)
|
|
418
420
|
export interface ICreateContainerMetadata {
|
|
419
421
|
createContainerRuntimeVersion?: string;
|
|
420
422
|
createContainerTimestamp?: number;
|
|
421
423
|
}
|
|
422
424
|
|
|
423
|
-
// @
|
|
425
|
+
// @alpha
|
|
424
426
|
export interface IEnqueueSummarizeOptions extends IOnDemandSummarizeOptions {
|
|
425
427
|
readonly afterSequenceNumber?: number;
|
|
426
428
|
readonly override?: boolean;
|
|
427
429
|
}
|
|
428
430
|
|
|
429
|
-
// @
|
|
431
|
+
// @alpha (undocumented)
|
|
430
432
|
export interface IGCMetadata {
|
|
431
433
|
readonly gcFeature?: GCVersion;
|
|
432
434
|
readonly gcFeatureMatrix?: GCFeatureMatrix;
|
|
@@ -436,29 +438,22 @@ export interface IGCMetadata {
|
|
|
436
438
|
readonly sweepTimeoutMs?: number;
|
|
437
439
|
}
|
|
438
440
|
|
|
439
|
-
// @
|
|
441
|
+
// @alpha (undocumented)
|
|
440
442
|
export interface IGCRuntimeOptions {
|
|
441
443
|
[key: string]: any;
|
|
442
444
|
disableGC?: boolean;
|
|
445
|
+
enableGCSweep?: true;
|
|
443
446
|
gcAllowed?: boolean;
|
|
444
447
|
runFullGC?: boolean;
|
|
445
448
|
sessionExpiryTimeoutMs?: number;
|
|
449
|
+
sweepGracePeriodMs?: number;
|
|
446
450
|
}
|
|
447
451
|
|
|
448
|
-
// @
|
|
449
|
-
export interface IGCStats {
|
|
450
|
-
attachmentBlobCount: number;
|
|
451
|
-
dataStoreCount: number;
|
|
452
|
-
nodeCount: number;
|
|
453
|
-
unrefAttachmentBlobCount: number;
|
|
454
|
-
unrefDataStoreCount: number;
|
|
455
|
-
unrefNodeCount: number;
|
|
456
|
-
updatedAttachmentBlobCount: number;
|
|
457
|
-
updatedDataStoreCount: number;
|
|
458
|
-
updatedNodeCount: number;
|
|
452
|
+
// @alpha
|
|
453
|
+
export interface IGCStats extends IMarkPhaseStats, ISweepPhaseStats {
|
|
459
454
|
}
|
|
460
455
|
|
|
461
|
-
// @
|
|
456
|
+
// @alpha
|
|
462
457
|
export interface IGeneratedSummaryStats extends ISummaryStats {
|
|
463
458
|
readonly dataStoreCount: number;
|
|
464
459
|
readonly gcBlobNodeCount?: number;
|
|
@@ -468,7 +463,7 @@ export interface IGeneratedSummaryStats extends ISummaryStats {
|
|
|
468
463
|
readonly summaryNumber: number;
|
|
469
464
|
}
|
|
470
465
|
|
|
471
|
-
// @
|
|
466
|
+
// @alpha
|
|
472
467
|
export interface IGenerateSummaryTreeResult extends Omit<IBaseSummarizeResult, "stage"> {
|
|
473
468
|
readonly forcedFullTree: boolean;
|
|
474
469
|
readonly generateDuration: number;
|
|
@@ -478,7 +473,20 @@ export interface IGenerateSummaryTreeResult extends Omit<IBaseSummarizeResult, "
|
|
|
478
473
|
readonly summaryTree: ISummaryTree;
|
|
479
474
|
}
|
|
480
475
|
|
|
481
|
-
// @
|
|
476
|
+
// @alpha
|
|
477
|
+
export interface IMarkPhaseStats {
|
|
478
|
+
attachmentBlobCount: number;
|
|
479
|
+
dataStoreCount: number;
|
|
480
|
+
nodeCount: number;
|
|
481
|
+
unrefAttachmentBlobCount: number;
|
|
482
|
+
unrefDataStoreCount: number;
|
|
483
|
+
unrefNodeCount: number;
|
|
484
|
+
updatedAttachmentBlobCount: number;
|
|
485
|
+
updatedDataStoreCount: number;
|
|
486
|
+
updatedNodeCount: number;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
// @alpha (undocumented)
|
|
482
490
|
export interface INackSummaryResult extends IRetriableFailureResult {
|
|
483
491
|
// (undocumented)
|
|
484
492
|
readonly ackNackDuration: number;
|
|
@@ -486,15 +494,15 @@ export interface INackSummaryResult extends IRetriableFailureResult {
|
|
|
486
494
|
readonly summaryNackOp: ISummaryNackMessage;
|
|
487
495
|
}
|
|
488
496
|
|
|
489
|
-
// @
|
|
497
|
+
// @internal
|
|
490
498
|
export const InactiveResponseHeaderKey = "isInactive";
|
|
491
499
|
|
|
492
|
-
// @
|
|
500
|
+
// @alpha (undocumented)
|
|
493
501
|
export interface IOnDemandSummarizeOptions extends ISummarizeOptions {
|
|
494
502
|
readonly reason: string;
|
|
495
503
|
}
|
|
496
504
|
|
|
497
|
-
// @
|
|
505
|
+
// @alpha
|
|
498
506
|
export interface IRefreshSummaryAckOptions {
|
|
499
507
|
readonly ackHandle: string;
|
|
500
508
|
readonly proposalHandle: string | undefined;
|
|
@@ -502,26 +510,25 @@ export interface IRefreshSummaryAckOptions {
|
|
|
502
510
|
readonly summaryRefSeq: number;
|
|
503
511
|
}
|
|
504
512
|
|
|
505
|
-
// @
|
|
513
|
+
// @alpha
|
|
506
514
|
export interface IRetriableFailureResult {
|
|
507
515
|
// (undocumented)
|
|
508
516
|
readonly retryAfterSeconds?: number;
|
|
509
517
|
}
|
|
510
518
|
|
|
511
|
-
// @
|
|
519
|
+
// @alpha
|
|
512
520
|
export interface ISerializedElection {
|
|
513
521
|
readonly electedClientId: string | undefined;
|
|
514
522
|
readonly electedParentId: string | undefined;
|
|
515
523
|
readonly electionSequenceNumber: number;
|
|
516
524
|
}
|
|
517
525
|
|
|
518
|
-
// @
|
|
526
|
+
// @internal @deprecated (undocumented)
|
|
519
527
|
export function isRuntimeMessage(message: ISequencedDocumentMessage): boolean;
|
|
520
528
|
|
|
521
|
-
|
|
522
|
-
export function isStableId(str: string): str is StableId;
|
|
529
|
+
export { isStableId }
|
|
523
530
|
|
|
524
|
-
// @
|
|
531
|
+
// @alpha
|
|
525
532
|
export interface ISubmitSummaryOpResult extends Omit<IUploadSummaryResult, "stage" | "error"> {
|
|
526
533
|
readonly clientSequenceNumber: number;
|
|
527
534
|
// (undocumented)
|
|
@@ -529,14 +536,14 @@ export interface ISubmitSummaryOpResult extends Omit<IUploadSummaryResult, "stag
|
|
|
529
536
|
readonly submitOpDuration: number;
|
|
530
537
|
}
|
|
531
538
|
|
|
532
|
-
// @
|
|
539
|
+
// @alpha (undocumented)
|
|
533
540
|
export interface ISubmitSummaryOptions extends ISummarizeOptions {
|
|
534
541
|
readonly cancellationToken: ISummaryCancellationToken;
|
|
535
542
|
readonly finalAttempt?: boolean;
|
|
536
543
|
readonly summaryLogger: ITelemetryLoggerExt;
|
|
537
544
|
}
|
|
538
545
|
|
|
539
|
-
// @
|
|
546
|
+
// @alpha (undocumented)
|
|
540
547
|
export interface ISummarizeEventProps {
|
|
541
548
|
// (undocumented)
|
|
542
549
|
currentAttempt: number;
|
|
@@ -548,14 +555,14 @@ export interface ISummarizeEventProps {
|
|
|
548
555
|
result: "success" | "failure" | "canceled";
|
|
549
556
|
}
|
|
550
557
|
|
|
551
|
-
// @
|
|
558
|
+
// @alpha
|
|
552
559
|
export interface ISummarizeOptions {
|
|
553
560
|
readonly fullTree?: boolean;
|
|
554
561
|
// @deprecated
|
|
555
562
|
readonly refreshLatestAck?: boolean;
|
|
556
563
|
}
|
|
557
564
|
|
|
558
|
-
// @
|
|
565
|
+
// @internal (undocumented)
|
|
559
566
|
export interface ISummarizer extends IEventProvider<ISummarizerEvents> {
|
|
560
567
|
// (undocumented)
|
|
561
568
|
close(): void;
|
|
@@ -568,26 +575,26 @@ export interface ISummarizer extends IEventProvider<ISummarizerEvents> {
|
|
|
568
575
|
summarizeOnDemand(options: IOnDemandSummarizeOptions): ISummarizeResults;
|
|
569
576
|
}
|
|
570
577
|
|
|
571
|
-
// @
|
|
578
|
+
// @alpha (undocumented)
|
|
572
579
|
export interface ISummarizeResults {
|
|
573
580
|
readonly receivedSummaryAckOrNack: Promise<SummarizeResultPart<IAckSummaryResult, INackSummaryResult>>;
|
|
574
581
|
readonly summaryOpBroadcasted: Promise<SummarizeResultPart<IBroadcastSummaryResult>>;
|
|
575
582
|
readonly summarySubmitted: Promise<SummarizeResultPart<SubmitSummaryResult, SubmitSummaryFailureData>>;
|
|
576
583
|
}
|
|
577
584
|
|
|
578
|
-
// @
|
|
585
|
+
// @alpha (undocumented)
|
|
579
586
|
export interface ISummarizerEvents extends IEvent {
|
|
580
587
|
// (undocumented)
|
|
581
588
|
(event: "summarize", listener: (props: ISummarizeEventProps) => void): any;
|
|
582
589
|
}
|
|
583
590
|
|
|
584
|
-
// @
|
|
591
|
+
// @alpha (undocumented)
|
|
585
592
|
export interface ISummarizerInternalsProvider {
|
|
586
593
|
refreshLatestSummaryAck(options: IRefreshSummaryAckOptions): Promise<void>;
|
|
587
594
|
submitSummary(options: ISubmitSummaryOptions): Promise<SubmitSummaryResult>;
|
|
588
595
|
}
|
|
589
596
|
|
|
590
|
-
// @
|
|
597
|
+
// @alpha (undocumented)
|
|
591
598
|
export interface ISummarizerRuntime extends IConnectableRuntime {
|
|
592
599
|
// (undocumented)
|
|
593
600
|
closeFn(): void;
|
|
@@ -604,7 +611,7 @@ export interface ISummarizerRuntime extends IConnectableRuntime {
|
|
|
604
611
|
readonly summarizerClientId: string | undefined;
|
|
605
612
|
}
|
|
606
613
|
|
|
607
|
-
// @
|
|
614
|
+
// @internal (undocumented)
|
|
608
615
|
export interface ISummarizingWarning extends ContainerWarning {
|
|
609
616
|
// (undocumented)
|
|
610
617
|
readonly errorType: "summarizingError";
|
|
@@ -612,7 +619,7 @@ export interface ISummarizingWarning extends ContainerWarning {
|
|
|
612
619
|
readonly logged: boolean;
|
|
613
620
|
}
|
|
614
621
|
|
|
615
|
-
// @
|
|
622
|
+
// @internal
|
|
616
623
|
export interface ISummary {
|
|
617
624
|
// (undocumented)
|
|
618
625
|
readonly clientId: string;
|
|
@@ -624,7 +631,7 @@ export interface ISummary {
|
|
|
624
631
|
waitBroadcast(): Promise<ISummaryOpMessage>;
|
|
625
632
|
}
|
|
626
633
|
|
|
627
|
-
// @
|
|
634
|
+
// @alpha
|
|
628
635
|
export interface ISummaryAckMessage extends ISequencedDocumentMessage {
|
|
629
636
|
// (undocumented)
|
|
630
637
|
contents: ISummaryAck;
|
|
@@ -632,38 +639,38 @@ export interface ISummaryAckMessage extends ISequencedDocumentMessage {
|
|
|
632
639
|
type: MessageType.SummaryAck;
|
|
633
640
|
}
|
|
634
641
|
|
|
635
|
-
// @
|
|
642
|
+
// @alpha (undocumented)
|
|
636
643
|
export interface ISummaryBaseConfiguration {
|
|
637
644
|
initialSummarizerDelayMs: number;
|
|
638
645
|
maxAckWaitTime: number;
|
|
639
646
|
maxOpsSinceLastSummary: number;
|
|
640
647
|
}
|
|
641
648
|
|
|
642
|
-
// @
|
|
649
|
+
// @alpha
|
|
643
650
|
export type ISummaryCancellationToken = ICancellationToken<SummarizerStopReason>;
|
|
644
651
|
|
|
645
|
-
// @
|
|
652
|
+
// @internal (undocumented)
|
|
646
653
|
export interface ISummaryCollectionOpEvents extends IEvent {
|
|
647
654
|
// (undocumented)
|
|
648
655
|
(event: OpActionEventName, listener: OpActionEventListener): any;
|
|
649
656
|
}
|
|
650
657
|
|
|
651
|
-
// @
|
|
658
|
+
// @alpha (undocumented)
|
|
652
659
|
export type ISummaryConfiguration = ISummaryConfigurationDisableSummarizer | ISummaryConfigurationDisableHeuristics | ISummaryConfigurationHeuristics;
|
|
653
660
|
|
|
654
|
-
// @
|
|
661
|
+
// @alpha (undocumented)
|
|
655
662
|
export interface ISummaryConfigurationDisableHeuristics extends ISummaryBaseConfiguration {
|
|
656
663
|
// (undocumented)
|
|
657
664
|
state: "disableHeuristics";
|
|
658
665
|
}
|
|
659
666
|
|
|
660
|
-
// @
|
|
667
|
+
// @alpha (undocumented)
|
|
661
668
|
export interface ISummaryConfigurationDisableSummarizer {
|
|
662
669
|
// (undocumented)
|
|
663
670
|
state: "disabled";
|
|
664
671
|
}
|
|
665
672
|
|
|
666
|
-
// @
|
|
673
|
+
// @alpha (undocumented)
|
|
667
674
|
export interface ISummaryConfigurationHeuristics extends ISummaryBaseConfiguration {
|
|
668
675
|
maxIdleTime: number;
|
|
669
676
|
maxOps: number;
|
|
@@ -677,10 +684,10 @@ export interface ISummaryConfigurationHeuristics extends ISummaryBaseConfigurati
|
|
|
677
684
|
state: "enabled";
|
|
678
685
|
}
|
|
679
686
|
|
|
680
|
-
// @
|
|
687
|
+
// @alpha
|
|
681
688
|
export type ISummaryMetadataMessage = Pick<ISequencedDocumentMessage, "clientId" | "clientSequenceNumber" | "minimumSequenceNumber" | "referenceSequenceNumber" | "sequenceNumber" | "timestamp" | "type">;
|
|
682
689
|
|
|
683
|
-
// @
|
|
690
|
+
// @alpha
|
|
684
691
|
export interface ISummaryNackMessage extends ISequencedDocumentMessage {
|
|
685
692
|
// (undocumented)
|
|
686
693
|
contents: ISummaryNack;
|
|
@@ -688,7 +695,7 @@ export interface ISummaryNackMessage extends ISequencedDocumentMessage {
|
|
|
688
695
|
type: MessageType.SummaryNack;
|
|
689
696
|
}
|
|
690
697
|
|
|
691
|
-
// @
|
|
698
|
+
// @alpha
|
|
692
699
|
export interface ISummaryOpMessage extends ISequencedDocumentMessage {
|
|
693
700
|
// (undocumented)
|
|
694
701
|
contents: ISummaryContent;
|
|
@@ -696,14 +703,24 @@ export interface ISummaryOpMessage extends ISequencedDocumentMessage {
|
|
|
696
703
|
type: MessageType.Summarize;
|
|
697
704
|
}
|
|
698
705
|
|
|
699
|
-
// @
|
|
706
|
+
// @alpha (undocumented)
|
|
700
707
|
export interface ISummaryRuntimeOptions {
|
|
701
708
|
// @deprecated
|
|
702
709
|
initialSummarizerDelayMs?: number;
|
|
703
710
|
summaryConfigOverrides?: ISummaryConfiguration;
|
|
704
711
|
}
|
|
705
712
|
|
|
706
|
-
// @
|
|
713
|
+
// @alpha
|
|
714
|
+
export interface ISweepPhaseStats {
|
|
715
|
+
deletedAttachmentBlobCount: number;
|
|
716
|
+
deletedDataStoreCount: number;
|
|
717
|
+
deletedNodeCount: number;
|
|
718
|
+
lifetimeAttachmentBlobCount: number;
|
|
719
|
+
lifetimeDataStoreCount: number;
|
|
720
|
+
lifetimeNodeCount: number;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
// @alpha
|
|
707
724
|
export interface IUploadSummaryResult extends Omit<IGenerateSummaryTreeResult, "stage"> {
|
|
708
725
|
readonly handle: string;
|
|
709
726
|
// (undocumented)
|
|
@@ -711,13 +728,13 @@ export interface IUploadSummaryResult extends Omit<IGenerateSummaryTreeResult, "
|
|
|
711
728
|
readonly uploadDuration: number;
|
|
712
729
|
}
|
|
713
730
|
|
|
714
|
-
// @
|
|
731
|
+
// @internal
|
|
715
732
|
export const neverCancelledSummaryToken: ISummaryCancellationToken;
|
|
716
733
|
|
|
717
|
-
// @
|
|
734
|
+
// @internal (undocumented)
|
|
718
735
|
export type OpActionEventListener = (op: ISequencedDocumentMessage) => void;
|
|
719
736
|
|
|
720
|
-
// @
|
|
737
|
+
// @internal (undocumented)
|
|
721
738
|
export type OpActionEventName = MessageType.Summarize | MessageType.SummaryAck | MessageType.SummaryNack | "default";
|
|
722
739
|
|
|
723
740
|
// @internal
|
|
@@ -725,13 +742,13 @@ export interface RecentlyAddedContainerRuntimeMessageDetails {
|
|
|
725
742
|
compatDetails: IContainerRuntimeMessageCompatDetails;
|
|
726
743
|
}
|
|
727
744
|
|
|
728
|
-
// @
|
|
745
|
+
// @internal
|
|
729
746
|
export enum RuntimeHeaders {
|
|
730
747
|
viaHandle = "viaHandle",
|
|
731
748
|
wait = "wait"
|
|
732
749
|
}
|
|
733
750
|
|
|
734
|
-
// @
|
|
751
|
+
// @internal @deprecated (undocumented)
|
|
735
752
|
export enum RuntimeMessage {
|
|
736
753
|
// (undocumented)
|
|
737
754
|
Alias = "alias",
|
|
@@ -749,16 +766,16 @@ export enum RuntimeMessage {
|
|
|
749
766
|
Rejoin = "rejoin"
|
|
750
767
|
}
|
|
751
768
|
|
|
752
|
-
// @
|
|
769
|
+
// @alpha
|
|
753
770
|
export interface SubmitSummaryFailureData extends IRetriableFailureResult {
|
|
754
771
|
// (undocumented)
|
|
755
772
|
stage: SummaryStage;
|
|
756
773
|
}
|
|
757
774
|
|
|
758
|
-
// @
|
|
775
|
+
// @alpha
|
|
759
776
|
export type SubmitSummaryResult = IBaseSummarizeResult | IGenerateSummaryTreeResult | IUploadSummaryResult | ISubmitSummaryOpResult;
|
|
760
777
|
|
|
761
|
-
// @
|
|
778
|
+
// @internal
|
|
762
779
|
export class Summarizer extends TypedEventEmitter<ISummarizerEvents> implements ISummarizer {
|
|
763
780
|
constructor(
|
|
764
781
|
runtime: ISummarizerRuntime, configurationGetter: () => ISummaryConfiguration,
|
|
@@ -784,7 +801,7 @@ export class Summarizer extends TypedEventEmitter<ISummarizerEvents> implements
|
|
|
784
801
|
readonly summaryCollection: SummaryCollection;
|
|
785
802
|
}
|
|
786
803
|
|
|
787
|
-
// @
|
|
804
|
+
// @alpha (undocumented)
|
|
788
805
|
export type SummarizeResultPart<TSuccess, TFailure = undefined> = {
|
|
789
806
|
success: true;
|
|
790
807
|
data: TSuccess;
|
|
@@ -795,7 +812,7 @@ export type SummarizeResultPart<TSuccess, TFailure = undefined> = {
|
|
|
795
812
|
error: any;
|
|
796
813
|
};
|
|
797
814
|
|
|
798
|
-
// @
|
|
815
|
+
// @alpha (undocumented)
|
|
799
816
|
export type SummarizerStopReason =
|
|
800
817
|
/** Summarizer client failed to summarize in all 3 consecutive attempts. */
|
|
801
818
|
"failToSummarize"
|
|
@@ -822,7 +839,7 @@ export type SummarizerStopReason =
|
|
|
822
839
|
*/
|
|
823
840
|
| "latestSummaryStateStale";
|
|
824
841
|
|
|
825
|
-
// @
|
|
842
|
+
// @internal
|
|
826
843
|
export class SummaryCollection extends TypedEventEmitter<ISummaryCollectionOpEvents> {
|
|
827
844
|
constructor(deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>, logger: ITelemetryLoggerExt);
|
|
828
845
|
// (undocumented)
|
|
@@ -846,13 +863,13 @@ export class SummaryCollection extends TypedEventEmitter<ISummaryCollectionOpEve
|
|
|
846
863
|
waitSummaryAck(referenceSequenceNumber: number): Promise<IAckedSummary>;
|
|
847
864
|
}
|
|
848
865
|
|
|
849
|
-
// @
|
|
866
|
+
// @alpha
|
|
850
867
|
export type SummaryStage = SubmitSummaryResult["stage"] | "unknown";
|
|
851
868
|
|
|
852
869
|
// @internal
|
|
853
870
|
export function TEST_requestSummarizer(loader: ILoader, url: string): Promise<ISummarizer>;
|
|
854
871
|
|
|
855
|
-
// @
|
|
872
|
+
// @internal
|
|
856
873
|
export const TombstoneResponseHeaderKey = "isTombstoned";
|
|
857
874
|
|
|
858
875
|
// @internal
|