@oma3/omatrust 0.1.0-alpha.10 → 0.1.0-alpha.12

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.
Files changed (48) hide show
  1. package/README.md +3 -0
  2. package/dist/app-registry/index.cjs +53 -0
  3. package/dist/app-registry/index.cjs.map +1 -1
  4. package/dist/app-registry/index.js +53 -0
  5. package/dist/app-registry/index.js.map +1 -1
  6. package/dist/identity/index.cjs +1028 -6
  7. package/dist/identity/index.cjs.map +1 -1
  8. package/dist/identity/index.d.cts +2 -1
  9. package/dist/identity/index.d.ts +2 -1
  10. package/dist/identity/index.js +984 -7
  11. package/dist/identity/index.js.map +1 -1
  12. package/dist/index-B5OC9_8B.d.cts +480 -0
  13. package/dist/index-Bu-xxcv9.d.ts +407 -0
  14. package/dist/index-C6WNgPRx.d.ts +480 -0
  15. package/dist/index-C7odEbp6.d.cts +407 -0
  16. package/dist/index.cjs +2498 -373
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.cts +4 -3
  19. package/dist/index.d.ts +4 -3
  20. package/dist/index.js +2342 -236
  21. package/dist/index.js.map +1 -1
  22. package/dist/reputation/index.browser.cjs +949 -67
  23. package/dist/reputation/index.browser.cjs.map +1 -1
  24. package/dist/reputation/index.browser.d.cts +2 -2
  25. package/dist/reputation/index.browser.d.ts +2 -2
  26. package/dist/reputation/index.browser.js +947 -67
  27. package/dist/reputation/index.browser.js.map +1 -1
  28. package/dist/reputation/index.cjs +1745 -232
  29. package/dist/reputation/index.cjs.map +1 -1
  30. package/dist/reputation/index.d.cts +3 -2
  31. package/dist/reputation/index.d.ts +3 -2
  32. package/dist/reputation/index.js +1727 -232
  33. package/dist/reputation/index.js.map +1 -1
  34. package/dist/{subject-ownership-CXvzEjpH.d.cts → subject-ownership-B7cFlm8c.d.cts} +256 -26
  35. package/dist/{subject-ownership-CXvzEjpH.d.ts → subject-ownership-B7cFlm8c.d.ts} +256 -26
  36. package/dist/types-Dn0OwaNj.d.cts +307 -0
  37. package/dist/types-Dn0OwaNj.d.ts +307 -0
  38. package/dist/widgets/index.cjs +70 -27
  39. package/dist/widgets/index.cjs.map +1 -1
  40. package/dist/widgets/index.d.cts +45 -18
  41. package/dist/widgets/index.d.ts +45 -18
  42. package/dist/widgets/index.js +67 -26
  43. package/dist/widgets/index.js.map +1 -1
  44. package/package.json +5 -2
  45. package/dist/index-B9KW02US.d.cts +0 -119
  46. package/dist/index-DXrwBex9.d.ts +0 -119
  47. package/dist/index-QZDExA4I.d.cts +0 -90
  48. package/dist/index-QZDExA4I.d.ts +0 -90
@@ -0,0 +1,480 @@
1
+ import { k as GetControllerAuthorizationParams, d as ControllerAuthorizationResult, D as Did, aV as VerifyDnsTxtControllerDidOptions, r as ProofWrapper, A as AttestationQueryResult, a as AttestationValidationError, B as BuildDelegatedTypedDataFromEncodedParams, C as CallControllerWitnessParams, b as CallControllerWitnessResult, c as ChainConstants, aW as ContractOwnershipProvider, e as ControllerWitnessEvidence, f as CreatePopEip712ProofParams, g as CreatePopJwsProofParams, h as DnsTxtRecordResult, aX as EIP1967_ADMIN_SLOT, E as EvidencePointerProof, i as EvmOwnershipProvider, G as GetAttestationParams, j as GetAttestationsByAttesterParams, l as GetLatestAttestationsParams, H as Hex, L as ListAttestationsParams, aY as OWNERSHIP_PATTERNS, P as PopEip712Proof, m as PopJwsProof, n as PrepareDelegatedAttestationParams, o as PrepareDelegatedAttestationResult, p as ProofPurpose, q as ProofType, R as RelayErrorDetails, s as RelayMetadata, t as RequestControllerWitnessParams, u as RequestControllerWitnessResult, v as RevokeAttestationParams, w as RevokeAttestationResult, S as SchemaField, x as SubjectOwnershipVerificationMethod, y as SubjectOwnershipVerificationResult, z as SubmitAttestationParams, F as SubmitAttestationResult, I as SubmitDelegatedAttestationParams, J as SubmitDelegatedAttestationResult, T as TxEncodedValueProof, K as TxInteractionProof, V as VerifyAttestationParams, M as VerifyAttestationResult, N as VerifyDidJsonControllerDidOptions, O as VerifyDidPkhOwnershipParams, Q as VerifyDidWebOwnershipParams, U as VerifyProofParams, W as VerifyProofResult, X as VerifySubjectOwnershipParams, Y as W3CKeyPurpose, Z as X402OfferProof, _ as X402ReceiptProof, $ as buildDelegatedAttestationTypedData, a0 as buildDelegatedTypedDataFromEncoded, a1 as buildDnsTxtRecord, a2 as buildEip712Domain, a3 as calculateAverageUserReviewRating, a4 as calculateTransferAmount, a5 as calculateTransferAmountFromAddresses, a6 as callControllerWitness, a7 as constructSeed, a8 as createEvidencePointerProof, a9 as createPopEip712Proof, aa as createPopJwsProof, ab as createTxEncodedValueProof, ac as createTxInteractionProof, ad as createX402OfferProof, ae as createX402ReceiptProof, af as decodeAttestationData, ag as deduplicateReviews, aZ as discoverContractOwner, a_ as discoverControllingWalletDid, ah as encodeAttestationData, ai as extractEvmAddressesFromDidDocument, aj as extractExpirationTime, ak as extractJwksFromDidDocument, al as fetchDidDocument, am as formatSchemaUid, an as formatTransferAmount, ao as getAttestation, ap as getAttestationsByAttester, aq as getAttestationsForDid, ar as getChainConstants, as as getExplorerAddressUrl, at as getExplorerTxUrl, au as getLatestAttestations, av as getMajorVersion, aw as getOmaTrustProofEip712Types, ax as getSchemaDetails, ay as getSupportedChainIds, az as hashSeed, aA as isChainSupported, aB as listAttestations, aC as normalizeSchema, aD as parseDnsTxtRecord, aE as prepareDelegatedAttestation, a$ as readOwnerFromContract, aF as requestControllerWitness, aG as revokeAttestation, aH as schemaToString, aI as splitSignature, aJ as submitAttestation, aK as submitDelegatedAttestation, aL as validateAttestationData, aM as verifyAttestation, aN as verifyDidDocumentControllerDid, aO as verifyDidJsonControllerDid, aP as verifyDidPkhOwnership, aQ as verifyDidWebOwnership, aR as verifyEip712Signature, aS as verifyProof, aT as verifySchemaExists, aU as verifySubjectOwnership, b0 as verifyTransferProof } from './subject-ownership-B7cFlm8c.js';
2
+ import { R as ResolveKeyOptions, c as JwsVerificationResult, b as JwsVerificationFailure } from './types-Dn0OwaNj.js';
3
+
4
+ /**
5
+ * Controller Authorization — verifies the time window during which a controller
6
+ * was authorized for a subject DID.
7
+ *
8
+ * This is the "read/verify" counterpart to requestControllerWitness (write).
9
+ *
10
+ * For did:web subjects:
11
+ * - Controller witness attestations (strongest durable evidence)
12
+ * - Key binding with purpose check
13
+ * - Live DNS TXT / did.json verification (current-point-in-time fallback)
14
+ *
15
+ * For did:pkh subjects (smart contracts):
16
+ * - Direct subject ownership check (owner/admin/EIP-1967)
17
+ * - Key binding with transfer proof verification
18
+ * - NOTE: Only EVM chains are currently supported for contract ownership checks.
19
+ * Non-EVM did:pkh subjects (e.g. Solana) will need chain-specific verification.
20
+ */
21
+
22
+ /**
23
+ * Determine the authorization window for a controller-subject pair.
24
+ *
25
+ * For did:web subjects, checks:
26
+ * 1. On-chain controller-witness attestations (strongest evidence)
27
+ * 2. On-chain key-binding revocation and purpose status
28
+ * 3. Live DNS TXT / did.json verification (current-point-in-time fallback)
29
+ *
30
+ * For did:pkh subjects (smart contracts), checks:
31
+ * 1. Direct subject ownership (controller is the contract owner/admin)
32
+ * 2. Key binding with transfer proof verification
33
+ *
34
+ * Returns the authorization window so the consumer can filter attestations
35
+ * by timestamp without repeated on-chain queries.
36
+ */
37
+ declare function getControllerAuthorization(params: GetControllerAuthorizationParams): Promise<ControllerAuthorizationResult>;
38
+
39
+ /**
40
+ * x402 JWS Verification — Phase 5
41
+ *
42
+ * Verifies x402 signed offer and receipt artifacts using JWS Compact Serialization.
43
+ *
44
+ * Two verification paths:
45
+ * 1. Embedded JWK: header contains `jwk` → validate, verify signature, derive did:jwk
46
+ * 2. KID Resolution: header contains `kid` (no `jwk`) → resolve DID URL → verify → derive did:jwk
47
+ *
48
+ * If both `kid` and `jwk` are present and the resolved key conflicts with the
49
+ * embedded key, verification fails.
50
+ *
51
+ * JWS verification is NOT authorization. It only proves the signature is valid
52
+ * and returns the did:jwk for downstream authorization checks.
53
+ */
54
+
55
+ /** x402 JWS artifact envelope */
56
+ interface X402JwsArtifact {
57
+ format: "jws";
58
+ signature: string;
59
+ }
60
+ /** Options for x402 JWS verification */
61
+ interface X402JwsVerifyOptions {
62
+ /**
63
+ * Options for DID URL key resolution (used when kid is present).
64
+ * Pass a custom fetchDidDocument for testing or non-standard resolution.
65
+ */
66
+ resolveOptions?: ResolveKeyOptions;
67
+ }
68
+ /**
69
+ * Verify an x402 JWS artifact (offer or receipt).
70
+ *
71
+ * This is the core verification function. It:
72
+ * 1. Parses the compact JWS
73
+ * 2. Decodes the protected header
74
+ * 3. Requires `alg` and at least one of `kid` or `jwk`
75
+ * 4. Selects the public key (embedded jwk or resolved kid)
76
+ * 5. Verifies the JWS signature
77
+ * 6. Derives did:jwk from the verified public key
78
+ * 7. Returns a structured result
79
+ *
80
+ * Does NOT validate payload shape — use verifyX402JwsOffer or verifyX402JwsReceipt
81
+ * for payload validation.
82
+ *
83
+ * @param artifact - The x402 JWS artifact envelope
84
+ * @param options - Optional verification options (resolver config, etc.)
85
+ * @returns JwsVerificationResult on success, JwsVerificationFailure on failure
86
+ */
87
+ declare function verifyX402JwsArtifact(artifact: X402JwsArtifact, options?: X402JwsVerifyOptions): Promise<JwsVerificationResult | JwsVerificationFailure>;
88
+ /**
89
+ * Verify an x402 JWS offer artifact.
90
+ *
91
+ * Performs full JWS signature verification and validates that the payload
92
+ * contains required offer fields: version, resourceUrl, scheme, network,
93
+ * asset, payTo, amount.
94
+ *
95
+ * @param artifact - The x402 JWS artifact envelope
96
+ * @param options - Optional verification options
97
+ * @returns JwsVerificationResult on success, JwsVerificationFailure on failure
98
+ */
99
+ declare function verifyX402JwsOffer(artifact: X402JwsArtifact, options?: X402JwsVerifyOptions): Promise<JwsVerificationResult | JwsVerificationFailure>;
100
+ /**
101
+ * Verify an x402 JWS receipt artifact.
102
+ *
103
+ * Performs full JWS signature verification and validates that the payload
104
+ * contains required receipt fields: version, network, resourceUrl, payer,
105
+ * issuedAt.
106
+ *
107
+ * @param artifact - The x402 JWS artifact envelope
108
+ * @param options - Optional verification options
109
+ * @returns JwsVerificationResult on success, JwsVerificationFailure on failure
110
+ */
111
+ declare function verifyX402JwsReceipt(artifact: X402JwsArtifact, options?: X402JwsVerifyOptions): Promise<JwsVerificationResult | JwsVerificationFailure>;
112
+
113
+ /**
114
+ * x402 EIP-712 Verification — Phase 5b
115
+ *
116
+ * Verifies x402 signed offer and receipt artifacts using EIP-712 typed data signatures.
117
+ *
118
+ * EIP-712 is the simpler verification path: the signer address is recovered directly
119
+ * from the signature using ethers verifyTypedData. There is no DID URL resolution or
120
+ * JWK handling — the recovered address is the verification output.
121
+ *
122
+ * EIP-712 verification is NOT authorization. It only proves the signature is valid
123
+ * and returns the recovered signer address for downstream authorization checks.
124
+ */
125
+ /** x402 EIP-712 artifact envelope */
126
+ interface X402Eip712Artifact {
127
+ format: "eip712";
128
+ payload: Record<string, unknown>;
129
+ signature: string;
130
+ }
131
+ /** Successful EIP-712 verification result */
132
+ interface Eip712VerificationResult {
133
+ valid: true;
134
+ /** Decoded payload from the artifact */
135
+ payload: Record<string, unknown>;
136
+ /** Recovered signer address (checksummed) */
137
+ signer: string;
138
+ /** Whether this is an offer or receipt */
139
+ artifactType: "offer" | "receipt";
140
+ }
141
+ /** Failed EIP-712 verification result */
142
+ interface Eip712VerificationFailure {
143
+ valid: false;
144
+ error: {
145
+ code: string;
146
+ message: string;
147
+ };
148
+ payload?: Record<string, unknown>;
149
+ signer?: string;
150
+ }
151
+ /**
152
+ * Verify an x402 EIP-712 artifact (offer or receipt).
153
+ *
154
+ * This is the core verification function. It:
155
+ * 1. Validates the artifact envelope (format, payload, signature)
156
+ * 2. Validates payload shape for the artifact type
157
+ * 3. Constructs EIP-712 typed data using canonical domain and types
158
+ * 4. Verifies signature and recovers signer address
159
+ * 5. Returns structured result with recovered signer
160
+ *
161
+ * @param artifact - The x402 EIP-712 artifact envelope
162
+ * @param artifactType - Whether this is an "offer" or "receipt"
163
+ * @returns Eip712VerificationResult on success, Eip712VerificationFailure on failure
164
+ */
165
+ declare function verifyX402Eip712Artifact(artifact: X402Eip712Artifact, artifactType: "offer" | "receipt"): Eip712VerificationResult | Eip712VerificationFailure;
166
+ /**
167
+ * Verify an x402 EIP-712 offer artifact.
168
+ *
169
+ * Recovers the signer address and validates that the payload contains
170
+ * required offer fields: version, resourceUrl, scheme, network, asset, payTo, amount.
171
+ *
172
+ * @param artifact - The x402 EIP-712 artifact envelope
173
+ * @returns Eip712VerificationResult on success, Eip712VerificationFailure on failure
174
+ */
175
+ declare function verifyX402Eip712Offer(artifact: X402Eip712Artifact): Eip712VerificationResult | Eip712VerificationFailure;
176
+ /**
177
+ * Verify an x402 EIP-712 receipt artifact.
178
+ *
179
+ * Recovers the signer address and validates that the payload contains
180
+ * required receipt fields: version, network, resourceUrl, payer, issuedAt.
181
+ *
182
+ * @param artifact - The x402 EIP-712 artifact envelope
183
+ * @returns Eip712VerificationResult on success, Eip712VerificationFailure on failure
184
+ */
185
+ declare function verifyX402Eip712Receipt(artifact: X402Eip712Artifact): Eip712VerificationResult | Eip712VerificationFailure;
186
+
187
+ /**
188
+ * Unified x402 Artifact Verification
189
+ *
190
+ * Auto-detects format (JWS or EIP-712) and artifact type (offer or receipt),
191
+ * then delegates to the appropriate verifier.
192
+ *
193
+ * This is the recommended entry point for callers who receive an x402 artifact
194
+ * and don't want to branch on format themselves.
195
+ */
196
+
197
+ /** Any x402 artifact envelope (JWS or EIP-712) */
198
+ type X402Artifact = X402JwsArtifact | X402Eip712Artifact | {
199
+ format: string;
200
+ [key: string]: unknown;
201
+ };
202
+ /** Options for unified x402 verification */
203
+ interface VerifyX402Options {
204
+ /**
205
+ * Artifact type: "offer" or "receipt".
206
+ * Required so the verifier knows which payload fields to validate.
207
+ */
208
+ artifactType: "offer" | "receipt";
209
+ /**
210
+ * Options for JWS DID URL key resolution (only used for JWS format with kid).
211
+ */
212
+ resolveOptions?: X402JwsVerifyOptions["resolveOptions"];
213
+ }
214
+ /** Successful result from unified verification */
215
+ type X402VerificationSuccess = JwsVerificationResult | Eip712VerificationResult;
216
+ /** Failed result from unified verification */
217
+ type X402VerificationFailure = JwsVerificationFailure | Eip712VerificationFailure;
218
+ /** Result from unified verification */
219
+ type X402VerificationResult = X402VerificationSuccess | X402VerificationFailure;
220
+ /**
221
+ * Verify an x402 artifact, auto-detecting format (JWS or EIP-712).
222
+ *
223
+ * This is the recommended single entry point for x402 verification.
224
+ * It inspects the `format` field and delegates to the appropriate verifier.
225
+ *
226
+ * @param artifact - The x402 artifact object (must have a `format` field)
227
+ * @param options - Must specify `artifactType` ("offer" or "receipt")
228
+ * @returns Verification result (success or failure, format-specific)
229
+ *
230
+ * @example
231
+ * ```ts
232
+ * const result = await verifyX402Artifact(receiptFromServer, { artifactType: "receipt" });
233
+ * if (result.valid) {
234
+ * // JWS: result.publicKeyDid is the did:jwk for authorization
235
+ * // EIP-712: result.signer is the recovered address
236
+ * }
237
+ * ```
238
+ */
239
+ declare function verifyX402Artifact(artifact: X402Artifact, options: VerifyX402Options): Promise<X402VerificationResult>;
240
+
241
+ declare function verifyDnsTxtControllerDid(domain: string, expectedControllerDid: Did, options?: VerifyDnsTxtControllerDidOptions): Promise<{
242
+ valid: boolean;
243
+ record?: string;
244
+ reason?: string;
245
+ }>;
246
+
247
+ /**
248
+ * Schema-Aware Proof Verification
249
+ *
250
+ * Provides higher-level proof verification that understands attestation schema semantics.
251
+ * Unlike the generic verifyProof() which validates proof structure and signatures,
252
+ * these functions verify that proof signers match the claimed identities in the attestation.
253
+ *
254
+ * - verifyLinkedIdentifierProofs: Verifies that proofs demonstrate shared control
255
+ * between subject and linkedId
256
+ * - verifyKeyBindingProofs: Verifies that proofs demonstrate the subject authorized
257
+ * the keyId binding
258
+ */
259
+
260
+ /** Attestation data for a Linked Identifier schema */
261
+ interface LinkedIdentifierData {
262
+ subject: Did;
263
+ linkedId: Did;
264
+ proofs: ProofWrapper[];
265
+ attester?: string;
266
+ }
267
+ /** Attestation data for a Key Binding schema */
268
+ interface KeyBindingData {
269
+ subject: Did;
270
+ keyId: Did;
271
+ publicKeyJwk?: Record<string, unknown>;
272
+ proofs: ProofWrapper[];
273
+ attester?: string;
274
+ }
275
+ /** Result of schema-aware proof verification */
276
+ interface SchemaProofVerificationResult {
277
+ /** Whether all required proof checks passed */
278
+ valid: boolean;
279
+ /** Individual check results */
280
+ checks: SchemaProofCheck[];
281
+ /** Human-readable reasons for any failures */
282
+ reasons: string[];
283
+ }
284
+ /** Individual proof check result */
285
+ interface SchemaProofCheck {
286
+ /** Which proof (by index) was checked */
287
+ proofIndex: number;
288
+ /** The proof type */
289
+ proofType: string;
290
+ /** What the check verified */
291
+ checkType: "signer-is-subject" | "signer-is-linkedId" | "signer-is-keyId" | "signer-is-subject-for-key";
292
+ /** Whether this check passed */
293
+ valid: boolean;
294
+ /** Failure reason if not valid */
295
+ reason?: string;
296
+ }
297
+ /**
298
+ * Verify proofs for a Linked Identifier attestation.
299
+ *
300
+ * A Linked Identifier attestation asserts that subject and linkedId are controlled
301
+ * by the same entity. The proof semantics require:
302
+ *
303
+ * - At least one proof where the signer IS the subject (subject proves control)
304
+ * - At least one proof where the signer IS the linkedId (linkedId proves control)
305
+ *
306
+ * OR (for non-signer identities like handles):
307
+ * - Evidence-pointer proofs at locations controlled by the identity
308
+ *
309
+ * The combination demonstrates mutual agreement / shared control.
310
+ *
311
+ * @param data - The linked identifier attestation data
312
+ * @returns Verification result with individual check details
313
+ */
314
+ declare function verifyLinkedIdentifierProofs(data: LinkedIdentifierData): SchemaProofVerificationResult;
315
+ /**
316
+ * Verify proofs for a Key Binding attestation.
317
+ *
318
+ * A Key Binding attestation asserts that the subject authorized a specific key (keyId).
319
+ * The proof semantics require:
320
+ *
321
+ * - At least one proof where the signer IS the subject (subject authorized the binding)
322
+ * AND the proof's authorizedEntity/aud references the keyId
323
+ *
324
+ * Optionally, if publicKeyJwk is provided:
325
+ * - The proof's signer key material should match publicKeyJwk for did:jwk keyIds
326
+ *
327
+ * @param data - The key binding attestation data
328
+ * @returns Verification result with individual check details
329
+ */
330
+ declare function verifyKeyBindingProofs(data: KeyBindingData): SchemaProofVerificationResult;
331
+
332
+ declare const index_AttestationQueryResult: typeof AttestationQueryResult;
333
+ declare const index_AttestationValidationError: typeof AttestationValidationError;
334
+ declare const index_BuildDelegatedTypedDataFromEncodedParams: typeof BuildDelegatedTypedDataFromEncodedParams;
335
+ declare const index_CallControllerWitnessParams: typeof CallControllerWitnessParams;
336
+ declare const index_CallControllerWitnessResult: typeof CallControllerWitnessResult;
337
+ declare const index_ChainConstants: typeof ChainConstants;
338
+ declare const index_ContractOwnershipProvider: typeof ContractOwnershipProvider;
339
+ declare const index_ControllerAuthorizationResult: typeof ControllerAuthorizationResult;
340
+ declare const index_ControllerWitnessEvidence: typeof ControllerWitnessEvidence;
341
+ declare const index_CreatePopEip712ProofParams: typeof CreatePopEip712ProofParams;
342
+ declare const index_CreatePopJwsProofParams: typeof CreatePopJwsProofParams;
343
+ declare const index_Did: typeof Did;
344
+ declare const index_DnsTxtRecordResult: typeof DnsTxtRecordResult;
345
+ declare const index_EIP1967_ADMIN_SLOT: typeof EIP1967_ADMIN_SLOT;
346
+ type index_Eip712VerificationFailure = Eip712VerificationFailure;
347
+ type index_Eip712VerificationResult = Eip712VerificationResult;
348
+ declare const index_EvidencePointerProof: typeof EvidencePointerProof;
349
+ declare const index_EvmOwnershipProvider: typeof EvmOwnershipProvider;
350
+ declare const index_GetAttestationParams: typeof GetAttestationParams;
351
+ declare const index_GetAttestationsByAttesterParams: typeof GetAttestationsByAttesterParams;
352
+ declare const index_GetControllerAuthorizationParams: typeof GetControllerAuthorizationParams;
353
+ declare const index_GetLatestAttestationsParams: typeof GetLatestAttestationsParams;
354
+ declare const index_Hex: typeof Hex;
355
+ type index_KeyBindingData = KeyBindingData;
356
+ type index_LinkedIdentifierData = LinkedIdentifierData;
357
+ declare const index_ListAttestationsParams: typeof ListAttestationsParams;
358
+ declare const index_OWNERSHIP_PATTERNS: typeof OWNERSHIP_PATTERNS;
359
+ declare const index_PopEip712Proof: typeof PopEip712Proof;
360
+ declare const index_PopJwsProof: typeof PopJwsProof;
361
+ declare const index_PrepareDelegatedAttestationParams: typeof PrepareDelegatedAttestationParams;
362
+ declare const index_PrepareDelegatedAttestationResult: typeof PrepareDelegatedAttestationResult;
363
+ declare const index_ProofPurpose: typeof ProofPurpose;
364
+ declare const index_ProofType: typeof ProofType;
365
+ declare const index_ProofWrapper: typeof ProofWrapper;
366
+ declare const index_RelayErrorDetails: typeof RelayErrorDetails;
367
+ declare const index_RelayMetadata: typeof RelayMetadata;
368
+ declare const index_RequestControllerWitnessParams: typeof RequestControllerWitnessParams;
369
+ declare const index_RequestControllerWitnessResult: typeof RequestControllerWitnessResult;
370
+ declare const index_RevokeAttestationParams: typeof RevokeAttestationParams;
371
+ declare const index_RevokeAttestationResult: typeof RevokeAttestationResult;
372
+ declare const index_SchemaField: typeof SchemaField;
373
+ type index_SchemaProofCheck = SchemaProofCheck;
374
+ type index_SchemaProofVerificationResult = SchemaProofVerificationResult;
375
+ declare const index_SubjectOwnershipVerificationMethod: typeof SubjectOwnershipVerificationMethod;
376
+ declare const index_SubjectOwnershipVerificationResult: typeof SubjectOwnershipVerificationResult;
377
+ declare const index_SubmitAttestationParams: typeof SubmitAttestationParams;
378
+ declare const index_SubmitAttestationResult: typeof SubmitAttestationResult;
379
+ declare const index_SubmitDelegatedAttestationParams: typeof SubmitDelegatedAttestationParams;
380
+ declare const index_SubmitDelegatedAttestationResult: typeof SubmitDelegatedAttestationResult;
381
+ declare const index_TxEncodedValueProof: typeof TxEncodedValueProof;
382
+ declare const index_TxInteractionProof: typeof TxInteractionProof;
383
+ declare const index_VerifyAttestationParams: typeof VerifyAttestationParams;
384
+ declare const index_VerifyAttestationResult: typeof VerifyAttestationResult;
385
+ declare const index_VerifyDidJsonControllerDidOptions: typeof VerifyDidJsonControllerDidOptions;
386
+ declare const index_VerifyDidPkhOwnershipParams: typeof VerifyDidPkhOwnershipParams;
387
+ declare const index_VerifyDidWebOwnershipParams: typeof VerifyDidWebOwnershipParams;
388
+ declare const index_VerifyDnsTxtControllerDidOptions: typeof VerifyDnsTxtControllerDidOptions;
389
+ declare const index_VerifyProofParams: typeof VerifyProofParams;
390
+ declare const index_VerifyProofResult: typeof VerifyProofResult;
391
+ declare const index_VerifySubjectOwnershipParams: typeof VerifySubjectOwnershipParams;
392
+ type index_VerifyX402Options = VerifyX402Options;
393
+ declare const index_W3CKeyPurpose: typeof W3CKeyPurpose;
394
+ type index_X402Artifact = X402Artifact;
395
+ type index_X402Eip712Artifact = X402Eip712Artifact;
396
+ type index_X402JwsArtifact = X402JwsArtifact;
397
+ type index_X402JwsVerifyOptions = X402JwsVerifyOptions;
398
+ declare const index_X402OfferProof: typeof X402OfferProof;
399
+ declare const index_X402ReceiptProof: typeof X402ReceiptProof;
400
+ type index_X402VerificationFailure = X402VerificationFailure;
401
+ type index_X402VerificationResult = X402VerificationResult;
402
+ type index_X402VerificationSuccess = X402VerificationSuccess;
403
+ declare const index_buildDelegatedAttestationTypedData: typeof buildDelegatedAttestationTypedData;
404
+ declare const index_buildDelegatedTypedDataFromEncoded: typeof buildDelegatedTypedDataFromEncoded;
405
+ declare const index_buildDnsTxtRecord: typeof buildDnsTxtRecord;
406
+ declare const index_buildEip712Domain: typeof buildEip712Domain;
407
+ declare const index_calculateAverageUserReviewRating: typeof calculateAverageUserReviewRating;
408
+ declare const index_calculateTransferAmount: typeof calculateTransferAmount;
409
+ declare const index_calculateTransferAmountFromAddresses: typeof calculateTransferAmountFromAddresses;
410
+ declare const index_callControllerWitness: typeof callControllerWitness;
411
+ declare const index_constructSeed: typeof constructSeed;
412
+ declare const index_createEvidencePointerProof: typeof createEvidencePointerProof;
413
+ declare const index_createPopEip712Proof: typeof createPopEip712Proof;
414
+ declare const index_createPopJwsProof: typeof createPopJwsProof;
415
+ declare const index_createTxEncodedValueProof: typeof createTxEncodedValueProof;
416
+ declare const index_createTxInteractionProof: typeof createTxInteractionProof;
417
+ declare const index_createX402OfferProof: typeof createX402OfferProof;
418
+ declare const index_createX402ReceiptProof: typeof createX402ReceiptProof;
419
+ declare const index_decodeAttestationData: typeof decodeAttestationData;
420
+ declare const index_deduplicateReviews: typeof deduplicateReviews;
421
+ declare const index_discoverContractOwner: typeof discoverContractOwner;
422
+ declare const index_discoverControllingWalletDid: typeof discoverControllingWalletDid;
423
+ declare const index_encodeAttestationData: typeof encodeAttestationData;
424
+ declare const index_extractEvmAddressesFromDidDocument: typeof extractEvmAddressesFromDidDocument;
425
+ declare const index_extractExpirationTime: typeof extractExpirationTime;
426
+ declare const index_extractJwksFromDidDocument: typeof extractJwksFromDidDocument;
427
+ declare const index_fetchDidDocument: typeof fetchDidDocument;
428
+ declare const index_formatSchemaUid: typeof formatSchemaUid;
429
+ declare const index_formatTransferAmount: typeof formatTransferAmount;
430
+ declare const index_getAttestation: typeof getAttestation;
431
+ declare const index_getAttestationsByAttester: typeof getAttestationsByAttester;
432
+ declare const index_getAttestationsForDid: typeof getAttestationsForDid;
433
+ declare const index_getChainConstants: typeof getChainConstants;
434
+ declare const index_getControllerAuthorization: typeof getControllerAuthorization;
435
+ declare const index_getExplorerAddressUrl: typeof getExplorerAddressUrl;
436
+ declare const index_getExplorerTxUrl: typeof getExplorerTxUrl;
437
+ declare const index_getLatestAttestations: typeof getLatestAttestations;
438
+ declare const index_getMajorVersion: typeof getMajorVersion;
439
+ declare const index_getOmaTrustProofEip712Types: typeof getOmaTrustProofEip712Types;
440
+ declare const index_getSchemaDetails: typeof getSchemaDetails;
441
+ declare const index_getSupportedChainIds: typeof getSupportedChainIds;
442
+ declare const index_hashSeed: typeof hashSeed;
443
+ declare const index_isChainSupported: typeof isChainSupported;
444
+ declare const index_listAttestations: typeof listAttestations;
445
+ declare const index_normalizeSchema: typeof normalizeSchema;
446
+ declare const index_parseDnsTxtRecord: typeof parseDnsTxtRecord;
447
+ declare const index_prepareDelegatedAttestation: typeof prepareDelegatedAttestation;
448
+ declare const index_readOwnerFromContract: typeof readOwnerFromContract;
449
+ declare const index_requestControllerWitness: typeof requestControllerWitness;
450
+ declare const index_revokeAttestation: typeof revokeAttestation;
451
+ declare const index_schemaToString: typeof schemaToString;
452
+ declare const index_splitSignature: typeof splitSignature;
453
+ declare const index_submitAttestation: typeof submitAttestation;
454
+ declare const index_submitDelegatedAttestation: typeof submitDelegatedAttestation;
455
+ declare const index_validateAttestationData: typeof validateAttestationData;
456
+ declare const index_verifyAttestation: typeof verifyAttestation;
457
+ declare const index_verifyDidDocumentControllerDid: typeof verifyDidDocumentControllerDid;
458
+ declare const index_verifyDidJsonControllerDid: typeof verifyDidJsonControllerDid;
459
+ declare const index_verifyDidPkhOwnership: typeof verifyDidPkhOwnership;
460
+ declare const index_verifyDidWebOwnership: typeof verifyDidWebOwnership;
461
+ declare const index_verifyDnsTxtControllerDid: typeof verifyDnsTxtControllerDid;
462
+ declare const index_verifyEip712Signature: typeof verifyEip712Signature;
463
+ declare const index_verifyKeyBindingProofs: typeof verifyKeyBindingProofs;
464
+ declare const index_verifyLinkedIdentifierProofs: typeof verifyLinkedIdentifierProofs;
465
+ declare const index_verifyProof: typeof verifyProof;
466
+ declare const index_verifySchemaExists: typeof verifySchemaExists;
467
+ declare const index_verifySubjectOwnership: typeof verifySubjectOwnership;
468
+ declare const index_verifyTransferProof: typeof verifyTransferProof;
469
+ declare const index_verifyX402Artifact: typeof verifyX402Artifact;
470
+ declare const index_verifyX402Eip712Artifact: typeof verifyX402Eip712Artifact;
471
+ declare const index_verifyX402Eip712Offer: typeof verifyX402Eip712Offer;
472
+ declare const index_verifyX402Eip712Receipt: typeof verifyX402Eip712Receipt;
473
+ declare const index_verifyX402JwsArtifact: typeof verifyX402JwsArtifact;
474
+ declare const index_verifyX402JwsOffer: typeof verifyX402JwsOffer;
475
+ declare const index_verifyX402JwsReceipt: typeof verifyX402JwsReceipt;
476
+ declare namespace index {
477
+ export { index_AttestationQueryResult as AttestationQueryResult, index_AttestationValidationError as AttestationValidationError, index_BuildDelegatedTypedDataFromEncodedParams as BuildDelegatedTypedDataFromEncodedParams, index_CallControllerWitnessParams as CallControllerWitnessParams, index_CallControllerWitnessResult as CallControllerWitnessResult, index_ChainConstants as ChainConstants, index_ContractOwnershipProvider as ContractOwnershipProvider, index_ControllerAuthorizationResult as ControllerAuthorizationResult, index_ControllerWitnessEvidence as ControllerWitnessEvidence, index_CreatePopEip712ProofParams as CreatePopEip712ProofParams, index_CreatePopJwsProofParams as CreatePopJwsProofParams, index_Did as Did, index_DnsTxtRecordResult as DnsTxtRecordResult, index_EIP1967_ADMIN_SLOT as EIP1967_ADMIN_SLOT, type index_Eip712VerificationFailure as Eip712VerificationFailure, type index_Eip712VerificationResult as Eip712VerificationResult, index_EvidencePointerProof as EvidencePointerProof, index_EvmOwnershipProvider as EvmOwnershipProvider, index_GetAttestationParams as GetAttestationParams, index_GetAttestationsByAttesterParams as GetAttestationsByAttesterParams, index_GetControllerAuthorizationParams as GetControllerAuthorizationParams, index_GetLatestAttestationsParams as GetLatestAttestationsParams, index_Hex as Hex, type index_KeyBindingData as KeyBindingData, type index_LinkedIdentifierData as LinkedIdentifierData, index_ListAttestationsParams as ListAttestationsParams, index_OWNERSHIP_PATTERNS as OWNERSHIP_PATTERNS, index_PopEip712Proof as PopEip712Proof, index_PopJwsProof as PopJwsProof, index_PrepareDelegatedAttestationParams as PrepareDelegatedAttestationParams, index_PrepareDelegatedAttestationResult as PrepareDelegatedAttestationResult, index_ProofPurpose as ProofPurpose, index_ProofType as ProofType, index_ProofWrapper as ProofWrapper, index_RelayErrorDetails as RelayErrorDetails, index_RelayMetadata as RelayMetadata, index_RequestControllerWitnessParams as RequestControllerWitnessParams, index_RequestControllerWitnessResult as RequestControllerWitnessResult, index_RevokeAttestationParams as RevokeAttestationParams, index_RevokeAttestationResult as RevokeAttestationResult, index_SchemaField as SchemaField, type index_SchemaProofCheck as SchemaProofCheck, type index_SchemaProofVerificationResult as SchemaProofVerificationResult, index_SubjectOwnershipVerificationMethod as SubjectOwnershipVerificationMethod, index_SubjectOwnershipVerificationResult as SubjectOwnershipVerificationResult, index_SubmitAttestationParams as SubmitAttestationParams, index_SubmitAttestationResult as SubmitAttestationResult, index_SubmitDelegatedAttestationParams as SubmitDelegatedAttestationParams, index_SubmitDelegatedAttestationResult as SubmitDelegatedAttestationResult, index_TxEncodedValueProof as TxEncodedValueProof, index_TxInteractionProof as TxInteractionProof, index_VerifyAttestationParams as VerifyAttestationParams, index_VerifyAttestationResult as VerifyAttestationResult, index_VerifyDidJsonControllerDidOptions as VerifyDidJsonControllerDidOptions, index_VerifyDidPkhOwnershipParams as VerifyDidPkhOwnershipParams, index_VerifyDidWebOwnershipParams as VerifyDidWebOwnershipParams, index_VerifyDnsTxtControllerDidOptions as VerifyDnsTxtControllerDidOptions, index_VerifyProofParams as VerifyProofParams, index_VerifyProofResult as VerifyProofResult, index_VerifySubjectOwnershipParams as VerifySubjectOwnershipParams, type index_VerifyX402Options as VerifyX402Options, index_W3CKeyPurpose as W3CKeyPurpose, type index_X402Artifact as X402Artifact, type index_X402Eip712Artifact as X402Eip712Artifact, type index_X402JwsArtifact as X402JwsArtifact, type index_X402JwsVerifyOptions as X402JwsVerifyOptions, index_X402OfferProof as X402OfferProof, index_X402ReceiptProof as X402ReceiptProof, type index_X402VerificationFailure as X402VerificationFailure, type index_X402VerificationResult as X402VerificationResult, type index_X402VerificationSuccess as X402VerificationSuccess, index_buildDelegatedAttestationTypedData as buildDelegatedAttestationTypedData, index_buildDelegatedTypedDataFromEncoded as buildDelegatedTypedDataFromEncoded, index_buildDnsTxtRecord as buildDnsTxtRecord, index_buildEip712Domain as buildEip712Domain, index_calculateAverageUserReviewRating as calculateAverageUserReviewRating, index_calculateTransferAmount as calculateTransferAmount, index_calculateTransferAmountFromAddresses as calculateTransferAmountFromAddresses, index_callControllerWitness as callControllerWitness, index_constructSeed as constructSeed, index_createEvidencePointerProof as createEvidencePointerProof, index_createPopEip712Proof as createPopEip712Proof, index_createPopJwsProof as createPopJwsProof, index_createTxEncodedValueProof as createTxEncodedValueProof, index_createTxInteractionProof as createTxInteractionProof, index_createX402OfferProof as createX402OfferProof, index_createX402ReceiptProof as createX402ReceiptProof, index_decodeAttestationData as decodeAttestationData, index_deduplicateReviews as deduplicateReviews, index_discoverContractOwner as discoverContractOwner, index_discoverControllingWalletDid as discoverControllingWalletDid, index_encodeAttestationData as encodeAttestationData, index_extractEvmAddressesFromDidDocument as extractEvmAddressesFromDidDocument, index_extractExpirationTime as extractExpirationTime, index_extractJwksFromDidDocument as extractJwksFromDidDocument, index_fetchDidDocument as fetchDidDocument, index_formatSchemaUid as formatSchemaUid, index_formatTransferAmount as formatTransferAmount, index_getAttestation as getAttestation, index_getAttestationsByAttester as getAttestationsByAttester, index_getAttestationsForDid as getAttestationsForDid, index_getChainConstants as getChainConstants, index_getControllerAuthorization as getControllerAuthorization, index_getExplorerAddressUrl as getExplorerAddressUrl, index_getExplorerTxUrl as getExplorerTxUrl, index_getLatestAttestations as getLatestAttestations, index_getMajorVersion as getMajorVersion, index_getOmaTrustProofEip712Types as getOmaTrustProofEip712Types, index_getSchemaDetails as getSchemaDetails, index_getSupportedChainIds as getSupportedChainIds, index_hashSeed as hashSeed, index_isChainSupported as isChainSupported, index_listAttestations as listAttestations, index_normalizeSchema as normalizeSchema, index_parseDnsTxtRecord as parseDnsTxtRecord, index_prepareDelegatedAttestation as prepareDelegatedAttestation, index_readOwnerFromContract as readOwnerFromContract, index_requestControllerWitness as requestControllerWitness, index_revokeAttestation as revokeAttestation, index_schemaToString as schemaToString, index_splitSignature as splitSignature, index_submitAttestation as submitAttestation, index_submitDelegatedAttestation as submitDelegatedAttestation, index_validateAttestationData as validateAttestationData, index_verifyAttestation as verifyAttestation, index_verifyDidDocumentControllerDid as verifyDidDocumentControllerDid, index_verifyDidJsonControllerDid as verifyDidJsonControllerDid, index_verifyDidPkhOwnership as verifyDidPkhOwnership, index_verifyDidWebOwnership as verifyDidWebOwnership, index_verifyDnsTxtControllerDid as verifyDnsTxtControllerDid, index_verifyEip712Signature as verifyEip712Signature, index_verifyKeyBindingProofs as verifyKeyBindingProofs, index_verifyLinkedIdentifierProofs as verifyLinkedIdentifierProofs, index_verifyProof as verifyProof, index_verifySchemaExists as verifySchemaExists, index_verifySubjectOwnership as verifySubjectOwnership, index_verifyTransferProof as verifyTransferProof, index_verifyX402Artifact as verifyX402Artifact, index_verifyX402Eip712Artifact as verifyX402Eip712Artifact, index_verifyX402Eip712Offer as verifyX402Eip712Offer, index_verifyX402Eip712Receipt as verifyX402Eip712Receipt, index_verifyX402JwsArtifact as verifyX402JwsArtifact, index_verifyX402JwsOffer as verifyX402JwsOffer, index_verifyX402JwsReceipt as verifyX402JwsReceipt };
478
+ }
479
+
480
+ export { type Eip712VerificationFailure as E, type KeyBindingData as K, type LinkedIdentifierData as L, type SchemaProofCheck as S, type VerifyX402Options as V, type X402Artifact as X, type Eip712VerificationResult as a, type SchemaProofVerificationResult as b, type X402Eip712Artifact as c, type X402JwsArtifact as d, type X402JwsVerifyOptions as e, type X402VerificationFailure as f, type X402VerificationResult as g, type X402VerificationSuccess as h, index as i, getControllerAuthorization as j, verifyKeyBindingProofs as k, verifyLinkedIdentifierProofs as l, verifyX402Artifact as m, verifyX402Eip712Artifact as n, verifyX402Eip712Offer as o, verifyX402Eip712Receipt as p, verifyX402JwsArtifact as q, verifyX402JwsOffer as r, verifyX402JwsReceipt as s, verifyDnsTxtControllerDid as v };