Skip to content

Commit 7ecb001

Browse files
committed
chore(client): changeset for auth.mePermissions()
Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b3a769e commit 7ecb001

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
"@objectstack/client": patch
3+
---
4+
5+
feat(client): `client.auth.mePermissions()` reads the caller's effective permissions, typed `MePermissionsResponse`
6+
7+
Clause-②: yes (widening) — one new SDK method over an existing route; no wire change and no new route.
8+
9+
Metadata-protocol: none
10+
11+
- **Before.** `GET /auth/me/permissions` had a strict response contract in `@objectstack/spec/api` (`MePermissionsResponseSchema`) but no client method, so a consumer fetched the route by hand and typed the body itself.
12+
- **Now.** `client.auth.mePermissions()` GETs `/api/v1/auth/me/permissions` and resolves `MePermissionsResponse`. Discriminate on `authenticated`: a signed-out caller resolves `{ authenticated: false }` instead of throwing, unlike `client.auth.me()`.

0 commit comments

Comments
 (0)