@skravets/eapi 0.0.24 → 0.0.25
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 +6 -6
- package/dist/api-types.d.ts +6 -6
- 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-23T19:
|
|
136
|
+
* @example 2025-10-23T19:53:25.898Z
|
|
137
137
|
*/
|
|
138
138
|
message_created_at: string;
|
|
139
139
|
/** @example 123 */
|
|
@@ -250,7 +250,7 @@ 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 */
|
|
@@ -667,7 +667,7 @@ interface operations {
|
|
|
667
667
|
};
|
|
668
668
|
};
|
|
669
669
|
};
|
|
670
|
-
"chats.
|
|
670
|
+
"chats.search": {
|
|
671
671
|
parameters: {
|
|
672
672
|
header: {
|
|
673
673
|
/** @description `Basic token`, where token is `id:secret` base64 encoded */
|
|
@@ -676,7 +676,7 @@ interface operations {
|
|
|
676
676
|
};
|
|
677
677
|
requestBody: {
|
|
678
678
|
content: {
|
|
679
|
-
"application/json": components["schemas"]["
|
|
679
|
+
"application/json": components["schemas"]["ISearchChatsReq"];
|
|
680
680
|
};
|
|
681
681
|
};
|
|
682
682
|
responses: {
|
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-23T19:
|
|
136
|
+
* @example 2025-10-23T19:53:25.898Z
|
|
137
137
|
*/
|
|
138
138
|
message_created_at: string;
|
|
139
139
|
/** @example 123 */
|
|
@@ -250,7 +250,7 @@ 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 */
|
|
@@ -667,7 +667,7 @@ interface operations {
|
|
|
667
667
|
};
|
|
668
668
|
};
|
|
669
669
|
};
|
|
670
|
-
"chats.
|
|
670
|
+
"chats.search": {
|
|
671
671
|
parameters: {
|
|
672
672
|
header: {
|
|
673
673
|
/** @description `Basic token`, where token is `id:secret` base64 encoded */
|
|
@@ -676,7 +676,7 @@ interface operations {
|
|
|
676
676
|
};
|
|
677
677
|
requestBody: {
|
|
678
678
|
content: {
|
|
679
|
-
"application/json": components["schemas"]["
|
|
679
|
+
"application/json": components["schemas"]["ISearchChatsReq"];
|
|
680
680
|
};
|
|
681
681
|
};
|
|
682
682
|
responses: {
|
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
|