@fluidframework/odsp-driver-definitions 2.0.0-dev-rc.1.0.0.228517 → 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 (60) hide show
  1. package/api-report/odsp-driver-definitions.api.md +3 -24
  2. package/dist/errors.d.ts +1 -55
  3. package/dist/errors.d.ts.map +1 -1
  4. package/dist/errors.js +1 -56
  5. package/dist/errors.js.map +1 -1
  6. package/dist/factory.d.ts +7 -0
  7. package/dist/factory.d.ts.map +1 -1
  8. package/dist/factory.js.map +1 -1
  9. package/dist/index.d.ts +2 -2
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +1 -3
  12. package/dist/index.js.map +1 -1
  13. package/dist/odsp-driver-definitions-alpha.d.ts +19 -74
  14. package/dist/odsp-driver-definitions-beta.d.ts +4 -5
  15. package/dist/odsp-driver-definitions-public.d.ts +0 -4
  16. package/dist/odsp-driver-definitions-untrimmed.d.ts +19 -74
  17. package/dist/resolvedUrl.d.ts +1 -16
  18. package/dist/resolvedUrl.d.ts.map +1 -1
  19. package/dist/resolvedUrl.js +1 -10
  20. package/dist/resolvedUrl.js.map +1 -1
  21. package/dist/sessionProvider.d.ts +6 -0
  22. package/dist/sessionProvider.d.ts.map +1 -1
  23. package/dist/sessionProvider.js.map +1 -1
  24. package/dist/tokenFetch.d.ts +4 -1
  25. package/dist/tokenFetch.d.ts.map +1 -1
  26. package/dist/tokenFetch.js.map +1 -1
  27. package/dist/tsdoc-metadata.json +1 -1
  28. package/lib/errors.d.mts +1 -55
  29. package/lib/errors.d.mts.map +1 -1
  30. package/lib/errors.mjs +0 -55
  31. package/lib/errors.mjs.map +1 -1
  32. package/lib/factory.d.mts +7 -0
  33. package/lib/factory.d.mts.map +1 -1
  34. package/lib/factory.mjs.map +1 -1
  35. package/lib/index.d.mts +2 -2
  36. package/lib/index.d.mts.map +1 -1
  37. package/lib/index.mjs +2 -2
  38. package/lib/index.mjs.map +1 -1
  39. package/lib/odsp-driver-definitions-alpha.d.mts +19 -74
  40. package/lib/odsp-driver-definitions-beta.d.mts +4 -5
  41. package/lib/odsp-driver-definitions-public.d.mts +0 -4
  42. package/lib/odsp-driver-definitions-untrimmed.d.mts +19 -74
  43. package/lib/resolvedUrl.d.mts +1 -16
  44. package/lib/resolvedUrl.d.mts.map +1 -1
  45. package/lib/resolvedUrl.mjs +0 -9
  46. package/lib/resolvedUrl.mjs.map +1 -1
  47. package/lib/sessionProvider.d.mts +6 -0
  48. package/lib/sessionProvider.d.mts.map +1 -1
  49. package/lib/sessionProvider.mjs.map +1 -1
  50. package/lib/tokenFetch.d.mts +4 -1
  51. package/lib/tokenFetch.d.mts.map +1 -1
  52. package/lib/tokenFetch.mjs.map +1 -1
  53. package/package.json +15 -6
  54. package/src/errors.ts +1 -64
  55. package/src/factory.ts +5 -2
  56. package/src/index.ts +1 -8
  57. package/src/resolvedUrl.ts +1 -18
  58. package/src/sessionProvider.ts +7 -0
  59. package/src/tokenFetch.ts +4 -1
  60. /package/{.eslintrc.js → .eslintrc.cjs} +0 -0
package/src/index.ts CHANGED
@@ -3,13 +3,7 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- export {
7
- IOdspError,
8
- IOdspErrorAugmentations,
9
- OdspError,
10
- OdspErrorType,
11
- OdspErrorTypes,
12
- } from "./errors";
6
+ export { IOdspError, IOdspErrorAugmentations, OdspError, OdspErrorTypes } from "./errors";
13
7
  export {
14
8
  HostStoragePolicy,
15
9
  ICollabSessionOptions,
@@ -31,7 +25,6 @@ export {
31
25
  ISharingLink,
32
26
  ISharingLinkKind,
33
27
  ShareLinkInfoType,
34
- ShareLinkTypes,
35
28
  SharingLinkRole,
36
29
  SharingLinkScope,
37
30
  } from "./resolvedUrl";
@@ -14,15 +14,6 @@ export interface IOdspUrlParts {
14
14
  itemId: string;
15
15
  }
16
16
 
17
- /**
18
- * @deprecated Use ISharingLinkKind type instead.
19
- * Type of shareLink requested/created when creating the file for the first time.
20
- * @alpha
21
- */
22
- export enum ShareLinkTypes {
23
- csl = "csl",
24
- }
25
-
26
17
  /**
27
18
  * Sharing scope of the share links created for a file.
28
19
  * @alpha
@@ -80,18 +71,10 @@ export interface ShareLinkInfoType {
80
71
  * from the /snapshot api response.
81
72
  */
82
73
  createLink?: {
83
- /**
84
- * @deprecated
85
- * Type of shareLink requested/created when creating the file for the first time. The 'type' property here
86
- * represents the type of sharing link requested.
87
- * Will be deprecated soon. Type of sharing link will be present in the link:ISharingLink property below.
88
- */
89
- type?: ShareLinkTypes | ISharingLinkKind;
90
-
91
74
  /**
92
75
  * Share link created when the file is created for the first time with /snapshot api call.
93
76
  */
94
- link?: string | ISharingLink;
77
+ link?: ISharingLink;
95
78
 
96
79
  /**
97
80
  * Error message if creation of sharing link fails with /snapshot api call
@@ -38,6 +38,13 @@ export interface ISocketStorageDiscovery {
38
38
  * This is the time within which client has to refresh the session on (ODSP) relay service.
39
39
  */
40
40
  refreshSessionDurationSeconds?: number;
41
+
42
+ /**
43
+ * Represent the sensitivity labels info for the file. Keeping it optional for back-compat. The
44
+ * response will contain empty labels when the file has no labels, so this field will be there
45
+ * even if file has no labels when the service will implement this contract.
46
+ */
47
+ sensitivityLabelsInfo?: string;
41
48
  }
42
49
 
43
50
  /**
package/src/tokenFetch.ts CHANGED
@@ -11,7 +11,10 @@ export interface TokenResponse {
11
11
  /** Token value */
12
12
  token: string;
13
13
 
14
- /** Flag indicating whether token was obtained from local cache */
14
+ /**
15
+ * Whether or not the token was obtained from local cache.
16
+ * @remarks `undefined` indicates that it could not be determined whether or not the token was obtained this way.
17
+ */
15
18
  fromCache?: boolean;
16
19
  }
17
20
 
File without changes