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 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`, `audit`, `auditExportCsv`, `health`
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zanii-connect",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "TypeScript SDK for Zanii Connect — OAuth connections and tool execution for AI agents",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",