@skravets/eapi 0.0.32 → 0.0.33

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.
@@ -188,7 +188,7 @@ interface components {
188
188
  channel_id: number;
189
189
  /**
190
190
  * Format: date-time
191
- * @example 2025-11-20T12:03:00.734Z
191
+ * @example 2025-12-02T14:20:50.628Z
192
192
  */
193
193
  message_created_at: string;
194
194
  /** @example 123 */
@@ -461,6 +461,16 @@ interface components {
461
461
  endsWith?: string;
462
462
  equals?: string;
463
463
  includes?: string;
464
+ /**
465
+ * @description Keyword groups - message must contain all keywords from at least one group
466
+ * @example [
467
+ * {
468
+ * "0": "keyword1",
469
+ * "1": "keyword2"
470
+ * }
471
+ * ]
472
+ */
473
+ includesKeywords?: string[][];
464
474
  in?: string[];
465
475
  not?: components["schemas"]["StringFilter"];
466
476
  options?: string;
@@ -536,6 +546,8 @@ interface components {
536
546
  lt?: string | Record<string, never>;
537
547
  lte?: string | Record<string, never>;
538
548
  not?: string | Record<string, never>;
549
+ /** @description Interval in ms string or raw seconds (fallback). */
550
+ interval?: string | number;
539
551
  };
540
552
  /** @description Restrictions query for message */
541
553
  MessageWhere: {
@@ -545,6 +557,7 @@ interface components {
545
557
  text?: components["schemas"]["StringFilter"];
546
558
  user_id?: components["schemas"]["NumberFilter"];
547
559
  username?: components["schemas"]["StringFilter"];
560
+ chat?: components["schemas"]["ChatWhere"];
548
561
  };
549
562
  /** @description Message filters dto */
550
563
  QueryMessage: {
@@ -188,7 +188,7 @@ interface components {
188
188
  channel_id: number;
189
189
  /**
190
190
  * Format: date-time
191
- * @example 2025-11-20T12:03:00.734Z
191
+ * @example 2025-12-02T14:20:50.628Z
192
192
  */
193
193
  message_created_at: string;
194
194
  /** @example 123 */
@@ -461,6 +461,16 @@ interface components {
461
461
  endsWith?: string;
462
462
  equals?: string;
463
463
  includes?: string;
464
+ /**
465
+ * @description Keyword groups - message must contain all keywords from at least one group
466
+ * @example [
467
+ * {
468
+ * "0": "keyword1",
469
+ * "1": "keyword2"
470
+ * }
471
+ * ]
472
+ */
473
+ includesKeywords?: string[][];
464
474
  in?: string[];
465
475
  not?: components["schemas"]["StringFilter"];
466
476
  options?: string;
@@ -536,6 +546,8 @@ interface components {
536
546
  lt?: string | Record<string, never>;
537
547
  lte?: string | Record<string, never>;
538
548
  not?: string | Record<string, never>;
549
+ /** @description Interval in ms string or raw seconds (fallback). */
550
+ interval?: string | number;
539
551
  };
540
552
  /** @description Restrictions query for message */
541
553
  MessageWhere: {
@@ -545,6 +557,7 @@ interface components {
545
557
  text?: components["schemas"]["StringFilter"];
546
558
  user_id?: components["schemas"]["NumberFilter"];
547
559
  username?: components["schemas"]["StringFilter"];
560
+ chat?: components["schemas"]["ChatWhere"];
548
561
  };
549
562
  /** @description Message filters dto */
550
563
  QueryMessage: {
package/dist/index.d.cts CHANGED
@@ -22,6 +22,15 @@ type RequestOptions = Omit<NonNullable<Parameters<typeof fetch>[1]>, "headers">
22
22
  mimeType?: "json" | "x-www-form-urlencoded";
23
23
  headers?: Record<string, string>;
24
24
  };
25
+ interface SubscriptionMatchedByKeywords {
26
+ type: "messages.text.includesKeywords";
27
+ value: string[];
28
+ }
29
+ type SubscriptionMatchedBy = SubscriptionMatchedByKeywords;
30
+ interface SubscriptionContext {
31
+ id: number;
32
+ matchedBy: SubscriptionMatchedBy[];
33
+ }
25
34
  type Metadata<T = Record<string, unknown>> = {
26
35
  externalId?: string;
27
36
  } & T;
@@ -78,6 +87,7 @@ interface PublishersStatusQueueInputMessagesParsed {
78
87
  plannedEnd: number;
79
88
  };
80
89
  messages: MessageStored[];
90
+ subscription: SubscriptionContext;
81
91
  metadata: {
82
92
  externalId: string;
83
93
  };
package/dist/index.d.ts CHANGED
@@ -22,6 +22,15 @@ type RequestOptions = Omit<NonNullable<Parameters<typeof fetch>[1]>, "headers">
22
22
  mimeType?: "json" | "x-www-form-urlencoded";
23
23
  headers?: Record<string, string>;
24
24
  };
25
+ interface SubscriptionMatchedByKeywords {
26
+ type: "messages.text.includesKeywords";
27
+ value: string[];
28
+ }
29
+ type SubscriptionMatchedBy = SubscriptionMatchedByKeywords;
30
+ interface SubscriptionContext {
31
+ id: number;
32
+ matchedBy: SubscriptionMatchedBy[];
33
+ }
25
34
  type Metadata<T = Record<string, unknown>> = {
26
35
  externalId?: string;
27
36
  } & T;
@@ -78,6 +87,7 @@ interface PublishersStatusQueueInputMessagesParsed {
78
87
  plannedEnd: number;
79
88
  };
80
89
  messages: MessageStored[];
90
+ subscription: SubscriptionContext;
81
91
  metadata: {
82
92
  externalId: string;
83
93
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skravets/eapi",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "module": "./dist/index.js",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.ts",