/**
 * X (Formerly Twitter) Node - Version 2
 * Discriminator: resource=list, operation=add
 */


interface Credentials {
  twitterOAuth2Api: CredentialReference;
}

/** Add a user to a list */
export type TwitterV2ListAddParams = {
  resource: 'list';
  operation: 'add';
/**
 * The list you want to add the user to
 * @default {"mode":"id","value":""}
 */
    list?: { __rl: true; mode: 'id' | 'url'; value: string; cachedResultName?: string };
/**
 * The user you want to add to the list
 * @default {"mode":"username","value":""}
 */
    user?: { __rl: true; mode: 'username' | 'id'; value: string; cachedResultName?: string };
};

export type TwitterV2ListAddNode = {
  type: 'n8n-nodes-base.twitter';
  version: 2;
  credentials?: Credentials;
  config: NodeConfig<TwitterV2ListAddParams>;
};