@skravets/eapi 0.0.51 → 0.0.53
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 -3
- package/dist/api-types.d.ts +55 -3
- 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-13T15:25:49.626Z
|
|
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
|
/**
|
|
@@ -210,15 +252,25 @@ interface components {
|
|
|
210
252
|
*/
|
|
211
253
|
secondsToTyping?: number;
|
|
212
254
|
/**
|
|
213
|
-
* @description Account id
|
|
255
|
+
* @description Account id (optional, will pick best account if not provided)
|
|
214
256
|
* @example 1
|
|
215
257
|
*/
|
|
216
|
-
accountId
|
|
258
|
+
accountId?: number;
|
|
217
259
|
/**
|
|
218
260
|
* @description Webhook url POST
|
|
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
|
/**
|
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-13T15:25:49.626Z
|
|
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
|
/**
|
|
@@ -210,15 +252,25 @@ interface components {
|
|
|
210
252
|
*/
|
|
211
253
|
secondsToTyping?: number;
|
|
212
254
|
/**
|
|
213
|
-
* @description Account id
|
|
255
|
+
* @description Account id (optional, will pick best account if not provided)
|
|
214
256
|
* @example 1
|
|
215
257
|
*/
|
|
216
|
-
accountId
|
|
258
|
+
accountId?: number;
|
|
217
259
|
/**
|
|
218
260
|
* @description Webhook url POST
|
|
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
|
/**
|