@injistack/react-inji-verify-sdk 0.18.0-beta.9 → 0.18.1
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/README.md +604 -120
- package/dist/components/openid4vp-verification/OpenID4VPVerification.types.d.ts +64 -10
- package/dist/components/qrcode-verification/QRCodeVerification.types.d.ts +36 -10
- package/dist/index.js +1 -1
- package/dist/utils/api.d.ts +10 -3
- package/dist/utils/constants.d.ts +0 -4
- package/dist/utils/utils.d.ts +5 -0
- package/package.json +2 -2
package/dist/utils/api.d.ts
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import { PresentationDefinition } from "../components/openid4vp-verification/OpenID4VPVerification.types";
|
|
1
|
+
import { PresentationDefinition, VPVerificationRequest } from "../components/openid4vp-verification/OpenID4VPVerification.types";
|
|
2
2
|
import { VCVerificationV2Request, VCVerificationV2Response } from "../components/qrcode-verification/QRCodeVerification.types";
|
|
3
3
|
import { QrData } from "../types/OVPSchemeQrData";
|
|
4
4
|
export declare const vcVerificationV2: (credential: unknown, url: string, config?: VCVerificationV2Request) => Promise<VCVerificationV2Response>;
|
|
5
5
|
export declare const vcSubmission: (credential: unknown, url: string, txnId?: string) => Promise<any>;
|
|
6
|
-
export declare const vpRequest: (url: string, clientId: string, txnId?: string, presentationDefinitionId?: string, presentationDefinition?: PresentationDefinition, acceptVPWithoutHolderProof?: boolean
|
|
6
|
+
export declare const vpRequest: (url: string, clientId: string, txnId?: string, presentationDefinitionId?: string, presentationDefinition?: PresentationDefinition, acceptVPWithoutHolderProof?: boolean) => Promise<QrData>;
|
|
7
7
|
export declare const vpRequestStatus: (url: string, reqId: string, abortSignal?: boolean) => Promise<any>;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const vpSessionRequest: (url: string, clientId: string, txnId?: string, presentationDefinitionId?: string, presentationDefinition?: PresentationDefinition, acceptVPWithoutHolderProof?: boolean, responseCodeValidationRequired?: boolean) => Promise<QrData>;
|
|
9
|
+
/**
|
|
10
|
+
* Public helper that calls the new `/vp-session-results` endpoint.
|
|
11
|
+
*
|
|
12
|
+
* This is the primary endpoint used by UI/SDK to fetch VP (and VC submission)
|
|
13
|
+
* verification results for a session bound via the `transaction_id` HttpOnly cookie.
|
|
14
|
+
*/
|
|
15
|
+
export declare const vpSessionResults: (url: string, responseCode?: string | null, config?: VPVerificationRequest) => Promise<any>;
|
|
@@ -18,7 +18,3 @@ export declare const OvpQrHeader = "INJI_OVP://";
|
|
|
18
18
|
export declare const BASE64_PADDING = "==";
|
|
19
19
|
export declare const acceptedFileTypes: string;
|
|
20
20
|
export declare const VALID_SD_JWT_TYPES: Set<string>;
|
|
21
|
-
export declare const OVP_SESSION_REQUEST_ID_KEY = "ovp_requestId";
|
|
22
|
-
export declare const OVP_SESSION_TRANSACTION_ID_KEY = "ovp_transactionId";
|
|
23
|
-
export declare const SAME_DEVICE_FLOW = "same_device";
|
|
24
|
-
export declare const CROSS_DEVICE_FLOW = "cross_device";
|
package/dist/utils/utils.d.ts
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
+
import { CredentialResult, VCVerificationV2Response } from "../components/qrcode-verification/QRCodeVerification.types";
|
|
1
2
|
export declare const isSdJwt: (vpToken: string) => boolean;
|
|
3
|
+
export declare const normalizeVp: (vp: any) => Record<string, unknown>;
|
|
4
|
+
export declare const clearUrl: (params?: string[]) => void;
|
|
5
|
+
export declare const summariseVCResult: (response: VCVerificationV2Response) => "SUCCESS" | "INVALID" | "EXPIRED" | "REVOKED";
|
|
6
|
+
export declare const summariseVPResult: (cred: CredentialResult) => "SUCCESS" | "INVALID" | "EXPIRED" | "REVOKED";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@injistack/react-inji-verify-sdk",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.1",
|
|
4
4
|
"description": "A react component library to perform Inji verify tasks, such as OpenId4VP sharing, Reading VC QR codes",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"style-loader": "^4.0.0",
|
|
60
60
|
"ts-loader": "^9.5.2",
|
|
61
61
|
"typescript": "^4.9.5",
|
|
62
|
-
"webpack": "^5.
|
|
62
|
+
"webpack": "^5.105.0",
|
|
63
63
|
"webpack-cli": "^6.0.1"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|