@skravets/eapi 0.0.33 → 0.0.34
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 +34 -1
- package/dist/api-types.d.ts +34 -1
- package/dist/index.cjs +11 -0
- package/dist/index.d.cts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +11 -0
- package/package.json +1 -1
package/dist/api-types.d.cts
CHANGED
|
@@ -11,6 +11,10 @@ interface paths {
|
|
|
11
11
|
/** Get Hello World! */
|
|
12
12
|
get: operations["app.getHello"];
|
|
13
13
|
};
|
|
14
|
+
"/health": {
|
|
15
|
+
/** Health check */
|
|
16
|
+
get: operations["app.health"];
|
|
17
|
+
};
|
|
14
18
|
"/messages/search": {
|
|
15
19
|
/** Search messages by phrases and time interval */
|
|
16
20
|
post: operations["messages.searchMessages"];
|
|
@@ -188,7 +192,7 @@ interface components {
|
|
|
188
192
|
channel_id: number;
|
|
189
193
|
/**
|
|
190
194
|
* Format: date-time
|
|
191
|
-
* @example 2025-12-
|
|
195
|
+
* @example 2025-12-03T12:43:05.826Z
|
|
192
196
|
*/
|
|
193
197
|
message_created_at: string;
|
|
194
198
|
/** @example 123 */
|
|
@@ -201,6 +205,10 @@ interface components {
|
|
|
201
205
|
username: string;
|
|
202
206
|
/** @example 123 */
|
|
203
207
|
reply_message_id: number;
|
|
208
|
+
/** @example ru */
|
|
209
|
+
language: null | string;
|
|
210
|
+
/** @example false */
|
|
211
|
+
is_probably_spam: boolean;
|
|
204
212
|
};
|
|
205
213
|
ICursor: {
|
|
206
214
|
/**
|
|
@@ -549,6 +557,13 @@ interface components {
|
|
|
549
557
|
/** @description Interval in ms string or raw seconds (fallback). */
|
|
550
558
|
interval?: string | number;
|
|
551
559
|
};
|
|
560
|
+
/** @description Boolean filter */
|
|
561
|
+
BooleanFilter: {
|
|
562
|
+
/** @description Equals boolean value */
|
|
563
|
+
equals?: boolean;
|
|
564
|
+
/** @description Negated boolean filter or value */
|
|
565
|
+
not?: components["schemas"]["BooleanFilter"];
|
|
566
|
+
};
|
|
552
567
|
/** @description Restrictions query for message */
|
|
553
568
|
MessageWhere: {
|
|
554
569
|
channel_id?: components["schemas"]["NumberFilter"];
|
|
@@ -557,6 +572,8 @@ interface components {
|
|
|
557
572
|
text?: components["schemas"]["StringFilter"];
|
|
558
573
|
user_id?: components["schemas"]["NumberFilter"];
|
|
559
574
|
username?: components["schemas"]["StringFilter"];
|
|
575
|
+
language?: components["schemas"]["StringFilter"];
|
|
576
|
+
is_probably_spam?: components["schemas"]["BooleanFilter"];
|
|
560
577
|
chat?: components["schemas"]["ChatWhere"];
|
|
561
578
|
};
|
|
562
579
|
/** @description Message filters dto */
|
|
@@ -604,6 +621,22 @@ interface operations {
|
|
|
604
621
|
};
|
|
605
622
|
};
|
|
606
623
|
};
|
|
624
|
+
"app.health": {
|
|
625
|
+
parameters: {
|
|
626
|
+
header: {
|
|
627
|
+
/** @description `Basic token`, where token is `id:secret` base64 encoded */
|
|
628
|
+
Authorization: string;
|
|
629
|
+
};
|
|
630
|
+
};
|
|
631
|
+
responses: {
|
|
632
|
+
/** @description OK */
|
|
633
|
+
200: {
|
|
634
|
+
headers: {
|
|
635
|
+
[name: string]: unknown;
|
|
636
|
+
};
|
|
637
|
+
};
|
|
638
|
+
};
|
|
639
|
+
};
|
|
607
640
|
"messages.searchMessages": {
|
|
608
641
|
parameters: {
|
|
609
642
|
header: {
|
package/dist/api-types.d.ts
CHANGED
|
@@ -11,6 +11,10 @@ interface paths {
|
|
|
11
11
|
/** Get Hello World! */
|
|
12
12
|
get: operations["app.getHello"];
|
|
13
13
|
};
|
|
14
|
+
"/health": {
|
|
15
|
+
/** Health check */
|
|
16
|
+
get: operations["app.health"];
|
|
17
|
+
};
|
|
14
18
|
"/messages/search": {
|
|
15
19
|
/** Search messages by phrases and time interval */
|
|
16
20
|
post: operations["messages.searchMessages"];
|
|
@@ -188,7 +192,7 @@ interface components {
|
|
|
188
192
|
channel_id: number;
|
|
189
193
|
/**
|
|
190
194
|
* Format: date-time
|
|
191
|
-
* @example 2025-12-
|
|
195
|
+
* @example 2025-12-03T12:43:05.826Z
|
|
192
196
|
*/
|
|
193
197
|
message_created_at: string;
|
|
194
198
|
/** @example 123 */
|
|
@@ -201,6 +205,10 @@ interface components {
|
|
|
201
205
|
username: string;
|
|
202
206
|
/** @example 123 */
|
|
203
207
|
reply_message_id: number;
|
|
208
|
+
/** @example ru */
|
|
209
|
+
language: null | string;
|
|
210
|
+
/** @example false */
|
|
211
|
+
is_probably_spam: boolean;
|
|
204
212
|
};
|
|
205
213
|
ICursor: {
|
|
206
214
|
/**
|
|
@@ -549,6 +557,13 @@ interface components {
|
|
|
549
557
|
/** @description Interval in ms string or raw seconds (fallback). */
|
|
550
558
|
interval?: string | number;
|
|
551
559
|
};
|
|
560
|
+
/** @description Boolean filter */
|
|
561
|
+
BooleanFilter: {
|
|
562
|
+
/** @description Equals boolean value */
|
|
563
|
+
equals?: boolean;
|
|
564
|
+
/** @description Negated boolean filter or value */
|
|
565
|
+
not?: components["schemas"]["BooleanFilter"];
|
|
566
|
+
};
|
|
552
567
|
/** @description Restrictions query for message */
|
|
553
568
|
MessageWhere: {
|
|
554
569
|
channel_id?: components["schemas"]["NumberFilter"];
|
|
@@ -557,6 +572,8 @@ interface components {
|
|
|
557
572
|
text?: components["schemas"]["StringFilter"];
|
|
558
573
|
user_id?: components["schemas"]["NumberFilter"];
|
|
559
574
|
username?: components["schemas"]["StringFilter"];
|
|
575
|
+
language?: components["schemas"]["StringFilter"];
|
|
576
|
+
is_probably_spam?: components["schemas"]["BooleanFilter"];
|
|
560
577
|
chat?: components["schemas"]["ChatWhere"];
|
|
561
578
|
};
|
|
562
579
|
/** @description Message filters dto */
|
|
@@ -604,6 +621,22 @@ interface operations {
|
|
|
604
621
|
};
|
|
605
622
|
};
|
|
606
623
|
};
|
|
624
|
+
"app.health": {
|
|
625
|
+
parameters: {
|
|
626
|
+
header: {
|
|
627
|
+
/** @description `Basic token`, where token is `id:secret` base64 encoded */
|
|
628
|
+
Authorization: string;
|
|
629
|
+
};
|
|
630
|
+
};
|
|
631
|
+
responses: {
|
|
632
|
+
/** @description OK */
|
|
633
|
+
200: {
|
|
634
|
+
headers: {
|
|
635
|
+
[name: string]: unknown;
|
|
636
|
+
};
|
|
637
|
+
};
|
|
638
|
+
};
|
|
639
|
+
};
|
|
607
640
|
"messages.searchMessages": {
|
|
608
641
|
parameters: {
|
|
609
642
|
header: {
|
package/dist/index.cjs
CHANGED
|
@@ -106,6 +106,17 @@ class EApi {
|
|
|
106
106
|
*/
|
|
107
107
|
getHello: (options) => {
|
|
108
108
|
return this.request("/", void 0, { method: "GET", ...options });
|
|
109
|
+
},
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
*
|
|
113
|
+
* @tags App
|
|
114
|
+
* @summary Health check
|
|
115
|
+
*
|
|
116
|
+
* [Documentation](.../App/operation/app.health)
|
|
117
|
+
*/
|
|
118
|
+
health: (options) => {
|
|
119
|
+
return this.request("/health", void 0, { method: "GET", ...options });
|
|
109
120
|
}
|
|
110
121
|
};
|
|
111
122
|
/**
|
package/dist/index.d.cts
CHANGED
|
@@ -47,6 +47,9 @@ interface ChatStored {
|
|
|
47
47
|
is_locked: boolean;
|
|
48
48
|
linked_chat_id: number | null;
|
|
49
49
|
}
|
|
50
|
+
interface MessageMatchReason {
|
|
51
|
+
keywords?: string[];
|
|
52
|
+
}
|
|
50
53
|
interface MessageStored {
|
|
51
54
|
channel_id: number;
|
|
52
55
|
message_id: number;
|
|
@@ -66,6 +69,7 @@ interface MessageStored {
|
|
|
66
69
|
thread_id: number | null;
|
|
67
70
|
quote_text: string | null;
|
|
68
71
|
has_attachments: boolean;
|
|
72
|
+
matchReason?: MessageMatchReason;
|
|
69
73
|
}
|
|
70
74
|
interface PublishersStatusQueueInputChatParsed {
|
|
71
75
|
chat: ChatStored;
|
|
@@ -346,6 +350,15 @@ declare class EApi {
|
|
|
346
350
|
* [Documentation](.../App/operation/app.getHello)
|
|
347
351
|
*/
|
|
348
352
|
getHello: (options?: RequestOptions) => Promise<GetResponse<"/", "get">>;
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
*
|
|
356
|
+
* @tags App
|
|
357
|
+
* @summary Health check
|
|
358
|
+
*
|
|
359
|
+
* [Documentation](.../App/operation/app.health)
|
|
360
|
+
*/
|
|
361
|
+
health: (options?: RequestOptions) => Promise<GetResponse<"/health", "get">>;
|
|
349
362
|
};
|
|
350
363
|
/**
|
|
351
364
|
* @tags messages
|
package/dist/index.d.ts
CHANGED
|
@@ -47,6 +47,9 @@ interface ChatStored {
|
|
|
47
47
|
is_locked: boolean;
|
|
48
48
|
linked_chat_id: number | null;
|
|
49
49
|
}
|
|
50
|
+
interface MessageMatchReason {
|
|
51
|
+
keywords?: string[];
|
|
52
|
+
}
|
|
50
53
|
interface MessageStored {
|
|
51
54
|
channel_id: number;
|
|
52
55
|
message_id: number;
|
|
@@ -66,6 +69,7 @@ interface MessageStored {
|
|
|
66
69
|
thread_id: number | null;
|
|
67
70
|
quote_text: string | null;
|
|
68
71
|
has_attachments: boolean;
|
|
72
|
+
matchReason?: MessageMatchReason;
|
|
69
73
|
}
|
|
70
74
|
interface PublishersStatusQueueInputChatParsed {
|
|
71
75
|
chat: ChatStored;
|
|
@@ -346,6 +350,15 @@ declare class EApi {
|
|
|
346
350
|
* [Documentation](.../App/operation/app.getHello)
|
|
347
351
|
*/
|
|
348
352
|
getHello: (options?: RequestOptions) => Promise<GetResponse<"/", "get">>;
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
*
|
|
356
|
+
* @tags App
|
|
357
|
+
* @summary Health check
|
|
358
|
+
*
|
|
359
|
+
* [Documentation](.../App/operation/app.health)
|
|
360
|
+
*/
|
|
361
|
+
health: (options?: RequestOptions) => Promise<GetResponse<"/health", "get">>;
|
|
349
362
|
};
|
|
350
363
|
/**
|
|
351
364
|
* @tags messages
|
package/dist/index.js
CHANGED
|
@@ -104,6 +104,17 @@ class EApi {
|
|
|
104
104
|
*/
|
|
105
105
|
getHello: (options) => {
|
|
106
106
|
return this.request("/", void 0, { method: "GET", ...options });
|
|
107
|
+
},
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
*
|
|
111
|
+
* @tags App
|
|
112
|
+
* @summary Health check
|
|
113
|
+
*
|
|
114
|
+
* [Documentation](.../App/operation/app.health)
|
|
115
|
+
*/
|
|
116
|
+
health: (options) => {
|
|
117
|
+
return this.request("/health", void 0, { method: "GET", ...options });
|
|
107
118
|
}
|
|
108
119
|
};
|
|
109
120
|
/**
|