@mosip/react-inji-verify-sdk 0.14.0-beta.1 → 0.14.0-beta.10
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.
- package/dist/components/openid4vp-verification/OpenID4VPVerification.d.ts +1 -1
- package/dist/components/openid4vp-verification/OpenID4VPVerification.types.d.ts +17 -1
- package/dist/components/qrcode-verification/QRCodeVerification.types.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/utils/api.d.ts +2 -1
- package/dist/utils/themeUtils.d.ts +4 -0
- package/package.json +4 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OpenID4VPVerificationProps } from "./OpenID4VPVerification.types";
|
|
2
1
|
import React from "react";
|
|
2
|
+
import { OpenID4VPVerificationProps } from "./OpenID4VPVerification.types";
|
|
3
3
|
declare const OpenID4VPVerification: React.FC<OpenID4VPVerificationProps>;
|
|
4
4
|
export default OpenID4VPVerification;
|
|
@@ -21,7 +21,7 @@ export type VerificationResults = VerificationResult[];
|
|
|
21
21
|
export interface QrData {
|
|
22
22
|
transactionId: string;
|
|
23
23
|
requestId: string;
|
|
24
|
-
authorizationDetails
|
|
24
|
+
authorizationDetails?: {
|
|
25
25
|
responseType: string;
|
|
26
26
|
clientId: string;
|
|
27
27
|
presentationDefinition: Record<string, unknown>;
|
|
@@ -31,6 +31,7 @@ export interface QrData {
|
|
|
31
31
|
iat: number;
|
|
32
32
|
};
|
|
33
33
|
expiresAt: number;
|
|
34
|
+
requestUri?: string;
|
|
34
35
|
}
|
|
35
36
|
export interface VPRequestBody {
|
|
36
37
|
clientId: string;
|
|
@@ -39,6 +40,11 @@ export interface VPRequestBody {
|
|
|
39
40
|
presentationDefinitionId?: string;
|
|
40
41
|
presentationDefinition?: PresentationDefinition;
|
|
41
42
|
}
|
|
43
|
+
export interface Wallet {
|
|
44
|
+
name: string;
|
|
45
|
+
scheme: string;
|
|
46
|
+
icon: string;
|
|
47
|
+
}
|
|
42
48
|
type ExclusivePresentationDefinition =
|
|
43
49
|
/**
|
|
44
50
|
* ID of the presentation definition used for verification.
|
|
@@ -106,6 +112,11 @@ export type OpenID4VPVerificationProps = ExclusivePresentationDefinition & Exclu
|
|
|
106
112
|
*/
|
|
107
113
|
verifyServiceUrl: string;
|
|
108
114
|
/**
|
|
115
|
+
|
|
116
|
+
The client identifier for relaying party.
|
|
117
|
+
*/
|
|
118
|
+
clientId: string;
|
|
119
|
+
/**
|
|
109
120
|
|
|
110
121
|
The protocol being used for verification (e.g., OpenID4VP).
|
|
111
122
|
*/
|
|
@@ -116,6 +127,11 @@ export type OpenID4VPVerificationProps = ExclusivePresentationDefinition & Exclu
|
|
|
116
127
|
*/
|
|
117
128
|
transactionId?: string;
|
|
118
129
|
/**
|
|
130
|
+
Indicates whether the same device flow is enabled.
|
|
131
|
+
Defaults to true, allowing verification on the same device.
|
|
132
|
+
*/
|
|
133
|
+
isEnableSameDeviceFlow?: boolean;
|
|
134
|
+
/**
|
|
119
135
|
|
|
120
136
|
Styling options for the QR code.
|
|
121
137
|
*/
|