Skip to content

fix(backend): type JwtTemplatesApi.list as PaginatedResourceResponse#7867

Merged
thiskevinwang merged 1 commit intomainfrom
kevin/aie-488-fix-backend-api-types-for-jwt-template-fetching
Feb 17, 2026
Merged

fix(backend): type JwtTemplatesApi.list as PaginatedResourceResponse#7867
thiskevinwang merged 1 commit intomainfrom
kevin/aie-488-fix-backend-api-types-for-jwt-template-fetching

Conversation

@thiskevinwang
Copy link
Member

@thiskevinwang thiskevinwang commented Feb 17, 2026

Description

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Summary by CodeRabbit

  • New Features

    • JWT templates list endpoint now returns paginated results (clients will receive paginated response structure).
  • Chores

    • Patch release note and changelog updated for the backend package to reflect the pagination change.

@changeset-bot
Copy link

changeset-bot bot commented Feb 17, 2026

🦋 Changeset detected

Latest commit: 0a56906

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

This PR includes changesets to release 10 packages
Name Type
@clerk/backend Patch
@clerk/agent-toolkit Patch
@clerk/astro Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/nextjs Patch
@clerk/nuxt Patch
@clerk/react-router Patch
@clerk/tanstack-react-start Patch
@clerk/testing Patch

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

@vercel
Copy link

vercel bot commented Feb 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clerk-js-sandbox Ready Ready Preview, Comment Feb 17, 2026 8:59pm

Request Review

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 17, 2026

No actionable comments were generated in the recent review. 🎉


📝 Walkthrough

Walkthrough

In packages/backend/src/api/endpoints/JwtTemplatesApi.ts the PaginatedResourceResponse type is imported from the Deserializer. The public method signature JwtTemplatesApi.list(params: ClerkPaginationRequest = {}) now returns PaginatedResourceResponse<JwtTemplate[]> instead of JwtTemplate[]. Method parameters are unchanged. The change aligns the declared return type with the API's paginated response structure.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: updating the type of JwtTemplatesApi.list to PaginatedResourceResponse, which aligns with the file changes and PR objectives.
Linked Issues check ✅ Passed The PR implements the core coding requirement from AIE-488: correcting JwtTemplatesApi.list's return type from Array to PaginatedResourceResponse to match actual API behavior.
Out of Scope Changes check ✅ Passed All changes are directly scoped to the stated objective: updating the return type in JwtTemplatesApi.ts and documenting the change in the changeset file.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Comment @coderabbitai help to get the list of available commands and usage tips.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 17, 2026

Open in StackBlitz

@clerk/agent-toolkit

npm i https://pkg.pr.new/@clerk/agent-toolkit@7867

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@7867

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@7867

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@7867

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@7867

@clerk/dev-cli

npm i https://pkg.pr.new/@clerk/dev-cli@7867

@clerk/expo

npm i https://pkg.pr.new/@clerk/expo@7867

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@7867

@clerk/express

npm i https://pkg.pr.new/@clerk/express@7867

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@7867

@clerk/hono

npm i https://pkg.pr.new/@clerk/hono@7867

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@7867

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@7867

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@7867

@clerk/react

npm i https://pkg.pr.new/@clerk/react@7867

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@7867

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@7867

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@7867

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@7867

@clerk/ui

npm i https://pkg.pr.new/@clerk/ui@7867

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@7867

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@7867

commit: 0a56906

@Railly
Copy link
Contributor

Railly commented Feb 17, 2026

@thiskevinwang lmk when you fixed the tests if the approval gets dismissed

@thiskevinwang thiskevinwang force-pushed the kevin/aie-488-fix-backend-api-types-for-jwt-template-fetching branch from 5a21425 to 0a56906 Compare February 17, 2026 20:58
@thiskevinwang thiskevinwang enabled auto-merge (squash) February 17, 2026 20:59
@thiskevinwang thiskevinwang merged commit 6fb0c85 into main Feb 17, 2026
41 checks passed
@thiskevinwang thiskevinwang deleted the kevin/aie-488-fix-backend-api-types-for-jwt-template-fetching branch February 17, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments