Review an optimistic profile save

src/profile-api.tsTypeScript
@@ -0,0 +1,20 @@
1+export interface Profile {
2+ displayName: string;
3+ biography: string;
4+}
5+
6+export interface ProfileSaveResult {
7+ status: "applied" | "superseded";
8+ canonicalProfile: Profile;
9+}
10+
11+export interface ProfileApi {
12+ save(
13+ profile: Profile,
14+ options: {
15+ editorSessionId: string;
16+ clientRevision: number;
17+ idempotencyKey: string;
18+ },
19+ ): Promise<ProfileSaveResult>;
20+}