zaileys 1.1.30 → 1.1.32
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/README.md +300 -125
- package/dist/index.d.mts +44 -158
- package/dist/index.d.ts +44 -158
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/examples/citation.ts +25 -0
- package/examples/limiter.ts +23 -0
- package/examples/llms.ts +37 -0
- package/examples/simple.ts +16 -0
- package/examples/speech.ts +36 -0
- package/examples/webhooks.ts +37 -0
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1147,7 +1147,7 @@ declare const MediaInputWorkerType: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodTy
|
|
|
1147
1147
|
declare const TextWorkerBaseType: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1148
1148
|
image: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>]>]>;
|
|
1149
1149
|
text: z.ZodOptional<z.ZodString>;
|
|
1150
|
-
}, "
|
|
1150
|
+
}, "strict", z.ZodTypeAny, {
|
|
1151
1151
|
image: string | Buffer<ArrayBufferLike> | Readable;
|
|
1152
1152
|
text?: string | undefined;
|
|
1153
1153
|
}, {
|
|
@@ -1156,22 +1156,22 @@ declare const TextWorkerBaseType: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
1156
1156
|
}>, z.ZodObject<{
|
|
1157
1157
|
video: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>]>]>;
|
|
1158
1158
|
text: z.ZodOptional<z.ZodString>;
|
|
1159
|
-
}, "
|
|
1159
|
+
}, "strict", z.ZodTypeAny, {
|
|
1160
1160
|
video: string | Buffer<ArrayBufferLike> | Readable;
|
|
1161
1161
|
text?: string | undefined;
|
|
1162
1162
|
}, {
|
|
1163
1163
|
video: string | Buffer<ArrayBufferLike> | Readable;
|
|
1164
1164
|
text?: string | undefined;
|
|
1165
1165
|
}>, z.ZodObject<{
|
|
1166
|
-
|
|
1167
|
-
}, "
|
|
1168
|
-
|
|
1166
|
+
note: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>]>]>;
|
|
1167
|
+
}, "strict", z.ZodTypeAny, {
|
|
1168
|
+
note: string | Buffer<ArrayBufferLike> | Readable;
|
|
1169
1169
|
}, {
|
|
1170
|
-
|
|
1170
|
+
note: string | Buffer<ArrayBufferLike> | Readable;
|
|
1171
1171
|
}>, z.ZodObject<{
|
|
1172
1172
|
gif: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>]>]>;
|
|
1173
1173
|
text: z.ZodOptional<z.ZodString>;
|
|
1174
|
-
}, "
|
|
1174
|
+
}, "strict", z.ZodTypeAny, {
|
|
1175
1175
|
gif: string | Buffer<ArrayBufferLike> | Readable;
|
|
1176
1176
|
text?: string | undefined;
|
|
1177
1177
|
}, {
|
|
@@ -1179,19 +1179,19 @@ declare const TextWorkerBaseType: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
1179
1179
|
text?: string | undefined;
|
|
1180
1180
|
}>, z.ZodObject<{
|
|
1181
1181
|
audio: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>]>]>;
|
|
1182
|
-
}, "
|
|
1182
|
+
}, "strict", z.ZodTypeAny, {
|
|
1183
1183
|
audio: string | Buffer<ArrayBufferLike> | Readable;
|
|
1184
1184
|
}, {
|
|
1185
1185
|
audio: string | Buffer<ArrayBufferLike> | Readable;
|
|
1186
1186
|
}>, z.ZodObject<{
|
|
1187
|
-
|
|
1188
|
-
}, "
|
|
1189
|
-
|
|
1187
|
+
voice: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>]>]>;
|
|
1188
|
+
}, "strict", z.ZodTypeAny, {
|
|
1189
|
+
voice: string | Buffer<ArrayBufferLike> | Readable;
|
|
1190
1190
|
}, {
|
|
1191
|
-
|
|
1191
|
+
voice: string | Buffer<ArrayBufferLike> | Readable;
|
|
1192
1192
|
}>, z.ZodObject<{
|
|
1193
1193
|
sticker: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>]>]>;
|
|
1194
|
-
}, "
|
|
1194
|
+
}, "strict", z.ZodTypeAny, {
|
|
1195
1195
|
sticker: string | Buffer<ArrayBufferLike> | Readable;
|
|
1196
1196
|
}, {
|
|
1197
1197
|
sticker: string | Buffer<ArrayBufferLike> | Readable;
|
|
@@ -1200,18 +1200,21 @@ declare const TextWorkerOptionsType: z.ZodObject<{
|
|
|
1200
1200
|
roomId: z.ZodString;
|
|
1201
1201
|
asForwarded: z.ZodOptional<z.ZodBoolean>;
|
|
1202
1202
|
asViewOnce: z.ZodOptional<z.ZodBoolean>;
|
|
1203
|
+
asAI: z.ZodOptional<z.ZodBoolean>;
|
|
1203
1204
|
verifiedReply: z.ZodOptional<z.ZodEnum<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"]>>;
|
|
1204
1205
|
quoted: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1205
1206
|
}, "strip", z.ZodTypeAny, {
|
|
1206
1207
|
roomId: string;
|
|
1207
1208
|
asForwarded?: boolean | undefined;
|
|
1208
1209
|
asViewOnce?: boolean | undefined;
|
|
1210
|
+
asAI?: boolean | undefined;
|
|
1209
1211
|
verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok" | undefined;
|
|
1210
1212
|
quoted?: ((...args: unknown[]) => Record<string, any>) | undefined;
|
|
1211
1213
|
}, {
|
|
1212
1214
|
roomId: string;
|
|
1213
1215
|
asForwarded?: boolean | undefined;
|
|
1214
1216
|
asViewOnce?: boolean | undefined;
|
|
1217
|
+
asAI?: boolean | undefined;
|
|
1215
1218
|
verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok" | undefined;
|
|
1216
1219
|
quoted?: ((...args: unknown[]) => Record<string, any>) | undefined;
|
|
1217
1220
|
}>;
|
|
@@ -1219,18 +1222,21 @@ declare const LocationWorkerOptionsType: z.ZodObject<{
|
|
|
1219
1222
|
roomId: z.ZodString;
|
|
1220
1223
|
asForwarded: z.ZodOptional<z.ZodBoolean>;
|
|
1221
1224
|
asViewOnce: z.ZodOptional<z.ZodBoolean>;
|
|
1225
|
+
asAI: z.ZodOptional<z.ZodBoolean>;
|
|
1222
1226
|
verifiedReply: z.ZodOptional<z.ZodEnum<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"]>>;
|
|
1223
1227
|
quoted: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1224
1228
|
}, "strip", z.ZodTypeAny, {
|
|
1225
1229
|
roomId: string;
|
|
1226
1230
|
asForwarded?: boolean | undefined;
|
|
1227
1231
|
asViewOnce?: boolean | undefined;
|
|
1232
|
+
asAI?: boolean | undefined;
|
|
1228
1233
|
verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok" | undefined;
|
|
1229
1234
|
quoted?: ((...args: unknown[]) => Record<string, any>) | undefined;
|
|
1230
1235
|
}, {
|
|
1231
1236
|
roomId: string;
|
|
1232
1237
|
asForwarded?: boolean | undefined;
|
|
1233
1238
|
asViewOnce?: boolean | undefined;
|
|
1239
|
+
asAI?: boolean | undefined;
|
|
1234
1240
|
verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok" | undefined;
|
|
1235
1241
|
quoted?: ((...args: unknown[]) => Record<string, any>) | undefined;
|
|
1236
1242
|
}>;
|
|
@@ -1254,18 +1260,21 @@ declare const ContactWorkerOptionsType: z.ZodObject<{
|
|
|
1254
1260
|
roomId: z.ZodString;
|
|
1255
1261
|
asForwarded: z.ZodOptional<z.ZodBoolean>;
|
|
1256
1262
|
asViewOnce: z.ZodOptional<z.ZodBoolean>;
|
|
1263
|
+
asAI: z.ZodOptional<z.ZodBoolean>;
|
|
1257
1264
|
verifiedReply: z.ZodOptional<z.ZodEnum<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"]>>;
|
|
1258
1265
|
quoted: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1259
1266
|
}, "strip", z.ZodTypeAny, {
|
|
1260
1267
|
roomId: string;
|
|
1261
1268
|
asForwarded?: boolean | undefined;
|
|
1262
1269
|
asViewOnce?: boolean | undefined;
|
|
1270
|
+
asAI?: boolean | undefined;
|
|
1263
1271
|
verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok" | undefined;
|
|
1264
1272
|
quoted?: ((...args: unknown[]) => Record<string, any>) | undefined;
|
|
1265
1273
|
}, {
|
|
1266
1274
|
roomId: string;
|
|
1267
1275
|
asForwarded?: boolean | undefined;
|
|
1268
1276
|
asViewOnce?: boolean | undefined;
|
|
1277
|
+
asAI?: boolean | undefined;
|
|
1269
1278
|
verifiedReply?: "whatsapp" | "meta" | "chatgpt" | "copilot" | "instagram" | "tiktok" | undefined;
|
|
1270
1279
|
quoted?: ((...args: unknown[]) => Record<string, any>) | undefined;
|
|
1271
1280
|
}>;
|
|
@@ -1338,6 +1347,7 @@ declare const PollWorkerOptionsType: z.ZodObject<Pick<{
|
|
|
1338
1347
|
roomId: z.ZodString;
|
|
1339
1348
|
asForwarded: z.ZodOptional<z.ZodBoolean>;
|
|
1340
1349
|
asViewOnce: z.ZodOptional<z.ZodBoolean>;
|
|
1350
|
+
asAI: z.ZodOptional<z.ZodBoolean>;
|
|
1341
1351
|
verifiedReply: z.ZodOptional<z.ZodEnum<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"]>>;
|
|
1342
1352
|
quoted: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1343
1353
|
}, "roomId">, "strip", z.ZodTypeAny, {
|
|
@@ -1387,6 +1397,7 @@ declare const MuteWorkerOptionsType: z.ZodObject<Pick<{
|
|
|
1387
1397
|
roomId: z.ZodString;
|
|
1388
1398
|
asForwarded: z.ZodOptional<z.ZodBoolean>;
|
|
1389
1399
|
asViewOnce: z.ZodOptional<z.ZodBoolean>;
|
|
1400
|
+
asAI: z.ZodOptional<z.ZodBoolean>;
|
|
1390
1401
|
verifiedReply: z.ZodOptional<z.ZodEnum<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"]>>;
|
|
1391
1402
|
quoted: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1392
1403
|
}, "roomId">, "strip", z.ZodTypeAny, {
|
|
@@ -1494,6 +1505,7 @@ declare const PresenceWorkerOptionsType: z.ZodObject<Pick<{
|
|
|
1494
1505
|
roomId: z.ZodString;
|
|
1495
1506
|
asForwarded: z.ZodOptional<z.ZodBoolean>;
|
|
1496
1507
|
asViewOnce: z.ZodOptional<z.ZodBoolean>;
|
|
1508
|
+
asAI: z.ZodOptional<z.ZodBoolean>;
|
|
1497
1509
|
verifiedReply: z.ZodOptional<z.ZodEnum<["whatsapp", "meta", "chatgpt", "copilot", "instagram", "tiktok"]>>;
|
|
1498
1510
|
quoted: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1499
1511
|
}, "roomId">, "strip", z.ZodTypeAny, {
|
|
@@ -1513,7 +1525,7 @@ declare class Worker {
|
|
|
1513
1525
|
socket: Client["socket"];
|
|
1514
1526
|
});
|
|
1515
1527
|
private sendMessage;
|
|
1516
|
-
text(
|
|
1528
|
+
text(input: z.infer<typeof TextWorkerBaseType>, options: z.infer<typeof TextWorkerOptionsType>): Promise<{
|
|
1517
1529
|
channelId: string;
|
|
1518
1530
|
uniqueId: string;
|
|
1519
1531
|
message: (...args: unknown[]) => Record<string, any>;
|
|
@@ -1588,7 +1600,7 @@ declare class Worker {
|
|
|
1588
1600
|
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
1589
1601
|
}, z.ZodTypeAny, "passthrough"> | null;
|
|
1590
1602
|
} | null;
|
|
1591
|
-
} | null
|
|
1603
|
+
} | null>;
|
|
1592
1604
|
location(loc: z.infer<typeof LocationWorkerBaseType>, options: z.infer<typeof LocationWorkerOptionsType>): Promise<{
|
|
1593
1605
|
channelId: string;
|
|
1594
1606
|
uniqueId: string;
|
|
@@ -2125,149 +2137,23 @@ declare class Worker {
|
|
|
2125
2137
|
mute(mute: z.infer<typeof MuteWorkerBaseType>, options: z.infer<typeof MuteWorkerOptionsType>): Promise<void | undefined>;
|
|
2126
2138
|
profile(roomId: z.infer<typeof ProfileWorkerBaseType>): Promise<z.infer<typeof ProfileWorkerBaseOutputType> | null>;
|
|
2127
2139
|
presence(action: z.infer<typeof PresenceWorkerBaseType>, options: z.infer<typeof PresenceWorkerOptionsType>): Promise<void | undefined>;
|
|
2128
|
-
addCompletion
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
clearCompletions(channelId: string): Promise<boolean>;
|
|
2146
|
-
getCompletion(uniqueId: string): Promise<{
|
|
2147
|
-
channelId: string;
|
|
2148
|
-
uniqueId: string;
|
|
2149
|
-
role: string;
|
|
2150
|
-
content: string;
|
|
2151
|
-
model?: string | null | undefined;
|
|
2152
|
-
additional?: string | null | undefined;
|
|
2153
|
-
} | null>;
|
|
2154
|
-
getCompletions(channelId: string): Promise<{
|
|
2155
|
-
channelId: string;
|
|
2156
|
-
uniqueId: string;
|
|
2157
|
-
role: string;
|
|
2158
|
-
content: string;
|
|
2159
|
-
model?: string | null | undefined;
|
|
2160
|
-
additional?: string | null | undefined;
|
|
2161
|
-
}[]>;
|
|
2162
|
-
addPersonalization(props: z.infer<typeof llmPersonalizationTable>): Promise<{
|
|
2163
|
-
uniqueId: string;
|
|
2164
|
-
content: string;
|
|
2165
|
-
senderId: string;
|
|
2166
|
-
}>;
|
|
2167
|
-
deletePersonalization(uniqueId: string): Promise<boolean>;
|
|
2168
|
-
clearPersonalization(senderId: string): Promise<boolean>;
|
|
2169
|
-
getPersonalization(senderId: string): Promise<{
|
|
2170
|
-
uniqueId: string;
|
|
2171
|
-
content: string;
|
|
2172
|
-
senderId: string;
|
|
2173
|
-
}[]>;
|
|
2174
|
-
addRAG(props: z.infer<typeof addRAGType>): Promise<any>;
|
|
2175
|
-
deleteRAG(id: string): Promise<boolean>;
|
|
2176
|
-
updateRAG(id: string): Promise<{
|
|
2177
|
-
metadata: {
|
|
2178
|
-
id: string;
|
|
2179
|
-
};
|
|
2180
|
-
pageContent: string;
|
|
2181
|
-
}>;
|
|
2182
|
-
clearRAGs(): Promise<boolean>;
|
|
2183
|
-
getRAG(id: string): Promise<{
|
|
2184
|
-
metadata: {
|
|
2185
|
-
id: string;
|
|
2186
|
-
};
|
|
2187
|
-
pageContent: string;
|
|
2188
|
-
} | null>;
|
|
2189
|
-
getRAGs(keyword: string): Promise<{
|
|
2190
|
-
metadata: {
|
|
2191
|
-
id: string;
|
|
2192
|
-
};
|
|
2193
|
-
pageContent: string;
|
|
2194
|
-
}[]>;
|
|
2195
|
-
getMessage(chatId: string): Promise<{
|
|
2196
|
-
channelId: string;
|
|
2197
|
-
uniqueId: string;
|
|
2198
|
-
message: (...args: unknown[]) => Record<string, any>;
|
|
2199
|
-
senderId: string;
|
|
2200
|
-
roomId: string;
|
|
2201
|
-
isGroup: boolean;
|
|
2202
|
-
text: string | null;
|
|
2203
|
-
chatId: string;
|
|
2204
|
-
receiverId: string;
|
|
2205
|
-
receiverName: string;
|
|
2206
|
-
roomName: string;
|
|
2207
|
-
senderName: string;
|
|
2208
|
-
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
2209
|
-
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
2210
|
-
timestamp: number;
|
|
2211
|
-
mentions: string[];
|
|
2212
|
-
links: string[];
|
|
2213
|
-
isPrefix: boolean;
|
|
2214
|
-
isSpam: boolean;
|
|
2215
|
-
isFromMe: boolean;
|
|
2216
|
-
isTagMe: boolean;
|
|
2217
|
-
isStory: boolean;
|
|
2218
|
-
isViewOnce: boolean;
|
|
2219
|
-
isEdited: boolean;
|
|
2220
|
-
isDeleted: boolean;
|
|
2221
|
-
isPinned: boolean;
|
|
2222
|
-
isUnPinned: boolean;
|
|
2223
|
-
isChannel: boolean;
|
|
2224
|
-
isBroadcast: boolean;
|
|
2225
|
-
isEphemeral: boolean;
|
|
2226
|
-
isForwarded: boolean;
|
|
2227
|
-
citation: Record<string, boolean> | null;
|
|
2228
|
-
media: z.objectOutputType<{
|
|
2229
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
2230
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
2231
|
-
}, z.ZodTypeAny, "passthrough"> | null;
|
|
2232
|
-
replied: {
|
|
2233
|
-
channelId: string;
|
|
2234
|
-
uniqueId: string;
|
|
2235
|
-
message: (...args: unknown[]) => Record<string, any>;
|
|
2236
|
-
senderId: string;
|
|
2237
|
-
roomId: string;
|
|
2238
|
-
isGroup: boolean;
|
|
2239
|
-
text: string | null;
|
|
2240
|
-
chatId: string;
|
|
2241
|
-
receiverId: string;
|
|
2242
|
-
receiverName: string;
|
|
2243
|
-
roomName: string;
|
|
2244
|
-
senderName: string;
|
|
2245
|
-
senderDevice: "unknown" | "android" | "ios" | "desktop" | "web";
|
|
2246
|
-
chatType: "text" | "image" | "contact" | "location" | "document" | "audio" | "video" | "protocol" | "contactsArray" | "highlyStructured" | "sendPayment" | "liveLocation" | "requestPayment" | "declinePaymentRequest" | "cancelPaymentRequest" | "template" | "sticker" | "groupInvite" | "templateButtonReply" | "product" | "deviceSent" | "list" | "viewOnce" | "order" | "listResponse" | "ephemeral" | "invoice" | "buttons" | "buttonsResponse" | "paymentInvite" | "interactive" | "reaction" | "interactiveResponse" | "pollCreation" | "pollUpdate" | "keepInChat" | "requestPhoneNumber" | "scheduledCallCreation" | "groupMentioned" | "pinInChat" | "scheduledCallEdit" | "ptv" | "botInvoke" | "callLog" | "encComment" | "bcall" | "lottieSticker" | "event" | "comment" | "placeholder" | "encEventUpdate";
|
|
2247
|
-
timestamp: number;
|
|
2248
|
-
mentions: string[];
|
|
2249
|
-
links: string[];
|
|
2250
|
-
isPrefix: boolean;
|
|
2251
|
-
isSpam: boolean;
|
|
2252
|
-
isFromMe: boolean;
|
|
2253
|
-
isTagMe: boolean;
|
|
2254
|
-
isStory: boolean;
|
|
2255
|
-
isViewOnce: boolean;
|
|
2256
|
-
isEdited: boolean;
|
|
2257
|
-
isDeleted: boolean;
|
|
2258
|
-
isPinned: boolean;
|
|
2259
|
-
isUnPinned: boolean;
|
|
2260
|
-
isChannel: boolean;
|
|
2261
|
-
isBroadcast: boolean;
|
|
2262
|
-
isEphemeral: boolean;
|
|
2263
|
-
isForwarded: boolean;
|
|
2264
|
-
citation: Record<string, boolean> | null;
|
|
2265
|
-
media: z.objectOutputType<{
|
|
2266
|
-
buffer: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>>;
|
|
2267
|
-
stream: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodType<stream.Readable, z.ZodTypeDef, stream.Readable>>;
|
|
2268
|
-
}, z.ZodTypeAny, "passthrough"> | null;
|
|
2269
|
-
} | null;
|
|
2270
|
-
} | null>;
|
|
2140
|
+
private addCompletion;
|
|
2141
|
+
private deleteCompletion;
|
|
2142
|
+
private updateCompletion;
|
|
2143
|
+
private clearCompletions;
|
|
2144
|
+
private getCompletion;
|
|
2145
|
+
private getCompletions;
|
|
2146
|
+
private addPersonalization;
|
|
2147
|
+
private deletePersonalization;
|
|
2148
|
+
private clearPersonalization;
|
|
2149
|
+
private getPersonalization;
|
|
2150
|
+
private addRAG;
|
|
2151
|
+
private deleteRAG;
|
|
2152
|
+
private updateRAG;
|
|
2153
|
+
private clearRAGs;
|
|
2154
|
+
private getRAG;
|
|
2155
|
+
private getRAGs;
|
|
2156
|
+
private getMessage;
|
|
2271
2157
|
llms: llmsAdapter;
|
|
2272
2158
|
chats: chatsAdapter;
|
|
2273
2159
|
}
|