mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-14 06:25:35 +08:00
125 lines
2.2 KiB
TypeScript
125 lines
2.2 KiB
TypeScript
|
declare module 'solid-js' {
|
||
|
namespace JSX {
|
||
|
interface Directives {
|
||
|
form: {}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export type Proxy = {
|
||
|
name: string
|
||
|
type: string
|
||
|
all?: string[]
|
||
|
extra: Record<string, unknown>
|
||
|
history: {
|
||
|
time: string
|
||
|
delay: number
|
||
|
}[]
|
||
|
udp: boolean
|
||
|
xudp: boolean
|
||
|
tfo: boolean
|
||
|
now: string
|
||
|
}
|
||
|
|
||
|
export type ProxyProvider = {
|
||
|
name: string
|
||
|
proxies: {
|
||
|
alive: boolean
|
||
|
type: string
|
||
|
name: string
|
||
|
tfo: boolean
|
||
|
udp: boolean
|
||
|
xudp: boolean
|
||
|
id: string
|
||
|
extra: Record<string, unknown>
|
||
|
history: {
|
||
|
time: string
|
||
|
delay: number
|
||
|
}[]
|
||
|
}[]
|
||
|
testUrl: string
|
||
|
updatedAt: string
|
||
|
vehicleType: string
|
||
|
}
|
||
|
|
||
|
export type RuleProvider = {
|
||
|
behavior: string
|
||
|
format: string
|
||
|
name: string
|
||
|
ruleCount: number
|
||
|
type: string
|
||
|
updatedAt: string
|
||
|
vehicleType: string
|
||
|
}
|
||
|
|
||
|
export type Connection = {
|
||
|
id: string
|
||
|
download: number
|
||
|
upload: number
|
||
|
chains: string[]
|
||
|
rule: string
|
||
|
rulePayload: string
|
||
|
start: string
|
||
|
metadata: {
|
||
|
network: string
|
||
|
type: string
|
||
|
destinationIP: string
|
||
|
destinationPort: string
|
||
|
dnsMode: string
|
||
|
host: string
|
||
|
inboundIP: string
|
||
|
inboundName: string
|
||
|
inboundPort: string
|
||
|
inboundUser: string
|
||
|
process: string
|
||
|
processPath: string
|
||
|
remoteDestination: string
|
||
|
sniffHost: string
|
||
|
sourceIP: string
|
||
|
sourcePort: string
|
||
|
specialProxy: string
|
||
|
specialRules: string
|
||
|
uid: number
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export type Config = {
|
||
|
port: number
|
||
|
'socks-port': number
|
||
|
'redir-port': number
|
||
|
'tproxy-port': number
|
||
|
'mixed-port': number
|
||
|
tun: {
|
||
|
enable: boolean
|
||
|
device: string
|
||
|
stack: string
|
||
|
'dns-hijack': null
|
||
|
'auto-route': boolean
|
||
|
'auto-detect-interface': boolean
|
||
|
'file-descriptor': number
|
||
|
}
|
||
|
'tuic-server': {
|
||
|
enable: boolean
|
||
|
listen: string
|
||
|
certificate: string
|
||
|
'private-key': string
|
||
|
}
|
||
|
'ss-config': string
|
||
|
'vmess-config': string
|
||
|
authentication: null
|
||
|
'allow-lan': boolean
|
||
|
'bind-address': string
|
||
|
'inbound-tfo': boolean
|
||
|
mode: 'rule' | 'global'
|
||
|
UnifiedDelay: boolean
|
||
|
'log-level': string
|
||
|
ipv6: boolean
|
||
|
'interface-name': string
|
||
|
'geodata-mode': boolean
|
||
|
'geodata-loader': string
|
||
|
'tcp-concurrent': boolean
|
||
|
'find-process-mode': string
|
||
|
sniffing: boolean
|
||
|
'global-client-fingerprint': boolean
|
||
|
}
|