@injistack/react-inji-verify-sdk 0.18.0-beta.1 → 0.18.0-beta.11

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.
@@ -20,6 +20,7 @@ export interface VPRequestBody {
20
20
  presentationDefinitionId?: string;
21
21
  presentationDefinition?: PresentationDefinition;
22
22
  acceptVPWithoutHolderProof?: boolean;
23
+ presentationFlow?: string;
23
24
  }
24
25
  type ExclusivePresentationDefinition =
25
26
  /**
@@ -126,6 +127,10 @@ export type OpenID4VPVerificationProps = ExclusivePresentationDefinition & Exclu
126
127
  When true, allows unsigned VPs (VPs without proof).
127
128
  */
128
129
  acceptVPWithoutHolderProof?: boolean;
130
+ /**
131
+ The base URL of the wallet.
132
+ */
133
+ webWalletBaseUrl?: string;
129
134
  };
130
135
  export interface SessionState {
131
136
  requestId: string;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from "react";
2
2
  import { QRCodeVerificationProps } from "./QRCodeVerification.types";
3
3
  import "./QRCodeVerification.css";
4
4
  declare const QRCodeVerification: React.FC<QRCodeVerificationProps>;
@@ -81,23 +81,53 @@ export type QRCodeVerificationProps = ExclusiveCallbacks & {
81
81
  When true, allows unsigned VPs (VPs without proof).
82
82
  */
83
83
  acceptVPWithoutHolderProof?: boolean;
84
- };
85
- interface VerificationResult {
86
- /**
87
- * Verified credential data (structure depends on implementation).
88
- */
89
- vc: unknown;
90
84
  /**
91
- * The status of the verification (e.g., "valid", "invalid", "expired").
85
+ * Configuration object used to control VC verification behaviour.
86
+ *
87
+ * Allows enabling/disabling specific verification checks such as:
88
+ * - Schema & signature validation
89
+ * - Expiry validation
90
+ * - Status checks (e.g., revocation)
92
91
  */
93
- vcStatus: VcStatus;
94
- }
95
- export type VerificationResults = VerificationResult[];
96
- export type VcStatus = "SUCCESS" | "INVALID" | "EXPIRED";
92
+ vcVerificationV2Request?: VCVerificationV2Request;
93
+ };
94
+ export type VcStatus = "SUCCESS" | "INVALID" | "EXPIRED" | "REVOKED";
97
95
  export type scanResult = {
98
96
  data: any;
99
97
  error: Error | null;
100
98
  };
99
+ export interface ValidationCheck {
100
+ purpose?: string;
101
+ valid: boolean;
102
+ error?: {
103
+ errorCode?: string;
104
+ errorMessage?: string;
105
+ } | null;
106
+ }
107
+ export interface VCVerificationV2Request {
108
+ skipStatusChecks?: boolean;
109
+ statusCheckFilters?: string[];
110
+ includeClaims?: boolean;
111
+ }
112
+ export interface VCVerificationV2Response {
113
+ allChecksSuccessful: boolean;
114
+ schemaAndSignatureCheck: ValidationCheck;
115
+ expiryCheck: ValidationCheck;
116
+ statusCheck: ValidationCheck[];
117
+ claims?: Record<string, any>;
118
+ }
119
+ export type VerificationResults = {
120
+ vc: any;
121
+ vcStatus: VcStatus;
122
+ claims?: Record<string, any>;
123
+ details?: {
124
+ checks: {
125
+ schema: ValidationCheck;
126
+ expiry: ValidationCheck;
127
+ status: ValidationCheck[];
128
+ };
129
+ };
130
+ }[];
101
131
  export interface vcSubmissionBody {
102
132
  vc: any;
103
133
  transactionId?: string;