@fluidframework/driver-definitions 2.53.0 → 2.60.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 (113) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/api-report/{driver-definitions.legacy.alpha.api.md → driver-definitions.legacy.beta.api.md} +73 -73
  3. package/dist/driverError.d.ts +10 -20
  4. package/dist/driverError.d.ts.map +1 -1
  5. package/dist/driverError.js +1 -2
  6. package/dist/driverError.js.map +1 -1
  7. package/dist/git/resources.d.ts +2 -4
  8. package/dist/git/resources.d.ts.map +1 -1
  9. package/dist/git/resources.js.map +1 -1
  10. package/dist/protocol/clients.d.ts +1 -2
  11. package/dist/protocol/clients.d.ts.map +1 -1
  12. package/dist/protocol/clients.js.map +1 -1
  13. package/dist/protocol/config.d.ts +1 -2
  14. package/dist/protocol/config.d.ts.map +1 -1
  15. package/dist/protocol/config.js.map +1 -1
  16. package/dist/protocol/consensus.d.ts +7 -14
  17. package/dist/protocol/consensus.d.ts.map +1 -1
  18. package/dist/protocol/consensus.js.map +1 -1
  19. package/dist/protocol/date.d.ts +1 -2
  20. package/dist/protocol/date.d.ts.map +1 -1
  21. package/dist/protocol/date.js.map +1 -1
  22. package/dist/protocol/protocol.d.ts +15 -30
  23. package/dist/protocol/protocol.d.ts.map +1 -1
  24. package/dist/protocol/protocol.js +2 -4
  25. package/dist/protocol/protocol.js.map +1 -1
  26. package/dist/protocol/scopes.d.ts +1 -2
  27. package/dist/protocol/scopes.d.ts.map +1 -1
  28. package/dist/protocol/scopes.js +1 -2
  29. package/dist/protocol/scopes.js.map +1 -1
  30. package/dist/protocol/sockets.d.ts +2 -4
  31. package/dist/protocol/sockets.d.ts.map +1 -1
  32. package/dist/protocol/sockets.js.map +1 -1
  33. package/dist/protocol/storage.d.ts +10 -20
  34. package/dist/protocol/storage.d.ts.map +1 -1
  35. package/dist/protocol/storage.js +2 -4
  36. package/dist/protocol/storage.js.map +1 -1
  37. package/dist/protocol/summary.d.ts +1 -2
  38. package/dist/protocol/summary.d.ts.map +1 -1
  39. package/dist/protocol/summary.js.map +1 -1
  40. package/dist/protocol/tokens.d.ts +1 -2
  41. package/dist/protocol/tokens.d.ts.map +1 -1
  42. package/dist/protocol/tokens.js.map +1 -1
  43. package/dist/storage.d.ts +17 -34
  44. package/dist/storage.d.ts.map +1 -1
  45. package/dist/storage.js +2 -4
  46. package/dist/storage.js.map +1 -1
  47. package/dist/urlResolver.d.ts +5 -10
  48. package/dist/urlResolver.d.ts.map +1 -1
  49. package/dist/urlResolver.js +1 -2
  50. package/dist/urlResolver.js.map +1 -1
  51. package/lib/driverError.d.ts +10 -20
  52. package/lib/driverError.d.ts.map +1 -1
  53. package/lib/driverError.js +1 -2
  54. package/lib/driverError.js.map +1 -1
  55. package/lib/git/resources.d.ts +2 -4
  56. package/lib/git/resources.d.ts.map +1 -1
  57. package/lib/git/resources.js.map +1 -1
  58. package/lib/protocol/clients.d.ts +1 -2
  59. package/lib/protocol/clients.d.ts.map +1 -1
  60. package/lib/protocol/clients.js.map +1 -1
  61. package/lib/protocol/config.d.ts +1 -2
  62. package/lib/protocol/config.d.ts.map +1 -1
  63. package/lib/protocol/config.js.map +1 -1
  64. package/lib/protocol/consensus.d.ts +7 -14
  65. package/lib/protocol/consensus.d.ts.map +1 -1
  66. package/lib/protocol/consensus.js.map +1 -1
  67. package/lib/protocol/date.d.ts +1 -2
  68. package/lib/protocol/date.d.ts.map +1 -1
  69. package/lib/protocol/date.js.map +1 -1
  70. package/lib/protocol/protocol.d.ts +15 -30
  71. package/lib/protocol/protocol.d.ts.map +1 -1
  72. package/lib/protocol/protocol.js +2 -4
  73. package/lib/protocol/protocol.js.map +1 -1
  74. package/lib/protocol/scopes.d.ts +1 -2
  75. package/lib/protocol/scopes.d.ts.map +1 -1
  76. package/lib/protocol/scopes.js +1 -2
  77. package/lib/protocol/scopes.js.map +1 -1
  78. package/lib/protocol/sockets.d.ts +2 -4
  79. package/lib/protocol/sockets.d.ts.map +1 -1
  80. package/lib/protocol/sockets.js.map +1 -1
  81. package/lib/protocol/storage.d.ts +10 -20
  82. package/lib/protocol/storage.d.ts.map +1 -1
  83. package/lib/protocol/storage.js +2 -4
  84. package/lib/protocol/storage.js.map +1 -1
  85. package/lib/protocol/summary.d.ts +1 -2
  86. package/lib/protocol/summary.d.ts.map +1 -1
  87. package/lib/protocol/summary.js.map +1 -1
  88. package/lib/protocol/tokens.d.ts +1 -2
  89. package/lib/protocol/tokens.d.ts.map +1 -1
  90. package/lib/protocol/tokens.js.map +1 -1
  91. package/lib/storage.d.ts +17 -34
  92. package/lib/storage.d.ts.map +1 -1
  93. package/lib/storage.js +2 -4
  94. package/lib/storage.js.map +1 -1
  95. package/lib/urlResolver.d.ts +5 -10
  96. package/lib/urlResolver.d.ts.map +1 -1
  97. package/lib/urlResolver.js +1 -2
  98. package/lib/urlResolver.js.map +1 -1
  99. package/package.json +4 -4
  100. package/src/driverError.ts +10 -20
  101. package/src/git/resources.ts +2 -4
  102. package/src/protocol/clients.ts +1 -2
  103. package/src/protocol/config.ts +1 -2
  104. package/src/protocol/consensus.ts +7 -14
  105. package/src/protocol/date.ts +1 -2
  106. package/src/protocol/protocol.ts +15 -30
  107. package/src/protocol/scopes.ts +1 -2
  108. package/src/protocol/sockets.ts +2 -4
  109. package/src/protocol/storage.ts +11 -21
  110. package/src/protocol/summary.ts +1 -2
  111. package/src/protocol/tokens.ts +1 -2
  112. package/src/storage.ts +17 -34
  113. package/src/urlResolver.ts +5 -10
@@ -6,8 +6,7 @@
6
6
  import type { TypedMessage } from "@fluidframework/core-interfaces/internal";
7
7
 
8
8
  /**
9
- * @legacy
10
- * @alpha
9
+ * @legacy @beta
11
10
  */
12
11
  export enum MessageType {
13
12
  /**
@@ -96,8 +95,7 @@ export enum SignalType {
96
95
 
97
96
  /**
98
97
  * Messages to track latency trace.
99
- * @legacy
100
- * @alpha
98
+ * @legacy @beta
101
99
  */
102
100
  export interface ITrace {
103
101
  /**
@@ -117,8 +115,7 @@ export interface ITrace {
117
115
  }
118
116
 
119
117
  /**
120
- * @legacy
121
- * @alpha
118
+ * @legacy @beta
122
119
  */
123
120
  export interface INack {
124
121
  /**
@@ -139,8 +136,7 @@ export interface INack {
139
136
 
140
137
  /**
141
138
  * Document-specific message.
142
- * @legacy
143
- * @alpha
139
+ * @legacy @beta
144
140
  */
145
141
  export interface IDocumentMessage {
146
142
  /**
@@ -195,8 +191,7 @@ export interface IDocumentSystemMessage extends IDocumentMessage {
195
191
 
196
192
  /**
197
193
  * Branch origin information.
198
- * @legacy
199
- * @alpha
194
+ * @legacy @beta
200
195
  */
201
196
  export interface IBranchOrigin {
202
197
  /**
@@ -217,8 +212,7 @@ export interface IBranchOrigin {
217
212
 
218
213
  /**
219
214
  * Sequenced message for a distributed document.
220
- * @legacy
221
- * @alpha
215
+ * @legacy @beta
222
216
  */
223
217
  export interface ISequencedDocumentMessage {
224
218
  /**
@@ -340,8 +334,7 @@ export interface ISequencedDocumentAugmentedMessage extends ISequencedDocumentMe
340
334
 
341
335
  /**
342
336
  * Common interface between incoming and outgoing signals.
343
- * @legacy
344
- * @alpha
337
+ * @legacy @beta
345
338
  */
346
339
  export interface ISignalMessageBase<TMessage extends TypedMessage = TypedMessage> {
347
340
  /**
@@ -373,8 +366,7 @@ export interface ISignalMessageBase<TMessage extends TypedMessage = TypedMessage
373
366
 
374
367
  /**
375
368
  * Interface for signals sent by the server to clients.
376
- * @legacy
377
- * @alpha
369
+ * @legacy @beta
378
370
  */
379
371
  export interface ISignalMessage<TMessage extends TypedMessage = TypedMessage>
380
372
  extends ISignalMessageBase<TMessage> {
@@ -394,8 +386,7 @@ export type ISentSignalMessage<TMessage extends TypedMessage = TypedMessage> =
394
386
  ISignalMessageBase<TMessage>;
395
387
 
396
388
  /**
397
- * @legacy
398
- * @alpha
389
+ * @legacy @beta
399
390
  */
400
391
  export interface IUploadedSummaryDetails {
401
392
  /**
@@ -405,8 +396,7 @@ export interface IUploadedSummaryDetails {
405
396
  }
406
397
 
407
398
  /**
408
- * @legacy
409
- * @alpha
399
+ * @legacy @beta
410
400
  */
411
401
  export interface ISummaryContent {
412
402
  /**
@@ -452,8 +442,7 @@ export interface IServerError {
452
442
 
453
443
  /**
454
444
  * Data about the original proposed summary message.
455
- * @legacy
456
- * @alpha
445
+ * @legacy @beta
457
446
  */
458
447
  export interface ISummaryProposal {
459
448
  /**
@@ -464,8 +453,7 @@ export interface ISummaryProposal {
464
453
 
465
454
  /**
466
455
  * Contents of summary ack expected from the server.
467
- * @legacy
468
- * @alpha
456
+ * @legacy @beta
469
457
  */
470
458
  export interface ISummaryAck {
471
459
  /**
@@ -481,8 +469,7 @@ export interface ISummaryAck {
481
469
 
482
470
  /**
483
471
  * Contents of summary nack expected from the server.
484
- * @legacy
485
- * @alpha
472
+ * @legacy @beta
486
473
  */
487
474
  export interface ISummaryNack {
488
475
  /**
@@ -512,8 +499,7 @@ export interface ISummaryNack {
512
499
 
513
500
  /**
514
501
  * Interface for nack content.
515
- * @legacy
516
- * @alpha
502
+ * @legacy @beta
517
503
  */
518
504
  export interface INackContent {
519
505
  /**
@@ -543,8 +529,7 @@ export interface INackContent {
543
529
 
544
530
  /**
545
531
  * Type of the nack.
546
- * @legacy
547
- * @alpha
532
+ * @legacy @beta
548
533
  */
549
534
  export enum NackErrorType {
550
535
  /**
@@ -5,8 +5,7 @@
5
5
 
6
6
  /**
7
7
  * Defines scope access for a Container/Document.
8
- * @legacy
9
- * @alpha
8
+ * @legacy @beta
10
9
  */
11
10
  export enum ScopeType {
12
11
  /**
@@ -10,8 +10,7 @@ import type { ITokenClaims } from "./tokens.js";
10
10
 
11
11
  /**
12
12
  * Message sent to connect to the given document.
13
- * @legacy
14
- * @alpha
13
+ * @legacy @beta
15
14
  */
16
15
  export interface IConnect {
17
16
  /**
@@ -80,8 +79,7 @@ export interface IConnect {
80
79
 
81
80
  /**
82
81
  * Message sent to indicate a client has connected to the server.
83
- * @legacy
84
- * @alpha
82
+ * @legacy @beta
85
83
  */
86
84
  export interface IConnected {
87
85
  /**
@@ -6,8 +6,7 @@
6
6
  import type { IsoDate } from "./date.js";
7
7
 
8
8
  /**
9
- * @legacy
10
- * @alpha
9
+ * @legacy @beta
11
10
  */
12
11
  export interface IDocumentAttributes {
13
12
  /**
@@ -22,8 +21,7 @@ export interface IDocumentAttributes {
22
21
  }
23
22
 
24
23
  /**
25
- * @legacy
26
- * @alpha
24
+ * @legacy @beta
27
25
  */
28
26
  export enum FileMode {
29
27
  File = "100644",
@@ -34,8 +32,7 @@ export enum FileMode {
34
32
 
35
33
  /**
36
34
  * Raw blob stored within the tree.
37
- * @legacy
38
- * @alpha
35
+ * @legacy @beta
39
36
  */
40
37
  export interface IBlob {
41
38
  /**
@@ -46,21 +43,19 @@ export interface IBlob {
46
43
  /**
47
44
  * The encoding of the contents string
48
45
  */
49
- // eslint-disable-next-line unicorn/text-encoding-identifier-case
46
+ // eslint-disable-next-line unicorn/text-encoding-identifier-case -- Cannot change "utf-8" to "utf8" as this encoding value is stored in summaries and would be a breaking change which needs to be done first before changing to utf8
50
47
  encoding: "utf-8" | "base64";
51
48
  }
52
49
 
53
50
  /**
54
- * @legacy
55
- * @alpha
51
+ * @legacy @beta
56
52
  */
57
53
  export interface IAttachment {
58
54
  id: string;
59
55
  }
60
56
 
61
57
  /**
62
- * @legacy
63
- * @alpha
58
+ * @legacy @beta
64
59
  */
65
60
  export interface ICreateBlobResponse {
66
61
  id: string;
@@ -68,8 +63,7 @@ export interface ICreateBlobResponse {
68
63
 
69
64
  /**
70
65
  * A tree entry wraps a path with a type of node.
71
- * @legacy
72
- * @alpha
66
+ * @legacy @beta
73
67
  */
74
68
  export type ITreeEntry = {
75
69
  /**
@@ -99,8 +93,7 @@ export type ITreeEntry = {
99
93
 
100
94
  /**
101
95
  * Type of entries that can be stored in a tree.
102
- * @legacy
103
- * @alpha
96
+ * @legacy @beta
104
97
  */
105
98
  export enum TreeEntry {
106
99
  Blob = "Blob",
@@ -109,8 +102,7 @@ export enum TreeEntry {
109
102
  }
110
103
 
111
104
  /**
112
- * @legacy
113
- * @alpha
105
+ * @legacy @beta
114
106
  */
115
107
  export interface ITree {
116
108
  entries: ITreeEntry[];
@@ -136,8 +128,7 @@ export interface ITree {
136
128
  }
137
129
 
138
130
  /**
139
- * @legacy
140
- * @alpha
131
+ * @legacy @beta
141
132
  */
142
133
  export interface ISnapshotTree {
143
134
  id?: string;
@@ -168,8 +159,7 @@ export interface ISnapshotTreeEx extends ISnapshotTree {
168
159
 
169
160
  /**
170
161
  * Represents a version of the snapshot of a data store.
171
- * @legacy
172
- * @alpha
162
+ * @legacy @beta
173
163
  */
174
164
  export interface IVersion {
175
165
  /**
@@ -14,8 +14,7 @@ export type SummaryObject = ISummaryTree | ISummaryBlob | ISummaryHandle | ISumm
14
14
 
15
15
  /**
16
16
  * The root of the summary tree.
17
- * @legacy
18
- * @alpha
17
+ * @legacy @beta
19
18
  */
20
19
  export type SummaryTree = ISummaryTree | ISummaryHandle;
21
20
 
@@ -9,8 +9,7 @@ import type { IUser } from "./users.js";
9
9
  * {@link https://jwt.io/introduction/ | JSON Web Token (JWT)} Claims
10
10
  *
11
11
  * See {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4}
12
- * @legacy
13
- * @alpha
12
+ * @legacy @beta
14
13
  */
15
14
  export interface ITokenClaims {
16
15
  /**
package/src/storage.ts CHANGED
@@ -73,15 +73,13 @@ export interface IDeltaStorageService {
73
73
  }
74
74
 
75
75
  /**
76
- * @legacy
77
- * @alpha
76
+ * @legacy @beta
78
77
  */
79
78
  export type IStreamResult<T> = { done: true } | { done: false; value: T };
80
79
 
81
80
  /**
82
81
  * Read interface for the Queue
83
- * @legacy
84
- * @alpha
82
+ * @legacy @beta
85
83
  */
86
84
  export interface IStream<T> {
87
85
  read(): Promise<IStreamResult<T>>;
@@ -89,8 +87,7 @@ export interface IStream<T> {
89
87
 
90
88
  /**
91
89
  * Interface to provide access to stored deltas for a shared object
92
- * @legacy
93
- * @alpha
90
+ * @legacy @beta
94
91
  */
95
92
  export interface IDocumentDeltaStorageService {
96
93
  /**
@@ -117,16 +114,14 @@ export interface IDocumentDeltaStorageService {
117
114
  // internal assumptions of the Runtime's GC feature will be violated
118
115
  // DO NOT INCREASE THIS TYPE'S VALUE
119
116
  /**
120
- * @legacy
121
- * @alpha
117
+ * @legacy @beta
122
118
  */
123
119
  export type FiveDaysMs = 432_000_000; /* 5 days in milliseconds */
124
120
 
125
121
  /**
126
122
  * Policies describing attributes or characteristics of the driver's storage service,
127
123
  * to direct how other components interact with the driver
128
- * @legacy
129
- * @alpha
124
+ * @legacy @beta
130
125
  */
131
126
  export interface IDocumentStorageServicePolicies {
132
127
  /**
@@ -147,8 +142,7 @@ export interface IDocumentStorageServicePolicies {
147
142
 
148
143
  /**
149
144
  * Interface to provide access to snapshots saved for a shared object
150
- * @legacy
151
- * @alpha
145
+ * @legacy @beta
152
146
  */
153
147
  export interface IDocumentStorageService extends Partial<IDisposable> {
154
148
  /**
@@ -221,8 +215,7 @@ export interface IDocumentStorageService extends Partial<IDisposable> {
221
215
 
222
216
  /**
223
217
  * Events emitted by {@link IDocumentService}.
224
- * @legacy
225
- * @alpha
218
+ * @legacy @beta
226
219
  */
227
220
  export interface IDocumentServiceEvents extends IEvent {
228
221
  /**
@@ -233,8 +226,7 @@ export interface IDocumentServiceEvents extends IEvent {
233
226
  }
234
227
 
235
228
  /**
236
- * @legacy
237
- * @alpha
229
+ * @legacy @beta
238
230
  */
239
231
  export interface IDocumentDeltaConnectionEvents extends IErrorEvent {
240
232
  (event: "nack", listener: (documentId: string, message: INack[]) => void);
@@ -256,8 +248,7 @@ export interface IDocumentDeltaConnectionEvents extends IErrorEvent {
256
248
  }
257
249
 
258
250
  /**
259
- * @legacy
260
- * @alpha
251
+ * @legacy @beta
261
252
  */
262
253
  export interface IDocumentDeltaConnection
263
254
  extends IDisposable,
@@ -339,8 +330,7 @@ export interface IDocumentDeltaConnection
339
330
  }
340
331
 
341
332
  /**
342
- * @legacy
343
- * @alpha
333
+ * @legacy @beta
344
334
  */
345
335
  export enum LoaderCachingPolicy {
346
336
  /**
@@ -355,8 +345,7 @@ export enum LoaderCachingPolicy {
355
345
  }
356
346
 
357
347
  /**
358
- * @legacy
359
- * @alpha
348
+ * @legacy @beta
360
349
  */
361
350
  export interface IDocumentServicePolicies {
362
351
  /**
@@ -378,8 +367,7 @@ export interface IDocumentServicePolicies {
378
367
  }
379
368
 
380
369
  /**
381
- * @legacy
382
- * @alpha
370
+ * @legacy @beta
383
371
  */
384
372
  export interface IDocumentService extends IEventProvider<IDocumentServiceEvents> {
385
373
  resolvedUrl: IResolvedUrl;
@@ -420,8 +408,7 @@ export interface IDocumentService extends IEventProvider<IDocumentServiceEvents>
420
408
  }
421
409
 
422
410
  /**
423
- * @legacy
424
- * @alpha
411
+ * @legacy @beta
425
412
  */
426
413
  export interface IDocumentServiceFactory {
427
414
  /**
@@ -463,8 +450,7 @@ export interface IDocumentServiceFactory {
463
450
  /**
464
451
  * Context for uploading a summary to storage.
465
452
  * Indicates the previously acked summary.
466
- * @legacy
467
- * @alpha
453
+ * @legacy @beta
468
454
  */
469
455
  export interface ISummaryContext {
470
456
  /**
@@ -481,8 +467,7 @@ export interface ISummaryContext {
481
467
  }
482
468
 
483
469
  /**
484
- * @legacy
485
- * @alpha
470
+ * @legacy @beta
486
471
  */
487
472
  export enum FetchSource {
488
473
  default = "default",
@@ -492,8 +477,7 @@ export enum FetchSource {
492
477
  /**
493
478
  * A "Full" container Snapshot, including ISnapshotTree, blobs and outstanding ops (and other metadata)
494
479
  *
495
- * @legacy
496
- * @alpha
480
+ * @legacy @beta
497
481
  */
498
482
  export interface ISnapshot {
499
483
  snapshotTree: ISnapshotTree;
@@ -516,8 +500,7 @@ export interface ISnapshot {
516
500
  /**
517
501
  * Snapshot fetch options which are used to communicate different things to the driver
518
502
  * when fetching the snapshot.
519
- * @legacy
520
- * @alpha
503
+ * @legacy @beta
521
504
  */
522
505
  export interface ISnapshotFetchOptions {
523
506
  /**
@@ -6,8 +6,7 @@
6
6
  import type { IRequest } from "@fluidframework/core-interfaces";
7
7
 
8
8
  /**
9
- * @legacy
10
- * @alpha
9
+ * @legacy @beta
11
10
  */
12
11
  export interface IResolvedUrl {
13
12
  type: "fluid";
@@ -22,8 +21,7 @@ export interface IResolvedUrl {
22
21
 
23
22
  /**
24
23
  * Container package info handed off to resolver.
25
- * @legacy
26
- * @alpha
24
+ * @legacy @beta
27
25
  */
28
26
  export interface IContainerPackageInfo {
29
27
  /**
@@ -33,8 +31,7 @@ export interface IContainerPackageInfo {
33
31
  }
34
32
 
35
33
  /**
36
- * @legacy
37
- * @alpha
34
+ * @legacy @beta
38
35
  */
39
36
  export interface IUrlResolver {
40
37
  // Like DNS should be able to cache resolution requests. Then possibly just have a token provider go and do stuff?
@@ -59,8 +56,7 @@ export interface IUrlResolver {
59
56
  /**
60
57
  * Information that can be returned by a lightweight, seperately exported driver function. Used to preanalyze a URL
61
58
  * for driver compatibility and preload information.
62
- * @legacy
63
- * @alpha
59
+ * @legacy @beta
64
60
  */
65
61
  export interface DriverPreCheckInfo {
66
62
  /**
@@ -77,8 +73,7 @@ export interface DriverPreCheckInfo {
77
73
 
78
74
  /**
79
75
  * Additional key in the loader request header
80
- * @legacy
81
- * @alpha
76
+ * @legacy @beta
82
77
  */
83
78
  export enum DriverHeader {
84
79
  // Key to indicate whether the request for summarizer