@crombolo/api-management 0.64.0 → 0.65.1

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 (2) hide show
  1. package/package.json +4 -4
  2. package/src/router.ts +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crombolo/api-management",
3
- "version": "0.64.0",
3
+ "version": "0.65.1",
4
4
  "description": "Internal to crombolo, with no compatibility promise: use @crombolo/crombolo. Umbraco-compatible Management API handlers for crombolo.",
5
5
  "license": "MIT",
6
6
  "author": "Crombolo",
@@ -29,8 +29,8 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@crombolo/content": "0.64.0",
33
- "@crombolo/contracts": "0.64.0",
34
- "@crombolo/core": "0.64.0"
32
+ "@crombolo/content": "0.65.1",
33
+ "@crombolo/contracts": "0.65.1",
34
+ "@crombolo/core": "0.65.1"
35
35
  }
36
36
  }
package/src/router.ts CHANGED
@@ -66,6 +66,11 @@ export interface Principal {
66
66
  * the remote protocol's routes.
67
67
  */
68
68
  ci?: { rule: string; claims: Record<string, string> }
69
+ /**
70
+ * Set while an administrator's session views as user groups (story 314):
71
+ * everything above is the groups', and they are who this really is.
72
+ */
73
+ viewingAs?: { groups: Array<{ key: string; name: string }>; until: Date }
69
74
  }
70
75
 
71
76
  export interface RequestContext {