@aichatwar/shared 1.0.109 → 1.0.111

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.
@@ -6,6 +6,10 @@ interface AgentCreatedEvent extends BaseEvent {
6
6
  id: string;
7
7
  ownerUserId: string;
8
8
  version: number;
9
+ provider?: string;
10
+ providerAgentId?: string;
11
+ correlationId?: string;
12
+ metadata?: Record<string, any>;
9
13
  };
10
14
  }
11
15
  interface AgentUpdatedEvent extends BaseEvent {
@@ -22,4 +26,85 @@ interface AgentDeletedEvent extends BaseEvent {
22
26
  id: string;
23
27
  };
24
28
  }
25
- export { AgentCreatedEvent, AgentUpdatedEvent, AgentDeletedEvent };
29
+ interface AgentIngestedEvent extends BaseEvent {
30
+ subject: Subjects.AgentIngested;
31
+ data: {
32
+ id: string;
33
+ agentId: string;
34
+ ownerUserId: string;
35
+ version: number;
36
+ correlationId: string;
37
+ profile: {
38
+ modelProvider: string;
39
+ modelName: string;
40
+ systemPrompt: string;
41
+ tools: {
42
+ name: string;
43
+ config: any;
44
+ }[];
45
+ rateLimits?: {
46
+ rpm: number;
47
+ tpm: number;
48
+ };
49
+ voiceId?: string;
50
+ memory?: any;
51
+ privacy?: {
52
+ shareMessagesWithOwner: boolean;
53
+ };
54
+ };
55
+ character?: {
56
+ name?: string;
57
+ displayName?: string;
58
+ title?: string;
59
+ personaTraits?: string[];
60
+ };
61
+ metadata?: Record<string, any>;
62
+ ingestedAt: string;
63
+ };
64
+ }
65
+ interface AgentCreationReplySuccessEvent extends BaseEvent {
66
+ subject: Subjects.AgentCreationReplySuccess;
67
+ data: {
68
+ id: string;
69
+ agentId: string;
70
+ ownerUserId: string;
71
+ version: number;
72
+ correlationId: string;
73
+ provider: string;
74
+ providerAgentId: string;
75
+ provisionedAt: string;
76
+ metadata?: Record<string, any>;
77
+ };
78
+ }
79
+ interface AgentCreationReplyFailedEvent extends BaseEvent {
80
+ subject: Subjects.AgentCreationReplyFailed;
81
+ data: {
82
+ id: string;
83
+ agentId: string;
84
+ ownerUserId: string;
85
+ version: number;
86
+ correlationId: string;
87
+ provider?: string;
88
+ errorMessage: string;
89
+ errorCode?: string;
90
+ retryable: boolean;
91
+ metadata?: Record<string, any>;
92
+ failedAt: string;
93
+ };
94
+ }
95
+ interface AgentCreationFailedEvent extends BaseEvent {
96
+ subject: Subjects.AgentCreationFailed;
97
+ data: {
98
+ id: string;
99
+ agentId: string;
100
+ ownerUserId: string;
101
+ version: number;
102
+ provider?: string;
103
+ providerAgentId?: string;
104
+ reason: string;
105
+ correlationId: string;
106
+ failedAt: string;
107
+ metadata?: Record<string, any>;
108
+ };
109
+ }
110
+ export { AgentCreatedEvent, AgentUpdatedEvent, AgentDeletedEvent, AgentIngestedEvent, AgentCreationReplySuccessEvent, AgentCreationReplyFailedEvent, AgentCreationFailedEvent };
@@ -6,6 +6,7 @@ export interface MessageCreatedEvent {
6
6
  roomId: string;
7
7
  senderType: 'human' | 'agent';
8
8
  senderId: string;
9
+ senderName?: string;
9
10
  content: string;
10
11
  attachments?: Array<{
11
12
  url: string;
@@ -20,6 +20,10 @@ export declare enum Subjects {
20
20
  AgentCreated = "agent.created",
21
21
  AgentUpdated = "agent.updated",
22
22
  AgentDeleted = "agent.deleted",
23
+ AgentIngested = "agent.ingested",
24
+ AgentCreationReplySuccess = "agent.creation.reply.success",
25
+ AgentCreationReplyFailed = "agent.creation.reply.failed",
26
+ AgentCreationFailed = "agent.creation.failed",
23
27
  CommentCreated = "comment.created",
24
28
  CommentUpdated = "comment.updated",
25
29
  CommentDeleted = "comment.deleted",
@@ -24,6 +24,10 @@ var Subjects;
24
24
  Subjects["AgentCreated"] = "agent.created";
25
25
  Subjects["AgentUpdated"] = "agent.updated";
26
26
  Subjects["AgentDeleted"] = "agent.deleted";
27
+ Subjects["AgentIngested"] = "agent.ingested";
28
+ Subjects["AgentCreationReplySuccess"] = "agent.creation.reply.success";
29
+ Subjects["AgentCreationReplyFailed"] = "agent.creation.reply.failed";
30
+ Subjects["AgentCreationFailed"] = "agent.creation.failed";
27
31
  Subjects["CommentCreated"] = "comment.created";
28
32
  Subjects["CommentUpdated"] = "comment.updated";
29
33
  Subjects["CommentDeleted"] = "comment.deleted";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aichatwar/shared",
3
- "version": "1.0.109",
3
+ "version": "1.0.111",
4
4
  "main": "./build/index.js",
5
5
  "typs": "./build/index.d.ts",
6
6
  "files": [