@fluidframework/driver-utils 2.0.0-internal.6.4.0 → 2.0.0-internal.7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/api-extractor.json +12 -1
  3. package/api-report/driver-utils.api.md +393 -0
  4. package/dist/adapters/compression/compressionTypes.js +1 -1
  5. package/dist/adapters/compression/compressionTypes.js.map +1 -1
  6. package/dist/adapters/compression/documentServiceCompressionAdapter.d.ts.map +1 -1
  7. package/dist/adapters/compression/documentServiceCompressionAdapter.js.map +1 -1
  8. package/dist/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.js.map +1 -1
  9. package/dist/blob.d.ts.map +1 -1
  10. package/dist/blob.js.map +1 -1
  11. package/dist/documentStorageServiceProxy.js +3 -3
  12. package/dist/documentStorageServiceProxy.js.map +1 -1
  13. package/dist/driver-utils-alpha.d.ts +467 -0
  14. package/dist/driver-utils-beta.d.ts +467 -0
  15. package/dist/driver-utils-public.d.ts +467 -0
  16. package/dist/driver-utils.d.ts +481 -0
  17. package/dist/messageRecognition.js +1 -1
  18. package/dist/messageRecognition.js.map +1 -1
  19. package/dist/network.d.ts +1 -1
  20. package/dist/network.d.ts.map +1 -1
  21. package/dist/network.js +1 -1
  22. package/dist/network.js.map +1 -1
  23. package/dist/packageVersion.d.ts +1 -1
  24. package/dist/packageVersion.js +1 -1
  25. package/dist/packageVersion.js.map +1 -1
  26. package/dist/parallelRequests.js +6 -6
  27. package/dist/parallelRequests.js.map +1 -1
  28. package/dist/prefetchDocumentStorageService.d.ts +0 -1
  29. package/dist/prefetchDocumentStorageService.d.ts.map +1 -1
  30. package/dist/tsdoc-metadata.json +1 -1
  31. package/lib/adapters/compression/documentServiceCompressionAdapter.d.ts.map +1 -1
  32. package/lib/adapters/compression/documentServiceCompressionAdapter.js.map +1 -1
  33. package/lib/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.js.map +1 -1
  34. package/lib/blob.d.ts.map +1 -1
  35. package/lib/blob.js.map +1 -1
  36. package/lib/documentStorageServiceProxy.js +3 -3
  37. package/lib/documentStorageServiceProxy.js.map +1 -1
  38. package/lib/network.d.ts +1 -1
  39. package/lib/network.d.ts.map +1 -1
  40. package/lib/network.js.map +1 -1
  41. package/lib/packageVersion.d.ts +1 -1
  42. package/lib/packageVersion.js +1 -1
  43. package/lib/packageVersion.js.map +1 -1
  44. package/lib/parallelRequests.js +6 -6
  45. package/lib/parallelRequests.js.map +1 -1
  46. package/lib/prefetchDocumentStorageService.d.ts +0 -1
  47. package/lib/prefetchDocumentStorageService.d.ts.map +1 -1
  48. package/package.json +21 -21
  49. package/src/adapters/compression/documentServiceCompressionAdapter.ts +4 -1
  50. package/src/blob.ts +8 -2
  51. package/src/network.ts +15 -3
  52. package/src/packageVersion.ts +1 -1
@@ -0,0 +1,467 @@
1
+ import { FetchSource } from '@fluidframework/driver-definitions';
2
+ import { IAttachment } from '@fluidframework/protocol-definitions';
3
+ import { IAuthorizationError } from '@fluidframework/driver-definitions';
4
+ import { IBlob } from '@fluidframework/protocol-definitions';
5
+ import { ICommittedProposal } from '@fluidframework/protocol-definitions';
6
+ import { ICreateBlobResponse } from '@fluidframework/protocol-definitions';
7
+ import { IDeltasFetchResult } from '@fluidframework/driver-definitions';
8
+ import { IDocumentAttributes } from '@fluidframework/protocol-definitions';
9
+ import { IDocumentMessage } from '@fluidframework/protocol-definitions';
10
+ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
11
+ import { IDocumentStorageService } from '@fluidframework/driver-definitions';
12
+ import { IDocumentStorageServicePolicies } from '@fluidframework/driver-definitions';
13
+ import { IDriverErrorBase } from '@fluidframework/driver-definitions';
14
+ import { IFluidErrorBase } from '@fluidframework/telemetry-utils';
15
+ import { ILocationRedirectionError } from '@fluidframework/driver-definitions';
16
+ import { IRequest } from '@fluidframework/core-interfaces';
17
+ import { IResolvedUrl } from '@fluidframework/driver-definitions';
18
+ import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
19
+ import { ISnapshotTree } from '@fluidframework/protocol-definitions';
20
+ import { IStream } from '@fluidframework/driver-definitions';
21
+ import { IStreamResult } from '@fluidframework/driver-definitions';
22
+ import { ISummaryContext } from '@fluidframework/driver-definitions';
23
+ import { ISummaryHandle } from '@fluidframework/protocol-definitions';
24
+ import { ISummaryTree } from '@fluidframework/protocol-definitions';
25
+ import { ITelemetryErrorEvent } from '@fluidframework/core-interfaces';
26
+ import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
27
+ import { ITelemetryProperties } from '@fluidframework/core-interfaces';
28
+ import { IThrottlingWarning } from '@fluidframework/driver-definitions';
29
+ import { ITree } from '@fluidframework/protocol-definitions';
30
+ import { ITreeEntry } from '@fluidframework/protocol-definitions';
31
+ import { IUrlResolver } from '@fluidframework/driver-definitions';
32
+ import { IVersion } from '@fluidframework/protocol-definitions';
33
+ import { LoaderCachingPolicy } from '@fluidframework/driver-definitions';
34
+
35
+ /**
36
+ * This method optionally applies compression to the given document service factory. The compression
37
+ * must be enabled by setting the config to true or by passing a compression config object.
38
+ * @param documentServiceFactory - The document service factory to apply compression to.
39
+ * @param config - The compression configuration.
40
+ * @returns The document service factory possibly with compression applied.
41
+ */
42
+ export declare function applyStorageCompression(documentServiceFactory: IDocumentServiceFactory, config?: ICompressionStorageConfig | boolean): IDocumentServiceFactory;
43
+
44
+ /**
45
+ * Basic implementation of an attachment ITreeEntry
46
+ */
47
+ export declare class AttachmentTreeEntry {
48
+ readonly path: string;
49
+ readonly id: string;
50
+ readonly mode = FileMode.File;
51
+ readonly type = TreeEntry.Attachment;
52
+ readonly value: IAttachment;
53
+ /**
54
+ * Creates an attachment ITreeEntry
55
+ * @param path - path of entry
56
+ * @param id - id of external blob attachment
57
+ */
58
+ constructor(path: string, id: string);
59
+ }
60
+
61
+ export declare class AuthorizationError extends LoggingError implements IAuthorizationError, IFluidErrorBase {
62
+ readonly claims: string | undefined;
63
+ readonly tenantId: string | undefined;
64
+ readonly errorType = DriverErrorType.authorizationError;
65
+ readonly canRetry = false;
66
+ constructor(message: string, claims: string | undefined, tenantId: string | undefined, props: DriverErrorTelemetryProps);
67
+ }
68
+
69
+ export declare const blobHeadersBlobName = ".metadata.blobHeaders";
70
+
71
+ /**
72
+ * Basic implementation of a blob ITreeEntry
73
+ */
74
+ export declare class BlobTreeEntry {
75
+ readonly path: string;
76
+ readonly mode = FileMode.File;
77
+ readonly type = TreeEntry.Blob;
78
+ readonly value: IBlob;
79
+ /**
80
+ * Creates a blob ITreeEntry
81
+ * @param path - path of entry
82
+ * @param contents - blob contents
83
+ * @param encoding - encoding of contents; defaults to utf-8
84
+ */
85
+ constructor(path: string, contents: string, encoding?: "utf-8" | "base64");
86
+ }
87
+
88
+ /**
89
+ * Build a tree hierarchy base on an array of ITreeEntry
90
+ *
91
+ * @param entries - an array of ITreeEntry to flatten
92
+ * @param blobMap - a map of blob's sha1 to content that gets filled with content from entries
93
+ * NOTE: blobMap's validity is contingent on the returned promise's resolution
94
+ * @returns the hierarchical tree
95
+ */
96
+ export declare function buildSnapshotTree(entries: ITreeEntry[], blobMap: Map<string, ArrayBufferLike>): ISnapshotTree;
97
+
98
+ /**
99
+ * In case endpoint(service or socket) is not reachable, then we maybe offline or may have got some transient error
100
+ * not related to endpoint, in that case we want to try at faster pace and hence the max wait is lesser 8s as compared
101
+ * to when endpoint is reachable in which case it is 30s.
102
+ * @param error - error based on which we decide max wait time.
103
+ * @returns Max wait time.
104
+ */
105
+ export declare function calculateMaxWaitTime(error: unknown): number;
106
+
107
+ export declare function canBeCoalescedByService(message: ISequencedDocumentMessage | IDocumentMessage): boolean;
108
+
109
+ /**
110
+ * Check if a connection error can be retried. Unless explicitly allowed, retry is disallowed.
111
+ * I.e. asserts or unexpected exceptions in our code result in container failure.
112
+ * @param error - The error to inspect for ability to retry
113
+ */
114
+ export declare const canRetryOnError: (error: any) => boolean;
115
+
116
+ /* Excluded from this release type: CombinedAppAndProtocolSummary */
117
+
118
+ /**
119
+ * Converts ISummaryTree to ITree format.
120
+ * @param summaryTree - summary tree in ISummaryTree format
121
+ */
122
+ export declare function convertSummaryTreeToSnapshotITree(summaryTree: ISummaryTree): ITree;
123
+
124
+ export declare function createGenericNetworkError(message: string, retryInfo: {
125
+ canRetry: boolean;
126
+ retryAfterMs?: number;
127
+ }, props: DriverErrorTelemetryProps): ThrottlingError | GenericNetworkError;
128
+
129
+ export declare const createWriteError: (message: string, props: DriverErrorTelemetryProps) => NonRetryableError<"writeError">;
130
+
131
+ export declare class DeltaStreamConnectionForbiddenError extends LoggingError implements IDriverErrorBase, IFluidErrorBase {
132
+ static readonly errorType = DriverErrorType.deltaStreamConnectionForbidden;
133
+ readonly errorType = DriverErrorType.deltaStreamConnectionForbidden;
134
+ readonly canRetry = false;
135
+ readonly storageOnlyReason: string | undefined;
136
+ constructor(message: string, props: DriverErrorTelemetryProps, storageOnlyReason?: string);
137
+ }
138
+
139
+ export declare class DocumentStorageServiceProxy implements IDocumentStorageService {
140
+ protected readonly internalStorageService: IDocumentStorageService;
141
+ private _policies;
142
+ set policies(policies: IDocumentStorageServicePolicies | undefined);
143
+ get policies(): IDocumentStorageServicePolicies | undefined;
144
+ get repositoryUrl(): string;
145
+ constructor(internalStorageService: IDocumentStorageService);
146
+ getSnapshotTree(version?: IVersion, scenarioName?: string): Promise<ISnapshotTree | null>;
147
+ getVersions(versionId: string | null, count: number, scenarioName?: string, fetchSource?: FetchSource): Promise<IVersion[]>;
148
+ uploadSummaryWithContext(summary: ISummaryTree, context: ISummaryContext): Promise<string>;
149
+ downloadSummary(handle: ISummaryHandle): Promise<ISummaryTree>;
150
+ createBlob(file: ArrayBufferLike): Promise<ICreateBlobResponse>;
151
+ readBlob(blobId: string): Promise<ArrayBufferLike>;
152
+ }
153
+
154
+ /** Telemetry props with driver-specific required properties */
155
+ export declare type DriverErrorTelemetryProps = ITelemetryProperties & {
156
+ driverVersion: string | undefined;
157
+ };
158
+
159
+ export declare const emptyMessageStream: IStream<ISequencedDocumentMessage[]>;
160
+
161
+ /**
162
+ * FluidInvalidSchema error class.
163
+ */
164
+ export declare class FluidInvalidSchemaError extends LoggingError implements IDriverErrorBase, IFluidErrorBase {
165
+ readonly errorType = DriverErrorType.fluidInvalidSchema;
166
+ readonly canRetry = false;
167
+ constructor(message: string, props: DriverErrorTelemetryProps);
168
+ }
169
+
170
+ /**
171
+ * Generic network error class.
172
+ */
173
+ export declare class GenericNetworkError extends LoggingError implements IDriverErrorBase, IFluidErrorBase {
174
+ readonly canRetry: boolean;
175
+ readonly errorType = DriverErrorType.genericNetworkError;
176
+ constructor(message: string, canRetry: boolean, props: DriverErrorTelemetryProps);
177
+ }
178
+
179
+ /**
180
+ * Extract the attributes from the protocol summary.
181
+ * @param protocolSummary - protocol summary from which the values are to be extracted.
182
+ */
183
+ export declare function getDocAttributesFromProtocolSummary(protocolSummary: ISummaryTree): IDocumentAttributes;
184
+
185
+ /**
186
+ * Extract quorum values from the protocol summary.
187
+ * @param protocolSummary - protocol summary from which the values are to be extracted.
188
+ */
189
+ export declare function getQuorumValuesFromProtocolSummary(protocolSummary: ISummaryTree): [string, ICommittedProposal][];
190
+
191
+ /** Check retryAfterSeconds property on error and convert to ms */
192
+ export declare const getRetryDelayFromError: (error: any) => number | undefined;
193
+
194
+ /** Check retryAfterSeconds property on error */
195
+ export declare const getRetryDelaySecondsFromError: (error: any) => number | undefined;
196
+
197
+ export declare interface ICompressionStorageConfig {
198
+ algorithm: SummaryCompressionAlgorithm;
199
+ minSizeToCompress: number;
200
+ }
201
+
202
+ /**
203
+ * As the name implies this is not secure and should not be used in production. It simply makes the example easier
204
+ * to get up and running.
205
+ *
206
+ * In our example we run a simple web server via webpack-dev-server. This defines a URL format of the form
207
+ * http://localhost:8080/<documentId>/<path>.
208
+ *
209
+ * We then need to map that to a Fluid based URL. These are of the form
210
+ * fluid://orderingUrl/<tenantId>/<documentId>/<path>.
211
+ *
212
+ * The tenantId/documentId pair defines the 'full' document ID the service makes use of. The path is then an optional
213
+ * part of the URL that the document interprets and maps to a data store. It's exactly similar to how a web service
214
+ * works or a router inside of a single page app framework.
215
+ */
216
+ export declare class InsecureUrlResolver implements IUrlResolver {
217
+ private readonly hostUrl;
218
+ private readonly ordererUrl;
219
+ private readonly storageUrl;
220
+ private readonly tenantId;
221
+ private readonly bearer;
222
+ private readonly isForNodeTest;
223
+ private readonly cache;
224
+ constructor(hostUrl: string, ordererUrl: string, storageUrl: string, tenantId: string, bearer: string, isForNodeTest?: boolean);
225
+ resolve(request: IRequest): Promise<IResolvedUrl | undefined>;
226
+ private resolveHelper;
227
+ getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string): Promise<string>;
228
+ createCreateNewRequest(fileName?: string): IRequest;
229
+ }
230
+
231
+ /**
232
+ * Interface describing an object passed to various network APIs.
233
+ * It allows caller to control cancellation, as well as learn about any delays.
234
+ */
235
+ export declare interface IProgress {
236
+ /**
237
+ * Abort signal used to cancel operation.
238
+ *
239
+ * @remarks Note that most of the layers do not use this signal yet. We need to change that over time.
240
+ * Please consult with API documentation / implementation.
241
+ * Note that number of layers may not check this signal while holding this request in a queue,
242
+ * so it may take a while it takes effect. This can be improved in the future.
243
+ *
244
+ * The layers in question are:
245
+ *
246
+ * - driver (RateLimiter)
247
+ *
248
+ * - runWithRetry
249
+ */
250
+ cancel?: AbortSignal;
251
+ /**
252
+ * Called whenever api returns cancellable error and the call is going to be retried.
253
+ * Any exception thrown from this call back result in cancellation of operation
254
+ * and propagation of thrown exception.
255
+ * @param delayInMs - delay before next retry. This value will depend on internal back-off logic,
256
+ * as well as information provided by service (like 429 error asking to wait for some time before retry)
257
+ * @param error - error object returned from the call.
258
+ */
259
+ onRetry?(delayInMs: number, error: any): void;
260
+ }
261
+
262
+ /* Excluded from this release type: isCombinedAppAndProtocolSummary */
263
+
264
+ export declare function isOnline(): OnlineStatus;
265
+
266
+ /**
267
+ * Tells if message was sent by container runtime
268
+ * @privateRemarks ADO #1385: To be moved to container-definitions
269
+ * @returns whether the message is a runtime message
270
+ */
271
+ export declare function isRuntimeMessage(message: {
272
+ type: string;
273
+ }): boolean;
274
+
275
+ export declare class LocationRedirectionError extends LoggingError implements ILocationRedirectionError, IFluidErrorBase {
276
+ readonly redirectUrl: IResolvedUrl;
277
+ readonly errorType = DriverErrorType.locationRedirection;
278
+ readonly canRetry = false;
279
+ constructor(message: string, redirectUrl: IResolvedUrl, props: DriverErrorTelemetryProps);
280
+ }
281
+
282
+ /* Excluded from this release type: LoggingError */
283
+
284
+ export declare function logNetworkFailure(logger: ITelemetryLoggerExt, event: ITelemetryErrorEvent, error?: any): void;
285
+
286
+ export declare enum MessageType2 {
287
+ Accept = "accept"
288
+ }
289
+
290
+ export declare class NetworkErrorBasic<T extends string> extends LoggingError implements IFluidErrorBase {
291
+ readonly errorType: T;
292
+ readonly canRetry: boolean;
293
+ constructor(message: string, errorType: T, canRetry: boolean, props: DriverErrorTelemetryProps);
294
+ }
295
+
296
+ export declare class NonRetryableError<T extends string> extends NetworkErrorBasic<T> {
297
+ readonly errorType: T;
298
+ constructor(message: string, errorType: T, props: DriverErrorTelemetryProps);
299
+ }
300
+
301
+ export declare enum OnlineStatus {
302
+ Offline = 0,
303
+ Online = 1,
304
+ Unknown = 2
305
+ }
306
+
307
+ /**
308
+ * Helper class to organize parallel fetching of data
309
+ * It can be used to concurrently do many requests, while consuming
310
+ * data in the right order. Take a look at UT for examples.
311
+ * @param concurrency - level of concurrency
312
+ * @param from - starting point of fetching data (inclusive)
313
+ * @param to - ending point of fetching data. exclusive, or undefined if unknown
314
+ * @param payloadSize - batch size
315
+ * @param logger - logger to use
316
+ * @param requestCallback - callback to request batches
317
+ * @returns Queue that can be used to retrieve data
318
+ */
319
+ export declare class ParallelRequests<T> {
320
+ private to;
321
+ private readonly payloadSize;
322
+ private readonly logger;
323
+ private readonly requestCallback;
324
+ private readonly responseCallback;
325
+ private latestRequested;
326
+ private nextToDeliver;
327
+ private readonly results;
328
+ private workingState;
329
+ private requestsInFlight;
330
+ private readonly endEvent;
331
+ private requests;
332
+ private readonly knewTo;
333
+ private get working();
334
+ get canceled(): boolean;
335
+ constructor(from: number, to: number | undefined, payloadSize: number, logger: ITelemetryLoggerExt, requestCallback: (request: number, from: number, to: number, strongTo: boolean, props: ITelemetryProperties) => Promise<{
336
+ partial: boolean;
337
+ cancel: boolean;
338
+ payload: T[];
339
+ }>, responseCallback: (payload: T[]) => void);
340
+ cancel(): void;
341
+ run(concurrency: number): Promise<void>;
342
+ private done;
343
+ private fail;
344
+ private dispatch;
345
+ private getNextChunk;
346
+ private addRequest;
347
+ private addRequestCore;
348
+ }
349
+
350
+ export declare class PrefetchDocumentStorageService extends DocumentStorageServiceProxy {
351
+ private readonly prefetchCache;
352
+ private prefetchEnabled;
353
+ get policies(): {
354
+ caching: LoaderCachingPolicy;
355
+ maximumCacheDurationMs?: 432000000 | undefined;
356
+ } | undefined;
357
+ getSnapshotTree(version?: IVersion): Promise<ISnapshotTree | null>;
358
+ readBlob(blobId: string): Promise<ArrayBufferLike>;
359
+ stopPrefetch(): void;
360
+ private cachedRead;
361
+ private prefetchTree;
362
+ private prefetchTreeCore;
363
+ }
364
+
365
+ /**
366
+ * Helper queue class to allow async push / pull
367
+ * It's essentially a pipe allowing multiple writers, and single reader
368
+ */
369
+ export declare class Queue<T> implements IStream<T> {
370
+ private readonly queue;
371
+ private deferred;
372
+ private done;
373
+ pushValue(value: T): void;
374
+ pushError(error: any): void;
375
+ pushDone(): void;
376
+ protected pushCore(value: Promise<IStreamResult<T>>): void;
377
+ read(): Promise<IStreamResult<T>>;
378
+ }
379
+
380
+ export declare class RateLimiter {
381
+ private maxRequests;
382
+ private readonly tasks;
383
+ constructor(maxRequests: number);
384
+ get waitQueueLength(): number;
385
+ protected readonly release: () => void;
386
+ protected acquire(): Promise<void>;
387
+ schedule<T>(work: () => Promise<T>): Promise<T>;
388
+ }
389
+
390
+ /**
391
+ * Read a blob from {@link @fluidframework/driver-definitions#IDocumentStorageService} and
392
+ * {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse | JSON.parse}
393
+ * it into object of type `T`.
394
+ *
395
+ * @param storage - The `DocumentStorageService` to read from.
396
+ * @param id - The ID of the blob to read and parse.
397
+ *
398
+ * @typeParam T - Output type matching JSON format of inpyt blob data.
399
+ *
400
+ * @returns The object that we decoded and parsed via `JSON.parse`.
401
+ */
402
+ export declare function readAndParse<T>(storage: Pick<IDocumentStorageService, "readBlob">, id: string): Promise<T>;
403
+
404
+ /**
405
+ * Request ops from storage
406
+ * @param get - Getter callback to get individual batches
407
+ * @param concurrency - Number of concurrent requests to make
408
+ * @param fromTotal - starting sequence number to fetch (inclusive)
409
+ * @param toTotal - max (exclusive) sequence number to fetch
410
+ * @param payloadSize - Payload size
411
+ * @param logger - Logger to log progress and errors
412
+ * @param signal - Cancelation signal
413
+ * @param scenarioName - Reason for fetching ops
414
+ * @returns Messages fetched
415
+ */
416
+ export declare function requestOps(get: (from: number, to: number, telemetryProps: ITelemetryProperties) => Promise<IDeltasFetchResult>, concurrency: number, fromTotal: number, toTotal: number | undefined, payloadSize: number, logger: ITelemetryLoggerExt, signal?: AbortSignal, scenarioName?: string): IStream<ISequencedDocumentMessage[]>;
417
+
418
+ export declare class RetryableError<T extends string> extends NetworkErrorBasic<T> {
419
+ readonly errorType: T;
420
+ constructor(message: string, errorType: T, props: DriverErrorTelemetryProps);
421
+ }
422
+
423
+ export declare function runWithRetry<T>(api: (cancel?: AbortSignal) => Promise<T>, fetchCallName: string, logger: ITelemetryLoggerExt, progress: IProgress): Promise<T>;
424
+
425
+ export declare function streamFromMessages(messagesArg: Promise<ISequencedDocumentMessage[]>): IStream<ISequencedDocumentMessage[]>;
426
+
427
+ export declare function streamObserver<T>(stream: IStream<T>, handler: (value: IStreamResult<T>) => void): IStream<T>;
428
+
429
+ declare enum SummaryCompressionAlgorithm {
430
+ None = 0,
431
+ LZ4 = 1
432
+ }
433
+
434
+ /**
435
+ * Throttling error class - used to communicate all throttling errors
436
+ */
437
+ export declare class ThrottlingError extends LoggingError implements IThrottlingWarning, IFluidErrorBase {
438
+ readonly retryAfterSeconds: number;
439
+ readonly errorType = DriverErrorType.throttlingError;
440
+ readonly canRetry = true;
441
+ constructor(message: string, retryAfterSeconds: number, props: DriverErrorTelemetryProps);
442
+ }
443
+
444
+ /**
445
+ * Basic implementation of a tree ITreeEntry
446
+ */
447
+ export declare class TreeTreeEntry {
448
+ readonly path: string;
449
+ readonly value: ITree;
450
+ readonly mode = FileMode.Directory;
451
+ readonly type = TreeEntry.Tree;
452
+ /**
453
+ * Creates a tree ITreeEntry
454
+ * @param path - path of entry
455
+ * @param value - subtree
456
+ */
457
+ constructor(path: string, value: ITree);
458
+ }
459
+
460
+ /** Error indicating an API is being used improperly resulting in an invalid operation. */
461
+ export declare class UsageError extends LoggingError implements IDriverErrorBase, IFluidErrorBase {
462
+ readonly errorType = DriverErrorType.usageError;
463
+ readonly canRetry = false;
464
+ constructor(message: string);
465
+ }
466
+
467
+ export { }