@mnd8t/sdk 0.1.0 → 0.1.1
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 +5 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ import { MandateClient } from "@mnd8t/sdk";
|
|
|
20
20
|
|
|
21
21
|
const mandate = new MandateClient({
|
|
22
22
|
apiKey: process.env.MANDATE_API_KEY!,
|
|
23
|
-
baseUrl:
|
|
23
|
+
baseUrl: process.env.MANDATE_API_URL!, // your workspace URL, from the dashboard
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
const decision = await mandate.decisions.create({
|
|
@@ -37,6 +37,10 @@ if (decision.effective_decision === "APPROVE") {
|
|
|
37
37
|
}
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
+
There is no shared public endpoint: `baseUrl` is the URL of your own
|
|
41
|
+
workspace, shown in the dashboard. Omit it and the client talks to
|
|
42
|
+
`http://localhost:4000`, which is what `pnpm dev` serves locally.
|
|
43
|
+
|
|
40
44
|
Every decision returns `APPROVE`, `REJECT` or `ESCALATE` with a rule-by-rule
|
|
41
45
|
trace, and produces an Ed25519-signed, hash-chained evidence receipt you can
|
|
42
46
|
verify without calling us — `verifyReceiptSignature` is exported for exactly
|