@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
|
@@ -51,24 +51,24 @@ import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
|
51
51
|
* Legacy ID for the built-in AgentScheduler. To minimize disruption while removing it, retaining this as a
|
|
52
52
|
* special-case for document dirty state. Ultimately we should have no special-cases from the
|
|
53
53
|
* ContainerRuntime's perspective.
|
|
54
|
-
* @
|
|
54
|
+
* @internal
|
|
55
55
|
*/
|
|
56
56
|
export declare const agentSchedulerId = "_scheduler";
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* [IRRELEVANT IF throwOnInactiveLoad OPTION NOT SET] True if an inactive object should be returned without erroring
|
|
60
|
-
* @
|
|
60
|
+
* @internal
|
|
61
61
|
*/
|
|
62
62
|
export declare const AllowInactiveRequestHeaderKey = "allowInactive";
|
|
63
63
|
|
|
64
64
|
/** True if a tombstoned object should be returned without erroring
|
|
65
|
-
* @
|
|
65
|
+
* @internal
|
|
66
66
|
*/
|
|
67
67
|
export declare const AllowTombstoneRequestHeaderKey = "allowTombstone";
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
* Asserts that the given string is a stable ID.
|
|
71
|
-
* @
|
|
71
|
+
* @internal
|
|
72
72
|
*/
|
|
73
73
|
export declare function assertIsStableId(stableId: string): StableId;
|
|
74
74
|
|
|
@@ -85,14 +85,14 @@ export declare type CompatModeBehavior =
|
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
87
|
* Available compression algorithms for op compression.
|
|
88
|
-
* @
|
|
88
|
+
* @internal
|
|
89
89
|
*/
|
|
90
90
|
export declare enum CompressionAlgorithms {
|
|
91
91
|
lz4 = "lz4"
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
|
-
* @
|
|
95
|
+
* @internal
|
|
96
96
|
*/
|
|
97
97
|
export declare enum ContainerMessageType {
|
|
98
98
|
FluidDataStoreOp = "component",
|
|
@@ -112,7 +112,7 @@ export declare enum ContainerMessageType {
|
|
|
112
112
|
/**
|
|
113
113
|
* Represents the runtime of the container. Contains helper functions/state of the container.
|
|
114
114
|
* It will define the store level mappings.
|
|
115
|
-
* @
|
|
115
|
+
* @internal
|
|
116
116
|
*/
|
|
117
117
|
export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntimeEvents & ISummarizerEvents> implements IContainerRuntime, IRuntime, ISummarizerRuntime, ISummarizerInternalsProvider, IProvideFluidHandleContext {
|
|
118
118
|
private readonly registry;
|
|
@@ -307,9 +307,7 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
307
307
|
* The id of the version used to initially load this runtime, or undefined if it's newly created.
|
|
308
308
|
*/
|
|
309
309
|
private readonly loadedFromVersionId;
|
|
310
|
-
|
|
311
|
-
* @internal
|
|
312
|
-
*/
|
|
310
|
+
/***/
|
|
313
311
|
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);
|
|
314
312
|
/**
|
|
315
313
|
* Initializes the state from the base snapshot this container runtime loaded from.
|
|
@@ -393,7 +391,6 @@ export declare class ContainerRuntime extends TypedEventEmitter<IContainerRuntim
|
|
|
393
391
|
createDataStore(pkg: string | string[]): Promise<IDataStore>;
|
|
394
392
|
/**
|
|
395
393
|
* @deprecated 0.16 Issue #1537, #3631
|
|
396
|
-
* @internal
|
|
397
394
|
*/
|
|
398
395
|
_createDataStoreWithProps(pkg: string | string[], props?: any, id?: string): Promise<IDataStore>;
|
|
399
396
|
private canSendOps;
|
|
@@ -634,12 +631,12 @@ export declare interface ContainerRuntimeMessage {
|
|
|
634
631
|
}
|
|
635
632
|
|
|
636
633
|
/**
|
|
637
|
-
* @
|
|
634
|
+
* @internal
|
|
638
635
|
*/
|
|
639
636
|
export declare const DefaultSummaryConfiguration: ISummaryConfiguration;
|
|
640
637
|
|
|
641
638
|
/**
|
|
642
|
-
* @
|
|
639
|
+
* @internal
|
|
643
640
|
*/
|
|
644
641
|
export declare type EnqueueSummarizeResult = (ISummarizeResults & {
|
|
645
642
|
/**
|
|
@@ -666,7 +663,7 @@ export declare type EnqueueSummarizeResult = (ISummarizeResults & {
|
|
|
666
663
|
};
|
|
667
664
|
|
|
668
665
|
/**
|
|
669
|
-
* @
|
|
666
|
+
* @internal
|
|
670
667
|
*/
|
|
671
668
|
export declare class FluidDataStoreRegistry implements IFluidDataStoreRegistry {
|
|
672
669
|
private readonly map;
|
|
@@ -677,7 +674,7 @@ export declare class FluidDataStoreRegistry implements IFluidDataStoreRegistry {
|
|
|
677
674
|
|
|
678
675
|
/**
|
|
679
676
|
* @see IGCMetadata.gcFeatureMatrix
|
|
680
|
-
* @
|
|
677
|
+
* @internal
|
|
681
678
|
*/
|
|
682
679
|
export declare interface GCFeatureMatrix {
|
|
683
680
|
/**
|
|
@@ -696,7 +693,7 @@ export declare interface GCFeatureMatrix {
|
|
|
696
693
|
|
|
697
694
|
/**
|
|
698
695
|
* The types of GC nodes in the GC reference graph.
|
|
699
|
-
* @
|
|
696
|
+
* @internal
|
|
700
697
|
*/
|
|
701
698
|
export declare const GCNodeType: {
|
|
702
699
|
DataStore: string;
|
|
@@ -706,24 +703,24 @@ export declare const GCNodeType: {
|
|
|
706
703
|
};
|
|
707
704
|
|
|
708
705
|
/**
|
|
709
|
-
* @
|
|
706
|
+
* @internal
|
|
710
707
|
*/
|
|
711
708
|
export declare type GCNodeType = (typeof GCNodeType)[keyof typeof GCNodeType];
|
|
712
709
|
|
|
713
710
|
/**
|
|
714
|
-
* @
|
|
711
|
+
* @internal
|
|
715
712
|
*/
|
|
716
713
|
export declare type GCVersion = number;
|
|
717
714
|
|
|
718
715
|
/**
|
|
719
716
|
* Generate a random stable ID
|
|
720
|
-
* @
|
|
717
|
+
* @internal
|
|
721
718
|
*/
|
|
722
719
|
export declare function generateStableId(): StableId;
|
|
723
720
|
|
|
724
721
|
/**
|
|
725
722
|
* A single summary which has already been acked by the server.
|
|
726
|
-
* @
|
|
723
|
+
* @internal
|
|
727
724
|
*/
|
|
728
725
|
export declare interface IAckedSummary {
|
|
729
726
|
readonly summaryOp: ISummaryOpMessage;
|
|
@@ -731,7 +728,7 @@ export declare interface IAckedSummary {
|
|
|
731
728
|
}
|
|
732
729
|
|
|
733
730
|
/**
|
|
734
|
-
* @
|
|
731
|
+
* @internal
|
|
735
732
|
*/
|
|
736
733
|
export declare interface IAckSummaryResult {
|
|
737
734
|
readonly summaryAckOp: ISummaryAckMessage;
|
|
@@ -740,7 +737,7 @@ export declare interface IAckSummaryResult {
|
|
|
740
737
|
|
|
741
738
|
/**
|
|
742
739
|
* Base results for all submitSummary attempts.
|
|
743
|
-
* @
|
|
740
|
+
* @internal
|
|
744
741
|
*/
|
|
745
742
|
export declare interface IBaseSummarizeResult {
|
|
746
743
|
readonly stage: "base";
|
|
@@ -753,7 +750,7 @@ export declare interface IBaseSummarizeResult {
|
|
|
753
750
|
|
|
754
751
|
/**
|
|
755
752
|
* Information from a snapshot needed to load BlobManager
|
|
756
|
-
* @
|
|
753
|
+
* @internal
|
|
757
754
|
*/
|
|
758
755
|
export declare interface IBlobManagerLoadInfo {
|
|
759
756
|
ids?: string[];
|
|
@@ -761,7 +758,7 @@ export declare interface IBlobManagerLoadInfo {
|
|
|
761
758
|
}
|
|
762
759
|
|
|
763
760
|
/**
|
|
764
|
-
* @
|
|
761
|
+
* @internal
|
|
765
762
|
*/
|
|
766
763
|
export declare interface IBroadcastSummaryResult {
|
|
767
764
|
readonly summarizeOp: ISummaryOpMessage;
|
|
@@ -770,7 +767,7 @@ export declare interface IBroadcastSummaryResult {
|
|
|
770
767
|
|
|
771
768
|
/**
|
|
772
769
|
* Similar to AbortController, but using promise instead of events
|
|
773
|
-
* @
|
|
770
|
+
* @internal
|
|
774
771
|
*/
|
|
775
772
|
export declare interface ICancellableSummarizerController extends ISummaryCancellationToken {
|
|
776
773
|
stop(reason: SummarizerStopReason): void;
|
|
@@ -779,7 +776,7 @@ export declare interface ICancellableSummarizerController extends ISummaryCancel
|
|
|
779
776
|
/**
|
|
780
777
|
* Similar to AbortSignal, but using promise instead of events
|
|
781
778
|
* @param T - cancellation reason type
|
|
782
|
-
* @
|
|
779
|
+
* @internal
|
|
783
780
|
*/
|
|
784
781
|
export declare interface ICancellationToken<T> {
|
|
785
782
|
/** Tells if this cancellable token is cancelled */
|
|
@@ -792,7 +789,7 @@ export declare interface ICancellationToken<T> {
|
|
|
792
789
|
}
|
|
793
790
|
|
|
794
791
|
/**
|
|
795
|
-
* @
|
|
792
|
+
* @internal
|
|
796
793
|
*/
|
|
797
794
|
export declare interface IChunkedOp {
|
|
798
795
|
chunkId: number;
|
|
@@ -805,7 +802,7 @@ export declare interface IChunkedOp {
|
|
|
805
802
|
|
|
806
803
|
/**
|
|
807
804
|
* Watches summaries created by a specific client.
|
|
808
|
-
* @
|
|
805
|
+
* @internal
|
|
809
806
|
*/
|
|
810
807
|
export declare interface IClientSummaryWatcher extends IDisposable {
|
|
811
808
|
watchSummary(clientSequenceNumber: number): ISummary;
|
|
@@ -814,7 +811,7 @@ export declare interface IClientSummaryWatcher extends IDisposable {
|
|
|
814
811
|
|
|
815
812
|
/**
|
|
816
813
|
* Options for op compression.
|
|
817
|
-
* @
|
|
814
|
+
* @internal
|
|
818
815
|
*/
|
|
819
816
|
export declare interface ICompressionRuntimeOptions {
|
|
820
817
|
/**
|
|
@@ -830,7 +827,7 @@ export declare interface ICompressionRuntimeOptions {
|
|
|
830
827
|
}
|
|
831
828
|
|
|
832
829
|
/**
|
|
833
|
-
* @
|
|
830
|
+
* @internal
|
|
834
831
|
*/
|
|
835
832
|
export declare interface IConnectableRuntime {
|
|
836
833
|
readonly disposed: boolean;
|
|
@@ -850,7 +847,7 @@ export declare interface IContainerRuntimeMessageCompatDetails {
|
|
|
850
847
|
}
|
|
851
848
|
|
|
852
849
|
/**
|
|
853
|
-
* @
|
|
850
|
+
* @internal
|
|
854
851
|
*/
|
|
855
852
|
export declare interface IContainerRuntimeMetadata extends ICreateContainerMetadata, IGCMetadata {
|
|
856
853
|
readonly summaryFormatVersion: 1;
|
|
@@ -868,7 +865,7 @@ export declare interface IContainerRuntimeMetadata extends ICreateContainerMetad
|
|
|
868
865
|
|
|
869
866
|
/**
|
|
870
867
|
* Options for container runtime.
|
|
871
|
-
* @
|
|
868
|
+
* @internal
|
|
872
869
|
*/
|
|
873
870
|
export declare interface IContainerRuntimeOptions {
|
|
874
871
|
readonly summaryOptions?: ISummaryRuntimeOptions;
|
|
@@ -947,7 +944,7 @@ export declare interface IContainerRuntimeOptions {
|
|
|
947
944
|
}
|
|
948
945
|
|
|
949
946
|
/**
|
|
950
|
-
* @
|
|
947
|
+
* @internal
|
|
951
948
|
*/
|
|
952
949
|
export declare interface ICreateContainerMetadata {
|
|
953
950
|
/** Runtime version of the container when it was first created */
|
|
@@ -958,7 +955,7 @@ export declare interface ICreateContainerMetadata {
|
|
|
958
955
|
|
|
959
956
|
/**
|
|
960
957
|
* Options to use when enqueueing a summarize attempt.
|
|
961
|
-
* @
|
|
958
|
+
* @internal
|
|
962
959
|
*/
|
|
963
960
|
export declare interface IEnqueueSummarizeOptions extends IOnDemandSummarizeOptions {
|
|
964
961
|
/** If specified, The summarize attempt will not occur until after this sequence number. */
|
|
@@ -973,7 +970,7 @@ export declare interface IEnqueueSummarizeOptions extends IOnDemandSummarizeOpti
|
|
|
973
970
|
}
|
|
974
971
|
|
|
975
972
|
/**
|
|
976
|
-
* @
|
|
973
|
+
* @internal
|
|
977
974
|
*/
|
|
978
975
|
export declare interface IGCMetadata {
|
|
979
976
|
/**
|
|
@@ -1011,7 +1008,7 @@ export declare interface IGCMetadata {
|
|
|
1011
1008
|
}
|
|
1012
1009
|
|
|
1013
1010
|
/**
|
|
1014
|
-
* @
|
|
1011
|
+
* @internal
|
|
1015
1012
|
*/
|
|
1016
1013
|
export declare interface IGCRuntimeOptions {
|
|
1017
1014
|
/**
|
|
@@ -1049,7 +1046,7 @@ export declare interface IGCRuntimeOptions {
|
|
|
1049
1046
|
|
|
1050
1047
|
/**
|
|
1051
1048
|
* The statistics of the system state after a garbage collection run.
|
|
1052
|
-
* @
|
|
1049
|
+
* @internal
|
|
1053
1050
|
*/
|
|
1054
1051
|
export declare interface IGCStats extends IMarkPhaseStats, ISweepPhaseStats {
|
|
1055
1052
|
}
|
|
@@ -1057,7 +1054,7 @@ export declare interface IGCStats extends IMarkPhaseStats, ISweepPhaseStats {
|
|
|
1057
1054
|
/**
|
|
1058
1055
|
* In addition to the normal summary tree + stats, this contains additional stats
|
|
1059
1056
|
* only relevant at the root of the tree.
|
|
1060
|
-
* @
|
|
1057
|
+
* @internal
|
|
1061
1058
|
*/
|
|
1062
1059
|
export declare interface IGeneratedSummaryStats extends ISummaryStats {
|
|
1063
1060
|
/** The total number of data stores in the container. */
|
|
@@ -1076,7 +1073,7 @@ export declare interface IGeneratedSummaryStats extends ISummaryStats {
|
|
|
1076
1073
|
|
|
1077
1074
|
/**
|
|
1078
1075
|
* Results of submitSummary after generating the summary tree.
|
|
1079
|
-
* @
|
|
1076
|
+
* @internal
|
|
1080
1077
|
*/
|
|
1081
1078
|
export declare interface IGenerateSummaryTreeResult extends Omit<IBaseSummarizeResult, "stage"> {
|
|
1082
1079
|
readonly stage: "generate";
|
|
@@ -1092,7 +1089,7 @@ export declare interface IGenerateSummaryTreeResult extends Omit<IBaseSummarizeR
|
|
|
1092
1089
|
|
|
1093
1090
|
/**
|
|
1094
1091
|
* The statistics of the system state after a garbage collection mark phase run.
|
|
1095
|
-
* @
|
|
1092
|
+
* @internal
|
|
1096
1093
|
*/
|
|
1097
1094
|
export declare interface IMarkPhaseStats {
|
|
1098
1095
|
/** The number of nodes in the container. */
|
|
@@ -1116,7 +1113,7 @@ export declare interface IMarkPhaseStats {
|
|
|
1116
1113
|
}
|
|
1117
1114
|
|
|
1118
1115
|
/**
|
|
1119
|
-
* @
|
|
1116
|
+
* @internal
|
|
1120
1117
|
*/
|
|
1121
1118
|
export declare interface INackSummaryResult extends IRetriableFailureResult {
|
|
1122
1119
|
readonly summaryNackOp: ISummaryNackMessage;
|
|
@@ -1125,12 +1122,12 @@ export declare interface INackSummaryResult extends IRetriableFailureResult {
|
|
|
1125
1122
|
|
|
1126
1123
|
/**
|
|
1127
1124
|
* Inactive error responses will have this header set to true
|
|
1128
|
-
* @
|
|
1125
|
+
* @internal
|
|
1129
1126
|
*/
|
|
1130
1127
|
export declare const InactiveResponseHeaderKey = "isInactive";
|
|
1131
1128
|
|
|
1132
1129
|
/**
|
|
1133
|
-
* @
|
|
1130
|
+
* @internal
|
|
1134
1131
|
*/
|
|
1135
1132
|
export declare interface IOnDemandSummarizeOptions extends ISummarizeOptions {
|
|
1136
1133
|
/** Reason for generating summary. */
|
|
@@ -1139,7 +1136,7 @@ export declare interface IOnDemandSummarizeOptions extends ISummarizeOptions {
|
|
|
1139
1136
|
|
|
1140
1137
|
/**
|
|
1141
1138
|
* Data required to update internal tracking state after receiving a Summary Ack.
|
|
1142
|
-
* @
|
|
1139
|
+
* @internal
|
|
1143
1140
|
*/
|
|
1144
1141
|
export declare interface IRefreshSummaryAckOptions {
|
|
1145
1142
|
/** Handle from the ack's summary op. */
|
|
@@ -1154,7 +1151,7 @@ export declare interface IRefreshSummaryAckOptions {
|
|
|
1154
1151
|
|
|
1155
1152
|
/**
|
|
1156
1153
|
* Type for summarization failures that are retriable.
|
|
1157
|
-
* @
|
|
1154
|
+
* @internal
|
|
1158
1155
|
*/
|
|
1159
1156
|
export declare interface IRetriableFailureResult {
|
|
1160
1157
|
readonly retryAfterSeconds?: number;
|
|
@@ -1162,7 +1159,7 @@ export declare interface IRetriableFailureResult {
|
|
|
1162
1159
|
|
|
1163
1160
|
/**
|
|
1164
1161
|
* Serialized state of IOrderedClientElection.
|
|
1165
|
-
* @
|
|
1162
|
+
* @internal
|
|
1166
1163
|
*/
|
|
1167
1164
|
export declare interface ISerializedElection {
|
|
1168
1165
|
/** Sequence number at the time of the latest election. */
|
|
@@ -1182,20 +1179,20 @@ export declare interface ISerializedElection {
|
|
|
1182
1179
|
|
|
1183
1180
|
/**
|
|
1184
1181
|
* @deprecated please use version in driver-utils
|
|
1185
|
-
* @
|
|
1182
|
+
* @internal
|
|
1186
1183
|
*/
|
|
1187
1184
|
export declare function isRuntimeMessage(message: ISequencedDocumentMessage): boolean;
|
|
1188
1185
|
|
|
1189
1186
|
/**
|
|
1190
1187
|
* Returns true iff the given string is a valid Version 4, variant 2 UUID
|
|
1191
1188
|
* 'xxxxxxxx-xxxx-4xxx-vxxx-xxxxxxxxxxxx'
|
|
1192
|
-
* @
|
|
1189
|
+
* @internal
|
|
1193
1190
|
*/
|
|
1194
1191
|
export declare function isStableId(str: string): str is StableId;
|
|
1195
1192
|
|
|
1196
1193
|
/**
|
|
1197
1194
|
* Results of submitSummary after submitting the summarize op.
|
|
1198
|
-
* @
|
|
1195
|
+
* @internal
|
|
1199
1196
|
*/
|
|
1200
1197
|
export declare interface ISubmitSummaryOpResult extends Omit<IUploadSummaryResult, "stage" | "error"> {
|
|
1201
1198
|
readonly stage: "submit";
|
|
@@ -1206,7 +1203,7 @@ export declare interface ISubmitSummaryOpResult extends Omit<IUploadSummaryResul
|
|
|
1206
1203
|
}
|
|
1207
1204
|
|
|
1208
1205
|
/**
|
|
1209
|
-
* @
|
|
1206
|
+
* @internal
|
|
1210
1207
|
*/
|
|
1211
1208
|
export declare interface ISubmitSummaryOptions extends ISummarizeOptions {
|
|
1212
1209
|
/** Logger to use for correlated summary events */
|
|
@@ -1218,7 +1215,7 @@ export declare interface ISubmitSummaryOptions extends ISummarizeOptions {
|
|
|
1218
1215
|
}
|
|
1219
1216
|
|
|
1220
1217
|
/**
|
|
1221
|
-
* @
|
|
1218
|
+
* @internal
|
|
1222
1219
|
*/
|
|
1223
1220
|
export declare interface ISummarizeEventProps {
|
|
1224
1221
|
result: "success" | "failure" | "canceled";
|
|
@@ -1229,7 +1226,7 @@ export declare interface ISummarizeEventProps {
|
|
|
1229
1226
|
|
|
1230
1227
|
/**
|
|
1231
1228
|
* Options affecting summarize behavior.
|
|
1232
|
-
* @
|
|
1229
|
+
* @internal
|
|
1233
1230
|
*/
|
|
1234
1231
|
export declare interface ISummarizeOptions {
|
|
1235
1232
|
/** True to generate the full tree with no handle reuse optimizations; defaults to false */
|
|
@@ -1244,7 +1241,7 @@ export declare interface ISummarizeOptions {
|
|
|
1244
1241
|
}
|
|
1245
1242
|
|
|
1246
1243
|
/**
|
|
1247
|
-
* @
|
|
1244
|
+
* @internal
|
|
1248
1245
|
*/
|
|
1249
1246
|
export declare interface ISummarizer extends IEventProvider<ISummarizerEvents> {
|
|
1250
1247
|
/**
|
|
@@ -1280,7 +1277,7 @@ export declare interface ISummarizer extends IEventProvider<ISummarizerEvents> {
|
|
|
1280
1277
|
}
|
|
1281
1278
|
|
|
1282
1279
|
/**
|
|
1283
|
-
* @
|
|
1280
|
+
* @internal
|
|
1284
1281
|
*/
|
|
1285
1282
|
export declare interface ISummarizeResults {
|
|
1286
1283
|
/** Resolves when we generate, upload, and submit the summary. */
|
|
@@ -1292,14 +1289,14 @@ export declare interface ISummarizeResults {
|
|
|
1292
1289
|
}
|
|
1293
1290
|
|
|
1294
1291
|
/**
|
|
1295
|
-
* @
|
|
1292
|
+
* @internal
|
|
1296
1293
|
*/
|
|
1297
1294
|
export declare interface ISummarizerEvents extends IEvent {
|
|
1298
1295
|
(event: "summarize", listener: (props: ISummarizeEventProps) => void): any;
|
|
1299
1296
|
}
|
|
1300
1297
|
|
|
1301
1298
|
/**
|
|
1302
|
-
* @
|
|
1299
|
+
* @internal
|
|
1303
1300
|
*/
|
|
1304
1301
|
export declare interface ISummarizerInternalsProvider {
|
|
1305
1302
|
/** Encapsulates the work to walk the internals of the running container to generate a summary */
|
|
@@ -1309,7 +1306,7 @@ export declare interface ISummarizerInternalsProvider {
|
|
|
1309
1306
|
}
|
|
1310
1307
|
|
|
1311
1308
|
/**
|
|
1312
|
-
* @
|
|
1309
|
+
* @internal
|
|
1313
1310
|
*/
|
|
1314
1311
|
export declare interface ISummarizerRuntime extends IConnectableRuntime {
|
|
1315
1312
|
readonly logger: ITelemetryLoggerExt;
|
|
@@ -1323,7 +1320,7 @@ export declare interface ISummarizerRuntime extends IConnectableRuntime {
|
|
|
1323
1320
|
}
|
|
1324
1321
|
|
|
1325
1322
|
/**
|
|
1326
|
-
* @
|
|
1323
|
+
* @internal
|
|
1327
1324
|
*/
|
|
1328
1325
|
export declare interface ISummarizingWarning extends ContainerWarning {
|
|
1329
1326
|
readonly errorType: "summarizingError";
|
|
@@ -1333,7 +1330,7 @@ export declare interface ISummarizingWarning extends ContainerWarning {
|
|
|
1333
1330
|
/**
|
|
1334
1331
|
* A single summary which can be tracked as it goes through its life cycle.
|
|
1335
1332
|
* The life cycle is: Local to Broadcast to Acked/Nacked.
|
|
1336
|
-
* @
|
|
1333
|
+
* @internal
|
|
1337
1334
|
*/
|
|
1338
1335
|
export declare interface ISummary {
|
|
1339
1336
|
readonly clientId: string;
|
|
@@ -1344,7 +1341,7 @@ export declare interface ISummary {
|
|
|
1344
1341
|
|
|
1345
1342
|
/**
|
|
1346
1343
|
* Interface for summary ack messages with typed contents.
|
|
1347
|
-
* @
|
|
1344
|
+
* @internal
|
|
1348
1345
|
*/
|
|
1349
1346
|
export declare interface ISummaryAckMessage extends ISequencedDocumentMessage {
|
|
1350
1347
|
type: MessageType.SummaryAck;
|
|
@@ -1352,7 +1349,7 @@ export declare interface ISummaryAckMessage extends ISequencedDocumentMessage {
|
|
|
1352
1349
|
}
|
|
1353
1350
|
|
|
1354
1351
|
/**
|
|
1355
|
-
* @
|
|
1352
|
+
* @internal
|
|
1356
1353
|
*/
|
|
1357
1354
|
export declare interface ISummaryBaseConfiguration {
|
|
1358
1355
|
/**
|
|
@@ -1374,38 +1371,38 @@ export declare interface ISummaryBaseConfiguration {
|
|
|
1374
1371
|
|
|
1375
1372
|
/**
|
|
1376
1373
|
* Similar to AbortSignal, but using promise instead of events
|
|
1377
|
-
* @
|
|
1374
|
+
* @internal
|
|
1378
1375
|
*/
|
|
1379
1376
|
export declare type ISummaryCancellationToken = ICancellationToken<SummarizerStopReason>;
|
|
1380
1377
|
|
|
1381
1378
|
/**
|
|
1382
|
-
* @
|
|
1379
|
+
* @internal
|
|
1383
1380
|
*/
|
|
1384
1381
|
export declare interface ISummaryCollectionOpEvents extends IEvent {
|
|
1385
1382
|
(event: OpActionEventName, listener: OpActionEventListener): any;
|
|
1386
1383
|
}
|
|
1387
1384
|
|
|
1388
1385
|
/**
|
|
1389
|
-
* @
|
|
1386
|
+
* @internal
|
|
1390
1387
|
*/
|
|
1391
1388
|
export declare type ISummaryConfiguration = ISummaryConfigurationDisableSummarizer | ISummaryConfigurationDisableHeuristics | ISummaryConfigurationHeuristics;
|
|
1392
1389
|
|
|
1393
1390
|
/**
|
|
1394
|
-
* @
|
|
1391
|
+
* @internal
|
|
1395
1392
|
*/
|
|
1396
1393
|
export declare interface ISummaryConfigurationDisableHeuristics extends ISummaryBaseConfiguration {
|
|
1397
1394
|
state: "disableHeuristics";
|
|
1398
1395
|
}
|
|
1399
1396
|
|
|
1400
1397
|
/**
|
|
1401
|
-
* @
|
|
1398
|
+
* @internal
|
|
1402
1399
|
*/
|
|
1403
1400
|
export declare interface ISummaryConfigurationDisableSummarizer {
|
|
1404
1401
|
state: "disabled";
|
|
1405
1402
|
}
|
|
1406
1403
|
|
|
1407
1404
|
/**
|
|
1408
|
-
* @
|
|
1405
|
+
* @internal
|
|
1409
1406
|
*/
|
|
1410
1407
|
export declare interface ISummaryConfigurationHeuristics extends ISummaryBaseConfiguration {
|
|
1411
1408
|
state: "enabled";
|
|
@@ -1468,13 +1465,13 @@ export declare interface ISummaryConfigurationHeuristics extends ISummaryBaseCon
|
|
|
1468
1465
|
|
|
1469
1466
|
/**
|
|
1470
1467
|
* The properties of an ISequencedDocumentMessage to be stored in the metadata blob in summary.
|
|
1471
|
-
* @
|
|
1468
|
+
* @internal
|
|
1472
1469
|
*/
|
|
1473
1470
|
export declare type ISummaryMetadataMessage = Pick<ISequencedDocumentMessage, "clientId" | "clientSequenceNumber" | "minimumSequenceNumber" | "referenceSequenceNumber" | "sequenceNumber" | "timestamp" | "type">;
|
|
1474
1471
|
|
|
1475
1472
|
/**
|
|
1476
1473
|
* Interface for summary nack messages with typed contents.
|
|
1477
|
-
* @
|
|
1474
|
+
* @internal
|
|
1478
1475
|
*/
|
|
1479
1476
|
export declare interface ISummaryNackMessage extends ISequencedDocumentMessage {
|
|
1480
1477
|
type: MessageType.SummaryNack;
|
|
@@ -1483,7 +1480,7 @@ export declare interface ISummaryNackMessage extends ISequencedDocumentMessage {
|
|
|
1483
1480
|
|
|
1484
1481
|
/**
|
|
1485
1482
|
* Interface for summary op messages with typed contents.
|
|
1486
|
-
* @
|
|
1483
|
+
* @internal
|
|
1487
1484
|
*/
|
|
1488
1485
|
export declare interface ISummaryOpMessage extends ISequencedDocumentMessage {
|
|
1489
1486
|
type: MessageType.Summarize;
|
|
@@ -1491,7 +1488,7 @@ export declare interface ISummaryOpMessage extends ISequencedDocumentMessage {
|
|
|
1491
1488
|
}
|
|
1492
1489
|
|
|
1493
1490
|
/**
|
|
1494
|
-
* @
|
|
1491
|
+
* @internal
|
|
1495
1492
|
*/
|
|
1496
1493
|
export declare interface ISummaryRuntimeOptions {
|
|
1497
1494
|
/** Override summary configurations set by the server. */
|
|
@@ -1507,7 +1504,7 @@ export declare interface ISummaryRuntimeOptions {
|
|
|
1507
1504
|
|
|
1508
1505
|
/**
|
|
1509
1506
|
* The statistics of the system state after a garbage collection sweep phase run.
|
|
1510
|
-
* @
|
|
1507
|
+
* @internal
|
|
1511
1508
|
*/
|
|
1512
1509
|
export declare interface ISweepPhaseStats {
|
|
1513
1510
|
/** The number of nodes in the lifetime of the container. */
|
|
@@ -1526,7 +1523,7 @@ export declare interface ISweepPhaseStats {
|
|
|
1526
1523
|
|
|
1527
1524
|
/**
|
|
1528
1525
|
* Results of submitSummary after uploading the tree to storage.
|
|
1529
|
-
* @
|
|
1526
|
+
* @internal
|
|
1530
1527
|
*/
|
|
1531
1528
|
export declare interface IUploadSummaryResult extends Omit<IGenerateSummaryTreeResult, "stage"> {
|
|
1532
1529
|
readonly stage: "upload";
|
|
@@ -1539,17 +1536,17 @@ export declare interface IUploadSummaryResult extends Omit<IGenerateSummaryTreeR
|
|
|
1539
1536
|
/**
|
|
1540
1537
|
* Can be useful in testing as well as in places where caller does not use cancellation.
|
|
1541
1538
|
* This object implements ISummaryCancellationToken interface but cancellation is never leveraged.
|
|
1542
|
-
* @
|
|
1539
|
+
* @internal
|
|
1543
1540
|
*/
|
|
1544
1541
|
export declare const neverCancelledSummaryToken: ISummaryCancellationToken;
|
|
1545
1542
|
|
|
1546
1543
|
/**
|
|
1547
|
-
* @
|
|
1544
|
+
* @internal
|
|
1548
1545
|
*/
|
|
1549
1546
|
export declare type OpActionEventListener = (op: ISequencedDocumentMessage) => void;
|
|
1550
1547
|
|
|
1551
1548
|
/**
|
|
1552
|
-
* @
|
|
1549
|
+
* @internal
|
|
1553
1550
|
*/
|
|
1554
1551
|
export declare type OpActionEventName = MessageType.Summarize | MessageType.SummaryAck | MessageType.SummaryNack | "default";
|
|
1555
1552
|
|
|
@@ -1564,7 +1561,7 @@ export declare interface RecentlyAddedContainerRuntimeMessageDetails {
|
|
|
1564
1561
|
|
|
1565
1562
|
/**
|
|
1566
1563
|
* Accepted header keys for requests coming to the runtime.
|
|
1567
|
-
* @
|
|
1564
|
+
* @internal
|
|
1568
1565
|
*/
|
|
1569
1566
|
export declare enum RuntimeHeaders {
|
|
1570
1567
|
/** True to wait for a data store to be created and loaded before returning it. */
|
|
@@ -1575,7 +1572,7 @@ export declare enum RuntimeHeaders {
|
|
|
1575
1572
|
|
|
1576
1573
|
/**
|
|
1577
1574
|
* @deprecated use ContainerRuntimeMessageType instead
|
|
1578
|
-
* @
|
|
1575
|
+
* @internal
|
|
1579
1576
|
*/
|
|
1580
1577
|
export declare enum RuntimeMessage {
|
|
1581
1578
|
FluidDataStoreOp = "component",
|
|
@@ -1589,7 +1586,7 @@ export declare enum RuntimeMessage {
|
|
|
1589
1586
|
|
|
1590
1587
|
/**
|
|
1591
1588
|
* The data in summarizer result when submit summary stage fails.
|
|
1592
|
-
* @
|
|
1589
|
+
* @internal
|
|
1593
1590
|
*/
|
|
1594
1591
|
export declare interface SubmitSummaryFailureData extends IRetriableFailureResult {
|
|
1595
1592
|
stage: SummaryStage;
|
|
@@ -1610,7 +1607,7 @@ export declare interface SubmitSummaryFailureData extends IRetriableFailureResul
|
|
|
1610
1607
|
* 3. "upload" - the summary was uploaded to storage, and the result contains the server-provided handle
|
|
1611
1608
|
*
|
|
1612
1609
|
* 4. "submit" - the summarize op was submitted, and the result contains the op client sequence number.
|
|
1613
|
-
* @
|
|
1610
|
+
* @internal
|
|
1614
1611
|
*/
|
|
1615
1612
|
export declare type SubmitSummaryResult = IBaseSummarizeResult | IGenerateSummaryTreeResult | IUploadSummaryResult | ISubmitSummaryOpResult;
|
|
1616
1613
|
|
|
@@ -1618,7 +1615,7 @@ export declare type SubmitSummaryResult = IBaseSummarizeResult | IGenerateSummar
|
|
|
1618
1615
|
* Summarizer is responsible for coordinating when to generate and send summaries.
|
|
1619
1616
|
* It is the main entry point for summary work.
|
|
1620
1617
|
* It is created only by summarizing container (i.e. one with clientType === "summarizer")
|
|
1621
|
-
* @
|
|
1618
|
+
* @internal
|
|
1622
1619
|
*/
|
|
1623
1620
|
export declare class Summarizer extends TypedEventEmitter<ISummarizerEvents> implements ISummarizer {
|
|
1624
1621
|
/** Reference to runtime that created this object.
|
|
@@ -1699,7 +1696,7 @@ export declare class Summarizer extends TypedEventEmitter<ISummarizerEvents> imp
|
|
|
1699
1696
|
}
|
|
1700
1697
|
|
|
1701
1698
|
/**
|
|
1702
|
-
* @
|
|
1699
|
+
* @internal
|
|
1703
1700
|
*/
|
|
1704
1701
|
export declare type SummarizeResultPart<TSuccess, TFailure = undefined> = {
|
|
1705
1702
|
success: true;
|
|
@@ -1712,7 +1709,7 @@ export declare type SummarizeResultPart<TSuccess, TFailure = undefined> = {
|
|
|
1712
1709
|
};
|
|
1713
1710
|
|
|
1714
1711
|
/**
|
|
1715
|
-
* @
|
|
1712
|
+
* @internal
|
|
1716
1713
|
*/
|
|
1717
1714
|
export declare type SummarizerStopReason =
|
|
1718
1715
|
/** Summarizer client failed to summarize in all 3 consecutive attempts. */
|
|
@@ -1744,7 +1741,7 @@ export declare type SummarizerStopReason =
|
|
|
1744
1741
|
* Data structure that looks at the op stream to track summaries as they
|
|
1745
1742
|
* are broadcast, acked and nacked.
|
|
1746
1743
|
* It provides functionality for watching specific summaries.
|
|
1747
|
-
* @
|
|
1744
|
+
* @internal
|
|
1748
1745
|
*/
|
|
1749
1746
|
export declare class SummaryCollection extends TypedEventEmitter<ISummaryCollectionOpEvents> {
|
|
1750
1747
|
private readonly deltaManager;
|
|
@@ -1796,7 +1793,7 @@ export declare class SummaryCollection extends TypedEventEmitter<ISummaryCollect
|
|
|
1796
1793
|
|
|
1797
1794
|
/**
|
|
1798
1795
|
* The stages of Summarize, used to describe how far progress succeeded in case of a failure at a later stage.
|
|
1799
|
-
* @
|
|
1796
|
+
* @internal
|
|
1800
1797
|
*/
|
|
1801
1798
|
export declare type SummaryStage = SubmitSummaryResult["stage"] | "unknown";
|
|
1802
1799
|
|
|
@@ -1808,7 +1805,7 @@ export declare function TEST_requestSummarizer(loader: ILoader, url: string): Pr
|
|
|
1808
1805
|
|
|
1809
1806
|
/**
|
|
1810
1807
|
* Tombstone error responses will have this header set to true
|
|
1811
|
-
* @
|
|
1808
|
+
* @internal
|
|
1812
1809
|
*/
|
|
1813
1810
|
export declare const TombstoneResponseHeaderKey = "isTombstoned";
|
|
1814
1811
|
|