@xtandard/audit 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.
- package/LICENSE +21 -0
- package/README.md +386 -2
- package/bin/xtandard-audit.mjs +3 -0
- package/dist/basic-DU_nPrWV.mjs +176 -0
- package/dist/basic-DU_nPrWV.mjs.map +1 -0
- package/dist/basic-hcXnMF9X.cjs +199 -0
- package/dist/basic-hcXnMF9X.cjs.map +1 -0
- package/dist/canonical-BOgkrX9_.d.cts +17 -0
- package/dist/canonical-CL7gfwhb.d.mts +17 -0
- package/dist/chunk-D7D4PA-g.mjs +13 -0
- package/dist/cli.cjs +773 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.cts +46 -0
- package/dist/cli.d.mts +46 -0
- package/dist/cli.mjs +762 -0
- package/dist/cli.mjs.map +1 -0
- package/dist/context-BtR9k9Mt.d.mts +52 -0
- package/dist/context-CJM87uG8.d.cts +52 -0
- package/dist/context-shared-AgBWIRUQ.d.mts +29 -0
- package/dist/context-shared-CUq3cSpV.d.cts +29 -0
- package/dist/context-shared-CupikwQo.mjs +39 -0
- package/dist/context-shared-CupikwQo.mjs.map +1 -0
- package/dist/context-shared-X2ulHHSB.cjs +44 -0
- package/dist/context-shared-X2ulHHSB.cjs.map +1 -0
- package/dist/context.cjs +82 -0
- package/dist/context.cjs.map +1 -0
- package/dist/context.d.cts +2 -0
- package/dist/context.d.mts +2 -0
- package/dist/context.mjs +78 -0
- package/dist/context.mjs.map +1 -0
- package/dist/contract-BljSE-Hx.mjs +33 -0
- package/dist/contract-BljSE-Hx.mjs.map +1 -0
- package/dist/contract-BmwHIiMR.d.mts +150 -0
- package/dist/contract-CWJSYoJl.d.cts +150 -0
- package/dist/contract-Cht05WYQ.d.mts +159 -0
- package/dist/contract-CqYQzB6e.d.cts +49 -0
- package/dist/contract-DYvBNdnR.cjs +74 -0
- package/dist/contract-DYvBNdnR.cjs.map +1 -0
- package/dist/contract-DlTo4u2t.d.cts +30 -0
- package/dist/contract-DlTo4u2t.d.mts +30 -0
- package/dist/contract-DsVL5-gy.cjs +50 -0
- package/dist/contract-DsVL5-gy.cjs.map +1 -0
- package/dist/contract-isM9SjjQ.mjs +39 -0
- package/dist/contract-isM9SjjQ.mjs.map +1 -0
- package/dist/contract-pU3wGFmo.d.cts +159 -0
- package/dist/contract-yPNuFnVy.d.mts +49 -0
- package/dist/core-C0ceVOTk.d.cts +513 -0
- package/dist/core-CTr7dw0v.cjs +1725 -0
- package/dist/core-CTr7dw0v.cjs.map +1 -0
- package/dist/core-IdGEbYdM.mjs +1541 -0
- package/dist/core-IdGEbYdM.mjs.map +1 -0
- package/dist/core-KtEHRScZ.d.mts +513 -0
- package/dist/core.cjs +9 -0
- package/dist/core.d.cts +2 -0
- package/dist/core.d.mts +2 -0
- package/dist/core.mjs +2 -0
- package/dist/create-fetch-handler-1pXSEhGi.d.cts +311 -0
- package/dist/create-fetch-handler-BwQQ_IWf.mjs +2156 -0
- package/dist/create-fetch-handler-BwQQ_IWf.mjs.map +1 -0
- package/dist/create-fetch-handler-D8cTMVX9.cjs +2232 -0
- package/dist/create-fetch-handler-D8cTMVX9.cjs.map +1 -0
- package/dist/create-fetch-handler-zioPVS18.d.mts +311 -0
- package/dist/elysia-shared-C7geKqPP.mjs +55 -0
- package/dist/elysia-shared-C7geKqPP.mjs.map +1 -0
- package/dist/elysia-shared-DT4bfekR.d.cts +20 -0
- package/dist/elysia-shared-DXyAyGz_.cjs +66 -0
- package/dist/elysia-shared-DXyAyGz_.cjs.map +1 -0
- package/dist/elysia-shared-DoL5ab52.d.mts +20 -0
- package/dist/entry-auth-basic.cjs +5 -0
- package/dist/entry-auth-basic.d.cts +83 -0
- package/dist/entry-auth-basic.d.mts +83 -0
- package/dist/entry-auth-basic.mjs +2 -0
- package/dist/entry-auth-delegated.cjs +28 -0
- package/dist/entry-auth-delegated.cjs.map +1 -0
- package/dist/entry-auth-delegated.d.cts +36 -0
- package/dist/entry-auth-delegated.d.mts +36 -0
- package/dist/entry-auth-delegated.mjs +27 -0
- package/dist/entry-auth-delegated.mjs.map +1 -0
- package/dist/entry-auth-none.cjs +4 -0
- package/dist/entry-auth-none.d.cts +25 -0
- package/dist/entry-auth-none.d.mts +25 -0
- package/dist/entry-auth-none.mjs +2 -0
- package/dist/entry-authorization-delegated.cjs +28 -0
- package/dist/entry-authorization-delegated.cjs.map +1 -0
- package/dist/entry-authorization-delegated.d.cts +32 -0
- package/dist/entry-authorization-delegated.d.mts +32 -0
- package/dist/entry-authorization-delegated.mjs +27 -0
- package/dist/entry-authorization-delegated.mjs.map +1 -0
- package/dist/entry-authorization-none.cjs +3 -0
- package/dist/entry-authorization-none.d.cts +18 -0
- package/dist/entry-authorization-none.d.mts +18 -0
- package/dist/entry-authorization-none.mjs +2 -0
- package/dist/entry-authorization-roles.cjs +8 -0
- package/dist/entry-authorization-roles.d.cts +64 -0
- package/dist/entry-authorization-roles.d.mts +64 -0
- package/dist/entry-authorization-roles.mjs +3 -0
- package/dist/entry-bun.cjs +55 -0
- package/dist/entry-bun.cjs.map +1 -0
- package/dist/entry-bun.d.cts +29 -0
- package/dist/entry-bun.d.mts +29 -0
- package/dist/entry-bun.mjs +52 -0
- package/dist/entry-bun.mjs.map +1 -0
- package/dist/entry-drizzle-audit.cjs +191 -0
- package/dist/entry-drizzle-audit.cjs.map +1 -0
- package/dist/entry-drizzle-audit.d.cts +118 -0
- package/dist/entry-drizzle-audit.d.mts +118 -0
- package/dist/entry-drizzle-audit.mjs +186 -0
- package/dist/entry-drizzle-audit.mjs.map +1 -0
- package/dist/entry-drizzle-mysql.cjs +75 -0
- package/dist/entry-drizzle-mysql.cjs.map +1 -0
- package/dist/entry-drizzle-mysql.d.cts +42 -0
- package/dist/entry-drizzle-mysql.d.mts +42 -0
- package/dist/entry-drizzle-mysql.mjs +71 -0
- package/dist/entry-drizzle-mysql.mjs.map +1 -0
- package/dist/entry-drizzle-pg.cjs +82 -0
- package/dist/entry-drizzle-pg.cjs.map +1 -0
- package/dist/entry-drizzle-pg.d.cts +48 -0
- package/dist/entry-drizzle-pg.d.mts +48 -0
- package/dist/entry-drizzle-pg.mjs +78 -0
- package/dist/entry-drizzle-pg.mjs.map +1 -0
- package/dist/entry-drizzle-sqlite.cjs +71 -0
- package/dist/entry-drizzle-sqlite.cjs.map +1 -0
- package/dist/entry-drizzle-sqlite.d.cts +37 -0
- package/dist/entry-drizzle-sqlite.d.mts +37 -0
- package/dist/entry-drizzle-sqlite.mjs +67 -0
- package/dist/entry-drizzle-sqlite.mjs.map +1 -0
- package/dist/entry-elysia.cjs +112 -0
- package/dist/entry-elysia.cjs.map +1 -0
- package/dist/entry-elysia.d.cts +710 -0
- package/dist/entry-elysia.d.mts +710 -0
- package/dist/entry-elysia.mjs +109 -0
- package/dist/entry-elysia.mjs.map +1 -0
- package/dist/entry-elysia2.cjs +101 -0
- package/dist/entry-elysia2.cjs.map +1 -0
- package/dist/entry-elysia2.d.cts +905 -0
- package/dist/entry-elysia2.d.mts +905 -0
- package/dist/entry-elysia2.mjs +98 -0
- package/dist/entry-elysia2.mjs.map +1 -0
- package/dist/entry-express.cjs +90 -0
- package/dist/entry-express.cjs.map +1 -0
- package/dist/entry-express.d.cts +24 -0
- package/dist/entry-express.d.mts +24 -0
- package/dist/entry-express.mjs +88 -0
- package/dist/entry-express.mjs.map +1 -0
- package/dist/entry-hono.cjs +36 -0
- package/dist/entry-hono.cjs.map +1 -0
- package/dist/entry-hono.d.cts +24 -0
- package/dist/entry-hono.d.mts +24 -0
- package/dist/entry-hono.mjs +34 -0
- package/dist/entry-hono.mjs.map +1 -0
- package/dist/entry-hooks-log.cjs +22 -0
- package/dist/entry-hooks-log.cjs.map +1 -0
- package/dist/entry-hooks-log.d.cts +23 -0
- package/dist/entry-hooks-log.d.mts +23 -0
- package/dist/entry-hooks-log.mjs +21 -0
- package/dist/entry-hooks-log.mjs.map +1 -0
- package/dist/entry-sinks-console.cjs +43 -0
- package/dist/entry-sinks-console.cjs.map +1 -0
- package/dist/entry-sinks-console.d.cts +26 -0
- package/dist/entry-sinks-console.d.mts +26 -0
- package/dist/entry-sinks-console.mjs +41 -0
- package/dist/entry-sinks-console.mjs.map +1 -0
- package/dist/entry-sinks-datadog.cjs +97 -0
- package/dist/entry-sinks-datadog.cjs.map +1 -0
- package/dist/entry-sinks-datadog.d.cts +66 -0
- package/dist/entry-sinks-datadog.d.mts +66 -0
- package/dist/entry-sinks-datadog.mjs +91 -0
- package/dist/entry-sinks-datadog.mjs.map +1 -0
- package/dist/entry-sinks-file.cjs +100 -0
- package/dist/entry-sinks-file.cjs.map +1 -0
- package/dist/entry-sinks-file.d.cts +70 -0
- package/dist/entry-sinks-file.d.mts +70 -0
- package/dist/entry-sinks-file.mjs +97 -0
- package/dist/entry-sinks-file.mjs.map +1 -0
- package/dist/entry-sinks-http.cjs +63 -0
- package/dist/entry-sinks-http.cjs.map +1 -0
- package/dist/entry-sinks-http.d.cts +55 -0
- package/dist/entry-sinks-http.d.mts +55 -0
- package/dist/entry-sinks-http.mjs +60 -0
- package/dist/entry-sinks-http.mjs.map +1 -0
- package/dist/entry-sinks-s3.cjs +115 -0
- package/dist/entry-sinks-s3.cjs.map +1 -0
- package/dist/entry-sinks-s3.d.cts +79 -0
- package/dist/entry-sinks-s3.d.mts +79 -0
- package/dist/entry-sinks-s3.mjs +112 -0
- package/dist/entry-sinks-s3.mjs.map +1 -0
- package/dist/entry-sinks-splunk.cjs +80 -0
- package/dist/entry-sinks-splunk.cjs.map +1 -0
- package/dist/entry-sinks-splunk.d.cts +58 -0
- package/dist/entry-sinks-splunk.d.mts +58 -0
- package/dist/entry-sinks-splunk.mjs +77 -0
- package/dist/entry-sinks-splunk.mjs.map +1 -0
- package/dist/entry-sinks-webhook.cjs +130 -0
- package/dist/entry-sinks-webhook.cjs.map +1 -0
- package/dist/entry-sinks-webhook.d.cts +69 -0
- package/dist/entry-sinks-webhook.d.mts +69 -0
- package/dist/entry-sinks-webhook.mjs +125 -0
- package/dist/entry-sinks-webhook.mjs.map +1 -0
- package/dist/entry-sinks-xtandard-webhooks.cjs +64 -0
- package/dist/entry-sinks-xtandard-webhooks.cjs.map +1 -0
- package/dist/entry-sinks-xtandard-webhooks.d.cts +64 -0
- package/dist/entry-sinks-xtandard-webhooks.d.mts +64 -0
- package/dist/entry-sinks-xtandard-webhooks.mjs +63 -0
- package/dist/entry-sinks-xtandard-webhooks.mjs.map +1 -0
- package/dist/entry-storage-cloudflare-kv.cjs +47 -0
- package/dist/entry-storage-cloudflare-kv.cjs.map +1 -0
- package/dist/entry-storage-cloudflare-kv.d.cts +42 -0
- package/dist/entry-storage-cloudflare-kv.d.mts +42 -0
- package/dist/entry-storage-cloudflare-kv.mjs +46 -0
- package/dist/entry-storage-cloudflare-kv.mjs.map +1 -0
- package/dist/entry-storage-drizzle.cjs +228 -0
- package/dist/entry-storage-drizzle.cjs.map +1 -0
- package/dist/entry-storage-drizzle.d.cts +43 -0
- package/dist/entry-storage-drizzle.d.mts +43 -0
- package/dist/entry-storage-drizzle.mjs +227 -0
- package/dist/entry-storage-drizzle.mjs.map +1 -0
- package/dist/entry-storage-file.cjs +175 -0
- package/dist/entry-storage-file.cjs.map +1 -0
- package/dist/entry-storage-file.d.cts +41 -0
- package/dist/entry-storage-file.d.mts +41 -0
- package/dist/entry-storage-file.mjs +171 -0
- package/dist/entry-storage-file.mjs.map +1 -0
- package/dist/entry-storage-libsql.cjs +133 -0
- package/dist/entry-storage-libsql.cjs.map +1 -0
- package/dist/entry-storage-libsql.d.cts +60 -0
- package/dist/entry-storage-libsql.d.mts +60 -0
- package/dist/entry-storage-libsql.mjs +132 -0
- package/dist/entry-storage-libsql.mjs.map +1 -0
- package/dist/entry-storage-memory.cjs +3 -0
- package/dist/entry-storage-memory.d.cts +2 -0
- package/dist/entry-storage-memory.d.mts +2 -0
- package/dist/entry-storage-memory.mjs +2 -0
- package/dist/entry-storage-mongodb.cjs +306 -0
- package/dist/entry-storage-mongodb.cjs.map +1 -0
- package/dist/entry-storage-mongodb.d.cts +65 -0
- package/dist/entry-storage-mongodb.d.mts +65 -0
- package/dist/entry-storage-mongodb.mjs +304 -0
- package/dist/entry-storage-mongodb.mjs.map +1 -0
- package/dist/entry-storage-postgres.cjs +261 -0
- package/dist/entry-storage-postgres.cjs.map +1 -0
- package/dist/entry-storage-postgres.d.cts +66 -0
- package/dist/entry-storage-postgres.d.mts +66 -0
- package/dist/entry-storage-postgres.mjs +260 -0
- package/dist/entry-storage-postgres.mjs.map +1 -0
- package/dist/entry-storage-redis.cjs +223 -0
- package/dist/entry-storage-redis.cjs.map +1 -0
- package/dist/entry-storage-redis.d.cts +77 -0
- package/dist/entry-storage-redis.d.mts +77 -0
- package/dist/entry-storage-redis.mjs +221 -0
- package/dist/entry-storage-redis.mjs.map +1 -0
- package/dist/entry-storage-sqlite.cjs +85 -0
- package/dist/entry-storage-sqlite.cjs.map +1 -0
- package/dist/entry-storage-sqlite.d.cts +40 -0
- package/dist/entry-storage-sqlite.d.mts +40 -0
- package/dist/entry-storage-sqlite.mjs +84 -0
- package/dist/entry-storage-sqlite.mjs.map +1 -0
- package/dist/entry-storage-unstorage.cjs +57 -0
- package/dist/entry-storage-unstorage.cjs.map +1 -0
- package/dist/entry-storage-unstorage.d.cts +29 -0
- package/dist/entry-storage-unstorage.d.mts +29 -0
- package/dist/entry-storage-unstorage.mjs +56 -0
- package/dist/entry-storage-unstorage.mjs.map +1 -0
- package/dist/export-B9S-JeYl.mjs +239 -0
- package/dist/export-B9S-JeYl.mjs.map +1 -0
- package/dist/export-BZq0KCCn.d.mts +70 -0
- package/dist/export-DYfMd-ep.cjs +280 -0
- package/dist/export-DYfMd-ep.cjs.map +1 -0
- package/dist/export-Dh8T8I1p.d.cts +70 -0
- package/dist/index.cjs +279 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +286 -0
- package/dist/index.d.mts +284 -0
- package/dist/index.mjs +177 -0
- package/dist/index.mjs.map +1 -0
- package/dist/integrity-BHhjTBNk.cjs +614 -0
- package/dist/integrity-BHhjTBNk.cjs.map +1 -0
- package/dist/integrity-kfY2DNAi.mjs +483 -0
- package/dist/integrity-kfY2DNAi.mjs.map +1 -0
- package/dist/memory-CfykUo9W.cjs +155 -0
- package/dist/memory-CfykUo9W.cjs.map +1 -0
- package/dist/memory-DrR-Tlbf.d.mts +28 -0
- package/dist/memory-GG2Nba1D.mjs +150 -0
- package/dist/memory-GG2Nba1D.mjs.map +1 -0
- package/dist/memory-HpFdlMR_.d.cts +28 -0
- package/dist/none-Be7r6kHH.cjs +33 -0
- package/dist/none-Be7r6kHH.cjs.map +1 -0
- package/dist/none-CGmIIbI8.cjs +49 -0
- package/dist/none-CGmIIbI8.cjs.map +1 -0
- package/dist/none-CkV5mZsB.mjs +33 -0
- package/dist/none-CkV5mZsB.mjs.map +1 -0
- package/dist/none-DBeBeU0Z.mjs +23 -0
- package/dist/none-DBeBeU0Z.mjs.map +1 -0
- package/dist/query-ChGGtlA7.cjs +243 -0
- package/dist/query-ChGGtlA7.cjs.map +1 -0
- package/dist/query-LvZbyi37.mjs +172 -0
- package/dist/query-LvZbyi37.mjs.map +1 -0
- package/dist/react.css +1 -0
- package/dist/react.js +31936 -0
- package/dist/recorder-B3dG3jbd.d.mts +64 -0
- package/dist/recorder-CGY7HK29.d.cts +64 -0
- package/dist/roles-BARtYLSX.cjs +112 -0
- package/dist/roles-BARtYLSX.cjs.map +1 -0
- package/dist/roles-D7Pg89IJ.mjs +83 -0
- package/dist/roles-D7Pg89IJ.mjs.map +1 -0
- package/dist/schema-DmU7Wp0F.d.cts +251 -0
- package/dist/schema-DmU7Wp0F.d.mts +251 -0
- package/dist/schema.cjs +20 -0
- package/dist/schema.cjs.map +1 -0
- package/dist/schema.d.cts +2 -0
- package/dist/schema.d.mts +2 -0
- package/dist/schema.mjs +17 -0
- package/dist/schema.mjs.map +1 -0
- package/dist/shared-CJOyJKqT.d.mts +20 -0
- package/dist/shared-DSDY-V0n.mjs +100 -0
- package/dist/shared-DSDY-V0n.mjs.map +1 -0
- package/dist/shared-EANCdRqn.d.cts +20 -0
- package/dist/shared-OOAq-U4S.cjs +141 -0
- package/dist/shared-OOAq-U4S.cjs.map +1 -0
- package/dist/sql-B7b6HzGy.cjs +280 -0
- package/dist/sql-B7b6HzGy.cjs.map +1 -0
- package/dist/sql-COjPyn3F.mjs +209 -0
- package/dist/sql-COjPyn3F.mjs.map +1 -0
- package/dist/sqlite-event-log-BnoG8eos.cjs +184 -0
- package/dist/sqlite-event-log-BnoG8eos.cjs.map +1 -0
- package/dist/sqlite-event-log-nXmS2DS_.mjs +179 -0
- package/dist/sqlite-event-log-nXmS2DS_.mjs.map +1 -0
- package/dist/streams-CRuxOYcb.d.cts +124 -0
- package/dist/streams-DU0_gvI8.d.mts +124 -0
- package/dist/table-BcarDd10.d.cts +48 -0
- package/dist/table-BcarDd10.d.mts +48 -0
- package/dist/testing.cjs +189 -0
- package/dist/testing.cjs.map +1 -0
- package/dist/testing.d.cts +103 -0
- package/dist/testing.d.mts +103 -0
- package/dist/testing.mjs +185 -0
- package/dist/testing.mjs.map +1 -0
- package/dist/types-elysia2/adapters/bun.d.ts +47 -0
- package/dist/types-elysia2/adapters/context-shared.d.ts +40 -0
- package/dist/types-elysia2/adapters/elysia-shared.d.ts +36 -0
- package/dist/types-elysia2/adapters/elysia2.d.ts +588 -0
- package/dist/types-elysia2/auth/contract.d.ts +26 -0
- package/dist/types-elysia2/authorization/contract.d.ts +54 -0
- package/dist/types-elysia2/canonical.d.ts +25 -0
- package/dist/types-elysia2/context.d.ts +61 -0
- package/dist/types-elysia2/core.d.ts +232 -0
- package/dist/types-elysia2/duration.d.ts +26 -0
- package/dist/types-elysia2/entry-elysia2.d.ts +10 -0
- package/dist/types-elysia2/event-log.d.ts +33 -0
- package/dist/types-elysia2/export.d.ts +77 -0
- package/dist/types-elysia2/hooks/contract.d.ts +177 -0
- package/dist/types-elysia2/id.d.ts +27 -0
- package/dist/types-elysia2/integrity.d.ts +193 -0
- package/dist/types-elysia2/keys.d.ts +91 -0
- package/dist/types-elysia2/portal.d.ts +137 -0
- package/dist/types-elysia2/query.d.ts +88 -0
- package/dist/types-elysia2/schema.d.ts +247 -0
- package/dist/types-elysia2/server/base-path.d.ts +15 -0
- package/dist/types-elysia2/server/cors.d.ts +36 -0
- package/dist/types-elysia2/server/create-fetch-handler.d.ts +140 -0
- package/dist/types-elysia2/server/openapi.d.ts +25 -0
- package/dist/types-elysia2/server/render-index-html.d.ts +18 -0
- package/dist/types-elysia2/server/routes.d.ts +83 -0
- package/dist/types-elysia2/server/static-assets.d.ts +13 -0
- package/dist/types-elysia2/standard-schema.d.ts +100 -0
- package/dist/types-elysia2/storage/contract.d.ts +106 -0
- package/dist/types-elysia2/streams.d.ts +134 -0
- package/dist/types-elysia2/transforms.d.ts +56 -0
- package/dist/types-elysia2/validation.d.ts +48 -0
- package/dist/types-react/canonical.d.ts +25 -0
- package/dist/types-react/context.d.ts +61 -0
- package/dist/types-react/core.d.ts +232 -0
- package/dist/types-react/duration.d.ts +26 -0
- package/dist/types-react/event-log.d.ts +33 -0
- package/dist/types-react/hooks/contract.d.ts +177 -0
- package/dist/types-react/id.d.ts +27 -0
- package/dist/types-react/integrity.d.ts +193 -0
- package/dist/types-react/keys.d.ts +91 -0
- package/dist/types-react/query.d.ts +88 -0
- package/dist/types-react/react.d.ts +114 -0
- package/dist/types-react/schema.d.ts +247 -0
- package/dist/types-react/standard-schema.d.ts +100 -0
- package/dist/types-react/storage/contract.d.ts +106 -0
- package/dist/types-react/streams.d.ts +134 -0
- package/dist/types-react/transforms.d.ts +56 -0
- package/dist/types-react/ui/App.d.ts +36 -0
- package/dist/types-react/ui/api.d.ts +61 -0
- package/dist/types-react/ui/components/ActionFilter.d.ts +17 -0
- package/dist/types-react/ui/components/ExportMenu.d.ts +13 -0
- package/dist/types-react/ui/components/JsonCodeEditor.d.ts +12 -0
- package/dist/types-react/ui/components/ThemeToggle.d.ts +2 -0
- package/dist/types-react/ui/components/Toast.d.ts +16 -0
- package/dist/types-react/ui/components/audit-bits.d.ts +91 -0
- package/dist/types-react/ui/components/integrity-bits.d.ts +19 -0
- package/dist/types-react/ui/components/primitives.d.ts +50 -0
- package/dist/types-react/ui/components/ui-bits.d.ts +22 -0
- package/dist/types-react/ui/lib/filters.d.ts +70 -0
- package/dist/types-react/ui/lib/format.d.ts +82 -0
- package/dist/types-react/ui/lib/nav-guard.d.ts +20 -0
- package/dist/types-react/ui/lib/portal-container.d.ts +24 -0
- package/dist/types-react/ui/lib/utils.d.ts +3 -0
- package/dist/types-react/ui/theme.d.ts +40 -0
- package/dist/types-react/ui/types.d.ts +67 -0
- package/dist/types-react/ui/views/ActionsView.d.ts +10 -0
- package/dist/types-react/ui/views/EventDrawer.d.ts +15 -0
- package/dist/types-react/ui/views/EventsView.d.ts +10 -0
- package/dist/types-react/ui/views/IntegrityView.d.ts +10 -0
- package/dist/types-react/ui/views/OverviewView.d.ts +9 -0
- package/dist/types-react/ui/views/StreamsView.d.ts +10 -0
- package/dist/types-react/ui/views/TenantsView.d.ts +6 -0
- package/dist/types-react/validation.d.ts +48 -0
- package/dist/ui/assets/favicon-BSj8MPnj.svg +11 -0
- package/dist/ui/assets/index-B-qrQSOM.css +1 -0
- package/dist/ui/assets/index-CemlP5hR.js +244 -0
- package/dist/ui/index.html +15 -0
- package/dist/validation-DFrLESZD.mjs +150 -0
- package/dist/validation-DFrLESZD.mjs.map +1 -0
- package/dist/validation-lb0YXrxx.cjs +235 -0
- package/dist/validation-lb0YXrxx.cjs.map +1 -0
- package/dist/verify.cjs +14 -0
- package/dist/verify.d.cts +5 -0
- package/dist/verify.d.mts +5 -0
- package/dist/verify.mjs +3 -0
- package/package.json +610 -4
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { f as AuditQuery, o as AuditDuration, s as AuditEvent } from "./schema-DmU7Wp0F.cjs";
|
|
2
|
+
import { t as AuditStorage } from "./contract-CWJSYoJl.cjs";
|
|
3
|
+
import { E as ActionMap, M as AuditSigner, _ as AuditTransform, d as RetentionOptions, n as AuditCore } from "./core-C0ceVOTk.cjs";
|
|
4
|
+
import { i as AuditHooksInput, l as HookErrorReporter } from "./contract-pU3wGFmo.cjs";
|
|
5
|
+
import { i as StreamDefinition, o as StreamRunner, s as StreamRunnerOptions } from "./streams-CRuxOYcb.cjs";
|
|
6
|
+
import { t as AuthProvider } from "./contract-DlTo4u2t.cjs";
|
|
7
|
+
import { i as AuthorizationProvider, n as AuditAction } from "./contract-CqYQzB6e.cjs";
|
|
8
|
+
|
|
9
|
+
//#region src/server/cors.d.ts
|
|
10
|
+
/**
|
|
11
|
+
* Framework-independent CORS for the mounted panel. When `auditPanel` /
|
|
12
|
+
* `createFetchHandler` is given a `cors` option, the handler answers `OPTIONS`
|
|
13
|
+
* preflights itself and attaches `Access-Control-*` headers to every response —
|
|
14
|
+
* so a **cross-origin embed** (portal on `app.example.com`, panel on
|
|
15
|
+
* `api.example.com`) works even if the host framework's CORS middleware does not
|
|
16
|
+
* wrap the mounted sub-handler.
|
|
17
|
+
*
|
|
18
|
+
* @module
|
|
19
|
+
*/
|
|
20
|
+
/** CORS configuration for the panel handler. */
|
|
21
|
+
interface AuditCorsOptions {
|
|
22
|
+
/**
|
|
23
|
+
* Allowed origin(s): a single origin (`"https://app.example.com"`), `"*"`, a
|
|
24
|
+
* list, or a predicate `(origin) => boolean`. With `credentials: true`, `"*"`
|
|
25
|
+
* is echoed back as the caller's exact origin (the browser forbids `*` +
|
|
26
|
+
* credentials).
|
|
27
|
+
*/
|
|
28
|
+
origin: string | string[] | ((origin: string) => boolean);
|
|
29
|
+
/** Send `Access-Control-Allow-Credentials: true` (needed for cookie auth). Default `false`. */
|
|
30
|
+
credentials?: boolean;
|
|
31
|
+
/** Allowed methods advertised in preflight. Default `GET,HEAD,PUT,POST,DELETE,PATCH,OPTIONS`. */
|
|
32
|
+
methods?: string[];
|
|
33
|
+
/**
|
|
34
|
+
* Allowed request headers advertised in preflight. Default: reflect the
|
|
35
|
+
* request's `Access-Control-Request-Headers`, falling back to
|
|
36
|
+
* `Content-Type, Authorization`.
|
|
37
|
+
*/
|
|
38
|
+
headers?: string[];
|
|
39
|
+
/** `Access-Control-Max-Age` (seconds) for the preflight cache. */
|
|
40
|
+
maxAge?: number;
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/portal.d.ts
|
|
44
|
+
/** Prefix of every portal token. */
|
|
45
|
+
declare const PORTAL_TOKEN_PREFIX = "audpt_";
|
|
46
|
+
/**
|
|
47
|
+
* The default portal grant: browse, export and verify the tenant's own log,
|
|
48
|
+
* and read the action catalog. Nothing mutating.
|
|
49
|
+
*/
|
|
50
|
+
declare const DEFAULT_PORTAL_ACTIONS: readonly AuditAction[];
|
|
51
|
+
/**
|
|
52
|
+
* A server-side view filter carried inside a portal token. Every field is
|
|
53
|
+
* AND-ed into every query, export and single-event read the bearer makes; a
|
|
54
|
+
* client parameter can only narrow it, never widen it.
|
|
55
|
+
*/
|
|
56
|
+
interface PortalFilter {
|
|
57
|
+
/** Only these actions (exact names or `"invoice.*"` families). */
|
|
58
|
+
actions?: string[];
|
|
59
|
+
/** Never these actions (exact names or families) — e.g. `["support.*"]`. */
|
|
60
|
+
excludeActions?: string[];
|
|
61
|
+
/** Only events by this actor (a member sees their own activity). */
|
|
62
|
+
actorId?: string;
|
|
63
|
+
/** Only events touching a target of this type. */
|
|
64
|
+
targetType?: string;
|
|
65
|
+
/** Only events touching a target with this id. */
|
|
66
|
+
targetId?: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Thrown by {@link verifyPortalToken} for any invalid token — malformed,
|
|
70
|
+
* bad signature, or expired. Maps to HTTP 401 at the API layer.
|
|
71
|
+
*/
|
|
72
|
+
declare class PortalTokenError extends Error {
|
|
73
|
+
constructor(message: string);
|
|
74
|
+
}
|
|
75
|
+
/** Options for {@link createPortalToken}. */
|
|
76
|
+
interface PortalTokenOptions {
|
|
77
|
+
/** Token lifetime. Default `"1h"` (an audit portal is a read session). */
|
|
78
|
+
expiresIn?: AuditDuration;
|
|
79
|
+
/** Server-side view filter (see {@link PortalFilter}). */
|
|
80
|
+
filter?: PortalFilter;
|
|
81
|
+
}
|
|
82
|
+
/** What a verified token grants. */
|
|
83
|
+
interface PortalGrant {
|
|
84
|
+
/** The tenant the token is scoped to. */
|
|
85
|
+
tenant: string;
|
|
86
|
+
/** Expiry, unix epoch milliseconds. */
|
|
87
|
+
expiresAt: number;
|
|
88
|
+
/** The token's view filter, when it has one. */
|
|
89
|
+
filter?: PortalFilter;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Mint a portal token granting read access to `tenant`'s log until
|
|
93
|
+
* `expiresIn` elapses (default 1 hour). Call this **server-side** — anyone
|
|
94
|
+
* holding the portal secret can mint tokens for any tenant.
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* ```ts
|
|
98
|
+
* import { createPortalToken } from "@xtandard/audit";
|
|
99
|
+
*
|
|
100
|
+
* // In the host app's session-guarded route:
|
|
101
|
+
* const token = await createPortalToken(process.env.PORTAL_SECRET!, user.orgId, {
|
|
102
|
+
* expiresIn: "30m",
|
|
103
|
+
* filter: { excludeActions: ["support.*"] },
|
|
104
|
+
* });
|
|
105
|
+
* // Hand `token` to the frontend for <AuditPortal token={token} />.
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
declare function createPortalToken(secret: string, tenant: string, options?: PortalTokenOptions): Promise<string>;
|
|
109
|
+
/**
|
|
110
|
+
* Verify a portal token: format, signature (constant time), then expiry.
|
|
111
|
+
* Returns the grant on success; throws {@link PortalTokenError} otherwise.
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* ```ts
|
|
115
|
+
* import { verifyPortalToken } from "@xtandard/audit";
|
|
116
|
+
*
|
|
117
|
+
* const { tenant, filter } = await verifyPortalToken(secret, token);
|
|
118
|
+
* ```
|
|
119
|
+
*/
|
|
120
|
+
declare function verifyPortalToken(secret: string, token: string): Promise<PortalGrant>;
|
|
121
|
+
/**
|
|
122
|
+
* Intersect two action include-lists (each an OR of exact names and families).
|
|
123
|
+
* Returns the narrowest list matching exactly what both match; `[]` means
|
|
124
|
+
* "nothing matches".
|
|
125
|
+
*/
|
|
126
|
+
declare function intersectActions(a: string[], b: string[]): string[];
|
|
127
|
+
/** The result of applying a portal filter to a client query. */
|
|
128
|
+
type ScopedQuery = /** The query to run (tenant forced, filter AND-ed in). */{
|
|
129
|
+
query: AuditQuery;
|
|
130
|
+
empty: false;
|
|
131
|
+
} /** The client asked for something outside the token's view: the answer is an empty result. */ | {
|
|
132
|
+
query: AuditQuery;
|
|
133
|
+
empty: true;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Force a client query into a portal grant: the tenant is the token's, and
|
|
137
|
+
* every filter field is AND-ed in. A client parameter can only **narrow** the
|
|
138
|
+
* view — action lists are intersected, exclusions are unioned, and a client
|
|
139
|
+
* `actorId` / `targetType` / `targetId` that differs from the token's makes
|
|
140
|
+
* the result empty (`empty: true`) instead of widening it.
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* ```ts
|
|
144
|
+
* const { query, empty } = scopeQueryToPortal(clientQuery, grant);
|
|
145
|
+
* const page = empty ? { items: [], pageInfo: { hasNextPage: false, endCursor: null } } : await audit.query(query);
|
|
146
|
+
* ```
|
|
147
|
+
*/
|
|
148
|
+
declare function scopeQueryToPortal(query: AuditQuery, grant: PortalGrant): ScopedQuery;
|
|
149
|
+
/** Is `event` inside the grant's view (its tenant, and its filter)? */
|
|
150
|
+
declare function portalCanSee(event: AuditEvent, grant: PortalGrant): boolean;
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region src/server/routes.d.ts
|
|
153
|
+
/**
|
|
154
|
+
* Portal composition for the panel: when set, requests bearing a valid
|
|
155
|
+
* `audpt_…` token act as a portal principal scoped to the token's tenant and
|
|
156
|
+
* view filter.
|
|
157
|
+
*/
|
|
158
|
+
interface AuditPortalOptions {
|
|
159
|
+
/** The HMAC secret portal tokens are minted with (`createPortalToken`). */
|
|
160
|
+
secret: string;
|
|
161
|
+
/**
|
|
162
|
+
* Actions a portal principal may perform (always confined to the token's
|
|
163
|
+
* tenant). Defaults to {@link DEFAULT_PORTAL_ACTIONS}.
|
|
164
|
+
*/
|
|
165
|
+
allow?: AuditAction[];
|
|
166
|
+
}
|
|
167
|
+
/** The bootstrap config served at `/config` (and injected into the SPA). */
|
|
168
|
+
interface PanelConfig {
|
|
169
|
+
title: string;
|
|
170
|
+
basePath: string;
|
|
171
|
+
readonly: boolean;
|
|
172
|
+
logoUrl?: string;
|
|
173
|
+
/** True for portal-token principals: the UI renders the portal chrome. */
|
|
174
|
+
portal: boolean;
|
|
175
|
+
/** The portal principal's tenant. */
|
|
176
|
+
tenant?: string;
|
|
177
|
+
principal: {
|
|
178
|
+
id: string;
|
|
179
|
+
name?: string;
|
|
180
|
+
email?: string;
|
|
181
|
+
} | null;
|
|
182
|
+
/** Actions this principal may perform (the UI hides what it cannot do). */
|
|
183
|
+
allowed: AuditAction[];
|
|
184
|
+
features: {
|
|
185
|
+
signer: boolean;
|
|
186
|
+
streams: boolean;
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region src/server/create-fetch-handler.d.ts
|
|
191
|
+
/** Options for the panel handler (shared by every framework adapter). */
|
|
192
|
+
interface AuditPanelOptions {
|
|
193
|
+
/**
|
|
194
|
+
* Where the log lives. Required unless a prebuilt `core` is supplied (which
|
|
195
|
+
* carries its own storage as the source of truth).
|
|
196
|
+
*/
|
|
197
|
+
storage?: AuditStorage;
|
|
198
|
+
/** Mount prefix, e.g. `"/audit"`. Default `""` (root). */
|
|
199
|
+
basePath?: string;
|
|
200
|
+
/** Authentication provider. Default: anonymous (no auth). */
|
|
201
|
+
auth?: AuthProvider;
|
|
202
|
+
/** Authorization provider. Default: allow all. */
|
|
203
|
+
authorization?: AuthorizationProvider;
|
|
204
|
+
/**
|
|
205
|
+
* Portal-token composition: requests bearing a valid `audpt_…` token act as a
|
|
206
|
+
* portal principal scoped to the token's tenant and view filter. Mint tokens
|
|
207
|
+
* server-side with `createPortalToken`. See {@link ./routes.AuditPortalOptions}.
|
|
208
|
+
*/
|
|
209
|
+
portal?: AuditPortalOptions;
|
|
210
|
+
/** Block all mutating operations (`423`) when true. */
|
|
211
|
+
readonly?: boolean;
|
|
212
|
+
/** UI title shown in the page and bootstrap config. */
|
|
213
|
+
title?: string;
|
|
214
|
+
/** Logo image URL shown in the navbar in place of the title wordmark. */
|
|
215
|
+
logoUrl?: string;
|
|
216
|
+
/** Override the directory the bundled UI is served from (defaults to `./ui` beside this module). */
|
|
217
|
+
uiDir?: string;
|
|
218
|
+
/**
|
|
219
|
+
* Reuse an existing core instead of constructing one — typed
|
|
220
|
+
* (`createAuditCore({ actions })`) or not. The panel only records untyped
|
|
221
|
+
* input over HTTP (validated at runtime by the core's catalog), so any action
|
|
222
|
+
* map is accepted here.
|
|
223
|
+
*/
|
|
224
|
+
core?: AuditCore<any>;
|
|
225
|
+
/**
|
|
226
|
+
* Control-plane hooks (see {@link ../hooks/contract.AuditHooks}). Ignored
|
|
227
|
+
* when `core` is supplied — configure hooks on that core instead.
|
|
228
|
+
*/
|
|
229
|
+
hooks?: AuditHooksInput;
|
|
230
|
+
/** Reporter for errors thrown by `after` hooks. Default: `console.warn`. Ignored with `core`. */
|
|
231
|
+
onHookError?: HookErrorReporter;
|
|
232
|
+
/**
|
|
233
|
+
* Retention policy (see {@link ../core.RetentionOptions}). Ignored when a
|
|
234
|
+
* prebuilt `core` is supplied — configure it on that core instead. Pruning
|
|
235
|
+
* runs on the `maintenance` timer and via `POST /api/prune`.
|
|
236
|
+
*/
|
|
237
|
+
retention?: RetentionOptions;
|
|
238
|
+
/** Checkpoint signer (`ed25519Signer` / `hmacSigner`). Ignored with `core`. */
|
|
239
|
+
signer?: AuditSigner;
|
|
240
|
+
/** Typed action catalog from `defineActions`. Ignored with `core`. */
|
|
241
|
+
actions?: ActionMap;
|
|
242
|
+
/** Redact / mask / hash / omit before chaining. Ignored with `core`. */
|
|
243
|
+
transforms?: AuditTransform[];
|
|
244
|
+
/**
|
|
245
|
+
* Enable CORS on the handler itself — answers `OPTIONS` preflights and attaches
|
|
246
|
+
* `Access-Control-*` headers to every response, so a **cross-origin** portal
|
|
247
|
+
* embed works regardless of the host framework. See {@link ./cors.AuditCorsOptions}.
|
|
248
|
+
*/
|
|
249
|
+
cors?: AuditCorsOptions;
|
|
250
|
+
/**
|
|
251
|
+
* SIEM / archive streams (ADR 0008). The panel creates a stream runner over
|
|
252
|
+
* them (status + retry in the UI) and **starts** it unless `streamRunner`
|
|
253
|
+
* is `false`.
|
|
254
|
+
*/
|
|
255
|
+
streams?: StreamDefinition[];
|
|
256
|
+
/**
|
|
257
|
+
* Stream-runner tuning, or `false` to not start it in this process
|
|
258
|
+
* (split deployments where `xtandard-audit serve` elsewhere runs the
|
|
259
|
+
* streams). The runner is still created so the UI shows lag and errors.
|
|
260
|
+
*/
|
|
261
|
+
streamRunner?: Omit<StreamRunnerOptions, "streams"> | false;
|
|
262
|
+
/**
|
|
263
|
+
* Periodic retention: run `core.prune()` every `interval` (default `"1h"`)
|
|
264
|
+
* when the core has a `retention` policy. `false` disables the timer
|
|
265
|
+
* (prune from a cron with `xtandard-audit prune` instead).
|
|
266
|
+
*/
|
|
267
|
+
maintenance?: {
|
|
268
|
+
interval?: AuditDuration;
|
|
269
|
+
} | false;
|
|
270
|
+
}
|
|
271
|
+
/** Return shape of {@link createFetchHandler}. */
|
|
272
|
+
interface CreateFetchHandlerResult {
|
|
273
|
+
/** Web-standard request handler. */
|
|
274
|
+
fetch(request: Request): Promise<Response>;
|
|
275
|
+
/** The underlying core (handy for `record()`, tests, CLI, and standalone wiring). */
|
|
276
|
+
core: AuditCore<ActionMap>;
|
|
277
|
+
/** The stream runner (started unless `streamRunner: false`), or `null` without `streams`. */
|
|
278
|
+
streams: StreamRunner | null;
|
|
279
|
+
/**
|
|
280
|
+
* The admin API as an OpenAPI 3.1 document (also served at `{basePath}/api/openapi.json`).
|
|
281
|
+
* Merge it into your host app's docs — e.g. Elysia `@elysiajs/openapi` `references`.
|
|
282
|
+
*/
|
|
283
|
+
openapi(): Record<string, unknown>;
|
|
284
|
+
/** Stop the stream runner and the maintenance timer (graceful shutdown, tests). */
|
|
285
|
+
close(): Promise<void>;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Build the panel fetch handler.
|
|
289
|
+
*
|
|
290
|
+
* @example
|
|
291
|
+
* ```ts
|
|
292
|
+
* import { createFetchHandler, ed25519Signer } from "@xtandard/audit";
|
|
293
|
+
* import { createMemoryStorage } from "@xtandard/audit/storage/memory";
|
|
294
|
+
*
|
|
295
|
+
* const { fetch, core } = createFetchHandler({
|
|
296
|
+
* storage: createMemoryStorage(),
|
|
297
|
+
* basePath: "/audit",
|
|
298
|
+
* title: "Acme Audit Log",
|
|
299
|
+
* signer: await ed25519Signer(JSON.parse(process.env.AUDIT_SIGNING_KEY!)),
|
|
300
|
+
* retention: { maxAge: "365d" },
|
|
301
|
+
* });
|
|
302
|
+
*
|
|
303
|
+
* Bun.serve({ port: 3000, fetch });
|
|
304
|
+
* // Elsewhere in the app:
|
|
305
|
+
* await core.record({ tenant: "acme", action: "invoice.paid", actor: { id: "user_1" } });
|
|
306
|
+
* ```
|
|
307
|
+
*/
|
|
308
|
+
declare function createFetchHandler(options: AuditPanelOptions): CreateFetchHandlerResult;
|
|
309
|
+
//#endregion
|
|
310
|
+
export { verifyPortalToken as _, PanelConfig as a, PortalFilter as c, PortalTokenOptions as d, ScopedQuery as f, scopeQueryToPortal as g, portalCanSee as h, AuditPortalOptions as i, PortalGrant as l, intersectActions as m, CreateFetchHandlerResult as n, DEFAULT_PORTAL_ACTIONS as o, createPortalToken as p, createFetchHandler as r, PORTAL_TOKEN_PREFIX as s, AuditPanelOptions as t, PortalTokenError as u, AuditCorsOptions as v };
|
|
311
|
+
//# sourceMappingURL=create-fetch-handler-1pXSEhGi.d.cts.map
|