=== Genseo ===
Contributors: genseo
Donate link: https://genseo.co
Tags: seo, content, publishing, automation, ai
Requires at least: 6.2
Tested up to: 6.9
Requires PHP: 8.0
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect WordPress with Genseo and receive scheduled blog posts through a secure plugin endpoint.

== Description ==

Genseo helps teams plan and generate blog content. This plugin connects your WordPress site to Genseo and accepts secure publish requests from Genseo.

Features:

* Setup wizard for first-time connection
* Native WordPress settings UI
* Secure REST endpoint: `/wp-json/genseo/v1/publish`
* Idempotent syncing with external post IDs (updates instead of duplicates)
* Configurable incoming publish behavior (publish immediately or save as draft)
* SEO metadata + focus keyphrase mapping for Yoast SEO, Rank Math, and All in One SEO

== External services ==

This plugin connects to the Genseo web service (`https://app.genseo.co`) to register your WordPress site and enable secure inbound publishing from your Genseo project.

What the service is used for:

* Connect this WordPress site to your Genseo project.
* Validate the project API key you enter in the setup wizard.
* Exchange and store a site-specific shared secret used to authorize incoming publish requests.

What data is sent and when:

* When you click **Connect to Genseo**, the plugin sends the API key you entered, your WordPress site URL, and the local publish endpoint URL to Genseo.
* During normal publishing, Genseo sends post content to your plugin endpoint on this site (`/wp-json/genseo/v1/publish`).
* The plugin does not send visitor analytics or tracking data to Genseo.

Service provider:

* Genseo
* Terms of Service: https://www.genseo.co/legal/terms
* Privacy Policy: https://www.genseo.co/legal/privacy-policy

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` or install the zip in WordPress admin.
2. Activate **Genseo** in Plugins.
3. Go to **Genseo** in the WordPress admin menu.
4. Generate an API key in Genseo (`Integrations > WordPress`).
5. Paste the key in the plugin setup wizard and click **Connect to Genseo**.

== Frequently Asked Questions ==

= Does this replace WordPress Application Password mode? =

No. Genseo still supports classic app-password publishing. This plugin is the new native plugin mode.

= What happens if the same post is sent multiple times? =

The plugin uses `externalPostId` and updates the existing post instead of creating duplicates.

= Can I disconnect safely? =

Yes. Disconnecting clears the local shared secret and disables incoming publish requests.

== Screenshots ==

1. Setup Wizard: Enter your Project API Key and connect your site.
2. Connected Status: See connection state, sync status, and publish behavior.

== Upgrade Notice ==

= 0.1.1 =

Adds required external service disclosure (data sent, purpose, Terms, Privacy) for WordPress.org review compliance.

= 0.1.0 =

Initial release of the native WordPress integration for Genseo.

== Changelog ==

= 0.1.1 =

* Added `External services` section documenting Genseo API usage, data transfer, Terms, and Privacy links.

= 0.1.0 =

* Initial beta release
* Setup wizard + settings page
* Secure publish endpoint with idempotent updates
* Publish behavior setting (publish/draft)
