Skip to content

OpenAPI schema sync (v3.5.0) - #267

Merged
JuroUhlar merged 4 commits into
mainfrom
feat/open-api-v3.5.0
Jul 30, 2026
Merged

OpenAPI schema sync (v3.5.0)#267
JuroUhlar merged 4 commits into
mainfrom
feat/open-api-v3.5.0

Conversation

@fingerprint-dx-team-actions-runner

Copy link
Copy Markdown
Contributor

Schema sync for v3.5.0 OpenAPI schema release.

@changeset-bot

changeset-bot Bot commented Jul 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f3d8a4d

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 98.15% 159/162
🟢 Branches 96.84% 92/95
🟢 Functions 100% 35/35
🟢 Lines 98.11% 156/159

Test suite run success

83 tests passing in 24 suites.

Report generated by 🧪jest coverage report action from f3d8a4d

Show full coverage report
St File % Stmts % Branch % Funcs % Lines Uncovered Line #s
🟢 All files 98.14 96.84 100 98.11
🟢  src 98.43 98.66 100 98.41
🔴   ...edApiTypes.ts 0 0 0 0
🔴   index.ts 0 0 0 0
🟢   sealedResults.ts 100 100 100 100
🟢   ...rApiClient.ts 96.15 97.22 100 96.15 358,362
🟢   types.ts 100 100 100 100
🟢   urlUtils.ts 100 100 100 100
🟢   webhook.ts 100 100 100 100
🟢  src/errors 97.05 90 100 96.96
🟢   apiErrors.ts 100 100 100 100
🟢   ...orResponse.ts 100 100 100 100
🟢   toError.ts 87.5 88.88 100 87.5 21
🟢   unsealError.ts 100 50 100 100 10

JuroUhlar
JuroUhlar previously approved these changes Jul 30, 2026
@JuroUhlar
JuroUhlar enabled auto-merge July 30, 2026 20:27
@JuroUhlar
JuroUhlar disabled auto-merge July 30, 2026 20:29
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Following releases will be created using changesets from this PR:

@fingerprint/node-sdk@7.5.0

Minor Changes

  • events: Add active_call smart signal to Event (21dfcb6)

  • events: Add keyboard_layout_hash to RawDeviceAttributes (21dfcb6)

  • events: Add battery_charging field to RawDeviceAttributes (21dfcb6)

  • Separate Server API errors from other request errors and strongly type the error code.

    • Added ServerApiError (extends RequestError), thrown when the Server API returns a structured error response. It narrows errorCode to the strongly typed ErrorCode and exposes responseBody: ErrorResponse.
    • Exported the ErrorCode type (the union of error codes returned by the Fingerprint Server API).
    • TooManyRequestsError now extends ServerApiError.
    • RequestError remains the base class for request-level errors and is thrown directly for non–Server-API responses (for example, errors returned by an intermediate proxy). Its errorCode stays a free-form string (a best-effort placeholder derived from statusText), exactly as before.

    This is a backward-compatible change: structured Server API errors are now instances of ServerApiError (a subclass of RequestError). error instanceof RequestError checks keep working, and errorCode stays populated on every error. To get the strictly typed errorCode, narrow to ServerApiError (if (error instanceof ServerApiError) { error.errorCode }). (808c802)

Patch Changes

  • errors: Normalize caught values into real Error instances, so errors from unseal and JSON parsing always carry a genuine Error. (5764c11)
  • Throw a RequestError instead of a top-level SdkError when a Server API error response has a non-JSON body (e.g. an HTML error page from a proxy). (b16cb93)

@JuroUhlar
JuroUhlar merged commit f1ffefa into main Jul 30, 2026
19 checks passed
@JuroUhlar
JuroUhlar deleted the feat/open-api-v3.5.0 branch July 30, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants