@skravets/eapi 0.0.25 → 0.0.28

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.
@@ -133,7 +133,7 @@ interface components {
133
133
  channel_id: number;
134
134
  /**
135
135
  * Format: date-time
136
- * @example 2025-10-23T19:53:25.898Z
136
+ * @example 2025-10-28T12:34:44.820Z
137
137
  */
138
138
  message_created_at: string;
139
139
  /** @example 123 */
@@ -257,8 +257,99 @@ interface components {
257
257
  query?: string;
258
258
  /** @description search embedding */
259
259
  embedding?: number[];
260
+ /** @description search limit */
261
+ limit?: number;
262
+ /** @description search offset */
263
+ offset?: number;
264
+ };
265
+ SemanticSearchMeta: {
266
+ /**
267
+ * @description Search type
268
+ * @example semantic | hybrid
269
+ */
270
+ type: string;
271
+ /**
272
+ * @description Similarity score
273
+ * @example 0.1
274
+ */
275
+ similarity: number;
276
+ };
277
+ HybridSearchMeta: {
278
+ /**
279
+ * @description Search type
280
+ * @example hybrid
281
+ */
282
+ type: string;
283
+ /** @description r1 */
284
+ r1: string;
285
+ /** @description r2 */
286
+ r2: string;
287
+ /** @description bm25_score */
288
+ bm25_score: number;
289
+ /** @description vec_score */
290
+ vec_score: number;
291
+ /** @description source */
292
+ source: string;
293
+ /** @description rrf */
294
+ rrf: string;
295
+ };
296
+ SearchResult: {
297
+ /** @description Meta */
298
+ meta: components["schemas"]["SemanticSearchMeta"] | components["schemas"]["HybridSearchMeta"];
299
+ /**
300
+ * @description Channel id
301
+ * @example 123
302
+ */
303
+ channel_id: string;
304
+ /**
305
+ * @description Channel name
306
+ * @example channel_name
307
+ */
308
+ channel_name: string;
309
+ /**
310
+ * @description Topic
311
+ * @example topic
312
+ */
313
+ topic: string;
314
+ /**
315
+ * @description Tone
316
+ * @example tone
317
+ */
318
+ tone: string;
319
+ /**
320
+ * @description Language
321
+ * @example language
322
+ */
323
+ language: string;
324
+ /**
325
+ * @description Audience
326
+ * @example audience
327
+ */
328
+ audience: string;
329
+ /**
330
+ * @description Tags
331
+ * @example [
332
+ * "tag1",
333
+ * "tag2"
334
+ * ]
335
+ */
336
+ tags: string[];
337
+ /**
338
+ * @description Density per day
339
+ * @example 0.1
340
+ */
341
+ density_per_day: number;
342
+ /**
343
+ * @description Last message at
344
+ * @example 2023-01-01T00:00:00.000Z
345
+ */
346
+ last_message_at: number;
347
+ /**
348
+ * @description Summary
349
+ * @example summary
350
+ */
351
+ summary: string;
260
352
  };
261
- SearchResult: Record<string, never>;
262
353
  /** @description Which fields of chat to return */
263
354
  ChatData: {
264
355
  /** @default false */
@@ -680,6 +771,7 @@ interface operations {
680
771
  };
681
772
  };
682
773
  responses: {
774
+ /** @description Search */
683
775
  200: {
684
776
  headers: {
685
777
  [name: string]: unknown;
@@ -133,7 +133,7 @@ interface components {
133
133
  channel_id: number;
134
134
  /**
135
135
  * Format: date-time
136
- * @example 2025-10-23T19:53:25.898Z
136
+ * @example 2025-10-28T12:34:44.820Z
137
137
  */
138
138
  message_created_at: string;
139
139
  /** @example 123 */
@@ -257,8 +257,99 @@ interface components {
257
257
  query?: string;
258
258
  /** @description search embedding */
259
259
  embedding?: number[];
260
+ /** @description search limit */
261
+ limit?: number;
262
+ /** @description search offset */
263
+ offset?: number;
264
+ };
265
+ SemanticSearchMeta: {
266
+ /**
267
+ * @description Search type
268
+ * @example semantic | hybrid
269
+ */
270
+ type: string;
271
+ /**
272
+ * @description Similarity score
273
+ * @example 0.1
274
+ */
275
+ similarity: number;
276
+ };
277
+ HybridSearchMeta: {
278
+ /**
279
+ * @description Search type
280
+ * @example hybrid
281
+ */
282
+ type: string;
283
+ /** @description r1 */
284
+ r1: string;
285
+ /** @description r2 */
286
+ r2: string;
287
+ /** @description bm25_score */
288
+ bm25_score: number;
289
+ /** @description vec_score */
290
+ vec_score: number;
291
+ /** @description source */
292
+ source: string;
293
+ /** @description rrf */
294
+ rrf: string;
295
+ };
296
+ SearchResult: {
297
+ /** @description Meta */
298
+ meta: components["schemas"]["SemanticSearchMeta"] | components["schemas"]["HybridSearchMeta"];
299
+ /**
300
+ * @description Channel id
301
+ * @example 123
302
+ */
303
+ channel_id: string;
304
+ /**
305
+ * @description Channel name
306
+ * @example channel_name
307
+ */
308
+ channel_name: string;
309
+ /**
310
+ * @description Topic
311
+ * @example topic
312
+ */
313
+ topic: string;
314
+ /**
315
+ * @description Tone
316
+ * @example tone
317
+ */
318
+ tone: string;
319
+ /**
320
+ * @description Language
321
+ * @example language
322
+ */
323
+ language: string;
324
+ /**
325
+ * @description Audience
326
+ * @example audience
327
+ */
328
+ audience: string;
329
+ /**
330
+ * @description Tags
331
+ * @example [
332
+ * "tag1",
333
+ * "tag2"
334
+ * ]
335
+ */
336
+ tags: string[];
337
+ /**
338
+ * @description Density per day
339
+ * @example 0.1
340
+ */
341
+ density_per_day: number;
342
+ /**
343
+ * @description Last message at
344
+ * @example 2023-01-01T00:00:00.000Z
345
+ */
346
+ last_message_at: number;
347
+ /**
348
+ * @description Summary
349
+ * @example summary
350
+ */
351
+ summary: string;
260
352
  };
261
- SearchResult: Record<string, never>;
262
353
  /** @description Which fields of chat to return */
263
354
  ChatData: {
264
355
  /** @default false */
@@ -680,6 +771,7 @@ interface operations {
680
771
  };
681
772
  };
682
773
  responses: {
774
+ /** @description Search */
683
775
  200: {
684
776
  headers: {
685
777
  [name: string]: unknown;
package/dist/index.d.cts CHANGED
@@ -95,7 +95,7 @@ interface PublishersStatusQueueInputJoin {
95
95
  firstName?: string;
96
96
  lastName?: string;
97
97
  };
98
- status: "UNAVAILABLE" | "ALREADY_JOINED" | "JOINED" | "FLOOD_WAIT" | "INVITE_REQUEST_SENT";
98
+ status: "UNAVAILABLE" | "ALREADY_JOINED" | "JOINED" | "FLOOD_WAIT" | "INVITE_REQUEST_SENT" | "USERNAME_BELONGS_TO_USER";
99
99
  seconds?: number;
100
100
  }
101
101
  interface PublishersStatusQueueInputJoinResult extends PublishersStatusQueueInputJoin {
@@ -107,7 +107,8 @@ interface PublishersStatusQueueInputSend {
107
107
  };
108
108
  chat: {
109
109
  id: number;
110
- username: string;
110
+ type: "chat" | "channel" | "user";
111
+ username?: string;
111
112
  };
112
113
  account: {
113
114
  id: number;
@@ -138,6 +139,7 @@ interface PublishersStatusQueueInputAgentPrivateMessage {
138
139
  username?: string;
139
140
  first_name?: string;
140
141
  last_name?: string;
142
+ is_bot?: boolean;
141
143
  };
142
144
  from: {
143
145
  id: number;
package/dist/index.d.ts CHANGED
@@ -95,7 +95,7 @@ interface PublishersStatusQueueInputJoin {
95
95
  firstName?: string;
96
96
  lastName?: string;
97
97
  };
98
- status: "UNAVAILABLE" | "ALREADY_JOINED" | "JOINED" | "FLOOD_WAIT" | "INVITE_REQUEST_SENT";
98
+ status: "UNAVAILABLE" | "ALREADY_JOINED" | "JOINED" | "FLOOD_WAIT" | "INVITE_REQUEST_SENT" | "USERNAME_BELONGS_TO_USER";
99
99
  seconds?: number;
100
100
  }
101
101
  interface PublishersStatusQueueInputJoinResult extends PublishersStatusQueueInputJoin {
@@ -107,7 +107,8 @@ interface PublishersStatusQueueInputSend {
107
107
  };
108
108
  chat: {
109
109
  id: number;
110
- username: string;
110
+ type: "chat" | "channel" | "user";
111
+ username?: string;
111
112
  };
112
113
  account: {
113
114
  id: number;
@@ -138,6 +139,7 @@ interface PublishersStatusQueueInputAgentPrivateMessage {
138
139
  username?: string;
139
140
  first_name?: string;
140
141
  last_name?: string;
142
+ is_bot?: boolean;
141
143
  };
142
144
  from: {
143
145
  id: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skravets/eapi",
3
- "version": "0.0.25",
3
+ "version": "0.0.28",
4
4
  "module": "./dist/index.js",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.ts",