@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
@@ -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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
283
+ * @internal
284
284
  */
285
285
  export interface SubmitSummaryFailureData extends IRetriableFailureResult {
286
286
  stage: SummaryStage;
287
287
  }
288
288
 
289
289
  /**
290
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
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
- * @public
421
+ * @internal
422
422
  */
423
423
  export interface ISummarizer extends IEventProvider<ISummarizerEvents> {
424
424
  /**
@@ -19,7 +19,7 @@ import {
19
19
 
20
20
  /**
21
21
  * Interface for summary op messages with typed contents.
22
- * @public
22
+ * @internal
23
23
  */
24
24
  export interface ISummaryOpMessage extends ISequencedDocumentMessage {
25
25
  type: MessageType.Summarize;
@@ -28,7 +28,7 @@ export interface ISummaryOpMessage extends ISequencedDocumentMessage {
28
28
 
29
29
  /**
30
30
  * Interface for summary ack messages with typed contents.
31
- * @public
31
+ * @internal
32
32
  */
33
33
  export interface ISummaryAckMessage extends ISequencedDocumentMessage {
34
34
  type: MessageType.SummaryAck;
@@ -37,7 +37,7 @@ export interface ISummaryAckMessage extends ISequencedDocumentMessage {
37
37
 
38
38
  /**
39
39
  * Interface for summary nack messages with typed contents.
40
- * @public
40
+ * @internal
41
41
  */
42
42
  export interface ISummaryNackMessage extends ISequencedDocumentMessage {
43
43
  type: MessageType.SummaryNack;
@@ -47,7 +47,7 @@ export interface ISummaryNackMessage extends ISequencedDocumentMessage {
47
47
  /**
48
48
  * A single summary which can be tracked as it goes through its life cycle.
49
49
  * The life cycle is: Local to Broadcast to Acked/Nacked.
50
- * @public
50
+ * @internal
51
51
  */
52
52
  export interface ISummary {
53
53
  readonly clientId: string;
@@ -58,7 +58,7 @@ export interface ISummary {
58
58
 
59
59
  /**
60
60
  * A single summary which has already been acked by the server.
61
- * @public
61
+ * @internal
62
62
  */
63
63
  export interface IAckedSummary {
64
64
  readonly summaryOp: ISummaryOpMessage;
@@ -145,7 +145,7 @@ class Summary implements ISummary {
145
145
 
146
146
  /**
147
147
  * Watches summaries created by a specific client.
148
- * @public
148
+ * @internal
149
149
  */
150
150
  export interface IClientSummaryWatcher extends IDisposable {
151
151
  watchSummary(clientSequenceNumber: number): ISummary;
@@ -214,7 +214,7 @@ class ClientSummaryWatcher implements IClientSummaryWatcher {
214
214
  }
215
215
  }
216
216
  /**
217
- * @public
217
+ * @internal
218
218
  */
219
219
  export type OpActionEventName =
220
220
  | MessageType.Summarize
@@ -223,12 +223,12 @@ export type OpActionEventName =
223
223
  | "default";
224
224
 
225
225
  /**
226
- * @public
226
+ * @internal
227
227
  */
228
228
  export type OpActionEventListener = (op: ISequencedDocumentMessage) => void;
229
229
 
230
230
  /**
231
- * @public
231
+ * @internal
232
232
  */
233
233
  export interface ISummaryCollectionOpEvents extends IEvent {
234
234
  (event: OpActionEventName, listener: OpActionEventListener);
@@ -238,7 +238,7 @@ export interface ISummaryCollectionOpEvents extends IEvent {
238
238
  * Data structure that looks at the op stream to track summaries as they
239
239
  * are broadcast, acked and nacked.
240
240
  * It provides functionality for watching specific summaries.
241
- * @public
241
+ * @internal
242
242
  */
243
243
  export class SummaryCollection extends TypedEventEmitter<ISummaryCollectionOpEvents> {
244
244
  // key: clientId
@@ -86,7 +86,7 @@ export function hasIsolatedChannels(attributes: ReadFluidDataStoreAttributes): b
86
86
  }
87
87
 
88
88
  /**
89
- * @public
89
+ * @internal
90
90
  */
91
91
  export interface IContainerRuntimeMetadata extends ICreateContainerMetadata, IGCMetadata {
92
92
  readonly summaryFormatVersion: 1;
@@ -103,7 +103,7 @@ export interface IContainerRuntimeMetadata extends ICreateContainerMetadata, IGC
103
103
  }
104
104
 
105
105
  /**
106
- * @public
106
+ * @internal
107
107
  */
108
108
  export interface ICreateContainerMetadata {
109
109
  /** Runtime version of the container when it was first created */
@@ -114,7 +114,7 @@ export interface ICreateContainerMetadata {
114
114
 
115
115
  /**
116
116
  * The properties of an ISequencedDocumentMessage to be stored in the metadata blob in summary.
117
- * @public
117
+ * @internal
118
118
  */
119
119
  export type ISummaryMetadataMessage = Pick<
120
120
  ISequencedDocumentMessage,