=== ShinrAI Protected Exports for Contact Form 7 ===
Contributors: innovius
Tags: privacy, contact-form-7, redaction, documents, webhook
Requires at least: 6.7
Requires PHP: 8.1
Stable tag: 0.2.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Protect selected form fields and attachments before delivering them to a configured webhook.

== Description ==
Requires Contact Form 7 and PHP Sodium. The connector is free software; a ShinrAI service key and usage allowance are required.

This plugin sends selected content to the configured ShinrAI service (PII API v2) for protection. Protected exports go to an administrator-configured destination. Existing Contact Form 7 email and other integrations remain outside this protection boundary. Service information: https://getshinrai.com/integrations/wordpress

The plugin stores temporary queued content encrypted using a key derived from WordPress authentication salts. Content is removed after successful delivery; scheduled cleanup expires unfinished exports after 24 hours. Configure system cron on sites without regular traffic. Delivery uses a stable Idempotency-Key: destinations should deduplicate retries.

== Installation ==
1. Install and activate Contact Form 7.
2. Upload the ShinrAI plugin ZIP in Plugins > Add New > Upload Plugin and activate it.
3. Open Settings > ShinrAI. Enter the service key and protected webhook destination.
4. Select forms/fields and optional attachments. Save, test the connection and run the synthetic example.
5. Submit your form and check the export queue and destination.

== Frequently Asked Questions ==
= Does this replace existing form email? =
No. Existing email/local handling remains separate. Only the configured exports are protected.

= What documents are supported? =
TXT, PDF and DOCX input. PDF and DOCX attachments become flattened protected PDF copies. TXT attachments become protected text files. Editable DOCX output is not provided.

= Does it support German? =
The connector interface follows the administrator's English or German locale. English and German OCR are supported by the document service.

== Changelog ==
= 0.2.1 =
New default service URL: https://api.getshinrai.com. Saved settings with https://api.shinrai.innovius.io keep working. Service information: https://getshinrai.com/integrations/wordpress.

= 0.2.0 =
Uses the ShinrAI PII API v2. PDF and DOCX attachments need a service whose document jobs return the redacted PDF. TXT attachments become protected text files. Protected output is checked before it is saved. The export queue shows the API error code. Automatic retries follow the retryable flag of the API error. Retry reuses a saved upload unless the service cannot use it. Before an upload the plugin checks that a PDF starts with %PDF- and a DOCX with PK. No call deletes an upload without a job: if the job start stays refused, the upload stays encrypted on the service until it expires (24 hours).

= 0.1.0 =
Initial integration preview. Direct installation; marketplace approval is a separate gate.
