nirium 0.19.3 → 0.19.4

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/dist/index.d.ts CHANGED
@@ -332,6 +332,7 @@ export interface AuditAnchorOptions {
332
332
  }
333
333
  export interface AuditAnchor {
334
334
  cid: string;
335
+ /** sha-256 hex that was anchored. Mapped from the node's `content_sha256`, which is also kept as is. */
335
336
  contentSha256: string;
336
337
  gatewayUrl?: string;
337
338
  anchoredAt: string;
package/dist/index.js CHANGED
@@ -367,7 +367,12 @@ class Agent {
367
367
  * cannot be deleted, so raw personal data would outlive any erasure request.
368
368
  */
369
369
  async anchorAuditRecord(options) {
370
- return this.request('POST', '/api/audit/log', options);
370
+ const res = await this.request('POST', '/api/audit/log', options);
371
+ // The node answers with `content_sha256`; expose it as the typed `contentSha256` too.
372
+ if (res && typeof res === 'object' && typeof res.contentSha256 !== 'string' && typeof res.content_sha256 === 'string') {
373
+ return { ...res, contentSha256: res.content_sha256 };
374
+ }
375
+ return res;
371
376
  }
372
377
  /** Audit Trail node metadata: limits, pricing and disclaimer. */
373
378
  async getAuditInfo() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nirium",
3
- "version": "0.19.3",
3
+ "version": "0.19.4",
4
4
  "description": "Autonomous treasury and agentic-payments infrastructure for Stellar (x402)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",