SmooAI.Audit
0.4.1
dotnet add package SmooAI.Audit --version 0.4.1
NuGet\Install-Package SmooAI.Audit -Version 0.4.1
<PackageReference Include="SmooAI.Audit" Version="0.4.1" />
<PackageVersion Include="SmooAI.Audit" Version="0.4.1" />
<PackageReference Include="SmooAI.Audit" />
paket add SmooAI.Audit --version 0.4.1
#r "nuget: SmooAI.Audit, 0.4.1"
#:package SmooAI.Audit@0.4.1
#addin nuget:?package=SmooAI.Audit&version=0.4.1
#tool nuget:?package=SmooAI.Audit&version=0.4.1
SmooAI.Audit
.NET port of @smooai/audit — a polyglot
client SDK for tamper-evident, SQL-queryable audit logging: a canonical
AuditEvent schema, canonical JSON serialization, a per-org-per-day SHA-256 hash
chain, and an emit client. Wire-compatible with the TypeScript, Python, Rust, and
Go ports and verified byte-for-byte against a shared parity corpus.
Status: complete —
Canonical.ToCanonicalJson,HashChain.ComputeEventHash,HashChain.Build, andAuditClient.EmitAsyncare implemented and verified byte-for-byte against the shared parity corpus (spec/parity-corpus.json), including envelope trace correlation (Activity.Current, no extra package).
Install
dotnet add package SmooAI.Audit
Usage
using System.Text.Json.Nodes;
using SmooAI.Audit;
var client = new AuditClient(new AuditClientOptions { Endpoint = endpoint, Token = token });
await client.EmitAsync(new AuditEvent
{
Id = "01HXXXXXXXXXXXXXXXXXXXXXXX",
OrganizationId = "org_123",
ActorType = "user",
ActorId = "user_abc",
Action = "crm.contact_deleted",
Resource = new AuditResource { Type = "crm.contact", Id = "c-42" },
Outcome = "success",
Metadata = new JsonObject(),
Timestamp = DateTimeOffset.UtcNow.ToString("O"),
});
License
MIT © SmooAI
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.