@skravets/eapi 0.0.24 → 0.0.26
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 +99 -7
- package/dist/api-types.d.ts +99 -7
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/api-types.d.cts
CHANGED
|
@@ -48,8 +48,8 @@ interface paths {
|
|
|
48
48
|
post: operations["chats.deleteMessages"];
|
|
49
49
|
};
|
|
50
50
|
"/chats/search": {
|
|
51
|
-
/**
|
|
52
|
-
post: operations["chats.
|
|
51
|
+
/** search chats */
|
|
52
|
+
post: operations["chats.search"];
|
|
53
53
|
};
|
|
54
54
|
"/subscriptions": {
|
|
55
55
|
/** Upsert subscription */
|
|
@@ -133,7 +133,7 @@ interface components {
|
|
|
133
133
|
channel_id: number;
|
|
134
134
|
/**
|
|
135
135
|
* Format: date-time
|
|
136
|
-
* @example 2025-10-
|
|
136
|
+
* @example 2025-10-23T20:29:17.728Z
|
|
137
137
|
*/
|
|
138
138
|
message_created_at: string;
|
|
139
139
|
/** @example 123 */
|
|
@@ -250,15 +250,106 @@ interface components {
|
|
|
250
250
|
*/
|
|
251
251
|
accountId: number;
|
|
252
252
|
};
|
|
253
|
-
|
|
253
|
+
ISearchChatsReq: {
|
|
254
254
|
/** @description chats usernames to rank */
|
|
255
255
|
chats?: string[];
|
|
256
256
|
/** @description search query */
|
|
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 */
|
|
@@ -667,7 +758,7 @@ interface operations {
|
|
|
667
758
|
};
|
|
668
759
|
};
|
|
669
760
|
};
|
|
670
|
-
"chats.
|
|
761
|
+
"chats.search": {
|
|
671
762
|
parameters: {
|
|
672
763
|
header: {
|
|
673
764
|
/** @description `Basic token`, where token is `id:secret` base64 encoded */
|
|
@@ -676,10 +767,11 @@ interface operations {
|
|
|
676
767
|
};
|
|
677
768
|
requestBody: {
|
|
678
769
|
content: {
|
|
679
|
-
"application/json": components["schemas"]["
|
|
770
|
+
"application/json": components["schemas"]["ISearchChatsReq"];
|
|
680
771
|
};
|
|
681
772
|
};
|
|
682
773
|
responses: {
|
|
774
|
+
/** @description Search */
|
|
683
775
|
200: {
|
|
684
776
|
headers: {
|
|
685
777
|
[name: string]: unknown;
|
package/dist/api-types.d.ts
CHANGED
|
@@ -48,8 +48,8 @@ interface paths {
|
|
|
48
48
|
post: operations["chats.deleteMessages"];
|
|
49
49
|
};
|
|
50
50
|
"/chats/search": {
|
|
51
|
-
/**
|
|
52
|
-
post: operations["chats.
|
|
51
|
+
/** search chats */
|
|
52
|
+
post: operations["chats.search"];
|
|
53
53
|
};
|
|
54
54
|
"/subscriptions": {
|
|
55
55
|
/** Upsert subscription */
|
|
@@ -133,7 +133,7 @@ interface components {
|
|
|
133
133
|
channel_id: number;
|
|
134
134
|
/**
|
|
135
135
|
* Format: date-time
|
|
136
|
-
* @example 2025-10-
|
|
136
|
+
* @example 2025-10-23T20:29:17.728Z
|
|
137
137
|
*/
|
|
138
138
|
message_created_at: string;
|
|
139
139
|
/** @example 123 */
|
|
@@ -250,15 +250,106 @@ interface components {
|
|
|
250
250
|
*/
|
|
251
251
|
accountId: number;
|
|
252
252
|
};
|
|
253
|
-
|
|
253
|
+
ISearchChatsReq: {
|
|
254
254
|
/** @description chats usernames to rank */
|
|
255
255
|
chats?: string[];
|
|
256
256
|
/** @description search query */
|
|
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 */
|
|
@@ -667,7 +758,7 @@ interface operations {
|
|
|
667
758
|
};
|
|
668
759
|
};
|
|
669
760
|
};
|
|
670
|
-
"chats.
|
|
761
|
+
"chats.search": {
|
|
671
762
|
parameters: {
|
|
672
763
|
header: {
|
|
673
764
|
/** @description `Basic token`, where token is `id:secret` base64 encoded */
|
|
@@ -676,10 +767,11 @@ interface operations {
|
|
|
676
767
|
};
|
|
677
768
|
requestBody: {
|
|
678
769
|
content: {
|
|
679
|
-
"application/json": components["schemas"]["
|
|
770
|
+
"application/json": components["schemas"]["ISearchChatsReq"];
|
|
680
771
|
};
|
|
681
772
|
};
|
|
682
773
|
responses: {
|
|
774
|
+
/** @description Search */
|
|
683
775
|
200: {
|
|
684
776
|
headers: {
|
|
685
777
|
[name: string]: unknown;
|
package/dist/index.cjs
CHANGED
|
@@ -244,11 +244,11 @@ class EApi {
|
|
|
244
244
|
*
|
|
245
245
|
*
|
|
246
246
|
* @tags chats
|
|
247
|
-
* @summary
|
|
247
|
+
* @summary search chats
|
|
248
248
|
*
|
|
249
|
-
* [Documentation](.../chats/operation/chats.
|
|
249
|
+
* [Documentation](.../chats/operation/chats.search)
|
|
250
250
|
*/
|
|
251
|
-
|
|
251
|
+
search: (body, options) => {
|
|
252
252
|
return this.request("/chats/search", body, {
|
|
253
253
|
method: "POST",
|
|
254
254
|
...options
|
package/dist/index.d.cts
CHANGED
|
@@ -379,11 +379,11 @@ declare class EApi {
|
|
|
379
379
|
*
|
|
380
380
|
*
|
|
381
381
|
* @tags chats
|
|
382
|
-
* @summary
|
|
382
|
+
* @summary search chats
|
|
383
383
|
*
|
|
384
|
-
* [Documentation](.../chats/operation/chats.
|
|
384
|
+
* [Documentation](.../chats/operation/chats.search)
|
|
385
385
|
*/
|
|
386
|
-
|
|
386
|
+
search: (body: GetRequestBody<"/chats/search", "post">, options?: RequestOptions) => Promise<GetResponse<"/chats/search", "post">>;
|
|
387
387
|
};
|
|
388
388
|
/**
|
|
389
389
|
* @tags subscriptions
|
package/dist/index.d.ts
CHANGED
|
@@ -379,11 +379,11 @@ declare class EApi {
|
|
|
379
379
|
*
|
|
380
380
|
*
|
|
381
381
|
* @tags chats
|
|
382
|
-
* @summary
|
|
382
|
+
* @summary search chats
|
|
383
383
|
*
|
|
384
|
-
* [Documentation](.../chats/operation/chats.
|
|
384
|
+
* [Documentation](.../chats/operation/chats.search)
|
|
385
385
|
*/
|
|
386
|
-
|
|
386
|
+
search: (body: GetRequestBody<"/chats/search", "post">, options?: RequestOptions) => Promise<GetResponse<"/chats/search", "post">>;
|
|
387
387
|
};
|
|
388
388
|
/**
|
|
389
389
|
* @tags subscriptions
|
package/dist/index.js
CHANGED
|
@@ -242,11 +242,11 @@ class EApi {
|
|
|
242
242
|
*
|
|
243
243
|
*
|
|
244
244
|
* @tags chats
|
|
245
|
-
* @summary
|
|
245
|
+
* @summary search chats
|
|
246
246
|
*
|
|
247
|
-
* [Documentation](.../chats/operation/chats.
|
|
247
|
+
* [Documentation](.../chats/operation/chats.search)
|
|
248
248
|
*/
|
|
249
|
-
|
|
249
|
+
search: (body, options) => {
|
|
250
250
|
return this.request("/chats/search", body, {
|
|
251
251
|
method: "POST",
|
|
252
252
|
...options
|