Repository navigation
Add personal agent self-service to the server-side SDKs - #184
sajitha-tj wants to merge 2 commits into
Conversation
Let a signed-in user list, view, edit, delete and suspend their own personal agents through /users/me/agents in the React and Vue SDKs, and show the personal kind and who applied a suspension in the admin agent views. Refs thunder-id/thunderid#4468 Signed-off-by: sajitha-tj <sajitha.jayawickrama@gmail.com>
Let a signed-in user manage their own personal agents in Next.js through server actions and in Nuxt through server routes, keeping the access token on the server and passing only the fields an owner may change. Refs thunder-id/thunderid#4468 Signed-off-by: sajitha-tj <sajitha.jayawickrama@gmail.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
🔀 Cross-SDK feature parityDoes this change need to ship in the other ThunderID SDKs too? This check stays red until one of these labels answers that:
Ports (DO NOT EDIT)
No sibling SDKs accounted for on this thread yet. Important Reply to this comment with this block, filled in. The boxes above tick A link can be a pull request or a tracked issue, written in full or as The contract is in the SDK development specification. |
Purpose
Lets a signed-in user manage the personal assistant agents they own from a Next.js or Nuxt app. The components from #183 run here with the access token kept on the server: Next.js loads them through server actions, Nuxt through server routes.
Approach
This PR depends on #183 and is stacked on it. Until #183 merges, its commit shows here too; review only the second commit, "Add personal agent self-service to the server-side SDKs".
@thunderid/nodeparseUpdateMeAgentRequest, which the Next.js actions and Nuxt routes use to keep only the fields an owner may change.@thunderid/nextjsPersonalAgentListandPersonalAgentDetailsrender React'sBasecomponents with data loaded through these actions, using React'suseResourceQueryanduseResourceMutation.@thunderid/nuxt/api/auth/user/agents, with the same checks as the Next.js actions, using the session's token.PersonalAgentListandPersonalAgentDetailsrender Vue'sBasecomponents with data loaded from these routes. A refusal comes back as the sameThunderIDAPIError, with the same status and code, as in Next.js.Playgrounds
Related Issues
Related PRs
Checklist
breaking changelabel added.parity/prs-raisedorparity/prs-not-neededadded.parity/prs-raised, the port links are posted as a reply on the parity check's comment.Security checks