@injistack/react-inji-verify-sdk 0.18.0-beta.26 → 0.18.0-beta.28

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 VPVerificationSummaryVcResult {
17
- vc: Record<string, unknown>;
18
- vcStatus: VerificationStatus;
19
- }
20
- export interface VPVerificationSummaryResponse {
21
- vcResults: VPVerificationSummaryVcResult[];
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.
@@ -19,7 +20,8 @@ type ExclusiveCallbacks =
19
20
  export type QRCodeVerificationProps = ExclusiveCallbacks & {
20
21
  /**
21
22
  * React element that triggers the verification process (e.g., a button).
22
- * If not provided, the component may automatically start the process.
23
+ * When set, the default file upload control is not shown; upload runs via this trigger.
24
+ * If omitted, the visible file input is shown (when upload is enabled).
23
25
  */
24
26
  triggerElement?: React.ReactNode;
25
27
  /**
@@ -122,8 +124,15 @@ export interface VCSummarisedVerificationResponse {
122
124
  }
123
125
  export type VerificationResults = {
124
126
  vc: any;
125
- verificationResponse: VCVerificationV2Response | VCSummarisedVerificationResponse;
127
+ verificationResponse: VCVerificationV2Response | VCSummarisedVerificationResponse | VpSummarisedVerificationResponse;
126
128
  }[];
129
+ export interface VpSummarisedVerificationResponse {
130
+ vcResults: {
131
+ vc: Record<string, unknown>;
132
+ vcStatus: VerificationStatus;
133
+ }[];
134
+ vpResultStatus: OverallVPStatus;
135
+ }
127
136
  export interface vcSubmissionBody {
128
137
  vc: any;
129
138
  transactionId?: string;