@fluidframework/runtime-definitions 2.0.0-dev.7.4.0.215930 → 2.0.0-dev.7.4.0.217212
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-extractor-lint.json +13 -0
- package/api-extractor.json +0 -4
- package/api-report/runtime-definitions.api.md +66 -66
- package/dist/attribution.d.ts +5 -8
- package/dist/attribution.d.ts.map +1 -1
- package/dist/attribution.js.map +1 -1
- package/dist/dataStoreContext.d.ts +25 -1
- package/dist/dataStoreContext.d.ts.map +1 -1
- package/dist/dataStoreContext.js +5 -0
- package/dist/dataStoreContext.js.map +1 -1
- package/dist/dataStoreFactory.d.ts +7 -0
- package/dist/dataStoreFactory.d.ts.map +1 -1
- package/dist/dataStoreFactory.js +3 -0
- package/dist/dataStoreFactory.js.map +1 -1
- package/dist/dataStoreRegistry.d.ts +10 -0
- package/dist/dataStoreRegistry.d.ts.map +1 -1
- package/dist/dataStoreRegistry.js +3 -0
- package/dist/dataStoreRegistry.js.map +1 -1
- package/dist/garbageCollection.d.ts +22 -4
- package/dist/garbageCollection.d.ts.map +1 -1
- package/dist/garbageCollection.js +20 -4
- package/dist/garbageCollection.js.map +1 -1
- package/dist/id-compressor/idCompressor.d.ts +4 -1
- package/dist/id-compressor/idCompressor.d.ts.map +1 -1
- package/dist/id-compressor/idCompressor.js.map +1 -1
- package/dist/id-compressor/identifiers.d.ts +4 -0
- package/dist/id-compressor/identifiers.d.ts.map +1 -1
- package/dist/id-compressor/identifiers.js.map +1 -1
- package/dist/id-compressor/persisted-types/0.0.1.d.ts +5 -0
- package/dist/id-compressor/persisted-types/0.0.1.d.ts.map +1 -1
- package/dist/id-compressor/persisted-types/0.0.1.js +1 -0
- package/dist/id-compressor/persisted-types/0.0.1.js.map +1 -1
- package/dist/protocol.d.ts +7 -0
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js.map +1 -1
- package/dist/runtime-definitions-alpha.d.ts +129 -1159
- package/dist/runtime-definitions-beta.d.ts +139 -1092
- package/dist/runtime-definitions-public.d.ts +139 -1092
- package/dist/runtime-definitions-untrimmed.d.ts +123 -14
- package/dist/summary.d.ts +34 -0
- package/dist/summary.d.ts.map +1 -1
- package/dist/summary.js +12 -0
- package/dist/summary.js.map +1 -1
- package/lib/runtime-definitions-alpha.d.ts +129 -1159
- package/lib/runtime-definitions-beta.d.ts +139 -1092
- package/lib/runtime-definitions-public.d.ts +139 -1092
- package/lib/runtime-definitions-untrimmed.d.ts +123 -14
- package/package.json +6 -5
- package/src/attribution.ts +5 -8
- package/src/dataStoreContext.ts +25 -1
- package/src/dataStoreFactory.ts +7 -0
- package/src/dataStoreRegistry.ts +10 -0
- package/src/garbageCollection.ts +22 -4
- package/src/id-compressor/idCompressor.ts +4 -1
- package/src/id-compressor/identifiers.ts +4 -0
- package/src/id-compressor/persisted-types/0.0.1.ts +5 -0
- package/src/protocol.ts +7 -0
- package/src/summary.ts +34 -0
|
@@ -34,12 +34,13 @@ import { TelemetryEventPropertyType } from '@fluidframework/core-interfaces';
|
|
|
34
34
|
* the `IContainerRuntime.getAliasedDataStoreEntryPoint` function. The current datastore should be discarded
|
|
35
35
|
* and will be garbage collected. The current datastore cannot be aliased to a different value.
|
|
36
36
|
* 'AlreadyAliased' - the datastore has already been previously bound to another alias name.
|
|
37
|
+
* @internal
|
|
37
38
|
*/
|
|
38
39
|
export declare type AliasResult = "Success" | "Conflict" | "AlreadyAliased";
|
|
39
40
|
|
|
40
41
|
/**
|
|
41
42
|
* Attribution information associated with a change.
|
|
42
|
-
* @
|
|
43
|
+
* @internal
|
|
43
44
|
*/
|
|
44
45
|
export declare interface AttributionInfo {
|
|
45
46
|
/**
|
|
@@ -54,20 +55,32 @@ export declare interface AttributionInfo {
|
|
|
54
55
|
|
|
55
56
|
/**
|
|
56
57
|
* Can be indexed into the ContainerRuntime in order to retrieve {@link AttributionInfo}.
|
|
57
|
-
* @
|
|
58
|
+
* @internal
|
|
58
59
|
*/
|
|
59
60
|
export declare type AttributionKey = OpAttributionKey | DetachedAttributionKey | LocalAttributionKey;
|
|
60
61
|
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
61
65
|
export declare const blobCountPropertyName = "BlobCount";
|
|
62
66
|
|
|
67
|
+
/**
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
63
70
|
export declare const channelsTreeName = ".channels";
|
|
64
71
|
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
65
75
|
export declare type CreateChildSummarizerNodeFn = (summarizeInternal: SummarizeInternalFn, getGCDataFn: (fullGC?: boolean) => Promise<IGarbageCollectionData>,
|
|
66
76
|
/**
|
|
67
77
|
* @deprecated The functionality to get base GC details has been moved to summarizer node.
|
|
68
78
|
*/
|
|
69
79
|
getBaseGCDetailsFn?: () => Promise<IGarbageCollectionDetailsBase>) => ISummarizerNodeWithGC;
|
|
70
80
|
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
71
84
|
export declare type CreateChildSummarizerNodeParam = {
|
|
72
85
|
type: CreateSummarizerNodeSource.FromSummary;
|
|
73
86
|
} | {
|
|
@@ -78,6 +91,9 @@ export declare type CreateChildSummarizerNodeParam = {
|
|
|
78
91
|
type: CreateSummarizerNodeSource.Local;
|
|
79
92
|
};
|
|
80
93
|
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
81
97
|
export declare enum CreateSummarizerNodeSource {
|
|
82
98
|
FromSummary = 0,
|
|
83
99
|
FromAttach = 1,
|
|
@@ -91,8 +107,7 @@ export declare enum CreateSummarizerNodeSource {
|
|
|
91
107
|
* is currently unsupported, as applications can effectively modify content anonymously while detached.
|
|
92
108
|
* The runtime has no mechanism for reliably obtaining the user. It would be reasonable to start supporting
|
|
93
109
|
* this functionality if the host provided additional context to their attributor or attach calls.
|
|
94
|
-
*
|
|
95
|
-
* @alpha
|
|
110
|
+
* @internal
|
|
96
111
|
*/
|
|
97
112
|
export declare interface DetachedAttributionKey {
|
|
98
113
|
type: "detached";
|
|
@@ -110,11 +125,13 @@ export declare interface DetachedAttributionKey {
|
|
|
110
125
|
/**
|
|
111
126
|
* A single registry entry that may be used to create data stores
|
|
112
127
|
* It has to have either factory or registry, or both.
|
|
128
|
+
* @internal
|
|
113
129
|
*/
|
|
114
130
|
export declare type FluidDataStoreRegistryEntry = Readonly<Partial<IProvideFluidDataStoreRegistry & IProvideFluidDataStoreFactory>>;
|
|
115
131
|
|
|
116
132
|
/**
|
|
117
133
|
* Runtime flush mode handling
|
|
134
|
+
* @internal
|
|
118
135
|
*/
|
|
119
136
|
export declare enum FlushMode {
|
|
120
137
|
/**
|
|
@@ -128,6 +145,9 @@ export declare enum FlushMode {
|
|
|
128
145
|
TurnBased = 1
|
|
129
146
|
}
|
|
130
147
|
|
|
148
|
+
/**
|
|
149
|
+
* @internal
|
|
150
|
+
*/
|
|
131
151
|
export declare enum FlushModeExperimental {
|
|
132
152
|
/**
|
|
133
153
|
* When in Async flush mode, the runtime will accumulate all operations across JS turns and send them as a single
|
|
@@ -141,21 +161,38 @@ export declare enum FlushModeExperimental {
|
|
|
141
161
|
Async = 2
|
|
142
162
|
}
|
|
143
163
|
|
|
144
|
-
/**
|
|
164
|
+
/**
|
|
165
|
+
* They prefix for GC blobs in the GC tree in summary.
|
|
166
|
+
*
|
|
167
|
+
* @internal
|
|
168
|
+
*/
|
|
145
169
|
export declare const gcBlobPrefix = "__gc";
|
|
146
170
|
|
|
147
|
-
/**
|
|
171
|
+
/**
|
|
172
|
+
* The key for deleted nodes blob in the GC tree in summary.
|
|
173
|
+
*
|
|
174
|
+
* @internal
|
|
175
|
+
*/
|
|
148
176
|
export declare const gcDeletedBlobKey = "__deletedNodes";
|
|
149
177
|
|
|
150
|
-
/**
|
|
178
|
+
/**
|
|
179
|
+
* The key for tombstone blob in the GC tree in summary.
|
|
180
|
+
*
|
|
181
|
+
* @internal
|
|
182
|
+
*/
|
|
151
183
|
export declare const gcTombstoneBlobKey = "__tombstones";
|
|
152
184
|
|
|
153
|
-
/**
|
|
185
|
+
/**
|
|
186
|
+
* The key for the GC tree in summary.
|
|
187
|
+
*
|
|
188
|
+
* @internal
|
|
189
|
+
*/
|
|
154
190
|
export declare const gcTreeKey = "gc";
|
|
155
191
|
|
|
156
192
|
/**
|
|
157
193
|
* Message send by client attaching local data structure.
|
|
158
194
|
* Contains snapshot of data structure which is the current state of this data structure.
|
|
195
|
+
* @internal
|
|
159
196
|
*/
|
|
160
197
|
export declare interface IAttachMessage {
|
|
161
198
|
/**
|
|
@@ -175,6 +212,7 @@ export declare interface IAttachMessage {
|
|
|
175
212
|
/**
|
|
176
213
|
* A reduced set of functionality of IContainerRuntime that a data store context/data store runtime will need
|
|
177
214
|
* TODO: this should be merged into IFluidDataStoreContext
|
|
215
|
+
* @internal
|
|
178
216
|
*/
|
|
179
217
|
export declare interface IContainerRuntimeBase extends IEventProvider<IContainerRuntimeBaseEvents> {
|
|
180
218
|
readonly logger: ITelemetryBaseLogger;
|
|
@@ -197,7 +235,6 @@ export declare interface IContainerRuntimeBase extends IEventProvider<IContainer
|
|
|
197
235
|
submitSignal(type: string, content: any): void;
|
|
198
236
|
/**
|
|
199
237
|
* @deprecated 0.16 Issue #1537, #3631
|
|
200
|
-
* @internal
|
|
201
238
|
*/
|
|
202
239
|
_createDataStoreWithProps(pkg: string | string[], props?: any, id?: string): Promise<IDataStore>;
|
|
203
240
|
/**
|
|
@@ -235,6 +272,9 @@ export declare interface IContainerRuntimeBase extends IEventProvider<IContainer
|
|
|
235
272
|
readonly IFluidHandleContext: IFluidHandleContext;
|
|
236
273
|
}
|
|
237
274
|
|
|
275
|
+
/**
|
|
276
|
+
* @internal
|
|
277
|
+
*/
|
|
238
278
|
export declare interface IContainerRuntimeBaseEvents extends IEvent {
|
|
239
279
|
(event: "batchBegin", listener: (op: ISequencedDocumentMessage) => void): any;
|
|
240
280
|
/**
|
|
@@ -251,6 +291,7 @@ export declare interface IContainerRuntimeBaseEvents extends IEvent {
|
|
|
251
291
|
* - Handle to the data store's entryPoint
|
|
252
292
|
* - Fluid router for the data store
|
|
253
293
|
* - Can be assigned an alias
|
|
294
|
+
* @internal
|
|
254
295
|
*/
|
|
255
296
|
export declare interface IDataStore {
|
|
256
297
|
/**
|
|
@@ -304,6 +345,7 @@ export declare interface IDataStore {
|
|
|
304
345
|
* Data describing a range of session-local IDs (from a remote or local session).
|
|
305
346
|
*
|
|
306
347
|
* A range is composed of local IDs that were generated.
|
|
348
|
+
* @internal
|
|
307
349
|
*/
|
|
308
350
|
export declare interface IdCreationRange {
|
|
309
351
|
readonly sessionId: SessionId;
|
|
@@ -315,6 +357,7 @@ export declare interface IdCreationRange {
|
|
|
315
357
|
|
|
316
358
|
/**
|
|
317
359
|
* An envelope wraps the contents with the intended target
|
|
360
|
+
* @internal
|
|
318
361
|
*/
|
|
319
362
|
export declare interface IEnvelope {
|
|
320
363
|
/**
|
|
@@ -330,6 +373,7 @@ export declare interface IEnvelope {
|
|
|
330
373
|
/**
|
|
331
374
|
* @experimental - Can be deleted/changed at any time
|
|
332
375
|
* Contains the necessary information to allow DDSes to do incremental summaries
|
|
376
|
+
* @internal
|
|
333
377
|
*/
|
|
334
378
|
export declare interface IExperimentalIncrementalSummaryContext {
|
|
335
379
|
/**
|
|
@@ -358,6 +402,7 @@ export declare interface IExperimentalIncrementalSummaryContext {
|
|
|
358
402
|
*
|
|
359
403
|
* Functionality include attach, snapshot, op/signal processing, request routes, expose an entryPoint,
|
|
360
404
|
* and connection state notifications
|
|
405
|
+
* @internal
|
|
361
406
|
*/
|
|
362
407
|
export declare interface IFluidDataStoreChannel extends IDisposable {
|
|
363
408
|
readonly id: string;
|
|
@@ -444,6 +489,7 @@ export declare interface IFluidDataStoreChannel extends IDisposable {
|
|
|
444
489
|
/**
|
|
445
490
|
* Represents the context for the data store. It is used by the data store runtime to
|
|
446
491
|
* get information and call functionality to the container.
|
|
492
|
+
* @internal
|
|
447
493
|
*/
|
|
448
494
|
export declare interface IFluidDataStoreContext extends IEventProvider<IFluidDataStoreContextEvents>, Partial<IProvideFluidDataStoreRegistry>, IProvideFluidHandleContext {
|
|
449
495
|
readonly id: string;
|
|
@@ -560,6 +606,9 @@ export declare interface IFluidDataStoreContext extends IEventProvider<IFluidDat
|
|
|
560
606
|
addedGCOutboundReference?(srcHandle: IFluidHandle, outboundHandle: IFluidHandle): void;
|
|
561
607
|
}
|
|
562
608
|
|
|
609
|
+
/**
|
|
610
|
+
* @internal
|
|
611
|
+
*/
|
|
563
612
|
export declare interface IFluidDataStoreContextDetached extends IFluidDataStoreContext {
|
|
564
613
|
/**
|
|
565
614
|
* Binds a runtime to the context.
|
|
@@ -567,15 +616,22 @@ export declare interface IFluidDataStoreContextDetached extends IFluidDataStoreC
|
|
|
567
616
|
attachRuntime(factory: IProvideFluidDataStoreFactory, dataStoreRuntime: IFluidDataStoreChannel): Promise<void>;
|
|
568
617
|
}
|
|
569
618
|
|
|
619
|
+
/**
|
|
620
|
+
* @internal
|
|
621
|
+
*/
|
|
570
622
|
export declare interface IFluidDataStoreContextEvents extends IEvent {
|
|
571
623
|
(event: "attaching" | "attached", listener: () => void): any;
|
|
572
624
|
}
|
|
573
625
|
|
|
626
|
+
/**
|
|
627
|
+
* @internal
|
|
628
|
+
*/
|
|
574
629
|
export declare const IFluidDataStoreFactory: keyof IProvideFluidDataStoreFactory;
|
|
575
630
|
|
|
576
631
|
/**
|
|
577
632
|
* IFluidDataStoreFactory create data stores. It is associated with an identifier (its `type` member)
|
|
578
633
|
* and usually provided to consumers using this mapping through a data store registry.
|
|
634
|
+
* @internal
|
|
579
635
|
*/
|
|
580
636
|
export declare interface IFluidDataStoreFactory extends IProvideFluidDataStoreFactory {
|
|
581
637
|
/**
|
|
@@ -590,11 +646,15 @@ export declare interface IFluidDataStoreFactory extends IProvideFluidDataStoreFa
|
|
|
590
646
|
instantiateDataStore(context: IFluidDataStoreContext, existing: boolean): Promise<IFluidDataStoreChannel>;
|
|
591
647
|
}
|
|
592
648
|
|
|
649
|
+
/**
|
|
650
|
+
* @internal
|
|
651
|
+
*/
|
|
593
652
|
export declare const IFluidDataStoreRegistry: keyof IProvideFluidDataStoreRegistry;
|
|
594
653
|
|
|
595
654
|
/**
|
|
596
655
|
* An association of identifiers to data store registry entries, where the
|
|
597
656
|
* entries can be used to create data stores.
|
|
657
|
+
* @internal
|
|
598
658
|
*/
|
|
599
659
|
export declare interface IFluidDataStoreRegistry extends IProvideFluidDataStoreRegistry {
|
|
600
660
|
get(name: string): Promise<FluidDataStoreRegistryEntry | undefined>;
|
|
@@ -603,6 +663,7 @@ export declare interface IFluidDataStoreRegistry extends IProvideFluidDataStoreR
|
|
|
603
663
|
/**
|
|
604
664
|
* Garbage collection data returned by nodes in a Container.
|
|
605
665
|
* Used for running GC in the Container.
|
|
666
|
+
* @internal
|
|
606
667
|
*/
|
|
607
668
|
export declare interface IGarbageCollectionData {
|
|
608
669
|
/**
|
|
@@ -615,6 +676,7 @@ export declare interface IGarbageCollectionData {
|
|
|
615
676
|
|
|
616
677
|
/**
|
|
617
678
|
* GC details provided to each node during creation.
|
|
679
|
+
* @internal
|
|
618
680
|
*/
|
|
619
681
|
export declare interface IGarbageCollectionDetailsBase {
|
|
620
682
|
/**
|
|
@@ -687,7 +749,7 @@ export declare interface IGarbageCollectionDetailsBase {
|
|
|
687
749
|
*
|
|
688
750
|
* These two spaces naturally define a rule: consumers of compressed IDs should use session-space IDs, but serialized forms such as ops
|
|
689
751
|
* should use op-space IDs.
|
|
690
|
-
*
|
|
752
|
+
* @internal
|
|
691
753
|
*/
|
|
692
754
|
export declare interface IIdCompressor {
|
|
693
755
|
localSessionId: SessionId;
|
|
@@ -733,6 +795,9 @@ export declare interface IIdCompressor {
|
|
|
733
795
|
tryRecompress(uncompressed: StableId): SessionSpaceCompressedId | undefined;
|
|
734
796
|
}
|
|
735
797
|
|
|
798
|
+
/**
|
|
799
|
+
* @internal
|
|
800
|
+
*/
|
|
736
801
|
export declare interface IIdCompressorCore {
|
|
737
802
|
/**
|
|
738
803
|
* Returns a range of IDs created by this session in a format for sending to the server for finalizing.
|
|
@@ -760,6 +825,7 @@ export declare interface IIdCompressorCore {
|
|
|
760
825
|
|
|
761
826
|
/**
|
|
762
827
|
* Represents ISignalMessage with its type.
|
|
828
|
+
* @internal
|
|
763
829
|
*/
|
|
764
830
|
export declare interface IInboundSignalMessage extends ISignalMessage {
|
|
765
831
|
type: string;
|
|
@@ -770,6 +836,7 @@ export declare interface IInboundSignalMessage extends ISignalMessage {
|
|
|
770
836
|
* but it should not be used when creating a new attach op.
|
|
771
837
|
* Older versions of attach messages could have null snapshots,
|
|
772
838
|
* so this gives correct typings for writing backward compatible code.
|
|
839
|
+
* @internal
|
|
773
840
|
*/
|
|
774
841
|
export declare type InboundAttachMessage = Omit<IAttachMessage, "snapshot"> & {
|
|
775
842
|
snapshot: IAttachMessage["snapshot"] | null;
|
|
@@ -778,17 +845,27 @@ export declare type InboundAttachMessage = Omit<IAttachMessage, "snapshot"> & {
|
|
|
778
845
|
/**
|
|
779
846
|
* Roughly equates to a minimum of 1M sessions before we start allocating 64 bit IDs.
|
|
780
847
|
* This value must *NOT* change without careful consideration to compatibility.
|
|
848
|
+
* @internal
|
|
781
849
|
*/
|
|
782
850
|
export declare const initialClusterCapacity = 512;
|
|
783
851
|
|
|
852
|
+
/**
|
|
853
|
+
* @internal
|
|
854
|
+
*/
|
|
784
855
|
export declare interface IProvideFluidDataStoreFactory {
|
|
785
856
|
readonly IFluidDataStoreFactory: IFluidDataStoreFactory;
|
|
786
857
|
}
|
|
787
858
|
|
|
859
|
+
/**
|
|
860
|
+
* @internal
|
|
861
|
+
*/
|
|
788
862
|
export declare interface IProvideFluidDataStoreRegistry {
|
|
789
863
|
readonly IFluidDataStoreRegistry: IFluidDataStoreRegistry;
|
|
790
864
|
}
|
|
791
865
|
|
|
866
|
+
/**
|
|
867
|
+
* @internal
|
|
868
|
+
*/
|
|
792
869
|
export declare interface ISignalEnvelope {
|
|
793
870
|
/**
|
|
794
871
|
* The target for the envelope, undefined for the container
|
|
@@ -821,6 +898,7 @@ export declare interface ISignalEnvelope {
|
|
|
821
898
|
* ...
|
|
822
899
|
* "path1":
|
|
823
900
|
* ```
|
|
901
|
+
* @internal
|
|
824
902
|
*/
|
|
825
903
|
export declare interface ISummarizeInternalResult extends ISummarizeResult {
|
|
826
904
|
id: string;
|
|
@@ -832,12 +910,16 @@ export declare interface ISummarizeInternalResult extends ISummarizeResult {
|
|
|
832
910
|
|
|
833
911
|
/**
|
|
834
912
|
* Represents a summary at a current sequence number.
|
|
913
|
+
* @internal
|
|
835
914
|
*/
|
|
836
915
|
export declare interface ISummarizeResult {
|
|
837
916
|
stats: ISummaryStats;
|
|
838
917
|
summary: SummaryTree;
|
|
839
918
|
}
|
|
840
919
|
|
|
920
|
+
/**
|
|
921
|
+
* @internal
|
|
922
|
+
*/
|
|
841
923
|
export declare interface ISummarizerNode {
|
|
842
924
|
/**
|
|
843
925
|
* Latest successfully acked summary reference sequence number
|
|
@@ -897,6 +979,9 @@ export declare interface ISummarizerNode {
|
|
|
897
979
|
isSummaryInProgress?(): boolean;
|
|
898
980
|
}
|
|
899
981
|
|
|
982
|
+
/**
|
|
983
|
+
* @internal
|
|
984
|
+
*/
|
|
900
985
|
export declare interface ISummarizerNodeConfig {
|
|
901
986
|
/**
|
|
902
987
|
* True to reuse previous handle when unchanged since last acked summary.
|
|
@@ -915,6 +1000,9 @@ export declare interface ISummarizerNodeConfig {
|
|
|
915
1000
|
readonly throwOnFailure?: true;
|
|
916
1001
|
}
|
|
917
1002
|
|
|
1003
|
+
/**
|
|
1004
|
+
* @internal
|
|
1005
|
+
*/
|
|
918
1006
|
export declare interface ISummarizerNodeConfigWithGC extends ISummarizerNodeConfig {
|
|
919
1007
|
/**
|
|
920
1008
|
* True if GC is disabled. If so, don't track GC related state for a summary.
|
|
@@ -944,6 +1032,7 @@ export declare interface ISummarizerNodeConfigWithGC extends ISummarizerNodeConf
|
|
|
944
1032
|
* `isReferenced`: This tells whether this node is referenced in the document or not.
|
|
945
1033
|
*
|
|
946
1034
|
* `updateUsedRoutes`: Used to notify this node of routes that are currently in use in it.
|
|
1035
|
+
* @internal
|
|
947
1036
|
*/
|
|
948
1037
|
export declare interface ISummarizerNodeWithGC extends ISummarizerNode {
|
|
949
1038
|
createChild(
|
|
@@ -997,6 +1086,7 @@ export declare interface ISummarizerNodeWithGC extends ISummarizerNode {
|
|
|
997
1086
|
|
|
998
1087
|
/**
|
|
999
1088
|
* Contains the aggregation data from a Tree/Subtree.
|
|
1089
|
+
* @internal
|
|
1000
1090
|
*/
|
|
1001
1091
|
export declare interface ISummaryStats {
|
|
1002
1092
|
treeNodeCount: number;
|
|
@@ -1012,6 +1102,7 @@ export declare interface ISummaryStats {
|
|
|
1012
1102
|
* each of its DDS.
|
|
1013
1103
|
* Any component that implements IChannelContext, IFluidDataStoreChannel or extends SharedObject
|
|
1014
1104
|
* will be taking part of the summarization process.
|
|
1105
|
+
* @internal
|
|
1015
1106
|
*/
|
|
1016
1107
|
export declare interface ISummaryTreeWithStats {
|
|
1017
1108
|
/**
|
|
@@ -1028,6 +1119,7 @@ export declare interface ISummaryTreeWithStats {
|
|
|
1028
1119
|
/**
|
|
1029
1120
|
* Contains telemetry data relevant to summarization workflows.
|
|
1030
1121
|
* This object is expected to be modified directly by various summarize methods.
|
|
1122
|
+
* @internal
|
|
1031
1123
|
*/
|
|
1032
1124
|
export declare interface ITelemetryContext {
|
|
1033
1125
|
/**
|
|
@@ -1060,8 +1152,7 @@ export declare interface ITelemetryContext {
|
|
|
1060
1152
|
|
|
1061
1153
|
/**
|
|
1062
1154
|
* AttributionKey associated with content that has been made locally but not yet acked by the server.
|
|
1063
|
-
*
|
|
1064
|
-
* @alpha
|
|
1155
|
+
* @internal
|
|
1065
1156
|
*/
|
|
1066
1157
|
export declare interface LocalAttributionKey {
|
|
1067
1158
|
type: "local";
|
|
@@ -1069,20 +1160,21 @@ export declare interface LocalAttributionKey {
|
|
|
1069
1160
|
|
|
1070
1161
|
/**
|
|
1071
1162
|
* An iterable identifier/registry entry pair list
|
|
1163
|
+
* @internal
|
|
1072
1164
|
*/
|
|
1073
1165
|
export declare type NamedFluidDataStoreRegistryEntries = Iterable<NamedFluidDataStoreRegistryEntry>;
|
|
1074
1166
|
|
|
1075
1167
|
/**
|
|
1076
1168
|
* An associated pair of an identifier and registry entry. Registry entries
|
|
1077
1169
|
* may be dynamically loaded.
|
|
1170
|
+
* @internal
|
|
1078
1171
|
*/
|
|
1079
1172
|
export declare type NamedFluidDataStoreRegistryEntry = [string, Promise<FluidDataStoreRegistryEntry>];
|
|
1080
1173
|
|
|
1081
1174
|
/**
|
|
1082
1175
|
* AttributionKey representing a reference to some op in the op stream.
|
|
1083
1176
|
* Content associated with this key aligns with content modified by that op.
|
|
1084
|
-
*
|
|
1085
|
-
* @alpha
|
|
1177
|
+
* @internal
|
|
1086
1178
|
*/
|
|
1087
1179
|
export declare interface OpAttributionKey {
|
|
1088
1180
|
/**
|
|
@@ -1102,6 +1194,7 @@ export declare interface OpAttributionKey {
|
|
|
1102
1194
|
* A compressed ID that has been normalized into "op space".
|
|
1103
1195
|
* Serialized/persisted structures (e.g. ops) should use op-space IDs as a performance optimization, as they require less normalizing when
|
|
1104
1196
|
* received by a remote client due to the fact that op space for a given compressor is session space for all other compressors.
|
|
1197
|
+
* @internal
|
|
1105
1198
|
*/
|
|
1106
1199
|
export declare type OpSpaceCompressedId = number & {
|
|
1107
1200
|
readonly OpNormalized: "9209432d-a959-4df7-b2ad-767ead4dbcae";
|
|
@@ -1109,6 +1202,7 @@ export declare type OpSpaceCompressedId = number & {
|
|
|
1109
1202
|
|
|
1110
1203
|
/**
|
|
1111
1204
|
* The serialized contents of an IdCompressor, suitable for persistence in a summary.
|
|
1205
|
+
* @internal
|
|
1112
1206
|
*/
|
|
1113
1207
|
export declare type SerializedIdCompressor = string & {
|
|
1114
1208
|
readonly _serializedIdCompressor: "8c73c57c-1cf4-4278-8915-6444cb4f6af5";
|
|
@@ -1116,6 +1210,7 @@ export declare type SerializedIdCompressor = string & {
|
|
|
1116
1210
|
|
|
1117
1211
|
/**
|
|
1118
1212
|
* The serialized contents of an IdCompressor, suitable for persistence in a summary.
|
|
1213
|
+
* @internal
|
|
1119
1214
|
*/
|
|
1120
1215
|
export declare type SerializedIdCompressorWithNoSession = SerializedIdCompressor & {
|
|
1121
1216
|
readonly _noLocalState: "3aa2e1e8-cc28-4ea7-bc1a-a11dc3f26dfb";
|
|
@@ -1123,6 +1218,7 @@ export declare type SerializedIdCompressorWithNoSession = SerializedIdCompressor
|
|
|
1123
1218
|
|
|
1124
1219
|
/**
|
|
1125
1220
|
* The serialized contents of an IdCompressor, suitable for persistence in a summary.
|
|
1221
|
+
* @internal
|
|
1126
1222
|
*/
|
|
1127
1223
|
export declare type SerializedIdCompressorWithOngoingSession = SerializedIdCompressor & {
|
|
1128
1224
|
readonly _hasLocalState: "1281acae-6d14-47e7-bc92-71c8ee0819cb";
|
|
@@ -1130,6 +1226,7 @@ export declare type SerializedIdCompressorWithOngoingSession = SerializedIdCompr
|
|
|
1130
1226
|
|
|
1131
1227
|
/**
|
|
1132
1228
|
* A StableId which is suitable for use as a session identifier
|
|
1229
|
+
* @internal
|
|
1133
1230
|
*/
|
|
1134
1231
|
export declare type SessionId = StableId & {
|
|
1135
1232
|
readonly SessionId: "4498f850-e14e-4be9-8db0-89ec00997e58";
|
|
@@ -1139,6 +1236,7 @@ export declare type SessionId = StableId & {
|
|
|
1139
1236
|
* A compressed ID that has been normalized into "session space" (see `IdCompressor` for more).
|
|
1140
1237
|
* Consumer-facing APIs and data structures should use session-space IDs as their lifetime and equality is stable and tied to
|
|
1141
1238
|
* the scope of the session (i.e. compressor) that produced them.
|
|
1239
|
+
* @internal
|
|
1142
1240
|
*/
|
|
1143
1241
|
export declare type SessionSpaceCompressedId = number & {
|
|
1144
1242
|
readonly SessionUnique: "cea55054-6b82-4cbf-ad19-1fa645ea3b3e";
|
|
@@ -1149,18 +1247,26 @@ export declare type SessionSpaceCompressedId = number & {
|
|
|
1149
1247
|
* A 128-bit Universally Unique IDentifier. Represented here
|
|
1150
1248
|
* with a string of the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx,
|
|
1151
1249
|
* where x is a lowercase hex digit.
|
|
1250
|
+
* @internal
|
|
1152
1251
|
*/
|
|
1153
1252
|
export declare type StableId = string & {
|
|
1154
1253
|
readonly StableId: "53172b0d-a3d5-41ea-bd75-b43839c97f5a";
|
|
1155
1254
|
};
|
|
1156
1255
|
|
|
1256
|
+
/**
|
|
1257
|
+
* @internal
|
|
1258
|
+
*/
|
|
1157
1259
|
export declare type SummarizeInternalFn = (fullTree: boolean, trackState: boolean, telemetryContext?: ITelemetryContext, incrementalSummaryContext?: IExperimentalIncrementalSummaryContext) => Promise<ISummarizeInternalResult>;
|
|
1158
1260
|
|
|
1261
|
+
/**
|
|
1262
|
+
* @internal
|
|
1263
|
+
*/
|
|
1159
1264
|
export declare const totalBlobSizePropertyName = "TotalBlobSize";
|
|
1160
1265
|
|
|
1161
1266
|
/**
|
|
1162
1267
|
* This tells the visibility state of a Fluid object. It basically tracks whether the object is not visible, visible
|
|
1163
1268
|
* locally within the container only or visible globally to all clients.
|
|
1269
|
+
* @internal
|
|
1164
1270
|
*/
|
|
1165
1271
|
export declare const VisibilityState: {
|
|
1166
1272
|
/**
|
|
@@ -1185,6 +1291,9 @@ export declare const VisibilityState: {
|
|
|
1185
1291
|
GloballyVisible: string;
|
|
1186
1292
|
};
|
|
1187
1293
|
|
|
1294
|
+
/**
|
|
1295
|
+
* @internal
|
|
1296
|
+
*/
|
|
1188
1297
|
export declare type VisibilityState = (typeof VisibilityState)[keyof typeof VisibilityState];
|
|
1189
1298
|
|
|
1190
1299
|
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/runtime-definitions",
|
|
3
|
-
"version": "2.0.0-dev.7.4.0.
|
|
3
|
+
"version": "2.0.0-dev.7.4.0.217212",
|
|
4
4
|
"description": "Fluid Runtime definitions",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"main": "dist/index.js",
|
|
15
15
|
"types": "dist/index.d.ts",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@fluidframework/container-definitions": "2.0.0-dev.7.4.0.
|
|
18
|
-
"@fluidframework/core-interfaces": "2.0.0-dev.7.4.0.
|
|
19
|
-
"@fluidframework/driver-definitions": "2.0.0-dev.7.4.0.
|
|
17
|
+
"@fluidframework/container-definitions": "2.0.0-dev.7.4.0.217212",
|
|
18
|
+
"@fluidframework/core-interfaces": "2.0.0-dev.7.4.0.217212",
|
|
19
|
+
"@fluidframework/driver-definitions": "2.0.0-dev.7.4.0.217212",
|
|
20
20
|
"@fluidframework/protocol-definitions": "^3.0.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
@@ -65,12 +65,13 @@
|
|
|
65
65
|
"build:compile": "fluid-build . --task compile",
|
|
66
66
|
"build:docs": "fluid-build . --task api",
|
|
67
67
|
"build:test": "tsc --project ./src/test/tsconfig.json",
|
|
68
|
+
"check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
|
|
68
69
|
"ci:build:docs": "api-extractor run",
|
|
69
70
|
"clean": "rimraf --glob dist \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp",
|
|
70
71
|
"eslint": "eslint --format stylish src",
|
|
71
72
|
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
|
|
72
73
|
"format": "npm run prettier:fix",
|
|
73
|
-
"lint": "npm run prettier && npm run eslint",
|
|
74
|
+
"lint": "npm run prettier && npm run check:release-tags && npm run eslint",
|
|
74
75
|
"lint:fix": "npm run prettier:fix && npm run eslint:fix",
|
|
75
76
|
"prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
|
|
76
77
|
"prettier:fix": "prettier --write . --cache --ignore-path ../../../.prettierignore",
|
package/src/attribution.ts
CHANGED
|
@@ -8,8 +8,7 @@ import type { IUser } from "@fluidframework/protocol-definitions";
|
|
|
8
8
|
/**
|
|
9
9
|
* AttributionKey representing a reference to some op in the op stream.
|
|
10
10
|
* Content associated with this key aligns with content modified by that op.
|
|
11
|
-
*
|
|
12
|
-
* @alpha
|
|
11
|
+
* @internal
|
|
13
12
|
*/
|
|
14
13
|
export interface OpAttributionKey {
|
|
15
14
|
/**
|
|
@@ -33,8 +32,7 @@ export interface OpAttributionKey {
|
|
|
33
32
|
* is currently unsupported, as applications can effectively modify content anonymously while detached.
|
|
34
33
|
* The runtime has no mechanism for reliably obtaining the user. It would be reasonable to start supporting
|
|
35
34
|
* this functionality if the host provided additional context to their attributor or attach calls.
|
|
36
|
-
*
|
|
37
|
-
* @alpha
|
|
35
|
+
* @internal
|
|
38
36
|
*/
|
|
39
37
|
export interface DetachedAttributionKey {
|
|
40
38
|
type: "detached";
|
|
@@ -52,8 +50,7 @@ export interface DetachedAttributionKey {
|
|
|
52
50
|
|
|
53
51
|
/**
|
|
54
52
|
* AttributionKey associated with content that has been made locally but not yet acked by the server.
|
|
55
|
-
*
|
|
56
|
-
* @alpha
|
|
53
|
+
* @internal
|
|
57
54
|
*/
|
|
58
55
|
export interface LocalAttributionKey {
|
|
59
56
|
type: "local";
|
|
@@ -61,13 +58,13 @@ export interface LocalAttributionKey {
|
|
|
61
58
|
|
|
62
59
|
/**
|
|
63
60
|
* Can be indexed into the ContainerRuntime in order to retrieve {@link AttributionInfo}.
|
|
64
|
-
* @
|
|
61
|
+
* @internal
|
|
65
62
|
*/
|
|
66
63
|
export type AttributionKey = OpAttributionKey | DetachedAttributionKey | LocalAttributionKey;
|
|
67
64
|
|
|
68
65
|
/**
|
|
69
66
|
* Attribution information associated with a change.
|
|
70
|
-
* @
|
|
67
|
+
* @internal
|
|
71
68
|
*/
|
|
72
69
|
export interface AttributionInfo {
|
|
73
70
|
/**
|