@fluidframework/runtime-definitions 2.0.0-dev.7.4.0.215747 → 2.0.0-dev.7.4.0.216897
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-extractor-lint.json +13 -0
- package/api-extractor.json +0 -4
- package/api-report/runtime-definitions.api.md +66 -66
- package/dist/attribution.d.ts +5 -8
- package/dist/attribution.d.ts.map +1 -1
- package/dist/attribution.js.map +1 -1
- package/dist/dataStoreContext.d.ts +25 -1
- package/dist/dataStoreContext.d.ts.map +1 -1
- package/dist/dataStoreContext.js +5 -0
- package/dist/dataStoreContext.js.map +1 -1
- package/dist/dataStoreFactory.d.ts +7 -0
- package/dist/dataStoreFactory.d.ts.map +1 -1
- package/dist/dataStoreFactory.js +3 -0
- package/dist/dataStoreFactory.js.map +1 -1
- package/dist/dataStoreRegistry.d.ts +10 -0
- package/dist/dataStoreRegistry.d.ts.map +1 -1
- package/dist/dataStoreRegistry.js +3 -0
- package/dist/dataStoreRegistry.js.map +1 -1
- package/dist/garbageCollection.d.ts +22 -4
- package/dist/garbageCollection.d.ts.map +1 -1
- package/dist/garbageCollection.js +20 -4
- package/dist/garbageCollection.js.map +1 -1
- package/dist/id-compressor/idCompressor.d.ts +4 -1
- package/dist/id-compressor/idCompressor.d.ts.map +1 -1
- package/dist/id-compressor/idCompressor.js.map +1 -1
- package/dist/id-compressor/identifiers.d.ts +4 -0
- package/dist/id-compressor/identifiers.d.ts.map +1 -1
- package/dist/id-compressor/identifiers.js.map +1 -1
- package/dist/id-compressor/persisted-types/0.0.1.d.ts +5 -0
- package/dist/id-compressor/persisted-types/0.0.1.d.ts.map +1 -1
- package/dist/id-compressor/persisted-types/0.0.1.js +1 -0
- package/dist/id-compressor/persisted-types/0.0.1.js.map +1 -1
- package/dist/protocol.d.ts +7 -0
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js.map +1 -1
- package/dist/runtime-definitions-alpha.d.ts +158 -1174
- package/dist/runtime-definitions-beta.d.ts +139 -1092
- package/dist/runtime-definitions-public.d.ts +139 -1092
- package/dist/runtime-definitions-untrimmed.d.ts +123 -14
- package/dist/summary.d.ts +34 -0
- package/dist/summary.d.ts.map +1 -1
- package/dist/summary.js +12 -0
- package/dist/summary.js.map +1 -1
- package/lib/runtime-definitions-alpha.d.ts +158 -1174
- package/lib/runtime-definitions-beta.d.ts +139 -1092
- package/lib/runtime-definitions-public.d.ts +139 -1092
- package/lib/runtime-definitions-untrimmed.d.ts +123 -14
- package/package.json +6 -5
- package/src/attribution.ts +5 -8
- package/src/dataStoreContext.ts +25 -1
- package/src/dataStoreFactory.ts +7 -0
- package/src/dataStoreRegistry.ts +10 -0
- package/src/garbageCollection.ts +22 -4
- package/src/id-compressor/idCompressor.ts +4 -1
- package/src/id-compressor/identifiers.ts +4 -0
- package/src/id-compressor/persisted-types/0.0.1.ts +5 -0
- package/src/protocol.ts +7 -0
- package/src/summary.ts +34 -0
package/src/dataStoreContext.ts
CHANGED
|
@@ -46,6 +46,7 @@ import { IIdCompressor } from "./id-compressor";
|
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* Runtime flush mode handling
|
|
49
|
+
* @internal
|
|
49
50
|
*/
|
|
50
51
|
export enum FlushMode {
|
|
51
52
|
/**
|
|
@@ -60,6 +61,9 @@ export enum FlushMode {
|
|
|
60
61
|
TurnBased,
|
|
61
62
|
}
|
|
62
63
|
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
63
67
|
export enum FlushModeExperimental {
|
|
64
68
|
/**
|
|
65
69
|
* When in Async flush mode, the runtime will accumulate all operations across JS turns and send them as a single
|
|
@@ -76,6 +80,7 @@ export enum FlushModeExperimental {
|
|
|
76
80
|
/**
|
|
77
81
|
* This tells the visibility state of a Fluid object. It basically tracks whether the object is not visible, visible
|
|
78
82
|
* locally within the container only or visible globally to all clients.
|
|
83
|
+
* @internal
|
|
79
84
|
*/
|
|
80
85
|
export const VisibilityState = {
|
|
81
86
|
/**
|
|
@@ -101,8 +106,14 @@ export const VisibilityState = {
|
|
|
101
106
|
*/
|
|
102
107
|
GloballyVisible: "GloballyVisible",
|
|
103
108
|
};
|
|
109
|
+
/**
|
|
110
|
+
* @internal
|
|
111
|
+
*/
|
|
104
112
|
export type VisibilityState = (typeof VisibilityState)[keyof typeof VisibilityState];
|
|
105
113
|
|
|
114
|
+
/**
|
|
115
|
+
* @internal
|
|
116
|
+
*/
|
|
106
117
|
export interface IContainerRuntimeBaseEvents extends IEvent {
|
|
107
118
|
(event: "batchBegin", listener: (op: ISequencedDocumentMessage) => void);
|
|
108
119
|
/**
|
|
@@ -122,6 +133,7 @@ export interface IContainerRuntimeBaseEvents extends IEvent {
|
|
|
122
133
|
* the `IContainerRuntime.getAliasedDataStoreEntryPoint` function. The current datastore should be discarded
|
|
123
134
|
* and will be garbage collected. The current datastore cannot be aliased to a different value.
|
|
124
135
|
* 'AlreadyAliased' - the datastore has already been previously bound to another alias name.
|
|
136
|
+
* @internal
|
|
125
137
|
*/
|
|
126
138
|
export type AliasResult = "Success" | "Conflict" | "AlreadyAliased";
|
|
127
139
|
|
|
@@ -130,6 +142,7 @@ export type AliasResult = "Success" | "Conflict" | "AlreadyAliased";
|
|
|
130
142
|
* - Handle to the data store's entryPoint
|
|
131
143
|
* - Fluid router for the data store
|
|
132
144
|
* - Can be assigned an alias
|
|
145
|
+
* @internal
|
|
133
146
|
*/
|
|
134
147
|
export interface IDataStore {
|
|
135
148
|
/**
|
|
@@ -184,6 +197,7 @@ export interface IDataStore {
|
|
|
184
197
|
/**
|
|
185
198
|
* A reduced set of functionality of IContainerRuntime that a data store context/data store runtime will need
|
|
186
199
|
* TODO: this should be merged into IFluidDataStoreContext
|
|
200
|
+
* @internal
|
|
187
201
|
*/
|
|
188
202
|
export interface IContainerRuntimeBase extends IEventProvider<IContainerRuntimeBaseEvents> {
|
|
189
203
|
readonly logger: ITelemetryBaseLogger;
|
|
@@ -210,7 +224,6 @@ export interface IContainerRuntimeBase extends IEventProvider<IContainerRuntimeB
|
|
|
210
224
|
|
|
211
225
|
/**
|
|
212
226
|
* @deprecated 0.16 Issue #1537, #3631
|
|
213
|
-
* @internal
|
|
214
227
|
*/
|
|
215
228
|
_createDataStoreWithProps(
|
|
216
229
|
pkg: string | string[],
|
|
@@ -264,6 +277,7 @@ export interface IContainerRuntimeBase extends IEventProvider<IContainerRuntimeB
|
|
|
264
277
|
*
|
|
265
278
|
* Functionality include attach, snapshot, op/signal processing, request routes, expose an entryPoint,
|
|
266
279
|
* and connection state notifications
|
|
280
|
+
* @internal
|
|
267
281
|
*/
|
|
268
282
|
export interface IFluidDataStoreChannel extends IDisposable {
|
|
269
283
|
readonly id: string;
|
|
@@ -369,6 +383,9 @@ export interface IFluidDataStoreChannel extends IDisposable {
|
|
|
369
383
|
readonly IFluidRouter: IFluidRouter;
|
|
370
384
|
}
|
|
371
385
|
|
|
386
|
+
/**
|
|
387
|
+
* @internal
|
|
388
|
+
*/
|
|
372
389
|
export type CreateChildSummarizerNodeFn = (
|
|
373
390
|
summarizeInternal: SummarizeInternalFn,
|
|
374
391
|
getGCDataFn: (fullGC?: boolean) => Promise<IGarbageCollectionData>,
|
|
@@ -378,6 +395,9 @@ export type CreateChildSummarizerNodeFn = (
|
|
|
378
395
|
getBaseGCDetailsFn?: () => Promise<IGarbageCollectionDetailsBase>,
|
|
379
396
|
) => ISummarizerNodeWithGC;
|
|
380
397
|
|
|
398
|
+
/**
|
|
399
|
+
* @internal
|
|
400
|
+
*/
|
|
381
401
|
export interface IFluidDataStoreContextEvents extends IEvent {
|
|
382
402
|
(event: "attaching" | "attached", listener: () => void);
|
|
383
403
|
}
|
|
@@ -385,6 +405,7 @@ export interface IFluidDataStoreContextEvents extends IEvent {
|
|
|
385
405
|
/**
|
|
386
406
|
* Represents the context for the data store. It is used by the data store runtime to
|
|
387
407
|
* get information and call functionality to the container.
|
|
408
|
+
* @internal
|
|
388
409
|
*/
|
|
389
410
|
export interface IFluidDataStoreContext
|
|
390
411
|
extends IEventProvider<IFluidDataStoreContextEvents>,
|
|
@@ -520,6 +541,9 @@ export interface IFluidDataStoreContext
|
|
|
520
541
|
addedGCOutboundReference?(srcHandle: IFluidHandle, outboundHandle: IFluidHandle): void;
|
|
521
542
|
}
|
|
522
543
|
|
|
544
|
+
/**
|
|
545
|
+
* @internal
|
|
546
|
+
*/
|
|
523
547
|
export interface IFluidDataStoreContextDetached extends IFluidDataStoreContext {
|
|
524
548
|
/**
|
|
525
549
|
* Binds a runtime to the context.
|
package/src/dataStoreFactory.ts
CHANGED
|
@@ -5,8 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
import { IFluidDataStoreContext, IFluidDataStoreChannel } from "./dataStoreContext";
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
8
11
|
export const IFluidDataStoreFactory: keyof IProvideFluidDataStoreFactory = "IFluidDataStoreFactory";
|
|
9
12
|
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
10
16
|
export interface IProvideFluidDataStoreFactory {
|
|
11
17
|
readonly IFluidDataStoreFactory: IFluidDataStoreFactory;
|
|
12
18
|
}
|
|
@@ -14,6 +20,7 @@ export interface IProvideFluidDataStoreFactory {
|
|
|
14
20
|
/**
|
|
15
21
|
* IFluidDataStoreFactory create data stores. It is associated with an identifier (its `type` member)
|
|
16
22
|
* and usually provided to consumers using this mapping through a data store registry.
|
|
23
|
+
* @internal
|
|
17
24
|
*/
|
|
18
25
|
export interface IFluidDataStoreFactory extends IProvideFluidDataStoreFactory {
|
|
19
26
|
/**
|
package/src/dataStoreRegistry.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { IProvideFluidDataStoreFactory } from "./dataStoreFactory";
|
|
|
8
8
|
/**
|
|
9
9
|
* A single registry entry that may be used to create data stores
|
|
10
10
|
* It has to have either factory or registry, or both.
|
|
11
|
+
* @internal
|
|
11
12
|
*/
|
|
12
13
|
export type FluidDataStoreRegistryEntry = Readonly<
|
|
13
14
|
Partial<IProvideFluidDataStoreRegistry & IProvideFluidDataStoreFactory>
|
|
@@ -15,16 +16,24 @@ export type FluidDataStoreRegistryEntry = Readonly<
|
|
|
15
16
|
/**
|
|
16
17
|
* An associated pair of an identifier and registry entry. Registry entries
|
|
17
18
|
* may be dynamically loaded.
|
|
19
|
+
* @internal
|
|
18
20
|
*/
|
|
19
21
|
export type NamedFluidDataStoreRegistryEntry = [string, Promise<FluidDataStoreRegistryEntry>];
|
|
20
22
|
/**
|
|
21
23
|
* An iterable identifier/registry entry pair list
|
|
24
|
+
* @internal
|
|
22
25
|
*/
|
|
23
26
|
export type NamedFluidDataStoreRegistryEntries = Iterable<NamedFluidDataStoreRegistryEntry>;
|
|
24
27
|
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
25
31
|
export const IFluidDataStoreRegistry: keyof IProvideFluidDataStoreRegistry =
|
|
26
32
|
"IFluidDataStoreRegistry";
|
|
27
33
|
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
28
37
|
export interface IProvideFluidDataStoreRegistry {
|
|
29
38
|
readonly IFluidDataStoreRegistry: IFluidDataStoreRegistry;
|
|
30
39
|
}
|
|
@@ -32,6 +41,7 @@ export interface IProvideFluidDataStoreRegistry {
|
|
|
32
41
|
/**
|
|
33
42
|
* An association of identifiers to data store registry entries, where the
|
|
34
43
|
* entries can be used to create data stores.
|
|
44
|
+
* @internal
|
|
35
45
|
*/
|
|
36
46
|
export interface IFluidDataStoreRegistry extends IProvideFluidDataStoreRegistry {
|
|
37
47
|
get(name: string): Promise<FluidDataStoreRegistryEntry | undefined>;
|
package/src/garbageCollection.ts
CHANGED
|
@@ -3,18 +3,35 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* The key for the GC tree in summary.
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
7
11
|
export const gcTreeKey = "gc";
|
|
8
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* They prefix for GC blobs in the GC tree in summary.
|
|
14
|
+
*
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
9
17
|
export const gcBlobPrefix = "__gc";
|
|
10
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* The key for tombstone blob in the GC tree in summary.
|
|
20
|
+
*
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
11
23
|
export const gcTombstoneBlobKey = "__tombstones";
|
|
12
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* The key for deleted nodes blob in the GC tree in summary.
|
|
26
|
+
*
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
13
29
|
export const gcDeletedBlobKey = "__deletedNodes";
|
|
14
30
|
|
|
15
31
|
/**
|
|
16
32
|
* Garbage collection data returned by nodes in a Container.
|
|
17
33
|
* Used for running GC in the Container.
|
|
34
|
+
* @internal
|
|
18
35
|
*/
|
|
19
36
|
export interface IGarbageCollectionData {
|
|
20
37
|
/**
|
|
@@ -25,6 +42,7 @@ export interface IGarbageCollectionData {
|
|
|
25
42
|
|
|
26
43
|
/**
|
|
27
44
|
* GC details provided to each node during creation.
|
|
45
|
+
* @internal
|
|
28
46
|
*/
|
|
29
47
|
export interface IGarbageCollectionDetailsBase {
|
|
30
48
|
/**
|
|
@@ -10,6 +10,9 @@ import {
|
|
|
10
10
|
SerializedIdCompressorWithOngoingSession,
|
|
11
11
|
} from "./persisted-types";
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
13
16
|
export interface IIdCompressorCore {
|
|
14
17
|
/**
|
|
15
18
|
* Returns a range of IDs created by this session in a format for sending to the server for finalizing.
|
|
@@ -98,7 +101,7 @@ export interface IIdCompressorCore {
|
|
|
98
101
|
*
|
|
99
102
|
* These two spaces naturally define a rule: consumers of compressed IDs should use session-space IDs, but serialized forms such as ops
|
|
100
103
|
* should use op-space IDs.
|
|
101
|
-
*
|
|
104
|
+
* @internal
|
|
102
105
|
*/
|
|
103
106
|
export interface IIdCompressor {
|
|
104
107
|
localSessionId: SessionId;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
* A compressed ID that has been normalized into "session space" (see `IdCompressor` for more).
|
|
8
8
|
* Consumer-facing APIs and data structures should use session-space IDs as their lifetime and equality is stable and tied to
|
|
9
9
|
* the scope of the session (i.e. compressor) that produced them.
|
|
10
|
+
* @internal
|
|
10
11
|
*/
|
|
11
12
|
export type SessionSpaceCompressedId = number & {
|
|
12
13
|
readonly SessionUnique: "cea55054-6b82-4cbf-ad19-1fa645ea3b3e";
|
|
@@ -16,6 +17,7 @@ export type SessionSpaceCompressedId = number & {
|
|
|
16
17
|
* A compressed ID that has been normalized into "op space".
|
|
17
18
|
* Serialized/persisted structures (e.g. ops) should use op-space IDs as a performance optimization, as they require less normalizing when
|
|
18
19
|
* received by a remote client due to the fact that op space for a given compressor is session space for all other compressors.
|
|
20
|
+
* @internal
|
|
19
21
|
*/
|
|
20
22
|
export type OpSpaceCompressedId = number & {
|
|
21
23
|
readonly OpNormalized: "9209432d-a959-4df7-b2ad-767ead4dbcae";
|
|
@@ -26,10 +28,12 @@ export type OpSpaceCompressedId = number & {
|
|
|
26
28
|
* A 128-bit Universally Unique IDentifier. Represented here
|
|
27
29
|
* with a string of the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx,
|
|
28
30
|
* where x is a lowercase hex digit.
|
|
31
|
+
* @internal
|
|
29
32
|
*/
|
|
30
33
|
export type StableId = string & { readonly StableId: "53172b0d-a3d5-41ea-bd75-b43839c97f5a" };
|
|
31
34
|
|
|
32
35
|
/**
|
|
33
36
|
* A StableId which is suitable for use as a session identifier
|
|
37
|
+
* @internal
|
|
34
38
|
*/
|
|
35
39
|
export type SessionId = StableId & { readonly SessionId: "4498f850-e14e-4be9-8db0-89ec00997e58" };
|
|
@@ -7,6 +7,7 @@ import type { SessionId } from "../identifiers";
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The serialized contents of an IdCompressor, suitable for persistence in a summary.
|
|
10
|
+
* @internal
|
|
10
11
|
*/
|
|
11
12
|
export type SerializedIdCompressor = string & {
|
|
12
13
|
readonly _serializedIdCompressor: "8c73c57c-1cf4-4278-8915-6444cb4f6af5";
|
|
@@ -14,6 +15,7 @@ export type SerializedIdCompressor = string & {
|
|
|
14
15
|
|
|
15
16
|
/**
|
|
16
17
|
* The serialized contents of an IdCompressor, suitable for persistence in a summary.
|
|
18
|
+
* @internal
|
|
17
19
|
*/
|
|
18
20
|
export type SerializedIdCompressorWithNoSession = SerializedIdCompressor & {
|
|
19
21
|
readonly _noLocalState: "3aa2e1e8-cc28-4ea7-bc1a-a11dc3f26dfb";
|
|
@@ -21,6 +23,7 @@ export type SerializedIdCompressorWithNoSession = SerializedIdCompressor & {
|
|
|
21
23
|
|
|
22
24
|
/**
|
|
23
25
|
* The serialized contents of an IdCompressor, suitable for persistence in a summary.
|
|
26
|
+
* @internal
|
|
24
27
|
*/
|
|
25
28
|
export type SerializedIdCompressorWithOngoingSession = SerializedIdCompressor & {
|
|
26
29
|
readonly _hasLocalState: "1281acae-6d14-47e7-bc92-71c8ee0819cb";
|
|
@@ -30,6 +33,7 @@ export type SerializedIdCompressorWithOngoingSession = SerializedIdCompressor &
|
|
|
30
33
|
* Data describing a range of session-local IDs (from a remote or local session).
|
|
31
34
|
*
|
|
32
35
|
* A range is composed of local IDs that were generated.
|
|
36
|
+
* @internal
|
|
33
37
|
*/
|
|
34
38
|
export interface IdCreationRange {
|
|
35
39
|
readonly sessionId: SessionId;
|
|
@@ -42,5 +46,6 @@ export interface IdCreationRange {
|
|
|
42
46
|
/**
|
|
43
47
|
* Roughly equates to a minimum of 1M sessions before we start allocating 64 bit IDs.
|
|
44
48
|
* This value must *NOT* change without careful consideration to compatibility.
|
|
49
|
+
* @internal
|
|
45
50
|
*/
|
|
46
51
|
export const initialClusterCapacity = 512;
|
package/src/protocol.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ISignalMessage, ITree } from "@fluidframework/protocol-definitions";
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* An envelope wraps the contents with the intended target
|
|
10
|
+
* @internal
|
|
10
11
|
*/
|
|
11
12
|
export interface IEnvelope {
|
|
12
13
|
/**
|
|
@@ -20,6 +21,9 @@ export interface IEnvelope {
|
|
|
20
21
|
contents: any;
|
|
21
22
|
}
|
|
22
23
|
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
23
27
|
export interface ISignalEnvelope {
|
|
24
28
|
/**
|
|
25
29
|
* The target for the envelope, undefined for the container
|
|
@@ -42,6 +46,7 @@ export interface ISignalEnvelope {
|
|
|
42
46
|
|
|
43
47
|
/**
|
|
44
48
|
* Represents ISignalMessage with its type.
|
|
49
|
+
* @internal
|
|
45
50
|
*/
|
|
46
51
|
export interface IInboundSignalMessage extends ISignalMessage {
|
|
47
52
|
type: string;
|
|
@@ -50,6 +55,7 @@ export interface IInboundSignalMessage extends ISignalMessage {
|
|
|
50
55
|
/**
|
|
51
56
|
* Message send by client attaching local data structure.
|
|
52
57
|
* Contains snapshot of data structure which is the current state of this data structure.
|
|
58
|
+
* @internal
|
|
53
59
|
*/
|
|
54
60
|
export interface IAttachMessage {
|
|
55
61
|
/**
|
|
@@ -73,6 +79,7 @@ export interface IAttachMessage {
|
|
|
73
79
|
* but it should not be used when creating a new attach op.
|
|
74
80
|
* Older versions of attach messages could have null snapshots,
|
|
75
81
|
* so this gives correct typings for writing backward compatible code.
|
|
82
|
+
* @internal
|
|
76
83
|
*/
|
|
77
84
|
export type InboundAttachMessage = Omit<IAttachMessage, "snapshot"> & {
|
|
78
85
|
snapshot: IAttachMessage["snapshot"] | null;
|
package/src/summary.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { IGarbageCollectionData, IGarbageCollectionDetailsBase } from "./garbage
|
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Contains the aggregation data from a Tree/Subtree.
|
|
18
|
+
* @internal
|
|
18
19
|
*/
|
|
19
20
|
export interface ISummaryStats {
|
|
20
21
|
treeNodeCount: number;
|
|
@@ -30,6 +31,7 @@ export interface ISummaryStats {
|
|
|
30
31
|
* each of its DDS.
|
|
31
32
|
* Any component that implements IChannelContext, IFluidDataStoreChannel or extends SharedObject
|
|
32
33
|
* will be taking part of the summarization process.
|
|
34
|
+
* @internal
|
|
33
35
|
*/
|
|
34
36
|
export interface ISummaryTreeWithStats {
|
|
35
37
|
/**
|
|
@@ -45,6 +47,7 @@ export interface ISummaryTreeWithStats {
|
|
|
45
47
|
|
|
46
48
|
/**
|
|
47
49
|
* Represents a summary at a current sequence number.
|
|
50
|
+
* @internal
|
|
48
51
|
*/
|
|
49
52
|
export interface ISummarizeResult {
|
|
50
53
|
stats: ISummaryStats;
|
|
@@ -65,6 +68,7 @@ export interface ISummarizeResult {
|
|
|
65
68
|
* ...
|
|
66
69
|
* "path1":
|
|
67
70
|
* ```
|
|
71
|
+
* @internal
|
|
68
72
|
*/
|
|
69
73
|
export interface ISummarizeInternalResult extends ISummarizeResult {
|
|
70
74
|
id: string;
|
|
@@ -77,6 +81,7 @@ export interface ISummarizeInternalResult extends ISummarizeResult {
|
|
|
77
81
|
/**
|
|
78
82
|
* @experimental - Can be deleted/changed at any time
|
|
79
83
|
* Contains the necessary information to allow DDSes to do incremental summaries
|
|
84
|
+
* @internal
|
|
80
85
|
*/
|
|
81
86
|
export interface IExperimentalIncrementalSummaryContext {
|
|
82
87
|
/**
|
|
@@ -101,6 +106,9 @@ export interface IExperimentalIncrementalSummaryContext {
|
|
|
101
106
|
summaryPath: string;
|
|
102
107
|
}
|
|
103
108
|
|
|
109
|
+
/**
|
|
110
|
+
* @internal
|
|
111
|
+
*/
|
|
104
112
|
export type SummarizeInternalFn = (
|
|
105
113
|
fullTree: boolean,
|
|
106
114
|
trackState: boolean,
|
|
@@ -108,6 +116,9 @@ export type SummarizeInternalFn = (
|
|
|
108
116
|
incrementalSummaryContext?: IExperimentalIncrementalSummaryContext,
|
|
109
117
|
) => Promise<ISummarizeInternalResult>;
|
|
110
118
|
|
|
119
|
+
/**
|
|
120
|
+
* @internal
|
|
121
|
+
*/
|
|
111
122
|
export interface ISummarizerNodeConfig {
|
|
112
123
|
/**
|
|
113
124
|
* True to reuse previous handle when unchanged since last acked summary.
|
|
@@ -126,6 +137,9 @@ export interface ISummarizerNodeConfig {
|
|
|
126
137
|
readonly throwOnFailure?: true;
|
|
127
138
|
}
|
|
128
139
|
|
|
140
|
+
/**
|
|
141
|
+
* @internal
|
|
142
|
+
*/
|
|
129
143
|
export interface ISummarizerNodeConfigWithGC extends ISummarizerNodeConfig {
|
|
130
144
|
/**
|
|
131
145
|
* True if GC is disabled. If so, don't track GC related state for a summary.
|
|
@@ -134,11 +148,17 @@ export interface ISummarizerNodeConfigWithGC extends ISummarizerNodeConfig {
|
|
|
134
148
|
readonly gcDisabled?: boolean;
|
|
135
149
|
}
|
|
136
150
|
|
|
151
|
+
/**
|
|
152
|
+
* @internal
|
|
153
|
+
*/
|
|
137
154
|
export enum CreateSummarizerNodeSource {
|
|
138
155
|
FromSummary,
|
|
139
156
|
FromAttach,
|
|
140
157
|
Local,
|
|
141
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* @internal
|
|
161
|
+
*/
|
|
142
162
|
export type CreateChildSummarizerNodeParam =
|
|
143
163
|
| {
|
|
144
164
|
type: CreateSummarizerNodeSource.FromSummary;
|
|
@@ -152,6 +172,9 @@ export type CreateChildSummarizerNodeParam =
|
|
|
152
172
|
type: CreateSummarizerNodeSource.Local;
|
|
153
173
|
};
|
|
154
174
|
|
|
175
|
+
/**
|
|
176
|
+
* @internal
|
|
177
|
+
*/
|
|
155
178
|
export interface ISummarizerNode {
|
|
156
179
|
/**
|
|
157
180
|
* Latest successfully acked summary reference sequence number
|
|
@@ -240,6 +263,7 @@ export interface ISummarizerNode {
|
|
|
240
263
|
* `isReferenced`: This tells whether this node is referenced in the document or not.
|
|
241
264
|
*
|
|
242
265
|
* `updateUsedRoutes`: Used to notify this node of routes that are currently in use in it.
|
|
266
|
+
* @internal
|
|
243
267
|
*/
|
|
244
268
|
export interface ISummarizerNodeWithGC extends ISummarizerNode {
|
|
245
269
|
createChild(
|
|
@@ -298,11 +322,15 @@ export interface ISummarizerNodeWithGC extends ISummarizerNode {
|
|
|
298
322
|
updateUsedRoutes(usedRoutes: string[]): void;
|
|
299
323
|
}
|
|
300
324
|
|
|
325
|
+
/**
|
|
326
|
+
* @internal
|
|
327
|
+
*/
|
|
301
328
|
export const channelsTreeName = ".channels";
|
|
302
329
|
|
|
303
330
|
/**
|
|
304
331
|
* Contains telemetry data relevant to summarization workflows.
|
|
305
332
|
* This object is expected to be modified directly by various summarize methods.
|
|
333
|
+
* @internal
|
|
306
334
|
*/
|
|
307
335
|
export interface ITelemetryContext {
|
|
308
336
|
/**
|
|
@@ -340,6 +368,12 @@ export interface ITelemetryContext {
|
|
|
340
368
|
serialize(): string;
|
|
341
369
|
}
|
|
342
370
|
|
|
371
|
+
/**
|
|
372
|
+
* @internal
|
|
373
|
+
*/
|
|
343
374
|
export const blobCountPropertyName = "BlobCount";
|
|
344
375
|
|
|
376
|
+
/**
|
|
377
|
+
* @internal
|
|
378
|
+
*/
|
|
345
379
|
export const totalBlobSizePropertyName = "TotalBlobSize";
|