@inai-dev/hono 1.2.0 → 1.3.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.
Files changed (2) hide show
  1. package/README.md +2 -0
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -142,6 +142,8 @@ app.get("/api/me", (c) => {
142
142
  | `orgId` | `string \| null` | Active organization ID |
143
143
  | `orgRole` | `string \| null` | Role in active organization |
144
144
  | `sessionId` | `string \| null` | Session ID |
145
+ | `roles` | `string[]` | User's global roles |
146
+ | `permissions` | `string[]` | User's global permissions |
145
147
  | `getToken()` | `() => Promise<string \| null>` | Get the access token |
146
148
  | `has(params)` | `({ role?, permission? }) => boolean` | Check role or permission |
147
149
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inai-dev/hono",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Hono integration for InAI Auth SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -35,9 +35,9 @@
35
35
  "prepublishOnly": "npm run build"
36
36
  },
37
37
  "dependencies": {
38
- "@inai-dev/types": "^1.3.0",
39
- "@inai-dev/shared": "^1.3.0",
40
- "@inai-dev/backend": "^1.4.0"
38
+ "@inai-dev/types": "^1.4.0",
39
+ "@inai-dev/shared": "^1.5.0",
40
+ "@inai-dev/backend": "^1.5.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "hono": ">=4.0.0"