@fluidframework/runtime-definitions 2.0.0-internal.7.3.0 → 2.0.0-internal.8.0.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 +52 -0
- package/api-extractor-lint.json +13 -0
- package/api-extractor.json +3 -3
- package/api-report/runtime-definitions.api.md +74 -127
- 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 +27 -47
- 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 +45 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -3
- 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 +953 -0
- package/dist/runtime-definitions-beta.d.ts +192 -0
- package/dist/runtime-definitions-public.d.ts +192 -0
- package/dist/runtime-definitions-untrimmed.d.ts +1068 -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/lib/runtime-definitions-alpha.d.ts +953 -0
- package/lib/runtime-definitions-beta.d.ts +192 -0
- package/lib/runtime-definitions-public.d.ts +192 -0
- package/lib/runtime-definitions-untrimmed.d.ts +1068 -0
- package/package.json +54 -8
- package/src/attribution.ts +1 -4
- package/src/dataStoreContext.ts +26 -54
- package/src/dataStoreFactory.ts +7 -0
- package/src/dataStoreRegistry.ts +10 -0
- package/src/garbageCollection.ts +22 -4
- package/src/index.ts +43 -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 -41
- 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 -16
- package/src/id-compressor/persisted-types/0.0.1.ts +0 -46
- package/src/id-compressor/persisted-types/README.md +0 -3
- package/src/id-compressor/persisted-types/index.ts +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,57 @@
|
|
|
1
1
|
# @fluidframework/runtime-definitions
|
|
2
2
|
|
|
3
|
+
## 2.0.0-internal.8.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- container-runtime-definitions: Removed resolveHandle and IFluidHandleContext from ContainerRuntime interfaces [9a451d4946](https://github.com/microsoft/FluidFramework/commits/9a451d4946b5c51a52e4d1ab5bf51e7b285b0d74)
|
|
8
|
+
|
|
9
|
+
The `IContainerRuntime.resolveHandle(...)` method and the `IContainerRuntimeBase.IFluidHandleContext` property have been
|
|
10
|
+
removed. Please remove all usage of these APIs.
|
|
11
|
+
|
|
12
|
+
See
|
|
13
|
+
[Removing-IFluidRouter.md](https://github.com/microsoft/FluidFramework/blob/main/packages/common/core-interfaces/Removing-IFluidRouter.md)
|
|
14
|
+
for more details.
|
|
15
|
+
|
|
16
|
+
- container-runtime: Removed request pattern from ContainerRuntime, IRuntime, and IContainerRuntimeBase [9a451d4946](https://github.com/microsoft/FluidFramework/commits/9a451d4946b5c51a52e4d1ab5bf51e7b285b0d74)
|
|
17
|
+
|
|
18
|
+
The `request(...)` method and `IFluidRouter` property have been removed from the following places:
|
|
19
|
+
|
|
20
|
+
- `ContainerRuntime`
|
|
21
|
+
- `IRuntime`
|
|
22
|
+
- `IContainerRuntimeBase`
|
|
23
|
+
|
|
24
|
+
Please use the `IRuntime.getEntryPoint()` method to get the runtime's entry point.
|
|
25
|
+
|
|
26
|
+
See [Removing-IFluidRouter.md](https://github.com/microsoft/FluidFramework/blob/main/packages/common/core-interfaces/Removing-IFluidRouter.md) for more details.
|
|
27
|
+
|
|
28
|
+
- runtime-definitions: Removed IFluidRouter from IFluidDataStoreChannel and FluidDataStoreRuntime [9a451d4946](https://github.com/microsoft/FluidFramework/commits/9a451d4946b5c51a52e4d1ab5bf51e7b285b0d74)
|
|
29
|
+
|
|
30
|
+
The `IFluidRouter` property has been removed from `IFluidDataStoreChannel` and `FluidDataStoreRuntime`. Please migrate
|
|
31
|
+
all usage to the `IFluidDataStoreChannel.entryPoint` API.
|
|
32
|
+
|
|
33
|
+
See
|
|
34
|
+
[Removing-IFluidRouter.md](https://github.com/microsoft/FluidFramework/blob/main/packages/common/core-interfaces/Removing-IFluidRouter.md)
|
|
35
|
+
for more details.
|
|
36
|
+
|
|
37
|
+
- runtime-definitions: Removed request and IFluidRouter from IDataStore [9a451d4946](https://github.com/microsoft/FluidFramework/commits/9a451d4946b5c51a52e4d1ab5bf51e7b285b0d74)
|
|
38
|
+
|
|
39
|
+
The `request` method and `IFluidRouter` property have been removed from `IDataStore`. Please migrate all usage to the `IDataStore.entryPoint` API.
|
|
40
|
+
|
|
41
|
+
See [Removing-IFluidRouter.md](https://github.com/microsoft/FluidFramework/blob/main/packages/common/core-interfaces/Removing-IFluidRouter.md) for more details.
|
|
42
|
+
|
|
43
|
+
## 2.0.0-internal.7.4.0
|
|
44
|
+
|
|
45
|
+
### Minor Changes
|
|
46
|
+
|
|
47
|
+
- 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)
|
|
48
|
+
|
|
49
|
+
`IdCompressor` and related types from the @fluidframework/container-runtime and @fluidframework/runtime-definitions
|
|
50
|
+
packages have been deprecated. They can now be found in a new package, @fluidframework/id-compressor.
|
|
51
|
+
|
|
52
|
+
The `IdCompressor` class is deprecated even in the new package. Consumers should use the interfaces, `IIdCompressor` and
|
|
53
|
+
`IIdCompressorCore`, in conjunction with the factory function `createIdCompressor` instead.
|
|
54
|
+
|
|
3
55
|
## 2.0.0-internal.7.3.0
|
|
4
56
|
|
|
5
57
|
Dependency updates only.
|
|
@@ -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';
|
|
@@ -15,8 +17,8 @@ import { IDocumentStorageService } from '@fluidframework/driver-definitions';
|
|
|
15
17
|
import { IEvent } from '@fluidframework/core-interfaces';
|
|
16
18
|
import { IEventProvider } from '@fluidframework/core-interfaces';
|
|
17
19
|
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
+
import { IIdCompressor } from '@fluidframework/id-compressor';
|
|
21
|
+
import { IIdCompressorCore } from '@fluidframework/id-compressor';
|
|
20
22
|
import { ILoaderOptions } from '@fluidframework/container-definitions';
|
|
21
23
|
import { IProvideFluidHandleContext } from '@fluidframework/core-interfaces';
|
|
22
24
|
import { IQuorumClients } from '@fluidframework/protocol-definitions';
|
|
@@ -29,13 +31,20 @@ import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
|
29
31
|
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
30
32
|
import { ITree } from '@fluidframework/protocol-definitions';
|
|
31
33
|
import type { IUser } from '@fluidframework/protocol-definitions';
|
|
34
|
+
import { OpSpaceCompressedId } from '@fluidframework/id-compressor';
|
|
35
|
+
import { SerializedIdCompressor } from '@fluidframework/id-compressor';
|
|
36
|
+
import { SerializedIdCompressorWithNoSession } from '@fluidframework/id-compressor';
|
|
37
|
+
import { SerializedIdCompressorWithOngoingSession } from '@fluidframework/id-compressor';
|
|
38
|
+
import { SessionId } from '@fluidframework/id-compressor';
|
|
39
|
+
import { SessionSpaceCompressedId } from '@fluidframework/id-compressor';
|
|
40
|
+
import { StableId } from '@fluidframework/id-compressor';
|
|
32
41
|
import { SummaryTree } from '@fluidframework/protocol-definitions';
|
|
33
42
|
import { TelemetryEventPropertyType } from '@fluidframework/core-interfaces';
|
|
34
43
|
|
|
35
|
-
// @
|
|
44
|
+
// @alpha
|
|
36
45
|
export type AliasResult = "Success" | "Conflict" | "AlreadyAliased";
|
|
37
46
|
|
|
38
|
-
// @
|
|
47
|
+
// @internal
|
|
39
48
|
export interface AttributionInfo {
|
|
40
49
|
timestamp: number;
|
|
41
50
|
user: IUser;
|
|
@@ -44,17 +53,17 @@ export interface AttributionInfo {
|
|
|
44
53
|
// @alpha
|
|
45
54
|
export type AttributionKey = OpAttributionKey | DetachedAttributionKey | LocalAttributionKey;
|
|
46
55
|
|
|
47
|
-
// @
|
|
56
|
+
// @internal (undocumented)
|
|
48
57
|
export const blobCountPropertyName = "BlobCount";
|
|
49
58
|
|
|
50
|
-
// @
|
|
59
|
+
// @internal (undocumented)
|
|
51
60
|
export const channelsTreeName = ".channels";
|
|
52
61
|
|
|
53
|
-
// @
|
|
62
|
+
// @alpha (undocumented)
|
|
54
63
|
export type CreateChildSummarizerNodeFn = (summarizeInternal: SummarizeInternalFn, getGCDataFn: (fullGC?: boolean) => Promise<IGarbageCollectionData>,
|
|
55
64
|
getBaseGCDetailsFn?: () => Promise<IGarbageCollectionDetailsBase>) => ISummarizerNodeWithGC;
|
|
56
65
|
|
|
57
|
-
// @
|
|
66
|
+
// @alpha (undocumented)
|
|
58
67
|
export type CreateChildSummarizerNodeParam = {
|
|
59
68
|
type: CreateSummarizerNodeSource.FromSummary;
|
|
60
69
|
} | {
|
|
@@ -65,7 +74,7 @@ export type CreateChildSummarizerNodeParam = {
|
|
|
65
74
|
type: CreateSummarizerNodeSource.Local;
|
|
66
75
|
};
|
|
67
76
|
|
|
68
|
-
// @
|
|
77
|
+
// @alpha (undocumented)
|
|
69
78
|
export enum CreateSummarizerNodeSource {
|
|
70
79
|
// (undocumented)
|
|
71
80
|
FromAttach = 1,
|
|
@@ -82,63 +91,59 @@ export interface DetachedAttributionKey {
|
|
|
82
91
|
type: "detached";
|
|
83
92
|
}
|
|
84
93
|
|
|
85
|
-
// @
|
|
94
|
+
// @alpha
|
|
86
95
|
export type FluidDataStoreRegistryEntry = Readonly<Partial<IProvideFluidDataStoreRegistry & IProvideFluidDataStoreFactory>>;
|
|
87
96
|
|
|
88
|
-
// @
|
|
97
|
+
// @alpha
|
|
89
98
|
export enum FlushMode {
|
|
90
99
|
Immediate = 0,
|
|
91
100
|
TurnBased = 1
|
|
92
101
|
}
|
|
93
102
|
|
|
94
|
-
// @
|
|
103
|
+
// @internal (undocumented)
|
|
95
104
|
export enum FlushModeExperimental {
|
|
96
105
|
Async = 2
|
|
97
106
|
}
|
|
98
107
|
|
|
99
|
-
// @
|
|
108
|
+
// @internal
|
|
100
109
|
export const gcBlobPrefix = "__gc";
|
|
101
110
|
|
|
102
|
-
// @
|
|
111
|
+
// @internal
|
|
103
112
|
export const gcDeletedBlobKey = "__deletedNodes";
|
|
104
113
|
|
|
105
|
-
// @
|
|
114
|
+
// @internal
|
|
106
115
|
export const gcTombstoneBlobKey = "__tombstones";
|
|
107
116
|
|
|
108
|
-
// @
|
|
117
|
+
// @internal
|
|
109
118
|
export const gcTreeKey = "gc";
|
|
110
119
|
|
|
111
|
-
// @
|
|
120
|
+
// @internal
|
|
112
121
|
export interface IAttachMessage {
|
|
113
122
|
id: string;
|
|
114
123
|
snapshot: ITree;
|
|
115
124
|
type: string;
|
|
116
125
|
}
|
|
117
126
|
|
|
118
|
-
// @
|
|
127
|
+
// @alpha
|
|
119
128
|
export interface IContainerRuntimeBase extends IEventProvider<IContainerRuntimeBaseEvents> {
|
|
120
129
|
// (undocumented)
|
|
121
130
|
readonly clientDetails: IClientDetails;
|
|
122
131
|
createDataStore(pkg: string | string[]): Promise<IDataStore>;
|
|
123
|
-
// @
|
|
132
|
+
// @deprecated (undocumented)
|
|
124
133
|
_createDataStoreWithProps(pkg: string | string[], props?: any, id?: string): Promise<IDataStore>;
|
|
125
134
|
createDetachedDataStore(pkg: Readonly<string[]>): IFluidDataStoreContextDetached;
|
|
126
135
|
getAbsoluteUrl(relativeUrl: string): Promise<string | undefined>;
|
|
127
136
|
getAudience(): IAudience;
|
|
128
137
|
getQuorum(): IQuorumClients;
|
|
129
|
-
// @deprecated (undocumented)
|
|
130
|
-
readonly IFluidHandleContext: IFluidHandleContext;
|
|
131
138
|
// (undocumented)
|
|
132
139
|
readonly logger: ITelemetryBaseLogger;
|
|
133
140
|
orderSequentially(callback: () => void): void;
|
|
134
|
-
// @deprecated
|
|
135
|
-
request(request: IRequest): Promise<IResponse>;
|
|
136
141
|
submitSignal(type: string, content: any): void;
|
|
137
142
|
// (undocumented)
|
|
138
143
|
uploadBlob(blob: ArrayBufferLike, signal?: AbortSignal): Promise<IFluidHandle<ArrayBufferLike>>;
|
|
139
144
|
}
|
|
140
145
|
|
|
141
|
-
// @
|
|
146
|
+
// @alpha (undocumented)
|
|
142
147
|
export interface IContainerRuntimeBaseEvents extends IEvent {
|
|
143
148
|
// (undocumented)
|
|
144
149
|
(event: "batchBegin", listener: (op: ISequencedDocumentMessage) => void): any;
|
|
@@ -150,46 +155,30 @@ export interface IContainerRuntimeBaseEvents extends IEvent {
|
|
|
150
155
|
(event: "signal", listener: (message: IInboundSignalMessage, local: boolean) => void): any;
|
|
151
156
|
}
|
|
152
157
|
|
|
153
|
-
// @
|
|
158
|
+
// @alpha
|
|
154
159
|
export interface IDataStore {
|
|
155
160
|
readonly entryPoint: IFluidHandle<FluidObject>;
|
|
156
|
-
// @deprecated (undocumented)
|
|
157
|
-
readonly IFluidRouter: IFluidRouter;
|
|
158
|
-
// @deprecated (undocumented)
|
|
159
|
-
request(request: {
|
|
160
|
-
url: "/";
|
|
161
|
-
headers?: undefined;
|
|
162
|
-
}): Promise<IResponse>;
|
|
163
|
-
// @deprecated
|
|
164
|
-
request(request: IRequest): Promise<IResponse>;
|
|
165
161
|
trySetAlias(alias: string): Promise<AliasResult>;
|
|
166
162
|
}
|
|
167
163
|
|
|
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
|
-
}
|
|
164
|
+
export { IdCompressor }
|
|
178
165
|
|
|
179
|
-
|
|
166
|
+
export { IdCreationRange }
|
|
167
|
+
|
|
168
|
+
// @internal
|
|
180
169
|
export interface IEnvelope {
|
|
181
170
|
address: string;
|
|
182
171
|
contents: any;
|
|
183
172
|
}
|
|
184
173
|
|
|
185
|
-
// @
|
|
174
|
+
// @alpha
|
|
186
175
|
export interface IExperimentalIncrementalSummaryContext {
|
|
187
176
|
latestSummarySequenceNumber: number;
|
|
188
177
|
summaryPath: string;
|
|
189
178
|
summarySequenceNumber: number;
|
|
190
179
|
}
|
|
191
180
|
|
|
192
|
-
// @
|
|
181
|
+
// @alpha
|
|
193
182
|
export interface IFluidDataStoreChannel extends IDisposable {
|
|
194
183
|
// (undocumented)
|
|
195
184
|
applyStashedOp(content: any): Promise<unknown>;
|
|
@@ -201,8 +190,6 @@ export interface IFluidDataStoreChannel extends IDisposable {
|
|
|
201
190
|
getGCData(fullGC?: boolean): Promise<IGarbageCollectionData>;
|
|
202
191
|
// (undocumented)
|
|
203
192
|
readonly id: string;
|
|
204
|
-
// @deprecated (undocumented)
|
|
205
|
-
readonly IFluidRouter: IFluidRouter;
|
|
206
193
|
makeVisibleAndAttachGraph(): void;
|
|
207
194
|
process(message: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown): void;
|
|
208
195
|
processSignal(message: any, local: boolean): void;
|
|
@@ -217,7 +204,7 @@ export interface IFluidDataStoreChannel extends IDisposable {
|
|
|
217
204
|
readonly visibilityState: VisibilityState;
|
|
218
205
|
}
|
|
219
206
|
|
|
220
|
-
// @
|
|
207
|
+
// @alpha
|
|
221
208
|
export interface IFluidDataStoreContext extends IEventProvider<IFluidDataStoreContextEvents>, Partial<IProvideFluidDataStoreRegistry>, IProvideFluidHandleContext {
|
|
222
209
|
addedGCOutboundReference?(srcHandle: IFluidHandle, outboundHandle: IFluidHandle): void;
|
|
223
210
|
readonly attachState: AttachState;
|
|
@@ -266,95 +253,76 @@ export interface IFluidDataStoreContext extends IEventProvider<IFluidDataStoreCo
|
|
|
266
253
|
uploadBlob(blob: ArrayBufferLike, signal?: AbortSignal): Promise<IFluidHandle<ArrayBufferLike>>;
|
|
267
254
|
}
|
|
268
255
|
|
|
269
|
-
// @
|
|
256
|
+
// @alpha (undocumented)
|
|
270
257
|
export interface IFluidDataStoreContextDetached extends IFluidDataStoreContext {
|
|
271
258
|
attachRuntime(factory: IProvideFluidDataStoreFactory, dataStoreRuntime: IFluidDataStoreChannel): Promise<void>;
|
|
272
259
|
}
|
|
273
260
|
|
|
274
|
-
// @
|
|
261
|
+
// @alpha (undocumented)
|
|
275
262
|
export interface IFluidDataStoreContextEvents extends IEvent {
|
|
276
263
|
// (undocumented)
|
|
277
264
|
(event: "attaching" | "attached", listener: () => void): any;
|
|
278
265
|
}
|
|
279
266
|
|
|
280
|
-
// @
|
|
267
|
+
// @alpha (undocumented)
|
|
281
268
|
export const IFluidDataStoreFactory: keyof IProvideFluidDataStoreFactory;
|
|
282
269
|
|
|
283
|
-
// @
|
|
270
|
+
// @alpha
|
|
284
271
|
export interface IFluidDataStoreFactory extends IProvideFluidDataStoreFactory {
|
|
285
272
|
instantiateDataStore(context: IFluidDataStoreContext, existing: boolean): Promise<IFluidDataStoreChannel>;
|
|
286
273
|
type: string;
|
|
287
274
|
}
|
|
288
275
|
|
|
289
|
-
// @
|
|
276
|
+
// @alpha (undocumented)
|
|
290
277
|
export const IFluidDataStoreRegistry: keyof IProvideFluidDataStoreRegistry;
|
|
291
278
|
|
|
292
|
-
// @
|
|
279
|
+
// @alpha
|
|
293
280
|
export interface IFluidDataStoreRegistry extends IProvideFluidDataStoreRegistry {
|
|
294
281
|
// (undocumented)
|
|
295
282
|
get(name: string): Promise<FluidDataStoreRegistryEntry | undefined>;
|
|
296
283
|
}
|
|
297
284
|
|
|
298
|
-
// @
|
|
285
|
+
// @alpha
|
|
299
286
|
export interface IGarbageCollectionData {
|
|
300
287
|
gcNodes: {
|
|
301
288
|
[id: string]: string[];
|
|
302
289
|
};
|
|
303
290
|
}
|
|
304
291
|
|
|
305
|
-
// @
|
|
292
|
+
// @alpha
|
|
306
293
|
export interface IGarbageCollectionDetailsBase {
|
|
307
294
|
gcData?: IGarbageCollectionData;
|
|
308
295
|
usedRoutes?: string[];
|
|
309
296
|
}
|
|
310
297
|
|
|
311
|
-
|
|
312
|
-
export interface IIdCompressor {
|
|
313
|
-
decompress(id: SessionSpaceCompressedId): StableId;
|
|
314
|
-
generateCompressedId(): SessionSpaceCompressedId;
|
|
315
|
-
// (undocumented)
|
|
316
|
-
localSessionId: SessionId;
|
|
317
|
-
normalizeToOpSpace(id: SessionSpaceCompressedId): OpSpaceCompressedId;
|
|
318
|
-
normalizeToSessionSpace(id: OpSpaceCompressedId, originSessionId: SessionId): SessionSpaceCompressedId;
|
|
319
|
-
recompress(uncompressed: StableId): SessionSpaceCompressedId;
|
|
320
|
-
tryRecompress(uncompressed: StableId): SessionSpaceCompressedId | undefined;
|
|
321
|
-
}
|
|
298
|
+
export { IIdCompressor }
|
|
322
299
|
|
|
323
|
-
|
|
324
|
-
export interface IIdCompressorCore {
|
|
325
|
-
finalizeCreationRange(range: IdCreationRange): void;
|
|
326
|
-
serialize(withSession: true): SerializedIdCompressorWithOngoingSession;
|
|
327
|
-
serialize(withSession: false): SerializedIdCompressorWithNoSession;
|
|
328
|
-
takeNextCreationRange(): IdCreationRange;
|
|
329
|
-
}
|
|
300
|
+
export { IIdCompressorCore }
|
|
330
301
|
|
|
331
|
-
// @
|
|
302
|
+
// @alpha
|
|
332
303
|
export interface IInboundSignalMessage extends ISignalMessage {
|
|
333
304
|
// (undocumented)
|
|
334
305
|
type: string;
|
|
335
306
|
}
|
|
336
307
|
|
|
337
|
-
// @
|
|
308
|
+
// @internal
|
|
338
309
|
export type InboundAttachMessage = Omit<IAttachMessage, "snapshot"> & {
|
|
339
310
|
snapshot: IAttachMessage["snapshot"] | null;
|
|
340
311
|
};
|
|
341
312
|
|
|
342
|
-
// @
|
|
343
|
-
export const initialClusterCapacity = 512;
|
|
344
|
-
|
|
345
|
-
// @public (undocumented)
|
|
313
|
+
// @alpha (undocumented)
|
|
346
314
|
export interface IProvideFluidDataStoreFactory {
|
|
347
315
|
// (undocumented)
|
|
348
316
|
readonly IFluidDataStoreFactory: IFluidDataStoreFactory;
|
|
349
317
|
}
|
|
350
318
|
|
|
351
|
-
// @
|
|
319
|
+
// @alpha (undocumented)
|
|
352
320
|
export interface IProvideFluidDataStoreRegistry {
|
|
353
321
|
// (undocumented)
|
|
354
322
|
readonly IFluidDataStoreRegistry: IFluidDataStoreRegistry;
|
|
355
323
|
}
|
|
356
324
|
|
|
357
|
-
// @
|
|
325
|
+
// @internal (undocumented)
|
|
358
326
|
export interface ISignalEnvelope {
|
|
359
327
|
address?: string;
|
|
360
328
|
clientSignalSequenceNumber: number;
|
|
@@ -364,14 +332,14 @@ export interface ISignalEnvelope {
|
|
|
364
332
|
};
|
|
365
333
|
}
|
|
366
334
|
|
|
367
|
-
// @
|
|
335
|
+
// @alpha
|
|
368
336
|
export interface ISummarizeInternalResult extends ISummarizeResult {
|
|
369
337
|
// (undocumented)
|
|
370
338
|
id: string;
|
|
371
339
|
pathPartsForChildren?: string[];
|
|
372
340
|
}
|
|
373
341
|
|
|
374
|
-
// @
|
|
342
|
+
// @alpha
|
|
375
343
|
export interface ISummarizeResult {
|
|
376
344
|
// (undocumented)
|
|
377
345
|
stats: ISummaryStats;
|
|
@@ -379,7 +347,7 @@ export interface ISummarizeResult {
|
|
|
379
347
|
summary: SummaryTree;
|
|
380
348
|
}
|
|
381
349
|
|
|
382
|
-
// @
|
|
350
|
+
// @alpha (undocumented)
|
|
383
351
|
export interface ISummarizerNode {
|
|
384
352
|
// (undocumented)
|
|
385
353
|
createChild(
|
|
@@ -397,18 +365,18 @@ export interface ISummarizerNode {
|
|
|
397
365
|
updateBaseSummaryState(snapshot: ISnapshotTree): void;
|
|
398
366
|
}
|
|
399
367
|
|
|
400
|
-
// @
|
|
368
|
+
// @alpha (undocumented)
|
|
401
369
|
export interface ISummarizerNodeConfig {
|
|
402
370
|
readonly canReuseHandle?: boolean;
|
|
403
371
|
readonly throwOnFailure?: true;
|
|
404
372
|
}
|
|
405
373
|
|
|
406
|
-
// @
|
|
374
|
+
// @alpha (undocumented)
|
|
407
375
|
export interface ISummarizerNodeConfigWithGC extends ISummarizerNodeConfig {
|
|
408
376
|
readonly gcDisabled?: boolean;
|
|
409
377
|
}
|
|
410
378
|
|
|
411
|
-
// @
|
|
379
|
+
// @alpha
|
|
412
380
|
export interface ISummarizerNodeWithGC extends ISummarizerNode {
|
|
413
381
|
// (undocumented)
|
|
414
382
|
createChild(
|
|
@@ -425,7 +393,7 @@ export interface ISummarizerNodeWithGC extends ISummarizerNode {
|
|
|
425
393
|
updateUsedRoutes(usedRoutes: string[]): void;
|
|
426
394
|
}
|
|
427
395
|
|
|
428
|
-
// @
|
|
396
|
+
// @alpha
|
|
429
397
|
export interface ISummaryStats {
|
|
430
398
|
// (undocumented)
|
|
431
399
|
blobNodeCount: number;
|
|
@@ -439,13 +407,13 @@ export interface ISummaryStats {
|
|
|
439
407
|
unreferencedBlobSize: number;
|
|
440
408
|
}
|
|
441
409
|
|
|
442
|
-
// @
|
|
410
|
+
// @alpha
|
|
443
411
|
export interface ISummaryTreeWithStats {
|
|
444
412
|
stats: ISummaryStats;
|
|
445
413
|
summary: ISummaryTree;
|
|
446
414
|
}
|
|
447
415
|
|
|
448
|
-
// @
|
|
416
|
+
// @alpha
|
|
449
417
|
export interface ITelemetryContext {
|
|
450
418
|
get(prefix: string, property: string): TelemetryEventPropertyType;
|
|
451
419
|
serialize(): string;
|
|
@@ -459,10 +427,10 @@ export interface LocalAttributionKey {
|
|
|
459
427
|
type: "local";
|
|
460
428
|
}
|
|
461
429
|
|
|
462
|
-
// @
|
|
430
|
+
// @alpha
|
|
463
431
|
export type NamedFluidDataStoreRegistryEntries = Iterable<NamedFluidDataStoreRegistryEntry>;
|
|
464
432
|
|
|
465
|
-
// @
|
|
433
|
+
// @alpha
|
|
466
434
|
export type NamedFluidDataStoreRegistryEntry = [string, Promise<FluidDataStoreRegistryEntry>];
|
|
467
435
|
|
|
468
436
|
// @alpha
|
|
@@ -471,55 +439,34 @@ export interface OpAttributionKey {
|
|
|
471
439
|
type: "op";
|
|
472
440
|
}
|
|
473
441
|
|
|
474
|
-
|
|
475
|
-
export type OpSpaceCompressedId = number & {
|
|
476
|
-
readonly OpNormalized: "9209432d-a959-4df7-b2ad-767ead4dbcae";
|
|
477
|
-
};
|
|
442
|
+
export { OpSpaceCompressedId }
|
|
478
443
|
|
|
479
|
-
|
|
480
|
-
export type SerializedIdCompressor = string & {
|
|
481
|
-
readonly _serializedIdCompressor: "8c73c57c-1cf4-4278-8915-6444cb4f6af5";
|
|
482
|
-
};
|
|
444
|
+
export { SerializedIdCompressor }
|
|
483
445
|
|
|
484
|
-
|
|
485
|
-
export type SerializedIdCompressorWithNoSession = SerializedIdCompressor & {
|
|
486
|
-
readonly _noLocalState: "3aa2e1e8-cc28-4ea7-bc1a-a11dc3f26dfb";
|
|
487
|
-
};
|
|
446
|
+
export { SerializedIdCompressorWithNoSession }
|
|
488
447
|
|
|
489
|
-
|
|
490
|
-
export type SerializedIdCompressorWithOngoingSession = SerializedIdCompressor & {
|
|
491
|
-
readonly _hasLocalState: "1281acae-6d14-47e7-bc92-71c8ee0819cb";
|
|
492
|
-
};
|
|
448
|
+
export { SerializedIdCompressorWithOngoingSession }
|
|
493
449
|
|
|
494
|
-
|
|
495
|
-
export type SessionId = StableId & {
|
|
496
|
-
readonly SessionId: "4498f850-e14e-4be9-8db0-89ec00997e58";
|
|
497
|
-
};
|
|
450
|
+
export { SessionId }
|
|
498
451
|
|
|
499
|
-
|
|
500
|
-
export type SessionSpaceCompressedId = number & {
|
|
501
|
-
readonly SessionUnique: "cea55054-6b82-4cbf-ad19-1fa645ea3b3e";
|
|
502
|
-
};
|
|
452
|
+
export { SessionSpaceCompressedId }
|
|
503
453
|
|
|
504
|
-
|
|
505
|
-
export type StableId = string & {
|
|
506
|
-
readonly StableId: "53172b0d-a3d5-41ea-bd75-b43839c97f5a";
|
|
507
|
-
};
|
|
454
|
+
export { StableId }
|
|
508
455
|
|
|
509
|
-
// @
|
|
456
|
+
// @alpha (undocumented)
|
|
510
457
|
export type SummarizeInternalFn = (fullTree: boolean, trackState: boolean, telemetryContext?: ITelemetryContext, incrementalSummaryContext?: IExperimentalIncrementalSummaryContext) => Promise<ISummarizeInternalResult>;
|
|
511
458
|
|
|
512
|
-
// @
|
|
459
|
+
// @internal (undocumented)
|
|
513
460
|
export const totalBlobSizePropertyName = "TotalBlobSize";
|
|
514
461
|
|
|
515
|
-
// @
|
|
462
|
+
// @alpha
|
|
516
463
|
export const VisibilityState: {
|
|
517
464
|
NotVisible: string;
|
|
518
465
|
LocallyVisible: string;
|
|
519
466
|
GloballyVisible: string;
|
|
520
467
|
};
|
|
521
468
|
|
|
522
|
-
// @
|
|
469
|
+
// @alpha (undocumented)
|
|
523
470
|
export type VisibilityState = (typeof VisibilityState)[keyof typeof VisibilityState];
|
|
524
471
|
|
|
525
472
|
// (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"]}
|