mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-23 05:21:15 +00:00
fix: hold the ratchets after the SSO unlink and the day pager window
- The SSO unlink answers with a response contract (adminSsoUnlinkResponseSchema). - It reuses linkOidcIdentity with nulls instead of a new repository method, so UsersRepository keeps its method count and size. - The client calls the route through apiClient, so api/client.ts does not grow, and its confirm dialog takes no async callback. - The pager's preview step and pagesFor keep their complexity.
This commit is contained in:
@@ -60,6 +60,13 @@ export const adminFeatureToggleResponseSchema = z.object({
|
||||
});
|
||||
export type AdminFeatureToggleResponse = z.infer<typeof adminFeatureToggleResponseSchema>;
|
||||
|
||||
/** DELETE /api/admin/users/:id/sso (#3065): whether the account had an SSO link to remove. */
|
||||
export const adminSsoUnlinkResponseSchema = z.object({
|
||||
success: z.literal(true),
|
||||
unlinked: z.boolean(),
|
||||
});
|
||||
export type AdminSsoUnlinkResponse = z.infer<typeof adminSsoUnlinkResponseSchema>;
|
||||
|
||||
/**
|
||||
* PUT /api/admin/google-quota (#1582): the most Google API calls TREK may make
|
||||
* in one UTC day. Null or 0 removes the ceiling.
|
||||
|
||||
Reference in New Issue
Block a user