@acidify/core 0.8.1 → 0.9.0
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 +161 -7
- package/dist/acidify-acidify-core.mjs +5305 -5112
- package/package.json +1 -1
|
@@ -1126,6 +1126,160 @@ export declare namespace BotOutgoingMessageResult {
|
|
|
1126
1126
|
const constructor: abstract new () => BotOutgoingMessageResult;
|
|
1127
1127
|
}
|
|
1128
1128
|
}
|
|
1129
|
+
export declare abstract class BotOutgoingSegment {
|
|
1130
|
+
protected constructor();
|
|
1131
|
+
}
|
|
1132
|
+
export declare namespace BotOutgoingSegment {
|
|
1133
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1134
|
+
namespace $metadata$ {
|
|
1135
|
+
const constructor: abstract new () => BotOutgoingSegment;
|
|
1136
|
+
}
|
|
1137
|
+
class Text extends BotOutgoingSegment.$metadata$.constructor {
|
|
1138
|
+
constructor(text: string);
|
|
1139
|
+
get text(): string;
|
|
1140
|
+
toString(): string;
|
|
1141
|
+
copy(text?: string): BotOutgoingSegment.Text;
|
|
1142
|
+
hashCode(): number;
|
|
1143
|
+
equals(other: Nullable<any>): boolean;
|
|
1144
|
+
}
|
|
1145
|
+
namespace Text {
|
|
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
|
+
namespace $metadata$ {
|
|
1148
|
+
const constructor: abstract new () => Text;
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
class Mention extends BotOutgoingSegment.$metadata$.constructor {
|
|
1152
|
+
constructor(uin: Nullable<bigint> | undefined, name: string);
|
|
1153
|
+
get uin(): Nullable<bigint>;
|
|
1154
|
+
get name(): string;
|
|
1155
|
+
toString(): string;
|
|
1156
|
+
copy(uin?: Nullable<bigint>, name?: string): BotOutgoingSegment.Mention;
|
|
1157
|
+
hashCode(): number;
|
|
1158
|
+
equals(other: Nullable<any>): boolean;
|
|
1159
|
+
}
|
|
1160
|
+
namespace Mention {
|
|
1161
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1162
|
+
namespace $metadata$ {
|
|
1163
|
+
const constructor: abstract new () => Mention;
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
class Face extends BotOutgoingSegment.$metadata$.constructor {
|
|
1167
|
+
constructor(faceId: number, isLarge: boolean);
|
|
1168
|
+
get faceId(): number;
|
|
1169
|
+
get isLarge(): boolean;
|
|
1170
|
+
toString(): string;
|
|
1171
|
+
copy(faceId?: number, isLarge?: boolean): BotOutgoingSegment.Face;
|
|
1172
|
+
hashCode(): number;
|
|
1173
|
+
equals(other: Nullable<any>): boolean;
|
|
1174
|
+
}
|
|
1175
|
+
namespace Face {
|
|
1176
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1177
|
+
namespace $metadata$ {
|
|
1178
|
+
const constructor: abstract new () => Face;
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
class Reply extends BotOutgoingSegment.$metadata$.constructor {
|
|
1182
|
+
constructor(sequence: bigint);
|
|
1183
|
+
get sequence(): bigint;
|
|
1184
|
+
toString(): string;
|
|
1185
|
+
copy(sequence?: bigint): BotOutgoingSegment.Reply;
|
|
1186
|
+
hashCode(): number;
|
|
1187
|
+
equals(other: Nullable<any>): boolean;
|
|
1188
|
+
}
|
|
1189
|
+
namespace Reply {
|
|
1190
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1191
|
+
namespace $metadata$ {
|
|
1192
|
+
const constructor: abstract new () => Reply;
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
class Image extends BotOutgoingSegment.$metadata$.constructor {
|
|
1196
|
+
constructor(raw: Int8Array, format: ImageFormat, width: number, height: number, subType: ImageSubType, summary: string);
|
|
1197
|
+
get raw(): Int8Array;
|
|
1198
|
+
get format(): ImageFormat;
|
|
1199
|
+
get width(): number;
|
|
1200
|
+
get height(): number;
|
|
1201
|
+
get subType(): ImageSubType;
|
|
1202
|
+
get summary(): string;
|
|
1203
|
+
toString(): string;
|
|
1204
|
+
copy(raw?: Int8Array, format?: ImageFormat, width?: number, height?: number, subType?: ImageSubType, summary?: string): BotOutgoingSegment.Image;
|
|
1205
|
+
hashCode(): number;
|
|
1206
|
+
equals(other: Nullable<any>): boolean;
|
|
1207
|
+
}
|
|
1208
|
+
namespace Image {
|
|
1209
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1210
|
+
namespace $metadata$ {
|
|
1211
|
+
const constructor: abstract new () => Image;
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
class Record extends BotOutgoingSegment.$metadata$.constructor {
|
|
1215
|
+
constructor(rawSilk: Int8Array, duration: bigint);
|
|
1216
|
+
get rawSilk(): Int8Array;
|
|
1217
|
+
get duration(): bigint;
|
|
1218
|
+
toString(): string;
|
|
1219
|
+
copy(rawSilk?: Int8Array, duration?: bigint): BotOutgoingSegment.Record;
|
|
1220
|
+
hashCode(): number;
|
|
1221
|
+
equals(other: Nullable<any>): boolean;
|
|
1222
|
+
}
|
|
1223
|
+
namespace Record {
|
|
1224
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1225
|
+
namespace $metadata$ {
|
|
1226
|
+
const constructor: abstract new () => Record;
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
class Video extends BotOutgoingSegment.$metadata$.constructor {
|
|
1230
|
+
constructor(raw: Int8Array, width: number, height: number, duration: bigint, thumb: Int8Array, thumbFormat: ImageFormat);
|
|
1231
|
+
get raw(): Int8Array;
|
|
1232
|
+
get width(): number;
|
|
1233
|
+
get height(): number;
|
|
1234
|
+
get duration(): bigint;
|
|
1235
|
+
get thumb(): Int8Array;
|
|
1236
|
+
get thumbFormat(): ImageFormat;
|
|
1237
|
+
toString(): string;
|
|
1238
|
+
copy(raw?: Int8Array, width?: number, height?: number, duration?: bigint, thumb?: Int8Array, thumbFormat?: ImageFormat): BotOutgoingSegment.Video;
|
|
1239
|
+
hashCode(): number;
|
|
1240
|
+
equals(other: Nullable<any>): boolean;
|
|
1241
|
+
}
|
|
1242
|
+
namespace Video {
|
|
1243
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1244
|
+
namespace $metadata$ {
|
|
1245
|
+
const constructor: abstract new () => Video;
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
class Forward extends BotOutgoingSegment.$metadata$.constructor {
|
|
1249
|
+
constructor(nodes: KtList<BotOutgoingSegment.Forward.Node>, title?: string, preview?: KtList<string>, summary?: string, prompt?: string);
|
|
1250
|
+
get nodes(): KtList<BotOutgoingSegment.Forward.Node>;
|
|
1251
|
+
get title(): string;
|
|
1252
|
+
get preview(): KtList<string>;
|
|
1253
|
+
get summary(): string;
|
|
1254
|
+
get prompt(): string;
|
|
1255
|
+
toString(): string;
|
|
1256
|
+
copy(nodes?: KtList<BotOutgoingSegment.Forward.Node>, title?: string, preview?: KtList<string>, summary?: string, prompt?: string): BotOutgoingSegment.Forward;
|
|
1257
|
+
hashCode(): number;
|
|
1258
|
+
equals(other: Nullable<any>): boolean;
|
|
1259
|
+
}
|
|
1260
|
+
namespace Forward {
|
|
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 $metadata$ {
|
|
1263
|
+
const constructor: abstract new () => Forward;
|
|
1264
|
+
}
|
|
1265
|
+
class Node {
|
|
1266
|
+
constructor(senderUin: bigint, senderName: string, segments: KtList<BotOutgoingSegment>);
|
|
1267
|
+
get senderUin(): bigint;
|
|
1268
|
+
get senderName(): string;
|
|
1269
|
+
get segments(): KtList<BotOutgoingSegment>;
|
|
1270
|
+
copy(senderUin?: bigint, senderName?: string, segments?: KtList<BotOutgoingSegment>): BotOutgoingSegment.Forward.Node;
|
|
1271
|
+
toString(): string;
|
|
1272
|
+
hashCode(): number;
|
|
1273
|
+
equals(other: Nullable<any>): boolean;
|
|
1274
|
+
}
|
|
1275
|
+
namespace Node {
|
|
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 $metadata$ {
|
|
1278
|
+
const constructor: abstract new () => Node;
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1129
1283
|
export declare abstract class ImageFormat {
|
|
1130
1284
|
private constructor();
|
|
1131
1285
|
static get PNG(): ImageFormat & {
|
|
@@ -1748,10 +1902,10 @@ export declare class Bot /* implements CoroutineScope */ {
|
|
|
1748
1902
|
getPSKey(domain: string): Promise<string>;
|
|
1749
1903
|
getCookies(domain: string): Promise<KtMap<string, string>>;
|
|
1750
1904
|
getCsrfToken(): Promise<number>;
|
|
1751
|
-
sendFriendMessage(friendUin: bigint, build: (p0: BotOutgoingMessageBuilder) =>
|
|
1752
|
-
sendFriendMessageRich(friendUin: bigint, clientSequence: bigint, random: number, build: (p0: BotOutgoingMessageBuilder) =>
|
|
1753
|
-
sendGroupMessage(groupUin: bigint, build: (p0: BotOutgoingMessageBuilder) =>
|
|
1754
|
-
sendGroupMessageRich(groupUin: bigint, clientSequence: bigint, random: number, build: (p0: BotOutgoingMessageBuilder) =>
|
|
1905
|
+
sendFriendMessage(friendUin: bigint, build: (p0: BotOutgoingMessageBuilder) => void): Promise<BotOutgoingMessageResult>;
|
|
1906
|
+
sendFriendMessageRich(friendUin: bigint, clientSequence: bigint, random: number, build: (p0: BotOutgoingMessageBuilder) => void): Promise<BotOutgoingMessageResult>;
|
|
1907
|
+
sendGroupMessage(groupUin: bigint, build: (p0: BotOutgoingMessageBuilder) => void): Promise<BotOutgoingMessageResult>;
|
|
1908
|
+
sendGroupMessageRich(groupUin: bigint, clientSequence: bigint, random: number, build: (p0: BotOutgoingMessageBuilder) => void): Promise<BotOutgoingMessageResult>;
|
|
1755
1909
|
recallFriendMessage(friendUin: bigint, sequence: bigint): Promise<void>;
|
|
1756
1910
|
recallGroupMessage(groupUin: bigint, sequence: bigint): Promise<void>;
|
|
1757
1911
|
getFriendHistoryMessages(friendUin: bigint, limit: number, startSequence?: Nullable<bigint>): Promise<BotHistoryMessages>;
|
|
@@ -1862,8 +2016,8 @@ export declare namespace Bot {
|
|
|
1862
2016
|
}
|
|
1863
2017
|
export declare class BotForwardBlockBuilder {
|
|
1864
2018
|
private constructor();
|
|
1865
|
-
get underlying(): any/*
|
|
1866
|
-
node(senderUin: bigint, senderName: string, block: (p0: BotOutgoingMessageBuilder) =>
|
|
2019
|
+
get underlying(): any/* BotOutgoingMessageBuilder.Forward */;
|
|
2020
|
+
node(senderUin: bigint, senderName: string, block: (p0: BotOutgoingMessageBuilder) => void): void;
|
|
1867
2021
|
}
|
|
1868
2022
|
export declare namespace BotForwardBlockBuilder {
|
|
1869
2023
|
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
@@ -1880,7 +2034,7 @@ export declare class BotOutgoingMessageBuilder {
|
|
|
1880
2034
|
image(raw: Int8Array, format: ImageFormat, width: number, height: number, subType?: ImageSubType, summary?: string): void;
|
|
1881
2035
|
record(rawSilk: Int8Array, duration: bigint): void;
|
|
1882
2036
|
video(raw: Int8Array, width: number, height: number, duration: bigint, thumb: Int8Array, thumbFormat: ImageFormat): void;
|
|
1883
|
-
forward(block: (p0: BotForwardBlockBuilder) =>
|
|
2037
|
+
forward(block: (p0: BotForwardBlockBuilder) => void): void;
|
|
1884
2038
|
}
|
|
1885
2039
|
export declare namespace BotOutgoingMessageBuilder {
|
|
1886
2040
|
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|