@skravets/eapi 0.0.13 → 0.0.15

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.
@@ -65,7 +65,7 @@ interface components {
65
65
  channel_id: number;
66
66
  /**
67
67
  * Format: date-time
68
- * @example 2025-08-25T12:12:30.286Z
68
+ * @example 2025-09-02T10:14:42.472Z
69
69
  */
70
70
  message_created_at: string;
71
71
  /** @example 123 */
@@ -124,13 +124,19 @@ interface components {
124
124
  * @example 123
125
125
  */
126
126
  replyToId?: number;
127
+ /**
128
+ * @description Thread id to reply to
129
+ * @example 123
130
+ */
131
+ replyToThreadId?: number;
127
132
  };
128
133
  ISendMessage: {
129
134
  /**
130
135
  * @description Message to send
131
136
  * @example {
132
137
  * "text": "Hello, world!",
133
- * "replyToId": 123
138
+ * "replyToId": 124,
139
+ * "replyToThreadId": 123
134
140
  * }
135
141
  */
136
142
  message: components["schemas"]["ISendMessageMessage"];
@@ -65,7 +65,7 @@ interface components {
65
65
  channel_id: number;
66
66
  /**
67
67
  * Format: date-time
68
- * @example 2025-08-25T12:12:30.286Z
68
+ * @example 2025-09-02T10:14:42.472Z
69
69
  */
70
70
  message_created_at: string;
71
71
  /** @example 123 */
@@ -124,13 +124,19 @@ interface components {
124
124
  * @example 123
125
125
  */
126
126
  replyToId?: number;
127
+ /**
128
+ * @description Thread id to reply to
129
+ * @example 123
130
+ */
131
+ replyToThreadId?: number;
127
132
  };
128
133
  ISendMessage: {
129
134
  /**
130
135
  * @description Message to send
131
136
  * @example {
132
137
  * "text": "Hello, world!",
133
- * "replyToId": 123
138
+ * "replyToId": 124,
139
+ * "replyToThreadId": 123
134
140
  * }
135
141
  */
136
142
  message: components["schemas"]["ISendMessageMessage"];
package/dist/index.d.cts CHANGED
@@ -44,9 +44,15 @@ interface MessageStored {
44
44
  username: string;
45
45
  first_name: string;
46
46
  last_name: string;
47
- reply_message_id: number;
47
+ reply_message_id: number | null;
48
48
  has_reactions: number;
49
49
  has_comments: number;
50
+ is_pinned: boolean;
51
+ is_post: boolean;
52
+ is_forward: boolean;
53
+ thread_id: number | null;
54
+ quote_text: string | null;
55
+ has_attachments: boolean;
50
56
  }
51
57
  interface PublishersStatusQueueInputChatParsed {
52
58
  chat: ChatStored;
@@ -84,8 +90,12 @@ interface PublishersStatusQueueInputJoin {
84
90
  };
85
91
  account: {
86
92
  id: number;
93
+ username?: string;
94
+ firstName?: string;
95
+ lastName?: string;
87
96
  };
88
- status: "UNAVAILABLE" | "ALREADY_JOINED" | "JOINED";
97
+ status: "UNAVAILABLE" | "ALREADY_JOINED" | "JOINED" | "FLOOD_WAIT" | "INVITE_REQUEST_SENT";
98
+ seconds?: number;
89
99
  }
90
100
  interface PublishersStatusQueueInputJoinResult extends PublishersStatusQueueInputJoin {
91
101
  type: "chat_join_result";
@@ -100,12 +110,16 @@ interface PublishersStatusQueueInputSend {
100
110
  };
101
111
  account: {
102
112
  id: number;
113
+ username?: string;
114
+ firstName?: string;
115
+ lastName?: string;
103
116
  };
104
117
  status: "SENT" | "ERROR";
105
118
  message?: {
106
119
  id: number;
107
120
  text: string;
108
121
  reply_message_id?: number;
122
+ thread_id?: number;
109
123
  };
110
124
  }
111
125
  interface PublishersStatusQueueInputSendResult extends PublishersStatusQueueInputSend {
package/dist/index.d.ts CHANGED
@@ -44,9 +44,15 @@ interface MessageStored {
44
44
  username: string;
45
45
  first_name: string;
46
46
  last_name: string;
47
- reply_message_id: number;
47
+ reply_message_id: number | null;
48
48
  has_reactions: number;
49
49
  has_comments: number;
50
+ is_pinned: boolean;
51
+ is_post: boolean;
52
+ is_forward: boolean;
53
+ thread_id: number | null;
54
+ quote_text: string | null;
55
+ has_attachments: boolean;
50
56
  }
51
57
  interface PublishersStatusQueueInputChatParsed {
52
58
  chat: ChatStored;
@@ -84,8 +90,12 @@ interface PublishersStatusQueueInputJoin {
84
90
  };
85
91
  account: {
86
92
  id: number;
93
+ username?: string;
94
+ firstName?: string;
95
+ lastName?: string;
87
96
  };
88
- status: "UNAVAILABLE" | "ALREADY_JOINED" | "JOINED";
97
+ status: "UNAVAILABLE" | "ALREADY_JOINED" | "JOINED" | "FLOOD_WAIT" | "INVITE_REQUEST_SENT";
98
+ seconds?: number;
89
99
  }
90
100
  interface PublishersStatusQueueInputJoinResult extends PublishersStatusQueueInputJoin {
91
101
  type: "chat_join_result";
@@ -100,12 +110,16 @@ interface PublishersStatusQueueInputSend {
100
110
  };
101
111
  account: {
102
112
  id: number;
113
+ username?: string;
114
+ firstName?: string;
115
+ lastName?: string;
103
116
  };
104
117
  status: "SENT" | "ERROR";
105
118
  message?: {
106
119
  id: number;
107
120
  text: string;
108
121
  reply_message_id?: number;
122
+ thread_id?: number;
109
123
  };
110
124
  }
111
125
  interface PublishersStatusQueueInputSendResult extends PublishersStatusQueueInputSend {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skravets/eapi",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "module": "./dist/index.js",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.ts",