@manta-eu/codegen 0.1.0 → 0.1.2
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/README.md +2 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ repository has neither the files nor Nix, so this package reads the shapes over
|
|
|
9
9
|
```shell
|
|
10
10
|
pnpm manta-codegen generate \
|
|
11
11
|
--api-url https://app.example \
|
|
12
|
-
--datastore
|
|
12
|
+
--datastore your-datastore \
|
|
13
13
|
--keycloak-url https://keycloak.example \
|
|
14
14
|
--keycloak-realm your-realm \
|
|
15
15
|
--client-id your-realm-app \
|
|
@@ -43,9 +43,7 @@ export MANTA_CLIENT_SECRET=... # never a flag: an argument list is public on t
|
|
|
43
43
|
Two traps:
|
|
44
44
|
|
|
45
45
|
- `--client-id` must name the realm's **app** client. The API compares the token's `azp` against its
|
|
46
|
-
own `VITE_KEYCLOAK_CLIENT_ID`, and answers 401 for any other client.
|
|
47
|
-
(`authorizedPartyCheckEnabled`), which is the only reason the `manta-codegen` service client works
|
|
48
|
-
from CI. Turning it on 401s this caller.
|
|
46
|
+
own `VITE_KEYCLOAK_CLIENT_ID`, and answers 401 for any other client.
|
|
49
47
|
- The API grants a datastore to a person, or to a service account holding the `operator` realm role.
|
|
50
48
|
Without that role a service account token is refused the datastore, so a local run needs either the
|
|
51
49
|
device login or a client shaped like `manta-codegen`, which has no device flow and needs
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manta-eu/codegen",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "CLI that generates LDkit schemas from a realm's SHACL shapes, read from its datastore",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@typescript-eslint/eslint-plugin": "^8.56.1",
|
|
27
27
|
"@typescript-eslint/parser": "^8.56.1",
|
|
28
28
|
"eslint": "^9.39.2",
|
|
29
|
-
"
|
|
29
|
+
"rimraf": "^6.1.3",
|
|
30
30
|
"typescript": "^5.0.0",
|
|
31
31
|
"vitest": "^3.0.0"
|
|
32
32
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
|
-
"build": "tsc -p tsconfig.build.json",
|
|
42
|
+
"build": "rimraf dist && tsc -p tsconfig.build.json",
|
|
43
43
|
"build:lib": "pnpm run build",
|
|
44
44
|
"test": "vitest --run",
|
|
45
45
|
"types": "tsc --noEmit"
|