@injistack/react-inji-verify-sdk 0.18.0-beta.25 → 0.18.0-beta.27
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,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export type VerificationStatus = "SUCCESS" | "INVALID" | "EXPIRED" | "REVOKED";
|
|
3
|
+
export type OverallVPStatus = "SUCCESS" | "INVALID";
|
|
3
4
|
export interface VerificationResult {
|
|
4
5
|
/**
|
|
5
6
|
|
|
@@ -10,16 +11,15 @@ export interface VerificationResult {
|
|
|
10
11
|
|
|
11
12
|
Full verification result, including per-check outcomes and optional claims.
|
|
12
13
|
*/
|
|
13
|
-
verificationResponse: CredentialResult;
|
|
14
|
+
verificationResponse: CredentialResult | VpSummarisedVerificationResponse;
|
|
14
15
|
}
|
|
15
16
|
export type VerificationResults = VerificationResult[];
|
|
16
|
-
export interface
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
vpResultStatus: VerificationStatus;
|
|
17
|
+
export interface VpSummarisedVerificationResponse {
|
|
18
|
+
vcResults: {
|
|
19
|
+
vc: Record<string, unknown>;
|
|
20
|
+
vcStatus: VerificationStatus;
|
|
21
|
+
}[];
|
|
22
|
+
vpResultStatus: OverallVPStatus;
|
|
23
23
|
}
|
|
24
24
|
export interface VPRequestBody {
|
|
25
25
|
clientId: string;
|
|
@@ -154,6 +154,7 @@ export type OpenID4VPVerificationProps = ExclusivePresentationDefinition & Exclu
|
|
|
154
154
|
* - Status checks (e.g., revocation)
|
|
155
155
|
*/
|
|
156
156
|
vpVerificationV2Request?: VPVerificationV2Request;
|
|
157
|
+
summariseResults?: boolean;
|
|
157
158
|
};
|
|
158
159
|
export interface SessionState {
|
|
159
160
|
requestId: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { OverallVPStatus, VerificationStatus } from "../openid4vp-verification/OpenID4VPVerification.types";
|
|
2
3
|
type ExclusiveCallbacks =
|
|
3
4
|
/**
|
|
4
5
|
* Callback triggered when the verification presentation (VP) is received.
|
|
@@ -122,8 +123,15 @@ export interface VCSummarisedVerificationResponse {
|
|
|
122
123
|
}
|
|
123
124
|
export type VerificationResults = {
|
|
124
125
|
vc: any;
|
|
125
|
-
verificationResponse: VCVerificationV2Response | VCSummarisedVerificationResponse;
|
|
126
|
+
verificationResponse: VCVerificationV2Response | VCSummarisedVerificationResponse | VpSummarisedVerificationResponse;
|
|
126
127
|
}[];
|
|
128
|
+
export interface VpSummarisedVerificationResponse {
|
|
129
|
+
vcResults: {
|
|
130
|
+
vc: Record<string, unknown>;
|
|
131
|
+
vcStatus: VerificationStatus;
|
|
132
|
+
}[];
|
|
133
|
+
vpResultStatus: OverallVPStatus;
|
|
134
|
+
}
|
|
127
135
|
export interface vcSubmissionBody {
|
|
128
136
|
vc: any;
|
|
129
137
|
transactionId?: string;
|