{"_id":"@airdraft/plugin-audit-log","_rev":"10-3364a440f4f98ca855364c2b832f88bb","name":"@airdraft/plugin-audit-log","dist-tags":{"latest":"0.1.9"},"versions":{"0.1.0":{"name":"@airdraft/plugin-audit-log","version":"0.1.0","license":"MIT","_id":"@airdraft/plugin-audit-log@0.1.0","maintainers":[{"name":"miracleio","email":"miracleficient@gmail.com"}],"dist":{"shasum":"bb11ecc88ebfb0656520a5c59bcb40b846496603","tarball":"https://registry.npmjs.org/@airdraft/plugin-audit-log/-/plugin-audit-log-0.1.0.tgz","fileCount":14,"integrity":"sha512-0eYKuJJO6NyWy4M+d/0EL4EpEV6yKiP0mopj84sKaUlflrSp2rA+B/hy1oYIjgwTut6vPSqA8A6m2YWsIwHTuA==","signatures":[{"sig":"MEYCIQCizVkus5F42Q4CE48mAr82o+xn6DMPKaUiKXNOvciyqAIhAP3MwB63MnLXWM0M6rGyrozENOoBq7lX+k7IOLSBEMM5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8528},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"d6c85dfed37f11c42151c93b49a80ede90699616","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rm -rf dist","release":"standard-version","typecheck":"tsc --noEmit","test:watch":"vitest","release:major":"standard-version --release-as major","release:minor":"standard-version --release-as minor","release:patch":"standard-version --release-as patch","prepublishOnly":"npm run build"},"_npmUser":{"name":"miracleio","email":"miracleficient@gmail.com"},"_npmVersion":"11.9.0","description":"Audit logging plugin for Airdraft — emits a wide event per CMS request","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@airdraft/core":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.5.0","typescript":"^5.4.0","@types/node":"^20.0.0","standard-version":"^9.5.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-audit-log_0.1.0_1779387955404_0.057746412219575216","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@airdraft/plugin-audit-log","version":"0.1.1","license":"MIT","_id":"@airdraft/plugin-audit-log@0.1.1","maintainers":[{"name":"miracleio","email":"miracleficient@gmail.com"}],"dist":{"shasum":"96b148b0e68a415d8151d4c058fafc36f11295a3","tarball":"https://registry.npmjs.org/@airdraft/plugin-audit-log/-/plugin-audit-log-0.1.1.tgz","fileCount":14,"integrity":"sha512-g3vR9QnBOruHc7Z+KeaKn1UtJbKJOXnjYYKa6mzilqQc6eov7kHz2m56iONYoCQfZ225sZvF8ugJDDxjWNS5Sg==","signatures":[{"sig":"MEUCIAa5RBWB+s8rt82yyRHMrOBvedhyQ6QtIOYlGN+vk9jxAiEAid3rrAUp2uD2AKOFDCjfv9EqOlRmFvCxfbKM2+385nk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12150},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"277e16b37c997996b49d90ec64fa3f5c023f4d0a","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rm -rf dist","release":"standard-version","typecheck":"tsc --noEmit","test:watch":"vitest","release:major":"standard-version --release-as major","release:minor":"standard-version --release-as minor","release:patch":"standard-version --release-as patch","prepublishOnly":"npm run build"},"_npmUser":{"name":"miracleio","email":"miracleficient@gmail.com"},"_npmVersion":"11.9.0","description":"Audit logging plugin for Airdraft — emits a wide event per CMS request","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@airdraft/core":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.5.0","typescript":"^5.4.0","@types/node":"^20.0.0","standard-version":"^9.5.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-audit-log_0.1.1_1779521556707_0.16520063558499887","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@airdraft/plugin-audit-log","version":"0.1.2","license":"MIT","_id":"@airdraft/plugin-audit-log@0.1.2","maintainers":[{"name":"miracleio","email":"miracleficient@gmail.com"}],"dist":{"shasum":"90360f848e6d41d54e9cabbe31c4869cc855b174","tarball":"https://registry.npmjs.org/@airdraft/plugin-audit-log/-/plugin-audit-log-0.1.2.tgz","fileCount":14,"integrity":"sha512-X9Ijy5x+98S0ovdoeZ+/rKwLzyKEXMsSe7qe5+JxNBs1LZsO9LbQJT7bSb0ziz/Pf7LIFzOGDJ9Q4CpCk+xShA==","signatures":[{"sig":"MEUCIQCxaYWE2O4PnMDrLZO1fJ0Etb9udp9x462G/CznI006+wIgZLLXfdWIBa+2b2HLwyCoGQUEHMPoJTQ0jbOAYUtpK68=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13506},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"8d692f6e9c48b0c7886d404b7bbc9f1b0a79ca7b","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rm -rf dist","release":"standard-version","typecheck":"tsc --noEmit","test:watch":"vitest","release:major":"standard-version --release-as major","release:minor":"standard-version --release-as minor","release:patch":"standard-version --release-as patch","prepublishOnly":"npm run build"},"_npmUser":{"name":"miracleio","email":"miracleficient@gmail.com"},"_npmVersion":"11.9.0","description":"Audit logging plugin for Airdraft — emits a wide event per CMS request","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@airdraft/core":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.5.0","typescript":"^5.4.0","@types/node":"^20.0.0","standard-version":"^9.5.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-audit-log_0.1.2_1779557540973_0.06809915703576941","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@airdraft/plugin-audit-log","version":"0.1.3","license":"MIT","_id":"@airdraft/plugin-audit-log@0.1.3","maintainers":[{"name":"miracleio","email":"miracleficient@gmail.com"}],"dist":{"shasum":"d0f5127628b039e726166ab4051a7f93485608a2","tarball":"https://registry.npmjs.org/@airdraft/plugin-audit-log/-/plugin-audit-log-0.1.3.tgz","fileCount":14,"integrity":"sha512-ckiHxHQytBiiCCIBy4LiLO0Y3vsP65zTJQUp0rmeejbQCbenIQDczMbLCNasb1fcLZp6ILOvSlZOgyNnOP6Vmw==","signatures":[{"sig":"MEUCIBtUKTXUsd/ypHg8561dmaRoqu9NBUEzUO9VUkptRoXxAiEA5kS7LGsp6xtxLPzs/AtCt4VH1AMaVMCrGThvfMcEeT8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14360},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"88185ba7e7a5ed54561a09a53f6d13367587bbfb","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rm -rf dist","release":"standard-version","typecheck":"tsc --noEmit","test:watch":"vitest","release:major":"standard-version --release-as major","release:minor":"standard-version --release-as minor","release:patch":"standard-version --release-as patch","prepublishOnly":"npm run build"},"_npmUser":{"name":"miracleio","email":"miracleficient@gmail.com"},"_npmVersion":"11.9.0","description":"Audit logging plugin for Airdraft — emits a wide event per CMS request","directories":{},"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.5.0","typescript":"^5.4.0","@types/node":"^20.0.0","@airdraft/core":"*","standard-version":"^9.5.0"},"peerDependencies":{"@airdraft/core":">=0.1.8"},"_npmOperationalInternal":{"tmp":"tmp/plugin-audit-log_0.1.3_1779564500045_0.951907175287815","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@airdraft/plugin-audit-log","version":"0.1.4","license":"MIT","_id":"@airdraft/plugin-audit-log@0.1.4","maintainers":[{"name":"miracleio","email":"miracleficient@gmail.com"}],"dist":{"shasum":"07b0e19041e42d0e3dabf5518d1a56f7f5df3a1a","tarball":"https://registry.npmjs.org/@airdraft/plugin-audit-log/-/plugin-audit-log-0.1.4.tgz","fileCount":14,"integrity":"sha512-GyrG02gn9Al9eKge2AMOTRMT5VDC+E6mRiHhFo12xmsAi5fZQOIyKftZ2CPISAr3ePNlIJLmZ6hMj2UvLkV8Wg==","signatures":[{"sig":"MEQCIEIHf7XriNSswgszPribtlygkietPEfwLdYUm1nAtf0jAiA2g6JJua19xemLobiKgiG0hFgl41qlDPtxqxkFosRTQw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15054},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"829aab190f831c8d252be75e35c26b42715babe2","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rm -rf dist","release":"standard-version","typecheck":"tsc --noEmit","test:watch":"vitest","release:major":"standard-version --release-as major","release:minor":"standard-version --release-as minor","release:patch":"standard-version --release-as patch","prepublishOnly":"npm run build"},"_npmUser":{"name":"miracleio","email":"miracleficient@gmail.com"},"_npmVersion":"11.9.0","description":"Audit logging plugin for Airdraft — emits a wide event per CMS request","directories":{},"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.5.0","typescript":"^5.4.0","@types/node":"^20.0.0","@airdraft/core":"*","standard-version":"^9.5.0"},"peerDependencies":{"@airdraft/core":">=0.1.8"},"_npmOperationalInternal":{"tmp":"tmp/plugin-audit-log_0.1.4_1779570885544_0.30968904793513996","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@airdraft/plugin-audit-log","version":"0.1.5","license":"MIT","_id":"@airdraft/plugin-audit-log@0.1.5","maintainers":[{"name":"miracleio","email":"miracleficient@gmail.com"}],"dist":{"shasum":"50293a4d8b74416dc3b2146b902ad459f1ad8c72","tarball":"https://registry.npmjs.org/@airdraft/plugin-audit-log/-/plugin-audit-log-0.1.5.tgz","fileCount":14,"integrity":"sha512-kPmOreGFRv4GG6Cu8BX9qUDdH7Lx+CTolcnqxr5gnfSGUW/yZuYDPTAEh/QZSWWzeKCIvOpNWkhTdD0hMZsSNQ==","signatures":[{"sig":"MEUCIGVZrh+92on+EoygjuLozE/w2Tw1I6n402V3yNzIR+sdAiEA0/HN2ue7IZAY2H4psJK7hGs2hXVupXPJ1kQACUDLb0Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19603},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"61aceb8ba2a3b29e86641961d665120f83b8241d","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rm -rf dist","release":"standard-version","typecheck":"tsc --noEmit","test:watch":"vitest","release:major":"standard-version --release-as major","release:minor":"standard-version --release-as minor","release:patch":"standard-version --release-as patch","prepublishOnly":"npm run build"},"_npmUser":{"name":"miracleio","email":"miracleficient@gmail.com"},"_npmVersion":"11.9.0","description":"Audit logging plugin for Airdraft — emits a wide event per CMS request","directories":{},"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.5.0","typescript":"^5.4.0","@types/node":"^20.0.0","@airdraft/core":"*","standard-version":"^9.5.0"},"peerDependencies":{"@airdraft/core":">=0.1.8"},"_npmOperationalInternal":{"tmp":"tmp/plugin-audit-log_0.1.5_1779624420509_0.3315753570189288","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@airdraft/plugin-audit-log","version":"0.1.6","license":"MIT","_id":"@airdraft/plugin-audit-log@0.1.6","maintainers":[{"name":"miracleio","email":"miracleficient@gmail.com"}],"dist":{"shasum":"e7c421cb10ec443fcc086eedbbd70d1f7f27c6e4","tarball":"https://registry.npmjs.org/@airdraft/plugin-audit-log/-/plugin-audit-log-0.1.6.tgz","fileCount":18,"integrity":"sha512-l95STRVNqNalm5QfKsB8rs9on8g1q3A5PbKkzu3n0/7rx++HqMXNK9K3dWkmMs+mz98vFgr3gDSzY+gMSICd0Q==","signatures":[{"sig":"MEYCIQDpzv9MAEgIS/jAHrOVtdc6c4QSCMXxZ5AXHYqaG3h9lgIhAKcMidKVqVkD36ddvKWydiaStyAx/07E3qRMqMr/QnHI","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20010},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","browser":"./dist/index.browser.js"}},"gitHead":"540bd9c02a2a1a5a2ccba324c9579e5091469775","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rm -rf dist","release":"standard-version","typecheck":"tsc --noEmit","test:watch":"vitest","release:major":"standard-version --release-as major","release:minor":"standard-version --release-as minor","release:patch":"standard-version --release-as patch","prepublishOnly":"npm run build"},"_npmUser":{"name":"miracleio","email":"miracleficient@gmail.com"},"_npmVersion":"11.9.0","description":"Audit logging plugin for Airdraft — emits a wide event per CMS request","directories":{},"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.5.0","typescript":"^5.4.0","@types/node":"^20.0.0","@airdraft/core":"*","standard-version":"^9.5.0"},"peerDependencies":{"@airdraft/core":">=0.1.8"},"_npmOperationalInternal":{"tmp":"tmp/plugin-audit-log_0.1.6_1779800891549_0.9158015544145621","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@airdraft/plugin-audit-log","version":"0.1.7","license":"MIT","_id":"@airdraft/plugin-audit-log@0.1.7","maintainers":[{"name":"miracleio","email":"miracleficient@gmail.com"}],"dist":{"shasum":"3dae4df0eee940fdd1d072d5e59a96e34ca10769","tarball":"https://registry.npmjs.org/@airdraft/plugin-audit-log/-/plugin-audit-log-0.1.7.tgz","fileCount":18,"integrity":"sha512-+mm76IoOAysHAdr60/aYmg3PszX7ue2go8pTA5MFV1KCHmWm8TLlCzk4JMGAWyV4ANTrMc1Adle5wQXRQ64iFw==","signatures":[{"sig":"MEYCIQC2Lqa6McjbCjlUss5E41WMHADSwukOUz6zeESca1XeLgIhAOvjQ5iGxWpnGQHnKwlITrI0yVyMhup5XZSWvcAVSZC9","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23274},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"5873c940c628a80f7fac0048abf79fb7956accc7","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rm -rf dist","release":"standard-version","typecheck":"tsc --noEmit","test:watch":"vitest","release:major":"standard-version --release-as major","release:minor":"standard-version --release-as minor","release:patch":"standard-version --release-as patch","prepublishOnly":"npm run build"},"_npmUser":{"name":"miracleio","email":"miracleficient@gmail.com"},"_npmVersion":"11.9.0","description":"Audit logging plugin for Airdraft — emits a wide event per CMS request","directories":{},"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.5.0","typescript":"^5.4.0","@types/node":"^20.0.0","@airdraft/core":"*","standard-version":"^9.5.0"},"peerDependencies":{"@airdraft/core":">=0.1.8"},"_npmOperationalInternal":{"tmp":"tmp/plugin-audit-log_0.1.7_1779809876161_0.7859002578761458","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"@airdraft/plugin-audit-log","version":"0.1.8","license":"MIT","_id":"@airdraft/plugin-audit-log@0.1.8","maintainers":[{"name":"miracleio","email":"miracleficient@gmail.com"}],"dist":{"shasum":"14952c7a4c886f8a10b0dd280ea239821adf9dc7","tarball":"https://registry.npmjs.org/@airdraft/plugin-audit-log/-/plugin-audit-log-0.1.8.tgz","fileCount":19,"integrity":"sha512-wom9VDSahQBUeoC5SiGx3UCPjChz082HCJyTxKUSblZIBj2Zi5tvAWo/KTelPlE597BuFKWyL8+GrtKp9Ur9/Q==","signatures":[{"sig":"MEUCIQDCv0pp6gYqMZ88pkhpBsDH6KyipYpAhah4qNRoyDBKYwIgeLvQTBVAEOwnIXaqbxVEVGtwORrucLQnsOx/7CJIwcY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":30688},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"8c9d4744b92db08fa725d40bc50f9ef0f1392e59","scripts":{"dev":"tsc --watch","test":"vitest run","build":"tsc","clean":"rm -rf dist","release":"standard-version","typecheck":"tsc --noEmit","test:watch":"vitest","release:major":"standard-version --release-as major","release:minor":"standard-version --release-as minor","release:patch":"standard-version --release-as patch","prepublishOnly":"npm run build"},"_npmUser":{"name":"miracleio","email":"miracleficient@gmail.com"},"_npmVersion":"11.9.0","description":"Audit logging plugin for Airdraft — emits a wide event per CMS request","directories":{},"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.5.0","typescript":"^5.4.0","@types/node":"^20.0.0","@airdraft/core":"*","standard-version":"^9.5.0"},"peerDependencies":{"@airdraft/core":">=0.1.8"},"_npmOperationalInternal":{"tmp":"tmp/plugin-audit-log_0.1.8_1780221094839_0.6843323349521331","host":"s3://npm-registry-packages-npm-production"}},"0.1.9":{"name":"@airdraft/plugin-audit-log","version":"0.1.9","description":"Audit logging plugin for Airdraft — emits a wide event per CMS request","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"tsc","dev":"tsc --watch","clean":"rm -rf dist","test":"vitest run","test:watch":"vitest","typecheck":"tsc --noEmit","prepublishOnly":"npm run build","release":"standard-version","release:patch":"standard-version --release-as patch","release:minor":"standard-version --release-as minor","release:major":"standard-version --release-as major"},"publishConfig":{"access":"public"},"license":"MIT","devDependencies":{"@types/node":"^20.0.0","standard-version":"^9.5.0","typescript":"^5.4.0","vitest":"^1.5.0","@airdraft/core":"*"},"engines":{"node":">=18.0.0"},"peerDependencies":{"@airdraft/core":">=0.1.8"},"gitHead":"9fdb3e0fbca1e58bb84aca8dd92155d0057ca4b1","_id":"@airdraft/plugin-audit-log@0.1.9","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-5Ej/zZsHEsKiMK5yhr0a9+JCMgbhp/4QfSob2nfegsB43xLrWq9U+d11kUwFAAdxxPk4e6e+GP/tbB1hq9xSzw==","shasum":"94ca3fe776ef40e02ac8e747b9a310ac0eb82b16","tarball":"https://registry.npmjs.org/@airdraft/plugin-audit-log/-/plugin-audit-log-0.1.9.tgz","fileCount":19,"unpackedSize":34575,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGOoaeryWZ/OyuzIhp9KLV+uvlYEBf6aYmxh1Nc3uNcuAiA1gWzxK/i2Tf8fGIf1X1G2A/vM/jA/n90td6avPgEVDQ=="}]},"_npmUser":{"name":"miracleio","email":"miracleficient@gmail.com"},"directories":{},"maintainers":[{"name":"miracleio","email":"miracleficient@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-audit-log_0.1.9_1782407293966_0.8663498795850941"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-21T18:25:55.192Z","modified":"2026-06-25T17:08:14.233Z","0.1.0":"2026-05-21T18:25:55.587Z","0.1.1":"2026-05-23T07:32:36.843Z","0.1.2":"2026-05-23T17:32:21.141Z","0.1.3":"2026-05-23T19:28:20.192Z","0.1.4":"2026-05-23T21:14:45.684Z","0.1.5":"2026-05-24T12:07:00.676Z","0.1.6":"2026-05-26T13:08:11.711Z","0.1.7":"2026-05-26T15:37:56.303Z","0.1.8":"2026-05-31T09:51:34.976Z","0.1.9":"2026-06-25T17:08:14.104Z"},"license":"MIT","description":"Audit logging plugin for Airdraft — emits a wide event per CMS request","maintainers":[{"name":"miracleio","email":"miracleficient@gmail.com"}],"readme":"# @airdraft/plugin-audit-log\n\nWide-event audit logging plugin for Airdraft. Captures every CMS operation — including actor, collection, slug, HTTP method, status, duration, and per-field validation errors — and routes them to configurable persisters.\n\n## Installation\n\n```bash\nnpm install @airdraft/plugin-audit-log\n```\n\n## Usage\n\n```ts\nimport { defineConfig } from '@airdraft/core'\nimport { withAuditLog } from '@airdraft/plugin-audit-log'\n\nexport const airdraft = defineConfig({\n  adapter,\n  collections,\n  plugins: [\n    withAuditLog({ logFilePath: './logs/audit.log' }),\n  ],\n})\n```\n\n### Options\n\n| Option | Type | Default | Description |\n|---|---|---|---|\n| `logFilePath?` | `string` | — | Path to an NDJSON audit log file. Also enables the `GET /audit` route on the handler. |\n| `persist?` | `AuditPersister` | `consolePersister` (or `filePersister` if `logFilePath` is set) | Custom persister function. |\n\n### `GET /audit` endpoint\n\nWhen `logFilePath` is set, a `/audit` route is added to the CMS handler:\n\n```\nGET /api/cms/audit?limit=50&offset=0\n→ { events: AuditEvent[], total: number }\n```\n\n## Persisters\n\n### `consolePersister`\n\nLogs each event as a compact JSON line to stdout (default).\n\n```ts\nimport { consolePersister } from '@airdraft/plugin-audit-log'\nwithAuditLog({ persist: consolePersister })\n```\n\n### `filePersister(filePath)`\n\nAppends events as NDJSON to a file. Compatible with `jq`, `grep`, and log shippers (Loki, Datadog, etc.).\n\n```ts\nimport { filePersister } from '@airdraft/plugin-audit-log'\nwithAuditLog({ persist: filePersister('./logs/audit.log') })\n```\n\n### `compositePersister(...persisters)`\n\nCalls multiple persisters in sequence — useful for logging to both console and file simultaneously.\n\n```ts\nimport { compositePersister, consolePersister, filePersister } from '@airdraft/plugin-audit-log'\n\nwithAuditLog({\n  persist: compositePersister(\n    consolePersister,\n    filePersister('./logs/audit.log'),\n  ),\n})\n```\n\n### `mongodbPersister(collection)`\n\nInserts events into a MongoDB collection. Pass any object with an `insertOne` method — compatible with the official `mongodb` driver. No `mongodb` peer dependency is required.\n\n```ts\nimport { MongoClient } from 'mongodb'\nimport { mongodbPersister } from '@airdraft/plugin-audit-log'\n\nconst db = new MongoClient(process.env.MONGODB_URI!).db('mydb')\nwithAuditLog({ persist: mongodbPersister(db.collection('auditLogs')) })\n```\n\nThe `MongoInsertableCollection` interface is exported for use in custom adapters:\n\n```ts\nimport type { MongoInsertableCollection } from '@airdraft/plugin-audit-log'\n```\n\n## AuditEvent shape\n\n```ts\ninterface AuditEvent {\n  id: string           // unique event ID\n  timestamp: string    // ISO-8601\n  method: string       // 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'\n  path: string         // request path, e.g. '/posts/hello-world'\n  action: string       // e.g. 'entry.create', 'media.upload', 'schema.update'\n  collection?: string\n  slug?: string\n  statusCode: number\n  durationMs: number\n  actor?: string       // raw API key / bearer token\n  error?: {\n    message: string\n    code: string\n    details?: Array<{ field: string; message: string }>  // per-field validation errors\n  }\n}\n```\n\n## Exports\n\n| Export | Description |\n|---|---|\n| `withAuditLog(options?)` | Creates the audit log plugin |\n| `consolePersister` | Default stdout persister |\n| `filePersister(filePath)` | NDJSON file persister |\n| `compositePersister(...persisters)` | Fan-out persister |\n| `mongodbPersister(collection)` | MongoDB insert persister |\n| `AuditPersister` | Type: `(event: AuditEvent) => void \\| Promise<void>` |\n| `AuditLogOptions` | Options type for `withAuditLog` |\n| `MongoInsertableCollection` | Duck-typed interface for the MongoDB persister |\n\n## Changelog\n\nSee [CHANGELOG.md](./CHANGELOG.md).\n","readmeFilename":"README.md"}