improve errors for CEL input

This commit is contained in:
aecsocket
2026-08-12 08:12:44 +00:00
parent 7f59feeb98
commit 04d00c0ba0
10 changed files with 183 additions and 109 deletions
@@ -227,7 +227,7 @@ export class LabrinthTechReviewInternalModule extends AbstractModule {
public async updateGlobalIssueDetails(
data: Labrinth.TechReview.Internal.UpdateGlobalIssueRequest[],
): Promise<void> {
return this.client.request<void>('/moderation/tech-review/global-issue-detail', {
return this.client.request<void>('/moderation/tech-review/global-traces', {
api: 'labrinth',
version: 'internal',
method: 'POST',
@@ -239,7 +239,7 @@ export class LabrinthTechReviewInternalModule extends AbstractModule {
params: Labrinth.TechReview.Internal.SearchGlobalIssueDetailsRequest,
): Promise<Labrinth.TechReview.Internal.SearchGlobalIssueDetailsResponse> {
return this.client.request<Labrinth.TechReview.Internal.SearchGlobalIssueDetailsResponse>(
'/moderation/tech-review/global-issue-detail/search',
'/moderation/tech-review/global-traces/search',
{
api: 'labrinth',
version: 'internal',
@@ -253,7 +253,7 @@ export class LabrinthTechReviewInternalModule extends AbstractModule {
params: Labrinth.TechReview.Internal.GetGlobalIssueDetailRequest,
): Promise<Labrinth.TechReview.Internal.GetGlobalIssueDetailResponse> {
return this.client.request<Labrinth.TechReview.Internal.GetGlobalIssueDetailResponse>(
'/moderation/tech-review/global-issue-detail/local-traces',
'/moderation/tech-review/global-traces/local-traces',
{
api: 'labrinth',
version: 'internal',
+5
View File
@@ -38,6 +38,11 @@ export type ModrinthErrorResponse = {
*/
description: string
/**
* Structured details about the error
*/
details?: unknown
/**
* Optional context about where the error occurred
*/