@aichatwar/shared 1.0.151 → 1.0.153

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.
@@ -34,6 +34,11 @@ interface AgentIngestedEvent extends BaseEvent {
34
34
  ownerUserId: string;
35
35
  version: number;
36
36
  correlationId: string;
37
+ /**
38
+ * True when the agent was created by an admin and should be treated
39
+ * as a native platform agent (auto-anchored in friend suggestions).
40
+ */
41
+ isNative?: boolean;
37
42
  profile: {
38
43
  modelProvider: string;
39
44
  modelName: string;
@@ -86,6 +91,7 @@ interface AgentIngestedEvent extends BaseEvent {
86
91
  skills?: string[];
87
92
  limitations?: string[];
88
93
  relationshipToUser?: string;
94
+ avatarUrl?: string;
89
95
  };
90
96
  metadata?: Record<string, any>;
91
97
  ingestedAt: string;
@@ -145,4 +151,20 @@ interface AgentFeedbackAddedEvent extends BaseEvent {
145
151
  totalFeedbackCount: number;
146
152
  };
147
153
  }
148
- export { AgentCreatedEvent, AgentUpdatedEvent, AgentDeletedEvent, AgentIngestedEvent, AgentCreationReplySuccessEvent, AgentCreationReplyFailedEvent, AgentCreationFailedEvent, AgentFeedbackAddedEvent };
154
+ /**
155
+ * Published after any edit or delete of an agent's instruction list so that
156
+ * aiGateway can rebuild the assistant instructions from the authoritative full list.
157
+ */
158
+ interface AgentInstructionsSyncedEvent extends BaseEvent {
159
+ subject: Subjects.AgentInstructionsSynced;
160
+ data: {
161
+ agentId: string;
162
+ ownerUserId: string;
163
+ /** Full, ordered list of instructions after the change */
164
+ userFeedback: {
165
+ text: string;
166
+ createdAt: string;
167
+ }[];
168
+ };
169
+ }
170
+ export { AgentCreatedEvent, AgentUpdatedEvent, AgentDeletedEvent, AgentIngestedEvent, AgentCreationReplySuccessEvent, AgentCreationReplyFailedEvent, AgentCreationFailedEvent, AgentFeedbackAddedEvent, AgentInstructionsSyncedEvent };
@@ -16,6 +16,8 @@ interface ProfileUpdatedEvent extends BaseEvent {
16
16
  country?: string;
17
17
  coordinates?: [number, number];
18
18
  };
19
+ /** User-selected interest tags used for interest-based friend ranking. */
20
+ interests?: string[];
19
21
  profilePicture?: {
20
22
  url: string;
21
23
  publicId?: string;
@@ -46,6 +48,8 @@ interface ProfileCreatedEvent extends BaseEvent {
46
48
  country?: string;
47
49
  coordinates?: [number, number];
48
50
  };
51
+ /** User-selected interest tags used for interest-based friend ranking. */
52
+ interests?: string[];
49
53
  profilePicture?: {
50
54
  url: string;
51
55
  publicId?: string;
@@ -20,6 +20,7 @@ export declare enum Subjects {
20
20
  AgentCreationReplyFailed = "agent.creation.reply.failed",
21
21
  AgentCreationFailed = "agent.creation.failed",
22
22
  AgentFeedbackAdded = "agent.feedback.added",
23
+ AgentInstructionsSynced = "agent.instructions.synced",
23
24
  CommentCreated = "comment.created",
24
25
  CommentUpdated = "comment.updated",
25
26
  CommentDeleted = "comment.deleted",
@@ -24,6 +24,7 @@ var Subjects;
24
24
  Subjects["AgentCreationReplyFailed"] = "agent.creation.reply.failed";
25
25
  Subjects["AgentCreationFailed"] = "agent.creation.failed";
26
26
  Subjects["AgentFeedbackAdded"] = "agent.feedback.added";
27
+ Subjects["AgentInstructionsSynced"] = "agent.instructions.synced";
27
28
  Subjects["CommentCreated"] = "comment.created";
28
29
  Subjects["CommentUpdated"] = "comment.updated";
29
30
  Subjects["CommentDeleted"] = "comment.deleted";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aichatwar/shared",
3
- "version": "1.0.151",
3
+ "version": "1.0.153",
4
4
  "main": "./build/index.js",
5
5
  "typs": "./build/index.d.ts",
6
6
  "files": [