@ackplus/nest-auth 2.10.4 → 2.11.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/dist/lib/admin-console/controllers/admin-users.controller.d.ts +101 -1
- package/dist/lib/admin-console/controllers/admin-users.controller.d.ts.map +1 -1
- package/dist/lib/admin-console/controllers/admin-users.controller.js +68 -36
- package/dist/lib/admin-console/controllers/admin-users.controller.js.map +1 -1
- package/dist/lib/admin-console/dto/admin-user.dto.d.ts +1 -0
- package/dist/lib/admin-console/dto/admin-user.dto.d.ts.map +1 -1
- package/dist/lib/admin-console/dto/admin-user.dto.js +7 -0
- package/dist/lib/admin-console/dto/admin-user.dto.js.map +1 -1
- package/dist/lib/admin-console/static/index.html +373 -368
- package/dist/lib/admin-console/static/nest-auth.json +16 -2
- package/package.json +3 -3
|
@@ -2445,6 +2445,20 @@
|
|
|
2445
2445
|
"schema": {
|
|
2446
2446
|
"type": "string"
|
|
2447
2447
|
}
|
|
2448
|
+
},
|
|
2449
|
+
{
|
|
2450
|
+
"name": "scope",
|
|
2451
|
+
"required": false,
|
|
2452
|
+
"in": "query",
|
|
2453
|
+
"description": "Access scope. `all` (default) lists every user; `platform` lists only platform (super-admin) users — those holding a `NestAuthPlatformAccess` marker; `tenant` lists only users WITHOUT that marker. The two scopes are independent, so a user may hold both.",
|
|
2454
|
+
"schema": {
|
|
2455
|
+
"enum": [
|
|
2456
|
+
"all",
|
|
2457
|
+
"platform",
|
|
2458
|
+
"tenant"
|
|
2459
|
+
],
|
|
2460
|
+
"type": "string"
|
|
2461
|
+
}
|
|
2448
2462
|
}
|
|
2449
2463
|
],
|
|
2450
2464
|
"responses": {
|
|
@@ -2497,7 +2511,7 @@
|
|
|
2497
2511
|
"admin-session": []
|
|
2498
2512
|
}
|
|
2499
2513
|
],
|
|
2500
|
-
"summary": "List users (paginated, cross-tenant; filter by status/tenant/role/search)",
|
|
2514
|
+
"summary": "List users (paginated, cross-tenant; filter by scope/status/tenant/role/search)",
|
|
2501
2515
|
"tags": [
|
|
2502
2516
|
"Admin · Users"
|
|
2503
2517
|
]
|
|
@@ -4514,7 +4528,7 @@
|
|
|
4514
4528
|
"info": {
|
|
4515
4529
|
"title": "@ackplus/nest-auth API",
|
|
4516
4530
|
"description": "Authentication & authorization API for **@ackplus/nest-auth**.\n\n### Conventions\n- **Base URL** — routes are shown relative to your app’s global prefix. The reference example app uses `/api`, so a route like `POST /auth/login` is called at `POST /api/auth/login`.\n- **Auth** — most endpoints require a Bearer access token: `Authorization: Bearer <accessToken>`. The **Admin** endpoints use an httpOnly session cookie set by `POST /auth/admin/login`.\n- **Token modes** — in *header* mode (default) tokens are returned in the response body; in *cookie* mode they are set as httpOnly cookies. Controlled by `accessTokenType`.\n- **Errors** — failures return `{ statusCode, error, message, code }`; the machine-readable `code` is the value to branch on.\n\nBrowse by section in the sidebar: **Authentication**, **Password**, **Verification**, **Passwordless**, **MFA**, and the **Admin** groups.",
|
|
4517
|
-
"version": "2.
|
|
4531
|
+
"version": "2.11.0",
|
|
4518
4532
|
"contact": {}
|
|
4519
4533
|
},
|
|
4520
4534
|
"tags": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ackplus/nest-auth",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "Authentication & authorization for NestJS — JWT/cookie sessions, refresh-token rotation, RBAC, multi-tenancy, MFA, OAuth/social login, passwordless, API keys, and a built-in admin console.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"qrcode": "^1.5.0",
|
|
50
50
|
"qs": "^6.11.2",
|
|
51
51
|
"speakeasy": "^2.0.0",
|
|
52
|
-
"@ackplus/nest-auth-contracts": "2.
|
|
52
|
+
"@ackplus/nest-auth-contracts": "2.11.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@nestjs/common": "^10 || ^11",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"@types/supertest": "^6.0.2",
|
|
112
112
|
"unplugin-swc": "^1.5.0",
|
|
113
113
|
"@swc/core": "^1.7.0",
|
|
114
|
-
"@ackplus/vitest-preset": "2.
|
|
114
|
+
"@ackplus/vitest-preset": "2.11.0"
|
|
115
115
|
},
|
|
116
116
|
"scripts": {
|
|
117
117
|
"clean": "rm -rf dist tsconfig.build.tsbuildinfo",
|