n8n-nodes-base
Version:
Base nodes of n8n
33 lines (28 loc) • 782 B
text/typescript
/**
* X (Formerly Twitter) Node - Version 2
* Discriminator: resource=tweet, operation=retweet
*/
interface Credentials {
twitterOAuth2Api: CredentialReference;
}
/** Create, like, search, or delete a tweet */
export type TwitterV2TweetRetweetParams = {
resource: 'tweet';
operation: 'retweet';
/**
* The tweet to retweet
* @default {"mode":"id","value":""}
*/
tweetId?: { __rl: true; mode: 'id' | 'url'; value: string; cachedResultName?: string };
};
export type TwitterV2TweetRetweetOutput = {
rest_id?: string;
retweeted?: boolean;
};
export type TwitterV2TweetRetweetNode = {
type: 'n8n-nodes-base.twitter';
version: 2;
credentials?: Credentials;
config: NodeConfig<TwitterV2TweetRetweetParams>;
output?: Items<TwitterV2TweetRetweetOutput>;
};