@vibexp/api-client 0.94.0 → 0.95.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/axios/types.gen.d.ts +15 -5
- package/dist/schema.d.ts +15 -5
- package/package.json +1 -1
|
@@ -146,18 +146,28 @@ export type User = {
|
|
|
146
146
|
/**
|
|
147
147
|
* The authenticated user as returned by GET /api/v1/auth/me — the full User
|
|
148
148
|
* object plus session-relative flags. `is_instance_admin` lets the SPA gate the
|
|
149
|
-
* Admin Portal menu and /admin routes
|
|
150
|
-
* /
|
|
149
|
+
* Admin Portal menu and /admin routes, and `is_root_instance_admin` lets it
|
|
150
|
+
* hide the grant/revoke admin controls; both are UI convenience only, as every
|
|
151
|
+
* /api/v1/admin* call (and every grant or revoke) is authorized server-side
|
|
152
|
+
* regardless.
|
|
151
153
|
*
|
|
152
154
|
*/
|
|
153
155
|
export type CurrentUser = User & {
|
|
154
156
|
/**
|
|
155
|
-
* Whether the authenticated user
|
|
156
|
-
*
|
|
157
|
-
*
|
|
157
|
+
* Whether the authenticated user is an instance admin: either a root
|
|
158
|
+
* admin (see `is_root_instance_admin`) or a non-suspended user granted
|
|
159
|
+
* instance admin in the database by a root admin.
|
|
158
160
|
*
|
|
159
161
|
*/
|
|
160
162
|
is_instance_admin: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Whether the authenticated user's email is in the configured
|
|
165
|
+
* auth.instance_admins list (matched case-insensitively). Only root
|
|
166
|
+
* admins may grant or revoke other instance admins. UI convenience
|
|
167
|
+
* only; grant/revoke is authorized server-side.
|
|
168
|
+
*
|
|
169
|
+
*/
|
|
170
|
+
is_root_instance_admin: boolean;
|
|
161
171
|
};
|
|
162
172
|
/**
|
|
163
173
|
* Response body returned by GET /api/v1/auth/login containing the authorization URL
|
package/dist/schema.d.ts
CHANGED
|
@@ -5812,17 +5812,27 @@ export interface components {
|
|
|
5812
5812
|
/**
|
|
5813
5813
|
* @description The authenticated user as returned by GET /api/v1/auth/me — the full User
|
|
5814
5814
|
* object plus session-relative flags. `is_instance_admin` lets the SPA gate the
|
|
5815
|
-
* Admin Portal menu and /admin routes
|
|
5816
|
-
* /
|
|
5815
|
+
* Admin Portal menu and /admin routes, and `is_root_instance_admin` lets it
|
|
5816
|
+
* hide the grant/revoke admin controls; both are UI convenience only, as every
|
|
5817
|
+
* /api/v1/admin/* call (and every grant or revoke) is authorized server-side
|
|
5818
|
+
* regardless.
|
|
5817
5819
|
*/
|
|
5818
5820
|
CurrentUser: components["schemas"]["User"] & {
|
|
5819
5821
|
/**
|
|
5820
|
-
* @description Whether the authenticated user
|
|
5821
|
-
*
|
|
5822
|
-
*
|
|
5822
|
+
* @description Whether the authenticated user is an instance admin: either a root
|
|
5823
|
+
* admin (see `is_root_instance_admin`) or a non-suspended user granted
|
|
5824
|
+
* instance admin in the database by a root admin.
|
|
5823
5825
|
* @example false
|
|
5824
5826
|
*/
|
|
5825
5827
|
is_instance_admin: boolean;
|
|
5828
|
+
/**
|
|
5829
|
+
* @description Whether the authenticated user's email is in the configured
|
|
5830
|
+
* auth.instance_admins list (matched case-insensitively). Only root
|
|
5831
|
+
* admins may grant or revoke other instance admins. UI convenience
|
|
5832
|
+
* only; grant/revoke is authorized server-side.
|
|
5833
|
+
* @example false
|
|
5834
|
+
*/
|
|
5835
|
+
is_root_instance_admin: boolean;
|
|
5826
5836
|
};
|
|
5827
5837
|
/** @description Response body returned by GET /api/v1/auth/login containing the authorization URL */
|
|
5828
5838
|
LoginResponse: {
|
package/package.json
CHANGED