@camstack/server 1.2.534 → 1.2.536

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.
@@ -9,7 +9,13 @@ const trpc_middleware_js_1 = require("../trpc/trpc.middleware.js");
9
9
  /** Upper bound of one bulk call — a page of a table, several times over. */
10
10
  exports.REVOKE_CREDENTIALS_MAX = 500;
11
11
  /** What a bulk revoke can target. Each has a per-row revoke on the server. */
12
- exports.RevocableCredentialKindSchema = zod_1.z.enum(['share-link', 'admin-token', 'login-session']);
12
+ exports.RevocableCredentialKindSchema = zod_1.z.enum([
13
+ 'share-link',
14
+ 'admin-token',
15
+ 'login-session',
16
+ 'scoped-token',
17
+ 'oauth-session',
18
+ ]);
13
19
  exports.RevokeSkipReasonSchema = zod_1.z.enum(['current-session', 'not-active']);
14
20
  const RevokeCredentialsInputSchema = zod_1.z
15
21
  .object({
@@ -64,6 +70,12 @@ function revokerFor(kind, caller, deps) {
64
70
  if (kind === 'admin-token') {
65
71
  return async (id) => ((await internal.adminTokens.revoke(id)) ? null : 'not-active');
66
72
  }
73
+ if (kind === 'scoped-token') {
74
+ return async (id) => ((await internal.scopedTokens.revoke(id)) ? null : 'not-active');
75
+ }
76
+ if (kind === 'oauth-session') {
77
+ return async (id) => ((await internal.oauthSessions.revoke(id)) ? null : 'not-active');
78
+ }
67
79
  return async (id) => {
68
80
  if (id === caller.sessionId)
69
81
  return 'current-session';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/server",
3
- "version": "1.2.534",
3
+ "version": "1.2.536",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "files": [
@@ -37,18 +37,18 @@
37
37
  ]
38
38
  },
39
39
  "dependencies": {
40
- "@camstack/addon-admin-ui": "1.2.401",
41
- "@camstack/addon-agent-ui": "1.2.221",
40
+ "@camstack/addon-admin-ui": "1.2.403",
41
+ "@camstack/addon-agent-ui": "1.2.223",
42
42
  "@camstack/addon-auth": "1.2.141",
43
43
  "@camstack/addon-decoder-nodeav": "1.2.123",
44
- "@camstack/addon-notifiers": "1.2.133",
45
- "@camstack/addon-pipeline": "1.2.356",
44
+ "@camstack/addon-notifiers": "1.2.134",
45
+ "@camstack/addon-pipeline": "1.2.357",
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.412",
50
- "@camstack/types": "1.2.351",
51
- "@camstack/ui-library": "1.2.279",
49
+ "@camstack/system": "1.2.413",
50
+ "@camstack/types": "1.2.352",
51
+ "@camstack/ui-library": "1.2.281",
52
52
  "@fastify/compress": "^9.0.0",
53
53
  "@fastify/cookie": "^11.0.2",
54
54
  "@fastify/cors": "^11.2.0",