@decaf-ts/integrations 0.3.5 → 0.3.7
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/integrations.cjs +1608 -7
- package/dist/integrations.js +1841 -5
- package/lib/cjs/graph/execution/SwitchGraphNodeExecutor.cjs +13 -5
- package/lib/cjs/graph/nodes/base.cjs +35 -0
- package/lib/cjs/graph/nodes/flow-control.cjs +31 -3
- package/lib/cjs/graph/nodes/index.cjs +3 -2
- package/lib/cjs/graph/types.cjs +2 -2
- package/lib/cjs/index.cjs +6 -5
- package/lib/cjs/namespaces/index.cjs +26 -0
- package/lib/cjs/namespaces/models/authorization-model.cjs +12 -0
- package/lib/cjs/namespaces/models/effective-permission.model.cjs +95 -0
- package/lib/cjs/namespaces/models/group-membership.model.cjs +66 -0
- package/lib/cjs/namespaces/models/group.model.cjs +74 -0
- package/lib/cjs/namespaces/models/index.cjs +39 -0
- package/lib/cjs/namespaces/models/inheritance-block.model.cjs +76 -0
- package/lib/cjs/namespaces/models/org-unit-closure.model.cjs +66 -0
- package/lib/cjs/namespaces/models/org-unit-membership.model.cjs +73 -0
- package/lib/cjs/namespaces/models/org-unit-profile.model.cjs +64 -0
- package/lib/cjs/namespaces/models/org-unit.model.cjs +102 -0
- package/lib/cjs/namespaces/models/permission.model.cjs +64 -0
- package/lib/cjs/namespaces/models/principal.model.cjs +77 -0
- package/lib/cjs/namespaces/models/protected-resource.model.cjs +99 -0
- package/lib/cjs/namespaces/models/resource-grant.model.cjs +88 -0
- package/lib/cjs/namespaces/models/role-assignment.model.cjs +98 -0
- package/lib/cjs/namespaces/models/role-permission.model.cjs +55 -0
- package/lib/cjs/namespaces/models/role.model.cjs +84 -0
- package/lib/cjs/namespaces/models/storage-binding.model.cjs +85 -0
- package/lib/cjs/namespaces/models/tenant-membership.model.cjs +67 -0
- package/lib/cjs/namespaces/models/tenant-profile.model.cjs +64 -0
- package/lib/cjs/namespaces/models/tenant.model.cjs +88 -0
- package/lib/cjs/namespaces/models/user.model.cjs +75 -0
- package/lib/cjs/namespaces/org-based-authorization-system.cjs +286 -0
- package/lib/cjs/namespaces/org-based-authorization-system.models.cjs +968 -0
- package/lib/cjs/namespaces/org-based-authorization-system.services.cjs +1046 -0
- package/lib/cjs/namespaces/services/authz.service.cjs +76 -0
- package/lib/cjs/namespaces/services/bootstrap.service.cjs +112 -0
- package/lib/cjs/namespaces/services/effective-permission.service.cjs +150 -0
- package/lib/cjs/namespaces/services/group-membership.service.cjs +42 -0
- package/lib/cjs/namespaces/services/group.service.cjs +30 -0
- package/lib/cjs/namespaces/services/index.cjs +42 -0
- package/lib/cjs/namespaces/services/inheritance-block.service.cjs +32 -0
- package/lib/cjs/namespaces/services/org-unit-closure.service.cjs +55 -0
- package/lib/cjs/namespaces/services/org-unit-membership.service.cjs +34 -0
- package/lib/cjs/namespaces/services/org-unit-profile.service.cjs +23 -0
- package/lib/cjs/namespaces/services/org-unit.service.cjs +160 -0
- package/lib/cjs/namespaces/services/permission.service.cjs +29 -0
- package/lib/cjs/namespaces/services/principal.service.cjs +35 -0
- package/lib/cjs/namespaces/services/protected-resource.service.cjs +43 -0
- package/lib/cjs/namespaces/services/resource-grant.service.cjs +45 -0
- package/lib/cjs/namespaces/services/resource-lifecycle.service.cjs +24 -0
- package/lib/cjs/namespaces/services/role-assignment.service.cjs +41 -0
- package/lib/cjs/namespaces/services/role-permission.service.cjs +51 -0
- package/lib/cjs/namespaces/services/role.service.cjs +45 -0
- package/lib/cjs/namespaces/services/storage-binding.service.cjs +39 -0
- package/lib/cjs/namespaces/services/system-management.service.cjs +102 -0
- package/lib/cjs/namespaces/services/tenant-membership.service.cjs +33 -0
- package/lib/cjs/namespaces/services/tenant-profile.service.cjs +28 -0
- package/lib/cjs/namespaces/services/tenant.service.cjs +36 -0
- package/lib/cjs/namespaces/services/user.service.cjs +32 -0
- package/lib/cjs/namespaces/types.cjs +67 -0
- package/lib/cjs/namespaces/utils.cjs +161 -0
- package/lib/cjs/nest/authService.cjs +5 -2
- package/lib/cjs/nest/graph/GraphExecutionController.cjs +153 -0
- package/lib/cjs/nest/graph/GraphExecutionModule.cjs +84 -0
- package/lib/cjs/nest/graph/GraphExecutionResultModel.cjs +82 -0
- package/lib/cjs/nest/graph/GraphExecutionResultRepository.cjs +66 -0
- package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs +35 -0
- package/lib/cjs/nest/graph/index.cjs +28 -0
- package/lib/cjs/nest/index.cjs +3 -2
- package/lib/esm/graph/execution/SwitchGraphNodeExecutor.js +12 -4
- package/lib/esm/graph/nodes/base.js +30 -0
- package/lib/esm/graph/nodes/flow-control.js +31 -3
- package/lib/esm/graph/nodes/index.js +2 -1
- package/lib/esm/graph/types.js +1 -1
- package/lib/esm/index.js +5 -4
- package/lib/esm/namespaces/index.js +9 -0
- package/lib/esm/namespaces/models/authorization-model.js +7 -0
- package/lib/esm/namespaces/models/effective-permission.model.js +86 -0
- package/lib/esm/namespaces/models/group-membership.model.js +57 -0
- package/lib/esm/namespaces/models/group.model.js +65 -0
- package/lib/esm/namespaces/models/index.js +22 -0
- package/lib/esm/namespaces/models/inheritance-block.model.js +67 -0
- package/lib/esm/namespaces/models/org-unit-closure.model.js +57 -0
- package/lib/esm/namespaces/models/org-unit-membership.model.js +64 -0
- package/lib/esm/namespaces/models/org-unit-profile.model.js +55 -0
- package/lib/esm/namespaces/models/org-unit.model.js +93 -0
- package/lib/esm/namespaces/models/permission.model.js +55 -0
- package/lib/esm/namespaces/models/principal.model.js +68 -0
- package/lib/esm/namespaces/models/protected-resource.model.js +90 -0
- package/lib/esm/namespaces/models/resource-grant.model.js +79 -0
- package/lib/esm/namespaces/models/role-assignment.model.js +89 -0
- package/lib/esm/namespaces/models/role-permission.model.js +46 -0
- package/lib/esm/namespaces/models/role.model.js +75 -0
- package/lib/esm/namespaces/models/storage-binding.model.js +76 -0
- package/lib/esm/namespaces/models/tenant-membership.model.js +58 -0
- package/lib/esm/namespaces/models/tenant-profile.model.js +55 -0
- package/lib/esm/namespaces/models/tenant.model.js +79 -0
- package/lib/esm/namespaces/models/user.model.js +66 -0
- package/lib/esm/namespaces/org-based-authorization-system.js +283 -0
- package/lib/esm/namespaces/org-based-authorization-system.models.js +958 -0
- package/lib/esm/namespaces/org-based-authorization-system.services.js +1014 -0
- package/lib/esm/namespaces/services/authz.service.js +71 -0
- package/lib/esm/namespaces/services/bootstrap.service.js +102 -0
- package/lib/esm/namespaces/services/effective-permission.service.js +140 -0
- package/lib/esm/namespaces/services/group-membership.service.js +37 -0
- package/lib/esm/namespaces/services/group.service.js +25 -0
- package/lib/esm/namespaces/services/index.js +25 -0
- package/lib/esm/namespaces/services/inheritance-block.service.js +27 -0
- package/lib/esm/namespaces/services/org-unit-closure.service.js +50 -0
- package/lib/esm/namespaces/services/org-unit-membership.service.js +29 -0
- package/lib/esm/namespaces/services/org-unit-profile.service.js +18 -0
- package/lib/esm/namespaces/services/org-unit.service.js +150 -0
- package/lib/esm/namespaces/services/permission.service.js +24 -0
- package/lib/esm/namespaces/services/principal.service.js +30 -0
- package/lib/esm/namespaces/services/protected-resource.service.js +38 -0
- package/lib/esm/namespaces/services/resource-grant.service.js +40 -0
- package/lib/esm/namespaces/services/resource-lifecycle.service.js +19 -0
- package/lib/esm/namespaces/services/role-assignment.service.js +36 -0
- package/lib/esm/namespaces/services/role-permission.service.js +46 -0
- package/lib/esm/namespaces/services/role.service.js +40 -0
- package/lib/esm/namespaces/services/storage-binding.service.js +34 -0
- package/lib/esm/namespaces/services/system-management.service.js +92 -0
- package/lib/esm/namespaces/services/tenant-membership.service.js +28 -0
- package/lib/esm/namespaces/services/tenant-profile.service.js +23 -0
- package/lib/esm/namespaces/services/tenant.service.js +31 -0
- package/lib/esm/namespaces/services/user.service.js +27 -0
- package/lib/esm/namespaces/types.js +71 -0
- package/lib/esm/namespaces/utils.js +143 -0
- package/lib/esm/nest/authService.js +4 -1
- package/lib/esm/nest/graph/GraphExecutionController.js +144 -0
- package/lib/esm/nest/graph/GraphExecutionModule.js +76 -0
- package/lib/esm/nest/graph/GraphExecutionResultModel.js +73 -0
- package/lib/esm/nest/graph/GraphExecutionResultRepository.js +60 -0
- package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js +31 -0
- package/lib/esm/nest/graph/index.js +11 -0
- package/lib/esm/nest/index.js +2 -1
- package/lib/types/graph/nodes/base.d.cts +28 -0
- package/lib/types/graph/nodes/base.d.mts +28 -0
- package/lib/types/graph/nodes/flow-control.d.cts +9 -1
- package/lib/types/graph/nodes/flow-control.d.mts +9 -1
- package/lib/types/graph/nodes/index.d.cts +1 -0
- package/lib/types/graph/nodes/index.d.mts +1 -0
- package/lib/types/graph/types.d.cts +15 -1
- package/lib/types/graph/types.d.mts +15 -1
- package/lib/types/index.d.cts +3 -2
- package/lib/types/index.d.mts +3 -2
- package/lib/types/namespaces/index.d.cts +8 -0
- package/lib/types/namespaces/index.d.mts +8 -0
- package/lib/types/namespaces/models/authorization-model.d.cts +4 -0
- package/lib/types/namespaces/models/authorization-model.d.mts +4 -0
- package/lib/types/namespaces/models/effective-permission.model.d.cts +18 -0
- package/lib/types/namespaces/models/effective-permission.model.d.mts +18 -0
- package/lib/types/namespaces/models/group-membership.model.d.cts +13 -0
- package/lib/types/namespaces/models/group-membership.model.d.mts +13 -0
- package/lib/types/namespaces/models/group.model.d.cts +15 -0
- package/lib/types/namespaces/models/group.model.d.mts +15 -0
- package/lib/types/namespaces/models/index.d.cts +21 -0
- package/lib/types/namespaces/models/index.d.mts +21 -0
- package/lib/types/namespaces/models/inheritance-block.model.d.cts +15 -0
- package/lib/types/namespaces/models/inheritance-block.model.d.mts +15 -0
- package/lib/types/namespaces/models/org-unit-closure.model.d.cts +12 -0
- package/lib/types/namespaces/models/org-unit-closure.model.d.mts +12 -0
- package/lib/types/namespaces/models/org-unit-membership.model.d.cts +15 -0
- package/lib/types/namespaces/models/org-unit-membership.model.d.mts +15 -0
- package/lib/types/namespaces/models/org-unit-profile.model.d.cts +11 -0
- package/lib/types/namespaces/models/org-unit-profile.model.d.mts +11 -0
- package/lib/types/namespaces/models/org-unit.model.d.cts +23 -0
- package/lib/types/namespaces/models/org-unit.model.d.mts +23 -0
- package/lib/types/namespaces/models/permission.model.d.cts +11 -0
- package/lib/types/namespaces/models/permission.model.d.mts +11 -0
- package/lib/types/namespaces/models/principal.model.d.cts +16 -0
- package/lib/types/namespaces/models/principal.model.d.mts +16 -0
- package/lib/types/namespaces/models/protected-resource.model.d.cts +21 -0
- package/lib/types/namespaces/models/protected-resource.model.d.mts +21 -0
- package/lib/types/namespaces/models/resource-grant.model.d.cts +18 -0
- package/lib/types/namespaces/models/resource-grant.model.d.mts +18 -0
- package/lib/types/namespaces/models/role-assignment.model.d.cts +20 -0
- package/lib/types/namespaces/models/role-assignment.model.d.mts +20 -0
- package/lib/types/namespaces/models/role-permission.model.d.cts +10 -0
- package/lib/types/namespaces/models/role-permission.model.d.mts +10 -0
- package/lib/types/namespaces/models/role.model.d.cts +17 -0
- package/lib/types/namespaces/models/role.model.d.mts +17 -0
- package/lib/types/namespaces/models/storage-binding.model.d.cts +15 -0
- package/lib/types/namespaces/models/storage-binding.model.d.mts +15 -0
- package/lib/types/namespaces/models/tenant-membership.model.d.cts +13 -0
- package/lib/types/namespaces/models/tenant-membership.model.d.mts +13 -0
- package/lib/types/namespaces/models/tenant-profile.model.d.cts +11 -0
- package/lib/types/namespaces/models/tenant-profile.model.d.mts +11 -0
- package/lib/types/namespaces/models/tenant.model.d.cts +19 -0
- package/lib/types/namespaces/models/tenant.model.d.mts +19 -0
- package/lib/types/namespaces/models/user.model.d.cts +14 -0
- package/lib/types/namespaces/models/user.model.d.mts +14 -0
- package/lib/types/namespaces/org-based-authorization-system.d.cts +299 -0
- package/lib/types/namespaces/org-based-authorization-system.d.mts +299 -0
- package/lib/types/namespaces/org-based-authorization-system.models.d.cts +212 -0
- package/lib/types/namespaces/org-based-authorization-system.models.d.mts +212 -0
- package/lib/types/namespaces/org-based-authorization-system.services.d.cts +217 -0
- package/lib/types/namespaces/org-based-authorization-system.services.d.mts +217 -0
- package/lib/types/namespaces/services/authz.service.d.cts +10 -0
- package/lib/types/namespaces/services/authz.service.d.mts +10 -0
- package/lib/types/namespaces/services/bootstrap.service.d.cts +21 -0
- package/lib/types/namespaces/services/bootstrap.service.d.mts +21 -0
- package/lib/types/namespaces/services/effective-permission.service.d.cts +13 -0
- package/lib/types/namespaces/services/effective-permission.service.d.mts +13 -0
- package/lib/types/namespaces/services/group-membership.service.d.cts +10 -0
- package/lib/types/namespaces/services/group-membership.service.d.mts +10 -0
- package/lib/types/namespaces/services/group.service.d.cts +9 -0
- package/lib/types/namespaces/services/group.service.d.mts +9 -0
- package/lib/types/namespaces/services/index.d.cts +24 -0
- package/lib/types/namespaces/services/index.d.mts +24 -0
- package/lib/types/namespaces/services/inheritance-block.service.d.cts +10 -0
- package/lib/types/namespaces/services/inheritance-block.service.d.mts +10 -0
- package/lib/types/namespaces/services/org-unit-closure.service.d.cts +11 -0
- package/lib/types/namespaces/services/org-unit-closure.service.d.mts +11 -0
- package/lib/types/namespaces/services/org-unit-membership.service.d.cts +11 -0
- package/lib/types/namespaces/services/org-unit-membership.service.d.mts +11 -0
- package/lib/types/namespaces/services/org-unit-profile.service.d.cts +7 -0
- package/lib/types/namespaces/services/org-unit-profile.service.d.mts +7 -0
- package/lib/types/namespaces/services/org-unit.service.d.cts +18 -0
- package/lib/types/namespaces/services/org-unit.service.d.mts +18 -0
- package/lib/types/namespaces/services/permission.service.d.cts +10 -0
- package/lib/types/namespaces/services/permission.service.d.mts +10 -0
- package/lib/types/namespaces/services/principal.service.d.cts +11 -0
- package/lib/types/namespaces/services/principal.service.d.mts +11 -0
- package/lib/types/namespaces/services/protected-resource.service.d.cts +13 -0
- package/lib/types/namespaces/services/protected-resource.service.d.mts +13 -0
- package/lib/types/namespaces/services/resource-grant.service.d.cts +12 -0
- package/lib/types/namespaces/services/resource-grant.service.d.mts +12 -0
- package/lib/types/namespaces/services/resource-lifecycle.service.d.cts +10 -0
- package/lib/types/namespaces/services/resource-lifecycle.service.d.mts +10 -0
- package/lib/types/namespaces/services/role-assignment.service.d.cts +12 -0
- package/lib/types/namespaces/services/role-assignment.service.d.mts +12 -0
- package/lib/types/namespaces/services/role-permission.service.d.cts +12 -0
- package/lib/types/namespaces/services/role-permission.service.d.mts +12 -0
- package/lib/types/namespaces/services/role.service.d.cts +12 -0
- package/lib/types/namespaces/services/role.service.d.mts +12 -0
- package/lib/types/namespaces/services/storage-binding.service.d.cts +12 -0
- package/lib/types/namespaces/services/storage-binding.service.d.mts +12 -0
- package/lib/types/namespaces/services/system-management.service.d.cts +14 -0
- package/lib/types/namespaces/services/system-management.service.d.mts +14 -0
- package/lib/types/namespaces/services/tenant-membership.service.d.cts +11 -0
- package/lib/types/namespaces/services/tenant-membership.service.d.mts +11 -0
- package/lib/types/namespaces/services/tenant-profile.service.d.cts +8 -0
- package/lib/types/namespaces/services/tenant-profile.service.d.mts +8 -0
- package/lib/types/namespaces/services/tenant.service.d.cts +12 -0
- package/lib/types/namespaces/services/tenant.service.d.mts +12 -0
- package/lib/types/namespaces/services/user.service.d.cts +11 -0
- package/lib/types/namespaces/services/user.service.d.mts +11 -0
- package/lib/types/namespaces/types.d.cts +230 -0
- package/lib/types/namespaces/types.d.mts +230 -0
- package/lib/types/namespaces/utils.d.cts +68 -0
- package/lib/types/namespaces/utils.d.mts +68 -0
- package/lib/types/nest/authService.d.cts +1 -0
- package/lib/types/nest/authService.d.mts +1 -0
- package/lib/types/nest/graph/GraphExecutionController.d.cts +62 -0
- package/lib/types/nest/graph/GraphExecutionController.d.mts +62 -0
- package/lib/types/nest/graph/GraphExecutionModule.d.cts +39 -0
- package/lib/types/nest/graph/GraphExecutionModule.d.mts +39 -0
- package/lib/types/nest/graph/GraphExecutionResultModel.d.cts +46 -0
- package/lib/types/nest/graph/GraphExecutionResultModel.d.mts +46 -0
- package/lib/types/nest/graph/GraphExecutionResultRepository.d.cts +38 -0
- package/lib/types/nest/graph/GraphExecutionResultRepository.d.mts +38 -0
- package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.cts +17 -0
- package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.mts +17 -0
- package/lib/types/nest/graph/index.d.cts +10 -0
- package/lib/types/nest/graph/index.d.mts +10 -0
- package/lib/types/nest/index.d.cts +1 -0
- package/lib/types/nest/index.d.mts +1 -0
- package/package.json +16 -5
- package/sql/001_constraints.sql +11 -0
- package/sql/002_rls.sql +20 -0
- package/sql/003_indexes.sql +2 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @summary Graph execution engine core types.
|
|
4
4
|
* @description Type aliases and interfaces shared across the graph execution engine.
|
|
5
5
|
*/
|
|
6
|
-
import type { GraphNodeDefinition, GraphWorkflowDefinition } from "@decaf-ts/ui-decorators/graph";
|
|
6
|
+
import type { GraphNodeDefinition, GraphPortDefinition, GraphWorkflowDefinition } from "@decaf-ts/ui-decorators/graph";
|
|
7
7
|
import type { GraphExecutionEventType, GraphExecutionStatus } from "./constants.d.mts";
|
|
8
8
|
/**
|
|
9
9
|
* Unique identifier for a single graph execution run.
|
|
@@ -244,6 +244,20 @@ export interface SwitchNodeMetadata {
|
|
|
244
244
|
cases: SwitchCase[];
|
|
245
245
|
defaultPort?: string;
|
|
246
246
|
}
|
|
247
|
+
/**
|
|
248
|
+
* The result of applying a metadata change to a node. Each concrete node
|
|
249
|
+
* class that overrides `GraphNode.applyMetadata()` returns this so the
|
|
250
|
+
* renderer can update the diagram model — the node owns its ports, its
|
|
251
|
+
* size, and any data patches.
|
|
252
|
+
*/
|
|
253
|
+
export interface NodeMetadataChange {
|
|
254
|
+
ports: GraphPortDefinition[];
|
|
255
|
+
size: {
|
|
256
|
+
width: number;
|
|
257
|
+
height: number;
|
|
258
|
+
};
|
|
259
|
+
dataPatch: Record<string, unknown>;
|
|
260
|
+
}
|
|
247
261
|
/**
|
|
248
262
|
* Pinning metadata attached to a node via `@pinnable()`.
|
|
249
263
|
*/
|
package/lib/types/index.d.cts
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
* @description Exposes the package utilities and build-time version metadata for `@decaf-ts/integrations`.
|
|
5
5
|
*/
|
|
6
6
|
export * from "./utils.d.cts";
|
|
7
|
+
export * from "./namespaces/index.d.cts";
|
|
7
8
|
export declare const VERSION: string;
|
|
8
|
-
export declare const COMMIT = "
|
|
9
|
-
export declare const FULL_VERSION = "0.3.
|
|
9
|
+
export declare const COMMIT = "c132eea";
|
|
10
|
+
export declare const FULL_VERSION = "0.3.6-c132eea";
|
|
10
11
|
export declare const PACKAGE_NAME: string;
|
package/lib/types/index.d.mts
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
* @description Exposes the package utilities and build-time version metadata for `@decaf-ts/integrations`.
|
|
5
5
|
*/
|
|
6
6
|
export * from "./utils.d.mts";
|
|
7
|
+
export * from "./namespaces/index.d.mts";
|
|
7
8
|
export declare const VERSION: string;
|
|
8
|
-
export declare const COMMIT = "
|
|
9
|
-
export declare const FULL_VERSION = "0.3.
|
|
9
|
+
export declare const COMMIT = "c132eea";
|
|
10
|
+
export declare const FULL_VERSION = "0.3.6-c132eea";
|
|
10
11
|
export declare const PACKAGE_NAME: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ScopeKind } from "../types.d.cts";
|
|
2
|
+
import { AuthorizationModel } from "./authorization-model.d.cts";
|
|
3
|
+
import { Tenant } from "./tenant.model.d.cts";
|
|
4
|
+
import { Principal } from "./principal.model.d.cts";
|
|
5
|
+
export declare class EffectivePermission extends AuthorizationModel {
|
|
6
|
+
constructor(data?: unknown);
|
|
7
|
+
id: string;
|
|
8
|
+
tenant: Tenant | string;
|
|
9
|
+
principal: Principal | string;
|
|
10
|
+
permissionKey: string;
|
|
11
|
+
scopeKind: ScopeKind;
|
|
12
|
+
scopeId: string;
|
|
13
|
+
sourceKind: string;
|
|
14
|
+
sourceId: string;
|
|
15
|
+
startsAt?: Date;
|
|
16
|
+
expiresAt?: Date;
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ScopeKind } from "../types.d.mts";
|
|
2
|
+
import { AuthorizationModel } from "./authorization-model.d.mts";
|
|
3
|
+
import { Tenant } from "./tenant.model.d.mts";
|
|
4
|
+
import { Principal } from "./principal.model.d.mts";
|
|
5
|
+
export declare class EffectivePermission extends AuthorizationModel {
|
|
6
|
+
constructor(data?: unknown);
|
|
7
|
+
id: string;
|
|
8
|
+
tenant: Tenant | string;
|
|
9
|
+
principal: Principal | string;
|
|
10
|
+
permissionKey: string;
|
|
11
|
+
scopeKind: ScopeKind;
|
|
12
|
+
scopeId: string;
|
|
13
|
+
sourceKind: string;
|
|
14
|
+
sourceId: string;
|
|
15
|
+
startsAt?: Date;
|
|
16
|
+
expiresAt?: Date;
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AuthorizationModel } from "./authorization-model.d.cts";
|
|
2
|
+
import { Tenant } from "./tenant.model.d.cts";
|
|
3
|
+
import { Group } from "./group.model.d.cts";
|
|
4
|
+
import { Principal } from "./principal.model.d.cts";
|
|
5
|
+
export declare class GroupMembership extends AuthorizationModel {
|
|
6
|
+
constructor(data?: unknown);
|
|
7
|
+
id: string;
|
|
8
|
+
tenant: Tenant | string;
|
|
9
|
+
group: Group | string;
|
|
10
|
+
principal: Principal | string;
|
|
11
|
+
metadata?: Record<string, unknown>;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AuthorizationModel } from "./authorization-model.d.mts";
|
|
2
|
+
import { Tenant } from "./tenant.model.d.mts";
|
|
3
|
+
import { Group } from "./group.model.d.mts";
|
|
4
|
+
import { Principal } from "./principal.model.d.mts";
|
|
5
|
+
export declare class GroupMembership extends AuthorizationModel {
|
|
6
|
+
constructor(data?: unknown);
|
|
7
|
+
id: string;
|
|
8
|
+
tenant: Tenant | string;
|
|
9
|
+
group: Group | string;
|
|
10
|
+
principal: Principal | string;
|
|
11
|
+
metadata?: Record<string, unknown>;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AuthorizationModel } from "./authorization-model.d.cts";
|
|
2
|
+
import { Tenant } from "./tenant.model.d.cts";
|
|
3
|
+
import { OrgUnit } from "./org-unit.model.d.cts";
|
|
4
|
+
import { GroupMembership } from "./group-membership.model.d.cts";
|
|
5
|
+
export declare class Group extends AuthorizationModel {
|
|
6
|
+
constructor(data?: unknown);
|
|
7
|
+
id: string;
|
|
8
|
+
tenant: Tenant | string;
|
|
9
|
+
orgUnit?: OrgUnit | string;
|
|
10
|
+
name: string;
|
|
11
|
+
metadata?: Record<string, unknown>;
|
|
12
|
+
members?: GroupMembership[] | string[];
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
updatedAt: Date;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AuthorizationModel } from "./authorization-model.d.mts";
|
|
2
|
+
import { Tenant } from "./tenant.model.d.mts";
|
|
3
|
+
import { OrgUnit } from "./org-unit.model.d.mts";
|
|
4
|
+
import { GroupMembership } from "./group-membership.model.d.mts";
|
|
5
|
+
export declare class Group extends AuthorizationModel {
|
|
6
|
+
constructor(data?: unknown);
|
|
7
|
+
id: string;
|
|
8
|
+
tenant: Tenant | string;
|
|
9
|
+
orgUnit?: OrgUnit | string;
|
|
10
|
+
name: string;
|
|
11
|
+
metadata?: Record<string, unknown>;
|
|
12
|
+
members?: GroupMembership[] | string[];
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
updatedAt: Date;
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from "./authorization-model.d.cts";
|
|
2
|
+
export * from "./tenant.model.d.cts";
|
|
3
|
+
export * from "./tenant-profile.model.d.cts";
|
|
4
|
+
export * from "./org-unit.model.d.cts";
|
|
5
|
+
export * from "./org-unit-profile.model.d.cts";
|
|
6
|
+
export * from "./org-unit-closure.model.d.cts";
|
|
7
|
+
export * from "./user.model.d.cts";
|
|
8
|
+
export * from "./group.model.d.cts";
|
|
9
|
+
export * from "./principal.model.d.cts";
|
|
10
|
+
export * from "./tenant-membership.model.d.cts";
|
|
11
|
+
export * from "./org-unit-membership.model.d.cts";
|
|
12
|
+
export * from "./group-membership.model.d.cts";
|
|
13
|
+
export * from "./permission.model.d.cts";
|
|
14
|
+
export * from "./role.model.d.cts";
|
|
15
|
+
export * from "./role-permission.model.d.cts";
|
|
16
|
+
export * from "./role-assignment.model.d.cts";
|
|
17
|
+
export * from "./inheritance-block.model.d.cts";
|
|
18
|
+
export * from "./protected-resource.model.d.cts";
|
|
19
|
+
export * from "./resource-grant.model.d.cts";
|
|
20
|
+
export * from "./effective-permission.model.d.cts";
|
|
21
|
+
export * from "./storage-binding.model.d.cts";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from "./authorization-model.d.mts";
|
|
2
|
+
export * from "./tenant.model.d.mts";
|
|
3
|
+
export * from "./tenant-profile.model.d.mts";
|
|
4
|
+
export * from "./org-unit.model.d.mts";
|
|
5
|
+
export * from "./org-unit-profile.model.d.mts";
|
|
6
|
+
export * from "./org-unit-closure.model.d.mts";
|
|
7
|
+
export * from "./user.model.d.mts";
|
|
8
|
+
export * from "./group.model.d.mts";
|
|
9
|
+
export * from "./principal.model.d.mts";
|
|
10
|
+
export * from "./tenant-membership.model.d.mts";
|
|
11
|
+
export * from "./org-unit-membership.model.d.mts";
|
|
12
|
+
export * from "./group-membership.model.d.mts";
|
|
13
|
+
export * from "./permission.model.d.mts";
|
|
14
|
+
export * from "./role.model.d.mts";
|
|
15
|
+
export * from "./role-permission.model.d.mts";
|
|
16
|
+
export * from "./role-assignment.model.d.mts";
|
|
17
|
+
export * from "./inheritance-block.model.d.mts";
|
|
18
|
+
export * from "./protected-resource.model.d.mts";
|
|
19
|
+
export * from "./resource-grant.model.d.mts";
|
|
20
|
+
export * from "./effective-permission.model.d.mts";
|
|
21
|
+
export * from "./storage-binding.model.d.mts";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PermissionCategory } from "../types.d.cts";
|
|
2
|
+
import { AuthorizationModel } from "./authorization-model.d.cts";
|
|
3
|
+
import { Tenant } from "./tenant.model.d.cts";
|
|
4
|
+
import { OrgUnit } from "./org-unit.model.d.cts";
|
|
5
|
+
export declare class InheritanceBlock extends AuthorizationModel {
|
|
6
|
+
constructor(data?: unknown);
|
|
7
|
+
id: string;
|
|
8
|
+
tenant: Tenant | string;
|
|
9
|
+
orgUnit: OrgUnit | string;
|
|
10
|
+
blockedFromAncestor?: OrgUnit | string;
|
|
11
|
+
permissionCategory: PermissionCategory;
|
|
12
|
+
reason?: string;
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
updatedAt: Date;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PermissionCategory } from "../types.d.mts";
|
|
2
|
+
import { AuthorizationModel } from "./authorization-model.d.mts";
|
|
3
|
+
import { Tenant } from "./tenant.model.d.mts";
|
|
4
|
+
import { OrgUnit } from "./org-unit.model.d.mts";
|
|
5
|
+
export declare class InheritanceBlock extends AuthorizationModel {
|
|
6
|
+
constructor(data?: unknown);
|
|
7
|
+
id: string;
|
|
8
|
+
tenant: Tenant | string;
|
|
9
|
+
orgUnit: OrgUnit | string;
|
|
10
|
+
blockedFromAncestor?: OrgUnit | string;
|
|
11
|
+
permissionCategory: PermissionCategory;
|
|
12
|
+
reason?: string;
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
updatedAt: Date;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AuthorizationModel } from "./authorization-model.d.cts";
|
|
2
|
+
import { Tenant } from "./tenant.model.d.cts";
|
|
3
|
+
import { OrgUnit } from "./org-unit.model.d.cts";
|
|
4
|
+
export declare class OrgUnitClosure extends AuthorizationModel {
|
|
5
|
+
constructor(data?: unknown);
|
|
6
|
+
id: string;
|
|
7
|
+
tenant: Tenant | string;
|
|
8
|
+
ancestor: OrgUnit | string;
|
|
9
|
+
descendant: OrgUnit | string;
|
|
10
|
+
depth: number;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AuthorizationModel } from "./authorization-model.d.mts";
|
|
2
|
+
import { Tenant } from "./tenant.model.d.mts";
|
|
3
|
+
import { OrgUnit } from "./org-unit.model.d.mts";
|
|
4
|
+
export declare class OrgUnitClosure extends AuthorizationModel {
|
|
5
|
+
constructor(data?: unknown);
|
|
6
|
+
id: string;
|
|
7
|
+
tenant: Tenant | string;
|
|
8
|
+
ancestor: OrgUnit | string;
|
|
9
|
+
descendant: OrgUnit | string;
|
|
10
|
+
depth: number;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MembershipStatus } from "../types.d.cts";
|
|
2
|
+
import { AuthorizationModel } from "./authorization-model.d.cts";
|
|
3
|
+
import { Tenant } from "./tenant.model.d.cts";
|
|
4
|
+
import { OrgUnit } from "./org-unit.model.d.cts";
|
|
5
|
+
import { User } from "./user.model.d.cts";
|
|
6
|
+
export declare class OrgUnitMembership extends AuthorizationModel {
|
|
7
|
+
constructor(data?: unknown);
|
|
8
|
+
id: string;
|
|
9
|
+
tenant: Tenant | string;
|
|
10
|
+
orgUnit: OrgUnit | string;
|
|
11
|
+
user: User | string;
|
|
12
|
+
status: MembershipStatus;
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
updatedAt: Date;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MembershipStatus } from "../types.d.mts";
|
|
2
|
+
import { AuthorizationModel } from "./authorization-model.d.mts";
|
|
3
|
+
import { Tenant } from "./tenant.model.d.mts";
|
|
4
|
+
import { OrgUnit } from "./org-unit.model.d.mts";
|
|
5
|
+
import { User } from "./user.model.d.mts";
|
|
6
|
+
export declare class OrgUnitMembership extends AuthorizationModel {
|
|
7
|
+
constructor(data?: unknown);
|
|
8
|
+
id: string;
|
|
9
|
+
tenant: Tenant | string;
|
|
10
|
+
orgUnit: OrgUnit | string;
|
|
11
|
+
user: User | string;
|
|
12
|
+
status: MembershipStatus;
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
updatedAt: Date;
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AuthorizationModel } from "./authorization-model.d.cts";
|
|
2
|
+
import { OrgUnit } from "./org-unit.model.d.cts";
|
|
3
|
+
export declare class OrgUnitProfile extends AuthorizationModel {
|
|
4
|
+
constructor(data?: unknown);
|
|
5
|
+
id: string;
|
|
6
|
+
orgUnit: OrgUnit | string;
|
|
7
|
+
profileKey: string;
|
|
8
|
+
metadata?: Record<string, unknown>;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AuthorizationModel } from "./authorization-model.d.mts";
|
|
2
|
+
import { OrgUnit } from "./org-unit.model.d.mts";
|
|
3
|
+
export declare class OrgUnitProfile extends AuthorizationModel {
|
|
4
|
+
constructor(data?: unknown);
|
|
5
|
+
id: string;
|
|
6
|
+
orgUnit: OrgUnit | string;
|
|
7
|
+
profileKey: string;
|
|
8
|
+
metadata?: Record<string, unknown>;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AuthorizationModel } from "./authorization-model.d.cts";
|
|
2
|
+
import { Tenant } from "./tenant.model.d.cts";
|
|
3
|
+
import { OrgUnitMembership } from "./org-unit-membership.model.d.cts";
|
|
4
|
+
import { OrgUnitClosure } from "./org-unit-closure.model.d.cts";
|
|
5
|
+
import { ProtectedResource } from "./protected-resource.model.d.cts";
|
|
6
|
+
import { InheritanceBlock } from "./inheritance-block.model.d.cts";
|
|
7
|
+
export declare class OrgUnit extends AuthorizationModel {
|
|
8
|
+
constructor(data?: unknown);
|
|
9
|
+
id: string;
|
|
10
|
+
tenant: Tenant | string;
|
|
11
|
+
parent?: OrgUnit | string;
|
|
12
|
+
children?: OrgUnit[] | string[];
|
|
13
|
+
name: string;
|
|
14
|
+
path: string;
|
|
15
|
+
metadata?: Record<string, unknown>;
|
|
16
|
+
memberships?: OrgUnitMembership[] | string[];
|
|
17
|
+
resources?: ProtectedResource[] | string[];
|
|
18
|
+
inheritanceBlocks?: InheritanceBlock[] | string[];
|
|
19
|
+
ancestorLinks?: OrgUnitClosure[] | string[];
|
|
20
|
+
descendantLinks?: OrgUnitClosure[] | string[];
|
|
21
|
+
createdAt: Date;
|
|
22
|
+
updatedAt: Date;
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AuthorizationModel } from "./authorization-model.d.mts";
|
|
2
|
+
import { Tenant } from "./tenant.model.d.mts";
|
|
3
|
+
import { OrgUnitMembership } from "./org-unit-membership.model.d.mts";
|
|
4
|
+
import { OrgUnitClosure } from "./org-unit-closure.model.d.mts";
|
|
5
|
+
import { ProtectedResource } from "./protected-resource.model.d.mts";
|
|
6
|
+
import { InheritanceBlock } from "./inheritance-block.model.d.mts";
|
|
7
|
+
export declare class OrgUnit extends AuthorizationModel {
|
|
8
|
+
constructor(data?: unknown);
|
|
9
|
+
id: string;
|
|
10
|
+
tenant: Tenant | string;
|
|
11
|
+
parent?: OrgUnit | string;
|
|
12
|
+
children?: OrgUnit[] | string[];
|
|
13
|
+
name: string;
|
|
14
|
+
path: string;
|
|
15
|
+
metadata?: Record<string, unknown>;
|
|
16
|
+
memberships?: OrgUnitMembership[] | string[];
|
|
17
|
+
resources?: ProtectedResource[] | string[];
|
|
18
|
+
inheritanceBlocks?: InheritanceBlock[] | string[];
|
|
19
|
+
ancestorLinks?: OrgUnitClosure[] | string[];
|
|
20
|
+
descendantLinks?: OrgUnitClosure[] | string[];
|
|
21
|
+
createdAt: Date;
|
|
22
|
+
updatedAt: Date;
|
|
23
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PermissionCategory } from "../types.d.cts";
|
|
2
|
+
import { AuthorizationModel } from "./authorization-model.d.cts";
|
|
3
|
+
import { RolePermission } from "./role-permission.model.d.cts";
|
|
4
|
+
export declare class Permission extends AuthorizationModel {
|
|
5
|
+
constructor(data?: unknown);
|
|
6
|
+
id: string;
|
|
7
|
+
key: string;
|
|
8
|
+
category: PermissionCategory;
|
|
9
|
+
description?: string;
|
|
10
|
+
rolePermissions?: RolePermission[] | string[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PermissionCategory } from "../types.d.mts";
|
|
2
|
+
import { AuthorizationModel } from "./authorization-model.d.mts";
|
|
3
|
+
import { RolePermission } from "./role-permission.model.d.mts";
|
|
4
|
+
export declare class Permission extends AuthorizationModel {
|
|
5
|
+
constructor(data?: unknown);
|
|
6
|
+
id: string;
|
|
7
|
+
key: string;
|
|
8
|
+
category: PermissionCategory;
|
|
9
|
+
description?: string;
|
|
10
|
+
rolePermissions?: RolePermission[] | string[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PrincipalKind } from "../types.d.cts";
|
|
2
|
+
import { AuthorizationModel } from "./authorization-model.d.cts";
|
|
3
|
+
import { Tenant } from "./tenant.model.d.cts";
|
|
4
|
+
import { RoleAssignment } from "./role-assignment.model.d.cts";
|
|
5
|
+
import { ResourceGrant } from "./resource-grant.model.d.cts";
|
|
6
|
+
export declare class Principal extends AuthorizationModel {
|
|
7
|
+
constructor(data?: unknown);
|
|
8
|
+
id: string;
|
|
9
|
+
tenant: Tenant | string;
|
|
10
|
+
kind: PrincipalKind;
|
|
11
|
+
subjectId: string;
|
|
12
|
+
roleAssignments?: RoleAssignment[] | string[];
|
|
13
|
+
resourceGrants?: ResourceGrant[] | string[];
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PrincipalKind } from "../types.d.mts";
|
|
2
|
+
import { AuthorizationModel } from "./authorization-model.d.mts";
|
|
3
|
+
import { Tenant } from "./tenant.model.d.mts";
|
|
4
|
+
import { RoleAssignment } from "./role-assignment.model.d.mts";
|
|
5
|
+
import { ResourceGrant } from "./resource-grant.model.d.mts";
|
|
6
|
+
export declare class Principal extends AuthorizationModel {
|
|
7
|
+
constructor(data?: unknown);
|
|
8
|
+
id: string;
|
|
9
|
+
tenant: Tenant | string;
|
|
10
|
+
kind: PrincipalKind;
|
|
11
|
+
subjectId: string;
|
|
12
|
+
roleAssignments?: RoleAssignment[] | string[];
|
|
13
|
+
resourceGrants?: ResourceGrant[] | string[];
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ResourceVisibility } from "../types.d.cts";
|
|
2
|
+
import { AuthorizationModel } from "./authorization-model.d.cts";
|
|
3
|
+
import { Tenant } from "./tenant.model.d.cts";
|
|
4
|
+
import { OrgUnit } from "./org-unit.model.d.cts";
|
|
5
|
+
import { Principal } from "./principal.model.d.cts";
|
|
6
|
+
import { ResourceGrant } from "./resource-grant.model.d.cts";
|
|
7
|
+
export declare class ProtectedResource extends AuthorizationModel {
|
|
8
|
+
constructor(data?: unknown);
|
|
9
|
+
id: string;
|
|
10
|
+
tenant: Tenant | string;
|
|
11
|
+
orgUnit: OrgUnit | string;
|
|
12
|
+
resourceType: string;
|
|
13
|
+
resourceId: string;
|
|
14
|
+
visibility: ResourceVisibility;
|
|
15
|
+
owner?: Principal | string;
|
|
16
|
+
sensitivity?: string;
|
|
17
|
+
metadata?: Record<string, unknown>;
|
|
18
|
+
grants?: ResourceGrant[] | string[];
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ResourceVisibility } from "../types.d.mts";
|
|
2
|
+
import { AuthorizationModel } from "./authorization-model.d.mts";
|
|
3
|
+
import { Tenant } from "./tenant.model.d.mts";
|
|
4
|
+
import { OrgUnit } from "./org-unit.model.d.mts";
|
|
5
|
+
import { Principal } from "./principal.model.d.mts";
|
|
6
|
+
import { ResourceGrant } from "./resource-grant.model.d.mts";
|
|
7
|
+
export declare class ProtectedResource extends AuthorizationModel {
|
|
8
|
+
constructor(data?: unknown);
|
|
9
|
+
id: string;
|
|
10
|
+
tenant: Tenant | string;
|
|
11
|
+
orgUnit: OrgUnit | string;
|
|
12
|
+
resourceType: string;
|
|
13
|
+
resourceId: string;
|
|
14
|
+
visibility: ResourceVisibility;
|
|
15
|
+
owner?: Principal | string;
|
|
16
|
+
sensitivity?: string;
|
|
17
|
+
metadata?: Record<string, unknown>;
|
|
18
|
+
grants?: ResourceGrant[] | string[];
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AuthorizationModel } from "./authorization-model.d.cts";
|
|
2
|
+
import { Tenant } from "./tenant.model.d.cts";
|
|
3
|
+
import { Principal } from "./principal.model.d.cts";
|
|
4
|
+
import { ProtectedResource } from "./protected-resource.model.d.cts";
|
|
5
|
+
export declare class ResourceGrant extends AuthorizationModel {
|
|
6
|
+
constructor(data?: unknown);
|
|
7
|
+
id: string;
|
|
8
|
+
tenant: Tenant | string;
|
|
9
|
+
resource: ProtectedResource | string;
|
|
10
|
+
principal: Principal | string;
|
|
11
|
+
permissionKey: string;
|
|
12
|
+
startsAt?: Date;
|
|
13
|
+
expiresAt?: Date;
|
|
14
|
+
conditions?: Record<string, unknown>;
|
|
15
|
+
createdBy?: Principal | string;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AuthorizationModel } from "./authorization-model.d.mts";
|
|
2
|
+
import { Tenant } from "./tenant.model.d.mts";
|
|
3
|
+
import { Principal } from "./principal.model.d.mts";
|
|
4
|
+
import { ProtectedResource } from "./protected-resource.model.d.mts";
|
|
5
|
+
export declare class ResourceGrant extends AuthorizationModel {
|
|
6
|
+
constructor(data?: unknown);
|
|
7
|
+
id: string;
|
|
8
|
+
tenant: Tenant | string;
|
|
9
|
+
resource: ProtectedResource | string;
|
|
10
|
+
principal: Principal | string;
|
|
11
|
+
permissionKey: string;
|
|
12
|
+
startsAt?: Date;
|
|
13
|
+
expiresAt?: Date;
|
|
14
|
+
conditions?: Record<string, unknown>;
|
|
15
|
+
createdBy?: Principal | string;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ScopeKind } from "../types.d.cts";
|
|
2
|
+
import { AuthorizationModel } from "./authorization-model.d.cts";
|
|
3
|
+
import { Tenant } from "./tenant.model.d.cts";
|
|
4
|
+
import { Principal } from "./principal.model.d.cts";
|
|
5
|
+
import { Role } from "./role.model.d.cts";
|
|
6
|
+
export declare class RoleAssignment extends AuthorizationModel {
|
|
7
|
+
constructor(data?: unknown);
|
|
8
|
+
id: string;
|
|
9
|
+
tenant: Tenant | string;
|
|
10
|
+
principal: Principal | string;
|
|
11
|
+
role: Role | string;
|
|
12
|
+
scopeKind: ScopeKind;
|
|
13
|
+
scopeId: string;
|
|
14
|
+
inheritDown: boolean;
|
|
15
|
+
startsAt?: Date;
|
|
16
|
+
expiresAt?: Date;
|
|
17
|
+
conditions?: Record<string, unknown>;
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
updatedAt: Date;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ScopeKind } from "../types.d.mts";
|
|
2
|
+
import { AuthorizationModel } from "./authorization-model.d.mts";
|
|
3
|
+
import { Tenant } from "./tenant.model.d.mts";
|
|
4
|
+
import { Principal } from "./principal.model.d.mts";
|
|
5
|
+
import { Role } from "./role.model.d.mts";
|
|
6
|
+
export declare class RoleAssignment extends AuthorizationModel {
|
|
7
|
+
constructor(data?: unknown);
|
|
8
|
+
id: string;
|
|
9
|
+
tenant: Tenant | string;
|
|
10
|
+
principal: Principal | string;
|
|
11
|
+
role: Role | string;
|
|
12
|
+
scopeKind: ScopeKind;
|
|
13
|
+
scopeId: string;
|
|
14
|
+
inheritDown: boolean;
|
|
15
|
+
startsAt?: Date;
|
|
16
|
+
expiresAt?: Date;
|
|
17
|
+
conditions?: Record<string, unknown>;
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
updatedAt: Date;
|
|
20
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AuthorizationModel } from "./authorization-model.d.cts";
|
|
2
|
+
import { Role } from "./role.model.d.cts";
|
|
3
|
+
import { Permission } from "./permission.model.d.cts";
|
|
4
|
+
export declare class RolePermission extends AuthorizationModel {
|
|
5
|
+
constructor(data?: unknown);
|
|
6
|
+
id: string;
|
|
7
|
+
role: Role | string;
|
|
8
|
+
permission: Permission | string;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AuthorizationModel } from "./authorization-model.d.mts";
|
|
2
|
+
import { Role } from "./role.model.d.mts";
|
|
3
|
+
import { Permission } from "./permission.model.d.mts";
|
|
4
|
+
export declare class RolePermission extends AuthorizationModel {
|
|
5
|
+
constructor(data?: unknown);
|
|
6
|
+
id: string;
|
|
7
|
+
role: Role | string;
|
|
8
|
+
permission: Permission | string;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AuthorizationModel } from "./authorization-model.d.cts";
|
|
2
|
+
import { Tenant } from "./tenant.model.d.cts";
|
|
3
|
+
import { RolePermission } from "./role-permission.model.d.cts";
|
|
4
|
+
import { RoleAssignment } from "./role-assignment.model.d.cts";
|
|
5
|
+
export declare class Role extends AuthorizationModel {
|
|
6
|
+
constructor(data?: unknown);
|
|
7
|
+
id: string;
|
|
8
|
+
tenant?: Tenant | string;
|
|
9
|
+
key: string;
|
|
10
|
+
name: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
metadata?: Record<string, unknown>;
|
|
13
|
+
rolePermissions?: RolePermission[] | string[];
|
|
14
|
+
assignments?: RoleAssignment[] | string[];
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AuthorizationModel } from "./authorization-model.d.mts";
|
|
2
|
+
import { Tenant } from "./tenant.model.d.mts";
|
|
3
|
+
import { RolePermission } from "./role-permission.model.d.mts";
|
|
4
|
+
import { RoleAssignment } from "./role-assignment.model.d.mts";
|
|
5
|
+
export declare class Role extends AuthorizationModel {
|
|
6
|
+
constructor(data?: unknown);
|
|
7
|
+
id: string;
|
|
8
|
+
tenant?: Tenant | string;
|
|
9
|
+
key: string;
|
|
10
|
+
name: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
metadata?: Record<string, unknown>;
|
|
13
|
+
rolePermissions?: RolePermission[] | string[];
|
|
14
|
+
assignments?: RoleAssignment[] | string[];
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
updatedAt: Date;
|
|
17
|
+
}
|