@fluidframework/container-runtime 2.0.0-internal.7.3.0 → 2.0.0-internal.7.4.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 +18 -0
- package/api-extractor-lint.json +13 -0
- package/api-extractor.json +9 -1
- package/api-report/container-runtime.api.md +124 -107
- package/dist/blobManager.d.ts +4 -4
- package/dist/blobManager.d.ts.map +1 -1
- package/dist/blobManager.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 +30 -30
- package/dist/containerRuntime.d.ts.map +1 -1
- package/dist/containerRuntime.js +62 -40
- 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 +15 -7
- package/dist/messageTypes.d.ts.map +1 -1
- package/dist/messageTypes.js +6 -1
- package/dist/messageTypes.js.map +1 -1
- package/dist/opLifecycle/definitions.d.ts +1 -1
- package/dist/opLifecycle/definitions.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 -0
- package/dist/pendingStateManager.d.ts.map +1 -1
- package/dist/pendingStateManager.js +1 -0
- package/dist/pendingStateManager.js.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/lib/blobManager.d.ts +4 -4
- package/lib/blobManager.d.ts.map +1 -1
- package/lib/blobManager.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 +30 -30
- package/lib/containerRuntime.d.ts.map +1 -1
- package/lib/containerRuntime.js +64 -42
- 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 +15 -7
- package/lib/messageTypes.d.ts.map +1 -1
- package/lib/messageTypes.js +6 -1
- package/lib/messageTypes.js.map +1 -1
- package/lib/opLifecycle/definitions.d.ts +1 -1
- package/lib/opLifecycle/definitions.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 -0
- package/lib/pendingStateManager.d.ts.map +1 -1
- package/lib/pendingStateManager.js +1 -0
- package/lib/pendingStateManager.js.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 +42 -19
- package/src/blobManager.ts +5 -5
- package/src/containerRuntime.ts +86 -56
- 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 +19 -4
- package/src/opLifecycle/definitions.ts +1 -1
- package/src/packageVersion.ts +1 -1
- package/src/pendingStateManager.ts +1 -0
- 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
|
@@ -19,7 +19,7 @@ import { SummarizeReason } from "./summaryGenerator";
|
|
|
19
19
|
/**
|
|
20
20
|
* Similar to AbortSignal, but using promise instead of events
|
|
21
21
|
* @param T - cancellation reason type
|
|
22
|
-
* @
|
|
22
|
+
* @alpha
|
|
23
23
|
*/
|
|
24
24
|
export interface ICancellationToken<T> {
|
|
25
25
|
/** Tells if this cancellable token is cancelled */
|
|
@@ -33,13 +33,13 @@ export interface ICancellationToken<T> {
|
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* Similar to AbortSignal, but using promise instead of events
|
|
36
|
-
* @
|
|
36
|
+
* @alpha
|
|
37
37
|
*/
|
|
38
38
|
export type ISummaryCancellationToken = ICancellationToken<SummarizerStopReason>;
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
* Data required to update internal tracking state after receiving a Summary Ack.
|
|
42
|
-
* @
|
|
42
|
+
* @alpha
|
|
43
43
|
*/
|
|
44
44
|
export interface IRefreshSummaryAckOptions {
|
|
45
45
|
/** Handle from the ack's summary op. */
|
|
@@ -53,7 +53,7 @@ export interface IRefreshSummaryAckOptions {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
* @
|
|
56
|
+
* @alpha
|
|
57
57
|
*/
|
|
58
58
|
export interface ISummarizerInternalsProvider {
|
|
59
59
|
/** Encapsulates the work to walk the internals of the running container to generate a summary */
|
|
@@ -78,7 +78,7 @@ export interface ISummarizerOptions {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
|
-
* @
|
|
81
|
+
* @internal
|
|
82
82
|
*/
|
|
83
83
|
export interface ISummarizingWarning extends ContainerWarning {
|
|
84
84
|
readonly errorType: "summarizingError";
|
|
@@ -86,7 +86,7 @@ export interface ISummarizingWarning extends ContainerWarning {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
* @
|
|
89
|
+
* @alpha
|
|
90
90
|
*/
|
|
91
91
|
export interface IConnectableRuntime {
|
|
92
92
|
readonly disposed: boolean;
|
|
@@ -96,7 +96,7 @@ export interface IConnectableRuntime {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
* @
|
|
99
|
+
* @alpha
|
|
100
100
|
*/
|
|
101
101
|
export interface ISummarizerRuntime extends IConnectableRuntime {
|
|
102
102
|
readonly logger: ITelemetryLoggerExt;
|
|
@@ -117,7 +117,7 @@ export interface ISummarizerRuntime extends IConnectableRuntime {
|
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
119
|
* Options affecting summarize behavior.
|
|
120
|
-
* @
|
|
120
|
+
* @alpha
|
|
121
121
|
*/
|
|
122
122
|
export interface ISummarizeOptions {
|
|
123
123
|
/** True to generate the full tree with no handle reuse optimizations; defaults to false */
|
|
@@ -132,7 +132,7 @@ export interface ISummarizeOptions {
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
|
-
* @
|
|
135
|
+
* @alpha
|
|
136
136
|
*/
|
|
137
137
|
export interface ISubmitSummaryOptions extends ISummarizeOptions {
|
|
138
138
|
/** Logger to use for correlated summary events */
|
|
@@ -144,7 +144,7 @@ export interface ISubmitSummaryOptions extends ISummarizeOptions {
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
|
-
* @
|
|
147
|
+
* @alpha
|
|
148
148
|
*/
|
|
149
149
|
export interface IOnDemandSummarizeOptions extends ISummarizeOptions {
|
|
150
150
|
/** Reason for generating summary. */
|
|
@@ -153,7 +153,7 @@ export interface IOnDemandSummarizeOptions extends ISummarizeOptions {
|
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
155
|
* Options to use when enqueueing a summarize attempt.
|
|
156
|
-
* @
|
|
156
|
+
* @alpha
|
|
157
157
|
*/
|
|
158
158
|
export interface IEnqueueSummarizeOptions extends IOnDemandSummarizeOptions {
|
|
159
159
|
/** If specified, The summarize attempt will not occur until after this sequence number. */
|
|
@@ -171,7 +171,7 @@ export interface IEnqueueSummarizeOptions extends IOnDemandSummarizeOptions {
|
|
|
171
171
|
/**
|
|
172
172
|
* In addition to the normal summary tree + stats, this contains additional stats
|
|
173
173
|
* only relevant at the root of the tree.
|
|
174
|
-
* @
|
|
174
|
+
* @alpha
|
|
175
175
|
*/
|
|
176
176
|
export interface IGeneratedSummaryStats extends ISummaryStats {
|
|
177
177
|
/** The total number of data stores in the container. */
|
|
@@ -190,7 +190,7 @@ export interface IGeneratedSummaryStats extends ISummaryStats {
|
|
|
190
190
|
|
|
191
191
|
/**
|
|
192
192
|
* Base results for all submitSummary attempts.
|
|
193
|
-
* @
|
|
193
|
+
* @alpha
|
|
194
194
|
*/
|
|
195
195
|
export interface IBaseSummarizeResult {
|
|
196
196
|
readonly stage: "base";
|
|
@@ -203,7 +203,7 @@ export interface IBaseSummarizeResult {
|
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
205
|
* Results of submitSummary after generating the summary tree.
|
|
206
|
-
* @
|
|
206
|
+
* @alpha
|
|
207
207
|
*/
|
|
208
208
|
export interface IGenerateSummaryTreeResult extends Omit<IBaseSummarizeResult, "stage"> {
|
|
209
209
|
readonly stage: "generate";
|
|
@@ -219,7 +219,7 @@ export interface IGenerateSummaryTreeResult extends Omit<IBaseSummarizeResult, "
|
|
|
219
219
|
|
|
220
220
|
/**
|
|
221
221
|
* Results of submitSummary after uploading the tree to storage.
|
|
222
|
-
* @
|
|
222
|
+
* @alpha
|
|
223
223
|
*/
|
|
224
224
|
export interface IUploadSummaryResult extends Omit<IGenerateSummaryTreeResult, "stage"> {
|
|
225
225
|
readonly stage: "upload";
|
|
@@ -231,7 +231,7 @@ export interface IUploadSummaryResult extends Omit<IGenerateSummaryTreeResult, "
|
|
|
231
231
|
|
|
232
232
|
/**
|
|
233
233
|
* Results of submitSummary after submitting the summarize op.
|
|
234
|
-
* @
|
|
234
|
+
* @alpha
|
|
235
235
|
*/
|
|
236
236
|
export interface ISubmitSummaryOpResult extends Omit<IUploadSummaryResult, "stage" | "error"> {
|
|
237
237
|
readonly stage: "submit";
|
|
@@ -256,7 +256,7 @@ export interface ISubmitSummaryOpResult extends Omit<IUploadSummaryResult, "stag
|
|
|
256
256
|
* 3. "upload" - the summary was uploaded to storage, and the result contains the server-provided handle
|
|
257
257
|
*
|
|
258
258
|
* 4. "submit" - the summarize op was submitted, and the result contains the op client sequence number.
|
|
259
|
-
* @
|
|
259
|
+
* @alpha
|
|
260
260
|
*/
|
|
261
261
|
export type SubmitSummaryResult =
|
|
262
262
|
| IBaseSummarizeResult
|
|
@@ -266,13 +266,13 @@ export type SubmitSummaryResult =
|
|
|
266
266
|
|
|
267
267
|
/**
|
|
268
268
|
* The stages of Summarize, used to describe how far progress succeeded in case of a failure at a later stage.
|
|
269
|
-
* @
|
|
269
|
+
* @alpha
|
|
270
270
|
*/
|
|
271
271
|
export type SummaryStage = SubmitSummaryResult["stage"] | "unknown";
|
|
272
272
|
|
|
273
273
|
/**
|
|
274
274
|
* Type for summarization failures that are retriable.
|
|
275
|
-
* @
|
|
275
|
+
* @alpha
|
|
276
276
|
*/
|
|
277
277
|
export interface IRetriableFailureResult {
|
|
278
278
|
readonly retryAfterSeconds?: number;
|
|
@@ -280,14 +280,14 @@ export interface IRetriableFailureResult {
|
|
|
280
280
|
|
|
281
281
|
/**
|
|
282
282
|
* The data in summarizer result when submit summary stage fails.
|
|
283
|
-
* @
|
|
283
|
+
* @alpha
|
|
284
284
|
*/
|
|
285
285
|
export interface SubmitSummaryFailureData extends IRetriableFailureResult {
|
|
286
286
|
stage: SummaryStage;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
/**
|
|
290
|
-
* @
|
|
290
|
+
* @alpha
|
|
291
291
|
*/
|
|
292
292
|
export interface IBroadcastSummaryResult {
|
|
293
293
|
readonly summarizeOp: ISummaryOpMessage;
|
|
@@ -295,7 +295,7 @@ export interface IBroadcastSummaryResult {
|
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
/**
|
|
298
|
-
* @
|
|
298
|
+
* @alpha
|
|
299
299
|
*/
|
|
300
300
|
export interface IAckSummaryResult {
|
|
301
301
|
readonly summaryAckOp: ISummaryAckMessage;
|
|
@@ -303,7 +303,7 @@ export interface IAckSummaryResult {
|
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
/**
|
|
306
|
-
* @
|
|
306
|
+
* @alpha
|
|
307
307
|
*/
|
|
308
308
|
export interface INackSummaryResult extends IRetriableFailureResult {
|
|
309
309
|
readonly summaryNackOp: ISummaryNackMessage;
|
|
@@ -311,7 +311,7 @@ export interface INackSummaryResult extends IRetriableFailureResult {
|
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
/**
|
|
314
|
-
* @
|
|
314
|
+
* @alpha
|
|
315
315
|
*/
|
|
316
316
|
export type SummarizeResultPart<TSuccess, TFailure = undefined> =
|
|
317
317
|
| {
|
|
@@ -326,7 +326,7 @@ export type SummarizeResultPart<TSuccess, TFailure = undefined> =
|
|
|
326
326
|
};
|
|
327
327
|
|
|
328
328
|
/**
|
|
329
|
-
* @
|
|
329
|
+
* @alpha
|
|
330
330
|
*/
|
|
331
331
|
export interface ISummarizeResults {
|
|
332
332
|
/** Resolves when we generate, upload, and submit the summary. */
|
|
@@ -342,7 +342,7 @@ export interface ISummarizeResults {
|
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
/**
|
|
345
|
-
* @
|
|
345
|
+
* @alpha
|
|
346
346
|
*/
|
|
347
347
|
export type EnqueueSummarizeResult =
|
|
348
348
|
| (ISummarizeResults & {
|
|
@@ -372,7 +372,7 @@ export type EnqueueSummarizeResult =
|
|
|
372
372
|
};
|
|
373
373
|
|
|
374
374
|
/**
|
|
375
|
-
* @
|
|
375
|
+
* @alpha
|
|
376
376
|
*/
|
|
377
377
|
export type SummarizerStopReason =
|
|
378
378
|
/** Summarizer client failed to summarize in all 3 consecutive attempts. */
|
|
@@ -401,7 +401,7 @@ export type SummarizerStopReason =
|
|
|
401
401
|
| "latestSummaryStateStale";
|
|
402
402
|
|
|
403
403
|
/**
|
|
404
|
-
* @
|
|
404
|
+
* @alpha
|
|
405
405
|
*/
|
|
406
406
|
export interface ISummarizeEventProps {
|
|
407
407
|
result: "success" | "failure" | "canceled";
|
|
@@ -411,14 +411,14 @@ export interface ISummarizeEventProps {
|
|
|
411
411
|
}
|
|
412
412
|
|
|
413
413
|
/**
|
|
414
|
-
* @
|
|
414
|
+
* @alpha
|
|
415
415
|
*/
|
|
416
416
|
export interface ISummarizerEvents extends IEvent {
|
|
417
417
|
(event: "summarize", listener: (props: ISummarizeEventProps) => void);
|
|
418
418
|
}
|
|
419
419
|
|
|
420
420
|
/**
|
|
421
|
-
* @
|
|
421
|
+
* @internal
|
|
422
422
|
*/
|
|
423
423
|
export interface ISummarizer extends IEventProvider<ISummarizerEvents> {
|
|
424
424
|
/**
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Interface for summary op messages with typed contents.
|
|
22
|
-
* @
|
|
22
|
+
* @alpha
|
|
23
23
|
*/
|
|
24
24
|
export interface ISummaryOpMessage extends ISequencedDocumentMessage {
|
|
25
25
|
type: MessageType.Summarize;
|
|
@@ -28,7 +28,7 @@ export interface ISummaryOpMessage extends ISequencedDocumentMessage {
|
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Interface for summary ack messages with typed contents.
|
|
31
|
-
* @
|
|
31
|
+
* @alpha
|
|
32
32
|
*/
|
|
33
33
|
export interface ISummaryAckMessage extends ISequencedDocumentMessage {
|
|
34
34
|
type: MessageType.SummaryAck;
|
|
@@ -37,7 +37,7 @@ export interface ISummaryAckMessage extends ISequencedDocumentMessage {
|
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* Interface for summary nack messages with typed contents.
|
|
40
|
-
* @
|
|
40
|
+
* @alpha
|
|
41
41
|
*/
|
|
42
42
|
export interface ISummaryNackMessage extends ISequencedDocumentMessage {
|
|
43
43
|
type: MessageType.SummaryNack;
|
|
@@ -47,7 +47,7 @@ export interface ISummaryNackMessage extends ISequencedDocumentMessage {
|
|
|
47
47
|
/**
|
|
48
48
|
* A single summary which can be tracked as it goes through its life cycle.
|
|
49
49
|
* The life cycle is: Local to Broadcast to Acked/Nacked.
|
|
50
|
-
* @
|
|
50
|
+
* @internal
|
|
51
51
|
*/
|
|
52
52
|
export interface ISummary {
|
|
53
53
|
readonly clientId: string;
|
|
@@ -58,7 +58,7 @@ export interface ISummary {
|
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* A single summary which has already been acked by the server.
|
|
61
|
-
* @
|
|
61
|
+
* @internal
|
|
62
62
|
*/
|
|
63
63
|
export interface IAckedSummary {
|
|
64
64
|
readonly summaryOp: ISummaryOpMessage;
|
|
@@ -145,7 +145,7 @@ class Summary implements ISummary {
|
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* Watches summaries created by a specific client.
|
|
148
|
-
* @
|
|
148
|
+
* @internal
|
|
149
149
|
*/
|
|
150
150
|
export interface IClientSummaryWatcher extends IDisposable {
|
|
151
151
|
watchSummary(clientSequenceNumber: number): ISummary;
|
|
@@ -214,7 +214,7 @@ class ClientSummaryWatcher implements IClientSummaryWatcher {
|
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
/**
|
|
217
|
-
* @
|
|
217
|
+
* @internal
|
|
218
218
|
*/
|
|
219
219
|
export type OpActionEventName =
|
|
220
220
|
| MessageType.Summarize
|
|
@@ -223,12 +223,12 @@ export type OpActionEventName =
|
|
|
223
223
|
| "default";
|
|
224
224
|
|
|
225
225
|
/**
|
|
226
|
-
* @
|
|
226
|
+
* @internal
|
|
227
227
|
*/
|
|
228
228
|
export type OpActionEventListener = (op: ISequencedDocumentMessage) => void;
|
|
229
229
|
|
|
230
230
|
/**
|
|
231
|
-
* @
|
|
231
|
+
* @internal
|
|
232
232
|
*/
|
|
233
233
|
export interface ISummaryCollectionOpEvents extends IEvent {
|
|
234
234
|
(event: OpActionEventName, listener: OpActionEventListener);
|
|
@@ -238,7 +238,7 @@ export interface ISummaryCollectionOpEvents extends IEvent {
|
|
|
238
238
|
* Data structure that looks at the op stream to track summaries as they
|
|
239
239
|
* are broadcast, acked and nacked.
|
|
240
240
|
* It provides functionality for watching specific summaries.
|
|
241
|
-
* @
|
|
241
|
+
* @internal
|
|
242
242
|
*/
|
|
243
243
|
export class SummaryCollection extends TypedEventEmitter<ISummaryCollectionOpEvents> {
|
|
244
244
|
// key: clientId
|
|
@@ -86,7 +86,7 @@ export function hasIsolatedChannels(attributes: ReadFluidDataStoreAttributes): b
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
* @
|
|
89
|
+
* @alpha
|
|
90
90
|
*/
|
|
91
91
|
export interface IContainerRuntimeMetadata extends ICreateContainerMetadata, IGCMetadata {
|
|
92
92
|
readonly summaryFormatVersion: 1;
|
|
@@ -103,7 +103,7 @@ export interface IContainerRuntimeMetadata extends ICreateContainerMetadata, IGC
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
* @
|
|
106
|
+
* @alpha
|
|
107
107
|
*/
|
|
108
108
|
export interface ICreateContainerMetadata {
|
|
109
109
|
/** Runtime version of the container when it was first created */
|
|
@@ -114,7 +114,7 @@ export interface ICreateContainerMetadata {
|
|
|
114
114
|
|
|
115
115
|
/**
|
|
116
116
|
* The properties of an ISequencedDocumentMessage to be stored in the metadata blob in summary.
|
|
117
|
-
* @
|
|
117
|
+
* @alpha
|
|
118
118
|
*/
|
|
119
119
|
export type ISummaryMetadataMessage = Pick<
|
|
120
120
|
ISequencedDocumentMessage,
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* A map in which entries are always added in key-sorted order.
|
|
7
|
-
* Supports appending and searching.
|
|
8
|
-
*/
|
|
9
|
-
export declare class AppendOnlySortedMap<K, V> {
|
|
10
|
-
protected readonly comparator: (a: K, b: K) => number;
|
|
11
|
-
protected readonly elements: (K | V)[];
|
|
12
|
-
/**
|
|
13
|
-
* @param comparator - a comparator for keys
|
|
14
|
-
*/
|
|
15
|
-
constructor(comparator: (a: K, b: K) => number);
|
|
16
|
-
/**
|
|
17
|
-
* @returns the number of entries in this map
|
|
18
|
-
*/
|
|
19
|
-
get size(): number;
|
|
20
|
-
/**
|
|
21
|
-
* @returns the min key in the map.
|
|
22
|
-
*/
|
|
23
|
-
minKey(): K | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* @returns the max key in the map.
|
|
26
|
-
*/
|
|
27
|
-
maxKey(): K | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* @returns the min value in the map.
|
|
30
|
-
*/
|
|
31
|
-
minValue(): V | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* @returns the min value in the map.
|
|
34
|
-
*/
|
|
35
|
-
maxValue(): V | undefined;
|
|
36
|
-
/**
|
|
37
|
-
* @returns the min key in the map.
|
|
38
|
-
*/
|
|
39
|
-
first(): [K, V] | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* @returns the max key in the map.
|
|
42
|
-
*/
|
|
43
|
-
last(): [K, V] | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* Returns the element at the insertion index.
|
|
46
|
-
*/
|
|
47
|
-
getAtIndex(index: number): [K, V] | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* @returns an iterable of the entries in the map.
|
|
50
|
-
*/
|
|
51
|
-
entries(): IterableIterator<readonly [K, V]>;
|
|
52
|
-
/**
|
|
53
|
-
* @returns an iterable of the keys in the map.
|
|
54
|
-
*/
|
|
55
|
-
keys(): IterableIterator<K>;
|
|
56
|
-
/**
|
|
57
|
-
* @returns an iterable of the values in the map.
|
|
58
|
-
*/
|
|
59
|
-
values(): IterableIterator<V>;
|
|
60
|
-
/**
|
|
61
|
-
* @returns an iterable of the entries in the map, reversed.
|
|
62
|
-
*/
|
|
63
|
-
entriesReversed(): IterableIterator<readonly [K, V]>;
|
|
64
|
-
/**
|
|
65
|
-
* Adds a new key/value pair to the map. `key` must be > to all keys in the map.
|
|
66
|
-
* @param key - the key to add.
|
|
67
|
-
* @param value - the value to add.
|
|
68
|
-
*/
|
|
69
|
-
append(key: K, value: V): void;
|
|
70
|
-
/**
|
|
71
|
-
* Replaces the last key/value pair with the given one. If the map is empty, it simply appends.
|
|
72
|
-
* `key` must be > to all keys in the map prior to the one replaced.
|
|
73
|
-
* @param key - the key to add.
|
|
74
|
-
* @param value - the value to add.
|
|
75
|
-
*/
|
|
76
|
-
replaceLast(key: K, value: V): void;
|
|
77
|
-
/**
|
|
78
|
-
* @param key - the key to lookup.
|
|
79
|
-
* @returns the value associated with `key` if such an entry exists, and undefined otherwise.
|
|
80
|
-
*/
|
|
81
|
-
get(key: K): V | undefined;
|
|
82
|
-
/**
|
|
83
|
-
* @param key - the key to lookup.
|
|
84
|
-
* @returns the entry associated with `key` if such an entry exists, the entry associated with the next lower key if such an entry
|
|
85
|
-
* exists, and undefined otherwise.
|
|
86
|
-
*/
|
|
87
|
-
getPairOrNextLower(key: K): readonly [K, V] | undefined;
|
|
88
|
-
/**
|
|
89
|
-
* @param key - the key to lookup.
|
|
90
|
-
* @returns the entry associated with `key` if such an entry exists, the entry associated with the next higher key if such an entry
|
|
91
|
-
* exists, and undefined otherwise.
|
|
92
|
-
*/
|
|
93
|
-
getPairOrNextHigher(key: K): readonly [K, V] | undefined;
|
|
94
|
-
/**
|
|
95
|
-
* Compares two `AppendOnlySortedMap`s.
|
|
96
|
-
*/
|
|
97
|
-
equals(other: AppendOnlySortedMap<K, V>, compareValues: (a: V, b: V) => boolean): boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Test-only expensive assertions to check the internal validity of the data structure.
|
|
100
|
-
*/
|
|
101
|
-
assertValid(): void;
|
|
102
|
-
/**
|
|
103
|
-
* Queries a range of entries.
|
|
104
|
-
* @param from - the key to start the range query at, inclusive.
|
|
105
|
-
* @param to - the key to end the range query at, inclusive.
|
|
106
|
-
* @returns the range of entries.
|
|
107
|
-
*/
|
|
108
|
-
getRange(from: K, to: K): IterableIterator<readonly [K, V]>;
|
|
109
|
-
protected getPairOrNextLowerBy<T>(search: T, comparator: (search: T, key: K, value: V) => number): readonly [K, V] | undefined;
|
|
110
|
-
private getKeyIndexOfOrNextLower;
|
|
111
|
-
protected getPairOrNextHigherBy<T>(search: T, comparator: (search: T, key: K, value: V) => number): readonly [K, V] | undefined;
|
|
112
|
-
private getKeyIndexOfOrNextHigher;
|
|
113
|
-
/**
|
|
114
|
-
* The value xor'd with the result index when a search fails.
|
|
115
|
-
*/
|
|
116
|
-
static readonly failureXor = -1;
|
|
117
|
-
/**
|
|
118
|
-
* Performs a binary search on the sorted array.
|
|
119
|
-
* @returns the index of the key for `search`, or (if not present) the index it would have been inserted into xor'd
|
|
120
|
-
* with `failureXor`. Note that negating is not an adequate solution as that could result in -0.
|
|
121
|
-
*/
|
|
122
|
-
static keyIndexOf<T, K, V>(elements: readonly (K | V)[], search: T, comparator: (search: T, key: K, value: V) => number): number;
|
|
123
|
-
}
|
|
124
|
-
//# sourceMappingURL=appendOnlySortedMap.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"appendOnlySortedMap.d.ts","sourceRoot":"","sources":["../../src/id-compressor/appendOnlySortedMap.ts"],"names":[],"mappings":"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"}
|