mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 03:55:59 +00:00
improve errors for CEL input
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -38,6 +38,11 @@ export type ModrinthErrorResponse = {
|
||||
*/
|
||||
description: string
|
||||
|
||||
/**
|
||||
* Structured details about the error
|
||||
*/
|
||||
details?: unknown
|
||||
|
||||
/**
|
||||
* Optional context about where the error occurred
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user