@zeitvu97/cms-sdk 0.1.0

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 (274) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +478 -0
  3. package/dist/chunks/_shared-48T7q0V3.js +26 -0
  4. package/dist/chunks/_shared-48T7q0V3.js.map +1 -0
  5. package/dist/chunks/auth.constant-DO7ZmsKg.js +68 -0
  6. package/dist/chunks/auth.constant-DO7ZmsKg.js.map +1 -0
  7. package/dist/chunks/mt5Retcode-DlZLQOLA.js +178 -0
  8. package/dist/chunks/mt5Retcode-DlZLQOLA.js.map +1 -0
  9. package/dist/chunks/storage.constant--64BDSPW.js +44 -0
  10. package/dist/chunks/storage.constant--64BDSPW.js.map +1 -0
  11. package/dist/common/constants/auth.constant.d.ts +54 -0
  12. package/dist/common/constants/auth.constant.d.ts.map +1 -0
  13. package/dist/common/constants/bars.constant.d.ts +15 -0
  14. package/dist/common/constants/bars.constant.d.ts.map +1 -0
  15. package/dist/common/constants/content-types.constant.d.ts +29 -0
  16. package/dist/common/constants/content-types.constant.d.ts.map +1 -0
  17. package/dist/common/constants/content.constant.d.ts +114 -0
  18. package/dist/common/constants/content.constant.d.ts.map +1 -0
  19. package/dist/common/constants/executions.constant.d.ts +56 -0
  20. package/dist/common/constants/executions.constant.d.ts.map +1 -0
  21. package/dist/common/constants/gov.constant.d.ts +118 -0
  22. package/dist/common/constants/gov.constant.d.ts.map +1 -0
  23. package/dist/common/constants/history.constant.d.ts +108 -0
  24. package/dist/common/constants/history.constant.d.ts.map +1 -0
  25. package/dist/common/constants/http.constant.d.ts +46 -0
  26. package/dist/common/constants/http.constant.d.ts.map +1 -0
  27. package/dist/common/constants/index.d.ts +16 -0
  28. package/dist/common/constants/index.d.ts.map +1 -0
  29. package/dist/common/constants/kalshi.constant.d.ts +35 -0
  30. package/dist/common/constants/kalshi.constant.d.ts.map +1 -0
  31. package/dist/common/constants/llm.constant.d.ts +37 -0
  32. package/dist/common/constants/llm.constant.d.ts.map +1 -0
  33. package/dist/common/constants/mt5-action.constant.d.ts +131 -0
  34. package/dist/common/constants/mt5-action.constant.d.ts.map +1 -0
  35. package/dist/common/constants/mt5.constant.d.ts +254 -0
  36. package/dist/common/constants/mt5.constant.d.ts.map +1 -0
  37. package/dist/common/constants/notifications.constant.d.ts +45 -0
  38. package/dist/common/constants/notifications.constant.d.ts.map +1 -0
  39. package/dist/common/constants/people.constant.d.ts +269 -0
  40. package/dist/common/constants/people.constant.d.ts.map +1 -0
  41. package/dist/common/constants/rules.constant.d.ts +14 -0
  42. package/dist/common/constants/rules.constant.d.ts.map +1 -0
  43. package/dist/common/constants/settings.constant.d.ts +17 -0
  44. package/dist/common/constants/settings.constant.d.ts.map +1 -0
  45. package/dist/common/constants/sort.constant.d.ts +14 -0
  46. package/dist/common/constants/sort.constant.d.ts.map +1 -0
  47. package/dist/common/constants/storage.constant.d.ts +74 -0
  48. package/dist/common/constants/storage.constant.d.ts.map +1 -0
  49. package/dist/common/helpers/format.d.ts +7 -0
  50. package/dist/common/helpers/format.d.ts.map +1 -0
  51. package/dist/common/helpers/format.js +20 -0
  52. package/dist/common/helpers/format.js.map +1 -0
  53. package/dist/common/helpers/mt5Retcode.d.ts +18 -0
  54. package/dist/common/helpers/mt5Retcode.d.ts.map +1 -0
  55. package/dist/common/helpers/mt5Retcode.js +2 -0
  56. package/dist/common/helpers/mt5Retcode.js.map +1 -0
  57. package/dist/common/utils/case.d.ts +12 -0
  58. package/dist/common/utils/case.d.ts.map +1 -0
  59. package/dist/common/utils/clone.d.ts +9 -0
  60. package/dist/common/utils/clone.d.ts.map +1 -0
  61. package/dist/composables/cbsStateKey.d.ts +27 -0
  62. package/dist/composables/cbsStateKey.d.ts.map +1 -0
  63. package/dist/core/createApi.d.ts +69 -0
  64. package/dist/core/createApi.d.ts.map +1 -0
  65. package/dist/core/createCmsSDK.d.ts +19 -0
  66. package/dist/core/createCmsSDK.d.ts.map +1 -0
  67. package/dist/core/credentials/TokenManager.d.ts +38 -0
  68. package/dist/core/credentials/TokenManager.d.ts.map +1 -0
  69. package/dist/core/credentials/credential.type.d.ts +16 -0
  70. package/dist/core/credentials/credential.type.d.ts.map +1 -0
  71. package/dist/core/credentials/resolveStorage.d.ts +6 -0
  72. package/dist/core/credentials/resolveStorage.d.ts.map +1 -0
  73. package/dist/core/credentials/storages/cookieStorage.d.ts +18 -0
  74. package/dist/core/credentials/storages/cookieStorage.d.ts.map +1 -0
  75. package/dist/core/credentials/storages/localStorageAdapter.d.ts +8 -0
  76. package/dist/core/credentials/storages/localStorageAdapter.d.ts.map +1 -0
  77. package/dist/core/credentials/storages/memoryStorage.d.ts +7 -0
  78. package/dist/core/credentials/storages/memoryStorage.d.ts.map +1 -0
  79. package/dist/core/errors.d.ts +26 -0
  80. package/dist/core/errors.d.ts.map +1 -0
  81. package/dist/core/sdk.type.d.ts +115 -0
  82. package/dist/core/sdk.type.d.ts.map +1 -0
  83. package/dist/core/ws/createEaeraWebSocket.d.ts +21 -0
  84. package/dist/core/ws/createEaeraWebSocket.d.ts.map +1 -0
  85. package/dist/core/ws/index.d.ts +4 -0
  86. package/dist/core/ws/index.d.ts.map +1 -0
  87. package/dist/core/ws/ws.constants.d.ts +246 -0
  88. package/dist/core/ws/ws.constants.d.ts.map +1 -0
  89. package/dist/core/ws/ws.events.d.ts +264 -0
  90. package/dist/core/ws/ws.events.d.ts.map +1 -0
  91. package/dist/core/ws/ws.type.d.ts +225 -0
  92. package/dist/core/ws/ws.type.d.ts.map +1 -0
  93. package/dist/index.d.ts +130 -0
  94. package/dist/index.d.ts.map +1 -0
  95. package/dist/index.js +8416 -0
  96. package/dist/index.js.map +1 -0
  97. package/dist/nuxt.d.ts +49 -0
  98. package/dist/nuxt.d.ts.map +1 -0
  99. package/dist/nuxt.js +47 -0
  100. package/dist/nuxt.js.map +1 -0
  101. package/dist/runtime/plugin.d.ts +6 -0
  102. package/dist/runtime/plugin.js +188 -0
  103. package/dist/runtime/plugin.js.map +1 -0
  104. package/dist/server/auth/cbs-callback.post.js +42 -0
  105. package/dist/server/auth/cbs-callback.post.js.map +1 -0
  106. package/dist/server/auth/cbs-start.post.js +34 -0
  107. package/dist/server/auth/cbs-start.post.js.map +1 -0
  108. package/dist/server/auth/idp-callback.get.js +52 -0
  109. package/dist/server/auth/idp-callback.get.js.map +1 -0
  110. package/dist/server/auth/idp-link.post.js +38 -0
  111. package/dist/server/auth/idp-link.post.js.map +1 -0
  112. package/dist/server/auth/idp-login.get.js +42 -0
  113. package/dist/server/auth/idp-login.get.js.map +1 -0
  114. package/dist/server/auth/idp-unlink.delete.js +38 -0
  115. package/dist/server/auth/idp-unlink.delete.js.map +1 -0
  116. package/dist/server/auth/login.post.js +42 -0
  117. package/dist/server/auth/login.post.js.map +1 -0
  118. package/dist/server/auth/logout.post.js +31 -0
  119. package/dist/server/auth/logout.post.js.map +1 -0
  120. package/dist/server/auth/refresh.post.js +46 -0
  121. package/dist/server/auth/refresh.post.js.map +1 -0
  122. package/dist/server/clear-token.delete.js +12 -0
  123. package/dist/server/clear-token.delete.js.map +1 -0
  124. package/dist/server/persist.post.js +31 -0
  125. package/dist/server/persist.post.js.map +1 -0
  126. package/dist/server/set-token.post.js +27 -0
  127. package/dist/server/set-token.post.js.map +1 -0
  128. package/dist/services/auth/auth.type.d.ts +66 -0
  129. package/dist/services/auth/auth.type.d.ts.map +1 -0
  130. package/dist/services/auth/index.d.ts +127 -0
  131. package/dist/services/auth/index.d.ts.map +1 -0
  132. package/dist/services/auth/mock.d.ts +13 -0
  133. package/dist/services/auth/mock.d.ts.map +1 -0
  134. package/dist/services/bars/bars.type.d.ts +78 -0
  135. package/dist/services/bars/bars.type.d.ts.map +1 -0
  136. package/dist/services/bars/index.d.ts +24 -0
  137. package/dist/services/bars/index.d.ts.map +1 -0
  138. package/dist/services/bars/mock.d.ts +23 -0
  139. package/dist/services/bars/mock.d.ts.map +1 -0
  140. package/dist/services/content/content.type.d.ts +832 -0
  141. package/dist/services/content/content.type.d.ts.map +1 -0
  142. package/dist/services/content/filter.d.ts +46 -0
  143. package/dist/services/content/filter.d.ts.map +1 -0
  144. package/dist/services/content/index.d.ts +35 -0
  145. package/dist/services/content/index.d.ts.map +1 -0
  146. package/dist/services/content/mock.d.ts +16 -0
  147. package/dist/services/content/mock.d.ts.map +1 -0
  148. package/dist/services/content-types/content-types.type.d.ts +70 -0
  149. package/dist/services/content-types/content-types.type.d.ts.map +1 -0
  150. package/dist/services/content-types/index.d.ts +18 -0
  151. package/dist/services/content-types/index.d.ts.map +1 -0
  152. package/dist/services/content-types/mock.d.ts +15 -0
  153. package/dist/services/content-types/mock.d.ts.map +1 -0
  154. package/dist/services/executions/executions.type.d.ts +67 -0
  155. package/dist/services/executions/executions.type.d.ts.map +1 -0
  156. package/dist/services/executions/index.d.ts +30 -0
  157. package/dist/services/executions/index.d.ts.map +1 -0
  158. package/dist/services/executions/mock.d.ts +29 -0
  159. package/dist/services/executions/mock.d.ts.map +1 -0
  160. package/dist/services/gov/gov.type.d.ts +740 -0
  161. package/dist/services/gov/gov.type.d.ts.map +1 -0
  162. package/dist/services/gov/index.d.ts +84 -0
  163. package/dist/services/gov/index.d.ts.map +1 -0
  164. package/dist/services/history/history.type.d.ts +167 -0
  165. package/dist/services/history/history.type.d.ts.map +1 -0
  166. package/dist/services/history/index.d.ts +38 -0
  167. package/dist/services/history/index.d.ts.map +1 -0
  168. package/dist/services/history/mock.d.ts +21 -0
  169. package/dist/services/history/mock.d.ts.map +1 -0
  170. package/dist/services/kalshi/index.d.ts +19 -0
  171. package/dist/services/kalshi/index.d.ts.map +1 -0
  172. package/dist/services/kalshi/kalshi.type.d.ts +99 -0
  173. package/dist/services/kalshi/kalshi.type.d.ts.map +1 -0
  174. package/dist/services/kalshi/mock.d.ts +5 -0
  175. package/dist/services/kalshi/mock.d.ts.map +1 -0
  176. package/dist/services/llm/index.d.ts +38 -0
  177. package/dist/services/llm/index.d.ts.map +1 -0
  178. package/dist/services/llm/llm.type.d.ts +106 -0
  179. package/dist/services/llm/llm.type.d.ts.map +1 -0
  180. package/dist/services/notifications/index.d.ts +38 -0
  181. package/dist/services/notifications/index.d.ts.map +1 -0
  182. package/dist/services/notifications/mock.d.ts +39 -0
  183. package/dist/services/notifications/mock.d.ts.map +1 -0
  184. package/dist/services/notifications/notifications.type.d.ts +75 -0
  185. package/dist/services/notifications/notifications.type.d.ts.map +1 -0
  186. package/dist/services/people/_invoke.d.ts +26 -0
  187. package/dist/services/people/_invoke.d.ts.map +1 -0
  188. package/dist/services/people/copilot/index.d.ts +132 -0
  189. package/dist/services/people/copilot/index.d.ts.map +1 -0
  190. package/dist/services/people/identity/actions.d.ts +116 -0
  191. package/dist/services/people/identity/actions.d.ts.map +1 -0
  192. package/dist/services/people/identity/ct.types.d.ts +133 -0
  193. package/dist/services/people/identity/ct.types.d.ts.map +1 -0
  194. package/dist/services/people/identity/index.d.ts +14 -0
  195. package/dist/services/people/identity/index.d.ts.map +1 -0
  196. package/dist/services/people/identity/projections.d.ts +63 -0
  197. package/dist/services/people/identity/projections.d.ts.map +1 -0
  198. package/dist/services/people/index.d.ts +31 -0
  199. package/dist/services/people/index.d.ts.map +1 -0
  200. package/dist/services/people/legal/actions.d.ts +161 -0
  201. package/dist/services/people/legal/actions.d.ts.map +1 -0
  202. package/dist/services/people/legal/ct.types.d.ts +186 -0
  203. package/dist/services/people/legal/ct.types.d.ts.map +1 -0
  204. package/dist/services/people/legal/index.d.ts +15 -0
  205. package/dist/services/people/legal/index.d.ts.map +1 -0
  206. package/dist/services/people/packops/index.d.ts +70 -0
  207. package/dist/services/people/packops/index.d.ts.map +1 -0
  208. package/dist/services/people/packops/packops.type.d.ts +183 -0
  209. package/dist/services/people/packops/packops.type.d.ts.map +1 -0
  210. package/dist/services/people/perms/actions.d.ts +214 -0
  211. package/dist/services/people/perms/actions.d.ts.map +1 -0
  212. package/dist/services/people/perms/ct.types.d.ts +140 -0
  213. package/dist/services/people/perms/ct.types.d.ts.map +1 -0
  214. package/dist/services/people/perms/index.d.ts +14 -0
  215. package/dist/services/people/perms/index.d.ts.map +1 -0
  216. package/dist/services/people/perms/projections.d.ts +47 -0
  217. package/dist/services/people/perms/projections.d.ts.map +1 -0
  218. package/dist/services/people/process/actions.d.ts +154 -0
  219. package/dist/services/people/process/actions.d.ts.map +1 -0
  220. package/dist/services/people/process/ct.types.d.ts +304 -0
  221. package/dist/services/people/process/ct.types.d.ts.map +1 -0
  222. package/dist/services/people/process/index.d.ts +12 -0
  223. package/dist/services/people/process/index.d.ts.map +1 -0
  224. package/dist/services/people/shared.types.d.ts +36 -0
  225. package/dist/services/people/shared.types.d.ts.map +1 -0
  226. package/dist/services/rules/conditions.d.ts +264 -0
  227. package/dist/services/rules/conditions.d.ts.map +1 -0
  228. package/dist/services/rules/index.d.ts +49 -0
  229. package/dist/services/rules/index.d.ts.map +1 -0
  230. package/dist/services/rules/llm-rule.constant.d.ts +84 -0
  231. package/dist/services/rules/llm-rule.constant.d.ts.map +1 -0
  232. package/dist/services/rules/mock.d.ts +20 -0
  233. package/dist/services/rules/mock.d.ts.map +1 -0
  234. package/dist/services/rules/rules.type.d.ts +262 -0
  235. package/dist/services/rules/rules.type.d.ts.map +1 -0
  236. package/dist/services/rules/triggers.d.ts +140 -0
  237. package/dist/services/rules/triggers.d.ts.map +1 -0
  238. package/dist/services/settings/index.d.ts +36 -0
  239. package/dist/services/settings/index.d.ts.map +1 -0
  240. package/dist/services/settings/mock.d.ts +14 -0
  241. package/dist/services/settings/mock.d.ts.map +1 -0
  242. package/dist/services/settings/settings.type.d.ts +39 -0
  243. package/dist/services/settings/settings.type.d.ts.map +1 -0
  244. package/dist/stores/auth.d.ts +192 -0
  245. package/dist/stores/auth.d.ts.map +1 -0
  246. package/dist/stores/bars.d.ts +288 -0
  247. package/dist/stores/bars.d.ts.map +1 -0
  248. package/dist/stores/content.d.ts +4101 -0
  249. package/dist/stores/content.d.ts.map +1 -0
  250. package/dist/stores/executions.d.ts +249 -0
  251. package/dist/stores/executions.d.ts.map +1 -0
  252. package/dist/stores/gov.d.ts +238 -0
  253. package/dist/stores/gov.d.ts.map +1 -0
  254. package/dist/stores/history.d.ts +833 -0
  255. package/dist/stores/history.d.ts.map +1 -0
  256. package/dist/stores/index.d.ts +15 -0
  257. package/dist/stores/index.d.ts.map +1 -0
  258. package/dist/stores/kalshi.d.ts +728 -0
  259. package/dist/stores/kalshi.d.ts.map +1 -0
  260. package/dist/stores/llm-providers.d.ts +97 -0
  261. package/dist/stores/llm-providers.d.ts.map +1 -0
  262. package/dist/stores/llm.d.ts +102 -0
  263. package/dist/stores/llm.d.ts.map +1 -0
  264. package/dist/stores/people.d.ts +596 -0
  265. package/dist/stores/people.d.ts.map +1 -0
  266. package/dist/stores/persist.d.ts +58 -0
  267. package/dist/stores/persist.d.ts.map +1 -0
  268. package/dist/stores/rules.d.ts +485 -0
  269. package/dist/stores/rules.d.ts.map +1 -0
  270. package/dist/stores/settings.d.ts +36 -0
  271. package/dist/stores/settings.d.ts.map +1 -0
  272. package/dist/stores/ws.d.ts +66 -0
  273. package/dist/stores/ws.d.ts.map +1 -0
  274. package/package.json +90 -0
@@ -0,0 +1,254 @@
1
+ /**
2
+ * MT5 domain constants.
3
+ *
4
+ * `MT5_SERVER_NAME` is the wire-format broker server name used to construct
5
+ * WS topics (`symbol:<server>:<SYMBOL>`, `mt5:events:<server>:<type>`).
6
+ * The literal value is significant — a server-segment mismatch in any
7
+ * topic receives ZERO events [ws§6.2].
8
+ *
9
+ * In production the server name is `EAERA MT5 - Live` (3 spaces, 2 dashes).
10
+ * Override per-env by setting `runtimeConfig.public.mt5ServerName` and
11
+ * reading it through a CMS-derived accessor; this constant is the FE
12
+ * fallback / default for clients that don't override.
13
+ */
14
+ export declare const MT5_SERVER_NAME = "EAERA MT5 - Live";
15
+ export type MT5ServerName = typeof MT5_SERVER_NAME;
16
+ /** Chart interval enum from BE §4.6 (Mt5ChartBar.data.interval). */
17
+ export declare const MT5_INTERVAL: {
18
+ readonly M1: "M1";
19
+ readonly M5: "M5";
20
+ readonly M15: "M15";
21
+ readonly M30: "M30";
22
+ readonly H1: "H1";
23
+ readonly H4: "H4";
24
+ readonly D1: "D1";
25
+ readonly W1: "W1";
26
+ readonly MN1: "MN1";
27
+ };
28
+ export type MT5Interval = (typeof MT5_INTERVAL)[keyof typeof MT5_INTERVAL];
29
+ /** `MT5Account.data.status` lifecycle enum from BE §4.2. */
30
+ export declare const MT5_ACCOUNT_STATUS: {
31
+ readonly ACTIVE: "active";
32
+ readonly DISABLED: "disabled";
33
+ readonly CLOSED: "closed";
34
+ };
35
+ export type MT5AccountStatus = (typeof MT5_ACCOUNT_STATUS)[keyof typeof MT5_ACCOUNT_STATUS];
36
+ /** MT5 `order_type` int code → human string. From ws-guide §9.5. */
37
+ export declare const MT5_ORDER_TYPE: {
38
+ readonly BUY: 0;
39
+ readonly SELL: 1;
40
+ readonly BUY_LIMIT: 2;
41
+ readonly SELL_LIMIT: 3;
42
+ readonly BUY_STOP: 4;
43
+ readonly SELL_STOP: 5;
44
+ readonly BUY_STOP_LIMIT: 6;
45
+ readonly SELL_STOP_LIMIT: 7;
46
+ };
47
+ export type MT5OrderTypeCode = (typeof MT5_ORDER_TYPE)[keyof typeof MT5_ORDER_TYPE];
48
+ /** `IMTConCommTier::EnCommissionMode` — commission charge unit. */
49
+ export declare const MT5_COMMISSION_MODE: {
50
+ readonly MONEY_DEPOSIT: 0;
51
+ readonly MONEY_SYMBOL_BASE: 1;
52
+ readonly MONEY_SYMBOL_PROFIT: 2;
53
+ readonly MONEY_SYMBOL_MARGIN: 3;
54
+ readonly PIPS: 4;
55
+ readonly PERCENT: 5;
56
+ readonly MONEY_SPECIFIED: 6;
57
+ readonly PERCENT_PROFIT: 7;
58
+ };
59
+ export type MT5CommissionMode = (typeof MT5_COMMISSION_MODE)[keyof typeof MT5_COMMISSION_MODE];
60
+ /** `IMTConCommTier::EnCommissionVolumeType` — commission volume basis. */
61
+ export declare const MT5_COMMISSION_VOLUME_TYPE: {
62
+ readonly DEAL: 0;
63
+ readonly VOLUME: 1;
64
+ };
65
+ export type MT5CommissionVolumeType = (typeof MT5_COMMISSION_VOLUME_TYPE)[keyof typeof MT5_COMMISSION_VOLUME_TYPE];
66
+ /** MT5 `state` int code → human string. From ws-guide §9.5. */
67
+ export declare const MT5_ORDER_STATE: {
68
+ readonly STARTED: 0;
69
+ readonly PLACED: 1;
70
+ readonly CANCELED: 2;
71
+ readonly PARTIAL: 3;
72
+ readonly FILLED: 4;
73
+ readonly REJECTED: 5;
74
+ readonly EXPIRED: 6;
75
+ readonly REQUEST_ADD: 7;
76
+ readonly REQUEST_MODIFY: 8;
77
+ readonly REQUEST_CANCEL: 9;
78
+ };
79
+ export type MT5OrderStateCode = (typeof MT5_ORDER_STATE)[keyof typeof MT5_ORDER_STATE];
80
+ /**
81
+ * Wire-decoded MT5 order-state STRINGS (`state_str`).
82
+ *
83
+ * The numeric `MT5_ORDER_STATE` codes are the broker-side representation;
84
+ * the BE decodes them into these string labels and ships them on the wire
85
+ * (see `Mt5OrderHistoryData.status` and the WS `state_str` field on order
86
+ * events). Distinct from `HISTORY_ORDER_STATUS` which is the *terminal*
87
+ * subset the history endpoint surfaces (and uses UK-spelled `CANCELLED`).
88
+ */
89
+ export declare const MT5_ORDER_STATE_NAME: {
90
+ readonly STARTED: "STARTED";
91
+ readonly PLACED: "PLACED";
92
+ readonly CANCELED: "CANCELED";
93
+ readonly PARTIAL: "PARTIAL";
94
+ readonly FILLED: "FILLED";
95
+ readonly REJECTED: "REJECTED";
96
+ readonly EXPIRED: "EXPIRED";
97
+ readonly REQUEST_ADD: "REQUEST_ADD";
98
+ readonly REQUEST_MODIFY: "REQUEST_MODIFY";
99
+ readonly REQUEST_CANCEL: "REQUEST_CANCEL";
100
+ };
101
+ export type MT5OrderStateName = (typeof MT5_ORDER_STATE_NAME)[keyof typeof MT5_ORDER_STATE_NAME];
102
+ /**
103
+ * Escape hatch for the WS `state_str` decoder path: the broker can in
104
+ * principle ship an unknown label, so consumers comparing against
105
+ * `stateStr` should widen to `MT5OrderStateNameOrUnknown` rather than the
106
+ * strict union.
107
+ */
108
+ export type MT5OrderStateNameOrUnknown = MT5OrderStateName | (string & {});
109
+ /**
110
+ * Normalized order-kind categories used in CMS DTOs (`Mt5OrderHistoryData.type`,
111
+ * `OrderHistoryItem.type`, trading-mock stores). Distinct from the numeric
112
+ * `MT5_ORDER_TYPE` codes — these are the FE-facing names the CMS
113
+ * decodes to.
114
+ */
115
+ export declare const MT5_ORDER_KIND: {
116
+ readonly MARKET: "MARKET";
117
+ readonly LIMIT: "LIMIT";
118
+ readonly STOP: "STOP";
119
+ readonly STOP_LIMIT: "STOP_LIMIT";
120
+ };
121
+ export type MT5OrderKind = (typeof MT5_ORDER_KIND)[keyof typeof MT5_ORDER_KIND];
122
+ /**
123
+ * Order time-in-force / duration (`Mt5OrderHistoryData.duration`, action
124
+ * `place_order.duration`). FE-facing labels — distinct from any numeric
125
+ * broker codes.
126
+ */
127
+ export declare const MT5_ORDER_DURATION: {
128
+ readonly DAY: "DAY";
129
+ readonly GTC: "GTC";
130
+ readonly SPECIFIED: "SPECIFIED";
131
+ readonly SPECIFIED_DAY: "SPECIFIED_DAY";
132
+ };
133
+ export type MT5OrderDuration = (typeof MT5_ORDER_DURATION)[keyof typeof MT5_ORDER_DURATION];
134
+ /**
135
+ * Domain-neutral trade side (`BUY` / `SELL`). Distinct from
136
+ * `MT5_POSITION_TYPE` (which has the same values but is position-scoped
137
+ * in its name) — `MT5_TRADE_SIDE` is for order `side`, deal `action`,
138
+ * and tick `side` fields that all carry the same two-value vocabulary.
139
+ */
140
+ export declare const MT5_TRADE_SIDE: {
141
+ readonly BUY: "BUY";
142
+ readonly SELL: "SELL";
143
+ };
144
+ export type MT5TradeSide = (typeof MT5_TRADE_SIDE)[keyof typeof MT5_TRADE_SIDE];
145
+ /** Position-type enum (`BUY` / `SELL`). From BE ws-guide appendix A.3. */
146
+ export declare const MT5_POSITION_TYPE: {
147
+ readonly BUY: "BUY";
148
+ readonly SELL: "SELL";
149
+ };
150
+ export type MT5PositionType = MT5TradeSide;
151
+ /** Deal-entry enum (`IN` / `OUT` / `INOUT` / `OUT_BY`). From BE ws-guide appendix A.4. */
152
+ export declare const MT5_DEAL_ENTRY: {
153
+ readonly IN: "IN";
154
+ readonly OUT: "OUT";
155
+ readonly INOUT: "INOUT";
156
+ readonly OUT_BY: "OUT_BY";
157
+ };
158
+ export type MT5DealEntry = (typeof MT5_DEAL_ENTRY)[keyof typeof MT5_DEAL_ENTRY];
159
+ /** `Mt5Symbol.data.trade_mode` enum. From BE §4.3. */
160
+ export declare const MT5_TRADE_MODE: {
161
+ readonly FULL: "full";
162
+ readonly LONG_ONLY: "long_only";
163
+ readonly SHORT_ONLY: "short_only";
164
+ readonly CLOSE_ONLY: "close_only";
165
+ readonly DISABLED: "disabled";
166
+ };
167
+ export type MT5TradeMode = (typeof MT5_TRADE_MODE)[keyof typeof MT5_TRADE_MODE];
168
+ /** `Mt5Symbol.data.market_status` enum. From BE §4.3. */
169
+ export declare const MT5_MARKET_STATUS: {
170
+ readonly ACTIVE: "active";
171
+ readonly MARKET_CLOSED: "market-closed";
172
+ readonly EXPIRED: "expired";
173
+ readonly NOT_TRADABLE_YET: "not-tradable-yet";
174
+ };
175
+ export type MT5MarketStatus = (typeof MT5_MARKET_STATUS)[keyof typeof MT5_MARKET_STATUS];
176
+ /** `Mt5Symbol.data.execution_mode` enum. From BE §4.3. */
177
+ export declare const MT5_EXECUTION_MODE: {
178
+ readonly MARKET: "market";
179
+ readonly EXCHANGE: "exchange";
180
+ readonly REQUEST: "request";
181
+ readonly INSTANT: "instant";
182
+ };
183
+ export type MT5ExecutionMode = (typeof MT5_EXECUTION_MODE)[keyof typeof MT5_EXECUTION_MODE];
184
+ /** `Mt5ChartBar.data.source` enum. From BE §4.6. */
185
+ export declare const MT5_CHART_BAR_SOURCE: {
186
+ readonly LIVE: "live";
187
+ readonly MT5: "mt5";
188
+ readonly CORRECTED: "corrected";
189
+ };
190
+ export type MT5ChartBarSource = (typeof MT5_CHART_BAR_SOURCE)[keyof typeof MT5_CHART_BAR_SOURCE];
191
+ /** `Mt5Server.data.state` lifecycle enum. From BE pack §content_types. */
192
+ export declare const MT5_SERVER_STATE: {
193
+ readonly PENDING: "pending";
194
+ readonly DEPLOYING: "deploying";
195
+ readonly ACTIVE: "active";
196
+ readonly DEGRADED: "degraded";
197
+ readonly STOPPING: "stopping";
198
+ readonly STOPPED: "stopped";
199
+ };
200
+ export type MT5ServerState = (typeof MT5_SERVER_STATE)[keyof typeof MT5_SERVER_STATE];
201
+ /** `Mt5SyncState.data.phase` lifecycle enum. From BE pack §content_types. */
202
+ export declare const MT5_SYNC_PHASE: {
203
+ readonly IDLE: "idle";
204
+ readonly SYNCING: "syncing";
205
+ readonly BACKFILLING: "backfilling";
206
+ readonly PAUSED: "paused";
207
+ readonly FAILED: "failed";
208
+ readonly COMPLETED: "completed";
209
+ };
210
+ export type MT5SyncPhase = (typeof MT5_SYNC_PHASE)[keyof typeof MT5_SYNC_PHASE];
211
+ /**
212
+ * `KalshiServer.data.status` lifecycle enum (FEAT-010). The Kalshi pack
213
+ * registers a different status alphabet from MT5 — kept separate so a
214
+ * global `MT5_SERVER_STATE` search doesn't surface Kalshi rows.
215
+ */
216
+ export declare const KALSHI_SERVER_STATUS: {
217
+ readonly ACTIVE: "active";
218
+ readonly INACTIVE: "inactive";
219
+ readonly ERROR: "error";
220
+ };
221
+ export type KalshiServerStatus = (typeof KALSHI_SERVER_STATUS)[keyof typeof KALSHI_SERVER_STATUS];
222
+ /**
223
+ * `KalshiEvent.data.status` lifecycle (pack §2.2 / §2.4):
224
+ * `open` while any child is active; `finalized` when settled; `closed` otherwise.
225
+ */
226
+ export declare const KALSHI_LIFECYCLE_STATUS: {
227
+ readonly OPEN: "open";
228
+ readonly CLOSED: "closed";
229
+ readonly FINALIZED: "finalized";
230
+ /** @deprecated Use `FINALIZED`. */
231
+ readonly SETTLED: "settled";
232
+ };
233
+ export type KalshiLifecycleStatus = (typeof KALSHI_LIFECYCLE_STATUS)[keyof typeof KALSHI_LIFECYCLE_STATUS];
234
+ /**
235
+ * `KalshiFuture.data.status` lifecycle (pack §2.3 / §2.4):
236
+ * `active → closed → finalized`.
237
+ */
238
+ export declare const KALSHI_FUTURE_STATUS: {
239
+ readonly ACTIVE: "active";
240
+ readonly CLOSED: "closed";
241
+ readonly FINALIZED: "finalized";
242
+ /** @deprecated Use `FINALIZED`. */
243
+ readonly SETTLED: "settled";
244
+ readonly DISABLED: "disabled";
245
+ };
246
+ export type KalshiFutureStatus = (typeof KALSHI_FUTURE_STATUS)[keyof typeof KALSHI_FUTURE_STATUS];
247
+ /** Settled outcome on `KalshiFuture.data.result` (§4.13). */
248
+ export declare const KALSHI_SETTLEMENT_RESULT: {
249
+ readonly YES: "yes";
250
+ readonly NO: "no";
251
+ readonly SCALAR: "scalar";
252
+ };
253
+ export type KalshiSettlementResult = (typeof KALSHI_SETTLEMENT_RESULT)[keyof typeof KALSHI_SETTLEMENT_RESULT];
254
+ //# sourceMappingURL=mt5.constant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mt5.constant.d.ts","sourceRoot":"","sources":["../../../src/common/constants/mt5.constant.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,MAAM,MAAM,aAAa,GAAG,OAAO,eAAe,CAAC;AAEnD,oEAAoE;AACpE,eAAO,MAAM,YAAY;;;;;;;;;;CAUf,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE3E,4DAA4D;AAC5D,eAAO,MAAM,kBAAkB;;;;CAIrB,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC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AAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAEhF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;CAIvB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAElG;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;;;IAIlC,mCAAmC;;CAE3B,CAAC;AACX,MAAM,MAAM,qBAAqB,GAC/B,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC;AAEzE;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;IAI/B,mCAAmC;;;CAG3B,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAElG,6DAA6D;AAC7D,eAAO,MAAM,wBAAwB;;;;CAI3B,CAAC;AACX,MAAM,MAAM,sBAAsB,GAChC,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Notification-template + report-template endpoints (CMS engine-owned).
3
+ *
4
+ * Source of truth: People api_references §7.3 (FEAT-012 — the pack only
5
+ * seeds artifacts; CMS materializes and serves them). Writes require
6
+ * `notify:templates:manage` (catalog published + role assigned, engine E14).
7
+ */
8
+ /** Notification-template lifecycle routes. */
9
+ export declare const NOTIFICATIONS_ENDPOINT: {
10
+ /** `GET/POST /api/v1/notifications/templates` — list versions / create draft. */
11
+ readonly TEMPLATES: "/api/v1/notifications/templates";
12
+ /** `GET/PUT/DELETE /api/v1/notifications/templates/{template_id}` — one version
13
+ * (PUT draft only — enabled/archived return 409; DELETE = soft-archive). */
14
+ readonly template: (templateId: string | number) => string;
15
+ /** `GET /api/v1/notifications/templates/{name}/versions?locale=` — history. */
16
+ readonly templateVersions: (name: string) => string;
17
+ /** `POST /api/v1/notifications/templates/{template_id}/publish` — enable draft
18
+ * + archive the previously enabled version. */
19
+ readonly templatePublish: (templateId: string | number) => string;
20
+ /** `POST /api/v1/notifications/templates/render` — ad-hoc Mustache preview. */
21
+ readonly RENDER: "/api/v1/notifications/templates/render";
22
+ };
23
+ /** Report-template routes (engine CRUD; People seed is pack-managed — read-only for the portal). */
24
+ export declare const REPORT_TEMPLATES_ENDPOINT: {
25
+ readonly BASE: "/api/v1/report-templates";
26
+ readonly detail: (templateId: string | number) => string;
27
+ readonly preview: (templateId: string | number) => string;
28
+ };
29
+ /** `fallback_policy` — how rendering handles a missing locale variant
30
+ * (resolved per recipient: `<name>.<audience>` + locale → base → company
31
+ * default per the persisted policy; never send a wrong-language silently). */
32
+ export declare const NOTIFICATION_FALLBACK_POLICY: {
33
+ readonly FALLBACK: "fallback";
34
+ readonly FALLBACK_WARN: "fallback+warn";
35
+ readonly BLOCK: "block";
36
+ };
37
+ export type NotificationFallbackPolicy = (typeof NOTIFICATION_FALLBACK_POLICY)[keyof typeof NOTIFICATION_FALLBACK_POLICY];
38
+ /** Template-version states — PUT is draft-only; enabled/archived ⇒ 409. */
39
+ export declare const NOTIFICATION_TEMPLATE_STATE: {
40
+ readonly DRAFT: "draft";
41
+ readonly ENABLED: "enabled";
42
+ readonly ARCHIVED: "archived";
43
+ };
44
+ export type NotificationTemplateState = (typeof NOTIFICATION_TEMPLATE_STATE)[keyof typeof NOTIFICATION_TEMPLATE_STATE];
45
+ //# sourceMappingURL=notifications.constant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifications.constant.d.ts","sourceRoot":"","sources":["../../../src/common/constants/notifications.constant.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,8CAA8C;AAC9C,eAAO,MAAM,sBAAsB;IACjC,iFAAiF;;IAEjF;iFAC6E;oCACtD,MAAM,GAAG,MAAM,KAAG,MAAM;IAE/C,+EAA+E;sCACtD,MAAM,KAAG,MAAM;IACxC;oDACgD;2CAClB,MAAM,GAAG,MAAM,KAAG,MAAM;IAEtD,+EAA+E;;CAEvE,CAAC;AAEX,oGAAoG;AACpG,eAAO,MAAM,yBAAyB;;kCAEf,MAAM,GAAG,MAAM,KAAG,MAAM;mCACvB,MAAM,GAAG,MAAM,KAAG,MAAM;CAEtC,CAAC;AAEX;;+EAE+E;AAC/E,eAAO,MAAM,4BAA4B;;;;CAI/B,CAAC;AACX,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC;AAEnF,2EAA2E;AAC3E,eAAO,MAAM,2BAA2B;;;;CAI9B,CAAC;AACX,MAAM,MAAM,yBAAyB,GACnC,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,OAAO,2BAA2B,CAAC,CAAC"}
@@ -0,0 +1,269 @@
1
+ /**
2
+ * People Hub pack (`eaera-people`) — content types, action names, and the
3
+ * portal REST endpoints mounted by the engine.
4
+ *
5
+ * Source of truth:
6
+ * `eaera-docs/company-os/eaera-people/architecture/ct-schema-registry.md` (CT
7
+ * contracts) and `eaera-docs/company-os/eaera-people/be-docs/api_references.md`
8
+ * (endpoint + action contract).
9
+ */
10
+ /** Pack id used with `content.fetchByType({ packId })`. Single source of truth
11
+ * so the stores and services never drift. */
12
+ export declare const PEOPLE_PACK_ID = "eaera-people";
13
+ /**
14
+ * Content Type names registered by the People pack. Wire names match the
15
+ * `name:` field of each `pack/cts/*.yaml` verbatim (snake_case — the unified
16
+ * 2026-09-09 rename, drift D-7). All 27 CTs are IMPLEMENTED (registry §3).
17
+ */
18
+ export declare const PEOPLE_CONTENT_TYPE: {
19
+ readonly LEGAL_ENTITY: "legal_entity";
20
+ readonly REGISTERED_BRANCH: "registered_branch";
21
+ readonly EFFECTIVE_REVISION: "effective_revision";
22
+ readonly CLOSURE_CASE: "closure_case";
23
+ readonly POLICY_ASSIGNMENT: "policy_assignment";
24
+ /** FEAT-011 registry handle — two faces, one artifact (registry §3.6). */
25
+ readonly POLICY: "policy";
26
+ readonly CATALOG_REVISION: "catalog_revision";
27
+ readonly SCOPE_EXCEPTION: "scope_exception";
28
+ readonly PROVIDER_CONFIG: "provider_config";
29
+ readonly PROVISIONING_ITEM: "provisioning_item";
30
+ readonly EXTERNAL_BINDING: "external_binding";
31
+ readonly DRIFT_FINDING: "drift_finding";
32
+ readonly DEPROVISION_PLAN: "deprovision_plan";
33
+ readonly ORG_UNIT: "org_unit";
34
+ readonly POSITION: "position";
35
+ readonly WORK_LOCATION: "work_location";
36
+ readonly UNIT_TYPE: "unit_type";
37
+ readonly WORK_LOCATION_TYPE: "work_location_type";
38
+ readonly ORG_CHANGE_SET: "org_change_set";
39
+ readonly ROLE_ASSIGNMENT: "role_assignment";
40
+ readonly ASSIGNMENT_RULE: "assignment_rule";
41
+ readonly ACCESS_REVIEW_CAMPAIGN: "access_review_campaign";
42
+ readonly REQUEST_TYPE: "request_type";
43
+ readonly REGISTERED_CAPABILITY: "registered_capability";
44
+ readonly GLUE_RULE: "glue_rule";
45
+ readonly PROCESS_TYPE: "process_type";
46
+ readonly PROCESS_INSTANCE: "process_instance";
47
+ };
48
+ export type PeopleContentTypeName = (typeof PEOPLE_CONTENT_TYPE)[keyof typeof PEOPLE_CONTENT_TYPE];
49
+ export declare const PEOPLE_CONTENT_TYPE_NAMES: readonly PeopleContentTypeName[];
50
+ /**
51
+ * `effective_revision.subjectKind` enum — registry §3.3.
52
+ * Not all values are content-type names (the `*-type-config` ones are
53
+ * per-LE configuration rows addressed through the same effective_revision
54
+ * CT). This constant exists so callers routing through `PEOPLE_ACTION_BY_CT`
55
+ * or filtering revisions don't reinvent the closed union.
56
+ */
57
+ export declare const PEOPLE_SUBJECT_KIND: {
58
+ readonly LEGAL_ENTITY: "legal_entity";
59
+ readonly REGISTERED_BRANCH: "registered_branch";
60
+ readonly ORG_UNIT: "org_unit";
61
+ readonly POSITION: "position";
62
+ readonly WORK_LOCATION: "work_location";
63
+ readonly UNIT_TYPE_CONFIG: "unit_type_config";
64
+ readonly LOCATION_TYPE_CONFIG: "location_type_config";
65
+ };
66
+ export type PeopleSubjectKind = (typeof PEOPLE_SUBJECT_KIND)[keyof typeof PEOPLE_SUBJECT_KIND];
67
+ /**
68
+ * `closure_case.targetType` / `policy_assignment.targetType` discriminators
69
+ * — registry §3.4, §3.5.
70
+ */
71
+ export declare const PEOPLE_TARGET_TYPE: {
72
+ readonly LEGAL_ENTITY: "legal_entity";
73
+ readonly REGISTERED_BRANCH: "registered_branch";
74
+ };
75
+ export type PeopleTargetType = (typeof PEOPLE_TARGET_TYPE)[keyof typeof PEOPLE_TARGET_TYPE];
76
+ /**
77
+ * Pack-mounted REST projections mounted by the engine from the pack's
78
+ * `routers:` block (`be-docs/api_references.md` §6). 7 of the 9 owned
79
+ * endpoints ship as routers today (access audit, provider health,
80
+ * provisioning queue + the 4 FEAT-015 pack-ops reads); the 2 FEAT-016
81
+ * copilot endpoints ship too but stay untyped here until their SDK cycle.
82
+ *
83
+ * Plain lists (legal_entity, registered_branch, org_unit, etc.) have NO
84
+ * dedicated endpoint — they go through the generic content API
85
+ * (`useContentStore.fetchByType` with the `PEOPLE_CONTENT_TYPE` names).
86
+ */
87
+ export declare const PEOPLE_ENDPOINT: {
88
+ /** `GET /api/v1/people/access/audit` — compliance Q-A/Q-B projection. */
89
+ readonly ACCESS_AUDIT: "/api/v1/people/access/audit";
90
+ /** `GET /api/v1/people/providers/{key}/health` — path segment = business key. */
91
+ readonly providerHealth: (key: string) => string;
92
+ /** `GET /api/v1/people/provisioning/queue` — heterogeneous, server-priority. */
93
+ readonly PROVISIONING_QUEUE: "/api/v1/people/provisioning/queue";
94
+ /** `GET /api/v1/people/pack-ops/registry` — CMS pack list + template catalog. */
95
+ readonly PACK_OPS_REGISTRY: "/api/v1/people/pack-ops/registry";
96
+ /** `GET /api/v1/people/pack-ops/preflight?slug=&source=&ref=`. */
97
+ readonly PACK_OPS_PREFLIGHT: "/api/v1/people/pack-ops/preflight";
98
+ /** `GET /api/v1/people/pack-ops/{slug}/upgrade-check`. */
99
+ readonly packOpsUpgradeCheck: (slug: string) => string;
100
+ /** `GET /api/v1/people/pack-ops/{slug}/impact?ref=`. */
101
+ readonly packOpsImpact: (slug: string) => string;
102
+ /** Re-use the engine's generic content-action route (like `GOV_ENDPOINT`). */
103
+ readonly action: (uuid: string, actionName: string) => string;
104
+ /** `/api/v1/packs` — install/rollback/PUT/DELETE live here (§6.4). */
105
+ readonly PACKS: "/api/v1/packs";
106
+ /** `/api/v1/packs/audit-log` — pack transition trail (US7). */
107
+ readonly PACKS_AUDIT: "/api/v1/packs/audit-log";
108
+ };
109
+ /** Bare `/api/v1/packs` prefix (kept for path building in packops service). */
110
+ export declare const PACKS_ENDPOINT: "/api/v1/packs";
111
+ export declare const PACKS_AUDIT_ENDPOINT: "/api/v1/packs/audit-log";
112
+ /**
113
+ * The 53 pack actions the user-callable surface exposes today
114
+ * (`api_references.md` §3.3 matrix). System-only actions live in
115
+ * {@link PEOPLE_SYSTEM_ONLY_ACTIONS}.
116
+ *
117
+ * Grouped by FEAT for readability. Names mirror the registered action
118
+ * handlers in `pack/actions/*.py` verbatim and are URL names (NOT handler
119
+ * names — e.g. `execute_item`, not `execute`).
120
+ */
121
+ export declare const PEOPLE_ACTION_NAME: {
122
+ readonly REGISTER_LEGAL_ENTITY: "register_legal_entity";
123
+ readonly REACTIVATE: "reactivate";
124
+ readonly ARCHIVE_VISIBILITY: "archive_visibility";
125
+ readonly RESTORE_VISIBILITY: "restore_visibility";
126
+ readonly SCHEDULE_BRANCH: "schedule_branch";
127
+ readonly ACTIVATE_NOW: "activate_now";
128
+ readonly CANCEL_BRANCH: "cancel_branch";
129
+ readonly RESCHEDULE_BRANCH: "reschedule_branch";
130
+ readonly CORRECT_CODE: "correct_code";
131
+ readonly SCHEDULE_REVISION: "schedule_revision";
132
+ readonly CANCEL_REVISION: "cancel_revision";
133
+ readonly CLOSURE_SUBMIT: "closure_submit";
134
+ readonly CLOSURE_APPROVE: "closure_approve";
135
+ readonly CLOSURE_COMPLETE: "closure_complete";
136
+ readonly CLOSURE_REJECT: "closure_reject";
137
+ readonly CLOSURE_RETRY_FAILED: "closure_retry_failed";
138
+ readonly CLOSURE_CANCEL: "closure_cancel";
139
+ readonly SCHEDULE_ASSIGNMENT: "schedule_assignment";
140
+ readonly CANCEL_ASSIGNMENT: "cancel_assignment";
141
+ readonly DISCONTINUE_UNIT_TYPE: "discontinue_unit_type";
142
+ readonly RESTORE_UNIT_TYPE: "restore_unit_type";
143
+ readonly DISCONTINUE_LOCATION_TYPE: "discontinue_location_type";
144
+ readonly RESTORE_LOCATION_TYPE: "restore_location_type";
145
+ readonly CS_SUBMIT: "cs_submit";
146
+ readonly CS_RETURN_FOR_CORRECTION: "cs_return_for_correction";
147
+ readonly CS_APPROVE: "cs_approve";
148
+ readonly CS_REJECT: "cs_reject";
149
+ readonly CS_SCHEDULE: "cs_schedule";
150
+ readonly CS_APPLY: "cs_apply";
151
+ readonly CS_RETRY_FAILED: "cs_retry_failed";
152
+ readonly CS_CLOSE_FAILED: "cs_close_failed";
153
+ readonly CS_CREATE_REPLACEMENT: "cs_create_replacement";
154
+ readonly CS_CANCEL: "cs_cancel";
155
+ readonly VALIDATE_REVISION: "validate_revision";
156
+ readonly PUBLISH_REVISION: "publish_revision";
157
+ readonly FORK_DRAFT: "fork_draft";
158
+ readonly DISCARD_DRAFT: "discard_draft";
159
+ readonly SEED_MERGE: "seed_merge";
160
+ readonly RECORD_SEED_ACK: "record_seed_ack";
161
+ readonly GRANT_EXCEPTION: "grant_exception";
162
+ readonly REVOKE_EXCEPTION: "revoke_exception";
163
+ readonly AMEND_EXCEPTION_WINDOW: "amend_exception_window";
164
+ readonly GRANT: "grant";
165
+ readonly REVOKE: "revoke";
166
+ readonly AMEND_WINDOW: "amend_window";
167
+ readonly VALIDATE_RULE: "validate_rule";
168
+ readonly PUBLISH_RULE: "publish_rule";
169
+ readonly DISCARD_RULE: "discard_rule";
170
+ readonly RECORD_DECISION: "record_decision";
171
+ readonly GENERATE: "generate";
172
+ readonly REMIND: "remind";
173
+ readonly ESCALATE_REVIEW: "escalate_review";
174
+ readonly COMPLETE: "complete";
175
+ readonly ACTIVATE_PROVIDER: "activate_provider";
176
+ readonly DISABLE_PROVIDER: "disable_provider";
177
+ readonly DISCARD_PROVIDER: "discard_provider";
178
+ readonly PROBE: "probe";
179
+ readonly RESOLVE_DESIRED: "resolve_desired";
180
+ readonly EXECUTE_ITEM: "execute_item";
181
+ readonly ACTIVATE_ITEM: "activate_item";
182
+ readonly RETRY_ITEM: "retry_item";
183
+ readonly RESOLVE_MANUALLY: "resolve_manually";
184
+ readonly RELEASE_ITEM: "release_item";
185
+ readonly CANCEL_ITEM: "cancel_item";
186
+ readonly CLEANUP_PREPARED: "cleanup_prepared";
187
+ readonly RESOLVE_BINDING: "resolve_binding";
188
+ readonly MARK_DELETED_VERIFIED: "mark_deleted_verified";
189
+ readonly ACKNOWLEDGE: "acknowledge";
190
+ readonly REMEDIATE: "remediate";
191
+ readonly ACCEPT_EXCEPTION: "accept_exception";
192
+ readonly REGISTER_INTENDED: "register_intended";
193
+ readonly ESCALATE: "escalate";
194
+ readonly BUILD_PLAN: "build_plan";
195
+ readonly AMEND_PLAN: "amend_plan";
196
+ readonly CANCEL_PLAN: "cancel_plan";
197
+ readonly COMPLETE_PLAN: "complete_plan";
198
+ readonly EDIT_REQUEST_TYPE: "edit_request_type";
199
+ readonly VALIDATE_REQUEST_TYPE: "validate_request_type";
200
+ readonly SAFE_TEST_REQUEST_TYPE: "safe_test_request_type";
201
+ readonly PUBLISH_REQUEST_TYPE: "publish_request_type";
202
+ readonly SUPERSEDE_REQUEST_TYPE: "supersede_request_type";
203
+ readonly DECOMMISSION_REQUEST_TYPE: "decommission_request_type";
204
+ readonly VERIFY_REQUEST_TYPE: "verify_request_type";
205
+ readonly PUBLISH_CAPABILITY: "publish_capability";
206
+ readonly SUPERSEDE_CAPABILITY: "supersede_capability";
207
+ readonly RUNTIME_REQUEST_CREATE: "runtime_request.create";
208
+ readonly RUNTIME_REQUEST_INVOKE: "runtime_request.invoke_action";
209
+ /** Generated per-flow actions authored in the definition (assignment lane). */
210
+ readonly CLAIM: "claim";
211
+ readonly DELEGATE: "delegate";
212
+ readonly EDIT_POLICY: "edit_policy";
213
+ readonly VALIDATE_POLICY: "validate_policy";
214
+ readonly PUBLISH_POLICY: "publish_policy";
215
+ readonly SUPERSEDE_POLICY: "supersede_policy";
216
+ readonly ARCHIVE_POLICY: "archive_policy";
217
+ readonly RESTORE_POLICY: "restore_policy";
218
+ readonly TOGGLE_POLICY: "toggle_policy";
219
+ readonly VERIFY_POLICY: "verify_policy";
220
+ readonly TOGGLE_GLUE_RULE: "toggle_glue_rule";
221
+ readonly VERIFY_GLUE_RULE: "verify_glue_rule";
222
+ readonly EDIT_PROCESS: "edit_process";
223
+ readonly VALIDATE_PROCESS: "validate_process";
224
+ readonly PUBLISH_PROCESS: "publish_process";
225
+ readonly SUPERSEDE_PROCESS: "supersede_process";
226
+ readonly DECOMMISSION_PROCESS: "decommission_process";
227
+ readonly VERIFY_PROCESS: "verify_process";
228
+ readonly CREATE_PROCESS: "create_process";
229
+ readonly START_PROCESS: "start_process";
230
+ readonly CANCEL_PROCESS: "cancel_process";
231
+ readonly RETRY_PROCESS: "retry_process";
232
+ readonly RETRY_SPAWN: "retry_spawn";
233
+ };
234
+ export type PeopleActionName = (typeof PEOPLE_ACTION_NAME)[keyof typeof PEOPLE_ACTION_NAME];
235
+ /**
236
+ * System-only actions declared via `system_only: true` (engine E11b) —
237
+ * `POST /content/{uuid}/actions/{name}` from a user returns `403
238
+ * system_only_action`; rule/cron lanes bypass by construction. The UI MUST
239
+ * never offer these to the operator and the portal MUST NOT invoke them.
240
+ */
241
+ export declare const PEOPLE_SYSTEM_ONLY_ACTIONS: ReadonlySet<string>;
242
+ /** Guards for the type system + the renderer rail filter (`UNKNOWN_ACTIONS`
243
+ * in `usePeopleStore` mirrors this shape). */
244
+ export declare function isSystemOnlyAction(action: string): boolean;
245
+ /**
246
+ * Action-by-CT contract — every pack action is bound to ONE content type
247
+ * (engine dispatcher checks CT membership). Invoking an action on a
248
+ * uuid of another CT returns a dispatcher error.
249
+ *
250
+ * System-only actions are listed alongside their bound CT for completeness;
251
+ * the UI rail MUST filter them via {@link isSystemOnlyAction}.
252
+ *
253
+ * Planned CTs (FEAT-008/010/011/014) are included with empty arrays so the
254
+ * rail renders an honest "no actions yet" once the CT installs.
255
+ */
256
+ export declare const PEOPLE_ACTION_BY_CT: Record<PeopleContentTypeName, readonly PeopleActionName[]>;
257
+ /**
258
+ * Default tuning for People pack behavior — kept here (not in the BE) so the
259
+ * FE doesn't hardcode magic numbers. Each value mirrors `pack/settings/people.yaml`.
260
+ */
261
+ export declare const PEOPLE_DEFAULTS: {
262
+ readonly RETRY_MAX_ATTEMPTS: 3;
263
+ readonly RETRY_BACKOFF_BASE_SECONDS: 300;
264
+ readonly HEALTH_WINDOW_MINUTES: 15;
265
+ readonly RECONCILE_TIMEOUT_OUTCOME_MINUTES: 60;
266
+ readonly DEPROVISION_PLAN_VERSION_GUARD: true;
267
+ readonly CATALOG_PIN_REQUIRED: true;
268
+ };
269
+ //# sourceMappingURL=people.constant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"people.constant.d.ts","sourceRoot":"","sources":["../../../src/common/constants/people.constant.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH;8CAC8C;AAC9C,eAAO,MAAM,cAAc,iBAAiB,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;IAO9B,0EAA0E;;;;;;;;;;;;;;;;;;;;;;;CAqClE,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEnG,eAAO,MAAM,yBAAyB,EAAE,SAAS,qBAAqB,EAErE,CAAC;AAEF;;;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CAAC,qBAAqB,EAAE,SAAS,gBAAgB,EAAE,CA4L1F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;CAWlB,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Content-rules endpoints (`eaera_cms/core/rules/routes.py`).
3
+ */
4
+ export declare const RULES_ENDPOINT: {
5
+ readonly BASE: "/api/v1/rules";
6
+ readonly detail: (uuid: string) => string;
7
+ /** POST /api/v1/rules/signals/fire — manually fire a signal rule. */
8
+ readonly fireSignal: "/api/v1/rules/signals/fire";
9
+ };
10
+ /** Rule list query defaults. */
11
+ export declare const RULES_DEFAULTS: {
12
+ readonly LIST_LIMIT: 100;
13
+ };
14
+ //# sourceMappingURL=rules.constant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rules.constant.d.ts","sourceRoot":"","sources":["../../../src/common/constants/rules.constant.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,cAAc;;4BAEV,MAAM,KAAG,MAAM;IAC9B,qEAAqE;;CAE7D,CAAC;AAEX,gCAAgC;AAChC,eAAO,MAAM,cAAc;;CAEjB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Dashboard settings endpoints (`eaera_cms/settings/routes.py`). Monitored
3
+ * groups are persisted as a generic CMS setting of type
4
+ * `setting.dashboard.monitored_groups` (requires that CT in the catalog).
5
+ */
6
+ export declare const MONITORED_GROUPS_TYPE = "setting.dashboard.monitored_groups";
7
+ /**
8
+ * Public markets setting type (api-inventory §5.7.5). Anonymous-readable
9
+ * (no JWT required) — carries the UI defaults for logged-out users:
10
+ * the default MT5 server id + the curated common-symbol list.
11
+ */
12
+ export declare const PUBLIC_MARKETS_TYPE = "setting.public.markets";
13
+ export declare const SETTINGS_ENDPOINT: {
14
+ /** GET/PUT /api/v1/settings/{typeName}. */
15
+ readonly detail: (typeName: string) => string;
16
+ };
17
+ //# sourceMappingURL=settings.constant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.constant.d.ts","sourceRoot":"","sources":["../../../src/common/constants/settings.constant.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,uCAAuC,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,2BAA2B,CAAC;AAE5D,eAAO,MAAM,iBAAiB;IAC5B,2CAA2C;gCACxB,MAAM,KAAG,MAAM;CAC1B,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Generic sort-direction discriminator. Used by every endpoint that
3
+ * accepts `?sortDirection=asc|desc` (history, bars, content list, rules,
4
+ * executions, …) and by the FE table-column sort handlers.
5
+ *
6
+ * `HISTORY_SORT_DIRECTION` is a history-namespaced alias for backwards
7
+ * compatibility — prefer `SORT_DIRECTION` in new code.
8
+ */
9
+ export declare const SORT_DIRECTION: {
10
+ readonly ASC: "asc";
11
+ readonly DESC: "desc";
12
+ };
13
+ export type SortDirection = (typeof SORT_DIRECTION)[keyof typeof SORT_DIRECTION];
14
+ //# sourceMappingURL=sort.constant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sort.constant.d.ts","sourceRoot":"","sources":["../../../src/common/constants/sort.constant.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC"}