-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.ts
More file actions
59 lines (54 loc) · 1.9 KB
/
Copy pathindex.ts
File metadata and controls
59 lines (54 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
/**
* Security domain — the ADR-0090 Permission Model v2, end to end.
*
* Five concepts, one file each concern:
* • positions.ts — flat distribution groups (who gets which sets)
* • permission-sets.ts — capability (CRUD, FLS, RLS, depth, VAMA, system
* permissions, tabs, everyone-suggestion, guest
* capability, delegated-admin scope)
* • sharing-rules.ts — record widening (criteria + BU-subtree recipients)
*
* The other two concepts live elsewhere by design: the OWD baseline
* (`sharingModel` / `externalSharingModel`) is declared per-object in
* src/data/objects/, and the business-unit tree is DATA (environment-owned,
* seeded in src/data/seed/ as `sys_business_unit` rows), not metadata.
*
* The committed `access-matrix.json` next to objectstack.config.ts is the
* ADR-0090 D6 snapshot gate: `objectstack compile` derives the
* (permission set × object) matrix from these declarations and fails the
* build on drift until the snapshot is regenerated with
* `--update-access-matrix` — the snapshot's git diff is the review artifact.
*/
export {
ContributorPosition,
ManagerPosition,
ExecPosition,
AuditorPosition,
OpsPosition,
FieldOpsDelegatePosition,
ClientPortalUserPosition,
allPositions,
} from './positions.js';
export {
ContributorPermissionSet,
ManagerPermissionSet,
ExecutivePermissionSet,
AuditorPermissionSet,
OpsPermissionSet,
MemberDefaultPermissionSet,
GuestPortalPermissionSet,
FieldOpsDelegatePermissionSet,
allPermissionSets,
} from './permission-sets.js';
export {
ExportDataCapability,
allCapabilities,
} from './capabilities.js';
export {
RedProjectSharingRule,
HighValueRedProjectRule,
NewInquiryFieldOpsRule,
ContributorTaskSharingRule,
allSharingRules,
} from './sharing-rules.js';