Skip to content

Commit

Permalink
types: Add missing fields to VerifyResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
vastus committed Jun 26, 2024
1 parent 4f9b390 commit 68640b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ type VerifyResponse = {

/** List of error codes. Present if success is false */
"error-codes"?: string[],

/** A score denoting malicious activity. (Optional b/c of ENTERPRISE feature) */
score?: number,

/** Reason(s) for score. (Optional b/c of ENTERPRISE feature) */
score_reason?: string[],
};

declare module "hcaptcha" {
Expand Down

0 comments on commit 68640b4

Please sign in to comment.