nirium 0.19.3 → 0.19.5
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 +1 -0
- package/dist/index.js +6 -1
- package/package.json +8 -13
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
|
-
|
|
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nirium",
|
|
3
|
-
"version": "0.19.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.19.5",
|
|
4
|
+
"description": "Charge or pay per request in USDC on Stellar (x402), with receipts anyone can verify. For apps, backends and AI agents. Non-custodial.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"homepage": "https://nirium.xyz",
|
|
@@ -69,20 +69,15 @@
|
|
|
69
69
|
"typescript": "^5.9.3"
|
|
70
70
|
},
|
|
71
71
|
"keywords": [
|
|
72
|
-
"nirium",
|
|
73
72
|
"stellar",
|
|
74
|
-
"soroban",
|
|
75
|
-
"defi",
|
|
76
|
-
"agent",
|
|
77
|
-
"autonomous",
|
|
78
|
-
"treasury",
|
|
79
73
|
"x402",
|
|
80
|
-
"mpp",
|
|
81
|
-
"agentic-payments",
|
|
82
74
|
"usdc",
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
75
|
+
"payments",
|
|
76
|
+
"pay-per-request",
|
|
77
|
+
"ai-agents",
|
|
78
|
+
"agentic-payments",
|
|
79
|
+
"receipts",
|
|
80
|
+
"audit-trail"
|
|
86
81
|
],
|
|
87
82
|
"license": "Apache-2.0"
|
|
88
83
|
}
|