@fluidframework/odsp-driver-definitions 2.0.0-dev-rc.1.0.0.225277 → 2.0.0-dev-rc.1.0.0.232845

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 (76) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +0 -6
  3. package/api-report/odsp-driver-definitions.api.md +3 -24
  4. package/dist/errors.d.ts +1 -55
  5. package/dist/errors.d.ts.map +1 -1
  6. package/dist/errors.js +55 -0
  7. package/dist/errors.js.map +1 -0
  8. package/dist/factory.d.ts +7 -0
  9. package/dist/factory.d.ts.map +1 -1
  10. package/dist/{factory.cjs → factory.js} +1 -1
  11. package/dist/factory.js.map +1 -0
  12. package/dist/index.d.ts +2 -2
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/{index.cjs → index.js} +6 -8
  15. package/dist/index.js.map +1 -0
  16. package/dist/odsp-driver-definitions-alpha.d.ts +19 -74
  17. package/dist/odsp-driver-definitions-beta.d.ts +4 -5
  18. package/dist/odsp-driver-definitions-public.d.ts +0 -4
  19. package/dist/odsp-driver-definitions-untrimmed.d.ts +19 -74
  20. package/dist/{odspCache.cjs → odspCache.js} +1 -1
  21. package/dist/odspCache.js.map +1 -0
  22. package/dist/resolvedUrl.d.ts +1 -16
  23. package/dist/resolvedUrl.d.ts.map +1 -1
  24. package/dist/{resolvedUrl.cjs → resolvedUrl.js} +2 -11
  25. package/dist/resolvedUrl.js.map +1 -0
  26. package/dist/sessionProvider.d.ts +6 -0
  27. package/dist/sessionProvider.d.ts.map +1 -1
  28. package/dist/{sessionProvider.cjs → sessionProvider.js} +1 -1
  29. package/dist/sessionProvider.js.map +1 -0
  30. package/dist/tokenFetch.d.ts +4 -1
  31. package/dist/tokenFetch.d.ts.map +1 -1
  32. package/dist/{tokenFetch.cjs → tokenFetch.js} +1 -1
  33. package/dist/tokenFetch.js.map +1 -0
  34. package/dist/tsdoc-metadata.json +1 -1
  35. package/lib/errors.d.mts +1 -55
  36. package/lib/errors.d.mts.map +1 -1
  37. package/lib/errors.mjs +0 -55
  38. package/lib/errors.mjs.map +1 -1
  39. package/lib/factory.d.mts +7 -0
  40. package/lib/factory.d.mts.map +1 -1
  41. package/lib/factory.mjs.map +1 -1
  42. package/lib/index.d.mts +2 -2
  43. package/lib/index.d.mts.map +1 -1
  44. package/lib/index.mjs +2 -2
  45. package/lib/index.mjs.map +1 -1
  46. package/lib/odsp-driver-definitions-alpha.d.mts +19 -74
  47. package/lib/odsp-driver-definitions-beta.d.mts +4 -5
  48. package/lib/odsp-driver-definitions-public.d.mts +0 -4
  49. package/lib/odsp-driver-definitions-untrimmed.d.mts +19 -74
  50. package/lib/resolvedUrl.d.mts +1 -16
  51. package/lib/resolvedUrl.d.mts.map +1 -1
  52. package/lib/resolvedUrl.mjs +0 -9
  53. package/lib/resolvedUrl.mjs.map +1 -1
  54. package/lib/sessionProvider.d.mts +6 -0
  55. package/lib/sessionProvider.d.mts.map +1 -1
  56. package/lib/sessionProvider.mjs.map +1 -1
  57. package/lib/tokenFetch.d.mts +4 -1
  58. package/lib/tokenFetch.d.mts.map +1 -1
  59. package/lib/tokenFetch.mjs.map +1 -1
  60. package/package.json +25 -16
  61. package/src/errors.ts +1 -64
  62. package/src/factory.ts +5 -2
  63. package/src/index.ts +1 -8
  64. package/src/resolvedUrl.ts +1 -18
  65. package/src/sessionProvider.ts +7 -0
  66. package/src/tokenFetch.ts +4 -1
  67. package/dist/errors.cjs +0 -110
  68. package/dist/errors.cjs.map +0 -1
  69. package/dist/factory.cjs.map +0 -1
  70. package/dist/index.cjs.map +0 -1
  71. package/dist/odspCache.cjs.map +0 -1
  72. package/dist/resolvedUrl.cjs.map +0 -1
  73. package/dist/sessionProvider.cjs.map +0 -1
  74. package/dist/tokenFetch.cjs.map +0 -1
  75. package/tsc-multi.test.json +0 -4
  76. /package/{.eslintrc.js → .eslintrc.cjs} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # @fluidframework/odsp-driver-definitions
2
2
 
3
+ ## 2.0.0-rc.1.0.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Updated server dependencies ([#19122](https://github.com/microsoft/FluidFramework/issues/19122)) [25366b4229](https://github.com/microsoft/FluidFramework/commits/25366b422918cb43685c5f328b50450749592902)
8
+
9
+ The following Fluid server dependencies have been updated to the latest version, 3.0.0. [See the full changelog.](https://github.com/microsoft/FluidFramework/releases/tag/server_v3.0.0)
10
+
11
+ - @fluidframework/gitresources
12
+ - @fluidframework/server-kafka-orderer
13
+ - @fluidframework/server-lambdas
14
+ - @fluidframework/server-lambdas-driver
15
+ - @fluidframework/server-local-server
16
+ - @fluidframework/server-memory-orderer
17
+ - @fluidframework/protocol-base
18
+ - @fluidframework/server-routerlicious
19
+ - @fluidframework/server-routerlicious-base
20
+ - @fluidframework/server-services
21
+ - @fluidframework/server-services-client
22
+ - @fluidframework/server-services-core
23
+ - @fluidframework/server-services-ordering-kafkanode
24
+ - @fluidframework/server-services-ordering-rdkafka
25
+ - @fluidframework/server-services-ordering-zookeeper
26
+ - @fluidframework/server-services-shared
27
+ - @fluidframework/server-services-telemetry
28
+ - @fluidframework/server-services-utils
29
+ - @fluidframework/server-test-utils
30
+ - tinylicious
31
+
32
+ - Updated @fluidframework/protocol-definitions ([#19122](https://github.com/microsoft/FluidFramework/issues/19122)) [25366b4229](https://github.com/microsoft/FluidFramework/commits/25366b422918cb43685c5f328b50450749592902)
33
+
34
+ The @fluidframework/protocol-definitions dependency has been upgraded to v3.1.0. [See the full
35
+ changelog.](https://github.com/microsoft/FluidFramework/blob/main/common/lib/protocol-definitions/CHANGELOG.md#310)
36
+
3
37
  ## 2.0.0-internal.8.0.0
4
38
 
5
39
  Dependency updates only.
package/README.md CHANGED
@@ -16,12 +16,6 @@ When taking a dependency on a Fluid Framework library, we recommend using a `^`
16
16
  While Fluid Framework libraries may use different ranges with interdependencies between other Fluid Framework libraries,
17
17
  library consumers should always prefer `^`.
18
18
 
19
- Note that when depending on a library version of the form `2.0.0-internal.x.y.z`, called the Fluid internal version scheme,
20
- you must use a `>= <` dependency range (such as `>=2.0.0-internal.x.y.z <2.0.0-internal.w.0.0` where `w` is `x+1`).
21
- Standard `^` and `~` ranges will not work as expected.
22
- See the [@fluid-tools/version-tools](https://github.com/microsoft/FluidFramework/blob/main/build-tools/packages/version-tools/README.md)
23
- package for more information including tools to convert between version schemes.
24
-
25
19
  <!-- prettier-ignore-end -->
26
20
 
27
21
  <!-- AUTO-GENERATED-CONTENT:END -->
@@ -70,7 +70,7 @@ export type InstrumentedStorageTokenFetcher = (options: TokenFetchOptions, name:
70
70
  // @alpha
71
71
  export interface IOdspError extends Omit<IDriverErrorBase, "errorType">, IOdspErrorAugmentations {
72
72
  // (undocumented)
73
- readonly errorType: OdspErrorType;
73
+ readonly errorType: OdspErrorTypes;
74
74
  }
75
75
 
76
76
  // @alpha (undocumented)
@@ -174,7 +174,6 @@ export interface ISnapshotOptions {
174
174
  channels?: number;
175
175
  // (undocumented)
176
176
  deltas?: number;
177
- // (undocumented)
178
177
  mds?: number;
179
178
  // (undocumented)
180
179
  timeout?: number;
@@ -190,6 +189,7 @@ export interface ISocketStorageDiscovery {
190
189
  refreshSessionDurationSeconds?: number;
191
190
  // (undocumented)
192
191
  runtimeTenantId?: string;
192
+ sensitivityLabelsInfo?: string;
193
193
  // (undocumented)
194
194
  snapshotStorageUrl: string;
195
195
  socketToken?: string;
@@ -203,20 +203,6 @@ export const isTokenFromCache: (tokenResponse: string | TokenResponse | null) =>
203
203
  // @alpha (undocumented)
204
204
  export type OdspError = IOdspError | (DriverError & IOdspErrorAugmentations);
205
205
 
206
- // @alpha @deprecated
207
- export enum OdspErrorType {
208
- blockedIPAddress = "blockedIPAddress",
209
- cannotCatchUp = "cannotCatchUp",
210
- fetchTimeout = "fetchTimeout",
211
- // (undocumented)
212
- fetchTokenError = "fetchTokenError",
213
- fluidNotEnabled = "fluidNotEnabled",
214
- invalidFileNameError = "invalidFileNameError",
215
- outOfStorageError = "outOfStorageError",
216
- serviceReadOnly = "serviceReadOnly",
217
- snapshotTooBig = "snapshotTooBig"
218
- }
219
-
220
206
  // @alpha
221
207
  export const OdspErrorTypes: {
222
208
  readonly invalidFileNameError: "invalidFileNameError";
@@ -259,20 +245,13 @@ export interface OdspResourceTokenFetchOptions extends TokenFetchOptions {
259
245
  // @alpha
260
246
  export interface ShareLinkInfoType {
261
247
  createLink?: {
262
- type?: ShareLinkTypes | ISharingLinkKind;
263
- link?: string | ISharingLink;
248
+ link?: ISharingLink;
264
249
  error?: any;
265
250
  shareId?: string;
266
251
  };
267
252
  sharingLinkToRedeem?: string;
268
253
  }
269
254
 
270
- // @alpha @deprecated (undocumented)
271
- export enum ShareLinkTypes {
272
- // (undocumented)
273
- csl = "csl"
274
- }
275
-
276
255
  // @alpha
277
256
  export enum SharingLinkRole {
278
257
  // (undocumented)
package/dist/errors.d.ts CHANGED
@@ -69,60 +69,6 @@ export declare const OdspErrorTypes: {
69
69
  * @alpha
70
70
  */
71
71
  export type OdspErrorTypes = (typeof OdspErrorTypes)[keyof typeof OdspErrorTypes];
72
- /**
73
- * ODSP Error types.
74
- * Different error types that may be thrown by the ODSP driver.
75
- *
76
- * @deprecated Use {@link (OdspErrorTypes:variable)} instead.
77
- * @alpha
78
- */
79
- export declare enum OdspErrorType {
80
- /**
81
- * Storage is out of space
82
- */
83
- outOfStorageError = "outOfStorageError",
84
- /**
85
- * Invalid file name (at creation of the file)
86
- */
87
- invalidFileNameError = "invalidFileNameError",
88
- /**
89
- * Snapshot is too big. Host application specified limit for snapshot size, and snapshot was bigger
90
- * that that limit, thus request failed. Hosting application is expected to have fall-back behavior for
91
- * such case.
92
- */
93
- snapshotTooBig = "snapshotTooBig",
94
- /**
95
- * Maximum time limit to fetch reached. Host application specified limit for fetching of snapshot, when
96
- * that limit is reached, request fails. Hosting application is expected to have fall-back behavior for
97
- * such case.
98
- */
99
- fetchTimeout = "fetchTimeout",
100
- /**
101
- * SPO admin toggle: fluid service is not enabled.
102
- */
103
- fluidNotEnabled = "fluidNotEnabled",
104
- /**
105
- * {@inheritDoc @fluidframework/driver-definitions#FluidErrorType.fetchTokenError}
106
- */
107
- fetchTokenError = "fetchTokenError",
108
- /**
109
- * This error will be raised when client is too behind with no way to catch up.
110
- * This condition will happen when user was offline for too long, resulting in old ops / blobs being deleted
111
- * by storage, and thus removing an ability for client to catch up.
112
- * This condition will result in any local changes being lost (i.e. only way to save state is by user
113
- * copying it over manually)
114
- */
115
- cannotCatchUp = "cannotCatchUp",
116
- /**
117
- * SPO can occasionally return 403 for r/w operations on document when there is a fail over to another data center.
118
- * So to preserve integrity of the data, the data becomes readonly.
119
- */
120
- serviceReadOnly = "serviceReadOnly",
121
- /**
122
- * Due to organizational policies, you can't access server resources from the current network location.
123
- */
124
- blockedIPAddress = "blockedIPAddress"
125
- }
126
72
  /**
127
73
  * @alpha
128
74
  */
@@ -148,7 +94,7 @@ export interface IOdspErrorAugmentations {
148
94
  * @alpha
149
95
  */
150
96
  export interface IOdspError extends Omit<IDriverErrorBase, "errorType">, IOdspErrorAugmentations {
151
- readonly errorType: OdspErrorType;
97
+ readonly errorType: OdspErrorTypes;
152
98
  }
153
99
  /**
154
100
  * @alpha
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACN,WAAW,EACX,gBAAgB,EAEhB,MAAM,oCAAoC,CAAC;AAE5C;;;;GAIG;AACH,eAAO,MAAM,cAAc;IAI1B;;OAEG;;IAGH;;;;OAIG;;IAGH;;;;OAIG;;IAGH;;OAEG;;IAGH;;;;;;OAMG;;IAGH;;;OAGG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;CAEM,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAElF;;;;;;GAMG;AACH,oBAAY,aAAa;IACxB;;OAEG;IACH,iBAAiB,sBAAsB;IAEvC;;OAEG;IACH,oBAAoB,yBAAyB;IAE7C;;;;OAIG;IACH,cAAc,mBAAmB;IAEjC;;;;OAIG;IACH,YAAY,iBAAiB;IAE7B;;OAEG;IACH,eAAe,oBAAoB;IAEnC;;OAEG;IACH,eAAe,oBAAoB;IAEnC;;;;;;OAMG;IACH,aAAa,kBAAkB;IAE/B;;;OAGG;IACH,eAAe,oBAAoB;IAEnC;;OAEG;IACH,gBAAgB,qBAAqB;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACvC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,gBAAgB,EAAE,WAAW,CAAC,EAAE,uBAAuB;IAC/F,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,CAAC,WAAW,GAAG,uBAAuB,CAAC,CAAC"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACN,WAAW,EACX,gBAAgB,EAEhB,MAAM,oCAAoC,CAAC;AAE5C;;;;GAIG;AACH,eAAO,MAAM,cAAc;IAI1B;;OAEG;;IAGH;;;;OAIG;;IAGH;;;;OAIG;;IAGH;;OAEG;;IAGH;;;;;;OAMG;;IAGH;;;OAGG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;CAEM,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAElF;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACvC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,gBAAgB,EAAE,WAAW,CAAC,EAAE,uBAAuB;IAC/F,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,CAAC,WAAW,GAAG,uBAAuB,CAAC,CAAC"}
package/dist/errors.js ADDED
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OdspErrorTypes = void 0;
4
+ /*!
5
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
6
+ * Licensed under the MIT License.
7
+ */
8
+ const driver_definitions_1 = require("@fluidframework/driver-definitions");
9
+ /**
10
+ * ODSP Error types.
11
+ * Different error types that may be thrown by the ODSP driver.
12
+ * @alpha
13
+ */
14
+ exports.OdspErrorTypes = {
15
+ // Inherit base driver error types
16
+ ...driver_definitions_1.DriverErrorTypes,
17
+ /**
18
+ * Invalid file name (at creation of the file)
19
+ */
20
+ invalidFileNameError: "invalidFileNameError",
21
+ /**
22
+ * Snapshot is too big. Host application specified limit for snapshot size, and snapshot was bigger
23
+ * that that limit, thus request failed. Hosting application is expected to have fall-back behavior for
24
+ * such case.
25
+ */
26
+ snapshotTooBig: "snapshotTooBig",
27
+ /**
28
+ * Maximum time limit to fetch reached. Host application specified limit for fetching of snapshot, when
29
+ * that limit is reached, request fails. Hosting application is expected to have fall-back behavior for
30
+ * such case.
31
+ */
32
+ fetchTimeout: "fetchTimeout",
33
+ /**
34
+ * SPO admin toggle: fluid service is not enabled.
35
+ */
36
+ fluidNotEnabled: "fluidNotEnabled",
37
+ /**
38
+ * This error will be raised when client is too behind with no way to catch up.
39
+ * This condition will happen when user was offline for too long, resulting in old ops / blobs being deleted
40
+ * by storage, and thus removing an ability for client to catch up.
41
+ * This condition will result in any local changes being lost (i.e. only way to save state is by user
42
+ * copying it over manually)
43
+ */
44
+ cannotCatchUp: "cannotCatchUp",
45
+ /**
46
+ * SPO can occasionally return 403 for r/w operations on document when there is a fail over to another data center.
47
+ * So to preserve integrity of the data, the data becomes readonly.
48
+ */
49
+ serviceReadOnly: "serviceReadOnly",
50
+ /**
51
+ * Due to organizational policies, you can't access server resources from the current network location.
52
+ */
53
+ blockedIPAddress: "blockedIPAddress",
54
+ };
55
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,2EAI4C;AAE5C;;;;GAIG;AACU,QAAA,cAAc,GAAG;IAC7B,kCAAkC;IAClC,GAAG,qCAAgB;IAEnB;;OAEG;IACH,oBAAoB,EAAE,sBAAsB;IAE5C;;;;OAIG;IACH,cAAc,EAAE,gBAAgB;IAEhC;;;;OAIG;IACH,YAAY,EAAE,cAAc;IAE5B;;OAEG;IACH,eAAe,EAAE,iBAAiB;IAElC;;;;;;OAMG;IACH,aAAa,EAAE,eAAe;IAE9B;;;OAGG;IACH,eAAe,EAAE,iBAAiB;IAElC;;OAEG;IACH,gBAAgB,EAAE,kBAAkB;CAC3B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\nimport {\n\tDriverError,\n\tIDriverErrorBase,\n\tDriverErrorTypes,\n} from \"@fluidframework/driver-definitions\";\n\n/**\n * ODSP Error types.\n * Different error types that may be thrown by the ODSP driver.\n * @alpha\n */\nexport const OdspErrorTypes = {\n\t// Inherit base driver error types\n\t...DriverErrorTypes,\n\n\t/**\n\t * Invalid file name (at creation of the file)\n\t */\n\tinvalidFileNameError: \"invalidFileNameError\",\n\n\t/**\n\t * Snapshot is too big. Host application specified limit for snapshot size, and snapshot was bigger\n\t * that that limit, thus request failed. Hosting application is expected to have fall-back behavior for\n\t * such case.\n\t */\n\tsnapshotTooBig: \"snapshotTooBig\",\n\n\t/**\n\t * Maximum time limit to fetch reached. Host application specified limit for fetching of snapshot, when\n\t * that limit is reached, request fails. Hosting application is expected to have fall-back behavior for\n\t * such case.\n\t */\n\tfetchTimeout: \"fetchTimeout\",\n\n\t/**\n\t * SPO admin toggle: fluid service is not enabled.\n\t */\n\tfluidNotEnabled: \"fluidNotEnabled\",\n\n\t/**\n\t * This error will be raised when client is too behind with no way to catch up.\n\t * This condition will happen when user was offline for too long, resulting in old ops / blobs being deleted\n\t * by storage, and thus removing an ability for client to catch up.\n\t * This condition will result in any local changes being lost (i.e. only way to save state is by user\n\t * copying it over manually)\n\t */\n\tcannotCatchUp: \"cannotCatchUp\",\n\n\t/**\n\t * SPO can occasionally return 403 for r/w operations on document when there is a fail over to another data center.\n\t * So to preserve integrity of the data, the data becomes readonly.\n\t */\n\tserviceReadOnly: \"serviceReadOnly\",\n\n\t/**\n\t * Due to organizational policies, you can't access server resources from the current network location.\n\t */\n\tblockedIPAddress: \"blockedIPAddress\",\n} as const;\n/**\n * @alpha\n */\nexport type OdspErrorTypes = (typeof OdspErrorTypes)[keyof typeof OdspErrorTypes];\n\n/**\n * @alpha\n */\nexport interface IOdspErrorAugmentations {\n\t/**\n\t * Server epoch indicates when the file was last modified.\n\t * Used to detect modifications outside Fluid's services\n\t */\n\tserverEpoch?: string;\n\n\t/**\n\t * It is the redirection url at which the network call should have been made. It is due to change\n\t * in site domain of the file on server.\n\t */\n\tredirectLocation?: string;\n\n\t/**\n\t * It is array of error codes included in error response from server.\n\t */\n\tfacetCodes?: string[];\n}\n\n/**\n * Base interface for all errors and warnings\n * Superset of IDriverErrorBase, but with Odsp-specific errorType and properties\n * @alpha\n */\nexport interface IOdspError extends Omit<IDriverErrorBase, \"errorType\">, IOdspErrorAugmentations {\n\treadonly errorType: OdspErrorTypes;\n}\n\n/**\n * @alpha\n */\nexport type OdspError = IOdspError | (DriverError & IOdspErrorAugmentations);\n"]}
package/dist/factory.d.ts CHANGED
@@ -9,6 +9,13 @@ export interface ISnapshotOptions {
9
9
  blobs?: number;
10
10
  deltas?: number;
11
11
  channels?: number;
12
+ /**
13
+ * Maximum Data size (in bytes)
14
+ *
15
+ * @remarks
16
+ * If specified, SPO will fail snapshot request with 413 error (see {@link @fluidframework/odsp-driver-definitions#(OdspErrorTypes:variable).snapshotTooBig})
17
+ * if snapshot is bigger in size than specified limit.
18
+ */
12
19
  mds?: number;
13
20
  timeout?: number;
14
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAMlB,GAAG,CAAC,EAAE,MAAM,CAAC;IAOb,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC;;;OAGG;IACH,8BAA8B,CAAC,EAAE,MAAM,CAAC;IACxC;;;;;;;;;OASG;IACH,sCAAsC,CAAC,EAAE,OAAO,CAAC;CACjD;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC,eAAe,CAAC,EAAE,gBAAgB,CAAC;IAEnC;;;;;;;;OAQG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAGlC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAE/B;;OAEG;IACH,cAAc,CAAC,EAAE,qBAAqB,CAAC;IAEvC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;;OAGG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAEpC;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;;;;;OASG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAEpC;;;;;;;OAOG;IACH,yCAAyC,CAAC,EAAE,OAAO,CAAC;IAEpD;;;OAGG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACrC"}
1
+ {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAOb,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC;;;OAGG;IACH,8BAA8B,CAAC,EAAE,MAAM,CAAC;IACxC;;;;;;;;;OASG;IACH,sCAAsC,CAAC,EAAE,OAAO,CAAC;CACjD;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC,eAAe,CAAC,EAAE,gBAAgB,CAAC;IAEnC;;;;;;;;OAQG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAGlC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAE/B;;OAEG;IACH,cAAc,CAAC,EAAE,qBAAqB,CAAC;IAEvC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;;OAGG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAEpC;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;;;;;;;OASG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAEpC;;;;;;;OAOG;IACH,yCAAyC,CAAC,EAAE,OAAO,CAAC;IAEpD;;;OAGG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACrC"}
@@ -4,4 +4,4 @@
4
4
  * Licensed under the MIT License.
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- //# sourceMappingURL=factory.cjs.map
7
+ //# sourceMappingURL=factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"factory.js","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * @alpha\n */\nexport interface ISnapshotOptions {\n\tblobs?: number;\n\tdeltas?: number;\n\tchannels?: number;\n\n\t/**\n\t * Maximum Data size (in bytes)\n\t *\n\t * @remarks\n\t * If specified, SPO will fail snapshot request with 413 error (see {@link @fluidframework/odsp-driver-definitions#(OdspErrorTypes:variable).snapshotTooBig})\n\t * if snapshot is bigger in size than specified limit.\n\t */\n\tmds?: number;\n\n\t/*\n\t * Maximum time limit to fetch snapshot (in seconds)\n\t * If specified, client will timeout the fetch request if it exceeds the time limit and\n\t * will try to fetch the snapshot without blobs.\n\t */\n\ttimeout?: number;\n}\n\n/**\n * @alpha\n */\nexport interface IOpsCachingPolicy {\n\t/**\n\t * Batch size. Controls how many ops are grouped together as single cache entry\n\t * The bigger the number, the more efficient it is (less reads & writes)\n\t * At the same time, big number means we wait for so many ops to accumulate, which\n\t * increases chances and number of trailing ops that would not be flushed to cache\n\t * when user closes tab\n\t * Use any number below 1 to disable caching\n\t * Default: 100\n\t */\n\tbatchSize?: number;\n\n\t/**\n\t * To reduce the problem of losing trailing ops when using big batch sizes, host\n\t * could specify how often driver should flush ops it has not flushed yet.\n\t * -1 means do not use timer.\n\t * Measured in ms.\n\t * Default: 5000\n\t */\n\ttimerGranularity?: number;\n\n\t/**\n\t * Total number of ops to cache. When we reach that number, ops caching stops\n\t * Default: 5000\n\t */\n\ttotalOpsToCache?: number;\n}\n\n/**\n * @alpha\n */\nexport interface ICollabSessionOptions {\n\t/**\n\t * Value indicating the display name for session that admits unauthenticated user.\n\t * This name will be used in attribution associated with edits made by such user.\n\t */\n\tunauthenticatedUserDisplayName?: string;\n\t/**\n\t * @deprecated Due to security reasons we will be passing the token via Authorization header only.\n\t * Value indicating session preference to always pass access token via Authorization header.\n\t * Default behavior is to pass access token via query parameter unless overall href string\n\t * length exceeds 2048 characters. Using query param is performance optimization which results\n\t * in ODSP XHR request being treated as 'simple' request which do not require OPTIONS call to\n\t * validate CORS. However, not all ODSP implementations understand this optimization.\n\t * For instance, auth layer on Converged stack will fail request with access token passed via\n\t * query param.\n\t */\n\tforceAccessTokenViaAuthorizationHeader?: boolean;\n}\n\n/**\n * @alpha\n */\nexport interface HostStoragePolicy {\n\tsnapshotOptions?: ISnapshotOptions;\n\n\t/**\n\t * If set to true, tells driver to concurrently fetch snapshot from storage (SPO) and cache\n\t * Container loads from whatever comes first in such case.\n\t * Snapshot fetched from storage is pushed to cache in either case.\n\t * If set to false, driver will first consult with cache. Only on cache miss (cache does not\n\t * return snapshot), driver will fetch snapshot from storage (and push it to cache), otherwise\n\t * it will load from cache and not reach out to storage.\n\t * Passing true results in faster loads and keeping cache more current, but it increases bandwidth consumption.\n\t */\n\tconcurrentSnapshotFetch?: boolean;\n\n\t// Options overwriting default ops fetching from storage.\n\topsBatchSize?: number;\n\tconcurrentOpsBatches?: number;\n\n\t/**\n\t * Policy controlling ops caching (leveraging IPersistedCache passed to driver factory)\n\t */\n\topsCaching?: IOpsCachingPolicy;\n\n\t/**\n\t * Policy controlling how collaboration session is established\n\t */\n\tsessionOptions?: ICollabSessionOptions;\n\n\t/**\n\t * @deprecated This field will be always set to true after removal.\n\t * True to have the sharing link redeem fallback in case the Trees Latest/Redeem 1RT call fails with redeem error.\n\t * During fallback it will first redeem the sharing link and then make the Trees latest call.\n\t */\n\tenableRedeemFallback?: boolean;\n\n\t/**\n\t * Policy controlling if we will cache initial summary when we create a document\n\t */\n\tcacheCreateNewSummary?: boolean;\n\n\t/**\n\t * @deprecated This will be replaced with feature gate snapshotFormatFetchType.\n\t * Policy controlling if we want to fetch binary format snapshot.\n\t */\n\tfetchBinarySnapshotFormat?: boolean;\n\n\t/**\n\t * If set to true, socket cache are per OdspDocumentService instead of shared across all instances\n\t */\n\tisolateSocketCache?: boolean;\n\n\t/**\n\t * @deprecated Switch to using the new feature gated by enableSingleRequestForShareLinkWithCreate\n\t * with 'createLinkScope' and 'createLinkRole' is requested to the odsp apis instead of 'createLinkType'.\n\t * It enables the creation of sharing link along with the creation of file by setting this value to true.\n\t * If the host provides a 'createLinkType' parameter in the request URL to the container.attach()\n\t * method, we will send the request to ODSP with the same (if the flag is enabled) so\n\t * that a share link can be created with the creation of file to save number for round trips made to ODSP.\n\t * (This flag works independently of enableSingleRequestForShareLinkWithCreate which is used for sharing link\n\t * requests where 'createLinkScope' is requested.)\n\t */\n\tenableShareLinkWithCreate?: boolean;\n\n\t/**\n\t * Enable creation of sharing link along with the creation of file by setting this value to true.\n\t * If the host provides a 'createLinkScope' parameter in the request URL to the container.attach()\n\t * method, we will send the request to ODSP with the same (if the flag is enabled) so\n\t * that a share link can be created with the creation of file to save number for round trips made to ODSP.\n\t * (This flag works independently of enableShareLinkWithCreate which was used for old sharing link requests\n\t * where 'createLinkType' was requested.)\n\t */\n\tenableSingleRequestForShareLinkWithCreate?: boolean;\n\n\t/**\n\t * True if host does not want the storage service to use the prefetch cache to get the snapshot. Undefined will be treated\n\t * as false. This is if the host wants to do some A/B testing.\n\t */\n\tavoidPrefetchSnapshotCache?: boolean;\n}\n"]}
package/dist/index.d.ts CHANGED
@@ -2,10 +2,10 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- export { IOdspError, IOdspErrorAugmentations, OdspError, OdspErrorType, OdspErrorTypes, } from "./errors";
5
+ export { IOdspError, IOdspErrorAugmentations, OdspError, OdspErrorTypes } from "./errors";
6
6
  export { HostStoragePolicy, ICollabSessionOptions, IOpsCachingPolicy, ISnapshotOptions, } from "./factory";
7
7
  export { CacheContentType, getKeyForCacheEntry, ICacheEntry, IEntry, IFileEntry, IPersistedCache, snapshotKey, } from "./odspCache";
8
- export { IOdspResolvedUrl, IOdspUrlParts, ISharingLink, ISharingLinkKind, ShareLinkInfoType, ShareLinkTypes, SharingLinkRole, SharingLinkScope, } from "./resolvedUrl";
8
+ export { IOdspResolvedUrl, IOdspUrlParts, ISharingLink, ISharingLinkKind, ShareLinkInfoType, SharingLinkRole, SharingLinkScope, } from "./resolvedUrl";
9
9
  export { IdentityType, InstrumentedStorageTokenFetcher, isTokenFromCache, OdspResourceTokenFetchOptions, TokenFetcher, TokenFetchOptions, tokenFromResponse, TokenResponse, } from "./tokenFetch";
10
10
  export { IProvideSessionAwareDriverFactory, IRelaySessionAwareDriverFactory, ISocketStorageDiscovery, } from "./sessionProvider";
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,UAAU,EACV,uBAAuB,EACvB,SAAS,EACT,aAAa,EACb,cAAc,GACd,MAAM,UAAU,CAAC;AAClB,OAAO,EACN,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,GAChB,MAAM,WAAW,CAAC;AACnB,OAAO,EACN,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,MAAM,EACN,UAAU,EACV,eAAe,EACf,WAAW,GACX,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,gBAAgB,GAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EACN,YAAY,EACZ,+BAA+B,EAC/B,gBAAgB,EAChB,6BAA6B,EAC7B,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,GACb,MAAM,cAAc,CAAC;AACtB,OAAO,EACN,iCAAiC,EACjC,+BAA+B,EAC/B,uBAAuB,GACvB,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,uBAAuB,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1F,OAAO,EACN,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,GAChB,MAAM,WAAW,CAAC;AACnB,OAAO,EACN,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,MAAM,EACN,UAAU,EACV,eAAe,EACf,WAAW,GACX,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,GAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EACN,YAAY,EACZ,+BAA+B,EAC/B,gBAAgB,EAChB,6BAA6B,EAC7B,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,GACb,MAAM,cAAc,CAAC;AACtB,OAAO,EACN,iCAAiC,EACjC,+BAA+B,EAC/B,uBAAuB,GACvB,MAAM,mBAAmB,CAAC"}
@@ -4,18 +4,16 @@
4
4
  * Licensed under the MIT License.
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.tokenFromResponse = exports.isTokenFromCache = exports.SharingLinkScope = exports.SharingLinkRole = exports.ShareLinkTypes = exports.snapshotKey = exports.getKeyForCacheEntry = exports.OdspErrorTypes = exports.OdspErrorType = void 0;
8
- var errors_1 = require("./errors.cjs");
9
- Object.defineProperty(exports, "OdspErrorType", { enumerable: true, get: function () { return errors_1.OdspErrorType; } });
7
+ exports.tokenFromResponse = exports.isTokenFromCache = exports.SharingLinkScope = exports.SharingLinkRole = exports.snapshotKey = exports.getKeyForCacheEntry = exports.OdspErrorTypes = void 0;
8
+ var errors_1 = require("./errors");
10
9
  Object.defineProperty(exports, "OdspErrorTypes", { enumerable: true, get: function () { return errors_1.OdspErrorTypes; } });
11
- var odspCache_1 = require("./odspCache.cjs");
10
+ var odspCache_1 = require("./odspCache");
12
11
  Object.defineProperty(exports, "getKeyForCacheEntry", { enumerable: true, get: function () { return odspCache_1.getKeyForCacheEntry; } });
13
12
  Object.defineProperty(exports, "snapshotKey", { enumerable: true, get: function () { return odspCache_1.snapshotKey; } });
14
- var resolvedUrl_1 = require("./resolvedUrl.cjs");
15
- Object.defineProperty(exports, "ShareLinkTypes", { enumerable: true, get: function () { return resolvedUrl_1.ShareLinkTypes; } });
13
+ var resolvedUrl_1 = require("./resolvedUrl");
16
14
  Object.defineProperty(exports, "SharingLinkRole", { enumerable: true, get: function () { return resolvedUrl_1.SharingLinkRole; } });
17
15
  Object.defineProperty(exports, "SharingLinkScope", { enumerable: true, get: function () { return resolvedUrl_1.SharingLinkScope; } });
18
- var tokenFetch_1 = require("./tokenFetch.cjs");
16
+ var tokenFetch_1 = require("./tokenFetch");
19
17
  Object.defineProperty(exports, "isTokenFromCache", { enumerable: true, get: function () { return tokenFetch_1.isTokenFromCache; } });
20
18
  Object.defineProperty(exports, "tokenFromResponse", { enumerable: true, get: function () { return tokenFetch_1.tokenFromResponse; } });
21
- //# sourceMappingURL=index.cjs.map
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,mCAA0F;AAAjC,wGAAA,cAAc,OAAA;AAOvE,yCAQqB;AANpB,gHAAA,mBAAmB,OAAA;AAKnB,wGAAA,WAAW,OAAA;AAEZ,6CAQuB;AAFtB,8GAAA,eAAe,OAAA;AACf,+GAAA,gBAAgB,OAAA;AAEjB,2CASsB;AANrB,8GAAA,gBAAgB,OAAA;AAIhB,+GAAA,iBAAiB,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport { IOdspError, IOdspErrorAugmentations, OdspError, OdspErrorTypes } from \"./errors\";\nexport {\n\tHostStoragePolicy,\n\tICollabSessionOptions,\n\tIOpsCachingPolicy,\n\tISnapshotOptions,\n} from \"./factory\";\nexport {\n\tCacheContentType,\n\tgetKeyForCacheEntry,\n\tICacheEntry,\n\tIEntry,\n\tIFileEntry,\n\tIPersistedCache,\n\tsnapshotKey,\n} from \"./odspCache\";\nexport {\n\tIOdspResolvedUrl,\n\tIOdspUrlParts,\n\tISharingLink,\n\tISharingLinkKind,\n\tShareLinkInfoType,\n\tSharingLinkRole,\n\tSharingLinkScope,\n} from \"./resolvedUrl\";\nexport {\n\tIdentityType,\n\tInstrumentedStorageTokenFetcher,\n\tisTokenFromCache,\n\tOdspResourceTokenFetchOptions,\n\tTokenFetcher,\n\tTokenFetchOptions,\n\ttokenFromResponse,\n\tTokenResponse,\n} from \"./tokenFetch\";\nexport {\n\tIProvideSessionAwareDriverFactory,\n\tIRelaySessionAwareDriverFactory,\n\tISocketStorageDiscovery,\n} from \"./sessionProvider\";\n"]}
@@ -169,7 +169,7 @@ export declare interface IFileEntry {
169
169
  * @alpha
170
170
  */
171
171
  export declare interface IOdspError extends Omit<IDriverErrorBase, "errorType">, IOdspErrorAugmentations {
172
- readonly errorType: OdspErrorType;
172
+ readonly errorType: OdspErrorTypes;
173
173
  }
174
174
 
175
175
  /**
@@ -333,6 +333,13 @@ export declare interface ISnapshotOptions {
333
333
  blobs?: number;
334
334
  deltas?: number;
335
335
  channels?: number;
336
+ /**
337
+ * Maximum Data size (in bytes)
338
+ *
339
+ * @remarks
340
+ * If specified, SPO will fail snapshot request with 413 error (see {@link @fluidframework/odsp-driver-definitions#(OdspErrorTypes:variable).snapshotTooBig})
341
+ * if snapshot is bigger in size than specified limit.
342
+ */
336
343
  mds?: number;
337
344
  timeout?: number;
338
345
  }
@@ -362,6 +369,12 @@ export declare interface ISocketStorageDiscovery {
362
369
  * This is the time within which client has to refresh the session on (ODSP) relay service.
363
370
  */
364
371
  refreshSessionDurationSeconds?: number;
372
+ /**
373
+ * Represent the sensitivity labels info for the file. Keeping it optional for back-compat. The
374
+ * response will contain empty labels when the file has no labels, so this field will be there
375
+ * even if file has no labels when the service will implement this contract.
376
+ */
377
+ sensitivityLabelsInfo?: string;
365
378
  }
366
379
 
367
380
  /* Excluded from this release type: isTokenFromCache */
@@ -371,61 +384,6 @@ export declare interface ISocketStorageDiscovery {
371
384
  */
372
385
  export declare type OdspError = IOdspError | (DriverError & IOdspErrorAugmentations);
373
386
 
374
- /**
375
- * ODSP Error types.
376
- * Different error types that may be thrown by the ODSP driver.
377
- *
378
- * @deprecated Use {@link (OdspErrorTypes:variable)} instead.
379
- * @alpha
380
- */
381
- export declare enum OdspErrorType {
382
- /**
383
- * Storage is out of space
384
- */
385
- outOfStorageError = "outOfStorageError",
386
- /**
387
- * Invalid file name (at creation of the file)
388
- */
389
- invalidFileNameError = "invalidFileNameError",
390
- /**
391
- * Snapshot is too big. Host application specified limit for snapshot size, and snapshot was bigger
392
- * that that limit, thus request failed. Hosting application is expected to have fall-back behavior for
393
- * such case.
394
- */
395
- snapshotTooBig = "snapshotTooBig",
396
- /**
397
- * Maximum time limit to fetch reached. Host application specified limit for fetching of snapshot, when
398
- * that limit is reached, request fails. Hosting application is expected to have fall-back behavior for
399
- * such case.
400
- */
401
- fetchTimeout = "fetchTimeout",
402
- /**
403
- * SPO admin toggle: fluid service is not enabled.
404
- */
405
- fluidNotEnabled = "fluidNotEnabled",
406
- /**
407
- * {@inheritDoc @fluidframework/driver-definitions#FluidErrorType.fetchTokenError}
408
- */
409
- fetchTokenError = "fetchTokenError",
410
- /**
411
- * This error will be raised when client is too behind with no way to catch up.
412
- * This condition will happen when user was offline for too long, resulting in old ops / blobs being deleted
413
- * by storage, and thus removing an ability for client to catch up.
414
- * This condition will result in any local changes being lost (i.e. only way to save state is by user
415
- * copying it over manually)
416
- */
417
- cannotCatchUp = "cannotCatchUp",
418
- /**
419
- * SPO can occasionally return 403 for r/w operations on document when there is a fail over to another data center.
420
- * So to preserve integrity of the data, the data becomes readonly.
421
- */
422
- serviceReadOnly = "serviceReadOnly",
423
- /**
424
- * Due to organizational policies, you can't access server resources from the current network location.
425
- */
426
- blockedIPAddress = "blockedIPAddress"
427
- }
428
-
429
387
  /**
430
388
  * ODSP Error types.
431
389
  * Different error types that may be thrown by the ODSP driver.
@@ -522,17 +480,10 @@ export declare interface ShareLinkInfoType {
522
480
  * from the /snapshot api response.
523
481
  */
524
482
  createLink?: {
525
- /**
526
- * @deprecated
527
- * Type of shareLink requested/created when creating the file for the first time. The 'type' property here
528
- * represents the type of sharing link requested.
529
- * Will be deprecated soon. Type of sharing link will be present in the link:ISharingLink property below.
530
- */
531
- type?: ShareLinkTypes | ISharingLinkKind;
532
483
  /**
533
484
  * Share link created when the file is created for the first time with /snapshot api call.
534
485
  */
535
- link?: string | ISharingLink;
486
+ link?: ISharingLink;
536
487
  /**
537
488
  * Error message if creation of sharing link fails with /snapshot api call
538
489
  */
@@ -546,15 +497,6 @@ export declare interface ShareLinkInfoType {
546
497
  sharingLinkToRedeem?: string;
547
498
  }
548
499
 
549
- /**
550
- * @deprecated Use ISharingLinkKind type instead.
551
- * Type of shareLink requested/created when creating the file for the first time.
552
- * @alpha
553
- */
554
- export declare enum ShareLinkTypes {
555
- csl = "csl"
556
- }
557
-
558
500
  /**
559
501
  * View/edit permission role for a sharing link.
560
502
  * @alpha
@@ -619,7 +561,10 @@ export declare interface TokenFetchOptions {
619
561
  export declare interface TokenResponse {
620
562
  /** Token value */
621
563
  token: string;
622
- /** Flag indicating whether token was obtained from local cache */
564
+ /**
565
+ * Whether or not the token was obtained from local cache.
566
+ * @remarks `undefined` indicates that it could not be determined whether or not the token was obtained this way.
567
+ */
623
568
  fromCache?: boolean;
624
569
  }
625
570
 
@@ -52,16 +52,12 @@ import { IResolvedUrl } from '@fluidframework/driver-definitions';
52
52
 
53
53
  /* Excluded from this release type: OdspError */
54
54
 
55
- /* Excluded from this release type: OdspErrorType */
56
-
57
55
  /* Excluded from this release type: OdspErrorTypes */
58
56
 
59
57
  /* Excluded from this release type: OdspResourceTokenFetchOptions */
60
58
 
61
59
  /* Excluded from this release type: ShareLinkInfoType */
62
60
 
63
- /* Excluded from this release type: ShareLinkTypes */
64
-
65
61
  /* Excluded from this release type: SharingLinkRole */
66
62
 
67
63
  /* Excluded from this release type: SharingLinkScope */
@@ -81,7 +77,10 @@ import { IResolvedUrl } from '@fluidframework/driver-definitions';
81
77
  export declare interface TokenResponse {
82
78
  /** Token value */
83
79
  token: string;
84
- /** Flag indicating whether token was obtained from local cache */
80
+ /**
81
+ * Whether or not the token was obtained from local cache.
82
+ * @remarks `undefined` indicates that it could not be determined whether or not the token was obtained this way.
83
+ */
85
84
  fromCache?: boolean;
86
85
  }
87
86
 
@@ -52,16 +52,12 @@ import { IResolvedUrl } from '@fluidframework/driver-definitions';
52
52
 
53
53
  /* Excluded from this release type: OdspError */
54
54
 
55
- /* Excluded from this release type: OdspErrorType */
56
-
57
55
  /* Excluded from this release type: OdspErrorTypes */
58
56
 
59
57
  /* Excluded from this release type: OdspResourceTokenFetchOptions */
60
58
 
61
59
  /* Excluded from this release type: ShareLinkInfoType */
62
60
 
63
- /* Excluded from this release type: ShareLinkTypes */
64
-
65
61
  /* Excluded from this release type: SharingLinkRole */
66
62
 
67
63
  /* Excluded from this release type: SharingLinkScope */