@fluidframework/container-runtime 2.0.0-dev.7.4.0.215747 → 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 +105 -92
- package/dist/blobManager.d.ts +1 -1
- package/dist/blobManager.js.map +1 -1
- package/dist/container-runtime-alpha.d.ts +231 -1708
- package/dist/container-runtime-beta.d.ts +228 -1706
- package/dist/container-runtime-public.d.ts +228 -1706
- package/dist/container-runtime-untrimmed.d.ts +126 -103
- 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/garbageCollection.d.ts +14 -5
- package/dist/gc/garbageCollection.d.ts.map +1 -1
- package/dist/gc/garbageCollection.js +85 -30
- package/dist/gc/garbageCollection.js.map +1 -1
- package/dist/gc/gcDefinitions.d.ts +33 -11
- package/dist/gc/gcDefinitions.d.ts.map +1 -1
- package/dist/gc/gcDefinitions.js +2 -4
- package/dist/gc/gcDefinitions.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 +0 -39
- package/dist/gc/gcTelemetry.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 +1 -2
- package/dist/gc/index.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/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.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 -1708
- package/lib/container-runtime-beta.d.ts +228 -1706
- package/lib/container-runtime-public.d.ts +228 -1706
- package/lib/container-runtime-untrimmed.d.ts +126 -103
- 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/garbageCollection.d.ts +14 -5
- package/lib/gc/garbageCollection.d.ts.map +1 -1
- package/lib/gc/garbageCollection.js +85 -30
- package/lib/gc/garbageCollection.js.map +1 -1
- package/lib/gc/gcDefinitions.d.ts +33 -11
- package/lib/gc/gcDefinitions.d.ts.map +1 -1
- package/lib/gc/gcDefinitions.js +1 -3
- package/lib/gc/gcDefinitions.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 +1 -40
- package/lib/gc/gcTelemetry.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/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/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.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 +20 -16
- package/src/blobManager.ts +1 -1
- package/src/containerRuntime.ts +20 -23
- package/src/dataStoreRegistry.ts +1 -1
- package/src/gc/garbageCollection.ts +101 -48
- package/src/gc/gcDefinitions.ts +34 -11
- package/src/gc/gcTelemetry.ts +0 -53
- package/src/gc/index.ts +2 -1
- package/src/id-compressor/utilities.ts +3 -3
- package/src/index.ts +2 -0
- 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
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
|
3
|
+
"extends": "../../../common/build/build-common/api-extractor-lint.json",
|
|
4
|
+
"messages": {
|
|
5
|
+
"extractorMessageReporting": {
|
|
6
|
+
// TODO: remove once base config has this enabled as an error
|
|
7
|
+
"ae-incompatible-release-tags": {
|
|
8
|
+
"logLevel": "error",
|
|
9
|
+
"addToApiReportFile": false
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -53,16 +53,16 @@ import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-defi
|
|
|
53
53
|
import { StableId } from '@fluidframework/runtime-definitions';
|
|
54
54
|
import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
55
55
|
|
|
56
|
-
// @
|
|
56
|
+
// @internal
|
|
57
57
|
export const agentSchedulerId = "_scheduler";
|
|
58
58
|
|
|
59
|
-
// @
|
|
59
|
+
// @internal
|
|
60
60
|
export const AllowInactiveRequestHeaderKey = "allowInactive";
|
|
61
61
|
|
|
62
|
-
// @
|
|
62
|
+
// @internal
|
|
63
63
|
export const AllowTombstoneRequestHeaderKey = "allowTombstone";
|
|
64
64
|
|
|
65
|
-
// @
|
|
65
|
+
// @internal
|
|
66
66
|
export function assertIsStableId(stableId: string): StableId;
|
|
67
67
|
|
|
68
68
|
// @internal
|
|
@@ -72,13 +72,13 @@ export type CompatModeBehavior =
|
|
|
72
72
|
/** Fail processing immediately. (The container will close) */
|
|
73
73
|
| "FailToProcess";
|
|
74
74
|
|
|
75
|
-
// @
|
|
75
|
+
// @internal
|
|
76
76
|
export enum CompressionAlgorithms {
|
|
77
77
|
// (undocumented)
|
|
78
78
|
lz4 = "lz4"
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
// @
|
|
81
|
+
// @internal (undocumented)
|
|
82
82
|
export enum ContainerMessageType {
|
|
83
83
|
// (undocumented)
|
|
84
84
|
Alias = "alias",
|
|
@@ -95,9 +95,8 @@ export enum ContainerMessageType {
|
|
|
95
95
|
Rejoin = "rejoin"
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
// @
|
|
98
|
+
// @internal
|
|
99
99
|
export class ContainerRuntime extends TypedEventEmitter<IContainerRuntimeEvents & ISummarizerEvents> implements IContainerRuntime, IRuntime, ISummarizerRuntime, ISummarizerInternalsProvider, IProvideFluidHandleContext {
|
|
100
|
-
// @internal
|
|
101
100
|
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
101
|
// (undocumented)
|
|
103
102
|
protected addContainerStateToSummary(summaryTree: ISummaryTreeWithStats, fullTree: boolean, trackState: boolean, telemetryContext?: ITelemetryContext): void;
|
|
@@ -119,7 +118,7 @@ export class ContainerRuntime extends TypedEventEmitter<IContainerRuntimeEvents
|
|
|
119
118
|
get connected(): boolean;
|
|
120
119
|
// (undocumented)
|
|
121
120
|
createDataStore(pkg: string | string[]): Promise<IDataStore>;
|
|
122
|
-
// @
|
|
121
|
+
// @deprecated (undocumented)
|
|
123
122
|
_createDataStoreWithProps(pkg: string | string[], props?: any, id?: string): Promise<IDataStore>;
|
|
124
123
|
// (undocumented)
|
|
125
124
|
createDetachedDataStore(pkg: Readonly<string[]>): IFluidDataStoreContextDetached;
|
|
@@ -240,10 +239,10 @@ export interface ContainerRuntimeMessage {
|
|
|
240
239
|
type: ContainerMessageType;
|
|
241
240
|
}
|
|
242
241
|
|
|
243
|
-
// @
|
|
242
|
+
// @internal (undocumented)
|
|
244
243
|
export const DefaultSummaryConfiguration: ISummaryConfiguration;
|
|
245
244
|
|
|
246
|
-
// @
|
|
245
|
+
// @internal (undocumented)
|
|
247
246
|
export type EnqueueSummarizeResult = (ISummarizeResults & {
|
|
248
247
|
readonly alreadyEnqueued?: undefined;
|
|
249
248
|
}) | (ISummarizeResults & {
|
|
@@ -254,7 +253,7 @@ export type EnqueueSummarizeResult = (ISummarizeResults & {
|
|
|
254
253
|
readonly overridden?: undefined;
|
|
255
254
|
};
|
|
256
255
|
|
|
257
|
-
// @
|
|
256
|
+
// @internal (undocumented)
|
|
258
257
|
export class FluidDataStoreRegistry implements IFluidDataStoreRegistry {
|
|
259
258
|
constructor(namedEntries: NamedFluidDataStoreRegistryEntries);
|
|
260
259
|
// (undocumented)
|
|
@@ -263,13 +262,13 @@ export class FluidDataStoreRegistry implements IFluidDataStoreRegistry {
|
|
|
263
262
|
get IFluidDataStoreRegistry(): this;
|
|
264
263
|
}
|
|
265
264
|
|
|
266
|
-
// @
|
|
265
|
+
// @internal (undocumented)
|
|
267
266
|
export interface GCFeatureMatrix {
|
|
268
267
|
sweepGeneration?: number;
|
|
269
268
|
tombstoneGeneration?: number;
|
|
270
269
|
}
|
|
271
270
|
|
|
272
|
-
// @
|
|
271
|
+
// @internal
|
|
273
272
|
export const GCNodeType: {
|
|
274
273
|
DataStore: string;
|
|
275
274
|
SubDataStore: string;
|
|
@@ -277,16 +276,16 @@ export const GCNodeType: {
|
|
|
277
276
|
Other: string;
|
|
278
277
|
};
|
|
279
278
|
|
|
280
|
-
// @
|
|
279
|
+
// @internal (undocumented)
|
|
281
280
|
export type GCNodeType = (typeof GCNodeType)[keyof typeof GCNodeType];
|
|
282
281
|
|
|
283
|
-
// @
|
|
282
|
+
// @internal (undocumented)
|
|
284
283
|
export type GCVersion = number;
|
|
285
284
|
|
|
286
|
-
// @
|
|
285
|
+
// @internal
|
|
287
286
|
export function generateStableId(): StableId;
|
|
288
287
|
|
|
289
|
-
// @
|
|
288
|
+
// @internal
|
|
290
289
|
export interface IAckedSummary {
|
|
291
290
|
// (undocumented)
|
|
292
291
|
readonly summaryAck: ISummaryAckMessage;
|
|
@@ -294,7 +293,7 @@ export interface IAckedSummary {
|
|
|
294
293
|
readonly summaryOp: ISummaryOpMessage;
|
|
295
294
|
}
|
|
296
295
|
|
|
297
|
-
// @
|
|
296
|
+
// @internal (undocumented)
|
|
298
297
|
export interface IAckSummaryResult {
|
|
299
298
|
// (undocumented)
|
|
300
299
|
readonly ackNackDuration: number;
|
|
@@ -302,7 +301,7 @@ export interface IAckSummaryResult {
|
|
|
302
301
|
readonly summaryAckOp: ISummaryAckMessage;
|
|
303
302
|
}
|
|
304
303
|
|
|
305
|
-
// @
|
|
304
|
+
// @internal
|
|
306
305
|
export interface IBaseSummarizeResult {
|
|
307
306
|
readonly error: any;
|
|
308
307
|
// (undocumented)
|
|
@@ -312,7 +311,7 @@ export interface IBaseSummarizeResult {
|
|
|
312
311
|
readonly stage: "base";
|
|
313
312
|
}
|
|
314
313
|
|
|
315
|
-
// @
|
|
314
|
+
// @internal
|
|
316
315
|
export interface IBlobManagerLoadInfo {
|
|
317
316
|
// (undocumented)
|
|
318
317
|
ids?: string[];
|
|
@@ -320,7 +319,7 @@ export interface IBlobManagerLoadInfo {
|
|
|
320
319
|
redirectTable?: [string, string][];
|
|
321
320
|
}
|
|
322
321
|
|
|
323
|
-
// @
|
|
322
|
+
// @internal (undocumented)
|
|
324
323
|
export interface IBroadcastSummaryResult {
|
|
325
324
|
// (undocumented)
|
|
326
325
|
readonly broadcastDuration: number;
|
|
@@ -328,19 +327,19 @@ export interface IBroadcastSummaryResult {
|
|
|
328
327
|
readonly summarizeOp: ISummaryOpMessage;
|
|
329
328
|
}
|
|
330
329
|
|
|
331
|
-
// @
|
|
330
|
+
// @internal
|
|
332
331
|
export interface ICancellableSummarizerController extends ISummaryCancellationToken {
|
|
333
332
|
// (undocumented)
|
|
334
333
|
stop(reason: SummarizerStopReason): void;
|
|
335
334
|
}
|
|
336
335
|
|
|
337
|
-
// @
|
|
336
|
+
// @internal
|
|
338
337
|
export interface ICancellationToken<T> {
|
|
339
338
|
readonly cancelled: boolean;
|
|
340
339
|
readonly waitCancelled: Promise<T>;
|
|
341
340
|
}
|
|
342
341
|
|
|
343
|
-
// @
|
|
342
|
+
// @internal (undocumented)
|
|
344
343
|
export interface IChunkedOp {
|
|
345
344
|
// (undocumented)
|
|
346
345
|
chunkId: number;
|
|
@@ -356,7 +355,7 @@ export interface IChunkedOp {
|
|
|
356
355
|
totalChunks: number;
|
|
357
356
|
}
|
|
358
357
|
|
|
359
|
-
// @
|
|
358
|
+
// @internal
|
|
360
359
|
export interface IClientSummaryWatcher extends IDisposable {
|
|
361
360
|
// (undocumented)
|
|
362
361
|
waitFlushed(): Promise<IAckedSummary | undefined>;
|
|
@@ -364,13 +363,13 @@ export interface IClientSummaryWatcher extends IDisposable {
|
|
|
364
363
|
watchSummary(clientSequenceNumber: number): ISummary;
|
|
365
364
|
}
|
|
366
365
|
|
|
367
|
-
// @
|
|
366
|
+
// @internal
|
|
368
367
|
export interface ICompressionRuntimeOptions {
|
|
369
368
|
readonly compressionAlgorithm: CompressionAlgorithms;
|
|
370
369
|
readonly minimumBatchSizeInBytes: number;
|
|
371
370
|
}
|
|
372
371
|
|
|
373
|
-
// @
|
|
372
|
+
// @internal (undocumented)
|
|
374
373
|
export interface IConnectableRuntime {
|
|
375
374
|
// (undocumented)
|
|
376
375
|
readonly clientId: string | undefined;
|
|
@@ -387,7 +386,7 @@ export interface IContainerRuntimeMessageCompatDetails {
|
|
|
387
386
|
behavior: CompatModeBehavior;
|
|
388
387
|
}
|
|
389
388
|
|
|
390
|
-
// @
|
|
389
|
+
// @internal (undocumented)
|
|
391
390
|
export interface IContainerRuntimeMetadata extends ICreateContainerMetadata, IGCMetadata {
|
|
392
391
|
readonly disableIsolatedChannels?: true;
|
|
393
392
|
readonly idCompressorEnabled?: boolean;
|
|
@@ -398,7 +397,7 @@ export interface IContainerRuntimeMetadata extends ICreateContainerMetadata, IGC
|
|
|
398
397
|
readonly telemetryDocumentId?: string;
|
|
399
398
|
}
|
|
400
399
|
|
|
401
|
-
// @
|
|
400
|
+
// @internal
|
|
402
401
|
export interface IContainerRuntimeOptions {
|
|
403
402
|
readonly chunkSizeInBytes?: number;
|
|
404
403
|
readonly compressionOptions?: ICompressionRuntimeOptions;
|
|
@@ -414,19 +413,19 @@ export interface IContainerRuntimeOptions {
|
|
|
414
413
|
readonly summaryOptions?: ISummaryRuntimeOptions;
|
|
415
414
|
}
|
|
416
415
|
|
|
417
|
-
// @
|
|
416
|
+
// @internal (undocumented)
|
|
418
417
|
export interface ICreateContainerMetadata {
|
|
419
418
|
createContainerRuntimeVersion?: string;
|
|
420
419
|
createContainerTimestamp?: number;
|
|
421
420
|
}
|
|
422
421
|
|
|
423
|
-
// @
|
|
422
|
+
// @internal
|
|
424
423
|
export interface IEnqueueSummarizeOptions extends IOnDemandSummarizeOptions {
|
|
425
424
|
readonly afterSequenceNumber?: number;
|
|
426
425
|
readonly override?: boolean;
|
|
427
426
|
}
|
|
428
427
|
|
|
429
|
-
// @
|
|
428
|
+
// @internal (undocumented)
|
|
430
429
|
export interface IGCMetadata {
|
|
431
430
|
readonly gcFeature?: GCVersion;
|
|
432
431
|
readonly gcFeatureMatrix?: GCFeatureMatrix;
|
|
@@ -436,7 +435,7 @@ export interface IGCMetadata {
|
|
|
436
435
|
readonly sweepTimeoutMs?: number;
|
|
437
436
|
}
|
|
438
437
|
|
|
439
|
-
// @
|
|
438
|
+
// @internal (undocumented)
|
|
440
439
|
export interface IGCRuntimeOptions {
|
|
441
440
|
[key: string]: any;
|
|
442
441
|
disableGC?: boolean;
|
|
@@ -445,20 +444,11 @@ export interface IGCRuntimeOptions {
|
|
|
445
444
|
sessionExpiryTimeoutMs?: number;
|
|
446
445
|
}
|
|
447
446
|
|
|
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;
|
|
447
|
+
// @internal
|
|
448
|
+
export interface IGCStats extends IMarkPhaseStats, ISweepPhaseStats {
|
|
459
449
|
}
|
|
460
450
|
|
|
461
|
-
// @
|
|
451
|
+
// @internal
|
|
462
452
|
export interface IGeneratedSummaryStats extends ISummaryStats {
|
|
463
453
|
readonly dataStoreCount: number;
|
|
464
454
|
readonly gcBlobNodeCount?: number;
|
|
@@ -468,7 +458,7 @@ export interface IGeneratedSummaryStats extends ISummaryStats {
|
|
|
468
458
|
readonly summaryNumber: number;
|
|
469
459
|
}
|
|
470
460
|
|
|
471
|
-
// @
|
|
461
|
+
// @internal
|
|
472
462
|
export interface IGenerateSummaryTreeResult extends Omit<IBaseSummarizeResult, "stage"> {
|
|
473
463
|
readonly forcedFullTree: boolean;
|
|
474
464
|
readonly generateDuration: number;
|
|
@@ -478,7 +468,20 @@ export interface IGenerateSummaryTreeResult extends Omit<IBaseSummarizeResult, "
|
|
|
478
468
|
readonly summaryTree: ISummaryTree;
|
|
479
469
|
}
|
|
480
470
|
|
|
481
|
-
// @
|
|
471
|
+
// @internal
|
|
472
|
+
export interface IMarkPhaseStats {
|
|
473
|
+
attachmentBlobCount: number;
|
|
474
|
+
dataStoreCount: number;
|
|
475
|
+
nodeCount: number;
|
|
476
|
+
unrefAttachmentBlobCount: number;
|
|
477
|
+
unrefDataStoreCount: number;
|
|
478
|
+
unrefNodeCount: number;
|
|
479
|
+
updatedAttachmentBlobCount: number;
|
|
480
|
+
updatedDataStoreCount: number;
|
|
481
|
+
updatedNodeCount: number;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
// @internal (undocumented)
|
|
482
485
|
export interface INackSummaryResult extends IRetriableFailureResult {
|
|
483
486
|
// (undocumented)
|
|
484
487
|
readonly ackNackDuration: number;
|
|
@@ -486,15 +489,15 @@ export interface INackSummaryResult extends IRetriableFailureResult {
|
|
|
486
489
|
readonly summaryNackOp: ISummaryNackMessage;
|
|
487
490
|
}
|
|
488
491
|
|
|
489
|
-
// @
|
|
492
|
+
// @internal
|
|
490
493
|
export const InactiveResponseHeaderKey = "isInactive";
|
|
491
494
|
|
|
492
|
-
// @
|
|
495
|
+
// @internal (undocumented)
|
|
493
496
|
export interface IOnDemandSummarizeOptions extends ISummarizeOptions {
|
|
494
497
|
readonly reason: string;
|
|
495
498
|
}
|
|
496
499
|
|
|
497
|
-
// @
|
|
500
|
+
// @internal
|
|
498
501
|
export interface IRefreshSummaryAckOptions {
|
|
499
502
|
readonly ackHandle: string;
|
|
500
503
|
readonly proposalHandle: string | undefined;
|
|
@@ -502,26 +505,26 @@ export interface IRefreshSummaryAckOptions {
|
|
|
502
505
|
readonly summaryRefSeq: number;
|
|
503
506
|
}
|
|
504
507
|
|
|
505
|
-
// @
|
|
508
|
+
// @internal
|
|
506
509
|
export interface IRetriableFailureResult {
|
|
507
510
|
// (undocumented)
|
|
508
511
|
readonly retryAfterSeconds?: number;
|
|
509
512
|
}
|
|
510
513
|
|
|
511
|
-
// @
|
|
514
|
+
// @internal
|
|
512
515
|
export interface ISerializedElection {
|
|
513
516
|
readonly electedClientId: string | undefined;
|
|
514
517
|
readonly electedParentId: string | undefined;
|
|
515
518
|
readonly electionSequenceNumber: number;
|
|
516
519
|
}
|
|
517
520
|
|
|
518
|
-
// @
|
|
521
|
+
// @internal @deprecated (undocumented)
|
|
519
522
|
export function isRuntimeMessage(message: ISequencedDocumentMessage): boolean;
|
|
520
523
|
|
|
521
|
-
// @
|
|
524
|
+
// @internal
|
|
522
525
|
export function isStableId(str: string): str is StableId;
|
|
523
526
|
|
|
524
|
-
// @
|
|
527
|
+
// @internal
|
|
525
528
|
export interface ISubmitSummaryOpResult extends Omit<IUploadSummaryResult, "stage" | "error"> {
|
|
526
529
|
readonly clientSequenceNumber: number;
|
|
527
530
|
// (undocumented)
|
|
@@ -529,14 +532,14 @@ export interface ISubmitSummaryOpResult extends Omit<IUploadSummaryResult, "stag
|
|
|
529
532
|
readonly submitOpDuration: number;
|
|
530
533
|
}
|
|
531
534
|
|
|
532
|
-
// @
|
|
535
|
+
// @internal (undocumented)
|
|
533
536
|
export interface ISubmitSummaryOptions extends ISummarizeOptions {
|
|
534
537
|
readonly cancellationToken: ISummaryCancellationToken;
|
|
535
538
|
readonly finalAttempt?: boolean;
|
|
536
539
|
readonly summaryLogger: ITelemetryLoggerExt;
|
|
537
540
|
}
|
|
538
541
|
|
|
539
|
-
// @
|
|
542
|
+
// @internal (undocumented)
|
|
540
543
|
export interface ISummarizeEventProps {
|
|
541
544
|
// (undocumented)
|
|
542
545
|
currentAttempt: number;
|
|
@@ -548,14 +551,14 @@ export interface ISummarizeEventProps {
|
|
|
548
551
|
result: "success" | "failure" | "canceled";
|
|
549
552
|
}
|
|
550
553
|
|
|
551
|
-
// @
|
|
554
|
+
// @internal
|
|
552
555
|
export interface ISummarizeOptions {
|
|
553
556
|
readonly fullTree?: boolean;
|
|
554
557
|
// @deprecated
|
|
555
558
|
readonly refreshLatestAck?: boolean;
|
|
556
559
|
}
|
|
557
560
|
|
|
558
|
-
// @
|
|
561
|
+
// @internal (undocumented)
|
|
559
562
|
export interface ISummarizer extends IEventProvider<ISummarizerEvents> {
|
|
560
563
|
// (undocumented)
|
|
561
564
|
close(): void;
|
|
@@ -568,26 +571,26 @@ export interface ISummarizer extends IEventProvider<ISummarizerEvents> {
|
|
|
568
571
|
summarizeOnDemand(options: IOnDemandSummarizeOptions): ISummarizeResults;
|
|
569
572
|
}
|
|
570
573
|
|
|
571
|
-
// @
|
|
574
|
+
// @internal (undocumented)
|
|
572
575
|
export interface ISummarizeResults {
|
|
573
576
|
readonly receivedSummaryAckOrNack: Promise<SummarizeResultPart<IAckSummaryResult, INackSummaryResult>>;
|
|
574
577
|
readonly summaryOpBroadcasted: Promise<SummarizeResultPart<IBroadcastSummaryResult>>;
|
|
575
578
|
readonly summarySubmitted: Promise<SummarizeResultPart<SubmitSummaryResult, SubmitSummaryFailureData>>;
|
|
576
579
|
}
|
|
577
580
|
|
|
578
|
-
// @
|
|
581
|
+
// @internal (undocumented)
|
|
579
582
|
export interface ISummarizerEvents extends IEvent {
|
|
580
583
|
// (undocumented)
|
|
581
584
|
(event: "summarize", listener: (props: ISummarizeEventProps) => void): any;
|
|
582
585
|
}
|
|
583
586
|
|
|
584
|
-
// @
|
|
587
|
+
// @internal (undocumented)
|
|
585
588
|
export interface ISummarizerInternalsProvider {
|
|
586
589
|
refreshLatestSummaryAck(options: IRefreshSummaryAckOptions): Promise<void>;
|
|
587
590
|
submitSummary(options: ISubmitSummaryOptions): Promise<SubmitSummaryResult>;
|
|
588
591
|
}
|
|
589
592
|
|
|
590
|
-
// @
|
|
593
|
+
// @internal (undocumented)
|
|
591
594
|
export interface ISummarizerRuntime extends IConnectableRuntime {
|
|
592
595
|
// (undocumented)
|
|
593
596
|
closeFn(): void;
|
|
@@ -604,7 +607,7 @@ export interface ISummarizerRuntime extends IConnectableRuntime {
|
|
|
604
607
|
readonly summarizerClientId: string | undefined;
|
|
605
608
|
}
|
|
606
609
|
|
|
607
|
-
// @
|
|
610
|
+
// @internal (undocumented)
|
|
608
611
|
export interface ISummarizingWarning extends ContainerWarning {
|
|
609
612
|
// (undocumented)
|
|
610
613
|
readonly errorType: "summarizingError";
|
|
@@ -612,7 +615,7 @@ export interface ISummarizingWarning extends ContainerWarning {
|
|
|
612
615
|
readonly logged: boolean;
|
|
613
616
|
}
|
|
614
617
|
|
|
615
|
-
// @
|
|
618
|
+
// @internal
|
|
616
619
|
export interface ISummary {
|
|
617
620
|
// (undocumented)
|
|
618
621
|
readonly clientId: string;
|
|
@@ -624,7 +627,7 @@ export interface ISummary {
|
|
|
624
627
|
waitBroadcast(): Promise<ISummaryOpMessage>;
|
|
625
628
|
}
|
|
626
629
|
|
|
627
|
-
// @
|
|
630
|
+
// @internal
|
|
628
631
|
export interface ISummaryAckMessage extends ISequencedDocumentMessage {
|
|
629
632
|
// (undocumented)
|
|
630
633
|
contents: ISummaryAck;
|
|
@@ -632,38 +635,38 @@ export interface ISummaryAckMessage extends ISequencedDocumentMessage {
|
|
|
632
635
|
type: MessageType.SummaryAck;
|
|
633
636
|
}
|
|
634
637
|
|
|
635
|
-
// @
|
|
638
|
+
// @internal (undocumented)
|
|
636
639
|
export interface ISummaryBaseConfiguration {
|
|
637
640
|
initialSummarizerDelayMs: number;
|
|
638
641
|
maxAckWaitTime: number;
|
|
639
642
|
maxOpsSinceLastSummary: number;
|
|
640
643
|
}
|
|
641
644
|
|
|
642
|
-
// @
|
|
645
|
+
// @internal
|
|
643
646
|
export type ISummaryCancellationToken = ICancellationToken<SummarizerStopReason>;
|
|
644
647
|
|
|
645
|
-
// @
|
|
648
|
+
// @internal (undocumented)
|
|
646
649
|
export interface ISummaryCollectionOpEvents extends IEvent {
|
|
647
650
|
// (undocumented)
|
|
648
651
|
(event: OpActionEventName, listener: OpActionEventListener): any;
|
|
649
652
|
}
|
|
650
653
|
|
|
651
|
-
// @
|
|
654
|
+
// @internal (undocumented)
|
|
652
655
|
export type ISummaryConfiguration = ISummaryConfigurationDisableSummarizer | ISummaryConfigurationDisableHeuristics | ISummaryConfigurationHeuristics;
|
|
653
656
|
|
|
654
|
-
// @
|
|
657
|
+
// @internal (undocumented)
|
|
655
658
|
export interface ISummaryConfigurationDisableHeuristics extends ISummaryBaseConfiguration {
|
|
656
659
|
// (undocumented)
|
|
657
660
|
state: "disableHeuristics";
|
|
658
661
|
}
|
|
659
662
|
|
|
660
|
-
// @
|
|
663
|
+
// @internal (undocumented)
|
|
661
664
|
export interface ISummaryConfigurationDisableSummarizer {
|
|
662
665
|
// (undocumented)
|
|
663
666
|
state: "disabled";
|
|
664
667
|
}
|
|
665
668
|
|
|
666
|
-
// @
|
|
669
|
+
// @internal (undocumented)
|
|
667
670
|
export interface ISummaryConfigurationHeuristics extends ISummaryBaseConfiguration {
|
|
668
671
|
maxIdleTime: number;
|
|
669
672
|
maxOps: number;
|
|
@@ -677,10 +680,10 @@ export interface ISummaryConfigurationHeuristics extends ISummaryBaseConfigurati
|
|
|
677
680
|
state: "enabled";
|
|
678
681
|
}
|
|
679
682
|
|
|
680
|
-
// @
|
|
683
|
+
// @internal
|
|
681
684
|
export type ISummaryMetadataMessage = Pick<ISequencedDocumentMessage, "clientId" | "clientSequenceNumber" | "minimumSequenceNumber" | "referenceSequenceNumber" | "sequenceNumber" | "timestamp" | "type">;
|
|
682
685
|
|
|
683
|
-
// @
|
|
686
|
+
// @internal
|
|
684
687
|
export interface ISummaryNackMessage extends ISequencedDocumentMessage {
|
|
685
688
|
// (undocumented)
|
|
686
689
|
contents: ISummaryNack;
|
|
@@ -688,7 +691,7 @@ export interface ISummaryNackMessage extends ISequencedDocumentMessage {
|
|
|
688
691
|
type: MessageType.SummaryNack;
|
|
689
692
|
}
|
|
690
693
|
|
|
691
|
-
// @
|
|
694
|
+
// @internal
|
|
692
695
|
export interface ISummaryOpMessage extends ISequencedDocumentMessage {
|
|
693
696
|
// (undocumented)
|
|
694
697
|
contents: ISummaryContent;
|
|
@@ -696,14 +699,24 @@ export interface ISummaryOpMessage extends ISequencedDocumentMessage {
|
|
|
696
699
|
type: MessageType.Summarize;
|
|
697
700
|
}
|
|
698
701
|
|
|
699
|
-
// @
|
|
702
|
+
// @internal (undocumented)
|
|
700
703
|
export interface ISummaryRuntimeOptions {
|
|
701
704
|
// @deprecated
|
|
702
705
|
initialSummarizerDelayMs?: number;
|
|
703
706
|
summaryConfigOverrides?: ISummaryConfiguration;
|
|
704
707
|
}
|
|
705
708
|
|
|
706
|
-
// @
|
|
709
|
+
// @internal
|
|
710
|
+
export interface ISweepPhaseStats {
|
|
711
|
+
deletedAttachmentBlobCount: number;
|
|
712
|
+
deletedDataStoreCount: number;
|
|
713
|
+
deletedNodeCount: number;
|
|
714
|
+
lifetimeAttachmentBlobCount: number;
|
|
715
|
+
lifetimeDataStoreCount: number;
|
|
716
|
+
lifetimeNodeCount: number;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
// @internal
|
|
707
720
|
export interface IUploadSummaryResult extends Omit<IGenerateSummaryTreeResult, "stage"> {
|
|
708
721
|
readonly handle: string;
|
|
709
722
|
// (undocumented)
|
|
@@ -711,13 +724,13 @@ export interface IUploadSummaryResult extends Omit<IGenerateSummaryTreeResult, "
|
|
|
711
724
|
readonly uploadDuration: number;
|
|
712
725
|
}
|
|
713
726
|
|
|
714
|
-
// @
|
|
727
|
+
// @internal
|
|
715
728
|
export const neverCancelledSummaryToken: ISummaryCancellationToken;
|
|
716
729
|
|
|
717
|
-
// @
|
|
730
|
+
// @internal (undocumented)
|
|
718
731
|
export type OpActionEventListener = (op: ISequencedDocumentMessage) => void;
|
|
719
732
|
|
|
720
|
-
// @
|
|
733
|
+
// @internal (undocumented)
|
|
721
734
|
export type OpActionEventName = MessageType.Summarize | MessageType.SummaryAck | MessageType.SummaryNack | "default";
|
|
722
735
|
|
|
723
736
|
// @internal
|
|
@@ -725,13 +738,13 @@ export interface RecentlyAddedContainerRuntimeMessageDetails {
|
|
|
725
738
|
compatDetails: IContainerRuntimeMessageCompatDetails;
|
|
726
739
|
}
|
|
727
740
|
|
|
728
|
-
// @
|
|
741
|
+
// @internal
|
|
729
742
|
export enum RuntimeHeaders {
|
|
730
743
|
viaHandle = "viaHandle",
|
|
731
744
|
wait = "wait"
|
|
732
745
|
}
|
|
733
746
|
|
|
734
|
-
// @
|
|
747
|
+
// @internal @deprecated (undocumented)
|
|
735
748
|
export enum RuntimeMessage {
|
|
736
749
|
// (undocumented)
|
|
737
750
|
Alias = "alias",
|
|
@@ -749,16 +762,16 @@ export enum RuntimeMessage {
|
|
|
749
762
|
Rejoin = "rejoin"
|
|
750
763
|
}
|
|
751
764
|
|
|
752
|
-
// @
|
|
765
|
+
// @internal
|
|
753
766
|
export interface SubmitSummaryFailureData extends IRetriableFailureResult {
|
|
754
767
|
// (undocumented)
|
|
755
768
|
stage: SummaryStage;
|
|
756
769
|
}
|
|
757
770
|
|
|
758
|
-
// @
|
|
771
|
+
// @internal
|
|
759
772
|
export type SubmitSummaryResult = IBaseSummarizeResult | IGenerateSummaryTreeResult | IUploadSummaryResult | ISubmitSummaryOpResult;
|
|
760
773
|
|
|
761
|
-
// @
|
|
774
|
+
// @internal
|
|
762
775
|
export class Summarizer extends TypedEventEmitter<ISummarizerEvents> implements ISummarizer {
|
|
763
776
|
constructor(
|
|
764
777
|
runtime: ISummarizerRuntime, configurationGetter: () => ISummaryConfiguration,
|
|
@@ -784,7 +797,7 @@ export class Summarizer extends TypedEventEmitter<ISummarizerEvents> implements
|
|
|
784
797
|
readonly summaryCollection: SummaryCollection;
|
|
785
798
|
}
|
|
786
799
|
|
|
787
|
-
// @
|
|
800
|
+
// @internal (undocumented)
|
|
788
801
|
export type SummarizeResultPart<TSuccess, TFailure = undefined> = {
|
|
789
802
|
success: true;
|
|
790
803
|
data: TSuccess;
|
|
@@ -795,7 +808,7 @@ export type SummarizeResultPart<TSuccess, TFailure = undefined> = {
|
|
|
795
808
|
error: any;
|
|
796
809
|
};
|
|
797
810
|
|
|
798
|
-
// @
|
|
811
|
+
// @internal (undocumented)
|
|
799
812
|
export type SummarizerStopReason =
|
|
800
813
|
/** Summarizer client failed to summarize in all 3 consecutive attempts. */
|
|
801
814
|
"failToSummarize"
|
|
@@ -822,7 +835,7 @@ export type SummarizerStopReason =
|
|
|
822
835
|
*/
|
|
823
836
|
| "latestSummaryStateStale";
|
|
824
837
|
|
|
825
|
-
// @
|
|
838
|
+
// @internal
|
|
826
839
|
export class SummaryCollection extends TypedEventEmitter<ISummaryCollectionOpEvents> {
|
|
827
840
|
constructor(deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>, logger: ITelemetryLoggerExt);
|
|
828
841
|
// (undocumented)
|
|
@@ -846,13 +859,13 @@ export class SummaryCollection extends TypedEventEmitter<ISummaryCollectionOpEve
|
|
|
846
859
|
waitSummaryAck(referenceSequenceNumber: number): Promise<IAckedSummary>;
|
|
847
860
|
}
|
|
848
861
|
|
|
849
|
-
// @
|
|
862
|
+
// @internal
|
|
850
863
|
export type SummaryStage = SubmitSummaryResult["stage"] | "unknown";
|
|
851
864
|
|
|
852
865
|
// @internal
|
|
853
866
|
export function TEST_requestSummarizer(loader: ILoader, url: string): Promise<ISummarizer>;
|
|
854
867
|
|
|
855
|
-
// @
|
|
868
|
+
// @internal
|
|
856
869
|
export const TombstoneResponseHeaderKey = "isTombstoned";
|
|
857
870
|
|
|
858
871
|
// @internal
|
package/dist/blobManager.d.ts
CHANGED