types.d.ts (1619B)
1 interface WeechatResponse<T> { 2 header: Header; 3 id: string; 4 objects: WeechatObject<T>[]; 5 } 6 7 type WeechatObjectTypeId = "hda" | "inf"; 8 9 interface WeechatObject<T> { 10 type: WeechatObjectTypeId; 11 content: T; 12 } 13 14 interface WeechatInfoList { 15 key: string; 16 value: string; 17 } 18 19 interface WeechatBuffer { 20 id: string; 21 pointers: string[]; 22 local_variables: Localvariables; 23 notify: number; 24 number: number; 25 full_name: string; 26 short_name: string; 27 title: string; 28 hidden: number; 29 type: number; 30 } 31 32 interface WeechatHotlist { 33 buffer: string; 34 count: number[]; 35 } 36 37 interface WeechatNicklist { 38 color: string; 39 group: number; 40 level: number; 41 name: string; 42 pointers: string[]; 43 prefix: string; 44 prefix_color: string; 45 visible: number; 46 _diff: number; 47 } 48 49 interface Hotlist extends WeechatHotlist { 50 message: number; 51 privmsg: number; 52 highlight: number; 53 sum: number; 54 } 55 56 interface Localvariables { 57 plugin: string; 58 name: string; 59 server?: string; 60 type?: string; 61 charset_modifier?: string; 62 channel?: string; 63 nick?: string; 64 script_input_cb?: string; 65 script_name?: string; 66 iset_filter?: string; 67 iset_search_mode?: string; 68 iset_search_value?: string; 69 script_close_cb?: string; 70 no_log?: string; 71 } 72 73 interface Header { 74 length: number; 75 compression: number; 76 } 77 78 interface WeechatLine { 79 pointers: string[]; 80 prefix_length: number; 81 prefix: string; 82 displayed: number; 83 message: string; 84 refresh_needed: number; 85 str_time: string; 86 date: string; 87 tags_count: number; 88 date_printed: string; 89 tags_array: string[]; 90 buffer: string; 91 highlight: number; 92 y: number; 93 }