@eaera-com/cms-sdk 0.1.61

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.
Files changed (288) hide show
  1. package/LICENSE +19 -0
  2. package/README.md +479 -0
  3. package/dist/chunks/_shared-DdBWuPm_.js +27 -0
  4. package/dist/chunks/_shared-DdBWuPm_.js.map +1 -0
  5. package/dist/chunks/auth.constant-CMI1lqQc.js +37 -0
  6. package/dist/chunks/auth.constant-CMI1lqQc.js.map +1 -0
  7. package/dist/chunks/authz.constant-BAarvacV.js +9 -0
  8. package/dist/chunks/authz.constant-BAarvacV.js.map +1 -0
  9. package/dist/chunks/http.constant-BzH5tJTG.js +33 -0
  10. package/dist/chunks/http.constant-BzH5tJTG.js.map +1 -0
  11. package/dist/chunks/mt5Retcode-DlZLQOLA.js +178 -0
  12. package/dist/chunks/mt5Retcode-DlZLQOLA.js.map +1 -0
  13. package/dist/chunks/storage.constant--64BDSPW.js +44 -0
  14. package/dist/chunks/storage.constant--64BDSPW.js.map +1 -0
  15. package/dist/common/constants/auth.constant.d.ts +54 -0
  16. package/dist/common/constants/auth.constant.d.ts.map +1 -0
  17. package/dist/common/constants/authz.constant.d.ts +27 -0
  18. package/dist/common/constants/authz.constant.d.ts.map +1 -0
  19. package/dist/common/constants/bars.constant.d.ts +15 -0
  20. package/dist/common/constants/bars.constant.d.ts.map +1 -0
  21. package/dist/common/constants/content-types.constant.d.ts +31 -0
  22. package/dist/common/constants/content-types.constant.d.ts.map +1 -0
  23. package/dist/common/constants/content.constant.d.ts +114 -0
  24. package/dist/common/constants/content.constant.d.ts.map +1 -0
  25. package/dist/common/constants/executions.constant.d.ts +56 -0
  26. package/dist/common/constants/executions.constant.d.ts.map +1 -0
  27. package/dist/common/constants/gov.constant.d.ts +118 -0
  28. package/dist/common/constants/gov.constant.d.ts.map +1 -0
  29. package/dist/common/constants/history.constant.d.ts +108 -0
  30. package/dist/common/constants/history.constant.d.ts.map +1 -0
  31. package/dist/common/constants/http.constant.d.ts +46 -0
  32. package/dist/common/constants/http.constant.d.ts.map +1 -0
  33. package/dist/common/constants/index.d.ts +16 -0
  34. package/dist/common/constants/index.d.ts.map +1 -0
  35. package/dist/common/constants/kalshi.constant.d.ts +35 -0
  36. package/dist/common/constants/kalshi.constant.d.ts.map +1 -0
  37. package/dist/common/constants/llm.constant.d.ts +37 -0
  38. package/dist/common/constants/llm.constant.d.ts.map +1 -0
  39. package/dist/common/constants/mt5-action.constant.d.ts +131 -0
  40. package/dist/common/constants/mt5-action.constant.d.ts.map +1 -0
  41. package/dist/common/constants/mt5.constant.d.ts +254 -0
  42. package/dist/common/constants/mt5.constant.d.ts.map +1 -0
  43. package/dist/common/constants/notifications.constant.d.ts +45 -0
  44. package/dist/common/constants/notifications.constant.d.ts.map +1 -0
  45. package/dist/common/constants/people.constant.d.ts +269 -0
  46. package/dist/common/constants/people.constant.d.ts.map +1 -0
  47. package/dist/common/constants/rules.constant.d.ts +14 -0
  48. package/dist/common/constants/rules.constant.d.ts.map +1 -0
  49. package/dist/common/constants/settings.constant.d.ts +17 -0
  50. package/dist/common/constants/settings.constant.d.ts.map +1 -0
  51. package/dist/common/constants/sort.constant.d.ts +14 -0
  52. package/dist/common/constants/sort.constant.d.ts.map +1 -0
  53. package/dist/common/constants/storage.constant.d.ts +74 -0
  54. package/dist/common/constants/storage.constant.d.ts.map +1 -0
  55. package/dist/common/helpers/format.d.ts +7 -0
  56. package/dist/common/helpers/format.d.ts.map +1 -0
  57. package/dist/common/helpers/format.js +20 -0
  58. package/dist/common/helpers/format.js.map +1 -0
  59. package/dist/common/helpers/mt5Retcode.d.ts +18 -0
  60. package/dist/common/helpers/mt5Retcode.d.ts.map +1 -0
  61. package/dist/common/helpers/mt5Retcode.js +2 -0
  62. package/dist/common/helpers/mt5Retcode.js.map +1 -0
  63. package/dist/common/utils/case.d.ts +12 -0
  64. package/dist/common/utils/case.d.ts.map +1 -0
  65. package/dist/common/utils/clone.d.ts +9 -0
  66. package/dist/common/utils/clone.d.ts.map +1 -0
  67. package/dist/composables/cbsStateKey.d.ts +27 -0
  68. package/dist/composables/cbsStateKey.d.ts.map +1 -0
  69. package/dist/core/createApi.d.ts +69 -0
  70. package/dist/core/createApi.d.ts.map +1 -0
  71. package/dist/core/createCmsSDK.d.ts +19 -0
  72. package/dist/core/createCmsSDK.d.ts.map +1 -0
  73. package/dist/core/credentials/TokenManager.d.ts +38 -0
  74. package/dist/core/credentials/TokenManager.d.ts.map +1 -0
  75. package/dist/core/credentials/credential.type.d.ts +16 -0
  76. package/dist/core/credentials/credential.type.d.ts.map +1 -0
  77. package/dist/core/credentials/resolveStorage.d.ts +6 -0
  78. package/dist/core/credentials/resolveStorage.d.ts.map +1 -0
  79. package/dist/core/credentials/storages/cookieStorage.d.ts +18 -0
  80. package/dist/core/credentials/storages/cookieStorage.d.ts.map +1 -0
  81. package/dist/core/credentials/storages/localStorageAdapter.d.ts +8 -0
  82. package/dist/core/credentials/storages/localStorageAdapter.d.ts.map +1 -0
  83. package/dist/core/credentials/storages/memoryStorage.d.ts +7 -0
  84. package/dist/core/credentials/storages/memoryStorage.d.ts.map +1 -0
  85. package/dist/core/errors.d.ts +26 -0
  86. package/dist/core/errors.d.ts.map +1 -0
  87. package/dist/core/sdk.type.d.ts +123 -0
  88. package/dist/core/sdk.type.d.ts.map +1 -0
  89. package/dist/core/ws/createEaeraWebSocket.d.ts +21 -0
  90. package/dist/core/ws/createEaeraWebSocket.d.ts.map +1 -0
  91. package/dist/core/ws/index.d.ts +4 -0
  92. package/dist/core/ws/index.d.ts.map +1 -0
  93. package/dist/core/ws/ws.constants.d.ts +246 -0
  94. package/dist/core/ws/ws.constants.d.ts.map +1 -0
  95. package/dist/core/ws/ws.events.d.ts +264 -0
  96. package/dist/core/ws/ws.events.d.ts.map +1 -0
  97. package/dist/core/ws/ws.type.d.ts +225 -0
  98. package/dist/core/ws/ws.type.d.ts.map +1 -0
  99. package/dist/index.d.ts +135 -0
  100. package/dist/index.d.ts.map +1 -0
  101. package/dist/index.js +8608 -0
  102. package/dist/index.js.map +1 -0
  103. package/dist/nuxt.d.ts +55 -0
  104. package/dist/nuxt.d.ts.map +1 -0
  105. package/dist/nuxt.js +48 -0
  106. package/dist/nuxt.js.map +1 -0
  107. package/dist/runtime/plugin.d.ts +6 -0
  108. package/dist/runtime/plugin.js +197 -0
  109. package/dist/runtime/plugin.js.map +1 -0
  110. package/dist/server/auth/cbs-callback.post.js +43 -0
  111. package/dist/server/auth/cbs-callback.post.js.map +1 -0
  112. package/dist/server/auth/cbs-start.post.js +35 -0
  113. package/dist/server/auth/cbs-start.post.js.map +1 -0
  114. package/dist/server/auth/idp-callback.get.js +53 -0
  115. package/dist/server/auth/idp-callback.get.js.map +1 -0
  116. package/dist/server/auth/idp-link.post.js +39 -0
  117. package/dist/server/auth/idp-link.post.js.map +1 -0
  118. package/dist/server/auth/idp-login.get.js +43 -0
  119. package/dist/server/auth/idp-login.get.js.map +1 -0
  120. package/dist/server/auth/idp-unlink.delete.js +39 -0
  121. package/dist/server/auth/idp-unlink.delete.js.map +1 -0
  122. package/dist/server/auth/login.post.js +46 -0
  123. package/dist/server/auth/login.post.js.map +1 -0
  124. package/dist/server/auth/logout.post.js +32 -0
  125. package/dist/server/auth/logout.post.js.map +1 -0
  126. package/dist/server/auth/refresh.post.js +47 -0
  127. package/dist/server/auth/refresh.post.js.map +1 -0
  128. package/dist/server/authz/portal-access.get.js +43 -0
  129. package/dist/server/authz/portal-access.get.js.map +1 -0
  130. package/dist/server/clear-token.delete.js +12 -0
  131. package/dist/server/clear-token.delete.js.map +1 -0
  132. package/dist/server/persist.post.js +31 -0
  133. package/dist/server/persist.post.js.map +1 -0
  134. package/dist/server/set-token.post.js +27 -0
  135. package/dist/server/set-token.post.js.map +1 -0
  136. package/dist/services/auth/auth.type.d.ts +73 -0
  137. package/dist/services/auth/auth.type.d.ts.map +1 -0
  138. package/dist/services/auth/index.d.ts +127 -0
  139. package/dist/services/auth/index.d.ts.map +1 -0
  140. package/dist/services/auth/mock.d.ts +13 -0
  141. package/dist/services/auth/mock.d.ts.map +1 -0
  142. package/dist/services/authz/authz.type.d.ts +21 -0
  143. package/dist/services/authz/authz.type.d.ts.map +1 -0
  144. package/dist/services/authz/index.d.ts +43 -0
  145. package/dist/services/authz/index.d.ts.map +1 -0
  146. package/dist/services/bars/bars.type.d.ts +78 -0
  147. package/dist/services/bars/bars.type.d.ts.map +1 -0
  148. package/dist/services/bars/index.d.ts +24 -0
  149. package/dist/services/bars/index.d.ts.map +1 -0
  150. package/dist/services/bars/mock.d.ts +23 -0
  151. package/dist/services/bars/mock.d.ts.map +1 -0
  152. package/dist/services/content/content.type.d.ts +832 -0
  153. package/dist/services/content/content.type.d.ts.map +1 -0
  154. package/dist/services/content/filter.d.ts +46 -0
  155. package/dist/services/content/filter.d.ts.map +1 -0
  156. package/dist/services/content/index.d.ts +35 -0
  157. package/dist/services/content/index.d.ts.map +1 -0
  158. package/dist/services/content/mock.d.ts +16 -0
  159. package/dist/services/content/mock.d.ts.map +1 -0
  160. package/dist/services/content-types/content-types.type.d.ts +70 -0
  161. package/dist/services/content-types/content-types.type.d.ts.map +1 -0
  162. package/dist/services/content-types/index.d.ts +25 -0
  163. package/dist/services/content-types/index.d.ts.map +1 -0
  164. package/dist/services/content-types/mock.d.ts +15 -0
  165. package/dist/services/content-types/mock.d.ts.map +1 -0
  166. package/dist/services/executions/executions.type.d.ts +67 -0
  167. package/dist/services/executions/executions.type.d.ts.map +1 -0
  168. package/dist/services/executions/index.d.ts +30 -0
  169. package/dist/services/executions/index.d.ts.map +1 -0
  170. package/dist/services/executions/mock.d.ts +29 -0
  171. package/dist/services/executions/mock.d.ts.map +1 -0
  172. package/dist/services/gov/gov.type.d.ts +740 -0
  173. package/dist/services/gov/gov.type.d.ts.map +1 -0
  174. package/dist/services/gov/index.d.ts +84 -0
  175. package/dist/services/gov/index.d.ts.map +1 -0
  176. package/dist/services/history/history.type.d.ts +167 -0
  177. package/dist/services/history/history.type.d.ts.map +1 -0
  178. package/dist/services/history/index.d.ts +38 -0
  179. package/dist/services/history/index.d.ts.map +1 -0
  180. package/dist/services/history/mock.d.ts +21 -0
  181. package/dist/services/history/mock.d.ts.map +1 -0
  182. package/dist/services/kalshi/index.d.ts +19 -0
  183. package/dist/services/kalshi/index.d.ts.map +1 -0
  184. package/dist/services/kalshi/kalshi.type.d.ts +99 -0
  185. package/dist/services/kalshi/kalshi.type.d.ts.map +1 -0
  186. package/dist/services/kalshi/mock.d.ts +5 -0
  187. package/dist/services/kalshi/mock.d.ts.map +1 -0
  188. package/dist/services/llm/index.d.ts +38 -0
  189. package/dist/services/llm/index.d.ts.map +1 -0
  190. package/dist/services/llm/llm.type.d.ts +106 -0
  191. package/dist/services/llm/llm.type.d.ts.map +1 -0
  192. package/dist/services/notifications/index.d.ts +38 -0
  193. package/dist/services/notifications/index.d.ts.map +1 -0
  194. package/dist/services/notifications/mock.d.ts +39 -0
  195. package/dist/services/notifications/mock.d.ts.map +1 -0
  196. package/dist/services/notifications/notifications.type.d.ts +75 -0
  197. package/dist/services/notifications/notifications.type.d.ts.map +1 -0
  198. package/dist/services/people/_invoke.d.ts +26 -0
  199. package/dist/services/people/_invoke.d.ts.map +1 -0
  200. package/dist/services/people/copilot/index.d.ts +132 -0
  201. package/dist/services/people/copilot/index.d.ts.map +1 -0
  202. package/dist/services/people/identity/actions.d.ts +116 -0
  203. package/dist/services/people/identity/actions.d.ts.map +1 -0
  204. package/dist/services/people/identity/ct.types.d.ts +133 -0
  205. package/dist/services/people/identity/ct.types.d.ts.map +1 -0
  206. package/dist/services/people/identity/index.d.ts +14 -0
  207. package/dist/services/people/identity/index.d.ts.map +1 -0
  208. package/dist/services/people/identity/projections.d.ts +63 -0
  209. package/dist/services/people/identity/projections.d.ts.map +1 -0
  210. package/dist/services/people/index.d.ts +31 -0
  211. package/dist/services/people/index.d.ts.map +1 -0
  212. package/dist/services/people/legal/actions.d.ts +161 -0
  213. package/dist/services/people/legal/actions.d.ts.map +1 -0
  214. package/dist/services/people/legal/ct.types.d.ts +186 -0
  215. package/dist/services/people/legal/ct.types.d.ts.map +1 -0
  216. package/dist/services/people/legal/index.d.ts +15 -0
  217. package/dist/services/people/legal/index.d.ts.map +1 -0
  218. package/dist/services/people/packops/index.d.ts +79 -0
  219. package/dist/services/people/packops/index.d.ts.map +1 -0
  220. package/dist/services/people/packops/packops.type.d.ts +208 -0
  221. package/dist/services/people/packops/packops.type.d.ts.map +1 -0
  222. package/dist/services/people/perms/actions.d.ts +214 -0
  223. package/dist/services/people/perms/actions.d.ts.map +1 -0
  224. package/dist/services/people/perms/ct.types.d.ts +140 -0
  225. package/dist/services/people/perms/ct.types.d.ts.map +1 -0
  226. package/dist/services/people/perms/index.d.ts +14 -0
  227. package/dist/services/people/perms/index.d.ts.map +1 -0
  228. package/dist/services/people/perms/projections.d.ts +47 -0
  229. package/dist/services/people/perms/projections.d.ts.map +1 -0
  230. package/dist/services/people/process/actions.d.ts +154 -0
  231. package/dist/services/people/process/actions.d.ts.map +1 -0
  232. package/dist/services/people/process/ct.types.d.ts +304 -0
  233. package/dist/services/people/process/ct.types.d.ts.map +1 -0
  234. package/dist/services/people/process/index.d.ts +12 -0
  235. package/dist/services/people/process/index.d.ts.map +1 -0
  236. package/dist/services/people/shared.types.d.ts +36 -0
  237. package/dist/services/people/shared.types.d.ts.map +1 -0
  238. package/dist/services/rules/conditions.d.ts +264 -0
  239. package/dist/services/rules/conditions.d.ts.map +1 -0
  240. package/dist/services/rules/index.d.ts +49 -0
  241. package/dist/services/rules/index.d.ts.map +1 -0
  242. package/dist/services/rules/llm-rule.constant.d.ts +84 -0
  243. package/dist/services/rules/llm-rule.constant.d.ts.map +1 -0
  244. package/dist/services/rules/mock.d.ts +20 -0
  245. package/dist/services/rules/mock.d.ts.map +1 -0
  246. package/dist/services/rules/rules.type.d.ts +262 -0
  247. package/dist/services/rules/rules.type.d.ts.map +1 -0
  248. package/dist/services/rules/triggers.d.ts +140 -0
  249. package/dist/services/rules/triggers.d.ts.map +1 -0
  250. package/dist/services/settings/index.d.ts +36 -0
  251. package/dist/services/settings/index.d.ts.map +1 -0
  252. package/dist/services/settings/mock.d.ts +14 -0
  253. package/dist/services/settings/mock.d.ts.map +1 -0
  254. package/dist/services/settings/settings.type.d.ts +39 -0
  255. package/dist/services/settings/settings.type.d.ts.map +1 -0
  256. package/dist/stores/auth.d.ts +192 -0
  257. package/dist/stores/auth.d.ts.map +1 -0
  258. package/dist/stores/authz.d.ts +116 -0
  259. package/dist/stores/authz.d.ts.map +1 -0
  260. package/dist/stores/bars.d.ts +288 -0
  261. package/dist/stores/bars.d.ts.map +1 -0
  262. package/dist/stores/content.d.ts +4101 -0
  263. package/dist/stores/content.d.ts.map +1 -0
  264. package/dist/stores/executions.d.ts +249 -0
  265. package/dist/stores/executions.d.ts.map +1 -0
  266. package/dist/stores/gov.d.ts +238 -0
  267. package/dist/stores/gov.d.ts.map +1 -0
  268. package/dist/stores/history.d.ts +833 -0
  269. package/dist/stores/history.d.ts.map +1 -0
  270. package/dist/stores/index.d.ts +16 -0
  271. package/dist/stores/index.d.ts.map +1 -0
  272. package/dist/stores/kalshi.d.ts +728 -0
  273. package/dist/stores/kalshi.d.ts.map +1 -0
  274. package/dist/stores/llm-providers.d.ts +97 -0
  275. package/dist/stores/llm-providers.d.ts.map +1 -0
  276. package/dist/stores/llm.d.ts +102 -0
  277. package/dist/stores/llm.d.ts.map +1 -0
  278. package/dist/stores/people.d.ts +596 -0
  279. package/dist/stores/people.d.ts.map +1 -0
  280. package/dist/stores/persist.d.ts +58 -0
  281. package/dist/stores/persist.d.ts.map +1 -0
  282. package/dist/stores/rules.d.ts +485 -0
  283. package/dist/stores/rules.d.ts.map +1 -0
  284. package/dist/stores/settings.d.ts +36 -0
  285. package/dist/stores/settings.d.ts.map +1 -0
  286. package/dist/stores/ws.d.ts +66 -0
  287. package/dist/stores/ws.d.ts.map +1 -0
  288. package/package.json +90 -0
@@ -0,0 +1,140 @@
1
+ import { ContentItem } from '../../content/content.type';
2
+ /** `catalog_revision` — bundle CT. ONE row = ONE atomic revision of the
3
+ * whole access catalog. DS1: published-immutable + atomic publish+supersede.
4
+ * ✅ */
5
+ export interface PeopleCatalogRevisionData {
6
+ revisionLabel: string;
7
+ forkedFrom?: string | null;
8
+ roles: Array<{
9
+ key: string;
10
+ displayName?: string;
11
+ permissions: string[];
12
+ scopeRefs: string[];
13
+ }>;
14
+ permissions: Array<{
15
+ key: string;
16
+ description?: string;
17
+ seedDomain?: string;
18
+ configurable?: boolean;
19
+ }>;
20
+ scopeRules: Array<{
21
+ key: string;
22
+ level: 'own' | 'team' | 'department' | 'all';
23
+ orgMapping?: unknown;
24
+ }>;
25
+ fieldAccessPolicies: Array<{
26
+ fieldGroup: 'identity' | 'contact' | 'employment' | 'contract' | 'finance-salary' | 'time-attendance';
27
+ view: {
28
+ roleKeys: string[];
29
+ maskLevel: 'hidden' | 'partial' | 'full';
30
+ scopeRefs: string[];
31
+ };
32
+ approveLevel: 'L1' | 'L2' | 'L3' | 'L4';
33
+ l4Floor: boolean;
34
+ }>;
35
+ changelog?: string;
36
+ validationResult?: {
37
+ valid?: boolean;
38
+ errors?: unknown[];
39
+ checkedAt?: string;
40
+ };
41
+ state: 'draft' | 'published' | 'superseded' | 'discarded';
42
+ }
43
+ export type PeopleCatalogRevision = ContentItem<PeopleCatalogRevisionData>;
44
+ /** `scope_exception` — subject-scoped (much higher change cadence than the
45
+ * bundle). Created by the factory only (`grant_exception`) — see api_references
46
+ * §3.4 + data-design §3.7b: `POST /content` for scope_exception starts a row
47
+ * in `draft` with no activation API; the factory is the only admin path.
48
+ * ✅ */
49
+ export interface PeopleScopeExceptionData {
50
+ subjectRef: string;
51
+ employmentRef?: string | null;
52
+ effect: 'grant' | 'deny';
53
+ scopeKey: string;
54
+ window: {
55
+ effectiveFrom: string;
56
+ effectiveTo: string;
57
+ };
58
+ justification?: string;
59
+ origin: 'admin' | 'system';
60
+ errorCode?: string | null;
61
+ state: 'draft' | 'active' | 'expired' | 'revoked';
62
+ }
63
+ export type PeopleScopeException = ContentItem<PeopleScopeExceptionData>;
64
+ /** Manual-override marker — manual removal beats birthright (D2). */
65
+ export interface PeopleManualOverride {
66
+ blockedRuleKey?: string;
67
+ ruleVersionAtOverride?: number;
68
+ clearedBy?: string;
69
+ }
70
+ /** `role_assignment` row payload (registry §3.21). */
71
+ export interface PeopleRoleAssignmentData {
72
+ subjectRef: string;
73
+ roleKey: string;
74
+ /** Employment content ref (eaera-hr CT) — identity triple element. */
75
+ accessContextRef: string;
76
+ assignmentType: 'manual' | 'birthright' | 'requested' | 'emergency';
77
+ purpose?: 'standard' | 'acting';
78
+ effectiveFrom?: string;
79
+ effectiveTo?: string | null;
80
+ justification?: string;
81
+ /** Emergency only. */
82
+ ticketRef?: string;
83
+ /** Birthright provenance. */
84
+ originRuleRef?: string;
85
+ originRuleVersion?: number;
86
+ manualOverride?: PeopleManualOverride | null;
87
+ /** Event dedupe — NO_OP audit PEOPLE_IDEM_DUPLICATE. */
88
+ idempotencyKey?: string;
89
+ sodWarnings?: unknown[];
90
+ /** Lifecycle timestamps (engine-written). */
91
+ activatedAt?: string;
92
+ revokedAt?: string | null;
93
+ amendedAt?: string | null;
94
+ revokeReason?: string | null;
95
+ state: 'prepared' | 'active' | 'inactive' | 'revoked' | 'archived';
96
+ }
97
+ export type PeopleRoleAssignment = ContentItem<PeopleRoleAssignmentData>;
98
+ /** `assignment_rule` row payload (registry §3.22). */
99
+ export interface PeopleAssignmentRuleData {
100
+ ruleKey: string;
101
+ version?: number;
102
+ match?: {
103
+ positions?: string[];
104
+ orgUnits?: string[];
105
+ legalEntities?: string[];
106
+ };
107
+ actions?: Array<{
108
+ effect: 'grant' | 'remove';
109
+ roleKey: string;
110
+ }>;
111
+ lastValidated?: string;
112
+ evaluationStats?: {
113
+ assignmentsGenerated?: number;
114
+ lastRunAt?: string;
115
+ };
116
+ state: 'draft' | 'published' | 'superseded' | 'discarded';
117
+ }
118
+ export type PeopleAssignmentRule = ContentItem<PeopleAssignmentRuleData>;
119
+ /** One structured review item inside a campaign (no own workflow). */
120
+ export interface PeopleReviewCampaignItem {
121
+ managerRef: string;
122
+ memberRef: string;
123
+ assignmentRefs: string[];
124
+ decision?: 'keep' | 'revoke' | null;
125
+ reason?: string | null;
126
+ reviewedAt?: string | null;
127
+ reviewedBy?: string | null;
128
+ status: 'pending' | 'done' | 'escalated';
129
+ }
130
+ /** `access_review_campaign` row payload (registry §3.23). */
131
+ export interface PeopleAccessReviewCampaignData {
132
+ cycleConfig?: Record<string, unknown>;
133
+ deadlineAt: string;
134
+ items?: PeopleReviewCampaignItem[];
135
+ escalatedTo?: string;
136
+ completionReport?: Record<string, unknown> | null;
137
+ state: 'draft' | 'active' | 'completed' | 'cancelled';
138
+ }
139
+ export type PeopleAccessReviewCampaign = ContentItem<PeopleAccessReviewCampaignData>;
140
+ //# sourceMappingURL=ct.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ct.types.d.ts","sourceRoot":"","sources":["../../../../src/services/people/perms/ct.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D;;QAEQ;AACR,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,KAAK,EAAE,KAAK,CAAC;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,EAAE,CAAC;QACtB,SAAS,EAAE,MAAM,EAAE,CAAC;KACrB,CAAC,CAAC;IACH,WAAW,EAAE,KAAK,CAAC;QACjB,GAAG,EAAE,MAAM,CAAC;QACZ,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,OAAO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,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,WAAW,CAAC;CAC1C;AAED,6DAA6D;AAC7D,MAAM,WAAW,8BAA8B;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAClD,KAAK,EAAE,OAAO,GAAG,QAAQ,GAAG,WAAW,GAAG,WAAW,CAAC;CACvD;AACD,MAAM,MAAM,0BAA0B,GAAG,WAAW,CAAC,8BAA8B,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Perms domain — barrel.
3
+ *
4
+ * Re-exports the public surface for FEAT-007 (catalog + scope exceptions)
5
+ * and FEAT-008 (role assignments + rules + review campaigns).
6
+ *
7
+ * Also re-exports the projection read types (`access.audit` Q-A/Q-B) for
8
+ * a single import path per domain.
9
+ */
10
+ export type { PeopleCatalogRevisionData, PeopleCatalogRevision, PeopleScopeExceptionData, PeopleScopeException, PeopleRoleAssignment, PeopleRoleAssignmentData, PeopleManualOverride, PeopleAssignmentRule, PeopleAssignmentRuleData, PeopleAccessReviewCampaign, PeopleAccessReviewCampaignData, PeopleReviewCampaignItem, } from './ct.types';
11
+ export type { PeopleValidateRevisionOutput, PeopleForkDraftParams, PeopleSeedMergeParams, PeopleSeedMergeOutput, PeoplePublishRevisionOutput, PeopleGrantExceptionParams, PeopleGrantExceptionOutput, PeopleAmendExceptionWindowParams, PeopleGrantParams, PeopleGrantOutput, PeopleRevokeParams, PeopleAmendWindowParams, PeopleValidateRuleOutput, PeoplePublishRuleOutput, PeopleRecordDecisionParams, PeopleRecordDecisionOutput, PeopleGenerateParams, PeopleGenerateOutput, PeopleRemindOutput, PeopleEscalateReviewOutput, PeopleCompleteOutput, PermsActions, } from './actions';
12
+ export { buildPermsActions } from './actions';
13
+ export type { PeopleAccessAuditQuery, PeopleAccessAuditResult, PeopleAccessAuditItem, PeopleAccessAuditItemQa, PeopleAccessAuditItemQb, } from './projections';
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/people/perms/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,YAAY,EACV,yBAAyB,EACzB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,EAC1B,8BAA8B,EAC9B,wBAAwB,GACzB,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,4BAA4B,EAC5B,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC1B,gCAAgC,EAChC,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACvB,0BAA0B,EAC1B,0BAA0B,EAC1B,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,0BAA0B,EAC1B,oBAAoB,EACpB,YAAY,GACb,MAAM,WAAW,CAAC;AAEnB,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAG9C,YAAY,EACV,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,eAAe,CAAC"}
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Perms domain — projection read: `GET /api/v1/people/access/audit`.
3
+ *
4
+ * Composes catalog_revision + scope_exception × engine grant rows (live
5
+ * engine `user_roles` joined with `effective_permissions`) into a single
6
+ * Q-A/Q-B answer — see api_references §6.1.
7
+ *
8
+ * Performance target: <2s @ 10K users (FR-007e). Field→FAP group mapping is
9
+ * caller-provided (OQ-5 — see data-design §3.7a).
10
+ */
11
+ export interface PeopleAccessAuditQuery {
12
+ mode: 'who-has-permission' | 'who-can-see-field';
13
+ /** Q-A (permission key) | Q-B (field key) — required for the chosen mode. */
14
+ target?: string;
15
+ field?: string;
16
+ record?: string;
17
+ /** Optional filters, live since FEAT-008 shipped (api_references §6.1). */
18
+ assignmentType?: string;
19
+ purpose?: string;
20
+ }
21
+ export interface PeopleAccessAuditItemBase {
22
+ subject: string;
23
+ }
24
+ /** Q-A item: subjects + roles + scopeRefs + assignmentType/purpose. */
25
+ export interface PeopleAccessAuditItemQa extends PeopleAccessAuditItemBase {
26
+ roles: string[];
27
+ scopeRefs: string[];
28
+ /** Live FEAT-008 provenance (registry §3.21 — read from the
29
+ * `user_roles.metadata` block `grant_reflect` writes); `null` for
30
+ * engine-native grants the pack never touched. */
31
+ assignmentType: 'manual' | 'birthright' | 'requested' | 'emergency' | null;
32
+ purpose: 'standard' | 'acting' | null;
33
+ }
34
+ /** Q-B item: permission ∩ data-scope ∩ FAP fieldGroup AND with blockedBy. */
35
+ export interface PeopleAccessAuditItemQb extends PeopleAccessAuditItemBase {
36
+ allowed: boolean;
37
+ blockedBy: 'permission' | 'scope' | 'fap';
38
+ maskLevel?: 'hidden' | 'partial' | 'full';
39
+ }
40
+ export type PeopleAccessAuditItem = PeopleAccessAuditItemQa | PeopleAccessAuditItemQb;
41
+ export interface PeopleAccessAuditResult {
42
+ mode: PeopleAccessAuditQuery['mode'];
43
+ count: number;
44
+ items: PeopleAccessAuditItem[];
45
+ durationMs: number;
46
+ }
47
+ //# sourceMappingURL=projections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projections.d.ts","sourceRoot":"","sources":["../../../../src/services/people/perms/projections.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,oBAAoB,GAAG,mBAAmB,CAAC;IACjD,6EAA6E;IAC7E,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2EAA2E;IAC3E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,uEAAuE;AACvE,MAAM,WAAW,uBAAwB,SAAQ,yBAAyB;IACxE,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB;;uDAEmD;IACnD,cAAc,EAAE,QAAQ,GAAG,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,IAAI,CAAC;IAC3E,OAAO,EAAE,UAAU,GAAG,QAAQ,GAAG,IAAI,CAAC;CACvC;AAED,6EAA6E;AAC7E,MAAM,WAAW,uBAAwB,SAAQ,yBAAyB;IACxE,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,YAAY,GAAG,OAAO,GAAG,KAAK,CAAC;IAC1C,SAAS,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;CAC3C;AAED,MAAM,MAAM,qBAAqB,GAAG,uBAAuB,GAAG,uBAAuB,CAAC;AAEtF,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,qBAAqB,EAAE,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,154 @@
1
+ import { ActionResponse } from '../../content/content.type';
2
+ import { PeopleActionOpts } from '../shared.types';
3
+ import { InvokeDeps } from '../_invoke';
4
+ import { PeopleProcessDefinition, PeopleRequestTypeDefinition } from './ct.types';
5
+ /** `edit_request_type` — draft/validated only; replaces `definition` and
6
+ * re-stamps the canonical hash (validated → draft). */
7
+ export interface PeopleEditRequestTypeParams {
8
+ definition: PeopleRequestTypeDefinition;
9
+ }
10
+ /** `safe_test_request_type` — sandbox scenario through the pure S1–S14
11
+ * chain with simulated capabilities; no production mutation, no git effect,
12
+ * no row state change. */
13
+ export interface PeopleSafeTestRequestTypeParams {
14
+ scenario?: Record<string, unknown>;
15
+ }
16
+ /** `edit_policy` — human face takes title/body; machine face takes `artifact`. */
17
+ export interface PeopleEditPolicyParams {
18
+ kind?: 'document' | 'process-composition' | 'cross-domain-automation' | 'settings-guardrails' | (string & {});
19
+ policyKey?: string;
20
+ /** Human face (`kind: document`). */
21
+ title?: string;
22
+ body?: Record<string, unknown>;
23
+ audience?: string;
24
+ scope?: string;
25
+ /** Machine face — the authored artifact tree (rides the row, drift D-5). */
26
+ artifact?: Record<string, unknown>;
27
+ }
28
+ /** `publish_policy` — `confirmImpact: true` required when consumers hold the
29
+ * old version (impact warning). */
30
+ export interface PeoplePublishPolicyParams {
31
+ confirmImpact?: boolean;
32
+ }
33
+ /** `archive_policy` — `purge: true` on a referenced version ⇒
34
+ * `PEOPLE_POLICY_VERSION_REFERENCED`. */
35
+ export interface PeopleArchivePolicyParams {
36
+ purge?: boolean;
37
+ }
38
+ /** `toggle_policy` — machine face only: artifact-level `enabled` OR one
39
+ * composition entry override. Structural fields ⇒ `PEOPLE_POLICY_TOGGLE_INVALID`. */
40
+ export interface PeopleTogglePolicyParams {
41
+ enabled: boolean;
42
+ entryKey?: string;
43
+ }
44
+ /** `toggle_glue_rule` — optional operator reason (incident bookkeeping). */
45
+ export interface PeopleToggleGlueRuleParams {
46
+ reason?: string;
47
+ }
48
+ /** `runtime_request.create` — 7-step creation; snapshot pin at creation;
49
+ * idempotent by `idempotencyKey` (RC-10 — pass a FRESH key per user submit). */
50
+ export interface PeopleRuntimeRequestCreateParams {
51
+ input: unknown;
52
+ subjectRef: string;
53
+ requesterRef?: string;
54
+ idempotencyKey?: string;
55
+ }
56
+ /** `edit_process` — draft rows only (published immutable, DC-06); replaces
57
+ * the authored tree and re-stamps the canonical hash. */
58
+ export interface PeopleEditProcessParams {
59
+ definition: PeopleProcessDefinition;
60
+ repoRef?: string;
61
+ artifactPath?: string;
62
+ }
63
+ /** `publish_process` — `confirmImpact: true` required when instances still
64
+ * pin the previous version (RT-21 impact warning). */
65
+ export interface PeoplePublishProcessParams {
66
+ confirmImpact?: boolean;
67
+ repoRef?: string;
68
+ }
69
+ /** `supersede_process` — same impact belt as publish. */
70
+ export interface PeopleSupersedeProcessParams {
71
+ confirmImpact?: boolean;
72
+ reason?: string;
73
+ }
74
+ /** `decommission_process` — tombstone after supersede (DC-05). */
75
+ export interface PeopleDecommissionProcessParams {
76
+ reason?: string;
77
+ }
78
+ /** `create_process` FACTORY — draft instance under the one-active-per-
79
+ * (type, subject) guard; deferrals recordable only BEFORE start (US2). */
80
+ export interface PeopleCreateProcessParams {
81
+ typeKey: string;
82
+ subjectRef: string;
83
+ deferDecisions?: Record<string, boolean>;
84
+ }
85
+ /** `cancel_process` — US6 controlled cancel; everything produced LISTED. */
86
+ export interface PeopleCancelProcessParams {
87
+ reason?: string;
88
+ }
89
+ export interface ProcessActions {
90
+ /** FEAT-010 — request_type authoring: edit → validate → safe-test → publish. */
91
+ readonly reqType: {
92
+ edit(uuid: string, params: PeopleEditRequestTypeParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
93
+ validate(uuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
94
+ safeTest(uuid: string, params?: PeopleSafeTestRequestTypeParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
95
+ publish(uuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
96
+ supersede(uuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
97
+ decommission(uuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
98
+ verify(uuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
99
+ };
100
+ /** FEAT-010 — registered capability catalogue (9-field contract guard). */
101
+ readonly capability: {
102
+ publish(uuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
103
+ supersede(uuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
104
+ };
105
+ /** FEAT-011 — policy registry handle (two faces, one artifact, one version). */
106
+ readonly policy: {
107
+ edit(uuid: string, params: PeopleEditPolicyParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
108
+ validate(uuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
109
+ publish(uuid: string, params?: PeoplePublishPolicyParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
110
+ supersede(uuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
111
+ archive(uuid: string, params?: PeopleArchivePolicyParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
112
+ restore(uuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
113
+ toggle(uuid: string, params: PeopleTogglePolicyParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
114
+ verify(uuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
115
+ };
116
+ /** FEAT-011 — glue_rule handle: the ONLY instant operational toggle (DC-06). */
117
+ readonly glueRule: {
118
+ toggle(uuid: string, params?: PeopleToggleGlueRuleParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
119
+ verify(uuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
120
+ };
121
+ /** FEAT-010 runtime on GENERATED per-flow CTs — needs the FEAT-015
122
+ * registration path before row-scoped invocation works end-to-end. */
123
+ readonly runtimeRequest: {
124
+ /** Factory via the meta-CT alias: `POST
125
+ * /content/types/request_type/actions/runtime_request.create`. */
126
+ create(typeKey: string, params: PeopleRuntimeRequestCreateParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
127
+ /** Row action with a DYNAMIC key authored in the definition — runs the
128
+ * canonical S1–S14 chain (RT-01..07 ⇒ `PEOPLE_REQ_*`). */
129
+ invokeAction(uuid: string, actionKey: string, params?: Record<string, unknown>, opts?: PeopleActionOpts): Promise<ActionResponse>;
130
+ };
131
+ /** FEAT-014 — process_type definition lane (US1): edit → validate →
132
+ * publish → supersede/decommission, plus the verify badge (US10). */
133
+ readonly processType: {
134
+ edit(uuid: string, params: PeopleEditProcessParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
135
+ validate(uuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
136
+ publish(uuid: string, params?: PeoplePublishProcessParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
137
+ supersede(uuid: string, params?: PeopleSupersedeProcessParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
138
+ decommission(uuid: string, params?: PeopleDecommissionProcessParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
139
+ verify(uuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
140
+ };
141
+ /** FEAT-014 — process_instance lifecycle (US2/US4/US6): create (factory)
142
+ * → start → cancel; retry/retry-spawn are the human-only recovery pair. */
143
+ readonly processInstance: {
144
+ /** FACTORY `create_process` on the process_instance CT. */
145
+ create(params: PeopleCreateProcessParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
146
+ start(uuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
147
+ cancel(uuid: string, params?: PeopleCancelProcessParams, opts?: PeopleActionOpts): Promise<ActionResponse>;
148
+ retry(uuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
149
+ /** Degraded recovery — only the missing spawn part (PC-06). */
150
+ retrySpawn(uuid: string, opts?: PeopleActionOpts): Promise<ActionResponse>;
151
+ };
152
+ }
153
+ export declare function buildProcessActions(deps: InvokeDeps): ProcessActions;
154
+ //# sourceMappingURL=actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/services/people/process/actions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE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