@aichatwar/shared 1.0.129 → 1.0.130
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.
|
@@ -298,3 +298,164 @@ export interface AgentCapabilityRestrictedEvent extends BaseEvent {
|
|
|
298
298
|
timestamp: string;
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
|
+
export interface AgentFeedScannedEvent extends BaseEvent {
|
|
302
|
+
subject: Subjects.AgentFeedScanned;
|
|
303
|
+
data: {
|
|
304
|
+
agentId: string;
|
|
305
|
+
ownerUserId: string;
|
|
306
|
+
scanId: string;
|
|
307
|
+
feedData: {
|
|
308
|
+
posts: Array<{
|
|
309
|
+
id: string;
|
|
310
|
+
userId: string;
|
|
311
|
+
content: string;
|
|
312
|
+
media?: Array<{
|
|
313
|
+
id: string;
|
|
314
|
+
url: string;
|
|
315
|
+
type: string;
|
|
316
|
+
}>;
|
|
317
|
+
createdAt: string;
|
|
318
|
+
reactionsSummary: Array<{
|
|
319
|
+
type: string;
|
|
320
|
+
count: number;
|
|
321
|
+
}>;
|
|
322
|
+
commentsCount: number;
|
|
323
|
+
}>;
|
|
324
|
+
comments: Array<{
|
|
325
|
+
id: string;
|
|
326
|
+
postId: string;
|
|
327
|
+
userId: string;
|
|
328
|
+
content: string;
|
|
329
|
+
createdAt: string;
|
|
330
|
+
}>;
|
|
331
|
+
reactions: Array<{
|
|
332
|
+
id: string;
|
|
333
|
+
postId?: string;
|
|
334
|
+
commentId?: string;
|
|
335
|
+
userId: string;
|
|
336
|
+
type: string;
|
|
337
|
+
createdAt: string;
|
|
338
|
+
}>;
|
|
339
|
+
};
|
|
340
|
+
scanTimestamp: string;
|
|
341
|
+
scanInterval: number;
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
export interface AgentFeedDigestedEvent extends BaseEvent {
|
|
345
|
+
subject: Subjects.AgentFeedDigested;
|
|
346
|
+
data: {
|
|
347
|
+
agentId: string;
|
|
348
|
+
scanId: string;
|
|
349
|
+
digestedAt: string;
|
|
350
|
+
status: 'processing' | 'queued' | 'error';
|
|
351
|
+
error?: string;
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
export interface AgentFeedAnswerReceivedEvent extends BaseEvent {
|
|
355
|
+
subject: Subjects.AgentFeedAnswerReceived;
|
|
356
|
+
data: {
|
|
357
|
+
agentId: string;
|
|
358
|
+
ownerUserId: string;
|
|
359
|
+
scanId: string;
|
|
360
|
+
correlationId: string;
|
|
361
|
+
response: {
|
|
362
|
+
posts?: Array<{
|
|
363
|
+
content: string;
|
|
364
|
+
visibility: 'public' | 'friends' | 'private';
|
|
365
|
+
mediaUrls?: string[];
|
|
366
|
+
}>;
|
|
367
|
+
comments?: Array<{
|
|
368
|
+
postId: string;
|
|
369
|
+
content: string;
|
|
370
|
+
}>;
|
|
371
|
+
reactions?: Array<{
|
|
372
|
+
postId?: string;
|
|
373
|
+
commentId?: string;
|
|
374
|
+
type: 'like' | 'love' | 'haha' | 'sad' | 'angry';
|
|
375
|
+
}>;
|
|
376
|
+
connectionRequests?: Array<{
|
|
377
|
+
userId: string;
|
|
378
|
+
message?: string;
|
|
379
|
+
}>;
|
|
380
|
+
};
|
|
381
|
+
metadata: {
|
|
382
|
+
modelProvider: string;
|
|
383
|
+
modelName: string;
|
|
384
|
+
tokensUsed?: number;
|
|
385
|
+
processingTimeMs: number;
|
|
386
|
+
};
|
|
387
|
+
timestamp: string;
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
export interface AgentDraftPostCreatedEvent extends BaseEvent {
|
|
391
|
+
subject: Subjects.AgentDraftPostCreated;
|
|
392
|
+
data: {
|
|
393
|
+
draftId: string;
|
|
394
|
+
agentId: string;
|
|
395
|
+
ownerUserId: string;
|
|
396
|
+
content: string;
|
|
397
|
+
mediaUrls?: string[];
|
|
398
|
+
visibility: 'public' | 'friends' | 'private';
|
|
399
|
+
status: 'pending';
|
|
400
|
+
expiresAt: string;
|
|
401
|
+
metadata: {
|
|
402
|
+
scanId: string;
|
|
403
|
+
suggestedBy: 'activity_worker';
|
|
404
|
+
confidence?: number;
|
|
405
|
+
context?: string;
|
|
406
|
+
};
|
|
407
|
+
timestamp: string;
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
export interface AgentDraftCommentCreatedEvent extends BaseEvent {
|
|
411
|
+
subject: Subjects.AgentDraftCommentCreated;
|
|
412
|
+
data: {
|
|
413
|
+
draftId: string;
|
|
414
|
+
agentId: string;
|
|
415
|
+
ownerUserId: string;
|
|
416
|
+
postId: string;
|
|
417
|
+
content: string;
|
|
418
|
+
status: 'pending';
|
|
419
|
+
expiresAt: string;
|
|
420
|
+
metadata: {
|
|
421
|
+
scanId: string;
|
|
422
|
+
suggestedBy: 'activity_worker';
|
|
423
|
+
};
|
|
424
|
+
timestamp: string;
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
export interface AgentDraftReactionCreatedEvent extends BaseEvent {
|
|
428
|
+
subject: Subjects.AgentDraftReactionCreated;
|
|
429
|
+
data: {
|
|
430
|
+
draftId: string;
|
|
431
|
+
agentId: string;
|
|
432
|
+
ownerUserId: string;
|
|
433
|
+
postId?: string;
|
|
434
|
+
commentId?: string;
|
|
435
|
+
type: 'like' | 'love' | 'haha' | 'sad' | 'angry';
|
|
436
|
+
status: 'pending';
|
|
437
|
+
expiresAt: string;
|
|
438
|
+
metadata: {
|
|
439
|
+
scanId: string;
|
|
440
|
+
suggestedBy: 'activity_worker';
|
|
441
|
+
};
|
|
442
|
+
timestamp: string;
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
export interface AgentDraftConnectionRequestCreatedEvent extends BaseEvent {
|
|
446
|
+
subject: Subjects.AgentDraftConnectionRequestCreated;
|
|
447
|
+
data: {
|
|
448
|
+
draftId: string;
|
|
449
|
+
agentId: string;
|
|
450
|
+
ownerUserId: string;
|
|
451
|
+
targetUserId: string;
|
|
452
|
+
message?: string;
|
|
453
|
+
status: 'pending';
|
|
454
|
+
expiresAt: string;
|
|
455
|
+
metadata: {
|
|
456
|
+
scanId: string;
|
|
457
|
+
suggestedBy: 'activity_worker';
|
|
458
|
+
};
|
|
459
|
+
timestamp: string;
|
|
460
|
+
};
|
|
461
|
+
}
|
|
@@ -84,5 +84,12 @@ export declare enum Subjects {
|
|
|
84
84
|
AgentDraftPostApproved = "agent.draft.post.approved",
|
|
85
85
|
AgentDraftCommentApproved = "agent.draft.comment.approved",
|
|
86
86
|
AgentDraftReactionApproved = "agent.draft.reaction.approved",
|
|
87
|
-
AgentDraftRejected = "agent.draft.rejected"
|
|
87
|
+
AgentDraftRejected = "agent.draft.rejected",
|
|
88
|
+
AgentFeedScanned = "agent.feed.scanned",
|
|
89
|
+
AgentFeedDigested = "agent.feed.digested",
|
|
90
|
+
AgentFeedAnswerReceived = "agent.feed.answer.received",
|
|
91
|
+
AgentDraftPostCreated = "agent.draft.post.created",
|
|
92
|
+
AgentDraftCommentCreated = "agent.draft.comment.created",
|
|
93
|
+
AgentDraftReactionCreated = "agent.draft.reaction.created",
|
|
94
|
+
AgentDraftConnectionRequestCreated = "agent.draft.connection.request.created"
|
|
88
95
|
}
|
package/build/events/subjects.js
CHANGED
|
@@ -90,4 +90,13 @@ var Subjects;
|
|
|
90
90
|
Subjects["AgentDraftCommentApproved"] = "agent.draft.comment.approved";
|
|
91
91
|
Subjects["AgentDraftReactionApproved"] = "agent.draft.reaction.approved";
|
|
92
92
|
Subjects["AgentDraftRejected"] = "agent.draft.rejected";
|
|
93
|
+
// Feed Scanning Events
|
|
94
|
+
Subjects["AgentFeedScanned"] = "agent.feed.scanned";
|
|
95
|
+
Subjects["AgentFeedDigested"] = "agent.feed.digested";
|
|
96
|
+
Subjects["AgentFeedAnswerReceived"] = "agent.feed.answer.received";
|
|
97
|
+
// Draft Creation Events
|
|
98
|
+
Subjects["AgentDraftPostCreated"] = "agent.draft.post.created";
|
|
99
|
+
Subjects["AgentDraftCommentCreated"] = "agent.draft.comment.created";
|
|
100
|
+
Subjects["AgentDraftReactionCreated"] = "agent.draft.reaction.created";
|
|
101
|
+
Subjects["AgentDraftConnectionRequestCreated"] = "agent.draft.connection.request.created";
|
|
93
102
|
})(Subjects || (exports.Subjects = Subjects = {}));
|