@fluidframework/container-runtime 2.0.0-dev.7.4.0.215930 → 2.0.0-dev.7.4.0.216897
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/api-extractor-lint.json +13 -0
- package/api-report/container-runtime.api.md +83 -84
- package/dist/blobManager.d.ts +1 -1
- package/dist/blobManager.js.map +1 -1
- package/dist/container-runtime-alpha.d.ts +231 -1734
- package/dist/container-runtime-beta.d.ts +228 -1732
- package/dist/container-runtime-public.d.ts +228 -1732
- package/dist/container-runtime-untrimmed.d.ts +83 -86
- package/dist/containerRuntime.d.ts +20 -23
- package/dist/containerRuntime.d.ts.map +1 -1
- package/dist/containerRuntime.js +12 -15
- 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/gc/gcDefinitions.d.ts +9 -9
- package/dist/gc/gcDefinitions.js +1 -1
- package/dist/gc/gcDefinitions.js.map +1 -1
- package/dist/id-compressor/utilities.d.ts +3 -3
- package/dist/id-compressor/utilities.js +3 -3
- package/dist/id-compressor/utilities.js.map +1 -1
- package/dist/messageTypes.d.ts +2 -2
- package/dist/messageTypes.d.ts.map +1 -1
- package/dist/messageTypes.js +1 -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/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 +1 -1
- package/lib/blobManager.js.map +1 -1
- package/lib/container-runtime-alpha.d.ts +231 -1734
- package/lib/container-runtime-beta.d.ts +228 -1732
- package/lib/container-runtime-public.d.ts +228 -1732
- package/lib/container-runtime-untrimmed.d.ts +83 -86
- package/lib/containerRuntime.d.ts +20 -23
- package/lib/containerRuntime.d.ts.map +1 -1
- package/lib/containerRuntime.js +12 -15
- 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/gc/gcDefinitions.d.ts +9 -9
- package/lib/gc/gcDefinitions.js +1 -1
- package/lib/gc/gcDefinitions.js.map +1 -1
- package/lib/id-compressor/utilities.d.ts +3 -3
- package/lib/id-compressor/utilities.js +3 -3
- package/lib/id-compressor/utilities.js.map +1 -1
- package/lib/messageTypes.d.ts +2 -2
- package/lib/messageTypes.d.ts.map +1 -1
- package/lib/messageTypes.js +1 -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/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 +17 -16
- package/src/blobManager.ts +1 -1
- package/src/containerRuntime.ts +20 -23
- package/src/dataStoreRegistry.ts +1 -1
- package/src/gc/gcDefinitions.ts +9 -9
- package/src/id-compressor/utilities.ts +3 -3
- package/src/messageTypes.ts +3 -2
- package/src/opLifecycle/definitions.ts +1 -1
- package/src/packageVersion.ts +1 -1
- 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/src/containerRuntime.ts
CHANGED
|
@@ -213,7 +213,7 @@ function compatBehaviorAllowsMessageType(
|
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
/**
|
|
216
|
-
* @
|
|
216
|
+
* @internal
|
|
217
217
|
*/
|
|
218
218
|
export interface ISummaryBaseConfiguration {
|
|
219
219
|
/**
|
|
@@ -235,7 +235,7 @@ export interface ISummaryBaseConfiguration {
|
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
/**
|
|
238
|
-
* @
|
|
238
|
+
* @internal
|
|
239
239
|
*/
|
|
240
240
|
export interface ISummaryConfigurationHeuristics extends ISummaryBaseConfiguration {
|
|
241
241
|
state: "enabled";
|
|
@@ -298,21 +298,21 @@ export interface ISummaryConfigurationHeuristics extends ISummaryBaseConfigurati
|
|
|
298
298
|
}
|
|
299
299
|
|
|
300
300
|
/**
|
|
301
|
-
* @
|
|
301
|
+
* @internal
|
|
302
302
|
*/
|
|
303
303
|
export interface ISummaryConfigurationDisableSummarizer {
|
|
304
304
|
state: "disabled";
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
/**
|
|
308
|
-
* @
|
|
308
|
+
* @internal
|
|
309
309
|
*/
|
|
310
310
|
export interface ISummaryConfigurationDisableHeuristics extends ISummaryBaseConfiguration {
|
|
311
311
|
state: "disableHeuristics";
|
|
312
312
|
}
|
|
313
313
|
|
|
314
314
|
/**
|
|
315
|
-
* @
|
|
315
|
+
* @internal
|
|
316
316
|
*/
|
|
317
317
|
export type ISummaryConfiguration =
|
|
318
318
|
| ISummaryConfigurationDisableSummarizer
|
|
@@ -320,7 +320,7 @@ export type ISummaryConfiguration =
|
|
|
320
320
|
| ISummaryConfigurationHeuristics;
|
|
321
321
|
|
|
322
322
|
/**
|
|
323
|
-
* @
|
|
323
|
+
* @internal
|
|
324
324
|
*/
|
|
325
325
|
export const DefaultSummaryConfiguration: ISummaryConfiguration = {
|
|
326
326
|
state: "enabled",
|
|
@@ -349,7 +349,7 @@ export const DefaultSummaryConfiguration: ISummaryConfiguration = {
|
|
|
349
349
|
};
|
|
350
350
|
|
|
351
351
|
/**
|
|
352
|
-
* @
|
|
352
|
+
* @internal
|
|
353
353
|
*/
|
|
354
354
|
export interface ISummaryRuntimeOptions {
|
|
355
355
|
/** Override summary configurations set by the server. */
|
|
@@ -366,7 +366,7 @@ export interface ISummaryRuntimeOptions {
|
|
|
366
366
|
|
|
367
367
|
/**
|
|
368
368
|
* Options for op compression.
|
|
369
|
-
* @
|
|
369
|
+
* @internal
|
|
370
370
|
*/
|
|
371
371
|
export interface ICompressionRuntimeOptions {
|
|
372
372
|
/**
|
|
@@ -384,7 +384,7 @@ export interface ICompressionRuntimeOptions {
|
|
|
384
384
|
|
|
385
385
|
/**
|
|
386
386
|
* Options for container runtime.
|
|
387
|
-
* @
|
|
387
|
+
* @internal
|
|
388
388
|
*/
|
|
389
389
|
export interface IContainerRuntimeOptions {
|
|
390
390
|
readonly summaryOptions?: ISummaryRuntimeOptions;
|
|
@@ -466,7 +466,7 @@ export interface IContainerRuntimeOptions {
|
|
|
466
466
|
|
|
467
467
|
/**
|
|
468
468
|
* Accepted header keys for requests coming to the runtime.
|
|
469
|
-
* @
|
|
469
|
+
* @internal
|
|
470
470
|
*/
|
|
471
471
|
export enum RuntimeHeaders {
|
|
472
472
|
/** True to wait for a data store to be created and loaded before returning it. */
|
|
@@ -476,23 +476,23 @@ export enum RuntimeHeaders {
|
|
|
476
476
|
}
|
|
477
477
|
|
|
478
478
|
/** True if a tombstoned object should be returned without erroring
|
|
479
|
-
* @
|
|
479
|
+
* @internal
|
|
480
480
|
*/
|
|
481
481
|
export const AllowTombstoneRequestHeaderKey = "allowTombstone"; // Belongs in the enum above, but avoiding the breaking change
|
|
482
482
|
/**
|
|
483
483
|
* [IRRELEVANT IF throwOnInactiveLoad OPTION NOT SET] True if an inactive object should be returned without erroring
|
|
484
|
-
* @
|
|
484
|
+
* @internal
|
|
485
485
|
*/
|
|
486
486
|
export const AllowInactiveRequestHeaderKey = "allowInactive"; // Belongs in the enum above, but avoiding the breaking change
|
|
487
487
|
|
|
488
488
|
/**
|
|
489
489
|
* Tombstone error responses will have this header set to true
|
|
490
|
-
* @
|
|
490
|
+
* @internal
|
|
491
491
|
*/
|
|
492
492
|
export const TombstoneResponseHeaderKey = "isTombstoned";
|
|
493
493
|
/**
|
|
494
494
|
* Inactive error responses will have this header set to true
|
|
495
|
-
* @
|
|
495
|
+
* @internal
|
|
496
496
|
*/
|
|
497
497
|
export const InactiveResponseHeaderKey = "isInactive";
|
|
498
498
|
|
|
@@ -516,7 +516,7 @@ export const defaultRuntimeHeaderData: Required<RuntimeHeaderData> = {
|
|
|
516
516
|
|
|
517
517
|
/**
|
|
518
518
|
* Available compression algorithms for op compression.
|
|
519
|
-
* @
|
|
519
|
+
* @internal
|
|
520
520
|
*/
|
|
521
521
|
export enum CompressionAlgorithms {
|
|
522
522
|
lz4 = "lz4",
|
|
@@ -585,7 +585,7 @@ const defaultCloseSummarizerDelayMs = 5000; // 5 seconds
|
|
|
585
585
|
|
|
586
586
|
/**
|
|
587
587
|
* @deprecated use ContainerRuntimeMessageType instead
|
|
588
|
-
* @
|
|
588
|
+
* @internal
|
|
589
589
|
*/
|
|
590
590
|
export enum RuntimeMessage {
|
|
591
591
|
FluidDataStoreOp = "component",
|
|
@@ -599,7 +599,7 @@ export enum RuntimeMessage {
|
|
|
599
599
|
|
|
600
600
|
/**
|
|
601
601
|
* @deprecated please use version in driver-utils
|
|
602
|
-
* @
|
|
602
|
+
* @internal
|
|
603
603
|
*/
|
|
604
604
|
export function isRuntimeMessage(message: ISequencedDocumentMessage): boolean {
|
|
605
605
|
return (Object.values(RuntimeMessage) as string[]).includes(message.type);
|
|
@@ -609,7 +609,7 @@ export function isRuntimeMessage(message: ISequencedDocumentMessage): boolean {
|
|
|
609
609
|
* Legacy ID for the built-in AgentScheduler. To minimize disruption while removing it, retaining this as a
|
|
610
610
|
* special-case for document dirty state. Ultimately we should have no special-cases from the
|
|
611
611
|
* ContainerRuntime's perspective.
|
|
612
|
-
* @
|
|
612
|
+
* @internal
|
|
613
613
|
*/
|
|
614
614
|
export const agentSchedulerId = "_scheduler";
|
|
615
615
|
|
|
@@ -718,7 +718,7 @@ export async function TEST_requestSummarizer(loader: ILoader, url: string): Prom
|
|
|
718
718
|
/**
|
|
719
719
|
* Represents the runtime of the container. Contains helper functions/state of the container.
|
|
720
720
|
* It will define the store level mappings.
|
|
721
|
-
* @
|
|
721
|
+
* @internal
|
|
722
722
|
*/
|
|
723
723
|
export class ContainerRuntime
|
|
724
724
|
extends TypedEventEmitter<IContainerRuntimeEvents & ISummarizerEvents>
|
|
@@ -1215,9 +1215,7 @@ export class ContainerRuntime
|
|
|
1215
1215
|
*/
|
|
1216
1216
|
private readonly loadedFromVersionId: string | undefined;
|
|
1217
1217
|
|
|
1218
|
-
|
|
1219
|
-
* @internal
|
|
1220
|
-
*/
|
|
1218
|
+
/***/
|
|
1221
1219
|
protected constructor(
|
|
1222
1220
|
context: IContainerContext,
|
|
1223
1221
|
private readonly registry: IFluidDataStoreRegistry,
|
|
@@ -2583,7 +2581,6 @@ export class ContainerRuntime
|
|
|
2583
2581
|
|
|
2584
2582
|
/**
|
|
2585
2583
|
* @deprecated 0.16 Issue #1537, #3631
|
|
2586
|
-
* @internal
|
|
2587
2584
|
*/
|
|
2588
2585
|
public async _createDataStoreWithProps(
|
|
2589
2586
|
pkg: string | string[],
|
package/src/dataStoreRegistry.ts
CHANGED
package/src/gc/gcDefinitions.ts
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
import { RuntimeHeaderData } from "../containerRuntime";
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
* @
|
|
25
|
+
* @internal
|
|
26
26
|
*/
|
|
27
27
|
export type GCVersion = number;
|
|
28
28
|
|
|
@@ -92,7 +92,7 @@ export const defaultSessionExpiryDurationMs = 30 * oneDayMs; // 30 days
|
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
94
|
* @see IGCMetadata.gcFeatureMatrix
|
|
95
|
-
* @
|
|
95
|
+
* @internal
|
|
96
96
|
*/
|
|
97
97
|
export interface GCFeatureMatrix {
|
|
98
98
|
/**
|
|
@@ -110,7 +110,7 @@ export interface GCFeatureMatrix {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
|
-
* @
|
|
113
|
+
* @internal
|
|
114
114
|
*/
|
|
115
115
|
export interface IGCMetadata {
|
|
116
116
|
/**
|
|
@@ -150,7 +150,7 @@ export interface IGCMetadata {
|
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
152
|
* The statistics of the system state after a garbage collection mark phase run.
|
|
153
|
-
* @
|
|
153
|
+
* @internal
|
|
154
154
|
*/
|
|
155
155
|
export interface IMarkPhaseStats {
|
|
156
156
|
/** The number of nodes in the container. */
|
|
@@ -175,7 +175,7 @@ export interface IMarkPhaseStats {
|
|
|
175
175
|
|
|
176
176
|
/**
|
|
177
177
|
* The statistics of the system state after a garbage collection sweep phase run.
|
|
178
|
-
* @
|
|
178
|
+
* @internal
|
|
179
179
|
*/
|
|
180
180
|
export interface ISweepPhaseStats {
|
|
181
181
|
/** The number of nodes in the lifetime of the container. */
|
|
@@ -194,13 +194,13 @@ export interface ISweepPhaseStats {
|
|
|
194
194
|
|
|
195
195
|
/**
|
|
196
196
|
* The statistics of the system state after a garbage collection run.
|
|
197
|
-
* @
|
|
197
|
+
* @internal
|
|
198
198
|
*/
|
|
199
199
|
export interface IGCStats extends IMarkPhaseStats, ISweepPhaseStats {}
|
|
200
200
|
|
|
201
201
|
/**
|
|
202
202
|
* The types of GC nodes in the GC reference graph.
|
|
203
|
-
* @
|
|
203
|
+
* @internal
|
|
204
204
|
*/
|
|
205
205
|
export const GCNodeType = {
|
|
206
206
|
// Nodes that are for data stores.
|
|
@@ -214,7 +214,7 @@ export const GCNodeType = {
|
|
|
214
214
|
};
|
|
215
215
|
|
|
216
216
|
/**
|
|
217
|
-
* @
|
|
217
|
+
* @internal
|
|
218
218
|
*/
|
|
219
219
|
export type GCNodeType = (typeof GCNodeType)[keyof typeof GCNodeType];
|
|
220
220
|
|
|
@@ -320,7 +320,7 @@ export interface IGarbageCollectorCreateParams {
|
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
/**
|
|
323
|
-
* @
|
|
323
|
+
* @internal
|
|
324
324
|
*/
|
|
325
325
|
export interface IGCRuntimeOptions {
|
|
326
326
|
/**
|
|
@@ -35,7 +35,7 @@ export function createSessionId(): SessionId {
|
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Asserts that the given string is a stable ID.
|
|
38
|
-
* @
|
|
38
|
+
* @internal
|
|
39
39
|
*/
|
|
40
40
|
export function assertIsStableId(stableId: string): StableId {
|
|
41
41
|
assert(isStableId(stableId), 0x4a3 /* Expected a StableId */);
|
|
@@ -52,7 +52,7 @@ export function assertIsSessionId(stableId: string): SessionId {
|
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
54
|
* Generate a random stable ID
|
|
55
|
-
* @
|
|
55
|
+
* @internal
|
|
56
56
|
*/
|
|
57
57
|
export function generateStableId(): StableId {
|
|
58
58
|
return assertIsStableId(v4());
|
|
@@ -61,7 +61,7 @@ export function generateStableId(): StableId {
|
|
|
61
61
|
/**
|
|
62
62
|
* Returns true iff the given string is a valid Version 4, variant 2 UUID
|
|
63
63
|
* 'xxxxxxxx-xxxx-4xxx-vxxx-xxxxxxxxxxxx'
|
|
64
|
-
* @
|
|
64
|
+
* @internal
|
|
65
65
|
*/
|
|
66
66
|
export function isStableId(str: string): str is StableId {
|
|
67
67
|
if (str.length !== 36) {
|
package/src/messageTypes.ts
CHANGED
|
@@ -14,7 +14,7 @@ import { IDataStoreAliasMessage } from "./dataStore";
|
|
|
14
14
|
import { IChunkedOp } from "./opLifecycle";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* @
|
|
17
|
+
* @internal
|
|
18
18
|
*/
|
|
19
19
|
export enum ContainerMessageType {
|
|
20
20
|
// An op to be delivered to store
|
|
@@ -71,7 +71,8 @@ export interface IContainerRuntimeMessageCompatDetails {
|
|
|
71
71
|
* IMPORTANT: when creating one to be serialized, set the properties in the order they appear here.
|
|
72
72
|
* This way stringified values can be compared.
|
|
73
73
|
*/
|
|
74
|
-
interface TypedContainerRuntimeMessage<TType extends ContainerMessageType, TContents>
|
|
74
|
+
interface TypedContainerRuntimeMessage<TType extends ContainerMessageType, TContents>
|
|
75
|
+
extends Partial<RecentlyAddedContainerRuntimeMessageDetails> {
|
|
75
76
|
/** Type of the op, within the ContainerRuntime's domain */
|
|
76
77
|
type: TType;
|
|
77
78
|
/** Domain-specific contents, interpreted according to the type */
|
package/src/packageVersion.ts
CHANGED
|
@@ -227,7 +227,7 @@ export interface IOrderedClientElectionEvents extends IEvent {
|
|
|
227
227
|
|
|
228
228
|
/**
|
|
229
229
|
* Serialized state of IOrderedClientElection.
|
|
230
|
-
* @
|
|
230
|
+
* @internal
|
|
231
231
|
*/
|
|
232
232
|
export interface ISerializedElection {
|
|
233
233
|
/** Sequence number at the time of the latest election. */
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Similar to AbortController, but using promise instead of events
|
|
15
|
-
* @
|
|
15
|
+
* @internal
|
|
16
16
|
*/
|
|
17
17
|
export interface ICancellableSummarizerController extends ISummaryCancellationToken {
|
|
18
18
|
stop(reason: SummarizerStopReason): void;
|
|
@@ -21,7 +21,7 @@ export interface ICancellableSummarizerController extends ISummaryCancellationTo
|
|
|
21
21
|
/**
|
|
22
22
|
* Can be useful in testing as well as in places where caller does not use cancellation.
|
|
23
23
|
* This object implements ISummaryCancellationToken interface but cancellation is never leveraged.
|
|
24
|
-
* @
|
|
24
|
+
* @internal
|
|
25
25
|
*/
|
|
26
26
|
export const neverCancelledSummaryToken: ISummaryCancellationToken = {
|
|
27
27
|
cancelled: false,
|
|
@@ -69,7 +69,7 @@ export const createSummarizingWarning = (errorMessage: string, logged: boolean)
|
|
|
69
69
|
* Summarizer is responsible for coordinating when to generate and send summaries.
|
|
70
70
|
* It is the main entry point for summary work.
|
|
71
71
|
* It is created only by summarizing container (i.e. one with clientType === "summarizer")
|
|
72
|
-
* @
|
|
72
|
+
* @internal
|
|
73
73
|
*/
|
|
74
74
|
export class Summarizer extends TypedEventEmitter<ISummarizerEvents> implements ISummarizer {
|
|
75
75
|
public get ISummarizer() {
|
|
@@ -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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
284
284
|
*/
|
|
285
285
|
export interface SubmitSummaryFailureData extends IRetriableFailureResult {
|
|
286
286
|
stage: SummaryStage;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
/**
|
|
290
|
-
* @
|
|
290
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
+
* @internal
|
|
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
|
/**
|