@skravets/eapi 0.0.48 → 0.0.50
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/api-types.d.cts +17 -7
- package/dist/api-types.d.ts +17 -7
- package/dist/index.d.cts +16 -5
- package/dist/index.d.ts +16 -5
- package/package.json +1 -1
package/dist/api-types.d.cts
CHANGED
|
@@ -113,7 +113,7 @@ interface components {
|
|
|
113
113
|
channel_id: number;
|
|
114
114
|
/**
|
|
115
115
|
* Format: date-time
|
|
116
|
-
* @example 2026-02-
|
|
116
|
+
* @example 2026-02-04T12:22:20.571Z
|
|
117
117
|
*/
|
|
118
118
|
message_created_at: string;
|
|
119
119
|
/** @example 123 */
|
|
@@ -381,11 +381,13 @@ interface components {
|
|
|
381
381
|
*/
|
|
382
382
|
usernames: string[];
|
|
383
383
|
};
|
|
384
|
-
|
|
385
|
-
/** @description
|
|
386
|
-
|
|
387
|
-
/** @description
|
|
388
|
-
|
|
384
|
+
PeerAccessAccountDto: {
|
|
385
|
+
/** @description Account ID */
|
|
386
|
+
accountId: number;
|
|
387
|
+
/** @description Account phone number */
|
|
388
|
+
phone: string;
|
|
389
|
+
/** @description Session ID */
|
|
390
|
+
sessionId: number;
|
|
389
391
|
/** @description Flood wait end time for resolving username (ISO datetime) */
|
|
390
392
|
floodWaitOnResolveUsernameEndsAt?: null | string;
|
|
391
393
|
/** @description Flood wait end time for getting history (ISO datetime) */
|
|
@@ -393,8 +395,16 @@ interface components {
|
|
|
393
395
|
/** @description Spam block end time (ISO datetime) */
|
|
394
396
|
spamBlockUntil?: null | string;
|
|
395
397
|
};
|
|
398
|
+
PeerAccessChatDto: {
|
|
399
|
+
/** @description Username that was queried */
|
|
400
|
+
username: string;
|
|
401
|
+
/** @description Resolved peer ID, null if not resolved */
|
|
402
|
+
peerId?: null | number;
|
|
403
|
+
/** @description Accounts that have access to this chat */
|
|
404
|
+
accounts: components["schemas"]["PeerAccessAccountDto"][];
|
|
405
|
+
};
|
|
396
406
|
PeerAccessResponseDto: {
|
|
397
|
-
|
|
407
|
+
chats: components["schemas"]["PeerAccessChatDto"][];
|
|
398
408
|
};
|
|
399
409
|
ChatIdentifierDto: {
|
|
400
410
|
/**
|
package/dist/api-types.d.ts
CHANGED
|
@@ -113,7 +113,7 @@ interface components {
|
|
|
113
113
|
channel_id: number;
|
|
114
114
|
/**
|
|
115
115
|
* Format: date-time
|
|
116
|
-
* @example 2026-02-
|
|
116
|
+
* @example 2026-02-04T12:22:20.571Z
|
|
117
117
|
*/
|
|
118
118
|
message_created_at: string;
|
|
119
119
|
/** @example 123 */
|
|
@@ -381,11 +381,13 @@ interface components {
|
|
|
381
381
|
*/
|
|
382
382
|
usernames: string[];
|
|
383
383
|
};
|
|
384
|
-
|
|
385
|
-
/** @description
|
|
386
|
-
|
|
387
|
-
/** @description
|
|
388
|
-
|
|
384
|
+
PeerAccessAccountDto: {
|
|
385
|
+
/** @description Account ID */
|
|
386
|
+
accountId: number;
|
|
387
|
+
/** @description Account phone number */
|
|
388
|
+
phone: string;
|
|
389
|
+
/** @description Session ID */
|
|
390
|
+
sessionId: number;
|
|
389
391
|
/** @description Flood wait end time for resolving username (ISO datetime) */
|
|
390
392
|
floodWaitOnResolveUsernameEndsAt?: null | string;
|
|
391
393
|
/** @description Flood wait end time for getting history (ISO datetime) */
|
|
@@ -393,8 +395,16 @@ interface components {
|
|
|
393
395
|
/** @description Spam block end time (ISO datetime) */
|
|
394
396
|
spamBlockUntil?: null | string;
|
|
395
397
|
};
|
|
398
|
+
PeerAccessChatDto: {
|
|
399
|
+
/** @description Username that was queried */
|
|
400
|
+
username: string;
|
|
401
|
+
/** @description Resolved peer ID, null if not resolved */
|
|
402
|
+
peerId?: null | number;
|
|
403
|
+
/** @description Accounts that have access to this chat */
|
|
404
|
+
accounts: components["schemas"]["PeerAccessAccountDto"][];
|
|
405
|
+
};
|
|
396
406
|
PeerAccessResponseDto: {
|
|
397
|
-
|
|
407
|
+
chats: components["schemas"]["PeerAccessChatDto"][];
|
|
398
408
|
};
|
|
399
409
|
ChatIdentifierDto: {
|
|
400
410
|
/**
|
package/dist/index.d.cts
CHANGED
|
@@ -341,19 +341,30 @@ interface PublishersStatusQueueInputClickHouseMessagesResult {
|
|
|
341
341
|
error: string;
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
|
-
interface
|
|
345
|
-
type: "get_common_chats_result";
|
|
344
|
+
interface PublishersStatusQueueInputCommonChats {
|
|
346
345
|
metadata: Metadata;
|
|
347
346
|
user: {
|
|
348
347
|
id: number;
|
|
349
|
-
username
|
|
348
|
+
username?: string;
|
|
350
349
|
};
|
|
351
|
-
|
|
350
|
+
account: {
|
|
351
|
+
id: number;
|
|
352
|
+
username?: string;
|
|
353
|
+
firstName?: string;
|
|
354
|
+
lastName?: string;
|
|
355
|
+
};
|
|
356
|
+
status: "SUCCESS" | "ERROR" | "ACCOUNT_NOT_FOUND" | "TIMEOUT" | "USERNAME_RESOLVE_ERROR" | "FLOOD_WAIT";
|
|
357
|
+
chats?: Array<{
|
|
352
358
|
id: number;
|
|
353
359
|
username?: string;
|
|
354
360
|
title?: string;
|
|
355
361
|
type: "chat" | "channel";
|
|
356
|
-
}
|
|
362
|
+
}>;
|
|
363
|
+
error?: string;
|
|
364
|
+
seconds?: number;
|
|
365
|
+
}
|
|
366
|
+
interface PublishersStatusQueueInputGetCommonChatsResult extends PublishersStatusQueueInputCommonChats {
|
|
367
|
+
type: "get_common_chats_result";
|
|
357
368
|
}
|
|
358
369
|
interface EventByType {
|
|
359
370
|
chat_parsed: ChatParsedTyped;
|
package/dist/index.d.ts
CHANGED
|
@@ -341,19 +341,30 @@ interface PublishersStatusQueueInputClickHouseMessagesResult {
|
|
|
341
341
|
error: string;
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
|
-
interface
|
|
345
|
-
type: "get_common_chats_result";
|
|
344
|
+
interface PublishersStatusQueueInputCommonChats {
|
|
346
345
|
metadata: Metadata;
|
|
347
346
|
user: {
|
|
348
347
|
id: number;
|
|
349
|
-
username
|
|
348
|
+
username?: string;
|
|
350
349
|
};
|
|
351
|
-
|
|
350
|
+
account: {
|
|
351
|
+
id: number;
|
|
352
|
+
username?: string;
|
|
353
|
+
firstName?: string;
|
|
354
|
+
lastName?: string;
|
|
355
|
+
};
|
|
356
|
+
status: "SUCCESS" | "ERROR" | "ACCOUNT_NOT_FOUND" | "TIMEOUT" | "USERNAME_RESOLVE_ERROR" | "FLOOD_WAIT";
|
|
357
|
+
chats?: Array<{
|
|
352
358
|
id: number;
|
|
353
359
|
username?: string;
|
|
354
360
|
title?: string;
|
|
355
361
|
type: "chat" | "channel";
|
|
356
|
-
}
|
|
362
|
+
}>;
|
|
363
|
+
error?: string;
|
|
364
|
+
seconds?: number;
|
|
365
|
+
}
|
|
366
|
+
interface PublishersStatusQueueInputGetCommonChatsResult extends PublishersStatusQueueInputCommonChats {
|
|
367
|
+
type: "get_common_chats_result";
|
|
357
368
|
}
|
|
358
369
|
interface EventByType {
|
|
359
370
|
chat_parsed: ChatParsedTyped;
|