@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.
@@ -113,7 +113,7 @@ interface components {
113
113
  channel_id: number;
114
114
  /**
115
115
  * Format: date-time
116
- * @example 2026-02-04T11:39:14.803Z
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
- PeerAccessItemDto: {
385
- /** @description Username that was queried */
386
- username: string;
387
- /** @description Resolved peer ID, null if not resolved */
388
- peerId?: null | number;
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
- results: components["schemas"]["PeerAccessItemDto"][];
407
+ chats: components["schemas"]["PeerAccessChatDto"][];
398
408
  };
399
409
  ChatIdentifierDto: {
400
410
  /**
@@ -113,7 +113,7 @@ interface components {
113
113
  channel_id: number;
114
114
  /**
115
115
  * Format: date-time
116
- * @example 2026-02-04T11:39:14.803Z
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
- PeerAccessItemDto: {
385
- /** @description Username that was queried */
386
- username: string;
387
- /** @description Resolved peer ID, null if not resolved */
388
- peerId?: null | number;
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
- results: components["schemas"]["PeerAccessItemDto"][];
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 PublishersStatusQueueInputGetCommonChatsResult {
345
- type: "get_common_chats_result";
344
+ interface PublishersStatusQueueInputCommonChats {
346
345
  metadata: Metadata;
347
346
  user: {
348
347
  id: number;
349
- username: string;
348
+ username?: string;
350
349
  };
351
- chats: {
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 PublishersStatusQueueInputGetCommonChatsResult {
345
- type: "get_common_chats_result";
344
+ interface PublishersStatusQueueInputCommonChats {
346
345
  metadata: Metadata;
347
346
  user: {
348
347
  id: number;
349
- username: string;
348
+ username?: string;
350
349
  };
351
- chats: {
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skravets/eapi",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
4
4
  "module": "./dist/index.js",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.ts",