@automagik/omni 2.260910.3 → 2.260910.5

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.
@@ -251595,7 +251595,7 @@ var init_sentry_scrub = __esm(() => {
251595
251595
  var require_package7 = __commonJS((exports, module) => {
251596
251596
  module.exports = {
251597
251597
  name: "@omni/api",
251598
- version: "2.260910.3",
251598
+ version: "2.260910.5",
251599
251599
  private: true,
251600
251600
  type: "module",
251601
251601
  exports: {
@@ -370406,6 +370406,7 @@ class EventService {
370406
370406
  channel: channel5,
370407
370407
  instanceId,
370408
370408
  personId,
370409
+ chatId,
370409
370410
  eventType,
370410
370411
  contentType,
370411
370412
  direction,
@@ -370427,6 +370428,9 @@ class EventService {
370427
370428
  if (personId) {
370428
370429
  conditions3.push(eq(omniEvents.personId, personId));
370429
370430
  }
370431
+ if (chatId) {
370432
+ conditions3.push(eq(omniEvents.chatUuid, chatId));
370433
+ }
370430
370434
  if (eventType?.length) {
370431
370435
  const exact = eventType.filter((t) => !t.endsWith("*"));
370432
370436
  const prefixes = eventType.filter((t) => t.endsWith("*")).map((t) => t.slice(0, -1));
@@ -380074,6 +380078,7 @@ function registerEventSchemas(registry4) {
380074
380078
  channel: exports_external.string().optional().openapi({ description: "Channel types (comma-separated)" }),
380075
380079
  instanceId: exports_external.string().uuid().optional().openapi({ description: "Filter by instance" }),
380076
380080
  personId: exports_external.string().uuid().optional().openapi({ description: "Filter by person" }),
380081
+ chatId: exports_external.string().uuid().optional().openapi({ description: "Filter by chat UUID" }),
380077
380082
  eventType: exports_external.string().optional().openapi({ description: "Event types (comma-separated)" }),
380078
380083
  contentType: exports_external.string().optional().openapi({ description: "Content types (comma-separated)" }),
380079
380084
  direction: exports_external.enum(["inbound", "outbound"]).optional().openapi({ description: "Direction" }),
@@ -386583,6 +386588,7 @@ var init_events4 = __esm(() => {
386583
386588
  channel: exports_external.string().optional().transform((v2) => v2?.split(",")),
386584
386589
  instanceId: exports_external.string().uuid().optional(),
386585
386590
  personId: exports_external.string().uuid().optional(),
386591
+ chatId: exports_external.string().uuid().optional(),
386586
386592
  eventType: exports_external.string().optional().transform((v2) => v2?.split(",")),
386587
386593
  contentType: exports_external.string().optional().transform((v2) => v2?.split(",")),
386588
386594
  direction: exports_external.enum(["inbound", "outbound"]).optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automagik/omni",
3
- "version": "2.260910.3",
3
+ "version": "2.260910.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/automagik-dev/omni.git",