mirror of
https://github.com/Onewon/claude-code.git
synced 2026-04-26 23:01:23 +03:00
Add all the original files from the deleted 0.2.8 npm package
This commit is contained in:
42
vendor/sdk/resources/shared.d.ts
vendored
Normal file
42
vendor/sdk/resources/shared.d.ts
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
export interface APIErrorObject {
|
||||
message: string;
|
||||
type: 'api_error';
|
||||
}
|
||||
export interface AuthenticationError {
|
||||
message: string;
|
||||
type: 'authentication_error';
|
||||
}
|
||||
export interface BillingError {
|
||||
message: string;
|
||||
type: 'billing_error';
|
||||
}
|
||||
export type ErrorObject = InvalidRequestError | AuthenticationError | BillingError | PermissionError | NotFoundError | RateLimitError | GatewayTimeoutError | APIErrorObject | OverloadedError;
|
||||
export interface ErrorResponse {
|
||||
error: ErrorObject;
|
||||
type: 'error';
|
||||
}
|
||||
export interface GatewayTimeoutError {
|
||||
message: string;
|
||||
type: 'timeout_error';
|
||||
}
|
||||
export interface InvalidRequestError {
|
||||
message: string;
|
||||
type: 'invalid_request_error';
|
||||
}
|
||||
export interface NotFoundError {
|
||||
message: string;
|
||||
type: 'not_found_error';
|
||||
}
|
||||
export interface OverloadedError {
|
||||
message: string;
|
||||
type: 'overloaded_error';
|
||||
}
|
||||
export interface PermissionError {
|
||||
message: string;
|
||||
type: 'permission_error';
|
||||
}
|
||||
export interface RateLimitError {
|
||||
message: string;
|
||||
type: 'rate_limit_error';
|
||||
}
|
||||
//# sourceMappingURL=shared.d.ts.map
|
||||
Reference in New Issue
Block a user