chore: move sdk to packages (#28350)

This commit is contained in:
Jason Rasmussen 2026-05-11 13:37:10 -04:00 committed by GitHub
parent b4f719653f
commit 7837d40f57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 37 additions and 44 deletions

View file

@ -0,0 +1,22 @@
import { HttpError } from '@oazapfts/runtime';
export interface ApiValidationError {
code: string;
path: (string | number)[];
message: string;
}
export interface ApiExceptionResponse {
message: string;
error?: string;
statusCode: number;
errors?: ApiValidationError[];
}
export interface ApiHttpError extends HttpError {
data: ApiExceptionResponse;
}
export function isHttpError(error: unknown): error is ApiHttpError {
return error instanceof HttpError;
}