xquik-types.ts file.
Types
interface CreateMonitorRequest {
username: string;
eventTypes: EventType[];
}
interface UpdateMonitorRequest {
eventTypes?: EventType[];
isActive?: boolean;
}
interface CreateWebhookRequest {
url: string;
eventTypes: EventType[];
}
interface UpdateWebhookRequest {
url?: string;
eventTypes?: EventType[];
isActive?: boolean;
}
interface CreateApiKeyRequest {
name?: string;
}
interface CreateDrawRequest {
tweetUrl: string;
winnerCount?: number;
backupCount?: number;
uniqueAuthorsOnly?: boolean;
mustRetweet?: boolean;
mustFollowUsername?: string;
filterMinFollowers?: number;
filterAccountAgeDays?: number;
filterLanguage?: string;
requiredKeywords?: string[];
requiredHashtags?: string[];
requiredMentions?: string[];
}
interface CreateExtractionRequest {
toolType: ExtractionToolType;
targetTweetId?: string;
targetUsername?: string;
targetCommunityId?: string;
targetListId?: string;
targetSpaceId?: string;
searchQuery?: string;
resultsLimit?: number;
}
interface CreateDraftRequest {
text: string;
topic?: string;
goal?: "engagement" | "followers" | "authority" | "conversation";
}
interface ComposeRequest {
step: "compose" | "refine" | "score";
topic?: string;
goal?: ComposeTweetGoal;
styleUsername?: string;
tone?: string;
additionalContext?: string;
callToAction?: string;
hasLink?: boolean;
/** @deprecated Accepted for compatibility. Text checks ignore it. */
hasMedia?: boolean;
mediaType?: MediaType;
draft?: string;
}