@injistack/react-inji-verify-sdk 0.18.0-beta.10 → 0.18.0-beta.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.
@@ -1,16 +1,16 @@
1
1
  /// <reference types="react" />
2
- export type VerificationStatus = "valid" | "invalid" | "expired";
2
+ export type VerificationStatus = "SUCCESS" | "INVALID" | "EXPIRED" | "REVOKED";
3
3
  export interface VerificationResult {
4
4
  /**
5
-
6
- Verified credential data (structured per implementation).
7
- */
5
+
6
+ Verified credential data (structured per implementation).
7
+ */
8
8
  vc: Record<string, unknown>;
9
9
  /**
10
-
11
- The status of the verification.
12
- */
13
- vcStatus: VerificationStatus;
10
+
11
+ Full verification result, including per-check outcomes and optional claims.
12
+ */
13
+ verificationResponse: CredentialResult;
14
14
  }
15
15
  export type VerificationResults = VerificationResult[];
16
16
  export interface VPRequestBody {
@@ -131,6 +131,15 @@ export type OpenID4VPVerificationProps = ExclusivePresentationDefinition & Exclu
131
131
  The base URL of the wallet.
132
132
  */
133
133
  webWalletBaseUrl?: string;
134
+ /**
135
+ * Configuration object used to control VP verification behaviour.
136
+ *
137
+ * Allows enabling/disabling specific verification checks such as:
138
+ * - Schema & signature validation
139
+ * - Expiry validation
140
+ * - Status checks (e.g., revocation)
141
+ */
142
+ vpVerificationV2Request?: VPVerificationV2Request;
134
143
  };
135
144
  export interface SessionState {
136
145
  requestId: string;
@@ -141,4 +150,35 @@ export type AppError = {
141
150
  errorCode?: string;
142
151
  transactionId?: string | null;
143
152
  };
153
+ export interface VPVerificationV2Request {
154
+ skipStatusChecks?: boolean;
155
+ statusCheckFilters?: string[];
156
+ includeClaims?: boolean;
157
+ }
158
+ export interface VPVerificationV2Response {
159
+ transactionId: string;
160
+ allChecksSuccessful: boolean;
161
+ credentialResults: CredentialResult[];
162
+ }
163
+ export interface CredentialResult {
164
+ verifiableCredential: string | object;
165
+ allChecksSuccessful: boolean;
166
+ holderProofCheck?: {
167
+ valid: boolean;
168
+ error: any;
169
+ } | null;
170
+ schemaAndSignatureCheck?: {
171
+ valid: boolean;
172
+ error: any;
173
+ };
174
+ expiryCheck?: {
175
+ valid: boolean;
176
+ };
177
+ statusChecks?: {
178
+ purpose: string;
179
+ valid: boolean;
180
+ error: any;
181
+ }[];
182
+ claims?: Record<string, any>;
183
+ }
144
184
  export {};
@@ -118,15 +118,7 @@ export interface VCVerificationV2Response {
118
118
  }
119
119
  export type VerificationResults = {
120
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
- };
121
+ verificationResponse: VCVerificationV2Response;
130
122
  }[];
131
123
  export interface vcSubmissionBody {
132
124
  vc: any;