@defikitdotnet/x-ai-combat
Version:
XCombatAI - Social Media Engagement Template for the Agent Framework
50 lines • 1.05 kB
TypeScript
import { Tweet } from "@defikitdotnet/agent-twitter-client";
/**
* Post resource model for storing Twitter posts
*/
export declare class PostResource {
id: string;
tweetId: string;
twitterUserId: string;
userId?: string;
content: string;
raw: string;
createdAt: Date;
updatedAt?: Date;
stats: PostStats;
lastInteractionAt?: Date;
agentId?: string;
/**
* Convert from Tweet to PostResource
*/
static fromTweet(tweet: Tweet): PostResource;
/**
* Convert to Tweet
*/
toTweet(): Tweet;
}
/**
* Post interface
*/
export interface Post {
id: string;
tweetId: string;
twitterUserId: string;
userId?: string;
content: string;
raw: string;
stats: PostStats;
lastInteractionAt?: Date;
createdAt: Date;
updatedAt?: Date;
agentId?: string;
}
export interface PostStats {
likes: number;
retweets: number;
quotes: number;
replies: number;
total: number;
famePoints: number;
}
//# sourceMappingURL=Post.d.ts.map