Skip to content

Commit e734ffa

Browse files
chore: cover whoami request with types
1 parent a43730b commit e734ffa

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/types/api/whoami.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* endpoint: /viewer/json/whoami
3+
*
4+
* source: https://github.com/ydb-platform/ydb/blob/main/ydb/library/aclib/protos/aclib.proto
5+
*/
6+
export interface TUserToken {
7+
UserSID?: string;
8+
GroupSIDs?: TProtoHashTable;
9+
OriginalUserToken?: string;
10+
AuthType?: string;
11+
}
12+
13+
interface TProtoHashTable {
14+
Buckets?: TProtoHashBucket[];
15+
}
16+
17+
interface TProtoHashBucket {
18+
Values?: string[];
19+
}

0 commit comments

Comments
 (0)