@eloxiv/contracts 0.0.0-stage → 0.1.1

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 +888 -0
  204. package/dist/contracts/LocalClient.d.ts.map +1 -0
  205. package/dist/contracts/LocalClient.js +429 -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 +1298 -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 +6657 -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 +620 -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,4354 @@
1
+ {
2
+ "title": "Privacy",
3
+ "kind": "kernel",
4
+ "version": "1.1.0",
5
+ "description": "Consent per person and category (necessary, functional, analytics, marketing) with regional rules (opt-in regions, the default, grant nothing until chosen), which Telemetry consults before any analytics event leaves; and data-subject export and erasure across every module (declared in manifests, an undeclared user-referencing entity refuses the app), the kernel's own sources (connections and their connector data, settings, progress, consent, record history) and files, as durable, audited, cancellable workflows scoped to the organisation the request is made in.",
6
+ "operations": {
7
+ "getConsent": {
8
+ "description": "privacy.getConsent: your consent as the kernel applies it, per category, with where each came from.",
9
+ "input": {
10
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
11
+ "not": {
12
+ "type": "null"
13
+ }
14
+ },
15
+ "output": {
16
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
17
+ "type": "object",
18
+ "properties": {
19
+ "userId": {
20
+ "type": "string"
21
+ },
22
+ "region": {
23
+ "anyOf": [
24
+ {
25
+ "type": "string"
26
+ },
27
+ {
28
+ "type": "null"
29
+ }
30
+ ]
31
+ },
32
+ "mode": {
33
+ "type": "string",
34
+ "enum": [
35
+ "opt-in",
36
+ "opt-out"
37
+ ]
38
+ },
39
+ "categories": {
40
+ "type": "object",
41
+ "properties": {
42
+ "necessary": {
43
+ "type": "object",
44
+ "properties": {
45
+ "granted": {
46
+ "type": "boolean"
47
+ },
48
+ "source": {
49
+ "type": "string",
50
+ "enum": [
51
+ "necessary",
52
+ "choice",
53
+ "region"
54
+ ]
55
+ },
56
+ "decidedAt": {
57
+ "anyOf": [
58
+ {
59
+ "type": "number"
60
+ },
61
+ {
62
+ "type": "string",
63
+ "enum": [
64
+ "Infinity",
65
+ "-Infinity",
66
+ "NaN"
67
+ ]
68
+ },
69
+ {
70
+ "type": "null"
71
+ }
72
+ ]
73
+ }
74
+ },
75
+ "required": [
76
+ "granted",
77
+ "source",
78
+ "decidedAt"
79
+ ],
80
+ "additionalProperties": true
81
+ },
82
+ "functional": {
83
+ "type": "object",
84
+ "properties": {
85
+ "granted": {
86
+ "type": "boolean"
87
+ },
88
+ "source": {
89
+ "type": "string",
90
+ "enum": [
91
+ "necessary",
92
+ "choice",
93
+ "region"
94
+ ]
95
+ },
96
+ "decidedAt": {
97
+ "anyOf": [
98
+ {
99
+ "type": "number"
100
+ },
101
+ {
102
+ "type": "string",
103
+ "enum": [
104
+ "Infinity",
105
+ "-Infinity",
106
+ "NaN"
107
+ ]
108
+ },
109
+ {
110
+ "type": "null"
111
+ }
112
+ ]
113
+ }
114
+ },
115
+ "required": [
116
+ "granted",
117
+ "source",
118
+ "decidedAt"
119
+ ],
120
+ "additionalProperties": true
121
+ },
122
+ "analytics": {
123
+ "type": "object",
124
+ "properties": {
125
+ "granted": {
126
+ "type": "boolean"
127
+ },
128
+ "source": {
129
+ "type": "string",
130
+ "enum": [
131
+ "necessary",
132
+ "choice",
133
+ "region"
134
+ ]
135
+ },
136
+ "decidedAt": {
137
+ "anyOf": [
138
+ {
139
+ "type": "number"
140
+ },
141
+ {
142
+ "type": "string",
143
+ "enum": [
144
+ "Infinity",
145
+ "-Infinity",
146
+ "NaN"
147
+ ]
148
+ },
149
+ {
150
+ "type": "null"
151
+ }
152
+ ]
153
+ }
154
+ },
155
+ "required": [
156
+ "granted",
157
+ "source",
158
+ "decidedAt"
159
+ ],
160
+ "additionalProperties": true
161
+ },
162
+ "marketing": {
163
+ "type": "object",
164
+ "properties": {
165
+ "granted": {
166
+ "type": "boolean"
167
+ },
168
+ "source": {
169
+ "type": "string",
170
+ "enum": [
171
+ "necessary",
172
+ "choice",
173
+ "region"
174
+ ]
175
+ },
176
+ "decidedAt": {
177
+ "anyOf": [
178
+ {
179
+ "type": "number"
180
+ },
181
+ {
182
+ "type": "string",
183
+ "enum": [
184
+ "Infinity",
185
+ "-Infinity",
186
+ "NaN"
187
+ ]
188
+ },
189
+ {
190
+ "type": "null"
191
+ }
192
+ ]
193
+ }
194
+ },
195
+ "required": [
196
+ "granted",
197
+ "source",
198
+ "decidedAt"
199
+ ],
200
+ "additionalProperties": true
201
+ }
202
+ },
203
+ "required": [
204
+ "necessary",
205
+ "functional",
206
+ "analytics",
207
+ "marketing"
208
+ ],
209
+ "additionalProperties": true
210
+ }
211
+ },
212
+ "required": [
213
+ "userId",
214
+ "region",
215
+ "mode",
216
+ "categories"
217
+ ],
218
+ "additionalProperties": true
219
+ },
220
+ "errors": {
221
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
222
+ "anyOf": [
223
+ {
224
+ "$ref": "#/$defs/UnauthenticatedEncoded"
225
+ },
226
+ {
227
+ "$ref": "#/$defs/ForbiddenEncoded"
228
+ },
229
+ {
230
+ "$ref": "#/$defs/InvalidInputEncoded"
231
+ }
232
+ ],
233
+ "$defs": {
234
+ "UnauthenticatedEncoded": {
235
+ "type": "object",
236
+ "properties": {
237
+ "_tag": {
238
+ "type": "string",
239
+ "enum": [
240
+ "Unauthenticated"
241
+ ]
242
+ },
243
+ "message": {
244
+ "type": "string"
245
+ }
246
+ },
247
+ "required": [
248
+ "_tag",
249
+ "message"
250
+ ],
251
+ "additionalProperties": true
252
+ },
253
+ "ForbiddenEncoded": {
254
+ "type": "object",
255
+ "properties": {
256
+ "_tag": {
257
+ "type": "string",
258
+ "enum": [
259
+ "Forbidden"
260
+ ]
261
+ },
262
+ "message": {
263
+ "type": "string"
264
+ },
265
+ "action": {
266
+ "type": "string"
267
+ }
268
+ },
269
+ "required": [
270
+ "_tag",
271
+ "message",
272
+ "action"
273
+ ],
274
+ "additionalProperties": true
275
+ },
276
+ "InvalidInputEncoded": {
277
+ "type": "object",
278
+ "properties": {
279
+ "_tag": {
280
+ "type": "string",
281
+ "enum": [
282
+ "InvalidInput"
283
+ ]
284
+ },
285
+ "message": {
286
+ "type": "string"
287
+ }
288
+ },
289
+ "required": [
290
+ "_tag",
291
+ "message"
292
+ ],
293
+ "additionalProperties": true
294
+ }
295
+ }
296
+ }
297
+ },
298
+ "setConsent": {
299
+ "description": "privacy.setConsent: record your choices (and your region, for the categories you leave unchosen). `necessary` cannot be refused. Audited with the choices before and after.",
300
+ "input": {
301
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
302
+ "type": "object",
303
+ "properties": {
304
+ "choices": {
305
+ "type": "object",
306
+ "properties": {
307
+ "necessary": {
308
+ "type": "boolean",
309
+ "enum": [
310
+ true
311
+ ]
312
+ },
313
+ "functional": {
314
+ "type": "boolean"
315
+ },
316
+ "analytics": {
317
+ "type": "boolean"
318
+ },
319
+ "marketing": {
320
+ "type": "boolean"
321
+ }
322
+ },
323
+ "additionalProperties": true
324
+ },
325
+ "region": {
326
+ "type": "object",
327
+ "properties": {
328
+ "country": {
329
+ "type": "string"
330
+ },
331
+ "timeZone": {
332
+ "type": "string",
333
+ "maxLength": 64
334
+ }
335
+ },
336
+ "additionalProperties": true
337
+ }
338
+ },
339
+ "required": [
340
+ "choices"
341
+ ],
342
+ "additionalProperties": true
343
+ },
344
+ "output": {
345
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
346
+ "type": "object",
347
+ "properties": {
348
+ "userId": {
349
+ "type": "string"
350
+ },
351
+ "region": {
352
+ "anyOf": [
353
+ {
354
+ "type": "string"
355
+ },
356
+ {
357
+ "type": "null"
358
+ }
359
+ ]
360
+ },
361
+ "mode": {
362
+ "type": "string",
363
+ "enum": [
364
+ "opt-in",
365
+ "opt-out"
366
+ ]
367
+ },
368
+ "categories": {
369
+ "type": "object",
370
+ "properties": {
371
+ "necessary": {
372
+ "type": "object",
373
+ "properties": {
374
+ "granted": {
375
+ "type": "boolean"
376
+ },
377
+ "source": {
378
+ "type": "string",
379
+ "enum": [
380
+ "necessary",
381
+ "choice",
382
+ "region"
383
+ ]
384
+ },
385
+ "decidedAt": {
386
+ "anyOf": [
387
+ {
388
+ "type": "number"
389
+ },
390
+ {
391
+ "type": "string",
392
+ "enum": [
393
+ "Infinity",
394
+ "-Infinity",
395
+ "NaN"
396
+ ]
397
+ },
398
+ {
399
+ "type": "null"
400
+ }
401
+ ]
402
+ }
403
+ },
404
+ "required": [
405
+ "granted",
406
+ "source",
407
+ "decidedAt"
408
+ ],
409
+ "additionalProperties": true
410
+ },
411
+ "functional": {
412
+ "type": "object",
413
+ "properties": {
414
+ "granted": {
415
+ "type": "boolean"
416
+ },
417
+ "source": {
418
+ "type": "string",
419
+ "enum": [
420
+ "necessary",
421
+ "choice",
422
+ "region"
423
+ ]
424
+ },
425
+ "decidedAt": {
426
+ "anyOf": [
427
+ {
428
+ "type": "number"
429
+ },
430
+ {
431
+ "type": "string",
432
+ "enum": [
433
+ "Infinity",
434
+ "-Infinity",
435
+ "NaN"
436
+ ]
437
+ },
438
+ {
439
+ "type": "null"
440
+ }
441
+ ]
442
+ }
443
+ },
444
+ "required": [
445
+ "granted",
446
+ "source",
447
+ "decidedAt"
448
+ ],
449
+ "additionalProperties": true
450
+ },
451
+ "analytics": {
452
+ "type": "object",
453
+ "properties": {
454
+ "granted": {
455
+ "type": "boolean"
456
+ },
457
+ "source": {
458
+ "type": "string",
459
+ "enum": [
460
+ "necessary",
461
+ "choice",
462
+ "region"
463
+ ]
464
+ },
465
+ "decidedAt": {
466
+ "anyOf": [
467
+ {
468
+ "type": "number"
469
+ },
470
+ {
471
+ "type": "string",
472
+ "enum": [
473
+ "Infinity",
474
+ "-Infinity",
475
+ "NaN"
476
+ ]
477
+ },
478
+ {
479
+ "type": "null"
480
+ }
481
+ ]
482
+ }
483
+ },
484
+ "required": [
485
+ "granted",
486
+ "source",
487
+ "decidedAt"
488
+ ],
489
+ "additionalProperties": true
490
+ },
491
+ "marketing": {
492
+ "type": "object",
493
+ "properties": {
494
+ "granted": {
495
+ "type": "boolean"
496
+ },
497
+ "source": {
498
+ "type": "string",
499
+ "enum": [
500
+ "necessary",
501
+ "choice",
502
+ "region"
503
+ ]
504
+ },
505
+ "decidedAt": {
506
+ "anyOf": [
507
+ {
508
+ "type": "number"
509
+ },
510
+ {
511
+ "type": "string",
512
+ "enum": [
513
+ "Infinity",
514
+ "-Infinity",
515
+ "NaN"
516
+ ]
517
+ },
518
+ {
519
+ "type": "null"
520
+ }
521
+ ]
522
+ }
523
+ },
524
+ "required": [
525
+ "granted",
526
+ "source",
527
+ "decidedAt"
528
+ ],
529
+ "additionalProperties": true
530
+ }
531
+ },
532
+ "required": [
533
+ "necessary",
534
+ "functional",
535
+ "analytics",
536
+ "marketing"
537
+ ],
538
+ "additionalProperties": true
539
+ }
540
+ },
541
+ "required": [
542
+ "userId",
543
+ "region",
544
+ "mode",
545
+ "categories"
546
+ ],
547
+ "additionalProperties": true
548
+ },
549
+ "errors": {
550
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
551
+ "anyOf": [
552
+ {
553
+ "$ref": "#/$defs/UnauthenticatedEncoded"
554
+ },
555
+ {
556
+ "$ref": "#/$defs/ForbiddenEncoded"
557
+ },
558
+ {
559
+ "$ref": "#/$defs/InvalidInputEncoded"
560
+ }
561
+ ],
562
+ "$defs": {
563
+ "UnauthenticatedEncoded": {
564
+ "type": "object",
565
+ "properties": {
566
+ "_tag": {
567
+ "type": "string",
568
+ "enum": [
569
+ "Unauthenticated"
570
+ ]
571
+ },
572
+ "message": {
573
+ "type": "string"
574
+ }
575
+ },
576
+ "required": [
577
+ "_tag",
578
+ "message"
579
+ ],
580
+ "additionalProperties": true
581
+ },
582
+ "ForbiddenEncoded": {
583
+ "type": "object",
584
+ "properties": {
585
+ "_tag": {
586
+ "type": "string",
587
+ "enum": [
588
+ "Forbidden"
589
+ ]
590
+ },
591
+ "message": {
592
+ "type": "string"
593
+ },
594
+ "action": {
595
+ "type": "string"
596
+ }
597
+ },
598
+ "required": [
599
+ "_tag",
600
+ "message",
601
+ "action"
602
+ ],
603
+ "additionalProperties": true
604
+ },
605
+ "InvalidInputEncoded": {
606
+ "type": "object",
607
+ "properties": {
608
+ "_tag": {
609
+ "type": "string",
610
+ "enum": [
611
+ "InvalidInput"
612
+ ]
613
+ },
614
+ "message": {
615
+ "type": "string"
616
+ }
617
+ },
618
+ "required": [
619
+ "_tag",
620
+ "message"
621
+ ],
622
+ "additionalProperties": true
623
+ }
624
+ }
625
+ }
626
+ },
627
+ "allows": {
628
+ "description": "In process (Telemetry's gate): whether the person consents to a category now. Fails closed: an error reading consent is a refusal.",
629
+ "input": {
630
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
631
+ "type": "object",
632
+ "properties": {
633
+ "userId": {
634
+ "type": "string"
635
+ },
636
+ "category": {
637
+ "type": "string",
638
+ "enum": [
639
+ "necessary",
640
+ "functional",
641
+ "analytics",
642
+ "marketing"
643
+ ]
644
+ }
645
+ },
646
+ "required": [
647
+ "userId",
648
+ "category"
649
+ ],
650
+ "additionalProperties": true
651
+ },
652
+ "output": {
653
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
654
+ "type": "boolean"
655
+ },
656
+ "errors": {
657
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
658
+ "not": {}
659
+ }
660
+ },
661
+ "requestExport": {
662
+ "description": "privacy.requestExport: export everything held about a person in this organisation (yourself, or a member with eloxiv.privacy.manage), as a durable workflow reported through Progress.",
663
+ "input": {
664
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
665
+ "type": "object",
666
+ "properties": {
667
+ "subject": {
668
+ "type": "string"
669
+ }
670
+ },
671
+ "additionalProperties": true
672
+ },
673
+ "output": {
674
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
675
+ "type": "object",
676
+ "properties": {
677
+ "id": {
678
+ "type": "string"
679
+ },
680
+ "taskId": {
681
+ "type": "string"
682
+ }
683
+ },
684
+ "required": [
685
+ "id",
686
+ "taskId"
687
+ ],
688
+ "additionalProperties": true
689
+ },
690
+ "errors": {
691
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
692
+ "anyOf": [
693
+ {
694
+ "$ref": "#/$defs/UnauthenticatedEncoded"
695
+ },
696
+ {
697
+ "$ref": "#/$defs/ForbiddenEncoded"
698
+ },
699
+ {
700
+ "$ref": "#/$defs/InvalidInputEncoded"
701
+ }
702
+ ],
703
+ "$defs": {
704
+ "UnauthenticatedEncoded": {
705
+ "type": "object",
706
+ "properties": {
707
+ "_tag": {
708
+ "type": "string",
709
+ "enum": [
710
+ "Unauthenticated"
711
+ ]
712
+ },
713
+ "message": {
714
+ "type": "string"
715
+ }
716
+ },
717
+ "required": [
718
+ "_tag",
719
+ "message"
720
+ ],
721
+ "additionalProperties": true
722
+ },
723
+ "ForbiddenEncoded": {
724
+ "type": "object",
725
+ "properties": {
726
+ "_tag": {
727
+ "type": "string",
728
+ "enum": [
729
+ "Forbidden"
730
+ ]
731
+ },
732
+ "message": {
733
+ "type": "string"
734
+ },
735
+ "action": {
736
+ "type": "string"
737
+ }
738
+ },
739
+ "required": [
740
+ "_tag",
741
+ "message",
742
+ "action"
743
+ ],
744
+ "additionalProperties": true
745
+ },
746
+ "InvalidInputEncoded": {
747
+ "type": "object",
748
+ "properties": {
749
+ "_tag": {
750
+ "type": "string",
751
+ "enum": [
752
+ "InvalidInput"
753
+ ]
754
+ },
755
+ "message": {
756
+ "type": "string"
757
+ }
758
+ },
759
+ "required": [
760
+ "_tag",
761
+ "message"
762
+ ],
763
+ "additionalProperties": true
764
+ }
765
+ }
766
+ }
767
+ },
768
+ "requestErasure": {
769
+ "description": "privacy.requestErasure: erase a person's records in this organisation as each module declares (delete, anonymise or retain with a reason), their connections and connector data, settings, progress and the history of every record it touched. Destructive: an agent's call needs the person's consent.",
770
+ "input": {
771
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
772
+ "type": "object",
773
+ "properties": {
774
+ "subject": {
775
+ "type": "string"
776
+ }
777
+ },
778
+ "additionalProperties": true
779
+ },
780
+ "output": {
781
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
782
+ "type": "object",
783
+ "properties": {
784
+ "id": {
785
+ "type": "string"
786
+ },
787
+ "taskId": {
788
+ "type": "string"
789
+ }
790
+ },
791
+ "required": [
792
+ "id",
793
+ "taskId"
794
+ ],
795
+ "additionalProperties": true
796
+ },
797
+ "errors": {
798
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
799
+ "anyOf": [
800
+ {
801
+ "$ref": "#/$defs/UnauthenticatedEncoded"
802
+ },
803
+ {
804
+ "$ref": "#/$defs/ForbiddenEncoded"
805
+ },
806
+ {
807
+ "$ref": "#/$defs/InvalidInputEncoded"
808
+ }
809
+ ],
810
+ "$defs": {
811
+ "UnauthenticatedEncoded": {
812
+ "type": "object",
813
+ "properties": {
814
+ "_tag": {
815
+ "type": "string",
816
+ "enum": [
817
+ "Unauthenticated"
818
+ ]
819
+ },
820
+ "message": {
821
+ "type": "string"
822
+ }
823
+ },
824
+ "required": [
825
+ "_tag",
826
+ "message"
827
+ ],
828
+ "additionalProperties": true
829
+ },
830
+ "ForbiddenEncoded": {
831
+ "type": "object",
832
+ "properties": {
833
+ "_tag": {
834
+ "type": "string",
835
+ "enum": [
836
+ "Forbidden"
837
+ ]
838
+ },
839
+ "message": {
840
+ "type": "string"
841
+ },
842
+ "action": {
843
+ "type": "string"
844
+ }
845
+ },
846
+ "required": [
847
+ "_tag",
848
+ "message",
849
+ "action"
850
+ ],
851
+ "additionalProperties": true
852
+ },
853
+ "InvalidInputEncoded": {
854
+ "type": "object",
855
+ "properties": {
856
+ "_tag": {
857
+ "type": "string",
858
+ "enum": [
859
+ "InvalidInput"
860
+ ]
861
+ },
862
+ "message": {
863
+ "type": "string"
864
+ }
865
+ },
866
+ "required": [
867
+ "_tag",
868
+ "message"
869
+ ],
870
+ "additionalProperties": true
871
+ }
872
+ }
873
+ }
874
+ },
875
+ "requests": {
876
+ "description": "privacy.requests: the requests you made or that are about you, in this organisation.",
877
+ "input": {
878
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
879
+ "not": {
880
+ "type": "null"
881
+ }
882
+ },
883
+ "output": {
884
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
885
+ "type": "object",
886
+ "properties": {
887
+ "requests": {
888
+ "type": "array",
889
+ "items": {
890
+ "type": "object",
891
+ "properties": {
892
+ "id": {
893
+ "type": "string"
894
+ },
895
+ "orgId": {
896
+ "type": "string"
897
+ },
898
+ "kind": {
899
+ "type": "string",
900
+ "enum": [
901
+ "export",
902
+ "erasure"
903
+ ]
904
+ },
905
+ "subjectId": {
906
+ "type": "string"
907
+ },
908
+ "requestedBy": {
909
+ "type": "string"
910
+ },
911
+ "status": {
912
+ "type": "string",
913
+ "enum": [
914
+ "pending",
915
+ "running",
916
+ "succeeded",
917
+ "failed",
918
+ "cancelled"
919
+ ]
920
+ },
921
+ "taskId": {
922
+ "anyOf": [
923
+ {
924
+ "type": "string"
925
+ },
926
+ {
927
+ "type": "null"
928
+ }
929
+ ]
930
+ },
931
+ "sources": {
932
+ "type": "array",
933
+ "items": {
934
+ "type": "object",
935
+ "properties": {
936
+ "source": {
937
+ "type": "string"
938
+ },
939
+ "records": {
940
+ "anyOf": [
941
+ {
942
+ "type": "number"
943
+ },
944
+ {
945
+ "type": "string",
946
+ "enum": [
947
+ "Infinity",
948
+ "-Infinity",
949
+ "NaN"
950
+ ]
951
+ }
952
+ ]
953
+ },
954
+ "outcome": {
955
+ "type": "string",
956
+ "enum": [
957
+ "exported",
958
+ "deleted",
959
+ "anonymised",
960
+ "retained",
961
+ "none"
962
+ ]
963
+ },
964
+ "reason": {
965
+ "anyOf": [
966
+ {
967
+ "type": "string"
968
+ },
969
+ {
970
+ "type": "null"
971
+ }
972
+ ]
973
+ }
974
+ },
975
+ "required": [
976
+ "source",
977
+ "records",
978
+ "outcome",
979
+ "reason"
980
+ ],
981
+ "additionalProperties": true
982
+ }
983
+ },
984
+ "error": {
985
+ "anyOf": [
986
+ {
987
+ "type": "string"
988
+ },
989
+ {
990
+ "type": "null"
991
+ }
992
+ ]
993
+ },
994
+ "createdAt": {
995
+ "anyOf": [
996
+ {
997
+ "type": "number"
998
+ },
999
+ {
1000
+ "type": "string",
1001
+ "enum": [
1002
+ "Infinity",
1003
+ "-Infinity",
1004
+ "NaN"
1005
+ ]
1006
+ }
1007
+ ]
1008
+ },
1009
+ "finishedAt": {
1010
+ "anyOf": [
1011
+ {
1012
+ "type": "number"
1013
+ },
1014
+ {
1015
+ "type": "string",
1016
+ "enum": [
1017
+ "Infinity",
1018
+ "-Infinity",
1019
+ "NaN"
1020
+ ]
1021
+ },
1022
+ {
1023
+ "type": "null"
1024
+ }
1025
+ ]
1026
+ }
1027
+ },
1028
+ "required": [
1029
+ "id",
1030
+ "orgId",
1031
+ "kind",
1032
+ "subjectId",
1033
+ "requestedBy",
1034
+ "status",
1035
+ "taskId",
1036
+ "sources",
1037
+ "error",
1038
+ "createdAt",
1039
+ "finishedAt"
1040
+ ],
1041
+ "additionalProperties": true
1042
+ }
1043
+ }
1044
+ },
1045
+ "required": [
1046
+ "requests"
1047
+ ],
1048
+ "additionalProperties": true
1049
+ },
1050
+ "errors": {
1051
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1052
+ "anyOf": [
1053
+ {
1054
+ "$ref": "#/$defs/UnauthenticatedEncoded"
1055
+ },
1056
+ {
1057
+ "$ref": "#/$defs/ForbiddenEncoded"
1058
+ },
1059
+ {
1060
+ "$ref": "#/$defs/InvalidInputEncoded"
1061
+ }
1062
+ ],
1063
+ "$defs": {
1064
+ "UnauthenticatedEncoded": {
1065
+ "type": "object",
1066
+ "properties": {
1067
+ "_tag": {
1068
+ "type": "string",
1069
+ "enum": [
1070
+ "Unauthenticated"
1071
+ ]
1072
+ },
1073
+ "message": {
1074
+ "type": "string"
1075
+ }
1076
+ },
1077
+ "required": [
1078
+ "_tag",
1079
+ "message"
1080
+ ],
1081
+ "additionalProperties": true
1082
+ },
1083
+ "ForbiddenEncoded": {
1084
+ "type": "object",
1085
+ "properties": {
1086
+ "_tag": {
1087
+ "type": "string",
1088
+ "enum": [
1089
+ "Forbidden"
1090
+ ]
1091
+ },
1092
+ "message": {
1093
+ "type": "string"
1094
+ },
1095
+ "action": {
1096
+ "type": "string"
1097
+ }
1098
+ },
1099
+ "required": [
1100
+ "_tag",
1101
+ "message",
1102
+ "action"
1103
+ ],
1104
+ "additionalProperties": true
1105
+ },
1106
+ "InvalidInputEncoded": {
1107
+ "type": "object",
1108
+ "properties": {
1109
+ "_tag": {
1110
+ "type": "string",
1111
+ "enum": [
1112
+ "InvalidInput"
1113
+ ]
1114
+ },
1115
+ "message": {
1116
+ "type": "string"
1117
+ }
1118
+ },
1119
+ "required": [
1120
+ "_tag",
1121
+ "message"
1122
+ ],
1123
+ "additionalProperties": true
1124
+ }
1125
+ }
1126
+ }
1127
+ },
1128
+ "download": {
1129
+ "description": "privacy.download: a finished export, for its requester or its subject.",
1130
+ "input": {
1131
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1132
+ "type": "object",
1133
+ "properties": {
1134
+ "id": {
1135
+ "type": "string"
1136
+ }
1137
+ },
1138
+ "required": [
1139
+ "id"
1140
+ ],
1141
+ "additionalProperties": true
1142
+ },
1143
+ "output": {
1144
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1145
+ "type": "object",
1146
+ "properties": {
1147
+ "requestId": {
1148
+ "type": "string"
1149
+ },
1150
+ "orgId": {
1151
+ "type": "string"
1152
+ },
1153
+ "subjectId": {
1154
+ "type": "string"
1155
+ },
1156
+ "generatedAt": {
1157
+ "anyOf": [
1158
+ {
1159
+ "type": "number"
1160
+ },
1161
+ {
1162
+ "type": "string",
1163
+ "enum": [
1164
+ "Infinity",
1165
+ "-Infinity",
1166
+ "NaN"
1167
+ ]
1168
+ }
1169
+ ]
1170
+ },
1171
+ "sources": {
1172
+ "type": "array",
1173
+ "items": {
1174
+ "type": "object",
1175
+ "properties": {
1176
+ "source": {
1177
+ "type": "string"
1178
+ },
1179
+ "records": {
1180
+ "type": "array",
1181
+ "items": {
1182
+ "type": "object"
1183
+ }
1184
+ }
1185
+ },
1186
+ "required": [
1187
+ "source",
1188
+ "records"
1189
+ ],
1190
+ "additionalProperties": true
1191
+ }
1192
+ }
1193
+ },
1194
+ "required": [
1195
+ "requestId",
1196
+ "orgId",
1197
+ "subjectId",
1198
+ "generatedAt",
1199
+ "sources"
1200
+ ],
1201
+ "additionalProperties": true
1202
+ },
1203
+ "errors": {
1204
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1205
+ "anyOf": [
1206
+ {
1207
+ "$ref": "#/$defs/UnauthenticatedEncoded"
1208
+ },
1209
+ {
1210
+ "$ref": "#/$defs/ForbiddenEncoded"
1211
+ },
1212
+ {
1213
+ "$ref": "#/$defs/InvalidInputEncoded"
1214
+ }
1215
+ ],
1216
+ "$defs": {
1217
+ "UnauthenticatedEncoded": {
1218
+ "type": "object",
1219
+ "properties": {
1220
+ "_tag": {
1221
+ "type": "string",
1222
+ "enum": [
1223
+ "Unauthenticated"
1224
+ ]
1225
+ },
1226
+ "message": {
1227
+ "type": "string"
1228
+ }
1229
+ },
1230
+ "required": [
1231
+ "_tag",
1232
+ "message"
1233
+ ],
1234
+ "additionalProperties": true
1235
+ },
1236
+ "ForbiddenEncoded": {
1237
+ "type": "object",
1238
+ "properties": {
1239
+ "_tag": {
1240
+ "type": "string",
1241
+ "enum": [
1242
+ "Forbidden"
1243
+ ]
1244
+ },
1245
+ "message": {
1246
+ "type": "string"
1247
+ },
1248
+ "action": {
1249
+ "type": "string"
1250
+ }
1251
+ },
1252
+ "required": [
1253
+ "_tag",
1254
+ "message",
1255
+ "action"
1256
+ ],
1257
+ "additionalProperties": true
1258
+ },
1259
+ "InvalidInputEncoded": {
1260
+ "type": "object",
1261
+ "properties": {
1262
+ "_tag": {
1263
+ "type": "string",
1264
+ "enum": [
1265
+ "InvalidInput"
1266
+ ]
1267
+ },
1268
+ "message": {
1269
+ "type": "string"
1270
+ }
1271
+ },
1272
+ "required": [
1273
+ "_tag",
1274
+ "message"
1275
+ ],
1276
+ "additionalProperties": true
1277
+ }
1278
+ }
1279
+ }
1280
+ },
1281
+ "visit": {
1282
+ "description": "POST /privacy/visit, before sign-in: record a visitor's consent choices and region on their visit (a year-long HttpOnly cookie names it), and the touch that brought them, kept only with the visitor's marketing consent (refusing it later forgets every touch). GET answers the visitor's consent and attribution.",
1283
+ "input": {
1284
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1285
+ "type": "object",
1286
+ "properties": {
1287
+ "choices": {
1288
+ "type": "object",
1289
+ "properties": {
1290
+ "necessary": {
1291
+ "type": "boolean",
1292
+ "enum": [
1293
+ true
1294
+ ]
1295
+ },
1296
+ "functional": {
1297
+ "type": "boolean"
1298
+ },
1299
+ "analytics": {
1300
+ "type": "boolean"
1301
+ },
1302
+ "marketing": {
1303
+ "type": "boolean"
1304
+ }
1305
+ },
1306
+ "additionalProperties": true
1307
+ },
1308
+ "region": {
1309
+ "type": "object",
1310
+ "properties": {
1311
+ "country": {
1312
+ "type": "string"
1313
+ },
1314
+ "timeZone": {
1315
+ "type": "string",
1316
+ "maxLength": 64
1317
+ }
1318
+ },
1319
+ "additionalProperties": true
1320
+ },
1321
+ "touch": {
1322
+ "type": "object",
1323
+ "properties": {
1324
+ "source": {
1325
+ "type": "string",
1326
+ "maxLength": 200
1327
+ },
1328
+ "medium": {
1329
+ "type": "string",
1330
+ "maxLength": 200
1331
+ },
1332
+ "campaign": {
1333
+ "type": "string",
1334
+ "maxLength": 200
1335
+ },
1336
+ "term": {
1337
+ "type": "string",
1338
+ "maxLength": 200
1339
+ },
1340
+ "content": {
1341
+ "type": "string",
1342
+ "maxLength": 200
1343
+ },
1344
+ "referrer": {
1345
+ "type": "string",
1346
+ "maxLength": 2000
1347
+ },
1348
+ "landingPath": {
1349
+ "type": "string",
1350
+ "maxLength": 500
1351
+ },
1352
+ "clickIds": {
1353
+ "type": "array",
1354
+ "items": {
1355
+ "type": "string",
1356
+ "enum": [
1357
+ "gclid",
1358
+ "gbraid",
1359
+ "wbraid",
1360
+ "fbclid",
1361
+ "msclkid",
1362
+ "ttclid",
1363
+ "li_fat_id"
1364
+ ]
1365
+ }
1366
+ }
1367
+ },
1368
+ "additionalProperties": true
1369
+ }
1370
+ },
1371
+ "additionalProperties": true
1372
+ },
1373
+ "output": {
1374
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1375
+ "type": "object",
1376
+ "properties": {
1377
+ "consent": {
1378
+ "type": "object",
1379
+ "properties": {
1380
+ "userId": {
1381
+ "type": "string"
1382
+ },
1383
+ "region": {
1384
+ "anyOf": [
1385
+ {
1386
+ "type": "string"
1387
+ },
1388
+ {
1389
+ "type": "null"
1390
+ }
1391
+ ]
1392
+ },
1393
+ "mode": {
1394
+ "type": "string",
1395
+ "enum": [
1396
+ "opt-in",
1397
+ "opt-out"
1398
+ ]
1399
+ },
1400
+ "categories": {
1401
+ "type": "object",
1402
+ "properties": {
1403
+ "necessary": {
1404
+ "type": "object",
1405
+ "properties": {
1406
+ "granted": {
1407
+ "type": "boolean"
1408
+ },
1409
+ "source": {
1410
+ "type": "string",
1411
+ "enum": [
1412
+ "necessary",
1413
+ "choice",
1414
+ "region"
1415
+ ]
1416
+ },
1417
+ "decidedAt": {
1418
+ "anyOf": [
1419
+ {
1420
+ "type": "number"
1421
+ },
1422
+ {
1423
+ "type": "string",
1424
+ "enum": [
1425
+ "Infinity",
1426
+ "-Infinity",
1427
+ "NaN"
1428
+ ]
1429
+ },
1430
+ {
1431
+ "type": "null"
1432
+ }
1433
+ ]
1434
+ }
1435
+ },
1436
+ "required": [
1437
+ "granted",
1438
+ "source",
1439
+ "decidedAt"
1440
+ ],
1441
+ "additionalProperties": true
1442
+ },
1443
+ "functional": {
1444
+ "type": "object",
1445
+ "properties": {
1446
+ "granted": {
1447
+ "type": "boolean"
1448
+ },
1449
+ "source": {
1450
+ "type": "string",
1451
+ "enum": [
1452
+ "necessary",
1453
+ "choice",
1454
+ "region"
1455
+ ]
1456
+ },
1457
+ "decidedAt": {
1458
+ "anyOf": [
1459
+ {
1460
+ "type": "number"
1461
+ },
1462
+ {
1463
+ "type": "string",
1464
+ "enum": [
1465
+ "Infinity",
1466
+ "-Infinity",
1467
+ "NaN"
1468
+ ]
1469
+ },
1470
+ {
1471
+ "type": "null"
1472
+ }
1473
+ ]
1474
+ }
1475
+ },
1476
+ "required": [
1477
+ "granted",
1478
+ "source",
1479
+ "decidedAt"
1480
+ ],
1481
+ "additionalProperties": true
1482
+ },
1483
+ "analytics": {
1484
+ "type": "object",
1485
+ "properties": {
1486
+ "granted": {
1487
+ "type": "boolean"
1488
+ },
1489
+ "source": {
1490
+ "type": "string",
1491
+ "enum": [
1492
+ "necessary",
1493
+ "choice",
1494
+ "region"
1495
+ ]
1496
+ },
1497
+ "decidedAt": {
1498
+ "anyOf": [
1499
+ {
1500
+ "type": "number"
1501
+ },
1502
+ {
1503
+ "type": "string",
1504
+ "enum": [
1505
+ "Infinity",
1506
+ "-Infinity",
1507
+ "NaN"
1508
+ ]
1509
+ },
1510
+ {
1511
+ "type": "null"
1512
+ }
1513
+ ]
1514
+ }
1515
+ },
1516
+ "required": [
1517
+ "granted",
1518
+ "source",
1519
+ "decidedAt"
1520
+ ],
1521
+ "additionalProperties": true
1522
+ },
1523
+ "marketing": {
1524
+ "type": "object",
1525
+ "properties": {
1526
+ "granted": {
1527
+ "type": "boolean"
1528
+ },
1529
+ "source": {
1530
+ "type": "string",
1531
+ "enum": [
1532
+ "necessary",
1533
+ "choice",
1534
+ "region"
1535
+ ]
1536
+ },
1537
+ "decidedAt": {
1538
+ "anyOf": [
1539
+ {
1540
+ "type": "number"
1541
+ },
1542
+ {
1543
+ "type": "string",
1544
+ "enum": [
1545
+ "Infinity",
1546
+ "-Infinity",
1547
+ "NaN"
1548
+ ]
1549
+ },
1550
+ {
1551
+ "type": "null"
1552
+ }
1553
+ ]
1554
+ }
1555
+ },
1556
+ "required": [
1557
+ "granted",
1558
+ "source",
1559
+ "decidedAt"
1560
+ ],
1561
+ "additionalProperties": true
1562
+ }
1563
+ },
1564
+ "required": [
1565
+ "necessary",
1566
+ "functional",
1567
+ "analytics",
1568
+ "marketing"
1569
+ ],
1570
+ "additionalProperties": true
1571
+ }
1572
+ },
1573
+ "required": [
1574
+ "userId",
1575
+ "region",
1576
+ "mode",
1577
+ "categories"
1578
+ ],
1579
+ "additionalProperties": true
1580
+ },
1581
+ "attribution": {
1582
+ "anyOf": [
1583
+ {
1584
+ "type": "object",
1585
+ "properties": {
1586
+ "first": {
1587
+ "type": "object",
1588
+ "properties": {
1589
+ "channel": {
1590
+ "type": "string",
1591
+ "enum": [
1592
+ "paid",
1593
+ "campaign",
1594
+ "referral",
1595
+ "direct"
1596
+ ]
1597
+ },
1598
+ "source": {
1599
+ "anyOf": [
1600
+ {
1601
+ "type": "string"
1602
+ },
1603
+ {
1604
+ "type": "null"
1605
+ }
1606
+ ]
1607
+ },
1608
+ "medium": {
1609
+ "anyOf": [
1610
+ {
1611
+ "type": "string"
1612
+ },
1613
+ {
1614
+ "type": "null"
1615
+ }
1616
+ ]
1617
+ },
1618
+ "campaign": {
1619
+ "anyOf": [
1620
+ {
1621
+ "type": "string"
1622
+ },
1623
+ {
1624
+ "type": "null"
1625
+ }
1626
+ ]
1627
+ },
1628
+ "term": {
1629
+ "anyOf": [
1630
+ {
1631
+ "type": "string"
1632
+ },
1633
+ {
1634
+ "type": "null"
1635
+ }
1636
+ ]
1637
+ },
1638
+ "content": {
1639
+ "anyOf": [
1640
+ {
1641
+ "type": "string"
1642
+ },
1643
+ {
1644
+ "type": "null"
1645
+ }
1646
+ ]
1647
+ },
1648
+ "referrerHost": {
1649
+ "anyOf": [
1650
+ {
1651
+ "type": "string"
1652
+ },
1653
+ {
1654
+ "type": "null"
1655
+ }
1656
+ ]
1657
+ },
1658
+ "landingPath": {
1659
+ "anyOf": [
1660
+ {
1661
+ "type": "string"
1662
+ },
1663
+ {
1664
+ "type": "null"
1665
+ }
1666
+ ]
1667
+ },
1668
+ "clickIds": {
1669
+ "type": "array",
1670
+ "items": {
1671
+ "type": "string"
1672
+ }
1673
+ },
1674
+ "at": {
1675
+ "type": "string"
1676
+ }
1677
+ },
1678
+ "required": [
1679
+ "channel",
1680
+ "source",
1681
+ "medium",
1682
+ "campaign",
1683
+ "term",
1684
+ "content",
1685
+ "referrerHost",
1686
+ "landingPath",
1687
+ "clickIds",
1688
+ "at"
1689
+ ],
1690
+ "additionalProperties": true
1691
+ },
1692
+ "last": {
1693
+ "type": "object",
1694
+ "properties": {
1695
+ "channel": {
1696
+ "type": "string",
1697
+ "enum": [
1698
+ "paid",
1699
+ "campaign",
1700
+ "referral",
1701
+ "direct"
1702
+ ]
1703
+ },
1704
+ "source": {
1705
+ "anyOf": [
1706
+ {
1707
+ "type": "string"
1708
+ },
1709
+ {
1710
+ "type": "null"
1711
+ }
1712
+ ]
1713
+ },
1714
+ "medium": {
1715
+ "anyOf": [
1716
+ {
1717
+ "type": "string"
1718
+ },
1719
+ {
1720
+ "type": "null"
1721
+ }
1722
+ ]
1723
+ },
1724
+ "campaign": {
1725
+ "anyOf": [
1726
+ {
1727
+ "type": "string"
1728
+ },
1729
+ {
1730
+ "type": "null"
1731
+ }
1732
+ ]
1733
+ },
1734
+ "term": {
1735
+ "anyOf": [
1736
+ {
1737
+ "type": "string"
1738
+ },
1739
+ {
1740
+ "type": "null"
1741
+ }
1742
+ ]
1743
+ },
1744
+ "content": {
1745
+ "anyOf": [
1746
+ {
1747
+ "type": "string"
1748
+ },
1749
+ {
1750
+ "type": "null"
1751
+ }
1752
+ ]
1753
+ },
1754
+ "referrerHost": {
1755
+ "anyOf": [
1756
+ {
1757
+ "type": "string"
1758
+ },
1759
+ {
1760
+ "type": "null"
1761
+ }
1762
+ ]
1763
+ },
1764
+ "landingPath": {
1765
+ "anyOf": [
1766
+ {
1767
+ "type": "string"
1768
+ },
1769
+ {
1770
+ "type": "null"
1771
+ }
1772
+ ]
1773
+ },
1774
+ "clickIds": {
1775
+ "type": "array",
1776
+ "items": {
1777
+ "type": "string"
1778
+ }
1779
+ },
1780
+ "at": {
1781
+ "type": "string"
1782
+ }
1783
+ },
1784
+ "required": [
1785
+ "channel",
1786
+ "source",
1787
+ "medium",
1788
+ "campaign",
1789
+ "term",
1790
+ "content",
1791
+ "referrerHost",
1792
+ "landingPath",
1793
+ "clickIds",
1794
+ "at"
1795
+ ],
1796
+ "additionalProperties": true
1797
+ }
1798
+ },
1799
+ "required": [
1800
+ "first",
1801
+ "last"
1802
+ ],
1803
+ "additionalProperties": true
1804
+ },
1805
+ {
1806
+ "type": "null"
1807
+ }
1808
+ ]
1809
+ },
1810
+ "claim": {
1811
+ "anyOf": [
1812
+ {
1813
+ "type": "string"
1814
+ },
1815
+ {
1816
+ "type": "null"
1817
+ }
1818
+ ]
1819
+ }
1820
+ },
1821
+ "required": [
1822
+ "consent",
1823
+ "attribution",
1824
+ "claim"
1825
+ ],
1826
+ "additionalProperties": true
1827
+ },
1828
+ "errors": {
1829
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1830
+ "anyOf": [
1831
+ {
1832
+ "$ref": "#/$defs/InvalidInputEncoded"
1833
+ }
1834
+ ],
1835
+ "$defs": {
1836
+ "InvalidInputEncoded": {
1837
+ "type": "object",
1838
+ "properties": {
1839
+ "_tag": {
1840
+ "type": "string",
1841
+ "enum": [
1842
+ "InvalidInput"
1843
+ ]
1844
+ },
1845
+ "message": {
1846
+ "type": "string"
1847
+ }
1848
+ },
1849
+ "required": [
1850
+ "_tag",
1851
+ "message"
1852
+ ],
1853
+ "additionalProperties": true
1854
+ }
1855
+ }
1856
+ }
1857
+ },
1858
+ "claimVisit": {
1859
+ "description": "POST /privacy/visit/claim, signed in, with the visit's claim (a request with a bearer credential carries no cookie): the visit becomes the person's, its choices carried into their consent in the organisation for the categories they have not chosen themselves, its attribution theirs (and, with their marketing consent, the analytics event eloxiv.visit_claimed). A visit another person claimed is refused.",
1860
+ "input": {
1861
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1862
+ "type": "object",
1863
+ "properties": {
1864
+ "claim": {
1865
+ "type": "string"
1866
+ }
1867
+ },
1868
+ "required": [
1869
+ "claim"
1870
+ ],
1871
+ "additionalProperties": true
1872
+ },
1873
+ "output": {
1874
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1875
+ "type": "object",
1876
+ "properties": {
1877
+ "carried": {
1878
+ "type": "array",
1879
+ "items": {
1880
+ "type": "string",
1881
+ "enum": [
1882
+ "necessary",
1883
+ "functional",
1884
+ "analytics",
1885
+ "marketing"
1886
+ ]
1887
+ }
1888
+ },
1889
+ "consent": {
1890
+ "type": "object",
1891
+ "properties": {
1892
+ "userId": {
1893
+ "type": "string"
1894
+ },
1895
+ "region": {
1896
+ "anyOf": [
1897
+ {
1898
+ "type": "string"
1899
+ },
1900
+ {
1901
+ "type": "null"
1902
+ }
1903
+ ]
1904
+ },
1905
+ "mode": {
1906
+ "type": "string",
1907
+ "enum": [
1908
+ "opt-in",
1909
+ "opt-out"
1910
+ ]
1911
+ },
1912
+ "categories": {
1913
+ "type": "object",
1914
+ "properties": {
1915
+ "necessary": {
1916
+ "type": "object",
1917
+ "properties": {
1918
+ "granted": {
1919
+ "type": "boolean"
1920
+ },
1921
+ "source": {
1922
+ "type": "string",
1923
+ "enum": [
1924
+ "necessary",
1925
+ "choice",
1926
+ "region"
1927
+ ]
1928
+ },
1929
+ "decidedAt": {
1930
+ "anyOf": [
1931
+ {
1932
+ "type": "number"
1933
+ },
1934
+ {
1935
+ "type": "string",
1936
+ "enum": [
1937
+ "Infinity",
1938
+ "-Infinity",
1939
+ "NaN"
1940
+ ]
1941
+ },
1942
+ {
1943
+ "type": "null"
1944
+ }
1945
+ ]
1946
+ }
1947
+ },
1948
+ "required": [
1949
+ "granted",
1950
+ "source",
1951
+ "decidedAt"
1952
+ ],
1953
+ "additionalProperties": true
1954
+ },
1955
+ "functional": {
1956
+ "type": "object",
1957
+ "properties": {
1958
+ "granted": {
1959
+ "type": "boolean"
1960
+ },
1961
+ "source": {
1962
+ "type": "string",
1963
+ "enum": [
1964
+ "necessary",
1965
+ "choice",
1966
+ "region"
1967
+ ]
1968
+ },
1969
+ "decidedAt": {
1970
+ "anyOf": [
1971
+ {
1972
+ "type": "number"
1973
+ },
1974
+ {
1975
+ "type": "string",
1976
+ "enum": [
1977
+ "Infinity",
1978
+ "-Infinity",
1979
+ "NaN"
1980
+ ]
1981
+ },
1982
+ {
1983
+ "type": "null"
1984
+ }
1985
+ ]
1986
+ }
1987
+ },
1988
+ "required": [
1989
+ "granted",
1990
+ "source",
1991
+ "decidedAt"
1992
+ ],
1993
+ "additionalProperties": true
1994
+ },
1995
+ "analytics": {
1996
+ "type": "object",
1997
+ "properties": {
1998
+ "granted": {
1999
+ "type": "boolean"
2000
+ },
2001
+ "source": {
2002
+ "type": "string",
2003
+ "enum": [
2004
+ "necessary",
2005
+ "choice",
2006
+ "region"
2007
+ ]
2008
+ },
2009
+ "decidedAt": {
2010
+ "anyOf": [
2011
+ {
2012
+ "type": "number"
2013
+ },
2014
+ {
2015
+ "type": "string",
2016
+ "enum": [
2017
+ "Infinity",
2018
+ "-Infinity",
2019
+ "NaN"
2020
+ ]
2021
+ },
2022
+ {
2023
+ "type": "null"
2024
+ }
2025
+ ]
2026
+ }
2027
+ },
2028
+ "required": [
2029
+ "granted",
2030
+ "source",
2031
+ "decidedAt"
2032
+ ],
2033
+ "additionalProperties": true
2034
+ },
2035
+ "marketing": {
2036
+ "type": "object",
2037
+ "properties": {
2038
+ "granted": {
2039
+ "type": "boolean"
2040
+ },
2041
+ "source": {
2042
+ "type": "string",
2043
+ "enum": [
2044
+ "necessary",
2045
+ "choice",
2046
+ "region"
2047
+ ]
2048
+ },
2049
+ "decidedAt": {
2050
+ "anyOf": [
2051
+ {
2052
+ "type": "number"
2053
+ },
2054
+ {
2055
+ "type": "string",
2056
+ "enum": [
2057
+ "Infinity",
2058
+ "-Infinity",
2059
+ "NaN"
2060
+ ]
2061
+ },
2062
+ {
2063
+ "type": "null"
2064
+ }
2065
+ ]
2066
+ }
2067
+ },
2068
+ "required": [
2069
+ "granted",
2070
+ "source",
2071
+ "decidedAt"
2072
+ ],
2073
+ "additionalProperties": true
2074
+ }
2075
+ },
2076
+ "required": [
2077
+ "necessary",
2078
+ "functional",
2079
+ "analytics",
2080
+ "marketing"
2081
+ ],
2082
+ "additionalProperties": true
2083
+ }
2084
+ },
2085
+ "required": [
2086
+ "userId",
2087
+ "region",
2088
+ "mode",
2089
+ "categories"
2090
+ ],
2091
+ "additionalProperties": true
2092
+ },
2093
+ "attribution": {
2094
+ "anyOf": [
2095
+ {
2096
+ "type": "object",
2097
+ "properties": {
2098
+ "first": {
2099
+ "type": "object",
2100
+ "properties": {
2101
+ "channel": {
2102
+ "type": "string",
2103
+ "enum": [
2104
+ "paid",
2105
+ "campaign",
2106
+ "referral",
2107
+ "direct"
2108
+ ]
2109
+ },
2110
+ "source": {
2111
+ "anyOf": [
2112
+ {
2113
+ "type": "string"
2114
+ },
2115
+ {
2116
+ "type": "null"
2117
+ }
2118
+ ]
2119
+ },
2120
+ "medium": {
2121
+ "anyOf": [
2122
+ {
2123
+ "type": "string"
2124
+ },
2125
+ {
2126
+ "type": "null"
2127
+ }
2128
+ ]
2129
+ },
2130
+ "campaign": {
2131
+ "anyOf": [
2132
+ {
2133
+ "type": "string"
2134
+ },
2135
+ {
2136
+ "type": "null"
2137
+ }
2138
+ ]
2139
+ },
2140
+ "term": {
2141
+ "anyOf": [
2142
+ {
2143
+ "type": "string"
2144
+ },
2145
+ {
2146
+ "type": "null"
2147
+ }
2148
+ ]
2149
+ },
2150
+ "content": {
2151
+ "anyOf": [
2152
+ {
2153
+ "type": "string"
2154
+ },
2155
+ {
2156
+ "type": "null"
2157
+ }
2158
+ ]
2159
+ },
2160
+ "referrerHost": {
2161
+ "anyOf": [
2162
+ {
2163
+ "type": "string"
2164
+ },
2165
+ {
2166
+ "type": "null"
2167
+ }
2168
+ ]
2169
+ },
2170
+ "landingPath": {
2171
+ "anyOf": [
2172
+ {
2173
+ "type": "string"
2174
+ },
2175
+ {
2176
+ "type": "null"
2177
+ }
2178
+ ]
2179
+ },
2180
+ "clickIds": {
2181
+ "type": "array",
2182
+ "items": {
2183
+ "type": "string"
2184
+ }
2185
+ },
2186
+ "at": {
2187
+ "type": "string"
2188
+ }
2189
+ },
2190
+ "required": [
2191
+ "channel",
2192
+ "source",
2193
+ "medium",
2194
+ "campaign",
2195
+ "term",
2196
+ "content",
2197
+ "referrerHost",
2198
+ "landingPath",
2199
+ "clickIds",
2200
+ "at"
2201
+ ],
2202
+ "additionalProperties": true
2203
+ },
2204
+ "last": {
2205
+ "type": "object",
2206
+ "properties": {
2207
+ "channel": {
2208
+ "type": "string",
2209
+ "enum": [
2210
+ "paid",
2211
+ "campaign",
2212
+ "referral",
2213
+ "direct"
2214
+ ]
2215
+ },
2216
+ "source": {
2217
+ "anyOf": [
2218
+ {
2219
+ "type": "string"
2220
+ },
2221
+ {
2222
+ "type": "null"
2223
+ }
2224
+ ]
2225
+ },
2226
+ "medium": {
2227
+ "anyOf": [
2228
+ {
2229
+ "type": "string"
2230
+ },
2231
+ {
2232
+ "type": "null"
2233
+ }
2234
+ ]
2235
+ },
2236
+ "campaign": {
2237
+ "anyOf": [
2238
+ {
2239
+ "type": "string"
2240
+ },
2241
+ {
2242
+ "type": "null"
2243
+ }
2244
+ ]
2245
+ },
2246
+ "term": {
2247
+ "anyOf": [
2248
+ {
2249
+ "type": "string"
2250
+ },
2251
+ {
2252
+ "type": "null"
2253
+ }
2254
+ ]
2255
+ },
2256
+ "content": {
2257
+ "anyOf": [
2258
+ {
2259
+ "type": "string"
2260
+ },
2261
+ {
2262
+ "type": "null"
2263
+ }
2264
+ ]
2265
+ },
2266
+ "referrerHost": {
2267
+ "anyOf": [
2268
+ {
2269
+ "type": "string"
2270
+ },
2271
+ {
2272
+ "type": "null"
2273
+ }
2274
+ ]
2275
+ },
2276
+ "landingPath": {
2277
+ "anyOf": [
2278
+ {
2279
+ "type": "string"
2280
+ },
2281
+ {
2282
+ "type": "null"
2283
+ }
2284
+ ]
2285
+ },
2286
+ "clickIds": {
2287
+ "type": "array",
2288
+ "items": {
2289
+ "type": "string"
2290
+ }
2291
+ },
2292
+ "at": {
2293
+ "type": "string"
2294
+ }
2295
+ },
2296
+ "required": [
2297
+ "channel",
2298
+ "source",
2299
+ "medium",
2300
+ "campaign",
2301
+ "term",
2302
+ "content",
2303
+ "referrerHost",
2304
+ "landingPath",
2305
+ "clickIds",
2306
+ "at"
2307
+ ],
2308
+ "additionalProperties": true
2309
+ }
2310
+ },
2311
+ "required": [
2312
+ "first",
2313
+ "last"
2314
+ ],
2315
+ "additionalProperties": true
2316
+ },
2317
+ {
2318
+ "type": "null"
2319
+ }
2320
+ ]
2321
+ }
2322
+ },
2323
+ "required": [
2324
+ "carried",
2325
+ "consent",
2326
+ "attribution"
2327
+ ],
2328
+ "additionalProperties": true
2329
+ },
2330
+ "errors": {
2331
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2332
+ "anyOf": [
2333
+ {
2334
+ "$ref": "#/$defs/UnauthenticatedEncoded"
2335
+ },
2336
+ {
2337
+ "$ref": "#/$defs/ForbiddenEncoded"
2338
+ },
2339
+ {
2340
+ "$ref": "#/$defs/InvalidInputEncoded"
2341
+ }
2342
+ ],
2343
+ "$defs": {
2344
+ "UnauthenticatedEncoded": {
2345
+ "type": "object",
2346
+ "properties": {
2347
+ "_tag": {
2348
+ "type": "string",
2349
+ "enum": [
2350
+ "Unauthenticated"
2351
+ ]
2352
+ },
2353
+ "message": {
2354
+ "type": "string"
2355
+ }
2356
+ },
2357
+ "required": [
2358
+ "_tag",
2359
+ "message"
2360
+ ],
2361
+ "additionalProperties": true
2362
+ },
2363
+ "ForbiddenEncoded": {
2364
+ "type": "object",
2365
+ "properties": {
2366
+ "_tag": {
2367
+ "type": "string",
2368
+ "enum": [
2369
+ "Forbidden"
2370
+ ]
2371
+ },
2372
+ "message": {
2373
+ "type": "string"
2374
+ },
2375
+ "action": {
2376
+ "type": "string"
2377
+ }
2378
+ },
2379
+ "required": [
2380
+ "_tag",
2381
+ "message",
2382
+ "action"
2383
+ ],
2384
+ "additionalProperties": true
2385
+ },
2386
+ "InvalidInputEncoded": {
2387
+ "type": "object",
2388
+ "properties": {
2389
+ "_tag": {
2390
+ "type": "string",
2391
+ "enum": [
2392
+ "InvalidInput"
2393
+ ]
2394
+ },
2395
+ "message": {
2396
+ "type": "string"
2397
+ }
2398
+ },
2399
+ "required": [
2400
+ "_tag",
2401
+ "message"
2402
+ ],
2403
+ "additionalProperties": true
2404
+ }
2405
+ }
2406
+ }
2407
+ }
2408
+ },
2409
+ "types": {
2410
+ "VisitRequest": {
2411
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2412
+ "type": "object",
2413
+ "properties": {
2414
+ "choices": {
2415
+ "type": "object",
2416
+ "properties": {
2417
+ "necessary": {
2418
+ "type": "boolean",
2419
+ "enum": [
2420
+ true
2421
+ ]
2422
+ },
2423
+ "functional": {
2424
+ "type": "boolean"
2425
+ },
2426
+ "analytics": {
2427
+ "type": "boolean"
2428
+ },
2429
+ "marketing": {
2430
+ "type": "boolean"
2431
+ }
2432
+ },
2433
+ "additionalProperties": true
2434
+ },
2435
+ "region": {
2436
+ "type": "object",
2437
+ "properties": {
2438
+ "country": {
2439
+ "type": "string"
2440
+ },
2441
+ "timeZone": {
2442
+ "type": "string",
2443
+ "maxLength": 64
2444
+ }
2445
+ },
2446
+ "additionalProperties": true
2447
+ },
2448
+ "touch": {
2449
+ "type": "object",
2450
+ "properties": {
2451
+ "source": {
2452
+ "type": "string",
2453
+ "maxLength": 200
2454
+ },
2455
+ "medium": {
2456
+ "type": "string",
2457
+ "maxLength": 200
2458
+ },
2459
+ "campaign": {
2460
+ "type": "string",
2461
+ "maxLength": 200
2462
+ },
2463
+ "term": {
2464
+ "type": "string",
2465
+ "maxLength": 200
2466
+ },
2467
+ "content": {
2468
+ "type": "string",
2469
+ "maxLength": 200
2470
+ },
2471
+ "referrer": {
2472
+ "type": "string",
2473
+ "maxLength": 2000
2474
+ },
2475
+ "landingPath": {
2476
+ "type": "string",
2477
+ "maxLength": 500
2478
+ },
2479
+ "clickIds": {
2480
+ "type": "array",
2481
+ "items": {
2482
+ "type": "string",
2483
+ "enum": [
2484
+ "gclid",
2485
+ "gbraid",
2486
+ "wbraid",
2487
+ "fbclid",
2488
+ "msclkid",
2489
+ "ttclid",
2490
+ "li_fat_id"
2491
+ ]
2492
+ }
2493
+ }
2494
+ },
2495
+ "additionalProperties": true
2496
+ }
2497
+ },
2498
+ "additionalProperties": true
2499
+ },
2500
+ "VisitState": {
2501
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2502
+ "type": "object",
2503
+ "properties": {
2504
+ "consent": {
2505
+ "type": "object",
2506
+ "properties": {
2507
+ "userId": {
2508
+ "type": "string"
2509
+ },
2510
+ "region": {
2511
+ "anyOf": [
2512
+ {
2513
+ "type": "string"
2514
+ },
2515
+ {
2516
+ "type": "null"
2517
+ }
2518
+ ]
2519
+ },
2520
+ "mode": {
2521
+ "type": "string",
2522
+ "enum": [
2523
+ "opt-in",
2524
+ "opt-out"
2525
+ ]
2526
+ },
2527
+ "categories": {
2528
+ "type": "object",
2529
+ "properties": {
2530
+ "necessary": {
2531
+ "type": "object",
2532
+ "properties": {
2533
+ "granted": {
2534
+ "type": "boolean"
2535
+ },
2536
+ "source": {
2537
+ "type": "string",
2538
+ "enum": [
2539
+ "necessary",
2540
+ "choice",
2541
+ "region"
2542
+ ]
2543
+ },
2544
+ "decidedAt": {
2545
+ "anyOf": [
2546
+ {
2547
+ "type": "number"
2548
+ },
2549
+ {
2550
+ "type": "string",
2551
+ "enum": [
2552
+ "Infinity",
2553
+ "-Infinity",
2554
+ "NaN"
2555
+ ]
2556
+ },
2557
+ {
2558
+ "type": "null"
2559
+ }
2560
+ ]
2561
+ }
2562
+ },
2563
+ "required": [
2564
+ "granted",
2565
+ "source",
2566
+ "decidedAt"
2567
+ ],
2568
+ "additionalProperties": true
2569
+ },
2570
+ "functional": {
2571
+ "type": "object",
2572
+ "properties": {
2573
+ "granted": {
2574
+ "type": "boolean"
2575
+ },
2576
+ "source": {
2577
+ "type": "string",
2578
+ "enum": [
2579
+ "necessary",
2580
+ "choice",
2581
+ "region"
2582
+ ]
2583
+ },
2584
+ "decidedAt": {
2585
+ "anyOf": [
2586
+ {
2587
+ "type": "number"
2588
+ },
2589
+ {
2590
+ "type": "string",
2591
+ "enum": [
2592
+ "Infinity",
2593
+ "-Infinity",
2594
+ "NaN"
2595
+ ]
2596
+ },
2597
+ {
2598
+ "type": "null"
2599
+ }
2600
+ ]
2601
+ }
2602
+ },
2603
+ "required": [
2604
+ "granted",
2605
+ "source",
2606
+ "decidedAt"
2607
+ ],
2608
+ "additionalProperties": true
2609
+ },
2610
+ "analytics": {
2611
+ "type": "object",
2612
+ "properties": {
2613
+ "granted": {
2614
+ "type": "boolean"
2615
+ },
2616
+ "source": {
2617
+ "type": "string",
2618
+ "enum": [
2619
+ "necessary",
2620
+ "choice",
2621
+ "region"
2622
+ ]
2623
+ },
2624
+ "decidedAt": {
2625
+ "anyOf": [
2626
+ {
2627
+ "type": "number"
2628
+ },
2629
+ {
2630
+ "type": "string",
2631
+ "enum": [
2632
+ "Infinity",
2633
+ "-Infinity",
2634
+ "NaN"
2635
+ ]
2636
+ },
2637
+ {
2638
+ "type": "null"
2639
+ }
2640
+ ]
2641
+ }
2642
+ },
2643
+ "required": [
2644
+ "granted",
2645
+ "source",
2646
+ "decidedAt"
2647
+ ],
2648
+ "additionalProperties": true
2649
+ },
2650
+ "marketing": {
2651
+ "type": "object",
2652
+ "properties": {
2653
+ "granted": {
2654
+ "type": "boolean"
2655
+ },
2656
+ "source": {
2657
+ "type": "string",
2658
+ "enum": [
2659
+ "necessary",
2660
+ "choice",
2661
+ "region"
2662
+ ]
2663
+ },
2664
+ "decidedAt": {
2665
+ "anyOf": [
2666
+ {
2667
+ "type": "number"
2668
+ },
2669
+ {
2670
+ "type": "string",
2671
+ "enum": [
2672
+ "Infinity",
2673
+ "-Infinity",
2674
+ "NaN"
2675
+ ]
2676
+ },
2677
+ {
2678
+ "type": "null"
2679
+ }
2680
+ ]
2681
+ }
2682
+ },
2683
+ "required": [
2684
+ "granted",
2685
+ "source",
2686
+ "decidedAt"
2687
+ ],
2688
+ "additionalProperties": true
2689
+ }
2690
+ },
2691
+ "required": [
2692
+ "necessary",
2693
+ "functional",
2694
+ "analytics",
2695
+ "marketing"
2696
+ ],
2697
+ "additionalProperties": true
2698
+ }
2699
+ },
2700
+ "required": [
2701
+ "userId",
2702
+ "region",
2703
+ "mode",
2704
+ "categories"
2705
+ ],
2706
+ "additionalProperties": true
2707
+ },
2708
+ "attribution": {
2709
+ "anyOf": [
2710
+ {
2711
+ "type": "object",
2712
+ "properties": {
2713
+ "first": {
2714
+ "type": "object",
2715
+ "properties": {
2716
+ "channel": {
2717
+ "type": "string",
2718
+ "enum": [
2719
+ "paid",
2720
+ "campaign",
2721
+ "referral",
2722
+ "direct"
2723
+ ]
2724
+ },
2725
+ "source": {
2726
+ "anyOf": [
2727
+ {
2728
+ "type": "string"
2729
+ },
2730
+ {
2731
+ "type": "null"
2732
+ }
2733
+ ]
2734
+ },
2735
+ "medium": {
2736
+ "anyOf": [
2737
+ {
2738
+ "type": "string"
2739
+ },
2740
+ {
2741
+ "type": "null"
2742
+ }
2743
+ ]
2744
+ },
2745
+ "campaign": {
2746
+ "anyOf": [
2747
+ {
2748
+ "type": "string"
2749
+ },
2750
+ {
2751
+ "type": "null"
2752
+ }
2753
+ ]
2754
+ },
2755
+ "term": {
2756
+ "anyOf": [
2757
+ {
2758
+ "type": "string"
2759
+ },
2760
+ {
2761
+ "type": "null"
2762
+ }
2763
+ ]
2764
+ },
2765
+ "content": {
2766
+ "anyOf": [
2767
+ {
2768
+ "type": "string"
2769
+ },
2770
+ {
2771
+ "type": "null"
2772
+ }
2773
+ ]
2774
+ },
2775
+ "referrerHost": {
2776
+ "anyOf": [
2777
+ {
2778
+ "type": "string"
2779
+ },
2780
+ {
2781
+ "type": "null"
2782
+ }
2783
+ ]
2784
+ },
2785
+ "landingPath": {
2786
+ "anyOf": [
2787
+ {
2788
+ "type": "string"
2789
+ },
2790
+ {
2791
+ "type": "null"
2792
+ }
2793
+ ]
2794
+ },
2795
+ "clickIds": {
2796
+ "type": "array",
2797
+ "items": {
2798
+ "type": "string"
2799
+ }
2800
+ },
2801
+ "at": {
2802
+ "type": "string"
2803
+ }
2804
+ },
2805
+ "required": [
2806
+ "channel",
2807
+ "source",
2808
+ "medium",
2809
+ "campaign",
2810
+ "term",
2811
+ "content",
2812
+ "referrerHost",
2813
+ "landingPath",
2814
+ "clickIds",
2815
+ "at"
2816
+ ],
2817
+ "additionalProperties": true
2818
+ },
2819
+ "last": {
2820
+ "type": "object",
2821
+ "properties": {
2822
+ "channel": {
2823
+ "type": "string",
2824
+ "enum": [
2825
+ "paid",
2826
+ "campaign",
2827
+ "referral",
2828
+ "direct"
2829
+ ]
2830
+ },
2831
+ "source": {
2832
+ "anyOf": [
2833
+ {
2834
+ "type": "string"
2835
+ },
2836
+ {
2837
+ "type": "null"
2838
+ }
2839
+ ]
2840
+ },
2841
+ "medium": {
2842
+ "anyOf": [
2843
+ {
2844
+ "type": "string"
2845
+ },
2846
+ {
2847
+ "type": "null"
2848
+ }
2849
+ ]
2850
+ },
2851
+ "campaign": {
2852
+ "anyOf": [
2853
+ {
2854
+ "type": "string"
2855
+ },
2856
+ {
2857
+ "type": "null"
2858
+ }
2859
+ ]
2860
+ },
2861
+ "term": {
2862
+ "anyOf": [
2863
+ {
2864
+ "type": "string"
2865
+ },
2866
+ {
2867
+ "type": "null"
2868
+ }
2869
+ ]
2870
+ },
2871
+ "content": {
2872
+ "anyOf": [
2873
+ {
2874
+ "type": "string"
2875
+ },
2876
+ {
2877
+ "type": "null"
2878
+ }
2879
+ ]
2880
+ },
2881
+ "referrerHost": {
2882
+ "anyOf": [
2883
+ {
2884
+ "type": "string"
2885
+ },
2886
+ {
2887
+ "type": "null"
2888
+ }
2889
+ ]
2890
+ },
2891
+ "landingPath": {
2892
+ "anyOf": [
2893
+ {
2894
+ "type": "string"
2895
+ },
2896
+ {
2897
+ "type": "null"
2898
+ }
2899
+ ]
2900
+ },
2901
+ "clickIds": {
2902
+ "type": "array",
2903
+ "items": {
2904
+ "type": "string"
2905
+ }
2906
+ },
2907
+ "at": {
2908
+ "type": "string"
2909
+ }
2910
+ },
2911
+ "required": [
2912
+ "channel",
2913
+ "source",
2914
+ "medium",
2915
+ "campaign",
2916
+ "term",
2917
+ "content",
2918
+ "referrerHost",
2919
+ "landingPath",
2920
+ "clickIds",
2921
+ "at"
2922
+ ],
2923
+ "additionalProperties": true
2924
+ }
2925
+ },
2926
+ "required": [
2927
+ "first",
2928
+ "last"
2929
+ ],
2930
+ "additionalProperties": true
2931
+ },
2932
+ {
2933
+ "type": "null"
2934
+ }
2935
+ ]
2936
+ },
2937
+ "claim": {
2938
+ "anyOf": [
2939
+ {
2940
+ "type": "string"
2941
+ },
2942
+ {
2943
+ "type": "null"
2944
+ }
2945
+ ]
2946
+ }
2947
+ },
2948
+ "required": [
2949
+ "consent",
2950
+ "attribution",
2951
+ "claim"
2952
+ ],
2953
+ "additionalProperties": true
2954
+ },
2955
+ "VisitClaimed": {
2956
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2957
+ "type": "object",
2958
+ "properties": {
2959
+ "carried": {
2960
+ "type": "array",
2961
+ "items": {
2962
+ "type": "string",
2963
+ "enum": [
2964
+ "necessary",
2965
+ "functional",
2966
+ "analytics",
2967
+ "marketing"
2968
+ ]
2969
+ }
2970
+ },
2971
+ "consent": {
2972
+ "type": "object",
2973
+ "properties": {
2974
+ "userId": {
2975
+ "type": "string"
2976
+ },
2977
+ "region": {
2978
+ "anyOf": [
2979
+ {
2980
+ "type": "string"
2981
+ },
2982
+ {
2983
+ "type": "null"
2984
+ }
2985
+ ]
2986
+ },
2987
+ "mode": {
2988
+ "type": "string",
2989
+ "enum": [
2990
+ "opt-in",
2991
+ "opt-out"
2992
+ ]
2993
+ },
2994
+ "categories": {
2995
+ "type": "object",
2996
+ "properties": {
2997
+ "necessary": {
2998
+ "type": "object",
2999
+ "properties": {
3000
+ "granted": {
3001
+ "type": "boolean"
3002
+ },
3003
+ "source": {
3004
+ "type": "string",
3005
+ "enum": [
3006
+ "necessary",
3007
+ "choice",
3008
+ "region"
3009
+ ]
3010
+ },
3011
+ "decidedAt": {
3012
+ "anyOf": [
3013
+ {
3014
+ "type": "number"
3015
+ },
3016
+ {
3017
+ "type": "string",
3018
+ "enum": [
3019
+ "Infinity",
3020
+ "-Infinity",
3021
+ "NaN"
3022
+ ]
3023
+ },
3024
+ {
3025
+ "type": "null"
3026
+ }
3027
+ ]
3028
+ }
3029
+ },
3030
+ "required": [
3031
+ "granted",
3032
+ "source",
3033
+ "decidedAt"
3034
+ ],
3035
+ "additionalProperties": true
3036
+ },
3037
+ "functional": {
3038
+ "type": "object",
3039
+ "properties": {
3040
+ "granted": {
3041
+ "type": "boolean"
3042
+ },
3043
+ "source": {
3044
+ "type": "string",
3045
+ "enum": [
3046
+ "necessary",
3047
+ "choice",
3048
+ "region"
3049
+ ]
3050
+ },
3051
+ "decidedAt": {
3052
+ "anyOf": [
3053
+ {
3054
+ "type": "number"
3055
+ },
3056
+ {
3057
+ "type": "string",
3058
+ "enum": [
3059
+ "Infinity",
3060
+ "-Infinity",
3061
+ "NaN"
3062
+ ]
3063
+ },
3064
+ {
3065
+ "type": "null"
3066
+ }
3067
+ ]
3068
+ }
3069
+ },
3070
+ "required": [
3071
+ "granted",
3072
+ "source",
3073
+ "decidedAt"
3074
+ ],
3075
+ "additionalProperties": true
3076
+ },
3077
+ "analytics": {
3078
+ "type": "object",
3079
+ "properties": {
3080
+ "granted": {
3081
+ "type": "boolean"
3082
+ },
3083
+ "source": {
3084
+ "type": "string",
3085
+ "enum": [
3086
+ "necessary",
3087
+ "choice",
3088
+ "region"
3089
+ ]
3090
+ },
3091
+ "decidedAt": {
3092
+ "anyOf": [
3093
+ {
3094
+ "type": "number"
3095
+ },
3096
+ {
3097
+ "type": "string",
3098
+ "enum": [
3099
+ "Infinity",
3100
+ "-Infinity",
3101
+ "NaN"
3102
+ ]
3103
+ },
3104
+ {
3105
+ "type": "null"
3106
+ }
3107
+ ]
3108
+ }
3109
+ },
3110
+ "required": [
3111
+ "granted",
3112
+ "source",
3113
+ "decidedAt"
3114
+ ],
3115
+ "additionalProperties": true
3116
+ },
3117
+ "marketing": {
3118
+ "type": "object",
3119
+ "properties": {
3120
+ "granted": {
3121
+ "type": "boolean"
3122
+ },
3123
+ "source": {
3124
+ "type": "string",
3125
+ "enum": [
3126
+ "necessary",
3127
+ "choice",
3128
+ "region"
3129
+ ]
3130
+ },
3131
+ "decidedAt": {
3132
+ "anyOf": [
3133
+ {
3134
+ "type": "number"
3135
+ },
3136
+ {
3137
+ "type": "string",
3138
+ "enum": [
3139
+ "Infinity",
3140
+ "-Infinity",
3141
+ "NaN"
3142
+ ]
3143
+ },
3144
+ {
3145
+ "type": "null"
3146
+ }
3147
+ ]
3148
+ }
3149
+ },
3150
+ "required": [
3151
+ "granted",
3152
+ "source",
3153
+ "decidedAt"
3154
+ ],
3155
+ "additionalProperties": true
3156
+ }
3157
+ },
3158
+ "required": [
3159
+ "necessary",
3160
+ "functional",
3161
+ "analytics",
3162
+ "marketing"
3163
+ ],
3164
+ "additionalProperties": true
3165
+ }
3166
+ },
3167
+ "required": [
3168
+ "userId",
3169
+ "region",
3170
+ "mode",
3171
+ "categories"
3172
+ ],
3173
+ "additionalProperties": true
3174
+ },
3175
+ "attribution": {
3176
+ "anyOf": [
3177
+ {
3178
+ "type": "object",
3179
+ "properties": {
3180
+ "first": {
3181
+ "type": "object",
3182
+ "properties": {
3183
+ "channel": {
3184
+ "type": "string",
3185
+ "enum": [
3186
+ "paid",
3187
+ "campaign",
3188
+ "referral",
3189
+ "direct"
3190
+ ]
3191
+ },
3192
+ "source": {
3193
+ "anyOf": [
3194
+ {
3195
+ "type": "string"
3196
+ },
3197
+ {
3198
+ "type": "null"
3199
+ }
3200
+ ]
3201
+ },
3202
+ "medium": {
3203
+ "anyOf": [
3204
+ {
3205
+ "type": "string"
3206
+ },
3207
+ {
3208
+ "type": "null"
3209
+ }
3210
+ ]
3211
+ },
3212
+ "campaign": {
3213
+ "anyOf": [
3214
+ {
3215
+ "type": "string"
3216
+ },
3217
+ {
3218
+ "type": "null"
3219
+ }
3220
+ ]
3221
+ },
3222
+ "term": {
3223
+ "anyOf": [
3224
+ {
3225
+ "type": "string"
3226
+ },
3227
+ {
3228
+ "type": "null"
3229
+ }
3230
+ ]
3231
+ },
3232
+ "content": {
3233
+ "anyOf": [
3234
+ {
3235
+ "type": "string"
3236
+ },
3237
+ {
3238
+ "type": "null"
3239
+ }
3240
+ ]
3241
+ },
3242
+ "referrerHost": {
3243
+ "anyOf": [
3244
+ {
3245
+ "type": "string"
3246
+ },
3247
+ {
3248
+ "type": "null"
3249
+ }
3250
+ ]
3251
+ },
3252
+ "landingPath": {
3253
+ "anyOf": [
3254
+ {
3255
+ "type": "string"
3256
+ },
3257
+ {
3258
+ "type": "null"
3259
+ }
3260
+ ]
3261
+ },
3262
+ "clickIds": {
3263
+ "type": "array",
3264
+ "items": {
3265
+ "type": "string"
3266
+ }
3267
+ },
3268
+ "at": {
3269
+ "type": "string"
3270
+ }
3271
+ },
3272
+ "required": [
3273
+ "channel",
3274
+ "source",
3275
+ "medium",
3276
+ "campaign",
3277
+ "term",
3278
+ "content",
3279
+ "referrerHost",
3280
+ "landingPath",
3281
+ "clickIds",
3282
+ "at"
3283
+ ],
3284
+ "additionalProperties": true
3285
+ },
3286
+ "last": {
3287
+ "type": "object",
3288
+ "properties": {
3289
+ "channel": {
3290
+ "type": "string",
3291
+ "enum": [
3292
+ "paid",
3293
+ "campaign",
3294
+ "referral",
3295
+ "direct"
3296
+ ]
3297
+ },
3298
+ "source": {
3299
+ "anyOf": [
3300
+ {
3301
+ "type": "string"
3302
+ },
3303
+ {
3304
+ "type": "null"
3305
+ }
3306
+ ]
3307
+ },
3308
+ "medium": {
3309
+ "anyOf": [
3310
+ {
3311
+ "type": "string"
3312
+ },
3313
+ {
3314
+ "type": "null"
3315
+ }
3316
+ ]
3317
+ },
3318
+ "campaign": {
3319
+ "anyOf": [
3320
+ {
3321
+ "type": "string"
3322
+ },
3323
+ {
3324
+ "type": "null"
3325
+ }
3326
+ ]
3327
+ },
3328
+ "term": {
3329
+ "anyOf": [
3330
+ {
3331
+ "type": "string"
3332
+ },
3333
+ {
3334
+ "type": "null"
3335
+ }
3336
+ ]
3337
+ },
3338
+ "content": {
3339
+ "anyOf": [
3340
+ {
3341
+ "type": "string"
3342
+ },
3343
+ {
3344
+ "type": "null"
3345
+ }
3346
+ ]
3347
+ },
3348
+ "referrerHost": {
3349
+ "anyOf": [
3350
+ {
3351
+ "type": "string"
3352
+ },
3353
+ {
3354
+ "type": "null"
3355
+ }
3356
+ ]
3357
+ },
3358
+ "landingPath": {
3359
+ "anyOf": [
3360
+ {
3361
+ "type": "string"
3362
+ },
3363
+ {
3364
+ "type": "null"
3365
+ }
3366
+ ]
3367
+ },
3368
+ "clickIds": {
3369
+ "type": "array",
3370
+ "items": {
3371
+ "type": "string"
3372
+ }
3373
+ },
3374
+ "at": {
3375
+ "type": "string"
3376
+ }
3377
+ },
3378
+ "required": [
3379
+ "channel",
3380
+ "source",
3381
+ "medium",
3382
+ "campaign",
3383
+ "term",
3384
+ "content",
3385
+ "referrerHost",
3386
+ "landingPath",
3387
+ "clickIds",
3388
+ "at"
3389
+ ],
3390
+ "additionalProperties": true
3391
+ }
3392
+ },
3393
+ "required": [
3394
+ "first",
3395
+ "last"
3396
+ ],
3397
+ "additionalProperties": true
3398
+ },
3399
+ {
3400
+ "type": "null"
3401
+ }
3402
+ ]
3403
+ }
3404
+ },
3405
+ "required": [
3406
+ "carried",
3407
+ "consent",
3408
+ "attribution"
3409
+ ],
3410
+ "additionalProperties": true
3411
+ },
3412
+ "VisitTouch": {
3413
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3414
+ "type": "object",
3415
+ "properties": {
3416
+ "source": {
3417
+ "type": "string",
3418
+ "maxLength": 200
3419
+ },
3420
+ "medium": {
3421
+ "type": "string",
3422
+ "maxLength": 200
3423
+ },
3424
+ "campaign": {
3425
+ "type": "string",
3426
+ "maxLength": 200
3427
+ },
3428
+ "term": {
3429
+ "type": "string",
3430
+ "maxLength": 200
3431
+ },
3432
+ "content": {
3433
+ "type": "string",
3434
+ "maxLength": 200
3435
+ },
3436
+ "referrer": {
3437
+ "type": "string",
3438
+ "maxLength": 2000
3439
+ },
3440
+ "landingPath": {
3441
+ "type": "string",
3442
+ "maxLength": 500
3443
+ },
3444
+ "clickIds": {
3445
+ "type": "array",
3446
+ "items": {
3447
+ "type": "string",
3448
+ "enum": [
3449
+ "gclid",
3450
+ "gbraid",
3451
+ "wbraid",
3452
+ "fbclid",
3453
+ "msclkid",
3454
+ "ttclid",
3455
+ "li_fat_id"
3456
+ ]
3457
+ }
3458
+ }
3459
+ },
3460
+ "additionalProperties": true
3461
+ },
3462
+ "Touch": {
3463
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3464
+ "type": "object",
3465
+ "properties": {
3466
+ "channel": {
3467
+ "type": "string",
3468
+ "enum": [
3469
+ "paid",
3470
+ "campaign",
3471
+ "referral",
3472
+ "direct"
3473
+ ]
3474
+ },
3475
+ "source": {
3476
+ "anyOf": [
3477
+ {
3478
+ "type": "string"
3479
+ },
3480
+ {
3481
+ "type": "null"
3482
+ }
3483
+ ]
3484
+ },
3485
+ "medium": {
3486
+ "anyOf": [
3487
+ {
3488
+ "type": "string"
3489
+ },
3490
+ {
3491
+ "type": "null"
3492
+ }
3493
+ ]
3494
+ },
3495
+ "campaign": {
3496
+ "anyOf": [
3497
+ {
3498
+ "type": "string"
3499
+ },
3500
+ {
3501
+ "type": "null"
3502
+ }
3503
+ ]
3504
+ },
3505
+ "term": {
3506
+ "anyOf": [
3507
+ {
3508
+ "type": "string"
3509
+ },
3510
+ {
3511
+ "type": "null"
3512
+ }
3513
+ ]
3514
+ },
3515
+ "content": {
3516
+ "anyOf": [
3517
+ {
3518
+ "type": "string"
3519
+ },
3520
+ {
3521
+ "type": "null"
3522
+ }
3523
+ ]
3524
+ },
3525
+ "referrerHost": {
3526
+ "anyOf": [
3527
+ {
3528
+ "type": "string"
3529
+ },
3530
+ {
3531
+ "type": "null"
3532
+ }
3533
+ ]
3534
+ },
3535
+ "landingPath": {
3536
+ "anyOf": [
3537
+ {
3538
+ "type": "string"
3539
+ },
3540
+ {
3541
+ "type": "null"
3542
+ }
3543
+ ]
3544
+ },
3545
+ "clickIds": {
3546
+ "type": "array",
3547
+ "items": {
3548
+ "type": "string"
3549
+ }
3550
+ },
3551
+ "at": {
3552
+ "type": "string"
3553
+ }
3554
+ },
3555
+ "required": [
3556
+ "channel",
3557
+ "source",
3558
+ "medium",
3559
+ "campaign",
3560
+ "term",
3561
+ "content",
3562
+ "referrerHost",
3563
+ "landingPath",
3564
+ "clickIds",
3565
+ "at"
3566
+ ],
3567
+ "additionalProperties": true
3568
+ },
3569
+ "Attribution": {
3570
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3571
+ "type": "object",
3572
+ "properties": {
3573
+ "first": {
3574
+ "type": "object",
3575
+ "properties": {
3576
+ "channel": {
3577
+ "type": "string",
3578
+ "enum": [
3579
+ "paid",
3580
+ "campaign",
3581
+ "referral",
3582
+ "direct"
3583
+ ]
3584
+ },
3585
+ "source": {
3586
+ "anyOf": [
3587
+ {
3588
+ "type": "string"
3589
+ },
3590
+ {
3591
+ "type": "null"
3592
+ }
3593
+ ]
3594
+ },
3595
+ "medium": {
3596
+ "anyOf": [
3597
+ {
3598
+ "type": "string"
3599
+ },
3600
+ {
3601
+ "type": "null"
3602
+ }
3603
+ ]
3604
+ },
3605
+ "campaign": {
3606
+ "anyOf": [
3607
+ {
3608
+ "type": "string"
3609
+ },
3610
+ {
3611
+ "type": "null"
3612
+ }
3613
+ ]
3614
+ },
3615
+ "term": {
3616
+ "anyOf": [
3617
+ {
3618
+ "type": "string"
3619
+ },
3620
+ {
3621
+ "type": "null"
3622
+ }
3623
+ ]
3624
+ },
3625
+ "content": {
3626
+ "anyOf": [
3627
+ {
3628
+ "type": "string"
3629
+ },
3630
+ {
3631
+ "type": "null"
3632
+ }
3633
+ ]
3634
+ },
3635
+ "referrerHost": {
3636
+ "anyOf": [
3637
+ {
3638
+ "type": "string"
3639
+ },
3640
+ {
3641
+ "type": "null"
3642
+ }
3643
+ ]
3644
+ },
3645
+ "landingPath": {
3646
+ "anyOf": [
3647
+ {
3648
+ "type": "string"
3649
+ },
3650
+ {
3651
+ "type": "null"
3652
+ }
3653
+ ]
3654
+ },
3655
+ "clickIds": {
3656
+ "type": "array",
3657
+ "items": {
3658
+ "type": "string"
3659
+ }
3660
+ },
3661
+ "at": {
3662
+ "type": "string"
3663
+ }
3664
+ },
3665
+ "required": [
3666
+ "channel",
3667
+ "source",
3668
+ "medium",
3669
+ "campaign",
3670
+ "term",
3671
+ "content",
3672
+ "referrerHost",
3673
+ "landingPath",
3674
+ "clickIds",
3675
+ "at"
3676
+ ],
3677
+ "additionalProperties": true
3678
+ },
3679
+ "last": {
3680
+ "type": "object",
3681
+ "properties": {
3682
+ "channel": {
3683
+ "type": "string",
3684
+ "enum": [
3685
+ "paid",
3686
+ "campaign",
3687
+ "referral",
3688
+ "direct"
3689
+ ]
3690
+ },
3691
+ "source": {
3692
+ "anyOf": [
3693
+ {
3694
+ "type": "string"
3695
+ },
3696
+ {
3697
+ "type": "null"
3698
+ }
3699
+ ]
3700
+ },
3701
+ "medium": {
3702
+ "anyOf": [
3703
+ {
3704
+ "type": "string"
3705
+ },
3706
+ {
3707
+ "type": "null"
3708
+ }
3709
+ ]
3710
+ },
3711
+ "campaign": {
3712
+ "anyOf": [
3713
+ {
3714
+ "type": "string"
3715
+ },
3716
+ {
3717
+ "type": "null"
3718
+ }
3719
+ ]
3720
+ },
3721
+ "term": {
3722
+ "anyOf": [
3723
+ {
3724
+ "type": "string"
3725
+ },
3726
+ {
3727
+ "type": "null"
3728
+ }
3729
+ ]
3730
+ },
3731
+ "content": {
3732
+ "anyOf": [
3733
+ {
3734
+ "type": "string"
3735
+ },
3736
+ {
3737
+ "type": "null"
3738
+ }
3739
+ ]
3740
+ },
3741
+ "referrerHost": {
3742
+ "anyOf": [
3743
+ {
3744
+ "type": "string"
3745
+ },
3746
+ {
3747
+ "type": "null"
3748
+ }
3749
+ ]
3750
+ },
3751
+ "landingPath": {
3752
+ "anyOf": [
3753
+ {
3754
+ "type": "string"
3755
+ },
3756
+ {
3757
+ "type": "null"
3758
+ }
3759
+ ]
3760
+ },
3761
+ "clickIds": {
3762
+ "type": "array",
3763
+ "items": {
3764
+ "type": "string"
3765
+ }
3766
+ },
3767
+ "at": {
3768
+ "type": "string"
3769
+ }
3770
+ },
3771
+ "required": [
3772
+ "channel",
3773
+ "source",
3774
+ "medium",
3775
+ "campaign",
3776
+ "term",
3777
+ "content",
3778
+ "referrerHost",
3779
+ "landingPath",
3780
+ "clickIds",
3781
+ "at"
3782
+ ],
3783
+ "additionalProperties": true
3784
+ }
3785
+ },
3786
+ "required": [
3787
+ "first",
3788
+ "last"
3789
+ ],
3790
+ "additionalProperties": true
3791
+ },
3792
+ "ConsentCategory": {
3793
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3794
+ "type": "string",
3795
+ "enum": [
3796
+ "necessary",
3797
+ "functional",
3798
+ "analytics",
3799
+ "marketing"
3800
+ ]
3801
+ },
3802
+ "ConsentMode": {
3803
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3804
+ "type": "string",
3805
+ "enum": [
3806
+ "opt-in",
3807
+ "opt-out"
3808
+ ]
3809
+ },
3810
+ "ConsentState": {
3811
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3812
+ "type": "object",
3813
+ "properties": {
3814
+ "userId": {
3815
+ "type": "string"
3816
+ },
3817
+ "region": {
3818
+ "anyOf": [
3819
+ {
3820
+ "type": "string"
3821
+ },
3822
+ {
3823
+ "type": "null"
3824
+ }
3825
+ ]
3826
+ },
3827
+ "mode": {
3828
+ "type": "string",
3829
+ "enum": [
3830
+ "opt-in",
3831
+ "opt-out"
3832
+ ]
3833
+ },
3834
+ "categories": {
3835
+ "type": "object",
3836
+ "properties": {
3837
+ "necessary": {
3838
+ "type": "object",
3839
+ "properties": {
3840
+ "granted": {
3841
+ "type": "boolean"
3842
+ },
3843
+ "source": {
3844
+ "type": "string",
3845
+ "enum": [
3846
+ "necessary",
3847
+ "choice",
3848
+ "region"
3849
+ ]
3850
+ },
3851
+ "decidedAt": {
3852
+ "anyOf": [
3853
+ {
3854
+ "type": "number"
3855
+ },
3856
+ {
3857
+ "type": "string",
3858
+ "enum": [
3859
+ "Infinity",
3860
+ "-Infinity",
3861
+ "NaN"
3862
+ ]
3863
+ },
3864
+ {
3865
+ "type": "null"
3866
+ }
3867
+ ]
3868
+ }
3869
+ },
3870
+ "required": [
3871
+ "granted",
3872
+ "source",
3873
+ "decidedAt"
3874
+ ],
3875
+ "additionalProperties": true
3876
+ },
3877
+ "functional": {
3878
+ "type": "object",
3879
+ "properties": {
3880
+ "granted": {
3881
+ "type": "boolean"
3882
+ },
3883
+ "source": {
3884
+ "type": "string",
3885
+ "enum": [
3886
+ "necessary",
3887
+ "choice",
3888
+ "region"
3889
+ ]
3890
+ },
3891
+ "decidedAt": {
3892
+ "anyOf": [
3893
+ {
3894
+ "type": "number"
3895
+ },
3896
+ {
3897
+ "type": "string",
3898
+ "enum": [
3899
+ "Infinity",
3900
+ "-Infinity",
3901
+ "NaN"
3902
+ ]
3903
+ },
3904
+ {
3905
+ "type": "null"
3906
+ }
3907
+ ]
3908
+ }
3909
+ },
3910
+ "required": [
3911
+ "granted",
3912
+ "source",
3913
+ "decidedAt"
3914
+ ],
3915
+ "additionalProperties": true
3916
+ },
3917
+ "analytics": {
3918
+ "type": "object",
3919
+ "properties": {
3920
+ "granted": {
3921
+ "type": "boolean"
3922
+ },
3923
+ "source": {
3924
+ "type": "string",
3925
+ "enum": [
3926
+ "necessary",
3927
+ "choice",
3928
+ "region"
3929
+ ]
3930
+ },
3931
+ "decidedAt": {
3932
+ "anyOf": [
3933
+ {
3934
+ "type": "number"
3935
+ },
3936
+ {
3937
+ "type": "string",
3938
+ "enum": [
3939
+ "Infinity",
3940
+ "-Infinity",
3941
+ "NaN"
3942
+ ]
3943
+ },
3944
+ {
3945
+ "type": "null"
3946
+ }
3947
+ ]
3948
+ }
3949
+ },
3950
+ "required": [
3951
+ "granted",
3952
+ "source",
3953
+ "decidedAt"
3954
+ ],
3955
+ "additionalProperties": true
3956
+ },
3957
+ "marketing": {
3958
+ "type": "object",
3959
+ "properties": {
3960
+ "granted": {
3961
+ "type": "boolean"
3962
+ },
3963
+ "source": {
3964
+ "type": "string",
3965
+ "enum": [
3966
+ "necessary",
3967
+ "choice",
3968
+ "region"
3969
+ ]
3970
+ },
3971
+ "decidedAt": {
3972
+ "anyOf": [
3973
+ {
3974
+ "type": "number"
3975
+ },
3976
+ {
3977
+ "type": "string",
3978
+ "enum": [
3979
+ "Infinity",
3980
+ "-Infinity",
3981
+ "NaN"
3982
+ ]
3983
+ },
3984
+ {
3985
+ "type": "null"
3986
+ }
3987
+ ]
3988
+ }
3989
+ },
3990
+ "required": [
3991
+ "granted",
3992
+ "source",
3993
+ "decidedAt"
3994
+ ],
3995
+ "additionalProperties": true
3996
+ }
3997
+ },
3998
+ "required": [
3999
+ "necessary",
4000
+ "functional",
4001
+ "analytics",
4002
+ "marketing"
4003
+ ],
4004
+ "additionalProperties": true
4005
+ }
4006
+ },
4007
+ "required": [
4008
+ "userId",
4009
+ "region",
4010
+ "mode",
4011
+ "categories"
4012
+ ],
4013
+ "additionalProperties": true
4014
+ },
4015
+ "ConsentRecord": {
4016
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4017
+ "type": "object",
4018
+ "properties": {
4019
+ "id": {
4020
+ "type": "string"
4021
+ },
4022
+ "userId": {
4023
+ "type": "string"
4024
+ },
4025
+ "category": {
4026
+ "type": "string",
4027
+ "enum": [
4028
+ "necessary",
4029
+ "functional",
4030
+ "analytics",
4031
+ "marketing"
4032
+ ]
4033
+ },
4034
+ "granted": {
4035
+ "type": "boolean"
4036
+ },
4037
+ "region": {
4038
+ "anyOf": [
4039
+ {
4040
+ "type": "string"
4041
+ },
4042
+ {
4043
+ "type": "null"
4044
+ }
4045
+ ]
4046
+ },
4047
+ "decidedAt": {
4048
+ "anyOf": [
4049
+ {
4050
+ "type": "number"
4051
+ },
4052
+ {
4053
+ "type": "string",
4054
+ "enum": [
4055
+ "Infinity",
4056
+ "-Infinity",
4057
+ "NaN"
4058
+ ]
4059
+ }
4060
+ ]
4061
+ }
4062
+ },
4063
+ "required": [
4064
+ "id",
4065
+ "userId",
4066
+ "category",
4067
+ "granted",
4068
+ "region",
4069
+ "decidedAt"
4070
+ ],
4071
+ "additionalProperties": true
4072
+ },
4073
+ "PrivacyRequest": {
4074
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4075
+ "type": "object",
4076
+ "properties": {
4077
+ "id": {
4078
+ "type": "string"
4079
+ },
4080
+ "orgId": {
4081
+ "type": "string"
4082
+ },
4083
+ "kind": {
4084
+ "type": "string",
4085
+ "enum": [
4086
+ "export",
4087
+ "erasure"
4088
+ ]
4089
+ },
4090
+ "subjectId": {
4091
+ "type": "string"
4092
+ },
4093
+ "requestedBy": {
4094
+ "type": "string"
4095
+ },
4096
+ "status": {
4097
+ "type": "string",
4098
+ "enum": [
4099
+ "pending",
4100
+ "running",
4101
+ "succeeded",
4102
+ "failed",
4103
+ "cancelled"
4104
+ ]
4105
+ },
4106
+ "taskId": {
4107
+ "anyOf": [
4108
+ {
4109
+ "type": "string"
4110
+ },
4111
+ {
4112
+ "type": "null"
4113
+ }
4114
+ ]
4115
+ },
4116
+ "sources": {
4117
+ "type": "array",
4118
+ "items": {
4119
+ "type": "object",
4120
+ "properties": {
4121
+ "source": {
4122
+ "type": "string"
4123
+ },
4124
+ "records": {
4125
+ "anyOf": [
4126
+ {
4127
+ "type": "number"
4128
+ },
4129
+ {
4130
+ "type": "string",
4131
+ "enum": [
4132
+ "Infinity",
4133
+ "-Infinity",
4134
+ "NaN"
4135
+ ]
4136
+ }
4137
+ ]
4138
+ },
4139
+ "outcome": {
4140
+ "type": "string",
4141
+ "enum": [
4142
+ "exported",
4143
+ "deleted",
4144
+ "anonymised",
4145
+ "retained",
4146
+ "none"
4147
+ ]
4148
+ },
4149
+ "reason": {
4150
+ "anyOf": [
4151
+ {
4152
+ "type": "string"
4153
+ },
4154
+ {
4155
+ "type": "null"
4156
+ }
4157
+ ]
4158
+ }
4159
+ },
4160
+ "required": [
4161
+ "source",
4162
+ "records",
4163
+ "outcome",
4164
+ "reason"
4165
+ ],
4166
+ "additionalProperties": true
4167
+ }
4168
+ },
4169
+ "error": {
4170
+ "anyOf": [
4171
+ {
4172
+ "type": "string"
4173
+ },
4174
+ {
4175
+ "type": "null"
4176
+ }
4177
+ ]
4178
+ },
4179
+ "createdAt": {
4180
+ "anyOf": [
4181
+ {
4182
+ "type": "number"
4183
+ },
4184
+ {
4185
+ "type": "string",
4186
+ "enum": [
4187
+ "Infinity",
4188
+ "-Infinity",
4189
+ "NaN"
4190
+ ]
4191
+ }
4192
+ ]
4193
+ },
4194
+ "finishedAt": {
4195
+ "anyOf": [
4196
+ {
4197
+ "type": "number"
4198
+ },
4199
+ {
4200
+ "type": "string",
4201
+ "enum": [
4202
+ "Infinity",
4203
+ "-Infinity",
4204
+ "NaN"
4205
+ ]
4206
+ },
4207
+ {
4208
+ "type": "null"
4209
+ }
4210
+ ]
4211
+ }
4212
+ },
4213
+ "required": [
4214
+ "id",
4215
+ "orgId",
4216
+ "kind",
4217
+ "subjectId",
4218
+ "requestedBy",
4219
+ "status",
4220
+ "taskId",
4221
+ "sources",
4222
+ "error",
4223
+ "createdAt",
4224
+ "finishedAt"
4225
+ ],
4226
+ "additionalProperties": true
4227
+ },
4228
+ "SourceOutcome": {
4229
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4230
+ "type": "object",
4231
+ "properties": {
4232
+ "source": {
4233
+ "type": "string"
4234
+ },
4235
+ "records": {
4236
+ "anyOf": [
4237
+ {
4238
+ "type": "number"
4239
+ },
4240
+ {
4241
+ "type": "string",
4242
+ "enum": [
4243
+ "Infinity",
4244
+ "-Infinity",
4245
+ "NaN"
4246
+ ]
4247
+ }
4248
+ ]
4249
+ },
4250
+ "outcome": {
4251
+ "type": "string",
4252
+ "enum": [
4253
+ "exported",
4254
+ "deleted",
4255
+ "anonymised",
4256
+ "retained",
4257
+ "none"
4258
+ ]
4259
+ },
4260
+ "reason": {
4261
+ "anyOf": [
4262
+ {
4263
+ "type": "string"
4264
+ },
4265
+ {
4266
+ "type": "null"
4267
+ }
4268
+ ]
4269
+ }
4270
+ },
4271
+ "required": [
4272
+ "source",
4273
+ "records",
4274
+ "outcome",
4275
+ "reason"
4276
+ ],
4277
+ "additionalProperties": true
4278
+ },
4279
+ "DataExport": {
4280
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4281
+ "type": "object",
4282
+ "properties": {
4283
+ "requestId": {
4284
+ "type": "string"
4285
+ },
4286
+ "orgId": {
4287
+ "type": "string"
4288
+ },
4289
+ "subjectId": {
4290
+ "type": "string"
4291
+ },
4292
+ "generatedAt": {
4293
+ "anyOf": [
4294
+ {
4295
+ "type": "number"
4296
+ },
4297
+ {
4298
+ "type": "string",
4299
+ "enum": [
4300
+ "Infinity",
4301
+ "-Infinity",
4302
+ "NaN"
4303
+ ]
4304
+ }
4305
+ ]
4306
+ },
4307
+ "sources": {
4308
+ "type": "array",
4309
+ "items": {
4310
+ "type": "object",
4311
+ "properties": {
4312
+ "source": {
4313
+ "type": "string"
4314
+ },
4315
+ "records": {
4316
+ "type": "array",
4317
+ "items": {
4318
+ "type": "object"
4319
+ }
4320
+ }
4321
+ },
4322
+ "required": [
4323
+ "source",
4324
+ "records"
4325
+ ],
4326
+ "additionalProperties": true
4327
+ }
4328
+ }
4329
+ },
4330
+ "required": [
4331
+ "requestId",
4332
+ "orgId",
4333
+ "subjectId",
4334
+ "generatedAt",
4335
+ "sources"
4336
+ ],
4337
+ "additionalProperties": true
4338
+ },
4339
+ "RegionHint": {
4340
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4341
+ "type": "object",
4342
+ "properties": {
4343
+ "country": {
4344
+ "type": "string"
4345
+ },
4346
+ "timeZone": {
4347
+ "type": "string",
4348
+ "maxLength": 64
4349
+ }
4350
+ },
4351
+ "additionalProperties": true
4352
+ }
4353
+ }
4354
+ }