zanii-connect 0.1.1 → 0.2.0
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/README.md +2 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.js +18 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,7 +65,8 @@ Mirrors the Python SDK (`sdk/python`), camelCased — covers the full API:
|
|
|
65
65
|
- **Execution**: `execute`, `executeAsync`, `job`, `waitForJob` · approvals (`approvals`, `approve`)
|
|
66
66
|
- **Browser sandbox**: `createBrowserSession`, `browserSession`, `browserRun`, `browserRunAsync`
|
|
67
67
|
- **Secrets / automation**: `secrets`, `setSecret`, `deleteSecret`, triggers, webhook subscriptions
|
|
68
|
-
- **Observability**: `executions
|
|
68
|
+
- **Observability**: `executions` (each row carries `receipt_hash` + `proof_url`), `audit`, `auditExportCsv`, `health`
|
|
69
|
+
- **Proof-of-action**: `receiptsBundle` (offline-verifiable audit bundle), `complianceReport` (json/markdown)
|
|
69
70
|
|
|
70
71
|
## License
|
|
71
72
|
|
package/dist/index.d.ts
CHANGED
|
@@ -158,4 +158,14 @@ export declare class ZaniiClient {
|
|
|
158
158
|
}): Promise<any>;
|
|
159
159
|
/** Full audit log as CSV text. */
|
|
160
160
|
auditExportCsv(): Promise<string>;
|
|
161
|
+
/**
|
|
162
|
+
* The platform's audit bundle from the transparency log + this org's receipt
|
|
163
|
+
* hashes. Verify offline with @zanii/core verifyAuditBundle.
|
|
164
|
+
*/
|
|
165
|
+
receiptsBundle(): Promise<any>;
|
|
166
|
+
/**
|
|
167
|
+
* Auditor-ready report over the cryptographically verified audit bundle.
|
|
168
|
+
* format "markdown" returns text; "json" returns the structured report.
|
|
169
|
+
*/
|
|
170
|
+
complianceReport(format?: "json" | "markdown"): Promise<any>;
|
|
161
171
|
}
|
package/dist/index.js
CHANGED
|
@@ -386,4 +386,22 @@ export class ZaniiClient {
|
|
|
386
386
|
auditExportCsv() {
|
|
387
387
|
return this.req("GET", "/audit/export", { raw: true });
|
|
388
388
|
}
|
|
389
|
+
// -- proof-of-action (Zanii transparency ledger) ---------------------------
|
|
390
|
+
/**
|
|
391
|
+
* The platform's audit bundle from the transparency log + this org's receipt
|
|
392
|
+
* hashes. Verify offline with @zanii/core verifyAuditBundle.
|
|
393
|
+
*/
|
|
394
|
+
receiptsBundle() {
|
|
395
|
+
return this.req("GET", "/org/receipts/bundle");
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Auditor-ready report over the cryptographically verified audit bundle.
|
|
399
|
+
* format "markdown" returns text; "json" returns the structured report.
|
|
400
|
+
*/
|
|
401
|
+
complianceReport(format = "json") {
|
|
402
|
+
return this.req("GET", "/org/compliance-report", {
|
|
403
|
+
params: { format },
|
|
404
|
+
raw: format === "markdown",
|
|
405
|
+
});
|
|
406
|
+
}
|
|
389
407
|
}
|