@suveren/gateway 0.7.4 → 0.8.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/content/integrations/mollie.json +103 -28
- package/dist/control-plane/index.mjs +248 -58
- package/dist/mcp-server/http.mjs +577 -124
- package/dist/ui/assets/index-BFnSVa9N.js +110 -0
- package/dist/ui/assets/{index-CkWaRck1.css → index-BYVb_0oG.css} +1 -1
- package/dist/ui/index.html +2 -2
- package/node_modules/@hap/core/dist/index.d.mts +285 -13
- package/node_modules/@hap/core/dist/index.d.ts +285 -13
- package/node_modules/@hap/core/dist/index.js +281 -13
- package/node_modules/@hap/core/dist/index.mjs +266 -12
- package/node_modules/@hap/core/package.json +4 -2
- package/node_modules/@hap/core/src/did-key.ts +126 -0
- package/node_modules/@hap/core/src/frame.ts +115 -14
- package/node_modules/@hap/core/src/gatekeeper.ts +26 -0
- package/node_modules/@hap/core/src/identity.ts +21 -5
- package/node_modules/@hap/core/src/index.ts +3 -0
- package/node_modules/@hap/core/src/mandate.ts +207 -0
- package/node_modules/@hap/core/src/receipt.ts +74 -0
- package/node_modules/@hap/core/src/types.ts +87 -5
- package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/accept.js +54 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/charset.js +10 -34
- package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/encoding.js +9 -30
- package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/language.js +15 -36
- package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/lib/mediaType.js +16 -134
- package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/node_modules/content-type/LICENSE +22 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/node_modules/content-type/README.md +71 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/node_modules/content-type/dist/index.d.ts +46 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/node_modules/content-type/dist/index.js +176 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/node_modules/content-type/dist/index.js.map +1 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/node_modules/content-type/package.json +52 -0
- package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/package.json +16 -10
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/buffer.buffer.d.ts +10 -5
- package/node_modules/@types/node/crypto.d.ts +2 -4
- package/node_modules/@types/node/dgram.d.ts +119 -4
- package/node_modules/@types/node/ffi.d.ts +1 -1
- package/node_modules/@types/node/fs/promises.d.ts +61 -65
- package/node_modules/@types/node/fs.d.ts +86 -76
- package/node_modules/@types/node/http.d.ts +17 -1
- package/node_modules/@types/node/http2.d.ts +12 -4
- package/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/node/inspector.d.ts +2 -1
- package/node_modules/@types/node/net.d.ts +108 -16
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/process.d.ts +52 -0
- package/node_modules/@types/node/quic.d.ts +246 -38
- package/node_modules/@types/node/sqlite.d.ts +6 -2
- package/node_modules/@types/node/stream/iter.d.ts +4 -4
- package/node_modules/@types/node/test.d.ts +36 -0
- package/node_modules/@types/node/tls.d.ts +24 -0
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +5 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +1 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +1 -0
- package/node_modules/@types/node/tty.d.ts +4 -3
- package/node_modules/@types/node/vfs.d.ts +210 -0
- package/node_modules/@types/node/vm.d.ts +1 -1
- package/node_modules/express-rate-limit/dist/index.cjs +6 -3
- package/node_modules/express-rate-limit/dist/index.d.cts +11 -0
- package/node_modules/express-rate-limit/dist/index.d.mts +11 -0
- package/node_modules/express-rate-limit/dist/index.d.ts +11 -0
- package/node_modules/express-rate-limit/dist/index.mjs +6 -3
- package/node_modules/express-rate-limit/{license.md → license} +7 -6
- package/node_modules/express-rate-limit/package.json +5 -5
- package/node_modules/express-rate-limit/readme.md +1 -0
- package/node_modules/fast-uri/index.js +215 -47
- package/node_modules/fast-uri/lib/schemes.js +9 -4
- package/node_modules/fast-uri/lib/utils.js +396 -92
- package/node_modules/fast-uri/package.json +1 -1
- package/node_modules/fast-uri/test/component-safe-serialization.test.js +163 -0
- package/node_modules/fast-uri/test/equal.test.js +31 -3
- package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +2 -0
- package/node_modules/fast-uri/test/ipv6-canonical.test.js +34 -0
- package/node_modules/fast-uri/test/ipv6-validation.test.js +124 -0
- package/node_modules/fast-uri/test/malformed-percent.test.js +77 -0
- package/node_modules/fast-uri/test/malformed-urn.test.js +61 -0
- package/node_modules/fast-uri/test/parse.test.js +7 -3
- package/node_modules/fast-uri/test/query-fragment-normalization.test.js +33 -0
- package/node_modules/fast-uri/test/reserved-path-normalization.test.js +109 -0
- package/node_modules/fast-uri/test/scheme-validation.test.js +124 -0
- package/node_modules/fast-uri/test/security-normalization.test.js +101 -0
- package/node_modules/fast-uri/test/security.test.js +75 -3
- package/node_modules/fast-uri/test/urn-full-input.test.js +29 -0
- package/node_modules/fast-uri/test/websocket-query-preservation.test.js +24 -0
- package/node_modules/hono/dist/cjs/client/client.js +25 -11
- package/node_modules/hono/dist/cjs/client/utils.js +4 -1
- package/node_modules/hono/dist/cjs/context.js +4 -0
- package/node_modules/hono/dist/cjs/helper/accepts/accepts.js +36 -2
- package/node_modules/hono/dist/cjs/helper/ssg/ssg.js +1 -1
- package/node_modules/hono/dist/cjs/helper/ssg/utils.js +30 -10
- package/node_modules/hono/dist/cjs/jsx/dom/render.js +2 -0
- package/node_modules/hono/dist/cjs/middleware/cache/index.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/cors/index.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/csrf/index.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/etag/digest.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/etag/index.js +3 -3
- package/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +3 -1
- package/node_modules/hono/dist/cjs/request.js +8 -4
- package/node_modules/hono/dist/cjs/router/linear-router/router.js +7 -2
- package/node_modules/hono/dist/cjs/router/pattern-router/router.js +3 -9
- package/node_modules/hono/dist/cjs/router/reg-exp-router/node.js +10 -3
- package/node_modules/hono/dist/cjs/router/reg-exp-router/router.js +47 -83
- package/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js +2 -1
- package/node_modules/hono/dist/cjs/router/trie-router/node.js +46 -69
- package/node_modules/hono/dist/cjs/router/trie-router/router.js +3 -11
- package/node_modules/hono/dist/cjs/router/utils.js +27 -0
- package/node_modules/hono/dist/cjs/utils/body.js +15 -3
- package/node_modules/hono/dist/cjs/utils/cookie.js +1 -1
- package/node_modules/hono/dist/cjs/utils/ipaddr.js +5 -3
- package/node_modules/hono/dist/cjs/utils/stream.js +7 -1
- package/node_modules/hono/dist/cjs/utils/url.js +9 -1
- package/node_modules/hono/dist/client/client.js +25 -11
- package/node_modules/hono/dist/client/utils.js +4 -1
- package/node_modules/hono/dist/context.js +4 -0
- package/node_modules/hono/dist/helper/accepts/accepts.js +36 -2
- package/node_modules/hono/dist/helper/ssg/ssg.js +1 -1
- package/node_modules/hono/dist/helper/ssg/utils.js +30 -10
- package/node_modules/hono/dist/jsx/dom/render.js +2 -0
- package/node_modules/hono/dist/middleware/cache/index.js +1 -1
- package/node_modules/hono/dist/middleware/cors/index.js +1 -1
- package/node_modules/hono/dist/middleware/csrf/index.js +1 -1
- package/node_modules/hono/dist/middleware/etag/digest.js +1 -1
- package/node_modules/hono/dist/middleware/etag/index.js +3 -3
- package/node_modules/hono/dist/middleware/pretty-json/index.js +3 -1
- package/node_modules/hono/dist/request.js +8 -4
- package/node_modules/hono/dist/router/linear-router/router.js +7 -2
- package/node_modules/hono/dist/router/pattern-router/router.js +3 -9
- package/node_modules/hono/dist/router/reg-exp-router/node.js +6 -2
- package/node_modules/hono/dist/router/reg-exp-router/router.js +53 -84
- package/node_modules/hono/dist/router/reg-exp-router/trie.js +2 -1
- package/node_modules/hono/dist/router/trie-router/node.js +46 -69
- package/node_modules/hono/dist/router/trie-router/router.js +3 -11
- package/node_modules/hono/dist/router/utils.js +5 -0
- package/node_modules/hono/dist/types/context.d.ts +4 -0
- package/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts +3 -0
- package/node_modules/hono/dist/types/router/trie-router/node.d.ts +1 -2
- package/node_modules/hono/dist/types/router/trie-router/router.d.ts +0 -1
- package/node_modules/hono/dist/types/router/utils.d.ts +1 -0
- package/node_modules/hono/dist/types/utils/url.d.ts +4 -0
- package/node_modules/hono/dist/utils/body.js +15 -3
- package/node_modules/hono/dist/utils/cookie.js +1 -1
- package/node_modules/hono/dist/utils/ipaddr.js +5 -3
- package/node_modules/hono/dist/utils/stream.js +7 -1
- package/node_modules/hono/dist/utils/url.js +9 -1
- package/node_modules/hono/package.json +1 -1
- package/node_modules/ip-address/README.md +92 -82
- package/node_modules/ip-address/dist/common.d.ts +20 -0
- package/node_modules/ip-address/dist/common.js +36 -0
- package/node_modules/ip-address/dist/common.js.map +1 -1
- package/node_modules/ip-address/dist/ipv4.d.ts +50 -0
- package/node_modules/ip-address/dist/ipv4.js +75 -0
- package/node_modules/ip-address/dist/ipv4.js.map +1 -1
- package/node_modules/ip-address/dist/ipv6.d.ts +79 -10
- package/node_modules/ip-address/dist/ipv6.js +120 -30
- package/node_modules/ip-address/dist/ipv6.js.map +1 -1
- package/node_modules/ip-address/dist/v4/constants.d.ts +12 -0
- package/node_modules/ip-address/dist/v4/constants.js +40 -1
- package/node_modules/ip-address/dist/v4/constants.js.map +1 -1
- package/node_modules/ip-address/dist/v6/constants.d.ts +14 -0
- package/node_modules/ip-address/dist/v6/constants.js +47 -1
- package/node_modules/ip-address/dist/v6/constants.js.map +1 -1
- package/node_modules/ip-address/package.json +1 -1
- package/node_modules/is-plain-object/README.md +39 -95
- package/node_modules/is-plain-object/dist/is-plain-object.js +0 -2
- package/node_modules/is-plain-object/is-plain-object.d.ts +6 -1
- package/node_modules/is-plain-object/package.json +8 -34
- package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +7 -16
- package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +10 -20
- package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +7 -16
- package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +16 -38
- package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +7 -16
- package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +19 -38
- package/node_modules/jose/dist/types/jwk/embedded.d.ts +3 -8
- package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +5 -5
- package/node_modules/jose/dist/types/jwks/local.d.ts +6 -10
- package/node_modules/jose/dist/types/jwks/remote.d.ts +17 -28
- package/node_modules/jose/dist/types/jws/compact/sign.d.ts +5 -10
- package/node_modules/jose/dist/types/jws/compact/verify.d.ts +9 -18
- package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +7 -16
- package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +9 -18
- package/node_modules/jose/dist/types/jws/general/sign.d.ts +11 -21
- package/node_modules/jose/dist/types/jws/general/verify.d.ts +12 -21
- package/node_modules/jose/dist/types/jwt/decrypt.d.ts +10 -20
- package/node_modules/jose/dist/types/jwt/encrypt.d.ts +17 -29
- package/node_modules/jose/dist/types/jwt/sign.d.ts +12 -19
- package/node_modules/jose/dist/types/jwt/unsecured.d.ts +17 -28
- package/node_modules/jose/dist/types/jwt/verify.d.ts +9 -19
- package/node_modules/jose/dist/types/key/export.d.ts +4 -4
- package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +6 -8
- package/node_modules/jose/dist/types/key/generate_secret.d.ts +4 -11
- package/node_modules/jose/dist/types/key/import.d.ts +10 -17
- package/node_modules/jose/dist/types/types.d.ts +48 -86
- package/node_modules/jose/dist/types/util/base64url.d.ts +2 -2
- package/node_modules/jose/dist/types/util/decode_jwt.d.ts +3 -10
- package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +4 -4
- package/node_modules/jose/dist/types/util/errors.d.ts +26 -53
- package/node_modules/jose/dist/webapi/index.js +70 -32
- package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +7 -8
- package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +42 -26
- package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +14 -10
- package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +53 -71
- package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +38 -49
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +121 -158
- package/node_modules/jose/dist/webapi/jwk/embedded.js +30 -18
- package/node_modules/jose/dist/webapi/jwk/thumbprint.js +54 -64
- package/node_modules/jose/dist/webapi/jwks/local.js +49 -74
- package/node_modules/jose/dist/webapi/jwks/remote.js +91 -160
- package/node_modules/jose/dist/webapi/jws/compact/sign.js +21 -20
- package/node_modules/jose/dist/webapi/jws/compact/verify.js +7 -8
- package/node_modules/jose/dist/webapi/jws/flattened/sign.js +29 -30
- package/node_modules/jose/dist/webapi/jws/flattened/verify.js +21 -23
- package/node_modules/jose/dist/webapi/jws/general/sign.js +61 -70
- package/node_modules/jose/dist/webapi/jws/general/verify.js +47 -41
- package/node_modules/jose/dist/webapi/jwt/decrypt.js +13 -22
- package/node_modules/jose/dist/webapi/jwt/encrypt.js +58 -100
- package/node_modules/jose/dist/webapi/jwt/sign.js +18 -50
- package/node_modules/jose/dist/webapi/jwt/unsecured.js +34 -63
- package/node_modules/jose/dist/webapi/jwt/verify.js +12 -14
- package/node_modules/jose/dist/webapi/key/export.js +32 -37
- package/node_modules/jose/dist/webapi/key/generate_key_pair.js +40 -44
- package/node_modules/jose/dist/webapi/key/generate_secret.js +35 -39
- package/node_modules/jose/dist/webapi/key/import.js +52 -52
- package/node_modules/jose/dist/webapi/lib/asn1.js +130 -164
- package/node_modules/jose/dist/webapi/lib/base64.js +18 -20
- package/node_modules/jose/dist/webapi/lib/buffer_utils.js +34 -38
- package/node_modules/jose/dist/webapi/lib/content_encryption.js +79 -123
- package/node_modules/jose/dist/webapi/lib/crypto_key.js +24 -25
- package/node_modules/jose/dist/webapi/lib/deflate.js +46 -40
- package/node_modules/jose/dist/webapi/lib/helpers.js +40 -37
- package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +10 -24
- package/node_modules/jose/dist/webapi/lib/is_key_like.js +17 -15
- package/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +106 -93
- package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +210 -176
- package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +105 -107
- package/node_modules/jose/dist/webapi/lib/jwk_metadata.js +19 -0
- package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +9 -16
- package/node_modules/jose/dist/webapi/lib/jws_algorithms.js +62 -61
- package/node_modules/jose/dist/webapi/lib/jws_sign.js +58 -72
- package/node_modules/jose/dist/webapi/lib/jws_verify.js +90 -103
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +134 -185
- package/node_modules/jose/dist/webapi/lib/key.js +84 -121
- package/node_modules/jose/dist/webapi/lib/key_algorithm.js +13 -8
- package/node_modules/jose/dist/webapi/lib/key_descriptor.js +8 -6
- package/node_modules/jose/dist/webapi/lib/key_management.js +200 -225
- package/node_modules/jose/dist/webapi/lib/key_options.js +8 -0
- package/node_modules/jose/dist/webapi/lib/options.js +57 -44
- package/node_modules/jose/dist/webapi/lib/signing.js +18 -22
- package/node_modules/jose/dist/webapi/lib/type_checks.js +28 -33
- package/node_modules/jose/dist/webapi/util/base64url.js +26 -35
- package/node_modules/jose/dist/webapi/util/decode_jwt.js +32 -31
- package/node_modules/jose/dist/webapi/util/decode_protected_header.js +18 -23
- package/node_modules/jose/dist/webapi/util/errors.js +94 -84
- package/node_modules/jose/package.json +17 -81
- package/package.json +2 -2
- package/profiles/calendar/0.5.profile.json +190 -0
- package/profiles/charge/0.5.profile.json +210 -0
- package/profiles/customers/0.7.profile.json +157 -0
- package/profiles/deploy/0.9.profile.json +176 -0
- package/profiles/email/0.6.profile.json +208 -0
- package/profiles/index.json +9 -1
- package/profiles/publish/0.5.profile.json +186 -0
- package/profiles/purchase/0.5.profile.json +231 -0
- package/profiles/records/0.5.profile.json +117 -0
- package/dist/ui/assets/index-0Q2eNytX.js +0 -110
- package/node_modules/@modelcontextprotocol/sdk/node_modules/negotiator/HISTORY.md +0 -114
|
@@ -14,7 +14,7 @@ interface ResolvedDomain {
|
|
|
14
14
|
}
|
|
15
15
|
interface AttestationPayload {
|
|
16
16
|
attestation_id: string;
|
|
17
|
-
version: '0.3' | '0.4' | '0.5';
|
|
17
|
+
version: '0.3' | '0.4' | '0.5' | '0.6';
|
|
18
18
|
profile_id: string;
|
|
19
19
|
/** v0.3 (deprecated) — hash of the authorization frame */
|
|
20
20
|
frame_hash?: string;
|
|
@@ -62,11 +62,51 @@ interface AttestationPayload {
|
|
|
62
62
|
*
|
|
63
63
|
* Cryptographically bound in the signed payload so a compromised SP cannot
|
|
64
64
|
* silently flip 'review' → 'automatic'. Absent on v0.3 attestations.
|
|
65
|
+
* `review_above_cap` (v0.5): automatic below the signed caps, proposal above.
|
|
65
66
|
*/
|
|
66
|
-
commitment_mode?: 'automatic' | 'review';
|
|
67
|
+
commitment_mode?: 'automatic' | 'review' | 'review_above_cap';
|
|
68
|
+
/**
|
|
69
|
+
* v0.6 (Owner Mandate Signatures) — the Decision Owner's own signature(s)
|
|
70
|
+
* over the mandate projection ({@link MandateProjection}), one entry per
|
|
71
|
+
* co-signing owner. Carried INSIDE the AS-signed payload, so the AS attests
|
|
72
|
+
* to having received it and cannot strip it without invalidating its own
|
|
73
|
+
* signature. Optional and additive: an attestation without it behaves as
|
|
74
|
+
* before (the v0.5 posture — the AS asserts, nobody co-signs).
|
|
75
|
+
*/
|
|
76
|
+
owner_mandates?: OwnerMandate[];
|
|
67
77
|
issued_at: number;
|
|
68
78
|
expires_at: number;
|
|
69
79
|
}
|
|
80
|
+
/** Mandate-assurance axis — what custody signed the mandate. Independent of
|
|
81
|
+
* identity assurance ({@link Subject.method}). */
|
|
82
|
+
type MandateBinding = 'raw' | 'webauthn' | 'eudi';
|
|
83
|
+
/** Which surface showed the owner what they signed. A DECLARATION, not a proof
|
|
84
|
+
* — no verifier can check it; see protocol.md → Owner Mandate Signatures. */
|
|
85
|
+
type SigningSurface = 'gatekeeper_local' | 'as_web' | 'wallet_display';
|
|
86
|
+
/**
|
|
87
|
+
* v0.6 — one owner's signature over the mandate projection.
|
|
88
|
+
*
|
|
89
|
+
* There is deliberately NO `public_key` field, and it MUST NOT be added: the
|
|
90
|
+
* verification key is carried in the DID itself (key-bearing `did:key`), so a
|
|
91
|
+
* non-key-bearing DID fails STRUCTURALLY instead of validating against a key
|
|
92
|
+
* the AS could have substituted. `alg` is kept only as curve-confusion
|
|
93
|
+
* hygiene; if it disagrees with the DID's key type, the DID is authoritative.
|
|
94
|
+
*/
|
|
95
|
+
interface OwnerMandate {
|
|
96
|
+
/** The signing owner's key-bearing DID. MUST be a member of `resolved_owners`. */
|
|
97
|
+
did: string;
|
|
98
|
+
/** Signature algorithm hint. The DID's multicodec wins on any disagreement. */
|
|
99
|
+
alg: 'EdDSA' | 'ES256';
|
|
100
|
+
/** base64url (no padding) signature over the JCS bytes of the mandate projection. */
|
|
101
|
+
signature: string;
|
|
102
|
+
/** When the owner signed (unix seconds). */
|
|
103
|
+
signed_at: number;
|
|
104
|
+
/** Defence-in-depth against duplicate issuance by an HONEST AS only —
|
|
105
|
+
* AS-side nonce enforcement is no defence against the AS itself. */
|
|
106
|
+
nonce: string;
|
|
107
|
+
binding: MandateBinding;
|
|
108
|
+
signing_surface?: SigningSurface;
|
|
109
|
+
}
|
|
70
110
|
/**
|
|
71
111
|
* v0.6 Identity Assurance — a signed overlay binding a Decision Owner's verified
|
|
72
112
|
* real-world identity to the attestation, gated by HOW the identity was verified.
|
|
@@ -94,8 +134,11 @@ interface Subject {
|
|
|
94
134
|
/** When the underlying verification was performed (unix seconds). */
|
|
95
135
|
verified_at?: number;
|
|
96
136
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
137
|
+
* @deprecated v0.6 — replaced by {@link AttestationPayload.owner_mandates}.
|
|
138
|
+
* This field signed the wrong object (the identity claim, not what was
|
|
139
|
+
* committed to) and was welded to one method. Implementations MUST NOT emit
|
|
140
|
+
* it; verifiers MAY ignore it on artifacts that carry it. Kept readable for
|
|
141
|
+
* audit of pre-0.6 artifacts only.
|
|
99
142
|
*/
|
|
100
143
|
owner_signature?: string | null;
|
|
101
144
|
}
|
|
@@ -334,6 +377,15 @@ interface ProfileContextField {
|
|
|
334
377
|
description?: string;
|
|
335
378
|
displayName?: string;
|
|
336
379
|
format?: 'email' | 'domain' | 'url' | 'currency';
|
|
380
|
+
/**
|
|
381
|
+
* v0.6 — what this field NAMES on the read path. `counterparty` = the other
|
|
382
|
+
* party to a communication (matched against an item's participants);
|
|
383
|
+
* `resource` = the container an item belongs to (a direct attribute match —
|
|
384
|
+
* and a resource scope enforced on writes MUST also bind reads). Absent →
|
|
385
|
+
* implementations MAY infer `counterparty` from `format: email|domain`
|
|
386
|
+
* (transitional; the explicit declaration is normative).
|
|
387
|
+
*/
|
|
388
|
+
scopeKind?: 'counterparty' | 'resource';
|
|
337
389
|
constraint?: FieldConstraint;
|
|
338
390
|
enum?: string[];
|
|
339
391
|
}
|
|
@@ -604,7 +656,7 @@ interface GatekeeperRequest {
|
|
|
604
656
|
* Structured error from Gatekeeper verification.
|
|
605
657
|
*/
|
|
606
658
|
interface GatekeeperError {
|
|
607
|
-
code: 'BOUND_EXCEEDED' | 'CUMULATIVE_LIMIT_EXCEEDED' | 'INVALID_SIGNATURE' | 'TTL_EXPIRED' | 'FRAME_MISMATCH' | 'BOUNDS_MISMATCH' | 'CONTEXT_MISMATCH' | 'DOMAIN_NOT_COVERED' | 'INVALID_PROFILE' | 'MALFORMED_ATTESTATION';
|
|
659
|
+
code: 'BOUND_EXCEEDED' | 'CUMULATIVE_LIMIT_EXCEEDED' | 'INVALID_SIGNATURE' | 'TTL_EXPIRED' | 'FRAME_MISMATCH' | 'BOUNDS_MISMATCH' | 'CONTEXT_MISMATCH' | 'DOMAIN_NOT_COVERED' | 'INVALID_PROFILE' | 'MALFORMED_ATTESTATION' | 'INVALID_ACTION_TYPE' | 'ATTESTATION_REVOKED' | 'APPROVAL_REQUIRED' | 'IDEMPOTENCY_MISMATCH' | 'MANDATE_SIGNATURE_REQUIRED' | 'MANDATE_SIGNATURE_INVALID' | 'APPROVAL_SIGNATURE_REQUIRED' | 'APPROVAL_SIGNATURE_INVALID' | 'BOUNDS_INVALID_VALUE' | 'CONTEXT_INVALID_VALUE';
|
|
608
660
|
field?: string;
|
|
609
661
|
message: string;
|
|
610
662
|
bound?: string | number;
|
|
@@ -824,10 +876,22 @@ interface SubjectValidation {
|
|
|
824
876
|
* Enforce the Identity-Assurance invariants on a single subject:
|
|
825
877
|
* - `self_declared` ⇒ `low` / `self`, no disclosed name.
|
|
826
878
|
* - `as_vouched` ⇒ `high` / `as`, `verifier` required.
|
|
827
|
-
* - `eudi` ⇒ `high` / `external`, `verifier`
|
|
879
|
+
* - `eudi` ⇒ `high` / `external`, `verifier` required — and, when the
|
|
880
|
+
* carrying attestation's `owner_mandates` are supplied, a corresponding
|
|
881
|
+
* entry with `binding:"eudi"` for this subject's DID.
|
|
828
882
|
* - `disclose.name` only at `assurance:"high"`.
|
|
829
|
-
|
|
830
|
-
|
|
883
|
+
*
|
|
884
|
+
* v0.6: `Subject.owner_signature` is deprecated and IGNORED here — it signed
|
|
885
|
+
* the identity claim, not the mandate (see the field's deprecation note). The
|
|
886
|
+
* signature-bearing object is the attestation's `owner_mandates` entry, which
|
|
887
|
+
* is payload-level context this per-subject check cannot see on its own; pass
|
|
888
|
+
* `opts.ownerMandates` to enforce the eudi ⇒ mandate-entry rule, omit it to
|
|
889
|
+
* validate subject shape alone (pre-0.6 callers keep their behaviour minus
|
|
890
|
+
* the retired owner_signature requirement).
|
|
891
|
+
*/
|
|
892
|
+
declare function validateSubject(subject: Subject, opts?: {
|
|
893
|
+
ownerMandates?: OwnerMandate[];
|
|
894
|
+
}): SubjectValidation;
|
|
831
895
|
/**
|
|
832
896
|
* The footer line for a subject — the ONE place this wording lives.
|
|
833
897
|
* The name appears only at `high` with a disclosed name; otherwise no name.
|
|
@@ -857,8 +921,11 @@ declare function deriveIdentityLine(subject: Subject | undefined | null, { opera
|
|
|
857
921
|
* Frame Canonicalization for Agent Profiles
|
|
858
922
|
*
|
|
859
923
|
* Agent profiles support mixed-type fields (strings and numbers).
|
|
860
|
-
* Canonical form:
|
|
861
|
-
*
|
|
924
|
+
* Canonical form: `key=value` records joined with LF, keys in the profile's
|
|
925
|
+
* keyOrder. Values are stringified with String(value) — the shortest
|
|
926
|
+
* round-trippable form for numbers — then percent-encoded per protocol.md
|
|
927
|
+
* (`=`, `%`, and every byte outside printable ASCII); a value carrying a raw
|
|
928
|
+
* LF/CR is refused, never normalized. See `canonicalRecords` below.
|
|
862
929
|
*
|
|
863
930
|
* v0.3: frameSchema
|
|
864
931
|
* v0.4: boundsSchema + contextSchema (separate hashes)
|
|
@@ -902,19 +969,39 @@ declare function validateContextParams(params: AgentContextParams, profile: Agen
|
|
|
902
969
|
valid: boolean;
|
|
903
970
|
errors: string[];
|
|
904
971
|
};
|
|
972
|
+
/**
|
|
973
|
+
* Thrown when a value cannot be canonicalized at all — currently only for raw
|
|
974
|
+
* LF/CR inside a value. Carries the protocol error code so callers can map it
|
|
975
|
+
* straight onto the wire without string-matching a message.
|
|
976
|
+
*
|
|
977
|
+
* protocol.md → *Bounds & Scope Canonicalization* → Value encoding:
|
|
978
|
+
* "Values MUST NOT contain raw newline (\n) or carriage-return (\r)
|
|
979
|
+
* characters. Implementations MUST reject input containing them; silent
|
|
980
|
+
* stripping or normalization is a violation because it produces a hash that
|
|
981
|
+
* does not faithfully represent the input."
|
|
982
|
+
*/
|
|
983
|
+
declare class CanonicalValueError extends Error {
|
|
984
|
+
readonly code: 'BOUNDS_INVALID_VALUE' | 'CONTEXT_INVALID_VALUE';
|
|
985
|
+
readonly field: string;
|
|
986
|
+
constructor(code: 'BOUNDS_INVALID_VALUE' | 'CONTEXT_INVALID_VALUE', field: string, message: string);
|
|
987
|
+
}
|
|
905
988
|
/**
|
|
906
989
|
* Builds the canonical bounds string from parameters.
|
|
907
|
-
*
|
|
990
|
+
* Keys are ordered per profile's boundsSchema.keyOrder; values are encoded per
|
|
991
|
+
* protocol.md → *Value encoding* (see `canonicalRecords`).
|
|
908
992
|
*
|
|
909
993
|
* @throws Error if any field fails validation
|
|
994
|
+
* @throws CanonicalValueError (code BOUNDS_INVALID_VALUE) if a value carries a raw LF/CR
|
|
910
995
|
*/
|
|
911
996
|
declare function canonicalBounds(params: AgentBoundsParams, profile: AgentProfile): string;
|
|
912
997
|
/**
|
|
913
998
|
* Builds the canonical context string from parameters.
|
|
914
|
-
*
|
|
999
|
+
* Keys are ordered per profile's contextSchema.keyOrder; values are encoded per
|
|
1000
|
+
* protocol.md → *Value encoding* (see `canonicalRecords`).
|
|
915
1001
|
* For empty context (no contextSchema or no fields), returns "".
|
|
916
1002
|
*
|
|
917
1003
|
* @throws Error if any field fails validation
|
|
1004
|
+
* @throws CanonicalValueError (code CONTEXT_INVALID_VALUE) if a value carries a raw LF/CR
|
|
918
1005
|
*/
|
|
919
1006
|
declare function canonicalContext(params: AgentContextParams, profile: AgentProfile): string;
|
|
920
1007
|
/**
|
|
@@ -1050,4 +1137,189 @@ declare function listProfiles(): string[];
|
|
|
1050
1137
|
declare function getAllProfiles(): AgentProfile[];
|
|
1051
1138
|
declare function clearProfiles(): void;
|
|
1052
1139
|
|
|
1053
|
-
|
|
1140
|
+
/**
|
|
1141
|
+
* did:key — encode/decode for KEY-BEARING DIDs (HAP v0.6).
|
|
1142
|
+
*
|
|
1143
|
+
* A real `did:key` is self-certifying: the public key IS the identifier, so
|
|
1144
|
+
* substituting the key produces a DIFFERENT DID and no key directory is ever
|
|
1145
|
+
* consulted. That property is what the Owner Mandate design stands on
|
|
1146
|
+
* (protocol.md → "Identity DIDs vs signing DIDs"): a signing DID MUST be
|
|
1147
|
+
* key-bearing, and verification uses the key carried in the identifier —
|
|
1148
|
+
* deliberately, there is no `public_key` field anywhere on the wire.
|
|
1149
|
+
*
|
|
1150
|
+
* Format (W3C did:key method, Ed25519):
|
|
1151
|
+
* did:key:z<base58btc( 0xed 0x01 ‖ 32-byte-public-key )>
|
|
1152
|
+
* `z` is the multibase prefix for base58btc; `0xed 0x01` is the multicodec
|
|
1153
|
+
* varint for ed25519-pub. The result always starts `did:key:z6Mk`.
|
|
1154
|
+
*
|
|
1155
|
+
* Scope: Ed25519 only — the one signing curve this protocol version uses.
|
|
1156
|
+
* Anything else (including the reference implementation's legacy decorative
|
|
1157
|
+
* `did:key:<uuid-fragment>` identifiers) decodes as NOT key-bearing.
|
|
1158
|
+
*/
|
|
1159
|
+
/** Encode a 32-byte Ed25519 public key as a key-bearing `did:key:z6Mk…`. */
|
|
1160
|
+
declare function encodeDidKey(publicKey: Uint8Array): string;
|
|
1161
|
+
/**
|
|
1162
|
+
* Decode a key-bearing `did:key` to its Ed25519 public key bytes.
|
|
1163
|
+
*
|
|
1164
|
+
* @throws Error prefixed `NOT_KEY_BEARING:` for anything that is not a valid
|
|
1165
|
+
* base58btc-multibase Ed25519 did:key — including the legacy decorative
|
|
1166
|
+
* `did:key:<uuid-fragment>` identifiers, other multibase prefixes, and other
|
|
1167
|
+
* key types. The error name is the point: under the mandate design, a
|
|
1168
|
+
* non-key-bearing signing DID must fail STRUCTURALLY, never fall back.
|
|
1169
|
+
*/
|
|
1170
|
+
declare function decodeDidKey(did: string): Uint8Array;
|
|
1171
|
+
/** True iff the DID decodes as a key-bearing Ed25519 did:key. Never throws. */
|
|
1172
|
+
declare function isKeyBearingDid(did: string): boolean;
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* Owner Mandate Signatures (HAP v0.6) — the `HAP-mandate` projection, the
|
|
1176
|
+
* `HAP-approval` object, and their verification.
|
|
1177
|
+
*
|
|
1178
|
+
* The human signs BEFORE the AS does, so they cannot sign the finished
|
|
1179
|
+
* attestation (`attestation_id`/`issued_at` do not exist yet). They sign a
|
|
1180
|
+
* mandate PROJECTION: a canonical object every field of which is known at
|
|
1181
|
+
* approval time and reconstructible from the finished attestation — so a
|
|
1182
|
+
* verifier rebuilds it from the attestation it already holds and checks the
|
|
1183
|
+
* signature with the key carried in the owner's DID. No side channel, no
|
|
1184
|
+
* second fetch, no key directory. See protocol.md → "Owner Mandate Signatures".
|
|
1185
|
+
*
|
|
1186
|
+
* Verification here requires NO trust in the AS. What it cannot do is tell the
|
|
1187
|
+
* verifier WHOSE key signed — confirming the DID belongs to the expected
|
|
1188
|
+
* person is the out-of-band step (protocol.md → "Identity DIDs vs signing
|
|
1189
|
+
* DIDs"), and it is the honest cost of cold verification.
|
|
1190
|
+
*/
|
|
1191
|
+
|
|
1192
|
+
/** The object the owner signs — a canonical projection of the mandate. */
|
|
1193
|
+
interface MandateProjection {
|
|
1194
|
+
typ: 'HAP-mandate';
|
|
1195
|
+
/** Projection/canonicalization version. A verifier MUST pin it. */
|
|
1196
|
+
version: '0.6';
|
|
1197
|
+
profile_id: string;
|
|
1198
|
+
/** The signing owner's own DID. MUST be a member of `resolved_owners`. */
|
|
1199
|
+
owner_did: string;
|
|
1200
|
+
bounds_hash: string;
|
|
1201
|
+
context_hash: string;
|
|
1202
|
+
execution_context_hash: string;
|
|
1203
|
+
gate_content_hashes: Record<string, string>;
|
|
1204
|
+
/** Included iff the attestation carries one — binds ciphertext AND the
|
|
1205
|
+
* frozen approver set, the swap this mechanism exists to stop. */
|
|
1206
|
+
intent_disclosure_hash?: string;
|
|
1207
|
+
commitment_mode: string;
|
|
1208
|
+
/** The replay defence: the human signs how long the authority lives. */
|
|
1209
|
+
expires_at: number;
|
|
1210
|
+
nonce: string;
|
|
1211
|
+
}
|
|
1212
|
+
/** Per-action approval, signed by the owner in `review` mode. Signing a
|
|
1213
|
+
* `reject` matters as much as a `commit`: a rejection the AS can discard is a
|
|
1214
|
+
* rejection that never happened. */
|
|
1215
|
+
interface ApprovalObject {
|
|
1216
|
+
typ: 'HAP-approval';
|
|
1217
|
+
version: '0.6';
|
|
1218
|
+
proposal_id: string;
|
|
1219
|
+
attestation_id: string;
|
|
1220
|
+
decision: 'commit' | 'reject';
|
|
1221
|
+
/** What was approved: the receipt's contentHash where the profile binds
|
|
1222
|
+
* content; otherwise sha256 over the JCS of the proposal's argument set. */
|
|
1223
|
+
content_hash: string;
|
|
1224
|
+
decided_at: number;
|
|
1225
|
+
nonce: string;
|
|
1226
|
+
}
|
|
1227
|
+
declare class MandateError extends Error {
|
|
1228
|
+
code: 'MANDATE_SIGNATURE_INVALID' | 'APPROVAL_SIGNATURE_INVALID' | 'NOT_KEY_BEARING' | 'OWNER_NOT_RESOLVED' | 'MALFORMED_ATTESTATION';
|
|
1229
|
+
constructor(code: 'MANDATE_SIGNATURE_INVALID' | 'APPROVAL_SIGNATURE_INVALID' | 'NOT_KEY_BEARING' | 'OWNER_NOT_RESOLVED' | 'MALFORMED_ATTESTATION', message: string);
|
|
1230
|
+
}
|
|
1231
|
+
/**
|
|
1232
|
+
* Rebuild the projection a given `owner_mandates` entry signed, from the
|
|
1233
|
+
* attestation's own signed fields. Field absence is defined, not incidental:
|
|
1234
|
+
* `intent_disclosure_hash` is included iff the attestation carries one.
|
|
1235
|
+
*/
|
|
1236
|
+
declare function buildMandateProjection(payload: AttestationPayload, entry: Pick<OwnerMandate, 'did' | 'nonce'>): MandateProjection;
|
|
1237
|
+
/** The exact bytes an owner signs: RFC 8785 (JCS) canonical UTF-8. */
|
|
1238
|
+
declare function mandateSigningBytes(projection: MandateProjection): Uint8Array;
|
|
1239
|
+
/** The exact bytes an owner signs for a per-action approval. */
|
|
1240
|
+
declare function approvalSigningBytes(approval: ApprovalObject): Uint8Array;
|
|
1241
|
+
/**
|
|
1242
|
+
* Sign a mandate projection with a raw Ed25519 private key — the `raw`
|
|
1243
|
+
* binding: tests and CI only, no custody claim. WebAuthn (`webauthn`) and
|
|
1244
|
+
* wallet (`eudi`) bindings sign the same bytes through their own custody;
|
|
1245
|
+
* they are implemented by the platforms that hold those keys, not here.
|
|
1246
|
+
*/
|
|
1247
|
+
declare function signMandateProjection(projection: MandateProjection, privateKey: Uint8Array): Promise<string>;
|
|
1248
|
+
/** Sign an approval object with a raw Ed25519 private key (`raw` binding). */
|
|
1249
|
+
declare function signApproval(approval: ApprovalObject, privateKey: Uint8Array): Promise<string>;
|
|
1250
|
+
/**
|
|
1251
|
+
* Verify ONE `owner_mandates` entry against the attestation that carries it.
|
|
1252
|
+
*
|
|
1253
|
+
* Steps (protocol.md → "Verification procedure", steps 4 of 6): membership in
|
|
1254
|
+
* `resolved_owners`, key-bearing DID, projection reconstruction, Ed25519 over
|
|
1255
|
+
* JCS bytes. The DID is authoritative over `alg` — a disagreement is
|
|
1256
|
+
* MANDATE_SIGNATURE_INVALID, never a fallback to the claimed algorithm.
|
|
1257
|
+
*
|
|
1258
|
+
* What this deliberately does NOT verify: that the DID belongs to the person
|
|
1259
|
+
* the verifier expects (out-of-band, step 5) and the AS's own signature over
|
|
1260
|
+
* the attestation (verifyAttestationSignature, step 1).
|
|
1261
|
+
*/
|
|
1262
|
+
declare function verifyOwnerMandate(attestation: Attestation, entry: OwnerMandate): Promise<void>;
|
|
1263
|
+
/** Verify every `owner_mandates` entry an attestation carries. Resolves to the
|
|
1264
|
+
* verified entries; an attestation with none resolves to `[]` (the v0.5
|
|
1265
|
+
* posture — nothing to check, and nothing claimed). */
|
|
1266
|
+
declare function verifyOwnerMandates(attestation: Attestation): Promise<OwnerMandate[]>;
|
|
1267
|
+
/** Verify an approval signature against a signer's key-bearing DID. */
|
|
1268
|
+
declare function verifyApproval(approval: ApprovalObject, signature: string, signerDid: string): Promise<void>;
|
|
1269
|
+
|
|
1270
|
+
/**
|
|
1271
|
+
* Execution receipts (HAP v0.5/v0.6) — the wire type and holder-side
|
|
1272
|
+
* verification. Until v0.6 this library had no receipt surface at all; every
|
|
1273
|
+
* verifier hand-assembled the strip→canonicalize→verify dance. This module is
|
|
1274
|
+
* that dance, once.
|
|
1275
|
+
*
|
|
1276
|
+
* Receipt payloads are camelCase on the wire (unlike the snake_case
|
|
1277
|
+
* attestation payload) — a shipped inconsistency v0.6 chose to document
|
|
1278
|
+
* rather than break (changelog.md → "Renames and terminology").
|
|
1279
|
+
*/
|
|
1280
|
+
|
|
1281
|
+
/** Signed execution receipt — protocol.md → "Receipt Payload Schema". */
|
|
1282
|
+
interface ReceiptPayload {
|
|
1283
|
+
id: string;
|
|
1284
|
+
groupId?: string | null;
|
|
1285
|
+
userId?: string;
|
|
1286
|
+
boundsHash: string;
|
|
1287
|
+
profileId: string;
|
|
1288
|
+
/** Downstream tool name. Audit metadata only — never a dispatch key. */
|
|
1289
|
+
action: string;
|
|
1290
|
+
/** Semantic category — drives cumulative bucketing and bounds dispatch. */
|
|
1291
|
+
actionType: string;
|
|
1292
|
+
executionContext: Record<string, unknown>;
|
|
1293
|
+
cumulativeState?: Record<string, unknown>;
|
|
1294
|
+
limits?: Record<string, unknown>;
|
|
1295
|
+
timestamp: number;
|
|
1296
|
+
/** v0.6 — hash of the bound content, computed by the Gatekeeper, copied
|
|
1297
|
+
* verbatim by the AS. The AS never sees the content. */
|
|
1298
|
+
contentHash?: string;
|
|
1299
|
+
/** v0.6 — the binding declaration echoed into the signed receipt, so a
|
|
1300
|
+
* verifier knows exactly what `contentHash` covers. */
|
|
1301
|
+
contentBinding?: Pick<ContentBinding, 'version' | 'kind' | 'fields' | 'required_fields' | 'appliesTo'>;
|
|
1302
|
+
/** v0.6 — disclosed subset of the attestation's identity overlay. */
|
|
1303
|
+
subjects?: Subject[];
|
|
1304
|
+
/** v0.6 — review path: the proposal this receipt executed. */
|
|
1305
|
+
proposalId?: string;
|
|
1306
|
+
/** v0.6 — review path: the owner's HAP-approval signature (or its sha256)
|
|
1307
|
+
* for the executed proposal. */
|
|
1308
|
+
approvalSignature?: string;
|
|
1309
|
+
/** Ed25519 over the JCS-canonical payload (this field excluded), base64url. */
|
|
1310
|
+
signature: string;
|
|
1311
|
+
}
|
|
1312
|
+
/**
|
|
1313
|
+
* Verify a receipt's AS signature: strip `signature`, JCS-canonicalize the
|
|
1314
|
+
* rest, Ed25519-verify against the AS public key (hex). This is holder-side
|
|
1315
|
+
* verification — it needs the COMPLETE receipt; a redacted public view cannot
|
|
1316
|
+
* be re-verified this way (protocol.md → "Receipt Verification").
|
|
1317
|
+
*
|
|
1318
|
+
* Content is checked separately: where `contentHash` is present, recompute it
|
|
1319
|
+
* from the held artifact via the content-binding module and compare.
|
|
1320
|
+
*
|
|
1321
|
+
* @throws Error prefixed `INVALID_SIGNATURE:` when verification fails.
|
|
1322
|
+
*/
|
|
1323
|
+
declare function verifyReceiptSignature(receipt: ReceiptPayload, publicKeyHex: string): Promise<void>;
|
|
1324
|
+
|
|
1325
|
+
export { type AgentBoundsParams, type AgentContextParams, type AgentFrameParams, type AgentProfile, type ApprovalObject, type Attestation, type AttestationHeader, type AttestationPayload, type BoundType, CanonicalValueError, type ContentBinding, ContentBindingError, type ContentBindingErrorCode, type CumulativeFieldDef, type CumulativeWindow, type DeclaredFieldDef, type ExecutionContextFieldDef, type ExecutionLogEntry, type ExecutionLogQuery, type ExecutionMappingTransform, type ExecutionMappingValue, type ExecutionPath, type FieldConstraint, type FieldUnit, type GateQuestion, type GatekeeperError, type GatekeeperRequest, type GatekeeperResult, type MandateBinding, MandateError, type MandateProjection, type OwnerMandate, type ProfileBoundsField, type ProfileContextField, type ProfileFrameField, type ProfileToolGating, type ProfileToolGatingEntry, type ReceiptPayload, type ResolvedDomain, type SigningSurface, type Subject, type SubjectValidation, approvalSigningBytes, attestationId, bindingAppliesTo, buildMandateProjection, canonicalBounds, canonicalContext, canonicalFrame, canonicalize, canonicalizeText, checkAttestationExpiry, clearProfiles, computeBoundsHash, computeContentHash, computeContextHash, computeFieldsContentHash, computeFrameHash, computeIntentDisclosureHash, computeIntentHash, contentCanonicalBytes, decodeAttestationBlob, decodeDidKey, deriveIdentityLine, encodeAttestationBlob, encodeDidKey, frameHash, getAllProfiles, getProfile, intentDisclosureCanonicalBytes, isFieldBinding, isKeyBearingDid, isV4Attestation, listProfiles, mandateSigningBytes, registerProfile, selectBoundFields, signApproval, signMandateProjection, validateBoundsParams, validateContextParams, validateFrameParams, validateSubject, verify, verifyApproval, verifyAttestation, verifyAttestationSignature, verifyAttestationV4, verifyBoundsHash, verifyContextHash, verifyFrameHash, verifyOwnerMandate, verifyOwnerMandates, verifyReceiptSignature };
|