@aichatwar/shared 1.0.149 → 1.0.151

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.
@@ -136,4 +136,13 @@ interface AgentCreationFailedEvent extends BaseEvent {
136
136
  metadata?: Record<string, any>;
137
137
  };
138
138
  }
139
- export { AgentCreatedEvent, AgentUpdatedEvent, AgentDeletedEvent, AgentIngestedEvent, AgentCreationReplySuccessEvent, AgentCreationReplyFailedEvent, AgentCreationFailedEvent };
139
+ interface AgentFeedbackAddedEvent extends BaseEvent {
140
+ subject: Subjects.AgentFeedbackAdded;
141
+ data: {
142
+ agentId: string;
143
+ ownerUserId: string;
144
+ feedbackText: string;
145
+ totalFeedbackCount: number;
146
+ };
147
+ }
148
+ export { AgentCreatedEvent, AgentUpdatedEvent, AgentDeletedEvent, AgentIngestedEvent, AgentCreationReplySuccessEvent, AgentCreationReplyFailedEvent, AgentCreationFailedEvent, AgentFeedbackAddedEvent };
@@ -11,6 +11,8 @@ interface CommentCreatedEvent extends BaseEvent {
11
11
  parentCommentId?: string;
12
12
  /** userId of the post author — used by notification-service to route the notification */
13
13
  postAuthorId?: string;
14
+ /** Display name of the commenter — used by notification-service for personalised text */
15
+ actorName?: string;
14
16
  version: number;
15
17
  };
16
18
  }
@@ -9,6 +9,8 @@ interface FriendshipAcceptedEvent extends BaseEvent {
9
9
  recipient: string;
10
10
  status: FriendshipStatus;
11
11
  version: number;
12
+ /** Display name of the person who accepted — used by notification-service */
13
+ actorName?: string;
12
14
  };
13
15
  }
14
16
  interface FriendshipRequestedEvent extends BaseEvent {
@@ -19,6 +21,8 @@ interface FriendshipRequestedEvent extends BaseEvent {
19
21
  recipient: string;
20
22
  status: FriendshipStatus;
21
23
  version: number;
24
+ /** Display name of the requester — used by notification-service for personalised text */
25
+ actorName?: string;
22
26
  };
23
27
  }
24
28
  interface FriendshipUpdatedEvent extends BaseEvent {
@@ -29,6 +33,8 @@ interface FriendshipUpdatedEvent extends BaseEvent {
29
33
  recipient: string;
30
34
  status: FriendshipStatus;
31
35
  version: number;
36
+ /** Display name of the actor who updated the friendship */
37
+ actorName?: string;
32
38
  };
33
39
  }
34
40
  export { FriendshipAcceptedEvent, FriendshipUpdatedEvent, FriendshipRequestedEvent };
@@ -11,6 +11,8 @@ interface ReactionCreatedEvent extends BaseEvent {
11
11
  /** userId of the post/comment author — used by notification-service */
12
12
  postAuthorId?: string;
13
13
  commentAuthorId?: string;
14
+ /** Display name of the reactor — used by notification-service for personalised text */
15
+ actorName?: string;
14
16
  version: number;
15
17
  };
16
18
  }
@@ -19,6 +19,7 @@ export declare enum Subjects {
19
19
  AgentCreationReplySuccess = "agent.creation.reply.success",
20
20
  AgentCreationReplyFailed = "agent.creation.reply.failed",
21
21
  AgentCreationFailed = "agent.creation.failed",
22
+ AgentFeedbackAdded = "agent.feedback.added",
22
23
  CommentCreated = "comment.created",
23
24
  CommentUpdated = "comment.updated",
24
25
  CommentDeleted = "comment.deleted",
@@ -23,6 +23,7 @@ var Subjects;
23
23
  Subjects["AgentCreationReplySuccess"] = "agent.creation.reply.success";
24
24
  Subjects["AgentCreationReplyFailed"] = "agent.creation.reply.failed";
25
25
  Subjects["AgentCreationFailed"] = "agent.creation.failed";
26
+ Subjects["AgentFeedbackAdded"] = "agent.feedback.added";
26
27
  Subjects["CommentCreated"] = "comment.created";
27
28
  Subjects["CommentUpdated"] = "comment.updated";
28
29
  Subjects["CommentDeleted"] = "comment.deleted";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aichatwar/shared",
3
- "version": "1.0.149",
3
+ "version": "1.0.151",
4
4
  "main": "./build/index.js",
5
5
  "typs": "./build/index.d.ts",
6
6
  "files": [