@fluidframework/driver-definitions 0.42.0-43814 → 0.43.0-45120

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/src/storage.ts CHANGED
@@ -44,12 +44,20 @@ export interface IDeltasFetchResult {
44
44
  export interface IDeltaStorageService {
45
45
  /**
46
46
  * Retrieves all the delta operations within the inclusive sequence number range
47
+ * @param tenantId - Id of the tenant.
48
+ * @param id - document id.
49
+ * @param from - first op to retrieve (inclusive)
50
+ * @param to - first op not to retrieve (exclusive end)
51
+ * @param fetchReason - Reason for fetching the messages. Example, gap between seq number
52
+ * of Op on wire and known seq number. It should not contain any PII. It can be logged by
53
+ * spo which could help in debugging sessions if any issue occurs.
47
54
  */
48
55
  get(
49
56
  tenantId: string,
50
57
  id: string,
51
58
  from: number, // inclusive
52
- to: number // exclusive
59
+ to: number, // exclusive
60
+ fetchReason?: string,
53
61
  ): Promise<IDeltasFetchResult>;
54
62
  }
55
63
 
@@ -72,11 +80,15 @@ export interface IDocumentDeltaStorageService {
72
80
  * @param to - first op not to retrieve (exclusive end)
73
81
  * @param abortSignal - signal that aborts operation
74
82
  * @param cachedOnly - return only cached ops, i.e. ops available locally on client.
83
+ * @param fetchReason - Reason for fetching the messages. Example, gap between seq number
84
+ * of Op on wire and known seq number. It should not contain any PII. It can be logged by
85
+ * spo which could help in debugging sessions if any issue occurs.
75
86
  */
76
87
  fetchMessages(from: number,
77
88
  to: number | undefined,
78
89
  abortSignal?: AbortSignal,
79
90
  cachedOnly?: boolean,
91
+ fetchReason?: string,
80
92
  ): IStream<ISequencedDocumentMessage[]>;
81
93
  }
82
94
 
@@ -210,6 +222,14 @@ export interface IDocumentDeltaConnection extends IDisposable, IEventProvider<ID
210
222
  */
211
223
  checkpointSequenceNumber?: number;
212
224
 
225
+ /**
226
+ * Properties that server can send to client to tell info about node that client is connected to. For ex, for spo
227
+ * it could contain info like build version, environment, region etc. These properties can be logged by client
228
+ * to better understand server environment etc. and use it in case error occurs.
229
+ * Format: "prop1:val1;prop2:val2;prop3:val3"
230
+ */
231
+ relayServiceAgent?: string,
232
+
213
233
  /**
214
234
  * Submit a new message to the server
215
235
  */