/** * Wordpress Node - Version 1 * Discriminator: resource=post, operation=get */ interface Credentials { wordpressApi: CredentialReference; wordpressOAuth2Api: CredentialReference; } /** Get a post */ export type WordpressV1PostGetParams = { resource: 'post'; operation: 'get'; /** * The authentication method to use * @default basicAuth */ authType?: 'basicAuth' | 'oAuth2' | Expression; /** * Unique identifier for the object */ postId?: string | Expression | PlaceholderValue; /** * Options * @default {} */ options?: { /** The password for the post if it is password protected */ password?: string | Expression | PlaceholderValue; /** Scope under which the request is made; determines fields present in response * @default view */ context?: 'view' | 'embed' | 'edit' | Expression; }; }; export type WordpressV1PostGetOutput = { _links?: { about?: Array<{ href?: string; }>; author?: Array<{ embeddable?: boolean; href?: string; }>; collection?: Array<{ href?: string; }>; curies?: Array<{ href?: string; name?: string; templated?: boolean; }>; 'predecessor-version'?: Array<{ href?: string; id?: number; }>; replies?: Array<{ embeddable?: boolean; href?: string; }>; self?: Array<{ href?: string; targetHints?: { allow?: Array; }; }>; 'version-history'?: Array<{ count?: number; href?: string; }>; 'wp:attachment'?: Array<{ href?: string; }>; 'wp:featuredmedia'?: Array<{ embeddable?: boolean; href?: string; }>; 'wp:term'?: Array<{ embeddable?: boolean; href?: string; taxonomy?: string; }>; }; author?: number; categories?: Array; comment_status?: string; content?: { protected?: boolean; rendered?: string; }; date?: string; date_gmt?: string; excerpt?: { protected?: boolean; rendered?: string; }; featured_media?: number; format?: string; guid?: { rendered?: string; }; id?: number; link?: string; meta?: { footnotes?: string; }; modified?: string; modified_gmt?: string; ping_status?: string; slug?: string; status?: string; sticky?: boolean; tags?: Array; template?: string; title?: { rendered?: string; }; type?: string; }; export type WordpressV1PostGetNode = { type: 'n8n-nodes-base.wordpress'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };