@fluidframework/odsp-driver-definitions 2.81.0 → 2.82.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.
- package/CHANGELOG.md +4 -0
- package/api-report/odsp-driver-definitions.legacy.beta.api.md +1 -1
- package/dist/sessionProvider.d.ts +2 -2
- package/dist/sessionProvider.d.ts.map +1 -1
- package/dist/sessionProvider.js.map +1 -1
- package/lib/sessionProvider.d.ts +2 -2
- package/lib/sessionProvider.d.ts.map +1 -1
- package/lib/sessionProvider.js.map +1 -1
- package/package.json +14 -5
- package/src/sessionProvider.ts +2 -2
- package/biome.jsonc +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -40,8 +40,8 @@ export interface ISocketStorageDiscovery {
|
|
|
40
40
|
* @legacy @beta
|
|
41
41
|
*/
|
|
42
42
|
export interface ISensitivityLabelsInfo {
|
|
43
|
-
/**
|
|
44
|
-
timestamp:
|
|
43
|
+
/** Unix timestamp in milliseconds when the label info snapshot was generated. */
|
|
44
|
+
timestamp: number;
|
|
45
45
|
/** List of applied sensitivity labels. Empty if none. */
|
|
46
46
|
labels: ISensitivityLabel[];
|
|
47
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessionProvider.d.ts","sourceRoot":"","sources":["../src/sessionProvider.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAE3E;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IAEvC,EAAE,EAAE,MAAM,CAAC;IAIX,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IAEjB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,6BAA6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IACzF,0BAA0B,CACzB,WAAW,EAAE,YAAY,GACvB,OAAO,CAAC,uBAAuB,GAAG,SAAS,CAAC,CAAC;CAChD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessionProvider.js","sourceRoot":"","sources":["../src/sessionProvider.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IResolvedUrl } from \"@fluidframework/driver-definitions/internal\";\n\n/**\n * Socket storage discovery api response\n * @legacy @beta\n */\nexport interface ISocketStorageDiscovery {\n\t// The id of the web socket\n\tid: string;\n\n\t// SPO gives us runtimeTenantId, we remap it to tenantId\n\t// See getSocketStorageDiscovery\n\truntimeTenantId?: string;\n\ttenantId: string;\n\n\tsnapshotStorageUrl: string;\n\tdeltaStorageUrl: string;\n\n\t/**\n\t * PUSH URL\n\t */\n\tdeltaStreamSocketUrl: string;\n\n\t/**\n\t * The access token for PushChannel. Optionally returned, depending on implementation.\n\t * OneDrive for Consumer implementation returns it and OneDrive for Business implementation\n\t * does not return it and instead expects token to be returned via `getWebsocketToken` callback\n\t * passed as a parameter to `OdspDocumentService.create()` factory.\n\t */\n\tsocketToken?: string;\n\n\t/**\n\t * This is the time within which client has to refresh the session on (ODSP) relay service.\n\t */\n\trefreshSessionDurationSeconds?: number;\n\n\t/**\n\t * Represent the sensitivity labels info for the file. Keeping it optional for back-compat. The\n\t * response will contain empty labels when the file has no labels, so this field will be there\n\t * even if file has no labels when the service will implement this contract.\n\t */\n\tsensitivityLabelsInfo?: ISensitivityLabelsInfo;\n}\n\n/**\n * Sensitivity labels information for a file, part of the socket storage discovery response.\n * @legacy @beta\n */\nexport interface ISensitivityLabelsInfo {\n\t/**
|
|
1
|
+
{"version":3,"file":"sessionProvider.js","sourceRoot":"","sources":["../src/sessionProvider.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IResolvedUrl } from \"@fluidframework/driver-definitions/internal\";\n\n/**\n * Socket storage discovery api response\n * @legacy @beta\n */\nexport interface ISocketStorageDiscovery {\n\t// The id of the web socket\n\tid: string;\n\n\t// SPO gives us runtimeTenantId, we remap it to tenantId\n\t// See getSocketStorageDiscovery\n\truntimeTenantId?: string;\n\ttenantId: string;\n\n\tsnapshotStorageUrl: string;\n\tdeltaStorageUrl: string;\n\n\t/**\n\t * PUSH URL\n\t */\n\tdeltaStreamSocketUrl: string;\n\n\t/**\n\t * The access token for PushChannel. Optionally returned, depending on implementation.\n\t * OneDrive for Consumer implementation returns it and OneDrive for Business implementation\n\t * does not return it and instead expects token to be returned via `getWebsocketToken` callback\n\t * passed as a parameter to `OdspDocumentService.create()` factory.\n\t */\n\tsocketToken?: string;\n\n\t/**\n\t * This is the time within which client has to refresh the session on (ODSP) relay service.\n\t */\n\trefreshSessionDurationSeconds?: number;\n\n\t/**\n\t * Represent the sensitivity labels info for the file. Keeping it optional for back-compat. The\n\t * response will contain empty labels when the file has no labels, so this field will be there\n\t * even if file has no labels when the service will implement this contract.\n\t */\n\tsensitivityLabelsInfo?: ISensitivityLabelsInfo;\n}\n\n/**\n * Sensitivity labels information for a file, part of the socket storage discovery response.\n * @legacy @beta\n */\nexport interface ISensitivityLabelsInfo {\n\t/** Unix timestamp in milliseconds when the label info snapshot was generated. */\n\ttimestamp: number;\n\t/** List of applied sensitivity labels. Empty if none. */\n\tlabels: ISensitivityLabel[];\n}\n\n/**\n * A single sensitivity label applied to a document, part of the socket storage discovery response.\n * @legacy @beta\n */\nexport interface ISensitivityLabel {\n\t/** Unique identifier of the sensitivity label. */\n\tsensitivityLabelId: string;\n\t/** Tenant under which the label is defined. */\n\ttenantId: string;\n\t/** How the label was assigned, for example \"standard\". */\n\tassignmentMethod: string;\n\t/** Email of the user who applied the label. */\n\tappliedByUserEmail: string;\n}\n\n/**\n * An interface that allows a concrete instance of a driver factory to interrogate itself\n * to find out if it is session aware.\n * @legacy @beta\n */\nexport interface IProvideSessionAwareDriverFactory {\n\treadonly IRelaySessionAwareDriverFactory: IRelaySessionAwareDriverFactory;\n}\n\n/**\n * An interface that allows a concrete instance of a driver factory to call the `getRelayServiceSessionInfo`\n * function if it session aware.\n * @legacy @beta\n */\nexport interface IRelaySessionAwareDriverFactory extends IProvideSessionAwareDriverFactory {\n\tgetRelayServiceSessionInfo(\n\t\tresolvedUrl: IResolvedUrl,\n\t): Promise<ISocketStorageDiscovery | undefined>;\n}\n"]}
|
package/lib/sessionProvider.d.ts
CHANGED
|
@@ -40,8 +40,8 @@ export interface ISocketStorageDiscovery {
|
|
|
40
40
|
* @legacy @beta
|
|
41
41
|
*/
|
|
42
42
|
export interface ISensitivityLabelsInfo {
|
|
43
|
-
/**
|
|
44
|
-
timestamp:
|
|
43
|
+
/** Unix timestamp in milliseconds when the label info snapshot was generated. */
|
|
44
|
+
timestamp: number;
|
|
45
45
|
/** List of applied sensitivity labels. Empty if none. */
|
|
46
46
|
labels: ISensitivityLabel[];
|
|
47
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessionProvider.d.ts","sourceRoot":"","sources":["../src/sessionProvider.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAE3E;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IAEvC,EAAE,EAAE,MAAM,CAAC;IAIX,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IAEjB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,6BAA6B,CAAC,EAAE,MAAM,CAAC;IAEvC;;;;OAIG;I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OAAO,CAAC,uBAAuB,GAAG,SAAS,CAAC,CAAC;CAChD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessionProvider.js","sourceRoot":"","sources":["../src/sessionProvider.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IResolvedUrl } from \"@fluidframework/driver-definitions/internal\";\n\n/**\n * Socket storage discovery api response\n * @legacy @beta\n */\nexport interface ISocketStorageDiscovery {\n\t// The id of the web socket\n\tid: string;\n\n\t// SPO gives us runtimeTenantId, we remap it to tenantId\n\t// See getSocketStorageDiscovery\n\truntimeTenantId?: string;\n\ttenantId: string;\n\n\tsnapshotStorageUrl: string;\n\tdeltaStorageUrl: string;\n\n\t/**\n\t * PUSH URL\n\t */\n\tdeltaStreamSocketUrl: string;\n\n\t/**\n\t * The access token for PushChannel. Optionally returned, depending on implementation.\n\t * OneDrive for Consumer implementation returns it and OneDrive for Business implementation\n\t * does not return it and instead expects token to be returned via `getWebsocketToken` callback\n\t * passed as a parameter to `OdspDocumentService.create()` factory.\n\t */\n\tsocketToken?: string;\n\n\t/**\n\t * This is the time within which client has to refresh the session on (ODSP) relay service.\n\t */\n\trefreshSessionDurationSeconds?: number;\n\n\t/**\n\t * Represent the sensitivity labels info for the file. Keeping it optional for back-compat. The\n\t * response will contain empty labels when the file has no labels, so this field will be there\n\t * even if file has no labels when the service will implement this contract.\n\t */\n\tsensitivityLabelsInfo?: ISensitivityLabelsInfo;\n}\n\n/**\n * Sensitivity labels information for a file, part of the socket storage discovery response.\n * @legacy @beta\n */\nexport interface ISensitivityLabelsInfo {\n\t/**
|
|
1
|
+
{"version":3,"file":"sessionProvider.js","sourceRoot":"","sources":["../src/sessionProvider.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IResolvedUrl } from \"@fluidframework/driver-definitions/internal\";\n\n/**\n * Socket storage discovery api response\n * @legacy @beta\n */\nexport interface ISocketStorageDiscovery {\n\t// The id of the web socket\n\tid: string;\n\n\t// SPO gives us runtimeTenantId, we remap it to tenantId\n\t// See getSocketStorageDiscovery\n\truntimeTenantId?: string;\n\ttenantId: string;\n\n\tsnapshotStorageUrl: string;\n\tdeltaStorageUrl: string;\n\n\t/**\n\t * PUSH URL\n\t */\n\tdeltaStreamSocketUrl: string;\n\n\t/**\n\t * The access token for PushChannel. Optionally returned, depending on implementation.\n\t * OneDrive for Consumer implementation returns it and OneDrive for Business implementation\n\t * does not return it and instead expects token to be returned via `getWebsocketToken` callback\n\t * passed as a parameter to `OdspDocumentService.create()` factory.\n\t */\n\tsocketToken?: string;\n\n\t/**\n\t * This is the time within which client has to refresh the session on (ODSP) relay service.\n\t */\n\trefreshSessionDurationSeconds?: number;\n\n\t/**\n\t * Represent the sensitivity labels info for the file. Keeping it optional for back-compat. The\n\t * response will contain empty labels when the file has no labels, so this field will be there\n\t * even if file has no labels when the service will implement this contract.\n\t */\n\tsensitivityLabelsInfo?: ISensitivityLabelsInfo;\n}\n\n/**\n * Sensitivity labels information for a file, part of the socket storage discovery response.\n * @legacy @beta\n */\nexport interface ISensitivityLabelsInfo {\n\t/** Unix timestamp in milliseconds when the label info snapshot was generated. */\n\ttimestamp: number;\n\t/** List of applied sensitivity labels. Empty if none. */\n\tlabels: ISensitivityLabel[];\n}\n\n/**\n * A single sensitivity label applied to a document, part of the socket storage discovery response.\n * @legacy @beta\n */\nexport interface ISensitivityLabel {\n\t/** Unique identifier of the sensitivity label. */\n\tsensitivityLabelId: string;\n\t/** Tenant under which the label is defined. */\n\ttenantId: string;\n\t/** How the label was assigned, for example \"standard\". */\n\tassignmentMethod: string;\n\t/** Email of the user who applied the label. */\n\tappliedByUserEmail: string;\n}\n\n/**\n * An interface that allows a concrete instance of a driver factory to interrogate itself\n * to find out if it is session aware.\n * @legacy @beta\n */\nexport interface IProvideSessionAwareDriverFactory {\n\treadonly IRelaySessionAwareDriverFactory: IRelaySessionAwareDriverFactory;\n}\n\n/**\n * An interface that allows a concrete instance of a driver factory to call the `getRelayServiceSessionInfo`\n * function if it session aware.\n * @legacy @beta\n */\nexport interface IRelaySessionAwareDriverFactory extends IProvideSessionAwareDriverFactory {\n\tgetRelayServiceSessionInfo(\n\t\tresolvedUrl: IResolvedUrl,\n\t): Promise<ISocketStorageDiscovery | undefined>;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/odsp-driver-definitions",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.82.0",
|
|
4
4
|
"description": "Socket storage implementation for SPO and ODC",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"main": "lib/index.js",
|
|
48
48
|
"types": "lib/public.d.ts",
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@fluidframework/driver-definitions": "~2.
|
|
50
|
+
"@fluidframework/driver-definitions": "~2.82.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"@fluid-tools/build-cli": "^0.63.0",
|
|
56
56
|
"@fluidframework/build-common": "^2.0.3",
|
|
57
57
|
"@fluidframework/build-tools": "^0.63.0",
|
|
58
|
-
"@fluidframework/eslint-config-fluid": "~2.
|
|
59
|
-
"@fluidframework/odsp-driver-definitions-previous": "npm:@fluidframework/odsp-driver-definitions@2.
|
|
58
|
+
"@fluidframework/eslint-config-fluid": "~2.82.0",
|
|
59
|
+
"@fluidframework/odsp-driver-definitions-previous": "npm:@fluidframework/odsp-driver-definitions@2.81.0",
|
|
60
60
|
"@microsoft/api-extractor": "7.52.11",
|
|
61
61
|
"concurrently": "^9.2.1",
|
|
62
62
|
"copyfiles": "^2.4.1",
|
|
@@ -67,7 +67,16 @@
|
|
|
67
67
|
"typescript": "~5.4.5"
|
|
68
68
|
},
|
|
69
69
|
"typeValidation": {
|
|
70
|
-
"broken": {
|
|
70
|
+
"broken": {
|
|
71
|
+
"Interface_ISocketStorageDiscovery": {
|
|
72
|
+
"forwardCompat": false,
|
|
73
|
+
"backCompat": false
|
|
74
|
+
},
|
|
75
|
+
"Interface_ISensitivityLabelsInfo": {
|
|
76
|
+
"forwardCompat": false,
|
|
77
|
+
"backCompat": false
|
|
78
|
+
}
|
|
79
|
+
},
|
|
71
80
|
"entrypoint": "legacy"
|
|
72
81
|
},
|
|
73
82
|
"scripts": {
|
package/src/sessionProvider.ts
CHANGED
|
@@ -52,8 +52,8 @@ export interface ISocketStorageDiscovery {
|
|
|
52
52
|
* @legacy @beta
|
|
53
53
|
*/
|
|
54
54
|
export interface ISensitivityLabelsInfo {
|
|
55
|
-
/**
|
|
56
|
-
timestamp:
|
|
55
|
+
/** Unix timestamp in milliseconds when the label info snapshot was generated. */
|
|
56
|
+
timestamp: number;
|
|
57
57
|
/** List of applied sensitivity labels. Empty if none. */
|
|
58
58
|
labels: ISensitivityLabel[];
|
|
59
59
|
}
|
package/biome.jsonc
DELETED