@fluidframework/container-runtime 2.0.0-internal.7.0.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.
- package/CHANGELOG.md +8 -0
- package/api-extractor.json +13 -1
- package/api-report/container-runtime.api.md +799 -0
- package/dist/blobManager.js +1 -1
- package/dist/blobManager.js.map +1 -1
- package/dist/connectionTelemetry.d.ts.map +1 -1
- package/dist/connectionTelemetry.js +75 -42
- package/dist/connectionTelemetry.js.map +1 -1
- package/dist/container-runtime-alpha.d.ts +1554 -0
- package/dist/container-runtime-beta.d.ts +1554 -0
- package/dist/container-runtime-public.d.ts +1554 -0
- package/dist/container-runtime.d.ts +1611 -0
- package/dist/containerRuntime.d.ts +20 -14
- package/dist/containerRuntime.d.ts.map +1 -1
- package/dist/containerRuntime.js +53 -27
- package/dist/containerRuntime.js.map +1 -1
- package/dist/error.d.ts.map +1 -1
- package/dist/error.js.map +1 -1
- package/dist/gc/gcDefinitions.d.ts +2 -2
- package/dist/gc/gcDefinitions.d.ts.map +1 -1
- package/dist/gc/gcDefinitions.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/opLifecycle/outbox.d.ts.map +1 -1
- package/dist/opLifecycle/outbox.js +7 -2
- package/dist/opLifecycle/outbox.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/pendingStateManager.d.ts.map +1 -1
- package/dist/pendingStateManager.js +3 -1
- package/dist/pendingStateManager.js.map +1 -1
- package/dist/scheduleManager.js +6 -2
- package/dist/scheduleManager.js.map +1 -1
- package/dist/summary/summarizer.d.ts +1 -0
- package/dist/summary/summarizer.d.ts.map +1 -1
- package/dist/summary/summarizer.js +14 -7
- package/dist/summary/summarizer.js.map +1 -1
- package/dist/summary/summaryCollection.d.ts.map +1 -1
- package/dist/summary/summaryCollection.js +1 -0
- package/dist/summary/summaryCollection.js.map +1 -1
- package/dist/summary/summaryGenerator.js.map +1 -1
- package/dist/summary/summaryManager.d.ts +2 -2
- package/dist/summary/summaryManager.d.ts.map +1 -1
- package/dist/summary/summaryManager.js +3 -3
- package/dist/summary/summaryManager.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/lib/blobManager.js +1 -1
- package/lib/blobManager.js.map +1 -1
- package/lib/connectionTelemetry.d.ts.map +1 -1
- package/lib/connectionTelemetry.js +76 -43
- package/lib/connectionTelemetry.js.map +1 -1
- package/lib/containerRuntime.d.ts +20 -14
- package/lib/containerRuntime.d.ts.map +1 -1
- package/lib/containerRuntime.js +52 -29
- package/lib/containerRuntime.js.map +1 -1
- package/lib/error.d.ts.map +1 -1
- package/lib/error.js.map +1 -1
- package/lib/gc/gcDefinitions.d.ts +2 -2
- package/lib/gc/gcDefinitions.d.ts.map +1 -1
- package/lib/gc/gcDefinitions.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/opLifecycle/outbox.d.ts.map +1 -1
- package/lib/opLifecycle/outbox.js +7 -2
- package/lib/opLifecycle/outbox.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/pendingStateManager.d.ts.map +1 -1
- package/lib/pendingStateManager.js +3 -1
- package/lib/pendingStateManager.js.map +1 -1
- package/lib/scheduleManager.js +6 -2
- package/lib/scheduleManager.js.map +1 -1
- package/lib/summary/summarizer.d.ts +1 -0
- package/lib/summary/summarizer.d.ts.map +1 -1
- package/lib/summary/summarizer.js +15 -8
- package/lib/summary/summarizer.js.map +1 -1
- package/lib/summary/summaryCollection.d.ts.map +1 -1
- package/lib/summary/summaryCollection.js +1 -0
- package/lib/summary/summaryCollection.js.map +1 -1
- package/lib/summary/summaryGenerator.js.map +1 -1
- package/lib/summary/summaryManager.d.ts +2 -2
- package/lib/summary/summaryManager.d.ts.map +1 -1
- package/lib/summary/summaryManager.js +3 -3
- package/lib/summary/summaryManager.js.map +1 -1
- package/package.json +25 -60
- package/src/blobManager.ts +1 -1
- package/src/connectionTelemetry.ts +97 -52
- package/src/containerRuntime.ts +70 -43
- package/src/error.ts +4 -1
- package/src/gc/gcDefinitions.ts +2 -2
- package/src/index.ts +1 -0
- package/src/opLifecycle/README.md +53 -28
- package/src/opLifecycle/outbox.ts +3 -0
- package/src/packageVersion.ts +1 -1
- package/src/pendingStateManager.ts +1 -0
- package/src/scheduleManager.ts +2 -0
- package/src/summary/summarizer.ts +20 -9
- package/src/summary/summaryCollection.ts +1 -0
- package/src/summary/summaryGenerator.ts +3 -3
- package/src/summary/summaryManager.ts +2 -2
|
@@ -0,0 +1,799 @@
|
|
|
1
|
+
## API Report File for "@fluidframework/container-runtime"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import { AttachState } from '@fluidframework/container-definitions';
|
|
8
|
+
import { ContainerWarning } from '@fluidframework/container-definitions';
|
|
9
|
+
import { FluidDataStoreRegistryEntry } from '@fluidframework/runtime-definitions';
|
|
10
|
+
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
11
|
+
import { FlushMode } from '@fluidframework/runtime-definitions';
|
|
12
|
+
import { IAudience } from '@fluidframework/container-definitions';
|
|
13
|
+
import { IClientDetails } from '@fluidframework/protocol-definitions';
|
|
14
|
+
import { IContainerContext } from '@fluidframework/container-definitions';
|
|
15
|
+
import { IContainerRuntime } from '@fluidframework/container-runtime-definitions';
|
|
16
|
+
import { IContainerRuntimeEvents } from '@fluidframework/container-runtime-definitions';
|
|
17
|
+
import { ICriticalContainerError } from '@fluidframework/container-definitions';
|
|
18
|
+
import { IDataStore } from '@fluidframework/runtime-definitions';
|
|
19
|
+
import { IDeltaManager } from '@fluidframework/container-definitions';
|
|
20
|
+
import { IDisposable } from '@fluidframework/core-interfaces';
|
|
21
|
+
import { IDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
22
|
+
import { IDocumentStorageService } from '@fluidframework/driver-definitions';
|
|
23
|
+
import { IEvent } from '@fluidframework/core-interfaces';
|
|
24
|
+
import { IEventProvider } from '@fluidframework/core-interfaces';
|
|
25
|
+
import { IFluidDataStoreContextDetached } from '@fluidframework/runtime-definitions';
|
|
26
|
+
import { IFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
|
|
27
|
+
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
28
|
+
import { IFluidHandleContext } from '@fluidframework/core-interfaces';
|
|
29
|
+
import { IFluidRouter } from '@fluidframework/core-interfaces';
|
|
30
|
+
import { IGarbageCollectionData } from '@fluidframework/runtime-definitions';
|
|
31
|
+
import { IIdCompressor } from '@fluidframework/runtime-definitions';
|
|
32
|
+
import { IIdCompressorCore } from '@fluidframework/runtime-definitions';
|
|
33
|
+
import { ILoader } from '@fluidframework/container-definitions';
|
|
34
|
+
import { ILoaderOptions } from '@fluidframework/container-definitions';
|
|
35
|
+
import { IProvideFluidHandleContext } from '@fluidframework/core-interfaces';
|
|
36
|
+
import { IQuorumClients } from '@fluidframework/protocol-definitions';
|
|
37
|
+
import { IRequest } from '@fluidframework/core-interfaces';
|
|
38
|
+
import { IResponse } from '@fluidframework/core-interfaces';
|
|
39
|
+
import { IRuntime } from '@fluidframework/container-definitions';
|
|
40
|
+
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
41
|
+
import { ISignalMessage } from '@fluidframework/protocol-definitions';
|
|
42
|
+
import { ISummaryAck } from '@fluidframework/protocol-definitions';
|
|
43
|
+
import { ISummaryContent } from '@fluidframework/protocol-definitions';
|
|
44
|
+
import { ISummaryNack } from '@fluidframework/protocol-definitions';
|
|
45
|
+
import { ISummaryStats } from '@fluidframework/runtime-definitions';
|
|
46
|
+
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
47
|
+
import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
|
|
48
|
+
import { ITelemetryContext } from '@fluidframework/runtime-definitions';
|
|
49
|
+
import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
|
|
50
|
+
import { MessageType } from '@fluidframework/protocol-definitions';
|
|
51
|
+
import { NamedFluidDataStoreRegistryEntries } from '@fluidframework/runtime-definitions';
|
|
52
|
+
import { StableId } from '@fluidframework/runtime-definitions';
|
|
53
|
+
import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
54
|
+
|
|
55
|
+
// @public
|
|
56
|
+
export const agentSchedulerId = "_scheduler";
|
|
57
|
+
|
|
58
|
+
// @public
|
|
59
|
+
export const AllowInactiveRequestHeaderKey = "allowInactive";
|
|
60
|
+
|
|
61
|
+
// @public
|
|
62
|
+
export const AllowTombstoneRequestHeaderKey = "allowTombstone";
|
|
63
|
+
|
|
64
|
+
// @public
|
|
65
|
+
export function assertIsStableId(stableId: string): StableId;
|
|
66
|
+
|
|
67
|
+
// @internal
|
|
68
|
+
export type CompatModeBehavior =
|
|
69
|
+
/** Ignore the op. It won't be persisted if this client summarizes */
|
|
70
|
+
"Ignore"
|
|
71
|
+
/** Fail processing immediately. (The container will close) */
|
|
72
|
+
| "FailToProcess";
|
|
73
|
+
|
|
74
|
+
// @public
|
|
75
|
+
export enum CompressionAlgorithms {
|
|
76
|
+
// (undocumented)
|
|
77
|
+
lz4 = "lz4"
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// @public (undocumented)
|
|
81
|
+
export enum ContainerMessageType {
|
|
82
|
+
// (undocumented)
|
|
83
|
+
Alias = "alias",
|
|
84
|
+
// (undocumented)
|
|
85
|
+
Attach = "attach",
|
|
86
|
+
// (undocumented)
|
|
87
|
+
BlobAttach = "blobAttach",
|
|
88
|
+
// (undocumented)
|
|
89
|
+
ChunkedOp = "chunkedOp",
|
|
90
|
+
// (undocumented)
|
|
91
|
+
FluidDataStoreOp = "component",
|
|
92
|
+
IdAllocation = "idAllocation",
|
|
93
|
+
// (undocumented)
|
|
94
|
+
Rejoin = "rejoin"
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// @public
|
|
98
|
+
export class ContainerRuntime extends TypedEventEmitter<IContainerRuntimeEvents & ISummarizerEvents> implements IContainerRuntime, IRuntime, ISummarizerRuntime, ISummarizerInternalsProvider, IProvideFluidHandleContext {
|
|
99
|
+
// @internal
|
|
100
|
+
protected constructor(context: IContainerContext, registry: IFluidDataStoreRegistry, metadata: IContainerRuntimeMetadata | undefined, electedSummarizerData: ISerializedElection | undefined, chunks: [string, string[]][], dataStoreAliasMap: [string, string][], runtimeOptions: Readonly<Required<IContainerRuntimeOptions>>, containerScope: FluidObject, logger: ITelemetryLoggerExt, existing: boolean, blobManagerSnapshot: IBlobManagerLoadInfo, _storage: IDocumentStorageService, idCompressor: (IIdCompressor & IIdCompressorCore) | undefined, provideEntryPoint: (containerRuntime: IContainerRuntime) => Promise<FluidObject>, requestHandler?: ((request: IRequest, runtime: IContainerRuntime) => Promise<IResponse>) | undefined, summaryConfiguration?: ISummaryConfiguration);
|
|
101
|
+
// (undocumented)
|
|
102
|
+
protected addContainerStateToSummary(summaryTree: ISummaryTreeWithStats, fullTree: boolean, trackState: boolean, telemetryContext?: ITelemetryContext): void;
|
|
103
|
+
addedGCOutboundReference(srcHandle: IFluidHandle, outboundHandle: IFluidHandle): void;
|
|
104
|
+
// (undocumented)
|
|
105
|
+
get attachState(): AttachState;
|
|
106
|
+
// (undocumented)
|
|
107
|
+
readonly clientDetails: IClientDetails;
|
|
108
|
+
// (undocumented)
|
|
109
|
+
get clientId(): string | undefined;
|
|
110
|
+
// (undocumented)
|
|
111
|
+
readonly closeFn: (error?: ICriticalContainerError) => void;
|
|
112
|
+
collectGarbage(options: {
|
|
113
|
+
logger?: ITelemetryLoggerExt;
|
|
114
|
+
runSweep?: boolean;
|
|
115
|
+
fullGC?: boolean;
|
|
116
|
+
}, telemetryContext?: ITelemetryContext): Promise<IGCStats | undefined>;
|
|
117
|
+
// (undocumented)
|
|
118
|
+
get connected(): boolean;
|
|
119
|
+
// (undocumented)
|
|
120
|
+
createDataStore(pkg: string | string[]): Promise<IDataStore>;
|
|
121
|
+
// @internal @deprecated (undocumented)
|
|
122
|
+
_createDataStoreWithProps(pkg: string | string[], props?: any, id?: string): Promise<IDataStore>;
|
|
123
|
+
// (undocumented)
|
|
124
|
+
createDetachedDataStore(pkg: Readonly<string[]>): IFluidDataStoreContextDetached;
|
|
125
|
+
// (undocumented)
|
|
126
|
+
createDetachedRootDataStore(pkg: Readonly<string[]>, rootDataStoreId: string): IFluidDataStoreContextDetached;
|
|
127
|
+
createSummary(blobRedirectTable?: Map<string, string>, telemetryContext?: ITelemetryContext): ISummaryTree;
|
|
128
|
+
deleteSweepReadyNodes(sweepReadyRoutes: string[]): string[];
|
|
129
|
+
// @deprecated (undocumented)
|
|
130
|
+
deleteUnusedNodes(unusedRoutes: string[]): string[];
|
|
131
|
+
readonly deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;
|
|
132
|
+
// (undocumented)
|
|
133
|
+
dispose(error?: Error): void;
|
|
134
|
+
// (undocumented)
|
|
135
|
+
get disposed(): boolean;
|
|
136
|
+
// (undocumented)
|
|
137
|
+
readonly disposeFn: (error?: ICriticalContainerError) => void;
|
|
138
|
+
// (undocumented)
|
|
139
|
+
enqueueSummarize(options: IEnqueueSummarizeOptions): EnqueueSummarizeResult;
|
|
140
|
+
ensureNoDataModelChanges<T>(callback: () => T): T;
|
|
141
|
+
// (undocumented)
|
|
142
|
+
get flushMode(): FlushMode;
|
|
143
|
+
readonly gcTombstoneEnforcementAllowed: boolean;
|
|
144
|
+
// (undocumented)
|
|
145
|
+
readonly getAbsoluteUrl: (relativeUrl: string) => Promise<string | undefined>;
|
|
146
|
+
getAliasedDataStoreEntryPoint(alias: string): Promise<IFluidHandle<FluidObject> | undefined>;
|
|
147
|
+
// (undocumented)
|
|
148
|
+
getAudience(): IAudience;
|
|
149
|
+
getCurrentReferenceTimestampMs(): number | undefined;
|
|
150
|
+
// (undocumented)
|
|
151
|
+
getEntryPoint(): Promise<FluidObject>;
|
|
152
|
+
getGCData(fullGC?: boolean): Promise<IGarbageCollectionData>;
|
|
153
|
+
getGCNodePackagePath(nodePath: string): Promise<readonly string[] | undefined>;
|
|
154
|
+
getNodeType(nodePath: string): GCNodeType;
|
|
155
|
+
// (undocumented)
|
|
156
|
+
getPendingLocalState(props?: {
|
|
157
|
+
notifyImminentClosure: boolean;
|
|
158
|
+
}): Promise<unknown>;
|
|
159
|
+
// (undocumented)
|
|
160
|
+
getQuorum(): IQuorumClients;
|
|
161
|
+
// @deprecated
|
|
162
|
+
getRootDataStore(id: string, wait?: boolean): Promise<IFluidRouter>;
|
|
163
|
+
// (undocumented)
|
|
164
|
+
idCompressor: (IIdCompressor & IIdCompressorCore) | undefined;
|
|
165
|
+
// (undocumented)
|
|
166
|
+
get IFluidDataStoreRegistry(): IFluidDataStoreRegistry;
|
|
167
|
+
// (undocumented)
|
|
168
|
+
get IFluidHandleContext(): IFluidHandleContext;
|
|
169
|
+
// @deprecated (undocumented)
|
|
170
|
+
get IFluidRouter(): this;
|
|
171
|
+
get isDirty(): boolean;
|
|
172
|
+
// @deprecated (undocumented)
|
|
173
|
+
static load(context: IContainerContext, registryEntries: NamedFluidDataStoreRegistryEntries, requestHandler?: (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse>, runtimeOptions?: IContainerRuntimeOptions, containerScope?: FluidObject, existing?: boolean, containerRuntimeCtor?: typeof ContainerRuntime): Promise<ContainerRuntime>;
|
|
174
|
+
static loadRuntime(params: {
|
|
175
|
+
context: IContainerContext;
|
|
176
|
+
registryEntries: NamedFluidDataStoreRegistryEntries;
|
|
177
|
+
existing: boolean;
|
|
178
|
+
runtimeOptions?: IContainerRuntimeOptions;
|
|
179
|
+
containerScope?: FluidObject;
|
|
180
|
+
containerRuntimeCtor?: typeof ContainerRuntime;
|
|
181
|
+
requestHandler?: (request: IRequest, runtime: IContainerRuntime) => Promise<IResponse>;
|
|
182
|
+
provideEntryPoint: (containerRuntime: IContainerRuntime) => Promise<FluidObject>;
|
|
183
|
+
}): Promise<ContainerRuntime>;
|
|
184
|
+
// (undocumented)
|
|
185
|
+
readonly logger: ITelemetryLoggerExt;
|
|
186
|
+
// (undocumented)
|
|
187
|
+
notifyAttaching(): void;
|
|
188
|
+
// (undocumented)
|
|
189
|
+
notifyOpReplay(message: ISequencedDocumentMessage): Promise<void>;
|
|
190
|
+
// (undocumented)
|
|
191
|
+
readonly options: ILoaderOptions;
|
|
192
|
+
// (undocumented)
|
|
193
|
+
orderSequentially<T>(callback: () => T): T;
|
|
194
|
+
// (undocumented)
|
|
195
|
+
process(messageArg: ISequencedDocumentMessage, local: boolean): void;
|
|
196
|
+
// (undocumented)
|
|
197
|
+
processSignal(message: ISignalMessage, local: boolean): void;
|
|
198
|
+
refreshLatestSummaryAck(options: IRefreshSummaryAckOptions): Promise<void>;
|
|
199
|
+
// @deprecated
|
|
200
|
+
request(request: IRequest): Promise<IResponse>;
|
|
201
|
+
resolveHandle(request: IRequest): Promise<IResponse>;
|
|
202
|
+
// (undocumented)
|
|
203
|
+
get scope(): FluidObject;
|
|
204
|
+
// (undocumented)
|
|
205
|
+
setAttachState(attachState: AttachState.Attaching | AttachState.Attached): void;
|
|
206
|
+
// (undocumented)
|
|
207
|
+
setConnectionState(connected: boolean, clientId?: string): void;
|
|
208
|
+
// (undocumented)
|
|
209
|
+
get storage(): IDocumentStorageService;
|
|
210
|
+
// (undocumented)
|
|
211
|
+
submitDataStoreAliasOp(contents: any, localOpMetadata: unknown): void;
|
|
212
|
+
// (undocumented)
|
|
213
|
+
submitDataStoreOp(id: string, contents: any, localOpMetadata?: unknown): void;
|
|
214
|
+
// (undocumented)
|
|
215
|
+
submitDataStoreSignal(address: string, type: string, content: any): void;
|
|
216
|
+
submitSignal(type: string, content: any): void;
|
|
217
|
+
submitSummary(options: ISubmitSummaryOptions): Promise<SubmitSummaryResult>;
|
|
218
|
+
summarize(options: {
|
|
219
|
+
fullTree?: boolean;
|
|
220
|
+
trackState?: boolean;
|
|
221
|
+
summaryLogger?: ITelemetryLoggerExt;
|
|
222
|
+
runGC?: boolean;
|
|
223
|
+
fullGC?: boolean;
|
|
224
|
+
runSweep?: boolean;
|
|
225
|
+
}): Promise<ISummaryTreeWithStats>;
|
|
226
|
+
// (undocumented)
|
|
227
|
+
summarizeOnDemand(options: IOnDemandSummarizeOptions): ISummarizeResults;
|
|
228
|
+
get summarizerClientId(): string | undefined;
|
|
229
|
+
updateStateBeforeGC(): Promise<void>;
|
|
230
|
+
updateTombstonedRoutes(tombstonedRoutes: string[]): void;
|
|
231
|
+
updateUnusedRoutes(unusedRoutes: string[]): void;
|
|
232
|
+
updateUsedRoutes(usedRoutes: string[]): void;
|
|
233
|
+
// (undocumented)
|
|
234
|
+
uploadBlob(blob: ArrayBufferLike, signal?: AbortSignal): Promise<IFluidHandle<ArrayBufferLike>>;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// @internal @deprecated
|
|
238
|
+
export interface ContainerRuntimeMessage {
|
|
239
|
+
compatDetails?: IContainerRuntimeMessageCompatDetails;
|
|
240
|
+
contents: any;
|
|
241
|
+
type: ContainerMessageType;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
// @public (undocumented)
|
|
245
|
+
export const DefaultSummaryConfiguration: ISummaryConfiguration;
|
|
246
|
+
|
|
247
|
+
// @public (undocumented)
|
|
248
|
+
export type EnqueueSummarizeResult = (ISummarizeResults & {
|
|
249
|
+
readonly alreadyEnqueued?: undefined;
|
|
250
|
+
}) | (ISummarizeResults & {
|
|
251
|
+
readonly alreadyEnqueued: true;
|
|
252
|
+
readonly overridden: true;
|
|
253
|
+
}) | {
|
|
254
|
+
readonly alreadyEnqueued: true;
|
|
255
|
+
readonly overridden?: undefined;
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
// @public (undocumented)
|
|
259
|
+
export class FluidDataStoreRegistry implements IFluidDataStoreRegistry {
|
|
260
|
+
constructor(namedEntries: NamedFluidDataStoreRegistryEntries);
|
|
261
|
+
// (undocumented)
|
|
262
|
+
get(name: string): Promise<FluidDataStoreRegistryEntry | undefined>;
|
|
263
|
+
// (undocumented)
|
|
264
|
+
get IFluidDataStoreRegistry(): this;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// @public
|
|
268
|
+
export function generateStableId(): StableId;
|
|
269
|
+
|
|
270
|
+
// @public
|
|
271
|
+
export interface IAckedSummary {
|
|
272
|
+
// (undocumented)
|
|
273
|
+
readonly summaryAck: ISummaryAckMessage;
|
|
274
|
+
// (undocumented)
|
|
275
|
+
readonly summaryOp: ISummaryOpMessage;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
// @public (undocumented)
|
|
279
|
+
export interface IAckSummaryResult {
|
|
280
|
+
// (undocumented)
|
|
281
|
+
readonly ackNackDuration: number;
|
|
282
|
+
// (undocumented)
|
|
283
|
+
readonly summaryAckOp: ISummaryAckMessage;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
// @public
|
|
287
|
+
export interface IBaseSummarizeResult {
|
|
288
|
+
readonly error: any;
|
|
289
|
+
// (undocumented)
|
|
290
|
+
readonly minimumSequenceNumber: number;
|
|
291
|
+
readonly referenceSequenceNumber: number;
|
|
292
|
+
// (undocumented)
|
|
293
|
+
readonly stage: "base";
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
// @public (undocumented)
|
|
297
|
+
export interface IBroadcastSummaryResult {
|
|
298
|
+
// (undocumented)
|
|
299
|
+
readonly broadcastDuration: number;
|
|
300
|
+
// (undocumented)
|
|
301
|
+
readonly summarizeOp: ISummaryOpMessage;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
// @public (undocumented)
|
|
305
|
+
export interface ICancellableSummarizerController extends ISummaryCancellationToken {
|
|
306
|
+
// (undocumented)
|
|
307
|
+
stop(reason: SummarizerStopReason): void;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
// @public
|
|
311
|
+
export interface ICancellationToken<T> {
|
|
312
|
+
readonly cancelled: boolean;
|
|
313
|
+
readonly waitCancelled: Promise<T>;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
// @public (undocumented)
|
|
317
|
+
export interface IChunkedOp {
|
|
318
|
+
// (undocumented)
|
|
319
|
+
chunkId: number;
|
|
320
|
+
// (undocumented)
|
|
321
|
+
contents: string;
|
|
322
|
+
// (undocumented)
|
|
323
|
+
originalCompression?: string;
|
|
324
|
+
// (undocumented)
|
|
325
|
+
originalMetadata?: Record<string, unknown>;
|
|
326
|
+
// (undocumented)
|
|
327
|
+
originalType: MessageType | ContainerMessageType;
|
|
328
|
+
// (undocumented)
|
|
329
|
+
totalChunks: number;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
// @public
|
|
333
|
+
export interface IClientSummaryWatcher extends IDisposable {
|
|
334
|
+
// (undocumented)
|
|
335
|
+
waitFlushed(): Promise<IAckedSummary | undefined>;
|
|
336
|
+
// (undocumented)
|
|
337
|
+
watchSummary(clientSequenceNumber: number): ISummary;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
// @public
|
|
341
|
+
export interface ICompressionRuntimeOptions {
|
|
342
|
+
readonly compressionAlgorithm: CompressionAlgorithms;
|
|
343
|
+
readonly minimumBatchSizeInBytes: number;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
// @public (undocumented)
|
|
347
|
+
export interface IConnectableRuntime {
|
|
348
|
+
// (undocumented)
|
|
349
|
+
readonly clientId: string | undefined;
|
|
350
|
+
// (undocumented)
|
|
351
|
+
readonly connected: boolean;
|
|
352
|
+
// (undocumented)
|
|
353
|
+
readonly disposed: boolean;
|
|
354
|
+
// (undocumented)
|
|
355
|
+
once(event: "connected" | "disconnected" | "dispose", listener: () => void): this;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
// @internal
|
|
359
|
+
export interface IContainerRuntimeMessageCompatDetails {
|
|
360
|
+
behavior: CompatModeBehavior;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
// @public
|
|
364
|
+
export interface IContainerRuntimeOptions {
|
|
365
|
+
readonly chunkSizeInBytes?: number;
|
|
366
|
+
readonly compressionOptions?: ICompressionRuntimeOptions;
|
|
367
|
+
readonly enableGroupedBatching?: boolean;
|
|
368
|
+
readonly enableOpReentryCheck?: boolean;
|
|
369
|
+
readonly enableRuntimeIdCompressor?: boolean;
|
|
370
|
+
readonly flushMode?: FlushMode;
|
|
371
|
+
// (undocumented)
|
|
372
|
+
readonly gcOptions?: IGCRuntimeOptions;
|
|
373
|
+
readonly loadSequenceNumberVerification?: "close" | "log" | "bypass";
|
|
374
|
+
readonly maxBatchSizeInBytes?: number;
|
|
375
|
+
// (undocumented)
|
|
376
|
+
readonly summaryOptions?: ISummaryRuntimeOptions;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
// @public
|
|
380
|
+
export interface IEnqueueSummarizeOptions extends IOnDemandSummarizeOptions {
|
|
381
|
+
readonly afterSequenceNumber?: number;
|
|
382
|
+
readonly override?: boolean;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
// @public (undocumented)
|
|
386
|
+
export interface IGCRuntimeOptions {
|
|
387
|
+
[key: string]: any;
|
|
388
|
+
disableGC?: boolean;
|
|
389
|
+
gcAllowed?: boolean;
|
|
390
|
+
runFullGC?: boolean;
|
|
391
|
+
sessionExpiryTimeoutMs?: number;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
// @public
|
|
395
|
+
export interface IGCStats {
|
|
396
|
+
attachmentBlobCount: number;
|
|
397
|
+
dataStoreCount: number;
|
|
398
|
+
nodeCount: number;
|
|
399
|
+
unrefAttachmentBlobCount: number;
|
|
400
|
+
unrefDataStoreCount: number;
|
|
401
|
+
unrefNodeCount: number;
|
|
402
|
+
updatedAttachmentBlobCount: number;
|
|
403
|
+
updatedDataStoreCount: number;
|
|
404
|
+
updatedNodeCount: number;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
// @public
|
|
408
|
+
export interface IGeneratedSummaryStats extends ISummaryStats {
|
|
409
|
+
readonly dataStoreCount: number;
|
|
410
|
+
readonly gcBlobNodeCount?: number;
|
|
411
|
+
readonly gcStateUpdatedDataStoreCount?: number;
|
|
412
|
+
readonly gcTotalBlobsSize?: number;
|
|
413
|
+
readonly summarizedDataStoreCount: number;
|
|
414
|
+
readonly summaryNumber: number;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
// @public
|
|
418
|
+
export interface IGenerateSummaryTreeResult extends Omit<IBaseSummarizeResult, "stage"> {
|
|
419
|
+
readonly forcedFullTree: boolean;
|
|
420
|
+
readonly generateDuration: number;
|
|
421
|
+
// (undocumented)
|
|
422
|
+
readonly stage: "generate";
|
|
423
|
+
readonly summaryStats: IGeneratedSummaryStats;
|
|
424
|
+
readonly summaryTree: ISummaryTree;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
// @public (undocumented)
|
|
428
|
+
export interface INackSummaryResult extends IRetriableFailureResult {
|
|
429
|
+
// (undocumented)
|
|
430
|
+
readonly ackNackDuration: number;
|
|
431
|
+
// (undocumented)
|
|
432
|
+
readonly summaryNackOp: ISummaryNackMessage;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
// @public
|
|
436
|
+
export const InactiveResponseHeaderKey = "isInactive";
|
|
437
|
+
|
|
438
|
+
// @public (undocumented)
|
|
439
|
+
export interface IOnDemandSummarizeOptions extends ISummarizeOptions {
|
|
440
|
+
readonly reason: string;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
// @public
|
|
444
|
+
export interface IRefreshSummaryAckOptions {
|
|
445
|
+
readonly ackHandle: string;
|
|
446
|
+
readonly proposalHandle: string | undefined;
|
|
447
|
+
readonly summaryLogger: ITelemetryLoggerExt;
|
|
448
|
+
readonly summaryRefSeq: number;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
// @public
|
|
452
|
+
export interface IRetriableFailureResult {
|
|
453
|
+
// (undocumented)
|
|
454
|
+
readonly retryAfterSeconds?: number;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
// @public @deprecated (undocumented)
|
|
458
|
+
export function isRuntimeMessage(message: ISequencedDocumentMessage): boolean;
|
|
459
|
+
|
|
460
|
+
// @public
|
|
461
|
+
export function isStableId(str: string): str is StableId;
|
|
462
|
+
|
|
463
|
+
// @public
|
|
464
|
+
export interface ISubmitSummaryOpResult extends Omit<IUploadSummaryResult, "stage" | "error"> {
|
|
465
|
+
readonly clientSequenceNumber: number;
|
|
466
|
+
// (undocumented)
|
|
467
|
+
readonly stage: "submit";
|
|
468
|
+
readonly submitOpDuration: number;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
// @public (undocumented)
|
|
472
|
+
export interface ISubmitSummaryOptions extends ISummarizeOptions {
|
|
473
|
+
readonly cancellationToken: ISummaryCancellationToken;
|
|
474
|
+
readonly finalAttempt?: boolean;
|
|
475
|
+
readonly summaryLogger: ITelemetryLoggerExt;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
// @public (undocumented)
|
|
479
|
+
export interface ISummarizeEventProps {
|
|
480
|
+
// (undocumented)
|
|
481
|
+
currentAttempt: number;
|
|
482
|
+
// (undocumented)
|
|
483
|
+
error?: any;
|
|
484
|
+
// (undocumented)
|
|
485
|
+
maxAttempts: number;
|
|
486
|
+
// (undocumented)
|
|
487
|
+
result: "success" | "failure" | "canceled";
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
// @public
|
|
491
|
+
export interface ISummarizeOptions {
|
|
492
|
+
readonly fullTree?: boolean;
|
|
493
|
+
// @deprecated
|
|
494
|
+
readonly refreshLatestAck?: boolean;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
// @public (undocumented)
|
|
498
|
+
export interface ISummarizer extends IEventProvider<ISummarizerEvents> {
|
|
499
|
+
// (undocumented)
|
|
500
|
+
close(): void;
|
|
501
|
+
enqueueSummarize(options: IEnqueueSummarizeOptions): EnqueueSummarizeResult;
|
|
502
|
+
readonly ISummarizer?: ISummarizer;
|
|
503
|
+
// (undocumented)
|
|
504
|
+
run(onBehalfOf: string, disableHeuristics?: boolean): Promise<SummarizerStopReason>;
|
|
505
|
+
// (undocumented)
|
|
506
|
+
stop(reason: SummarizerStopReason): void;
|
|
507
|
+
summarizeOnDemand(options: IOnDemandSummarizeOptions): ISummarizeResults;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
// @public (undocumented)
|
|
511
|
+
export interface ISummarizeResults {
|
|
512
|
+
readonly receivedSummaryAckOrNack: Promise<SummarizeResultPart<IAckSummaryResult, INackSummaryResult>>;
|
|
513
|
+
readonly summaryOpBroadcasted: Promise<SummarizeResultPart<IBroadcastSummaryResult>>;
|
|
514
|
+
readonly summarySubmitted: Promise<SummarizeResultPart<SubmitSummaryResult, SubmitSummaryFailureData>>;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
// @public (undocumented)
|
|
518
|
+
export interface ISummarizerEvents extends IEvent {
|
|
519
|
+
// (undocumented)
|
|
520
|
+
(event: "summarize", listener: (props: ISummarizeEventProps) => void): any;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
// @public (undocumented)
|
|
524
|
+
export interface ISummarizerInternalsProvider {
|
|
525
|
+
refreshLatestSummaryAck(options: IRefreshSummaryAckOptions): Promise<void>;
|
|
526
|
+
submitSummary(options: ISubmitSummaryOptions): Promise<SubmitSummaryResult>;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
// @public (undocumented)
|
|
530
|
+
export interface ISummarizerRuntime extends IConnectableRuntime {
|
|
531
|
+
// (undocumented)
|
|
532
|
+
closeFn(): void;
|
|
533
|
+
// (undocumented)
|
|
534
|
+
readonly deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;
|
|
535
|
+
// (undocumented)
|
|
536
|
+
disposeFn(): void;
|
|
537
|
+
// (undocumented)
|
|
538
|
+
readonly logger: ITelemetryLoggerExt;
|
|
539
|
+
// (undocumented)
|
|
540
|
+
off(event: "op", listener: (op: ISequencedDocumentMessage, runtimeMessage?: boolean) => void): this;
|
|
541
|
+
// (undocumented)
|
|
542
|
+
on(event: "op", listener: (op: ISequencedDocumentMessage, runtimeMessage?: boolean) => void): this;
|
|
543
|
+
readonly summarizerClientId: string | undefined;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
// @public (undocumented)
|
|
547
|
+
export interface ISummarizingWarning extends ContainerWarning {
|
|
548
|
+
// (undocumented)
|
|
549
|
+
readonly errorType: "summarizingError";
|
|
550
|
+
// (undocumented)
|
|
551
|
+
readonly logged: boolean;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
// @public
|
|
555
|
+
export interface ISummary {
|
|
556
|
+
// (undocumented)
|
|
557
|
+
readonly clientId: string;
|
|
558
|
+
// (undocumented)
|
|
559
|
+
readonly clientSequenceNumber: number;
|
|
560
|
+
// (undocumented)
|
|
561
|
+
waitAckNack(): Promise<ISummaryAckMessage | ISummaryNackMessage>;
|
|
562
|
+
// (undocumented)
|
|
563
|
+
waitBroadcast(): Promise<ISummaryOpMessage>;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
// @public
|
|
567
|
+
export interface ISummaryAckMessage extends ISequencedDocumentMessage {
|
|
568
|
+
// (undocumented)
|
|
569
|
+
contents: ISummaryAck;
|
|
570
|
+
// (undocumented)
|
|
571
|
+
type: MessageType.SummaryAck;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
// @public (undocumented)
|
|
575
|
+
export interface ISummaryBaseConfiguration {
|
|
576
|
+
initialSummarizerDelayMs: number;
|
|
577
|
+
maxAckWaitTime: number;
|
|
578
|
+
maxOpsSinceLastSummary: number;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
// @public (undocumented)
|
|
582
|
+
export type ISummaryCancellationToken = ICancellationToken<SummarizerStopReason>;
|
|
583
|
+
|
|
584
|
+
// @public (undocumented)
|
|
585
|
+
export interface ISummaryCollectionOpEvents extends IEvent {
|
|
586
|
+
// (undocumented)
|
|
587
|
+
(event: OpActionEventName, listener: OpActionEventListener): any;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
// @public (undocumented)
|
|
591
|
+
export type ISummaryConfiguration = ISummaryConfigurationDisableSummarizer | ISummaryConfigurationDisableHeuristics | ISummaryConfigurationHeuristics;
|
|
592
|
+
|
|
593
|
+
// @public (undocumented)
|
|
594
|
+
export interface ISummaryConfigurationDisableHeuristics extends ISummaryBaseConfiguration {
|
|
595
|
+
// (undocumented)
|
|
596
|
+
state: "disableHeuristics";
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
// @public (undocumented)
|
|
600
|
+
export interface ISummaryConfigurationDisableSummarizer {
|
|
601
|
+
// (undocumented)
|
|
602
|
+
state: "disabled";
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
// @public (undocumented)
|
|
606
|
+
export interface ISummaryConfigurationHeuristics extends ISummaryBaseConfiguration {
|
|
607
|
+
maxIdleTime: number;
|
|
608
|
+
maxOps: number;
|
|
609
|
+
maxTime: number;
|
|
610
|
+
minIdleTime: number;
|
|
611
|
+
minOpsForLastSummaryAttempt: number;
|
|
612
|
+
nonRuntimeHeuristicThreshold?: number;
|
|
613
|
+
nonRuntimeOpWeight: number;
|
|
614
|
+
runtimeOpWeight: number;
|
|
615
|
+
// (undocumented)
|
|
616
|
+
state: "enabled";
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
// @public
|
|
620
|
+
export interface ISummaryNackMessage extends ISequencedDocumentMessage {
|
|
621
|
+
// (undocumented)
|
|
622
|
+
contents: ISummaryNack;
|
|
623
|
+
// (undocumented)
|
|
624
|
+
type: MessageType.SummaryNack;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
// @public
|
|
628
|
+
export interface ISummaryOpMessage extends ISequencedDocumentMessage {
|
|
629
|
+
// (undocumented)
|
|
630
|
+
contents: ISummaryContent;
|
|
631
|
+
// (undocumented)
|
|
632
|
+
type: MessageType.Summarize;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
// @public (undocumented)
|
|
636
|
+
export interface ISummaryRuntimeOptions {
|
|
637
|
+
// @deprecated
|
|
638
|
+
initialSummarizerDelayMs?: number;
|
|
639
|
+
summaryConfigOverrides?: ISummaryConfiguration;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
// @public
|
|
643
|
+
export interface IUploadSummaryResult extends Omit<IGenerateSummaryTreeResult, "stage"> {
|
|
644
|
+
readonly handle: string;
|
|
645
|
+
// (undocumented)
|
|
646
|
+
readonly stage: "upload";
|
|
647
|
+
readonly uploadDuration: number;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
// @public
|
|
651
|
+
export const neverCancelledSummaryToken: ISummaryCancellationToken;
|
|
652
|
+
|
|
653
|
+
// @public (undocumented)
|
|
654
|
+
export type OpActionEventListener = (op: ISequencedDocumentMessage) => void;
|
|
655
|
+
|
|
656
|
+
// @public (undocumented)
|
|
657
|
+
export type OpActionEventName = MessageType.Summarize | MessageType.SummaryAck | MessageType.SummaryNack | "default";
|
|
658
|
+
|
|
659
|
+
// @internal
|
|
660
|
+
export interface RecentlyAddedContainerRuntimeMessageDetails {
|
|
661
|
+
compatDetails: IContainerRuntimeMessageCompatDetails;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
// @public
|
|
665
|
+
export enum RuntimeHeaders {
|
|
666
|
+
viaHandle = "viaHandle",
|
|
667
|
+
wait = "wait"
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
// @public @deprecated (undocumented)
|
|
671
|
+
export enum RuntimeMessage {
|
|
672
|
+
// (undocumented)
|
|
673
|
+
Alias = "alias",
|
|
674
|
+
// (undocumented)
|
|
675
|
+
Attach = "attach",
|
|
676
|
+
// (undocumented)
|
|
677
|
+
BlobAttach = "blobAttach",
|
|
678
|
+
// (undocumented)
|
|
679
|
+
ChunkedOp = "chunkedOp",
|
|
680
|
+
// (undocumented)
|
|
681
|
+
FluidDataStoreOp = "component",
|
|
682
|
+
// (undocumented)
|
|
683
|
+
Operation = "op",
|
|
684
|
+
// (undocumented)
|
|
685
|
+
Rejoin = "rejoin"
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
// @public
|
|
689
|
+
export interface SubmitSummaryFailureData extends IRetriableFailureResult {
|
|
690
|
+
// (undocumented)
|
|
691
|
+
stage: SummaryStage;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
// @public
|
|
695
|
+
export type SubmitSummaryResult = IBaseSummarizeResult | IGenerateSummaryTreeResult | IUploadSummaryResult | ISubmitSummaryOpResult;
|
|
696
|
+
|
|
697
|
+
// @public
|
|
698
|
+
export class Summarizer extends TypedEventEmitter<ISummarizerEvents> implements ISummarizer {
|
|
699
|
+
constructor(
|
|
700
|
+
runtime: ISummarizerRuntime, configurationGetter: () => ISummaryConfiguration,
|
|
701
|
+
internalsProvider: ISummarizerInternalsProvider, handleContext: IFluidHandleContext, summaryCollection: SummaryCollection, runCoordinatorCreateFn: (runtime: IConnectableRuntime) => Promise<ICancellableSummarizerController>);
|
|
702
|
+
// (undocumented)
|
|
703
|
+
close(): void;
|
|
704
|
+
// @deprecated
|
|
705
|
+
static create(loader: ILoader, url: string): Promise<ISummarizer>;
|
|
706
|
+
dispose(): void;
|
|
707
|
+
// (undocumented)
|
|
708
|
+
enqueueSummarize(options: IEnqueueSummarizeOptions): EnqueueSummarizeResult;
|
|
709
|
+
// (undocumented)
|
|
710
|
+
get ISummarizer(): this;
|
|
711
|
+
// (undocumented)
|
|
712
|
+
recordSummaryAttempt?(summaryRefSeqNum?: number): void;
|
|
713
|
+
// (undocumented)
|
|
714
|
+
run(onBehalfOf: string): Promise<SummarizerStopReason>;
|
|
715
|
+
stop(reason: SummarizerStopReason): void;
|
|
716
|
+
static stopReasonCanRunLastSummary(stopReason: SummarizerStopReason): boolean;
|
|
717
|
+
// (undocumented)
|
|
718
|
+
summarizeOnDemand(options: IOnDemandSummarizeOptions): ISummarizeResults;
|
|
719
|
+
// (undocumented)
|
|
720
|
+
readonly summaryCollection: SummaryCollection;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
// @public (undocumented)
|
|
724
|
+
export type SummarizeResultPart<TSuccess, TFailure = undefined> = {
|
|
725
|
+
success: true;
|
|
726
|
+
data: TSuccess;
|
|
727
|
+
} | {
|
|
728
|
+
success: false;
|
|
729
|
+
data: TFailure | undefined;
|
|
730
|
+
message: string;
|
|
731
|
+
error: any;
|
|
732
|
+
};
|
|
733
|
+
|
|
734
|
+
// @public (undocumented)
|
|
735
|
+
export type SummarizerStopReason =
|
|
736
|
+
/** Summarizer client failed to summarize in all 3 consecutive attempts. */
|
|
737
|
+
"failToSummarize"
|
|
738
|
+
/** Parent client reported that it is no longer connected. */
|
|
739
|
+
| "parentNotConnected"
|
|
740
|
+
/**
|
|
741
|
+
* Parent client reported that it is no longer elected the summarizer.
|
|
742
|
+
* This is the normal flow; a disconnect will always trigger the parent
|
|
743
|
+
* client to no longer be elected as responsible for summaries. Then it
|
|
744
|
+
* tries to stop its spawned summarizer client.
|
|
745
|
+
*/
|
|
746
|
+
| "notElectedParent"
|
|
747
|
+
/**
|
|
748
|
+
* We are not already running the summarizer and we are not the current elected client id.
|
|
749
|
+
*/
|
|
750
|
+
| "notElectedClient"
|
|
751
|
+
/** Summarizer client was disconnected */
|
|
752
|
+
| "summarizerClientDisconnected"
|
|
753
|
+
/** running summarizer threw an exception */
|
|
754
|
+
| "summarizerException"
|
|
755
|
+
/**
|
|
756
|
+
* The previous summary state on the summarizer is not the most recently acked summary. this also happens when the
|
|
757
|
+
* first submitSummary attempt fails for any reason and there's a 2nd summary attempt without an ack
|
|
758
|
+
*/
|
|
759
|
+
| "latestSummaryStateStale";
|
|
760
|
+
|
|
761
|
+
// @public
|
|
762
|
+
export class SummaryCollection extends TypedEventEmitter<ISummaryCollectionOpEvents> {
|
|
763
|
+
constructor(deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>, logger: ITelemetryLoggerExt);
|
|
764
|
+
// (undocumented)
|
|
765
|
+
addOpListener(listener: () => void): void;
|
|
766
|
+
createWatcher(clientId: string): IClientSummaryWatcher;
|
|
767
|
+
// (undocumented)
|
|
768
|
+
emit(event: OpActionEventName, ...args: Parameters<OpActionEventListener>): boolean;
|
|
769
|
+
// (undocumented)
|
|
770
|
+
get latestAck(): IAckedSummary | undefined;
|
|
771
|
+
// (undocumented)
|
|
772
|
+
get opsSinceLastAck(): number;
|
|
773
|
+
// (undocumented)
|
|
774
|
+
removeOpListener(listener: () => void): void;
|
|
775
|
+
// (undocumented)
|
|
776
|
+
removeWatcher(clientId: string): void;
|
|
777
|
+
// (undocumented)
|
|
778
|
+
setPendingAckTimerTimeoutCallback(maxAckWaitTime: number, timeoutCallback: () => void): void;
|
|
779
|
+
// (undocumented)
|
|
780
|
+
unsetPendingAckTimerTimeoutCallback(): void;
|
|
781
|
+
waitFlushed(): Promise<IAckedSummary | undefined>;
|
|
782
|
+
waitSummaryAck(referenceSequenceNumber: number): Promise<IAckedSummary>;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
// @public
|
|
786
|
+
export type SummaryStage = SubmitSummaryResult["stage"] | "unknown";
|
|
787
|
+
|
|
788
|
+
// @public
|
|
789
|
+
export function TEST_requestSummarizer(loader: ILoader, url: string): Promise<ISummarizer>;
|
|
790
|
+
|
|
791
|
+
// @public
|
|
792
|
+
export const TombstoneResponseHeaderKey = "isTombstoned";
|
|
793
|
+
|
|
794
|
+
// @internal
|
|
795
|
+
export function unpackRuntimeMessage(message: ISequencedDocumentMessage): boolean;
|
|
796
|
+
|
|
797
|
+
// (No @packageDocumentation comment for this package)
|
|
798
|
+
|
|
799
|
+
```
|