@balena/open-balena-api 47.1.14 → 47.1.15

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.
@@ -137,9 +137,6 @@ ON "role-has-permission" ("permission");
137
137
  CREATE INDEX IF NOT EXISTS "service_install_service_idx"
138
138
  ON "service install" ("installs-service");
139
139
 
140
- CREATE INDEX IF NOT EXISTS "user_actor_idx"
141
- ON "user" ("actor");
142
-
143
140
  CREATE INDEX IF NOT EXISTS "user_has_permission_permission_idx"
144
141
  ON "user-has-permission" ("permission");
145
142
 
package/dist/balena.sbvr CHANGED
@@ -39,6 +39,11 @@ Fact type: role has permission
39
39
  Term: user
40
40
  Reference Scheme: username
41
41
  Concept Type: actor
42
+ -- `user` already has `Concept Type: actor` above; this fact type references that
43
+ -- same relationship to make the `actor` column unique.
44
+ Fact type: user has actor
45
+ Necessity: Each user has exactly one actor.
46
+ Necessity: Each actor is of at most one user.
42
47
  Fact type: user has username
43
48
  Necessity: Each user has exactly one username.
44
49
  Necessity: Each user has a username that has a Length (Type) that is less than or equal to 73.
@@ -0,0 +1,4 @@
1
+ CREATE UNIQUE INDEX IF NOT EXISTS "user_actor_key" ON "user" ("actor");
2
+
3
+ -- The unique index supersedes the old non-unique lookup index.
4
+ DROP INDEX IF EXISTS "user_actor_idx";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@balena/open-balena-api",
3
3
  "description": "Internet of things, Made Simple",
4
- "version": "47.1.14",
4
+ "version": "47.1.15",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -183,6 +183,6 @@
183
183
  "import": "@swc-node/register/esm-register"
184
184
  },
185
185
  "versionist": {
186
- "publishedAt": "2026-06-16T10:51:33.200Z"
186
+ "publishedAt": "2026-06-16T12:37:37.462Z"
187
187
  }
188
188
  }