@skravets/eapi 0.0.52 → 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.
@@ -113,7 +113,7 @@ interface components {
113
113
  channel_id: number;
114
114
  /**
115
115
  * Format: date-time
116
- * @example 2026-02-12T14:14:25.828Z
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
  /**
@@ -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
  /**
@@ -113,7 +113,7 @@ interface components {
113
113
  channel_id: number;
114
114
  /**
115
115
  * Format: date-time
116
- * @example 2026-02-12T14:14:25.828Z
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
  /**
@@ -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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skravets/eapi",
3
- "version": "0.0.52",
3
+ "version": "0.0.53",
4
4
  "module": "./dist/index.js",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.ts",