@injistack/react-inji-verify-sdk 0.19.0-beta.5 → 0.19.0-beta.6
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.
|
@@ -25,8 +25,7 @@ export interface VPRequestBody {
|
|
|
25
25
|
clientId: string;
|
|
26
26
|
nonce: string;
|
|
27
27
|
transactionId?: string;
|
|
28
|
-
|
|
29
|
-
presentationDefinition?: PresentationDefinition;
|
|
28
|
+
presentationDefinition: PresentationDefinition;
|
|
30
29
|
acceptVPWithoutHolderProof?: boolean;
|
|
31
30
|
/**
|
|
32
31
|
* When true, the verifier backend will generate a short-lived single-use `response_code`
|
|
@@ -36,23 +35,6 @@ export interface VPRequestBody {
|
|
|
36
35
|
*/
|
|
37
36
|
responseCodeValidationRequired?: boolean;
|
|
38
37
|
}
|
|
39
|
-
type ExclusivePresentationDefinition =
|
|
40
|
-
/**
|
|
41
|
-
* ID of the presentation definition used for verification.
|
|
42
|
-
* Required for some verification flows.
|
|
43
|
-
*/
|
|
44
|
-
{
|
|
45
|
-
presentationDefinitionId: string;
|
|
46
|
-
presentationDefinition?: never;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* The full presentation definition JSON string.
|
|
50
|
-
* If provided, it will be used instead of fetching from the backend.
|
|
51
|
-
*/
|
|
52
|
-
| {
|
|
53
|
-
presentationDefinition?: PresentationDefinition;
|
|
54
|
-
presentationDefinitionId?: never;
|
|
55
|
-
};
|
|
56
38
|
type ExclusiveCallbacks =
|
|
57
39
|
/**
|
|
58
40
|
* Callback triggered when the verification presentation (VP) is received.
|
|
@@ -89,7 +71,11 @@ export interface PresentationDefinition {
|
|
|
89
71
|
};
|
|
90
72
|
input_descriptors: InputDescriptor[];
|
|
91
73
|
}
|
|
92
|
-
export type OpenID4VPVerificationProps =
|
|
74
|
+
export type OpenID4VPVerificationProps = ExclusiveCallbacks & {
|
|
75
|
+
/**
|
|
76
|
+
* The presentation definition object used for verification.
|
|
77
|
+
*/
|
|
78
|
+
presentationDefinition: PresentationDefinition;
|
|
93
79
|
/**
|
|
94
80
|
React element that triggers the verification process (e.g., a button).
|
|
95
81
|
If not provided, the component may automatically start the process.
|