@opensecret/react 1.1.0 → 1.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/dist/index.d.ts CHANGED
@@ -1378,14 +1378,35 @@ export declare type ParsedAttestationView = {
1378
1378
  validatedPcr0Hash: Pcr0ValidationResult | null;
1379
1379
  };
1380
1380
 
1381
+ /**
1382
+ * Result of PCR0 validation
1383
+ */
1381
1384
  export declare type Pcr0ValidationResult = {
1385
+ /** Whether the PCR0 hash matches a known good value */
1382
1386
  isMatch: boolean;
1387
+ /** Human-readable description of the validation result */
1383
1388
  text: string;
1389
+ /** Timestamp of when the PCR was verified (for remote attestation) */
1390
+ verifiedAt?: string;
1384
1391
  };
1385
1392
 
1393
+ /**
1394
+ * Configuration options for PCR validation
1395
+ */
1386
1396
  export declare type PcrConfig = {
1397
+ /** Additional custom PCR0 values for production environments */
1387
1398
  pcr0Values?: string[];
1399
+ /** Additional custom PCR0 values for development environments */
1388
1400
  pcr0DevValues?: string[];
1401
+ /** Enable/disable remote attestation (defaults to true) */
1402
+ remoteAttestation?: boolean;
1403
+ /** Custom URLs for remote attestation */
1404
+ remoteAttestationUrls?: {
1405
+ /** URL for production PCR history */
1406
+ prod?: string;
1407
+ /** URL for development PCR history */
1408
+ dev?: string;
1409
+ };
1389
1410
  };
1390
1411
 
1391
1412
  declare namespace platformApi {