@koraidv/core 1.8.2 → 1.8.4

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/index.d.mts CHANGED
@@ -147,6 +147,24 @@ interface Verification {
147
147
  updatedAt: Date;
148
148
  /** Completion timestamp */
149
149
  completedAt?: Date;
150
+ /**
151
+ * Human-readable explanation set by the backend decision engine when
152
+ * status is `rejected`, `expired`, or `review_required`. Examples:
153
+ * - "You selected US Driver's License but the document you uploaded looks like a Driver's License..."
154
+ * - "Subject matched against sanctions list"
155
+ * - "Document has expired (expiry: 2022-02-28)"
156
+ * Surfaced by the ResultScreen so the user sees the actual reason,
157
+ * not the generic "we could not verify your identity" copy.
158
+ * Optional because legacy verifications + some terminal states (e.g.
159
+ * approved) don't carry one.
160
+ */
161
+ decisionReason?: string;
162
+ /**
163
+ * Legacy free-text rejection reason. Newer code paths populate
164
+ * decisionReason instead; both are kept on the type for backwards
165
+ * compatibility with any caller still reading the older field.
166
+ */
167
+ rejectionReason?: string;
150
168
  /**
151
169
  * Integrator + SDK-supplied metadata persisted on the verification.
152
170
  * The Web SDK sets `source: 'web'` here so the backend's source-
package/dist/index.d.ts CHANGED
@@ -147,6 +147,24 @@ interface Verification {
147
147
  updatedAt: Date;
148
148
  /** Completion timestamp */
149
149
  completedAt?: Date;
150
+ /**
151
+ * Human-readable explanation set by the backend decision engine when
152
+ * status is `rejected`, `expired`, or `review_required`. Examples:
153
+ * - "You selected US Driver's License but the document you uploaded looks like a Driver's License..."
154
+ * - "Subject matched against sanctions list"
155
+ * - "Document has expired (expiry: 2022-02-28)"
156
+ * Surfaced by the ResultScreen so the user sees the actual reason,
157
+ * not the generic "we could not verify your identity" copy.
158
+ * Optional because legacy verifications + some terminal states (e.g.
159
+ * approved) don't carry one.
160
+ */
161
+ decisionReason?: string;
162
+ /**
163
+ * Legacy free-text rejection reason. Newer code paths populate
164
+ * decisionReason instead; both are kept on the type for backwards
165
+ * compatibility with any caller still reading the older field.
166
+ */
167
+ rejectionReason?: string;
150
168
  /**
151
169
  * Integrator + SDK-supplied metadata persisted on the verification.
152
170
  * The Web SDK sets `source: 'web'` here so the backend's source-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koraidv/core",
3
- "version": "1.8.2",
3
+ "version": "1.8.4",
4
4
  "description": "Kora IDV Core SDK - API Client and Utilities",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",