@multi-agent-protocol/sdk 0.0.10 → 0.0.11

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.
@@ -827,7 +827,13 @@ interface SubscriptionAckNotification extends MAPNotificationBase<SubscriptionAc
827
827
  method: "map/subscribe.ack";
828
828
  params: SubscriptionAckParams;
829
829
  }
830
- /** Data for message_sent events (no payload for privacy) */
830
+ /**
831
+ * Data for message_sent events.
832
+ *
833
+ * Payload is included for subscribers that have permission to observe the
834
+ * event stream. Access control is enforced at the subscription level —
835
+ * clients that can subscribe are trusted to see message content.
836
+ */
831
837
  interface MessageSentEventData {
832
838
  messageId: MessageId;
833
839
  from: ParticipantId;
@@ -835,14 +841,21 @@ interface MessageSentEventData {
835
841
  timestamp: Timestamp;
836
842
  correlationId?: CorrelationId;
837
843
  priority?: MessagePriority;
844
+ payload?: unknown;
838
845
  }
839
- /** Data for message_delivered events (no payload for privacy) */
846
+ /**
847
+ * Data for message_delivered events.
848
+ *
849
+ * Payload is included for subscribers that have permission to observe the
850
+ * event stream. Access control is enforced at the subscription level.
851
+ */
840
852
  interface MessageDeliveredEventData {
841
853
  messageId: MessageId;
842
854
  from: ParticipantId;
843
855
  deliveredTo: ParticipantId[];
844
856
  timestamp: Timestamp;
845
857
  correlationId?: CorrelationId;
858
+ payload?: unknown;
846
859
  }
847
860
  /** Data for message_failed events */
848
861
  interface MessageFailedEventData {
@@ -827,7 +827,13 @@ interface SubscriptionAckNotification extends MAPNotificationBase<SubscriptionAc
827
827
  method: "map/subscribe.ack";
828
828
  params: SubscriptionAckParams;
829
829
  }
830
- /** Data for message_sent events (no payload for privacy) */
830
+ /**
831
+ * Data for message_sent events.
832
+ *
833
+ * Payload is included for subscribers that have permission to observe the
834
+ * event stream. Access control is enforced at the subscription level —
835
+ * clients that can subscribe are trusted to see message content.
836
+ */
831
837
  interface MessageSentEventData {
832
838
  messageId: MessageId;
833
839
  from: ParticipantId;
@@ -835,14 +841,21 @@ interface MessageSentEventData {
835
841
  timestamp: Timestamp;
836
842
  correlationId?: CorrelationId;
837
843
  priority?: MessagePriority;
844
+ payload?: unknown;
838
845
  }
839
- /** Data for message_delivered events (no payload for privacy) */
846
+ /**
847
+ * Data for message_delivered events.
848
+ *
849
+ * Payload is included for subscribers that have permission to observe the
850
+ * event stream. Access control is enforced at the subscription level.
851
+ */
840
852
  interface MessageDeliveredEventData {
841
853
  messageId: MessageId;
842
854
  from: ParticipantId;
843
855
  deliveredTo: ParticipantId[];
844
856
  timestamp: Timestamp;
845
857
  correlationId?: CorrelationId;
858
+ payload?: unknown;
846
859
  }
847
860
  /** Data for message_failed events */
848
861
  interface MessageFailedEventData {