@camstack/server 1.2.529 → 1.2.531

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.
@@ -1048,6 +1048,24 @@ function createAuthRouter(auth, registry, moleculer = null, shareTokens = null,
1048
1048
  callerUserId: ctx.user.id,
1049
1049
  callerIsAdmin: ctx.user.isAdmin,
1050
1050
  });
1051
+ if (removed) {
1052
+ const internal = registry === null ? null : (0, hub_sessions_js_1.userManagementInternal)(registry);
1053
+ if (internal !== null) {
1054
+ const ip = network.clientAddress(ctx.req).ip;
1055
+ await internal.audit.record({
1056
+ action: 'credentials-revoked',
1057
+ userId: ctx.user.id,
1058
+ ...(ip !== null ? { ip } : {}),
1059
+ detail: {
1060
+ kind: 'share-link',
1061
+ requested: 1,
1062
+ revoked: 1,
1063
+ skipped: 0,
1064
+ ids: input.id,
1065
+ },
1066
+ });
1067
+ }
1068
+ }
1051
1069
  return { success: removed };
1052
1070
  }
1053
1071
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/server",
3
- "version": "1.2.529",
3
+ "version": "1.2.531",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "files": [
@@ -37,17 +37,17 @@
37
37
  ]
38
38
  },
39
39
  "dependencies": {
40
- "@camstack/addon-admin-ui": "1.2.398",
40
+ "@camstack/addon-admin-ui": "1.2.399",
41
41
  "@camstack/addon-agent-ui": "1.2.221",
42
- "@camstack/addon-auth": "1.2.140",
42
+ "@camstack/addon-auth": "1.2.141",
43
43
  "@camstack/addon-decoder-nodeav": "1.2.123",
44
- "@camstack/addon-notifiers": "1.2.130",
44
+ "@camstack/addon-notifiers": "1.2.132",
45
45
  "@camstack/addon-pipeline": "1.2.356",
46
46
  "@camstack/addon-pipeline-orchestrator": "1.2.308",
47
47
  "@camstack/addon-post-analysis": "1.2.356",
48
48
  "@camstack/sdk": "1.2.131",
49
- "@camstack/system": "1.2.411",
50
- "@camstack/types": "1.2.350",
49
+ "@camstack/system": "1.2.412",
50
+ "@camstack/types": "1.2.351",
51
51
  "@camstack/ui-library": "1.2.279",
52
52
  "@fastify/compress": "^9.0.0",
53
53
  "@fastify/cookie": "^11.0.2",