Skip to content

Commit 492b32d

Browse files
chore: cover acl request with types
1 parent 471aadf commit 492b32d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/types/api/acl.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/**
2+
* endpoint: /viewer/json/acl
3+
*
4+
* source: https://github.com/ydb-platform/ydb/blob/main/ydb/core/viewer/protos/viewer.proto
5+
*
6+
* incomplete, only fields that present for ACL requests
7+
*/
8+
export interface TMetaInfo {
9+
Common: TMetaCommonInfo;
10+
}
11+
12+
/** incomplete */
13+
export interface TMetaCommonInfo {
14+
Path: string;
15+
Owner?: string;
16+
ACL?: TACE[];
17+
}
18+
19+
interface TACE {
20+
AccessType: string;
21+
AccessRights?: string[];
22+
Subject: string;
23+
InheritanceType?: string[];
24+
AccessRule: string;
25+
}

0 commit comments

Comments
 (0)