@injistack/react-inji-verify-sdk 0.18.0-beta.3 → 0.18.0-beta.5
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.
|
@@ -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
|
-
*
|
|
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
|
-
|
|
94
|
-
}
|
|
95
|
-
export type
|
|
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;
|