@fluidframework/runtime-definitions 2.0.0-internal.7.2.2 → 2.0.0-internal.7.4.0
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/CHANGELOG.md +16 -0
- package/README.md +1 -2
- package/api-extractor-lint.json +13 -0
- package/api-extractor.json +3 -3
- package/api-report/runtime-definitions.api.md +75 -113
- package/dist/attribution.d.ts +1 -4
- package/dist/attribution.d.ts.map +1 -1
- package/dist/attribution.js.map +1 -1
- package/dist/dataStoreContext.d.ts +26 -2
- 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/index.d.ts +49 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.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 +1002 -0
- package/dist/runtime-definitions-beta.d.ts +201 -0
- package/dist/runtime-definitions-public.d.ts +201 -0
- package/dist/runtime-definitions-untrimmed.d.ts +1117 -0
- 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/dist/tsdoc-metadata.json +1 -1
- package/lib/runtime-definitions-alpha.d.ts +1002 -0
- package/lib/runtime-definitions-beta.d.ts +201 -0
- package/lib/runtime-definitions-public.d.ts +201 -0
- package/lib/runtime-definitions-untrimmed.d.ts +1117 -0
- package/package.json +44 -15
- package/src/attribution.ts +1 -4
- package/src/dataStoreContext.ts +26 -2
- package/src/dataStoreFactory.ts +7 -0
- package/src/dataStoreRegistry.ts +10 -0
- package/src/garbageCollection.ts +22 -4
- package/src/index.ts +46 -7
- package/src/protocol.ts +7 -0
- package/src/summary.ts +34 -0
- package/dist/id-compressor/idCompressor.d.ts +0 -136
- package/dist/id-compressor/idCompressor.d.ts.map +0 -1
- package/dist/id-compressor/idCompressor.js +0 -7
- package/dist/id-compressor/idCompressor.js.map +0 -1
- package/dist/id-compressor/identifiers.d.ts +0 -36
- package/dist/id-compressor/identifiers.d.ts.map +0 -1
- package/dist/id-compressor/identifiers.js +0 -7
- package/dist/id-compressor/identifiers.js.map +0 -1
- package/dist/id-compressor/index.d.ts +0 -8
- package/dist/id-compressor/index.d.ts.map +0 -1
- package/dist/id-compressor/index.js +0 -10
- package/dist/id-compressor/index.js.map +0 -1
- package/dist/id-compressor/persisted-types/0.0.1.d.ts +0 -44
- package/dist/id-compressor/persisted-types/0.0.1.d.ts.map +0 -1
- package/dist/id-compressor/persisted-types/0.0.1.js +0 -13
- package/dist/id-compressor/persisted-types/0.0.1.js.map +0 -1
- package/dist/id-compressor/persisted-types/index.d.ts +0 -6
- package/dist/id-compressor/persisted-types/index.d.ts.map +0 -1
- package/dist/id-compressor/persisted-types/index.js +0 -10
- package/dist/id-compressor/persisted-types/index.js.map +0 -1
- package/src/id-compressor/idCompressor.ts +0 -152
- package/src/id-compressor/identifiers.ts +0 -35
- package/src/id-compressor/index.ts +0 -17
- package/src/id-compressor/persisted-types/0.0.1.ts +0 -50
- package/src/id-compressor/persisted-types/README.md +0 -3
- package/src/id-compressor/persisted-types/index.ts +0 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @fluidframework/runtime-definitions
|
|
2
2
|
|
|
3
|
+
## 2.0.0-internal.7.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- container-runtime/runtime-definitions: `IdCompressor` and related types deprecated ([#18749](https://github.com/microsoft/FluidFramework/issues/18749)) [6f070179de](https://github.com/microsoft/FluidFramework/commits/6f070179ded7c2f4398252f75485e85b39725419)
|
|
8
|
+
|
|
9
|
+
`IdCompressor` and related types from the @fluidframework/container-runtime and @fluidframework/runtime-definitions
|
|
10
|
+
packages have been deprecated. They can now be found in a new package, @fluidframework/id-compressor.
|
|
11
|
+
|
|
12
|
+
The `IdCompressor` class is deprecated even in the new package. Consumers should use the interfaces, `IIdCompressor` and
|
|
13
|
+
`IIdCompressorCore`, in conjunction with the factory function `createIdCompressor` instead.
|
|
14
|
+
|
|
15
|
+
## 2.0.0-internal.7.3.0
|
|
16
|
+
|
|
17
|
+
Dependency updates only.
|
|
18
|
+
|
|
3
19
|
## 2.0.0-internal.7.2.0
|
|
4
20
|
|
|
5
21
|
Dependency updates only.
|
package/README.md
CHANGED
|
@@ -41,8 +41,7 @@ These interfaces needs to have strong back-compat guaranetee to support dynamic
|
|
|
41
41
|
|
|
42
42
|
This project may contain Microsoft trademarks or logos for Microsoft projects, products, or services.
|
|
43
43
|
|
|
44
|
-
Use of these trademarks or logos must follow Microsoft's [Trademark & Brand
|
|
45
|
-
Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
|
|
44
|
+
Use of these trademarks or logos must follow Microsoft's [Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
|
|
46
45
|
|
|
47
46
|
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
|
|
48
47
|
|
|
@@ -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
|
+
}
|
package/api-extractor.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
|
3
|
-
"extends": "
|
|
3
|
+
"extends": "../../../common/build/build-common/api-extractor-base.json",
|
|
4
4
|
"messages": {
|
|
5
5
|
"extractorMessageReporting": {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
// TODO: Add missing documentation and remove this rule override
|
|
7
|
+
"ae-undocumented": {
|
|
8
8
|
"logLevel": "none"
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -8,6 +8,8 @@ import { AttachState } from '@fluidframework/container-definitions';
|
|
|
8
8
|
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
9
9
|
import { IAudience } from '@fluidframework/container-definitions';
|
|
10
10
|
import { IClientDetails } from '@fluidframework/protocol-definitions';
|
|
11
|
+
import { IdCompressor } from '@fluidframework/id-compressor';
|
|
12
|
+
import { IdCreationRange } from '@fluidframework/id-compressor';
|
|
11
13
|
import { IDeltaManager } from '@fluidframework/container-definitions';
|
|
12
14
|
import { IDisposable } from '@fluidframework/core-interfaces';
|
|
13
15
|
import { IDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
@@ -17,7 +19,10 @@ import { IEventProvider } from '@fluidframework/core-interfaces';
|
|
|
17
19
|
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
18
20
|
import { IFluidHandleContext } from '@fluidframework/core-interfaces';
|
|
19
21
|
import { IFluidRouter } from '@fluidframework/core-interfaces';
|
|
22
|
+
import { IIdCompressor } from '@fluidframework/id-compressor';
|
|
23
|
+
import { IIdCompressorCore } from '@fluidframework/id-compressor';
|
|
20
24
|
import { ILoaderOptions } from '@fluidframework/container-definitions';
|
|
25
|
+
import { initialClusterCapacity } from '@fluidframework/id-compressor';
|
|
21
26
|
import { IProvideFluidHandleContext } from '@fluidframework/core-interfaces';
|
|
22
27
|
import { IQuorumClients } from '@fluidframework/protocol-definitions';
|
|
23
28
|
import { IRequest } from '@fluidframework/core-interfaces';
|
|
@@ -29,13 +34,20 @@ import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
|
29
34
|
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
30
35
|
import { ITree } from '@fluidframework/protocol-definitions';
|
|
31
36
|
import type { IUser } from '@fluidframework/protocol-definitions';
|
|
37
|
+
import { OpSpaceCompressedId } from '@fluidframework/id-compressor';
|
|
38
|
+
import { SerializedIdCompressor } from '@fluidframework/id-compressor';
|
|
39
|
+
import { SerializedIdCompressorWithNoSession } from '@fluidframework/id-compressor';
|
|
40
|
+
import { SerializedIdCompressorWithOngoingSession } from '@fluidframework/id-compressor';
|
|
41
|
+
import { SessionId } from '@fluidframework/id-compressor';
|
|
42
|
+
import { SessionSpaceCompressedId } from '@fluidframework/id-compressor';
|
|
43
|
+
import { StableId } from '@fluidframework/id-compressor';
|
|
32
44
|
import { SummaryTree } from '@fluidframework/protocol-definitions';
|
|
33
45
|
import { TelemetryEventPropertyType } from '@fluidframework/core-interfaces';
|
|
34
46
|
|
|
35
|
-
// @
|
|
47
|
+
// @alpha
|
|
36
48
|
export type AliasResult = "Success" | "Conflict" | "AlreadyAliased";
|
|
37
49
|
|
|
38
|
-
// @
|
|
50
|
+
// @internal
|
|
39
51
|
export interface AttributionInfo {
|
|
40
52
|
timestamp: number;
|
|
41
53
|
user: IUser;
|
|
@@ -44,17 +56,17 @@ export interface AttributionInfo {
|
|
|
44
56
|
// @alpha
|
|
45
57
|
export type AttributionKey = OpAttributionKey | DetachedAttributionKey | LocalAttributionKey;
|
|
46
58
|
|
|
47
|
-
// @
|
|
59
|
+
// @internal (undocumented)
|
|
48
60
|
export const blobCountPropertyName = "BlobCount";
|
|
49
61
|
|
|
50
|
-
// @
|
|
62
|
+
// @internal (undocumented)
|
|
51
63
|
export const channelsTreeName = ".channels";
|
|
52
64
|
|
|
53
|
-
// @
|
|
65
|
+
// @alpha (undocumented)
|
|
54
66
|
export type CreateChildSummarizerNodeFn = (summarizeInternal: SummarizeInternalFn, getGCDataFn: (fullGC?: boolean) => Promise<IGarbageCollectionData>,
|
|
55
67
|
getBaseGCDetailsFn?: () => Promise<IGarbageCollectionDetailsBase>) => ISummarizerNodeWithGC;
|
|
56
68
|
|
|
57
|
-
// @
|
|
69
|
+
// @alpha (undocumented)
|
|
58
70
|
export type CreateChildSummarizerNodeParam = {
|
|
59
71
|
type: CreateSummarizerNodeSource.FromSummary;
|
|
60
72
|
} | {
|
|
@@ -65,7 +77,7 @@ export type CreateChildSummarizerNodeParam = {
|
|
|
65
77
|
type: CreateSummarizerNodeSource.Local;
|
|
66
78
|
};
|
|
67
79
|
|
|
68
|
-
// @
|
|
80
|
+
// @alpha (undocumented)
|
|
69
81
|
export enum CreateSummarizerNodeSource {
|
|
70
82
|
// (undocumented)
|
|
71
83
|
FromAttach = 1,
|
|
@@ -82,45 +94,45 @@ export interface DetachedAttributionKey {
|
|
|
82
94
|
type: "detached";
|
|
83
95
|
}
|
|
84
96
|
|
|
85
|
-
// @
|
|
97
|
+
// @alpha
|
|
86
98
|
export type FluidDataStoreRegistryEntry = Readonly<Partial<IProvideFluidDataStoreRegistry & IProvideFluidDataStoreFactory>>;
|
|
87
99
|
|
|
88
|
-
// @
|
|
100
|
+
// @alpha
|
|
89
101
|
export enum FlushMode {
|
|
90
102
|
Immediate = 0,
|
|
91
103
|
TurnBased = 1
|
|
92
104
|
}
|
|
93
105
|
|
|
94
|
-
// @
|
|
106
|
+
// @internal (undocumented)
|
|
95
107
|
export enum FlushModeExperimental {
|
|
96
108
|
Async = 2
|
|
97
109
|
}
|
|
98
110
|
|
|
99
|
-
// @
|
|
111
|
+
// @internal
|
|
100
112
|
export const gcBlobPrefix = "__gc";
|
|
101
113
|
|
|
102
|
-
// @
|
|
114
|
+
// @internal
|
|
103
115
|
export const gcDeletedBlobKey = "__deletedNodes";
|
|
104
116
|
|
|
105
|
-
// @
|
|
117
|
+
// @internal
|
|
106
118
|
export const gcTombstoneBlobKey = "__tombstones";
|
|
107
119
|
|
|
108
|
-
// @
|
|
120
|
+
// @internal
|
|
109
121
|
export const gcTreeKey = "gc";
|
|
110
122
|
|
|
111
|
-
// @
|
|
123
|
+
// @internal
|
|
112
124
|
export interface IAttachMessage {
|
|
113
125
|
id: string;
|
|
114
126
|
snapshot: ITree;
|
|
115
127
|
type: string;
|
|
116
128
|
}
|
|
117
129
|
|
|
118
|
-
// @
|
|
130
|
+
// @alpha
|
|
119
131
|
export interface IContainerRuntimeBase extends IEventProvider<IContainerRuntimeBaseEvents> {
|
|
120
132
|
// (undocumented)
|
|
121
133
|
readonly clientDetails: IClientDetails;
|
|
122
134
|
createDataStore(pkg: string | string[]): Promise<IDataStore>;
|
|
123
|
-
// @
|
|
135
|
+
// @deprecated (undocumented)
|
|
124
136
|
_createDataStoreWithProps(pkg: string | string[], props?: any, id?: string): Promise<IDataStore>;
|
|
125
137
|
createDetachedDataStore(pkg: Readonly<string[]>): IFluidDataStoreContextDetached;
|
|
126
138
|
getAbsoluteUrl(relativeUrl: string): Promise<string | undefined>;
|
|
@@ -138,7 +150,7 @@ export interface IContainerRuntimeBase extends IEventProvider<IContainerRuntimeB
|
|
|
138
150
|
uploadBlob(blob: ArrayBufferLike, signal?: AbortSignal): Promise<IFluidHandle<ArrayBufferLike>>;
|
|
139
151
|
}
|
|
140
152
|
|
|
141
|
-
// @
|
|
153
|
+
// @alpha (undocumented)
|
|
142
154
|
export interface IContainerRuntimeBaseEvents extends IEvent {
|
|
143
155
|
// (undocumented)
|
|
144
156
|
(event: "batchBegin", listener: (op: ISequencedDocumentMessage) => void): any;
|
|
@@ -150,7 +162,7 @@ export interface IContainerRuntimeBaseEvents extends IEvent {
|
|
|
150
162
|
(event: "signal", listener: (message: IInboundSignalMessage, local: boolean) => void): any;
|
|
151
163
|
}
|
|
152
164
|
|
|
153
|
-
// @
|
|
165
|
+
// @alpha
|
|
154
166
|
export interface IDataStore {
|
|
155
167
|
readonly entryPoint: IFluidHandle<FluidObject>;
|
|
156
168
|
// @deprecated (undocumented)
|
|
@@ -165,36 +177,24 @@ export interface IDataStore {
|
|
|
165
177
|
trySetAlias(alias: string): Promise<AliasResult>;
|
|
166
178
|
}
|
|
167
179
|
|
|
168
|
-
|
|
169
|
-
export interface IdCreationRange {
|
|
170
|
-
// (undocumented)
|
|
171
|
-
readonly ids?: {
|
|
172
|
-
readonly firstGenCount: number;
|
|
173
|
-
readonly count: number;
|
|
174
|
-
};
|
|
175
|
-
// (undocumented)
|
|
176
|
-
readonly sessionId: SessionId;
|
|
177
|
-
}
|
|
180
|
+
export { IdCompressor }
|
|
178
181
|
|
|
179
|
-
|
|
180
|
-
export type IdCreationRangeWithStashedState = IdCreationRange & {
|
|
181
|
-
stashedState: SerializedIdCompressorWithOngoingSession;
|
|
182
|
-
};
|
|
182
|
+
export { IdCreationRange }
|
|
183
183
|
|
|
184
|
-
// @
|
|
184
|
+
// @internal
|
|
185
185
|
export interface IEnvelope {
|
|
186
186
|
address: string;
|
|
187
187
|
contents: any;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
// @
|
|
190
|
+
// @alpha
|
|
191
191
|
export interface IExperimentalIncrementalSummaryContext {
|
|
192
192
|
latestSummarySequenceNumber: number;
|
|
193
193
|
summaryPath: string;
|
|
194
194
|
summarySequenceNumber: number;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
-
// @
|
|
197
|
+
// @alpha
|
|
198
198
|
export interface IFluidDataStoreChannel extends IDisposable {
|
|
199
199
|
// (undocumented)
|
|
200
200
|
applyStashedOp(content: any): Promise<unknown>;
|
|
@@ -222,7 +222,7 @@ export interface IFluidDataStoreChannel extends IDisposable {
|
|
|
222
222
|
readonly visibilityState: VisibilityState;
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
// @
|
|
225
|
+
// @alpha
|
|
226
226
|
export interface IFluidDataStoreContext extends IEventProvider<IFluidDataStoreContextEvents>, Partial<IProvideFluidDataStoreRegistry>, IProvideFluidHandleContext {
|
|
227
227
|
addedGCOutboundReference?(srcHandle: IFluidHandle, outboundHandle: IFluidHandle): void;
|
|
228
228
|
readonly attachState: AttachState;
|
|
@@ -271,95 +271,78 @@ export interface IFluidDataStoreContext extends IEventProvider<IFluidDataStoreCo
|
|
|
271
271
|
uploadBlob(blob: ArrayBufferLike, signal?: AbortSignal): Promise<IFluidHandle<ArrayBufferLike>>;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
// @
|
|
274
|
+
// @alpha (undocumented)
|
|
275
275
|
export interface IFluidDataStoreContextDetached extends IFluidDataStoreContext {
|
|
276
276
|
attachRuntime(factory: IProvideFluidDataStoreFactory, dataStoreRuntime: IFluidDataStoreChannel): Promise<void>;
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
// @
|
|
279
|
+
// @alpha (undocumented)
|
|
280
280
|
export interface IFluidDataStoreContextEvents extends IEvent {
|
|
281
281
|
// (undocumented)
|
|
282
282
|
(event: "attaching" | "attached", listener: () => void): any;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
// @
|
|
285
|
+
// @alpha (undocumented)
|
|
286
286
|
export const IFluidDataStoreFactory: keyof IProvideFluidDataStoreFactory;
|
|
287
287
|
|
|
288
|
-
// @
|
|
288
|
+
// @alpha
|
|
289
289
|
export interface IFluidDataStoreFactory extends IProvideFluidDataStoreFactory {
|
|
290
290
|
instantiateDataStore(context: IFluidDataStoreContext, existing: boolean): Promise<IFluidDataStoreChannel>;
|
|
291
291
|
type: string;
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
// @
|
|
294
|
+
// @alpha (undocumented)
|
|
295
295
|
export const IFluidDataStoreRegistry: keyof IProvideFluidDataStoreRegistry;
|
|
296
296
|
|
|
297
|
-
// @
|
|
297
|
+
// @alpha
|
|
298
298
|
export interface IFluidDataStoreRegistry extends IProvideFluidDataStoreRegistry {
|
|
299
299
|
// (undocumented)
|
|
300
300
|
get(name: string): Promise<FluidDataStoreRegistryEntry | undefined>;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
// @
|
|
303
|
+
// @alpha
|
|
304
304
|
export interface IGarbageCollectionData {
|
|
305
305
|
gcNodes: {
|
|
306
306
|
[id: string]: string[];
|
|
307
307
|
};
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
// @
|
|
310
|
+
// @alpha
|
|
311
311
|
export interface IGarbageCollectionDetailsBase {
|
|
312
312
|
gcData?: IGarbageCollectionData;
|
|
313
313
|
usedRoutes?: string[];
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
-
|
|
317
|
-
export interface IIdCompressor {
|
|
318
|
-
decompress(id: SessionSpaceCompressedId): StableId;
|
|
319
|
-
generateCompressedId(): SessionSpaceCompressedId;
|
|
320
|
-
// (undocumented)
|
|
321
|
-
localSessionId: SessionId;
|
|
322
|
-
normalizeToOpSpace(id: SessionSpaceCompressedId): OpSpaceCompressedId;
|
|
323
|
-
normalizeToSessionSpace(id: OpSpaceCompressedId, originSessionId: SessionId): SessionSpaceCompressedId;
|
|
324
|
-
recompress(uncompressed: StableId): SessionSpaceCompressedId;
|
|
325
|
-
tryRecompress(uncompressed: StableId): SessionSpaceCompressedId | undefined;
|
|
326
|
-
}
|
|
316
|
+
export { IIdCompressor }
|
|
327
317
|
|
|
328
|
-
|
|
329
|
-
export interface IIdCompressorCore {
|
|
330
|
-
finalizeCreationRange(range: IdCreationRange): void;
|
|
331
|
-
serialize(withSession: true): SerializedIdCompressorWithOngoingSession;
|
|
332
|
-
serialize(withSession: false): SerializedIdCompressorWithNoSession;
|
|
333
|
-
takeNextCreationRange(): IdCreationRange;
|
|
334
|
-
}
|
|
318
|
+
export { IIdCompressorCore }
|
|
335
319
|
|
|
336
|
-
// @
|
|
320
|
+
// @alpha
|
|
337
321
|
export interface IInboundSignalMessage extends ISignalMessage {
|
|
338
322
|
// (undocumented)
|
|
339
323
|
type: string;
|
|
340
324
|
}
|
|
341
325
|
|
|
342
|
-
// @
|
|
326
|
+
// @internal
|
|
343
327
|
export type InboundAttachMessage = Omit<IAttachMessage, "snapshot"> & {
|
|
344
328
|
snapshot: IAttachMessage["snapshot"] | null;
|
|
345
329
|
};
|
|
346
330
|
|
|
347
|
-
|
|
348
|
-
export const initialClusterCapacity = 512;
|
|
331
|
+
export { initialClusterCapacity }
|
|
349
332
|
|
|
350
|
-
// @
|
|
333
|
+
// @alpha (undocumented)
|
|
351
334
|
export interface IProvideFluidDataStoreFactory {
|
|
352
335
|
// (undocumented)
|
|
353
336
|
readonly IFluidDataStoreFactory: IFluidDataStoreFactory;
|
|
354
337
|
}
|
|
355
338
|
|
|
356
|
-
// @
|
|
339
|
+
// @alpha (undocumented)
|
|
357
340
|
export interface IProvideFluidDataStoreRegistry {
|
|
358
341
|
// (undocumented)
|
|
359
342
|
readonly IFluidDataStoreRegistry: IFluidDataStoreRegistry;
|
|
360
343
|
}
|
|
361
344
|
|
|
362
|
-
// @
|
|
345
|
+
// @internal (undocumented)
|
|
363
346
|
export interface ISignalEnvelope {
|
|
364
347
|
address?: string;
|
|
365
348
|
clientSignalSequenceNumber: number;
|
|
@@ -369,14 +352,14 @@ export interface ISignalEnvelope {
|
|
|
369
352
|
};
|
|
370
353
|
}
|
|
371
354
|
|
|
372
|
-
// @
|
|
355
|
+
// @alpha
|
|
373
356
|
export interface ISummarizeInternalResult extends ISummarizeResult {
|
|
374
357
|
// (undocumented)
|
|
375
358
|
id: string;
|
|
376
359
|
pathPartsForChildren?: string[];
|
|
377
360
|
}
|
|
378
361
|
|
|
379
|
-
// @
|
|
362
|
+
// @alpha
|
|
380
363
|
export interface ISummarizeResult {
|
|
381
364
|
// (undocumented)
|
|
382
365
|
stats: ISummaryStats;
|
|
@@ -384,7 +367,7 @@ export interface ISummarizeResult {
|
|
|
384
367
|
summary: SummaryTree;
|
|
385
368
|
}
|
|
386
369
|
|
|
387
|
-
// @
|
|
370
|
+
// @alpha (undocumented)
|
|
388
371
|
export interface ISummarizerNode {
|
|
389
372
|
// (undocumented)
|
|
390
373
|
createChild(
|
|
@@ -402,18 +385,18 @@ export interface ISummarizerNode {
|
|
|
402
385
|
updateBaseSummaryState(snapshot: ISnapshotTree): void;
|
|
403
386
|
}
|
|
404
387
|
|
|
405
|
-
// @
|
|
388
|
+
// @alpha (undocumented)
|
|
406
389
|
export interface ISummarizerNodeConfig {
|
|
407
390
|
readonly canReuseHandle?: boolean;
|
|
408
391
|
readonly throwOnFailure?: true;
|
|
409
392
|
}
|
|
410
393
|
|
|
411
|
-
// @
|
|
394
|
+
// @alpha (undocumented)
|
|
412
395
|
export interface ISummarizerNodeConfigWithGC extends ISummarizerNodeConfig {
|
|
413
396
|
readonly gcDisabled?: boolean;
|
|
414
397
|
}
|
|
415
398
|
|
|
416
|
-
// @
|
|
399
|
+
// @alpha
|
|
417
400
|
export interface ISummarizerNodeWithGC extends ISummarizerNode {
|
|
418
401
|
// (undocumented)
|
|
419
402
|
createChild(
|
|
@@ -430,7 +413,7 @@ export interface ISummarizerNodeWithGC extends ISummarizerNode {
|
|
|
430
413
|
updateUsedRoutes(usedRoutes: string[]): void;
|
|
431
414
|
}
|
|
432
415
|
|
|
433
|
-
// @
|
|
416
|
+
// @alpha
|
|
434
417
|
export interface ISummaryStats {
|
|
435
418
|
// (undocumented)
|
|
436
419
|
blobNodeCount: number;
|
|
@@ -444,13 +427,13 @@ export interface ISummaryStats {
|
|
|
444
427
|
unreferencedBlobSize: number;
|
|
445
428
|
}
|
|
446
429
|
|
|
447
|
-
// @
|
|
430
|
+
// @alpha
|
|
448
431
|
export interface ISummaryTreeWithStats {
|
|
449
432
|
stats: ISummaryStats;
|
|
450
433
|
summary: ISummaryTree;
|
|
451
434
|
}
|
|
452
435
|
|
|
453
|
-
// @
|
|
436
|
+
// @alpha
|
|
454
437
|
export interface ITelemetryContext {
|
|
455
438
|
get(prefix: string, property: string): TelemetryEventPropertyType;
|
|
456
439
|
serialize(): string;
|
|
@@ -464,10 +447,10 @@ export interface LocalAttributionKey {
|
|
|
464
447
|
type: "local";
|
|
465
448
|
}
|
|
466
449
|
|
|
467
|
-
// @
|
|
450
|
+
// @alpha
|
|
468
451
|
export type NamedFluidDataStoreRegistryEntries = Iterable<NamedFluidDataStoreRegistryEntry>;
|
|
469
452
|
|
|
470
|
-
// @
|
|
453
|
+
// @alpha
|
|
471
454
|
export type NamedFluidDataStoreRegistryEntry = [string, Promise<FluidDataStoreRegistryEntry>];
|
|
472
455
|
|
|
473
456
|
// @alpha
|
|
@@ -476,55 +459,34 @@ export interface OpAttributionKey {
|
|
|
476
459
|
type: "op";
|
|
477
460
|
}
|
|
478
461
|
|
|
479
|
-
|
|
480
|
-
export type OpSpaceCompressedId = number & {
|
|
481
|
-
readonly OpNormalized: "9209432d-a959-4df7-b2ad-767ead4dbcae";
|
|
482
|
-
};
|
|
462
|
+
export { OpSpaceCompressedId }
|
|
483
463
|
|
|
484
|
-
|
|
485
|
-
export type SerializedIdCompressor = string & {
|
|
486
|
-
readonly _serializedIdCompressor: "8c73c57c-1cf4-4278-8915-6444cb4f6af5";
|
|
487
|
-
};
|
|
464
|
+
export { SerializedIdCompressor }
|
|
488
465
|
|
|
489
|
-
|
|
490
|
-
export type SerializedIdCompressorWithNoSession = SerializedIdCompressor & {
|
|
491
|
-
readonly _noLocalState: "3aa2e1e8-cc28-4ea7-bc1a-a11dc3f26dfb";
|
|
492
|
-
};
|
|
466
|
+
export { SerializedIdCompressorWithNoSession }
|
|
493
467
|
|
|
494
|
-
|
|
495
|
-
export type SerializedIdCompressorWithOngoingSession = SerializedIdCompressor & {
|
|
496
|
-
readonly _hasLocalState: "1281acae-6d14-47e7-bc92-71c8ee0819cb";
|
|
497
|
-
};
|
|
468
|
+
export { SerializedIdCompressorWithOngoingSession }
|
|
498
469
|
|
|
499
|
-
|
|
500
|
-
export type SessionId = StableId & {
|
|
501
|
-
readonly SessionId: "4498f850-e14e-4be9-8db0-89ec00997e58";
|
|
502
|
-
};
|
|
470
|
+
export { SessionId }
|
|
503
471
|
|
|
504
|
-
|
|
505
|
-
export type SessionSpaceCompressedId = number & {
|
|
506
|
-
readonly SessionUnique: "cea55054-6b82-4cbf-ad19-1fa645ea3b3e";
|
|
507
|
-
};
|
|
472
|
+
export { SessionSpaceCompressedId }
|
|
508
473
|
|
|
509
|
-
|
|
510
|
-
export type StableId = string & {
|
|
511
|
-
readonly StableId: "53172b0d-a3d5-41ea-bd75-b43839c97f5a";
|
|
512
|
-
};
|
|
474
|
+
export { StableId }
|
|
513
475
|
|
|
514
|
-
// @
|
|
476
|
+
// @alpha (undocumented)
|
|
515
477
|
export type SummarizeInternalFn = (fullTree: boolean, trackState: boolean, telemetryContext?: ITelemetryContext, incrementalSummaryContext?: IExperimentalIncrementalSummaryContext) => Promise<ISummarizeInternalResult>;
|
|
516
478
|
|
|
517
|
-
// @
|
|
479
|
+
// @internal (undocumented)
|
|
518
480
|
export const totalBlobSizePropertyName = "TotalBlobSize";
|
|
519
481
|
|
|
520
|
-
// @
|
|
482
|
+
// @alpha
|
|
521
483
|
export const VisibilityState: {
|
|
522
484
|
NotVisible: string;
|
|
523
485
|
LocallyVisible: string;
|
|
524
486
|
GloballyVisible: string;
|
|
525
487
|
};
|
|
526
488
|
|
|
527
|
-
// @
|
|
489
|
+
// @alpha (undocumented)
|
|
528
490
|
export type VisibilityState = (typeof VisibilityState)[keyof typeof VisibilityState];
|
|
529
491
|
|
|
530
492
|
// (No @packageDocumentation comment for this package)
|
package/dist/attribution.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ import type { IUser } from "@fluidframework/protocol-definitions";
|
|
|
6
6
|
/**
|
|
7
7
|
* AttributionKey representing a reference to some op in the op stream.
|
|
8
8
|
* Content associated with this key aligns with content modified by that op.
|
|
9
|
-
*
|
|
10
9
|
* @alpha
|
|
11
10
|
*/
|
|
12
11
|
export interface OpAttributionKey {
|
|
@@ -29,7 +28,6 @@ export interface OpAttributionKey {
|
|
|
29
28
|
* is currently unsupported, as applications can effectively modify content anonymously while detached.
|
|
30
29
|
* The runtime has no mechanism for reliably obtaining the user. It would be reasonable to start supporting
|
|
31
30
|
* this functionality if the host provided additional context to their attributor or attach calls.
|
|
32
|
-
*
|
|
33
31
|
* @alpha
|
|
34
32
|
*/
|
|
35
33
|
export interface DetachedAttributionKey {
|
|
@@ -46,7 +44,6 @@ export interface DetachedAttributionKey {
|
|
|
46
44
|
}
|
|
47
45
|
/**
|
|
48
46
|
* AttributionKey associated with content that has been made locally but not yet acked by the server.
|
|
49
|
-
*
|
|
50
47
|
* @alpha
|
|
51
48
|
*/
|
|
52
49
|
export interface LocalAttributionKey {
|
|
@@ -59,7 +56,7 @@ export interface LocalAttributionKey {
|
|
|
59
56
|
export type AttributionKey = OpAttributionKey | DetachedAttributionKey | LocalAttributionKey;
|
|
60
57
|
/**
|
|
61
58
|
* Attribution information associated with a change.
|
|
62
|
-
* @
|
|
59
|
+
* @internal
|
|
63
60
|
*/
|
|
64
61
|
export interface AttributionInfo {
|
|
65
62
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribution.d.ts","sourceRoot":"","sources":["../src/attribution.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAElE
|
|
1
|
+
{"version":3,"file":"attribution.d.ts","sourceRoot":"","sources":["../src/attribution.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAElE;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAChC;;;;;OAKG;IACH,IAAI,EAAE,IAAI,CAAC;IAEX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACZ;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,sBAAsB;IACtC,IAAI,EAAE,UAAU,CAAC;IAEjB;;;;;;;OAOG;IACH,EAAE,EAAE,CAAC,CAAC;CACN;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,OAAO,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,gBAAgB,GAAG,sBAAsB,GAAG,mBAAmB,CAAC;AAE7F;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC;IACZ;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CAClB"}
|
package/dist/attribution.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribution.js","sourceRoot":"","sources":["../src/attribution.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { IUser } from \"@fluidframework/protocol-definitions\";\n\n/**\n * AttributionKey representing a reference to some op in the op stream.\n * Content associated with this key aligns with content modified by that op.\n
|
|
1
|
+
{"version":3,"file":"attribution.js","sourceRoot":"","sources":["../src/attribution.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { IUser } from \"@fluidframework/protocol-definitions\";\n\n/**\n * AttributionKey representing a reference to some op in the op stream.\n * Content associated with this key aligns with content modified by that op.\n * @alpha\n */\nexport interface OpAttributionKey {\n\t/**\n\t * The type of attribution this key corresponds to.\n\t *\n\t * Keys currently all represent op-based attribution, so have the form `{ type: \"op\", key: sequenceNumber }`.\n\t * Thus, they can be used with an `OpStreamAttributor` to recover timestamp/user information.\n\t */\n\ttype: \"op\";\n\n\t/**\n\t * The sequenceNumber of the op this attribution key is for.\n\t */\n\tseq: number;\n}\n\n/**\n * AttributionKey associated with content that was inserted while the container was in a detached state.\n *\n * @remarks Retrieving an {@link AttributionInfo} from content associated with detached attribution keys\n * is currently unsupported, as applications can effectively modify content anonymously while detached.\n * The runtime has no mechanism for reliably obtaining the user. It would be reasonable to start supporting\n * this functionality if the host provided additional context to their attributor or attach calls.\n * @alpha\n */\nexport interface DetachedAttributionKey {\n\ttype: \"detached\";\n\n\t/**\n\t * Arbitrary discriminator associated with content inserted while detached.\n\t *\n\t * @remarks For now, the runtime assumes all content created while detached is associated\n\t * with the same user/timestamp.\n\t * We could weaken this assumption in the future with further API support and\n\t * allow arbitrary strings or numbers as part of this key.\n\t */\n\tid: 0;\n}\n\n/**\n * AttributionKey associated with content that has been made locally but not yet acked by the server.\n * @alpha\n */\nexport interface LocalAttributionKey {\n\ttype: \"local\";\n}\n\n/**\n * Can be indexed into the ContainerRuntime in order to retrieve {@link AttributionInfo}.\n * @alpha\n */\nexport type AttributionKey = OpAttributionKey | DetachedAttributionKey | LocalAttributionKey;\n\n/**\n * Attribution information associated with a change.\n * @internal\n */\nexport interface AttributionInfo {\n\t/**\n\t * The user that performed the change.\n\t */\n\tuser: IUser;\n\t/**\n\t * When the change happened.\n\t */\n\ttimestamp: number;\n}\n"]}
|