@friggframework/schemas 2.0.0--canary.683.f45da33.0 → 2.0.0--canary.684.e113124.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@friggframework/schemas",
3
- "version": "2.0.0--canary.683.f45da33.0",
3
+ "version": "2.0.0--canary.684.e113124.0",
4
4
  "description": "Canonical JSON Schema definitions for Frigg Framework",
5
5
  "main": "index.js",
6
6
  "author": "",
@@ -41,5 +41,5 @@
41
41
  "middleware/",
42
42
  "index.js"
43
43
  ],
44
- "gitHead": "f45da337e62262988666a166b3d721020dae9161"
44
+ "gitHead": "e1131240a890bf30cfee08ba3786458c9e2d1135"
45
45
  }
@@ -29,10 +29,32 @@
29
29
  "type": "boolean",
30
30
  "description": "Whether the authentication is currently valid"
31
31
  },
32
+ "scope": {
33
+ "type": "string",
34
+ "enum": ["individual", "organization"],
35
+ "description": "Whose the credential is (ADR-056 §3.4), from who owns the credential. `global` ones are not listed to tenants."
36
+ },
37
+ "owner": {
38
+ "type": "object",
39
+ "properties": {
40
+ "type": { "type": "string", "enum": ["individual", "organization"] },
41
+ "id": { "type": "string" }
42
+ },
43
+ "description": "The user that owns it: the person, or the organization's user"
44
+ },
45
+ "organizationId": {
46
+ "type": ["string", "null"],
47
+ "description": "The organization it belongs to. Null for an individual credential connected outside an organization, or under ownership.individualAcross 'all'."
48
+ },
49
+ "access": {
50
+ "type": "string",
51
+ "enum": ["manage", "use", "view"],
52
+ "description": "What the caller may do: manage (reauthorize, delete) or use. A member only uses an organization's credential."
53
+ },
32
54
  "entityCount": {
33
55
  "type": "integer",
34
56
  "minimum": 0,
35
- "description": "Number of entities using this credential"
57
+ "description": "Number of entities using this credential that the caller may see"
36
58
  },
37
59
  "createdAt": {
38
60
  "type": "string",