@fluidframework/container-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-report/container-definitions.api.md +51 -53
- package/dist/audience.d.ts +2 -2
- package/dist/audience.js.map +1 -1
- package/dist/browserPackage.d.ts +3 -3
- package/dist/browserPackage.js +1 -1
- package/dist/browserPackage.js.map +1 -1
- package/dist/container-definitions-alpha.d.ts +57 -310
- package/dist/container-definitions-beta.d.ts +72 -1366
- package/dist/container-definitions-public.d.ts +72 -1366
- package/dist/container-definitions-untrimmed.d.ts +55 -55
- package/dist/deltas.d.ts +7 -7
- package/dist/deltas.js.map +1 -1
- package/dist/error.d.ts +5 -6
- package/dist/error.d.ts.map +1 -1
- package/dist/error.js +2 -2
- package/dist/error.js.map +1 -1
- package/dist/fluidModule.d.ts +1 -1
- package/dist/fluidModule.js.map +1 -1
- package/dist/fluidPackage.d.ts +9 -9
- package/dist/fluidPackage.js +3 -3
- package/dist/fluidPackage.js.map +1 -1
- package/dist/loader.d.ts +21 -18
- package/dist/loader.d.ts.map +1 -1
- package/dist/loader.js +1 -1
- package/dist/loader.js.map +1 -1
- package/dist/runtime.d.ts +7 -9
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +2 -2
- package/dist/runtime.js.map +1 -1
- package/lib/audience.d.ts +2 -2
- package/lib/audience.js.map +1 -1
- package/lib/browserPackage.d.ts +3 -3
- package/lib/browserPackage.js +1 -1
- package/lib/browserPackage.js.map +1 -1
- package/lib/container-definitions-alpha.d.ts +57 -310
- package/lib/container-definitions-beta.d.ts +72 -1366
- package/lib/container-definitions-public.d.ts +72 -1366
- package/lib/container-definitions-untrimmed.d.ts +55 -55
- package/lib/deltas.d.ts +7 -7
- package/lib/deltas.js.map +1 -1
- package/lib/error.d.ts +5 -6
- package/lib/error.d.ts.map +1 -1
- package/lib/error.js +2 -2
- package/lib/error.js.map +1 -1
- package/lib/fluidModule.d.ts +1 -1
- package/lib/fluidModule.js.map +1 -1
- package/lib/fluidPackage.d.ts +9 -9
- package/lib/fluidPackage.js +3 -3
- package/lib/fluidPackage.js.map +1 -1
- package/lib/loader.d.ts +21 -18
- package/lib/loader.d.ts.map +1 -1
- package/lib/loader.js +1 -1
- package/lib/loader.js.map +1 -1
- package/lib/runtime.d.ts +7 -9
- package/lib/runtime.d.ts.map +1 -1
- package/lib/runtime.js +2 -2
- package/lib/runtime.js.map +1 -1
- package/package.json +5 -4
- package/src/audience.ts +2 -2
- package/src/browserPackage.ts +3 -3
- package/src/deltas.ts +7 -7
- package/src/error.ts +5 -6
- package/src/fluidModule.ts +1 -1
- package/src/fluidPackage.ts +9 -9
- package/src/loader.ts +21 -18
- package/src/runtime.ts +7 -9
|
@@ -18,7 +18,6 @@ import { IErrorEvent } from '@fluidframework/core-interfaces';
|
|
|
18
18
|
import { IEvent } from '@fluidframework/core-interfaces';
|
|
19
19
|
import { IEventProvider } from '@fluidframework/core-interfaces';
|
|
20
20
|
import { IFluidRouter } from '@fluidframework/core-interfaces';
|
|
21
|
-
import { IGenericError } from '@fluidframework/core-interfaces';
|
|
22
21
|
import { IQuorumClients } from '@fluidframework/protocol-definitions';
|
|
23
22
|
import { IRequest } from '@fluidframework/core-interfaces';
|
|
24
23
|
import { IResolvedUrl } from '@fluidframework/driver-definitions';
|
|
@@ -30,16 +29,14 @@ import { ISnapshotTree } from '@fluidframework/protocol-definitions';
|
|
|
30
29
|
import { ISummaryContent } from '@fluidframework/protocol-definitions';
|
|
31
30
|
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
32
31
|
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
33
|
-
import { IThrottlingWarning } from '@fluidframework/core-interfaces';
|
|
34
32
|
import { ITokenClaims } from '@fluidframework/protocol-definitions';
|
|
35
|
-
import { IUsageError } from '@fluidframework/core-interfaces';
|
|
36
33
|
import { IVersion } from '@fluidframework/protocol-definitions';
|
|
37
34
|
import { MessageType } from '@fluidframework/protocol-definitions';
|
|
38
35
|
|
|
39
36
|
/**
|
|
40
37
|
* The attachment state of some Fluid data (e.g. a container or data store), denoting whether it is uploaded to the
|
|
41
38
|
* service. The transition from detached to attached state is a one-way transition.
|
|
42
|
-
* @
|
|
39
|
+
* @alpha
|
|
43
40
|
*/
|
|
44
41
|
export declare enum AttachState {
|
|
45
42
|
/**
|
|
@@ -61,95 +58,47 @@ export declare enum AttachState {
|
|
|
61
58
|
/**
|
|
62
59
|
* Namespace for the different connection states a container can be in.
|
|
63
60
|
* PLEASE NOTE: The sequence of the numerical values does no correspond to the typical connection state progression.
|
|
64
|
-
* @
|
|
61
|
+
* @alpha
|
|
65
62
|
*/
|
|
66
63
|
export declare namespace ConnectionState {
|
|
67
64
|
/**
|
|
68
65
|
* The container is not connected to the delta server.
|
|
69
66
|
* Note - When in this state the container may be about to reconnect,
|
|
70
67
|
* or may remain disconnected until explicitly told to connect.
|
|
68
|
+
* @alpha
|
|
71
69
|
*/
|
|
72
70
|
export type Disconnected = 0;
|
|
73
71
|
/**
|
|
74
72
|
* The container is disconnected but actively trying to establish a new connection.
|
|
75
73
|
* PLEASE NOTE that this numerical value falls out of the order you may expect for this state.
|
|
74
|
+
* @alpha
|
|
76
75
|
*/
|
|
77
76
|
export type EstablishingConnection = 3;
|
|
78
77
|
/**
|
|
79
78
|
* The container has an inbound connection only, and is catching up to the latest known state from the service.
|
|
79
|
+
* @alpha
|
|
80
80
|
*/
|
|
81
81
|
export type CatchingUp = 1;
|
|
82
82
|
/**
|
|
83
83
|
* The container is fully connected and syncing.
|
|
84
|
+
* @alpha
|
|
84
85
|
*/
|
|
85
86
|
export type Connected = 2;
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
/**
|
|
89
90
|
* Type defining the different states of connectivity a Container can be in.
|
|
90
|
-
* @
|
|
91
|
+
* @alpha
|
|
91
92
|
*/
|
|
92
93
|
export declare type ConnectionState = ConnectionState.Disconnected | ConnectionState.EstablishingConnection | ConnectionState.CatchingUp | ConnectionState.Connected;
|
|
93
94
|
|
|
94
|
-
|
|
95
|
-
* Different error types the Container may report out to the Host.
|
|
96
|
-
*
|
|
97
|
-
* @deprecated ContainerErrorType is being deprecated as a public export. Please use {@link ContainerErrorTypes#clientSessionExpiredError} instead.
|
|
98
|
-
* @public
|
|
99
|
-
*/
|
|
100
|
-
export declare enum ContainerErrorType {
|
|
101
|
-
/**
|
|
102
|
-
* Some error, most likely an exception caught by runtime and propagated to container as critical error
|
|
103
|
-
*/
|
|
104
|
-
genericError = "genericError",
|
|
105
|
-
/**
|
|
106
|
-
* Throttling error from server. Server is busy and is asking not to reconnect for some time
|
|
107
|
-
*/
|
|
108
|
-
throttlingError = "throttlingError",
|
|
109
|
-
/**
|
|
110
|
-
* Data loss error detected by Container / DeltaManager. Likely points to storage issue.
|
|
111
|
-
*/
|
|
112
|
-
dataCorruptionError = "dataCorruptionError",
|
|
113
|
-
/**
|
|
114
|
-
* Error encountered when processing an operation. May correlate with data corruption.
|
|
115
|
-
*/
|
|
116
|
-
dataProcessingError = "dataProcessingError",
|
|
117
|
-
/**
|
|
118
|
-
* Error indicating an API is being used improperly resulting in an invalid operation.
|
|
119
|
-
*/
|
|
120
|
-
usageError = "usageError",
|
|
121
|
-
/**
|
|
122
|
-
* Error indicating an client session has expired. Currently this only happens when GC is allowed on a document and
|
|
123
|
-
* aids in safely deleting unused objects.
|
|
124
|
-
*/
|
|
125
|
-
clientSessionExpiredError = "clientSessionExpiredError"
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Different error types the ClientSession may report out to the Host.
|
|
130
|
-
* @public
|
|
131
|
-
*/
|
|
132
|
-
export declare const ContainerErrorTypes: {
|
|
133
|
-
/**
|
|
134
|
-
* Error indicating an client session has expired. Currently this only happens when GC is allowed on a document and
|
|
135
|
-
* aids in safely deleting unused objects.
|
|
136
|
-
*/
|
|
137
|
-
readonly clientSessionExpiredError: "clientSessionExpiredError";
|
|
138
|
-
readonly genericError: "genericError";
|
|
139
|
-
readonly throttlingError: "throttlingError";
|
|
140
|
-
readonly dataCorruptionError: "dataCorruptionError";
|
|
141
|
-
readonly dataProcessingError: "dataProcessingError";
|
|
142
|
-
readonly usageError: "usageError";
|
|
143
|
-
};
|
|
95
|
+
/* Excluded from this release type: ContainerErrorType */
|
|
144
96
|
|
|
145
|
-
|
|
146
|
-
* @public
|
|
147
|
-
*/
|
|
148
|
-
export declare type ContainerErrorTypes = (typeof ContainerErrorTypes)[keyof typeof ContainerErrorTypes];
|
|
97
|
+
/* Excluded from this release type: ContainerErrorTypes */
|
|
149
98
|
|
|
150
99
|
/**
|
|
151
100
|
* Represents warnings raised on container.
|
|
152
|
-
* @
|
|
101
|
+
* @alpha
|
|
153
102
|
*/
|
|
154
103
|
export declare interface ContainerWarning extends IErrorBase {
|
|
155
104
|
/**
|
|
@@ -165,7 +114,7 @@ export declare interface ContainerWarning extends IErrorBase {
|
|
|
165
114
|
*
|
|
166
115
|
* See {@link https://nodejs.org/api/events.html#class-eventemitter | here} for an overview of the `EventEmitter`
|
|
167
116
|
* class.
|
|
168
|
-
* @
|
|
117
|
+
* @alpha
|
|
169
118
|
*/
|
|
170
119
|
export declare interface IAudience extends EventEmitter {
|
|
171
120
|
/**
|
|
@@ -185,7 +134,7 @@ export declare interface IAudience extends EventEmitter {
|
|
|
185
134
|
|
|
186
135
|
/**
|
|
187
136
|
* Manages the state and the members for {@link IAudience}
|
|
188
|
-
* @
|
|
137
|
+
* @alpha
|
|
189
138
|
*/
|
|
190
139
|
export declare interface IAudienceOwner extends IAudience {
|
|
191
140
|
/**
|
|
@@ -201,7 +150,7 @@ export declare interface IAudienceOwner extends IAudience {
|
|
|
201
150
|
|
|
202
151
|
/**
|
|
203
152
|
* Payload type for IContainerContext.submitBatchFn()
|
|
204
|
-
* @
|
|
153
|
+
* @alpha
|
|
205
154
|
*/
|
|
206
155
|
export declare interface IBatchMessage {
|
|
207
156
|
contents?: string;
|
|
@@ -210,24 +159,11 @@ export declare interface IBatchMessage {
|
|
|
210
159
|
referenceSequenceNumber?: number;
|
|
211
160
|
}
|
|
212
161
|
|
|
213
|
-
|
|
214
|
-
* Fluid code loader resolves a code module matching the document schema, i.e. code details, such as
|
|
215
|
-
* a package name and package version range.
|
|
216
|
-
* @public
|
|
217
|
-
*/
|
|
218
|
-
export declare interface ICodeDetailsLoader extends Partial<IProvideFluidCodeDetailsComparer> {
|
|
219
|
-
/**
|
|
220
|
-
* Load the code module (package) that can interact with the document.
|
|
221
|
-
*
|
|
222
|
-
* @param source - Code proposal that articulates the current schema the document is written in.
|
|
223
|
-
* @returns Code module entry point along with the code details associated with it.
|
|
224
|
-
*/
|
|
225
|
-
load(source: IFluidCodeDetails): Promise<IFluidModuleWithDetails>;
|
|
226
|
-
}
|
|
162
|
+
/* Excluded from this release type: ICodeDetailsLoader */
|
|
227
163
|
|
|
228
164
|
/**
|
|
229
165
|
* Contract representing the result of a newly established connection to the server for syncing deltas.
|
|
230
|
-
* @
|
|
166
|
+
* @alpha
|
|
231
167
|
*/
|
|
232
168
|
export declare interface IConnectionDetails {
|
|
233
169
|
clientId: string;
|
|
@@ -248,7 +184,7 @@ export declare interface IConnectionDetails {
|
|
|
248
184
|
|
|
249
185
|
/**
|
|
250
186
|
* The Host's view of a Container and its connection to storage
|
|
251
|
-
* @
|
|
187
|
+
* @alpha
|
|
252
188
|
*/
|
|
253
189
|
export declare interface IContainer extends IEventProvider<IContainerEvents>, IFluidRouter {
|
|
254
190
|
/**
|
|
@@ -423,7 +359,6 @@ export declare interface IContainer extends IEventProvider<IContainerEvents>, IF
|
|
|
423
359
|
/**
|
|
424
360
|
* Allows the host to have the container force to be in read-only mode
|
|
425
361
|
* @param readonly - Boolean that toggles if read-only policies will be enforced
|
|
426
|
-
* @alpha
|
|
427
362
|
*/
|
|
428
363
|
forceReadonly?(readonly: boolean): any;
|
|
429
364
|
/**
|
|
@@ -437,7 +372,7 @@ export declare interface IContainer extends IEventProvider<IContainerEvents>, IF
|
|
|
437
372
|
* IContainerContext is fundamentally just the set of things that an IRuntimeFactory (and IRuntime) will consume from the
|
|
438
373
|
* loader layer. It gets passed into the IRuntimeFactory.instantiateRuntime call. Only include members on this interface
|
|
439
374
|
* if you intend them to be consumed/called from the runtime layer.
|
|
440
|
-
* @
|
|
375
|
+
* @alpha
|
|
441
376
|
*/
|
|
442
377
|
export declare interface IContainerContext {
|
|
443
378
|
readonly options: ILoaderOptions;
|
|
@@ -505,7 +440,7 @@ export declare interface IContainerContext {
|
|
|
505
440
|
|
|
506
441
|
/**
|
|
507
442
|
* Events emitted by the {@link IContainer} "upwards" to the Loader and Host.
|
|
508
|
-
* @
|
|
443
|
+
* @alpha
|
|
509
444
|
*/
|
|
510
445
|
export declare interface IContainerEvents extends IEvent {
|
|
511
446
|
/**
|
|
@@ -648,17 +583,7 @@ export declare interface IContainerEvents extends IEvent {
|
|
|
648
583
|
(event: "saved", listener: (dirty: boolean) => void): any;
|
|
649
584
|
}
|
|
650
585
|
|
|
651
|
-
|
|
652
|
-
* @public
|
|
653
|
-
*/
|
|
654
|
-
export declare interface IContainerLoadMode {
|
|
655
|
-
opsBeforeReturn?: undefined | "sequenceNumber" | "cached" | "all";
|
|
656
|
-
deltaConnection?: "none" | "delayed" | undefined;
|
|
657
|
-
/**
|
|
658
|
-
* If set to true, will indefinitely pause all incoming and outgoing after the container is loaded.
|
|
659
|
-
*/
|
|
660
|
-
pauseAfterLoad?: boolean;
|
|
661
|
-
}
|
|
586
|
+
/* Excluded from this release type: IContainerLoadMode */
|
|
662
587
|
|
|
663
588
|
/**
|
|
664
589
|
* Represents errors raised on container.
|
|
@@ -674,14 +599,13 @@ export declare interface IContainerLoadMode {
|
|
|
674
599
|
* - {@link @fluidframework/odsp-driver-definitions#OdspErrorType}
|
|
675
600
|
*
|
|
676
601
|
* - {@link @fluidframework/routerlicious-driver#RouterliciousErrorType}
|
|
677
|
-
*
|
|
678
|
-
* @public
|
|
602
|
+
* @alpha
|
|
679
603
|
*/
|
|
680
604
|
export declare type ICriticalContainerError = IErrorBase;
|
|
681
605
|
|
|
682
606
|
/**
|
|
683
607
|
* Manages the transmission of ops between the runtime and storage.
|
|
684
|
-
* @
|
|
608
|
+
* @alpha
|
|
685
609
|
*/
|
|
686
610
|
export declare interface IDeltaManager<T, U> extends IEventProvider<IDeltaManagerEvents>, IDeltaSender {
|
|
687
611
|
/**
|
|
@@ -750,7 +674,7 @@ export declare interface IDeltaManager<T, U> extends IEventProvider<IDeltaManage
|
|
|
750
674
|
|
|
751
675
|
/**
|
|
752
676
|
* Events emitted by {@link IDeltaManager}.
|
|
753
|
-
* @
|
|
677
|
+
* @alpha
|
|
754
678
|
*/
|
|
755
679
|
export declare interface IDeltaManagerEvents extends IEvent {
|
|
756
680
|
/**
|
|
@@ -820,7 +744,7 @@ export declare interface IDeltaManagerEvents extends IEvent {
|
|
|
820
744
|
|
|
821
745
|
/**
|
|
822
746
|
* Queue of ops to be sent to or processed from storage
|
|
823
|
-
* @
|
|
747
|
+
* @alpha
|
|
824
748
|
*/
|
|
825
749
|
export declare interface IDeltaQueue<T> extends IEventProvider<IDeltaQueueEvents<T>>, IDisposable {
|
|
826
750
|
/**
|
|
@@ -866,7 +790,7 @@ export declare interface IDeltaQueue<T> extends IEventProvider<IDeltaQueueEvents
|
|
|
866
790
|
|
|
867
791
|
/**
|
|
868
792
|
* Events emitted by {@link IDeltaQueue}.
|
|
869
|
-
* @
|
|
793
|
+
* @alpha
|
|
870
794
|
*/
|
|
871
795
|
export declare interface IDeltaQueueEvents<T> extends IErrorEvent {
|
|
872
796
|
/**
|
|
@@ -907,7 +831,7 @@ export declare interface IDeltaQueueEvents<T> extends IErrorEvent {
|
|
|
907
831
|
|
|
908
832
|
/**
|
|
909
833
|
* Contract supporting delivery of outbound messages to the server
|
|
910
|
-
* @
|
|
834
|
+
* @alpha
|
|
911
835
|
*/
|
|
912
836
|
export declare interface IDeltaSender {
|
|
913
837
|
/**
|
|
@@ -918,52 +842,13 @@ export declare interface IDeltaSender {
|
|
|
918
842
|
|
|
919
843
|
export { IErrorBase }
|
|
920
844
|
|
|
921
|
-
|
|
922
|
-
* A Fluid package for specification for browser environments
|
|
923
|
-
* @public
|
|
924
|
-
*/
|
|
925
|
-
export declare interface IFluidBrowserPackage extends IFluidPackage {
|
|
926
|
-
/**
|
|
927
|
-
* {@inheritDoc @fluidframework/core-interfaces#IFluidPackage.fluid}
|
|
928
|
-
*/
|
|
929
|
-
fluid: {
|
|
930
|
-
/**
|
|
931
|
-
* The browser specific package information for this package
|
|
932
|
-
*/
|
|
933
|
-
browser: IFluidBrowserPackageEnvironment;
|
|
934
|
-
/**
|
|
935
|
-
* {@inheritDoc @fluidframework/core-interfaces#IFluidPackage.fluid.environment}
|
|
936
|
-
*/
|
|
937
|
-
[environment: string]: IFluidPackageEnvironment;
|
|
938
|
-
};
|
|
939
|
-
}
|
|
845
|
+
/* Excluded from this release type: IFluidBrowserPackage */
|
|
940
846
|
|
|
941
|
-
|
|
942
|
-
* A specific Fluid package environment for browsers
|
|
943
|
-
* @public
|
|
944
|
-
*/
|
|
945
|
-
export declare interface IFluidBrowserPackageEnvironment extends IFluidPackageEnvironment {
|
|
946
|
-
/**
|
|
947
|
-
* The Universal Module Definition (umd) target specifics the scripts necessary for
|
|
948
|
-
* loading a packages in a browser environment and finding its entry point.
|
|
949
|
-
*/
|
|
950
|
-
umd: {
|
|
951
|
-
/**
|
|
952
|
-
* The bundled js files for loading this package.
|
|
953
|
-
* These files will be loaded and executed in order.
|
|
954
|
-
*/
|
|
955
|
-
files: string[];
|
|
956
|
-
/**
|
|
957
|
-
* The global name that the script entry points will be exposed.
|
|
958
|
-
* This entry point should be an {@link @fluidframework/container-definitions#IFluidModule}.
|
|
959
|
-
*/
|
|
960
|
-
library: string;
|
|
961
|
-
};
|
|
962
|
-
}
|
|
847
|
+
/* Excluded from this release type: IFluidBrowserPackageEnvironment */
|
|
963
848
|
|
|
964
849
|
/**
|
|
965
850
|
* Data structure used to describe the code to load on the Fluid document
|
|
966
|
-
* @
|
|
851
|
+
* @alpha
|
|
967
852
|
*/
|
|
968
853
|
export declare interface IFluidCodeDetails {
|
|
969
854
|
/**
|
|
@@ -981,13 +866,13 @@ export declare interface IFluidCodeDetails {
|
|
|
981
866
|
}
|
|
982
867
|
|
|
983
868
|
/**
|
|
984
|
-
* @
|
|
869
|
+
* @alpha
|
|
985
870
|
*/
|
|
986
871
|
export declare const IFluidCodeDetailsComparer: keyof IProvideFluidCodeDetailsComparer;
|
|
987
872
|
|
|
988
873
|
/**
|
|
989
874
|
* Provides capability to compare Fluid code details.
|
|
990
|
-
* @
|
|
875
|
+
* @alpha
|
|
991
876
|
*/
|
|
992
877
|
export declare interface IFluidCodeDetailsComparer extends IProvideFluidCodeDetailsComparer {
|
|
993
878
|
/**
|
|
@@ -1016,61 +901,29 @@ export declare interface IFluidCodeDetailsComparer extends IProvideFluidCodeDeta
|
|
|
1016
901
|
|
|
1017
902
|
/**
|
|
1018
903
|
* Package manager configuration. Provides a key value mapping of config values
|
|
1019
|
-
* @
|
|
904
|
+
* @alpha
|
|
1020
905
|
*/
|
|
1021
906
|
export declare interface IFluidCodeDetailsConfig {
|
|
1022
907
|
readonly [key: string]: string;
|
|
1023
908
|
}
|
|
1024
909
|
|
|
1025
|
-
|
|
1026
|
-
* Fluid code resolvers take a Fluid code details, and resolve the
|
|
1027
|
-
* full Fluid package including absolute urls for the browser file entries.
|
|
1028
|
-
* The Fluid code resolver is coupled to a specific cdn and knows how to resolve
|
|
1029
|
-
* the code detail for loading from that cdn. This include resolving to the most recent
|
|
1030
|
-
* version of package that supports the provided code details.
|
|
1031
|
-
* @public
|
|
1032
|
-
*/
|
|
1033
|
-
export declare interface IFluidCodeResolver {
|
|
1034
|
-
/**
|
|
1035
|
-
* Resolves a Fluid code details into a form that can be loaded.
|
|
1036
|
-
* @param details - The Fluid code details to resolve.
|
|
1037
|
-
* @returns A IResolvedFluidCodeDetails where the resolvedPackage's Fluid file entries are absolute urls, and
|
|
1038
|
-
* an optional resolvedPackageCacheId if the loaded package should be cached.
|
|
1039
|
-
*/
|
|
1040
|
-
resolveCodeDetails(details: IFluidCodeDetails): Promise<IResolvedFluidCodeDetails>;
|
|
1041
|
-
}
|
|
910
|
+
/* Excluded from this release type: IFluidCodeResolver */
|
|
1042
911
|
|
|
1043
912
|
/**
|
|
1044
|
-
* @
|
|
913
|
+
* @alpha
|
|
1045
914
|
*/
|
|
1046
915
|
export declare interface IFluidModule {
|
|
1047
916
|
fluidExport: FluidObject<IRuntimeFactory & IProvideFluidCodeDetailsComparer>;
|
|
1048
917
|
}
|
|
1049
918
|
|
|
1050
|
-
|
|
1051
|
-
* Encapsulates a module entry point with corresponding code details.
|
|
1052
|
-
* @public
|
|
1053
|
-
*/
|
|
1054
|
-
export declare interface IFluidModuleWithDetails {
|
|
1055
|
-
/**
|
|
1056
|
-
* Fluid code module that implements the runtime factory needed to instantiate the container runtime.
|
|
1057
|
-
*/
|
|
1058
|
-
module: IFluidModule;
|
|
1059
|
-
/**
|
|
1060
|
-
* Code details associated with the module. Represents a document schema this module supports.
|
|
1061
|
-
* If the code loader implements the {@link @fluidframework/core-interfaces#(IFluidCodeDetailsComparer:interface)}
|
|
1062
|
-
* interface, it'll be called to determine whether the module code details satisfy the new code proposal in the
|
|
1063
|
-
* quorum.
|
|
1064
|
-
*/
|
|
1065
|
-
details: IFluidCodeDetails;
|
|
1066
|
-
}
|
|
919
|
+
/* Excluded from this release type: IFluidModuleWithDetails */
|
|
1067
920
|
|
|
1068
921
|
/**
|
|
1069
922
|
* Fluid-specific properties expected on a package to be loaded by the code loader.
|
|
1070
923
|
* While compatible with the npm package format it is not necessary that that package is an
|
|
1071
924
|
* npm package:
|
|
1072
925
|
* {@link https://stackoverflow.com/questions/10065564/add-custom-metadata-or-config-to-package-json-is-it-valid}
|
|
1073
|
-
* @
|
|
926
|
+
* @alpha
|
|
1074
927
|
*/
|
|
1075
928
|
export declare interface IFluidPackage {
|
|
1076
929
|
/**
|
|
@@ -1097,7 +950,7 @@ export declare interface IFluidPackage {
|
|
|
1097
950
|
|
|
1098
951
|
/**
|
|
1099
952
|
* Specifies an environment on Fluid property of a IFluidPackage.
|
|
1100
|
-
* @
|
|
953
|
+
* @alpha
|
|
1101
954
|
*/
|
|
1102
955
|
export declare interface IFluidPackageEnvironment {
|
|
1103
956
|
/**
|
|
@@ -1120,7 +973,7 @@ export declare interface IFluidPackageEnvironment {
|
|
|
1120
973
|
};
|
|
1121
974
|
}
|
|
1122
975
|
|
|
1123
|
-
|
|
976
|
+
/* Excluded from this release type: IGenericError */
|
|
1124
977
|
|
|
1125
978
|
/**
|
|
1126
979
|
* Defines list of properties expected for getPendingLocalState
|
|
@@ -1142,32 +995,11 @@ export declare interface IGetPendingLocalStateProps {
|
|
|
1142
995
|
readonly stopBlobAttachingSignal?: AbortSignal;
|
|
1143
996
|
}
|
|
1144
997
|
|
|
1145
|
-
|
|
1146
|
-
* The Host's view of the Loader, used for loading Containers
|
|
1147
|
-
* @public
|
|
1148
|
-
*/
|
|
1149
|
-
export declare interface IHostLoader extends ILoader {
|
|
1150
|
-
/**
|
|
1151
|
-
* Creates a new container using the specified chaincode but in an unattached state. While unattached all
|
|
1152
|
-
* updates will only be local until the user explicitly attaches the container to a service provider.
|
|
1153
|
-
*/
|
|
1154
|
-
createDetachedContainer(codeDetails: IFluidCodeDetails, createDetachedProps?: {
|
|
1155
|
-
canReconnect?: boolean;
|
|
1156
|
-
clientDetailsOverride?: IClientDetails;
|
|
1157
|
-
}): Promise<IContainer>;
|
|
1158
|
-
/**
|
|
1159
|
-
* Creates a new container using the specified snapshot but in an unattached state. While unattached all
|
|
1160
|
-
* updates will only be local until the user explicitly attaches the container to a service provider.
|
|
1161
|
-
*/
|
|
1162
|
-
rehydrateDetachedContainerFromSnapshot(snapshot: string, createDetachedProps?: {
|
|
1163
|
-
canReconnect?: boolean;
|
|
1164
|
-
clientDetailsOverride?: IClientDetails;
|
|
1165
|
-
}): Promise<IContainer>;
|
|
1166
|
-
}
|
|
998
|
+
/* Excluded from this release type: IHostLoader */
|
|
1167
999
|
|
|
1168
1000
|
/**
|
|
1169
1001
|
* The Runtime's view of the Loader, used for loading Containers
|
|
1170
|
-
* @
|
|
1002
|
+
* @alpha
|
|
1171
1003
|
*/
|
|
1172
1004
|
export declare interface ILoader extends Partial<IProvideLoader> {
|
|
1173
1005
|
/**
|
|
@@ -1190,28 +1022,10 @@ export declare interface ILoader extends Partial<IProvideLoader> {
|
|
|
1190
1022
|
readonly IFluidRouter: IFluidRouter;
|
|
1191
1023
|
}
|
|
1192
1024
|
|
|
1193
|
-
|
|
1194
|
-
* Set of Request Headers that the Loader understands and may inspect or modify
|
|
1195
|
-
* @public
|
|
1196
|
-
*/
|
|
1197
|
-
export declare interface ILoaderHeader {
|
|
1198
|
-
/**
|
|
1199
|
-
* @deprecated This header has been deprecated and will be removed in a future release
|
|
1200
|
-
*/
|
|
1201
|
-
[LoaderHeader.cache]: boolean;
|
|
1202
|
-
[LoaderHeader.clientDetails]: IClientDetails;
|
|
1203
|
-
[LoaderHeader.loadMode]: IContainerLoadMode;
|
|
1204
|
-
/**
|
|
1205
|
-
* Loads the container to at least the specified sequence number.
|
|
1206
|
-
* If not defined, behavior will fall back to `IContainerLoadMode.opsBeforeReturn`.
|
|
1207
|
-
*/
|
|
1208
|
-
[LoaderHeader.sequenceNumber]: number;
|
|
1209
|
-
[LoaderHeader.reconnect]: boolean;
|
|
1210
|
-
[LoaderHeader.version]: string | undefined;
|
|
1211
|
-
}
|
|
1025
|
+
/* Excluded from this release type: ILoaderHeader */
|
|
1212
1026
|
|
|
1213
1027
|
/**
|
|
1214
|
-
* @
|
|
1028
|
+
* @alpha
|
|
1215
1029
|
*/
|
|
1216
1030
|
export declare type ILoaderOptions = {
|
|
1217
1031
|
[key in string | number]: any;
|
|
@@ -1240,58 +1054,35 @@ export declare type ILoaderOptions = {
|
|
|
1240
1054
|
maxClientLeaveWaitTime?: number;
|
|
1241
1055
|
};
|
|
1242
1056
|
|
|
1243
|
-
|
|
1244
|
-
* @deprecated 0.48, This API will be removed in 0.50
|
|
1245
|
-
* No replacement since it is not expected anyone will depend on this outside container-loader
|
|
1246
|
-
* See {@link https://github.com/microsoft/FluidFramework/issues/9711} for context.
|
|
1247
|
-
* @public
|
|
1248
|
-
*/
|
|
1249
|
-
export declare interface IPendingLocalState {
|
|
1250
|
-
url: string;
|
|
1251
|
-
pendingRuntimeState: unknown;
|
|
1252
|
-
}
|
|
1057
|
+
/* Excluded from this release type: IPendingLocalState */
|
|
1253
1058
|
|
|
1254
1059
|
/**
|
|
1255
|
-
* @
|
|
1060
|
+
* @alpha
|
|
1256
1061
|
*/
|
|
1257
1062
|
export declare interface IProvideFluidCodeDetailsComparer {
|
|
1258
1063
|
readonly IFluidCodeDetailsComparer: IFluidCodeDetailsComparer;
|
|
1259
1064
|
}
|
|
1260
1065
|
|
|
1261
1066
|
/**
|
|
1262
|
-
* @
|
|
1067
|
+
* @alpha
|
|
1263
1068
|
*/
|
|
1264
1069
|
export declare interface IProvideLoader {
|
|
1265
1070
|
readonly ILoader: ILoader;
|
|
1266
1071
|
}
|
|
1267
1072
|
|
|
1268
1073
|
/**
|
|
1269
|
-
* @
|
|
1074
|
+
* @alpha
|
|
1270
1075
|
*/
|
|
1271
1076
|
export declare interface IProvideRuntimeFactory {
|
|
1272
1077
|
readonly IRuntimeFactory: IRuntimeFactory;
|
|
1273
1078
|
}
|
|
1274
1079
|
|
|
1275
|
-
|
|
1276
|
-
* The interface returned from a IFluidCodeResolver which represents IFluidCodeDetails
|
|
1277
|
-
* that have been resolved and are ready to load
|
|
1278
|
-
* @public
|
|
1279
|
-
*/
|
|
1280
|
-
export declare interface IResolvedFluidCodeDetails extends IFluidCodeDetails {
|
|
1281
|
-
/**
|
|
1282
|
-
* A resolved version of the Fluid package. All Fluid browser file entries should be absolute urls.
|
|
1283
|
-
*/
|
|
1284
|
-
readonly resolvedPackage: Readonly<IFluidPackage>;
|
|
1285
|
-
/**
|
|
1286
|
-
* If not undefined, this id will be used to cache the entry point for the code package
|
|
1287
|
-
*/
|
|
1288
|
-
readonly resolvedPackageCacheId: string | undefined;
|
|
1289
|
-
}
|
|
1080
|
+
/* Excluded from this release type: IResolvedFluidCodeDetails */
|
|
1290
1081
|
|
|
1291
1082
|
/**
|
|
1292
1083
|
* The IRuntime represents an instantiation of a code package within a Container.
|
|
1293
1084
|
* Primarily held by the ContainerContext to be able to interact with the running instance of the Container.
|
|
1294
|
-
* @
|
|
1085
|
+
* @alpha
|
|
1295
1086
|
*/
|
|
1296
1087
|
export declare interface IRuntime extends IDisposable {
|
|
1297
1088
|
/**
|
|
@@ -1326,8 +1117,6 @@ export declare interface IRuntime extends IDisposable {
|
|
|
1326
1117
|
setAttachState(attachState: AttachState.Attaching | AttachState.Attached): void;
|
|
1327
1118
|
/**
|
|
1328
1119
|
* Get pending local state in a serializable format to be given back to a newly loaded container
|
|
1329
|
-
* @alpha
|
|
1330
|
-
* {@link https://github.com/microsoft/FluidFramework/packages/tree/main/loader/container-loader/closeAndGetPendingLocalState.md}
|
|
1331
1120
|
*/
|
|
1332
1121
|
getPendingLocalState(props?: IGetPendingLocalStateProps): unknown;
|
|
1333
1122
|
/**
|
|
@@ -1351,7 +1140,7 @@ export declare interface IRuntime extends IDisposable {
|
|
|
1351
1140
|
}
|
|
1352
1141
|
|
|
1353
1142
|
/**
|
|
1354
|
-
* @
|
|
1143
|
+
* @alpha
|
|
1355
1144
|
*/
|
|
1356
1145
|
export declare const IRuntimeFactory: keyof IProvideRuntimeFactory;
|
|
1357
1146
|
|
|
@@ -1360,7 +1149,7 @@ export declare const IRuntimeFactory: keyof IProvideRuntimeFactory;
|
|
|
1360
1149
|
*
|
|
1361
1150
|
* Provides the entry point for the ContainerContext to load the proper IRuntime
|
|
1362
1151
|
* to start up the running instance of the Container.
|
|
1363
|
-
* @
|
|
1152
|
+
* @alpha
|
|
1364
1153
|
*/
|
|
1365
1154
|
export declare interface IRuntimeFactory extends IProvideRuntimeFactory {
|
|
1366
1155
|
/**
|
|
@@ -1373,32 +1162,18 @@ export declare interface IRuntimeFactory extends IProvideRuntimeFactory {
|
|
|
1373
1162
|
instantiateRuntime(context: IContainerContext, existing: boolean): Promise<IRuntime>;
|
|
1374
1163
|
}
|
|
1375
1164
|
|
|
1376
|
-
|
|
1377
|
-
* Determines if any object is an IFluidBrowserPackage
|
|
1378
|
-
* @param maybePkg - The object to check for compatibility with IFluidBrowserPackage
|
|
1379
|
-
* @public
|
|
1380
|
-
*/
|
|
1381
|
-
export declare const isFluidBrowserPackage: (maybePkg: unknown) => maybePkg is Readonly<IFluidBrowserPackage>;
|
|
1165
|
+
/* Excluded from this release type: isFluidBrowserPackage */
|
|
1382
1166
|
|
|
1383
|
-
|
|
1384
|
-
* Determines if any object is an IFluidCodeDetails
|
|
1385
|
-
* @public
|
|
1386
|
-
*/
|
|
1387
|
-
export declare const isFluidCodeDetails: (details: unknown) => details is Readonly<IFluidCodeDetails>;
|
|
1167
|
+
/* Excluded from this release type: isFluidCodeDetails */
|
|
1388
1168
|
|
|
1389
|
-
|
|
1390
|
-
* Check if the package.json defines a Fluid package
|
|
1391
|
-
* @param pkg - the package json data to check if it is a Fluid package.
|
|
1392
|
-
* @public
|
|
1393
|
-
*/
|
|
1394
|
-
export declare const isFluidPackage: (pkg: unknown) => pkg is Readonly<IFluidPackage>;
|
|
1169
|
+
/* Excluded from this release type: isFluidPackage */
|
|
1395
1170
|
|
|
1396
1171
|
/**
|
|
1397
1172
|
* This is used when we rehydrate a container from the snapshot. Here we put the blob contents
|
|
1398
1173
|
* in separate property: {@link ISnapshotTreeWithBlobContents.blobsContents}.
|
|
1399
1174
|
*
|
|
1400
1175
|
* @remarks This is used as the `ContainerContext`'s base snapshot when attaching.
|
|
1401
|
-
* @
|
|
1176
|
+
* @alpha
|
|
1402
1177
|
*/
|
|
1403
1178
|
export declare interface ISnapshotTreeWithBlobContents extends ISnapshotTree {
|
|
1404
1179
|
blobsContents: {
|
|
@@ -1409,42 +1184,14 @@ export declare interface ISnapshotTreeWithBlobContents extends ISnapshotTree {
|
|
|
1409
1184
|
};
|
|
1410
1185
|
}
|
|
1411
1186
|
|
|
1412
|
-
|
|
1187
|
+
/* Excluded from this release type: IThrottlingWarning */
|
|
1413
1188
|
|
|
1414
|
-
|
|
1189
|
+
/* Excluded from this release type: IUsageError */
|
|
1415
1190
|
|
|
1416
|
-
|
|
1417
|
-
* Accepted header keys for requests coming to the Loader
|
|
1418
|
-
* @public
|
|
1419
|
-
*/
|
|
1420
|
-
export declare enum LoaderHeader {
|
|
1421
|
-
/**
|
|
1422
|
-
* @deprecated This header has been deprecated and will be removed in a future release
|
|
1423
|
-
* Override the Loader's default caching behavior for this container.
|
|
1424
|
-
*/
|
|
1425
|
-
cache = "fluid-cache",
|
|
1426
|
-
clientDetails = "fluid-client-details",
|
|
1427
|
-
/**
|
|
1428
|
-
* Start the container in a paused, unconnected state. Defaults to false
|
|
1429
|
-
*/
|
|
1430
|
-
loadMode = "loadMode",
|
|
1431
|
-
reconnect = "fluid-reconnect",
|
|
1432
|
-
/**
|
|
1433
|
-
* Loads the container to at least the specified sequence number.
|
|
1434
|
-
* If not defined, behavior will fall back to `IContainerLoadMode.opsBeforeReturn`.
|
|
1435
|
-
*/
|
|
1436
|
-
sequenceNumber = "fluid-sequence-number",
|
|
1437
|
-
/**
|
|
1438
|
-
* One of the following:
|
|
1439
|
-
* null or "null": use ops, no snapshots
|
|
1440
|
-
* undefined: fetch latest snapshot
|
|
1441
|
-
* otherwise, version sha to load snapshot
|
|
1442
|
-
*/
|
|
1443
|
-
version = "version"
|
|
1444
|
-
}
|
|
1191
|
+
/* Excluded from this release type: LoaderHeader */
|
|
1445
1192
|
|
|
1446
1193
|
/**
|
|
1447
|
-
* @
|
|
1194
|
+
* @alpha
|
|
1448
1195
|
*/
|
|
1449
1196
|
export declare type ReadOnlyInfo = {
|
|
1450
1197
|
readonly readonly: false | undefined;
|