@virtru/dsp-sdk 0.7.5 → 0.7.7
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 +16 -1
- package/dist/src/lib/utils.js +6 -9
- package/package.json +21 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
# Change Log - @virtru/dsp-sdk
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Tue, 23 Jun 2026 19:10:55 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.7.7
|
|
6
|
+
Tue, 23 Jun 2026 19:10:55 GMT
|
|
7
|
+
|
|
8
|
+
### Patches
|
|
9
|
+
|
|
10
|
+
- Bump @opentdf/sdk version
|
|
11
|
+
|
|
12
|
+
## 0.7.6
|
|
13
|
+
Thu, 21 May 2026 15:41:46 GMT
|
|
14
|
+
|
|
15
|
+
### Patches
|
|
16
|
+
|
|
17
|
+
- Refresh the DSP SDK dependency so entitlement lookups use the Connect shared service endpoint.
|
|
18
|
+
- Move GetMyEntitlements to the Connect shared service endpoint.
|
|
4
19
|
|
|
5
20
|
## 0.7.5
|
|
6
21
|
Thu, 14 May 2026 17:39:47 GMT
|
package/dist/src/lib/utils.js
CHANGED
|
@@ -96,16 +96,13 @@ export async function getUserEntitlements(options) {
|
|
|
96
96
|
refreshToken: options.refreshToken,
|
|
97
97
|
cryptoService: options.cryptoService,
|
|
98
98
|
});
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
headers: {
|
|
103
|
-
Authorization: `Bearer ${accessToken}`,
|
|
104
|
-
'Content-Type': 'application/json',
|
|
105
|
-
},
|
|
106
|
-
method: 'POST',
|
|
99
|
+
const dspClient = new DSPClient({
|
|
100
|
+
authProvider,
|
|
101
|
+
platformUrl: options.platformEndpoint,
|
|
107
102
|
});
|
|
108
|
-
return (await
|
|
103
|
+
return (await dspClient.v1.sharedService.getMyEntitlements({
|
|
104
|
+
attributeValueFqns: [],
|
|
105
|
+
}));
|
|
109
106
|
}
|
|
110
107
|
export const flattenObligations = (obligations) => Object.values(obligations).flatMap((feature) => feature?.fully_qualified_names || []);
|
|
111
108
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@virtru/dsp-sdk",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.7",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -31,32 +31,32 @@
|
|
|
31
31
|
"node": ">=18.0.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@eslint/js": "
|
|
35
|
-
"@rushstack/heft": "
|
|
36
|
-
"@rushstack/heft-web-rig": "
|
|
37
|
-
"@types/node": "
|
|
38
|
-
"@vitest/browser": "
|
|
39
|
-
"buffer": "
|
|
40
|
-
"eslint": "
|
|
41
|
-
"eslint-plugin-prettier": "
|
|
42
|
-
"globals": "
|
|
43
|
-
"jsdom": "
|
|
44
|
-
"msw": "
|
|
45
|
-
"playwright": "
|
|
34
|
+
"@eslint/js": "9.39.4",
|
|
35
|
+
"@rushstack/heft": "1.2.17",
|
|
36
|
+
"@rushstack/heft-web-rig": "1.4.19",
|
|
37
|
+
"@types/node": "22.19.17",
|
|
38
|
+
"@vitest/browser": "3.1.4",
|
|
39
|
+
"buffer": "6.0.3",
|
|
40
|
+
"eslint": "9.39.4",
|
|
41
|
+
"eslint-plugin-prettier": "5.5.5",
|
|
42
|
+
"globals": "16.5.0",
|
|
43
|
+
"jsdom": "22.1.0",
|
|
44
|
+
"msw": "2.13.5",
|
|
45
|
+
"playwright": "1.59.1",
|
|
46
46
|
"typescript": "5.8.2",
|
|
47
|
-
"typescript-eslint": "
|
|
47
|
+
"typescript-eslint": "8.59.0",
|
|
48
48
|
"vite": "8.0.8",
|
|
49
|
-
"vite-plugin-dts": "
|
|
49
|
+
"vite-plugin-dts": "4.5.4",
|
|
50
50
|
"vitest": "4.1.4",
|
|
51
51
|
"@virtru-private/fips-crypto-js": "0.4.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@bufbuild/protobuf": "
|
|
55
|
-
"@connectrpc/connect": "
|
|
56
|
-
"@connectrpc/connect-web": "
|
|
57
|
-
"@opentdf/sdk": "0.
|
|
58
|
-
"asn1js": "
|
|
59
|
-
"pkijs": "
|
|
54
|
+
"@bufbuild/protobuf": "2.12.0",
|
|
55
|
+
"@connectrpc/connect": "2.0.4",
|
|
56
|
+
"@connectrpc/connect-web": "2.0.4",
|
|
57
|
+
"@opentdf/sdk": "0.19.0",
|
|
58
|
+
"asn1js": "3.0.10",
|
|
59
|
+
"pkijs": "3.4.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"@virtru-private/fips-crypto-js": "0.4.0"
|