@fluidframework/driver-utils 2.0.0-internal.7.3.0 → 2.0.0-internal.8.0.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 (148) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/api-extractor-lint.json +13 -0
  3. package/api-extractor.json +9 -1
  4. package/api-report/driver-utils.api.md +47 -47
  5. package/dist/adapters/compression/compressionTypes.d.ts +2 -2
  6. package/dist/adapters/compression/compressionTypes.js +1 -1
  7. package/dist/adapters/compression/compressionTypes.js.map +1 -1
  8. package/dist/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.d.ts +1 -1
  9. package/dist/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.js +1 -1
  10. package/dist/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.js.map +1 -1
  11. package/dist/adapters/predefinedAdapters.d.ts +1 -1
  12. package/dist/adapters/predefinedAdapters.js +1 -1
  13. package/dist/adapters/predefinedAdapters.js.map +1 -1
  14. package/dist/blob.d.ts +3 -3
  15. package/dist/blob.js +3 -3
  16. package/dist/blob.js.map +1 -1
  17. package/dist/buildSnapshotTree.d.ts +1 -1
  18. package/dist/buildSnapshotTree.js +1 -1
  19. package/dist/buildSnapshotTree.js.map +1 -1
  20. package/dist/documentStorageServiceProxy.d.ts +1 -1
  21. package/dist/documentStorageServiceProxy.js +1 -1
  22. package/dist/documentStorageServiceProxy.js.map +1 -1
  23. package/dist/driver-utils-alpha.d.ts +169 -0
  24. package/dist/driver-utils-beta.d.ts +176 -0
  25. package/dist/driver-utils-public.d.ts +176 -0
  26. package/dist/driver-utils-untrimmed.d.ts +590 -0
  27. package/dist/error.d.ts +1 -1
  28. package/dist/error.js +1 -1
  29. package/dist/error.js.map +1 -1
  30. package/dist/insecureUrlResolver.d.ts +1 -1
  31. package/dist/insecureUrlResolver.js +1 -1
  32. package/dist/insecureUrlResolver.js.map +1 -1
  33. package/dist/messageRecognition.d.ts +3 -3
  34. package/dist/messageRecognition.js +3 -3
  35. package/dist/messageRecognition.js.map +1 -1
  36. package/dist/network.d.ts +19 -19
  37. package/dist/network.d.ts.map +1 -1
  38. package/dist/network.js +18 -18
  39. package/dist/network.js.map +1 -1
  40. package/dist/networkUtils.d.ts +1 -1
  41. package/dist/networkUtils.js +1 -1
  42. package/dist/networkUtils.js.map +1 -1
  43. package/dist/packageVersion.d.ts +1 -1
  44. package/dist/packageVersion.js +1 -1
  45. package/dist/packageVersion.js.map +1 -1
  46. package/dist/parallelRequests.d.ts +6 -6
  47. package/dist/parallelRequests.js +6 -6
  48. package/dist/parallelRequests.js.map +1 -1
  49. package/dist/prefetchDocumentStorageService.d.ts +1 -1
  50. package/dist/prefetchDocumentStorageService.js +1 -1
  51. package/dist/prefetchDocumentStorageService.js.map +1 -1
  52. package/dist/rateLimiter.d.ts +1 -1
  53. package/dist/rateLimiter.js +1 -1
  54. package/dist/rateLimiter.js.map +1 -1
  55. package/dist/readAndParse.d.ts +1 -1
  56. package/dist/readAndParse.js +1 -1
  57. package/dist/readAndParse.js.map +1 -1
  58. package/dist/runWithRetry.d.ts +3 -3
  59. package/dist/runWithRetry.js +2 -2
  60. package/dist/runWithRetry.js.map +1 -1
  61. package/dist/summaryForCreateNew.d.ts +2 -2
  62. package/dist/summaryForCreateNew.js +2 -2
  63. package/dist/summaryForCreateNew.js.map +1 -1
  64. package/dist/treeConversions.d.ts +1 -1
  65. package/dist/treeConversions.js +1 -1
  66. package/dist/treeConversions.js.map +1 -1
  67. package/lib/adapters/compression/compressionTypes.d.ts +2 -2
  68. package/lib/adapters/compression/compressionTypes.js +1 -1
  69. package/lib/adapters/compression/compressionTypes.js.map +1 -1
  70. package/lib/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.d.ts +1 -1
  71. package/lib/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.js +1 -1
  72. package/lib/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.js.map +1 -1
  73. package/lib/adapters/predefinedAdapters.d.ts +1 -1
  74. package/lib/adapters/predefinedAdapters.js +1 -1
  75. package/lib/adapters/predefinedAdapters.js.map +1 -1
  76. package/lib/blob.d.ts +3 -3
  77. package/lib/blob.js +3 -3
  78. package/lib/blob.js.map +1 -1
  79. package/lib/buildSnapshotTree.d.ts +1 -1
  80. package/lib/buildSnapshotTree.js +1 -1
  81. package/lib/buildSnapshotTree.js.map +1 -1
  82. package/lib/documentStorageServiceProxy.d.ts +1 -1
  83. package/lib/documentStorageServiceProxy.js +1 -1
  84. package/lib/documentStorageServiceProxy.js.map +1 -1
  85. package/lib/driver-utils-alpha.d.ts +169 -0
  86. package/lib/driver-utils-beta.d.ts +176 -0
  87. package/lib/driver-utils-public.d.ts +176 -0
  88. package/lib/driver-utils-untrimmed.d.ts +590 -0
  89. package/lib/error.d.ts +1 -1
  90. package/lib/error.js +1 -1
  91. package/lib/error.js.map +1 -1
  92. package/lib/insecureUrlResolver.d.ts +1 -1
  93. package/lib/insecureUrlResolver.js +1 -1
  94. package/lib/insecureUrlResolver.js.map +1 -1
  95. package/lib/messageRecognition.d.ts +3 -3
  96. package/lib/messageRecognition.js +3 -3
  97. package/lib/messageRecognition.js.map +1 -1
  98. package/lib/network.d.ts +19 -19
  99. package/lib/network.d.ts.map +1 -1
  100. package/lib/network.js +18 -18
  101. package/lib/network.js.map +1 -1
  102. package/lib/networkUtils.d.ts +1 -1
  103. package/lib/networkUtils.js +1 -1
  104. package/lib/networkUtils.js.map +1 -1
  105. package/lib/packageVersion.d.ts +1 -1
  106. package/lib/packageVersion.js +1 -1
  107. package/lib/packageVersion.js.map +1 -1
  108. package/lib/parallelRequests.d.ts +6 -6
  109. package/lib/parallelRequests.js +6 -6
  110. package/lib/parallelRequests.js.map +1 -1
  111. package/lib/prefetchDocumentStorageService.d.ts +1 -1
  112. package/lib/prefetchDocumentStorageService.js +1 -1
  113. package/lib/prefetchDocumentStorageService.js.map +1 -1
  114. package/lib/rateLimiter.d.ts +1 -1
  115. package/lib/rateLimiter.js +1 -1
  116. package/lib/rateLimiter.js.map +1 -1
  117. package/lib/readAndParse.d.ts +1 -1
  118. package/lib/readAndParse.js +1 -1
  119. package/lib/readAndParse.js.map +1 -1
  120. package/lib/runWithRetry.d.ts +3 -3
  121. package/lib/runWithRetry.js +2 -2
  122. package/lib/runWithRetry.js.map +1 -1
  123. package/lib/summaryForCreateNew.d.ts +2 -2
  124. package/lib/summaryForCreateNew.js +2 -2
  125. package/lib/summaryForCreateNew.js.map +1 -1
  126. package/lib/treeConversions.d.ts +1 -1
  127. package/lib/treeConversions.js +1 -1
  128. package/lib/treeConversions.js.map +1 -1
  129. package/package.json +31 -12
  130. package/src/adapters/compression/compressionTypes.ts +2 -2
  131. package/src/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.ts +1 -1
  132. package/src/adapters/predefinedAdapters.ts +1 -1
  133. package/src/blob.ts +3 -3
  134. package/src/buildSnapshotTree.ts +1 -1
  135. package/src/documentStorageServiceProxy.ts +1 -1
  136. package/src/error.ts +1 -1
  137. package/src/insecureUrlResolver.ts +1 -1
  138. package/src/messageRecognition.ts +3 -3
  139. package/src/network.ts +19 -19
  140. package/src/networkUtils.ts +1 -1
  141. package/src/packageVersion.ts +1 -1
  142. package/src/parallelRequests.ts +6 -6
  143. package/src/prefetchDocumentStorageService.ts +1 -1
  144. package/src/rateLimiter.ts +1 -1
  145. package/src/readAndParse.ts +1 -1
  146. package/src/runWithRetry.ts +3 -3
  147. package/src/summaryForCreateNew.ts +2 -2
  148. package/src/treeConversions.ts +1 -1
@@ -4,7 +4,7 @@
4
4
  */
5
5
 
6
6
  /**
7
- * @public
7
+ * @alpha
8
8
  */
9
9
  export enum SummaryCompressionAlgorithm {
10
10
  None = 0,
@@ -12,7 +12,7 @@ export enum SummaryCompressionAlgorithm {
12
12
  }
13
13
 
14
14
  /**
15
- * @public
15
+ * @alpha
16
16
  */
17
17
  export interface ICompressionStorageConfig {
18
18
  algorithm: SummaryCompressionAlgorithm;
@@ -20,7 +20,7 @@ import { DocumentStorageServiceProxy } from "../../../documentStorageServiceProx
20
20
  import { ICompressionStorageConfig, SummaryCompressionAlgorithm } from "../";
21
21
 
22
22
  /**
23
- * @public
23
+ * @internal
24
24
  */
25
25
  export const blobHeadersBlobName = ".metadata.blobHeaders";
26
26
  const metadataBlobName = ".metadata";
@@ -17,7 +17,7 @@ import {
17
17
  * @param documentServiceFactory - The document service factory to apply compression to.
18
18
  * @param config - The compression configuration.
19
19
  * @returns The document service factory possibly with compression applied.
20
- * @public
20
+ * @internal
21
21
  */
22
22
  export function applyStorageCompression(
23
23
  documentServiceFactory: IDocumentServiceFactory,
package/src/blob.ts CHANGED
@@ -13,7 +13,7 @@ import {
13
13
 
14
14
  /**
15
15
  * Basic implementation of a blob ITreeEntry
16
- * @public
16
+ * @internal
17
17
  */
18
18
  export class BlobTreeEntry {
19
19
  public readonly mode = FileMode.File;
@@ -37,7 +37,7 @@ export class BlobTreeEntry {
37
37
 
38
38
  /**
39
39
  * Basic implementation of a tree ITreeEntry
40
- * @public
40
+ * @internal
41
41
  */
42
42
  export class TreeTreeEntry {
43
43
  public readonly mode = FileMode.Directory;
@@ -56,7 +56,7 @@ export class TreeTreeEntry {
56
56
 
57
57
  /**
58
58
  * Basic implementation of an attachment ITreeEntry
59
- * @public
59
+ * @internal
60
60
  */
61
61
  export class AttachmentTreeEntry {
62
62
  public readonly mode = FileMode.File;
@@ -86,7 +86,7 @@ function flatten(tree: ITreeEntry[], blobMap: Map<string, ArrayBufferLike>): git
86
86
  * @param blobMap - a map of blob's sha1 to content that gets filled with content from entries
87
87
  * NOTE: blobMap's validity is contingent on the returned promise's resolution
88
88
  * @returns the hierarchical tree
89
- * @public
89
+ * @internal
90
90
  */
91
91
  export function buildSnapshotTree(
92
92
  entries: ITreeEntry[],
@@ -18,7 +18,7 @@ import {
18
18
  } from "@fluidframework/protocol-definitions";
19
19
 
20
20
  /**
21
- * @public
21
+ * @internal
22
22
  */
23
23
  export class DocumentStorageServiceProxy implements IDocumentStorageService {
24
24
  private _policies: IDocumentStorageServicePolicies | undefined;
package/src/error.ts CHANGED
@@ -9,7 +9,7 @@ import { IFluidErrorBase, LoggingError } from "@fluidframework/telemetry-utils";
9
9
 
10
10
  /**
11
11
  * Error indicating an API is being used improperly resulting in an invalid operation.
12
- * @public
12
+ * @internal
13
13
  */
14
14
  export class UsageError extends LoggingError implements IDriverErrorBase, IFluidErrorBase {
15
15
  // eslint-disable-next-line import/no-deprecated
@@ -22,7 +22,7 @@ import Axios from "axios";
22
22
  * The tenantId/documentId pair defines the 'full' document ID the service makes use of. The path is then an optional
23
23
  * part of the URL that the document interprets and maps to a data store. It's exactly similar to how a web service
24
24
  * works or a router inside of a single page app framework.
25
- * @public
25
+ * @internal
26
26
  */
27
27
  export class InsecureUrlResolver implements IUrlResolver {
28
28
  private readonly cache = new Map<string, Promise<IResolvedUrl>>();
@@ -12,7 +12,7 @@ import {
12
12
  * Tells if message was sent by container runtime
13
13
  * @privateRemarks ADO #1385: To be moved to container-definitions
14
14
  * @returns whether the message is a runtime message
15
- * @public
15
+ * @internal
16
16
  */
17
17
  export function isRuntimeMessage(message: { type: string }): boolean {
18
18
  return message.type === MessageType.Operation;
@@ -21,7 +21,7 @@ export function isRuntimeMessage(message: { type: string }): boolean {
21
21
  /**
22
22
  * @privateRemarks ADO #1385: staging code changes across layers.
23
23
  * Eventually to be replaced by MessageType.accept
24
- * @public
24
+ * @internal
25
25
  */
26
26
  export enum MessageType2 {
27
27
  Accept = "accept",
@@ -29,7 +29,7 @@ export enum MessageType2 {
29
29
 
30
30
  /**
31
31
  * @privateRemarks ADO #1385: To be moved to packages/protocol-base/src/protocol.ts
32
- * @public
32
+ * @internal
33
33
  */
34
34
  export function canBeCoalescedByService(
35
35
  message: ISequencedDocumentMessage | IDocumentMessage,
package/src/network.ts CHANGED
@@ -17,7 +17,7 @@ import { ITelemetryProperties } from "@fluidframework/core-interfaces";
17
17
  import { IFluidErrorBase, LoggingError } from "@fluidframework/telemetry-utils";
18
18
 
19
19
  /**
20
- * @public
20
+ * @internal
21
21
  */
22
22
  export enum OnlineStatus {
23
23
  Offline,
@@ -29,7 +29,7 @@ export enum OnlineStatus {
29
29
  * It tells if we have local connection only - we might not have connection to web.
30
30
  * No solution for node.js (other than resolve dns names / ping specific sites)
31
31
  * Can also use window.addEventListener("online" / "offline")
32
- * @public
32
+ * @internal
33
33
  */
34
34
  export function isOnline(): OnlineStatus {
35
35
  if (
@@ -44,7 +44,7 @@ export function isOnline(): OnlineStatus {
44
44
 
45
45
  /**
46
46
  * Telemetry props with driver-specific required properties
47
- * @public
47
+ * @internal
48
48
  */
49
49
  export type DriverErrorTelemetryProps = ITelemetryProperties & {
50
50
  driverVersion: string | undefined;
@@ -52,7 +52,7 @@ export type DriverErrorTelemetryProps = ITelemetryProperties & {
52
52
 
53
53
  /**
54
54
  * Generic network error class.
55
- * @public
55
+ * @internal
56
56
  */
57
57
  export class GenericNetworkError extends LoggingError implements IDriverErrorBase, IFluidErrorBase {
58
58
  // eslint-disable-next-line import/no-deprecated
@@ -69,7 +69,7 @@ export class GenericNetworkError extends LoggingError implements IDriverErrorBas
69
69
 
70
70
  /**
71
71
  * FluidInvalidSchema error class.
72
- * @public
72
+ * @internal
73
73
  */
74
74
  export class FluidInvalidSchemaError
75
75
  extends LoggingError
@@ -85,7 +85,7 @@ export class FluidInvalidSchemaError
85
85
  }
86
86
 
87
87
  /**
88
- * @public
88
+ * @internal
89
89
  */
90
90
  export class DeltaStreamConnectionForbiddenError
91
91
  extends LoggingError
@@ -104,7 +104,7 @@ export class DeltaStreamConnectionForbiddenError
104
104
  }
105
105
 
106
106
  /**
107
- * @public
107
+ * @internal
108
108
  */
109
109
  export class AuthorizationError
110
110
  extends LoggingError
@@ -126,7 +126,7 @@ export class AuthorizationError
126
126
  }
127
127
 
128
128
  /**
129
- * @public
129
+ * @internal
130
130
  */
131
131
  export class LocationRedirectionError
132
132
  extends LoggingError
@@ -147,7 +147,7 @@ export class LocationRedirectionError
147
147
  }
148
148
 
149
149
  /**
150
- * @public
150
+ * @internal
151
151
  */
152
152
  export class NetworkErrorBasic<T extends string> extends LoggingError implements IFluidErrorBase {
153
153
  constructor(
@@ -161,7 +161,7 @@ export class NetworkErrorBasic<T extends string> extends LoggingError implements
161
161
  }
162
162
 
163
163
  /**
164
- * @public
164
+ * @internal
165
165
  */
166
166
  export class NonRetryableError<T extends string> extends NetworkErrorBasic<T> {
167
167
  constructor(
@@ -174,7 +174,7 @@ export class NonRetryableError<T extends string> extends NetworkErrorBasic<T> {
174
174
  }
175
175
 
176
176
  /**
177
- * @public
177
+ * @internal
178
178
  */
179
179
  export class RetryableError<T extends string> extends NetworkErrorBasic<T> {
180
180
  constructor(
@@ -188,7 +188,7 @@ export class RetryableError<T extends string> extends NetworkErrorBasic<T> {
188
188
 
189
189
  /**
190
190
  * Throttling error class - used to communicate all throttling errors
191
- * @public
191
+ * @internal
192
192
  */
193
193
  export class ThrottlingError extends LoggingError implements IThrottlingWarning, IFluidErrorBase {
194
194
  // eslint-disable-next-line import/no-deprecated
@@ -205,13 +205,13 @@ export class ThrottlingError extends LoggingError implements IThrottlingWarning,
205
205
  }
206
206
 
207
207
  /**
208
- * @public
208
+ * @internal
209
209
  */
210
210
  export const createWriteError = (message: string, props: DriverErrorTelemetryProps) =>
211
211
  new NonRetryableError(message, DriverErrorTypes.writeError, props);
212
212
 
213
213
  /**
214
- * @public
214
+ * @internal
215
215
  */
216
216
  export function createGenericNetworkError(
217
217
  message: string,
@@ -228,20 +228,20 @@ export function createGenericNetworkError(
228
228
  * Check if a connection error can be retried. Unless explicitly allowed, retry is disallowed.
229
229
  * I.e. asserts or unexpected exceptions in our code result in container failure.
230
230
  * @param error - The error to inspect for ability to retry
231
- * @public
231
+ * @internal
232
232
  */
233
233
  export const canRetryOnError = (error: any): boolean => error?.canRetry === true;
234
234
 
235
235
  /**
236
236
  * Check retryAfterSeconds property on error
237
- * @public
238
- * */
237
+ * @internal
238
+ */
239
239
  export const getRetryDelaySecondsFromError = (error: any): number | undefined =>
240
240
  error?.retryAfterSeconds as number | undefined;
241
241
 
242
242
  /**
243
243
  * Check retryAfterSeconds property on error and convert to ms
244
- * @public
245
- * */
244
+ * @internal
245
+ */
246
246
  export const getRetryDelayFromError = (error: any): number | undefined =>
247
247
  error?.retryAfterSeconds !== undefined ? error.retryAfterSeconds * 1000 : undefined;
@@ -8,7 +8,7 @@ import { ITelemetryLoggerExt } from "@fluidframework/telemetry-utils";
8
8
  import { isOnline, OnlineStatus, canRetryOnError } from "./network";
9
9
 
10
10
  /**
11
- * @public
11
+ * @internal
12
12
  */
13
13
  export function logNetworkFailure(
14
14
  logger: ITelemetryLoggerExt,
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/driver-utils";
9
- export const pkgVersion = "2.0.0-internal.7.3.0";
9
+ export const pkgVersion = "2.0.0-internal.8.0.0";
@@ -30,7 +30,7 @@ type WorkingState = "working" | "done" | "canceled";
30
30
  * @param logger - logger to use
31
31
  * @param requestCallback - callback to request batches
32
32
  * @returns Queue that can be used to retrieve data
33
- * @public
33
+ * @internal
34
34
  */
35
35
  export class ParallelRequests<T> {
36
36
  private latestRequested: number;
@@ -340,7 +340,7 @@ export class ParallelRequests<T> {
340
340
  /**
341
341
  * Helper queue class to allow async push / pull
342
342
  * It's essentially a pipe allowing multiple writers, and single reader
343
- * @public
343
+ * @internal
344
344
  */
345
345
  export class Queue<T> implements IStream<T> {
346
346
  private readonly queue: Promise<IStreamResult<T>>[] = [];
@@ -533,7 +533,7 @@ async function getSingleOpBatch(
533
533
  * @param signal - Cancelation signal
534
534
  * @param scenarioName - Reason for fetching ops
535
535
  * @returns Messages fetched
536
- * @public
536
+ * @internal
537
537
  */
538
538
  export function requestOps(
539
539
  get: (
@@ -655,7 +655,7 @@ export function requestOps(
655
655
  }
656
656
 
657
657
  /**
658
- * @public
658
+ * @internal
659
659
  */
660
660
  export const emptyMessageStream: IStream<ISequencedDocumentMessage[]> = {
661
661
  read: async () => {
@@ -664,7 +664,7 @@ export const emptyMessageStream: IStream<ISequencedDocumentMessage[]> = {
664
664
  };
665
665
 
666
666
  /**
667
- * @public
667
+ * @internal
668
668
  */
669
669
  export function streamFromMessages(
670
670
  messagesArg: Promise<ISequencedDocumentMessage[]>,
@@ -683,7 +683,7 @@ export function streamFromMessages(
683
683
  }
684
684
 
685
685
  /**
686
- * @public
686
+ * @internal
687
687
  */
688
688
  export function streamObserver<T>(
689
689
  stream: IStream<T>,
@@ -8,7 +8,7 @@ import { DocumentStorageServiceProxy } from "./documentStorageServiceProxy";
8
8
  import { canRetryOnError } from "./network";
9
9
 
10
10
  /**
11
- * @public
11
+ * @internal
12
12
  */
13
13
  export class PrefetchDocumentStorageService extends DocumentStorageServiceProxy {
14
14
  // BlobId -> blob prefetchCache cache
@@ -6,7 +6,7 @@
6
6
  import { assert } from "@fluidframework/core-utils";
7
7
 
8
8
  /**
9
- * @public
9
+ * @alpha
10
10
  */
11
11
  export class RateLimiter {
12
12
  private readonly tasks: (() => void)[] = [];
@@ -17,7 +17,7 @@ import { IDocumentStorageService } from "@fluidframework/driver-definitions";
17
17
  * @typeParam T - Output type matching JSON format of inpyt blob data.
18
18
  *
19
19
  * @returns The object that we decoded and parsed via `JSON.parse`.
20
- * @public
20
+ * @internal
21
21
  */
22
22
  export async function readAndParse<T>(
23
23
  storage: Pick<IDocumentStorageService, "readBlob">,
@@ -14,7 +14,7 @@ import { NonRetryableError } from ".";
14
14
  /**
15
15
  * Interface describing an object passed to various network APIs.
16
16
  * It allows caller to control cancellation, as well as learn about any delays.
17
- * @public
17
+ * @internal
18
18
  */
19
19
  export interface IProgress {
20
20
  /**
@@ -45,7 +45,7 @@ export interface IProgress {
45
45
  }
46
46
 
47
47
  /**
48
- * @public
48
+ * @internal
49
49
  */
50
50
  export async function runWithRetry<T>(
51
51
  api: (cancel?: AbortSignal) => Promise<T>,
@@ -151,7 +151,7 @@ const MaxReconnectDelayInMsWhenEndpointIsNotReachable = 8000;
151
151
  * @param delayMs - wait time for previous iteration
152
152
  * @param error - error based on which we decide wait time.
153
153
  * @returns Wait time to wait for.
154
- * @public
154
+ * @internal
155
155
  */
156
156
  export function calculateMaxWaitTime(delayMs: number, error: unknown): number {
157
157
  const retryDelayFromError = getRetryDelayFromError(error);
@@ -49,7 +49,7 @@ export function isCombinedAppAndProtocolSummary(
49
49
  /**
50
50
  * Extract the attributes from the protocol summary.
51
51
  * @param protocolSummary - protocol summary from which the values are to be extracted.
52
- * @public
52
+ * @internal
53
53
  */
54
54
  export function getDocAttributesFromProtocolSummary(
55
55
  protocolSummary: ISummaryTree,
@@ -61,7 +61,7 @@ export function getDocAttributesFromProtocolSummary(
61
61
  /**
62
62
  * Extract quorum values from the protocol summary.
63
63
  * @param protocolSummary - protocol summary from which the values are to be extracted.
64
- * @public
64
+ * @internal
65
65
  */
66
66
  export function getQuorumValuesFromProtocolSummary(
67
67
  protocolSummary: ISummaryTree,
@@ -12,7 +12,7 @@ import { isCombinedAppAndProtocolSummary } from "./summaryForCreateNew";
12
12
  /**
13
13
  * Converts ISummaryTree to ITree format.
14
14
  * @param summaryTree - summary tree in ISummaryTree format
15
- * @public
15
+ * @internal
16
16
  */
17
17
  export function convertSummaryTreeToSnapshotITree(summaryTree: ISummaryTree): ITree {
18
18
  const entries: ITreeEntry[] = [];