Skip to content

NYL-515: Add certificate fields to Credential - #788

Merged
radenkovic merged 1 commit into
mainfrom
feat/NYL-515-credential-certificate-fields
Nov 24, 2026
Merged

radenkovic merged 1 commit into
mainfrom
feat/NYL-515-credential-certificate-fields

Conversation

@radenkovic

@radenkovic radenkovic commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Implements NYL-515, the Node part of NYL-511.

UAS now returns two optional fields on Credential records, only when credential_type is connectorcertificate or adminconsentcertificate. Those credentials can only be created from the Dashboard.

  • Credential.certificateExpiresAt?: number: certificate expiry as a Unix timestamp
  • Credential.thumbprint?: string: certificate thumbprint
  • CredentialType.CONNECTORCERTIFICATE and CredentialType.ADMINCONSENTCERTIFICATE, so list/find results using them are typed

Create request types are unchanged, because these credential types can't be created through the API. No mapping code was needed: responses already go through objKeysToCamelCase, so certificate_expires_at arrives as certificateExpiresAt.

Note for the release: Unreleased is planned as 8.5.1. New public fields and enum values may call for a minor bump (8.6.0) instead.

Tests

  • New: find on a certificate credential returns both fields.
  • New: the fields are undefined for other credential types.
  • Full suite: 567 passed. tsc --noEmit and eslint are clean.

🤖 Generated with Claude Code

UAS now returns two optional fields on Credential records for
Dashboard-generated certificate credentials (connectorcertificate and
adminconsentcertificate): certificate_expires_at and thumbprint.

Add certificateExpiresAt and thumbprint to the Credential model, and
add CONNECTORCERTIFICATE and ADMINCONSENTCERTIFICATE to CredentialType
so list/find responses are typed. Create request types are unchanged,
since these credentials cannot be created through the API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.69%. Comparing base (31da360) to head (01a00d2).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #788   +/-   ##
=======================================
  Coverage   98.69%   98.69%           
=======================================
  Files          43       43           
  Lines        1073     1075    +2     
  Branches      101      101           
=======================================
+ Hits         1059     1061    +2     
  Misses         12       12           
  Partials        2        2           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@radenkovic
radenkovic requested a review from AaronDDM November 23, 2026 15:17
@radenkovic
radenkovic merged commit ac35761 into main Nov 24, 2026
11 checks passed

This branch was successfully deployed

1 active deployment
sdk-reference — 01a00d22 Deployed Nov 23, 2026 by radenkovic via docs #813
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.

2 participants