@injistack/react-inji-verify-sdk 0.18.0-beta.11 → 0.18.0-beta.13
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 = "
|
|
2
|
+
export type VerificationStatus = "SUCCESS" | "INVALID" | "EXPIRED" | "REVOKED";
|
|
3
3
|
export interface VerificationResult {
|
|
4
4
|
/**
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
|
|
6
|
+
Verified credential data (structured per implementation).
|
|
7
|
+
*/
|
|
8
8
|
vc: Record<string, unknown>;
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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,18 +118,31 @@ export interface VCVerificationV2Response {
|
|
|
118
118
|
}
|
|
119
119
|
export type VerificationResults = {
|
|
120
120
|
vc: any;
|
|
121
|
-
|
|
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;
|
|
133
125
|
transactionId?: string;
|
|
134
126
|
}
|
|
127
|
+
export interface CredentialResult {
|
|
128
|
+
verifiableCredential: string | object;
|
|
129
|
+
allChecksSuccessful: boolean;
|
|
130
|
+
holderProofCheck?: {
|
|
131
|
+
valid: boolean;
|
|
132
|
+
error: any;
|
|
133
|
+
} | null;
|
|
134
|
+
schemaAndSignatureCheck?: {
|
|
135
|
+
valid: boolean;
|
|
136
|
+
error: any;
|
|
137
|
+
};
|
|
138
|
+
expiryCheck?: {
|
|
139
|
+
valid: boolean;
|
|
140
|
+
};
|
|
141
|
+
statusChecks?: {
|
|
142
|
+
purpose: string;
|
|
143
|
+
valid: boolean;
|
|
144
|
+
error: any;
|
|
145
|
+
}[];
|
|
146
|
+
claims?: Record<string, any>;
|
|
147
|
+
}
|
|
135
148
|
export {};
|