@eloxiv/contracts 0.0.0-stage → 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 (537) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +6 -2
  3. package/dist/Agent.d.ts +792 -0
  4. package/dist/Agent.d.ts.map +1 -0
  5. package/dist/Agent.js +610 -0
  6. package/dist/Agent.js.map +1 -0
  7. package/dist/Analytics.d.ts +46 -0
  8. package/dist/Analytics.d.ts.map +1 -0
  9. package/dist/Analytics.js +89 -0
  10. package/dist/Analytics.js.map +1 -0
  11. package/dist/Approval.d.ts +70 -0
  12. package/dist/Approval.d.ts.map +1 -0
  13. package/dist/Approval.js +127 -0
  14. package/dist/Approval.js.map +1 -0
  15. package/dist/Catalog.d.ts +238 -0
  16. package/dist/Catalog.d.ts.map +1 -0
  17. package/dist/Catalog.js +169 -0
  18. package/dist/Catalog.js.map +1 -0
  19. package/dist/Checklist.d.ts +99 -0
  20. package/dist/Checklist.d.ts.map +1 -0
  21. package/dist/Checklist.js +105 -0
  22. package/dist/Checklist.js.map +1 -0
  23. package/dist/Data.d.ts +107 -0
  24. package/dist/Data.d.ts.map +1 -0
  25. package/dist/Data.js +93 -0
  26. package/dist/Data.js.map +1 -0
  27. package/dist/Devices.d.ts +857 -0
  28. package/dist/Devices.d.ts.map +1 -0
  29. package/dist/Devices.js +590 -0
  30. package/dist/Devices.js.map +1 -0
  31. package/dist/Durable.d.ts +406 -0
  32. package/dist/Durable.d.ts.map +1 -0
  33. package/dist/Durable.js +203 -0
  34. package/dist/Durable.js.map +1 -0
  35. package/dist/Errors.d.ts +95 -0
  36. package/dist/Errors.d.ts.map +1 -0
  37. package/dist/Errors.js +72 -0
  38. package/dist/Errors.js.map +1 -0
  39. package/dist/JsonSchema.d.ts +355 -0
  40. package/dist/JsonSchema.d.ts.map +1 -0
  41. package/dist/JsonSchema.js +151 -0
  42. package/dist/JsonSchema.js.map +1 -0
  43. package/dist/Manifest.d.ts +353 -0
  44. package/dist/Manifest.d.ts.map +1 -0
  45. package/dist/Manifest.js +894 -0
  46. package/dist/Manifest.js.map +1 -0
  47. package/dist/Module.d.ts +447 -0
  48. package/dist/Module.d.ts.map +1 -0
  49. package/dist/Module.js +221 -0
  50. package/dist/Module.js.map +1 -0
  51. package/dist/Optimistic.d.ts +192 -0
  52. package/dist/Optimistic.d.ts.map +1 -0
  53. package/dist/Optimistic.js +319 -0
  54. package/dist/Optimistic.js.map +1 -0
  55. package/dist/Projection.d.ts +163 -0
  56. package/dist/Projection.d.ts.map +1 -0
  57. package/dist/Projection.js +158 -0
  58. package/dist/Projection.js.map +1 -0
  59. package/dist/Proposals.d.ts +103 -0
  60. package/dist/Proposals.d.ts.map +1 -0
  61. package/dist/Proposals.js +72 -0
  62. package/dist/Proposals.js.map +1 -0
  63. package/dist/Receipt.d.ts +243 -0
  64. package/dist/Receipt.d.ts.map +1 -0
  65. package/dist/Receipt.js +108 -0
  66. package/dist/Receipt.js.map +1 -0
  67. package/dist/Records.d.ts +297 -0
  68. package/dist/Records.d.ts.map +1 -0
  69. package/dist/Records.js +171 -0
  70. package/dist/Records.js.map +1 -0
  71. package/dist/Render.d.ts +207 -0
  72. package/dist/Render.d.ts.map +1 -0
  73. package/dist/Render.js +502 -0
  74. package/dist/Render.js.map +1 -0
  75. package/dist/Rpc.d.ts +115 -0
  76. package/dist/Rpc.d.ts.map +1 -0
  77. package/dist/Rpc.js +68 -0
  78. package/dist/Rpc.js.map +1 -0
  79. package/dist/SearchLanguages.d.ts +4 -0
  80. package/dist/SearchLanguages.d.ts.map +1 -0
  81. package/dist/SearchLanguages.js +33 -0
  82. package/dist/SearchLanguages.js.map +1 -0
  83. package/dist/Service.d.ts +59 -0
  84. package/dist/Service.d.ts.map +1 -0
  85. package/dist/Service.js +38 -0
  86. package/dist/Service.js.map +1 -0
  87. package/dist/Versions.d.ts +9 -0
  88. package/dist/Versions.d.ts.map +1 -0
  89. package/dist/Versions.js +78 -0
  90. package/dist/Versions.js.map +1 -0
  91. package/dist/contracts/ActionConsent.d.ts +189 -0
  92. package/dist/contracts/ActionConsent.d.ts.map +1 -0
  93. package/dist/contracts/ActionConsent.js +129 -0
  94. package/dist/contracts/ActionConsent.js.map +1 -0
  95. package/dist/contracts/ActionRegistry.d.ts +149 -0
  96. package/dist/contracts/ActionRegistry.d.ts.map +1 -0
  97. package/dist/contracts/ActionRegistry.js +37 -0
  98. package/dist/contracts/ActionRegistry.js.map +1 -0
  99. package/dist/contracts/Actor.d.ts +129 -0
  100. package/dist/contracts/Actor.d.ts.map +1 -0
  101. package/dist/contracts/Actor.js +47 -0
  102. package/dist/contracts/Actor.js.map +1 -0
  103. package/dist/contracts/AgentResources.d.ts +248 -0
  104. package/dist/contracts/AgentResources.d.ts.map +1 -0
  105. package/dist/contracts/AgentResources.js +158 -0
  106. package/dist/contracts/AgentResources.js.map +1 -0
  107. package/dist/contracts/AgentRuntime.d.ts +453 -0
  108. package/dist/contracts/AgentRuntime.d.ts.map +1 -0
  109. package/dist/contracts/AgentRuntime.js +117 -0
  110. package/dist/contracts/AgentRuntime.js.map +1 -0
  111. package/dist/contracts/Approvals.d.ts +303 -0
  112. package/dist/contracts/Approvals.d.ts.map +1 -0
  113. package/dist/contracts/Approvals.js +117 -0
  114. package/dist/contracts/Approvals.js.map +1 -0
  115. package/dist/contracts/Audit.d.ts +510 -0
  116. package/dist/contracts/Audit.d.ts.map +1 -0
  117. package/dist/contracts/Audit.js +139 -0
  118. package/dist/contracts/Audit.js.map +1 -0
  119. package/dist/contracts/CalendarProvider.d.ts +572 -0
  120. package/dist/contracts/CalendarProvider.d.ts.map +1 -0
  121. package/dist/contracts/CalendarProvider.js +203 -0
  122. package/dist/contracts/CalendarProvider.js.map +1 -0
  123. package/dist/contracts/Capability.d.ts +197 -0
  124. package/dist/contracts/Capability.d.ts.map +1 -0
  125. package/dist/contracts/Capability.js +189 -0
  126. package/dist/contracts/Capability.js.map +1 -0
  127. package/dist/contracts/ClientSDK.d.ts +250 -0
  128. package/dist/contracts/ClientSDK.d.ts.map +1 -0
  129. package/dist/contracts/ClientSDK.js +184 -0
  130. package/dist/contracts/ClientSDK.js.map +1 -0
  131. package/dist/contracts/CollabDocument.d.ts +781 -0
  132. package/dist/contracts/CollabDocument.d.ts.map +1 -0
  133. package/dist/contracts/CollabDocument.js +364 -0
  134. package/dist/contracts/CollabDocument.js.map +1 -0
  135. package/dist/contracts/Command.d.ts +183 -0
  136. package/dist/contracts/Command.d.ts.map +1 -0
  137. package/dist/contracts/Command.js +66 -0
  138. package/dist/contracts/Command.js.map +1 -0
  139. package/dist/contracts/Connections.d.ts +612 -0
  140. package/dist/contracts/Connections.d.ts.map +1 -0
  141. package/dist/contracts/Connections.js +323 -0
  142. package/dist/contracts/Connections.js.map +1 -0
  143. package/dist/contracts/ContextAccounting.d.ts +79 -0
  144. package/dist/contracts/ContextAccounting.d.ts.map +1 -0
  145. package/dist/contracts/ContextAccounting.js +32 -0
  146. package/dist/contracts/ContextAccounting.js.map +1 -0
  147. package/dist/contracts/Daemon.d.ts +486 -0
  148. package/dist/contracts/Daemon.d.ts.map +1 -0
  149. package/dist/contracts/Daemon.js +192 -0
  150. package/dist/contracts/Daemon.js.map +1 -0
  151. package/dist/contracts/DbTx.d.ts +149 -0
  152. package/dist/contracts/DbTx.d.ts.map +1 -0
  153. package/dist/contracts/DbTx.js +94 -0
  154. package/dist/contracts/DbTx.js.map +1 -0
  155. package/dist/contracts/Delegation.d.ts +121 -0
  156. package/dist/contracts/Delegation.d.ts.map +1 -0
  157. package/dist/contracts/Delegation.js +76 -0
  158. package/dist/contracts/Delegation.js.map +1 -0
  159. package/dist/contracts/DeviceControl.d.ts +293 -0
  160. package/dist/contracts/DeviceControl.d.ts.map +1 -0
  161. package/dist/contracts/DeviceControl.js +107 -0
  162. package/dist/contracts/DeviceControl.js.map +1 -0
  163. package/dist/contracts/Directory.d.ts +492 -0
  164. package/dist/contracts/Directory.d.ts.map +1 -0
  165. package/dist/contracts/Directory.js +225 -0
  166. package/dist/contracts/Directory.js.map +1 -0
  167. package/dist/contracts/DirectoryProvider.d.ts +214 -0
  168. package/dist/contracts/DirectoryProvider.d.ts.map +1 -0
  169. package/dist/contracts/DirectoryProvider.js +73 -0
  170. package/dist/contracts/DirectoryProvider.js.map +1 -0
  171. package/dist/contracts/DocumentSource.d.ts +190 -0
  172. package/dist/contracts/DocumentSource.d.ts.map +1 -0
  173. package/dist/contracts/DocumentSource.js +64 -0
  174. package/dist/contracts/DocumentSource.js.map +1 -0
  175. package/dist/contracts/Files.d.ts +762 -0
  176. package/dist/contracts/Files.d.ts.map +1 -0
  177. package/dist/contracts/Files.js +339 -0
  178. package/dist/contracts/Files.js.map +1 -0
  179. package/dist/contracts/Flags.d.ts +265 -0
  180. package/dist/contracts/Flags.d.ts.map +1 -0
  181. package/dist/contracts/Flags.js +197 -0
  182. package/dist/contracts/Flags.js.map +1 -0
  183. package/dist/contracts/Host.d.ts +320 -0
  184. package/dist/contracts/Host.d.ts.map +1 -0
  185. package/dist/contracts/Host.js +224 -0
  186. package/dist/contracts/Host.js.map +1 -0
  187. package/dist/contracts/HttpApi.d.ts +102 -0
  188. package/dist/contracts/HttpApi.d.ts.map +1 -0
  189. package/dist/contracts/HttpApi.js +89 -0
  190. package/dist/contracts/HttpApi.js.map +1 -0
  191. package/dist/contracts/Ingestion.d.ts +522 -0
  192. package/dist/contracts/Ingestion.d.ts.map +1 -0
  193. package/dist/contracts/Ingestion.js +275 -0
  194. package/dist/contracts/Ingestion.js.map +1 -0
  195. package/dist/contracts/Ingress.d.ts +132 -0
  196. package/dist/contracts/Ingress.d.ts.map +1 -0
  197. package/dist/contracts/Ingress.js +102 -0
  198. package/dist/contracts/Ingress.js.map +1 -0
  199. package/dist/contracts/Invocation.d.ts +361 -0
  200. package/dist/contracts/Invocation.d.ts.map +1 -0
  201. package/dist/contracts/Invocation.js +104 -0
  202. package/dist/contracts/Invocation.js.map +1 -0
  203. package/dist/contracts/LocalClient.d.ts +878 -0
  204. package/dist/contracts/LocalClient.d.ts.map +1 -0
  205. package/dist/contracts/LocalClient.js +423 -0
  206. package/dist/contracts/LocalClient.js.map +1 -0
  207. package/dist/contracts/Locale.d.ts +162 -0
  208. package/dist/contracts/Locale.d.ts.map +1 -0
  209. package/dist/contracts/Locale.js +123 -0
  210. package/dist/contracts/Locale.js.map +1 -0
  211. package/dist/contracts/MachineIdentity.d.ts +434 -0
  212. package/dist/contracts/MachineIdentity.d.ts.map +1 -0
  213. package/dist/contracts/MachineIdentity.js +223 -0
  214. package/dist/contracts/MachineIdentity.js.map +1 -0
  215. package/dist/contracts/MailProvider.d.ts +791 -0
  216. package/dist/contracts/MailProvider.d.ts.map +1 -0
  217. package/dist/contracts/MailProvider.js +237 -0
  218. package/dist/contracts/MailProvider.js.map +1 -0
  219. package/dist/contracts/Memory.d.ts +62 -0
  220. package/dist/contracts/Memory.d.ts.map +1 -0
  221. package/dist/contracts/Memory.js +43 -0
  222. package/dist/contracts/Memory.js.map +1 -0
  223. package/dist/contracts/Messaging.d.ts +154 -0
  224. package/dist/contracts/Messaging.d.ts.map +1 -0
  225. package/dist/contracts/Messaging.js +97 -0
  226. package/dist/contracts/Messaging.js.map +1 -0
  227. package/dist/contracts/Metering.d.ts +334 -0
  228. package/dist/contracts/Metering.d.ts.map +1 -0
  229. package/dist/contracts/Metering.js +202 -0
  230. package/dist/contracts/Metering.js.map +1 -0
  231. package/dist/contracts/ModelProvider.d.ts +142 -0
  232. package/dist/contracts/ModelProvider.d.ts.map +1 -0
  233. package/dist/contracts/ModelProvider.js +72 -0
  234. package/dist/contracts/ModelProvider.js.map +1 -0
  235. package/dist/contracts/ModuleManifest.d.ts +2519 -0
  236. package/dist/contracts/ModuleManifest.d.ts.map +1 -0
  237. package/dist/contracts/ModuleManifest.js +272 -0
  238. package/dist/contracts/ModuleManifest.js.map +1 -0
  239. package/dist/contracts/NotificationChannel.d.ts +378 -0
  240. package/dist/contracts/NotificationChannel.d.ts.map +1 -0
  241. package/dist/contracts/NotificationChannel.js +136 -0
  242. package/dist/contracts/NotificationChannel.js.map +1 -0
  243. package/dist/contracts/Notifications.d.ts +417 -0
  244. package/dist/contracts/Notifications.d.ts.map +1 -0
  245. package/dist/contracts/Notifications.js +267 -0
  246. package/dist/contracts/Notifications.js.map +1 -0
  247. package/dist/contracts/Outbox.d.ts +469 -0
  248. package/dist/contracts/Outbox.d.ts.map +1 -0
  249. package/dist/contracts/Outbox.js +215 -0
  250. package/dist/contracts/Outbox.js.map +1 -0
  251. package/dist/contracts/Privacy.d.ts +1029 -0
  252. package/dist/contracts/Privacy.d.ts.map +1 -0
  253. package/dist/contracts/Privacy.js +437 -0
  254. package/dist/contracts/Privacy.js.map +1 -0
  255. package/dist/contracts/Progress.d.ts +305 -0
  256. package/dist/contracts/Progress.d.ts.map +1 -0
  257. package/dist/contracts/Progress.js +174 -0
  258. package/dist/contracts/Progress.js.map +1 -0
  259. package/dist/contracts/QuerySurface.d.ts +231 -0
  260. package/dist/contracts/QuerySurface.d.ts.map +1 -0
  261. package/dist/contracts/QuerySurface.js +113 -0
  262. package/dist/contracts/QuerySurface.js.map +1 -0
  263. package/dist/contracts/Readiness.d.ts +105 -0
  264. package/dist/contracts/Readiness.d.ts.map +1 -0
  265. package/dist/contracts/Readiness.js +57 -0
  266. package/dist/contracts/Readiness.js.map +1 -0
  267. package/dist/contracts/Release.d.ts +295 -0
  268. package/dist/contracts/Release.d.ts.map +1 -0
  269. package/dist/contracts/Release.js +175 -0
  270. package/dist/contracts/Release.js.map +1 -0
  271. package/dist/contracts/ResultRendering.d.ts +533 -0
  272. package/dist/contracts/ResultRendering.d.ts.map +1 -0
  273. package/dist/contracts/ResultRendering.js +59 -0
  274. package/dist/contracts/ResultRendering.js.map +1 -0
  275. package/dist/contracts/Sandbox.d.ts +1164 -0
  276. package/dist/contracts/Sandbox.d.ts.map +1 -0
  277. package/dist/contracts/Sandbox.js +550 -0
  278. package/dist/contracts/Sandbox.js.map +1 -0
  279. package/dist/contracts/Scheduler.d.ts +814 -0
  280. package/dist/contracts/Scheduler.d.ts.map +1 -0
  281. package/dist/contracts/Scheduler.js +202 -0
  282. package/dist/contracts/Scheduler.js.map +1 -0
  283. package/dist/contracts/ScreenContext.d.ts +514 -0
  284. package/dist/contracts/ScreenContext.d.ts.map +1 -0
  285. package/dist/contracts/ScreenContext.js +272 -0
  286. package/dist/contracts/ScreenContext.js.map +1 -0
  287. package/dist/contracts/Search.d.ts +308 -0
  288. package/dist/contracts/Search.d.ts.map +1 -0
  289. package/dist/contracts/Search.js +107 -0
  290. package/dist/contracts/Search.js.map +1 -0
  291. package/dist/contracts/Secrets.d.ts +483 -0
  292. package/dist/contracts/Secrets.d.ts.map +1 -0
  293. package/dist/contracts/Secrets.js +136 -0
  294. package/dist/contracts/Secrets.js.map +1 -0
  295. package/dist/contracts/Settings.d.ts +221 -0
  296. package/dist/contracts/Settings.d.ts.map +1 -0
  297. package/dist/contracts/Settings.js +163 -0
  298. package/dist/contracts/Settings.js.map +1 -0
  299. package/dist/contracts/Sharing.d.ts +319 -0
  300. package/dist/contracts/Sharing.d.ts.map +1 -0
  301. package/dist/contracts/Sharing.js +172 -0
  302. package/dist/contracts/Sharing.js.map +1 -0
  303. package/dist/contracts/Slot.d.ts +162 -0
  304. package/dist/contracts/Slot.d.ts.map +1 -0
  305. package/dist/contracts/Slot.js +56 -0
  306. package/dist/contracts/Slot.js.map +1 -0
  307. package/dist/contracts/Space.d.ts +256 -0
  308. package/dist/contracts/Space.d.ts.map +1 -0
  309. package/dist/contracts/Space.js +133 -0
  310. package/dist/contracts/Space.js.map +1 -0
  311. package/dist/contracts/StorageAdapter.d.ts +124 -0
  312. package/dist/contracts/StorageAdapter.d.ts.map +1 -0
  313. package/dist/contracts/StorageAdapter.js +96 -0
  314. package/dist/contracts/StorageAdapter.js.map +1 -0
  315. package/dist/contracts/StorageBackend.d.ts +310 -0
  316. package/dist/contracts/StorageBackend.d.ts.map +1 -0
  317. package/dist/contracts/StorageBackend.js +196 -0
  318. package/dist/contracts/StorageBackend.js.map +1 -0
  319. package/dist/contracts/Sync.d.ts +286 -0
  320. package/dist/contracts/Sync.d.ts.map +1 -0
  321. package/dist/contracts/Sync.js +157 -0
  322. package/dist/contracts/Sync.js.map +1 -0
  323. package/dist/contracts/Telemetry.d.ts +183 -0
  324. package/dist/contracts/Telemetry.d.ts.map +1 -0
  325. package/dist/contracts/Telemetry.js +153 -0
  326. package/dist/contracts/Telemetry.js.map +1 -0
  327. package/dist/contracts/ThemeTokens.d.ts +212 -0
  328. package/dist/contracts/ThemeTokens.d.ts.map +1 -0
  329. package/dist/contracts/ThemeTokens.js +111 -0
  330. package/dist/contracts/ThemeTokens.js.map +1 -0
  331. package/dist/contracts/ToolSource.d.ts +135 -0
  332. package/dist/contracts/ToolSource.d.ts.map +1 -0
  333. package/dist/contracts/ToolSource.js +81 -0
  334. package/dist/contracts/ToolSource.js.map +1 -0
  335. package/dist/contracts/Versioning.d.ts +363 -0
  336. package/dist/contracts/Versioning.d.ts.map +1 -0
  337. package/dist/contracts/Versioning.js +201 -0
  338. package/dist/contracts/Versioning.js.map +1 -0
  339. package/dist/contracts/View.d.ts +232 -0
  340. package/dist/contracts/View.d.ts.map +1 -0
  341. package/dist/contracts/View.js +102 -0
  342. package/dist/contracts/View.js.map +1 -0
  343. package/dist/contracts/WorkItems.d.ts +242 -0
  344. package/dist/contracts/WorkItems.d.ts.map +1 -0
  345. package/dist/contracts/WorkItems.js +126 -0
  346. package/dist/contracts/WorkItems.js.map +1 -0
  347. package/dist/contracts/Workflow.d.ts +191 -0
  348. package/dist/contracts/Workflow.d.ts.map +1 -0
  349. package/dist/contracts/Workflow.js +63 -0
  350. package/dist/contracts/Workflow.js.map +1 -0
  351. package/dist/contracts/index.d.ts +75 -0
  352. package/dist/contracts/index.d.ts.map +1 -0
  353. package/dist/contracts/index.js +196 -0
  354. package/dist/contracts/index.js.map +1 -0
  355. package/dist/devices/module.d.ts +3777 -0
  356. package/dist/devices/module.d.ts.map +1 -0
  357. package/dist/devices/module.js +179 -0
  358. package/dist/devices/module.js.map +1 -0
  359. package/dist/drizzle/Entity.d.ts +148 -0
  360. package/dist/drizzle/Entity.d.ts.map +1 -0
  361. package/dist/drizzle/Entity.js +396 -0
  362. package/dist/drizzle/Entity.js.map +1 -0
  363. package/dist/index.d.ts +20 -0
  364. package/dist/index.d.ts.map +1 -0
  365. package/dist/index.js +20 -0
  366. package/dist/index.js.map +1 -0
  367. package/package.json +48 -3
  368. package/schema/Actor.json +46 -0
  369. package/schema/AuditRecord.json +403 -0
  370. package/schema/DaemonHealth.json +29 -0
  371. package/schema/InvocationError.json +257 -0
  372. package/schema/InvocationReceipt.json +253 -0
  373. package/schema/Lockfile.json +129 -0
  374. package/schema/OutboxEvent.json +36 -0
  375. package/schema/PairingConfirm.json +33 -0
  376. package/schema/PairingResult.json +18 -0
  377. package/schema/PairingStart.json +18 -0
  378. package/schema/ProvenanceEntry.json +110 -0
  379. package/schema/ReplayEnvelope.json +269 -0
  380. package/schema/Surface.json +17 -0
  381. package/schema/codegen/LocalClient.json +1295 -0
  382. package/schema/codegen/Sandbox.json +320 -0
  383. package/schema/contracts/ActionConsent.json +1930 -0
  384. package/schema/contracts/ActionRegistry.json +722 -0
  385. package/schema/contracts/Actor.json +451 -0
  386. package/schema/contracts/AgentResources.json +1400 -0
  387. package/schema/contracts/AgentRuntime.json +4017 -0
  388. package/schema/contracts/Approvals.json +2916 -0
  389. package/schema/contracts/Audit.json +3268 -0
  390. package/schema/contracts/CalendarProvider.json +5557 -0
  391. package/schema/contracts/ClientSDK.json +1400 -0
  392. package/schema/contracts/CollabDocument.json +4012 -0
  393. package/schema/contracts/Command.json +616 -0
  394. package/schema/contracts/Connections.json +6687 -0
  395. package/schema/contracts/ContextAccounting.json +685 -0
  396. package/schema/contracts/Daemon.json +4555 -0
  397. package/schema/contracts/DbTx.json +321 -0
  398. package/schema/contracts/Delegation.json +949 -0
  399. package/schema/contracts/DeviceControl.json +2626 -0
  400. package/schema/contracts/Directory.json +5168 -0
  401. package/schema/contracts/DirectoryProvider.json +2090 -0
  402. package/schema/contracts/DocumentSource.json +2044 -0
  403. package/schema/contracts/Files.json +4122 -0
  404. package/schema/contracts/Flags.json +1202 -0
  405. package/schema/contracts/Host.json +1769 -0
  406. package/schema/contracts/HttpApi.json +1615 -0
  407. package/schema/contracts/Ingestion.json +3211 -0
  408. package/schema/contracts/Ingress.json +819 -0
  409. package/schema/contracts/Invocation.json +2044 -0
  410. package/schema/contracts/LocalClient.json +6642 -0
  411. package/schema/contracts/Locale.json +654 -0
  412. package/schema/contracts/MachineIdentity.json +2303 -0
  413. package/schema/contracts/MailProvider.json +6663 -0
  414. package/schema/contracts/Memory.json +579 -0
  415. package/schema/contracts/Messaging.json +1764 -0
  416. package/schema/contracts/Metering.json +3060 -0
  417. package/schema/contracts/ModelProvider.json +1127 -0
  418. package/schema/contracts/ModuleManifest.json +9449 -0
  419. package/schema/contracts/NotificationChannel.json +986 -0
  420. package/schema/contracts/Notifications.json +4280 -0
  421. package/schema/contracts/Outbox.json +1451 -0
  422. package/schema/contracts/Privacy.json +4354 -0
  423. package/schema/contracts/Progress.json +1524 -0
  424. package/schema/contracts/QuerySurface.json +661 -0
  425. package/schema/contracts/Readiness.json +209 -0
  426. package/schema/contracts/Release.json +805 -0
  427. package/schema/contracts/ResultRendering.json +2859 -0
  428. package/schema/contracts/Sandbox.json +2286 -0
  429. package/schema/contracts/Scheduler.json +6138 -0
  430. package/schema/contracts/ScreenContext.json +1238 -0
  431. package/schema/contracts/Search.json +1058 -0
  432. package/schema/contracts/Secrets.json +2444 -0
  433. package/schema/contracts/Settings.json +654 -0
  434. package/schema/contracts/Sharing.json +2854 -0
  435. package/schema/contracts/Slot.json +537 -0
  436. package/schema/contracts/Space.json +892 -0
  437. package/schema/contracts/StorageAdapter.json +623 -0
  438. package/schema/contracts/StorageBackend.json +2421 -0
  439. package/schema/contracts/Sync.json +894 -0
  440. package/schema/contracts/Telemetry.json +696 -0
  441. package/schema/contracts/ThemeTokens.json +547 -0
  442. package/schema/contracts/ToolSource.json +1333 -0
  443. package/schema/contracts/Versioning.json +1481 -0
  444. package/schema/contracts/View.json +750 -0
  445. package/schema/contracts/WorkItems.json +1731 -0
  446. package/schema/contracts/Workflow.json +1242 -0
  447. package/src/Agent.ts +758 -0
  448. package/src/Analytics.ts +110 -0
  449. package/src/Approval.ts +131 -0
  450. package/src/Catalog.ts +192 -0
  451. package/src/Checklist.ts +162 -0
  452. package/src/Data.ts +109 -0
  453. package/src/Devices.ts +721 -0
  454. package/src/Durable.ts +240 -0
  455. package/src/Errors.ts +111 -0
  456. package/src/JsonSchema.ts +166 -0
  457. package/src/Manifest.ts +1147 -0
  458. package/src/Module.ts +640 -0
  459. package/src/Optimistic.ts +332 -0
  460. package/src/Projection.ts +207 -0
  461. package/src/Proposals.ts +89 -0
  462. package/src/Receipt.ts +125 -0
  463. package/src/Records.ts +197 -0
  464. package/src/Render.ts +515 -0
  465. package/src/Rpc.ts +113 -0
  466. package/src/SearchLanguages.ts +33 -0
  467. package/src/Service.ts +102 -0
  468. package/src/Versions.ts +69 -0
  469. package/src/contracts/ActionConsent.ts +150 -0
  470. package/src/contracts/ActionRegistry.ts +39 -0
  471. package/src/contracts/Actor.ts +53 -0
  472. package/src/contracts/AgentResources.ts +167 -0
  473. package/src/contracts/AgentRuntime.ts +154 -0
  474. package/src/contracts/Approvals.ts +133 -0
  475. package/src/contracts/Audit.ts +160 -0
  476. package/src/contracts/CalendarProvider.ts +241 -0
  477. package/src/contracts/Capability.ts +246 -0
  478. package/src/contracts/ClientSDK.ts +199 -0
  479. package/src/contracts/CollabDocument.ts +420 -0
  480. package/src/contracts/Command.ts +74 -0
  481. package/src/contracts/Connections.ts +360 -0
  482. package/src/contracts/ContextAccounting.ts +35 -0
  483. package/src/contracts/Daemon.ts +247 -0
  484. package/src/contracts/DbTx.ts +110 -0
  485. package/src/contracts/Delegation.ts +91 -0
  486. package/src/contracts/DeviceControl.ts +143 -0
  487. package/src/contracts/Directory.ts +384 -0
  488. package/src/contracts/DirectoryProvider.ts +82 -0
  489. package/src/contracts/DocumentSource.ts +71 -0
  490. package/src/contracts/Files.ts +395 -0
  491. package/src/contracts/Flags.ts +241 -0
  492. package/src/contracts/Host.ts +245 -0
  493. package/src/contracts/HttpApi.ts +100 -0
  494. package/src/contracts/Ingestion.ts +315 -0
  495. package/src/contracts/Ingress.ts +132 -0
  496. package/src/contracts/Invocation.ts +122 -0
  497. package/src/contracts/LocalClient.ts +614 -0
  498. package/src/contracts/Locale.ts +133 -0
  499. package/src/contracts/MachineIdentity.ts +305 -0
  500. package/src/contracts/MailProvider.ts +272 -0
  501. package/src/contracts/Memory.ts +47 -0
  502. package/src/contracts/Messaging.ts +108 -0
  503. package/src/contracts/Metering.ts +231 -0
  504. package/src/contracts/ModelProvider.ts +87 -0
  505. package/src/contracts/ModuleManifest.ts +310 -0
  506. package/src/contracts/NotificationChannel.ts +158 -0
  507. package/src/contracts/Notifications.ts +309 -0
  508. package/src/contracts/Outbox.ts +246 -0
  509. package/src/contracts/Privacy.ts +502 -0
  510. package/src/contracts/Progress.ts +196 -0
  511. package/src/contracts/QuerySurface.ts +134 -0
  512. package/src/contracts/Readiness.ts +67 -0
  513. package/src/contracts/Release.ts +199 -0
  514. package/src/contracts/ResultRendering.ts +65 -0
  515. package/src/contracts/Sandbox.ts +648 -0
  516. package/src/contracts/Scheduler.ts +237 -0
  517. package/src/contracts/ScreenContext.ts +316 -0
  518. package/src/contracts/Search.ts +126 -0
  519. package/src/contracts/Secrets.ts +162 -0
  520. package/src/contracts/Settings.ts +207 -0
  521. package/src/contracts/Sharing.ts +205 -0
  522. package/src/contracts/Slot.ts +61 -0
  523. package/src/contracts/Space.ts +157 -0
  524. package/src/contracts/StorageAdapter.ts +104 -0
  525. package/src/contracts/StorageBackend.ts +220 -0
  526. package/src/contracts/Sync.ts +180 -0
  527. package/src/contracts/Telemetry.ts +177 -0
  528. package/src/contracts/ThemeTokens.ts +136 -0
  529. package/src/contracts/ToolSource.ts +94 -0
  530. package/src/contracts/Versioning.ts +237 -0
  531. package/src/contracts/View.ts +116 -0
  532. package/src/contracts/WorkItems.ts +144 -0
  533. package/src/contracts/Workflow.ts +67 -0
  534. package/src/contracts/index.ts +205 -0
  535. package/src/devices/module.ts +201 -0
  536. package/src/drizzle/Entity.ts +524 -0
  537. package/src/index.ts +19 -0
@@ -0,0 +1,1029 @@
1
+ /**
2
+ * Privacy: consent per person and category under regional rules, and data-subject export and erasure across
3
+ * modules, files and connectors. Documented in docs/contracts/privacy.md; conformance kit
4
+ * `@eloxiv/testing/conformance/Privacy`.
5
+ *
6
+ * **Consent.** Categories: `necessary` (always granted; nothing can refuse it), `functional`, `analytics` and
7
+ * `marketing`. A person's choice for a category is theirs, recorded with when it was made and audited; without a
8
+ * choice the person's region decides: an opt-in region (the EEA and its neighbours by default, and any region
9
+ * the kernel cannot place) grants nothing, an opt-out region grants until the person refuses. Telemetry asks
10
+ * `allows(person, category)` before any analytics event leaves the kernel.
11
+ *
12
+ * **Data-subject requests.** Every module declares, in its manifest (`dataSubjects`), which of its entities hold
13
+ * records about a person (the fields holding the person's user id) and what erasure does to each: delete the
14
+ * record, anonymise named fields, or retain it with a stated reason. With the privacy module installed the
15
+ * kernel refuses an app in which any entity with a user-typed policy attribute is undeclared, so no module's
16
+ * records about a person can be left out by omission. An export or an erasure is a request (the person's own,
17
+ * or an organisation administrator's for a member), run as a durable kernel workflow: one journalled step per
18
+ * module and per kernel source (connections, settings, progress, the person's consent, record history),
19
+ * reported through Progress, cancellable by the requester, and audited step by step. Requests are scoped to the
20
+ * organisation they are made in (each organisation is its own controller); deleting the account itself is the
21
+ * deployment operator's.
22
+ */
23
+ import { Schema } from "effect";
24
+ import { Forbidden, InvalidInput, Unauthenticated } from "../Errors.ts";
25
+ /** The permission organisation administrators need to make requests for other members. */
26
+ export declare const PRIVACY_MANAGE = "eloxiv.privacy.manage";
27
+ export declare const CONSENT_CATEGORIES: readonly ["necessary", "functional", "analytics", "marketing"];
28
+ export declare const ConsentCategory: Schema.Literals<readonly ["necessary", "functional", "analytics", "marketing"]>;
29
+ export type ConsentCategory = typeof ConsentCategory.Type;
30
+ /** How a region treats a category nobody chose for: refused until granted, or granted until refused. */
31
+ export declare const ConsentMode: Schema.Literals<readonly ["opt-in", "opt-out"]>;
32
+ export type ConsentMode = typeof ConsentMode.Type;
33
+ /** A regional rule: the countries (ISO 3166-1 alpha-2) and IANA time zones it covers, and its mode. */
34
+ export interface ConsentRegion {
35
+ readonly countries?: ReadonlyArray<string> | undefined;
36
+ readonly timeZones?: ReadonlyArray<string> | undefined;
37
+ readonly mode: ConsentMode;
38
+ }
39
+ /**
40
+ * The EEA, Monaco, San Marino, Åland and France's overseas regions (opt-in), as builder.io's consent banner
41
+ * places them (ported from agent-native's `shared/consent.ts`); the UK and Switzerland are not on it.
42
+ */
43
+ export declare const EEA_COUNTRIES: readonly ["AT", "AX", "BE", "BG", "CY", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GF", "GP", "GR", "HR", "HU", "IE", "IS", "IT", "LI", "LT", "LU", "LV", "MC", "MF", "MQ", "MT", "NL", "NO", "PL", "PT", "RE", "RO", "SE", "SI", "SK", "SM", "YT"];
44
+ export declare const EEA_TIME_ZONES: readonly ["Africa/Ceuta", "America/Cayenne", "America/Guadeloupe", "America/Marigot", "America/Martinique", "Asia/Famagusta", "Asia/Nicosia", "Atlantic/Azores", "Atlantic/Canary", "Atlantic/Madeira", "Atlantic/Reykjavik", "Europe/Amsterdam", "Europe/Athens", "Europe/Berlin", "Europe/Bratislava", "Europe/Brussels", "Europe/Bucharest", "Europe/Budapest", "Europe/Busingen", "Europe/Copenhagen", "Europe/Dublin", "Europe/Helsinki", "Europe/Lisbon", "Europe/Ljubljana", "Europe/Luxembourg", "Europe/Madrid", "Europe/Malta", "Europe/Mariehamn", "Europe/Monaco", "Europe/Nicosia", "Europe/Oslo", "Europe/Paris", "Europe/Prague", "Europe/Riga", "Europe/Rome", "Europe/San_Marino", "Europe/Sofia", "Europe/Stockholm", "Europe/Tallinn", "Europe/Vaduz", "Europe/Vienna", "Europe/Vilnius", "Europe/Warsaw", "Europe/Zagreb", "Indian/Mayotte", "Indian/Reunion", "CET", "EET", "Eire", "Iceland", "MET", "Poland", "Portugal", "WET"];
45
+ /** The kernel's regions unless the app configures its own (`KernelApp.privacy.regions`). */
46
+ export declare const DEFAULT_CONSENT_REGIONS: Readonly<Record<string, ConsentRegion>>;
47
+ /** A client's hint of where the person is: a country code (from a trusted edge) or the browser's time zone. */
48
+ export declare const RegionHint: Schema.Struct<{
49
+ readonly country: Schema.optionalKey<Schema.String>;
50
+ readonly timeZone: Schema.optionalKey<Schema.String>;
51
+ }>;
52
+ export type RegionHint = typeof RegionHint.Type;
53
+ /**
54
+ * The region a hint places a person in: the first configured region listing the country, then the time zone;
55
+ * `null` when none does (the person then gets `otherwise`'s mode).
56
+ */
57
+ export declare const regionOf: (regions: Readonly<Record<string, ConsentRegion>>, hint: RegionHint) => string | null;
58
+ export declare const ConsentSource: Schema.Literals<readonly ["necessary", "choice", "region"]>;
59
+ export declare const CategoryConsent: Schema.Struct<{
60
+ readonly granted: Schema.Boolean;
61
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
62
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
63
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
64
+ }>;
65
+ /** A person's consent as the kernel applies it. */
66
+ export declare const ConsentState: Schema.Struct<{
67
+ readonly userId: Schema.String;
68
+ /** The region recorded for the person (`null`: not placed, so the deployment's default mode applies). */
69
+ readonly region: Schema.NullOr<Schema.String>;
70
+ readonly mode: Schema.Literals<readonly ["opt-in", "opt-out"]>;
71
+ readonly categories: Schema.Struct<{
72
+ readonly necessary: Schema.Struct<{
73
+ readonly granted: Schema.Boolean;
74
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
75
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
76
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
77
+ }>;
78
+ readonly functional: Schema.Struct<{
79
+ readonly granted: Schema.Boolean;
80
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
81
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
82
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
83
+ }>;
84
+ readonly analytics: Schema.Struct<{
85
+ readonly granted: Schema.Boolean;
86
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
87
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
88
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
89
+ }>;
90
+ readonly marketing: Schema.Struct<{
91
+ readonly granted: Schema.Boolean;
92
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
93
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
94
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
95
+ }>;
96
+ }>;
97
+ }>;
98
+ export type ConsentState = typeof ConsentState.Type;
99
+ /** One stored choice (table `eloxiv_privacy.consent`, synced to the person's own replica). */
100
+ export declare const ConsentRecord: Schema.Struct<{
101
+ readonly id: Schema.String;
102
+ readonly userId: Schema.String;
103
+ readonly category: Schema.Literals<readonly ["necessary", "functional", "analytics", "marketing"]>;
104
+ readonly granted: Schema.Boolean;
105
+ readonly region: Schema.NullOr<Schema.String>;
106
+ readonly decidedAt: Schema.Number;
107
+ }>;
108
+ export type ConsentRecord = typeof ConsentRecord.Type;
109
+ export declare const ConsentChoices: Schema.Struct<{
110
+ /** Always granted: only `true` is accepted, so a client cannot believe it refused it. */
111
+ readonly necessary: Schema.optionalKey<Schema.Literal<true>>;
112
+ readonly functional: Schema.optionalKey<Schema.Boolean>;
113
+ readonly analytics: Schema.optionalKey<Schema.Boolean>;
114
+ readonly marketing: Schema.optionalKey<Schema.Boolean>;
115
+ }>;
116
+ export declare const SetConsent: Schema.Struct<{
117
+ readonly choices: Schema.Struct<{
118
+ /** Always granted: only `true` is accepted, so a client cannot believe it refused it. */
119
+ readonly necessary: Schema.optionalKey<Schema.Literal<true>>;
120
+ readonly functional: Schema.optionalKey<Schema.Boolean>;
121
+ readonly analytics: Schema.optionalKey<Schema.Boolean>;
122
+ readonly marketing: Schema.optionalKey<Schema.Boolean>;
123
+ }>;
124
+ /** Where the person is, so categories they did not choose for follow their region. */
125
+ readonly region: Schema.optionalKey<Schema.Struct<{
126
+ readonly country: Schema.optionalKey<Schema.String>;
127
+ readonly timeZone: Schema.optionalKey<Schema.String>;
128
+ }>>;
129
+ }>;
130
+ /**
131
+ * Consent as applied: `necessary` is always granted; a choice wins; otherwise the region's mode (opt-in, the
132
+ * default for an unplaced person, grants nothing).
133
+ */
134
+ export declare const applyConsent: (userId: string, region: string | null, mode: ConsentMode, choices: ReadonlyArray<Pick<ConsentRecord, "category" | "granted" | "decidedAt">>) => ConsentState;
135
+ export declare const PrivacyRequestKind: Schema.Literals<readonly ["export", "erasure"]>;
136
+ export type PrivacyRequestKind = typeof PrivacyRequestKind.Type;
137
+ export declare const PrivacyRequestStatus: Schema.Literals<readonly ["pending", "running", "succeeded", "failed", "cancelled"]>;
138
+ export type PrivacyRequestStatus = typeof PrivacyRequestStatus.Type;
139
+ /** What one source held (export) or did (erasure) for the person. */
140
+ export declare const SourceOutcome: Schema.Struct<{
141
+ /** `<module>.<entity>` for a module's entity; `eloxiv.<source>` for the kernel's own (connections, history...). */
142
+ readonly source: Schema.String;
143
+ readonly records: Schema.Number;
144
+ /** Erasure: deleted, anonymised, retained (with the declared reason) or none. */
145
+ readonly outcome: Schema.Literals<readonly ["exported", "deleted", "anonymised", "retained", "none"]>;
146
+ readonly reason: Schema.NullOr<Schema.String>;
147
+ }>;
148
+ export type SourceOutcome = typeof SourceOutcome.Type;
149
+ /** A request (table `eloxiv_privacy.request`; the requester and the subject see it). */
150
+ export declare const PrivacyRequest: Schema.Struct<{
151
+ readonly id: Schema.String;
152
+ readonly orgId: Schema.String;
153
+ readonly kind: Schema.Literals<readonly ["export", "erasure"]>;
154
+ readonly subjectId: Schema.String;
155
+ readonly requestedBy: Schema.String;
156
+ readonly status: Schema.Literals<readonly ["pending", "running", "succeeded", "failed", "cancelled"]>;
157
+ /** The Progress task that reports it (the requester's). */
158
+ readonly taskId: Schema.NullOr<Schema.String>;
159
+ readonly sources: Schema.$Array<Schema.Struct<{
160
+ /** `<module>.<entity>` for a module's entity; `eloxiv.<source>` for the kernel's own (connections, history...). */
161
+ readonly source: Schema.String;
162
+ readonly records: Schema.Number;
163
+ /** Erasure: deleted, anonymised, retained (with the declared reason) or none. */
164
+ readonly outcome: Schema.Literals<readonly ["exported", "deleted", "anonymised", "retained", "none"]>;
165
+ readonly reason: Schema.NullOr<Schema.String>;
166
+ }>>;
167
+ readonly error: Schema.NullOr<Schema.String>;
168
+ readonly createdAt: Schema.Number;
169
+ readonly finishedAt: Schema.NullOr<Schema.Number>;
170
+ }>;
171
+ export type PrivacyRequest = typeof PrivacyRequest.Type;
172
+ /** An export: every source's records about the person, in the organisation it was made in. */
173
+ export declare const DataExport: Schema.Struct<{
174
+ readonly requestId: Schema.String;
175
+ readonly orgId: Schema.String;
176
+ readonly subjectId: Schema.String;
177
+ readonly generatedAt: Schema.Number;
178
+ readonly sources: Schema.$Array<Schema.Struct<{
179
+ readonly source: Schema.String;
180
+ readonly records: Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>;
181
+ }>>;
182
+ }>;
183
+ export type DataExport = typeof DataExport.Type;
184
+ export declare const RequestFor: Schema.Struct<{
185
+ /** The member the request is about (default: yourself; another member needs eloxiv.privacy.manage). */
186
+ readonly subject: Schema.optionalKey<Schema.String>;
187
+ }>;
188
+ export declare const RequestRef: Schema.Struct<{
189
+ readonly id: Schema.String;
190
+ }>;
191
+ export declare const RequestCreated: Schema.Struct<{
192
+ readonly id: Schema.String;
193
+ readonly taskId: Schema.String;
194
+ }>;
195
+ export declare const PrivacyRequests: Schema.Struct<{
196
+ readonly requests: Schema.$Array<Schema.Struct<{
197
+ readonly id: Schema.String;
198
+ readonly orgId: Schema.String;
199
+ readonly kind: Schema.Literals<readonly ["export", "erasure"]>;
200
+ readonly subjectId: Schema.String;
201
+ readonly requestedBy: Schema.String;
202
+ readonly status: Schema.Literals<readonly ["pending", "running", "succeeded", "failed", "cancelled"]>;
203
+ /** The Progress task that reports it (the requester's). */
204
+ readonly taskId: Schema.NullOr<Schema.String>;
205
+ readonly sources: Schema.$Array<Schema.Struct<{
206
+ /** `<module>.<entity>` for a module's entity; `eloxiv.<source>` for the kernel's own (connections, history...). */
207
+ readonly source: Schema.String;
208
+ readonly records: Schema.Number;
209
+ /** Erasure: deleted, anonymised, retained (with the declared reason) or none. */
210
+ readonly outcome: Schema.Literals<readonly ["exported", "deleted", "anonymised", "retained", "none"]>;
211
+ readonly reason: Schema.NullOr<Schema.String>;
212
+ }>>;
213
+ readonly error: Schema.NullOr<Schema.String>;
214
+ readonly createdAt: Schema.Number;
215
+ readonly finishedAt: Schema.NullOr<Schema.Number>;
216
+ }>>;
217
+ }>;
218
+ /** The kernel actions (module `privacy`). */
219
+ export declare const PRIVACY_ACTIONS: {
220
+ readonly getConsent: "privacy.getConsent";
221
+ readonly setConsent: "privacy.setConsent";
222
+ readonly requestExport: "privacy.requestExport";
223
+ readonly requestErasure: "privacy.requestErasure";
224
+ readonly requests: "privacy.requests";
225
+ readonly download: "privacy.download";
226
+ };
227
+ /** The routes of a visitor's consent and attribution (no session needed), and the cookie that names the visit. */
228
+ export declare const VISIT_PATHS: {
229
+ readonly visit: "/privacy/visit";
230
+ readonly claim: "/privacy/visit/claim";
231
+ };
232
+ export declare const VISIT_COOKIE = "eloxiv_visit";
233
+ /** How long a visit is kept without being seen (the cookie's age too): a year. */
234
+ export declare const VISIT_DAYS = 365;
235
+ /** Ad-click ids whose presence (never their value) a touch records. */
236
+ export declare const CLICK_IDS: readonly ["gclid", "gbraid", "wbraid", "fbclid", "msclkid", "ttclid", "li_fat_id"];
237
+ /** Where a visit came from, as the page saw it (UTM parameters, the referrer, the landing path, ad-click ids). */
238
+ export declare const VisitTouch: Schema.Struct<{
239
+ readonly source: Schema.optionalKey<Schema.String>;
240
+ readonly medium: Schema.optionalKey<Schema.String>;
241
+ readonly campaign: Schema.optionalKey<Schema.String>;
242
+ readonly term: Schema.optionalKey<Schema.String>;
243
+ readonly content: Schema.optionalKey<Schema.String>;
244
+ /** The referring URL: only its host is kept. */
245
+ readonly referrer: Schema.optionalKey<Schema.String>;
246
+ /** The landing page's path: its query and fragment are dropped. */
247
+ readonly landingPath: Schema.optionalKey<Schema.String>;
248
+ readonly clickIds: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["gclid", "gbraid", "wbraid", "fbclid", "msclkid", "ttclid", "li_fat_id"]>>>;
249
+ }>;
250
+ export type VisitTouch = typeof VisitTouch.Type;
251
+ /** A touch as recorded: its channel, what of it is kept, and when. */
252
+ export declare const Touch: Schema.Struct<{
253
+ readonly channel: Schema.Literals<readonly ["paid", "campaign", "referral", "direct"]>;
254
+ readonly source: Schema.NullOr<Schema.String>;
255
+ readonly medium: Schema.NullOr<Schema.String>;
256
+ readonly campaign: Schema.NullOr<Schema.String>;
257
+ readonly term: Schema.NullOr<Schema.String>;
258
+ readonly content: Schema.NullOr<Schema.String>;
259
+ readonly referrerHost: Schema.NullOr<Schema.String>;
260
+ readonly landingPath: Schema.NullOr<Schema.String>;
261
+ readonly clickIds: Schema.$Array<Schema.String>;
262
+ readonly at: Schema.String;
263
+ }>;
264
+ export type Touch = typeof Touch.Type;
265
+ /** First and last touch of a visit (null without the visitor's marketing consent). */
266
+ export declare const Attribution: Schema.Struct<{
267
+ readonly first: Schema.Struct<{
268
+ readonly channel: Schema.Literals<readonly ["paid", "campaign", "referral", "direct"]>;
269
+ readonly source: Schema.NullOr<Schema.String>;
270
+ readonly medium: Schema.NullOr<Schema.String>;
271
+ readonly campaign: Schema.NullOr<Schema.String>;
272
+ readonly term: Schema.NullOr<Schema.String>;
273
+ readonly content: Schema.NullOr<Schema.String>;
274
+ readonly referrerHost: Schema.NullOr<Schema.String>;
275
+ readonly landingPath: Schema.NullOr<Schema.String>;
276
+ readonly clickIds: Schema.$Array<Schema.String>;
277
+ readonly at: Schema.String;
278
+ }>;
279
+ readonly last: Schema.Struct<{
280
+ readonly channel: Schema.Literals<readonly ["paid", "campaign", "referral", "direct"]>;
281
+ readonly source: Schema.NullOr<Schema.String>;
282
+ readonly medium: Schema.NullOr<Schema.String>;
283
+ readonly campaign: Schema.NullOr<Schema.String>;
284
+ readonly term: Schema.NullOr<Schema.String>;
285
+ readonly content: Schema.NullOr<Schema.String>;
286
+ readonly referrerHost: Schema.NullOr<Schema.String>;
287
+ readonly landingPath: Schema.NullOr<Schema.String>;
288
+ readonly clickIds: Schema.$Array<Schema.String>;
289
+ readonly at: Schema.String;
290
+ }>;
291
+ }>;
292
+ export type Attribution = typeof Attribution.Type;
293
+ /** `POST /privacy/visit`: the visitor's choices, where they are, and the touch that brought them. */
294
+ export declare const VisitRequest: Schema.Struct<{
295
+ readonly choices: Schema.optionalKey<Schema.Struct<{
296
+ /** Always granted: only `true` is accepted, so a client cannot believe it refused it. */
297
+ readonly necessary: Schema.optionalKey<Schema.Literal<true>>;
298
+ readonly functional: Schema.optionalKey<Schema.Boolean>;
299
+ readonly analytics: Schema.optionalKey<Schema.Boolean>;
300
+ readonly marketing: Schema.optionalKey<Schema.Boolean>;
301
+ }>>;
302
+ readonly region: Schema.optionalKey<Schema.Struct<{
303
+ readonly country: Schema.optionalKey<Schema.String>;
304
+ readonly timeZone: Schema.optionalKey<Schema.String>;
305
+ }>>;
306
+ readonly touch: Schema.optionalKey<Schema.Struct<{
307
+ readonly source: Schema.optionalKey<Schema.String>;
308
+ readonly medium: Schema.optionalKey<Schema.String>;
309
+ readonly campaign: Schema.optionalKey<Schema.String>;
310
+ readonly term: Schema.optionalKey<Schema.String>;
311
+ readonly content: Schema.optionalKey<Schema.String>;
312
+ /** The referring URL: only its host is kept. */
313
+ readonly referrer: Schema.optionalKey<Schema.String>;
314
+ /** The landing page's path: its query and fragment are dropped. */
315
+ readonly landingPath: Schema.optionalKey<Schema.String>;
316
+ readonly clickIds: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["gclid", "gbraid", "wbraid", "fbclid", "msclkid", "ttclid", "li_fat_id"]>>>;
317
+ }>>;
318
+ }>;
319
+ export type VisitRequest = typeof VisitRequest.Type;
320
+ /** A visitor's consent, as applied (the person's id is empty: they are not signed in), and their attribution. */
321
+ export declare const VisitState: Schema.Struct<{
322
+ readonly consent: Schema.Struct<{
323
+ readonly userId: Schema.String;
324
+ /** The region recorded for the person (`null`: not placed, so the deployment's default mode applies). */
325
+ readonly region: Schema.NullOr<Schema.String>;
326
+ readonly mode: Schema.Literals<readonly ["opt-in", "opt-out"]>;
327
+ readonly categories: Schema.Struct<{
328
+ readonly necessary: Schema.Struct<{
329
+ readonly granted: Schema.Boolean;
330
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
331
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
332
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
333
+ }>;
334
+ readonly functional: Schema.Struct<{
335
+ readonly granted: Schema.Boolean;
336
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
337
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
338
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
339
+ }>;
340
+ readonly analytics: Schema.Struct<{
341
+ readonly granted: Schema.Boolean;
342
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
343
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
344
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
345
+ }>;
346
+ readonly marketing: Schema.Struct<{
347
+ readonly granted: Schema.Boolean;
348
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
349
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
350
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
351
+ }>;
352
+ }>;
353
+ }>;
354
+ readonly attribution: Schema.NullOr<Schema.Struct<{
355
+ readonly first: Schema.Struct<{
356
+ readonly channel: Schema.Literals<readonly ["paid", "campaign", "referral", "direct"]>;
357
+ readonly source: Schema.NullOr<Schema.String>;
358
+ readonly medium: Schema.NullOr<Schema.String>;
359
+ readonly campaign: Schema.NullOr<Schema.String>;
360
+ readonly term: Schema.NullOr<Schema.String>;
361
+ readonly content: Schema.NullOr<Schema.String>;
362
+ readonly referrerHost: Schema.NullOr<Schema.String>;
363
+ readonly landingPath: Schema.NullOr<Schema.String>;
364
+ readonly clickIds: Schema.$Array<Schema.String>;
365
+ readonly at: Schema.String;
366
+ }>;
367
+ readonly last: Schema.Struct<{
368
+ readonly channel: Schema.Literals<readonly ["paid", "campaign", "referral", "direct"]>;
369
+ readonly source: Schema.NullOr<Schema.String>;
370
+ readonly medium: Schema.NullOr<Schema.String>;
371
+ readonly campaign: Schema.NullOr<Schema.String>;
372
+ readonly term: Schema.NullOr<Schema.String>;
373
+ readonly content: Schema.NullOr<Schema.String>;
374
+ readonly referrerHost: Schema.NullOr<Schema.String>;
375
+ readonly landingPath: Schema.NullOr<Schema.String>;
376
+ readonly clickIds: Schema.$Array<Schema.String>;
377
+ readonly at: Schema.String;
378
+ }>;
379
+ }>>;
380
+ /**
381
+ * What the page sends to claim the visit once the person signs in (`POST /privacy/visit/claim`): the visit's
382
+ * reference, sealed with the kernel's key. Never the cookie, which stays HttpOnly. Null before a visit exists.
383
+ */
384
+ readonly claim: Schema.NullOr<Schema.String>;
385
+ }>;
386
+ export type VisitState = typeof VisitState.Type;
387
+ /** `POST /privacy/visit/claim`: what a signed-in person's claim of their visit carried into the organisation. */
388
+ export declare const VisitClaimed: Schema.Struct<{
389
+ /** The categories whose visitor choice became the person's (those they had not chosen themselves). */
390
+ readonly carried: Schema.$Array<Schema.Literals<readonly ["necessary", "functional", "analytics", "marketing"]>>;
391
+ /** The person's consent in the organisation as it now applies: what a client follows from here on. */
392
+ readonly consent: Schema.Struct<{
393
+ readonly userId: Schema.String;
394
+ /** The region recorded for the person (`null`: not placed, so the deployment's default mode applies). */
395
+ readonly region: Schema.NullOr<Schema.String>;
396
+ readonly mode: Schema.Literals<readonly ["opt-in", "opt-out"]>;
397
+ readonly categories: Schema.Struct<{
398
+ readonly necessary: Schema.Struct<{
399
+ readonly granted: Schema.Boolean;
400
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
401
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
402
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
403
+ }>;
404
+ readonly functional: Schema.Struct<{
405
+ readonly granted: Schema.Boolean;
406
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
407
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
408
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
409
+ }>;
410
+ readonly analytics: Schema.Struct<{
411
+ readonly granted: Schema.Boolean;
412
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
413
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
414
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
415
+ }>;
416
+ readonly marketing: Schema.Struct<{
417
+ readonly granted: Schema.Boolean;
418
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
419
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
420
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
421
+ }>;
422
+ }>;
423
+ }>;
424
+ readonly attribution: Schema.NullOr<Schema.Struct<{
425
+ readonly first: Schema.Struct<{
426
+ readonly channel: Schema.Literals<readonly ["paid", "campaign", "referral", "direct"]>;
427
+ readonly source: Schema.NullOr<Schema.String>;
428
+ readonly medium: Schema.NullOr<Schema.String>;
429
+ readonly campaign: Schema.NullOr<Schema.String>;
430
+ readonly term: Schema.NullOr<Schema.String>;
431
+ readonly content: Schema.NullOr<Schema.String>;
432
+ readonly referrerHost: Schema.NullOr<Schema.String>;
433
+ readonly landingPath: Schema.NullOr<Schema.String>;
434
+ readonly clickIds: Schema.$Array<Schema.String>;
435
+ readonly at: Schema.String;
436
+ }>;
437
+ readonly last: Schema.Struct<{
438
+ readonly channel: Schema.Literals<readonly ["paid", "campaign", "referral", "direct"]>;
439
+ readonly source: Schema.NullOr<Schema.String>;
440
+ readonly medium: Schema.NullOr<Schema.String>;
441
+ readonly campaign: Schema.NullOr<Schema.String>;
442
+ readonly term: Schema.NullOr<Schema.String>;
443
+ readonly content: Schema.NullOr<Schema.String>;
444
+ readonly referrerHost: Schema.NullOr<Schema.String>;
445
+ readonly landingPath: Schema.NullOr<Schema.String>;
446
+ readonly clickIds: Schema.$Array<Schema.String>;
447
+ readonly at: Schema.String;
448
+ }>;
449
+ }>>;
450
+ }>;
451
+ export type VisitClaimed = typeof VisitClaimed.Type;
452
+ /** The channel of a touch: a click id or a paid medium is `paid`, UTM parameters `campaign`, a referrer `referral`. */
453
+ export declare const touchChannel: (touch: VisitTouch, referrerHost: string | null) => Touch["channel"];
454
+ export declare const PrivacyContract: import("../Service.ts").ServiceContract<"Privacy", {
455
+ readonly getConsent: import("../Service.ts").OperationContract<Schema.Struct<{}>, Schema.Struct<{
456
+ readonly userId: Schema.String;
457
+ /** The region recorded for the person (`null`: not placed, so the deployment's default mode applies). */
458
+ readonly region: Schema.NullOr<Schema.String>;
459
+ readonly mode: Schema.Literals<readonly ["opt-in", "opt-out"]>;
460
+ readonly categories: Schema.Struct<{
461
+ readonly necessary: Schema.Struct<{
462
+ readonly granted: Schema.Boolean;
463
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
464
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
465
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
466
+ }>;
467
+ readonly functional: Schema.Struct<{
468
+ readonly granted: Schema.Boolean;
469
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
470
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
471
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
472
+ }>;
473
+ readonly analytics: Schema.Struct<{
474
+ readonly granted: Schema.Boolean;
475
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
476
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
477
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
478
+ }>;
479
+ readonly marketing: Schema.Struct<{
480
+ readonly granted: Schema.Boolean;
481
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
482
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
483
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
484
+ }>;
485
+ }>;
486
+ }>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
487
+ readonly setConsent: import("../Service.ts").OperationContract<Schema.Struct<{
488
+ readonly choices: Schema.Struct<{
489
+ /** Always granted: only `true` is accepted, so a client cannot believe it refused it. */
490
+ readonly necessary: Schema.optionalKey<Schema.Literal<true>>;
491
+ readonly functional: Schema.optionalKey<Schema.Boolean>;
492
+ readonly analytics: Schema.optionalKey<Schema.Boolean>;
493
+ readonly marketing: Schema.optionalKey<Schema.Boolean>;
494
+ }>;
495
+ /** Where the person is, so categories they did not choose for follow their region. */
496
+ readonly region: Schema.optionalKey<Schema.Struct<{
497
+ readonly country: Schema.optionalKey<Schema.String>;
498
+ readonly timeZone: Schema.optionalKey<Schema.String>;
499
+ }>>;
500
+ }>, Schema.Struct<{
501
+ readonly userId: Schema.String;
502
+ /** The region recorded for the person (`null`: not placed, so the deployment's default mode applies). */
503
+ readonly region: Schema.NullOr<Schema.String>;
504
+ readonly mode: Schema.Literals<readonly ["opt-in", "opt-out"]>;
505
+ readonly categories: Schema.Struct<{
506
+ readonly necessary: Schema.Struct<{
507
+ readonly granted: Schema.Boolean;
508
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
509
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
510
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
511
+ }>;
512
+ readonly functional: Schema.Struct<{
513
+ readonly granted: Schema.Boolean;
514
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
515
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
516
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
517
+ }>;
518
+ readonly analytics: Schema.Struct<{
519
+ readonly granted: Schema.Boolean;
520
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
521
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
522
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
523
+ }>;
524
+ readonly marketing: Schema.Struct<{
525
+ readonly granted: Schema.Boolean;
526
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
527
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
528
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
529
+ }>;
530
+ }>;
531
+ }>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
532
+ readonly allows: import("../Service.ts").OperationContract<Schema.Struct<{
533
+ readonly userId: Schema.String;
534
+ readonly category: Schema.Literals<readonly ["necessary", "functional", "analytics", "marketing"]>;
535
+ }>, Schema.Boolean, Schema.Never>;
536
+ readonly requestExport: import("../Service.ts").OperationContract<Schema.Struct<{
537
+ /** The member the request is about (default: yourself; another member needs eloxiv.privacy.manage). */
538
+ readonly subject: Schema.optionalKey<Schema.String>;
539
+ }>, Schema.Struct<{
540
+ readonly id: Schema.String;
541
+ readonly taskId: Schema.String;
542
+ }>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
543
+ readonly requestErasure: import("../Service.ts").OperationContract<Schema.Struct<{
544
+ /** The member the request is about (default: yourself; another member needs eloxiv.privacy.manage). */
545
+ readonly subject: Schema.optionalKey<Schema.String>;
546
+ }>, Schema.Struct<{
547
+ readonly id: Schema.String;
548
+ readonly taskId: Schema.String;
549
+ }>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
550
+ readonly requests: import("../Service.ts").OperationContract<Schema.Struct<{}>, Schema.Struct<{
551
+ readonly requests: Schema.$Array<Schema.Struct<{
552
+ readonly id: Schema.String;
553
+ readonly orgId: Schema.String;
554
+ readonly kind: Schema.Literals<readonly ["export", "erasure"]>;
555
+ readonly subjectId: Schema.String;
556
+ readonly requestedBy: Schema.String;
557
+ readonly status: Schema.Literals<readonly ["pending", "running", "succeeded", "failed", "cancelled"]>;
558
+ /** The Progress task that reports it (the requester's). */
559
+ readonly taskId: Schema.NullOr<Schema.String>;
560
+ readonly sources: Schema.$Array<Schema.Struct<{
561
+ /** `<module>.<entity>` for a module's entity; `eloxiv.<source>` for the kernel's own (connections, history...). */
562
+ readonly source: Schema.String;
563
+ readonly records: Schema.Number;
564
+ /** Erasure: deleted, anonymised, retained (with the declared reason) or none. */
565
+ readonly outcome: Schema.Literals<readonly ["exported", "deleted", "anonymised", "retained", "none"]>;
566
+ readonly reason: Schema.NullOr<Schema.String>;
567
+ }>>;
568
+ readonly error: Schema.NullOr<Schema.String>;
569
+ readonly createdAt: Schema.Number;
570
+ readonly finishedAt: Schema.NullOr<Schema.Number>;
571
+ }>>;
572
+ }>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
573
+ readonly download: import("../Service.ts").OperationContract<Schema.Struct<{
574
+ readonly id: Schema.String;
575
+ }>, Schema.Struct<{
576
+ readonly requestId: Schema.String;
577
+ readonly orgId: Schema.String;
578
+ readonly subjectId: Schema.String;
579
+ readonly generatedAt: Schema.Number;
580
+ readonly sources: Schema.$Array<Schema.Struct<{
581
+ readonly source: Schema.String;
582
+ readonly records: Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>;
583
+ }>>;
584
+ }>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
585
+ readonly visit: import("../Service.ts").OperationContract<Schema.Struct<{
586
+ readonly choices: Schema.optionalKey<Schema.Struct<{
587
+ /** Always granted: only `true` is accepted, so a client cannot believe it refused it. */
588
+ readonly necessary: Schema.optionalKey<Schema.Literal<true>>;
589
+ readonly functional: Schema.optionalKey<Schema.Boolean>;
590
+ readonly analytics: Schema.optionalKey<Schema.Boolean>;
591
+ readonly marketing: Schema.optionalKey<Schema.Boolean>;
592
+ }>>;
593
+ readonly region: Schema.optionalKey<Schema.Struct<{
594
+ readonly country: Schema.optionalKey<Schema.String>;
595
+ readonly timeZone: Schema.optionalKey<Schema.String>;
596
+ }>>;
597
+ readonly touch: Schema.optionalKey<Schema.Struct<{
598
+ readonly source: Schema.optionalKey<Schema.String>;
599
+ readonly medium: Schema.optionalKey<Schema.String>;
600
+ readonly campaign: Schema.optionalKey<Schema.String>;
601
+ readonly term: Schema.optionalKey<Schema.String>;
602
+ readonly content: Schema.optionalKey<Schema.String>;
603
+ /** The referring URL: only its host is kept. */
604
+ readonly referrer: Schema.optionalKey<Schema.String>;
605
+ /** The landing page's path: its query and fragment are dropped. */
606
+ readonly landingPath: Schema.optionalKey<Schema.String>;
607
+ readonly clickIds: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["gclid", "gbraid", "wbraid", "fbclid", "msclkid", "ttclid", "li_fat_id"]>>>;
608
+ }>>;
609
+ }>, Schema.Struct<{
610
+ readonly consent: Schema.Struct<{
611
+ readonly userId: Schema.String;
612
+ /** The region recorded for the person (`null`: not placed, so the deployment's default mode applies). */
613
+ readonly region: Schema.NullOr<Schema.String>;
614
+ readonly mode: Schema.Literals<readonly ["opt-in", "opt-out"]>;
615
+ readonly categories: Schema.Struct<{
616
+ readonly necessary: Schema.Struct<{
617
+ readonly granted: Schema.Boolean;
618
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
619
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
620
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
621
+ }>;
622
+ readonly functional: Schema.Struct<{
623
+ readonly granted: Schema.Boolean;
624
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
625
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
626
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
627
+ }>;
628
+ readonly analytics: Schema.Struct<{
629
+ readonly granted: Schema.Boolean;
630
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
631
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
632
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
633
+ }>;
634
+ readonly marketing: Schema.Struct<{
635
+ readonly granted: Schema.Boolean;
636
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
637
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
638
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
639
+ }>;
640
+ }>;
641
+ }>;
642
+ readonly attribution: Schema.NullOr<Schema.Struct<{
643
+ readonly first: Schema.Struct<{
644
+ readonly channel: Schema.Literals<readonly ["paid", "campaign", "referral", "direct"]>;
645
+ readonly source: Schema.NullOr<Schema.String>;
646
+ readonly medium: Schema.NullOr<Schema.String>;
647
+ readonly campaign: Schema.NullOr<Schema.String>;
648
+ readonly term: Schema.NullOr<Schema.String>;
649
+ readonly content: Schema.NullOr<Schema.String>;
650
+ readonly referrerHost: Schema.NullOr<Schema.String>;
651
+ readonly landingPath: Schema.NullOr<Schema.String>;
652
+ readonly clickIds: Schema.$Array<Schema.String>;
653
+ readonly at: Schema.String;
654
+ }>;
655
+ readonly last: Schema.Struct<{
656
+ readonly channel: Schema.Literals<readonly ["paid", "campaign", "referral", "direct"]>;
657
+ readonly source: Schema.NullOr<Schema.String>;
658
+ readonly medium: Schema.NullOr<Schema.String>;
659
+ readonly campaign: Schema.NullOr<Schema.String>;
660
+ readonly term: Schema.NullOr<Schema.String>;
661
+ readonly content: Schema.NullOr<Schema.String>;
662
+ readonly referrerHost: Schema.NullOr<Schema.String>;
663
+ readonly landingPath: Schema.NullOr<Schema.String>;
664
+ readonly clickIds: Schema.$Array<Schema.String>;
665
+ readonly at: Schema.String;
666
+ }>;
667
+ }>>;
668
+ /**
669
+ * What the page sends to claim the visit once the person signs in (`POST /privacy/visit/claim`): the visit's
670
+ * reference, sealed with the kernel's key. Never the cookie, which stays HttpOnly. Null before a visit exists.
671
+ */
672
+ readonly claim: Schema.NullOr<Schema.String>;
673
+ }>, Schema.Union<readonly [typeof InvalidInput]>>;
674
+ readonly claimVisit: import("../Service.ts").OperationContract<Schema.Struct<{
675
+ readonly claim: Schema.String;
676
+ }>, Schema.Struct<{
677
+ /** The categories whose visitor choice became the person's (those they had not chosen themselves). */
678
+ readonly carried: Schema.$Array<Schema.Literals<readonly ["necessary", "functional", "analytics", "marketing"]>>;
679
+ /** The person's consent in the organisation as it now applies: what a client follows from here on. */
680
+ readonly consent: Schema.Struct<{
681
+ readonly userId: Schema.String;
682
+ /** The region recorded for the person (`null`: not placed, so the deployment's default mode applies). */
683
+ readonly region: Schema.NullOr<Schema.String>;
684
+ readonly mode: Schema.Literals<readonly ["opt-in", "opt-out"]>;
685
+ readonly categories: Schema.Struct<{
686
+ readonly necessary: Schema.Struct<{
687
+ readonly granted: Schema.Boolean;
688
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
689
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
690
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
691
+ }>;
692
+ readonly functional: Schema.Struct<{
693
+ readonly granted: Schema.Boolean;
694
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
695
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
696
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
697
+ }>;
698
+ readonly analytics: Schema.Struct<{
699
+ readonly granted: Schema.Boolean;
700
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
701
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
702
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
703
+ }>;
704
+ readonly marketing: Schema.Struct<{
705
+ readonly granted: Schema.Boolean;
706
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
707
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
708
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
709
+ }>;
710
+ }>;
711
+ }>;
712
+ readonly attribution: Schema.NullOr<Schema.Struct<{
713
+ readonly first: Schema.Struct<{
714
+ readonly channel: Schema.Literals<readonly ["paid", "campaign", "referral", "direct"]>;
715
+ readonly source: Schema.NullOr<Schema.String>;
716
+ readonly medium: Schema.NullOr<Schema.String>;
717
+ readonly campaign: Schema.NullOr<Schema.String>;
718
+ readonly term: Schema.NullOr<Schema.String>;
719
+ readonly content: Schema.NullOr<Schema.String>;
720
+ readonly referrerHost: Schema.NullOr<Schema.String>;
721
+ readonly landingPath: Schema.NullOr<Schema.String>;
722
+ readonly clickIds: Schema.$Array<Schema.String>;
723
+ readonly at: Schema.String;
724
+ }>;
725
+ readonly last: Schema.Struct<{
726
+ readonly channel: Schema.Literals<readonly ["paid", "campaign", "referral", "direct"]>;
727
+ readonly source: Schema.NullOr<Schema.String>;
728
+ readonly medium: Schema.NullOr<Schema.String>;
729
+ readonly campaign: Schema.NullOr<Schema.String>;
730
+ readonly term: Schema.NullOr<Schema.String>;
731
+ readonly content: Schema.NullOr<Schema.String>;
732
+ readonly referrerHost: Schema.NullOr<Schema.String>;
733
+ readonly landingPath: Schema.NullOr<Schema.String>;
734
+ readonly clickIds: Schema.$Array<Schema.String>;
735
+ readonly at: Schema.String;
736
+ }>;
737
+ }>>;
738
+ }>, Schema.Union<readonly [typeof Unauthenticated, typeof Forbidden, typeof InvalidInput]>>;
739
+ }, {
740
+ readonly VisitRequest: Schema.Struct<{
741
+ readonly choices: Schema.optionalKey<Schema.Struct<{
742
+ /** Always granted: only `true` is accepted, so a client cannot believe it refused it. */
743
+ readonly necessary: Schema.optionalKey<Schema.Literal<true>>;
744
+ readonly functional: Schema.optionalKey<Schema.Boolean>;
745
+ readonly analytics: Schema.optionalKey<Schema.Boolean>;
746
+ readonly marketing: Schema.optionalKey<Schema.Boolean>;
747
+ }>>;
748
+ readonly region: Schema.optionalKey<Schema.Struct<{
749
+ readonly country: Schema.optionalKey<Schema.String>;
750
+ readonly timeZone: Schema.optionalKey<Schema.String>;
751
+ }>>;
752
+ readonly touch: Schema.optionalKey<Schema.Struct<{
753
+ readonly source: Schema.optionalKey<Schema.String>;
754
+ readonly medium: Schema.optionalKey<Schema.String>;
755
+ readonly campaign: Schema.optionalKey<Schema.String>;
756
+ readonly term: Schema.optionalKey<Schema.String>;
757
+ readonly content: Schema.optionalKey<Schema.String>;
758
+ /** The referring URL: only its host is kept. */
759
+ readonly referrer: Schema.optionalKey<Schema.String>;
760
+ /** The landing page's path: its query and fragment are dropped. */
761
+ readonly landingPath: Schema.optionalKey<Schema.String>;
762
+ readonly clickIds: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["gclid", "gbraid", "wbraid", "fbclid", "msclkid", "ttclid", "li_fat_id"]>>>;
763
+ }>>;
764
+ }>;
765
+ readonly VisitState: Schema.Struct<{
766
+ readonly consent: Schema.Struct<{
767
+ readonly userId: Schema.String;
768
+ /** The region recorded for the person (`null`: not placed, so the deployment's default mode applies). */
769
+ readonly region: Schema.NullOr<Schema.String>;
770
+ readonly mode: Schema.Literals<readonly ["opt-in", "opt-out"]>;
771
+ readonly categories: Schema.Struct<{
772
+ readonly necessary: Schema.Struct<{
773
+ readonly granted: Schema.Boolean;
774
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
775
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
776
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
777
+ }>;
778
+ readonly functional: Schema.Struct<{
779
+ readonly granted: Schema.Boolean;
780
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
781
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
782
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
783
+ }>;
784
+ readonly analytics: Schema.Struct<{
785
+ readonly granted: Schema.Boolean;
786
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
787
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
788
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
789
+ }>;
790
+ readonly marketing: Schema.Struct<{
791
+ readonly granted: Schema.Boolean;
792
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
793
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
794
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
795
+ }>;
796
+ }>;
797
+ }>;
798
+ readonly attribution: Schema.NullOr<Schema.Struct<{
799
+ readonly first: Schema.Struct<{
800
+ readonly channel: Schema.Literals<readonly ["paid", "campaign", "referral", "direct"]>;
801
+ readonly source: Schema.NullOr<Schema.String>;
802
+ readonly medium: Schema.NullOr<Schema.String>;
803
+ readonly campaign: Schema.NullOr<Schema.String>;
804
+ readonly term: Schema.NullOr<Schema.String>;
805
+ readonly content: Schema.NullOr<Schema.String>;
806
+ readonly referrerHost: Schema.NullOr<Schema.String>;
807
+ readonly landingPath: Schema.NullOr<Schema.String>;
808
+ readonly clickIds: Schema.$Array<Schema.String>;
809
+ readonly at: Schema.String;
810
+ }>;
811
+ readonly last: Schema.Struct<{
812
+ readonly channel: Schema.Literals<readonly ["paid", "campaign", "referral", "direct"]>;
813
+ readonly source: Schema.NullOr<Schema.String>;
814
+ readonly medium: Schema.NullOr<Schema.String>;
815
+ readonly campaign: Schema.NullOr<Schema.String>;
816
+ readonly term: Schema.NullOr<Schema.String>;
817
+ readonly content: Schema.NullOr<Schema.String>;
818
+ readonly referrerHost: Schema.NullOr<Schema.String>;
819
+ readonly landingPath: Schema.NullOr<Schema.String>;
820
+ readonly clickIds: Schema.$Array<Schema.String>;
821
+ readonly at: Schema.String;
822
+ }>;
823
+ }>>;
824
+ /**
825
+ * What the page sends to claim the visit once the person signs in (`POST /privacy/visit/claim`): the visit's
826
+ * reference, sealed with the kernel's key. Never the cookie, which stays HttpOnly. Null before a visit exists.
827
+ */
828
+ readonly claim: Schema.NullOr<Schema.String>;
829
+ }>;
830
+ readonly VisitClaimed: Schema.Struct<{
831
+ /** The categories whose visitor choice became the person's (those they had not chosen themselves). */
832
+ readonly carried: Schema.$Array<Schema.Literals<readonly ["necessary", "functional", "analytics", "marketing"]>>;
833
+ /** The person's consent in the organisation as it now applies: what a client follows from here on. */
834
+ readonly consent: Schema.Struct<{
835
+ readonly userId: Schema.String;
836
+ /** The region recorded for the person (`null`: not placed, so the deployment's default mode applies). */
837
+ readonly region: Schema.NullOr<Schema.String>;
838
+ readonly mode: Schema.Literals<readonly ["opt-in", "opt-out"]>;
839
+ readonly categories: Schema.Struct<{
840
+ readonly necessary: Schema.Struct<{
841
+ readonly granted: Schema.Boolean;
842
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
843
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
844
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
845
+ }>;
846
+ readonly functional: Schema.Struct<{
847
+ readonly granted: Schema.Boolean;
848
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
849
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
850
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
851
+ }>;
852
+ readonly analytics: Schema.Struct<{
853
+ readonly granted: Schema.Boolean;
854
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
855
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
856
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
857
+ }>;
858
+ readonly marketing: Schema.Struct<{
859
+ readonly granted: Schema.Boolean;
860
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
861
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
862
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
863
+ }>;
864
+ }>;
865
+ }>;
866
+ readonly attribution: Schema.NullOr<Schema.Struct<{
867
+ readonly first: Schema.Struct<{
868
+ readonly channel: Schema.Literals<readonly ["paid", "campaign", "referral", "direct"]>;
869
+ readonly source: Schema.NullOr<Schema.String>;
870
+ readonly medium: Schema.NullOr<Schema.String>;
871
+ readonly campaign: Schema.NullOr<Schema.String>;
872
+ readonly term: Schema.NullOr<Schema.String>;
873
+ readonly content: Schema.NullOr<Schema.String>;
874
+ readonly referrerHost: Schema.NullOr<Schema.String>;
875
+ readonly landingPath: Schema.NullOr<Schema.String>;
876
+ readonly clickIds: Schema.$Array<Schema.String>;
877
+ readonly at: Schema.String;
878
+ }>;
879
+ readonly last: Schema.Struct<{
880
+ readonly channel: Schema.Literals<readonly ["paid", "campaign", "referral", "direct"]>;
881
+ readonly source: Schema.NullOr<Schema.String>;
882
+ readonly medium: Schema.NullOr<Schema.String>;
883
+ readonly campaign: Schema.NullOr<Schema.String>;
884
+ readonly term: Schema.NullOr<Schema.String>;
885
+ readonly content: Schema.NullOr<Schema.String>;
886
+ readonly referrerHost: Schema.NullOr<Schema.String>;
887
+ readonly landingPath: Schema.NullOr<Schema.String>;
888
+ readonly clickIds: Schema.$Array<Schema.String>;
889
+ readonly at: Schema.String;
890
+ }>;
891
+ }>>;
892
+ }>;
893
+ readonly VisitTouch: Schema.Struct<{
894
+ readonly source: Schema.optionalKey<Schema.String>;
895
+ readonly medium: Schema.optionalKey<Schema.String>;
896
+ readonly campaign: Schema.optionalKey<Schema.String>;
897
+ readonly term: Schema.optionalKey<Schema.String>;
898
+ readonly content: Schema.optionalKey<Schema.String>;
899
+ /** The referring URL: only its host is kept. */
900
+ readonly referrer: Schema.optionalKey<Schema.String>;
901
+ /** The landing page's path: its query and fragment are dropped. */
902
+ readonly landingPath: Schema.optionalKey<Schema.String>;
903
+ readonly clickIds: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly ["gclid", "gbraid", "wbraid", "fbclid", "msclkid", "ttclid", "li_fat_id"]>>>;
904
+ }>;
905
+ readonly Touch: Schema.Struct<{
906
+ readonly channel: Schema.Literals<readonly ["paid", "campaign", "referral", "direct"]>;
907
+ readonly source: Schema.NullOr<Schema.String>;
908
+ readonly medium: Schema.NullOr<Schema.String>;
909
+ readonly campaign: Schema.NullOr<Schema.String>;
910
+ readonly term: Schema.NullOr<Schema.String>;
911
+ readonly content: Schema.NullOr<Schema.String>;
912
+ readonly referrerHost: Schema.NullOr<Schema.String>;
913
+ readonly landingPath: Schema.NullOr<Schema.String>;
914
+ readonly clickIds: Schema.$Array<Schema.String>;
915
+ readonly at: Schema.String;
916
+ }>;
917
+ readonly Attribution: Schema.Struct<{
918
+ readonly first: Schema.Struct<{
919
+ readonly channel: Schema.Literals<readonly ["paid", "campaign", "referral", "direct"]>;
920
+ readonly source: Schema.NullOr<Schema.String>;
921
+ readonly medium: Schema.NullOr<Schema.String>;
922
+ readonly campaign: Schema.NullOr<Schema.String>;
923
+ readonly term: Schema.NullOr<Schema.String>;
924
+ readonly content: Schema.NullOr<Schema.String>;
925
+ readonly referrerHost: Schema.NullOr<Schema.String>;
926
+ readonly landingPath: Schema.NullOr<Schema.String>;
927
+ readonly clickIds: Schema.$Array<Schema.String>;
928
+ readonly at: Schema.String;
929
+ }>;
930
+ readonly last: Schema.Struct<{
931
+ readonly channel: Schema.Literals<readonly ["paid", "campaign", "referral", "direct"]>;
932
+ readonly source: Schema.NullOr<Schema.String>;
933
+ readonly medium: Schema.NullOr<Schema.String>;
934
+ readonly campaign: Schema.NullOr<Schema.String>;
935
+ readonly term: Schema.NullOr<Schema.String>;
936
+ readonly content: Schema.NullOr<Schema.String>;
937
+ readonly referrerHost: Schema.NullOr<Schema.String>;
938
+ readonly landingPath: Schema.NullOr<Schema.String>;
939
+ readonly clickIds: Schema.$Array<Schema.String>;
940
+ readonly at: Schema.String;
941
+ }>;
942
+ }>;
943
+ readonly ConsentCategory: Schema.Literals<readonly ["necessary", "functional", "analytics", "marketing"]>;
944
+ readonly ConsentMode: Schema.Literals<readonly ["opt-in", "opt-out"]>;
945
+ readonly ConsentState: Schema.Struct<{
946
+ readonly userId: Schema.String;
947
+ /** The region recorded for the person (`null`: not placed, so the deployment's default mode applies). */
948
+ readonly region: Schema.NullOr<Schema.String>;
949
+ readonly mode: Schema.Literals<readonly ["opt-in", "opt-out"]>;
950
+ readonly categories: Schema.Struct<{
951
+ readonly necessary: Schema.Struct<{
952
+ readonly granted: Schema.Boolean;
953
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
954
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
955
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
956
+ }>;
957
+ readonly functional: Schema.Struct<{
958
+ readonly granted: Schema.Boolean;
959
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
960
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
961
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
962
+ }>;
963
+ readonly analytics: Schema.Struct<{
964
+ readonly granted: Schema.Boolean;
965
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
966
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
967
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
968
+ }>;
969
+ readonly marketing: Schema.Struct<{
970
+ readonly granted: Schema.Boolean;
971
+ /** `necessary`: always granted; `choice`: the person decided (at `decidedAt`); `region`: the region's mode. */
972
+ readonly source: Schema.Literals<readonly ["necessary", "choice", "region"]>;
973
+ readonly decidedAt: Schema.NullOr<Schema.Number>;
974
+ }>;
975
+ }>;
976
+ }>;
977
+ readonly ConsentRecord: Schema.Struct<{
978
+ readonly id: Schema.String;
979
+ readonly userId: Schema.String;
980
+ readonly category: Schema.Literals<readonly ["necessary", "functional", "analytics", "marketing"]>;
981
+ readonly granted: Schema.Boolean;
982
+ readonly region: Schema.NullOr<Schema.String>;
983
+ readonly decidedAt: Schema.Number;
984
+ }>;
985
+ readonly PrivacyRequest: Schema.Struct<{
986
+ readonly id: Schema.String;
987
+ readonly orgId: Schema.String;
988
+ readonly kind: Schema.Literals<readonly ["export", "erasure"]>;
989
+ readonly subjectId: Schema.String;
990
+ readonly requestedBy: Schema.String;
991
+ readonly status: Schema.Literals<readonly ["pending", "running", "succeeded", "failed", "cancelled"]>;
992
+ /** The Progress task that reports it (the requester's). */
993
+ readonly taskId: Schema.NullOr<Schema.String>;
994
+ readonly sources: Schema.$Array<Schema.Struct<{
995
+ /** `<module>.<entity>` for a module's entity; `eloxiv.<source>` for the kernel's own (connections, history...). */
996
+ readonly source: Schema.String;
997
+ readonly records: Schema.Number;
998
+ /** Erasure: deleted, anonymised, retained (with the declared reason) or none. */
999
+ readonly outcome: Schema.Literals<readonly ["exported", "deleted", "anonymised", "retained", "none"]>;
1000
+ readonly reason: Schema.NullOr<Schema.String>;
1001
+ }>>;
1002
+ readonly error: Schema.NullOr<Schema.String>;
1003
+ readonly createdAt: Schema.Number;
1004
+ readonly finishedAt: Schema.NullOr<Schema.Number>;
1005
+ }>;
1006
+ readonly SourceOutcome: Schema.Struct<{
1007
+ /** `<module>.<entity>` for a module's entity; `eloxiv.<source>` for the kernel's own (connections, history...). */
1008
+ readonly source: Schema.String;
1009
+ readonly records: Schema.Number;
1010
+ /** Erasure: deleted, anonymised, retained (with the declared reason) or none. */
1011
+ readonly outcome: Schema.Literals<readonly ["exported", "deleted", "anonymised", "retained", "none"]>;
1012
+ readonly reason: Schema.NullOr<Schema.String>;
1013
+ }>;
1014
+ readonly DataExport: Schema.Struct<{
1015
+ readonly requestId: Schema.String;
1016
+ readonly orgId: Schema.String;
1017
+ readonly subjectId: Schema.String;
1018
+ readonly generatedAt: Schema.Number;
1019
+ readonly sources: Schema.$Array<Schema.Struct<{
1020
+ readonly source: Schema.String;
1021
+ readonly records: Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>;
1022
+ }>>;
1023
+ }>;
1024
+ readonly RegionHint: Schema.Struct<{
1025
+ readonly country: Schema.optionalKey<Schema.String>;
1026
+ readonly timeZone: Schema.optionalKey<Schema.String>;
1027
+ }>;
1028
+ }>;
1029
+ //# sourceMappingURL=Privacy.d.ts.map