@fluidframework/driver-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.
Files changed (39) hide show
  1. package/api-extractor-lint.json +13 -0
  2. package/api-extractor.json +0 -4
  3. package/api-report/driver-definitions.api.md +33 -33
  4. package/dist/driver-definitions-alpha.d.ts +51 -158
  5. package/dist/driver-definitions-beta.d.ts +73 -621
  6. package/dist/driver-definitions-public.d.ts +73 -621
  7. package/dist/driver-definitions-untrimmed.d.ts +71 -0
  8. package/dist/driverError.d.ts +23 -0
  9. package/dist/driverError.d.ts.map +1 -1
  10. package/dist/driverError.js +2 -0
  11. package/dist/driverError.js.map +1 -1
  12. package/dist/storage.d.ts +36 -0
  13. package/dist/storage.d.ts.map +1 -1
  14. package/dist/storage.js +6 -0
  15. package/dist/storage.js.map +1 -1
  16. package/dist/urlResolver.d.ts +12 -0
  17. package/dist/urlResolver.d.ts.map +1 -1
  18. package/dist/urlResolver.js +1 -0
  19. package/dist/urlResolver.js.map +1 -1
  20. package/lib/driver-definitions-alpha.d.ts +51 -158
  21. package/lib/driver-definitions-beta.d.ts +73 -621
  22. package/lib/driver-definitions-public.d.ts +73 -621
  23. package/lib/driver-definitions-untrimmed.d.ts +71 -0
  24. package/lib/driverError.d.ts +23 -0
  25. package/lib/driverError.d.ts.map +1 -1
  26. package/lib/driverError.js +2 -0
  27. package/lib/driverError.js.map +1 -1
  28. package/lib/storage.d.ts +36 -0
  29. package/lib/storage.d.ts.map +1 -1
  30. package/lib/storage.js +6 -0
  31. package/lib/storage.js.map +1 -1
  32. package/lib/urlResolver.d.ts +12 -0
  33. package/lib/urlResolver.d.ts.map +1 -1
  34. package/lib/urlResolver.js +1 -0
  35. package/lib/urlResolver.js.map +1 -1
  36. package/package.json +4 -3
  37. package/src/driverError.ts +23 -0
  38. package/src/storage.ts +36 -0
  39. package/src/urlResolver.ts +12 -0
@@ -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
+ }
@@ -3,10 +3,6 @@
3
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
8
- "logLevel": "none"
9
- },
10
6
  // TODO: Add missing documentation and remove this rule override
11
7
  "ae-undocumented": {
12
8
  "logLevel": "none"
@@ -24,10 +24,10 @@ import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
24
24
  import { ITokenClaims } from '@fluidframework/protocol-definitions';
25
25
  import { IVersion } from '@fluidframework/protocol-definitions';
26
26
 
27
- // @public (undocumented)
27
+ // @internal (undocumented)
28
28
  export type DriverError = IThrottlingWarning | IGenericNetworkError | IAuthorizationError | ILocationRedirectionError | IDriverBasicError;
29
29
 
30
- // @public @deprecated
30
+ // @alpha @deprecated
31
31
  export enum DriverErrorType {
32
32
  authorizationError = "authorizationError",
33
33
  deltaStreamConnectionForbidden = "deltaStreamConnectionForbidden",
@@ -50,7 +50,7 @@ export enum DriverErrorType {
50
50
  writeError = "writeError"
51
51
  }
52
52
 
53
- // @public
53
+ // @internal
54
54
  export const DriverErrorTypes: {
55
55
  readonly genericNetworkError: "genericNetworkError";
56
56
  readonly authorizationError: "authorizationError";
@@ -72,10 +72,10 @@ export const DriverErrorTypes: {
72
72
  readonly usageError: "usageError";
73
73
  };
74
74
 
75
- // @public (undocumented)
75
+ // @internal (undocumented)
76
76
  export type DriverErrorTypes = (typeof DriverErrorTypes)[keyof typeof DriverErrorTypes];
77
77
 
78
- // @public
78
+ // @internal
79
79
  export enum DriverHeader {
80
80
  // (undocumented)
81
81
  createNew = "createNew",
@@ -83,13 +83,13 @@ export enum DriverHeader {
83
83
  summarizingClient = "fluid-client-summarizer"
84
84
  }
85
85
 
86
- // @public
86
+ // @internal
87
87
  export interface DriverPreCheckInfo {
88
88
  codeDetailsHint?: string;
89
89
  criticalBootDomains?: string[];
90
90
  }
91
91
 
92
- // @public (undocumented)
92
+ // @alpha (undocumented)
93
93
  export enum FetchSource {
94
94
  // (undocumented)
95
95
  default = "default",
@@ -97,16 +97,16 @@ export enum FetchSource {
97
97
  noCache = "noCache"
98
98
  }
99
99
 
100
- // @public (undocumented)
100
+ // @alpha (undocumented)
101
101
  export type FiveDaysMs = 432000000;
102
102
 
103
- // @public
103
+ // @alpha
104
104
  export interface IAnyDriverError extends Omit<IDriverErrorBase, "errorType"> {
105
105
  // (undocumented)
106
106
  readonly errorType: string;
107
107
  }
108
108
 
109
- // @public (undocumented)
109
+ // @internal (undocumented)
110
110
  export interface IAuthorizationError extends IDriverErrorBase {
111
111
  // (undocumented)
112
112
  readonly claims?: string;
@@ -116,25 +116,25 @@ export interface IAuthorizationError extends IDriverErrorBase {
116
116
  readonly tenantId?: string;
117
117
  }
118
118
 
119
- // @public
119
+ // @alpha
120
120
  export interface IContainerPackageInfo {
121
121
  name: string;
122
122
  }
123
123
 
124
- // @public (undocumented)
124
+ // @internal (undocumented)
125
125
  export interface IDeltasFetchResult {
126
126
  messages: ISequencedDocumentMessage[];
127
127
  partialResult: boolean;
128
128
  }
129
129
 
130
- // @public
130
+ // @internal
131
131
  export interface IDeltaStorageService {
132
132
  get(tenantId: string, id: string, from: number, // inclusive
133
133
  to: number, // exclusive
134
134
  fetchReason?: string): Promise<IDeltasFetchResult>;
135
135
  }
136
136
 
137
- // @public (undocumented)
137
+ // @alpha (undocumented)
138
138
  export interface IDocumentDeltaConnection extends IDisposable, IEventProvider<IDocumentDeltaConnectionEvents> {
139
139
  checkpointSequenceNumber?: number;
140
140
  claims: ITokenClaims;
@@ -151,7 +151,7 @@ export interface IDocumentDeltaConnection extends IDisposable, IEventProvider<ID
151
151
  version: string;
152
152
  }
153
153
 
154
- // @public (undocumented)
154
+ // @alpha (undocumented)
155
155
  export interface IDocumentDeltaConnectionEvents extends IErrorEvent {
156
156
  // (undocumented)
157
157
  (event: "nack", listener: (documentId: string, message: INack[]) => void): any;
@@ -167,12 +167,12 @@ export interface IDocumentDeltaConnectionEvents extends IErrorEvent {
167
167
  (event: "error", listener: (error: any) => void): any;
168
168
  }
169
169
 
170
- // @public
170
+ // @alpha
171
171
  export interface IDocumentDeltaStorageService {
172
172
  fetchMessages(from: number, to: number | undefined, abortSignal?: AbortSignal, cachedOnly?: boolean, fetchReason?: string): IStream<ISequencedDocumentMessage[]>;
173
173
  }
174
174
 
175
- // @public (undocumented)
175
+ // @alpha (undocumented)
176
176
  export interface IDocumentService {
177
177
  connectToDeltaStorage(): Promise<IDocumentDeltaStorageService>;
178
178
  connectToDeltaStream(client: IClient): Promise<IDocumentDeltaConnection>;
@@ -183,19 +183,19 @@ export interface IDocumentService {
183
183
  resolvedUrl: IResolvedUrl;
184
184
  }
185
185
 
186
- // @public (undocumented)
186
+ // @alpha (undocumented)
187
187
  export interface IDocumentServiceFactory {
188
188
  createContainer(createNewSummary: ISummaryTree | undefined, createNewResolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
189
189
  createDocumentService(resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
190
190
  }
191
191
 
192
- // @public (undocumented)
192
+ // @alpha (undocumented)
193
193
  export interface IDocumentServicePolicies {
194
194
  readonly storageOnly?: boolean;
195
195
  readonly summarizeProtocolTree?: boolean;
196
196
  }
197
197
 
198
- // @public
198
+ // @alpha
199
199
  export interface IDocumentStorageService extends Partial<IDisposable> {
200
200
  createBlob(file: ArrayBufferLike): Promise<ICreateBlobResponse>;
201
201
  downloadSummary(handle: ISummaryHandle): Promise<ISummaryTree>;
@@ -208,13 +208,13 @@ export interface IDocumentStorageService extends Partial<IDisposable> {
208
208
  uploadSummaryWithContext(summary: ISummaryTree, context: ISummaryContext): Promise<string>;
209
209
  }
210
210
 
211
- // @public
211
+ // @alpha
212
212
  export interface IDocumentStorageServicePolicies {
213
213
  readonly caching?: LoaderCachingPolicy;
214
214
  readonly maximumCacheDurationMs?: FiveDaysMs;
215
215
  }
216
216
 
217
- // @public
217
+ // @internal
218
218
  export interface IDriverBasicError extends IDriverErrorBase {
219
219
  // (undocumented)
220
220
  readonly errorType: DriverErrorType.genericError | DriverErrorType.fileNotFoundOrAccessDeniedError | DriverErrorType.offlineError | DriverErrorType.unsupportedClientProtocolVersion | DriverErrorType.writeError | DriverErrorType.fetchFailure | DriverErrorType.fetchTokenError | DriverErrorType.incorrectServerResponse | DriverErrorType.fileOverwrittenInStorage | DriverErrorType.fluidInvalidSchema | DriverErrorType.usageError | DriverErrorType.fileIsLocked | DriverErrorType.outOfStorageError;
@@ -222,7 +222,7 @@ export interface IDriverBasicError extends IDriverErrorBase {
222
222
  readonly statusCode?: number;
223
223
  }
224
224
 
225
- // @public
225
+ // @alpha
226
226
  export interface IDriverErrorBase {
227
227
  canRetry: boolean;
228
228
  endpointReached?: boolean;
@@ -231,7 +231,7 @@ export interface IDriverErrorBase {
231
231
  online?: string;
232
232
  }
233
233
 
234
- // @public (undocumented)
234
+ // @internal (undocumented)
235
235
  export interface IDriverHeader {
236
236
  // (undocumented)
237
237
  [DriverHeader.summarizingClient]: boolean;
@@ -239,7 +239,7 @@ export interface IDriverHeader {
239
239
  [DriverHeader.createNew]: any;
240
240
  }
241
241
 
242
- // @public (undocumented)
242
+ // @internal (undocumented)
243
243
  export interface IGenericNetworkError extends IDriverErrorBase {
244
244
  // (undocumented)
245
245
  readonly errorType: DriverErrorType.genericNetworkError;
@@ -247,7 +247,7 @@ export interface IGenericNetworkError extends IDriverErrorBase {
247
247
  readonly statusCode?: number;
248
248
  }
249
249
 
250
- // @public (undocumented)
250
+ // @internal (undocumented)
251
251
  export interface ILocationRedirectionError extends IDriverErrorBase {
252
252
  // (undocumented)
253
253
  readonly errorType: DriverErrorType.locationRedirection;
@@ -255,7 +255,7 @@ export interface ILocationRedirectionError extends IDriverErrorBase {
255
255
  readonly redirectUrl: IResolvedUrl;
256
256
  }
257
257
 
258
- // @public (undocumented)
258
+ // @alpha (undocumented)
259
259
  export interface IResolvedUrl {
260
260
  // (undocumented)
261
261
  endpoints: {
@@ -272,13 +272,13 @@ export interface IResolvedUrl {
272
272
  url: string;
273
273
  }
274
274
 
275
- // @public
275
+ // @alpha
276
276
  export interface IStream<T> {
277
277
  // (undocumented)
278
278
  read(): Promise<IStreamResult<T>>;
279
279
  }
280
280
 
281
- // @public (undocumented)
281
+ // @alpha (undocumented)
282
282
  export type IStreamResult<T> = {
283
283
  done: true;
284
284
  } | {
@@ -286,7 +286,7 @@ export type IStreamResult<T> = {
286
286
  value: T;
287
287
  };
288
288
 
289
- // @public
289
+ // @alpha
290
290
  export interface ISummaryContext {
291
291
  readonly ackHandle: string | undefined;
292
292
  readonly proposalHandle: string | undefined;
@@ -294,7 +294,7 @@ export interface ISummaryContext {
294
294
  readonly referenceSequenceNumber: number;
295
295
  }
296
296
 
297
- // @public (undocumented)
297
+ // @internal (undocumented)
298
298
  export interface IThrottlingWarning extends IDriverErrorBase {
299
299
  // (undocumented)
300
300
  readonly errorType: DriverErrorType.throttlingError;
@@ -302,14 +302,14 @@ export interface IThrottlingWarning extends IDriverErrorBase {
302
302
  readonly retryAfterSeconds: number;
303
303
  }
304
304
 
305
- // @public (undocumented)
305
+ // @alpha (undocumented)
306
306
  export interface IUrlResolver {
307
307
  getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string, packageInfoSource?: IContainerPackageInfo): Promise<string>;
308
308
  // (undocumented)
309
309
  resolve(request: IRequest): Promise<IResolvedUrl | undefined>;
310
310
  }
311
311
 
312
- // @public (undocumented)
312
+ // @alpha (undocumented)
313
313
  export enum LoaderCachingPolicy {
314
314
  NoCaching = 0,
315
315
  Prefetch = 1
@@ -18,13 +18,14 @@ import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
18
18
  import { ITokenClaims } from '@fluidframework/protocol-definitions';
19
19
  import { IVersion } from '@fluidframework/protocol-definitions';
20
20
 
21
- export declare type DriverError = IThrottlingWarning | IGenericNetworkError | IAuthorizationError | ILocationRedirectionError | IDriverBasicError;
21
+ /* Excluded from this release type: DriverError */
22
22
 
23
23
  /**
24
24
  * Driver Error types
25
25
  * Lists types that are likely to be used by all drivers
26
26
  *
27
27
  * @deprecated Use {@link (DriverErrorTypes:type)} instead.
28
+ * @alpha
28
29
  */
29
30
  export declare enum DriverErrorType {
30
31
  /**
@@ -110,114 +111,23 @@ export declare enum DriverErrorType {
110
111
  outOfStorageError = "outOfStorageError"
111
112
  }
112
113
 
113
- /**
114
- * Different error types the Driver may report out to the Host.
115
- */
116
- export declare const DriverErrorTypes: {
117
- /**
118
- * Some non-categorized (below) networking error
119
- * Include errors like fatal server error (usually 500).
120
- */
121
- readonly genericNetworkError: "genericNetworkError";
122
- /**
123
- * Access denied - user does not have enough privileges to open a file, or continue to operate on a file
124
- */
125
- readonly authorizationError: "authorizationError";
126
- /**
127
- * File not found, or file deleted during session
128
- */
129
- readonly fileNotFoundOrAccessDeniedError: "fileNotFoundOrAccessDeniedError";
130
- /**
131
- * We can not reach server due to computer being offline.
132
- */
133
- readonly offlineError: "offlineError";
134
- readonly unsupportedClientProtocolVersion: "unsupportedClientProtocolVersion";
135
- /**
136
- * User does not have write permissions to a file, but is changing content of a file.
137
- * That might be indication of some data store error - data stores should not generate ops in readonly mode.
138
- */
139
- readonly writeError: "writeError";
140
- /**
141
- * A generic fetch failure that indicates we were not able to get a response from the server.
142
- * This may be due to the client being offline (though, if we are able to detect offline state it will be
143
- * logged as an offlineError instead). Other possibilities could be DNS errors, malformed fetch request,
144
- * CSP violation, etc.
145
- */
146
- readonly fetchFailure: "fetchFailure";
147
- /**
148
- * This error occurs when token provider fails to fetch orderer token
149
- */
150
- readonly fetchTokenError: "fetchTokenError";
151
- /**
152
- * Unexpected response from server. Either JSON is malformed, or some required properties are missing
153
- */
154
- readonly incorrectServerResponse: "incorrectServerResponse";
155
- /**
156
- * This error occurs when the file is modified externally (not through Fluid protocol) in storage.
157
- * It will occur in cases where client has some state or cache that is based on old content (identity) of a file,
158
- * and storage / driver / loader detects such mismatch.
159
- * When it's hit, client needs to forget all the knowledge about this file and start over.
160
- */
161
- readonly fileOverwrittenInStorage: "fileOverwrittenInStorage";
162
- /**
163
- * The document is read-only and delta stream connection is forbidden.
164
- */
165
- readonly deltaStreamConnectionForbidden: "deltaStreamConnectionForbidden";
166
- /**
167
- * The location of file/container can change on server. So if the file location moves and we try to access the old
168
- * location, then this error is thrown to let the client know about the new location info.
169
- */
170
- readonly locationRedirection: "locationRedirection";
171
- /**
172
- * When a file is not a Fluid file, but has Fluid extension such as ".note",
173
- * server won't be able to open it and will return this error. The innerMostErrorCode will be
174
- * "fluidInvalidSchema"
175
- */
176
- readonly fluidInvalidSchema: "fluidInvalidSchema";
177
- /**
178
- * File is locked for read/write by storage, e.g. whole collection is locked and access denied.
179
- */
180
- readonly fileIsLocked: "fileIsLocked";
181
- /**
182
- * Storage is out of space
183
- */
184
- readonly outOfStorageError: "outOfStorageError";
185
- readonly genericError: "genericError";
186
- readonly throttlingError: "throttlingError";
187
- readonly usageError: "usageError";
188
- };
114
+ /* Excluded from this release type: DriverErrorTypes */
189
115
 
190
- export declare type DriverErrorTypes = (typeof DriverErrorTypes)[keyof typeof DriverErrorTypes];
116
+ /* Excluded from this release type: DriverHeader */
191
117
 
192
- /**
193
- * Additional key in the loader request header
194
- */
195
- export declare enum DriverHeader {
196
- summarizingClient = "fluid-client-summarizer",
197
- createNew = "createNew"
198
- }
118
+ /* Excluded from this release type: DriverPreCheckInfo */
199
119
 
200
120
  /**
201
- * Information that can be returned by a lightweight, seperately exported driver function. Used to preanalyze a URL
202
- * for driver compatibility and preload information.
121
+ * @alpha
203
122
  */
204
- export declare interface DriverPreCheckInfo {
205
- /**
206
- * A code details hint that can potentially be used to prefetch container code prior to having a snapshot.
207
- */
208
- codeDetailsHint?: string;
209
- /**
210
- * Domains that will be connected to on the critical boot path. Hosts can choose to preconnect to these for
211
- * improved performance.
212
- */
213
- criticalBootDomains?: string[];
214
- }
215
-
216
123
  export declare enum FetchSource {
217
124
  default = "default",
218
125
  noCache = "noCache"
219
126
  }
220
127
 
128
+ /**
129
+ * @alpha
130
+ */
221
131
  export declare type FiveDaysMs = 432000000;
222
132
 
223
133
  /**
@@ -228,19 +138,17 @@ export declare type FiveDaysMs = 432000000;
228
138
  * "Any" in the interface name is a nod to the fact that errorType has lost its type constraint.
229
139
  * It will be either DriverErrorType or the specific driver's specialized error type enum,
230
140
  * but we can't reference a specific driver's error type enum in this code.
141
+ * @alpha
231
142
  */
232
143
  export declare interface IAnyDriverError extends Omit<IDriverErrorBase, "errorType"> {
233
144
  readonly errorType: string;
234
145
  }
235
146
 
236
- export declare interface IAuthorizationError extends IDriverErrorBase {
237
- readonly errorType: DriverErrorType.authorizationError;
238
- readonly claims?: string;
239
- readonly tenantId?: string;
240
- }
147
+ /* Excluded from this release type: IAuthorizationError */
241
148
 
242
149
  /**
243
150
  * Container package info handed off to resolver.
151
+ * @alpha
244
152
  */
245
153
  export declare interface IContainerPackageInfo {
246
154
  /**
@@ -249,39 +157,13 @@ export declare interface IContainerPackageInfo {
249
157
  name: string;
250
158
  }
251
159
 
252
- export declare interface IDeltasFetchResult {
253
- /**
254
- * Sequential set of messages starting from 'from' sequence number.
255
- * May be partial result, i.e. not fulfill original request in full.
256
- */
257
- messages: ISequencedDocumentMessage[];
258
- /**
259
- * If true, storage only partially fulfilled request, but has more ops
260
- * If false, the request was fulfilled. If less ops were returned then
261
- * requested, then storage does not have more ops in this range.
262
- */
263
- partialResult: boolean;
264
- }
160
+ /* Excluded from this release type: IDeltasFetchResult */
161
+
162
+ /* Excluded from this release type: IDeltaStorageService */
265
163
 
266
164
  /**
267
- * Interface to provide access to stored deltas for a shared object
165
+ * @alpha
268
166
  */
269
- export declare interface IDeltaStorageService {
270
- /**
271
- * Retrieves all the delta operations within the inclusive sequence number range
272
- * @param tenantId - Id of the tenant.
273
- * @param id - document id.
274
- * @param from - first op to retrieve (inclusive)
275
- * @param to - first op not to retrieve (exclusive end)
276
- * @param fetchReason - Reason for fetching the messages, for logging.
277
- * Example, gap between seq number of Op on wire and known seq number.
278
- * It can be logged by spo which could help in debugging sessions if any issue occurs.
279
- */
280
- get(tenantId: string, id: string, from: number, // inclusive
281
- to: number, // exclusive
282
- fetchReason?: string): Promise<IDeltasFetchResult>;
283
- }
284
-
285
167
  export declare interface IDocumentDeltaConnection extends IDisposable, IEventProvider<IDocumentDeltaConnectionEvents> {
286
168
  /**
287
169
  * ClientID for the connection
@@ -344,6 +226,9 @@ export declare interface IDocumentDeltaConnection extends IDisposable, IEventPro
344
226
  submitSignal(content: any, targetClientId?: string): void;
345
227
  }
346
228
 
229
+ /**
230
+ * @alpha
231
+ */
347
232
  export declare interface IDocumentDeltaConnectionEvents extends IErrorEvent {
348
233
  (event: "nack", listener: (documentId: string, message: INack[]) => void): any;
349
234
  (event: "disconnect", listener: (reason: IAnyDriverError) => void): any;
@@ -355,6 +240,7 @@ export declare interface IDocumentDeltaConnectionEvents extends IErrorEvent {
355
240
 
356
241
  /**
357
242
  * Interface to provide access to stored deltas for a shared object
243
+ * @alpha
358
244
  */
359
245
  export declare interface IDocumentDeltaStorageService {
360
246
  /**
@@ -370,6 +256,9 @@ export declare interface IDocumentDeltaStorageService {
370
256
  fetchMessages(from: number, to: number | undefined, abortSignal?: AbortSignal, cachedOnly?: boolean, fetchReason?: string): IStream<ISequencedDocumentMessage[]>;
371
257
  }
372
258
 
259
+ /**
260
+ * @alpha
261
+ */
373
262
  export declare interface IDocumentService {
374
263
  resolvedUrl: IResolvedUrl;
375
264
  /**
@@ -401,6 +290,9 @@ export declare interface IDocumentService {
401
290
  dispose(error?: any): void;
402
291
  }
403
292
 
293
+ /**
294
+ * @alpha
295
+ */
404
296
  export declare interface IDocumentServiceFactory {
405
297
  /**
406
298
  * Creates the document service after extracting different endpoints URLs from a resolved URL.
@@ -428,6 +320,9 @@ export declare interface IDocumentServiceFactory {
428
320
  createContainer(createNewSummary: ISummaryTree | undefined, createNewResolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
429
321
  }
430
322
 
323
+ /**
324
+ * @alpha
325
+ */
431
326
  export declare interface IDocumentServicePolicies {
432
327
  /**
433
328
  * Do not connect to delta stream
@@ -441,6 +336,7 @@ export declare interface IDocumentServicePolicies {
441
336
 
442
337
  /**
443
338
  * Interface to provide access to snapshots saved for a shared object
339
+ * @alpha
444
340
  */
445
341
  export declare interface IDocumentStorageService extends Partial<IDisposable> {
446
342
  repositoryUrl: string;
@@ -492,6 +388,7 @@ export declare interface IDocumentStorageService extends Partial<IDisposable> {
492
388
  /**
493
389
  * Policies describing attributes or characteristics of the driver's storage service,
494
390
  * to direct how other components interact with the driver
391
+ * @alpha
495
392
  */
496
393
  export declare interface IDocumentStorageServicePolicies {
497
394
  /**
@@ -509,17 +406,11 @@ export declare interface IDocumentStorageServicePolicies {
509
406
  readonly maximumCacheDurationMs?: FiveDaysMs;
510
407
  }
511
408
 
512
- /**
513
- * Having this uber interface without types that have their own interfaces
514
- * allows compiler to differentiate interfaces based on error type
515
- */
516
- export declare interface IDriverBasicError extends IDriverErrorBase {
517
- readonly errorType: DriverErrorType.genericError | DriverErrorType.fileNotFoundOrAccessDeniedError | DriverErrorType.offlineError | DriverErrorType.unsupportedClientProtocolVersion | DriverErrorType.writeError | DriverErrorType.fetchFailure | DriverErrorType.fetchTokenError | DriverErrorType.incorrectServerResponse | DriverErrorType.fileOverwrittenInStorage | DriverErrorType.fluidInvalidSchema | DriverErrorType.usageError | DriverErrorType.fileIsLocked | DriverErrorType.outOfStorageError;
518
- readonly statusCode?: number;
519
- }
409
+ /* Excluded from this release type: IDriverBasicError */
520
410
 
521
411
  /**
522
412
  * Base interface for all errors and warnings
413
+ * @alpha
523
414
  */
524
415
  export declare interface IDriverErrorBase {
525
416
  /**
@@ -547,21 +438,15 @@ export declare interface IDriverErrorBase {
547
438
  endpointReached?: boolean;
548
439
  }
549
440
 
550
- export declare interface IDriverHeader {
551
- [DriverHeader.summarizingClient]: boolean;
552
- [DriverHeader.createNew]: any;
553
- }
441
+ /* Excluded from this release type: IDriverHeader */
554
442
 
555
- export declare interface IGenericNetworkError extends IDriverErrorBase {
556
- readonly errorType: DriverErrorType.genericNetworkError;
557
- readonly statusCode?: number;
558
- }
443
+ /* Excluded from this release type: IGenericNetworkError */
559
444
 
560
- export declare interface ILocationRedirectionError extends IDriverErrorBase {
561
- readonly errorType: DriverErrorType.locationRedirection;
562
- readonly redirectUrl: IResolvedUrl;
563
- }
445
+ /* Excluded from this release type: ILocationRedirectionError */
564
446
 
447
+ /**
448
+ * @alpha
449
+ */
565
450
  export declare interface IResolvedUrl {
566
451
  type: "fluid";
567
452
  /**
@@ -579,11 +464,15 @@ export declare interface IResolvedUrl {
579
464
 
580
465
  /**
581
466
  * Read interface for the Queue
467
+ * @alpha
582
468
  */
583
469
  export declare interface IStream<T> {
584
470
  read(): Promise<IStreamResult<T>>;
585
471
  }
586
472
 
473
+ /**
474
+ * @alpha
475
+ */
587
476
  export declare type IStreamResult<T> = {
588
477
  done: true;
589
478
  } | {
@@ -594,6 +483,7 @@ export declare type IStreamResult<T> = {
594
483
  /**
595
484
  * Context for uploading a summary to storage.
596
485
  * Indicates the previously acked summary.
486
+ * @alpha
597
487
  */
598
488
  export declare interface ISummaryContext {
599
489
  /**
@@ -607,11 +497,11 @@ export declare interface ISummaryContext {
607
497
  readonly referenceSequenceNumber: number;
608
498
  }
609
499
 
610
- export declare interface IThrottlingWarning extends IDriverErrorBase {
611
- readonly errorType: DriverErrorType.throttlingError;
612
- readonly retryAfterSeconds: number;
613
- }
500
+ /* Excluded from this release type: IThrottlingWarning */
614
501
 
502
+ /**
503
+ * @alpha
504
+ */
615
505
  export declare interface IUrlResolver {
616
506
  resolve(request: IRequest): Promise<IResolvedUrl | undefined>;
617
507
  /**
@@ -624,6 +514,9 @@ export declare interface IUrlResolver {
624
514
  getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string, packageInfoSource?: IContainerPackageInfo): Promise<string>;
625
515
  }
626
516
 
517
+ /**
518
+ * @alpha
519
+ */
627
520
  export declare enum LoaderCachingPolicy {
628
521
  /**
629
522
  * The loader should not implement any prefetching or caching policy.