mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-04-29 15:37:50 +00:00
26 lines
509 B
TypeScript
26 lines
509 B
TypeScript
import { Request } from ".";
|
|
|
|
export interface BaseRequest {
|
|
id: number | string
|
|
command: string
|
|
api_version?: number
|
|
}
|
|
|
|
interface Warning {
|
|
id: number
|
|
message: string
|
|
details?: {[key: string]: string}
|
|
}
|
|
|
|
export interface BaseResponse {
|
|
id: number | string
|
|
status: "success" | "error" | string
|
|
type: "response" | string
|
|
result: any
|
|
warning?: "load"
|
|
warnings?: Warning[]
|
|
forwarded?: boolean
|
|
error?: string
|
|
request?: Request
|
|
api_version?: number
|
|
} |