zanii-connect 0.1.0 → 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/LICENSE +21 -0
- package/README.md +10 -3
- package/dist/index.d.ts +10 -0
- package/dist/index.js +18 -0
- package/package.json +17 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Zanii Agency
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -5,12 +5,14 @@ connections, encrypted token vault, and audited tool execution for AI agents.
|
|
|
5
5
|
|
|
6
6
|
**Zero runtime dependencies** — uses the platform `fetch` (Node 18+, browsers, edge runtimes).
|
|
7
7
|
|
|
8
|
-
## Install
|
|
8
|
+
## Install
|
|
9
9
|
|
|
10
10
|
```bash
|
|
11
|
-
|
|
11
|
+
npm install zanii-connect
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
Requires Node 18+ (or any runtime with a global `fetch`). Ships with TypeScript types.
|
|
15
|
+
|
|
14
16
|
## Quickstart
|
|
15
17
|
|
|
16
18
|
```ts
|
|
@@ -63,4 +65,9 @@ Mirrors the Python SDK (`sdk/python`), camelCased — covers the full API:
|
|
|
63
65
|
- **Execution**: `execute`, `executeAsync`, `job`, `waitForJob` · approvals (`approvals`, `approve`)
|
|
64
66
|
- **Browser sandbox**: `createBrowserSession`, `browserSession`, `browserRun`, `browserRunAsync`
|
|
65
67
|
- **Secrets / automation**: `secrets`, `setSecret`, `deleteSecret`, triggers, webhook subscriptions
|
|
66
|
-
- **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)
|
|
70
|
+
|
|
71
|
+
## License
|
|
72
|
+
|
|
73
|
+
MIT © Zanii Agency
|
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.
|
|
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",
|
|
@@ -11,14 +11,27 @@
|
|
|
11
11
|
"import": "./dist/index.js"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
|
-
"files": ["dist"],
|
|
14
|
+
"files": ["dist", "README.md", "LICENSE"],
|
|
15
|
+
"keywords": [
|
|
16
|
+
"zanii",
|
|
17
|
+
"oauth",
|
|
18
|
+
"mcp",
|
|
19
|
+
"ai-agents",
|
|
20
|
+
"connectors",
|
|
21
|
+
"api-client",
|
|
22
|
+
"sdk"
|
|
23
|
+
],
|
|
24
|
+
"homepage": "https://vault.zanii.agency/api/docs",
|
|
25
|
+
"bugs": {
|
|
26
|
+
"email": "info@zanii.agency"
|
|
27
|
+
},
|
|
15
28
|
"engines": { "node": ">=18" },
|
|
16
29
|
"scripts": {
|
|
17
30
|
"build": "tsc",
|
|
18
31
|
"prepublishOnly": "tsc"
|
|
19
32
|
},
|
|
20
|
-
"author": "Zanii Agency",
|
|
21
|
-
"license": "
|
|
33
|
+
"author": "Zanii Agency <info@zanii.agency>",
|
|
34
|
+
"license": "MIT",
|
|
22
35
|
"devDependencies": {
|
|
23
36
|
"typescript": "^5.5.0"
|
|
24
37
|
}
|