@sentry/junior-memory 0.206.0 → 0.207.0

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/index.d.ts CHANGED
@@ -551,15 +551,15 @@ declare const memoryRuntimeContextSchema: z.ZodObject<{
551
551
  }>;
552
552
  conversationId: z.ZodString;
553
553
  }, z.core.$strict>, z.ZodObject<{
554
- kind: z.ZodLiteral<"resource_event">;
554
+ kind: z.ZodLiteral<"event">;
555
555
  eventKey: z.ZodString;
556
556
  eventType: z.ZodString;
557
557
  identifier: z.ZodString;
558
558
  namespace: z.ZodString;
559
559
  }, z.core.$strict>, z.ZodObject<{
560
- kind: z.ZodLiteral<"scheduled_task">;
560
+ kind: z.ZodLiteral<"scheduled_automation">;
561
561
  }, z.core.$strict>, z.ZodObject<{
562
- kind: z.ZodLiteral<"event_task">;
562
+ kind: z.ZodLiteral<"event_automation">;
563
563
  }, z.core.$strict>, z.ZodObject<{
564
564
  kind: z.ZodLiteral<"plugin_dispatch">;
565
565
  }, z.core.$strict>, z.ZodObject<{
@@ -677,15 +677,15 @@ declare const memorySupersessionInputSchema: z.ZodObject<{
677
677
  }>;
678
678
  conversationId: z.ZodString;
679
679
  }, z.core.$strict>, z.ZodObject<{
680
- kind: z.ZodLiteral<"resource_event">;
680
+ kind: z.ZodLiteral<"event">;
681
681
  eventKey: z.ZodString;
682
682
  eventType: z.ZodString;
683
683
  identifier: z.ZodString;
684
684
  namespace: z.ZodString;
685
685
  }, z.core.$strict>, z.ZodObject<{
686
- kind: z.ZodLiteral<"scheduled_task">;
686
+ kind: z.ZodLiteral<"scheduled_automation">;
687
687
  }, z.core.$strict>, z.ZodObject<{
688
- kind: z.ZodLiteral<"event_task">;
688
+ kind: z.ZodLiteral<"event_automation">;
689
689
  }, z.core.$strict>, z.ZodObject<{
690
690
  kind: z.ZodLiteral<"plugin_dispatch">;
691
691
  }, z.core.$strict>, z.ZodObject<{
package/dist/index.js CHANGED
@@ -373,9 +373,9 @@ function storedMemorySource(source) {
373
373
  case "local":
374
374
  case "web":
375
375
  return source.kind;
376
- case "resource_event":
377
- case "scheduled_task":
378
- case "event_task":
376
+ case "event":
377
+ case "scheduled_automation":
378
+ case "event_automation":
379
379
  case "plugin_dispatch":
380
380
  case "agent_invocation":
381
381
  throw new Error(`${source.kind} Source cannot own a Memory.`);
@@ -1469,10 +1469,10 @@ function sourceLabel(source) {
1469
1469
  case "web":
1470
1470
  case "local":
1471
1471
  return `${source.kind}:${source.conversationId}`;
1472
- case "resource_event":
1473
- return `resource-event:${source.namespace}:${source.eventKey}`;
1474
- case "scheduled_task":
1475
- case "event_task":
1472
+ case "event":
1473
+ return `event:${source.namespace}:${source.eventKey}`;
1474
+ case "scheduled_automation":
1475
+ case "event_automation":
1476
1476
  case "plugin_dispatch":
1477
1477
  case "agent_invocation":
1478
1478
  return source.kind;