@khal-os/types 1.0.17 → 1.0.19
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/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/package.json +6 -5
package/dist/index.d.cts
CHANGED
|
@@ -7,6 +7,11 @@ interface KhalAuth {
|
|
|
7
7
|
role: string;
|
|
8
8
|
permissions: string[];
|
|
9
9
|
loading: boolean;
|
|
10
|
+
/** WorkOS-provided profile fields propagated via the platform JWT. All
|
|
11
|
+
* optional — callers MUST fall back to `userId`/`email` when absent. */
|
|
12
|
+
email?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
picture?: string;
|
|
10
15
|
}
|
|
11
16
|
|
|
12
17
|
/** Canonical role hierarchy from least to most privileged. */
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,11 @@ interface KhalAuth {
|
|
|
7
7
|
role: string;
|
|
8
8
|
permissions: string[];
|
|
9
9
|
loading: boolean;
|
|
10
|
+
/** WorkOS-provided profile fields propagated via the platform JWT. All
|
|
11
|
+
* optional — callers MUST fall back to `userId`/`email` when absent. */
|
|
12
|
+
email?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
picture?: string;
|
|
10
15
|
}
|
|
11
16
|
|
|
12
17
|
/** Canonical role hierarchy from least to most privileged. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khal-os/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
"README.md",
|
|
24
24
|
"LICENSE"
|
|
25
25
|
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsup",
|
|
28
|
+
"prepublishOnly": "pnpm run build"
|
|
29
|
+
},
|
|
26
30
|
"repository": {
|
|
27
31
|
"type": "git",
|
|
28
32
|
"url": "https://github.com/khal-os/app-kit.git",
|
|
@@ -35,8 +39,5 @@
|
|
|
35
39
|
"license": "Elastic-2.0",
|
|
36
40
|
"dependencies": {
|
|
37
41
|
"zod": "^4.3.6"
|
|
38
|
-
},
|
|
39
|
-
"scripts": {
|
|
40
|
-
"build": "tsup"
|
|
41
42
|
}
|
|
42
|
-
}
|
|
43
|
+
}
|