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:
Maurice
2026-11-12 15:56:59 +01:00
parent b53130ca0d
commit f2ac12ca4f
11 changed files with 33 additions and 29 deletions
+7
View File
@@ -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.