@kinotic-ai/idl 5.0.0-beta.3 → 5.0.0-beta.4
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/dist/index.cjs +2 -2
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -83,7 +83,7 @@ class C3Decorator {
|
|
|
83
83
|
// packages/idl/src/api/decorators/AuthzCheckDecorator.ts
|
|
84
84
|
class AuthzCheckDecorator extends C3Decorator {
|
|
85
85
|
resource = null;
|
|
86
|
-
|
|
86
|
+
resourceId = null;
|
|
87
87
|
permissionResource = null;
|
|
88
88
|
permission = null;
|
|
89
89
|
implies = [];
|
|
@@ -98,7 +98,7 @@ class AuthzCheckDecorator extends C3Decorator {
|
|
|
98
98
|
class AuthzResourceDecorator extends C3Decorator {
|
|
99
99
|
resourceType;
|
|
100
100
|
parent = null;
|
|
101
|
-
|
|
101
|
+
resourceId = null;
|
|
102
102
|
permission = null;
|
|
103
103
|
roles = [];
|
|
104
104
|
constructor(resourceType) {
|
package/dist/index.d.cts
CHANGED
|
@@ -8,21 +8,21 @@ declare class C3Decorator {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* The authorization check a function requires. A service's definition declares what the derivation cannot
|
|
11
|
-
* read from the function's name and parameters: a permission of its own, another
|
|
11
|
+
* read from the function's name and parameters: a permission of its own, another resource than the derived
|
|
12
12
|
* one, the permissions it implies, a consistent answer, or that the function is served with no check. The
|
|
13
|
-
* platform derives the rest when the service registers, naming the
|
|
13
|
+
* platform derives the rest when the service registers, naming the resource checked and the type the permission
|
|
14
14
|
* is named for.
|
|
15
15
|
*/
|
|
16
16
|
declare class AuthzCheckDecorator extends C3Decorator {
|
|
17
17
|
/**
|
|
18
|
-
* The type of the
|
|
18
|
+
* The type of the resource the check is made on, when it is not the derived one.
|
|
19
19
|
*/
|
|
20
20
|
resource: string | null;
|
|
21
21
|
/**
|
|
22
|
-
* The id of the
|
|
22
|
+
* The id of the resource the check is made on, as a template over the function's parameters and the
|
|
23
23
|
* caller's scope, such as `{reportId}` or `{@tenantId}`.
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
resourceId: string | null;
|
|
26
26
|
/**
|
|
27
27
|
* The type the permission is named for, which the platform derives.
|
|
28
28
|
*/
|
|
@@ -75,10 +75,10 @@ declare class AuthzResourceDecorator extends C3Decorator {
|
|
|
75
75
|
*/
|
|
76
76
|
parent: string | null;
|
|
77
77
|
/**
|
|
78
|
-
* The
|
|
79
|
-
* function declares its own; null when each function's
|
|
78
|
+
* The resource every function of the service is checked on, as a template over the caller's scope, unless the
|
|
79
|
+
* function declares its own; null when each function's resource is derived from what it names.
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
resourceId: string | null;
|
|
82
82
|
/**
|
|
83
83
|
* The permission every function of the service requires unless it declares its own; null when each
|
|
84
84
|
* function's permission is derived from its name.
|
package/dist/index.d.ts
CHANGED
|
@@ -8,21 +8,21 @@ declare class C3Decorator {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* The authorization check a function requires. A service's definition declares what the derivation cannot
|
|
11
|
-
* read from the function's name and parameters: a permission of its own, another
|
|
11
|
+
* read from the function's name and parameters: a permission of its own, another resource than the derived
|
|
12
12
|
* one, the permissions it implies, a consistent answer, or that the function is served with no check. The
|
|
13
|
-
* platform derives the rest when the service registers, naming the
|
|
13
|
+
* platform derives the rest when the service registers, naming the resource checked and the type the permission
|
|
14
14
|
* is named for.
|
|
15
15
|
*/
|
|
16
16
|
declare class AuthzCheckDecorator extends C3Decorator {
|
|
17
17
|
/**
|
|
18
|
-
* The type of the
|
|
18
|
+
* The type of the resource the check is made on, when it is not the derived one.
|
|
19
19
|
*/
|
|
20
20
|
resource: string | null;
|
|
21
21
|
/**
|
|
22
|
-
* The id of the
|
|
22
|
+
* The id of the resource the check is made on, as a template over the function's parameters and the
|
|
23
23
|
* caller's scope, such as `{reportId}` or `{@tenantId}`.
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
resourceId: string | null;
|
|
26
26
|
/**
|
|
27
27
|
* The type the permission is named for, which the platform derives.
|
|
28
28
|
*/
|
|
@@ -75,10 +75,10 @@ declare class AuthzResourceDecorator extends C3Decorator {
|
|
|
75
75
|
*/
|
|
76
76
|
parent: string | null;
|
|
77
77
|
/**
|
|
78
|
-
* The
|
|
79
|
-
* function declares its own; null when each function's
|
|
78
|
+
* The resource every function of the service is checked on, as a template over the caller's scope, unless the
|
|
79
|
+
* function declares its own; null when each function's resource is derived from what it names.
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
resourceId: string | null;
|
|
82
82
|
/**
|
|
83
83
|
* The permission every function of the service requires unless it declares its own; null when each
|
|
84
84
|
* function's permission is derived from its name.
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ class C3Decorator {
|
|
|
6
6
|
// packages/idl/src/api/decorators/AuthzCheckDecorator.ts
|
|
7
7
|
class AuthzCheckDecorator extends C3Decorator {
|
|
8
8
|
resource = null;
|
|
9
|
-
|
|
9
|
+
resourceId = null;
|
|
10
10
|
permissionResource = null;
|
|
11
11
|
permission = null;
|
|
12
12
|
implies = [];
|
|
@@ -21,7 +21,7 @@ class AuthzCheckDecorator extends C3Decorator {
|
|
|
21
21
|
class AuthzResourceDecorator extends C3Decorator {
|
|
22
22
|
resourceType;
|
|
23
23
|
parent = null;
|
|
24
|
-
|
|
24
|
+
resourceId = null;
|
|
25
25
|
permission = null;
|
|
26
26
|
roles = [];
|
|
27
27
|
constructor(resourceType) {
|