-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace /user/v1/whoami for /actor/v1/whoami
Change-type: major
- Loading branch information
1 parent
79a4c9a
commit c661577
Showing
6 changed files
with
73 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
export interface UserKeyWhoAmIResponse { | ||
id: number; | ||
actorType: 'user'; | ||
actorTypeId: number; | ||
username: string; | ||
email: string | null; | ||
} | ||
|
||
export interface ApplicationKeyWhoAmIResponse { | ||
id: number; | ||
actorType: 'application'; | ||
actorTypeId: number; | ||
slug: string; | ||
} | ||
|
||
export interface DeviceKeyWhoAmIResponse { | ||
id: number; | ||
actorType: 'device'; | ||
actorTypeId: number; | ||
uuid: string; | ||
} | ||
|
||
export type WhoamiResult = | ||
| UserKeyWhoAmIResponse | ||
| ApplicationKeyWhoAmIResponse | ||
| DeviceKeyWhoAmIResponse; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters