@treeship/verify 0.31.11 → 0.31.13
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 +7 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ export interface TrustRootInput {
|
|
|
14
14
|
* not offered here. See TrustRootKind in packages/core/src/trust/mod.rs.
|
|
15
15
|
*/
|
|
16
16
|
kind: 'hub_checkpoint' | 'hub_org' | 'cert_issuer' | 'revoker' | 'agent_cert' | 'session_host';
|
|
17
|
+
/** For `agent_cert`: the agent URI this key is pinned as. A card is key-bound only to that agent. */
|
|
18
|
+
agent?: string;
|
|
17
19
|
label?: string;
|
|
18
20
|
added_at?: string;
|
|
19
21
|
}
|
|
@@ -177,8 +179,10 @@ export interface ResolutionBundleInput {
|
|
|
177
179
|
export interface ResolutionVerdict {
|
|
178
180
|
/** Card signature verified against your roots (directly or via the chain). */
|
|
179
181
|
sig_ok: boolean;
|
|
180
|
-
/** Card is key-bound: signer pinned under AgentCert, or chain-certified. */
|
|
182
|
+
/** Card is key-bound: signer pinned under AgentCert as the card's agent, or chain-certified. */
|
|
181
183
|
key_bound: boolean;
|
|
184
|
+
/** Why not key-bound: `key_not_verified` | `not_pinned` | `pin_unscoped` | `pin_scoped_to_other`; null when bound. */
|
|
185
|
+
key_bound_reason?: string | null;
|
|
182
186
|
/** If verified via the certificate chain, the cert artifact that vouched. */
|
|
183
187
|
chain_cert_id: string | null;
|
|
184
188
|
/** An authorized, verifying revocation was found. */
|
|
@@ -220,6 +224,8 @@ export interface PresentationVerdict {
|
|
|
220
224
|
/** Card signature verified against your roots (directly or via the chain). */
|
|
221
225
|
sig_ok: boolean;
|
|
222
226
|
key_bound: boolean;
|
|
227
|
+
/** Why not key-bound: `key_not_verified` | `not_pinned` | `pin_unscoped` | `pin_scoped_to_other`; null when bound. */
|
|
228
|
+
key_bound_reason?: string | null;
|
|
223
229
|
via_chain: boolean;
|
|
224
230
|
revoked: string | null;
|
|
225
231
|
challenge: PresentationChallenge;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@treeship/verify",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.13",
|
|
4
4
|
"description": "Zero-dependency cryptographic verification for Treeship receipts and certificates. Runs anywhere WASM runs: Node, browser, Vercel Edge, Cloudflare Workers, AWS Lambda.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"test": "vitest run"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@treeship/core-wasm": "0.31.
|
|
43
|
+
"@treeship/core-wasm": "0.31.13"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "^25.5.0",
|
|
47
47
|
"typescript": "^5.7.0",
|
|
48
|
-
"vitest": "^
|
|
48
|
+
"vitest": "^4.1.11"
|
|
49
49
|
}
|
|
50
50
|
}
|