@fluidframework/odsp-driver-definitions 2.0.0-rc.2.0.2 → 2.0.0-rc.3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/api-report/odsp-driver-definitions.api.md +7 -4
  3. package/beta.d.ts +11 -0
  4. package/dist/beta.d.ts +14 -0
  5. package/dist/errors.d.ts +2 -1
  6. package/dist/errors.d.ts.map +1 -1
  7. package/dist/errors.js +2 -2
  8. package/dist/errors.js.map +1 -1
  9. package/dist/index.d.ts +1 -1
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js.map +1 -1
  12. package/dist/legacy.d.ts +43 -0
  13. package/dist/odspCache.d.ts +1 -1
  14. package/dist/odspCache.d.ts.map +1 -1
  15. package/dist/odspCache.js.map +1 -1
  16. package/dist/public.d.ts +12 -0
  17. package/dist/resolvedUrl.d.ts +1 -1
  18. package/dist/resolvedUrl.d.ts.map +1 -1
  19. package/dist/resolvedUrl.js.map +1 -1
  20. package/dist/sessionProvider.d.ts +1 -1
  21. package/dist/sessionProvider.d.ts.map +1 -1
  22. package/dist/sessionProvider.js.map +1 -1
  23. package/dist/tokenFetch.d.ts +5 -1
  24. package/dist/tokenFetch.d.ts.map +1 -1
  25. package/dist/tokenFetch.js.map +1 -1
  26. package/internal.d.ts +11 -0
  27. package/legacy.d.ts +11 -0
  28. package/lib/beta.d.ts +14 -0
  29. package/lib/errors.d.ts +2 -1
  30. package/lib/errors.d.ts.map +1 -1
  31. package/lib/errors.js +1 -1
  32. package/lib/errors.js.map +1 -1
  33. package/lib/index.d.ts +1 -1
  34. package/lib/index.d.ts.map +1 -1
  35. package/lib/index.js.map +1 -1
  36. package/lib/legacy.d.ts +43 -0
  37. package/lib/odspCache.d.ts +1 -1
  38. package/lib/odspCache.d.ts.map +1 -1
  39. package/lib/odspCache.js.map +1 -1
  40. package/lib/public.d.ts +12 -0
  41. package/lib/resolvedUrl.d.ts +1 -1
  42. package/lib/resolvedUrl.d.ts.map +1 -1
  43. package/lib/resolvedUrl.js.map +1 -1
  44. package/lib/sessionProvider.d.ts +1 -1
  45. package/lib/sessionProvider.d.ts.map +1 -1
  46. package/lib/sessionProvider.js.map +1 -1
  47. package/lib/tokenFetch.d.ts +5 -1
  48. package/lib/tokenFetch.d.ts.map +1 -1
  49. package/lib/tokenFetch.js.map +1 -1
  50. package/package.json +27 -48
  51. package/src/errors.ts +3 -5
  52. package/src/index.ts +1 -0
  53. package/src/odspCache.ts +1 -1
  54. package/src/resolvedUrl.ts +1 -1
  55. package/src/sessionProvider.ts +1 -1
  56. package/src/tokenFetch.ts +9 -0
  57. package/api-extractor-cjs.json +0 -8
  58. package/dist/odsp-driver-definitions-alpha.d.ts +0 -574
  59. package/dist/odsp-driver-definitions-beta.d.ts +0 -92
  60. package/dist/odsp-driver-definitions-public.d.ts +0 -80
  61. package/dist/odsp-driver-definitions-untrimmed.d.ts +0 -608
  62. package/lib/odsp-driver-definitions-alpha.d.ts +0 -574
  63. package/lib/odsp-driver-definitions-beta.d.ts +0 -92
  64. package/lib/odsp-driver-definitions-public.d.ts +0 -80
  65. package/lib/odsp-driver-definitions-untrimmed.d.ts +0 -608
  66. /package/{dist → lib}/tsdoc-metadata.json +0 -0
@@ -1,574 +0,0 @@
1
- import { DriverError } from '@fluidframework/driver-definitions';
2
- import { FiveDaysMs } from '@fluidframework/driver-definitions';
3
- import { IDriverErrorBase } from '@fluidframework/driver-definitions';
4
- import { IResolvedUrl } from '@fluidframework/driver-definitions';
5
-
6
- /**
7
- * @alpha
8
- */
9
- export declare type CacheContentType = "snapshot" | "ops";
10
-
11
- /* Excluded from this release type: getKeyForCacheEntry */
12
-
13
- /**
14
- * @alpha
15
- */
16
- export declare interface HostStoragePolicy {
17
- snapshotOptions?: ISnapshotOptions;
18
- /**
19
- * If set to true, tells driver to concurrently fetch snapshot from storage (SPO) and cache
20
- * Container loads from whatever comes first in such case.
21
- * Snapshot fetched from storage is pushed to cache in either case.
22
- * If set to false, driver will first consult with cache. Only on cache miss (cache does not
23
- * return snapshot), driver will fetch snapshot from storage (and push it to cache), otherwise
24
- * it will load from cache and not reach out to storage.
25
- * Passing true results in faster loads and keeping cache more current, but it increases bandwidth consumption.
26
- */
27
- concurrentSnapshotFetch?: boolean;
28
- opsBatchSize?: number;
29
- concurrentOpsBatches?: number;
30
- /**
31
- * Policy controlling ops caching (leveraging IPersistedCache passed to driver factory)
32
- */
33
- opsCaching?: IOpsCachingPolicy;
34
- /**
35
- * Policy controlling how collaboration session is established
36
- */
37
- sessionOptions?: ICollabSessionOptions;
38
- /**
39
- * @deprecated This field will be always set to true after removal.
40
- * True to have the sharing link redeem fallback in case the Trees Latest/Redeem 1RT call fails with redeem error.
41
- * During fallback it will first redeem the sharing link and then make the Trees latest call.
42
- */
43
- enableRedeemFallback?: boolean;
44
- /**
45
- * Policy controlling if we will cache initial summary when we create a document
46
- */
47
- cacheCreateNewSummary?: boolean;
48
- /**
49
- * @deprecated This will be replaced with feature gate snapshotFormatFetchType.
50
- * Policy controlling if we want to fetch binary format snapshot.
51
- */
52
- fetchBinarySnapshotFormat?: boolean;
53
- /**
54
- * If set to true, socket cache are per OdspDocumentService instead of shared across all instances
55
- */
56
- isolateSocketCache?: boolean;
57
- /**
58
- * @deprecated Switch to using the new feature gated by enableSingleRequestForShareLinkWithCreate
59
- * with 'createLinkScope' and 'createLinkRole' is requested to the odsp apis instead of 'createLinkType'.
60
- * It enables the creation of sharing link along with the creation of file by setting this value to true.
61
- * If the host provides a 'createLinkType' parameter in the request URL to the container.attach()
62
- * method, we will send the request to ODSP with the same (if the flag is enabled) so
63
- * that a share link can be created with the creation of file to save number for round trips made to ODSP.
64
- * (This flag works independently of enableSingleRequestForShareLinkWithCreate which is used for sharing link
65
- * requests where 'createLinkScope' is requested.)
66
- */
67
- enableShareLinkWithCreate?: boolean;
68
- /**
69
- * Enable creation of sharing link along with the creation of file by setting this value to true.
70
- * If the host provides a 'createLinkScope' parameter in the request URL to the container.attach()
71
- * method, we will send the request to ODSP with the same (if the flag is enabled) so
72
- * that a share link can be created with the creation of file to save number for round trips made to ODSP.
73
- * (This flag works independently of enableShareLinkWithCreate which was used for old sharing link requests
74
- * where 'createLinkType' was requested.)
75
- */
76
- enableSingleRequestForShareLinkWithCreate?: boolean;
77
- /**
78
- * True if host does not want the storage service to use the prefetch cache to get the snapshot. Undefined will be treated
79
- * as false. This is if the host wants to do some A/B testing.
80
- */
81
- avoidPrefetchSnapshotCache?: boolean;
82
- }
83
-
84
- /**
85
- * Cache entry. Identifies file that this entry belongs to, and type of content stored in it.
86
- * @alpha
87
- */
88
- export declare interface ICacheEntry extends IEntry {
89
- /**
90
- * Identifies file in storage this cached entry is for
91
- */
92
- file: IFileEntry;
93
- }
94
-
95
- /**
96
- * @alpha
97
- */
98
- export declare interface ICollabSessionOptions {
99
- /**
100
- * Value indicating the display name for session that admits unauthenticated user.
101
- * This name will be used in attribution associated with edits made by such user.
102
- */
103
- unauthenticatedUserDisplayName?: string;
104
- /**
105
- * @deprecated Due to security reasons we will be passing the token via Authorization header only.
106
- * Value indicating session preference to always pass access token via Authorization header.
107
- * Default behavior is to pass access token via query parameter unless overall href string
108
- * length exceeds 2048 characters. Using query param is performance optimization which results
109
- * in ODSP XHR request being treated as 'simple' request which do not require OPTIONS call to
110
- * validate CORS. However, not all ODSP implementations understand this optimization.
111
- * For instance, auth layer on Converged stack will fail request with access token passed via
112
- * query param.
113
- */
114
- forceAccessTokenViaAuthorizationHeader?: boolean;
115
- }
116
-
117
- /**
118
- * Identity types supported by ODSP driver.
119
- * `Consumer` represents user authenticated with Microsoft Account (MSA).
120
- * `Enterprise` represents user authenticated with M365 tenant account.
121
- * @alpha
122
- */
123
- export declare type IdentityType = "Consumer" | "Enterprise";
124
-
125
- /**
126
- * Cache entry. Identifies file that this entry belongs to, and type of content stored in it.
127
- * @alpha
128
- */
129
- export declare interface IEntry {
130
- /**
131
- * Identifies type of entry for a given file.
132
- * Each file can have multiple types of entries associated with it.
133
- * For example, it can be snapshot, blob, ops, etc.
134
- */
135
- type: CacheContentType;
136
- /**
137
- * Identifies individual entry for a given file and type.
138
- * Each file can have multiple cache entries associated with it.
139
- * This property identifies a particular instance of entry.
140
- * For example, for blobs it will be unique ID of the blob in a file.
141
- * For batch of ops, it can be starting op sequence number.
142
- * For types that have only one entry (like snapshots), it will be empty string.
143
- */
144
- key: string;
145
- }
146
-
147
- /**
148
- * @alpha
149
- */
150
- export declare interface IFileEntry {
151
- /**
152
- * Unique and stable ID of the document.
153
- * Driver guarantees that docId is stable ID uniquely identifying document.
154
- */
155
- docId: string;
156
- /**
157
- * Resolved URI is provided for additional versatility - host can use it to
158
- * identify file in storage, and (as example) delete all cached entries for
159
- * a file if user requests so.
160
- * This is IOdspResolvedUrl in case of ODSP driver.
161
- */
162
- resolvedUrl: IResolvedUrl;
163
- }
164
-
165
- /* Excluded from this release type: InstrumentedStorageTokenFetcher */
166
-
167
- /**
168
- * Base interface for all errors and warnings
169
- * Superset of IDriverErrorBase, but with Odsp-specific errorType and properties
170
- * @alpha
171
- */
172
- export declare interface IOdspError extends Omit<IDriverErrorBase, "errorType">, IOdspErrorAugmentations {
173
- readonly errorType: OdspErrorTypes;
174
- }
175
-
176
- /**
177
- * @alpha
178
- */
179
- export declare interface IOdspErrorAugmentations {
180
- /**
181
- * Server epoch indicates when the file was last modified.
182
- * Used to detect modifications outside Fluid's services
183
- */
184
- serverEpoch?: string;
185
- /**
186
- * It is the redirection url at which the network call should have been made. It is due to change
187
- * in site domain of the file on server.
188
- */
189
- redirectLocation?: string;
190
- /**
191
- * It is array of error codes included in error response from server.
192
- */
193
- facetCodes?: string[];
194
- }
195
-
196
- /**
197
- * @alpha
198
- */
199
- export declare interface IOdspResolvedUrl extends IResolvedUrl, IOdspUrlParts {
200
- type: "fluid";
201
- odspResolvedUrl: true;
202
- url: string;
203
- hashedDocumentId: string;
204
- endpoints: {
205
- snapshotStorageUrl: string;
206
- attachmentPOSTStorageUrl: string;
207
- attachmentGETStorageUrl: string;
208
- deltaStorageUrl: string;
209
- };
210
- tokens: {};
211
- fileName: string;
212
- summarizer: boolean;
213
- codeHint?: {
214
- containerPackageName?: string;
215
- };
216
- fileVersion: string | undefined;
217
- dataStorePath?: string;
218
- /**
219
- * Sharing link data created for the ODSP item.
220
- * Contains information about either sharing link created while creating a new file or
221
- * a redeemable share link created when loading an existing file
222
- */
223
- shareLinkInfo?: ShareLinkInfoType;
224
- isClpCompliantApp?: boolean;
225
- }
226
-
227
- /**
228
- * @alpha
229
- */
230
- export declare interface IOdspUrlParts {
231
- siteUrl: string;
232
- driveId: string;
233
- itemId: string;
234
- }
235
-
236
- /**
237
- * @alpha
238
- */
239
- export declare interface IOpsCachingPolicy {
240
- /**
241
- * Batch size. Controls how many ops are grouped together as single cache entry
242
- * The bigger the number, the more efficient it is (less reads & writes)
243
- * At the same time, big number means we wait for so many ops to accumulate, which
244
- * increases chances and number of trailing ops that would not be flushed to cache
245
- * when user closes tab
246
- * Use any number below 1 to disable caching
247
- * Default: 100
248
- */
249
- batchSize?: number;
250
- /**
251
- * To reduce the problem of losing trailing ops when using big batch sizes, host
252
- * could specify how often driver should flush ops it has not flushed yet.
253
- * -1 means do not use timer.
254
- * Measured in ms.
255
- * Default: 5000
256
- */
257
- timerGranularity?: number;
258
- /**
259
- * Total number of ops to cache. When we reach that number, ops caching stops
260
- * Default: 5000
261
- */
262
- totalOpsToCache?: number;
263
- }
264
-
265
- /**
266
- * Persistent cache. This interface can be implemented by the host to provide durable caching
267
- * across sessions. If not provided at driver factory construction, factory will use in-memory
268
- * cache implementation that does not survive across sessions. Snapshot entires stored in the
269
- * IPersistedCache will be considered stale and removed after 2 days. Read the README for more
270
- * information.
271
- * @alpha
272
- */
273
- export declare interface IPersistedCache {
274
- /**
275
- * Get the cache value of the key
276
- * @param entry - cache entry, identifies file and particular key for this file.
277
- * @returns Cached value. undefined if nothing is cached.
278
- */
279
- get(entry: ICacheEntry): Promise<any>;
280
- /**
281
- * Put the value into cache.
282
- * Important - only serializable content is allowed since this cache may be persisted between sessions
283
- * @param entry - cache entry.
284
- * @param value - JSON-serializable content.
285
- */
286
- put(entry: ICacheEntry, value: any): Promise<void>;
287
- /**
288
- * Removes the entries from the cache for given parametres.
289
- * @param file - file entry to be deleted.
290
- */
291
- removeEntries(file: IFileEntry): Promise<void>;
292
- }
293
-
294
- /**
295
- * An interface that allows a concrete instance of a driver factory to interrogate itself
296
- * to find out if it is session aware.
297
- * @alpha
298
- */
299
- export declare interface IProvideSessionAwareDriverFactory {
300
- readonly IRelaySessionAwareDriverFactory: IRelaySessionAwareDriverFactory;
301
- }
302
-
303
- /**
304
- * An interface that allows a concrete instance of a driver factory to call the `getRelayServiceSessionInfo`
305
- * function if it session aware.
306
- * @alpha
307
- */
308
- export declare interface IRelaySessionAwareDriverFactory extends IProvideSessionAwareDriverFactory {
309
- getRelayServiceSessionInfo(resolvedUrl: IResolvedUrl): Promise<ISocketStorageDiscovery | undefined>;
310
- }
311
-
312
- /**
313
- * Sharing link data received from the /snapshot api response.
314
- * @alpha
315
- */
316
- export declare interface ISharingLink extends ISharingLinkKind {
317
- webUrl: string;
318
- }
319
-
320
- /**
321
- * Defines the permissions scope for a share link requested to be created during the creation the file in ODSP.
322
- * Providing these properties to the /snapshot api will also create and return the requested kind of sharing link.
323
- * @alpha
324
- */
325
- export declare interface ISharingLinkKind {
326
- scope: SharingLinkScope;
327
- role?: SharingLinkRole;
328
- }
329
-
330
- /**
331
- * @alpha
332
- */
333
- export declare interface ISnapshotOptions {
334
- blobs?: number;
335
- deltas?: number;
336
- channels?: number;
337
- /**
338
- * Maximum Data size (in bytes)
339
- *
340
- * @remarks
341
- * If specified, SPO will fail snapshot request with 413 error (see {@link @fluidframework/odsp-driver-definitions#(OdspErrorTypes:variable).snapshotTooBig})
342
- * if snapshot is bigger in size than specified limit.
343
- */
344
- mds?: number;
345
- timeout?: number;
346
- }
347
-
348
- /**
349
- * Socket storage discovery api response
350
- * @alpha
351
- */
352
- export declare interface ISocketStorageDiscovery {
353
- id: string;
354
- runtimeTenantId?: string;
355
- tenantId: string;
356
- snapshotStorageUrl: string;
357
- deltaStorageUrl: string;
358
- /**
359
- * PUSH URL
360
- */
361
- deltaStreamSocketUrl: string;
362
- /**
363
- * The access token for PushChannel. Optionally returned, depending on implementation.
364
- * OneDrive for Consumer implementation returns it and OneDrive for Business implementation
365
- * does not return it and instead expects token to be returned via `getWebsocketToken` callback
366
- * passed as a parameter to `OdspDocumentService.create()` factory.
367
- */
368
- socketToken?: string;
369
- /**
370
- * This is the time within which client has to refresh the session on (ODSP) relay service.
371
- */
372
- refreshSessionDurationSeconds?: number;
373
- /**
374
- * Represent the sensitivity labels info for the file. Keeping it optional for back-compat. The
375
- * response will contain empty labels when the file has no labels, so this field will be there
376
- * even if file has no labels when the service will implement this contract.
377
- */
378
- sensitivityLabelsInfo?: string;
379
- }
380
-
381
- /* Excluded from this release type: isTokenFromCache */
382
-
383
- /* Excluded from this release type: maximumCacheDurationMs */
384
-
385
- /**
386
- * @alpha
387
- */
388
- export declare type OdspError = IOdspError | (DriverError & IOdspErrorAugmentations);
389
-
390
- /**
391
- * ODSP Error types.
392
- * Different error types that may be thrown by the ODSP driver.
393
- * @alpha
394
- */
395
- export declare const OdspErrorTypes: {
396
- /**
397
- * Invalid file name (at creation of the file)
398
- */
399
- readonly invalidFileNameError: "invalidFileNameError";
400
- /**
401
- * Snapshot is too big. Host application specified limit for snapshot size, and snapshot was bigger
402
- * that that limit, thus request failed. Hosting application is expected to have fall-back behavior for
403
- * such case.
404
- */
405
- readonly snapshotTooBig: "snapshotTooBig";
406
- /**
407
- * Maximum time limit to fetch reached. Host application specified limit for fetching of snapshot, when
408
- * that limit is reached, request fails. Hosting application is expected to have fall-back behavior for
409
- * such case.
410
- */
411
- readonly fetchTimeout: "fetchTimeout";
412
- /**
413
- * SPO admin toggle: fluid service is not enabled.
414
- */
415
- readonly fluidNotEnabled: "fluidNotEnabled";
416
- /**
417
- * This error will be raised when client is too behind with no way to catch up.
418
- * This condition will happen when user was offline for too long, resulting in old ops / blobs being deleted
419
- * by storage, and thus removing an ability for client to catch up.
420
- * This condition will result in any local changes being lost (i.e. only way to save state is by user
421
- * copying it over manually)
422
- */
423
- readonly cannotCatchUp: "cannotCatchUp";
424
- /**
425
- * SPO can occasionally return 403 for r/w operations on document when there is a fail over to another data center.
426
- * So to preserve integrity of the data, the data becomes readonly.
427
- */
428
- readonly serviceReadOnly: "serviceReadOnly";
429
- /**
430
- * Due to organizational policies, you can't access server resources from the current network location.
431
- */
432
- readonly blockedIPAddress: "blockedIPAddress";
433
- readonly genericNetworkError: "genericNetworkError";
434
- readonly authorizationError: "authorizationError";
435
- readonly fileNotFoundOrAccessDeniedError: "fileNotFoundOrAccessDeniedError";
436
- readonly offlineError: "offlineError";
437
- readonly unsupportedClientProtocolVersion: "unsupportedClientProtocolVersion";
438
- readonly writeError: "writeError";
439
- readonly fetchFailure: "fetchFailure";
440
- readonly fetchTokenError: "fetchTokenError";
441
- readonly incorrectServerResponse: "incorrectServerResponse";
442
- readonly fileOverwrittenInStorage: "fileOverwrittenInStorage";
443
- readonly deltaStreamConnectionForbidden: "deltaStreamConnectionForbidden";
444
- readonly locationRedirection: "locationRedirection";
445
- readonly fluidInvalidSchema: "fluidInvalidSchema";
446
- readonly fileIsLocked: "fileIsLocked";
447
- readonly outOfStorageError: "outOfStorageError";
448
- readonly genericError: "genericError";
449
- readonly throttlingError: "throttlingError";
450
- readonly usageError: "usageError";
451
- };
452
-
453
- /**
454
- * @alpha
455
- */
456
- export declare type OdspErrorTypes = (typeof OdspErrorTypes)[keyof typeof OdspErrorTypes];
457
-
458
- /**
459
- * Represents access token fetch options for ODSP resource
460
- * @alpha
461
- */
462
- export declare interface OdspResourceTokenFetchOptions extends TokenFetchOptions {
463
- /** Site url representing ODSP resource location */
464
- siteUrl: string;
465
- /** ODSP drive id where resource resides. Optional, used only when fetching token to access ODSP file */
466
- driveId?: string;
467
- /** ODSP item id representing resource. Optional, used only when fetching token to access ODSP file */
468
- itemId?: string;
469
- }
470
-
471
- /**
472
- * Sharing link data created for the ODSP item.
473
- * Contains information about either sharing link created while creating a new file or
474
- * a redeemable share link created when loading an existing file
475
- * @alpha
476
- */
477
- export declare interface ShareLinkInfoType {
478
- /**
479
- * We create a new file in ODSP with the /snapshot api call. Applications then need to make a separate apis call to
480
- * create a sharing link for that file. To reduce the number of network calls, ODSP now provides a feature
481
- * where we can create a share link along with creating a file by passing a query parameter called
482
- * createShareLink (deprecated) or createLinkScope and createLinkRole. createLink object below saves the information
483
- * from the /snapshot api response.
484
- */
485
- createLink?: {
486
- /**
487
- * Share link created when the file is created for the first time with /snapshot api call.
488
- */
489
- link?: ISharingLink;
490
- /**
491
- * Error message if creation of sharing link fails with /snapshot api call
492
- */
493
- error?: any;
494
- shareId?: string;
495
- };
496
- /**
497
- * This is used to save the network calls while doing trees/latest call as if the client does not have
498
- * permission then this link can be redeemed for the permissions in the same network call.
499
- */
500
- sharingLinkToRedeem?: string;
501
- }
502
-
503
- /**
504
- * View/edit permission role for a sharing link.
505
- * @alpha
506
- */
507
- export declare enum SharingLinkRole {
508
- view = "view",
509
- edit = "edit"
510
- }
511
-
512
- /**
513
- * Sharing scope of the share links created for a file.
514
- * @alpha
515
- */
516
- export declare enum SharingLinkScope {
517
- organization = "organization",
518
- users = "users",
519
- anonymous = "anonymous",
520
- default = "default"
521
- }
522
-
523
- /* Excluded from this release type: snapshotKey */
524
-
525
- /**
526
- * Method signature for callback method used to fetch access token
527
- * @param options - token fetch options
528
- * @returns If successful, TokenResponse object representing token value along with flag indicating
529
- * whether token came from cache. Legacy implementation may return a string for token value;
530
- * in this case it should be assumes that fromCache signal is undefined. Null is returned in case of failure.
531
- * @alpha
532
- */
533
- export declare type TokenFetcher<T> = (options: T) => Promise<string | TokenResponse | null>;
534
-
535
- /**
536
- * Represents access token fetch options
537
- * @alpha
538
- */
539
- export declare interface TokenFetchOptions {
540
- /**
541
- * Value indicating whether fresh token has to be returned.
542
- * If false then it is okay to return cached unexpired token if available.
543
- */
544
- refresh: boolean;
545
- /**
546
- * Claims that have to be passed with token fetch request.
547
- * These can be used to specify additional information that must be passed to token authority.
548
- */
549
- claims?: string;
550
- /**
551
- * Tenant id of authority that must be handling token fetch.
552
- * If it is not specified then it is up to token fetching logic to determine which tenant authority
553
- * to use to issue access token.
554
- */
555
- tenantId?: string;
556
- }
557
-
558
- /* Excluded from this release type: tokenFromResponse */
559
-
560
- /**
561
- * Represents token response
562
- * @beta
563
- */
564
- export declare interface TokenResponse {
565
- /** Token value */
566
- token: string;
567
- /**
568
- * Whether or not the token was obtained from local cache.
569
- * @remarks `undefined` indicates that it could not be determined whether or not the token was obtained this way.
570
- */
571
- fromCache?: boolean;
572
- }
573
-
574
- export { }
@@ -1,92 +0,0 @@
1
- import { DriverError } from '@fluidframework/driver-definitions';
2
- import { FiveDaysMs } from '@fluidframework/driver-definitions';
3
- import { IDriverErrorBase } from '@fluidframework/driver-definitions';
4
- import { IResolvedUrl } from '@fluidframework/driver-definitions';
5
-
6
- /* Excluded from this release type: CacheContentType */
7
-
8
- /* Excluded from this release type: DriverError */
9
-
10
- /* Excluded from this release type: FiveDaysMs */
11
-
12
- /* Excluded from this release type: getKeyForCacheEntry */
13
-
14
- /* Excluded from this release type: HostStoragePolicy */
15
-
16
- /* Excluded from this release type: ICacheEntry */
17
-
18
- /* Excluded from this release type: ICollabSessionOptions */
19
-
20
- /* Excluded from this release type: IdentityType */
21
-
22
- /* Excluded from this release type: IEntry */
23
-
24
- /* Excluded from this release type: IFileEntry */
25
-
26
- /* Excluded from this release type: InstrumentedStorageTokenFetcher */
27
-
28
- /* Excluded from this release type: IOdspError */
29
-
30
- /* Excluded from this release type: IOdspErrorAugmentations */
31
-
32
- /* Excluded from this release type: IOdspResolvedUrl */
33
-
34
- /* Excluded from this release type: IOdspUrlParts */
35
-
36
- /* Excluded from this release type: IOpsCachingPolicy */
37
-
38
- /* Excluded from this release type: IPersistedCache */
39
-
40
- /* Excluded from this release type: IProvideSessionAwareDriverFactory */
41
-
42
- /* Excluded from this release type: IRelaySessionAwareDriverFactory */
43
-
44
- /* Excluded from this release type: IResolvedUrl */
45
-
46
- /* Excluded from this release type: ISharingLink */
47
-
48
- /* Excluded from this release type: ISharingLinkKind */
49
-
50
- /* Excluded from this release type: ISnapshotOptions */
51
-
52
- /* Excluded from this release type: ISocketStorageDiscovery */
53
-
54
- /* Excluded from this release type: isTokenFromCache */
55
-
56
- /* Excluded from this release type: maximumCacheDurationMs */
57
-
58
- /* Excluded from this release type: OdspError */
59
-
60
- /* Excluded from this release type: OdspErrorTypes */
61
-
62
- /* Excluded from this release type: OdspResourceTokenFetchOptions */
63
-
64
- /* Excluded from this release type: ShareLinkInfoType */
65
-
66
- /* Excluded from this release type: SharingLinkRole */
67
-
68
- /* Excluded from this release type: SharingLinkScope */
69
-
70
- /* Excluded from this release type: snapshotKey */
71
-
72
- /* Excluded from this release type: TokenFetcher */
73
-
74
- /* Excluded from this release type: TokenFetchOptions */
75
-
76
- /* Excluded from this release type: tokenFromResponse */
77
-
78
- /**
79
- * Represents token response
80
- * @beta
81
- */
82
- export declare interface TokenResponse {
83
- /** Token value */
84
- token: string;
85
- /**
86
- * Whether or not the token was obtained from local cache.
87
- * @remarks `undefined` indicates that it could not be determined whether or not the token was obtained this way.
88
- */
89
- fromCache?: boolean;
90
- }
91
-
92
- export { }