@abtnode/types 1.16.33-beta-20241023-050633-f64145a7 → 1.16.33-beta-20241028-005826-60afb7c4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/rpc_pb.d.ts +91 -4
- package/lib/type_pb.d.ts +39 -0
- package/package.json +3 -3
package/lib/rpc_pb.d.ts
CHANGED
@@ -180,10 +180,6 @@ export type TRequestSendPush = {
|
|
180
180
|
receiver: string;
|
181
181
|
notification: string;
|
182
182
|
};
|
183
|
-
export type TRequestUpdateWhoCanAccess = {
|
184
|
-
did: string[];
|
185
|
-
whoCanAccess: string;
|
186
|
-
};
|
187
183
|
export type TRequestUpdateComponentTitle = {
|
188
184
|
did: string;
|
189
185
|
rootDid: string;
|
@@ -977,3 +973,94 @@ export type TRequestUpdateSelectedResources = {
|
|
977
973
|
componentDid: string;
|
978
974
|
resources: string[];
|
979
975
|
};
|
976
|
+
export type TResponseBlockletSecurityRule = {
|
977
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
|
978
|
+
securityRule?: type_pb.TBlockletSecurityRule;
|
979
|
+
};
|
980
|
+
export type TResponseBlockletSecurityRules = {
|
981
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
|
982
|
+
securityRules: type_pb.TBlockletSecurityRule[];
|
983
|
+
paging?: type_pb.TPaging;
|
984
|
+
};
|
985
|
+
export type TRequestGetBlockletSecurityRule = {
|
986
|
+
did: string;
|
987
|
+
id: string;
|
988
|
+
};
|
989
|
+
export type TRequestGetBlockletSecurityRules = {
|
990
|
+
did: string;
|
991
|
+
paging?: type_pb.TPaging;
|
992
|
+
query?: type_pb.TBlockletSecurityRuleQuery;
|
993
|
+
includeDisabled: boolean;
|
994
|
+
};
|
995
|
+
export type TRequestAddBlockletSecurityRule = {
|
996
|
+
did: string;
|
997
|
+
data?: type_pb.TBlockletSecurityRule;
|
998
|
+
};
|
999
|
+
export type TRequestUpdateBlockletSecurityRule = {
|
1000
|
+
did: string;
|
1001
|
+
data?: type_pb.TBlockletSecurityRule;
|
1002
|
+
};
|
1003
|
+
export type TRequestDeleteBlockletSecurityRule = {
|
1004
|
+
did: string;
|
1005
|
+
id: string;
|
1006
|
+
};
|
1007
|
+
export type TResponseBlockletResponseHeaderPolicy = {
|
1008
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
|
1009
|
+
responseHeaderPolicy?: type_pb.TBlockletResponseHeaderPolicy;
|
1010
|
+
};
|
1011
|
+
export type TResponseBlockletResponseHeaderPolicies = {
|
1012
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
|
1013
|
+
responseHeaderPolicies: type_pb.TBlockletResponseHeaderPolicy[];
|
1014
|
+
paging?: type_pb.TPaging;
|
1015
|
+
};
|
1016
|
+
export type TRequestGetBlockletResponseHeaderPolicy = {
|
1017
|
+
did: string;
|
1018
|
+
id: string;
|
1019
|
+
};
|
1020
|
+
export type TRequestGetBlockletResponseHeaderPolicies = {
|
1021
|
+
did: string;
|
1022
|
+
paging?: type_pb.TPaging;
|
1023
|
+
query?: type_pb.TBlockletResponseHeaderPolicyQuery;
|
1024
|
+
};
|
1025
|
+
export type TRequestAddBlockletResponseHeaderPolicy = {
|
1026
|
+
did: string;
|
1027
|
+
data?: type_pb.TBlockletResponseHeaderPolicy;
|
1028
|
+
};
|
1029
|
+
export type TRequestUpdateBlockletResponseHeaderPolicy = {
|
1030
|
+
did: string;
|
1031
|
+
data?: type_pb.TBlockletResponseHeaderPolicy;
|
1032
|
+
};
|
1033
|
+
export type TRequestDeleteBlockletResponseHeaderPolicy = {
|
1034
|
+
did: string;
|
1035
|
+
id: string;
|
1036
|
+
};
|
1037
|
+
export type TResponseBlockletAccessPolicy = {
|
1038
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
|
1039
|
+
accessPolicy?: type_pb.TBlockletAccessPolicy;
|
1040
|
+
};
|
1041
|
+
export type TResponseBlockletAccessPolicies = {
|
1042
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
|
1043
|
+
accessPolicies: type_pb.TBlockletAccessPolicy[];
|
1044
|
+
paging?: type_pb.TPaging;
|
1045
|
+
};
|
1046
|
+
export type TRequestGetBlockletAccessPolicy = {
|
1047
|
+
did: string;
|
1048
|
+
id: string;
|
1049
|
+
};
|
1050
|
+
export type TRequestGetBlockletAccessPolicies = {
|
1051
|
+
did: string;
|
1052
|
+
paging?: type_pb.TPaging;
|
1053
|
+
query?: type_pb.TBlockletAccessPolicyQuery;
|
1054
|
+
};
|
1055
|
+
export type TRequestAddBlockletAccessPolicy = {
|
1056
|
+
did: string;
|
1057
|
+
data?: type_pb.TBlockletAccessPolicy;
|
1058
|
+
};
|
1059
|
+
export type TRequestUpdateBlockletAccessPolicy = {
|
1060
|
+
did: string;
|
1061
|
+
data?: type_pb.TBlockletAccessPolicy;
|
1062
|
+
};
|
1063
|
+
export type TRequestDeleteBlockletAccessPolicy = {
|
1064
|
+
did: string;
|
1065
|
+
id: string;
|
1066
|
+
};
|
package/lib/type_pb.d.ts
CHANGED
@@ -1027,3 +1027,42 @@ export type TReleaseComponent = {
|
|
1027
1027
|
did: string;
|
1028
1028
|
required: boolean;
|
1029
1029
|
};
|
1030
|
+
export type TBlockletSecurityRuleQuery = {
|
1031
|
+
search: string;
|
1032
|
+
};
|
1033
|
+
export type TBlockletResponseHeaderPolicyQuery = {
|
1034
|
+
search: string;
|
1035
|
+
};
|
1036
|
+
export type TBlockletAccessPolicyQuery = {
|
1037
|
+
search: string;
|
1038
|
+
};
|
1039
|
+
export type TBlockletResponseHeaderPolicy = {
|
1040
|
+
id: string;
|
1041
|
+
name: string;
|
1042
|
+
description: string;
|
1043
|
+
securityHeader: string;
|
1044
|
+
cors: string;
|
1045
|
+
customHeader: string;
|
1046
|
+
removeHeader: string;
|
1047
|
+
isProtected: boolean;
|
1048
|
+
};
|
1049
|
+
export type TBlockletAccessPolicy = {
|
1050
|
+
id: string;
|
1051
|
+
name: string;
|
1052
|
+
description: string;
|
1053
|
+
roles?: Record<string, any>;
|
1054
|
+
reverse: boolean;
|
1055
|
+
isProtected: boolean;
|
1056
|
+
};
|
1057
|
+
export type TBlockletSecurityRule = {
|
1058
|
+
id: string;
|
1059
|
+
pathPattern: string;
|
1060
|
+
componentDid: string;
|
1061
|
+
priority: number;
|
1062
|
+
responseHeaderPolicyId: string;
|
1063
|
+
accessPolicyId: string;
|
1064
|
+
enabled: boolean;
|
1065
|
+
remark: string;
|
1066
|
+
accessPolicy?: TBlockletAccessPolicy;
|
1067
|
+
responseHeaderPolicy?: TBlockletResponseHeaderPolicy;
|
1068
|
+
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@abtnode/types",
|
3
|
-
"version": "1.16.33-beta-
|
3
|
+
"version": "1.16.33-beta-20241028-005826-60afb7c4",
|
4
4
|
"description": "Typescript definitions generated from protobuf",
|
5
5
|
"keywords": [
|
6
6
|
"abtnode",
|
@@ -11,7 +11,7 @@
|
|
11
11
|
},
|
12
12
|
"resolutions": {},
|
13
13
|
"devDependencies": {
|
14
|
-
"@arcblock/eslint-config-ts": "0.3.
|
14
|
+
"@arcblock/eslint-config-ts": "0.3.3",
|
15
15
|
"@types/jest": "^29.5.13",
|
16
16
|
"@types/node": "^22.7.5",
|
17
17
|
"eslint": "^8.57.0",
|
@@ -36,5 +36,5 @@
|
|
36
36
|
"bugs": {
|
37
37
|
"url": "https://github.com/ArcBlock/abt-node/issues"
|
38
38
|
},
|
39
|
-
"gitHead": "
|
39
|
+
"gitHead": "12b595141a023fe3c3fdb2d7083b3f11624601e8"
|
40
40
|
}
|