Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(api-keys): add last_used_at field to API key response#877

Merged
joaopcm merged 1 commit into
canaryfrom
feature/product-1583-coordinate-last_used_at-change
Mar 13, 2026
Merged

feat(api-keys): add last_used_at field to API key response#877
joaopcm merged 1 commit into
canaryfrom
feature/product-1583-coordinate-last_used_at-change

Conversation

@joaopcm

@joaopcm joaopcm commented Mar 12, 2026

Copy link
Copy Markdown
Member

Summary

Added support for the nullable last_used_at field in the API keys list response. The field returns an ISO-8601 timestamp string when available, or null if never used. Updated the ApiKey interface, response types, and test fixtures to reflect the API spec change.

Testing steps

  • Verify apiKeys.list() returns objects with last_used_at field
  • Verify last_used_at can be null or contain an ISO-8601 timestamp
  • Run pnpm test to ensure all tests pass
  • Run pnpm lint:fix to verify no linting issues

Summary by cubic

Add a nullable last_used_at timestamp to API key list responses so clients can see when each key was last used. Updates ApiKey types to match the API spec and satisfy PRODUCT-1583.

  • New Features
    • Extend ApiKey with last_used_at: string | null
    • Include last_used_at in apiKeys.list() results (ISO-8601 string or null)
    • Update tests to cover timestamp and null cases

Written for commit deb9118. Summary will update on new commits.

Support nullable last_used_at timestamp for API keys in list response, matching API spec.
@joaopcm joaopcm requested a review from a team as a code owner March 12, 2026 19:48
@joaopcm joaopcm requested a review from vcapretz March 12, 2026 19:48
@joaopcm joaopcm changed the title feat(api-keys): Add last_used_at field to API key response feat(api-keys): add last_used_at field to API key response Mar 12, 2026
@joaopcm joaopcm self-assigned this Mar 12, 2026
@pkg-pr-new

pkg-pr-new Bot commented Mar 12, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/resend@877

commit: 3c976d9

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cubic analysis

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Linked issue analysis

Linked issue: PRODUCT-1583: Coordinate last_used_at change

Status Acceptance criteria Notes
Update the docs to talk about the new field No docs updated in diffs
OpenAPI spec No OpenAPI/spec files changed
Update the Node.js SDK to support this new field No SDK code or package changes present
Coordinate with SDK maintainers No coordination notes or related changes
Let the Chrisis know No notification or changelog updates found
Add last_used_at field to API response types and tests (repository) Added interface, response type, and test fixtures
Ensure last_used_at is nullable and ISO-8601 when present Type allows string|null and tests show ISO-8601 sample

@joaopcm joaopcm merged commit 0987940 into canary Mar 13, 2026
12 of 14 checks passed
@joaopcm joaopcm deleted the feature/product-1583-coordinate-last_used_at-change branch March 13, 2026 17:14
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