@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.
Files changed (79) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +1 -2
  3. package/api-extractor-lint.json +13 -0
  4. package/api-extractor.json +3 -3
  5. package/api-report/runtime-definitions.api.md +75 -113
  6. package/dist/attribution.d.ts +1 -4
  7. package/dist/attribution.d.ts.map +1 -1
  8. package/dist/attribution.js.map +1 -1
  9. package/dist/dataStoreContext.d.ts +26 -2
  10. package/dist/dataStoreContext.d.ts.map +1 -1
  11. package/dist/dataStoreContext.js +5 -0
  12. package/dist/dataStoreContext.js.map +1 -1
  13. package/dist/dataStoreFactory.d.ts +7 -0
  14. package/dist/dataStoreFactory.d.ts.map +1 -1
  15. package/dist/dataStoreFactory.js +3 -0
  16. package/dist/dataStoreFactory.js.map +1 -1
  17. package/dist/dataStoreRegistry.d.ts +10 -0
  18. package/dist/dataStoreRegistry.d.ts.map +1 -1
  19. package/dist/dataStoreRegistry.js +3 -0
  20. package/dist/dataStoreRegistry.js.map +1 -1
  21. package/dist/garbageCollection.d.ts +22 -4
  22. package/dist/garbageCollection.d.ts.map +1 -1
  23. package/dist/garbageCollection.js +20 -4
  24. package/dist/garbageCollection.js.map +1 -1
  25. package/dist/index.d.ts +49 -1
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +11 -2
  28. package/dist/index.js.map +1 -1
  29. package/dist/protocol.d.ts +7 -0
  30. package/dist/protocol.d.ts.map +1 -1
  31. package/dist/protocol.js.map +1 -1
  32. package/dist/runtime-definitions-alpha.d.ts +1002 -0
  33. package/dist/runtime-definitions-beta.d.ts +201 -0
  34. package/dist/runtime-definitions-public.d.ts +201 -0
  35. package/dist/runtime-definitions-untrimmed.d.ts +1117 -0
  36. package/dist/summary.d.ts +34 -0
  37. package/dist/summary.d.ts.map +1 -1
  38. package/dist/summary.js +12 -0
  39. package/dist/summary.js.map +1 -1
  40. package/dist/tsdoc-metadata.json +1 -1
  41. package/lib/runtime-definitions-alpha.d.ts +1002 -0
  42. package/lib/runtime-definitions-beta.d.ts +201 -0
  43. package/lib/runtime-definitions-public.d.ts +201 -0
  44. package/lib/runtime-definitions-untrimmed.d.ts +1117 -0
  45. package/package.json +44 -15
  46. package/src/attribution.ts +1 -4
  47. package/src/dataStoreContext.ts +26 -2
  48. package/src/dataStoreFactory.ts +7 -0
  49. package/src/dataStoreRegistry.ts +10 -0
  50. package/src/garbageCollection.ts +22 -4
  51. package/src/index.ts +46 -7
  52. package/src/protocol.ts +7 -0
  53. package/src/summary.ts +34 -0
  54. package/dist/id-compressor/idCompressor.d.ts +0 -136
  55. package/dist/id-compressor/idCompressor.d.ts.map +0 -1
  56. package/dist/id-compressor/idCompressor.js +0 -7
  57. package/dist/id-compressor/idCompressor.js.map +0 -1
  58. package/dist/id-compressor/identifiers.d.ts +0 -36
  59. package/dist/id-compressor/identifiers.d.ts.map +0 -1
  60. package/dist/id-compressor/identifiers.js +0 -7
  61. package/dist/id-compressor/identifiers.js.map +0 -1
  62. package/dist/id-compressor/index.d.ts +0 -8
  63. package/dist/id-compressor/index.d.ts.map +0 -1
  64. package/dist/id-compressor/index.js +0 -10
  65. package/dist/id-compressor/index.js.map +0 -1
  66. package/dist/id-compressor/persisted-types/0.0.1.d.ts +0 -44
  67. package/dist/id-compressor/persisted-types/0.0.1.d.ts.map +0 -1
  68. package/dist/id-compressor/persisted-types/0.0.1.js +0 -13
  69. package/dist/id-compressor/persisted-types/0.0.1.js.map +0 -1
  70. package/dist/id-compressor/persisted-types/index.d.ts +0 -6
  71. package/dist/id-compressor/persisted-types/index.d.ts.map +0 -1
  72. package/dist/id-compressor/persisted-types/index.js +0 -10
  73. package/dist/id-compressor/persisted-types/index.js.map +0 -1
  74. package/src/id-compressor/idCompressor.ts +0 -152
  75. package/src/id-compressor/identifiers.ts +0 -35
  76. package/src/id-compressor/index.ts +0 -17
  77. package/src/id-compressor/persisted-types/0.0.1.ts +0 -50
  78. package/src/id-compressor/persisted-types/README.md +0 -3
  79. 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
+ }
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
- "extends": "@fluidframework/build-common/api-extractor-base.json",
3
+ "extends": "../../../common/build/build-common/api-extractor-base.json",
4
4
  "messages": {
5
5
  "extractorMessageReporting": {
6
- "ae-missing-release-tag": {
7
- // TODO: Fix violations and remove this rule override
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
- // @public
47
+ // @alpha
36
48
  export type AliasResult = "Success" | "Conflict" | "AlreadyAliased";
37
49
 
38
- // @alpha
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
- // @public (undocumented)
59
+ // @internal (undocumented)
48
60
  export const blobCountPropertyName = "BlobCount";
49
61
 
50
- // @public (undocumented)
62
+ // @internal (undocumented)
51
63
  export const channelsTreeName = ".channels";
52
64
 
53
- // @public (undocumented)
65
+ // @alpha (undocumented)
54
66
  export type CreateChildSummarizerNodeFn = (summarizeInternal: SummarizeInternalFn, getGCDataFn: (fullGC?: boolean) => Promise<IGarbageCollectionData>,
55
67
  getBaseGCDetailsFn?: () => Promise<IGarbageCollectionDetailsBase>) => ISummarizerNodeWithGC;
56
68
 
57
- // @public (undocumented)
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
- // @public (undocumented)
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
- // @public
97
+ // @alpha
86
98
  export type FluidDataStoreRegistryEntry = Readonly<Partial<IProvideFluidDataStoreRegistry & IProvideFluidDataStoreFactory>>;
87
99
 
88
- // @public
100
+ // @alpha
89
101
  export enum FlushMode {
90
102
  Immediate = 0,
91
103
  TurnBased = 1
92
104
  }
93
105
 
94
- // @public (undocumented)
106
+ // @internal (undocumented)
95
107
  export enum FlushModeExperimental {
96
108
  Async = 2
97
109
  }
98
110
 
99
- // @public
111
+ // @internal
100
112
  export const gcBlobPrefix = "__gc";
101
113
 
102
- // @public
114
+ // @internal
103
115
  export const gcDeletedBlobKey = "__deletedNodes";
104
116
 
105
- // @public
117
+ // @internal
106
118
  export const gcTombstoneBlobKey = "__tombstones";
107
119
 
108
- // @public
120
+ // @internal
109
121
  export const gcTreeKey = "gc";
110
122
 
111
- // @public
123
+ // @internal
112
124
  export interface IAttachMessage {
113
125
  id: string;
114
126
  snapshot: ITree;
115
127
  type: string;
116
128
  }
117
129
 
118
- // @public
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
- // @internal @deprecated (undocumented)
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
- // @public (undocumented)
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
- // @public
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
- // @public
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
- // @public (undocumented)
180
- export type IdCreationRangeWithStashedState = IdCreationRange & {
181
- stashedState: SerializedIdCompressorWithOngoingSession;
182
- };
182
+ export { IdCreationRange }
183
183
 
184
- // @public
184
+ // @internal
185
185
  export interface IEnvelope {
186
186
  address: string;
187
187
  contents: any;
188
188
  }
189
189
 
190
- // @public
190
+ // @alpha
191
191
  export interface IExperimentalIncrementalSummaryContext {
192
192
  latestSummarySequenceNumber: number;
193
193
  summaryPath: string;
194
194
  summarySequenceNumber: number;
195
195
  }
196
196
 
197
- // @public
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
- // @public
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
- // @public (undocumented)
274
+ // @alpha (undocumented)
275
275
  export interface IFluidDataStoreContextDetached extends IFluidDataStoreContext {
276
276
  attachRuntime(factory: IProvideFluidDataStoreFactory, dataStoreRuntime: IFluidDataStoreChannel): Promise<void>;
277
277
  }
278
278
 
279
- // @public (undocumented)
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
- // @public (undocumented)
285
+ // @alpha (undocumented)
286
286
  export const IFluidDataStoreFactory: keyof IProvideFluidDataStoreFactory;
287
287
 
288
- // @public
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
- // @public (undocumented)
294
+ // @alpha (undocumented)
295
295
  export const IFluidDataStoreRegistry: keyof IProvideFluidDataStoreRegistry;
296
296
 
297
- // @public
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
- // @public
303
+ // @alpha
304
304
  export interface IGarbageCollectionData {
305
305
  gcNodes: {
306
306
  [id: string]: string[];
307
307
  };
308
308
  }
309
309
 
310
- // @public
310
+ // @alpha
311
311
  export interface IGarbageCollectionDetailsBase {
312
312
  gcData?: IGarbageCollectionData;
313
313
  usedRoutes?: string[];
314
314
  }
315
315
 
316
- // @public
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
- // @public (undocumented)
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
- // @public
320
+ // @alpha
337
321
  export interface IInboundSignalMessage extends ISignalMessage {
338
322
  // (undocumented)
339
323
  type: string;
340
324
  }
341
325
 
342
- // @public
326
+ // @internal
343
327
  export type InboundAttachMessage = Omit<IAttachMessage, "snapshot"> & {
344
328
  snapshot: IAttachMessage["snapshot"] | null;
345
329
  };
346
330
 
347
- // @public
348
- export const initialClusterCapacity = 512;
331
+ export { initialClusterCapacity }
349
332
 
350
- // @public (undocumented)
333
+ // @alpha (undocumented)
351
334
  export interface IProvideFluidDataStoreFactory {
352
335
  // (undocumented)
353
336
  readonly IFluidDataStoreFactory: IFluidDataStoreFactory;
354
337
  }
355
338
 
356
- // @public (undocumented)
339
+ // @alpha (undocumented)
357
340
  export interface IProvideFluidDataStoreRegistry {
358
341
  // (undocumented)
359
342
  readonly IFluidDataStoreRegistry: IFluidDataStoreRegistry;
360
343
  }
361
344
 
362
- // @public (undocumented)
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
- // @public
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
- // @public
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
- // @public (undocumented)
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
- // @public (undocumented)
388
+ // @alpha (undocumented)
406
389
  export interface ISummarizerNodeConfig {
407
390
  readonly canReuseHandle?: boolean;
408
391
  readonly throwOnFailure?: true;
409
392
  }
410
393
 
411
- // @public (undocumented)
394
+ // @alpha (undocumented)
412
395
  export interface ISummarizerNodeConfigWithGC extends ISummarizerNodeConfig {
413
396
  readonly gcDisabled?: boolean;
414
397
  }
415
398
 
416
- // @public
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
- // @public
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
- // @public
430
+ // @alpha
448
431
  export interface ISummaryTreeWithStats {
449
432
  stats: ISummaryStats;
450
433
  summary: ISummaryTree;
451
434
  }
452
435
 
453
- // @public
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
- // @public
450
+ // @alpha
468
451
  export type NamedFluidDataStoreRegistryEntries = Iterable<NamedFluidDataStoreRegistryEntry>;
469
452
 
470
- // @public
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
- // @public
480
- export type OpSpaceCompressedId = number & {
481
- readonly OpNormalized: "9209432d-a959-4df7-b2ad-767ead4dbcae";
482
- };
462
+ export { OpSpaceCompressedId }
483
463
 
484
- // @public
485
- export type SerializedIdCompressor = string & {
486
- readonly _serializedIdCompressor: "8c73c57c-1cf4-4278-8915-6444cb4f6af5";
487
- };
464
+ export { SerializedIdCompressor }
488
465
 
489
- // @public
490
- export type SerializedIdCompressorWithNoSession = SerializedIdCompressor & {
491
- readonly _noLocalState: "3aa2e1e8-cc28-4ea7-bc1a-a11dc3f26dfb";
492
- };
466
+ export { SerializedIdCompressorWithNoSession }
493
467
 
494
- // @public
495
- export type SerializedIdCompressorWithOngoingSession = SerializedIdCompressor & {
496
- readonly _hasLocalState: "1281acae-6d14-47e7-bc92-71c8ee0819cb";
497
- };
468
+ export { SerializedIdCompressorWithOngoingSession }
498
469
 
499
- // @public
500
- export type SessionId = StableId & {
501
- readonly SessionId: "4498f850-e14e-4be9-8db0-89ec00997e58";
502
- };
470
+ export { SessionId }
503
471
 
504
- // @public
505
- export type SessionSpaceCompressedId = number & {
506
- readonly SessionUnique: "cea55054-6b82-4cbf-ad19-1fa645ea3b3e";
507
- };
472
+ export { SessionSpaceCompressedId }
508
473
 
509
- // @public
510
- export type StableId = string & {
511
- readonly StableId: "53172b0d-a3d5-41ea-bd75-b43839c97f5a";
512
- };
474
+ export { StableId }
513
475
 
514
- // @public (undocumented)
476
+ // @alpha (undocumented)
515
477
  export type SummarizeInternalFn = (fullTree: boolean, trackState: boolean, telemetryContext?: ITelemetryContext, incrementalSummaryContext?: IExperimentalIncrementalSummaryContext) => Promise<ISummarizeInternalResult>;
516
478
 
517
- // @public (undocumented)
479
+ // @internal (undocumented)
518
480
  export const totalBlobSizePropertyName = "TotalBlobSize";
519
481
 
520
- // @public
482
+ // @alpha
521
483
  export const VisibilityState: {
522
484
  NotVisible: string;
523
485
  LocallyVisible: string;
524
486
  GloballyVisible: string;
525
487
  };
526
488
 
527
- // @public (undocumented)
489
+ // @alpha (undocumented)
528
490
  export type VisibilityState = (typeof VisibilityState)[keyof typeof VisibilityState];
529
491
 
530
492
  // (No @packageDocumentation comment for this package)
@@ -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
- * @alpha
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;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAChC;;;;;OAKG;IACH,IAAI,EAAE,IAAI,CAAC;IAEX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACZ;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,sBAAsB;IACtC,IAAI,EAAE,UAAU,CAAC;IAEjB;;;;;;;OAOG;IACH,EAAE,EAAE,CAAC,CAAC;CACN;AAED;;;;GAIG;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"}
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"}
@@ -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 *\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 *\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 *\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 * @alpha\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"]}
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"]}