@skravets/eapi 0.0.52 → 0.0.54
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 +55 -1
- package/dist/api-types.d.ts +55 -1
- 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-18T15:57:17.515Z
|
|
117
117
|
*/
|
|
118
118
|
message_created_at: string;
|
|
119
119
|
/** @example 123 */
|
|
@@ -193,6 +193,48 @@ interface components {
|
|
|
193
193
|
* @example 123
|
|
194
194
|
*/
|
|
195
195
|
replyToThreadId?: number;
|
|
196
|
+
/**
|
|
197
|
+
* @description Disable web preview
|
|
198
|
+
* @example true
|
|
199
|
+
*/
|
|
200
|
+
disableWebPreview?: boolean;
|
|
201
|
+
};
|
|
202
|
+
IFollowUpMessage: {
|
|
203
|
+
/**
|
|
204
|
+
* @description Unique external ID for the follow-up message
|
|
205
|
+
* @example scenario-1-msg-b
|
|
206
|
+
*/
|
|
207
|
+
externalId: string;
|
|
208
|
+
/**
|
|
209
|
+
* @description Text of the follow-up message
|
|
210
|
+
* @example Да, посмотри @somecourse — сам проходил, очень годно!
|
|
211
|
+
*/
|
|
212
|
+
text: string;
|
|
213
|
+
/**
|
|
214
|
+
* @description Delay in minutes before sending (default: random 5-10 minutes)
|
|
215
|
+
* @example 7
|
|
216
|
+
*/
|
|
217
|
+
delayMinutes?: number;
|
|
218
|
+
/**
|
|
219
|
+
* @description Disable web preview
|
|
220
|
+
* @example false
|
|
221
|
+
*/
|
|
222
|
+
disableWebPreview?: boolean;
|
|
223
|
+
/**
|
|
224
|
+
* @description Message id to reply to
|
|
225
|
+
* @example 123
|
|
226
|
+
*/
|
|
227
|
+
replyToId?: number;
|
|
228
|
+
/**
|
|
229
|
+
* @description Thread id to reply to
|
|
230
|
+
* @example 123
|
|
231
|
+
*/
|
|
232
|
+
replyToThreadId?: number;
|
|
233
|
+
/**
|
|
234
|
+
* @description Account id (optional, different account from first message)
|
|
235
|
+
* @example 1
|
|
236
|
+
*/
|
|
237
|
+
accountId?: number;
|
|
196
238
|
};
|
|
197
239
|
ISendMessage: {
|
|
198
240
|
/**
|
|
@@ -219,6 +261,16 @@ interface components {
|
|
|
219
261
|
* @example https://webhook.site/123e4567-e89b-12d3-a456-426614174000
|
|
220
262
|
*/
|
|
221
263
|
webhookUrl: string;
|
|
264
|
+
/**
|
|
265
|
+
* @description Follow-up message from another account (for dialogue scenarios)
|
|
266
|
+
* @example {
|
|
267
|
+
* "externalId": "scenario-1-msg-b",
|
|
268
|
+
* "text": "Да, посмотри @somecourse — сам проходил, очень годно!",
|
|
269
|
+
* "delayMinutes": 7,
|
|
270
|
+
* "disableWebPreview": false
|
|
271
|
+
* }
|
|
272
|
+
*/
|
|
273
|
+
followUpMessage?: components["schemas"]["IFollowUpMessage"];
|
|
222
274
|
};
|
|
223
275
|
IDeleteMessage: {
|
|
224
276
|
/**
|
|
@@ -250,6 +302,8 @@ interface components {
|
|
|
250
302
|
languages?: string[];
|
|
251
303
|
/** @description Filter by keywords (any match) */
|
|
252
304
|
keywords?: string[];
|
|
305
|
+
/** @description Maximum spam ratio (inclusive). Chats with null spam_ratio are always included when this filter is set. */
|
|
306
|
+
maxSpamRatio?: number;
|
|
253
307
|
};
|
|
254
308
|
CatalogSearchRequest: {
|
|
255
309
|
/** @description Search query text */
|
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-18T15:57:17.515Z
|
|
117
117
|
*/
|
|
118
118
|
message_created_at: string;
|
|
119
119
|
/** @example 123 */
|
|
@@ -193,6 +193,48 @@ interface components {
|
|
|
193
193
|
* @example 123
|
|
194
194
|
*/
|
|
195
195
|
replyToThreadId?: number;
|
|
196
|
+
/**
|
|
197
|
+
* @description Disable web preview
|
|
198
|
+
* @example true
|
|
199
|
+
*/
|
|
200
|
+
disableWebPreview?: boolean;
|
|
201
|
+
};
|
|
202
|
+
IFollowUpMessage: {
|
|
203
|
+
/**
|
|
204
|
+
* @description Unique external ID for the follow-up message
|
|
205
|
+
* @example scenario-1-msg-b
|
|
206
|
+
*/
|
|
207
|
+
externalId: string;
|
|
208
|
+
/**
|
|
209
|
+
* @description Text of the follow-up message
|
|
210
|
+
* @example Да, посмотри @somecourse — сам проходил, очень годно!
|
|
211
|
+
*/
|
|
212
|
+
text: string;
|
|
213
|
+
/**
|
|
214
|
+
* @description Delay in minutes before sending (default: random 5-10 minutes)
|
|
215
|
+
* @example 7
|
|
216
|
+
*/
|
|
217
|
+
delayMinutes?: number;
|
|
218
|
+
/**
|
|
219
|
+
* @description Disable web preview
|
|
220
|
+
* @example false
|
|
221
|
+
*/
|
|
222
|
+
disableWebPreview?: boolean;
|
|
223
|
+
/**
|
|
224
|
+
* @description Message id to reply to
|
|
225
|
+
* @example 123
|
|
226
|
+
*/
|
|
227
|
+
replyToId?: number;
|
|
228
|
+
/**
|
|
229
|
+
* @description Thread id to reply to
|
|
230
|
+
* @example 123
|
|
231
|
+
*/
|
|
232
|
+
replyToThreadId?: number;
|
|
233
|
+
/**
|
|
234
|
+
* @description Account id (optional, different account from first message)
|
|
235
|
+
* @example 1
|
|
236
|
+
*/
|
|
237
|
+
accountId?: number;
|
|
196
238
|
};
|
|
197
239
|
ISendMessage: {
|
|
198
240
|
/**
|
|
@@ -219,6 +261,16 @@ interface components {
|
|
|
219
261
|
* @example https://webhook.site/123e4567-e89b-12d3-a456-426614174000
|
|
220
262
|
*/
|
|
221
263
|
webhookUrl: string;
|
|
264
|
+
/**
|
|
265
|
+
* @description Follow-up message from another account (for dialogue scenarios)
|
|
266
|
+
* @example {
|
|
267
|
+
* "externalId": "scenario-1-msg-b",
|
|
268
|
+
* "text": "Да, посмотри @somecourse — сам проходил, очень годно!",
|
|
269
|
+
* "delayMinutes": 7,
|
|
270
|
+
* "disableWebPreview": false
|
|
271
|
+
* }
|
|
272
|
+
*/
|
|
273
|
+
followUpMessage?: components["schemas"]["IFollowUpMessage"];
|
|
222
274
|
};
|
|
223
275
|
IDeleteMessage: {
|
|
224
276
|
/**
|
|
@@ -250,6 +302,8 @@ interface components {
|
|
|
250
302
|
languages?: string[];
|
|
251
303
|
/** @description Filter by keywords (any match) */
|
|
252
304
|
keywords?: string[];
|
|
305
|
+
/** @description Maximum spam ratio (inclusive). Chats with null spam_ratio are always included when this filter is set. */
|
|
306
|
+
maxSpamRatio?: number;
|
|
253
307
|
};
|
|
254
308
|
CatalogSearchRequest: {
|
|
255
309
|
/** @description Search query text */
|