@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.
Files changed (139) hide show
  1. package/api-extractor-lint.json +13 -0
  2. package/api-report/container-runtime.api.md +105 -92
  3. package/dist/blobManager.d.ts +1 -1
  4. package/dist/blobManager.js.map +1 -1
  5. package/dist/container-runtime-alpha.d.ts +231 -1708
  6. package/dist/container-runtime-beta.d.ts +228 -1706
  7. package/dist/container-runtime-public.d.ts +228 -1706
  8. package/dist/container-runtime-untrimmed.d.ts +126 -103
  9. package/dist/containerRuntime.d.ts +20 -23
  10. package/dist/containerRuntime.d.ts.map +1 -1
  11. package/dist/containerRuntime.js +12 -15
  12. package/dist/containerRuntime.js.map +1 -1
  13. package/dist/dataStoreRegistry.d.ts +1 -1
  14. package/dist/dataStoreRegistry.js +1 -1
  15. package/dist/dataStoreRegistry.js.map +1 -1
  16. package/dist/gc/garbageCollection.d.ts +14 -5
  17. package/dist/gc/garbageCollection.d.ts.map +1 -1
  18. package/dist/gc/garbageCollection.js +85 -30
  19. package/dist/gc/garbageCollection.js.map +1 -1
  20. package/dist/gc/gcDefinitions.d.ts +33 -11
  21. package/dist/gc/gcDefinitions.d.ts.map +1 -1
  22. package/dist/gc/gcDefinitions.js +2 -4
  23. package/dist/gc/gcDefinitions.js.map +1 -1
  24. package/dist/gc/gcTelemetry.d.ts +0 -5
  25. package/dist/gc/gcTelemetry.d.ts.map +1 -1
  26. package/dist/gc/gcTelemetry.js +0 -39
  27. package/dist/gc/gcTelemetry.js.map +1 -1
  28. package/dist/gc/index.d.ts +1 -1
  29. package/dist/gc/index.d.ts.map +1 -1
  30. package/dist/gc/index.js +1 -2
  31. package/dist/gc/index.js.map +1 -1
  32. package/dist/id-compressor/utilities.d.ts +3 -3
  33. package/dist/id-compressor/utilities.js +3 -3
  34. package/dist/id-compressor/utilities.js.map +1 -1
  35. package/dist/index.d.ts +1 -1
  36. package/dist/index.d.ts.map +1 -1
  37. package/dist/index.js.map +1 -1
  38. package/dist/messageTypes.d.ts +2 -2
  39. package/dist/messageTypes.d.ts.map +1 -1
  40. package/dist/messageTypes.js +1 -1
  41. package/dist/messageTypes.js.map +1 -1
  42. package/dist/opLifecycle/definitions.d.ts +1 -1
  43. package/dist/opLifecycle/definitions.js.map +1 -1
  44. package/dist/packageVersion.d.ts +1 -1
  45. package/dist/packageVersion.js +1 -1
  46. package/dist/packageVersion.js.map +1 -1
  47. package/dist/summary/orderedClientElection.d.ts +1 -1
  48. package/dist/summary/orderedClientElection.js.map +1 -1
  49. package/dist/summary/runWhileConnectedCoordinator.d.ts +2 -2
  50. package/dist/summary/runWhileConnectedCoordinator.js +1 -1
  51. package/dist/summary/runWhileConnectedCoordinator.js.map +1 -1
  52. package/dist/summary/summarizer.d.ts +1 -1
  53. package/dist/summary/summarizer.js +1 -1
  54. package/dist/summary/summarizer.js.map +1 -1
  55. package/dist/summary/summarizerTypes.d.ts +30 -30
  56. package/dist/summary/summarizerTypes.js.map +1 -1
  57. package/dist/summary/summaryCollection.d.ts +10 -10
  58. package/dist/summary/summaryCollection.js +1 -1
  59. package/dist/summary/summaryCollection.js.map +1 -1
  60. package/dist/summary/summaryFormat.d.ts +3 -3
  61. package/dist/summary/summaryFormat.js.map +1 -1
  62. package/lib/blobManager.d.ts +1 -1
  63. package/lib/blobManager.js.map +1 -1
  64. package/lib/container-runtime-alpha.d.ts +231 -1708
  65. package/lib/container-runtime-beta.d.ts +228 -1706
  66. package/lib/container-runtime-public.d.ts +228 -1706
  67. package/lib/container-runtime-untrimmed.d.ts +126 -103
  68. package/lib/containerRuntime.d.ts +20 -23
  69. package/lib/containerRuntime.d.ts.map +1 -1
  70. package/lib/containerRuntime.js +12 -15
  71. package/lib/containerRuntime.js.map +1 -1
  72. package/lib/dataStoreRegistry.d.ts +1 -1
  73. package/lib/dataStoreRegistry.js +1 -1
  74. package/lib/dataStoreRegistry.js.map +1 -1
  75. package/lib/gc/garbageCollection.d.ts +14 -5
  76. package/lib/gc/garbageCollection.d.ts.map +1 -1
  77. package/lib/gc/garbageCollection.js +85 -30
  78. package/lib/gc/garbageCollection.js.map +1 -1
  79. package/lib/gc/gcDefinitions.d.ts +33 -11
  80. package/lib/gc/gcDefinitions.d.ts.map +1 -1
  81. package/lib/gc/gcDefinitions.js +1 -3
  82. package/lib/gc/gcDefinitions.js.map +1 -1
  83. package/lib/gc/gcTelemetry.d.ts +0 -5
  84. package/lib/gc/gcTelemetry.d.ts.map +1 -1
  85. package/lib/gc/gcTelemetry.js +1 -40
  86. package/lib/gc/gcTelemetry.js.map +1 -1
  87. package/lib/gc/index.d.ts +1 -1
  88. package/lib/gc/index.d.ts.map +1 -1
  89. package/lib/gc/index.js +1 -1
  90. package/lib/gc/index.js.map +1 -1
  91. package/lib/id-compressor/utilities.d.ts +3 -3
  92. package/lib/id-compressor/utilities.js +3 -3
  93. package/lib/id-compressor/utilities.js.map +1 -1
  94. package/lib/index.d.ts +1 -1
  95. package/lib/index.d.ts.map +1 -1
  96. package/lib/index.js.map +1 -1
  97. package/lib/messageTypes.d.ts +2 -2
  98. package/lib/messageTypes.d.ts.map +1 -1
  99. package/lib/messageTypes.js +1 -1
  100. package/lib/messageTypes.js.map +1 -1
  101. package/lib/opLifecycle/definitions.d.ts +1 -1
  102. package/lib/opLifecycle/definitions.js.map +1 -1
  103. package/lib/packageVersion.d.ts +1 -1
  104. package/lib/packageVersion.js +1 -1
  105. package/lib/packageVersion.js.map +1 -1
  106. package/lib/summary/orderedClientElection.d.ts +1 -1
  107. package/lib/summary/orderedClientElection.js.map +1 -1
  108. package/lib/summary/runWhileConnectedCoordinator.d.ts +2 -2
  109. package/lib/summary/runWhileConnectedCoordinator.js +1 -1
  110. package/lib/summary/runWhileConnectedCoordinator.js.map +1 -1
  111. package/lib/summary/summarizer.d.ts +1 -1
  112. package/lib/summary/summarizer.js +1 -1
  113. package/lib/summary/summarizer.js.map +1 -1
  114. package/lib/summary/summarizerTypes.d.ts +30 -30
  115. package/lib/summary/summarizerTypes.js.map +1 -1
  116. package/lib/summary/summaryCollection.d.ts +10 -10
  117. package/lib/summary/summaryCollection.js +1 -1
  118. package/lib/summary/summaryCollection.js.map +1 -1
  119. package/lib/summary/summaryFormat.d.ts +3 -3
  120. package/lib/summary/summaryFormat.js.map +1 -1
  121. package/package.json +20 -16
  122. package/src/blobManager.ts +1 -1
  123. package/src/containerRuntime.ts +20 -23
  124. package/src/dataStoreRegistry.ts +1 -1
  125. package/src/gc/garbageCollection.ts +101 -48
  126. package/src/gc/gcDefinitions.ts +34 -11
  127. package/src/gc/gcTelemetry.ts +0 -53
  128. package/src/gc/index.ts +2 -1
  129. package/src/id-compressor/utilities.ts +3 -3
  130. package/src/index.ts +2 -0
  131. package/src/messageTypes.ts +3 -2
  132. package/src/opLifecycle/definitions.ts +1 -1
  133. package/src/packageVersion.ts +1 -1
  134. package/src/summary/orderedClientElection.ts +1 -1
  135. package/src/summary/runWhileConnectedCoordinator.ts +2 -2
  136. package/src/summary/summarizer.ts +1 -1
  137. package/src/summary/summarizerTypes.ts +30 -30
  138. package/src/summary/summaryCollection.ts +10 -10
  139. 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
- // @public
56
+ // @internal
57
57
  export const agentSchedulerId = "_scheduler";
58
58
 
59
- // @public
59
+ // @internal
60
60
  export const AllowInactiveRequestHeaderKey = "allowInactive";
61
61
 
62
- // @public
62
+ // @internal
63
63
  export const AllowTombstoneRequestHeaderKey = "allowTombstone";
64
64
 
65
- // @public
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
- // @public
75
+ // @internal
76
76
  export enum CompressionAlgorithms {
77
77
  // (undocumented)
78
78
  lz4 = "lz4"
79
79
  }
80
80
 
81
- // @public (undocumented)
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
- // @public
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
- // @internal @deprecated (undocumented)
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
- // @public (undocumented)
242
+ // @internal (undocumented)
244
243
  export const DefaultSummaryConfiguration: ISummaryConfiguration;
245
244
 
246
- // @public (undocumented)
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
- // @public (undocumented)
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
- // @public (undocumented)
265
+ // @internal (undocumented)
267
266
  export interface GCFeatureMatrix {
268
267
  sweepGeneration?: number;
269
268
  tombstoneGeneration?: number;
270
269
  }
271
270
 
272
- // @public
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
- // @public (undocumented)
279
+ // @internal (undocumented)
281
280
  export type GCNodeType = (typeof GCNodeType)[keyof typeof GCNodeType];
282
281
 
283
- // @public (undocumented)
282
+ // @internal (undocumented)
284
283
  export type GCVersion = number;
285
284
 
286
- // @public
285
+ // @internal
287
286
  export function generateStableId(): StableId;
288
287
 
289
- // @public
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
- // @public (undocumented)
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
- // @public
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
- // @public
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
- // @public (undocumented)
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
- // @public
330
+ // @internal
332
331
  export interface ICancellableSummarizerController extends ISummaryCancellationToken {
333
332
  // (undocumented)
334
333
  stop(reason: SummarizerStopReason): void;
335
334
  }
336
335
 
337
- // @public
336
+ // @internal
338
337
  export interface ICancellationToken<T> {
339
338
  readonly cancelled: boolean;
340
339
  readonly waitCancelled: Promise<T>;
341
340
  }
342
341
 
343
- // @public (undocumented)
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
- // @public
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
- // @public
366
+ // @internal
368
367
  export interface ICompressionRuntimeOptions {
369
368
  readonly compressionAlgorithm: CompressionAlgorithms;
370
369
  readonly minimumBatchSizeInBytes: number;
371
370
  }
372
371
 
373
- // @public (undocumented)
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
- // @public (undocumented)
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
- // @public
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
- // @public (undocumented)
416
+ // @internal (undocumented)
418
417
  export interface ICreateContainerMetadata {
419
418
  createContainerRuntimeVersion?: string;
420
419
  createContainerTimestamp?: number;
421
420
  }
422
421
 
423
- // @public
422
+ // @internal
424
423
  export interface IEnqueueSummarizeOptions extends IOnDemandSummarizeOptions {
425
424
  readonly afterSequenceNumber?: number;
426
425
  readonly override?: boolean;
427
426
  }
428
427
 
429
- // @public (undocumented)
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
- // @public (undocumented)
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
- // @public
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
- // @public
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
- // @public
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
- // @public (undocumented)
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
- // @public
492
+ // @internal
490
493
  export const InactiveResponseHeaderKey = "isInactive";
491
494
 
492
- // @public (undocumented)
495
+ // @internal (undocumented)
493
496
  export interface IOnDemandSummarizeOptions extends ISummarizeOptions {
494
497
  readonly reason: string;
495
498
  }
496
499
 
497
- // @public
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
- // @public
508
+ // @internal
506
509
  export interface IRetriableFailureResult {
507
510
  // (undocumented)
508
511
  readonly retryAfterSeconds?: number;
509
512
  }
510
513
 
511
- // @public
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
- // @public @deprecated (undocumented)
521
+ // @internal @deprecated (undocumented)
519
522
  export function isRuntimeMessage(message: ISequencedDocumentMessage): boolean;
520
523
 
521
- // @public
524
+ // @internal
522
525
  export function isStableId(str: string): str is StableId;
523
526
 
524
- // @public
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
- // @public (undocumented)
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
- // @public (undocumented)
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
- // @public
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
- // @public (undocumented)
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
- // @public (undocumented)
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
- // @public (undocumented)
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
- // @public (undocumented)
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
- // @public (undocumented)
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
- // @public (undocumented)
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
- // @public
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
- // @public
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
- // @public (undocumented)
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
- // @public
645
+ // @internal
643
646
  export type ISummaryCancellationToken = ICancellationToken<SummarizerStopReason>;
644
647
 
645
- // @public (undocumented)
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
- // @public (undocumented)
654
+ // @internal (undocumented)
652
655
  export type ISummaryConfiguration = ISummaryConfigurationDisableSummarizer | ISummaryConfigurationDisableHeuristics | ISummaryConfigurationHeuristics;
653
656
 
654
- // @public (undocumented)
657
+ // @internal (undocumented)
655
658
  export interface ISummaryConfigurationDisableHeuristics extends ISummaryBaseConfiguration {
656
659
  // (undocumented)
657
660
  state: "disableHeuristics";
658
661
  }
659
662
 
660
- // @public (undocumented)
663
+ // @internal (undocumented)
661
664
  export interface ISummaryConfigurationDisableSummarizer {
662
665
  // (undocumented)
663
666
  state: "disabled";
664
667
  }
665
668
 
666
- // @public (undocumented)
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
- // @public
683
+ // @internal
681
684
  export type ISummaryMetadataMessage = Pick<ISequencedDocumentMessage, "clientId" | "clientSequenceNumber" | "minimumSequenceNumber" | "referenceSequenceNumber" | "sequenceNumber" | "timestamp" | "type">;
682
685
 
683
- // @public
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
- // @public
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
- // @public (undocumented)
702
+ // @internal (undocumented)
700
703
  export interface ISummaryRuntimeOptions {
701
704
  // @deprecated
702
705
  initialSummarizerDelayMs?: number;
703
706
  summaryConfigOverrides?: ISummaryConfiguration;
704
707
  }
705
708
 
706
- // @public
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
- // @public
727
+ // @internal
715
728
  export const neverCancelledSummaryToken: ISummaryCancellationToken;
716
729
 
717
- // @public (undocumented)
730
+ // @internal (undocumented)
718
731
  export type OpActionEventListener = (op: ISequencedDocumentMessage) => void;
719
732
 
720
- // @public (undocumented)
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
- // @public
741
+ // @internal
729
742
  export enum RuntimeHeaders {
730
743
  viaHandle = "viaHandle",
731
744
  wait = "wait"
732
745
  }
733
746
 
734
- // @public @deprecated (undocumented)
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
- // @public
765
+ // @internal
753
766
  export interface SubmitSummaryFailureData extends IRetriableFailureResult {
754
767
  // (undocumented)
755
768
  stage: SummaryStage;
756
769
  }
757
770
 
758
- // @public
771
+ // @internal
759
772
  export type SubmitSummaryResult = IBaseSummarizeResult | IGenerateSummaryTreeResult | IUploadSummaryResult | ISubmitSummaryOpResult;
760
773
 
761
- // @public
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
- // @public (undocumented)
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
- // @public (undocumented)
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
- // @public
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
- // @public
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
- // @public
868
+ // @internal
856
869
  export const TombstoneResponseHeaderKey = "isTombstoned";
857
870
 
858
871
  // @internal
@@ -31,7 +31,7 @@ export declare class BlobHandle implements IFluidHandle<ArrayBufferLike> {
31
31
  }
32
32
  /**
33
33
  * Information from a snapshot needed to load BlobManager
34
- * @public
34
+ * @internal
35
35
  */
36
36
  export interface IBlobManagerLoadInfo {
37
37
  ids?: string[];