/**
 * Reddit Node - Version 1
 * Discriminator: resource=post, operation=get
 */


interface Credentials {
  redditOAuth2Api: CredentialReference;
}

export type RedditV1PostGetParams = {
  resource: 'post';
  operation: 'get';
/**
 * The name of subreddit to retrieve the post from
 */
    subreddit?: string | Expression<string> | PlaceholderValue;
/**
 * ID of the post to retrieve. Found in the post URL: &lt;code&gt;/r/[subreddit_name]/comments/[post_id]/[post_title]&lt;/code&gt;
 */
    postId?: string | Expression<string> | PlaceholderValue;
};

export type RedditV1PostGetOutput = {
  allow_live_comments?: boolean;
  approved_at_utc?: null;
  approved_by?: null;
  archived?: boolean;
  author?: string;
  author_flair_richtext?: Array<{
    a?: string;
    e?: string;
    t?: string;
    u?: string;
  }>;
  author_flair_type?: string;
  author_fullname?: string;
  author_is_blocked?: boolean;
  author_patreon_flair?: boolean;
  author_premium?: boolean;
  banned_at_utc?: null;
  banned_by?: null;
  can_gild?: boolean;
  can_mod_post?: boolean;
  category?: null;
  clicked?: boolean;
  content_categories?: null;
  contest_mode?: boolean;
  created?: number;
  created_utc?: number;
  discussion_type?: null;
  domain?: string;
  downs?: number;
  gilded?: number;
  hidden?: boolean;
  hide_score?: boolean;
  id?: string;
  is_created_from_ads_ui?: boolean;
  is_crosspostable?: boolean;
  is_meta?: boolean;
  is_original_content?: boolean;
  is_reddit_media_domain?: boolean;
  is_robot_indexable?: boolean;
  is_self?: boolean;
  is_video?: boolean;
  link_flair_richtext?: Array<{
    e?: string;
    t?: string;
  }>;
  link_flair_type?: string;
  locked?: boolean;
  media_only?: boolean;
  mod_note?: null;
  mod_reason_by?: null;
  mod_reason_title?: null;
  name?: string;
  no_follow?: boolean;
  num_comments?: number;
  num_crossposts?: number;
  num_duplicates?: number;
  over_18?: boolean;
  permalink?: string;
  pinned?: boolean;
  quarantine?: boolean;
  removal_reason?: null;
  removed_by?: null;
  saved?: boolean;
  score?: number;
  selftext?: string;
  send_replies?: boolean;
  spoiler?: boolean;
  stickied?: boolean;
  subreddit?: string;
  subreddit_id?: string;
  subreddit_name_prefixed?: string;
  subreddit_subscribers?: number;
  subreddit_type?: string;
  thumbnail?: string;
  title?: string;
  top_awarded_type?: null;
  total_awards_received?: number;
  ups?: number;
  url?: string;
  view_count?: null;
  visited?: boolean;
};

export type RedditV1PostGetNode = {
  type: 'n8n-nodes-base.reddit';
  version: 1;
  credentials?: Credentials;
  config: NodeConfig<RedditV1PostGetParams>;
  output?: Items<RedditV1PostGetOutput>;
};