@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
|
@@ -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,11 +444,11 @@ export interface IGCRuntimeOptions {
|
|
|
445
444
|
sessionExpiryTimeoutMs?: number;
|
|
446
445
|
}
|
|
447
446
|
|
|
448
|
-
// @
|
|
447
|
+
// @internal
|
|
449
448
|
export interface IGCStats extends IMarkPhaseStats, ISweepPhaseStats {
|
|
450
449
|
}
|
|
451
450
|
|
|
452
|
-
// @
|
|
451
|
+
// @internal
|
|
453
452
|
export interface IGeneratedSummaryStats extends ISummaryStats {
|
|
454
453
|
readonly dataStoreCount: number;
|
|
455
454
|
readonly gcBlobNodeCount?: number;
|
|
@@ -459,7 +458,7 @@ export interface IGeneratedSummaryStats extends ISummaryStats {
|
|
|
459
458
|
readonly summaryNumber: number;
|
|
460
459
|
}
|
|
461
460
|
|
|
462
|
-
// @
|
|
461
|
+
// @internal
|
|
463
462
|
export interface IGenerateSummaryTreeResult extends Omit<IBaseSummarizeResult, "stage"> {
|
|
464
463
|
readonly forcedFullTree: boolean;
|
|
465
464
|
readonly generateDuration: number;
|
|
@@ -469,7 +468,7 @@ export interface IGenerateSummaryTreeResult extends Omit<IBaseSummarizeResult, "
|
|
|
469
468
|
readonly summaryTree: ISummaryTree;
|
|
470
469
|
}
|
|
471
470
|
|
|
472
|
-
// @
|
|
471
|
+
// @internal
|
|
473
472
|
export interface IMarkPhaseStats {
|
|
474
473
|
attachmentBlobCount: number;
|
|
475
474
|
dataStoreCount: number;
|
|
@@ -482,7 +481,7 @@ export interface IMarkPhaseStats {
|
|
|
482
481
|
updatedNodeCount: number;
|
|
483
482
|
}
|
|
484
483
|
|
|
485
|
-
// @
|
|
484
|
+
// @internal (undocumented)
|
|
486
485
|
export interface INackSummaryResult extends IRetriableFailureResult {
|
|
487
486
|
// (undocumented)
|
|
488
487
|
readonly ackNackDuration: number;
|
|
@@ -490,15 +489,15 @@ export interface INackSummaryResult extends IRetriableFailureResult {
|
|
|
490
489
|
readonly summaryNackOp: ISummaryNackMessage;
|
|
491
490
|
}
|
|
492
491
|
|
|
493
|
-
// @
|
|
492
|
+
// @internal
|
|
494
493
|
export const InactiveResponseHeaderKey = "isInactive";
|
|
495
494
|
|
|
496
|
-
// @
|
|
495
|
+
// @internal (undocumented)
|
|
497
496
|
export interface IOnDemandSummarizeOptions extends ISummarizeOptions {
|
|
498
497
|
readonly reason: string;
|
|
499
498
|
}
|
|
500
499
|
|
|
501
|
-
// @
|
|
500
|
+
// @internal
|
|
502
501
|
export interface IRefreshSummaryAckOptions {
|
|
503
502
|
readonly ackHandle: string;
|
|
504
503
|
readonly proposalHandle: string | undefined;
|
|
@@ -506,26 +505,26 @@ export interface IRefreshSummaryAckOptions {
|
|
|
506
505
|
readonly summaryRefSeq: number;
|
|
507
506
|
}
|
|
508
507
|
|
|
509
|
-
// @
|
|
508
|
+
// @internal
|
|
510
509
|
export interface IRetriableFailureResult {
|
|
511
510
|
// (undocumented)
|
|
512
511
|
readonly retryAfterSeconds?: number;
|
|
513
512
|
}
|
|
514
513
|
|
|
515
|
-
// @
|
|
514
|
+
// @internal
|
|
516
515
|
export interface ISerializedElection {
|
|
517
516
|
readonly electedClientId: string | undefined;
|
|
518
517
|
readonly electedParentId: string | undefined;
|
|
519
518
|
readonly electionSequenceNumber: number;
|
|
520
519
|
}
|
|
521
520
|
|
|
522
|
-
// @
|
|
521
|
+
// @internal @deprecated (undocumented)
|
|
523
522
|
export function isRuntimeMessage(message: ISequencedDocumentMessage): boolean;
|
|
524
523
|
|
|
525
|
-
// @
|
|
524
|
+
// @internal
|
|
526
525
|
export function isStableId(str: string): str is StableId;
|
|
527
526
|
|
|
528
|
-
// @
|
|
527
|
+
// @internal
|
|
529
528
|
export interface ISubmitSummaryOpResult extends Omit<IUploadSummaryResult, "stage" | "error"> {
|
|
530
529
|
readonly clientSequenceNumber: number;
|
|
531
530
|
// (undocumented)
|
|
@@ -533,14 +532,14 @@ export interface ISubmitSummaryOpResult extends Omit<IUploadSummaryResult, "stag
|
|
|
533
532
|
readonly submitOpDuration: number;
|
|
534
533
|
}
|
|
535
534
|
|
|
536
|
-
// @
|
|
535
|
+
// @internal (undocumented)
|
|
537
536
|
export interface ISubmitSummaryOptions extends ISummarizeOptions {
|
|
538
537
|
readonly cancellationToken: ISummaryCancellationToken;
|
|
539
538
|
readonly finalAttempt?: boolean;
|
|
540
539
|
readonly summaryLogger: ITelemetryLoggerExt;
|
|
541
540
|
}
|
|
542
541
|
|
|
543
|
-
// @
|
|
542
|
+
// @internal (undocumented)
|
|
544
543
|
export interface ISummarizeEventProps {
|
|
545
544
|
// (undocumented)
|
|
546
545
|
currentAttempt: number;
|
|
@@ -552,14 +551,14 @@ export interface ISummarizeEventProps {
|
|
|
552
551
|
result: "success" | "failure" | "canceled";
|
|
553
552
|
}
|
|
554
553
|
|
|
555
|
-
// @
|
|
554
|
+
// @internal
|
|
556
555
|
export interface ISummarizeOptions {
|
|
557
556
|
readonly fullTree?: boolean;
|
|
558
557
|
// @deprecated
|
|
559
558
|
readonly refreshLatestAck?: boolean;
|
|
560
559
|
}
|
|
561
560
|
|
|
562
|
-
// @
|
|
561
|
+
// @internal (undocumented)
|
|
563
562
|
export interface ISummarizer extends IEventProvider<ISummarizerEvents> {
|
|
564
563
|
// (undocumented)
|
|
565
564
|
close(): void;
|
|
@@ -572,26 +571,26 @@ export interface ISummarizer extends IEventProvider<ISummarizerEvents> {
|
|
|
572
571
|
summarizeOnDemand(options: IOnDemandSummarizeOptions): ISummarizeResults;
|
|
573
572
|
}
|
|
574
573
|
|
|
575
|
-
// @
|
|
574
|
+
// @internal (undocumented)
|
|
576
575
|
export interface ISummarizeResults {
|
|
577
576
|
readonly receivedSummaryAckOrNack: Promise<SummarizeResultPart<IAckSummaryResult, INackSummaryResult>>;
|
|
578
577
|
readonly summaryOpBroadcasted: Promise<SummarizeResultPart<IBroadcastSummaryResult>>;
|
|
579
578
|
readonly summarySubmitted: Promise<SummarizeResultPart<SubmitSummaryResult, SubmitSummaryFailureData>>;
|
|
580
579
|
}
|
|
581
580
|
|
|
582
|
-
// @
|
|
581
|
+
// @internal (undocumented)
|
|
583
582
|
export interface ISummarizerEvents extends IEvent {
|
|
584
583
|
// (undocumented)
|
|
585
584
|
(event: "summarize", listener: (props: ISummarizeEventProps) => void): any;
|
|
586
585
|
}
|
|
587
586
|
|
|
588
|
-
// @
|
|
587
|
+
// @internal (undocumented)
|
|
589
588
|
export interface ISummarizerInternalsProvider {
|
|
590
589
|
refreshLatestSummaryAck(options: IRefreshSummaryAckOptions): Promise<void>;
|
|
591
590
|
submitSummary(options: ISubmitSummaryOptions): Promise<SubmitSummaryResult>;
|
|
592
591
|
}
|
|
593
592
|
|
|
594
|
-
// @
|
|
593
|
+
// @internal (undocumented)
|
|
595
594
|
export interface ISummarizerRuntime extends IConnectableRuntime {
|
|
596
595
|
// (undocumented)
|
|
597
596
|
closeFn(): void;
|
|
@@ -608,7 +607,7 @@ export interface ISummarizerRuntime extends IConnectableRuntime {
|
|
|
608
607
|
readonly summarizerClientId: string | undefined;
|
|
609
608
|
}
|
|
610
609
|
|
|
611
|
-
// @
|
|
610
|
+
// @internal (undocumented)
|
|
612
611
|
export interface ISummarizingWarning extends ContainerWarning {
|
|
613
612
|
// (undocumented)
|
|
614
613
|
readonly errorType: "summarizingError";
|
|
@@ -616,7 +615,7 @@ export interface ISummarizingWarning extends ContainerWarning {
|
|
|
616
615
|
readonly logged: boolean;
|
|
617
616
|
}
|
|
618
617
|
|
|
619
|
-
// @
|
|
618
|
+
// @internal
|
|
620
619
|
export interface ISummary {
|
|
621
620
|
// (undocumented)
|
|
622
621
|
readonly clientId: string;
|
|
@@ -628,7 +627,7 @@ export interface ISummary {
|
|
|
628
627
|
waitBroadcast(): Promise<ISummaryOpMessage>;
|
|
629
628
|
}
|
|
630
629
|
|
|
631
|
-
// @
|
|
630
|
+
// @internal
|
|
632
631
|
export interface ISummaryAckMessage extends ISequencedDocumentMessage {
|
|
633
632
|
// (undocumented)
|
|
634
633
|
contents: ISummaryAck;
|
|
@@ -636,38 +635,38 @@ export interface ISummaryAckMessage extends ISequencedDocumentMessage {
|
|
|
636
635
|
type: MessageType.SummaryAck;
|
|
637
636
|
}
|
|
638
637
|
|
|
639
|
-
// @
|
|
638
|
+
// @internal (undocumented)
|
|
640
639
|
export interface ISummaryBaseConfiguration {
|
|
641
640
|
initialSummarizerDelayMs: number;
|
|
642
641
|
maxAckWaitTime: number;
|
|
643
642
|
maxOpsSinceLastSummary: number;
|
|
644
643
|
}
|
|
645
644
|
|
|
646
|
-
// @
|
|
645
|
+
// @internal
|
|
647
646
|
export type ISummaryCancellationToken = ICancellationToken<SummarizerStopReason>;
|
|
648
647
|
|
|
649
|
-
// @
|
|
648
|
+
// @internal (undocumented)
|
|
650
649
|
export interface ISummaryCollectionOpEvents extends IEvent {
|
|
651
650
|
// (undocumented)
|
|
652
651
|
(event: OpActionEventName, listener: OpActionEventListener): any;
|
|
653
652
|
}
|
|
654
653
|
|
|
655
|
-
// @
|
|
654
|
+
// @internal (undocumented)
|
|
656
655
|
export type ISummaryConfiguration = ISummaryConfigurationDisableSummarizer | ISummaryConfigurationDisableHeuristics | ISummaryConfigurationHeuristics;
|
|
657
656
|
|
|
658
|
-
// @
|
|
657
|
+
// @internal (undocumented)
|
|
659
658
|
export interface ISummaryConfigurationDisableHeuristics extends ISummaryBaseConfiguration {
|
|
660
659
|
// (undocumented)
|
|
661
660
|
state: "disableHeuristics";
|
|
662
661
|
}
|
|
663
662
|
|
|
664
|
-
// @
|
|
663
|
+
// @internal (undocumented)
|
|
665
664
|
export interface ISummaryConfigurationDisableSummarizer {
|
|
666
665
|
// (undocumented)
|
|
667
666
|
state: "disabled";
|
|
668
667
|
}
|
|
669
668
|
|
|
670
|
-
// @
|
|
669
|
+
// @internal (undocumented)
|
|
671
670
|
export interface ISummaryConfigurationHeuristics extends ISummaryBaseConfiguration {
|
|
672
671
|
maxIdleTime: number;
|
|
673
672
|
maxOps: number;
|
|
@@ -681,10 +680,10 @@ export interface ISummaryConfigurationHeuristics extends ISummaryBaseConfigurati
|
|
|
681
680
|
state: "enabled";
|
|
682
681
|
}
|
|
683
682
|
|
|
684
|
-
// @
|
|
683
|
+
// @internal
|
|
685
684
|
export type ISummaryMetadataMessage = Pick<ISequencedDocumentMessage, "clientId" | "clientSequenceNumber" | "minimumSequenceNumber" | "referenceSequenceNumber" | "sequenceNumber" | "timestamp" | "type">;
|
|
686
685
|
|
|
687
|
-
// @
|
|
686
|
+
// @internal
|
|
688
687
|
export interface ISummaryNackMessage extends ISequencedDocumentMessage {
|
|
689
688
|
// (undocumented)
|
|
690
689
|
contents: ISummaryNack;
|
|
@@ -692,7 +691,7 @@ export interface ISummaryNackMessage extends ISequencedDocumentMessage {
|
|
|
692
691
|
type: MessageType.SummaryNack;
|
|
693
692
|
}
|
|
694
693
|
|
|
695
|
-
// @
|
|
694
|
+
// @internal
|
|
696
695
|
export interface ISummaryOpMessage extends ISequencedDocumentMessage {
|
|
697
696
|
// (undocumented)
|
|
698
697
|
contents: ISummaryContent;
|
|
@@ -700,14 +699,14 @@ export interface ISummaryOpMessage extends ISequencedDocumentMessage {
|
|
|
700
699
|
type: MessageType.Summarize;
|
|
701
700
|
}
|
|
702
701
|
|
|
703
|
-
// @
|
|
702
|
+
// @internal (undocumented)
|
|
704
703
|
export interface ISummaryRuntimeOptions {
|
|
705
704
|
// @deprecated
|
|
706
705
|
initialSummarizerDelayMs?: number;
|
|
707
706
|
summaryConfigOverrides?: ISummaryConfiguration;
|
|
708
707
|
}
|
|
709
708
|
|
|
710
|
-
// @
|
|
709
|
+
// @internal
|
|
711
710
|
export interface ISweepPhaseStats {
|
|
712
711
|
deletedAttachmentBlobCount: number;
|
|
713
712
|
deletedDataStoreCount: number;
|
|
@@ -717,7 +716,7 @@ export interface ISweepPhaseStats {
|
|
|
717
716
|
lifetimeNodeCount: number;
|
|
718
717
|
}
|
|
719
718
|
|
|
720
|
-
// @
|
|
719
|
+
// @internal
|
|
721
720
|
export interface IUploadSummaryResult extends Omit<IGenerateSummaryTreeResult, "stage"> {
|
|
722
721
|
readonly handle: string;
|
|
723
722
|
// (undocumented)
|
|
@@ -725,13 +724,13 @@ export interface IUploadSummaryResult extends Omit<IGenerateSummaryTreeResult, "
|
|
|
725
724
|
readonly uploadDuration: number;
|
|
726
725
|
}
|
|
727
726
|
|
|
728
|
-
// @
|
|
727
|
+
// @internal
|
|
729
728
|
export const neverCancelledSummaryToken: ISummaryCancellationToken;
|
|
730
729
|
|
|
731
|
-
// @
|
|
730
|
+
// @internal (undocumented)
|
|
732
731
|
export type OpActionEventListener = (op: ISequencedDocumentMessage) => void;
|
|
733
732
|
|
|
734
|
-
// @
|
|
733
|
+
// @internal (undocumented)
|
|
735
734
|
export type OpActionEventName = MessageType.Summarize | MessageType.SummaryAck | MessageType.SummaryNack | "default";
|
|
736
735
|
|
|
737
736
|
// @internal
|
|
@@ -739,13 +738,13 @@ export interface RecentlyAddedContainerRuntimeMessageDetails {
|
|
|
739
738
|
compatDetails: IContainerRuntimeMessageCompatDetails;
|
|
740
739
|
}
|
|
741
740
|
|
|
742
|
-
// @
|
|
741
|
+
// @internal
|
|
743
742
|
export enum RuntimeHeaders {
|
|
744
743
|
viaHandle = "viaHandle",
|
|
745
744
|
wait = "wait"
|
|
746
745
|
}
|
|
747
746
|
|
|
748
|
-
// @
|
|
747
|
+
// @internal @deprecated (undocumented)
|
|
749
748
|
export enum RuntimeMessage {
|
|
750
749
|
// (undocumented)
|
|
751
750
|
Alias = "alias",
|
|
@@ -763,16 +762,16 @@ export enum RuntimeMessage {
|
|
|
763
762
|
Rejoin = "rejoin"
|
|
764
763
|
}
|
|
765
764
|
|
|
766
|
-
// @
|
|
765
|
+
// @internal
|
|
767
766
|
export interface SubmitSummaryFailureData extends IRetriableFailureResult {
|
|
768
767
|
// (undocumented)
|
|
769
768
|
stage: SummaryStage;
|
|
770
769
|
}
|
|
771
770
|
|
|
772
|
-
// @
|
|
771
|
+
// @internal
|
|
773
772
|
export type SubmitSummaryResult = IBaseSummarizeResult | IGenerateSummaryTreeResult | IUploadSummaryResult | ISubmitSummaryOpResult;
|
|
774
773
|
|
|
775
|
-
// @
|
|
774
|
+
// @internal
|
|
776
775
|
export class Summarizer extends TypedEventEmitter<ISummarizerEvents> implements ISummarizer {
|
|
777
776
|
constructor(
|
|
778
777
|
runtime: ISummarizerRuntime, configurationGetter: () => ISummaryConfiguration,
|
|
@@ -798,7 +797,7 @@ export class Summarizer extends TypedEventEmitter<ISummarizerEvents> implements
|
|
|
798
797
|
readonly summaryCollection: SummaryCollection;
|
|
799
798
|
}
|
|
800
799
|
|
|
801
|
-
// @
|
|
800
|
+
// @internal (undocumented)
|
|
802
801
|
export type SummarizeResultPart<TSuccess, TFailure = undefined> = {
|
|
803
802
|
success: true;
|
|
804
803
|
data: TSuccess;
|
|
@@ -809,7 +808,7 @@ export type SummarizeResultPart<TSuccess, TFailure = undefined> = {
|
|
|
809
808
|
error: any;
|
|
810
809
|
};
|
|
811
810
|
|
|
812
|
-
// @
|
|
811
|
+
// @internal (undocumented)
|
|
813
812
|
export type SummarizerStopReason =
|
|
814
813
|
/** Summarizer client failed to summarize in all 3 consecutive attempts. */
|
|
815
814
|
"failToSummarize"
|
|
@@ -836,7 +835,7 @@ export type SummarizerStopReason =
|
|
|
836
835
|
*/
|
|
837
836
|
| "latestSummaryStateStale";
|
|
838
837
|
|
|
839
|
-
// @
|
|
838
|
+
// @internal
|
|
840
839
|
export class SummaryCollection extends TypedEventEmitter<ISummaryCollectionOpEvents> {
|
|
841
840
|
constructor(deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>, logger: ITelemetryLoggerExt);
|
|
842
841
|
// (undocumented)
|
|
@@ -860,13 +859,13 @@ export class SummaryCollection extends TypedEventEmitter<ISummaryCollectionOpEve
|
|
|
860
859
|
waitSummaryAck(referenceSequenceNumber: number): Promise<IAckedSummary>;
|
|
861
860
|
}
|
|
862
861
|
|
|
863
|
-
// @
|
|
862
|
+
// @internal
|
|
864
863
|
export type SummaryStage = SubmitSummaryResult["stage"] | "unknown";
|
|
865
864
|
|
|
866
865
|
// @internal
|
|
867
866
|
export function TEST_requestSummarizer(loader: ILoader, url: string): Promise<ISummarizer>;
|
|
868
867
|
|
|
869
|
-
// @
|
|
868
|
+
// @internal
|
|
870
869
|
export const TombstoneResponseHeaderKey = "isTombstoned";
|
|
871
870
|
|
|
872
871
|
// @internal
|
package/dist/blobManager.d.ts
CHANGED