@fluidframework/container-runtime 2.0.0-dev.7.4.0.217212 → 2.0.0-dev.7.4.0.221926

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 (233) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/api-extractor.json +0 -3
  3. package/api-report/container-runtime.api.md +77 -73
  4. package/dist/blobManager.d.ts +4 -4
  5. package/dist/blobManager.d.ts.map +1 -1
  6. package/dist/blobManager.js.map +1 -1
  7. package/dist/container-runtime-alpha.d.ts +1361 -132
  8. package/dist/container-runtime-beta.d.ts +40 -2
  9. package/dist/container-runtime-public.d.ts +40 -2
  10. package/dist/container-runtime-untrimmed.d.ts +106 -93
  11. package/dist/containerRuntime.d.ts +19 -17
  12. package/dist/containerRuntime.d.ts.map +1 -1
  13. package/dist/containerRuntime.js +44 -24
  14. package/dist/containerRuntime.js.map +1 -1
  15. package/dist/dataStores.d.ts +10 -15
  16. package/dist/dataStores.d.ts.map +1 -1
  17. package/dist/dataStores.js +63 -36
  18. package/dist/dataStores.js.map +1 -1
  19. package/dist/gc/garbageCollection.d.ts +29 -10
  20. package/dist/gc/garbageCollection.d.ts.map +1 -1
  21. package/dist/gc/garbageCollection.js +149 -67
  22. package/dist/gc/garbageCollection.js.map +1 -1
  23. package/dist/gc/gcConfigs.d.ts.map +1 -1
  24. package/dist/gc/gcConfigs.js +34 -37
  25. package/dist/gc/gcConfigs.js.map +1 -1
  26. package/dist/gc/gcDefinitions.d.ts +97 -44
  27. package/dist/gc/gcDefinitions.d.ts.map +1 -1
  28. package/dist/gc/gcDefinitions.js +26 -16
  29. package/dist/gc/gcDefinitions.js.map +1 -1
  30. package/dist/gc/gcHelpers.d.ts +18 -25
  31. package/dist/gc/gcHelpers.d.ts.map +1 -1
  32. package/dist/gc/gcHelpers.js +29 -45
  33. package/dist/gc/gcHelpers.js.map +1 -1
  34. package/dist/gc/gcTelemetry.d.ts.map +1 -1
  35. package/dist/gc/gcTelemetry.js +14 -3
  36. package/dist/gc/gcTelemetry.js.map +1 -1
  37. package/dist/gc/gcUnreferencedStateTracker.d.ts +11 -5
  38. package/dist/gc/gcUnreferencedStateTracker.d.ts.map +1 -1
  39. package/dist/gc/gcUnreferencedStateTracker.js +43 -19
  40. package/dist/gc/gcUnreferencedStateTracker.js.map +1 -1
  41. package/dist/gc/index.d.ts +1 -1
  42. package/dist/gc/index.d.ts.map +1 -1
  43. package/dist/gc/index.js +4 -4
  44. package/dist/gc/index.js.map +1 -1
  45. package/dist/index.d.ts +13 -1
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +16 -5
  48. package/dist/index.js.map +1 -1
  49. package/dist/messageTypes.d.ts +13 -5
  50. package/dist/messageTypes.d.ts.map +1 -1
  51. package/dist/messageTypes.js +5 -0
  52. package/dist/messageTypes.js.map +1 -1
  53. package/dist/packageVersion.d.ts +1 -1
  54. package/dist/packageVersion.js +1 -1
  55. package/dist/packageVersion.js.map +1 -1
  56. package/dist/pendingStateManager.d.ts +1 -0
  57. package/dist/pendingStateManager.d.ts.map +1 -1
  58. package/dist/pendingStateManager.js +1 -0
  59. package/dist/pendingStateManager.js.map +1 -1
  60. package/dist/summary/orderedClientElection.d.ts +1 -1
  61. package/dist/summary/orderedClientElection.js.map +1 -1
  62. package/dist/summary/summarizerTypes.d.ts +28 -28
  63. package/dist/summary/summarizerTypes.js.map +1 -1
  64. package/dist/summary/summaryCollection.d.ts +3 -3
  65. package/dist/summary/summaryCollection.js.map +1 -1
  66. package/dist/summary/summaryFormat.d.ts +3 -3
  67. package/dist/summary/summaryFormat.js.map +1 -1
  68. package/lib/blobManager.d.ts +4 -4
  69. package/lib/blobManager.d.ts.map +1 -1
  70. package/lib/blobManager.js.map +1 -1
  71. package/lib/container-runtime-alpha.d.ts +1361 -132
  72. package/lib/container-runtime-beta.d.ts +40 -2
  73. package/lib/container-runtime-public.d.ts +40 -2
  74. package/lib/container-runtime-untrimmed.d.ts +106 -93
  75. package/lib/containerRuntime.d.ts +19 -17
  76. package/lib/containerRuntime.d.ts.map +1 -1
  77. package/lib/containerRuntime.js +46 -26
  78. package/lib/containerRuntime.js.map +1 -1
  79. package/lib/dataStores.d.ts +10 -15
  80. package/lib/dataStores.d.ts.map +1 -1
  81. package/lib/dataStores.js +65 -38
  82. package/lib/dataStores.js.map +1 -1
  83. package/lib/gc/garbageCollection.d.ts +29 -10
  84. package/lib/gc/garbageCollection.d.ts.map +1 -1
  85. package/lib/gc/garbageCollection.js +151 -69
  86. package/lib/gc/garbageCollection.js.map +1 -1
  87. package/lib/gc/gcConfigs.d.ts.map +1 -1
  88. package/lib/gc/gcConfigs.js +37 -40
  89. package/lib/gc/gcConfigs.js.map +1 -1
  90. package/lib/gc/gcDefinitions.d.ts +97 -44
  91. package/lib/gc/gcDefinitions.d.ts.map +1 -1
  92. package/lib/gc/gcDefinitions.js +25 -15
  93. package/lib/gc/gcDefinitions.js.map +1 -1
  94. package/lib/gc/gcHelpers.d.ts +18 -25
  95. package/lib/gc/gcHelpers.d.ts.map +1 -1
  96. package/lib/gc/gcHelpers.js +27 -43
  97. package/lib/gc/gcHelpers.js.map +1 -1
  98. package/lib/gc/gcTelemetry.d.ts.map +1 -1
  99. package/lib/gc/gcTelemetry.js +14 -3
  100. package/lib/gc/gcTelemetry.js.map +1 -1
  101. package/lib/gc/gcUnreferencedStateTracker.d.ts +11 -5
  102. package/lib/gc/gcUnreferencedStateTracker.d.ts.map +1 -1
  103. package/lib/gc/gcUnreferencedStateTracker.js +43 -19
  104. package/lib/gc/gcUnreferencedStateTracker.js.map +1 -1
  105. package/lib/gc/index.d.ts +1 -1
  106. package/lib/gc/index.d.ts.map +1 -1
  107. package/lib/gc/index.js +1 -1
  108. package/lib/gc/index.js.map +1 -1
  109. package/lib/index.d.ts +13 -1
  110. package/lib/index.d.ts.map +1 -1
  111. package/lib/index.js +15 -1
  112. package/lib/index.js.map +1 -1
  113. package/lib/messageTypes.d.ts +13 -5
  114. package/lib/messageTypes.d.ts.map +1 -1
  115. package/lib/messageTypes.js +5 -0
  116. package/lib/messageTypes.js.map +1 -1
  117. package/lib/packageVersion.d.ts +1 -1
  118. package/lib/packageVersion.js +1 -1
  119. package/lib/packageVersion.js.map +1 -1
  120. package/lib/pendingStateManager.d.ts +1 -0
  121. package/lib/pendingStateManager.d.ts.map +1 -1
  122. package/lib/pendingStateManager.js +1 -0
  123. package/lib/pendingStateManager.js.map +1 -1
  124. package/lib/summary/orderedClientElection.d.ts +1 -1
  125. package/lib/summary/orderedClientElection.js.map +1 -1
  126. package/lib/summary/summarizerTypes.d.ts +28 -28
  127. package/lib/summary/summarizerTypes.js.map +1 -1
  128. package/lib/summary/summaryCollection.d.ts +3 -3
  129. package/lib/summary/summaryCollection.js.map +1 -1
  130. package/lib/summary/summaryFormat.d.ts +3 -3
  131. package/lib/summary/summaryFormat.js.map +1 -1
  132. package/package.json +18 -15
  133. package/src/blobManager.ts +5 -5
  134. package/src/containerRuntime.ts +66 -40
  135. package/src/dataStores.ts +118 -59
  136. package/src/gc/garbageCollection.md +14 -15
  137. package/src/gc/garbageCollection.ts +182 -75
  138. package/src/gc/gcConfigs.ts +50 -52
  139. package/src/gc/gcDefinitions.ts +112 -50
  140. package/src/gc/gcHelpers.ts +31 -52
  141. package/src/gc/gcTelemetry.ts +16 -4
  142. package/src/gc/gcUnreferencedStateTracker.ts +61 -22
  143. package/src/gc/index.ts +4 -3
  144. package/src/index.ts +17 -1
  145. package/src/messageTypes.ts +16 -2
  146. package/src/packageVersion.ts +1 -1
  147. package/src/pendingStateManager.ts +1 -0
  148. package/src/summary/orderedClientElection.ts +1 -1
  149. package/src/summary/summarizerTypes.ts +28 -28
  150. package/src/summary/summaryCollection.ts +3 -3
  151. package/src/summary/summaryFormat.ts +3 -3
  152. package/dist/id-compressor/appendOnlySortedMap.d.ts +0 -124
  153. package/dist/id-compressor/appendOnlySortedMap.d.ts.map +0 -1
  154. package/dist/id-compressor/appendOnlySortedMap.js +0 -318
  155. package/dist/id-compressor/appendOnlySortedMap.js.map +0 -1
  156. package/dist/id-compressor/finalSpace.d.ts +0 -29
  157. package/dist/id-compressor/finalSpace.d.ts.map +0 -1
  158. package/dist/id-compressor/finalSpace.js +0 -62
  159. package/dist/id-compressor/finalSpace.js.map +0 -1
  160. package/dist/id-compressor/idCompressor.d.ts +0 -54
  161. package/dist/id-compressor/idCompressor.d.ts.map +0 -1
  162. package/dist/id-compressor/idCompressor.js +0 -495
  163. package/dist/id-compressor/idCompressor.js.map +0 -1
  164. package/dist/id-compressor/identifiers.d.ts +0 -32
  165. package/dist/id-compressor/identifiers.d.ts.map +0 -1
  166. package/dist/id-compressor/identifiers.js +0 -15
  167. package/dist/id-compressor/identifiers.js.map +0 -1
  168. package/dist/id-compressor/index.d.ts +0 -13
  169. package/dist/id-compressor/index.d.ts.map +0 -1
  170. package/dist/id-compressor/index.js +0 -32
  171. package/dist/id-compressor/index.js.map +0 -1
  172. package/dist/id-compressor/persistanceUtilities.d.ts +0 -22
  173. package/dist/id-compressor/persistanceUtilities.d.ts.map +0 -1
  174. package/dist/id-compressor/persistanceUtilities.js +0 -43
  175. package/dist/id-compressor/persistanceUtilities.js.map +0 -1
  176. package/dist/id-compressor/sessionSpaceNormalizer.d.ts +0 -46
  177. package/dist/id-compressor/sessionSpaceNormalizer.d.ts.map +0 -1
  178. package/dist/id-compressor/sessionSpaceNormalizer.js +0 -80
  179. package/dist/id-compressor/sessionSpaceNormalizer.js.map +0 -1
  180. package/dist/id-compressor/sessions.d.ts +0 -115
  181. package/dist/id-compressor/sessions.d.ts.map +0 -1
  182. package/dist/id-compressor/sessions.js +0 -305
  183. package/dist/id-compressor/sessions.js.map +0 -1
  184. package/dist/id-compressor/utilities.d.ts +0 -52
  185. package/dist/id-compressor/utilities.d.ts.map +0 -1
  186. package/dist/id-compressor/utilities.js +0 -169
  187. package/dist/id-compressor/utilities.js.map +0 -1
  188. package/lib/id-compressor/appendOnlySortedMap.d.ts +0 -124
  189. package/lib/id-compressor/appendOnlySortedMap.d.ts.map +0 -1
  190. package/lib/id-compressor/appendOnlySortedMap.js +0 -314
  191. package/lib/id-compressor/appendOnlySortedMap.js.map +0 -1
  192. package/lib/id-compressor/finalSpace.d.ts +0 -29
  193. package/lib/id-compressor/finalSpace.d.ts.map +0 -1
  194. package/lib/id-compressor/finalSpace.js +0 -58
  195. package/lib/id-compressor/finalSpace.js.map +0 -1
  196. package/lib/id-compressor/idCompressor.d.ts +0 -54
  197. package/lib/id-compressor/idCompressor.d.ts.map +0 -1
  198. package/lib/id-compressor/idCompressor.js +0 -491
  199. package/lib/id-compressor/idCompressor.js.map +0 -1
  200. package/lib/id-compressor/identifiers.d.ts +0 -32
  201. package/lib/id-compressor/identifiers.d.ts.map +0 -1
  202. package/lib/id-compressor/identifiers.js +0 -11
  203. package/lib/id-compressor/identifiers.js.map +0 -1
  204. package/lib/id-compressor/index.d.ts +0 -13
  205. package/lib/id-compressor/index.d.ts.map +0 -1
  206. package/lib/id-compressor/index.js +0 -13
  207. package/lib/id-compressor/index.js.map +0 -1
  208. package/lib/id-compressor/persistanceUtilities.d.ts +0 -22
  209. package/lib/id-compressor/persistanceUtilities.d.ts.map +0 -1
  210. package/lib/id-compressor/persistanceUtilities.js +0 -34
  211. package/lib/id-compressor/persistanceUtilities.js.map +0 -1
  212. package/lib/id-compressor/sessionSpaceNormalizer.d.ts +0 -46
  213. package/lib/id-compressor/sessionSpaceNormalizer.d.ts.map +0 -1
  214. package/lib/id-compressor/sessionSpaceNormalizer.js +0 -76
  215. package/lib/id-compressor/sessionSpaceNormalizer.js.map +0 -1
  216. package/lib/id-compressor/sessions.d.ts +0 -115
  217. package/lib/id-compressor/sessions.d.ts.map +0 -1
  218. package/lib/id-compressor/sessions.js +0 -290
  219. package/lib/id-compressor/sessions.js.map +0 -1
  220. package/lib/id-compressor/utilities.d.ts +0 -52
  221. package/lib/id-compressor/utilities.d.ts.map +0 -1
  222. package/lib/id-compressor/utilities.js +0 -151
  223. package/lib/id-compressor/utilities.js.map +0 -1
  224. package/src/id-compressor/README.md +0 -69
  225. package/src/id-compressor/appendOnlySortedMap.ts +0 -366
  226. package/src/id-compressor/finalSpace.ts +0 -67
  227. package/src/id-compressor/idCompressor.ts +0 -630
  228. package/src/id-compressor/identifiers.ts +0 -42
  229. package/src/id-compressor/index.ts +0 -26
  230. package/src/id-compressor/persistanceUtilities.ts +0 -58
  231. package/src/id-compressor/sessionSpaceNormalizer.ts +0 -83
  232. package/src/id-compressor/sessions.ts +0 -405
  233. package/src/id-compressor/utilities.ts +0 -190
@@ -8,9 +8,10 @@ import {
8
8
  IEnvelope,
9
9
  InboundAttachMessage,
10
10
  IAttachMessage,
11
- IdCreationRange,
12
11
  } from "@fluidframework/runtime-definitions";
12
+ import type { IdCreationRange } from "@fluidframework/id-compressor";
13
13
  import { IDataStoreAliasMessage } from "./dataStore";
14
+ import { GarbageCollectionMessage } from "./gc";
14
15
  import { IChunkedOp } from "./opLifecycle";
15
16
 
16
17
  /**
@@ -41,6 +42,12 @@ export enum ContainerMessageType {
41
42
  * See the [IdCompressor README](./id-compressor/README.md) for more details.
42
43
  */
43
44
  IdAllocation = "idAllocation",
45
+
46
+ /**
47
+ * Garbage collection specific op. This is sent by the summarizer client when GC runs. It's used to synchronize GC
48
+ * state across all clients.
49
+ */
50
+ GC = "GC",
44
51
  }
45
52
 
46
53
  /**
@@ -120,6 +127,10 @@ export type ContainerRuntimeIdAllocationMessage = TypedContainerRuntimeMessage<
120
127
  ContainerMessageType.IdAllocation,
121
128
  IdCreationRange
122
129
  >;
130
+ export type ContainerRuntimeGCMessage = TypedContainerRuntimeMessage<
131
+ ContainerMessageType.GC,
132
+ GarbageCollectionMessage
133
+ >;
123
134
 
124
135
  /**
125
136
  * Represents an unrecognized {@link TypedContainerRuntimeMessage}, e.g. a message from a future version of the container runtime.
@@ -148,6 +159,7 @@ export type InboundContainerRuntimeMessage =
148
159
  | ContainerRuntimeRejoinMessage
149
160
  | ContainerRuntimeAliasMessage
150
161
  | ContainerRuntimeIdAllocationMessage
162
+ | ContainerRuntimeGCMessage
151
163
  // Inbound messages may include unknown types from other clients, so we include that as a special case here
152
164
  | UnknownContainerRuntimeMessage;
153
165
 
@@ -160,6 +172,7 @@ export type LocalContainerRuntimeMessage =
160
172
  | ContainerRuntimeRejoinMessage
161
173
  | ContainerRuntimeAliasMessage
162
174
  | ContainerRuntimeIdAllocationMessage
175
+ | ContainerRuntimeGCMessage
163
176
  // In rare cases (e.g. related to stashed ops) we could have a local message of an unknown type
164
177
  | UnknownContainerRuntimeMessage;
165
178
 
@@ -171,7 +184,8 @@ export type OutboundContainerRuntimeMessage =
171
184
  | ContainerRuntimeBlobAttachMessage
172
185
  | ContainerRuntimeRejoinMessage
173
186
  | ContainerRuntimeAliasMessage
174
- | ContainerRuntimeIdAllocationMessage;
187
+ | ContainerRuntimeIdAllocationMessage
188
+ | ContainerRuntimeGCMessage;
175
189
 
176
190
  /**
177
191
  * An unpacked ISequencedDocumentMessage with the inner TypedContainerRuntimeMessage type/contents/etc
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/container-runtime";
9
- export const pkgVersion = "2.0.0-dev.7.4.0.217212";
9
+ export const pkgVersion = "2.0.0-dev.7.4.0.221926";
@@ -331,6 +331,7 @@ export class PendingStateManager implements IDisposable {
331
331
  /**
332
332
  * Called when the Container's connection state changes. If the Container gets connected, it replays all the pending
333
333
  * states in its queue. This includes triggering resubmission of unacked ops.
334
+ * ! Note: successfully resubmitting an op that has been successfully sequenced is not possible due to checks in the ConnectionStateHandler (Loader layer)
334
335
  */
335
336
  public replayPendingStates() {
336
337
  assert(
@@ -227,7 +227,7 @@ export interface IOrderedClientElectionEvents extends IEvent {
227
227
 
228
228
  /**
229
229
  * Serialized state of IOrderedClientElection.
230
- * @internal
230
+ * @alpha
231
231
  */
232
232
  export interface ISerializedElection {
233
233
  /** Sequence number at the time of the latest election. */
@@ -19,7 +19,7 @@ import { SummarizeReason } from "./summaryGenerator";
19
19
  /**
20
20
  * Similar to AbortSignal, but using promise instead of events
21
21
  * @param T - cancellation reason type
22
- * @internal
22
+ * @alpha
23
23
  */
24
24
  export interface ICancellationToken<T> {
25
25
  /** Tells if this cancellable token is cancelled */
@@ -33,13 +33,13 @@ export interface ICancellationToken<T> {
33
33
 
34
34
  /**
35
35
  * Similar to AbortSignal, but using promise instead of events
36
- * @internal
36
+ * @alpha
37
37
  */
38
38
  export type ISummaryCancellationToken = ICancellationToken<SummarizerStopReason>;
39
39
 
40
40
  /**
41
41
  * Data required to update internal tracking state after receiving a Summary Ack.
42
- * @internal
42
+ * @alpha
43
43
  */
44
44
  export interface IRefreshSummaryAckOptions {
45
45
  /** Handle from the ack's summary op. */
@@ -53,7 +53,7 @@ export interface IRefreshSummaryAckOptions {
53
53
  }
54
54
 
55
55
  /**
56
- * @internal
56
+ * @alpha
57
57
  */
58
58
  export interface ISummarizerInternalsProvider {
59
59
  /** Encapsulates the work to walk the internals of the running container to generate a summary */
@@ -86,7 +86,7 @@ export interface ISummarizingWarning extends ContainerWarning {
86
86
  }
87
87
 
88
88
  /**
89
- * @internal
89
+ * @alpha
90
90
  */
91
91
  export interface IConnectableRuntime {
92
92
  readonly disposed: boolean;
@@ -96,7 +96,7 @@ export interface IConnectableRuntime {
96
96
  }
97
97
 
98
98
  /**
99
- * @internal
99
+ * @alpha
100
100
  */
101
101
  export interface ISummarizerRuntime extends IConnectableRuntime {
102
102
  readonly logger: ITelemetryLoggerExt;
@@ -117,7 +117,7 @@ export interface ISummarizerRuntime extends IConnectableRuntime {
117
117
 
118
118
  /**
119
119
  * Options affecting summarize behavior.
120
- * @internal
120
+ * @alpha
121
121
  */
122
122
  export interface ISummarizeOptions {
123
123
  /** True to generate the full tree with no handle reuse optimizations; defaults to false */
@@ -132,7 +132,7 @@ export interface ISummarizeOptions {
132
132
  }
133
133
 
134
134
  /**
135
- * @internal
135
+ * @alpha
136
136
  */
137
137
  export interface ISubmitSummaryOptions extends ISummarizeOptions {
138
138
  /** Logger to use for correlated summary events */
@@ -144,7 +144,7 @@ export interface ISubmitSummaryOptions extends ISummarizeOptions {
144
144
  }
145
145
 
146
146
  /**
147
- * @internal
147
+ * @alpha
148
148
  */
149
149
  export interface IOnDemandSummarizeOptions extends ISummarizeOptions {
150
150
  /** Reason for generating summary. */
@@ -153,7 +153,7 @@ export interface IOnDemandSummarizeOptions extends ISummarizeOptions {
153
153
 
154
154
  /**
155
155
  * Options to use when enqueueing a summarize attempt.
156
- * @internal
156
+ * @alpha
157
157
  */
158
158
  export interface IEnqueueSummarizeOptions extends IOnDemandSummarizeOptions {
159
159
  /** If specified, The summarize attempt will not occur until after this sequence number. */
@@ -171,7 +171,7 @@ export interface IEnqueueSummarizeOptions extends IOnDemandSummarizeOptions {
171
171
  /**
172
172
  * In addition to the normal summary tree + stats, this contains additional stats
173
173
  * only relevant at the root of the tree.
174
- * @internal
174
+ * @alpha
175
175
  */
176
176
  export interface IGeneratedSummaryStats extends ISummaryStats {
177
177
  /** The total number of data stores in the container. */
@@ -190,7 +190,7 @@ export interface IGeneratedSummaryStats extends ISummaryStats {
190
190
 
191
191
  /**
192
192
  * Base results for all submitSummary attempts.
193
- * @internal
193
+ * @alpha
194
194
  */
195
195
  export interface IBaseSummarizeResult {
196
196
  readonly stage: "base";
@@ -203,7 +203,7 @@ export interface IBaseSummarizeResult {
203
203
 
204
204
  /**
205
205
  * Results of submitSummary after generating the summary tree.
206
- * @internal
206
+ * @alpha
207
207
  */
208
208
  export interface IGenerateSummaryTreeResult extends Omit<IBaseSummarizeResult, "stage"> {
209
209
  readonly stage: "generate";
@@ -219,7 +219,7 @@ export interface IGenerateSummaryTreeResult extends Omit<IBaseSummarizeResult, "
219
219
 
220
220
  /**
221
221
  * Results of submitSummary after uploading the tree to storage.
222
- * @internal
222
+ * @alpha
223
223
  */
224
224
  export interface IUploadSummaryResult extends Omit<IGenerateSummaryTreeResult, "stage"> {
225
225
  readonly stage: "upload";
@@ -231,7 +231,7 @@ export interface IUploadSummaryResult extends Omit<IGenerateSummaryTreeResult, "
231
231
 
232
232
  /**
233
233
  * Results of submitSummary after submitting the summarize op.
234
- * @internal
234
+ * @alpha
235
235
  */
236
236
  export interface ISubmitSummaryOpResult extends Omit<IUploadSummaryResult, "stage" | "error"> {
237
237
  readonly stage: "submit";
@@ -256,7 +256,7 @@ export interface ISubmitSummaryOpResult extends Omit<IUploadSummaryResult, "stag
256
256
  * 3. "upload" - the summary was uploaded to storage, and the result contains the server-provided handle
257
257
  *
258
258
  * 4. "submit" - the summarize op was submitted, and the result contains the op client sequence number.
259
- * @internal
259
+ * @alpha
260
260
  */
261
261
  export type SubmitSummaryResult =
262
262
  | IBaseSummarizeResult
@@ -266,13 +266,13 @@ export type SubmitSummaryResult =
266
266
 
267
267
  /**
268
268
  * The stages of Summarize, used to describe how far progress succeeded in case of a failure at a later stage.
269
- * @internal
269
+ * @alpha
270
270
  */
271
271
  export type SummaryStage = SubmitSummaryResult["stage"] | "unknown";
272
272
 
273
273
  /**
274
274
  * Type for summarization failures that are retriable.
275
- * @internal
275
+ * @alpha
276
276
  */
277
277
  export interface IRetriableFailureResult {
278
278
  readonly retryAfterSeconds?: number;
@@ -280,14 +280,14 @@ export interface IRetriableFailureResult {
280
280
 
281
281
  /**
282
282
  * The data in summarizer result when submit summary stage fails.
283
- * @internal
283
+ * @alpha
284
284
  */
285
285
  export interface SubmitSummaryFailureData extends IRetriableFailureResult {
286
286
  stage: SummaryStage;
287
287
  }
288
288
 
289
289
  /**
290
- * @internal
290
+ * @alpha
291
291
  */
292
292
  export interface IBroadcastSummaryResult {
293
293
  readonly summarizeOp: ISummaryOpMessage;
@@ -295,7 +295,7 @@ export interface IBroadcastSummaryResult {
295
295
  }
296
296
 
297
297
  /**
298
- * @internal
298
+ * @alpha
299
299
  */
300
300
  export interface IAckSummaryResult {
301
301
  readonly summaryAckOp: ISummaryAckMessage;
@@ -303,7 +303,7 @@ export interface IAckSummaryResult {
303
303
  }
304
304
 
305
305
  /**
306
- * @internal
306
+ * @alpha
307
307
  */
308
308
  export interface INackSummaryResult extends IRetriableFailureResult {
309
309
  readonly summaryNackOp: ISummaryNackMessage;
@@ -311,7 +311,7 @@ export interface INackSummaryResult extends IRetriableFailureResult {
311
311
  }
312
312
 
313
313
  /**
314
- * @internal
314
+ * @alpha
315
315
  */
316
316
  export type SummarizeResultPart<TSuccess, TFailure = undefined> =
317
317
  | {
@@ -326,7 +326,7 @@ export type SummarizeResultPart<TSuccess, TFailure = undefined> =
326
326
  };
327
327
 
328
328
  /**
329
- * @internal
329
+ * @alpha
330
330
  */
331
331
  export interface ISummarizeResults {
332
332
  /** Resolves when we generate, upload, and submit the summary. */
@@ -342,7 +342,7 @@ export interface ISummarizeResults {
342
342
  }
343
343
 
344
344
  /**
345
- * @internal
345
+ * @alpha
346
346
  */
347
347
  export type EnqueueSummarizeResult =
348
348
  | (ISummarizeResults & {
@@ -372,7 +372,7 @@ export type EnqueueSummarizeResult =
372
372
  };
373
373
 
374
374
  /**
375
- * @internal
375
+ * @alpha
376
376
  */
377
377
  export type SummarizerStopReason =
378
378
  /** Summarizer client failed to summarize in all 3 consecutive attempts. */
@@ -401,7 +401,7 @@ export type SummarizerStopReason =
401
401
  | "latestSummaryStateStale";
402
402
 
403
403
  /**
404
- * @internal
404
+ * @alpha
405
405
  */
406
406
  export interface ISummarizeEventProps {
407
407
  result: "success" | "failure" | "canceled";
@@ -411,7 +411,7 @@ export interface ISummarizeEventProps {
411
411
  }
412
412
 
413
413
  /**
414
- * @internal
414
+ * @alpha
415
415
  */
416
416
  export interface ISummarizerEvents extends IEvent {
417
417
  (event: "summarize", listener: (props: ISummarizeEventProps) => void);
@@ -19,7 +19,7 @@ import {
19
19
 
20
20
  /**
21
21
  * Interface for summary op messages with typed contents.
22
- * @internal
22
+ * @alpha
23
23
  */
24
24
  export interface ISummaryOpMessage extends ISequencedDocumentMessage {
25
25
  type: MessageType.Summarize;
@@ -28,7 +28,7 @@ export interface ISummaryOpMessage extends ISequencedDocumentMessage {
28
28
 
29
29
  /**
30
30
  * Interface for summary ack messages with typed contents.
31
- * @internal
31
+ * @alpha
32
32
  */
33
33
  export interface ISummaryAckMessage extends ISequencedDocumentMessage {
34
34
  type: MessageType.SummaryAck;
@@ -37,7 +37,7 @@ export interface ISummaryAckMessage extends ISequencedDocumentMessage {
37
37
 
38
38
  /**
39
39
  * Interface for summary nack messages with typed contents.
40
- * @internal
40
+ * @alpha
41
41
  */
42
42
  export interface ISummaryNackMessage extends ISequencedDocumentMessage {
43
43
  type: MessageType.SummaryNack;
@@ -86,7 +86,7 @@ export function hasIsolatedChannels(attributes: ReadFluidDataStoreAttributes): b
86
86
  }
87
87
 
88
88
  /**
89
- * @internal
89
+ * @alpha
90
90
  */
91
91
  export interface IContainerRuntimeMetadata extends ICreateContainerMetadata, IGCMetadata {
92
92
  readonly summaryFormatVersion: 1;
@@ -103,7 +103,7 @@ export interface IContainerRuntimeMetadata extends ICreateContainerMetadata, IGC
103
103
  }
104
104
 
105
105
  /**
106
- * @internal
106
+ * @alpha
107
107
  */
108
108
  export interface ICreateContainerMetadata {
109
109
  /** Runtime version of the container when it was first created */
@@ -114,7 +114,7 @@ export interface ICreateContainerMetadata {
114
114
 
115
115
  /**
116
116
  * The properties of an ISequencedDocumentMessage to be stored in the metadata blob in summary.
117
- * @internal
117
+ * @alpha
118
118
  */
119
119
  export type ISummaryMetadataMessage = Pick<
120
120
  ISequencedDocumentMessage,
@@ -1,124 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- /**
6
- * A map in which entries are always added in key-sorted order.
7
- * Supports appending and searching.
8
- */
9
- export declare class AppendOnlySortedMap<K, V> {
10
- protected readonly comparator: (a: K, b: K) => number;
11
- protected readonly elements: (K | V)[];
12
- /**
13
- * @param comparator - a comparator for keys
14
- */
15
- constructor(comparator: (a: K, b: K) => number);
16
- /**
17
- * @returns the number of entries in this map
18
- */
19
- get size(): number;
20
- /**
21
- * @returns the min key in the map.
22
- */
23
- minKey(): K | undefined;
24
- /**
25
- * @returns the max key in the map.
26
- */
27
- maxKey(): K | undefined;
28
- /**
29
- * @returns the min value in the map.
30
- */
31
- minValue(): V | undefined;
32
- /**
33
- * @returns the min value in the map.
34
- */
35
- maxValue(): V | undefined;
36
- /**
37
- * @returns the min key in the map.
38
- */
39
- first(): [K, V] | undefined;
40
- /**
41
- * @returns the max key in the map.
42
- */
43
- last(): [K, V] | undefined;
44
- /**
45
- * Returns the element at the insertion index.
46
- */
47
- getAtIndex(index: number): [K, V] | undefined;
48
- /**
49
- * @returns an iterable of the entries in the map.
50
- */
51
- entries(): IterableIterator<readonly [K, V]>;
52
- /**
53
- * @returns an iterable of the keys in the map.
54
- */
55
- keys(): IterableIterator<K>;
56
- /**
57
- * @returns an iterable of the values in the map.
58
- */
59
- values(): IterableIterator<V>;
60
- /**
61
- * @returns an iterable of the entries in the map, reversed.
62
- */
63
- entriesReversed(): IterableIterator<readonly [K, V]>;
64
- /**
65
- * Adds a new key/value pair to the map. `key` must be > to all keys in the map.
66
- * @param key - the key to add.
67
- * @param value - the value to add.
68
- */
69
- append(key: K, value: V): void;
70
- /**
71
- * Replaces the last key/value pair with the given one. If the map is empty, it simply appends.
72
- * `key` must be > to all keys in the map prior to the one replaced.
73
- * @param key - the key to add.
74
- * @param value - the value to add.
75
- */
76
- replaceLast(key: K, value: V): void;
77
- /**
78
- * @param key - the key to lookup.
79
- * @returns the value associated with `key` if such an entry exists, and undefined otherwise.
80
- */
81
- get(key: K): V | undefined;
82
- /**
83
- * @param key - the key to lookup.
84
- * @returns the entry associated with `key` if such an entry exists, the entry associated with the next lower key if such an entry
85
- * exists, and undefined otherwise.
86
- */
87
- getPairOrNextLower(key: K): readonly [K, V] | undefined;
88
- /**
89
- * @param key - the key to lookup.
90
- * @returns the entry associated with `key` if such an entry exists, the entry associated with the next higher key if such an entry
91
- * exists, and undefined otherwise.
92
- */
93
- getPairOrNextHigher(key: K): readonly [K, V] | undefined;
94
- /**
95
- * Compares two `AppendOnlySortedMap`s.
96
- */
97
- equals(other: AppendOnlySortedMap<K, V>, compareValues: (a: V, b: V) => boolean): boolean;
98
- /**
99
- * Test-only expensive assertions to check the internal validity of the data structure.
100
- */
101
- assertValid(): void;
102
- /**
103
- * Queries a range of entries.
104
- * @param from - the key to start the range query at, inclusive.
105
- * @param to - the key to end the range query at, inclusive.
106
- * @returns the range of entries.
107
- */
108
- getRange(from: K, to: K): IterableIterator<readonly [K, V]>;
109
- protected getPairOrNextLowerBy<T>(search: T, comparator: (search: T, key: K, value: V) => number): readonly [K, V] | undefined;
110
- private getKeyIndexOfOrNextLower;
111
- protected getPairOrNextHigherBy<T>(search: T, comparator: (search: T, key: K, value: V) => number): readonly [K, V] | undefined;
112
- private getKeyIndexOfOrNextHigher;
113
- /**
114
- * The value xor'd with the result index when a search fails.
115
- */
116
- static readonly failureXor = -1;
117
- /**
118
- * Performs a binary search on the sorted array.
119
- * @returns the index of the key for `search`, or (if not present) the index it would have been inserted into xor'd
120
- * with `failureXor`. Note that negating is not an adequate solution as that could result in -0.
121
- */
122
- static keyIndexOf<T, K, V>(elements: readonly (K | V)[], search: T, comparator: (search: T, key: K, value: V) => number): number;
123
- }
124
- //# sourceMappingURL=appendOnlySortedMap.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"appendOnlySortedMap.d.ts","sourceRoot":"","sources":["../../src/id-compressor/appendOnlySortedMap.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH;;;GAGG;AACH,qBAAa,mBAAmB,CAAC,CAAC,EAAE,CAAC;IAMjB,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,MAAM;IALxE,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAM;IAE5C;;OAEG;gBACmC,UAAU,EAAE,CAA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