@acidify/core 0.3.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/acidify-acidify-core.d.ts +1714 -0
- package/dist/acidify-acidify-core.js +132032 -0
- package/package.json +23 -0
|
@@ -0,0 +1,1714 @@
|
|
|
1
|
+
type Nullable<T> = T | null | undefined
|
|
2
|
+
declare function KtSingleton<T>(): T & (abstract new() => any);
|
|
3
|
+
export declare interface KtList<E> /* extends Collection<E> */ {
|
|
4
|
+
asJsReadonlyArrayView(): ReadonlyArray<E>;
|
|
5
|
+
readonly __doNotUseOrImplementIt: {
|
|
6
|
+
readonly "kotlin.collections.KtList": unique symbol;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare abstract class KtList<E> {
|
|
10
|
+
static readonly getInstance: () => typeof KtList.$metadata$.type;
|
|
11
|
+
private constructor();
|
|
12
|
+
}
|
|
13
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
14
|
+
export declare namespace KtList.$metadata$ {
|
|
15
|
+
abstract class type<E> extends KtSingleton<constructor>() {
|
|
16
|
+
private constructor();
|
|
17
|
+
}
|
|
18
|
+
abstract class constructor {
|
|
19
|
+
fromJsArray<E>(array: ReadonlyArray<E>): KtList<E>;
|
|
20
|
+
private constructor();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export declare interface KtMap<K, V> {
|
|
24
|
+
asJsReadonlyMapView(): ReadonlyMap<K, V>;
|
|
25
|
+
readonly __doNotUseOrImplementIt: {
|
|
26
|
+
readonly "kotlin.collections.KtMap": unique symbol;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export declare abstract class KtMap<K, V> {
|
|
30
|
+
static readonly getInstance: () => typeof KtMap.$metadata$.type;
|
|
31
|
+
private constructor();
|
|
32
|
+
}
|
|
33
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
34
|
+
export declare namespace KtMap.$metadata$ {
|
|
35
|
+
abstract class type<K, V> extends KtSingleton<constructor>() {
|
|
36
|
+
private constructor();
|
|
37
|
+
}
|
|
38
|
+
abstract class constructor {
|
|
39
|
+
fromJsMap<K, V>(map: ReadonlyMap<K, V>): KtMap<K, V>;
|
|
40
|
+
private constructor();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
/** @deprecated */
|
|
44
|
+
export declare const initHook: { get(): any; };
|
|
45
|
+
export declare class AppInfo {
|
|
46
|
+
constructor(os: string, kernel: string, vendorOs: string, currentVersion: string, miscBitmap: number, ptVersion: string, ssoVersion: number, packageName: string, wtLoginSdk: string, appId: number, subAppId: number, appClientVersion: number, mainSigMap: number, subSigMap: number, ntLoginType: number);
|
|
47
|
+
get os(): string;
|
|
48
|
+
get kernel(): string;
|
|
49
|
+
get vendorOs(): string;
|
|
50
|
+
get currentVersion(): string;
|
|
51
|
+
get miscBitmap(): number;
|
|
52
|
+
get ptVersion(): string;
|
|
53
|
+
get ssoVersion(): number;
|
|
54
|
+
get packageName(): string;
|
|
55
|
+
get wtLoginSdk(): string;
|
|
56
|
+
get appId(): number;
|
|
57
|
+
get subAppId(): number;
|
|
58
|
+
get appClientVersion(): number;
|
|
59
|
+
get mainSigMap(): number;
|
|
60
|
+
get subSigMap(): number;
|
|
61
|
+
get ntLoginType(): number;
|
|
62
|
+
toJson(): string;
|
|
63
|
+
static fromJson(json: string): AppInfo;
|
|
64
|
+
}
|
|
65
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
66
|
+
export declare namespace AppInfo.$metadata$ {
|
|
67
|
+
const constructor: abstract new () => AppInfo;
|
|
68
|
+
}
|
|
69
|
+
export declare namespace AppInfo {
|
|
70
|
+
abstract class Bundled {
|
|
71
|
+
static readonly getInstance: () => typeof Bundled.$metadata$.type;
|
|
72
|
+
private constructor();
|
|
73
|
+
}
|
|
74
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
75
|
+
namespace Bundled.$metadata$ {
|
|
76
|
+
abstract class type extends KtSingleton<constructor>() {
|
|
77
|
+
private constructor();
|
|
78
|
+
}
|
|
79
|
+
abstract class constructor {
|
|
80
|
+
get Linux(): AppInfo;
|
|
81
|
+
private constructor();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
abstract class Companion {
|
|
85
|
+
static readonly getInstance: () => typeof Companion.$metadata$.type;
|
|
86
|
+
private constructor();
|
|
87
|
+
}
|
|
88
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
89
|
+
namespace Companion.$metadata$ {
|
|
90
|
+
abstract class type extends KtSingleton<constructor>() {
|
|
91
|
+
private constructor();
|
|
92
|
+
}
|
|
93
|
+
abstract class constructor {
|
|
94
|
+
private constructor();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
export declare class SessionStore {
|
|
99
|
+
constructor(uin: bigint, uid: string, a2: Int8Array, d2: Int8Array, d2Key: Int8Array, tgtgt: Int8Array, encryptedA1: Int8Array, noPicSig: Int8Array, qrSig: Int8Array, guid: Int8Array, deviceName: string);
|
|
100
|
+
get uin(): bigint;
|
|
101
|
+
set uin(value: bigint);
|
|
102
|
+
get uid(): string;
|
|
103
|
+
set uid(value: string);
|
|
104
|
+
get a2(): Int8Array;
|
|
105
|
+
set a2(value: Int8Array);
|
|
106
|
+
get d2(): Int8Array;
|
|
107
|
+
set d2(value: Int8Array);
|
|
108
|
+
get d2Key(): Int8Array;
|
|
109
|
+
set d2Key(value: Int8Array);
|
|
110
|
+
get tgtgt(): Int8Array;
|
|
111
|
+
set tgtgt(value: Int8Array);
|
|
112
|
+
get encryptedA1(): Int8Array;
|
|
113
|
+
set encryptedA1(value: Int8Array);
|
|
114
|
+
get noPicSig(): Int8Array;
|
|
115
|
+
set noPicSig(value: Int8Array);
|
|
116
|
+
get qrSig(): Int8Array;
|
|
117
|
+
set qrSig(value: Int8Array);
|
|
118
|
+
get guid(): Int8Array;
|
|
119
|
+
set guid(value: Int8Array);
|
|
120
|
+
get deviceName(): string;
|
|
121
|
+
clear(): void;
|
|
122
|
+
refreshDeviceGuid(): void;
|
|
123
|
+
toJson(): string;
|
|
124
|
+
static empty(): SessionStore;
|
|
125
|
+
static fromJson(json: string): SessionStore;
|
|
126
|
+
}
|
|
127
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
128
|
+
export declare namespace SessionStore.$metadata$ {
|
|
129
|
+
const constructor: abstract new () => SessionStore;
|
|
130
|
+
}
|
|
131
|
+
export declare namespace SessionStore {
|
|
132
|
+
abstract class Companion {
|
|
133
|
+
static readonly getInstance: () => typeof Companion.$metadata$.type;
|
|
134
|
+
private constructor();
|
|
135
|
+
}
|
|
136
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
137
|
+
namespace Companion.$metadata$ {
|
|
138
|
+
abstract class type extends KtSingleton<constructor>() {
|
|
139
|
+
private constructor();
|
|
140
|
+
}
|
|
141
|
+
abstract class constructor {
|
|
142
|
+
private constructor();
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
export declare class SignResult {
|
|
147
|
+
constructor(sign: Int8Array, token: Int8Array, extra: Int8Array);
|
|
148
|
+
get sign(): Int8Array;
|
|
149
|
+
get token(): Int8Array;
|
|
150
|
+
get extra(): Int8Array;
|
|
151
|
+
}
|
|
152
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
153
|
+
export declare namespace SignResult.$metadata$ {
|
|
154
|
+
const constructor: abstract new () => SignResult;
|
|
155
|
+
}
|
|
156
|
+
export declare class BotFriend /* extends AbstractEntity<BotFriendData> */ {
|
|
157
|
+
private constructor();
|
|
158
|
+
get uin(): bigint;
|
|
159
|
+
get uid(): string;
|
|
160
|
+
get nickname(): string;
|
|
161
|
+
get remark(): string;
|
|
162
|
+
get bio(): string;
|
|
163
|
+
get qid(): string;
|
|
164
|
+
get age(): number;
|
|
165
|
+
get gender(): UserInfoGender;
|
|
166
|
+
get categoryId(): number;
|
|
167
|
+
get categoryName(): string;
|
|
168
|
+
toString(): string;
|
|
169
|
+
}
|
|
170
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
171
|
+
export declare namespace BotFriend.$metadata$ {
|
|
172
|
+
const constructor: abstract new () => BotFriend;
|
|
173
|
+
}
|
|
174
|
+
export declare class BotGroup /* extends AbstractEntity<BotGroupData> */ {
|
|
175
|
+
private constructor();
|
|
176
|
+
get uin(): bigint;
|
|
177
|
+
get name(): string;
|
|
178
|
+
get memberCount(): number;
|
|
179
|
+
get capacity(): number;
|
|
180
|
+
getMembers$default(forceUpdate: boolean | undefined, $completion: any/* Continuation<KtList<BotGroupMember>> */): any;
|
|
181
|
+
getMember$default(uin: bigint, forceUpdate: boolean | undefined, $completion: any/* Continuation<Nullable<BotGroupMember>> */): Nullable<any>;
|
|
182
|
+
toString(): string;
|
|
183
|
+
}
|
|
184
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
185
|
+
export declare namespace BotGroup.$metadata$ {
|
|
186
|
+
const constructor: abstract new () => BotGroup;
|
|
187
|
+
}
|
|
188
|
+
export declare class BotGroupMember /* extends AbstractEntity<BotGroupMemberData> */ {
|
|
189
|
+
private constructor();
|
|
190
|
+
get group(): BotGroup;
|
|
191
|
+
get uin(): bigint;
|
|
192
|
+
get uid(): string;
|
|
193
|
+
get nickname(): string;
|
|
194
|
+
get card(): string;
|
|
195
|
+
get specialTitle(): string;
|
|
196
|
+
get level(): number;
|
|
197
|
+
get joinedAt(): bigint;
|
|
198
|
+
get lastSpokeAt(): bigint;
|
|
199
|
+
get mutedUntil(): Nullable<bigint>;
|
|
200
|
+
get role(): GroupMemberRole;
|
|
201
|
+
toString(): string;
|
|
202
|
+
}
|
|
203
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
204
|
+
export declare namespace BotGroupMember.$metadata$ {
|
|
205
|
+
const constructor: abstract new () => BotGroupMember;
|
|
206
|
+
}
|
|
207
|
+
export declare interface AcidifyEvent {
|
|
208
|
+
readonly __doNotUseOrImplementIt: {
|
|
209
|
+
readonly "org.ntqqrev.acidify.event.AcidifyEvent": unique symbol;
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
export declare class BotOfflineEvent implements AcidifyEvent {
|
|
213
|
+
constructor(reason: string);
|
|
214
|
+
get reason(): string;
|
|
215
|
+
readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
|
|
216
|
+
}
|
|
217
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
218
|
+
export declare namespace BotOfflineEvent.$metadata$ {
|
|
219
|
+
const constructor: abstract new () => BotOfflineEvent;
|
|
220
|
+
}
|
|
221
|
+
export declare class FriendFileUploadEvent implements AcidifyEvent {
|
|
222
|
+
constructor(userUin: bigint, userUid: string, fileId: string, fileName: string, fileSize: bigint, fileHash: string, isSelf: boolean);
|
|
223
|
+
get userUin(): bigint;
|
|
224
|
+
get userUid(): string;
|
|
225
|
+
get fileId(): string;
|
|
226
|
+
get fileName(): string;
|
|
227
|
+
get fileSize(): bigint;
|
|
228
|
+
get fileHash(): string;
|
|
229
|
+
get isSelf(): boolean;
|
|
230
|
+
readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
|
|
231
|
+
}
|
|
232
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
233
|
+
export declare namespace FriendFileUploadEvent.$metadata$ {
|
|
234
|
+
const constructor: abstract new () => FriendFileUploadEvent;
|
|
235
|
+
}
|
|
236
|
+
export declare class FriendNudgeEvent implements AcidifyEvent {
|
|
237
|
+
constructor(userUin: bigint, userUid: string, isSelfSend: boolean, isSelfReceive: boolean, displayAction: string, displaySuffix: string, displayActionImgUrl: string);
|
|
238
|
+
get userUin(): bigint;
|
|
239
|
+
get userUid(): string;
|
|
240
|
+
get isSelfSend(): boolean;
|
|
241
|
+
get isSelfReceive(): boolean;
|
|
242
|
+
get displayAction(): string;
|
|
243
|
+
get displaySuffix(): string;
|
|
244
|
+
get displayActionImgUrl(): string;
|
|
245
|
+
readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
|
|
246
|
+
}
|
|
247
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
248
|
+
export declare namespace FriendNudgeEvent.$metadata$ {
|
|
249
|
+
const constructor: abstract new () => FriendNudgeEvent;
|
|
250
|
+
}
|
|
251
|
+
export declare class FriendRequestEvent implements AcidifyEvent {
|
|
252
|
+
constructor(initiatorUin: bigint, initiatorUid: string, comment: string, via: string);
|
|
253
|
+
get initiatorUin(): bigint;
|
|
254
|
+
get initiatorUid(): string;
|
|
255
|
+
get comment(): string;
|
|
256
|
+
get via(): string;
|
|
257
|
+
readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
|
|
258
|
+
}
|
|
259
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
260
|
+
export declare namespace FriendRequestEvent.$metadata$ {
|
|
261
|
+
const constructor: abstract new () => FriendRequestEvent;
|
|
262
|
+
}
|
|
263
|
+
export declare class GroupAdminChangeEvent implements AcidifyEvent {
|
|
264
|
+
constructor(groupUin: bigint, userUin: bigint, userUid: string, isSet: boolean);
|
|
265
|
+
get groupUin(): bigint;
|
|
266
|
+
get userUin(): bigint;
|
|
267
|
+
get userUid(): string;
|
|
268
|
+
get isSet(): boolean;
|
|
269
|
+
readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
|
|
270
|
+
}
|
|
271
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
272
|
+
export declare namespace GroupAdminChangeEvent.$metadata$ {
|
|
273
|
+
const constructor: abstract new () => GroupAdminChangeEvent;
|
|
274
|
+
}
|
|
275
|
+
export declare class GroupEssenceMessageChangeEvent implements AcidifyEvent {
|
|
276
|
+
constructor(groupUin: bigint, messageSeq: bigint, isSet: boolean);
|
|
277
|
+
get groupUin(): bigint;
|
|
278
|
+
get messageSeq(): bigint;
|
|
279
|
+
get isSet(): boolean;
|
|
280
|
+
readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
|
|
281
|
+
}
|
|
282
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
283
|
+
export declare namespace GroupEssenceMessageChangeEvent.$metadata$ {
|
|
284
|
+
const constructor: abstract new () => GroupEssenceMessageChangeEvent;
|
|
285
|
+
}
|
|
286
|
+
export declare class GroupFileUploadEvent implements AcidifyEvent {
|
|
287
|
+
constructor(groupUin: bigint, userUin: bigint, userUid: string, fileId: string, fileName: string, fileSize: bigint);
|
|
288
|
+
get groupUin(): bigint;
|
|
289
|
+
get userUin(): bigint;
|
|
290
|
+
get userUid(): string;
|
|
291
|
+
get fileId(): string;
|
|
292
|
+
get fileName(): string;
|
|
293
|
+
get fileSize(): bigint;
|
|
294
|
+
readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
|
|
295
|
+
}
|
|
296
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
297
|
+
export declare namespace GroupFileUploadEvent.$metadata$ {
|
|
298
|
+
const constructor: abstract new () => GroupFileUploadEvent;
|
|
299
|
+
}
|
|
300
|
+
export declare class GroupInvitationEvent implements AcidifyEvent {
|
|
301
|
+
constructor(groupUin: bigint, invitationSeq: bigint, initiatorUin: bigint, initiatorUid: string);
|
|
302
|
+
get groupUin(): bigint;
|
|
303
|
+
get invitationSeq(): bigint;
|
|
304
|
+
get initiatorUin(): bigint;
|
|
305
|
+
get initiatorUid(): string;
|
|
306
|
+
readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
|
|
307
|
+
}
|
|
308
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
309
|
+
export declare namespace GroupInvitationEvent.$metadata$ {
|
|
310
|
+
const constructor: abstract new () => GroupInvitationEvent;
|
|
311
|
+
}
|
|
312
|
+
export declare class GroupInvitedJoinRequestEvent implements AcidifyEvent {
|
|
313
|
+
constructor(groupUin: bigint, notificationSeq: bigint, initiatorUin: bigint, initiatorUid: string, targetUserUin: bigint, targetUserUid: string);
|
|
314
|
+
get groupUin(): bigint;
|
|
315
|
+
get notificationSeq(): bigint;
|
|
316
|
+
get initiatorUin(): bigint;
|
|
317
|
+
get initiatorUid(): string;
|
|
318
|
+
get targetUserUin(): bigint;
|
|
319
|
+
get targetUserUid(): string;
|
|
320
|
+
readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
|
|
321
|
+
}
|
|
322
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
323
|
+
export declare namespace GroupInvitedJoinRequestEvent.$metadata$ {
|
|
324
|
+
const constructor: abstract new () => GroupInvitedJoinRequestEvent;
|
|
325
|
+
}
|
|
326
|
+
export declare class GroupJoinRequestEvent implements AcidifyEvent {
|
|
327
|
+
constructor(groupUin: bigint, notificationSeq: bigint, isFiltered: boolean, initiatorUin: bigint, initiatorUid: string, comment: string);
|
|
328
|
+
get groupUin(): bigint;
|
|
329
|
+
get notificationSeq(): bigint;
|
|
330
|
+
get isFiltered(): boolean;
|
|
331
|
+
get initiatorUin(): bigint;
|
|
332
|
+
get initiatorUid(): string;
|
|
333
|
+
get comment(): string;
|
|
334
|
+
readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
|
|
335
|
+
}
|
|
336
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
337
|
+
export declare namespace GroupJoinRequestEvent.$metadata$ {
|
|
338
|
+
const constructor: abstract new () => GroupJoinRequestEvent;
|
|
339
|
+
}
|
|
340
|
+
export declare class GroupMemberDecreaseEvent implements AcidifyEvent {
|
|
341
|
+
constructor(groupUin: bigint, userUin: bigint, userUid: string, operatorUin: Nullable<bigint>, operatorUid: Nullable<string>);
|
|
342
|
+
get groupUin(): bigint;
|
|
343
|
+
get userUin(): bigint;
|
|
344
|
+
get userUid(): string;
|
|
345
|
+
get operatorUin(): Nullable<bigint>;
|
|
346
|
+
get operatorUid(): Nullable<string>;
|
|
347
|
+
readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
|
|
348
|
+
}
|
|
349
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
350
|
+
export declare namespace GroupMemberDecreaseEvent.$metadata$ {
|
|
351
|
+
const constructor: abstract new () => GroupMemberDecreaseEvent;
|
|
352
|
+
}
|
|
353
|
+
export declare class GroupMemberIncreaseEvent implements AcidifyEvent {
|
|
354
|
+
constructor(groupUin: bigint, userUin: bigint, userUid: string, operatorUin: Nullable<bigint>, operatorUid: Nullable<string>, invitorUin: Nullable<bigint>, invitorUid: Nullable<string>);
|
|
355
|
+
get groupUin(): bigint;
|
|
356
|
+
get userUin(): bigint;
|
|
357
|
+
get userUid(): string;
|
|
358
|
+
get operatorUin(): Nullable<bigint>;
|
|
359
|
+
get operatorUid(): Nullable<string>;
|
|
360
|
+
get invitorUin(): Nullable<bigint>;
|
|
361
|
+
get invitorUid(): Nullable<string>;
|
|
362
|
+
readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
|
|
363
|
+
}
|
|
364
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
365
|
+
export declare namespace GroupMemberIncreaseEvent.$metadata$ {
|
|
366
|
+
const constructor: abstract new () => GroupMemberIncreaseEvent;
|
|
367
|
+
}
|
|
368
|
+
export declare class GroupMessageReactionEvent implements AcidifyEvent {
|
|
369
|
+
constructor(groupUin: bigint, userUin: bigint, userUid: string, messageSeq: bigint, faceId: string, isAdd: boolean);
|
|
370
|
+
get groupUin(): bigint;
|
|
371
|
+
get userUin(): bigint;
|
|
372
|
+
get userUid(): string;
|
|
373
|
+
get messageSeq(): bigint;
|
|
374
|
+
get faceId(): string;
|
|
375
|
+
get isAdd(): boolean;
|
|
376
|
+
readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
|
|
377
|
+
}
|
|
378
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
379
|
+
export declare namespace GroupMessageReactionEvent.$metadata$ {
|
|
380
|
+
const constructor: abstract new () => GroupMessageReactionEvent;
|
|
381
|
+
}
|
|
382
|
+
export declare class GroupMuteEvent implements AcidifyEvent {
|
|
383
|
+
constructor(groupUin: bigint, userUin: bigint, userUid: string, operatorUin: bigint, operatorUid: string, duration: number);
|
|
384
|
+
get groupUin(): bigint;
|
|
385
|
+
get userUin(): bigint;
|
|
386
|
+
get userUid(): string;
|
|
387
|
+
get operatorUin(): bigint;
|
|
388
|
+
get operatorUid(): string;
|
|
389
|
+
get duration(): number;
|
|
390
|
+
readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
|
|
391
|
+
}
|
|
392
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
393
|
+
export declare namespace GroupMuteEvent.$metadata$ {
|
|
394
|
+
const constructor: abstract new () => GroupMuteEvent;
|
|
395
|
+
}
|
|
396
|
+
export declare class GroupNameChangeEvent implements AcidifyEvent {
|
|
397
|
+
constructor(groupUin: bigint, newGroupName: string, operatorUin: bigint, operatorUid: string);
|
|
398
|
+
get groupUin(): bigint;
|
|
399
|
+
get newGroupName(): string;
|
|
400
|
+
get operatorUin(): bigint;
|
|
401
|
+
get operatorUid(): string;
|
|
402
|
+
readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
|
|
403
|
+
}
|
|
404
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
405
|
+
export declare namespace GroupNameChangeEvent.$metadata$ {
|
|
406
|
+
const constructor: abstract new () => GroupNameChangeEvent;
|
|
407
|
+
}
|
|
408
|
+
export declare class GroupNudgeEvent implements AcidifyEvent {
|
|
409
|
+
constructor(groupUin: bigint, senderUin: bigint, senderUid: string, receiverUin: bigint, receiverUid: string, displayAction: string, displaySuffix: string, displayActionImgUrl: string);
|
|
410
|
+
get groupUin(): bigint;
|
|
411
|
+
get senderUin(): bigint;
|
|
412
|
+
get senderUid(): string;
|
|
413
|
+
get receiverUin(): bigint;
|
|
414
|
+
get receiverUid(): string;
|
|
415
|
+
get displayAction(): string;
|
|
416
|
+
get displaySuffix(): string;
|
|
417
|
+
get displayActionImgUrl(): string;
|
|
418
|
+
readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
|
|
419
|
+
}
|
|
420
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
421
|
+
export declare namespace GroupNudgeEvent.$metadata$ {
|
|
422
|
+
const constructor: abstract new () => GroupNudgeEvent;
|
|
423
|
+
}
|
|
424
|
+
export declare class GroupWholeMuteEvent implements AcidifyEvent {
|
|
425
|
+
constructor(groupUin: bigint, operatorUin: bigint, operatorUid: string, isMute: boolean);
|
|
426
|
+
get groupUin(): bigint;
|
|
427
|
+
get operatorUin(): bigint;
|
|
428
|
+
get operatorUid(): string;
|
|
429
|
+
get isMute(): boolean;
|
|
430
|
+
readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
|
|
431
|
+
}
|
|
432
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
433
|
+
export declare namespace GroupWholeMuteEvent.$metadata$ {
|
|
434
|
+
const constructor: abstract new () => GroupWholeMuteEvent;
|
|
435
|
+
}
|
|
436
|
+
export declare class MessageRecallEvent implements AcidifyEvent {
|
|
437
|
+
constructor(scene: MessageScene, peerUin: bigint, messageSeq: bigint, senderUin: bigint, senderUid: string, operatorUin: bigint, operatorUid: string, displaySuffix: string);
|
|
438
|
+
get scene(): MessageScene;
|
|
439
|
+
get peerUin(): bigint;
|
|
440
|
+
get messageSeq(): bigint;
|
|
441
|
+
get senderUin(): bigint;
|
|
442
|
+
get senderUid(): string;
|
|
443
|
+
get operatorUin(): bigint;
|
|
444
|
+
get operatorUid(): string;
|
|
445
|
+
get displaySuffix(): string;
|
|
446
|
+
readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
|
|
447
|
+
}
|
|
448
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
449
|
+
export declare namespace MessageRecallEvent.$metadata$ {
|
|
450
|
+
const constructor: abstract new () => MessageRecallEvent;
|
|
451
|
+
}
|
|
452
|
+
export declare class MessageReceiveEvent implements AcidifyEvent {
|
|
453
|
+
constructor(message: BotIncomingMessage);
|
|
454
|
+
get message(): BotIncomingMessage;
|
|
455
|
+
readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
|
|
456
|
+
}
|
|
457
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
458
|
+
export declare namespace MessageReceiveEvent.$metadata$ {
|
|
459
|
+
const constructor: abstract new () => MessageReceiveEvent;
|
|
460
|
+
}
|
|
461
|
+
export declare class QRCodeGeneratedEvent implements AcidifyEvent {
|
|
462
|
+
constructor(url: string, png: Int8Array);
|
|
463
|
+
get url(): string;
|
|
464
|
+
get png(): Int8Array;
|
|
465
|
+
readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
|
|
466
|
+
}
|
|
467
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
468
|
+
export declare namespace QRCodeGeneratedEvent.$metadata$ {
|
|
469
|
+
const constructor: abstract new () => QRCodeGeneratedEvent;
|
|
470
|
+
}
|
|
471
|
+
export declare class QRCodeStateQueryEvent implements AcidifyEvent {
|
|
472
|
+
constructor(state: QRCodeState);
|
|
473
|
+
get state(): QRCodeState;
|
|
474
|
+
readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
|
|
475
|
+
}
|
|
476
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
477
|
+
export declare namespace QRCodeStateQueryEvent.$metadata$ {
|
|
478
|
+
const constructor: abstract new () => QRCodeStateQueryEvent;
|
|
479
|
+
}
|
|
480
|
+
export declare class SessionStoreUpdatedEvent implements AcidifyEvent {
|
|
481
|
+
constructor(sessionStore: SessionStore);
|
|
482
|
+
get sessionStore(): SessionStore;
|
|
483
|
+
readonly __doNotUseOrImplementIt: AcidifyEvent["__doNotUseOrImplementIt"];
|
|
484
|
+
}
|
|
485
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
486
|
+
export declare namespace SessionStoreUpdatedEvent.$metadata$ {
|
|
487
|
+
const constructor: abstract new () => SessionStoreUpdatedEvent;
|
|
488
|
+
}
|
|
489
|
+
export declare class BotOnlineException extends /* Exception */ Error {
|
|
490
|
+
constructor(systemMsg: string);
|
|
491
|
+
get systemMsg(): string;
|
|
492
|
+
}
|
|
493
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
494
|
+
export declare namespace BotOnlineException.$metadata$ {
|
|
495
|
+
const constructor: abstract new () => BotOnlineException;
|
|
496
|
+
}
|
|
497
|
+
export declare class MessageSendException extends /* Exception */ Error {
|
|
498
|
+
constructor(resultCode: number, errorMessage: string);
|
|
499
|
+
get resultCode(): number;
|
|
500
|
+
get errorMessage(): string;
|
|
501
|
+
}
|
|
502
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
503
|
+
export declare namespace MessageSendException.$metadata$ {
|
|
504
|
+
const constructor: abstract new () => MessageSendException;
|
|
505
|
+
}
|
|
506
|
+
export declare class OidbException extends /* Exception */ Error {
|
|
507
|
+
constructor(oidbCommand: number, oidbService: number, oidbResult: number, oidbErrorMsg: string);
|
|
508
|
+
get oidbCommand(): number;
|
|
509
|
+
get oidbService(): number;
|
|
510
|
+
get oidbResult(): number;
|
|
511
|
+
get oidbErrorMsg(): string;
|
|
512
|
+
}
|
|
513
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
514
|
+
export declare namespace OidbException.$metadata$ {
|
|
515
|
+
const constructor: abstract new () => OidbException;
|
|
516
|
+
}
|
|
517
|
+
export declare class ServiceException extends /* Exception */ Error {
|
|
518
|
+
constructor(cmd: string, retCode: number, extra: string);
|
|
519
|
+
get cmd(): string;
|
|
520
|
+
get retCode(): number;
|
|
521
|
+
get extra(): string;
|
|
522
|
+
}
|
|
523
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
524
|
+
export declare namespace ServiceException.$metadata$ {
|
|
525
|
+
const constructor: abstract new () => ServiceException;
|
|
526
|
+
}
|
|
527
|
+
export declare class WebApiException extends /* Exception */ Error {
|
|
528
|
+
constructor(msg: string, statusCode: number);
|
|
529
|
+
get statusCode(): number;
|
|
530
|
+
}
|
|
531
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
532
|
+
export declare namespace WebApiException.$metadata$ {
|
|
533
|
+
const constructor: abstract new () => WebApiException;
|
|
534
|
+
}
|
|
535
|
+
export declare class WtLoginException extends /* Exception */ Error {
|
|
536
|
+
constructor(code: number, tag: string, msg: string);
|
|
537
|
+
get code(): number;
|
|
538
|
+
get tag(): string;
|
|
539
|
+
get msg(): string;
|
|
540
|
+
}
|
|
541
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
542
|
+
export declare namespace WtLoginException.$metadata$ {
|
|
543
|
+
const constructor: abstract new () => WtLoginException;
|
|
544
|
+
}
|
|
545
|
+
export declare interface LogHandler {
|
|
546
|
+
handleLog(level: LogLevel, tag: string, message: string, throwable: Nullable<Error>): void;
|
|
547
|
+
readonly __doNotUseOrImplementIt: {
|
|
548
|
+
readonly "org.ntqqrev.acidify.logging.LogHandler": unique symbol;
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
export declare abstract class LogLevel {
|
|
552
|
+
private constructor();
|
|
553
|
+
static get VERBOSE(): LogLevel & {
|
|
554
|
+
get name(): "VERBOSE";
|
|
555
|
+
get ordinal(): 0;
|
|
556
|
+
};
|
|
557
|
+
static get DEBUG(): LogLevel & {
|
|
558
|
+
get name(): "DEBUG";
|
|
559
|
+
get ordinal(): 1;
|
|
560
|
+
};
|
|
561
|
+
static get INFO(): LogLevel & {
|
|
562
|
+
get name(): "INFO";
|
|
563
|
+
get ordinal(): 2;
|
|
564
|
+
};
|
|
565
|
+
static get WARN(): LogLevel & {
|
|
566
|
+
get name(): "WARN";
|
|
567
|
+
get ordinal(): 3;
|
|
568
|
+
};
|
|
569
|
+
static get ERROR(): LogLevel & {
|
|
570
|
+
get name(): "ERROR";
|
|
571
|
+
get ordinal(): 4;
|
|
572
|
+
};
|
|
573
|
+
get name(): "VERBOSE" | "DEBUG" | "INFO" | "WARN" | "ERROR";
|
|
574
|
+
get ordinal(): 0 | 1 | 2 | 3 | 4;
|
|
575
|
+
static values(): Array<LogLevel>;
|
|
576
|
+
static valueOf(value: string): LogLevel;
|
|
577
|
+
}
|
|
578
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
579
|
+
export declare namespace LogLevel.$metadata$ {
|
|
580
|
+
const constructor: abstract new () => LogLevel;
|
|
581
|
+
}
|
|
582
|
+
export declare function shortenPackageName(tag: string): string;
|
|
583
|
+
export declare abstract class NopLogHandler {
|
|
584
|
+
static readonly getInstance: () => typeof NopLogHandler.$metadata$.type;
|
|
585
|
+
private constructor();
|
|
586
|
+
}
|
|
587
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
588
|
+
export declare namespace NopLogHandler.$metadata$ {
|
|
589
|
+
abstract class type extends KtSingleton<constructor>() {
|
|
590
|
+
private constructor();
|
|
591
|
+
}
|
|
592
|
+
abstract class constructor implements LogHandler {
|
|
593
|
+
handleLog(level: LogLevel, tag: string, message: string, throwable: Nullable<Error>): void;
|
|
594
|
+
readonly __doNotUseOrImplementIt: LogHandler["__doNotUseOrImplementIt"];
|
|
595
|
+
private constructor();
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
export declare abstract class SimpleLogHandler {
|
|
599
|
+
static readonly getInstance: () => typeof SimpleLogHandler.$metadata$.type;
|
|
600
|
+
private constructor();
|
|
601
|
+
}
|
|
602
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
603
|
+
export declare namespace SimpleLogHandler.$metadata$ {
|
|
604
|
+
abstract class type extends KtSingleton<constructor>() {
|
|
605
|
+
private constructor();
|
|
606
|
+
}
|
|
607
|
+
abstract class constructor implements LogHandler {
|
|
608
|
+
handleLog(level: LogLevel, tag: string, message: string, throwable: Nullable<Error>): void;
|
|
609
|
+
readonly __doNotUseOrImplementIt: LogHandler["__doNotUseOrImplementIt"];
|
|
610
|
+
private constructor();
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
export declare class BotEssenceMessage {
|
|
614
|
+
constructor(groupUin: bigint, messageSeq: bigint, messageTime: bigint, senderUin: bigint, senderName: string, operatorUin: bigint, operatorName: string, operationTime: bigint, segments: KtList<BotEssenceSegment>);
|
|
615
|
+
get groupUin(): bigint;
|
|
616
|
+
get messageSeq(): bigint;
|
|
617
|
+
get messageTime(): bigint;
|
|
618
|
+
get senderUin(): bigint;
|
|
619
|
+
get senderName(): string;
|
|
620
|
+
get operatorUin(): bigint;
|
|
621
|
+
get operatorName(): string;
|
|
622
|
+
get operationTime(): bigint;
|
|
623
|
+
get segments(): KtList<BotEssenceSegment>;
|
|
624
|
+
}
|
|
625
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
626
|
+
export declare namespace BotEssenceMessage.$metadata$ {
|
|
627
|
+
const constructor: abstract new () => BotEssenceMessage;
|
|
628
|
+
}
|
|
629
|
+
export declare namespace BotEssenceMessage {
|
|
630
|
+
abstract class Companion {
|
|
631
|
+
static readonly getInstance: () => typeof Companion.$metadata$.type;
|
|
632
|
+
private constructor();
|
|
633
|
+
}
|
|
634
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
635
|
+
namespace Companion.$metadata$ {
|
|
636
|
+
abstract class type extends KtSingleton<constructor>() {
|
|
637
|
+
private constructor();
|
|
638
|
+
}
|
|
639
|
+
abstract class constructor {
|
|
640
|
+
private constructor();
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
export declare class BotEssenceMessageResult {
|
|
645
|
+
constructor(messages: KtList<BotEssenceMessage>, isEnd: boolean);
|
|
646
|
+
get messages(): KtList<BotEssenceMessage>;
|
|
647
|
+
get isEnd(): boolean;
|
|
648
|
+
}
|
|
649
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
650
|
+
export declare namespace BotEssenceMessageResult.$metadata$ {
|
|
651
|
+
const constructor: abstract new () => BotEssenceMessageResult;
|
|
652
|
+
}
|
|
653
|
+
export declare abstract class BotEssenceSegment {
|
|
654
|
+
protected constructor();
|
|
655
|
+
}
|
|
656
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
657
|
+
export declare namespace BotEssenceSegment.$metadata$ {
|
|
658
|
+
const constructor: abstract new () => BotEssenceSegment;
|
|
659
|
+
}
|
|
660
|
+
export declare namespace BotEssenceSegment {
|
|
661
|
+
class Text extends BotEssenceSegment.$metadata$.constructor {
|
|
662
|
+
constructor(text: string);
|
|
663
|
+
get text(): string;
|
|
664
|
+
toString(): string;
|
|
665
|
+
copy(text?: string): BotEssenceSegment.Text;
|
|
666
|
+
hashCode(): number;
|
|
667
|
+
equals(other: Nullable<any>): boolean;
|
|
668
|
+
}
|
|
669
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
670
|
+
namespace Text.$metadata$ {
|
|
671
|
+
const constructor: abstract new () => Text;
|
|
672
|
+
}
|
|
673
|
+
class Face extends BotEssenceSegment.$metadata$.constructor {
|
|
674
|
+
constructor(faceId: number);
|
|
675
|
+
get faceId(): number;
|
|
676
|
+
toString(): string;
|
|
677
|
+
copy(faceId?: number): BotEssenceSegment.Face;
|
|
678
|
+
hashCode(): number;
|
|
679
|
+
equals(other: Nullable<any>): boolean;
|
|
680
|
+
}
|
|
681
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
682
|
+
namespace Face.$metadata$ {
|
|
683
|
+
const constructor: abstract new () => Face;
|
|
684
|
+
}
|
|
685
|
+
class Image extends BotEssenceSegment.$metadata$.constructor {
|
|
686
|
+
constructor(imageUrl: string);
|
|
687
|
+
get imageUrl(): string;
|
|
688
|
+
toString(): string;
|
|
689
|
+
copy(imageUrl?: string): BotEssenceSegment.Image;
|
|
690
|
+
hashCode(): number;
|
|
691
|
+
equals(other: Nullable<any>): boolean;
|
|
692
|
+
}
|
|
693
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
694
|
+
namespace Image.$metadata$ {
|
|
695
|
+
const constructor: abstract new () => Image;
|
|
696
|
+
}
|
|
697
|
+
class Video extends BotEssenceSegment.$metadata$.constructor {
|
|
698
|
+
constructor(thumbnailUrl: string);
|
|
699
|
+
get thumbnailUrl(): string;
|
|
700
|
+
toString(): string;
|
|
701
|
+
copy(thumbnailUrl?: string): BotEssenceSegment.Video;
|
|
702
|
+
hashCode(): number;
|
|
703
|
+
equals(other: Nullable<any>): boolean;
|
|
704
|
+
}
|
|
705
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
706
|
+
namespace Video.$metadata$ {
|
|
707
|
+
const constructor: abstract new () => Video;
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
export declare class BotForwardedMessage {
|
|
711
|
+
constructor(senderName: string, avatarUrl: string, timestamp: bigint);
|
|
712
|
+
get senderName(): string;
|
|
713
|
+
get avatarUrl(): string;
|
|
714
|
+
get timestamp(): bigint;
|
|
715
|
+
get segments(): KtList<BotIncomingSegment>;
|
|
716
|
+
}
|
|
717
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
718
|
+
export declare namespace BotForwardedMessage.$metadata$ {
|
|
719
|
+
const constructor: abstract new () => BotForwardedMessage;
|
|
720
|
+
}
|
|
721
|
+
export declare namespace BotForwardedMessage {
|
|
722
|
+
abstract class Companion {
|
|
723
|
+
static readonly getInstance: () => typeof Companion.$metadata$.type;
|
|
724
|
+
private constructor();
|
|
725
|
+
}
|
|
726
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
727
|
+
namespace Companion.$metadata$ {
|
|
728
|
+
abstract class type extends KtSingleton<constructor>() {
|
|
729
|
+
private constructor();
|
|
730
|
+
}
|
|
731
|
+
abstract class constructor {
|
|
732
|
+
private constructor();
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
export declare class BotHistoryMessages {
|
|
737
|
+
constructor(messages: KtList<BotIncomingMessage>, nextStartSequence?: Nullable<bigint>);
|
|
738
|
+
get messages(): KtList<BotIncomingMessage>;
|
|
739
|
+
get nextStartSequence(): Nullable<bigint>;
|
|
740
|
+
}
|
|
741
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
742
|
+
export declare namespace BotHistoryMessages.$metadata$ {
|
|
743
|
+
const constructor: abstract new () => BotHistoryMessages;
|
|
744
|
+
}
|
|
745
|
+
export declare class BotIncomingMessage {
|
|
746
|
+
constructor(scene: MessageScene, peerUin: bigint, peerUid: string, sequence: bigint, timestamp: bigint, senderUin: bigint, senderUid: string, clientSequence: bigint, random: number, messageUid: bigint);
|
|
747
|
+
get scene(): MessageScene;
|
|
748
|
+
get peerUin(): bigint;
|
|
749
|
+
get peerUid(): string;
|
|
750
|
+
get sequence(): bigint;
|
|
751
|
+
get timestamp(): bigint;
|
|
752
|
+
get senderUin(): bigint;
|
|
753
|
+
get senderUid(): string;
|
|
754
|
+
get clientSequence(): bigint;
|
|
755
|
+
get random(): number;
|
|
756
|
+
get messageUid(): bigint;
|
|
757
|
+
get segments(): KtList<BotIncomingSegment>;
|
|
758
|
+
get extraInfo(): Nullable<BotIncomingMessage.ExtraInfo>;
|
|
759
|
+
set extraInfo(value: Nullable<BotIncomingMessage.ExtraInfo>);
|
|
760
|
+
}
|
|
761
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
762
|
+
export declare namespace BotIncomingMessage.$metadata$ {
|
|
763
|
+
const constructor: abstract new () => BotIncomingMessage;
|
|
764
|
+
}
|
|
765
|
+
export declare namespace BotIncomingMessage {
|
|
766
|
+
class ExtraInfo {
|
|
767
|
+
constructor(nick: string, groupCard: string, specialTitle: string);
|
|
768
|
+
get nick(): string;
|
|
769
|
+
get groupCard(): string;
|
|
770
|
+
get specialTitle(): string;
|
|
771
|
+
}
|
|
772
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
773
|
+
namespace ExtraInfo.$metadata$ {
|
|
774
|
+
const constructor: abstract new () => ExtraInfo;
|
|
775
|
+
}
|
|
776
|
+
abstract class Companion {
|
|
777
|
+
static readonly getInstance: () => typeof Companion.$metadata$.type;
|
|
778
|
+
private constructor();
|
|
779
|
+
}
|
|
780
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
781
|
+
namespace Companion.$metadata$ {
|
|
782
|
+
abstract class type extends KtSingleton<constructor>() {
|
|
783
|
+
private constructor();
|
|
784
|
+
}
|
|
785
|
+
abstract class constructor {
|
|
786
|
+
private constructor();
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
export declare abstract class BotIncomingSegment {
|
|
791
|
+
protected constructor();
|
|
792
|
+
}
|
|
793
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
794
|
+
export declare namespace BotIncomingSegment.$metadata$ {
|
|
795
|
+
const constructor: abstract new () => BotIncomingSegment;
|
|
796
|
+
}
|
|
797
|
+
export declare namespace BotIncomingSegment {
|
|
798
|
+
class Text extends BotIncomingSegment.$metadata$.constructor {
|
|
799
|
+
constructor(text: string);
|
|
800
|
+
get text(): string;
|
|
801
|
+
toString(): string;
|
|
802
|
+
}
|
|
803
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
804
|
+
namespace Text.$metadata$ {
|
|
805
|
+
const constructor: abstract new () => Text;
|
|
806
|
+
}
|
|
807
|
+
class Mention extends BotIncomingSegment.$metadata$.constructor {
|
|
808
|
+
constructor(uin: Nullable<bigint> | undefined, name: string);
|
|
809
|
+
get uin(): Nullable<bigint>;
|
|
810
|
+
get name(): string;
|
|
811
|
+
toString(): string;
|
|
812
|
+
}
|
|
813
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
814
|
+
namespace Mention.$metadata$ {
|
|
815
|
+
const constructor: abstract new () => Mention;
|
|
816
|
+
}
|
|
817
|
+
class Face extends BotIncomingSegment.$metadata$.constructor {
|
|
818
|
+
constructor(faceId: number, summary: string, isLarge: boolean);
|
|
819
|
+
get faceId(): number;
|
|
820
|
+
get summary(): string;
|
|
821
|
+
get isLarge(): boolean;
|
|
822
|
+
toString(): string;
|
|
823
|
+
}
|
|
824
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
825
|
+
namespace Face.$metadata$ {
|
|
826
|
+
const constructor: abstract new () => Face;
|
|
827
|
+
}
|
|
828
|
+
class Reply extends BotIncomingSegment.$metadata$.constructor {
|
|
829
|
+
constructor(sequence: bigint);
|
|
830
|
+
get sequence(): bigint;
|
|
831
|
+
toString(): string;
|
|
832
|
+
}
|
|
833
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
834
|
+
namespace Reply.$metadata$ {
|
|
835
|
+
const constructor: abstract new () => Reply;
|
|
836
|
+
}
|
|
837
|
+
class Image extends BotIncomingSegment.$metadata$.constructor {
|
|
838
|
+
constructor(fileId: string, width: number, height: number, subType: ImageSubType, summary: string);
|
|
839
|
+
get fileId(): string;
|
|
840
|
+
get width(): number;
|
|
841
|
+
get height(): number;
|
|
842
|
+
get subType(): ImageSubType;
|
|
843
|
+
get summary(): string;
|
|
844
|
+
toString(): string;
|
|
845
|
+
}
|
|
846
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
847
|
+
namespace Image.$metadata$ {
|
|
848
|
+
const constructor: abstract new () => Image;
|
|
849
|
+
}
|
|
850
|
+
class Record extends BotIncomingSegment.$metadata$.constructor {
|
|
851
|
+
constructor(fileId: string, duration: number);
|
|
852
|
+
get fileId(): string;
|
|
853
|
+
get duration(): number;
|
|
854
|
+
toString(): string;
|
|
855
|
+
}
|
|
856
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
857
|
+
namespace Record.$metadata$ {
|
|
858
|
+
const constructor: abstract new () => Record;
|
|
859
|
+
}
|
|
860
|
+
class Video extends BotIncomingSegment.$metadata$.constructor {
|
|
861
|
+
constructor(fileId: string, duration: number, width: number, height: number);
|
|
862
|
+
get fileId(): string;
|
|
863
|
+
get duration(): number;
|
|
864
|
+
get width(): number;
|
|
865
|
+
get height(): number;
|
|
866
|
+
toString(): string;
|
|
867
|
+
}
|
|
868
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
869
|
+
namespace Video.$metadata$ {
|
|
870
|
+
const constructor: abstract new () => Video;
|
|
871
|
+
}
|
|
872
|
+
class File extends BotIncomingSegment.$metadata$.constructor {
|
|
873
|
+
constructor(fileId: string, fileName: string, fileSize: bigint, fileHash?: Nullable<string>);
|
|
874
|
+
get fileId(): string;
|
|
875
|
+
get fileName(): string;
|
|
876
|
+
get fileSize(): bigint;
|
|
877
|
+
get fileHash(): Nullable<string>;
|
|
878
|
+
toString(): string;
|
|
879
|
+
}
|
|
880
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
881
|
+
namespace File.$metadata$ {
|
|
882
|
+
const constructor: abstract new () => File;
|
|
883
|
+
}
|
|
884
|
+
class Forward extends BotIncomingSegment.$metadata$.constructor {
|
|
885
|
+
constructor(resId: string);
|
|
886
|
+
get resId(): string;
|
|
887
|
+
toString(): string;
|
|
888
|
+
}
|
|
889
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
890
|
+
namespace Forward.$metadata$ {
|
|
891
|
+
const constructor: abstract new () => Forward;
|
|
892
|
+
}
|
|
893
|
+
class MarketFace extends BotIncomingSegment.$metadata$.constructor {
|
|
894
|
+
constructor(url: string, summary: string);
|
|
895
|
+
get url(): string;
|
|
896
|
+
get summary(): string;
|
|
897
|
+
toString(): string;
|
|
898
|
+
}
|
|
899
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
900
|
+
namespace MarketFace.$metadata$ {
|
|
901
|
+
const constructor: abstract new () => MarketFace;
|
|
902
|
+
}
|
|
903
|
+
class LightApp extends BotIncomingSegment.$metadata$.constructor {
|
|
904
|
+
constructor(appName: string, jsonPayload: string);
|
|
905
|
+
get appName(): string;
|
|
906
|
+
get jsonPayload(): string;
|
|
907
|
+
toString(): string;
|
|
908
|
+
}
|
|
909
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
910
|
+
namespace LightApp.$metadata$ {
|
|
911
|
+
const constructor: abstract new () => LightApp;
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
export declare class BotOutgoingMessageResult {
|
|
915
|
+
constructor(sequence: bigint, sendTime: bigint);
|
|
916
|
+
get sequence(): bigint;
|
|
917
|
+
get sendTime(): bigint;
|
|
918
|
+
}
|
|
919
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
920
|
+
export declare namespace BotOutgoingMessageResult.$metadata$ {
|
|
921
|
+
const constructor: abstract new () => BotOutgoingMessageResult;
|
|
922
|
+
}
|
|
923
|
+
export declare abstract class ImageFormat {
|
|
924
|
+
private constructor();
|
|
925
|
+
static get PNG(): ImageFormat & {
|
|
926
|
+
get name(): "PNG";
|
|
927
|
+
get ordinal(): 0;
|
|
928
|
+
};
|
|
929
|
+
static get GIF(): ImageFormat & {
|
|
930
|
+
get name(): "GIF";
|
|
931
|
+
get ordinal(): 1;
|
|
932
|
+
};
|
|
933
|
+
static get JPEG(): ImageFormat & {
|
|
934
|
+
get name(): "JPEG";
|
|
935
|
+
get ordinal(): 2;
|
|
936
|
+
};
|
|
937
|
+
static get BMP(): ImageFormat & {
|
|
938
|
+
get name(): "BMP";
|
|
939
|
+
get ordinal(): 3;
|
|
940
|
+
};
|
|
941
|
+
static get WEBP(): ImageFormat & {
|
|
942
|
+
get name(): "WEBP";
|
|
943
|
+
get ordinal(): 4;
|
|
944
|
+
};
|
|
945
|
+
static get TIFF(): ImageFormat & {
|
|
946
|
+
get name(): "TIFF";
|
|
947
|
+
get ordinal(): 5;
|
|
948
|
+
};
|
|
949
|
+
get name(): "PNG" | "GIF" | "JPEG" | "BMP" | "WEBP" | "TIFF";
|
|
950
|
+
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5;
|
|
951
|
+
get ext(): string;
|
|
952
|
+
get underlying(): number;
|
|
953
|
+
static values(): Array<ImageFormat>;
|
|
954
|
+
static valueOf(value: string): ImageFormat;
|
|
955
|
+
}
|
|
956
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
957
|
+
export declare namespace ImageFormat.$metadata$ {
|
|
958
|
+
const constructor: abstract new () => ImageFormat;
|
|
959
|
+
}
|
|
960
|
+
export declare namespace ImageFormat {
|
|
961
|
+
abstract class Companion {
|
|
962
|
+
static readonly getInstance: () => typeof Companion.$metadata$.type;
|
|
963
|
+
private constructor();
|
|
964
|
+
}
|
|
965
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
966
|
+
namespace Companion.$metadata$ {
|
|
967
|
+
abstract class type extends KtSingleton<constructor>() {
|
|
968
|
+
private constructor();
|
|
969
|
+
}
|
|
970
|
+
abstract class constructor {
|
|
971
|
+
fromExtension(ext: string): Nullable<ImageFormat>;
|
|
972
|
+
fromUnderlying(value: number): Nullable<ImageFormat>;
|
|
973
|
+
private constructor();
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
export declare abstract class ImageSubType {
|
|
978
|
+
private constructor();
|
|
979
|
+
static get NORMAL(): ImageSubType & {
|
|
980
|
+
get name(): "NORMAL";
|
|
981
|
+
get ordinal(): 0;
|
|
982
|
+
};
|
|
983
|
+
static get STICKER(): ImageSubType & {
|
|
984
|
+
get name(): "STICKER";
|
|
985
|
+
get ordinal(): 1;
|
|
986
|
+
};
|
|
987
|
+
get name(): "NORMAL" | "STICKER";
|
|
988
|
+
get ordinal(): 0 | 1;
|
|
989
|
+
get underlying(): number;
|
|
990
|
+
static values(): Array<ImageSubType>;
|
|
991
|
+
static valueOf(value: string): ImageSubType;
|
|
992
|
+
}
|
|
993
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
994
|
+
export declare namespace ImageSubType.$metadata$ {
|
|
995
|
+
const constructor: abstract new () => ImageSubType;
|
|
996
|
+
}
|
|
997
|
+
export declare abstract class MessageScene {
|
|
998
|
+
private constructor();
|
|
999
|
+
static get FRIEND(): MessageScene & {
|
|
1000
|
+
get name(): "FRIEND";
|
|
1001
|
+
get ordinal(): 0;
|
|
1002
|
+
};
|
|
1003
|
+
static get GROUP(): MessageScene & {
|
|
1004
|
+
get name(): "GROUP";
|
|
1005
|
+
get ordinal(): 1;
|
|
1006
|
+
};
|
|
1007
|
+
static get TEMP(): MessageScene & {
|
|
1008
|
+
get name(): "TEMP";
|
|
1009
|
+
get ordinal(): 2;
|
|
1010
|
+
};
|
|
1011
|
+
get name(): "FRIEND" | "GROUP" | "TEMP";
|
|
1012
|
+
get ordinal(): 0 | 1 | 2;
|
|
1013
|
+
static values(): Array<MessageScene>;
|
|
1014
|
+
static valueOf(value: string): MessageScene;
|
|
1015
|
+
}
|
|
1016
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1017
|
+
export declare namespace MessageScene.$metadata$ {
|
|
1018
|
+
const constructor: abstract new () => MessageScene;
|
|
1019
|
+
}
|
|
1020
|
+
export declare class BotFaceDetail {
|
|
1021
|
+
constructor(qSid: string, qDes: string, emCode: string, qCid: number, aniStickerType: number, aniStickerPackId: number, aniStickerId: number, url: string, emojiNameAlias: KtList<string>, aniStickerWidth: number, aniStickerHeight: number);
|
|
1022
|
+
get qSid(): string;
|
|
1023
|
+
get qDes(): string;
|
|
1024
|
+
get emCode(): string;
|
|
1025
|
+
get qCid(): number;
|
|
1026
|
+
get aniStickerType(): number;
|
|
1027
|
+
get aniStickerPackId(): number;
|
|
1028
|
+
get aniStickerId(): number;
|
|
1029
|
+
get url(): string;
|
|
1030
|
+
get emojiNameAlias(): KtList<string>;
|
|
1031
|
+
get aniStickerWidth(): number;
|
|
1032
|
+
get aniStickerHeight(): number;
|
|
1033
|
+
copy(qSid?: string, qDes?: string, emCode?: string, qCid?: number, aniStickerType?: number, aniStickerPackId?: number, aniStickerId?: number, url?: string, emojiNameAlias?: KtList<string>, aniStickerWidth?: number, aniStickerHeight?: number): BotFaceDetail;
|
|
1034
|
+
toString(): string;
|
|
1035
|
+
hashCode(): number;
|
|
1036
|
+
equals(other: Nullable<any>): boolean;
|
|
1037
|
+
}
|
|
1038
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1039
|
+
export declare namespace BotFaceDetail.$metadata$ {
|
|
1040
|
+
const constructor: abstract new () => BotFaceDetail;
|
|
1041
|
+
}
|
|
1042
|
+
export declare class BotFriendData {
|
|
1043
|
+
constructor(uin: bigint, uid: string, nickname: string, remark: string, bio: string, qid: string, age: number, gender: UserInfoGender, categoryId: number, categoryName: string);
|
|
1044
|
+
get uin(): bigint;
|
|
1045
|
+
get uid(): string;
|
|
1046
|
+
get nickname(): string;
|
|
1047
|
+
get remark(): string;
|
|
1048
|
+
get bio(): string;
|
|
1049
|
+
get qid(): string;
|
|
1050
|
+
get age(): number;
|
|
1051
|
+
get gender(): UserInfoGender;
|
|
1052
|
+
get categoryId(): number;
|
|
1053
|
+
get categoryName(): string;
|
|
1054
|
+
copy(uin?: bigint, uid?: string, nickname?: string, remark?: string, bio?: string, qid?: string, age?: number, gender?: UserInfoGender, categoryId?: number, categoryName?: string): BotFriendData;
|
|
1055
|
+
toString(): string;
|
|
1056
|
+
hashCode(): number;
|
|
1057
|
+
equals(other: Nullable<any>): boolean;
|
|
1058
|
+
}
|
|
1059
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1060
|
+
export declare namespace BotFriendData.$metadata$ {
|
|
1061
|
+
const constructor: abstract new () => BotFriendData;
|
|
1062
|
+
}
|
|
1063
|
+
export declare class BotFriendRequest {
|
|
1064
|
+
constructor(time: bigint, initiatorUin: bigint, initiatorUid: string, targetUserUin: bigint, targetUserUid: string, state: RequestState, comment: string, via: string, isFiltered: boolean);
|
|
1065
|
+
get time(): bigint;
|
|
1066
|
+
get initiatorUin(): bigint;
|
|
1067
|
+
get initiatorUid(): string;
|
|
1068
|
+
get targetUserUin(): bigint;
|
|
1069
|
+
get targetUserUid(): string;
|
|
1070
|
+
get state(): RequestState;
|
|
1071
|
+
get comment(): string;
|
|
1072
|
+
get via(): string;
|
|
1073
|
+
get isFiltered(): boolean;
|
|
1074
|
+
copy(time?: bigint, initiatorUin?: bigint, initiatorUid?: string, targetUserUin?: bigint, targetUserUid?: string, state?: RequestState, comment?: string, via?: string, isFiltered?: boolean): BotFriendRequest;
|
|
1075
|
+
toString(): string;
|
|
1076
|
+
hashCode(): number;
|
|
1077
|
+
equals(other: Nullable<any>): boolean;
|
|
1078
|
+
}
|
|
1079
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1080
|
+
export declare namespace BotFriendRequest.$metadata$ {
|
|
1081
|
+
const constructor: abstract new () => BotFriendRequest;
|
|
1082
|
+
}
|
|
1083
|
+
export declare namespace BotFriendRequest {
|
|
1084
|
+
abstract class Companion {
|
|
1085
|
+
static readonly getInstance: () => typeof Companion.$metadata$.type;
|
|
1086
|
+
private constructor();
|
|
1087
|
+
}
|
|
1088
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1089
|
+
namespace Companion.$metadata$ {
|
|
1090
|
+
abstract class type extends KtSingleton<constructor>() {
|
|
1091
|
+
private constructor();
|
|
1092
|
+
}
|
|
1093
|
+
abstract class constructor {
|
|
1094
|
+
private constructor();
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
export declare class BotGroupAnnouncement {
|
|
1099
|
+
constructor(groupUin: bigint, announcementId: string, senderId: bigint, time: bigint, content: string, imageUrl?: Nullable<string>);
|
|
1100
|
+
get groupUin(): bigint;
|
|
1101
|
+
get announcementId(): string;
|
|
1102
|
+
get senderId(): bigint;
|
|
1103
|
+
get time(): bigint;
|
|
1104
|
+
get content(): string;
|
|
1105
|
+
get imageUrl(): Nullable<string>;
|
|
1106
|
+
copy(groupUin?: bigint, announcementId?: string, senderId?: bigint, time?: bigint, content?: string, imageUrl?: Nullable<string>): BotGroupAnnouncement;
|
|
1107
|
+
toString(): string;
|
|
1108
|
+
hashCode(): number;
|
|
1109
|
+
equals(other: Nullable<any>): boolean;
|
|
1110
|
+
}
|
|
1111
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1112
|
+
export declare namespace BotGroupAnnouncement.$metadata$ {
|
|
1113
|
+
const constructor: abstract new () => BotGroupAnnouncement;
|
|
1114
|
+
}
|
|
1115
|
+
export declare class BotGroupData {
|
|
1116
|
+
constructor(uin: bigint, name: string, memberCount: number, capacity: number);
|
|
1117
|
+
get uin(): bigint;
|
|
1118
|
+
get name(): string;
|
|
1119
|
+
get memberCount(): number;
|
|
1120
|
+
get capacity(): number;
|
|
1121
|
+
copy(uin?: bigint, name?: string, memberCount?: number, capacity?: number): BotGroupData;
|
|
1122
|
+
toString(): string;
|
|
1123
|
+
hashCode(): number;
|
|
1124
|
+
equals(other: Nullable<any>): boolean;
|
|
1125
|
+
}
|
|
1126
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1127
|
+
export declare namespace BotGroupData.$metadata$ {
|
|
1128
|
+
const constructor: abstract new () => BotGroupData;
|
|
1129
|
+
}
|
|
1130
|
+
export declare class BotGroupFileEntry {
|
|
1131
|
+
constructor(fileId: string, fileName: string, parentFolderId: string, fileSize: bigint, expireTime: bigint, modifiedTime: bigint, uploaderUin: bigint, uploadedTime: bigint, downloadedTimes: number);
|
|
1132
|
+
get fileId(): string;
|
|
1133
|
+
get fileName(): string;
|
|
1134
|
+
get parentFolderId(): string;
|
|
1135
|
+
get fileSize(): bigint;
|
|
1136
|
+
get expireTime(): bigint;
|
|
1137
|
+
get modifiedTime(): bigint;
|
|
1138
|
+
get uploaderUin(): bigint;
|
|
1139
|
+
get uploadedTime(): bigint;
|
|
1140
|
+
get downloadedTimes(): number;
|
|
1141
|
+
copy(fileId?: string, fileName?: string, parentFolderId?: string, fileSize?: bigint, expireTime?: bigint, modifiedTime?: bigint, uploaderUin?: bigint, uploadedTime?: bigint, downloadedTimes?: number): BotGroupFileEntry;
|
|
1142
|
+
toString(): string;
|
|
1143
|
+
hashCode(): number;
|
|
1144
|
+
equals(other: Nullable<any>): boolean;
|
|
1145
|
+
}
|
|
1146
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1147
|
+
export declare namespace BotGroupFileEntry.$metadata$ {
|
|
1148
|
+
const constructor: abstract new () => BotGroupFileEntry;
|
|
1149
|
+
}
|
|
1150
|
+
export declare class BotGroupFileSystemList {
|
|
1151
|
+
constructor(files: KtList<BotGroupFileEntry>, folders: KtList<BotGroupFolderEntry>);
|
|
1152
|
+
get files(): KtList<BotGroupFileEntry>;
|
|
1153
|
+
get folders(): KtList<BotGroupFolderEntry>;
|
|
1154
|
+
copy(files?: KtList<BotGroupFileEntry>, folders?: KtList<BotGroupFolderEntry>): BotGroupFileSystemList;
|
|
1155
|
+
toString(): string;
|
|
1156
|
+
hashCode(): number;
|
|
1157
|
+
equals(other: Nullable<any>): boolean;
|
|
1158
|
+
}
|
|
1159
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1160
|
+
export declare namespace BotGroupFileSystemList.$metadata$ {
|
|
1161
|
+
const constructor: abstract new () => BotGroupFileSystemList;
|
|
1162
|
+
}
|
|
1163
|
+
export declare class BotGroupFolderEntry {
|
|
1164
|
+
constructor(folderId: string, parentFolderId: string, folderName: string, createTime: bigint, modifiedTime: bigint, creatorUin: bigint, totalFileCount: number);
|
|
1165
|
+
get folderId(): string;
|
|
1166
|
+
get parentFolderId(): string;
|
|
1167
|
+
get folderName(): string;
|
|
1168
|
+
get createTime(): bigint;
|
|
1169
|
+
get modifiedTime(): bigint;
|
|
1170
|
+
get creatorUin(): bigint;
|
|
1171
|
+
get totalFileCount(): number;
|
|
1172
|
+
copy(folderId?: string, parentFolderId?: string, folderName?: string, createTime?: bigint, modifiedTime?: bigint, creatorUin?: bigint, totalFileCount?: number): BotGroupFolderEntry;
|
|
1173
|
+
toString(): string;
|
|
1174
|
+
hashCode(): number;
|
|
1175
|
+
equals(other: Nullable<any>): boolean;
|
|
1176
|
+
}
|
|
1177
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1178
|
+
export declare namespace BotGroupFolderEntry.$metadata$ {
|
|
1179
|
+
const constructor: abstract new () => BotGroupFolderEntry;
|
|
1180
|
+
}
|
|
1181
|
+
export declare class BotGroupMemberData {
|
|
1182
|
+
constructor(uin: bigint, uid: string, nickname: string, card: string, specialTitle: string, level: number, joinedAt: bigint, lastSpokeAt: bigint, mutedUntil: Nullable<bigint> | undefined, role: GroupMemberRole);
|
|
1183
|
+
get uin(): bigint;
|
|
1184
|
+
get uid(): string;
|
|
1185
|
+
get nickname(): string;
|
|
1186
|
+
get card(): string;
|
|
1187
|
+
get specialTitle(): string;
|
|
1188
|
+
get level(): number;
|
|
1189
|
+
get joinedAt(): bigint;
|
|
1190
|
+
get lastSpokeAt(): bigint;
|
|
1191
|
+
get mutedUntil(): Nullable<bigint>;
|
|
1192
|
+
get role(): GroupMemberRole;
|
|
1193
|
+
copy(uin?: bigint, uid?: string, nickname?: string, card?: string, specialTitle?: string, level?: number, joinedAt?: bigint, lastSpokeAt?: bigint, mutedUntil?: Nullable<bigint>, role?: GroupMemberRole): BotGroupMemberData;
|
|
1194
|
+
toString(): string;
|
|
1195
|
+
hashCode(): number;
|
|
1196
|
+
equals(other: Nullable<any>): boolean;
|
|
1197
|
+
}
|
|
1198
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1199
|
+
export declare namespace BotGroupMemberData.$metadata$ {
|
|
1200
|
+
const constructor: abstract new () => BotGroupMemberData;
|
|
1201
|
+
}
|
|
1202
|
+
export declare abstract class BotGroupNotification {
|
|
1203
|
+
protected constructor();
|
|
1204
|
+
}
|
|
1205
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1206
|
+
export declare namespace BotGroupNotification.$metadata$ {
|
|
1207
|
+
const constructor: abstract new () => BotGroupNotification;
|
|
1208
|
+
}
|
|
1209
|
+
export declare namespace BotGroupNotification {
|
|
1210
|
+
class JoinRequest extends BotGroupNotification.$metadata$.constructor {
|
|
1211
|
+
constructor(groupUin: bigint, notificationSeq: bigint, isFiltered: boolean, initiatorUin: bigint, initiatorUid: string, state: RequestState, operatorUin: Nullable<bigint>, operatorUid: Nullable<string>, comment: string);
|
|
1212
|
+
get groupUin(): bigint;
|
|
1213
|
+
get notificationSeq(): bigint;
|
|
1214
|
+
get isFiltered(): boolean;
|
|
1215
|
+
get initiatorUin(): bigint;
|
|
1216
|
+
get initiatorUid(): string;
|
|
1217
|
+
get state(): RequestState;
|
|
1218
|
+
get operatorUin(): Nullable<bigint>;
|
|
1219
|
+
get operatorUid(): Nullable<string>;
|
|
1220
|
+
get comment(): string;
|
|
1221
|
+
copy(groupUin?: bigint, notificationSeq?: bigint, isFiltered?: boolean, initiatorUin?: bigint, initiatorUid?: string, state?: RequestState, operatorUin?: Nullable<bigint>, operatorUid?: Nullable<string>, comment?: string): BotGroupNotification.JoinRequest;
|
|
1222
|
+
toString(): string;
|
|
1223
|
+
hashCode(): number;
|
|
1224
|
+
equals(other: Nullable<any>): boolean;
|
|
1225
|
+
}
|
|
1226
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1227
|
+
namespace JoinRequest.$metadata$ {
|
|
1228
|
+
const constructor: abstract new () => JoinRequest;
|
|
1229
|
+
}
|
|
1230
|
+
class AdminChange extends BotGroupNotification.$metadata$.constructor {
|
|
1231
|
+
constructor(groupUin: bigint, notificationSeq: bigint, targetUserUin: bigint, targetUserUid: string, isSet: boolean, operatorUin: bigint, operatorUid: string);
|
|
1232
|
+
get groupUin(): bigint;
|
|
1233
|
+
get notificationSeq(): bigint;
|
|
1234
|
+
get targetUserUin(): bigint;
|
|
1235
|
+
get targetUserUid(): string;
|
|
1236
|
+
get isSet(): boolean;
|
|
1237
|
+
get operatorUin(): bigint;
|
|
1238
|
+
get operatorUid(): string;
|
|
1239
|
+
copy(groupUin?: bigint, notificationSeq?: bigint, targetUserUin?: bigint, targetUserUid?: string, isSet?: boolean, operatorUin?: bigint, operatorUid?: string): BotGroupNotification.AdminChange;
|
|
1240
|
+
toString(): string;
|
|
1241
|
+
hashCode(): number;
|
|
1242
|
+
equals(other: Nullable<any>): boolean;
|
|
1243
|
+
}
|
|
1244
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1245
|
+
namespace AdminChange.$metadata$ {
|
|
1246
|
+
const constructor: abstract new () => AdminChange;
|
|
1247
|
+
}
|
|
1248
|
+
class Kick extends BotGroupNotification.$metadata$.constructor {
|
|
1249
|
+
constructor(groupUin: bigint, notificationSeq: bigint, targetUserUin: bigint, targetUserUid: string, operatorUin: bigint, operatorUid: string);
|
|
1250
|
+
get groupUin(): bigint;
|
|
1251
|
+
get notificationSeq(): bigint;
|
|
1252
|
+
get targetUserUin(): bigint;
|
|
1253
|
+
get targetUserUid(): string;
|
|
1254
|
+
get operatorUin(): bigint;
|
|
1255
|
+
get operatorUid(): string;
|
|
1256
|
+
copy(groupUin?: bigint, notificationSeq?: bigint, targetUserUin?: bigint, targetUserUid?: string, operatorUin?: bigint, operatorUid?: string): BotGroupNotification.Kick;
|
|
1257
|
+
toString(): string;
|
|
1258
|
+
hashCode(): number;
|
|
1259
|
+
equals(other: Nullable<any>): boolean;
|
|
1260
|
+
}
|
|
1261
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1262
|
+
namespace Kick.$metadata$ {
|
|
1263
|
+
const constructor: abstract new () => Kick;
|
|
1264
|
+
}
|
|
1265
|
+
class Quit extends BotGroupNotification.$metadata$.constructor {
|
|
1266
|
+
constructor(groupUin: bigint, notificationSeq: bigint, targetUserUin: bigint, targetUserUid: string);
|
|
1267
|
+
get groupUin(): bigint;
|
|
1268
|
+
get notificationSeq(): bigint;
|
|
1269
|
+
get targetUserUin(): bigint;
|
|
1270
|
+
get targetUserUid(): string;
|
|
1271
|
+
copy(groupUin?: bigint, notificationSeq?: bigint, targetUserUin?: bigint, targetUserUid?: string): BotGroupNotification.Quit;
|
|
1272
|
+
toString(): string;
|
|
1273
|
+
hashCode(): number;
|
|
1274
|
+
equals(other: Nullable<any>): boolean;
|
|
1275
|
+
}
|
|
1276
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1277
|
+
namespace Quit.$metadata$ {
|
|
1278
|
+
const constructor: abstract new () => Quit;
|
|
1279
|
+
}
|
|
1280
|
+
class InvitedJoinRequest extends BotGroupNotification.$metadata$.constructor {
|
|
1281
|
+
constructor(groupUin: bigint, notificationSeq: bigint, initiatorUin: bigint, initiatorUid: string, targetUserUin: bigint, targetUserUid: string, state: RequestState, operatorUin: Nullable<bigint>, operatorUid: Nullable<string>);
|
|
1282
|
+
get groupUin(): bigint;
|
|
1283
|
+
get notificationSeq(): bigint;
|
|
1284
|
+
get initiatorUin(): bigint;
|
|
1285
|
+
get initiatorUid(): string;
|
|
1286
|
+
get targetUserUin(): bigint;
|
|
1287
|
+
get targetUserUid(): string;
|
|
1288
|
+
get state(): RequestState;
|
|
1289
|
+
get operatorUin(): Nullable<bigint>;
|
|
1290
|
+
get operatorUid(): Nullable<string>;
|
|
1291
|
+
copy(groupUin?: bigint, notificationSeq?: bigint, initiatorUin?: bigint, initiatorUid?: string, targetUserUin?: bigint, targetUserUid?: string, state?: RequestState, operatorUin?: Nullable<bigint>, operatorUid?: Nullable<string>): BotGroupNotification.InvitedJoinRequest;
|
|
1292
|
+
toString(): string;
|
|
1293
|
+
hashCode(): number;
|
|
1294
|
+
equals(other: Nullable<any>): boolean;
|
|
1295
|
+
}
|
|
1296
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1297
|
+
namespace InvitedJoinRequest.$metadata$ {
|
|
1298
|
+
const constructor: abstract new () => InvitedJoinRequest;
|
|
1299
|
+
}
|
|
1300
|
+
abstract class Companion {
|
|
1301
|
+
static readonly getInstance: () => typeof Companion.$metadata$.type;
|
|
1302
|
+
private constructor();
|
|
1303
|
+
}
|
|
1304
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1305
|
+
namespace Companion.$metadata$ {
|
|
1306
|
+
abstract class type extends KtSingleton<constructor>() {
|
|
1307
|
+
private constructor();
|
|
1308
|
+
}
|
|
1309
|
+
abstract class constructor {
|
|
1310
|
+
private constructor();
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
export declare class BotUserInfo {
|
|
1315
|
+
constructor(uin: bigint, nickname: string, bio: string, gender: UserInfoGender, remark: string, level: number, country: string, city: string, school: string, registerTime: bigint, age: number, qid: string);
|
|
1316
|
+
get uin(): bigint;
|
|
1317
|
+
get nickname(): string;
|
|
1318
|
+
get bio(): string;
|
|
1319
|
+
get gender(): UserInfoGender;
|
|
1320
|
+
get remark(): string;
|
|
1321
|
+
get level(): number;
|
|
1322
|
+
get country(): string;
|
|
1323
|
+
get city(): string;
|
|
1324
|
+
get school(): string;
|
|
1325
|
+
get registerTime(): bigint;
|
|
1326
|
+
get age(): number;
|
|
1327
|
+
get qid(): string;
|
|
1328
|
+
copy(uin?: bigint, nickname?: string, bio?: string, gender?: UserInfoGender, remark?: string, level?: number, country?: string, city?: string, school?: string, registerTime?: bigint, age?: number, qid?: string): BotUserInfo;
|
|
1329
|
+
toString(): string;
|
|
1330
|
+
hashCode(): number;
|
|
1331
|
+
equals(other: Nullable<any>): boolean;
|
|
1332
|
+
}
|
|
1333
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1334
|
+
export declare namespace BotUserInfo.$metadata$ {
|
|
1335
|
+
const constructor: abstract new () => BotUserInfo;
|
|
1336
|
+
}
|
|
1337
|
+
export declare abstract class GroupMemberRole {
|
|
1338
|
+
private constructor();
|
|
1339
|
+
static get MEMBER(): GroupMemberRole & {
|
|
1340
|
+
get name(): "MEMBER";
|
|
1341
|
+
get ordinal(): 0;
|
|
1342
|
+
};
|
|
1343
|
+
static get ADMIN(): GroupMemberRole & {
|
|
1344
|
+
get name(): "ADMIN";
|
|
1345
|
+
get ordinal(): 1;
|
|
1346
|
+
};
|
|
1347
|
+
static get OWNER(): GroupMemberRole & {
|
|
1348
|
+
get name(): "OWNER";
|
|
1349
|
+
get ordinal(): 2;
|
|
1350
|
+
};
|
|
1351
|
+
get name(): "MEMBER" | "ADMIN" | "OWNER";
|
|
1352
|
+
get ordinal(): 0 | 1 | 2;
|
|
1353
|
+
get value(): number;
|
|
1354
|
+
static values(): Array<GroupMemberRole>;
|
|
1355
|
+
static valueOf(value: string): GroupMemberRole;
|
|
1356
|
+
}
|
|
1357
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1358
|
+
export declare namespace GroupMemberRole.$metadata$ {
|
|
1359
|
+
const constructor: abstract new () => GroupMemberRole;
|
|
1360
|
+
}
|
|
1361
|
+
export declare namespace GroupMemberRole {
|
|
1362
|
+
abstract class Companion {
|
|
1363
|
+
static readonly getInstance: () => typeof Companion.$metadata$.type;
|
|
1364
|
+
private constructor();
|
|
1365
|
+
}
|
|
1366
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1367
|
+
namespace Companion.$metadata$ {
|
|
1368
|
+
abstract class type extends KtSingleton<constructor>() {
|
|
1369
|
+
private constructor();
|
|
1370
|
+
}
|
|
1371
|
+
abstract class constructor {
|
|
1372
|
+
from(value: number): GroupMemberRole;
|
|
1373
|
+
private constructor();
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
export declare abstract class QRCodeState {
|
|
1378
|
+
private constructor();
|
|
1379
|
+
static get UNKNOWN(): QRCodeState & {
|
|
1380
|
+
get name(): "UNKNOWN";
|
|
1381
|
+
get ordinal(): 0;
|
|
1382
|
+
};
|
|
1383
|
+
static get CONFIRMED(): QRCodeState & {
|
|
1384
|
+
get name(): "CONFIRMED";
|
|
1385
|
+
get ordinal(): 1;
|
|
1386
|
+
};
|
|
1387
|
+
static get CODE_EXPIRED(): QRCodeState & {
|
|
1388
|
+
get name(): "CODE_EXPIRED";
|
|
1389
|
+
get ordinal(): 2;
|
|
1390
|
+
};
|
|
1391
|
+
static get WAITING_FOR_SCAN(): QRCodeState & {
|
|
1392
|
+
get name(): "WAITING_FOR_SCAN";
|
|
1393
|
+
get ordinal(): 3;
|
|
1394
|
+
};
|
|
1395
|
+
static get WAITING_FOR_CONFIRMATION(): QRCodeState & {
|
|
1396
|
+
get name(): "WAITING_FOR_CONFIRMATION";
|
|
1397
|
+
get ordinal(): 4;
|
|
1398
|
+
};
|
|
1399
|
+
static get CANCELLED(): QRCodeState & {
|
|
1400
|
+
get name(): "CANCELLED";
|
|
1401
|
+
get ordinal(): 5;
|
|
1402
|
+
};
|
|
1403
|
+
get name(): "UNKNOWN" | "CONFIRMED" | "CODE_EXPIRED" | "WAITING_FOR_SCAN" | "WAITING_FOR_CONFIRMATION" | "CANCELLED";
|
|
1404
|
+
get ordinal(): 0 | 1 | 2 | 3 | 4 | 5;
|
|
1405
|
+
get value(): number;
|
|
1406
|
+
static values(): Array<QRCodeState>;
|
|
1407
|
+
static valueOf(value: string): QRCodeState;
|
|
1408
|
+
}
|
|
1409
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1410
|
+
export declare namespace QRCodeState.$metadata$ {
|
|
1411
|
+
const constructor: abstract new () => QRCodeState;
|
|
1412
|
+
}
|
|
1413
|
+
export declare namespace QRCodeState {
|
|
1414
|
+
abstract class Companion {
|
|
1415
|
+
static readonly getInstance: () => typeof Companion.$metadata$.type;
|
|
1416
|
+
private constructor();
|
|
1417
|
+
}
|
|
1418
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1419
|
+
namespace Companion.$metadata$ {
|
|
1420
|
+
abstract class type extends KtSingleton<constructor>() {
|
|
1421
|
+
private constructor();
|
|
1422
|
+
}
|
|
1423
|
+
abstract class constructor {
|
|
1424
|
+
private constructor();
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
export declare abstract class RequestState {
|
|
1429
|
+
private constructor();
|
|
1430
|
+
static get DEFAULT(): RequestState & {
|
|
1431
|
+
get name(): "DEFAULT";
|
|
1432
|
+
get ordinal(): 0;
|
|
1433
|
+
};
|
|
1434
|
+
static get PENDING(): RequestState & {
|
|
1435
|
+
get name(): "PENDING";
|
|
1436
|
+
get ordinal(): 1;
|
|
1437
|
+
};
|
|
1438
|
+
static get ACCEPTED(): RequestState & {
|
|
1439
|
+
get name(): "ACCEPTED";
|
|
1440
|
+
get ordinal(): 2;
|
|
1441
|
+
};
|
|
1442
|
+
static get REJECTED(): RequestState & {
|
|
1443
|
+
get name(): "REJECTED";
|
|
1444
|
+
get ordinal(): 3;
|
|
1445
|
+
};
|
|
1446
|
+
get name(): "DEFAULT" | "PENDING" | "ACCEPTED" | "REJECTED";
|
|
1447
|
+
get ordinal(): 0 | 1 | 2 | 3;
|
|
1448
|
+
get value(): number;
|
|
1449
|
+
static values(): Array<RequestState>;
|
|
1450
|
+
static valueOf(value: string): RequestState;
|
|
1451
|
+
}
|
|
1452
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1453
|
+
export declare namespace RequestState.$metadata$ {
|
|
1454
|
+
const constructor: abstract new () => RequestState;
|
|
1455
|
+
}
|
|
1456
|
+
export declare namespace RequestState {
|
|
1457
|
+
abstract class Companion {
|
|
1458
|
+
static readonly getInstance: () => typeof Companion.$metadata$.type;
|
|
1459
|
+
private constructor();
|
|
1460
|
+
}
|
|
1461
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1462
|
+
namespace Companion.$metadata$ {
|
|
1463
|
+
abstract class type extends KtSingleton<constructor>() {
|
|
1464
|
+
private constructor();
|
|
1465
|
+
}
|
|
1466
|
+
abstract class constructor {
|
|
1467
|
+
from(value: number): RequestState;
|
|
1468
|
+
private constructor();
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
export declare abstract class UserInfoGender {
|
|
1473
|
+
private constructor();
|
|
1474
|
+
static get UNSET(): UserInfoGender & {
|
|
1475
|
+
get name(): "UNSET";
|
|
1476
|
+
get ordinal(): 0;
|
|
1477
|
+
};
|
|
1478
|
+
static get MALE(): UserInfoGender & {
|
|
1479
|
+
get name(): "MALE";
|
|
1480
|
+
get ordinal(): 1;
|
|
1481
|
+
};
|
|
1482
|
+
static get FEMALE(): UserInfoGender & {
|
|
1483
|
+
get name(): "FEMALE";
|
|
1484
|
+
get ordinal(): 2;
|
|
1485
|
+
};
|
|
1486
|
+
static get UNKNOWN(): UserInfoGender & {
|
|
1487
|
+
get name(): "UNKNOWN";
|
|
1488
|
+
get ordinal(): 3;
|
|
1489
|
+
};
|
|
1490
|
+
get name(): "UNSET" | "MALE" | "FEMALE" | "UNKNOWN";
|
|
1491
|
+
get ordinal(): 0 | 1 | 2 | 3;
|
|
1492
|
+
get value(): number;
|
|
1493
|
+
static values(): Array<UserInfoGender>;
|
|
1494
|
+
static valueOf(value: string): UserInfoGender;
|
|
1495
|
+
}
|
|
1496
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1497
|
+
export declare namespace UserInfoGender.$metadata$ {
|
|
1498
|
+
const constructor: abstract new () => UserInfoGender;
|
|
1499
|
+
}
|
|
1500
|
+
export declare namespace UserInfoGender {
|
|
1501
|
+
abstract class Companion {
|
|
1502
|
+
static readonly getInstance: () => typeof Companion.$metadata$.type;
|
|
1503
|
+
private constructor();
|
|
1504
|
+
}
|
|
1505
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1506
|
+
namespace Companion.$metadata$ {
|
|
1507
|
+
abstract class type extends KtSingleton<constructor>() {
|
|
1508
|
+
private constructor();
|
|
1509
|
+
}
|
|
1510
|
+
abstract class constructor {
|
|
1511
|
+
from(value: number): UserInfoGender;
|
|
1512
|
+
private constructor();
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
export declare class Bot /* implements CoroutineScope */ {
|
|
1517
|
+
private constructor();
|
|
1518
|
+
get uin(): bigint;
|
|
1519
|
+
get uid(): string;
|
|
1520
|
+
get isLoggedIn(): boolean;
|
|
1521
|
+
qrCodeLogin(queryInterval?: bigint): Promise<void>;
|
|
1522
|
+
online(): Promise<void>;
|
|
1523
|
+
offline(): Promise<void>;
|
|
1524
|
+
tryLogin(): Promise<void>;
|
|
1525
|
+
fetchUserInfoByUin(uin: bigint): Promise<BotUserInfo>;
|
|
1526
|
+
fetchUserInfoByUid(uid: string): Promise<BotUserInfo>;
|
|
1527
|
+
fetchFriends(): Promise<Array<BotFriendData>>;
|
|
1528
|
+
fetchGroups(): Promise<Array<BotGroupData>>;
|
|
1529
|
+
fetchGroupMembers(groupUin: bigint): Promise<Array<BotGroupMemberData>>;
|
|
1530
|
+
getFriends(forceUpdate?: boolean): Promise<Array<BotFriend>>;
|
|
1531
|
+
getFriend(uin: bigint, forceUpdate?: boolean): Promise<Nullable<BotFriend>>;
|
|
1532
|
+
getGroups(forceUpdate?: boolean): Promise<Array<BotGroup>>;
|
|
1533
|
+
getGroup(uin: bigint, forceUpdate?: boolean): Promise<Nullable<BotGroup>>;
|
|
1534
|
+
getGroupMembers(groupUin: bigint, forceUpdate?: boolean): Promise<Nullable<Array<BotGroupMember>>>;
|
|
1535
|
+
getGroupMember(groupUin: bigint, memberUin: bigint, forceUpdate?: boolean): Promise<Nullable<BotGroupMember>>;
|
|
1536
|
+
getUinByUid(uid: string): Promise<bigint>;
|
|
1537
|
+
getUidByUin(uin: bigint, mayComeFromGroupUin?: Nullable<bigint>): Promise<string>;
|
|
1538
|
+
getSKey(): Promise<string>;
|
|
1539
|
+
getPSKey(domain: string): Promise<string>;
|
|
1540
|
+
getCookies(domain: string): Promise<KtMap<string, string>>;
|
|
1541
|
+
getCsrfToken(): Promise<number>;
|
|
1542
|
+
sendFriendMessage(friendUin: bigint, build: (p0: BotOutgoingMessageBuilder) => Promise<void>): Promise<BotOutgoingMessageResult>;
|
|
1543
|
+
sendFriendMessageRich(friendUin: bigint, clientSequence: bigint, random: number, build: (p0: BotOutgoingMessageBuilder) => Promise<void>): Promise<BotOutgoingMessageResult>;
|
|
1544
|
+
sendGroupMessage(groupUin: bigint, build: (p0: BotOutgoingMessageBuilder) => Promise<void>): Promise<BotOutgoingMessageResult>;
|
|
1545
|
+
sendGroupMessageRich(groupUin: bigint, clientSequence: bigint, random: number, build: (p0: BotOutgoingMessageBuilder) => Promise<void>): Promise<BotOutgoingMessageResult>;
|
|
1546
|
+
recallFriendMessage(friendUin: bigint, sequence: bigint): Promise<void>;
|
|
1547
|
+
recallGroupMessage(groupUin: bigint, sequence: bigint): Promise<void>;
|
|
1548
|
+
getFriendHistoryMessages(friendUin: bigint, limit: number, startSequence?: Nullable<bigint>): Promise<BotHistoryMessages>;
|
|
1549
|
+
getGroupHistoryMessages(groupUin: bigint, limit: number, startSequence?: Nullable<bigint>): Promise<BotHistoryMessages>;
|
|
1550
|
+
getDownloadUrl(resourceId: string): Promise<string>;
|
|
1551
|
+
getForwardedMessages(resId: string): Promise<Array<BotForwardedMessage>>;
|
|
1552
|
+
markFriendMessagesAsRead(friendUin: bigint, startSequence: bigint, startTime: bigint): Promise<void>;
|
|
1553
|
+
markGroupMessagesAsRead(groupUin: bigint, startSequence: bigint): Promise<void>;
|
|
1554
|
+
sendFriendNudge(friendUin: bigint, isSelf?: boolean): Promise<void>;
|
|
1555
|
+
sendProfileLike(friendUin: bigint, count?: number): Promise<void>;
|
|
1556
|
+
getFriendRequests(isFiltered?: boolean, limit?: number): Promise<Array<BotFriendRequest>>;
|
|
1557
|
+
setFriendRequest(initiatorUid: string, accept: boolean, isFiltered?: boolean): Promise<void>;
|
|
1558
|
+
setGroupName(groupUin: bigint, groupName: string): Promise<void>;
|
|
1559
|
+
setGroupAvatar(groupUin: bigint, imageData: Int8Array): Promise<void>;
|
|
1560
|
+
setGroupMemberCard(groupUin: bigint, memberUin: bigint, card: string): Promise<void>;
|
|
1561
|
+
setGroupMemberSpecialTitle(groupUin: bigint, memberUin: bigint, specialTitle: string): Promise<void>;
|
|
1562
|
+
setGroupMemberAdmin(groupUin: bigint, memberUin: bigint, isAdmin: boolean): Promise<void>;
|
|
1563
|
+
setGroupMemberMute(groupUin: bigint, memberUin: bigint, duration: number): Promise<void>;
|
|
1564
|
+
setGroupWholeMute(groupUin: bigint, isMute: boolean): Promise<void>;
|
|
1565
|
+
kickGroupMember(groupUin: bigint, memberUin: bigint, rejectAddRequest?: boolean, reason?: string): Promise<void>;
|
|
1566
|
+
getGroupAnnouncements(groupUin: bigint): Promise<Array<BotGroupAnnouncement>>;
|
|
1567
|
+
sendGroupAnnouncement(groupUin: bigint, content: string, imageUrl?: Nullable<string>, showEditCard?: boolean, showTipWindow?: boolean, confirmRequired?: boolean): Promise<string>;
|
|
1568
|
+
deleteGroupAnnouncement(groupUin: bigint, announcementId: string): Promise<void>;
|
|
1569
|
+
getGroupEssenceMessages(groupUin: bigint, pageIndex: number, pageSize: number): Promise<BotEssenceMessageResult>;
|
|
1570
|
+
setGroupEssenceMessage(groupUin: bigint, sequence: bigint, isSet: boolean): Promise<void>;
|
|
1571
|
+
quitGroup(groupUin: bigint): Promise<void>;
|
|
1572
|
+
setGroupMessageReaction(groupUin: bigint, sequence: bigint, code: string, isAdd?: boolean): Promise<void>;
|
|
1573
|
+
sendGroupNudge(groupUin: bigint, targetUin: bigint): Promise<void>;
|
|
1574
|
+
getGroupNotifications(startSequence?: Nullable<bigint>, isFiltered?: boolean, count?: number): Promise<JsGroupNotifications>;
|
|
1575
|
+
setGroupRequest(groupUin: bigint, sequence: bigint, eventType: number, accept: boolean, isFiltered?: boolean, reason?: string): Promise<void>;
|
|
1576
|
+
setGroupInvitation(groupUin: bigint, invitationSeq: bigint, accept: boolean): Promise<void>;
|
|
1577
|
+
uploadGroupFile(groupUin: bigint, fileName: string, fileData: Int8Array, parentFolderId?: string): Promise<string>;
|
|
1578
|
+
uploadPrivateFile(friendUin: bigint, fileName: string, fileData: Int8Array): Promise<string>;
|
|
1579
|
+
getPrivateFileDownloadUrl(friendUin: bigint, fileId: string, fileHash: string): Promise<string>;
|
|
1580
|
+
getGroupFileDownloadUrl(groupUin: bigint, fileId: string): Promise<string>;
|
|
1581
|
+
getGroupFileList(groupUin: bigint, targetDirectory?: string, startIndex?: number): Promise<BotGroupFileSystemList>;
|
|
1582
|
+
renameGroupFile(groupUin: bigint, fileId: string, parentFolderId: string, newFileName: string): Promise<void>;
|
|
1583
|
+
moveGroupFile(groupUin: bigint, fileId: string, parentFolderId: string, targetFolderId: string): Promise<void>;
|
|
1584
|
+
deleteGroupFile(groupUin: bigint, fileId: string): Promise<void>;
|
|
1585
|
+
createGroupFolder(groupUin: bigint, folderName: string): Promise<string>;
|
|
1586
|
+
renameGroupFolder(groupUin: bigint, folderId: string, newFolderName: string): Promise<void>;
|
|
1587
|
+
deleteGroupFolder(groupUin: bigint, folderId: string): Promise<void>;
|
|
1588
|
+
onBotOffline(callback: (p0: BotOfflineEvent) => any): void;
|
|
1589
|
+
offBotOffline(callback: (p0: BotOfflineEvent) => any): boolean;
|
|
1590
|
+
onFriendFileUpload(callback: (p0: FriendFileUploadEvent) => any): void;
|
|
1591
|
+
offFriendFileUpload(callback: (p0: FriendFileUploadEvent) => any): boolean;
|
|
1592
|
+
onFriendNudge(callback: (p0: FriendNudgeEvent) => any): void;
|
|
1593
|
+
offFriendNudge(callback: (p0: FriendNudgeEvent) => any): boolean;
|
|
1594
|
+
onFriendRequest(callback: (p0: FriendRequestEvent) => any): void;
|
|
1595
|
+
offFriendRequest(callback: (p0: FriendRequestEvent) => any): boolean;
|
|
1596
|
+
onGroupAdminChange(callback: (p0: GroupAdminChangeEvent) => any): void;
|
|
1597
|
+
offGroupAdminChange(callback: (p0: GroupAdminChangeEvent) => any): boolean;
|
|
1598
|
+
onGroupEssenceMessageChange(callback: (p0: GroupEssenceMessageChangeEvent) => any): void;
|
|
1599
|
+
offGroupEssenceMessageChange(callback: (p0: GroupEssenceMessageChangeEvent) => any): boolean;
|
|
1600
|
+
onGroupFileUpload(callback: (p0: GroupFileUploadEvent) => any): void;
|
|
1601
|
+
offGroupFileUpload(callback: (p0: GroupFileUploadEvent) => any): boolean;
|
|
1602
|
+
onGroupInvitation(callback: (p0: GroupInvitationEvent) => any): void;
|
|
1603
|
+
offGroupInvitation(callback: (p0: GroupInvitationEvent) => any): boolean;
|
|
1604
|
+
onGroupInvitedJoinRequest(callback: (p0: GroupInvitedJoinRequestEvent) => any): void;
|
|
1605
|
+
offGroupInvitedJoinRequest(callback: (p0: GroupInvitedJoinRequestEvent) => any): boolean;
|
|
1606
|
+
onGroupJoinRequest(callback: (p0: GroupJoinRequestEvent) => any): void;
|
|
1607
|
+
offGroupJoinRequest(callback: (p0: GroupJoinRequestEvent) => any): boolean;
|
|
1608
|
+
onGroupMemberDecrease(callback: (p0: GroupMemberDecreaseEvent) => any): void;
|
|
1609
|
+
offGroupMemberDecrease(callback: (p0: GroupMemberDecreaseEvent) => any): boolean;
|
|
1610
|
+
onGroupMemberIncrease(callback: (p0: GroupMemberIncreaseEvent) => any): void;
|
|
1611
|
+
offGroupMemberIncrease(callback: (p0: GroupMemberIncreaseEvent) => any): boolean;
|
|
1612
|
+
onGroupMessageReaction(callback: (p0: GroupMessageReactionEvent) => any): void;
|
|
1613
|
+
offGroupMessageReaction(callback: (p0: GroupMessageReactionEvent) => any): boolean;
|
|
1614
|
+
onGroupMute(callback: (p0: GroupMuteEvent) => any): void;
|
|
1615
|
+
offGroupMute(callback: (p0: GroupMuteEvent) => any): boolean;
|
|
1616
|
+
onGroupNameChange(callback: (p0: GroupNameChangeEvent) => any): void;
|
|
1617
|
+
offGroupNameChange(callback: (p0: GroupNameChangeEvent) => any): boolean;
|
|
1618
|
+
onGroupNudge(callback: (p0: GroupNudgeEvent) => any): void;
|
|
1619
|
+
offGroupNudge(callback: (p0: GroupNudgeEvent) => any): boolean;
|
|
1620
|
+
onGroupWholeMute(callback: (p0: GroupWholeMuteEvent) => any): void;
|
|
1621
|
+
offGroupWholeMute(callback: (p0: GroupWholeMuteEvent) => any): boolean;
|
|
1622
|
+
onMessageReceive(callback: (p0: MessageReceiveEvent) => any): void;
|
|
1623
|
+
offMessageReceive(callback: (p0: MessageReceiveEvent) => any): boolean;
|
|
1624
|
+
onMessageRecall(callback: (p0: MessageRecallEvent) => any): void;
|
|
1625
|
+
offMessageRecall(callback: (p0: MessageRecallEvent) => any): boolean;
|
|
1626
|
+
onQRCodeGenerated(callback: (p0: QRCodeGeneratedEvent) => any): void;
|
|
1627
|
+
offQRCodeGenerated(callback: (p0: QRCodeGeneratedEvent) => any): boolean;
|
|
1628
|
+
onQRCodeStateQuery(callback: (p0: QRCodeStateQueryEvent) => any): void;
|
|
1629
|
+
offQRCodeStateQuery(callback: (p0: QRCodeStateQueryEvent) => any): boolean;
|
|
1630
|
+
onSessionStoreUpdated(callback: (p0: SessionStoreUpdatedEvent) => any): void;
|
|
1631
|
+
offSessionStoreUpdated(callback: (p0: SessionStoreUpdatedEvent) => any): boolean;
|
|
1632
|
+
static create(appInfo: AppInfo, sessionStore: SessionStore, signProvider: SignProvider, jsScope: CoroutineScope, minLogLevel: LogLevel, logHandler: LogHandler): Promise<Bot>;
|
|
1633
|
+
}
|
|
1634
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1635
|
+
export declare namespace Bot.$metadata$ {
|
|
1636
|
+
const constructor: abstract new () => Bot;
|
|
1637
|
+
}
|
|
1638
|
+
export declare namespace Bot {
|
|
1639
|
+
abstract class Companion {
|
|
1640
|
+
static readonly getInstance: () => typeof Companion.$metadata$.type;
|
|
1641
|
+
private constructor();
|
|
1642
|
+
}
|
|
1643
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1644
|
+
namespace Companion.$metadata$ {
|
|
1645
|
+
abstract class type extends KtSingleton<constructor>() {
|
|
1646
|
+
private constructor();
|
|
1647
|
+
}
|
|
1648
|
+
abstract class constructor {
|
|
1649
|
+
private constructor();
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
export declare class BotForwardBlockBuilder {
|
|
1654
|
+
private constructor();
|
|
1655
|
+
get underlying(): any/* BotForwardBlockBuilder */;
|
|
1656
|
+
node(senderUin: bigint, senderName: string, block: (p0: BotOutgoingMessageBuilder) => Promise<void>): void;
|
|
1657
|
+
}
|
|
1658
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1659
|
+
export declare namespace BotForwardBlockBuilder.$metadata$ {
|
|
1660
|
+
const constructor: abstract new () => BotForwardBlockBuilder;
|
|
1661
|
+
}
|
|
1662
|
+
export declare class BotOutgoingMessageBuilder {
|
|
1663
|
+
private constructor();
|
|
1664
|
+
text(text: string): void;
|
|
1665
|
+
mention(uin: Nullable<bigint>, name: string): void;
|
|
1666
|
+
face(faceId: number, isLarge?: boolean): void;
|
|
1667
|
+
reply(sequence: bigint): void;
|
|
1668
|
+
image(raw: Int8Array, format: ImageFormat, width: number, height: number, subType?: ImageSubType, summary?: string): void;
|
|
1669
|
+
record(rawSilk: Int8Array, duration: bigint): void;
|
|
1670
|
+
video(raw: Int8Array, width: number, height: number, duration: bigint, thumb: Int8Array, thumbFormat: ImageFormat): void;
|
|
1671
|
+
forward(block: (p0: BotForwardBlockBuilder) => Promise<void>): void;
|
|
1672
|
+
}
|
|
1673
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1674
|
+
export declare namespace BotOutgoingMessageBuilder.$metadata$ {
|
|
1675
|
+
const constructor: abstract new () => BotOutgoingMessageBuilder;
|
|
1676
|
+
}
|
|
1677
|
+
export declare class CoroutineScope {
|
|
1678
|
+
constructor(isSupervised?: boolean);
|
|
1679
|
+
get isSupervised(): boolean;
|
|
1680
|
+
cancel(): void;
|
|
1681
|
+
}
|
|
1682
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1683
|
+
export declare namespace CoroutineScope.$metadata$ {
|
|
1684
|
+
const constructor: abstract new () => CoroutineScope;
|
|
1685
|
+
}
|
|
1686
|
+
export declare class JsGroupNotifications {
|
|
1687
|
+
constructor(notifications: Array<BotGroupNotification>, nextSequence: Nullable<bigint>);
|
|
1688
|
+
get notifications(): Array<BotGroupNotification>;
|
|
1689
|
+
get nextSequence(): Nullable<bigint>;
|
|
1690
|
+
copy(notifications?: Array<BotGroupNotification>, nextSequence?: Nullable<bigint>): JsGroupNotifications;
|
|
1691
|
+
toString(): string;
|
|
1692
|
+
hashCode(): number;
|
|
1693
|
+
equals(other: Nullable<any>): boolean;
|
|
1694
|
+
}
|
|
1695
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1696
|
+
export declare namespace JsGroupNotifications.$metadata$ {
|
|
1697
|
+
const constructor: abstract new () => JsGroupNotifications;
|
|
1698
|
+
}
|
|
1699
|
+
export declare interface SignProvider {
|
|
1700
|
+
sign(cmd: string, seq: number, src: Int8Array): Promise<SignResult>;
|
|
1701
|
+
readonly __doNotUseOrImplementIt: {
|
|
1702
|
+
readonly "org.ntqqrev.acidify.js.SignProvider": unique symbol;
|
|
1703
|
+
};
|
|
1704
|
+
}
|
|
1705
|
+
export declare class UrlSignProvider implements SignProvider {
|
|
1706
|
+
constructor(scope: CoroutineScope, url: string, httpProxy?: Nullable<string>);
|
|
1707
|
+
get scope(): CoroutineScope;
|
|
1708
|
+
sign(cmd: string, seq: number, src: Int8Array): Promise<SignResult>;
|
|
1709
|
+
readonly __doNotUseOrImplementIt: SignProvider["__doNotUseOrImplementIt"];
|
|
1710
|
+
}
|
|
1711
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1712
|
+
export declare namespace UrlSignProvider.$metadata$ {
|
|
1713
|
+
const constructor: abstract new () => UrlSignProvider;
|
|
1714
|
+
}
|