WIP 1.51.14: GET /me carries the session fields the app needs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ls1vMdg2GYqbnKZmPaX1ot
This commit is contained in:
2026-10-30 08:07:06 +02:00
co-authored by Claude Opus 5.5
parent ba351be029
commit 3b5ba6b9c6
8 changed files with 111 additions and 14 deletions
@@ -12649,7 +12649,7 @@
"Me"
],
"summary": "The signed-in person",
"description": "**Who:** Any signed-in person.",
"description": "With what the app asks after sign-in (`newsPromptPending`, `noticePromptPending`), whether two-step sign-in is required for their role, and the campuses they're limited to (`campusScope`, null = every campus). Viewing as someone else never prompts.\n\n**Who:** Any signed-in person.",
"operationId": "getMe",
"security": [
{
@@ -12721,6 +12721,43 @@
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
"twoFactorRequired": {
"type": "boolean",
"description": "Their role must use two-step sign-in"
},
"newsPromptPending": {
"type": "boolean"
},
"noticePromptPending": {
"anyOf": [
{
"type": "boolean",
"const": false
},
{
"type": "string",
"enum": [
"first",
"updated"
]
}
]
},
"campusScope": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 64
}
},
{
"type": "null"
}
]
}
},
"required": [
@@ -12732,7 +12769,11 @@
"twoFactorEnabled",
"notificationPreference",
"homeCampusId",
"createdAt"
"createdAt",
"twoFactorRequired",
"newsPromptPending",
"noticePromptPending",
"campusScope"
],
"additionalProperties": false
}
+8 -1
View File
@@ -1233,7 +1233,9 @@ export interface paths {
};
/**
* The signed-in person
* @description **Who:** Any signed-in person.
* @description With what the app asks after sign-in (`newsPromptPending`, `noticePromptPending`), whether two-step sign-in is required for their role, and the campuses they're limited to (`campusScope`, null = every campus). Viewing as someone else never prompts.
*
* **Who:** Any signed-in person.
*/
get: operations["getMe"];
put?: never;
@@ -11122,6 +11124,11 @@ export interface operations {
homeCampusId: string | null;
/** Format: date-time */
createdAt: string;
/** @description Their role must use two-step sign-in */
twoFactorRequired: boolean;
newsPromptPending: boolean;
noticePromptPending: false | ("first" | "updated");
campusScope: string[] | null;
};
};
};