feat(indexd-types): add reset lost sectors API#1476
Conversation
🦋 Changeset detectedLatest commit: f57a53b The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
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 |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.
Tip: disable this comment in your organization's Code Review settings.
There was a problem hiding this comment.
Pull request overview
Adds a new admin API client surface for resetting a host’s lost sector count, exposing the route + types in indexd-types and wiring corresponding convenience helpers in both the React hooks package and the JS client package.
Changes:
- Added
adminHostResetLostSectorsRouteplus params/payload/response types to@siafoundation/indexd-types. - Added
useAdminHostResetLostSectorshook to@siafoundation/indexd-react. - Added
hostResetLostSectorsrequest handler to@siafoundation/indexd-js. - Added a changeset bumping the three packages (minor).
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| libs/indexd-types/src/admin/index.ts | Defines the new admin route constant and its request/response typing. |
| libs/indexd-react/src/admin.ts | Exposes a React usePostFunc hook for the new reset endpoint. |
| libs/indexd-js/src/admin.ts | Exposes a JS client request handler for the new reset endpoint. |
| .changeset/plain-deer-throw.md | Documents the new API surface and bumps package versions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Merge activity
|

No description provided.